Submission #27703


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main()
{
string A, B, C;
cin >> A >> B >> C;
int temp[3] = {A.size(), B.size(), C.size()};
string real = (temp[0] == 5 && temp[1] == 7 && temp[2] == 5) ? "YES" : "NO";
sort(temp, temp + 3);
string bot = (temp[0] == 5 && temp[1] == 5 && temp[2] == 7) ? "YES" : "NO";
cout << bot << endl;
cout << real << endl;
}

ステータス

項目 データ
問題 0712 - Nafmo、575Botを見る
ユーザー名 pinebooks
投稿日時 2017-10-16 23:08:29
言語 C++17
状態 Accepted
得点 1
ソースコード長 448 Byte
最大実行時間 25 ms
最大メモリ使用量 584 KB

セット

セット 得点 Cases
1 ALL 1 / 1 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in02.txt AC 21 ms 476 KB
1
in04.txt AC 25 ms 452 KB
1
in05.txt AC 21 ms 424 KB
1
in07.txt AC 16 ms 404 KB
1
in08.txt AC 19 ms 508 KB
1
in09.txt AC 21 ms 480 KB
1
in10.txt AC 14 ms 584 KB
1
in11.txt AC 19 ms 560 KB
1
in12.txt AC 15 ms 540 KB
1
in13.txt AC 20 ms 512 KB
1
in14.txt AC 20 ms 484 KB
1