Submission #64514
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | #include<stdio.h> int main(){ int ans=0,n,i=0; char s[51]; scanf ( "%d" ,&n); scanf ( "%s" ,s); for (i=0;i<n;i++){ if (s[i]== 'a' ){ ans+=1; } if (s[i]== 'i' ){ ans+=1; } if (s[i]== 'u' ){ ans+=1; } if (s[i]== 'e' ){ ans+=1; } if (s[i]== 'o' ){ ans+=1; } } printf ( "%d\n" ,ans); return (0); } |
ステータス
項目 | データ |
---|---|
問題 | 1421 - 母音を数える |
ユーザー名 | m2006 |
投稿日時 | 2020-10-28 17:10:37 |
言語 | C++17 |
状態 | Accepted |
得点 | 100 |
ソースコード長 | 424 Byte |
最大実行時間 | 28 ms |
最大メモリ使用量 | 616 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 100 / 100 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
01-01.txt | AC | 25 ms | 604 KB |
1
|
01-02.txt | AC | 21 ms | 584 KB |
1
|
01-03.txt | AC | 21 ms | 564 KB |
1
|
01-04.txt | AC | 22 ms | 544 KB |
1
|
01-05.txt | AC | 24 ms | 528 KB |
1
|
01-06.txt | AC | 15 ms | 508 KB |
1
|
sample-01.txt | AC | 21 ms | 616 KB |
1
|
sample-02.txt | AC | 28 ms | 592 KB |
1
|