Submission #37199


ソースコード

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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import java.io.*;
import java.util.*;
import java.lang.*;
import java.math.*;
class Main{
static Scanner scan = new Scanner(System.in);
public static void main(String args[]){
List<Integer> list = new ArrayList<>();
list.add(getStr().length());
list.add(getStr().length());
list.add(getStr().length());
List<Integer> key = new ArrayList<>();
key.add(5);
key.add(7);
key.add(5);
int a = 0;
int b = 0;
for ( int t : list ) {
int y = 0;
for ( int u : key ) {
if ( t == u && y == 0) b++;
if ( t == u ) {
a++;
key.remove(y);
break;
}
y++;
}
}
if ( a == 3 ) print("YES");
else print("NO");
if ( b == 3 ) print("YES");
else print("NO");
}
static int getInt(){
return scan.nextInt();
}
static String getStr(){
return scan.next();
}
static String getLine(){
return scan.nextLine();
}
static char getChar(){
return getStr().charAt(0);
}
static long getLong(){
return scan.nextLong();
}
static double getDouble(){
return scan.nextDouble();
}
static BigInteger getBig(){
return scan.nextBigInteger();
}
static String reverseStr(String str){
StringBuffer sb = new StringBuffer(str);
return sb.reverse().toString();
}
static void print(Object a){
System.out.println(a);
}
static void printf(Object a){
System.out.print(a);
}
}

ステータス

項目 データ
問題 0712 - Nafmo、575Botを見る
ユーザー名 r1825
投稿日時 2018-06-13 16:41:22
言語 Java
状態 Accepted
得点 1
ソースコード長 1458 Byte
最大実行時間 139 ms
最大メモリ使用量 16316 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in02.txt AC 139 ms 16044 KB
1
in04.txt AC 96 ms 15292 KB
1
in05.txt AC 96 ms 15624 KB
1
in07.txt AC 117 ms 16000 KB
1
in08.txt AC 104 ms 16316 KB
1
in09.txt AC 106 ms 15080 KB
1
in10.txt AC 95 ms 15880 KB
1
in11.txt AC 125 ms 14792 KB
1
in12.txt AC 94 ms 15948 KB
1
in13.txt AC 100 ms 16048 KB
1
in14.txt AC 91 ms 15384 KB
1