Submission #27673
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #include<iostream> #include<algorithm> using namespace std; #define REP(i,n) for(int i=0;i<(n);i++) int bot1[] = {5, 5, 7}, bot2[] = {5, 7, 5}; int main() { string a,b,c; cin >> a >> b >> c; int l1[3], l2[3] = {a.size(), b.size(), c.size()}; REP(i,3)l1[i]=l2[i]; sort(l1, l1+3); bool yes1 = true , yes2 = true ; REP(i,3)yes1&=l1[i]==bot1[i]; REP(i,3)yes2&=l2[i]==bot2[i]; cout << (yes1 ? "YES" : "NO" ) << endl; cout << (yes2 ? "YES" : "NO" ) << endl; } |
ステータス
項目 | データ |
---|---|
問題 | 0712 - Nafmo、575Botを見る |
ユーザー名 | luma |
投稿日時 | 2017-10-15 21:43:29 |
言語 | C++11 |
状態 | Accepted |
得点 | 1 |
ソースコード長 | 481 Byte |
最大実行時間 | 24 ms |
最大メモリ使用量 | 712 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 1 / 1 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
in02.txt | AC | 24 ms | 480 KB |
1
|
in04.txt | AC | 19 ms | 712 KB |
1
|
in05.txt | AC | 22 ms | 564 KB |
1
|
in07.txt | AC | 21 ms | 668 KB |
1
|
in08.txt | AC | 18 ms | 644 KB |
1
|
in09.txt | AC | 14 ms | 492 KB |
1
|
in10.txt | AC | 19 ms | 592 KB |
1
|
in11.txt | AC | 14 ms | 568 KB |
1
|
in12.txt | AC | 21 ms | 544 KB |
1
|
in13.txt | AC | 20 ms | 652 KB |
1
|
in14.txt | AC | 19 ms | 624 KB |
1
|