Submission #27677
ソースコード
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 42 43 44 45 | #if 1 #include <iostream> #include <fstream> #include <string> #include <vector> #include <map> #include <set> #include <unordered_map> #include <unordered_set> #include <queue> #include <stack> #include <array> #include <deque> #include <algorithm> #include <utility> #include <cstdint> #include <functional> #include <iomanip> #include <numeric> #include <assert.h> #include <bitset> auto& in = std::cin; auto& out = std::cout; int main() { using std::endl; in.sync_with_stdio( false ); out.sync_with_stdio( false ); in.tie(nullptr); out.tie(nullptr); //真面目な方もね std::string s[3]; in >> s[0]>>s[1]>>s[2]; bool b = (s[0].size() == 5 && s[1].size() == 7 && s[2].size() == 5); size_t len[] = { s[0].size(), s[1].size(), s[2].size() }; std::sort(len, len + 3); out << ((len[0] == 5 && len[1] == 5 && len[2] == 7)? "YES" : "NO" )<< '\n' << (b ? "YES" : "NO" ) << '\n' ; return 0; } #endif |
ステータス
項目 | データ |
---|---|
問題 | 0712 - Nafmo、575Botを見る |
ユーザー名 | eiya |
投稿日時 | 2017-10-15 22:00:57 |
言語 | C++17 |
状態 | Accepted |
得点 | 1 |
ソースコード長 | 951 Byte |
最大実行時間 | 26 ms |
最大メモリ使用量 | 692 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 1 / 1 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
in02.txt | AC | 23 ms | 480 KB |
1
|
in04.txt | AC | 22 ms | 692 KB |
1
|
in05.txt | AC | 26 ms | 656 KB |
1
|
in07.txt | AC | 15 ms | 616 KB |
1
|
in08.txt | AC | 14 ms | 580 KB |
1
|
in09.txt | AC | 16 ms | 540 KB |
1
|
in10.txt | AC | 16 ms | 624 KB |
1
|
in11.txt | AC | 16 ms | 580 KB |
1
|
in12.txt | AC | 22 ms | 536 KB |
1
|
in13.txt | AC | 18 ms | 496 KB |
1
|
in14.txt | AC | 15 ms | 460 KB |
1
|