Submission #27767
ソースコード
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 | #include<cstdio> #include<cstring> #include<algorithm> using namespace std; int main(){ char a[124],b[124],c[124]; int dat[3]; scanf ( "%s %s %s" ,a,b,c); dat[0]= strlen (a); dat[1]= strlen (b); dat[2]= strlen (c); bool f= false ; if (dat[0]==5&&dat[1]==7&&dat[2]==5) f= true ; sort(dat,dat+3); if (dat[0]==5&&dat[1]==5&&dat[2]==7) printf ( "YES\n" ); else printf ( "NO\n" ); if (f) printf ( "YES\n" ); else printf ( "NO\n" ); return 0; } |
ステータス
項目 | データ |
---|---|
問題 | 0712 - Nafmo、575Botを見る |
ユーザー名 | ei1710 |
投稿日時 | 2017-10-22 12:13:45 |
言語 | C++11 |
状態 | Accepted |
得点 | 1 |
ソースコード長 | 458 Byte |
最大実行時間 | 28 ms |
最大メモリ使用量 | 572 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 1 / 1 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
in02.txt | AC | 28 ms | 476 KB |
1
|
in04.txt | AC | 18 ms | 464 KB |
1
|
in05.txt | AC | 20 ms | 572 KB |
1
|
in07.txt | AC | 17 ms | 548 KB |
1
|
in08.txt | AC | 16 ms | 528 KB |
1
|
in09.txt | AC | 13 ms | 512 KB |
1
|
in10.txt | AC | 13 ms | 492 KB |
1
|
in11.txt | AC | 18 ms | 476 KB |
1
|
in12.txt | AC | 20 ms | 336 KB |
1
|
in13.txt | AC | 15 ms | 448 KB |
1
|
in14.txt | AC | 13 ms | 560 KB |
1
|