Submission #00397
ソースコード
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 27 | #include<stdio.h> int main(){ int n,i,j = 0,len,isword = 0; char word[100000],s[100]; scanf ( "%d %s" ,&n,&word); for (i = 0;i < n;i++){ while ( scanf ( "%c" ,&s[j]) != '\n' ){ if (s[j] == ' ' ){ s[j] = '\0' ; j = 0; if ( strcmp (word,s) == 0){ isword++; } } else { j++; } } } printf ( "%d\n" ,isword); return (0); } |
ステータス
項目 | データ |
---|---|
問題 | 0003 - 聖書 |
ユーザー名 | ei1332 |
投稿日時 | 2015-06-09 09:24:18 |
言語 | C |
状態 | Runtime Error |
得点 | 0 |
ソースコード長 | 420 Byte |
最大実行時間 | 49 ms |
最大メモリ使用量 | 516 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 0 / 3 | * |
2 | SUB1 | 0 / 1 | Alice_in1.txt |
3 | SUB2 | 0 / 1 | Alice_in2.txt |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # | ||
---|---|---|---|---|---|---|
Alice_in1.txt | RE | 49 ms | 420 KB |
1
|
2
|
|
Alice_in2.txt | RE | 25 ms | 448 KB |
1
|
3
|
|
Alice_in3.txt | RE | 18 ms | 516 KB |
1
|