Submission #00205
ソースコード
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> #include<string.h> int main(){ int n,i, cnt=0; char comment[256]; scanf ( "%d" ,&n); for (i=0;i<n;i++){ scanf ( "%s" ,comment); if (comment[ strlen (comment)-5]== 'A' ){ cnt++; if (comment[ strlen (comment)-4]== 'l' ){ cnt++; if (comment[ strlen (comment)-3]== 'i' ){ cnt++; } if (comment[ strlen (comment)-2]== 'c' ){ cnt++; } if (comment[ strlen (comment)-1]== 'e' ){ cnt++; } } } } cnt=cnt/5; printf ( "%d\n" ,cnt); return (0); } |
ステータス
項目 | データ |
---|---|
問題 | 0005 - アリスのSweetMagic |
ユーザー名 | ei1710 |
投稿日時 | 2017-04-28 17:15:46 |
言語 | C |
状態 | Accepted |
得点 | 15 |
ソースコード長 | 498 Byte |
最大実行時間 | 27 ms |
最大メモリ使用量 | 476 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 15 / 15 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
input1.txt | AC | 19 ms | 380 KB |
1
|
input2.txt | AC | 27 ms | 324 KB |
1
|
input3.txt | AC | 23 ms | 348 KB |
1
|
input4.txt | AC | 15 ms | 412 KB |
1
|
input5.txt | AC | 15 ms | 476 KB |
1
|