node_ids
listlengths 4
1.4k
| edge_index
listlengths 1
2.22k
| text
listlengths 4
1.4k
| source
stringlengths 14
427k
|
---|---|---|---|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
17,
17,
30,
40,
13,
14,
2,
4,
18,
13,
17,
17,
30,
40,
13,
14,
2,
4,
18,
13,
17,
17,
30,
40,
13,
14,
2,
4,
18,
13,
17,
17,
30,
40,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
125,
5
],
[
125,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
44,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
51,
56
],
[
50,
57
],
[
57,
58
],
[
58,
59
],
[
50,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
61,
66
],
[
60,
67
],
[
67,
68
],
[
68,
69
],
[
60,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
71,
76
],
[
70,
77
],
[
77,
78
],
[
78,
79
],
[
70,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
81,
86
],
[
80,
87
],
[
87,
88
],
[
88,
89
],
[
8,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
8,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
103,
104
],
[
103,
105
],
[
8,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
8,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
119,
120
],
[
119,
121
],
[
6,
122
],
[
122,
123
],
[
0,
124
],
[
124,
125
],
[
124,
126
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n sc.nextLine();\n int c0 = 0;\n int c1 = 0;\n int c2 = 0;\n int c3 = 0;\n for (int i = 0; i < n; i++) {\n String s = sc.nextLine();\n if(s.compareTo(\"AC\") == 0){\n c0 ++;\n }else if(s.compareTo(\"WA\") == 0){\n c1 ++;\n }else if(s.compareTo(\"TLE\") == 0){\n c2 ++;\n }else if(s.compareTo(\"RE\") == 0){\n c3 ++;\n }\n }\n System.out.println(\"AC x \" + c0);\n System.out.println(\"WA x \" + c1);\n System.out.println(\"TLE x \" + c2);\n System.out.println(\"RE x \" + c3);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n sc.nextLine();\n int c0 = 0;\n int c1 = 0;\n int c2 = 0;\n int c3 = 0;\n for (int i = 0; i < n; i++) {\n String s = sc.nextLine();\n if(s.compareTo(\"AC\") == 0){\n c0 ++;\n }else if(s.compareTo(\"WA\") == 0){\n c1 ++;\n }else if(s.compareTo(\"TLE\") == 0){\n c2 ++;\n }else if(s.compareTo(\"RE\") == 0){\n c3 ++;\n }\n }\n System.out.println(\"AC x \" + c0);\n System.out.println(\"WA x \" + c1);\n System.out.println(\"TLE x \" + c2);\n System.out.println(\"RE x \" + c3);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n sc.nextLine();\n int c0 = 0;\n int c1 = 0;\n int c2 = 0;\n int c3 = 0;\n for (int i = 0; i < n; i++) {\n String s = sc.nextLine();\n if(s.compareTo(\"AC\") == 0){\n c0 ++;\n }else if(s.compareTo(\"WA\") == 0){\n c1 ++;\n }else if(s.compareTo(\"TLE\") == 0){\n c2 ++;\n }else if(s.compareTo(\"RE\") == 0){\n c3 ++;\n }\n }\n System.out.println(\"AC x \" + c0);\n System.out.println(\"WA x \" + c1);\n System.out.println(\"TLE x \" + c2);\n System.out.println(\"RE x \" + c3);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n sc.nextLine();\n int c0 = 0;\n int c1 = 0;\n int c2 = 0;\n int c3 = 0;\n for (int i = 0; i < n; i++) {\n String s = sc.nextLine();\n if(s.compareTo(\"AC\") == 0){\n c0 ++;\n }else if(s.compareTo(\"WA\") == 0){\n c1 ++;\n }else if(s.compareTo(\"TLE\") == 0){\n c2 ++;\n }else if(s.compareTo(\"RE\") == 0){\n c3 ++;\n }\n }\n System.out.println(\"AC x \" + c0);\n System.out.println(\"WA x \" + c1);\n System.out.println(\"TLE x \" + c2);\n System.out.println(\"RE x \" + c3);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int c0 = 0;",
"c0",
"0",
"int c1 = 0;",
"c1",
"0",
"int c2 = 0;",
"c2",
"0",
"int c3 = 0;",
"c3",
"0",
"for (int i = 0; i < n; i++) {\n String s = sc.nextLine();\n if(s.compareTo(\"AC\") == 0){\n c0 ++;\n }else if(s.compareTo(\"WA\") == 0){\n c1 ++;\n }else if(s.compareTo(\"TLE\") == 0){\n c2 ++;\n }else if(s.compareTo(\"RE\") == 0){\n c3 ++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String s = sc.nextLine();\n if(s.compareTo(\"AC\") == 0){\n c0 ++;\n }else if(s.compareTo(\"WA\") == 0){\n c1 ++;\n }else if(s.compareTo(\"TLE\") == 0){\n c2 ++;\n }else if(s.compareTo(\"RE\") == 0){\n c3 ++;\n }\n }",
"{\n String s = sc.nextLine();\n if(s.compareTo(\"AC\") == 0){\n c0 ++;\n }else if(s.compareTo(\"WA\") == 0){\n c1 ++;\n }else if(s.compareTo(\"TLE\") == 0){\n c2 ++;\n }else if(s.compareTo(\"RE\") == 0){\n c3 ++;\n }\n }",
"String s = sc.nextLine();",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if(s.compareTo(\"AC\") == 0){\n c0 ++;\n }else if(s.compareTo(\"WA\") == 0){\n c1 ++;\n }else if(s.compareTo(\"TLE\") == 0){\n c2 ++;\n }else if(s.compareTo(\"RE\") == 0){\n c3 ++;\n }",
"s.compareTo(\"AC\") == 0",
"s.compareTo(\"AC\")",
"s.compareTo",
"s",
"\"AC\"",
"0",
"{\n c0 ++;\n }",
"c0 ++",
"c0",
"if(s.compareTo(\"WA\") == 0){\n c1 ++;\n }else if(s.compareTo(\"TLE\") == 0){\n c2 ++;\n }else if(s.compareTo(\"RE\") == 0){\n c3 ++;\n }",
"s.compareTo(\"WA\") == 0",
"s.compareTo(\"WA\")",
"s.compareTo",
"s",
"\"WA\"",
"0",
"{\n c1 ++;\n }",
"c1 ++",
"c1",
"if(s.compareTo(\"TLE\") == 0){\n c2 ++;\n }else if(s.compareTo(\"RE\") == 0){\n c3 ++;\n }",
"s.compareTo(\"TLE\") == 0",
"s.compareTo(\"TLE\")",
"s.compareTo",
"s",
"\"TLE\"",
"0",
"{\n c2 ++;\n }",
"c2 ++",
"c2",
"if(s.compareTo(\"RE\") == 0){\n c3 ++;\n }",
"s.compareTo(\"RE\") == 0",
"s.compareTo(\"RE\")",
"s.compareTo",
"s",
"\"RE\"",
"0",
"{\n c3 ++;\n }",
"c3 ++",
"c3",
"System.out.println(\"AC x \" + c0)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + c0",
"\"AC x \"",
"c0",
"System.out.println(\"WA x \" + c1)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + c1",
"\"WA x \"",
"c1",
"System.out.println(\"TLE x \" + c2)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + c2",
"\"TLE x \"",
"c2",
"System.out.println(\"RE x \" + c3)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + c3",
"\"RE x \"",
"c3",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n sc.nextLine();\n int c0 = 0;\n int c1 = 0;\n int c2 = 0;\n int c3 = 0;\n for (int i = 0; i < n; i++) {\n String s = sc.nextLine();\n if(s.compareTo(\"AC\") == 0){\n c0 ++;\n }else if(s.compareTo(\"WA\") == 0){\n c1 ++;\n }else if(s.compareTo(\"TLE\") == 0){\n c2 ++;\n }else if(s.compareTo(\"RE\") == 0){\n c3 ++;\n }\n }\n System.out.println(\"AC x \" + c0);\n System.out.println(\"WA x \" + c1);\n System.out.println(\"TLE x \" + c2);\n System.out.println(\"RE x \" + c3);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n sc.nextLine();\n int c0 = 0;\n int c1 = 0;\n int c2 = 0;\n int c3 = 0;\n for (int i = 0; i < n; i++) {\n String s = sc.nextLine();\n if(s.compareTo(\"AC\") == 0){\n c0 ++;\n }else if(s.compareTo(\"WA\") == 0){\n c1 ++;\n }else if(s.compareTo(\"TLE\") == 0){\n c2 ++;\n }else if(s.compareTo(\"RE\") == 0){\n c3 ++;\n }\n }\n System.out.println(\"AC x \" + c0);\n System.out.println(\"WA x \" + c1);\n System.out.println(\"TLE x \" + c2);\n System.out.println(\"RE x \" + c3);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
sc.nextLine();
int c0 = 0;
int c1 = 0;
int c2 = 0;
int c3 = 0;
for (int i = 0; i < n; i++) {
String s = sc.nextLine();
if(s.compareTo("AC") == 0){
c0 ++;
}else if(s.compareTo("WA") == 0){
c1 ++;
}else if(s.compareTo("TLE") == 0){
c2 ++;
}else if(s.compareTo("RE") == 0){
c3 ++;
}
}
System.out.println("AC x " + c0);
System.out.println("WA x " + c1);
System.out.println("TLE x " + c2);
System.out.println("RE x " + c3);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
17,
13,
40,
18,
13,
17,
14,
4,
18,
17,
13,
40,
18,
13,
17,
14,
4,
18,
17,
13,
40,
18,
13,
17,
14,
4,
18,
17,
13,
40,
18,
13,
17,
4,
18,
4,
18,
4,
18,
13,
17,
18,
13,
17,
4,
18,
4,
18,
4,
18,
13,
17,
18,
13,
17,
4,
18,
4,
18,
4,
18,
13,
17,
18,
13,
17,
4,
18,
4,
18,
4,
18,
13,
17,
18,
13,
17,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
17,
41,
13,
17,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
38,
5,
13,
30,
37,
20,
30,
4,
18,
18,
36,
13,
13,
6,
13,
41,
13,
41,
13,
17,
41,
13,
17,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
4,
13,
20,
23,
13,
12,
13,
30,
38,
5,
13,
30,
37,
20,
30,
4,
18,
13,
13,
0,
13,
17,
29,
36,
23,
13,
12,
13,
30,
38,
5,
13,
30,
37,
20,
30,
4,
18,
13,
13,
17,
4,
18,
13,
0,
13,
17,
29,
36,
23,
13,
12,
13,
30,
14,
40,
13,
30,
4,
13,
17,
29,
4,
13,
13,
23,
13,
12,
13,
30,
29,
4,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
13,
4,
18,
13,
0,
13,
17,
14,
13,
30,
38,
5,
13,
30,
37,
20,
30,
4,
18,
13,
29,
36,
12,
13,
30,
38,
5,
13,
30,
37,
20,
30,
4,
18,
13,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
28,
29
],
[
28,
30
],
[
0,
31
],
[
31,
32
],
[
31,
33
],
[
0,
34
],
[
34,
35
],
[
34,
36
],
[
0,
37
],
[
37,
38
],
[
37,
39
],
[
0,
40
],
[
40,
41
],
[
40,
42
],
[
0,
43
],
[
407,
44
],
[
407,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
47,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
47,
58
],
[
58,
59
],
[
58,
60
],
[
47,
61
],
[
61,
62
],
[
61,
63
],
[
47,
64
],
[
64,
65
],
[
64,
66
],
[
47,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
67,
71
],
[
67,
72
],
[
47,
73
],
[
73,
74
],
[
74,
75
],
[
45,
76
],
[
76,
77
],
[
407,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
82,
88
],
[
88,
89
],
[
88,
90
],
[
82,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
97,
98
],
[
97,
99
],
[
92,
100
],
[
100,
101
],
[
101,
102
],
[
92,
103
],
[
104,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
104,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
110,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
104,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
119,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
104,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
129,
132
],
[
128,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
104,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
138,
141
],
[
137,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
82,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
150,
153
],
[
148,
154
],
[
154,
155
],
[
154,
156
],
[
82,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
161,
164
],
[
159,
165
],
[
165,
166
],
[
165,
167
],
[
82,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
172,
175
],
[
170,
176
],
[
176,
177
],
[
176,
178
],
[
82,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
183,
186
],
[
181,
187
],
[
187,
188
],
[
187,
189
],
[
80,
190
],
[
190,
191
],
[
80,
192
],
[
192,
193
],
[
80,
194
],
[
194,
195
],
[
407,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
198,
200
],
[
196,
201
],
[
201,
202
],
[
201,
203
],
[
196,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
204,
210
],
[
210,
211
],
[
196,
212
],
[
212,
213
],
[
212,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
217,
219
],
[
216,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
215,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
228,
229
],
[
229,
230
],
[
225,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
214,
235
],
[
235,
236
],
[
236,
237
],
[
237,
238
],
[
196,
239
],
[
239,
240
],
[
239,
241
],
[
241,
242
],
[
242,
243
],
[
243,
244
],
[
244,
245
],
[
243,
246
],
[
246,
247
],
[
196,
248
],
[
248,
249
],
[
248,
250
],
[
250,
251
],
[
251,
252
],
[
252,
253
],
[
252,
254
],
[
254,
255
],
[
255,
256
],
[
251,
257
],
[
257,
258
],
[
258,
259
],
[
259,
260
],
[
260,
261
],
[
260,
262
],
[
196,
263
],
[
407,
264
],
[
264,
265
],
[
264,
266
],
[
266,
267
],
[
264,
268
],
[
268,
269
],
[
268,
270
],
[
264,
271
],
[
271,
272
],
[
271,
273
],
[
264,
274
],
[
274,
275
],
[
274,
276
],
[
276,
277
],
[
277,
278
],
[
278,
279
],
[
278,
280
],
[
277,
281
],
[
274,
282
],
[
282,
283
],
[
264,
284
],
[
284,
285
],
[
284,
286
],
[
286,
287
],
[
287,
288
],
[
287,
289
],
[
284,
290
],
[
290,
291
],
[
264,
292
],
[
292,
293
],
[
292,
294
],
[
294,
295
],
[
295,
296
],
[
296,
297
],
[
296,
298
],
[
298,
299
],
[
299,
300
],
[
295,
301
],
[
301,
302
],
[
302,
303
],
[
303,
304
],
[
302,
305
],
[
301,
306
],
[
306,
307
],
[
306,
308
],
[
294,
309
],
[
309,
310
],
[
292,
311
],
[
311,
312
],
[
264,
313
],
[
313,
314
],
[
313,
315
],
[
315,
316
],
[
316,
317
],
[
317,
318
],
[
317,
319
],
[
319,
320
],
[
320,
321
],
[
316,
322
],
[
322,
323
],
[
323,
324
],
[
324,
325
],
[
323,
326
],
[
323,
327
],
[
323,
328
],
[
328,
329
],
[
329,
330
],
[
322,
331
],
[
331,
332
],
[
331,
333
],
[
315,
334
],
[
334,
335
],
[
313,
336
],
[
336,
337
],
[
264,
338
],
[
338,
339
],
[
338,
340
],
[
340,
341
],
[
341,
342
],
[
342,
343
],
[
341,
344
],
[
344,
345
],
[
345,
346
],
[
345,
347
],
[
340,
348
],
[
348,
349
],
[
349,
350
],
[
349,
351
],
[
338,
352
],
[
352,
353
],
[
264,
354
],
[
354,
355
],
[
354,
356
],
[
356,
357
],
[
357,
358
],
[
358,
359
],
[
358,
360
],
[
360,
361
],
[
361,
362
],
[
360,
363
],
[
354,
364
],
[
364,
365
],
[
264,
366
],
[
366,
367
],
[
366,
368
],
[
368,
369
],
[
369,
370
],
[
369,
371
],
[
371,
372
],
[
372,
373
],
[
368,
374
],
[
374,
375
],
[
374,
376
],
[
368,
377
],
[
377,
378
],
[
377,
379
],
[
379,
380
],
[
380,
381
],
[
381,
382
],
[
381,
383
],
[
383,
384
],
[
384,
385
],
[
380,
386
],
[
386,
387
],
[
387,
388
],
[
388,
389
],
[
368,
390
],
[
390,
391
],
[
264,
392
],
[
392,
393
],
[
392,
394
],
[
394,
395
],
[
395,
396
],
[
396,
397
],
[
396,
398
],
[
398,
399
],
[
399,
400
],
[
395,
401
],
[
401,
402
],
[
402,
403
],
[
403,
404
],
[
264,
405
],
[
0,
406
],
[
406,
407
],
[
406,
408
]
]
| [
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.BufferedOutputStream;\nimport java.io.UncheckedIOException;\nimport java.nio.charset.Charset;\nimport java.util.StringTokenizer;\nimport java.io.Writer;\nimport java.io.OutputStreamWriter;\nimport java.io.BufferedReader;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author mikit\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n LightScanner in = new LightScanner(inputStream);\n LightWriter out = new LightWriter(outputStream);\n BJudgeStatusSummary solver = new BJudgeStatusSummary();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BJudgeStatusSummary {\n public void solve(int testNumber, LightScanner in, LightWriter out) {\n int n = in.ints();\n int[] c = new int[4];\n for (int i = 0; i < n; i++) {\n String s = in.string();\n if (\"AC\".equals(s)) c[0]++;\n if (\"WA\".equals(s)) c[1]++;\n if (\"TLE\".equals(s)) c[2]++;\n if (\"RE\".equals(s)) c[3]++;\n }\n out.ans(\"AC x\").ans(c[0]).ln();\n out.ans(\"WA x\").ans(c[1]).ln();\n out.ans(\"TLE x\").ans(c[2]).ln();\n out.ans(\"RE x\").ans(c[3]).ln();\n }\n\n }\n\n static class LightScanner implements AutoCloseable {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public LightScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }\n\n public String string() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int ints() {\n return Integer.parseInt(string());\n }\n\n public void close() {\n try {\n this.reader.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n }\n\n static class LightWriter implements AutoCloseable {\n private final Writer out;\n private boolean autoflush = false;\n private boolean breaked = true;\n\n public LightWriter(Writer out) {\n this.out = out;\n }\n\n public LightWriter(OutputStream out) {\n this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()));\n }\n\n public LightWriter print(char c) {\n try {\n out.write(c);\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter print(String s) {\n try {\n out.write(s, 0, s.length());\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter ans(String s) {\n if (!breaked) {\n print(' ');\n }\n return print(s);\n }\n\n public LightWriter ans(int i) {\n return ans(Integer.toString(i));\n }\n\n public LightWriter ln() {\n print(System.lineSeparator());\n breaked = true;\n if (autoflush) {\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n return this;\n }\n\n public void close() {\n try {\n out.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n }\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.BufferedOutputStream;",
"BufferedOutputStream",
"java.io",
"import java.io.UncheckedIOException;",
"UncheckedIOException",
"java.io",
"import java.nio.charset.Charset;",
"Charset",
"java.nio.charset",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.io.Writer;",
"Writer",
"java.io",
"import java.io.OutputStreamWriter;",
"OutputStreamWriter",
"java.io",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n LightScanner in = new LightScanner(inputStream);\n LightWriter out = new LightWriter(outputStream);\n BJudgeStatusSummary solver = new BJudgeStatusSummary();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BJudgeStatusSummary {\n public void solve(int testNumber, LightScanner in, LightWriter out) {\n int n = in.ints();\n int[] c = new int[4];\n for (int i = 0; i < n; i++) {\n String s = in.string();\n if (\"AC\".equals(s)) c[0]++;\n if (\"WA\".equals(s)) c[1]++;\n if (\"TLE\".equals(s)) c[2]++;\n if (\"RE\".equals(s)) c[3]++;\n }\n out.ans(\"AC x\").ans(c[0]).ln();\n out.ans(\"WA x\").ans(c[1]).ln();\n out.ans(\"TLE x\").ans(c[2]).ln();\n out.ans(\"RE x\").ans(c[3]).ln();\n }\n\n }\n\n static class LightScanner implements AutoCloseable {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public LightScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }\n\n public String string() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int ints() {\n return Integer.parseInt(string());\n }\n\n public void close() {\n try {\n this.reader.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n }\n\n static class LightWriter implements AutoCloseable {\n private final Writer out;\n private boolean autoflush = false;\n private boolean breaked = true;\n\n public LightWriter(Writer out) {\n this.out = out;\n }\n\n public LightWriter(OutputStream out) {\n this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()));\n }\n\n public LightWriter print(char c) {\n try {\n out.write(c);\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter print(String s) {\n try {\n out.write(s, 0, s.length());\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter ans(String s) {\n if (!breaked) {\n print(' ');\n }\n return print(s);\n }\n\n public LightWriter ans(int i) {\n return ans(Integer.toString(i));\n }\n\n public LightWriter ln() {\n print(System.lineSeparator());\n breaked = true;\n if (autoflush) {\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n return this;\n }\n\n public void close() {\n try {\n out.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n LightScanner in = new LightScanner(inputStream);\n LightWriter out = new LightWriter(outputStream);\n BJudgeStatusSummary solver = new BJudgeStatusSummary();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n LightScanner in = new LightScanner(inputStream);\n LightWriter out = new LightWriter(outputStream);\n BJudgeStatusSummary solver = new BJudgeStatusSummary();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"LightScanner in = new LightScanner(inputStream);",
"in",
"new LightScanner(inputStream)",
"LightWriter out = new LightWriter(outputStream);",
"out",
"new LightWriter(outputStream)",
"BJudgeStatusSummary solver = new BJudgeStatusSummary();",
"solver",
"new BJudgeStatusSummary()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class BJudgeStatusSummary {\n public void solve(int testNumber, LightScanner in, LightWriter out) {\n int n = in.ints();\n int[] c = new int[4];\n for (int i = 0; i < n; i++) {\n String s = in.string();\n if (\"AC\".equals(s)) c[0]++;\n if (\"WA\".equals(s)) c[1]++;\n if (\"TLE\".equals(s)) c[2]++;\n if (\"RE\".equals(s)) c[3]++;\n }\n out.ans(\"AC x\").ans(c[0]).ln();\n out.ans(\"WA x\").ans(c[1]).ln();\n out.ans(\"TLE x\").ans(c[2]).ln();\n out.ans(\"RE x\").ans(c[3]).ln();\n }\n\n }",
"BJudgeStatusSummary",
"public void solve(int testNumber, LightScanner in, LightWriter out) {\n int n = in.ints();\n int[] c = new int[4];\n for (int i = 0; i < n; i++) {\n String s = in.string();\n if (\"AC\".equals(s)) c[0]++;\n if (\"WA\".equals(s)) c[1]++;\n if (\"TLE\".equals(s)) c[2]++;\n if (\"RE\".equals(s)) c[3]++;\n }\n out.ans(\"AC x\").ans(c[0]).ln();\n out.ans(\"WA x\").ans(c[1]).ln();\n out.ans(\"TLE x\").ans(c[2]).ln();\n out.ans(\"RE x\").ans(c[3]).ln();\n }",
"solve",
"{\n int n = in.ints();\n int[] c = new int[4];\n for (int i = 0; i < n; i++) {\n String s = in.string();\n if (\"AC\".equals(s)) c[0]++;\n if (\"WA\".equals(s)) c[1]++;\n if (\"TLE\".equals(s)) c[2]++;\n if (\"RE\".equals(s)) c[3]++;\n }\n out.ans(\"AC x\").ans(c[0]).ln();\n out.ans(\"WA x\").ans(c[1]).ln();\n out.ans(\"TLE x\").ans(c[2]).ln();\n out.ans(\"RE x\").ans(c[3]).ln();\n }",
"int n = in.ints();",
"n",
"in.ints()",
"in.ints",
"in",
"int[] c = new int[4];",
"c",
"new int[4]",
"4",
"for (int i = 0; i < n; i++) {\n String s = in.string();\n if (\"AC\".equals(s)) c[0]++;\n if (\"WA\".equals(s)) c[1]++;\n if (\"TLE\".equals(s)) c[2]++;\n if (\"RE\".equals(s)) c[3]++;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String s = in.string();\n if (\"AC\".equals(s)) c[0]++;\n if (\"WA\".equals(s)) c[1]++;\n if (\"TLE\".equals(s)) c[2]++;\n if (\"RE\".equals(s)) c[3]++;\n }",
"{\n String s = in.string();\n if (\"AC\".equals(s)) c[0]++;\n if (\"WA\".equals(s)) c[1]++;\n if (\"TLE\".equals(s)) c[2]++;\n if (\"RE\".equals(s)) c[3]++;\n }",
"String s = in.string();",
"s",
"in.string()",
"in.string",
"in",
"if (\"AC\".equals(s)) c[0]++;",
"\"AC\".equals(s)",
"\"AC\".equals",
"\"AC\"",
"s",
"c[0]++",
"c[0]",
"c",
"0",
"if (\"WA\".equals(s)) c[1]++;",
"\"WA\".equals(s)",
"\"WA\".equals",
"\"WA\"",
"s",
"c[1]++",
"c[1]",
"c",
"1",
"if (\"TLE\".equals(s)) c[2]++;",
"\"TLE\".equals(s)",
"\"TLE\".equals",
"\"TLE\"",
"s",
"c[2]++",
"c[2]",
"c",
"2",
"if (\"RE\".equals(s)) c[3]++;",
"\"RE\".equals(s)",
"\"RE\".equals",
"\"RE\"",
"s",
"c[3]++",
"c[3]",
"c",
"3",
"out.ans(\"AC x\").ans(c[0]).ln()",
"out.ans(\"AC x\").ans(c[0]).ln",
"out.ans(\"AC x\").ans(c[0])",
"out.ans(\"AC x\").ans",
"out.ans(\"AC x\")",
"out.ans",
"out",
"\"AC x\"",
"c[0]",
"c",
"0",
"out.ans(\"WA x\").ans(c[1]).ln()",
"out.ans(\"WA x\").ans(c[1]).ln",
"out.ans(\"WA x\").ans(c[1])",
"out.ans(\"WA x\").ans",
"out.ans(\"WA x\")",
"out.ans",
"out",
"\"WA x\"",
"c[1]",
"c",
"1",
"out.ans(\"TLE x\").ans(c[2]).ln()",
"out.ans(\"TLE x\").ans(c[2]).ln",
"out.ans(\"TLE x\").ans(c[2])",
"out.ans(\"TLE x\").ans",
"out.ans(\"TLE x\")",
"out.ans",
"out",
"\"TLE x\"",
"c[2]",
"c",
"2",
"out.ans(\"RE x\").ans(c[3]).ln()",
"out.ans(\"RE x\").ans(c[3]).ln",
"out.ans(\"RE x\").ans(c[3])",
"out.ans(\"RE x\").ans",
"out.ans(\"RE x\")",
"out.ans",
"out",
"\"RE x\"",
"c[3]",
"c",
"3",
"int testNumber",
"testNumber",
"LightScanner in",
"in",
"LightWriter out",
"out",
"static class LightScanner implements AutoCloseable {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public LightScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }\n\n public String string() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int ints() {\n return Integer.parseInt(string());\n }\n\n public void close() {\n try {\n this.reader.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n }",
"LightScanner",
"private BufferedReader reader = null;",
"reader",
"null",
"private StringTokenizer tokenizer = null;",
"tokenizer",
"null",
"public LightScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }",
"LightScanner",
"{\n reader = new BufferedReader(new InputStreamReader(in));\n }",
"reader = new BufferedReader(new InputStreamReader(in))",
"reader",
"new BufferedReader(new InputStreamReader(in))",
"InputStream in",
"in",
"public String string() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"string",
"{\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }",
"try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }",
"catch (IOException e) {\n throw new UncheckedIOException(e);\n }",
"IOException e",
"{\n throw new UncheckedIOException(e);\n }",
"throw new UncheckedIOException(e);",
"new UncheckedIOException(e)",
"{\n tokenizer = new StringTokenizer(reader.readLine());\n }",
"tokenizer = new StringTokenizer(reader.readLine())",
"tokenizer",
"new StringTokenizer(reader.readLine())",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"public int ints() {\n return Integer.parseInt(string());\n }",
"ints",
"{\n return Integer.parseInt(string());\n }",
"return Integer.parseInt(string());",
"Integer.parseInt(string())",
"Integer.parseInt",
"Integer",
"string()",
"string",
"public void close() {\n try {\n this.reader.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }",
"close",
"{\n try {\n this.reader.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }",
"try {\n this.reader.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"IOException ex",
"{\n throw new UncheckedIOException(ex);\n }",
"throw new UncheckedIOException(ex);",
"new UncheckedIOException(ex)",
"{\n this.reader.close();\n }",
"this.reader.close()",
"this.reader.close",
"this.reader",
"this",
"this.reader",
"AutoCloseable",
"static class LightWriter implements AutoCloseable {\n private final Writer out;\n private boolean autoflush = false;\n private boolean breaked = true;\n\n public LightWriter(Writer out) {\n this.out = out;\n }\n\n public LightWriter(OutputStream out) {\n this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()));\n }\n\n public LightWriter print(char c) {\n try {\n out.write(c);\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter print(String s) {\n try {\n out.write(s, 0, s.length());\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter ans(String s) {\n if (!breaked) {\n print(' ');\n }\n return print(s);\n }\n\n public LightWriter ans(int i) {\n return ans(Integer.toString(i));\n }\n\n public LightWriter ln() {\n print(System.lineSeparator());\n breaked = true;\n if (autoflush) {\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n return this;\n }\n\n public void close() {\n try {\n out.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n }",
"LightWriter",
"private final Writer out;",
"out",
"private boolean autoflush = false;",
"autoflush",
"false",
"private boolean breaked = true;",
"breaked",
"true",
"public LightWriter(Writer out) {\n this.out = out;\n }",
"LightWriter",
"{\n this.out = out;\n }",
"this.out = out",
"this.out",
"this",
"this.out",
"out",
"Writer out",
"out",
"public LightWriter(OutputStream out) {\n this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()));\n }",
"LightWriter",
"{\n this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()));\n }",
"this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()))",
"this",
"new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset())",
"OutputStream out",
"out",
"public LightWriter print(char c) {\n try {\n out.write(c);\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }",
"print",
"{\n try {\n out.write(c);\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }",
"try {\n out.write(c);\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"IOException ex",
"{\n throw new UncheckedIOException(ex);\n }",
"throw new UncheckedIOException(ex);",
"new UncheckedIOException(ex)",
"{\n out.write(c);\n breaked = false;\n }",
"out.write(c)",
"out.write",
"out",
"c",
"breaked = false",
"breaked",
"false",
"return this;",
"this",
"char c",
"c",
"public LightWriter print(String s) {\n try {\n out.write(s, 0, s.length());\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }",
"print",
"{\n try {\n out.write(s, 0, s.length());\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }",
"try {\n out.write(s, 0, s.length());\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"IOException ex",
"{\n throw new UncheckedIOException(ex);\n }",
"throw new UncheckedIOException(ex);",
"new UncheckedIOException(ex)",
"{\n out.write(s, 0, s.length());\n breaked = false;\n }",
"out.write(s, 0, s.length())",
"out.write",
"out",
"s",
"0",
"s.length()",
"s.length",
"s",
"breaked = false",
"breaked",
"false",
"return this;",
"this",
"String s",
"s",
"public LightWriter ans(String s) {\n if (!breaked) {\n print(' ');\n }\n return print(s);\n }",
"ans",
"{\n if (!breaked) {\n print(' ');\n }\n return print(s);\n }",
"if (!breaked) {\n print(' ');\n }",
"!breaked",
"breaked",
"{\n print(' ');\n }",
"print(' ')",
"print",
"' '",
"return print(s);",
"print(s)",
"print",
"s",
"String s",
"s",
"public LightWriter ans(int i) {\n return ans(Integer.toString(i));\n }",
"ans",
"{\n return ans(Integer.toString(i));\n }",
"return ans(Integer.toString(i));",
"ans(Integer.toString(i))",
"ans",
"Integer.toString(i)",
"Integer.toString",
"Integer",
"i",
"int i",
"i",
"public LightWriter ln() {\n print(System.lineSeparator());\n breaked = true;\n if (autoflush) {\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n return this;\n }",
"ln",
"{\n print(System.lineSeparator());\n breaked = true;\n if (autoflush) {\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n return this;\n }",
"print(System.lineSeparator())",
"print",
"System.lineSeparator()",
"System.lineSeparator",
"System",
"breaked = true",
"breaked",
"true",
"if (autoflush) {\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }",
"autoflush",
"{\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }",
"try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"IOException ex",
"{\n throw new UncheckedIOException(ex);\n }",
"throw new UncheckedIOException(ex);",
"new UncheckedIOException(ex)",
"{\n out.flush();\n }",
"out.flush()",
"out.flush",
"out",
"return this;",
"this",
"public void close() {\n try {\n out.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }",
"close",
"{\n try {\n out.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }",
"try {\n out.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"IOException ex",
"{\n throw new UncheckedIOException(ex);\n }",
"throw new UncheckedIOException(ex);",
"new UncheckedIOException(ex)",
"{\n out.close();\n }",
"out.close()",
"out.close",
"out",
"AutoCloseable",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n LightScanner in = new LightScanner(inputStream);\n LightWriter out = new LightWriter(outputStream);\n BJudgeStatusSummary solver = new BJudgeStatusSummary();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BJudgeStatusSummary {\n public void solve(int testNumber, LightScanner in, LightWriter out) {\n int n = in.ints();\n int[] c = new int[4];\n for (int i = 0; i < n; i++) {\n String s = in.string();\n if (\"AC\".equals(s)) c[0]++;\n if (\"WA\".equals(s)) c[1]++;\n if (\"TLE\".equals(s)) c[2]++;\n if (\"RE\".equals(s)) c[3]++;\n }\n out.ans(\"AC x\").ans(c[0]).ln();\n out.ans(\"WA x\").ans(c[1]).ln();\n out.ans(\"TLE x\").ans(c[2]).ln();\n out.ans(\"RE x\").ans(c[3]).ln();\n }\n\n }\n\n static class LightScanner implements AutoCloseable {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public LightScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }\n\n public String string() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int ints() {\n return Integer.parseInt(string());\n }\n\n public void close() {\n try {\n this.reader.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n }\n\n static class LightWriter implements AutoCloseable {\n private final Writer out;\n private boolean autoflush = false;\n private boolean breaked = true;\n\n public LightWriter(Writer out) {\n this.out = out;\n }\n\n public LightWriter(OutputStream out) {\n this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()));\n }\n\n public LightWriter print(char c) {\n try {\n out.write(c);\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter print(String s) {\n try {\n out.write(s, 0, s.length());\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter ans(String s) {\n if (!breaked) {\n print(' ');\n }\n return print(s);\n }\n\n public LightWriter ans(int i) {\n return ans(Integer.toString(i));\n }\n\n public LightWriter ln() {\n print(System.lineSeparator());\n breaked = true;\n if (autoflush) {\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n return this;\n }\n\n public void close() {\n try {\n out.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n LightScanner in = new LightScanner(inputStream);\n LightWriter out = new LightWriter(outputStream);\n BJudgeStatusSummary solver = new BJudgeStatusSummary();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BJudgeStatusSummary {\n public void solve(int testNumber, LightScanner in, LightWriter out) {\n int n = in.ints();\n int[] c = new int[4];\n for (int i = 0; i < n; i++) {\n String s = in.string();\n if (\"AC\".equals(s)) c[0]++;\n if (\"WA\".equals(s)) c[1]++;\n if (\"TLE\".equals(s)) c[2]++;\n if (\"RE\".equals(s)) c[3]++;\n }\n out.ans(\"AC x\").ans(c[0]).ln();\n out.ans(\"WA x\").ans(c[1]).ln();\n out.ans(\"TLE x\").ans(c[2]).ln();\n out.ans(\"RE x\").ans(c[3]).ln();\n }\n\n }\n\n static class LightScanner implements AutoCloseable {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public LightScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }\n\n public String string() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int ints() {\n return Integer.parseInt(string());\n }\n\n public void close() {\n try {\n this.reader.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n }\n\n static class LightWriter implements AutoCloseable {\n private final Writer out;\n private boolean autoflush = false;\n private boolean breaked = true;\n\n public LightWriter(Writer out) {\n this.out = out;\n }\n\n public LightWriter(OutputStream out) {\n this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()));\n }\n\n public LightWriter print(char c) {\n try {\n out.write(c);\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter print(String s) {\n try {\n out.write(s, 0, s.length());\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter ans(String s) {\n if (!breaked) {\n print(' ');\n }\n return print(s);\n }\n\n public LightWriter ans(int i) {\n return ans(Integer.toString(i));\n }\n\n public LightWriter ln() {\n print(System.lineSeparator());\n breaked = true;\n if (autoflush) {\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n return this;\n }\n\n public void close() {\n try {\n out.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n }\n}",
"Main"
]
| import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.BufferedOutputStream;
import java.io.UncheckedIOException;
import java.nio.charset.Charset;
import java.util.StringTokenizer;
import java.io.Writer;
import java.io.OutputStreamWriter;
import java.io.BufferedReader;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author mikit
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
LightScanner in = new LightScanner(inputStream);
LightWriter out = new LightWriter(outputStream);
BJudgeStatusSummary solver = new BJudgeStatusSummary();
solver.solve(1, in, out);
out.close();
}
static class BJudgeStatusSummary {
public void solve(int testNumber, LightScanner in, LightWriter out) {
int n = in.ints();
int[] c = new int[4];
for (int i = 0; i < n; i++) {
String s = in.string();
if ("AC".equals(s)) c[0]++;
if ("WA".equals(s)) c[1]++;
if ("TLE".equals(s)) c[2]++;
if ("RE".equals(s)) c[3]++;
}
out.ans("AC x").ans(c[0]).ln();
out.ans("WA x").ans(c[1]).ln();
out.ans("TLE x").ans(c[2]).ln();
out.ans("RE x").ans(c[3]).ln();
}
}
static class LightScanner implements AutoCloseable {
private BufferedReader reader = null;
private StringTokenizer tokenizer = null;
public LightScanner(InputStream in) {
reader = new BufferedReader(new InputStreamReader(in));
}
public String string() {
while (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(reader.readLine());
} catch (IOException e) {
throw new UncheckedIOException(e);
}
}
return tokenizer.nextToken();
}
public int ints() {
return Integer.parseInt(string());
}
public void close() {
try {
this.reader.close();
} catch (IOException ex) {
throw new UncheckedIOException(ex);
}
}
}
static class LightWriter implements AutoCloseable {
private final Writer out;
private boolean autoflush = false;
private boolean breaked = true;
public LightWriter(Writer out) {
this.out = out;
}
public LightWriter(OutputStream out) {
this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()));
}
public LightWriter print(char c) {
try {
out.write(c);
breaked = false;
} catch (IOException ex) {
throw new UncheckedIOException(ex);
}
return this;
}
public LightWriter print(String s) {
try {
out.write(s, 0, s.length());
breaked = false;
} catch (IOException ex) {
throw new UncheckedIOException(ex);
}
return this;
}
public LightWriter ans(String s) {
if (!breaked) {
print(' ');
}
return print(s);
}
public LightWriter ans(int i) {
return ans(Integer.toString(i));
}
public LightWriter ln() {
print(System.lineSeparator());
breaked = true;
if (autoflush) {
try {
out.flush();
} catch (IOException ex) {
throw new UncheckedIOException(ex);
}
}
return this;
}
public void close() {
try {
out.close();
} catch (IOException ex) {
throw new UncheckedIOException(ex);
}
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
2,
4,
18,
13,
13,
17,
17,
4,
18,
13,
2,
17,
4,
18,
13,
17,
17,
4,
18,
13,
2,
17,
4,
18,
13,
17,
17,
4,
18,
13,
2,
17,
4,
18,
13,
17,
17,
4,
18,
13,
2,
17,
4,
18,
13,
17,
17,
4,
18,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
11,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
47,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
52,
56
],
[
51,
57
],
[
11,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
63,
67
],
[
11,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
73,
77
],
[
11,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
83,
87
],
[
11,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
93,
97
],
[
11,
98
],
[
98,
99
],
[
99,
100
],
[
11,
101
],
[
101,
102
],
[
102,
103
],
[
9,
104
],
[
104,
105
],
[
7,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
106,
110
],
[
110,
111
],
[
106,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
114,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
112,
125
],
[
125,
126
],
[
112,
127
],
[
127,
128
]
]
| [
"import java.util.*;\nimport java.io.*;\n\n\nclass Main {\n\n public static void main(String[] args) throws IOException\n {\n PrintWriter out = new PrintWriter(System.out);\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n int n = Integer.parseInt(br.readLine());\n HashMap<String , Integer> hm = new HashMap<>();\n for(int i = 0 ; i < n ; i++)\n {\n String ss = br.readLine();\n hm.put(ss , hm.getOrDefault(ss , 0)+1);\n }\n out.println(\"AC x \" + hm.getOrDefault(\"AC\" , 0) );\n out.println(\"WA x \" + hm.getOrDefault(\"WA\" , 0));\n out.println(\"TLE x \" + hm.getOrDefault(\"TLE\" , 0) );\n out.println(\"RE x \" + hm.getOrDefault(\"RE\" , 0) );\n\n out.flush();\n out.close();\n\n }\n\n static class pair{\n long x1;\n long x2;\n\n public pair(long x1 , long x2)\n {\n this.x1 = x1;\n this.x2 = x2;\n }\n\n }\n\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"class Main {\n\n public static void main(String[] args) throws IOException\n {\n PrintWriter out = new PrintWriter(System.out);\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n int n = Integer.parseInt(br.readLine());\n HashMap<String , Integer> hm = new HashMap<>();\n for(int i = 0 ; i < n ; i++)\n {\n String ss = br.readLine();\n hm.put(ss , hm.getOrDefault(ss , 0)+1);\n }\n out.println(\"AC x \" + hm.getOrDefault(\"AC\" , 0) );\n out.println(\"WA x \" + hm.getOrDefault(\"WA\" , 0));\n out.println(\"TLE x \" + hm.getOrDefault(\"TLE\" , 0) );\n out.println(\"RE x \" + hm.getOrDefault(\"RE\" , 0) );\n\n out.flush();\n out.close();\n\n }\n\n static class pair{\n long x1;\n long x2;\n\n public pair(long x1 , long x2)\n {\n this.x1 = x1;\n this.x2 = x2;\n }\n\n }\n\n}",
"Main",
"public static void main(String[] args) throws IOException\n {\n PrintWriter out = new PrintWriter(System.out);\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n int n = Integer.parseInt(br.readLine());\n HashMap<String , Integer> hm = new HashMap<>();\n for(int i = 0 ; i < n ; i++)\n {\n String ss = br.readLine();\n hm.put(ss , hm.getOrDefault(ss , 0)+1);\n }\n out.println(\"AC x \" + hm.getOrDefault(\"AC\" , 0) );\n out.println(\"WA x \" + hm.getOrDefault(\"WA\" , 0));\n out.println(\"TLE x \" + hm.getOrDefault(\"TLE\" , 0) );\n out.println(\"RE x \" + hm.getOrDefault(\"RE\" , 0) );\n\n out.flush();\n out.close();\n\n }",
"main",
"{\n PrintWriter out = new PrintWriter(System.out);\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n int n = Integer.parseInt(br.readLine());\n HashMap<String , Integer> hm = new HashMap<>();\n for(int i = 0 ; i < n ; i++)\n {\n String ss = br.readLine();\n hm.put(ss , hm.getOrDefault(ss , 0)+1);\n }\n out.println(\"AC x \" + hm.getOrDefault(\"AC\" , 0) );\n out.println(\"WA x \" + hm.getOrDefault(\"WA\" , 0));\n out.println(\"TLE x \" + hm.getOrDefault(\"TLE\" , 0) );\n out.println(\"RE x \" + hm.getOrDefault(\"RE\" , 0) );\n\n out.flush();\n out.close();\n\n }",
"PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"HashMap<String , Integer> hm = new HashMap<>();",
"hm",
"new HashMap<>()",
"for(int i = 0 ; i < n ; i++)\n {\n String ss = br.readLine();\n hm.put(ss , hm.getOrDefault(ss , 0)+1);\n }",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String ss = br.readLine();\n hm.put(ss , hm.getOrDefault(ss , 0)+1);\n }",
"{\n String ss = br.readLine();\n hm.put(ss , hm.getOrDefault(ss , 0)+1);\n }",
"String ss = br.readLine();",
"ss",
"br.readLine()",
"br.readLine",
"br",
"hm.put(ss , hm.getOrDefault(ss , 0)+1)",
"hm.put",
"hm",
"ss",
"hm.getOrDefault(ss , 0)+1",
"hm.getOrDefault(ss , 0)",
"hm.getOrDefault",
"hm",
"ss",
"0",
"1",
"out.println(\"AC x \" + hm.getOrDefault(\"AC\" , 0) )",
"out.println",
"out",
"\"AC x \" + hm.getOrDefault(\"AC\" , 0)",
"\"AC x \"",
"hm.getOrDefault(\"AC\" , 0)",
"hm.getOrDefault",
"hm",
"\"AC\"",
"0",
"out.println(\"WA x \" + hm.getOrDefault(\"WA\" , 0))",
"out.println",
"out",
"\"WA x \" + hm.getOrDefault(\"WA\" , 0)",
"\"WA x \"",
"hm.getOrDefault(\"WA\" , 0)",
"hm.getOrDefault",
"hm",
"\"WA\"",
"0",
"out.println(\"TLE x \" + hm.getOrDefault(\"TLE\" , 0) )",
"out.println",
"out",
"\"TLE x \" + hm.getOrDefault(\"TLE\" , 0)",
"\"TLE x \"",
"hm.getOrDefault(\"TLE\" , 0)",
"hm.getOrDefault",
"hm",
"\"TLE\"",
"0",
"out.println(\"RE x \" + hm.getOrDefault(\"RE\" , 0) )",
"out.println",
"out",
"\"RE x \" + hm.getOrDefault(\"RE\" , 0)",
"\"RE x \"",
"hm.getOrDefault(\"RE\" , 0)",
"hm.getOrDefault",
"hm",
"\"RE\"",
"0",
"out.flush()",
"out.flush",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class pair{\n long x1;\n long x2;\n\n public pair(long x1 , long x2)\n {\n this.x1 = x1;\n this.x2 = x2;\n }\n\n }",
"pair",
"long x1;",
"x1",
"long x2;",
"x2",
"public pair(long x1 , long x2)\n {\n this.x1 = x1;\n this.x2 = x2;\n }",
"pair",
"{\n this.x1 = x1;\n this.x2 = x2;\n }",
"this.x1 = x1",
"this.x1",
"this",
"this.x1",
"x1",
"this.x2 = x2",
"this.x2",
"this",
"this.x2",
"x2",
"long x1",
"x1",
"long x2",
"x2"
]
| import java.util.*;
import java.io.*;
class Main {
public static void main(String[] args) throws IOException
{
PrintWriter out = new PrintWriter(System.out);
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
HashMap<String , Integer> hm = new HashMap<>();
for(int i = 0 ; i < n ; i++)
{
String ss = br.readLine();
hm.put(ss , hm.getOrDefault(ss , 0)+1);
}
out.println("AC x " + hm.getOrDefault("AC" , 0) );
out.println("WA x " + hm.getOrDefault("WA" , 0));
out.println("TLE x " + hm.getOrDefault("TLE" , 0) );
out.println("RE x " + hm.getOrDefault("RE" , 0) );
out.flush();
out.close();
}
static class pair{
long x1;
long x2;
public pair(long x1 , long x2)
{
this.x1 = x1;
this.x2 = x2;
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
4,
13,
18,
13,
13,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
35,
13,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
4,
18,
13,
2,
17,
13,
4,
18,
13,
2,
17,
13,
4,
18,
13,
2,
17,
13,
4,
18,
13,
2,
17,
13,
23,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
121,
11
],
[
121,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
17,
19
],
[
15,
20
],
[
20,
21
],
[
20,
22
],
[
12,
23
],
[
23,
24
],
[
121,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
27,
36
],
[
36,
37
],
[
36,
38
],
[
27,
39
],
[
39,
40
],
[
39,
41
],
[
27,
42
],
[
42,
43
],
[
42,
44
],
[
27,
45
],
[
45,
46
],
[
45,
47
],
[
27,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
48,
59
],
[
60,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
60,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
66,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
66,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
66,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
27,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
95,
96
],
[
95,
97
],
[
27,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
101,
102
],
[
101,
103
],
[
27,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
107,
108
],
[
107,
109
],
[
27,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
113,
114
],
[
113,
115
],
[
25,
116
],
[
116,
117
],
[
25,
118
],
[
118,
119
],
[
0,
120
],
[
120,
121
],
[
120,
122
]
]
| [
"\nimport java.io.InputStream;\nimport java.io.PrintStream;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }\n\n static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n int N = scan.nextInt();\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n for(int i = 0; i < N; i++) {\n String s = scan.next();\n switch (s) {\n case \"AC\":\n ac++;\n break;\n case \"WA\":\n wa++;\n break;\n case \"TLE\":\n tle++;\n break;\n case \"RE\":\n re++;\n break;\n }\n }\n\n\n os.println(\"AC x \" + ac);\n os.println(\"WA x \" + wa);\n os.println(\"TLE x \" + tle);\n os.println(\"RE x \" + re);\n }\n}",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintStream;",
"PrintStream",
"java.io",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }\n\n static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n int N = scan.nextInt();\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n for(int i = 0; i < N; i++) {\n String s = scan.next();\n switch (s) {\n case \"AC\":\n ac++;\n break;\n case \"WA\":\n wa++;\n break;\n case \"TLE\":\n tle++;\n break;\n case \"RE\":\n re++;\n break;\n }\n }\n\n\n os.println(\"AC x \" + ac);\n os.println(\"WA x \" + wa);\n os.println(\"TLE x \" + tle);\n os.println(\"RE x \" + re);\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }",
"main",
"{\n solve(System.in, System.out);\n }",
"solve(System.in, System.out)",
"solve",
"System.in",
"System",
"System.in",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n int N = scan.nextInt();\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n for(int i = 0; i < N; i++) {\n String s = scan.next();\n switch (s) {\n case \"AC\":\n ac++;\n break;\n case \"WA\":\n wa++;\n break;\n case \"TLE\":\n tle++;\n break;\n case \"RE\":\n re++;\n break;\n }\n }\n\n\n os.println(\"AC x \" + ac);\n os.println(\"WA x \" + wa);\n os.println(\"TLE x \" + tle);\n os.println(\"RE x \" + re);\n }",
"solve",
"{\n // Your code here!\n Scanner scan = new Scanner(is);\n int N = scan.nextInt();\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n for(int i = 0; i < N; i++) {\n String s = scan.next();\n switch (s) {\n case \"AC\":\n ac++;\n break;\n case \"WA\":\n wa++;\n break;\n case \"TLE\":\n tle++;\n break;\n case \"RE\":\n re++;\n break;\n }\n }\n\n\n os.println(\"AC x \" + ac);\n os.println(\"WA x \" + wa);\n os.println(\"TLE x \" + tle);\n os.println(\"RE x \" + re);\n }",
"Scanner scan = new Scanner(is);",
"scan",
"new Scanner(is)",
"int N = scan.nextInt();",
"N",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int ac = 0;",
"ac",
"0",
"int wa = 0;",
"wa",
"0",
"int tle = 0;",
"tle",
"0",
"int re = 0;",
"re",
"0",
"for(int i = 0; i < N; i++) {\n String s = scan.next();\n switch (s) {\n case \"AC\":\n ac++;\n break;\n case \"WA\":\n wa++;\n break;\n case \"TLE\":\n tle++;\n break;\n case \"RE\":\n re++;\n break;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n String s = scan.next();\n switch (s) {\n case \"AC\":\n ac++;\n break;\n case \"WA\":\n wa++;\n break;\n case \"TLE\":\n tle++;\n break;\n case \"RE\":\n re++;\n break;\n }\n }",
"{\n String s = scan.next();\n switch (s) {\n case \"AC\":\n ac++;\n break;\n case \"WA\":\n wa++;\n break;\n case \"TLE\":\n tle++;\n break;\n case \"RE\":\n re++;\n break;\n }\n }",
"String s = scan.next();",
"s",
"scan.next()",
"scan.next",
"scan",
"switch (s) {\n case \"AC\":\n ac++;\n break;\n case \"WA\":\n wa++;\n break;\n case \"TLE\":\n tle++;\n break;\n case \"RE\":\n re++;\n break;\n }",
"s",
"case \"AC\":",
"\"AC\"",
"case \"AC\":",
"ac++",
"ac",
"break;",
"case \"WA\":",
"\"WA\"",
"case \"WA\":",
"wa++",
"wa",
"break;",
"case \"TLE\":",
"\"TLE\"",
"case \"TLE\":",
"tle++",
"tle",
"break;",
"case \"RE\":",
"\"RE\"",
"case \"RE\":",
"re++",
"re",
"break;",
"os.println(\"AC x \" + ac)",
"os.println",
"os",
"\"AC x \" + ac",
"\"AC x \"",
"ac",
"os.println(\"WA x \" + wa)",
"os.println",
"os",
"\"WA x \" + wa",
"\"WA x \"",
"wa",
"os.println(\"TLE x \" + tle)",
"os.println",
"os",
"\"TLE x \" + tle",
"\"TLE x \"",
"tle",
"os.println(\"RE x \" + re)",
"os.println",
"os",
"\"RE x \" + re",
"\"RE x \"",
"re",
"InputStream is",
"is",
"PrintStream os",
"os",
"public class Main {\n public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }\n\n static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n int N = scan.nextInt();\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n for(int i = 0; i < N; i++) {\n String s = scan.next();\n switch (s) {\n case \"AC\":\n ac++;\n break;\n case \"WA\":\n wa++;\n break;\n case \"TLE\":\n tle++;\n break;\n case \"RE\":\n re++;\n break;\n }\n }\n\n\n os.println(\"AC x \" + ac);\n os.println(\"WA x \" + wa);\n os.println(\"TLE x \" + tle);\n os.println(\"RE x \" + re);\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }\n\n static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n int N = scan.nextInt();\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n for(int i = 0; i < N; i++) {\n String s = scan.next();\n switch (s) {\n case \"AC\":\n ac++;\n break;\n case \"WA\":\n wa++;\n break;\n case \"TLE\":\n tle++;\n break;\n case \"RE\":\n re++;\n break;\n }\n }\n\n\n os.println(\"AC x \" + ac);\n os.println(\"WA x \" + wa);\n os.println(\"TLE x \" + tle);\n os.println(\"RE x \" + re);\n }\n}",
"Main"
]
|
import java.io.InputStream;
import java.io.PrintStream;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
solve(System.in, System.out);
}
static void solve(InputStream is, PrintStream os) {
// Your code here!
Scanner scan = new Scanner(is);
int N = scan.nextInt();
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
for(int i = 0; i < N; i++) {
String s = scan.next();
switch (s) {
case "AC":
ac++;
break;
case "WA":
wa++;
break;
case "TLE":
tle++;
break;
case "RE":
re++;
break;
}
}
os.println("AC x " + ac);
os.println("WA x " + wa);
os.println("TLE x " + tle);
os.println("RE x " + re);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
4,
18,
18,
13,
13,
17,
30,
40,
13,
14,
4,
18,
18,
13,
13,
17,
30,
40,
13,
14,
4,
18,
18,
13,
13,
17,
30,
40,
13,
14,
4,
18,
18,
13,
13,
17,
30,
40,
13,
30,
9,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
130,
5
],
[
130,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
51,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
53,
60
],
[
60,
61
],
[
61,
62
],
[
53,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
63,
70
],
[
70,
71
],
[
71,
72
],
[
63,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
73,
80
],
[
80,
81
],
[
81,
82
],
[
73,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
83,
90
],
[
90,
91
],
[
91,
92
],
[
83,
93
],
[
93,
94
],
[
8,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
100,
101
],
[
100,
102
],
[
8,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
108,
109
],
[
108,
110
],
[
8,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
116,
117
],
[
116,
118
],
[
8,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
124,
125
],
[
124,
126
],
[
6,
127
],
[
127,
128
],
[
0,
129
],
[
129,
130
],
[
129,
131
]
]
| [
"import java.util.Scanner;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String[] S = new String[N];\n int C0 = 0;\n int C1 = 0;\n int C2 = 0;\n int C3 = 0;\n for(int i=0; i<N; i++){\n S[i] = sc.next();\n \n if(S[i].equals(\"AC\")) {\n C0++;\n } else if(S[i].equals(\"WA\")) {\n C1++;\n } else if(S[i].equals(\"TLE\")) {\n C2++;\n } else if(S[i].equals(\"RE\")) {\n C3++;\n } else {\n continue;\n }\n }\n System.out.println(\"AC x \" + C0);\n System.out.println(\"WA x \" + C1);\n System.out.println(\"TLE x \" + C2);\n System.out.println(\"RE x \" + C3);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String[] S = new String[N];\n int C0 = 0;\n int C1 = 0;\n int C2 = 0;\n int C3 = 0;\n for(int i=0; i<N; i++){\n S[i] = sc.next();\n \n if(S[i].equals(\"AC\")) {\n C0++;\n } else if(S[i].equals(\"WA\")) {\n C1++;\n } else if(S[i].equals(\"TLE\")) {\n C2++;\n } else if(S[i].equals(\"RE\")) {\n C3++;\n } else {\n continue;\n }\n }\n System.out.println(\"AC x \" + C0);\n System.out.println(\"WA x \" + C1);\n System.out.println(\"TLE x \" + C2);\n System.out.println(\"RE x \" + C3);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String[] S = new String[N];\n int C0 = 0;\n int C1 = 0;\n int C2 = 0;\n int C3 = 0;\n for(int i=0; i<N; i++){\n S[i] = sc.next();\n \n if(S[i].equals(\"AC\")) {\n C0++;\n } else if(S[i].equals(\"WA\")) {\n C1++;\n } else if(S[i].equals(\"TLE\")) {\n C2++;\n } else if(S[i].equals(\"RE\")) {\n C3++;\n } else {\n continue;\n }\n }\n System.out.println(\"AC x \" + C0);\n System.out.println(\"WA x \" + C1);\n System.out.println(\"TLE x \" + C2);\n System.out.println(\"RE x \" + C3);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String[] S = new String[N];\n int C0 = 0;\n int C1 = 0;\n int C2 = 0;\n int C3 = 0;\n for(int i=0; i<N; i++){\n S[i] = sc.next();\n \n if(S[i].equals(\"AC\")) {\n C0++;\n } else if(S[i].equals(\"WA\")) {\n C1++;\n } else if(S[i].equals(\"TLE\")) {\n C2++;\n } else if(S[i].equals(\"RE\")) {\n C3++;\n } else {\n continue;\n }\n }\n System.out.println(\"AC x \" + C0);\n System.out.println(\"WA x \" + C1);\n System.out.println(\"TLE x \" + C2);\n System.out.println(\"RE x \" + C3);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String[] S = new String[N];",
"S",
"new String[N]",
"N",
"int C0 = 0;",
"C0",
"0",
"int C1 = 0;",
"C1",
"0",
"int C2 = 0;",
"C2",
"0",
"int C3 = 0;",
"C3",
"0",
"for(int i=0; i<N; i++){\n S[i] = sc.next();\n \n if(S[i].equals(\"AC\")) {\n C0++;\n } else if(S[i].equals(\"WA\")) {\n C1++;\n } else if(S[i].equals(\"TLE\")) {\n C2++;\n } else if(S[i].equals(\"RE\")) {\n C3++;\n } else {\n continue;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n S[i] = sc.next();\n \n if(S[i].equals(\"AC\")) {\n C0++;\n } else if(S[i].equals(\"WA\")) {\n C1++;\n } else if(S[i].equals(\"TLE\")) {\n C2++;\n } else if(S[i].equals(\"RE\")) {\n C3++;\n } else {\n continue;\n }\n }",
"{\n S[i] = sc.next();\n \n if(S[i].equals(\"AC\")) {\n C0++;\n } else if(S[i].equals(\"WA\")) {\n C1++;\n } else if(S[i].equals(\"TLE\")) {\n C2++;\n } else if(S[i].equals(\"RE\")) {\n C3++;\n } else {\n continue;\n }\n }",
"S[i] = sc.next()",
"S[i]",
"S",
"i",
"sc.next()",
"sc.next",
"sc",
"if(S[i].equals(\"AC\")) {\n C0++;\n } else if(S[i].equals(\"WA\")) {\n C1++;\n } else if(S[i].equals(\"TLE\")) {\n C2++;\n } else if(S[i].equals(\"RE\")) {\n C3++;\n } else {\n continue;\n }",
"S[i].equals(\"AC\")",
"S[i].equals",
"S[i]",
"S",
"i",
"\"AC\"",
"{\n C0++;\n }",
"C0++",
"C0",
"if(S[i].equals(\"WA\")) {\n C1++;\n } else if(S[i].equals(\"TLE\")) {\n C2++;\n } else if(S[i].equals(\"RE\")) {\n C3++;\n } else {\n continue;\n }",
"S[i].equals(\"WA\")",
"S[i].equals",
"S[i]",
"S",
"i",
"\"WA\"",
"{\n C1++;\n }",
"C1++",
"C1",
"if(S[i].equals(\"TLE\")) {\n C2++;\n } else if(S[i].equals(\"RE\")) {\n C3++;\n } else {\n continue;\n }",
"S[i].equals(\"TLE\")",
"S[i].equals",
"S[i]",
"S",
"i",
"\"TLE\"",
"{\n C2++;\n }",
"C2++",
"C2",
"if(S[i].equals(\"RE\")) {\n C3++;\n } else {\n continue;\n }",
"S[i].equals(\"RE\")",
"S[i].equals",
"S[i]",
"S",
"i",
"\"RE\"",
"{\n C3++;\n }",
"C3++",
"C3",
"{\n continue;\n }",
"continue;",
"System.out.println(\"AC x \" + C0)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + C0",
"\"AC x \"",
"C0",
"System.out.println(\"WA x \" + C1)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + C1",
"\"WA x \"",
"C1",
"System.out.println(\"TLE x \" + C2)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + C2",
"\"TLE x \"",
"C2",
"System.out.println(\"RE x \" + C3)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + C3",
"\"RE x \"",
"C3",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String[] S = new String[N];\n int C0 = 0;\n int C1 = 0;\n int C2 = 0;\n int C3 = 0;\n for(int i=0; i<N; i++){\n S[i] = sc.next();\n \n if(S[i].equals(\"AC\")) {\n C0++;\n } else if(S[i].equals(\"WA\")) {\n C1++;\n } else if(S[i].equals(\"TLE\")) {\n C2++;\n } else if(S[i].equals(\"RE\")) {\n C3++;\n } else {\n continue;\n }\n }\n System.out.println(\"AC x \" + C0);\n System.out.println(\"WA x \" + C1);\n System.out.println(\"TLE x \" + C2);\n System.out.println(\"RE x \" + C3);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String[] S = new String[N];\n int C0 = 0;\n int C1 = 0;\n int C2 = 0;\n int C3 = 0;\n for(int i=0; i<N; i++){\n S[i] = sc.next();\n \n if(S[i].equals(\"AC\")) {\n C0++;\n } else if(S[i].equals(\"WA\")) {\n C1++;\n } else if(S[i].equals(\"TLE\")) {\n C2++;\n } else if(S[i].equals(\"RE\")) {\n C3++;\n } else {\n continue;\n }\n }\n System.out.println(\"AC x \" + C0);\n System.out.println(\"WA x \" + C1);\n System.out.println(\"TLE x \" + C2);\n System.out.println(\"RE x \" + C3);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
String[] S = new String[N];
int C0 = 0;
int C1 = 0;
int C2 = 0;
int C3 = 0;
for(int i=0; i<N; i++){
S[i] = sc.next();
if(S[i].equals("AC")) {
C0++;
} else if(S[i].equals("WA")) {
C1++;
} else if(S[i].equals("TLE")) {
C2++;
} else if(S[i].equals("RE")) {
C3++;
} else {
continue;
}
}
System.out.println("AC x " + C0);
System.out.println("WA x " + C1);
System.out.println("TLE x " + C2);
System.out.println("RE x " + C3);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
20,
41,
13,
4,
18,
13,
35,
13,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
4,
18,
13,
2,
17,
13,
4,
18,
13,
2,
17,
13,
4,
18,
13,
2,
17,
13,
4,
18,
13,
2,
17,
13,
4,
18,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
127,
14
],
[
127,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
24,
26
],
[
17,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
32,
33
],
[
33,
34
],
[
17,
35
],
[
35,
36
],
[
35,
37
],
[
17,
38
],
[
38,
39
],
[
38,
40
],
[
17,
41
],
[
41,
42
],
[
41,
43
],
[
17,
44
],
[
44,
45
],
[
44,
46
],
[
17,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
59,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
68,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
68,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
68,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
17,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
97,
98
],
[
97,
99
],
[
17,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
103,
104
],
[
103,
105
],
[
17,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
109,
110
],
[
109,
111
],
[
17,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
115,
116
],
[
115,
117
],
[
17,
118
],
[
118,
119
],
[
119,
120
],
[
17,
121
],
[
121,
122
],
[
122,
123
],
[
15,
124
],
[
124,
125
],
[
0,
126
],
[
126,
127
],
[
126,
128
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\n\npublic class Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));\n PrintWriter pw = new PrintWriter(System.out);\n StringTokenizer st = new StringTokenizer(br.readLine());\n\n int N = Integer.parseInt(st.nextToken());\n\n int ac = 0, wa = 0, tle = 0, re = 0;\n\n for(int i = 0; i < N; i++) {\n st = new StringTokenizer(br.readLine());\n String target = st.nextToken();\n\n switch (target) {\n case \"AC\" :\n ac++;\n break;\n case \"WA\" :\n wa++;\n break;\n case \"TLE\" :\n tle++;\n break;\n case \"RE\" :\n re++;\n break;\n } \n }\n\n pw.println(\"AC x \" + ac);\n pw.println(\"WA x \" + wa);\n pw.println(\"TLE x \" + tle);\n pw.println(\"RE x \" + re);\n\n br.close();\n pw.close();\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));\n PrintWriter pw = new PrintWriter(System.out);\n StringTokenizer st = new StringTokenizer(br.readLine());\n\n int N = Integer.parseInt(st.nextToken());\n\n int ac = 0, wa = 0, tle = 0, re = 0;\n\n for(int i = 0; i < N; i++) {\n st = new StringTokenizer(br.readLine());\n String target = st.nextToken();\n\n switch (target) {\n case \"AC\" :\n ac++;\n break;\n case \"WA\" :\n wa++;\n break;\n case \"TLE\" :\n tle++;\n break;\n case \"RE\" :\n re++;\n break;\n } \n }\n\n pw.println(\"AC x \" + ac);\n pw.println(\"WA x \" + wa);\n pw.println(\"TLE x \" + tle);\n pw.println(\"RE x \" + re);\n\n br.close();\n pw.close();\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));\n PrintWriter pw = new PrintWriter(System.out);\n StringTokenizer st = new StringTokenizer(br.readLine());\n\n int N = Integer.parseInt(st.nextToken());\n\n int ac = 0, wa = 0, tle = 0, re = 0;\n\n for(int i = 0; i < N; i++) {\n st = new StringTokenizer(br.readLine());\n String target = st.nextToken();\n\n switch (target) {\n case \"AC\" :\n ac++;\n break;\n case \"WA\" :\n wa++;\n break;\n case \"TLE\" :\n tle++;\n break;\n case \"RE\" :\n re++;\n break;\n } \n }\n\n pw.println(\"AC x \" + ac);\n pw.println(\"WA x \" + wa);\n pw.println(\"TLE x \" + tle);\n pw.println(\"RE x \" + re);\n\n br.close();\n pw.close();\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));\n PrintWriter pw = new PrintWriter(System.out);\n StringTokenizer st = new StringTokenizer(br.readLine());\n\n int N = Integer.parseInt(st.nextToken());\n\n int ac = 0, wa = 0, tle = 0, re = 0;\n\n for(int i = 0; i < N; i++) {\n st = new StringTokenizer(br.readLine());\n String target = st.nextToken();\n\n switch (target) {\n case \"AC\" :\n ac++;\n break;\n case \"WA\" :\n wa++;\n break;\n case \"TLE\" :\n tle++;\n break;\n case \"RE\" :\n re++;\n break;\n } \n }\n\n pw.println(\"AC x \" + ac);\n pw.println(\"WA x \" + wa);\n pw.println(\"TLE x \" + tle);\n pw.println(\"RE x \" + re);\n\n br.close();\n pw.close();\n }",
"BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));",
"br",
"new BufferedReader(new java.io.InputStreamReader(System.in))",
"PrintWriter pw = new PrintWriter(System.out);",
"pw",
"new PrintWriter(System.out)",
"StringTokenizer st = new StringTokenizer(br.readLine());",
"st",
"new StringTokenizer(br.readLine())",
"int N = Integer.parseInt(st.nextToken());",
"N",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"int ac = 0",
"ac",
"0",
"wa = 0",
"wa",
"0",
"tle = 0",
"tle",
"0",
"re = 0;",
"re",
"0",
"for(int i = 0; i < N; i++) {\n st = new StringTokenizer(br.readLine());\n String target = st.nextToken();\n\n switch (target) {\n case \"AC\" :\n ac++;\n break;\n case \"WA\" :\n wa++;\n break;\n case \"TLE\" :\n tle++;\n break;\n case \"RE\" :\n re++;\n break;\n } \n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n st = new StringTokenizer(br.readLine());\n String target = st.nextToken();\n\n switch (target) {\n case \"AC\" :\n ac++;\n break;\n case \"WA\" :\n wa++;\n break;\n case \"TLE\" :\n tle++;\n break;\n case \"RE\" :\n re++;\n break;\n } \n }",
"{\n st = new StringTokenizer(br.readLine());\n String target = st.nextToken();\n\n switch (target) {\n case \"AC\" :\n ac++;\n break;\n case \"WA\" :\n wa++;\n break;\n case \"TLE\" :\n tle++;\n break;\n case \"RE\" :\n re++;\n break;\n } \n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"String target = st.nextToken();",
"target",
"st.nextToken()",
"st.nextToken",
"st",
"switch (target) {\n case \"AC\" :\n ac++;\n break;\n case \"WA\" :\n wa++;\n break;\n case \"TLE\" :\n tle++;\n break;\n case \"RE\" :\n re++;\n break;\n }",
"target",
"case \"AC\" :",
"\"AC\"",
"case \"AC\" :",
"ac++",
"ac",
"break;",
"case \"WA\" :",
"\"WA\"",
"case \"WA\" :",
"wa++",
"wa",
"break;",
"case \"TLE\" :",
"\"TLE\"",
"case \"TLE\" :",
"tle++",
"tle",
"break;",
"case \"RE\" :",
"\"RE\"",
"case \"RE\" :",
"re++",
"re",
"break;",
"pw.println(\"AC x \" + ac)",
"pw.println",
"pw",
"\"AC x \" + ac",
"\"AC x \"",
"ac",
"pw.println(\"WA x \" + wa)",
"pw.println",
"pw",
"\"WA x \" + wa",
"\"WA x \"",
"wa",
"pw.println(\"TLE x \" + tle)",
"pw.println",
"pw",
"\"TLE x \" + tle",
"\"TLE x \"",
"tle",
"pw.println(\"RE x \" + re)",
"pw.println",
"pw",
"\"RE x \" + re",
"\"RE x \"",
"re",
"br.close()",
"br.close",
"br",
"pw.close()",
"pw.close",
"pw",
"String[] args",
"args",
"public class Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));\n PrintWriter pw = new PrintWriter(System.out);\n StringTokenizer st = new StringTokenizer(br.readLine());\n\n int N = Integer.parseInt(st.nextToken());\n\n int ac = 0, wa = 0, tle = 0, re = 0;\n\n for(int i = 0; i < N; i++) {\n st = new StringTokenizer(br.readLine());\n String target = st.nextToken();\n\n switch (target) {\n case \"AC\" :\n ac++;\n break;\n case \"WA\" :\n wa++;\n break;\n case \"TLE\" :\n tle++;\n break;\n case \"RE\" :\n re++;\n break;\n } \n }\n\n pw.println(\"AC x \" + ac);\n pw.println(\"WA x \" + wa);\n pw.println(\"TLE x \" + tle);\n pw.println(\"RE x \" + re);\n\n br.close();\n pw.close();\n }\n}",
"public class Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));\n PrintWriter pw = new PrintWriter(System.out);\n StringTokenizer st = new StringTokenizer(br.readLine());\n\n int N = Integer.parseInt(st.nextToken());\n\n int ac = 0, wa = 0, tle = 0, re = 0;\n\n for(int i = 0; i < N; i++) {\n st = new StringTokenizer(br.readLine());\n String target = st.nextToken();\n\n switch (target) {\n case \"AC\" :\n ac++;\n break;\n case \"WA\" :\n wa++;\n break;\n case \"TLE\" :\n tle++;\n break;\n case \"RE\" :\n re++;\n break;\n } \n }\n\n pw.println(\"AC x \" + ac);\n pw.println(\"WA x \" + wa);\n pw.println(\"TLE x \" + tle);\n pw.println(\"RE x \" + re);\n\n br.close();\n pw.close();\n }\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));
PrintWriter pw = new PrintWriter(System.out);
StringTokenizer st = new StringTokenizer(br.readLine());
int N = Integer.parseInt(st.nextToken());
int ac = 0, wa = 0, tle = 0, re = 0;
for(int i = 0; i < N; i++) {
st = new StringTokenizer(br.readLine());
String target = st.nextToken();
switch (target) {
case "AC" :
ac++;
break;
case "WA" :
wa++;
break;
case "TLE" :
tle++;
break;
case "RE" :
re++;
break;
}
}
pw.println("AC x " + ac);
pw.println("WA x " + wa);
pw.println("TLE x " + tle);
pw.println("RE x " + re);
br.close();
pw.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
35,
13,
34,
17,
1,
0,
13,
17,
3,
34,
17,
1,
0,
13,
17,
3,
34,
17,
1,
0,
13,
17,
3,
34,
17,
1,
0,
13,
17,
3,
41,
13,
39,
13,
13,
13,
13,
41,
13,
39,
17,
17,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
121,
5
],
[
121,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
47,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
47,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
47,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
8,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
79,
82
],
[
79,
83
],
[
8,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
86,
88
],
[
86,
89
],
[
86,
90
],
[
8,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
91,
99
],
[
99,
100
],
[
100,
101
],
[
91,
102
],
[
103,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
110,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
6,
118
],
[
118,
119
],
[
0,
120
],
[
120,
121
],
[
120,
122
]
]
| [
"import java.util.*;\npublic class Main {\n public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int AC = 0, WA = 0, TLE = 0, RE = 0;\n for (int i=0; i<N; i++) {\n String num = sc.next();\n \tswitch (num) {\n case \"AC\": AC += 1;\n break;\n case \"WA\": WA += 1;\n break;\n case \"TLE\": TLE += 1;\n break;\n case \"RE\": RE += 1;\n break;\n }\n }\n int[] ans = {AC,WA,TLE,RE};\n String[] array = {\"AC\",\"WA\",\"TLE\",\"RE\"};\n for (int i=0; i<4; i++) {\n System.out.println(array[i]+\" x \"+ans[i]);\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int AC = 0, WA = 0, TLE = 0, RE = 0;\n for (int i=0; i<N; i++) {\n String num = sc.next();\n \tswitch (num) {\n case \"AC\": AC += 1;\n break;\n case \"WA\": WA += 1;\n break;\n case \"TLE\": TLE += 1;\n break;\n case \"RE\": RE += 1;\n break;\n }\n }\n int[] ans = {AC,WA,TLE,RE};\n String[] array = {\"AC\",\"WA\",\"TLE\",\"RE\"};\n for (int i=0; i<4; i++) {\n System.out.println(array[i]+\" x \"+ans[i]);\n }\n }\n}",
"Main",
"public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int AC = 0, WA = 0, TLE = 0, RE = 0;\n for (int i=0; i<N; i++) {\n String num = sc.next();\n \tswitch (num) {\n case \"AC\": AC += 1;\n break;\n case \"WA\": WA += 1;\n break;\n case \"TLE\": TLE += 1;\n break;\n case \"RE\": RE += 1;\n break;\n }\n }\n int[] ans = {AC,WA,TLE,RE};\n String[] array = {\"AC\",\"WA\",\"TLE\",\"RE\"};\n for (int i=0; i<4; i++) {\n System.out.println(array[i]+\" x \"+ans[i]);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int AC = 0, WA = 0, TLE = 0, RE = 0;\n for (int i=0; i<N; i++) {\n String num = sc.next();\n \tswitch (num) {\n case \"AC\": AC += 1;\n break;\n case \"WA\": WA += 1;\n break;\n case \"TLE\": TLE += 1;\n break;\n case \"RE\": RE += 1;\n break;\n }\n }\n int[] ans = {AC,WA,TLE,RE};\n String[] array = {\"AC\",\"WA\",\"TLE\",\"RE\"};\n for (int i=0; i<4; i++) {\n System.out.println(array[i]+\" x \"+ans[i]);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int AC = 0",
"AC",
"0",
"WA = 0",
"WA",
"0",
"TLE = 0",
"TLE",
"0",
"RE = 0;",
"RE",
"0",
"for (int i=0; i<N; i++) {\n String num = sc.next();\n \tswitch (num) {\n case \"AC\": AC += 1;\n break;\n case \"WA\": WA += 1;\n break;\n case \"TLE\": TLE += 1;\n break;\n case \"RE\": RE += 1;\n break;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n String num = sc.next();\n \tswitch (num) {\n case \"AC\": AC += 1;\n break;\n case \"WA\": WA += 1;\n break;\n case \"TLE\": TLE += 1;\n break;\n case \"RE\": RE += 1;\n break;\n }\n }",
"{\n String num = sc.next();\n \tswitch (num) {\n case \"AC\": AC += 1;\n break;\n case \"WA\": WA += 1;\n break;\n case \"TLE\": TLE += 1;\n break;\n case \"RE\": RE += 1;\n break;\n }\n }",
"String num = sc.next();",
"num",
"sc.next()",
"sc.next",
"sc",
"switch (num) {\n case \"AC\": AC += 1;\n break;\n case \"WA\": WA += 1;\n break;\n case \"TLE\": TLE += 1;\n break;\n case \"RE\": RE += 1;\n break;\n }",
"num",
"case \"AC\":",
"\"AC\"",
"case \"AC\":",
"AC += 1",
"AC",
"1",
"break;",
"case \"WA\":",
"\"WA\"",
"case \"WA\":",
"WA += 1",
"WA",
"1",
"break;",
"case \"TLE\":",
"\"TLE\"",
"case \"TLE\":",
"TLE += 1",
"TLE",
"1",
"break;",
"case \"RE\":",
"\"RE\"",
"case \"RE\":",
"RE += 1",
"RE",
"1",
"break;",
"int[] ans = {AC,WA,TLE,RE};",
"ans",
"{AC,WA,TLE,RE}",
"AC",
"WA",
"TLE",
"RE",
"String[] array = {\"AC\",\"WA\",\"TLE\",\"RE\"};",
"array",
"{\"AC\",\"WA\",\"TLE\",\"RE\"}",
"\"AC\"",
"\"WA\"",
"\"TLE\"",
"\"RE\"",
"for (int i=0; i<4; i++) {\n System.out.println(array[i]+\" x \"+ans[i]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n System.out.println(array[i]+\" x \"+ans[i]);\n }",
"{\n System.out.println(array[i]+\" x \"+ans[i]);\n }",
"System.out.println(array[i]+\" x \"+ans[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"array[i]+\" x \"+ans[i]",
"array[i]+\" x \"+ans[i]",
"array[i]",
"array",
"i",
"\" x \"",
"ans[i]",
"ans",
"i",
"String[] args",
"args",
"public class Main {\n public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int AC = 0, WA = 0, TLE = 0, RE = 0;\n for (int i=0; i<N; i++) {\n String num = sc.next();\n \tswitch (num) {\n case \"AC\": AC += 1;\n break;\n case \"WA\": WA += 1;\n break;\n case \"TLE\": TLE += 1;\n break;\n case \"RE\": RE += 1;\n break;\n }\n }\n int[] ans = {AC,WA,TLE,RE};\n String[] array = {\"AC\",\"WA\",\"TLE\",\"RE\"};\n for (int i=0; i<4; i++) {\n System.out.println(array[i]+\" x \"+ans[i]);\n }\n }\n}",
"public class Main {\n public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int AC = 0, WA = 0, TLE = 0, RE = 0;\n for (int i=0; i<N; i++) {\n String num = sc.next();\n \tswitch (num) {\n case \"AC\": AC += 1;\n break;\n case \"WA\": WA += 1;\n break;\n case \"TLE\": TLE += 1;\n break;\n case \"RE\": RE += 1;\n break;\n }\n }\n int[] ans = {AC,WA,TLE,RE};\n String[] array = {\"AC\",\"WA\",\"TLE\",\"RE\"};\n for (int i=0; i<4; i++) {\n System.out.println(array[i]+\" x \"+ans[i]);\n }\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int AC = 0, WA = 0, TLE = 0, RE = 0;
for (int i=0; i<N; i++) {
String num = sc.next();
switch (num) {
case "AC": AC += 1;
break;
case "WA": WA += 1;
break;
case "TLE": TLE += 1;
break;
case "RE": RE += 1;
break;
}
}
int[] ans = {AC,WA,TLE,RE};
String[] array = {"AC","WA","TLE","RE"};
for (int i=0; i<4; i++) {
System.out.println(array[i]+" x "+ans[i]);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
13,
4,
18,
13,
13,
2,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
14,
4,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
17,
14,
4,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
17,
14,
4,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
17,
14,
4,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
17,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
260,
20
],
[
260,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
23,
32
],
[
32,
33
],
[
32,
34
],
[
23,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
47,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
53,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
58,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
62,
67
],
[
53,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
68,
72
],
[
23,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
73,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
73,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
23,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
97,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
97,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
23,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
121,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
133,
136
],
[
121,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
137,
142
],
[
142,
143
],
[
142,
144
],
[
23,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
146,
149
],
[
145,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
150,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
158,
159
],
[
157,
160
],
[
145,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
161,
166
],
[
166,
167
],
[
166,
168
],
[
21,
169
],
[
169,
170
],
[
260,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
171,
175
],
[
175,
176
],
[
171,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
171,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
187,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
186,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
196,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
185,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
171,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
215,
218
],
[
218,
219
],
[
171,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
224,
227
],
[
227,
228
],
[
171,
229
],
[
229,
230
],
[
229,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
234,
235
],
[
233,
236
],
[
236,
237
],
[
171,
238
],
[
238,
239
],
[
238,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
240,
244
],
[
244,
245
],
[
245,
246
],
[
245,
247
],
[
247,
248
],
[
248,
249
],
[
249,
250
],
[
244,
251
],
[
251,
252
],
[
252,
253
],
[
252,
254
],
[
254,
255
],
[
255,
256
],
[
240,
257
],
[
257,
258
],
[
0,
259
],
[
259,
260
],
[
259,
261
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader; \nimport java.util.Scanner; \nimport java.util.StringTokenizer; \nimport java.util.*;\npublic class Main\n{ \nstatic class FastReader \t\n{\t\t\nBufferedReader br; \t\t\nStringTokenizer st; \t\t\npublic FastReader() \t\t\n{ \t\t\t\nbr = new BufferedReader(new\tInputStreamReader(System.in)); \t\t\n} \t\t\nString next() \t\t\n{ \t\t\t\nwhile (st == null || !st.hasMoreElements()) \t\t\t\n{ \t\t\t\t\ntry\t\t\t\t\n{ \t\t\t\t\t\nst = new StringTokenizer(br.readLine()); \t\t\t\t\n} \t\t\t\t\ncatch (IOException e) \t\t\t\t\n{ \t\t\t\t\t\ne.printStackTrace(); \t\t\t\t\n} \t\t\t\n} \t\t\t\nreturn st.nextToken(); \t\t\n} \n\t\t\nint nextInt() \t\t\n{ \t\t\t\nreturn Integer.parseInt(next()); \t\t\n} \n\t\t\nlong nextLong() \t\t\n{ \t\t\t\nreturn Long.parseLong(next()); \t\t\n} \n\t\t\ndouble nextDouble() \t\t\n{ \t\t\t\nreturn Double.parseDouble(next()); \t\t\n\t\t } \n\t\t\n\t\tString nextLine() \t\t\n\t\t { \t\t\t\nString str = \"\"; \t\t\t\n\t\t\t try\t\t\t\n\t\t\t{ \t\t\t\t\n\t\t\t\t str = br.readLine(); \t\t\t\n\t\t\t } \t\t\t\n\t\t\t catch (IOException e) \t\t\t\n\t\t\t { \t\t\t\t\n\t\t\t\t e.printStackTrace(); \t\t\t\n\t\t\t } \t\t\t\n\t\t\t return str; \t\t\n\t\t } \t\n\t }\n\t\n\t public static void main(String[] args){\n\t\t FastReader scan=new FastReader();\n\t\t int t = scan.nextInt();\n\t\t HashMap<String,Integer> map = new HashMap<>();\n\t\t for(int i=0;i<t;i++){\n\t\t\t\tString s = scan.next();\n\t\t\t\t\tif(map.containsKey(s))map.put(s,map.get(s)+1);\n\t\t\t\t\telse map.put(s,1);\n\t\t\t}\n\t\tif(map.containsKey(\"AC\"))System.out.println(\"AC x \" + map.get(\"AC\"));\n\t\telse System.out.println(\"AC x \" + 0);\n\t\tif(map.containsKey(\"WA\"))System.out.println(\"WA x \" + map.get(\"WA\"));\n\t\telse System.out.println(\"WA x \" + 0);\n\t\tif(map.containsKey(\"TLE\"))System.out.println(\"TLE x \" + map.get(\"TLE\"));\n\t\telse System.out.println(\"TLE x \" + 0);\n\t\tif(map.containsKey(\"RE\"))System.out.println(\"RE x \" + map.get(\"RE\"));\n\t\telse System.out.println(\"RE x \" + 0);\n\t\t\n\t} \n} ",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.util.*;",
"util.*",
"java",
"public class Main\n{ \nstatic class FastReader \t\n{\t\t\nBufferedReader br; \t\t\nStringTokenizer st; \t\t\npublic FastReader() \t\t\n{ \t\t\t\nbr = new BufferedReader(new\tInputStreamReader(System.in)); \t\t\n} \t\t\nString next() \t\t\n{ \t\t\t\nwhile (st == null || !st.hasMoreElements()) \t\t\t\n{ \t\t\t\t\ntry\t\t\t\t\n{ \t\t\t\t\t\nst = new StringTokenizer(br.readLine()); \t\t\t\t\n} \t\t\t\t\ncatch (IOException e) \t\t\t\t\n{ \t\t\t\t\t\ne.printStackTrace(); \t\t\t\t\n} \t\t\t\n} \t\t\t\nreturn st.nextToken(); \t\t\n} \n\t\t\nint nextInt() \t\t\n{ \t\t\t\nreturn Integer.parseInt(next()); \t\t\n} \n\t\t\nlong nextLong() \t\t\n{ \t\t\t\nreturn Long.parseLong(next()); \t\t\n} \n\t\t\ndouble nextDouble() \t\t\n{ \t\t\t\nreturn Double.parseDouble(next()); \t\t\n\t\t } \n\t\t\n\t\tString nextLine() \t\t\n\t\t { \t\t\t\nString str = \"\"; \t\t\t\n\t\t\t try\t\t\t\n\t\t\t{ \t\t\t\t\n\t\t\t\t str = br.readLine(); \t\t\t\n\t\t\t } \t\t\t\n\t\t\t catch (IOException e) \t\t\t\n\t\t\t { \t\t\t\t\n\t\t\t\t e.printStackTrace(); \t\t\t\n\t\t\t } \t\t\t\n\t\t\t return str; \t\t\n\t\t } \t\n\t }\n\t\n\t public static void main(String[] args){\n\t\t FastReader scan=new FastReader();\n\t\t int t = scan.nextInt();\n\t\t HashMap<String,Integer> map = new HashMap<>();\n\t\t for(int i=0;i<t;i++){\n\t\t\t\tString s = scan.next();\n\t\t\t\t\tif(map.containsKey(s))map.put(s,map.get(s)+1);\n\t\t\t\t\telse map.put(s,1);\n\t\t\t}\n\t\tif(map.containsKey(\"AC\"))System.out.println(\"AC x \" + map.get(\"AC\"));\n\t\telse System.out.println(\"AC x \" + 0);\n\t\tif(map.containsKey(\"WA\"))System.out.println(\"WA x \" + map.get(\"WA\"));\n\t\telse System.out.println(\"WA x \" + 0);\n\t\tif(map.containsKey(\"TLE\"))System.out.println(\"TLE x \" + map.get(\"TLE\"));\n\t\telse System.out.println(\"TLE x \" + 0);\n\t\tif(map.containsKey(\"RE\"))System.out.println(\"RE x \" + map.get(\"RE\"));\n\t\telse System.out.println(\"RE x \" + 0);\n\t\t\n\t} \n}",
"Main",
"public static void main(String[] args){\n\t\t FastReader scan=new FastReader();\n\t\t int t = scan.nextInt();\n\t\t HashMap<String,Integer> map = new HashMap<>();\n\t\t for(int i=0;i<t;i++){\n\t\t\t\tString s = scan.next();\n\t\t\t\t\tif(map.containsKey(s))map.put(s,map.get(s)+1);\n\t\t\t\t\telse map.put(s,1);\n\t\t\t}\n\t\tif(map.containsKey(\"AC\"))System.out.println(\"AC x \" + map.get(\"AC\"));\n\t\telse System.out.println(\"AC x \" + 0);\n\t\tif(map.containsKey(\"WA\"))System.out.println(\"WA x \" + map.get(\"WA\"));\n\t\telse System.out.println(\"WA x \" + 0);\n\t\tif(map.containsKey(\"TLE\"))System.out.println(\"TLE x \" + map.get(\"TLE\"));\n\t\telse System.out.println(\"TLE x \" + 0);\n\t\tif(map.containsKey(\"RE\"))System.out.println(\"RE x \" + map.get(\"RE\"));\n\t\telse System.out.println(\"RE x \" + 0);\n\t\t\n\t}",
"main",
"{\n\t\t FastReader scan=new FastReader();\n\t\t int t = scan.nextInt();\n\t\t HashMap<String,Integer> map = new HashMap<>();\n\t\t for(int i=0;i<t;i++){\n\t\t\t\tString s = scan.next();\n\t\t\t\t\tif(map.containsKey(s))map.put(s,map.get(s)+1);\n\t\t\t\t\telse map.put(s,1);\n\t\t\t}\n\t\tif(map.containsKey(\"AC\"))System.out.println(\"AC x \" + map.get(\"AC\"));\n\t\telse System.out.println(\"AC x \" + 0);\n\t\tif(map.containsKey(\"WA\"))System.out.println(\"WA x \" + map.get(\"WA\"));\n\t\telse System.out.println(\"WA x \" + 0);\n\t\tif(map.containsKey(\"TLE\"))System.out.println(\"TLE x \" + map.get(\"TLE\"));\n\t\telse System.out.println(\"TLE x \" + 0);\n\t\tif(map.containsKey(\"RE\"))System.out.println(\"RE x \" + map.get(\"RE\"));\n\t\telse System.out.println(\"RE x \" + 0);\n\t\t\n\t}",
"FastReader scan=new FastReader();",
"scan",
"new FastReader()",
"int t = scan.nextInt();",
"t",
"scan.nextInt()",
"scan.nextInt",
"scan",
"HashMap<String,Integer> map = new HashMap<>();",
"map",
"new HashMap<>()",
"for(int i=0;i<t;i++){\n\t\t\t\tString s = scan.next();\n\t\t\t\t\tif(map.containsKey(s))map.put(s,map.get(s)+1);\n\t\t\t\t\telse map.put(s,1);\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<t",
"i",
"t",
"i++",
"i++",
"i",
"{\n\t\t\t\tString s = scan.next();\n\t\t\t\t\tif(map.containsKey(s))map.put(s,map.get(s)+1);\n\t\t\t\t\telse map.put(s,1);\n\t\t\t}",
"{\n\t\t\t\tString s = scan.next();\n\t\t\t\t\tif(map.containsKey(s))map.put(s,map.get(s)+1);\n\t\t\t\t\telse map.put(s,1);\n\t\t\t}",
"String s = scan.next();",
"s",
"scan.next()",
"scan.next",
"scan",
"if(map.containsKey(s))map.put(s,map.get(s)+1);\n\t\t\t\t\telse map.put(s,1);",
"map.containsKey(s)",
"map.containsKey",
"map",
"s",
"map.put(s,map.get(s)+1)",
"map.put",
"map",
"s",
"map.get(s)+1",
"map.get(s)",
"map.get",
"map",
"s",
"1",
"map.put(s,1)",
"map.put",
"map",
"s",
"1",
"if(map.containsKey(\"AC\"))System.out.println(\"AC x \" + map.get(\"AC\"));\n\t\telse System.out.println(\"AC x \" + 0);",
"map.containsKey(\"AC\")",
"map.containsKey",
"map",
"\"AC\"",
"System.out.println(\"AC x \" + map.get(\"AC\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + map.get(\"AC\")",
"\"AC x \"",
"map.get(\"AC\")",
"map.get",
"map",
"\"AC\"",
"System.out.println(\"AC x \" + 0)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + 0",
"\"AC x \"",
"0",
"if(map.containsKey(\"WA\"))System.out.println(\"WA x \" + map.get(\"WA\"));\n\t\telse System.out.println(\"WA x \" + 0);",
"map.containsKey(\"WA\")",
"map.containsKey",
"map",
"\"WA\"",
"System.out.println(\"WA x \" + map.get(\"WA\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + map.get(\"WA\")",
"\"WA x \"",
"map.get(\"WA\")",
"map.get",
"map",
"\"WA\"",
"System.out.println(\"WA x \" + 0)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + 0",
"\"WA x \"",
"0",
"if(map.containsKey(\"TLE\"))System.out.println(\"TLE x \" + map.get(\"TLE\"));\n\t\telse System.out.println(\"TLE x \" + 0);",
"map.containsKey(\"TLE\")",
"map.containsKey",
"map",
"\"TLE\"",
"System.out.println(\"TLE x \" + map.get(\"TLE\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + map.get(\"TLE\")",
"\"TLE x \"",
"map.get(\"TLE\")",
"map.get",
"map",
"\"TLE\"",
"System.out.println(\"TLE x \" + 0)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + 0",
"\"TLE x \"",
"0",
"if(map.containsKey(\"RE\"))System.out.println(\"RE x \" + map.get(\"RE\"));\n\t\telse System.out.println(\"RE x \" + 0);",
"map.containsKey(\"RE\")",
"map.containsKey",
"map",
"\"RE\"",
"System.out.println(\"RE x \" + map.get(\"RE\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + map.get(\"RE\")",
"\"RE x \"",
"map.get(\"RE\")",
"map.get",
"map",
"\"RE\"",
"System.out.println(\"RE x \" + 0)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + 0",
"\"RE x \"",
"0",
"String[] args",
"args",
"static class FastReader \t\n{\t\t\nBufferedReader br; \t\t\nStringTokenizer st; \t\t\npublic FastReader() \t\t\n{ \t\t\t\nbr = new BufferedReader(new\tInputStreamReader(System.in)); \t\t\n} \t\t\nString next() \t\t\n{ \t\t\t\nwhile (st == null || !st.hasMoreElements()) \t\t\t\n{ \t\t\t\t\ntry\t\t\t\t\n{ \t\t\t\t\t\nst = new StringTokenizer(br.readLine()); \t\t\t\t\n} \t\t\t\t\ncatch (IOException e) \t\t\t\t\n{ \t\t\t\t\t\ne.printStackTrace(); \t\t\t\t\n} \t\t\t\n} \t\t\t\nreturn st.nextToken(); \t\t\n} \n\t\t\nint nextInt() \t\t\n{ \t\t\t\nreturn Integer.parseInt(next()); \t\t\n} \n\t\t\nlong nextLong() \t\t\n{ \t\t\t\nreturn Long.parseLong(next()); \t\t\n} \n\t\t\ndouble nextDouble() \t\t\n{ \t\t\t\nreturn Double.parseDouble(next()); \t\t\n\t\t } \n\t\t\n\t\tString nextLine() \t\t\n\t\t { \t\t\t\nString str = \"\"; \t\t\t\n\t\t\t try\t\t\t\n\t\t\t{ \t\t\t\t\n\t\t\t\t str = br.readLine(); \t\t\t\n\t\t\t } \t\t\t\n\t\t\t catch (IOException e) \t\t\t\n\t\t\t { \t\t\t\t\n\t\t\t\t e.printStackTrace(); \t\t\t\n\t\t\t } \t\t\t\n\t\t\t return str; \t\t\n\t\t } \t\n\t }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() \t\t\n{ \t\t\t\nbr = new BufferedReader(new\tInputStreamReader(System.in)); \t\t\n}",
"FastReader",
"{ \t\t\t\nbr = new BufferedReader(new\tInputStreamReader(System.in)); \t\t\n}",
"br = new BufferedReader(new\tInputStreamReader(System.in))",
"br",
"new BufferedReader(new\tInputStreamReader(System.in))",
"String next() \t\t\n{ \t\t\t\nwhile (st == null || !st.hasMoreElements()) \t\t\t\n{ \t\t\t\t\ntry\t\t\t\t\n{ \t\t\t\t\t\nst = new StringTokenizer(br.readLine()); \t\t\t\t\n} \t\t\t\t\ncatch (IOException e) \t\t\t\t\n{ \t\t\t\t\t\ne.printStackTrace(); \t\t\t\t\n} \t\t\t\n} \t\t\t\nreturn st.nextToken(); \t\t\n}",
"next",
"{ \t\t\t\nwhile (st == null || !st.hasMoreElements()) \t\t\t\n{ \t\t\t\t\ntry\t\t\t\t\n{ \t\t\t\t\t\nst = new StringTokenizer(br.readLine()); \t\t\t\t\n} \t\t\t\t\ncatch (IOException e) \t\t\t\t\n{ \t\t\t\t\t\ne.printStackTrace(); \t\t\t\t\n} \t\t\t\n} \t\t\t\nreturn st.nextToken(); \t\t\n}",
"while (st == null || !st.hasMoreElements()) \t\t\t\n{ \t\t\t\t\ntry\t\t\t\t\n{ \t\t\t\t\t\nst = new StringTokenizer(br.readLine()); \t\t\t\t\n} \t\t\t\t\ncatch (IOException e) \t\t\t\t\n{ \t\t\t\t\t\ne.printStackTrace(); \t\t\t\t\n} \t\t\t\n}",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{ \t\t\t\t\ntry\t\t\t\t\n{ \t\t\t\t\t\nst = new StringTokenizer(br.readLine()); \t\t\t\t\n} \t\t\t\t\ncatch (IOException e) \t\t\t\t\n{ \t\t\t\t\t\ne.printStackTrace(); \t\t\t\t\n} \t\t\t\n}",
"try\t\t\t\t\n{ \t\t\t\t\t\nst = new StringTokenizer(br.readLine()); \t\t\t\t\n} \t\t\t\t\ncatch (IOException e) \t\t\t\t\n{ \t\t\t\t\t\ne.printStackTrace(); \t\t\t\t\n}",
"catch (IOException e) \t\t\t\t\n{ \t\t\t\t\t\ne.printStackTrace(); \t\t\t\t\n}",
"IOException e",
"{ \t\t\t\t\t\ne.printStackTrace(); \t\t\t\t\n}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{ \t\t\t\t\t\nst = new StringTokenizer(br.readLine()); \t\t\t\t\n}",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() \t\t\n{ \t\t\t\nreturn Integer.parseInt(next()); \t\t\n}",
"nextInt",
"{ \t\t\t\nreturn Integer.parseInt(next()); \t\t\n}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() \t\t\n{ \t\t\t\nreturn Long.parseLong(next()); \t\t\n}",
"nextLong",
"{ \t\t\t\nreturn Long.parseLong(next()); \t\t\n}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() \t\t\n{ \t\t\t\nreturn Double.parseDouble(next()); \t\t\n\t\t }",
"nextDouble",
"{ \t\t\t\nreturn Double.parseDouble(next()); \t\t\n\t\t }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() \t\t\n\t\t { \t\t\t\nString str = \"\"; \t\t\t\n\t\t\t try\t\t\t\n\t\t\t{ \t\t\t\t\n\t\t\t\t str = br.readLine(); \t\t\t\n\t\t\t } \t\t\t\n\t\t\t catch (IOException e) \t\t\t\n\t\t\t { \t\t\t\t\n\t\t\t\t e.printStackTrace(); \t\t\t\n\t\t\t } \t\t\t\n\t\t\t return str; \t\t\n\t\t }",
"nextLine",
"{ \t\t\t\nString str = \"\"; \t\t\t\n\t\t\t try\t\t\t\n\t\t\t{ \t\t\t\t\n\t\t\t\t str = br.readLine(); \t\t\t\n\t\t\t } \t\t\t\n\t\t\t catch (IOException e) \t\t\t\n\t\t\t { \t\t\t\t\n\t\t\t\t e.printStackTrace(); \t\t\t\n\t\t\t } \t\t\t\n\t\t\t return str; \t\t\n\t\t }",
"String str = \"\";",
"str",
"\"\"",
"try\t\t\t\n\t\t\t{ \t\t\t\t\n\t\t\t\t str = br.readLine(); \t\t\t\n\t\t\t } \t\t\t\n\t\t\t catch (IOException e) \t\t\t\n\t\t\t { \t\t\t\t\n\t\t\t\t e.printStackTrace(); \t\t\t\n\t\t\t }",
"catch (IOException e) \t\t\t\n\t\t\t { \t\t\t\t\n\t\t\t\t e.printStackTrace(); \t\t\t\n\t\t\t }",
"IOException e",
"{ \t\t\t\t\n\t\t\t\t e.printStackTrace(); \t\t\t\n\t\t\t }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{ \t\t\t\t\n\t\t\t\t str = br.readLine(); \t\t\t\n\t\t\t }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main\n{ \nstatic class FastReader \t\n{\t\t\nBufferedReader br; \t\t\nStringTokenizer st; \t\t\npublic FastReader() \t\t\n{ \t\t\t\nbr = new BufferedReader(new\tInputStreamReader(System.in)); \t\t\n} \t\t\nString next() \t\t\n{ \t\t\t\nwhile (st == null || !st.hasMoreElements()) \t\t\t\n{ \t\t\t\t\ntry\t\t\t\t\n{ \t\t\t\t\t\nst = new StringTokenizer(br.readLine()); \t\t\t\t\n} \t\t\t\t\ncatch (IOException e) \t\t\t\t\n{ \t\t\t\t\t\ne.printStackTrace(); \t\t\t\t\n} \t\t\t\n} \t\t\t\nreturn st.nextToken(); \t\t\n} \n\t\t\nint nextInt() \t\t\n{ \t\t\t\nreturn Integer.parseInt(next()); \t\t\n} \n\t\t\nlong nextLong() \t\t\n{ \t\t\t\nreturn Long.parseLong(next()); \t\t\n} \n\t\t\ndouble nextDouble() \t\t\n{ \t\t\t\nreturn Double.parseDouble(next()); \t\t\n\t\t } \n\t\t\n\t\tString nextLine() \t\t\n\t\t { \t\t\t\nString str = \"\"; \t\t\t\n\t\t\t try\t\t\t\n\t\t\t{ \t\t\t\t\n\t\t\t\t str = br.readLine(); \t\t\t\n\t\t\t } \t\t\t\n\t\t\t catch (IOException e) \t\t\t\n\t\t\t { \t\t\t\t\n\t\t\t\t e.printStackTrace(); \t\t\t\n\t\t\t } \t\t\t\n\t\t\t return str; \t\t\n\t\t } \t\n\t }\n\t\n\t public static void main(String[] args){\n\t\t FastReader scan=new FastReader();\n\t\t int t = scan.nextInt();\n\t\t HashMap<String,Integer> map = new HashMap<>();\n\t\t for(int i=0;i<t;i++){\n\t\t\t\tString s = scan.next();\n\t\t\t\t\tif(map.containsKey(s))map.put(s,map.get(s)+1);\n\t\t\t\t\telse map.put(s,1);\n\t\t\t}\n\t\tif(map.containsKey(\"AC\"))System.out.println(\"AC x \" + map.get(\"AC\"));\n\t\telse System.out.println(\"AC x \" + 0);\n\t\tif(map.containsKey(\"WA\"))System.out.println(\"WA x \" + map.get(\"WA\"));\n\t\telse System.out.println(\"WA x \" + 0);\n\t\tif(map.containsKey(\"TLE\"))System.out.println(\"TLE x \" + map.get(\"TLE\"));\n\t\telse System.out.println(\"TLE x \" + 0);\n\t\tif(map.containsKey(\"RE\"))System.out.println(\"RE x \" + map.get(\"RE\"));\n\t\telse System.out.println(\"RE x \" + 0);\n\t\t\n\t} \n}",
"public class Main\n{ \nstatic class FastReader \t\n{\t\t\nBufferedReader br; \t\t\nStringTokenizer st; \t\t\npublic FastReader() \t\t\n{ \t\t\t\nbr = new BufferedReader(new\tInputStreamReader(System.in)); \t\t\n} \t\t\nString next() \t\t\n{ \t\t\t\nwhile (st == null || !st.hasMoreElements()) \t\t\t\n{ \t\t\t\t\ntry\t\t\t\t\n{ \t\t\t\t\t\nst = new StringTokenizer(br.readLine()); \t\t\t\t\n} \t\t\t\t\ncatch (IOException e) \t\t\t\t\n{ \t\t\t\t\t\ne.printStackTrace(); \t\t\t\t\n} \t\t\t\n} \t\t\t\nreturn st.nextToken(); \t\t\n} \n\t\t\nint nextInt() \t\t\n{ \t\t\t\nreturn Integer.parseInt(next()); \t\t\n} \n\t\t\nlong nextLong() \t\t\n{ \t\t\t\nreturn Long.parseLong(next()); \t\t\n} \n\t\t\ndouble nextDouble() \t\t\n{ \t\t\t\nreturn Double.parseDouble(next()); \t\t\n\t\t } \n\t\t\n\t\tString nextLine() \t\t\n\t\t { \t\t\t\nString str = \"\"; \t\t\t\n\t\t\t try\t\t\t\n\t\t\t{ \t\t\t\t\n\t\t\t\t str = br.readLine(); \t\t\t\n\t\t\t } \t\t\t\n\t\t\t catch (IOException e) \t\t\t\n\t\t\t { \t\t\t\t\n\t\t\t\t e.printStackTrace(); \t\t\t\n\t\t\t } \t\t\t\n\t\t\t return str; \t\t\n\t\t } \t\n\t }\n\t\n\t public static void main(String[] args){\n\t\t FastReader scan=new FastReader();\n\t\t int t = scan.nextInt();\n\t\t HashMap<String,Integer> map = new HashMap<>();\n\t\t for(int i=0;i<t;i++){\n\t\t\t\tString s = scan.next();\n\t\t\t\t\tif(map.containsKey(s))map.put(s,map.get(s)+1);\n\t\t\t\t\telse map.put(s,1);\n\t\t\t}\n\t\tif(map.containsKey(\"AC\"))System.out.println(\"AC x \" + map.get(\"AC\"));\n\t\telse System.out.println(\"AC x \" + 0);\n\t\tif(map.containsKey(\"WA\"))System.out.println(\"WA x \" + map.get(\"WA\"));\n\t\telse System.out.println(\"WA x \" + 0);\n\t\tif(map.containsKey(\"TLE\"))System.out.println(\"TLE x \" + map.get(\"TLE\"));\n\t\telse System.out.println(\"TLE x \" + 0);\n\t\tif(map.containsKey(\"RE\"))System.out.println(\"RE x \" + map.get(\"RE\"));\n\t\telse System.out.println(\"RE x \" + 0);\n\t\t\n\t} \n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
import java.util.StringTokenizer;
import java.util.*;
public class Main
{
static class FastReader
{
BufferedReader br;
StringTokenizer st;
public FastReader()
{
br = new BufferedReader(new InputStreamReader(System.in));
}
String next()
{
while (st == null || !st.hasMoreElements())
{
try
{
st = new StringTokenizer(br.readLine());
}
catch (IOException e)
{
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt()
{
return Integer.parseInt(next());
}
long nextLong()
{
return Long.parseLong(next());
}
double nextDouble()
{
return Double.parseDouble(next());
}
String nextLine()
{
String str = "";
try
{
str = br.readLine();
}
catch (IOException e)
{
e.printStackTrace();
}
return str;
}
}
public static void main(String[] args){
FastReader scan=new FastReader();
int t = scan.nextInt();
HashMap<String,Integer> map = new HashMap<>();
for(int i=0;i<t;i++){
String s = scan.next();
if(map.containsKey(s))map.put(s,map.get(s)+1);
else map.put(s,1);
}
if(map.containsKey("AC"))System.out.println("AC x " + map.get("AC"));
else System.out.println("AC x " + 0);
if(map.containsKey("WA"))System.out.println("WA x " + map.get("WA"));
else System.out.println("WA x " + 0);
if(map.containsKey("TLE"))System.out.println("TLE x " + map.get("TLE"));
else System.out.println("TLE x " + 0);
if(map.containsKey("RE"))System.out.println("RE x " + map.get("RE"));
else System.out.println("RE x " + 0);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
41,
13,
17,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
14,
2,
13,
17,
29,
13,
29,
4,
13,
2,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
2,
2,
13,
13,
17,
41,
13,
2,
13,
13,
41,
13,
20,
13,
17,
41,
13,
20,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
17,
18,
18,
13,
2,
13,
13,
17,
0,
18,
18,
13,
13,
17,
18,
18,
13,
2,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
17,
18,
18,
13,
2,
2,
13,
17,
13,
17,
0,
18,
18,
13,
13,
17,
18,
18,
13,
2,
2,
13,
17,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
13,
42,
2,
2,
13,
13,
2,
13,
13,
30,
14,
2,
18,
18,
13,
13,
17,
18,
18,
13,
13,
17,
30,
0,
18,
18,
13,
13,
17,
18,
18,
13,
13,
17,
0,
18,
18,
13,
13,
17,
18,
18,
13,
13,
17,
40,
13,
30,
0,
18,
18,
13,
13,
17,
18,
18,
13,
13,
17,
0,
18,
18,
13,
13,
17,
18,
18,
13,
13,
17,
40,
13,
40,
13,
42,
2,
13,
13,
30,
0,
18,
18,
13,
13,
17,
18,
18,
13,
13,
17,
0,
18,
18,
13,
13,
17,
18,
18,
13,
13,
17,
40,
13,
40,
13,
42,
2,
13,
13,
30,
0,
18,
18,
13,
13,
17,
18,
18,
13,
13,
17,
0,
18,
18,
13,
13,
17,
18,
18,
13,
13,
17,
40,
13,
40,
13,
23,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
13,
30,
41,
13,
2,
2,
13,
13,
17,
4,
13,
13,
13,
13,
4,
13,
13,
2,
13,
17,
13,
4,
13,
13,
13,
13,
13,
29,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
17,
40,
13,
0,
13,
4,
18,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
4,
18,
18,
13,
13,
13,
17,
30,
4,
13,
13,
4,
18,
18,
13,
13,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
0,
13,
17,
4,
13,
13,
13,
13,
14,
2,
13,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
20,
2,
13,
17,
41,
13,
17,
4,
18,
13,
13,
40,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
40,
17,
30,
0,
18,
13,
13,
17,
41,
13,
20,
4,
18,
13,
13,
42,
40,
4,
18,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
4,
18,
18,
13,
13,
13,
40,
17,
30,
0,
18,
13,
4,
18,
18,
13,
13,
13,
2,
17,
18,
13,
13,
4,
18,
13,
4,
18,
18,
13,
13,
13,
14,
2,
18,
13,
4,
18,
18,
13,
13,
13,
18,
13,
13,
30,
0,
13,
17,
3,
14,
2,
13,
17,
30,
0,
13,
17,
3,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
40,
13,
30,
40,
13,
41,
13,
2,
2,
13,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
40,
13,
14,
2,
4,
18,
13,
13,
17,
40,
13,
14,
2,
4,
18,
13,
13,
17,
40,
13,
40,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
17,
17,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
17,
17,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
17,
17,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
17,
17,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
922,
20
],
[
922,
21
],
[
21,
22
],
[
21,
23
],
[
922,
24
],
[
24,
25
],
[
24,
26
],
[
922,
27
],
[
27,
28
],
[
27,
29
],
[
922,
31
],
[
31,
32
],
[
31,
33
],
[
922,
34
],
[
34,
35
],
[
34,
36
],
[
922,
37
],
[
37,
38
],
[
37,
39
],
[
922,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
42,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
40,
56
],
[
56,
57
],
[
40,
58
],
[
58,
59
],
[
922,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
62,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
62,
75
],
[
75,
76
],
[
75,
77
],
[
62,
80
],
[
80,
81
],
[
80,
82
],
[
62,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
90,
92
],
[
85,
93
],
[
93,
94
],
[
94,
95
],
[
85,
96
],
[
97,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
98,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
107,
109
],
[
104,
110
],
[
97,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
111,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
120,
122
],
[
117,
123
],
[
62,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
124,
129
],
[
129,
130
],
[
129,
131
],
[
124,
132
],
[
132,
133
],
[
133,
134
],
[
124,
135
],
[
136,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
138,
142
],
[
137,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
147,
147
],
[
147,
148
],
[
147,
149
],
[
147,
150
],
[
143,
151
],
[
136,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
153,
157
],
[
152,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
162,
162
],
[
162,
163
],
[
162,
164
],
[
162,
165
],
[
158,
166
],
[
62,
167
],
[
167,
168
],
[
167,
169
],
[
62,
170
],
[
170,
171
],
[
170,
172
],
[
62,
173
],
[
173,
174
],
[
173,
175
],
[
62,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
177,
181
],
[
181,
182
],
[
181,
183
],
[
176,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
187,
191
],
[
186,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
192,
196
],
[
185,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
199,
203
],
[
198,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
204,
208
],
[
197,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
210,
214
],
[
209,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
215,
219
],
[
197,
220
],
[
220,
221
],
[
185,
222
],
[
222,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
224,
228
],
[
223,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
229,
233
],
[
222,
234
],
[
234,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
235,
239
],
[
234,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
240,
244
],
[
222,
245
],
[
245,
246
],
[
184,
247
],
[
247,
248
],
[
62,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
249,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
256,
258
],
[
255,
259
],
[
254,
260
],
[
260,
261
],
[
261,
262
],
[
261,
263
],
[
260,
264
],
[
253,
265
],
[
265,
266
],
[
266,
267
],
[
267,
268
],
[
267,
269
],
[
266,
270
],
[
265,
271
],
[
271,
272
],
[
272,
273
],
[
272,
274
],
[
271,
275
],
[
253,
276
],
[
276,
277
],
[
253,
278
],
[
278,
279
],
[
62,
280
],
[
280,
281
],
[
281,
282
],
[
281,
283
],
[
280,
284
],
[
284,
285
],
[
285,
286
],
[
286,
287
],
[
287,
288
],
[
287,
289
],
[
286,
290
],
[
285,
291
],
[
291,
292
],
[
292,
293
],
[
292,
294
],
[
291,
295
],
[
284,
296
],
[
296,
297
],
[
297,
298
],
[
298,
299
],
[
298,
300
],
[
297,
301
],
[
296,
302
],
[
302,
303
],
[
303,
304
],
[
303,
305
],
[
302,
306
],
[
284,
307
],
[
307,
308
],
[
284,
309
],
[
309,
310
],
[
60,
311
],
[
311,
312
],
[
60,
313
],
[
313,
314
],
[
60,
315
],
[
315,
316
],
[
60,
317
],
[
317,
318
],
[
922,
319
],
[
319,
320
],
[
319,
321
],
[
321,
322
],
[
322,
323
],
[
323,
324
],
[
323,
325
],
[
322,
326
],
[
326,
327
],
[
327,
328
],
[
327,
329
],
[
329,
330
],
[
330,
331
],
[
330,
332
],
[
329,
333
],
[
326,
334
],
[
334,
335
],
[
334,
336
],
[
334,
337
],
[
334,
338
],
[
326,
339
],
[
339,
340
],
[
339,
341
],
[
339,
342
],
[
342,
343
],
[
342,
344
],
[
339,
345
],
[
326,
346
],
[
346,
347
],
[
346,
348
],
[
346,
349
],
[
346,
350
],
[
346,
351
],
[
321,
352
],
[
352,
353
],
[
319,
354
],
[
354,
355
],
[
319,
356
],
[
356,
357
],
[
319,
358
],
[
358,
359
],
[
922,
360
],
[
360,
361
],
[
360,
362
],
[
362,
363
],
[
363,
364
],
[
364,
365
],
[
363,
366
],
[
363,
367
],
[
362,
368
],
[
368,
369
],
[
362,
370
],
[
370,
371
],
[
370,
372
],
[
372,
373
],
[
373,
374
],
[
374,
375
],
[
374,
376
],
[
362,
377
],
[
377,
378
],
[
378,
379
],
[
379,
380
],
[
379,
381
],
[
377,
382
],
[
382,
383
],
[
382,
384
],
[
384,
385
],
[
385,
386
],
[
386,
387
],
[
386,
388
],
[
377,
389
],
[
389,
390
],
[
390,
391
],
[
377,
392
],
[
393,
393
],
[
393,
394
],
[
394,
395
],
[
395,
396
],
[
396,
397
],
[
397,
398
],
[
396,
399
],
[
399,
400
],
[
400,
401
],
[
401,
402
],
[
401,
403
],
[
399,
404
],
[
395,
405
],
[
394,
406
],
[
406,
407
],
[
407,
408
],
[
407,
409
],
[
407,
410
],
[
410,
411
],
[
411,
412
],
[
412,
413
],
[
412,
414
],
[
410,
415
],
[
407,
416
],
[
360,
417
],
[
417,
418
],
[
360,
419
],
[
419,
420
],
[
360,
421
],
[
421,
422
],
[
922,
423
],
[
423,
424
],
[
423,
425
],
[
425,
426
],
[
426,
427
],
[
426,
428
],
[
425,
429
],
[
429,
430
],
[
429,
431
],
[
425,
432
],
[
432,
433
],
[
433,
434
],
[
434,
435
],
[
434,
436
],
[
432,
437
],
[
437,
438
],
[
437,
439
],
[
432,
440
],
[
440,
441
],
[
441,
442
],
[
432,
443
],
[
444,
444
],
[
444,
445
],
[
445,
446
],
[
446,
447
],
[
447,
448
],
[
448,
449
],
[
447,
450
],
[
446,
451
],
[
445,
452
],
[
452,
453
],
[
453,
454
],
[
453,
455
],
[
452,
456
],
[
456,
457
],
[
456,
458
],
[
452,
459
],
[
459,
460
],
[
459,
461
],
[
459,
462
],
[
459,
463
],
[
452,
464
],
[
464,
465
],
[
465,
466
],
[
465,
467
],
[
467,
468
],
[
467,
469
],
[
469,
470
],
[
469,
471
],
[
464,
472
],
[
472,
473
],
[
473,
474
],
[
474,
475
],
[
475,
476
],
[
475,
477
],
[
473,
478
],
[
472,
479
],
[
479,
480
],
[
480,
481
],
[
479,
482
],
[
425,
483
],
[
483,
484
],
[
484,
485
],
[
485,
486
],
[
485,
487
],
[
483,
488
],
[
423,
489
],
[
489,
490
],
[
423,
491
],
[
491,
492
],
[
423,
493
],
[
493,
494
],
[
922,
495
],
[
495,
496
],
[
495,
497
],
[
497,
498
],
[
498,
499
],
[
498,
500
],
[
497,
501
],
[
501,
502
],
[
501,
503
],
[
504,
505
],
[
504,
506
],
[
497,
507
],
[
507,
508
],
[
507,
509
],
[
497,
510
],
[
510,
511
],
[
511,
512
],
[
510,
513
],
[
510,
514
],
[
514,
515
],
[
497,
516
],
[
516,
517
],
[
517,
518
],
[
518,
519
],
[
518,
520
],
[
516,
521
],
[
521,
522
],
[
521,
523
],
[
516,
524
],
[
524,
525
],
[
525,
526
],
[
516,
527
],
[
528,
528
],
[
528,
529
],
[
529,
530
],
[
530,
531
],
[
531,
532
],
[
531,
533
],
[
530,
534
],
[
534,
535
],
[
529,
536
],
[
536,
537
],
[
537,
538
],
[
538,
539
],
[
538,
540
],
[
537,
541
],
[
536,
542
],
[
542,
543
],
[
542,
544
],
[
536,
545
],
[
545,
546
],
[
546,
547
],
[
545,
548
],
[
536,
549
],
[
549,
550
],
[
550,
551
],
[
551,
552
],
[
552,
553
],
[
549,
554
],
[
554,
555
],
[
555,
556
],
[
555,
557
],
[
557,
558
],
[
558,
559
],
[
554,
560
],
[
560,
561
],
[
561,
562
],
[
554,
563
],
[
563,
564
],
[
564,
565
],
[
565,
566
],
[
565,
567
],
[
563,
568
],
[
568,
569
],
[
568,
570
],
[
570,
571
],
[
571,
572
],
[
572,
573
],
[
572,
574
],
[
563,
575
],
[
575,
576
],
[
576,
577
],
[
563,
578
],
[
579,
579
],
[
579,
580
],
[
580,
581
],
[
581,
582
],
[
582,
583
],
[
582,
584
],
[
584,
585
],
[
585,
586
],
[
586,
587
],
[
586,
588
],
[
584,
589
],
[
581,
590
],
[
590,
591
],
[
580,
592
],
[
592,
593
],
[
593,
594
],
[
594,
595
],
[
594,
596
],
[
596,
597
],
[
597,
598
],
[
598,
599
],
[
598,
600
],
[
596,
601
],
[
593,
602
],
[
602,
603
],
[
602,
604
],
[
604,
605
],
[
604,
606
],
[
592,
607
],
[
607,
608
],
[
608,
609
],
[
607,
610
],
[
610,
611
],
[
611,
612
],
[
612,
613
],
[
612,
614
],
[
610,
615
],
[
580,
616
],
[
616,
617
],
[
617,
618
],
[
618,
619
],
[
618,
620
],
[
620,
621
],
[
621,
622
],
[
622,
623
],
[
622,
624
],
[
620,
625
],
[
617,
626
],
[
626,
627
],
[
626,
628
],
[
616,
629
],
[
629,
630
],
[
630,
631
],
[
630,
632
],
[
629,
633
],
[
536,
634
],
[
634,
635
],
[
635,
636
],
[
635,
637
],
[
634,
638
],
[
638,
639
],
[
639,
640
],
[
639,
641
],
[
638,
642
],
[
497,
643
],
[
643,
644
],
[
643,
645
],
[
497,
646
],
[
646,
647
],
[
646,
648
],
[
497,
649
],
[
649,
650
],
[
650,
651
],
[
651,
652
],
[
651,
653
],
[
649,
654
],
[
654,
655
],
[
654,
656
],
[
649,
657
],
[
657,
658
],
[
658,
659
],
[
649,
660
],
[
661,
661
],
[
661,
662
],
[
662,
663
],
[
663,
664
],
[
664,
665
],
[
664,
666
],
[
663,
667
],
[
662,
668
],
[
668,
669
],
[
669,
670
],
[
662,
671
],
[
671,
672
],
[
672,
673
],
[
497,
674
],
[
674,
675
],
[
674,
676
],
[
676,
677
],
[
677,
678
],
[
677,
679
],
[
676,
680
],
[
680,
681
],
[
680,
682
],
[
497,
683
],
[
683,
684
],
[
684,
685
],
[
685,
686
],
[
685,
687
],
[
683,
688
],
[
495,
689
],
[
689,
690
],
[
495,
691
],
[
691,
692
],
[
922,
693
],
[
693,
694
],
[
693,
695
],
[
695,
696
],
[
696,
697
],
[
696,
698
],
[
695,
699
],
[
699,
700
],
[
699,
701
],
[
701,
702
],
[
702,
703
],
[
695,
704
],
[
704,
705
],
[
704,
706
],
[
695,
707
],
[
707,
708
],
[
707,
709
],
[
695,
710
],
[
710,
711
],
[
710,
712
],
[
695,
713
],
[
713,
714
],
[
713,
715
],
[
695,
716
],
[
716,
717
],
[
716,
718
],
[
695,
719
],
[
719,
720
],
[
719,
721
],
[
695,
722
],
[
722,
723
],
[
722,
724
],
[
695,
725
],
[
725,
726
],
[
725,
727
],
[
695,
728
],
[
728,
729
],
[
729,
730
],
[
730,
731
],
[
730,
732
],
[
728,
733
],
[
733,
734
],
[
733,
735
],
[
728,
736
],
[
736,
737
],
[
737,
738
],
[
728,
739
],
[
740,
740
],
[
740,
741
],
[
741,
742
],
[
741,
743
],
[
743,
744
],
[
744,
745
],
[
740,
746
],
[
746,
747
],
[
747,
748
],
[
748,
749
],
[
749,
750
],
[
748,
751
],
[
747,
752
],
[
746,
753
],
[
753,
754
],
[
746,
755
],
[
755,
756
],
[
756,
757
],
[
757,
758
],
[
758,
759
],
[
757,
760
],
[
756,
761
],
[
755,
762
],
[
762,
763
],
[
755,
764
],
[
764,
765
],
[
765,
766
],
[
766,
767
],
[
767,
768
],
[
766,
769
],
[
765,
770
],
[
764,
771
],
[
771,
772
],
[
764,
773
],
[
773,
774
],
[
695,
775
],
[
775,
776
],
[
776,
777
],
[
777,
778
],
[
777,
779
],
[
775,
780
],
[
783,
781
],
[
781,
782
],
[
782,
783
],
[
783,
784
],
[
783,
785
],
[
782,
786
],
[
781,
787
],
[
783,
788
],
[
695,
789
],
[
789,
790
],
[
790,
791
],
[
791,
792
],
[
791,
793
],
[
789,
794
],
[
797,
795
],
[
795,
796
],
[
796,
797
],
[
797,
798
],
[
797,
799
],
[
796,
800
],
[
795,
801
],
[
797,
802
],
[
695,
803
],
[
803,
804
],
[
804,
805
],
[
805,
806
],
[
805,
807
],
[
803,
808
],
[
811,
809
],
[
809,
810
],
[
810,
811
],
[
811,
812
],
[
811,
813
],
[
810,
814
],
[
809,
815
],
[
811,
816
],
[
695,
817
],
[
817,
818
],
[
818,
819
],
[
819,
820
],
[
819,
821
],
[
817,
822
],
[
825,
823
],
[
823,
824
],
[
824,
825
],
[
825,
826
],
[
825,
827
],
[
824,
828
],
[
823,
829
],
[
825,
830
],
[
693,
831
],
[
831,
832
],
[
922,
833
],
[
833,
834
],
[
833,
835
],
[
835,
836
],
[
833,
837
],
[
837,
838
],
[
833,
839
],
[
839,
840
],
[
839,
841
],
[
841,
842
],
[
842,
843
],
[
842,
844
],
[
833,
845
],
[
845,
846
],
[
845,
847
],
[
847,
848
],
[
848,
849
],
[
849,
850
],
[
850,
851
],
[
850,
852
],
[
849,
853
],
[
853,
854
],
[
854,
855
],
[
855,
856
],
[
848,
857
],
[
857,
858
],
[
858,
859
],
[
859,
860
],
[
859,
861
],
[
861,
862
],
[
862,
863
],
[
863,
864
],
[
858,
865
],
[
865,
866
],
[
866,
867
],
[
866,
868
],
[
847,
869
],
[
869,
870
],
[
870,
871
],
[
871,
872
],
[
833,
873
],
[
873,
874
],
[
873,
875
],
[
875,
876
],
[
876,
877
],
[
877,
878
],
[
878,
879
],
[
877,
880
],
[
880,
881
],
[
833,
882
],
[
882,
883
],
[
882,
884
],
[
884,
885
],
[
885,
886
],
[
886,
887
],
[
887,
888
],
[
886,
889
],
[
889,
890
],
[
833,
891
],
[
891,
892
],
[
891,
893
],
[
893,
894
],
[
894,
895
],
[
895,
896
],
[
896,
897
],
[
895,
898
],
[
898,
899
],
[
833,
900
],
[
900,
901
],
[
900,
902
],
[
902,
903
],
[
903,
904
],
[
903,
905
],
[
902,
906
],
[
906,
907
],
[
907,
908
],
[
907,
909
],
[
909,
910
],
[
910,
911
],
[
911,
912
],
[
906,
913
],
[
913,
914
],
[
914,
915
],
[
914,
916
],
[
916,
917
],
[
917,
918
],
[
902,
919
],
[
919,
920
],
[
0,
921
],
[
921,
922
],
[
921,
923
]
]
| [
"\nimport java.io.*;\n\nimport java.lang.annotation.Native;\nimport java.math.BigInteger;\nimport java.util.*;\n\nimport java.util.ArrayList;\n\nimport java.util.Scanner;\n\n\npublic class Main {\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n static final int mod = 1000000007;\n static final int mod1 = 1073741824;\n\n public static int gcd(int a, int b) {\n if (a == 0)\n return b;\n return gcd(b % a, a);\n }\n\n static boolean prime[] = new boolean[1000001];\n public static void merge(long arr[][], int l, int m, int r)\n {\n // Find sizes of two subarrays to be merged\n int n1 = m - l + 1;\n int n2 = r - m;\n\n /* Create temp arrays */\n long L[][] = new long[n1][2];\n long R[][] = new long[n2][2];\n\n /*Copy data to temp arrays*/\n for (int i = 0; i < n1; ++i)\n {\n L[i][0] = arr[l + i][0];\n L[i][1] = arr[l + i][1];\n\n\n }\n\n for (int j = 0; j < n2; ++j) {\n R[j][0] = arr[m + 1 + j][0];\n R[j][1] = arr[m + 1 + j][1];\n }\n\n /* Merge the temp arrays */\n\n // Initial indexes of first and second subarrays\n int i = 0, j = 0;\n\n // Initial index of merged subarry array\n int k = l;\n while (i < n1 && j < n2) {\n if (L[i][0] <= R[j][0]) {\n arr[k][0] = L[i][0];\n arr[k][1] = L[i][1];\n\n i++;\n }\n else {\n arr[k][0] = R[j][0];\n arr[k][1] = R[j][1];\n j++;\n }\n k++;\n }\n\n /* Copy remaining elements of L[] if any */\n while (i < n1) {\n arr[k][0] = L[i][0];\n arr[k][1] = L[i][1];\n i++;\n k++;\n }\n\n /* Copy remaining elements of R[] if any */\n while (j < n2) {\n arr[k][0] = R[j][0];\n arr[k][1] = R[j][1];\n\n j++;\n k++;\n }\n }\n\n public static long[][] sort2elementarray(long arr[][], int l, int r)\n {\n if (l < r) {\n // Find the middle point\n int m = (l + r) / 2;\n\n // Sort first and second halves\n sort2elementarray(arr, l, m);\n sort2elementarray(arr, m + 1, r);\n\n // Merge the sorted halves\n merge(arr, l, m, r);\n }\n return arr;\n }\n\n\n static int f=1;\n static int vertices=0;\n static int edges=0;\n public static void dfs(ArrayList<Integer>[]li,int v,HashMap<Integer,Integer>hm)\n {\n hm.put(v,1);\n\n //System.out.print(v+\" \");\n //System.out.println(a[v]+\" \"+cost);\n\n\n vertices++;\n edges+=li[v].size();\n for (int j = 0; j < li[v].size(); j++)\n {\n\n if (hm.get(li[v].get(j)) == null)\n {\n\n dfs(li, li[v].get(j), hm);\n\n }\n }\n }\n\n\n\n\n public static void dfsutil(ArrayList<Integer>[]li,int n,int v)\n {\n HashMap<Integer,Integer>hm=new HashMap<>();\n int c=0;\n\n for(int j=1;j<=n;j++)\n {\n\n if(hm.get(j)==null)\n {\n vertices=0;\n edges=0;\n dfs(li,j,hm);\n if(edges!=vertices*(vertices-1)) {\n System.out.println(\"NO\");\n System.exit(0);\n }\n }\n }\n System.out.println(\"YES\");\n\n\n }\n public static void bipartite(ArrayList<Integer>[]li,int n) {\n int f = 1;\n int col[] = new int[n + 1];\n int fl = 1;\n Arrays.fill(col, -1);\n for (int i = 1; i <= n; i++) {\n if (col[i] == -1) {\n col[i] = 1;\n Queue<Integer> q = new LinkedList<>();\n q.add(i);\n while (!q.isEmpty()) {\n int x = q.peek();\n q.remove();\n for (int j = 0; j < li[x].size(); j++) {\n if (col[li[x].get(j)] == -1) {\n col[li[x].get(j)] = 1 - col[x];\n q.add(li[x].get(j));\n } else if (col[li[x].get(j)] == col[x]) {\n f = 0;\n break;\n }\n\n }\n\n }\n if (f == 0) {\n fl = 0;\n break;\n }\n\n\n }\n\n }\n /*if(fl==0)\n // System.out.println(-1);\n //else\n {*/\n\n long l1 = 0;\n long l2 = 0;\n for (int j = 1; j <= n; j++) {\n if (col[j] == 1) {\n l1++;\n //sb.append(j+\" \");\n } else {\n l2++;\n //sb1.append(j+\" \");\n }\n }\n long ans=(l1*l2)-(n-1);\n System.out.println(ans);\n //}\n\n }\n\n\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n int n=sc.nextInt();\n String ac=\"AC\";\n long a=0;\n String tle=\"TLE\";\n long t=0;\n String wa=\"WA\";\n long w=0;\n String re=\"RE\";\n long r=0;\n for(int j=0;j<n;j++)\n {\n String s=sc.nextLine();\n if(s.compareTo(ac)==0)\n a++;\n else if(s.compareTo(tle)==0)\n t++;\n else if(s.compareTo(wa)==0)\n w++;\n else\n r++;\n }\n System.out.println(ac+ \" \"+\"x\"+\" \"+a);\n System.out.println(wa+ \" \"+\"x\"+\" \"+w);\n System.out.println(tle+ \" \"+\"x\"+\" \"+t);\n System.out.println(re+ \" \"+\"x\"+\" \"+r);\n\n\n\n }\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",
"import java.io.*;",
"io.*",
"java",
"import java.lang.annotation.Native;",
"Native",
"java.lang.annotation",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"import java.util.*;",
"util.*",
"java",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n static final int mod = 1000000007;\n static final int mod1 = 1073741824;\n\n public static int gcd(int a, int b) {\n if (a == 0)\n return b;\n return gcd(b % a, a);\n }\n\n static boolean prime[] = new boolean[1000001];\n public static void merge(long arr[][], int l, int m, int r)\n {\n // Find sizes of two subarrays to be merged\n int n1 = m - l + 1;\n int n2 = r - m;\n\n /* Create temp arrays */\n long L[][] = new long[n1][2];\n long R[][] = new long[n2][2];\n\n /*Copy data to temp arrays*/\n for (int i = 0; i < n1; ++i)\n {\n L[i][0] = arr[l + i][0];\n L[i][1] = arr[l + i][1];\n\n\n }\n\n for (int j = 0; j < n2; ++j) {\n R[j][0] = arr[m + 1 + j][0];\n R[j][1] = arr[m + 1 + j][1];\n }\n\n /* Merge the temp arrays */\n\n // Initial indexes of first and second subarrays\n int i = 0, j = 0;\n\n // Initial index of merged subarry array\n int k = l;\n while (i < n1 && j < n2) {\n if (L[i][0] <= R[j][0]) {\n arr[k][0] = L[i][0];\n arr[k][1] = L[i][1];\n\n i++;\n }\n else {\n arr[k][0] = R[j][0];\n arr[k][1] = R[j][1];\n j++;\n }\n k++;\n }\n\n /* Copy remaining elements of L[] if any */\n while (i < n1) {\n arr[k][0] = L[i][0];\n arr[k][1] = L[i][1];\n i++;\n k++;\n }\n\n /* Copy remaining elements of R[] if any */\n while (j < n2) {\n arr[k][0] = R[j][0];\n arr[k][1] = R[j][1];\n\n j++;\n k++;\n }\n }\n\n public static long[][] sort2elementarray(long arr[][], int l, int r)\n {\n if (l < r) {\n // Find the middle point\n int m = (l + r) / 2;\n\n // Sort first and second halves\n sort2elementarray(arr, l, m);\n sort2elementarray(arr, m + 1, r);\n\n // Merge the sorted halves\n merge(arr, l, m, r);\n }\n return arr;\n }\n\n\n static int f=1;\n static int vertices=0;\n static int edges=0;\n public static void dfs(ArrayList<Integer>[]li,int v,HashMap<Integer,Integer>hm)\n {\n hm.put(v,1);\n\n //System.out.print(v+\" \");\n //System.out.println(a[v]+\" \"+cost);\n\n\n vertices++;\n edges+=li[v].size();\n for (int j = 0; j < li[v].size(); j++)\n {\n\n if (hm.get(li[v].get(j)) == null)\n {\n\n dfs(li, li[v].get(j), hm);\n\n }\n }\n }\n\n\n\n\n public static void dfsutil(ArrayList<Integer>[]li,int n,int v)\n {\n HashMap<Integer,Integer>hm=new HashMap<>();\n int c=0;\n\n for(int j=1;j<=n;j++)\n {\n\n if(hm.get(j)==null)\n {\n vertices=0;\n edges=0;\n dfs(li,j,hm);\n if(edges!=vertices*(vertices-1)) {\n System.out.println(\"NO\");\n System.exit(0);\n }\n }\n }\n System.out.println(\"YES\");\n\n\n }\n public static void bipartite(ArrayList<Integer>[]li,int n) {\n int f = 1;\n int col[] = new int[n + 1];\n int fl = 1;\n Arrays.fill(col, -1);\n for (int i = 1; i <= n; i++) {\n if (col[i] == -1) {\n col[i] = 1;\n Queue<Integer> q = new LinkedList<>();\n q.add(i);\n while (!q.isEmpty()) {\n int x = q.peek();\n q.remove();\n for (int j = 0; j < li[x].size(); j++) {\n if (col[li[x].get(j)] == -1) {\n col[li[x].get(j)] = 1 - col[x];\n q.add(li[x].get(j));\n } else if (col[li[x].get(j)] == col[x]) {\n f = 0;\n break;\n }\n\n }\n\n }\n if (f == 0) {\n fl = 0;\n break;\n }\n\n\n }\n\n }\n /*if(fl==0)\n // System.out.println(-1);\n //else\n {*/\n\n long l1 = 0;\n long l2 = 0;\n for (int j = 1; j <= n; j++) {\n if (col[j] == 1) {\n l1++;\n //sb.append(j+\" \");\n } else {\n l2++;\n //sb1.append(j+\" \");\n }\n }\n long ans=(l1*l2)-(n-1);\n System.out.println(ans);\n //}\n\n }\n\n\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n int n=sc.nextInt();\n String ac=\"AC\";\n long a=0;\n String tle=\"TLE\";\n long t=0;\n String wa=\"WA\";\n long w=0;\n String re=\"RE\";\n long r=0;\n for(int j=0;j<n;j++)\n {\n String s=sc.nextLine();\n if(s.compareTo(ac)==0)\n a++;\n else if(s.compareTo(tle)==0)\n t++;\n else if(s.compareTo(wa)==0)\n w++;\n else\n r++;\n }\n System.out.println(ac+ \" \"+\"x\"+\" \"+a);\n System.out.println(wa+ \" \"+\"x\"+\" \"+w);\n System.out.println(tle+ \" \"+\"x\"+\" \"+t);\n System.out.println(re+ \" \"+\"x\"+\" \"+r);\n\n\n\n }\n}",
"Main",
"static final int mod = 1000000007;",
"mod",
"1000000007",
"static final int mod1 = 1073741824;",
"mod1",
"1073741824",
"static boolean prime[] = new boolean[1000001];",
"prime",
"new boolean[1000001]",
"1000001",
"static int f=1;",
"f",
"1",
"static int vertices=0;",
"vertices",
"0",
"static int edges=0;",
"edges",
"0",
"public static int gcd(int a, int b) {\n if (a == 0)\n return b;\n return gcd(b % a, a);\n }",
"gcd",
"{\n if (a == 0)\n return b;\n return gcd(b % a, a);\n }",
"if (a == 0)\n return b;",
"a == 0",
"a",
"0",
"return b;",
"b",
"return gcd(b % a, a);",
"gcd(b % a, a)",
"gcd",
"b % a",
"b",
"a",
"a",
"int a",
"a",
"int b",
"b",
"public static void merge(long arr[][], int l, int m, int r)\n {\n // Find sizes of two subarrays to be merged\n int n1 = m - l + 1;\n int n2 = r - m;\n\n /* Create temp arrays */\n long L[][] = new long[n1][2];\n long R[][] = new long[n2][2];\n\n /*Copy data to temp arrays*/\n for (int i = 0; i < n1; ++i)\n {\n L[i][0] = arr[l + i][0];\n L[i][1] = arr[l + i][1];\n\n\n }\n\n for (int j = 0; j < n2; ++j) {\n R[j][0] = arr[m + 1 + j][0];\n R[j][1] = arr[m + 1 + j][1];\n }\n\n /* Merge the temp arrays */\n\n // Initial indexes of first and second subarrays\n int i = 0, j = 0;\n\n // Initial index of merged subarry array\n int k = l;\n while (i < n1 && j < n2) {\n if (L[i][0] <= R[j][0]) {\n arr[k][0] = L[i][0];\n arr[k][1] = L[i][1];\n\n i++;\n }\n else {\n arr[k][0] = R[j][0];\n arr[k][1] = R[j][1];\n j++;\n }\n k++;\n }\n\n /* Copy remaining elements of L[] if any */\n while (i < n1) {\n arr[k][0] = L[i][0];\n arr[k][1] = L[i][1];\n i++;\n k++;\n }\n\n /* Copy remaining elements of R[] if any */\n while (j < n2) {\n arr[k][0] = R[j][0];\n arr[k][1] = R[j][1];\n\n j++;\n k++;\n }\n }",
"merge",
"{\n // Find sizes of two subarrays to be merged\n int n1 = m - l + 1;\n int n2 = r - m;\n\n /* Create temp arrays */\n long L[][] = new long[n1][2];\n long R[][] = new long[n2][2];\n\n /*Copy data to temp arrays*/\n for (int i = 0; i < n1; ++i)\n {\n L[i][0] = arr[l + i][0];\n L[i][1] = arr[l + i][1];\n\n\n }\n\n for (int j = 0; j < n2; ++j) {\n R[j][0] = arr[m + 1 + j][0];\n R[j][1] = arr[m + 1 + j][1];\n }\n\n /* Merge the temp arrays */\n\n // Initial indexes of first and second subarrays\n int i = 0, j = 0;\n\n // Initial index of merged subarry array\n int k = l;\n while (i < n1 && j < n2) {\n if (L[i][0] <= R[j][0]) {\n arr[k][0] = L[i][0];\n arr[k][1] = L[i][1];\n\n i++;\n }\n else {\n arr[k][0] = R[j][0];\n arr[k][1] = R[j][1];\n j++;\n }\n k++;\n }\n\n /* Copy remaining elements of L[] if any */\n while (i < n1) {\n arr[k][0] = L[i][0];\n arr[k][1] = L[i][1];\n i++;\n k++;\n }\n\n /* Copy remaining elements of R[] if any */\n while (j < n2) {\n arr[k][0] = R[j][0];\n arr[k][1] = R[j][1];\n\n j++;\n k++;\n }\n }",
"int n1 = m - l + 1;",
"n1",
"m - l + 1",
"m - l",
"m",
"l",
"1",
"int n2 = r - m;",
"n2",
"r - m",
"r",
"m",
"long L[][] = new long[n1][2];",
"L",
"new long[n1][2]",
"n1",
"2",
"long R[][] = new long[n2][2];",
"R",
"new long[n2][2]",
"n2",
"2",
"for (int i = 0; i < n1; ++i)\n {\n L[i][0] = arr[l + i][0];\n L[i][1] = arr[l + i][1];\n\n\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n1",
"i",
"n1",
"++i",
"++i",
"i",
"{\n L[i][0] = arr[l + i][0];\n L[i][1] = arr[l + i][1];\n\n\n }",
"{\n L[i][0] = arr[l + i][0];\n L[i][1] = arr[l + i][1];\n\n\n }",
"L[i][0] = arr[l + i][0]",
"L[i][0]",
"L[i]",
"L",
"i",
"0",
"arr[l + i][0]",
"arr[l + i]",
"arr",
"l + i",
"l",
"i",
"0",
"L[i][1] = arr[l + i][1]",
"L[i][1]",
"L[i]",
"L",
"i",
"1",
"arr[l + i][1]",
"arr[l + i]",
"arr",
"l + i",
"l",
"i",
"1",
"for (int j = 0; j < n2; ++j) {\n R[j][0] = arr[m + 1 + j][0];\n R[j][1] = arr[m + 1 + j][1];\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < n2",
"j",
"n2",
"++j",
"++j",
"j",
"{\n R[j][0] = arr[m + 1 + j][0];\n R[j][1] = arr[m + 1 + j][1];\n }",
"{\n R[j][0] = arr[m + 1 + j][0];\n R[j][1] = arr[m + 1 + j][1];\n }",
"R[j][0] = arr[m + 1 + j][0]",
"R[j][0]",
"R[j]",
"R",
"j",
"0",
"arr[m + 1 + j][0]",
"arr[m + 1 + j]",
"arr",
"m + 1 + j",
"m + 1 + j",
"m",
"1",
"j",
"0",
"R[j][1] = arr[m + 1 + j][1]",
"R[j][1]",
"R[j]",
"R",
"j",
"1",
"arr[m + 1 + j][1]",
"arr[m + 1 + j]",
"arr",
"m + 1 + j",
"m + 1 + j",
"m",
"1",
"j",
"1",
"int i = 0",
"i",
"0",
"j = 0;",
"j",
"0",
"int k = l;",
"k",
"l",
"while (i < n1 && j < n2) {\n if (L[i][0] <= R[j][0]) {\n arr[k][0] = L[i][0];\n arr[k][1] = L[i][1];\n\n i++;\n }\n else {\n arr[k][0] = R[j][0];\n arr[k][1] = R[j][1];\n j++;\n }\n k++;\n }",
"i < n1 && j < n2",
"i < n1",
"i",
"n1",
"j < n2",
"j",
"n2",
"{\n if (L[i][0] <= R[j][0]) {\n arr[k][0] = L[i][0];\n arr[k][1] = L[i][1];\n\n i++;\n }\n else {\n arr[k][0] = R[j][0];\n arr[k][1] = R[j][1];\n j++;\n }\n k++;\n }",
"if (L[i][0] <= R[j][0]) {\n arr[k][0] = L[i][0];\n arr[k][1] = L[i][1];\n\n i++;\n }\n else {\n arr[k][0] = R[j][0];\n arr[k][1] = R[j][1];\n j++;\n }",
"L[i][0] <= R[j][0]",
"L[i][0]",
"L[i]",
"L",
"i",
"0",
"R[j][0]",
"R[j]",
"R",
"j",
"0",
"{\n arr[k][0] = L[i][0];\n arr[k][1] = L[i][1];\n\n i++;\n }",
"arr[k][0] = L[i][0]",
"arr[k][0]",
"arr[k]",
"arr",
"k",
"0",
"L[i][0]",
"L[i]",
"L",
"i",
"0",
"arr[k][1] = L[i][1]",
"arr[k][1]",
"arr[k]",
"arr",
"k",
"1",
"L[i][1]",
"L[i]",
"L",
"i",
"1",
"i++",
"i",
"{\n arr[k][0] = R[j][0];\n arr[k][1] = R[j][1];\n j++;\n }",
"arr[k][0] = R[j][0]",
"arr[k][0]",
"arr[k]",
"arr",
"k",
"0",
"R[j][0]",
"R[j]",
"R",
"j",
"0",
"arr[k][1] = R[j][1]",
"arr[k][1]",
"arr[k]",
"arr",
"k",
"1",
"R[j][1]",
"R[j]",
"R",
"j",
"1",
"j++",
"j",
"k++",
"k",
"while (i < n1) {\n arr[k][0] = L[i][0];\n arr[k][1] = L[i][1];\n i++;\n k++;\n }",
"i < n1",
"i",
"n1",
"{\n arr[k][0] = L[i][0];\n arr[k][1] = L[i][1];\n i++;\n k++;\n }",
"arr[k][0] = L[i][0]",
"arr[k][0]",
"arr[k]",
"arr",
"k",
"0",
"L[i][0]",
"L[i]",
"L",
"i",
"0",
"arr[k][1] = L[i][1]",
"arr[k][1]",
"arr[k]",
"arr",
"k",
"1",
"L[i][1]",
"L[i]",
"L",
"i",
"1",
"i++",
"i",
"k++",
"k",
"while (j < n2) {\n arr[k][0] = R[j][0];\n arr[k][1] = R[j][1];\n\n j++;\n k++;\n }",
"j < n2",
"j",
"n2",
"{\n arr[k][0] = R[j][0];\n arr[k][1] = R[j][1];\n\n j++;\n k++;\n }",
"arr[k][0] = R[j][0]",
"arr[k][0]",
"arr[k]",
"arr",
"k",
"0",
"R[j][0]",
"R[j]",
"R",
"j",
"0",
"arr[k][1] = R[j][1]",
"arr[k][1]",
"arr[k]",
"arr",
"k",
"1",
"R[j][1]",
"R[j]",
"R",
"j",
"1",
"j++",
"j",
"k++",
"k",
"long arr[][]",
"arr",
"int l",
"l",
"int m",
"m",
"int r",
"r",
"public static long[][] sort2elementarray(long arr[][], int l, int r)\n {\n if (l < r) {\n // Find the middle point\n int m = (l + r) / 2;\n\n // Sort first and second halves\n sort2elementarray(arr, l, m);\n sort2elementarray(arr, m + 1, r);\n\n // Merge the sorted halves\n merge(arr, l, m, r);\n }\n return arr;\n }",
"sort2elementarray",
"{\n if (l < r) {\n // Find the middle point\n int m = (l + r) / 2;\n\n // Sort first and second halves\n sort2elementarray(arr, l, m);\n sort2elementarray(arr, m + 1, r);\n\n // Merge the sorted halves\n merge(arr, l, m, r);\n }\n return arr;\n }",
"if (l < r) {\n // Find the middle point\n int m = (l + r) / 2;\n\n // Sort first and second halves\n sort2elementarray(arr, l, m);\n sort2elementarray(arr, m + 1, r);\n\n // Merge the sorted halves\n merge(arr, l, m, r);\n }",
"l < r",
"l",
"r",
"{\n // Find the middle point\n int m = (l + r) / 2;\n\n // Sort first and second halves\n sort2elementarray(arr, l, m);\n sort2elementarray(arr, m + 1, r);\n\n // Merge the sorted halves\n merge(arr, l, m, r);\n }",
"int m = (l + r) / 2;",
"m",
"(l + r) / 2",
"(l + r)",
"l",
"r",
"2",
"sort2elementarray(arr, l, m)",
"sort2elementarray",
"arr",
"l",
"m",
"sort2elementarray(arr, m + 1, r)",
"sort2elementarray",
"arr",
"m + 1",
"m",
"1",
"r",
"merge(arr, l, m, r)",
"merge",
"arr",
"l",
"m",
"r",
"return arr;",
"arr",
"long arr[][]",
"arr",
"int l",
"l",
"int r",
"r",
"public static void dfs(ArrayList<Integer>[]li,int v,HashMap<Integer,Integer>hm)\n {\n hm.put(v,1);\n\n //System.out.print(v+\" \");\n //System.out.println(a[v]+\" \"+cost);\n\n\n vertices++;\n edges+=li[v].size();\n for (int j = 0; j < li[v].size(); j++)\n {\n\n if (hm.get(li[v].get(j)) == null)\n {\n\n dfs(li, li[v].get(j), hm);\n\n }\n }\n }",
"dfs",
"{\n hm.put(v,1);\n\n //System.out.print(v+\" \");\n //System.out.println(a[v]+\" \"+cost);\n\n\n vertices++;\n edges+=li[v].size();\n for (int j = 0; j < li[v].size(); j++)\n {\n\n if (hm.get(li[v].get(j)) == null)\n {\n\n dfs(li, li[v].get(j), hm);\n\n }\n }\n }",
"hm.put(v,1)",
"hm.put",
"hm",
"v",
"1",
"vertices++",
"vertices",
"edges+=li[v].size()",
"edges",
"li[v].size()",
"li[v].size",
"li[v]",
"li",
"v",
"for (int j = 0; j < li[v].size(); j++)\n {\n\n if (hm.get(li[v].get(j)) == null)\n {\n\n dfs(li, li[v].get(j), hm);\n\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < li[v].size()",
"j",
"li[v].size()",
"li[v].size",
"li[v]",
"li",
"v",
"j++",
"j++",
"j",
"{\n\n if (hm.get(li[v].get(j)) == null)\n {\n\n dfs(li, li[v].get(j), hm);\n\n }\n }",
"{\n\n if (hm.get(li[v].get(j)) == null)\n {\n\n dfs(li, li[v].get(j), hm);\n\n }\n }",
"if (hm.get(li[v].get(j)) == null)\n {\n\n dfs(li, li[v].get(j), hm);\n\n }",
"hm.get(li[v].get(j)) == null",
"hm.get(li[v].get(j))",
"hm.get",
"hm",
"li[v].get(j)",
"li[v].get",
"li[v]",
"li",
"v",
"j",
"null",
"{\n\n dfs(li, li[v].get(j), hm);\n\n }",
"dfs(li, li[v].get(j), hm)",
"dfs",
"li",
"li[v].get(j)",
"li[v].get",
"li[v]",
"li",
"v",
"j",
"hm",
"ArrayList<Integer>[]li",
"li",
"int v",
"v",
"HashMap<Integer,Integer>hm",
"hm",
"public static void dfsutil(ArrayList<Integer>[]li,int n,int v)\n {\n HashMap<Integer,Integer>hm=new HashMap<>();\n int c=0;\n\n for(int j=1;j<=n;j++)\n {\n\n if(hm.get(j)==null)\n {\n vertices=0;\n edges=0;\n dfs(li,j,hm);\n if(edges!=vertices*(vertices-1)) {\n System.out.println(\"NO\");\n System.exit(0);\n }\n }\n }\n System.out.println(\"YES\");\n\n\n }",
"dfsutil",
"{\n HashMap<Integer,Integer>hm=new HashMap<>();\n int c=0;\n\n for(int j=1;j<=n;j++)\n {\n\n if(hm.get(j)==null)\n {\n vertices=0;\n edges=0;\n dfs(li,j,hm);\n if(edges!=vertices*(vertices-1)) {\n System.out.println(\"NO\");\n System.exit(0);\n }\n }\n }\n System.out.println(\"YES\");\n\n\n }",
"HashMap<Integer,Integer>hm=new HashMap<>();",
"hm",
"new HashMap<>()",
"int c=0;",
"c",
"0",
"for(int j=1;j<=n;j++)\n {\n\n if(hm.get(j)==null)\n {\n vertices=0;\n edges=0;\n dfs(li,j,hm);\n if(edges!=vertices*(vertices-1)) {\n System.out.println(\"NO\");\n System.exit(0);\n }\n }\n }",
"int j=1;",
"int j=1;",
"j",
"1",
"j<=n",
"j",
"n",
"j++",
"j++",
"j",
"{\n\n if(hm.get(j)==null)\n {\n vertices=0;\n edges=0;\n dfs(li,j,hm);\n if(edges!=vertices*(vertices-1)) {\n System.out.println(\"NO\");\n System.exit(0);\n }\n }\n }",
"{\n\n if(hm.get(j)==null)\n {\n vertices=0;\n edges=0;\n dfs(li,j,hm);\n if(edges!=vertices*(vertices-1)) {\n System.out.println(\"NO\");\n System.exit(0);\n }\n }\n }",
"if(hm.get(j)==null)\n {\n vertices=0;\n edges=0;\n dfs(li,j,hm);\n if(edges!=vertices*(vertices-1)) {\n System.out.println(\"NO\");\n System.exit(0);\n }\n }",
"hm.get(j)==null",
"hm.get(j)",
"hm.get",
"hm",
"j",
"null",
"{\n vertices=0;\n edges=0;\n dfs(li,j,hm);\n if(edges!=vertices*(vertices-1)) {\n System.out.println(\"NO\");\n System.exit(0);\n }\n }",
"vertices=0",
"vertices",
"0",
"edges=0",
"edges",
"0",
"dfs(li,j,hm)",
"dfs",
"li",
"j",
"hm",
"if(edges!=vertices*(vertices-1)) {\n System.out.println(\"NO\");\n System.exit(0);\n }",
"edges!=vertices*(vertices-1)",
"edges",
"vertices*(vertices-1)",
"vertices",
"(vertices-1)",
"vertices",
"1",
"{\n System.out.println(\"NO\");\n System.exit(0);\n }",
"System.out.println(\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NO\"",
"System.exit(0)",
"System.exit",
"System",
"0",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"ArrayList<Integer>[]li",
"li",
"int n",
"n",
"int v",
"v",
"public static void bipartite(ArrayList<Integer>[]li,int n) {\n int f = 1;\n int col[] = new int[n + 1];\n int fl = 1;\n Arrays.fill(col, -1);\n for (int i = 1; i <= n; i++) {\n if (col[i] == -1) {\n col[i] = 1;\n Queue<Integer> q = new LinkedList<>();\n q.add(i);\n while (!q.isEmpty()) {\n int x = q.peek();\n q.remove();\n for (int j = 0; j < li[x].size(); j++) {\n if (col[li[x].get(j)] == -1) {\n col[li[x].get(j)] = 1 - col[x];\n q.add(li[x].get(j));\n } else if (col[li[x].get(j)] == col[x]) {\n f = 0;\n break;\n }\n\n }\n\n }\n if (f == 0) {\n fl = 0;\n break;\n }\n\n\n }\n\n }\n /*if(fl==0)\n // System.out.println(-1);\n //else\n {*/\n\n long l1 = 0;\n long l2 = 0;\n for (int j = 1; j <= n; j++) {\n if (col[j] == 1) {\n l1++;\n //sb.append(j+\" \");\n } else {\n l2++;\n //sb1.append(j+\" \");\n }\n }\n long ans=(l1*l2)-(n-1);\n System.out.println(ans);\n //}\n\n }",
"bipartite",
"{\n int f = 1;\n int col[] = new int[n + 1];\n int fl = 1;\n Arrays.fill(col, -1);\n for (int i = 1; i <= n; i++) {\n if (col[i] == -1) {\n col[i] = 1;\n Queue<Integer> q = new LinkedList<>();\n q.add(i);\n while (!q.isEmpty()) {\n int x = q.peek();\n q.remove();\n for (int j = 0; j < li[x].size(); j++) {\n if (col[li[x].get(j)] == -1) {\n col[li[x].get(j)] = 1 - col[x];\n q.add(li[x].get(j));\n } else if (col[li[x].get(j)] == col[x]) {\n f = 0;\n break;\n }\n\n }\n\n }\n if (f == 0) {\n fl = 0;\n break;\n }\n\n\n }\n\n }\n /*if(fl==0)\n // System.out.println(-1);\n //else\n {*/\n\n long l1 = 0;\n long l2 = 0;\n for (int j = 1; j <= n; j++) {\n if (col[j] == 1) {\n l1++;\n //sb.append(j+\" \");\n } else {\n l2++;\n //sb1.append(j+\" \");\n }\n }\n long ans=(l1*l2)-(n-1);\n System.out.println(ans);\n //}\n\n }",
"int f = 1;",
"f",
"1",
"int col[] = new int[n + 1];",
"col",
"new int[n + 1]",
"n + 1",
"n",
"1",
"int fl = 1;",
"fl",
"1",
"Arrays.fill(col, -1)",
"Arrays.fill",
"Arrays",
"col",
"-1",
"1",
"for (int i = 1; i <= n; i++) {\n if (col[i] == -1) {\n col[i] = 1;\n Queue<Integer> q = new LinkedList<>();\n q.add(i);\n while (!q.isEmpty()) {\n int x = q.peek();\n q.remove();\n for (int j = 0; j < li[x].size(); j++) {\n if (col[li[x].get(j)] == -1) {\n col[li[x].get(j)] = 1 - col[x];\n q.add(li[x].get(j));\n } else if (col[li[x].get(j)] == col[x]) {\n f = 0;\n break;\n }\n\n }\n\n }\n if (f == 0) {\n fl = 0;\n break;\n }\n\n\n }\n\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if (col[i] == -1) {\n col[i] = 1;\n Queue<Integer> q = new LinkedList<>();\n q.add(i);\n while (!q.isEmpty()) {\n int x = q.peek();\n q.remove();\n for (int j = 0; j < li[x].size(); j++) {\n if (col[li[x].get(j)] == -1) {\n col[li[x].get(j)] = 1 - col[x];\n q.add(li[x].get(j));\n } else if (col[li[x].get(j)] == col[x]) {\n f = 0;\n break;\n }\n\n }\n\n }\n if (f == 0) {\n fl = 0;\n break;\n }\n\n\n }\n\n }",
"{\n if (col[i] == -1) {\n col[i] = 1;\n Queue<Integer> q = new LinkedList<>();\n q.add(i);\n while (!q.isEmpty()) {\n int x = q.peek();\n q.remove();\n for (int j = 0; j < li[x].size(); j++) {\n if (col[li[x].get(j)] == -1) {\n col[li[x].get(j)] = 1 - col[x];\n q.add(li[x].get(j));\n } else if (col[li[x].get(j)] == col[x]) {\n f = 0;\n break;\n }\n\n }\n\n }\n if (f == 0) {\n fl = 0;\n break;\n }\n\n\n }\n\n }",
"if (col[i] == -1) {\n col[i] = 1;\n Queue<Integer> q = new LinkedList<>();\n q.add(i);\n while (!q.isEmpty()) {\n int x = q.peek();\n q.remove();\n for (int j = 0; j < li[x].size(); j++) {\n if (col[li[x].get(j)] == -1) {\n col[li[x].get(j)] = 1 - col[x];\n q.add(li[x].get(j));\n } else if (col[li[x].get(j)] == col[x]) {\n f = 0;\n break;\n }\n\n }\n\n }\n if (f == 0) {\n fl = 0;\n break;\n }\n\n\n }",
"col[i] == -1",
"col[i]",
"col",
"i",
"-1",
"1",
"{\n col[i] = 1;\n Queue<Integer> q = new LinkedList<>();\n q.add(i);\n while (!q.isEmpty()) {\n int x = q.peek();\n q.remove();\n for (int j = 0; j < li[x].size(); j++) {\n if (col[li[x].get(j)] == -1) {\n col[li[x].get(j)] = 1 - col[x];\n q.add(li[x].get(j));\n } else if (col[li[x].get(j)] == col[x]) {\n f = 0;\n break;\n }\n\n }\n\n }\n if (f == 0) {\n fl = 0;\n break;\n }\n\n\n }",
"col[i] = 1",
"col[i]",
"col",
"i",
"1",
"Queue<Integer> q = new LinkedList<>();",
"q",
"new LinkedList<>()",
"q.add(i)",
"q.add",
"q",
"i",
"while (!q.isEmpty()) {\n int x = q.peek();\n q.remove();\n for (int j = 0; j < li[x].size(); j++) {\n if (col[li[x].get(j)] == -1) {\n col[li[x].get(j)] = 1 - col[x];\n q.add(li[x].get(j));\n } else if (col[li[x].get(j)] == col[x]) {\n f = 0;\n break;\n }\n\n }\n\n }",
"!q.isEmpty()",
"q.isEmpty()",
"q.isEmpty",
"q",
"{\n int x = q.peek();\n q.remove();\n for (int j = 0; j < li[x].size(); j++) {\n if (col[li[x].get(j)] == -1) {\n col[li[x].get(j)] = 1 - col[x];\n q.add(li[x].get(j));\n } else if (col[li[x].get(j)] == col[x]) {\n f = 0;\n break;\n }\n\n }\n\n }",
"int x = q.peek();",
"x",
"q.peek()",
"q.peek",
"q",
"q.remove()",
"q.remove",
"q",
"for (int j = 0; j < li[x].size(); j++) {\n if (col[li[x].get(j)] == -1) {\n col[li[x].get(j)] = 1 - col[x];\n q.add(li[x].get(j));\n } else if (col[li[x].get(j)] == col[x]) {\n f = 0;\n break;\n }\n\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < li[x].size()",
"j",
"li[x].size()",
"li[x].size",
"li[x]",
"li",
"x",
"j++",
"j++",
"j",
"{\n if (col[li[x].get(j)] == -1) {\n col[li[x].get(j)] = 1 - col[x];\n q.add(li[x].get(j));\n } else if (col[li[x].get(j)] == col[x]) {\n f = 0;\n break;\n }\n\n }",
"{\n if (col[li[x].get(j)] == -1) {\n col[li[x].get(j)] = 1 - col[x];\n q.add(li[x].get(j));\n } else if (col[li[x].get(j)] == col[x]) {\n f = 0;\n break;\n }\n\n }",
"if (col[li[x].get(j)] == -1) {\n col[li[x].get(j)] = 1 - col[x];\n q.add(li[x].get(j));\n } else if (col[li[x].get(j)] == col[x]) {\n f = 0;\n break;\n }",
"col[li[x].get(j)] == -1",
"col[li[x].get(j)]",
"col",
"li[x].get(j)",
"li[x].get",
"li[x]",
"li",
"x",
"j",
"-1",
"1",
"{\n col[li[x].get(j)] = 1 - col[x];\n q.add(li[x].get(j));\n }",
"col[li[x].get(j)] = 1 - col[x]",
"col[li[x].get(j)]",
"col",
"li[x].get(j)",
"li[x].get",
"li[x]",
"li",
"x",
"j",
"1 - col[x]",
"1",
"col[x]",
"col",
"x",
"q.add(li[x].get(j))",
"q.add",
"q",
"li[x].get(j)",
"li[x].get",
"li[x]",
"li",
"x",
"j",
"if (col[li[x].get(j)] == col[x]) {\n f = 0;\n break;\n }",
"col[li[x].get(j)] == col[x]",
"col[li[x].get(j)]",
"col",
"li[x].get(j)",
"li[x].get",
"li[x]",
"li",
"x",
"j",
"col[x]",
"col",
"x",
"{\n f = 0;\n break;\n }",
"f = 0",
"f",
"0",
"break;",
"if (f == 0) {\n fl = 0;\n break;\n }",
"f == 0",
"f",
"0",
"{\n fl = 0;\n break;\n }",
"fl = 0",
"fl",
"0",
"break;",
"long l1 = 0;",
"l1",
"0",
"long l2 = 0;",
"l2",
"0",
"for (int j = 1; j <= n; j++) {\n if (col[j] == 1) {\n l1++;\n //sb.append(j+\" \");\n } else {\n l2++;\n //sb1.append(j+\" \");\n }\n }",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j <= n",
"j",
"n",
"j++",
"j++",
"j",
"{\n if (col[j] == 1) {\n l1++;\n //sb.append(j+\" \");\n } else {\n l2++;\n //sb1.append(j+\" \");\n }\n }",
"{\n if (col[j] == 1) {\n l1++;\n //sb.append(j+\" \");\n } else {\n l2++;\n //sb1.append(j+\" \");\n }\n }",
"if (col[j] == 1) {\n l1++;\n //sb.append(j+\" \");\n } else {\n l2++;\n //sb1.append(j+\" \");\n }",
"col[j] == 1",
"col[j]",
"col",
"j",
"1",
"{\n l1++;\n //sb.append(j+\" \");\n }",
"l1++",
"l1",
"{\n l2++;\n //sb1.append(j+\" \");\n }",
"l2++",
"l2",
"long ans=(l1*l2)-(n-1);",
"ans",
"(l1*l2)-(n-1)",
"(l1*l2)",
"l1",
"l2",
"(n-1)",
"n",
"1",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"ArrayList<Integer>[]li",
"li",
"int n",
"n",
"public static void main(String[] args) {\n FastReader sc = new FastReader();\n int n=sc.nextInt();\n String ac=\"AC\";\n long a=0;\n String tle=\"TLE\";\n long t=0;\n String wa=\"WA\";\n long w=0;\n String re=\"RE\";\n long r=0;\n for(int j=0;j<n;j++)\n {\n String s=sc.nextLine();\n if(s.compareTo(ac)==0)\n a++;\n else if(s.compareTo(tle)==0)\n t++;\n else if(s.compareTo(wa)==0)\n w++;\n else\n r++;\n }\n System.out.println(ac+ \" \"+\"x\"+\" \"+a);\n System.out.println(wa+ \" \"+\"x\"+\" \"+w);\n System.out.println(tle+ \" \"+\"x\"+\" \"+t);\n System.out.println(re+ \" \"+\"x\"+\" \"+r);\n\n\n\n }",
"main",
"{\n FastReader sc = new FastReader();\n int n=sc.nextInt();\n String ac=\"AC\";\n long a=0;\n String tle=\"TLE\";\n long t=0;\n String wa=\"WA\";\n long w=0;\n String re=\"RE\";\n long r=0;\n for(int j=0;j<n;j++)\n {\n String s=sc.nextLine();\n if(s.compareTo(ac)==0)\n a++;\n else if(s.compareTo(tle)==0)\n t++;\n else if(s.compareTo(wa)==0)\n w++;\n else\n r++;\n }\n System.out.println(ac+ \" \"+\"x\"+\" \"+a);\n System.out.println(wa+ \" \"+\"x\"+\" \"+w);\n System.out.println(tle+ \" \"+\"x\"+\" \"+t);\n System.out.println(re+ \" \"+\"x\"+\" \"+r);\n\n\n\n }",
"FastReader sc = new FastReader();",
"sc",
"new FastReader()",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String ac=\"AC\";",
"ac",
"\"AC\"",
"long a=0;",
"a",
"0",
"String tle=\"TLE\";",
"tle",
"\"TLE\"",
"long t=0;",
"t",
"0",
"String wa=\"WA\";",
"wa",
"\"WA\"",
"long w=0;",
"w",
"0",
"String re=\"RE\";",
"re",
"\"RE\"",
"long r=0;",
"r",
"0",
"for(int j=0;j<n;j++)\n {\n String s=sc.nextLine();\n if(s.compareTo(ac)==0)\n a++;\n else if(s.compareTo(tle)==0)\n t++;\n else if(s.compareTo(wa)==0)\n w++;\n else\n r++;\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<n",
"j",
"n",
"j++",
"j++",
"j",
"{\n String s=sc.nextLine();\n if(s.compareTo(ac)==0)\n a++;\n else if(s.compareTo(tle)==0)\n t++;\n else if(s.compareTo(wa)==0)\n w++;\n else\n r++;\n }",
"{\n String s=sc.nextLine();\n if(s.compareTo(ac)==0)\n a++;\n else if(s.compareTo(tle)==0)\n t++;\n else if(s.compareTo(wa)==0)\n w++;\n else\n r++;\n }",
"String s=sc.nextLine();",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if(s.compareTo(ac)==0)\n a++;\n else if(s.compareTo(tle)==0)\n t++;\n else if(s.compareTo(wa)==0)\n w++;\n else\n r++;",
"s.compareTo(ac)==0",
"s.compareTo(ac)",
"s.compareTo",
"s",
"ac",
"0",
"a++",
"a",
"if(s.compareTo(tle)==0)\n t++;\n else if(s.compareTo(wa)==0)\n w++;\n else\n r++;",
"s.compareTo(tle)==0",
"s.compareTo(tle)",
"s.compareTo",
"s",
"tle",
"0",
"t++",
"t",
"if(s.compareTo(wa)==0)\n w++;\n else\n r++;",
"s.compareTo(wa)==0",
"s.compareTo(wa)",
"s.compareTo",
"s",
"wa",
"0",
"w++",
"w",
"r++",
"r",
"System.out.println(ac+ \" \"+\"x\"+\" \"+a)",
"System.out.println",
"System.out",
"System",
"System.out",
"ac+ \" \"+\"x\"+\" \"+a",
"\" \"",
"\"x\"",
"ac+ \" \"+\"x\"+\" \"+a",
"ac",
"\" \"",
"\"x\"",
"\" \"",
"a",
"System.out.println(wa+ \" \"+\"x\"+\" \"+w)",
"System.out.println",
"System.out",
"System",
"System.out",
"wa+ \" \"+\"x\"+\" \"+w",
"\" \"",
"\"x\"",
"wa+ \" \"+\"x\"+\" \"+w",
"wa",
"\" \"",
"\"x\"",
"\" \"",
"w",
"System.out.println(tle+ \" \"+\"x\"+\" \"+t)",
"System.out.println",
"System.out",
"System",
"System.out",
"tle+ \" \"+\"x\"+\" \"+t",
"\" \"",
"\"x\"",
"tle+ \" \"+\"x\"+\" \"+t",
"tle",
"\" \"",
"\"x\"",
"\" \"",
"t",
"System.out.println(re+ \" \"+\"x\"+\" \"+r)",
"System.out.println",
"System.out",
"System",
"System.out",
"re+ \" \"+\"x\"+\" \"+r",
"\" \"",
"\"x\"",
"re+ \" \"+\"x\"+\" \"+r",
"re",
"\" \"",
"\"x\"",
"\" \"",
"r",
"String[] args",
"args",
"static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }",
"FastReader",
"{\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }",
"br = new BufferedReader(new\n InputStreamReader(System.in))",
"br",
"new BufferedReader(new\n InputStreamReader(System.in))",
"String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n static final int mod = 1000000007;\n static final int mod1 = 1073741824;\n\n public static int gcd(int a, int b) {\n if (a == 0)\n return b;\n return gcd(b % a, a);\n }\n\n static boolean prime[] = new boolean[1000001];\n public static void merge(long arr[][], int l, int m, int r)\n {\n // Find sizes of two subarrays to be merged\n int n1 = m - l + 1;\n int n2 = r - m;\n\n /* Create temp arrays */\n long L[][] = new long[n1][2];\n long R[][] = new long[n2][2];\n\n /*Copy data to temp arrays*/\n for (int i = 0; i < n1; ++i)\n {\n L[i][0] = arr[l + i][0];\n L[i][1] = arr[l + i][1];\n\n\n }\n\n for (int j = 0; j < n2; ++j) {\n R[j][0] = arr[m + 1 + j][0];\n R[j][1] = arr[m + 1 + j][1];\n }\n\n /* Merge the temp arrays */\n\n // Initial indexes of first and second subarrays\n int i = 0, j = 0;\n\n // Initial index of merged subarry array\n int k = l;\n while (i < n1 && j < n2) {\n if (L[i][0] <= R[j][0]) {\n arr[k][0] = L[i][0];\n arr[k][1] = L[i][1];\n\n i++;\n }\n else {\n arr[k][0] = R[j][0];\n arr[k][1] = R[j][1];\n j++;\n }\n k++;\n }\n\n /* Copy remaining elements of L[] if any */\n while (i < n1) {\n arr[k][0] = L[i][0];\n arr[k][1] = L[i][1];\n i++;\n k++;\n }\n\n /* Copy remaining elements of R[] if any */\n while (j < n2) {\n arr[k][0] = R[j][0];\n arr[k][1] = R[j][1];\n\n j++;\n k++;\n }\n }\n\n public static long[][] sort2elementarray(long arr[][], int l, int r)\n {\n if (l < r) {\n // Find the middle point\n int m = (l + r) / 2;\n\n // Sort first and second halves\n sort2elementarray(arr, l, m);\n sort2elementarray(arr, m + 1, r);\n\n // Merge the sorted halves\n merge(arr, l, m, r);\n }\n return arr;\n }\n\n\n static int f=1;\n static int vertices=0;\n static int edges=0;\n public static void dfs(ArrayList<Integer>[]li,int v,HashMap<Integer,Integer>hm)\n {\n hm.put(v,1);\n\n //System.out.print(v+\" \");\n //System.out.println(a[v]+\" \"+cost);\n\n\n vertices++;\n edges+=li[v].size();\n for (int j = 0; j < li[v].size(); j++)\n {\n\n if (hm.get(li[v].get(j)) == null)\n {\n\n dfs(li, li[v].get(j), hm);\n\n }\n }\n }\n\n\n\n\n public static void dfsutil(ArrayList<Integer>[]li,int n,int v)\n {\n HashMap<Integer,Integer>hm=new HashMap<>();\n int c=0;\n\n for(int j=1;j<=n;j++)\n {\n\n if(hm.get(j)==null)\n {\n vertices=0;\n edges=0;\n dfs(li,j,hm);\n if(edges!=vertices*(vertices-1)) {\n System.out.println(\"NO\");\n System.exit(0);\n }\n }\n }\n System.out.println(\"YES\");\n\n\n }\n public static void bipartite(ArrayList<Integer>[]li,int n) {\n int f = 1;\n int col[] = new int[n + 1];\n int fl = 1;\n Arrays.fill(col, -1);\n for (int i = 1; i <= n; i++) {\n if (col[i] == -1) {\n col[i] = 1;\n Queue<Integer> q = new LinkedList<>();\n q.add(i);\n while (!q.isEmpty()) {\n int x = q.peek();\n q.remove();\n for (int j = 0; j < li[x].size(); j++) {\n if (col[li[x].get(j)] == -1) {\n col[li[x].get(j)] = 1 - col[x];\n q.add(li[x].get(j));\n } else if (col[li[x].get(j)] == col[x]) {\n f = 0;\n break;\n }\n\n }\n\n }\n if (f == 0) {\n fl = 0;\n break;\n }\n\n\n }\n\n }\n /*if(fl==0)\n // System.out.println(-1);\n //else\n {*/\n\n long l1 = 0;\n long l2 = 0;\n for (int j = 1; j <= n; j++) {\n if (col[j] == 1) {\n l1++;\n //sb.append(j+\" \");\n } else {\n l2++;\n //sb1.append(j+\" \");\n }\n }\n long ans=(l1*l2)-(n-1);\n System.out.println(ans);\n //}\n\n }\n\n\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n int n=sc.nextInt();\n String ac=\"AC\";\n long a=0;\n String tle=\"TLE\";\n long t=0;\n String wa=\"WA\";\n long w=0;\n String re=\"RE\";\n long r=0;\n for(int j=0;j<n;j++)\n {\n String s=sc.nextLine();\n if(s.compareTo(ac)==0)\n a++;\n else if(s.compareTo(tle)==0)\n t++;\n else if(s.compareTo(wa)==0)\n w++;\n else\n r++;\n }\n System.out.println(ac+ \" \"+\"x\"+\" \"+a);\n System.out.println(wa+ \" \"+\"x\"+\" \"+w);\n System.out.println(tle+ \" \"+\"x\"+\" \"+t);\n System.out.println(re+ \" \"+\"x\"+\" \"+r);\n\n\n\n }\n}",
"public class Main {\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n static final int mod = 1000000007;\n static final int mod1 = 1073741824;\n\n public static int gcd(int a, int b) {\n if (a == 0)\n return b;\n return gcd(b % a, a);\n }\n\n static boolean prime[] = new boolean[1000001];\n public static void merge(long arr[][], int l, int m, int r)\n {\n // Find sizes of two subarrays to be merged\n int n1 = m - l + 1;\n int n2 = r - m;\n\n /* Create temp arrays */\n long L[][] = new long[n1][2];\n long R[][] = new long[n2][2];\n\n /*Copy data to temp arrays*/\n for (int i = 0; i < n1; ++i)\n {\n L[i][0] = arr[l + i][0];\n L[i][1] = arr[l + i][1];\n\n\n }\n\n for (int j = 0; j < n2; ++j) {\n R[j][0] = arr[m + 1 + j][0];\n R[j][1] = arr[m + 1 + j][1];\n }\n\n /* Merge the temp arrays */\n\n // Initial indexes of first and second subarrays\n int i = 0, j = 0;\n\n // Initial index of merged subarry array\n int k = l;\n while (i < n1 && j < n2) {\n if (L[i][0] <= R[j][0]) {\n arr[k][0] = L[i][0];\n arr[k][1] = L[i][1];\n\n i++;\n }\n else {\n arr[k][0] = R[j][0];\n arr[k][1] = R[j][1];\n j++;\n }\n k++;\n }\n\n /* Copy remaining elements of L[] if any */\n while (i < n1) {\n arr[k][0] = L[i][0];\n arr[k][1] = L[i][1];\n i++;\n k++;\n }\n\n /* Copy remaining elements of R[] if any */\n while (j < n2) {\n arr[k][0] = R[j][0];\n arr[k][1] = R[j][1];\n\n j++;\n k++;\n }\n }\n\n public static long[][] sort2elementarray(long arr[][], int l, int r)\n {\n if (l < r) {\n // Find the middle point\n int m = (l + r) / 2;\n\n // Sort first and second halves\n sort2elementarray(arr, l, m);\n sort2elementarray(arr, m + 1, r);\n\n // Merge the sorted halves\n merge(arr, l, m, r);\n }\n return arr;\n }\n\n\n static int f=1;\n static int vertices=0;\n static int edges=0;\n public static void dfs(ArrayList<Integer>[]li,int v,HashMap<Integer,Integer>hm)\n {\n hm.put(v,1);\n\n //System.out.print(v+\" \");\n //System.out.println(a[v]+\" \"+cost);\n\n\n vertices++;\n edges+=li[v].size();\n for (int j = 0; j < li[v].size(); j++)\n {\n\n if (hm.get(li[v].get(j)) == null)\n {\n\n dfs(li, li[v].get(j), hm);\n\n }\n }\n }\n\n\n\n\n public static void dfsutil(ArrayList<Integer>[]li,int n,int v)\n {\n HashMap<Integer,Integer>hm=new HashMap<>();\n int c=0;\n\n for(int j=1;j<=n;j++)\n {\n\n if(hm.get(j)==null)\n {\n vertices=0;\n edges=0;\n dfs(li,j,hm);\n if(edges!=vertices*(vertices-1)) {\n System.out.println(\"NO\");\n System.exit(0);\n }\n }\n }\n System.out.println(\"YES\");\n\n\n }\n public static void bipartite(ArrayList<Integer>[]li,int n) {\n int f = 1;\n int col[] = new int[n + 1];\n int fl = 1;\n Arrays.fill(col, -1);\n for (int i = 1; i <= n; i++) {\n if (col[i] == -1) {\n col[i] = 1;\n Queue<Integer> q = new LinkedList<>();\n q.add(i);\n while (!q.isEmpty()) {\n int x = q.peek();\n q.remove();\n for (int j = 0; j < li[x].size(); j++) {\n if (col[li[x].get(j)] == -1) {\n col[li[x].get(j)] = 1 - col[x];\n q.add(li[x].get(j));\n } else if (col[li[x].get(j)] == col[x]) {\n f = 0;\n break;\n }\n\n }\n\n }\n if (f == 0) {\n fl = 0;\n break;\n }\n\n\n }\n\n }\n /*if(fl==0)\n // System.out.println(-1);\n //else\n {*/\n\n long l1 = 0;\n long l2 = 0;\n for (int j = 1; j <= n; j++) {\n if (col[j] == 1) {\n l1++;\n //sb.append(j+\" \");\n } else {\n l2++;\n //sb1.append(j+\" \");\n }\n }\n long ans=(l1*l2)-(n-1);\n System.out.println(ans);\n //}\n\n }\n\n\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n int n=sc.nextInt();\n String ac=\"AC\";\n long a=0;\n String tle=\"TLE\";\n long t=0;\n String wa=\"WA\";\n long w=0;\n String re=\"RE\";\n long r=0;\n for(int j=0;j<n;j++)\n {\n String s=sc.nextLine();\n if(s.compareTo(ac)==0)\n a++;\n else if(s.compareTo(tle)==0)\n t++;\n else if(s.compareTo(wa)==0)\n w++;\n else\n r++;\n }\n System.out.println(ac+ \" \"+\"x\"+\" \"+a);\n System.out.println(wa+ \" \"+\"x\"+\" \"+w);\n System.out.println(tle+ \" \"+\"x\"+\" \"+t);\n System.out.println(re+ \" \"+\"x\"+\" \"+r);\n\n\n\n }\n}",
"Main"
]
|
import java.io.*;
import java.lang.annotation.Native;
import java.math.BigInteger;
import java.util.*;
import java.util.ArrayList;
import java.util.Scanner;
public class Main {
static class FastReader {
BufferedReader br;
StringTokenizer st;
public FastReader() {
br = new BufferedReader(new
InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
static final int mod = 1000000007;
static final int mod1 = 1073741824;
public static int gcd(int a, int b) {
if (a == 0)
return b;
return gcd(b % a, a);
}
static boolean prime[] = new boolean[1000001];
public static void merge(long arr[][], int l, int m, int r)
{
// Find sizes of two subarrays to be merged
int n1 = m - l + 1;
int n2 = r - m;
/* Create temp arrays */
long L[][] = new long[n1][2];
long R[][] = new long[n2][2];
/*Copy data to temp arrays*/
for (int i = 0; i < n1; ++i)
{
L[i][0] = arr[l + i][0];
L[i][1] = arr[l + i][1];
}
for (int j = 0; j < n2; ++j) {
R[j][0] = arr[m + 1 + j][0];
R[j][1] = arr[m + 1 + j][1];
}
/* Merge the temp arrays */
// Initial indexes of first and second subarrays
int i = 0, j = 0;
// Initial index of merged subarry array
int k = l;
while (i < n1 && j < n2) {
if (L[i][0] <= R[j][0]) {
arr[k][0] = L[i][0];
arr[k][1] = L[i][1];
i++;
}
else {
arr[k][0] = R[j][0];
arr[k][1] = R[j][1];
j++;
}
k++;
}
/* Copy remaining elements of L[] if any */
while (i < n1) {
arr[k][0] = L[i][0];
arr[k][1] = L[i][1];
i++;
k++;
}
/* Copy remaining elements of R[] if any */
while (j < n2) {
arr[k][0] = R[j][0];
arr[k][1] = R[j][1];
j++;
k++;
}
}
public static long[][] sort2elementarray(long arr[][], int l, int r)
{
if (l < r) {
// Find the middle point
int m = (l + r) / 2;
// Sort first and second halves
sort2elementarray(arr, l, m);
sort2elementarray(arr, m + 1, r);
// Merge the sorted halves
merge(arr, l, m, r);
}
return arr;
}
static int f=1;
static int vertices=0;
static int edges=0;
public static void dfs(ArrayList<Integer>[]li,int v,HashMap<Integer,Integer>hm)
{
hm.put(v,1);
//System.out.print(v+" ");
//System.out.println(a[v]+" "+cost);
vertices++;
edges+=li[v].size();
for (int j = 0; j < li[v].size(); j++)
{
if (hm.get(li[v].get(j)) == null)
{
dfs(li, li[v].get(j), hm);
}
}
}
public static void dfsutil(ArrayList<Integer>[]li,int n,int v)
{
HashMap<Integer,Integer>hm=new HashMap<>();
int c=0;
for(int j=1;j<=n;j++)
{
if(hm.get(j)==null)
{
vertices=0;
edges=0;
dfs(li,j,hm);
if(edges!=vertices*(vertices-1)) {
System.out.println("NO");
System.exit(0);
}
}
}
System.out.println("YES");
}
public static void bipartite(ArrayList<Integer>[]li,int n) {
int f = 1;
int col[] = new int[n + 1];
int fl = 1;
Arrays.fill(col, -1);
for (int i = 1; i <= n; i++) {
if (col[i] == -1) {
col[i] = 1;
Queue<Integer> q = new LinkedList<>();
q.add(i);
while (!q.isEmpty()) {
int x = q.peek();
q.remove();
for (int j = 0; j < li[x].size(); j++) {
if (col[li[x].get(j)] == -1) {
col[li[x].get(j)] = 1 - col[x];
q.add(li[x].get(j));
} else if (col[li[x].get(j)] == col[x]) {
f = 0;
break;
}
}
}
if (f == 0) {
fl = 0;
break;
}
}
}
/*if(fl==0)
// System.out.println(-1);
//else
{*/
long l1 = 0;
long l2 = 0;
for (int j = 1; j <= n; j++) {
if (col[j] == 1) {
l1++;
//sb.append(j+" ");
} else {
l2++;
//sb1.append(j+" ");
}
}
long ans=(l1*l2)-(n-1);
System.out.println(ans);
//}
}
public static void main(String[] args) {
FastReader sc = new FastReader();
int n=sc.nextInt();
String ac="AC";
long a=0;
String tle="TLE";
long t=0;
String wa="WA";
long w=0;
String re="RE";
long r=0;
for(int j=0;j<n;j++)
{
String s=sc.nextLine();
if(s.compareTo(ac)==0)
a++;
else if(s.compareTo(tle)==0)
t++;
else if(s.compareTo(wa)==0)
w++;
else
r++;
}
System.out.println(ac+ " "+"x"+" "+a);
System.out.println(wa+ " "+"x"+" "+w);
System.out.println(tle+ " "+"x"+" "+t);
System.out.println(re+ " "+"x"+" "+r);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
4,
18,
18,
13,
13,
2,
2,
17,
17,
13,
4,
18,
18,
13,
13,
2,
2,
17,
17,
13,
4,
18,
18,
13,
13,
2,
2,
17,
17,
13,
4,
18,
18,
13,
13,
2,
2,
17,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
120,
5
],
[
120,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
49,
54
],
[
54,
55
],
[
49,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
56,
61
],
[
61,
62
],
[
56,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
63,
68
],
[
68,
69
],
[
63,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
70,
75
],
[
75,
76
],
[
8,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
83,
83
],
[
83,
84
],
[
83,
85
],
[
83,
86
],
[
8,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
93,
93
],
[
93,
94
],
[
93,
95
],
[
93,
96
],
[
8,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
103,
103
],
[
103,
104
],
[
103,
105
],
[
103,
106
],
[
8,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
113,
113
],
[
113,
114
],
[
113,
115
],
[
113,
116
],
[
6,
117
],
[
117,
118
],
[
0,
119
],
[
119,
120
],
[
119,
121
]
]
| [
"import java.util.Scanner;\npublic class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int n = input.nextInt();\n int c0 = 0 , c1 =0,c2=0,c3 = 0;\n String s;\n for(int i = 0; i < n; i++){\n s = input.next();\n if(s.equals(\"AC\"))\n c0++;\n else if(s.equals(\"WA\"))\n c1++;\n else if(s.equals(\"TLE\"))\n c2++;\n else if(s.equals(\"RE\"))\n c3++;\n }\n System.out.println(\"AC\" + \" x \" + c0);\n System.out.println(\"WA\" + \" x \" + c1);\n System.out.println(\"TLE\" + \" x \" + c2);\n System.out.println(\"RE\" + \" x \" + c3);\n\n }\n\n }",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int n = input.nextInt();\n int c0 = 0 , c1 =0,c2=0,c3 = 0;\n String s;\n for(int i = 0; i < n; i++){\n s = input.next();\n if(s.equals(\"AC\"))\n c0++;\n else if(s.equals(\"WA\"))\n c1++;\n else if(s.equals(\"TLE\"))\n c2++;\n else if(s.equals(\"RE\"))\n c3++;\n }\n System.out.println(\"AC\" + \" x \" + c0);\n System.out.println(\"WA\" + \" x \" + c1);\n System.out.println(\"TLE\" + \" x \" + c2);\n System.out.println(\"RE\" + \" x \" + c3);\n\n }\n\n }",
"Main",
"public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int n = input.nextInt();\n int c0 = 0 , c1 =0,c2=0,c3 = 0;\n String s;\n for(int i = 0; i < n; i++){\n s = input.next();\n if(s.equals(\"AC\"))\n c0++;\n else if(s.equals(\"WA\"))\n c1++;\n else if(s.equals(\"TLE\"))\n c2++;\n else if(s.equals(\"RE\"))\n c3++;\n }\n System.out.println(\"AC\" + \" x \" + c0);\n System.out.println(\"WA\" + \" x \" + c1);\n System.out.println(\"TLE\" + \" x \" + c2);\n System.out.println(\"RE\" + \" x \" + c3);\n\n }",
"main",
"{\n Scanner input = new Scanner(System.in);\n int n = input.nextInt();\n int c0 = 0 , c1 =0,c2=0,c3 = 0;\n String s;\n for(int i = 0; i < n; i++){\n s = input.next();\n if(s.equals(\"AC\"))\n c0++;\n else if(s.equals(\"WA\"))\n c1++;\n else if(s.equals(\"TLE\"))\n c2++;\n else if(s.equals(\"RE\"))\n c3++;\n }\n System.out.println(\"AC\" + \" x \" + c0);\n System.out.println(\"WA\" + \" x \" + c1);\n System.out.println(\"TLE\" + \" x \" + c2);\n System.out.println(\"RE\" + \" x \" + c3);\n\n }",
"Scanner input = new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"int n = input.nextInt();",
"n",
"input.nextInt()",
"input.nextInt",
"input",
"int c0 = 0",
"c0",
"0",
"c1 =0",
"c1",
"0",
"c2=0",
"c2",
"0",
"c3 = 0;",
"c3",
"0",
"String s;",
"s",
"for(int i = 0; i < n; i++){\n s = input.next();\n if(s.equals(\"AC\"))\n c0++;\n else if(s.equals(\"WA\"))\n c1++;\n else if(s.equals(\"TLE\"))\n c2++;\n else if(s.equals(\"RE\"))\n c3++;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n s = input.next();\n if(s.equals(\"AC\"))\n c0++;\n else if(s.equals(\"WA\"))\n c1++;\n else if(s.equals(\"TLE\"))\n c2++;\n else if(s.equals(\"RE\"))\n c3++;\n }",
"{\n s = input.next();\n if(s.equals(\"AC\"))\n c0++;\n else if(s.equals(\"WA\"))\n c1++;\n else if(s.equals(\"TLE\"))\n c2++;\n else if(s.equals(\"RE\"))\n c3++;\n }",
"s = input.next()",
"s",
"input.next()",
"input.next",
"input",
"if(s.equals(\"AC\"))\n c0++;\n else if(s.equals(\"WA\"))\n c1++;\n else if(s.equals(\"TLE\"))\n c2++;\n else if(s.equals(\"RE\"))\n c3++;",
"s.equals(\"AC\")",
"s.equals",
"s",
"\"AC\"",
"c0++",
"c0",
"if(s.equals(\"WA\"))\n c1++;\n else if(s.equals(\"TLE\"))\n c2++;\n else if(s.equals(\"RE\"))\n c3++;",
"s.equals(\"WA\")",
"s.equals",
"s",
"\"WA\"",
"c1++",
"c1",
"if(s.equals(\"TLE\"))\n c2++;\n else if(s.equals(\"RE\"))\n c3++;",
"s.equals(\"TLE\")",
"s.equals",
"s",
"\"TLE\"",
"c2++",
"c2",
"if(s.equals(\"RE\"))\n c3++;",
"s.equals(\"RE\")",
"s.equals",
"s",
"\"RE\"",
"c3++",
"c3",
"System.out.println(\"AC\" + \" x \" + c0)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC\" + \" x \" + c0",
"\"AC\" + \" x \" + c0",
"\"AC\"",
"\" x \"",
"c0",
"System.out.println(\"WA\" + \" x \" + c1)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA\" + \" x \" + c1",
"\"WA\" + \" x \" + c1",
"\"WA\"",
"\" x \"",
"c1",
"System.out.println(\"TLE\" + \" x \" + c2)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE\" + \" x \" + c2",
"\"TLE\" + \" x \" + c2",
"\"TLE\"",
"\" x \"",
"c2",
"System.out.println(\"RE\" + \" x \" + c3)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE\" + \" x \" + c3",
"\"RE\" + \" x \" + c3",
"\"RE\"",
"\" x \"",
"c3",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int n = input.nextInt();\n int c0 = 0 , c1 =0,c2=0,c3 = 0;\n String s;\n for(int i = 0; i < n; i++){\n s = input.next();\n if(s.equals(\"AC\"))\n c0++;\n else if(s.equals(\"WA\"))\n c1++;\n else if(s.equals(\"TLE\"))\n c2++;\n else if(s.equals(\"RE\"))\n c3++;\n }\n System.out.println(\"AC\" + \" x \" + c0);\n System.out.println(\"WA\" + \" x \" + c1);\n System.out.println(\"TLE\" + \" x \" + c2);\n System.out.println(\"RE\" + \" x \" + c3);\n\n }\n\n }",
"public class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int n = input.nextInt();\n int c0 = 0 , c1 =0,c2=0,c3 = 0;\n String s;\n for(int i = 0; i < n; i++){\n s = input.next();\n if(s.equals(\"AC\"))\n c0++;\n else if(s.equals(\"WA\"))\n c1++;\n else if(s.equals(\"TLE\"))\n c2++;\n else if(s.equals(\"RE\"))\n c3++;\n }\n System.out.println(\"AC\" + \" x \" + c0);\n System.out.println(\"WA\" + \" x \" + c1);\n System.out.println(\"TLE\" + \" x \" + c2);\n System.out.println(\"RE\" + \" x \" + c3);\n\n }\n\n }",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int n = input.nextInt();
int c0 = 0 , c1 =0,c2=0,c3 = 0;
String s;
for(int i = 0; i < n; i++){
s = input.next();
if(s.equals("AC"))
c0++;
else if(s.equals("WA"))
c1++;
else if(s.equals("TLE"))
c2++;
else if(s.equals("RE"))
c3++;
}
System.out.println("AC" + " x " + c0);
System.out.println("WA" + " x " + c1);
System.out.println("TLE" + " x " + c2);
System.out.println("RE" + " x " + c3);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
0,
13,
17,
14,
4,
18,
13,
17,
30,
0,
13,
17,
14,
4,
18,
13,
17,
30,
0,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
17,
13,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
91,
5
],
[
91,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
47,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
56,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
56,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
65,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
65,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
8,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
78,
84
],
[
78,
85
],
[
78,
86
],
[
78,
87
],
[
6,
88
],
[
88,
89
],
[
0,
90
],
[
90,
91
],
[
90,
92
]
]
| [
"// 173 b\nimport java.util.*;\npublic class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n int n = input.nextInt();\n for (int i = 0; i < n; i++){\n String s = input.next();\n if(s.equals(\"AC\")){\n ac += 1;\n } else if (s.equals(\"WA\")){\n wa += 1;\n } else if (s.equals(\"TLE\")){\n tle += 1;\n } else {\n re += 1;\n }\n }\n System.out.printf(\"AC x %d\\nWA x %d\\nTLE x %d\\nRE x %d\\n\",ac,wa,tle,re);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n int n = input.nextInt();\n for (int i = 0; i < n; i++){\n String s = input.next();\n if(s.equals(\"AC\")){\n ac += 1;\n } else if (s.equals(\"WA\")){\n wa += 1;\n } else if (s.equals(\"TLE\")){\n tle += 1;\n } else {\n re += 1;\n }\n }\n System.out.printf(\"AC x %d\\nWA x %d\\nTLE x %d\\nRE x %d\\n\",ac,wa,tle,re);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n int n = input.nextInt();\n for (int i = 0; i < n; i++){\n String s = input.next();\n if(s.equals(\"AC\")){\n ac += 1;\n } else if (s.equals(\"WA\")){\n wa += 1;\n } else if (s.equals(\"TLE\")){\n tle += 1;\n } else {\n re += 1;\n }\n }\n System.out.printf(\"AC x %d\\nWA x %d\\nTLE x %d\\nRE x %d\\n\",ac,wa,tle,re);\n }",
"main",
"{\n Scanner input = new Scanner(System.in);\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n int n = input.nextInt();\n for (int i = 0; i < n; i++){\n String s = input.next();\n if(s.equals(\"AC\")){\n ac += 1;\n } else if (s.equals(\"WA\")){\n wa += 1;\n } else if (s.equals(\"TLE\")){\n tle += 1;\n } else {\n re += 1;\n }\n }\n System.out.printf(\"AC x %d\\nWA x %d\\nTLE x %d\\nRE x %d\\n\",ac,wa,tle,re);\n }",
"Scanner input = new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"int ac = 0;",
"ac",
"0",
"int wa = 0;",
"wa",
"0",
"int tle = 0;",
"tle",
"0",
"int re = 0;",
"re",
"0",
"int n = input.nextInt();",
"n",
"input.nextInt()",
"input.nextInt",
"input",
"for (int i = 0; i < n; i++){\n String s = input.next();\n if(s.equals(\"AC\")){\n ac += 1;\n } else if (s.equals(\"WA\")){\n wa += 1;\n } else if (s.equals(\"TLE\")){\n tle += 1;\n } else {\n re += 1;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String s = input.next();\n if(s.equals(\"AC\")){\n ac += 1;\n } else if (s.equals(\"WA\")){\n wa += 1;\n } else if (s.equals(\"TLE\")){\n tle += 1;\n } else {\n re += 1;\n }\n }",
"{\n String s = input.next();\n if(s.equals(\"AC\")){\n ac += 1;\n } else if (s.equals(\"WA\")){\n wa += 1;\n } else if (s.equals(\"TLE\")){\n tle += 1;\n } else {\n re += 1;\n }\n }",
"String s = input.next();",
"s",
"input.next()",
"input.next",
"input",
"if(s.equals(\"AC\")){\n ac += 1;\n } else if (s.equals(\"WA\")){\n wa += 1;\n } else if (s.equals(\"TLE\")){\n tle += 1;\n } else {\n re += 1;\n }",
"s.equals(\"AC\")",
"s.equals",
"s",
"\"AC\"",
"{\n ac += 1;\n }",
"ac += 1",
"ac",
"1",
"if (s.equals(\"WA\")){\n wa += 1;\n } else if (s.equals(\"TLE\")){\n tle += 1;\n } else {\n re += 1;\n }",
"s.equals(\"WA\")",
"s.equals",
"s",
"\"WA\"",
"{\n wa += 1;\n }",
"wa += 1",
"wa",
"1",
"if (s.equals(\"TLE\")){\n tle += 1;\n } else {\n re += 1;\n }",
"s.equals(\"TLE\")",
"s.equals",
"s",
"\"TLE\"",
"{\n tle += 1;\n }",
"tle += 1",
"tle",
"1",
"{\n re += 1;\n }",
"re += 1",
"re",
"1",
"System.out.printf(\"AC x %d\\nWA x %d\\nTLE x %d\\nRE x %d\\n\",ac,wa,tle,re)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"AC x %d\\nWA x %d\\nTLE x %d\\nRE x %d\\n\"",
"ac",
"wa",
"tle",
"re",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n int n = input.nextInt();\n for (int i = 0; i < n; i++){\n String s = input.next();\n if(s.equals(\"AC\")){\n ac += 1;\n } else if (s.equals(\"WA\")){\n wa += 1;\n } else if (s.equals(\"TLE\")){\n tle += 1;\n } else {\n re += 1;\n }\n }\n System.out.printf(\"AC x %d\\nWA x %d\\nTLE x %d\\nRE x %d\\n\",ac,wa,tle,re);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n int n = input.nextInt();\n for (int i = 0; i < n; i++){\n String s = input.next();\n if(s.equals(\"AC\")){\n ac += 1;\n } else if (s.equals(\"WA\")){\n wa += 1;\n } else if (s.equals(\"TLE\")){\n tle += 1;\n } else {\n re += 1;\n }\n }\n System.out.printf(\"AC x %d\\nWA x %d\\nTLE x %d\\nRE x %d\\n\",ac,wa,tle,re);\n }\n}",
"Main"
]
| // 173 b
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
int n = input.nextInt();
for (int i = 0; i < n; i++){
String s = input.next();
if(s.equals("AC")){
ac += 1;
} else if (s.equals("WA")){
wa += 1;
} else if (s.equals("TLE")){
tle += 1;
} else {
re += 1;
}
}
System.out.printf("AC x %d\nWA x %d\nTLE x %d\nRE x %d\n",ac,wa,tle,re);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
18,
13,
13,
17,
30,
40,
13,
14,
4,
18,
18,
13,
13,
17,
30,
40,
13,
14,
4,
18,
18,
13,
13,
17,
30,
40,
13,
14,
4,
18,
18,
13,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
17,
13,
4,
18,
18,
13,
13,
17,
13,
4,
18,
18,
13,
13,
17,
13,
4,
18,
18,
13,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
137,
5
],
[
137,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
26,
27
],
[
26,
28
],
[
21,
29
],
[
29,
30
],
[
30,
31
],
[
21,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
47,
49
],
[
8,
50
],
[
50,
51
],
[
50,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
53,
64
],
[
65,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
66,
73
],
[
73,
74
],
[
74,
75
],
[
66,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
76,
83
],
[
83,
84
],
[
84,
85
],
[
76,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
86,
93
],
[
93,
94
],
[
94,
95
],
[
86,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
96,
103
],
[
103,
104
],
[
104,
105
],
[
8,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
106,
112
],
[
8,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
113,
119
],
[
8,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
120,
125
],
[
120,
126
],
[
8,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
127,
133
],
[
6,
134
],
[
134,
135
],
[
0,
136
],
[
136,
137
],
[
136,
138
]
]
| [
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n String[] str = new String[n];\n for(int i = 0; i<n; i++){\n str[i] = sc.next();\n }\n\n int acCount = 0;\n int waCount = 0;\n int tleCount = 0;\n int reCount = 0;\n\n for(int j = 0; j<n; j++){\n if(str[j].equals(\"AC\")){\n acCount++;\n }\n else if(str[j].equals(\"WA\")){\n waCount++;\n }\n else if(str[j].equals(\"TLE\")){\n tleCount++;\n }\n else if(str[j].equals(\"RE\")){\n reCount++;\n }\n }\n System.out.printf(\"AC x %d\\n\", acCount);\n System.out.printf(\"WA x %d\\n\", waCount);\n System.out.printf(\"TLE x %d\\n\", tleCount);\n System.out.printf(\"RE x %d\\n\", reCount);\n\n\n\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n String[] str = new String[n];\n for(int i = 0; i<n; i++){\n str[i] = sc.next();\n }\n\n int acCount = 0;\n int waCount = 0;\n int tleCount = 0;\n int reCount = 0;\n\n for(int j = 0; j<n; j++){\n if(str[j].equals(\"AC\")){\n acCount++;\n }\n else if(str[j].equals(\"WA\")){\n waCount++;\n }\n else if(str[j].equals(\"TLE\")){\n tleCount++;\n }\n else if(str[j].equals(\"RE\")){\n reCount++;\n }\n }\n System.out.printf(\"AC x %d\\n\", acCount);\n System.out.printf(\"WA x %d\\n\", waCount);\n System.out.printf(\"TLE x %d\\n\", tleCount);\n System.out.printf(\"RE x %d\\n\", reCount);\n\n\n\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n String[] str = new String[n];\n for(int i = 0; i<n; i++){\n str[i] = sc.next();\n }\n\n int acCount = 0;\n int waCount = 0;\n int tleCount = 0;\n int reCount = 0;\n\n for(int j = 0; j<n; j++){\n if(str[j].equals(\"AC\")){\n acCount++;\n }\n else if(str[j].equals(\"WA\")){\n waCount++;\n }\n else if(str[j].equals(\"TLE\")){\n tleCount++;\n }\n else if(str[j].equals(\"RE\")){\n reCount++;\n }\n }\n System.out.printf(\"AC x %d\\n\", acCount);\n System.out.printf(\"WA x %d\\n\", waCount);\n System.out.printf(\"TLE x %d\\n\", tleCount);\n System.out.printf(\"RE x %d\\n\", reCount);\n\n\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n String[] str = new String[n];\n for(int i = 0; i<n; i++){\n str[i] = sc.next();\n }\n\n int acCount = 0;\n int waCount = 0;\n int tleCount = 0;\n int reCount = 0;\n\n for(int j = 0; j<n; j++){\n if(str[j].equals(\"AC\")){\n acCount++;\n }\n else if(str[j].equals(\"WA\")){\n waCount++;\n }\n else if(str[j].equals(\"TLE\")){\n tleCount++;\n }\n else if(str[j].equals(\"RE\")){\n reCount++;\n }\n }\n System.out.printf(\"AC x %d\\n\", acCount);\n System.out.printf(\"WA x %d\\n\", waCount);\n System.out.printf(\"TLE x %d\\n\", tleCount);\n System.out.printf(\"RE x %d\\n\", reCount);\n\n\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String[] str = new String[n];",
"str",
"new String[n]",
"n",
"for(int i = 0; i<n; i++){\n str[i] = sc.next();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n str[i] = sc.next();\n }",
"{\n str[i] = sc.next();\n }",
"str[i] = sc.next()",
"str[i]",
"str",
"i",
"sc.next()",
"sc.next",
"sc",
"int acCount = 0;",
"acCount",
"0",
"int waCount = 0;",
"waCount",
"0",
"int tleCount = 0;",
"tleCount",
"0",
"int reCount = 0;",
"reCount",
"0",
"for(int j = 0; j<n; j++){\n if(str[j].equals(\"AC\")){\n acCount++;\n }\n else if(str[j].equals(\"WA\")){\n waCount++;\n }\n else if(str[j].equals(\"TLE\")){\n tleCount++;\n }\n else if(str[j].equals(\"RE\")){\n reCount++;\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j<n",
"j",
"n",
"j++",
"j++",
"j",
"{\n if(str[j].equals(\"AC\")){\n acCount++;\n }\n else if(str[j].equals(\"WA\")){\n waCount++;\n }\n else if(str[j].equals(\"TLE\")){\n tleCount++;\n }\n else if(str[j].equals(\"RE\")){\n reCount++;\n }\n }",
"{\n if(str[j].equals(\"AC\")){\n acCount++;\n }\n else if(str[j].equals(\"WA\")){\n waCount++;\n }\n else if(str[j].equals(\"TLE\")){\n tleCount++;\n }\n else if(str[j].equals(\"RE\")){\n reCount++;\n }\n }",
"if(str[j].equals(\"AC\")){\n acCount++;\n }\n else if(str[j].equals(\"WA\")){\n waCount++;\n }\n else if(str[j].equals(\"TLE\")){\n tleCount++;\n }\n else if(str[j].equals(\"RE\")){\n reCount++;\n }",
"str[j].equals(\"AC\")",
"str[j].equals",
"str[j]",
"str",
"j",
"\"AC\"",
"{\n acCount++;\n }",
"acCount++",
"acCount",
"if(str[j].equals(\"WA\")){\n waCount++;\n }\n else if(str[j].equals(\"TLE\")){\n tleCount++;\n }\n else if(str[j].equals(\"RE\")){\n reCount++;\n }",
"str[j].equals(\"WA\")",
"str[j].equals",
"str[j]",
"str",
"j",
"\"WA\"",
"{\n waCount++;\n }",
"waCount++",
"waCount",
"if(str[j].equals(\"TLE\")){\n tleCount++;\n }\n else if(str[j].equals(\"RE\")){\n reCount++;\n }",
"str[j].equals(\"TLE\")",
"str[j].equals",
"str[j]",
"str",
"j",
"\"TLE\"",
"{\n tleCount++;\n }",
"tleCount++",
"tleCount",
"if(str[j].equals(\"RE\")){\n reCount++;\n }",
"str[j].equals(\"RE\")",
"str[j].equals",
"str[j]",
"str",
"j",
"\"RE\"",
"{\n reCount++;\n }",
"reCount++",
"reCount",
"System.out.printf(\"AC x %d\\n\", acCount)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"AC x %d\\n\"",
"acCount",
"System.out.printf(\"WA x %d\\n\", waCount)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"WA x %d\\n\"",
"waCount",
"System.out.printf(\"TLE x %d\\n\", tleCount)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"TLE x %d\\n\"",
"tleCount",
"System.out.printf(\"RE x %d\\n\", reCount)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"RE x %d\\n\"",
"reCount",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n String[] str = new String[n];\n for(int i = 0; i<n; i++){\n str[i] = sc.next();\n }\n\n int acCount = 0;\n int waCount = 0;\n int tleCount = 0;\n int reCount = 0;\n\n for(int j = 0; j<n; j++){\n if(str[j].equals(\"AC\")){\n acCount++;\n }\n else if(str[j].equals(\"WA\")){\n waCount++;\n }\n else if(str[j].equals(\"TLE\")){\n tleCount++;\n }\n else if(str[j].equals(\"RE\")){\n reCount++;\n }\n }\n System.out.printf(\"AC x %d\\n\", acCount);\n System.out.printf(\"WA x %d\\n\", waCount);\n System.out.printf(\"TLE x %d\\n\", tleCount);\n System.out.printf(\"RE x %d\\n\", reCount);\n\n\n\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n String[] str = new String[n];\n for(int i = 0; i<n; i++){\n str[i] = sc.next();\n }\n\n int acCount = 0;\n int waCount = 0;\n int tleCount = 0;\n int reCount = 0;\n\n for(int j = 0; j<n; j++){\n if(str[j].equals(\"AC\")){\n acCount++;\n }\n else if(str[j].equals(\"WA\")){\n waCount++;\n }\n else if(str[j].equals(\"TLE\")){\n tleCount++;\n }\n else if(str[j].equals(\"RE\")){\n reCount++;\n }\n }\n System.out.printf(\"AC x %d\\n\", acCount);\n System.out.printf(\"WA x %d\\n\", waCount);\n System.out.printf(\"TLE x %d\\n\", tleCount);\n System.out.printf(\"RE x %d\\n\", reCount);\n\n\n\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
String[] str = new String[n];
for(int i = 0; i<n; i++){
str[i] = sc.next();
}
int acCount = 0;
int waCount = 0;
int tleCount = 0;
int reCount = 0;
for(int j = 0; j<n; j++){
if(str[j].equals("AC")){
acCount++;
}
else if(str[j].equals("WA")){
waCount++;
}
else if(str[j].equals("TLE")){
tleCount++;
}
else if(str[j].equals("RE")){
reCount++;
}
}
System.out.printf("AC x %d\n", acCount);
System.out.printf("WA x %d\n", waCount);
System.out.printf("TLE x %d\n", tleCount);
System.out.printf("RE x %d\n", reCount);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
2,
4,
18,
13,
13,
17,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
111,
8
],
[
111,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
23,
27
],
[
11,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
28,
32
],
[
11,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
33,
37
],
[
11,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
38,
42
],
[
11,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
43,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
48,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
58,
63
],
[
11,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
11,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
11,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
11,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
9,
108
],
[
108,
109
],
[
0,
110
],
[
110,
111
],
[
110,
112
]
]
| [
"import java.util.*;\nimport java.io.*;\n\npublic class Main {\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n HashMap<String, Integer> map = new HashMap<>();\n map.put(\"AC\", 0);\n map.put(\"WA\", 0);\n map.put(\"TLE\", 0);\n map.put(\"RE\", 0);\n while (N-- > 0) {\n String s = sc.next();\n map.put(s, map.get(s) + 1);\n }\n\n System.out.println(\"AC x \" + map.get(\"AC\"));\n System.out.println(\"WA x \" + map.get(\"WA\"));\n System.out.println(\"TLE x \" + map.get(\"TLE\"));\n System.out.println(\"RE x \" + map.get(\"RE\"));\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n HashMap<String, Integer> map = new HashMap<>();\n map.put(\"AC\", 0);\n map.put(\"WA\", 0);\n map.put(\"TLE\", 0);\n map.put(\"RE\", 0);\n while (N-- > 0) {\n String s = sc.next();\n map.put(s, map.get(s) + 1);\n }\n\n System.out.println(\"AC x \" + map.get(\"AC\"));\n System.out.println(\"WA x \" + map.get(\"WA\"));\n System.out.println(\"TLE x \" + map.get(\"TLE\"));\n System.out.println(\"RE x \" + map.get(\"RE\"));\n }\n}",
"Main",
"public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n HashMap<String, Integer> map = new HashMap<>();\n map.put(\"AC\", 0);\n map.put(\"WA\", 0);\n map.put(\"TLE\", 0);\n map.put(\"RE\", 0);\n while (N-- > 0) {\n String s = sc.next();\n map.put(s, map.get(s) + 1);\n }\n\n System.out.println(\"AC x \" + map.get(\"AC\"));\n System.out.println(\"WA x \" + map.get(\"WA\"));\n System.out.println(\"TLE x \" + map.get(\"TLE\"));\n System.out.println(\"RE x \" + map.get(\"RE\"));\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n HashMap<String, Integer> map = new HashMap<>();\n map.put(\"AC\", 0);\n map.put(\"WA\", 0);\n map.put(\"TLE\", 0);\n map.put(\"RE\", 0);\n while (N-- > 0) {\n String s = sc.next();\n map.put(s, map.get(s) + 1);\n }\n\n System.out.println(\"AC x \" + map.get(\"AC\"));\n System.out.println(\"WA x \" + map.get(\"WA\"));\n System.out.println(\"TLE x \" + map.get(\"TLE\"));\n System.out.println(\"RE x \" + map.get(\"RE\"));\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"HashMap<String, Integer> map = new HashMap<>();",
"map",
"new HashMap<>()",
"map.put(\"AC\", 0)",
"map.put",
"map",
"\"AC\"",
"0",
"map.put(\"WA\", 0)",
"map.put",
"map",
"\"WA\"",
"0",
"map.put(\"TLE\", 0)",
"map.put",
"map",
"\"TLE\"",
"0",
"map.put(\"RE\", 0)",
"map.put",
"map",
"\"RE\"",
"0",
"while (N-- > 0) {\n String s = sc.next();\n map.put(s, map.get(s) + 1);\n }",
"N-- > 0",
"N--",
"N",
"0",
"{\n String s = sc.next();\n map.put(s, map.get(s) + 1);\n }",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"map.put(s, map.get(s) + 1)",
"map.put",
"map",
"s",
"map.get(s) + 1",
"map.get(s)",
"map.get",
"map",
"s",
"1",
"System.out.println(\"AC x \" + map.get(\"AC\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + map.get(\"AC\")",
"\"AC x \"",
"map.get(\"AC\")",
"map.get",
"map",
"\"AC\"",
"System.out.println(\"WA x \" + map.get(\"WA\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + map.get(\"WA\")",
"\"WA x \"",
"map.get(\"WA\")",
"map.get",
"map",
"\"WA\"",
"System.out.println(\"TLE x \" + map.get(\"TLE\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + map.get(\"TLE\")",
"\"TLE x \"",
"map.get(\"TLE\")",
"map.get",
"map",
"\"TLE\"",
"System.out.println(\"RE x \" + map.get(\"RE\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + map.get(\"RE\")",
"\"RE x \"",
"map.get(\"RE\")",
"map.get",
"map",
"\"RE\"",
"String args[]",
"args",
"public class Main {\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n HashMap<String, Integer> map = new HashMap<>();\n map.put(\"AC\", 0);\n map.put(\"WA\", 0);\n map.put(\"TLE\", 0);\n map.put(\"RE\", 0);\n while (N-- > 0) {\n String s = sc.next();\n map.put(s, map.get(s) + 1);\n }\n\n System.out.println(\"AC x \" + map.get(\"AC\"));\n System.out.println(\"WA x \" + map.get(\"WA\"));\n System.out.println(\"TLE x \" + map.get(\"TLE\"));\n System.out.println(\"RE x \" + map.get(\"RE\"));\n }\n}",
"public class Main {\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n HashMap<String, Integer> map = new HashMap<>();\n map.put(\"AC\", 0);\n map.put(\"WA\", 0);\n map.put(\"TLE\", 0);\n map.put(\"RE\", 0);\n while (N-- > 0) {\n String s = sc.next();\n map.put(s, map.get(s) + 1);\n }\n\n System.out.println(\"AC x \" + map.get(\"AC\"));\n System.out.println(\"WA x \" + map.get(\"WA\"));\n System.out.println(\"TLE x \" + map.get(\"TLE\"));\n System.out.println(\"RE x \" + map.get(\"RE\"));\n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
HashMap<String, Integer> map = new HashMap<>();
map.put("AC", 0);
map.put("WA", 0);
map.put("TLE", 0);
map.put("RE", 0);
while (N-- > 0) {
String s = sc.next();
map.put(s, map.get(s) + 1);
}
System.out.println("AC x " + map.get("AC"));
System.out.println("WA x " + map.get("WA"));
System.out.println("TLE x " + map.get("TLE"));
System.out.println("RE x " + map.get("RE"));
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
40,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
108,
8
],
[
108,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
11,
29
],
[
29,
30
],
[
29,
31
],
[
11,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
44,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
50,
55
],
[
55,
56
],
[
50,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
57,
62
],
[
62,
63
],
[
57,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
64,
69
],
[
69,
70
],
[
64,
71
],
[
71,
72
],
[
11,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
11,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
86,
87
],
[
86,
88
],
[
11,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
11,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
9,
105
],
[
105,
106
],
[
0,
107
],
[
107,
108
],
[
107,
109
]
]
| [
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws IOException\n {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n\n int AC = 0;\n int WA = 0;\n int TLE = 0;\n int RE = 0;\n\n for(int i=0;i<N;i++)\n {\n String result = sc.next();\n if(result.equals(\"AC\"))\n AC++;\n else if(result.equals(\"WA\"))\n WA++;\n else if(result.equals(\"TLE\"))\n TLE++;\n else\n RE++;\n }\n\n System.out.println(\"AC x \" + AC);\n System.out.println(\"WA x \" + WA);\n System.out.println(\"TLE x \" + TLE);\n System.out.println(\"RE x \" + RE);\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws IOException\n {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n\n int AC = 0;\n int WA = 0;\n int TLE = 0;\n int RE = 0;\n\n for(int i=0;i<N;i++)\n {\n String result = sc.next();\n if(result.equals(\"AC\"))\n AC++;\n else if(result.equals(\"WA\"))\n WA++;\n else if(result.equals(\"TLE\"))\n TLE++;\n else\n RE++;\n }\n\n System.out.println(\"AC x \" + AC);\n System.out.println(\"WA x \" + WA);\n System.out.println(\"TLE x \" + TLE);\n System.out.println(\"RE x \" + RE);\n }\n}",
"Main",
"public static void main(String[] args) throws IOException\n {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n\n int AC = 0;\n int WA = 0;\n int TLE = 0;\n int RE = 0;\n\n for(int i=0;i<N;i++)\n {\n String result = sc.next();\n if(result.equals(\"AC\"))\n AC++;\n else if(result.equals(\"WA\"))\n WA++;\n else if(result.equals(\"TLE\"))\n TLE++;\n else\n RE++;\n }\n\n System.out.println(\"AC x \" + AC);\n System.out.println(\"WA x \" + WA);\n System.out.println(\"TLE x \" + TLE);\n System.out.println(\"RE x \" + RE);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n\n int AC = 0;\n int WA = 0;\n int TLE = 0;\n int RE = 0;\n\n for(int i=0;i<N;i++)\n {\n String result = sc.next();\n if(result.equals(\"AC\"))\n AC++;\n else if(result.equals(\"WA\"))\n WA++;\n else if(result.equals(\"TLE\"))\n TLE++;\n else\n RE++;\n }\n\n System.out.println(\"AC x \" + AC);\n System.out.println(\"WA x \" + WA);\n System.out.println(\"TLE x \" + TLE);\n System.out.println(\"RE x \" + RE);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int AC = 0;",
"AC",
"0",
"int WA = 0;",
"WA",
"0",
"int TLE = 0;",
"TLE",
"0",
"int RE = 0;",
"RE",
"0",
"for(int i=0;i<N;i++)\n {\n String result = sc.next();\n if(result.equals(\"AC\"))\n AC++;\n else if(result.equals(\"WA\"))\n WA++;\n else if(result.equals(\"TLE\"))\n TLE++;\n else\n RE++;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n String result = sc.next();\n if(result.equals(\"AC\"))\n AC++;\n else if(result.equals(\"WA\"))\n WA++;\n else if(result.equals(\"TLE\"))\n TLE++;\n else\n RE++;\n }",
"{\n String result = sc.next();\n if(result.equals(\"AC\"))\n AC++;\n else if(result.equals(\"WA\"))\n WA++;\n else if(result.equals(\"TLE\"))\n TLE++;\n else\n RE++;\n }",
"String result = sc.next();",
"result",
"sc.next()",
"sc.next",
"sc",
"if(result.equals(\"AC\"))\n AC++;\n else if(result.equals(\"WA\"))\n WA++;\n else if(result.equals(\"TLE\"))\n TLE++;\n else\n RE++;",
"result.equals(\"AC\")",
"result.equals",
"result",
"\"AC\"",
"AC++",
"AC",
"if(result.equals(\"WA\"))\n WA++;\n else if(result.equals(\"TLE\"))\n TLE++;\n else\n RE++;",
"result.equals(\"WA\")",
"result.equals",
"result",
"\"WA\"",
"WA++",
"WA",
"if(result.equals(\"TLE\"))\n TLE++;\n else\n RE++;",
"result.equals(\"TLE\")",
"result.equals",
"result",
"\"TLE\"",
"TLE++",
"TLE",
"RE++",
"RE",
"System.out.println(\"AC x \" + AC)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + AC",
"\"AC x \"",
"AC",
"System.out.println(\"WA x \" + WA)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + WA",
"\"WA x \"",
"WA",
"System.out.println(\"TLE x \" + TLE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + TLE",
"\"TLE x \"",
"TLE",
"System.out.println(\"RE x \" + RE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + RE",
"\"RE x \"",
"RE",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws IOException\n {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n\n int AC = 0;\n int WA = 0;\n int TLE = 0;\n int RE = 0;\n\n for(int i=0;i<N;i++)\n {\n String result = sc.next();\n if(result.equals(\"AC\"))\n AC++;\n else if(result.equals(\"WA\"))\n WA++;\n else if(result.equals(\"TLE\"))\n TLE++;\n else\n RE++;\n }\n\n System.out.println(\"AC x \" + AC);\n System.out.println(\"WA x \" + WA);\n System.out.println(\"TLE x \" + TLE);\n System.out.println(\"RE x \" + RE);\n }\n}",
"public class Main {\n public static void main(String[] args) throws IOException\n {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n\n int AC = 0;\n int WA = 0;\n int TLE = 0;\n int RE = 0;\n\n for(int i=0;i<N;i++)\n {\n String result = sc.next();\n if(result.equals(\"AC\"))\n AC++;\n else if(result.equals(\"WA\"))\n WA++;\n else if(result.equals(\"TLE\"))\n TLE++;\n else\n RE++;\n }\n\n System.out.println(\"AC x \" + AC);\n System.out.println(\"WA x \" + WA);\n System.out.println(\"TLE x \" + TLE);\n System.out.println(\"RE x \" + RE);\n }\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException
{
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int AC = 0;
int WA = 0;
int TLE = 0;
int RE = 0;
for(int i=0;i<N;i++)
{
String result = sc.next();
if(result.equals("AC"))
AC++;
else if(result.equals("WA"))
WA++;
else if(result.equals("TLE"))
TLE++;
else
RE++;
}
System.out.println("AC x " + AC);
System.out.println("WA x " + WA);
System.out.println("TLE x " + TLE);
System.out.println("RE x " + RE);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
4,
18,
17,
18,
13,
13,
30,
40,
13,
14,
4,
18,
17,
18,
13,
13,
30,
40,
13,
14,
4,
18,
17,
18,
13,
13,
30,
40,
13,
14,
4,
18,
17,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
128,
5
],
[
128,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
51,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
57,
59
],
[
53,
60
],
[
60,
61
],
[
61,
62
],
[
45,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
67,
68
],
[
67,
69
],
[
63,
70
],
[
70,
71
],
[
71,
72
],
[
45,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
77,
79
],
[
73,
80
],
[
80,
81
],
[
81,
82
],
[
45,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
87,
88
],
[
87,
89
],
[
83,
90
],
[
90,
91
],
[
91,
92
],
[
8,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
98,
99
],
[
98,
100
],
[
8,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
106,
107
],
[
106,
108
],
[
8,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
114,
115
],
[
114,
116
],
[
8,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
122,
123
],
[
122,
124
],
[
6,
125
],
[
125,
126
],
[
0,
127
],
[
127,
128
],
[
127,
129
]
]
| [
"\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner ob = new Scanner(System.in);\n String a[] = new String[1000000];\n int n = ob.nextInt();\n // a[0]=\"AC\";\n // if(a[0]==\"AC\"){System.out.println(\"i\");}\n int c1=0,c2=0,c3=0,c4=0;\n for (int i = 0; i < n; i++) {\n a[i] = ob.next();\n if(\"AC\".equals(a[i])){c1++;}\n if(\"WA\".equals(a[i])){c2++;}\n if(\"TLE\".equals(a[i])){c3++;}\n if(\"RE\".equals(a[i])){c4++;}\n }\n //for(int i=0;i<n;i++){System.out.println(a[i]);}\n \n System.out.println(\"AC x \"+c1);\n System.out.println(\"WA x \"+c2);\n System.out.println(\"TLE x \"+c3);\n System.out.println(\"RE x \"+c4);\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner ob = new Scanner(System.in);\n String a[] = new String[1000000];\n int n = ob.nextInt();\n // a[0]=\"AC\";\n // if(a[0]==\"AC\"){System.out.println(\"i\");}\n int c1=0,c2=0,c3=0,c4=0;\n for (int i = 0; i < n; i++) {\n a[i] = ob.next();\n if(\"AC\".equals(a[i])){c1++;}\n if(\"WA\".equals(a[i])){c2++;}\n if(\"TLE\".equals(a[i])){c3++;}\n if(\"RE\".equals(a[i])){c4++;}\n }\n //for(int i=0;i<n;i++){System.out.println(a[i]);}\n \n System.out.println(\"AC x \"+c1);\n System.out.println(\"WA x \"+c2);\n System.out.println(\"TLE x \"+c3);\n System.out.println(\"RE x \"+c4);\n }\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner ob = new Scanner(System.in);\n String a[] = new String[1000000];\n int n = ob.nextInt();\n // a[0]=\"AC\";\n // if(a[0]==\"AC\"){System.out.println(\"i\");}\n int c1=0,c2=0,c3=0,c4=0;\n for (int i = 0; i < n; i++) {\n a[i] = ob.next();\n if(\"AC\".equals(a[i])){c1++;}\n if(\"WA\".equals(a[i])){c2++;}\n if(\"TLE\".equals(a[i])){c3++;}\n if(\"RE\".equals(a[i])){c4++;}\n }\n //for(int i=0;i<n;i++){System.out.println(a[i]);}\n \n System.out.println(\"AC x \"+c1);\n System.out.println(\"WA x \"+c2);\n System.out.println(\"TLE x \"+c3);\n System.out.println(\"RE x \"+c4);\n }",
"main",
"{\n Scanner ob = new Scanner(System.in);\n String a[] = new String[1000000];\n int n = ob.nextInt();\n // a[0]=\"AC\";\n // if(a[0]==\"AC\"){System.out.println(\"i\");}\n int c1=0,c2=0,c3=0,c4=0;\n for (int i = 0; i < n; i++) {\n a[i] = ob.next();\n if(\"AC\".equals(a[i])){c1++;}\n if(\"WA\".equals(a[i])){c2++;}\n if(\"TLE\".equals(a[i])){c3++;}\n if(\"RE\".equals(a[i])){c4++;}\n }\n //for(int i=0;i<n;i++){System.out.println(a[i]);}\n \n System.out.println(\"AC x \"+c1);\n System.out.println(\"WA x \"+c2);\n System.out.println(\"TLE x \"+c3);\n System.out.println(\"RE x \"+c4);\n }",
"Scanner ob = new Scanner(System.in);",
"ob",
"new Scanner(System.in)",
"String a[] = new String[1000000];",
"a",
"new String[1000000]",
"1000000",
"int n = ob.nextInt();",
"n",
"ob.nextInt()",
"ob.nextInt",
"ob",
"int c1=0",
"c1",
"0",
"c2=0",
"c2",
"0",
"c3=0",
"c3",
"0",
"c4=0;",
"c4",
"0",
"for (int i = 0; i < n; i++) {\n a[i] = ob.next();\n if(\"AC\".equals(a[i])){c1++;}\n if(\"WA\".equals(a[i])){c2++;}\n if(\"TLE\".equals(a[i])){c3++;}\n if(\"RE\".equals(a[i])){c4++;}\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n a[i] = ob.next();\n if(\"AC\".equals(a[i])){c1++;}\n if(\"WA\".equals(a[i])){c2++;}\n if(\"TLE\".equals(a[i])){c3++;}\n if(\"RE\".equals(a[i])){c4++;}\n }",
"{\n a[i] = ob.next();\n if(\"AC\".equals(a[i])){c1++;}\n if(\"WA\".equals(a[i])){c2++;}\n if(\"TLE\".equals(a[i])){c3++;}\n if(\"RE\".equals(a[i])){c4++;}\n }",
"a[i] = ob.next()",
"a[i]",
"a",
"i",
"ob.next()",
"ob.next",
"ob",
"if(\"AC\".equals(a[i])){c1++;}",
"\"AC\".equals(a[i])",
"\"AC\".equals",
"\"AC\"",
"a[i]",
"a",
"i",
"{c1++;}",
"c1++",
"c1",
"if(\"WA\".equals(a[i])){c2++;}",
"\"WA\".equals(a[i])",
"\"WA\".equals",
"\"WA\"",
"a[i]",
"a",
"i",
"{c2++;}",
"c2++",
"c2",
"if(\"TLE\".equals(a[i])){c3++;}",
"\"TLE\".equals(a[i])",
"\"TLE\".equals",
"\"TLE\"",
"a[i]",
"a",
"i",
"{c3++;}",
"c3++",
"c3",
"if(\"RE\".equals(a[i])){c4++;}",
"\"RE\".equals(a[i])",
"\"RE\".equals",
"\"RE\"",
"a[i]",
"a",
"i",
"{c4++;}",
"c4++",
"c4",
"System.out.println(\"AC x \"+c1)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \"+c1",
"\"AC x \"",
"c1",
"System.out.println(\"WA x \"+c2)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \"+c2",
"\"WA x \"",
"c2",
"System.out.println(\"TLE x \"+c3)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \"+c3",
"\"TLE x \"",
"c3",
"System.out.println(\"RE x \"+c4)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \"+c4",
"\"RE x \"",
"c4",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner ob = new Scanner(System.in);\n String a[] = new String[1000000];\n int n = ob.nextInt();\n // a[0]=\"AC\";\n // if(a[0]==\"AC\"){System.out.println(\"i\");}\n int c1=0,c2=0,c3=0,c4=0;\n for (int i = 0; i < n; i++) {\n a[i] = ob.next();\n if(\"AC\".equals(a[i])){c1++;}\n if(\"WA\".equals(a[i])){c2++;}\n if(\"TLE\".equals(a[i])){c3++;}\n if(\"RE\".equals(a[i])){c4++;}\n }\n //for(int i=0;i<n;i++){System.out.println(a[i]);}\n \n System.out.println(\"AC x \"+c1);\n System.out.println(\"WA x \"+c2);\n System.out.println(\"TLE x \"+c3);\n System.out.println(\"RE x \"+c4);\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner ob = new Scanner(System.in);\n String a[] = new String[1000000];\n int n = ob.nextInt();\n // a[0]=\"AC\";\n // if(a[0]==\"AC\"){System.out.println(\"i\");}\n int c1=0,c2=0,c3=0,c4=0;\n for (int i = 0; i < n; i++) {\n a[i] = ob.next();\n if(\"AC\".equals(a[i])){c1++;}\n if(\"WA\".equals(a[i])){c2++;}\n if(\"TLE\".equals(a[i])){c3++;}\n if(\"RE\".equals(a[i])){c4++;}\n }\n //for(int i=0;i<n;i++){System.out.println(a[i]);}\n \n System.out.println(\"AC x \"+c1);\n System.out.println(\"WA x \"+c2);\n System.out.println(\"TLE x \"+c3);\n System.out.println(\"RE x \"+c4);\n }\n\n}",
"Main"
]
|
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner ob = new Scanner(System.in);
String a[] = new String[1000000];
int n = ob.nextInt();
// a[0]="AC";
// if(a[0]=="AC"){System.out.println("i");}
int c1=0,c2=0,c3=0,c4=0;
for (int i = 0; i < n; i++) {
a[i] = ob.next();
if("AC".equals(a[i])){c1++;}
if("WA".equals(a[i])){c2++;}
if("TLE".equals(a[i])){c3++;}
if("RE".equals(a[i])){c4++;}
}
//for(int i=0;i<n;i++){System.out.println(a[i]);}
System.out.println("AC x "+c1);
System.out.println("WA x "+c2);
System.out.println("TLE x "+c3);
System.out.println("RE x "+c4);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
42,
2,
40,
13,
17,
30,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
4,
18,
13,
13,
2,
13,
17,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
114,
5
],
[
114,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
23,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
28,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
33,
37
],
[
8,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
38,
42
],
[
8,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
43,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
48,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
48,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
60,
64
],
[
64,
65
],
[
64,
66
],
[
8,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
8,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
8,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
8,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
6,
111
],
[
111,
112
],
[
0,
113
],
[
113,
114
],
[
113,
115
]
]
| [
"import java.util.*;\npublic class Main{\n\tpublic static void main(String args[]){\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n\t\tint te=sc.nextInt();\n\t\tMap <String,Integer> mp=new HashMap<>();\n\t\tString s=new String();\n\t\tmp.put(\"AC\",0);\n\t\tmp.put(\"WA\",0);\n\t\tmp.put(\"TLE\",0);\n\t\tmp.put(\"RE\",0);\n\t\twhile(te-->0){\n\t\t\ts=sc.next();\n\t\t\tInteger val=mp.get(s);\n\t\t\tmp.put(s,val+1);\n\t\t}\n\t\tSystem.out.println(\"AC x \"+mp.get(\"AC\"));\n\t\tSystem.out.println(\"WA x \"+mp.get(\"WA\"));\n\t\tSystem.out.println(\"TLE x \"+mp.get(\"TLE\"));\n\t\tSystem.out.println(\"RE x \"+mp.get(\"RE\"));\n\t}\n};",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main(String args[]){\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n\t\tint te=sc.nextInt();\n\t\tMap <String,Integer> mp=new HashMap<>();\n\t\tString s=new String();\n\t\tmp.put(\"AC\",0);\n\t\tmp.put(\"WA\",0);\n\t\tmp.put(\"TLE\",0);\n\t\tmp.put(\"RE\",0);\n\t\twhile(te-->0){\n\t\t\ts=sc.next();\n\t\t\tInteger val=mp.get(s);\n\t\t\tmp.put(s,val+1);\n\t\t}\n\t\tSystem.out.println(\"AC x \"+mp.get(\"AC\"));\n\t\tSystem.out.println(\"WA x \"+mp.get(\"WA\"));\n\t\tSystem.out.println(\"TLE x \"+mp.get(\"TLE\"));\n\t\tSystem.out.println(\"RE x \"+mp.get(\"RE\"));\n\t}\n}",
"Main",
"public static void main(String args[]){\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n\t\tint te=sc.nextInt();\n\t\tMap <String,Integer> mp=new HashMap<>();\n\t\tString s=new String();\n\t\tmp.put(\"AC\",0);\n\t\tmp.put(\"WA\",0);\n\t\tmp.put(\"TLE\",0);\n\t\tmp.put(\"RE\",0);\n\t\twhile(te-->0){\n\t\t\ts=sc.next();\n\t\t\tInteger val=mp.get(s);\n\t\t\tmp.put(s,val+1);\n\t\t}\n\t\tSystem.out.println(\"AC x \"+mp.get(\"AC\"));\n\t\tSystem.out.println(\"WA x \"+mp.get(\"WA\"));\n\t\tSystem.out.println(\"TLE x \"+mp.get(\"TLE\"));\n\t\tSystem.out.println(\"RE x \"+mp.get(\"RE\"));\n\t}",
"main",
"{\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n\t\tint te=sc.nextInt();\n\t\tMap <String,Integer> mp=new HashMap<>();\n\t\tString s=new String();\n\t\tmp.put(\"AC\",0);\n\t\tmp.put(\"WA\",0);\n\t\tmp.put(\"TLE\",0);\n\t\tmp.put(\"RE\",0);\n\t\twhile(te-->0){\n\t\t\ts=sc.next();\n\t\t\tInteger val=mp.get(s);\n\t\t\tmp.put(s,val+1);\n\t\t}\n\t\tSystem.out.println(\"AC x \"+mp.get(\"AC\"));\n\t\tSystem.out.println(\"WA x \"+mp.get(\"WA\"));\n\t\tSystem.out.println(\"TLE x \"+mp.get(\"TLE\"));\n\t\tSystem.out.println(\"RE x \"+mp.get(\"RE\"));\n\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int te=sc.nextInt();",
"te",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Map <String,Integer> mp=new HashMap<>();",
"mp",
"new HashMap<>()",
"String s=new String();",
"s",
"new String()",
"mp.put(\"AC\",0)",
"mp.put",
"mp",
"\"AC\"",
"0",
"mp.put(\"WA\",0)",
"mp.put",
"mp",
"\"WA\"",
"0",
"mp.put(\"TLE\",0)",
"mp.put",
"mp",
"\"TLE\"",
"0",
"mp.put(\"RE\",0)",
"mp.put",
"mp",
"\"RE\"",
"0",
"while(te-->0){\n\t\t\ts=sc.next();\n\t\t\tInteger val=mp.get(s);\n\t\t\tmp.put(s,val+1);\n\t\t}",
"te-->0",
"te--",
"te",
"0",
"{\n\t\t\ts=sc.next();\n\t\t\tInteger val=mp.get(s);\n\t\t\tmp.put(s,val+1);\n\t\t}",
"s=sc.next()",
"s",
"sc.next()",
"sc.next",
"sc",
"Integer val=mp.get(s);",
"val",
"mp.get(s)",
"mp.get",
"mp",
"s",
"mp.put(s,val+1)",
"mp.put",
"mp",
"s",
"val+1",
"val",
"1",
"System.out.println(\"AC x \"+mp.get(\"AC\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \"+mp.get(\"AC\")",
"\"AC x \"",
"mp.get(\"AC\")",
"mp.get",
"mp",
"\"AC\"",
"System.out.println(\"WA x \"+mp.get(\"WA\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \"+mp.get(\"WA\")",
"\"WA x \"",
"mp.get(\"WA\")",
"mp.get",
"mp",
"\"WA\"",
"System.out.println(\"TLE x \"+mp.get(\"TLE\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \"+mp.get(\"TLE\")",
"\"TLE x \"",
"mp.get(\"TLE\")",
"mp.get",
"mp",
"\"TLE\"",
"System.out.println(\"RE x \"+mp.get(\"RE\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \"+mp.get(\"RE\")",
"\"RE x \"",
"mp.get(\"RE\")",
"mp.get",
"mp",
"\"RE\"",
"String args[]",
"args",
"public class Main{\n\tpublic static void main(String args[]){\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n\t\tint te=sc.nextInt();\n\t\tMap <String,Integer> mp=new HashMap<>();\n\t\tString s=new String();\n\t\tmp.put(\"AC\",0);\n\t\tmp.put(\"WA\",0);\n\t\tmp.put(\"TLE\",0);\n\t\tmp.put(\"RE\",0);\n\t\twhile(te-->0){\n\t\t\ts=sc.next();\n\t\t\tInteger val=mp.get(s);\n\t\t\tmp.put(s,val+1);\n\t\t}\n\t\tSystem.out.println(\"AC x \"+mp.get(\"AC\"));\n\t\tSystem.out.println(\"WA x \"+mp.get(\"WA\"));\n\t\tSystem.out.println(\"TLE x \"+mp.get(\"TLE\"));\n\t\tSystem.out.println(\"RE x \"+mp.get(\"RE\"));\n\t}\n}",
"public class Main{\n\tpublic static void main(String args[]){\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n\t\tint te=sc.nextInt();\n\t\tMap <String,Integer> mp=new HashMap<>();\n\t\tString s=new String();\n\t\tmp.put(\"AC\",0);\n\t\tmp.put(\"WA\",0);\n\t\tmp.put(\"TLE\",0);\n\t\tmp.put(\"RE\",0);\n\t\twhile(te-->0){\n\t\t\ts=sc.next();\n\t\t\tInteger val=mp.get(s);\n\t\t\tmp.put(s,val+1);\n\t\t}\n\t\tSystem.out.println(\"AC x \"+mp.get(\"AC\"));\n\t\tSystem.out.println(\"WA x \"+mp.get(\"WA\"));\n\t\tSystem.out.println(\"TLE x \"+mp.get(\"TLE\"));\n\t\tSystem.out.println(\"RE x \"+mp.get(\"RE\"));\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String args[]){
Scanner sc=new Scanner(System.in);
int te=sc.nextInt();
Map <String,Integer> mp=new HashMap<>();
String s=new String();
mp.put("AC",0);
mp.put("WA",0);
mp.put("TLE",0);
mp.put("RE",0);
while(te-->0){
s=sc.next();
Integer val=mp.get(s);
mp.put(s,val+1);
}
System.out.println("AC x "+mp.get("AC"));
System.out.println("WA x "+mp.get("WA"));
System.out.println("TLE x "+mp.get("TLE"));
System.out.println("RE x "+mp.get("RE"));
}
}; |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
109,
11
],
[
109,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
14,
32
],
[
32,
33
],
[
32,
34
],
[
14,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
35,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
40,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
46,
51
],
[
51,
52
],
[
46,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
53,
58
],
[
58,
59
],
[
53,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
60,
65
],
[
65,
66
],
[
60,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
67,
72
],
[
72,
73
],
[
14,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
79,
80
],
[
79,
81
],
[
14,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
87,
88
],
[
87,
89
],
[
14,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
14,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
103,
104
],
[
103,
105
],
[
12,
106
],
[
106,
107
],
[
0,
108
],
[
108,
109
],
[
108,
110
]
]
| [
"import java.util.*;\nimport java.io.*;\nimport java.lang.*;\n\npublic class Main {\n\tpublic static void main (String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint AC = 0; int WA = 0; int TLE = 0; int RE = 0;\n\t\twhile (n-- > 0) {\n\t\t\tString s = sc.next();\n\t\t\tif (s.equals(\"AC\")) \n\t\t\t\tAC++;\n\t\t\telse if (s.equals(\"WA\"))\n\t\t\t\tWA++;\n\t\t\telse if (s.equals(\"TLE\"))\n\t\t\t\tTLE++;\n\t\t\telse if (s.equals(\"RE\"))\n\t\t\t\tRE++;\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + AC);\n\t\tSystem.out.println(\"WA x \" + WA);\n\t\tSystem.out.println(\"TLE x \" + TLE);\n\t\tSystem.out.println(\"RE x \" + RE);\n\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"public class Main {\n\tpublic static void main (String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint AC = 0; int WA = 0; int TLE = 0; int RE = 0;\n\t\twhile (n-- > 0) {\n\t\t\tString s = sc.next();\n\t\t\tif (s.equals(\"AC\")) \n\t\t\t\tAC++;\n\t\t\telse if (s.equals(\"WA\"))\n\t\t\t\tWA++;\n\t\t\telse if (s.equals(\"TLE\"))\n\t\t\t\tTLE++;\n\t\t\telse if (s.equals(\"RE\"))\n\t\t\t\tRE++;\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + AC);\n\t\tSystem.out.println(\"WA x \" + WA);\n\t\tSystem.out.println(\"TLE x \" + TLE);\n\t\tSystem.out.println(\"RE x \" + RE);\n\n\t}\n}",
"Main",
"public static void main (String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint AC = 0; int WA = 0; int TLE = 0; int RE = 0;\n\t\twhile (n-- > 0) {\n\t\t\tString s = sc.next();\n\t\t\tif (s.equals(\"AC\")) \n\t\t\t\tAC++;\n\t\t\telse if (s.equals(\"WA\"))\n\t\t\t\tWA++;\n\t\t\telse if (s.equals(\"TLE\"))\n\t\t\t\tTLE++;\n\t\t\telse if (s.equals(\"RE\"))\n\t\t\t\tRE++;\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + AC);\n\t\tSystem.out.println(\"WA x \" + WA);\n\t\tSystem.out.println(\"TLE x \" + TLE);\n\t\tSystem.out.println(\"RE x \" + RE);\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint AC = 0; int WA = 0; int TLE = 0; int RE = 0;\n\t\twhile (n-- > 0) {\n\t\t\tString s = sc.next();\n\t\t\tif (s.equals(\"AC\")) \n\t\t\t\tAC++;\n\t\t\telse if (s.equals(\"WA\"))\n\t\t\t\tWA++;\n\t\t\telse if (s.equals(\"TLE\"))\n\t\t\t\tTLE++;\n\t\t\telse if (s.equals(\"RE\"))\n\t\t\t\tRE++;\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + AC);\n\t\tSystem.out.println(\"WA x \" + WA);\n\t\tSystem.out.println(\"TLE x \" + TLE);\n\t\tSystem.out.println(\"RE x \" + RE);\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int AC = 0;",
"AC",
"0",
"int WA = 0;",
"WA",
"0",
"int TLE = 0;",
"TLE",
"0",
"int RE = 0;",
"RE",
"0",
"while (n-- > 0) {\n\t\t\tString s = sc.next();\n\t\t\tif (s.equals(\"AC\")) \n\t\t\t\tAC++;\n\t\t\telse if (s.equals(\"WA\"))\n\t\t\t\tWA++;\n\t\t\telse if (s.equals(\"TLE\"))\n\t\t\t\tTLE++;\n\t\t\telse if (s.equals(\"RE\"))\n\t\t\t\tRE++;\n\t\t}",
"n-- > 0",
"n--",
"n",
"0",
"{\n\t\t\tString s = sc.next();\n\t\t\tif (s.equals(\"AC\")) \n\t\t\t\tAC++;\n\t\t\telse if (s.equals(\"WA\"))\n\t\t\t\tWA++;\n\t\t\telse if (s.equals(\"TLE\"))\n\t\t\t\tTLE++;\n\t\t\telse if (s.equals(\"RE\"))\n\t\t\t\tRE++;\n\t\t}",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"if (s.equals(\"AC\")) \n\t\t\t\tAC++;\n\t\t\telse if (s.equals(\"WA\"))\n\t\t\t\tWA++;\n\t\t\telse if (s.equals(\"TLE\"))\n\t\t\t\tTLE++;\n\t\t\telse if (s.equals(\"RE\"))\n\t\t\t\tRE++;",
"s.equals(\"AC\")",
"s.equals",
"s",
"\"AC\"",
"AC++",
"AC",
"if (s.equals(\"WA\"))\n\t\t\t\tWA++;\n\t\t\telse if (s.equals(\"TLE\"))\n\t\t\t\tTLE++;\n\t\t\telse if (s.equals(\"RE\"))\n\t\t\t\tRE++;",
"s.equals(\"WA\")",
"s.equals",
"s",
"\"WA\"",
"WA++",
"WA",
"if (s.equals(\"TLE\"))\n\t\t\t\tTLE++;\n\t\t\telse if (s.equals(\"RE\"))\n\t\t\t\tRE++;",
"s.equals(\"TLE\")",
"s.equals",
"s",
"\"TLE\"",
"TLE++",
"TLE",
"if (s.equals(\"RE\"))\n\t\t\t\tRE++;",
"s.equals(\"RE\")",
"s.equals",
"s",
"\"RE\"",
"RE++",
"RE",
"System.out.println(\"AC x \" + AC)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + AC",
"\"AC x \"",
"AC",
"System.out.println(\"WA x \" + WA)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + WA",
"\"WA x \"",
"WA",
"System.out.println(\"TLE x \" + TLE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + TLE",
"\"TLE x \"",
"TLE",
"System.out.println(\"RE x \" + RE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + RE",
"\"RE x \"",
"RE",
"String[] args",
"args",
"public class Main {\n\tpublic static void main (String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint AC = 0; int WA = 0; int TLE = 0; int RE = 0;\n\t\twhile (n-- > 0) {\n\t\t\tString s = sc.next();\n\t\t\tif (s.equals(\"AC\")) \n\t\t\t\tAC++;\n\t\t\telse if (s.equals(\"WA\"))\n\t\t\t\tWA++;\n\t\t\telse if (s.equals(\"TLE\"))\n\t\t\t\tTLE++;\n\t\t\telse if (s.equals(\"RE\"))\n\t\t\t\tRE++;\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + AC);\n\t\tSystem.out.println(\"WA x \" + WA);\n\t\tSystem.out.println(\"TLE x \" + TLE);\n\t\tSystem.out.println(\"RE x \" + RE);\n\n\t}\n}",
"public class Main {\n\tpublic static void main (String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint AC = 0; int WA = 0; int TLE = 0; int RE = 0;\n\t\twhile (n-- > 0) {\n\t\t\tString s = sc.next();\n\t\t\tif (s.equals(\"AC\")) \n\t\t\t\tAC++;\n\t\t\telse if (s.equals(\"WA\"))\n\t\t\t\tWA++;\n\t\t\telse if (s.equals(\"TLE\"))\n\t\t\t\tTLE++;\n\t\t\telse if (s.equals(\"RE\"))\n\t\t\t\tRE++;\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + AC);\n\t\tSystem.out.println(\"WA x \" + WA);\n\t\tSystem.out.println(\"TLE x \" + TLE);\n\t\tSystem.out.println(\"RE x \" + RE);\n\n\t}\n}",
"Main"
]
| import java.util.*;
import java.io.*;
import java.lang.*;
public class Main {
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int AC = 0; int WA = 0; int TLE = 0; int RE = 0;
while (n-- > 0) {
String s = sc.next();
if (s.equals("AC"))
AC++;
else if (s.equals("WA"))
WA++;
else if (s.equals("TLE"))
TLE++;
else if (s.equals("RE"))
RE++;
}
System.out.println("AC x " + AC);
System.out.println("WA x " + WA);
System.out.println("TLE x " + TLE);
System.out.println("RE x " + RE);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
35,
18,
13,
13,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
4,
18,
13,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
26,
27
],
[
26,
28
],
[
21,
29
],
[
29,
30
],
[
30,
31
],
[
21,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
8,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
43,
51
],
[
51,
52
],
[
52,
53
],
[
43,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
63,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
63,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
63,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
8,
99
],
[
99,
100
],
[
100,
101
],
[
8,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
109,
111
],
[
8,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
119,
121
],
[
8,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
129,
131
],
[
8,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
139,
141
],
[
6,
142
],
[
142,
143
]
]
| [
"import java.util.*;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\tint n = sc.nextInt();\n int[] cnt = new int[4];\n for (int i=0; i<4; i++){\n cnt[i]=0;\n }\n String[] s = new String[n];\n for (int i=0; i<n; i++) {\n s[i] = sc.next();\n switch (s[i]) {\n case \"AC\":cnt[0]++;break;\n case \"WA\":cnt[1]++;break;\n case \"TLE\":cnt[2]++;break;\n case \"RE\":cnt[3]++;break;\n }\n }\n sc.close();\n System.out.println(\"AC x \" + cnt[0]);\n System.out.println(\"WA x \" + cnt[1]);\n System.out.println(\"TLE x \" + cnt[2]);\n System.out.println(\"RE x \" + cnt[3]);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\tint n = sc.nextInt();\n int[] cnt = new int[4];\n for (int i=0; i<4; i++){\n cnt[i]=0;\n }\n String[] s = new String[n];\n for (int i=0; i<n; i++) {\n s[i] = sc.next();\n switch (s[i]) {\n case \"AC\":cnt[0]++;break;\n case \"WA\":cnt[1]++;break;\n case \"TLE\":cnt[2]++;break;\n case \"RE\":cnt[3]++;break;\n }\n }\n sc.close();\n System.out.println(\"AC x \" + cnt[0]);\n System.out.println(\"WA x \" + cnt[1]);\n System.out.println(\"TLE x \" + cnt[2]);\n System.out.println(\"RE x \" + cnt[3]);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\tint n = sc.nextInt();\n int[] cnt = new int[4];\n for (int i=0; i<4; i++){\n cnt[i]=0;\n }\n String[] s = new String[n];\n for (int i=0; i<n; i++) {\n s[i] = sc.next();\n switch (s[i]) {\n case \"AC\":cnt[0]++;break;\n case \"WA\":cnt[1]++;break;\n case \"TLE\":cnt[2]++;break;\n case \"RE\":cnt[3]++;break;\n }\n }\n sc.close();\n System.out.println(\"AC x \" + cnt[0]);\n System.out.println(\"WA x \" + cnt[1]);\n System.out.println(\"TLE x \" + cnt[2]);\n System.out.println(\"RE x \" + cnt[3]);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\tint n = sc.nextInt();\n int[] cnt = new int[4];\n for (int i=0; i<4; i++){\n cnt[i]=0;\n }\n String[] s = new String[n];\n for (int i=0; i<n; i++) {\n s[i] = sc.next();\n switch (s[i]) {\n case \"AC\":cnt[0]++;break;\n case \"WA\":cnt[1]++;break;\n case \"TLE\":cnt[2]++;break;\n case \"RE\":cnt[3]++;break;\n }\n }\n sc.close();\n System.out.println(\"AC x \" + cnt[0]);\n System.out.println(\"WA x \" + cnt[1]);\n System.out.println(\"TLE x \" + cnt[2]);\n System.out.println(\"RE x \" + cnt[3]);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] cnt = new int[4];",
"cnt",
"new int[4]",
"4",
"for (int i=0; i<4; i++){\n cnt[i]=0;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n cnt[i]=0;\n }",
"{\n cnt[i]=0;\n }",
"cnt[i]=0",
"cnt[i]",
"cnt",
"i",
"0",
"String[] s = new String[n];",
"s",
"new String[n]",
"n",
"for (int i=0; i<n; i++) {\n s[i] = sc.next();\n switch (s[i]) {\n case \"AC\":cnt[0]++;break;\n case \"WA\":cnt[1]++;break;\n case \"TLE\":cnt[2]++;break;\n case \"RE\":cnt[3]++;break;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n s[i] = sc.next();\n switch (s[i]) {\n case \"AC\":cnt[0]++;break;\n case \"WA\":cnt[1]++;break;\n case \"TLE\":cnt[2]++;break;\n case \"RE\":cnt[3]++;break;\n }\n }",
"{\n s[i] = sc.next();\n switch (s[i]) {\n case \"AC\":cnt[0]++;break;\n case \"WA\":cnt[1]++;break;\n case \"TLE\":cnt[2]++;break;\n case \"RE\":cnt[3]++;break;\n }\n }",
"s[i] = sc.next()",
"s[i]",
"s",
"i",
"sc.next()",
"sc.next",
"sc",
"switch (s[i]) {\n case \"AC\":cnt[0]++;break;\n case \"WA\":cnt[1]++;break;\n case \"TLE\":cnt[2]++;break;\n case \"RE\":cnt[3]++;break;\n }",
"s[i]",
"s",
"i",
"case \"AC\":",
"\"AC\"",
"case \"AC\":",
"cnt[0]++",
"cnt[0]",
"cnt",
"0",
"break;",
"case \"WA\":",
"\"WA\"",
"case \"WA\":",
"cnt[1]++",
"cnt[1]",
"cnt",
"1",
"break;",
"case \"TLE\":",
"\"TLE\"",
"case \"TLE\":",
"cnt[2]++",
"cnt[2]",
"cnt",
"2",
"break;",
"case \"RE\":",
"\"RE\"",
"case \"RE\":",
"cnt[3]++",
"cnt[3]",
"cnt",
"3",
"break;",
"sc.close()",
"sc.close",
"sc",
"System.out.println(\"AC x \" + cnt[0])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + cnt[0]",
"\"AC x \"",
"cnt[0]",
"cnt",
"0",
"System.out.println(\"WA x \" + cnt[1])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + cnt[1]",
"\"WA x \"",
"cnt[1]",
"cnt",
"1",
"System.out.println(\"TLE x \" + cnt[2])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + cnt[2]",
"\"TLE x \"",
"cnt[2]",
"cnt",
"2",
"System.out.println(\"RE x \" + cnt[3])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + cnt[3]",
"\"RE x \"",
"cnt[3]",
"cnt",
"3",
"String[] args",
"args"
]
| import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int[] cnt = new int[4];
for (int i=0; i<4; i++){
cnt[i]=0;
}
String[] s = new String[n];
for (int i=0; i<n; i++) {
s[i] = sc.next();
switch (s[i]) {
case "AC":cnt[0]++;break;
case "WA":cnt[1]++;break;
case "TLE":cnt[2]++;break;
case "RE":cnt[3]++;break;
}
}
sc.close();
System.out.println("AC x " + cnt[0]);
System.out.println("WA x " + cnt[1]);
System.out.println("TLE x " + cnt[2]);
System.out.println("RE x " + cnt[3]);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
110,
5
],
[
110,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
52,
53
],
[
41,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
54,
59
],
[
59,
60
],
[
41,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
61,
66
],
[
66,
67
],
[
41,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
68,
73
],
[
73,
74
],
[
8,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
8,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
88,
89
],
[
88,
90
],
[
8,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
8,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
6,
107
],
[
107,
108
],
[
0,
109
],
[
109,
110
],
[
109,
111
]
]
| [
"import java.util.Scanner; \n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int a = 0, b = 0, c = 0, d = 0;\n\n for(int i = 0; i<N ;i++){\n String e = sc.next();\n if(e.equals(\"AC\")) a++;\n if(e.equals(\"WA\")) b++;\n if(e.equals(\"TLE\")) c++;\n if(e.equals(\"RE\")) d++;\n }\n\n System.out.println(\"AC x \"+a);\n System.out.println(\"WA x \"+b);\n System.out.println(\"TLE x \"+c);\n System.out.println(\"RE x \"+d); \n\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int a = 0, b = 0, c = 0, d = 0;\n\n for(int i = 0; i<N ;i++){\n String e = sc.next();\n if(e.equals(\"AC\")) a++;\n if(e.equals(\"WA\")) b++;\n if(e.equals(\"TLE\")) c++;\n if(e.equals(\"RE\")) d++;\n }\n\n System.out.println(\"AC x \"+a);\n System.out.println(\"WA x \"+b);\n System.out.println(\"TLE x \"+c);\n System.out.println(\"RE x \"+d); \n\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int a = 0, b = 0, c = 0, d = 0;\n\n for(int i = 0; i<N ;i++){\n String e = sc.next();\n if(e.equals(\"AC\")) a++;\n if(e.equals(\"WA\")) b++;\n if(e.equals(\"TLE\")) c++;\n if(e.equals(\"RE\")) d++;\n }\n\n System.out.println(\"AC x \"+a);\n System.out.println(\"WA x \"+b);\n System.out.println(\"TLE x \"+c);\n System.out.println(\"RE x \"+d); \n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int a = 0, b = 0, c = 0, d = 0;\n\n for(int i = 0; i<N ;i++){\n String e = sc.next();\n if(e.equals(\"AC\")) a++;\n if(e.equals(\"WA\")) b++;\n if(e.equals(\"TLE\")) c++;\n if(e.equals(\"RE\")) d++;\n }\n\n System.out.println(\"AC x \"+a);\n System.out.println(\"WA x \"+b);\n System.out.println(\"TLE x \"+c);\n System.out.println(\"RE x \"+d); \n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a = 0",
"a",
"0",
"b = 0",
"b",
"0",
"c = 0",
"c",
"0",
"d = 0;",
"d",
"0",
"for(int i = 0; i<N ;i++){\n String e = sc.next();\n if(e.equals(\"AC\")) a++;\n if(e.equals(\"WA\")) b++;\n if(e.equals(\"TLE\")) c++;\n if(e.equals(\"RE\")) d++;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n String e = sc.next();\n if(e.equals(\"AC\")) a++;\n if(e.equals(\"WA\")) b++;\n if(e.equals(\"TLE\")) c++;\n if(e.equals(\"RE\")) d++;\n }",
"{\n String e = sc.next();\n if(e.equals(\"AC\")) a++;\n if(e.equals(\"WA\")) b++;\n if(e.equals(\"TLE\")) c++;\n if(e.equals(\"RE\")) d++;\n }",
"String e = sc.next();",
"e",
"sc.next()",
"sc.next",
"sc",
"if(e.equals(\"AC\")) a++;",
"e.equals(\"AC\")",
"e.equals",
"e",
"\"AC\"",
"a++",
"a",
"if(e.equals(\"WA\")) b++;",
"e.equals(\"WA\")",
"e.equals",
"e",
"\"WA\"",
"b++",
"b",
"if(e.equals(\"TLE\")) c++;",
"e.equals(\"TLE\")",
"e.equals",
"e",
"\"TLE\"",
"c++",
"c",
"if(e.equals(\"RE\")) d++;",
"e.equals(\"RE\")",
"e.equals",
"e",
"\"RE\"",
"d++",
"d",
"System.out.println(\"AC x \"+a)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \"+a",
"\"AC x \"",
"a",
"System.out.println(\"WA x \"+b)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \"+b",
"\"WA x \"",
"b",
"System.out.println(\"TLE x \"+c)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \"+c",
"\"TLE x \"",
"c",
"System.out.println(\"RE x \"+d)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \"+d",
"\"RE x \"",
"d",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int a = 0, b = 0, c = 0, d = 0;\n\n for(int i = 0; i<N ;i++){\n String e = sc.next();\n if(e.equals(\"AC\")) a++;\n if(e.equals(\"WA\")) b++;\n if(e.equals(\"TLE\")) c++;\n if(e.equals(\"RE\")) d++;\n }\n\n System.out.println(\"AC x \"+a);\n System.out.println(\"WA x \"+b);\n System.out.println(\"TLE x \"+c);\n System.out.println(\"RE x \"+d); \n\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int a = 0, b = 0, c = 0, d = 0;\n\n for(int i = 0; i<N ;i++){\n String e = sc.next();\n if(e.equals(\"AC\")) a++;\n if(e.equals(\"WA\")) b++;\n if(e.equals(\"TLE\")) c++;\n if(e.equals(\"RE\")) d++;\n }\n\n System.out.println(\"AC x \"+a);\n System.out.println(\"WA x \"+b);\n System.out.println(\"TLE x \"+c);\n System.out.println(\"RE x \"+d); \n\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int a = 0, b = 0, c = 0, d = 0;
for(int i = 0; i<N ;i++){
String e = sc.next();
if(e.equals("AC")) a++;
if(e.equals("WA")) b++;
if(e.equals("TLE")) c++;
if(e.equals("RE")) d++;
}
System.out.println("AC x "+a);
System.out.println("WA x "+b);
System.out.println("TLE x "+c);
System.out.println("RE x "+d);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
39,
17,
17,
17,
17,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
13,
30,
4,
18,
13,
13,
2,
4,
18,
13,
13,
17,
30,
4,
18,
13,
13,
17,
28,
13,
13,
30,
30,
14,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
2,
2,
13,
17,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
2,
2,
13,
17,
17,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
17,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
218,
8
],
[
218,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
14,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
19,
21
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
11,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
31,
35
],
[
31,
36
],
[
11,
37
],
[
37,
38
],
[
38,
39
],
[
9,
40
],
[
40,
41
],
[
218,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
46,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
54,
57
],
[
54,
58
],
[
46,
59
],
[
59,
60
],
[
59,
61
],
[
46,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
67,
68
],
[
67,
69
],
[
62,
70
],
[
70,
71
],
[
71,
72
],
[
62,
73
],
[
74,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
74,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
80,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
86,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
90,
95
],
[
80,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
97,
101
],
[
46,
102
],
[
102,
103
],
[
102,
104
],
[
102,
105
],
[
106,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
107,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
119,
119
],
[
119,
120
],
[
119,
121
],
[
119,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
107,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
133,
133
],
[
133,
134
],
[
133,
135
],
[
133,
136
],
[
44,
137
],
[
137,
138
],
[
44,
139
],
[
139,
140
],
[
44,
141
],
[
141,
142
],
[
218,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
143,
147
],
[
147,
148
],
[
143,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
151,
155
],
[
155,
156
],
[
155,
157
],
[
149,
158
],
[
158,
159
],
[
143,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
163,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
173,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
162,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
143,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
191,
194
],
[
194,
195
],
[
143,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
198,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
202,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
212,
213
],
[
213,
214
],
[
198,
215
],
[
215,
216
],
[
0,
217
],
[
217,
218
],
[
217,
219
]
]
| [
"\nimport java.io.*;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Solution solver = new Solution();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class Solution {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n\n int total = in.nextInt();\n String[] keys = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n\n Map<String, Integer> hm = new HashMap<String, Integer>();\n for (int n = 0; n < total; n++) {\n String s = in.next();\n if (hm.containsKey(s)) {\n hm.put(s, hm.get(s) + 1) ;\n }\n else {\n hm.put(s, 1);\n }\n\n }\n for (String k : keys) {\n if (hm.containsKey(k)) {\n System.out.println(k + \" x \" + hm.get(k));\n }\n else {\n System.out.println(k + \" x \" + 0);\n }\n\n }\n\n }\n }\n\n static class InputReader {\n private BufferedReader reader;\n private StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream));\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public String nextLine() {\n String inputLine = \"\";\n try {\n inputLine = reader.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return inputLine;\n }\n }\n}\n\n\n",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Solution solver = new Solution();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class Solution {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n\n int total = in.nextInt();\n String[] keys = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n\n Map<String, Integer> hm = new HashMap<String, Integer>();\n for (int n = 0; n < total; n++) {\n String s = in.next();\n if (hm.containsKey(s)) {\n hm.put(s, hm.get(s) + 1) ;\n }\n else {\n hm.put(s, 1);\n }\n\n }\n for (String k : keys) {\n if (hm.containsKey(k)) {\n System.out.println(k + \" x \" + hm.get(k));\n }\n else {\n System.out.println(k + \" x \" + 0);\n }\n\n }\n\n }\n }\n\n static class InputReader {\n private BufferedReader reader;\n private StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream));\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public String nextLine() {\n String inputLine = \"\";\n try {\n inputLine = reader.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return inputLine;\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Solution solver = new Solution();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Solution solver = new Solution();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"InputReader in = new InputReader(inputStream);",
"in",
"new InputReader(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"Solution solver = new Solution();",
"solver",
"new Solution()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class Solution {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n\n int total = in.nextInt();\n String[] keys = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n\n Map<String, Integer> hm = new HashMap<String, Integer>();\n for (int n = 0; n < total; n++) {\n String s = in.next();\n if (hm.containsKey(s)) {\n hm.put(s, hm.get(s) + 1) ;\n }\n else {\n hm.put(s, 1);\n }\n\n }\n for (String k : keys) {\n if (hm.containsKey(k)) {\n System.out.println(k + \" x \" + hm.get(k));\n }\n else {\n System.out.println(k + \" x \" + 0);\n }\n\n }\n\n }\n }",
"Solution",
"public void solve(int testNumber, InputReader in, PrintWriter out) {\n\n int total = in.nextInt();\n String[] keys = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n\n Map<String, Integer> hm = new HashMap<String, Integer>();\n for (int n = 0; n < total; n++) {\n String s = in.next();\n if (hm.containsKey(s)) {\n hm.put(s, hm.get(s) + 1) ;\n }\n else {\n hm.put(s, 1);\n }\n\n }\n for (String k : keys) {\n if (hm.containsKey(k)) {\n System.out.println(k + \" x \" + hm.get(k));\n }\n else {\n System.out.println(k + \" x \" + 0);\n }\n\n }\n\n }",
"solve",
"{\n\n int total = in.nextInt();\n String[] keys = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n\n Map<String, Integer> hm = new HashMap<String, Integer>();\n for (int n = 0; n < total; n++) {\n String s = in.next();\n if (hm.containsKey(s)) {\n hm.put(s, hm.get(s) + 1) ;\n }\n else {\n hm.put(s, 1);\n }\n\n }\n for (String k : keys) {\n if (hm.containsKey(k)) {\n System.out.println(k + \" x \" + hm.get(k));\n }\n else {\n System.out.println(k + \" x \" + 0);\n }\n\n }\n\n }",
"int total = in.nextInt();",
"total",
"in.nextInt()",
"in.nextInt",
"in",
"String[] keys = {\"AC\", \"WA\", \"TLE\", \"RE\"};",
"keys",
"{\"AC\", \"WA\", \"TLE\", \"RE\"}",
"\"AC\"",
"\"WA\"",
"\"TLE\"",
"\"RE\"",
"Map<String, Integer> hm = new HashMap<String, Integer>();",
"hm",
"new HashMap<String, Integer>()",
"for (int n = 0; n < total; n++) {\n String s = in.next();\n if (hm.containsKey(s)) {\n hm.put(s, hm.get(s) + 1) ;\n }\n else {\n hm.put(s, 1);\n }\n\n }",
"int n = 0;",
"int n = 0;",
"n",
"0",
"n < total",
"n",
"total",
"n++",
"n++",
"n",
"{\n String s = in.next();\n if (hm.containsKey(s)) {\n hm.put(s, hm.get(s) + 1) ;\n }\n else {\n hm.put(s, 1);\n }\n\n }",
"{\n String s = in.next();\n if (hm.containsKey(s)) {\n hm.put(s, hm.get(s) + 1) ;\n }\n else {\n hm.put(s, 1);\n }\n\n }",
"String s = in.next();",
"s",
"in.next()",
"in.next",
"in",
"if (hm.containsKey(s)) {\n hm.put(s, hm.get(s) + 1) ;\n }\n else {\n hm.put(s, 1);\n }",
"hm.containsKey(s)",
"hm.containsKey",
"hm",
"s",
"{\n hm.put(s, hm.get(s) + 1) ;\n }",
"hm.put(s, hm.get(s) + 1)",
"hm.put",
"hm",
"s",
"hm.get(s) + 1",
"hm.get(s)",
"hm.get",
"hm",
"s",
"1",
"{\n hm.put(s, 1);\n }",
"hm.put(s, 1)",
"hm.put",
"hm",
"s",
"1",
"for (String k : keys) {\n if (hm.containsKey(k)) {\n System.out.println(k + \" x \" + hm.get(k));\n }\n else {\n System.out.println(k + \" x \" + 0);\n }\n\n }",
"String k",
"keys",
"{\n if (hm.containsKey(k)) {\n System.out.println(k + \" x \" + hm.get(k));\n }\n else {\n System.out.println(k + \" x \" + 0);\n }\n\n }",
"{\n if (hm.containsKey(k)) {\n System.out.println(k + \" x \" + hm.get(k));\n }\n else {\n System.out.println(k + \" x \" + 0);\n }\n\n }",
"if (hm.containsKey(k)) {\n System.out.println(k + \" x \" + hm.get(k));\n }\n else {\n System.out.println(k + \" x \" + 0);\n }",
"hm.containsKey(k)",
"hm.containsKey",
"hm",
"k",
"{\n System.out.println(k + \" x \" + hm.get(k));\n }",
"System.out.println(k + \" x \" + hm.get(k))",
"System.out.println",
"System.out",
"System",
"System.out",
"k + \" x \" + hm.get(k)",
"k + \" x \" + hm.get(k)",
"k",
"\" x \"",
"hm.get(k)",
"hm.get",
"hm",
"k",
"{\n System.out.println(k + \" x \" + 0);\n }",
"System.out.println(k + \" x \" + 0)",
"System.out.println",
"System.out",
"System",
"System.out",
"k + \" x \" + 0",
"k + \" x \" + 0",
"k",
"\" x \"",
"0",
"int testNumber",
"testNumber",
"InputReader in",
"in",
"PrintWriter out",
"out",
"static class InputReader {\n private BufferedReader reader;\n private StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream));\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public String nextLine() {\n String inputLine = \"\";\n try {\n inputLine = reader.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return inputLine;\n }\n }",
"InputReader",
"private BufferedReader reader;",
"reader",
"private StringTokenizer tokenizer;",
"tokenizer",
"public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream));\n tokenizer = null;\n }",
"InputReader",
"{\n reader = new BufferedReader(new InputStreamReader(stream));\n tokenizer = null;\n }",
"reader = new BufferedReader(new InputStreamReader(stream))",
"reader",
"new BufferedReader(new InputStreamReader(stream))",
"tokenizer = null",
"tokenizer",
"null",
"InputStream stream",
"stream",
"public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"next",
"{\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }",
"catch (IOException e) {\n throw new RuntimeException(e);\n }",
"IOException e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n tokenizer = new StringTokenizer(reader.readLine());\n }",
"tokenizer = new StringTokenizer(reader.readLine())",
"tokenizer",
"new StringTokenizer(reader.readLine())",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"public int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public String nextLine() {\n String inputLine = \"\";\n try {\n inputLine = reader.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return inputLine;\n }",
"nextLine",
"{\n String inputLine = \"\";\n try {\n inputLine = reader.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return inputLine;\n }",
"String inputLine = \"\";",
"inputLine",
"\"\"",
"try {\n inputLine = reader.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n inputLine = reader.readLine();\n }",
"inputLine = reader.readLine()",
"inputLine",
"reader.readLine()",
"reader.readLine",
"reader",
"return inputLine;",
"inputLine",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Solution solver = new Solution();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class Solution {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n\n int total = in.nextInt();\n String[] keys = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n\n Map<String, Integer> hm = new HashMap<String, Integer>();\n for (int n = 0; n < total; n++) {\n String s = in.next();\n if (hm.containsKey(s)) {\n hm.put(s, hm.get(s) + 1) ;\n }\n else {\n hm.put(s, 1);\n }\n\n }\n for (String k : keys) {\n if (hm.containsKey(k)) {\n System.out.println(k + \" x \" + hm.get(k));\n }\n else {\n System.out.println(k + \" x \" + 0);\n }\n\n }\n\n }\n }\n\n static class InputReader {\n private BufferedReader reader;\n private StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream));\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public String nextLine() {\n String inputLine = \"\";\n try {\n inputLine = reader.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return inputLine;\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Solution solver = new Solution();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class Solution {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n\n int total = in.nextInt();\n String[] keys = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n\n Map<String, Integer> hm = new HashMap<String, Integer>();\n for (int n = 0; n < total; n++) {\n String s = in.next();\n if (hm.containsKey(s)) {\n hm.put(s, hm.get(s) + 1) ;\n }\n else {\n hm.put(s, 1);\n }\n\n }\n for (String k : keys) {\n if (hm.containsKey(k)) {\n System.out.println(k + \" x \" + hm.get(k));\n }\n else {\n System.out.println(k + \" x \" + 0);\n }\n\n }\n\n }\n }\n\n static class InputReader {\n private BufferedReader reader;\n private StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream));\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public String nextLine() {\n String inputLine = \"\";\n try {\n inputLine = reader.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return inputLine;\n }\n }\n}",
"Main"
]
|
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
Solution solver = new Solution();
solver.solve(1, in, out);
out.close();
}
static class Solution {
public void solve(int testNumber, InputReader in, PrintWriter out) {
int total = in.nextInt();
String[] keys = {"AC", "WA", "TLE", "RE"};
Map<String, Integer> hm = new HashMap<String, Integer>();
for (int n = 0; n < total; n++) {
String s = in.next();
if (hm.containsKey(s)) {
hm.put(s, hm.get(s) + 1) ;
}
else {
hm.put(s, 1);
}
}
for (String k : keys) {
if (hm.containsKey(k)) {
System.out.println(k + " x " + hm.get(k));
}
else {
System.out.println(k + " x " + 0);
}
}
}
}
static class InputReader {
private BufferedReader reader;
private StringTokenizer tokenizer;
public InputReader(InputStream stream) {
reader = new BufferedReader(new InputStreamReader(stream));
tokenizer = null;
}
public String next() {
while (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(reader.readLine());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken();
}
public int nextInt() {
return Integer.parseInt(next());
}
public String nextLine() {
String inputLine = "";
try {
inputLine = reader.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return inputLine;
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
20,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
4,
18,
13,
17,
2,
4,
18,
13,
17,
17,
14,
4,
18,
13,
17,
4,
18,
13,
17,
2,
4,
18,
13,
17,
17,
14,
4,
18,
13,
17,
4,
18,
13,
17,
2,
4,
18,
13,
17,
17,
14,
4,
18,
13,
17,
4,
18,
13,
17,
2,
4,
18,
13,
17,
17,
4,
18,
13,
2,
2,
2,
2,
17,
17,
17,
17,
4,
18,
13,
17,
4,
18,
13,
2,
2,
2,
2,
17,
17,
17,
17,
4,
18,
13,
17,
4,
18,
13,
2,
2,
2,
2,
17,
17,
17,
17,
4,
18,
13,
17,
4,
18,
13,
2,
2,
2,
2,
17,
17,
17,
17,
4,
18,
13,
17,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
17,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
28,
29
],
[
28,
30
],
[
0,
31
],
[
297,
32
],
[
297,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
35,
46
],
[
46,
47
],
[
46,
48
],
[
35,
49
],
[
49,
50
],
[
49,
51
],
[
35,
52
],
[
52,
53
],
[
52,
54
],
[
35,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
55,
59
],
[
55,
60
],
[
35,
61
],
[
61,
62
],
[
62,
63
],
[
33,
64
],
[
64,
65
],
[
297,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
70,
76
],
[
76,
77
],
[
76,
78
],
[
70,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
79,
83
],
[
70,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
84,
88
],
[
70,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
89,
93
],
[
70,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
94,
98
],
[
70,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
99,
107
],
[
107,
108
],
[
108,
109
],
[
99,
110
],
[
111,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
111,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
117,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
122,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
127,
130
],
[
126,
131
],
[
111,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
133,
136
],
[
132,
137
],
[
137,
138
],
[
138,
139
],
[
137,
140
],
[
137,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
142,
145
],
[
141,
146
],
[
111,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
148,
151
],
[
147,
152
],
[
152,
153
],
[
153,
154
],
[
152,
155
],
[
152,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
157,
160
],
[
156,
161
],
[
111,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
163,
166
],
[
162,
167
],
[
167,
168
],
[
168,
169
],
[
167,
170
],
[
167,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
172,
175
],
[
171,
176
],
[
70,
177
],
[
177,
178
],
[
178,
179
],
[
177,
180
],
[
183,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
182,
186
],
[
181,
187
],
[
183,
188
],
[
188,
189
],
[
189,
190
],
[
188,
191
],
[
70,
192
],
[
192,
193
],
[
193,
194
],
[
192,
195
],
[
198,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
197,
201
],
[
196,
202
],
[
198,
203
],
[
203,
204
],
[
204,
205
],
[
203,
206
],
[
70,
207
],
[
207,
208
],
[
208,
209
],
[
207,
210
],
[
213,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
212,
216
],
[
211,
217
],
[
213,
218
],
[
218,
219
],
[
219,
220
],
[
218,
221
],
[
70,
222
],
[
222,
223
],
[
223,
224
],
[
222,
225
],
[
228,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
227,
231
],
[
226,
232
],
[
228,
233
],
[
233,
234
],
[
234,
235
],
[
233,
236
],
[
68,
237
],
[
237,
238
],
[
68,
239
],
[
239,
240
],
[
68,
241
],
[
241,
242
],
[
297,
243
],
[
243,
244
],
[
243,
245
],
[
245,
246
],
[
243,
247
],
[
247,
248
],
[
243,
249
],
[
249,
250
],
[
249,
251
],
[
251,
252
],
[
252,
253
],
[
252,
254
],
[
251,
255
],
[
255,
256
],
[
255,
257
],
[
249,
258
],
[
258,
259
],
[
243,
260
],
[
260,
261
],
[
260,
262
],
[
262,
263
],
[
263,
264
],
[
264,
265
],
[
265,
266
],
[
265,
267
],
[
264,
268
],
[
268,
269
],
[
269,
270
],
[
270,
271
],
[
263,
272
],
[
272,
273
],
[
273,
274
],
[
274,
275
],
[
274,
276
],
[
276,
277
],
[
277,
278
],
[
273,
279
],
[
279,
280
],
[
280,
281
],
[
280,
282
],
[
262,
283
],
[
283,
284
],
[
284,
285
],
[
285,
286
],
[
243,
287
],
[
287,
288
],
[
287,
289
],
[
289,
290
],
[
290,
291
],
[
291,
292
],
[
292,
293
],
[
291,
294
],
[
294,
295
],
[
0,
296
],
[
296,
297
],
[
296,
298
]
]
| [
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\nimport java.util.HashMap;\nimport java.io.IOException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author shivam\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskB {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n HashMap<String, Integer> map = new HashMap<>();\n map.put(\"AC\", 0);\n map.put(\"WA\", 0);\n map.put(\"TLE\", 0);\n map.put(\"RE\", 0);\n for (int i = 0; i < n; i++) {\n String s = in.next();\n if (s.equals(\"AC\")) map.put(\"AC\", map.get(\"AC\") + 1);\n if (s.equals(\"WA\")) map.put(\"WA\", map.get(\"WA\") + 1);\n if (s.equals(\"TLE\")) map.put(\"TLE\", map.get(\"TLE\") + 1);\n if (s.equals(\"RE\")) map.put(\"RE\", map.get(\"RE\") + 1);\n }\n out.println(\"AC\" + \" \" + \"x\" + \" \" + map.get(\"AC\"));\n out.println(\"WA\" + \" \" + \"x\" + \" \" + map.get(\"WA\"));\n out.println(\"TLE\" + \" \" + \"x\" + \" \" + map.get(\"TLE\"));\n out.println(\"RE\" + \" \" + \"x\" + \" \" + map.get(\"RE\"));\n }\n\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskB {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n HashMap<String, Integer> map = new HashMap<>();\n map.put(\"AC\", 0);\n map.put(\"WA\", 0);\n map.put(\"TLE\", 0);\n map.put(\"RE\", 0);\n for (int i = 0; i < n; i++) {\n String s = in.next();\n if (s.equals(\"AC\")) map.put(\"AC\", map.get(\"AC\") + 1);\n if (s.equals(\"WA\")) map.put(\"WA\", map.get(\"WA\") + 1);\n if (s.equals(\"TLE\")) map.put(\"TLE\", map.get(\"TLE\") + 1);\n if (s.equals(\"RE\")) map.put(\"RE\", map.get(\"RE\") + 1);\n }\n out.println(\"AC\" + \" \" + \"x\" + \" \" + map.get(\"AC\"));\n out.println(\"WA\" + \" \" + \"x\" + \" \" + map.get(\"WA\"));\n out.println(\"TLE\" + \" \" + \"x\" + \" \" + map.get(\"TLE\"));\n out.println(\"RE\" + \" \" + \"x\" + \" \" + map.get(\"RE\"));\n }\n\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"InputReader in = new InputReader(inputStream);",
"in",
"new InputReader(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"TaskB solver = new TaskB();",
"solver",
"new TaskB()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class TaskB {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n HashMap<String, Integer> map = new HashMap<>();\n map.put(\"AC\", 0);\n map.put(\"WA\", 0);\n map.put(\"TLE\", 0);\n map.put(\"RE\", 0);\n for (int i = 0; i < n; i++) {\n String s = in.next();\n if (s.equals(\"AC\")) map.put(\"AC\", map.get(\"AC\") + 1);\n if (s.equals(\"WA\")) map.put(\"WA\", map.get(\"WA\") + 1);\n if (s.equals(\"TLE\")) map.put(\"TLE\", map.get(\"TLE\") + 1);\n if (s.equals(\"RE\")) map.put(\"RE\", map.get(\"RE\") + 1);\n }\n out.println(\"AC\" + \" \" + \"x\" + \" \" + map.get(\"AC\"));\n out.println(\"WA\" + \" \" + \"x\" + \" \" + map.get(\"WA\"));\n out.println(\"TLE\" + \" \" + \"x\" + \" \" + map.get(\"TLE\"));\n out.println(\"RE\" + \" \" + \"x\" + \" \" + map.get(\"RE\"));\n }\n\n }",
"TaskB",
"public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n HashMap<String, Integer> map = new HashMap<>();\n map.put(\"AC\", 0);\n map.put(\"WA\", 0);\n map.put(\"TLE\", 0);\n map.put(\"RE\", 0);\n for (int i = 0; i < n; i++) {\n String s = in.next();\n if (s.equals(\"AC\")) map.put(\"AC\", map.get(\"AC\") + 1);\n if (s.equals(\"WA\")) map.put(\"WA\", map.get(\"WA\") + 1);\n if (s.equals(\"TLE\")) map.put(\"TLE\", map.get(\"TLE\") + 1);\n if (s.equals(\"RE\")) map.put(\"RE\", map.get(\"RE\") + 1);\n }\n out.println(\"AC\" + \" \" + \"x\" + \" \" + map.get(\"AC\"));\n out.println(\"WA\" + \" \" + \"x\" + \" \" + map.get(\"WA\"));\n out.println(\"TLE\" + \" \" + \"x\" + \" \" + map.get(\"TLE\"));\n out.println(\"RE\" + \" \" + \"x\" + \" \" + map.get(\"RE\"));\n }",
"solve",
"{\n int n = in.nextInt();\n HashMap<String, Integer> map = new HashMap<>();\n map.put(\"AC\", 0);\n map.put(\"WA\", 0);\n map.put(\"TLE\", 0);\n map.put(\"RE\", 0);\n for (int i = 0; i < n; i++) {\n String s = in.next();\n if (s.equals(\"AC\")) map.put(\"AC\", map.get(\"AC\") + 1);\n if (s.equals(\"WA\")) map.put(\"WA\", map.get(\"WA\") + 1);\n if (s.equals(\"TLE\")) map.put(\"TLE\", map.get(\"TLE\") + 1);\n if (s.equals(\"RE\")) map.put(\"RE\", map.get(\"RE\") + 1);\n }\n out.println(\"AC\" + \" \" + \"x\" + \" \" + map.get(\"AC\"));\n out.println(\"WA\" + \" \" + \"x\" + \" \" + map.get(\"WA\"));\n out.println(\"TLE\" + \" \" + \"x\" + \" \" + map.get(\"TLE\"));\n out.println(\"RE\" + \" \" + \"x\" + \" \" + map.get(\"RE\"));\n }",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"HashMap<String, Integer> map = new HashMap<>();",
"map",
"new HashMap<>()",
"map.put(\"AC\", 0)",
"map.put",
"map",
"\"AC\"",
"0",
"map.put(\"WA\", 0)",
"map.put",
"map",
"\"WA\"",
"0",
"map.put(\"TLE\", 0)",
"map.put",
"map",
"\"TLE\"",
"0",
"map.put(\"RE\", 0)",
"map.put",
"map",
"\"RE\"",
"0",
"for (int i = 0; i < n; i++) {\n String s = in.next();\n if (s.equals(\"AC\")) map.put(\"AC\", map.get(\"AC\") + 1);\n if (s.equals(\"WA\")) map.put(\"WA\", map.get(\"WA\") + 1);\n if (s.equals(\"TLE\")) map.put(\"TLE\", map.get(\"TLE\") + 1);\n if (s.equals(\"RE\")) map.put(\"RE\", map.get(\"RE\") + 1);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String s = in.next();\n if (s.equals(\"AC\")) map.put(\"AC\", map.get(\"AC\") + 1);\n if (s.equals(\"WA\")) map.put(\"WA\", map.get(\"WA\") + 1);\n if (s.equals(\"TLE\")) map.put(\"TLE\", map.get(\"TLE\") + 1);\n if (s.equals(\"RE\")) map.put(\"RE\", map.get(\"RE\") + 1);\n }",
"{\n String s = in.next();\n if (s.equals(\"AC\")) map.put(\"AC\", map.get(\"AC\") + 1);\n if (s.equals(\"WA\")) map.put(\"WA\", map.get(\"WA\") + 1);\n if (s.equals(\"TLE\")) map.put(\"TLE\", map.get(\"TLE\") + 1);\n if (s.equals(\"RE\")) map.put(\"RE\", map.get(\"RE\") + 1);\n }",
"String s = in.next();",
"s",
"in.next()",
"in.next",
"in",
"if (s.equals(\"AC\")) map.put(\"AC\", map.get(\"AC\") + 1);",
"s.equals(\"AC\")",
"s.equals",
"s",
"\"AC\"",
"map.put(\"AC\", map.get(\"AC\") + 1)",
"map.put",
"map",
"\"AC\"",
"map.get(\"AC\") + 1",
"map.get(\"AC\")",
"map.get",
"map",
"\"AC\"",
"1",
"if (s.equals(\"WA\")) map.put(\"WA\", map.get(\"WA\") + 1);",
"s.equals(\"WA\")",
"s.equals",
"s",
"\"WA\"",
"map.put(\"WA\", map.get(\"WA\") + 1)",
"map.put",
"map",
"\"WA\"",
"map.get(\"WA\") + 1",
"map.get(\"WA\")",
"map.get",
"map",
"\"WA\"",
"1",
"if (s.equals(\"TLE\")) map.put(\"TLE\", map.get(\"TLE\") + 1);",
"s.equals(\"TLE\")",
"s.equals",
"s",
"\"TLE\"",
"map.put(\"TLE\", map.get(\"TLE\") + 1)",
"map.put",
"map",
"\"TLE\"",
"map.get(\"TLE\") + 1",
"map.get(\"TLE\")",
"map.get",
"map",
"\"TLE\"",
"1",
"if (s.equals(\"RE\")) map.put(\"RE\", map.get(\"RE\") + 1);",
"s.equals(\"RE\")",
"s.equals",
"s",
"\"RE\"",
"map.put(\"RE\", map.get(\"RE\") + 1)",
"map.put",
"map",
"\"RE\"",
"map.get(\"RE\") + 1",
"map.get(\"RE\")",
"map.get",
"map",
"\"RE\"",
"1",
"out.println(\"AC\" + \" \" + \"x\" + \" \" + map.get(\"AC\"))",
"out.println",
"out",
"\"AC\" + \" \" + \"x\" + \" \" + map.get(\"AC\")",
"\" \"",
"\"x\"",
"\"AC\" + \" \" + \"x\" + \" \" + map.get(\"AC\")",
"\"AC\"",
"\" \"",
"\"x\"",
"\" \"",
"map.get(\"AC\")",
"map.get",
"map",
"\"AC\"",
"out.println(\"WA\" + \" \" + \"x\" + \" \" + map.get(\"WA\"))",
"out.println",
"out",
"\"WA\" + \" \" + \"x\" + \" \" + map.get(\"WA\")",
"\" \"",
"\"x\"",
"\"WA\" + \" \" + \"x\" + \" \" + map.get(\"WA\")",
"\"WA\"",
"\" \"",
"\"x\"",
"\" \"",
"map.get(\"WA\")",
"map.get",
"map",
"\"WA\"",
"out.println(\"TLE\" + \" \" + \"x\" + \" \" + map.get(\"TLE\"))",
"out.println",
"out",
"\"TLE\" + \" \" + \"x\" + \" \" + map.get(\"TLE\")",
"\" \"",
"\"x\"",
"\"TLE\" + \" \" + \"x\" + \" \" + map.get(\"TLE\")",
"\"TLE\"",
"\" \"",
"\"x\"",
"\" \"",
"map.get(\"TLE\")",
"map.get",
"map",
"\"TLE\"",
"out.println(\"RE\" + \" \" + \"x\" + \" \" + map.get(\"RE\"))",
"out.println",
"out",
"\"RE\" + \" \" + \"x\" + \" \" + map.get(\"RE\")",
"\" \"",
"\"x\"",
"\"RE\" + \" \" + \"x\" + \" \" + map.get(\"RE\")",
"\"RE\"",
"\" \"",
"\"x\"",
"\" \"",
"map.get(\"RE\")",
"map.get",
"map",
"\"RE\"",
"int testNumber",
"testNumber",
"InputReader in",
"in",
"PrintWriter out",
"out",
"static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }",
"InputReader",
"public BufferedReader reader;",
"reader",
"public StringTokenizer tokenizer;",
"tokenizer",
"public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }",
"InputReader",
"{\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }",
"reader = new BufferedReader(new InputStreamReader(stream), 32768)",
"reader",
"new BufferedReader(new InputStreamReader(stream), 32768)",
"tokenizer = null",
"tokenizer",
"null",
"InputStream stream",
"stream",
"public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"next",
"{\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }",
"catch (IOException e) {\n throw new RuntimeException(e);\n }",
"IOException e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n tokenizer = new StringTokenizer(reader.readLine());\n }",
"tokenizer = new StringTokenizer(reader.readLine())",
"tokenizer",
"new StringTokenizer(reader.readLine())",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"public int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskB {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n HashMap<String, Integer> map = new HashMap<>();\n map.put(\"AC\", 0);\n map.put(\"WA\", 0);\n map.put(\"TLE\", 0);\n map.put(\"RE\", 0);\n for (int i = 0; i < n; i++) {\n String s = in.next();\n if (s.equals(\"AC\")) map.put(\"AC\", map.get(\"AC\") + 1);\n if (s.equals(\"WA\")) map.put(\"WA\", map.get(\"WA\") + 1);\n if (s.equals(\"TLE\")) map.put(\"TLE\", map.get(\"TLE\") + 1);\n if (s.equals(\"RE\")) map.put(\"RE\", map.get(\"RE\") + 1);\n }\n out.println(\"AC\" + \" \" + \"x\" + \" \" + map.get(\"AC\"));\n out.println(\"WA\" + \" \" + \"x\" + \" \" + map.get(\"WA\"));\n out.println(\"TLE\" + \" \" + \"x\" + \" \" + map.get(\"TLE\"));\n out.println(\"RE\" + \" \" + \"x\" + \" \" + map.get(\"RE\"));\n }\n\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskB solver = new TaskB();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskB {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.nextInt();\n HashMap<String, Integer> map = new HashMap<>();\n map.put(\"AC\", 0);\n map.put(\"WA\", 0);\n map.put(\"TLE\", 0);\n map.put(\"RE\", 0);\n for (int i = 0; i < n; i++) {\n String s = in.next();\n if (s.equals(\"AC\")) map.put(\"AC\", map.get(\"AC\") + 1);\n if (s.equals(\"WA\")) map.put(\"WA\", map.get(\"WA\") + 1);\n if (s.equals(\"TLE\")) map.put(\"TLE\", map.get(\"TLE\") + 1);\n if (s.equals(\"RE\")) map.put(\"RE\", map.get(\"RE\") + 1);\n }\n out.println(\"AC\" + \" \" + \"x\" + \" \" + map.get(\"AC\"));\n out.println(\"WA\" + \" \" + \"x\" + \" \" + map.get(\"WA\"));\n out.println(\"TLE\" + \" \" + \"x\" + \" \" + map.get(\"TLE\"));\n out.println(\"RE\" + \" \" + \"x\" + \" \" + map.get(\"RE\"));\n }\n\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n}",
"Main"
]
| import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import java.util.HashMap;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author shivam
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
TaskB solver = new TaskB();
solver.solve(1, in, out);
out.close();
}
static class TaskB {
public void solve(int testNumber, InputReader in, PrintWriter out) {
int n = in.nextInt();
HashMap<String, Integer> map = new HashMap<>();
map.put("AC", 0);
map.put("WA", 0);
map.put("TLE", 0);
map.put("RE", 0);
for (int i = 0; i < n; i++) {
String s = in.next();
if (s.equals("AC")) map.put("AC", map.get("AC") + 1);
if (s.equals("WA")) map.put("WA", map.get("WA") + 1);
if (s.equals("TLE")) map.put("TLE", map.get("TLE") + 1);
if (s.equals("RE")) map.put("RE", map.get("RE") + 1);
}
out.println("AC" + " " + "x" + " " + map.get("AC"));
out.println("WA" + " " + "x" + " " + map.get("WA"));
out.println("TLE" + " " + "x" + " " + map.get("TLE"));
out.println("RE" + " " + "x" + " " + map.get("RE"));
}
}
static class InputReader {
public BufferedReader reader;
public StringTokenizer tokenizer;
public InputReader(InputStream stream) {
reader = new BufferedReader(new InputStreamReader(stream), 32768);
tokenizer = null;
}
public String next() {
while (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(reader.readLine());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken();
}
public int nextInt() {
return Integer.parseInt(next());
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
40,
18,
13,
17,
14,
4,
18,
13,
17,
40,
18,
13,
17,
14,
4,
18,
13,
17,
40,
18,
13,
17,
40,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
23,
13,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
42,
40,
4,
18,
13,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
212,
26
],
[
212,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
29,
38
],
[
38,
39
],
[
38,
40
],
[
29,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
42,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
54,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
60,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
60,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
69,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
69,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
78,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
78,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
29,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
98,
100
],
[
29,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
108,
110
],
[
29,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
118,
120
],
[
29,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
128,
130
],
[
27,
131
],
[
131,
132
],
[
212,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
135,
137
],
[
133,
138
],
[
138,
139
],
[
138,
140
],
[
133,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
144,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
149,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
143,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
133,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
168,
171
],
[
171,
172
],
[
133,
173
],
[
173,
174
],
[
173,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
175,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
180,
185
],
[
185,
186
],
[
185,
187
],
[
180,
188
],
[
188,
189
],
[
189,
190
],
[
180,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
192,
196
],
[
196,
197
],
[
175,
198
],
[
198,
199
],
[
173,
200
],
[
200,
201
],
[
133,
202
],
[
202,
203
],
[
202,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
206,
209
],
[
209,
210
],
[
0,
211
],
[
211,
212
],
[
211,
213
]
]
| [
"import java.io.*;\nimport java.math.*;\nimport java.security.*;\nimport java.text.*;\nimport java.time.LocalTime;\nimport java.util.*;\nimport java.util.concurrent.*;\nimport java.util.regex.*;\n\n\npublic class Main {\n\n public static void main(String[] args) {\n \n \tFastScanner scan = new FastScanner();\n \t\n \tint n = scan.nextInt();\n \tint [] a = new int [4];\n \t\t\tfor(int i=0; i<n; i++) {\n \t\tString str = scan.next();\n \t\tif(str.equals(\"AC\")) a[0]++;\n \t\telse if(str.equals(\"WA\")) a[1]++;\n \t\telse if(str.equals(\"TLE\")) a[2]++;\n \t\telse a[3]++;\n \t}\n \tSystem.out.println(\"AC x \" + a[0]);\n \tSystem.out.println(\"WA x \" + a[1]);\n \tSystem.out.println(\"TLE x \" + a[2]);\n \tSystem.out.println(\"RE x \" + a[3]);\n \t} \n \n \n static class FastScanner{\n \t\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tStringTokenizer st = new StringTokenizer(\"\");\n \tString next() {\n \t\twhile(!st.hasMoreTokens())\n \t\t\ttry {\n \t\t\t\tst = new StringTokenizer(br.readLine());\n \t\t\t} catch (IOException e){\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\treturn st.nextToken();\n \t}\n \t\n \tint nextInt() {\n \t\treturn Integer.parseInt(next());\n \t}\n \t\n \tint [] readArray(int n) {\n \t\tint [] a = new int[n];\n \t\tfor(int i=0; i<n ; i++) a[i] = nextInt();\n \t\treturn a;\n \t}\n \t\n \tlong nextLong() {\n \t\treturn Long.parseLong(next());\n \t}\n \t\n \t\n }\n \n \n}\n",
"import java.io.*;",
"io.*",
"java",
"import java.math.*;",
"math.*",
"java",
"import java.security.*;",
"security.*",
"java",
"import java.text.*;",
"text.*",
"java",
"import java.time.LocalTime;",
"LocalTime",
"java.time",
"import java.util.*;",
"util.*",
"java",
"import java.util.concurrent.*;",
"concurrent.*",
"java.util",
"import java.util.regex.*;",
"regex.*",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n \n \tFastScanner scan = new FastScanner();\n \t\n \tint n = scan.nextInt();\n \tint [] a = new int [4];\n \t\t\tfor(int i=0; i<n; i++) {\n \t\tString str = scan.next();\n \t\tif(str.equals(\"AC\")) a[0]++;\n \t\telse if(str.equals(\"WA\")) a[1]++;\n \t\telse if(str.equals(\"TLE\")) a[2]++;\n \t\telse a[3]++;\n \t}\n \tSystem.out.println(\"AC x \" + a[0]);\n \tSystem.out.println(\"WA x \" + a[1]);\n \tSystem.out.println(\"TLE x \" + a[2]);\n \tSystem.out.println(\"RE x \" + a[3]);\n \t} \n \n \n static class FastScanner{\n \t\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tStringTokenizer st = new StringTokenizer(\"\");\n \tString next() {\n \t\twhile(!st.hasMoreTokens())\n \t\t\ttry {\n \t\t\t\tst = new StringTokenizer(br.readLine());\n \t\t\t} catch (IOException e){\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\treturn st.nextToken();\n \t}\n \t\n \tint nextInt() {\n \t\treturn Integer.parseInt(next());\n \t}\n \t\n \tint [] readArray(int n) {\n \t\tint [] a = new int[n];\n \t\tfor(int i=0; i<n ; i++) a[i] = nextInt();\n \t\treturn a;\n \t}\n \t\n \tlong nextLong() {\n \t\treturn Long.parseLong(next());\n \t}\n \t\n \t\n }\n \n \n}",
"Main",
"public static void main(String[] args) {\n \n \tFastScanner scan = new FastScanner();\n \t\n \tint n = scan.nextInt();\n \tint [] a = new int [4];\n \t\t\tfor(int i=0; i<n; i++) {\n \t\tString str = scan.next();\n \t\tif(str.equals(\"AC\")) a[0]++;\n \t\telse if(str.equals(\"WA\")) a[1]++;\n \t\telse if(str.equals(\"TLE\")) a[2]++;\n \t\telse a[3]++;\n \t}\n \tSystem.out.println(\"AC x \" + a[0]);\n \tSystem.out.println(\"WA x \" + a[1]);\n \tSystem.out.println(\"TLE x \" + a[2]);\n \tSystem.out.println(\"RE x \" + a[3]);\n \t}",
"main",
"{\n \n \tFastScanner scan = new FastScanner();\n \t\n \tint n = scan.nextInt();\n \tint [] a = new int [4];\n \t\t\tfor(int i=0; i<n; i++) {\n \t\tString str = scan.next();\n \t\tif(str.equals(\"AC\")) a[0]++;\n \t\telse if(str.equals(\"WA\")) a[1]++;\n \t\telse if(str.equals(\"TLE\")) a[2]++;\n \t\telse a[3]++;\n \t}\n \tSystem.out.println(\"AC x \" + a[0]);\n \tSystem.out.println(\"WA x \" + a[1]);\n \tSystem.out.println(\"TLE x \" + a[2]);\n \tSystem.out.println(\"RE x \" + a[3]);\n \t}",
"FastScanner scan = new FastScanner();",
"scan",
"new FastScanner()",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int [] a = new int [4];",
"a",
"new int [4]",
"4",
"for(int i=0; i<n; i++) {\n \t\tString str = scan.next();\n \t\tif(str.equals(\"AC\")) a[0]++;\n \t\telse if(str.equals(\"WA\")) a[1]++;\n \t\telse if(str.equals(\"TLE\")) a[2]++;\n \t\telse a[3]++;\n \t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \t\tString str = scan.next();\n \t\tif(str.equals(\"AC\")) a[0]++;\n \t\telse if(str.equals(\"WA\")) a[1]++;\n \t\telse if(str.equals(\"TLE\")) a[2]++;\n \t\telse a[3]++;\n \t}",
"{\n \t\tString str = scan.next();\n \t\tif(str.equals(\"AC\")) a[0]++;\n \t\telse if(str.equals(\"WA\")) a[1]++;\n \t\telse if(str.equals(\"TLE\")) a[2]++;\n \t\telse a[3]++;\n \t}",
"String str = scan.next();",
"str",
"scan.next()",
"scan.next",
"scan",
"if(str.equals(\"AC\")) a[0]++;\n \t\telse if(str.equals(\"WA\")) a[1]++;\n \t\telse if(str.equals(\"TLE\")) a[2]++;\n \t\telse a[3]++;",
"str.equals(\"AC\")",
"str.equals",
"str",
"\"AC\"",
"a[0]++",
"a[0]",
"a",
"0",
"if(str.equals(\"WA\")) a[1]++;\n \t\telse if(str.equals(\"TLE\")) a[2]++;\n \t\telse a[3]++;",
"str.equals(\"WA\")",
"str.equals",
"str",
"\"WA\"",
"a[1]++",
"a[1]",
"a",
"1",
"if(str.equals(\"TLE\")) a[2]++;\n \t\telse a[3]++;",
"str.equals(\"TLE\")",
"str.equals",
"str",
"\"TLE\"",
"a[2]++",
"a[2]",
"a",
"2",
"a[3]++",
"a[3]",
"a",
"3",
"System.out.println(\"AC x \" + a[0])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + a[0]",
"\"AC x \"",
"a[0]",
"a",
"0",
"System.out.println(\"WA x \" + a[1])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + a[1]",
"\"WA x \"",
"a[1]",
"a",
"1",
"System.out.println(\"TLE x \" + a[2])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + a[2]",
"\"TLE x \"",
"a[2]",
"a",
"2",
"System.out.println(\"RE x \" + a[3])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + a[3]",
"\"RE x \"",
"a[3]",
"a",
"3",
"String[] args",
"args",
"static class FastScanner{\n \t\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tStringTokenizer st = new StringTokenizer(\"\");\n \tString next() {\n \t\twhile(!st.hasMoreTokens())\n \t\t\ttry {\n \t\t\t\tst = new StringTokenizer(br.readLine());\n \t\t\t} catch (IOException e){\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\treturn st.nextToken();\n \t}\n \t\n \tint nextInt() {\n \t\treturn Integer.parseInt(next());\n \t}\n \t\n \tint [] readArray(int n) {\n \t\tint [] a = new int[n];\n \t\tfor(int i=0; i<n ; i++) a[i] = nextInt();\n \t\treturn a;\n \t}\n \t\n \tlong nextLong() {\n \t\treturn Long.parseLong(next());\n \t}\n \t\n \t\n }",
"FastScanner",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st = new StringTokenizer(\"\");",
"st",
"new StringTokenizer(\"\")",
"String next() {\n \t\twhile(!st.hasMoreTokens())\n \t\t\ttry {\n \t\t\t\tst = new StringTokenizer(br.readLine());\n \t\t\t} catch (IOException e){\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\treturn st.nextToken();\n \t}",
"next",
"{\n \t\twhile(!st.hasMoreTokens())\n \t\t\ttry {\n \t\t\t\tst = new StringTokenizer(br.readLine());\n \t\t\t} catch (IOException e){\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\treturn st.nextToken();\n \t}",
"while(!st.hasMoreTokens())\n \t\t\ttry {\n \t\t\t\tst = new StringTokenizer(br.readLine());\n \t\t\t} catch (IOException e){\n \t\t\t\te.printStackTrace();\n \t\t\t}",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"try {\n \t\t\t\tst = new StringTokenizer(br.readLine());\n \t\t\t} catch (IOException e){\n \t\t\t\te.printStackTrace();\n \t\t\t}",
"catch (IOException e){\n \t\t\t\te.printStackTrace();\n \t\t\t}",
"IOException e",
"{\n \t\t\t\te.printStackTrace();\n \t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n \t\t\t\tst = new StringTokenizer(br.readLine());\n \t\t\t}",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n \t\treturn Integer.parseInt(next());\n \t}",
"nextInt",
"{\n \t\treturn Integer.parseInt(next());\n \t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"int [] readArray(int n) {\n \t\tint [] a = new int[n];\n \t\tfor(int i=0; i<n ; i++) a[i] = nextInt();\n \t\treturn a;\n \t}",
"readArray",
"{\n \t\tint [] a = new int[n];\n \t\tfor(int i=0; i<n ; i++) a[i] = nextInt();\n \t\treturn a;\n \t}",
"int [] a = new int[n];",
"a",
"new int[n]",
"n",
"for(int i=0; i<n ; i++) a[i] = nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = nextInt();",
"a[i] = nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"long nextLong() {\n \t\treturn Long.parseLong(next());\n \t}",
"nextLong",
"{\n \t\treturn Long.parseLong(next());\n \t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public class Main {\n\n public static void main(String[] args) {\n \n \tFastScanner scan = new FastScanner();\n \t\n \tint n = scan.nextInt();\n \tint [] a = new int [4];\n \t\t\tfor(int i=0; i<n; i++) {\n \t\tString str = scan.next();\n \t\tif(str.equals(\"AC\")) a[0]++;\n \t\telse if(str.equals(\"WA\")) a[1]++;\n \t\telse if(str.equals(\"TLE\")) a[2]++;\n \t\telse a[3]++;\n \t}\n \tSystem.out.println(\"AC x \" + a[0]);\n \tSystem.out.println(\"WA x \" + a[1]);\n \tSystem.out.println(\"TLE x \" + a[2]);\n \tSystem.out.println(\"RE x \" + a[3]);\n \t} \n \n \n static class FastScanner{\n \t\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tStringTokenizer st = new StringTokenizer(\"\");\n \tString next() {\n \t\twhile(!st.hasMoreTokens())\n \t\t\ttry {\n \t\t\t\tst = new StringTokenizer(br.readLine());\n \t\t\t} catch (IOException e){\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\treturn st.nextToken();\n \t}\n \t\n \tint nextInt() {\n \t\treturn Integer.parseInt(next());\n \t}\n \t\n \tint [] readArray(int n) {\n \t\tint [] a = new int[n];\n \t\tfor(int i=0; i<n ; i++) a[i] = nextInt();\n \t\treturn a;\n \t}\n \t\n \tlong nextLong() {\n \t\treturn Long.parseLong(next());\n \t}\n \t\n \t\n }\n \n \n}",
"public class Main {\n\n public static void main(String[] args) {\n \n \tFastScanner scan = new FastScanner();\n \t\n \tint n = scan.nextInt();\n \tint [] a = new int [4];\n \t\t\tfor(int i=0; i<n; i++) {\n \t\tString str = scan.next();\n \t\tif(str.equals(\"AC\")) a[0]++;\n \t\telse if(str.equals(\"WA\")) a[1]++;\n \t\telse if(str.equals(\"TLE\")) a[2]++;\n \t\telse a[3]++;\n \t}\n \tSystem.out.println(\"AC x \" + a[0]);\n \tSystem.out.println(\"WA x \" + a[1]);\n \tSystem.out.println(\"TLE x \" + a[2]);\n \tSystem.out.println(\"RE x \" + a[3]);\n \t} \n \n \n static class FastScanner{\n \t\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tStringTokenizer st = new StringTokenizer(\"\");\n \tString next() {\n \t\twhile(!st.hasMoreTokens())\n \t\t\ttry {\n \t\t\t\tst = new StringTokenizer(br.readLine());\n \t\t\t} catch (IOException e){\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\treturn st.nextToken();\n \t}\n \t\n \tint nextInt() {\n \t\treturn Integer.parseInt(next());\n \t}\n \t\n \tint [] readArray(int n) {\n \t\tint [] a = new int[n];\n \t\tfor(int i=0; i<n ; i++) a[i] = nextInt();\n \t\treturn a;\n \t}\n \t\n \tlong nextLong() {\n \t\treturn Long.parseLong(next());\n \t}\n \t\n \t\n }\n \n \n}",
"Main"
]
| import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.time.LocalTime;
import java.util.*;
import java.util.concurrent.*;
import java.util.regex.*;
public class Main {
public static void main(String[] args) {
FastScanner scan = new FastScanner();
int n = scan.nextInt();
int [] a = new int [4];
for(int i=0; i<n; i++) {
String str = scan.next();
if(str.equals("AC")) a[0]++;
else if(str.equals("WA")) a[1]++;
else if(str.equals("TLE")) a[2]++;
else a[3]++;
}
System.out.println("AC x " + a[0]);
System.out.println("WA x " + a[1]);
System.out.println("TLE x " + a[2]);
System.out.println("RE x " + a[3]);
}
static class FastScanner{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer("");
String next() {
while(!st.hasMoreTokens())
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e){
e.printStackTrace();
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
int [] readArray(int n) {
int [] a = new int[n];
for(int i=0; i<n ; i++) a[i] = nextInt();
return a;
}
long nextLong() {
return Long.parseLong(next());
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
13,
29,
17,
29,
17,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
148,
11
],
[
148,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
15,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
22,
24
],
[
15,
25
],
[
25,
26
],
[
26,
27
],
[
15,
28
],
[
29,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
30,
36
],
[
36,
37
],
[
14,
38
],
[
38,
39
],
[
12,
40
],
[
40,
41
],
[
12,
42
],
[
42,
43
],
[
148,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
46,
55
],
[
55,
56
],
[
55,
57
],
[
46,
58
],
[
58,
59
],
[
58,
60
],
[
46,
61
],
[
61,
62
],
[
61,
63
],
[
46,
64
],
[
64,
65
],
[
64,
66
],
[
46,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
67,
78
],
[
79,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
79,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
85,
90
],
[
90,
91
],
[
85,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
92,
97
],
[
97,
98
],
[
92,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
99,
104
],
[
104,
105
],
[
99,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
106,
111
],
[
111,
112
],
[
46,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
46,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
126,
127
],
[
126,
128
],
[
46,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
134,
135
],
[
134,
136
],
[
46,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
137,
142
],
[
142,
143
],
[
142,
144
],
[
44,
145
],
[
145,
146
],
[
0,
147
],
[
147,
148
],
[
147,
149
]
]
| [
"import javax.sound.midi.Soundbank;\nimport java.util.*;\nimport java.lang.*;\n\npublic class Main\n{\n static boolean isThere(int[] a, int x)\n {\n for(int i=0; i<a.length; i++)\n {\n if(a[i]==x)\n return true;\n }\n return false;\n }\n public static void main (String[] args)\n {\n // your code goes here\n Scanner s = new Scanner(System.in);\n int n = s.nextInt();\n int a = 0, w = 0, t = 0, r = 0;\n for(int i=0; i<n; i++)\n {\n String x = s.next();\n if(x.equals(\"AC\"))\n a++;\n else if(x.equals(\"WA\"))\n w++;\n else if(x.equals(\"TLE\"))\n t++;\n else if(x.equals(\"RE\"))\n r++;\n }\n System.out.println(\"AC x \"+a);\n System.out.println(\"WA x \"+w);\n System.out.println(\"TLE x \"+t);\n System.out.println(\"RE x \"+r);\n }\n}",
"import javax.sound.midi.Soundbank;",
"Soundbank",
"javax.sound.midi",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"public class Main\n{\n static boolean isThere(int[] a, int x)\n {\n for(int i=0; i<a.length; i++)\n {\n if(a[i]==x)\n return true;\n }\n return false;\n }\n public static void main (String[] args)\n {\n // your code goes here\n Scanner s = new Scanner(System.in);\n int n = s.nextInt();\n int a = 0, w = 0, t = 0, r = 0;\n for(int i=0; i<n; i++)\n {\n String x = s.next();\n if(x.equals(\"AC\"))\n a++;\n else if(x.equals(\"WA\"))\n w++;\n else if(x.equals(\"TLE\"))\n t++;\n else if(x.equals(\"RE\"))\n r++;\n }\n System.out.println(\"AC x \"+a);\n System.out.println(\"WA x \"+w);\n System.out.println(\"TLE x \"+t);\n System.out.println(\"RE x \"+r);\n }\n}",
"Main",
"static boolean isThere(int[] a, int x)\n {\n for(int i=0; i<a.length; i++)\n {\n if(a[i]==x)\n return true;\n }\n return false;\n }",
"isThere",
"{\n for(int i=0; i<a.length; i++)\n {\n if(a[i]==x)\n return true;\n }\n return false;\n }",
"for(int i=0; i<a.length; i++)\n {\n if(a[i]==x)\n return true;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"{\n if(a[i]==x)\n return true;\n }",
"{\n if(a[i]==x)\n return true;\n }",
"if(a[i]==x)\n return true;",
"a[i]==x",
"a[i]",
"a",
"i",
"x",
"return true;",
"true",
"return false;",
"false",
"int[] a",
"a",
"int x",
"x",
"public static void main (String[] args)\n {\n // your code goes here\n Scanner s = new Scanner(System.in);\n int n = s.nextInt();\n int a = 0, w = 0, t = 0, r = 0;\n for(int i=0; i<n; i++)\n {\n String x = s.next();\n if(x.equals(\"AC\"))\n a++;\n else if(x.equals(\"WA\"))\n w++;\n else if(x.equals(\"TLE\"))\n t++;\n else if(x.equals(\"RE\"))\n r++;\n }\n System.out.println(\"AC x \"+a);\n System.out.println(\"WA x \"+w);\n System.out.println(\"TLE x \"+t);\n System.out.println(\"RE x \"+r);\n }",
"main",
"{\n // your code goes here\n Scanner s = new Scanner(System.in);\n int n = s.nextInt();\n int a = 0, w = 0, t = 0, r = 0;\n for(int i=0; i<n; i++)\n {\n String x = s.next();\n if(x.equals(\"AC\"))\n a++;\n else if(x.equals(\"WA\"))\n w++;\n else if(x.equals(\"TLE\"))\n t++;\n else if(x.equals(\"RE\"))\n r++;\n }\n System.out.println(\"AC x \"+a);\n System.out.println(\"WA x \"+w);\n System.out.println(\"TLE x \"+t);\n System.out.println(\"RE x \"+r);\n }",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int n = s.nextInt();",
"n",
"s.nextInt()",
"s.nextInt",
"s",
"int a = 0",
"a",
"0",
"w = 0",
"w",
"0",
"t = 0",
"t",
"0",
"r = 0;",
"r",
"0",
"for(int i=0; i<n; i++)\n {\n String x = s.next();\n if(x.equals(\"AC\"))\n a++;\n else if(x.equals(\"WA\"))\n w++;\n else if(x.equals(\"TLE\"))\n t++;\n else if(x.equals(\"RE\"))\n r++;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String x = s.next();\n if(x.equals(\"AC\"))\n a++;\n else if(x.equals(\"WA\"))\n w++;\n else if(x.equals(\"TLE\"))\n t++;\n else if(x.equals(\"RE\"))\n r++;\n }",
"{\n String x = s.next();\n if(x.equals(\"AC\"))\n a++;\n else if(x.equals(\"WA\"))\n w++;\n else if(x.equals(\"TLE\"))\n t++;\n else if(x.equals(\"RE\"))\n r++;\n }",
"String x = s.next();",
"x",
"s.next()",
"s.next",
"s",
"if(x.equals(\"AC\"))\n a++;\n else if(x.equals(\"WA\"))\n w++;\n else if(x.equals(\"TLE\"))\n t++;\n else if(x.equals(\"RE\"))\n r++;",
"x.equals(\"AC\")",
"x.equals",
"x",
"\"AC\"",
"a++",
"a",
"if(x.equals(\"WA\"))\n w++;\n else if(x.equals(\"TLE\"))\n t++;\n else if(x.equals(\"RE\"))\n r++;",
"x.equals(\"WA\")",
"x.equals",
"x",
"\"WA\"",
"w++",
"w",
"if(x.equals(\"TLE\"))\n t++;\n else if(x.equals(\"RE\"))\n r++;",
"x.equals(\"TLE\")",
"x.equals",
"x",
"\"TLE\"",
"t++",
"t",
"if(x.equals(\"RE\"))\n r++;",
"x.equals(\"RE\")",
"x.equals",
"x",
"\"RE\"",
"r++",
"r",
"System.out.println(\"AC x \"+a)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \"+a",
"\"AC x \"",
"a",
"System.out.println(\"WA x \"+w)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \"+w",
"\"WA x \"",
"w",
"System.out.println(\"TLE x \"+t)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \"+t",
"\"TLE x \"",
"t",
"System.out.println(\"RE x \"+r)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \"+r",
"\"RE x \"",
"r",
"String[] args",
"args",
"public class Main\n{\n static boolean isThere(int[] a, int x)\n {\n for(int i=0; i<a.length; i++)\n {\n if(a[i]==x)\n return true;\n }\n return false;\n }\n public static void main (String[] args)\n {\n // your code goes here\n Scanner s = new Scanner(System.in);\n int n = s.nextInt();\n int a = 0, w = 0, t = 0, r = 0;\n for(int i=0; i<n; i++)\n {\n String x = s.next();\n if(x.equals(\"AC\"))\n a++;\n else if(x.equals(\"WA\"))\n w++;\n else if(x.equals(\"TLE\"))\n t++;\n else if(x.equals(\"RE\"))\n r++;\n }\n System.out.println(\"AC x \"+a);\n System.out.println(\"WA x \"+w);\n System.out.println(\"TLE x \"+t);\n System.out.println(\"RE x \"+r);\n }\n}",
"public class Main\n{\n static boolean isThere(int[] a, int x)\n {\n for(int i=0; i<a.length; i++)\n {\n if(a[i]==x)\n return true;\n }\n return false;\n }\n public static void main (String[] args)\n {\n // your code goes here\n Scanner s = new Scanner(System.in);\n int n = s.nextInt();\n int a = 0, w = 0, t = 0, r = 0;\n for(int i=0; i<n; i++)\n {\n String x = s.next();\n if(x.equals(\"AC\"))\n a++;\n else if(x.equals(\"WA\"))\n w++;\n else if(x.equals(\"TLE\"))\n t++;\n else if(x.equals(\"RE\"))\n r++;\n }\n System.out.println(\"AC x \"+a);\n System.out.println(\"WA x \"+w);\n System.out.println(\"TLE x \"+t);\n System.out.println(\"RE x \"+r);\n }\n}",
"Main"
]
| import javax.sound.midi.Soundbank;
import java.util.*;
import java.lang.*;
public class Main
{
static boolean isThere(int[] a, int x)
{
for(int i=0; i<a.length; i++)
{
if(a[i]==x)
return true;
}
return false;
}
public static void main (String[] args)
{
// your code goes here
Scanner s = new Scanner(System.in);
int n = s.nextInt();
int a = 0, w = 0, t = 0, r = 0;
for(int i=0; i<n; i++)
{
String x = s.next();
if(x.equals("AC"))
a++;
else if(x.equals("WA"))
w++;
else if(x.equals("TLE"))
t++;
else if(x.equals("RE"))
r++;
}
System.out.println("AC x "+a);
System.out.println("WA x "+w);
System.out.println("TLE x "+t);
System.out.println("RE x "+r);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
0,
18,
13,
17,
40,
18,
13,
17,
14,
4,
18,
13,
17,
30,
0,
18,
13,
17,
40,
18,
13,
17,
14,
4,
18,
13,
17,
30,
0,
18,
13,
17,
40,
18,
13,
17,
14,
4,
18,
13,
17,
30,
0,
18,
13,
17,
40,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
138,
5
],
[
138,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
26,
27
],
[
26,
28
],
[
21,
29
],
[
29,
30
],
[
30,
31
],
[
21,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
33,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
39,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
39,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
53,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
53,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
67,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
67,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
81,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
8,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
102,
104
],
[
8,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
112,
114
],
[
8,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
122,
124
],
[
8,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
132,
134
],
[
6,
135
],
[
135,
136
],
[
0,
137
],
[
137,
138
],
[
137,
139
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] counter = new int[4];\n int N = sc.nextInt();\n for (int i = 0; i < N ; i++) {\n String s = sc.next();\n if(s.equals(\"AC\")){\n counter[0] = ++counter[0];\n }else if(s.equals(\"WA\")){\n counter[1] = ++counter[1];\n }else if(s.equals(\"TLE\")){\n counter[2] = ++counter[2];\n }else if(s.equals(\"RE\")){\n counter[3] = ++counter[3];\n }\n }\n System.out.println(\"AC x \" + counter[0]);\n System.out.println(\"WA x \" + counter[1]);\n System.out.println(\"TLE x \" + counter[2]);\n System.out.println(\"RE x \" + counter[3]);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] counter = new int[4];\n int N = sc.nextInt();\n for (int i = 0; i < N ; i++) {\n String s = sc.next();\n if(s.equals(\"AC\")){\n counter[0] = ++counter[0];\n }else if(s.equals(\"WA\")){\n counter[1] = ++counter[1];\n }else if(s.equals(\"TLE\")){\n counter[2] = ++counter[2];\n }else if(s.equals(\"RE\")){\n counter[3] = ++counter[3];\n }\n }\n System.out.println(\"AC x \" + counter[0]);\n System.out.println(\"WA x \" + counter[1]);\n System.out.println(\"TLE x \" + counter[2]);\n System.out.println(\"RE x \" + counter[3]);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] counter = new int[4];\n int N = sc.nextInt();\n for (int i = 0; i < N ; i++) {\n String s = sc.next();\n if(s.equals(\"AC\")){\n counter[0] = ++counter[0];\n }else if(s.equals(\"WA\")){\n counter[1] = ++counter[1];\n }else if(s.equals(\"TLE\")){\n counter[2] = ++counter[2];\n }else if(s.equals(\"RE\")){\n counter[3] = ++counter[3];\n }\n }\n System.out.println(\"AC x \" + counter[0]);\n System.out.println(\"WA x \" + counter[1]);\n System.out.println(\"TLE x \" + counter[2]);\n System.out.println(\"RE x \" + counter[3]);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int[] counter = new int[4];\n int N = sc.nextInt();\n for (int i = 0; i < N ; i++) {\n String s = sc.next();\n if(s.equals(\"AC\")){\n counter[0] = ++counter[0];\n }else if(s.equals(\"WA\")){\n counter[1] = ++counter[1];\n }else if(s.equals(\"TLE\")){\n counter[2] = ++counter[2];\n }else if(s.equals(\"RE\")){\n counter[3] = ++counter[3];\n }\n }\n System.out.println(\"AC x \" + counter[0]);\n System.out.println(\"WA x \" + counter[1]);\n System.out.println(\"TLE x \" + counter[2]);\n System.out.println(\"RE x \" + counter[3]);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] counter = new int[4];",
"counter",
"new int[4]",
"4",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < N ; i++) {\n String s = sc.next();\n if(s.equals(\"AC\")){\n counter[0] = ++counter[0];\n }else if(s.equals(\"WA\")){\n counter[1] = ++counter[1];\n }else if(s.equals(\"TLE\")){\n counter[2] = ++counter[2];\n }else if(s.equals(\"RE\")){\n counter[3] = ++counter[3];\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n String s = sc.next();\n if(s.equals(\"AC\")){\n counter[0] = ++counter[0];\n }else if(s.equals(\"WA\")){\n counter[1] = ++counter[1];\n }else if(s.equals(\"TLE\")){\n counter[2] = ++counter[2];\n }else if(s.equals(\"RE\")){\n counter[3] = ++counter[3];\n }\n }",
"{\n String s = sc.next();\n if(s.equals(\"AC\")){\n counter[0] = ++counter[0];\n }else if(s.equals(\"WA\")){\n counter[1] = ++counter[1];\n }else if(s.equals(\"TLE\")){\n counter[2] = ++counter[2];\n }else if(s.equals(\"RE\")){\n counter[3] = ++counter[3];\n }\n }",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"if(s.equals(\"AC\")){\n counter[0] = ++counter[0];\n }else if(s.equals(\"WA\")){\n counter[1] = ++counter[1];\n }else if(s.equals(\"TLE\")){\n counter[2] = ++counter[2];\n }else if(s.equals(\"RE\")){\n counter[3] = ++counter[3];\n }",
"s.equals(\"AC\")",
"s.equals",
"s",
"\"AC\"",
"{\n counter[0] = ++counter[0];\n }",
"counter[0] = ++counter[0]",
"counter[0]",
"counter",
"0",
"++counter[0]",
"counter[0]",
"counter",
"0",
"if(s.equals(\"WA\")){\n counter[1] = ++counter[1];\n }else if(s.equals(\"TLE\")){\n counter[2] = ++counter[2];\n }else if(s.equals(\"RE\")){\n counter[3] = ++counter[3];\n }",
"s.equals(\"WA\")",
"s.equals",
"s",
"\"WA\"",
"{\n counter[1] = ++counter[1];\n }",
"counter[1] = ++counter[1]",
"counter[1]",
"counter",
"1",
"++counter[1]",
"counter[1]",
"counter",
"1",
"if(s.equals(\"TLE\")){\n counter[2] = ++counter[2];\n }else if(s.equals(\"RE\")){\n counter[3] = ++counter[3];\n }",
"s.equals(\"TLE\")",
"s.equals",
"s",
"\"TLE\"",
"{\n counter[2] = ++counter[2];\n }",
"counter[2] = ++counter[2]",
"counter[2]",
"counter",
"2",
"++counter[2]",
"counter[2]",
"counter",
"2",
"if(s.equals(\"RE\")){\n counter[3] = ++counter[3];\n }",
"s.equals(\"RE\")",
"s.equals",
"s",
"\"RE\"",
"{\n counter[3] = ++counter[3];\n }",
"counter[3] = ++counter[3]",
"counter[3]",
"counter",
"3",
"++counter[3]",
"counter[3]",
"counter",
"3",
"System.out.println(\"AC x \" + counter[0])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + counter[0]",
"\"AC x \"",
"counter[0]",
"counter",
"0",
"System.out.println(\"WA x \" + counter[1])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + counter[1]",
"\"WA x \"",
"counter[1]",
"counter",
"1",
"System.out.println(\"TLE x \" + counter[2])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + counter[2]",
"\"TLE x \"",
"counter[2]",
"counter",
"2",
"System.out.println(\"RE x \" + counter[3])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + counter[3]",
"\"RE x \"",
"counter[3]",
"counter",
"3",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] counter = new int[4];\n int N = sc.nextInt();\n for (int i = 0; i < N ; i++) {\n String s = sc.next();\n if(s.equals(\"AC\")){\n counter[0] = ++counter[0];\n }else if(s.equals(\"WA\")){\n counter[1] = ++counter[1];\n }else if(s.equals(\"TLE\")){\n counter[2] = ++counter[2];\n }else if(s.equals(\"RE\")){\n counter[3] = ++counter[3];\n }\n }\n System.out.println(\"AC x \" + counter[0]);\n System.out.println(\"WA x \" + counter[1]);\n System.out.println(\"TLE x \" + counter[2]);\n System.out.println(\"RE x \" + counter[3]);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] counter = new int[4];\n int N = sc.nextInt();\n for (int i = 0; i < N ; i++) {\n String s = sc.next();\n if(s.equals(\"AC\")){\n counter[0] = ++counter[0];\n }else if(s.equals(\"WA\")){\n counter[1] = ++counter[1];\n }else if(s.equals(\"TLE\")){\n counter[2] = ++counter[2];\n }else if(s.equals(\"RE\")){\n counter[3] = ++counter[3];\n }\n }\n System.out.println(\"AC x \" + counter[0]);\n System.out.println(\"WA x \" + counter[1]);\n System.out.println(\"TLE x \" + counter[2]);\n System.out.println(\"RE x \" + counter[3]);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] counter = new int[4];
int N = sc.nextInt();
for (int i = 0; i < N ; i++) {
String s = sc.next();
if(s.equals("AC")){
counter[0] = ++counter[0];
}else if(s.equals("WA")){
counter[1] = ++counter[1];
}else if(s.equals("TLE")){
counter[2] = ++counter[2];
}else if(s.equals("RE")){
counter[3] = ++counter[3];
}
}
System.out.println("AC x " + counter[0]);
System.out.println("WA x " + counter[1]);
System.out.println("TLE x " + counter[2]);
System.out.println("RE x " + counter[3]);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
35,
18,
13,
13,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
26,
27
],
[
26,
28
],
[
21,
29
],
[
29,
30
],
[
30,
31
],
[
21,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
8,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
58,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
58,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
58,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
8,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
101,
103
],
[
8,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
111,
113
],
[
8,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
121,
123
],
[
8,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
124,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
131,
133
],
[
6,
134
],
[
134,
135
]
]
| [
"import java.util.Scanner;\nclass Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n String[] s = new String[n];\n for(int i = 0; i < n; i++) {\n s[i] = sc.next();\n }\n\n int[] count = new int[4];\n\n for(int i = 0; i < n; i++) {\n switch(s[i]) {\n case \"AC\": count[0]++; break;\n case \"WA\": count[1]++; break;\n case \"TLE\": count[2]++; break;\n case \"RE\": count[3]++; break;\n }\n }\n\n System.out.println(\"AC x \" + count[0]);\n System.out.println(\"WA x \" + count[1]);\n System.out.println(\"TLE x \" + count[2]);\n System.out.println(\"RE x \" + count[3]);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n String[] s = new String[n];\n for(int i = 0; i < n; i++) {\n s[i] = sc.next();\n }\n\n int[] count = new int[4];\n\n for(int i = 0; i < n; i++) {\n switch(s[i]) {\n case \"AC\": count[0]++; break;\n case \"WA\": count[1]++; break;\n case \"TLE\": count[2]++; break;\n case \"RE\": count[3]++; break;\n }\n }\n\n System.out.println(\"AC x \" + count[0]);\n System.out.println(\"WA x \" + count[1]);\n System.out.println(\"TLE x \" + count[2]);\n System.out.println(\"RE x \" + count[3]);\n }\n}",
"Main",
"public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n String[] s = new String[n];\n for(int i = 0; i < n; i++) {\n s[i] = sc.next();\n }\n\n int[] count = new int[4];\n\n for(int i = 0; i < n; i++) {\n switch(s[i]) {\n case \"AC\": count[0]++; break;\n case \"WA\": count[1]++; break;\n case \"TLE\": count[2]++; break;\n case \"RE\": count[3]++; break;\n }\n }\n\n System.out.println(\"AC x \" + count[0]);\n System.out.println(\"WA x \" + count[1]);\n System.out.println(\"TLE x \" + count[2]);\n System.out.println(\"RE x \" + count[3]);\n }",
"main",
"{\n\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n String[] s = new String[n];\n for(int i = 0; i < n; i++) {\n s[i] = sc.next();\n }\n\n int[] count = new int[4];\n\n for(int i = 0; i < n; i++) {\n switch(s[i]) {\n case \"AC\": count[0]++; break;\n case \"WA\": count[1]++; break;\n case \"TLE\": count[2]++; break;\n case \"RE\": count[3]++; break;\n }\n }\n\n System.out.println(\"AC x \" + count[0]);\n System.out.println(\"WA x \" + count[1]);\n System.out.println(\"TLE x \" + count[2]);\n System.out.println(\"RE x \" + count[3]);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String[] s = new String[n];",
"s",
"new String[n]",
"n",
"for(int i = 0; i < n; i++) {\n s[i] = sc.next();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n s[i] = sc.next();\n }",
"{\n s[i] = sc.next();\n }",
"s[i] = sc.next()",
"s[i]",
"s",
"i",
"sc.next()",
"sc.next",
"sc",
"int[] count = new int[4];",
"count",
"new int[4]",
"4",
"for(int i = 0; i < n; i++) {\n switch(s[i]) {\n case \"AC\": count[0]++; break;\n case \"WA\": count[1]++; break;\n case \"TLE\": count[2]++; break;\n case \"RE\": count[3]++; break;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n switch(s[i]) {\n case \"AC\": count[0]++; break;\n case \"WA\": count[1]++; break;\n case \"TLE\": count[2]++; break;\n case \"RE\": count[3]++; break;\n }\n }",
"{\n switch(s[i]) {\n case \"AC\": count[0]++; break;\n case \"WA\": count[1]++; break;\n case \"TLE\": count[2]++; break;\n case \"RE\": count[3]++; break;\n }\n }",
"switch(s[i]) {\n case \"AC\": count[0]++; break;\n case \"WA\": count[1]++; break;\n case \"TLE\": count[2]++; break;\n case \"RE\": count[3]++; break;\n }",
"s[i]",
"s",
"i",
"case \"AC\":",
"\"AC\"",
"case \"AC\":",
"count[0]++",
"count[0]",
"count",
"0",
"break;",
"case \"WA\":",
"\"WA\"",
"case \"WA\":",
"count[1]++",
"count[1]",
"count",
"1",
"break;",
"case \"TLE\":",
"\"TLE\"",
"case \"TLE\":",
"count[2]++",
"count[2]",
"count",
"2",
"break;",
"case \"RE\":",
"\"RE\"",
"case \"RE\":",
"count[3]++",
"count[3]",
"count",
"3",
"break;",
"System.out.println(\"AC x \" + count[0])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + count[0]",
"\"AC x \"",
"count[0]",
"count",
"0",
"System.out.println(\"WA x \" + count[1])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + count[1]",
"\"WA x \"",
"count[1]",
"count",
"1",
"System.out.println(\"TLE x \" + count[2])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + count[2]",
"\"TLE x \"",
"count[2]",
"count",
"2",
"System.out.println(\"RE x \" + count[3])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + count[3]",
"\"RE x \"",
"count[3]",
"count",
"3",
"String[] args",
"args"
]
| import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
String[] s = new String[n];
for(int i = 0; i < n; i++) {
s[i] = sc.next();
}
int[] count = new int[4];
for(int i = 0; i < n; i++) {
switch(s[i]) {
case "AC": count[0]++; break;
case "WA": count[1]++; break;
case "TLE": count[2]++; break;
case "RE": count[3]++; break;
}
}
System.out.println("AC x " + count[0]);
System.out.println("WA x " + count[1]);
System.out.println("TLE x " + count[2]);
System.out.println("RE x " + count[3]);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
20,
41,
13,
20,
0,
13,
4,
18,
13,
42,
2,
13,
17,
30,
4,
18,
13,
4,
18,
13,
40,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
4,
18,
4,
18,
13,
13,
17,
40,
13,
14,
4,
18,
4,
18,
13,
13,
17,
40,
13,
14,
4,
18,
4,
18,
13,
13,
17,
40,
13,
14,
4,
18,
4,
18,
13,
13,
17,
40,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
144,
5
],
[
144,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
11,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
8,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
43,
44
],
[
38,
45
],
[
45,
46
],
[
8,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
8,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
51,
61
],
[
61,
62
],
[
62,
63
],
[
51,
64
],
[
65,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
67,
73
],
[
66,
74
],
[
74,
75
],
[
66,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
77,
83
],
[
76,
84
],
[
84,
85
],
[
76,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
87,
93
],
[
86,
94
],
[
94,
95
],
[
86,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
97,
103
],
[
96,
104
],
[
104,
105
],
[
8,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
8,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
119,
120
],
[
119,
121
],
[
8,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
127,
128
],
[
127,
129
],
[
8,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
130,
135
],
[
135,
136
],
[
135,
137
],
[
8,
138
],
[
138,
139
],
[
139,
140
],
[
6,
141
],
[
141,
142
],
[
0,
143
],
[
143,
144
],
[
143,
145
]
]
| [
"import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tint i, a = 0, w = 0, t = 0, r = 0;\n\t\tScanner myScanner = new Scanner(System.in);\n\t\tList <String> array = new ArrayList<>();\n\t\t\n\t\ti = myScanner.nextInt();\n\t\twhile(i >= 0) {\n\t\t\tarray.add(myScanner.nextLine());\n\t\t\ti --;\n\t\t}\n\t\t\n\t\tCollections.sort(array);\n\t\t\n\t\tfor(int j = 0; j < array.size(); j ++) {\n\t\t\tif(array.get(j).equals(\"AC\"))\n\t\t\t\ta ++;\n\t\t\telse if(array.get(j).equals(\"RE\"))\n\t\t\t\tr ++;\n\t\t\telse if(array.get(j).equals(\"TLE\"))\n\t\t\t\tt ++;\n\t\t\telse if(array.get(j).equals(\"WA\"))\n\t\t\t\tw ++;\n\t\t}\n\t\tSystem.out.println(\"AC x \" + a);\n\t\tSystem.out.println(\"WA x \" + w);\n\t\tSystem.out.println(\"TLE x \" + t);\n\t\tSystem.out.println(\"RE x \" + r);\n\t\t\n\t\tmyScanner.close();\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tint i, a = 0, w = 0, t = 0, r = 0;\n\t\tScanner myScanner = new Scanner(System.in);\n\t\tList <String> array = new ArrayList<>();\n\t\t\n\t\ti = myScanner.nextInt();\n\t\twhile(i >= 0) {\n\t\t\tarray.add(myScanner.nextLine());\n\t\t\ti --;\n\t\t}\n\t\t\n\t\tCollections.sort(array);\n\t\t\n\t\tfor(int j = 0; j < array.size(); j ++) {\n\t\t\tif(array.get(j).equals(\"AC\"))\n\t\t\t\ta ++;\n\t\t\telse if(array.get(j).equals(\"RE\"))\n\t\t\t\tr ++;\n\t\t\telse if(array.get(j).equals(\"TLE\"))\n\t\t\t\tt ++;\n\t\t\telse if(array.get(j).equals(\"WA\"))\n\t\t\t\tw ++;\n\t\t}\n\t\tSystem.out.println(\"AC x \" + a);\n\t\tSystem.out.println(\"WA x \" + w);\n\t\tSystem.out.println(\"TLE x \" + t);\n\t\tSystem.out.println(\"RE x \" + r);\n\t\t\n\t\tmyScanner.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t\n\t\tint i, a = 0, w = 0, t = 0, r = 0;\n\t\tScanner myScanner = new Scanner(System.in);\n\t\tList <String> array = new ArrayList<>();\n\t\t\n\t\ti = myScanner.nextInt();\n\t\twhile(i >= 0) {\n\t\t\tarray.add(myScanner.nextLine());\n\t\t\ti --;\n\t\t}\n\t\t\n\t\tCollections.sort(array);\n\t\t\n\t\tfor(int j = 0; j < array.size(); j ++) {\n\t\t\tif(array.get(j).equals(\"AC\"))\n\t\t\t\ta ++;\n\t\t\telse if(array.get(j).equals(\"RE\"))\n\t\t\t\tr ++;\n\t\t\telse if(array.get(j).equals(\"TLE\"))\n\t\t\t\tt ++;\n\t\t\telse if(array.get(j).equals(\"WA\"))\n\t\t\t\tw ++;\n\t\t}\n\t\tSystem.out.println(\"AC x \" + a);\n\t\tSystem.out.println(\"WA x \" + w);\n\t\tSystem.out.println(\"TLE x \" + t);\n\t\tSystem.out.println(\"RE x \" + r);\n\t\t\n\t\tmyScanner.close();\n\t}",
"main",
"{\n\t\t\n\t\tint i, a = 0, w = 0, t = 0, r = 0;\n\t\tScanner myScanner = new Scanner(System.in);\n\t\tList <String> array = new ArrayList<>();\n\t\t\n\t\ti = myScanner.nextInt();\n\t\twhile(i >= 0) {\n\t\t\tarray.add(myScanner.nextLine());\n\t\t\ti --;\n\t\t}\n\t\t\n\t\tCollections.sort(array);\n\t\t\n\t\tfor(int j = 0; j < array.size(); j ++) {\n\t\t\tif(array.get(j).equals(\"AC\"))\n\t\t\t\ta ++;\n\t\t\telse if(array.get(j).equals(\"RE\"))\n\t\t\t\tr ++;\n\t\t\telse if(array.get(j).equals(\"TLE\"))\n\t\t\t\tt ++;\n\t\t\telse if(array.get(j).equals(\"WA\"))\n\t\t\t\tw ++;\n\t\t}\n\t\tSystem.out.println(\"AC x \" + a);\n\t\tSystem.out.println(\"WA x \" + w);\n\t\tSystem.out.println(\"TLE x \" + t);\n\t\tSystem.out.println(\"RE x \" + r);\n\t\t\n\t\tmyScanner.close();\n\t}",
"int i",
"i",
"a = 0",
"a",
"0",
"w = 0",
"w",
"0",
"t = 0",
"t",
"0",
"r = 0;",
"r",
"0",
"Scanner myScanner = new Scanner(System.in);",
"myScanner",
"new Scanner(System.in)",
"List <String> array = new ArrayList<>();",
"array",
"new ArrayList<>()",
"i = myScanner.nextInt()",
"i",
"myScanner.nextInt()",
"myScanner.nextInt",
"myScanner",
"while(i >= 0) {\n\t\t\tarray.add(myScanner.nextLine());\n\t\t\ti --;\n\t\t}",
"i >= 0",
"i",
"0",
"{\n\t\t\tarray.add(myScanner.nextLine());\n\t\t\ti --;\n\t\t}",
"array.add(myScanner.nextLine())",
"array.add",
"array",
"myScanner.nextLine()",
"myScanner.nextLine",
"myScanner",
"i --",
"i",
"Collections.sort(array)",
"Collections.sort",
"Collections",
"array",
"for(int j = 0; j < array.size(); j ++) {\n\t\t\tif(array.get(j).equals(\"AC\"))\n\t\t\t\ta ++;\n\t\t\telse if(array.get(j).equals(\"RE\"))\n\t\t\t\tr ++;\n\t\t\telse if(array.get(j).equals(\"TLE\"))\n\t\t\t\tt ++;\n\t\t\telse if(array.get(j).equals(\"WA\"))\n\t\t\t\tw ++;\n\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < array.size()",
"j",
"array.size()",
"array.size",
"array",
"j ++",
"j ++",
"j",
"{\n\t\t\tif(array.get(j).equals(\"AC\"))\n\t\t\t\ta ++;\n\t\t\telse if(array.get(j).equals(\"RE\"))\n\t\t\t\tr ++;\n\t\t\telse if(array.get(j).equals(\"TLE\"))\n\t\t\t\tt ++;\n\t\t\telse if(array.get(j).equals(\"WA\"))\n\t\t\t\tw ++;\n\t\t}",
"{\n\t\t\tif(array.get(j).equals(\"AC\"))\n\t\t\t\ta ++;\n\t\t\telse if(array.get(j).equals(\"RE\"))\n\t\t\t\tr ++;\n\t\t\telse if(array.get(j).equals(\"TLE\"))\n\t\t\t\tt ++;\n\t\t\telse if(array.get(j).equals(\"WA\"))\n\t\t\t\tw ++;\n\t\t}",
"if(array.get(j).equals(\"AC\"))\n\t\t\t\ta ++;\n\t\t\telse if(array.get(j).equals(\"RE\"))\n\t\t\t\tr ++;\n\t\t\telse if(array.get(j).equals(\"TLE\"))\n\t\t\t\tt ++;\n\t\t\telse if(array.get(j).equals(\"WA\"))\n\t\t\t\tw ++;",
"array.get(j).equals(\"AC\")",
"array.get(j).equals",
"array.get(j)",
"array.get",
"array",
"j",
"\"AC\"",
"a ++",
"a",
"if(array.get(j).equals(\"RE\"))\n\t\t\t\tr ++;\n\t\t\telse if(array.get(j).equals(\"TLE\"))\n\t\t\t\tt ++;\n\t\t\telse if(array.get(j).equals(\"WA\"))\n\t\t\t\tw ++;",
"array.get(j).equals(\"RE\")",
"array.get(j).equals",
"array.get(j)",
"array.get",
"array",
"j",
"\"RE\"",
"r ++",
"r",
"if(array.get(j).equals(\"TLE\"))\n\t\t\t\tt ++;\n\t\t\telse if(array.get(j).equals(\"WA\"))\n\t\t\t\tw ++;",
"array.get(j).equals(\"TLE\")",
"array.get(j).equals",
"array.get(j)",
"array.get",
"array",
"j",
"\"TLE\"",
"t ++",
"t",
"if(array.get(j).equals(\"WA\"))\n\t\t\t\tw ++;",
"array.get(j).equals(\"WA\")",
"array.get(j).equals",
"array.get(j)",
"array.get",
"array",
"j",
"\"WA\"",
"w ++",
"w",
"System.out.println(\"AC x \" + a)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + a",
"\"AC x \"",
"a",
"System.out.println(\"WA x \" + w)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + w",
"\"WA x \"",
"w",
"System.out.println(\"TLE x \" + t)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + t",
"\"TLE x \"",
"t",
"System.out.println(\"RE x \" + r)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + r",
"\"RE x \"",
"r",
"myScanner.close()",
"myScanner.close",
"myScanner",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tint i, a = 0, w = 0, t = 0, r = 0;\n\t\tScanner myScanner = new Scanner(System.in);\n\t\tList <String> array = new ArrayList<>();\n\t\t\n\t\ti = myScanner.nextInt();\n\t\twhile(i >= 0) {\n\t\t\tarray.add(myScanner.nextLine());\n\t\t\ti --;\n\t\t}\n\t\t\n\t\tCollections.sort(array);\n\t\t\n\t\tfor(int j = 0; j < array.size(); j ++) {\n\t\t\tif(array.get(j).equals(\"AC\"))\n\t\t\t\ta ++;\n\t\t\telse if(array.get(j).equals(\"RE\"))\n\t\t\t\tr ++;\n\t\t\telse if(array.get(j).equals(\"TLE\"))\n\t\t\t\tt ++;\n\t\t\telse if(array.get(j).equals(\"WA\"))\n\t\t\t\tw ++;\n\t\t}\n\t\tSystem.out.println(\"AC x \" + a);\n\t\tSystem.out.println(\"WA x \" + w);\n\t\tSystem.out.println(\"TLE x \" + t);\n\t\tSystem.out.println(\"RE x \" + r);\n\t\t\n\t\tmyScanner.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tint i, a = 0, w = 0, t = 0, r = 0;\n\t\tScanner myScanner = new Scanner(System.in);\n\t\tList <String> array = new ArrayList<>();\n\t\t\n\t\ti = myScanner.nextInt();\n\t\twhile(i >= 0) {\n\t\t\tarray.add(myScanner.nextLine());\n\t\t\ti --;\n\t\t}\n\t\t\n\t\tCollections.sort(array);\n\t\t\n\t\tfor(int j = 0; j < array.size(); j ++) {\n\t\t\tif(array.get(j).equals(\"AC\"))\n\t\t\t\ta ++;\n\t\t\telse if(array.get(j).equals(\"RE\"))\n\t\t\t\tr ++;\n\t\t\telse if(array.get(j).equals(\"TLE\"))\n\t\t\t\tt ++;\n\t\t\telse if(array.get(j).equals(\"WA\"))\n\t\t\t\tw ++;\n\t\t}\n\t\tSystem.out.println(\"AC x \" + a);\n\t\tSystem.out.println(\"WA x \" + w);\n\t\tSystem.out.println(\"TLE x \" + t);\n\t\tSystem.out.println(\"RE x \" + r);\n\t\t\n\t\tmyScanner.close();\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
int i, a = 0, w = 0, t = 0, r = 0;
Scanner myScanner = new Scanner(System.in);
List <String> array = new ArrayList<>();
i = myScanner.nextInt();
while(i >= 0) {
array.add(myScanner.nextLine());
i --;
}
Collections.sort(array);
for(int j = 0; j < array.size(); j ++) {
if(array.get(j).equals("AC"))
a ++;
else if(array.get(j).equals("RE"))
r ++;
else if(array.get(j).equals("TLE"))
t ++;
else if(array.get(j).equals("WA"))
w ++;
}
System.out.println("AC x " + a);
System.out.println("WA x " + w);
System.out.println("TLE x " + t);
System.out.println("RE x " + r);
myScanner.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
40,
13,
14,
4,
18,
13,
17,
30,
40,
13,
14,
4,
18,
13,
17,
30,
40,
13,
30,
40,
13,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
13,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
13,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
13,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
127,
5
],
[
127,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
47,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
53,
58
],
[
58,
59
],
[
59,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
61,
66
],
[
66,
67
],
[
67,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
69,
74
],
[
74,
75
],
[
75,
76
],
[
69,
77
],
[
77,
78
],
[
78,
79
],
[
8,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
8,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
8,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
8,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
6,
124
],
[
124,
125
],
[
0,
126
],
[
126,
127
],
[
126,
128
]
]
| [
"import java.util.*;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int count = Integer.parseInt(line);\n \n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n for(int i=0;i<count;i++){\n String judge = sc.nextLine();\n if(judge.equals(\"AC\")){\n ++ac;\n } else if(judge.equals(\"WA\")){\n ++wa;\n } else if(judge.equals(\"TLE\")){\n ++tle;\n } else {\n ++re;\n }\n }\n \n System.out.println(\"AC x \"+String.valueOf(ac));\n System.out.println(\"WA x \"+String.valueOf(wa));\n System.out.println(\"TLE x \"+String.valueOf(tle));\n System.out.println(\"RE x \"+String.valueOf(re));\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int count = Integer.parseInt(line);\n \n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n for(int i=0;i<count;i++){\n String judge = sc.nextLine();\n if(judge.equals(\"AC\")){\n ++ac;\n } else if(judge.equals(\"WA\")){\n ++wa;\n } else if(judge.equals(\"TLE\")){\n ++tle;\n } else {\n ++re;\n }\n }\n \n System.out.println(\"AC x \"+String.valueOf(ac));\n System.out.println(\"WA x \"+String.valueOf(wa));\n System.out.println(\"TLE x \"+String.valueOf(tle));\n System.out.println(\"RE x \"+String.valueOf(re));\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int count = Integer.parseInt(line);\n \n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n for(int i=0;i<count;i++){\n String judge = sc.nextLine();\n if(judge.equals(\"AC\")){\n ++ac;\n } else if(judge.equals(\"WA\")){\n ++wa;\n } else if(judge.equals(\"TLE\")){\n ++tle;\n } else {\n ++re;\n }\n }\n \n System.out.println(\"AC x \"+String.valueOf(ac));\n System.out.println(\"WA x \"+String.valueOf(wa));\n System.out.println(\"TLE x \"+String.valueOf(tle));\n System.out.println(\"RE x \"+String.valueOf(re));\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int count = Integer.parseInt(line);\n \n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n for(int i=0;i<count;i++){\n String judge = sc.nextLine();\n if(judge.equals(\"AC\")){\n ++ac;\n } else if(judge.equals(\"WA\")){\n ++wa;\n } else if(judge.equals(\"TLE\")){\n ++tle;\n } else {\n ++re;\n }\n }\n \n System.out.println(\"AC x \"+String.valueOf(ac));\n System.out.println(\"WA x \"+String.valueOf(wa));\n System.out.println(\"TLE x \"+String.valueOf(tle));\n System.out.println(\"RE x \"+String.valueOf(re));\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String line = sc.nextLine();",
"line",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int count = Integer.parseInt(line);",
"count",
"Integer.parseInt(line)",
"Integer.parseInt",
"Integer",
"line",
"int ac = 0;",
"ac",
"0",
"int wa = 0;",
"wa",
"0",
"int tle = 0;",
"tle",
"0",
"int re = 0;",
"re",
"0",
"for(int i=0;i<count;i++){\n String judge = sc.nextLine();\n if(judge.equals(\"AC\")){\n ++ac;\n } else if(judge.equals(\"WA\")){\n ++wa;\n } else if(judge.equals(\"TLE\")){\n ++tle;\n } else {\n ++re;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<count",
"i",
"count",
"i++",
"i++",
"i",
"{\n String judge = sc.nextLine();\n if(judge.equals(\"AC\")){\n ++ac;\n } else if(judge.equals(\"WA\")){\n ++wa;\n } else if(judge.equals(\"TLE\")){\n ++tle;\n } else {\n ++re;\n }\n }",
"{\n String judge = sc.nextLine();\n if(judge.equals(\"AC\")){\n ++ac;\n } else if(judge.equals(\"WA\")){\n ++wa;\n } else if(judge.equals(\"TLE\")){\n ++tle;\n } else {\n ++re;\n }\n }",
"String judge = sc.nextLine();",
"judge",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if(judge.equals(\"AC\")){\n ++ac;\n } else if(judge.equals(\"WA\")){\n ++wa;\n } else if(judge.equals(\"TLE\")){\n ++tle;\n } else {\n ++re;\n }",
"judge.equals(\"AC\")",
"judge.equals",
"judge",
"\"AC\"",
"{\n ++ac;\n }",
"++ac",
"ac",
"if(judge.equals(\"WA\")){\n ++wa;\n } else if(judge.equals(\"TLE\")){\n ++tle;\n } else {\n ++re;\n }",
"judge.equals(\"WA\")",
"judge.equals",
"judge",
"\"WA\"",
"{\n ++wa;\n }",
"++wa",
"wa",
"if(judge.equals(\"TLE\")){\n ++tle;\n } else {\n ++re;\n }",
"judge.equals(\"TLE\")",
"judge.equals",
"judge",
"\"TLE\"",
"{\n ++tle;\n }",
"++tle",
"tle",
"{\n ++re;\n }",
"++re",
"re",
"System.out.println(\"AC x \"+String.valueOf(ac))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \"+String.valueOf(ac)",
"\"AC x \"",
"String.valueOf(ac)",
"String.valueOf",
"String",
"ac",
"System.out.println(\"WA x \"+String.valueOf(wa))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \"+String.valueOf(wa)",
"\"WA x \"",
"String.valueOf(wa)",
"String.valueOf",
"String",
"wa",
"System.out.println(\"TLE x \"+String.valueOf(tle))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \"+String.valueOf(tle)",
"\"TLE x \"",
"String.valueOf(tle)",
"String.valueOf",
"String",
"tle",
"System.out.println(\"RE x \"+String.valueOf(re))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \"+String.valueOf(re)",
"\"RE x \"",
"String.valueOf(re)",
"String.valueOf",
"String",
"re",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int count = Integer.parseInt(line);\n \n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n for(int i=0;i<count;i++){\n String judge = sc.nextLine();\n if(judge.equals(\"AC\")){\n ++ac;\n } else if(judge.equals(\"WA\")){\n ++wa;\n } else if(judge.equals(\"TLE\")){\n ++tle;\n } else {\n ++re;\n }\n }\n \n System.out.println(\"AC x \"+String.valueOf(ac));\n System.out.println(\"WA x \"+String.valueOf(wa));\n System.out.println(\"TLE x \"+String.valueOf(tle));\n System.out.println(\"RE x \"+String.valueOf(re));\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int count = Integer.parseInt(line);\n \n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n for(int i=0;i<count;i++){\n String judge = sc.nextLine();\n if(judge.equals(\"AC\")){\n ++ac;\n } else if(judge.equals(\"WA\")){\n ++wa;\n } else if(judge.equals(\"TLE\")){\n ++tle;\n } else {\n ++re;\n }\n }\n \n System.out.println(\"AC x \"+String.valueOf(ac));\n System.out.println(\"WA x \"+String.valueOf(wa));\n System.out.println(\"TLE x \"+String.valueOf(tle));\n System.out.println(\"RE x \"+String.valueOf(re));\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String line = sc.nextLine();
int count = Integer.parseInt(line);
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
for(int i=0;i<count;i++){
String judge = sc.nextLine();
if(judge.equals("AC")){
++ac;
} else if(judge.equals("WA")){
++wa;
} else if(judge.equals("TLE")){
++tle;
} else {
++re;
}
}
System.out.println("AC x "+String.valueOf(ac));
System.out.println("WA x "+String.valueOf(wa));
System.out.println("TLE x "+String.valueOf(tle));
System.out.println("RE x "+String.valueOf(re));
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
106,
5
],
[
106,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
29,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
40,
45
],
[
45,
46
],
[
40,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
52,
53
],
[
47,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
54,
59
],
[
59,
60
],
[
54,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
61,
66
],
[
66,
67
],
[
8,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
8,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
8,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
89,
91
],
[
8,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
97,
98
],
[
97,
99
],
[
8,
100
],
[
100,
101
],
[
101,
102
],
[
6,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
]
| [
"import java.util.Scanner;\npublic class Main{\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int ac = 0,wa=0,tle=0,re=0;\n while(n-->0){\n String cases = in.next();\n if(cases.equals(\"AC\"))\n ac++;\n else if(cases.equals(\"WA\"))\n wa++;\n else if(cases.equals(\"TLE\"))\n tle++;\n else if(cases.equals(\"RE\"))\n re++;\n }\n\n System.out.println(\"AC x \"+ac);\n System.out.println(\"WA x \"+wa);\n System.out.println(\"TLE x \"+tle);\n System.out.println(\"RE x \"+re);\n in.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int ac = 0,wa=0,tle=0,re=0;\n while(n-->0){\n String cases = in.next();\n if(cases.equals(\"AC\"))\n ac++;\n else if(cases.equals(\"WA\"))\n wa++;\n else if(cases.equals(\"TLE\"))\n tle++;\n else if(cases.equals(\"RE\"))\n re++;\n }\n\n System.out.println(\"AC x \"+ac);\n System.out.println(\"WA x \"+wa);\n System.out.println(\"TLE x \"+tle);\n System.out.println(\"RE x \"+re);\n in.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int ac = 0,wa=0,tle=0,re=0;\n while(n-->0){\n String cases = in.next();\n if(cases.equals(\"AC\"))\n ac++;\n else if(cases.equals(\"WA\"))\n wa++;\n else if(cases.equals(\"TLE\"))\n tle++;\n else if(cases.equals(\"RE\"))\n re++;\n }\n\n System.out.println(\"AC x \"+ac);\n System.out.println(\"WA x \"+wa);\n System.out.println(\"TLE x \"+tle);\n System.out.println(\"RE x \"+re);\n in.close();\n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int ac = 0,wa=0,tle=0,re=0;\n while(n-->0){\n String cases = in.next();\n if(cases.equals(\"AC\"))\n ac++;\n else if(cases.equals(\"WA\"))\n wa++;\n else if(cases.equals(\"TLE\"))\n tle++;\n else if(cases.equals(\"RE\"))\n re++;\n }\n\n System.out.println(\"AC x \"+ac);\n System.out.println(\"WA x \"+wa);\n System.out.println(\"TLE x \"+tle);\n System.out.println(\"RE x \"+re);\n in.close();\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"int ac = 0",
"ac",
"0",
"wa=0",
"wa",
"0",
"tle=0",
"tle",
"0",
"re=0;",
"re",
"0",
"while(n-->0){\n String cases = in.next();\n if(cases.equals(\"AC\"))\n ac++;\n else if(cases.equals(\"WA\"))\n wa++;\n else if(cases.equals(\"TLE\"))\n tle++;\n else if(cases.equals(\"RE\"))\n re++;\n }",
"n-->0",
"n--",
"n",
"0",
"{\n String cases = in.next();\n if(cases.equals(\"AC\"))\n ac++;\n else if(cases.equals(\"WA\"))\n wa++;\n else if(cases.equals(\"TLE\"))\n tle++;\n else if(cases.equals(\"RE\"))\n re++;\n }",
"String cases = in.next();",
"cases",
"in.next()",
"in.next",
"in",
"if(cases.equals(\"AC\"))\n ac++;\n else if(cases.equals(\"WA\"))\n wa++;\n else if(cases.equals(\"TLE\"))\n tle++;\n else if(cases.equals(\"RE\"))\n re++;",
"cases.equals(\"AC\")",
"cases.equals",
"cases",
"\"AC\"",
"ac++",
"ac",
"if(cases.equals(\"WA\"))\n wa++;\n else if(cases.equals(\"TLE\"))\n tle++;\n else if(cases.equals(\"RE\"))\n re++;",
"cases.equals(\"WA\")",
"cases.equals",
"cases",
"\"WA\"",
"wa++",
"wa",
"if(cases.equals(\"TLE\"))\n tle++;\n else if(cases.equals(\"RE\"))\n re++;",
"cases.equals(\"TLE\")",
"cases.equals",
"cases",
"\"TLE\"",
"tle++",
"tle",
"if(cases.equals(\"RE\"))\n re++;",
"cases.equals(\"RE\")",
"cases.equals",
"cases",
"\"RE\"",
"re++",
"re",
"System.out.println(\"AC x \"+ac)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \"+ac",
"\"AC x \"",
"ac",
"System.out.println(\"WA x \"+wa)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \"+wa",
"\"WA x \"",
"wa",
"System.out.println(\"TLE x \"+tle)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \"+tle",
"\"TLE x \"",
"tle",
"System.out.println(\"RE x \"+re)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \"+re",
"\"RE x \"",
"re",
"in.close()",
"in.close",
"in",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int ac = 0,wa=0,tle=0,re=0;\n while(n-->0){\n String cases = in.next();\n if(cases.equals(\"AC\"))\n ac++;\n else if(cases.equals(\"WA\"))\n wa++;\n else if(cases.equals(\"TLE\"))\n tle++;\n else if(cases.equals(\"RE\"))\n re++;\n }\n\n System.out.println(\"AC x \"+ac);\n System.out.println(\"WA x \"+wa);\n System.out.println(\"TLE x \"+tle);\n System.out.println(\"RE x \"+re);\n in.close();\n }\n}",
"public class Main{\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int ac = 0,wa=0,tle=0,re=0;\n while(n-->0){\n String cases = in.next();\n if(cases.equals(\"AC\"))\n ac++;\n else if(cases.equals(\"WA\"))\n wa++;\n else if(cases.equals(\"TLE\"))\n tle++;\n else if(cases.equals(\"RE\"))\n re++;\n }\n\n System.out.println(\"AC x \"+ac);\n System.out.println(\"WA x \"+wa);\n System.out.println(\"TLE x \"+tle);\n System.out.println(\"RE x \"+re);\n in.close();\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
int ac = 0,wa=0,tle=0,re=0;
while(n-->0){
String cases = in.next();
if(cases.equals("AC"))
ac++;
else if(cases.equals("WA"))
wa++;
else if(cases.equals("TLE"))
tle++;
else if(cases.equals("RE"))
re++;
}
System.out.println("AC x "+ac);
System.out.println("WA x "+wa);
System.out.println("TLE x "+tle);
System.out.println("RE x "+re);
in.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
35,
18,
13,
13,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
1,
3,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
127,
5
],
[
127,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
42,
43
],
[
43,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
45,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
45,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
45,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
45,
81
],
[
81,
82
],
[
82,
83
],
[
8,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
91,
93
],
[
8,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
101,
103
],
[
8,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
111,
113
],
[
8,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
121,
123
],
[
6,
124
],
[
124,
125
],
[
0,
126
],
[
126,
127
],
[
126,
128
]
]
| [
"import java.util.Scanner;\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tString[] name = new String[N];\n\t\tint[] counter = new int[4];\n\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tname[i] = sc.next();\n\n\t\t\tswitch(name[i]) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tcounter[0]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tcounter[1]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tcounter[2]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tcounter[3]++;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + counter[0]);\n\t\tSystem.out.println(\"WA x \"+ counter[1]);\n\t\tSystem.out.println(\"TLE x \"+counter[2]);\n\t\tSystem.out.println(\"RE x \" + counter[3]);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tString[] name = new String[N];\n\t\tint[] counter = new int[4];\n\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tname[i] = sc.next();\n\n\t\t\tswitch(name[i]) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tcounter[0]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tcounter[1]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tcounter[2]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tcounter[3]++;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + counter[0]);\n\t\tSystem.out.println(\"WA x \"+ counter[1]);\n\t\tSystem.out.println(\"TLE x \"+counter[2]);\n\t\tSystem.out.println(\"RE x \" + counter[3]);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tString[] name = new String[N];\n\t\tint[] counter = new int[4];\n\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tname[i] = sc.next();\n\n\t\t\tswitch(name[i]) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tcounter[0]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tcounter[1]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tcounter[2]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tcounter[3]++;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + counter[0]);\n\t\tSystem.out.println(\"WA x \"+ counter[1]);\n\t\tSystem.out.println(\"TLE x \"+counter[2]);\n\t\tSystem.out.println(\"RE x \" + counter[3]);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tString[] name = new String[N];\n\t\tint[] counter = new int[4];\n\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tname[i] = sc.next();\n\n\t\t\tswitch(name[i]) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tcounter[0]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tcounter[1]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tcounter[2]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tcounter[3]++;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + counter[0]);\n\t\tSystem.out.println(\"WA x \"+ counter[1]);\n\t\tSystem.out.println(\"TLE x \"+counter[2]);\n\t\tSystem.out.println(\"RE x \" + counter[3]);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String[] name = new String[N];",
"name",
"new String[N]",
"N",
"int[] counter = new int[4];",
"counter",
"new int[4]",
"4",
"for(int i = 0; i < N; i++) {\n\t\t\tname[i] = sc.next();\n\n\t\t\tswitch(name[i]) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tcounter[0]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tcounter[1]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tcounter[2]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tcounter[3]++;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tname[i] = sc.next();\n\n\t\t\tswitch(name[i]) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tcounter[0]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tcounter[1]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tcounter[2]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tcounter[3]++;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tname[i] = sc.next();\n\n\t\t\tswitch(name[i]) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tcounter[0]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tcounter[1]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tcounter[2]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tcounter[3]++;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"name[i] = sc.next()",
"name[i]",
"name",
"i",
"sc.next()",
"sc.next",
"sc",
"switch(name[i]) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tcounter[0]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tcounter[1]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tcounter[2]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tcounter[3]++;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}",
"name[i]",
"name",
"i",
"case \"AC\":",
"\"AC\"",
"case \"AC\":",
"counter[0]++",
"counter[0]",
"counter",
"0",
"break;",
"case \"WA\":",
"\"WA\"",
"case \"WA\":",
"counter[1]++",
"counter[1]",
"counter",
"1",
"break;",
"case \"TLE\":",
"\"TLE\"",
"case \"TLE\":",
"counter[2]++",
"counter[2]",
"counter",
"2",
"break;",
"case \"RE\":",
"\"RE\"",
"case \"RE\":",
"counter[3]++",
"counter[3]",
"counter",
"3",
"break;",
"default:",
"default:",
"break;",
"System.out.println(\"AC x \" + counter[0])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + counter[0]",
"\"AC x \"",
"counter[0]",
"counter",
"0",
"System.out.println(\"WA x \"+ counter[1])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \"+ counter[1]",
"\"WA x \"",
"counter[1]",
"counter",
"1",
"System.out.println(\"TLE x \"+counter[2])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \"+counter[2]",
"\"TLE x \"",
"counter[2]",
"counter",
"2",
"System.out.println(\"RE x \" + counter[3])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + counter[3]",
"\"RE x \"",
"counter[3]",
"counter",
"3",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tString[] name = new String[N];\n\t\tint[] counter = new int[4];\n\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tname[i] = sc.next();\n\n\t\t\tswitch(name[i]) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tcounter[0]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tcounter[1]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tcounter[2]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tcounter[3]++;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + counter[0]);\n\t\tSystem.out.println(\"WA x \"+ counter[1]);\n\t\tSystem.out.println(\"TLE x \"+counter[2]);\n\t\tSystem.out.println(\"RE x \" + counter[3]);\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tString[] name = new String[N];\n\t\tint[] counter = new int[4];\n\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tname[i] = sc.next();\n\n\t\t\tswitch(name[i]) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tcounter[0]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tcounter[1]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tcounter[2]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tcounter[3]++;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + counter[0]);\n\t\tSystem.out.println(\"WA x \"+ counter[1]);\n\t\tSystem.out.println(\"TLE x \"+counter[2]);\n\t\tSystem.out.println(\"RE x \" + counter[3]);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
String[] name = new String[N];
int[] counter = new int[4];
for(int i = 0; i < N; i++) {
name[i] = sc.next();
switch(name[i]) {
case "AC":
counter[0]++;
break;
case "WA":
counter[1]++;
break;
case "TLE":
counter[2]++;
break;
case "RE":
counter[3]++;
break;
default:
break;
}
}
System.out.println("AC x " + counter[0]);
System.out.println("WA x "+ counter[1]);
System.out.println("TLE x "+counter[2]);
System.out.println("RE x " + counter[3]);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
4,
18,
13,
13,
17,
30,
40,
13,
14,
4,
18,
4,
18,
13,
13,
17,
30,
40,
13,
14,
4,
18,
4,
18,
13,
13,
17,
30,
40,
13,
30,
40,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
156,
26
],
[
156,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
29,
38
],
[
38,
39
],
[
38,
40
],
[
29,
41
],
[
41,
42
],
[
41,
43
],
[
29,
44
],
[
44,
45
],
[
44,
46
],
[
29,
47
],
[
47,
48
],
[
47,
49
],
[
29,
50
],
[
50,
51
],
[
50,
52
],
[
29,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
53,
64
],
[
65,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
70,
71
],
[
29,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
72,
80
],
[
80,
81
],
[
81,
82
],
[
72,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
86,
92
],
[
85,
93
],
[
93,
94
],
[
94,
95
],
[
85,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
97,
103
],
[
96,
104
],
[
104,
105
],
[
105,
106
],
[
96,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
108,
114
],
[
107,
115
],
[
115,
116
],
[
116,
117
],
[
107,
118
],
[
118,
119
],
[
119,
120
],
[
29,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
126,
127
],
[
126,
128
],
[
29,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
134,
135
],
[
134,
136
],
[
29,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
137,
142
],
[
142,
143
],
[
142,
144
],
[
29,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
145,
150
],
[
150,
151
],
[
150,
152
],
[
27,
153
],
[
153,
154
],
[
0,
155
],
[
155,
156
],
[
155,
157
]
]
| [
"import java.io.BufferedReader;\nimport java.io.*;\nimport java.util.*;\nimport java.util.ArrayList;\nimport java.util.Iterator;\nimport java.util.List;\nimport java.util.Collections;\nimport java.util.Arrays;\n\npublic class Main {\n\tpublic static void main(final String[] args){\n \n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n List<String> list = new ArrayList<>();\n int count1 = 0;\n int count2 = 0;\n int count3 = 0;\n int count4 = 0;\n\n for(int i = 0; i < n ; i++){\n list.add(sc.next());\n }\n\n for(int i = 0; i < n ; i++){\n if(list.get(i).equals(\"AC\")){\n count1++;\n }else if(list.get(i).equals(\"WA\")){\n count2++;\n }else if(list.get(i).equals(\"TLE\")){\n count3++;\n }else{\n count4++;\n }\n }\n\n System.out.println(\"AC x \"+ count1);\n System.out.println(\"WA x \"+ count2);\n System.out.println(\"TLE x \"+ count3);\n System.out.println(\"RE x \"+ count4);\n\n \n\n \n\n\n\n\n \n\n\n\n\n\n \n \n\n\n \n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Iterator;",
"Iterator",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"public class Main {\n\tpublic static void main(final String[] args){\n \n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n List<String> list = new ArrayList<>();\n int count1 = 0;\n int count2 = 0;\n int count3 = 0;\n int count4 = 0;\n\n for(int i = 0; i < n ; i++){\n list.add(sc.next());\n }\n\n for(int i = 0; i < n ; i++){\n if(list.get(i).equals(\"AC\")){\n count1++;\n }else if(list.get(i).equals(\"WA\")){\n count2++;\n }else if(list.get(i).equals(\"TLE\")){\n count3++;\n }else{\n count4++;\n }\n }\n\n System.out.println(\"AC x \"+ count1);\n System.out.println(\"WA x \"+ count2);\n System.out.println(\"TLE x \"+ count3);\n System.out.println(\"RE x \"+ count4);\n\n \n\n \n\n\n\n\n \n\n\n\n\n\n \n \n\n\n \n\t}\n}",
"Main",
"public static void main(final String[] args){\n \n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n List<String> list = new ArrayList<>();\n int count1 = 0;\n int count2 = 0;\n int count3 = 0;\n int count4 = 0;\n\n for(int i = 0; i < n ; i++){\n list.add(sc.next());\n }\n\n for(int i = 0; i < n ; i++){\n if(list.get(i).equals(\"AC\")){\n count1++;\n }else if(list.get(i).equals(\"WA\")){\n count2++;\n }else if(list.get(i).equals(\"TLE\")){\n count3++;\n }else{\n count4++;\n }\n }\n\n System.out.println(\"AC x \"+ count1);\n System.out.println(\"WA x \"+ count2);\n System.out.println(\"TLE x \"+ count3);\n System.out.println(\"RE x \"+ count4);\n\n \n\n \n\n\n\n\n \n\n\n\n\n\n \n \n\n\n \n\t}",
"main",
"{\n \n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n List<String> list = new ArrayList<>();\n int count1 = 0;\n int count2 = 0;\n int count3 = 0;\n int count4 = 0;\n\n for(int i = 0; i < n ; i++){\n list.add(sc.next());\n }\n\n for(int i = 0; i < n ; i++){\n if(list.get(i).equals(\"AC\")){\n count1++;\n }else if(list.get(i).equals(\"WA\")){\n count2++;\n }else if(list.get(i).equals(\"TLE\")){\n count3++;\n }else{\n count4++;\n }\n }\n\n System.out.println(\"AC x \"+ count1);\n System.out.println(\"WA x \"+ count2);\n System.out.println(\"TLE x \"+ count3);\n System.out.println(\"RE x \"+ count4);\n\n \n\n \n\n\n\n\n \n\n\n\n\n\n \n \n\n\n \n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"List<String> list = new ArrayList<>();",
"list",
"new ArrayList<>()",
"int count1 = 0;",
"count1",
"0",
"int count2 = 0;",
"count2",
"0",
"int count3 = 0;",
"count3",
"0",
"int count4 = 0;",
"count4",
"0",
"for(int i = 0; i < n ; i++){\n list.add(sc.next());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n list.add(sc.next());\n }",
"{\n list.add(sc.next());\n }",
"list.add(sc.next())",
"list.add",
"list",
"sc.next()",
"sc.next",
"sc",
"for(int i = 0; i < n ; i++){\n if(list.get(i).equals(\"AC\")){\n count1++;\n }else if(list.get(i).equals(\"WA\")){\n count2++;\n }else if(list.get(i).equals(\"TLE\")){\n count3++;\n }else{\n count4++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(list.get(i).equals(\"AC\")){\n count1++;\n }else if(list.get(i).equals(\"WA\")){\n count2++;\n }else if(list.get(i).equals(\"TLE\")){\n count3++;\n }else{\n count4++;\n }\n }",
"{\n if(list.get(i).equals(\"AC\")){\n count1++;\n }else if(list.get(i).equals(\"WA\")){\n count2++;\n }else if(list.get(i).equals(\"TLE\")){\n count3++;\n }else{\n count4++;\n }\n }",
"if(list.get(i).equals(\"AC\")){\n count1++;\n }else if(list.get(i).equals(\"WA\")){\n count2++;\n }else if(list.get(i).equals(\"TLE\")){\n count3++;\n }else{\n count4++;\n }",
"list.get(i).equals(\"AC\")",
"list.get(i).equals",
"list.get(i)",
"list.get",
"list",
"i",
"\"AC\"",
"{\n count1++;\n }",
"count1++",
"count1",
"if(list.get(i).equals(\"WA\")){\n count2++;\n }else if(list.get(i).equals(\"TLE\")){\n count3++;\n }else{\n count4++;\n }",
"list.get(i).equals(\"WA\")",
"list.get(i).equals",
"list.get(i)",
"list.get",
"list",
"i",
"\"WA\"",
"{\n count2++;\n }",
"count2++",
"count2",
"if(list.get(i).equals(\"TLE\")){\n count3++;\n }else{\n count4++;\n }",
"list.get(i).equals(\"TLE\")",
"list.get(i).equals",
"list.get(i)",
"list.get",
"list",
"i",
"\"TLE\"",
"{\n count3++;\n }",
"count3++",
"count3",
"{\n count4++;\n }",
"count4++",
"count4",
"System.out.println(\"AC x \"+ count1)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \"+ count1",
"\"AC x \"",
"count1",
"System.out.println(\"WA x \"+ count2)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \"+ count2",
"\"WA x \"",
"count2",
"System.out.println(\"TLE x \"+ count3)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \"+ count3",
"\"TLE x \"",
"count3",
"System.out.println(\"RE x \"+ count4)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \"+ count4",
"\"RE x \"",
"count4",
"final String[] args",
"args",
"public class Main {\n\tpublic static void main(final String[] args){\n \n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n List<String> list = new ArrayList<>();\n int count1 = 0;\n int count2 = 0;\n int count3 = 0;\n int count4 = 0;\n\n for(int i = 0; i < n ; i++){\n list.add(sc.next());\n }\n\n for(int i = 0; i < n ; i++){\n if(list.get(i).equals(\"AC\")){\n count1++;\n }else if(list.get(i).equals(\"WA\")){\n count2++;\n }else if(list.get(i).equals(\"TLE\")){\n count3++;\n }else{\n count4++;\n }\n }\n\n System.out.println(\"AC x \"+ count1);\n System.out.println(\"WA x \"+ count2);\n System.out.println(\"TLE x \"+ count3);\n System.out.println(\"RE x \"+ count4);\n\n \n\n \n\n\n\n\n \n\n\n\n\n\n \n \n\n\n \n\t}\n}",
"public class Main {\n\tpublic static void main(final String[] args){\n \n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n List<String> list = new ArrayList<>();\n int count1 = 0;\n int count2 = 0;\n int count3 = 0;\n int count4 = 0;\n\n for(int i = 0; i < n ; i++){\n list.add(sc.next());\n }\n\n for(int i = 0; i < n ; i++){\n if(list.get(i).equals(\"AC\")){\n count1++;\n }else if(list.get(i).equals(\"WA\")){\n count2++;\n }else if(list.get(i).equals(\"TLE\")){\n count3++;\n }else{\n count4++;\n }\n }\n\n System.out.println(\"AC x \"+ count1);\n System.out.println(\"WA x \"+ count2);\n System.out.println(\"TLE x \"+ count3);\n System.out.println(\"RE x \"+ count4);\n\n \n\n \n\n\n\n\n \n\n\n\n\n\n \n \n\n\n \n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.*;
import java.util.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Collections;
import java.util.Arrays;
public class Main {
public static void main(final String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
List<String> list = new ArrayList<>();
int count1 = 0;
int count2 = 0;
int count3 = 0;
int count4 = 0;
for(int i = 0; i < n ; i++){
list.add(sc.next());
}
for(int i = 0; i < n ; i++){
if(list.get(i).equals("AC")){
count1++;
}else if(list.get(i).equals("WA")){
count2++;
}else if(list.get(i).equals("TLE")){
count3++;
}else{
count4++;
}
}
System.out.println("AC x "+ count1);
System.out.println("WA x "+ count2);
System.out.println("TLE x "+ count3);
System.out.println("RE x "+ count4);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
20,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
18,
13,
13,
2,
4,
18,
13,
18,
13,
13,
17,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
133,
11
],
[
133,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
16,
25
],
[
25,
26
],
[
25,
27
],
[
16,
29
],
[
29,
30
],
[
29,
31
],
[
16,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
32,
36
],
[
16,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
37,
41
],
[
16,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
42,
46
],
[
16,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
47,
51
],
[
16,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
52,
60
],
[
60,
61
],
[
61,
62
],
[
52,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
70,
71
],
[
64,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
75,
77
],
[
72,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
82,
83
],
[
82,
84
],
[
78,
85
],
[
16,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
16,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
16,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
115,
118
],
[
16,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
12,
130
],
[
130,
131
],
[
0,
132
],
[
132,
133
],
[
132,
134
]
]
| [
"\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[]args) {\n\t\ttry(Scanner scan = new Scanner(System.in)){\n\t\t\t\n\t\t\tint N = scan.nextInt();\n\t\t\tString[] S = new String[N];\n\t\t\tMap<String, Integer> map = new HashMap<String,Integer>();\n\t\t\tmap.put(\"AC\", 0);\n\t\t\tmap.put(\"WA\", 0);\n\t\t\tmap.put(\"TLE\", 0);\n\t\t\tmap.put(\"RE\", 0);\n\t\t\tfor(int i = 0;i<N;i++) {\n\t\t\t\tS[i]= scan.next();\n\t\t\t\tmap.put(S[i], map.get(S[i])+1);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"AC x \"+map.get(\"AC\"));\n\t\t\tSystem.out.println(\"WA x \"+map.get(\"WA\"));\n\t\t\tSystem.out.println(\"TLE x \"+map.get(\"TLE\"));\n\t\t\tSystem.out.println(\"RE x \"+map.get(\"RE\"));\n\n\t\t}\t\n\t}\n}",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.Map;",
"Map",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[]args) {\n\t\ttry(Scanner scan = new Scanner(System.in)){\n\t\t\t\n\t\t\tint N = scan.nextInt();\n\t\t\tString[] S = new String[N];\n\t\t\tMap<String, Integer> map = new HashMap<String,Integer>();\n\t\t\tmap.put(\"AC\", 0);\n\t\t\tmap.put(\"WA\", 0);\n\t\t\tmap.put(\"TLE\", 0);\n\t\t\tmap.put(\"RE\", 0);\n\t\t\tfor(int i = 0;i<N;i++) {\n\t\t\t\tS[i]= scan.next();\n\t\t\t\tmap.put(S[i], map.get(S[i])+1);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"AC x \"+map.get(\"AC\"));\n\t\t\tSystem.out.println(\"WA x \"+map.get(\"WA\"));\n\t\t\tSystem.out.println(\"TLE x \"+map.get(\"TLE\"));\n\t\t\tSystem.out.println(\"RE x \"+map.get(\"RE\"));\n\n\t\t}\t\n\t}\n}",
"Main",
"public static void main(String[]args) {\n\t\ttry(Scanner scan = new Scanner(System.in)){\n\t\t\t\n\t\t\tint N = scan.nextInt();\n\t\t\tString[] S = new String[N];\n\t\t\tMap<String, Integer> map = new HashMap<String,Integer>();\n\t\t\tmap.put(\"AC\", 0);\n\t\t\tmap.put(\"WA\", 0);\n\t\t\tmap.put(\"TLE\", 0);\n\t\t\tmap.put(\"RE\", 0);\n\t\t\tfor(int i = 0;i<N;i++) {\n\t\t\t\tS[i]= scan.next();\n\t\t\t\tmap.put(S[i], map.get(S[i])+1);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"AC x \"+map.get(\"AC\"));\n\t\t\tSystem.out.println(\"WA x \"+map.get(\"WA\"));\n\t\t\tSystem.out.println(\"TLE x \"+map.get(\"TLE\"));\n\t\t\tSystem.out.println(\"RE x \"+map.get(\"RE\"));\n\n\t\t}\t\n\t}",
"main",
"{\n\t\ttry(Scanner scan = new Scanner(System.in)){\n\t\t\t\n\t\t\tint N = scan.nextInt();\n\t\t\tString[] S = new String[N];\n\t\t\tMap<String, Integer> map = new HashMap<String,Integer>();\n\t\t\tmap.put(\"AC\", 0);\n\t\t\tmap.put(\"WA\", 0);\n\t\t\tmap.put(\"TLE\", 0);\n\t\t\tmap.put(\"RE\", 0);\n\t\t\tfor(int i = 0;i<N;i++) {\n\t\t\t\tS[i]= scan.next();\n\t\t\t\tmap.put(S[i], map.get(S[i])+1);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"AC x \"+map.get(\"AC\"));\n\t\t\tSystem.out.println(\"WA x \"+map.get(\"WA\"));\n\t\t\tSystem.out.println(\"TLE x \"+map.get(\"TLE\"));\n\t\t\tSystem.out.println(\"RE x \"+map.get(\"RE\"));\n\n\t\t}\t\n\t}",
"try(Scanner scan = new Scanner(System.in)){\n\t\t\t\n\t\t\tint N = scan.nextInt();\n\t\t\tString[] S = new String[N];\n\t\t\tMap<String, Integer> map = new HashMap<String,Integer>();\n\t\t\tmap.put(\"AC\", 0);\n\t\t\tmap.put(\"WA\", 0);\n\t\t\tmap.put(\"TLE\", 0);\n\t\t\tmap.put(\"RE\", 0);\n\t\t\tfor(int i = 0;i<N;i++) {\n\t\t\t\tS[i]= scan.next();\n\t\t\t\tmap.put(S[i], map.get(S[i])+1);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"AC x \"+map.get(\"AC\"));\n\t\t\tSystem.out.println(\"WA x \"+map.get(\"WA\"));\n\t\t\tSystem.out.println(\"TLE x \"+map.get(\"TLE\"));\n\t\t\tSystem.out.println(\"RE x \"+map.get(\"RE\"));\n\n\t\t}",
"{\n\t\t\t\n\t\t\tint N = scan.nextInt();\n\t\t\tString[] S = new String[N];\n\t\t\tMap<String, Integer> map = new HashMap<String,Integer>();\n\t\t\tmap.put(\"AC\", 0);\n\t\t\tmap.put(\"WA\", 0);\n\t\t\tmap.put(\"TLE\", 0);\n\t\t\tmap.put(\"RE\", 0);\n\t\t\tfor(int i = 0;i<N;i++) {\n\t\t\t\tS[i]= scan.next();\n\t\t\t\tmap.put(S[i], map.get(S[i])+1);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"AC x \"+map.get(\"AC\"));\n\t\t\tSystem.out.println(\"WA x \"+map.get(\"WA\"));\n\t\t\tSystem.out.println(\"TLE x \"+map.get(\"TLE\"));\n\t\t\tSystem.out.println(\"RE x \"+map.get(\"RE\"));\n\n\t\t}",
"Scanner scan = new Scanner(System.in)",
"Scanner scan = new Scanner(System.in)",
"new Scanner(System.in)",
"int N = scan.nextInt();",
"N",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String[] S = new String[N];",
"S",
"new String[N]",
"N",
"Map<String, Integer> map = new HashMap<String,Integer>();",
"map",
"new HashMap<String,Integer>()",
"map.put(\"AC\", 0)",
"map.put",
"map",
"\"AC\"",
"0",
"map.put(\"WA\", 0)",
"map.put",
"map",
"\"WA\"",
"0",
"map.put(\"TLE\", 0)",
"map.put",
"map",
"\"TLE\"",
"0",
"map.put(\"RE\", 0)",
"map.put",
"map",
"\"RE\"",
"0",
"for(int i = 0;i<N;i++) {\n\t\t\t\tS[i]= scan.next();\n\t\t\t\tmap.put(S[i], map.get(S[i])+1);\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\t\tS[i]= scan.next();\n\t\t\t\tmap.put(S[i], map.get(S[i])+1);\n\t\t\t}",
"{\n\t\t\t\tS[i]= scan.next();\n\t\t\t\tmap.put(S[i], map.get(S[i])+1);\n\t\t\t}",
"S[i]= scan.next()",
"S[i]",
"S",
"i",
"scan.next()",
"scan.next",
"scan",
"map.put(S[i], map.get(S[i])+1)",
"map.put",
"map",
"S[i]",
"S",
"i",
"map.get(S[i])+1",
"map.get(S[i])",
"map.get",
"map",
"S[i]",
"S",
"i",
"1",
"System.out.println(\"AC x \"+map.get(\"AC\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \"+map.get(\"AC\")",
"\"AC x \"",
"map.get(\"AC\")",
"map.get",
"map",
"\"AC\"",
"System.out.println(\"WA x \"+map.get(\"WA\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \"+map.get(\"WA\")",
"\"WA x \"",
"map.get(\"WA\")",
"map.get",
"map",
"\"WA\"",
"System.out.println(\"TLE x \"+map.get(\"TLE\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \"+map.get(\"TLE\")",
"\"TLE x \"",
"map.get(\"TLE\")",
"map.get",
"map",
"\"TLE\"",
"System.out.println(\"RE x \"+map.get(\"RE\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \"+map.get(\"RE\")",
"\"RE x \"",
"map.get(\"RE\")",
"map.get",
"map",
"\"RE\"",
"String[]args",
"args",
"public class Main {\n\tpublic static void main(String[]args) {\n\t\ttry(Scanner scan = new Scanner(System.in)){\n\t\t\t\n\t\t\tint N = scan.nextInt();\n\t\t\tString[] S = new String[N];\n\t\t\tMap<String, Integer> map = new HashMap<String,Integer>();\n\t\t\tmap.put(\"AC\", 0);\n\t\t\tmap.put(\"WA\", 0);\n\t\t\tmap.put(\"TLE\", 0);\n\t\t\tmap.put(\"RE\", 0);\n\t\t\tfor(int i = 0;i<N;i++) {\n\t\t\t\tS[i]= scan.next();\n\t\t\t\tmap.put(S[i], map.get(S[i])+1);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"AC x \"+map.get(\"AC\"));\n\t\t\tSystem.out.println(\"WA x \"+map.get(\"WA\"));\n\t\t\tSystem.out.println(\"TLE x \"+map.get(\"TLE\"));\n\t\t\tSystem.out.println(\"RE x \"+map.get(\"RE\"));\n\n\t\t}\t\n\t}\n}",
"public class Main {\n\tpublic static void main(String[]args) {\n\t\ttry(Scanner scan = new Scanner(System.in)){\n\t\t\t\n\t\t\tint N = scan.nextInt();\n\t\t\tString[] S = new String[N];\n\t\t\tMap<String, Integer> map = new HashMap<String,Integer>();\n\t\t\tmap.put(\"AC\", 0);\n\t\t\tmap.put(\"WA\", 0);\n\t\t\tmap.put(\"TLE\", 0);\n\t\t\tmap.put(\"RE\", 0);\n\t\t\tfor(int i = 0;i<N;i++) {\n\t\t\t\tS[i]= scan.next();\n\t\t\t\tmap.put(S[i], map.get(S[i])+1);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"AC x \"+map.get(\"AC\"));\n\t\t\tSystem.out.println(\"WA x \"+map.get(\"WA\"));\n\t\t\tSystem.out.println(\"TLE x \"+map.get(\"TLE\"));\n\t\t\tSystem.out.println(\"RE x \"+map.get(\"RE\"));\n\n\t\t}\t\n\t}\n}",
"Main"
]
|
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class Main {
public static void main(String[]args) {
try(Scanner scan = new Scanner(System.in)){
int N = scan.nextInt();
String[] S = new String[N];
Map<String, Integer> map = new HashMap<String,Integer>();
map.put("AC", 0);
map.put("WA", 0);
map.put("TLE", 0);
map.put("RE", 0);
for(int i = 0;i<N;i++) {
S[i]= scan.next();
map.put(S[i], map.get(S[i])+1);
}
System.out.println("AC x "+map.get("AC"));
System.out.println("WA x "+map.get("WA"));
System.out.println("TLE x "+map.get("TLE"));
System.out.println("RE x "+map.get("RE"));
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
29,
30,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
20,
0,
13,
4,
18,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
14,
2,
4,
18,
13,
17,
17,
30,
40,
13,
14,
2,
4,
18,
13,
17,
17,
30,
40,
13,
14,
2,
4,
18,
13,
17,
17,
30,
40,
13,
14,
2,
4,
18,
13,
17,
17,
30,
40,
13,
30,
9,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
146,
11
],
[
146,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
15,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
23,
25
],
[
20,
26
],
[
26,
27
],
[
26,
28
],
[
20,
29
],
[
29,
30
],
[
29,
31
],
[
20,
32
],
[
32,
33
],
[
32,
34
],
[
20,
35
],
[
35,
36
],
[
35,
37
],
[
20,
38
],
[
38,
39
],
[
38,
40
],
[
20,
41
],
[
41,
42
],
[
41,
43
],
[
20,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
20,
49
],
[
49,
50
],
[
20,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
51,
59
],
[
59,
60
],
[
60,
61
],
[
51,
62
],
[
63,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
63,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
70,
75
],
[
69,
76
],
[
76,
77
],
[
77,
78
],
[
69,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
80,
85
],
[
79,
86
],
[
86,
87
],
[
87,
88
],
[
79,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
90,
95
],
[
89,
96
],
[
96,
97
],
[
97,
98
],
[
89,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
100,
105
],
[
99,
106
],
[
106,
107
],
[
107,
108
],
[
99,
109
],
[
109,
110
],
[
20,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
116,
117
],
[
116,
118
],
[
20,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
124,
125
],
[
124,
126
],
[
20,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
132,
133
],
[
132,
134
],
[
20,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
135,
140
],
[
140,
141
],
[
140,
142
],
[
12,
143
],
[
143,
144
],
[
0,
145
],
[
145,
146
],
[
145,
147
]
]
| [
"import java.util.*;\nimport java.util.Scanner;\nimport java.lang.*;\n\npublic class Main\n{\n public static void main(String args[])\n {\n try\n {\n int n,rem=0,res=0,a=0,r=0,w=0,t=0;\n Scanner s=new Scanner(System.in);\n n=s.nextInt();\n String str; \n for(int i=0;i<n;i++) \n {\n str=s.next();\n if(str.charAt(0)=='A') \n {\n a++;\n }\n else if(str.charAt(0)=='W') \n {\n w++;\n }\n else if(str.charAt(0)=='T') \n {\n t++;\n }\n else if(str.charAt(0)=='R') \n {\n r++;\n }\n else\n {\n continue;\n }\n }\n \n System.out.println(\"AC x \"+a);\n System.out.println(\"WA x \"+w);\n\t System.out.println(\"TLE x \"+t);\n\t System.out.println(\"RE x \"+r);\n\n\n \n \n \n \n \n \n // System.out.println(res);\n }\n catch(Exception e)\n {\n return ;\n }\n }\n}\n \n \n ",
"import java.util.*;",
"util.*",
"java",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.lang.*;",
"lang.*",
"java",
"public class Main\n{\n public static void main(String args[])\n {\n try\n {\n int n,rem=0,res=0,a=0,r=0,w=0,t=0;\n Scanner s=new Scanner(System.in);\n n=s.nextInt();\n String str; \n for(int i=0;i<n;i++) \n {\n str=s.next();\n if(str.charAt(0)=='A') \n {\n a++;\n }\n else if(str.charAt(0)=='W') \n {\n w++;\n }\n else if(str.charAt(0)=='T') \n {\n t++;\n }\n else if(str.charAt(0)=='R') \n {\n r++;\n }\n else\n {\n continue;\n }\n }\n \n System.out.println(\"AC x \"+a);\n System.out.println(\"WA x \"+w);\n\t System.out.println(\"TLE x \"+t);\n\t System.out.println(\"RE x \"+r);\n\n\n \n \n \n \n \n \n // System.out.println(res);\n }\n catch(Exception e)\n {\n return ;\n }\n }\n}",
"Main",
"public static void main(String args[])\n {\n try\n {\n int n,rem=0,res=0,a=0,r=0,w=0,t=0;\n Scanner s=new Scanner(System.in);\n n=s.nextInt();\n String str; \n for(int i=0;i<n;i++) \n {\n str=s.next();\n if(str.charAt(0)=='A') \n {\n a++;\n }\n else if(str.charAt(0)=='W') \n {\n w++;\n }\n else if(str.charAt(0)=='T') \n {\n t++;\n }\n else if(str.charAt(0)=='R') \n {\n r++;\n }\n else\n {\n continue;\n }\n }\n \n System.out.println(\"AC x \"+a);\n System.out.println(\"WA x \"+w);\n\t System.out.println(\"TLE x \"+t);\n\t System.out.println(\"RE x \"+r);\n\n\n \n \n \n \n \n \n // System.out.println(res);\n }\n catch(Exception e)\n {\n return ;\n }\n }",
"main",
"{\n try\n {\n int n,rem=0,res=0,a=0,r=0,w=0,t=0;\n Scanner s=new Scanner(System.in);\n n=s.nextInt();\n String str; \n for(int i=0;i<n;i++) \n {\n str=s.next();\n if(str.charAt(0)=='A') \n {\n a++;\n }\n else if(str.charAt(0)=='W') \n {\n w++;\n }\n else if(str.charAt(0)=='T') \n {\n t++;\n }\n else if(str.charAt(0)=='R') \n {\n r++;\n }\n else\n {\n continue;\n }\n }\n \n System.out.println(\"AC x \"+a);\n System.out.println(\"WA x \"+w);\n\t System.out.println(\"TLE x \"+t);\n\t System.out.println(\"RE x \"+r);\n\n\n \n \n \n \n \n \n // System.out.println(res);\n }\n catch(Exception e)\n {\n return ;\n }\n }",
"try\n {\n int n,rem=0,res=0,a=0,r=0,w=0,t=0;\n Scanner s=new Scanner(System.in);\n n=s.nextInt();\n String str; \n for(int i=0;i<n;i++) \n {\n str=s.next();\n if(str.charAt(0)=='A') \n {\n a++;\n }\n else if(str.charAt(0)=='W') \n {\n w++;\n }\n else if(str.charAt(0)=='T') \n {\n t++;\n }\n else if(str.charAt(0)=='R') \n {\n r++;\n }\n else\n {\n continue;\n }\n }\n \n System.out.println(\"AC x \"+a);\n System.out.println(\"WA x \"+w);\n\t System.out.println(\"TLE x \"+t);\n\t System.out.println(\"RE x \"+r);\n\n\n \n \n \n \n \n \n // System.out.println(res);\n }\n catch(Exception e)\n {\n return ;\n }",
"catch(Exception e)\n {\n return ;\n }",
"Exception e",
"{\n return ;\n }",
"return ;",
"{\n int n,rem=0,res=0,a=0,r=0,w=0,t=0;\n Scanner s=new Scanner(System.in);\n n=s.nextInt();\n String str; \n for(int i=0;i<n;i++) \n {\n str=s.next();\n if(str.charAt(0)=='A') \n {\n a++;\n }\n else if(str.charAt(0)=='W') \n {\n w++;\n }\n else if(str.charAt(0)=='T') \n {\n t++;\n }\n else if(str.charAt(0)=='R') \n {\n r++;\n }\n else\n {\n continue;\n }\n }\n \n System.out.println(\"AC x \"+a);\n System.out.println(\"WA x \"+w);\n\t System.out.println(\"TLE x \"+t);\n\t System.out.println(\"RE x \"+r);\n\n\n \n \n \n \n \n \n // System.out.println(res);\n }",
"int n",
"n",
"rem=0",
"rem",
"0",
"res=0",
"res",
"0",
"a=0",
"a",
"0",
"r=0",
"r",
"0",
"w=0",
"w",
"0",
"t=0;",
"t",
"0",
"Scanner s=new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"n=s.nextInt()",
"n",
"s.nextInt()",
"s.nextInt",
"s",
"String str;",
"str",
"for(int i=0;i<n;i++) \n {\n str=s.next();\n if(str.charAt(0)=='A') \n {\n a++;\n }\n else if(str.charAt(0)=='W') \n {\n w++;\n }\n else if(str.charAt(0)=='T') \n {\n t++;\n }\n else if(str.charAt(0)=='R') \n {\n r++;\n }\n else\n {\n continue;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n str=s.next();\n if(str.charAt(0)=='A') \n {\n a++;\n }\n else if(str.charAt(0)=='W') \n {\n w++;\n }\n else if(str.charAt(0)=='T') \n {\n t++;\n }\n else if(str.charAt(0)=='R') \n {\n r++;\n }\n else\n {\n continue;\n }\n }",
"{\n str=s.next();\n if(str.charAt(0)=='A') \n {\n a++;\n }\n else if(str.charAt(0)=='W') \n {\n w++;\n }\n else if(str.charAt(0)=='T') \n {\n t++;\n }\n else if(str.charAt(0)=='R') \n {\n r++;\n }\n else\n {\n continue;\n }\n }",
"str=s.next()",
"str",
"s.next()",
"s.next",
"s",
"if(str.charAt(0)=='A') \n {\n a++;\n }\n else if(str.charAt(0)=='W') \n {\n w++;\n }\n else if(str.charAt(0)=='T') \n {\n t++;\n }\n else if(str.charAt(0)=='R') \n {\n r++;\n }\n else\n {\n continue;\n }",
"str.charAt(0)=='A'",
"str.charAt(0)",
"str.charAt",
"str",
"0",
"'A'",
"{\n a++;\n }",
"a++",
"a",
"if(str.charAt(0)=='W') \n {\n w++;\n }\n else if(str.charAt(0)=='T') \n {\n t++;\n }\n else if(str.charAt(0)=='R') \n {\n r++;\n }\n else\n {\n continue;\n }",
"str.charAt(0)=='W'",
"str.charAt(0)",
"str.charAt",
"str",
"0",
"'W'",
"{\n w++;\n }",
"w++",
"w",
"if(str.charAt(0)=='T') \n {\n t++;\n }\n else if(str.charAt(0)=='R') \n {\n r++;\n }\n else\n {\n continue;\n }",
"str.charAt(0)=='T'",
"str.charAt(0)",
"str.charAt",
"str",
"0",
"'T'",
"{\n t++;\n }",
"t++",
"t",
"if(str.charAt(0)=='R') \n {\n r++;\n }\n else\n {\n continue;\n }",
"str.charAt(0)=='R'",
"str.charAt(0)",
"str.charAt",
"str",
"0",
"'R'",
"{\n r++;\n }",
"r++",
"r",
"{\n continue;\n }",
"continue;",
"System.out.println(\"AC x \"+a)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \"+a",
"\"AC x \"",
"a",
"System.out.println(\"WA x \"+w)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \"+w",
"\"WA x \"",
"w",
"System.out.println(\"TLE x \"+t)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \"+t",
"\"TLE x \"",
"t",
"System.out.println(\"RE x \"+r)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \"+r",
"\"RE x \"",
"r",
"String args[]",
"args",
"public class Main\n{\n public static void main(String args[])\n {\n try\n {\n int n,rem=0,res=0,a=0,r=0,w=0,t=0;\n Scanner s=new Scanner(System.in);\n n=s.nextInt();\n String str; \n for(int i=0;i<n;i++) \n {\n str=s.next();\n if(str.charAt(0)=='A') \n {\n a++;\n }\n else if(str.charAt(0)=='W') \n {\n w++;\n }\n else if(str.charAt(0)=='T') \n {\n t++;\n }\n else if(str.charAt(0)=='R') \n {\n r++;\n }\n else\n {\n continue;\n }\n }\n \n System.out.println(\"AC x \"+a);\n System.out.println(\"WA x \"+w);\n\t System.out.println(\"TLE x \"+t);\n\t System.out.println(\"RE x \"+r);\n\n\n \n \n \n \n \n \n // System.out.println(res);\n }\n catch(Exception e)\n {\n return ;\n }\n }\n}",
"public class Main\n{\n public static void main(String args[])\n {\n try\n {\n int n,rem=0,res=0,a=0,r=0,w=0,t=0;\n Scanner s=new Scanner(System.in);\n n=s.nextInt();\n String str; \n for(int i=0;i<n;i++) \n {\n str=s.next();\n if(str.charAt(0)=='A') \n {\n a++;\n }\n else if(str.charAt(0)=='W') \n {\n w++;\n }\n else if(str.charAt(0)=='T') \n {\n t++;\n }\n else if(str.charAt(0)=='R') \n {\n r++;\n }\n else\n {\n continue;\n }\n }\n \n System.out.println(\"AC x \"+a);\n System.out.println(\"WA x \"+w);\n\t System.out.println(\"TLE x \"+t);\n\t System.out.println(\"RE x \"+r);\n\n\n \n \n \n \n \n \n // System.out.println(res);\n }\n catch(Exception e)\n {\n return ;\n }\n }\n}",
"Main"
]
| import java.util.*;
import java.util.Scanner;
import java.lang.*;
public class Main
{
public static void main(String args[])
{
try
{
int n,rem=0,res=0,a=0,r=0,w=0,t=0;
Scanner s=new Scanner(System.in);
n=s.nextInt();
String str;
for(int i=0;i<n;i++)
{
str=s.next();
if(str.charAt(0)=='A')
{
a++;
}
else if(str.charAt(0)=='W')
{
w++;
}
else if(str.charAt(0)=='T')
{
t++;
}
else if(str.charAt(0)=='R')
{
r++;
}
else
{
continue;
}
}
System.out.println("AC x "+a);
System.out.println("WA x "+w);
System.out.println("TLE x "+t);
System.out.println("RE x "+r);
// System.out.println(res);
}
catch(Exception e)
{
return ;
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
14,
2,
13,
17,
40,
13,
14,
2,
13,
17,
40,
13,
14,
2,
13,
17,
40,
13,
40,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
117,
8
],
[
117,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
11,
29
],
[
29,
30
],
[
29,
31
],
[
11,
32
],
[
32,
33
],
[
32,
34
],
[
11,
35
],
[
35,
36
],
[
35,
37
],
[
11,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
38,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
50,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
50,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
62,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
68,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
74,
80
],
[
80,
81
],
[
11,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
87,
88
],
[
87,
89
],
[
11,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
11,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
103,
104
],
[
103,
105
],
[
11,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
9,
114
],
[
114,
115
],
[
0,
116
],
[
116,
117
],
[
116,
118
]
]
| [
"/******************************************************************************\n\n Online Java Compiler.\n Code, Compile, Run and Debug java program online.\nWrite your code in this editor and press \"Run\" button to execute it.\n\n*******************************************************************************/\nimport java.util.*;\nimport java.io.*;\npublic class Main\n{\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s = br.readLine();\n\t\tint n = Integer.parseInt(s);\n\t\tint w=0,x=0,y=0,z=0;\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t s = br.readLine();\n\t\t char l = s.charAt(0);\n\t\t if(l == 'A')\n\t\t w++;\n\t\t else if(l == 'W')\n\t\t x++;\n\t\t else if(l == 'T')\n\t\t y++;\n\t\t else \n\t\t z++;\n\t\t}\n\t\tSystem.out.println(\"AC x \"+ w);\n\t\tSystem.out.println(\"WA x \"+ x);\n\t\tSystem.out.println(\"TLE x \"+ y);\n\t\tSystem.out.println(\"RE x \"+ z);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main\n{\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s = br.readLine();\n\t\tint n = Integer.parseInt(s);\n\t\tint w=0,x=0,y=0,z=0;\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t s = br.readLine();\n\t\t char l = s.charAt(0);\n\t\t if(l == 'A')\n\t\t w++;\n\t\t else if(l == 'W')\n\t\t x++;\n\t\t else if(l == 'T')\n\t\t y++;\n\t\t else \n\t\t z++;\n\t\t}\n\t\tSystem.out.println(\"AC x \"+ w);\n\t\tSystem.out.println(\"WA x \"+ x);\n\t\tSystem.out.println(\"TLE x \"+ y);\n\t\tSystem.out.println(\"RE x \"+ z);\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s = br.readLine();\n\t\tint n = Integer.parseInt(s);\n\t\tint w=0,x=0,y=0,z=0;\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t s = br.readLine();\n\t\t char l = s.charAt(0);\n\t\t if(l == 'A')\n\t\t w++;\n\t\t else if(l == 'W')\n\t\t x++;\n\t\t else if(l == 'T')\n\t\t y++;\n\t\t else \n\t\t z++;\n\t\t}\n\t\tSystem.out.println(\"AC x \"+ w);\n\t\tSystem.out.println(\"WA x \"+ x);\n\t\tSystem.out.println(\"TLE x \"+ y);\n\t\tSystem.out.println(\"RE x \"+ z);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s = br.readLine();\n\t\tint n = Integer.parseInt(s);\n\t\tint w=0,x=0,y=0,z=0;\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t s = br.readLine();\n\t\t char l = s.charAt(0);\n\t\t if(l == 'A')\n\t\t w++;\n\t\t else if(l == 'W')\n\t\t x++;\n\t\t else if(l == 'T')\n\t\t y++;\n\t\t else \n\t\t z++;\n\t\t}\n\t\tSystem.out.println(\"AC x \"+ w);\n\t\tSystem.out.println(\"WA x \"+ x);\n\t\tSystem.out.println(\"TLE x \"+ y);\n\t\tSystem.out.println(\"RE x \"+ z);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String s = br.readLine();",
"s",
"br.readLine()",
"br.readLine",
"br",
"int n = Integer.parseInt(s);",
"n",
"Integer.parseInt(s)",
"Integer.parseInt",
"Integer",
"s",
"int w=0",
"w",
"0",
"x=0",
"x",
"0",
"y=0",
"y",
"0",
"z=0;",
"z",
"0",
"for(int i=0; i<n; i++)\n\t\t{\n\t\t s = br.readLine();\n\t\t char l = s.charAt(0);\n\t\t if(l == 'A')\n\t\t w++;\n\t\t else if(l == 'W')\n\t\t x++;\n\t\t else if(l == 'T')\n\t\t y++;\n\t\t else \n\t\t z++;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t s = br.readLine();\n\t\t char l = s.charAt(0);\n\t\t if(l == 'A')\n\t\t w++;\n\t\t else if(l == 'W')\n\t\t x++;\n\t\t else if(l == 'T')\n\t\t y++;\n\t\t else \n\t\t z++;\n\t\t}",
"{\n\t\t s = br.readLine();\n\t\t char l = s.charAt(0);\n\t\t if(l == 'A')\n\t\t w++;\n\t\t else if(l == 'W')\n\t\t x++;\n\t\t else if(l == 'T')\n\t\t y++;\n\t\t else \n\t\t z++;\n\t\t}",
"s = br.readLine()",
"s",
"br.readLine()",
"br.readLine",
"br",
"char l = s.charAt(0);",
"l",
"s.charAt(0)",
"s.charAt",
"s",
"0",
"if(l == 'A')\n\t\t w++;\n\t\t else if(l == 'W')\n\t\t x++;\n\t\t else if(l == 'T')\n\t\t y++;\n\t\t else \n\t\t z++;",
"l == 'A'",
"l",
"'A'",
"w++",
"w",
"if(l == 'W')\n\t\t x++;\n\t\t else if(l == 'T')\n\t\t y++;\n\t\t else \n\t\t z++;",
"l == 'W'",
"l",
"'W'",
"x++",
"x",
"if(l == 'T')\n\t\t y++;\n\t\t else \n\t\t z++;",
"l == 'T'",
"l",
"'T'",
"y++",
"y",
"z++",
"z",
"System.out.println(\"AC x \"+ w)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \"+ w",
"\"AC x \"",
"w",
"System.out.println(\"WA x \"+ x)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \"+ x",
"\"WA x \"",
"x",
"System.out.println(\"TLE x \"+ y)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \"+ y",
"\"TLE x \"",
"y",
"System.out.println(\"RE x \"+ z)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \"+ z",
"\"RE x \"",
"z",
"String[] args",
"args",
"public class Main\n{\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s = br.readLine();\n\t\tint n = Integer.parseInt(s);\n\t\tint w=0,x=0,y=0,z=0;\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t s = br.readLine();\n\t\t char l = s.charAt(0);\n\t\t if(l == 'A')\n\t\t w++;\n\t\t else if(l == 'W')\n\t\t x++;\n\t\t else if(l == 'T')\n\t\t y++;\n\t\t else \n\t\t z++;\n\t\t}\n\t\tSystem.out.println(\"AC x \"+ w);\n\t\tSystem.out.println(\"WA x \"+ x);\n\t\tSystem.out.println(\"TLE x \"+ y);\n\t\tSystem.out.println(\"RE x \"+ z);\n\t}\n}",
"public class Main\n{\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s = br.readLine();\n\t\tint n = Integer.parseInt(s);\n\t\tint w=0,x=0,y=0,z=0;\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t s = br.readLine();\n\t\t char l = s.charAt(0);\n\t\t if(l == 'A')\n\t\t w++;\n\t\t else if(l == 'W')\n\t\t x++;\n\t\t else if(l == 'T')\n\t\t y++;\n\t\t else \n\t\t z++;\n\t\t}\n\t\tSystem.out.println(\"AC x \"+ w);\n\t\tSystem.out.println(\"WA x \"+ x);\n\t\tSystem.out.println(\"TLE x \"+ y);\n\t\tSystem.out.println(\"RE x \"+ z);\n\t}\n}",
"Main"
]
| /******************************************************************************
Online Java Compiler.
Code, Compile, Run and Debug java program online.
Write your code in this editor and press "Run" button to execute it.
*******************************************************************************/
import java.util.*;
import java.io.*;
public class Main
{
public static void main(String[] args) throws Exception{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String s = br.readLine();
int n = Integer.parseInt(s);
int w=0,x=0,y=0,z=0;
for(int i=0; i<n; i++)
{
s = br.readLine();
char l = s.charAt(0);
if(l == 'A')
w++;
else if(l == 'W')
x++;
else if(l == 'T')
y++;
else
z++;
}
System.out.println("AC x "+ w);
System.out.println("WA x "+ x);
System.out.println("TLE x "+ y);
System.out.println("RE x "+ z);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
40,
13,
14,
4,
18,
13,
17,
30,
40,
13,
14,
4,
18,
13,
17,
30,
40,
13,
14,
4,
18,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
114,
5
],
[
114,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
52,
53
],
[
53,
54
],
[
41,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
55,
60
],
[
60,
61
],
[
61,
62
],
[
41,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
63,
68
],
[
68,
69
],
[
69,
70
],
[
41,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
71,
76
],
[
76,
77
],
[
77,
78
],
[
8,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
8,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
92,
93
],
[
92,
94
],
[
8,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
100,
101
],
[
100,
102
],
[
8,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
108,
109
],
[
108,
110
],
[
6,
111
],
[
111,
112
],
[
0,
113
],
[
113,
114
],
[
113,
115
]
]
| [
"import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n \tint a=0,w=0,t=0,r=0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n \tfor(int i=0;i<N;i++){\n String s = sc.next();\n if(s.equals(\"AC\")){\n a++;\n }\n if(s.equals(\"WA\")){\n w++;\n }\n if(s.equals(\"TLE\")){\n t++;\n }\n if(s.equals(\"RE\")){\n r++;\n }\n }\n \tSystem.out.println(\"AC x \"+a);\n \tSystem.out.println(\"WA x \"+w);\n \tSystem.out.println(\"TLE x \"+t);\n \tSystem.out.println(\"RE x \"+r);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args){\n \tint a=0,w=0,t=0,r=0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n \tfor(int i=0;i<N;i++){\n String s = sc.next();\n if(s.equals(\"AC\")){\n a++;\n }\n if(s.equals(\"WA\")){\n w++;\n }\n if(s.equals(\"TLE\")){\n t++;\n }\n if(s.equals(\"RE\")){\n r++;\n }\n }\n \tSystem.out.println(\"AC x \"+a);\n \tSystem.out.println(\"WA x \"+w);\n \tSystem.out.println(\"TLE x \"+t);\n \tSystem.out.println(\"RE x \"+r);\n\t}\n}",
"Main",
"public static void main(String[] args){\n \tint a=0,w=0,t=0,r=0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n \tfor(int i=0;i<N;i++){\n String s = sc.next();\n if(s.equals(\"AC\")){\n a++;\n }\n if(s.equals(\"WA\")){\n w++;\n }\n if(s.equals(\"TLE\")){\n t++;\n }\n if(s.equals(\"RE\")){\n r++;\n }\n }\n \tSystem.out.println(\"AC x \"+a);\n \tSystem.out.println(\"WA x \"+w);\n \tSystem.out.println(\"TLE x \"+t);\n \tSystem.out.println(\"RE x \"+r);\n\t}",
"main",
"{\n \tint a=0,w=0,t=0,r=0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n \tfor(int i=0;i<N;i++){\n String s = sc.next();\n if(s.equals(\"AC\")){\n a++;\n }\n if(s.equals(\"WA\")){\n w++;\n }\n if(s.equals(\"TLE\")){\n t++;\n }\n if(s.equals(\"RE\")){\n r++;\n }\n }\n \tSystem.out.println(\"AC x \"+a);\n \tSystem.out.println(\"WA x \"+w);\n \tSystem.out.println(\"TLE x \"+t);\n \tSystem.out.println(\"RE x \"+r);\n\t}",
"int a=0",
"a",
"0",
"w=0",
"w",
"0",
"t=0",
"t",
"0",
"r=0;",
"r",
"0",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=0;i<N;i++){\n String s = sc.next();\n if(s.equals(\"AC\")){\n a++;\n }\n if(s.equals(\"WA\")){\n w++;\n }\n if(s.equals(\"TLE\")){\n t++;\n }\n if(s.equals(\"RE\")){\n r++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n String s = sc.next();\n if(s.equals(\"AC\")){\n a++;\n }\n if(s.equals(\"WA\")){\n w++;\n }\n if(s.equals(\"TLE\")){\n t++;\n }\n if(s.equals(\"RE\")){\n r++;\n }\n }",
"{\n String s = sc.next();\n if(s.equals(\"AC\")){\n a++;\n }\n if(s.equals(\"WA\")){\n w++;\n }\n if(s.equals(\"TLE\")){\n t++;\n }\n if(s.equals(\"RE\")){\n r++;\n }\n }",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"if(s.equals(\"AC\")){\n a++;\n }",
"s.equals(\"AC\")",
"s.equals",
"s",
"\"AC\"",
"{\n a++;\n }",
"a++",
"a",
"if(s.equals(\"WA\")){\n w++;\n }",
"s.equals(\"WA\")",
"s.equals",
"s",
"\"WA\"",
"{\n w++;\n }",
"w++",
"w",
"if(s.equals(\"TLE\")){\n t++;\n }",
"s.equals(\"TLE\")",
"s.equals",
"s",
"\"TLE\"",
"{\n t++;\n }",
"t++",
"t",
"if(s.equals(\"RE\")){\n r++;\n }",
"s.equals(\"RE\")",
"s.equals",
"s",
"\"RE\"",
"{\n r++;\n }",
"r++",
"r",
"System.out.println(\"AC x \"+a)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \"+a",
"\"AC x \"",
"a",
"System.out.println(\"WA x \"+w)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \"+w",
"\"WA x \"",
"w",
"System.out.println(\"TLE x \"+t)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \"+t",
"\"TLE x \"",
"t",
"System.out.println(\"RE x \"+r)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \"+r",
"\"RE x \"",
"r",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n \tint a=0,w=0,t=0,r=0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n \tfor(int i=0;i<N;i++){\n String s = sc.next();\n if(s.equals(\"AC\")){\n a++;\n }\n if(s.equals(\"WA\")){\n w++;\n }\n if(s.equals(\"TLE\")){\n t++;\n }\n if(s.equals(\"RE\")){\n r++;\n }\n }\n \tSystem.out.println(\"AC x \"+a);\n \tSystem.out.println(\"WA x \"+w);\n \tSystem.out.println(\"TLE x \"+t);\n \tSystem.out.println(\"RE x \"+r);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n \tint a=0,w=0,t=0,r=0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n \tfor(int i=0;i<N;i++){\n String s = sc.next();\n if(s.equals(\"AC\")){\n a++;\n }\n if(s.equals(\"WA\")){\n w++;\n }\n if(s.equals(\"TLE\")){\n t++;\n }\n if(s.equals(\"RE\")){\n r++;\n }\n }\n \tSystem.out.println(\"AC x \"+a);\n \tSystem.out.println(\"WA x \"+w);\n \tSystem.out.println(\"TLE x \"+t);\n \tSystem.out.println(\"RE x \"+r);\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args){
int a=0,w=0,t=0,r=0;
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
for(int i=0;i<N;i++){
String s = sc.next();
if(s.equals("AC")){
a++;
}
if(s.equals("WA")){
w++;
}
if(s.equals("TLE")){
t++;
}
if(s.equals("RE")){
r++;
}
}
System.out.println("AC x "+a);
System.out.println("WA x "+w);
System.out.println("TLE x "+t);
System.out.println("RE x "+r);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
2,
4,
18,
13,
13,
17,
4,
18,
13,
2,
17,
4,
18,
13,
17,
4,
18,
13,
2,
17,
4,
18,
13,
17,
4,
18,
13,
2,
17,
4,
18,
13,
17,
4,
18,
13,
2,
17,
4,
18,
13,
17,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
20,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
14,
4,
18,
13,
13,
30,
29,
17,
29,
17,
23,
13,
12,
13,
30,
14,
2,
13,
13,
30,
29,
2,
13,
13,
29,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
18,
13,
13,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
2,
13,
13,
29,
2,
13,
4,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
13,
14,
2,
13,
17,
30,
29,
13,
14,
2,
13,
13,
29,
4,
13,
2,
13,
13,
13,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
0,
18,
13,
13,
17,
41,
13,
4,
18,
4,
18,
13,
13,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
14,
40,
18,
13,
13,
30,
4,
13,
13,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
29,
4,
13,
13,
2,
13,
17,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
17,
41,
13,
2,
4,
13,
13,
2,
13,
17,
13,
13,
0,
13,
2,
2,
13,
13,
13,
29,
8,
2,
2,
13,
17,
17,
13,
2,
2,
13,
13,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
15,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
33,
35
],
[
29,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
41,
42
],
[
42,
43
],
[
29,
44
],
[
44,
45
],
[
44,
46
],
[
29,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
47,
51
],
[
29,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
52,
56
],
[
29,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
57,
61
],
[
29,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
62,
66
],
[
29,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
67,
78
],
[
79,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
79,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
85,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
89,
94
],
[
29,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
29,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
29,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
29,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
127,
130
],
[
29,
131
],
[
131,
132
],
[
132,
133
],
[
12,
134
],
[
134,
135
],
[
10,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
138,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
138,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
149,
152
],
[
138,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
154,
157
],
[
153,
158
],
[
158,
159
],
[
159,
160
],
[
138,
161
],
[
161,
162
],
[
136,
163
],
[
163,
164
],
[
10,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
168,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
167,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
165,
181
],
[
181,
182
],
[
165,
183
],
[
183,
184
],
[
10,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
187,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
191,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
198,
200
],
[
191,
201
],
[
201,
202
],
[
202,
203
],
[
191,
204
],
[
205,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
209,
210
],
[
208,
211
],
[
211,
212
],
[
211,
213
],
[
205,
214
],
[
214,
215
],
[
214,
216
],
[
216,
217
],
[
216,
218
],
[
205,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
219,
223
],
[
223,
224
],
[
223,
225
],
[
205,
226
],
[
226,
227
],
[
227,
228
],
[
227,
229
],
[
226,
230
],
[
185,
231
],
[
231,
232
],
[
10,
233
],
[
233,
234
],
[
233,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
238,
239
],
[
238,
240
],
[
235,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
244,
245
],
[
244,
246
],
[
244,
247
],
[
233,
248
],
[
248,
249
],
[
233,
250
],
[
250,
251
],
[
10,
252
],
[
252,
253
],
[
252,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
256,
258
],
[
255,
259
],
[
259,
260
],
[
260,
261
],
[
254,
262
],
[
262,
263
],
[
263,
264
],
[
263,
265
],
[
262,
266
],
[
266,
267
],
[
267,
268
],
[
254,
269
],
[
269,
270
],
[
270,
271
],
[
270,
272
],
[
269,
273
],
[
273,
274
],
[
274,
275
],
[
274,
276
],
[
276,
277
],
[
276,
278
],
[
274,
279
],
[
254,
280
],
[
280,
281
],
[
281,
282
],
[
281,
283
],
[
281,
284
],
[
284,
285
],
[
284,
286
],
[
252,
287
],
[
287,
288
],
[
252,
289
],
[
289,
290
],
[
10,
291
],
[
291,
292
],
[
291,
293
],
[
293,
294
],
[
294,
295
],
[
295,
296
],
[
295,
297
],
[
294,
298
],
[
293,
299
],
[
299,
300
],
[
299,
301
],
[
301,
302
],
[
302,
303
],
[
303,
304
],
[
304,
305
],
[
303,
306
],
[
293,
307
],
[
307,
308
],
[
308,
309
],
[
309,
310
],
[
307,
311
],
[
311,
312
],
[
312,
313
],
[
312,
314
],
[
314,
315
],
[
315,
316
],
[
311,
317
],
[
317,
318
],
[
318,
319
],
[
319,
320
],
[
319,
321
],
[
317,
322
],
[
322,
323
],
[
323,
324
],
[
323,
325
],
[
323,
326
],
[
323,
327
],
[
291,
328
],
[
328,
329
],
[
291,
330
],
[
330,
331
],
[
291,
332
],
[
332,
333
],
[
10,
334
],
[
334,
335
],
[
334,
336
],
[
336,
337
],
[
337,
338
],
[
338,
339
],
[
338,
340
],
[
338,
341
],
[
341,
342
],
[
341,
343
],
[
338,
344
],
[
334,
345
],
[
345,
346
],
[
334,
347
],
[
347,
348
],
[
10,
349
],
[
349,
350
],
[
349,
351
],
[
351,
352
],
[
352,
353
],
[
353,
354
],
[
353,
355
],
[
352,
356
],
[
356,
357
],
[
351,
358
],
[
358,
359
],
[
358,
360
],
[
360,
361
],
[
361,
362
],
[
361,
363
],
[
361,
364
],
[
364,
365
],
[
364,
366
],
[
361,
367
],
[
360,
368
],
[
351,
369
],
[
369,
370
],
[
369,
371
],
[
371,
372
],
[
372,
373
],
[
372,
374
],
[
371,
375
],
[
351,
376
],
[
376,
377
],
[
377,
378
],
[
378,
379
],
[
379,
380
],
[
379,
381
],
[
378,
382
],
[
377,
383
],
[
377,
384
],
[
384,
385
],
[
385,
386
],
[
385,
387
],
[
384,
388
],
[
349,
389
],
[
389,
390
],
[
349,
391
],
[
391,
392
],
[
349,
393
],
[
393,
394
],
[
10,
395
],
[
395,
396
],
[
395,
397
],
[
397,
398
],
[
395,
399
],
[
399,
400
],
[
395,
401
],
[
401,
402
],
[
401,
403
],
[
403,
404
],
[
404,
405
],
[
405,
406
],
[
405,
407
],
[
404,
408
],
[
403,
409
],
[
409,
410
],
[
410,
411
],
[
410,
412
],
[
409,
413
],
[
401,
414
],
[
414,
415
],
[
401,
416
],
[
416,
417
]
]
| [
"import java.io.*;\nimport java.math.BigInteger;\nimport java.util.*;\n\nclass Main{\n public static void main(String[] args){\n try {\n PrintWriter out=new PrintWriter(System.out,true);\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int t=Integer.parseInt(br.readLine());\n Map<String,Integer> map=new HashMap<>();\n map.put(\"AC\",0);\n map.put(\"RE\",0);\n map.put(\"TLE\",0);\n map.put(\"WA\",0);\n for(int i=0;i<t;i++){\n String str=br.readLine();\n map.put(str,map.get(str)+1);\n }\n out.println(\"AC x \"+map.get(\"AC\"));\n out.println(\"WA x \"+map.get(\"WA\"));\n out.println(\"TLE x \"+map.get(\"TLE\"));\n out.println(\"RE x \"+map.get(\"RE\"));\n out.close();\n } catch (Exception e) {\n System.out.println(\"kkkk \"+ e.getMessage());\n }\n }\n static boolean isPal(String s){\n StringBuilder str=new StringBuilder(s);\n str=str.reverse();\n String ss=String.valueOf(str);\n if (ss.equals(s)) {\n return true;\n }\n return false;\n }\n static int mod(int a,int b){\n if (a>b){\n return a-b;\n }\n return b-a;\n }\n static void shuffle(int[] a) {\n Random get = new Random();\n for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }\n static int lcm(int a,int b){\n long c=a*b;\n return (int)(c/hcf(a,b));\n }\n static int hcf(int a,int b){\n if(a==0){\n return b;\n }\n if(b==0){\n return a;\n }\n if(a>b)\n return hcf(a%b,b);\n\n return hcf(a,b%a);\n }\n static void dfs(ArrayList<HashSet<Integer>> list,boolean[] vis,int i){\n vis[i]=true;\n Iterator<Integer> it=list.get(i).iterator();\n while(it.hasNext()){\n int u=it.next();\n if(!vis[u]){\n dfs(list,vis,u);\n }\n }\n }\n static int modInverse(int x,int m){\n return power(x,m-2,m);\n }\n static int power(int x, int y, int m)\n {\n if (y == 0)\n return 1;\n\n long p = power(x, y / 2, m) % m;\n p = (p * p) % m;\n\n return (int)((y%2==0)? p : (x*p)%m);\n }\n static class pair{\n int a,b;\n public pair(int a,int b){\n this.a=a;\n this.b=b;\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"import java.util.*;",
"util.*",
"java",
"class Main{\n public static void main(String[] args){\n try {\n PrintWriter out=new PrintWriter(System.out,true);\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int t=Integer.parseInt(br.readLine());\n Map<String,Integer> map=new HashMap<>();\n map.put(\"AC\",0);\n map.put(\"RE\",0);\n map.put(\"TLE\",0);\n map.put(\"WA\",0);\n for(int i=0;i<t;i++){\n String str=br.readLine();\n map.put(str,map.get(str)+1);\n }\n out.println(\"AC x \"+map.get(\"AC\"));\n out.println(\"WA x \"+map.get(\"WA\"));\n out.println(\"TLE x \"+map.get(\"TLE\"));\n out.println(\"RE x \"+map.get(\"RE\"));\n out.close();\n } catch (Exception e) {\n System.out.println(\"kkkk \"+ e.getMessage());\n }\n }\n static boolean isPal(String s){\n StringBuilder str=new StringBuilder(s);\n str=str.reverse();\n String ss=String.valueOf(str);\n if (ss.equals(s)) {\n return true;\n }\n return false;\n }\n static int mod(int a,int b){\n if (a>b){\n return a-b;\n }\n return b-a;\n }\n static void shuffle(int[] a) {\n Random get = new Random();\n for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }\n static int lcm(int a,int b){\n long c=a*b;\n return (int)(c/hcf(a,b));\n }\n static int hcf(int a,int b){\n if(a==0){\n return b;\n }\n if(b==0){\n return a;\n }\n if(a>b)\n return hcf(a%b,b);\n\n return hcf(a,b%a);\n }\n static void dfs(ArrayList<HashSet<Integer>> list,boolean[] vis,int i){\n vis[i]=true;\n Iterator<Integer> it=list.get(i).iterator();\n while(it.hasNext()){\n int u=it.next();\n if(!vis[u]){\n dfs(list,vis,u);\n }\n }\n }\n static int modInverse(int x,int m){\n return power(x,m-2,m);\n }\n static int power(int x, int y, int m)\n {\n if (y == 0)\n return 1;\n\n long p = power(x, y / 2, m) % m;\n p = (p * p) % m;\n\n return (int)((y%2==0)? p : (x*p)%m);\n }\n static class pair{\n int a,b;\n public pair(int a,int b){\n this.a=a;\n this.b=b;\n }\n }\n}",
"Main",
"public static void main(String[] args){\n try {\n PrintWriter out=new PrintWriter(System.out,true);\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int t=Integer.parseInt(br.readLine());\n Map<String,Integer> map=new HashMap<>();\n map.put(\"AC\",0);\n map.put(\"RE\",0);\n map.put(\"TLE\",0);\n map.put(\"WA\",0);\n for(int i=0;i<t;i++){\n String str=br.readLine();\n map.put(str,map.get(str)+1);\n }\n out.println(\"AC x \"+map.get(\"AC\"));\n out.println(\"WA x \"+map.get(\"WA\"));\n out.println(\"TLE x \"+map.get(\"TLE\"));\n out.println(\"RE x \"+map.get(\"RE\"));\n out.close();\n } catch (Exception e) {\n System.out.println(\"kkkk \"+ e.getMessage());\n }\n }",
"main",
"{\n try {\n PrintWriter out=new PrintWriter(System.out,true);\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int t=Integer.parseInt(br.readLine());\n Map<String,Integer> map=new HashMap<>();\n map.put(\"AC\",0);\n map.put(\"RE\",0);\n map.put(\"TLE\",0);\n map.put(\"WA\",0);\n for(int i=0;i<t;i++){\n String str=br.readLine();\n map.put(str,map.get(str)+1);\n }\n out.println(\"AC x \"+map.get(\"AC\"));\n out.println(\"WA x \"+map.get(\"WA\"));\n out.println(\"TLE x \"+map.get(\"TLE\"));\n out.println(\"RE x \"+map.get(\"RE\"));\n out.close();\n } catch (Exception e) {\n System.out.println(\"kkkk \"+ e.getMessage());\n }\n }",
"try {\n PrintWriter out=new PrintWriter(System.out,true);\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int t=Integer.parseInt(br.readLine());\n Map<String,Integer> map=new HashMap<>();\n map.put(\"AC\",0);\n map.put(\"RE\",0);\n map.put(\"TLE\",0);\n map.put(\"WA\",0);\n for(int i=0;i<t;i++){\n String str=br.readLine();\n map.put(str,map.get(str)+1);\n }\n out.println(\"AC x \"+map.get(\"AC\"));\n out.println(\"WA x \"+map.get(\"WA\"));\n out.println(\"TLE x \"+map.get(\"TLE\"));\n out.println(\"RE x \"+map.get(\"RE\"));\n out.close();\n } catch (Exception e) {\n System.out.println(\"kkkk \"+ e.getMessage());\n }",
"catch (Exception e) {\n System.out.println(\"kkkk \"+ e.getMessage());\n }",
"Exception e",
"{\n System.out.println(\"kkkk \"+ e.getMessage());\n }",
"System.out.println(\"kkkk \"+ e.getMessage())",
"System.out.println",
"System.out",
"System",
"System.out",
"\"kkkk \"+ e.getMessage()",
"\"kkkk \"",
"e.getMessage()",
"e.getMessage",
"e",
"{\n PrintWriter out=new PrintWriter(System.out,true);\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int t=Integer.parseInt(br.readLine());\n Map<String,Integer> map=new HashMap<>();\n map.put(\"AC\",0);\n map.put(\"RE\",0);\n map.put(\"TLE\",0);\n map.put(\"WA\",0);\n for(int i=0;i<t;i++){\n String str=br.readLine();\n map.put(str,map.get(str)+1);\n }\n out.println(\"AC x \"+map.get(\"AC\"));\n out.println(\"WA x \"+map.get(\"WA\"));\n out.println(\"TLE x \"+map.get(\"TLE\"));\n out.println(\"RE x \"+map.get(\"RE\"));\n out.close();\n }",
"PrintWriter out=new PrintWriter(System.out,true);",
"out",
"new PrintWriter(System.out,true)",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int t=Integer.parseInt(br.readLine());",
"t",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"Map<String,Integer> map=new HashMap<>();",
"map",
"new HashMap<>()",
"map.put(\"AC\",0)",
"map.put",
"map",
"\"AC\"",
"0",
"map.put(\"RE\",0)",
"map.put",
"map",
"\"RE\"",
"0",
"map.put(\"TLE\",0)",
"map.put",
"map",
"\"TLE\"",
"0",
"map.put(\"WA\",0)",
"map.put",
"map",
"\"WA\"",
"0",
"for(int i=0;i<t;i++){\n String str=br.readLine();\n map.put(str,map.get(str)+1);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<t",
"i",
"t",
"i++",
"i++",
"i",
"{\n String str=br.readLine();\n map.put(str,map.get(str)+1);\n }",
"{\n String str=br.readLine();\n map.put(str,map.get(str)+1);\n }",
"String str=br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"map.put(str,map.get(str)+1)",
"map.put",
"map",
"str",
"map.get(str)+1",
"map.get(str)",
"map.get",
"map",
"str",
"1",
"out.println(\"AC x \"+map.get(\"AC\"))",
"out.println",
"out",
"\"AC x \"+map.get(\"AC\")",
"\"AC x \"",
"map.get(\"AC\")",
"map.get",
"map",
"\"AC\"",
"out.println(\"WA x \"+map.get(\"WA\"))",
"out.println",
"out",
"\"WA x \"+map.get(\"WA\")",
"\"WA x \"",
"map.get(\"WA\")",
"map.get",
"map",
"\"WA\"",
"out.println(\"TLE x \"+map.get(\"TLE\"))",
"out.println",
"out",
"\"TLE x \"+map.get(\"TLE\")",
"\"TLE x \"",
"map.get(\"TLE\")",
"map.get",
"map",
"\"TLE\"",
"out.println(\"RE x \"+map.get(\"RE\"))",
"out.println",
"out",
"\"RE x \"+map.get(\"RE\")",
"\"RE x \"",
"map.get(\"RE\")",
"map.get",
"map",
"\"RE\"",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static boolean isPal(String s){\n StringBuilder str=new StringBuilder(s);\n str=str.reverse();\n String ss=String.valueOf(str);\n if (ss.equals(s)) {\n return true;\n }\n return false;\n }",
"isPal",
"{\n StringBuilder str=new StringBuilder(s);\n str=str.reverse();\n String ss=String.valueOf(str);\n if (ss.equals(s)) {\n return true;\n }\n return false;\n }",
"StringBuilder str=new StringBuilder(s);",
"str",
"new StringBuilder(s)",
"str=str.reverse()",
"str",
"str.reverse()",
"str.reverse",
"str",
"String ss=String.valueOf(str);",
"ss",
"String.valueOf(str)",
"String.valueOf",
"String",
"str",
"if (ss.equals(s)) {\n return true;\n }",
"ss.equals(s)",
"ss.equals",
"ss",
"s",
"{\n return true;\n }",
"return true;",
"true",
"return false;",
"false",
"String s",
"s",
"static int mod(int a,int b){\n if (a>b){\n return a-b;\n }\n return b-a;\n }",
"mod",
"{\n if (a>b){\n return a-b;\n }\n return b-a;\n }",
"if (a>b){\n return a-b;\n }",
"a>b",
"a",
"b",
"{\n return a-b;\n }",
"return a-b;",
"a-b",
"a",
"b",
"return b-a;",
"b-a",
"b",
"a",
"int a",
"a",
"int b",
"b",
"static void shuffle(int[] a) {\n Random get = new Random();\n for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }",
"shuffle",
"{\n Random get = new Random();\n for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }",
"Random get = new Random();",
"get",
"new Random()",
"for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"{\n int r = get.nextInt(a.length);\n int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }",
"{\n int r = get.nextInt(a.length);\n int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }",
"int r = get.nextInt(a.length);",
"r",
"get.nextInt(a.length)",
"get.nextInt",
"get",
"a.length",
"a",
"a.length",
"int temp = a[i];",
"temp",
"a[i]",
"a",
"i",
"a[i] = a[r]",
"a[i]",
"a",
"i",
"a[r]",
"a",
"r",
"a[r] = temp",
"a[r]",
"a",
"r",
"temp",
"int[] a",
"a",
"static int lcm(int a,int b){\n long c=a*b;\n return (int)(c/hcf(a,b));\n }",
"lcm",
"{\n long c=a*b;\n return (int)(c/hcf(a,b));\n }",
"long c=a*b;",
"c",
"a*b",
"a",
"b",
"return (int)(c/hcf(a,b));",
"(int)(c/hcf(a,b))",
"c",
"hcf(a,b)",
"hcf",
"a",
"b",
"int a",
"a",
"int b",
"b",
"static int hcf(int a,int b){\n if(a==0){\n return b;\n }\n if(b==0){\n return a;\n }\n if(a>b)\n return hcf(a%b,b);\n\n return hcf(a,b%a);\n }",
"hcf",
"{\n if(a==0){\n return b;\n }\n if(b==0){\n return a;\n }\n if(a>b)\n return hcf(a%b,b);\n\n return hcf(a,b%a);\n }",
"if(a==0){\n return b;\n }",
"a==0",
"a",
"0",
"{\n return b;\n }",
"return b;",
"b",
"if(b==0){\n return a;\n }",
"b==0",
"b",
"0",
"{\n return a;\n }",
"return a;",
"a",
"if(a>b)\n return hcf(a%b,b);",
"a>b",
"a",
"b",
"return hcf(a%b,b);",
"hcf(a%b,b)",
"hcf",
"a%b",
"a",
"b",
"b",
"return hcf(a,b%a);",
"hcf(a,b%a)",
"hcf",
"a",
"b%a",
"b",
"a",
"int a",
"a",
"int b",
"b",
"static void dfs(ArrayList<HashSet<Integer>> list,boolean[] vis,int i){\n vis[i]=true;\n Iterator<Integer> it=list.get(i).iterator();\n while(it.hasNext()){\n int u=it.next();\n if(!vis[u]){\n dfs(list,vis,u);\n }\n }\n }",
"dfs",
"{\n vis[i]=true;\n Iterator<Integer> it=list.get(i).iterator();\n while(it.hasNext()){\n int u=it.next();\n if(!vis[u]){\n dfs(list,vis,u);\n }\n }\n }",
"vis[i]=true",
"vis[i]",
"vis",
"i",
"true",
"Iterator<Integer> it=list.get(i).iterator();",
"it",
"list.get(i).iterator()",
"list.get(i).iterator",
"list.get(i)",
"list.get",
"list",
"i",
"while(it.hasNext()){\n int u=it.next();\n if(!vis[u]){\n dfs(list,vis,u);\n }\n }",
"it.hasNext()",
"it.hasNext",
"it",
"{\n int u=it.next();\n if(!vis[u]){\n dfs(list,vis,u);\n }\n }",
"int u=it.next();",
"u",
"it.next()",
"it.next",
"it",
"if(!vis[u]){\n dfs(list,vis,u);\n }",
"!vis[u]",
"vis[u]",
"vis",
"u",
"{\n dfs(list,vis,u);\n }",
"dfs(list,vis,u)",
"dfs",
"list",
"vis",
"u",
"ArrayList<HashSet<Integer>> list",
"list",
"boolean[] vis",
"vis",
"int i",
"i",
"static int modInverse(int x,int m){\n return power(x,m-2,m);\n }",
"modInverse",
"{\n return power(x,m-2,m);\n }",
"return power(x,m-2,m);",
"power(x,m-2,m)",
"power",
"x",
"m-2",
"m",
"2",
"m",
"int x",
"x",
"int m",
"m",
"static int power(int x, int y, int m)\n {\n if (y == 0)\n return 1;\n\n long p = power(x, y / 2, m) % m;\n p = (p * p) % m;\n\n return (int)((y%2==0)? p : (x*p)%m);\n }",
"power",
"{\n if (y == 0)\n return 1;\n\n long p = power(x, y / 2, m) % m;\n p = (p * p) % m;\n\n return (int)((y%2==0)? p : (x*p)%m);\n }",
"if (y == 0)\n return 1;",
"y == 0",
"y",
"0",
"return 1;",
"1",
"long p = power(x, y / 2, m) % m;",
"p",
"power(x, y / 2, m) % m",
"power(x, y / 2, m)",
"power",
"x",
"y / 2",
"y",
"2",
"m",
"m",
"p = (p * p) % m",
"p",
"(p * p) % m",
"(p * p)",
"p",
"p",
"m",
"return (int)((y%2==0)? p : (x*p)%m);",
"(int)((y%2==0)? p : (x*p)%m)",
"(y%2==0)",
"y%2",
"y",
"2",
"0",
"p",
"(x*p)%m",
"(x*p)",
"x",
"p",
"m",
"int x",
"x",
"int y",
"y",
"int m",
"m",
"static class pair{\n int a,b;\n public pair(int a,int b){\n this.a=a;\n this.b=b;\n }\n }",
"pair",
"int a",
"a",
"b;",
"b",
"public pair(int a,int b){\n this.a=a;\n this.b=b;\n }",
"pair",
"{\n this.a=a;\n this.b=b;\n }",
"this.a=a",
"this.a",
"this",
"this.a",
"a",
"this.b=b",
"this.b",
"this",
"this.b",
"b",
"int a",
"a",
"int b",
"b"
]
| import java.io.*;
import java.math.BigInteger;
import java.util.*;
class Main{
public static void main(String[] args){
try {
PrintWriter out=new PrintWriter(System.out,true);
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int t=Integer.parseInt(br.readLine());
Map<String,Integer> map=new HashMap<>();
map.put("AC",0);
map.put("RE",0);
map.put("TLE",0);
map.put("WA",0);
for(int i=0;i<t;i++){
String str=br.readLine();
map.put(str,map.get(str)+1);
}
out.println("AC x "+map.get("AC"));
out.println("WA x "+map.get("WA"));
out.println("TLE x "+map.get("TLE"));
out.println("RE x "+map.get("RE"));
out.close();
} catch (Exception e) {
System.out.println("kkkk "+ e.getMessage());
}
}
static boolean isPal(String s){
StringBuilder str=new StringBuilder(s);
str=str.reverse();
String ss=String.valueOf(str);
if (ss.equals(s)) {
return true;
}
return false;
}
static int mod(int a,int b){
if (a>b){
return a-b;
}
return b-a;
}
static void shuffle(int[] a) {
Random get = new Random();
for (int i = 0; i < a.length; i++) {
int r = get.nextInt(a.length);
int temp = a[i];
a[i] = a[r];
a[r] = temp;
}
}
static int lcm(int a,int b){
long c=a*b;
return (int)(c/hcf(a,b));
}
static int hcf(int a,int b){
if(a==0){
return b;
}
if(b==0){
return a;
}
if(a>b)
return hcf(a%b,b);
return hcf(a,b%a);
}
static void dfs(ArrayList<HashSet<Integer>> list,boolean[] vis,int i){
vis[i]=true;
Iterator<Integer> it=list.get(i).iterator();
while(it.hasNext()){
int u=it.next();
if(!vis[u]){
dfs(list,vis,u);
}
}
}
static int modInverse(int x,int m){
return power(x,m-2,m);
}
static int power(int x, int y, int m)
{
if (y == 0)
return 1;
long p = power(x, y / 2, m) % m;
p = (p * p) % m;
return (int)((y%2==0)? p : (x*p)%m);
}
static class pair{
int a,b;
public pair(int a,int b){
this.a=a;
this.b=b;
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
41,
13,
39,
17,
17,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
4,
18,
13,
18,
13,
13,
30,
40,
18,
13,
13,
3,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
102,
5
],
[
102,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
23,
26
],
[
23,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
40,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
46,
54
],
[
54,
55
],
[
55,
56
],
[
46,
57
],
[
58,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
63,
64
],
[
63,
65
],
[
59,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
8,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
72,
80
],
[
80,
81
],
[
81,
82
],
[
72,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
91,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
6,
99
],
[
99,
100
],
[
0,
101
],
[
101,
102
],
[
101,
103
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] c = new int[4];\n String[] str = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n for(int i = 0; i < n; i++) {\n String s = sc.next();\n for(int j = 0; j < 4; j++) {\n if(s.equals(str[j])) {\n c[j]++;\n break;\n }\n }\n }\n for(int i = 0; i < 4; i++) {\n System.out.println(str[i] + \" x \" + c[i]);\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] c = new int[4];\n String[] str = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n for(int i = 0; i < n; i++) {\n String s = sc.next();\n for(int j = 0; j < 4; j++) {\n if(s.equals(str[j])) {\n c[j]++;\n break;\n }\n }\n }\n for(int i = 0; i < 4; i++) {\n System.out.println(str[i] + \" x \" + c[i]);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] c = new int[4];\n String[] str = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n for(int i = 0; i < n; i++) {\n String s = sc.next();\n for(int j = 0; j < 4; j++) {\n if(s.equals(str[j])) {\n c[j]++;\n break;\n }\n }\n }\n for(int i = 0; i < 4; i++) {\n System.out.println(str[i] + \" x \" + c[i]);\n }\n }",
"main",
"{\n \n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] c = new int[4];\n String[] str = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n for(int i = 0; i < n; i++) {\n String s = sc.next();\n for(int j = 0; j < 4; j++) {\n if(s.equals(str[j])) {\n c[j]++;\n break;\n }\n }\n }\n for(int i = 0; i < 4; i++) {\n System.out.println(str[i] + \" x \" + c[i]);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] c = new int[4];",
"c",
"new int[4]",
"4",
"String[] str = {\"AC\", \"WA\", \"TLE\", \"RE\"};",
"str",
"{\"AC\", \"WA\", \"TLE\", \"RE\"}",
"\"AC\"",
"\"WA\"",
"\"TLE\"",
"\"RE\"",
"for(int i = 0; i < n; i++) {\n String s = sc.next();\n for(int j = 0; j < 4; j++) {\n if(s.equals(str[j])) {\n c[j]++;\n break;\n }\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String s = sc.next();\n for(int j = 0; j < 4; j++) {\n if(s.equals(str[j])) {\n c[j]++;\n break;\n }\n }\n }",
"{\n String s = sc.next();\n for(int j = 0; j < 4; j++) {\n if(s.equals(str[j])) {\n c[j]++;\n break;\n }\n }\n }",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"for(int j = 0; j < 4; j++) {\n if(s.equals(str[j])) {\n c[j]++;\n break;\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 4",
"j",
"4",
"j++",
"j++",
"j",
"{\n if(s.equals(str[j])) {\n c[j]++;\n break;\n }\n }",
"{\n if(s.equals(str[j])) {\n c[j]++;\n break;\n }\n }",
"if(s.equals(str[j])) {\n c[j]++;\n break;\n }",
"s.equals(str[j])",
"s.equals",
"s",
"str[j]",
"str",
"j",
"{\n c[j]++;\n break;\n }",
"c[j]++",
"c[j]",
"c",
"j",
"break;",
"for(int i = 0; i < 4; i++) {\n System.out.println(str[i] + \" x \" + c[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n System.out.println(str[i] + \" x \" + c[i]);\n }",
"{\n System.out.println(str[i] + \" x \" + c[i]);\n }",
"System.out.println(str[i] + \" x \" + c[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"str[i] + \" x \" + c[i]",
"str[i] + \" x \" + c[i]",
"str[i]",
"str",
"i",
"\" x \"",
"c[i]",
"c",
"i",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] c = new int[4];\n String[] str = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n for(int i = 0; i < n; i++) {\n String s = sc.next();\n for(int j = 0; j < 4; j++) {\n if(s.equals(str[j])) {\n c[j]++;\n break;\n }\n }\n }\n for(int i = 0; i < 4; i++) {\n System.out.println(str[i] + \" x \" + c[i]);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] c = new int[4];\n String[] str = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n for(int i = 0; i < n; i++) {\n String s = sc.next();\n for(int j = 0; j < 4; j++) {\n if(s.equals(str[j])) {\n c[j]++;\n break;\n }\n }\n }\n for(int i = 0; i < 4; i++) {\n System.out.println(str[i] + \" x \" + c[i]);\n }\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int[] c = new int[4];
String[] str = {"AC", "WA", "TLE", "RE"};
for(int i = 0; i < n; i++) {
String s = sc.next();
for(int j = 0; j < 4; j++) {
if(s.equals(str[j])) {
c[j]++;
break;
}
}
}
for(int i = 0; i < 4; i++) {
System.out.println(str[i] + " x " + c[i]);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
35,
13,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
34,
1,
3,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
114,
5
],
[
114,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
44,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
50,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
50,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
50,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
50,
76
],
[
76,
77
],
[
77,
78
],
[
8,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
8,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
92,
93
],
[
92,
94
],
[
8,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
100,
101
],
[
100,
102
],
[
8,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
108,
109
],
[
108,
110
],
[
6,
111
],
[
111,
112
],
[
0,
113
],
[
113,
114
],
[
113,
115
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = Integer.parseInt(sc.nextLine());\n\t\tint AC = 0;\n\t\tint WA = 0;\n\t\tint TLE = 0;\n\t\tint RE = 0;\n\n\t\tfor(int i = 0; i < N ; i++) {\n\t\t\tString result = sc.nextLine();\n\t\t\tswitch(result) {\n\t\t\tcase \"AC\":\n\t\t\t\tAC ++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\tWA ++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\tTLE ++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tRE ++;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + AC);\n\t\tSystem.out.println(\"WA x \" + WA);\n\t\tSystem.out.println(\"TLE x \" + TLE);\n\t\tSystem.out.println(\"RE x \" + RE);\n\n\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = Integer.parseInt(sc.nextLine());\n\t\tint AC = 0;\n\t\tint WA = 0;\n\t\tint TLE = 0;\n\t\tint RE = 0;\n\n\t\tfor(int i = 0; i < N ; i++) {\n\t\t\tString result = sc.nextLine();\n\t\t\tswitch(result) {\n\t\t\tcase \"AC\":\n\t\t\t\tAC ++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\tWA ++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\tTLE ++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tRE ++;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + AC);\n\t\tSystem.out.println(\"WA x \" + WA);\n\t\tSystem.out.println(\"TLE x \" + TLE);\n\t\tSystem.out.println(\"RE x \" + RE);\n\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = Integer.parseInt(sc.nextLine());\n\t\tint AC = 0;\n\t\tint WA = 0;\n\t\tint TLE = 0;\n\t\tint RE = 0;\n\n\t\tfor(int i = 0; i < N ; i++) {\n\t\t\tString result = sc.nextLine();\n\t\t\tswitch(result) {\n\t\t\tcase \"AC\":\n\t\t\t\tAC ++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\tWA ++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\tTLE ++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tRE ++;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + AC);\n\t\tSystem.out.println(\"WA x \" + WA);\n\t\tSystem.out.println(\"TLE x \" + TLE);\n\t\tSystem.out.println(\"RE x \" + RE);\n\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = Integer.parseInt(sc.nextLine());\n\t\tint AC = 0;\n\t\tint WA = 0;\n\t\tint TLE = 0;\n\t\tint RE = 0;\n\n\t\tfor(int i = 0; i < N ; i++) {\n\t\t\tString result = sc.nextLine();\n\t\t\tswitch(result) {\n\t\t\tcase \"AC\":\n\t\t\t\tAC ++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\tWA ++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\tTLE ++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tRE ++;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + AC);\n\t\tSystem.out.println(\"WA x \" + WA);\n\t\tSystem.out.println(\"TLE x \" + TLE);\n\t\tSystem.out.println(\"RE x \" + RE);\n\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = Integer.parseInt(sc.nextLine());",
"N",
"Integer.parseInt(sc.nextLine())",
"Integer.parseInt",
"Integer",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int AC = 0;",
"AC",
"0",
"int WA = 0;",
"WA",
"0",
"int TLE = 0;",
"TLE",
"0",
"int RE = 0;",
"RE",
"0",
"for(int i = 0; i < N ; i++) {\n\t\t\tString result = sc.nextLine();\n\t\t\tswitch(result) {\n\t\t\tcase \"AC\":\n\t\t\t\tAC ++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\tWA ++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\tTLE ++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tRE ++;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tString result = sc.nextLine();\n\t\t\tswitch(result) {\n\t\t\tcase \"AC\":\n\t\t\t\tAC ++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\tWA ++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\tTLE ++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tRE ++;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString result = sc.nextLine();\n\t\t\tswitch(result) {\n\t\t\tcase \"AC\":\n\t\t\t\tAC ++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\tWA ++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\tTLE ++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tRE ++;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"String result = sc.nextLine();",
"result",
"sc.nextLine()",
"sc.nextLine",
"sc",
"switch(result) {\n\t\t\tcase \"AC\":\n\t\t\t\tAC ++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\tWA ++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\tTLE ++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tRE ++;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}",
"result",
"case \"AC\":",
"\"AC\"",
"case \"AC\":",
"AC ++",
"AC",
"break;",
"case \"WA\":",
"\"WA\"",
"case \"WA\":",
"WA ++",
"WA",
"break;",
"case \"TLE\":",
"\"TLE\"",
"case \"TLE\":",
"TLE ++",
"TLE",
"break;",
"case \"RE\":",
"\"RE\"",
"case \"RE\":",
"RE ++",
"RE",
"break;",
"default:",
"default:",
"break;",
"System.out.println(\"AC x \" + AC)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + AC",
"\"AC x \"",
"AC",
"System.out.println(\"WA x \" + WA)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + WA",
"\"WA x \"",
"WA",
"System.out.println(\"TLE x \" + TLE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + TLE",
"\"TLE x \"",
"TLE",
"System.out.println(\"RE x \" + RE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + RE",
"\"RE x \"",
"RE",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = Integer.parseInt(sc.nextLine());\n\t\tint AC = 0;\n\t\tint WA = 0;\n\t\tint TLE = 0;\n\t\tint RE = 0;\n\n\t\tfor(int i = 0; i < N ; i++) {\n\t\t\tString result = sc.nextLine();\n\t\t\tswitch(result) {\n\t\t\tcase \"AC\":\n\t\t\t\tAC ++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\tWA ++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\tTLE ++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tRE ++;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + AC);\n\t\tSystem.out.println(\"WA x \" + WA);\n\t\tSystem.out.println(\"TLE x \" + TLE);\n\t\tSystem.out.println(\"RE x \" + RE);\n\n\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = Integer.parseInt(sc.nextLine());\n\t\tint AC = 0;\n\t\tint WA = 0;\n\t\tint TLE = 0;\n\t\tint RE = 0;\n\n\t\tfor(int i = 0; i < N ; i++) {\n\t\t\tString result = sc.nextLine();\n\t\t\tswitch(result) {\n\t\t\tcase \"AC\":\n\t\t\t\tAC ++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\tWA ++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\tTLE ++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tRE ++;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + AC);\n\t\tSystem.out.println(\"WA x \" + WA);\n\t\tSystem.out.println(\"TLE x \" + TLE);\n\t\tSystem.out.println(\"RE x \" + RE);\n\n\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = Integer.parseInt(sc.nextLine());
int AC = 0;
int WA = 0;
int TLE = 0;
int RE = 0;
for(int i = 0; i < N ; i++) {
String result = sc.nextLine();
switch(result) {
case "AC":
AC ++;
break;
case "WA":
WA ++;
break;
case "TLE":
TLE ++;
break;
case "RE":
RE ++;
break;
default:
break;
}
}
System.out.println("AC x " + AC);
System.out.println("WA x " + WA);
System.out.println("TLE x " + TLE);
System.out.println("RE x " + RE);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
20,
41,
13,
39,
17,
17,
17,
17,
28,
13,
13,
30,
4,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
2,
4,
18,
13,
13,
17,
28,
13,
4,
18,
13,
30,
4,
18,
18,
13,
13,
2,
2,
18,
13,
40,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
89,
5
],
[
89,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
25,
28
],
[
25,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
30,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
34,
38
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
51,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
61,
66
],
[
8,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
67,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
79,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
79,
84
],
[
79,
85
],
[
6,
86
],
[
86,
87
],
[
0,
88
],
[
88,
89
],
[
88,
90
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt(),x = 0;\n Map<String,Integer> map = new LinkedHashMap<>();\n String[] items = {\"AC\",\"WA\",\"TLE\",\"RE\"};\n for (String s: items) map.put(s,0);\n for (int i = 0; i < a; i++) {\n String ans = sc.next();\n map.put(ans,map.get(ans)+1);\n }\n for(int n:map.values()) System.out.println(items[x++] + \" x \" + n);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt(),x = 0;\n Map<String,Integer> map = new LinkedHashMap<>();\n String[] items = {\"AC\",\"WA\",\"TLE\",\"RE\"};\n for (String s: items) map.put(s,0);\n for (int i = 0; i < a; i++) {\n String ans = sc.next();\n map.put(ans,map.get(ans)+1);\n }\n for(int n:map.values()) System.out.println(items[x++] + \" x \" + n);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt(),x = 0;\n Map<String,Integer> map = new LinkedHashMap<>();\n String[] items = {\"AC\",\"WA\",\"TLE\",\"RE\"};\n for (String s: items) map.put(s,0);\n for (int i = 0; i < a; i++) {\n String ans = sc.next();\n map.put(ans,map.get(ans)+1);\n }\n for(int n:map.values()) System.out.println(items[x++] + \" x \" + n);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt(),x = 0;\n Map<String,Integer> map = new LinkedHashMap<>();\n String[] items = {\"AC\",\"WA\",\"TLE\",\"RE\"};\n for (String s: items) map.put(s,0);\n for (int i = 0; i < a; i++) {\n String ans = sc.next();\n map.put(ans,map.get(ans)+1);\n }\n for(int n:map.values()) System.out.println(items[x++] + \" x \" + n);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt()",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"x = 0;",
"x",
"0",
"Map<String,Integer> map = new LinkedHashMap<>();",
"map",
"new LinkedHashMap<>()",
"String[] items = {\"AC\",\"WA\",\"TLE\",\"RE\"};",
"items",
"{\"AC\",\"WA\",\"TLE\",\"RE\"}",
"\"AC\"",
"\"WA\"",
"\"TLE\"",
"\"RE\"",
"for (String s: items) map.put(s,0);",
"String s",
"items",
"map.put(s,0);",
"map.put(s,0)",
"map.put",
"map",
"s",
"0",
"for (int i = 0; i < a; i++) {\n String ans = sc.next();\n map.put(ans,map.get(ans)+1);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a",
"i",
"a",
"i++",
"i++",
"i",
"{\n String ans = sc.next();\n map.put(ans,map.get(ans)+1);\n }",
"{\n String ans = sc.next();\n map.put(ans,map.get(ans)+1);\n }",
"String ans = sc.next();",
"ans",
"sc.next()",
"sc.next",
"sc",
"map.put(ans,map.get(ans)+1)",
"map.put",
"map",
"ans",
"map.get(ans)+1",
"map.get(ans)",
"map.get",
"map",
"ans",
"1",
"for(int n:map.values()) System.out.println(items[x++] + \" x \" + n);",
"int n",
"map.values()",
"map.values",
"map",
"System.out.println(items[x++] + \" x \" + n);",
"System.out.println(items[x++] + \" x \" + n)",
"System.out.println",
"System.out",
"System",
"System.out",
"items[x++] + \" x \" + n",
"items[x++] + \" x \" + n",
"items[x++]",
"items",
"x++",
"x",
"\" x \"",
"n",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt(),x = 0;\n Map<String,Integer> map = new LinkedHashMap<>();\n String[] items = {\"AC\",\"WA\",\"TLE\",\"RE\"};\n for (String s: items) map.put(s,0);\n for (int i = 0; i < a; i++) {\n String ans = sc.next();\n map.put(ans,map.get(ans)+1);\n }\n for(int n:map.values()) System.out.println(items[x++] + \" x \" + n);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt(),x = 0;\n Map<String,Integer> map = new LinkedHashMap<>();\n String[] items = {\"AC\",\"WA\",\"TLE\",\"RE\"};\n for (String s: items) map.put(s,0);\n for (int i = 0; i < a; i++) {\n String ans = sc.next();\n map.put(ans,map.get(ans)+1);\n }\n for(int n:map.values()) System.out.println(items[x++] + \" x \" + n);\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt(),x = 0;
Map<String,Integer> map = new LinkedHashMap<>();
String[] items = {"AC","WA","TLE","RE"};
for (String s: items) map.put(s,0);
for (int i = 0; i < a; i++) {
String ans = sc.next();
map.put(ans,map.get(ans)+1);
}
for(int n:map.values()) System.out.println(items[x++] + " x " + n);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
39,
17,
17,
17,
17,
41,
13,
20,
17,
11,
1,
41,
13,
4,
18,
13,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
17,
4,
18,
18,
13,
13,
17,
40,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
102,
5
],
[
102,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
14,
16
],
[
14,
17
],
[
14,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
23,
30
],
[
30,
31
],
[
30,
32
],
[
23,
33
],
[
33,
34
],
[
34,
35
],
[
23,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
43,
51
],
[
51,
52
],
[
52,
53
],
[
43,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
57,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
56,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
8,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
72,
80
],
[
80,
81
],
[
81,
82
],
[
72,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
91,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
6,
99
],
[
99,
100
],
[
0,
101
],
[
101,
102
],
[
101,
103
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString[] s = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n\t\tint[] ans = new int[4];\n\t\tfor (int N = sc.nextInt(); N > 0; N--) {\n\t\t\tString t = sc.next();\n\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\tif (t.charAt(0) == s[i].charAt(0))\n\t\t\t\t\tans[i]++;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tSystem.out.println(s[i] + \" x \" + ans[i]);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString[] s = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n\t\tint[] ans = new int[4];\n\t\tfor (int N = sc.nextInt(); N > 0; N--) {\n\t\t\tString t = sc.next();\n\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\tif (t.charAt(0) == s[i].charAt(0))\n\t\t\t\t\tans[i]++;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tSystem.out.println(s[i] + \" x \" + ans[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString[] s = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n\t\tint[] ans = new int[4];\n\t\tfor (int N = sc.nextInt(); N > 0; N--) {\n\t\t\tString t = sc.next();\n\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\tif (t.charAt(0) == s[i].charAt(0))\n\t\t\t\t\tans[i]++;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tSystem.out.println(s[i] + \" x \" + ans[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString[] s = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n\t\tint[] ans = new int[4];\n\t\tfor (int N = sc.nextInt(); N > 0; N--) {\n\t\t\tString t = sc.next();\n\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\tif (t.charAt(0) == s[i].charAt(0))\n\t\t\t\t\tans[i]++;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tSystem.out.println(s[i] + \" x \" + ans[i]);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String[] s = {\"AC\", \"WA\", \"TLE\", \"RE\"};",
"s",
"{\"AC\", \"WA\", \"TLE\", \"RE\"}",
"\"AC\"",
"\"WA\"",
"\"TLE\"",
"\"RE\"",
"int[] ans = new int[4];",
"ans",
"new int[4]",
"4",
"for (int N = sc.nextInt(); N > 0; N--) {\n\t\t\tString t = sc.next();\n\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\tif (t.charAt(0) == s[i].charAt(0))\n\t\t\t\t\tans[i]++;\n\t\t\t}\n\t\t}",
"int N = sc.nextInt();",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"N > 0",
"N",
"0",
"N--",
"N--",
"N",
"{\n\t\t\tString t = sc.next();\n\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\tif (t.charAt(0) == s[i].charAt(0))\n\t\t\t\t\tans[i]++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString t = sc.next();\n\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\tif (t.charAt(0) == s[i].charAt(0))\n\t\t\t\t\tans[i]++;\n\t\t\t}\n\t\t}",
"String t = sc.next();",
"t",
"sc.next()",
"sc.next",
"sc",
"for (int i = 0; i < 4; i++) {\n\t\t\t\tif (t.charAt(0) == s[i].charAt(0))\n\t\t\t\t\tans[i]++;\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\t\tif (t.charAt(0) == s[i].charAt(0))\n\t\t\t\t\tans[i]++;\n\t\t\t}",
"{\n\t\t\t\tif (t.charAt(0) == s[i].charAt(0))\n\t\t\t\t\tans[i]++;\n\t\t\t}",
"if (t.charAt(0) == s[i].charAt(0))\n\t\t\t\t\tans[i]++;",
"t.charAt(0) == s[i].charAt(0)",
"t.charAt(0)",
"t.charAt",
"t",
"0",
"s[i].charAt(0)",
"s[i].charAt",
"s[i]",
"s",
"i",
"0",
"ans[i]++",
"ans[i]",
"ans",
"i",
"for (int i = 0; i < 4; i++) {\n\t\t\tSystem.out.println(s[i] + \" x \" + ans[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(s[i] + \" x \" + ans[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(s[i] + \" x \" + ans[i]);\n\t\t}",
"System.out.println(s[i] + \" x \" + ans[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"s[i] + \" x \" + ans[i]",
"s[i] + \" x \" + ans[i]",
"s[i]",
"s",
"i",
"\" x \"",
"ans[i]",
"ans",
"i",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString[] s = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n\t\tint[] ans = new int[4];\n\t\tfor (int N = sc.nextInt(); N > 0; N--) {\n\t\t\tString t = sc.next();\n\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\tif (t.charAt(0) == s[i].charAt(0))\n\t\t\t\t\tans[i]++;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tSystem.out.println(s[i] + \" x \" + ans[i]);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString[] s = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n\t\tint[] ans = new int[4];\n\t\tfor (int N = sc.nextInt(); N > 0; N--) {\n\t\t\tString t = sc.next();\n\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\tif (t.charAt(0) == s[i].charAt(0))\n\t\t\t\t\tans[i]++;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tSystem.out.println(s[i] + \" x \" + ans[i]);\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String[] s = {"AC", "WA", "TLE", "RE"};
int[] ans = new int[4];
for (int N = sc.nextInt(); N > 0; N--) {
String t = sc.next();
for (int i = 0; i < 4; i++) {
if (t.charAt(0) == s[i].charAt(0))
ans[i]++;
}
}
for (int i = 0; i < 4; i++) {
System.out.println(s[i] + " x " + ans[i]);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
35,
13,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
23,
13,
6,
13,
41,
13,
20,
41,
13,
12,
13,
30,
38,
5,
13,
30,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
175,
14
],
[
175,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
17,
26
],
[
26,
27
],
[
26,
28
],
[
17,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
42,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
48,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
48,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
48,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
17,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
89,
91
],
[
17,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
99,
101
],
[
17,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
109,
111
],
[
17,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
119,
121
],
[
15,
122
],
[
122,
123
],
[
175,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
126,
128
],
[
124,
129
],
[
129,
130
],
[
124,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
139,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
133,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
124,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
160,
163
],
[
163,
164
],
[
124,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
169,
172
],
[
172,
173
],
[
0,
174
],
[
174,
175
],
[
174,
176
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n\n int n = sc.nextInt();\n int[] ans = new int[4]; // AC, WA, TLE, RE\n\n for (int i = 0; i < n; i++) {\n String s = sc.next();\n switch (s) {\n case \"AC\": ans[0]++; break;\n case \"WA\": ans[1]++; break;\n case \"TLE\": ans[2]++; break;\n case \"RE\": ans[3]++; break;\n }\n }\n\n System.out.println(\"AC x \" + ans[0]);\n System.out.println(\"WA x \" + ans[1]);\n System.out.println(\"TLE x \" + ans[2]);\n System.out.println(\"RE x \" + ans[3]);\n }\n\n static class MyScanner {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15);\n StringTokenizer tokenizer;\n\n String next() {\n try {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(reader.readLine());\n }\n } catch (IOException ignored) {\n }\n return tokenizer.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n\n int n = sc.nextInt();\n int[] ans = new int[4]; // AC, WA, TLE, RE\n\n for (int i = 0; i < n; i++) {\n String s = sc.next();\n switch (s) {\n case \"AC\": ans[0]++; break;\n case \"WA\": ans[1]++; break;\n case \"TLE\": ans[2]++; break;\n case \"RE\": ans[3]++; break;\n }\n }\n\n System.out.println(\"AC x \" + ans[0]);\n System.out.println(\"WA x \" + ans[1]);\n System.out.println(\"TLE x \" + ans[2]);\n System.out.println(\"RE x \" + ans[3]);\n }\n\n static class MyScanner {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15);\n StringTokenizer tokenizer;\n\n String next() {\n try {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(reader.readLine());\n }\n } catch (IOException ignored) {\n }\n return tokenizer.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n\n int n = sc.nextInt();\n int[] ans = new int[4]; // AC, WA, TLE, RE\n\n for (int i = 0; i < n; i++) {\n String s = sc.next();\n switch (s) {\n case \"AC\": ans[0]++; break;\n case \"WA\": ans[1]++; break;\n case \"TLE\": ans[2]++; break;\n case \"RE\": ans[3]++; break;\n }\n }\n\n System.out.println(\"AC x \" + ans[0]);\n System.out.println(\"WA x \" + ans[1]);\n System.out.println(\"TLE x \" + ans[2]);\n System.out.println(\"RE x \" + ans[3]);\n }",
"main",
"{\n MyScanner sc = new MyScanner();\n\n int n = sc.nextInt();\n int[] ans = new int[4]; // AC, WA, TLE, RE\n\n for (int i = 0; i < n; i++) {\n String s = sc.next();\n switch (s) {\n case \"AC\": ans[0]++; break;\n case \"WA\": ans[1]++; break;\n case \"TLE\": ans[2]++; break;\n case \"RE\": ans[3]++; break;\n }\n }\n\n System.out.println(\"AC x \" + ans[0]);\n System.out.println(\"WA x \" + ans[1]);\n System.out.println(\"TLE x \" + ans[2]);\n System.out.println(\"RE x \" + ans[3]);\n }",
"MyScanner sc = new MyScanner();",
"sc",
"new MyScanner()",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] ans = new int[4];",
"ans",
"new int[4]",
"4",
"for (int i = 0; i < n; i++) {\n String s = sc.next();\n switch (s) {\n case \"AC\": ans[0]++; break;\n case \"WA\": ans[1]++; break;\n case \"TLE\": ans[2]++; break;\n case \"RE\": ans[3]++; break;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String s = sc.next();\n switch (s) {\n case \"AC\": ans[0]++; break;\n case \"WA\": ans[1]++; break;\n case \"TLE\": ans[2]++; break;\n case \"RE\": ans[3]++; break;\n }\n }",
"{\n String s = sc.next();\n switch (s) {\n case \"AC\": ans[0]++; break;\n case \"WA\": ans[1]++; break;\n case \"TLE\": ans[2]++; break;\n case \"RE\": ans[3]++; break;\n }\n }",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"switch (s) {\n case \"AC\": ans[0]++; break;\n case \"WA\": ans[1]++; break;\n case \"TLE\": ans[2]++; break;\n case \"RE\": ans[3]++; break;\n }",
"s",
"case \"AC\":",
"\"AC\"",
"case \"AC\":",
"ans[0]++",
"ans[0]",
"ans",
"0",
"break;",
"case \"WA\":",
"\"WA\"",
"case \"WA\":",
"ans[1]++",
"ans[1]",
"ans",
"1",
"break;",
"case \"TLE\":",
"\"TLE\"",
"case \"TLE\":",
"ans[2]++",
"ans[2]",
"ans",
"2",
"break;",
"case \"RE\":",
"\"RE\"",
"case \"RE\":",
"ans[3]++",
"ans[3]",
"ans",
"3",
"break;",
"System.out.println(\"AC x \" + ans[0])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + ans[0]",
"\"AC x \"",
"ans[0]",
"ans",
"0",
"System.out.println(\"WA x \" + ans[1])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + ans[1]",
"\"WA x \"",
"ans[1]",
"ans",
"1",
"System.out.println(\"TLE x \" + ans[2])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + ans[2]",
"\"TLE x \"",
"ans[2]",
"ans",
"2",
"System.out.println(\"RE x \" + ans[3])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + ans[3]",
"\"RE x \"",
"ans[3]",
"ans",
"3",
"String[] args",
"args",
"static class MyScanner {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15);\n StringTokenizer tokenizer;\n\n String next() {\n try {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(reader.readLine());\n }\n } catch (IOException ignored) {\n }\n return tokenizer.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }",
"MyScanner",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15);",
"reader",
"new BufferedReader(new InputStreamReader(System.in), 1 << 15)",
"StringTokenizer tokenizer;",
"tokenizer",
"String next() {\n try {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(reader.readLine());\n }\n } catch (IOException ignored) {\n }\n return tokenizer.nextToken();\n }",
"next",
"{\n try {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(reader.readLine());\n }\n } catch (IOException ignored) {\n }\n return tokenizer.nextToken();\n }",
"try {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(reader.readLine());\n }\n } catch (IOException ignored) {\n }",
"catch (IOException ignored) {\n }",
"IOException ignored",
"{\n }",
"{\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(reader.readLine());\n }\n }",
"while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(reader.readLine());\n }",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n tokenizer = new StringTokenizer(reader.readLine());\n }",
"tokenizer = new StringTokenizer(reader.readLine())",
"tokenizer",
"new StringTokenizer(reader.readLine())",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public class Main {\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n\n int n = sc.nextInt();\n int[] ans = new int[4]; // AC, WA, TLE, RE\n\n for (int i = 0; i < n; i++) {\n String s = sc.next();\n switch (s) {\n case \"AC\": ans[0]++; break;\n case \"WA\": ans[1]++; break;\n case \"TLE\": ans[2]++; break;\n case \"RE\": ans[3]++; break;\n }\n }\n\n System.out.println(\"AC x \" + ans[0]);\n System.out.println(\"WA x \" + ans[1]);\n System.out.println(\"TLE x \" + ans[2]);\n System.out.println(\"RE x \" + ans[3]);\n }\n\n static class MyScanner {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15);\n StringTokenizer tokenizer;\n\n String next() {\n try {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(reader.readLine());\n }\n } catch (IOException ignored) {\n }\n return tokenizer.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n\n int n = sc.nextInt();\n int[] ans = new int[4]; // AC, WA, TLE, RE\n\n for (int i = 0; i < n; i++) {\n String s = sc.next();\n switch (s) {\n case \"AC\": ans[0]++; break;\n case \"WA\": ans[1]++; break;\n case \"TLE\": ans[2]++; break;\n case \"RE\": ans[3]++; break;\n }\n }\n\n System.out.println(\"AC x \" + ans[0]);\n System.out.println(\"WA x \" + ans[1]);\n System.out.println(\"TLE x \" + ans[2]);\n System.out.println(\"RE x \" + ans[3]);\n }\n\n static class MyScanner {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15);\n StringTokenizer tokenizer;\n\n String next() {\n try {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(reader.readLine());\n }\n } catch (IOException ignored) {\n }\n return tokenizer.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) {
MyScanner sc = new MyScanner();
int n = sc.nextInt();
int[] ans = new int[4]; // AC, WA, TLE, RE
for (int i = 0; i < n; i++) {
String s = sc.next();
switch (s) {
case "AC": ans[0]++; break;
case "WA": ans[1]++; break;
case "TLE": ans[2]++; break;
case "RE": ans[3]++; break;
}
}
System.out.println("AC x " + ans[0]);
System.out.println("WA x " + ans[1]);
System.out.println("TLE x " + ans[2]);
System.out.println("RE x " + ans[3]);
}
static class MyScanner {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15);
StringTokenizer tokenizer;
String next() {
try {
while (tokenizer == null || !tokenizer.hasMoreTokens()) {
tokenizer = new StringTokenizer(reader.readLine());
}
} catch (IOException ignored) {
}
return tokenizer.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
2,
17,
17,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
39,
17,
17,
17,
17,
41,
13,
20,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
18,
13,
13,
18,
13,
13,
40,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
2,
2,
18,
13,
13,
17,
18,
13,
13,
12,
13,
30,
4,
18,
20,
23,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
4,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
6,
13,
41,
13,
12,
13,
30,
4,
13,
18,
13,
13,
12,
13,
30,
0,
18,
36,
13,
20,
23,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
4,
18,
18,
36,
13,
12,
13,
30,
41,
13,
4,
13,
14,
2,
2,
13,
18,
13,
13,
2,
13,
18,
13,
13,
37,
20,
29,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
29,
40,
17,
30,
41,
13,
17,
41,
13,
4,
18,
13,
42,
2,
2,
2,
2,
13,
17,
2,
17,
13,
2,
13,
17,
2,
13,
17,
30,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
13,
4,
18,
13,
41,
13,
2,
13,
17,
42,
17,
30,
0,
13,
4,
18,
13,
14,
2,
2,
13,
17,
2,
17,
13,
29,
2,
13,
13,
0,
13,
17,
0,
13,
2,
13,
17,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
29,
18,
13,
13,
30,
41,
13,
17,
41,
13,
4,
18,
13,
42,
2,
2,
2,
2,
13,
17,
2,
17,
13,
2,
13,
17,
2,
13,
17,
30,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
13,
4,
18,
13,
41,
13,
2,
13,
17,
42,
17,
30,
0,
13,
4,
18,
13,
14,
2,
2,
13,
17,
2,
17,
13,
3,
0,
13,
17,
0,
13,
2,
13,
17,
14,
2,
13,
17,
29,
2,
13,
13,
41,
13,
17,
0,
13,
4,
18,
13,
42,
2,
2,
17,
13,
2,
13,
17,
30,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
17,
0,
13,
4,
18,
13,
29,
2,
2,
13,
13,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
29,
17,
30,
41,
13,
4,
18,
13,
42,
4,
18,
13,
13,
30,
0,
13,
4,
18,
13,
29,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
29,
17,
30,
41,
13,
20,
41,
13,
4,
18,
13,
42,
4,
18,
13,
13,
30,
0,
13,
4,
18,
13,
42,
2,
2,
13,
40,
17,
40,
4,
18,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
18,
13,
29,
4,
18,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
29,
17,
30,
41,
13,
20,
41,
13,
4,
18,
13,
42,
2,
2,
13,
40,
17,
2,
13,
17,
30,
4,
18,
13,
13,
0,
13,
4,
18,
13,
29,
4,
18,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
4,
13,
17,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
2,
13,
17,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
4,
13,
17,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
2,
13,
17,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
824,
11
],
[
824,
12
],
[
12,
13
],
[
824,
14
],
[
14,
15
],
[
824,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
18,
20
],
[
824,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
23,
29
],
[
29,
30
],
[
29,
31
],
[
23,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
50,
51
],
[
23,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
54,
57
],
[
54,
58
],
[
23,
59
],
[
59,
60
],
[
59,
61
],
[
62,
63
],
[
62,
64
],
[
23,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
65,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
85,
87
],
[
78,
88
],
[
88,
89
],
[
89,
90
],
[
78,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
99,
100
],
[
99,
101
],
[
93,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
23,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
113,
115
],
[
106,
116
],
[
116,
117
],
[
117,
118
],
[
106,
119
],
[
120,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
121,
124
],
[
125,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
125,
129
],
[
125,
130
],
[
130,
131
],
[
130,
132
],
[
824,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
133,
139
],
[
139,
140
],
[
824,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
147,
148
],
[
147,
149
],
[
143,
150
],
[
150,
151
],
[
143,
152
],
[
152,
153
],
[
153,
154
],
[
143,
155
],
[
155,
156
],
[
156,
157
],
[
143,
158
],
[
158,
159
],
[
159,
160
],
[
824,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
161,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
170,
172
],
[
161,
173
],
[
173,
174
],
[
173,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
176,
180
],
[
173,
181
],
[
181,
182
],
[
161,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
186,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
161,
199
],
[
199,
200
],
[
199,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
204,
205
],
[
201,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
210,
211
],
[
210,
212
],
[
207,
213
],
[
213,
214
],
[
213,
215
],
[
215,
216
],
[
215,
217
],
[
206,
218
],
[
218,
219
],
[
201,
220
],
[
220,
221
],
[
161,
222
],
[
222,
223
],
[
222,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
228,
232
],
[
232,
233
],
[
233,
234
],
[
225,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
235,
239
],
[
239,
240
],
[
239,
241
],
[
241,
242
],
[
242,
243
],
[
235,
244
],
[
244,
245
],
[
246,
246
],
[
246,
247
],
[
247,
248
],
[
248,
249
],
[
248,
250
],
[
247,
251
],
[
251,
252
],
[
251,
253
],
[
246,
254
],
[
254,
255
],
[
254,
256
],
[
246,
257
],
[
257,
258
],
[
257,
259
],
[
244,
260
],
[
260,
261
],
[
261,
262
],
[
261,
263
],
[
263,
264
],
[
264,
265
],
[
235,
266
],
[
266,
267
],
[
267,
268
],
[
267,
269
],
[
266,
270
],
[
270,
271
],
[
271,
272
],
[
271,
273
],
[
273,
274
],
[
270,
275
],
[
275,
276
],
[
275,
277
],
[
277,
278
],
[
278,
279
],
[
266,
280
],
[
280,
281
],
[
281,
282
],
[
281,
283
],
[
280,
284
],
[
284,
285
],
[
285,
286
],
[
285,
287
],
[
287,
288
],
[
288,
289
],
[
235,
290
],
[
290,
291
],
[
290,
292
],
[
292,
293
],
[
292,
294
],
[
235,
295
],
[
295,
296
],
[
295,
297
],
[
297,
298
],
[
298,
299
],
[
298,
300
],
[
300,
301
],
[
301,
302
],
[
297,
303
],
[
303,
304
],
[
304,
305
],
[
305,
306
],
[
305,
307
],
[
304,
308
],
[
308,
309
],
[
308,
310
],
[
303,
311
],
[
311,
312
],
[
312,
313
],
[
312,
314
],
[
297,
315
],
[
315,
316
],
[
315,
317
],
[
297,
318
],
[
318,
319
],
[
318,
320
],
[
320,
321
],
[
320,
322
],
[
161,
323
],
[
323,
324
],
[
323,
325
],
[
325,
326
],
[
326,
327
],
[
327,
328
],
[
327,
329
],
[
329,
330
],
[
330,
331
],
[
331,
332
],
[
329,
333
],
[
333,
334
],
[
334,
335
],
[
334,
336
],
[
326,
337
],
[
337,
338
],
[
338,
339
],
[
338,
340
],
[
337,
341
],
[
341,
342
],
[
341,
343
],
[
343,
344
],
[
344,
345
],
[
337,
346
],
[
346,
347
],
[
348,
348
],
[
348,
349
],
[
349,
350
],
[
350,
351
],
[
350,
352
],
[
349,
353
],
[
353,
354
],
[
353,
355
],
[
348,
356
],
[
356,
357
],
[
356,
358
],
[
348,
359
],
[
359,
360
],
[
359,
361
],
[
346,
362
],
[
362,
363
],
[
363,
364
],
[
363,
365
],
[
365,
366
],
[
366,
367
],
[
337,
368
],
[
368,
369
],
[
369,
370
],
[
369,
371
],
[
368,
372
],
[
372,
373
],
[
373,
374
],
[
373,
375
],
[
375,
376
],
[
372,
377
],
[
377,
378
],
[
377,
379
],
[
379,
380
],
[
380,
381
],
[
368,
382
],
[
382,
383
],
[
383,
384
],
[
383,
385
],
[
382,
386
],
[
386,
387
],
[
387,
388
],
[
387,
389
],
[
389,
390
],
[
390,
391
],
[
337,
392
],
[
392,
393
],
[
392,
394
],
[
394,
395
],
[
394,
396
],
[
337,
397
],
[
397,
398
],
[
397,
399
],
[
399,
400
],
[
400,
401
],
[
400,
402
],
[
402,
403
],
[
403,
404
],
[
399,
405
],
[
405,
406
],
[
406,
407
],
[
407,
408
],
[
407,
409
],
[
406,
410
],
[
410,
411
],
[
410,
412
],
[
405,
413
],
[
399,
414
],
[
414,
415
],
[
414,
416
],
[
399,
417
],
[
417,
418
],
[
417,
419
],
[
419,
420
],
[
419,
421
],
[
337,
422
],
[
422,
423
],
[
423,
424
],
[
423,
425
],
[
422,
426
],
[
426,
427
],
[
427,
428
],
[
427,
429
],
[
337,
430
],
[
430,
431
],
[
430,
432
],
[
337,
433
],
[
433,
434
],
[
433,
435
],
[
435,
436
],
[
436,
437
],
[
337,
438
],
[
438,
439
],
[
439,
440
],
[
440,
441
],
[
440,
442
],
[
439,
443
],
[
443,
444
],
[
443,
445
],
[
438,
446
],
[
446,
447
],
[
447,
448
],
[
447,
449
],
[
446,
450
],
[
450,
451
],
[
450,
452
],
[
452,
453
],
[
452,
454
],
[
446,
455
],
[
455,
456
],
[
455,
457
],
[
446,
458
],
[
458,
459
],
[
458,
460
],
[
460,
461
],
[
461,
462
],
[
337,
463
],
[
463,
464
],
[
464,
465
],
[
465,
466
],
[
465,
467
],
[
464,
468
],
[
161,
469
],
[
469,
470
],
[
469,
471
],
[
471,
472
],
[
472,
473
],
[
473,
474
],
[
473,
475
],
[
475,
476
],
[
476,
477
],
[
477,
478
],
[
475,
479
],
[
479,
480
],
[
472,
481
],
[
481,
482
],
[
482,
483
],
[
482,
484
],
[
484,
485
],
[
485,
486
],
[
481,
487
],
[
487,
488
],
[
488,
489
],
[
489,
490
],
[
488,
491
],
[
487,
492
],
[
492,
493
],
[
493,
494
],
[
493,
495
],
[
495,
496
],
[
496,
497
],
[
481,
498
],
[
498,
499
],
[
161,
500
],
[
500,
501
],
[
500,
502
],
[
502,
503
],
[
503,
504
],
[
504,
505
],
[
504,
506
],
[
506,
507
],
[
507,
508
],
[
508,
509
],
[
506,
510
],
[
510,
511
],
[
503,
512
],
[
512,
513
],
[
513,
514
],
[
513,
515
],
[
512,
516
],
[
516,
517
],
[
516,
518
],
[
518,
519
],
[
519,
520
],
[
512,
521
],
[
521,
522
],
[
522,
523
],
[
523,
524
],
[
522,
525
],
[
521,
526
],
[
526,
527
],
[
527,
528
],
[
527,
529
],
[
529,
530
],
[
530,
531
],
[
512,
532
],
[
532,
533
],
[
533,
534
],
[
534,
535
],
[
534,
536
],
[
536,
537
],
[
533,
538
],
[
538,
539
],
[
539,
540
],
[
540,
541
],
[
539,
542
],
[
532,
543
],
[
543,
544
],
[
544,
545
],
[
545,
546
],
[
544,
547
],
[
543,
548
],
[
548,
549
],
[
548,
550
],
[
550,
551
],
[
551,
552
],
[
512,
553
],
[
553,
554
],
[
554,
555
],
[
555,
556
],
[
161,
557
],
[
557,
558
],
[
557,
559
],
[
559,
560
],
[
560,
561
],
[
561,
562
],
[
561,
563
],
[
563,
564
],
[
564,
565
],
[
565,
566
],
[
563,
567
],
[
567,
568
],
[
560,
569
],
[
569,
570
],
[
570,
571
],
[
570,
572
],
[
569,
573
],
[
573,
574
],
[
573,
575
],
[
575,
576
],
[
576,
577
],
[
569,
578
],
[
578,
579
],
[
579,
580
],
[
580,
581
],
[
580,
582
],
[
582,
583
],
[
579,
584
],
[
584,
585
],
[
584,
586
],
[
578,
587
],
[
587,
588
],
[
588,
589
],
[
589,
590
],
[
588,
591
],
[
587,
592
],
[
592,
593
],
[
592,
594
],
[
594,
595
],
[
595,
596
],
[
569,
597
],
[
597,
598
],
[
598,
599
],
[
599,
600
],
[
161,
601
],
[
601,
602
],
[
601,
603
],
[
603,
604
],
[
604,
605
],
[
604,
606
],
[
603,
608
],
[
608,
609
],
[
609,
610
],
[
610,
611
],
[
610,
612
],
[
608,
613
],
[
613,
614
],
[
613,
615
],
[
608,
616
],
[
616,
617
],
[
617,
618
],
[
608,
619
],
[
620,
620
],
[
620,
621
],
[
621,
622
],
[
622,
623
],
[
622,
624
],
[
621,
625
],
[
625,
626
],
[
603,
627
],
[
627,
628
],
[
601,
629
],
[
629,
630
],
[
161,
631
],
[
631,
632
],
[
631,
633
],
[
633,
634
],
[
634,
635
],
[
634,
636
],
[
633,
638
],
[
638,
639
],
[
639,
640
],
[
640,
641
],
[
640,
642
],
[
638,
643
],
[
643,
644
],
[
643,
645
],
[
638,
646
],
[
646,
647
],
[
647,
648
],
[
638,
649
],
[
650,
650
],
[
650,
651
],
[
651,
652
],
[
652,
653
],
[
652,
654
],
[
651,
655
],
[
655,
656
],
[
656,
657
],
[
655,
658
],
[
633,
659
],
[
659,
660
],
[
631,
661
],
[
661,
662
],
[
161,
663
],
[
663,
664
],
[
663,
665
],
[
665,
666
],
[
666,
667
],
[
666,
668
],
[
669,
670
],
[
669,
671
],
[
665,
672
],
[
672,
673
],
[
673,
674
],
[
674,
675
],
[
674,
676
],
[
672,
677
],
[
677,
678
],
[
677,
679
],
[
672,
680
],
[
680,
681
],
[
681,
682
],
[
672,
683
],
[
684,
684
],
[
684,
685
],
[
685,
686
],
[
686,
687
],
[
686,
688
],
[
688,
689
],
[
688,
690
],
[
685,
691
],
[
691,
692
],
[
665,
693
],
[
693,
694
],
[
663,
695
],
[
695,
696
],
[
161,
697
],
[
697,
698
],
[
697,
699
],
[
699,
700
],
[
700,
701
],
[
700,
702
],
[
699,
704
],
[
704,
705
],
[
705,
706
],
[
706,
707
],
[
706,
708
],
[
704,
709
],
[
709,
710
],
[
709,
711
],
[
704,
712
],
[
712,
713
],
[
713,
714
],
[
704,
715
],
[
716,
716
],
[
716,
717
],
[
717,
718
],
[
718,
719
],
[
718,
720
],
[
717,
721
],
[
721,
722
],
[
699,
723
],
[
723,
724
],
[
697,
725
],
[
725,
726
],
[
161,
727
],
[
727,
728
],
[
727,
729
],
[
729,
730
],
[
730,
731
],
[
730,
732
],
[
729,
734
],
[
734,
735
],
[
735,
736
],
[
736,
737
],
[
736,
738
],
[
734,
739
],
[
739,
740
],
[
739,
741
],
[
734,
742
],
[
742,
743
],
[
743,
744
],
[
734,
745
],
[
746,
746
],
[
746,
747
],
[
747,
748
],
[
748,
749
],
[
748,
750
],
[
747,
751
],
[
751,
752
],
[
752,
753
],
[
751,
754
],
[
729,
755
],
[
755,
756
],
[
727,
757
],
[
757,
758
],
[
161,
759
],
[
759,
760
],
[
759,
761
],
[
761,
762
],
[
762,
763
],
[
762,
764
],
[
765,
766
],
[
765,
767
],
[
761,
768
],
[
768,
769
],
[
769,
770
],
[
770,
771
],
[
770,
772
],
[
768,
773
],
[
773,
774
],
[
773,
775
],
[
768,
776
],
[
776,
777
],
[
777,
778
],
[
768,
779
],
[
780,
780
],
[
780,
781
],
[
781,
782
],
[
782,
783
],
[
782,
784
],
[
784,
785
],
[
784,
786
],
[
781,
787
],
[
787,
788
],
[
761,
789
],
[
789,
790
],
[
759,
791
],
[
791,
792
],
[
161,
793
],
[
793,
794
],
[
793,
795
],
[
795,
796
],
[
796,
797
],
[
796,
798
],
[
795,
800
],
[
800,
801
],
[
801,
802
],
[
802,
803
],
[
802,
804
],
[
800,
805
],
[
805,
806
],
[
805,
807
],
[
800,
808
],
[
808,
809
],
[
809,
810
],
[
800,
811
],
[
812,
812
],
[
812,
813
],
[
813,
814
],
[
814,
815
],
[
814,
816
],
[
813,
817
],
[
817,
818
],
[
795,
819
],
[
819,
820
],
[
793,
821
],
[
821,
822
],
[
0,
823
],
[
823,
824
],
[
823,
825
]
]
| [
"import java.io.*;\nimport java.math.BigDecimal;\nimport java.util.*;\n\n@SuppressWarnings(\"unused\")\npublic class Main {\n FastScanner in;\n PrintWriter out;\n final static int MOD = (int)1e9+7;\n \n void solve(){\n int N = in.nextInt();\n String[] S = new String[N];\n for(int i = 0; i < N; i++) S[i] = in.nextStr();\n \n String[] p = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n int[] C = new int[p.length];\n for(int i = 0; i < N; i++){\n for(int j = 0; j < p.length; j++){\n if(S[i].equals(p[j])) C[j]++;\n }\n }\n for(int i = 0; i < p.length; i++){\n out.println(p[i] + \" x \" + C[i]);\n }\n }\n \n public static void main(String[] args) {\n new Main().m();\n }\n \n private void m() {\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }\n \n static class FastScanner {\n private Reader input;\n \n public FastScanner() {this(System.in);}\n public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}\n public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n \n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n \n public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }\n \n public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }\n \n public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }\n \n public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }\n \n public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }\n \n public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }\n \n public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }\n \n public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }\n \n public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }\n \n public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n FastScanner in;\n PrintWriter out;\n final static int MOD = (int)1e9+7;\n \n void solve(){\n int N = in.nextInt();\n String[] S = new String[N];\n for(int i = 0; i < N; i++) S[i] = in.nextStr();\n \n String[] p = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n int[] C = new int[p.length];\n for(int i = 0; i < N; i++){\n for(int j = 0; j < p.length; j++){\n if(S[i].equals(p[j])) C[j]++;\n }\n }\n for(int i = 0; i < p.length; i++){\n out.println(p[i] + \" x \" + C[i]);\n }\n }\n \n public static void main(String[] args) {\n new Main().m();\n }\n \n private void m() {\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }\n \n static class FastScanner {\n private Reader input;\n \n public FastScanner() {this(System.in);}\n public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}\n public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n \n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n \n public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }\n \n public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }\n \n public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }\n \n public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }\n \n public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }\n \n public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }\n \n public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }\n \n public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }\n \n public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }\n \n public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }\n }\n}",
"Main",
"FastScanner in;",
"in",
"PrintWriter out;",
"out",
"final static int MOD = (int)1e9+7;",
"MOD",
"(int)1e9+7",
"(int)1e9",
"7",
"void solve(){\n int N = in.nextInt();\n String[] S = new String[N];\n for(int i = 0; i < N; i++) S[i] = in.nextStr();\n \n String[] p = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n int[] C = new int[p.length];\n for(int i = 0; i < N; i++){\n for(int j = 0; j < p.length; j++){\n if(S[i].equals(p[j])) C[j]++;\n }\n }\n for(int i = 0; i < p.length; i++){\n out.println(p[i] + \" x \" + C[i]);\n }\n }",
"solve",
"{\n int N = in.nextInt();\n String[] S = new String[N];\n for(int i = 0; i < N; i++) S[i] = in.nextStr();\n \n String[] p = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n int[] C = new int[p.length];\n for(int i = 0; i < N; i++){\n for(int j = 0; j < p.length; j++){\n if(S[i].equals(p[j])) C[j]++;\n }\n }\n for(int i = 0; i < p.length; i++){\n out.println(p[i] + \" x \" + C[i]);\n }\n }",
"int N = in.nextInt();",
"N",
"in.nextInt()",
"in.nextInt",
"in",
"String[] S = new String[N];",
"S",
"new String[N]",
"N",
"for(int i = 0; i < N; i++) S[i] = in.nextStr();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"S[i] = in.nextStr();",
"S[i] = in.nextStr()",
"S[i]",
"S",
"i",
"in.nextStr()",
"in.nextStr",
"in",
"String[] p = {\"AC\", \"WA\", \"TLE\", \"RE\"};",
"p",
"{\"AC\", \"WA\", \"TLE\", \"RE\"}",
"\"AC\"",
"\"WA\"",
"\"TLE\"",
"\"RE\"",
"int[] C = new int[p.length];",
"C",
"new int[p.length]",
"p.length",
"p",
"p.length",
"for(int i = 0; i < N; i++){\n for(int j = 0; j < p.length; j++){\n if(S[i].equals(p[j])) C[j]++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < p.length; j++){\n if(S[i].equals(p[j])) C[j]++;\n }\n }",
"{\n for(int j = 0; j < p.length; j++){\n if(S[i].equals(p[j])) C[j]++;\n }\n }",
"for(int j = 0; j < p.length; j++){\n if(S[i].equals(p[j])) C[j]++;\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < p.length",
"j",
"p.length",
"p",
"p.length",
"j++",
"j++",
"j",
"{\n if(S[i].equals(p[j])) C[j]++;\n }",
"{\n if(S[i].equals(p[j])) C[j]++;\n }",
"if(S[i].equals(p[j])) C[j]++;",
"S[i].equals(p[j])",
"S[i].equals",
"S[i]",
"S",
"i",
"p[j]",
"p",
"j",
"C[j]++",
"C[j]",
"C",
"j",
"for(int i = 0; i < p.length; i++){\n out.println(p[i] + \" x \" + C[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < p.length",
"i",
"p.length",
"p",
"p.length",
"i++",
"i++",
"i",
"{\n out.println(p[i] + \" x \" + C[i]);\n }",
"{\n out.println(p[i] + \" x \" + C[i]);\n }",
"out.println(p[i] + \" x \" + C[i])",
"out.println",
"out",
"p[i] + \" x \" + C[i]",
"p[i] + \" x \" + C[i]",
"p[i]",
"p",
"i",
"\" x \"",
"C[i]",
"C",
"i",
"public static void main(String[] args) {\n new Main().m();\n }",
"main",
"{\n new Main().m();\n }",
"new Main().m()",
"new Main().m",
"new Main()",
"String[] args",
"args",
"private void m() {\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }",
"m",
"{\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }",
"in = new FastScanner(System.in)",
"in",
"new FastScanner(System.in)",
"out = new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"solve()",
"solve",
"out.flush()",
"out.flush",
"out",
"in.close()",
"in.close",
"in",
"out.close()",
"out.close",
"out",
"static class FastScanner {\n private Reader input;\n \n public FastScanner() {this(System.in);}\n public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}\n public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n \n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n \n public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }\n \n public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }\n \n public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }\n \n public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }\n \n public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }\n \n public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }\n \n public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }\n \n public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }\n \n public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }\n \n public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }\n }",
"FastScanner",
"private Reader input;",
"input",
"public FastScanner() {this(System.in);}",
"FastScanner",
"{this(System.in);}",
"this(System.in)",
"this",
"System.in",
"System",
"System.in",
"public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}",
"FastScanner",
"{this.input = new BufferedReader(new InputStreamReader(stream));}",
"this.input = new BufferedReader(new InputStreamReader(stream))",
"this.input",
"this",
"this.input",
"new BufferedReader(new InputStreamReader(stream))",
"InputStream stream",
"stream",
"public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"close",
"{\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n this.input.close();\n }",
"this.input.close()",
"this.input.close",
"this.input",
"this",
"this.input",
"public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }",
"nextInt",
"{\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }",
"long nl = nextLong();",
"nl",
"nextLong()",
"nextLong",
"if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();",
"nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE",
"nl < Integer.MIN_VALUE",
"nl",
"Integer.MIN_VALUE",
"Integer",
"Integer.MIN_VALUE",
"nl > Integer.MAX_VALUE",
"nl",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"throw new NumberFormatException();",
"new NumberFormatException()",
"return (int) nl;",
"(int) nl",
"public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }",
"nextLong",
"{\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }",
"try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }",
"catch (IOException e) {\n e.printStackTrace();\n return -1;\n }",
"IOException e",
"{\n e.printStackTrace();\n return -1;\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"return -1;",
"-1",
"1",
"{\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n }",
"int sign = 1;",
"sign",
"1",
"int b = input.read();",
"b",
"input.read()",
"input.read",
"input",
"while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }",
"(b < '0' || '9' < b) && b != '-' && b != '+'",
"(b < '0' || '9' < b) && b != '-' && b != '+'",
"(b < '0' || '9' < b)",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"b != '-'",
"b",
"'-'",
"b != '+'",
"b",
"'+'",
"{\n b = input.read();\n }",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }",
"b == '-'",
"b",
"'-'",
"{\n sign = -1;\n b = input.read();\n }",
"sign = -1",
"sign",
"-1",
"1",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"if (b == '+') {\n b = input.read();\n }",
"b == '+'",
"b",
"'+'",
"{\n b = input.read();\n }",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"long ret = b - '0';",
"ret",
"b - '0'",
"b",
"'0'",
"while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }",
"true",
"{\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"if (b < '0' || '9' < b) return ret * sign;",
"b < '0' || '9' < b",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"return ret * sign;",
"ret * sign",
"ret",
"sign",
"ret *= 10",
"ret",
"10",
"ret += b - '0'",
"ret",
"b - '0'",
"b",
"'0'",
"public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }",
"nextDouble",
"{\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }",
"try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }",
"catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }",
"IOException e",
"{\n e.printStackTrace();\n return Double.NaN;\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"return Double.NaN;",
"Double.NaN",
"Double",
"Double.NaN",
"{\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n }",
"double sign = 1;",
"sign",
"1",
"int b = input.read();",
"b",
"input.read()",
"input.read",
"input",
"while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }",
"(b < '0' || '9' < b) && b != '-' && b != '+'",
"(b < '0' || '9' < b) && b != '-' && b != '+'",
"(b < '0' || '9' < b)",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"b != '-'",
"b",
"'-'",
"b != '+'",
"b",
"'+'",
"{\n b = input.read();\n }",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }",
"b == '-'",
"b",
"'-'",
"{\n sign = -1;\n b = input.read();\n }",
"sign = -1",
"sign",
"-1",
"1",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"if (b == '+') {\n b = input.read();\n }",
"b == '+'",
"b",
"'+'",
"{\n b = input.read();\n }",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"double ret = b - '0';",
"ret",
"b - '0'",
"b",
"'0'",
"while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }",
"true",
"{\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"if (b < '0' || '9' < b) break;",
"b < '0' || '9' < b",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"break;",
"ret *= 10",
"ret",
"10",
"ret += b - '0'",
"ret",
"b - '0'",
"b",
"'0'",
"if (b != '.') return sign * ret;",
"b != '.'",
"b",
"'.'",
"return sign * ret;",
"sign * ret",
"sign",
"ret",
"double div = 1;",
"div",
"1",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }",
"'0' <= b && b <= '9'",
"'0' <= b",
"'0'",
"b",
"b <= '9'",
"b",
"'9'",
"{\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }",
"ret *= 10",
"ret",
"10",
"ret += b - '0'",
"ret",
"b - '0'",
"b",
"'0'",
"div *= 10",
"div",
"10",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"return sign * ret / div;",
"sign * ret / div",
"sign * ret",
"sign",
"ret",
"div",
"public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }",
"nextChar",
"{\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }",
"try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }",
"catch (IOException e) {\n e.printStackTrace();\n return 0;\n }",
"IOException e",
"{\n e.printStackTrace();\n return 0;\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"return 0;",
"0",
"{\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n }",
"int b = input.read();",
"b",
"input.read()",
"input.read",
"input",
"while (Character.isWhitespace(b)) {\n b = input.read();\n }",
"Character.isWhitespace(b)",
"Character.isWhitespace",
"Character",
"b",
"{\n b = input.read();\n }",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"return (char) b;",
"(char) b",
"public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }",
"nextStr",
"{\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }",
"try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }",
"catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }",
"IOException e",
"{\n e.printStackTrace();\n return \"\";\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"return \"\";",
"\"\"",
"{\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n }",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int b = input.read();",
"b",
"input.read()",
"input.read",
"input",
"while (Character.isWhitespace(b)) {\n b = input.read();\n }",
"Character.isWhitespace(b)",
"Character.isWhitespace",
"Character",
"b",
"{\n b = input.read();\n }",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }",
"b != -1 && !Character.isWhitespace(b)",
"b != -1",
"b",
"-1",
"1",
"!Character.isWhitespace(b)",
"Character.isWhitespace(b)",
"Character.isWhitespace",
"Character",
"b",
"{\n sb.append((char) b);\n b = input.read();\n }",
"sb.append((char) b)",
"sb.append",
"sb",
"(char) b",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }",
"nextLine",
"{\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }",
"try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }",
"catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }",
"IOException e",
"{\n e.printStackTrace();\n return \"\";\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"return \"\";",
"\"\"",
"{\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n }",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int b = input.read();",
"b",
"input.read()",
"input.read",
"input",
"while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }",
"b != -1 && b != '\\n'",
"b != -1",
"b",
"-1",
"1",
"b != '\\n'",
"b",
"'\\n'",
"{\n sb.append((char) b);\n b = input.read();\n }",
"sb.append((char) b)",
"sb.append",
"sb",
"(char) b",
"b = input.read()",
"b",
"input.read()",
"input.read",
"input",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }",
"nextIntArray",
"{\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }",
"int[] res = new int[n];",
"res",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n res[i] = nextInt();\n }",
"{\n res[i] = nextInt();\n }",
"res[i] = nextInt()",
"res[i]",
"res",
"i",
"nextInt()",
"nextInt",
"return res;",
"res",
"int n",
"n",
"public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }",
"nextIntArrayDec",
"{\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }",
"int[] res = new int[n];",
"res",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n res[i] = nextInt() - 1;\n }",
"{\n res[i] = nextInt() - 1;\n }",
"res[i] = nextInt() - 1",
"res[i]",
"res",
"i",
"nextInt() - 1",
"nextInt()",
"nextInt",
"1",
"return res;",
"res",
"int n",
"n",
"public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }",
"nextIntArray1Index",
"{\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }",
"int[] res = new int[n + 1];",
"res",
"new int[n + 1]",
"n + 1",
"n",
"1",
"for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n res[i + 1] = nextInt();\n }",
"{\n res[i + 1] = nextInt();\n }",
"res[i + 1] = nextInt()",
"res[i + 1]",
"res",
"i + 1",
"i",
"1",
"nextInt()",
"nextInt",
"return res;",
"res",
"int n",
"n",
"public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }",
"nextLongArray",
"{\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }",
"long[] res = new long[n];",
"res",
"new long[n]",
"n",
"for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n res[i] = nextLong();\n }",
"{\n res[i] = nextLong();\n }",
"res[i] = nextLong()",
"res[i]",
"res",
"i",
"nextLong()",
"nextLong",
"return res;",
"res",
"int n",
"n",
"public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }",
"nextLongArrayDec",
"{\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }",
"long[] res = new long[n];",
"res",
"new long[n]",
"n",
"for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n res[i] = nextLong() - 1;\n }",
"{\n res[i] = nextLong() - 1;\n }",
"res[i] = nextLong() - 1",
"res[i]",
"res",
"i",
"nextLong() - 1",
"nextLong()",
"nextLong",
"1",
"return res;",
"res",
"int n",
"n",
"public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }",
"nextLongArray1Index",
"{\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }",
"long[] res = new long[n + 1];",
"res",
"new long[n + 1]",
"n + 1",
"n",
"1",
"for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n res[i + 1] = nextLong();\n }",
"{\n res[i + 1] = nextLong();\n }",
"res[i + 1] = nextLong()",
"res[i + 1]",
"res",
"i + 1",
"i",
"1",
"nextLong()",
"nextLong",
"return res;",
"res",
"int n",
"n",
"public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }",
"nextDoubleArray",
"{\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }",
"double[] res = new double[n];",
"res",
"new double[n]",
"n",
"for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n res[i] = nextDouble();\n }",
"{\n res[i] = nextDouble();\n }",
"res[i] = nextDouble()",
"res[i]",
"res",
"i",
"nextDouble()",
"nextDouble",
"return res;",
"res",
"int n",
"n",
"public class Main {\n FastScanner in;\n PrintWriter out;\n final static int MOD = (int)1e9+7;\n \n void solve(){\n int N = in.nextInt();\n String[] S = new String[N];\n for(int i = 0; i < N; i++) S[i] = in.nextStr();\n \n String[] p = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n int[] C = new int[p.length];\n for(int i = 0; i < N; i++){\n for(int j = 0; j < p.length; j++){\n if(S[i].equals(p[j])) C[j]++;\n }\n }\n for(int i = 0; i < p.length; i++){\n out.println(p[i] + \" x \" + C[i]);\n }\n }\n \n public static void main(String[] args) {\n new Main().m();\n }\n \n private void m() {\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }\n \n static class FastScanner {\n private Reader input;\n \n public FastScanner() {this(System.in);}\n public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}\n public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n \n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n \n public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }\n \n public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }\n \n public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }\n \n public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }\n \n public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }\n \n public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }\n \n public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }\n \n public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }\n \n public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }\n \n public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }\n }\n}",
"public class Main {\n FastScanner in;\n PrintWriter out;\n final static int MOD = (int)1e9+7;\n \n void solve(){\n int N = in.nextInt();\n String[] S = new String[N];\n for(int i = 0; i < N; i++) S[i] = in.nextStr();\n \n String[] p = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n int[] C = new int[p.length];\n for(int i = 0; i < N; i++){\n for(int j = 0; j < p.length; j++){\n if(S[i].equals(p[j])) C[j]++;\n }\n }\n for(int i = 0; i < p.length; i++){\n out.println(p[i] + \" x \" + C[i]);\n }\n }\n \n public static void main(String[] args) {\n new Main().m();\n }\n \n private void m() {\n in = new FastScanner(System.in);\n out = new PrintWriter(System.out);\n /*\n try {\n String path = \"input.txt\";\n out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));\n }catch (IOException e){\n e.printStackTrace();\n }\n */\n solve();\n out.flush();\n in.close();\n out.close();\n }\n \n static class FastScanner {\n private Reader input;\n \n public FastScanner() {this(System.in);}\n public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}\n public void close() {\n try {\n this.input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n \n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n \n public long nextLong() {\n try {\n int sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n long ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) return ret * sign;\n ret *= 10;\n ret += b - '0';\n }\n } catch (IOException e) {\n e.printStackTrace();\n return -1;\n }\n }\n \n public double nextDouble() {\n try {\n double sign = 1;\n int b = input.read();\n while ((b < '0' || '9' < b) && b != '-' && b != '+') {\n b = input.read();\n }\n if (b == '-') {\n sign = -1;\n b = input.read();\n } else if (b == '+') {\n b = input.read();\n }\n double ret = b - '0';\n while (true) {\n b = input.read();\n if (b < '0' || '9' < b) break;\n ret *= 10;\n ret += b - '0';\n }\n if (b != '.') return sign * ret;\n double div = 1;\n b = input.read();\n while ('0' <= b && b <= '9') {\n ret *= 10;\n ret += b - '0';\n div *= 10;\n b = input.read();\n }\n return sign * ret / div;\n } catch (IOException e) {\n e.printStackTrace();\n return Double.NaN;\n }\n }\n \n public char nextChar() {\n try {\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n return (char) b;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n }\n }\n \n public String nextStr() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (Character.isWhitespace(b)) {\n b = input.read();\n }\n while (b != -1 && !Character.isWhitespace(b)) {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public String nextLine() {\n try {\n StringBuilder sb = new StringBuilder();\n int b = input.read();\n while (b != -1 && b != '\\n') {\n sb.append((char) b);\n b = input.read();\n }\n return sb.toString();\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n }\n \n public int[] nextIntArray(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt();\n }\n return res;\n }\n \n public int[] nextIntArrayDec(int n) {\n int[] res = new int[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextInt() - 1;\n }\n return res;\n }\n \n public int[] nextIntArray1Index(int n) {\n int[] res = new int[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextInt();\n }\n return res;\n }\n \n public long[] nextLongArray(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong();\n }\n return res;\n }\n \n public long[] nextLongArrayDec(int n) {\n long[] res = new long[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextLong() - 1;\n }\n return res;\n }\n \n public long[] nextLongArray1Index(int n) {\n long[] res = new long[n + 1];\n for (int i = 0; i < n; i++) {\n res[i + 1] = nextLong();\n }\n return res;\n }\n \n public double[] nextDoubleArray(int n) {\n double[] res = new double[n];\n for (int i = 0; i < n; i++) {\n res[i] = nextDouble();\n }\n return res;\n }\n }\n}",
"Main"
]
| import java.io.*;
import java.math.BigDecimal;
import java.util.*;
@SuppressWarnings("unused")
public class Main {
FastScanner in;
PrintWriter out;
final static int MOD = (int)1e9+7;
void solve(){
int N = in.nextInt();
String[] S = new String[N];
for(int i = 0; i < N; i++) S[i] = in.nextStr();
String[] p = {"AC", "WA", "TLE", "RE"};
int[] C = new int[p.length];
for(int i = 0; i < N; i++){
for(int j = 0; j < p.length; j++){
if(S[i].equals(p[j])) C[j]++;
}
}
for(int i = 0; i < p.length; i++){
out.println(p[i] + " x " + C[i]);
}
}
public static void main(String[] args) {
new Main().m();
}
private void m() {
in = new FastScanner(System.in);
out = new PrintWriter(System.out);
/*
try {
String path = "input.txt";
out = new PrintWriter(new BufferedWriter(new FileWriter(new File(path))));
}catch (IOException e){
e.printStackTrace();
}
*/
solve();
out.flush();
in.close();
out.close();
}
static class FastScanner {
private Reader input;
public FastScanner() {this(System.in);}
public FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));}
public void close() {
try {
this.input.close();
} catch (IOException e) {
e.printStackTrace();
}
}
public int nextInt() {
long nl = nextLong();
if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();
return (int) nl;
}
public long nextLong() {
try {
int sign = 1;
int b = input.read();
while ((b < '0' || '9' < b) && b != '-' && b != '+') {
b = input.read();
}
if (b == '-') {
sign = -1;
b = input.read();
} else if (b == '+') {
b = input.read();
}
long ret = b - '0';
while (true) {
b = input.read();
if (b < '0' || '9' < b) return ret * sign;
ret *= 10;
ret += b - '0';
}
} catch (IOException e) {
e.printStackTrace();
return -1;
}
}
public double nextDouble() {
try {
double sign = 1;
int b = input.read();
while ((b < '0' || '9' < b) && b != '-' && b != '+') {
b = input.read();
}
if (b == '-') {
sign = -1;
b = input.read();
} else if (b == '+') {
b = input.read();
}
double ret = b - '0';
while (true) {
b = input.read();
if (b < '0' || '9' < b) break;
ret *= 10;
ret += b - '0';
}
if (b != '.') return sign * ret;
double div = 1;
b = input.read();
while ('0' <= b && b <= '9') {
ret *= 10;
ret += b - '0';
div *= 10;
b = input.read();
}
return sign * ret / div;
} catch (IOException e) {
e.printStackTrace();
return Double.NaN;
}
}
public char nextChar() {
try {
int b = input.read();
while (Character.isWhitespace(b)) {
b = input.read();
}
return (char) b;
} catch (IOException e) {
e.printStackTrace();
return 0;
}
}
public String nextStr() {
try {
StringBuilder sb = new StringBuilder();
int b = input.read();
while (Character.isWhitespace(b)) {
b = input.read();
}
while (b != -1 && !Character.isWhitespace(b)) {
sb.append((char) b);
b = input.read();
}
return sb.toString();
} catch (IOException e) {
e.printStackTrace();
return "";
}
}
public String nextLine() {
try {
StringBuilder sb = new StringBuilder();
int b = input.read();
while (b != -1 && b != '\n') {
sb.append((char) b);
b = input.read();
}
return sb.toString();
} catch (IOException e) {
e.printStackTrace();
return "";
}
}
public int[] nextIntArray(int n) {
int[] res = new int[n];
for (int i = 0; i < n; i++) {
res[i] = nextInt();
}
return res;
}
public int[] nextIntArrayDec(int n) {
int[] res = new int[n];
for (int i = 0; i < n; i++) {
res[i] = nextInt() - 1;
}
return res;
}
public int[] nextIntArray1Index(int n) {
int[] res = new int[n + 1];
for (int i = 0; i < n; i++) {
res[i + 1] = nextInt();
}
return res;
}
public long[] nextLongArray(int n) {
long[] res = new long[n];
for (int i = 0; i < n; i++) {
res[i] = nextLong();
}
return res;
}
public long[] nextLongArrayDec(int n) {
long[] res = new long[n];
for (int i = 0; i < n; i++) {
res[i] = nextLong() - 1;
}
return res;
}
public long[] nextLongArray1Index(int n) {
long[] res = new long[n + 1];
for (int i = 0; i < n; i++) {
res[i + 1] = nextLong();
}
return res;
}
public double[] nextDoubleArray(int n) {
double[] res = new double[n];
for (int i = 0; i < n; i++) {
res[i] = nextDouble();
}
return res;
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
35,
13,
34,
17,
1,
0,
13,
17,
9,
34,
17,
1,
0,
13,
17,
9,
34,
17,
1,
0,
13,
17,
9,
34,
17,
1,
0,
13,
17,
9,
34,
1,
3,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
117,
5
],
[
117,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
36,
38
],
[
29,
39
],
[
39,
40
],
[
40,
41
],
[
29,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
43,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
49,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
49,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
49,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
49,
79
],
[
79,
80
],
[
80,
81
],
[
8,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
87,
88
],
[
87,
89
],
[
8,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
8,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
103,
104
],
[
103,
105
],
[
8,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
6,
114
],
[
114,
115
],
[
0,
116
],
[
116,
117
],
[
116,
118
]
]
| [
"import java.util.Scanner;\npublic class Main {\n\n public static void main(String[] args) {\n // System.out.println(\"Hello World!\");\n Scanner scan = new Scanner(System.in);\n int num = scan.nextInt();//ここでコンソールに入力したものを取得\n \n int resultAC = 0;\n int resultWA = 0;\n int resultTLE = 0;\n int resultRE = 0;\n \n for(int i=0; i<num+1; i++){\n \n \n String inputStr = scan.nextLine();//ここでコンソールに入力したものを取得\n \n \n switch (inputStr) {\n case \"AC\"://scoreが5の時\n resultAC += 1;\n continue;\n // break;\n case \"WA\"://scoreが4の時\n resultWA += 1;\n continue;\n // break;\n case \"TLE\"://scoreが3の時\n resultTLE += 1;\n continue;\n // break;\n case \"RE\"://scoreが2の時\n resultRE += 1;\n continue;\n // break;\n \n default://scoreが上記以外の時\n break;\n }\n \n }\n // System.out.println();\n System.out.println(\"AC x \" + resultAC);\n System.out.println(\"WA x \" + resultWA);\n System.out.println(\"TLE x \" + resultTLE);\n System.out.println(\"RE x \" + resultRE);\n\n\n\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n // System.out.println(\"Hello World!\");\n Scanner scan = new Scanner(System.in);\n int num = scan.nextInt();//ここでコンソールに入力したものを取得\n \n int resultAC = 0;\n int resultWA = 0;\n int resultTLE = 0;\n int resultRE = 0;\n \n for(int i=0; i<num+1; i++){\n \n \n String inputStr = scan.nextLine();//ここでコンソールに入力したものを取得\n \n \n switch (inputStr) {\n case \"AC\"://scoreが5の時\n resultAC += 1;\n continue;\n // break;\n case \"WA\"://scoreが4の時\n resultWA += 1;\n continue;\n // break;\n case \"TLE\"://scoreが3の時\n resultTLE += 1;\n continue;\n // break;\n case \"RE\"://scoreが2の時\n resultRE += 1;\n continue;\n // break;\n \n default://scoreが上記以外の時\n break;\n }\n \n }\n // System.out.println();\n System.out.println(\"AC x \" + resultAC);\n System.out.println(\"WA x \" + resultWA);\n System.out.println(\"TLE x \" + resultTLE);\n System.out.println(\"RE x \" + resultRE);\n\n\n\n }\n\n}",
"Main",
"public static void main(String[] args) {\n // System.out.println(\"Hello World!\");\n Scanner scan = new Scanner(System.in);\n int num = scan.nextInt();//ここでコンソールに入力したものを取得\n \n int resultAC = 0;\n int resultWA = 0;\n int resultTLE = 0;\n int resultRE = 0;\n \n for(int i=0; i<num+1; i++){\n \n \n String inputStr = scan.nextLine();//ここでコンソールに入力したものを取得\n \n \n switch (inputStr) {\n case \"AC\"://scoreが5の時\n resultAC += 1;\n continue;\n // break;\n case \"WA\"://scoreが4の時\n resultWA += 1;\n continue;\n // break;\n case \"TLE\"://scoreが3の時\n resultTLE += 1;\n continue;\n // break;\n case \"RE\"://scoreが2の時\n resultRE += 1;\n continue;\n // break;\n \n default://scoreが上記以外の時\n break;\n }\n \n }\n // System.out.println();\n System.out.println(\"AC x \" + resultAC);\n System.out.println(\"WA x \" + resultWA);\n System.out.println(\"TLE x \" + resultTLE);\n System.out.println(\"RE x \" + resultRE);\n\n\n\n }",
"main",
"{\n // System.out.println(\"Hello World!\");\n Scanner scan = new Scanner(System.in);\n int num = scan.nextInt();//ここでコンソールに入力したものを取得\n \n int resultAC = 0;\n int resultWA = 0;\n int resultTLE = 0;\n int resultRE = 0;\n \n for(int i=0; i<num+1; i++){\n \n \n String inputStr = scan.nextLine();//ここでコンソールに入力したものを取得\n \n \n switch (inputStr) {\n case \"AC\"://scoreが5の時\n resultAC += 1;\n continue;\n // break;\n case \"WA\"://scoreが4の時\n resultWA += 1;\n continue;\n // break;\n case \"TLE\"://scoreが3の時\n resultTLE += 1;\n continue;\n // break;\n case \"RE\"://scoreが2の時\n resultRE += 1;\n continue;\n // break;\n \n default://scoreが上記以外の時\n break;\n }\n \n }\n // System.out.println();\n System.out.println(\"AC x \" + resultAC);\n System.out.println(\"WA x \" + resultWA);\n System.out.println(\"TLE x \" + resultTLE);\n System.out.println(\"RE x \" + resultRE);\n\n\n\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int num = scan.nextInt();",
"num",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int resultAC = 0;",
"resultAC",
"0",
"int resultWA = 0;",
"resultWA",
"0",
"int resultTLE = 0;",
"resultTLE",
"0",
"int resultRE = 0;",
"resultRE",
"0",
"for(int i=0; i<num+1; i++){\n \n \n String inputStr = scan.nextLine();//ここでコンソールに入力したものを取得\n \n \n switch (inputStr) {\n case \"AC\"://scoreが5の時\n resultAC += 1;\n continue;\n // break;\n case \"WA\"://scoreが4の時\n resultWA += 1;\n continue;\n // break;\n case \"TLE\"://scoreが3の時\n resultTLE += 1;\n continue;\n // break;\n case \"RE\"://scoreが2の時\n resultRE += 1;\n continue;\n // break;\n \n default://scoreが上記以外の時\n break;\n }\n \n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<num+1",
"i",
"num+1",
"num",
"1",
"i++",
"i++",
"i",
"{\n \n \n String inputStr = scan.nextLine();//ここでコンソールに入力したものを取得\n \n \n switch (inputStr) {\n case \"AC\"://scoreが5の時\n resultAC += 1;\n continue;\n // break;\n case \"WA\"://scoreが4の時\n resultWA += 1;\n continue;\n // break;\n case \"TLE\"://scoreが3の時\n resultTLE += 1;\n continue;\n // break;\n case \"RE\"://scoreが2の時\n resultRE += 1;\n continue;\n // break;\n \n default://scoreが上記以外の時\n break;\n }\n \n }",
"{\n \n \n String inputStr = scan.nextLine();//ここでコンソールに入力したものを取得\n \n \n switch (inputStr) {\n case \"AC\"://scoreが5の時\n resultAC += 1;\n continue;\n // break;\n case \"WA\"://scoreが4の時\n resultWA += 1;\n continue;\n // break;\n case \"TLE\"://scoreが3の時\n resultTLE += 1;\n continue;\n // break;\n case \"RE\"://scoreが2の時\n resultRE += 1;\n continue;\n // break;\n \n default://scoreが上記以外の時\n break;\n }\n \n }",
"String inputStr = scan.nextLine();",
"inputStr",
"scan.nextLine()",
"scan.nextLine",
"scan",
"switch (inputStr) {\n case \"AC\"://scoreが5の時\n resultAC += 1;\n continue;\n // break;\n case \"WA\"://scoreが4の時\n resultWA += 1;\n continue;\n // break;\n case \"TLE\"://scoreが3の時\n resultTLE += 1;\n continue;\n // break;\n case \"RE\"://scoreが2の時\n resultRE += 1;\n continue;\n // break;\n \n default://scoreが上記以外の時\n break;\n }",
"inputStr",
"case \"AC\"://scoreが5の時",
"\"AC\"",
"case \"AC\"://scoreが5の時",
"resultAC += 1",
"resultAC",
"1",
"continue;",
"case \"WA\"://scoreが4の時",
"\"WA\"",
"case \"WA\"://scoreが4の時",
"resultWA += 1",
"resultWA",
"1",
"continue;",
"case \"TLE\"://scoreが3の時",
"\"TLE\"",
"case \"TLE\"://scoreが3の時",
"resultTLE += 1",
"resultTLE",
"1",
"continue;",
"case \"RE\"://scoreが2の時",
"\"RE\"",
"case \"RE\"://scoreが2の時",
"resultRE += 1",
"resultRE",
"1",
"continue;",
"default://scoreが上記以外の時",
"default://scoreが上記以外の時",
"break;",
"System.out.println(\"AC x \" + resultAC)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + resultAC",
"\"AC x \"",
"resultAC",
"System.out.println(\"WA x \" + resultWA)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + resultWA",
"\"WA x \"",
"resultWA",
"System.out.println(\"TLE x \" + resultTLE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + resultTLE",
"\"TLE x \"",
"resultTLE",
"System.out.println(\"RE x \" + resultRE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + resultRE",
"\"RE x \"",
"resultRE",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n // System.out.println(\"Hello World!\");\n Scanner scan = new Scanner(System.in);\n int num = scan.nextInt();//ここでコンソールに入力したものを取得\n \n int resultAC = 0;\n int resultWA = 0;\n int resultTLE = 0;\n int resultRE = 0;\n \n for(int i=0; i<num+1; i++){\n \n \n String inputStr = scan.nextLine();//ここでコンソールに入力したものを取得\n \n \n switch (inputStr) {\n case \"AC\"://scoreが5の時\n resultAC += 1;\n continue;\n // break;\n case \"WA\"://scoreが4の時\n resultWA += 1;\n continue;\n // break;\n case \"TLE\"://scoreが3の時\n resultTLE += 1;\n continue;\n // break;\n case \"RE\"://scoreが2の時\n resultRE += 1;\n continue;\n // break;\n \n default://scoreが上記以外の時\n break;\n }\n \n }\n // System.out.println();\n System.out.println(\"AC x \" + resultAC);\n System.out.println(\"WA x \" + resultWA);\n System.out.println(\"TLE x \" + resultTLE);\n System.out.println(\"RE x \" + resultRE);\n\n\n\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n // System.out.println(\"Hello World!\");\n Scanner scan = new Scanner(System.in);\n int num = scan.nextInt();//ここでコンソールに入力したものを取得\n \n int resultAC = 0;\n int resultWA = 0;\n int resultTLE = 0;\n int resultRE = 0;\n \n for(int i=0; i<num+1; i++){\n \n \n String inputStr = scan.nextLine();//ここでコンソールに入力したものを取得\n \n \n switch (inputStr) {\n case \"AC\"://scoreが5の時\n resultAC += 1;\n continue;\n // break;\n case \"WA\"://scoreが4の時\n resultWA += 1;\n continue;\n // break;\n case \"TLE\"://scoreが3の時\n resultTLE += 1;\n continue;\n // break;\n case \"RE\"://scoreが2の時\n resultRE += 1;\n continue;\n // break;\n \n default://scoreが上記以外の時\n break;\n }\n \n }\n // System.out.println();\n System.out.println(\"AC x \" + resultAC);\n System.out.println(\"WA x \" + resultWA);\n System.out.println(\"TLE x \" + resultTLE);\n System.out.println(\"RE x \" + resultRE);\n\n\n\n }\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// System.out.println("Hello World!");
Scanner scan = new Scanner(System.in);
int num = scan.nextInt();//ここでコンソールに入力したものを取得
int resultAC = 0;
int resultWA = 0;
int resultTLE = 0;
int resultRE = 0;
for(int i=0; i<num+1; i++){
String inputStr = scan.nextLine();//ここでコンソールに入力したものを取得
switch (inputStr) {
case "AC"://scoreが5の時
resultAC += 1;
continue;
// break;
case "WA"://scoreが4の時
resultWA += 1;
continue;
// break;
case "TLE"://scoreが3の時
resultTLE += 1;
continue;
// break;
case "RE"://scoreが2の時
resultRE += 1;
continue;
// break;
default://scoreが上記以外の時
break;
}
}
// System.out.println();
System.out.println("AC x " + resultAC);
System.out.println("WA x " + resultWA);
System.out.println("TLE x " + resultTLE);
System.out.println("RE x " + resultRE);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
41,
13,
20,
41,
13,
20,
17,
41,
13,
4,
18,
13,
42,
2,
40,
13,
17,
30,
40,
18,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
17,
18,
13,
13,
18,
13,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
41,
13,
17,
42,
2,
40,
13,
17,
4,
13,
4,
18,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
4,
18,
13,
18,
13,
13,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
4,
18,
13,
18,
13,
13,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
4,
13,
13,
4,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
4,
13,
13,
4,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
4,
13,
17,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
4,
18,
13,
17,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
492,
8
],
[
492,
9
],
[
9,
10
],
[
492,
11
],
[
11,
12
],
[
492,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
15,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
19,
23
],
[
15,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
24,
28
],
[
15,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
29,
33
],
[
15,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
34,
38
],
[
15,
39
],
[
39,
40
],
[
39,
41
],
[
15,
42
],
[
42,
43
],
[
42,
44
],
[
15,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
15,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
51,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
63,
64
],
[
64,
65
],
[
15,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
66,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
79,
83
],
[
83,
84
],
[
83,
85
],
[
79,
86
],
[
86,
87
],
[
86,
88
],
[
492,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
95,
97
],
[
91,
98
],
[
98,
99
],
[
98,
100
],
[
91,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
101,
106
],
[
106,
107
],
[
91,
108
],
[
108,
109
],
[
109,
110
],
[
89,
111
],
[
111,
112
],
[
492,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
123,
125
],
[
116,
126
],
[
126,
127
],
[
127,
128
],
[
116,
129
],
[
130,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
133,
137
],
[
137,
138
],
[
137,
139
],
[
130,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
142,
144
],
[
130,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
145,
149
],
[
149,
150
],
[
149,
151
],
[
130,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
113,
157
],
[
157,
158
],
[
492,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
162,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
169,
171
],
[
162,
172
],
[
172,
173
],
[
173,
174
],
[
162,
175
],
[
176,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
179,
183
],
[
183,
184
],
[
183,
185
],
[
176,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
188,
190
],
[
176,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
191,
195
],
[
195,
196
],
[
195,
197
],
[
176,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
198,
202
],
[
159,
203
],
[
203,
204
],
[
492,
205
],
[
205,
206
],
[
205,
207
],
[
207,
208
],
[
205,
209
],
[
209,
210
],
[
205,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
214,
215
],
[
214,
216
],
[
211,
217
],
[
217,
218
],
[
205,
219
],
[
219,
220
],
[
219,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
219,
225
],
[
225,
226
],
[
205,
227
],
[
227,
228
],
[
227,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
231,
235
],
[
235,
236
],
[
236,
237
],
[
237,
238
],
[
230,
239
],
[
239,
240
],
[
239,
241
],
[
229,
242
],
[
242,
243
],
[
243,
244
],
[
244,
245
],
[
205,
246
],
[
246,
247
],
[
246,
248
],
[
248,
249
],
[
249,
250
],
[
249,
251
],
[
248,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
255,
257
],
[
253,
258
],
[
258,
259
],
[
258,
260
],
[
253,
261
],
[
261,
262
],
[
262,
263
],
[
253,
264
],
[
264,
265
],
[
265,
266
],
[
266,
267
],
[
266,
268
],
[
265,
269
],
[
269,
270
],
[
248,
271
],
[
271,
272
],
[
246,
273
],
[
273,
274
],
[
205,
275
],
[
275,
276
],
[
275,
277
],
[
277,
278
],
[
278,
279
],
[
278,
280
],
[
277,
282
],
[
282,
283
],
[
283,
284
],
[
284,
285
],
[
284,
286
],
[
282,
287
],
[
287,
288
],
[
287,
289
],
[
282,
290
],
[
290,
291
],
[
291,
292
],
[
282,
293
],
[
293,
294
],
[
294,
295
],
[
295,
296
],
[
295,
297
],
[
294,
298
],
[
298,
299
],
[
277,
300
],
[
300,
301
],
[
275,
302
],
[
302,
303
],
[
205,
304
],
[
304,
305
],
[
304,
306
],
[
306,
307
],
[
307,
308
],
[
307,
309
],
[
306,
311
],
[
311,
312
],
[
312,
313
],
[
313,
314
],
[
313,
315
],
[
311,
316
],
[
316,
317
],
[
316,
318
],
[
311,
319
],
[
319,
320
],
[
320,
321
],
[
311,
322
],
[
322,
323
],
[
323,
324
],
[
324,
325
],
[
324,
326
],
[
323,
327
],
[
327,
328
],
[
306,
329
],
[
329,
330
],
[
329,
331
],
[
306,
332
],
[
332,
333
],
[
333,
334
],
[
332,
335
],
[
306,
336
],
[
336,
337
],
[
304,
338
],
[
338,
339
],
[
205,
340
],
[
340,
341
],
[
340,
342
],
[
342,
343
],
[
343,
344
],
[
343,
345
],
[
342,
347
],
[
347,
348
],
[
348,
349
],
[
349,
350
],
[
349,
351
],
[
347,
352
],
[
352,
353
],
[
352,
354
],
[
347,
355
],
[
355,
356
],
[
356,
357
],
[
347,
358
],
[
358,
359
],
[
359,
360
],
[
360,
361
],
[
360,
362
],
[
359,
363
],
[
363,
364
],
[
342,
365
],
[
365,
366
],
[
365,
367
],
[
342,
368
],
[
368,
369
],
[
369,
370
],
[
368,
371
],
[
342,
372
],
[
372,
373
],
[
340,
374
],
[
374,
375
],
[
205,
376
],
[
376,
377
],
[
376,
378
],
[
378,
379
],
[
379,
380
],
[
379,
381
],
[
378,
383
],
[
383,
384
],
[
384,
385
],
[
385,
386
],
[
385,
387
],
[
383,
388
],
[
388,
389
],
[
388,
390
],
[
383,
391
],
[
391,
392
],
[
392,
393
],
[
383,
394
],
[
394,
395
],
[
395,
396
],
[
396,
397
],
[
396,
398
],
[
395,
399
],
[
399,
400
],
[
378,
401
],
[
401,
402
],
[
376,
403
],
[
403,
404
],
[
205,
405
],
[
405,
406
],
[
405,
407
],
[
407,
408
],
[
408,
409
],
[
408,
410
],
[
407,
412
],
[
412,
413
],
[
413,
414
],
[
414,
415
],
[
414,
416
],
[
412,
417
],
[
417,
418
],
[
417,
419
],
[
412,
420
],
[
420,
421
],
[
421,
422
],
[
412,
423
],
[
423,
424
],
[
424,
425
],
[
425,
426
],
[
425,
427
],
[
424,
428
],
[
428,
429
],
[
407,
430
],
[
430,
431
],
[
405,
432
],
[
432,
433
],
[
205,
434
],
[
434,
435
],
[
434,
436
],
[
436,
437
],
[
437,
438
],
[
438,
439
],
[
439,
440
],
[
205,
441
],
[
441,
442
],
[
441,
443
],
[
443,
444
],
[
444,
445
],
[
445,
446
],
[
446,
447
],
[
445,
448
],
[
448,
449
],
[
205,
450
],
[
450,
451
],
[
450,
452
],
[
452,
453
],
[
453,
454
],
[
454,
455
],
[
455,
456
],
[
454,
457
],
[
457,
458
],
[
205,
459
],
[
459,
460
],
[
459,
461
],
[
461,
462
],
[
462,
463
],
[
463,
464
],
[
464,
465
],
[
465,
466
],
[
463,
467
],
[
205,
468
],
[
468,
469
],
[
468,
470
],
[
470,
471
],
[
471,
472
],
[
472,
473
],
[
473,
474
],
[
472,
475
],
[
475,
476
],
[
205,
477
],
[
477,
478
],
[
477,
479
],
[
479,
480
],
[
480,
481
],
[
481,
482
],
[
482,
483
],
[
205,
484
],
[
484,
485
],
[
484,
486
],
[
486,
487
],
[
487,
488
],
[
488,
489
],
[
487,
490
],
[
0,
491
],
[
491,
492
],
[
491,
493
]
]
| [
"import java.io.*;\nimport java.util.*;\npublic class Main{\n\tstatic void main() throws Exception{\n\t\tHashMap<String, Integer>map=new HashMap<>();\n\t\tmap.put(\"AC\", 0);\n\t\tmap.put(\"WA\", 1);\n\t\tmap.put(\"TLE\", 2);\n\t\tmap.put(\"RE\", 3);\n\t\tString[]s=new String[] {\"AC\",\"WA\",\"TLE\",\"RE\"};\n\t\tint[]cnt=new int[4];\n\t\tint n=sc.nextInt();\n\t\twhile(n-->0) {\n\t\t\tcnt[map.get(sc.next())]++;\n\t\t}\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tpw.printf(\"%s x %s\\n\", s[i], cnt[i]);\n\t\t}\n\t}\n\tpublic static void main(String[] args) throws Exception{\n\t\tsc=new MScanner(System.in);\n\t\tpw = new PrintWriter(System.out);\n\t\tint tc=1;\n//\t\ttc=sc.nextInt();\n\t\twhile(tc-->0)\n\t\t\tmain();\n\t\tpw.flush();\n\t}\n\tstatic PrintWriter pw;\n\tstatic MScanner sc;\n\tstatic class MScanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\t\tpublic MScanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n \n\t\tpublic MScanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n \n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tpublic int[] intArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}\n\t\tpublic long[] longArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}\n\t\tpublic int[] intSortedArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}\n\t\tpublic long[] longSortedArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}\n\t\tpublic Integer[] IntegerArr(int n) throws IOException {\n\t Integer[]in=new Integer[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}\n\t\tpublic Long[] LongArr(int n) throws IOException {\n\t Long[]in=new Long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n \n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n \n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n \n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n\tstatic void shuffle(int[]in) {\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tint tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}\n\tstatic void shuffle(long[]in) {\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tlong tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tstatic void main() throws Exception{\n\t\tHashMap<String, Integer>map=new HashMap<>();\n\t\tmap.put(\"AC\", 0);\n\t\tmap.put(\"WA\", 1);\n\t\tmap.put(\"TLE\", 2);\n\t\tmap.put(\"RE\", 3);\n\t\tString[]s=new String[] {\"AC\",\"WA\",\"TLE\",\"RE\"};\n\t\tint[]cnt=new int[4];\n\t\tint n=sc.nextInt();\n\t\twhile(n-->0) {\n\t\t\tcnt[map.get(sc.next())]++;\n\t\t}\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tpw.printf(\"%s x %s\\n\", s[i], cnt[i]);\n\t\t}\n\t}\n\tpublic static void main(String[] args) throws Exception{\n\t\tsc=new MScanner(System.in);\n\t\tpw = new PrintWriter(System.out);\n\t\tint tc=1;\n//\t\ttc=sc.nextInt();\n\t\twhile(tc-->0)\n\t\t\tmain();\n\t\tpw.flush();\n\t}\n\tstatic PrintWriter pw;\n\tstatic MScanner sc;\n\tstatic class MScanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\t\tpublic MScanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n \n\t\tpublic MScanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n \n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tpublic int[] intArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}\n\t\tpublic long[] longArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}\n\t\tpublic int[] intSortedArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}\n\t\tpublic long[] longSortedArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}\n\t\tpublic Integer[] IntegerArr(int n) throws IOException {\n\t Integer[]in=new Integer[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}\n\t\tpublic Long[] LongArr(int n) throws IOException {\n\t Long[]in=new Long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n \n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n \n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n \n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n\tstatic void shuffle(int[]in) {\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tint tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}\n\tstatic void shuffle(long[]in) {\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tlong tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}\n}",
"Main",
"static PrintWriter pw;",
"pw",
"static MScanner sc;",
"sc",
"static void main() throws Exception{\n\t\tHashMap<String, Integer>map=new HashMap<>();\n\t\tmap.put(\"AC\", 0);\n\t\tmap.put(\"WA\", 1);\n\t\tmap.put(\"TLE\", 2);\n\t\tmap.put(\"RE\", 3);\n\t\tString[]s=new String[] {\"AC\",\"WA\",\"TLE\",\"RE\"};\n\t\tint[]cnt=new int[4];\n\t\tint n=sc.nextInt();\n\t\twhile(n-->0) {\n\t\t\tcnt[map.get(sc.next())]++;\n\t\t}\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tpw.printf(\"%s x %s\\n\", s[i], cnt[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tHashMap<String, Integer>map=new HashMap<>();\n\t\tmap.put(\"AC\", 0);\n\t\tmap.put(\"WA\", 1);\n\t\tmap.put(\"TLE\", 2);\n\t\tmap.put(\"RE\", 3);\n\t\tString[]s=new String[] {\"AC\",\"WA\",\"TLE\",\"RE\"};\n\t\tint[]cnt=new int[4];\n\t\tint n=sc.nextInt();\n\t\twhile(n-->0) {\n\t\t\tcnt[map.get(sc.next())]++;\n\t\t}\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tpw.printf(\"%s x %s\\n\", s[i], cnt[i]);\n\t\t}\n\t}",
"HashMap<String, Integer>map=new HashMap<>();",
"map",
"new HashMap<>()",
"map.put(\"AC\", 0)",
"map.put",
"map",
"\"AC\"",
"0",
"map.put(\"WA\", 1)",
"map.put",
"map",
"\"WA\"",
"1",
"map.put(\"TLE\", 2)",
"map.put",
"map",
"\"TLE\"",
"2",
"map.put(\"RE\", 3)",
"map.put",
"map",
"\"RE\"",
"3",
"String[]s=new String[] {\"AC\",\"WA\",\"TLE\",\"RE\"};",
"s",
"new String[] {\"AC\",\"WA\",\"TLE\",\"RE\"}",
"int[]cnt=new int[4];",
"cnt",
"new int[4]",
"4",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"while(n-->0) {\n\t\t\tcnt[map.get(sc.next())]++;\n\t\t}",
"n-->0",
"n--",
"n",
"0",
"{\n\t\t\tcnt[map.get(sc.next())]++;\n\t\t}",
"cnt[map.get(sc.next())]++",
"cnt[map.get(sc.next())]",
"cnt",
"map.get(sc.next())",
"map.get",
"map",
"sc.next()",
"sc.next",
"sc",
"for(int i=0;i<4;i++) {\n\t\t\tpw.printf(\"%s x %s\\n\", s[i], cnt[i]);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\tpw.printf(\"%s x %s\\n\", s[i], cnt[i]);\n\t\t}",
"{\n\t\t\tpw.printf(\"%s x %s\\n\", s[i], cnt[i]);\n\t\t}",
"pw.printf(\"%s x %s\\n\", s[i], cnt[i])",
"pw.printf",
"pw",
"\"%s x %s\\n\"",
"s[i]",
"s",
"i",
"cnt[i]",
"cnt",
"i",
"public static void main(String[] args) throws Exception{\n\t\tsc=new MScanner(System.in);\n\t\tpw = new PrintWriter(System.out);\n\t\tint tc=1;\n//\t\ttc=sc.nextInt();\n\t\twhile(tc-->0)\n\t\t\tmain();\n\t\tpw.flush();\n\t}",
"main",
"{\n\t\tsc=new MScanner(System.in);\n\t\tpw = new PrintWriter(System.out);\n\t\tint tc=1;\n//\t\ttc=sc.nextInt();\n\t\twhile(tc-->0)\n\t\t\tmain();\n\t\tpw.flush();\n\t}",
"sc=new MScanner(System.in)",
"sc",
"new MScanner(System.in)",
"pw = new PrintWriter(System.out)",
"pw",
"new PrintWriter(System.out)",
"int tc=1;",
"tc",
"1",
"while(tc-->0)\n\t\t\tmain();",
"tc-->0",
"tc--",
"tc",
"0",
"main()",
"main",
"pw.flush()",
"pw.flush",
"pw",
"String[] args",
"args",
"static void shuffle(int[]in) {\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tint tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}",
"shuffle",
"{\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tint tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}",
"for(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tint tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<in.length",
"i",
"in.length",
"in",
"in.length",
"i++",
"i++",
"i",
"{\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tint tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}",
"{\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tint tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}",
"int idx=(int)(Math.random()*in.length);",
"idx",
"(int)(Math.random()*in.length)",
"Math.random()",
"Math.random",
"Math",
"in.length",
"in",
"in.length",
"int tmp=in[i];",
"tmp",
"in[i]",
"in",
"i",
"in[i]=in[idx]",
"in[i]",
"in",
"i",
"in[idx]",
"in",
"idx",
"in[idx]=tmp",
"in[idx]",
"in",
"idx",
"tmp",
"int[]in",
"in",
"static void shuffle(long[]in) {\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tlong tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}",
"shuffle",
"{\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tlong tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}",
"for(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tlong tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<in.length",
"i",
"in.length",
"in",
"in.length",
"i++",
"i++",
"i",
"{\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tlong tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}",
"{\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tlong tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}",
"int idx=(int)(Math.random()*in.length);",
"idx",
"(int)(Math.random()*in.length)",
"Math.random()",
"Math.random",
"Math",
"in.length",
"in",
"in.length",
"long tmp=in[i];",
"tmp",
"in[i]",
"in",
"i",
"in[i]=in[idx]",
"in[i]",
"in",
"i",
"in[idx]",
"in",
"idx",
"in[idx]=tmp",
"in[idx]",
"in",
"idx",
"tmp",
"long[]in",
"in",
"static class MScanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\t\tpublic MScanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n \n\t\tpublic MScanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n \n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tpublic int[] intArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}\n\t\tpublic long[] longArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}\n\t\tpublic int[] intSortedArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}\n\t\tpublic long[] longSortedArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}\n\t\tpublic Integer[] IntegerArr(int n) throws IOException {\n\t Integer[]in=new Integer[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}\n\t\tpublic Long[] LongArr(int n) throws IOException {\n\t Long[]in=new Long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n \n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n \n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n \n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}",
"MScanner",
"StringTokenizer st;",
"st",
"BufferedReader br;",
"br",
"public MScanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}",
"MScanner",
"{\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}",
"br = new BufferedReader(new InputStreamReader(system))",
"br",
"new BufferedReader(new InputStreamReader(system))",
"InputStream system",
"system",
"public MScanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}",
"MScanner",
"{\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}",
"br = new BufferedReader(new FileReader(file))",
"br",
"new BufferedReader(new FileReader(file))",
"String file",
"file",
"public String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}",
"next",
"{\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}",
"while (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public int[] intArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}",
"intArr",
"{\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}",
"int[]in=new int[n];",
"in",
"new int[n]",
"n",
"for(int i=0;i<n;i++)in[i]=nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"in[i]=nextInt();",
"in[i]=nextInt()",
"in[i]",
"in",
"i",
"nextInt()",
"nextInt",
"return in;",
"in",
"int n",
"n",
"public long[] longArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}",
"longArr",
"{\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}",
"long[]in=new long[n];",
"in",
"new long[n]",
"n",
"for(int i=0;i<n;i++)in[i]=nextLong();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"in[i]=nextLong();",
"in[i]=nextLong()",
"in[i]",
"in",
"i",
"nextLong()",
"nextLong",
"return in;",
"in",
"int n",
"n",
"public int[] intSortedArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}",
"intSortedArr",
"{\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}",
"int[]in=new int[n];",
"in",
"new int[n]",
"n",
"for(int i=0;i<n;i++)in[i]=nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"in[i]=nextInt();",
"in[i]=nextInt()",
"in[i]",
"in",
"i",
"nextInt()",
"nextInt",
"shuffle(in)",
"shuffle",
"in",
"Arrays.sort(in)",
"Arrays.sort",
"Arrays",
"in",
"return in;",
"in",
"int n",
"n",
"public long[] longSortedArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}",
"longSortedArr",
"{\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}",
"long[]in=new long[n];",
"in",
"new long[n]",
"n",
"for(int i=0;i<n;i++)in[i]=nextLong();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"in[i]=nextLong();",
"in[i]=nextLong()",
"in[i]",
"in",
"i",
"nextLong()",
"nextLong",
"shuffle(in)",
"shuffle",
"in",
"Arrays.sort(in)",
"Arrays.sort",
"Arrays",
"in",
"return in;",
"in",
"int n",
"n",
"public Integer[] IntegerArr(int n) throws IOException {\n\t Integer[]in=new Integer[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}",
"IntegerArr",
"{\n\t Integer[]in=new Integer[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}",
"Integer[]in=new Integer[n];",
"in",
"new Integer[n]",
"n",
"for(int i=0;i<n;i++)in[i]=nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"in[i]=nextInt();",
"in[i]=nextInt()",
"in[i]",
"in",
"i",
"nextInt()",
"nextInt",
"return in;",
"in",
"int n",
"n",
"public Long[] LongArr(int n) throws IOException {\n\t Long[]in=new Long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}",
"LongArr",
"{\n\t Long[]in=new Long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}",
"Long[]in=new Long[n];",
"in",
"new Long[n]",
"n",
"for(int i=0;i<n;i++)in[i]=nextLong();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"in[i]=nextLong();",
"in[i]=nextLong()",
"in[i]",
"in",
"i",
"nextLong()",
"nextLong",
"return in;",
"in",
"int n",
"n",
"public String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}",
"nextLine",
"{\n\t\t\treturn br.readLine();\n\t\t}",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"public int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"nextInt",
"{\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}",
"nextDouble",
"{\n\t\t\treturn Double.parseDouble(next());\n\t\t}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}",
"nextChar",
"{\n\t\t\treturn next().charAt(0);\n\t\t}",
"return next().charAt(0);",
"next().charAt(0)",
"next().charAt",
"next()",
"next",
"0",
"public long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"nextLong",
"{\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}",
"ready",
"{\n\t\t\treturn br.ready();\n\t\t}",
"return br.ready();",
"br.ready()",
"br.ready",
"br",
"public void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}",
"waitForInput",
"{\n\t\t\tThread.sleep(3000);\n\t\t}",
"Thread.sleep(3000)",
"Thread.sleep",
"Thread",
"3000",
"public class Main{\n\tstatic void main() throws Exception{\n\t\tHashMap<String, Integer>map=new HashMap<>();\n\t\tmap.put(\"AC\", 0);\n\t\tmap.put(\"WA\", 1);\n\t\tmap.put(\"TLE\", 2);\n\t\tmap.put(\"RE\", 3);\n\t\tString[]s=new String[] {\"AC\",\"WA\",\"TLE\",\"RE\"};\n\t\tint[]cnt=new int[4];\n\t\tint n=sc.nextInt();\n\t\twhile(n-->0) {\n\t\t\tcnt[map.get(sc.next())]++;\n\t\t}\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tpw.printf(\"%s x %s\\n\", s[i], cnt[i]);\n\t\t}\n\t}\n\tpublic static void main(String[] args) throws Exception{\n\t\tsc=new MScanner(System.in);\n\t\tpw = new PrintWriter(System.out);\n\t\tint tc=1;\n//\t\ttc=sc.nextInt();\n\t\twhile(tc-->0)\n\t\t\tmain();\n\t\tpw.flush();\n\t}\n\tstatic PrintWriter pw;\n\tstatic MScanner sc;\n\tstatic class MScanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\t\tpublic MScanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n \n\t\tpublic MScanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n \n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tpublic int[] intArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}\n\t\tpublic long[] longArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}\n\t\tpublic int[] intSortedArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}\n\t\tpublic long[] longSortedArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}\n\t\tpublic Integer[] IntegerArr(int n) throws IOException {\n\t Integer[]in=new Integer[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}\n\t\tpublic Long[] LongArr(int n) throws IOException {\n\t Long[]in=new Long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n \n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n \n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n \n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n\tstatic void shuffle(int[]in) {\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tint tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}\n\tstatic void shuffle(long[]in) {\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tlong tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}\n}",
"public class Main{\n\tstatic void main() throws Exception{\n\t\tHashMap<String, Integer>map=new HashMap<>();\n\t\tmap.put(\"AC\", 0);\n\t\tmap.put(\"WA\", 1);\n\t\tmap.put(\"TLE\", 2);\n\t\tmap.put(\"RE\", 3);\n\t\tString[]s=new String[] {\"AC\",\"WA\",\"TLE\",\"RE\"};\n\t\tint[]cnt=new int[4];\n\t\tint n=sc.nextInt();\n\t\twhile(n-->0) {\n\t\t\tcnt[map.get(sc.next())]++;\n\t\t}\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tpw.printf(\"%s x %s\\n\", s[i], cnt[i]);\n\t\t}\n\t}\n\tpublic static void main(String[] args) throws Exception{\n\t\tsc=new MScanner(System.in);\n\t\tpw = new PrintWriter(System.out);\n\t\tint tc=1;\n//\t\ttc=sc.nextInt();\n\t\twhile(tc-->0)\n\t\t\tmain();\n\t\tpw.flush();\n\t}\n\tstatic PrintWriter pw;\n\tstatic MScanner sc;\n\tstatic class MScanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\t\tpublic MScanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n \n\t\tpublic MScanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n \n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tpublic int[] intArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}\n\t\tpublic long[] longArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}\n\t\tpublic int[] intSortedArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}\n\t\tpublic long[] longSortedArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}\n\t\tpublic Integer[] IntegerArr(int n) throws IOException {\n\t Integer[]in=new Integer[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}\n\t\tpublic Long[] LongArr(int n) throws IOException {\n\t Long[]in=new Long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n \n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n \n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n \n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n\tstatic void shuffle(int[]in) {\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tint tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}\n\tstatic void shuffle(long[]in) {\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tlong tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main{
static void main() throws Exception{
HashMap<String, Integer>map=new HashMap<>();
map.put("AC", 0);
map.put("WA", 1);
map.put("TLE", 2);
map.put("RE", 3);
String[]s=new String[] {"AC","WA","TLE","RE"};
int[]cnt=new int[4];
int n=sc.nextInt();
while(n-->0) {
cnt[map.get(sc.next())]++;
}
for(int i=0;i<4;i++) {
pw.printf("%s x %s\n", s[i], cnt[i]);
}
}
public static void main(String[] args) throws Exception{
sc=new MScanner(System.in);
pw = new PrintWriter(System.out);
int tc=1;
// tc=sc.nextInt();
while(tc-->0)
main();
pw.flush();
}
static PrintWriter pw;
static MScanner sc;
static class MScanner {
StringTokenizer st;
BufferedReader br;
public MScanner(InputStream system) {
br = new BufferedReader(new InputStreamReader(system));
}
public MScanner(String file) throws Exception {
br = new BufferedReader(new FileReader(file));
}
public String next() throws IOException {
while (st == null || !st.hasMoreTokens())
st = new StringTokenizer(br.readLine());
return st.nextToken();
}
public int[] intArr(int n) throws IOException {
int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();
return in;
}
public long[] longArr(int n) throws IOException {
long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();
return in;
}
public int[] intSortedArr(int n) throws IOException {
int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();
shuffle(in);
Arrays.sort(in);
return in;
}
public long[] longSortedArr(int n) throws IOException {
long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();
shuffle(in);
Arrays.sort(in);
return in;
}
public Integer[] IntegerArr(int n) throws IOException {
Integer[]in=new Integer[n];for(int i=0;i<n;i++)in[i]=nextInt();
return in;
}
public Long[] LongArr(int n) throws IOException {
Long[]in=new Long[n];for(int i=0;i<n;i++)in[i]=nextLong();
return in;
}
public String nextLine() throws IOException {
return br.readLine();
}
public int nextInt() throws IOException {
return Integer.parseInt(next());
}
public double nextDouble() throws IOException {
return Double.parseDouble(next());
}
public char nextChar() throws IOException {
return next().charAt(0);
}
public long nextLong() throws IOException {
return Long.parseLong(next());
}
public boolean ready() throws IOException {
return br.ready();
}
public void waitForInput() throws InterruptedException {
Thread.sleep(3000);
}
}
static void shuffle(int[]in) {
for(int i=0;i<in.length;i++) {
int idx=(int)(Math.random()*in.length);
int tmp=in[i];
in[i]=in[idx];
in[idx]=tmp;
}
}
static void shuffle(long[]in) {
for(int i=0;i<in.length;i++) {
int idx=(int)(Math.random()*in.length);
long tmp=in[i];
in[i]=in[idx];
in[idx]=tmp;
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
40,
13,
14,
4,
18,
13,
17,
30,
40,
13,
14,
4,
18,
13,
17,
30,
40,
13,
30,
40,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
109,
5
],
[
109,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
52,
53
],
[
53,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
55,
60
],
[
60,
61
],
[
61,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
63,
68
],
[
68,
69
],
[
69,
70
],
[
63,
71
],
[
71,
72
],
[
72,
73
],
[
8,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
79,
80
],
[
79,
81
],
[
8,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
87,
88
],
[
87,
89
],
[
8,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
8,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
103,
104
],
[
103,
105
],
[
6,
106
],
[
106,
107
],
[
0,
108
],
[
108,
109
],
[
108,
110
]
]
| [
"import java.util.*;\n\npublic class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner console = new Scanner(System.in);\n\t\tint n = console.nextInt();\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\t\tfor(int i = 0; i < n; i ++)\n\t\t{\n\t\t\tString temp = console.next();\n\t\t\tif(temp.equals(\"AC\"))\n\t\t\t{\n\t\t\t\tac ++;\n\t\t\t}\n\t\t\telse if(temp.equals(\"WA\"))\n\t\t\t{\n\t\t\t\twa ++;\n\t\t\t}\n\t\t\telse if(temp.equals(\"TLE\"))\n\t\t\t{\n\t\t\t\ttle ++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tre ++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + ac);\n\t\tSystem.out.println(\"WA x \" + wa);\n\t\tSystem.out.println(\"TLE x \" + tle);\n\t\tSystem.out.print(\"RE x \" + re);\t\t\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner console = new Scanner(System.in);\n\t\tint n = console.nextInt();\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\t\tfor(int i = 0; i < n; i ++)\n\t\t{\n\t\t\tString temp = console.next();\n\t\t\tif(temp.equals(\"AC\"))\n\t\t\t{\n\t\t\t\tac ++;\n\t\t\t}\n\t\t\telse if(temp.equals(\"WA\"))\n\t\t\t{\n\t\t\t\twa ++;\n\t\t\t}\n\t\t\telse if(temp.equals(\"TLE\"))\n\t\t\t{\n\t\t\t\ttle ++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tre ++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + ac);\n\t\tSystem.out.println(\"WA x \" + wa);\n\t\tSystem.out.println(\"TLE x \" + tle);\n\t\tSystem.out.print(\"RE x \" + re);\t\t\n\t}\n}",
"Main",
"public static void main(String[] args)\n\t{\n\t\tScanner console = new Scanner(System.in);\n\t\tint n = console.nextInt();\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\t\tfor(int i = 0; i < n; i ++)\n\t\t{\n\t\t\tString temp = console.next();\n\t\t\tif(temp.equals(\"AC\"))\n\t\t\t{\n\t\t\t\tac ++;\n\t\t\t}\n\t\t\telse if(temp.equals(\"WA\"))\n\t\t\t{\n\t\t\t\twa ++;\n\t\t\t}\n\t\t\telse if(temp.equals(\"TLE\"))\n\t\t\t{\n\t\t\t\ttle ++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tre ++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + ac);\n\t\tSystem.out.println(\"WA x \" + wa);\n\t\tSystem.out.println(\"TLE x \" + tle);\n\t\tSystem.out.print(\"RE x \" + re);\t\t\n\t}",
"main",
"{\n\t\tScanner console = new Scanner(System.in);\n\t\tint n = console.nextInt();\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\t\tfor(int i = 0; i < n; i ++)\n\t\t{\n\t\t\tString temp = console.next();\n\t\t\tif(temp.equals(\"AC\"))\n\t\t\t{\n\t\t\t\tac ++;\n\t\t\t}\n\t\t\telse if(temp.equals(\"WA\"))\n\t\t\t{\n\t\t\t\twa ++;\n\t\t\t}\n\t\t\telse if(temp.equals(\"TLE\"))\n\t\t\t{\n\t\t\t\ttle ++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tre ++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + ac);\n\t\tSystem.out.println(\"WA x \" + wa);\n\t\tSystem.out.println(\"TLE x \" + tle);\n\t\tSystem.out.print(\"RE x \" + re);\t\t\n\t}",
"Scanner console = new Scanner(System.in);",
"console",
"new Scanner(System.in)",
"int n = console.nextInt();",
"n",
"console.nextInt()",
"console.nextInt",
"console",
"int ac = 0;",
"ac",
"0",
"int wa = 0;",
"wa",
"0",
"int tle = 0;",
"tle",
"0",
"int re = 0;",
"re",
"0",
"for(int i = 0; i < n; i ++)\n\t\t{\n\t\t\tString temp = console.next();\n\t\t\tif(temp.equals(\"AC\"))\n\t\t\t{\n\t\t\t\tac ++;\n\t\t\t}\n\t\t\telse if(temp.equals(\"WA\"))\n\t\t\t{\n\t\t\t\twa ++;\n\t\t\t}\n\t\t\telse if(temp.equals(\"TLE\"))\n\t\t\t{\n\t\t\t\ttle ++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tre ++;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i ++",
"i ++",
"i",
"{\n\t\t\tString temp = console.next();\n\t\t\tif(temp.equals(\"AC\"))\n\t\t\t{\n\t\t\t\tac ++;\n\t\t\t}\n\t\t\telse if(temp.equals(\"WA\"))\n\t\t\t{\n\t\t\t\twa ++;\n\t\t\t}\n\t\t\telse if(temp.equals(\"TLE\"))\n\t\t\t{\n\t\t\t\ttle ++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tre ++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString temp = console.next();\n\t\t\tif(temp.equals(\"AC\"))\n\t\t\t{\n\t\t\t\tac ++;\n\t\t\t}\n\t\t\telse if(temp.equals(\"WA\"))\n\t\t\t{\n\t\t\t\twa ++;\n\t\t\t}\n\t\t\telse if(temp.equals(\"TLE\"))\n\t\t\t{\n\t\t\t\ttle ++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tre ++;\n\t\t\t}\n\t\t}",
"String temp = console.next();",
"temp",
"console.next()",
"console.next",
"console",
"if(temp.equals(\"AC\"))\n\t\t\t{\n\t\t\t\tac ++;\n\t\t\t}\n\t\t\telse if(temp.equals(\"WA\"))\n\t\t\t{\n\t\t\t\twa ++;\n\t\t\t}\n\t\t\telse if(temp.equals(\"TLE\"))\n\t\t\t{\n\t\t\t\ttle ++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tre ++;\n\t\t\t}",
"temp.equals(\"AC\")",
"temp.equals",
"temp",
"\"AC\"",
"{\n\t\t\t\tac ++;\n\t\t\t}",
"ac ++",
"ac",
"if(temp.equals(\"WA\"))\n\t\t\t{\n\t\t\t\twa ++;\n\t\t\t}\n\t\t\telse if(temp.equals(\"TLE\"))\n\t\t\t{\n\t\t\t\ttle ++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tre ++;\n\t\t\t}",
"temp.equals(\"WA\")",
"temp.equals",
"temp",
"\"WA\"",
"{\n\t\t\t\twa ++;\n\t\t\t}",
"wa ++",
"wa",
"if(temp.equals(\"TLE\"))\n\t\t\t{\n\t\t\t\ttle ++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tre ++;\n\t\t\t}",
"temp.equals(\"TLE\")",
"temp.equals",
"temp",
"\"TLE\"",
"{\n\t\t\t\ttle ++;\n\t\t\t}",
"tle ++",
"tle",
"{\n\t\t\t\tre ++;\n\t\t\t}",
"re ++",
"re",
"System.out.println(\"AC x \" + ac)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + ac",
"\"AC x \"",
"ac",
"System.out.println(\"WA x \" + wa)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + wa",
"\"WA x \"",
"wa",
"System.out.println(\"TLE x \" + tle)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + tle",
"\"TLE x \"",
"tle",
"System.out.print(\"RE x \" + re)",
"System.out.print",
"System.out",
"System",
"System.out",
"\"RE x \" + re",
"\"RE x \"",
"re",
"String[] args",
"args",
"public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner console = new Scanner(System.in);\n\t\tint n = console.nextInt();\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\t\tfor(int i = 0; i < n; i ++)\n\t\t{\n\t\t\tString temp = console.next();\n\t\t\tif(temp.equals(\"AC\"))\n\t\t\t{\n\t\t\t\tac ++;\n\t\t\t}\n\t\t\telse if(temp.equals(\"WA\"))\n\t\t\t{\n\t\t\t\twa ++;\n\t\t\t}\n\t\t\telse if(temp.equals(\"TLE\"))\n\t\t\t{\n\t\t\t\ttle ++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tre ++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + ac);\n\t\tSystem.out.println(\"WA x \" + wa);\n\t\tSystem.out.println(\"TLE x \" + tle);\n\t\tSystem.out.print(\"RE x \" + re);\t\t\n\t}\n}",
"public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner console = new Scanner(System.in);\n\t\tint n = console.nextInt();\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\t\tfor(int i = 0; i < n; i ++)\n\t\t{\n\t\t\tString temp = console.next();\n\t\t\tif(temp.equals(\"AC\"))\n\t\t\t{\n\t\t\t\tac ++;\n\t\t\t}\n\t\t\telse if(temp.equals(\"WA\"))\n\t\t\t{\n\t\t\t\twa ++;\n\t\t\t}\n\t\t\telse if(temp.equals(\"TLE\"))\n\t\t\t{\n\t\t\t\ttle ++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tre ++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + ac);\n\t\tSystem.out.println(\"WA x \" + wa);\n\t\tSystem.out.println(\"TLE x \" + tle);\n\t\tSystem.out.print(\"RE x \" + re);\t\t\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main
{
public static void main(String[] args)
{
Scanner console = new Scanner(System.in);
int n = console.nextInt();
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
for(int i = 0; i < n; i ++)
{
String temp = console.next();
if(temp.equals("AC"))
{
ac ++;
}
else if(temp.equals("WA"))
{
wa ++;
}
else if(temp.equals("TLE"))
{
tle ++;
}
else
{
re ++;
}
}
System.out.println("AC x " + ac);
System.out.println("WA x " + wa);
System.out.println("TLE x " + tle);
System.out.print("RE x " + re);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
35,
18,
13,
13,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
129,
5
],
[
129,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
26,
27
],
[
26,
28
],
[
21,
29
],
[
29,
30
],
[
30,
31
],
[
21,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
47,
49
],
[
8,
50
],
[
50,
51
],
[
50,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
53,
64
],
[
65,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
66,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
66,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
66,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
8,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
99,
100
],
[
99,
101
],
[
8,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
8,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
8,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
6,
126
],
[
126,
127
],
[
0,
128
],
[
128,
129
],
[
128,
130
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tString[] s = new String[n];\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\ts[i] = sc.next();\n\t\t}\n\t\t\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tswitch(s[i]) {\n\t\t\tcase \"AC\":\n\t\t\t\tac++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\twa++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\ttle++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tre++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"AC x \" + ac);\n\t\tSystem.out.println(\"WA x \" + wa);\n\t\tSystem.out.println(\"TLE x \" + tle);\n\t\tSystem.out.println(\"RE x \" + re);\n\t\t\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tString[] s = new String[n];\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\ts[i] = sc.next();\n\t\t}\n\t\t\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tswitch(s[i]) {\n\t\t\tcase \"AC\":\n\t\t\t\tac++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\twa++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\ttle++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tre++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"AC x \" + ac);\n\t\tSystem.out.println(\"WA x \" + wa);\n\t\tSystem.out.println(\"TLE x \" + tle);\n\t\tSystem.out.println(\"RE x \" + re);\n\t\t\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tString[] s = new String[n];\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\ts[i] = sc.next();\n\t\t}\n\t\t\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tswitch(s[i]) {\n\t\t\tcase \"AC\":\n\t\t\t\tac++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\twa++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\ttle++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tre++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"AC x \" + ac);\n\t\tSystem.out.println(\"WA x \" + wa);\n\t\tSystem.out.println(\"TLE x \" + tle);\n\t\tSystem.out.println(\"RE x \" + re);\n\t\t\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tString[] s = new String[n];\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\ts[i] = sc.next();\n\t\t}\n\t\t\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tswitch(s[i]) {\n\t\t\tcase \"AC\":\n\t\t\t\tac++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\twa++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\ttle++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tre++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"AC x \" + ac);\n\t\tSystem.out.println(\"WA x \" + wa);\n\t\tSystem.out.println(\"TLE x \" + tle);\n\t\tSystem.out.println(\"RE x \" + re);\n\t\t\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String[] s = new String[n];",
"s",
"new String[n]",
"n",
"for(int i = 0; i < n; i++) {\n\t\t\ts[i] = sc.next();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\ts[i] = sc.next();\n\t\t}",
"{\n\t\t\ts[i] = sc.next();\n\t\t}",
"s[i] = sc.next()",
"s[i]",
"s",
"i",
"sc.next()",
"sc.next",
"sc",
"int ac = 0;",
"ac",
"0",
"int wa = 0;",
"wa",
"0",
"int tle = 0;",
"tle",
"0",
"int re = 0;",
"re",
"0",
"for(int i = 0; i < n; i++) {\n\t\t\tswitch(s[i]) {\n\t\t\tcase \"AC\":\n\t\t\t\tac++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\twa++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\ttle++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tre++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tswitch(s[i]) {\n\t\t\tcase \"AC\":\n\t\t\t\tac++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\twa++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\ttle++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tre++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tswitch(s[i]) {\n\t\t\tcase \"AC\":\n\t\t\t\tac++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\twa++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\ttle++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tre++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"switch(s[i]) {\n\t\t\tcase \"AC\":\n\t\t\t\tac++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\twa++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\ttle++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tre++;\n\t\t\t\tbreak;\n\t\t\t}",
"s[i]",
"s",
"i",
"case \"AC\":",
"\"AC\"",
"case \"AC\":",
"ac++",
"ac",
"break;",
"case \"WA\":",
"\"WA\"",
"case \"WA\":",
"wa++",
"wa",
"break;",
"case \"TLE\":",
"\"TLE\"",
"case \"TLE\":",
"tle++",
"tle",
"break;",
"case \"RE\":",
"\"RE\"",
"case \"RE\":",
"re++",
"re",
"break;",
"System.out.println(\"AC x \" + ac)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + ac",
"\"AC x \"",
"ac",
"System.out.println(\"WA x \" + wa)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + wa",
"\"WA x \"",
"wa",
"System.out.println(\"TLE x \" + tle)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + tle",
"\"TLE x \"",
"tle",
"System.out.println(\"RE x \" + re)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + re",
"\"RE x \"",
"re",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tString[] s = new String[n];\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\ts[i] = sc.next();\n\t\t}\n\t\t\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tswitch(s[i]) {\n\t\t\tcase \"AC\":\n\t\t\t\tac++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\twa++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\ttle++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tre++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"AC x \" + ac);\n\t\tSystem.out.println(\"WA x \" + wa);\n\t\tSystem.out.println(\"TLE x \" + tle);\n\t\tSystem.out.println(\"RE x \" + re);\n\t\t\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tString[] s = new String[n];\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\ts[i] = sc.next();\n\t\t}\n\t\t\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tswitch(s[i]) {\n\t\t\tcase \"AC\":\n\t\t\t\tac++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\twa++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\ttle++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tre++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"AC x \" + ac);\n\t\tSystem.out.println(\"WA x \" + wa);\n\t\tSystem.out.println(\"TLE x \" + tle);\n\t\tSystem.out.println(\"RE x \" + re);\n\t\t\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
String[] s = new String[n];
for(int i = 0; i < n; i++) {
s[i] = sc.next();
}
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
for(int i = 0; i < n; i++) {
switch(s[i]) {
case "AC":
ac++;
break;
case "WA":
wa++;
break;
case "TLE":
tle++;
break;
case "RE":
re++;
break;
}
}
System.out.println("AC x " + ac);
System.out.println("WA x " + wa);
System.out.println("TLE x " + tle);
System.out.println("RE x " + re);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
110,
5
],
[
110,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
52,
53
],
[
41,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
54,
59
],
[
59,
60
],
[
41,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
61,
66
],
[
66,
67
],
[
41,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
68,
73
],
[
73,
74
],
[
8,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
8,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
88,
89
],
[
88,
90
],
[
8,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
8,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
6,
107
],
[
107,
108
],
[
0,
109
],
[
109,
110
],
[
109,
111
]
]
| [
"import java.util.Scanner;\n \npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N=sc.nextInt();\n int AC=0;\n int WA=0;\n int TLE=0;\n int RE=0;\n \n for(int i=0; i<N; i++)\n {String S=sc.next();\n if(S.equals(\"AC\"))\n \tAC++;\n if(S.equals(\"WA\"))\n \tWA++;\n if(S.equals(\"TLE\"))\n \tTLE++;\n if(S.equals(\"RE\"))\n \tRE++;\n \t\t }\n\tSystem.out.println(\"AC x \"+AC);\n\tSystem.out.println(\"WA x \"+WA);\n\tSystem.out.println(\"TLE x \"+TLE);\n\tSystem.out.println(\"RE x \"+RE);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N=sc.nextInt();\n int AC=0;\n int WA=0;\n int TLE=0;\n int RE=0;\n \n for(int i=0; i<N; i++)\n {String S=sc.next();\n if(S.equals(\"AC\"))\n \tAC++;\n if(S.equals(\"WA\"))\n \tWA++;\n if(S.equals(\"TLE\"))\n \tTLE++;\n if(S.equals(\"RE\"))\n \tRE++;\n \t\t }\n\tSystem.out.println(\"AC x \"+AC);\n\tSystem.out.println(\"WA x \"+WA);\n\tSystem.out.println(\"TLE x \"+TLE);\n\tSystem.out.println(\"RE x \"+RE);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N=sc.nextInt();\n int AC=0;\n int WA=0;\n int TLE=0;\n int RE=0;\n \n for(int i=0; i<N; i++)\n {String S=sc.next();\n if(S.equals(\"AC\"))\n \tAC++;\n if(S.equals(\"WA\"))\n \tWA++;\n if(S.equals(\"TLE\"))\n \tTLE++;\n if(S.equals(\"RE\"))\n \tRE++;\n \t\t }\n\tSystem.out.println(\"AC x \"+AC);\n\tSystem.out.println(\"WA x \"+WA);\n\tSystem.out.println(\"TLE x \"+TLE);\n\tSystem.out.println(\"RE x \"+RE);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N=sc.nextInt();\n int AC=0;\n int WA=0;\n int TLE=0;\n int RE=0;\n \n for(int i=0; i<N; i++)\n {String S=sc.next();\n if(S.equals(\"AC\"))\n \tAC++;\n if(S.equals(\"WA\"))\n \tWA++;\n if(S.equals(\"TLE\"))\n \tTLE++;\n if(S.equals(\"RE\"))\n \tRE++;\n \t\t }\n\tSystem.out.println(\"AC x \"+AC);\n\tSystem.out.println(\"WA x \"+WA);\n\tSystem.out.println(\"TLE x \"+TLE);\n\tSystem.out.println(\"RE x \"+RE);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N=sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int AC=0;",
"AC",
"0",
"int WA=0;",
"WA",
"0",
"int TLE=0;",
"TLE",
"0",
"int RE=0;",
"RE",
"0",
"for(int i=0; i<N; i++)\n {String S=sc.next();\n if(S.equals(\"AC\"))\n \tAC++;\n if(S.equals(\"WA\"))\n \tWA++;\n if(S.equals(\"TLE\"))\n \tTLE++;\n if(S.equals(\"RE\"))\n \tRE++;\n \t\t }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{String S=sc.next();\n if(S.equals(\"AC\"))\n \tAC++;\n if(S.equals(\"WA\"))\n \tWA++;\n if(S.equals(\"TLE\"))\n \tTLE++;\n if(S.equals(\"RE\"))\n \tRE++;\n \t\t }",
"{String S=sc.next();\n if(S.equals(\"AC\"))\n \tAC++;\n if(S.equals(\"WA\"))\n \tWA++;\n if(S.equals(\"TLE\"))\n \tTLE++;\n if(S.equals(\"RE\"))\n \tRE++;\n \t\t }",
"String S=sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"if(S.equals(\"AC\"))\n \tAC++;",
"S.equals(\"AC\")",
"S.equals",
"S",
"\"AC\"",
"AC++",
"AC",
"if(S.equals(\"WA\"))\n \tWA++;",
"S.equals(\"WA\")",
"S.equals",
"S",
"\"WA\"",
"WA++",
"WA",
"if(S.equals(\"TLE\"))\n \tTLE++;",
"S.equals(\"TLE\")",
"S.equals",
"S",
"\"TLE\"",
"TLE++",
"TLE",
"if(S.equals(\"RE\"))\n \tRE++;",
"S.equals(\"RE\")",
"S.equals",
"S",
"\"RE\"",
"RE++",
"RE",
"System.out.println(\"AC x \"+AC)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \"+AC",
"\"AC x \"",
"AC",
"System.out.println(\"WA x \"+WA)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \"+WA",
"\"WA x \"",
"WA",
"System.out.println(\"TLE x \"+TLE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \"+TLE",
"\"TLE x \"",
"TLE",
"System.out.println(\"RE x \"+RE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \"+RE",
"\"RE x \"",
"RE",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N=sc.nextInt();\n int AC=0;\n int WA=0;\n int TLE=0;\n int RE=0;\n \n for(int i=0; i<N; i++)\n {String S=sc.next();\n if(S.equals(\"AC\"))\n \tAC++;\n if(S.equals(\"WA\"))\n \tWA++;\n if(S.equals(\"TLE\"))\n \tTLE++;\n if(S.equals(\"RE\"))\n \tRE++;\n \t\t }\n\tSystem.out.println(\"AC x \"+AC);\n\tSystem.out.println(\"WA x \"+WA);\n\tSystem.out.println(\"TLE x \"+TLE);\n\tSystem.out.println(\"RE x \"+RE);\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N=sc.nextInt();\n int AC=0;\n int WA=0;\n int TLE=0;\n int RE=0;\n \n for(int i=0; i<N; i++)\n {String S=sc.next();\n if(S.equals(\"AC\"))\n \tAC++;\n if(S.equals(\"WA\"))\n \tWA++;\n if(S.equals(\"TLE\"))\n \tTLE++;\n if(S.equals(\"RE\"))\n \tRE++;\n \t\t }\n\tSystem.out.println(\"AC x \"+AC);\n\tSystem.out.println(\"WA x \"+WA);\n\tSystem.out.println(\"TLE x \"+TLE);\n\tSystem.out.println(\"RE x \"+RE);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N=sc.nextInt();
int AC=0;
int WA=0;
int TLE=0;
int RE=0;
for(int i=0; i<N; i++)
{String S=sc.next();
if(S.equals("AC"))
AC++;
if(S.equals("WA"))
WA++;
if(S.equals("TLE"))
TLE++;
if(S.equals("RE"))
RE++;
}
System.out.println("AC x "+AC);
System.out.println("WA x "+WA);
System.out.println("TLE x "+TLE);
System.out.println("RE x "+RE);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
0,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
35,
18,
13,
13,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
153,
5
],
[
153,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
26,
27
],
[
26,
28
],
[
21,
29
],
[
29,
30
],
[
30,
31
],
[
21,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
8,
40
],
[
40,
41
],
[
40,
42
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
8,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
61,
72
],
[
73,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
74,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
74,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
74,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
8,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
117,
119
],
[
8,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
120,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
127,
129
],
[
8,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
130,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
137,
139
],
[
8,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
140,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
147,
149
],
[
6,
150
],
[
150,
151
],
[
0,
152
],
[
152,
153
],
[
152,
154
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n\n int N = in.nextInt();\t\t// テストケースの個数\n String S[] = new String[N];\t// ジャッジ結果を表す文字列\t( AC, WA, TLE, RE )\n for(int i=0; i<N; i++)\n\t\tS[i] = in.next();\n int C[] = new int[4];\t\t\t// それぞれのテストケースの個数\n for(int i=0; i<4; i++)\n \tC[i] = 0;\n \n for(int i=0; i<N; i++){\n\t\tswitch (S[i]){\n\t\t\tcase \"AC\":\n\t\t\t\tC[0]++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\tC[1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\tC[2]++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tC[3]++;\n\t\t\t\tbreak;\n\t\t}\n }\n \n System.out.println(\"AC x \" + C[0]);\n System.out.println(\"WA x \" + C[1]);\n System.out.println(\"TLE x \" + C[2]);\n System.out.println(\"RE x \" + C[3]);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n\n int N = in.nextInt();\t\t// テストケースの個数\n String S[] = new String[N];\t// ジャッジ結果を表す文字列\t( AC, WA, TLE, RE )\n for(int i=0; i<N; i++)\n\t\tS[i] = in.next();\n int C[] = new int[4];\t\t\t// それぞれのテストケースの個数\n for(int i=0; i<4; i++)\n \tC[i] = 0;\n \n for(int i=0; i<N; i++){\n\t\tswitch (S[i]){\n\t\t\tcase \"AC\":\n\t\t\t\tC[0]++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\tC[1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\tC[2]++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tC[3]++;\n\t\t\t\tbreak;\n\t\t}\n }\n \n System.out.println(\"AC x \" + C[0]);\n System.out.println(\"WA x \" + C[1]);\n System.out.println(\"TLE x \" + C[2]);\n System.out.println(\"RE x \" + C[3]);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n\n int N = in.nextInt();\t\t// テストケースの個数\n String S[] = new String[N];\t// ジャッジ結果を表す文字列\t( AC, WA, TLE, RE )\n for(int i=0; i<N; i++)\n\t\tS[i] = in.next();\n int C[] = new int[4];\t\t\t// それぞれのテストケースの個数\n for(int i=0; i<4; i++)\n \tC[i] = 0;\n \n for(int i=0; i<N; i++){\n\t\tswitch (S[i]){\n\t\t\tcase \"AC\":\n\t\t\t\tC[0]++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\tC[1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\tC[2]++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tC[3]++;\n\t\t\t\tbreak;\n\t\t}\n }\n \n System.out.println(\"AC x \" + C[0]);\n System.out.println(\"WA x \" + C[1]);\n System.out.println(\"TLE x \" + C[2]);\n System.out.println(\"RE x \" + C[3]);\n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n\n int N = in.nextInt();\t\t// テストケースの個数\n String S[] = new String[N];\t// ジャッジ結果を表す文字列\t( AC, WA, TLE, RE )\n for(int i=0; i<N; i++)\n\t\tS[i] = in.next();\n int C[] = new int[4];\t\t\t// それぞれのテストケースの個数\n for(int i=0; i<4; i++)\n \tC[i] = 0;\n \n for(int i=0; i<N; i++){\n\t\tswitch (S[i]){\n\t\t\tcase \"AC\":\n\t\t\t\tC[0]++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\tC[1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\tC[2]++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tC[3]++;\n\t\t\t\tbreak;\n\t\t}\n }\n \n System.out.println(\"AC x \" + C[0]);\n System.out.println(\"WA x \" + C[1]);\n System.out.println(\"TLE x \" + C[2]);\n System.out.println(\"RE x \" + C[3]);\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int N = in.nextInt();",
"N",
"in.nextInt()",
"in.nextInt",
"in",
"String S[] = new String[N];",
"S",
"new String[N]",
"N",
"for(int i=0; i<N; i++)\n\t\tS[i] = in.next();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"S[i] = in.next();",
"S[i] = in.next()",
"S[i]",
"S",
"i",
"in.next()",
"in.next",
"in",
"int C[] = new int[4];",
"C",
"new int[4]",
"4",
"for(int i=0; i<4; i++)\n \tC[i] = 0;",
"int i=0;",
"int i=0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"C[i] = 0;",
"C[i] = 0",
"C[i]",
"C",
"i",
"0",
"for(int i=0; i<N; i++){\n\t\tswitch (S[i]){\n\t\t\tcase \"AC\":\n\t\t\t\tC[0]++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\tC[1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\tC[2]++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tC[3]++;\n\t\t\t\tbreak;\n\t\t}\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\tswitch (S[i]){\n\t\t\tcase \"AC\":\n\t\t\t\tC[0]++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\tC[1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\tC[2]++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tC[3]++;\n\t\t\t\tbreak;\n\t\t}\n }",
"{\n\t\tswitch (S[i]){\n\t\t\tcase \"AC\":\n\t\t\t\tC[0]++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\tC[1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\tC[2]++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tC[3]++;\n\t\t\t\tbreak;\n\t\t}\n }",
"switch (S[i]){\n\t\t\tcase \"AC\":\n\t\t\t\tC[0]++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\tC[1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\tC[2]++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tC[3]++;\n\t\t\t\tbreak;\n\t\t}",
"S[i]",
"S",
"i",
"case \"AC\":",
"\"AC\"",
"case \"AC\":",
"C[0]++",
"C[0]",
"C",
"0",
"break;",
"case \"WA\":",
"\"WA\"",
"case \"WA\":",
"C[1]++",
"C[1]",
"C",
"1",
"break;",
"case \"TLE\":",
"\"TLE\"",
"case \"TLE\":",
"C[2]++",
"C[2]",
"C",
"2",
"break;",
"case \"RE\":",
"\"RE\"",
"case \"RE\":",
"C[3]++",
"C[3]",
"C",
"3",
"break;",
"System.out.println(\"AC x \" + C[0])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + C[0]",
"\"AC x \"",
"C[0]",
"C",
"0",
"System.out.println(\"WA x \" + C[1])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + C[1]",
"\"WA x \"",
"C[1]",
"C",
"1",
"System.out.println(\"TLE x \" + C[2])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + C[2]",
"\"TLE x \"",
"C[2]",
"C",
"2",
"System.out.println(\"RE x \" + C[3])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + C[3]",
"\"RE x \"",
"C[3]",
"C",
"3",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n\n int N = in.nextInt();\t\t// テストケースの個数\n String S[] = new String[N];\t// ジャッジ結果を表す文字列\t( AC, WA, TLE, RE )\n for(int i=0; i<N; i++)\n\t\tS[i] = in.next();\n int C[] = new int[4];\t\t\t// それぞれのテストケースの個数\n for(int i=0; i<4; i++)\n \tC[i] = 0;\n \n for(int i=0; i<N; i++){\n\t\tswitch (S[i]){\n\t\t\tcase \"AC\":\n\t\t\t\tC[0]++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\tC[1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\tC[2]++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tC[3]++;\n\t\t\t\tbreak;\n\t\t}\n }\n \n System.out.println(\"AC x \" + C[0]);\n System.out.println(\"WA x \" + C[1]);\n System.out.println(\"TLE x \" + C[2]);\n System.out.println(\"RE x \" + C[3]);\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n\n int N = in.nextInt();\t\t// テストケースの個数\n String S[] = new String[N];\t// ジャッジ結果を表す文字列\t( AC, WA, TLE, RE )\n for(int i=0; i<N; i++)\n\t\tS[i] = in.next();\n int C[] = new int[4];\t\t\t// それぞれのテストケースの個数\n for(int i=0; i<4; i++)\n \tC[i] = 0;\n \n for(int i=0; i<N; i++){\n\t\tswitch (S[i]){\n\t\t\tcase \"AC\":\n\t\t\t\tC[0]++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\tC[1]++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\tC[2]++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tC[3]++;\n\t\t\t\tbreak;\n\t\t}\n }\n \n System.out.println(\"AC x \" + C[0]);\n System.out.println(\"WA x \" + C[1]);\n System.out.println(\"TLE x \" + C[2]);\n System.out.println(\"RE x \" + C[3]);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner in = new Scanner(System.in);
int N = in.nextInt(); // テストケースの個数
String S[] = new String[N]; // ジャッジ結果を表す文字列 ( AC, WA, TLE, RE )
for(int i=0; i<N; i++)
S[i] = in.next();
int C[] = new int[4]; // それぞれのテストケースの個数
for(int i=0; i<4; i++)
C[i] = 0;
for(int i=0; i<N; i++){
switch (S[i]){
case "AC":
C[0]++;
break;
case "WA":
C[1]++;
break;
case "TLE":
C[2]++;
break;
case "RE":
C[3]++;
break;
}
}
System.out.println("AC x " + C[0]);
System.out.println("WA x " + C[1]);
System.out.println("TLE x " + C[2]);
System.out.println("RE x " + C[3]);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
40,
13,
14,
4,
18,
13,
17,
30,
40,
13,
14,
4,
18,
13,
17,
30,
40,
13,
14,
4,
18,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
2,
2,
17,
17,
13,
4,
18,
18,
13,
13,
2,
2,
17,
17,
13,
4,
18,
18,
13,
13,
2,
2,
17,
17,
13,
4,
18,
18,
13,
13,
2,
2,
17,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
122,
5
],
[
122,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
52,
53
],
[
53,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
55,
60
],
[
60,
61
],
[
61,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
63,
68
],
[
68,
69
],
[
69,
70
],
[
63,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
71,
76
],
[
76,
77
],
[
77,
78
],
[
8,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
85,
85
],
[
85,
86
],
[
85,
87
],
[
85,
88
],
[
8,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
95,
95
],
[
95,
96
],
[
95,
97
],
[
95,
98
],
[
8,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
105,
105
],
[
105,
106
],
[
105,
107
],
[
105,
108
],
[
8,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
115,
115
],
[
115,
116
],
[
115,
117
],
[
115,
118
],
[
6,
119
],
[
119,
120
],
[
0,
121
],
[
121,
122
],
[
121,
123
]
]
| [
"import java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\n\n\t\tScanner sc=new Scanner(System.in);\n \n\t\t int n=sc.nextInt();\n int c1=0,c2=0,c3=0,c4=0;\n \n\t\t for(int i=1;i<=n;i++){\n\t\t\tString s=sc.next();\n if(s.contains(\"AC\")){\n\t\t\t\tc1++;\n\t\t}else if(s.contains(\"WA\")){\nc2++;\n}else if(s.contains(\"TLE\")){\nc3++;\n }else if(s.contains(\"RE\")){\nc4++;\n }\n }\n System.out.println(\"AC \"+\"x \"+c1);\n System.out.println(\"WA \"+\"x \"+c2);\n\t\t\t\t\t System.out.println(\"TLE \"+\"x \"+c3);\n System.out.println(\"RE \"+\"x \"+c4);\n }\n }",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\n\n\t\tScanner sc=new Scanner(System.in);\n \n\t\t int n=sc.nextInt();\n int c1=0,c2=0,c3=0,c4=0;\n \n\t\t for(int i=1;i<=n;i++){\n\t\t\tString s=sc.next();\n if(s.contains(\"AC\")){\n\t\t\t\tc1++;\n\t\t}else if(s.contains(\"WA\")){\nc2++;\n}else if(s.contains(\"TLE\")){\nc3++;\n }else if(s.contains(\"RE\")){\nc4++;\n }\n }\n System.out.println(\"AC \"+\"x \"+c1);\n System.out.println(\"WA \"+\"x \"+c2);\n\t\t\t\t\t System.out.println(\"TLE \"+\"x \"+c3);\n System.out.println(\"RE \"+\"x \"+c4);\n }\n }",
"Main",
"public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\n\n\t\tScanner sc=new Scanner(System.in);\n \n\t\t int n=sc.nextInt();\n int c1=0,c2=0,c3=0,c4=0;\n \n\t\t for(int i=1;i<=n;i++){\n\t\t\tString s=sc.next();\n if(s.contains(\"AC\")){\n\t\t\t\tc1++;\n\t\t}else if(s.contains(\"WA\")){\nc2++;\n}else if(s.contains(\"TLE\")){\nc3++;\n }else if(s.contains(\"RE\")){\nc4++;\n }\n }\n System.out.println(\"AC \"+\"x \"+c1);\n System.out.println(\"WA \"+\"x \"+c2);\n\t\t\t\t\t System.out.println(\"TLE \"+\"x \"+c3);\n System.out.println(\"RE \"+\"x \"+c4);\n }",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\n\t\n\n\t\tScanner sc=new Scanner(System.in);\n \n\t\t int n=sc.nextInt();\n int c1=0,c2=0,c3=0,c4=0;\n \n\t\t for(int i=1;i<=n;i++){\n\t\t\tString s=sc.next();\n if(s.contains(\"AC\")){\n\t\t\t\tc1++;\n\t\t}else if(s.contains(\"WA\")){\nc2++;\n}else if(s.contains(\"TLE\")){\nc3++;\n }else if(s.contains(\"RE\")){\nc4++;\n }\n }\n System.out.println(\"AC \"+\"x \"+c1);\n System.out.println(\"WA \"+\"x \"+c2);\n\t\t\t\t\t System.out.println(\"TLE \"+\"x \"+c3);\n System.out.println(\"RE \"+\"x \"+c4);\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int c1=0",
"c1",
"0",
"c2=0",
"c2",
"0",
"c3=0",
"c3",
"0",
"c4=0;",
"c4",
"0",
"for(int i=1;i<=n;i++){\n\t\t\tString s=sc.next();\n if(s.contains(\"AC\")){\n\t\t\t\tc1++;\n\t\t}else if(s.contains(\"WA\")){\nc2++;\n}else if(s.contains(\"TLE\")){\nc3++;\n }else if(s.contains(\"RE\")){\nc4++;\n }\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString s=sc.next();\n if(s.contains(\"AC\")){\n\t\t\t\tc1++;\n\t\t}else if(s.contains(\"WA\")){\nc2++;\n}else if(s.contains(\"TLE\")){\nc3++;\n }else if(s.contains(\"RE\")){\nc4++;\n }\n }",
"{\n\t\t\tString s=sc.next();\n if(s.contains(\"AC\")){\n\t\t\t\tc1++;\n\t\t}else if(s.contains(\"WA\")){\nc2++;\n}else if(s.contains(\"TLE\")){\nc3++;\n }else if(s.contains(\"RE\")){\nc4++;\n }\n }",
"String s=sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"if(s.contains(\"AC\")){\n\t\t\t\tc1++;\n\t\t}else if(s.contains(\"WA\")){\nc2++;\n}else if(s.contains(\"TLE\")){\nc3++;\n }else if(s.contains(\"RE\")){\nc4++;\n }",
"s.contains(\"AC\")",
"s.contains",
"s",
"\"AC\"",
"{\n\t\t\t\tc1++;\n\t\t}",
"c1++",
"c1",
"if(s.contains(\"WA\")){\nc2++;\n}else if(s.contains(\"TLE\")){\nc3++;\n }else if(s.contains(\"RE\")){\nc4++;\n }",
"s.contains(\"WA\")",
"s.contains",
"s",
"\"WA\"",
"{\nc2++;\n}",
"c2++",
"c2",
"if(s.contains(\"TLE\")){\nc3++;\n }else if(s.contains(\"RE\")){\nc4++;\n }",
"s.contains(\"TLE\")",
"s.contains",
"s",
"\"TLE\"",
"{\nc3++;\n }",
"c3++",
"c3",
"if(s.contains(\"RE\")){\nc4++;\n }",
"s.contains(\"RE\")",
"s.contains",
"s",
"\"RE\"",
"{\nc4++;\n }",
"c4++",
"c4",
"System.out.println(\"AC \"+\"x \"+c1)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC \"+\"x \"+c1",
"\"AC \"+\"x \"+c1",
"\"AC \"",
"\"x \"",
"c1",
"System.out.println(\"WA \"+\"x \"+c2)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA \"+\"x \"+c2",
"\"WA \"+\"x \"+c2",
"\"WA \"",
"\"x \"",
"c2",
"System.out.println(\"TLE \"+\"x \"+c3)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE \"+\"x \"+c3",
"\"TLE \"+\"x \"+c3",
"\"TLE \"",
"\"x \"",
"c3",
"System.out.println(\"RE \"+\"x \"+c4)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE \"+\"x \"+c4",
"\"RE \"+\"x \"+c4",
"\"RE \"",
"\"x \"",
"c4",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\n\n\t\tScanner sc=new Scanner(System.in);\n \n\t\t int n=sc.nextInt();\n int c1=0,c2=0,c3=0,c4=0;\n \n\t\t for(int i=1;i<=n;i++){\n\t\t\tString s=sc.next();\n if(s.contains(\"AC\")){\n\t\t\t\tc1++;\n\t\t}else if(s.contains(\"WA\")){\nc2++;\n}else if(s.contains(\"TLE\")){\nc3++;\n }else if(s.contains(\"RE\")){\nc4++;\n }\n }\n System.out.println(\"AC \"+\"x \"+c1);\n System.out.println(\"WA \"+\"x \"+c2);\n\t\t\t\t\t System.out.println(\"TLE \"+\"x \"+c3);\n System.out.println(\"RE \"+\"x \"+c4);\n }\n }",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\n\n\t\tScanner sc=new Scanner(System.in);\n \n\t\t int n=sc.nextInt();\n int c1=0,c2=0,c3=0,c4=0;\n \n\t\t for(int i=1;i<=n;i++){\n\t\t\tString s=sc.next();\n if(s.contains(\"AC\")){\n\t\t\t\tc1++;\n\t\t}else if(s.contains(\"WA\")){\nc2++;\n}else if(s.contains(\"TLE\")){\nc3++;\n }else if(s.contains(\"RE\")){\nc4++;\n }\n }\n System.out.println(\"AC \"+\"x \"+c1);\n System.out.println(\"WA \"+\"x \"+c2);\n\t\t\t\t\t System.out.println(\"TLE \"+\"x \"+c3);\n System.out.println(\"RE \"+\"x \"+c4);\n }\n }",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int c1=0,c2=0,c3=0,c4=0;
for(int i=1;i<=n;i++){
String s=sc.next();
if(s.contains("AC")){
c1++;
}else if(s.contains("WA")){
c2++;
}else if(s.contains("TLE")){
c3++;
}else if(s.contains("RE")){
c4++;
}
}
System.out.println("AC "+"x "+c1);
System.out.println("WA "+"x "+c2);
System.out.println("TLE "+"x "+c3);
System.out.println("RE "+"x "+c4);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
40,
18,
13,
17,
14,
4,
18,
13,
17,
30,
40,
18,
13,
17,
14,
4,
18,
13,
17,
30,
40,
18,
13,
17,
30,
40,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
110,
5
],
[
110,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
21,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
26,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
32,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
32,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
42,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
42,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
52,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
52,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
8,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
74,
76
],
[
8,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
84,
86
],
[
8,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
94,
96
],
[
8,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
104,
106
],
[
6,
107
],
[
107,
108
],
[
0,
109
],
[
109,
110
],
[
109,
111
]
]
| [
"import java.util.*;\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int t = sc.nextInt();\n\n int[] arr = new int[4];\n while (t-- > 0) {\n String s = sc.next();\n if (s.equals(\"AC\")) {\n arr[0]++;\n } else if (s.equals(\"WA\")) {\n arr[1]++;\n } else if (s.equals(\"TLE\")) {\n arr[2]++;\n } else {\n arr[3]++;\n }\n }\n \n System.out.println(\"AC x \" + arr[0]);\n System.out.println(\"WA x \" + arr[1]);\n System.out.println(\"TLE x \" + arr[2]);\n System.out.println(\"RE x \" + arr[3]);\n \n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int t = sc.nextInt();\n\n int[] arr = new int[4];\n while (t-- > 0) {\n String s = sc.next();\n if (s.equals(\"AC\")) {\n arr[0]++;\n } else if (s.equals(\"WA\")) {\n arr[1]++;\n } else if (s.equals(\"TLE\")) {\n arr[2]++;\n } else {\n arr[3]++;\n }\n }\n \n System.out.println(\"AC x \" + arr[0]);\n System.out.println(\"WA x \" + arr[1]);\n System.out.println(\"TLE x \" + arr[2]);\n System.out.println(\"RE x \" + arr[3]);\n \n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int t = sc.nextInt();\n\n int[] arr = new int[4];\n while (t-- > 0) {\n String s = sc.next();\n if (s.equals(\"AC\")) {\n arr[0]++;\n } else if (s.equals(\"WA\")) {\n arr[1]++;\n } else if (s.equals(\"TLE\")) {\n arr[2]++;\n } else {\n arr[3]++;\n }\n }\n \n System.out.println(\"AC x \" + arr[0]);\n System.out.println(\"WA x \" + arr[1]);\n System.out.println(\"TLE x \" + arr[2]);\n System.out.println(\"RE x \" + arr[3]);\n \n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int t = sc.nextInt();\n\n int[] arr = new int[4];\n while (t-- > 0) {\n String s = sc.next();\n if (s.equals(\"AC\")) {\n arr[0]++;\n } else if (s.equals(\"WA\")) {\n arr[1]++;\n } else if (s.equals(\"TLE\")) {\n arr[2]++;\n } else {\n arr[3]++;\n }\n }\n \n System.out.println(\"AC x \" + arr[0]);\n System.out.println(\"WA x \" + arr[1]);\n System.out.println(\"TLE x \" + arr[2]);\n System.out.println(\"RE x \" + arr[3]);\n \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int t = sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] arr = new int[4];",
"arr",
"new int[4]",
"4",
"while (t-- > 0) {\n String s = sc.next();\n if (s.equals(\"AC\")) {\n arr[0]++;\n } else if (s.equals(\"WA\")) {\n arr[1]++;\n } else if (s.equals(\"TLE\")) {\n arr[2]++;\n } else {\n arr[3]++;\n }\n }",
"t-- > 0",
"t--",
"t",
"0",
"{\n String s = sc.next();\n if (s.equals(\"AC\")) {\n arr[0]++;\n } else if (s.equals(\"WA\")) {\n arr[1]++;\n } else if (s.equals(\"TLE\")) {\n arr[2]++;\n } else {\n arr[3]++;\n }\n }",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"if (s.equals(\"AC\")) {\n arr[0]++;\n } else if (s.equals(\"WA\")) {\n arr[1]++;\n } else if (s.equals(\"TLE\")) {\n arr[2]++;\n } else {\n arr[3]++;\n }",
"s.equals(\"AC\")",
"s.equals",
"s",
"\"AC\"",
"{\n arr[0]++;\n }",
"arr[0]++",
"arr[0]",
"arr",
"0",
"if (s.equals(\"WA\")) {\n arr[1]++;\n } else if (s.equals(\"TLE\")) {\n arr[2]++;\n } else {\n arr[3]++;\n }",
"s.equals(\"WA\")",
"s.equals",
"s",
"\"WA\"",
"{\n arr[1]++;\n }",
"arr[1]++",
"arr[1]",
"arr",
"1",
"if (s.equals(\"TLE\")) {\n arr[2]++;\n } else {\n arr[3]++;\n }",
"s.equals(\"TLE\")",
"s.equals",
"s",
"\"TLE\"",
"{\n arr[2]++;\n }",
"arr[2]++",
"arr[2]",
"arr",
"2",
"{\n arr[3]++;\n }",
"arr[3]++",
"arr[3]",
"arr",
"3",
"System.out.println(\"AC x \" + arr[0])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + arr[0]",
"\"AC x \"",
"arr[0]",
"arr",
"0",
"System.out.println(\"WA x \" + arr[1])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + arr[1]",
"\"WA x \"",
"arr[1]",
"arr",
"1",
"System.out.println(\"TLE x \" + arr[2])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + arr[2]",
"\"TLE x \"",
"arr[2]",
"arr",
"2",
"System.out.println(\"RE x \" + arr[3])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + arr[3]",
"\"RE x \"",
"arr[3]",
"arr",
"3",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int t = sc.nextInt();\n\n int[] arr = new int[4];\n while (t-- > 0) {\n String s = sc.next();\n if (s.equals(\"AC\")) {\n arr[0]++;\n } else if (s.equals(\"WA\")) {\n arr[1]++;\n } else if (s.equals(\"TLE\")) {\n arr[2]++;\n } else {\n arr[3]++;\n }\n }\n \n System.out.println(\"AC x \" + arr[0]);\n System.out.println(\"WA x \" + arr[1]);\n System.out.println(\"TLE x \" + arr[2]);\n System.out.println(\"RE x \" + arr[3]);\n \n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int t = sc.nextInt();\n\n int[] arr = new int[4];\n while (t-- > 0) {\n String s = sc.next();\n if (s.equals(\"AC\")) {\n arr[0]++;\n } else if (s.equals(\"WA\")) {\n arr[1]++;\n } else if (s.equals(\"TLE\")) {\n arr[2]++;\n } else {\n arr[3]++;\n }\n }\n \n System.out.println(\"AC x \" + arr[0]);\n System.out.println(\"WA x \" + arr[1]);\n System.out.println(\"TLE x \" + arr[2]);\n System.out.println(\"RE x \" + arr[3]);\n \n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
int[] arr = new int[4];
while (t-- > 0) {
String s = sc.next();
if (s.equals("AC")) {
arr[0]++;
} else if (s.equals("WA")) {
arr[1]++;
} else if (s.equals("TLE")) {
arr[2]++;
} else {
arr[3]++;
}
}
System.out.println("AC x " + arr[0]);
System.out.println("WA x " + arr[1]);
System.out.println("TLE x " + arr[2]);
System.out.println("RE x " + arr[3]);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
35,
18,
13,
13,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
129,
5
],
[
129,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
26,
27
],
[
26,
28
],
[
21,
29
],
[
29,
30
],
[
30,
31
],
[
21,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
47,
49
],
[
8,
50
],
[
50,
51
],
[
50,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
53,
64
],
[
65,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
66,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
66,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
66,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
8,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
99,
100
],
[
99,
101
],
[
8,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
8,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
8,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
6,
126
],
[
126,
127
],
[
0,
128
],
[
128,
129
],
[
128,
130
]
]
| [
"import java.util.*;\n public class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String[] s = new String[n];\n for(int i=0; i<n; i++){\n s[i] = sc.next();\n }\n int c0=0;\n int c1=0;\n int c2=0;\n int c3=0;\n for(int i=0; i<n; i++){\n switch (s[i]){\n case \"AC\":\n c0++;\n break;\n case \"WA\":\n c1++;\n break;\n case \"TLE\":\n c2++;\n break;\n case \"RE\":\n c3++;\n break;\n }\n }\n System.out.println(\"AC x \" + c0);\n System.out.println(\"WA x \" + c1);\n System.out.println(\"TLE x \" + c2);\n System.out.println(\"RE x \" + c3);\n \n }\n } \n ",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String[] s = new String[n];\n for(int i=0; i<n; i++){\n s[i] = sc.next();\n }\n int c0=0;\n int c1=0;\n int c2=0;\n int c3=0;\n for(int i=0; i<n; i++){\n switch (s[i]){\n case \"AC\":\n c0++;\n break;\n case \"WA\":\n c1++;\n break;\n case \"TLE\":\n c2++;\n break;\n case \"RE\":\n c3++;\n break;\n }\n }\n System.out.println(\"AC x \" + c0);\n System.out.println(\"WA x \" + c1);\n System.out.println(\"TLE x \" + c2);\n System.out.println(\"RE x \" + c3);\n \n }\n }",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String[] s = new String[n];\n for(int i=0; i<n; i++){\n s[i] = sc.next();\n }\n int c0=0;\n int c1=0;\n int c2=0;\n int c3=0;\n for(int i=0; i<n; i++){\n switch (s[i]){\n case \"AC\":\n c0++;\n break;\n case \"WA\":\n c1++;\n break;\n case \"TLE\":\n c2++;\n break;\n case \"RE\":\n c3++;\n break;\n }\n }\n System.out.println(\"AC x \" + c0);\n System.out.println(\"WA x \" + c1);\n System.out.println(\"TLE x \" + c2);\n System.out.println(\"RE x \" + c3);\n \n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String[] s = new String[n];\n for(int i=0; i<n; i++){\n s[i] = sc.next();\n }\n int c0=0;\n int c1=0;\n int c2=0;\n int c3=0;\n for(int i=0; i<n; i++){\n switch (s[i]){\n case \"AC\":\n c0++;\n break;\n case \"WA\":\n c1++;\n break;\n case \"TLE\":\n c2++;\n break;\n case \"RE\":\n c3++;\n break;\n }\n }\n System.out.println(\"AC x \" + c0);\n System.out.println(\"WA x \" + c1);\n System.out.println(\"TLE x \" + c2);\n System.out.println(\"RE x \" + c3);\n \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String[] s = new String[n];",
"s",
"new String[n]",
"n",
"for(int i=0; i<n; i++){\n s[i] = sc.next();\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n s[i] = sc.next();\n }",
"{\n s[i] = sc.next();\n }",
"s[i] = sc.next()",
"s[i]",
"s",
"i",
"sc.next()",
"sc.next",
"sc",
"int c0=0;",
"c0",
"0",
"int c1=0;",
"c1",
"0",
"int c2=0;",
"c2",
"0",
"int c3=0;",
"c3",
"0",
"for(int i=0; i<n; i++){\n switch (s[i]){\n case \"AC\":\n c0++;\n break;\n case \"WA\":\n c1++;\n break;\n case \"TLE\":\n c2++;\n break;\n case \"RE\":\n c3++;\n break;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n switch (s[i]){\n case \"AC\":\n c0++;\n break;\n case \"WA\":\n c1++;\n break;\n case \"TLE\":\n c2++;\n break;\n case \"RE\":\n c3++;\n break;\n }\n }",
"{\n switch (s[i]){\n case \"AC\":\n c0++;\n break;\n case \"WA\":\n c1++;\n break;\n case \"TLE\":\n c2++;\n break;\n case \"RE\":\n c3++;\n break;\n }\n }",
"switch (s[i]){\n case \"AC\":\n c0++;\n break;\n case \"WA\":\n c1++;\n break;\n case \"TLE\":\n c2++;\n break;\n case \"RE\":\n c3++;\n break;\n }",
"s[i]",
"s",
"i",
"case \"AC\":",
"\"AC\"",
"case \"AC\":",
"c0++",
"c0",
"break;",
"case \"WA\":",
"\"WA\"",
"case \"WA\":",
"c1++",
"c1",
"break;",
"case \"TLE\":",
"\"TLE\"",
"case \"TLE\":",
"c2++",
"c2",
"break;",
"case \"RE\":",
"\"RE\"",
"case \"RE\":",
"c3++",
"c3",
"break;",
"System.out.println(\"AC x \" + c0)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + c0",
"\"AC x \"",
"c0",
"System.out.println(\"WA x \" + c1)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + c1",
"\"WA x \"",
"c1",
"System.out.println(\"TLE x \" + c2)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + c2",
"\"TLE x \"",
"c2",
"System.out.println(\"RE x \" + c3)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + c3",
"\"RE x \"",
"c3",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String[] s = new String[n];\n for(int i=0; i<n; i++){\n s[i] = sc.next();\n }\n int c0=0;\n int c1=0;\n int c2=0;\n int c3=0;\n for(int i=0; i<n; i++){\n switch (s[i]){\n case \"AC\":\n c0++;\n break;\n case \"WA\":\n c1++;\n break;\n case \"TLE\":\n c2++;\n break;\n case \"RE\":\n c3++;\n break;\n }\n }\n System.out.println(\"AC x \" + c0);\n System.out.println(\"WA x \" + c1);\n System.out.println(\"TLE x \" + c2);\n System.out.println(\"RE x \" + c3);\n \n }\n }",
"public class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String[] s = new String[n];\n for(int i=0; i<n; i++){\n s[i] = sc.next();\n }\n int c0=0;\n int c1=0;\n int c2=0;\n int c3=0;\n for(int i=0; i<n; i++){\n switch (s[i]){\n case \"AC\":\n c0++;\n break;\n case \"WA\":\n c1++;\n break;\n case \"TLE\":\n c2++;\n break;\n case \"RE\":\n c3++;\n break;\n }\n }\n System.out.println(\"AC x \" + c0);\n System.out.println(\"WA x \" + c1);\n System.out.println(\"TLE x \" + c2);\n System.out.println(\"RE x \" + c3);\n \n }\n }",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
String[] s = new String[n];
for(int i=0; i<n; i++){
s[i] = sc.next();
}
int c0=0;
int c1=0;
int c2=0;
int c3=0;
for(int i=0; i<n; i++){
switch (s[i]){
case "AC":
c0++;
break;
case "WA":
c1++;
break;
case "TLE":
c2++;
break;
case "RE":
c3++;
break;
}
}
System.out.println("AC x " + c0);
System.out.println("WA x " + c1);
System.out.println("TLE x " + c2);
System.out.println("RE x " + c3);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
40,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
105,
5
],
[
105,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
52,
53
],
[
47,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
54,
59
],
[
59,
60
],
[
54,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
61,
66
],
[
66,
67
],
[
61,
68
],
[
68,
69
],
[
8,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
8,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
8,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
8,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
99,
100
],
[
99,
101
],
[
6,
102
],
[
102,
103
],
[
0,
104
],
[
104,
105
],
[
104,
106
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint ac=0,wa=0,tle=0,re=0;\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString s=sc.next();\n\t\t\t\n\t\t\tif(s.equals(\"AC\")) ac++;\n\t\t\telse if(s.equals(\"WA\")) wa++;\n\t\t\telse if(s.equals(\"TLE\")) tle++;\n\t\t\telse re++;\n\t\t}\n\t\tSystem.out.println(\"AC x \"+ac);\n\t\tSystem.out.println(\"WA x \"+wa);\n\t\tSystem.out.println(\"TLE x \"+tle);\n\t\tSystem.out.println(\"RE x \"+re);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint ac=0,wa=0,tle=0,re=0;\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString s=sc.next();\n\t\t\t\n\t\t\tif(s.equals(\"AC\")) ac++;\n\t\t\telse if(s.equals(\"WA\")) wa++;\n\t\t\telse if(s.equals(\"TLE\")) tle++;\n\t\t\telse re++;\n\t\t}\n\t\tSystem.out.println(\"AC x \"+ac);\n\t\tSystem.out.println(\"WA x \"+wa);\n\t\tSystem.out.println(\"TLE x \"+tle);\n\t\tSystem.out.println(\"RE x \"+re);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint ac=0,wa=0,tle=0,re=0;\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString s=sc.next();\n\t\t\t\n\t\t\tif(s.equals(\"AC\")) ac++;\n\t\t\telse if(s.equals(\"WA\")) wa++;\n\t\t\telse if(s.equals(\"TLE\")) tle++;\n\t\t\telse re++;\n\t\t}\n\t\tSystem.out.println(\"AC x \"+ac);\n\t\tSystem.out.println(\"WA x \"+wa);\n\t\tSystem.out.println(\"TLE x \"+tle);\n\t\tSystem.out.println(\"RE x \"+re);\n\t}",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint ac=0,wa=0,tle=0,re=0;\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString s=sc.next();\n\t\t\t\n\t\t\tif(s.equals(\"AC\")) ac++;\n\t\t\telse if(s.equals(\"WA\")) wa++;\n\t\t\telse if(s.equals(\"TLE\")) tle++;\n\t\t\telse re++;\n\t\t}\n\t\tSystem.out.println(\"AC x \"+ac);\n\t\tSystem.out.println(\"WA x \"+wa);\n\t\tSystem.out.println(\"TLE x \"+tle);\n\t\tSystem.out.println(\"RE x \"+re);\n\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ac=0",
"ac",
"0",
"wa=0",
"wa",
"0",
"tle=0",
"tle",
"0",
"re=0;",
"re",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\tString s=sc.next();\n\t\t\t\n\t\t\tif(s.equals(\"AC\")) ac++;\n\t\t\telse if(s.equals(\"WA\")) wa++;\n\t\t\telse if(s.equals(\"TLE\")) tle++;\n\t\t\telse re++;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString s=sc.next();\n\t\t\t\n\t\t\tif(s.equals(\"AC\")) ac++;\n\t\t\telse if(s.equals(\"WA\")) wa++;\n\t\t\telse if(s.equals(\"TLE\")) tle++;\n\t\t\telse re++;\n\t\t}",
"{\n\t\t\tString s=sc.next();\n\t\t\t\n\t\t\tif(s.equals(\"AC\")) ac++;\n\t\t\telse if(s.equals(\"WA\")) wa++;\n\t\t\telse if(s.equals(\"TLE\")) tle++;\n\t\t\telse re++;\n\t\t}",
"String s=sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"if(s.equals(\"AC\")) ac++;\n\t\t\telse if(s.equals(\"WA\")) wa++;\n\t\t\telse if(s.equals(\"TLE\")) tle++;\n\t\t\telse re++;",
"s.equals(\"AC\")",
"s.equals",
"s",
"\"AC\"",
"ac++",
"ac",
"if(s.equals(\"WA\")) wa++;\n\t\t\telse if(s.equals(\"TLE\")) tle++;\n\t\t\telse re++;",
"s.equals(\"WA\")",
"s.equals",
"s",
"\"WA\"",
"wa++",
"wa",
"if(s.equals(\"TLE\")) tle++;\n\t\t\telse re++;",
"s.equals(\"TLE\")",
"s.equals",
"s",
"\"TLE\"",
"tle++",
"tle",
"re++",
"re",
"System.out.println(\"AC x \"+ac)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \"+ac",
"\"AC x \"",
"ac",
"System.out.println(\"WA x \"+wa)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \"+wa",
"\"WA x \"",
"wa",
"System.out.println(\"TLE x \"+tle)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \"+tle",
"\"TLE x \"",
"tle",
"System.out.println(\"RE x \"+re)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \"+re",
"\"RE x \"",
"re",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint ac=0,wa=0,tle=0,re=0;\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString s=sc.next();\n\t\t\t\n\t\t\tif(s.equals(\"AC\")) ac++;\n\t\t\telse if(s.equals(\"WA\")) wa++;\n\t\t\telse if(s.equals(\"TLE\")) tle++;\n\t\t\telse re++;\n\t\t}\n\t\tSystem.out.println(\"AC x \"+ac);\n\t\tSystem.out.println(\"WA x \"+wa);\n\t\tSystem.out.println(\"TLE x \"+tle);\n\t\tSystem.out.println(\"RE x \"+re);\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint ac=0,wa=0,tle=0,re=0;\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString s=sc.next();\n\t\t\t\n\t\t\tif(s.equals(\"AC\")) ac++;\n\t\t\telse if(s.equals(\"WA\")) wa++;\n\t\t\telse if(s.equals(\"TLE\")) tle++;\n\t\t\telse re++;\n\t\t}\n\t\tSystem.out.println(\"AC x \"+ac);\n\t\tSystem.out.println(\"WA x \"+wa);\n\t\tSystem.out.println(\"TLE x \"+tle);\n\t\tSystem.out.println(\"RE x \"+re);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int ac=0,wa=0,tle=0,re=0;
for (int i = 0; i < n; i++) {
String s=sc.next();
if(s.equals("AC")) ac++;
else if(s.equals("WA")) wa++;
else if(s.equals("TLE")) tle++;
else re++;
}
System.out.println("AC x "+ac);
System.out.println("WA x "+wa);
System.out.println("TLE x "+tle);
System.out.println("RE x "+re);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
41,
13,
20,
28,
13,
13,
30,
30,
4,
18,
13,
13,
17,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
2,
4,
18,
13,
13,
17,
4,
18,
13,
13,
13,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
13,
17,
4,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
113,
17
],
[
113,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
20,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
20,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
20,
40
],
[
40,
41
],
[
40,
42
],
[
20,
43
],
[
43,
44
],
[
43,
45
],
[
43,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
48,
52
],
[
20,
53
],
[
53,
54
],
[
53,
55
],
[
20,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
20,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
61,
72
],
[
73,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
73,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
81,
86
],
[
73,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
87,
91
],
[
20,
92
],
[
92,
93
],
[
92,
94
],
[
92,
95
],
[
96,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
103,
103
],
[
103,
104
],
[
103,
105
],
[
103,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
18,
110
],
[
110,
111
],
[
0,
112
],
[
112,
113
],
[
112,
114
]
]
| [
"import java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args){\n\n\n\t\tList<String> stlst = new ArrayList<>();\n\t\tstlst.add(\"AC\");\n\t\tstlst.add(\"WA\");\n\t\tstlst.add(\"TLE\");\n\t\tstlst.add(\"RE\");\n\n\t\tMap<String, Integer> list = new HashMap<>();\n\n\t\tfor(String a : stlst) {\n\t\t\tlist.put(a, 0);\n\n\t\t}\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint loop = sc.nextInt();\n\n\t\tfor(int i = 0; i < loop; i++) {\n\t\t\tString str = sc.next();\n\t\t\tint a = list.get(str) + 1;\n\t\t\tlist.put(str, a);\n\t\t}\n\n\n\n\t\tfor(String a : stlst) {\n\t\t\tSystem.out.println(\n\t\t\t\ta + \" x \" + list.get(a)\n\t\t\t\t\t);\n\t\t}\n\t}\n\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Map;",
"Map",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args){\n\n\n\t\tList<String> stlst = new ArrayList<>();\n\t\tstlst.add(\"AC\");\n\t\tstlst.add(\"WA\");\n\t\tstlst.add(\"TLE\");\n\t\tstlst.add(\"RE\");\n\n\t\tMap<String, Integer> list = new HashMap<>();\n\n\t\tfor(String a : stlst) {\n\t\t\tlist.put(a, 0);\n\n\t\t}\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint loop = sc.nextInt();\n\n\t\tfor(int i = 0; i < loop; i++) {\n\t\t\tString str = sc.next();\n\t\t\tint a = list.get(str) + 1;\n\t\t\tlist.put(str, a);\n\t\t}\n\n\n\n\t\tfor(String a : stlst) {\n\t\t\tSystem.out.println(\n\t\t\t\ta + \" x \" + list.get(a)\n\t\t\t\t\t);\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args){\n\n\n\t\tList<String> stlst = new ArrayList<>();\n\t\tstlst.add(\"AC\");\n\t\tstlst.add(\"WA\");\n\t\tstlst.add(\"TLE\");\n\t\tstlst.add(\"RE\");\n\n\t\tMap<String, Integer> list = new HashMap<>();\n\n\t\tfor(String a : stlst) {\n\t\t\tlist.put(a, 0);\n\n\t\t}\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint loop = sc.nextInt();\n\n\t\tfor(int i = 0; i < loop; i++) {\n\t\t\tString str = sc.next();\n\t\t\tint a = list.get(str) + 1;\n\t\t\tlist.put(str, a);\n\t\t}\n\n\n\n\t\tfor(String a : stlst) {\n\t\t\tSystem.out.println(\n\t\t\t\ta + \" x \" + list.get(a)\n\t\t\t\t\t);\n\t\t}\n\t}",
"main",
"{\n\n\n\t\tList<String> stlst = new ArrayList<>();\n\t\tstlst.add(\"AC\");\n\t\tstlst.add(\"WA\");\n\t\tstlst.add(\"TLE\");\n\t\tstlst.add(\"RE\");\n\n\t\tMap<String, Integer> list = new HashMap<>();\n\n\t\tfor(String a : stlst) {\n\t\t\tlist.put(a, 0);\n\n\t\t}\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint loop = sc.nextInt();\n\n\t\tfor(int i = 0; i < loop; i++) {\n\t\t\tString str = sc.next();\n\t\t\tint a = list.get(str) + 1;\n\t\t\tlist.put(str, a);\n\t\t}\n\n\n\n\t\tfor(String a : stlst) {\n\t\t\tSystem.out.println(\n\t\t\t\ta + \" x \" + list.get(a)\n\t\t\t\t\t);\n\t\t}\n\t}",
"List<String> stlst = new ArrayList<>();",
"stlst",
"new ArrayList<>()",
"stlst.add(\"AC\")",
"stlst.add",
"stlst",
"\"AC\"",
"stlst.add(\"WA\")",
"stlst.add",
"stlst",
"\"WA\"",
"stlst.add(\"TLE\")",
"stlst.add",
"stlst",
"\"TLE\"",
"stlst.add(\"RE\")",
"stlst.add",
"stlst",
"\"RE\"",
"Map<String, Integer> list = new HashMap<>();",
"list",
"new HashMap<>()",
"for(String a : stlst) {\n\t\t\tlist.put(a, 0);\n\n\t\t}",
"String a",
"stlst",
"{\n\t\t\tlist.put(a, 0);\n\n\t\t}",
"{\n\t\t\tlist.put(a, 0);\n\n\t\t}",
"list.put(a, 0)",
"list.put",
"list",
"a",
"0",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int loop = sc.nextInt();",
"loop",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < loop; i++) {\n\t\t\tString str = sc.next();\n\t\t\tint a = list.get(str) + 1;\n\t\t\tlist.put(str, a);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < loop",
"i",
"loop",
"i++",
"i++",
"i",
"{\n\t\t\tString str = sc.next();\n\t\t\tint a = list.get(str) + 1;\n\t\t\tlist.put(str, a);\n\t\t}",
"{\n\t\t\tString str = sc.next();\n\t\t\tint a = list.get(str) + 1;\n\t\t\tlist.put(str, a);\n\t\t}",
"String str = sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"int a = list.get(str) + 1;",
"a",
"list.get(str) + 1",
"list.get(str)",
"list.get",
"list",
"str",
"1",
"list.put(str, a)",
"list.put",
"list",
"str",
"a",
"for(String a : stlst) {\n\t\t\tSystem.out.println(\n\t\t\t\ta + \" x \" + list.get(a)\n\t\t\t\t\t);\n\t\t}",
"String a",
"stlst",
"{\n\t\t\tSystem.out.println(\n\t\t\t\ta + \" x \" + list.get(a)\n\t\t\t\t\t);\n\t\t}",
"{\n\t\t\tSystem.out.println(\n\t\t\t\ta + \" x \" + list.get(a)\n\t\t\t\t\t);\n\t\t}",
"System.out.println(\n\t\t\t\ta + \" x \" + list.get(a)\n\t\t\t\t\t)",
"System.out.println",
"System.out",
"System",
"System.out",
"a + \" x \" + list.get(a)",
"a + \" x \" + list.get(a)",
"a",
"\" x \"",
"list.get(a)",
"list.get",
"list",
"a",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args){\n\n\n\t\tList<String> stlst = new ArrayList<>();\n\t\tstlst.add(\"AC\");\n\t\tstlst.add(\"WA\");\n\t\tstlst.add(\"TLE\");\n\t\tstlst.add(\"RE\");\n\n\t\tMap<String, Integer> list = new HashMap<>();\n\n\t\tfor(String a : stlst) {\n\t\t\tlist.put(a, 0);\n\n\t\t}\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint loop = sc.nextInt();\n\n\t\tfor(int i = 0; i < loop; i++) {\n\t\t\tString str = sc.next();\n\t\t\tint a = list.get(str) + 1;\n\t\t\tlist.put(str, a);\n\t\t}\n\n\n\n\t\tfor(String a : stlst) {\n\t\t\tSystem.out.println(\n\t\t\t\ta + \" x \" + list.get(a)\n\t\t\t\t\t);\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args){\n\n\n\t\tList<String> stlst = new ArrayList<>();\n\t\tstlst.add(\"AC\");\n\t\tstlst.add(\"WA\");\n\t\tstlst.add(\"TLE\");\n\t\tstlst.add(\"RE\");\n\n\t\tMap<String, Integer> list = new HashMap<>();\n\n\t\tfor(String a : stlst) {\n\t\t\tlist.put(a, 0);\n\n\t\t}\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint loop = sc.nextInt();\n\n\t\tfor(int i = 0; i < loop; i++) {\n\t\t\tString str = sc.next();\n\t\t\tint a = list.get(str) + 1;\n\t\t\tlist.put(str, a);\n\t\t}\n\n\n\n\t\tfor(String a : stlst) {\n\t\t\tSystem.out.println(\n\t\t\t\ta + \" x \" + list.get(a)\n\t\t\t\t\t);\n\t\t}\n\t}\n\n}",
"Main"
]
| import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Scanner;
public class Main {
public static void main(String[] args){
List<String> stlst = new ArrayList<>();
stlst.add("AC");
stlst.add("WA");
stlst.add("TLE");
stlst.add("RE");
Map<String, Integer> list = new HashMap<>();
for(String a : stlst) {
list.put(a, 0);
}
Scanner sc = new Scanner(System.in);
int loop = sc.nextInt();
for(int i = 0; i < loop; i++) {
String str = sc.next();
int a = list.get(str) + 1;
list.put(str, a);
}
for(String a : stlst) {
System.out.println(
a + " x " + list.get(a)
);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
35,
13,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
116,
5
],
[
116,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
26,
27
],
[
26,
28
],
[
21,
29
],
[
29,
30
],
[
30,
31
],
[
21,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
33,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
39,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
39,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
39,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
80,
82
],
[
8,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
90,
92
],
[
8,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
100,
102
],
[
8,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
110,
112
],
[
6,
113
],
[
113,
114
],
[
0,
115
],
[
115,
116
],
[
115,
117
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n final int N = sc.nextInt();\n \n int[] count = new int[4];\n \n for (int i = 0; i < N; i++) {\n String j = sc.next();\n \n switch (j) {\n case \"AC\":\n count[0]++;\n break;\n case \"WA\":\n count[1]++;\n break;\n case \"TLE\":\n count[2]++;\n break;\n case \"RE\":\n count[3]++;\n break;\n }\n }\n System.out.println(\"AC x \" + count[0]);\n System.out.println(\"WA x \" + count[1]);\n System.out.println(\"TLE x \" + count[2]);\n System.out.println(\"RE x \" + count[3]);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n final int N = sc.nextInt();\n \n int[] count = new int[4];\n \n for (int i = 0; i < N; i++) {\n String j = sc.next();\n \n switch (j) {\n case \"AC\":\n count[0]++;\n break;\n case \"WA\":\n count[1]++;\n break;\n case \"TLE\":\n count[2]++;\n break;\n case \"RE\":\n count[3]++;\n break;\n }\n }\n System.out.println(\"AC x \" + count[0]);\n System.out.println(\"WA x \" + count[1]);\n System.out.println(\"TLE x \" + count[2]);\n System.out.println(\"RE x \" + count[3]);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n final int N = sc.nextInt();\n \n int[] count = new int[4];\n \n for (int i = 0; i < N; i++) {\n String j = sc.next();\n \n switch (j) {\n case \"AC\":\n count[0]++;\n break;\n case \"WA\":\n count[1]++;\n break;\n case \"TLE\":\n count[2]++;\n break;\n case \"RE\":\n count[3]++;\n break;\n }\n }\n System.out.println(\"AC x \" + count[0]);\n System.out.println(\"WA x \" + count[1]);\n System.out.println(\"TLE x \" + count[2]);\n System.out.println(\"RE x \" + count[3]);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n \n final int N = sc.nextInt();\n \n int[] count = new int[4];\n \n for (int i = 0; i < N; i++) {\n String j = sc.next();\n \n switch (j) {\n case \"AC\":\n count[0]++;\n break;\n case \"WA\":\n count[1]++;\n break;\n case \"TLE\":\n count[2]++;\n break;\n case \"RE\":\n count[3]++;\n break;\n }\n }\n System.out.println(\"AC x \" + count[0]);\n System.out.println(\"WA x \" + count[1]);\n System.out.println(\"TLE x \" + count[2]);\n System.out.println(\"RE x \" + count[3]);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"final int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] count = new int[4];",
"count",
"new int[4]",
"4",
"for (int i = 0; i < N; i++) {\n String j = sc.next();\n \n switch (j) {\n case \"AC\":\n count[0]++;\n break;\n case \"WA\":\n count[1]++;\n break;\n case \"TLE\":\n count[2]++;\n break;\n case \"RE\":\n count[3]++;\n break;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n String j = sc.next();\n \n switch (j) {\n case \"AC\":\n count[0]++;\n break;\n case \"WA\":\n count[1]++;\n break;\n case \"TLE\":\n count[2]++;\n break;\n case \"RE\":\n count[3]++;\n break;\n }\n }",
"{\n String j = sc.next();\n \n switch (j) {\n case \"AC\":\n count[0]++;\n break;\n case \"WA\":\n count[1]++;\n break;\n case \"TLE\":\n count[2]++;\n break;\n case \"RE\":\n count[3]++;\n break;\n }\n }",
"String j = sc.next();",
"j",
"sc.next()",
"sc.next",
"sc",
"switch (j) {\n case \"AC\":\n count[0]++;\n break;\n case \"WA\":\n count[1]++;\n break;\n case \"TLE\":\n count[2]++;\n break;\n case \"RE\":\n count[3]++;\n break;\n }",
"j",
"case \"AC\":",
"\"AC\"",
"case \"AC\":",
"count[0]++",
"count[0]",
"count",
"0",
"break;",
"case \"WA\":",
"\"WA\"",
"case \"WA\":",
"count[1]++",
"count[1]",
"count",
"1",
"break;",
"case \"TLE\":",
"\"TLE\"",
"case \"TLE\":",
"count[2]++",
"count[2]",
"count",
"2",
"break;",
"case \"RE\":",
"\"RE\"",
"case \"RE\":",
"count[3]++",
"count[3]",
"count",
"3",
"break;",
"System.out.println(\"AC x \" + count[0])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + count[0]",
"\"AC x \"",
"count[0]",
"count",
"0",
"System.out.println(\"WA x \" + count[1])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + count[1]",
"\"WA x \"",
"count[1]",
"count",
"1",
"System.out.println(\"TLE x \" + count[2])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + count[2]",
"\"TLE x \"",
"count[2]",
"count",
"2",
"System.out.println(\"RE x \" + count[3])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + count[3]",
"\"RE x \"",
"count[3]",
"count",
"3",
"String[] args",
"args",
"public class Main {\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n final int N = sc.nextInt();\n \n int[] count = new int[4];\n \n for (int i = 0; i < N; i++) {\n String j = sc.next();\n \n switch (j) {\n case \"AC\":\n count[0]++;\n break;\n case \"WA\":\n count[1]++;\n break;\n case \"TLE\":\n count[2]++;\n break;\n case \"RE\":\n count[3]++;\n break;\n }\n }\n System.out.println(\"AC x \" + count[0]);\n System.out.println(\"WA x \" + count[1]);\n System.out.println(\"TLE x \" + count[2]);\n System.out.println(\"RE x \" + count[3]);\n }\n}",
"public class Main {\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n final int N = sc.nextInt();\n \n int[] count = new int[4];\n \n for (int i = 0; i < N; i++) {\n String j = sc.next();\n \n switch (j) {\n case \"AC\":\n count[0]++;\n break;\n case \"WA\":\n count[1]++;\n break;\n case \"TLE\":\n count[2]++;\n break;\n case \"RE\":\n count[3]++;\n break;\n }\n }\n System.out.println(\"AC x \" + count[0]);\n System.out.println(\"WA x \" + count[1]);\n System.out.println(\"TLE x \" + count[2]);\n System.out.println(\"RE x \" + count[3]);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
final int N = sc.nextInt();
int[] count = new int[4];
for (int i = 0; i < N; i++) {
String j = sc.next();
switch (j) {
case "AC":
count[0]++;
break;
case "WA":
count[1]++;
break;
case "TLE":
count[2]++;
break;
case "RE":
count[3]++;
break;
}
}
System.out.println("AC x " + count[0]);
System.out.println("WA x " + count[1]);
System.out.println("TLE x " + count[2]);
System.out.println("RE x " + count[3]);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
40,
13,
14,
4,
18,
13,
17,
30,
40,
13,
14,
4,
18,
13,
17,
30,
40,
13,
14,
4,
18,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
116,
5
],
[
116,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
49,
54
],
[
54,
55
],
[
55,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
57,
62
],
[
62,
63
],
[
63,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
65,
70
],
[
70,
71
],
[
71,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
73,
78
],
[
78,
79
],
[
79,
80
],
[
8,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
86,
87
],
[
86,
88
],
[
8,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
8,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
8,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
110,
111
],
[
110,
112
],
[
6,
113
],
[
113,
114
],
[
0,
115
],
[
115,
116
],
[
115,
117
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tString s;\n\t\tint ac_count = 0;\n\t\tint wa_count = 0;\n\t\tint tle_count = 0;\n\t\tint re_count = 0;\n\n\t\tfor(int i=0; i<n; i++) {\n\t\t\ts = sc.next();\n\t\t\tif(s.equals(\"AC\")) {\n\t\t\t\tac_count++;\n\t\t\t}else if(s.equals(\"WA\")) {\n\t\t\t\twa_count++;\n\t\t\t}else if(s.equals(\"TLE\")) {\n\t\t\t\ttle_count++;\n\t\t\t}else if(s.equals(\"RE\")) {\n\t\t\t\tre_count++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + ac_count);\n\t\tSystem.out.println(\"WA x \" + wa_count);\n\t\tSystem.out.println(\"TLE x \" + tle_count);\n\t\tSystem.out.println(\"RE x \" + re_count);\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tString s;\n\t\tint ac_count = 0;\n\t\tint wa_count = 0;\n\t\tint tle_count = 0;\n\t\tint re_count = 0;\n\n\t\tfor(int i=0; i<n; i++) {\n\t\t\ts = sc.next();\n\t\t\tif(s.equals(\"AC\")) {\n\t\t\t\tac_count++;\n\t\t\t}else if(s.equals(\"WA\")) {\n\t\t\t\twa_count++;\n\t\t\t}else if(s.equals(\"TLE\")) {\n\t\t\t\ttle_count++;\n\t\t\t}else if(s.equals(\"RE\")) {\n\t\t\t\tre_count++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + ac_count);\n\t\tSystem.out.println(\"WA x \" + wa_count);\n\t\tSystem.out.println(\"TLE x \" + tle_count);\n\t\tSystem.out.println(\"RE x \" + re_count);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tString s;\n\t\tint ac_count = 0;\n\t\tint wa_count = 0;\n\t\tint tle_count = 0;\n\t\tint re_count = 0;\n\n\t\tfor(int i=0; i<n; i++) {\n\t\t\ts = sc.next();\n\t\t\tif(s.equals(\"AC\")) {\n\t\t\t\tac_count++;\n\t\t\t}else if(s.equals(\"WA\")) {\n\t\t\t\twa_count++;\n\t\t\t}else if(s.equals(\"TLE\")) {\n\t\t\t\ttle_count++;\n\t\t\t}else if(s.equals(\"RE\")) {\n\t\t\t\tre_count++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + ac_count);\n\t\tSystem.out.println(\"WA x \" + wa_count);\n\t\tSystem.out.println(\"TLE x \" + tle_count);\n\t\tSystem.out.println(\"RE x \" + re_count);\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tString s;\n\t\tint ac_count = 0;\n\t\tint wa_count = 0;\n\t\tint tle_count = 0;\n\t\tint re_count = 0;\n\n\t\tfor(int i=0; i<n; i++) {\n\t\t\ts = sc.next();\n\t\t\tif(s.equals(\"AC\")) {\n\t\t\t\tac_count++;\n\t\t\t}else if(s.equals(\"WA\")) {\n\t\t\t\twa_count++;\n\t\t\t}else if(s.equals(\"TLE\")) {\n\t\t\t\ttle_count++;\n\t\t\t}else if(s.equals(\"RE\")) {\n\t\t\t\tre_count++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + ac_count);\n\t\tSystem.out.println(\"WA x \" + wa_count);\n\t\tSystem.out.println(\"TLE x \" + tle_count);\n\t\tSystem.out.println(\"RE x \" + re_count);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String s;",
"s",
"int ac_count = 0;",
"ac_count",
"0",
"int wa_count = 0;",
"wa_count",
"0",
"int tle_count = 0;",
"tle_count",
"0",
"int re_count = 0;",
"re_count",
"0",
"for(int i=0; i<n; i++) {\n\t\t\ts = sc.next();\n\t\t\tif(s.equals(\"AC\")) {\n\t\t\t\tac_count++;\n\t\t\t}else if(s.equals(\"WA\")) {\n\t\t\t\twa_count++;\n\t\t\t}else if(s.equals(\"TLE\")) {\n\t\t\t\ttle_count++;\n\t\t\t}else if(s.equals(\"RE\")) {\n\t\t\t\tre_count++;\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\ts = sc.next();\n\t\t\tif(s.equals(\"AC\")) {\n\t\t\t\tac_count++;\n\t\t\t}else if(s.equals(\"WA\")) {\n\t\t\t\twa_count++;\n\t\t\t}else if(s.equals(\"TLE\")) {\n\t\t\t\ttle_count++;\n\t\t\t}else if(s.equals(\"RE\")) {\n\t\t\t\tre_count++;\n\t\t\t}\n\t\t}",
"{\n\t\t\ts = sc.next();\n\t\t\tif(s.equals(\"AC\")) {\n\t\t\t\tac_count++;\n\t\t\t}else if(s.equals(\"WA\")) {\n\t\t\t\twa_count++;\n\t\t\t}else if(s.equals(\"TLE\")) {\n\t\t\t\ttle_count++;\n\t\t\t}else if(s.equals(\"RE\")) {\n\t\t\t\tre_count++;\n\t\t\t}\n\t\t}",
"s = sc.next()",
"s",
"sc.next()",
"sc.next",
"sc",
"if(s.equals(\"AC\")) {\n\t\t\t\tac_count++;\n\t\t\t}else if(s.equals(\"WA\")) {\n\t\t\t\twa_count++;\n\t\t\t}else if(s.equals(\"TLE\")) {\n\t\t\t\ttle_count++;\n\t\t\t}else if(s.equals(\"RE\")) {\n\t\t\t\tre_count++;\n\t\t\t}",
"s.equals(\"AC\")",
"s.equals",
"s",
"\"AC\"",
"{\n\t\t\t\tac_count++;\n\t\t\t}",
"ac_count++",
"ac_count",
"if(s.equals(\"WA\")) {\n\t\t\t\twa_count++;\n\t\t\t}else if(s.equals(\"TLE\")) {\n\t\t\t\ttle_count++;\n\t\t\t}else if(s.equals(\"RE\")) {\n\t\t\t\tre_count++;\n\t\t\t}",
"s.equals(\"WA\")",
"s.equals",
"s",
"\"WA\"",
"{\n\t\t\t\twa_count++;\n\t\t\t}",
"wa_count++",
"wa_count",
"if(s.equals(\"TLE\")) {\n\t\t\t\ttle_count++;\n\t\t\t}else if(s.equals(\"RE\")) {\n\t\t\t\tre_count++;\n\t\t\t}",
"s.equals(\"TLE\")",
"s.equals",
"s",
"\"TLE\"",
"{\n\t\t\t\ttle_count++;\n\t\t\t}",
"tle_count++",
"tle_count",
"if(s.equals(\"RE\")) {\n\t\t\t\tre_count++;\n\t\t\t}",
"s.equals(\"RE\")",
"s.equals",
"s",
"\"RE\"",
"{\n\t\t\t\tre_count++;\n\t\t\t}",
"re_count++",
"re_count",
"System.out.println(\"AC x \" + ac_count)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + ac_count",
"\"AC x \"",
"ac_count",
"System.out.println(\"WA x \" + wa_count)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + wa_count",
"\"WA x \"",
"wa_count",
"System.out.println(\"TLE x \" + tle_count)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + tle_count",
"\"TLE x \"",
"tle_count",
"System.out.println(\"RE x \" + re_count)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + re_count",
"\"RE x \"",
"re_count",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tString s;\n\t\tint ac_count = 0;\n\t\tint wa_count = 0;\n\t\tint tle_count = 0;\n\t\tint re_count = 0;\n\n\t\tfor(int i=0; i<n; i++) {\n\t\t\ts = sc.next();\n\t\t\tif(s.equals(\"AC\")) {\n\t\t\t\tac_count++;\n\t\t\t}else if(s.equals(\"WA\")) {\n\t\t\t\twa_count++;\n\t\t\t}else if(s.equals(\"TLE\")) {\n\t\t\t\ttle_count++;\n\t\t\t}else if(s.equals(\"RE\")) {\n\t\t\t\tre_count++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + ac_count);\n\t\tSystem.out.println(\"WA x \" + wa_count);\n\t\tSystem.out.println(\"TLE x \" + tle_count);\n\t\tSystem.out.println(\"RE x \" + re_count);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tString s;\n\t\tint ac_count = 0;\n\t\tint wa_count = 0;\n\t\tint tle_count = 0;\n\t\tint re_count = 0;\n\n\t\tfor(int i=0; i<n; i++) {\n\t\t\ts = sc.next();\n\t\t\tif(s.equals(\"AC\")) {\n\t\t\t\tac_count++;\n\t\t\t}else if(s.equals(\"WA\")) {\n\t\t\t\twa_count++;\n\t\t\t}else if(s.equals(\"TLE\")) {\n\t\t\t\ttle_count++;\n\t\t\t}else if(s.equals(\"RE\")) {\n\t\t\t\tre_count++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + ac_count);\n\t\tSystem.out.println(\"WA x \" + wa_count);\n\t\tSystem.out.println(\"TLE x \" + tle_count);\n\t\tSystem.out.println(\"RE x \" + re_count);\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
String s;
int ac_count = 0;
int wa_count = 0;
int tle_count = 0;
int re_count = 0;
for(int i=0; i<n; i++) {
s = sc.next();
if(s.equals("AC")) {
ac_count++;
}else if(s.equals("WA")) {
wa_count++;
}else if(s.equals("TLE")) {
tle_count++;
}else if(s.equals("RE")) {
re_count++;
}
}
System.out.println("AC x " + ac_count);
System.out.println("WA x " + wa_count);
System.out.println("TLE x " + tle_count);
System.out.println("RE x " + re_count);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
4,
18,
13,
17,
14,
2,
13,
17,
40,
13,
14,
2,
13,
17,
40,
13,
14,
2,
13,
17,
40,
13,
40,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
2,
2,
2,
17,
13,
17,
13,
17,
13,
17,
13,
23,
13,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
42,
40,
4,
18,
13,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
0,
18,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
189,
14
],
[
189,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
17,
26
],
[
26,
27
],
[
26,
28
],
[
17,
29
],
[
29,
30
],
[
29,
31
],
[
17,
32
],
[
32,
33
],
[
32,
34
],
[
17,
35
],
[
35,
36
],
[
35,
37
],
[
17,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
38,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
46,
51
],
[
43,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
58,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
64,
70
],
[
70,
71
],
[
17,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
83,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
81,
87
],
[
80,
88
],
[
79,
89
],
[
78,
90
],
[
83,
91
],
[
15,
92
],
[
92,
93
],
[
0,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
99,
100
],
[
99,
101
],
[
94,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
105,
110
],
[
110,
111
],
[
110,
112
],
[
104,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
94,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
121,
124
],
[
124,
125
],
[
94,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
130,
133
],
[
133,
134
],
[
94,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
139,
142
],
[
142,
143
],
[
94,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
148,
151
],
[
151,
152
],
[
94,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
155,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
165,
170
],
[
170,
171
],
[
170,
172
],
[
165,
173
],
[
173,
174
],
[
174,
175
],
[
165,
176
],
[
177,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
178,
182
],
[
182,
183
],
[
155,
184
],
[
184,
185
],
[
153,
186
],
[
186,
187
],
[
0,
188
],
[
188,
189
],
[
188,
190
]
]
| [
"\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\n\npublic class Main\n\n{\t\n\tpublic static void main(String args[]) throws IOException\n\t{\n\t\tFastScanner fs = new FastScanner();\n\t\tint T = fs.nextInt();\n\t\tint AC = 0,TLE =0, RE =0, WA = 0 ;\n\t\twhile(T-- >0)\n\t\t{\n\t\t\tchar ch = fs.next().charAt(0);\n\t\t\tif(ch == 'A') AC++;\n\t\t\telse if(ch == 'T') TLE++;\n\t\t\telse if(ch == 'R') RE++;\n\t\t\telse WA++;\n\t\t\t\t\n\t\t}\n\t\tSystem.out.println(\"AC x \"+AC+\"\\nWA x \"+WA+\"\\nTLE x \"+TLE+\"\\nRE x \"+RE);\n\t}\n\n\n}\nclass FastScanner\n{\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tStringTokenizer str = new StringTokenizer(\"\");\n\t\n\tString next() throws IOException\n\t{\n\t\twhile(!str.hasMoreTokens())\n\t\t\tstr = new StringTokenizer(br.readLine());\n\t\t\n\t\treturn str.nextToken();\n\t}\n\t\n\tint nextInt() throws IOException\n\t{\n\t\treturn Integer.parseInt(next());\n\t}\n\t\n\tfloat nextfloat() throws IOException\n\t{\n\t\treturn Float.parseFloat(next());\n\t}\n\t\n\tdouble nextDouble() throws IOException\n\t{\n\t\treturn Double.parseDouble(next());\n\t}\n\tlong nextLong() throws IOException\n\t{\n\t\treturn Long.parseLong(next());\n\t}\n\tint [] arrayIn(int n) throws IOException\n\t{\n\t\tint arr[] = new int[n];\n\t\tarr[0] = 0;\n\t\tfor(int i=1; i<n; i++)\n\t\t{\n\t\t\tarr[i] = nextInt();\n\t\t}\n\t\treturn arr;\n\t}\n}\n\n\n\n\t",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main\n\n{\t\n\tpublic static void main(String args[]) throws IOException\n\t{\n\t\tFastScanner fs = new FastScanner();\n\t\tint T = fs.nextInt();\n\t\tint AC = 0,TLE =0, RE =0, WA = 0 ;\n\t\twhile(T-- >0)\n\t\t{\n\t\t\tchar ch = fs.next().charAt(0);\n\t\t\tif(ch == 'A') AC++;\n\t\t\telse if(ch == 'T') TLE++;\n\t\t\telse if(ch == 'R') RE++;\n\t\t\telse WA++;\n\t\t\t\t\n\t\t}\n\t\tSystem.out.println(\"AC x \"+AC+\"\\nWA x \"+WA+\"\\nTLE x \"+TLE+\"\\nRE x \"+RE);\n\t}\n\n\n}",
"Main",
"public static void main(String args[]) throws IOException\n\t{\n\t\tFastScanner fs = new FastScanner();\n\t\tint T = fs.nextInt();\n\t\tint AC = 0,TLE =0, RE =0, WA = 0 ;\n\t\twhile(T-- >0)\n\t\t{\n\t\t\tchar ch = fs.next().charAt(0);\n\t\t\tif(ch == 'A') AC++;\n\t\t\telse if(ch == 'T') TLE++;\n\t\t\telse if(ch == 'R') RE++;\n\t\t\telse WA++;\n\t\t\t\t\n\t\t}\n\t\tSystem.out.println(\"AC x \"+AC+\"\\nWA x \"+WA+\"\\nTLE x \"+TLE+\"\\nRE x \"+RE);\n\t}",
"main",
"{\n\t\tFastScanner fs = new FastScanner();\n\t\tint T = fs.nextInt();\n\t\tint AC = 0,TLE =0, RE =0, WA = 0 ;\n\t\twhile(T-- >0)\n\t\t{\n\t\t\tchar ch = fs.next().charAt(0);\n\t\t\tif(ch == 'A') AC++;\n\t\t\telse if(ch == 'T') TLE++;\n\t\t\telse if(ch == 'R') RE++;\n\t\t\telse WA++;\n\t\t\t\t\n\t\t}\n\t\tSystem.out.println(\"AC x \"+AC+\"\\nWA x \"+WA+\"\\nTLE x \"+TLE+\"\\nRE x \"+RE);\n\t}",
"FastScanner fs = new FastScanner();",
"fs",
"new FastScanner()",
"int T = fs.nextInt();",
"T",
"fs.nextInt()",
"fs.nextInt",
"fs",
"int AC = 0",
"AC",
"0",
"TLE =0",
"TLE",
"0",
"RE =0",
"RE",
"0",
"WA = 0 ;",
"WA",
"0",
"while(T-- >0)\n\t\t{\n\t\t\tchar ch = fs.next().charAt(0);\n\t\t\tif(ch == 'A') AC++;\n\t\t\telse if(ch == 'T') TLE++;\n\t\t\telse if(ch == 'R') RE++;\n\t\t\telse WA++;\n\t\t\t\t\n\t\t}",
"T-- >0",
"T--",
"T",
"0",
"{\n\t\t\tchar ch = fs.next().charAt(0);\n\t\t\tif(ch == 'A') AC++;\n\t\t\telse if(ch == 'T') TLE++;\n\t\t\telse if(ch == 'R') RE++;\n\t\t\telse WA++;\n\t\t\t\t\n\t\t}",
"char ch = fs.next().charAt(0);",
"ch",
"fs.next().charAt(0)",
"fs.next().charAt",
"fs.next()",
"fs.next",
"fs",
"0",
"if(ch == 'A') AC++;\n\t\t\telse if(ch == 'T') TLE++;\n\t\t\telse if(ch == 'R') RE++;\n\t\t\telse WA++;",
"ch == 'A'",
"ch",
"'A'",
"AC++",
"AC",
"if(ch == 'T') TLE++;\n\t\t\telse if(ch == 'R') RE++;\n\t\t\telse WA++;",
"ch == 'T'",
"ch",
"'T'",
"TLE++",
"TLE",
"if(ch == 'R') RE++;\n\t\t\telse WA++;",
"ch == 'R'",
"ch",
"'R'",
"RE++",
"RE",
"WA++",
"WA",
"System.out.println(\"AC x \"+AC+\"\\nWA x \"+WA+\"\\nTLE x \"+TLE+\"\\nRE x \"+RE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \"+AC+\"\\nWA x \"+WA+\"\\nTLE x \"+TLE+\"\\nRE x \"+RE",
"\"\\nRE x \"",
"TLE",
"\"\\nTLE x \"",
"WA",
"\"\\nWA x \"",
"\"AC x \"+AC+\"\\nWA x \"+WA+\"\\nTLE x \"+TLE+\"\\nRE x \"+RE",
"\"AC x \"",
"AC",
"\"\\nWA x \"",
"WA",
"\"\\nTLE x \"",
"TLE",
"\"\\nRE x \"",
"RE",
"String args[]",
"args",
"class FastScanner\n{\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tStringTokenizer str = new StringTokenizer(\"\");\n\t\n\tString next() throws IOException\n\t{\n\t\twhile(!str.hasMoreTokens())\n\t\t\tstr = new StringTokenizer(br.readLine());\n\t\t\n\t\treturn str.nextToken();\n\t}\n\t\n\tint nextInt() throws IOException\n\t{\n\t\treturn Integer.parseInt(next());\n\t}\n\t\n\tfloat nextfloat() throws IOException\n\t{\n\t\treturn Float.parseFloat(next());\n\t}\n\t\n\tdouble nextDouble() throws IOException\n\t{\n\t\treturn Double.parseDouble(next());\n\t}\n\tlong nextLong() throws IOException\n\t{\n\t\treturn Long.parseLong(next());\n\t}\n\tint [] arrayIn(int n) throws IOException\n\t{\n\t\tint arr[] = new int[n];\n\t\tarr[0] = 0;\n\t\tfor(int i=1; i<n; i++)\n\t\t{\n\t\t\tarr[i] = nextInt();\n\t\t}\n\t\treturn arr;\n\t}\n}",
"FastScanner",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer str = new StringTokenizer(\"\");",
"str",
"new StringTokenizer(\"\")",
"String next() throws IOException\n\t{\n\t\twhile(!str.hasMoreTokens())\n\t\t\tstr = new StringTokenizer(br.readLine());\n\t\t\n\t\treturn str.nextToken();\n\t}",
"next",
"{\n\t\twhile(!str.hasMoreTokens())\n\t\t\tstr = new StringTokenizer(br.readLine());\n\t\t\n\t\treturn str.nextToken();\n\t}",
"while(!str.hasMoreTokens())\n\t\t\tstr = new StringTokenizer(br.readLine());",
"!str.hasMoreTokens()",
"str.hasMoreTokens()",
"str.hasMoreTokens",
"str",
"str = new StringTokenizer(br.readLine())",
"str",
"new StringTokenizer(br.readLine())",
"return str.nextToken();",
"str.nextToken()",
"str.nextToken",
"str",
"int nextInt() throws IOException\n\t{\n\t\treturn Integer.parseInt(next());\n\t}",
"nextInt",
"{\n\t\treturn Integer.parseInt(next());\n\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"float nextfloat() throws IOException\n\t{\n\t\treturn Float.parseFloat(next());\n\t}",
"nextfloat",
"{\n\t\treturn Float.parseFloat(next());\n\t}",
"return Float.parseFloat(next());",
"Float.parseFloat(next())",
"Float.parseFloat",
"Float",
"next()",
"next",
"double nextDouble() throws IOException\n\t{\n\t\treturn Double.parseDouble(next());\n\t}",
"nextDouble",
"{\n\t\treturn Double.parseDouble(next());\n\t}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"long nextLong() throws IOException\n\t{\n\t\treturn Long.parseLong(next());\n\t}",
"nextLong",
"{\n\t\treturn Long.parseLong(next());\n\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"int [] arrayIn(int n) throws IOException\n\t{\n\t\tint arr[] = new int[n];\n\t\tarr[0] = 0;\n\t\tfor(int i=1; i<n; i++)\n\t\t{\n\t\t\tarr[i] = nextInt();\n\t\t}\n\t\treturn arr;\n\t}",
"arrayIn",
"{\n\t\tint arr[] = new int[n];\n\t\tarr[0] = 0;\n\t\tfor(int i=1; i<n; i++)\n\t\t{\n\t\t\tarr[i] = nextInt();\n\t\t}\n\t\treturn arr;\n\t}",
"int arr[] = new int[n];",
"arr",
"new int[n]",
"n",
"arr[0] = 0",
"arr[0]",
"arr",
"0",
"0",
"for(int i=1; i<n; i++)\n\t\t{\n\t\t\tarr[i] = nextInt();\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tarr[i] = nextInt();\n\t\t}",
"{\n\t\t\tarr[i] = nextInt();\n\t\t}",
"arr[i] = nextInt()",
"arr[i]",
"arr",
"i",
"nextInt()",
"nextInt",
"return arr;",
"arr",
"int n",
"n",
"public class Main\n\n{\t\n\tpublic static void main(String args[]) throws IOException\n\t{\n\t\tFastScanner fs = new FastScanner();\n\t\tint T = fs.nextInt();\n\t\tint AC = 0,TLE =0, RE =0, WA = 0 ;\n\t\twhile(T-- >0)\n\t\t{\n\t\t\tchar ch = fs.next().charAt(0);\n\t\t\tif(ch == 'A') AC++;\n\t\t\telse if(ch == 'T') TLE++;\n\t\t\telse if(ch == 'R') RE++;\n\t\t\telse WA++;\n\t\t\t\t\n\t\t}\n\t\tSystem.out.println(\"AC x \"+AC+\"\\nWA x \"+WA+\"\\nTLE x \"+TLE+\"\\nRE x \"+RE);\n\t}\n\n\n}",
"public class Main\n\n{\t\n\tpublic static void main(String args[]) throws IOException\n\t{\n\t\tFastScanner fs = new FastScanner();\n\t\tint T = fs.nextInt();\n\t\tint AC = 0,TLE =0, RE =0, WA = 0 ;\n\t\twhile(T-- >0)\n\t\t{\n\t\t\tchar ch = fs.next().charAt(0);\n\t\t\tif(ch == 'A') AC++;\n\t\t\telse if(ch == 'T') TLE++;\n\t\t\telse if(ch == 'R') RE++;\n\t\t\telse WA++;\n\t\t\t\t\n\t\t}\n\t\tSystem.out.println(\"AC x \"+AC+\"\\nWA x \"+WA+\"\\nTLE x \"+TLE+\"\\nRE x \"+RE);\n\t}\n\n\n}",
"Main"
]
|
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main
{
public static void main(String args[]) throws IOException
{
FastScanner fs = new FastScanner();
int T = fs.nextInt();
int AC = 0,TLE =0, RE =0, WA = 0 ;
while(T-- >0)
{
char ch = fs.next().charAt(0);
if(ch == 'A') AC++;
else if(ch == 'T') TLE++;
else if(ch == 'R') RE++;
else WA++;
}
System.out.println("AC x "+AC+"\nWA x "+WA+"\nTLE x "+TLE+"\nRE x "+RE);
}
}
class FastScanner
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer str = new StringTokenizer("");
String next() throws IOException
{
while(!str.hasMoreTokens())
str = new StringTokenizer(br.readLine());
return str.nextToken();
}
int nextInt() throws IOException
{
return Integer.parseInt(next());
}
float nextfloat() throws IOException
{
return Float.parseFloat(next());
}
double nextDouble() throws IOException
{
return Double.parseDouble(next());
}
long nextLong() throws IOException
{
return Long.parseLong(next());
}
int [] arrayIn(int n) throws IOException
{
int arr[] = new int[n];
arr[0] = 0;
for(int i=1; i<n; i++)
{
arr[i] = nextInt();
}
return arr;
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
35,
13,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
12,
13,
30,
41,
13,
20,
28,
13,
13,
30,
4,
18,
13,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
13,
23,
13,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
42,
40,
4,
18,
13,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
287,
26
],
[
287,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
29,
38
],
[
38,
39
],
[
38,
40
],
[
29,
41
],
[
41,
42
],
[
41,
43
],
[
29,
44
],
[
44,
45
],
[
44,
46
],
[
29,
47
],
[
47,
48
],
[
47,
49
],
[
29,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
50,
61
],
[
62,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
62,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
68,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
68,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
68,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
29,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
99,
100
],
[
99,
101
],
[
29,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
29,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
29,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
27,
126
],
[
126,
127
],
[
287,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
134,
135
],
[
134,
136
],
[
134,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
138,
141
],
[
130,
142
],
[
142,
143
],
[
143,
144
],
[
142,
145
],
[
130,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
146,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
153,
155
],
[
146,
156
],
[
156,
157
],
[
157,
158
],
[
146,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
164,
165
],
[
165,
166
],
[
164,
167
],
[
128,
168
],
[
168,
169
],
[
287,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
172,
174
],
[
170,
175
],
[
175,
176
],
[
175,
177
],
[
170,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
181,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
186,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
180,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
170,
201
],
[
201,
202
],
[
201,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
205,
208
],
[
208,
209
],
[
170,
210
],
[
210,
211
],
[
210,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
212,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
217,
222
],
[
222,
223
],
[
222,
224
],
[
217,
225
],
[
225,
226
],
[
226,
227
],
[
217,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
229,
233
],
[
233,
234
],
[
212,
235
],
[
235,
236
],
[
210,
237
],
[
237,
238
],
[
170,
239
],
[
239,
240
],
[
239,
241
],
[
241,
242
],
[
242,
243
],
[
243,
244
],
[
244,
245
],
[
243,
246
],
[
246,
247
],
[
170,
248
],
[
248,
249
],
[
248,
250
],
[
250,
251
],
[
251,
252
],
[
252,
253
],
[
253,
254
],
[
252,
255
],
[
255,
256
],
[
170,
257
],
[
257,
258
],
[
257,
259
],
[
259,
260
],
[
260,
261
],
[
260,
262
],
[
259,
264
],
[
264,
265
],
[
265,
266
],
[
266,
267
],
[
266,
268
],
[
264,
269
],
[
269,
270
],
[
269,
271
],
[
264,
272
],
[
272,
273
],
[
273,
274
],
[
264,
275
],
[
275,
276
],
[
276,
277
],
[
277,
278
],
[
277,
279
],
[
276,
280
],
[
280,
281
],
[
259,
282
],
[
282,
283
],
[
257,
284
],
[
284,
285
],
[
0,
286
],
[
286,
287
],
[
286,
288
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.math.BigInteger;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Collections;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n public static void main(String[] args) throws InterruptedException {\n FastScanner fs=new FastScanner();\n int T=fs.nextInt();\n int ac = 0, wa = 0, tle = 0, re = 0;\n\n for (int tt=0; tt<T; tt++) {\n String a = fs.nextString();\n switch (a) {\n case \"AC\":\n ac++;\n break;\n case \"WA\":\n wa++;\n break;\n case \"TLE\":\n tle++;\n break;\n case \"RE\":\n re++;\n break;\n }\n }\n System.out.println(\"AC x \" + ac);\n System.out.println(\"WA x \" + wa);\n System.out.println(\"TLE x \" + tle);\n System.out.println(\"RE x \" + re);\n }\n\n void sort(int[] a) {\n ArrayList<Integer> list=new ArrayList<>();\n for (int i:a) list.add(i);\n Collections.sort(list);\n for (int i=0; i<a.length; i++) a[i]=list.get(i);\n }\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n\n public String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n\n public String nextString() {\n return String.valueOf(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public long[] readLongArray(int n) {\n long[] a=new long[n];\n for (int i=0; i<n; i++) a[i]=nextLong();\n return a;\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n\n public static void main(String[] args) throws InterruptedException {\n FastScanner fs=new FastScanner();\n int T=fs.nextInt();\n int ac = 0, wa = 0, tle = 0, re = 0;\n\n for (int tt=0; tt<T; tt++) {\n String a = fs.nextString();\n switch (a) {\n case \"AC\":\n ac++;\n break;\n case \"WA\":\n wa++;\n break;\n case \"TLE\":\n tle++;\n break;\n case \"RE\":\n re++;\n break;\n }\n }\n System.out.println(\"AC x \" + ac);\n System.out.println(\"WA x \" + wa);\n System.out.println(\"TLE x \" + tle);\n System.out.println(\"RE x \" + re);\n }\n\n void sort(int[] a) {\n ArrayList<Integer> list=new ArrayList<>();\n for (int i:a) list.add(i);\n Collections.sort(list);\n for (int i=0; i<a.length; i++) a[i]=list.get(i);\n }\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n\n public String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n\n public String nextString() {\n return String.valueOf(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public long[] readLongArray(int n) {\n long[] a=new long[n];\n for (int i=0; i<n; i++) a[i]=nextLong();\n return a;\n }\n }\n}",
"Main",
"public static void main(String[] args) throws InterruptedException {\n FastScanner fs=new FastScanner();\n int T=fs.nextInt();\n int ac = 0, wa = 0, tle = 0, re = 0;\n\n for (int tt=0; tt<T; tt++) {\n String a = fs.nextString();\n switch (a) {\n case \"AC\":\n ac++;\n break;\n case \"WA\":\n wa++;\n break;\n case \"TLE\":\n tle++;\n break;\n case \"RE\":\n re++;\n break;\n }\n }\n System.out.println(\"AC x \" + ac);\n System.out.println(\"WA x \" + wa);\n System.out.println(\"TLE x \" + tle);\n System.out.println(\"RE x \" + re);\n }",
"main",
"{\n FastScanner fs=new FastScanner();\n int T=fs.nextInt();\n int ac = 0, wa = 0, tle = 0, re = 0;\n\n for (int tt=0; tt<T; tt++) {\n String a = fs.nextString();\n switch (a) {\n case \"AC\":\n ac++;\n break;\n case \"WA\":\n wa++;\n break;\n case \"TLE\":\n tle++;\n break;\n case \"RE\":\n re++;\n break;\n }\n }\n System.out.println(\"AC x \" + ac);\n System.out.println(\"WA x \" + wa);\n System.out.println(\"TLE x \" + tle);\n System.out.println(\"RE x \" + re);\n }",
"FastScanner fs=new FastScanner();",
"fs",
"new FastScanner()",
"int T=fs.nextInt();",
"T",
"fs.nextInt()",
"fs.nextInt",
"fs",
"int ac = 0",
"ac",
"0",
"wa = 0",
"wa",
"0",
"tle = 0",
"tle",
"0",
"re = 0;",
"re",
"0",
"for (int tt=0; tt<T; tt++) {\n String a = fs.nextString();\n switch (a) {\n case \"AC\":\n ac++;\n break;\n case \"WA\":\n wa++;\n break;\n case \"TLE\":\n tle++;\n break;\n case \"RE\":\n re++;\n break;\n }\n }",
"int tt=0;",
"int tt=0;",
"tt",
"0",
"tt<T",
"tt",
"T",
"tt++",
"tt++",
"tt",
"{\n String a = fs.nextString();\n switch (a) {\n case \"AC\":\n ac++;\n break;\n case \"WA\":\n wa++;\n break;\n case \"TLE\":\n tle++;\n break;\n case \"RE\":\n re++;\n break;\n }\n }",
"{\n String a = fs.nextString();\n switch (a) {\n case \"AC\":\n ac++;\n break;\n case \"WA\":\n wa++;\n break;\n case \"TLE\":\n tle++;\n break;\n case \"RE\":\n re++;\n break;\n }\n }",
"String a = fs.nextString();",
"a",
"fs.nextString()",
"fs.nextString",
"fs",
"switch (a) {\n case \"AC\":\n ac++;\n break;\n case \"WA\":\n wa++;\n break;\n case \"TLE\":\n tle++;\n break;\n case \"RE\":\n re++;\n break;\n }",
"a",
"case \"AC\":",
"\"AC\"",
"case \"AC\":",
"ac++",
"ac",
"break;",
"case \"WA\":",
"\"WA\"",
"case \"WA\":",
"wa++",
"wa",
"break;",
"case \"TLE\":",
"\"TLE\"",
"case \"TLE\":",
"tle++",
"tle",
"break;",
"case \"RE\":",
"\"RE\"",
"case \"RE\":",
"re++",
"re",
"break;",
"System.out.println(\"AC x \" + ac)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + ac",
"\"AC x \"",
"ac",
"System.out.println(\"WA x \" + wa)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + wa",
"\"WA x \"",
"wa",
"System.out.println(\"TLE x \" + tle)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + tle",
"\"TLE x \"",
"tle",
"System.out.println(\"RE x \" + re)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + re",
"\"RE x \"",
"re",
"String[] args",
"args",
"void sort(int[] a) {\n ArrayList<Integer> list=new ArrayList<>();\n for (int i:a) list.add(i);\n Collections.sort(list);\n for (int i=0; i<a.length; i++) a[i]=list.get(i);\n }",
"sort",
"{\n ArrayList<Integer> list=new ArrayList<>();\n for (int i:a) list.add(i);\n Collections.sort(list);\n for (int i=0; i<a.length; i++) a[i]=list.get(i);\n }",
"ArrayList<Integer> list=new ArrayList<>();",
"list",
"new ArrayList<>()",
"for (int i:a) list.add(i);",
"int i",
"a",
"list.add(i);",
"list.add(i)",
"list.add",
"list",
"i",
"Collections.sort(list)",
"Collections.sort",
"Collections",
"list",
"for (int i=0; i<a.length; i++) a[i]=list.get(i);",
"int i=0;",
"int i=0;",
"i",
"0",
"i<a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"a[i]=list.get(i);",
"a[i]=list.get(i)",
"a[i]",
"a",
"i",
"list.get(i)",
"list.get",
"list",
"i",
"int[] a",
"a",
"static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n\n public String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n\n public String nextString() {\n return String.valueOf(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public long[] readLongArray(int n) {\n long[] a=new long[n];\n for (int i=0; i<n; i++) a[i]=nextLong();\n return a;\n }\n }",
"FastScanner",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st=new StringTokenizer(\"\");",
"st",
"new StringTokenizer(\"\")",
"public String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }",
"next",
"{\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }",
"while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st=new StringTokenizer(br.readLine());\n }",
"st=new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }",
"readArray",
"{\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }",
"int[] a=new int[n];",
"a",
"new int[n]",
"n",
"for (int i=0; i<n; i++) a[i]=nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"a[i]=nextInt();",
"a[i]=nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"public String nextString() {\n return String.valueOf(next());\n }",
"nextString",
"{\n return String.valueOf(next());\n }",
"return String.valueOf(next());",
"String.valueOf(next())",
"String.valueOf",
"String",
"next()",
"next",
"public long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public long[] readLongArray(int n) {\n long[] a=new long[n];\n for (int i=0; i<n; i++) a[i]=nextLong();\n return a;\n }",
"readLongArray",
"{\n long[] a=new long[n];\n for (int i=0; i<n; i++) a[i]=nextLong();\n return a;\n }",
"long[] a=new long[n];",
"a",
"new long[n]",
"n",
"for (int i=0; i<n; i++) a[i]=nextLong();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"a[i]=nextLong();",
"a[i]=nextLong()",
"a[i]",
"a",
"i",
"nextLong()",
"nextLong",
"return a;",
"a",
"int n",
"n",
"public class Main {\n\n public static void main(String[] args) throws InterruptedException {\n FastScanner fs=new FastScanner();\n int T=fs.nextInt();\n int ac = 0, wa = 0, tle = 0, re = 0;\n\n for (int tt=0; tt<T; tt++) {\n String a = fs.nextString();\n switch (a) {\n case \"AC\":\n ac++;\n break;\n case \"WA\":\n wa++;\n break;\n case \"TLE\":\n tle++;\n break;\n case \"RE\":\n re++;\n break;\n }\n }\n System.out.println(\"AC x \" + ac);\n System.out.println(\"WA x \" + wa);\n System.out.println(\"TLE x \" + tle);\n System.out.println(\"RE x \" + re);\n }\n\n void sort(int[] a) {\n ArrayList<Integer> list=new ArrayList<>();\n for (int i:a) list.add(i);\n Collections.sort(list);\n for (int i=0; i<a.length; i++) a[i]=list.get(i);\n }\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n\n public String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n\n public String nextString() {\n return String.valueOf(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public long[] readLongArray(int n) {\n long[] a=new long[n];\n for (int i=0; i<n; i++) a[i]=nextLong();\n return a;\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) throws InterruptedException {\n FastScanner fs=new FastScanner();\n int T=fs.nextInt();\n int ac = 0, wa = 0, tle = 0, re = 0;\n\n for (int tt=0; tt<T; tt++) {\n String a = fs.nextString();\n switch (a) {\n case \"AC\":\n ac++;\n break;\n case \"WA\":\n wa++;\n break;\n case \"TLE\":\n tle++;\n break;\n case \"RE\":\n re++;\n break;\n }\n }\n System.out.println(\"AC x \" + ac);\n System.out.println(\"WA x \" + wa);\n System.out.println(\"TLE x \" + tle);\n System.out.println(\"RE x \" + re);\n }\n\n void sort(int[] a) {\n ArrayList<Integer> list=new ArrayList<>();\n for (int i:a) list.add(i);\n Collections.sort(list);\n for (int i=0; i<a.length; i++) a[i]=list.get(i);\n }\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n\n public String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n\n public String nextString() {\n return String.valueOf(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public long[] readLongArray(int n) {\n long[] a=new long[n];\n for (int i=0; i<n; i++) a[i]=nextLong();\n return a;\n }\n }\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) throws InterruptedException {
FastScanner fs=new FastScanner();
int T=fs.nextInt();
int ac = 0, wa = 0, tle = 0, re = 0;
for (int tt=0; tt<T; tt++) {
String a = fs.nextString();
switch (a) {
case "AC":
ac++;
break;
case "WA":
wa++;
break;
case "TLE":
tle++;
break;
case "RE":
re++;
break;
}
}
System.out.println("AC x " + ac);
System.out.println("WA x " + wa);
System.out.println("TLE x " + tle);
System.out.println("RE x " + re);
}
void sort(int[] a) {
ArrayList<Integer> list=new ArrayList<>();
for (int i:a) list.add(i);
Collections.sort(list);
for (int i=0; i<a.length; i++) a[i]=list.get(i);
}
static class FastScanner {
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st=new StringTokenizer("");
public String next() {
while (!st.hasMoreTokens())
try {
st=new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
return st.nextToken();
}
public int nextInt() {
return Integer.parseInt(next());
}
public int[] readArray(int n) {
int[] a=new int[n];
for (int i=0; i<n; i++) a[i]=nextInt();
return a;
}
public String nextString() {
return String.valueOf(next());
}
public long nextLong() {
return Long.parseLong(next());
}
public long[] readLongArray(int n) {
long[] a=new long[n];
for (int i=0; i<n; i++) a[i]=nextLong();
return a;
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
28,
13,
13,
30,
30,
35,
13,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
123,
8
],
[
123,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
11,
29
],
[
29,
30
],
[
29,
31
],
[
11,
32
],
[
32,
33
],
[
32,
34
],
[
11,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
47,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
11,
57
],
[
57,
58
],
[
57,
59
],
[
57,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
62,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
62,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
62,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
11,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
11,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
11,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
109,
110
],
[
109,
111
],
[
11,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
9,
120
],
[
120,
121
],
[
0,
122
],
[
122,
123
],
[
122,
124
]
]
| [
"import java.util.ArrayList;\nimport java.util.Scanner;\n\n\npublic class Main {\n\n public static void main(String[] args)\n {\n Scanner in=new Scanner(System.in);\n int N = in.nextInt();\n int count1 =0, count2 =0, count3 = 0, count4 =0;\n ArrayList<String> m= new ArrayList<>();\n for (int i = 0; i < N; i++) {\n String s = in.next();\n m.add(s);\n }\n for (String s : m) {\n switch (s) {\n case \"AC\":\n count1++;\n break;\n case \"WA\":\n count2++;\n break;\n case \"TLE\":\n count3++;\n break;\n case \"RE\":\n count4++;\n break;\n }\n }\n System.out.println(\"AC x \" + count1);\n System.out.println(\"WA x \" + count2);\n System.out.println(\"TLE x \" + count3);\n System.out.println(\"RE x \" + count4);\n }\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args)\n {\n Scanner in=new Scanner(System.in);\n int N = in.nextInt();\n int count1 =0, count2 =0, count3 = 0, count4 =0;\n ArrayList<String> m= new ArrayList<>();\n for (int i = 0; i < N; i++) {\n String s = in.next();\n m.add(s);\n }\n for (String s : m) {\n switch (s) {\n case \"AC\":\n count1++;\n break;\n case \"WA\":\n count2++;\n break;\n case \"TLE\":\n count3++;\n break;\n case \"RE\":\n count4++;\n break;\n }\n }\n System.out.println(\"AC x \" + count1);\n System.out.println(\"WA x \" + count2);\n System.out.println(\"TLE x \" + count3);\n System.out.println(\"RE x \" + count4);\n }\n}",
"Main",
"public static void main(String[] args)\n {\n Scanner in=new Scanner(System.in);\n int N = in.nextInt();\n int count1 =0, count2 =0, count3 = 0, count4 =0;\n ArrayList<String> m= new ArrayList<>();\n for (int i = 0; i < N; i++) {\n String s = in.next();\n m.add(s);\n }\n for (String s : m) {\n switch (s) {\n case \"AC\":\n count1++;\n break;\n case \"WA\":\n count2++;\n break;\n case \"TLE\":\n count3++;\n break;\n case \"RE\":\n count4++;\n break;\n }\n }\n System.out.println(\"AC x \" + count1);\n System.out.println(\"WA x \" + count2);\n System.out.println(\"TLE x \" + count3);\n System.out.println(\"RE x \" + count4);\n }",
"main",
"{\n Scanner in=new Scanner(System.in);\n int N = in.nextInt();\n int count1 =0, count2 =0, count3 = 0, count4 =0;\n ArrayList<String> m= new ArrayList<>();\n for (int i = 0; i < N; i++) {\n String s = in.next();\n m.add(s);\n }\n for (String s : m) {\n switch (s) {\n case \"AC\":\n count1++;\n break;\n case \"WA\":\n count2++;\n break;\n case \"TLE\":\n count3++;\n break;\n case \"RE\":\n count4++;\n break;\n }\n }\n System.out.println(\"AC x \" + count1);\n System.out.println(\"WA x \" + count2);\n System.out.println(\"TLE x \" + count3);\n System.out.println(\"RE x \" + count4);\n }",
"Scanner in=new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int N = in.nextInt();",
"N",
"in.nextInt()",
"in.nextInt",
"in",
"int count1 =0",
"count1",
"0",
"count2 =0",
"count2",
"0",
"count3 = 0",
"count3",
"0",
"count4 =0;",
"count4",
"0",
"ArrayList<String> m= new ArrayList<>();",
"m",
"new ArrayList<>()",
"for (int i = 0; i < N; i++) {\n String s = in.next();\n m.add(s);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n String s = in.next();\n m.add(s);\n }",
"{\n String s = in.next();\n m.add(s);\n }",
"String s = in.next();",
"s",
"in.next()",
"in.next",
"in",
"m.add(s)",
"m.add",
"m",
"s",
"for (String s : m) {\n switch (s) {\n case \"AC\":\n count1++;\n break;\n case \"WA\":\n count2++;\n break;\n case \"TLE\":\n count3++;\n break;\n case \"RE\":\n count4++;\n break;\n }\n }",
"String s",
"m",
"{\n switch (s) {\n case \"AC\":\n count1++;\n break;\n case \"WA\":\n count2++;\n break;\n case \"TLE\":\n count3++;\n break;\n case \"RE\":\n count4++;\n break;\n }\n }",
"{\n switch (s) {\n case \"AC\":\n count1++;\n break;\n case \"WA\":\n count2++;\n break;\n case \"TLE\":\n count3++;\n break;\n case \"RE\":\n count4++;\n break;\n }\n }",
"switch (s) {\n case \"AC\":\n count1++;\n break;\n case \"WA\":\n count2++;\n break;\n case \"TLE\":\n count3++;\n break;\n case \"RE\":\n count4++;\n break;\n }",
"s",
"case \"AC\":",
"\"AC\"",
"case \"AC\":",
"count1++",
"count1",
"break;",
"case \"WA\":",
"\"WA\"",
"case \"WA\":",
"count2++",
"count2",
"break;",
"case \"TLE\":",
"\"TLE\"",
"case \"TLE\":",
"count3++",
"count3",
"break;",
"case \"RE\":",
"\"RE\"",
"case \"RE\":",
"count4++",
"count4",
"break;",
"System.out.println(\"AC x \" + count1)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + count1",
"\"AC x \"",
"count1",
"System.out.println(\"WA x \" + count2)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + count2",
"\"WA x \"",
"count2",
"System.out.println(\"TLE x \" + count3)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + count3",
"\"TLE x \"",
"count3",
"System.out.println(\"RE x \" + count4)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + count4",
"\"RE x \"",
"count4",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args)\n {\n Scanner in=new Scanner(System.in);\n int N = in.nextInt();\n int count1 =0, count2 =0, count3 = 0, count4 =0;\n ArrayList<String> m= new ArrayList<>();\n for (int i = 0; i < N; i++) {\n String s = in.next();\n m.add(s);\n }\n for (String s : m) {\n switch (s) {\n case \"AC\":\n count1++;\n break;\n case \"WA\":\n count2++;\n break;\n case \"TLE\":\n count3++;\n break;\n case \"RE\":\n count4++;\n break;\n }\n }\n System.out.println(\"AC x \" + count1);\n System.out.println(\"WA x \" + count2);\n System.out.println(\"TLE x \" + count3);\n System.out.println(\"RE x \" + count4);\n }\n}",
"public class Main {\n\n public static void main(String[] args)\n {\n Scanner in=new Scanner(System.in);\n int N = in.nextInt();\n int count1 =0, count2 =0, count3 = 0, count4 =0;\n ArrayList<String> m= new ArrayList<>();\n for (int i = 0; i < N; i++) {\n String s = in.next();\n m.add(s);\n }\n for (String s : m) {\n switch (s) {\n case \"AC\":\n count1++;\n break;\n case \"WA\":\n count2++;\n break;\n case \"TLE\":\n count3++;\n break;\n case \"RE\":\n count4++;\n break;\n }\n }\n System.out.println(\"AC x \" + count1);\n System.out.println(\"WA x \" + count2);\n System.out.println(\"TLE x \" + count3);\n System.out.println(\"RE x \" + count4);\n }\n}",
"Main"
]
| import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static void main(String[] args)
{
Scanner in=new Scanner(System.in);
int N = in.nextInt();
int count1 =0, count2 =0, count3 = 0, count4 =0;
ArrayList<String> m= new ArrayList<>();
for (int i = 0; i < N; i++) {
String s = in.next();
m.add(s);
}
for (String s : m) {
switch (s) {
case "AC":
count1++;
break;
case "WA":
count2++;
break;
case "TLE":
count3++;
break;
case "RE":
count4++;
break;
}
}
System.out.println("AC x " + count1);
System.out.println("WA x " + count2);
System.out.println("TLE x " + count3);
System.out.println("RE x " + count4);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
4,
18,
18,
13,
13,
17,
30,
40,
13,
14,
4,
18,
18,
13,
13,
17,
30,
40,
13,
14,
4,
18,
18,
13,
13,
17,
30,
40,
13,
30,
40,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
2,
2,
2,
17,
13,
17,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
109,
5
],
[
109,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
51,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
53,
60
],
[
60,
61
],
[
61,
62
],
[
53,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
63,
70
],
[
70,
71
],
[
71,
72
],
[
63,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
73,
80
],
[
80,
81
],
[
81,
82
],
[
73,
83
],
[
83,
84
],
[
84,
85
],
[
8,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
97,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
95,
101
],
[
94,
102
],
[
93,
103
],
[
92,
104
],
[
97,
105
],
[
6,
106
],
[
106,
107
],
[
0,
108
],
[
108,
109
],
[
108,
110
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n \n \n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String[] res = new String[N];\n int ac = 0, wa = 0, tle = 0, re = 0;\n for(int i=0; i<N; i++){\n res[i] = sc.next();\n if(res[i].equals(\"AC\")){\n ac++;\n }else if (res[i].equals(\"WA\")){\n wa++;\n }else if(res[i].equals(\"TLE\")){\n tle++;\n }else{\n re++;\n }\n }\n System.out.println(\"AC x \"+ac+\"\\nWA x \"+wa+\"\\nTLE x \"+tle+\"\\nRE x \"+re);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n \n \n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String[] res = new String[N];\n int ac = 0, wa = 0, tle = 0, re = 0;\n for(int i=0; i<N; i++){\n res[i] = sc.next();\n if(res[i].equals(\"AC\")){\n ac++;\n }else if (res[i].equals(\"WA\")){\n wa++;\n }else if(res[i].equals(\"TLE\")){\n tle++;\n }else{\n re++;\n }\n }\n System.out.println(\"AC x \"+ac+\"\\nWA x \"+wa+\"\\nTLE x \"+tle+\"\\nRE x \"+re);\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n // Your code here!\n \n \n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String[] res = new String[N];\n int ac = 0, wa = 0, tle = 0, re = 0;\n for(int i=0; i<N; i++){\n res[i] = sc.next();\n if(res[i].equals(\"AC\")){\n ac++;\n }else if (res[i].equals(\"WA\")){\n wa++;\n }else if(res[i].equals(\"TLE\")){\n tle++;\n }else{\n re++;\n }\n }\n System.out.println(\"AC x \"+ac+\"\\nWA x \"+wa+\"\\nTLE x \"+tle+\"\\nRE x \"+re);\n }",
"main",
"{\n // Your code here!\n \n \n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String[] res = new String[N];\n int ac = 0, wa = 0, tle = 0, re = 0;\n for(int i=0; i<N; i++){\n res[i] = sc.next();\n if(res[i].equals(\"AC\")){\n ac++;\n }else if (res[i].equals(\"WA\")){\n wa++;\n }else if(res[i].equals(\"TLE\")){\n tle++;\n }else{\n re++;\n }\n }\n System.out.println(\"AC x \"+ac+\"\\nWA x \"+wa+\"\\nTLE x \"+tle+\"\\nRE x \"+re);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String[] res = new String[N];",
"res",
"new String[N]",
"N",
"int ac = 0",
"ac",
"0",
"wa = 0",
"wa",
"0",
"tle = 0",
"tle",
"0",
"re = 0;",
"re",
"0",
"for(int i=0; i<N; i++){\n res[i] = sc.next();\n if(res[i].equals(\"AC\")){\n ac++;\n }else if (res[i].equals(\"WA\")){\n wa++;\n }else if(res[i].equals(\"TLE\")){\n tle++;\n }else{\n re++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n res[i] = sc.next();\n if(res[i].equals(\"AC\")){\n ac++;\n }else if (res[i].equals(\"WA\")){\n wa++;\n }else if(res[i].equals(\"TLE\")){\n tle++;\n }else{\n re++;\n }\n }",
"{\n res[i] = sc.next();\n if(res[i].equals(\"AC\")){\n ac++;\n }else if (res[i].equals(\"WA\")){\n wa++;\n }else if(res[i].equals(\"TLE\")){\n tle++;\n }else{\n re++;\n }\n }",
"res[i] = sc.next()",
"res[i]",
"res",
"i",
"sc.next()",
"sc.next",
"sc",
"if(res[i].equals(\"AC\")){\n ac++;\n }else if (res[i].equals(\"WA\")){\n wa++;\n }else if(res[i].equals(\"TLE\")){\n tle++;\n }else{\n re++;\n }",
"res[i].equals(\"AC\")",
"res[i].equals",
"res[i]",
"res",
"i",
"\"AC\"",
"{\n ac++;\n }",
"ac++",
"ac",
"if (res[i].equals(\"WA\")){\n wa++;\n }else if(res[i].equals(\"TLE\")){\n tle++;\n }else{\n re++;\n }",
"res[i].equals(\"WA\")",
"res[i].equals",
"res[i]",
"res",
"i",
"\"WA\"",
"{\n wa++;\n }",
"wa++",
"wa",
"if(res[i].equals(\"TLE\")){\n tle++;\n }else{\n re++;\n }",
"res[i].equals(\"TLE\")",
"res[i].equals",
"res[i]",
"res",
"i",
"\"TLE\"",
"{\n tle++;\n }",
"tle++",
"tle",
"{\n re++;\n }",
"re++",
"re",
"System.out.println(\"AC x \"+ac+\"\\nWA x \"+wa+\"\\nTLE x \"+tle+\"\\nRE x \"+re)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \"+ac+\"\\nWA x \"+wa+\"\\nTLE x \"+tle+\"\\nRE x \"+re",
"\"\\nRE x \"",
"tle",
"\"\\nTLE x \"",
"wa",
"\"\\nWA x \"",
"\"AC x \"+ac+\"\\nWA x \"+wa+\"\\nTLE x \"+tle+\"\\nRE x \"+re",
"\"AC x \"",
"ac",
"\"\\nWA x \"",
"wa",
"\"\\nTLE x \"",
"tle",
"\"\\nRE x \"",
"re",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n \n \n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String[] res = new String[N];\n int ac = 0, wa = 0, tle = 0, re = 0;\n for(int i=0; i<N; i++){\n res[i] = sc.next();\n if(res[i].equals(\"AC\")){\n ac++;\n }else if (res[i].equals(\"WA\")){\n wa++;\n }else if(res[i].equals(\"TLE\")){\n tle++;\n }else{\n re++;\n }\n }\n System.out.println(\"AC x \"+ac+\"\\nWA x \"+wa+\"\\nTLE x \"+tle+\"\\nRE x \"+re);\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n \n \n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String[] res = new String[N];\n int ac = 0, wa = 0, tle = 0, re = 0;\n for(int i=0; i<N; i++){\n res[i] = sc.next();\n if(res[i].equals(\"AC\")){\n ac++;\n }else if (res[i].equals(\"WA\")){\n wa++;\n }else if(res[i].equals(\"TLE\")){\n tle++;\n }else{\n re++;\n }\n }\n System.out.println(\"AC x \"+ac+\"\\nWA x \"+wa+\"\\nTLE x \"+tle+\"\\nRE x \"+re);\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
// Your code here!
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
String[] res = new String[N];
int ac = 0, wa = 0, tle = 0, re = 0;
for(int i=0; i<N; i++){
res[i] = sc.next();
if(res[i].equals("AC")){
ac++;
}else if (res[i].equals("WA")){
wa++;
}else if(res[i].equals("TLE")){
tle++;
}else{
re++;
}
}
System.out.println("AC x "+ac+"\nWA x "+wa+"\nTLE x "+tle+"\nRE x "+re);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
40,
18,
13,
17,
14,
4,
18,
13,
17,
30,
40,
18,
13,
17,
14,
4,
18,
13,
17,
30,
40,
18,
13,
17,
14,
4,
18,
13,
17,
30,
40,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
136,
5
],
[
136,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
13,
18
],
[
9,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
19,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
29,
30
],
[
19,
31
],
[
31,
32
],
[
31,
33
],
[
19,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
47,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
53,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
53,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
63,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
63,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
73,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
73,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
83,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
19,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
100,
102
],
[
19,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
110,
112
],
[
19,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
120,
122
],
[
19,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
123,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
130,
132
],
[
6,
133
],
[
133,
134
],
[
0,
135
],
[
135,
136
],
[
135,
137
]
]
| [
"import java.io.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n int N = Integer.parseInt(br.readLine());\n int si[] = new int[4];\n \n for(int i=0; i<N; i++){\n String str = br.readLine();\n \n if(str.equals(\"AC\")){\n si[0]++;\n }else if(str.equals(\"WA\")){\n si[1]++;\n }else if(str.equals(\"TLE\")){\n si[2]++;\n }else if(str.equals(\"RE\")){\n si[3]++;\n }\n }\n \n System.out.println(\"AC x \" + si[0]);\n System.out.println(\"WA x \" + si[1]);\n System.out.println(\"TLE x \" + si[2]);\n System.out.println(\"RE x \" + si[3]);\n \n }catch(Exception e){\n System.out.println(e);\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n int N = Integer.parseInt(br.readLine());\n int si[] = new int[4];\n \n for(int i=0; i<N; i++){\n String str = br.readLine();\n \n if(str.equals(\"AC\")){\n si[0]++;\n }else if(str.equals(\"WA\")){\n si[1]++;\n }else if(str.equals(\"TLE\")){\n si[2]++;\n }else if(str.equals(\"RE\")){\n si[3]++;\n }\n }\n \n System.out.println(\"AC x \" + si[0]);\n System.out.println(\"WA x \" + si[1]);\n System.out.println(\"TLE x \" + si[2]);\n System.out.println(\"RE x \" + si[3]);\n \n }catch(Exception e){\n System.out.println(e);\n }\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n int N = Integer.parseInt(br.readLine());\n int si[] = new int[4];\n \n for(int i=0; i<N; i++){\n String str = br.readLine();\n \n if(str.equals(\"AC\")){\n si[0]++;\n }else if(str.equals(\"WA\")){\n si[1]++;\n }else if(str.equals(\"TLE\")){\n si[2]++;\n }else if(str.equals(\"RE\")){\n si[3]++;\n }\n }\n \n System.out.println(\"AC x \" + si[0]);\n System.out.println(\"WA x \" + si[1]);\n System.out.println(\"TLE x \" + si[2]);\n System.out.println(\"RE x \" + si[3]);\n \n }catch(Exception e){\n System.out.println(e);\n }\n }",
"main",
"{\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n int N = Integer.parseInt(br.readLine());\n int si[] = new int[4];\n \n for(int i=0; i<N; i++){\n String str = br.readLine();\n \n if(str.equals(\"AC\")){\n si[0]++;\n }else if(str.equals(\"WA\")){\n si[1]++;\n }else if(str.equals(\"TLE\")){\n si[2]++;\n }else if(str.equals(\"RE\")){\n si[3]++;\n }\n }\n \n System.out.println(\"AC x \" + si[0]);\n System.out.println(\"WA x \" + si[1]);\n System.out.println(\"TLE x \" + si[2]);\n System.out.println(\"RE x \" + si[3]);\n \n }catch(Exception e){\n System.out.println(e);\n }\n }",
"try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n int N = Integer.parseInt(br.readLine());\n int si[] = new int[4];\n \n for(int i=0; i<N; i++){\n String str = br.readLine();\n \n if(str.equals(\"AC\")){\n si[0]++;\n }else if(str.equals(\"WA\")){\n si[1]++;\n }else if(str.equals(\"TLE\")){\n si[2]++;\n }else if(str.equals(\"RE\")){\n si[3]++;\n }\n }\n \n System.out.println(\"AC x \" + si[0]);\n System.out.println(\"WA x \" + si[1]);\n System.out.println(\"TLE x \" + si[2]);\n System.out.println(\"RE x \" + si[3]);\n \n }catch(Exception e){\n System.out.println(e);\n }",
"catch(Exception e){\n System.out.println(e);\n }",
"Exception e",
"{\n System.out.println(e);\n }",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n int N = Integer.parseInt(br.readLine());\n int si[] = new int[4];\n \n for(int i=0; i<N; i++){\n String str = br.readLine();\n \n if(str.equals(\"AC\")){\n si[0]++;\n }else if(str.equals(\"WA\")){\n si[1]++;\n }else if(str.equals(\"TLE\")){\n si[2]++;\n }else if(str.equals(\"RE\")){\n si[3]++;\n }\n }\n \n System.out.println(\"AC x \" + si[0]);\n System.out.println(\"WA x \" + si[1]);\n System.out.println(\"TLE x \" + si[2]);\n System.out.println(\"RE x \" + si[3]);\n \n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int N = Integer.parseInt(br.readLine());",
"N",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int si[] = new int[4];",
"si",
"new int[4]",
"4",
"for(int i=0; i<N; i++){\n String str = br.readLine();\n \n if(str.equals(\"AC\")){\n si[0]++;\n }else if(str.equals(\"WA\")){\n si[1]++;\n }else if(str.equals(\"TLE\")){\n si[2]++;\n }else if(str.equals(\"RE\")){\n si[3]++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n String str = br.readLine();\n \n if(str.equals(\"AC\")){\n si[0]++;\n }else if(str.equals(\"WA\")){\n si[1]++;\n }else if(str.equals(\"TLE\")){\n si[2]++;\n }else if(str.equals(\"RE\")){\n si[3]++;\n }\n }",
"{\n String str = br.readLine();\n \n if(str.equals(\"AC\")){\n si[0]++;\n }else if(str.equals(\"WA\")){\n si[1]++;\n }else if(str.equals(\"TLE\")){\n si[2]++;\n }else if(str.equals(\"RE\")){\n si[3]++;\n }\n }",
"String str = br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"if(str.equals(\"AC\")){\n si[0]++;\n }else if(str.equals(\"WA\")){\n si[1]++;\n }else if(str.equals(\"TLE\")){\n si[2]++;\n }else if(str.equals(\"RE\")){\n si[3]++;\n }",
"str.equals(\"AC\")",
"str.equals",
"str",
"\"AC\"",
"{\n si[0]++;\n }",
"si[0]++",
"si[0]",
"si",
"0",
"if(str.equals(\"WA\")){\n si[1]++;\n }else if(str.equals(\"TLE\")){\n si[2]++;\n }else if(str.equals(\"RE\")){\n si[3]++;\n }",
"str.equals(\"WA\")",
"str.equals",
"str",
"\"WA\"",
"{\n si[1]++;\n }",
"si[1]++",
"si[1]",
"si",
"1",
"if(str.equals(\"TLE\")){\n si[2]++;\n }else if(str.equals(\"RE\")){\n si[3]++;\n }",
"str.equals(\"TLE\")",
"str.equals",
"str",
"\"TLE\"",
"{\n si[2]++;\n }",
"si[2]++",
"si[2]",
"si",
"2",
"if(str.equals(\"RE\")){\n si[3]++;\n }",
"str.equals(\"RE\")",
"str.equals",
"str",
"\"RE\"",
"{\n si[3]++;\n }",
"si[3]++",
"si[3]",
"si",
"3",
"System.out.println(\"AC x \" + si[0])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + si[0]",
"\"AC x \"",
"si[0]",
"si",
"0",
"System.out.println(\"WA x \" + si[1])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + si[1]",
"\"WA x \"",
"si[1]",
"si",
"1",
"System.out.println(\"TLE x \" + si[2])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + si[2]",
"\"TLE x \"",
"si[2]",
"si",
"2",
"System.out.println(\"RE x \" + si[3])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + si[3]",
"\"RE x \"",
"si[3]",
"si",
"3",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n int N = Integer.parseInt(br.readLine());\n int si[] = new int[4];\n \n for(int i=0; i<N; i++){\n String str = br.readLine();\n \n if(str.equals(\"AC\")){\n si[0]++;\n }else if(str.equals(\"WA\")){\n si[1]++;\n }else if(str.equals(\"TLE\")){\n si[2]++;\n }else if(str.equals(\"RE\")){\n si[3]++;\n }\n }\n \n System.out.println(\"AC x \" + si[0]);\n System.out.println(\"WA x \" + si[1]);\n System.out.println(\"TLE x \" + si[2]);\n System.out.println(\"RE x \" + si[3]);\n \n }catch(Exception e){\n System.out.println(e);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n int N = Integer.parseInt(br.readLine());\n int si[] = new int[4];\n \n for(int i=0; i<N; i++){\n String str = br.readLine();\n \n if(str.equals(\"AC\")){\n si[0]++;\n }else if(str.equals(\"WA\")){\n si[1]++;\n }else if(str.equals(\"TLE\")){\n si[2]++;\n }else if(str.equals(\"RE\")){\n si[3]++;\n }\n }\n \n System.out.println(\"AC x \" + si[0]);\n System.out.println(\"WA x \" + si[1]);\n System.out.println(\"TLE x \" + si[2]);\n System.out.println(\"RE x \" + si[3]);\n \n }catch(Exception e){\n System.out.println(e);\n }\n }\n}",
"Main"
]
| import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
try{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int N = Integer.parseInt(br.readLine());
int si[] = new int[4];
for(int i=0; i<N; i++){
String str = br.readLine();
if(str.equals("AC")){
si[0]++;
}else if(str.equals("WA")){
si[1]++;
}else if(str.equals("TLE")){
si[2]++;
}else if(str.equals("RE")){
si[3]++;
}
}
System.out.println("AC x " + si[0]);
System.out.println("WA x " + si[1]);
System.out.println("TLE x " + si[2]);
System.out.println("RE x " + si[3]);
}catch(Exception e){
System.out.println(e);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
18,
13,
13,
14,
4,
18,
13,
17,
30,
40,
13,
14,
4,
18,
13,
17,
30,
40,
13,
14,
4,
18,
13,
17,
30,
40,
13,
14,
4,
18,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
17,
17,
17,
17,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
17,
17,
17,
17,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
17,
17,
17,
17,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
17,
17,
17,
17,
13,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
178,
5
],
[
178,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
18,
22
],
[
22,
23
],
[
22,
24
],
[
17,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
48,
49
],
[
25,
50
],
[
50,
51
],
[
50,
52
],
[
25,
53
],
[
53,
54
],
[
53,
55
],
[
25,
56
],
[
56,
57
],
[
56,
58
],
[
25,
59
],
[
59,
60
],
[
59,
61
],
[
25,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
67,
68
],
[
67,
69
],
[
62,
70
],
[
70,
71
],
[
71,
72
],
[
62,
73
],
[
74,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
77,
79
],
[
74,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
80,
85
],
[
85,
86
],
[
86,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
88,
93
],
[
93,
94
],
[
94,
95
],
[
88,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
96,
101
],
[
101,
102
],
[
102,
103
],
[
96,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
104,
109
],
[
109,
110
],
[
110,
111
],
[
25,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
120,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
118,
124
],
[
120,
125
],
[
25,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
134,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
133,
137
],
[
132,
138
],
[
134,
139
],
[
25,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
140,
145
],
[
148,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
146,
152
],
[
148,
153
],
[
25,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
154,
159
],
[
162,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
161,
165
],
[
160,
166
],
[
162,
167
],
[
17,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
169,
174
],
[
6,
175
],
[
175,
176
],
[
0,
177
],
[
177,
178
],
[
177,
179
]
]
| [
"import java.util.*;\n \npublic class Main{\n \n public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n \n if(n>=1 && n<=100000){\n String[] list = new String[n];\n for(int i=0; i < n; ++i){\n list[i] = sc.next();\n }\n \n int acCount = 0;\n int waCount = 0;\n int tleCount = 0;\n int reCount = 0;\n for(int i=0; i < n; ++i){\n String str = list[i];\n \n if(str.equals(\"AC\")){\n acCount++;\n }else if(str.equals(\"WA\")){\n waCount++;\n }else if(str.equals(\"TLE\")){\n tleCount++;\n }else if(str.equals(\"RE\")){\n reCount++;\n }\n \n }\n \n System.out.println(\"AC\" + \" \" + \"x\" + \" \" + acCount);\n System.out.println(\"WA\" + \" \" + \"x\" + \" \" + waCount);\n System.out.println(\"TLE\" + \" \" + \"x\" + \" \" + tleCount);\n System.out.println(\"RE\" + \" \" + \"x\" + \" \" + reCount);\n \n }else{\n System.out.println(\"入力条件に違反しています\");\n }\n } \n \n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n \n public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n \n if(n>=1 && n<=100000){\n String[] list = new String[n];\n for(int i=0; i < n; ++i){\n list[i] = sc.next();\n }\n \n int acCount = 0;\n int waCount = 0;\n int tleCount = 0;\n int reCount = 0;\n for(int i=0; i < n; ++i){\n String str = list[i];\n \n if(str.equals(\"AC\")){\n acCount++;\n }else if(str.equals(\"WA\")){\n waCount++;\n }else if(str.equals(\"TLE\")){\n tleCount++;\n }else if(str.equals(\"RE\")){\n reCount++;\n }\n \n }\n \n System.out.println(\"AC\" + \" \" + \"x\" + \" \" + acCount);\n System.out.println(\"WA\" + \" \" + \"x\" + \" \" + waCount);\n System.out.println(\"TLE\" + \" \" + \"x\" + \" \" + tleCount);\n System.out.println(\"RE\" + \" \" + \"x\" + \" \" + reCount);\n \n }else{\n System.out.println(\"入力条件に違反しています\");\n }\n } \n \n}",
"Main",
"public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n \n if(n>=1 && n<=100000){\n String[] list = new String[n];\n for(int i=0; i < n; ++i){\n list[i] = sc.next();\n }\n \n int acCount = 0;\n int waCount = 0;\n int tleCount = 0;\n int reCount = 0;\n for(int i=0; i < n; ++i){\n String str = list[i];\n \n if(str.equals(\"AC\")){\n acCount++;\n }else if(str.equals(\"WA\")){\n waCount++;\n }else if(str.equals(\"TLE\")){\n tleCount++;\n }else if(str.equals(\"RE\")){\n reCount++;\n }\n \n }\n \n System.out.println(\"AC\" + \" \" + \"x\" + \" \" + acCount);\n System.out.println(\"WA\" + \" \" + \"x\" + \" \" + waCount);\n System.out.println(\"TLE\" + \" \" + \"x\" + \" \" + tleCount);\n System.out.println(\"RE\" + \" \" + \"x\" + \" \" + reCount);\n \n }else{\n System.out.println(\"入力条件に違反しています\");\n }\n }",
"main",
"{\n \n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n \n if(n>=1 && n<=100000){\n String[] list = new String[n];\n for(int i=0; i < n; ++i){\n list[i] = sc.next();\n }\n \n int acCount = 0;\n int waCount = 0;\n int tleCount = 0;\n int reCount = 0;\n for(int i=0; i < n; ++i){\n String str = list[i];\n \n if(str.equals(\"AC\")){\n acCount++;\n }else if(str.equals(\"WA\")){\n waCount++;\n }else if(str.equals(\"TLE\")){\n tleCount++;\n }else if(str.equals(\"RE\")){\n reCount++;\n }\n \n }\n \n System.out.println(\"AC\" + \" \" + \"x\" + \" \" + acCount);\n System.out.println(\"WA\" + \" \" + \"x\" + \" \" + waCount);\n System.out.println(\"TLE\" + \" \" + \"x\" + \" \" + tleCount);\n System.out.println(\"RE\" + \" \" + \"x\" + \" \" + reCount);\n \n }else{\n System.out.println(\"入力条件に違反しています\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(n>=1 && n<=100000){\n String[] list = new String[n];\n for(int i=0; i < n; ++i){\n list[i] = sc.next();\n }\n \n int acCount = 0;\n int waCount = 0;\n int tleCount = 0;\n int reCount = 0;\n for(int i=0; i < n; ++i){\n String str = list[i];\n \n if(str.equals(\"AC\")){\n acCount++;\n }else if(str.equals(\"WA\")){\n waCount++;\n }else if(str.equals(\"TLE\")){\n tleCount++;\n }else if(str.equals(\"RE\")){\n reCount++;\n }\n \n }\n \n System.out.println(\"AC\" + \" \" + \"x\" + \" \" + acCount);\n System.out.println(\"WA\" + \" \" + \"x\" + \" \" + waCount);\n System.out.println(\"TLE\" + \" \" + \"x\" + \" \" + tleCount);\n System.out.println(\"RE\" + \" \" + \"x\" + \" \" + reCount);\n \n }else{\n System.out.println(\"入力条件に違反しています\");\n }",
"n>=1 && n<=100000",
"n>=1",
"n",
"1",
"n<=100000",
"n",
"100000",
"{\n String[] list = new String[n];\n for(int i=0; i < n; ++i){\n list[i] = sc.next();\n }\n \n int acCount = 0;\n int waCount = 0;\n int tleCount = 0;\n int reCount = 0;\n for(int i=0; i < n; ++i){\n String str = list[i];\n \n if(str.equals(\"AC\")){\n acCount++;\n }else if(str.equals(\"WA\")){\n waCount++;\n }else if(str.equals(\"TLE\")){\n tleCount++;\n }else if(str.equals(\"RE\")){\n reCount++;\n }\n \n }\n \n System.out.println(\"AC\" + \" \" + \"x\" + \" \" + acCount);\n System.out.println(\"WA\" + \" \" + \"x\" + \" \" + waCount);\n System.out.println(\"TLE\" + \" \" + \"x\" + \" \" + tleCount);\n System.out.println(\"RE\" + \" \" + \"x\" + \" \" + reCount);\n \n }",
"String[] list = new String[n];",
"list",
"new String[n]",
"n",
"for(int i=0; i < n; ++i){\n list[i] = sc.next();\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i < n",
"i",
"n",
"++i",
"++i",
"i",
"{\n list[i] = sc.next();\n }",
"{\n list[i] = sc.next();\n }",
"list[i] = sc.next()",
"list[i]",
"list",
"i",
"sc.next()",
"sc.next",
"sc",
"int acCount = 0;",
"acCount",
"0",
"int waCount = 0;",
"waCount",
"0",
"int tleCount = 0;",
"tleCount",
"0",
"int reCount = 0;",
"reCount",
"0",
"for(int i=0; i < n; ++i){\n String str = list[i];\n \n if(str.equals(\"AC\")){\n acCount++;\n }else if(str.equals(\"WA\")){\n waCount++;\n }else if(str.equals(\"TLE\")){\n tleCount++;\n }else if(str.equals(\"RE\")){\n reCount++;\n }\n \n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i < n",
"i",
"n",
"++i",
"++i",
"i",
"{\n String str = list[i];\n \n if(str.equals(\"AC\")){\n acCount++;\n }else if(str.equals(\"WA\")){\n waCount++;\n }else if(str.equals(\"TLE\")){\n tleCount++;\n }else if(str.equals(\"RE\")){\n reCount++;\n }\n \n }",
"{\n String str = list[i];\n \n if(str.equals(\"AC\")){\n acCount++;\n }else if(str.equals(\"WA\")){\n waCount++;\n }else if(str.equals(\"TLE\")){\n tleCount++;\n }else if(str.equals(\"RE\")){\n reCount++;\n }\n \n }",
"String str = list[i];",
"str",
"list[i]",
"list",
"i",
"if(str.equals(\"AC\")){\n acCount++;\n }else if(str.equals(\"WA\")){\n waCount++;\n }else if(str.equals(\"TLE\")){\n tleCount++;\n }else if(str.equals(\"RE\")){\n reCount++;\n }",
"str.equals(\"AC\")",
"str.equals",
"str",
"\"AC\"",
"{\n acCount++;\n }",
"acCount++",
"acCount",
"if(str.equals(\"WA\")){\n waCount++;\n }else if(str.equals(\"TLE\")){\n tleCount++;\n }else if(str.equals(\"RE\")){\n reCount++;\n }",
"str.equals(\"WA\")",
"str.equals",
"str",
"\"WA\"",
"{\n waCount++;\n }",
"waCount++",
"waCount",
"if(str.equals(\"TLE\")){\n tleCount++;\n }else if(str.equals(\"RE\")){\n reCount++;\n }",
"str.equals(\"TLE\")",
"str.equals",
"str",
"\"TLE\"",
"{\n tleCount++;\n }",
"tleCount++",
"tleCount",
"if(str.equals(\"RE\")){\n reCount++;\n }",
"str.equals(\"RE\")",
"str.equals",
"str",
"\"RE\"",
"{\n reCount++;\n }",
"reCount++",
"reCount",
"System.out.println(\"AC\" + \" \" + \"x\" + \" \" + acCount)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC\" + \" \" + \"x\" + \" \" + acCount",
"\" \"",
"\"x\"",
"\"AC\" + \" \" + \"x\" + \" \" + acCount",
"\"AC\"",
"\" \"",
"\"x\"",
"\" \"",
"acCount",
"System.out.println(\"WA\" + \" \" + \"x\" + \" \" + waCount)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA\" + \" \" + \"x\" + \" \" + waCount",
"\" \"",
"\"x\"",
"\"WA\" + \" \" + \"x\" + \" \" + waCount",
"\"WA\"",
"\" \"",
"\"x\"",
"\" \"",
"waCount",
"System.out.println(\"TLE\" + \" \" + \"x\" + \" \" + tleCount)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE\" + \" \" + \"x\" + \" \" + tleCount",
"\" \"",
"\"x\"",
"\"TLE\" + \" \" + \"x\" + \" \" + tleCount",
"\"TLE\"",
"\" \"",
"\"x\"",
"\" \"",
"tleCount",
"System.out.println(\"RE\" + \" \" + \"x\" + \" \" + reCount)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE\" + \" \" + \"x\" + \" \" + reCount",
"\" \"",
"\"x\"",
"\"RE\" + \" \" + \"x\" + \" \" + reCount",
"\"RE\"",
"\" \"",
"\"x\"",
"\" \"",
"reCount",
"{\n System.out.println(\"入力条件に違反しています\");\n }",
"System.out.println(\"入力条件に違反しています\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"入力条件に違反しています\"",
"String[] args",
"args",
"public class Main{\n \n public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n \n if(n>=1 && n<=100000){\n String[] list = new String[n];\n for(int i=0; i < n; ++i){\n list[i] = sc.next();\n }\n \n int acCount = 0;\n int waCount = 0;\n int tleCount = 0;\n int reCount = 0;\n for(int i=0; i < n; ++i){\n String str = list[i];\n \n if(str.equals(\"AC\")){\n acCount++;\n }else if(str.equals(\"WA\")){\n waCount++;\n }else if(str.equals(\"TLE\")){\n tleCount++;\n }else if(str.equals(\"RE\")){\n reCount++;\n }\n \n }\n \n System.out.println(\"AC\" + \" \" + \"x\" + \" \" + acCount);\n System.out.println(\"WA\" + \" \" + \"x\" + \" \" + waCount);\n System.out.println(\"TLE\" + \" \" + \"x\" + \" \" + tleCount);\n System.out.println(\"RE\" + \" \" + \"x\" + \" \" + reCount);\n \n }else{\n System.out.println(\"入力条件に違反しています\");\n }\n } \n \n}",
"public class Main{\n \n public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n \n if(n>=1 && n<=100000){\n String[] list = new String[n];\n for(int i=0; i < n; ++i){\n list[i] = sc.next();\n }\n \n int acCount = 0;\n int waCount = 0;\n int tleCount = 0;\n int reCount = 0;\n for(int i=0; i < n; ++i){\n String str = list[i];\n \n if(str.equals(\"AC\")){\n acCount++;\n }else if(str.equals(\"WA\")){\n waCount++;\n }else if(str.equals(\"TLE\")){\n tleCount++;\n }else if(str.equals(\"RE\")){\n reCount++;\n }\n \n }\n \n System.out.println(\"AC\" + \" \" + \"x\" + \" \" + acCount);\n System.out.println(\"WA\" + \" \" + \"x\" + \" \" + waCount);\n System.out.println(\"TLE\" + \" \" + \"x\" + \" \" + tleCount);\n System.out.println(\"RE\" + \" \" + \"x\" + \" \" + reCount);\n \n }else{\n System.out.println(\"入力条件に違反しています\");\n }\n } \n \n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
if(n>=1 && n<=100000){
String[] list = new String[n];
for(int i=0; i < n; ++i){
list[i] = sc.next();
}
int acCount = 0;
int waCount = 0;
int tleCount = 0;
int reCount = 0;
for(int i=0; i < n; ++i){
String str = list[i];
if(str.equals("AC")){
acCount++;
}else if(str.equals("WA")){
waCount++;
}else if(str.equals("TLE")){
tleCount++;
}else if(str.equals("RE")){
reCount++;
}
}
System.out.println("AC" + " " + "x" + " " + acCount);
System.out.println("WA" + " " + "x" + " " + waCount);
System.out.println("TLE" + " " + "x" + " " + tleCount);
System.out.println("RE" + " " + "x" + " " + reCount);
}else{
System.out.println("入力条件に違反しています");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
20,
41,
13,
42,
2,
0,
13,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
72,
5
],
[
72,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
26,
36
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
8,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
8,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
6,
69
],
[
69,
70
],
[
0,
71
],
[
71,
72
],
[
71,
73
]
]
| [
"import java.io.IOException;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n\n StringBuilder builder = new StringBuilder();\n int buf;\n while ((buf = System.in.read()) != '\\n') {}\n l: while (true) {\n builder.setLength(0);\n while ((buf = System.in.read()) != '\\n') {\n if (buf == -1) break l;\n builder.appendCodePoint(buf);\n }\n\n switch (builder.toString()) {\n case \"AC\" :\n ac++;\n break;\n case \"WA\":\n wa++;\n break;\n case \"TLE\":\n tle++;\n break;\n case \"RE\":\n re++;\n break;\n }\n }\n\n System.out.println(\"AC x \" + ac);\n System.out.println(\"WA x \" + wa);\n System.out.println(\"TLE x \" + tle);\n System.out.println(\"RE x \" + re);\n }\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"public class Main {\n public static void main(String[] args) throws IOException {\n\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n\n StringBuilder builder = new StringBuilder();\n int buf;\n while ((buf = System.in.read()) != '\\n') {}\n l: while (true) {\n builder.setLength(0);\n while ((buf = System.in.read()) != '\\n') {\n if (buf == -1) break l;\n builder.appendCodePoint(buf);\n }\n\n switch (builder.toString()) {\n case \"AC\" :\n ac++;\n break;\n case \"WA\":\n wa++;\n break;\n case \"TLE\":\n tle++;\n break;\n case \"RE\":\n re++;\n break;\n }\n }\n\n System.out.println(\"AC x \" + ac);\n System.out.println(\"WA x \" + wa);\n System.out.println(\"TLE x \" + tle);\n System.out.println(\"RE x \" + re);\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n\n StringBuilder builder = new StringBuilder();\n int buf;\n while ((buf = System.in.read()) != '\\n') {}\n l: while (true) {\n builder.setLength(0);\n while ((buf = System.in.read()) != '\\n') {\n if (buf == -1) break l;\n builder.appendCodePoint(buf);\n }\n\n switch (builder.toString()) {\n case \"AC\" :\n ac++;\n break;\n case \"WA\":\n wa++;\n break;\n case \"TLE\":\n tle++;\n break;\n case \"RE\":\n re++;\n break;\n }\n }\n\n System.out.println(\"AC x \" + ac);\n System.out.println(\"WA x \" + wa);\n System.out.println(\"TLE x \" + tle);\n System.out.println(\"RE x \" + re);\n }",
"main",
"{\n\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n\n StringBuilder builder = new StringBuilder();\n int buf;\n while ((buf = System.in.read()) != '\\n') {}\n l: while (true) {\n builder.setLength(0);\n while ((buf = System.in.read()) != '\\n') {\n if (buf == -1) break l;\n builder.appendCodePoint(buf);\n }\n\n switch (builder.toString()) {\n case \"AC\" :\n ac++;\n break;\n case \"WA\":\n wa++;\n break;\n case \"TLE\":\n tle++;\n break;\n case \"RE\":\n re++;\n break;\n }\n }\n\n System.out.println(\"AC x \" + ac);\n System.out.println(\"WA x \" + wa);\n System.out.println(\"TLE x \" + tle);\n System.out.println(\"RE x \" + re);\n }",
"int ac = 0;",
"ac",
"0",
"int wa = 0;",
"wa",
"0",
"int tle = 0;",
"tle",
"0",
"int re = 0;",
"re",
"0",
"StringBuilder builder = new StringBuilder();",
"builder",
"new StringBuilder()",
"int buf;",
"buf",
"while ((buf = System.in.read()) != '\\n') {}",
"(buf = System.in.read()) != '\\n'",
"(buf = System.in.read())",
"buf",
"System.in.read()",
"System.in.read",
"System.in",
"System",
"System.in",
"'\\n'",
"{}",
"System.out.println(\"AC x \" + ac)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + ac",
"\"AC x \"",
"ac",
"System.out.println(\"WA x \" + wa)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + wa",
"\"WA x \"",
"wa",
"System.out.println(\"TLE x \" + tle)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + tle",
"\"TLE x \"",
"tle",
"System.out.println(\"RE x \" + re)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + re",
"\"RE x \"",
"re",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws IOException {\n\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n\n StringBuilder builder = new StringBuilder();\n int buf;\n while ((buf = System.in.read()) != '\\n') {}\n l: while (true) {\n builder.setLength(0);\n while ((buf = System.in.read()) != '\\n') {\n if (buf == -1) break l;\n builder.appendCodePoint(buf);\n }\n\n switch (builder.toString()) {\n case \"AC\" :\n ac++;\n break;\n case \"WA\":\n wa++;\n break;\n case \"TLE\":\n tle++;\n break;\n case \"RE\":\n re++;\n break;\n }\n }\n\n System.out.println(\"AC x \" + ac);\n System.out.println(\"WA x \" + wa);\n System.out.println(\"TLE x \" + tle);\n System.out.println(\"RE x \" + re);\n }\n}",
"public class Main {\n public static void main(String[] args) throws IOException {\n\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n\n StringBuilder builder = new StringBuilder();\n int buf;\n while ((buf = System.in.read()) != '\\n') {}\n l: while (true) {\n builder.setLength(0);\n while ((buf = System.in.read()) != '\\n') {\n if (buf == -1) break l;\n builder.appendCodePoint(buf);\n }\n\n switch (builder.toString()) {\n case \"AC\" :\n ac++;\n break;\n case \"WA\":\n wa++;\n break;\n case \"TLE\":\n tle++;\n break;\n case \"RE\":\n re++;\n break;\n }\n }\n\n System.out.println(\"AC x \" + ac);\n System.out.println(\"WA x \" + wa);\n System.out.println(\"TLE x \" + tle);\n System.out.println(\"RE x \" + re);\n }\n}",
"Main"
]
| import java.io.IOException;
public class Main {
public static void main(String[] args) throws IOException {
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
StringBuilder builder = new StringBuilder();
int buf;
while ((buf = System.in.read()) != '\n') {}
l: while (true) {
builder.setLength(0);
while ((buf = System.in.read()) != '\n') {
if (buf == -1) break l;
builder.appendCodePoint(buf);
}
switch (builder.toString()) {
case "AC" :
ac++;
break;
case "WA":
wa++;
break;
case "TLE":
tle++;
break;
case "RE":
re++;
break;
}
}
System.out.println("AC x " + ac);
System.out.println("WA x " + wa);
System.out.println("TLE x " + tle);
System.out.println("RE x " + re);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
18,
13,
13,
17,
30,
40,
13,
14,
4,
18,
18,
13,
13,
17,
30,
40,
13,
14,
4,
18,
18,
13,
13,
17,
30,
40,
13,
14,
4,
18,
18,
13,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
146,
5
],
[
146,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
41,
42
],
[
8,
43
],
[
43,
44
],
[
44,
45
],
[
8,
46
],
[
46,
47
],
[
46,
48
],
[
8,
49
],
[
49,
50
],
[
49,
51
],
[
8,
52
],
[
52,
53
],
[
52,
54
],
[
8,
55
],
[
55,
56
],
[
55,
57
],
[
8,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
58,
69
],
[
70,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
71,
78
],
[
78,
79
],
[
79,
80
],
[
71,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
81,
88
],
[
88,
89
],
[
89,
90
],
[
81,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
91,
98
],
[
98,
99
],
[
99,
100
],
[
91,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
101,
108
],
[
108,
109
],
[
109,
110
],
[
8,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
116,
117
],
[
116,
118
],
[
8,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
124,
125
],
[
124,
126
],
[
8,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
132,
133
],
[
132,
134
],
[
8,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
135,
140
],
[
140,
141
],
[
140,
142
],
[
6,
143
],
[
143,
144
],
[
0,
145
],
[
145,
146
],
[
145,
147
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String[] A = new String[N+1];\n for (int i = 1 ; i <= N ; i++){\n A[i] = sc.next();\n }\n sc.close();\n\n int AC = 0;\n int WA = 0;\n int TLE = 0;\n int RE = 0;\n\n for(int i = 1 ; i<= N ; i++){\n if(A[i].equals(\"AC\")){\n AC++;\n }\n else if(A[i].equals(\"WA\")){\n WA++;\n }\n else if(A[i].equals(\"TLE\")){\n TLE++;\n }\n else if(A[i].equals(\"RE\")){\n RE++;\n }\n }\n System.out.println(\"AC x \" + AC);\n System.out.println(\"WA x \" + WA);\n System.out.println(\"TLE x \" + TLE);\n System.out.println(\"RE x \" + RE);\n\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String[] A = new String[N+1];\n for (int i = 1 ; i <= N ; i++){\n A[i] = sc.next();\n }\n sc.close();\n\n int AC = 0;\n int WA = 0;\n int TLE = 0;\n int RE = 0;\n\n for(int i = 1 ; i<= N ; i++){\n if(A[i].equals(\"AC\")){\n AC++;\n }\n else if(A[i].equals(\"WA\")){\n WA++;\n }\n else if(A[i].equals(\"TLE\")){\n TLE++;\n }\n else if(A[i].equals(\"RE\")){\n RE++;\n }\n }\n System.out.println(\"AC x \" + AC);\n System.out.println(\"WA x \" + WA);\n System.out.println(\"TLE x \" + TLE);\n System.out.println(\"RE x \" + RE);\n\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String[] A = new String[N+1];\n for (int i = 1 ; i <= N ; i++){\n A[i] = sc.next();\n }\n sc.close();\n\n int AC = 0;\n int WA = 0;\n int TLE = 0;\n int RE = 0;\n\n for(int i = 1 ; i<= N ; i++){\n if(A[i].equals(\"AC\")){\n AC++;\n }\n else if(A[i].equals(\"WA\")){\n WA++;\n }\n else if(A[i].equals(\"TLE\")){\n TLE++;\n }\n else if(A[i].equals(\"RE\")){\n RE++;\n }\n }\n System.out.println(\"AC x \" + AC);\n System.out.println(\"WA x \" + WA);\n System.out.println(\"TLE x \" + TLE);\n System.out.println(\"RE x \" + RE);\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String[] A = new String[N+1];\n for (int i = 1 ; i <= N ; i++){\n A[i] = sc.next();\n }\n sc.close();\n\n int AC = 0;\n int WA = 0;\n int TLE = 0;\n int RE = 0;\n\n for(int i = 1 ; i<= N ; i++){\n if(A[i].equals(\"AC\")){\n AC++;\n }\n else if(A[i].equals(\"WA\")){\n WA++;\n }\n else if(A[i].equals(\"TLE\")){\n TLE++;\n }\n else if(A[i].equals(\"RE\")){\n RE++;\n }\n }\n System.out.println(\"AC x \" + AC);\n System.out.println(\"WA x \" + WA);\n System.out.println(\"TLE x \" + TLE);\n System.out.println(\"RE x \" + RE);\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String[] A = new String[N+1];",
"A",
"new String[N+1]",
"N+1",
"N",
"1",
"for (int i = 1 ; i <= N ; i++){\n A[i] = sc.next();\n }",
"int i = 1 ;",
"int i = 1 ;",
"i",
"1",
"i <= N",
"i",
"N",
"i++",
"i++",
"i",
"{\n A[i] = sc.next();\n }",
"{\n A[i] = sc.next();\n }",
"A[i] = sc.next()",
"A[i]",
"A",
"i",
"sc.next()",
"sc.next",
"sc",
"sc.close()",
"sc.close",
"sc",
"int AC = 0;",
"AC",
"0",
"int WA = 0;",
"WA",
"0",
"int TLE = 0;",
"TLE",
"0",
"int RE = 0;",
"RE",
"0",
"for(int i = 1 ; i<= N ; i++){\n if(A[i].equals(\"AC\")){\n AC++;\n }\n else if(A[i].equals(\"WA\")){\n WA++;\n }\n else if(A[i].equals(\"TLE\")){\n TLE++;\n }\n else if(A[i].equals(\"RE\")){\n RE++;\n }\n }",
"int i = 1 ;",
"int i = 1 ;",
"i",
"1",
"i<= N",
"i",
"N",
"i++",
"i++",
"i",
"{\n if(A[i].equals(\"AC\")){\n AC++;\n }\n else if(A[i].equals(\"WA\")){\n WA++;\n }\n else if(A[i].equals(\"TLE\")){\n TLE++;\n }\n else if(A[i].equals(\"RE\")){\n RE++;\n }\n }",
"{\n if(A[i].equals(\"AC\")){\n AC++;\n }\n else if(A[i].equals(\"WA\")){\n WA++;\n }\n else if(A[i].equals(\"TLE\")){\n TLE++;\n }\n else if(A[i].equals(\"RE\")){\n RE++;\n }\n }",
"if(A[i].equals(\"AC\")){\n AC++;\n }\n else if(A[i].equals(\"WA\")){\n WA++;\n }\n else if(A[i].equals(\"TLE\")){\n TLE++;\n }\n else if(A[i].equals(\"RE\")){\n RE++;\n }",
"A[i].equals(\"AC\")",
"A[i].equals",
"A[i]",
"A",
"i",
"\"AC\"",
"{\n AC++;\n }",
"AC++",
"AC",
"if(A[i].equals(\"WA\")){\n WA++;\n }\n else if(A[i].equals(\"TLE\")){\n TLE++;\n }\n else if(A[i].equals(\"RE\")){\n RE++;\n }",
"A[i].equals(\"WA\")",
"A[i].equals",
"A[i]",
"A",
"i",
"\"WA\"",
"{\n WA++;\n }",
"WA++",
"WA",
"if(A[i].equals(\"TLE\")){\n TLE++;\n }\n else if(A[i].equals(\"RE\")){\n RE++;\n }",
"A[i].equals(\"TLE\")",
"A[i].equals",
"A[i]",
"A",
"i",
"\"TLE\"",
"{\n TLE++;\n }",
"TLE++",
"TLE",
"if(A[i].equals(\"RE\")){\n RE++;\n }",
"A[i].equals(\"RE\")",
"A[i].equals",
"A[i]",
"A",
"i",
"\"RE\"",
"{\n RE++;\n }",
"RE++",
"RE",
"System.out.println(\"AC x \" + AC)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + AC",
"\"AC x \"",
"AC",
"System.out.println(\"WA x \" + WA)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + WA",
"\"WA x \"",
"WA",
"System.out.println(\"TLE x \" + TLE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + TLE",
"\"TLE x \"",
"TLE",
"System.out.println(\"RE x \" + RE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + RE",
"\"RE x \"",
"RE",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String[] A = new String[N+1];\n for (int i = 1 ; i <= N ; i++){\n A[i] = sc.next();\n }\n sc.close();\n\n int AC = 0;\n int WA = 0;\n int TLE = 0;\n int RE = 0;\n\n for(int i = 1 ; i<= N ; i++){\n if(A[i].equals(\"AC\")){\n AC++;\n }\n else if(A[i].equals(\"WA\")){\n WA++;\n }\n else if(A[i].equals(\"TLE\")){\n TLE++;\n }\n else if(A[i].equals(\"RE\")){\n RE++;\n }\n }\n System.out.println(\"AC x \" + AC);\n System.out.println(\"WA x \" + WA);\n System.out.println(\"TLE x \" + TLE);\n System.out.println(\"RE x \" + RE);\n\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String[] A = new String[N+1];\n for (int i = 1 ; i <= N ; i++){\n A[i] = sc.next();\n }\n sc.close();\n\n int AC = 0;\n int WA = 0;\n int TLE = 0;\n int RE = 0;\n\n for(int i = 1 ; i<= N ; i++){\n if(A[i].equals(\"AC\")){\n AC++;\n }\n else if(A[i].equals(\"WA\")){\n WA++;\n }\n else if(A[i].equals(\"TLE\")){\n TLE++;\n }\n else if(A[i].equals(\"RE\")){\n RE++;\n }\n }\n System.out.println(\"AC x \" + AC);\n System.out.println(\"WA x \" + WA);\n System.out.println(\"TLE x \" + TLE);\n System.out.println(\"RE x \" + RE);\n\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
String[] A = new String[N+1];
for (int i = 1 ; i <= N ; i++){
A[i] = sc.next();
}
sc.close();
int AC = 0;
int WA = 0;
int TLE = 0;
int RE = 0;
for(int i = 1 ; i<= N ; i++){
if(A[i].equals("AC")){
AC++;
}
else if(A[i].equals("WA")){
WA++;
}
else if(A[i].equals("TLE")){
TLE++;
}
else if(A[i].equals("RE")){
RE++;
}
}
System.out.println("AC x " + AC);
System.out.println("WA x " + WA);
System.out.println("TLE x " + TLE);
System.out.println("RE x " + RE);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
4,
18,
18,
13,
13,
17,
13,
4,
18,
18,
13,
13,
17,
13,
4,
18,
18,
13,
13,
17,
13,
4,
18,
18,
13,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
106,
5
],
[
106,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
52,
53
],
[
41,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
54,
59
],
[
59,
60
],
[
41,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
61,
66
],
[
66,
67
],
[
41,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
68,
73
],
[
73,
74
],
[
8,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
75,
81
],
[
8,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
82,
88
],
[
8,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
89,
95
],
[
8,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
96,
102
],
[
6,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint ac = 0, wa = 0, tle = 0, re = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString s = sc.next();\n\t\t\tif (s.equals(\"AC\")) ac++;\n\t\t\tif (s.equals(\"WA\")) wa++;\n\t\t\tif (s.equals(\"TLE\")) tle++;\n\t\t\tif (s.equals(\"RE\")) re++;\n\t\t}\n\t\tSystem.out.format(\"AC x %d\\n\", ac);\n\t\tSystem.out.format(\"WA x %d\\n\", wa);\n\t\tSystem.out.format(\"TLE x %d\\n\", tle);\n\t\tSystem.out.format(\"RE x %d\\n\", re);\n\t}\n\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint ac = 0, wa = 0, tle = 0, re = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString s = sc.next();\n\t\t\tif (s.equals(\"AC\")) ac++;\n\t\t\tif (s.equals(\"WA\")) wa++;\n\t\t\tif (s.equals(\"TLE\")) tle++;\n\t\t\tif (s.equals(\"RE\")) re++;\n\t\t}\n\t\tSystem.out.format(\"AC x %d\\n\", ac);\n\t\tSystem.out.format(\"WA x %d\\n\", wa);\n\t\tSystem.out.format(\"TLE x %d\\n\", tle);\n\t\tSystem.out.format(\"RE x %d\\n\", re);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint ac = 0, wa = 0, tle = 0, re = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString s = sc.next();\n\t\t\tif (s.equals(\"AC\")) ac++;\n\t\t\tif (s.equals(\"WA\")) wa++;\n\t\t\tif (s.equals(\"TLE\")) tle++;\n\t\t\tif (s.equals(\"RE\")) re++;\n\t\t}\n\t\tSystem.out.format(\"AC x %d\\n\", ac);\n\t\tSystem.out.format(\"WA x %d\\n\", wa);\n\t\tSystem.out.format(\"TLE x %d\\n\", tle);\n\t\tSystem.out.format(\"RE x %d\\n\", re);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint ac = 0, wa = 0, tle = 0, re = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString s = sc.next();\n\t\t\tif (s.equals(\"AC\")) ac++;\n\t\t\tif (s.equals(\"WA\")) wa++;\n\t\t\tif (s.equals(\"TLE\")) tle++;\n\t\t\tif (s.equals(\"RE\")) re++;\n\t\t}\n\t\tSystem.out.format(\"AC x %d\\n\", ac);\n\t\tSystem.out.format(\"WA x %d\\n\", wa);\n\t\tSystem.out.format(\"TLE x %d\\n\", tle);\n\t\tSystem.out.format(\"RE x %d\\n\", re);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ac = 0",
"ac",
"0",
"wa = 0",
"wa",
"0",
"tle = 0",
"tle",
"0",
"re = 0;",
"re",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\tString s = sc.next();\n\t\t\tif (s.equals(\"AC\")) ac++;\n\t\t\tif (s.equals(\"WA\")) wa++;\n\t\t\tif (s.equals(\"TLE\")) tle++;\n\t\t\tif (s.equals(\"RE\")) re++;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString s = sc.next();\n\t\t\tif (s.equals(\"AC\")) ac++;\n\t\t\tif (s.equals(\"WA\")) wa++;\n\t\t\tif (s.equals(\"TLE\")) tle++;\n\t\t\tif (s.equals(\"RE\")) re++;\n\t\t}",
"{\n\t\t\tString s = sc.next();\n\t\t\tif (s.equals(\"AC\")) ac++;\n\t\t\tif (s.equals(\"WA\")) wa++;\n\t\t\tif (s.equals(\"TLE\")) tle++;\n\t\t\tif (s.equals(\"RE\")) re++;\n\t\t}",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"if (s.equals(\"AC\")) ac++;",
"s.equals(\"AC\")",
"s.equals",
"s",
"\"AC\"",
"ac++",
"ac",
"if (s.equals(\"WA\")) wa++;",
"s.equals(\"WA\")",
"s.equals",
"s",
"\"WA\"",
"wa++",
"wa",
"if (s.equals(\"TLE\")) tle++;",
"s.equals(\"TLE\")",
"s.equals",
"s",
"\"TLE\"",
"tle++",
"tle",
"if (s.equals(\"RE\")) re++;",
"s.equals(\"RE\")",
"s.equals",
"s",
"\"RE\"",
"re++",
"re",
"System.out.format(\"AC x %d\\n\", ac)",
"System.out.format",
"System.out",
"System",
"System.out",
"\"AC x %d\\n\"",
"ac",
"System.out.format(\"WA x %d\\n\", wa)",
"System.out.format",
"System.out",
"System",
"System.out",
"\"WA x %d\\n\"",
"wa",
"System.out.format(\"TLE x %d\\n\", tle)",
"System.out.format",
"System.out",
"System",
"System.out",
"\"TLE x %d\\n\"",
"tle",
"System.out.format(\"RE x %d\\n\", re)",
"System.out.format",
"System.out",
"System",
"System.out",
"\"RE x %d\\n\"",
"re",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint ac = 0, wa = 0, tle = 0, re = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString s = sc.next();\n\t\t\tif (s.equals(\"AC\")) ac++;\n\t\t\tif (s.equals(\"WA\")) wa++;\n\t\t\tif (s.equals(\"TLE\")) tle++;\n\t\t\tif (s.equals(\"RE\")) re++;\n\t\t}\n\t\tSystem.out.format(\"AC x %d\\n\", ac);\n\t\tSystem.out.format(\"WA x %d\\n\", wa);\n\t\tSystem.out.format(\"TLE x %d\\n\", tle);\n\t\tSystem.out.format(\"RE x %d\\n\", re);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint ac = 0, wa = 0, tle = 0, re = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString s = sc.next();\n\t\t\tif (s.equals(\"AC\")) ac++;\n\t\t\tif (s.equals(\"WA\")) wa++;\n\t\t\tif (s.equals(\"TLE\")) tle++;\n\t\t\tif (s.equals(\"RE\")) re++;\n\t\t}\n\t\tSystem.out.format(\"AC x %d\\n\", ac);\n\t\tSystem.out.format(\"WA x %d\\n\", wa);\n\t\tSystem.out.format(\"TLE x %d\\n\", tle);\n\t\tSystem.out.format(\"RE x %d\\n\", re);\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int ac = 0, wa = 0, tle = 0, re = 0;
for (int i = 0; i < n; i++) {
String s = sc.next();
if (s.equals("AC")) ac++;
if (s.equals("WA")) wa++;
if (s.equals("TLE")) tle++;
if (s.equals("RE")) re++;
}
System.out.format("AC x %d\n", ac);
System.out.format("WA x %d\n", wa);
System.out.format("TLE x %d\n", tle);
System.out.format("RE x %d\n", re);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
2,
4,
18,
13,
13,
17,
17,
4,
18,
18,
13,
13,
2,
17,
8,
2,
4,
18,
13,
17,
17,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
8,
2,
4,
18,
13,
17,
17,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
8,
2,
4,
18,
13,
17,
17,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
8,
2,
4,
18,
13,
17,
17,
17,
4,
18,
13,
17,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
23,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
28,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
39,
43
],
[
38,
44
],
[
11,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
53,
58
],
[
52,
59
],
[
52,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
11,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
72,
77
],
[
71,
78
],
[
71,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
11,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
91,
96
],
[
90,
97
],
[
90,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
11,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
110,
115
],
[
109,
116
],
[
109,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
9,
121
],
[
121,
122
],
[
7,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
123,
127
],
[
127,
128
],
[
123,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
123,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
138,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
148,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
137,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
123,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
167,
170
],
[
170,
171
],
[
123,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
176,
179
],
[
179,
180
],
[
123,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
185,
188
],
[
188,
189
],
[
123,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
192,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
196,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
207,
208
],
[
192,
209
],
[
209,
210
]
]
| [
"import java.util.*;\nimport java.io.*;\n\nclass Main {\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n int t = sc.nextInt();\n HashMap<String, Integer> hmap = new HashMap<>();\n while (t-- > 0) {\n String verdict = sc.next();\n hmap.put(verdict, hmap.getOrDefault(verdict, 0) + 1);\n }\n System.out.println(\"AC x \" + (hmap.get(\"AC\") == null ? 0 : hmap.get(\"AC\")));\n System.out.println(\"WA x \" + (hmap.get(\"WA\") == null ? 0 : hmap.get(\"WA\")));\n System.out.println(\"TLE x \" + (hmap.get(\"TLE\") == null ? 0 : hmap.get(\"TLE\")));\n System.out.println(\"RE x \" + (hmap.get(\"RE\") == null ? 0 : hmap.get(\"RE\")));\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"class Main {\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n int t = sc.nextInt();\n HashMap<String, Integer> hmap = new HashMap<>();\n while (t-- > 0) {\n String verdict = sc.next();\n hmap.put(verdict, hmap.getOrDefault(verdict, 0) + 1);\n }\n System.out.println(\"AC x \" + (hmap.get(\"AC\") == null ? 0 : hmap.get(\"AC\")));\n System.out.println(\"WA x \" + (hmap.get(\"WA\") == null ? 0 : hmap.get(\"WA\")));\n System.out.println(\"TLE x \" + (hmap.get(\"TLE\") == null ? 0 : hmap.get(\"TLE\")));\n System.out.println(\"RE x \" + (hmap.get(\"RE\") == null ? 0 : hmap.get(\"RE\")));\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n FastReader sc = new FastReader();\n int t = sc.nextInt();\n HashMap<String, Integer> hmap = new HashMap<>();\n while (t-- > 0) {\n String verdict = sc.next();\n hmap.put(verdict, hmap.getOrDefault(verdict, 0) + 1);\n }\n System.out.println(\"AC x \" + (hmap.get(\"AC\") == null ? 0 : hmap.get(\"AC\")));\n System.out.println(\"WA x \" + (hmap.get(\"WA\") == null ? 0 : hmap.get(\"WA\")));\n System.out.println(\"TLE x \" + (hmap.get(\"TLE\") == null ? 0 : hmap.get(\"TLE\")));\n System.out.println(\"RE x \" + (hmap.get(\"RE\") == null ? 0 : hmap.get(\"RE\")));\n }",
"main",
"{\n FastReader sc = new FastReader();\n int t = sc.nextInt();\n HashMap<String, Integer> hmap = new HashMap<>();\n while (t-- > 0) {\n String verdict = sc.next();\n hmap.put(verdict, hmap.getOrDefault(verdict, 0) + 1);\n }\n System.out.println(\"AC x \" + (hmap.get(\"AC\") == null ? 0 : hmap.get(\"AC\")));\n System.out.println(\"WA x \" + (hmap.get(\"WA\") == null ? 0 : hmap.get(\"WA\")));\n System.out.println(\"TLE x \" + (hmap.get(\"TLE\") == null ? 0 : hmap.get(\"TLE\")));\n System.out.println(\"RE x \" + (hmap.get(\"RE\") == null ? 0 : hmap.get(\"RE\")));\n }",
"FastReader sc = new FastReader();",
"sc",
"new FastReader()",
"int t = sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"HashMap<String, Integer> hmap = new HashMap<>();",
"hmap",
"new HashMap<>()",
"while (t-- > 0) {\n String verdict = sc.next();\n hmap.put(verdict, hmap.getOrDefault(verdict, 0) + 1);\n }",
"t-- > 0",
"t--",
"t",
"0",
"{\n String verdict = sc.next();\n hmap.put(verdict, hmap.getOrDefault(verdict, 0) + 1);\n }",
"String verdict = sc.next();",
"verdict",
"sc.next()",
"sc.next",
"sc",
"hmap.put(verdict, hmap.getOrDefault(verdict, 0) + 1)",
"hmap.put",
"hmap",
"verdict",
"hmap.getOrDefault(verdict, 0) + 1",
"hmap.getOrDefault(verdict, 0)",
"hmap.getOrDefault",
"hmap",
"verdict",
"0",
"1",
"System.out.println(\"AC x \" + (hmap.get(\"AC\") == null ? 0 : hmap.get(\"AC\")))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + (hmap.get(\"AC\") == null ? 0 : hmap.get(\"AC\"))",
"\"AC x \"",
"(hmap.get(\"AC\") == null ? 0 : hmap.get(\"AC\"))",
"hmap.get(\"AC\") == null",
"hmap.get(\"AC\")",
"hmap.get",
"hmap",
"\"AC\"",
"null",
"0",
"hmap.get(\"AC\")",
"hmap.get",
"hmap",
"\"AC\"",
"System.out.println(\"WA x \" + (hmap.get(\"WA\") == null ? 0 : hmap.get(\"WA\")))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + (hmap.get(\"WA\") == null ? 0 : hmap.get(\"WA\"))",
"\"WA x \"",
"(hmap.get(\"WA\") == null ? 0 : hmap.get(\"WA\"))",
"hmap.get(\"WA\") == null",
"hmap.get(\"WA\")",
"hmap.get",
"hmap",
"\"WA\"",
"null",
"0",
"hmap.get(\"WA\")",
"hmap.get",
"hmap",
"\"WA\"",
"System.out.println(\"TLE x \" + (hmap.get(\"TLE\") == null ? 0 : hmap.get(\"TLE\")))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + (hmap.get(\"TLE\") == null ? 0 : hmap.get(\"TLE\"))",
"\"TLE x \"",
"(hmap.get(\"TLE\") == null ? 0 : hmap.get(\"TLE\"))",
"hmap.get(\"TLE\") == null",
"hmap.get(\"TLE\")",
"hmap.get",
"hmap",
"\"TLE\"",
"null",
"0",
"hmap.get(\"TLE\")",
"hmap.get",
"hmap",
"\"TLE\"",
"System.out.println(\"RE x \" + (hmap.get(\"RE\") == null ? 0 : hmap.get(\"RE\")))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + (hmap.get(\"RE\") == null ? 0 : hmap.get(\"RE\"))",
"\"RE x \"",
"(hmap.get(\"RE\") == null ? 0 : hmap.get(\"RE\"))",
"hmap.get(\"RE\") == null",
"hmap.get(\"RE\")",
"hmap.get",
"hmap",
"\"RE\"",
"null",
"0",
"hmap.get(\"RE\")",
"hmap.get",
"hmap",
"\"RE\"",
"String[] args",
"args",
"static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"FastReader",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str"
]
| import java.util.*;
import java.io.*;
class Main {
public static void main(String[] args) {
FastReader sc = new FastReader();
int t = sc.nextInt();
HashMap<String, Integer> hmap = new HashMap<>();
while (t-- > 0) {
String verdict = sc.next();
hmap.put(verdict, hmap.getOrDefault(verdict, 0) + 1);
}
System.out.println("AC x " + (hmap.get("AC") == null ? 0 : hmap.get("AC")));
System.out.println("WA x " + (hmap.get("WA") == null ? 0 : hmap.get("WA")));
System.out.println("TLE x " + (hmap.get("TLE") == null ? 0 : hmap.get("TLE")));
System.out.println("RE x " + (hmap.get("RE") == null ? 0 : hmap.get("RE")));
}
static class FastReader {
BufferedReader br;
StringTokenizer st;
public FastReader() {
br = new BufferedReader(new InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
35,
4,
18,
13,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
108,
5
],
[
108,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
45,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
45,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
45,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
45,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
8,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
86,
87
],
[
86,
88
],
[
8,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
8,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
6,
105
],
[
105,
106
],
[
0,
107
],
[
107,
108
],
[
107,
109
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint acCnt = 0;\n\t\tint waCnt = 0;\n\t\tint tleCnt = 0;\n\t\tint reCnt = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsc.nextLine();\n\t\t\tswitch (sc.next()) {\n\t\t\t\tcase \"AC\" :\n\t\t\t\t\tacCnt++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\" :\n\t\t\t\t\twaCnt++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\" :\n\t\t\t\t\ttleCnt++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\" :\n\t\t\t\t\treCnt++;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + acCnt);\n\t\tSystem.out.println(\"WA x \" + waCnt);\n\t\tSystem.out.println(\"TLE x \" + tleCnt);\n\t\tSystem.out.println(\"RE x \" + reCnt);\n\t\t\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint acCnt = 0;\n\t\tint waCnt = 0;\n\t\tint tleCnt = 0;\n\t\tint reCnt = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsc.nextLine();\n\t\t\tswitch (sc.next()) {\n\t\t\t\tcase \"AC\" :\n\t\t\t\t\tacCnt++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\" :\n\t\t\t\t\twaCnt++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\" :\n\t\t\t\t\ttleCnt++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\" :\n\t\t\t\t\treCnt++;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + acCnt);\n\t\tSystem.out.println(\"WA x \" + waCnt);\n\t\tSystem.out.println(\"TLE x \" + tleCnt);\n\t\tSystem.out.println(\"RE x \" + reCnt);\n\t\t\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint acCnt = 0;\n\t\tint waCnt = 0;\n\t\tint tleCnt = 0;\n\t\tint reCnt = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsc.nextLine();\n\t\t\tswitch (sc.next()) {\n\t\t\t\tcase \"AC\" :\n\t\t\t\t\tacCnt++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\" :\n\t\t\t\t\twaCnt++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\" :\n\t\t\t\t\ttleCnt++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\" :\n\t\t\t\t\treCnt++;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + acCnt);\n\t\tSystem.out.println(\"WA x \" + waCnt);\n\t\tSystem.out.println(\"TLE x \" + tleCnt);\n\t\tSystem.out.println(\"RE x \" + reCnt);\n\t\t\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint acCnt = 0;\n\t\tint waCnt = 0;\n\t\tint tleCnt = 0;\n\t\tint reCnt = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsc.nextLine();\n\t\t\tswitch (sc.next()) {\n\t\t\t\tcase \"AC\" :\n\t\t\t\t\tacCnt++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\" :\n\t\t\t\t\twaCnt++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\" :\n\t\t\t\t\ttleCnt++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\" :\n\t\t\t\t\treCnt++;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + acCnt);\n\t\tSystem.out.println(\"WA x \" + waCnt);\n\t\tSystem.out.println(\"TLE x \" + tleCnt);\n\t\tSystem.out.println(\"RE x \" + reCnt);\n\t\t\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int acCnt = 0;",
"acCnt",
"0",
"int waCnt = 0;",
"waCnt",
"0",
"int tleCnt = 0;",
"tleCnt",
"0",
"int reCnt = 0;",
"reCnt",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\tsc.nextLine();\n\t\t\tswitch (sc.next()) {\n\t\t\t\tcase \"AC\" :\n\t\t\t\t\tacCnt++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\" :\n\t\t\t\t\twaCnt++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\" :\n\t\t\t\t\ttleCnt++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\" :\n\t\t\t\t\treCnt++;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tsc.nextLine();\n\t\t\tswitch (sc.next()) {\n\t\t\t\tcase \"AC\" :\n\t\t\t\t\tacCnt++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\" :\n\t\t\t\t\twaCnt++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\" :\n\t\t\t\t\ttleCnt++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\" :\n\t\t\t\t\treCnt++;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tsc.nextLine();\n\t\t\tswitch (sc.next()) {\n\t\t\t\tcase \"AC\" :\n\t\t\t\t\tacCnt++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\" :\n\t\t\t\t\twaCnt++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\" :\n\t\t\t\t\ttleCnt++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\" :\n\t\t\t\t\treCnt++;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"sc.nextLine()",
"sc.nextLine",
"sc",
"switch (sc.next()) {\n\t\t\t\tcase \"AC\" :\n\t\t\t\t\tacCnt++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\" :\n\t\t\t\t\twaCnt++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\" :\n\t\t\t\t\ttleCnt++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\" :\n\t\t\t\t\treCnt++;\n\t\t\t\t\tbreak;\n\t\t\t}",
"sc.next()",
"sc.next",
"sc",
"case \"AC\" :",
"\"AC\"",
"case \"AC\" :",
"acCnt++",
"acCnt",
"break;",
"case \"WA\" :",
"\"WA\"",
"case \"WA\" :",
"waCnt++",
"waCnt",
"break;",
"case \"TLE\" :",
"\"TLE\"",
"case \"TLE\" :",
"tleCnt++",
"tleCnt",
"break;",
"case \"RE\" :",
"\"RE\"",
"case \"RE\" :",
"reCnt++",
"reCnt",
"break;",
"System.out.println(\"AC x \" + acCnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + acCnt",
"\"AC x \"",
"acCnt",
"System.out.println(\"WA x \" + waCnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + waCnt",
"\"WA x \"",
"waCnt",
"System.out.println(\"TLE x \" + tleCnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + tleCnt",
"\"TLE x \"",
"tleCnt",
"System.out.println(\"RE x \" + reCnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + reCnt",
"\"RE x \"",
"reCnt",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint acCnt = 0;\n\t\tint waCnt = 0;\n\t\tint tleCnt = 0;\n\t\tint reCnt = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsc.nextLine();\n\t\t\tswitch (sc.next()) {\n\t\t\t\tcase \"AC\" :\n\t\t\t\t\tacCnt++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\" :\n\t\t\t\t\twaCnt++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\" :\n\t\t\t\t\ttleCnt++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\" :\n\t\t\t\t\treCnt++;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + acCnt);\n\t\tSystem.out.println(\"WA x \" + waCnt);\n\t\tSystem.out.println(\"TLE x \" + tleCnt);\n\t\tSystem.out.println(\"RE x \" + reCnt);\n\t\t\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint acCnt = 0;\n\t\tint waCnt = 0;\n\t\tint tleCnt = 0;\n\t\tint reCnt = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsc.nextLine();\n\t\t\tswitch (sc.next()) {\n\t\t\t\tcase \"AC\" :\n\t\t\t\t\tacCnt++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\" :\n\t\t\t\t\twaCnt++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\" :\n\t\t\t\t\ttleCnt++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\" :\n\t\t\t\t\treCnt++;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + acCnt);\n\t\tSystem.out.println(\"WA x \" + waCnt);\n\t\tSystem.out.println(\"TLE x \" + tleCnt);\n\t\tSystem.out.println(\"RE x \" + reCnt);\n\t\t\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int acCnt = 0;
int waCnt = 0;
int tleCnt = 0;
int reCnt = 0;
for (int i = 0; i < n; i++) {
sc.nextLine();
switch (sc.next()) {
case "AC" :
acCnt++;
break;
case "WA" :
waCnt++;
break;
case "TLE" :
tleCnt++;
break;
case "RE" :
reCnt++;
break;
}
}
System.out.println("AC x " + acCnt);
System.out.println("WA x " + waCnt);
System.out.println("TLE x " + tleCnt);
System.out.println("RE x " + reCnt);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
35,
13,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
17,
12,
13,
30,
0,
13,
20,
17,
0,
13,
17,
0,
13,
20,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
14,
2,
13,
18,
13,
13,
29,
18,
13,
40,
13,
41,
13,
4,
18,
13,
42,
4,
18,
13,
17,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
17,
0,
13,
17,
29,
18,
13,
40,
13,
29,
17,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
29,
4,
18,
13,
4,
13,
29,
40,
17,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
29,
4,
18,
13,
4,
13,
29,
40,
17,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
29,
4,
18,
13,
4,
13,
29,
40,
17,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
268,
11
],
[
268,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
19,
20
],
[
18,
21
],
[
12,
22
],
[
22,
23
],
[
268,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
35,
36
],
[
36,
37
],
[
26,
38
],
[
38,
39
],
[
38,
40
],
[
26,
41
],
[
41,
42
],
[
41,
43
],
[
26,
44
],
[
44,
45
],
[
44,
46
],
[
26,
47
],
[
47,
48
],
[
47,
49
],
[
26,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
50,
61
],
[
62,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
62,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
68,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
68,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
68,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
26,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
99,
100
],
[
99,
101
],
[
26,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
26,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
26,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
24,
126
],
[
126,
127
],
[
268,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
128,
132
],
[
132,
133
],
[
128,
134
],
[
134,
135
],
[
128,
136
],
[
136,
137
],
[
136,
138
],
[
128,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
146
],
[
146,
147
],
[
146,
148
],
[
141,
149
],
[
149,
150
],
[
149,
151
],
[
128,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
155,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
166,
168
],
[
163,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
162,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
162,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
180,
183
],
[
179,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
188,
189
],
[
162,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
193,
194
],
[
192,
195
],
[
192,
196
],
[
162,
197
],
[
197,
198
],
[
197,
199
],
[
162,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
203,
204
],
[
154,
205
],
[
205,
206
],
[
128,
207
],
[
207,
208
],
[
207,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
210,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
219,
222
],
[
222,
223
],
[
209,
224
],
[
224,
225
],
[
225,
226
],
[
128,
227
],
[
227,
228
],
[
227,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
231,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
230,
237
],
[
237,
238
],
[
238,
239
],
[
239,
240
],
[
240,
241
],
[
239,
242
],
[
242,
243
],
[
229,
244
],
[
244,
245
],
[
245,
246
],
[
128,
247
],
[
247,
248
],
[
247,
249
],
[
249,
250
],
[
250,
251
],
[
251,
252
],
[
251,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
250,
257
],
[
257,
258
],
[
258,
259
],
[
259,
260
],
[
260,
261
],
[
259,
262
],
[
262,
263
],
[
249,
264
],
[
264,
265
],
[
265,
266
],
[
0,
267
],
[
267,
268
],
[
267,
269
]
]
| [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\n\n\npublic class Main {\n public static void main(String[] args) {\n Main main = new Main();\n main.solve(args);\n }\n\n public void solve(String[] args) {\n MyScanner scanner = new MyScanner();\n\n // ビジネスロジックここから\n int n = Integer.parseInt(scanner.next());\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n \n for(int i =0; i < n; i++) {\n \tString s = scanner.next();\n \t\n \tswitch(s) {\n \tcase \"AC\":\n \t\tac++;\n \t\tbreak;\n \tcase \"WA\":\n \t\twa++;\n \t\tbreak;\n \tcase \"TLE\":\n \t\ttle++;\n \t\tbreak;\n \tcase \"RE\":\n \t\tre++;\n \t\tbreak;\n \t}\n }\n \n\t\tSystem.out.println(\"AC x \" + ac);\n\t\tSystem.out.println(\"WA x \" + wa);\n\t\tSystem.out.println(\"TLE x \" + tle);\n\t\tSystem.out.println(\"RE x \" + re);\n // ビジネスロジックここまで\n\n }\n\n private class MyScanner {\n String[] s;\n int i;\n BufferedReader br;\n String reg = \" \";\n MyScanner () {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n public String next() {\n try {\n if (i < s.length) return s[i++];\n String line = br.readLine();\n while (line.equals(\"\")) {line = br.readLine();}\n s = line.split(reg, 0);\n i = 0;return s[i++];\n } catch (Exception e) {e.printStackTrace();}\n return null;\n }\n public int nextInt() {\n try {return Integer.parseInt(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }\n public double nextDouble() {\n try {return Double.parseDouble(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }\n public long nextLong() {\n try {return Long.parseLong(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.Arrays;",
"Arrays",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Main main = new Main();\n main.solve(args);\n }\n\n public void solve(String[] args) {\n MyScanner scanner = new MyScanner();\n\n // ビジネスロジックここから\n int n = Integer.parseInt(scanner.next());\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n \n for(int i =0; i < n; i++) {\n \tString s = scanner.next();\n \t\n \tswitch(s) {\n \tcase \"AC\":\n \t\tac++;\n \t\tbreak;\n \tcase \"WA\":\n \t\twa++;\n \t\tbreak;\n \tcase \"TLE\":\n \t\ttle++;\n \t\tbreak;\n \tcase \"RE\":\n \t\tre++;\n \t\tbreak;\n \t}\n }\n \n\t\tSystem.out.println(\"AC x \" + ac);\n\t\tSystem.out.println(\"WA x \" + wa);\n\t\tSystem.out.println(\"TLE x \" + tle);\n\t\tSystem.out.println(\"RE x \" + re);\n // ビジネスロジックここまで\n\n }\n\n private class MyScanner {\n String[] s;\n int i;\n BufferedReader br;\n String reg = \" \";\n MyScanner () {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n public String next() {\n try {\n if (i < s.length) return s[i++];\n String line = br.readLine();\n while (line.equals(\"\")) {line = br.readLine();}\n s = line.split(reg, 0);\n i = 0;return s[i++];\n } catch (Exception e) {e.printStackTrace();}\n return null;\n }\n public int nextInt() {\n try {return Integer.parseInt(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }\n public double nextDouble() {\n try {return Double.parseDouble(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }\n public long nextLong() {\n try {return Long.parseLong(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Main main = new Main();\n main.solve(args);\n }",
"main",
"{\n Main main = new Main();\n main.solve(args);\n }",
"Main main = new Main();",
"main",
"new Main()",
"main.solve(args)",
"main.solve",
"main",
"args",
"String[] args",
"args",
"public void solve(String[] args) {\n MyScanner scanner = new MyScanner();\n\n // ビジネスロジックここから\n int n = Integer.parseInt(scanner.next());\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n \n for(int i =0; i < n; i++) {\n \tString s = scanner.next();\n \t\n \tswitch(s) {\n \tcase \"AC\":\n \t\tac++;\n \t\tbreak;\n \tcase \"WA\":\n \t\twa++;\n \t\tbreak;\n \tcase \"TLE\":\n \t\ttle++;\n \t\tbreak;\n \tcase \"RE\":\n \t\tre++;\n \t\tbreak;\n \t}\n }\n \n\t\tSystem.out.println(\"AC x \" + ac);\n\t\tSystem.out.println(\"WA x \" + wa);\n\t\tSystem.out.println(\"TLE x \" + tle);\n\t\tSystem.out.println(\"RE x \" + re);\n // ビジネスロジックここまで\n\n }",
"solve",
"{\n MyScanner scanner = new MyScanner();\n\n // ビジネスロジックここから\n int n = Integer.parseInt(scanner.next());\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n \n for(int i =0; i < n; i++) {\n \tString s = scanner.next();\n \t\n \tswitch(s) {\n \tcase \"AC\":\n \t\tac++;\n \t\tbreak;\n \tcase \"WA\":\n \t\twa++;\n \t\tbreak;\n \tcase \"TLE\":\n \t\ttle++;\n \t\tbreak;\n \tcase \"RE\":\n \t\tre++;\n \t\tbreak;\n \t}\n }\n \n\t\tSystem.out.println(\"AC x \" + ac);\n\t\tSystem.out.println(\"WA x \" + wa);\n\t\tSystem.out.println(\"TLE x \" + tle);\n\t\tSystem.out.println(\"RE x \" + re);\n // ビジネスロジックここまで\n\n }",
"MyScanner scanner = new MyScanner();",
"scanner",
"new MyScanner()",
"int n = Integer.parseInt(scanner.next());",
"n",
"Integer.parseInt(scanner.next())",
"Integer.parseInt",
"Integer",
"scanner.next()",
"scanner.next",
"scanner",
"int ac = 0;",
"ac",
"0",
"int wa = 0;",
"wa",
"0",
"int tle = 0;",
"tle",
"0",
"int re = 0;",
"re",
"0",
"for(int i =0; i < n; i++) {\n \tString s = scanner.next();\n \t\n \tswitch(s) {\n \tcase \"AC\":\n \t\tac++;\n \t\tbreak;\n \tcase \"WA\":\n \t\twa++;\n \t\tbreak;\n \tcase \"TLE\":\n \t\ttle++;\n \t\tbreak;\n \tcase \"RE\":\n \t\tre++;\n \t\tbreak;\n \t}\n }",
"int i =0;",
"int i =0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \tString s = scanner.next();\n \t\n \tswitch(s) {\n \tcase \"AC\":\n \t\tac++;\n \t\tbreak;\n \tcase \"WA\":\n \t\twa++;\n \t\tbreak;\n \tcase \"TLE\":\n \t\ttle++;\n \t\tbreak;\n \tcase \"RE\":\n \t\tre++;\n \t\tbreak;\n \t}\n }",
"{\n \tString s = scanner.next();\n \t\n \tswitch(s) {\n \tcase \"AC\":\n \t\tac++;\n \t\tbreak;\n \tcase \"WA\":\n \t\twa++;\n \t\tbreak;\n \tcase \"TLE\":\n \t\ttle++;\n \t\tbreak;\n \tcase \"RE\":\n \t\tre++;\n \t\tbreak;\n \t}\n }",
"String s = scanner.next();",
"s",
"scanner.next()",
"scanner.next",
"scanner",
"switch(s) {\n \tcase \"AC\":\n \t\tac++;\n \t\tbreak;\n \tcase \"WA\":\n \t\twa++;\n \t\tbreak;\n \tcase \"TLE\":\n \t\ttle++;\n \t\tbreak;\n \tcase \"RE\":\n \t\tre++;\n \t\tbreak;\n \t}",
"s",
"case \"AC\":",
"\"AC\"",
"case \"AC\":",
"ac++",
"ac",
"break;",
"case \"WA\":",
"\"WA\"",
"case \"WA\":",
"wa++",
"wa",
"break;",
"case \"TLE\":",
"\"TLE\"",
"case \"TLE\":",
"tle++",
"tle",
"break;",
"case \"RE\":",
"\"RE\"",
"case \"RE\":",
"re++",
"re",
"break;",
"System.out.println(\"AC x \" + ac)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + ac",
"\"AC x \"",
"ac",
"System.out.println(\"WA x \" + wa)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + wa",
"\"WA x \"",
"wa",
"System.out.println(\"TLE x \" + tle)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + tle",
"\"TLE x \"",
"tle",
"System.out.println(\"RE x \" + re)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + re",
"\"RE x \"",
"re",
"String[] args",
"args",
"private class MyScanner {\n String[] s;\n int i;\n BufferedReader br;\n String reg = \" \";\n MyScanner () {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n public String next() {\n try {\n if (i < s.length) return s[i++];\n String line = br.readLine();\n while (line.equals(\"\")) {line = br.readLine();}\n s = line.split(reg, 0);\n i = 0;return s[i++];\n } catch (Exception e) {e.printStackTrace();}\n return null;\n }\n public int nextInt() {\n try {return Integer.parseInt(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }\n public double nextDouble() {\n try {return Double.parseDouble(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }\n public long nextLong() {\n try {return Long.parseLong(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }\n }",
"MyScanner",
"String[] s;",
"s",
"int i;",
"i",
"BufferedReader br;",
"br",
"String reg = \" \";",
"reg",
"\" \"",
"MyScanner () {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"MyScanner",
"{\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"s = new String[0]",
"s",
"new String[0]",
"0",
"i = 0",
"i",
"0",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"public String next() {\n try {\n if (i < s.length) return s[i++];\n String line = br.readLine();\n while (line.equals(\"\")) {line = br.readLine();}\n s = line.split(reg, 0);\n i = 0;return s[i++];\n } catch (Exception e) {e.printStackTrace();}\n return null;\n }",
"next",
"{\n try {\n if (i < s.length) return s[i++];\n String line = br.readLine();\n while (line.equals(\"\")) {line = br.readLine();}\n s = line.split(reg, 0);\n i = 0;return s[i++];\n } catch (Exception e) {e.printStackTrace();}\n return null;\n }",
"try {\n if (i < s.length) return s[i++];\n String line = br.readLine();\n while (line.equals(\"\")) {line = br.readLine();}\n s = line.split(reg, 0);\n i = 0;return s[i++];\n } catch (Exception e) {e.printStackTrace();}",
"catch (Exception e) {e.printStackTrace();}",
"Exception e",
"{e.printStackTrace();}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n if (i < s.length) return s[i++];\n String line = br.readLine();\n while (line.equals(\"\")) {line = br.readLine();}\n s = line.split(reg, 0);\n i = 0;return s[i++];\n }",
"if (i < s.length) return s[i++];",
"i < s.length",
"i",
"s.length",
"s",
"s.length",
"return s[i++];",
"s[i++]",
"s",
"i++",
"i",
"String line = br.readLine();",
"line",
"br.readLine()",
"br.readLine",
"br",
"while (line.equals(\"\")) {line = br.readLine();}",
"line.equals(\"\")",
"line.equals",
"line",
"\"\"",
"{line = br.readLine();}",
"line = br.readLine()",
"line",
"br.readLine()",
"br.readLine",
"br",
"s = line.split(reg, 0)",
"s",
"line.split(reg, 0)",
"line.split",
"line",
"reg",
"0",
"i = 0",
"i",
"0",
"return s[i++];",
"s[i++]",
"s",
"i++",
"i",
"return null;",
"null",
"public int nextInt() {\n try {return Integer.parseInt(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }",
"nextInt",
"{\n try {return Integer.parseInt(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }",
"try {return Integer.parseInt(next());} catch (Exception e) {e.printStackTrace();}",
"catch (Exception e) {e.printStackTrace();}",
"Exception e",
"{e.printStackTrace();}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{return Integer.parseInt(next());}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"return -1;",
"-1",
"1",
"public double nextDouble() {\n try {return Double.parseDouble(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }",
"nextDouble",
"{\n try {return Double.parseDouble(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }",
"try {return Double.parseDouble(next());} catch (Exception e) {e.printStackTrace();}",
"catch (Exception e) {e.printStackTrace();}",
"Exception e",
"{e.printStackTrace();}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{return Double.parseDouble(next());}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"return -1;",
"-1",
"1",
"public long nextLong() {\n try {return Long.parseLong(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }",
"nextLong",
"{\n try {return Long.parseLong(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }",
"try {return Long.parseLong(next());} catch (Exception e) {e.printStackTrace();}",
"catch (Exception e) {e.printStackTrace();}",
"Exception e",
"{e.printStackTrace();}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{return Long.parseLong(next());}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"return -1;",
"-1",
"1",
"public class Main {\n public static void main(String[] args) {\n Main main = new Main();\n main.solve(args);\n }\n\n public void solve(String[] args) {\n MyScanner scanner = new MyScanner();\n\n // ビジネスロジックここから\n int n = Integer.parseInt(scanner.next());\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n \n for(int i =0; i < n; i++) {\n \tString s = scanner.next();\n \t\n \tswitch(s) {\n \tcase \"AC\":\n \t\tac++;\n \t\tbreak;\n \tcase \"WA\":\n \t\twa++;\n \t\tbreak;\n \tcase \"TLE\":\n \t\ttle++;\n \t\tbreak;\n \tcase \"RE\":\n \t\tre++;\n \t\tbreak;\n \t}\n }\n \n\t\tSystem.out.println(\"AC x \" + ac);\n\t\tSystem.out.println(\"WA x \" + wa);\n\t\tSystem.out.println(\"TLE x \" + tle);\n\t\tSystem.out.println(\"RE x \" + re);\n // ビジネスロジックここまで\n\n }\n\n private class MyScanner {\n String[] s;\n int i;\n BufferedReader br;\n String reg = \" \";\n MyScanner () {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n public String next() {\n try {\n if (i < s.length) return s[i++];\n String line = br.readLine();\n while (line.equals(\"\")) {line = br.readLine();}\n s = line.split(reg, 0);\n i = 0;return s[i++];\n } catch (Exception e) {e.printStackTrace();}\n return null;\n }\n public int nextInt() {\n try {return Integer.parseInt(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }\n public double nextDouble() {\n try {return Double.parseDouble(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }\n public long nextLong() {\n try {return Long.parseLong(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Main main = new Main();\n main.solve(args);\n }\n\n public void solve(String[] args) {\n MyScanner scanner = new MyScanner();\n\n // ビジネスロジックここから\n int n = Integer.parseInt(scanner.next());\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n \n for(int i =0; i < n; i++) {\n \tString s = scanner.next();\n \t\n \tswitch(s) {\n \tcase \"AC\":\n \t\tac++;\n \t\tbreak;\n \tcase \"WA\":\n \t\twa++;\n \t\tbreak;\n \tcase \"TLE\":\n \t\ttle++;\n \t\tbreak;\n \tcase \"RE\":\n \t\tre++;\n \t\tbreak;\n \t}\n }\n \n\t\tSystem.out.println(\"AC x \" + ac);\n\t\tSystem.out.println(\"WA x \" + wa);\n\t\tSystem.out.println(\"TLE x \" + tle);\n\t\tSystem.out.println(\"RE x \" + re);\n // ビジネスロジックここまで\n\n }\n\n private class MyScanner {\n String[] s;\n int i;\n BufferedReader br;\n String reg = \" \";\n MyScanner () {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n public String next() {\n try {\n if (i < s.length) return s[i++];\n String line = br.readLine();\n while (line.equals(\"\")) {line = br.readLine();}\n s = line.split(reg, 0);\n i = 0;return s[i++];\n } catch (Exception e) {e.printStackTrace();}\n return null;\n }\n public int nextInt() {\n try {return Integer.parseInt(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }\n public double nextDouble() {\n try {return Double.parseDouble(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }\n public long nextLong() {\n try {return Long.parseLong(next());} catch (Exception e) {e.printStackTrace();}\n return -1;\n }\n }\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
Main main = new Main();
main.solve(args);
}
public void solve(String[] args) {
MyScanner scanner = new MyScanner();
// ビジネスロジックここから
int n = Integer.parseInt(scanner.next());
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
for(int i =0; i < n; i++) {
String s = scanner.next();
switch(s) {
case "AC":
ac++;
break;
case "WA":
wa++;
break;
case "TLE":
tle++;
break;
case "RE":
re++;
break;
}
}
System.out.println("AC x " + ac);
System.out.println("WA x " + wa);
System.out.println("TLE x " + tle);
System.out.println("RE x " + re);
// ビジネスロジックここまで
}
private class MyScanner {
String[] s;
int i;
BufferedReader br;
String reg = " ";
MyScanner () {
s = new String[0];
i = 0;
br = new BufferedReader(new InputStreamReader(System.in));
}
public String next() {
try {
if (i < s.length) return s[i++];
String line = br.readLine();
while (line.equals("")) {line = br.readLine();}
s = line.split(reg, 0);
i = 0;return s[i++];
} catch (Exception e) {e.printStackTrace();}
return null;
}
public int nextInt() {
try {return Integer.parseInt(next());} catch (Exception e) {e.printStackTrace();}
return -1;
}
public double nextDouble() {
try {return Double.parseDouble(next());} catch (Exception e) {e.printStackTrace();}
return -1;
}
public long nextLong() {
try {return Long.parseLong(next());} catch (Exception e) {e.printStackTrace();}
return -1;
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
40,
13,
14,
4,
18,
13,
17,
30,
40,
13,
14,
4,
18,
13,
17,
30,
40,
13,
14,
4,
18,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
117,
8
],
[
117,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
11,
29
],
[
29,
30
],
[
29,
31
],
[
11,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
44,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
50,
55
],
[
55,
56
],
[
56,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
58,
63
],
[
63,
64
],
[
64,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
66,
71
],
[
71,
72
],
[
72,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
74,
79
],
[
79,
80
],
[
80,
81
],
[
11,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
87,
88
],
[
87,
89
],
[
11,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
11,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
103,
104
],
[
103,
105
],
[
11,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
9,
114
],
[
114,
115
],
[
0,
116
],
[
116,
117
],
[
116,
118
]
]
| [
"import java.util.*;\nimport java.lang.Math;\npublic class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int counterAC = 0;\n int counterWA = 0;\n int counterTLE = 0;\n int counterRE = 0;\n for(int i = 0; i < N; i ++){\n String S = sc.next();\n if(S.equals(\"AC\")){\n counterAC++;\n }else if(S.equals(\"WA\")){\n counterWA++;\n }else if(S.equals(\"TLE\")){\n counterTLE++;\n }else if(S.equals(\"RE\")){\n counterRE++;\n }\n }\n System.out.println(\"AC x \" + counterAC);\n System.out.println(\"WA x \" + counterWA);\n System.out.println(\"TLE x \" + counterTLE);\n System.out.println(\"RE x \" + counterRE);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.Math;",
"Math",
"java.lang",
"public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int counterAC = 0;\n int counterWA = 0;\n int counterTLE = 0;\n int counterRE = 0;\n for(int i = 0; i < N; i ++){\n String S = sc.next();\n if(S.equals(\"AC\")){\n counterAC++;\n }else if(S.equals(\"WA\")){\n counterWA++;\n }else if(S.equals(\"TLE\")){\n counterTLE++;\n }else if(S.equals(\"RE\")){\n counterRE++;\n }\n }\n System.out.println(\"AC x \" + counterAC);\n System.out.println(\"WA x \" + counterWA);\n System.out.println(\"TLE x \" + counterTLE);\n System.out.println(\"RE x \" + counterRE);\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int counterAC = 0;\n int counterWA = 0;\n int counterTLE = 0;\n int counterRE = 0;\n for(int i = 0; i < N; i ++){\n String S = sc.next();\n if(S.equals(\"AC\")){\n counterAC++;\n }else if(S.equals(\"WA\")){\n counterWA++;\n }else if(S.equals(\"TLE\")){\n counterTLE++;\n }else if(S.equals(\"RE\")){\n counterRE++;\n }\n }\n System.out.println(\"AC x \" + counterAC);\n System.out.println(\"WA x \" + counterWA);\n System.out.println(\"TLE x \" + counterTLE);\n System.out.println(\"RE x \" + counterRE);\n }",
"main",
"{\n // Your code here!\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int counterAC = 0;\n int counterWA = 0;\n int counterTLE = 0;\n int counterRE = 0;\n for(int i = 0; i < N; i ++){\n String S = sc.next();\n if(S.equals(\"AC\")){\n counterAC++;\n }else if(S.equals(\"WA\")){\n counterWA++;\n }else if(S.equals(\"TLE\")){\n counterTLE++;\n }else if(S.equals(\"RE\")){\n counterRE++;\n }\n }\n System.out.println(\"AC x \" + counterAC);\n System.out.println(\"WA x \" + counterWA);\n System.out.println(\"TLE x \" + counterTLE);\n System.out.println(\"RE x \" + counterRE);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int counterAC = 0;",
"counterAC",
"0",
"int counterWA = 0;",
"counterWA",
"0",
"int counterTLE = 0;",
"counterTLE",
"0",
"int counterRE = 0;",
"counterRE",
"0",
"for(int i = 0; i < N; i ++){\n String S = sc.next();\n if(S.equals(\"AC\")){\n counterAC++;\n }else if(S.equals(\"WA\")){\n counterWA++;\n }else if(S.equals(\"TLE\")){\n counterTLE++;\n }else if(S.equals(\"RE\")){\n counterRE++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i ++",
"i ++",
"i",
"{\n String S = sc.next();\n if(S.equals(\"AC\")){\n counterAC++;\n }else if(S.equals(\"WA\")){\n counterWA++;\n }else if(S.equals(\"TLE\")){\n counterTLE++;\n }else if(S.equals(\"RE\")){\n counterRE++;\n }\n }",
"{\n String S = sc.next();\n if(S.equals(\"AC\")){\n counterAC++;\n }else if(S.equals(\"WA\")){\n counterWA++;\n }else if(S.equals(\"TLE\")){\n counterTLE++;\n }else if(S.equals(\"RE\")){\n counterRE++;\n }\n }",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"if(S.equals(\"AC\")){\n counterAC++;\n }else if(S.equals(\"WA\")){\n counterWA++;\n }else if(S.equals(\"TLE\")){\n counterTLE++;\n }else if(S.equals(\"RE\")){\n counterRE++;\n }",
"S.equals(\"AC\")",
"S.equals",
"S",
"\"AC\"",
"{\n counterAC++;\n }",
"counterAC++",
"counterAC",
"if(S.equals(\"WA\")){\n counterWA++;\n }else if(S.equals(\"TLE\")){\n counterTLE++;\n }else if(S.equals(\"RE\")){\n counterRE++;\n }",
"S.equals(\"WA\")",
"S.equals",
"S",
"\"WA\"",
"{\n counterWA++;\n }",
"counterWA++",
"counterWA",
"if(S.equals(\"TLE\")){\n counterTLE++;\n }else if(S.equals(\"RE\")){\n counterRE++;\n }",
"S.equals(\"TLE\")",
"S.equals",
"S",
"\"TLE\"",
"{\n counterTLE++;\n }",
"counterTLE++",
"counterTLE",
"if(S.equals(\"RE\")){\n counterRE++;\n }",
"S.equals(\"RE\")",
"S.equals",
"S",
"\"RE\"",
"{\n counterRE++;\n }",
"counterRE++",
"counterRE",
"System.out.println(\"AC x \" + counterAC)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + counterAC",
"\"AC x \"",
"counterAC",
"System.out.println(\"WA x \" + counterWA)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + counterWA",
"\"WA x \"",
"counterWA",
"System.out.println(\"TLE x \" + counterTLE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + counterTLE",
"\"TLE x \"",
"counterTLE",
"System.out.println(\"RE x \" + counterRE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + counterRE",
"\"RE x \"",
"counterRE",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int counterAC = 0;\n int counterWA = 0;\n int counterTLE = 0;\n int counterRE = 0;\n for(int i = 0; i < N; i ++){\n String S = sc.next();\n if(S.equals(\"AC\")){\n counterAC++;\n }else if(S.equals(\"WA\")){\n counterWA++;\n }else if(S.equals(\"TLE\")){\n counterTLE++;\n }else if(S.equals(\"RE\")){\n counterRE++;\n }\n }\n System.out.println(\"AC x \" + counterAC);\n System.out.println(\"WA x \" + counterWA);\n System.out.println(\"TLE x \" + counterTLE);\n System.out.println(\"RE x \" + counterRE);\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int counterAC = 0;\n int counterWA = 0;\n int counterTLE = 0;\n int counterRE = 0;\n for(int i = 0; i < N; i ++){\n String S = sc.next();\n if(S.equals(\"AC\")){\n counterAC++;\n }else if(S.equals(\"WA\")){\n counterWA++;\n }else if(S.equals(\"TLE\")){\n counterTLE++;\n }else if(S.equals(\"RE\")){\n counterRE++;\n }\n }\n System.out.println(\"AC x \" + counterAC);\n System.out.println(\"WA x \" + counterWA);\n System.out.println(\"TLE x \" + counterTLE);\n System.out.println(\"RE x \" + counterRE);\n }\n}",
"Main"
]
| import java.util.*;
import java.lang.Math;
public class Main {
public static void main(String[] args) throws Exception {
// Your code here!
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int counterAC = 0;
int counterWA = 0;
int counterTLE = 0;
int counterRE = 0;
for(int i = 0; i < N; i ++){
String S = sc.next();
if(S.equals("AC")){
counterAC++;
}else if(S.equals("WA")){
counterWA++;
}else if(S.equals("TLE")){
counterTLE++;
}else if(S.equals("RE")){
counterRE++;
}
}
System.out.println("AC x " + counterAC);
System.out.println("WA x " + counterWA);
System.out.println("TLE x " + counterTLE);
System.out.println("RE x " + counterRE);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
4,
18,
18,
13,
13,
17,
30,
40,
13,
14,
4,
18,
18,
13,
13,
17,
30,
40,
13,
14,
4,
18,
18,
13,
13,
17,
30,
40,
13,
14,
4,
18,
18,
13,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
128,
5
],
[
128,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
51,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
53,
60
],
[
60,
61
],
[
61,
62
],
[
53,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
63,
70
],
[
70,
71
],
[
71,
72
],
[
63,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
73,
80
],
[
80,
81
],
[
81,
82
],
[
73,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
83,
90
],
[
90,
91
],
[
91,
92
],
[
8,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
98,
99
],
[
98,
100
],
[
8,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
106,
107
],
[
106,
108
],
[
8,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
114,
115
],
[
114,
116
],
[
8,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
122,
123
],
[
122,
124
],
[
6,
125
],
[
125,
126
],
[
0,
127
],
[
127,
128
],
[
127,
129
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint AC = 0;\n\t\tint WA = 0;\n\t\tint TLE = 0;\n\t\tint RE = 0;\n\t\tString c[] = new String[N];\n\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tc[i] = sc.next();\n\t\t\tif(c[i].equals(\"AC\")) {\n\t\t\t\tAC++;\n\t\t\t}else if(c[i].equals(\"WA\")) {\n\t\t\t\tWA++;\n\t\t\t}else if(c[i].equals(\"TLE\")) {\n\t\t\t\tTLE++;\n\t\t\t}else if(c[i].equals(\"RE\")) {\n\t\t\t\tRE++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + AC);\n\t\tSystem.out.println(\"WA x \" + WA);\n\t\tSystem.out.println(\"TLE x \" + TLE);\n\t\tSystem.out.println(\"RE x \" + RE);\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint AC = 0;\n\t\tint WA = 0;\n\t\tint TLE = 0;\n\t\tint RE = 0;\n\t\tString c[] = new String[N];\n\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tc[i] = sc.next();\n\t\t\tif(c[i].equals(\"AC\")) {\n\t\t\t\tAC++;\n\t\t\t}else if(c[i].equals(\"WA\")) {\n\t\t\t\tWA++;\n\t\t\t}else if(c[i].equals(\"TLE\")) {\n\t\t\t\tTLE++;\n\t\t\t}else if(c[i].equals(\"RE\")) {\n\t\t\t\tRE++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + AC);\n\t\tSystem.out.println(\"WA x \" + WA);\n\t\tSystem.out.println(\"TLE x \" + TLE);\n\t\tSystem.out.println(\"RE x \" + RE);\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint AC = 0;\n\t\tint WA = 0;\n\t\tint TLE = 0;\n\t\tint RE = 0;\n\t\tString c[] = new String[N];\n\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tc[i] = sc.next();\n\t\t\tif(c[i].equals(\"AC\")) {\n\t\t\t\tAC++;\n\t\t\t}else if(c[i].equals(\"WA\")) {\n\t\t\t\tWA++;\n\t\t\t}else if(c[i].equals(\"TLE\")) {\n\t\t\t\tTLE++;\n\t\t\t}else if(c[i].equals(\"RE\")) {\n\t\t\t\tRE++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + AC);\n\t\tSystem.out.println(\"WA x \" + WA);\n\t\tSystem.out.println(\"TLE x \" + TLE);\n\t\tSystem.out.println(\"RE x \" + RE);\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint AC = 0;\n\t\tint WA = 0;\n\t\tint TLE = 0;\n\t\tint RE = 0;\n\t\tString c[] = new String[N];\n\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tc[i] = sc.next();\n\t\t\tif(c[i].equals(\"AC\")) {\n\t\t\t\tAC++;\n\t\t\t}else if(c[i].equals(\"WA\")) {\n\t\t\t\tWA++;\n\t\t\t}else if(c[i].equals(\"TLE\")) {\n\t\t\t\tTLE++;\n\t\t\t}else if(c[i].equals(\"RE\")) {\n\t\t\t\tRE++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + AC);\n\t\tSystem.out.println(\"WA x \" + WA);\n\t\tSystem.out.println(\"TLE x \" + TLE);\n\t\tSystem.out.println(\"RE x \" + RE);\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int AC = 0;",
"AC",
"0",
"int WA = 0;",
"WA",
"0",
"int TLE = 0;",
"TLE",
"0",
"int RE = 0;",
"RE",
"0",
"String c[] = new String[N];",
"c",
"new String[N]",
"N",
"for(int i = 0; i < N; i++) {\n\t\t\tc[i] = sc.next();\n\t\t\tif(c[i].equals(\"AC\")) {\n\t\t\t\tAC++;\n\t\t\t}else if(c[i].equals(\"WA\")) {\n\t\t\t\tWA++;\n\t\t\t}else if(c[i].equals(\"TLE\")) {\n\t\t\t\tTLE++;\n\t\t\t}else if(c[i].equals(\"RE\")) {\n\t\t\t\tRE++;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tc[i] = sc.next();\n\t\t\tif(c[i].equals(\"AC\")) {\n\t\t\t\tAC++;\n\t\t\t}else if(c[i].equals(\"WA\")) {\n\t\t\t\tWA++;\n\t\t\t}else if(c[i].equals(\"TLE\")) {\n\t\t\t\tTLE++;\n\t\t\t}else if(c[i].equals(\"RE\")) {\n\t\t\t\tRE++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tc[i] = sc.next();\n\t\t\tif(c[i].equals(\"AC\")) {\n\t\t\t\tAC++;\n\t\t\t}else if(c[i].equals(\"WA\")) {\n\t\t\t\tWA++;\n\t\t\t}else if(c[i].equals(\"TLE\")) {\n\t\t\t\tTLE++;\n\t\t\t}else if(c[i].equals(\"RE\")) {\n\t\t\t\tRE++;\n\t\t\t}\n\t\t}",
"c[i] = sc.next()",
"c[i]",
"c",
"i",
"sc.next()",
"sc.next",
"sc",
"if(c[i].equals(\"AC\")) {\n\t\t\t\tAC++;\n\t\t\t}else if(c[i].equals(\"WA\")) {\n\t\t\t\tWA++;\n\t\t\t}else if(c[i].equals(\"TLE\")) {\n\t\t\t\tTLE++;\n\t\t\t}else if(c[i].equals(\"RE\")) {\n\t\t\t\tRE++;\n\t\t\t}",
"c[i].equals(\"AC\")",
"c[i].equals",
"c[i]",
"c",
"i",
"\"AC\"",
"{\n\t\t\t\tAC++;\n\t\t\t}",
"AC++",
"AC",
"if(c[i].equals(\"WA\")) {\n\t\t\t\tWA++;\n\t\t\t}else if(c[i].equals(\"TLE\")) {\n\t\t\t\tTLE++;\n\t\t\t}else if(c[i].equals(\"RE\")) {\n\t\t\t\tRE++;\n\t\t\t}",
"c[i].equals(\"WA\")",
"c[i].equals",
"c[i]",
"c",
"i",
"\"WA\"",
"{\n\t\t\t\tWA++;\n\t\t\t}",
"WA++",
"WA",
"if(c[i].equals(\"TLE\")) {\n\t\t\t\tTLE++;\n\t\t\t}else if(c[i].equals(\"RE\")) {\n\t\t\t\tRE++;\n\t\t\t}",
"c[i].equals(\"TLE\")",
"c[i].equals",
"c[i]",
"c",
"i",
"\"TLE\"",
"{\n\t\t\t\tTLE++;\n\t\t\t}",
"TLE++",
"TLE",
"if(c[i].equals(\"RE\")) {\n\t\t\t\tRE++;\n\t\t\t}",
"c[i].equals(\"RE\")",
"c[i].equals",
"c[i]",
"c",
"i",
"\"RE\"",
"{\n\t\t\t\tRE++;\n\t\t\t}",
"RE++",
"RE",
"System.out.println(\"AC x \" + AC)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + AC",
"\"AC x \"",
"AC",
"System.out.println(\"WA x \" + WA)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + WA",
"\"WA x \"",
"WA",
"System.out.println(\"TLE x \" + TLE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + TLE",
"\"TLE x \"",
"TLE",
"System.out.println(\"RE x \" + RE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + RE",
"\"RE x \"",
"RE",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint AC = 0;\n\t\tint WA = 0;\n\t\tint TLE = 0;\n\t\tint RE = 0;\n\t\tString c[] = new String[N];\n\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tc[i] = sc.next();\n\t\t\tif(c[i].equals(\"AC\")) {\n\t\t\t\tAC++;\n\t\t\t}else if(c[i].equals(\"WA\")) {\n\t\t\t\tWA++;\n\t\t\t}else if(c[i].equals(\"TLE\")) {\n\t\t\t\tTLE++;\n\t\t\t}else if(c[i].equals(\"RE\")) {\n\t\t\t\tRE++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + AC);\n\t\tSystem.out.println(\"WA x \" + WA);\n\t\tSystem.out.println(\"TLE x \" + TLE);\n\t\tSystem.out.println(\"RE x \" + RE);\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint AC = 0;\n\t\tint WA = 0;\n\t\tint TLE = 0;\n\t\tint RE = 0;\n\t\tString c[] = new String[N];\n\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tc[i] = sc.next();\n\t\t\tif(c[i].equals(\"AC\")) {\n\t\t\t\tAC++;\n\t\t\t}else if(c[i].equals(\"WA\")) {\n\t\t\t\tWA++;\n\t\t\t}else if(c[i].equals(\"TLE\")) {\n\t\t\t\tTLE++;\n\t\t\t}else if(c[i].equals(\"RE\")) {\n\t\t\t\tRE++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + AC);\n\t\tSystem.out.println(\"WA x \" + WA);\n\t\tSystem.out.println(\"TLE x \" + TLE);\n\t\tSystem.out.println(\"RE x \" + RE);\n\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int AC = 0;
int WA = 0;
int TLE = 0;
int RE = 0;
String c[] = new String[N];
for(int i = 0; i < N; i++) {
c[i] = sc.next();
if(c[i].equals("AC")) {
AC++;
}else if(c[i].equals("WA")) {
WA++;
}else if(c[i].equals("TLE")) {
TLE++;
}else if(c[i].equals("RE")) {
RE++;
}
}
System.out.println("AC x " + AC);
System.out.println("WA x " + WA);
System.out.println("TLE x " + TLE);
System.out.println("RE x " + RE);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
40,
13,
14,
4,
18,
13,
17,
30,
40,
13,
14,
4,
18,
13,
17,
30,
40,
13,
14,
4,
18,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
2,
2,
2,
17,
13,
17,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
107,
5
],
[
107,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
32,
42
],
[
42,
43
],
[
43,
44
],
[
32,
45
],
[
46,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
46,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
52,
57
],
[
57,
58
],
[
58,
59
],
[
46,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
60,
65
],
[
65,
66
],
[
66,
67
],
[
46,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
68,
73
],
[
73,
74
],
[
74,
75
],
[
46,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
76,
81
],
[
81,
82
],
[
82,
83
],
[
8,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
95,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
93,
99
],
[
92,
100
],
[
91,
101
],
[
90,
102
],
[
95,
103
],
[
6,
104
],
[
104,
105
],
[
0,
106
],
[
106,
107
],
[
106,
108
]
]
| [
"import java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n\t Scanner scan = new Scanner(System.in);\n\t int ac = 0;\n\t int wa = 0;\n\t int tle = 0;\n\t int re = 0;\n\t int num = scan.nextInt();\n\t String test = \"\";\n\t for(int i=0;i<num+1;i++) {\n\t\t test = scan.nextLine();\n\t\t if (test.equals(\"AC\")) {\n\t\t\t ac++; \n\t\t }\n\t\t if (test.equals(\"WA\")) {\n\t\t\t wa++;\n\t\t }\n\t\t if (test.equals(\"TLE\")) {\n\t\t\t tle++;\n\t\t }\n\t\t if (test.equals(\"RE\")) {\n\t\t\t re++;\n\t\t }\n\t }\n\t \n\t System.out.println(\n\t\t\t \"AC x \" + ac+\n\t\t\t \"\\nWA x \" + wa+\n\t\t\t \"\\nTLE x \"+ tle+\n\t\t\t \"\\nRE x \" + re);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args){\n\t Scanner scan = new Scanner(System.in);\n\t int ac = 0;\n\t int wa = 0;\n\t int tle = 0;\n\t int re = 0;\n\t int num = scan.nextInt();\n\t String test = \"\";\n\t for(int i=0;i<num+1;i++) {\n\t\t test = scan.nextLine();\n\t\t if (test.equals(\"AC\")) {\n\t\t\t ac++; \n\t\t }\n\t\t if (test.equals(\"WA\")) {\n\t\t\t wa++;\n\t\t }\n\t\t if (test.equals(\"TLE\")) {\n\t\t\t tle++;\n\t\t }\n\t\t if (test.equals(\"RE\")) {\n\t\t\t re++;\n\t\t }\n\t }\n\t \n\t System.out.println(\n\t\t\t \"AC x \" + ac+\n\t\t\t \"\\nWA x \" + wa+\n\t\t\t \"\\nTLE x \"+ tle+\n\t\t\t \"\\nRE x \" + re);\n }\n}",
"Main",
"public static void main(String[] args){\n\t Scanner scan = new Scanner(System.in);\n\t int ac = 0;\n\t int wa = 0;\n\t int tle = 0;\n\t int re = 0;\n\t int num = scan.nextInt();\n\t String test = \"\";\n\t for(int i=0;i<num+1;i++) {\n\t\t test = scan.nextLine();\n\t\t if (test.equals(\"AC\")) {\n\t\t\t ac++; \n\t\t }\n\t\t if (test.equals(\"WA\")) {\n\t\t\t wa++;\n\t\t }\n\t\t if (test.equals(\"TLE\")) {\n\t\t\t tle++;\n\t\t }\n\t\t if (test.equals(\"RE\")) {\n\t\t\t re++;\n\t\t }\n\t }\n\t \n\t System.out.println(\n\t\t\t \"AC x \" + ac+\n\t\t\t \"\\nWA x \" + wa+\n\t\t\t \"\\nTLE x \"+ tle+\n\t\t\t \"\\nRE x \" + re);\n }",
"main",
"{\n\t Scanner scan = new Scanner(System.in);\n\t int ac = 0;\n\t int wa = 0;\n\t int tle = 0;\n\t int re = 0;\n\t int num = scan.nextInt();\n\t String test = \"\";\n\t for(int i=0;i<num+1;i++) {\n\t\t test = scan.nextLine();\n\t\t if (test.equals(\"AC\")) {\n\t\t\t ac++; \n\t\t }\n\t\t if (test.equals(\"WA\")) {\n\t\t\t wa++;\n\t\t }\n\t\t if (test.equals(\"TLE\")) {\n\t\t\t tle++;\n\t\t }\n\t\t if (test.equals(\"RE\")) {\n\t\t\t re++;\n\t\t }\n\t }\n\t \n\t System.out.println(\n\t\t\t \"AC x \" + ac+\n\t\t\t \"\\nWA x \" + wa+\n\t\t\t \"\\nTLE x \"+ tle+\n\t\t\t \"\\nRE x \" + re);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int ac = 0;",
"ac",
"0",
"int wa = 0;",
"wa",
"0",
"int tle = 0;",
"tle",
"0",
"int re = 0;",
"re",
"0",
"int num = scan.nextInt();",
"num",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String test = \"\";",
"test",
"\"\"",
"for(int i=0;i<num+1;i++) {\n\t\t test = scan.nextLine();\n\t\t if (test.equals(\"AC\")) {\n\t\t\t ac++; \n\t\t }\n\t\t if (test.equals(\"WA\")) {\n\t\t\t wa++;\n\t\t }\n\t\t if (test.equals(\"TLE\")) {\n\t\t\t tle++;\n\t\t }\n\t\t if (test.equals(\"RE\")) {\n\t\t\t re++;\n\t\t }\n\t }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<num+1",
"i",
"num+1",
"num",
"1",
"i++",
"i++",
"i",
"{\n\t\t test = scan.nextLine();\n\t\t if (test.equals(\"AC\")) {\n\t\t\t ac++; \n\t\t }\n\t\t if (test.equals(\"WA\")) {\n\t\t\t wa++;\n\t\t }\n\t\t if (test.equals(\"TLE\")) {\n\t\t\t tle++;\n\t\t }\n\t\t if (test.equals(\"RE\")) {\n\t\t\t re++;\n\t\t }\n\t }",
"{\n\t\t test = scan.nextLine();\n\t\t if (test.equals(\"AC\")) {\n\t\t\t ac++; \n\t\t }\n\t\t if (test.equals(\"WA\")) {\n\t\t\t wa++;\n\t\t }\n\t\t if (test.equals(\"TLE\")) {\n\t\t\t tle++;\n\t\t }\n\t\t if (test.equals(\"RE\")) {\n\t\t\t re++;\n\t\t }\n\t }",
"test = scan.nextLine()",
"test",
"scan.nextLine()",
"scan.nextLine",
"scan",
"if (test.equals(\"AC\")) {\n\t\t\t ac++; \n\t\t }",
"test.equals(\"AC\")",
"test.equals",
"test",
"\"AC\"",
"{\n\t\t\t ac++; \n\t\t }",
"ac++",
"ac",
"if (test.equals(\"WA\")) {\n\t\t\t wa++;\n\t\t }",
"test.equals(\"WA\")",
"test.equals",
"test",
"\"WA\"",
"{\n\t\t\t wa++;\n\t\t }",
"wa++",
"wa",
"if (test.equals(\"TLE\")) {\n\t\t\t tle++;\n\t\t }",
"test.equals(\"TLE\")",
"test.equals",
"test",
"\"TLE\"",
"{\n\t\t\t tle++;\n\t\t }",
"tle++",
"tle",
"if (test.equals(\"RE\")) {\n\t\t\t re++;\n\t\t }",
"test.equals(\"RE\")",
"test.equals",
"test",
"\"RE\"",
"{\n\t\t\t re++;\n\t\t }",
"re++",
"re",
"System.out.println(\n\t\t\t \"AC x \" + ac+\n\t\t\t \"\\nWA x \" + wa+\n\t\t\t \"\\nTLE x \"+ tle+\n\t\t\t \"\\nRE x \" + re)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + ac+\n\t\t\t \"\\nWA x \" + wa+\n\t\t\t \"\\nTLE x \"+ tle+\n\t\t\t \"\\nRE x \" + re",
"\"\\nRE x \"",
"tle",
"\"\\nTLE x \"",
"wa",
"\"\\nWA x \"",
"\"AC x \" + ac+\n\t\t\t \"\\nWA x \" + wa+\n\t\t\t \"\\nTLE x \"+ tle+\n\t\t\t \"\\nRE x \" + re",
"\"AC x \"",
"ac",
"\"\\nWA x \"",
"wa",
"\"\\nTLE x \"",
"tle",
"\"\\nRE x \"",
"re",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n\t Scanner scan = new Scanner(System.in);\n\t int ac = 0;\n\t int wa = 0;\n\t int tle = 0;\n\t int re = 0;\n\t int num = scan.nextInt();\n\t String test = \"\";\n\t for(int i=0;i<num+1;i++) {\n\t\t test = scan.nextLine();\n\t\t if (test.equals(\"AC\")) {\n\t\t\t ac++; \n\t\t }\n\t\t if (test.equals(\"WA\")) {\n\t\t\t wa++;\n\t\t }\n\t\t if (test.equals(\"TLE\")) {\n\t\t\t tle++;\n\t\t }\n\t\t if (test.equals(\"RE\")) {\n\t\t\t re++;\n\t\t }\n\t }\n\t \n\t System.out.println(\n\t\t\t \"AC x \" + ac+\n\t\t\t \"\\nWA x \" + wa+\n\t\t\t \"\\nTLE x \"+ tle+\n\t\t\t \"\\nRE x \" + re);\n }\n}",
"public class Main{\n public static void main(String[] args){\n\t Scanner scan = new Scanner(System.in);\n\t int ac = 0;\n\t int wa = 0;\n\t int tle = 0;\n\t int re = 0;\n\t int num = scan.nextInt();\n\t String test = \"\";\n\t for(int i=0;i<num+1;i++) {\n\t\t test = scan.nextLine();\n\t\t if (test.equals(\"AC\")) {\n\t\t\t ac++; \n\t\t }\n\t\t if (test.equals(\"WA\")) {\n\t\t\t wa++;\n\t\t }\n\t\t if (test.equals(\"TLE\")) {\n\t\t\t tle++;\n\t\t }\n\t\t if (test.equals(\"RE\")) {\n\t\t\t re++;\n\t\t }\n\t }\n\t \n\t System.out.println(\n\t\t\t \"AC x \" + ac+\n\t\t\t \"\\nWA x \" + wa+\n\t\t\t \"\\nTLE x \"+ tle+\n\t\t\t \"\\nRE x \" + re);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
int num = scan.nextInt();
String test = "";
for(int i=0;i<num+1;i++) {
test = scan.nextLine();
if (test.equals("AC")) {
ac++;
}
if (test.equals("WA")) {
wa++;
}
if (test.equals("TLE")) {
tle++;
}
if (test.equals("RE")) {
re++;
}
}
System.out.println(
"AC x " + ac+
"\nWA x " + wa+
"\nTLE x "+ tle+
"\nRE x " + re);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
18,
13,
13,
17,
30,
40,
13,
14,
4,
18,
18,
13,
13,
17,
30,
40,
13,
14,
4,
18,
18,
13,
13,
17,
30,
40,
13,
14,
4,
18,
18,
13,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
144,
5
],
[
144,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
51,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
53,
64
],
[
65,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
66,
73
],
[
73,
74
],
[
74,
75
],
[
66,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
76,
83
],
[
83,
84
],
[
84,
85
],
[
76,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
86,
93
],
[
93,
94
],
[
94,
95
],
[
86,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
96,
103
],
[
103,
104
],
[
104,
105
],
[
8,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
8,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
119,
120
],
[
119,
121
],
[
8,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
127,
128
],
[
127,
129
],
[
8,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
130,
135
],
[
135,
136
],
[
135,
137
],
[
8,
138
],
[
138,
139
],
[
139,
140
],
[
6,
141
],
[
141,
142
],
[
0,
143
],
[
143,
144
],
[
143,
145
]
]
| [
"import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint N = stdIn.nextInt();\n\t\tString[] ans = new String[N];\n\t\tint c0 = 0, c1 = 0, c2 = 0, c3 = 0;\n\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tans[i] = stdIn.next();\n\t\t}\n\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tif(ans[i].equals(\"AC\")) {\n\t\t\t\tc0++;\n\t\t\t}else if(ans[i].equals(\"WA\")) {\n\t\t\t\tc1++;\n\t\t\t}else if(ans[i].equals(\"TLE\")) {\n\t\t\t\tc2++;\n\t\t\t}else if(ans[i].equals(\"RE\")) {\n\t\t\t\tc3++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + c0);\n\t\tSystem.out.println(\"WA x \" + c1);\n\t\tSystem.out.println(\"TLE x \" + c2);\n\t\tSystem.out.println(\"RE x \" + c3);\n\n\t\tstdIn.close();\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint N = stdIn.nextInt();\n\t\tString[] ans = new String[N];\n\t\tint c0 = 0, c1 = 0, c2 = 0, c3 = 0;\n\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tans[i] = stdIn.next();\n\t\t}\n\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tif(ans[i].equals(\"AC\")) {\n\t\t\t\tc0++;\n\t\t\t}else if(ans[i].equals(\"WA\")) {\n\t\t\t\tc1++;\n\t\t\t}else if(ans[i].equals(\"TLE\")) {\n\t\t\t\tc2++;\n\t\t\t}else if(ans[i].equals(\"RE\")) {\n\t\t\t\tc3++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + c0);\n\t\tSystem.out.println(\"WA x \" + c1);\n\t\tSystem.out.println(\"TLE x \" + c2);\n\t\tSystem.out.println(\"RE x \" + c3);\n\n\t\tstdIn.close();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint N = stdIn.nextInt();\n\t\tString[] ans = new String[N];\n\t\tint c0 = 0, c1 = 0, c2 = 0, c3 = 0;\n\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tans[i] = stdIn.next();\n\t\t}\n\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tif(ans[i].equals(\"AC\")) {\n\t\t\t\tc0++;\n\t\t\t}else if(ans[i].equals(\"WA\")) {\n\t\t\t\tc1++;\n\t\t\t}else if(ans[i].equals(\"TLE\")) {\n\t\t\t\tc2++;\n\t\t\t}else if(ans[i].equals(\"RE\")) {\n\t\t\t\tc3++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + c0);\n\t\tSystem.out.println(\"WA x \" + c1);\n\t\tSystem.out.println(\"TLE x \" + c2);\n\t\tSystem.out.println(\"RE x \" + c3);\n\n\t\tstdIn.close();\n\t}",
"main",
"{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint N = stdIn.nextInt();\n\t\tString[] ans = new String[N];\n\t\tint c0 = 0, c1 = 0, c2 = 0, c3 = 0;\n\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tans[i] = stdIn.next();\n\t\t}\n\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tif(ans[i].equals(\"AC\")) {\n\t\t\t\tc0++;\n\t\t\t}else if(ans[i].equals(\"WA\")) {\n\t\t\t\tc1++;\n\t\t\t}else if(ans[i].equals(\"TLE\")) {\n\t\t\t\tc2++;\n\t\t\t}else if(ans[i].equals(\"RE\")) {\n\t\t\t\tc3++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + c0);\n\t\tSystem.out.println(\"WA x \" + c1);\n\t\tSystem.out.println(\"TLE x \" + c2);\n\t\tSystem.out.println(\"RE x \" + c3);\n\n\t\tstdIn.close();\n\t}",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"int N = stdIn.nextInt();",
"N",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"String[] ans = new String[N];",
"ans",
"new String[N]",
"N",
"int c0 = 0",
"c0",
"0",
"c1 = 0",
"c1",
"0",
"c2 = 0",
"c2",
"0",
"c3 = 0;",
"c3",
"0",
"for(int i=0;i<N;i++) {\n\t\t\tans[i] = stdIn.next();\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tans[i] = stdIn.next();\n\t\t}",
"{\n\t\t\tans[i] = stdIn.next();\n\t\t}",
"ans[i] = stdIn.next()",
"ans[i]",
"ans",
"i",
"stdIn.next()",
"stdIn.next",
"stdIn",
"for(int i=0;i<N;i++) {\n\t\t\tif(ans[i].equals(\"AC\")) {\n\t\t\t\tc0++;\n\t\t\t}else if(ans[i].equals(\"WA\")) {\n\t\t\t\tc1++;\n\t\t\t}else if(ans[i].equals(\"TLE\")) {\n\t\t\t\tc2++;\n\t\t\t}else if(ans[i].equals(\"RE\")) {\n\t\t\t\tc3++;\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tif(ans[i].equals(\"AC\")) {\n\t\t\t\tc0++;\n\t\t\t}else if(ans[i].equals(\"WA\")) {\n\t\t\t\tc1++;\n\t\t\t}else if(ans[i].equals(\"TLE\")) {\n\t\t\t\tc2++;\n\t\t\t}else if(ans[i].equals(\"RE\")) {\n\t\t\t\tc3++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(ans[i].equals(\"AC\")) {\n\t\t\t\tc0++;\n\t\t\t}else if(ans[i].equals(\"WA\")) {\n\t\t\t\tc1++;\n\t\t\t}else if(ans[i].equals(\"TLE\")) {\n\t\t\t\tc2++;\n\t\t\t}else if(ans[i].equals(\"RE\")) {\n\t\t\t\tc3++;\n\t\t\t}\n\t\t}",
"if(ans[i].equals(\"AC\")) {\n\t\t\t\tc0++;\n\t\t\t}else if(ans[i].equals(\"WA\")) {\n\t\t\t\tc1++;\n\t\t\t}else if(ans[i].equals(\"TLE\")) {\n\t\t\t\tc2++;\n\t\t\t}else if(ans[i].equals(\"RE\")) {\n\t\t\t\tc3++;\n\t\t\t}",
"ans[i].equals(\"AC\")",
"ans[i].equals",
"ans[i]",
"ans",
"i",
"\"AC\"",
"{\n\t\t\t\tc0++;\n\t\t\t}",
"c0++",
"c0",
"if(ans[i].equals(\"WA\")) {\n\t\t\t\tc1++;\n\t\t\t}else if(ans[i].equals(\"TLE\")) {\n\t\t\t\tc2++;\n\t\t\t}else if(ans[i].equals(\"RE\")) {\n\t\t\t\tc3++;\n\t\t\t}",
"ans[i].equals(\"WA\")",
"ans[i].equals",
"ans[i]",
"ans",
"i",
"\"WA\"",
"{\n\t\t\t\tc1++;\n\t\t\t}",
"c1++",
"c1",
"if(ans[i].equals(\"TLE\")) {\n\t\t\t\tc2++;\n\t\t\t}else if(ans[i].equals(\"RE\")) {\n\t\t\t\tc3++;\n\t\t\t}",
"ans[i].equals(\"TLE\")",
"ans[i].equals",
"ans[i]",
"ans",
"i",
"\"TLE\"",
"{\n\t\t\t\tc2++;\n\t\t\t}",
"c2++",
"c2",
"if(ans[i].equals(\"RE\")) {\n\t\t\t\tc3++;\n\t\t\t}",
"ans[i].equals(\"RE\")",
"ans[i].equals",
"ans[i]",
"ans",
"i",
"\"RE\"",
"{\n\t\t\t\tc3++;\n\t\t\t}",
"c3++",
"c3",
"System.out.println(\"AC x \" + c0)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + c0",
"\"AC x \"",
"c0",
"System.out.println(\"WA x \" + c1)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + c1",
"\"WA x \"",
"c1",
"System.out.println(\"TLE x \" + c2)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + c2",
"\"TLE x \"",
"c2",
"System.out.println(\"RE x \" + c3)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + c3",
"\"RE x \"",
"c3",
"stdIn.close()",
"stdIn.close",
"stdIn",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint N = stdIn.nextInt();\n\t\tString[] ans = new String[N];\n\t\tint c0 = 0, c1 = 0, c2 = 0, c3 = 0;\n\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tans[i] = stdIn.next();\n\t\t}\n\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tif(ans[i].equals(\"AC\")) {\n\t\t\t\tc0++;\n\t\t\t}else if(ans[i].equals(\"WA\")) {\n\t\t\t\tc1++;\n\t\t\t}else if(ans[i].equals(\"TLE\")) {\n\t\t\t\tc2++;\n\t\t\t}else if(ans[i].equals(\"RE\")) {\n\t\t\t\tc3++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + c0);\n\t\tSystem.out.println(\"WA x \" + c1);\n\t\tSystem.out.println(\"TLE x \" + c2);\n\t\tSystem.out.println(\"RE x \" + c3);\n\n\t\tstdIn.close();\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint N = stdIn.nextInt();\n\t\tString[] ans = new String[N];\n\t\tint c0 = 0, c1 = 0, c2 = 0, c3 = 0;\n\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tans[i] = stdIn.next();\n\t\t}\n\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tif(ans[i].equals(\"AC\")) {\n\t\t\t\tc0++;\n\t\t\t}else if(ans[i].equals(\"WA\")) {\n\t\t\t\tc1++;\n\t\t\t}else if(ans[i].equals(\"TLE\")) {\n\t\t\t\tc2++;\n\t\t\t}else if(ans[i].equals(\"RE\")) {\n\t\t\t\tc3++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + c0);\n\t\tSystem.out.println(\"WA x \" + c1);\n\t\tSystem.out.println(\"TLE x \" + c2);\n\t\tSystem.out.println(\"RE x \" + c3);\n\n\t\tstdIn.close();\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
int N = stdIn.nextInt();
String[] ans = new String[N];
int c0 = 0, c1 = 0, c2 = 0, c3 = 0;
for(int i=0;i<N;i++) {
ans[i] = stdIn.next();
}
for(int i=0;i<N;i++) {
if(ans[i].equals("AC")) {
c0++;
}else if(ans[i].equals("WA")) {
c1++;
}else if(ans[i].equals("TLE")) {
c2++;
}else if(ans[i].equals("RE")) {
c3++;
}
}
System.out.println("AC x " + c0);
System.out.println("WA x " + c1);
System.out.println("TLE x " + c2);
System.out.println("RE x " + c3);
stdIn.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
2,
4,
18,
13,
13,
17,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
111,
8
],
[
111,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
23,
27
],
[
11,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
28,
32
],
[
11,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
33,
37
],
[
11,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
38,
42
],
[
11,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
43,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
48,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
58,
63
],
[
11,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
11,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
11,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
11,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
9,
108
],
[
108,
109
],
[
0,
110
],
[
110,
111
],
[
110,
112
]
]
| [
"import java.util.HashMap;\nimport java.util.Scanner;\n\npublic class Main {\n\t\n\t\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tHashMap<String,Integer> h = new HashMap<>();\n\t\th.put(\"AC\",0);\n\t\th.put(\"TLE\",0);\n\t\th.put(\"RE\",0);\n\t\th.put(\"WA\",0);\n\t\twhile(n--!=0) {\n\t\t\tString c = s.next();\n\t\t\th.put(c, h.get(c)+1);\n\t\t}\n\t\tSystem.out.println(\"AC x \"+h.get(\"AC\"));\n\t\tSystem.out.println(\"WA x \"+h.get(\"WA\"));\n\t\tSystem.out.println(\"TLE x \"+h.get(\"TLE\"));\n\t\tSystem.out.println(\"RE x \"+h.get(\"RE\"));\n\t\t\n\t}\n\n}",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\t\n\t\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tHashMap<String,Integer> h = new HashMap<>();\n\t\th.put(\"AC\",0);\n\t\th.put(\"TLE\",0);\n\t\th.put(\"RE\",0);\n\t\th.put(\"WA\",0);\n\t\twhile(n--!=0) {\n\t\t\tString c = s.next();\n\t\t\th.put(c, h.get(c)+1);\n\t\t}\n\t\tSystem.out.println(\"AC x \"+h.get(\"AC\"));\n\t\tSystem.out.println(\"WA x \"+h.get(\"WA\"));\n\t\tSystem.out.println(\"TLE x \"+h.get(\"TLE\"));\n\t\tSystem.out.println(\"RE x \"+h.get(\"RE\"));\n\t\t\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tHashMap<String,Integer> h = new HashMap<>();\n\t\th.put(\"AC\",0);\n\t\th.put(\"TLE\",0);\n\t\th.put(\"RE\",0);\n\t\th.put(\"WA\",0);\n\t\twhile(n--!=0) {\n\t\t\tString c = s.next();\n\t\t\th.put(c, h.get(c)+1);\n\t\t}\n\t\tSystem.out.println(\"AC x \"+h.get(\"AC\"));\n\t\tSystem.out.println(\"WA x \"+h.get(\"WA\"));\n\t\tSystem.out.println(\"TLE x \"+h.get(\"TLE\"));\n\t\tSystem.out.println(\"RE x \"+h.get(\"RE\"));\n\t\t\n\t}",
"main",
"{\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tHashMap<String,Integer> h = new HashMap<>();\n\t\th.put(\"AC\",0);\n\t\th.put(\"TLE\",0);\n\t\th.put(\"RE\",0);\n\t\th.put(\"WA\",0);\n\t\twhile(n--!=0) {\n\t\t\tString c = s.next();\n\t\t\th.put(c, h.get(c)+1);\n\t\t}\n\t\tSystem.out.println(\"AC x \"+h.get(\"AC\"));\n\t\tSystem.out.println(\"WA x \"+h.get(\"WA\"));\n\t\tSystem.out.println(\"TLE x \"+h.get(\"TLE\"));\n\t\tSystem.out.println(\"RE x \"+h.get(\"RE\"));\n\t\t\n\t}",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int n = s.nextInt();",
"n",
"s.nextInt()",
"s.nextInt",
"s",
"HashMap<String,Integer> h = new HashMap<>();",
"h",
"new HashMap<>()",
"h.put(\"AC\",0)",
"h.put",
"h",
"\"AC\"",
"0",
"h.put(\"TLE\",0)",
"h.put",
"h",
"\"TLE\"",
"0",
"h.put(\"RE\",0)",
"h.put",
"h",
"\"RE\"",
"0",
"h.put(\"WA\",0)",
"h.put",
"h",
"\"WA\"",
"0",
"while(n--!=0) {\n\t\t\tString c = s.next();\n\t\t\th.put(c, h.get(c)+1);\n\t\t}",
"n--!=0",
"n--",
"n",
"0",
"{\n\t\t\tString c = s.next();\n\t\t\th.put(c, h.get(c)+1);\n\t\t}",
"String c = s.next();",
"c",
"s.next()",
"s.next",
"s",
"h.put(c, h.get(c)+1)",
"h.put",
"h",
"c",
"h.get(c)+1",
"h.get(c)",
"h.get",
"h",
"c",
"1",
"System.out.println(\"AC x \"+h.get(\"AC\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \"+h.get(\"AC\")",
"\"AC x \"",
"h.get(\"AC\")",
"h.get",
"h",
"\"AC\"",
"System.out.println(\"WA x \"+h.get(\"WA\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \"+h.get(\"WA\")",
"\"WA x \"",
"h.get(\"WA\")",
"h.get",
"h",
"\"WA\"",
"System.out.println(\"TLE x \"+h.get(\"TLE\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \"+h.get(\"TLE\")",
"\"TLE x \"",
"h.get(\"TLE\")",
"h.get",
"h",
"\"TLE\"",
"System.out.println(\"RE x \"+h.get(\"RE\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \"+h.get(\"RE\")",
"\"RE x \"",
"h.get(\"RE\")",
"h.get",
"h",
"\"RE\"",
"String[] args",
"args",
"public class Main {\n\t\n\t\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tHashMap<String,Integer> h = new HashMap<>();\n\t\th.put(\"AC\",0);\n\t\th.put(\"TLE\",0);\n\t\th.put(\"RE\",0);\n\t\th.put(\"WA\",0);\n\t\twhile(n--!=0) {\n\t\t\tString c = s.next();\n\t\t\th.put(c, h.get(c)+1);\n\t\t}\n\t\tSystem.out.println(\"AC x \"+h.get(\"AC\"));\n\t\tSystem.out.println(\"WA x \"+h.get(\"WA\"));\n\t\tSystem.out.println(\"TLE x \"+h.get(\"TLE\"));\n\t\tSystem.out.println(\"RE x \"+h.get(\"RE\"));\n\t\t\n\t}\n\n}",
"public class Main {\n\t\n\t\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tHashMap<String,Integer> h = new HashMap<>();\n\t\th.put(\"AC\",0);\n\t\th.put(\"TLE\",0);\n\t\th.put(\"RE\",0);\n\t\th.put(\"WA\",0);\n\t\twhile(n--!=0) {\n\t\t\tString c = s.next();\n\t\t\th.put(c, h.get(c)+1);\n\t\t}\n\t\tSystem.out.println(\"AC x \"+h.get(\"AC\"));\n\t\tSystem.out.println(\"WA x \"+h.get(\"WA\"));\n\t\tSystem.out.println(\"TLE x \"+h.get(\"TLE\"));\n\t\tSystem.out.println(\"RE x \"+h.get(\"RE\"));\n\t\t\n\t}\n\n}",
"Main"
]
| import java.util.HashMap;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int n = s.nextInt();
HashMap<String,Integer> h = new HashMap<>();
h.put("AC",0);
h.put("TLE",0);
h.put("RE",0);
h.put("WA",0);
while(n--!=0) {
String c = s.next();
h.put(c, h.get(c)+1);
}
System.out.println("AC x "+h.get("AC"));
System.out.println("WA x "+h.get("WA"));
System.out.println("TLE x "+h.get("TLE"));
System.out.println("RE x "+h.get("RE"));
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
0,
13,
17,
14,
4,
18,
13,
17,
30,
0,
13,
17,
14,
4,
18,
13,
17,
30,
0,
13,
17,
14,
4,
18,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
2,
2,
17,
17,
17,
17,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
17,
17,
17,
17,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
17,
17,
17,
17,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
17,
17,
17,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
142,
5
],
[
142,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
47,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
56,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
56,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
65,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
65,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
74,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
8,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
91,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
89,
95
],
[
91,
96
],
[
8,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
105,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
103,
109
],
[
105,
110
],
[
8,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
119,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
117,
123
],
[
119,
124
],
[
8,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
133,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
132,
136
],
[
131,
137
],
[
133,
138
],
[
6,
139
],
[
139,
140
],
[
0,
141
],
[
141,
142
],
[
141,
143
]
]
| [
"import java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int c0 = 0;\n int c1 = 0;\n int c2 = 0;\n int c3 = 0;\n for (int i = 0; i < n; i++){\n String S = scan.next();\n if (S.equals(\"AC\")){\n c0 += 1;\n }else if (S.equals(\"WA\")){\n c1 += 1;\n }else if (S.equals(\"TLE\")){\n c2 += 1;\n }else if (S.equals(\"RE\")){\n c3 += 1;\n }\n }\n System.out.println(\"AC\"+\" \"+\"x\"+\" \"+c0);\n System.out.println(\"WA\"+\" \"+\"x\"+\" \"+c1);\n System.out.println(\"TLE\"+\" \"+\"x\"+\" \"+c2);\n System.out.println(\"RE\"+\" \"+\"x\"+\" \"+c3);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int c0 = 0;\n int c1 = 0;\n int c2 = 0;\n int c3 = 0;\n for (int i = 0; i < n; i++){\n String S = scan.next();\n if (S.equals(\"AC\")){\n c0 += 1;\n }else if (S.equals(\"WA\")){\n c1 += 1;\n }else if (S.equals(\"TLE\")){\n c2 += 1;\n }else if (S.equals(\"RE\")){\n c3 += 1;\n }\n }\n System.out.println(\"AC\"+\" \"+\"x\"+\" \"+c0);\n System.out.println(\"WA\"+\" \"+\"x\"+\" \"+c1);\n System.out.println(\"TLE\"+\" \"+\"x\"+\" \"+c2);\n System.out.println(\"RE\"+\" \"+\"x\"+\" \"+c3);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int c0 = 0;\n int c1 = 0;\n int c2 = 0;\n int c3 = 0;\n for (int i = 0; i < n; i++){\n String S = scan.next();\n if (S.equals(\"AC\")){\n c0 += 1;\n }else if (S.equals(\"WA\")){\n c1 += 1;\n }else if (S.equals(\"TLE\")){\n c2 += 1;\n }else if (S.equals(\"RE\")){\n c3 += 1;\n }\n }\n System.out.println(\"AC\"+\" \"+\"x\"+\" \"+c0);\n System.out.println(\"WA\"+\" \"+\"x\"+\" \"+c1);\n System.out.println(\"TLE\"+\" \"+\"x\"+\" \"+c2);\n System.out.println(\"RE\"+\" \"+\"x\"+\" \"+c3);\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int c0 = 0;\n int c1 = 0;\n int c2 = 0;\n int c3 = 0;\n for (int i = 0; i < n; i++){\n String S = scan.next();\n if (S.equals(\"AC\")){\n c0 += 1;\n }else if (S.equals(\"WA\")){\n c1 += 1;\n }else if (S.equals(\"TLE\")){\n c2 += 1;\n }else if (S.equals(\"RE\")){\n c3 += 1;\n }\n }\n System.out.println(\"AC\"+\" \"+\"x\"+\" \"+c0);\n System.out.println(\"WA\"+\" \"+\"x\"+\" \"+c1);\n System.out.println(\"TLE\"+\" \"+\"x\"+\" \"+c2);\n System.out.println(\"RE\"+\" \"+\"x\"+\" \"+c3);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int c0 = 0;",
"c0",
"0",
"int c1 = 0;",
"c1",
"0",
"int c2 = 0;",
"c2",
"0",
"int c3 = 0;",
"c3",
"0",
"for (int i = 0; i < n; i++){\n String S = scan.next();\n if (S.equals(\"AC\")){\n c0 += 1;\n }else if (S.equals(\"WA\")){\n c1 += 1;\n }else if (S.equals(\"TLE\")){\n c2 += 1;\n }else if (S.equals(\"RE\")){\n c3 += 1;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String S = scan.next();\n if (S.equals(\"AC\")){\n c0 += 1;\n }else if (S.equals(\"WA\")){\n c1 += 1;\n }else if (S.equals(\"TLE\")){\n c2 += 1;\n }else if (S.equals(\"RE\")){\n c3 += 1;\n }\n }",
"{\n String S = scan.next();\n if (S.equals(\"AC\")){\n c0 += 1;\n }else if (S.equals(\"WA\")){\n c1 += 1;\n }else if (S.equals(\"TLE\")){\n c2 += 1;\n }else if (S.equals(\"RE\")){\n c3 += 1;\n }\n }",
"String S = scan.next();",
"S",
"scan.next()",
"scan.next",
"scan",
"if (S.equals(\"AC\")){\n c0 += 1;\n }else if (S.equals(\"WA\")){\n c1 += 1;\n }else if (S.equals(\"TLE\")){\n c2 += 1;\n }else if (S.equals(\"RE\")){\n c3 += 1;\n }",
"S.equals(\"AC\")",
"S.equals",
"S",
"\"AC\"",
"{\n c0 += 1;\n }",
"c0 += 1",
"c0",
"1",
"if (S.equals(\"WA\")){\n c1 += 1;\n }else if (S.equals(\"TLE\")){\n c2 += 1;\n }else if (S.equals(\"RE\")){\n c3 += 1;\n }",
"S.equals(\"WA\")",
"S.equals",
"S",
"\"WA\"",
"{\n c1 += 1;\n }",
"c1 += 1",
"c1",
"1",
"if (S.equals(\"TLE\")){\n c2 += 1;\n }else if (S.equals(\"RE\")){\n c3 += 1;\n }",
"S.equals(\"TLE\")",
"S.equals",
"S",
"\"TLE\"",
"{\n c2 += 1;\n }",
"c2 += 1",
"c2",
"1",
"if (S.equals(\"RE\")){\n c3 += 1;\n }",
"S.equals(\"RE\")",
"S.equals",
"S",
"\"RE\"",
"{\n c3 += 1;\n }",
"c3 += 1",
"c3",
"1",
"System.out.println(\"AC\"+\" \"+\"x\"+\" \"+c0)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC\"+\" \"+\"x\"+\" \"+c0",
"\" \"",
"\"x\"",
"\"AC\"+\" \"+\"x\"+\" \"+c0",
"\"AC\"",
"\" \"",
"\"x\"",
"\" \"",
"c0",
"System.out.println(\"WA\"+\" \"+\"x\"+\" \"+c1)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA\"+\" \"+\"x\"+\" \"+c1",
"\" \"",
"\"x\"",
"\"WA\"+\" \"+\"x\"+\" \"+c1",
"\"WA\"",
"\" \"",
"\"x\"",
"\" \"",
"c1",
"System.out.println(\"TLE\"+\" \"+\"x\"+\" \"+c2)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE\"+\" \"+\"x\"+\" \"+c2",
"\" \"",
"\"x\"",
"\"TLE\"+\" \"+\"x\"+\" \"+c2",
"\"TLE\"",
"\" \"",
"\"x\"",
"\" \"",
"c2",
"System.out.println(\"RE\"+\" \"+\"x\"+\" \"+c3)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE\"+\" \"+\"x\"+\" \"+c3",
"\" \"",
"\"x\"",
"\"RE\"+\" \"+\"x\"+\" \"+c3",
"\"RE\"",
"\" \"",
"\"x\"",
"\" \"",
"c3",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int c0 = 0;\n int c1 = 0;\n int c2 = 0;\n int c3 = 0;\n for (int i = 0; i < n; i++){\n String S = scan.next();\n if (S.equals(\"AC\")){\n c0 += 1;\n }else if (S.equals(\"WA\")){\n c1 += 1;\n }else if (S.equals(\"TLE\")){\n c2 += 1;\n }else if (S.equals(\"RE\")){\n c3 += 1;\n }\n }\n System.out.println(\"AC\"+\" \"+\"x\"+\" \"+c0);\n System.out.println(\"WA\"+\" \"+\"x\"+\" \"+c1);\n System.out.println(\"TLE\"+\" \"+\"x\"+\" \"+c2);\n System.out.println(\"RE\"+\" \"+\"x\"+\" \"+c3);\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int c0 = 0;\n int c1 = 0;\n int c2 = 0;\n int c3 = 0;\n for (int i = 0; i < n; i++){\n String S = scan.next();\n if (S.equals(\"AC\")){\n c0 += 1;\n }else if (S.equals(\"WA\")){\n c1 += 1;\n }else if (S.equals(\"TLE\")){\n c2 += 1;\n }else if (S.equals(\"RE\")){\n c3 += 1;\n }\n }\n System.out.println(\"AC\"+\" \"+\"x\"+\" \"+c0);\n System.out.println(\"WA\"+\" \"+\"x\"+\" \"+c1);\n System.out.println(\"TLE\"+\" \"+\"x\"+\" \"+c2);\n System.out.println(\"RE\"+\" \"+\"x\"+\" \"+c3);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int c0 = 0;
int c1 = 0;
int c2 = 0;
int c3 = 0;
for (int i = 0; i < n; i++){
String S = scan.next();
if (S.equals("AC")){
c0 += 1;
}else if (S.equals("WA")){
c1 += 1;
}else if (S.equals("TLE")){
c2 += 1;
}else if (S.equals("RE")){
c3 += 1;
}
}
System.out.println("AC"+" "+"x"+" "+c0);
System.out.println("WA"+" "+"x"+" "+c1);
System.out.println("TLE"+" "+"x"+" "+c2);
System.out.println("RE"+" "+"x"+" "+c3);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
20,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
41,
13,
20,
0,
13,
4,
18,
13,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
2,
4,
18,
13,
13,
17,
28,
13,
20,
30,
30,
4,
18,
18,
13,
13,
17,
13,
4,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
85,
8
],
[
85,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
11,
14
],
[
14,
15
],
[
14,
16
],
[
11,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
17,
21
],
[
11,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
22,
26
],
[
11,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
27,
31
],
[
11,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
32,
36
],
[
11,
37
],
[
37,
38
],
[
37,
39
],
[
11,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
11,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
45,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
50,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
60,
65
],
[
11,
66
],
[
66,
67
],
[
66,
68
],
[
66,
69
],
[
70,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
71,
77
],
[
71,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
9,
82
],
[
82,
83
],
[
0,
84
],
[
84,
85
],
[
84,
86
]
]
| [
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tint t;\n\t\tHashMap<String, Integer> stat = new HashMap<String, Integer> ();\n\t\tstat.put(\"AC\", 0);\n\t\tstat.put(\"WA\", 0);\n\t\tstat.put(\"TLE\", 0);\n\t\tstat.put(\"RE\", 0);\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tt = in.nextInt();\n\t\twhile(t-- > 0) {\n\t\t\tString s = in.next();\n\t\t\tstat.put(s, stat.get(s) + 1);\n\t\t}\n\t\t\n\t\tfor(String s : new String[]{\"AC\", \"WA\", \"TLE\", \"RE\"}) {\n\t\t\tSystem.out.printf(\"%s x %d\\n\", s, stat.get(s));\n\t\t}\n\t\t\n\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tint t;\n\t\tHashMap<String, Integer> stat = new HashMap<String, Integer> ();\n\t\tstat.put(\"AC\", 0);\n\t\tstat.put(\"WA\", 0);\n\t\tstat.put(\"TLE\", 0);\n\t\tstat.put(\"RE\", 0);\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tt = in.nextInt();\n\t\twhile(t-- > 0) {\n\t\t\tString s = in.next();\n\t\t\tstat.put(s, stat.get(s) + 1);\n\t\t}\n\t\t\n\t\tfor(String s : new String[]{\"AC\", \"WA\", \"TLE\", \"RE\"}) {\n\t\t\tSystem.out.printf(\"%s x %d\\n\", s, stat.get(s));\n\t\t}\n\t\t\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tint t;\n\t\tHashMap<String, Integer> stat = new HashMap<String, Integer> ();\n\t\tstat.put(\"AC\", 0);\n\t\tstat.put(\"WA\", 0);\n\t\tstat.put(\"TLE\", 0);\n\t\tstat.put(\"RE\", 0);\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tt = in.nextInt();\n\t\twhile(t-- > 0) {\n\t\t\tString s = in.next();\n\t\t\tstat.put(s, stat.get(s) + 1);\n\t\t}\n\t\t\n\t\tfor(String s : new String[]{\"AC\", \"WA\", \"TLE\", \"RE\"}) {\n\t\t\tSystem.out.printf(\"%s x %d\\n\", s, stat.get(s));\n\t\t}\n\t\t\n\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tint t;\n\t\tHashMap<String, Integer> stat = new HashMap<String, Integer> ();\n\t\tstat.put(\"AC\", 0);\n\t\tstat.put(\"WA\", 0);\n\t\tstat.put(\"TLE\", 0);\n\t\tstat.put(\"RE\", 0);\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tt = in.nextInt();\n\t\twhile(t-- > 0) {\n\t\t\tString s = in.next();\n\t\t\tstat.put(s, stat.get(s) + 1);\n\t\t}\n\t\t\n\t\tfor(String s : new String[]{\"AC\", \"WA\", \"TLE\", \"RE\"}) {\n\t\t\tSystem.out.printf(\"%s x %d\\n\", s, stat.get(s));\n\t\t}\n\t\t\n\n\t}",
"int t;",
"t",
"HashMap<String, Integer> stat = new HashMap<String, Integer> ();",
"stat",
"new HashMap<String, Integer> ()",
"stat.put(\"AC\", 0)",
"stat.put",
"stat",
"\"AC\"",
"0",
"stat.put(\"WA\", 0)",
"stat.put",
"stat",
"\"WA\"",
"0",
"stat.put(\"TLE\", 0)",
"stat.put",
"stat",
"\"TLE\"",
"0",
"stat.put(\"RE\", 0)",
"stat.put",
"stat",
"\"RE\"",
"0",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"t = in.nextInt()",
"t",
"in.nextInt()",
"in.nextInt",
"in",
"while(t-- > 0) {\n\t\t\tString s = in.next();\n\t\t\tstat.put(s, stat.get(s) + 1);\n\t\t}",
"t-- > 0",
"t--",
"t",
"0",
"{\n\t\t\tString s = in.next();\n\t\t\tstat.put(s, stat.get(s) + 1);\n\t\t}",
"String s = in.next();",
"s",
"in.next()",
"in.next",
"in",
"stat.put(s, stat.get(s) + 1)",
"stat.put",
"stat",
"s",
"stat.get(s) + 1",
"stat.get(s)",
"stat.get",
"stat",
"s",
"1",
"for(String s : new String[]{\"AC\", \"WA\", \"TLE\", \"RE\"}) {\n\t\t\tSystem.out.printf(\"%s x %d\\n\", s, stat.get(s));\n\t\t}",
"String s",
"new String[]{\"AC\", \"WA\", \"TLE\", \"RE\"}",
"{\n\t\t\tSystem.out.printf(\"%s x %d\\n\", s, stat.get(s));\n\t\t}",
"{\n\t\t\tSystem.out.printf(\"%s x %d\\n\", s, stat.get(s));\n\t\t}",
"System.out.printf(\"%s x %d\\n\", s, stat.get(s))",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%s x %d\\n\"",
"s",
"stat.get(s)",
"stat.get",
"stat",
"s",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tint t;\n\t\tHashMap<String, Integer> stat = new HashMap<String, Integer> ();\n\t\tstat.put(\"AC\", 0);\n\t\tstat.put(\"WA\", 0);\n\t\tstat.put(\"TLE\", 0);\n\t\tstat.put(\"RE\", 0);\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tt = in.nextInt();\n\t\twhile(t-- > 0) {\n\t\t\tString s = in.next();\n\t\t\tstat.put(s, stat.get(s) + 1);\n\t\t}\n\t\t\n\t\tfor(String s : new String[]{\"AC\", \"WA\", \"TLE\", \"RE\"}) {\n\t\t\tSystem.out.printf(\"%s x %d\\n\", s, stat.get(s));\n\t\t}\n\t\t\n\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tint t;\n\t\tHashMap<String, Integer> stat = new HashMap<String, Integer> ();\n\t\tstat.put(\"AC\", 0);\n\t\tstat.put(\"WA\", 0);\n\t\tstat.put(\"TLE\", 0);\n\t\tstat.put(\"RE\", 0);\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tt = in.nextInt();\n\t\twhile(t-- > 0) {\n\t\t\tString s = in.next();\n\t\t\tstat.put(s, stat.get(s) + 1);\n\t\t}\n\t\t\n\t\tfor(String s : new String[]{\"AC\", \"WA\", \"TLE\", \"RE\"}) {\n\t\t\tSystem.out.printf(\"%s x %d\\n\", s, stat.get(s));\n\t\t}\n\t\t\n\n\t}\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
int t;
HashMap<String, Integer> stat = new HashMap<String, Integer> ();
stat.put("AC", 0);
stat.put("WA", 0);
stat.put("TLE", 0);
stat.put("RE", 0);
Scanner in = new Scanner(System.in);
t = in.nextInt();
while(t-- > 0) {
String s = in.next();
stat.put(s, stat.get(s) + 1);
}
for(String s : new String[]{"AC", "WA", "TLE", "RE"}) {
System.out.printf("%s x %d\n", s, stat.get(s));
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
13,
30,
40,
13,
14,
4,
18,
13,
13,
30,
40,
13,
14,
4,
18,
13,
13,
30,
40,
13,
14,
4,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
126,
5
],
[
126,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
35,
37
],
[
8,
38
],
[
38,
39
],
[
38,
40
],
[
8,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
53,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
59,
64
],
[
64,
65
],
[
65,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
67,
72
],
[
72,
73
],
[
73,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
75,
80
],
[
80,
81
],
[
81,
82
],
[
75,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
83,
88
],
[
88,
89
],
[
89,
90
],
[
8,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
8,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
8,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
112,
113
],
[
112,
114
],
[
8,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
120,
121
],
[
120,
122
],
[
6,
123
],
[
123,
124
],
[
0,
125
],
[
125,
126
],
[
125,
127
]
]
| [
"import java.util.Scanner;\n \npublic class Main {\n public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n \n int N = sc.nextInt();\n \n String A = \"AC\";\n String B = \"WA\";\n String C = \"TLE\";\n String D = \"RE\";\n \n int C0 = 0;\n int C1 = 0;\n int C2 = 0;\n int C3 = 0;\n \n \n for(int i=0; i<=N; i++) {\n String H = sc.nextLine();\n if(H.equals(A)) {\n\t\t\t\tC0++;\n\t\t\t}else if(H.equals(B)) {\n\t\t\t\tC1++;\n\t\t\t}else if(H.equals(C)) {\n\t\t\t\tC2++;\n\t\t\t}else if(H.equals(D)) {\n\t\t\t\tC3++;\n\t\t\t}\n }\n System.out.println(\"AC x \" + C0);\n\t\tSystem.out.println(\"WA x \" + C1);\n\t\tSystem.out.println(\"TLE x \" + C2);\n\t\tSystem.out.println(\"RE x \" + C3);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n \n int N = sc.nextInt();\n \n String A = \"AC\";\n String B = \"WA\";\n String C = \"TLE\";\n String D = \"RE\";\n \n int C0 = 0;\n int C1 = 0;\n int C2 = 0;\n int C3 = 0;\n \n \n for(int i=0; i<=N; i++) {\n String H = sc.nextLine();\n if(H.equals(A)) {\n\t\t\t\tC0++;\n\t\t\t}else if(H.equals(B)) {\n\t\t\t\tC1++;\n\t\t\t}else if(H.equals(C)) {\n\t\t\t\tC2++;\n\t\t\t}else if(H.equals(D)) {\n\t\t\t\tC3++;\n\t\t\t}\n }\n System.out.println(\"AC x \" + C0);\n\t\tSystem.out.println(\"WA x \" + C1);\n\t\tSystem.out.println(\"TLE x \" + C2);\n\t\tSystem.out.println(\"RE x \" + C3);\n }\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n \n int N = sc.nextInt();\n \n String A = \"AC\";\n String B = \"WA\";\n String C = \"TLE\";\n String D = \"RE\";\n \n int C0 = 0;\n int C1 = 0;\n int C2 = 0;\n int C3 = 0;\n \n \n for(int i=0; i<=N; i++) {\n String H = sc.nextLine();\n if(H.equals(A)) {\n\t\t\t\tC0++;\n\t\t\t}else if(H.equals(B)) {\n\t\t\t\tC1++;\n\t\t\t}else if(H.equals(C)) {\n\t\t\t\tC2++;\n\t\t\t}else if(H.equals(D)) {\n\t\t\t\tC3++;\n\t\t\t}\n }\n System.out.println(\"AC x \" + C0);\n\t\tSystem.out.println(\"WA x \" + C1);\n\t\tSystem.out.println(\"TLE x \" + C2);\n\t\tSystem.out.println(\"RE x \" + C3);\n }",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n \n int N = sc.nextInt();\n \n String A = \"AC\";\n String B = \"WA\";\n String C = \"TLE\";\n String D = \"RE\";\n \n int C0 = 0;\n int C1 = 0;\n int C2 = 0;\n int C3 = 0;\n \n \n for(int i=0; i<=N; i++) {\n String H = sc.nextLine();\n if(H.equals(A)) {\n\t\t\t\tC0++;\n\t\t\t}else if(H.equals(B)) {\n\t\t\t\tC1++;\n\t\t\t}else if(H.equals(C)) {\n\t\t\t\tC2++;\n\t\t\t}else if(H.equals(D)) {\n\t\t\t\tC3++;\n\t\t\t}\n }\n System.out.println(\"AC x \" + C0);\n\t\tSystem.out.println(\"WA x \" + C1);\n\t\tSystem.out.println(\"TLE x \" + C2);\n\t\tSystem.out.println(\"RE x \" + C3);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String A = \"AC\";",
"A",
"\"AC\"",
"String B = \"WA\";",
"B",
"\"WA\"",
"String C = \"TLE\";",
"C",
"\"TLE\"",
"String D = \"RE\";",
"D",
"\"RE\"",
"int C0 = 0;",
"C0",
"0",
"int C1 = 0;",
"C1",
"0",
"int C2 = 0;",
"C2",
"0",
"int C3 = 0;",
"C3",
"0",
"for(int i=0; i<=N; i++) {\n String H = sc.nextLine();\n if(H.equals(A)) {\n\t\t\t\tC0++;\n\t\t\t}else if(H.equals(B)) {\n\t\t\t\tC1++;\n\t\t\t}else if(H.equals(C)) {\n\t\t\t\tC2++;\n\t\t\t}else if(H.equals(D)) {\n\t\t\t\tC3++;\n\t\t\t}\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<=N",
"i",
"N",
"i++",
"i++",
"i",
"{\n String H = sc.nextLine();\n if(H.equals(A)) {\n\t\t\t\tC0++;\n\t\t\t}else if(H.equals(B)) {\n\t\t\t\tC1++;\n\t\t\t}else if(H.equals(C)) {\n\t\t\t\tC2++;\n\t\t\t}else if(H.equals(D)) {\n\t\t\t\tC3++;\n\t\t\t}\n }",
"{\n String H = sc.nextLine();\n if(H.equals(A)) {\n\t\t\t\tC0++;\n\t\t\t}else if(H.equals(B)) {\n\t\t\t\tC1++;\n\t\t\t}else if(H.equals(C)) {\n\t\t\t\tC2++;\n\t\t\t}else if(H.equals(D)) {\n\t\t\t\tC3++;\n\t\t\t}\n }",
"String H = sc.nextLine();",
"H",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if(H.equals(A)) {\n\t\t\t\tC0++;\n\t\t\t}else if(H.equals(B)) {\n\t\t\t\tC1++;\n\t\t\t}else if(H.equals(C)) {\n\t\t\t\tC2++;\n\t\t\t}else if(H.equals(D)) {\n\t\t\t\tC3++;\n\t\t\t}",
"H.equals(A)",
"H.equals",
"H",
"A",
"{\n\t\t\t\tC0++;\n\t\t\t}",
"C0++",
"C0",
"if(H.equals(B)) {\n\t\t\t\tC1++;\n\t\t\t}else if(H.equals(C)) {\n\t\t\t\tC2++;\n\t\t\t}else if(H.equals(D)) {\n\t\t\t\tC3++;\n\t\t\t}",
"H.equals(B)",
"H.equals",
"H",
"B",
"{\n\t\t\t\tC1++;\n\t\t\t}",
"C1++",
"C1",
"if(H.equals(C)) {\n\t\t\t\tC2++;\n\t\t\t}else if(H.equals(D)) {\n\t\t\t\tC3++;\n\t\t\t}",
"H.equals(C)",
"H.equals",
"H",
"C",
"{\n\t\t\t\tC2++;\n\t\t\t}",
"C2++",
"C2",
"if(H.equals(D)) {\n\t\t\t\tC3++;\n\t\t\t}",
"H.equals(D)",
"H.equals",
"H",
"D",
"{\n\t\t\t\tC3++;\n\t\t\t}",
"C3++",
"C3",
"System.out.println(\"AC x \" + C0)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + C0",
"\"AC x \"",
"C0",
"System.out.println(\"WA x \" + C1)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + C1",
"\"WA x \"",
"C1",
"System.out.println(\"TLE x \" + C2)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + C2",
"\"TLE x \"",
"C2",
"System.out.println(\"RE x \" + C3)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + C3",
"\"RE x \"",
"C3",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n \n int N = sc.nextInt();\n \n String A = \"AC\";\n String B = \"WA\";\n String C = \"TLE\";\n String D = \"RE\";\n \n int C0 = 0;\n int C1 = 0;\n int C2 = 0;\n int C3 = 0;\n \n \n for(int i=0; i<=N; i++) {\n String H = sc.nextLine();\n if(H.equals(A)) {\n\t\t\t\tC0++;\n\t\t\t}else if(H.equals(B)) {\n\t\t\t\tC1++;\n\t\t\t}else if(H.equals(C)) {\n\t\t\t\tC2++;\n\t\t\t}else if(H.equals(D)) {\n\t\t\t\tC3++;\n\t\t\t}\n }\n System.out.println(\"AC x \" + C0);\n\t\tSystem.out.println(\"WA x \" + C1);\n\t\tSystem.out.println(\"TLE x \" + C2);\n\t\tSystem.out.println(\"RE x \" + C3);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n \n int N = sc.nextInt();\n \n String A = \"AC\";\n String B = \"WA\";\n String C = \"TLE\";\n String D = \"RE\";\n \n int C0 = 0;\n int C1 = 0;\n int C2 = 0;\n int C3 = 0;\n \n \n for(int i=0; i<=N; i++) {\n String H = sc.nextLine();\n if(H.equals(A)) {\n\t\t\t\tC0++;\n\t\t\t}else if(H.equals(B)) {\n\t\t\t\tC1++;\n\t\t\t}else if(H.equals(C)) {\n\t\t\t\tC2++;\n\t\t\t}else if(H.equals(D)) {\n\t\t\t\tC3++;\n\t\t\t}\n }\n System.out.println(\"AC x \" + C0);\n\t\tSystem.out.println(\"WA x \" + C1);\n\t\tSystem.out.println(\"TLE x \" + C2);\n\t\tSystem.out.println(\"RE x \" + C3);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
String A = "AC";
String B = "WA";
String C = "TLE";
String D = "RE";
int C0 = 0;
int C1 = 0;
int C2 = 0;
int C3 = 0;
for(int i=0; i<=N; i++) {
String H = sc.nextLine();
if(H.equals(A)) {
C0++;
}else if(H.equals(B)) {
C1++;
}else if(H.equals(C)) {
C2++;
}else if(H.equals(D)) {
C3++;
}
}
System.out.println("AC x " + C0);
System.out.println("WA x " + C1);
System.out.println("TLE x " + C2);
System.out.println("RE x " + C3);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
41,
13,
17,
41,
13,
40,
17,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
0,
18,
13,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
13,
17,
17,
14,
4,
18,
13,
17,
30,
0,
18,
13,
17,
17,
30,
0,
18,
13,
17,
17,
4,
18,
13,
2,
17,
18,
13,
17,
4,
18,
13,
2,
17,
18,
13,
17,
4,
18,
13,
2,
17,
18,
13,
17,
4,
18,
13,
2,
17,
18,
13,
17,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
220,
8
],
[
220,
9
],
[
9,
10
],
[
9,
11
],
[
220,
12
],
[
12,
13
],
[
12,
14
],
[
220,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
220,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
21,
25
],
[
25,
26
],
[
25,
27
],
[
21,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
21,
33
],
[
33,
34
],
[
33,
35
],
[
21,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
55,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
55,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
66,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
66,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
77,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
77,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
21,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
99,
101
],
[
21,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
107,
109
],
[
21,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
115,
117
],
[
21,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
123,
125
],
[
21,
126
],
[
126,
127
],
[
127,
128
],
[
19,
129
],
[
129,
130
],
[
220,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
131,
135
],
[
135,
136
],
[
131,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
131,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
146,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
156,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
145,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
131,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
175,
178
],
[
178,
179
],
[
131,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
184,
187
],
[
187,
188
],
[
131,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
193,
196
],
[
196,
197
],
[
131,
198
],
[
198,
199
],
[
198,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
200,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
204,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
214,
215
],
[
215,
216
],
[
200,
217
],
[
217,
218
],
[
0,
219
],
[
219,
220
],
[
219,
221
]
]
| [
"import java.io.*;\nimport java.util.*;\n \npublic class Main {\n static final long MOD = 1000000007L;\n static final int INF = 50000000;\n static final int NINF = -50000000;\n public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n PrintWriter pw = new PrintWriter(System.out);\n \n int N = sc.ni();\n int[] type = new int[4];\n for (int i = 0; i < N; i++) {\n \tString s = sc.next();\n \tif (s.equals(\"AC\")) {\n \t\ttype[0] += 1;\n \t} else if (s.equals(\"WA\")) {\n \t\ttype[1] += 1;\n \t} else if (s.equals(\"TLE\")) {\n \t\ttype[2] += 1;\n \t} else {\n \t\ttype[3] += 1;\n \t}\n }\n \n pw.println(\"AC x \" + type[0]);\n pw.println(\"WA x \" + type[1]);\n pw.println(\"TLE x \" + type[2]);\n pw.println(\"RE x \" + type[3]);\n \n pw.close();\n }\n \n static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int ni() {\n return Integer.parseInt(next());\n }\n \n long nl() {\n return Long.parseLong(next());\n }\n \n double nd() {\n return Double.parseDouble(next());\n }\n \n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n static final long MOD = 1000000007L;\n static final int INF = 50000000;\n static final int NINF = -50000000;\n public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n PrintWriter pw = new PrintWriter(System.out);\n \n int N = sc.ni();\n int[] type = new int[4];\n for (int i = 0; i < N; i++) {\n \tString s = sc.next();\n \tif (s.equals(\"AC\")) {\n \t\ttype[0] += 1;\n \t} else if (s.equals(\"WA\")) {\n \t\ttype[1] += 1;\n \t} else if (s.equals(\"TLE\")) {\n \t\ttype[2] += 1;\n \t} else {\n \t\ttype[3] += 1;\n \t}\n }\n \n pw.println(\"AC x \" + type[0]);\n pw.println(\"WA x \" + type[1]);\n pw.println(\"TLE x \" + type[2]);\n pw.println(\"RE x \" + type[3]);\n \n pw.close();\n }\n \n static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int ni() {\n return Integer.parseInt(next());\n }\n \n long nl() {\n return Long.parseLong(next());\n }\n \n double nd() {\n return Double.parseDouble(next());\n }\n \n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"Main",
"static final long MOD = 1000000007L;",
"MOD",
"1000000007L",
"static final int INF = 50000000;",
"INF",
"50000000",
"static final int NINF = -50000000;",
"NINF",
"-50000000",
"50000000",
"public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n PrintWriter pw = new PrintWriter(System.out);\n \n int N = sc.ni();\n int[] type = new int[4];\n for (int i = 0; i < N; i++) {\n \tString s = sc.next();\n \tif (s.equals(\"AC\")) {\n \t\ttype[0] += 1;\n \t} else if (s.equals(\"WA\")) {\n \t\ttype[1] += 1;\n \t} else if (s.equals(\"TLE\")) {\n \t\ttype[2] += 1;\n \t} else {\n \t\ttype[3] += 1;\n \t}\n }\n \n pw.println(\"AC x \" + type[0]);\n pw.println(\"WA x \" + type[1]);\n pw.println(\"TLE x \" + type[2]);\n pw.println(\"RE x \" + type[3]);\n \n pw.close();\n }",
"main",
"{\n FastScanner sc = new FastScanner();\n PrintWriter pw = new PrintWriter(System.out);\n \n int N = sc.ni();\n int[] type = new int[4];\n for (int i = 0; i < N; i++) {\n \tString s = sc.next();\n \tif (s.equals(\"AC\")) {\n \t\ttype[0] += 1;\n \t} else if (s.equals(\"WA\")) {\n \t\ttype[1] += 1;\n \t} else if (s.equals(\"TLE\")) {\n \t\ttype[2] += 1;\n \t} else {\n \t\ttype[3] += 1;\n \t}\n }\n \n pw.println(\"AC x \" + type[0]);\n pw.println(\"WA x \" + type[1]);\n pw.println(\"TLE x \" + type[2]);\n pw.println(\"RE x \" + type[3]);\n \n pw.close();\n }",
"FastScanner sc = new FastScanner();",
"sc",
"new FastScanner()",
"PrintWriter pw = new PrintWriter(System.out);",
"pw",
"new PrintWriter(System.out)",
"int N = sc.ni();",
"N",
"sc.ni()",
"sc.ni",
"sc",
"int[] type = new int[4];",
"type",
"new int[4]",
"4",
"for (int i = 0; i < N; i++) {\n \tString s = sc.next();\n \tif (s.equals(\"AC\")) {\n \t\ttype[0] += 1;\n \t} else if (s.equals(\"WA\")) {\n \t\ttype[1] += 1;\n \t} else if (s.equals(\"TLE\")) {\n \t\ttype[2] += 1;\n \t} else {\n \t\ttype[3] += 1;\n \t}\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n \tString s = sc.next();\n \tif (s.equals(\"AC\")) {\n \t\ttype[0] += 1;\n \t} else if (s.equals(\"WA\")) {\n \t\ttype[1] += 1;\n \t} else if (s.equals(\"TLE\")) {\n \t\ttype[2] += 1;\n \t} else {\n \t\ttype[3] += 1;\n \t}\n }",
"{\n \tString s = sc.next();\n \tif (s.equals(\"AC\")) {\n \t\ttype[0] += 1;\n \t} else if (s.equals(\"WA\")) {\n \t\ttype[1] += 1;\n \t} else if (s.equals(\"TLE\")) {\n \t\ttype[2] += 1;\n \t} else {\n \t\ttype[3] += 1;\n \t}\n }",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"if (s.equals(\"AC\")) {\n \t\ttype[0] += 1;\n \t} else if (s.equals(\"WA\")) {\n \t\ttype[1] += 1;\n \t} else if (s.equals(\"TLE\")) {\n \t\ttype[2] += 1;\n \t} else {\n \t\ttype[3] += 1;\n \t}",
"s.equals(\"AC\")",
"s.equals",
"s",
"\"AC\"",
"{\n \t\ttype[0] += 1;\n \t}",
"type[0] += 1",
"type[0]",
"type",
"0",
"1",
"if (s.equals(\"WA\")) {\n \t\ttype[1] += 1;\n \t} else if (s.equals(\"TLE\")) {\n \t\ttype[2] += 1;\n \t} else {\n \t\ttype[3] += 1;\n \t}",
"s.equals(\"WA\")",
"s.equals",
"s",
"\"WA\"",
"{\n \t\ttype[1] += 1;\n \t}",
"type[1] += 1",
"type[1]",
"type",
"1",
"1",
"if (s.equals(\"TLE\")) {\n \t\ttype[2] += 1;\n \t} else {\n \t\ttype[3] += 1;\n \t}",
"s.equals(\"TLE\")",
"s.equals",
"s",
"\"TLE\"",
"{\n \t\ttype[2] += 1;\n \t}",
"type[2] += 1",
"type[2]",
"type",
"2",
"1",
"{\n \t\ttype[3] += 1;\n \t}",
"type[3] += 1",
"type[3]",
"type",
"3",
"1",
"pw.println(\"AC x \" + type[0])",
"pw.println",
"pw",
"\"AC x \" + type[0]",
"\"AC x \"",
"type[0]",
"type",
"0",
"pw.println(\"WA x \" + type[1])",
"pw.println",
"pw",
"\"WA x \" + type[1]",
"\"WA x \"",
"type[1]",
"type",
"1",
"pw.println(\"TLE x \" + type[2])",
"pw.println",
"pw",
"\"TLE x \" + type[2]",
"\"TLE x \"",
"type[2]",
"type",
"2",
"pw.println(\"RE x \" + type[3])",
"pw.println",
"pw",
"\"RE x \" + type[3]",
"\"RE x \"",
"type[3]",
"type",
"3",
"pw.close()",
"pw.close",
"pw",
"String[] args",
"args",
"static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int ni() {\n return Integer.parseInt(next());\n }\n \n long nl() {\n return Long.parseLong(next());\n }\n \n double nd() {\n return Double.parseDouble(next());\n }\n \n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }",
"FastScanner",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"FastScanner",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int ni() {\n return Integer.parseInt(next());\n }",
"ni",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nl() {\n return Long.parseLong(next());\n }",
"nl",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nd() {\n return Double.parseDouble(next());\n }",
"nd",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\n static final long MOD = 1000000007L;\n static final int INF = 50000000;\n static final int NINF = -50000000;\n public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n PrintWriter pw = new PrintWriter(System.out);\n \n int N = sc.ni();\n int[] type = new int[4];\n for (int i = 0; i < N; i++) {\n \tString s = sc.next();\n \tif (s.equals(\"AC\")) {\n \t\ttype[0] += 1;\n \t} else if (s.equals(\"WA\")) {\n \t\ttype[1] += 1;\n \t} else if (s.equals(\"TLE\")) {\n \t\ttype[2] += 1;\n \t} else {\n \t\ttype[3] += 1;\n \t}\n }\n \n pw.println(\"AC x \" + type[0]);\n pw.println(\"WA x \" + type[1]);\n pw.println(\"TLE x \" + type[2]);\n pw.println(\"RE x \" + type[3]);\n \n pw.close();\n }\n \n static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int ni() {\n return Integer.parseInt(next());\n }\n \n long nl() {\n return Long.parseLong(next());\n }\n \n double nd() {\n return Double.parseDouble(next());\n }\n \n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"public class Main {\n static final long MOD = 1000000007L;\n static final int INF = 50000000;\n static final int NINF = -50000000;\n public static void main(String[] args) {\n FastScanner sc = new FastScanner();\n PrintWriter pw = new PrintWriter(System.out);\n \n int N = sc.ni();\n int[] type = new int[4];\n for (int i = 0; i < N; i++) {\n \tString s = sc.next();\n \tif (s.equals(\"AC\")) {\n \t\ttype[0] += 1;\n \t} else if (s.equals(\"WA\")) {\n \t\ttype[1] += 1;\n \t} else if (s.equals(\"TLE\")) {\n \t\ttype[2] += 1;\n \t} else {\n \t\ttype[3] += 1;\n \t}\n }\n \n pw.println(\"AC x \" + type[0]);\n pw.println(\"WA x \" + type[1]);\n pw.println(\"TLE x \" + type[2]);\n pw.println(\"RE x \" + type[3]);\n \n pw.close();\n }\n \n static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public FastScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int ni() {\n return Integer.parseInt(next());\n }\n \n long nl() {\n return Long.parseLong(next());\n }\n \n double nd() {\n return Double.parseDouble(next());\n }\n \n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main {
static final long MOD = 1000000007L;
static final int INF = 50000000;
static final int NINF = -50000000;
public static void main(String[] args) {
FastScanner sc = new FastScanner();
PrintWriter pw = new PrintWriter(System.out);
int N = sc.ni();
int[] type = new int[4];
for (int i = 0; i < N; i++) {
String s = sc.next();
if (s.equals("AC")) {
type[0] += 1;
} else if (s.equals("WA")) {
type[1] += 1;
} else if (s.equals("TLE")) {
type[2] += 1;
} else {
type[3] += 1;
}
}
pw.println("AC x " + type[0]);
pw.println("WA x " + type[1]);
pw.println("TLE x " + type[2]);
pw.println("RE x " + type[3]);
pw.close();
}
static class FastScanner {
BufferedReader br;
StringTokenizer st;
public FastScanner() {
br = new BufferedReader(new InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int ni() {
return Integer.parseInt(next());
}
long nl() {
return Long.parseLong(next());
}
double nd() {
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
35,
13,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
34,
1,
4,
18,
13,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
13,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
13,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
13,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
125,
5
],
[
125,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
47,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
47,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
47,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
47,
73
],
[
73,
74
],
[
8,
75
],
[
75,
76
],
[
76,
77
],
[
8,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
8,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
8,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
8,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
6,
122
],
[
122,
123
],
[
0,
124
],
[
124,
125
],
[
124,
126
]
]
| [
"import java.util.*;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int acCnt = 0;\n int waCnt = 0;\n int tleCnt = 0;\n int reCnt = 0;\n for (int i = 0; i < n; i++) {\n String result = sc.next();\n switch (result) {\n case \"AC\":\n acCnt++;\n break;\n case \"WA\":\n waCnt++;\n break;\n case \"TLE\":\n tleCnt++;\n break;\n case \"RE\":\n reCnt++;\n break;\n default:\n\n }\n }\n sc.close();\n System.out.println(\"AC x \" + String.valueOf(acCnt));\n System.out.println(\"WA x \" + String.valueOf(waCnt));\n System.out.println(\"TLE x \" + String.valueOf(tleCnt));\n System.out.println(\"RE x \" + String.valueOf(reCnt));\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int acCnt = 0;\n int waCnt = 0;\n int tleCnt = 0;\n int reCnt = 0;\n for (int i = 0; i < n; i++) {\n String result = sc.next();\n switch (result) {\n case \"AC\":\n acCnt++;\n break;\n case \"WA\":\n waCnt++;\n break;\n case \"TLE\":\n tleCnt++;\n break;\n case \"RE\":\n reCnt++;\n break;\n default:\n\n }\n }\n sc.close();\n System.out.println(\"AC x \" + String.valueOf(acCnt));\n System.out.println(\"WA x \" + String.valueOf(waCnt));\n System.out.println(\"TLE x \" + String.valueOf(tleCnt));\n System.out.println(\"RE x \" + String.valueOf(reCnt));\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int acCnt = 0;\n int waCnt = 0;\n int tleCnt = 0;\n int reCnt = 0;\n for (int i = 0; i < n; i++) {\n String result = sc.next();\n switch (result) {\n case \"AC\":\n acCnt++;\n break;\n case \"WA\":\n waCnt++;\n break;\n case \"TLE\":\n tleCnt++;\n break;\n case \"RE\":\n reCnt++;\n break;\n default:\n\n }\n }\n sc.close();\n System.out.println(\"AC x \" + String.valueOf(acCnt));\n System.out.println(\"WA x \" + String.valueOf(waCnt));\n System.out.println(\"TLE x \" + String.valueOf(tleCnt));\n System.out.println(\"RE x \" + String.valueOf(reCnt));\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int acCnt = 0;\n int waCnt = 0;\n int tleCnt = 0;\n int reCnt = 0;\n for (int i = 0; i < n; i++) {\n String result = sc.next();\n switch (result) {\n case \"AC\":\n acCnt++;\n break;\n case \"WA\":\n waCnt++;\n break;\n case \"TLE\":\n tleCnt++;\n break;\n case \"RE\":\n reCnt++;\n break;\n default:\n\n }\n }\n sc.close();\n System.out.println(\"AC x \" + String.valueOf(acCnt));\n System.out.println(\"WA x \" + String.valueOf(waCnt));\n System.out.println(\"TLE x \" + String.valueOf(tleCnt));\n System.out.println(\"RE x \" + String.valueOf(reCnt));\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int acCnt = 0;",
"acCnt",
"0",
"int waCnt = 0;",
"waCnt",
"0",
"int tleCnt = 0;",
"tleCnt",
"0",
"int reCnt = 0;",
"reCnt",
"0",
"for (int i = 0; i < n; i++) {\n String result = sc.next();\n switch (result) {\n case \"AC\":\n acCnt++;\n break;\n case \"WA\":\n waCnt++;\n break;\n case \"TLE\":\n tleCnt++;\n break;\n case \"RE\":\n reCnt++;\n break;\n default:\n\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String result = sc.next();\n switch (result) {\n case \"AC\":\n acCnt++;\n break;\n case \"WA\":\n waCnt++;\n break;\n case \"TLE\":\n tleCnt++;\n break;\n case \"RE\":\n reCnt++;\n break;\n default:\n\n }\n }",
"{\n String result = sc.next();\n switch (result) {\n case \"AC\":\n acCnt++;\n break;\n case \"WA\":\n waCnt++;\n break;\n case \"TLE\":\n tleCnt++;\n break;\n case \"RE\":\n reCnt++;\n break;\n default:\n\n }\n }",
"String result = sc.next();",
"result",
"sc.next()",
"sc.next",
"sc",
"switch (result) {\n case \"AC\":\n acCnt++;\n break;\n case \"WA\":\n waCnt++;\n break;\n case \"TLE\":\n tleCnt++;\n break;\n case \"RE\":\n reCnt++;\n break;\n default:\n\n }",
"result",
"case \"AC\":",
"\"AC\"",
"case \"AC\":",
"acCnt++",
"acCnt",
"break;",
"case \"WA\":",
"\"WA\"",
"case \"WA\":",
"waCnt++",
"waCnt",
"break;",
"case \"TLE\":",
"\"TLE\"",
"case \"TLE\":",
"tleCnt++",
"tleCnt",
"break;",
"case \"RE\":",
"\"RE\"",
"case \"RE\":",
"reCnt++",
"reCnt",
"break;",
"default:",
"default:",
"sc.close()",
"sc.close",
"sc",
"System.out.println(\"AC x \" + String.valueOf(acCnt))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + String.valueOf(acCnt)",
"\"AC x \"",
"String.valueOf(acCnt)",
"String.valueOf",
"String",
"acCnt",
"System.out.println(\"WA x \" + String.valueOf(waCnt))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + String.valueOf(waCnt)",
"\"WA x \"",
"String.valueOf(waCnt)",
"String.valueOf",
"String",
"waCnt",
"System.out.println(\"TLE x \" + String.valueOf(tleCnt))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + String.valueOf(tleCnt)",
"\"TLE x \"",
"String.valueOf(tleCnt)",
"String.valueOf",
"String",
"tleCnt",
"System.out.println(\"RE x \" + String.valueOf(reCnt))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + String.valueOf(reCnt)",
"\"RE x \"",
"String.valueOf(reCnt)",
"String.valueOf",
"String",
"reCnt",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int acCnt = 0;\n int waCnt = 0;\n int tleCnt = 0;\n int reCnt = 0;\n for (int i = 0; i < n; i++) {\n String result = sc.next();\n switch (result) {\n case \"AC\":\n acCnt++;\n break;\n case \"WA\":\n waCnt++;\n break;\n case \"TLE\":\n tleCnt++;\n break;\n case \"RE\":\n reCnt++;\n break;\n default:\n\n }\n }\n sc.close();\n System.out.println(\"AC x \" + String.valueOf(acCnt));\n System.out.println(\"WA x \" + String.valueOf(waCnt));\n System.out.println(\"TLE x \" + String.valueOf(tleCnt));\n System.out.println(\"RE x \" + String.valueOf(reCnt));\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int acCnt = 0;\n int waCnt = 0;\n int tleCnt = 0;\n int reCnt = 0;\n for (int i = 0; i < n; i++) {\n String result = sc.next();\n switch (result) {\n case \"AC\":\n acCnt++;\n break;\n case \"WA\":\n waCnt++;\n break;\n case \"TLE\":\n tleCnt++;\n break;\n case \"RE\":\n reCnt++;\n break;\n default:\n\n }\n }\n sc.close();\n System.out.println(\"AC x \" + String.valueOf(acCnt));\n System.out.println(\"WA x \" + String.valueOf(waCnt));\n System.out.println(\"TLE x \" + String.valueOf(tleCnt));\n System.out.println(\"RE x \" + String.valueOf(reCnt));\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int acCnt = 0;
int waCnt = 0;
int tleCnt = 0;
int reCnt = 0;
for (int i = 0; i < n; i++) {
String result = sc.next();
switch (result) {
case "AC":
acCnt++;
break;
case "WA":
waCnt++;
break;
case "TLE":
tleCnt++;
break;
case "RE":
reCnt++;
break;
default:
}
}
sc.close();
System.out.println("AC x " + String.valueOf(acCnt));
System.out.println("WA x " + String.valueOf(waCnt));
System.out.println("TLE x " + String.valueOf(tleCnt));
System.out.println("RE x " + String.valueOf(reCnt));
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
18,
13,
13,
14,
4,
18,
13,
13,
30,
40,
13,
14,
4,
18,
13,
13,
30,
40,
13,
14,
4,
18,
13,
13,
30,
40,
13,
14,
4,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
2,
2,
17,
17,
13,
4,
18,
18,
13,
13,
2,
2,
17,
17,
13,
4,
18,
18,
13,
13,
2,
2,
17,
17,
13,
4,
18,
18,
13,
13,
2,
2,
17,
17,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
26,
27
],
[
26,
28
],
[
21,
29
],
[
29,
30
],
[
30,
31
],
[
21,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
47,
49
],
[
8,
50
],
[
50,
51
],
[
50,
52
],
[
8,
53
],
[
53,
54
],
[
53,
55
],
[
8,
56
],
[
56,
57
],
[
56,
58
],
[
8,
59
],
[
59,
60
],
[
59,
61
],
[
8,
62
],
[
62,
63
],
[
62,
64
],
[
8,
65
],
[
65,
66
],
[
8,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
67,
78
],
[
79,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
79,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
85,
90
],
[
90,
91
],
[
91,
92
],
[
85,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
93,
98
],
[
98,
99
],
[
99,
100
],
[
93,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
101,
106
],
[
106,
107
],
[
107,
108
],
[
101,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
109,
114
],
[
114,
115
],
[
115,
116
],
[
8,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
123,
123
],
[
123,
124
],
[
123,
125
],
[
123,
126
],
[
8,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
133,
133
],
[
133,
134
],
[
133,
135
],
[
133,
136
],
[
8,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
137,
142
],
[
143,
143
],
[
143,
144
],
[
143,
145
],
[
143,
146
],
[
8,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
147,
152
],
[
153,
153
],
[
153,
154
],
[
153,
155
],
[
153,
156
],
[
6,
157
],
[
157,
158
]
]
| [
"import java.util.*;\n\nclass Main {\n\tpublic static void main (String[] args) {\n \tScanner sc = new Scanner(System.in);\n \tint n = sc.nextInt();\n \n \tString[] result = new String[n];\n \tfor (int i = 0; i<n; i++) {result[i] = sc.next();}\n \n \tint c0 = 0;\n \tint c1 = 0;\n \tint c2 = 0;\n \tint c3 = 0;\n \tString ac = \"AC\";\n \tString wa = \"WA\";\n \tString tle = \"TLE\";\n \tString re = \"RE\";\n \tString s;\n \tfor (int i=0; i<n; i++) {\n \ts = result[i];\n \t\n \tif (s.equals(ac)) {c0++;}\n \telse if (s.equals(wa)) {c1++;}\n \telse if (s.equals(tle)) {c2++;}\n \telse if (s.equals(re)) {c3++;}\n }\n \t\n \tSystem.out.println(\"AC\" + \" x \" + c0);\n \tSystem.out.println(\"WA\" + \" x \" + c1);\n \tSystem.out.println(\"TLE\" + \" x \" + c2);\n \tSystem.out.println(\"RE\" + \" x \" + c3);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n\tpublic static void main (String[] args) {\n \tScanner sc = new Scanner(System.in);\n \tint n = sc.nextInt();\n \n \tString[] result = new String[n];\n \tfor (int i = 0; i<n; i++) {result[i] = sc.next();}\n \n \tint c0 = 0;\n \tint c1 = 0;\n \tint c2 = 0;\n \tint c3 = 0;\n \tString ac = \"AC\";\n \tString wa = \"WA\";\n \tString tle = \"TLE\";\n \tString re = \"RE\";\n \tString s;\n \tfor (int i=0; i<n; i++) {\n \ts = result[i];\n \t\n \tif (s.equals(ac)) {c0++;}\n \telse if (s.equals(wa)) {c1++;}\n \telse if (s.equals(tle)) {c2++;}\n \telse if (s.equals(re)) {c3++;}\n }\n \t\n \tSystem.out.println(\"AC\" + \" x \" + c0);\n \tSystem.out.println(\"WA\" + \" x \" + c1);\n \tSystem.out.println(\"TLE\" + \" x \" + c2);\n \tSystem.out.println(\"RE\" + \" x \" + c3);\n }\n}",
"Main",
"public static void main (String[] args) {\n \tScanner sc = new Scanner(System.in);\n \tint n = sc.nextInt();\n \n \tString[] result = new String[n];\n \tfor (int i = 0; i<n; i++) {result[i] = sc.next();}\n \n \tint c0 = 0;\n \tint c1 = 0;\n \tint c2 = 0;\n \tint c3 = 0;\n \tString ac = \"AC\";\n \tString wa = \"WA\";\n \tString tle = \"TLE\";\n \tString re = \"RE\";\n \tString s;\n \tfor (int i=0; i<n; i++) {\n \ts = result[i];\n \t\n \tif (s.equals(ac)) {c0++;}\n \telse if (s.equals(wa)) {c1++;}\n \telse if (s.equals(tle)) {c2++;}\n \telse if (s.equals(re)) {c3++;}\n }\n \t\n \tSystem.out.println(\"AC\" + \" x \" + c0);\n \tSystem.out.println(\"WA\" + \" x \" + c1);\n \tSystem.out.println(\"TLE\" + \" x \" + c2);\n \tSystem.out.println(\"RE\" + \" x \" + c3);\n }",
"main",
"{\n \tScanner sc = new Scanner(System.in);\n \tint n = sc.nextInt();\n \n \tString[] result = new String[n];\n \tfor (int i = 0; i<n; i++) {result[i] = sc.next();}\n \n \tint c0 = 0;\n \tint c1 = 0;\n \tint c2 = 0;\n \tint c3 = 0;\n \tString ac = \"AC\";\n \tString wa = \"WA\";\n \tString tle = \"TLE\";\n \tString re = \"RE\";\n \tString s;\n \tfor (int i=0; i<n; i++) {\n \ts = result[i];\n \t\n \tif (s.equals(ac)) {c0++;}\n \telse if (s.equals(wa)) {c1++;}\n \telse if (s.equals(tle)) {c2++;}\n \telse if (s.equals(re)) {c3++;}\n }\n \t\n \tSystem.out.println(\"AC\" + \" x \" + c0);\n \tSystem.out.println(\"WA\" + \" x \" + c1);\n \tSystem.out.println(\"TLE\" + \" x \" + c2);\n \tSystem.out.println(\"RE\" + \" x \" + c3);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String[] result = new String[n];",
"result",
"new String[n]",
"n",
"for (int i = 0; i<n; i++) {result[i] = sc.next();}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{result[i] = sc.next();}",
"{result[i] = sc.next();}",
"result[i] = sc.next()",
"result[i]",
"result",
"i",
"sc.next()",
"sc.next",
"sc",
"int c0 = 0;",
"c0",
"0",
"int c1 = 0;",
"c1",
"0",
"int c2 = 0;",
"c2",
"0",
"int c3 = 0;",
"c3",
"0",
"String ac = \"AC\";",
"ac",
"\"AC\"",
"String wa = \"WA\";",
"wa",
"\"WA\"",
"String tle = \"TLE\";",
"tle",
"\"TLE\"",
"String re = \"RE\";",
"re",
"\"RE\"",
"String s;",
"s",
"for (int i=0; i<n; i++) {\n \ts = result[i];\n \t\n \tif (s.equals(ac)) {c0++;}\n \telse if (s.equals(wa)) {c1++;}\n \telse if (s.equals(tle)) {c2++;}\n \telse if (s.equals(re)) {c3++;}\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \ts = result[i];\n \t\n \tif (s.equals(ac)) {c0++;}\n \telse if (s.equals(wa)) {c1++;}\n \telse if (s.equals(tle)) {c2++;}\n \telse if (s.equals(re)) {c3++;}\n }",
"{\n \ts = result[i];\n \t\n \tif (s.equals(ac)) {c0++;}\n \telse if (s.equals(wa)) {c1++;}\n \telse if (s.equals(tle)) {c2++;}\n \telse if (s.equals(re)) {c3++;}\n }",
"s = result[i]",
"s",
"result[i]",
"result",
"i",
"if (s.equals(ac)) {c0++;}\n \telse if (s.equals(wa)) {c1++;}\n \telse if (s.equals(tle)) {c2++;}\n \telse if (s.equals(re)) {c3++;}",
"s.equals(ac)",
"s.equals",
"s",
"ac",
"{c0++;}",
"c0++",
"c0",
"if (s.equals(wa)) {c1++;}\n \telse if (s.equals(tle)) {c2++;}\n \telse if (s.equals(re)) {c3++;}",
"s.equals(wa)",
"s.equals",
"s",
"wa",
"{c1++;}",
"c1++",
"c1",
"if (s.equals(tle)) {c2++;}\n \telse if (s.equals(re)) {c3++;}",
"s.equals(tle)",
"s.equals",
"s",
"tle",
"{c2++;}",
"c2++",
"c2",
"if (s.equals(re)) {c3++;}",
"s.equals(re)",
"s.equals",
"s",
"re",
"{c3++;}",
"c3++",
"c3",
"System.out.println(\"AC\" + \" x \" + c0)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC\" + \" x \" + c0",
"\"AC\" + \" x \" + c0",
"\"AC\"",
"\" x \"",
"c0",
"System.out.println(\"WA\" + \" x \" + c1)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA\" + \" x \" + c1",
"\"WA\" + \" x \" + c1",
"\"WA\"",
"\" x \"",
"c1",
"System.out.println(\"TLE\" + \" x \" + c2)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE\" + \" x \" + c2",
"\"TLE\" + \" x \" + c2",
"\"TLE\"",
"\" x \"",
"c2",
"System.out.println(\"RE\" + \" x \" + c3)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE\" + \" x \" + c3",
"\"RE\" + \" x \" + c3",
"\"RE\"",
"\" x \"",
"c3",
"String[] args",
"args"
]
| import java.util.*;
class Main {
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
String[] result = new String[n];
for (int i = 0; i<n; i++) {result[i] = sc.next();}
int c0 = 0;
int c1 = 0;
int c2 = 0;
int c3 = 0;
String ac = "AC";
String wa = "WA";
String tle = "TLE";
String re = "RE";
String s;
for (int i=0; i<n; i++) {
s = result[i];
if (s.equals(ac)) {c0++;}
else if (s.equals(wa)) {c1++;}
else if (s.equals(tle)) {c2++;}
else if (s.equals(re)) {c3++;}
}
System.out.println("AC" + " x " + c0);
System.out.println("WA" + " x " + c1);
System.out.println("TLE" + " x " + c2);
System.out.println("RE" + " x " + c3);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
40,
18,
13,
17,
14,
4,
18,
13,
17,
30,
40,
18,
13,
17,
14,
4,
18,
13,
17,
30,
40,
18,
13,
17,
30,
40,
18,
13,
17,
4,
18,
13,
17,
18,
13,
17,
18,
13,
17,
18,
13,
17,
18,
13,
17,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
38,
5,
13,
30,
29,
17,
30,
42,
40,
4,
18,
13,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
29,
17,
0,
13,
20,
29,
17,
12,
13,
30,
14,
40,
4,
13,
30,
37,
20,
29,
4,
18,
13,
17,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
28,
29
],
[
28,
30
],
[
0,
31
],
[
238,
32
],
[
238,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
35,
46
],
[
46,
47
],
[
46,
48
],
[
35,
49
],
[
49,
50
],
[
49,
51
],
[
35,
52
],
[
52,
53
],
[
52,
54
],
[
35,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
55,
59
],
[
55,
60
],
[
35,
61
],
[
61,
62
],
[
62,
63
],
[
33,
64
],
[
64,
65
],
[
238,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
70,
76
],
[
76,
77
],
[
76,
78
],
[
70,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
80,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
92,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
98,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
98,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
108,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
108,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
119,
122
],
[
118,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
118,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
70,
133
],
[
133,
134
],
[
134,
135
],
[
133,
136
],
[
133,
137
],
[
137,
138
],
[
137,
139
],
[
133,
140
],
[
140,
141
],
[
140,
142
],
[
133,
143
],
[
143,
144
],
[
143,
145
],
[
133,
146
],
[
146,
147
],
[
146,
148
],
[
68,
149
],
[
149,
150
],
[
68,
151
],
[
151,
152
],
[
68,
153
],
[
153,
154
],
[
238,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
155,
159
],
[
159,
160
],
[
155,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
163,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
167,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
161,
178
],
[
178,
179
],
[
155,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
187,
188
],
[
183,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
190,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
199,
200
],
[
195,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
201,
205
],
[
205,
206
],
[
206,
207
],
[
195,
208
],
[
208,
209
],
[
208,
210
],
[
189,
211
],
[
211,
212
],
[
155,
213
],
[
213,
214
],
[
213,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
216,
220
],
[
220,
221
],
[
221,
222
],
[
215,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
224,
227
],
[
155,
228
],
[
228,
229
],
[
228,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
232,
235
],
[
235,
236
],
[
0,
237
],
[
237,
238
],
[
237,
239
]
]
| [
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\nimport java.io.IOException;\nimport java.util.InputMismatchException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n */\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tInput in = new Input(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tBJudgeStatusSummary solver = new BJudgeStatusSummary();\n\t\tsolver.solve(1, in, out);\n\t\tout.close();\n\t}\n\tstatic class BJudgeStatusSummary {\n\t\tpublic void solve(int testNumber, Input in, PrintWriter out) {\n\t\t\tint n = in.nextInt();\n\t\t\tint[] arr = new int[4];\n\t\t\tfor(int i = 0; i<n; i++) {\n\t\t\t\tString s = in.next();\n\t\t\t\tif(s.equals(\"AC\")) {\n\t\t\t\t\tarr[0]++;\n\t\t\t\t}else if(s.equals(\"WA\")) {\n\t\t\t\t\tarr[1]++;\n\t\t\t\t}else if(s.equals(\"TLE\")) {\n\t\t\t\t\tarr[2]++;\n\t\t\t\t}else {\n\t\t\t\t\tarr[3]++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tout.printf(\"AC x %d\\nWA x %d\\nTLE x %d\\nRE x %d\\n\", arr[0], arr[1], arr[2], arr[3]);\n\t\t}\n\n\t}\n\n\tstatic class Input {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic Input(InputStream is) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(is));\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t}catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\tpublic boolean hasNext() {\n\t\t\ttry {\n\t\t\t\twhile(!st.hasMoreTokens()) {\n\t\t\t\t\tString s = br.readLine();\n\t\t\t\t\tif(s==null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(s);\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}catch(Exception e) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif(!hasNext()) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\treturn st.nextToken(\"\\r\\n\\t\\f \");\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t}\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.InputMismatchException;",
"InputMismatchException",
"java.util",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tInput in = new Input(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tBJudgeStatusSummary solver = new BJudgeStatusSummary();\n\t\tsolver.solve(1, in, out);\n\t\tout.close();\n\t}\n\tstatic class BJudgeStatusSummary {\n\t\tpublic void solve(int testNumber, Input in, PrintWriter out) {\n\t\t\tint n = in.nextInt();\n\t\t\tint[] arr = new int[4];\n\t\t\tfor(int i = 0; i<n; i++) {\n\t\t\t\tString s = in.next();\n\t\t\t\tif(s.equals(\"AC\")) {\n\t\t\t\t\tarr[0]++;\n\t\t\t\t}else if(s.equals(\"WA\")) {\n\t\t\t\t\tarr[1]++;\n\t\t\t\t}else if(s.equals(\"TLE\")) {\n\t\t\t\t\tarr[2]++;\n\t\t\t\t}else {\n\t\t\t\t\tarr[3]++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tout.printf(\"AC x %d\\nWA x %d\\nTLE x %d\\nRE x %d\\n\", arr[0], arr[1], arr[2], arr[3]);\n\t\t}\n\n\t}\n\n\tstatic class Input {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic Input(InputStream is) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(is));\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t}catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\tpublic boolean hasNext() {\n\t\t\ttry {\n\t\t\t\twhile(!st.hasMoreTokens()) {\n\t\t\t\t\tString s = br.readLine();\n\t\t\t\t\tif(s==null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(s);\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}catch(Exception e) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif(!hasNext()) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\treturn st.nextToken(\"\\r\\n\\t\\f \");\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tInput in = new Input(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tBJudgeStatusSummary solver = new BJudgeStatusSummary();\n\t\tsolver.solve(1, in, out);\n\t\tout.close();\n\t}",
"main",
"{\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tInput in = new Input(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tBJudgeStatusSummary solver = new BJudgeStatusSummary();\n\t\tsolver.solve(1, in, out);\n\t\tout.close();\n\t}",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"Input in = new Input(inputStream);",
"in",
"new Input(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"BJudgeStatusSummary solver = new BJudgeStatusSummary();",
"solver",
"new BJudgeStatusSummary()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class BJudgeStatusSummary {\n\t\tpublic void solve(int testNumber, Input in, PrintWriter out) {\n\t\t\tint n = in.nextInt();\n\t\t\tint[] arr = new int[4];\n\t\t\tfor(int i = 0; i<n; i++) {\n\t\t\t\tString s = in.next();\n\t\t\t\tif(s.equals(\"AC\")) {\n\t\t\t\t\tarr[0]++;\n\t\t\t\t}else if(s.equals(\"WA\")) {\n\t\t\t\t\tarr[1]++;\n\t\t\t\t}else if(s.equals(\"TLE\")) {\n\t\t\t\t\tarr[2]++;\n\t\t\t\t}else {\n\t\t\t\t\tarr[3]++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tout.printf(\"AC x %d\\nWA x %d\\nTLE x %d\\nRE x %d\\n\", arr[0], arr[1], arr[2], arr[3]);\n\t\t}\n\n\t}",
"BJudgeStatusSummary",
"public void solve(int testNumber, Input in, PrintWriter out) {\n\t\t\tint n = in.nextInt();\n\t\t\tint[] arr = new int[4];\n\t\t\tfor(int i = 0; i<n; i++) {\n\t\t\t\tString s = in.next();\n\t\t\t\tif(s.equals(\"AC\")) {\n\t\t\t\t\tarr[0]++;\n\t\t\t\t}else if(s.equals(\"WA\")) {\n\t\t\t\t\tarr[1]++;\n\t\t\t\t}else if(s.equals(\"TLE\")) {\n\t\t\t\t\tarr[2]++;\n\t\t\t\t}else {\n\t\t\t\t\tarr[3]++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tout.printf(\"AC x %d\\nWA x %d\\nTLE x %d\\nRE x %d\\n\", arr[0], arr[1], arr[2], arr[3]);\n\t\t}",
"solve",
"{\n\t\t\tint n = in.nextInt();\n\t\t\tint[] arr = new int[4];\n\t\t\tfor(int i = 0; i<n; i++) {\n\t\t\t\tString s = in.next();\n\t\t\t\tif(s.equals(\"AC\")) {\n\t\t\t\t\tarr[0]++;\n\t\t\t\t}else if(s.equals(\"WA\")) {\n\t\t\t\t\tarr[1]++;\n\t\t\t\t}else if(s.equals(\"TLE\")) {\n\t\t\t\t\tarr[2]++;\n\t\t\t\t}else {\n\t\t\t\t\tarr[3]++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tout.printf(\"AC x %d\\nWA x %d\\nTLE x %d\\nRE x %d\\n\", arr[0], arr[1], arr[2], arr[3]);\n\t\t}",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"int[] arr = new int[4];",
"arr",
"new int[4]",
"4",
"for(int i = 0; i<n; i++) {\n\t\t\t\tString s = in.next();\n\t\t\t\tif(s.equals(\"AC\")) {\n\t\t\t\t\tarr[0]++;\n\t\t\t\t}else if(s.equals(\"WA\")) {\n\t\t\t\t\tarr[1]++;\n\t\t\t\t}else if(s.equals(\"TLE\")) {\n\t\t\t\t\tarr[2]++;\n\t\t\t\t}else {\n\t\t\t\t\tarr[3]++;\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tString s = in.next();\n\t\t\t\tif(s.equals(\"AC\")) {\n\t\t\t\t\tarr[0]++;\n\t\t\t\t}else if(s.equals(\"WA\")) {\n\t\t\t\t\tarr[1]++;\n\t\t\t\t}else if(s.equals(\"TLE\")) {\n\t\t\t\t\tarr[2]++;\n\t\t\t\t}else {\n\t\t\t\t\tarr[3]++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tString s = in.next();\n\t\t\t\tif(s.equals(\"AC\")) {\n\t\t\t\t\tarr[0]++;\n\t\t\t\t}else if(s.equals(\"WA\")) {\n\t\t\t\t\tarr[1]++;\n\t\t\t\t}else if(s.equals(\"TLE\")) {\n\t\t\t\t\tarr[2]++;\n\t\t\t\t}else {\n\t\t\t\t\tarr[3]++;\n\t\t\t\t}\n\t\t\t}",
"String s = in.next();",
"s",
"in.next()",
"in.next",
"in",
"if(s.equals(\"AC\")) {\n\t\t\t\t\tarr[0]++;\n\t\t\t\t}else if(s.equals(\"WA\")) {\n\t\t\t\t\tarr[1]++;\n\t\t\t\t}else if(s.equals(\"TLE\")) {\n\t\t\t\t\tarr[2]++;\n\t\t\t\t}else {\n\t\t\t\t\tarr[3]++;\n\t\t\t\t}",
"s.equals(\"AC\")",
"s.equals",
"s",
"\"AC\"",
"{\n\t\t\t\t\tarr[0]++;\n\t\t\t\t}",
"arr[0]++",
"arr[0]",
"arr",
"0",
"if(s.equals(\"WA\")) {\n\t\t\t\t\tarr[1]++;\n\t\t\t\t}else if(s.equals(\"TLE\")) {\n\t\t\t\t\tarr[2]++;\n\t\t\t\t}else {\n\t\t\t\t\tarr[3]++;\n\t\t\t\t}",
"s.equals(\"WA\")",
"s.equals",
"s",
"\"WA\"",
"{\n\t\t\t\t\tarr[1]++;\n\t\t\t\t}",
"arr[1]++",
"arr[1]",
"arr",
"1",
"if(s.equals(\"TLE\")) {\n\t\t\t\t\tarr[2]++;\n\t\t\t\t}else {\n\t\t\t\t\tarr[3]++;\n\t\t\t\t}",
"s.equals(\"TLE\")",
"s.equals",
"s",
"\"TLE\"",
"{\n\t\t\t\t\tarr[2]++;\n\t\t\t\t}",
"arr[2]++",
"arr[2]",
"arr",
"2",
"{\n\t\t\t\t\tarr[3]++;\n\t\t\t\t}",
"arr[3]++",
"arr[3]",
"arr",
"3",
"out.printf(\"AC x %d\\nWA x %d\\nTLE x %d\\nRE x %d\\n\", arr[0], arr[1], arr[2], arr[3])",
"out.printf",
"out",
"\"AC x %d\\nWA x %d\\nTLE x %d\\nRE x %d\\n\"",
"arr[0]",
"arr",
"0",
"arr[1]",
"arr",
"1",
"arr[2]",
"arr",
"2",
"arr[3]",
"arr",
"3",
"int testNumber",
"testNumber",
"Input in",
"in",
"PrintWriter out",
"out",
"static class Input {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic Input(InputStream is) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(is));\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t}catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\tpublic boolean hasNext() {\n\t\t\ttry {\n\t\t\t\twhile(!st.hasMoreTokens()) {\n\t\t\t\t\tString s = br.readLine();\n\t\t\t\t\tif(s==null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(s);\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}catch(Exception e) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif(!hasNext()) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\treturn st.nextToken(\"\\r\\n\\t\\f \");\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t}",
"Input",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public Input(InputStream is) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(is));\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t}catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"Input",
"{\n\t\t\tbr = new BufferedReader(new InputStreamReader(is));\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t}catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"br = new BufferedReader(new InputStreamReader(is))",
"br",
"new BufferedReader(new InputStreamReader(is))",
"try {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t}catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"IOException e",
"{\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t}",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"InputStream is",
"is",
"public boolean hasNext() {\n\t\t\ttry {\n\t\t\t\twhile(!st.hasMoreTokens()) {\n\t\t\t\t\tString s = br.readLine();\n\t\t\t\t\tif(s==null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(s);\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}catch(Exception e) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"hasNext",
"{\n\t\t\ttry {\n\t\t\t\twhile(!st.hasMoreTokens()) {\n\t\t\t\t\tString s = br.readLine();\n\t\t\t\t\tif(s==null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(s);\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}catch(Exception e) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"try {\n\t\t\t\twhile(!st.hasMoreTokens()) {\n\t\t\t\t\tString s = br.readLine();\n\t\t\t\t\tif(s==null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(s);\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}catch(Exception e) {\n\t\t\t\treturn false;\n\t\t\t}",
"catch(Exception e) {\n\t\t\t\treturn false;\n\t\t\t}",
"Exception e",
"{\n\t\t\t\treturn false;\n\t\t\t}",
"return false;",
"false",
"{\n\t\t\t\twhile(!st.hasMoreTokens()) {\n\t\t\t\t\tString s = br.readLine();\n\t\t\t\t\tif(s==null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(s);\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}",
"while(!st.hasMoreTokens()) {\n\t\t\t\t\tString s = br.readLine();\n\t\t\t\t\tif(s==null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(s);\n\t\t\t\t}",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n\t\t\t\t\tString s = br.readLine();\n\t\t\t\t\tif(s==null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(s);\n\t\t\t\t}",
"String s = br.readLine();",
"s",
"br.readLine()",
"br.readLine",
"br",
"if(s==null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}",
"s==null",
"s",
"null",
"{\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}",
"return false;",
"false",
"st = new StringTokenizer(s)",
"st",
"new StringTokenizer(s)",
"return true;",
"true",
"public String next() {\n\t\t\tif(!hasNext()) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\treturn st.nextToken(\"\\r\\n\\t\\f \");\n\t\t}",
"next",
"{\n\t\t\tif(!hasNext()) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\treturn st.nextToken(\"\\r\\n\\t\\f \");\n\t\t}",
"if(!hasNext()) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}",
"!hasNext()",
"hasNext()",
"hasNext",
"{\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}",
"throw new InputMismatchException();",
"new InputMismatchException()",
"return st.nextToken(\"\\r\\n\\t\\f \");",
"st.nextToken(\"\\r\\n\\t\\f \")",
"st.nextToken",
"st",
"\"\\r\\n\\t\\f \"",
"public int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"nextInt",
"{\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tInput in = new Input(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tBJudgeStatusSummary solver = new BJudgeStatusSummary();\n\t\tsolver.solve(1, in, out);\n\t\tout.close();\n\t}\n\tstatic class BJudgeStatusSummary {\n\t\tpublic void solve(int testNumber, Input in, PrintWriter out) {\n\t\t\tint n = in.nextInt();\n\t\t\tint[] arr = new int[4];\n\t\t\tfor(int i = 0; i<n; i++) {\n\t\t\t\tString s = in.next();\n\t\t\t\tif(s.equals(\"AC\")) {\n\t\t\t\t\tarr[0]++;\n\t\t\t\t}else if(s.equals(\"WA\")) {\n\t\t\t\t\tarr[1]++;\n\t\t\t\t}else if(s.equals(\"TLE\")) {\n\t\t\t\t\tarr[2]++;\n\t\t\t\t}else {\n\t\t\t\t\tarr[3]++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tout.printf(\"AC x %d\\nWA x %d\\nTLE x %d\\nRE x %d\\n\", arr[0], arr[1], arr[2], arr[3]);\n\t\t}\n\n\t}\n\n\tstatic class Input {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic Input(InputStream is) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(is));\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t}catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\tpublic boolean hasNext() {\n\t\t\ttry {\n\t\t\t\twhile(!st.hasMoreTokens()) {\n\t\t\t\t\tString s = br.readLine();\n\t\t\t\t\tif(s==null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(s);\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}catch(Exception e) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif(!hasNext()) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\treturn st.nextToken(\"\\r\\n\\t\\f \");\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tInput in = new Input(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tBJudgeStatusSummary solver = new BJudgeStatusSummary();\n\t\tsolver.solve(1, in, out);\n\t\tout.close();\n\t}\n\tstatic class BJudgeStatusSummary {\n\t\tpublic void solve(int testNumber, Input in, PrintWriter out) {\n\t\t\tint n = in.nextInt();\n\t\t\tint[] arr = new int[4];\n\t\t\tfor(int i = 0; i<n; i++) {\n\t\t\t\tString s = in.next();\n\t\t\t\tif(s.equals(\"AC\")) {\n\t\t\t\t\tarr[0]++;\n\t\t\t\t}else if(s.equals(\"WA\")) {\n\t\t\t\t\tarr[1]++;\n\t\t\t\t}else if(s.equals(\"TLE\")) {\n\t\t\t\t\tarr[2]++;\n\t\t\t\t}else {\n\t\t\t\t\tarr[3]++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tout.printf(\"AC x %d\\nWA x %d\\nTLE x %d\\nRE x %d\\n\", arr[0], arr[1], arr[2], arr[3]);\n\t\t}\n\n\t}\n\n\tstatic class Input {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic Input(InputStream is) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(is));\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t}catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\tpublic boolean hasNext() {\n\t\t\ttry {\n\t\t\t\twhile(!st.hasMoreTokens()) {\n\t\t\t\t\tString s = br.readLine();\n\t\t\t\t\tif(s==null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(s);\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}catch(Exception e) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif(!hasNext()) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\treturn st.nextToken(\"\\r\\n\\t\\f \");\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t}\n}",
"Main"
]
| import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import java.io.IOException;
import java.util.InputMismatchException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
Input in = new Input(inputStream);
PrintWriter out = new PrintWriter(outputStream);
BJudgeStatusSummary solver = new BJudgeStatusSummary();
solver.solve(1, in, out);
out.close();
}
static class BJudgeStatusSummary {
public void solve(int testNumber, Input in, PrintWriter out) {
int n = in.nextInt();
int[] arr = new int[4];
for(int i = 0; i<n; i++) {
String s = in.next();
if(s.equals("AC")) {
arr[0]++;
}else if(s.equals("WA")) {
arr[1]++;
}else if(s.equals("TLE")) {
arr[2]++;
}else {
arr[3]++;
}
}
out.printf("AC x %d\nWA x %d\nTLE x %d\nRE x %d\n", arr[0], arr[1], arr[2], arr[3]);
}
}
static class Input {
BufferedReader br;
StringTokenizer st;
public Input(InputStream is) {
br = new BufferedReader(new InputStreamReader(is));
try {
st = new StringTokenizer(br.readLine());
}catch(IOException e) {
e.printStackTrace();
}
}
public boolean hasNext() {
try {
while(!st.hasMoreTokens()) {
String s = br.readLine();
if(s==null) {
return false;
}
st = new StringTokenizer(s);
}
return true;
}catch(Exception e) {
return false;
}
}
public String next() {
if(!hasNext()) {
throw new InputMismatchException();
}
return st.nextToken("\r\n\t\f ");
}
public int nextInt() {
return Integer.parseInt(next());
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
17,
12,
13,
30,
41,
13,
4,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
13,
14,
4,
18,
17,
13,
30,
40,
13,
14,
4,
18,
17,
13,
30,
40,
13,
14,
4,
18,
17,
13,
30,
40,
13,
30,
40,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
12,
13,
30,
0,
13,
20,
41,
13,
4,
18,
13,
17,
14,
2,
13,
17,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
41,
13,
17,
42,
13,
30,
4,
13,
38,
5,
13,
30,
37,
20,
30,
4,
18,
13,
17,
14,
2,
4,
18,
13,
17,
30,
4,
18,
13,
4,
18,
18,
13,
13,
17,
30,
0,
13,
17,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
29,
4,
18,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
298,
8
],
[
298,
9
],
[
9,
10
],
[
298,
11
],
[
11,
12
],
[
11,
13
],
[
298,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
16,
21
],
[
21,
22
],
[
21,
23
],
[
16,
24
],
[
24,
25
],
[
24,
26
],
[
16,
27
],
[
27,
28
],
[
27,
29
],
[
16,
30
],
[
30,
31
],
[
30,
32
],
[
16,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
45,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
50,
55
],
[
55,
56
],
[
56,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
58,
63
],
[
63,
64
],
[
64,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
66,
71
],
[
71,
72
],
[
72,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
16,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
16,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
90,
92
],
[
16,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
98,
99
],
[
98,
100
],
[
16,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
106,
107
],
[
106,
108
],
[
298,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
111,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
126,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
111,
136
],
[
136,
137
],
[
136,
138
],
[
111,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
141,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
148,
149
],
[
144,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
151,
154
],
[
150,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
156,
160
],
[
155,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
161,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
165,
170
],
[
155,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
109,
175
],
[
175,
176
],
[
298,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
180,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
193,
194
],
[
194,
195
],
[
190,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
179,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
298,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
208,
211
],
[
211,
212
],
[
298,
213
],
[
213,
214
],
[
213,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
217,
220
],
[
220,
221
],
[
298,
222
],
[
222,
223
],
[
222,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
226,
229
],
[
229,
230
],
[
298,
231
],
[
231,
232
],
[
231,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
233,
238
],
[
238,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
238,
243
],
[
243,
244
],
[
243,
245
],
[
238,
246
],
[
246,
247
],
[
247,
248
],
[
238,
249
],
[
249,
250
],
[
250,
251
],
[
251,
252
],
[
251,
253
],
[
250,
254
],
[
254,
255
],
[
233,
256
],
[
256,
257
],
[
231,
258
],
[
258,
259
],
[
298,
260
],
[
260,
261
],
[
260,
262
],
[
262,
263
],
[
263,
264
],
[
264,
265
],
[
265,
266
],
[
266,
267
],
[
298,
268
],
[
268,
269
],
[
268,
270
],
[
270,
271
],
[
271,
272
],
[
271,
273
],
[
270,
275
],
[
275,
276
],
[
276,
277
],
[
277,
278
],
[
277,
279
],
[
275,
280
],
[
280,
281
],
[
280,
282
],
[
275,
283
],
[
283,
284
],
[
284,
285
],
[
275,
286
],
[
286,
287
],
[
287,
288
],
[
288,
289
],
[
288,
290
],
[
287,
291
],
[
291,
292
],
[
270,
293
],
[
293,
294
],
[
268,
295
],
[
295,
296
],
[
0,
297
],
[
297,
298
],
[
297,
299
]
]
| [
"import java.util.*;\nimport java.io.*;\n\npublic class Main {\t\n\n\tprivate static void solve(){\n\t\t//Implement solution here.\n\t\tint N = ni();\n\t\tint AC = 0;\n\t\tint WA = 0;\n\t\tint TLE = 0;\n\t\tint RE = 0;\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tString v = next();\n\t\t\tif(\"AC\".equals(v)) {\n\t\t\t\tAC++;\n\t\t\t} else if(\"WA\".equals(v)) {\n\t\t\t\tWA++;\n\t\t\t} else if(\"TLE\".equals(v)) {\n\t\t\t\tTLE++;\n\t\t\t} else {\n\t\t\t\tRE++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + AC);\n\t\tSystem.out.println(\"WA x \" + WA);\n\t\tSystem.out.println(\"TLE x \" + TLE);\n\t\tSystem.out.println(\"RE x \" + RE);\n\t}\n\n\t//Switch input source (stdin/file)\n\tprivate static BufferedReader br;\n\tpublic static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}\n\n\t//Input read utility\n\tprivate static StringTokenizer tokenizer = null;\n\tpublic static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}\n\t//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}\n\t//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t//Get next int array from one line\n\tprivate static int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}\n\t//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}\n\t//Get next long array from one line\n\tprivate static long[] nal(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\t\n\n\tprivate static void solve(){\n\t\t//Implement solution here.\n\t\tint N = ni();\n\t\tint AC = 0;\n\t\tint WA = 0;\n\t\tint TLE = 0;\n\t\tint RE = 0;\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tString v = next();\n\t\t\tif(\"AC\".equals(v)) {\n\t\t\t\tAC++;\n\t\t\t} else if(\"WA\".equals(v)) {\n\t\t\t\tWA++;\n\t\t\t} else if(\"TLE\".equals(v)) {\n\t\t\t\tTLE++;\n\t\t\t} else {\n\t\t\t\tRE++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + AC);\n\t\tSystem.out.println(\"WA x \" + WA);\n\t\tSystem.out.println(\"TLE x \" + TLE);\n\t\tSystem.out.println(\"RE x \" + RE);\n\t}\n\n\t//Switch input source (stdin/file)\n\tprivate static BufferedReader br;\n\tpublic static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}\n\n\t//Input read utility\n\tprivate static StringTokenizer tokenizer = null;\n\tpublic static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}\n\t//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}\n\t//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t//Get next int array from one line\n\tprivate static int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}\n\t//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}\n\t//Get next long array from one line\n\tprivate static long[] nal(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}\n}",
"Main",
"//Switch input source (stdin/file)\n\tprivate static BufferedReader br;",
"br",
"//Input read utility\n\tprivate static StringTokenizer tokenizer = null;",
"tokenizer",
"null",
"private static void solve(){\n\t\t//Implement solution here.\n\t\tint N = ni();\n\t\tint AC = 0;\n\t\tint WA = 0;\n\t\tint TLE = 0;\n\t\tint RE = 0;\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tString v = next();\n\t\t\tif(\"AC\".equals(v)) {\n\t\t\t\tAC++;\n\t\t\t} else if(\"WA\".equals(v)) {\n\t\t\t\tWA++;\n\t\t\t} else if(\"TLE\".equals(v)) {\n\t\t\t\tTLE++;\n\t\t\t} else {\n\t\t\t\tRE++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + AC);\n\t\tSystem.out.println(\"WA x \" + WA);\n\t\tSystem.out.println(\"TLE x \" + TLE);\n\t\tSystem.out.println(\"RE x \" + RE);\n\t}",
"solve",
"{\n\t\t//Implement solution here.\n\t\tint N = ni();\n\t\tint AC = 0;\n\t\tint WA = 0;\n\t\tint TLE = 0;\n\t\tint RE = 0;\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tString v = next();\n\t\t\tif(\"AC\".equals(v)) {\n\t\t\t\tAC++;\n\t\t\t} else if(\"WA\".equals(v)) {\n\t\t\t\tWA++;\n\t\t\t} else if(\"TLE\".equals(v)) {\n\t\t\t\tTLE++;\n\t\t\t} else {\n\t\t\t\tRE++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + AC);\n\t\tSystem.out.println(\"WA x \" + WA);\n\t\tSystem.out.println(\"TLE x \" + TLE);\n\t\tSystem.out.println(\"RE x \" + RE);\n\t}",
"int N = ni();",
"N",
"ni()",
"ni",
"int AC = 0;",
"AC",
"0",
"int WA = 0;",
"WA",
"0",
"int TLE = 0;",
"TLE",
"0",
"int RE = 0;",
"RE",
"0",
"for(int i = 0; i < N; i++) {\n\t\t\tString v = next();\n\t\t\tif(\"AC\".equals(v)) {\n\t\t\t\tAC++;\n\t\t\t} else if(\"WA\".equals(v)) {\n\t\t\t\tWA++;\n\t\t\t} else if(\"TLE\".equals(v)) {\n\t\t\t\tTLE++;\n\t\t\t} else {\n\t\t\t\tRE++;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tString v = next();\n\t\t\tif(\"AC\".equals(v)) {\n\t\t\t\tAC++;\n\t\t\t} else if(\"WA\".equals(v)) {\n\t\t\t\tWA++;\n\t\t\t} else if(\"TLE\".equals(v)) {\n\t\t\t\tTLE++;\n\t\t\t} else {\n\t\t\t\tRE++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString v = next();\n\t\t\tif(\"AC\".equals(v)) {\n\t\t\t\tAC++;\n\t\t\t} else if(\"WA\".equals(v)) {\n\t\t\t\tWA++;\n\t\t\t} else if(\"TLE\".equals(v)) {\n\t\t\t\tTLE++;\n\t\t\t} else {\n\t\t\t\tRE++;\n\t\t\t}\n\t\t}",
"String v = next();",
"v",
"next()",
"next",
"if(\"AC\".equals(v)) {\n\t\t\t\tAC++;\n\t\t\t} else if(\"WA\".equals(v)) {\n\t\t\t\tWA++;\n\t\t\t} else if(\"TLE\".equals(v)) {\n\t\t\t\tTLE++;\n\t\t\t} else {\n\t\t\t\tRE++;\n\t\t\t}",
"\"AC\".equals(v)",
"\"AC\".equals",
"\"AC\"",
"v",
"{\n\t\t\t\tAC++;\n\t\t\t}",
"AC++",
"AC",
"if(\"WA\".equals(v)) {\n\t\t\t\tWA++;\n\t\t\t} else if(\"TLE\".equals(v)) {\n\t\t\t\tTLE++;\n\t\t\t} else {\n\t\t\t\tRE++;\n\t\t\t}",
"\"WA\".equals(v)",
"\"WA\".equals",
"\"WA\"",
"v",
"{\n\t\t\t\tWA++;\n\t\t\t}",
"WA++",
"WA",
"if(\"TLE\".equals(v)) {\n\t\t\t\tTLE++;\n\t\t\t} else {\n\t\t\t\tRE++;\n\t\t\t}",
"\"TLE\".equals(v)",
"\"TLE\".equals",
"\"TLE\"",
"v",
"{\n\t\t\t\tTLE++;\n\t\t\t}",
"TLE++",
"TLE",
"{\n\t\t\t\tRE++;\n\t\t\t}",
"RE++",
"RE",
"System.out.println(\"AC x \" + AC)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + AC",
"\"AC x \"",
"AC",
"System.out.println(\"WA x \" + WA)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + WA",
"\"WA x \"",
"WA",
"System.out.println(\"TLE x \" + TLE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + TLE",
"\"TLE x \"",
"TLE",
"System.out.println(\"RE x \" + RE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + RE",
"\"RE x \"",
"RE",
"public static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}",
"main",
"{\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String debugDataPath = System.getenv(\"DD_PATH\");",
"debugDataPath",
"System.getenv(\"DD_PATH\")",
"System.getenv",
"System",
"\"DD_PATH\"",
"if(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}",
"debugDataPath != null",
"debugDataPath",
"null",
"{\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}",
"try{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"Exception e",
"{\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}",
"br = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))))",
"br",
"new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))))",
"boolean hasNext = true;",
"hasNext",
"true",
"while(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}",
"hasNext",
"{\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}",
"solve()",
"solve",
"try{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"Exception e",
"{\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}",
"br.mark(1)",
"br.mark",
"br",
"1",
"if(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}",
"br.read() > 0",
"br.read()",
"br.read",
"br",
"0",
"{\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t}",
"br.reset()",
"br.reset",
"br",
"System.out.println(\"---\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"---\"",
"{\n\t\t\t\t\thasNext = false;\n\t\t\t\t}",
"hasNext = false",
"hasNext",
"false",
"String[] args",
"args",
"public static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}",
"next",
"{\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}",
"while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}",
"try {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"Exception e",
"{\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t}",
"tokenizer = new StringTokenizer(br.readLine())",
"tokenizer",
"new StringTokenizer(br.readLine())",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}",
"ni",
"{\n\t\treturn Integer.parseInt(next());\n\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}",
"nl",
"{\n\t\treturn Long.parseLong(next());\n\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}",
"nd",
"{\n\t\treturn Double.parseDouble(next());\n\t}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"//Get next int array from one line\n\tprivate static int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}",
"na",
"{\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = ni();",
"a[i] = ni()",
"a[i]",
"a",
"i",
"ni()",
"ni",
"return a;",
"a",
"int n",
"n",
"//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}",
"ns",
"{\n\t\treturn next().toCharArray();\n\t}",
"return next().toCharArray();",
"next().toCharArray()",
"next().toCharArray",
"next()",
"next",
"//Get next long array from one line\n\tprivate static long[] nal(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}",
"nal",
"{\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}",
"long[] a = new long[n];",
"a",
"new long[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = nl();",
"a[i] = nl()",
"a[i]",
"a",
"i",
"nl()",
"nl",
"return a;",
"a",
"int n",
"n",
"public class Main {\t\n\n\tprivate static void solve(){\n\t\t//Implement solution here.\n\t\tint N = ni();\n\t\tint AC = 0;\n\t\tint WA = 0;\n\t\tint TLE = 0;\n\t\tint RE = 0;\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tString v = next();\n\t\t\tif(\"AC\".equals(v)) {\n\t\t\t\tAC++;\n\t\t\t} else if(\"WA\".equals(v)) {\n\t\t\t\tWA++;\n\t\t\t} else if(\"TLE\".equals(v)) {\n\t\t\t\tTLE++;\n\t\t\t} else {\n\t\t\t\tRE++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + AC);\n\t\tSystem.out.println(\"WA x \" + WA);\n\t\tSystem.out.println(\"TLE x \" + TLE);\n\t\tSystem.out.println(\"RE x \" + RE);\n\t}\n\n\t//Switch input source (stdin/file)\n\tprivate static BufferedReader br;\n\tpublic static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}\n\n\t//Input read utility\n\tprivate static StringTokenizer tokenizer = null;\n\tpublic static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}\n\t//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}\n\t//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t//Get next int array from one line\n\tprivate static int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}\n\t//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}\n\t//Get next long array from one line\n\tprivate static long[] nal(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}\n}",
"public class Main {\t\n\n\tprivate static void solve(){\n\t\t//Implement solution here.\n\t\tint N = ni();\n\t\tint AC = 0;\n\t\tint WA = 0;\n\t\tint TLE = 0;\n\t\tint RE = 0;\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tString v = next();\n\t\t\tif(\"AC\".equals(v)) {\n\t\t\t\tAC++;\n\t\t\t} else if(\"WA\".equals(v)) {\n\t\t\t\tWA++;\n\t\t\t} else if(\"TLE\".equals(v)) {\n\t\t\t\tTLE++;\n\t\t\t} else {\n\t\t\t\tRE++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + AC);\n\t\tSystem.out.println(\"WA x \" + WA);\n\t\tSystem.out.println(\"TLE x \" + TLE);\n\t\tSystem.out.println(\"RE x \" + RE);\n\t}\n\n\t//Switch input source (stdin/file)\n\tprivate static BufferedReader br;\n\tpublic static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}\n\n\t//Input read utility\n\tprivate static StringTokenizer tokenizer = null;\n\tpublic static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}\n\t//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}\n\t//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t//Get next int array from one line\n\tprivate static int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}\n\t//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}\n\t//Get next long array from one line\n\tprivate static long[] nal(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main {
private static void solve(){
//Implement solution here.
int N = ni();
int AC = 0;
int WA = 0;
int TLE = 0;
int RE = 0;
for(int i = 0; i < N; i++) {
String v = next();
if("AC".equals(v)) {
AC++;
} else if("WA".equals(v)) {
WA++;
} else if("TLE".equals(v)) {
TLE++;
} else {
RE++;
}
}
System.out.println("AC x " + AC);
System.out.println("WA x " + WA);
System.out.println("TLE x " + TLE);
System.out.println("RE x " + RE);
}
//Switch input source (stdin/file)
private static BufferedReader br;
public static void main(String[] args){
br = new BufferedReader(new InputStreamReader(System.in));
String debugDataPath = System.getenv("DD_PATH");
if(debugDataPath != null){
try{
br = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));
}catch(Exception e){
throw new RuntimeException(e);
}
}
boolean hasNext = true;
while(hasNext){
solve();
try{
br.mark(1);
if(br.read() > 0){
br.reset();
System.out.println("---");
} else {
hasNext = false;
}
}catch(Exception e){
throw new RuntimeException(e);
}
}
}
//Input read utility
private static StringTokenizer tokenizer = null;
public static String next() {
while (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(br.readLine());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken();
}
//Get next single int
private static int ni() {
return Integer.parseInt(next());
}
//Get next single long
private static long nl() {
return Long.parseLong(next());
}
//Get next single double
private static double nd() {
return Double.parseDouble(next());
}
//Get next int array from one line
private static int[] na(int n) {
int[] a = new int[n];
for (int i = 0; i < n; i++)
a[i] = ni();
return a;
}
//Get next char array from one line
private static char[] ns() {
return next().toCharArray();
}
//Get next long array from one line
private static long[] nal(int n) {
long[] a = new long[n];
for (int i = 0; i < n; i++)
a[i] = nl();
return a;
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
35,
18,
13,
13,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
132,
5
],
[
132,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
26,
27
],
[
26,
28
],
[
21,
29
],
[
29,
30
],
[
30,
31
],
[
21,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
8,
41
],
[
41,
42
],
[
42,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
47,
49
],
[
8,
50
],
[
50,
51
],
[
50,
52
],
[
8,
53
],
[
53,
54
],
[
53,
55
],
[
8,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
61,
63
],
[
56,
64
],
[
64,
65
],
[
65,
66
],
[
56,
67
],
[
68,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
69,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
69,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
69,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
8,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
8,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
110,
111
],
[
110,
112
],
[
8,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
8,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
126,
127
],
[
126,
128
],
[
6,
129
],
[
129,
130
],
[
0,
131
],
[
131,
132
],
[
131,
133
]
]
| [
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n String[] words = new String[N];\n for(int i=0; i<N; i++){\n words[i] = scan.next();\n }\n scan.close();\n\n int ac_cnt=0;\n int wa_cnt=0;\n int tle_cnt=0;\n int re_cnt=0;\n\n for(int i=0; i<N; i++){\n switch(words[i]){\n case \"AC\":\n ac_cnt++;\n break;\n case \"WA\":\n wa_cnt++;\n break;\n case \"TLE\":\n tle_cnt++;\n break;\n case \"RE\":\n re_cnt++;\n break;\n }\n }\n System.out.println(\"AC x \" + ac_cnt);\n System.out.println(\"WA x \" + wa_cnt);\n System.out.println(\"TLE x \" + tle_cnt);\n System.out.println(\"RE x \" + re_cnt);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n String[] words = new String[N];\n for(int i=0; i<N; i++){\n words[i] = scan.next();\n }\n scan.close();\n\n int ac_cnt=0;\n int wa_cnt=0;\n int tle_cnt=0;\n int re_cnt=0;\n\n for(int i=0; i<N; i++){\n switch(words[i]){\n case \"AC\":\n ac_cnt++;\n break;\n case \"WA\":\n wa_cnt++;\n break;\n case \"TLE\":\n tle_cnt++;\n break;\n case \"RE\":\n re_cnt++;\n break;\n }\n }\n System.out.println(\"AC x \" + ac_cnt);\n System.out.println(\"WA x \" + wa_cnt);\n System.out.println(\"TLE x \" + tle_cnt);\n System.out.println(\"RE x \" + re_cnt);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n String[] words = new String[N];\n for(int i=0; i<N; i++){\n words[i] = scan.next();\n }\n scan.close();\n\n int ac_cnt=0;\n int wa_cnt=0;\n int tle_cnt=0;\n int re_cnt=0;\n\n for(int i=0; i<N; i++){\n switch(words[i]){\n case \"AC\":\n ac_cnt++;\n break;\n case \"WA\":\n wa_cnt++;\n break;\n case \"TLE\":\n tle_cnt++;\n break;\n case \"RE\":\n re_cnt++;\n break;\n }\n }\n System.out.println(\"AC x \" + ac_cnt);\n System.out.println(\"WA x \" + wa_cnt);\n System.out.println(\"TLE x \" + tle_cnt);\n System.out.println(\"RE x \" + re_cnt);\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n String[] words = new String[N];\n for(int i=0; i<N; i++){\n words[i] = scan.next();\n }\n scan.close();\n\n int ac_cnt=0;\n int wa_cnt=0;\n int tle_cnt=0;\n int re_cnt=0;\n\n for(int i=0; i<N; i++){\n switch(words[i]){\n case \"AC\":\n ac_cnt++;\n break;\n case \"WA\":\n wa_cnt++;\n break;\n case \"TLE\":\n tle_cnt++;\n break;\n case \"RE\":\n re_cnt++;\n break;\n }\n }\n System.out.println(\"AC x \" + ac_cnt);\n System.out.println(\"WA x \" + wa_cnt);\n System.out.println(\"TLE x \" + tle_cnt);\n System.out.println(\"RE x \" + re_cnt);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int N = scan.nextInt();",
"N",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String[] words = new String[N];",
"words",
"new String[N]",
"N",
"for(int i=0; i<N; i++){\n words[i] = scan.next();\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n words[i] = scan.next();\n }",
"{\n words[i] = scan.next();\n }",
"words[i] = scan.next()",
"words[i]",
"words",
"i",
"scan.next()",
"scan.next",
"scan",
"scan.close()",
"scan.close",
"scan",
"int ac_cnt=0;",
"ac_cnt",
"0",
"int wa_cnt=0;",
"wa_cnt",
"0",
"int tle_cnt=0;",
"tle_cnt",
"0",
"int re_cnt=0;",
"re_cnt",
"0",
"for(int i=0; i<N; i++){\n switch(words[i]){\n case \"AC\":\n ac_cnt++;\n break;\n case \"WA\":\n wa_cnt++;\n break;\n case \"TLE\":\n tle_cnt++;\n break;\n case \"RE\":\n re_cnt++;\n break;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n switch(words[i]){\n case \"AC\":\n ac_cnt++;\n break;\n case \"WA\":\n wa_cnt++;\n break;\n case \"TLE\":\n tle_cnt++;\n break;\n case \"RE\":\n re_cnt++;\n break;\n }\n }",
"{\n switch(words[i]){\n case \"AC\":\n ac_cnt++;\n break;\n case \"WA\":\n wa_cnt++;\n break;\n case \"TLE\":\n tle_cnt++;\n break;\n case \"RE\":\n re_cnt++;\n break;\n }\n }",
"switch(words[i]){\n case \"AC\":\n ac_cnt++;\n break;\n case \"WA\":\n wa_cnt++;\n break;\n case \"TLE\":\n tle_cnt++;\n break;\n case \"RE\":\n re_cnt++;\n break;\n }",
"words[i]",
"words",
"i",
"case \"AC\":",
"\"AC\"",
"case \"AC\":",
"ac_cnt++",
"ac_cnt",
"break;",
"case \"WA\":",
"\"WA\"",
"case \"WA\":",
"wa_cnt++",
"wa_cnt",
"break;",
"case \"TLE\":",
"\"TLE\"",
"case \"TLE\":",
"tle_cnt++",
"tle_cnt",
"break;",
"case \"RE\":",
"\"RE\"",
"case \"RE\":",
"re_cnt++",
"re_cnt",
"break;",
"System.out.println(\"AC x \" + ac_cnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + ac_cnt",
"\"AC x \"",
"ac_cnt",
"System.out.println(\"WA x \" + wa_cnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + wa_cnt",
"\"WA x \"",
"wa_cnt",
"System.out.println(\"TLE x \" + tle_cnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + tle_cnt",
"\"TLE x \"",
"tle_cnt",
"System.out.println(\"RE x \" + re_cnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + re_cnt",
"\"RE x \"",
"re_cnt",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n String[] words = new String[N];\n for(int i=0; i<N; i++){\n words[i] = scan.next();\n }\n scan.close();\n\n int ac_cnt=0;\n int wa_cnt=0;\n int tle_cnt=0;\n int re_cnt=0;\n\n for(int i=0; i<N; i++){\n switch(words[i]){\n case \"AC\":\n ac_cnt++;\n break;\n case \"WA\":\n wa_cnt++;\n break;\n case \"TLE\":\n tle_cnt++;\n break;\n case \"RE\":\n re_cnt++;\n break;\n }\n }\n System.out.println(\"AC x \" + ac_cnt);\n System.out.println(\"WA x \" + wa_cnt);\n System.out.println(\"TLE x \" + tle_cnt);\n System.out.println(\"RE x \" + re_cnt);\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n String[] words = new String[N];\n for(int i=0; i<N; i++){\n words[i] = scan.next();\n }\n scan.close();\n\n int ac_cnt=0;\n int wa_cnt=0;\n int tle_cnt=0;\n int re_cnt=0;\n\n for(int i=0; i<N; i++){\n switch(words[i]){\n case \"AC\":\n ac_cnt++;\n break;\n case \"WA\":\n wa_cnt++;\n break;\n case \"TLE\":\n tle_cnt++;\n break;\n case \"RE\":\n re_cnt++;\n break;\n }\n }\n System.out.println(\"AC x \" + ac_cnt);\n System.out.println(\"WA x \" + wa_cnt);\n System.out.println(\"TLE x \" + tle_cnt);\n System.out.println(\"RE x \" + re_cnt);\n }\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
String[] words = new String[N];
for(int i=0; i<N; i++){
words[i] = scan.next();
}
scan.close();
int ac_cnt=0;
int wa_cnt=0;
int tle_cnt=0;
int re_cnt=0;
for(int i=0; i<N; i++){
switch(words[i]){
case "AC":
ac_cnt++;
break;
case "WA":
wa_cnt++;
break;
case "TLE":
tle_cnt++;
break;
case "RE":
re_cnt++;
break;
}
}
System.out.println("AC x " + ac_cnt);
System.out.println("WA x " + wa_cnt);
System.out.println("TLE x " + tle_cnt);
System.out.println("RE x " + re_cnt);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
110,
5
],
[
110,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
52,
53
],
[
47,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
54,
59
],
[
59,
60
],
[
54,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
61,
66
],
[
66,
67
],
[
61,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
68,
73
],
[
73,
74
],
[
8,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
8,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
88,
89
],
[
88,
90
],
[
8,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
8,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
6,
107
],
[
107,
108
],
[
0,
109
],
[
109,
110
],
[
109,
111
]
]
| [
"\nimport java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint t=sc.nextInt();\n\t\tint tle=0,ac=0,wa=0,re=0;\n\t\tfor(int i=0;i<t;i++)\n\t\t{\n\t\t\tString ar=sc.next();\n\t\t\t\n\t\t\tif(ar.equals(\"TLE\")) tle++;\n\t\t\telse if(ar.equals(\"WA\")) wa++;\n\t\t\telse if(ar.equals(\"RE\")) re++;\n\t\t\telse if(ar.equals(\"AC\")) ac++;\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"AC x \"+ac);\n\t\tSystem.out.println(\"WA x \"+wa);\n\t\tSystem.out.println(\"TLE x \"+tle);\n\t\tSystem.out.println(\"RE x \"+re);\n\t}\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint t=sc.nextInt();\n\t\tint tle=0,ac=0,wa=0,re=0;\n\t\tfor(int i=0;i<t;i++)\n\t\t{\n\t\t\tString ar=sc.next();\n\t\t\t\n\t\t\tif(ar.equals(\"TLE\")) tle++;\n\t\t\telse if(ar.equals(\"WA\")) wa++;\n\t\t\telse if(ar.equals(\"RE\")) re++;\n\t\t\telse if(ar.equals(\"AC\")) ac++;\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"AC x \"+ac);\n\t\tSystem.out.println(\"WA x \"+wa);\n\t\tSystem.out.println(\"TLE x \"+tle);\n\t\tSystem.out.println(\"RE x \"+re);\n\t}\n\n}",
"Main",
"public static void main(String args[])\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint t=sc.nextInt();\n\t\tint tle=0,ac=0,wa=0,re=0;\n\t\tfor(int i=0;i<t;i++)\n\t\t{\n\t\t\tString ar=sc.next();\n\t\t\t\n\t\t\tif(ar.equals(\"TLE\")) tle++;\n\t\t\telse if(ar.equals(\"WA\")) wa++;\n\t\t\telse if(ar.equals(\"RE\")) re++;\n\t\t\telse if(ar.equals(\"AC\")) ac++;\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"AC x \"+ac);\n\t\tSystem.out.println(\"WA x \"+wa);\n\t\tSystem.out.println(\"TLE x \"+tle);\n\t\tSystem.out.println(\"RE x \"+re);\n\t}",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint t=sc.nextInt();\n\t\tint tle=0,ac=0,wa=0,re=0;\n\t\tfor(int i=0;i<t;i++)\n\t\t{\n\t\t\tString ar=sc.next();\n\t\t\t\n\t\t\tif(ar.equals(\"TLE\")) tle++;\n\t\t\telse if(ar.equals(\"WA\")) wa++;\n\t\t\telse if(ar.equals(\"RE\")) re++;\n\t\t\telse if(ar.equals(\"AC\")) ac++;\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"AC x \"+ac);\n\t\tSystem.out.println(\"WA x \"+wa);\n\t\tSystem.out.println(\"TLE x \"+tle);\n\t\tSystem.out.println(\"RE x \"+re);\n\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int t=sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int tle=0",
"tle",
"0",
"ac=0",
"ac",
"0",
"wa=0",
"wa",
"0",
"re=0;",
"re",
"0",
"for(int i=0;i<t;i++)\n\t\t{\n\t\t\tString ar=sc.next();\n\t\t\t\n\t\t\tif(ar.equals(\"TLE\")) tle++;\n\t\t\telse if(ar.equals(\"WA\")) wa++;\n\t\t\telse if(ar.equals(\"RE\")) re++;\n\t\t\telse if(ar.equals(\"AC\")) ac++;\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<t",
"i",
"t",
"i++",
"i++",
"i",
"{\n\t\t\tString ar=sc.next();\n\t\t\t\n\t\t\tif(ar.equals(\"TLE\")) tle++;\n\t\t\telse if(ar.equals(\"WA\")) wa++;\n\t\t\telse if(ar.equals(\"RE\")) re++;\n\t\t\telse if(ar.equals(\"AC\")) ac++;\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}",
"{\n\t\t\tString ar=sc.next();\n\t\t\t\n\t\t\tif(ar.equals(\"TLE\")) tle++;\n\t\t\telse if(ar.equals(\"WA\")) wa++;\n\t\t\telse if(ar.equals(\"RE\")) re++;\n\t\t\telse if(ar.equals(\"AC\")) ac++;\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}",
"String ar=sc.next();",
"ar",
"sc.next()",
"sc.next",
"sc",
"if(ar.equals(\"TLE\")) tle++;\n\t\t\telse if(ar.equals(\"WA\")) wa++;\n\t\t\telse if(ar.equals(\"RE\")) re++;\n\t\t\telse if(ar.equals(\"AC\")) ac++;",
"ar.equals(\"TLE\")",
"ar.equals",
"ar",
"\"TLE\"",
"tle++",
"tle",
"if(ar.equals(\"WA\")) wa++;\n\t\t\telse if(ar.equals(\"RE\")) re++;\n\t\t\telse if(ar.equals(\"AC\")) ac++;",
"ar.equals(\"WA\")",
"ar.equals",
"ar",
"\"WA\"",
"wa++",
"wa",
"if(ar.equals(\"RE\")) re++;\n\t\t\telse if(ar.equals(\"AC\")) ac++;",
"ar.equals(\"RE\")",
"ar.equals",
"ar",
"\"RE\"",
"re++",
"re",
"if(ar.equals(\"AC\")) ac++;",
"ar.equals(\"AC\")",
"ar.equals",
"ar",
"\"AC\"",
"ac++",
"ac",
"System.out.println(\"AC x \"+ac)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \"+ac",
"\"AC x \"",
"ac",
"System.out.println(\"WA x \"+wa)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \"+wa",
"\"WA x \"",
"wa",
"System.out.println(\"TLE x \"+tle)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \"+tle",
"\"TLE x \"",
"tle",
"System.out.println(\"RE x \"+re)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \"+re",
"\"RE x \"",
"re",
"String args[]",
"args",
"public class Main {\n\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint t=sc.nextInt();\n\t\tint tle=0,ac=0,wa=0,re=0;\n\t\tfor(int i=0;i<t;i++)\n\t\t{\n\t\t\tString ar=sc.next();\n\t\t\t\n\t\t\tif(ar.equals(\"TLE\")) tle++;\n\t\t\telse if(ar.equals(\"WA\")) wa++;\n\t\t\telse if(ar.equals(\"RE\")) re++;\n\t\t\telse if(ar.equals(\"AC\")) ac++;\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"AC x \"+ac);\n\t\tSystem.out.println(\"WA x \"+wa);\n\t\tSystem.out.println(\"TLE x \"+tle);\n\t\tSystem.out.println(\"RE x \"+re);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint t=sc.nextInt();\n\t\tint tle=0,ac=0,wa=0,re=0;\n\t\tfor(int i=0;i<t;i++)\n\t\t{\n\t\t\tString ar=sc.next();\n\t\t\t\n\t\t\tif(ar.equals(\"TLE\")) tle++;\n\t\t\telse if(ar.equals(\"WA\")) wa++;\n\t\t\telse if(ar.equals(\"RE\")) re++;\n\t\t\telse if(ar.equals(\"AC\")) ac++;\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"AC x \"+ac);\n\t\tSystem.out.println(\"WA x \"+wa);\n\t\tSystem.out.println(\"TLE x \"+tle);\n\t\tSystem.out.println(\"RE x \"+re);\n\t}\n\n}",
"Main"
]
|
import java.util.*;
public class Main {
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
int t=sc.nextInt();
int tle=0,ac=0,wa=0,re=0;
for(int i=0;i<t;i++)
{
String ar=sc.next();
if(ar.equals("TLE")) tle++;
else if(ar.equals("WA")) wa++;
else if(ar.equals("RE")) re++;
else if(ar.equals("AC")) ac++;
}
System.out.println("AC x "+ac);
System.out.println("WA x "+wa);
System.out.println("TLE x "+tle);
System.out.println("RE x "+re);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
35,
4,
18,
13,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
4,
18,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
111,
5
],
[
111,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
45,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
45,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
45,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
45,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
8,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
8,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
89,
91
],
[
8,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
97,
98
],
[
97,
99
],
[
8,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
6,
108
],
[
108,
109
],
[
0,
110
],
[
110,
111
],
[
110,
112
]
]
| [
"\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n sc.nextLine();\n\n int acCnt = 0;\n int waCnt = 0;\n int tleCnt = 0;\n int reCnt = 0;\n\n for(int i = 0;i<n;i++) {\n switch(sc.nextLine()) {\n case \"AC\":\n acCnt++;\n break;\n case \"WA\":\n waCnt++;\n break;\n case \"TLE\":\n tleCnt++;\n break;\n case \"RE\":\n reCnt++;\n break;\n }\n }\n sc.close();\n\n System.out.println(\"AC x \" + acCnt);\n System.out.println(\"WA x \" + waCnt);\n System.out.println(\"TLE x \" + tleCnt);\n System.out.println(\"RE x \" + reCnt);\n\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n sc.nextLine();\n\n int acCnt = 0;\n int waCnt = 0;\n int tleCnt = 0;\n int reCnt = 0;\n\n for(int i = 0;i<n;i++) {\n switch(sc.nextLine()) {\n case \"AC\":\n acCnt++;\n break;\n case \"WA\":\n waCnt++;\n break;\n case \"TLE\":\n tleCnt++;\n break;\n case \"RE\":\n reCnt++;\n break;\n }\n }\n sc.close();\n\n System.out.println(\"AC x \" + acCnt);\n System.out.println(\"WA x \" + waCnt);\n System.out.println(\"TLE x \" + tleCnt);\n System.out.println(\"RE x \" + reCnt);\n\n }\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n sc.nextLine();\n\n int acCnt = 0;\n int waCnt = 0;\n int tleCnt = 0;\n int reCnt = 0;\n\n for(int i = 0;i<n;i++) {\n switch(sc.nextLine()) {\n case \"AC\":\n acCnt++;\n break;\n case \"WA\":\n waCnt++;\n break;\n case \"TLE\":\n tleCnt++;\n break;\n case \"RE\":\n reCnt++;\n break;\n }\n }\n sc.close();\n\n System.out.println(\"AC x \" + acCnt);\n System.out.println(\"WA x \" + waCnt);\n System.out.println(\"TLE x \" + tleCnt);\n System.out.println(\"RE x \" + reCnt);\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n sc.nextLine();\n\n int acCnt = 0;\n int waCnt = 0;\n int tleCnt = 0;\n int reCnt = 0;\n\n for(int i = 0;i<n;i++) {\n switch(sc.nextLine()) {\n case \"AC\":\n acCnt++;\n break;\n case \"WA\":\n waCnt++;\n break;\n case \"TLE\":\n tleCnt++;\n break;\n case \"RE\":\n reCnt++;\n break;\n }\n }\n sc.close();\n\n System.out.println(\"AC x \" + acCnt);\n System.out.println(\"WA x \" + waCnt);\n System.out.println(\"TLE x \" + tleCnt);\n System.out.println(\"RE x \" + reCnt);\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int acCnt = 0;",
"acCnt",
"0",
"int waCnt = 0;",
"waCnt",
"0",
"int tleCnt = 0;",
"tleCnt",
"0",
"int reCnt = 0;",
"reCnt",
"0",
"for(int i = 0;i<n;i++) {\n switch(sc.nextLine()) {\n case \"AC\":\n acCnt++;\n break;\n case \"WA\":\n waCnt++;\n break;\n case \"TLE\":\n tleCnt++;\n break;\n case \"RE\":\n reCnt++;\n break;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n switch(sc.nextLine()) {\n case \"AC\":\n acCnt++;\n break;\n case \"WA\":\n waCnt++;\n break;\n case \"TLE\":\n tleCnt++;\n break;\n case \"RE\":\n reCnt++;\n break;\n }\n }",
"{\n switch(sc.nextLine()) {\n case \"AC\":\n acCnt++;\n break;\n case \"WA\":\n waCnt++;\n break;\n case \"TLE\":\n tleCnt++;\n break;\n case \"RE\":\n reCnt++;\n break;\n }\n }",
"switch(sc.nextLine()) {\n case \"AC\":\n acCnt++;\n break;\n case \"WA\":\n waCnt++;\n break;\n case \"TLE\":\n tleCnt++;\n break;\n case \"RE\":\n reCnt++;\n break;\n }",
"sc.nextLine()",
"sc.nextLine",
"sc",
"case \"AC\":",
"\"AC\"",
"case \"AC\":",
"acCnt++",
"acCnt",
"break;",
"case \"WA\":",
"\"WA\"",
"case \"WA\":",
"waCnt++",
"waCnt",
"break;",
"case \"TLE\":",
"\"TLE\"",
"case \"TLE\":",
"tleCnt++",
"tleCnt",
"break;",
"case \"RE\":",
"\"RE\"",
"case \"RE\":",
"reCnt++",
"reCnt",
"break;",
"sc.close()",
"sc.close",
"sc",
"System.out.println(\"AC x \" + acCnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + acCnt",
"\"AC x \"",
"acCnt",
"System.out.println(\"WA x \" + waCnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + waCnt",
"\"WA x \"",
"waCnt",
"System.out.println(\"TLE x \" + tleCnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + tleCnt",
"\"TLE x \"",
"tleCnt",
"System.out.println(\"RE x \" + reCnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + reCnt",
"\"RE x \"",
"reCnt",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n sc.nextLine();\n\n int acCnt = 0;\n int waCnt = 0;\n int tleCnt = 0;\n int reCnt = 0;\n\n for(int i = 0;i<n;i++) {\n switch(sc.nextLine()) {\n case \"AC\":\n acCnt++;\n break;\n case \"WA\":\n waCnt++;\n break;\n case \"TLE\":\n tleCnt++;\n break;\n case \"RE\":\n reCnt++;\n break;\n }\n }\n sc.close();\n\n System.out.println(\"AC x \" + acCnt);\n System.out.println(\"WA x \" + waCnt);\n System.out.println(\"TLE x \" + tleCnt);\n System.out.println(\"RE x \" + reCnt);\n\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n sc.nextLine();\n\n int acCnt = 0;\n int waCnt = 0;\n int tleCnt = 0;\n int reCnt = 0;\n\n for(int i = 0;i<n;i++) {\n switch(sc.nextLine()) {\n case \"AC\":\n acCnt++;\n break;\n case \"WA\":\n waCnt++;\n break;\n case \"TLE\":\n tleCnt++;\n break;\n case \"RE\":\n reCnt++;\n break;\n }\n }\n sc.close();\n\n System.out.println(\"AC x \" + acCnt);\n System.out.println(\"WA x \" + waCnt);\n System.out.println(\"TLE x \" + tleCnt);\n System.out.println(\"RE x \" + reCnt);\n\n }\n\n}",
"Main"
]
|
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
sc.nextLine();
int acCnt = 0;
int waCnt = 0;
int tleCnt = 0;
int reCnt = 0;
for(int i = 0;i<n;i++) {
switch(sc.nextLine()) {
case "AC":
acCnt++;
break;
case "WA":
waCnt++;
break;
case "TLE":
tleCnt++;
break;
case "RE":
reCnt++;
break;
}
}
sc.close();
System.out.println("AC x " + acCnt);
System.out.println("WA x " + waCnt);
System.out.println("TLE x " + tleCnt);
System.out.println("RE x " + reCnt);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
4,
18,
13,
2,
17,
13,
4,
18,
13,
2,
17,
13,
4,
18,
13,
2,
17,
13,
4,
18,
13,
2,
17,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
40,
17,
37,
20,
14,
2,
13,
13,
30,
0,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
14,
2,
2,
13,
17,
2,
13,
17,
37,
20,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
29,
2,
13,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
41,
13,
20,
42,
40,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
14,
2,
13,
17,
29,
4,
18,
13,
13,
29,
2,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
6,
13,
12,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
359,
23
],
[
359,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
26,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
26,
37
],
[
37,
38
],
[
37,
39
],
[
26,
40
],
[
40,
41
],
[
40,
42
],
[
26,
43
],
[
43,
44
],
[
43,
45
],
[
26,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
46,
50
],
[
46,
51
],
[
26,
52
],
[
52,
53
],
[
53,
54
],
[
24,
55
],
[
55,
56
],
[
359,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
61,
67
],
[
67,
68
],
[
67,
69
],
[
61,
70
],
[
70,
71
],
[
70,
72
],
[
61,
73
],
[
73,
74
],
[
73,
75
],
[
61,
76
],
[
76,
77
],
[
76,
78
],
[
61,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
79,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
84,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
90,
95
],
[
95,
96
],
[
84,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
97,
102
],
[
102,
103
],
[
84,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
104,
109
],
[
109,
110
],
[
84,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
111,
116
],
[
116,
117
],
[
61,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
121,
122
],
[
121,
123
],
[
61,
124
],
[
124,
125
],
[
125,
126
],
[
124,
127
],
[
127,
128
],
[
127,
129
],
[
61,
130
],
[
130,
131
],
[
131,
132
],
[
130,
133
],
[
133,
134
],
[
133,
135
],
[
61,
136
],
[
136,
137
],
[
137,
138
],
[
136,
139
],
[
139,
140
],
[
139,
141
],
[
59,
142
],
[
142,
143
],
[
59,
144
],
[
144,
145
],
[
59,
146
],
[
146,
147
],
[
359,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
148,
152
],
[
152,
153
],
[
152,
154
],
[
148,
156
],
[
156,
157
],
[
148,
158
],
[
158,
159
],
[
148,
160
],
[
160,
161
],
[
148,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
165,
169
],
[
162,
170
],
[
170,
171
],
[
148,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
175,
180
],
[
180,
181
],
[
174,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
182,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
186,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
193,
194
],
[
194,
195
],
[
190,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
200,
201
],
[
199,
202
],
[
186,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
203,
207
],
[
207,
208
],
[
208,
209
],
[
174,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
148,
215
],
[
215,
216
],
[
215,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
220,
221
],
[
217,
222
],
[
222,
223
],
[
223,
224
],
[
223,
225
],
[
222,
226
],
[
226,
227
],
[
226,
228
],
[
228,
229
],
[
217,
230
],
[
230,
231
],
[
230,
232
],
[
217,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
233,
237
],
[
237,
238
],
[
238,
239
],
[
238,
240
],
[
240,
241
],
[
237,
242
],
[
242,
243
],
[
242,
244
],
[
244,
245
],
[
217,
246
],
[
246,
247
],
[
246,
248
],
[
217,
249
],
[
249,
250
],
[
250,
251
],
[
251,
252
],
[
251,
253
],
[
249,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
257,
258
],
[
257,
259
],
[
256,
260
],
[
260,
261
],
[
260,
262
],
[
255,
263
],
[
263,
264
],
[
254,
265
],
[
265,
266
],
[
265,
267
],
[
254,
268
],
[
268,
269
],
[
268,
270
],
[
270,
271
],
[
270,
272
],
[
254,
273
],
[
273,
274
],
[
273,
275
],
[
275,
276
],
[
217,
277
],
[
277,
278
],
[
278,
279
],
[
278,
280
],
[
148,
281
],
[
281,
282
],
[
281,
283
],
[
283,
284
],
[
284,
285
],
[
284,
286
],
[
286,
287
],
[
283,
288
],
[
288,
289
],
[
289,
290
],
[
289,
291
],
[
288,
292
],
[
292,
293
],
[
292,
294
],
[
294,
295
],
[
283,
296
],
[
296,
297
],
[
296,
298
],
[
283,
299
],
[
299,
300
],
[
300,
301
],
[
301,
302
],
[
301,
303
],
[
299,
304
],
[
304,
305
],
[
305,
306
],
[
306,
307
],
[
305,
308
],
[
304,
309
],
[
309,
310
],
[
309,
311
],
[
311,
312
],
[
283,
313
],
[
313,
314
],
[
314,
315
],
[
315,
316
],
[
148,
317
],
[
317,
318
],
[
317,
319
],
[
319,
320
],
[
320,
321
],
[
321,
322
],
[
321,
323
],
[
320,
324
],
[
324,
325
],
[
325,
326
],
[
326,
327
],
[
325,
328
],
[
319,
329
],
[
329,
330
],
[
333,
331
],
[
343,
332
],
[
340,
333
],
[
333,
334
],
[
334,
335
],
[
334,
336
],
[
333,
337
],
[
337,
338
],
[
337,
339
],
[
340,
340
],
[
340,
341
],
[
340,
342
],
[
343,
343
],
[
343,
344
],
[
343,
345
],
[
333,
346
],
[
346,
347
],
[
346,
348
],
[
348,
349
],
[
317,
350
],
[
350,
351
],
[
148,
352
],
[
352,
353
],
[
352,
354
],
[
354,
355
],
[
354,
356
],
[
356,
357
],
[
0,
358
],
[
358,
359
],
[
358,
360
]
]
| [
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.InputMismatchException;\nimport java.io.IOException;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author Pranay2516\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n A solver = new A();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class A {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n int n = in.nextInt(), ac = 0, tle = 0, wa = 0, re = 0;\n while (n-- > 0) {\n String s = in.next();\n if (s.equals(\"AC\")) ac++;\n if (s.equals(\"WA\")) wa++;\n if (s.equals(\"TLE\")) tle++;\n if (s.equals(\"RE\")) re++;\n }\n out.println(\"AC x \" + ac);\n out.println(\"WA x \" + wa);\n out.println(\"TLE x \" + tle);\n out.println(\"RE x \" + re);\n }\n\n }\n\n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public String next() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.InputMismatchException;",
"InputMismatchException",
"java.util",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n A solver = new A();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class A {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n int n = in.nextInt(), ac = 0, tle = 0, wa = 0, re = 0;\n while (n-- > 0) {\n String s = in.next();\n if (s.equals(\"AC\")) ac++;\n if (s.equals(\"WA\")) wa++;\n if (s.equals(\"TLE\")) tle++;\n if (s.equals(\"RE\")) re++;\n }\n out.println(\"AC x \" + ac);\n out.println(\"WA x \" + wa);\n out.println(\"TLE x \" + tle);\n out.println(\"RE x \" + re);\n }\n\n }\n\n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public String next() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n A solver = new A();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n A solver = new A();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"FastReader in = new FastReader(inputStream);",
"in",
"new FastReader(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"A solver = new A();",
"solver",
"new A()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class A {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n int n = in.nextInt(), ac = 0, tle = 0, wa = 0, re = 0;\n while (n-- > 0) {\n String s = in.next();\n if (s.equals(\"AC\")) ac++;\n if (s.equals(\"WA\")) wa++;\n if (s.equals(\"TLE\")) tle++;\n if (s.equals(\"RE\")) re++;\n }\n out.println(\"AC x \" + ac);\n out.println(\"WA x \" + wa);\n out.println(\"TLE x \" + tle);\n out.println(\"RE x \" + re);\n }\n\n }",
"A",
"public void solve(int testNumber, FastReader in, PrintWriter out) {\n int n = in.nextInt(), ac = 0, tle = 0, wa = 0, re = 0;\n while (n-- > 0) {\n String s = in.next();\n if (s.equals(\"AC\")) ac++;\n if (s.equals(\"WA\")) wa++;\n if (s.equals(\"TLE\")) tle++;\n if (s.equals(\"RE\")) re++;\n }\n out.println(\"AC x \" + ac);\n out.println(\"WA x \" + wa);\n out.println(\"TLE x \" + tle);\n out.println(\"RE x \" + re);\n }",
"solve",
"{\n int n = in.nextInt(), ac = 0, tle = 0, wa = 0, re = 0;\n while (n-- > 0) {\n String s = in.next();\n if (s.equals(\"AC\")) ac++;\n if (s.equals(\"WA\")) wa++;\n if (s.equals(\"TLE\")) tle++;\n if (s.equals(\"RE\")) re++;\n }\n out.println(\"AC x \" + ac);\n out.println(\"WA x \" + wa);\n out.println(\"TLE x \" + tle);\n out.println(\"RE x \" + re);\n }",
"int n = in.nextInt()",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"ac = 0",
"ac",
"0",
"tle = 0",
"tle",
"0",
"wa = 0",
"wa",
"0",
"re = 0;",
"re",
"0",
"while (n-- > 0) {\n String s = in.next();\n if (s.equals(\"AC\")) ac++;\n if (s.equals(\"WA\")) wa++;\n if (s.equals(\"TLE\")) tle++;\n if (s.equals(\"RE\")) re++;\n }",
"n-- > 0",
"n--",
"n",
"0",
"{\n String s = in.next();\n if (s.equals(\"AC\")) ac++;\n if (s.equals(\"WA\")) wa++;\n if (s.equals(\"TLE\")) tle++;\n if (s.equals(\"RE\")) re++;\n }",
"String s = in.next();",
"s",
"in.next()",
"in.next",
"in",
"if (s.equals(\"AC\")) ac++;",
"s.equals(\"AC\")",
"s.equals",
"s",
"\"AC\"",
"ac++",
"ac",
"if (s.equals(\"WA\")) wa++;",
"s.equals(\"WA\")",
"s.equals",
"s",
"\"WA\"",
"wa++",
"wa",
"if (s.equals(\"TLE\")) tle++;",
"s.equals(\"TLE\")",
"s.equals",
"s",
"\"TLE\"",
"tle++",
"tle",
"if (s.equals(\"RE\")) re++;",
"s.equals(\"RE\")",
"s.equals",
"s",
"\"RE\"",
"re++",
"re",
"out.println(\"AC x \" + ac)",
"out.println",
"out",
"\"AC x \" + ac",
"\"AC x \"",
"ac",
"out.println(\"WA x \" + wa)",
"out.println",
"out",
"\"WA x \" + wa",
"\"WA x \"",
"wa",
"out.println(\"TLE x \" + tle)",
"out.println",
"out",
"\"TLE x \" + tle",
"\"TLE x \"",
"tle",
"out.println(\"RE x \" + re)",
"out.println",
"out",
"\"RE x \" + re",
"\"RE x \"",
"re",
"int testNumber",
"testNumber",
"FastReader in",
"in",
"PrintWriter out",
"out",
"static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public String next() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }",
"FastReader",
"private InputStream stream;",
"stream",
"private byte[] buf = new byte[1024];",
"buf",
"new byte[1024]",
"1024",
"private int curChar;",
"curChar",
"private int numChars;",
"numChars",
"private FastReader.SpaceCharFilter filter;",
"filter",
"public FastReader(InputStream stream) {\n this.stream = stream;\n }",
"FastReader",
"{\n this.stream = stream;\n }",
"this.stream = stream",
"this.stream",
"this",
"this.stream",
"stream",
"InputStream stream",
"stream",
"public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }",
"read",
"{\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }",
"if (numChars == -1) throw new InputMismatchException();",
"numChars == -1",
"numChars",
"-1",
"1",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }",
"curChar >= numChars",
"curChar",
"numChars",
"{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }",
"curChar = 0",
"curChar",
"0",
"try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }",
"catch (IOException e) {\n throw new InputMismatchException();\n }",
"IOException e",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n numChars = stream.read(buf);\n }",
"numChars = stream.read(buf)",
"numChars",
"stream.read(buf)",
"stream.read",
"stream",
"buf",
"if (numChars <= 0) return -1;",
"numChars <= 0",
"numChars",
"0",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }",
"nextInt",
"{\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) c = read();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c = read()",
"c",
"read()",
"read",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') {\n sgn = -1;\n c = read();\n }",
"c == '-'",
"c",
"'-'",
"{\n sgn = -1;\n c = read();\n }",
"sgn = -1",
"sgn",
"-1",
"1",
"c = read()",
"c",
"read()",
"read",
"int res = 0;",
"res",
"0",
"do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }",
"if (c < '0' || c > '9') throw new InputMismatchException();",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"throw new InputMismatchException();",
"new InputMismatchException()",
"res *= 10",
"res",
"10",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = read()",
"c",
"read()",
"read",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public String next() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n return res.toString();\n }",
"next",
"{\n int c = read();\n while (isSpaceChar(c)) c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n return res.toString();\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) c = read();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c = read()",
"c",
"read()",
"read",
"StringBuilder res = new StringBuilder();",
"res",
"new StringBuilder()",
"do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n res.appendCodePoint(c);\n c = read();\n }",
"res.appendCodePoint(c)",
"res.appendCodePoint",
"res",
"c",
"c = read()",
"c",
"read()",
"read",
"return res.toString();",
"res.toString()",
"res.toString",
"res",
"public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"isSpaceChar",
"{\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"if (filter != null) return filter.isSpaceChar(c);",
"filter != null",
"filter",
"null",
"return filter.isSpaceChar(c);",
"filter.isSpaceChar(c)",
"filter.isSpaceChar",
"filter",
"c",
"return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == '\\t'",
"c == '\\r'",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == ' '",
"c",
"' '",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == '\\t'",
"c",
"'\\t'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }",
"SpaceCharFilter",
"public boolean isSpaceChar(int ch);",
"isSpaceChar",
"int ch",
"ch",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n A solver = new A();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class A {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n int n = in.nextInt(), ac = 0, tle = 0, wa = 0, re = 0;\n while (n-- > 0) {\n String s = in.next();\n if (s.equals(\"AC\")) ac++;\n if (s.equals(\"WA\")) wa++;\n if (s.equals(\"TLE\")) tle++;\n if (s.equals(\"RE\")) re++;\n }\n out.println(\"AC x \" + ac);\n out.println(\"WA x \" + wa);\n out.println(\"TLE x \" + tle);\n out.println(\"RE x \" + re);\n }\n\n }\n\n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public String next() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n A solver = new A();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class A {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n int n = in.nextInt(), ac = 0, tle = 0, wa = 0, re = 0;\n while (n-- > 0) {\n String s = in.next();\n if (s.equals(\"AC\")) ac++;\n if (s.equals(\"WA\")) wa++;\n if (s.equals(\"TLE\")) tle++;\n if (s.equals(\"RE\")) re++;\n }\n out.println(\"AC x \" + ac);\n out.println(\"WA x \" + wa);\n out.println(\"TLE x \" + tle);\n out.println(\"RE x \" + re);\n }\n\n }\n\n static class FastReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private FastReader.SpaceCharFilter filter;\n\n public FastReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = read();\n }\n while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public String next() {\n int c = read();\n while (isSpaceChar(c)) c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n }\n while (!isSpaceChar(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) return filter.isSpaceChar(c);\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}",
"Main"
]
| import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.InputMismatchException;
import java.io.IOException;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author Pranay2516
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
FastReader in = new FastReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
A solver = new A();
solver.solve(1, in, out);
out.close();
}
static class A {
public void solve(int testNumber, FastReader in, PrintWriter out) {
int n = in.nextInt(), ac = 0, tle = 0, wa = 0, re = 0;
while (n-- > 0) {
String s = in.next();
if (s.equals("AC")) ac++;
if (s.equals("WA")) wa++;
if (s.equals("TLE")) tle++;
if (s.equals("RE")) re++;
}
out.println("AC x " + ac);
out.println("WA x " + wa);
out.println("TLE x " + tle);
out.println("RE x " + re);
}
}
static class FastReader {
private InputStream stream;
private byte[] buf = new byte[1024];
private int curChar;
private int numChars;
private FastReader.SpaceCharFilter filter;
public FastReader(InputStream stream) {
this.stream = stream;
}
public int read() {
if (numChars == -1) throw new InputMismatchException();
if (curChar >= numChars) {
curChar = 0;
try {
numChars = stream.read(buf);
} catch (IOException e) {
throw new InputMismatchException();
}
if (numChars <= 0) return -1;
}
return buf[curChar++];
}
public int nextInt() {
int c = read();
while (isSpaceChar(c)) c = read();
int sgn = 1;
if (c == '-') {
sgn = -1;
c = read();
}
int res = 0;
do {
if (c < '0' || c > '9') throw new InputMismatchException();
res *= 10;
res += c - '0';
c = read();
}
while (!isSpaceChar(c));
return res * sgn;
}
public String next() {
int c = read();
while (isSpaceChar(c)) c = read();
StringBuilder res = new StringBuilder();
do {
res.appendCodePoint(c);
c = read();
}
while (!isSpaceChar(c));
return res.toString();
}
public boolean isSpaceChar(int c) {
if (filter != null) return filter.isSpaceChar(c);
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
public interface SpaceCharFilter {
public boolean isSpaceChar(int ch);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
40,
18,
13,
17,
14,
4,
18,
13,
17,
30,
40,
18,
13,
17,
14,
4,
18,
13,
17,
30,
40,
18,
13,
17,
30,
40,
18,
13,
17,
4,
18,
13,
2,
17,
18,
13,
17,
4,
18,
13,
2,
17,
18,
13,
17,
4,
18,
13,
2,
17,
18,
13,
17,
4,
18,
13,
2,
17,
18,
13,
17,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
41,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
29,
17,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
228,
17
],
[
228,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
20,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
20,
31
],
[
31,
32
],
[
31,
33
],
[
20,
34
],
[
34,
35
],
[
34,
36
],
[
20,
37
],
[
37,
38
],
[
37,
39
],
[
20,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
40,
44
],
[
20,
45
],
[
45,
46
],
[
46,
47
],
[
18,
48
],
[
48,
49
],
[
228,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
54,
60
],
[
60,
61
],
[
60,
62
],
[
54,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
64,
72
],
[
72,
73
],
[
73,
74
],
[
64,
75
],
[
76,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
76,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
82,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
82,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
92,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
92,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
102,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
102,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
54,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
122,
124
],
[
54,
125
],
[
125,
126
],
[
126,
127
],
[
125,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
130,
132
],
[
54,
133
],
[
133,
134
],
[
134,
135
],
[
133,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
138,
140
],
[
54,
141
],
[
141,
142
],
[
142,
143
],
[
141,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
146,
148
],
[
52,
149
],
[
149,
150
],
[
52,
151
],
[
151,
152
],
[
228,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
153,
157
],
[
157,
158
],
[
153,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
159,
165
],
[
165,
166
],
[
153,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
171,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
170,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
179,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
187,
188
],
[
183,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
193,
194
],
[
179,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
195,
199
],
[
199,
200
],
[
200,
201
],
[
179,
202
],
[
202,
203
],
[
202,
204
],
[
169,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
153,
209
],
[
209,
210
],
[
209,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
213,
216
],
[
216,
217
],
[
153,
218
],
[
218,
219
],
[
218,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
223,
224
],
[
222,
225
],
[
225,
226
],
[
0,
227
],
[
227,
228
],
[
227,
229
]
]
| [
"import java.io.*;\nimport java.math.BigDecimal;\nimport java.math.BigInteger;\nimport java.math.RoundingMode;\nimport java.util.*;\n\n/**\n * @author Tran Anh Tai\n * @template for CP codes\n * What a trick prob!\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n solver.solve(in, out);\n out.close();\n }\n // main solver\n static class Task{\n public void solve(InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int[] a =new int[4];\n for (int i = 0; i < n; i++){\n String r = in.nextToken();\n if (r.equals(\"AC\")){\n a[0]++;\n }\n else if(r.equals(\"WA\")){\n a[1]++;\n }\n else if (r.equals(\"TLE\")){\n a[2]++;\n }\n else{\n a[3]++;\n }\n }\n out.println(\"AC x \" + a[0]);\n out.println(\"WA x \" + a[1]);\n out.println(\"TLE x \" + a[2]);\n out.println(\"RE x \" + a[3]);\n }\n }\n // fast input reader class;\n static class InputReader {\n BufferedReader br;\n StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n String line = null;\n try {\n line = br.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n if (line == null) {\n return null;\n }\n st = new StringTokenizer(line);\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(nextToken());\n }\n public long nextLong(){\n return Long.parseLong(nextToken());\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"import java.math.RoundingMode;",
"RoundingMode",
"java.math",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n solver.solve(in, out);\n out.close();\n }\n // main solver\n static class Task{\n public void solve(InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int[] a =new int[4];\n for (int i = 0; i < n; i++){\n String r = in.nextToken();\n if (r.equals(\"AC\")){\n a[0]++;\n }\n else if(r.equals(\"WA\")){\n a[1]++;\n }\n else if (r.equals(\"TLE\")){\n a[2]++;\n }\n else{\n a[3]++;\n }\n }\n out.println(\"AC x \" + a[0]);\n out.println(\"WA x \" + a[1]);\n out.println(\"TLE x \" + a[2]);\n out.println(\"RE x \" + a[3]);\n }\n }\n // fast input reader class;\n static class InputReader {\n BufferedReader br;\n StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n String line = null;\n try {\n line = br.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n if (line == null) {\n return null;\n }\n st = new StringTokenizer(line);\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(nextToken());\n }\n public long nextLong(){\n return Long.parseLong(nextToken());\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n solver.solve(in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n solver.solve(in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"InputReader in = new InputReader(inputStream);",
"in",
"new InputReader(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"Task solver = new Task();",
"solver",
"new Task()",
"solver.solve(in, out)",
"solver.solve",
"solver",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class Task{\n public void solve(InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int[] a =new int[4];\n for (int i = 0; i < n; i++){\n String r = in.nextToken();\n if (r.equals(\"AC\")){\n a[0]++;\n }\n else if(r.equals(\"WA\")){\n a[1]++;\n }\n else if (r.equals(\"TLE\")){\n a[2]++;\n }\n else{\n a[3]++;\n }\n }\n out.println(\"AC x \" + a[0]);\n out.println(\"WA x \" + a[1]);\n out.println(\"TLE x \" + a[2]);\n out.println(\"RE x \" + a[3]);\n }\n }",
"Task",
"public void solve(InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int[] a =new int[4];\n for (int i = 0; i < n; i++){\n String r = in.nextToken();\n if (r.equals(\"AC\")){\n a[0]++;\n }\n else if(r.equals(\"WA\")){\n a[1]++;\n }\n else if (r.equals(\"TLE\")){\n a[2]++;\n }\n else{\n a[3]++;\n }\n }\n out.println(\"AC x \" + a[0]);\n out.println(\"WA x \" + a[1]);\n out.println(\"TLE x \" + a[2]);\n out.println(\"RE x \" + a[3]);\n }",
"solve",
"{\n int n = in.nextInt();\n int[] a =new int[4];\n for (int i = 0; i < n; i++){\n String r = in.nextToken();\n if (r.equals(\"AC\")){\n a[0]++;\n }\n else if(r.equals(\"WA\")){\n a[1]++;\n }\n else if (r.equals(\"TLE\")){\n a[2]++;\n }\n else{\n a[3]++;\n }\n }\n out.println(\"AC x \" + a[0]);\n out.println(\"WA x \" + a[1]);\n out.println(\"TLE x \" + a[2]);\n out.println(\"RE x \" + a[3]);\n }",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"int[] a =new int[4];",
"a",
"new int[4]",
"4",
"for (int i = 0; i < n; i++){\n String r = in.nextToken();\n if (r.equals(\"AC\")){\n a[0]++;\n }\n else if(r.equals(\"WA\")){\n a[1]++;\n }\n else if (r.equals(\"TLE\")){\n a[2]++;\n }\n else{\n a[3]++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String r = in.nextToken();\n if (r.equals(\"AC\")){\n a[0]++;\n }\n else if(r.equals(\"WA\")){\n a[1]++;\n }\n else if (r.equals(\"TLE\")){\n a[2]++;\n }\n else{\n a[3]++;\n }\n }",
"{\n String r = in.nextToken();\n if (r.equals(\"AC\")){\n a[0]++;\n }\n else if(r.equals(\"WA\")){\n a[1]++;\n }\n else if (r.equals(\"TLE\")){\n a[2]++;\n }\n else{\n a[3]++;\n }\n }",
"String r = in.nextToken();",
"r",
"in.nextToken()",
"in.nextToken",
"in",
"if (r.equals(\"AC\")){\n a[0]++;\n }\n else if(r.equals(\"WA\")){\n a[1]++;\n }\n else if (r.equals(\"TLE\")){\n a[2]++;\n }\n else{\n a[3]++;\n }",
"r.equals(\"AC\")",
"r.equals",
"r",
"\"AC\"",
"{\n a[0]++;\n }",
"a[0]++",
"a[0]",
"a",
"0",
"if(r.equals(\"WA\")){\n a[1]++;\n }\n else if (r.equals(\"TLE\")){\n a[2]++;\n }\n else{\n a[3]++;\n }",
"r.equals(\"WA\")",
"r.equals",
"r",
"\"WA\"",
"{\n a[1]++;\n }",
"a[1]++",
"a[1]",
"a",
"1",
"if (r.equals(\"TLE\")){\n a[2]++;\n }\n else{\n a[3]++;\n }",
"r.equals(\"TLE\")",
"r.equals",
"r",
"\"TLE\"",
"{\n a[2]++;\n }",
"a[2]++",
"a[2]",
"a",
"2",
"{\n a[3]++;\n }",
"a[3]++",
"a[3]",
"a",
"3",
"out.println(\"AC x \" + a[0])",
"out.println",
"out",
"\"AC x \" + a[0]",
"\"AC x \"",
"a[0]",
"a",
"0",
"out.println(\"WA x \" + a[1])",
"out.println",
"out",
"\"WA x \" + a[1]",
"\"WA x \"",
"a[1]",
"a",
"1",
"out.println(\"TLE x \" + a[2])",
"out.println",
"out",
"\"TLE x \" + a[2]",
"\"TLE x \"",
"a[2]",
"a",
"2",
"out.println(\"RE x \" + a[3])",
"out.println",
"out",
"\"RE x \" + a[3]",
"\"RE x \"",
"a[3]",
"a",
"3",
"InputReader in",
"in",
"PrintWriter out",
"out",
"static class InputReader {\n BufferedReader br;\n StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n String line = null;\n try {\n line = br.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n if (line == null) {\n return null;\n }\n st = new StringTokenizer(line);\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(nextToken());\n }\n public long nextLong(){\n return Long.parseLong(nextToken());\n }\n }",
"InputReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }",
"InputReader",
"{\n br = new BufferedReader(new InputStreamReader(stream));\n }",
"br = new BufferedReader(new InputStreamReader(stream))",
"br",
"new BufferedReader(new InputStreamReader(stream))",
"InputStream stream",
"stream",
"public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n String line = null;\n try {\n line = br.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n if (line == null) {\n return null;\n }\n st = new StringTokenizer(line);\n }\n return st.nextToken();\n }",
"nextToken",
"{\n while (st == null || !st.hasMoreTokens()) {\n String line = null;\n try {\n line = br.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n if (line == null) {\n return null;\n }\n st = new StringTokenizer(line);\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens()) {\n String line = null;\n try {\n line = br.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n if (line == null) {\n return null;\n }\n st = new StringTokenizer(line);\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n String line = null;\n try {\n line = br.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n if (line == null) {\n return null;\n }\n st = new StringTokenizer(line);\n }",
"String line = null;",
"line",
"null",
"try {\n line = br.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }",
"catch (IOException e) {\n throw new RuntimeException(e);\n }",
"IOException e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n line = br.readLine();\n }",
"line = br.readLine()",
"line",
"br.readLine()",
"br.readLine",
"br",
"if (line == null) {\n return null;\n }",
"line == null",
"line",
"null",
"{\n return null;\n }",
"return null;",
"null",
"st = new StringTokenizer(line)",
"st",
"new StringTokenizer(line)",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public int nextInt() {\n return Integer.parseInt(nextToken());\n }",
"nextInt",
"{\n return Integer.parseInt(nextToken());\n }",
"return Integer.parseInt(nextToken());",
"Integer.parseInt(nextToken())",
"Integer.parseInt",
"Integer",
"nextToken()",
"nextToken",
"public long nextLong(){\n return Long.parseLong(nextToken());\n }",
"nextLong",
"{\n return Long.parseLong(nextToken());\n }",
"return Long.parseLong(nextToken());",
"Long.parseLong(nextToken())",
"Long.parseLong",
"Long",
"nextToken()",
"nextToken",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n solver.solve(in, out);\n out.close();\n }\n // main solver\n static class Task{\n public void solve(InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int[] a =new int[4];\n for (int i = 0; i < n; i++){\n String r = in.nextToken();\n if (r.equals(\"AC\")){\n a[0]++;\n }\n else if(r.equals(\"WA\")){\n a[1]++;\n }\n else if (r.equals(\"TLE\")){\n a[2]++;\n }\n else{\n a[3]++;\n }\n }\n out.println(\"AC x \" + a[0]);\n out.println(\"WA x \" + a[1]);\n out.println(\"TLE x \" + a[2]);\n out.println(\"RE x \" + a[3]);\n }\n }\n // fast input reader class;\n static class InputReader {\n BufferedReader br;\n StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n String line = null;\n try {\n line = br.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n if (line == null) {\n return null;\n }\n st = new StringTokenizer(line);\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(nextToken());\n }\n public long nextLong(){\n return Long.parseLong(nextToken());\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n solver.solve(in, out);\n out.close();\n }\n // main solver\n static class Task{\n public void solve(InputReader in, PrintWriter out) {\n int n = in.nextInt();\n int[] a =new int[4];\n for (int i = 0; i < n; i++){\n String r = in.nextToken();\n if (r.equals(\"AC\")){\n a[0]++;\n }\n else if(r.equals(\"WA\")){\n a[1]++;\n }\n else if (r.equals(\"TLE\")){\n a[2]++;\n }\n else{\n a[3]++;\n }\n }\n out.println(\"AC x \" + a[0]);\n out.println(\"WA x \" + a[1]);\n out.println(\"TLE x \" + a[2]);\n out.println(\"RE x \" + a[3]);\n }\n }\n // fast input reader class;\n static class InputReader {\n BufferedReader br;\n StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n String line = null;\n try {\n line = br.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n if (line == null) {\n return null;\n }\n st = new StringTokenizer(line);\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(nextToken());\n }\n public long nextLong(){\n return Long.parseLong(nextToken());\n }\n }\n}",
"Main"
]
| import java.io.*;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.math.RoundingMode;
import java.util.*;
/**
* @author Tran Anh Tai
* @template for CP codes
* What a trick prob!
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
Task solver = new Task();
solver.solve(in, out);
out.close();
}
// main solver
static class Task{
public void solve(InputReader in, PrintWriter out) {
int n = in.nextInt();
int[] a =new int[4];
for (int i = 0; i < n; i++){
String r = in.nextToken();
if (r.equals("AC")){
a[0]++;
}
else if(r.equals("WA")){
a[1]++;
}
else if (r.equals("TLE")){
a[2]++;
}
else{
a[3]++;
}
}
out.println("AC x " + a[0]);
out.println("WA x " + a[1]);
out.println("TLE x " + a[2]);
out.println("RE x " + a[3]);
}
}
// fast input reader class;
static class InputReader {
BufferedReader br;
StringTokenizer st;
public InputReader(InputStream stream) {
br = new BufferedReader(new InputStreamReader(stream));
}
public String nextToken() {
while (st == null || !st.hasMoreTokens()) {
String line = null;
try {
line = br.readLine();
} catch (IOException e) {
throw new RuntimeException(e);
}
if (line == null) {
return null;
}
st = new StringTokenizer(line);
}
return st.nextToken();
}
public int nextInt() {
return Integer.parseInt(nextToken());
}
public long nextLong(){
return Long.parseLong(nextToken());
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
39,
17,
17,
17,
17,
41,
13,
39,
17,
17,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
35,
18,
13,
13,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
17,
17,
3,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
128,
5
],
[
128,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
23,
26
],
[
23,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
30,
32
],
[
30,
33
],
[
30,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
61,
67
],
[
55,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
70,
76
],
[
55,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
79,
85
],
[
55,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
88,
94
],
[
8,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
100,
101
],
[
100,
102
],
[
95,
103
],
[
103,
104
],
[
104,
105
],
[
95,
106
],
[
107,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
114,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
114,
119
],
[
119,
120
],
[
119,
121
],
[
8,
122
],
[
122,
123
],
[
123,
124
],
[
6,
125
],
[
125,
126
],
[
0,
127
],
[
127,
128
],
[
127,
129
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String[] c = new String[n];\n String[] results = { \"AC\", \"WA\", \"TLE\", \"RE\" };\n int[] resultCnt = { 0, 0, 0, 0 };\n for (int cnt = 0; cnt < n; cnt++) {\n c[cnt] = sc.next();\n switch (c[cnt]) {\n case \"AC\":\n resultCnt[0] += 1;\n break;\n case \"WA\":\n resultCnt[1] += 1;\n break;\n case \"TLE\":\n resultCnt[2] += 1;\n break;\n case \"RE\":\n resultCnt[3] += 1;\n break;\n }\n }\n for (int cnt = 0; cnt < 4; cnt++) {\n System.out.println(results[cnt] + \" x \" + resultCnt[cnt]);\n }\n sc.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String[] c = new String[n];\n String[] results = { \"AC\", \"WA\", \"TLE\", \"RE\" };\n int[] resultCnt = { 0, 0, 0, 0 };\n for (int cnt = 0; cnt < n; cnt++) {\n c[cnt] = sc.next();\n switch (c[cnt]) {\n case \"AC\":\n resultCnt[0] += 1;\n break;\n case \"WA\":\n resultCnt[1] += 1;\n break;\n case \"TLE\":\n resultCnt[2] += 1;\n break;\n case \"RE\":\n resultCnt[3] += 1;\n break;\n }\n }\n for (int cnt = 0; cnt < 4; cnt++) {\n System.out.println(results[cnt] + \" x \" + resultCnt[cnt]);\n }\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String[] c = new String[n];\n String[] results = { \"AC\", \"WA\", \"TLE\", \"RE\" };\n int[] resultCnt = { 0, 0, 0, 0 };\n for (int cnt = 0; cnt < n; cnt++) {\n c[cnt] = sc.next();\n switch (c[cnt]) {\n case \"AC\":\n resultCnt[0] += 1;\n break;\n case \"WA\":\n resultCnt[1] += 1;\n break;\n case \"TLE\":\n resultCnt[2] += 1;\n break;\n case \"RE\":\n resultCnt[3] += 1;\n break;\n }\n }\n for (int cnt = 0; cnt < 4; cnt++) {\n System.out.println(results[cnt] + \" x \" + resultCnt[cnt]);\n }\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String[] c = new String[n];\n String[] results = { \"AC\", \"WA\", \"TLE\", \"RE\" };\n int[] resultCnt = { 0, 0, 0, 0 };\n for (int cnt = 0; cnt < n; cnt++) {\n c[cnt] = sc.next();\n switch (c[cnt]) {\n case \"AC\":\n resultCnt[0] += 1;\n break;\n case \"WA\":\n resultCnt[1] += 1;\n break;\n case \"TLE\":\n resultCnt[2] += 1;\n break;\n case \"RE\":\n resultCnt[3] += 1;\n break;\n }\n }\n for (int cnt = 0; cnt < 4; cnt++) {\n System.out.println(results[cnt] + \" x \" + resultCnt[cnt]);\n }\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String[] c = new String[n];",
"c",
"new String[n]",
"n",
"String[] results = { \"AC\", \"WA\", \"TLE\", \"RE\" };",
"results",
"{ \"AC\", \"WA\", \"TLE\", \"RE\" }",
"\"AC\"",
"\"WA\"",
"\"TLE\"",
"\"RE\"",
"int[] resultCnt = { 0, 0, 0, 0 };",
"resultCnt",
"{ 0, 0, 0, 0 }",
"0",
"0",
"0",
"0",
"for (int cnt = 0; cnt < n; cnt++) {\n c[cnt] = sc.next();\n switch (c[cnt]) {\n case \"AC\":\n resultCnt[0] += 1;\n break;\n case \"WA\":\n resultCnt[1] += 1;\n break;\n case \"TLE\":\n resultCnt[2] += 1;\n break;\n case \"RE\":\n resultCnt[3] += 1;\n break;\n }\n }",
"int cnt = 0;",
"int cnt = 0;",
"cnt",
"0",
"cnt < n",
"cnt",
"n",
"cnt++",
"cnt++",
"cnt",
"{\n c[cnt] = sc.next();\n switch (c[cnt]) {\n case \"AC\":\n resultCnt[0] += 1;\n break;\n case \"WA\":\n resultCnt[1] += 1;\n break;\n case \"TLE\":\n resultCnt[2] += 1;\n break;\n case \"RE\":\n resultCnt[3] += 1;\n break;\n }\n }",
"{\n c[cnt] = sc.next();\n switch (c[cnt]) {\n case \"AC\":\n resultCnt[0] += 1;\n break;\n case \"WA\":\n resultCnt[1] += 1;\n break;\n case \"TLE\":\n resultCnt[2] += 1;\n break;\n case \"RE\":\n resultCnt[3] += 1;\n break;\n }\n }",
"c[cnt] = sc.next()",
"c[cnt]",
"c",
"cnt",
"sc.next()",
"sc.next",
"sc",
"switch (c[cnt]) {\n case \"AC\":\n resultCnt[0] += 1;\n break;\n case \"WA\":\n resultCnt[1] += 1;\n break;\n case \"TLE\":\n resultCnt[2] += 1;\n break;\n case \"RE\":\n resultCnt[3] += 1;\n break;\n }",
"c[cnt]",
"c",
"cnt",
"case \"AC\":",
"\"AC\"",
"case \"AC\":",
"resultCnt[0] += 1",
"resultCnt[0]",
"resultCnt",
"0",
"1",
"break;",
"case \"WA\":",
"\"WA\"",
"case \"WA\":",
"resultCnt[1] += 1",
"resultCnt[1]",
"resultCnt",
"1",
"1",
"break;",
"case \"TLE\":",
"\"TLE\"",
"case \"TLE\":",
"resultCnt[2] += 1",
"resultCnt[2]",
"resultCnt",
"2",
"1",
"break;",
"case \"RE\":",
"\"RE\"",
"case \"RE\":",
"resultCnt[3] += 1",
"resultCnt[3]",
"resultCnt",
"3",
"1",
"break;",
"for (int cnt = 0; cnt < 4; cnt++) {\n System.out.println(results[cnt] + \" x \" + resultCnt[cnt]);\n }",
"int cnt = 0;",
"int cnt = 0;",
"cnt",
"0",
"cnt < 4",
"cnt",
"4",
"cnt++",
"cnt++",
"cnt",
"{\n System.out.println(results[cnt] + \" x \" + resultCnt[cnt]);\n }",
"{\n System.out.println(results[cnt] + \" x \" + resultCnt[cnt]);\n }",
"System.out.println(results[cnt] + \" x \" + resultCnt[cnt])",
"System.out.println",
"System.out",
"System",
"System.out",
"results[cnt] + \" x \" + resultCnt[cnt]",
"results[cnt] + \" x \" + resultCnt[cnt]",
"results[cnt]",
"results",
"cnt",
"\" x \"",
"resultCnt[cnt]",
"resultCnt",
"cnt",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String[] c = new String[n];\n String[] results = { \"AC\", \"WA\", \"TLE\", \"RE\" };\n int[] resultCnt = { 0, 0, 0, 0 };\n for (int cnt = 0; cnt < n; cnt++) {\n c[cnt] = sc.next();\n switch (c[cnt]) {\n case \"AC\":\n resultCnt[0] += 1;\n break;\n case \"WA\":\n resultCnt[1] += 1;\n break;\n case \"TLE\":\n resultCnt[2] += 1;\n break;\n case \"RE\":\n resultCnt[3] += 1;\n break;\n }\n }\n for (int cnt = 0; cnt < 4; cnt++) {\n System.out.println(results[cnt] + \" x \" + resultCnt[cnt]);\n }\n sc.close();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String[] c = new String[n];\n String[] results = { \"AC\", \"WA\", \"TLE\", \"RE\" };\n int[] resultCnt = { 0, 0, 0, 0 };\n for (int cnt = 0; cnt < n; cnt++) {\n c[cnt] = sc.next();\n switch (c[cnt]) {\n case \"AC\":\n resultCnt[0] += 1;\n break;\n case \"WA\":\n resultCnt[1] += 1;\n break;\n case \"TLE\":\n resultCnt[2] += 1;\n break;\n case \"RE\":\n resultCnt[3] += 1;\n break;\n }\n }\n for (int cnt = 0; cnt < 4; cnt++) {\n System.out.println(results[cnt] + \" x \" + resultCnt[cnt]);\n }\n sc.close();\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
String[] c = new String[n];
String[] results = { "AC", "WA", "TLE", "RE" };
int[] resultCnt = { 0, 0, 0, 0 };
for (int cnt = 0; cnt < n; cnt++) {
c[cnt] = sc.next();
switch (c[cnt]) {
case "AC":
resultCnt[0] += 1;
break;
case "WA":
resultCnt[1] += 1;
break;
case "TLE":
resultCnt[2] += 1;
break;
case "RE":
resultCnt[3] += 1;
break;
}
}
for (int cnt = 0; cnt < 4; cnt++) {
System.out.println(results[cnt] + " x " + resultCnt[cnt]);
}
sc.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
13,
30,
40,
13,
14,
4,
18,
13,
13,
30,
40,
13,
14,
4,
18,
13,
13,
30,
40,
13,
30,
40,
13,
4,
18,
18,
13,
13,
2,
2,
13,
13,
13,
4,
18,
18,
13,
13,
2,
2,
13,
13,
13,
4,
18,
18,
13,
13,
2,
2,
13,
13,
13,
4,
18,
18,
13,
13,
2,
2,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
132,
5
],
[
132,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
62,
67
],
[
67,
68
],
[
68,
69
],
[
62,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
70,
75
],
[
75,
76
],
[
76,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
78,
83
],
[
83,
84
],
[
84,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
8,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
95,
95
],
[
95,
96
],
[
95,
97
],
[
95,
98
],
[
8,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
105,
105
],
[
105,
106
],
[
105,
107
],
[
105,
108
],
[
8,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
115,
115
],
[
115,
116
],
[
115,
117
],
[
115,
118
],
[
8,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
125,
125
],
[
125,
126
],
[
125,
127
],
[
125,
128
],
[
6,
129
],
[
129,
130
],
[
0,
131
],
[
131,
132
],
[
131,
133
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n final String AC = \"AC\";\n final String WA = \"WA\";\n final String TLE = \"TLE\";\n final String RE = \"RE\";\n final String x = \" x \";\n\n int ACc = 0;\n int WAc = 0;\n int TLEc = 0;\n int REc = 0;\n\n int N = sc.nextInt();\n for (int i = 0; i < N; i++) {\n String S = sc.next();\n if (S.equals(AC)) {\n ACc++;\n } else if (S.equals(WA)) {\n WAc++;\n } else if (S.equals(TLE)) {\n TLEc++;\n } else {\n REc++;\n }\n }\n System.out.println(AC + x + ACc);\n System.out.println(WA + x + WAc);\n System.out.println(TLE + x + TLEc);\n System.out.println(RE + x + REc);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n final String AC = \"AC\";\n final String WA = \"WA\";\n final String TLE = \"TLE\";\n final String RE = \"RE\";\n final String x = \" x \";\n\n int ACc = 0;\n int WAc = 0;\n int TLEc = 0;\n int REc = 0;\n\n int N = sc.nextInt();\n for (int i = 0; i < N; i++) {\n String S = sc.next();\n if (S.equals(AC)) {\n ACc++;\n } else if (S.equals(WA)) {\n WAc++;\n } else if (S.equals(TLE)) {\n TLEc++;\n } else {\n REc++;\n }\n }\n System.out.println(AC + x + ACc);\n System.out.println(WA + x + WAc);\n System.out.println(TLE + x + TLEc);\n System.out.println(RE + x + REc);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n final String AC = \"AC\";\n final String WA = \"WA\";\n final String TLE = \"TLE\";\n final String RE = \"RE\";\n final String x = \" x \";\n\n int ACc = 0;\n int WAc = 0;\n int TLEc = 0;\n int REc = 0;\n\n int N = sc.nextInt();\n for (int i = 0; i < N; i++) {\n String S = sc.next();\n if (S.equals(AC)) {\n ACc++;\n } else if (S.equals(WA)) {\n WAc++;\n } else if (S.equals(TLE)) {\n TLEc++;\n } else {\n REc++;\n }\n }\n System.out.println(AC + x + ACc);\n System.out.println(WA + x + WAc);\n System.out.println(TLE + x + TLEc);\n System.out.println(RE + x + REc);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n final String AC = \"AC\";\n final String WA = \"WA\";\n final String TLE = \"TLE\";\n final String RE = \"RE\";\n final String x = \" x \";\n\n int ACc = 0;\n int WAc = 0;\n int TLEc = 0;\n int REc = 0;\n\n int N = sc.nextInt();\n for (int i = 0; i < N; i++) {\n String S = sc.next();\n if (S.equals(AC)) {\n ACc++;\n } else if (S.equals(WA)) {\n WAc++;\n } else if (S.equals(TLE)) {\n TLEc++;\n } else {\n REc++;\n }\n }\n System.out.println(AC + x + ACc);\n System.out.println(WA + x + WAc);\n System.out.println(TLE + x + TLEc);\n System.out.println(RE + x + REc);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"final String AC = \"AC\";",
"AC",
"\"AC\"",
"final String WA = \"WA\";",
"WA",
"\"WA\"",
"final String TLE = \"TLE\";",
"TLE",
"\"TLE\"",
"final String RE = \"RE\";",
"RE",
"\"RE\"",
"final String x = \" x \";",
"x",
"\" x \"",
"int ACc = 0;",
"ACc",
"0",
"int WAc = 0;",
"WAc",
"0",
"int TLEc = 0;",
"TLEc",
"0",
"int REc = 0;",
"REc",
"0",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < N; i++) {\n String S = sc.next();\n if (S.equals(AC)) {\n ACc++;\n } else if (S.equals(WA)) {\n WAc++;\n } else if (S.equals(TLE)) {\n TLEc++;\n } else {\n REc++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n String S = sc.next();\n if (S.equals(AC)) {\n ACc++;\n } else if (S.equals(WA)) {\n WAc++;\n } else if (S.equals(TLE)) {\n TLEc++;\n } else {\n REc++;\n }\n }",
"{\n String S = sc.next();\n if (S.equals(AC)) {\n ACc++;\n } else if (S.equals(WA)) {\n WAc++;\n } else if (S.equals(TLE)) {\n TLEc++;\n } else {\n REc++;\n }\n }",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"if (S.equals(AC)) {\n ACc++;\n } else if (S.equals(WA)) {\n WAc++;\n } else if (S.equals(TLE)) {\n TLEc++;\n } else {\n REc++;\n }",
"S.equals(AC)",
"S.equals",
"S",
"AC",
"{\n ACc++;\n }",
"ACc++",
"ACc",
"if (S.equals(WA)) {\n WAc++;\n } else if (S.equals(TLE)) {\n TLEc++;\n } else {\n REc++;\n }",
"S.equals(WA)",
"S.equals",
"S",
"WA",
"{\n WAc++;\n }",
"WAc++",
"WAc",
"if (S.equals(TLE)) {\n TLEc++;\n } else {\n REc++;\n }",
"S.equals(TLE)",
"S.equals",
"S",
"TLE",
"{\n TLEc++;\n }",
"TLEc++",
"TLEc",
"{\n REc++;\n }",
"REc++",
"REc",
"System.out.println(AC + x + ACc)",
"System.out.println",
"System.out",
"System",
"System.out",
"AC + x + ACc",
"AC + x + ACc",
"AC",
"x",
"ACc",
"System.out.println(WA + x + WAc)",
"System.out.println",
"System.out",
"System",
"System.out",
"WA + x + WAc",
"WA + x + WAc",
"WA",
"x",
"WAc",
"System.out.println(TLE + x + TLEc)",
"System.out.println",
"System.out",
"System",
"System.out",
"TLE + x + TLEc",
"TLE + x + TLEc",
"TLE",
"x",
"TLEc",
"System.out.println(RE + x + REc)",
"System.out.println",
"System.out",
"System",
"System.out",
"RE + x + REc",
"RE + x + REc",
"RE",
"x",
"REc",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n final String AC = \"AC\";\n final String WA = \"WA\";\n final String TLE = \"TLE\";\n final String RE = \"RE\";\n final String x = \" x \";\n\n int ACc = 0;\n int WAc = 0;\n int TLEc = 0;\n int REc = 0;\n\n int N = sc.nextInt();\n for (int i = 0; i < N; i++) {\n String S = sc.next();\n if (S.equals(AC)) {\n ACc++;\n } else if (S.equals(WA)) {\n WAc++;\n } else if (S.equals(TLE)) {\n TLEc++;\n } else {\n REc++;\n }\n }\n System.out.println(AC + x + ACc);\n System.out.println(WA + x + WAc);\n System.out.println(TLE + x + TLEc);\n System.out.println(RE + x + REc);\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n final String AC = \"AC\";\n final String WA = \"WA\";\n final String TLE = \"TLE\";\n final String RE = \"RE\";\n final String x = \" x \";\n\n int ACc = 0;\n int WAc = 0;\n int TLEc = 0;\n int REc = 0;\n\n int N = sc.nextInt();\n for (int i = 0; i < N; i++) {\n String S = sc.next();\n if (S.equals(AC)) {\n ACc++;\n } else if (S.equals(WA)) {\n WAc++;\n } else if (S.equals(TLE)) {\n TLEc++;\n } else {\n REc++;\n }\n }\n System.out.println(AC + x + ACc);\n System.out.println(WA + x + WAc);\n System.out.println(TLE + x + TLEc);\n System.out.println(RE + x + REc);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
final String AC = "AC";
final String WA = "WA";
final String TLE = "TLE";
final String RE = "RE";
final String x = " x ";
int ACc = 0;
int WAc = 0;
int TLEc = 0;
int REc = 0;
int N = sc.nextInt();
for (int i = 0; i < N; i++) {
String S = sc.next();
if (S.equals(AC)) {
ACc++;
} else if (S.equals(WA)) {
WAc++;
} else if (S.equals(TLE)) {
TLEc++;
} else {
REc++;
}
}
System.out.println(AC + x + ACc);
System.out.println(WA + x + WAc);
System.out.println(TLE + x + TLEc);
System.out.println(RE + x + REc);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
42,
2,
13,
17,
30,
40,
13,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
40,
13,
14,
4,
18,
13,
17,
30,
40,
13,
14,
4,
18,
13,
17,
30,
40,
13,
14,
4,
18,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
4,
18,
13,
17,
13,
4,
18,
18,
13,
13,
4,
18,
13,
17,
13,
4,
18,
18,
13,
13,
4,
18,
13,
17,
13,
4,
18,
18,
13,
13,
4,
18,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
116,
5
],
[
116,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
41,
46
],
[
46,
47
],
[
47,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
49,
54
],
[
54,
55
],
[
55,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
57,
62
],
[
62,
63
],
[
63,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
65,
70
],
[
70,
71
],
[
71,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
78,
82
],
[
8,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
88,
92
],
[
8,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
98,
102
],
[
8,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
108,
112
],
[
6,
113
],
[
113,
114
],
[
0,
115
],
[
115,
116
],
[
115,
117
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int cntAC=0;\n int cntWA=0;\n int cntTLE=0;\n int cntRE=0;\n while(n>0){\n n--;\n String s = sc.next();\n if(s.equals(\"AC\")){\n cntAC++;\n }\n else if(s.equals(\"WA\")){\n cntWA++;\n }\n else if(s.equals(\"TLE\")){\n cntTLE++;\n }\n else if(s.equals(\"RE\")){\n cntRE++;\n }\n }\n System.out.println(String.format(\"AC x %d\",cntAC));\n System.out.println(String.format(\"WA x %d\",cntWA));\n System.out.println(String.format(\"TLE x %d\",cntTLE));\n System.out.println(String.format(\"RE x %d\",cntRE));\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int cntAC=0;\n int cntWA=0;\n int cntTLE=0;\n int cntRE=0;\n while(n>0){\n n--;\n String s = sc.next();\n if(s.equals(\"AC\")){\n cntAC++;\n }\n else if(s.equals(\"WA\")){\n cntWA++;\n }\n else if(s.equals(\"TLE\")){\n cntTLE++;\n }\n else if(s.equals(\"RE\")){\n cntRE++;\n }\n }\n System.out.println(String.format(\"AC x %d\",cntAC));\n System.out.println(String.format(\"WA x %d\",cntWA));\n System.out.println(String.format(\"TLE x %d\",cntTLE));\n System.out.println(String.format(\"RE x %d\",cntRE));\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int cntAC=0;\n int cntWA=0;\n int cntTLE=0;\n int cntRE=0;\n while(n>0){\n n--;\n String s = sc.next();\n if(s.equals(\"AC\")){\n cntAC++;\n }\n else if(s.equals(\"WA\")){\n cntWA++;\n }\n else if(s.equals(\"TLE\")){\n cntTLE++;\n }\n else if(s.equals(\"RE\")){\n cntRE++;\n }\n }\n System.out.println(String.format(\"AC x %d\",cntAC));\n System.out.println(String.format(\"WA x %d\",cntWA));\n System.out.println(String.format(\"TLE x %d\",cntTLE));\n System.out.println(String.format(\"RE x %d\",cntRE));\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int cntAC=0;\n int cntWA=0;\n int cntTLE=0;\n int cntRE=0;\n while(n>0){\n n--;\n String s = sc.next();\n if(s.equals(\"AC\")){\n cntAC++;\n }\n else if(s.equals(\"WA\")){\n cntWA++;\n }\n else if(s.equals(\"TLE\")){\n cntTLE++;\n }\n else if(s.equals(\"RE\")){\n cntRE++;\n }\n }\n System.out.println(String.format(\"AC x %d\",cntAC));\n System.out.println(String.format(\"WA x %d\",cntWA));\n System.out.println(String.format(\"TLE x %d\",cntTLE));\n System.out.println(String.format(\"RE x %d\",cntRE));\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int cntAC=0;",
"cntAC",
"0",
"int cntWA=0;",
"cntWA",
"0",
"int cntTLE=0;",
"cntTLE",
"0",
"int cntRE=0;",
"cntRE",
"0",
"while(n>0){\n n--;\n String s = sc.next();\n if(s.equals(\"AC\")){\n cntAC++;\n }\n else if(s.equals(\"WA\")){\n cntWA++;\n }\n else if(s.equals(\"TLE\")){\n cntTLE++;\n }\n else if(s.equals(\"RE\")){\n cntRE++;\n }\n }",
"n>0",
"n",
"0",
"{\n n--;\n String s = sc.next();\n if(s.equals(\"AC\")){\n cntAC++;\n }\n else if(s.equals(\"WA\")){\n cntWA++;\n }\n else if(s.equals(\"TLE\")){\n cntTLE++;\n }\n else if(s.equals(\"RE\")){\n cntRE++;\n }\n }",
"n--",
"n",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"if(s.equals(\"AC\")){\n cntAC++;\n }\n else if(s.equals(\"WA\")){\n cntWA++;\n }\n else if(s.equals(\"TLE\")){\n cntTLE++;\n }\n else if(s.equals(\"RE\")){\n cntRE++;\n }",
"s.equals(\"AC\")",
"s.equals",
"s",
"\"AC\"",
"{\n cntAC++;\n }",
"cntAC++",
"cntAC",
"if(s.equals(\"WA\")){\n cntWA++;\n }\n else if(s.equals(\"TLE\")){\n cntTLE++;\n }\n else if(s.equals(\"RE\")){\n cntRE++;\n }",
"s.equals(\"WA\")",
"s.equals",
"s",
"\"WA\"",
"{\n cntWA++;\n }",
"cntWA++",
"cntWA",
"if(s.equals(\"TLE\")){\n cntTLE++;\n }\n else if(s.equals(\"RE\")){\n cntRE++;\n }",
"s.equals(\"TLE\")",
"s.equals",
"s",
"\"TLE\"",
"{\n cntTLE++;\n }",
"cntTLE++",
"cntTLE",
"if(s.equals(\"RE\")){\n cntRE++;\n }",
"s.equals(\"RE\")",
"s.equals",
"s",
"\"RE\"",
"{\n cntRE++;\n }",
"cntRE++",
"cntRE",
"System.out.println(String.format(\"AC x %d\",cntAC))",
"System.out.println",
"System.out",
"System",
"System.out",
"String.format(\"AC x %d\",cntAC)",
"String.format",
"String",
"\"AC x %d\"",
"cntAC",
"System.out.println(String.format(\"WA x %d\",cntWA))",
"System.out.println",
"System.out",
"System",
"System.out",
"String.format(\"WA x %d\",cntWA)",
"String.format",
"String",
"\"WA x %d\"",
"cntWA",
"System.out.println(String.format(\"TLE x %d\",cntTLE))",
"System.out.println",
"System.out",
"System",
"System.out",
"String.format(\"TLE x %d\",cntTLE)",
"String.format",
"String",
"\"TLE x %d\"",
"cntTLE",
"System.out.println(String.format(\"RE x %d\",cntRE))",
"System.out.println",
"System.out",
"System",
"System.out",
"String.format(\"RE x %d\",cntRE)",
"String.format",
"String",
"\"RE x %d\"",
"cntRE",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int cntAC=0;\n int cntWA=0;\n int cntTLE=0;\n int cntRE=0;\n while(n>0){\n n--;\n String s = sc.next();\n if(s.equals(\"AC\")){\n cntAC++;\n }\n else if(s.equals(\"WA\")){\n cntWA++;\n }\n else if(s.equals(\"TLE\")){\n cntTLE++;\n }\n else if(s.equals(\"RE\")){\n cntRE++;\n }\n }\n System.out.println(String.format(\"AC x %d\",cntAC));\n System.out.println(String.format(\"WA x %d\",cntWA));\n System.out.println(String.format(\"TLE x %d\",cntTLE));\n System.out.println(String.format(\"RE x %d\",cntRE));\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int cntAC=0;\n int cntWA=0;\n int cntTLE=0;\n int cntRE=0;\n while(n>0){\n n--;\n String s = sc.next();\n if(s.equals(\"AC\")){\n cntAC++;\n }\n else if(s.equals(\"WA\")){\n cntWA++;\n }\n else if(s.equals(\"TLE\")){\n cntTLE++;\n }\n else if(s.equals(\"RE\")){\n cntRE++;\n }\n }\n System.out.println(String.format(\"AC x %d\",cntAC));\n System.out.println(String.format(\"WA x %d\",cntWA));\n System.out.println(String.format(\"TLE x %d\",cntTLE));\n System.out.println(String.format(\"RE x %d\",cntRE));\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int cntAC=0;
int cntWA=0;
int cntTLE=0;
int cntRE=0;
while(n>0){
n--;
String s = sc.next();
if(s.equals("AC")){
cntAC++;
}
else if(s.equals("WA")){
cntWA++;
}
else if(s.equals("TLE")){
cntTLE++;
}
else if(s.equals("RE")){
cntRE++;
}
}
System.out.println(String.format("AC x %d",cntAC));
System.out.println(String.format("WA x %d",cntWA));
System.out.println(String.format("TLE x %d",cntTLE));
System.out.println(String.format("RE x %d",cntRE));
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
18,
13,
13,
17,
40,
18,
13,
17,
14,
4,
18,
18,
13,
13,
17,
40,
18,
13,
17,
14,
4,
18,
18,
13,
13,
17,
40,
18,
13,
17,
14,
4,
18,
18,
13,
13,
17,
40,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
18,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
145,
5
],
[
145,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
26,
27
],
[
26,
28
],
[
21,
29
],
[
29,
30
],
[
30,
31
],
[
21,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
8,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
58,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
57,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
69,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
57,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
80,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
57,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
91,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
8,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
109,
111
],
[
8,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
119,
121
],
[
8,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
129,
131
],
[
8,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
139,
141
],
[
6,
142
],
[
142,
143
],
[
0,
144
],
[
144,
145
],
[
144,
146
]
]
| [
"\n\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tString[] s = new String[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ts[i] = sc.next();\n\t\t}\n\t\tint[] ans = new int[4];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tif (s[i].equals(\"AC\"))\n\t\t\t\tans[0]++;\n\t\t\tif (s[i].equals(\"WA\"))\n\t\t\t\tans[1]++;\n\t\t\tif (s[i].equals(\"TLE\"))\n\t\t\t\tans[2]++;\n\t\t\tif (s[i].equals(\"RE\"))\n\t\t\t\tans[3]++;\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + ans[0]);\n\t\tSystem.out.println(\"WA x \" + ans[1]);\n\t\tSystem.out.println(\"TLE x \" + ans[2]);\n\t\tSystem.out.println(\"RE x \" + ans[3]);\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tString[] s = new String[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ts[i] = sc.next();\n\t\t}\n\t\tint[] ans = new int[4];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tif (s[i].equals(\"AC\"))\n\t\t\t\tans[0]++;\n\t\t\tif (s[i].equals(\"WA\"))\n\t\t\t\tans[1]++;\n\t\t\tif (s[i].equals(\"TLE\"))\n\t\t\t\tans[2]++;\n\t\t\tif (s[i].equals(\"RE\"))\n\t\t\t\tans[3]++;\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + ans[0]);\n\t\tSystem.out.println(\"WA x \" + ans[1]);\n\t\tSystem.out.println(\"TLE x \" + ans[2]);\n\t\tSystem.out.println(\"RE x \" + ans[3]);\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tString[] s = new String[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ts[i] = sc.next();\n\t\t}\n\t\tint[] ans = new int[4];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tif (s[i].equals(\"AC\"))\n\t\t\t\tans[0]++;\n\t\t\tif (s[i].equals(\"WA\"))\n\t\t\t\tans[1]++;\n\t\t\tif (s[i].equals(\"TLE\"))\n\t\t\t\tans[2]++;\n\t\t\tif (s[i].equals(\"RE\"))\n\t\t\t\tans[3]++;\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + ans[0]);\n\t\tSystem.out.println(\"WA x \" + ans[1]);\n\t\tSystem.out.println(\"TLE x \" + ans[2]);\n\t\tSystem.out.println(\"RE x \" + ans[3]);\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tString[] s = new String[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ts[i] = sc.next();\n\t\t}\n\t\tint[] ans = new int[4];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tif (s[i].equals(\"AC\"))\n\t\t\t\tans[0]++;\n\t\t\tif (s[i].equals(\"WA\"))\n\t\t\t\tans[1]++;\n\t\t\tif (s[i].equals(\"TLE\"))\n\t\t\t\tans[2]++;\n\t\t\tif (s[i].equals(\"RE\"))\n\t\t\t\tans[3]++;\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + ans[0]);\n\t\tSystem.out.println(\"WA x \" + ans[1]);\n\t\tSystem.out.println(\"TLE x \" + ans[2]);\n\t\tSystem.out.println(\"RE x \" + ans[3]);\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String[] s = new String[n];",
"s",
"new String[n]",
"n",
"for (int i = 0; i < n; i++) {\n\t\t\ts[i] = sc.next();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\ts[i] = sc.next();\n\t\t}",
"{\n\t\t\ts[i] = sc.next();\n\t\t}",
"s[i] = sc.next()",
"s[i]",
"s",
"i",
"sc.next()",
"sc.next",
"sc",
"int[] ans = new int[4];",
"ans",
"new int[4]",
"4",
"for (int i = 0; i < n; i++) {\n\t\t\tif (s[i].equals(\"AC\"))\n\t\t\t\tans[0]++;\n\t\t\tif (s[i].equals(\"WA\"))\n\t\t\t\tans[1]++;\n\t\t\tif (s[i].equals(\"TLE\"))\n\t\t\t\tans[2]++;\n\t\t\tif (s[i].equals(\"RE\"))\n\t\t\t\tans[3]++;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif (s[i].equals(\"AC\"))\n\t\t\t\tans[0]++;\n\t\t\tif (s[i].equals(\"WA\"))\n\t\t\t\tans[1]++;\n\t\t\tif (s[i].equals(\"TLE\"))\n\t\t\t\tans[2]++;\n\t\t\tif (s[i].equals(\"RE\"))\n\t\t\t\tans[3]++;\n\t\t}",
"{\n\t\t\tif (s[i].equals(\"AC\"))\n\t\t\t\tans[0]++;\n\t\t\tif (s[i].equals(\"WA\"))\n\t\t\t\tans[1]++;\n\t\t\tif (s[i].equals(\"TLE\"))\n\t\t\t\tans[2]++;\n\t\t\tif (s[i].equals(\"RE\"))\n\t\t\t\tans[3]++;\n\t\t}",
"if (s[i].equals(\"AC\"))\n\t\t\t\tans[0]++;",
"s[i].equals(\"AC\")",
"s[i].equals",
"s[i]",
"s",
"i",
"\"AC\"",
"ans[0]++",
"ans[0]",
"ans",
"0",
"if (s[i].equals(\"WA\"))\n\t\t\t\tans[1]++;",
"s[i].equals(\"WA\")",
"s[i].equals",
"s[i]",
"s",
"i",
"\"WA\"",
"ans[1]++",
"ans[1]",
"ans",
"1",
"if (s[i].equals(\"TLE\"))\n\t\t\t\tans[2]++;",
"s[i].equals(\"TLE\")",
"s[i].equals",
"s[i]",
"s",
"i",
"\"TLE\"",
"ans[2]++",
"ans[2]",
"ans",
"2",
"if (s[i].equals(\"RE\"))\n\t\t\t\tans[3]++;",
"s[i].equals(\"RE\")",
"s[i].equals",
"s[i]",
"s",
"i",
"\"RE\"",
"ans[3]++",
"ans[3]",
"ans",
"3",
"System.out.println(\"AC x \" + ans[0])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + ans[0]",
"\"AC x \"",
"ans[0]",
"ans",
"0",
"System.out.println(\"WA x \" + ans[1])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + ans[1]",
"\"WA x \"",
"ans[1]",
"ans",
"1",
"System.out.println(\"TLE x \" + ans[2])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + ans[2]",
"\"TLE x \"",
"ans[2]",
"ans",
"2",
"System.out.println(\"RE x \" + ans[3])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + ans[3]",
"\"RE x \"",
"ans[3]",
"ans",
"3",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tString[] s = new String[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ts[i] = sc.next();\n\t\t}\n\t\tint[] ans = new int[4];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tif (s[i].equals(\"AC\"))\n\t\t\t\tans[0]++;\n\t\t\tif (s[i].equals(\"WA\"))\n\t\t\t\tans[1]++;\n\t\t\tif (s[i].equals(\"TLE\"))\n\t\t\t\tans[2]++;\n\t\t\tif (s[i].equals(\"RE\"))\n\t\t\t\tans[3]++;\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + ans[0]);\n\t\tSystem.out.println(\"WA x \" + ans[1]);\n\t\tSystem.out.println(\"TLE x \" + ans[2]);\n\t\tSystem.out.println(\"RE x \" + ans[3]);\n\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tString[] s = new String[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ts[i] = sc.next();\n\t\t}\n\t\tint[] ans = new int[4];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tif (s[i].equals(\"AC\"))\n\t\t\t\tans[0]++;\n\t\t\tif (s[i].equals(\"WA\"))\n\t\t\t\tans[1]++;\n\t\t\tif (s[i].equals(\"TLE\"))\n\t\t\t\tans[2]++;\n\t\t\tif (s[i].equals(\"RE\"))\n\t\t\t\tans[3]++;\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + ans[0]);\n\t\tSystem.out.println(\"WA x \" + ans[1]);\n\t\tSystem.out.println(\"TLE x \" + ans[2]);\n\t\tSystem.out.println(\"RE x \" + ans[3]);\n\n\t}\n\n}",
"Main"
]
|
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
String[] s = new String[n];
for (int i = 0; i < n; i++) {
s[i] = sc.next();
}
int[] ans = new int[4];
for (int i = 0; i < n; i++) {
if (s[i].equals("AC"))
ans[0]++;
if (s[i].equals("WA"))
ans[1]++;
if (s[i].equals("TLE"))
ans[2]++;
if (s[i].equals("RE"))
ans[3]++;
}
System.out.println("AC x " + ans[0]);
System.out.println("WA x " + ans[1]);
System.out.println("TLE x " + ans[2]);
System.out.println("RE x " + ans[3]);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
0,
13,
17,
14,
4,
18,
13,
17,
30,
0,
13,
17,
14,
4,
18,
13,
17,
30,
0,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
2,
2,
2,
2,
2,
17,
13,
17,
13,
17,
13,
17,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
104,
5
],
[
104,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
47,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
56,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
56,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
65,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
65,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
8,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
89,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
87,
93
],
[
86,
94
],
[
85,
95
],
[
84,
96
],
[
89,
97
],
[
8,
98
],
[
98,
99
],
[
99,
100
],
[
6,
101
],
[
101,
102
],
[
0,
103
],
[
103,
104
],
[
103,
105
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner kb = new Scanner(System.in);\n\t\tint n = kb.nextInt();\n\t\tint c1 = 0;\n\t\tint c2 = 0;\n\t\tint c3 = 0;\n\t\tint c4 = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString s = kb.next();\n\t\t\tif (s.equals(\"AC\")) {\n\t\t\t\tc1 += 1;\n\t\t\t} else if (s.equals(\"WA\")) {\n\t\t\t\tc2 += 1;\n\t\t\t} else if (s.equals(\"TLE\")) {\n\t\t\t\tc3 += 1;\n\t\t\t} else {\n\t\t\t\tc4 += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + c1 + \"\\nWA x \" + c2 + \"\\nTLE x \" + c3 + \"\\nRE x \" + c4);\n\t\tkb.close();\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner kb = new Scanner(System.in);\n\t\tint n = kb.nextInt();\n\t\tint c1 = 0;\n\t\tint c2 = 0;\n\t\tint c3 = 0;\n\t\tint c4 = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString s = kb.next();\n\t\t\tif (s.equals(\"AC\")) {\n\t\t\t\tc1 += 1;\n\t\t\t} else if (s.equals(\"WA\")) {\n\t\t\t\tc2 += 1;\n\t\t\t} else if (s.equals(\"TLE\")) {\n\t\t\t\tc3 += 1;\n\t\t\t} else {\n\t\t\t\tc4 += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + c1 + \"\\nWA x \" + c2 + \"\\nTLE x \" + c3 + \"\\nRE x \" + c4);\n\t\tkb.close();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner kb = new Scanner(System.in);\n\t\tint n = kb.nextInt();\n\t\tint c1 = 0;\n\t\tint c2 = 0;\n\t\tint c3 = 0;\n\t\tint c4 = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString s = kb.next();\n\t\t\tif (s.equals(\"AC\")) {\n\t\t\t\tc1 += 1;\n\t\t\t} else if (s.equals(\"WA\")) {\n\t\t\t\tc2 += 1;\n\t\t\t} else if (s.equals(\"TLE\")) {\n\t\t\t\tc3 += 1;\n\t\t\t} else {\n\t\t\t\tc4 += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + c1 + \"\\nWA x \" + c2 + \"\\nTLE x \" + c3 + \"\\nRE x \" + c4);\n\t\tkb.close();\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tScanner kb = new Scanner(System.in);\n\t\tint n = kb.nextInt();\n\t\tint c1 = 0;\n\t\tint c2 = 0;\n\t\tint c3 = 0;\n\t\tint c4 = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString s = kb.next();\n\t\t\tif (s.equals(\"AC\")) {\n\t\t\t\tc1 += 1;\n\t\t\t} else if (s.equals(\"WA\")) {\n\t\t\t\tc2 += 1;\n\t\t\t} else if (s.equals(\"TLE\")) {\n\t\t\t\tc3 += 1;\n\t\t\t} else {\n\t\t\t\tc4 += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + c1 + \"\\nWA x \" + c2 + \"\\nTLE x \" + c3 + \"\\nRE x \" + c4);\n\t\tkb.close();\n\t}",
"Scanner kb = new Scanner(System.in);",
"kb",
"new Scanner(System.in)",
"int n = kb.nextInt();",
"n",
"kb.nextInt()",
"kb.nextInt",
"kb",
"int c1 = 0;",
"c1",
"0",
"int c2 = 0;",
"c2",
"0",
"int c3 = 0;",
"c3",
"0",
"int c4 = 0;",
"c4",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\tString s = kb.next();\n\t\t\tif (s.equals(\"AC\")) {\n\t\t\t\tc1 += 1;\n\t\t\t} else if (s.equals(\"WA\")) {\n\t\t\t\tc2 += 1;\n\t\t\t} else if (s.equals(\"TLE\")) {\n\t\t\t\tc3 += 1;\n\t\t\t} else {\n\t\t\t\tc4 += 1;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString s = kb.next();\n\t\t\tif (s.equals(\"AC\")) {\n\t\t\t\tc1 += 1;\n\t\t\t} else if (s.equals(\"WA\")) {\n\t\t\t\tc2 += 1;\n\t\t\t} else if (s.equals(\"TLE\")) {\n\t\t\t\tc3 += 1;\n\t\t\t} else {\n\t\t\t\tc4 += 1;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString s = kb.next();\n\t\t\tif (s.equals(\"AC\")) {\n\t\t\t\tc1 += 1;\n\t\t\t} else if (s.equals(\"WA\")) {\n\t\t\t\tc2 += 1;\n\t\t\t} else if (s.equals(\"TLE\")) {\n\t\t\t\tc3 += 1;\n\t\t\t} else {\n\t\t\t\tc4 += 1;\n\t\t\t}\n\t\t}",
"String s = kb.next();",
"s",
"kb.next()",
"kb.next",
"kb",
"if (s.equals(\"AC\")) {\n\t\t\t\tc1 += 1;\n\t\t\t} else if (s.equals(\"WA\")) {\n\t\t\t\tc2 += 1;\n\t\t\t} else if (s.equals(\"TLE\")) {\n\t\t\t\tc3 += 1;\n\t\t\t} else {\n\t\t\t\tc4 += 1;\n\t\t\t}",
"s.equals(\"AC\")",
"s.equals",
"s",
"\"AC\"",
"{\n\t\t\t\tc1 += 1;\n\t\t\t}",
"c1 += 1",
"c1",
"1",
"if (s.equals(\"WA\")) {\n\t\t\t\tc2 += 1;\n\t\t\t} else if (s.equals(\"TLE\")) {\n\t\t\t\tc3 += 1;\n\t\t\t} else {\n\t\t\t\tc4 += 1;\n\t\t\t}",
"s.equals(\"WA\")",
"s.equals",
"s",
"\"WA\"",
"{\n\t\t\t\tc2 += 1;\n\t\t\t}",
"c2 += 1",
"c2",
"1",
"if (s.equals(\"TLE\")) {\n\t\t\t\tc3 += 1;\n\t\t\t} else {\n\t\t\t\tc4 += 1;\n\t\t\t}",
"s.equals(\"TLE\")",
"s.equals",
"s",
"\"TLE\"",
"{\n\t\t\t\tc3 += 1;\n\t\t\t}",
"c3 += 1",
"c3",
"1",
"{\n\t\t\t\tc4 += 1;\n\t\t\t}",
"c4 += 1",
"c4",
"1",
"System.out.println(\"AC x \" + c1 + \"\\nWA x \" + c2 + \"\\nTLE x \" + c3 + \"\\nRE x \" + c4)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + c1 + \"\\nWA x \" + c2 + \"\\nTLE x \" + c3 + \"\\nRE x \" + c4",
"\"\\nRE x \"",
"c3",
"\"\\nTLE x \"",
"c2",
"\"\\nWA x \"",
"\"AC x \" + c1 + \"\\nWA x \" + c2 + \"\\nTLE x \" + c3 + \"\\nRE x \" + c4",
"\"AC x \"",
"c1",
"\"\\nWA x \"",
"c2",
"\"\\nTLE x \"",
"c3",
"\"\\nRE x \"",
"c4",
"kb.close()",
"kb.close",
"kb",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner kb = new Scanner(System.in);\n\t\tint n = kb.nextInt();\n\t\tint c1 = 0;\n\t\tint c2 = 0;\n\t\tint c3 = 0;\n\t\tint c4 = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString s = kb.next();\n\t\t\tif (s.equals(\"AC\")) {\n\t\t\t\tc1 += 1;\n\t\t\t} else if (s.equals(\"WA\")) {\n\t\t\t\tc2 += 1;\n\t\t\t} else if (s.equals(\"TLE\")) {\n\t\t\t\tc3 += 1;\n\t\t\t} else {\n\t\t\t\tc4 += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + c1 + \"\\nWA x \" + c2 + \"\\nTLE x \" + c3 + \"\\nRE x \" + c4);\n\t\tkb.close();\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner kb = new Scanner(System.in);\n\t\tint n = kb.nextInt();\n\t\tint c1 = 0;\n\t\tint c2 = 0;\n\t\tint c3 = 0;\n\t\tint c4 = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString s = kb.next();\n\t\t\tif (s.equals(\"AC\")) {\n\t\t\t\tc1 += 1;\n\t\t\t} else if (s.equals(\"WA\")) {\n\t\t\t\tc2 += 1;\n\t\t\t} else if (s.equals(\"TLE\")) {\n\t\t\t\tc3 += 1;\n\t\t\t} else {\n\t\t\t\tc4 += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + c1 + \"\\nWA x \" + c2 + \"\\nTLE x \" + c3 + \"\\nRE x \" + c4);\n\t\tkb.close();\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner kb = new Scanner(System.in);
int n = kb.nextInt();
int c1 = 0;
int c2 = 0;
int c3 = 0;
int c4 = 0;
for (int i = 0; i < n; i++) {
String s = kb.next();
if (s.equals("AC")) {
c1 += 1;
} else if (s.equals("WA")) {
c2 += 1;
} else if (s.equals("TLE")) {
c3 += 1;
} else {
c4 += 1;
}
}
System.out.println("AC x " + c1 + "\nWA x " + c2 + "\nTLE x " + c3 + "\nRE x " + c4);
kb.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
40,
13,
14,
4,
18,
13,
17,
30,
40,
13,
14,
4,
18,
13,
17,
30,
40,
13,
14,
4,
18,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
2,
2,
17,
17,
13,
4,
18,
18,
13,
13,
2,
2,
17,
17,
13,
4,
18,
18,
13,
13,
2,
2,
17,
17,
13,
4,
18,
18,
13,
13,
2,
2,
17,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
122,
5
],
[
122,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
52,
53
],
[
53,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
55,
60
],
[
60,
61
],
[
61,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
63,
68
],
[
68,
69
],
[
69,
70
],
[
63,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
71,
76
],
[
76,
77
],
[
77,
78
],
[
8,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
85,
85
],
[
85,
86
],
[
85,
87
],
[
85,
88
],
[
8,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
95,
95
],
[
95,
96
],
[
95,
97
],
[
95,
98
],
[
8,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
105,
105
],
[
105,
106
],
[
105,
107
],
[
105,
108
],
[
8,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
115,
115
],
[
115,
116
],
[
115,
117
],
[
115,
118
],
[
6,
119
],
[
119,
120
],
[
0,
121
],
[
121,
122
],
[
121,
123
]
]
| [
"import java.util.*;\npublic class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tint N = sc.nextInt();\n //String[] results = new String[N];\n int a=0,t=0,w=0,r=0;\n \tfor(int i=0;i<N;i++){\n \tString temp=sc.next();\n if(temp.equals(\"AC\")){\n \ta++;\n }\n else if(temp.equals(\"WA\")){\n \tw++;\n }\n \telse if(temp.equals(\"TLE\")){\n \tt++;\n }\n \telse if(temp.equals(\"RE\")){\n \tr++;\n }\n }\n \t\n System.out.println(\"AC\"+ \" x \"+ a);\n \tSystem.out.println(\"WA\"+ \" x \"+ w);\n \tSystem.out.println(\"TLE\"+ \" x \"+ t);\n \tSystem.out.println(\"RE\"+ \" x \"+ r);\n \n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tint N = sc.nextInt();\n //String[] results = new String[N];\n int a=0,t=0,w=0,r=0;\n \tfor(int i=0;i<N;i++){\n \tString temp=sc.next();\n if(temp.equals(\"AC\")){\n \ta++;\n }\n else if(temp.equals(\"WA\")){\n \tw++;\n }\n \telse if(temp.equals(\"TLE\")){\n \tt++;\n }\n \telse if(temp.equals(\"RE\")){\n \tr++;\n }\n }\n \t\n System.out.println(\"AC\"+ \" x \"+ a);\n \tSystem.out.println(\"WA\"+ \" x \"+ w);\n \tSystem.out.println(\"TLE\"+ \" x \"+ t);\n \tSystem.out.println(\"RE\"+ \" x \"+ r);\n \n }\n}",
"Main",
"public static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tint N = sc.nextInt();\n //String[] results = new String[N];\n int a=0,t=0,w=0,r=0;\n \tfor(int i=0;i<N;i++){\n \tString temp=sc.next();\n if(temp.equals(\"AC\")){\n \ta++;\n }\n else if(temp.equals(\"WA\")){\n \tw++;\n }\n \telse if(temp.equals(\"TLE\")){\n \tt++;\n }\n \telse if(temp.equals(\"RE\")){\n \tr++;\n }\n }\n \t\n System.out.println(\"AC\"+ \" x \"+ a);\n \tSystem.out.println(\"WA\"+ \" x \"+ w);\n \tSystem.out.println(\"TLE\"+ \" x \"+ t);\n \tSystem.out.println(\"RE\"+ \" x \"+ r);\n \n }",
"main",
"{\n \tScanner sc = new Scanner(System.in);\n \tint N = sc.nextInt();\n //String[] results = new String[N];\n int a=0,t=0,w=0,r=0;\n \tfor(int i=0;i<N;i++){\n \tString temp=sc.next();\n if(temp.equals(\"AC\")){\n \ta++;\n }\n else if(temp.equals(\"WA\")){\n \tw++;\n }\n \telse if(temp.equals(\"TLE\")){\n \tt++;\n }\n \telse if(temp.equals(\"RE\")){\n \tr++;\n }\n }\n \t\n System.out.println(\"AC\"+ \" x \"+ a);\n \tSystem.out.println(\"WA\"+ \" x \"+ w);\n \tSystem.out.println(\"TLE\"+ \" x \"+ t);\n \tSystem.out.println(\"RE\"+ \" x \"+ r);\n \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a=0",
"a",
"0",
"t=0",
"t",
"0",
"w=0",
"w",
"0",
"r=0;",
"r",
"0",
"for(int i=0;i<N;i++){\n \tString temp=sc.next();\n if(temp.equals(\"AC\")){\n \ta++;\n }\n else if(temp.equals(\"WA\")){\n \tw++;\n }\n \telse if(temp.equals(\"TLE\")){\n \tt++;\n }\n \telse if(temp.equals(\"RE\")){\n \tr++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n \tString temp=sc.next();\n if(temp.equals(\"AC\")){\n \ta++;\n }\n else if(temp.equals(\"WA\")){\n \tw++;\n }\n \telse if(temp.equals(\"TLE\")){\n \tt++;\n }\n \telse if(temp.equals(\"RE\")){\n \tr++;\n }\n }",
"{\n \tString temp=sc.next();\n if(temp.equals(\"AC\")){\n \ta++;\n }\n else if(temp.equals(\"WA\")){\n \tw++;\n }\n \telse if(temp.equals(\"TLE\")){\n \tt++;\n }\n \telse if(temp.equals(\"RE\")){\n \tr++;\n }\n }",
"String temp=sc.next();",
"temp",
"sc.next()",
"sc.next",
"sc",
"if(temp.equals(\"AC\")){\n \ta++;\n }\n else if(temp.equals(\"WA\")){\n \tw++;\n }\n \telse if(temp.equals(\"TLE\")){\n \tt++;\n }\n \telse if(temp.equals(\"RE\")){\n \tr++;\n }",
"temp.equals(\"AC\")",
"temp.equals",
"temp",
"\"AC\"",
"{\n \ta++;\n }",
"a++",
"a",
"if(temp.equals(\"WA\")){\n \tw++;\n }\n \telse if(temp.equals(\"TLE\")){\n \tt++;\n }\n \telse if(temp.equals(\"RE\")){\n \tr++;\n }",
"temp.equals(\"WA\")",
"temp.equals",
"temp",
"\"WA\"",
"{\n \tw++;\n }",
"w++",
"w",
"if(temp.equals(\"TLE\")){\n \tt++;\n }\n \telse if(temp.equals(\"RE\")){\n \tr++;\n }",
"temp.equals(\"TLE\")",
"temp.equals",
"temp",
"\"TLE\"",
"{\n \tt++;\n }",
"t++",
"t",
"if(temp.equals(\"RE\")){\n \tr++;\n }",
"temp.equals(\"RE\")",
"temp.equals",
"temp",
"\"RE\"",
"{\n \tr++;\n }",
"r++",
"r",
"System.out.println(\"AC\"+ \" x \"+ a)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC\"+ \" x \"+ a",
"\"AC\"+ \" x \"+ a",
"\"AC\"",
"\" x \"",
"a",
"System.out.println(\"WA\"+ \" x \"+ w)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA\"+ \" x \"+ w",
"\"WA\"+ \" x \"+ w",
"\"WA\"",
"\" x \"",
"w",
"System.out.println(\"TLE\"+ \" x \"+ t)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE\"+ \" x \"+ t",
"\"TLE\"+ \" x \"+ t",
"\"TLE\"",
"\" x \"",
"t",
"System.out.println(\"RE\"+ \" x \"+ r)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE\"+ \" x \"+ r",
"\"RE\"+ \" x \"+ r",
"\"RE\"",
"\" x \"",
"r",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tint N = sc.nextInt();\n //String[] results = new String[N];\n int a=0,t=0,w=0,r=0;\n \tfor(int i=0;i<N;i++){\n \tString temp=sc.next();\n if(temp.equals(\"AC\")){\n \ta++;\n }\n else if(temp.equals(\"WA\")){\n \tw++;\n }\n \telse if(temp.equals(\"TLE\")){\n \tt++;\n }\n \telse if(temp.equals(\"RE\")){\n \tr++;\n }\n }\n \t\n System.out.println(\"AC\"+ \" x \"+ a);\n \tSystem.out.println(\"WA\"+ \" x \"+ w);\n \tSystem.out.println(\"TLE\"+ \" x \"+ t);\n \tSystem.out.println(\"RE\"+ \" x \"+ r);\n \n }\n}",
"public class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tint N = sc.nextInt();\n //String[] results = new String[N];\n int a=0,t=0,w=0,r=0;\n \tfor(int i=0;i<N;i++){\n \tString temp=sc.next();\n if(temp.equals(\"AC\")){\n \ta++;\n }\n else if(temp.equals(\"WA\")){\n \tw++;\n }\n \telse if(temp.equals(\"TLE\")){\n \tt++;\n }\n \telse if(temp.equals(\"RE\")){\n \tr++;\n }\n }\n \t\n System.out.println(\"AC\"+ \" x \"+ a);\n \tSystem.out.println(\"WA\"+ \" x \"+ w);\n \tSystem.out.println(\"TLE\"+ \" x \"+ t);\n \tSystem.out.println(\"RE\"+ \" x \"+ r);\n \n }\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
//String[] results = new String[N];
int a=0,t=0,w=0,r=0;
for(int i=0;i<N;i++){
String temp=sc.next();
if(temp.equals("AC")){
a++;
}
else if(temp.equals("WA")){
w++;
}
else if(temp.equals("TLE")){
t++;
}
else if(temp.equals("RE")){
r++;
}
}
System.out.println("AC"+ " x "+ a);
System.out.println("WA"+ " x "+ w);
System.out.println("TLE"+ " x "+ t);
System.out.println("RE"+ " x "+ r);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
20,
0,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
20,
14,
40,
4,
18,
13,
13,
30,
4,
18,
13,
13,
17,
30,
4,
18,
13,
13,
2,
4,
18,
13,
13,
17,
4,
18,
18,
13,
13,
2,
2,
17,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
2,
2,
17,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
2,
2,
17,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
2,
2,
17,
17,
4,
18,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
139,
5
],
[
139,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
11,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
25,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
30,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
35,
39
],
[
8,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
40,
44
],
[
8,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
68,
72
],
[
61,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
74,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
78,
83
],
[
8,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
90,
90
],
[
90,
91
],
[
90,
92
],
[
90,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
8,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
103,
103
],
[
103,
104
],
[
103,
105
],
[
103,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
8,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
116,
116
],
[
116,
117
],
[
116,
118
],
[
116,
119
],
[
119,
120
],
[
120,
121
],
[
119,
122
],
[
8,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
123,
128
],
[
129,
129
],
[
129,
130
],
[
129,
131
],
[
129,
132
],
[
132,
133
],
[
133,
134
],
[
132,
135
],
[
6,
136
],
[
136,
137
],
[
0,
138
],
[
138,
139
],
[
138,
140
]
]
| [
"/**\n * \n */\n\n\n/**\n * @author Jnaneswar Reddy\n *\n */\nimport java.util.*;\npublic class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tint n;\n\t\tScanner scan =new Scanner(System.in);\n\t\tn=scan.nextInt();\n\t\tscan.nextLine();\n\t\tHashMap<String,Integer> m = new HashMap<>();\n//\t\tfor(int i=0;i<4;i++)\n//\t\t{ String s1= scan.nextLine();\n//\t\t\tif(!m.containsKey(s1))\n//\t\t\t{\n//\t\t\t\tm.put(s1, 0);\n//\t\t\t}\n//\t\t}\n\t\tm.put(\"AC\", 0);\n\t\tm.put(\"WA\", 0);\n\t\tm.put(\"TLE\", 0);\n\t\tm.put(\"RE\", 0);\n\t\t\n\t\t\n\t\tfor(int i=0;i<n;i++)\n\t\t{ String s1= new String(scan.nextLine());\n\t\t\t\n\t\tif(!m.containsKey(s1))\n\t\t\t{\n\t\t\t\tm.put(s1, 0);\n\t\t\t}\n\t\telse {\n\t\t\t\tm.put(s1,(m.get(s1)+1));\n\t\t\t\n\t\t\t\n\t\t}}\n\t\t\n\t System.out.println(\"AC\" +\n\t \" x \" + m.get(\"AC\"));\n\t System.out.println(\"WA\" +\n \" x \" + m.get(\"WA\"));\n\t \n\t System.out.println(\"TLE\" +\n \" x \" + m.get(\"TLE\"));\n\t System.out.println(\"RE\" +\n \" x \" + m.get(\"RE\"));\n\t\t\n\t}\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tint n;\n\t\tScanner scan =new Scanner(System.in);\n\t\tn=scan.nextInt();\n\t\tscan.nextLine();\n\t\tHashMap<String,Integer> m = new HashMap<>();\n//\t\tfor(int i=0;i<4;i++)\n//\t\t{ String s1= scan.nextLine();\n//\t\t\tif(!m.containsKey(s1))\n//\t\t\t{\n//\t\t\t\tm.put(s1, 0);\n//\t\t\t}\n//\t\t}\n\t\tm.put(\"AC\", 0);\n\t\tm.put(\"WA\", 0);\n\t\tm.put(\"TLE\", 0);\n\t\tm.put(\"RE\", 0);\n\t\t\n\t\t\n\t\tfor(int i=0;i<n;i++)\n\t\t{ String s1= new String(scan.nextLine());\n\t\t\t\n\t\tif(!m.containsKey(s1))\n\t\t\t{\n\t\t\t\tm.put(s1, 0);\n\t\t\t}\n\t\telse {\n\t\t\t\tm.put(s1,(m.get(s1)+1));\n\t\t\t\n\t\t\t\n\t\t}}\n\t\t\n\t System.out.println(\"AC\" +\n\t \" x \" + m.get(\"AC\"));\n\t System.out.println(\"WA\" +\n \" x \" + m.get(\"WA\"));\n\t \n\t System.out.println(\"TLE\" +\n \" x \" + m.get(\"TLE\"));\n\t System.out.println(\"RE\" +\n \" x \" + m.get(\"RE\"));\n\t\t\n\t}\n\n}",
"Main",
"/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tint n;\n\t\tScanner scan =new Scanner(System.in);\n\t\tn=scan.nextInt();\n\t\tscan.nextLine();\n\t\tHashMap<String,Integer> m = new HashMap<>();\n//\t\tfor(int i=0;i<4;i++)\n//\t\t{ String s1= scan.nextLine();\n//\t\t\tif(!m.containsKey(s1))\n//\t\t\t{\n//\t\t\t\tm.put(s1, 0);\n//\t\t\t}\n//\t\t}\n\t\tm.put(\"AC\", 0);\n\t\tm.put(\"WA\", 0);\n\t\tm.put(\"TLE\", 0);\n\t\tm.put(\"RE\", 0);\n\t\t\n\t\t\n\t\tfor(int i=0;i<n;i++)\n\t\t{ String s1= new String(scan.nextLine());\n\t\t\t\n\t\tif(!m.containsKey(s1))\n\t\t\t{\n\t\t\t\tm.put(s1, 0);\n\t\t\t}\n\t\telse {\n\t\t\t\tm.put(s1,(m.get(s1)+1));\n\t\t\t\n\t\t\t\n\t\t}}\n\t\t\n\t System.out.println(\"AC\" +\n\t \" x \" + m.get(\"AC\"));\n\t System.out.println(\"WA\" +\n \" x \" + m.get(\"WA\"));\n\t \n\t System.out.println(\"TLE\" +\n \" x \" + m.get(\"TLE\"));\n\t System.out.println(\"RE\" +\n \" x \" + m.get(\"RE\"));\n\t\t\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tint n;\n\t\tScanner scan =new Scanner(System.in);\n\t\tn=scan.nextInt();\n\t\tscan.nextLine();\n\t\tHashMap<String,Integer> m = new HashMap<>();\n//\t\tfor(int i=0;i<4;i++)\n//\t\t{ String s1= scan.nextLine();\n//\t\t\tif(!m.containsKey(s1))\n//\t\t\t{\n//\t\t\t\tm.put(s1, 0);\n//\t\t\t}\n//\t\t}\n\t\tm.put(\"AC\", 0);\n\t\tm.put(\"WA\", 0);\n\t\tm.put(\"TLE\", 0);\n\t\tm.put(\"RE\", 0);\n\t\t\n\t\t\n\t\tfor(int i=0;i<n;i++)\n\t\t{ String s1= new String(scan.nextLine());\n\t\t\t\n\t\tif(!m.containsKey(s1))\n\t\t\t{\n\t\t\t\tm.put(s1, 0);\n\t\t\t}\n\t\telse {\n\t\t\t\tm.put(s1,(m.get(s1)+1));\n\t\t\t\n\t\t\t\n\t\t}}\n\t\t\n\t System.out.println(\"AC\" +\n\t \" x \" + m.get(\"AC\"));\n\t System.out.println(\"WA\" +\n \" x \" + m.get(\"WA\"));\n\t \n\t System.out.println(\"TLE\" +\n \" x \" + m.get(\"TLE\"));\n\t System.out.println(\"RE\" +\n \" x \" + m.get(\"RE\"));\n\t\t\n\t}",
"int n;",
"n",
"Scanner scan =new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"n=scan.nextInt()",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"scan.nextLine()",
"scan.nextLine",
"scan",
"HashMap<String,Integer> m = new HashMap<>();",
"m",
"new HashMap<>()",
"m.put(\"AC\", 0)",
"m.put",
"m",
"\"AC\"",
"0",
"m.put(\"WA\", 0)",
"m.put",
"m",
"\"WA\"",
"0",
"m.put(\"TLE\", 0)",
"m.put",
"m",
"\"TLE\"",
"0",
"m.put(\"RE\", 0)",
"m.put",
"m",
"\"RE\"",
"0",
"for(int i=0;i<n;i++)\n\t\t{ String s1= new String(scan.nextLine());\n\t\t\t\n\t\tif(!m.containsKey(s1))\n\t\t\t{\n\t\t\t\tm.put(s1, 0);\n\t\t\t}\n\t\telse {\n\t\t\t\tm.put(s1,(m.get(s1)+1));\n\t\t\t\n\t\t\t\n\t\t}}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{ String s1= new String(scan.nextLine());\n\t\t\t\n\t\tif(!m.containsKey(s1))\n\t\t\t{\n\t\t\t\tm.put(s1, 0);\n\t\t\t}\n\t\telse {\n\t\t\t\tm.put(s1,(m.get(s1)+1));\n\t\t\t\n\t\t\t\n\t\t}}",
"{ String s1= new String(scan.nextLine());\n\t\t\t\n\t\tif(!m.containsKey(s1))\n\t\t\t{\n\t\t\t\tm.put(s1, 0);\n\t\t\t}\n\t\telse {\n\t\t\t\tm.put(s1,(m.get(s1)+1));\n\t\t\t\n\t\t\t\n\t\t}}",
"String s1= new String(scan.nextLine());",
"s1",
"new String(scan.nextLine())",
"if(!m.containsKey(s1))\n\t\t\t{\n\t\t\t\tm.put(s1, 0);\n\t\t\t}\n\t\telse {\n\t\t\t\tm.put(s1,(m.get(s1)+1));\n\t\t\t\n\t\t\t\n\t\t}",
"!m.containsKey(s1)",
"m.containsKey(s1)",
"m.containsKey",
"m",
"s1",
"{\n\t\t\t\tm.put(s1, 0);\n\t\t\t}",
"m.put(s1, 0)",
"m.put",
"m",
"s1",
"0",
"{\n\t\t\t\tm.put(s1,(m.get(s1)+1));\n\t\t\t\n\t\t\t\n\t\t}",
"m.put(s1,(m.get(s1)+1))",
"m.put",
"m",
"s1",
"(m.get(s1)+1)",
"m.get(s1)",
"m.get",
"m",
"s1",
"1",
"System.out.println(\"AC\" +\n\t \" x \" + m.get(\"AC\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC\" +\n\t \" x \" + m.get(\"AC\")",
"\"AC\" +\n\t \" x \" + m.get(\"AC\")",
"\"AC\"",
"\" x \"",
"m.get(\"AC\")",
"m.get",
"m",
"\"AC\"",
"System.out.println(\"WA\" +\n \" x \" + m.get(\"WA\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA\" +\n \" x \" + m.get(\"WA\")",
"\"WA\" +\n \" x \" + m.get(\"WA\")",
"\"WA\"",
"\" x \"",
"m.get(\"WA\")",
"m.get",
"m",
"\"WA\"",
"System.out.println(\"TLE\" +\n \" x \" + m.get(\"TLE\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE\" +\n \" x \" + m.get(\"TLE\")",
"\"TLE\" +\n \" x \" + m.get(\"TLE\")",
"\"TLE\"",
"\" x \"",
"m.get(\"TLE\")",
"m.get",
"m",
"\"TLE\"",
"System.out.println(\"RE\" +\n \" x \" + m.get(\"RE\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE\" +\n \" x \" + m.get(\"RE\")",
"\"RE\" +\n \" x \" + m.get(\"RE\")",
"\"RE\"",
"\" x \"",
"m.get(\"RE\")",
"m.get",
"m",
"\"RE\"",
"String[] args",
"args",
"public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tint n;\n\t\tScanner scan =new Scanner(System.in);\n\t\tn=scan.nextInt();\n\t\tscan.nextLine();\n\t\tHashMap<String,Integer> m = new HashMap<>();\n//\t\tfor(int i=0;i<4;i++)\n//\t\t{ String s1= scan.nextLine();\n//\t\t\tif(!m.containsKey(s1))\n//\t\t\t{\n//\t\t\t\tm.put(s1, 0);\n//\t\t\t}\n//\t\t}\n\t\tm.put(\"AC\", 0);\n\t\tm.put(\"WA\", 0);\n\t\tm.put(\"TLE\", 0);\n\t\tm.put(\"RE\", 0);\n\t\t\n\t\t\n\t\tfor(int i=0;i<n;i++)\n\t\t{ String s1= new String(scan.nextLine());\n\t\t\t\n\t\tif(!m.containsKey(s1))\n\t\t\t{\n\t\t\t\tm.put(s1, 0);\n\t\t\t}\n\t\telse {\n\t\t\t\tm.put(s1,(m.get(s1)+1));\n\t\t\t\n\t\t\t\n\t\t}}\n\t\t\n\t System.out.println(\"AC\" +\n\t \" x \" + m.get(\"AC\"));\n\t System.out.println(\"WA\" +\n \" x \" + m.get(\"WA\"));\n\t \n\t System.out.println(\"TLE\" +\n \" x \" + m.get(\"TLE\"));\n\t System.out.println(\"RE\" +\n \" x \" + m.get(\"RE\"));\n\t\t\n\t}\n\n}",
"public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tint n;\n\t\tScanner scan =new Scanner(System.in);\n\t\tn=scan.nextInt();\n\t\tscan.nextLine();\n\t\tHashMap<String,Integer> m = new HashMap<>();\n//\t\tfor(int i=0;i<4;i++)\n//\t\t{ String s1= scan.nextLine();\n//\t\t\tif(!m.containsKey(s1))\n//\t\t\t{\n//\t\t\t\tm.put(s1, 0);\n//\t\t\t}\n//\t\t}\n\t\tm.put(\"AC\", 0);\n\t\tm.put(\"WA\", 0);\n\t\tm.put(\"TLE\", 0);\n\t\tm.put(\"RE\", 0);\n\t\t\n\t\t\n\t\tfor(int i=0;i<n;i++)\n\t\t{ String s1= new String(scan.nextLine());\n\t\t\t\n\t\tif(!m.containsKey(s1))\n\t\t\t{\n\t\t\t\tm.put(s1, 0);\n\t\t\t}\n\t\telse {\n\t\t\t\tm.put(s1,(m.get(s1)+1));\n\t\t\t\n\t\t\t\n\t\t}}\n\t\t\n\t System.out.println(\"AC\" +\n\t \" x \" + m.get(\"AC\"));\n\t System.out.println(\"WA\" +\n \" x \" + m.get(\"WA\"));\n\t \n\t System.out.println(\"TLE\" +\n \" x \" + m.get(\"TLE\"));\n\t System.out.println(\"RE\" +\n \" x \" + m.get(\"RE\"));\n\t\t\n\t}\n\n}",
"Main"
]
| /**
*
*/
/**
* @author Jnaneswar Reddy
*
*/
import java.util.*;
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int n;
Scanner scan =new Scanner(System.in);
n=scan.nextInt();
scan.nextLine();
HashMap<String,Integer> m = new HashMap<>();
// for(int i=0;i<4;i++)
// { String s1= scan.nextLine();
// if(!m.containsKey(s1))
// {
// m.put(s1, 0);
// }
// }
m.put("AC", 0);
m.put("WA", 0);
m.put("TLE", 0);
m.put("RE", 0);
for(int i=0;i<n;i++)
{ String s1= new String(scan.nextLine());
if(!m.containsKey(s1))
{
m.put(s1, 0);
}
else {
m.put(s1,(m.get(s1)+1));
}}
System.out.println("AC" +
" x " + m.get("AC"));
System.out.println("WA" +
" x " + m.get("WA"));
System.out.println("TLE" +
" x " + m.get("TLE"));
System.out.println("RE" +
" x " + m.get("RE"));
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
14,
4,
18,
13,
17,
40,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
119,
11
],
[
119,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
14,
32
],
[
32,
33
],
[
32,
34
],
[
14,
35
],
[
35,
36
],
[
35,
37
],
[
14,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
38,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
50,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
56,
61
],
[
61,
62
],
[
56,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
63,
68
],
[
68,
69
],
[
63,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
70,
75
],
[
75,
76
],
[
70,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
77,
82
],
[
82,
83
],
[
14,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
89,
91
],
[
14,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
97,
98
],
[
97,
99
],
[
14,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
14,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
113,
114
],
[
113,
115
],
[
12,
116
],
[
116,
117
],
[
0,
118
],
[
118,
119
],
[
118,
120
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint ac = 0, wa = 0, tle = 0, re = 0;\n\t\t\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tString str = br.readLine();\n\t\t\t\n\t\t\tif(str.equals(\"AC\"))\n\t\t\t\tac++;\n\t\t\telse if(str.equals(\"WA\"))\n\t\t\t\twa++;\n\t\t\telse if(str.equals(\"TLE\"))\n\t\t\t\ttle++;\n\t\t\telse if(str.equals(\"RE\"))\n\t\t\t\tre++;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"AC x \"+ ac);\n\t\tSystem.out.println(\"WA x \"+ wa);\n\t\tSystem.out.println(\"TLE x \"+ tle);\n\t\tSystem.out.println(\"RE x \"+ re);\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint ac = 0, wa = 0, tle = 0, re = 0;\n\t\t\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tString str = br.readLine();\n\t\t\t\n\t\t\tif(str.equals(\"AC\"))\n\t\t\t\tac++;\n\t\t\telse if(str.equals(\"WA\"))\n\t\t\t\twa++;\n\t\t\telse if(str.equals(\"TLE\"))\n\t\t\t\ttle++;\n\t\t\telse if(str.equals(\"RE\"))\n\t\t\t\tre++;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"AC x \"+ ac);\n\t\tSystem.out.println(\"WA x \"+ wa);\n\t\tSystem.out.println(\"TLE x \"+ tle);\n\t\tSystem.out.println(\"RE x \"+ re);\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint ac = 0, wa = 0, tle = 0, re = 0;\n\t\t\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tString str = br.readLine();\n\t\t\t\n\t\t\tif(str.equals(\"AC\"))\n\t\t\t\tac++;\n\t\t\telse if(str.equals(\"WA\"))\n\t\t\t\twa++;\n\t\t\telse if(str.equals(\"TLE\"))\n\t\t\t\ttle++;\n\t\t\telse if(str.equals(\"RE\"))\n\t\t\t\tre++;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"AC x \"+ ac);\n\t\tSystem.out.println(\"WA x \"+ wa);\n\t\tSystem.out.println(\"TLE x \"+ tle);\n\t\tSystem.out.println(\"RE x \"+ re);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint ac = 0, wa = 0, tle = 0, re = 0;\n\t\t\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tString str = br.readLine();\n\t\t\t\n\t\t\tif(str.equals(\"AC\"))\n\t\t\t\tac++;\n\t\t\telse if(str.equals(\"WA\"))\n\t\t\t\twa++;\n\t\t\telse if(str.equals(\"TLE\"))\n\t\t\t\ttle++;\n\t\t\telse if(str.equals(\"RE\"))\n\t\t\t\tre++;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"AC x \"+ ac);\n\t\tSystem.out.println(\"WA x \"+ wa);\n\t\tSystem.out.println(\"TLE x \"+ tle);\n\t\tSystem.out.println(\"RE x \"+ re);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int ac = 0",
"ac",
"0",
"wa = 0",
"wa",
"0",
"tle = 0",
"tle",
"0",
"re = 0;",
"re",
"0",
"for(int i=0; i<n; i++) {\n\t\t\tString str = br.readLine();\n\t\t\t\n\t\t\tif(str.equals(\"AC\"))\n\t\t\t\tac++;\n\t\t\telse if(str.equals(\"WA\"))\n\t\t\t\twa++;\n\t\t\telse if(str.equals(\"TLE\"))\n\t\t\t\ttle++;\n\t\t\telse if(str.equals(\"RE\"))\n\t\t\t\tre++;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString str = br.readLine();\n\t\t\t\n\t\t\tif(str.equals(\"AC\"))\n\t\t\t\tac++;\n\t\t\telse if(str.equals(\"WA\"))\n\t\t\t\twa++;\n\t\t\telse if(str.equals(\"TLE\"))\n\t\t\t\ttle++;\n\t\t\telse if(str.equals(\"RE\"))\n\t\t\t\tre++;\n\t\t}",
"{\n\t\t\tString str = br.readLine();\n\t\t\t\n\t\t\tif(str.equals(\"AC\"))\n\t\t\t\tac++;\n\t\t\telse if(str.equals(\"WA\"))\n\t\t\t\twa++;\n\t\t\telse if(str.equals(\"TLE\"))\n\t\t\t\ttle++;\n\t\t\telse if(str.equals(\"RE\"))\n\t\t\t\tre++;\n\t\t}",
"String str = br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"if(str.equals(\"AC\"))\n\t\t\t\tac++;\n\t\t\telse if(str.equals(\"WA\"))\n\t\t\t\twa++;\n\t\t\telse if(str.equals(\"TLE\"))\n\t\t\t\ttle++;\n\t\t\telse if(str.equals(\"RE\"))\n\t\t\t\tre++;",
"str.equals(\"AC\")",
"str.equals",
"str",
"\"AC\"",
"ac++",
"ac",
"if(str.equals(\"WA\"))\n\t\t\t\twa++;\n\t\t\telse if(str.equals(\"TLE\"))\n\t\t\t\ttle++;\n\t\t\telse if(str.equals(\"RE\"))\n\t\t\t\tre++;",
"str.equals(\"WA\")",
"str.equals",
"str",
"\"WA\"",
"wa++",
"wa",
"if(str.equals(\"TLE\"))\n\t\t\t\ttle++;\n\t\t\telse if(str.equals(\"RE\"))\n\t\t\t\tre++;",
"str.equals(\"TLE\")",
"str.equals",
"str",
"\"TLE\"",
"tle++",
"tle",
"if(str.equals(\"RE\"))\n\t\t\t\tre++;",
"str.equals(\"RE\")",
"str.equals",
"str",
"\"RE\"",
"re++",
"re",
"System.out.println(\"AC x \"+ ac)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \"+ ac",
"\"AC x \"",
"ac",
"System.out.println(\"WA x \"+ wa)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \"+ wa",
"\"WA x \"",
"wa",
"System.out.println(\"TLE x \"+ tle)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \"+ tle",
"\"TLE x \"",
"tle",
"System.out.println(\"RE x \"+ re)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \"+ re",
"\"RE x \"",
"re",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint ac = 0, wa = 0, tle = 0, re = 0;\n\t\t\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tString str = br.readLine();\n\t\t\t\n\t\t\tif(str.equals(\"AC\"))\n\t\t\t\tac++;\n\t\t\telse if(str.equals(\"WA\"))\n\t\t\t\twa++;\n\t\t\telse if(str.equals(\"TLE\"))\n\t\t\t\ttle++;\n\t\t\telse if(str.equals(\"RE\"))\n\t\t\t\tre++;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"AC x \"+ ac);\n\t\tSystem.out.println(\"WA x \"+ wa);\n\t\tSystem.out.println(\"TLE x \"+ tle);\n\t\tSystem.out.println(\"RE x \"+ re);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint ac = 0, wa = 0, tle = 0, re = 0;\n\t\t\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tString str = br.readLine();\n\t\t\t\n\t\t\tif(str.equals(\"AC\"))\n\t\t\t\tac++;\n\t\t\telse if(str.equals(\"WA\"))\n\t\t\t\twa++;\n\t\t\telse if(str.equals(\"TLE\"))\n\t\t\t\ttle++;\n\t\t\telse if(str.equals(\"RE\"))\n\t\t\t\tre++;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"AC x \"+ ac);\n\t\tSystem.out.println(\"WA x \"+ wa);\n\t\tSystem.out.println(\"TLE x \"+ tle);\n\t\tSystem.out.println(\"RE x \"+ re);\n\t}\n\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
int ac = 0, wa = 0, tle = 0, re = 0;
for(int i=0; i<n; i++) {
String str = br.readLine();
if(str.equals("AC"))
ac++;
else if(str.equals("WA"))
wa++;
else if(str.equals("TLE"))
tle++;
else if(str.equals("RE"))
re++;
}
System.out.println("AC x "+ ac);
System.out.println("WA x "+ wa);
System.out.println("TLE x "+ tle);
System.out.println("RE x "+ re);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
4,
18,
18,
13,
13,
17,
30,
40,
13,
14,
4,
18,
18,
13,
13,
17,
30,
40,
13,
14,
4,
18,
18,
13,
13,
17,
30,
40,
13,
30,
40,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
127,
8
],
[
127,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
24
],
[
24,
25
],
[
24,
26
],
[
11,
27
],
[
27,
28
],
[
27,
29
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
11,
33
],
[
33,
34
],
[
33,
35
],
[
11,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
56,
63
],
[
63,
64
],
[
64,
65
],
[
56,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
66,
73
],
[
73,
74
],
[
74,
75
],
[
66,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
76,
83
],
[
83,
84
],
[
84,
85
],
[
76,
86
],
[
86,
87
],
[
87,
88
],
[
11,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
11,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
11,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
110,
111
],
[
110,
112
],
[
11,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
11,
121
],
[
121,
122
],
[
122,
123
],
[
9,
124
],
[
124,
125
],
[
0,
126
],
[
126,
127
],
[
126,
128
]
]
| [
"import java.util.*;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tString[] s = new String[n];\n\t\tint a = 0;\n\t\tint b = 0;\n\t\tint c = 0;\n\t\tint d = 0;\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ts[i] = sc.next();\n\n\t\t\tif (s[i].equals(\"AC\")) {\n\t\t\t\ta++;\n\t\t\t} else if (s[i].equals(\"WA\")) {\n\t\t\t\tb++;\n\t\t\t} else if (s[i].equals(\"TLE\")) {\n\t\t\t\tc++;\n\t\t\t} else {\n\t\t\t\td++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + a);\n\t\tSystem.out.println(\"WA x \" + b);\n\t\tSystem.out.println(\"TLE x \" + c);\n\t\tSystem.out.println(\"RE x \" + d);\n\t\tsc.close();\n\t}\n\n}",
"import java.util.*;",
"util.*",
"java",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tString[] s = new String[n];\n\t\tint a = 0;\n\t\tint b = 0;\n\t\tint c = 0;\n\t\tint d = 0;\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ts[i] = sc.next();\n\n\t\t\tif (s[i].equals(\"AC\")) {\n\t\t\t\ta++;\n\t\t\t} else if (s[i].equals(\"WA\")) {\n\t\t\t\tb++;\n\t\t\t} else if (s[i].equals(\"TLE\")) {\n\t\t\t\tc++;\n\t\t\t} else {\n\t\t\t\td++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + a);\n\t\tSystem.out.println(\"WA x \" + b);\n\t\tSystem.out.println(\"TLE x \" + c);\n\t\tSystem.out.println(\"RE x \" + d);\n\t\tsc.close();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tString[] s = new String[n];\n\t\tint a = 0;\n\t\tint b = 0;\n\t\tint c = 0;\n\t\tint d = 0;\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ts[i] = sc.next();\n\n\t\t\tif (s[i].equals(\"AC\")) {\n\t\t\t\ta++;\n\t\t\t} else if (s[i].equals(\"WA\")) {\n\t\t\t\tb++;\n\t\t\t} else if (s[i].equals(\"TLE\")) {\n\t\t\t\tc++;\n\t\t\t} else {\n\t\t\t\td++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + a);\n\t\tSystem.out.println(\"WA x \" + b);\n\t\tSystem.out.println(\"TLE x \" + c);\n\t\tSystem.out.println(\"RE x \" + d);\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tString[] s = new String[n];\n\t\tint a = 0;\n\t\tint b = 0;\n\t\tint c = 0;\n\t\tint d = 0;\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ts[i] = sc.next();\n\n\t\t\tif (s[i].equals(\"AC\")) {\n\t\t\t\ta++;\n\t\t\t} else if (s[i].equals(\"WA\")) {\n\t\t\t\tb++;\n\t\t\t} else if (s[i].equals(\"TLE\")) {\n\t\t\t\tc++;\n\t\t\t} else {\n\t\t\t\td++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + a);\n\t\tSystem.out.println(\"WA x \" + b);\n\t\tSystem.out.println(\"TLE x \" + c);\n\t\tSystem.out.println(\"RE x \" + d);\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String[] s = new String[n];",
"s",
"new String[n]",
"n",
"int a = 0;",
"a",
"0",
"int b = 0;",
"b",
"0",
"int c = 0;",
"c",
"0",
"int d = 0;",
"d",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\ts[i] = sc.next();\n\n\t\t\tif (s[i].equals(\"AC\")) {\n\t\t\t\ta++;\n\t\t\t} else if (s[i].equals(\"WA\")) {\n\t\t\t\tb++;\n\t\t\t} else if (s[i].equals(\"TLE\")) {\n\t\t\t\tc++;\n\t\t\t} else {\n\t\t\t\td++;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\ts[i] = sc.next();\n\n\t\t\tif (s[i].equals(\"AC\")) {\n\t\t\t\ta++;\n\t\t\t} else if (s[i].equals(\"WA\")) {\n\t\t\t\tb++;\n\t\t\t} else if (s[i].equals(\"TLE\")) {\n\t\t\t\tc++;\n\t\t\t} else {\n\t\t\t\td++;\n\t\t\t}\n\t\t}",
"{\n\t\t\ts[i] = sc.next();\n\n\t\t\tif (s[i].equals(\"AC\")) {\n\t\t\t\ta++;\n\t\t\t} else if (s[i].equals(\"WA\")) {\n\t\t\t\tb++;\n\t\t\t} else if (s[i].equals(\"TLE\")) {\n\t\t\t\tc++;\n\t\t\t} else {\n\t\t\t\td++;\n\t\t\t}\n\t\t}",
"s[i] = sc.next()",
"s[i]",
"s",
"i",
"sc.next()",
"sc.next",
"sc",
"if (s[i].equals(\"AC\")) {\n\t\t\t\ta++;\n\t\t\t} else if (s[i].equals(\"WA\")) {\n\t\t\t\tb++;\n\t\t\t} else if (s[i].equals(\"TLE\")) {\n\t\t\t\tc++;\n\t\t\t} else {\n\t\t\t\td++;\n\t\t\t}",
"s[i].equals(\"AC\")",
"s[i].equals",
"s[i]",
"s",
"i",
"\"AC\"",
"{\n\t\t\t\ta++;\n\t\t\t}",
"a++",
"a",
"if (s[i].equals(\"WA\")) {\n\t\t\t\tb++;\n\t\t\t} else if (s[i].equals(\"TLE\")) {\n\t\t\t\tc++;\n\t\t\t} else {\n\t\t\t\td++;\n\t\t\t}",
"s[i].equals(\"WA\")",
"s[i].equals",
"s[i]",
"s",
"i",
"\"WA\"",
"{\n\t\t\t\tb++;\n\t\t\t}",
"b++",
"b",
"if (s[i].equals(\"TLE\")) {\n\t\t\t\tc++;\n\t\t\t} else {\n\t\t\t\td++;\n\t\t\t}",
"s[i].equals(\"TLE\")",
"s[i].equals",
"s[i]",
"s",
"i",
"\"TLE\"",
"{\n\t\t\t\tc++;\n\t\t\t}",
"c++",
"c",
"{\n\t\t\t\td++;\n\t\t\t}",
"d++",
"d",
"System.out.println(\"AC x \" + a)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + a",
"\"AC x \"",
"a",
"System.out.println(\"WA x \" + b)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + b",
"\"WA x \"",
"b",
"System.out.println(\"TLE x \" + c)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + c",
"\"TLE x \"",
"c",
"System.out.println(\"RE x \" + d)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + d",
"\"RE x \"",
"d",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tString[] s = new String[n];\n\t\tint a = 0;\n\t\tint b = 0;\n\t\tint c = 0;\n\t\tint d = 0;\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ts[i] = sc.next();\n\n\t\t\tif (s[i].equals(\"AC\")) {\n\t\t\t\ta++;\n\t\t\t} else if (s[i].equals(\"WA\")) {\n\t\t\t\tb++;\n\t\t\t} else if (s[i].equals(\"TLE\")) {\n\t\t\t\tc++;\n\t\t\t} else {\n\t\t\t\td++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + a);\n\t\tSystem.out.println(\"WA x \" + b);\n\t\tSystem.out.println(\"TLE x \" + c);\n\t\tSystem.out.println(\"RE x \" + d);\n\t\tsc.close();\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tString[] s = new String[n];\n\t\tint a = 0;\n\t\tint b = 0;\n\t\tint c = 0;\n\t\tint d = 0;\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ts[i] = sc.next();\n\n\t\t\tif (s[i].equals(\"AC\")) {\n\t\t\t\ta++;\n\t\t\t} else if (s[i].equals(\"WA\")) {\n\t\t\t\tb++;\n\t\t\t} else if (s[i].equals(\"TLE\")) {\n\t\t\t\tc++;\n\t\t\t} else {\n\t\t\t\td++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + a);\n\t\tSystem.out.println(\"WA x \" + b);\n\t\tSystem.out.println(\"TLE x \" + c);\n\t\tSystem.out.println(\"RE x \" + d);\n\t\tsc.close();\n\t}\n\n}",
"Main"
]
| import java.util.*;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
String[] s = new String[n];
int a = 0;
int b = 0;
int c = 0;
int d = 0;
for (int i = 0; i < n; i++) {
s[i] = sc.next();
if (s[i].equals("AC")) {
a++;
} else if (s[i].equals("WA")) {
b++;
} else if (s[i].equals("TLE")) {
c++;
} else {
d++;
}
}
System.out.println("AC x " + a);
System.out.println("WA x " + b);
System.out.println("TLE x " + c);
System.out.println("RE x " + d);
sc.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
18,
13,
13,
17,
30,
40,
13,
9,
14,
4,
18,
18,
13,
13,
17,
30,
40,
13,
9,
14,
4,
18,
18,
13,
13,
17,
30,
40,
13,
9,
14,
4,
18,
18,
13,
13,
17,
30,
40,
13,
9,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
145,
5
],
[
145,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
26,
27
],
[
26,
28
],
[
21,
29
],
[
29,
30
],
[
30,
31
],
[
21,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
47,
49
],
[
8,
50
],
[
50,
51
],
[
50,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
53,
64
],
[
65,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
66,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
66,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
77,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
77,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
88,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
88,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
99,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
8,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
8,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
8,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
131,
132
],
[
131,
133
],
[
8,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
139,
140
],
[
139,
141
],
[
6,
142
],
[
142,
143
],
[
0,
144
],
[
144,
145
],
[
144,
146
]
]
| [
"import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String[] S = new String[N];\n for(int i=0; i<N; i++){\n S[i]=sc.next();\n }\n int AC = 0;\n int WA = 0;\n int TLE = 0;\n int RE = 0;\n\n for(int i=0; i<N; i++){\n if(S[i].equals(\"AC\")){\n AC++;\n continue;\n }else if(S[i].equals(\"WA\")){\n WA++;\n continue;\n }else if(S[i].equals(\"TLE\")){\n TLE++;\n continue;\n }else if(S[i].equals(\"RE\")){\n RE++;\n continue;\n }\n\n }\n\n System.out.println(\"AC x \"+AC);\n System.out.println(\"WA x \"+WA);\n System.out.println(\"TLE x \"+TLE);\n\t\tSystem.out.println(\"RE x \"+RE);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String[] S = new String[N];\n for(int i=0; i<N; i++){\n S[i]=sc.next();\n }\n int AC = 0;\n int WA = 0;\n int TLE = 0;\n int RE = 0;\n\n for(int i=0; i<N; i++){\n if(S[i].equals(\"AC\")){\n AC++;\n continue;\n }else if(S[i].equals(\"WA\")){\n WA++;\n continue;\n }else if(S[i].equals(\"TLE\")){\n TLE++;\n continue;\n }else if(S[i].equals(\"RE\")){\n RE++;\n continue;\n }\n\n }\n\n System.out.println(\"AC x \"+AC);\n System.out.println(\"WA x \"+WA);\n System.out.println(\"TLE x \"+TLE);\n\t\tSystem.out.println(\"RE x \"+RE);\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String[] S = new String[N];\n for(int i=0; i<N; i++){\n S[i]=sc.next();\n }\n int AC = 0;\n int WA = 0;\n int TLE = 0;\n int RE = 0;\n\n for(int i=0; i<N; i++){\n if(S[i].equals(\"AC\")){\n AC++;\n continue;\n }else if(S[i].equals(\"WA\")){\n WA++;\n continue;\n }else if(S[i].equals(\"TLE\")){\n TLE++;\n continue;\n }else if(S[i].equals(\"RE\")){\n RE++;\n continue;\n }\n\n }\n\n System.out.println(\"AC x \"+AC);\n System.out.println(\"WA x \"+WA);\n System.out.println(\"TLE x \"+TLE);\n\t\tSystem.out.println(\"RE x \"+RE);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String[] S = new String[N];\n for(int i=0; i<N; i++){\n S[i]=sc.next();\n }\n int AC = 0;\n int WA = 0;\n int TLE = 0;\n int RE = 0;\n\n for(int i=0; i<N; i++){\n if(S[i].equals(\"AC\")){\n AC++;\n continue;\n }else if(S[i].equals(\"WA\")){\n WA++;\n continue;\n }else if(S[i].equals(\"TLE\")){\n TLE++;\n continue;\n }else if(S[i].equals(\"RE\")){\n RE++;\n continue;\n }\n\n }\n\n System.out.println(\"AC x \"+AC);\n System.out.println(\"WA x \"+WA);\n System.out.println(\"TLE x \"+TLE);\n\t\tSystem.out.println(\"RE x \"+RE);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String[] S = new String[N];",
"S",
"new String[N]",
"N",
"for(int i=0; i<N; i++){\n S[i]=sc.next();\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n S[i]=sc.next();\n }",
"{\n S[i]=sc.next();\n }",
"S[i]=sc.next()",
"S[i]",
"S",
"i",
"sc.next()",
"sc.next",
"sc",
"int AC = 0;",
"AC",
"0",
"int WA = 0;",
"WA",
"0",
"int TLE = 0;",
"TLE",
"0",
"int RE = 0;",
"RE",
"0",
"for(int i=0; i<N; i++){\n if(S[i].equals(\"AC\")){\n AC++;\n continue;\n }else if(S[i].equals(\"WA\")){\n WA++;\n continue;\n }else if(S[i].equals(\"TLE\")){\n TLE++;\n continue;\n }else if(S[i].equals(\"RE\")){\n RE++;\n continue;\n }\n\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n if(S[i].equals(\"AC\")){\n AC++;\n continue;\n }else if(S[i].equals(\"WA\")){\n WA++;\n continue;\n }else if(S[i].equals(\"TLE\")){\n TLE++;\n continue;\n }else if(S[i].equals(\"RE\")){\n RE++;\n continue;\n }\n\n }",
"{\n if(S[i].equals(\"AC\")){\n AC++;\n continue;\n }else if(S[i].equals(\"WA\")){\n WA++;\n continue;\n }else if(S[i].equals(\"TLE\")){\n TLE++;\n continue;\n }else if(S[i].equals(\"RE\")){\n RE++;\n continue;\n }\n\n }",
"if(S[i].equals(\"AC\")){\n AC++;\n continue;\n }else if(S[i].equals(\"WA\")){\n WA++;\n continue;\n }else if(S[i].equals(\"TLE\")){\n TLE++;\n continue;\n }else if(S[i].equals(\"RE\")){\n RE++;\n continue;\n }",
"S[i].equals(\"AC\")",
"S[i].equals",
"S[i]",
"S",
"i",
"\"AC\"",
"{\n AC++;\n continue;\n }",
"AC++",
"AC",
"continue;",
"if(S[i].equals(\"WA\")){\n WA++;\n continue;\n }else if(S[i].equals(\"TLE\")){\n TLE++;\n continue;\n }else if(S[i].equals(\"RE\")){\n RE++;\n continue;\n }",
"S[i].equals(\"WA\")",
"S[i].equals",
"S[i]",
"S",
"i",
"\"WA\"",
"{\n WA++;\n continue;\n }",
"WA++",
"WA",
"continue;",
"if(S[i].equals(\"TLE\")){\n TLE++;\n continue;\n }else if(S[i].equals(\"RE\")){\n RE++;\n continue;\n }",
"S[i].equals(\"TLE\")",
"S[i].equals",
"S[i]",
"S",
"i",
"\"TLE\"",
"{\n TLE++;\n continue;\n }",
"TLE++",
"TLE",
"continue;",
"if(S[i].equals(\"RE\")){\n RE++;\n continue;\n }",
"S[i].equals(\"RE\")",
"S[i].equals",
"S[i]",
"S",
"i",
"\"RE\"",
"{\n RE++;\n continue;\n }",
"RE++",
"RE",
"continue;",
"System.out.println(\"AC x \"+AC)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \"+AC",
"\"AC x \"",
"AC",
"System.out.println(\"WA x \"+WA)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \"+WA",
"\"WA x \"",
"WA",
"System.out.println(\"TLE x \"+TLE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \"+TLE",
"\"TLE x \"",
"TLE",
"System.out.println(\"RE x \"+RE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \"+RE",
"\"RE x \"",
"RE",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String[] S = new String[N];\n for(int i=0; i<N; i++){\n S[i]=sc.next();\n }\n int AC = 0;\n int WA = 0;\n int TLE = 0;\n int RE = 0;\n\n for(int i=0; i<N; i++){\n if(S[i].equals(\"AC\")){\n AC++;\n continue;\n }else if(S[i].equals(\"WA\")){\n WA++;\n continue;\n }else if(S[i].equals(\"TLE\")){\n TLE++;\n continue;\n }else if(S[i].equals(\"RE\")){\n RE++;\n continue;\n }\n\n }\n\n System.out.println(\"AC x \"+AC);\n System.out.println(\"WA x \"+WA);\n System.out.println(\"TLE x \"+TLE);\n\t\tSystem.out.println(\"RE x \"+RE);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String[] S = new String[N];\n for(int i=0; i<N; i++){\n S[i]=sc.next();\n }\n int AC = 0;\n int WA = 0;\n int TLE = 0;\n int RE = 0;\n\n for(int i=0; i<N; i++){\n if(S[i].equals(\"AC\")){\n AC++;\n continue;\n }else if(S[i].equals(\"WA\")){\n WA++;\n continue;\n }else if(S[i].equals(\"TLE\")){\n TLE++;\n continue;\n }else if(S[i].equals(\"RE\")){\n RE++;\n continue;\n }\n\n }\n\n System.out.println(\"AC x \"+AC);\n System.out.println(\"WA x \"+WA);\n System.out.println(\"TLE x \"+TLE);\n\t\tSystem.out.println(\"RE x \"+RE);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
String[] S = new String[N];
for(int i=0; i<N; i++){
S[i]=sc.next();
}
int AC = 0;
int WA = 0;
int TLE = 0;
int RE = 0;
for(int i=0; i<N; i++){
if(S[i].equals("AC")){
AC++;
continue;
}else if(S[i].equals("WA")){
WA++;
continue;
}else if(S[i].equals("TLE")){
TLE++;
continue;
}else if(S[i].equals("RE")){
RE++;
continue;
}
}
System.out.println("AC x "+AC);
System.out.println("WA x "+WA);
System.out.println("TLE x "+TLE);
System.out.println("RE x "+RE);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
17,
4,
18,
13,
17,
4,
18,
13,
17,
17,
4,
18,
13,
17,
4,
18,
13,
17,
17,
4,
18,
13,
17,
4,
18,
13,
17,
17,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
2,
4,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
4,
18,
13,
13,
17,
4,
18,
13,
4,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
124,
5
],
[
124,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
23,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
32,
36
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
8,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
41,
45
],
[
8,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
8,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
50,
54
],
[
8,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
8,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
59,
70
],
[
71,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
71,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
77,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
81,
86
],
[
8,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
87,
97
],
[
97,
98
],
[
98,
99
],
[
87,
100
],
[
101,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
108,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
108,
113
],
[
108,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
6,
121
],
[
121,
122
],
[
0,
123
],
[
123,
124
],
[
123,
125
]
]
| [
"import java.util.*;\npublic class Main{\n public static void main(String[] args)\n {\n Scanner sc=new Scanner(System.in);\n int t=sc.nextInt();\n HashMap<String,Integer> map=new HashMap<String,Integer>();\n LinkedList<String> s1=new LinkedList<String>();\n map.put(\"AC\",0);\n s1.add(\"AC\");\n \n map.put(\"WA\",0);\n s1.add(\"WA\");\n map.put(\"TLE\",0);\n s1.add(\"TLE\");\n map.put(\"RE\",0);\n s1.add(\"RE\");\n\tfor(int i=0;i<t;i++)\n {\n String s=sc.next();\n \n\n map.put(s,map.get(s)+1);\n \n }\n for(int k=0;k<map.size();k++)\n {\n System.out.println(s1.get(k)+\" x \"+map.get(s1.get(k)));\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args)\n {\n Scanner sc=new Scanner(System.in);\n int t=sc.nextInt();\n HashMap<String,Integer> map=new HashMap<String,Integer>();\n LinkedList<String> s1=new LinkedList<String>();\n map.put(\"AC\",0);\n s1.add(\"AC\");\n \n map.put(\"WA\",0);\n s1.add(\"WA\");\n map.put(\"TLE\",0);\n s1.add(\"TLE\");\n map.put(\"RE\",0);\n s1.add(\"RE\");\n\tfor(int i=0;i<t;i++)\n {\n String s=sc.next();\n \n\n map.put(s,map.get(s)+1);\n \n }\n for(int k=0;k<map.size();k++)\n {\n System.out.println(s1.get(k)+\" x \"+map.get(s1.get(k)));\n }\n }\n}",
"Main",
"public static void main(String[] args)\n {\n Scanner sc=new Scanner(System.in);\n int t=sc.nextInt();\n HashMap<String,Integer> map=new HashMap<String,Integer>();\n LinkedList<String> s1=new LinkedList<String>();\n map.put(\"AC\",0);\n s1.add(\"AC\");\n \n map.put(\"WA\",0);\n s1.add(\"WA\");\n map.put(\"TLE\",0);\n s1.add(\"TLE\");\n map.put(\"RE\",0);\n s1.add(\"RE\");\n\tfor(int i=0;i<t;i++)\n {\n String s=sc.next();\n \n\n map.put(s,map.get(s)+1);\n \n }\n for(int k=0;k<map.size();k++)\n {\n System.out.println(s1.get(k)+\" x \"+map.get(s1.get(k)));\n }\n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n int t=sc.nextInt();\n HashMap<String,Integer> map=new HashMap<String,Integer>();\n LinkedList<String> s1=new LinkedList<String>();\n map.put(\"AC\",0);\n s1.add(\"AC\");\n \n map.put(\"WA\",0);\n s1.add(\"WA\");\n map.put(\"TLE\",0);\n s1.add(\"TLE\");\n map.put(\"RE\",0);\n s1.add(\"RE\");\n\tfor(int i=0;i<t;i++)\n {\n String s=sc.next();\n \n\n map.put(s,map.get(s)+1);\n \n }\n for(int k=0;k<map.size();k++)\n {\n System.out.println(s1.get(k)+\" x \"+map.get(s1.get(k)));\n }\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int t=sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"HashMap<String,Integer> map=new HashMap<String,Integer>();",
"map",
"new HashMap<String,Integer>()",
"LinkedList<String> s1=new LinkedList<String>();",
"s1",
"new LinkedList<String>()",
"map.put(\"AC\",0)",
"map.put",
"map",
"\"AC\"",
"0",
"s1.add(\"AC\")",
"s1.add",
"s1",
"\"AC\"",
"map.put(\"WA\",0)",
"map.put",
"map",
"\"WA\"",
"0",
"s1.add(\"WA\")",
"s1.add",
"s1",
"\"WA\"",
"map.put(\"TLE\",0)",
"map.put",
"map",
"\"TLE\"",
"0",
"s1.add(\"TLE\")",
"s1.add",
"s1",
"\"TLE\"",
"map.put(\"RE\",0)",
"map.put",
"map",
"\"RE\"",
"0",
"s1.add(\"RE\")",
"s1.add",
"s1",
"\"RE\"",
"for(int i=0;i<t;i++)\n {\n String s=sc.next();\n \n\n map.put(s,map.get(s)+1);\n \n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<t",
"i",
"t",
"i++",
"i++",
"i",
"{\n String s=sc.next();\n \n\n map.put(s,map.get(s)+1);\n \n }",
"{\n String s=sc.next();\n \n\n map.put(s,map.get(s)+1);\n \n }",
"String s=sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"map.put(s,map.get(s)+1)",
"map.put",
"map",
"s",
"map.get(s)+1",
"map.get(s)",
"map.get",
"map",
"s",
"1",
"for(int k=0;k<map.size();k++)\n {\n System.out.println(s1.get(k)+\" x \"+map.get(s1.get(k)));\n }",
"int k=0;",
"int k=0;",
"k",
"0",
"k<map.size()",
"k",
"map.size()",
"map.size",
"map",
"k++",
"k++",
"k",
"{\n System.out.println(s1.get(k)+\" x \"+map.get(s1.get(k)));\n }",
"{\n System.out.println(s1.get(k)+\" x \"+map.get(s1.get(k)));\n }",
"System.out.println(s1.get(k)+\" x \"+map.get(s1.get(k)))",
"System.out.println",
"System.out",
"System",
"System.out",
"s1.get(k)+\" x \"+map.get(s1.get(k))",
"s1.get(k)+\" x \"+map.get(s1.get(k))",
"s1.get(k)",
"s1.get",
"s1",
"k",
"\" x \"",
"map.get(s1.get(k))",
"map.get",
"map",
"s1.get(k)",
"s1.get",
"s1",
"k",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args)\n {\n Scanner sc=new Scanner(System.in);\n int t=sc.nextInt();\n HashMap<String,Integer> map=new HashMap<String,Integer>();\n LinkedList<String> s1=new LinkedList<String>();\n map.put(\"AC\",0);\n s1.add(\"AC\");\n \n map.put(\"WA\",0);\n s1.add(\"WA\");\n map.put(\"TLE\",0);\n s1.add(\"TLE\");\n map.put(\"RE\",0);\n s1.add(\"RE\");\n\tfor(int i=0;i<t;i++)\n {\n String s=sc.next();\n \n\n map.put(s,map.get(s)+1);\n \n }\n for(int k=0;k<map.size();k++)\n {\n System.out.println(s1.get(k)+\" x \"+map.get(s1.get(k)));\n }\n }\n}",
"public class Main{\n public static void main(String[] args)\n {\n Scanner sc=new Scanner(System.in);\n int t=sc.nextInt();\n HashMap<String,Integer> map=new HashMap<String,Integer>();\n LinkedList<String> s1=new LinkedList<String>();\n map.put(\"AC\",0);\n s1.add(\"AC\");\n \n map.put(\"WA\",0);\n s1.add(\"WA\");\n map.put(\"TLE\",0);\n s1.add(\"TLE\");\n map.put(\"RE\",0);\n s1.add(\"RE\");\n\tfor(int i=0;i<t;i++)\n {\n String s=sc.next();\n \n\n map.put(s,map.get(s)+1);\n \n }\n for(int k=0;k<map.size();k++)\n {\n System.out.println(s1.get(k)+\" x \"+map.get(s1.get(k)));\n }\n }\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args)
{
Scanner sc=new Scanner(System.in);
int t=sc.nextInt();
HashMap<String,Integer> map=new HashMap<String,Integer>();
LinkedList<String> s1=new LinkedList<String>();
map.put("AC",0);
s1.add("AC");
map.put("WA",0);
s1.add("WA");
map.put("TLE",0);
s1.add("TLE");
map.put("RE",0);
s1.add("RE");
for(int i=0;i<t;i++)
{
String s=sc.next();
map.put(s,map.get(s)+1);
}
for(int k=0;k<map.size();k++)
{
System.out.println(s1.get(k)+" x "+map.get(s1.get(k)));
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
2,
4,
18,
13,
13,
17,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
121,
8
],
[
121,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
11,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
26,
30
],
[
11,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
31,
35
],
[
11,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
36,
40
],
[
11,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
41,
45
],
[
11,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
46,
54
],
[
54,
55
],
[
55,
56
],
[
46,
57
],
[
58,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
58,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
64,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
68,
73
],
[
11,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
11,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
11,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
11,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
9,
118
],
[
118,
119
],
[
0,
120
],
[
120,
121
],
[
120,
122
]
]
| [
"import java.util.*;\nimport java.io.*;\n\n\npublic class Main {\n\n\tpublic static void main(String[] args) \n\t{\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = Integer.parseInt(in.nextLine());\n\t\tHashMap<String, Integer> map = new HashMap<String, Integer>();\n\t\tmap.put(\"AC\", 0);\n\t\tmap.put(\"WA\", 0);\n\t\tmap.put(\"TLE\", 0);\n\t\tmap.put(\"RE\", 0);\n\t\tfor(int i = 0; i < n; i++)\n\t\t{\n\t\t\tString curr = in.nextLine();\n\t\t\tmap.put(curr, map.get(curr) + 1);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"AC x \" + map.get(\"AC\"));\n\t\tSystem.out.println(\"WA x \" + map.get(\"WA\"));\n\t\tSystem.out.println(\"TLE x \" + map.get(\"TLE\"));\n\t\tSystem.out.println(\"RE x \" + map.get(\"RE\"));\n\t\t\n\n\t}\n\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\n\tpublic static void main(String[] args) \n\t{\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = Integer.parseInt(in.nextLine());\n\t\tHashMap<String, Integer> map = new HashMap<String, Integer>();\n\t\tmap.put(\"AC\", 0);\n\t\tmap.put(\"WA\", 0);\n\t\tmap.put(\"TLE\", 0);\n\t\tmap.put(\"RE\", 0);\n\t\tfor(int i = 0; i < n; i++)\n\t\t{\n\t\t\tString curr = in.nextLine();\n\t\t\tmap.put(curr, map.get(curr) + 1);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"AC x \" + map.get(\"AC\"));\n\t\tSystem.out.println(\"WA x \" + map.get(\"WA\"));\n\t\tSystem.out.println(\"TLE x \" + map.get(\"TLE\"));\n\t\tSystem.out.println(\"RE x \" + map.get(\"RE\"));\n\t\t\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) \n\t{\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = Integer.parseInt(in.nextLine());\n\t\tHashMap<String, Integer> map = new HashMap<String, Integer>();\n\t\tmap.put(\"AC\", 0);\n\t\tmap.put(\"WA\", 0);\n\t\tmap.put(\"TLE\", 0);\n\t\tmap.put(\"RE\", 0);\n\t\tfor(int i = 0; i < n; i++)\n\t\t{\n\t\t\tString curr = in.nextLine();\n\t\t\tmap.put(curr, map.get(curr) + 1);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"AC x \" + map.get(\"AC\"));\n\t\tSystem.out.println(\"WA x \" + map.get(\"WA\"));\n\t\tSystem.out.println(\"TLE x \" + map.get(\"TLE\"));\n\t\tSystem.out.println(\"RE x \" + map.get(\"RE\"));\n\t\t\n\n\t}",
"main",
"{\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = Integer.parseInt(in.nextLine());\n\t\tHashMap<String, Integer> map = new HashMap<String, Integer>();\n\t\tmap.put(\"AC\", 0);\n\t\tmap.put(\"WA\", 0);\n\t\tmap.put(\"TLE\", 0);\n\t\tmap.put(\"RE\", 0);\n\t\tfor(int i = 0; i < n; i++)\n\t\t{\n\t\t\tString curr = in.nextLine();\n\t\t\tmap.put(curr, map.get(curr) + 1);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"AC x \" + map.get(\"AC\"));\n\t\tSystem.out.println(\"WA x \" + map.get(\"WA\"));\n\t\tSystem.out.println(\"TLE x \" + map.get(\"TLE\"));\n\t\tSystem.out.println(\"RE x \" + map.get(\"RE\"));\n\t\t\n\n\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int n = Integer.parseInt(in.nextLine());",
"n",
"Integer.parseInt(in.nextLine())",
"Integer.parseInt",
"Integer",
"in.nextLine()",
"in.nextLine",
"in",
"HashMap<String, Integer> map = new HashMap<String, Integer>();",
"map",
"new HashMap<String, Integer>()",
"map.put(\"AC\", 0)",
"map.put",
"map",
"\"AC\"",
"0",
"map.put(\"WA\", 0)",
"map.put",
"map",
"\"WA\"",
"0",
"map.put(\"TLE\", 0)",
"map.put",
"map",
"\"TLE\"",
"0",
"map.put(\"RE\", 0)",
"map.put",
"map",
"\"RE\"",
"0",
"for(int i = 0; i < n; i++)\n\t\t{\n\t\t\tString curr = in.nextLine();\n\t\t\tmap.put(curr, map.get(curr) + 1);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString curr = in.nextLine();\n\t\t\tmap.put(curr, map.get(curr) + 1);\n\t\t}",
"{\n\t\t\tString curr = in.nextLine();\n\t\t\tmap.put(curr, map.get(curr) + 1);\n\t\t}",
"String curr = in.nextLine();",
"curr",
"in.nextLine()",
"in.nextLine",
"in",
"map.put(curr, map.get(curr) + 1)",
"map.put",
"map",
"curr",
"map.get(curr) + 1",
"map.get(curr)",
"map.get",
"map",
"curr",
"1",
"System.out.println(\"AC x \" + map.get(\"AC\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + map.get(\"AC\")",
"\"AC x \"",
"map.get(\"AC\")",
"map.get",
"map",
"\"AC\"",
"System.out.println(\"WA x \" + map.get(\"WA\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + map.get(\"WA\")",
"\"WA x \"",
"map.get(\"WA\")",
"map.get",
"map",
"\"WA\"",
"System.out.println(\"TLE x \" + map.get(\"TLE\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + map.get(\"TLE\")",
"\"TLE x \"",
"map.get(\"TLE\")",
"map.get",
"map",
"\"TLE\"",
"System.out.println(\"RE x \" + map.get(\"RE\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + map.get(\"RE\")",
"\"RE x \"",
"map.get(\"RE\")",
"map.get",
"map",
"\"RE\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) \n\t{\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = Integer.parseInt(in.nextLine());\n\t\tHashMap<String, Integer> map = new HashMap<String, Integer>();\n\t\tmap.put(\"AC\", 0);\n\t\tmap.put(\"WA\", 0);\n\t\tmap.put(\"TLE\", 0);\n\t\tmap.put(\"RE\", 0);\n\t\tfor(int i = 0; i < n; i++)\n\t\t{\n\t\t\tString curr = in.nextLine();\n\t\t\tmap.put(curr, map.get(curr) + 1);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"AC x \" + map.get(\"AC\"));\n\t\tSystem.out.println(\"WA x \" + map.get(\"WA\"));\n\t\tSystem.out.println(\"TLE x \" + map.get(\"TLE\"));\n\t\tSystem.out.println(\"RE x \" + map.get(\"RE\"));\n\t\t\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) \n\t{\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = Integer.parseInt(in.nextLine());\n\t\tHashMap<String, Integer> map = new HashMap<String, Integer>();\n\t\tmap.put(\"AC\", 0);\n\t\tmap.put(\"WA\", 0);\n\t\tmap.put(\"TLE\", 0);\n\t\tmap.put(\"RE\", 0);\n\t\tfor(int i = 0; i < n; i++)\n\t\t{\n\t\t\tString curr = in.nextLine();\n\t\t\tmap.put(curr, map.get(curr) + 1);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"AC x \" + map.get(\"AC\"));\n\t\tSystem.out.println(\"WA x \" + map.get(\"WA\"));\n\t\tSystem.out.println(\"TLE x \" + map.get(\"TLE\"));\n\t\tSystem.out.println(\"RE x \" + map.get(\"RE\"));\n\t\t\n\n\t}\n\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args)
{
Scanner in = new Scanner(System.in);
int n = Integer.parseInt(in.nextLine());
HashMap<String, Integer> map = new HashMap<String, Integer>();
map.put("AC", 0);
map.put("WA", 0);
map.put("TLE", 0);
map.put("RE", 0);
for(int i = 0; i < n; i++)
{
String curr = in.nextLine();
map.put(curr, map.get(curr) + 1);
}
System.out.println("AC x " + map.get("AC"));
System.out.println("WA x " + map.get("WA"));
System.out.println("TLE x " + map.get("TLE"));
System.out.println("RE x " + map.get("RE"));
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
18,
13,
13,
17,
30,
0,
13,
2,
13,
17,
14,
4,
18,
18,
13,
13,
17,
30,
40,
13,
14,
4,
18,
18,
13,
13,
17,
30,
40,
13,
30,
40,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
137,
5
],
[
137,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
51,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
53,
64
],
[
65,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
66,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
76,
78
],
[
66,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
79,
86
],
[
86,
87
],
[
87,
88
],
[
79,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
89,
96
],
[
96,
97
],
[
97,
98
],
[
89,
99
],
[
99,
100
],
[
100,
101
],
[
8,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
8,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
8,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
8,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
131,
132
],
[
131,
133
],
[
6,
134
],
[
134,
135
],
[
0,
136
],
[
136,
137
],
[
136,
138
]
]
| [
"import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint n = in.nextInt();\n\t\tString a[] = new String[n];\n\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\n\t\tfor(int i=0;i<n;i++) {\n\t\t\ta[i] = in.next();\n\t\t}\n\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tif(a[i].contentEquals(\"AC\")) {\n\t\t\t\tac = ac + 1;\n\t\t\t}else if(a[i].contentEquals(\"WA\")) {\n\t\t\t\twa++;\n\t\t\t}else if(a[i].contentEquals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}else {\n\t\t\t\tre++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \"+ac);\n\t\tSystem.out.println(\"WA x \"+wa);\n\t\tSystem.out.println(\"TLE x \"+tle);\n\t\tSystem.out.println(\"RE x \"+re);\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint n = in.nextInt();\n\t\tString a[] = new String[n];\n\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\n\t\tfor(int i=0;i<n;i++) {\n\t\t\ta[i] = in.next();\n\t\t}\n\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tif(a[i].contentEquals(\"AC\")) {\n\t\t\t\tac = ac + 1;\n\t\t\t}else if(a[i].contentEquals(\"WA\")) {\n\t\t\t\twa++;\n\t\t\t}else if(a[i].contentEquals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}else {\n\t\t\t\tre++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \"+ac);\n\t\tSystem.out.println(\"WA x \"+wa);\n\t\tSystem.out.println(\"TLE x \"+tle);\n\t\tSystem.out.println(\"RE x \"+re);\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint n = in.nextInt();\n\t\tString a[] = new String[n];\n\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\n\t\tfor(int i=0;i<n;i++) {\n\t\t\ta[i] = in.next();\n\t\t}\n\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tif(a[i].contentEquals(\"AC\")) {\n\t\t\t\tac = ac + 1;\n\t\t\t}else if(a[i].contentEquals(\"WA\")) {\n\t\t\t\twa++;\n\t\t\t}else if(a[i].contentEquals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}else {\n\t\t\t\tre++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \"+ac);\n\t\tSystem.out.println(\"WA x \"+wa);\n\t\tSystem.out.println(\"TLE x \"+tle);\n\t\tSystem.out.println(\"RE x \"+re);\n\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint n = in.nextInt();\n\t\tString a[] = new String[n];\n\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\n\t\tfor(int i=0;i<n;i++) {\n\t\t\ta[i] = in.next();\n\t\t}\n\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tif(a[i].contentEquals(\"AC\")) {\n\t\t\t\tac = ac + 1;\n\t\t\t}else if(a[i].contentEquals(\"WA\")) {\n\t\t\t\twa++;\n\t\t\t}else if(a[i].contentEquals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}else {\n\t\t\t\tre++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \"+ac);\n\t\tSystem.out.println(\"WA x \"+wa);\n\t\tSystem.out.println(\"TLE x \"+tle);\n\t\tSystem.out.println(\"RE x \"+re);\n\n\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"String a[] = new String[n];",
"a",
"new String[n]",
"n",
"int ac = 0;",
"ac",
"0",
"int wa = 0;",
"wa",
"0",
"int tle = 0;",
"tle",
"0",
"int re = 0;",
"re",
"0",
"for(int i=0;i<n;i++) {\n\t\t\ta[i] = in.next();\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\ta[i] = in.next();\n\t\t}",
"{\n\t\t\ta[i] = in.next();\n\t\t}",
"a[i] = in.next()",
"a[i]",
"a",
"i",
"in.next()",
"in.next",
"in",
"for(int i=0;i<n;i++) {\n\t\t\tif(a[i].contentEquals(\"AC\")) {\n\t\t\t\tac = ac + 1;\n\t\t\t}else if(a[i].contentEquals(\"WA\")) {\n\t\t\t\twa++;\n\t\t\t}else if(a[i].contentEquals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}else {\n\t\t\t\tre++;\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif(a[i].contentEquals(\"AC\")) {\n\t\t\t\tac = ac + 1;\n\t\t\t}else if(a[i].contentEquals(\"WA\")) {\n\t\t\t\twa++;\n\t\t\t}else if(a[i].contentEquals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}else {\n\t\t\t\tre++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(a[i].contentEquals(\"AC\")) {\n\t\t\t\tac = ac + 1;\n\t\t\t}else if(a[i].contentEquals(\"WA\")) {\n\t\t\t\twa++;\n\t\t\t}else if(a[i].contentEquals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}else {\n\t\t\t\tre++;\n\t\t\t}\n\t\t}",
"if(a[i].contentEquals(\"AC\")) {\n\t\t\t\tac = ac + 1;\n\t\t\t}else if(a[i].contentEquals(\"WA\")) {\n\t\t\t\twa++;\n\t\t\t}else if(a[i].contentEquals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}else {\n\t\t\t\tre++;\n\t\t\t}",
"a[i].contentEquals(\"AC\")",
"a[i].contentEquals",
"a[i]",
"a",
"i",
"\"AC\"",
"{\n\t\t\t\tac = ac + 1;\n\t\t\t}",
"ac = ac + 1",
"ac",
"ac + 1",
"ac",
"1",
"if(a[i].contentEquals(\"WA\")) {\n\t\t\t\twa++;\n\t\t\t}else if(a[i].contentEquals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}else {\n\t\t\t\tre++;\n\t\t\t}",
"a[i].contentEquals(\"WA\")",
"a[i].contentEquals",
"a[i]",
"a",
"i",
"\"WA\"",
"{\n\t\t\t\twa++;\n\t\t\t}",
"wa++",
"wa",
"if(a[i].contentEquals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}else {\n\t\t\t\tre++;\n\t\t\t}",
"a[i].contentEquals(\"TLE\")",
"a[i].contentEquals",
"a[i]",
"a",
"i",
"\"TLE\"",
"{\n\t\t\t\ttle++;\n\t\t\t}",
"tle++",
"tle",
"{\n\t\t\t\tre++;\n\t\t\t}",
"re++",
"re",
"System.out.println(\"AC x \"+ac)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \"+ac",
"\"AC x \"",
"ac",
"System.out.println(\"WA x \"+wa)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \"+wa",
"\"WA x \"",
"wa",
"System.out.println(\"TLE x \"+tle)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \"+tle",
"\"TLE x \"",
"tle",
"System.out.println(\"RE x \"+re)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \"+re",
"\"RE x \"",
"re",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint n = in.nextInt();\n\t\tString a[] = new String[n];\n\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\n\t\tfor(int i=0;i<n;i++) {\n\t\t\ta[i] = in.next();\n\t\t}\n\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tif(a[i].contentEquals(\"AC\")) {\n\t\t\t\tac = ac + 1;\n\t\t\t}else if(a[i].contentEquals(\"WA\")) {\n\t\t\t\twa++;\n\t\t\t}else if(a[i].contentEquals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}else {\n\t\t\t\tre++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \"+ac);\n\t\tSystem.out.println(\"WA x \"+wa);\n\t\tSystem.out.println(\"TLE x \"+tle);\n\t\tSystem.out.println(\"RE x \"+re);\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint n = in.nextInt();\n\t\tString a[] = new String[n];\n\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\n\t\tfor(int i=0;i<n;i++) {\n\t\t\ta[i] = in.next();\n\t\t}\n\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tif(a[i].contentEquals(\"AC\")) {\n\t\t\t\tac = ac + 1;\n\t\t\t}else if(a[i].contentEquals(\"WA\")) {\n\t\t\t\twa++;\n\t\t\t}else if(a[i].contentEquals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}else {\n\t\t\t\tre++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \"+ac);\n\t\tSystem.out.println(\"WA x \"+wa);\n\t\tSystem.out.println(\"TLE x \"+tle);\n\t\tSystem.out.println(\"RE x \"+re);\n\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner in = new Scanner(System.in);
int n = in.nextInt();
String a[] = new String[n];
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
for(int i=0;i<n;i++) {
a[i] = in.next();
}
for(int i=0;i<n;i++) {
if(a[i].contentEquals("AC")) {
ac = ac + 1;
}else if(a[i].contentEquals("WA")) {
wa++;
}else if(a[i].contentEquals("TLE")) {
tle++;
}else {
re++;
}
}
System.out.println("AC x "+ac);
System.out.println("WA x "+wa);
System.out.println("TLE x "+tle);
System.out.println("RE x "+re);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
2,
13,
17,
41,
13,
39,
17,
17,
17,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
35,
18,
13,
13,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
17,
1,
0,
18,
13,
17,
17,
3,
34,
1,
4,
18,
18,
13,
13,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
17,
18,
13,
17,
17,
17,
18,
13,
17,
17,
17,
18,
13,
17,
17,
17,
18,
13,
17,
4,
18,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
25,
28
],
[
25,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
30,
40
],
[
40,
41
],
[
41,
42
],
[
30,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
50,
51
],
[
8,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
52,
62
],
[
62,
63
],
[
63,
64
],
[
52,
65
],
[
66,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
73,
79
],
[
67,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
82,
88
],
[
67,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
91,
97
],
[
67,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
100,
106
],
[
67,
107
],
[
107,
108
],
[
8,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
123,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
125,
127
],
[
122,
128
],
[
121,
129
],
[
120,
130
],
[
130,
131
],
[
130,
132
],
[
119,
133
],
[
118,
134
],
[
117,
135
],
[
135,
136
],
[
135,
137
],
[
116,
138
],
[
115,
139
],
[
123,
140
],
[
140,
141
],
[
140,
142
],
[
8,
143
],
[
143,
144
],
[
144,
145
],
[
6,
146
],
[
146,
147
]
]
| [
"import java.util.*;\nclass Main{\n public static void main(String[]args){\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n String[] S = new String [N+1];\n int [] C = {0,0,0,0};\n for(int i=0;i<N+1;i++){\n S[i] = scan.nextLine();\n }\n for(int i=0;i<N+1;i++){\n switch(S[i]){\n case \"AC\":\n C[0] += 1;\n break;\n case \"WA\":\n C[1] += 1;\n break;\n case \"TLE\":\n C[2] += 1;\n break;\n case \"RE\":\n C[3] += 1;\n break;\n default:\n }\n }\n System.out.println(\"AC x \" + C[0] + \"\\n\" + \"WA x \" + C[1] + \"\\n\" + \"TLE x \" + C[2] + \"\\n\" + \"RE x \" + C[3]);\n\n scan.close();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n public static void main(String[]args){\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n String[] S = new String [N+1];\n int [] C = {0,0,0,0};\n for(int i=0;i<N+1;i++){\n S[i] = scan.nextLine();\n }\n for(int i=0;i<N+1;i++){\n switch(S[i]){\n case \"AC\":\n C[0] += 1;\n break;\n case \"WA\":\n C[1] += 1;\n break;\n case \"TLE\":\n C[2] += 1;\n break;\n case \"RE\":\n C[3] += 1;\n break;\n default:\n }\n }\n System.out.println(\"AC x \" + C[0] + \"\\n\" + \"WA x \" + C[1] + \"\\n\" + \"TLE x \" + C[2] + \"\\n\" + \"RE x \" + C[3]);\n\n scan.close();\n }\n}",
"Main",
"public static void main(String[]args){\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n String[] S = new String [N+1];\n int [] C = {0,0,0,0};\n for(int i=0;i<N+1;i++){\n S[i] = scan.nextLine();\n }\n for(int i=0;i<N+1;i++){\n switch(S[i]){\n case \"AC\":\n C[0] += 1;\n break;\n case \"WA\":\n C[1] += 1;\n break;\n case \"TLE\":\n C[2] += 1;\n break;\n case \"RE\":\n C[3] += 1;\n break;\n default:\n }\n }\n System.out.println(\"AC x \" + C[0] + \"\\n\" + \"WA x \" + C[1] + \"\\n\" + \"TLE x \" + C[2] + \"\\n\" + \"RE x \" + C[3]);\n\n scan.close();\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int N = scan.nextInt();\n String[] S = new String [N+1];\n int [] C = {0,0,0,0};\n for(int i=0;i<N+1;i++){\n S[i] = scan.nextLine();\n }\n for(int i=0;i<N+1;i++){\n switch(S[i]){\n case \"AC\":\n C[0] += 1;\n break;\n case \"WA\":\n C[1] += 1;\n break;\n case \"TLE\":\n C[2] += 1;\n break;\n case \"RE\":\n C[3] += 1;\n break;\n default:\n }\n }\n System.out.println(\"AC x \" + C[0] + \"\\n\" + \"WA x \" + C[1] + \"\\n\" + \"TLE x \" + C[2] + \"\\n\" + \"RE x \" + C[3]);\n\n scan.close();\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int N = scan.nextInt();",
"N",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String[] S = new String [N+1];",
"S",
"new String [N+1]",
"N+1",
"N",
"1",
"int [] C = {0,0,0,0};",
"C",
"{0,0,0,0}",
"0",
"0",
"0",
"0",
"for(int i=0;i<N+1;i++){\n S[i] = scan.nextLine();\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N+1",
"i",
"N+1",
"N",
"1",
"i++",
"i++",
"i",
"{\n S[i] = scan.nextLine();\n }",
"{\n S[i] = scan.nextLine();\n }",
"S[i] = scan.nextLine()",
"S[i]",
"S",
"i",
"scan.nextLine()",
"scan.nextLine",
"scan",
"for(int i=0;i<N+1;i++){\n switch(S[i]){\n case \"AC\":\n C[0] += 1;\n break;\n case \"WA\":\n C[1] += 1;\n break;\n case \"TLE\":\n C[2] += 1;\n break;\n case \"RE\":\n C[3] += 1;\n break;\n default:\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N+1",
"i",
"N+1",
"N",
"1",
"i++",
"i++",
"i",
"{\n switch(S[i]){\n case \"AC\":\n C[0] += 1;\n break;\n case \"WA\":\n C[1] += 1;\n break;\n case \"TLE\":\n C[2] += 1;\n break;\n case \"RE\":\n C[3] += 1;\n break;\n default:\n }\n }",
"{\n switch(S[i]){\n case \"AC\":\n C[0] += 1;\n break;\n case \"WA\":\n C[1] += 1;\n break;\n case \"TLE\":\n C[2] += 1;\n break;\n case \"RE\":\n C[3] += 1;\n break;\n default:\n }\n }",
"switch(S[i]){\n case \"AC\":\n C[0] += 1;\n break;\n case \"WA\":\n C[1] += 1;\n break;\n case \"TLE\":\n C[2] += 1;\n break;\n case \"RE\":\n C[3] += 1;\n break;\n default:\n }",
"S[i]",
"S",
"i",
"case \"AC\":",
"\"AC\"",
"case \"AC\":",
"C[0] += 1",
"C[0]",
"C",
"0",
"1",
"break;",
"case \"WA\":",
"\"WA\"",
"case \"WA\":",
"C[1] += 1",
"C[1]",
"C",
"1",
"1",
"break;",
"case \"TLE\":",
"\"TLE\"",
"case \"TLE\":",
"C[2] += 1",
"C[2]",
"C",
"2",
"1",
"break;",
"case \"RE\":",
"\"RE\"",
"case \"RE\":",
"C[3] += 1",
"C[3]",
"C",
"3",
"1",
"break;",
"default:",
"default:",
"System.out.println(\"AC x \" + C[0] + \"\\n\" + \"WA x \" + C[1] + \"\\n\" + \"TLE x \" + C[2] + \"\\n\" + \"RE x \" + C[3])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + C[0] + \"\\n\" + \"WA x \" + C[1] + \"\\n\" + \"TLE x \" + C[2] + \"\\n\" + \"RE x \" + C[3]",
"\"RE x \"",
"\"\\n\"",
"C[2]",
"\"TLE x \"",
"\"\\n\"",
"C[1]",
"\"WA x \"",
"\"\\n\"",
"\"AC x \" + C[0] + \"\\n\" + \"WA x \" + C[1] + \"\\n\" + \"TLE x \" + C[2] + \"\\n\" + \"RE x \" + C[3]",
"\"AC x \"",
"C[0]",
"C",
"0",
"\"\\n\"",
"\"WA x \"",
"C[1]",
"C",
"1",
"\"\\n\"",
"\"TLE x \"",
"C[2]",
"C",
"2",
"\"\\n\"",
"\"RE x \"",
"C[3]",
"C",
"3",
"scan.close()",
"scan.close",
"scan",
"String[]args",
"args"
]
| import java.util.*;
class Main{
public static void main(String[]args){
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
String[] S = new String [N+1];
int [] C = {0,0,0,0};
for(int i=0;i<N+1;i++){
S[i] = scan.nextLine();
}
for(int i=0;i<N+1;i++){
switch(S[i]){
case "AC":
C[0] += 1;
break;
case "WA":
C[1] += 1;
break;
case "TLE":
C[2] += 1;
break;
case "RE":
C[3] += 1;
break;
default:
}
}
System.out.println("AC x " + C[0] + "\n" + "WA x " + C[1] + "\n" + "TLE x " + C[2] + "\n" + "RE x " + C[3]);
scan.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
4,
13,
41,
13,
4,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
2,
4,
18,
13,
13,
17,
17,
4,
18,
13,
2,
17,
4,
18,
13,
17,
17,
4,
18,
13,
2,
17,
4,
18,
13,
17,
17,
4,
18,
13,
2,
17,
4,
18,
13,
17,
17,
4,
18,
13,
2,
17,
4,
18,
13,
17,
17,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
20,
12,
13,
30,
41,
13,
4,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
13,
29,
13,
23,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
0,
13,
20,
12,
13,
30,
4,
13,
2,
13,
17,
4,
13,
2,
13,
17,
23,
13,
12,
13,
30,
4,
13,
4,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
7,
11
],
[
11,
12
],
[
7,
13
],
[
13,
14
],
[
7,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
17,
24
],
[
24,
25
],
[
24,
26
],
[
17,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
45,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
50,
54
],
[
49,
55
],
[
17,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
61,
65
],
[
17,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
71,
75
],
[
17,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
81,
85
],
[
17,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
91,
95
],
[
17,
96
],
[
96,
97
],
[
97,
98
],
[
17,
99
],
[
99,
100
],
[
100,
101
],
[
15,
102
],
[
102,
103
],
[
7,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
111,
112
],
[
112,
113
],
[
104,
114
],
[
114,
115
],
[
7,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
123,
124
],
[
124,
125
],
[
7,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
129,
130
],
[
7,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
133,
138
],
[
138,
139
],
[
138,
140
],
[
133,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
142,
147
],
[
147,
148
],
[
147,
149
],
[
142,
150
],
[
150,
151
],
[
151,
152
],
[
142,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
158,
159
],
[
158,
160
],
[
133,
161
],
[
161,
162
],
[
131,
163
],
[
163,
164
],
[
7,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
165,
171
],
[
171,
172
],
[
7,
173
],
[
173,
174
],
[
173,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
173,
179
],
[
179,
180
],
[
7,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
7,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
7,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
198,
200
],
[
195,
201
],
[
201,
202
],
[
201,
203
],
[
203,
204
],
[
203,
205
],
[
193,
206
],
[
206,
207
],
[
7,
208
],
[
208,
209
],
[
208,
210
],
[
210,
211
],
[
211,
212
],
[
210,
213
],
[
213,
214
]
]
| [
"import java.util.*;\nimport java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tsetIO();\n\n\t\tint N = ni();\n\t\t\n\t\tHashMap<String, Integer> m = new HashMap<>();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tString s = f.readLine();\n\t\t\tm.put(s, m.getOrDefault(s, 0) + 1);\n\t\t}\n\t\t\n\t\tout.println(\"AC x \" + m.getOrDefault(\"AC\", 0));\n\t\tout.println(\"WA x \" + m.getOrDefault(\"WA\", 0));\n\t\tout.println(\"TLE x \" + m.getOrDefault(\"TLE\", 0));\n\t\tout.println(\"RE x \" + m.getOrDefault(\"RE\", 0));\n\t\t\n\t\tf.close();\n\t\tout.close();\n\t}\n\n\tstatic BufferedReader f;\n\tstatic PrintWriter out;\n\tstatic StringTokenizer st;\n\n\tstatic int ni(StringTokenizer st) {\n\t\treturn Integer.parseInt(st.nextToken());\n\t}\n\n\tstatic int ni() throws IOException {\n\t\treturn Integer.parseInt(f.readLine());\n\t}\n\n\tstatic StringTokenizer nl() throws IOException {\n\t\treturn new StringTokenizer(f.readLine());\n\t}\n\n\tstatic int[] nia(int N) throws IOException {\n\t\tStringTokenizer st = nl();\n\t\tint[] A = new int[N];\n\t\tfor (int i = 0; i < N; i++)\n\t\t\tA[i] = ni(st);\n\t\treturn A;\n\t}\n\n\tstatic void setIn(String s) throws IOException {\n\t\tf = new BufferedReader(new FileReader(s));\n\t}\n\n\tstatic void setOut(String s) throws IOException {\n\t\tout = new PrintWriter(new FileWriter(s));\n\t}\n\n\tstatic void setIn() {\n\t\tf = new BufferedReader(new InputStreamReader(System.in));\n\t}\n\n\tstatic void setOut() {\n\t\tout = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n\t}\n\n\tstatic void setIO(String s) throws IOException {\n\t\tsetIn(s + \".in\");\n\t\tsetOut(s + \".out\");\n\t}\n\n\tstatic void setIO() {\n\t\tsetIn();\n\t\tsetOut();\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tsetIO();\n\n\t\tint N = ni();\n\t\t\n\t\tHashMap<String, Integer> m = new HashMap<>();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tString s = f.readLine();\n\t\t\tm.put(s, m.getOrDefault(s, 0) + 1);\n\t\t}\n\t\t\n\t\tout.println(\"AC x \" + m.getOrDefault(\"AC\", 0));\n\t\tout.println(\"WA x \" + m.getOrDefault(\"WA\", 0));\n\t\tout.println(\"TLE x \" + m.getOrDefault(\"TLE\", 0));\n\t\tout.println(\"RE x \" + m.getOrDefault(\"RE\", 0));\n\t\t\n\t\tf.close();\n\t\tout.close();\n\t}\n\n\tstatic BufferedReader f;\n\tstatic PrintWriter out;\n\tstatic StringTokenizer st;\n\n\tstatic int ni(StringTokenizer st) {\n\t\treturn Integer.parseInt(st.nextToken());\n\t}\n\n\tstatic int ni() throws IOException {\n\t\treturn Integer.parseInt(f.readLine());\n\t}\n\n\tstatic StringTokenizer nl() throws IOException {\n\t\treturn new StringTokenizer(f.readLine());\n\t}\n\n\tstatic int[] nia(int N) throws IOException {\n\t\tStringTokenizer st = nl();\n\t\tint[] A = new int[N];\n\t\tfor (int i = 0; i < N; i++)\n\t\t\tA[i] = ni(st);\n\t\treturn A;\n\t}\n\n\tstatic void setIn(String s) throws IOException {\n\t\tf = new BufferedReader(new FileReader(s));\n\t}\n\n\tstatic void setOut(String s) throws IOException {\n\t\tout = new PrintWriter(new FileWriter(s));\n\t}\n\n\tstatic void setIn() {\n\t\tf = new BufferedReader(new InputStreamReader(System.in));\n\t}\n\n\tstatic void setOut() {\n\t\tout = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n\t}\n\n\tstatic void setIO(String s) throws IOException {\n\t\tsetIn(s + \".in\");\n\t\tsetOut(s + \".out\");\n\t}\n\n\tstatic void setIO() {\n\t\tsetIn();\n\t\tsetOut();\n\t}\n}",
"Main",
"static BufferedReader f;",
"f",
"static PrintWriter out;",
"out",
"static StringTokenizer st;",
"st",
"public static void main(String[] args) throws IOException {\n\t\tsetIO();\n\n\t\tint N = ni();\n\t\t\n\t\tHashMap<String, Integer> m = new HashMap<>();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tString s = f.readLine();\n\t\t\tm.put(s, m.getOrDefault(s, 0) + 1);\n\t\t}\n\t\t\n\t\tout.println(\"AC x \" + m.getOrDefault(\"AC\", 0));\n\t\tout.println(\"WA x \" + m.getOrDefault(\"WA\", 0));\n\t\tout.println(\"TLE x \" + m.getOrDefault(\"TLE\", 0));\n\t\tout.println(\"RE x \" + m.getOrDefault(\"RE\", 0));\n\t\t\n\t\tf.close();\n\t\tout.close();\n\t}",
"main",
"{\n\t\tsetIO();\n\n\t\tint N = ni();\n\t\t\n\t\tHashMap<String, Integer> m = new HashMap<>();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tString s = f.readLine();\n\t\t\tm.put(s, m.getOrDefault(s, 0) + 1);\n\t\t}\n\t\t\n\t\tout.println(\"AC x \" + m.getOrDefault(\"AC\", 0));\n\t\tout.println(\"WA x \" + m.getOrDefault(\"WA\", 0));\n\t\tout.println(\"TLE x \" + m.getOrDefault(\"TLE\", 0));\n\t\tout.println(\"RE x \" + m.getOrDefault(\"RE\", 0));\n\t\t\n\t\tf.close();\n\t\tout.close();\n\t}",
"setIO()",
"setIO",
"int N = ni();",
"N",
"ni()",
"ni",
"HashMap<String, Integer> m = new HashMap<>();",
"m",
"new HashMap<>()",
"for (int i = 0; i < N; i++) {\n\t\t\tString s = f.readLine();\n\t\t\tm.put(s, m.getOrDefault(s, 0) + 1);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tString s = f.readLine();\n\t\t\tm.put(s, m.getOrDefault(s, 0) + 1);\n\t\t}",
"{\n\t\t\tString s = f.readLine();\n\t\t\tm.put(s, m.getOrDefault(s, 0) + 1);\n\t\t}",
"String s = f.readLine();",
"s",
"f.readLine()",
"f.readLine",
"f",
"m.put(s, m.getOrDefault(s, 0) + 1)",
"m.put",
"m",
"s",
"m.getOrDefault(s, 0) + 1",
"m.getOrDefault(s, 0)",
"m.getOrDefault",
"m",
"s",
"0",
"1",
"out.println(\"AC x \" + m.getOrDefault(\"AC\", 0))",
"out.println",
"out",
"\"AC x \" + m.getOrDefault(\"AC\", 0)",
"\"AC x \"",
"m.getOrDefault(\"AC\", 0)",
"m.getOrDefault",
"m",
"\"AC\"",
"0",
"out.println(\"WA x \" + m.getOrDefault(\"WA\", 0))",
"out.println",
"out",
"\"WA x \" + m.getOrDefault(\"WA\", 0)",
"\"WA x \"",
"m.getOrDefault(\"WA\", 0)",
"m.getOrDefault",
"m",
"\"WA\"",
"0",
"out.println(\"TLE x \" + m.getOrDefault(\"TLE\", 0))",
"out.println",
"out",
"\"TLE x \" + m.getOrDefault(\"TLE\", 0)",
"\"TLE x \"",
"m.getOrDefault(\"TLE\", 0)",
"m.getOrDefault",
"m",
"\"TLE\"",
"0",
"out.println(\"RE x \" + m.getOrDefault(\"RE\", 0))",
"out.println",
"out",
"\"RE x \" + m.getOrDefault(\"RE\", 0)",
"\"RE x \"",
"m.getOrDefault(\"RE\", 0)",
"m.getOrDefault",
"m",
"\"RE\"",
"0",
"f.close()",
"f.close",
"f",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static int ni(StringTokenizer st) {\n\t\treturn Integer.parseInt(st.nextToken());\n\t}",
"ni",
"{\n\t\treturn Integer.parseInt(st.nextToken());\n\t}",
"return Integer.parseInt(st.nextToken());",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"StringTokenizer st",
"st",
"static int ni() throws IOException {\n\t\treturn Integer.parseInt(f.readLine());\n\t}",
"ni",
"{\n\t\treturn Integer.parseInt(f.readLine());\n\t}",
"return Integer.parseInt(f.readLine());",
"Integer.parseInt(f.readLine())",
"Integer.parseInt",
"Integer",
"f.readLine()",
"f.readLine",
"f",
"static StringTokenizer nl() throws IOException {\n\t\treturn new StringTokenizer(f.readLine());\n\t}",
"nl",
"{\n\t\treturn new StringTokenizer(f.readLine());\n\t}",
"return new StringTokenizer(f.readLine());",
"new StringTokenizer(f.readLine())",
"static int[] nia(int N) throws IOException {\n\t\tStringTokenizer st = nl();\n\t\tint[] A = new int[N];\n\t\tfor (int i = 0; i < N; i++)\n\t\t\tA[i] = ni(st);\n\t\treturn A;\n\t}",
"nia",
"{\n\t\tStringTokenizer st = nl();\n\t\tint[] A = new int[N];\n\t\tfor (int i = 0; i < N; i++)\n\t\t\tA[i] = ni(st);\n\t\treturn A;\n\t}",
"StringTokenizer st = nl();",
"st",
"nl()",
"nl",
"int[] A = new int[N];",
"A",
"new int[N]",
"N",
"for (int i = 0; i < N; i++)\n\t\t\tA[i] = ni(st);",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"A[i] = ni(st);",
"A[i] = ni(st)",
"A[i]",
"A",
"i",
"ni(st)",
"ni",
"st",
"return A;",
"A",
"int N",
"N",
"static void setIn(String s) throws IOException {\n\t\tf = new BufferedReader(new FileReader(s));\n\t}",
"setIn",
"{\n\t\tf = new BufferedReader(new FileReader(s));\n\t}",
"f = new BufferedReader(new FileReader(s))",
"f",
"new BufferedReader(new FileReader(s))",
"String s",
"s",
"static void setOut(String s) throws IOException {\n\t\tout = new PrintWriter(new FileWriter(s));\n\t}",
"setOut",
"{\n\t\tout = new PrintWriter(new FileWriter(s));\n\t}",
"out = new PrintWriter(new FileWriter(s))",
"out",
"new PrintWriter(new FileWriter(s))",
"String s",
"s",
"static void setIn() {\n\t\tf = new BufferedReader(new InputStreamReader(System.in));\n\t}",
"setIn",
"{\n\t\tf = new BufferedReader(new InputStreamReader(System.in));\n\t}",
"f = new BufferedReader(new InputStreamReader(System.in))",
"f",
"new BufferedReader(new InputStreamReader(System.in))",
"static void setOut() {\n\t\tout = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n\t}",
"setOut",
"{\n\t\tout = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n\t}",
"out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)))",
"out",
"new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)))",
"static void setIO(String s) throws IOException {\n\t\tsetIn(s + \".in\");\n\t\tsetOut(s + \".out\");\n\t}",
"setIO",
"{\n\t\tsetIn(s + \".in\");\n\t\tsetOut(s + \".out\");\n\t}",
"setIn(s + \".in\")",
"setIn",
"s + \".in\"",
"s",
"\".in\"",
"setOut(s + \".out\")",
"setOut",
"s + \".out\"",
"s",
"\".out\"",
"String s",
"s",
"static void setIO() {\n\t\tsetIn();\n\t\tsetOut();\n\t}",
"setIO",
"{\n\t\tsetIn();\n\t\tsetOut();\n\t}",
"setIn()",
"setIn",
"setOut()",
"setOut"
]
| import java.util.*;
import java.io.*;
class Main {
public static void main(String[] args) throws IOException {
setIO();
int N = ni();
HashMap<String, Integer> m = new HashMap<>();
for (int i = 0; i < N; i++) {
String s = f.readLine();
m.put(s, m.getOrDefault(s, 0) + 1);
}
out.println("AC x " + m.getOrDefault("AC", 0));
out.println("WA x " + m.getOrDefault("WA", 0));
out.println("TLE x " + m.getOrDefault("TLE", 0));
out.println("RE x " + m.getOrDefault("RE", 0));
f.close();
out.close();
}
static BufferedReader f;
static PrintWriter out;
static StringTokenizer st;
static int ni(StringTokenizer st) {
return Integer.parseInt(st.nextToken());
}
static int ni() throws IOException {
return Integer.parseInt(f.readLine());
}
static StringTokenizer nl() throws IOException {
return new StringTokenizer(f.readLine());
}
static int[] nia(int N) throws IOException {
StringTokenizer st = nl();
int[] A = new int[N];
for (int i = 0; i < N; i++)
A[i] = ni(st);
return A;
}
static void setIn(String s) throws IOException {
f = new BufferedReader(new FileReader(s));
}
static void setOut(String s) throws IOException {
out = new PrintWriter(new FileWriter(s));
}
static void setIn() {
f = new BufferedReader(new InputStreamReader(System.in));
}
static void setOut() {
out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
}
static void setIO(String s) throws IOException {
setIn(s + ".in");
setOut(s + ".out");
}
static void setIO() {
setIn();
setOut();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
35,
4,
18,
13,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
34,
17,
1,
40,
13,
3,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
108,
8
],
[
108,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
11,
29
],
[
29,
30
],
[
29,
31
],
[
11,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
45,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
45,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
45,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
45,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
11,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
11,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
86,
87
],
[
86,
88
],
[
11,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
11,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
9,
105
],
[
105,
106
],
[
0,
107
],
[
107,
108
],
[
107,
109
]
]
| [
"import java.util.*;\nimport java.io.*;\n\n\npublic class Main{\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n int loopcount = scan.nextInt();\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n\n for(int i = 0; i < loopcount; i++){\n switch(scan.next()){\n case \"AC\":\n ac++;\n break;\n\n case \"WA\":\n wa++;\n break;\n\n case \"TLE\":\n tle++;\n break;\n\n case \"RE\":\n re++;\n break;\n }\n }\n System.out.println(\"AC x \" + ac);\n System.out.println(\"WA x \" + wa);\n System.out.println(\"TLE x \" + tle);\n System.out.println(\"RE x \" + re);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n int loopcount = scan.nextInt();\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n\n for(int i = 0; i < loopcount; i++){\n switch(scan.next()){\n case \"AC\":\n ac++;\n break;\n\n case \"WA\":\n wa++;\n break;\n\n case \"TLE\":\n tle++;\n break;\n\n case \"RE\":\n re++;\n break;\n }\n }\n System.out.println(\"AC x \" + ac);\n System.out.println(\"WA x \" + wa);\n System.out.println(\"TLE x \" + tle);\n System.out.println(\"RE x \" + re);\n }\n}",
"Main",
"public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n int loopcount = scan.nextInt();\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n\n for(int i = 0; i < loopcount; i++){\n switch(scan.next()){\n case \"AC\":\n ac++;\n break;\n\n case \"WA\":\n wa++;\n break;\n\n case \"TLE\":\n tle++;\n break;\n\n case \"RE\":\n re++;\n break;\n }\n }\n System.out.println(\"AC x \" + ac);\n System.out.println(\"WA x \" + wa);\n System.out.println(\"TLE x \" + tle);\n System.out.println(\"RE x \" + re);\n }",
"main",
"{\n\n Scanner scan = new Scanner(System.in);\n int loopcount = scan.nextInt();\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n\n for(int i = 0; i < loopcount; i++){\n switch(scan.next()){\n case \"AC\":\n ac++;\n break;\n\n case \"WA\":\n wa++;\n break;\n\n case \"TLE\":\n tle++;\n break;\n\n case \"RE\":\n re++;\n break;\n }\n }\n System.out.println(\"AC x \" + ac);\n System.out.println(\"WA x \" + wa);\n System.out.println(\"TLE x \" + tle);\n System.out.println(\"RE x \" + re);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int loopcount = scan.nextInt();",
"loopcount",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int ac = 0;",
"ac",
"0",
"int wa = 0;",
"wa",
"0",
"int tle = 0;",
"tle",
"0",
"int re = 0;",
"re",
"0",
"for(int i = 0; i < loopcount; i++){\n switch(scan.next()){\n case \"AC\":\n ac++;\n break;\n\n case \"WA\":\n wa++;\n break;\n\n case \"TLE\":\n tle++;\n break;\n\n case \"RE\":\n re++;\n break;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < loopcount",
"i",
"loopcount",
"i++",
"i++",
"i",
"{\n switch(scan.next()){\n case \"AC\":\n ac++;\n break;\n\n case \"WA\":\n wa++;\n break;\n\n case \"TLE\":\n tle++;\n break;\n\n case \"RE\":\n re++;\n break;\n }\n }",
"{\n switch(scan.next()){\n case \"AC\":\n ac++;\n break;\n\n case \"WA\":\n wa++;\n break;\n\n case \"TLE\":\n tle++;\n break;\n\n case \"RE\":\n re++;\n break;\n }\n }",
"switch(scan.next()){\n case \"AC\":\n ac++;\n break;\n\n case \"WA\":\n wa++;\n break;\n\n case \"TLE\":\n tle++;\n break;\n\n case \"RE\":\n re++;\n break;\n }",
"scan.next()",
"scan.next",
"scan",
"case \"AC\":",
"\"AC\"",
"case \"AC\":",
"ac++",
"ac",
"break;",
"case \"WA\":",
"\"WA\"",
"case \"WA\":",
"wa++",
"wa",
"break;",
"case \"TLE\":",
"\"TLE\"",
"case \"TLE\":",
"tle++",
"tle",
"break;",
"case \"RE\":",
"\"RE\"",
"case \"RE\":",
"re++",
"re",
"break;",
"System.out.println(\"AC x \" + ac)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + ac",
"\"AC x \"",
"ac",
"System.out.println(\"WA x \" + wa)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + wa",
"\"WA x \"",
"wa",
"System.out.println(\"TLE x \" + tle)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + tle",
"\"TLE x \"",
"tle",
"System.out.println(\"RE x \" + re)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + re",
"\"RE x \"",
"re",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n int loopcount = scan.nextInt();\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n\n for(int i = 0; i < loopcount; i++){\n switch(scan.next()){\n case \"AC\":\n ac++;\n break;\n\n case \"WA\":\n wa++;\n break;\n\n case \"TLE\":\n tle++;\n break;\n\n case \"RE\":\n re++;\n break;\n }\n }\n System.out.println(\"AC x \" + ac);\n System.out.println(\"WA x \" + wa);\n System.out.println(\"TLE x \" + tle);\n System.out.println(\"RE x \" + re);\n }\n}",
"public class Main{\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n int loopcount = scan.nextInt();\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n\n for(int i = 0; i < loopcount; i++){\n switch(scan.next()){\n case \"AC\":\n ac++;\n break;\n\n case \"WA\":\n wa++;\n break;\n\n case \"TLE\":\n tle++;\n break;\n\n case \"RE\":\n re++;\n break;\n }\n }\n System.out.println(\"AC x \" + ac);\n System.out.println(\"WA x \" + wa);\n System.out.println(\"TLE x \" + tle);\n System.out.println(\"RE x \" + re);\n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int loopcount = scan.nextInt();
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
for(int i = 0; i < loopcount; i++){
switch(scan.next()){
case "AC":
ac++;
break;
case "WA":
wa++;
break;
case "TLE":
tle++;
break;
case "RE":
re++;
break;
}
}
System.out.println("AC x " + ac);
System.out.println("WA x " + wa);
System.out.println("TLE x " + tle);
System.out.println("RE x " + re);
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.