Submission #16653
ソースコード
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 | #include<iostream> #include<string> #include<algorithm> typedef long long int ll; using namespace std; #define FOR(i,a,b) for (int i=(a);i<(b);i++) #define REP(i,n) for (int i=0;i<(n);i++) #define EREP(i,n) for (int i=1;i<=(n);i++) string A,B,C; int s[4]; int main(){ ios::sync_with_stdio( false ); cin>>A>>B>>C; s[0]=A.size(); s[1]=B.size(); s[2]=C.size(); if (s[0]==5&&s[1]==7&&s[2]==5){ cout<< "YES" <<endl<< "YES" <<endl; } else { sort(s,s+3); if (s[0]==5&&s[1]==5&&s[2]==7){ cout<< "YES" <<endl<< "NO" <<endl; } else { cout<< "NO" <<endl<< "NO" <<endl; } } return 0; } |
ステータス
項目 | データ |
---|---|
問題 | 0712 - Nafmo、575Botを見る |
ユーザー名 | Nafmo |
投稿日時 | 2017-05-04 08:13:52 |
言語 | C++11 |
状態 | Accepted |
得点 | 1 |
ソースコード長 | 688 Byte |
最大実行時間 | 24 ms |
最大メモリ使用量 | 696 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 1 / 1 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
in02.txt | AC | 13 ms | 480 KB |
1
|
in04.txt | AC | 24 ms | 696 KB |
1
|
in05.txt | AC | 13 ms | 660 KB |
1
|
in07.txt | AC | 17 ms | 620 KB |
1
|
in08.txt | AC | 17 ms | 580 KB |
1
|
in09.txt | AC | 19 ms | 664 KB |
1
|
in10.txt | AC | 14 ms | 624 KB |
1
|
in11.txt | AC | 16 ms | 584 KB |
1
|
in12.txt | AC | 21 ms | 548 KB |
1
|
in13.txt | AC | 23 ms | 512 KB |
1
|
in14.txt | AC | 13 ms | 596 KB |
1
|