Submission #28399
ソースコード
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 28 29 30 31 | #include<stdio.h> #include<string.h> int main(){ char c[101]; int count7=0,count5=0,str,count=0,i; for (i=0;i<3;i++){ scanf ( "%s" ,c); str= strlen (c); if (str==7){ count7++; } else if (str==5){ count5++; } if (i==0 && str==5 || i==2 && str==5){ count++; } else if (i==1 && str==7){ count++; } } if (count7==1 && count5==2){ printf ( "YES\n" ); } else { printf ( "NO\n" ); } if (count==3){ printf ( "YES\n" ); } else { printf ( "NO\n" ); } return 0; } |
ステータス
項目 | データ |
---|---|
問題 | 0712 - Nafmo、575Botを見る |
ユーザー名 | crom |
投稿日時 | 2017-11-07 16:03:26 |
言語 | C++11 |
状態 | Accepted |
得点 | 1 |
ソースコード長 | 548 Byte |
最大実行時間 | 29 ms |
最大メモリ使用量 | 600 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 1 / 1 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
in02.txt | AC | 29 ms | 480 KB |
1
|
in04.txt | AC | 16 ms | 460 KB |
1
|
in05.txt | AC | 19 ms | 440 KB |
1
|
in07.txt | AC | 27 ms | 416 KB |
1
|
in08.txt | AC | 19 ms | 400 KB |
1
|
in09.txt | AC | 27 ms | 376 KB |
1
|
in10.txt | AC | 19 ms | 492 KB |
1
|
in11.txt | AC | 23 ms | 600 KB |
1
|
in12.txt | AC | 18 ms | 584 KB |
1
|
in13.txt | AC | 16 ms | 440 KB |
1
|
in14.txt | AC | 19 ms | 556 KB |
1
|