Submission #27669
ソースコード
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 39 40 41 | #include<iostream> #include<algorithm> #include<string> #include<vector> #include<queue> #include<map> #include<cstdio> #include<cstdlib> #include<cstring> using namespace std; int main(){ ios_base::sync_with_stdio( false ); string a[3]; int f = 0; int s = 0; for ( int i=0;i<3;i++){ cin >> a[i]; if (a[i].size() == 5){ f++; } else if (a[i].size() == 7){ s++; } } if (f == 2 && s == 1){ cout << "YES" << endl; } else { cout << "NO" << endl; } if (a[0].size() == 5 && a[1].size() == 7 && a[2].size() == 5){ cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; } |
ステータス
項目 | データ |
---|---|
問題 | 0712 - Nafmo、575Botを見る |
ユーザー名 | (✿´ ꒳ ` )*❀٭ |
投稿日時 | 2017-10-15 21:09:26 |
言語 | C++11 |
状態 | Accepted |
得点 | 1 |
ソースコード長 | 690 Byte |
最大実行時間 | 22 ms |
最大メモリ使用量 | 580 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 1 / 1 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
in02.txt | AC | 22 ms | 480 KB |
1
|
in04.txt | AC | 17 ms | 436 KB |
1
|
in05.txt | AC | 19 ms | 396 KB |
1
|
in07.txt | AC | 19 ms | 484 KB |
1
|
in08.txt | AC | 17 ms | 440 KB |
1
|
in09.txt | AC | 17 ms | 396 KB |
1
|
in10.txt | AC | 22 ms | 352 KB |
1
|
in11.txt | AC | 15 ms | 568 KB |
1
|
in12.txt | AC | 20 ms | 528 KB |
1
|
in13.txt | AC | 18 ms | 492 KB |
1
|
in14.txt | AC | 17 ms | 580 KB |
1
|