Submission #27674


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "bits/stdc++.h"
#define in std::cin
#define out std::cout
#define rep(i,N) for(int i=0;i<N;++i)
typedef long long int LL;
std::string S[3];
bool bot, real;
int main()
{
in >> S[0] >> S[1] >> S[2];
real = S[0].length() == 5 && S[1].length() == 7 && S[2].length() == 5;
std::sort(S, S + 3, [](const auto l, const auto r) {return l.length() < r.length(); });
bot = S[0].length() == 5 && S[1].length() == 5 && S[2].length() == 7;
out << (bot ? "YES" : "NO") << std::endl << (real ? "YES" : "NO") << std::endl;
return 0;
}

ステータス

項目 データ
問題 0712 - Nafmo、575Botを見る
ユーザー名 Bwambocos
投稿日時 2017-10-15 21:45:45
言語 C++17
状態 Accepted
得点 1
ソースコード長 556 Byte
最大実行時間 26 ms
最大メモリ使用量 608 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in02.txt AC 22 ms 608 KB
1
in04.txt AC 16 ms 576 KB
1
in05.txt AC 16 ms 552 KB
1
in07.txt AC 12 ms 528 KB
1
in08.txt AC 22 ms 504 KB
1
in09.txt AC 14 ms 480 KB
1
in10.txt AC 14 ms 580 KB
1
in11.txt AC 16 ms 556 KB
1
in12.txt AC 21 ms 404 KB
1
in13.txt AC 26 ms 380 KB
1
in14.txt AC 20 ms 488 KB
1