Submission #00130
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #include<stdio.h> #include <string.h> int main() { char str[10000]; char *p; char *p2; int count=0; int count2=0; scanf ( "%s" ,str); if ( strstr (str, "JOI" )){ count++; } if ( strstr (str, "IOI" )){ count2++; } printf ( "%d\n" ,count); printf ( "%d\n" ,count2); } |
ステータス
項目 | データ |
---|---|
問題 | 0002 - JOI と IOI |
ユーザー名 | ei1611 |
投稿日時 | 2016-11-09 18:47:51 |
言語 | C |
状態 | Wrong Answer |
得点 | 0 |
ソースコード長 | 322 Byte |
最大実行時間 | 20 ms |
最大メモリ使用量 | 432 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | set1 | 0 / 20 | *1.txt |
2 | set2 | 0 / 20 | *2.txt |
3 | set3 | 0 / 20 | *3.txt |
4 | set4 | 0 / 20 | *4.txt |
5 | set5 | 0 / 20 | *5.txt |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # | ||||
---|---|---|---|---|---|---|---|---|
2008-yo-t2-in1.txt | WA | 18 ms | 380 KB |
1
|
||||
2008-yo-t2-in2.txt | WA | 16 ms | 308 KB |
2
|
||||
2008-yo-t2-in3.txt | WA | 20 ms | 328 KB |
3
|
||||
2008-yo-t2-in4.txt | WA | 15 ms | 384 KB |
4
|
||||
2008-yo-t2-in5.txt | WA | 20 ms | 432 KB |
5
|