Submission #27670


ソースコード

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
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
String str = scan.nextLine();
String[] a = str.split(" ");
int f = 0;
int s = 0;
for(int i=0;i<a.length;++i){
if(a[i].length() == 5){
f++;
} else if(a[i].length() == 7){
s++;
}
}
if(f == 2 && s == 1){
System.out.println("YES");
} else {
System.out.println("NO");
}
if(a[0].length() == 5 && a[1].length() == 7 && a[2].length() == 5){
System.out.println("YES");
} else {
System.out.println("NO");
}
return;
}
}

ステータス

項目 データ
問題 0712 - Nafmo、575Botを見る
ユーザー名 (✿´ ꒳ ` )*❀٭
投稿日時 2017-10-15 21:24:51
言語 Java
状態 Accepted
得点 1
ソースコード長 688 Byte
最大実行時間 81 ms
最大メモリ使用量 16096 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in02.txt AC 81 ms 14892 KB
1
in04.txt AC 62 ms 14600 KB
1
in05.txt AC 69 ms 15960 KB
1
in07.txt AC 72 ms 14676 KB
1
in08.txt AC 66 ms 16096 KB
1
in09.txt AC 69 ms 15684 KB
1
in10.txt AC 63 ms 15668 KB
1
in11.txt AC 63 ms 15760 KB
1
in12.txt AC 63 ms 15340 KB
1
in13.txt AC 64 ms 16008 KB
1
in14.txt AC 65 ms 16032 KB
1