Submission #29661
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #include<bits/stdc++.h> using namespace std; int main(){ int a=0,b=0; string s[4],ans; for ( int i=0;i<3;i++){ cin>>s[i]; if (s[i].size()==5)a++; else if (s[i].size()==7)b++; } if (a==2&&b==1)cout<< "YES" <<endl; else cout<< "NO" <<endl; if (s[0].size()==5&&s[1].size()==7&&s[2].size()==5)ans= "YES" ; else ans= "NO" ; cout<<ans<<endl; return (0); } |
ステータス
項目 | データ |
---|---|
問題 | 0712 - Nafmo、575Botを見る |
ユーザー名 | r1705 |
投稿日時 | 2017-12-13 15:30:32 |
言語 | C++11 |
状態 | Accepted |
得点 | 1 |
ソースコード長 | 384 Byte |
最大実行時間 | 49 ms |
最大メモリ使用量 | 636 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 1 / 1 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
in02.txt | AC | 49 ms | 480 KB |
1
|
in04.txt | AC | 22 ms | 456 KB |
1
|
in05.txt | AC | 26 ms | 432 KB |
1
|
in07.txt | AC | 28 ms | 532 KB |
1
|
in08.txt | AC | 21 ms | 500 KB |
1
|
in09.txt | AC | 40 ms | 604 KB |
1
|
in10.txt | AC | 20 ms | 576 KB |
1
|
in11.txt | AC | 30 ms | 552 KB |
1
|
in12.txt | AC | 23 ms | 532 KB |
1
|
in13.txt | AC | 26 ms | 636 KB |
1
|
in14.txt | AC | 22 ms | 616 KB |
1
|