Submission #38363
ソースコード
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 32 33 34 35 36 37 38 | #include<bits/stdc++.h> using namespace std; int main(){ string A,B,C; cin>>A>>B>>C; int a[3]; a[0]=A.length(); a[1]=B.length(); a[2]=C.length(); bool judge1=0,judge2=0; if (a[0]==5&&a[1]==7&&a[2]==5){ judge1=1; } sort(a,a+3); if (a[0]==5&&a[1]==5&&a[2]==7){ judge2=1; } if (judge2){ cout<< "YES" <<endl; } else { cout<< "NO" <<endl; } if (judge1){ cout<< "YES" <<endl; } else { cout<< "NO" <<endl; } return 0; } |
ステータス
項目 | データ |
---|---|
問題 | 0712 - Nafmo、575Botを見る |
ユーザー名 | ei1725 |
投稿日時 | 2018-07-08 14:50:09 |
言語 | C++11 |
状態 | Accepted |
得点 | 1 |
ソースコード長 | 508 Byte |
最大実行時間 | 64 ms |
最大メモリ使用量 | 708 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 1 / 1 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
in02.txt | AC | 49 ms | 480 KB |
1
|
in04.txt | AC | 20 ms | 708 KB |
1
|
in05.txt | AC | 22 ms | 552 KB |
1
|
in07.txt | AC | 32 ms | 528 KB |
1
|
in08.txt | AC | 25 ms | 636 KB |
1
|
in09.txt | AC | 27 ms | 476 KB |
1
|
in10.txt | AC | 19 ms | 452 KB |
1
|
in11.txt | AC | 64 ms | 428 KB |
1
|
in12.txt | AC | 26 ms | 532 KB |
1
|
in13.txt | AC | 31 ms | 504 KB |
1
|
in14.txt | AC | 28 ms | 472 KB |
1
|