Submission #28395


ソースコード

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
#include<bits/stdc++.h>
using namespace std;
int main(){
char a[123],b[123],c[123];
int a_len,b_len,c_len,cnt5=0,cnt7=0;
scanf("%s %s %s",a,b,c);
a_len = strlen(a);
b_len = strlen(b);
c_len = strlen(c);
//printf("%d %d %d\n",a_len,b_len,c_len);
if(a_len==5) cnt5++;
if(b_len==5) cnt5++;
if(c_len==5) cnt5++;
if(a_len==7) cnt7++;
if(b_len==7) cnt7++;
if(c_len==7) cnt7++;
//printf("%d %d\n",cnt5,cnt7);
if(a_len==5 && b_len==7 && c_len==5 || cnt5==2 && cnt7==1){
puts("YES");
}else{
puts("NO");
}
if(a_len==5 && b_len==7 && c_len==5){
puts("YES");
}else{
puts("NO");
}
return 0;
}

ステータス

項目 データ
問題 0712 - Nafmo、575Botを見る
ユーザー名 ei1711
投稿日時 2017-11-06 19:04:12
言語 C++11
状態 Accepted
得点 1
ソースコード長 725 Byte
最大実行時間 23 ms
最大メモリ使用量 620 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in02.txt AC 20 ms 476 KB
1
in04.txt AC 13 ms 452 KB
1
in05.txt AC 18 ms 424 KB
1
in07.txt AC 17 ms 400 KB
1
in08.txt AC 23 ms 372 KB
1
in09.txt AC 19 ms 480 KB
1
in10.txt AC 20 ms 328 KB
1
in11.txt AC 14 ms 560 KB
1
in12.txt AC 20 ms 540 KB
1
in13.txt AC 21 ms 512 KB
1
in14.txt AC 18 ms 620 KB
1