Submission #39707


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include<bits/stdc++.h>
using namespace std;
int main(){
string a,b,c;
bool flag5=false;
bool flag7=false;
cin>>a>>b>>c;
if(a.size()==c.size() && c.size()==5 || b.size()==c.size() && c.size()==5 || a.size()==b.size() && b.size()==5) flag5=true;
if(a.size()==7 || b.size()==7 || c.size()==7 ) flag7=true;
if(flag5 && flag7) cout<<"YES"<<endl;
else cout<<"NO"<<endl;
if(a.size()==5 && b.size()==7 && c.size()==5) cout<<"YES"<<endl;
else cout<<"NO"<<endl;
return 0;
}

ステータス

項目 データ
問題 0712 - Nafmo、575Botを見る
ユーザー名 YUSAKU(ei1718)
投稿日時 2018-07-26 10:27:15
言語 C++11
状態 Accepted
得点 1
ソースコード長 521 Byte
最大実行時間 49 ms
最大メモリ使用量 664 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in02.txt AC 49 ms 476 KB
1
in04.txt AC 26 ms 448 KB
1
in05.txt AC 24 ms 556 KB
1
in07.txt AC 31 ms 664 KB
1
in08.txt AC 26 ms 508 KB
1
in09.txt AC 39 ms 480 KB
1
in10.txt AC 24 ms 580 KB
1
in11.txt AC 30 ms 428 KB
1
in12.txt AC 23 ms 404 KB
1
in13.txt AC 30 ms 508 KB
1
in14.txt AC 31 ms 616 KB
1