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,
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,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
4,
18,
13,
17,
35,
13,
34,
17,
30,
30,
40,
13,
3,
34,
17,
30,
30,
40,
13,
3,
34,
17,
30,
30,
40,
13,
3,
34,
17,
30,
30,
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
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
117,
11
],
[
117,
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
],
[
39,
42
],
[
38,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
46,
51
],
[
43,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
52,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
52,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
52,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
78,
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
],
[
14,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
12,
114
],
[
114,
115
],
[
0,
116
],
[
116,
117
],
[
116,
118
]
]
| [
"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 NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint ac = 0,wa= 0,tle= 0,re=0;\n\t\t\n\t\twhile(n-- > 0)\n\t\t{\n\t\t\t\n\t\t\n\t\tchar ch = br.readLine().charAt(0);\n\t\t//System.out.println(ch);\n\t\tswitch(ch)\n\t\t{\n\t\t\tcase 'A':\n\t\t\t{\n\t\t\t\tac++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\n\t\t\tcase 'W':\n\t\t\t{\n\t\t\t\twa++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\n\t\t\tcase 'T':\n\t\t\t{\n\t\t\t\ttle++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tcase 'R':\n\t\t\t{\n\t\t\t\tre++;\n\t\t\t\tbreak;\n\t\t\t}\n\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}\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 NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint ac = 0,wa= 0,tle= 0,re=0;\n\t\t\n\t\twhile(n-- > 0)\n\t\t{\n\t\t\t\n\t\t\n\t\tchar ch = br.readLine().charAt(0);\n\t\t//System.out.println(ch);\n\t\tswitch(ch)\n\t\t{\n\t\t\tcase 'A':\n\t\t\t{\n\t\t\t\tac++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\n\t\t\tcase 'W':\n\t\t\t{\n\t\t\t\twa++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\n\t\t\tcase 'T':\n\t\t\t{\n\t\t\t\ttle++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tcase 'R':\n\t\t\t{\n\t\t\t\tre++;\n\t\t\t\tbreak;\n\t\t\t}\n\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}\n\n}",
"Main",
"public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint ac = 0,wa= 0,tle= 0,re=0;\n\t\t\n\t\twhile(n-- > 0)\n\t\t{\n\t\t\t\n\t\t\n\t\tchar ch = br.readLine().charAt(0);\n\t\t//System.out.println(ch);\n\t\tswitch(ch)\n\t\t{\n\t\t\tcase 'A':\n\t\t\t{\n\t\t\t\tac++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\n\t\t\tcase 'W':\n\t\t\t{\n\t\t\t\twa++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\n\t\t\tcase 'T':\n\t\t\t{\n\t\t\t\ttle++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tcase 'R':\n\t\t\t{\n\t\t\t\tre++;\n\t\t\t\tbreak;\n\t\t\t}\n\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}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint ac = 0,wa= 0,tle= 0,re=0;\n\t\t\n\t\twhile(n-- > 0)\n\t\t{\n\t\t\t\n\t\t\n\t\tchar ch = br.readLine().charAt(0);\n\t\t//System.out.println(ch);\n\t\tswitch(ch)\n\t\t{\n\t\t\tcase 'A':\n\t\t\t{\n\t\t\t\tac++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\n\t\t\tcase 'W':\n\t\t\t{\n\t\t\t\twa++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\n\t\t\tcase 'T':\n\t\t\t{\n\t\t\t\ttle++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tcase 'R':\n\t\t\t{\n\t\t\t\tre++;\n\t\t\t\tbreak;\n\t\t\t}\n\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}",
"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",
"while(n-- > 0)\n\t\t{\n\t\t\t\n\t\t\n\t\tchar ch = br.readLine().charAt(0);\n\t\t//System.out.println(ch);\n\t\tswitch(ch)\n\t\t{\n\t\t\tcase 'A':\n\t\t\t{\n\t\t\t\tac++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\n\t\t\tcase 'W':\n\t\t\t{\n\t\t\t\twa++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\n\t\t\tcase 'T':\n\t\t\t{\n\t\t\t\ttle++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tcase 'R':\n\t\t\t{\n\t\t\t\tre++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\n\t\t}\n\t\t}",
"n-- > 0",
"n--",
"n",
"0",
"{\n\t\t\t\n\t\t\n\t\tchar ch = br.readLine().charAt(0);\n\t\t//System.out.println(ch);\n\t\tswitch(ch)\n\t\t{\n\t\t\tcase 'A':\n\t\t\t{\n\t\t\t\tac++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\n\t\t\tcase 'W':\n\t\t\t{\n\t\t\t\twa++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\n\t\t\tcase 'T':\n\t\t\t{\n\t\t\t\ttle++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tcase 'R':\n\t\t\t{\n\t\t\t\tre++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\n\t\t}\n\t\t}",
"char ch = br.readLine().charAt(0);",
"ch",
"br.readLine().charAt(0)",
"br.readLine().charAt",
"br.readLine()",
"br.readLine",
"br",
"0",
"switch(ch)\n\t\t{\n\t\t\tcase 'A':\n\t\t\t{\n\t\t\t\tac++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\n\t\t\tcase 'W':\n\t\t\t{\n\t\t\t\twa++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\n\t\t\tcase 'T':\n\t\t\t{\n\t\t\t\ttle++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tcase 'R':\n\t\t\t{\n\t\t\t\tre++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\n\t\t}",
"ch",
"case 'A':",
"'A'",
"case 'A':",
"{\n\t\t\t\tac++;\n\t\t\t\tbreak;\n\t\t\t}",
"ac++",
"ac",
"break;",
"case 'W':",
"'W'",
"case 'W':",
"{\n\t\t\t\twa++;\n\t\t\t\tbreak;\n\t\t\t}",
"wa++",
"wa",
"break;",
"case 'T':",
"'T'",
"case 'T':",
"{\n\t\t\t\ttle++;\n\t\t\t\tbreak;\n\t\t\t}",
"tle++",
"tle",
"break;",
"case 'R':",
"'R'",
"case 'R':",
"{\n\t\t\t\tre++;\n\t\t\t\tbreak;\n\t\t\t}",
"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) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint ac = 0,wa= 0,tle= 0,re=0;\n\t\t\n\t\twhile(n-- > 0)\n\t\t{\n\t\t\t\n\t\t\n\t\tchar ch = br.readLine().charAt(0);\n\t\t//System.out.println(ch);\n\t\tswitch(ch)\n\t\t{\n\t\t\tcase 'A':\n\t\t\t{\n\t\t\t\tac++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\n\t\t\tcase 'W':\n\t\t\t{\n\t\t\t\twa++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\n\t\t\tcase 'T':\n\t\t\t{\n\t\t\t\ttle++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tcase 'R':\n\t\t\t{\n\t\t\t\tre++;\n\t\t\t\tbreak;\n\t\t\t}\n\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}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint ac = 0,wa= 0,tle= 0,re=0;\n\t\t\n\t\twhile(n-- > 0)\n\t\t{\n\t\t\t\n\t\t\n\t\tchar ch = br.readLine().charAt(0);\n\t\t//System.out.println(ch);\n\t\tswitch(ch)\n\t\t{\n\t\t\tcase 'A':\n\t\t\t{\n\t\t\t\tac++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\n\t\t\tcase 'W':\n\t\t\t{\n\t\t\t\twa++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\n\t\t\tcase 'T':\n\t\t\t{\n\t\t\t\ttle++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tcase 'R':\n\t\t\t{\n\t\t\t\tre++;\n\t\t\t\tbreak;\n\t\t\t}\n\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}\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 NumberFormatException, IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
int ac = 0,wa= 0,tle= 0,re=0;
while(n-- > 0)
{
char ch = br.readLine().charAt(0);
//System.out.println(ch);
switch(ch)
{
case 'A':
{
ac++;
break;
}
case 'W':
{
wa++;
break;
}
case 'T':
{
tle++;
break;
}
case 'R':
{
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,
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,
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
],
[
144,
5
],
[
144,
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,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
24,
29
],
[
29,
30
],
[
29,
31
],
[
24,
32
],
[
32,
33
],
[
33,
34
],
[
24,
35
],
[
36,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
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
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
69,
76
],
[
76,
77
],
[
77,
78
],
[
69,
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
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
99,
106
],
[
106,
107
],
[
107,
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
],
[
8,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
130,
131
],
[
130,
132
],
[
8,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
133,
138
],
[
138,
139
],
[
138,
140
],
[
6,
141
],
[
141,
142
],
[
0,
143
],
[
143,
144
],
[
143,
145
]
]
| [
"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 int n = Integer.parseInt(sc.nextLine());\n \n String str[] = new String[n];\n \n \n for(int i = 0; i < n ; i++){\n str[i] = sc.next();\n }\n\n //for(int i = 0; i < n ; i++){\n // System.out.println(str[i]);\n //}\n \n int cnt_AC = 0;\n int cnt_WA = 0;\n int cnt_TLE = 0;\n int cnt_RE = 0;\n\n \n for(int i = 0; i < n ; i++){\n if( str[i] .equals( \"AC\")){\n //System.out.println(\"AC \");\n cnt_AC ++;\n }else if( str[i] .equals(\"WA\")){\n cnt_WA ++;\n \n }else if( str[i].equals( \"TLE\")){\n cnt_TLE++;\n }else if( str[i].equals(\"RE\")){\n cnt_RE++;\n }\n }\n System.out.println(\"AC x \"+cnt_AC); \n //System.out.println(cnt_AC); \n System.out.println(\"WA x \"+cnt_WA); \n System.out.println(\"TLE x \"+cnt_TLE); \n System.out.println(\"RE x \"+cnt_RE); \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 // 整数の入力\n int n = Integer.parseInt(sc.nextLine());\n \n String str[] = new String[n];\n \n \n for(int i = 0; i < n ; i++){\n str[i] = sc.next();\n }\n\n //for(int i = 0; i < n ; i++){\n // System.out.println(str[i]);\n //}\n \n int cnt_AC = 0;\n int cnt_WA = 0;\n int cnt_TLE = 0;\n int cnt_RE = 0;\n\n \n for(int i = 0; i < n ; i++){\n if( str[i] .equals( \"AC\")){\n //System.out.println(\"AC \");\n cnt_AC ++;\n }else if( str[i] .equals(\"WA\")){\n cnt_WA ++;\n \n }else if( str[i].equals( \"TLE\")){\n cnt_TLE++;\n }else if( str[i].equals(\"RE\")){\n cnt_RE++;\n }\n }\n System.out.println(\"AC x \"+cnt_AC); \n //System.out.println(cnt_AC); \n System.out.println(\"WA x \"+cnt_WA); \n System.out.println(\"TLE x \"+cnt_TLE); \n System.out.println(\"RE x \"+cnt_RE); \n}\n\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n // 整数の入力\n int n = Integer.parseInt(sc.nextLine());\n \n String str[] = new String[n];\n \n \n for(int i = 0; i < n ; i++){\n str[i] = sc.next();\n }\n\n //for(int i = 0; i < n ; i++){\n // System.out.println(str[i]);\n //}\n \n int cnt_AC = 0;\n int cnt_WA = 0;\n int cnt_TLE = 0;\n int cnt_RE = 0;\n\n \n for(int i = 0; i < n ; i++){\n if( str[i] .equals( \"AC\")){\n //System.out.println(\"AC \");\n cnt_AC ++;\n }else if( str[i] .equals(\"WA\")){\n cnt_WA ++;\n \n }else if( str[i].equals( \"TLE\")){\n cnt_TLE++;\n }else if( str[i].equals(\"RE\")){\n cnt_RE++;\n }\n }\n System.out.println(\"AC x \"+cnt_AC); \n //System.out.println(cnt_AC); \n System.out.println(\"WA x \"+cnt_WA); \n System.out.println(\"TLE x \"+cnt_TLE); \n System.out.println(\"RE x \"+cnt_RE); \n}",
"main",
"{\n Scanner sc = new Scanner(System.in);\n // 整数の入力\n int n = Integer.parseInt(sc.nextLine());\n \n String str[] = new String[n];\n \n \n for(int i = 0; i < n ; i++){\n str[i] = sc.next();\n }\n\n //for(int i = 0; i < n ; i++){\n // System.out.println(str[i]);\n //}\n \n int cnt_AC = 0;\n int cnt_WA = 0;\n int cnt_TLE = 0;\n int cnt_RE = 0;\n\n \n for(int i = 0; i < n ; i++){\n if( str[i] .equals( \"AC\")){\n //System.out.println(\"AC \");\n cnt_AC ++;\n }else if( str[i] .equals(\"WA\")){\n cnt_WA ++;\n \n }else if( str[i].equals( \"TLE\")){\n cnt_TLE++;\n }else if( str[i].equals(\"RE\")){\n cnt_RE++;\n }\n }\n System.out.println(\"AC x \"+cnt_AC); \n //System.out.println(cnt_AC); \n System.out.println(\"WA x \"+cnt_WA); \n System.out.println(\"TLE x \"+cnt_TLE); \n System.out.println(\"RE x \"+cnt_RE); \n}",
"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",
"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 cnt_AC = 0;",
"cnt_AC",
"0",
"int cnt_WA = 0;",
"cnt_WA",
"0",
"int cnt_TLE = 0;",
"cnt_TLE",
"0",
"int cnt_RE = 0;",
"cnt_RE",
"0",
"for(int i = 0; i < n ; i++){\n if( str[i] .equals( \"AC\")){\n //System.out.println(\"AC \");\n cnt_AC ++;\n }else if( str[i] .equals(\"WA\")){\n cnt_WA ++;\n \n }else if( str[i].equals( \"TLE\")){\n cnt_TLE++;\n }else if( str[i].equals(\"RE\")){\n cnt_RE++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if( str[i] .equals( \"AC\")){\n //System.out.println(\"AC \");\n cnt_AC ++;\n }else if( str[i] .equals(\"WA\")){\n cnt_WA ++;\n \n }else if( str[i].equals( \"TLE\")){\n cnt_TLE++;\n }else if( str[i].equals(\"RE\")){\n cnt_RE++;\n }\n }",
"{\n if( str[i] .equals( \"AC\")){\n //System.out.println(\"AC \");\n cnt_AC ++;\n }else if( str[i] .equals(\"WA\")){\n cnt_WA ++;\n \n }else if( str[i].equals( \"TLE\")){\n cnt_TLE++;\n }else if( str[i].equals(\"RE\")){\n cnt_RE++;\n }\n }",
"if( str[i] .equals( \"AC\")){\n //System.out.println(\"AC \");\n cnt_AC ++;\n }else if( str[i] .equals(\"WA\")){\n cnt_WA ++;\n \n }else if( str[i].equals( \"TLE\")){\n cnt_TLE++;\n }else if( str[i].equals(\"RE\")){\n cnt_RE++;\n }",
"str[i] .equals( \"AC\")",
"str[i] .equals",
"str[i]",
"str",
"i",
"\"AC\"",
"{\n //System.out.println(\"AC \");\n cnt_AC ++;\n }",
"cnt_AC ++",
"cnt_AC",
"if( str[i] .equals(\"WA\")){\n cnt_WA ++;\n \n }else if( str[i].equals( \"TLE\")){\n cnt_TLE++;\n }else if( str[i].equals(\"RE\")){\n cnt_RE++;\n }",
"str[i] .equals(\"WA\")",
"str[i] .equals",
"str[i]",
"str",
"i",
"\"WA\"",
"{\n cnt_WA ++;\n \n }",
"cnt_WA ++",
"cnt_WA",
"if( str[i].equals( \"TLE\")){\n cnt_TLE++;\n }else if( str[i].equals(\"RE\")){\n cnt_RE++;\n }",
"str[i].equals( \"TLE\")",
"str[i].equals",
"str[i]",
"str",
"i",
"\"TLE\"",
"{\n cnt_TLE++;\n }",
"cnt_TLE++",
"cnt_TLE",
"if( str[i].equals(\"RE\")){\n cnt_RE++;\n }",
"str[i].equals(\"RE\")",
"str[i].equals",
"str[i]",
"str",
"i",
"\"RE\"",
"{\n cnt_RE++;\n }",
"cnt_RE++",
"cnt_RE",
"System.out.println(\"AC x \"+cnt_AC)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \"+cnt_AC",
"\"AC x \"",
"cnt_AC",
"System.out.println(\"WA x \"+cnt_WA)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \"+cnt_WA",
"\"WA x \"",
"cnt_WA",
"System.out.println(\"TLE x \"+cnt_TLE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \"+cnt_TLE",
"\"TLE x \"",
"cnt_TLE",
"System.out.println(\"RE x \"+cnt_RE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \"+cnt_RE",
"\"RE x \"",
"cnt_RE",
"String[] args",
"args",
"public class Main {\n \n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n // 整数の入力\n int n = Integer.parseInt(sc.nextLine());\n \n String str[] = new String[n];\n \n \n for(int i = 0; i < n ; i++){\n str[i] = sc.next();\n }\n\n //for(int i = 0; i < n ; i++){\n // System.out.println(str[i]);\n //}\n \n int cnt_AC = 0;\n int cnt_WA = 0;\n int cnt_TLE = 0;\n int cnt_RE = 0;\n\n \n for(int i = 0; i < n ; i++){\n if( str[i] .equals( \"AC\")){\n //System.out.println(\"AC \");\n cnt_AC ++;\n }else if( str[i] .equals(\"WA\")){\n cnt_WA ++;\n \n }else if( str[i].equals( \"TLE\")){\n cnt_TLE++;\n }else if( str[i].equals(\"RE\")){\n cnt_RE++;\n }\n }\n System.out.println(\"AC x \"+cnt_AC); \n //System.out.println(cnt_AC); \n System.out.println(\"WA x \"+cnt_WA); \n System.out.println(\"TLE x \"+cnt_TLE); \n System.out.println(\"RE x \"+cnt_RE); \n}\n\n}",
"public class Main {\n \n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n // 整数の入力\n int n = Integer.parseInt(sc.nextLine());\n \n String str[] = new String[n];\n \n \n for(int i = 0; i < n ; i++){\n str[i] = sc.next();\n }\n\n //for(int i = 0; i < n ; i++){\n // System.out.println(str[i]);\n //}\n \n int cnt_AC = 0;\n int cnt_WA = 0;\n int cnt_TLE = 0;\n int cnt_RE = 0;\n\n \n for(int i = 0; i < n ; i++){\n if( str[i] .equals( \"AC\")){\n //System.out.println(\"AC \");\n cnt_AC ++;\n }else if( str[i] .equals(\"WA\")){\n cnt_WA ++;\n \n }else if( str[i].equals( \"TLE\")){\n cnt_TLE++;\n }else if( str[i].equals(\"RE\")){\n cnt_RE++;\n }\n }\n System.out.println(\"AC x \"+cnt_AC); \n //System.out.println(cnt_AC); \n System.out.println(\"WA x \"+cnt_WA); \n System.out.println(\"TLE x \"+cnt_TLE); \n System.out.println(\"RE x \"+cnt_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 = Integer.parseInt(sc.nextLine());
String str[] = new String[n];
for(int i = 0; i < n ; i++){
str[i] = sc.next();
}
//for(int i = 0; i < n ; i++){
// System.out.println(str[i]);
//}
int cnt_AC = 0;
int cnt_WA = 0;
int cnt_TLE = 0;
int cnt_RE = 0;
for(int i = 0; i < n ; i++){
if( str[i] .equals( "AC")){
//System.out.println("AC ");
cnt_AC ++;
}else if( str[i] .equals("WA")){
cnt_WA ++;
}else if( str[i].equals( "TLE")){
cnt_TLE++;
}else if( str[i].equals("RE")){
cnt_RE++;
}
}
System.out.println("AC x "+cnt_AC);
//System.out.println(cnt_AC);
System.out.println("WA x "+cnt_WA);
System.out.println("TLE x "+cnt_TLE);
System.out.println("RE x "+cnt_RE);
}
} |
[
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,
41,
13,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
41,
13,
4,
18,
4,
18,
13,
17,
17,
17,
0,
13,
4,
18,
13,
18,
13,
17,
41,
13,
20,
13,
42,
2,
13,
13,
30,
0,
18,
13,
13,
4,
18,
13,
2,
13,
17,
40,
13,
4,
13,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
42,
2,
13,
13,
30,
14,
4,
18,
18,
13,
13,
17,
30,
0,
13,
2,
13,
17,
14,
4,
18,
18,
13,
13,
17,
30,
0,
13,
2,
13,
17,
14,
4,
18,
18,
13,
13,
17,
30,
0,
13,
2,
13,
17,
14,
4,
18,
18,
13,
13,
17,
30,
0,
13,
2,
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,
29,
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
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
206,
14
],
[
206,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
17,
26
],
[
26,
27
],
[
26,
28
],
[
17,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
33,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
17,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
45,
51
],
[
45,
52
],
[
17,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
58,
59
],
[
58,
60
],
[
17,
61
],
[
61,
62
],
[
61,
63
],
[
17,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
77,
79
],
[
69,
80
],
[
80,
81
],
[
17,
82
],
[
82,
83
],
[
82,
84
],
[
82,
85
],
[
17,
86
],
[
86,
87
],
[
87,
88
],
[
15,
89
],
[
89,
90
],
[
206,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
97,
99
],
[
93,
100
],
[
100,
101
],
[
100,
102
],
[
93,
103
],
[
103,
104
],
[
103,
105
],
[
93,
106
],
[
106,
107
],
[
106,
108
],
[
93,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
114,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
124,
126
],
[
114,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
127,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
137,
139
],
[
127,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
141,
146
],
[
140,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
150,
152
],
[
140,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
154,
159
],
[
153,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
163,
165
],
[
113,
166
],
[
166,
167
],
[
93,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
168,
173
],
[
173,
174
],
[
173,
175
],
[
93,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
176,
181
],
[
181,
182
],
[
181,
183
],
[
93,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
184,
189
],
[
189,
190
],
[
189,
191
],
[
93,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
192,
197
],
[
197,
198
],
[
197,
199
],
[
93,
200
],
[
91,
201
],
[
201,
202
],
[
91,
203
],
[
203,
204
],
[
0,
205
],
[
205,
206
],
[
205,
207
]
]
| [
"import java.util.Scanner;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.List;\n \npublic class Main {\n public static void main(String[] args) {\n // AC,TLE,WA,RE\n Scanner scan = new Scanner(System.in);\n ArrayList<String> list = new ArrayList<String>();\n int N;\n int i = 0; \n while (scan.hasNextLine()) {\n String an = scan.nextLine();\n list.add(an);\n }\n String List[] = list.get(0).split(\" \",0);\n N = Integer.parseInt(List[0]);\n // System.out.println(N);\n String ce[] = new String[N];\n while(i < N){\n ce[i] = list.get(i + 1);\n i++;\n }\n // System.out.println(ce[5]);\n check(ce,N);\n \n scan.close();\n }\n \n public static void check(String[] ce,int n){\n // AC,TLE,WA,RE\n int countA = 0, countT = 0, countW = 0, countR = 0;\n // System.out.println(n);\n int i = 0;\n while(i < n){\n // System.out.println(\"ok\");\n if(ce[i].equals(\"AC\")){\n countA = countA + 1;\n }else if(ce[i].equals(\"TLE\")){\n countT = countT + 1;\n }else if(ce[i].equals(\"WA\")){\n countW = countW + 1;\n }else if(ce[i].equals(\"RE\")){\n countR = countR + 1;\n }\n i++;\n }\n System.out.println(\"AC x \"+countA);\n System.out.println(\"WA x \"+countW);\n System.out.println(\"TLE x \"+countT);\n System.out.println(\"RE x \"+countR);\n return;\n }\n}\n ",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.List;",
"List",
"java.util",
"public class Main {\n public static void main(String[] args) {\n // AC,TLE,WA,RE\n Scanner scan = new Scanner(System.in);\n ArrayList<String> list = new ArrayList<String>();\n int N;\n int i = 0; \n while (scan.hasNextLine()) {\n String an = scan.nextLine();\n list.add(an);\n }\n String List[] = list.get(0).split(\" \",0);\n N = Integer.parseInt(List[0]);\n // System.out.println(N);\n String ce[] = new String[N];\n while(i < N){\n ce[i] = list.get(i + 1);\n i++;\n }\n // System.out.println(ce[5]);\n check(ce,N);\n \n scan.close();\n }\n \n public static void check(String[] ce,int n){\n // AC,TLE,WA,RE\n int countA = 0, countT = 0, countW = 0, countR = 0;\n // System.out.println(n);\n int i = 0;\n while(i < n){\n // System.out.println(\"ok\");\n if(ce[i].equals(\"AC\")){\n countA = countA + 1;\n }else if(ce[i].equals(\"TLE\")){\n countT = countT + 1;\n }else if(ce[i].equals(\"WA\")){\n countW = countW + 1;\n }else if(ce[i].equals(\"RE\")){\n countR = countR + 1;\n }\n i++;\n }\n System.out.println(\"AC x \"+countA);\n System.out.println(\"WA x \"+countW);\n System.out.println(\"TLE x \"+countT);\n System.out.println(\"RE x \"+countR);\n return;\n }\n}",
"Main",
"public static void main(String[] args) {\n // AC,TLE,WA,RE\n Scanner scan = new Scanner(System.in);\n ArrayList<String> list = new ArrayList<String>();\n int N;\n int i = 0; \n while (scan.hasNextLine()) {\n String an = scan.nextLine();\n list.add(an);\n }\n String List[] = list.get(0).split(\" \",0);\n N = Integer.parseInt(List[0]);\n // System.out.println(N);\n String ce[] = new String[N];\n while(i < N){\n ce[i] = list.get(i + 1);\n i++;\n }\n // System.out.println(ce[5]);\n check(ce,N);\n \n scan.close();\n }",
"main",
"{\n // AC,TLE,WA,RE\n Scanner scan = new Scanner(System.in);\n ArrayList<String> list = new ArrayList<String>();\n int N;\n int i = 0; \n while (scan.hasNextLine()) {\n String an = scan.nextLine();\n list.add(an);\n }\n String List[] = list.get(0).split(\" \",0);\n N = Integer.parseInt(List[0]);\n // System.out.println(N);\n String ce[] = new String[N];\n while(i < N){\n ce[i] = list.get(i + 1);\n i++;\n }\n // System.out.println(ce[5]);\n check(ce,N);\n \n scan.close();\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"ArrayList<String> list = new ArrayList<String>();",
"list",
"new ArrayList<String>()",
"int N;",
"N",
"int i = 0;",
"i",
"0",
"while (scan.hasNextLine()) {\n String an = scan.nextLine();\n list.add(an);\n }",
"scan.hasNextLine()",
"scan.hasNextLine",
"scan",
"{\n String an = scan.nextLine();\n list.add(an);\n }",
"String an = scan.nextLine();",
"an",
"scan.nextLine()",
"scan.nextLine",
"scan",
"list.add(an)",
"list.add",
"list",
"an",
"String List[] = list.get(0).split(\" \",0);",
"List",
"list.get(0).split(\" \",0)",
"list.get(0).split",
"list.get(0)",
"list.get",
"list",
"0",
"\" \"",
"0",
"N = Integer.parseInt(List[0])",
"N",
"Integer.parseInt(List[0])",
"Integer.parseInt",
"Integer",
"List[0]",
"List",
"0",
"String ce[] = new String[N];",
"ce",
"new String[N]",
"N",
"while(i < N){\n ce[i] = list.get(i + 1);\n i++;\n }",
"i < N",
"i",
"N",
"{\n ce[i] = list.get(i + 1);\n i++;\n }",
"ce[i] = list.get(i + 1)",
"ce[i]",
"ce",
"i",
"list.get(i + 1)",
"list.get",
"list",
"i + 1",
"i",
"1",
"i++",
"i",
"check(ce,N)",
"check",
"ce",
"N",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public static void check(String[] ce,int n){\n // AC,TLE,WA,RE\n int countA = 0, countT = 0, countW = 0, countR = 0;\n // System.out.println(n);\n int i = 0;\n while(i < n){\n // System.out.println(\"ok\");\n if(ce[i].equals(\"AC\")){\n countA = countA + 1;\n }else if(ce[i].equals(\"TLE\")){\n countT = countT + 1;\n }else if(ce[i].equals(\"WA\")){\n countW = countW + 1;\n }else if(ce[i].equals(\"RE\")){\n countR = countR + 1;\n }\n i++;\n }\n System.out.println(\"AC x \"+countA);\n System.out.println(\"WA x \"+countW);\n System.out.println(\"TLE x \"+countT);\n System.out.println(\"RE x \"+countR);\n return;\n }",
"check",
"{\n // AC,TLE,WA,RE\n int countA = 0, countT = 0, countW = 0, countR = 0;\n // System.out.println(n);\n int i = 0;\n while(i < n){\n // System.out.println(\"ok\");\n if(ce[i].equals(\"AC\")){\n countA = countA + 1;\n }else if(ce[i].equals(\"TLE\")){\n countT = countT + 1;\n }else if(ce[i].equals(\"WA\")){\n countW = countW + 1;\n }else if(ce[i].equals(\"RE\")){\n countR = countR + 1;\n }\n i++;\n }\n System.out.println(\"AC x \"+countA);\n System.out.println(\"WA x \"+countW);\n System.out.println(\"TLE x \"+countT);\n System.out.println(\"RE x \"+countR);\n return;\n }",
"int countA = 0",
"countA",
"0",
"countT = 0",
"countT",
"0",
"countW = 0",
"countW",
"0",
"countR = 0;",
"countR",
"0",
"int i = 0;",
"i",
"0",
"while(i < n){\n // System.out.println(\"ok\");\n if(ce[i].equals(\"AC\")){\n countA = countA + 1;\n }else if(ce[i].equals(\"TLE\")){\n countT = countT + 1;\n }else if(ce[i].equals(\"WA\")){\n countW = countW + 1;\n }else if(ce[i].equals(\"RE\")){\n countR = countR + 1;\n }\n i++;\n }",
"i < n",
"i",
"n",
"{\n // System.out.println(\"ok\");\n if(ce[i].equals(\"AC\")){\n countA = countA + 1;\n }else if(ce[i].equals(\"TLE\")){\n countT = countT + 1;\n }else if(ce[i].equals(\"WA\")){\n countW = countW + 1;\n }else if(ce[i].equals(\"RE\")){\n countR = countR + 1;\n }\n i++;\n }",
"if(ce[i].equals(\"AC\")){\n countA = countA + 1;\n }else if(ce[i].equals(\"TLE\")){\n countT = countT + 1;\n }else if(ce[i].equals(\"WA\")){\n countW = countW + 1;\n }else if(ce[i].equals(\"RE\")){\n countR = countR + 1;\n }",
"ce[i].equals(\"AC\")",
"ce[i].equals",
"ce[i]",
"ce",
"i",
"\"AC\"",
"{\n countA = countA + 1;\n }",
"countA = countA + 1",
"countA",
"countA + 1",
"countA",
"1",
"if(ce[i].equals(\"TLE\")){\n countT = countT + 1;\n }else if(ce[i].equals(\"WA\")){\n countW = countW + 1;\n }else if(ce[i].equals(\"RE\")){\n countR = countR + 1;\n }",
"ce[i].equals(\"TLE\")",
"ce[i].equals",
"ce[i]",
"ce",
"i",
"\"TLE\"",
"{\n countT = countT + 1;\n }",
"countT = countT + 1",
"countT",
"countT + 1",
"countT",
"1",
"if(ce[i].equals(\"WA\")){\n countW = countW + 1;\n }else if(ce[i].equals(\"RE\")){\n countR = countR + 1;\n }",
"ce[i].equals(\"WA\")",
"ce[i].equals",
"ce[i]",
"ce",
"i",
"\"WA\"",
"{\n countW = countW + 1;\n }",
"countW = countW + 1",
"countW",
"countW + 1",
"countW",
"1",
"if(ce[i].equals(\"RE\")){\n countR = countR + 1;\n }",
"ce[i].equals(\"RE\")",
"ce[i].equals",
"ce[i]",
"ce",
"i",
"\"RE\"",
"{\n countR = countR + 1;\n }",
"countR = countR + 1",
"countR",
"countR + 1",
"countR",
"1",
"i++",
"i",
"System.out.println(\"AC x \"+countA)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \"+countA",
"\"AC x \"",
"countA",
"System.out.println(\"WA x \"+countW)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \"+countW",
"\"WA x \"",
"countW",
"System.out.println(\"TLE x \"+countT)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \"+countT",
"\"TLE x \"",
"countT",
"System.out.println(\"RE x \"+countR)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \"+countR",
"\"RE x \"",
"countR",
"return;",
"String[] ce",
"ce",
"int n",
"n",
"public class Main {\n public static void main(String[] args) {\n // AC,TLE,WA,RE\n Scanner scan = new Scanner(System.in);\n ArrayList<String> list = new ArrayList<String>();\n int N;\n int i = 0; \n while (scan.hasNextLine()) {\n String an = scan.nextLine();\n list.add(an);\n }\n String List[] = list.get(0).split(\" \",0);\n N = Integer.parseInt(List[0]);\n // System.out.println(N);\n String ce[] = new String[N];\n while(i < N){\n ce[i] = list.get(i + 1);\n i++;\n }\n // System.out.println(ce[5]);\n check(ce,N);\n \n scan.close();\n }\n \n public static void check(String[] ce,int n){\n // AC,TLE,WA,RE\n int countA = 0, countT = 0, countW = 0, countR = 0;\n // System.out.println(n);\n int i = 0;\n while(i < n){\n // System.out.println(\"ok\");\n if(ce[i].equals(\"AC\")){\n countA = countA + 1;\n }else if(ce[i].equals(\"TLE\")){\n countT = countT + 1;\n }else if(ce[i].equals(\"WA\")){\n countW = countW + 1;\n }else if(ce[i].equals(\"RE\")){\n countR = countR + 1;\n }\n i++;\n }\n System.out.println(\"AC x \"+countA);\n System.out.println(\"WA x \"+countW);\n System.out.println(\"TLE x \"+countT);\n System.out.println(\"RE x \"+countR);\n return;\n }\n}",
"public class Main {\n public static void main(String[] args) {\n // AC,TLE,WA,RE\n Scanner scan = new Scanner(System.in);\n ArrayList<String> list = new ArrayList<String>();\n int N;\n int i = 0; \n while (scan.hasNextLine()) {\n String an = scan.nextLine();\n list.add(an);\n }\n String List[] = list.get(0).split(\" \",0);\n N = Integer.parseInt(List[0]);\n // System.out.println(N);\n String ce[] = new String[N];\n while(i < N){\n ce[i] = list.get(i + 1);\n i++;\n }\n // System.out.println(ce[5]);\n check(ce,N);\n \n scan.close();\n }\n \n public static void check(String[] ce,int n){\n // AC,TLE,WA,RE\n int countA = 0, countT = 0, countW = 0, countR = 0;\n // System.out.println(n);\n int i = 0;\n while(i < n){\n // System.out.println(\"ok\");\n if(ce[i].equals(\"AC\")){\n countA = countA + 1;\n }else if(ce[i].equals(\"TLE\")){\n countT = countT + 1;\n }else if(ce[i].equals(\"WA\")){\n countW = countW + 1;\n }else if(ce[i].equals(\"RE\")){\n countR = countR + 1;\n }\n i++;\n }\n System.out.println(\"AC x \"+countA);\n System.out.println(\"WA x \"+countW);\n System.out.println(\"TLE x \"+countT);\n System.out.println(\"RE x \"+countR);\n return;\n }\n}",
"Main"
]
| import java.util.Scanner;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class Main {
public static void main(String[] args) {
// AC,TLE,WA,RE
Scanner scan = new Scanner(System.in);
ArrayList<String> list = new ArrayList<String>();
int N;
int i = 0;
while (scan.hasNextLine()) {
String an = scan.nextLine();
list.add(an);
}
String List[] = list.get(0).split(" ",0);
N = Integer.parseInt(List[0]);
// System.out.println(N);
String ce[] = new String[N];
while(i < N){
ce[i] = list.get(i + 1);
i++;
}
// System.out.println(ce[5]);
check(ce,N);
scan.close();
}
public static void check(String[] ce,int n){
// AC,TLE,WA,RE
int countA = 0, countT = 0, countW = 0, countR = 0;
// System.out.println(n);
int i = 0;
while(i < n){
// System.out.println("ok");
if(ce[i].equals("AC")){
countA = countA + 1;
}else if(ce[i].equals("TLE")){
countT = countT + 1;
}else if(ce[i].equals("WA")){
countW = countW + 1;
}else if(ce[i].equals("RE")){
countR = countR + 1;
}
i++;
}
System.out.println("AC x "+countA);
System.out.println("WA x "+countW);
System.out.println("TLE x "+countT);
System.out.println("RE x "+countR);
return;
}
}
|
[
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,
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,
4,
18,
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
],
[
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
],
[
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
],
[
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
],
[
8,
108
],
[
108,
109
],
[
109,
110
],
[
6,
111
],
[
111,
112
],
[
0,
113
],
[
113,
114
],
[
113,
115
]
]
| [
"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\n int ac = 0, wa = 0, tle = 0 , re = 0;\n String str;\n for(int i = 0; i < n; i++){\n str = sc.next();\n if(str.equals(\"AC\")){\n ac++;\n }else if(str.equals(\"WA\")){\n wa++;\n }else if(str.equals(\"TLE\")){\n tle++;\n }else{\n re++;\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 sc.close();\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\n int ac = 0, wa = 0, tle = 0 , re = 0;\n String str;\n for(int i = 0; i < n; i++){\n str = sc.next();\n if(str.equals(\"AC\")){\n ac++;\n }else if(str.equals(\"WA\")){\n wa++;\n }else if(str.equals(\"TLE\")){\n tle++;\n }else{\n re++;\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 sc.close();\n\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n\n int ac = 0, wa = 0, tle = 0 , re = 0;\n String str;\n for(int i = 0; i < n; i++){\n str = sc.next();\n if(str.equals(\"AC\")){\n ac++;\n }else if(str.equals(\"WA\")){\n wa++;\n }else if(str.equals(\"TLE\")){\n tle++;\n }else{\n re++;\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 sc.close();\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n\n int ac = 0, wa = 0, tle = 0 , re = 0;\n String str;\n for(int i = 0; i < n; i++){\n str = sc.next();\n if(str.equals(\"AC\")){\n ac++;\n }else if(str.equals(\"WA\")){\n wa++;\n }else if(str.equals(\"TLE\")){\n tle++;\n }else{\n re++;\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 sc.close();\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",
"String str;",
"str",
"for(int i = 0; i < n; i++){\n str = sc.next();\n if(str.equals(\"AC\")){\n ac++;\n }else if(str.equals(\"WA\")){\n wa++;\n }else if(str.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 str = sc.next();\n if(str.equals(\"AC\")){\n ac++;\n }else if(str.equals(\"WA\")){\n wa++;\n }else if(str.equals(\"TLE\")){\n tle++;\n }else{\n re++;\n }\n }",
"{\n str = sc.next();\n if(str.equals(\"AC\")){\n ac++;\n }else if(str.equals(\"WA\")){\n wa++;\n }else if(str.equals(\"TLE\")){\n tle++;\n }else{\n re++;\n }\n }",
"str = sc.next()",
"str",
"sc.next()",
"sc.next",
"sc",
"if(str.equals(\"AC\")){\n ac++;\n }else if(str.equals(\"WA\")){\n wa++;\n }else if(str.equals(\"TLE\")){\n tle++;\n }else{\n re++;\n }",
"str.equals(\"AC\")",
"str.equals",
"str",
"\"AC\"",
"{\n ac++;\n }",
"ac++",
"ac",
"if(str.equals(\"WA\")){\n wa++;\n }else if(str.equals(\"TLE\")){\n tle++;\n }else{\n re++;\n }",
"str.equals(\"WA\")",
"str.equals",
"str",
"\"WA\"",
"{\n wa++;\n }",
"wa++",
"wa",
"if(str.equals(\"TLE\")){\n tle++;\n }else{\n re++;\n }",
"str.equals(\"TLE\")",
"str.equals",
"str",
"\"TLE\"",
"{\n tle++;\n }",
"tle++",
"tle",
"{\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",
"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\n int ac = 0, wa = 0, tle = 0 , re = 0;\n String str;\n for(int i = 0; i < n; i++){\n str = sc.next();\n if(str.equals(\"AC\")){\n ac++;\n }else if(str.equals(\"WA\")){\n wa++;\n }else if(str.equals(\"TLE\")){\n tle++;\n }else{\n re++;\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 sc.close();\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\n int ac = 0, wa = 0, tle = 0 , re = 0;\n String str;\n for(int i = 0; i < n; i++){\n str = sc.next();\n if(str.equals(\"AC\")){\n ac++;\n }else if(str.equals(\"WA\")){\n wa++;\n }else if(str.equals(\"TLE\")){\n tle++;\n }else{\n re++;\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 sc.close();\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 ac = 0, wa = 0, tle = 0 , re = 0;
String str;
for(int i = 0; i < n; i++){
str = sc.next();
if(str.equals("AC")){
ac++;
}else if(str.equals("WA")){
wa++;
}else if(str.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);
sc.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,
4,
18,
13,
42,
2,
13,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
0,
13,
17,
14,
4,
18,
13,
17,
0,
13,
17,
14,
4,
18,
13,
17,
0,
13,
17,
0,
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
],
[
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
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
66,
67
],
[
66,
68
],
[
36,
69
],
[
69,
70
],
[
8,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
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
],
[
6,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
]
| [
"//package com.company;\n\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 tc=sc.nextInt();\n int ac=0,wa=0,tle=0,re=0;\n sc.nextLine();\n while(tc>0){\n String s=sc.nextLine();\n if(s.equals(\"AC\"))ac+=1;\n else if(s.equals(\"WA\"))wa+=1;\n else if (s.equals(\"TLE\"))tle+=1;\n else re+=1;\n tc--;\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.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int tc=sc.nextInt();\n int ac=0,wa=0,tle=0,re=0;\n sc.nextLine();\n while(tc>0){\n String s=sc.nextLine();\n if(s.equals(\"AC\"))ac+=1;\n else if(s.equals(\"WA\"))wa+=1;\n else if (s.equals(\"TLE\"))tle+=1;\n else re+=1;\n tc--;\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 Scanner sc=new Scanner(System.in);\n int tc=sc.nextInt();\n int ac=0,wa=0,tle=0,re=0;\n sc.nextLine();\n while(tc>0){\n String s=sc.nextLine();\n if(s.equals(\"AC\"))ac+=1;\n else if(s.equals(\"WA\"))wa+=1;\n else if (s.equals(\"TLE\"))tle+=1;\n else re+=1;\n tc--;\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 tc=sc.nextInt();\n int ac=0,wa=0,tle=0,re=0;\n sc.nextLine();\n while(tc>0){\n String s=sc.nextLine();\n if(s.equals(\"AC\"))ac+=1;\n else if(s.equals(\"WA\"))wa+=1;\n else if (s.equals(\"TLE\"))tle+=1;\n else re+=1;\n tc--;\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 tc=sc.nextInt();",
"tc",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ac=0",
"ac",
"0",
"wa=0",
"wa",
"0",
"tle=0",
"tle",
"0",
"re=0;",
"re",
"0",
"sc.nextLine()",
"sc.nextLine",
"sc",
"while(tc>0){\n String s=sc.nextLine();\n if(s.equals(\"AC\"))ac+=1;\n else if(s.equals(\"WA\"))wa+=1;\n else if (s.equals(\"TLE\"))tle+=1;\n else re+=1;\n tc--;\n }",
"tc>0",
"tc",
"0",
"{\n String s=sc.nextLine();\n if(s.equals(\"AC\"))ac+=1;\n else if(s.equals(\"WA\"))wa+=1;\n else if (s.equals(\"TLE\"))tle+=1;\n else re+=1;\n tc--;\n }",
"String s=sc.nextLine();",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if(s.equals(\"AC\"))ac+=1;\n else if(s.equals(\"WA\"))wa+=1;\n else if (s.equals(\"TLE\"))tle+=1;\n else re+=1;",
"s.equals(\"AC\")",
"s.equals",
"s",
"\"AC\"",
"ac+=1",
"ac",
"1",
"if(s.equals(\"WA\"))wa+=1;\n else if (s.equals(\"TLE\"))tle+=1;\n else re+=1;",
"s.equals(\"WA\")",
"s.equals",
"s",
"\"WA\"",
"wa+=1",
"wa",
"1",
"if (s.equals(\"TLE\"))tle+=1;\n else re+=1;",
"s.equals(\"TLE\")",
"s.equals",
"s",
"\"TLE\"",
"tle+=1",
"tle",
"1",
"re+=1",
"re",
"1",
"tc--",
"tc",
"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 public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int tc=sc.nextInt();\n int ac=0,wa=0,tle=0,re=0;\n sc.nextLine();\n while(tc>0){\n String s=sc.nextLine();\n if(s.equals(\"AC\"))ac+=1;\n else if(s.equals(\"WA\"))wa+=1;\n else if (s.equals(\"TLE\"))tle+=1;\n else re+=1;\n tc--;\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\n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int tc=sc.nextInt();\n int ac=0,wa=0,tle=0,re=0;\n sc.nextLine();\n while(tc>0){\n String s=sc.nextLine();\n if(s.equals(\"AC\"))ac+=1;\n else if(s.equals(\"WA\"))wa+=1;\n else if (s.equals(\"TLE\"))tle+=1;\n else re+=1;\n tc--;\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"
]
| //package com.company;
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int tc=sc.nextInt();
int ac=0,wa=0,tle=0,re=0;
sc.nextLine();
while(tc>0){
String s=sc.nextLine();
if(s.equals("AC"))ac+=1;
else if(s.equals("WA"))wa+=1;
else if (s.equals("TLE"))tle+=1;
else re+=1;
tc--;
}
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,
17,
4,
18,
13,
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,
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,
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
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
24,
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
],
[
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
],
[
11,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
85,
87
],
[
11,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
95,
97
],
[
11,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
105,
107
],
[
11,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
115,
117
],
[
9,
118
],
[
118,
119
],
[
0,
120
],
[
120,
121
],
[
120,
122
]
]
| [
"import java.util.Scanner;\nimport java.util.Arrays;\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int [] a = new int[4];\n Arrays.fill(a,0);\n for(int i = 0; i<N; i++){\n String S = sc.next();\n if(S.equals(\"AC\")) a[0]++;\n else if(S.equals(\"WA\")) a[1]++;\n else if(S.equals(\"TLE\")) a[2]++;\n else a[3]++;\n } \n System.out.println(\"AC x \"+ a[0]);\n System.out.println(\"WA x \"+ a[1]);\n System.out.println(\"TLE x \"+ a[2]);\n System.out.println(\"RE x \"+ a[3]);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Arrays;",
"Arrays",
"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 [] a = new int[4];\n Arrays.fill(a,0);\n for(int i = 0; i<N; i++){\n String S = sc.next();\n if(S.equals(\"AC\")) a[0]++;\n else if(S.equals(\"WA\")) a[1]++;\n else if(S.equals(\"TLE\")) a[2]++;\n else a[3]++;\n } \n System.out.println(\"AC x \"+ a[0]);\n System.out.println(\"WA x \"+ a[1]);\n System.out.println(\"TLE x \"+ a[2]);\n System.out.println(\"RE x \"+ a[3]);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int [] a = new int[4];\n Arrays.fill(a,0);\n for(int i = 0; i<N; i++){\n String S = sc.next();\n if(S.equals(\"AC\")) a[0]++;\n else if(S.equals(\"WA\")) a[1]++;\n else if(S.equals(\"TLE\")) a[2]++;\n else a[3]++;\n } \n System.out.println(\"AC x \"+ a[0]);\n System.out.println(\"WA x \"+ a[1]);\n System.out.println(\"TLE x \"+ a[2]);\n System.out.println(\"RE x \"+ a[3]);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int [] a = new int[4];\n Arrays.fill(a,0);\n for(int i = 0; i<N; i++){\n String S = sc.next();\n if(S.equals(\"AC\")) a[0]++;\n else if(S.equals(\"WA\")) a[1]++;\n else if(S.equals(\"TLE\")) a[2]++;\n else a[3]++;\n } \n System.out.println(\"AC x \"+ a[0]);\n System.out.println(\"WA x \"+ a[1]);\n System.out.println(\"TLE x \"+ a[2]);\n System.out.println(\"RE x \"+ a[3]);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int [] a = new int[4];",
"a",
"new int[4]",
"4",
"Arrays.fill(a,0)",
"Arrays.fill",
"Arrays",
"a",
"0",
"for(int i = 0; i<N; i++){\n String S = sc.next();\n if(S.equals(\"AC\")) a[0]++;\n else if(S.equals(\"WA\")) a[1]++;\n else if(S.equals(\"TLE\")) a[2]++;\n else a[3]++;\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\")) a[0]++;\n else if(S.equals(\"WA\")) a[1]++;\n else if(S.equals(\"TLE\")) a[2]++;\n else a[3]++;\n }",
"{\n String S = sc.next();\n if(S.equals(\"AC\")) a[0]++;\n else if(S.equals(\"WA\")) a[1]++;\n else if(S.equals(\"TLE\")) a[2]++;\n else a[3]++;\n }",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"if(S.equals(\"AC\")) a[0]++;\n else if(S.equals(\"WA\")) a[1]++;\n else if(S.equals(\"TLE\")) a[2]++;\n else a[3]++;",
"S.equals(\"AC\")",
"S.equals",
"S",
"\"AC\"",
"a[0]++",
"a[0]",
"a",
"0",
"if(S.equals(\"WA\")) a[1]++;\n else if(S.equals(\"TLE\")) a[2]++;\n else a[3]++;",
"S.equals(\"WA\")",
"S.equals",
"S",
"\"WA\"",
"a[1]++",
"a[1]",
"a",
"1",
"if(S.equals(\"TLE\")) a[2]++;\n else a[3]++;",
"S.equals(\"TLE\")",
"S.equals",
"S",
"\"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",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int [] a = new int[4];\n Arrays.fill(a,0);\n for(int i = 0; i<N; i++){\n String S = sc.next();\n if(S.equals(\"AC\")) a[0]++;\n else if(S.equals(\"WA\")) a[1]++;\n else if(S.equals(\"TLE\")) a[2]++;\n else a[3]++;\n } \n System.out.println(\"AC x \"+ a[0]);\n System.out.println(\"WA x \"+ a[1]);\n System.out.println(\"TLE x \"+ a[2]);\n System.out.println(\"RE x \"+ a[3]);\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 [] a = new int[4];\n Arrays.fill(a,0);\n for(int i = 0; i<N; i++){\n String S = sc.next();\n if(S.equals(\"AC\")) a[0]++;\n else if(S.equals(\"WA\")) a[1]++;\n else if(S.equals(\"TLE\")) a[2]++;\n else a[3]++;\n } \n System.out.println(\"AC x \"+ a[0]);\n System.out.println(\"WA x \"+ a[1]);\n System.out.println(\"TLE x \"+ a[2]);\n System.out.println(\"RE x \"+ a[3]);\n }\n}",
"Main"
]
| import java.util.Scanner;
import java.util.Arrays;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int [] a = new int[4];
Arrays.fill(a,0);
for(int i = 0; i<N; i++){
String S = sc.next();
if(S.equals("AC")) a[0]++;
else if(S.equals("WA")) a[1]++;
else if(S.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]);
}
} |
[
7,
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,
20,
17,
4,
18,
13,
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,
41,
13,
17,
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,
40,
18,
13,
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,
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
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
28,
32
],
[
20,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
20,
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
],
[
50,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
59,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
59,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
59,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
50,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
20,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
99,
101
],
[
20,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
109,
111
],
[
20,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
119,
121
],
[
20,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
129,
131
],
[
18,
132
],
[
132,
133
],
[
16,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
134,
138
],
[
138,
139
],
[
134,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
134,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
150,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
149,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
159,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
148,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
134,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
178,
181
],
[
181,
182
],
[
134,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
187,
190
],
[
190,
191
],
[
134,
192
],
[
192,
193
],
[
192,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
196,
199
],
[
199,
200
],
[
134,
201
],
[
201,
202
],
[
201,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
203,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
207,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
217,
218
],
[
218,
219
],
[
203,
220
],
[
220,
221
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\nimport java.util.StringTokenizer;\n\nclass Main\n{\n static class FastReader\n {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt()\n {\n return Integer.parseInt(next());\n }\n\n long nextLong()\n {\n return Long.parseLong(next());\n }\n\n double nextDouble()\n {\n return Double.parseDouble(next());\n }\n\n String nextLine()\n {\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n public static void main(String[] args)\n {\n FastReader sc = new FastReader();\n int ret[] = new int[4];\n Arrays.fill(ret,0);\n\n int n = sc.nextInt();\n for(int i=0;i<n;i++){\n String c = sc.next();\n int index = 0;\n switch (c) {\n case \"AC\":\n index = 0;\n break;\n case \"WA\":\n index = 1;\n break;\n case \"TLE\":\n index = 2;\n break;\n case \"RE\":\n index = 3;\n }\n ret[index]++;\n }\n System.out.println(\"AC x \" + ret[0]);\n System.out.println(\"WA x \" + ret[1]);\n System.out.println(\"TLE x \" + ret[2]);\n System.out.println(\"RE x \" + ret[3]);\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.Arrays;",
"Arrays",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"class Main\n{\n static class FastReader\n {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt()\n {\n return Integer.parseInt(next());\n }\n\n long nextLong()\n {\n return Long.parseLong(next());\n }\n\n double nextDouble()\n {\n return Double.parseDouble(next());\n }\n\n String nextLine()\n {\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n public static void main(String[] args)\n {\n FastReader sc = new FastReader();\n int ret[] = new int[4];\n Arrays.fill(ret,0);\n\n int n = sc.nextInt();\n for(int i=0;i<n;i++){\n String c = sc.next();\n int index = 0;\n switch (c) {\n case \"AC\":\n index = 0;\n break;\n case \"WA\":\n index = 1;\n break;\n case \"TLE\":\n index = 2;\n break;\n case \"RE\":\n index = 3;\n }\n ret[index]++;\n }\n System.out.println(\"AC x \" + ret[0]);\n System.out.println(\"WA x \" + ret[1]);\n System.out.println(\"TLE x \" + ret[2]);\n System.out.println(\"RE x \" + ret[3]);\n\n }\n}",
"Main",
"public static void main(String[] args)\n {\n FastReader sc = new FastReader();\n int ret[] = new int[4];\n Arrays.fill(ret,0);\n\n int n = sc.nextInt();\n for(int i=0;i<n;i++){\n String c = sc.next();\n int index = 0;\n switch (c) {\n case \"AC\":\n index = 0;\n break;\n case \"WA\":\n index = 1;\n break;\n case \"TLE\":\n index = 2;\n break;\n case \"RE\":\n index = 3;\n }\n ret[index]++;\n }\n System.out.println(\"AC x \" + ret[0]);\n System.out.println(\"WA x \" + ret[1]);\n System.out.println(\"TLE x \" + ret[2]);\n System.out.println(\"RE x \" + ret[3]);\n\n }",
"main",
"{\n FastReader sc = new FastReader();\n int ret[] = new int[4];\n Arrays.fill(ret,0);\n\n int n = sc.nextInt();\n for(int i=0;i<n;i++){\n String c = sc.next();\n int index = 0;\n switch (c) {\n case \"AC\":\n index = 0;\n break;\n case \"WA\":\n index = 1;\n break;\n case \"TLE\":\n index = 2;\n break;\n case \"RE\":\n index = 3;\n }\n ret[index]++;\n }\n System.out.println(\"AC x \" + ret[0]);\n System.out.println(\"WA x \" + ret[1]);\n System.out.println(\"TLE x \" + ret[2]);\n System.out.println(\"RE x \" + ret[3]);\n\n }",
"FastReader sc = new FastReader();",
"sc",
"new FastReader()",
"int ret[] = new int[4];",
"ret",
"new int[4]",
"4",
"Arrays.fill(ret,0)",
"Arrays.fill",
"Arrays",
"ret",
"0",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=0;i<n;i++){\n String c = sc.next();\n int index = 0;\n switch (c) {\n case \"AC\":\n index = 0;\n break;\n case \"WA\":\n index = 1;\n break;\n case \"TLE\":\n index = 2;\n break;\n case \"RE\":\n index = 3;\n }\n ret[index]++;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String c = sc.next();\n int index = 0;\n switch (c) {\n case \"AC\":\n index = 0;\n break;\n case \"WA\":\n index = 1;\n break;\n case \"TLE\":\n index = 2;\n break;\n case \"RE\":\n index = 3;\n }\n ret[index]++;\n }",
"{\n String c = sc.next();\n int index = 0;\n switch (c) {\n case \"AC\":\n index = 0;\n break;\n case \"WA\":\n index = 1;\n break;\n case \"TLE\":\n index = 2;\n break;\n case \"RE\":\n index = 3;\n }\n ret[index]++;\n }",
"String c = sc.next();",
"c",
"sc.next()",
"sc.next",
"sc",
"int index = 0;",
"index",
"0",
"switch (c) {\n case \"AC\":\n index = 0;\n break;\n case \"WA\":\n index = 1;\n break;\n case \"TLE\":\n index = 2;\n break;\n case \"RE\":\n index = 3;\n }",
"c",
"case \"AC\":",
"\"AC\"",
"case \"AC\":",
"index = 0",
"index",
"0",
"break;",
"case \"WA\":",
"\"WA\"",
"case \"WA\":",
"index = 1",
"index",
"1",
"break;",
"case \"TLE\":",
"\"TLE\"",
"case \"TLE\":",
"index = 2",
"index",
"2",
"break;",
"case \"RE\":",
"\"RE\"",
"case \"RE\":",
"index = 3",
"index",
"3",
"ret[index]++",
"ret[index]",
"ret",
"index",
"System.out.println(\"AC x \" + ret[0])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + ret[0]",
"\"AC x \"",
"ret[0]",
"ret",
"0",
"System.out.println(\"WA x \" + ret[1])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + ret[1]",
"\"WA x \"",
"ret[1]",
"ret",
"1",
"System.out.println(\"TLE x \" + ret[2])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + ret[2]",
"\"TLE x \"",
"ret[2]",
"ret",
"2",
"System.out.println(\"RE x \" + ret[3])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + ret[3]",
"\"RE x \"",
"ret[3]",
"ret",
"3",
"String[] args",
"args",
"static class FastReader\n {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader()\n {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next()\n {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt()\n {\n return Integer.parseInt(next());\n }\n\n long nextLong()\n {\n return Long.parseLong(next());\n }\n\n double nextDouble()\n {\n return Double.parseDouble(next());\n }\n\n String nextLine()\n {\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }\n }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader()\n {\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 {\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }",
"try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }",
"catch (IOException e)\n {\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 {\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 {\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 {\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 {\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try\n {\n str = br.readLine();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }",
"catch (IOException e)\n {\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.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.StringTokenizer;
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 sc = new FastReader();
int ret[] = new int[4];
Arrays.fill(ret,0);
int n = sc.nextInt();
for(int i=0;i<n;i++){
String c = sc.next();
int index = 0;
switch (c) {
case "AC":
index = 0;
break;
case "WA":
index = 1;
break;
case "TLE":
index = 2;
break;
case "RE":
index = 3;
}
ret[index]++;
}
System.out.println("AC x " + ret[0]);
System.out.println("WA x " + ret[1]);
System.out.println("TLE x " + ret[2]);
System.out.println("RE x " + ret[3]);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
41,
13,
41,
13,
17,
41,
13,
39,
17,
40,
17,
17,
17,
41,
13,
39,
17,
17,
40,
17,
17,
41,
13,
41,
13,
39,
40,
17,
17,
40,
17,
17,
41,
13,
39,
17,
17,
40,
17,
40,
17,
41,
13,
41,
13,
41,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
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,
14,
4,
18,
13,
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,
14,
2,
2,
2,
2,
13,
17,
2,
13,
13,
2,
13,
17,
2,
13,
13,
30,
29,
17,
29,
17,
23,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
2,
18,
13,
13,
13,
41,
13,
2,
18,
13,
13,
13,
14,
2,
4,
13,
13,
13,
40,
18,
18,
13,
13,
13,
30,
40,
13,
0,
18,
18,
13,
13,
13,
17,
4,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
2,
2,
13,
17,
17,
23,
13,
12,
13,
30,
41,
13,
13,
0,
13,
13,
0,
13,
13,
23,
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
],
[
367,
11
],
[
367,
12
],
[
12,
13
],
[
12,
14
],
[
367,
15
],
[
15,
16
],
[
15,
17
],
[
367,
18
],
[
18,
19
],
[
367,
20
],
[
20,
21
],
[
20,
22
],
[
367,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
25,
29
],
[
25,
30
],
[
367,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
33,
35
],
[
33,
36
],
[
36,
37
],
[
33,
38
],
[
367,
39
],
[
39,
40
],
[
367,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
43,
47
],
[
47,
48
],
[
43,
49
],
[
367,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
52,
55
],
[
55,
56
],
[
52,
57
],
[
57,
58
],
[
367,
59
],
[
59,
60
],
[
367,
61
],
[
61,
62
],
[
367,
63
],
[
63,
64
],
[
367,
65
],
[
65,
66
],
[
65,
67
],
[
367,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
70,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
76,
80
],
[
70,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
81,
85
],
[
70,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
86,
90
],
[
70,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
91,
95
],
[
70,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
96,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
101,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
107,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
112,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
116,
121
],
[
70,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
127,
130
],
[
70,
131
],
[
131,
132
],
[
132,
133
],
[
131,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
137,
138
],
[
136,
139
],
[
70,
140
],
[
140,
141
],
[
141,
142
],
[
140,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
145,
148
],
[
70,
149
],
[
149,
150
],
[
150,
151
],
[
149,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
154,
157
],
[
70,
158
],
[
158,
159
],
[
159,
160
],
[
68,
161
],
[
161,
162
],
[
367,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
166,
167
],
[
169,
168
],
[
176,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
169,
173
],
[
173,
174
],
[
173,
175
],
[
176,
176
],
[
176,
177
],
[
176,
178
],
[
169,
179
],
[
179,
180
],
[
179,
181
],
[
166,
182
],
[
182,
183
],
[
183,
184
],
[
165,
185
],
[
185,
186
],
[
163,
187
],
[
187,
188
],
[
163,
189
],
[
189,
190
],
[
367,
191
],
[
191,
192
],
[
191,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
194,
199
],
[
199,
200
],
[
199,
201
],
[
194,
202
],
[
202,
203
],
[
203,
204
],
[
194,
205
],
[
206,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
209,
213
],
[
206,
214
],
[
214,
215
],
[
214,
216
],
[
216,
217
],
[
217,
218
],
[
217,
219
],
[
216,
220
],
[
206,
221
],
[
221,
222
],
[
222,
223
],
[
223,
224
],
[
223,
225
],
[
223,
226
],
[
222,
227
],
[
227,
228
],
[
228,
229
],
[
229,
230
],
[
229,
231
],
[
228,
232
],
[
221,
233
],
[
233,
234
],
[
234,
235
],
[
233,
236
],
[
236,
237
],
[
237,
238
],
[
238,
239
],
[
238,
240
],
[
237,
241
],
[
236,
242
],
[
233,
243
],
[
243,
244
],
[
243,
245
],
[
243,
246
],
[
191,
247
],
[
247,
248
],
[
191,
249
],
[
249,
250
],
[
367,
251
],
[
251,
252
],
[
251,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
256,
258
],
[
255,
259
],
[
251,
260
],
[
260,
261
],
[
367,
262
],
[
262,
263
],
[
262,
264
],
[
264,
265
],
[
265,
266
],
[
265,
267
],
[
264,
268
],
[
268,
269
],
[
268,
270
],
[
264,
271
],
[
271,
272
],
[
271,
273
],
[
262,
274
],
[
274,
275
],
[
262,
276
],
[
276,
277
],
[
367,
278
],
[
278,
279
],
[
278,
280
],
[
280,
281
],
[
278,
282
],
[
282,
283
],
[
278,
284
],
[
284,
285
],
[
284,
286
],
[
286,
287
],
[
287,
288
],
[
287,
289
],
[
278,
290
],
[
290,
291
],
[
290,
292
],
[
292,
293
],
[
293,
294
],
[
294,
295
],
[
295,
296
],
[
295,
297
],
[
294,
298
],
[
298,
299
],
[
299,
300
],
[
300,
301
],
[
293,
302
],
[
302,
303
],
[
303,
304
],
[
304,
305
],
[
304,
306
],
[
306,
307
],
[
307,
308
],
[
308,
309
],
[
303,
310
],
[
310,
311
],
[
311,
312
],
[
311,
313
],
[
292,
314
],
[
314,
315
],
[
315,
316
],
[
316,
317
],
[
278,
318
],
[
318,
319
],
[
318,
320
],
[
320,
321
],
[
321,
322
],
[
322,
323
],
[
323,
324
],
[
322,
325
],
[
325,
326
],
[
278,
327
],
[
327,
328
],
[
327,
329
],
[
329,
330
],
[
330,
331
],
[
331,
332
],
[
332,
333
],
[
331,
334
],
[
334,
335
],
[
278,
336
],
[
336,
337
],
[
336,
338
],
[
338,
339
],
[
339,
340
],
[
340,
341
],
[
341,
342
],
[
340,
343
],
[
343,
344
],
[
278,
345
],
[
345,
346
],
[
345,
347
],
[
347,
348
],
[
348,
349
],
[
348,
350
],
[
347,
351
],
[
351,
352
],
[
352,
353
],
[
352,
354
],
[
354,
355
],
[
355,
356
],
[
356,
357
],
[
351,
358
],
[
358,
359
],
[
359,
360
],
[
359,
361
],
[
361,
362
],
[
362,
363
],
[
347,
364
],
[
364,
365
],
[
0,
366
],
[
366,
367
],
[
366,
368
]
]
| [
"import java.io.*;\nimport java.math.*;\nimport java.util.*;\n\n\n\n\n\npublic class Main {\n\n static MyScanner in = new MyScanner();\n static PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n int N;\n static int max = 200001;\n static int [] dr = {1,-1,0,0};\n static int [] dc={0,0,-1,1};\n static boolean [][] grid;\n static int [] bishopr = {-1,1,-1,1};\n static int [] bishopc = {1,1,-1,-1};\n static long H,W,cnt;\n static HashMap<String,Integer> map = new HashMap<>();\n public static void main(String args[]) throws IOException {\n int N = in.nextInt();\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 n= in.next();\n if(map.containsKey(n))\n map.replace(n, map.get(n)+1);\n \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.flush();\n }\n static boolean isValid (int r, int c){\n if(r>=0&&r<H&&c>=0&&c<W){\n return true;\n }\n return false;\n }\n private static void dfs(int r, int c) {\n for(int i=0;i<4;i++){\n int nr = bishopr[i] +r;\n int nc = bishopc[i]+c;\n if(isValid(nr, nc)&&!grid[nr][nc]){\n cnt++;\n grid[nr][nc] = true;\n dfs(nr, nc);\n }\n }\n }\n\n static boolean isEven(long a) {\n return (a&1)==0;\n }\n static void swap (int a, int b){\n\n int temmp = b;\n b=a;\n a = temmp;\n }\n \n\n public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public MyScanner() {\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 }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.math.*;",
"math.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n static MyScanner in = new MyScanner();\n static PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n int N;\n static int max = 200001;\n static int [] dr = {1,-1,0,0};\n static int [] dc={0,0,-1,1};\n static boolean [][] grid;\n static int [] bishopr = {-1,1,-1,1};\n static int [] bishopc = {1,1,-1,-1};\n static long H,W,cnt;\n static HashMap<String,Integer> map = new HashMap<>();\n public static void main(String args[]) throws IOException {\n int N = in.nextInt();\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 n= in.next();\n if(map.containsKey(n))\n map.replace(n, map.get(n)+1);\n \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.flush();\n }\n static boolean isValid (int r, int c){\n if(r>=0&&r<H&&c>=0&&c<W){\n return true;\n }\n return false;\n }\n private static void dfs(int r, int c) {\n for(int i=0;i<4;i++){\n int nr = bishopr[i] +r;\n int nc = bishopc[i]+c;\n if(isValid(nr, nc)&&!grid[nr][nc]){\n cnt++;\n grid[nr][nc] = true;\n dfs(nr, nc);\n }\n }\n }\n\n static boolean isEven(long a) {\n return (a&1)==0;\n }\n static void swap (int a, int b){\n\n int temmp = b;\n b=a;\n a = temmp;\n }\n \n\n public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public MyScanner() {\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 }\n}",
"Main",
"static MyScanner in = new MyScanner();",
"in",
"new MyScanner()",
"static PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));",
"out",
"new PrintWriter(new OutputStreamWriter(System.out))",
"int N;",
"N",
"static int max = 200001;",
"max",
"200001",
"static int [] dr = {1,-1,0,0};",
"dr",
"{1,-1,0,0}",
"1",
"-1",
"1",
"0",
"0",
"static int [] dc={0,0,-1,1};",
"dc",
"{0,0,-1,1}",
"0",
"0",
"-1",
"1",
"1",
"static boolean [][] grid;",
"grid",
"static int [] bishopr = {-1,1,-1,1};",
"bishopr",
"{-1,1,-1,1}",
"-1",
"1",
"1",
"-1",
"1",
"1",
"static int [] bishopc = {1,1,-1,-1};",
"bishopc",
"{1,1,-1,-1}",
"1",
"1",
"-1",
"1",
"-1",
"1",
"static long H",
"H",
"W",
"W",
"cnt;",
"cnt",
"static HashMap<String,Integer> map = new HashMap<>();",
"map",
"new HashMap<>()",
"public static void main(String args[]) throws IOException {\n int N = in.nextInt();\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 n= in.next();\n if(map.containsKey(n))\n map.replace(n, map.get(n)+1);\n \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.flush();\n }",
"main",
"{\n int N = in.nextInt();\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 n= in.next();\n if(map.containsKey(n))\n map.replace(n, map.get(n)+1);\n \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.flush();\n }",
"int N = in.nextInt();",
"N",
"in.nextInt()",
"in.nextInt",
"in",
"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 n= in.next();\n if(map.containsKey(n))\n map.replace(n, map.get(n)+1);\n \n }",
"N-->0",
"N--",
"N",
"0",
"{\n String n= in.next();\n if(map.containsKey(n))\n map.replace(n, map.get(n)+1);\n \n }",
"String n= in.next();",
"n",
"in.next()",
"in.next",
"in",
"if(map.containsKey(n))\n map.replace(n, map.get(n)+1);",
"map.containsKey(n)",
"map.containsKey",
"map",
"n",
"map.replace(n, map.get(n)+1)",
"map.replace",
"map",
"n",
"map.get(n)+1",
"map.get(n)",
"map.get",
"map",
"n",
"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.flush()",
"out.flush",
"out",
"String args[]",
"args",
"static boolean isValid (int r, int c){\n if(r>=0&&r<H&&c>=0&&c<W){\n return true;\n }\n return false;\n }",
"isValid",
"{\n if(r>=0&&r<H&&c>=0&&c<W){\n return true;\n }\n return false;\n }",
"if(r>=0&&r<H&&c>=0&&c<W){\n return true;\n }",
"r>=0&&r<H&&c>=0&&c<W",
"c>=0",
"r>=0&&r<H&&c>=0&&c<W",
"r>=0",
"r",
"0",
"r<H",
"r",
"H",
"c>=0",
"c",
"0",
"c<W",
"c",
"W",
"{\n return true;\n }",
"return true;",
"true",
"return false;",
"false",
"int r",
"r",
"int c",
"c",
"private static void dfs(int r, int c) {\n for(int i=0;i<4;i++){\n int nr = bishopr[i] +r;\n int nc = bishopc[i]+c;\n if(isValid(nr, nc)&&!grid[nr][nc]){\n cnt++;\n grid[nr][nc] = true;\n dfs(nr, nc);\n }\n }\n }",
"dfs",
"{\n for(int i=0;i<4;i++){\n int nr = bishopr[i] +r;\n int nc = bishopc[i]+c;\n if(isValid(nr, nc)&&!grid[nr][nc]){\n cnt++;\n grid[nr][nc] = true;\n dfs(nr, nc);\n }\n }\n }",
"for(int i=0;i<4;i++){\n int nr = bishopr[i] +r;\n int nc = bishopc[i]+c;\n if(isValid(nr, nc)&&!grid[nr][nc]){\n cnt++;\n grid[nr][nc] = true;\n dfs(nr, nc);\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n int nr = bishopr[i] +r;\n int nc = bishopc[i]+c;\n if(isValid(nr, nc)&&!grid[nr][nc]){\n cnt++;\n grid[nr][nc] = true;\n dfs(nr, nc);\n }\n }",
"{\n int nr = bishopr[i] +r;\n int nc = bishopc[i]+c;\n if(isValid(nr, nc)&&!grid[nr][nc]){\n cnt++;\n grid[nr][nc] = true;\n dfs(nr, nc);\n }\n }",
"int nr = bishopr[i] +r;",
"nr",
"bishopr[i] +r",
"bishopr[i]",
"bishopr",
"i",
"r",
"int nc = bishopc[i]+c;",
"nc",
"bishopc[i]+c",
"bishopc[i]",
"bishopc",
"i",
"c",
"if(isValid(nr, nc)&&!grid[nr][nc]){\n cnt++;\n grid[nr][nc] = true;\n dfs(nr, nc);\n }",
"isValid(nr, nc)&&!grid[nr][nc]",
"isValid(nr, nc)",
"isValid",
"nr",
"nc",
"!grid[nr][nc]",
"grid[nr][nc]",
"grid[nr]",
"grid",
"nr",
"nc",
"{\n cnt++;\n grid[nr][nc] = true;\n dfs(nr, nc);\n }",
"cnt++",
"cnt",
"grid[nr][nc] = true",
"grid[nr][nc]",
"grid[nr]",
"grid",
"nr",
"nc",
"true",
"dfs(nr, nc)",
"dfs",
"nr",
"nc",
"int r",
"r",
"int c",
"c",
"static boolean isEven(long a) {\n return (a&1)==0;\n }",
"isEven",
"{\n return (a&1)==0;\n }",
"return (a&1)==0;",
"(a&1)==0",
"(a&1)",
"a",
"1",
"0",
"long a",
"a",
"static void swap (int a, int b){\n\n int temmp = b;\n b=a;\n a = temmp;\n }",
"swap",
"{\n\n int temmp = b;\n b=a;\n a = temmp;\n }",
"int temmp = b;",
"temmp",
"b",
"b=a",
"b",
"a",
"a = temmp",
"a",
"temmp",
"int a",
"a",
"int b",
"b",
"public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public MyScanner() {\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 }",
"MyScanner",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"MyScanner",
"{\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",
"public class Main {\n\n static MyScanner in = new MyScanner();\n static PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n int N;\n static int max = 200001;\n static int [] dr = {1,-1,0,0};\n static int [] dc={0,0,-1,1};\n static boolean [][] grid;\n static int [] bishopr = {-1,1,-1,1};\n static int [] bishopc = {1,1,-1,-1};\n static long H,W,cnt;\n static HashMap<String,Integer> map = new HashMap<>();\n public static void main(String args[]) throws IOException {\n int N = in.nextInt();\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 n= in.next();\n if(map.containsKey(n))\n map.replace(n, map.get(n)+1);\n \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.flush();\n }\n static boolean isValid (int r, int c){\n if(r>=0&&r<H&&c>=0&&c<W){\n return true;\n }\n return false;\n }\n private static void dfs(int r, int c) {\n for(int i=0;i<4;i++){\n int nr = bishopr[i] +r;\n int nc = bishopc[i]+c;\n if(isValid(nr, nc)&&!grid[nr][nc]){\n cnt++;\n grid[nr][nc] = true;\n dfs(nr, nc);\n }\n }\n }\n\n static boolean isEven(long a) {\n return (a&1)==0;\n }\n static void swap (int a, int b){\n\n int temmp = b;\n b=a;\n a = temmp;\n }\n \n\n public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public MyScanner() {\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 }\n}",
"public class Main {\n\n static MyScanner in = new MyScanner();\n static PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n int N;\n static int max = 200001;\n static int [] dr = {1,-1,0,0};\n static int [] dc={0,0,-1,1};\n static boolean [][] grid;\n static int [] bishopr = {-1,1,-1,1};\n static int [] bishopc = {1,1,-1,-1};\n static long H,W,cnt;\n static HashMap<String,Integer> map = new HashMap<>();\n public static void main(String args[]) throws IOException {\n int N = in.nextInt();\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 n= in.next();\n if(map.containsKey(n))\n map.replace(n, map.get(n)+1);\n \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.flush();\n }\n static boolean isValid (int r, int c){\n if(r>=0&&r<H&&c>=0&&c<W){\n return true;\n }\n return false;\n }\n private static void dfs(int r, int c) {\n for(int i=0;i<4;i++){\n int nr = bishopr[i] +r;\n int nc = bishopc[i]+c;\n if(isValid(nr, nc)&&!grid[nr][nc]){\n cnt++;\n grid[nr][nc] = true;\n dfs(nr, nc);\n }\n }\n }\n\n static boolean isEven(long a) {\n return (a&1)==0;\n }\n static void swap (int a, int b){\n\n int temmp = b;\n b=a;\n a = temmp;\n }\n \n\n public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n \n public MyScanner() {\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 }\n}",
"Main"
]
| import java.io.*;
import java.math.*;
import java.util.*;
public class Main {
static MyScanner in = new MyScanner();
static PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
int N;
static int max = 200001;
static int [] dr = {1,-1,0,0};
static int [] dc={0,0,-1,1};
static boolean [][] grid;
static int [] bishopr = {-1,1,-1,1};
static int [] bishopc = {1,1,-1,-1};
static long H,W,cnt;
static HashMap<String,Integer> map = new HashMap<>();
public static void main(String args[]) throws IOException {
int N = in.nextInt();
map.put("AC", 0);
map.put("WA", 0);
map.put("TLE", 0);
map.put("RE", 0);
while(N-->0){
String n= in.next();
if(map.containsKey(n))
map.replace(n, map.get(n)+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.flush();
}
static boolean isValid (int r, int c){
if(r>=0&&r<H&&c>=0&&c<W){
return true;
}
return false;
}
private static void dfs(int r, int c) {
for(int i=0;i<4;i++){
int nr = bishopr[i] +r;
int nc = bishopc[i]+c;
if(isValid(nr, nc)&&!grid[nr][nc]){
cnt++;
grid[nr][nc] = true;
dfs(nr, nc);
}
}
}
static boolean isEven(long a) {
return (a&1)==0;
}
static void swap (int a, int b){
int temmp = b;
b=a;
a = temmp;
}
public static class MyScanner {
BufferedReader br;
StringTokenizer st;
public MyScanner() {
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,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
42,
2,
13,
17,
30,
0,
13,
4,
18,
13,
40,
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,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
123,
11
],
[
123,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
18,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
32,
33
],
[
25,
34
],
[
34,
35
],
[
34,
36
],
[
25,
37
],
[
37,
38
],
[
37,
39
],
[
25,
40
],
[
40,
41
],
[
40,
42
],
[
25,
43
],
[
43,
44
],
[
43,
45
],
[
25,
46
],
[
46,
47
],
[
25,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
52,
58
],
[
58,
59
],
[
52,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
60,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
60,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
60,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
25,
85
],
[
85,
86
],
[
86,
87
],
[
25,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
25,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
25,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
109,
110
],
[
109,
111
],
[
25,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
12,
120
],
[
120,
121
],
[
0,
122
],
[
122,
123
],
[
122,
124
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n int ncount = Integer.parseInt(reader.readLine()); // 一行目はテストケース数 N\n int cnt_AC = 0;\n int cnt_WA = 0;\n int cnt_TLE = 0;\n int cnt_RE = 0;\n String result;\n while (ncount != 0) {\n result = reader.readLine();\n ncount--;\n switch (result) {\n\n case \"AC\":\n cnt_AC++;\n break;\n\n case \"WA\":\n cnt_WA++;\n break;\n\n case \"TLE\":\n cnt_TLE++;\n break;\n\n case \"RE\":\n cnt_RE++;\n }\n\n }\n reader.close();\n System.out.println(\"AC x \" + cnt_AC);\n System.out.println(\"WA x \" + cnt_WA);\n System.out.println(\"TLE x \" + cnt_TLE);\n System.out.println(\"RE x \" + cnt_RE);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\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 public static void main(String[] args) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n int ncount = Integer.parseInt(reader.readLine()); // 一行目はテストケース数 N\n int cnt_AC = 0;\n int cnt_WA = 0;\n int cnt_TLE = 0;\n int cnt_RE = 0;\n String result;\n while (ncount != 0) {\n result = reader.readLine();\n ncount--;\n switch (result) {\n\n case \"AC\":\n cnt_AC++;\n break;\n\n case \"WA\":\n cnt_WA++;\n break;\n\n case \"TLE\":\n cnt_TLE++;\n break;\n\n case \"RE\":\n cnt_RE++;\n }\n\n }\n reader.close();\n System.out.println(\"AC x \" + cnt_AC);\n System.out.println(\"WA x \" + cnt_WA);\n System.out.println(\"TLE x \" + cnt_TLE);\n System.out.println(\"RE x \" + cnt_RE);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n}",
"Main",
"public static void main(String[] args) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n int ncount = Integer.parseInt(reader.readLine()); // 一行目はテストケース数 N\n int cnt_AC = 0;\n int cnt_WA = 0;\n int cnt_TLE = 0;\n int cnt_RE = 0;\n String result;\n while (ncount != 0) {\n result = reader.readLine();\n ncount--;\n switch (result) {\n\n case \"AC\":\n cnt_AC++;\n break;\n\n case \"WA\":\n cnt_WA++;\n break;\n\n case \"TLE\":\n cnt_TLE++;\n break;\n\n case \"RE\":\n cnt_RE++;\n }\n\n }\n reader.close();\n System.out.println(\"AC x \" + cnt_AC);\n System.out.println(\"WA x \" + cnt_WA);\n System.out.println(\"TLE x \" + cnt_TLE);\n System.out.println(\"RE x \" + cnt_RE);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"main",
"{\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n int ncount = Integer.parseInt(reader.readLine()); // 一行目はテストケース数 N\n int cnt_AC = 0;\n int cnt_WA = 0;\n int cnt_TLE = 0;\n int cnt_RE = 0;\n String result;\n while (ncount != 0) {\n result = reader.readLine();\n ncount--;\n switch (result) {\n\n case \"AC\":\n cnt_AC++;\n break;\n\n case \"WA\":\n cnt_WA++;\n break;\n\n case \"TLE\":\n cnt_TLE++;\n break;\n\n case \"RE\":\n cnt_RE++;\n }\n\n }\n reader.close();\n System.out.println(\"AC x \" + cnt_AC);\n System.out.println(\"WA x \" + cnt_WA);\n System.out.println(\"TLE x \" + cnt_TLE);\n System.out.println(\"RE x \" + cnt_RE);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"try {\n int ncount = Integer.parseInt(reader.readLine()); // 一行目はテストケース数 N\n int cnt_AC = 0;\n int cnt_WA = 0;\n int cnt_TLE = 0;\n int cnt_RE = 0;\n String result;\n while (ncount != 0) {\n result = reader.readLine();\n ncount--;\n switch (result) {\n\n case \"AC\":\n cnt_AC++;\n break;\n\n case \"WA\":\n cnt_WA++;\n break;\n\n case \"TLE\":\n cnt_TLE++;\n break;\n\n case \"RE\":\n cnt_RE++;\n }\n\n }\n reader.close();\n System.out.println(\"AC x \" + cnt_AC);\n System.out.println(\"WA x \" + cnt_WA);\n System.out.println(\"TLE x \" + cnt_TLE);\n System.out.println(\"RE x \" + cnt_RE);\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 int ncount = Integer.parseInt(reader.readLine()); // 一行目はテストケース数 N\n int cnt_AC = 0;\n int cnt_WA = 0;\n int cnt_TLE = 0;\n int cnt_RE = 0;\n String result;\n while (ncount != 0) {\n result = reader.readLine();\n ncount--;\n switch (result) {\n\n case \"AC\":\n cnt_AC++;\n break;\n\n case \"WA\":\n cnt_WA++;\n break;\n\n case \"TLE\":\n cnt_TLE++;\n break;\n\n case \"RE\":\n cnt_RE++;\n }\n\n }\n reader.close();\n System.out.println(\"AC x \" + cnt_AC);\n System.out.println(\"WA x \" + cnt_WA);\n System.out.println(\"TLE x \" + cnt_TLE);\n System.out.println(\"RE x \" + cnt_RE);\n }",
"int ncount = Integer.parseInt(reader.readLine());",
"ncount",
"Integer.parseInt(reader.readLine())",
"Integer.parseInt",
"Integer",
"reader.readLine()",
"reader.readLine",
"reader",
"int cnt_AC = 0;",
"cnt_AC",
"0",
"int cnt_WA = 0;",
"cnt_WA",
"0",
"int cnt_TLE = 0;",
"cnt_TLE",
"0",
"int cnt_RE = 0;",
"cnt_RE",
"0",
"String result;",
"result",
"while (ncount != 0) {\n result = reader.readLine();\n ncount--;\n switch (result) {\n\n case \"AC\":\n cnt_AC++;\n break;\n\n case \"WA\":\n cnt_WA++;\n break;\n\n case \"TLE\":\n cnt_TLE++;\n break;\n\n case \"RE\":\n cnt_RE++;\n }\n\n }",
"ncount != 0",
"ncount",
"0",
"{\n result = reader.readLine();\n ncount--;\n switch (result) {\n\n case \"AC\":\n cnt_AC++;\n break;\n\n case \"WA\":\n cnt_WA++;\n break;\n\n case \"TLE\":\n cnt_TLE++;\n break;\n\n case \"RE\":\n cnt_RE++;\n }\n\n }",
"result = reader.readLine()",
"result",
"reader.readLine()",
"reader.readLine",
"reader",
"ncount--",
"ncount",
"switch (result) {\n\n case \"AC\":\n cnt_AC++;\n break;\n\n case \"WA\":\n cnt_WA++;\n break;\n\n case \"TLE\":\n cnt_TLE++;\n break;\n\n case \"RE\":\n cnt_RE++;\n }",
"result",
"case \"AC\":",
"\"AC\"",
"case \"AC\":",
"cnt_AC++",
"cnt_AC",
"break;",
"case \"WA\":",
"\"WA\"",
"case \"WA\":",
"cnt_WA++",
"cnt_WA",
"break;",
"case \"TLE\":",
"\"TLE\"",
"case \"TLE\":",
"cnt_TLE++",
"cnt_TLE",
"break;",
"case \"RE\":",
"\"RE\"",
"case \"RE\":",
"cnt_RE++",
"cnt_RE",
"reader.close()",
"reader.close",
"reader",
"System.out.println(\"AC x \" + cnt_AC)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + cnt_AC",
"\"AC x \"",
"cnt_AC",
"System.out.println(\"WA x \" + cnt_WA)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + cnt_WA",
"\"WA x \"",
"cnt_WA",
"System.out.println(\"TLE x \" + cnt_TLE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + cnt_TLE",
"\"TLE x \"",
"cnt_TLE",
"System.out.println(\"RE x \" + cnt_RE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + cnt_RE",
"\"RE x \"",
"cnt_RE",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n int ncount = Integer.parseInt(reader.readLine()); // 一行目はテストケース数 N\n int cnt_AC = 0;\n int cnt_WA = 0;\n int cnt_TLE = 0;\n int cnt_RE = 0;\n String result;\n while (ncount != 0) {\n result = reader.readLine();\n ncount--;\n switch (result) {\n\n case \"AC\":\n cnt_AC++;\n break;\n\n case \"WA\":\n cnt_WA++;\n break;\n\n case \"TLE\":\n cnt_TLE++;\n break;\n\n case \"RE\":\n cnt_RE++;\n }\n\n }\n reader.close();\n System.out.println(\"AC x \" + cnt_AC);\n System.out.println(\"WA x \" + cnt_WA);\n System.out.println(\"TLE x \" + cnt_TLE);\n System.out.println(\"RE x \" + cnt_RE);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n}",
"public class Main {\n public static void main(String[] args) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n int ncount = Integer.parseInt(reader.readLine()); // 一行目はテストケース数 N\n int cnt_AC = 0;\n int cnt_WA = 0;\n int cnt_TLE = 0;\n int cnt_RE = 0;\n String result;\n while (ncount != 0) {\n result = reader.readLine();\n ncount--;\n switch (result) {\n\n case \"AC\":\n cnt_AC++;\n break;\n\n case \"WA\":\n cnt_WA++;\n break;\n\n case \"TLE\":\n cnt_TLE++;\n break;\n\n case \"RE\":\n cnt_RE++;\n }\n\n }\n reader.close();\n System.out.println(\"AC x \" + cnt_AC);\n System.out.println(\"WA x \" + cnt_WA);\n System.out.println(\"TLE x \" + cnt_TLE);\n System.out.println(\"RE x \" + cnt_RE);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
try {
int ncount = Integer.parseInt(reader.readLine()); // 一行目はテストケース数 N
int cnt_AC = 0;
int cnt_WA = 0;
int cnt_TLE = 0;
int cnt_RE = 0;
String result;
while (ncount != 0) {
result = reader.readLine();
ncount--;
switch (result) {
case "AC":
cnt_AC++;
break;
case "WA":
cnt_WA++;
break;
case "TLE":
cnt_TLE++;
break;
case "RE":
cnt_RE++;
}
}
reader.close();
System.out.println("AC x " + cnt_AC);
System.out.println("WA x " + cnt_WA);
System.out.println("TLE x " + cnt_TLE);
System.out.println("RE x " + cnt_RE);
} catch (IOException e) {
e.printStackTrace();
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
4,
18,
13,
4,
18,
13,
17,
17,
17,
17,
12,
13,
30,
41,
13,
20,
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,
4,
18,
13,
13,
8,
2,
4,
18,
13,
13,
17,
17,
2,
4,
18,
13,
13,
17,
4,
13,
13,
23,
13,
12,
13,
30,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
13,
17,
8,
2,
4,
18,
13,
13,
17,
17,
4,
18,
13,
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
],
[
11,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
14,
18
],
[
14,
19
],
[
14,
20
],
[
7,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
27,
29
],
[
23,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
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
],
[
53,
56
],
[
53,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
58,
63
],
[
57,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
65,
70
],
[
23,
71
],
[
71,
72
],
[
71,
73
],
[
21,
74
],
[
74,
75
],
[
7,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
79,
82
],
[
83,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
90,
90
],
[
90,
91
],
[
90,
92
],
[
90,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
94,
99
],
[
93,
100
],
[
93,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
76,
105
],
[
105,
106
]
]
| [
"import java.util.*;\nimport java.util.stream.*;\n\nclass Main {\n static final List<String> RESULT_TYPE = \n Collections.unmodifiableList(Arrays.asList(\"AC\", \"WA\", \"TLE\", \"RE\"));\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n Map<String, Integer> result = new HashMap<>();\n int N = sc.nextInt();\n for (int i = 0; i < N; i++) {\n String judge = sc.next();\n result.put(judge, result.get(judge) == null ? 1 : result.get(judge) + 1);\n }\n dispResult(result);\n }\n static void dispResult(Map<String, Integer> result) {\n for (String R : RESULT_TYPE) {\n System.out.println(R + \" x \" + (result.get(R) == null ? 0 : result.get(R)));\n }\n }\n}\n\n",
"import java.util.*;",
"util.*",
"java",
"import java.util.stream.*;",
"stream.*",
"java.util",
"class Main {\n static final List<String> RESULT_TYPE = \n Collections.unmodifiableList(Arrays.asList(\"AC\", \"WA\", \"TLE\", \"RE\"));\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n Map<String, Integer> result = new HashMap<>();\n int N = sc.nextInt();\n for (int i = 0; i < N; i++) {\n String judge = sc.next();\n result.put(judge, result.get(judge) == null ? 1 : result.get(judge) + 1);\n }\n dispResult(result);\n }\n static void dispResult(Map<String, Integer> result) {\n for (String R : RESULT_TYPE) {\n System.out.println(R + \" x \" + (result.get(R) == null ? 0 : result.get(R)));\n }\n }\n}",
"Main",
"static final List<String> RESULT_TYPE = \n Collections.unmodifiableList(Arrays.asList(\"AC\", \"WA\", \"TLE\", \"RE\"));",
"RESULT_TYPE",
"Collections.unmodifiableList(Arrays.asList(\"AC\", \"WA\", \"TLE\", \"RE\"))",
"Collections.unmodifiableList",
"Collections",
"Arrays.asList(\"AC\", \"WA\", \"TLE\", \"RE\")",
"Arrays.asList",
"Arrays",
"\"AC\"",
"\"WA\"",
"\"TLE\"",
"\"RE\"",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n Map<String, Integer> result = new HashMap<>();\n int N = sc.nextInt();\n for (int i = 0; i < N; i++) {\n String judge = sc.next();\n result.put(judge, result.get(judge) == null ? 1 : result.get(judge) + 1);\n }\n dispResult(result);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n Map<String, Integer> result = new HashMap<>();\n int N = sc.nextInt();\n for (int i = 0; i < N; i++) {\n String judge = sc.next();\n result.put(judge, result.get(judge) == null ? 1 : result.get(judge) + 1);\n }\n dispResult(result);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"Map<String, Integer> result = new HashMap<>();",
"result",
"new HashMap<>()",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < N; i++) {\n String judge = sc.next();\n result.put(judge, result.get(judge) == null ? 1 : result.get(judge) + 1);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n String judge = sc.next();\n result.put(judge, result.get(judge) == null ? 1 : result.get(judge) + 1);\n }",
"{\n String judge = sc.next();\n result.put(judge, result.get(judge) == null ? 1 : result.get(judge) + 1);\n }",
"String judge = sc.next();",
"judge",
"sc.next()",
"sc.next",
"sc",
"result.put(judge, result.get(judge) == null ? 1 : result.get(judge) + 1)",
"result.put",
"result",
"judge",
"result.get(judge) == null ? 1 : result.get(judge) + 1",
"result.get(judge) == null",
"result.get(judge)",
"result.get",
"result",
"judge",
"null",
"1",
"result.get(judge) + 1",
"result.get(judge)",
"result.get",
"result",
"judge",
"1",
"dispResult(result)",
"dispResult",
"result",
"String[] args",
"args",
"static void dispResult(Map<String, Integer> result) {\n for (String R : RESULT_TYPE) {\n System.out.println(R + \" x \" + (result.get(R) == null ? 0 : result.get(R)));\n }\n }",
"dispResult",
"{\n for (String R : RESULT_TYPE) {\n System.out.println(R + \" x \" + (result.get(R) == null ? 0 : result.get(R)));\n }\n }",
"for (String R : RESULT_TYPE) {\n System.out.println(R + \" x \" + (result.get(R) == null ? 0 : result.get(R)));\n }",
"String R",
"RESULT_TYPE",
"{\n System.out.println(R + \" x \" + (result.get(R) == null ? 0 : result.get(R)));\n }",
"{\n System.out.println(R + \" x \" + (result.get(R) == null ? 0 : result.get(R)));\n }",
"System.out.println(R + \" x \" + (result.get(R) == null ? 0 : result.get(R)))",
"System.out.println",
"System.out",
"System",
"System.out",
"R + \" x \" + (result.get(R) == null ? 0 : result.get(R))",
"R + \" x \" + (result.get(R) == null ? 0 : result.get(R))",
"R",
"\" x \"",
"(result.get(R) == null ? 0 : result.get(R))",
"result.get(R) == null",
"result.get(R)",
"result.get",
"result",
"R",
"null",
"0",
"result.get(R)",
"result.get",
"result",
"R",
"Map<String, Integer> result",
"result"
]
| import java.util.*;
import java.util.stream.*;
class Main {
static final List<String> RESULT_TYPE =
Collections.unmodifiableList(Arrays.asList("AC", "WA", "TLE", "RE"));
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Map<String, Integer> result = new HashMap<>();
int N = sc.nextInt();
for (int i = 0; i < N; i++) {
String judge = sc.next();
result.put(judge, result.get(judge) == null ? 1 : result.get(judge) + 1);
}
dispResult(result);
}
static void dispResult(Map<String, Integer> result) {
for (String R : RESULT_TYPE) {
System.out.println(R + " x " + (result.get(R) == null ? 0 : result.get(R)));
}
}
}
|
[
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,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
0,
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,
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,
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
],
[
270,
41
],
[
270,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
44,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
55,
56
],
[
55,
57
],
[
44,
58
],
[
58,
59
],
[
58,
60
],
[
44,
61
],
[
61,
62
],
[
61,
63
],
[
44,
64
],
[
64,
65
],
[
64,
66
],
[
44,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
67,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
72,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
78,
83
],
[
83,
84
],
[
72,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
85,
90
],
[
90,
91
],
[
72,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
92,
97
],
[
97,
98
],
[
72,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
99,
104
],
[
104,
105
],
[
44,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
44,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
119,
120
],
[
119,
121
],
[
44,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
127,
128
],
[
127,
129
],
[
44,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
130,
135
],
[
135,
136
],
[
135,
137
],
[
42,
138
],
[
138,
139
],
[
270,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
142,
146
],
[
146,
147
],
[
146,
148
],
[
146,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
150,
153
],
[
142,
154
],
[
154,
155
],
[
155,
156
],
[
154,
157
],
[
142,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
158,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
165,
167
],
[
158,
168
],
[
168,
169
],
[
169,
170
],
[
158,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
172,
176
],
[
176,
177
],
[
177,
178
],
[
176,
179
],
[
140,
180
],
[
180,
181
],
[
270,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
184,
186
],
[
182,
187
],
[
187,
188
],
[
187,
189
],
[
182,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
193,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
198,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
192,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
182,
213
],
[
213,
214
],
[
213,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
217,
220
],
[
220,
221
],
[
182,
222
],
[
222,
223
],
[
222,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
224,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
231,
233
],
[
229,
234
],
[
234,
235
],
[
234,
236
],
[
229,
237
],
[
237,
238
],
[
238,
239
],
[
229,
240
],
[
240,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
241,
245
],
[
245,
246
],
[
224,
247
],
[
247,
248
],
[
222,
249
],
[
249,
250
],
[
182,
251
],
[
251,
252
],
[
251,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
255,
258
],
[
258,
259
],
[
182,
260
],
[
260,
261
],
[
260,
262
],
[
262,
263
],
[
263,
264
],
[
264,
265
],
[
265,
266
],
[
264,
267
],
[
267,
268
],
[
0,
269
],
[
269,
270
],
[
269,
271
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.util.ArrayDeque;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Comparator;\nimport java.util.Collections;\nimport java.util.HashMap;\nimport java.util.HashSet;\nimport java.util.StringTokenizer;\nimport static java.lang.Long.bitCount;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner in = new FastScanner();\n\t\tint tt; tt=in.nextInt();\n\t\tint ac=0, wa=0, tle=0, re=0;\n\t\twhile(tt-->0) {\n\t\t\tString s=in.next();\n\t\t\tif(s.equals(\"AC\")) ++ac;\n\t\t\tif(s.equals(\"TLE\")) ++tle;\n\t\t\tif(s.equals(\"WA\")) ++wa;\n\t\t\tif(s.equals(\"RE\")) ++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\n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> l = new ArrayList<>();\n\t\tfor (int i : a)\n\t\t\tl.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i = 0; i < a.length; i++)\n\t\t\ta[i] = l.get(i);\n\t}\n\n\tstatic class FastScanner {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tint[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\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.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.ArrayDeque;",
"ArrayDeque",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Comparator;",
"Comparator",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import static java.lang.Long.bitCount;",
"import static java.lang.Long.bitCount;",
"import static java.lang.Long.bitCount;",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner in = new FastScanner();\n\t\tint tt; tt=in.nextInt();\n\t\tint ac=0, wa=0, tle=0, re=0;\n\t\twhile(tt-->0) {\n\t\t\tString s=in.next();\n\t\t\tif(s.equals(\"AC\")) ++ac;\n\t\t\tif(s.equals(\"TLE\")) ++tle;\n\t\t\tif(s.equals(\"WA\")) ++wa;\n\t\t\tif(s.equals(\"RE\")) ++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\n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> l = new ArrayList<>();\n\t\tfor (int i : a)\n\t\t\tl.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i = 0; i < a.length; i++)\n\t\t\ta[i] = l.get(i);\n\t}\n\n\tstatic class FastScanner {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tint[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tFastScanner in = new FastScanner();\n\t\tint tt; tt=in.nextInt();\n\t\tint ac=0, wa=0, tle=0, re=0;\n\t\twhile(tt-->0) {\n\t\t\tString s=in.next();\n\t\t\tif(s.equals(\"AC\")) ++ac;\n\t\t\tif(s.equals(\"TLE\")) ++tle;\n\t\t\tif(s.equals(\"WA\")) ++wa;\n\t\t\tif(s.equals(\"RE\")) ++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\tFastScanner in = new FastScanner();\n\t\tint tt; tt=in.nextInt();\n\t\tint ac=0, wa=0, tle=0, re=0;\n\t\twhile(tt-->0) {\n\t\t\tString s=in.next();\n\t\t\tif(s.equals(\"AC\")) ++ac;\n\t\t\tif(s.equals(\"TLE\")) ++tle;\n\t\t\tif(s.equals(\"WA\")) ++wa;\n\t\t\tif(s.equals(\"RE\")) ++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}",
"FastScanner in = new FastScanner();",
"in",
"new FastScanner()",
"int tt;",
"tt",
"tt=in.nextInt()",
"tt",
"in.nextInt()",
"in.nextInt",
"in",
"int ac=0",
"ac",
"0",
"wa=0",
"wa",
"0",
"tle=0",
"tle",
"0",
"re=0;",
"re",
"0",
"while(tt-->0) {\n\t\t\tString s=in.next();\n\t\t\tif(s.equals(\"AC\")) ++ac;\n\t\t\tif(s.equals(\"TLE\")) ++tle;\n\t\t\tif(s.equals(\"WA\")) ++wa;\n\t\t\tif(s.equals(\"RE\")) ++re;\n\t\t}",
"tt-->0",
"tt--",
"tt",
"0",
"{\n\t\t\tString s=in.next();\n\t\t\tif(s.equals(\"AC\")) ++ac;\n\t\t\tif(s.equals(\"TLE\")) ++tle;\n\t\t\tif(s.equals(\"WA\")) ++wa;\n\t\t\tif(s.equals(\"RE\")) ++re;\n\t\t}",
"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(\"TLE\")) ++tle;",
"s.equals(\"TLE\")",
"s.equals",
"s",
"\"TLE\"",
"++tle",
"tle",
"if(s.equals(\"WA\")) ++wa;",
"s.equals(\"WA\")",
"s.equals",
"s",
"\"WA\"",
"++wa",
"wa",
"if(s.equals(\"RE\")) ++re;",
"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",
"static void sort(int[] a) {\n\t\tArrayList<Integer> l = new ArrayList<>();\n\t\tfor (int i : a)\n\t\t\tl.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i = 0; i < a.length; i++)\n\t\t\ta[i] = l.get(i);\n\t}",
"sort",
"{\n\t\tArrayList<Integer> l = new ArrayList<>();\n\t\tfor (int i : a)\n\t\t\tl.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i = 0; i < a.length; i++)\n\t\t\ta[i] = l.get(i);\n\t}",
"ArrayList<Integer> l = new ArrayList<>();",
"l",
"new ArrayList<>()",
"for (int i : a)\n\t\t\tl.add(i);",
"int i",
"a",
"l.add(i);",
"l.add(i)",
"l.add",
"l",
"i",
"Collections.sort(l)",
"Collections.sort",
"Collections",
"l",
"for (int i = 0; i < a.length; i++)\n\t\t\ta[i] = l.get(i);",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"a[i] = l.get(i);",
"a[i] = l.get(i)",
"a[i]",
"a",
"i",
"l.get(i)",
"l.get",
"l",
"i",
"int[] a",
"a",
"static class FastScanner {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tint[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\t}",
"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\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"next",
"{\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"while (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"try {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"IOException e",
"{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\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\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",
"int[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}",
"readArray",
"{\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\t\ta[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\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",
"double nextDouble() {\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 class Main {\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner in = new FastScanner();\n\t\tint tt; tt=in.nextInt();\n\t\tint ac=0, wa=0, tle=0, re=0;\n\t\twhile(tt-->0) {\n\t\t\tString s=in.next();\n\t\t\tif(s.equals(\"AC\")) ++ac;\n\t\t\tif(s.equals(\"TLE\")) ++tle;\n\t\t\tif(s.equals(\"WA\")) ++wa;\n\t\t\tif(s.equals(\"RE\")) ++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\n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> l = new ArrayList<>();\n\t\tfor (int i : a)\n\t\t\tl.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i = 0; i < a.length; i++)\n\t\t\ta[i] = l.get(i);\n\t}\n\n\tstatic class FastScanner {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tint[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner in = new FastScanner();\n\t\tint tt; tt=in.nextInt();\n\t\tint ac=0, wa=0, tle=0, re=0;\n\t\twhile(tt-->0) {\n\t\t\tString s=in.next();\n\t\t\tif(s.equals(\"AC\")) ++ac;\n\t\t\tif(s.equals(\"TLE\")) ++tle;\n\t\t\tif(s.equals(\"WA\")) ++wa;\n\t\t\tif(s.equals(\"RE\")) ++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\n\tstatic void sort(int[] a) {\n\t\tArrayList<Integer> l = new ArrayList<>();\n\t\tfor (int i : a)\n\t\t\tl.add(i);\n\t\tCollections.sort(l);\n\t\tfor (int i = 0; i < a.length; i++)\n\t\t\ta[i] = l.get(i);\n\t}\n\n\tstatic class FastScanner {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\n\t\tString next() {\n\t\t\twhile (!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tint[] readArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.StringTokenizer;
import static java.lang.Long.bitCount;
public class Main {
public static void main(String[] args) {
FastScanner in = new FastScanner();
int tt; tt=in.nextInt();
int ac=0, wa=0, tle=0, re=0;
while(tt-->0) {
String s=in.next();
if(s.equals("AC")) ++ac;
if(s.equals("TLE")) ++tle;
if(s.equals("WA")) ++wa;
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);
}
static void sort(int[] a) {
ArrayList<Integer> l = new ArrayList<>();
for (int i : a)
l.add(i);
Collections.sort(l);
for (int i = 0; i < a.length; i++)
a[i] = l.get(i);
}
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());
}
double nextDouble() {
return Double.parseDouble(next());
}
}
}
|
[
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,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
28,
13,
13,
30,
30,
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
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
129,
11
],
[
129,
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
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
43,
44
],
[
14,
45
],
[
45,
46
],
[
45,
47
],
[
14,
48
],
[
48,
49
],
[
48,
50
],
[
14,
51
],
[
51,
52
],
[
51,
53
],
[
14,
54
],
[
54,
55
],
[
54,
56
],
[
14,
57
],
[
57,
58
],
[
57,
59
],
[
57,
60
],
[
61,
61
],
[
61,
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
],
[
88,
89
],
[
87,
90
],
[
86,
91
],
[
91,
92
],
[
92,
93
],
[
14,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
99,
100
],
[
99,
101
],
[
14,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
14,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
14,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
12,
126
],
[
126,
127
],
[
0,
128
],
[
128,
129
],
[
128,
130
]
]
| [
"import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ]\n Scanner sc = new Scanner(System.in);\n Integer countResults = sc.nextInt();\n List<String> results = new ArrayList<String>();\n\n for(int i= 0; i <= countResults; i++){\n results.add(sc.nextLine());\n }\n\n int acCount = 0;\n int waCount = 0;\n int tleCount= 0;\n int reCount = 0;\n\n for(String result: results){\n if(result.equals(\"AC\")){\n acCount++;\n }\n else if(result.equals(\"WA\")){\n waCount++;\n }\n else if(result.equals(\"TLE\")){\n tleCount++;\n }\n else if(result.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\t}\n\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ]\n Scanner sc = new Scanner(System.in);\n Integer countResults = sc.nextInt();\n List<String> results = new ArrayList<String>();\n\n for(int i= 0; i <= countResults; i++){\n results.add(sc.nextLine());\n }\n\n int acCount = 0;\n int waCount = 0;\n int tleCount= 0;\n int reCount = 0;\n\n for(String result: results){\n if(result.equals(\"AC\")){\n acCount++;\n }\n else if(result.equals(\"WA\")){\n waCount++;\n }\n else if(result.equals(\"TLE\")){\n tleCount++;\n }\n else if(result.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\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ]\n Scanner sc = new Scanner(System.in);\n Integer countResults = sc.nextInt();\n List<String> results = new ArrayList<String>();\n\n for(int i= 0; i <= countResults; i++){\n results.add(sc.nextLine());\n }\n\n int acCount = 0;\n int waCount = 0;\n int tleCount= 0;\n int reCount = 0;\n\n for(String result: results){\n if(result.equals(\"AC\")){\n acCount++;\n }\n else if(result.equals(\"WA\")){\n waCount++;\n }\n else if(result.equals(\"TLE\")){\n tleCount++;\n }\n else if(result.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\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ]\n Scanner sc = new Scanner(System.in);\n Integer countResults = sc.nextInt();\n List<String> results = new ArrayList<String>();\n\n for(int i= 0; i <= countResults; i++){\n results.add(sc.nextLine());\n }\n\n int acCount = 0;\n int waCount = 0;\n int tleCount= 0;\n int reCount = 0;\n\n for(String result: results){\n if(result.equals(\"AC\")){\n acCount++;\n }\n else if(result.equals(\"WA\")){\n waCount++;\n }\n else if(result.equals(\"TLE\")){\n tleCount++;\n }\n else if(result.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\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"Integer countResults = sc.nextInt();",
"countResults",
"sc.nextInt()",
"sc.nextInt",
"sc",
"List<String> results = new ArrayList<String>();",
"results",
"new ArrayList<String>()",
"for(int i= 0; i <= countResults; i++){\n results.add(sc.nextLine());\n }",
"int i= 0;",
"int i= 0;",
"i",
"0",
"i <= countResults",
"i",
"countResults",
"i++",
"i++",
"i",
"{\n results.add(sc.nextLine());\n }",
"{\n results.add(sc.nextLine());\n }",
"results.add(sc.nextLine())",
"results.add",
"results",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int acCount = 0;",
"acCount",
"0",
"int waCount = 0;",
"waCount",
"0",
"int tleCount= 0;",
"tleCount",
"0",
"int reCount = 0;",
"reCount",
"0",
"for(String result: results){\n if(result.equals(\"AC\")){\n acCount++;\n }\n else if(result.equals(\"WA\")){\n waCount++;\n }\n else if(result.equals(\"TLE\")){\n tleCount++;\n }\n else if(result.equals(\"RE\")){\n reCount++;\n }\n }",
"String result",
"results",
"{\n if(result.equals(\"AC\")){\n acCount++;\n }\n else if(result.equals(\"WA\")){\n waCount++;\n }\n else if(result.equals(\"TLE\")){\n tleCount++;\n }\n else if(result.equals(\"RE\")){\n reCount++;\n }\n }",
"{\n if(result.equals(\"AC\")){\n acCount++;\n }\n else if(result.equals(\"WA\")){\n waCount++;\n }\n else if(result.equals(\"TLE\")){\n tleCount++;\n }\n else if(result.equals(\"RE\")){\n reCount++;\n }\n }",
"if(result.equals(\"AC\")){\n acCount++;\n }\n else if(result.equals(\"WA\")){\n waCount++;\n }\n else if(result.equals(\"TLE\")){\n tleCount++;\n }\n else if(result.equals(\"RE\")){\n reCount++;\n }",
"result.equals(\"AC\")",
"result.equals",
"result",
"\"AC\"",
"{\n acCount++;\n }",
"acCount++",
"acCount",
"if(result.equals(\"WA\")){\n waCount++;\n }\n else if(result.equals(\"TLE\")){\n tleCount++;\n }\n else if(result.equals(\"RE\")){\n reCount++;\n }",
"result.equals(\"WA\")",
"result.equals",
"result",
"\"WA\"",
"{\n waCount++;\n }",
"waCount++",
"waCount",
"if(result.equals(\"TLE\")){\n tleCount++;\n }\n else if(result.equals(\"RE\")){\n reCount++;\n }",
"result.equals(\"TLE\")",
"result.equals",
"result",
"\"TLE\"",
"{\n tleCount++;\n }",
"tleCount++",
"tleCount",
"if(result.equals(\"RE\")){\n reCount++;\n }",
"result.equals(\"RE\")",
"result.equals",
"result",
"\"RE\"",
"{\n reCount++;\n }",
"reCount++",
"reCount",
"System.out.println(\"AC x \" + acCount)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + acCount",
"\"AC x \"",
"acCount",
"System.out.println(\"WA x \" + waCount)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + waCount",
"\"WA x \"",
"waCount",
"System.out.println(\"TLE x \" + tleCount)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + tleCount",
"\"TLE x \"",
"tleCount",
"System.out.println(\"RE x \" + reCount)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + reCount",
"\"RE x \"",
"reCount",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ]\n Scanner sc = new Scanner(System.in);\n Integer countResults = sc.nextInt();\n List<String> results = new ArrayList<String>();\n\n for(int i= 0; i <= countResults; i++){\n results.add(sc.nextLine());\n }\n\n int acCount = 0;\n int waCount = 0;\n int tleCount= 0;\n int reCount = 0;\n\n for(String result: results){\n if(result.equals(\"AC\")){\n acCount++;\n }\n else if(result.equals(\"WA\")){\n waCount++;\n }\n else if(result.equals(\"TLE\")){\n tleCount++;\n }\n else if(result.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\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ]\n Scanner sc = new Scanner(System.in);\n Integer countResults = sc.nextInt();\n List<String> results = new ArrayList<String>();\n\n for(int i= 0; i <= countResults; i++){\n results.add(sc.nextLine());\n }\n\n int acCount = 0;\n int waCount = 0;\n int tleCount= 0;\n int reCount = 0;\n\n for(String result: results){\n if(result.equals(\"AC\")){\n acCount++;\n }\n else if(result.equals(\"WA\")){\n waCount++;\n }\n else if(result.equals(\"TLE\")){\n tleCount++;\n }\n else if(result.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\t}\n\n}",
"Main"
]
| import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ]
Scanner sc = new Scanner(System.in);
Integer countResults = sc.nextInt();
List<String> results = new ArrayList<String>();
for(int i= 0; i <= countResults; i++){
results.add(sc.nextLine());
}
int acCount = 0;
int waCount = 0;
int tleCount= 0;
int reCount = 0;
for(String result: results){
if(result.equals("AC")){
acCount++;
}
else if(result.equals("WA")){
waCount++;
}
else if(result.equals("TLE")){
tleCount++;
}
else if(result.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);
}
}
|
[
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,
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,
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
],
[
124,
11
],
[
124,
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
],
[
27,
28
],
[
26,
29
],
[
26,
30
],
[
14,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
31,
35
],
[
14,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
36,
40
],
[
14,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
41,
45
],
[
14,
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
],
[
14,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
14,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
14,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
14,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
14,
118
],
[
118,
119
],
[
119,
120
],
[
12,
121
],
[
121,
122
],
[
0,
123
],
[
123,
124
],
[
123,
125
]
]
| [
"import java.util.HashMap;\nimport java.util.Map;\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\t\n\t\tMap<String, Integer> map = new HashMap<>();\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\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString key = sc.next();\n\t\t\tmap.put(key, map.get(key) + 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\t\tsc.close();\n\t}\n\t\n}\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\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\t\n\t\tMap<String, Integer> map = new HashMap<>();\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\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString key = sc.next();\n\t\t\tmap.put(key, map.get(key) + 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\t\tsc.close();\n\t}\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\t\n\t\tMap<String, Integer> map = new HashMap<>();\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\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString key = sc.next();\n\t\t\tmap.put(key, map.get(key) + 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\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\t\n\t\tMap<String, Integer> map = new HashMap<>();\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\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString key = sc.next();\n\t\t\tmap.put(key, map.get(key) + 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\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",
"Map<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\t\t\tString key = sc.next();\n\t\t\tmap.put(key, map.get(key) + 1);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString key = sc.next();\n\t\t\tmap.put(key, map.get(key) + 1);\n\t\t}",
"{\n\t\t\tString key = sc.next();\n\t\t\tmap.put(key, map.get(key) + 1);\n\t\t}",
"String key = sc.next();",
"key",
"sc.next()",
"sc.next",
"sc",
"map.put(key, map.get(key) + 1)",
"map.put",
"map",
"key",
"map.get(key) + 1",
"map.get(key)",
"map.get",
"map",
"key",
"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\"",
"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\t\n\t\tMap<String, Integer> map = new HashMap<>();\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\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString key = sc.next();\n\t\t\tmap.put(key, map.get(key) + 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\t\tsc.close();\n\t}\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\t\n\t\tMap<String, Integer> map = new HashMap<>();\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\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString key = sc.next();\n\t\t\tmap.put(key, map.get(key) + 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\t\tsc.close();\n\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) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
Map<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 key = sc.next();
map.put(key, map.get(key) + 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"));
sc.close();
}
}
|
[
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.*;\npublic class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tint n = sc.nextInt();\n \tint[] result = new int[4];//ac,wa,tle,re\n \tfor(int i = 0; i < n; i++){\n \tString s = sc.next();\n \tswitch(s){\n case \"AC\":\n result[0]++;\n\t\t\t\tbreak;\n case \"WA\":\n result[1]++;\n break;\n case \"TLE\":\n result[2]++;\n\t\t\t\tbreak;\n case \"RE\":\n result[3]++;\n break; \n }\n }\n \tSystem.out.println(\"AC x \" + result[0]);\n \tSystem.out.println(\"WA x \" + result[1]);\n \tSystem.out.println(\"TLE x \" + result[2]);\n \tSystem.out.println(\"RE x \" + result[3]);\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 \tint[] result = new int[4];//ac,wa,tle,re\n \tfor(int i = 0; i < n; i++){\n \tString s = sc.next();\n \tswitch(s){\n case \"AC\":\n result[0]++;\n\t\t\t\tbreak;\n case \"WA\":\n result[1]++;\n break;\n case \"TLE\":\n result[2]++;\n\t\t\t\tbreak;\n case \"RE\":\n result[3]++;\n break; \n }\n }\n \tSystem.out.println(\"AC x \" + result[0]);\n \tSystem.out.println(\"WA x \" + result[1]);\n \tSystem.out.println(\"TLE x \" + result[2]);\n \tSystem.out.println(\"RE x \" + result[3]);\n }\n}",
"Main",
"public static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tint n = sc.nextInt();\n \tint[] result = new int[4];//ac,wa,tle,re\n \tfor(int i = 0; i < n; i++){\n \tString s = sc.next();\n \tswitch(s){\n case \"AC\":\n result[0]++;\n\t\t\t\tbreak;\n case \"WA\":\n result[1]++;\n break;\n case \"TLE\":\n result[2]++;\n\t\t\t\tbreak;\n case \"RE\":\n result[3]++;\n break; \n }\n }\n \tSystem.out.println(\"AC x \" + result[0]);\n \tSystem.out.println(\"WA x \" + result[1]);\n \tSystem.out.println(\"TLE x \" + result[2]);\n \tSystem.out.println(\"RE x \" + result[3]);\n }",
"main",
"{\n \tScanner sc = new Scanner(System.in);\n \tint n = sc.nextInt();\n \tint[] result = new int[4];//ac,wa,tle,re\n \tfor(int i = 0; i < n; i++){\n \tString s = sc.next();\n \tswitch(s){\n case \"AC\":\n result[0]++;\n\t\t\t\tbreak;\n case \"WA\":\n result[1]++;\n break;\n case \"TLE\":\n result[2]++;\n\t\t\t\tbreak;\n case \"RE\":\n result[3]++;\n break; \n }\n }\n \tSystem.out.println(\"AC x \" + result[0]);\n \tSystem.out.println(\"WA x \" + result[1]);\n \tSystem.out.println(\"TLE x \" + result[2]);\n \tSystem.out.println(\"RE x \" + result[3]);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] result = new int[4];",
"result",
"new int[4]",
"4",
"for(int i = 0; i < n; i++){\n \tString s = sc.next();\n \tswitch(s){\n case \"AC\":\n result[0]++;\n\t\t\t\tbreak;\n case \"WA\":\n result[1]++;\n break;\n case \"TLE\":\n result[2]++;\n\t\t\t\tbreak;\n case \"RE\":\n result[3]++;\n break; \n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \tString s = sc.next();\n \tswitch(s){\n case \"AC\":\n result[0]++;\n\t\t\t\tbreak;\n case \"WA\":\n result[1]++;\n break;\n case \"TLE\":\n result[2]++;\n\t\t\t\tbreak;\n case \"RE\":\n result[3]++;\n break; \n }\n }",
"{\n \tString s = sc.next();\n \tswitch(s){\n case \"AC\":\n result[0]++;\n\t\t\t\tbreak;\n case \"WA\":\n result[1]++;\n break;\n case \"TLE\":\n result[2]++;\n\t\t\t\tbreak;\n case \"RE\":\n result[3]++;\n break; \n }\n }",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"switch(s){\n case \"AC\":\n result[0]++;\n\t\t\t\tbreak;\n case \"WA\":\n result[1]++;\n break;\n case \"TLE\":\n result[2]++;\n\t\t\t\tbreak;\n case \"RE\":\n result[3]++;\n break; \n }",
"s",
"case \"AC\":",
"\"AC\"",
"case \"AC\":",
"result[0]++",
"result[0]",
"result",
"0",
"break;",
"case \"WA\":",
"\"WA\"",
"case \"WA\":",
"result[1]++",
"result[1]",
"result",
"1",
"break;",
"case \"TLE\":",
"\"TLE\"",
"case \"TLE\":",
"result[2]++",
"result[2]",
"result",
"2",
"break;",
"case \"RE\":",
"\"RE\"",
"case \"RE\":",
"result[3]++",
"result[3]",
"result",
"3",
"break;",
"System.out.println(\"AC x \" + result[0])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + result[0]",
"\"AC x \"",
"result[0]",
"result",
"0",
"System.out.println(\"WA x \" + result[1])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + result[1]",
"\"WA x \"",
"result[1]",
"result",
"1",
"System.out.println(\"TLE x \" + result[2])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + result[2]",
"\"TLE x \"",
"result[2]",
"result",
"2",
"System.out.println(\"RE x \" + result[3])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + result[3]",
"\"RE x \"",
"result[3]",
"result",
"3",
"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 \tint[] result = new int[4];//ac,wa,tle,re\n \tfor(int i = 0; i < n; i++){\n \tString s = sc.next();\n \tswitch(s){\n case \"AC\":\n result[0]++;\n\t\t\t\tbreak;\n case \"WA\":\n result[1]++;\n break;\n case \"TLE\":\n result[2]++;\n\t\t\t\tbreak;\n case \"RE\":\n result[3]++;\n break; \n }\n }\n \tSystem.out.println(\"AC x \" + result[0]);\n \tSystem.out.println(\"WA x \" + result[1]);\n \tSystem.out.println(\"TLE x \" + result[2]);\n \tSystem.out.println(\"RE x \" + result[3]);\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 \tint[] result = new int[4];//ac,wa,tle,re\n \tfor(int i = 0; i < n; i++){\n \tString s = sc.next();\n \tswitch(s){\n case \"AC\":\n result[0]++;\n\t\t\t\tbreak;\n case \"WA\":\n result[1]++;\n break;\n case \"TLE\":\n result[2]++;\n\t\t\t\tbreak;\n case \"RE\":\n result[3]++;\n break; \n }\n }\n \tSystem.out.println(\"AC x \" + result[0]);\n \tSystem.out.println(\"WA x \" + result[1]);\n \tSystem.out.println(\"TLE x \" + result[2]);\n \tSystem.out.println(\"RE x \" + result[3]);\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[] result = new int[4];//ac,wa,tle,re
for(int i = 0; i < n; i++){
String s = sc.next();
switch(s){
case "AC":
result[0]++;
break;
case "WA":
result[1]++;
break;
case "TLE":
result[2]++;
break;
case "RE":
result[3]++;
break;
}
}
System.out.println("AC x " + result[0]);
System.out.println("WA x " + result[1]);
System.out.println("TLE x " + result[2]);
System.out.println("RE x " + result[3]);
}
} |
[
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,
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,
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
],
[
144,
5
],
[
144,
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,
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
],
[
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
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
69,
76
],
[
76,
77
],
[
77,
78
],
[
69,
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
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
99,
106
],
[
106,
107
],
[
107,
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
],
[
8,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
130,
131
],
[
130,
132
],
[
8,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
133,
138
],
[
138,
139
],
[
138,
140
],
[
6,
141
],
[
141,
142
],
[
0,
143
],
[
143,
144
],
[
143,
145
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n int c0=0;\n int c1=0;\n int c2=0;\n int c3=0;\n\n Scanner sc = new Scanner(System.in);\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 sc.close();\n for(int i = 0; i<n; i++){\n if(str[i].equals(\"AC\")) {\n c0++;\n }else if(str[i].equals(\"WA\") ){\n c1++;\n }else if(str[i].equals(\"TLE\") ){\n c2++;\n }else if(str[i].equals(\"RE\")){\n c3++;\n }\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.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n int c0=0;\n int c1=0;\n int c2=0;\n int c3=0;\n\n Scanner sc = new Scanner(System.in);\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 sc.close();\n for(int i = 0; i<n; i++){\n if(str[i].equals(\"AC\")) {\n c0++;\n }else if(str[i].equals(\"WA\") ){\n c1++;\n }else if(str[i].equals(\"TLE\") ){\n c2++;\n }else if(str[i].equals(\"RE\")){\n c3++;\n }\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}",
"Main",
"public static void main(String[] args) {\n int c0=0;\n int c1=0;\n int c2=0;\n int c3=0;\n\n Scanner sc = new Scanner(System.in);\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 sc.close();\n for(int i = 0; i<n; i++){\n if(str[i].equals(\"AC\")) {\n c0++;\n }else if(str[i].equals(\"WA\") ){\n c1++;\n }else if(str[i].equals(\"TLE\") ){\n c2++;\n }else if(str[i].equals(\"RE\")){\n c3++;\n }\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",
"{\n int c0=0;\n int c1=0;\n int c2=0;\n int c3=0;\n\n Scanner sc = new Scanner(System.in);\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 sc.close();\n for(int i = 0; i<n; i++){\n if(str[i].equals(\"AC\")) {\n c0++;\n }else if(str[i].equals(\"WA\") ){\n c1++;\n }else if(str[i].equals(\"TLE\") ){\n c2++;\n }else if(str[i].equals(\"RE\")){\n c3++;\n }\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 }",
"int c0=0;",
"c0",
"0",
"int c1=0;",
"c1",
"0",
"int c2=0;",
"c2",
"0",
"int c3=0;",
"c3",
"0",
"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",
"sc.close()",
"sc.close",
"sc",
"for(int i = 0; i<n; i++){\n if(str[i].equals(\"AC\")) {\n c0++;\n }else if(str[i].equals(\"WA\") ){\n c1++;\n }else if(str[i].equals(\"TLE\") ){\n c2++;\n }else if(str[i].equals(\"RE\")){\n c3++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(str[i].equals(\"AC\")) {\n c0++;\n }else if(str[i].equals(\"WA\") ){\n c1++;\n }else if(str[i].equals(\"TLE\") ){\n c2++;\n }else if(str[i].equals(\"RE\")){\n c3++;\n }\n }",
"{\n if(str[i].equals(\"AC\")) {\n c0++;\n }else if(str[i].equals(\"WA\") ){\n c1++;\n }else if(str[i].equals(\"TLE\") ){\n c2++;\n }else if(str[i].equals(\"RE\")){\n c3++;\n }\n }",
"if(str[i].equals(\"AC\")) {\n c0++;\n }else if(str[i].equals(\"WA\") ){\n c1++;\n }else if(str[i].equals(\"TLE\") ){\n c2++;\n }else if(str[i].equals(\"RE\")){\n c3++;\n }",
"str[i].equals(\"AC\")",
"str[i].equals",
"str[i]",
"str",
"i",
"\"AC\"",
"{\n c0++;\n }",
"c0++",
"c0",
"if(str[i].equals(\"WA\") ){\n c1++;\n }else if(str[i].equals(\"TLE\") ){\n c2++;\n }else if(str[i].equals(\"RE\")){\n c3++;\n }",
"str[i].equals(\"WA\")",
"str[i].equals",
"str[i]",
"str",
"i",
"\"WA\"",
"{\n c1++;\n }",
"c1++",
"c1",
"if(str[i].equals(\"TLE\") ){\n c2++;\n }else if(str[i].equals(\"RE\")){\n c3++;\n }",
"str[i].equals(\"TLE\")",
"str[i].equals",
"str[i]",
"str",
"i",
"\"TLE\"",
"{\n c2++;\n }",
"c2++",
"c2",
"if(str[i].equals(\"RE\")){\n c3++;\n }",
"str[i].equals(\"RE\")",
"str[i].equals",
"str[i]",
"str",
"i",
"\"RE\"",
"{\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 int c0=0;\n int c1=0;\n int c2=0;\n int c3=0;\n\n Scanner sc = new Scanner(System.in);\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 sc.close();\n for(int i = 0; i<n; i++){\n if(str[i].equals(\"AC\")) {\n c0++;\n }else if(str[i].equals(\"WA\") ){\n c1++;\n }else if(str[i].equals(\"TLE\") ){\n c2++;\n }else if(str[i].equals(\"RE\")){\n c3++;\n }\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}",
"public class Main {\n public static void main(String[] args) {\n int c0=0;\n int c1=0;\n int c2=0;\n int c3=0;\n\n Scanner sc = new Scanner(System.in);\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 sc.close();\n for(int i = 0; i<n; i++){\n if(str[i].equals(\"AC\")) {\n c0++;\n }else if(str[i].equals(\"WA\") ){\n c1++;\n }else if(str[i].equals(\"TLE\") ){\n c2++;\n }else if(str[i].equals(\"RE\")){\n c3++;\n }\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}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int c0=0;
int c1=0;
int c2=0;
int c3=0;
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();
}
sc.close();
for(int i = 0; i<n; i++){
if(str[i].equals("AC")) {
c0++;
}else if(str[i].equals("WA") ){
c1++;
}else if(str[i].equals("TLE") ){
c2++;
}else if(str[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);
}
} |
[
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,
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
],
[
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
],
[
8,
107
],
[
107,
108
],
[
108,
109
],
[
6,
110
],
[
110,
111
]
]
| [
"import java.util.*;\nclass Main{\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int a = 0, b = 0, c = 0,d = 0;\n for(int i = 1; i <= n; i++) {\n String x = in.next();\n if(x.equals(\"AC\")) a++;\n if(x.equals(\"TLE\")) c++;\n if(x.equals(\"WA\")) b++;\n if(x.equals(\"RE\")) d++;\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 in.close();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int a = 0, b = 0, c = 0,d = 0;\n for(int i = 1; i <= n; i++) {\n String x = in.next();\n if(x.equals(\"AC\")) a++;\n if(x.equals(\"TLE\")) c++;\n if(x.equals(\"WA\")) b++;\n if(x.equals(\"RE\")) d++;\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 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 a = 0, b = 0, c = 0,d = 0;\n for(int i = 1; i <= n; i++) {\n String x = in.next();\n if(x.equals(\"AC\")) a++;\n if(x.equals(\"TLE\")) c++;\n if(x.equals(\"WA\")) b++;\n if(x.equals(\"RE\")) d++;\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 in.close();\n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int a = 0, b = 0, c = 0,d = 0;\n for(int i = 1; i <= n; i++) {\n String x = in.next();\n if(x.equals(\"AC\")) a++;\n if(x.equals(\"TLE\")) c++;\n if(x.equals(\"WA\")) b++;\n if(x.equals(\"RE\")) d++;\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 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 a = 0",
"a",
"0",
"b = 0",
"b",
"0",
"c = 0",
"c",
"0",
"d = 0;",
"d",
"0",
"for(int i = 1; i <= n; i++) {\n String x = in.next();\n if(x.equals(\"AC\")) a++;\n if(x.equals(\"TLE\")) c++;\n if(x.equals(\"WA\")) b++;\n if(x.equals(\"RE\")) d++;\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String x = in.next();\n if(x.equals(\"AC\")) a++;\n if(x.equals(\"TLE\")) c++;\n if(x.equals(\"WA\")) b++;\n if(x.equals(\"RE\")) d++;\n }",
"{\n String x = in.next();\n if(x.equals(\"AC\")) a++;\n if(x.equals(\"TLE\")) c++;\n if(x.equals(\"WA\")) b++;\n if(x.equals(\"RE\")) d++;\n }",
"String x = in.next();",
"x",
"in.next()",
"in.next",
"in",
"if(x.equals(\"AC\")) a++;",
"x.equals(\"AC\")",
"x.equals",
"x",
"\"AC\"",
"a++",
"a",
"if(x.equals(\"TLE\")) c++;",
"x.equals(\"TLE\")",
"x.equals",
"x",
"\"TLE\"",
"c++",
"c",
"if(x.equals(\"WA\")) b++;",
"x.equals(\"WA\")",
"x.equals",
"x",
"\"WA\"",
"b++",
"b",
"if(x.equals(\"RE\")) d++;",
"x.equals(\"RE\")",
"x.equals",
"x",
"\"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",
"in.close()",
"in.close",
"in",
"String[] args",
"args"
]
| import java.util.*;
class Main{
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
int a = 0, b = 0, c = 0,d = 0;
for(int i = 1; i <= n; i++) {
String x = in.next();
if(x.equals("AC")) a++;
if(x.equals("TLE")) c++;
if(x.equals("WA")) b++;
if(x.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);
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,
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,
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,
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
],
[
91,
92
],
[
91,
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
],
[
6,
118
],
[
118,
119
],
[
0,
120
],
[
120,
121
],
[
120,
122
]
]
| [
"import java.util.*;\npublic class Main {\n \tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String a[] = new String[N];\n int AC = 0;\n int WA = 0;\n int TLE = 0;\n int RE = 0;\n for (int count = 0; count < N; count++){\n \t a[count] = sc.next();\n if (a[count].equals(\"AC\")){\n AC++;\n } else if (a[count].equals(\"WA\")){\n WA++;\n } else if (a[count].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.util.*;",
"util.*",
"java",
"public class Main {\n \tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String a[] = new String[N];\n int AC = 0;\n int WA = 0;\n int TLE = 0;\n int RE = 0;\n for (int count = 0; count < N; count++){\n \t a[count] = sc.next();\n if (a[count].equals(\"AC\")){\n AC++;\n } else if (a[count].equals(\"WA\")){\n WA++;\n } else if (a[count].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){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String a[] = new String[N];\n int AC = 0;\n int WA = 0;\n int TLE = 0;\n int RE = 0;\n for (int count = 0; count < N; count++){\n \t a[count] = sc.next();\n if (a[count].equals(\"AC\")){\n AC++;\n } else if (a[count].equals(\"WA\")){\n WA++;\n } else if (a[count].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 String a[] = new String[N];\n int AC = 0;\n int WA = 0;\n int TLE = 0;\n int RE = 0;\n for (int count = 0; count < N; count++){\n \t a[count] = sc.next();\n if (a[count].equals(\"AC\")){\n AC++;\n } else if (a[count].equals(\"WA\")){\n WA++;\n } else if (a[count].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",
"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 count = 0; count < N; count++){\n \t a[count] = sc.next();\n if (a[count].equals(\"AC\")){\n AC++;\n } else if (a[count].equals(\"WA\")){\n WA++;\n } else if (a[count].equals(\"TLE\")){\n TLE++;\n } else {\n RE++;\n }\n }",
"int count = 0;",
"int count = 0;",
"count",
"0",
"count < N",
"count",
"N",
"count++",
"count++",
"count",
"{\n \t a[count] = sc.next();\n if (a[count].equals(\"AC\")){\n AC++;\n } else if (a[count].equals(\"WA\")){\n WA++;\n } else if (a[count].equals(\"TLE\")){\n TLE++;\n } else {\n RE++;\n }\n }",
"{\n \t a[count] = sc.next();\n if (a[count].equals(\"AC\")){\n AC++;\n } else if (a[count].equals(\"WA\")){\n WA++;\n } else if (a[count].equals(\"TLE\")){\n TLE++;\n } else {\n RE++;\n }\n }",
"a[count] = sc.next()",
"a[count]",
"a",
"count",
"sc.next()",
"sc.next",
"sc",
"if (a[count].equals(\"AC\")){\n AC++;\n } else if (a[count].equals(\"WA\")){\n WA++;\n } else if (a[count].equals(\"TLE\")){\n TLE++;\n } else {\n RE++;\n }",
"a[count].equals(\"AC\")",
"a[count].equals",
"a[count]",
"a",
"count",
"\"AC\"",
"{\n AC++;\n }",
"AC++",
"AC",
"if (a[count].equals(\"WA\")){\n WA++;\n } else if (a[count].equals(\"TLE\")){\n TLE++;\n } else {\n RE++;\n }",
"a[count].equals(\"WA\")",
"a[count].equals",
"a[count]",
"a",
"count",
"\"WA\"",
"{\n WA++;\n }",
"WA++",
"WA",
"if (a[count].equals(\"TLE\")){\n TLE++;\n } else {\n RE++;\n }",
"a[count].equals(\"TLE\")",
"a[count].equals",
"a[count]",
"a",
"count",
"\"TLE\"",
"{\n TLE++;\n }",
"TLE++",
"TLE",
"{\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 \tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String a[] = new String[N];\n int AC = 0;\n int WA = 0;\n int TLE = 0;\n int RE = 0;\n for (int count = 0; count < N; count++){\n \t a[count] = sc.next();\n if (a[count].equals(\"AC\")){\n AC++;\n } else if (a[count].equals(\"WA\")){\n WA++;\n } else if (a[count].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 \tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String a[] = new String[N];\n int AC = 0;\n int WA = 0;\n int TLE = 0;\n int RE = 0;\n for (int count = 0; count < N; count++){\n \t a[count] = sc.next();\n if (a[count].equals(\"AC\")){\n AC++;\n } else if (a[count].equals(\"WA\")){\n WA++;\n } else if (a[count].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.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
String a[] = new String[N];
int AC = 0;
int WA = 0;
int TLE = 0;
int RE = 0;
for (int count = 0; count < N; count++){
a[count] = sc.next();
if (a[count].equals("AC")){
AC++;
} else if (a[count].equals("WA")){
WA++;
} else if (a[count].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,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
115,
11
],
[
115,
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
],
[
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
],
[
14,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
14,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
14,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
14,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
109,
110
],
[
109,
111
],
[
12,
112
],
[
112,
113
],
[
0,
114
],
[
114,
115
],
[
114,
116
]
]
| [
"\nimport java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\n\n\n/* Name of the class has to be \"Main\" only if the class is public. */\n\n\n\npublic class Main\n{\n \n \n \n \n \npublic static void main (String[] args) throws java.lang.Exception\n{Scanner scn = new Scanner(System.in) ;\n int n = scn.nextInt() ;\n int a = 0 ; int t = 0 ; int r= 0 ; int w = 0;\n for(int k = 1; k <= n ; k++ )\n {\n String str = scn.next() ;\n \n if(str.equals(\"AC\"))\n {\n a++ ;\n }\n else if(str.equals(\"WA\"))\n {\n w++ ;\n }\n else if(str.equals(\"TLE\"))\n {\n t++ ;\n }\n \n else \n {\n r++ ;\n }\n \n }\n \n System.out.println(\"AC x \" + a ) ;\nSystem.out.println(\"WA x \" + w) ;\nSystem.out.println(\"TLE x \" + t) ; \nSystem.out.println(\"RE x \" + r) ;\n \n \n}\n}\n\n\n\n\n \n ",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main\n{\n \n \n \n \n \npublic static void main (String[] args) throws java.lang.Exception\n{Scanner scn = new Scanner(System.in) ;\n int n = scn.nextInt() ;\n int a = 0 ; int t = 0 ; int r= 0 ; int w = 0;\n for(int k = 1; k <= n ; k++ )\n {\n String str = scn.next() ;\n \n if(str.equals(\"AC\"))\n {\n a++ ;\n }\n else if(str.equals(\"WA\"))\n {\n w++ ;\n }\n else if(str.equals(\"TLE\"))\n {\n t++ ;\n }\n \n else \n {\n r++ ;\n }\n \n }\n \n System.out.println(\"AC x \" + a ) ;\nSystem.out.println(\"WA x \" + w) ;\nSystem.out.println(\"TLE x \" + t) ; \nSystem.out.println(\"RE x \" + r) ;\n \n \n}\n}",
"Main",
"public static void main (String[] args) throws java.lang.Exception\n{Scanner scn = new Scanner(System.in) ;\n int n = scn.nextInt() ;\n int a = 0 ; int t = 0 ; int r= 0 ; int w = 0;\n for(int k = 1; k <= n ; k++ )\n {\n String str = scn.next() ;\n \n if(str.equals(\"AC\"))\n {\n a++ ;\n }\n else if(str.equals(\"WA\"))\n {\n w++ ;\n }\n else if(str.equals(\"TLE\"))\n {\n t++ ;\n }\n \n else \n {\n r++ ;\n }\n \n }\n \n System.out.println(\"AC x \" + a ) ;\nSystem.out.println(\"WA x \" + w) ;\nSystem.out.println(\"TLE x \" + t) ; \nSystem.out.println(\"RE x \" + r) ;\n \n \n}",
"main",
"{Scanner scn = new Scanner(System.in) ;\n int n = scn.nextInt() ;\n int a = 0 ; int t = 0 ; int r= 0 ; int w = 0;\n for(int k = 1; k <= n ; k++ )\n {\n String str = scn.next() ;\n \n if(str.equals(\"AC\"))\n {\n a++ ;\n }\n else if(str.equals(\"WA\"))\n {\n w++ ;\n }\n else if(str.equals(\"TLE\"))\n {\n t++ ;\n }\n \n else \n {\n r++ ;\n }\n \n }\n \n System.out.println(\"AC x \" + a ) ;\nSystem.out.println(\"WA x \" + w) ;\nSystem.out.println(\"TLE x \" + t) ; \nSystem.out.println(\"RE x \" + r) ;\n \n \n}",
"Scanner scn = new Scanner(System.in) ;",
"scn",
"new Scanner(System.in)",
"int n = scn.nextInt() ;",
"n",
"scn.nextInt()",
"scn.nextInt",
"scn",
"int a = 0 ;",
"a",
"0",
"int t = 0 ;",
"t",
"0",
"int r= 0 ;",
"r",
"0",
"int w = 0;",
"w",
"0",
"for(int k = 1; k <= n ; k++ )\n {\n String str = scn.next() ;\n \n if(str.equals(\"AC\"))\n {\n a++ ;\n }\n else if(str.equals(\"WA\"))\n {\n w++ ;\n }\n else if(str.equals(\"TLE\"))\n {\n t++ ;\n }\n \n else \n {\n r++ ;\n }\n \n }",
"int k = 1;",
"int k = 1;",
"k",
"1",
"k <= n",
"k",
"n",
"k++",
"k++",
"k",
"{\n String str = scn.next() ;\n \n if(str.equals(\"AC\"))\n {\n a++ ;\n }\n else if(str.equals(\"WA\"))\n {\n w++ ;\n }\n else if(str.equals(\"TLE\"))\n {\n t++ ;\n }\n \n else \n {\n r++ ;\n }\n \n }",
"{\n String str = scn.next() ;\n \n if(str.equals(\"AC\"))\n {\n a++ ;\n }\n else if(str.equals(\"WA\"))\n {\n w++ ;\n }\n else if(str.equals(\"TLE\"))\n {\n t++ ;\n }\n \n else \n {\n r++ ;\n }\n \n }",
"String str = scn.next() ;",
"str",
"scn.next()",
"scn.next",
"scn",
"if(str.equals(\"AC\"))\n {\n a++ ;\n }\n else if(str.equals(\"WA\"))\n {\n w++ ;\n }\n else if(str.equals(\"TLE\"))\n {\n t++ ;\n }\n \n else \n {\n r++ ;\n }",
"str.equals(\"AC\")",
"str.equals",
"str",
"\"AC\"",
"{\n a++ ;\n }",
"a++",
"a",
"if(str.equals(\"WA\"))\n {\n w++ ;\n }\n else if(str.equals(\"TLE\"))\n {\n t++ ;\n }\n \n else \n {\n r++ ;\n }",
"str.equals(\"WA\")",
"str.equals",
"str",
"\"WA\"",
"{\n w++ ;\n }",
"w++",
"w",
"if(str.equals(\"TLE\"))\n {\n t++ ;\n }\n \n else \n {\n r++ ;\n }",
"str.equals(\"TLE\")",
"str.equals",
"str",
"\"TLE\"",
"{\n t++ ;\n }",
"t++",
"t",
"{\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{\n \n \n \n \n \npublic static void main (String[] args) throws java.lang.Exception\n{Scanner scn = new Scanner(System.in) ;\n int n = scn.nextInt() ;\n int a = 0 ; int t = 0 ; int r= 0 ; int w = 0;\n for(int k = 1; k <= n ; k++ )\n {\n String str = scn.next() ;\n \n if(str.equals(\"AC\"))\n {\n a++ ;\n }\n else if(str.equals(\"WA\"))\n {\n w++ ;\n }\n else if(str.equals(\"TLE\"))\n {\n t++ ;\n }\n \n else \n {\n r++ ;\n }\n \n }\n \n System.out.println(\"AC x \" + a ) ;\nSystem.out.println(\"WA x \" + w) ;\nSystem.out.println(\"TLE x \" + t) ; \nSystem.out.println(\"RE x \" + r) ;\n \n \n}\n}",
"public class Main\n{\n \n \n \n \n \npublic static void main (String[] args) throws java.lang.Exception\n{Scanner scn = new Scanner(System.in) ;\n int n = scn.nextInt() ;\n int a = 0 ; int t = 0 ; int r= 0 ; int w = 0;\n for(int k = 1; k <= n ; k++ )\n {\n String str = scn.next() ;\n \n if(str.equals(\"AC\"))\n {\n a++ ;\n }\n else if(str.equals(\"WA\"))\n {\n w++ ;\n }\n else if(str.equals(\"TLE\"))\n {\n t++ ;\n }\n \n else \n {\n r++ ;\n }\n \n }\n \n System.out.println(\"AC x \" + a ) ;\nSystem.out.println(\"WA x \" + w) ;\nSystem.out.println(\"TLE x \" + t) ; \nSystem.out.println(\"RE x \" + r) ;\n \n \n}\n}",
"Main"
]
|
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
public static void main (String[] args) throws java.lang.Exception
{Scanner scn = new Scanner(System.in) ;
int n = scn.nextInt() ;
int a = 0 ; int t = 0 ; int r= 0 ; int w = 0;
for(int k = 1; k <= n ; k++ )
{
String str = scn.next() ;
if(str.equals("AC"))
{
a++ ;
}
else if(str.equals("WA"))
{
w++ ;
}
else if(str.equals("TLE"))
{
t++ ;
}
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,
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,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
2,
4,
18,
13,
13,
17,
17,
41,
13,
20,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
13,
17,
4,
18,
13,
13,
17,
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
],
[
30,
33
],
[
29,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
45,
49
],
[
44,
50
],
[
11,
51
],
[
51,
52
],
[
51,
53
],
[
11,
54
],
[
54,
55
],
[
54,
56
],
[
54,
57
],
[
58,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
65,
65
],
[
65,
66
],
[
65,
67
],
[
65,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
68,
72
],
[
9,
73
],
[
73,
74
]
]
| [
"import java.util.*;\nimport java.io.*;\n\nclass Main\n{\n public static void main(String[] args) throws IOException{\n // Solution sol = new Solution();\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(br.readLine());\n int t = Integer.parseInt(st.nextToken());\n HashMap<String,Integer> hm = new HashMap();\n while(t--!=0) {\n String s = br.readLine();\n hm.put(s,hm.getOrDefault(s, 0)+1);\n }\n String[] sarr = new String[]{\"AC\",\"WA\",\"TLE\",\"RE\"};\n\n for(String x: sarr) {\n System.out.println(x+\" x \"+hm.getOrDefault(x,0));\n }\n\n\n }\n\n \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 // Solution sol = new Solution();\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(br.readLine());\n int t = Integer.parseInt(st.nextToken());\n HashMap<String,Integer> hm = new HashMap();\n while(t--!=0) {\n String s = br.readLine();\n hm.put(s,hm.getOrDefault(s, 0)+1);\n }\n String[] sarr = new String[]{\"AC\",\"WA\",\"TLE\",\"RE\"};\n\n for(String x: sarr) {\n System.out.println(x+\" x \"+hm.getOrDefault(x,0));\n }\n\n\n }\n\n \n\n\n \n\n}",
"Main",
"public static void main(String[] args) throws IOException{\n // Solution sol = new Solution();\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(br.readLine());\n int t = Integer.parseInt(st.nextToken());\n HashMap<String,Integer> hm = new HashMap();\n while(t--!=0) {\n String s = br.readLine();\n hm.put(s,hm.getOrDefault(s, 0)+1);\n }\n String[] sarr = new String[]{\"AC\",\"WA\",\"TLE\",\"RE\"};\n\n for(String x: sarr) {\n System.out.println(x+\" x \"+hm.getOrDefault(x,0));\n }\n\n\n }",
"main",
"{\n // Solution sol = new Solution();\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(br.readLine());\n int t = Integer.parseInt(st.nextToken());\n HashMap<String,Integer> hm = new HashMap();\n while(t--!=0) {\n String s = br.readLine();\n hm.put(s,hm.getOrDefault(s, 0)+1);\n }\n String[] sarr = new String[]{\"AC\",\"WA\",\"TLE\",\"RE\"};\n\n for(String x: sarr) {\n System.out.println(x+\" x \"+hm.getOrDefault(x,0));\n }\n\n\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st = new StringTokenizer(br.readLine());",
"st",
"new StringTokenizer(br.readLine())",
"int t = Integer.parseInt(st.nextToken());",
"t",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"HashMap<String,Integer> hm = new HashMap();",
"hm",
"new HashMap()",
"while(t--!=0) {\n String s = br.readLine();\n hm.put(s,hm.getOrDefault(s, 0)+1);\n }",
"t--!=0",
"t--",
"t",
"0",
"{\n String s = br.readLine();\n hm.put(s,hm.getOrDefault(s, 0)+1);\n }",
"String s = br.readLine();",
"s",
"br.readLine()",
"br.readLine",
"br",
"hm.put(s,hm.getOrDefault(s, 0)+1)",
"hm.put",
"hm",
"s",
"hm.getOrDefault(s, 0)+1",
"hm.getOrDefault(s, 0)",
"hm.getOrDefault",
"hm",
"s",
"0",
"1",
"String[] sarr = new String[]{\"AC\",\"WA\",\"TLE\",\"RE\"};",
"sarr",
"new String[]{\"AC\",\"WA\",\"TLE\",\"RE\"}",
"for(String x: sarr) {\n System.out.println(x+\" x \"+hm.getOrDefault(x,0));\n }",
"String x",
"sarr",
"{\n System.out.println(x+\" x \"+hm.getOrDefault(x,0));\n }",
"{\n System.out.println(x+\" x \"+hm.getOrDefault(x,0));\n }",
"System.out.println(x+\" x \"+hm.getOrDefault(x,0))",
"System.out.println",
"System.out",
"System",
"System.out",
"x+\" x \"+hm.getOrDefault(x,0)",
"x+\" x \"+hm.getOrDefault(x,0)",
"x",
"\" x \"",
"hm.getOrDefault(x,0)",
"hm.getOrDefault",
"hm",
"x",
"0",
"String[] args",
"args"
]
| import java.util.*;
import java.io.*;
class Main
{
public static void main(String[] args) throws IOException{
// Solution sol = new Solution();
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer(br.readLine());
int t = Integer.parseInt(st.nextToken());
HashMap<String,Integer> hm = new HashMap();
while(t--!=0) {
String s = br.readLine();
hm.put(s,hm.getOrDefault(s, 0)+1);
}
String[] sarr = new String[]{"AC","WA","TLE","RE"};
for(String x: sarr) {
System.out.println(x+" x "+hm.getOrDefault(x,0));
}
}
} |
[
7,
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,
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
],
[
115,
5
],
[
115,
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
],
[
21,
22
],
[
20,
23
],
[
20,
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
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
40,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
58,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
62,
67
],
[
8,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
8,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
8,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
8,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
6,
112
],
[
112,
113
],
[
0,
114
],
[
114,
115
],
[
114,
116
]
]
| [
"import java.util.*;\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\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\tString S = sc.next();\n\t\t\tmap.put(S, map.get(S)+1);\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}\n}",
"import java.util.*;",
"util.*",
"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\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\tString S = sc.next();\n\t\t\tmap.put(S, map.get(S)+1);\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}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\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\tString S = sc.next();\n\t\t\tmap.put(S, map.get(S)+1);\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}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\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\tString S = sc.next();\n\t\t\tmap.put(S, map.get(S)+1);\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}",
"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<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\tString S = sc.next();\n\t\t\tmap.put(S, map.get(S)+1);\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\tmap.put(S, map.get(S)+1);\n\t\t}",
"{\n\t\t\tString S = sc.next();\n\t\t\tmap.put(S, map.get(S)+1);\n\t\t}",
"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\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\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\tString S = sc.next();\n\t\t\tmap.put(S, map.get(S)+1);\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}\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\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\tString S = sc.next();\n\t\t\tmap.put(S, map.get(S)+1);\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}\n}",
"Main"
]
| import java.util.*;
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<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 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,
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,
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
],
[
134,
5
],
[
134,
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
],
[
83,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
81,
87
],
[
83,
88
],
[
8,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
97,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
95,
101
],
[
97,
102
],
[
8,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
111,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
109,
115
],
[
111,
116
],
[
8,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
125,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
124,
128
],
[
123,
129
],
[
125,
130
],
[
6,
131
],
[
131,
132
],
[
0,
133
],
[
133,
134
],
[
133,
135
]
]
| [
"import java.util.*;\npublic class Main\n{\n public static void main(String []args)\n {\n Scanner sc=new Scanner(System.in);\n int a=sc.nextInt();\n int c1=0;\n int c2=0;\n int c3=0;\n int c4=0;\n for(int i=0;i<a;i++)\n {\n String s=sc.next();\n if(s.equals(\"AC\"))\n c1++;\n if(s.equals(\"WA\"))\n c2++;\n if(s.equals(\"TLE\"))\n c3++;\n if(s.equals(\"RE\"))\n c4++;\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}",
"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 a=sc.nextInt();\n int c1=0;\n int c2=0;\n int c3=0;\n int c4=0;\n for(int i=0;i<a;i++)\n {\n String s=sc.next();\n if(s.equals(\"AC\"))\n c1++;\n if(s.equals(\"WA\"))\n c2++;\n if(s.equals(\"TLE\"))\n c3++;\n if(s.equals(\"RE\"))\n c4++;\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}",
"Main",
"public static void main(String []args)\n {\n Scanner sc=new Scanner(System.in);\n int a=sc.nextInt();\n int c1=0;\n int c2=0;\n int c3=0;\n int c4=0;\n for(int i=0;i<a;i++)\n {\n String s=sc.next();\n if(s.equals(\"AC\"))\n c1++;\n if(s.equals(\"WA\"))\n c2++;\n if(s.equals(\"TLE\"))\n c3++;\n if(s.equals(\"RE\"))\n c4++;\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 sc=new Scanner(System.in);\n int a=sc.nextInt();\n int c1=0;\n int c2=0;\n int c3=0;\n int c4=0;\n for(int i=0;i<a;i++)\n {\n String s=sc.next();\n if(s.equals(\"AC\"))\n c1++;\n if(s.equals(\"WA\"))\n c2++;\n if(s.equals(\"TLE\"))\n c3++;\n if(s.equals(\"RE\"))\n c4++;\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 sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a=sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"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<a;i++)\n {\n String s=sc.next();\n if(s.equals(\"AC\"))\n c1++;\n if(s.equals(\"WA\"))\n c2++;\n if(s.equals(\"TLE\"))\n c3++;\n if(s.equals(\"RE\"))\n c4++;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<a",
"i",
"a",
"i++",
"i++",
"i",
"{\n String s=sc.next();\n if(s.equals(\"AC\"))\n c1++;\n if(s.equals(\"WA\"))\n c2++;\n if(s.equals(\"TLE\"))\n c3++;\n if(s.equals(\"RE\"))\n c4++;\n }",
"{\n String s=sc.next();\n if(s.equals(\"AC\"))\n c1++;\n if(s.equals(\"WA\"))\n c2++;\n if(s.equals(\"TLE\"))\n c3++;\n if(s.equals(\"RE\"))\n c4++;\n }",
"String s=sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"if(s.equals(\"AC\"))\n c1++;",
"s.equals(\"AC\")",
"s.equals",
"s",
"\"AC\"",
"c1++",
"c1",
"if(s.equals(\"WA\"))\n c2++;",
"s.equals(\"WA\")",
"s.equals",
"s",
"\"WA\"",
"c2++",
"c2",
"if(s.equals(\"TLE\"))\n c3++;",
"s.equals(\"TLE\")",
"s.equals",
"s",
"\"TLE\"",
"c3++",
"c3",
"if(s.equals(\"RE\"))\n c4++;",
"s.equals(\"RE\")",
"s.equals",
"s",
"\"RE\"",
"c4++",
"c4",
"System.out.println(\"AC\"+\" \"+\"x\" +\" \"+ c1)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC\"+\" \"+\"x\" +\" \"+ c1",
"\" \"",
"\"x\"",
"\"AC\"+\" \"+\"x\" +\" \"+ c1",
"\"AC\"",
"\" \"",
"\"x\"",
"\" \"",
"c1",
"System.out.println(\"WA\"+\" \"+\"x\" + \" \"+c2)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA\"+\" \"+\"x\" + \" \"+c2",
"\" \"",
"\"x\"",
"\"WA\"+\" \"+\"x\" + \" \"+c2",
"\"WA\"",
"\" \"",
"\"x\"",
"\" \"",
"c2",
"System.out.println(\"TLE\"+\" \"+\"x\" +\" \" +c3)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE\"+\" \"+\"x\" +\" \" +c3",
"\" \"",
"\"x\"",
"\"TLE\"+\" \"+\"x\" +\" \" +c3",
"\"TLE\"",
"\" \"",
"\"x\"",
"\" \"",
"c3",
"System.out.println(\"RE\"+\" \"+\"x\" + \" \" +c4)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE\"+\" \"+\"x\" + \" \" +c4",
"\" \"",
"\"x\"",
"\"RE\"+\" \"+\"x\" + \" \" +c4",
"\"RE\"",
"\" \"",
"\"x\"",
"\" \"",
"c4",
"String []args",
"args",
"public class Main\n{\n public static void main(String []args)\n {\n Scanner sc=new Scanner(System.in);\n int a=sc.nextInt();\n int c1=0;\n int c2=0;\n int c3=0;\n int c4=0;\n for(int i=0;i<a;i++)\n {\n String s=sc.next();\n if(s.equals(\"AC\"))\n c1++;\n if(s.equals(\"WA\"))\n c2++;\n if(s.equals(\"TLE\"))\n c3++;\n if(s.equals(\"RE\"))\n c4++;\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}",
"public class Main\n{\n public static void main(String []args)\n {\n Scanner sc=new Scanner(System.in);\n int a=sc.nextInt();\n int c1=0;\n int c2=0;\n int c3=0;\n int c4=0;\n for(int i=0;i<a;i++)\n {\n String s=sc.next();\n if(s.equals(\"AC\"))\n c1++;\n if(s.equals(\"WA\"))\n c2++;\n if(s.equals(\"TLE\"))\n c3++;\n if(s.equals(\"RE\"))\n c4++;\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}",
"Main"
]
| import java.util.*;
public class Main
{
public static void main(String []args)
{
Scanner sc=new Scanner(System.in);
int a=sc.nextInt();
int c1=0;
int c2=0;
int c3=0;
int c4=0;
for(int i=0;i<a;i++)
{
String s=sc.next();
if(s.equals("AC"))
c1++;
if(s.equals("WA"))
c2++;
if(s.equals("TLE"))
c3++;
if(s.equals("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,
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,
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
],
[
116,
11
],
[
116,
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
],
[
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
],
[
47,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
60,
65
],
[
65,
66
],
[
47,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
67,
72
],
[
72,
73
],
[
47,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
74,
79
],
[
79,
80
],
[
14,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
86,
87
],
[
86,
88
],
[
14,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
14,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
14,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
110,
111
],
[
110,
112
],
[
12,
113
],
[
113,
114
],
[
0,
115
],
[
115,
116
],
[
115,
117
]
]
| [
"import java.util.*;\nimport java.io.*;\nimport java.lang.*;\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\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 a = sc.next();\n\n if (a.equals(\"AC\"))\n AC++;\n if (a.equals(\"WA\"))\n WA++;\n if (a.equals(\"TLE\"))\n TLE++;\n if (a.equals(\"RE\"))\n RE++;\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",
"import java.lang.*;",
"lang.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\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 String a = sc.next();\n\n if (a.equals(\"AC\"))\n AC++;\n if (a.equals(\"WA\"))\n WA++;\n if (a.equals(\"TLE\"))\n TLE++;\n if (a.equals(\"RE\"))\n RE++;\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 Scanner sc = new Scanner(System.in);\n\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 String a = sc.next();\n\n if (a.equals(\"AC\"))\n AC++;\n if (a.equals(\"WA\"))\n WA++;\n if (a.equals(\"TLE\"))\n TLE++;\n if (a.equals(\"RE\"))\n RE++;\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\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 String a = sc.next();\n\n if (a.equals(\"AC\"))\n AC++;\n if (a.equals(\"WA\"))\n WA++;\n if (a.equals(\"TLE\"))\n TLE++;\n if (a.equals(\"RE\"))\n RE++;\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 String a = sc.next();\n\n if (a.equals(\"AC\"))\n AC++;\n if (a.equals(\"WA\"))\n WA++;\n if (a.equals(\"TLE\"))\n TLE++;\n if (a.equals(\"RE\"))\n RE++;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String a = sc.next();\n\n if (a.equals(\"AC\"))\n AC++;\n if (a.equals(\"WA\"))\n WA++;\n if (a.equals(\"TLE\"))\n TLE++;\n if (a.equals(\"RE\"))\n RE++;\n }",
"{\n String a = sc.next();\n\n if (a.equals(\"AC\"))\n AC++;\n if (a.equals(\"WA\"))\n WA++;\n if (a.equals(\"TLE\"))\n TLE++;\n if (a.equals(\"RE\"))\n RE++;\n }",
"String a = sc.next();",
"a",
"sc.next()",
"sc.next",
"sc",
"if (a.equals(\"AC\"))\n AC++;",
"a.equals(\"AC\")",
"a.equals",
"a",
"\"AC\"",
"AC++",
"AC",
"if (a.equals(\"WA\"))\n WA++;",
"a.equals(\"WA\")",
"a.equals",
"a",
"\"WA\"",
"WA++",
"WA",
"if (a.equals(\"TLE\"))\n TLE++;",
"a.equals(\"TLE\")",
"a.equals",
"a",
"\"TLE\"",
"TLE++",
"TLE",
"if (a.equals(\"RE\"))\n RE++;",
"a.equals(\"RE\")",
"a.equals",
"a",
"\"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\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 String a = sc.next();\n\n if (a.equals(\"AC\"))\n AC++;\n if (a.equals(\"WA\"))\n WA++;\n if (a.equals(\"TLE\"))\n TLE++;\n if (a.equals(\"RE\"))\n RE++;\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 Scanner sc = new Scanner(System.in);\n\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 String a = sc.next();\n\n if (a.equals(\"AC\"))\n AC++;\n if (a.equals(\"WA\"))\n WA++;\n if (a.equals(\"TLE\"))\n TLE++;\n if (a.equals(\"RE\"))\n RE++;\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.*;
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;
for (int i = 0;i<n; i++){
String a = sc.next();
if (a.equals("AC"))
AC++;
if (a.equals("WA"))
WA++;
if (a.equals("TLE"))
TLE++;
if (a.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,
4,
18,
13,
13,
41,
13,
39,
17,
17,
17,
17,
41,
13,
17,
41,
13,
20,
18,
13,
13,
4,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
40,
18,
13,
4,
18,
4,
18,
13,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
13,
18,
13,
13,
29,
23,
13,
6,
13,
41,
13,
2,
17,
17,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
13,
0,
13,
0,
13,
17,
12,
13,
30,
0,
13,
20,
0,
13,
20,
13,
0,
13,
0,
13,
17,
23,
13,
12,
13,
30,
14,
2,
13,
13,
4,
13,
29,
18,
13,
40,
13,
12,
13,
30,
14,
2,
13,
17,
29,
4,
18,
13,
12,
13,
30,
0,
13,
4,
18,
13,
13,
0,
13,
17,
13,
14,
2,
13,
40,
17,
0,
18,
13,
17,
40,
17,
12,
13,
30,
41,
13,
4,
13,
42,
4,
18,
13,
13,
30,
0,
13,
4,
13,
29,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
18,
13,
13,
30,
0,
13,
4,
13,
41,
13,
20,
4,
18,
13,
13,
0,
13,
4,
13,
42,
40,
4,
18,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
41,
13,
17,
41,
13,
4,
13,
42,
2,
13,
17,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
13,
29,
40,
13,
29,
13,
12,
13,
30,
41,
13,
17,
41,
13,
4,
13,
42,
2,
13,
17,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
13,
29,
40,
13,
29,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
4,
13,
42,
2,
13,
17,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
2,
13,
17,
30,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
13,
17,
0,
13,
17,
14,
13,
29,
40,
13,
29,
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,
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,
29,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
583,
8
],
[
583,
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
],
[
28,
29
],
[
28,
30
],
[
28,
31
],
[
28,
32
],
[
11,
33
],
[
33,
34
],
[
33,
35
],
[
11,
36
],
[
36,
37
],
[
36,
38
],
[
39,
40
],
[
39,
41
],
[
11,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
42,
46
],
[
11,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
62,
68
],
[
68,
69
],
[
68,
70
],
[
11,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
71,
81
],
[
81,
82
],
[
82,
83
],
[
71,
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
],
[
11,
99
],
[
9,
100
],
[
100,
101
],
[
583,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
106,
108
],
[
102,
109
],
[
109,
110
],
[
102,
111
],
[
111,
112
],
[
102,
113
],
[
113,
114
],
[
102,
115
],
[
115,
116
],
[
102,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
123,
124
],
[
123,
125
],
[
119,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
129,
131
],
[
102,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
138,
139
],
[
138,
140
],
[
134,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
144,
146
],
[
132,
147
],
[
147,
148
],
[
102,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
156,
157
],
[
151,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
102,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
165,
171
],
[
171,
172
],
[
172,
173
],
[
102,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
180,
181
],
[
179,
182
],
[
179,
183
],
[
183,
184
],
[
183,
185
],
[
179,
186
],
[
176,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
190,
191
],
[
187,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
192,
196
],
[
196,
197
],
[
102,
198
],
[
198,
199
],
[
198,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
203,
204
],
[
200,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
206,
209
],
[
205,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
200,
215
],
[
215,
216
],
[
102,
217
],
[
217,
218
],
[
217,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
219,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
225,
228
],
[
224,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
232,
233
],
[
219,
234
],
[
234,
235
],
[
234,
236
],
[
219,
237
],
[
237,
238
],
[
238,
239
],
[
237,
240
],
[
219,
241
],
[
241,
242
],
[
241,
243
],
[
243,
244
],
[
219,
245
],
[
245,
246
],
[
246,
247
],
[
247,
248
],
[
248,
249
],
[
247,
250
],
[
245,
251
],
[
251,
252
],
[
252,
253
],
[
253,
254
],
[
252,
255
],
[
251,
256
],
[
256,
257
],
[
256,
258
],
[
258,
259
],
[
219,
260
],
[
260,
261
],
[
261,
262
],
[
262,
263
],
[
102,
264
],
[
264,
265
],
[
264,
266
],
[
266,
267
],
[
267,
268
],
[
267,
269
],
[
266,
270
],
[
270,
271
],
[
270,
272
],
[
272,
273
],
[
266,
274
],
[
274,
275
],
[
275,
276
],
[
275,
277
],
[
274,
278
],
[
278,
279
],
[
278,
280
],
[
280,
281
],
[
266,
282
],
[
282,
283
],
[
282,
284
],
[
284,
285
],
[
284,
286
],
[
266,
287
],
[
287,
288
],
[
287,
289
],
[
289,
290
],
[
289,
291
],
[
291,
292
],
[
266,
293
],
[
293,
294
],
[
294,
295
],
[
295,
296
],
[
296,
297
],
[
296,
298
],
[
298,
299
],
[
295,
300
],
[
294,
301
],
[
301,
302
],
[
301,
303
],
[
293,
304
],
[
304,
305
],
[
305,
306
],
[
305,
307
],
[
307,
308
],
[
308,
309
],
[
309,
310
],
[
309,
311
],
[
308,
312
],
[
307,
313
],
[
266,
314
],
[
314,
315
],
[
314,
316
],
[
316,
317
],
[
317,
318
],
[
266,
319
],
[
319,
320
],
[
102,
321
],
[
321,
322
],
[
321,
323
],
[
323,
324
],
[
324,
325
],
[
324,
326
],
[
323,
327
],
[
327,
328
],
[
327,
329
],
[
329,
330
],
[
323,
331
],
[
331,
332
],
[
332,
333
],
[
332,
334
],
[
331,
335
],
[
335,
336
],
[
335,
337
],
[
337,
338
],
[
323,
339
],
[
339,
340
],
[
339,
341
],
[
341,
342
],
[
341,
343
],
[
323,
344
],
[
344,
345
],
[
344,
346
],
[
346,
347
],
[
346,
348
],
[
348,
349
],
[
323,
350
],
[
350,
351
],
[
351,
352
],
[
352,
353
],
[
353,
354
],
[
353,
355
],
[
355,
356
],
[
352,
357
],
[
351,
358
],
[
358,
359
],
[
358,
360
],
[
350,
361
],
[
361,
362
],
[
362,
363
],
[
362,
364
],
[
364,
365
],
[
365,
366
],
[
366,
367
],
[
366,
368
],
[
365,
369
],
[
364,
370
],
[
323,
371
],
[
371,
372
],
[
371,
373
],
[
373,
374
],
[
374,
375
],
[
323,
376
],
[
376,
377
],
[
102,
378
],
[
378,
379
],
[
378,
380
],
[
380,
381
],
[
381,
382
],
[
381,
383
],
[
380,
384
],
[
384,
385
],
[
384,
386
],
[
380,
387
],
[
387,
388
],
[
387,
389
],
[
389,
390
],
[
380,
391
],
[
391,
392
],
[
392,
393
],
[
392,
394
],
[
391,
395
],
[
395,
396
],
[
395,
397
],
[
397,
398
],
[
380,
399
],
[
399,
400
],
[
399,
401
],
[
401,
402
],
[
401,
403
],
[
380,
404
],
[
404,
405
],
[
404,
406
],
[
406,
407
],
[
406,
408
],
[
408,
409
],
[
380,
410
],
[
410,
411
],
[
411,
412
],
[
412,
413
],
[
413,
414
],
[
413,
415
],
[
415,
416
],
[
412,
417
],
[
411,
418
],
[
418,
419
],
[
418,
420
],
[
410,
421
],
[
421,
422
],
[
422,
423
],
[
422,
424
],
[
424,
425
],
[
425,
426
],
[
426,
427
],
[
426,
428
],
[
425,
429
],
[
424,
430
],
[
380,
431
],
[
431,
432
],
[
432,
433
],
[
432,
434
],
[
431,
435
],
[
435,
436
],
[
436,
437
],
[
437,
438
],
[
438,
439
],
[
439,
440
],
[
439,
441
],
[
441,
442
],
[
438,
443
],
[
437,
444
],
[
444,
445
],
[
444,
446
],
[
436,
447
],
[
447,
448
],
[
448,
449
],
[
448,
450
],
[
450,
451
],
[
451,
452
],
[
451,
453
],
[
450,
454
],
[
454,
455
],
[
454,
456
],
[
380,
457
],
[
457,
458
],
[
457,
459
],
[
459,
460
],
[
460,
461
],
[
380,
462
],
[
462,
463
],
[
102,
464
],
[
464,
465
],
[
464,
466
],
[
466,
467
],
[
467,
468
],
[
467,
469
],
[
466,
471
],
[
471,
472
],
[
472,
473
],
[
473,
474
],
[
473,
475
],
[
471,
476
],
[
476,
477
],
[
476,
478
],
[
471,
479
],
[
479,
480
],
[
480,
481
],
[
471,
482
],
[
483,
483
],
[
483,
484
],
[
484,
485
],
[
485,
486
],
[
485,
487
],
[
484,
488
],
[
488,
489
],
[
466,
490
],
[
490,
491
],
[
464,
492
],
[
492,
493
],
[
102,
494
],
[
494,
495
],
[
494,
496
],
[
496,
497
],
[
497,
498
],
[
497,
499
],
[
496,
501
],
[
501,
502
],
[
502,
503
],
[
503,
504
],
[
503,
505
],
[
501,
506
],
[
506,
507
],
[
506,
508
],
[
501,
509
],
[
509,
510
],
[
510,
511
],
[
501,
512
],
[
513,
513
],
[
513,
514
],
[
514,
515
],
[
515,
516
],
[
515,
517
],
[
514,
518
],
[
518,
519
],
[
496,
520
],
[
520,
521
],
[
494,
522
],
[
522,
523
],
[
102,
524
],
[
524,
525
],
[
524,
526
],
[
526,
527
],
[
527,
528
],
[
527,
529
],
[
526,
531
],
[
531,
532
],
[
532,
533
],
[
533,
534
],
[
533,
535
],
[
531,
536
],
[
536,
537
],
[
536,
538
],
[
531,
539
],
[
539,
540
],
[
540,
541
],
[
531,
542
],
[
542,
543
],
[
543,
544
],
[
544,
545
],
[
544,
546
],
[
543,
547
],
[
547,
548
],
[
526,
549
],
[
549,
550
],
[
524,
551
],
[
551,
552
],
[
102,
553
],
[
553,
554
],
[
553,
555
],
[
555,
556
],
[
556,
557
],
[
556,
558
],
[
555,
560
],
[
560,
561
],
[
561,
562
],
[
562,
563
],
[
562,
564
],
[
560,
565
],
[
565,
566
],
[
565,
567
],
[
560,
568
],
[
568,
569
],
[
569,
570
],
[
560,
571
],
[
571,
572
],
[
572,
573
],
[
573,
574
],
[
573,
575
],
[
572,
576
],
[
576,
577
],
[
555,
578
],
[
578,
579
],
[
553,
580
],
[
580,
581
],
[
0,
582
],
[
582,
583
],
[
582,
584
]
]
| [
"import java.io.*;\n// import java.math.*;\nimport java.util.*;\n// import java.util.Map.*;\n// import java.util.stream.*;\n\npublic class Main {\n public static void main (String[] args) throws IOException {\n FastScanner sc = new FastScanner();\n final int N = sc.nextInt();\n String[] S = sc.stringArray (N);\n String[] judge = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n String mul = \" x \";\n int[] C = new int[judge.length];\n Arrays.fill (C, 0);\n for (int i = 0; i < N; i++)\n C[Arrays.asList (judge).indexOf (S[i])]++;\n for (int i = 0; i < judge.length; i++)\n System.out.println (judge[i] + mul + C[i]);\n return;\n }\n\n // FastScanner start\n static class FastScanner {\n final private int BUFFER_SIZE = 1 << 16;\n private DataInputStream din;\n private byte[] buffer;\n private int bufferPointer, bytesRead;\n public FastScanner() {\n din = new DataInputStream (System.in);\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }\n public FastScanner (String file_name) throws IOException {\n din = new DataInputStream (new FileInputStream (file_name));\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }\n private byte read() throws IOException {\n if (bufferPointer == bytesRead)\n fillBuffer();\n return buffer[bufferPointer++];\n }\n public void close() throws IOException {\n if (din == null)\n return;\n din.close();\n }\n private void fillBuffer() throws IOException {\n bytesRead = din.read (buffer, bufferPointer = 0, BUFFER_SIZE);\n if (bytesRead == -1)\n buffer[0] = -1;\n }\n public char nextChar() throws IOException {\n byte c = read();\n while (Character.isWhitespace (c)) {\n c = read();\n }\n return (char)c;\n }\n public String nextString() throws IOException {\n byte c = read();\n while (Character.isWhitespace (c)) {\n c = read();\n }\n StringBuilder builder = new StringBuilder();\n builder.append ((char)c);\n c = read();\n while (!Character.isWhitespace (c)) {\n builder.append ((char)c);\n c = read();\n }\n return builder.toString();\n }\n public int nextInt() throws IOException {\n int ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n if (neg)\n return -ret;\n return ret;\n }\n public long nextLong() throws IOException {\n long ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n if (neg)\n return -ret;\n return ret;\n }\n public double nextDouble() throws IOException {\n double ret = 0, div = 1;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n if (c == '.') {\n while ((c = read()) >= '0' && c <= '9') {\n ret += (c - '0') / (div *= 10);\n }\n }\n if (neg)\n return -ret;\n return ret;\n }\n public int[] intArray (int n) throws IOException {\n int arr[] = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = nextInt();\n }\n return arr;\n }\n public long[] longArray (int n) throws IOException {\n long arr[] = new long[n];\n for (int i = 0; i < n; i++) {\n arr[i] = nextLong();\n }\n return arr;\n }\n public double[] doubleArray (int n) throws IOException {\n double arr[] = new double[n];\n for (int i = 0; i < n; i++)\n arr[i] = nextDouble();\n return arr;\n }\n public String[] stringArray (int n) throws IOException {\n String arr[] = new String[n];\n for (int i = 0; i < n; i++)\n arr[i] = nextString();\n return arr;\n }\n }\n // FastScanner end\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main (String[] args) throws IOException {\n FastScanner sc = new FastScanner();\n final int N = sc.nextInt();\n String[] S = sc.stringArray (N);\n String[] judge = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n String mul = \" x \";\n int[] C = new int[judge.length];\n Arrays.fill (C, 0);\n for (int i = 0; i < N; i++)\n C[Arrays.asList (judge).indexOf (S[i])]++;\n for (int i = 0; i < judge.length; i++)\n System.out.println (judge[i] + mul + C[i]);\n return;\n }\n\n // FastScanner start\n static class FastScanner {\n final private int BUFFER_SIZE = 1 << 16;\n private DataInputStream din;\n private byte[] buffer;\n private int bufferPointer, bytesRead;\n public FastScanner() {\n din = new DataInputStream (System.in);\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }\n public FastScanner (String file_name) throws IOException {\n din = new DataInputStream (new FileInputStream (file_name));\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }\n private byte read() throws IOException {\n if (bufferPointer == bytesRead)\n fillBuffer();\n return buffer[bufferPointer++];\n }\n public void close() throws IOException {\n if (din == null)\n return;\n din.close();\n }\n private void fillBuffer() throws IOException {\n bytesRead = din.read (buffer, bufferPointer = 0, BUFFER_SIZE);\n if (bytesRead == -1)\n buffer[0] = -1;\n }\n public char nextChar() throws IOException {\n byte c = read();\n while (Character.isWhitespace (c)) {\n c = read();\n }\n return (char)c;\n }\n public String nextString() throws IOException {\n byte c = read();\n while (Character.isWhitespace (c)) {\n c = read();\n }\n StringBuilder builder = new StringBuilder();\n builder.append ((char)c);\n c = read();\n while (!Character.isWhitespace (c)) {\n builder.append ((char)c);\n c = read();\n }\n return builder.toString();\n }\n public int nextInt() throws IOException {\n int ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n if (neg)\n return -ret;\n return ret;\n }\n public long nextLong() throws IOException {\n long ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n if (neg)\n return -ret;\n return ret;\n }\n public double nextDouble() throws IOException {\n double ret = 0, div = 1;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n if (c == '.') {\n while ((c = read()) >= '0' && c <= '9') {\n ret += (c - '0') / (div *= 10);\n }\n }\n if (neg)\n return -ret;\n return ret;\n }\n public int[] intArray (int n) throws IOException {\n int arr[] = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = nextInt();\n }\n return arr;\n }\n public long[] longArray (int n) throws IOException {\n long arr[] = new long[n];\n for (int i = 0; i < n; i++) {\n arr[i] = nextLong();\n }\n return arr;\n }\n public double[] doubleArray (int n) throws IOException {\n double arr[] = new double[n];\n for (int i = 0; i < n; i++)\n arr[i] = nextDouble();\n return arr;\n }\n public String[] stringArray (int n) throws IOException {\n String arr[] = new String[n];\n for (int i = 0; i < n; i++)\n arr[i] = nextString();\n return arr;\n }\n }\n // FastScanner end\n}",
"Main",
"public static void main (String[] args) throws IOException {\n FastScanner sc = new FastScanner();\n final int N = sc.nextInt();\n String[] S = sc.stringArray (N);\n String[] judge = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n String mul = \" x \";\n int[] C = new int[judge.length];\n Arrays.fill (C, 0);\n for (int i = 0; i < N; i++)\n C[Arrays.asList (judge).indexOf (S[i])]++;\n for (int i = 0; i < judge.length; i++)\n System.out.println (judge[i] + mul + C[i]);\n return;\n }",
"main",
"{\n FastScanner sc = new FastScanner();\n final int N = sc.nextInt();\n String[] S = sc.stringArray (N);\n String[] judge = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n String mul = \" x \";\n int[] C = new int[judge.length];\n Arrays.fill (C, 0);\n for (int i = 0; i < N; i++)\n C[Arrays.asList (judge).indexOf (S[i])]++;\n for (int i = 0; i < judge.length; i++)\n System.out.println (judge[i] + mul + C[i]);\n return;\n }",
"FastScanner sc = new FastScanner();",
"sc",
"new FastScanner()",
"final int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String[] S = sc.stringArray (N);",
"S",
"sc.stringArray (N)",
"sc.stringArray",
"sc",
"N",
"String[] judge = {\"AC\", \"WA\", \"TLE\", \"RE\"};",
"judge",
"{\"AC\", \"WA\", \"TLE\", \"RE\"}",
"\"AC\"",
"\"WA\"",
"\"TLE\"",
"\"RE\"",
"String mul = \" x \";",
"mul",
"\" x \"",
"int[] C = new int[judge.length];",
"C",
"new int[judge.length]",
"judge.length",
"judge",
"judge.length",
"Arrays.fill (C, 0)",
"Arrays.fill",
"Arrays",
"C",
"0",
"for (int i = 0; i < N; i++)\n C[Arrays.asList (judge).indexOf (S[i])]++;",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"C[Arrays.asList (judge).indexOf (S[i])]++;",
"C[Arrays.asList (judge).indexOf (S[i])]++",
"C[Arrays.asList (judge).indexOf (S[i])]",
"C",
"Arrays.asList (judge).indexOf (S[i])",
"Arrays.asList (judge).indexOf",
"Arrays.asList (judge)",
"Arrays.asList",
"Arrays",
"judge",
"S[i]",
"S",
"i",
"for (int i = 0; i < judge.length; i++)\n System.out.println (judge[i] + mul + C[i]);",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < judge.length",
"i",
"judge.length",
"judge",
"judge.length",
"i++",
"i++",
"i",
"System.out.println (judge[i] + mul + C[i]);",
"System.out.println (judge[i] + mul + C[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"judge[i] + mul + C[i]",
"judge[i] + mul + C[i]",
"judge[i]",
"judge",
"i",
"mul",
"C[i]",
"C",
"i",
"return;",
"String[] args",
"args",
"static class FastScanner {\n final private int BUFFER_SIZE = 1 << 16;\n private DataInputStream din;\n private byte[] buffer;\n private int bufferPointer, bytesRead;\n public FastScanner() {\n din = new DataInputStream (System.in);\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }\n public FastScanner (String file_name) throws IOException {\n din = new DataInputStream (new FileInputStream (file_name));\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }\n private byte read() throws IOException {\n if (bufferPointer == bytesRead)\n fillBuffer();\n return buffer[bufferPointer++];\n }\n public void close() throws IOException {\n if (din == null)\n return;\n din.close();\n }\n private void fillBuffer() throws IOException {\n bytesRead = din.read (buffer, bufferPointer = 0, BUFFER_SIZE);\n if (bytesRead == -1)\n buffer[0] = -1;\n }\n public char nextChar() throws IOException {\n byte c = read();\n while (Character.isWhitespace (c)) {\n c = read();\n }\n return (char)c;\n }\n public String nextString() throws IOException {\n byte c = read();\n while (Character.isWhitespace (c)) {\n c = read();\n }\n StringBuilder builder = new StringBuilder();\n builder.append ((char)c);\n c = read();\n while (!Character.isWhitespace (c)) {\n builder.append ((char)c);\n c = read();\n }\n return builder.toString();\n }\n public int nextInt() throws IOException {\n int ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n if (neg)\n return -ret;\n return ret;\n }\n public long nextLong() throws IOException {\n long ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n if (neg)\n return -ret;\n return ret;\n }\n public double nextDouble() throws IOException {\n double ret = 0, div = 1;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n if (c == '.') {\n while ((c = read()) >= '0' && c <= '9') {\n ret += (c - '0') / (div *= 10);\n }\n }\n if (neg)\n return -ret;\n return ret;\n }\n public int[] intArray (int n) throws IOException {\n int arr[] = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = nextInt();\n }\n return arr;\n }\n public long[] longArray (int n) throws IOException {\n long arr[] = new long[n];\n for (int i = 0; i < n; i++) {\n arr[i] = nextLong();\n }\n return arr;\n }\n public double[] doubleArray (int n) throws IOException {\n double arr[] = new double[n];\n for (int i = 0; i < n; i++)\n arr[i] = nextDouble();\n return arr;\n }\n public String[] stringArray (int n) throws IOException {\n String arr[] = new String[n];\n for (int i = 0; i < n; i++)\n arr[i] = nextString();\n return arr;\n }\n }",
"FastScanner",
"final private int BUFFER_SIZE = 1 << 16;",
"BUFFER_SIZE",
"1 << 16",
"1",
"16",
"private DataInputStream din;",
"din",
"private byte[] buffer;",
"buffer",
"private int bufferPointer",
"bufferPointer",
"bytesRead;",
"bytesRead",
"public FastScanner() {\n din = new DataInputStream (System.in);\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }",
"FastScanner",
"{\n din = new DataInputStream (System.in);\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }",
"din = new DataInputStream (System.in)",
"din",
"new DataInputStream (System.in)",
"buffer = new byte[BUFFER_SIZE]",
"buffer",
"new byte[BUFFER_SIZE]",
"BUFFER_SIZE",
"bufferPointer = bytesRead = 0",
"bufferPointer",
"bytesRead = 0",
"bytesRead",
"0",
"public FastScanner (String file_name) throws IOException {\n din = new DataInputStream (new FileInputStream (file_name));\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }",
"FastScanner",
"{\n din = new DataInputStream (new FileInputStream (file_name));\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }",
"din = new DataInputStream (new FileInputStream (file_name))",
"din",
"new DataInputStream (new FileInputStream (file_name))",
"buffer = new byte[BUFFER_SIZE]",
"buffer",
"new byte[BUFFER_SIZE]",
"BUFFER_SIZE",
"bufferPointer = bytesRead = 0",
"bufferPointer",
"bytesRead = 0",
"bytesRead",
"0",
"String file_name",
"file_name",
"private byte read() throws IOException {\n if (bufferPointer == bytesRead)\n fillBuffer();\n return buffer[bufferPointer++];\n }",
"read",
"{\n if (bufferPointer == bytesRead)\n fillBuffer();\n return buffer[bufferPointer++];\n }",
"if (bufferPointer == bytesRead)\n fillBuffer();",
"bufferPointer == bytesRead",
"bufferPointer",
"bytesRead",
"fillBuffer()",
"fillBuffer",
"return buffer[bufferPointer++];",
"buffer[bufferPointer++]",
"buffer",
"bufferPointer++",
"bufferPointer",
"public void close() throws IOException {\n if (din == null)\n return;\n din.close();\n }",
"close",
"{\n if (din == null)\n return;\n din.close();\n }",
"if (din == null)\n return;",
"din == null",
"din",
"null",
"return;",
"din.close()",
"din.close",
"din",
"private void fillBuffer() throws IOException {\n bytesRead = din.read (buffer, bufferPointer = 0, BUFFER_SIZE);\n if (bytesRead == -1)\n buffer[0] = -1;\n }",
"fillBuffer",
"{\n bytesRead = din.read (buffer, bufferPointer = 0, BUFFER_SIZE);\n if (bytesRead == -1)\n buffer[0] = -1;\n }",
"bytesRead = din.read (buffer, bufferPointer = 0, BUFFER_SIZE)",
"bytesRead",
"din.read (buffer, bufferPointer = 0, BUFFER_SIZE)",
"din.read",
"din",
"buffer",
"bufferPointer = 0",
"bufferPointer",
"0",
"BUFFER_SIZE",
"if (bytesRead == -1)\n buffer[0] = -1;",
"bytesRead == -1",
"bytesRead",
"-1",
"1",
"buffer[0] = -1",
"buffer[0]",
"buffer",
"0",
"-1",
"1",
"public char nextChar() throws IOException {\n byte c = read();\n while (Character.isWhitespace (c)) {\n c = read();\n }\n return (char)c;\n }",
"nextChar",
"{\n byte c = read();\n while (Character.isWhitespace (c)) {\n c = read();\n }\n return (char)c;\n }",
"byte c = read();",
"c",
"read()",
"read",
"while (Character.isWhitespace (c)) {\n c = read();\n }",
"Character.isWhitespace (c)",
"Character.isWhitespace",
"Character",
"c",
"{\n c = read();\n }",
"c = read()",
"c",
"read()",
"read",
"return (char)c;",
"(char)c",
"public String nextString() throws IOException {\n byte c = read();\n while (Character.isWhitespace (c)) {\n c = read();\n }\n StringBuilder builder = new StringBuilder();\n builder.append ((char)c);\n c = read();\n while (!Character.isWhitespace (c)) {\n builder.append ((char)c);\n c = read();\n }\n return builder.toString();\n }",
"nextString",
"{\n byte c = read();\n while (Character.isWhitespace (c)) {\n c = read();\n }\n StringBuilder builder = new StringBuilder();\n builder.append ((char)c);\n c = read();\n while (!Character.isWhitespace (c)) {\n builder.append ((char)c);\n c = read();\n }\n return builder.toString();\n }",
"byte c = read();",
"c",
"read()",
"read",
"while (Character.isWhitespace (c)) {\n c = read();\n }",
"Character.isWhitespace (c)",
"Character.isWhitespace",
"Character",
"c",
"{\n c = read();\n }",
"c = read()",
"c",
"read()",
"read",
"StringBuilder builder = new StringBuilder();",
"builder",
"new StringBuilder()",
"builder.append ((char)c)",
"builder.append",
"builder",
"(char)c",
"c = read()",
"c",
"read()",
"read",
"while (!Character.isWhitespace (c)) {\n builder.append ((char)c);\n c = read();\n }",
"!Character.isWhitespace (c)",
"Character.isWhitespace (c)",
"Character.isWhitespace",
"Character",
"c",
"{\n builder.append ((char)c);\n c = read();\n }",
"builder.append ((char)c)",
"builder.append",
"builder",
"(char)c",
"c = read()",
"c",
"read()",
"read",
"return builder.toString();",
"builder.toString()",
"builder.toString",
"builder",
"public int nextInt() throws IOException {\n int ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n if (neg)\n return -ret;\n return ret;\n }",
"nextInt",
"{\n int ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n if (neg)\n return -ret;\n return ret;\n }",
"int ret = 0;",
"ret",
"0",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ')\n c = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg)\n c = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{\n ret = ret * 10 + c - '0';\n }",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (neg)\n return -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"public long nextLong() throws IOException {\n long ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n if (neg)\n return -ret;\n return ret;\n }",
"nextLong",
"{\n long ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n if (neg)\n return -ret;\n return ret;\n }",
"long ret = 0;",
"ret",
"0",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ')\n c = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg)\n c = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{\n ret = ret * 10 + c - '0';\n }",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (neg)\n return -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"public double nextDouble() throws IOException {\n double ret = 0, div = 1;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n if (c == '.') {\n while ((c = read()) >= '0' && c <= '9') {\n ret += (c - '0') / (div *= 10);\n }\n }\n if (neg)\n return -ret;\n return ret;\n }",
"nextDouble",
"{\n double ret = 0, div = 1;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n if (c == '.') {\n while ((c = read()) >= '0' && c <= '9') {\n ret += (c - '0') / (div *= 10);\n }\n }\n if (neg)\n return -ret;\n return ret;\n }",
"double ret = 0",
"ret",
"0",
"div = 1;",
"div",
"1",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ')\n c = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg)\n c = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{\n ret = ret * 10 + c - '0';\n }",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (c == '.') {\n while ((c = read()) >= '0' && c <= '9') {\n ret += (c - '0') / (div *= 10);\n }\n }",
"c == '.'",
"c",
"'.'",
"{\n while ((c = read()) >= '0' && c <= '9') {\n ret += (c - '0') / (div *= 10);\n }\n }",
"while ((c = read()) >= '0' && c <= '9') {\n ret += (c - '0') / (div *= 10);\n }",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{\n ret += (c - '0') / (div *= 10);\n }",
"ret += (c - '0') / (div *= 10)",
"ret",
"(c - '0') / (div *= 10)",
"(c - '0')",
"c",
"'0'",
"(div *= 10)",
"div",
"10",
"if (neg)\n return -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"public int[] intArray (int n) throws IOException {\n int arr[] = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = nextInt();\n }\n return arr;\n }",
"intArray",
"{\n int arr[] = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = nextInt();\n }\n return arr;\n }",
"int arr[] = new int[n];",
"arr",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n arr[i] = nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n arr[i] = nextInt();\n }",
"{\n arr[i] = nextInt();\n }",
"arr[i] = nextInt()",
"arr[i]",
"arr",
"i",
"nextInt()",
"nextInt",
"return arr;",
"arr",
"int n",
"n",
"public long[] longArray (int n) throws IOException {\n long arr[] = new long[n];\n for (int i = 0; i < n; i++) {\n arr[i] = nextLong();\n }\n return arr;\n }",
"longArray",
"{\n long arr[] = new long[n];\n for (int i = 0; i < n; i++) {\n arr[i] = nextLong();\n }\n return arr;\n }",
"long arr[] = new long[n];",
"arr",
"new long[n]",
"n",
"for (int i = 0; i < n; i++) {\n arr[i] = nextLong();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n arr[i] = nextLong();\n }",
"{\n arr[i] = nextLong();\n }",
"arr[i] = nextLong()",
"arr[i]",
"arr",
"i",
"nextLong()",
"nextLong",
"return arr;",
"arr",
"int n",
"n",
"public double[] doubleArray (int n) throws IOException {\n double arr[] = new double[n];\n for (int i = 0; i < n; i++)\n arr[i] = nextDouble();\n return arr;\n }",
"doubleArray",
"{\n double arr[] = new double[n];\n for (int i = 0; i < n; i++)\n arr[i] = nextDouble();\n return arr;\n }",
"double arr[] = new double[n];",
"arr",
"new double[n]",
"n",
"for (int i = 0; i < n; i++)\n arr[i] = nextDouble();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"arr[i] = nextDouble();",
"arr[i] = nextDouble()",
"arr[i]",
"arr",
"i",
"nextDouble()",
"nextDouble",
"return arr;",
"arr",
"int n",
"n",
"public String[] stringArray (int n) throws IOException {\n String arr[] = new String[n];\n for (int i = 0; i < n; i++)\n arr[i] = nextString();\n return arr;\n }",
"stringArray",
"{\n String arr[] = new String[n];\n for (int i = 0; i < n; i++)\n arr[i] = nextString();\n return arr;\n }",
"String arr[] = new String[n];",
"arr",
"new String[n]",
"n",
"for (int i = 0; i < n; i++)\n arr[i] = nextString();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"arr[i] = nextString();",
"arr[i] = nextString()",
"arr[i]",
"arr",
"i",
"nextString()",
"nextString",
"return arr;",
"arr",
"int n",
"n",
"public class Main {\n public static void main (String[] args) throws IOException {\n FastScanner sc = new FastScanner();\n final int N = sc.nextInt();\n String[] S = sc.stringArray (N);\n String[] judge = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n String mul = \" x \";\n int[] C = new int[judge.length];\n Arrays.fill (C, 0);\n for (int i = 0; i < N; i++)\n C[Arrays.asList (judge).indexOf (S[i])]++;\n for (int i = 0; i < judge.length; i++)\n System.out.println (judge[i] + mul + C[i]);\n return;\n }\n\n // FastScanner start\n static class FastScanner {\n final private int BUFFER_SIZE = 1 << 16;\n private DataInputStream din;\n private byte[] buffer;\n private int bufferPointer, bytesRead;\n public FastScanner() {\n din = new DataInputStream (System.in);\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }\n public FastScanner (String file_name) throws IOException {\n din = new DataInputStream (new FileInputStream (file_name));\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }\n private byte read() throws IOException {\n if (bufferPointer == bytesRead)\n fillBuffer();\n return buffer[bufferPointer++];\n }\n public void close() throws IOException {\n if (din == null)\n return;\n din.close();\n }\n private void fillBuffer() throws IOException {\n bytesRead = din.read (buffer, bufferPointer = 0, BUFFER_SIZE);\n if (bytesRead == -1)\n buffer[0] = -1;\n }\n public char nextChar() throws IOException {\n byte c = read();\n while (Character.isWhitespace (c)) {\n c = read();\n }\n return (char)c;\n }\n public String nextString() throws IOException {\n byte c = read();\n while (Character.isWhitespace (c)) {\n c = read();\n }\n StringBuilder builder = new StringBuilder();\n builder.append ((char)c);\n c = read();\n while (!Character.isWhitespace (c)) {\n builder.append ((char)c);\n c = read();\n }\n return builder.toString();\n }\n public int nextInt() throws IOException {\n int ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n if (neg)\n return -ret;\n return ret;\n }\n public long nextLong() throws IOException {\n long ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n if (neg)\n return -ret;\n return ret;\n }\n public double nextDouble() throws IOException {\n double ret = 0, div = 1;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n if (c == '.') {\n while ((c = read()) >= '0' && c <= '9') {\n ret += (c - '0') / (div *= 10);\n }\n }\n if (neg)\n return -ret;\n return ret;\n }\n public int[] intArray (int n) throws IOException {\n int arr[] = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = nextInt();\n }\n return arr;\n }\n public long[] longArray (int n) throws IOException {\n long arr[] = new long[n];\n for (int i = 0; i < n; i++) {\n arr[i] = nextLong();\n }\n return arr;\n }\n public double[] doubleArray (int n) throws IOException {\n double arr[] = new double[n];\n for (int i = 0; i < n; i++)\n arr[i] = nextDouble();\n return arr;\n }\n public String[] stringArray (int n) throws IOException {\n String arr[] = new String[n];\n for (int i = 0; i < n; i++)\n arr[i] = nextString();\n return arr;\n }\n }\n // FastScanner end\n}",
"public class Main {\n public static void main (String[] args) throws IOException {\n FastScanner sc = new FastScanner();\n final int N = sc.nextInt();\n String[] S = sc.stringArray (N);\n String[] judge = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n String mul = \" x \";\n int[] C = new int[judge.length];\n Arrays.fill (C, 0);\n for (int i = 0; i < N; i++)\n C[Arrays.asList (judge).indexOf (S[i])]++;\n for (int i = 0; i < judge.length; i++)\n System.out.println (judge[i] + mul + C[i]);\n return;\n }\n\n // FastScanner start\n static class FastScanner {\n final private int BUFFER_SIZE = 1 << 16;\n private DataInputStream din;\n private byte[] buffer;\n private int bufferPointer, bytesRead;\n public FastScanner() {\n din = new DataInputStream (System.in);\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }\n public FastScanner (String file_name) throws IOException {\n din = new DataInputStream (new FileInputStream (file_name));\n buffer = new byte[BUFFER_SIZE];\n bufferPointer = bytesRead = 0;\n }\n private byte read() throws IOException {\n if (bufferPointer == bytesRead)\n fillBuffer();\n return buffer[bufferPointer++];\n }\n public void close() throws IOException {\n if (din == null)\n return;\n din.close();\n }\n private void fillBuffer() throws IOException {\n bytesRead = din.read (buffer, bufferPointer = 0, BUFFER_SIZE);\n if (bytesRead == -1)\n buffer[0] = -1;\n }\n public char nextChar() throws IOException {\n byte c = read();\n while (Character.isWhitespace (c)) {\n c = read();\n }\n return (char)c;\n }\n public String nextString() throws IOException {\n byte c = read();\n while (Character.isWhitespace (c)) {\n c = read();\n }\n StringBuilder builder = new StringBuilder();\n builder.append ((char)c);\n c = read();\n while (!Character.isWhitespace (c)) {\n builder.append ((char)c);\n c = read();\n }\n return builder.toString();\n }\n public int nextInt() throws IOException {\n int ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n if (neg)\n return -ret;\n return ret;\n }\n public long nextLong() throws IOException {\n long ret = 0;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n if (neg)\n return -ret;\n return ret;\n }\n public double nextDouble() throws IOException {\n double ret = 0, div = 1;\n byte c = read();\n while (c <= ' ')\n c = read();\n boolean neg = (c == '-');\n if (neg)\n c = read();\n do {\n ret = ret * 10 + c - '0';\n } while ((c = read()) >= '0' && c <= '9');\n if (c == '.') {\n while ((c = read()) >= '0' && c <= '9') {\n ret += (c - '0') / (div *= 10);\n }\n }\n if (neg)\n return -ret;\n return ret;\n }\n public int[] intArray (int n) throws IOException {\n int arr[] = new int[n];\n for (int i = 0; i < n; i++) {\n arr[i] = nextInt();\n }\n return arr;\n }\n public long[] longArray (int n) throws IOException {\n long arr[] = new long[n];\n for (int i = 0; i < n; i++) {\n arr[i] = nextLong();\n }\n return arr;\n }\n public double[] doubleArray (int n) throws IOException {\n double arr[] = new double[n];\n for (int i = 0; i < n; i++)\n arr[i] = nextDouble();\n return arr;\n }\n public String[] stringArray (int n) throws IOException {\n String arr[] = new String[n];\n for (int i = 0; i < n; i++)\n arr[i] = nextString();\n return arr;\n }\n }\n // FastScanner end\n}",
"Main"
]
| import java.io.*;
// import java.math.*;
import java.util.*;
// import java.util.Map.*;
// import java.util.stream.*;
public class Main {
public static void main (String[] args) throws IOException {
FastScanner sc = new FastScanner();
final int N = sc.nextInt();
String[] S = sc.stringArray (N);
String[] judge = {"AC", "WA", "TLE", "RE"};
String mul = " x ";
int[] C = new int[judge.length];
Arrays.fill (C, 0);
for (int i = 0; i < N; i++)
C[Arrays.asList (judge).indexOf (S[i])]++;
for (int i = 0; i < judge.length; i++)
System.out.println (judge[i] + mul + C[i]);
return;
}
// FastScanner start
static class FastScanner {
final private int BUFFER_SIZE = 1 << 16;
private DataInputStream din;
private byte[] buffer;
private int bufferPointer, bytesRead;
public FastScanner() {
din = new DataInputStream (System.in);
buffer = new byte[BUFFER_SIZE];
bufferPointer = bytesRead = 0;
}
public FastScanner (String file_name) throws IOException {
din = new DataInputStream (new FileInputStream (file_name));
buffer = new byte[BUFFER_SIZE];
bufferPointer = bytesRead = 0;
}
private byte read() throws IOException {
if (bufferPointer == bytesRead)
fillBuffer();
return buffer[bufferPointer++];
}
public void close() throws IOException {
if (din == null)
return;
din.close();
}
private void fillBuffer() throws IOException {
bytesRead = din.read (buffer, bufferPointer = 0, BUFFER_SIZE);
if (bytesRead == -1)
buffer[0] = -1;
}
public char nextChar() throws IOException {
byte c = read();
while (Character.isWhitespace (c)) {
c = read();
}
return (char)c;
}
public String nextString() throws IOException {
byte c = read();
while (Character.isWhitespace (c)) {
c = read();
}
StringBuilder builder = new StringBuilder();
builder.append ((char)c);
c = read();
while (!Character.isWhitespace (c)) {
builder.append ((char)c);
c = read();
}
return builder.toString();
}
public int nextInt() throws IOException {
int ret = 0;
byte c = read();
while (c <= ' ')
c = read();
boolean neg = (c == '-');
if (neg)
c = read();
do {
ret = ret * 10 + c - '0';
} while ((c = read()) >= '0' && c <= '9');
if (neg)
return -ret;
return ret;
}
public long nextLong() throws IOException {
long ret = 0;
byte c = read();
while (c <= ' ')
c = read();
boolean neg = (c == '-');
if (neg)
c = read();
do {
ret = ret * 10 + c - '0';
} while ((c = read()) >= '0' && c <= '9');
if (neg)
return -ret;
return ret;
}
public double nextDouble() throws IOException {
double ret = 0, div = 1;
byte c = read();
while (c <= ' ')
c = read();
boolean neg = (c == '-');
if (neg)
c = read();
do {
ret = ret * 10 + c - '0';
} while ((c = read()) >= '0' && c <= '9');
if (c == '.') {
while ((c = read()) >= '0' && c <= '9') {
ret += (c - '0') / (div *= 10);
}
}
if (neg)
return -ret;
return ret;
}
public int[] intArray (int n) throws IOException {
int arr[] = new int[n];
for (int i = 0; i < n; i++) {
arr[i] = nextInt();
}
return arr;
}
public long[] longArray (int n) throws IOException {
long arr[] = new long[n];
for (int i = 0; i < n; i++) {
arr[i] = nextLong();
}
return arr;
}
public double[] doubleArray (int n) throws IOException {
double arr[] = new double[n];
for (int i = 0; i < n; i++)
arr[i] = nextDouble();
return arr;
}
public String[] stringArray (int n) throws IOException {
String arr[] = new String[n];
for (int i = 0; i < n; i++)
arr[i] = nextString();
return arr;
}
}
// FastScanner end
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
41,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
0,
13,
20,
29,
4,
18,
13,
4,
18,
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,
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,
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,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
146,
8
],
[
146,
9
],
[
9,
10
],
[
9,
11
],
[
146,
12
],
[
12,
13
],
[
12,
14
],
[
146,
15
],
[
15,
16
],
[
146,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
21,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
20,
29
],
[
29,
30
],
[
29,
31
],
[
19,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
37,
38
],
[
146,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
42,
51
],
[
51,
52
],
[
51,
53
],
[
41,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
146,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
60,
68
],
[
68,
69
],
[
68,
70
],
[
60,
71
],
[
71,
72
],
[
71,
73
],
[
60,
74
],
[
74,
75
],
[
74,
76
],
[
60,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
94,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
94,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
94,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
94,
120
],
[
120,
121
],
[
60,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
131,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
129,
135
],
[
128,
136
],
[
127,
137
],
[
126,
138
],
[
131,
139
],
[
60,
140
],
[
140,
141
],
[
141,
142
],
[
58,
143
],
[
143,
144
],
[
0,
145
],
[
145,
146
],
[
145,
147
]
]
| [
"import java.io.*;\nimport java.util.*;\n\npublic class Main{\n private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n private static final PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n private static StringTokenizer st;\n\n private static int readInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return Integer.parseInt(st.nextToken());\n }\n\n private static String readToken() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public static void main(String[] args) throws IOException {\n int N = readInt();\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 verdict = readToken();\n\n switch (verdict) {\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++;break;\n default:\n // Impossible\n }\n }\n\n pw.println(\"AC x \" + ac\n + \"\\nWA x \" + wa\n + \"\\nTLE x \" + tle\n + \"\\nRE x \" + re);\n pw.close();\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n private static final PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n private static StringTokenizer st;\n\n private static int readInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return Integer.parseInt(st.nextToken());\n }\n\n private static String readToken() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public static void main(String[] args) throws IOException {\n int N = readInt();\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 verdict = readToken();\n\n switch (verdict) {\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++;break;\n default:\n // Impossible\n }\n }\n\n pw.println(\"AC x \" + ac\n + \"\\nWA x \" + wa\n + \"\\nTLE x \" + tle\n + \"\\nRE x \" + re);\n pw.close();\n }\n}",
"Main",
"private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"private static final PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));",
"pw",
"new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)))",
"private static StringTokenizer st;",
"st",
"private static int readInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return Integer.parseInt(st.nextToken());\n }",
"readInt",
"{\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return Integer.parseInt(st.nextToken());\n }",
"while (st == null || !st.hasMoreTokens()) st = 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 Integer.parseInt(st.nextToken());",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"private static String readToken() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }",
"readToken",
"{\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens()) st = 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 static void main(String[] args) throws IOException {\n int N = readInt();\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 verdict = readToken();\n\n switch (verdict) {\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++;break;\n default:\n // Impossible\n }\n }\n\n pw.println(\"AC x \" + ac\n + \"\\nWA x \" + wa\n + \"\\nTLE x \" + tle\n + \"\\nRE x \" + re);\n pw.close();\n }",
"main",
"{\n int N = readInt();\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 verdict = readToken();\n\n switch (verdict) {\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++;break;\n default:\n // Impossible\n }\n }\n\n pw.println(\"AC x \" + ac\n + \"\\nWA x \" + wa\n + \"\\nTLE x \" + tle\n + \"\\nRE x \" + re);\n pw.close();\n }",
"int N = readInt();",
"N",
"readInt()",
"readInt",
"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 verdict = readToken();\n\n switch (verdict) {\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++;break;\n default:\n // Impossible\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n String verdict = readToken();\n\n switch (verdict) {\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++;break;\n default:\n // Impossible\n }\n }",
"{\n String verdict = readToken();\n\n switch (verdict) {\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++;break;\n default:\n // Impossible\n }\n }",
"String verdict = readToken();",
"verdict",
"readToken()",
"readToken",
"switch (verdict) {\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++;break;\n default:\n // Impossible\n }",
"verdict",
"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:",
"pw.println(\"AC x \" + ac\n + \"\\nWA x \" + wa\n + \"\\nTLE x \" + tle\n + \"\\nRE x \" + re)",
"pw.println",
"pw",
"\"AC x \" + ac\n + \"\\nWA x \" + wa\n + \"\\nTLE x \" + tle\n + \"\\nRE x \" + re",
"\"\\nRE x \"",
"tle",
"\"\\nTLE x \"",
"wa",
"\"\\nWA x \"",
"\"AC x \" + ac\n + \"\\nWA x \" + wa\n + \"\\nTLE x \" + tle\n + \"\\nRE x \" + re",
"\"AC x \"",
"ac",
"\"\\nWA x \"",
"wa",
"\"\\nTLE x \"",
"tle",
"\"\\nRE x \"",
"re",
"pw.close()",
"pw.close",
"pw",
"String[] args",
"args",
"public class Main{\n private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n private static final PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n private static StringTokenizer st;\n\n private static int readInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return Integer.parseInt(st.nextToken());\n }\n\n private static String readToken() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public static void main(String[] args) throws IOException {\n int N = readInt();\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 verdict = readToken();\n\n switch (verdict) {\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++;break;\n default:\n // Impossible\n }\n }\n\n pw.println(\"AC x \" + ac\n + \"\\nWA x \" + wa\n + \"\\nTLE x \" + tle\n + \"\\nRE x \" + re);\n pw.close();\n }\n}",
"public class Main{\n private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n private static final PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n private static StringTokenizer st;\n\n private static int readInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return Integer.parseInt(st.nextToken());\n }\n\n private static String readToken() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public static void main(String[] args) throws IOException {\n int N = readInt();\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 verdict = readToken();\n\n switch (verdict) {\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++;break;\n default:\n // Impossible\n }\n }\n\n pw.println(\"AC x \" + ac\n + \"\\nWA x \" + wa\n + \"\\nTLE x \" + tle\n + \"\\nRE x \" + re);\n pw.close();\n }\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main{
private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
private static final PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
private static StringTokenizer st;
private static int readInt() throws IOException {
while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());
return Integer.parseInt(st.nextToken());
}
private static String readToken() throws IOException {
while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());
return st.nextToken();
}
public static void main(String[] args) throws IOException {
int N = readInt();
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
for (int i = 0; i < N; i++) {
String verdict = readToken();
switch (verdict) {
case "AC":
ac++;
break;
case "WA":
wa++;
break;
case "TLE":
tle++;
break;
case "RE":
re++;break;
default:
// Impossible
}
}
pw.println("AC x " + ac
+ "\nWA x " + wa
+ "\nTLE x " + tle
+ "\nRE x " + re);
pw.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
41,
13,
20,
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,
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,
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
],
[
107,
5
],
[
107,
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,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
24,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
31,
33
],
[
24,
34
],
[
34,
35
],
[
35,
36
],
[
24,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
44,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
44,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
44,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
8,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
96,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
6,
104
],
[
104,
105
],
[
0,
106
],
[
106,
107
],
[
106,
108
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int testNum = scanner.nextInt();\n String[] scoreName = new String[]{\"AC\", \"WA\", \"TLE\", \"RE\"};\n int[] score = new int[4];\n\n for (int i = 0; i < testNum+1; i++) {\n String temp = scanner.nextLine();\n switch (temp) {\n case \"AC\" :\n score[0]++;\n break;\n case \"WA\" :\n score[1]++;\n break;\n case \"TLE\" :\n score[2]++;\n break;\n case \"RE\" :\n score[3]++;\n }\n }\n for(int i = 0; i<4; i++) {\n System.out.println(scoreName[i]+\" x \"+score[i]);\n }\n }\n}\n ",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int testNum = scanner.nextInt();\n String[] scoreName = new String[]{\"AC\", \"WA\", \"TLE\", \"RE\"};\n int[] score = new int[4];\n\n for (int i = 0; i < testNum+1; i++) {\n String temp = scanner.nextLine();\n switch (temp) {\n case \"AC\" :\n score[0]++;\n break;\n case \"WA\" :\n score[1]++;\n break;\n case \"TLE\" :\n score[2]++;\n break;\n case \"RE\" :\n score[3]++;\n }\n }\n for(int i = 0; i<4; i++) {\n System.out.println(scoreName[i]+\" x \"+score[i]);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int testNum = scanner.nextInt();\n String[] scoreName = new String[]{\"AC\", \"WA\", \"TLE\", \"RE\"};\n int[] score = new int[4];\n\n for (int i = 0; i < testNum+1; i++) {\n String temp = scanner.nextLine();\n switch (temp) {\n case \"AC\" :\n score[0]++;\n break;\n case \"WA\" :\n score[1]++;\n break;\n case \"TLE\" :\n score[2]++;\n break;\n case \"RE\" :\n score[3]++;\n }\n }\n for(int i = 0; i<4; i++) {\n System.out.println(scoreName[i]+\" x \"+score[i]);\n }\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n\n int testNum = scanner.nextInt();\n String[] scoreName = new String[]{\"AC\", \"WA\", \"TLE\", \"RE\"};\n int[] score = new int[4];\n\n for (int i = 0; i < testNum+1; i++) {\n String temp = scanner.nextLine();\n switch (temp) {\n case \"AC\" :\n score[0]++;\n break;\n case \"WA\" :\n score[1]++;\n break;\n case \"TLE\" :\n score[2]++;\n break;\n case \"RE\" :\n score[3]++;\n }\n }\n for(int i = 0; i<4; i++) {\n System.out.println(scoreName[i]+\" x \"+score[i]);\n }\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int testNum = scanner.nextInt();",
"testNum",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"String[] scoreName = new String[]{\"AC\", \"WA\", \"TLE\", \"RE\"};",
"scoreName",
"new String[]{\"AC\", \"WA\", \"TLE\", \"RE\"}",
"int[] score = new int[4];",
"score",
"new int[4]",
"4",
"for (int i = 0; i < testNum+1; i++) {\n String temp = scanner.nextLine();\n switch (temp) {\n case \"AC\" :\n score[0]++;\n break;\n case \"WA\" :\n score[1]++;\n break;\n case \"TLE\" :\n score[2]++;\n break;\n case \"RE\" :\n score[3]++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < testNum+1",
"i",
"testNum+1",
"testNum",
"1",
"i++",
"i++",
"i",
"{\n String temp = scanner.nextLine();\n switch (temp) {\n case \"AC\" :\n score[0]++;\n break;\n case \"WA\" :\n score[1]++;\n break;\n case \"TLE\" :\n score[2]++;\n break;\n case \"RE\" :\n score[3]++;\n }\n }",
"{\n String temp = scanner.nextLine();\n switch (temp) {\n case \"AC\" :\n score[0]++;\n break;\n case \"WA\" :\n score[1]++;\n break;\n case \"TLE\" :\n score[2]++;\n break;\n case \"RE\" :\n score[3]++;\n }\n }",
"String temp = scanner.nextLine();",
"temp",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"switch (temp) {\n case \"AC\" :\n score[0]++;\n break;\n case \"WA\" :\n score[1]++;\n break;\n case \"TLE\" :\n score[2]++;\n break;\n case \"RE\" :\n score[3]++;\n }",
"temp",
"case \"AC\" :",
"\"AC\"",
"case \"AC\" :",
"score[0]++",
"score[0]",
"score",
"0",
"break;",
"case \"WA\" :",
"\"WA\"",
"case \"WA\" :",
"score[1]++",
"score[1]",
"score",
"1",
"break;",
"case \"TLE\" :",
"\"TLE\"",
"case \"TLE\" :",
"score[2]++",
"score[2]",
"score",
"2",
"break;",
"case \"RE\" :",
"\"RE\"",
"case \"RE\" :",
"score[3]++",
"score[3]",
"score",
"3",
"for(int i = 0; i<4; i++) {\n System.out.println(scoreName[i]+\" x \"+score[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n System.out.println(scoreName[i]+\" x \"+score[i]);\n }",
"{\n System.out.println(scoreName[i]+\" x \"+score[i]);\n }",
"System.out.println(scoreName[i]+\" x \"+score[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"scoreName[i]+\" x \"+score[i]",
"scoreName[i]+\" x \"+score[i]",
"scoreName[i]",
"scoreName",
"i",
"\" x \"",
"score[i]",
"score",
"i",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int testNum = scanner.nextInt();\n String[] scoreName = new String[]{\"AC\", \"WA\", \"TLE\", \"RE\"};\n int[] score = new int[4];\n\n for (int i = 0; i < testNum+1; i++) {\n String temp = scanner.nextLine();\n switch (temp) {\n case \"AC\" :\n score[0]++;\n break;\n case \"WA\" :\n score[1]++;\n break;\n case \"TLE\" :\n score[2]++;\n break;\n case \"RE\" :\n score[3]++;\n }\n }\n for(int i = 0; i<4; i++) {\n System.out.println(scoreName[i]+\" x \"+score[i]);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int testNum = scanner.nextInt();\n String[] scoreName = new String[]{\"AC\", \"WA\", \"TLE\", \"RE\"};\n int[] score = new int[4];\n\n for (int i = 0; i < testNum+1; i++) {\n String temp = scanner.nextLine();\n switch (temp) {\n case \"AC\" :\n score[0]++;\n break;\n case \"WA\" :\n score[1]++;\n break;\n case \"TLE\" :\n score[2]++;\n break;\n case \"RE\" :\n score[3]++;\n }\n }\n for(int i = 0; i<4; i++) {\n System.out.println(scoreName[i]+\" x \"+score[i]);\n }\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int testNum = scanner.nextInt();
String[] scoreName = new String[]{"AC", "WA", "TLE", "RE"};
int[] score = new int[4];
for (int i = 0; i < testNum+1; i++) {
String temp = scanner.nextLine();
switch (temp) {
case "AC" :
score[0]++;
break;
case "WA" :
score[1]++;
break;
case "TLE" :
score[2]++;
break;
case "RE" :
score[3]++;
}
}
for(int i = 0; i<4; i++) {
System.out.println(scoreName[i]+" x "+score[i]);
}
}
}
|
[
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,
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,
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,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
113,
8
],
[
113,
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
],
[
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
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
56,
61
],
[
61,
62
],
[
62,
63
],
[
56,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
64,
69
],
[
69,
70
],
[
70,
71
],
[
64,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
72,
77
],
[
77,
78
],
[
78,
79
],
[
72,
80
],
[
80,
81
],
[
81,
82
],
[
11,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
86,
87
],
[
86,
88
],
[
11,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
92,
93
],
[
92,
94
],
[
11,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
98,
99
],
[
98,
100
],
[
11,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
104,
105
],
[
104,
106
],
[
11,
107
],
[
107,
108
],
[
108,
109
],
[
9,
110
],
[
110,
111
],
[
0,
112
],
[
112,
113
],
[
112,
114
]
]
| [
"import java.util.*;\nimport java.io.*;\npublic class Main{\n public static void main(String agrs[])\n {\n Scanner in = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out);\n int n = Integer.parseInt(in.nextLine());\n int a = 0;\n int b = 0; \n int c = 0;\n int d = 0;\n for(int i = 0; i < n; i++)\n {\n String temp = in.nextLine();\n if(temp.equals(\"AC\"))\n {\n \ta++; \n }\n else if(temp.equals(\"WA\"))\n {\n \tb++; \n }\n else if(temp.equals(\"TLE\"))\n {\n c++;\n }\n else\n {\n d++;\n }\n }\n out.println(\"AC x \" + a);\n out.println(\"WA x \" + b);\n\tout.println(\"TLE x \" + c);\n\tout.println(\"RE x \" + d);\n out.close();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n public static void main(String agrs[])\n {\n Scanner in = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out);\n int n = Integer.parseInt(in.nextLine());\n int a = 0;\n int b = 0; \n int c = 0;\n int d = 0;\n for(int i = 0; i < n; i++)\n {\n String temp = in.nextLine();\n if(temp.equals(\"AC\"))\n {\n \ta++; \n }\n else if(temp.equals(\"WA\"))\n {\n \tb++; \n }\n else if(temp.equals(\"TLE\"))\n {\n c++;\n }\n else\n {\n d++;\n }\n }\n out.println(\"AC x \" + a);\n out.println(\"WA x \" + b);\n\tout.println(\"TLE x \" + c);\n\tout.println(\"RE x \" + d);\n out.close();\n }\n}",
"Main",
"public static void main(String agrs[])\n {\n Scanner in = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out);\n int n = Integer.parseInt(in.nextLine());\n int a = 0;\n int b = 0; \n int c = 0;\n int d = 0;\n for(int i = 0; i < n; i++)\n {\n String temp = in.nextLine();\n if(temp.equals(\"AC\"))\n {\n \ta++; \n }\n else if(temp.equals(\"WA\"))\n {\n \tb++; \n }\n else if(temp.equals(\"TLE\"))\n {\n c++;\n }\n else\n {\n d++;\n }\n }\n out.println(\"AC x \" + a);\n out.println(\"WA x \" + b);\n\tout.println(\"TLE x \" + c);\n\tout.println(\"RE x \" + d);\n out.close();\n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out);\n int n = Integer.parseInt(in.nextLine());\n int a = 0;\n int b = 0; \n int c = 0;\n int d = 0;\n for(int i = 0; i < n; i++)\n {\n String temp = in.nextLine();\n if(temp.equals(\"AC\"))\n {\n \ta++; \n }\n else if(temp.equals(\"WA\"))\n {\n \tb++; \n }\n else if(temp.equals(\"TLE\"))\n {\n c++;\n }\n else\n {\n d++;\n }\n }\n out.println(\"AC x \" + a);\n out.println(\"WA x \" + b);\n\tout.println(\"TLE x \" + c);\n\tout.println(\"RE x \" + d);\n out.close();\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"int n = Integer.parseInt(in.nextLine());",
"n",
"Integer.parseInt(in.nextLine())",
"Integer.parseInt",
"Integer",
"in.nextLine()",
"in.nextLine",
"in",
"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 {\n String temp = in.nextLine();\n if(temp.equals(\"AC\"))\n {\n \ta++; \n }\n else if(temp.equals(\"WA\"))\n {\n \tb++; \n }\n else if(temp.equals(\"TLE\"))\n {\n c++;\n }\n else\n {\n d++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String temp = in.nextLine();\n if(temp.equals(\"AC\"))\n {\n \ta++; \n }\n else if(temp.equals(\"WA\"))\n {\n \tb++; \n }\n else if(temp.equals(\"TLE\"))\n {\n c++;\n }\n else\n {\n d++;\n }\n }",
"{\n String temp = in.nextLine();\n if(temp.equals(\"AC\"))\n {\n \ta++; \n }\n else if(temp.equals(\"WA\"))\n {\n \tb++; \n }\n else if(temp.equals(\"TLE\"))\n {\n c++;\n }\n else\n {\n d++;\n }\n }",
"String temp = in.nextLine();",
"temp",
"in.nextLine()",
"in.nextLine",
"in",
"if(temp.equals(\"AC\"))\n {\n \ta++; \n }\n else if(temp.equals(\"WA\"))\n {\n \tb++; \n }\n else if(temp.equals(\"TLE\"))\n {\n c++;\n }\n else\n {\n d++;\n }",
"temp.equals(\"AC\")",
"temp.equals",
"temp",
"\"AC\"",
"{\n \ta++; \n }",
"a++",
"a",
"if(temp.equals(\"WA\"))\n {\n \tb++; \n }\n else if(temp.equals(\"TLE\"))\n {\n c++;\n }\n else\n {\n d++;\n }",
"temp.equals(\"WA\")",
"temp.equals",
"temp",
"\"WA\"",
"{\n \tb++; \n }",
"b++",
"b",
"if(temp.equals(\"TLE\"))\n {\n c++;\n }\n else\n {\n d++;\n }",
"temp.equals(\"TLE\")",
"temp.equals",
"temp",
"\"TLE\"",
"{\n c++;\n }",
"c++",
"c",
"{\n d++;\n }",
"d++",
"d",
"out.println(\"AC x \" + a)",
"out.println",
"out",
"\"AC x \" + a",
"\"AC x \"",
"a",
"out.println(\"WA x \" + b)",
"out.println",
"out",
"\"WA x \" + b",
"\"WA x \"",
"b",
"out.println(\"TLE x \" + c)",
"out.println",
"out",
"\"TLE x \" + c",
"\"TLE x \"",
"c",
"out.println(\"RE x \" + d)",
"out.println",
"out",
"\"RE x \" + d",
"\"RE x \"",
"d",
"out.close()",
"out.close",
"out",
"String agrs[]",
"agrs",
"public class Main{\n public static void main(String agrs[])\n {\n Scanner in = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out);\n int n = Integer.parseInt(in.nextLine());\n int a = 0;\n int b = 0; \n int c = 0;\n int d = 0;\n for(int i = 0; i < n; i++)\n {\n String temp = in.nextLine();\n if(temp.equals(\"AC\"))\n {\n \ta++; \n }\n else if(temp.equals(\"WA\"))\n {\n \tb++; \n }\n else if(temp.equals(\"TLE\"))\n {\n c++;\n }\n else\n {\n d++;\n }\n }\n out.println(\"AC x \" + a);\n out.println(\"WA x \" + b);\n\tout.println(\"TLE x \" + c);\n\tout.println(\"RE x \" + d);\n out.close();\n }\n}",
"public class Main{\n public static void main(String agrs[])\n {\n Scanner in = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out);\n int n = Integer.parseInt(in.nextLine());\n int a = 0;\n int b = 0; \n int c = 0;\n int d = 0;\n for(int i = 0; i < n; i++)\n {\n String temp = in.nextLine();\n if(temp.equals(\"AC\"))\n {\n \ta++; \n }\n else if(temp.equals(\"WA\"))\n {\n \tb++; \n }\n else if(temp.equals(\"TLE\"))\n {\n c++;\n }\n else\n {\n d++;\n }\n }\n out.println(\"AC x \" + a);\n out.println(\"WA x \" + b);\n\tout.println(\"TLE x \" + c);\n\tout.println(\"RE x \" + d);\n out.close();\n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main{
public static void main(String agrs[])
{
Scanner in = new Scanner(System.in);
PrintWriter out = new PrintWriter(System.out);
int n = Integer.parseInt(in.nextLine());
int a = 0;
int b = 0;
int c = 0;
int d = 0;
for(int i = 0; i < n; i++)
{
String temp = in.nextLine();
if(temp.equals("AC"))
{
a++;
}
else if(temp.equals("WA"))
{
b++;
}
else if(temp.equals("TLE"))
{
c++;
}
else
{
d++;
}
}
out.println("AC x " + a);
out.println("WA x " + b);
out.println("TLE x " + c);
out.println("RE x " + d);
out.close();
}
} |
[
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,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
35,
4,
18,
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
],
[
133,
5
],
[
133,
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
],
[
28,
29
],
[
28,
30
],
[
21,
31
],
[
31,
32
],
[
32,
33
],
[
21,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
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
],
[
55,
56
],
[
56,
57
],
[
54,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
54,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
54,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
54,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
8,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
97,
99
],
[
8,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
107,
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
],
[
6,
130
],
[
130,
131
],
[
0,
132
],
[
132,
133
],
[
132,
134
]
]
| [
"import java.util.Scanner;\n\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\tint[] S = new int[4];\n\t\tfor(int i = 0; i < S.length; i ++) {\n\t\t\tS[i] = 0;\n\t\t}\n\t\tfor(int i = 0; i < N; i ++) {\n\t\t\tswitch(stdIn.next()) {\n\t\t\tcase \"AC\":\n\t\t\t\tS[0] ++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\tS[1] ++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\tS[2] ++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tS[3] ++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + S[0]);\n\t\tSystem.out.println(\"WA x \" + S[1]);\n\t\tSystem.out.println(\"TLE x \" + S[2]);\n\t\tSystem.out.println(\"RE x \" + S[3]);\n\t}\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\tint[] S = new int[4];\n\t\tfor(int i = 0; i < S.length; i ++) {\n\t\t\tS[i] = 0;\n\t\t}\n\t\tfor(int i = 0; i < N; i ++) {\n\t\t\tswitch(stdIn.next()) {\n\t\t\tcase \"AC\":\n\t\t\t\tS[0] ++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\tS[1] ++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\tS[2] ++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tS[3] ++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + S[0]);\n\t\tSystem.out.println(\"WA x \" + S[1]);\n\t\tSystem.out.println(\"TLE x \" + S[2]);\n\t\tSystem.out.println(\"RE x \" + S[3]);\n\t}\n}",
"Main",
"public static void main(String args[]) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint N = stdIn.nextInt();\n\t\tint[] S = new int[4];\n\t\tfor(int i = 0; i < S.length; i ++) {\n\t\t\tS[i] = 0;\n\t\t}\n\t\tfor(int i = 0; i < N; i ++) {\n\t\t\tswitch(stdIn.next()) {\n\t\t\tcase \"AC\":\n\t\t\t\tS[0] ++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\tS[1] ++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\tS[2] ++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tS[3] ++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + S[0]);\n\t\tSystem.out.println(\"WA x \" + S[1]);\n\t\tSystem.out.println(\"TLE x \" + S[2]);\n\t\tSystem.out.println(\"RE x \" + S[3]);\n\t}",
"main",
"{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint N = stdIn.nextInt();\n\t\tint[] S = new int[4];\n\t\tfor(int i = 0; i < S.length; i ++) {\n\t\t\tS[i] = 0;\n\t\t}\n\t\tfor(int i = 0; i < N; i ++) {\n\t\t\tswitch(stdIn.next()) {\n\t\t\tcase \"AC\":\n\t\t\t\tS[0] ++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\tS[1] ++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\tS[2] ++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tS[3] ++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + S[0]);\n\t\tSystem.out.println(\"WA x \" + S[1]);\n\t\tSystem.out.println(\"TLE x \" + S[2]);\n\t\tSystem.out.println(\"RE x \" + S[3]);\n\t}",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"int N = stdIn.nextInt();",
"N",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"int[] S = new int[4];",
"S",
"new int[4]",
"4",
"for(int i = 0; i < S.length; i ++) {\n\t\t\tS[i] = 0;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < S.length",
"i",
"S.length",
"S",
"S.length",
"i ++",
"i ++",
"i",
"{\n\t\t\tS[i] = 0;\n\t\t}",
"{\n\t\t\tS[i] = 0;\n\t\t}",
"S[i] = 0",
"S[i]",
"S",
"i",
"0",
"for(int i = 0; i < N; i ++) {\n\t\t\tswitch(stdIn.next()) {\n\t\t\tcase \"AC\":\n\t\t\t\tS[0] ++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\tS[1] ++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\tS[2] ++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tS[3] ++;\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(stdIn.next()) {\n\t\t\tcase \"AC\":\n\t\t\t\tS[0] ++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\tS[1] ++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\tS[2] ++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tS[3] ++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tswitch(stdIn.next()) {\n\t\t\tcase \"AC\":\n\t\t\t\tS[0] ++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\tS[1] ++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\tS[2] ++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tS[3] ++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"switch(stdIn.next()) {\n\t\t\tcase \"AC\":\n\t\t\t\tS[0] ++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\tS[1] ++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\tS[2] ++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tS[3] ++;\n\t\t\t\tbreak;\n\t\t\t}",
"stdIn.next()",
"stdIn.next",
"stdIn",
"case \"AC\":",
"\"AC\"",
"case \"AC\":",
"S[0] ++",
"S[0]",
"S",
"0",
"break;",
"case \"WA\":",
"\"WA\"",
"case \"WA\":",
"S[1] ++",
"S[1]",
"S",
"1",
"break;",
"case \"TLE\":",
"\"TLE\"",
"case \"TLE\":",
"S[2] ++",
"S[2]",
"S",
"2",
"break;",
"case \"RE\":",
"\"RE\"",
"case \"RE\":",
"S[3] ++",
"S[3]",
"S",
"3",
"break;",
"System.out.println(\"AC x \" + S[0])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + S[0]",
"\"AC x \"",
"S[0]",
"S",
"0",
"System.out.println(\"WA x \" + S[1])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + S[1]",
"\"WA x \"",
"S[1]",
"S",
"1",
"System.out.println(\"TLE x \" + S[2])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + S[2]",
"\"TLE x \"",
"S[2]",
"S",
"2",
"System.out.println(\"RE x \" + S[3])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + S[3]",
"\"RE x \"",
"S[3]",
"S",
"3",
"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\tint[] S = new int[4];\n\t\tfor(int i = 0; i < S.length; i ++) {\n\t\t\tS[i] = 0;\n\t\t}\n\t\tfor(int i = 0; i < N; i ++) {\n\t\t\tswitch(stdIn.next()) {\n\t\t\tcase \"AC\":\n\t\t\t\tS[0] ++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\tS[1] ++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\tS[2] ++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tS[3] ++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + S[0]);\n\t\tSystem.out.println(\"WA x \" + S[1]);\n\t\tSystem.out.println(\"TLE x \" + S[2]);\n\t\tSystem.out.println(\"RE x \" + S[3]);\n\t}\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\tint[] S = new int[4];\n\t\tfor(int i = 0; i < S.length; i ++) {\n\t\t\tS[i] = 0;\n\t\t}\n\t\tfor(int i = 0; i < N; i ++) {\n\t\t\tswitch(stdIn.next()) {\n\t\t\tcase \"AC\":\n\t\t\t\tS[0] ++;\n\t\t\t\tbreak;\n\t\t\tcase \"WA\":\n\t\t\t\tS[1] ++;\n\t\t\t\tbreak;\n\t\t\tcase \"TLE\":\n\t\t\t\tS[2] ++;\n\t\t\t\tbreak;\n\t\t\tcase \"RE\":\n\t\t\t\tS[3] ++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + S[0]);\n\t\tSystem.out.println(\"WA x \" + S[1]);\n\t\tSystem.out.println(\"TLE x \" + S[2]);\n\t\tSystem.out.println(\"RE x \" + S[3]);\n\t}\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();
int[] S = new int[4];
for(int i = 0; i < S.length; i ++) {
S[i] = 0;
}
for(int i = 0; i < N; i ++) {
switch(stdIn.next()) {
case "AC":
S[0] ++;
break;
case "WA":
S[1] ++;
break;
case "TLE":
S[2] ++;
break;
case "RE":
S[3] ++;
break;
}
}
System.out.println("AC x " + S[0]);
System.out.println("WA x " + S[1]);
System.out.println("TLE x " + S[2]);
System.out.println("RE x " + S[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,
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
],
[
141,
5
],
[
141,
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
],
[
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
],
[
6,
138
],
[
138,
139
],
[
0,
140
],
[
140,
141
],
[
140,
142
]
]
| [
"import 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 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 for (int i = 0; i < n; i++) {\n if (s[i].equals(\"AC\")) {\n ac++;\n } else if (s[i].equals(\"WA\")) {\n wa++;\n } else if (s[i].equals(\"TLE\")) {\n tle++;\n } else if (s[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}",
"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 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 for (int i = 0; i < n; i++) {\n if (s[i].equals(\"AC\")) {\n ac++;\n } else if (s[i].equals(\"WA\")) {\n wa++;\n } else if (s[i].equals(\"TLE\")) {\n tle++;\n } else if (s[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",
"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 ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n for (int i = 0; i < n; i++) {\n if (s[i].equals(\"AC\")) {\n ac++;\n } else if (s[i].equals(\"WA\")) {\n wa++;\n } else if (s[i].equals(\"TLE\")) {\n tle++;\n } else if (s[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 }",
"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 ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n for (int i = 0; i < n; i++) {\n if (s[i].equals(\"AC\")) {\n ac++;\n } else if (s[i].equals(\"WA\")) {\n wa++;\n } else if (s[i].equals(\"TLE\")) {\n tle++;\n } else if (s[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 }",
"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 } else if (s[i].equals(\"WA\")) {\n wa++;\n } else if (s[i].equals(\"TLE\")) {\n tle++;\n } else if (s[i].equals(\"RE\")) {\n re++;\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 } else if (s[i].equals(\"WA\")) {\n wa++;\n } else if (s[i].equals(\"TLE\")) {\n tle++;\n } else if (s[i].equals(\"RE\")) {\n re++;\n }\n }",
"{\n if (s[i].equals(\"AC\")) {\n ac++;\n } else if (s[i].equals(\"WA\")) {\n wa++;\n } else if (s[i].equals(\"TLE\")) {\n tle++;\n } else if (s[i].equals(\"RE\")) {\n re++;\n }\n }",
"if (s[i].equals(\"AC\")) {\n ac++;\n } else if (s[i].equals(\"WA\")) {\n wa++;\n } else if (s[i].equals(\"TLE\")) {\n tle++;\n } else if (s[i].equals(\"RE\")) {\n re++;\n }",
"s[i].equals(\"AC\")",
"s[i].equals",
"s[i]",
"s",
"i",
"\"AC\"",
"{\n ac++;\n }",
"ac++",
"ac",
"if (s[i].equals(\"WA\")) {\n wa++;\n } else if (s[i].equals(\"TLE\")) {\n tle++;\n } else if (s[i].equals(\"RE\")) {\n re++;\n }",
"s[i].equals(\"WA\")",
"s[i].equals",
"s[i]",
"s",
"i",
"\"WA\"",
"{\n wa++;\n }",
"wa++",
"wa",
"if (s[i].equals(\"TLE\")) {\n tle++;\n } else if (s[i].equals(\"RE\")) {\n re++;\n }",
"s[i].equals(\"TLE\")",
"s[i].equals",
"s[i]",
"s",
"i",
"\"TLE\"",
"{\n tle++;\n }",
"tle++",
"tle",
"if (s[i].equals(\"RE\")) {\n re++;\n }",
"s[i].equals(\"RE\")",
"s[i].equals",
"s[i]",
"s",
"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\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 ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n for (int i = 0; i < n; i++) {\n if (s[i].equals(\"AC\")) {\n ac++;\n } else if (s[i].equals(\"WA\")) {\n wa++;\n } else if (s[i].equals(\"TLE\")) {\n tle++;\n } else if (s[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}",
"public class Main {\n\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 ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n for (int i = 0; i < n; i++) {\n if (s[i].equals(\"AC\")) {\n ac++;\n } else if (s[i].equals(\"WA\")) {\n wa++;\n } else if (s[i].equals(\"TLE\")) {\n tle++;\n } else if (s[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"
]
| 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++;
} else if (s[i].equals("WA")) {
wa++;
} else if (s[i].equals("TLE")) {
tle++;
} else if (s[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,
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,
4,
18,
13,
13,
2,
4,
18,
13,
13,
17,
17,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
17,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
17,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
17,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
17,
23,
13,
12,
13,
30,
42,
2,
13,
17,
30,
41,
13,
2,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
29,
17,
0,
13,
17,
29,
17,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
20,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
18,
13,
13,
14,
4,
18,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
2,
13,
13,
29,
17,
4,
18,
13,
13,
29,
17,
23,
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
],
[
282,
8
],
[
282,
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
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
46,
50
],
[
45,
51
],
[
11,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
59,
63
],
[
11,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
71,
75
],
[
11,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
83,
87
],
[
11,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
95,
99
],
[
9,
100
],
[
100,
101
],
[
282,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
112,
114
],
[
109,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
120,
121
],
[
120,
122
],
[
115,
123
],
[
123,
124
],
[
109,
125
],
[
125,
126
],
[
125,
127
],
[
104,
128
],
[
128,
129
],
[
102,
130
],
[
130,
131
],
[
282,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
138,
139
],
[
138,
140
],
[
134,
141
],
[
141,
142
],
[
142,
143
],
[
141,
144
],
[
134,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
145,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
152,
154
],
[
145,
155
],
[
155,
156
],
[
156,
157
],
[
145,
158
],
[
159,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
162,
164
],
[
159,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
166,
169
],
[
169,
170
],
[
169,
171
],
[
165,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
173,
178
],
[
178,
179
],
[
178,
180
],
[
172,
181
],
[
181,
182
],
[
159,
183
],
[
183,
184
],
[
184,
185
],
[
183,
186
],
[
134,
187
],
[
187,
188
],
[
132,
189
],
[
189,
190
],
[
132,
191
],
[
191,
192
],
[
282,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
193,
197
],
[
197,
198
],
[
193,
199
],
[
199,
200
],
[
199,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
193,
205
],
[
205,
206
],
[
205,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
209,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
208,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
221,
222
],
[
222,
223
],
[
223,
224
],
[
218,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
207,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
193,
233
],
[
233,
234
],
[
233,
235
],
[
235,
236
],
[
236,
237
],
[
237,
238
],
[
238,
239
],
[
237,
240
],
[
240,
241
],
[
193,
242
],
[
242,
243
],
[
242,
244
],
[
244,
245
],
[
245,
246
],
[
246,
247
],
[
247,
248
],
[
246,
249
],
[
249,
250
],
[
193,
251
],
[
251,
252
],
[
251,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
255,
258
],
[
258,
259
],
[
193,
260
],
[
260,
261
],
[
260,
262
],
[
262,
263
],
[
263,
264
],
[
263,
265
],
[
262,
266
],
[
266,
267
],
[
267,
268
],
[
267,
269
],
[
269,
270
],
[
270,
271
],
[
271,
272
],
[
266,
273
],
[
273,
274
],
[
274,
275
],
[
274,
276
],
[
276,
277
],
[
277,
278
],
[
262,
279
],
[
279,
280
],
[
0,
281
],
[
281,
282
],
[
281,
283
]
]
| [
"\nimport java.util.*;\nimport java.io.*;\n\npublic class Main {\n\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n int n = sc.nextInt();\n Map<String, Integer> map = new HashMap<>();\n for (int i = 0; i < n; i++) {\n String s = sc.nextLine();\n map.put(s, map.getOrDefault(s, 0)+1);\n }\n //AC x 3\n //WA x 1\n //TLE x 2\n //RE x 0\n System.out.println(\"AC x \"+map.getOrDefault(\"AC\", 0));\n System.out.println(\"WA x \"+map.getOrDefault(\"WA\", 0));\n System.out.println(\"TLE x \"+map.getOrDefault(\"TLE\", 0));\n System.out.println(\"RE x \"+map.getOrDefault(\"RE\", 0));\n\n }\n\n private static boolean ok(int k) {\n while (k>0) {\n int c = k%10;\n if (c!=4&&c!=7) return false;\n k/=10;\n }\n return true;\n }\n\n // 1 2 3 4 5 6\n // x * 2 == 10\n\n\n\n private static boolean preSum(int[] nums, int target) {\n int cur = 0;\n Set<Integer> set = new HashSet<>();\n set.add(0);\n for (int i = 0; i < nums.length; i++) {\n cur += nums[i];\n if (set.contains(cur-target)) {\n System.out.println(cur-target);\n return true;\n }\n set.add(cur);\n }\n return false;\n }\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 }\n\n}\n",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n int n = sc.nextInt();\n Map<String, Integer> map = new HashMap<>();\n for (int i = 0; i < n; i++) {\n String s = sc.nextLine();\n map.put(s, map.getOrDefault(s, 0)+1);\n }\n //AC x 3\n //WA x 1\n //TLE x 2\n //RE x 0\n System.out.println(\"AC x \"+map.getOrDefault(\"AC\", 0));\n System.out.println(\"WA x \"+map.getOrDefault(\"WA\", 0));\n System.out.println(\"TLE x \"+map.getOrDefault(\"TLE\", 0));\n System.out.println(\"RE x \"+map.getOrDefault(\"RE\", 0));\n\n }\n\n private static boolean ok(int k) {\n while (k>0) {\n int c = k%10;\n if (c!=4&&c!=7) return false;\n k/=10;\n }\n return true;\n }\n\n // 1 2 3 4 5 6\n // x * 2 == 10\n\n\n\n private static boolean preSum(int[] nums, int target) {\n int cur = 0;\n Set<Integer> set = new HashSet<>();\n set.add(0);\n for (int i = 0; i < nums.length; i++) {\n cur += nums[i];\n if (set.contains(cur-target)) {\n System.out.println(cur-target);\n return true;\n }\n set.add(cur);\n }\n return false;\n }\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 }\n\n}",
"Main",
"public static void main(String[] args) {\n FastReader sc = new FastReader();\n int n = sc.nextInt();\n Map<String, Integer> map = new HashMap<>();\n for (int i = 0; i < n; i++) {\n String s = sc.nextLine();\n map.put(s, map.getOrDefault(s, 0)+1);\n }\n //AC x 3\n //WA x 1\n //TLE x 2\n //RE x 0\n System.out.println(\"AC x \"+map.getOrDefault(\"AC\", 0));\n System.out.println(\"WA x \"+map.getOrDefault(\"WA\", 0));\n System.out.println(\"TLE x \"+map.getOrDefault(\"TLE\", 0));\n System.out.println(\"RE x \"+map.getOrDefault(\"RE\", 0));\n\n }",
"main",
"{\n FastReader sc = new FastReader();\n int n = sc.nextInt();\n Map<String, Integer> map = new HashMap<>();\n for (int i = 0; i < n; i++) {\n String s = sc.nextLine();\n map.put(s, map.getOrDefault(s, 0)+1);\n }\n //AC x 3\n //WA x 1\n //TLE x 2\n //RE x 0\n System.out.println(\"AC x \"+map.getOrDefault(\"AC\", 0));\n System.out.println(\"WA x \"+map.getOrDefault(\"WA\", 0));\n System.out.println(\"TLE x \"+map.getOrDefault(\"TLE\", 0));\n System.out.println(\"RE x \"+map.getOrDefault(\"RE\", 0));\n\n }",
"FastReader sc = new FastReader();",
"sc",
"new FastReader()",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Map<String, Integer> map = new HashMap<>();",
"map",
"new HashMap<>()",
"for (int i = 0; i < n; i++) {\n String s = sc.nextLine();\n map.put(s, map.getOrDefault(s, 0)+1);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String s = sc.nextLine();\n map.put(s, map.getOrDefault(s, 0)+1);\n }",
"{\n String s = sc.nextLine();\n map.put(s, map.getOrDefault(s, 0)+1);\n }",
"String s = sc.nextLine();",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"map.put(s, map.getOrDefault(s, 0)+1)",
"map.put",
"map",
"s",
"map.getOrDefault(s, 0)+1",
"map.getOrDefault(s, 0)",
"map.getOrDefault",
"map",
"s",
"0",
"1",
"System.out.println(\"AC x \"+map.getOrDefault(\"AC\", 0))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \"+map.getOrDefault(\"AC\", 0)",
"\"AC x \"",
"map.getOrDefault(\"AC\", 0)",
"map.getOrDefault",
"map",
"\"AC\"",
"0",
"System.out.println(\"WA x \"+map.getOrDefault(\"WA\", 0))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \"+map.getOrDefault(\"WA\", 0)",
"\"WA x \"",
"map.getOrDefault(\"WA\", 0)",
"map.getOrDefault",
"map",
"\"WA\"",
"0",
"System.out.println(\"TLE x \"+map.getOrDefault(\"TLE\", 0))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \"+map.getOrDefault(\"TLE\", 0)",
"\"TLE x \"",
"map.getOrDefault(\"TLE\", 0)",
"map.getOrDefault",
"map",
"\"TLE\"",
"0",
"System.out.println(\"RE x \"+map.getOrDefault(\"RE\", 0))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \"+map.getOrDefault(\"RE\", 0)",
"\"RE x \"",
"map.getOrDefault(\"RE\", 0)",
"map.getOrDefault",
"map",
"\"RE\"",
"0",
"String[] args",
"args",
"private static boolean ok(int k) {\n while (k>0) {\n int c = k%10;\n if (c!=4&&c!=7) return false;\n k/=10;\n }\n return true;\n }",
"ok",
"{\n while (k>0) {\n int c = k%10;\n if (c!=4&&c!=7) return false;\n k/=10;\n }\n return true;\n }",
"while (k>0) {\n int c = k%10;\n if (c!=4&&c!=7) return false;\n k/=10;\n }",
"k>0",
"k",
"0",
"{\n int c = k%10;\n if (c!=4&&c!=7) return false;\n k/=10;\n }",
"int c = k%10;",
"c",
"k%10",
"k",
"10",
"if (c!=4&&c!=7) return false;",
"c!=4&&c!=7",
"c!=4",
"c",
"4",
"c!=7",
"c",
"7",
"return false;",
"false",
"k/=10",
"k",
"10",
"return true;",
"true",
"int k",
"k",
"private static boolean preSum(int[] nums, int target) {\n int cur = 0;\n Set<Integer> set = new HashSet<>();\n set.add(0);\n for (int i = 0; i < nums.length; i++) {\n cur += nums[i];\n if (set.contains(cur-target)) {\n System.out.println(cur-target);\n return true;\n }\n set.add(cur);\n }\n return false;\n }",
"preSum",
"{\n int cur = 0;\n Set<Integer> set = new HashSet<>();\n set.add(0);\n for (int i = 0; i < nums.length; i++) {\n cur += nums[i];\n if (set.contains(cur-target)) {\n System.out.println(cur-target);\n return true;\n }\n set.add(cur);\n }\n return false;\n }",
"int cur = 0;",
"cur",
"0",
"Set<Integer> set = new HashSet<>();",
"set",
"new HashSet<>()",
"set.add(0)",
"set.add",
"set",
"0",
"for (int i = 0; i < nums.length; i++) {\n cur += nums[i];\n if (set.contains(cur-target)) {\n System.out.println(cur-target);\n return true;\n }\n set.add(cur);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < nums.length",
"i",
"nums.length",
"nums",
"nums.length",
"i++",
"i++",
"i",
"{\n cur += nums[i];\n if (set.contains(cur-target)) {\n System.out.println(cur-target);\n return true;\n }\n set.add(cur);\n }",
"{\n cur += nums[i];\n if (set.contains(cur-target)) {\n System.out.println(cur-target);\n return true;\n }\n set.add(cur);\n }",
"cur += nums[i]",
"cur",
"nums[i]",
"nums",
"i",
"if (set.contains(cur-target)) {\n System.out.println(cur-target);\n return true;\n }",
"set.contains(cur-target)",
"set.contains",
"set",
"cur-target",
"cur",
"target",
"{\n System.out.println(cur-target);\n return true;\n }",
"System.out.println(cur-target)",
"System.out.println",
"System.out",
"System",
"System.out",
"cur-target",
"cur",
"target",
"return true;",
"true",
"set.add(cur)",
"set.add",
"set",
"cur",
"return false;",
"false",
"int[] nums",
"nums",
"int target",
"target",
"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 }",
"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\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n int n = sc.nextInt();\n Map<String, Integer> map = new HashMap<>();\n for (int i = 0; i < n; i++) {\n String s = sc.nextLine();\n map.put(s, map.getOrDefault(s, 0)+1);\n }\n //AC x 3\n //WA x 1\n //TLE x 2\n //RE x 0\n System.out.println(\"AC x \"+map.getOrDefault(\"AC\", 0));\n System.out.println(\"WA x \"+map.getOrDefault(\"WA\", 0));\n System.out.println(\"TLE x \"+map.getOrDefault(\"TLE\", 0));\n System.out.println(\"RE x \"+map.getOrDefault(\"RE\", 0));\n\n }\n\n private static boolean ok(int k) {\n while (k>0) {\n int c = k%10;\n if (c!=4&&c!=7) return false;\n k/=10;\n }\n return true;\n }\n\n // 1 2 3 4 5 6\n // x * 2 == 10\n\n\n\n private static boolean preSum(int[] nums, int target) {\n int cur = 0;\n Set<Integer> set = new HashSet<>();\n set.add(0);\n for (int i = 0; i < nums.length; i++) {\n cur += nums[i];\n if (set.contains(cur-target)) {\n System.out.println(cur-target);\n return true;\n }\n set.add(cur);\n }\n return false;\n }\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 }\n\n}",
"public class Main {\n\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n int n = sc.nextInt();\n Map<String, Integer> map = new HashMap<>();\n for (int i = 0; i < n; i++) {\n String s = sc.nextLine();\n map.put(s, map.getOrDefault(s, 0)+1);\n }\n //AC x 3\n //WA x 1\n //TLE x 2\n //RE x 0\n System.out.println(\"AC x \"+map.getOrDefault(\"AC\", 0));\n System.out.println(\"WA x \"+map.getOrDefault(\"WA\", 0));\n System.out.println(\"TLE x \"+map.getOrDefault(\"TLE\", 0));\n System.out.println(\"RE x \"+map.getOrDefault(\"RE\", 0));\n\n }\n\n private static boolean ok(int k) {\n while (k>0) {\n int c = k%10;\n if (c!=4&&c!=7) return false;\n k/=10;\n }\n return true;\n }\n\n // 1 2 3 4 5 6\n // x * 2 == 10\n\n\n\n private static boolean preSum(int[] nums, int target) {\n int cur = 0;\n Set<Integer> set = new HashSet<>();\n set.add(0);\n for (int i = 0; i < nums.length; i++) {\n cur += nums[i];\n if (set.contains(cur-target)) {\n System.out.println(cur-target);\n return true;\n }\n set.add(cur);\n }\n return false;\n }\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 }\n\n}",
"Main"
]
|
import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) {
FastReader sc = new FastReader();
int n = sc.nextInt();
Map<String, Integer> map = new HashMap<>();
for (int i = 0; i < n; i++) {
String s = sc.nextLine();
map.put(s, map.getOrDefault(s, 0)+1);
}
//AC x 3
//WA x 1
//TLE x 2
//RE x 0
System.out.println("AC x "+map.getOrDefault("AC", 0));
System.out.println("WA x "+map.getOrDefault("WA", 0));
System.out.println("TLE x "+map.getOrDefault("TLE", 0));
System.out.println("RE x "+map.getOrDefault("RE", 0));
}
private static boolean ok(int k) {
while (k>0) {
int c = k%10;
if (c!=4&&c!=7) return false;
k/=10;
}
return true;
}
// 1 2 3 4 5 6
// x * 2 == 10
private static boolean preSum(int[] nums, int target) {
int cur = 0;
Set<Integer> set = new HashSet<>();
set.add(0);
for (int i = 0; i < nums.length; i++) {
cur += nums[i];
if (set.contains(cur-target)) {
System.out.println(cur-target);
return true;
}
set.add(cur);
}
return false;
}
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,
15,
13,
17,
6,
13,
12,
13,
30,
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,
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,
13,
2,
17,
13,
4,
18,
13,
2,
17,
13,
4,
18,
13,
2,
17,
13,
4,
18,
13,
2,
17,
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
],
[
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
],
[
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
],
[
11,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
82,
83
],
[
82,
84
],
[
11,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
88,
89
],
[
88,
90
],
[
11,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
94,
95
],
[
94,
96
],
[
11,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
100,
101
],
[
100,
102
],
[
9,
103
],
[
103,
104
]
]
| [
"import java.util.*;\nimport java.io.*;\nclass Main{\n\tpublic static void main(String[]args){\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out = new PrintWriter(System.out, true);\n\t\tint t = Integer.parseInt(in.nextLine());\n\t\tint count_1 = 0;\n\t\tint count_2 = 0;\n\t\tint count_3 = 0;\n\t\tint count_4 = 0;\n\t\tfor(int i=0;i<t;i++){\n\t\t\tString str = in.nextLine();\n\t\t\tif(str.equals(\"AC\"))\n\t\t\t\tcount_1++;\n\t\t\telse if(str.equals(\"WA\"))\n\t\t\t\tcount_2++;\n\t\t\telse if(str.equals(\"TLE\"))\n\t\t\t\tcount_3++;\n\t\t\telse\n\t\t\t\tcount_4++;\n\t\t}\n\t\tout.println(\"AC x \" + count_1);\n\t\tout.println(\"WA x \" + count_2);\n\t\tout.println(\"TLE x \" + count_3);\n\t\tout.println(\"RE x \" + count_4);\n\t}\n}\t",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"class Main{\n\tpublic static void main(String[]args){\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out = new PrintWriter(System.out, true);\n\t\tint t = Integer.parseInt(in.nextLine());\n\t\tint count_1 = 0;\n\t\tint count_2 = 0;\n\t\tint count_3 = 0;\n\t\tint count_4 = 0;\n\t\tfor(int i=0;i<t;i++){\n\t\t\tString str = in.nextLine();\n\t\t\tif(str.equals(\"AC\"))\n\t\t\t\tcount_1++;\n\t\t\telse if(str.equals(\"WA\"))\n\t\t\t\tcount_2++;\n\t\t\telse if(str.equals(\"TLE\"))\n\t\t\t\tcount_3++;\n\t\t\telse\n\t\t\t\tcount_4++;\n\t\t}\n\t\tout.println(\"AC x \" + count_1);\n\t\tout.println(\"WA x \" + count_2);\n\t\tout.println(\"TLE x \" + count_3);\n\t\tout.println(\"RE x \" + count_4);\n\t}\n}",
"Main",
"public static void main(String[]args){\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out = new PrintWriter(System.out, true);\n\t\tint t = Integer.parseInt(in.nextLine());\n\t\tint count_1 = 0;\n\t\tint count_2 = 0;\n\t\tint count_3 = 0;\n\t\tint count_4 = 0;\n\t\tfor(int i=0;i<t;i++){\n\t\t\tString str = in.nextLine();\n\t\t\tif(str.equals(\"AC\"))\n\t\t\t\tcount_1++;\n\t\t\telse if(str.equals(\"WA\"))\n\t\t\t\tcount_2++;\n\t\t\telse if(str.equals(\"TLE\"))\n\t\t\t\tcount_3++;\n\t\t\telse\n\t\t\t\tcount_4++;\n\t\t}\n\t\tout.println(\"AC x \" + count_1);\n\t\tout.println(\"WA x \" + count_2);\n\t\tout.println(\"TLE x \" + count_3);\n\t\tout.println(\"RE x \" + count_4);\n\t}",
"main",
"{\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out = new PrintWriter(System.out, true);\n\t\tint t = Integer.parseInt(in.nextLine());\n\t\tint count_1 = 0;\n\t\tint count_2 = 0;\n\t\tint count_3 = 0;\n\t\tint count_4 = 0;\n\t\tfor(int i=0;i<t;i++){\n\t\t\tString str = in.nextLine();\n\t\t\tif(str.equals(\"AC\"))\n\t\t\t\tcount_1++;\n\t\t\telse if(str.equals(\"WA\"))\n\t\t\t\tcount_2++;\n\t\t\telse if(str.equals(\"TLE\"))\n\t\t\t\tcount_3++;\n\t\t\telse\n\t\t\t\tcount_4++;\n\t\t}\n\t\tout.println(\"AC x \" + count_1);\n\t\tout.println(\"WA x \" + count_2);\n\t\tout.println(\"TLE x \" + count_3);\n\t\tout.println(\"RE x \" + count_4);\n\t}",
"Scanner in=new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"PrintWriter out = new PrintWriter(System.out, true);",
"out",
"new PrintWriter(System.out, true)",
"int t = Integer.parseInt(in.nextLine());",
"t",
"Integer.parseInt(in.nextLine())",
"Integer.parseInt",
"Integer",
"in.nextLine()",
"in.nextLine",
"in",
"int count_1 = 0;",
"count_1",
"0",
"int count_2 = 0;",
"count_2",
"0",
"int count_3 = 0;",
"count_3",
"0",
"int count_4 = 0;",
"count_4",
"0",
"for(int i=0;i<t;i++){\n\t\t\tString str = in.nextLine();\n\t\t\tif(str.equals(\"AC\"))\n\t\t\t\tcount_1++;\n\t\t\telse if(str.equals(\"WA\"))\n\t\t\t\tcount_2++;\n\t\t\telse if(str.equals(\"TLE\"))\n\t\t\t\tcount_3++;\n\t\t\telse\n\t\t\t\tcount_4++;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<t",
"i",
"t",
"i++",
"i++",
"i",
"{\n\t\t\tString str = in.nextLine();\n\t\t\tif(str.equals(\"AC\"))\n\t\t\t\tcount_1++;\n\t\t\telse if(str.equals(\"WA\"))\n\t\t\t\tcount_2++;\n\t\t\telse if(str.equals(\"TLE\"))\n\t\t\t\tcount_3++;\n\t\t\telse\n\t\t\t\tcount_4++;\n\t\t}",
"{\n\t\t\tString str = in.nextLine();\n\t\t\tif(str.equals(\"AC\"))\n\t\t\t\tcount_1++;\n\t\t\telse if(str.equals(\"WA\"))\n\t\t\t\tcount_2++;\n\t\t\telse if(str.equals(\"TLE\"))\n\t\t\t\tcount_3++;\n\t\t\telse\n\t\t\t\tcount_4++;\n\t\t}",
"String str = in.nextLine();",
"str",
"in.nextLine()",
"in.nextLine",
"in",
"if(str.equals(\"AC\"))\n\t\t\t\tcount_1++;\n\t\t\telse if(str.equals(\"WA\"))\n\t\t\t\tcount_2++;\n\t\t\telse if(str.equals(\"TLE\"))\n\t\t\t\tcount_3++;\n\t\t\telse\n\t\t\t\tcount_4++;",
"str.equals(\"AC\")",
"str.equals",
"str",
"\"AC\"",
"count_1++",
"count_1",
"if(str.equals(\"WA\"))\n\t\t\t\tcount_2++;\n\t\t\telse if(str.equals(\"TLE\"))\n\t\t\t\tcount_3++;\n\t\t\telse\n\t\t\t\tcount_4++;",
"str.equals(\"WA\")",
"str.equals",
"str",
"\"WA\"",
"count_2++",
"count_2",
"if(str.equals(\"TLE\"))\n\t\t\t\tcount_3++;\n\t\t\telse\n\t\t\t\tcount_4++;",
"str.equals(\"TLE\")",
"str.equals",
"str",
"\"TLE\"",
"count_3++",
"count_3",
"count_4++",
"count_4",
"out.println(\"AC x \" + count_1)",
"out.println",
"out",
"\"AC x \" + count_1",
"\"AC x \"",
"count_1",
"out.println(\"WA x \" + count_2)",
"out.println",
"out",
"\"WA x \" + count_2",
"\"WA x \"",
"count_2",
"out.println(\"TLE x \" + count_3)",
"out.println",
"out",
"\"TLE x \" + count_3",
"\"TLE x \"",
"count_3",
"out.println(\"RE x \" + count_4)",
"out.println",
"out",
"\"RE x \" + count_4",
"\"RE x \"",
"count_4",
"String[]args",
"args"
]
| import java.util.*;
import java.io.*;
class Main{
public static void main(String[]args){
Scanner in=new Scanner(System.in);
PrintWriter out = new PrintWriter(System.out, true);
int t = Integer.parseInt(in.nextLine());
int count_1 = 0;
int count_2 = 0;
int count_3 = 0;
int count_4 = 0;
for(int i=0;i<t;i++){
String str = in.nextLine();
if(str.equals("AC"))
count_1++;
else if(str.equals("WA"))
count_2++;
else if(str.equals("TLE"))
count_3++;
else
count_4++;
}
out.println("AC x " + count_1);
out.println("WA x " + count_2);
out.println("TLE x " + count_3);
out.println("RE x " + count_4);
}
}
|
[
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
]
| [
[
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
],
[
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
]
]
| [
"import java.util.*;\n\nclass Main\n{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n \n String judge;\n int countAC = 0;\n int countWA = 0;\n int countTLE = 0;\n int countRE = 0;\n for (int i = 0; i < n; i++) {\n judge = sc.next();\n \n if (judge.equals(\"AC\")) {\n countAC++;\n } else if (judge.equals(\"WA\")) {\n countWA++;\n } else if (judge.equals(\"TLE\")) {\n countTLE++;\n } else if (judge.equals(\"RE\")) {\n countRE++;\n }\n }\n \n System.out.println(\"AC x \" + countAC);\n System.out.println(\"WA x \" + countWA);\n System.out.println(\"TLE x \" + countTLE);\n System.out.println(\"RE x \" + countRE);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main\n{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n \n String judge;\n int countAC = 0;\n int countWA = 0;\n int countTLE = 0;\n int countRE = 0;\n for (int i = 0; i < n; i++) {\n judge = sc.next();\n \n if (judge.equals(\"AC\")) {\n countAC++;\n } else if (judge.equals(\"WA\")) {\n countWA++;\n } else if (judge.equals(\"TLE\")) {\n countTLE++;\n } else if (judge.equals(\"RE\")) {\n countRE++;\n }\n }\n \n System.out.println(\"AC x \" + countAC);\n System.out.println(\"WA x \" + countWA);\n System.out.println(\"TLE x \" + countTLE);\n System.out.println(\"RE x \" + countRE);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n \n String judge;\n int countAC = 0;\n int countWA = 0;\n int countTLE = 0;\n int countRE = 0;\n for (int i = 0; i < n; i++) {\n judge = sc.next();\n \n if (judge.equals(\"AC\")) {\n countAC++;\n } else if (judge.equals(\"WA\")) {\n countWA++;\n } else if (judge.equals(\"TLE\")) {\n countTLE++;\n } else if (judge.equals(\"RE\")) {\n countRE++;\n }\n }\n \n System.out.println(\"AC x \" + countAC);\n System.out.println(\"WA x \" + countWA);\n System.out.println(\"TLE x \" + countTLE);\n System.out.println(\"RE x \" + countRE);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n \n String judge;\n int countAC = 0;\n int countWA = 0;\n int countTLE = 0;\n int countRE = 0;\n for (int i = 0; i < n; i++) {\n judge = sc.next();\n \n if (judge.equals(\"AC\")) {\n countAC++;\n } else if (judge.equals(\"WA\")) {\n countWA++;\n } else if (judge.equals(\"TLE\")) {\n countTLE++;\n } else if (judge.equals(\"RE\")) {\n countRE++;\n }\n }\n \n System.out.println(\"AC x \" + countAC);\n System.out.println(\"WA x \" + countWA);\n System.out.println(\"TLE x \" + countTLE);\n System.out.println(\"RE x \" + countRE);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String judge;",
"judge",
"int countAC = 0;",
"countAC",
"0",
"int countWA = 0;",
"countWA",
"0",
"int countTLE = 0;",
"countTLE",
"0",
"int countRE = 0;",
"countRE",
"0",
"for (int i = 0; i < n; i++) {\n judge = sc.next();\n \n if (judge.equals(\"AC\")) {\n countAC++;\n } else if (judge.equals(\"WA\")) {\n countWA++;\n } else if (judge.equals(\"TLE\")) {\n countTLE++;\n } else if (judge.equals(\"RE\")) {\n countRE++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n judge = sc.next();\n \n if (judge.equals(\"AC\")) {\n countAC++;\n } else if (judge.equals(\"WA\")) {\n countWA++;\n } else if (judge.equals(\"TLE\")) {\n countTLE++;\n } else if (judge.equals(\"RE\")) {\n countRE++;\n }\n }",
"{\n judge = sc.next();\n \n if (judge.equals(\"AC\")) {\n countAC++;\n } else if (judge.equals(\"WA\")) {\n countWA++;\n } else if (judge.equals(\"TLE\")) {\n countTLE++;\n } else if (judge.equals(\"RE\")) {\n countRE++;\n }\n }",
"judge = sc.next()",
"judge",
"sc.next()",
"sc.next",
"sc",
"if (judge.equals(\"AC\")) {\n countAC++;\n } else if (judge.equals(\"WA\")) {\n countWA++;\n } else if (judge.equals(\"TLE\")) {\n countTLE++;\n } else if (judge.equals(\"RE\")) {\n countRE++;\n }",
"judge.equals(\"AC\")",
"judge.equals",
"judge",
"\"AC\"",
"{\n countAC++;\n }",
"countAC++",
"countAC",
"if (judge.equals(\"WA\")) {\n countWA++;\n } else if (judge.equals(\"TLE\")) {\n countTLE++;\n } else if (judge.equals(\"RE\")) {\n countRE++;\n }",
"judge.equals(\"WA\")",
"judge.equals",
"judge",
"\"WA\"",
"{\n countWA++;\n }",
"countWA++",
"countWA",
"if (judge.equals(\"TLE\")) {\n countTLE++;\n } else if (judge.equals(\"RE\")) {\n countRE++;\n }",
"judge.equals(\"TLE\")",
"judge.equals",
"judge",
"\"TLE\"",
"{\n countTLE++;\n }",
"countTLE++",
"countTLE",
"if (judge.equals(\"RE\")) {\n countRE++;\n }",
"judge.equals(\"RE\")",
"judge.equals",
"judge",
"\"RE\"",
"{\n countRE++;\n }",
"countRE++",
"countRE",
"System.out.println(\"AC x \" + countAC)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + countAC",
"\"AC x \"",
"countAC",
"System.out.println(\"WA x \" + countWA)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + countWA",
"\"WA x \"",
"countWA",
"System.out.println(\"TLE x \" + countTLE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + countTLE",
"\"TLE x \"",
"countTLE",
"System.out.println(\"RE x \" + countRE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + countRE",
"\"RE x \"",
"countRE",
"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 judge;
int countAC = 0;
int countWA = 0;
int countTLE = 0;
int countRE = 0;
for (int i = 0; i < n; i++) {
judge = sc.next();
if (judge.equals("AC")) {
countAC++;
} else if (judge.equals("WA")) {
countWA++;
} else if (judge.equals("TLE")) {
countTLE++;
} else if (judge.equals("RE")) {
countRE++;
}
}
System.out.println("AC x " + countAC);
System.out.println("WA x " + countWA);
System.out.println("TLE x " + countTLE);
System.out.println("RE x " + countRE);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
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,
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,
41,
13,
20,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
13,
17,
4,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
13,
41,
13,
20,
42,
2,
2,
13,
17,
17,
30,
4,
18,
13,
17,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
0,
13,
17,
30,
30,
42,
2,
2,
13,
13,
17,
30,
4,
18,
13,
13,
0,
13,
13,
14,
2,
13,
17,
4,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
2,
13,
17,
0,
13,
17,
29,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
9,
41,
13,
13,
41,
13,
2,
13,
13,
4,
18,
13,
13,
14,
2,
13,
13,
30,
9,
4,
18,
13,
2,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
14,
2,
13,
17,
29,
17,
0,
13,
4,
13,
13,
2,
13,
17,
14,
2,
2,
13,
17,
17,
29,
2,
13,
13,
29,
2,
2,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
20,
2,
13,
17,
41,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
11,
1,
41,
13,
2,
13,
13,
2,
13,
13,
1,
0,
13,
13,
30,
30,
0,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
4,
18,
13,
13,
29,
13,
12,
13,
30,
14,
2,
13,
17,
29,
13,
29,
4,
13,
13,
2,
13,
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,
6,
13,
12,
13,
30,
14,
2,
18,
13,
13,
18,
13,
13,
30,
29,
2,
18,
13,
13,
18,
13,
13,
29,
2,
18,
13,
13,
18,
13,
13,
23,
13,
23,
13,
13,
6,
13,
41,
13,
41,
13,
41,
13,
20,
6,
13,
41,
13,
2,
17,
17,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
13,
0,
13,
0,
13,
17,
12,
13,
30,
0,
13,
20,
0,
13,
20,
13,
0,
13,
0,
13,
17,
23,
13,
12,
13,
30,
41,
13,
20,
17,
41,
13,
17,
41,
13,
42,
2,
0,
13,
4,
13,
40,
17,
30,
14,
2,
13,
17,
3,
0,
18,
13,
40,
13,
13,
29,
20,
12,
13,
30,
41,
13,
17,
41,
13,
4,
13,
42,
2,
13,
17,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
13,
29,
40,
13,
29,
13,
12,
13,
30,
41,
13,
17,
41,
13,
4,
13,
42,
2,
13,
17,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
13,
29,
40,
13,
29,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
4,
13,
42,
2,
13,
17,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
2,
13,
17,
30,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
13,
17,
0,
13,
17,
14,
13,
29,
40,
13,
29,
13,
12,
13,
30,
0,
13,
4,
18,
13,
13,
0,
13,
17,
13,
14,
2,
13,
40,
17,
0,
18,
13,
17,
40,
17,
12,
13,
30,
14,
2,
13,
13,
4,
13,
29,
18,
13,
40,
13,
12,
13,
30,
14,
2,
13,
17,
29,
4,
18,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
793,
11
],
[
793,
12
],
[
12,
13
],
[
12,
14
],
[
793,
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
],
[
30,
31
],
[
29,
32
],
[
29,
33
],
[
17,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
34,
38
],
[
17,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
39,
43
],
[
17,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
44,
48
],
[
17,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
67,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
71,
76
],
[
17,
77
],
[
77,
78
],
[
77,
79
],
[
17,
80
],
[
80,
81
],
[
80,
82
],
[
80,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
91,
91
],
[
91,
92
],
[
91,
93
],
[
91,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
15,
98
],
[
98,
99
],
[
793,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
102,
109
],
[
109,
110
],
[
109,
111
],
[
102,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
112,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
119,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
102,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
131,
132
],
[
131,
133
],
[
126,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
126,
138
],
[
139,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
145
],
[
140,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
147,
150
],
[
146,
151
],
[
151,
152
],
[
151,
153
],
[
102,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
158,
159
],
[
159,
160
],
[
158,
161
],
[
102,
162
],
[
162,
163
],
[
100,
164
],
[
164,
165
],
[
793,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
168,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
172,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
179,
181
],
[
176,
182
],
[
182,
183
],
[
182,
184
],
[
168,
185
],
[
185,
186
],
[
166,
187
],
[
187,
188
],
[
793,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
194,
195
],
[
195,
196
],
[
194,
197
],
[
191,
198
],
[
198,
199
],
[
198,
200
],
[
191,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
201,
206
],
[
206,
207
],
[
206,
208
],
[
201,
209
],
[
209,
210
],
[
210,
211
],
[
201,
212
],
[
213,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
215,
219
],
[
214,
220
],
[
213,
221
],
[
221,
222
],
[
221,
223
],
[
213,
224
],
[
224,
225
],
[
224,
226
],
[
226,
227
],
[
226,
228
],
[
213,
229
],
[
229,
230
],
[
230,
231
],
[
229,
232
],
[
213,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
233,
237
],
[
237,
238
],
[
213,
239
],
[
239,
240
],
[
240,
241
],
[
239,
242
],
[
242,
243
],
[
242,
244
],
[
191,
245
],
[
245,
246
],
[
189,
247
],
[
247,
248
],
[
793,
249
],
[
249,
250
],
[
249,
251
],
[
251,
252
],
[
252,
253
],
[
251,
254
],
[
254,
255
],
[
255,
256
],
[
255,
257
],
[
254,
258
],
[
258,
259
],
[
251,
260
],
[
260,
261
],
[
260,
262
],
[
262,
263
],
[
262,
264
],
[
262,
265
],
[
265,
266
],
[
265,
267
],
[
251,
268
],
[
268,
269
],
[
269,
270
],
[
270,
271
],
[
270,
272
],
[
269,
273
],
[
268,
274
],
[
274,
275
],
[
275,
276
],
[
275,
277
],
[
268,
278
],
[
278,
279
],
[
280,
280
],
[
280,
281
],
[
280,
282
],
[
280,
283
],
[
249,
284
],
[
284,
285
],
[
249,
286
],
[
286,
287
],
[
793,
288
],
[
288,
289
],
[
288,
290
],
[
290,
291
],
[
291,
292
],
[
291,
293
],
[
290,
294
],
[
294,
295
],
[
294,
296
],
[
290,
297
],
[
297,
298
],
[
297,
299
],
[
300,
301
],
[
300,
302
],
[
290,
303
],
[
303,
304
],
[
303,
305
],
[
305,
306
],
[
306,
307
],
[
305,
308
],
[
290,
309
],
[
309,
310
],
[
310,
311
],
[
311,
312
],
[
311,
313
],
[
309,
314
],
[
314,
315
],
[
314,
316
],
[
309,
317
],
[
317,
318
],
[
318,
319
],
[
309,
320
],
[
321,
321
],
[
321,
322
],
[
322,
323
],
[
323,
324
],
[
324,
325
],
[
324,
326
],
[
323,
327
],
[
322,
328
],
[
328,
329
],
[
329,
330
],
[
330,
331
],
[
331,
332
],
[
331,
333
],
[
333,
334
],
[
333,
335
],
[
329,
336
],
[
336,
337
],
[
336,
338
],
[
329,
339
],
[
339,
340
],
[
340,
341
],
[
340,
342
],
[
329,
343
],
[
344,
344
],
[
344,
345
],
[
345,
346
],
[
346,
347
],
[
346,
348
],
[
345,
349
],
[
290,
350
],
[
350,
351
],
[
351,
352
],
[
352,
353
],
[
352,
354
],
[
350,
355
],
[
355,
356
],
[
355,
357
],
[
350,
358
],
[
358,
359
],
[
359,
360
],
[
350,
361
],
[
362,
362
],
[
362,
363
],
[
363,
364
],
[
364,
365
],
[
365,
366
],
[
365,
367
],
[
364,
368
],
[
363,
369
],
[
369,
370
],
[
370,
371
],
[
369,
372
],
[
290,
373
],
[
373,
374
],
[
793,
375
],
[
375,
376
],
[
375,
377
],
[
377,
378
],
[
378,
379
],
[
379,
380
],
[
379,
381
],
[
378,
382
],
[
382,
383
],
[
377,
384
],
[
384,
385
],
[
385,
386
],
[
385,
387
],
[
385,
388
],
[
388,
389
],
[
388,
390
],
[
375,
391
],
[
391,
392
],
[
375,
393
],
[
393,
394
],
[
793,
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
],
[
793,
418
],
[
418,
419
],
[
418,
420
],
[
420,
421
],
[
420,
422
],
[
422,
423
],
[
423,
424
],
[
424,
425
],
[
425,
426
],
[
425,
427
],
[
424,
428
],
[
428,
429
],
[
428,
430
],
[
423,
431
],
[
431,
432
],
[
432,
433
],
[
433,
434
],
[
434,
435
],
[
434,
436
],
[
433,
437
],
[
437,
438
],
[
437,
439
],
[
422,
440
],
[
440,
441
],
[
441,
442
],
[
442,
443
],
[
442,
444
],
[
441,
445
],
[
445,
446
],
[
445,
447
],
[
420,
448
],
[
448,
449
],
[
420,
450
],
[
450,
451
],
[
418,
452
],
[
793,
453
],
[
453,
454
],
[
453,
455
],
[
455,
456
],
[
453,
457
],
[
457,
458
],
[
453,
459
],
[
459,
460
],
[
459,
461
],
[
793,
462
],
[
462,
463
],
[
462,
464
],
[
464,
465
],
[
464,
466
],
[
466,
467
],
[
466,
468
],
[
462,
469
],
[
469,
470
],
[
462,
471
],
[
471,
472
],
[
462,
473
],
[
473,
474
],
[
462,
475
],
[
475,
476
],
[
462,
477
],
[
477,
478
],
[
477,
479
],
[
479,
480
],
[
480,
481
],
[
480,
482
],
[
479,
483
],
[
483,
484
],
[
483,
485
],
[
479,
487
],
[
487,
488
],
[
487,
489
],
[
489,
490
],
[
489,
491
],
[
462,
492
],
[
492,
493
],
[
492,
494
],
[
494,
495
],
[
495,
496
],
[
495,
497
],
[
494,
498
],
[
498,
499
],
[
498,
500
],
[
494,
502
],
[
502,
503
],
[
502,
504
],
[
504,
505
],
[
504,
506
],
[
492,
507
],
[
507,
508
],
[
462,
509
],
[
509,
510
],
[
509,
511
],
[
511,
512
],
[
512,
513
],
[
512,
514
],
[
511,
516
],
[
516,
517
],
[
516,
518
],
[
511,
519
],
[
519,
520
],
[
511,
521
],
[
521,
522
],
[
522,
523
],
[
523,
524
],
[
523,
525
],
[
525,
526
],
[
522,
527
],
[
527,
528
],
[
521,
529
],
[
529,
530
],
[
530,
531
],
[
531,
532
],
[
531,
533
],
[
530,
534
],
[
529,
535
],
[
535,
536
],
[
536,
537
],
[
536,
538
],
[
538,
539
],
[
535,
540
],
[
511,
541
],
[
541,
542
],
[
462,
543
],
[
543,
544
],
[
543,
545
],
[
545,
546
],
[
546,
547
],
[
546,
548
],
[
545,
549
],
[
549,
550
],
[
549,
551
],
[
551,
552
],
[
545,
553
],
[
553,
554
],
[
554,
555
],
[
554,
556
],
[
553,
557
],
[
557,
558
],
[
557,
559
],
[
559,
560
],
[
545,
561
],
[
561,
562
],
[
561,
563
],
[
563,
564
],
[
563,
565
],
[
545,
566
],
[
566,
567
],
[
566,
568
],
[
568,
569
],
[
568,
570
],
[
570,
571
],
[
545,
572
],
[
572,
573
],
[
573,
574
],
[
574,
575
],
[
575,
576
],
[
575,
577
],
[
577,
578
],
[
574,
579
],
[
573,
580
],
[
580,
581
],
[
580,
582
],
[
572,
583
],
[
583,
584
],
[
584,
585
],
[
584,
586
],
[
586,
587
],
[
587,
588
],
[
588,
589
],
[
588,
590
],
[
587,
591
],
[
586,
592
],
[
545,
593
],
[
593,
594
],
[
593,
595
],
[
595,
596
],
[
596,
597
],
[
545,
598
],
[
598,
599
],
[
462,
600
],
[
600,
601
],
[
600,
602
],
[
602,
603
],
[
603,
604
],
[
603,
605
],
[
602,
606
],
[
606,
607
],
[
606,
608
],
[
608,
609
],
[
602,
610
],
[
610,
611
],
[
611,
612
],
[
611,
613
],
[
610,
614
],
[
614,
615
],
[
614,
616
],
[
616,
617
],
[
602,
618
],
[
618,
619
],
[
618,
620
],
[
620,
621
],
[
620,
622
],
[
602,
623
],
[
623,
624
],
[
623,
625
],
[
625,
626
],
[
625,
627
],
[
627,
628
],
[
602,
629
],
[
629,
630
],
[
630,
631
],
[
631,
632
],
[
632,
633
],
[
632,
634
],
[
634,
635
],
[
631,
636
],
[
630,
637
],
[
637,
638
],
[
637,
639
],
[
629,
640
],
[
640,
641
],
[
641,
642
],
[
641,
643
],
[
643,
644
],
[
644,
645
],
[
645,
646
],
[
645,
647
],
[
644,
648
],
[
643,
649
],
[
602,
650
],
[
650,
651
],
[
650,
652
],
[
652,
653
],
[
653,
654
],
[
602,
655
],
[
655,
656
],
[
462,
657
],
[
657,
658
],
[
657,
659
],
[
659,
660
],
[
660,
661
],
[
660,
662
],
[
659,
663
],
[
663,
664
],
[
663,
665
],
[
659,
666
],
[
666,
667
],
[
666,
668
],
[
668,
669
],
[
659,
670
],
[
670,
671
],
[
671,
672
],
[
671,
673
],
[
670,
674
],
[
674,
675
],
[
674,
676
],
[
676,
677
],
[
659,
678
],
[
678,
679
],
[
678,
680
],
[
680,
681
],
[
680,
682
],
[
659,
683
],
[
683,
684
],
[
683,
685
],
[
685,
686
],
[
685,
687
],
[
687,
688
],
[
659,
689
],
[
689,
690
],
[
690,
691
],
[
691,
692
],
[
692,
693
],
[
692,
694
],
[
694,
695
],
[
691,
696
],
[
690,
697
],
[
697,
698
],
[
697,
699
],
[
689,
700
],
[
700,
701
],
[
701,
702
],
[
701,
703
],
[
703,
704
],
[
704,
705
],
[
705,
706
],
[
705,
707
],
[
704,
708
],
[
703,
709
],
[
659,
710
],
[
710,
711
],
[
711,
712
],
[
711,
713
],
[
710,
714
],
[
714,
715
],
[
715,
716
],
[
716,
717
],
[
717,
718
],
[
718,
719
],
[
718,
720
],
[
720,
721
],
[
717,
722
],
[
716,
723
],
[
723,
724
],
[
723,
725
],
[
715,
726
],
[
726,
727
],
[
727,
728
],
[
727,
729
],
[
729,
730
],
[
730,
731
],
[
730,
732
],
[
729,
733
],
[
733,
734
],
[
733,
735
],
[
659,
736
],
[
736,
737
],
[
736,
738
],
[
738,
739
],
[
739,
740
],
[
659,
741
],
[
741,
742
],
[
462,
743
],
[
743,
744
],
[
743,
745
],
[
745,
746
],
[
746,
747
],
[
746,
748
],
[
748,
749
],
[
749,
750
],
[
748,
751
],
[
748,
752
],
[
752,
753
],
[
752,
754
],
[
748,
755
],
[
745,
756
],
[
756,
757
],
[
757,
758
],
[
757,
759
],
[
759,
760
],
[
756,
761
],
[
761,
762
],
[
762,
763
],
[
762,
764
],
[
761,
765
],
[
765,
766
],
[
462,
767
],
[
767,
768
],
[
767,
769
],
[
769,
770
],
[
770,
771
],
[
771,
772
],
[
771,
773
],
[
770,
774
],
[
774,
775
],
[
769,
776
],
[
776,
777
],
[
777,
778
],
[
777,
779
],
[
779,
780
],
[
462,
781
],
[
781,
782
],
[
781,
783
],
[
783,
784
],
[
784,
785
],
[
785,
786
],
[
785,
787
],
[
784,
788
],
[
783,
789
],
[
789,
790
],
[
790,
791
],
[
0,
792
],
[
792,
793
],
[
792,
794
]
]
| [
"import java.util.*;\nimport java.io.*;\nimport java.math.*;\npublic class Main{\n\tpublic static PrintWriter out = new PrintWriter (new BufferedOutputStream(System.out));\n\tpublic static void main(String sp[])throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\t\t//FastReader sc = new FastReader();\t\n\t\tint n = sc.nextInt();\n\t\tHashMap<String,Integer> hm = new LinkedHashMap<>();\n\t\thm.put(\"AC\",0);\n\t\thm.put(\"WA\",0);\n\t\thm.put(\"TLE\",0);\n\t\thm.put(\"RE\",0);\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString st = sc.next();\n\t\t\thm.put(st,hm.get(st)+1);\n\t\t}\n\t\tArrayList<String> al = new ArrayList<>(hm.keySet());\n\t\tfor(String val:al){\n\t\t\tSystem.out.println(val+\" x \"+hm.get(val));\n\t\t}\n\t}\n\t\n\t\n\t\n\tpublic static ArrayList<Integer> primefactor(int n){\n\t\tint sqrt = (int)Math.sqrt(n);\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\twhile(n%2==0){\n\t\t\tal.add(2);\n\t\t\tn/=2;\n\t\t}\n\t\tfor(int i=3;i<=sqrt;i+=2){\n\t\t\twhile(n%i==0){\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}\n\t\t}\n\t\tif(n>2)\n\t\t\tal.add(n);\n\t\treturn al;\n\t}\n\t\n\tpublic static long sum(long val){\n\t\tlong fg =0 ;\n\t\twhile(val!=0){\n\t\t\tfg+=val%10;\n\t\t\tval/=10;\n\t\t}\n\t\treturn fg;\n\t}\n\t\n\t\n\t\n\tpublic static ArrayList<Integer> factor(int n){\n\t\tint sqrt = (int)Math.sqrt(n);\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\tfor(int i=1;i<=sqrt;i++){\n\t\t\tif(n%i!=0)\n\t\t\t\tcontinue;\n\t\t\tint first = i;\n\t\t\tint second = n/i;\n\t\t\tal.add(i);\n\t\t\tif(first==second){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tal.add(n/i);\n\t\t}\n\t\treturn al;\n\t}\n\t\n\tpublic static int power(int x, int y) \n\t{ \n\t\tint temp; \n\t\tif( y == 0) \n\t\t\treturn 1; \n\t\ttemp = power(x, y/2); \n\t\tif (y%2 == 0) \n\t\t\treturn temp*temp; \n\t\telse\n\t\t\treturn x*temp*temp; \n\t} \n\t\n\tpublic static ArrayList<Integer> comp(){\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\t\tint n = (int)2e5;\n\t\t\tboolean arr[] = new boolean[n+1];\n\t\t\tint sqrt = (int)Math.sqrt(n);\n\t\t\tfor(int i=2;i<=sqrt;i++){\n\t\t\t\tif(arr[i]==false){\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=2;i<=n;i++){\n\t\t\t\tif(arr[i]==false)\n\t\t\t\t\tal.add(i);\n\t\t\t}\n\t\t\t\n\t\treturn al;\n\t}\n\t\n\tpublic static class pair{\n\t\tint x;\n\t\tint y;\n\t\tpair(int x, int y){\n\t\t\tthis.x=x;\n\t\t\tthis.y=y;\n\t\t}\n\t}\n\t\n\tpublic static class comp implements Comparator<pair>{\n\t\tpublic int compare(pair o1, pair o2){\n\t\t\tif(o1.y==o2.y){\n\t\t\t\treturn o2.x-o1.x;\n\t\t\t}\n\t\t\treturn o2.y-o1.y;\n\t\t}\n\t}\n\t\n\t\n\t\n\t\n\tstatic class Node{\n\t\tint node;\n\t\tint d;\n\t\tArrayList<Integer> al = new ArrayList<>();\t\n\t}\n\t\n\n\tstatic long gcd(long a, long b) \n { \n if (b == 0) \n return a; \n return gcd(b, a % b); \n }\n\t\n\t\t\n\tstatic class FastReader \n\t{ \n\t\tfinal private int BUFFER_SIZE = 1 << 16; \n\t\tprivate DataInputStream din; \n\t\tprivate byte[] buffer; \n\t\tprivate int bufferPointer, bytesRead; \n \n\t\tpublic FastReader() \n\t\t{ \n\t\t\tdin = new DataInputStream(System.in); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t} \n \n\t\tpublic FastReader(String file_name) throws IOException \n\t\t{ \n\t\t\tdin = new DataInputStream(new FileInputStream(file_name)); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t} \n \n\t\tpublic String readLine() throws IOException \n\t\t{ \n\t\t\tbyte[] buf = new byte[64]; // line length \n\t\t\tint cnt = 0, c; \n\t\t\twhile ((c = read()) != -1) \n\t\t\t{ \n\t\t\t\tif (c == '\\n') \n\t\t\t\t\tbreak; \n\t\t\t\tbuf[cnt++] = (byte) c; \n\t\t\t} \n\t\t\treturn new String(buf, 0, cnt); \n\t\t} \n \n\t\tpublic int nextInt() throws IOException \n\t\t{ \n\t\t\tint ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo\n\t\t\t{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} while ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tpublic long nextLong() throws IOException \n\t\t{ \n\t\t\tlong ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tpublic double nextDouble() throws IOException \n\t\t{ \n\t\t\tdouble ret = 0, div = 1; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (c == '.') \n\t\t\t{ \n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') \n\t\t\t\t{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t} \n\t\t\t} \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tprivate void fillBuffer() throws IOException \n\t\t{ \n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n\t\t\tif (bytesRead == -1) \n\t\t\t\tbuffer[0] = -1; \n\t\t} \n \n\t\tprivate byte read() throws IOException \n\t\t{ \n\t\t\tif (bufferPointer == bytesRead) \n\t\t\t\tfillBuffer(); \n\t\t\treturn buffer[bufferPointer++]; \n\t\t} \n \n\t\tpublic void close() throws IOException \n\t\t{ \n\t\t\tif (din == null) \n\t\t\t\treturn; \n\t\t\tdin.close(); \n\t\t} \n\t} \n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.math.*;",
"math.*",
"java",
"public class Main{\n\tpublic static PrintWriter out = new PrintWriter (new BufferedOutputStream(System.out));\n\tpublic static void main(String sp[])throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\t\t//FastReader sc = new FastReader();\t\n\t\tint n = sc.nextInt();\n\t\tHashMap<String,Integer> hm = new LinkedHashMap<>();\n\t\thm.put(\"AC\",0);\n\t\thm.put(\"WA\",0);\n\t\thm.put(\"TLE\",0);\n\t\thm.put(\"RE\",0);\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString st = sc.next();\n\t\t\thm.put(st,hm.get(st)+1);\n\t\t}\n\t\tArrayList<String> al = new ArrayList<>(hm.keySet());\n\t\tfor(String val:al){\n\t\t\tSystem.out.println(val+\" x \"+hm.get(val));\n\t\t}\n\t}\n\t\n\t\n\t\n\tpublic static ArrayList<Integer> primefactor(int n){\n\t\tint sqrt = (int)Math.sqrt(n);\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\twhile(n%2==0){\n\t\t\tal.add(2);\n\t\t\tn/=2;\n\t\t}\n\t\tfor(int i=3;i<=sqrt;i+=2){\n\t\t\twhile(n%i==0){\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}\n\t\t}\n\t\tif(n>2)\n\t\t\tal.add(n);\n\t\treturn al;\n\t}\n\t\n\tpublic static long sum(long val){\n\t\tlong fg =0 ;\n\t\twhile(val!=0){\n\t\t\tfg+=val%10;\n\t\t\tval/=10;\n\t\t}\n\t\treturn fg;\n\t}\n\t\n\t\n\t\n\tpublic static ArrayList<Integer> factor(int n){\n\t\tint sqrt = (int)Math.sqrt(n);\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\tfor(int i=1;i<=sqrt;i++){\n\t\t\tif(n%i!=0)\n\t\t\t\tcontinue;\n\t\t\tint first = i;\n\t\t\tint second = n/i;\n\t\t\tal.add(i);\n\t\t\tif(first==second){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tal.add(n/i);\n\t\t}\n\t\treturn al;\n\t}\n\t\n\tpublic static int power(int x, int y) \n\t{ \n\t\tint temp; \n\t\tif( y == 0) \n\t\t\treturn 1; \n\t\ttemp = power(x, y/2); \n\t\tif (y%2 == 0) \n\t\t\treturn temp*temp; \n\t\telse\n\t\t\treturn x*temp*temp; \n\t} \n\t\n\tpublic static ArrayList<Integer> comp(){\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\t\tint n = (int)2e5;\n\t\t\tboolean arr[] = new boolean[n+1];\n\t\t\tint sqrt = (int)Math.sqrt(n);\n\t\t\tfor(int i=2;i<=sqrt;i++){\n\t\t\t\tif(arr[i]==false){\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=2;i<=n;i++){\n\t\t\t\tif(arr[i]==false)\n\t\t\t\t\tal.add(i);\n\t\t\t}\n\t\t\t\n\t\treturn al;\n\t}\n\t\n\tpublic static class pair{\n\t\tint x;\n\t\tint y;\n\t\tpair(int x, int y){\n\t\t\tthis.x=x;\n\t\t\tthis.y=y;\n\t\t}\n\t}\n\t\n\tpublic static class comp implements Comparator<pair>{\n\t\tpublic int compare(pair o1, pair o2){\n\t\t\tif(o1.y==o2.y){\n\t\t\t\treturn o2.x-o1.x;\n\t\t\t}\n\t\t\treturn o2.y-o1.y;\n\t\t}\n\t}\n\t\n\t\n\t\n\t\n\tstatic class Node{\n\t\tint node;\n\t\tint d;\n\t\tArrayList<Integer> al = new ArrayList<>();\t\n\t}\n\t\n\n\tstatic long gcd(long a, long b) \n { \n if (b == 0) \n return a; \n return gcd(b, a % b); \n }\n\t\n\t\t\n\tstatic class FastReader \n\t{ \n\t\tfinal private int BUFFER_SIZE = 1 << 16; \n\t\tprivate DataInputStream din; \n\t\tprivate byte[] buffer; \n\t\tprivate int bufferPointer, bytesRead; \n \n\t\tpublic FastReader() \n\t\t{ \n\t\t\tdin = new DataInputStream(System.in); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t} \n \n\t\tpublic FastReader(String file_name) throws IOException \n\t\t{ \n\t\t\tdin = new DataInputStream(new FileInputStream(file_name)); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t} \n \n\t\tpublic String readLine() throws IOException \n\t\t{ \n\t\t\tbyte[] buf = new byte[64]; // line length \n\t\t\tint cnt = 0, c; \n\t\t\twhile ((c = read()) != -1) \n\t\t\t{ \n\t\t\t\tif (c == '\\n') \n\t\t\t\t\tbreak; \n\t\t\t\tbuf[cnt++] = (byte) c; \n\t\t\t} \n\t\t\treturn new String(buf, 0, cnt); \n\t\t} \n \n\t\tpublic int nextInt() throws IOException \n\t\t{ \n\t\t\tint ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo\n\t\t\t{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} while ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tpublic long nextLong() throws IOException \n\t\t{ \n\t\t\tlong ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tpublic double nextDouble() throws IOException \n\t\t{ \n\t\t\tdouble ret = 0, div = 1; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (c == '.') \n\t\t\t{ \n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') \n\t\t\t\t{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t} \n\t\t\t} \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tprivate void fillBuffer() throws IOException \n\t\t{ \n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n\t\t\tif (bytesRead == -1) \n\t\t\t\tbuffer[0] = -1; \n\t\t} \n \n\t\tprivate byte read() throws IOException \n\t\t{ \n\t\t\tif (bufferPointer == bytesRead) \n\t\t\t\tfillBuffer(); \n\t\t\treturn buffer[bufferPointer++]; \n\t\t} \n \n\t\tpublic void close() throws IOException \n\t\t{ \n\t\t\tif (din == null) \n\t\t\t\treturn; \n\t\t\tdin.close(); \n\t\t} \n\t} \n}",
"Main",
"public static PrintWriter out = new PrintWriter (new BufferedOutputStream(System.out));",
"out",
"new PrintWriter (new BufferedOutputStream(System.out))",
"public static void main(String sp[])throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\t\t//FastReader sc = new FastReader();\t\n\t\tint n = sc.nextInt();\n\t\tHashMap<String,Integer> hm = new LinkedHashMap<>();\n\t\thm.put(\"AC\",0);\n\t\thm.put(\"WA\",0);\n\t\thm.put(\"TLE\",0);\n\t\thm.put(\"RE\",0);\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString st = sc.next();\n\t\t\thm.put(st,hm.get(st)+1);\n\t\t}\n\t\tArrayList<String> al = new ArrayList<>(hm.keySet());\n\t\tfor(String val:al){\n\t\t\tSystem.out.println(val+\" x \"+hm.get(val));\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\t//FastReader sc = new FastReader();\t\n\t\tint n = sc.nextInt();\n\t\tHashMap<String,Integer> hm = new LinkedHashMap<>();\n\t\thm.put(\"AC\",0);\n\t\thm.put(\"WA\",0);\n\t\thm.put(\"TLE\",0);\n\t\thm.put(\"RE\",0);\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString st = sc.next();\n\t\t\thm.put(st,hm.get(st)+1);\n\t\t}\n\t\tArrayList<String> al = new ArrayList<>(hm.keySet());\n\t\tfor(String val:al){\n\t\t\tSystem.out.println(val+\" x \"+hm.get(val));\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",
"HashMap<String,Integer> hm = new LinkedHashMap<>();",
"hm",
"new LinkedHashMap<>()",
"hm.put(\"AC\",0)",
"hm.put",
"hm",
"\"AC\"",
"0",
"hm.put(\"WA\",0)",
"hm.put",
"hm",
"\"WA\"",
"0",
"hm.put(\"TLE\",0)",
"hm.put",
"hm",
"\"TLE\"",
"0",
"hm.put(\"RE\",0)",
"hm.put",
"hm",
"\"RE\"",
"0",
"for(int i=0;i<n;i++){\n\t\t\tString st = sc.next();\n\t\t\thm.put(st,hm.get(st)+1);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString st = sc.next();\n\t\t\thm.put(st,hm.get(st)+1);\n\t\t}",
"{\n\t\t\tString st = sc.next();\n\t\t\thm.put(st,hm.get(st)+1);\n\t\t}",
"String st = sc.next();",
"st",
"sc.next()",
"sc.next",
"sc",
"hm.put(st,hm.get(st)+1)",
"hm.put",
"hm",
"st",
"hm.get(st)+1",
"hm.get(st)",
"hm.get",
"hm",
"st",
"1",
"ArrayList<String> al = new ArrayList<>(hm.keySet());",
"al",
"new ArrayList<>(hm.keySet())",
"for(String val:al){\n\t\t\tSystem.out.println(val+\" x \"+hm.get(val));\n\t\t}",
"String val",
"al",
"{\n\t\t\tSystem.out.println(val+\" x \"+hm.get(val));\n\t\t}",
"{\n\t\t\tSystem.out.println(val+\" x \"+hm.get(val));\n\t\t}",
"System.out.println(val+\" x \"+hm.get(val))",
"System.out.println",
"System.out",
"System",
"System.out",
"val+\" x \"+hm.get(val)",
"val+\" x \"+hm.get(val)",
"val",
"\" x \"",
"hm.get(val)",
"hm.get",
"hm",
"val",
"String sp[]",
"sp",
"public static ArrayList<Integer> primefactor(int n){\n\t\tint sqrt = (int)Math.sqrt(n);\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\twhile(n%2==0){\n\t\t\tal.add(2);\n\t\t\tn/=2;\n\t\t}\n\t\tfor(int i=3;i<=sqrt;i+=2){\n\t\t\twhile(n%i==0){\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}\n\t\t}\n\t\tif(n>2)\n\t\t\tal.add(n);\n\t\treturn al;\n\t}",
"primefactor",
"{\n\t\tint sqrt = (int)Math.sqrt(n);\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\twhile(n%2==0){\n\t\t\tal.add(2);\n\t\t\tn/=2;\n\t\t}\n\t\tfor(int i=3;i<=sqrt;i+=2){\n\t\t\twhile(n%i==0){\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}\n\t\t}\n\t\tif(n>2)\n\t\t\tal.add(n);\n\t\treturn al;\n\t}",
"int sqrt = (int)Math.sqrt(n);",
"sqrt",
"(int)Math.sqrt(n)",
"Math.sqrt",
"Math",
"n",
"ArrayList<Integer> al = new ArrayList<>();",
"al",
"new ArrayList<>()",
"while(n%2==0){\n\t\t\tal.add(2);\n\t\t\tn/=2;\n\t\t}",
"n%2==0",
"n%2",
"n",
"2",
"0",
"{\n\t\t\tal.add(2);\n\t\t\tn/=2;\n\t\t}",
"al.add(2)",
"al.add",
"al",
"2",
"n/=2",
"n",
"2",
"for(int i=3;i<=sqrt;i+=2){\n\t\t\twhile(n%i==0){\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}\n\t\t}",
"int i=3;",
"int i=3;",
"i",
"3",
"i<=sqrt",
"i",
"sqrt",
"i+=2",
"i+=2",
"i",
"2",
"{\n\t\t\twhile(n%i==0){\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}\n\t\t}",
"{\n\t\t\twhile(n%i==0){\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}\n\t\t}",
"while(n%i==0){\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}",
"n%i==0",
"n%i",
"n",
"i",
"0",
"{\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}",
"al.add(i)",
"al.add",
"al",
"i",
"n/=i",
"n",
"i",
"if(n>2)\n\t\t\tal.add(n);",
"n>2",
"n",
"2",
"al.add(n)",
"al.add",
"al",
"n",
"return al;",
"al",
"int n",
"n",
"public static long sum(long val){\n\t\tlong fg =0 ;\n\t\twhile(val!=0){\n\t\t\tfg+=val%10;\n\t\t\tval/=10;\n\t\t}\n\t\treturn fg;\n\t}",
"sum",
"{\n\t\tlong fg =0 ;\n\t\twhile(val!=0){\n\t\t\tfg+=val%10;\n\t\t\tval/=10;\n\t\t}\n\t\treturn fg;\n\t}",
"long fg =0 ;",
"fg",
"0",
"while(val!=0){\n\t\t\tfg+=val%10;\n\t\t\tval/=10;\n\t\t}",
"val!=0",
"val",
"0",
"{\n\t\t\tfg+=val%10;\n\t\t\tval/=10;\n\t\t}",
"fg+=val%10",
"fg",
"val%10",
"val",
"10",
"val/=10",
"val",
"10",
"return fg;",
"fg",
"long val",
"val",
"public static ArrayList<Integer> factor(int n){\n\t\tint sqrt = (int)Math.sqrt(n);\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\tfor(int i=1;i<=sqrt;i++){\n\t\t\tif(n%i!=0)\n\t\t\t\tcontinue;\n\t\t\tint first = i;\n\t\t\tint second = n/i;\n\t\t\tal.add(i);\n\t\t\tif(first==second){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tal.add(n/i);\n\t\t}\n\t\treturn al;\n\t}",
"factor",
"{\n\t\tint sqrt = (int)Math.sqrt(n);\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\tfor(int i=1;i<=sqrt;i++){\n\t\t\tif(n%i!=0)\n\t\t\t\tcontinue;\n\t\t\tint first = i;\n\t\t\tint second = n/i;\n\t\t\tal.add(i);\n\t\t\tif(first==second){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tal.add(n/i);\n\t\t}\n\t\treturn al;\n\t}",
"int sqrt = (int)Math.sqrt(n);",
"sqrt",
"(int)Math.sqrt(n)",
"Math.sqrt",
"Math",
"n",
"ArrayList<Integer> al = new ArrayList<>();",
"al",
"new ArrayList<>()",
"for(int i=1;i<=sqrt;i++){\n\t\t\tif(n%i!=0)\n\t\t\t\tcontinue;\n\t\t\tint first = i;\n\t\t\tint second = n/i;\n\t\t\tal.add(i);\n\t\t\tif(first==second){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tal.add(n/i);\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=sqrt",
"i",
"sqrt",
"i++",
"i++",
"i",
"{\n\t\t\tif(n%i!=0)\n\t\t\t\tcontinue;\n\t\t\tint first = i;\n\t\t\tint second = n/i;\n\t\t\tal.add(i);\n\t\t\tif(first==second){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tal.add(n/i);\n\t\t}",
"{\n\t\t\tif(n%i!=0)\n\t\t\t\tcontinue;\n\t\t\tint first = i;\n\t\t\tint second = n/i;\n\t\t\tal.add(i);\n\t\t\tif(first==second){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tal.add(n/i);\n\t\t}",
"if(n%i!=0)\n\t\t\t\tcontinue;",
"n%i!=0",
"n%i",
"n",
"i",
"0",
"continue;",
"int first = i;",
"first",
"i",
"int second = n/i;",
"second",
"n/i",
"n",
"i",
"al.add(i)",
"al.add",
"al",
"i",
"if(first==second){\n\t\t\t\tcontinue;\n\t\t\t}",
"first==second",
"first",
"second",
"{\n\t\t\t\tcontinue;\n\t\t\t}",
"continue;",
"al.add(n/i)",
"al.add",
"al",
"n/i",
"n",
"i",
"return al;",
"al",
"int n",
"n",
"public static int power(int x, int y) \n\t{ \n\t\tint temp; \n\t\tif( y == 0) \n\t\t\treturn 1; \n\t\ttemp = power(x, y/2); \n\t\tif (y%2 == 0) \n\t\t\treturn temp*temp; \n\t\telse\n\t\t\treturn x*temp*temp; \n\t}",
"power",
"{ \n\t\tint temp; \n\t\tif( y == 0) \n\t\t\treturn 1; \n\t\ttemp = power(x, y/2); \n\t\tif (y%2 == 0) \n\t\t\treturn temp*temp; \n\t\telse\n\t\t\treturn x*temp*temp; \n\t}",
"int temp;",
"temp",
"if( y == 0) \n\t\t\treturn 1;",
"y == 0",
"y",
"0",
"return 1;",
"1",
"temp = power(x, y/2)",
"temp",
"power(x, y/2)",
"power",
"x",
"y/2",
"y",
"2",
"if (y%2 == 0) \n\t\t\treturn temp*temp; \n\t\telse\n\t\t\treturn x*temp*temp;",
"y%2 == 0",
"y%2",
"y",
"2",
"0",
"return temp*temp;",
"temp*temp",
"temp",
"temp",
"return x*temp*temp;",
"x*temp*temp",
"x*temp*temp",
"x",
"temp",
"temp",
"int x",
"x",
"int y",
"y",
"public static ArrayList<Integer> comp(){\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\t\tint n = (int)2e5;\n\t\t\tboolean arr[] = new boolean[n+1];\n\t\t\tint sqrt = (int)Math.sqrt(n);\n\t\t\tfor(int i=2;i<=sqrt;i++){\n\t\t\t\tif(arr[i]==false){\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=2;i<=n;i++){\n\t\t\t\tif(arr[i]==false)\n\t\t\t\t\tal.add(i);\n\t\t\t}\n\t\t\t\n\t\treturn al;\n\t}",
"comp",
"{\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\t\tint n = (int)2e5;\n\t\t\tboolean arr[] = new boolean[n+1];\n\t\t\tint sqrt = (int)Math.sqrt(n);\n\t\t\tfor(int i=2;i<=sqrt;i++){\n\t\t\t\tif(arr[i]==false){\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=2;i<=n;i++){\n\t\t\t\tif(arr[i]==false)\n\t\t\t\t\tal.add(i);\n\t\t\t}\n\t\t\t\n\t\treturn al;\n\t}",
"ArrayList<Integer> al = new ArrayList<>();",
"al",
"new ArrayList<>()",
"int n = (int)2e5;",
"n",
"(int)2e5",
"boolean arr[] = new boolean[n+1];",
"arr",
"new boolean[n+1]",
"n+1",
"n",
"1",
"int sqrt = (int)Math.sqrt(n);",
"sqrt",
"(int)Math.sqrt(n)",
"Math.sqrt",
"Math",
"n",
"for(int i=2;i<=sqrt;i++){\n\t\t\t\tif(arr[i]==false){\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int i=2;",
"int i=2;",
"i",
"2",
"i<=sqrt",
"i",
"sqrt",
"i++",
"i++",
"i",
"{\n\t\t\t\tif(arr[i]==false){\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(arr[i]==false){\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"if(arr[i]==false){\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}",
"arr[i]==false",
"arr[i]",
"arr",
"i",
"false",
"{\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}",
"for(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}",
"int j=i*i;",
"int j=i*i;",
"j",
"i*i",
"i",
"i",
"j<=n",
"j",
"n",
"j+=i",
"j+=i",
"j",
"i",
"{\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}",
"arr[j]=true",
"arr[j]",
"arr",
"j",
"true",
"for(int i=2;i<=n;i++){\n\t\t\t\tif(arr[i]==false)\n\t\t\t\t\tal.add(i);\n\t\t\t}",
"int i=2;",
"int i=2;",
"i",
"2",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tif(arr[i]==false)\n\t\t\t\t\tal.add(i);\n\t\t\t}",
"{\n\t\t\t\tif(arr[i]==false)\n\t\t\t\t\tal.add(i);\n\t\t\t}",
"if(arr[i]==false)\n\t\t\t\t\tal.add(i);",
"arr[i]==false",
"arr[i]",
"arr",
"i",
"false",
"al.add(i)",
"al.add",
"al",
"i",
"return al;",
"al",
"static long gcd(long a, long b) \n { \n if (b == 0) \n return a; \n return gcd(b, a % b); \n }",
"gcd",
"{ \n if (b == 0) \n return a; \n return gcd(b, a % b); \n }",
"if (b == 0) \n return a;",
"b == 0",
"b",
"0",
"return a;",
"a",
"return gcd(b, a % b);",
"gcd(b, a % b)",
"gcd",
"b",
"a % b",
"a",
"b",
"long a",
"a",
"long b",
"b",
"public static class pair{\n\t\tint x;\n\t\tint y;\n\t\tpair(int x, int y){\n\t\t\tthis.x=x;\n\t\t\tthis.y=y;\n\t\t}\n\t}",
"pair",
"int x;",
"x",
"int y;",
"y",
"pair(int x, int y){\n\t\t\tthis.x=x;\n\t\t\tthis.y=y;\n\t\t}",
"pair",
"{\n\t\t\tthis.x=x;\n\t\t\tthis.y=y;\n\t\t}",
"this.x=x",
"this.x",
"this",
"this.x",
"x",
"this.y=y",
"this.y",
"this",
"this.y",
"y",
"int x",
"x",
"int y",
"y",
"public static class comp implements Comparator<pair>{\n\t\tpublic int compare(pair o1, pair o2){\n\t\t\tif(o1.y==o2.y){\n\t\t\t\treturn o2.x-o1.x;\n\t\t\t}\n\t\t\treturn o2.y-o1.y;\n\t\t}\n\t}",
"comp",
"public int compare(pair o1, pair o2){\n\t\t\tif(o1.y==o2.y){\n\t\t\t\treturn o2.x-o1.x;\n\t\t\t}\n\t\t\treturn o2.y-o1.y;\n\t\t}",
"compare",
"{\n\t\t\tif(o1.y==o2.y){\n\t\t\t\treturn o2.x-o1.x;\n\t\t\t}\n\t\t\treturn o2.y-o1.y;\n\t\t}",
"if(o1.y==o2.y){\n\t\t\t\treturn o2.x-o1.x;\n\t\t\t}",
"o1.y==o2.y",
"o1.y",
"o1",
"o1.y",
"o2.y",
"o2",
"o2.y",
"{\n\t\t\t\treturn o2.x-o1.x;\n\t\t\t}",
"return o2.x-o1.x;",
"o2.x-o1.x",
"o2.x",
"o2",
"o2.x",
"o1.x",
"o1",
"o1.x",
"return o2.y-o1.y;",
"o2.y-o1.y",
"o2.y",
"o2",
"o2.y",
"o1.y",
"o1",
"o1.y",
"pair o1",
"o1",
"pair o2",
"o2",
"Comparator",
"static class Node{\n\t\tint node;\n\t\tint d;\n\t\tArrayList<Integer> al = new ArrayList<>();\t\n\t}",
"Node",
"int node;",
"node",
"int d;",
"d",
"ArrayList<Integer> al = new ArrayList<>();",
"al",
"new ArrayList<>()",
"static class FastReader \n\t{ \n\t\tfinal private int BUFFER_SIZE = 1 << 16; \n\t\tprivate DataInputStream din; \n\t\tprivate byte[] buffer; \n\t\tprivate int bufferPointer, bytesRead; \n \n\t\tpublic FastReader() \n\t\t{ \n\t\t\tdin = new DataInputStream(System.in); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t} \n \n\t\tpublic FastReader(String file_name) throws IOException \n\t\t{ \n\t\t\tdin = new DataInputStream(new FileInputStream(file_name)); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t} \n \n\t\tpublic String readLine() throws IOException \n\t\t{ \n\t\t\tbyte[] buf = new byte[64]; // line length \n\t\t\tint cnt = 0, c; \n\t\t\twhile ((c = read()) != -1) \n\t\t\t{ \n\t\t\t\tif (c == '\\n') \n\t\t\t\t\tbreak; \n\t\t\t\tbuf[cnt++] = (byte) c; \n\t\t\t} \n\t\t\treturn new String(buf, 0, cnt); \n\t\t} \n \n\t\tpublic int nextInt() throws IOException \n\t\t{ \n\t\t\tint ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo\n\t\t\t{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} while ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tpublic long nextLong() throws IOException \n\t\t{ \n\t\t\tlong ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tpublic double nextDouble() throws IOException \n\t\t{ \n\t\t\tdouble ret = 0, div = 1; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (c == '.') \n\t\t\t{ \n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') \n\t\t\t\t{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t} \n\t\t\t} \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tprivate void fillBuffer() throws IOException \n\t\t{ \n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n\t\t\tif (bytesRead == -1) \n\t\t\t\tbuffer[0] = -1; \n\t\t} \n \n\t\tprivate byte read() throws IOException \n\t\t{ \n\t\t\tif (bufferPointer == bytesRead) \n\t\t\t\tfillBuffer(); \n\t\t\treturn buffer[bufferPointer++]; \n\t\t} \n \n\t\tpublic void close() throws IOException \n\t\t{ \n\t\t\tif (din == null) \n\t\t\t\treturn; \n\t\t\tdin.close(); \n\t\t} \n\t}",
"FastReader",
"final private int BUFFER_SIZE = 1 << 16;",
"BUFFER_SIZE",
"1 << 16",
"1",
"16",
"private DataInputStream din;",
"din",
"private byte[] buffer;",
"buffer",
"private int bufferPointer",
"bufferPointer",
"bytesRead;",
"bytesRead",
"public FastReader() \n\t\t{ \n\t\t\tdin = new DataInputStream(System.in); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t}",
"FastReader",
"{ \n\t\t\tdin = new DataInputStream(System.in); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t}",
"din = new DataInputStream(System.in)",
"din",
"new DataInputStream(System.in)",
"buffer = new byte[BUFFER_SIZE]",
"buffer",
"new byte[BUFFER_SIZE]",
"BUFFER_SIZE",
"bufferPointer = bytesRead = 0",
"bufferPointer",
"bytesRead = 0",
"bytesRead",
"0",
"public FastReader(String file_name) throws IOException \n\t\t{ \n\t\t\tdin = new DataInputStream(new FileInputStream(file_name)); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t}",
"FastReader",
"{ \n\t\t\tdin = new DataInputStream(new FileInputStream(file_name)); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t}",
"din = new DataInputStream(new FileInputStream(file_name))",
"din",
"new DataInputStream(new FileInputStream(file_name))",
"buffer = new byte[BUFFER_SIZE]",
"buffer",
"new byte[BUFFER_SIZE]",
"BUFFER_SIZE",
"bufferPointer = bytesRead = 0",
"bufferPointer",
"bytesRead = 0",
"bytesRead",
"0",
"String file_name",
"file_name",
"public String readLine() throws IOException \n\t\t{ \n\t\t\tbyte[] buf = new byte[64]; // line length \n\t\t\tint cnt = 0, c; \n\t\t\twhile ((c = read()) != -1) \n\t\t\t{ \n\t\t\t\tif (c == '\\n') \n\t\t\t\t\tbreak; \n\t\t\t\tbuf[cnt++] = (byte) c; \n\t\t\t} \n\t\t\treturn new String(buf, 0, cnt); \n\t\t}",
"readLine",
"{ \n\t\t\tbyte[] buf = new byte[64]; // line length \n\t\t\tint cnt = 0, c; \n\t\t\twhile ((c = read()) != -1) \n\t\t\t{ \n\t\t\t\tif (c == '\\n') \n\t\t\t\t\tbreak; \n\t\t\t\tbuf[cnt++] = (byte) c; \n\t\t\t} \n\t\t\treturn new String(buf, 0, cnt); \n\t\t}",
"byte[] buf = new byte[64];",
"buf",
"new byte[64]",
"64",
"int cnt = 0",
"cnt",
"0",
"c;",
"c",
"while ((c = read()) != -1) \n\t\t\t{ \n\t\t\t\tif (c == '\\n') \n\t\t\t\t\tbreak; \n\t\t\t\tbuf[cnt++] = (byte) c; \n\t\t\t}",
"(c = read()) != -1",
"(c = read())",
"c",
"read()",
"read",
"-1",
"1",
"{ \n\t\t\t\tif (c == '\\n') \n\t\t\t\t\tbreak; \n\t\t\t\tbuf[cnt++] = (byte) c; \n\t\t\t}",
"if (c == '\\n') \n\t\t\t\t\tbreak;",
"c == '\\n'",
"c",
"'\\n'",
"break;",
"buf[cnt++] = (byte) c",
"buf[cnt++]",
"buf",
"cnt++",
"cnt",
"(byte) c",
"return new String(buf, 0, cnt);",
"new String(buf, 0, cnt)",
"public int nextInt() throws IOException \n\t\t{ \n\t\t\tint ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo\n\t\t\t{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} while ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t}",
"nextInt",
"{ \n\t\t\tint ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo\n\t\t\t{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} while ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t}",
"int ret = 0;",
"ret",
"0",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ') \n\t\t\t\tc = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg) \n\t\t\t\tc = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do\n\t\t\t{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} while ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t}",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (neg) \n\t\t\t\treturn -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"public long nextLong() throws IOException \n\t\t{ \n\t\t\tlong ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t}",
"nextLong",
"{ \n\t\t\tlong ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t}",
"long ret = 0;",
"ret",
"0",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ') \n\t\t\t\tc = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg) \n\t\t\t\tc = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t}",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (neg) \n\t\t\t\treturn -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"public double nextDouble() throws IOException \n\t\t{ \n\t\t\tdouble ret = 0, div = 1; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (c == '.') \n\t\t\t{ \n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') \n\t\t\t\t{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t} \n\t\t\t} \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t}",
"nextDouble",
"{ \n\t\t\tdouble ret = 0, div = 1; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (c == '.') \n\t\t\t{ \n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') \n\t\t\t\t{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t} \n\t\t\t} \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t}",
"double ret = 0",
"ret",
"0",
"div = 1;",
"div",
"1",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ') \n\t\t\t\tc = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg) \n\t\t\t\tc = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t}",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (c == '.') \n\t\t\t{ \n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') \n\t\t\t\t{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t} \n\t\t\t}",
"c == '.'",
"c",
"'.'",
"{ \n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') \n\t\t\t\t{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t} \n\t\t\t}",
"while ((c = read()) >= '0' && c <= '9') \n\t\t\t\t{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t}",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t}",
"ret += (c - '0') / (div *= 10)",
"ret",
"(c - '0') / (div *= 10)",
"(c - '0')",
"c",
"'0'",
"(div *= 10)",
"div",
"10",
"if (neg) \n\t\t\t\treturn -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"private void fillBuffer() throws IOException \n\t\t{ \n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n\t\t\tif (bytesRead == -1) \n\t\t\t\tbuffer[0] = -1; \n\t\t}",
"fillBuffer",
"{ \n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n\t\t\tif (bytesRead == -1) \n\t\t\t\tbuffer[0] = -1; \n\t\t}",
"bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE)",
"bytesRead",
"din.read(buffer, bufferPointer = 0, BUFFER_SIZE)",
"din.read",
"din",
"buffer",
"bufferPointer = 0",
"bufferPointer",
"0",
"BUFFER_SIZE",
"if (bytesRead == -1) \n\t\t\t\tbuffer[0] = -1;",
"bytesRead == -1",
"bytesRead",
"-1",
"1",
"buffer[0] = -1",
"buffer[0]",
"buffer",
"0",
"-1",
"1",
"private byte read() throws IOException \n\t\t{ \n\t\t\tif (bufferPointer == bytesRead) \n\t\t\t\tfillBuffer(); \n\t\t\treturn buffer[bufferPointer++]; \n\t\t}",
"read",
"{ \n\t\t\tif (bufferPointer == bytesRead) \n\t\t\t\tfillBuffer(); \n\t\t\treturn buffer[bufferPointer++]; \n\t\t}",
"if (bufferPointer == bytesRead) \n\t\t\t\tfillBuffer();",
"bufferPointer == bytesRead",
"bufferPointer",
"bytesRead",
"fillBuffer()",
"fillBuffer",
"return buffer[bufferPointer++];",
"buffer[bufferPointer++]",
"buffer",
"bufferPointer++",
"bufferPointer",
"public void close() throws IOException \n\t\t{ \n\t\t\tif (din == null) \n\t\t\t\treturn; \n\t\t\tdin.close(); \n\t\t}",
"close",
"{ \n\t\t\tif (din == null) \n\t\t\t\treturn; \n\t\t\tdin.close(); \n\t\t}",
"if (din == null) \n\t\t\t\treturn;",
"din == null",
"din",
"null",
"return;",
"din.close()",
"din.close",
"din",
"public class Main{\n\tpublic static PrintWriter out = new PrintWriter (new BufferedOutputStream(System.out));\n\tpublic static void main(String sp[])throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\t\t//FastReader sc = new FastReader();\t\n\t\tint n = sc.nextInt();\n\t\tHashMap<String,Integer> hm = new LinkedHashMap<>();\n\t\thm.put(\"AC\",0);\n\t\thm.put(\"WA\",0);\n\t\thm.put(\"TLE\",0);\n\t\thm.put(\"RE\",0);\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString st = sc.next();\n\t\t\thm.put(st,hm.get(st)+1);\n\t\t}\n\t\tArrayList<String> al = new ArrayList<>(hm.keySet());\n\t\tfor(String val:al){\n\t\t\tSystem.out.println(val+\" x \"+hm.get(val));\n\t\t}\n\t}\n\t\n\t\n\t\n\tpublic static ArrayList<Integer> primefactor(int n){\n\t\tint sqrt = (int)Math.sqrt(n);\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\twhile(n%2==0){\n\t\t\tal.add(2);\n\t\t\tn/=2;\n\t\t}\n\t\tfor(int i=3;i<=sqrt;i+=2){\n\t\t\twhile(n%i==0){\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}\n\t\t}\n\t\tif(n>2)\n\t\t\tal.add(n);\n\t\treturn al;\n\t}\n\t\n\tpublic static long sum(long val){\n\t\tlong fg =0 ;\n\t\twhile(val!=0){\n\t\t\tfg+=val%10;\n\t\t\tval/=10;\n\t\t}\n\t\treturn fg;\n\t}\n\t\n\t\n\t\n\tpublic static ArrayList<Integer> factor(int n){\n\t\tint sqrt = (int)Math.sqrt(n);\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\tfor(int i=1;i<=sqrt;i++){\n\t\t\tif(n%i!=0)\n\t\t\t\tcontinue;\n\t\t\tint first = i;\n\t\t\tint second = n/i;\n\t\t\tal.add(i);\n\t\t\tif(first==second){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tal.add(n/i);\n\t\t}\n\t\treturn al;\n\t}\n\t\n\tpublic static int power(int x, int y) \n\t{ \n\t\tint temp; \n\t\tif( y == 0) \n\t\t\treturn 1; \n\t\ttemp = power(x, y/2); \n\t\tif (y%2 == 0) \n\t\t\treturn temp*temp; \n\t\telse\n\t\t\treturn x*temp*temp; \n\t} \n\t\n\tpublic static ArrayList<Integer> comp(){\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\t\tint n = (int)2e5;\n\t\t\tboolean arr[] = new boolean[n+1];\n\t\t\tint sqrt = (int)Math.sqrt(n);\n\t\t\tfor(int i=2;i<=sqrt;i++){\n\t\t\t\tif(arr[i]==false){\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=2;i<=n;i++){\n\t\t\t\tif(arr[i]==false)\n\t\t\t\t\tal.add(i);\n\t\t\t}\n\t\t\t\n\t\treturn al;\n\t}\n\t\n\tpublic static class pair{\n\t\tint x;\n\t\tint y;\n\t\tpair(int x, int y){\n\t\t\tthis.x=x;\n\t\t\tthis.y=y;\n\t\t}\n\t}\n\t\n\tpublic static class comp implements Comparator<pair>{\n\t\tpublic int compare(pair o1, pair o2){\n\t\t\tif(o1.y==o2.y){\n\t\t\t\treturn o2.x-o1.x;\n\t\t\t}\n\t\t\treturn o2.y-o1.y;\n\t\t}\n\t}\n\t\n\t\n\t\n\t\n\tstatic class Node{\n\t\tint node;\n\t\tint d;\n\t\tArrayList<Integer> al = new ArrayList<>();\t\n\t}\n\t\n\n\tstatic long gcd(long a, long b) \n { \n if (b == 0) \n return a; \n return gcd(b, a % b); \n }\n\t\n\t\t\n\tstatic class FastReader \n\t{ \n\t\tfinal private int BUFFER_SIZE = 1 << 16; \n\t\tprivate DataInputStream din; \n\t\tprivate byte[] buffer; \n\t\tprivate int bufferPointer, bytesRead; \n \n\t\tpublic FastReader() \n\t\t{ \n\t\t\tdin = new DataInputStream(System.in); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t} \n \n\t\tpublic FastReader(String file_name) throws IOException \n\t\t{ \n\t\t\tdin = new DataInputStream(new FileInputStream(file_name)); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t} \n \n\t\tpublic String readLine() throws IOException \n\t\t{ \n\t\t\tbyte[] buf = new byte[64]; // line length \n\t\t\tint cnt = 0, c; \n\t\t\twhile ((c = read()) != -1) \n\t\t\t{ \n\t\t\t\tif (c == '\\n') \n\t\t\t\t\tbreak; \n\t\t\t\tbuf[cnt++] = (byte) c; \n\t\t\t} \n\t\t\treturn new String(buf, 0, cnt); \n\t\t} \n \n\t\tpublic int nextInt() throws IOException \n\t\t{ \n\t\t\tint ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo\n\t\t\t{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} while ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tpublic long nextLong() throws IOException \n\t\t{ \n\t\t\tlong ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tpublic double nextDouble() throws IOException \n\t\t{ \n\t\t\tdouble ret = 0, div = 1; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (c == '.') \n\t\t\t{ \n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') \n\t\t\t\t{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t} \n\t\t\t} \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tprivate void fillBuffer() throws IOException \n\t\t{ \n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n\t\t\tif (bytesRead == -1) \n\t\t\t\tbuffer[0] = -1; \n\t\t} \n \n\t\tprivate byte read() throws IOException \n\t\t{ \n\t\t\tif (bufferPointer == bytesRead) \n\t\t\t\tfillBuffer(); \n\t\t\treturn buffer[bufferPointer++]; \n\t\t} \n \n\t\tpublic void close() throws IOException \n\t\t{ \n\t\t\tif (din == null) \n\t\t\t\treturn; \n\t\t\tdin.close(); \n\t\t} \n\t} \n}",
"public class Main{\n\tpublic static PrintWriter out = new PrintWriter (new BufferedOutputStream(System.out));\n\tpublic static void main(String sp[])throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\t\t//FastReader sc = new FastReader();\t\n\t\tint n = sc.nextInt();\n\t\tHashMap<String,Integer> hm = new LinkedHashMap<>();\n\t\thm.put(\"AC\",0);\n\t\thm.put(\"WA\",0);\n\t\thm.put(\"TLE\",0);\n\t\thm.put(\"RE\",0);\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString st = sc.next();\n\t\t\thm.put(st,hm.get(st)+1);\n\t\t}\n\t\tArrayList<String> al = new ArrayList<>(hm.keySet());\n\t\tfor(String val:al){\n\t\t\tSystem.out.println(val+\" x \"+hm.get(val));\n\t\t}\n\t}\n\t\n\t\n\t\n\tpublic static ArrayList<Integer> primefactor(int n){\n\t\tint sqrt = (int)Math.sqrt(n);\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\twhile(n%2==0){\n\t\t\tal.add(2);\n\t\t\tn/=2;\n\t\t}\n\t\tfor(int i=3;i<=sqrt;i+=2){\n\t\t\twhile(n%i==0){\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}\n\t\t}\n\t\tif(n>2)\n\t\t\tal.add(n);\n\t\treturn al;\n\t}\n\t\n\tpublic static long sum(long val){\n\t\tlong fg =0 ;\n\t\twhile(val!=0){\n\t\t\tfg+=val%10;\n\t\t\tval/=10;\n\t\t}\n\t\treturn fg;\n\t}\n\t\n\t\n\t\n\tpublic static ArrayList<Integer> factor(int n){\n\t\tint sqrt = (int)Math.sqrt(n);\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\tfor(int i=1;i<=sqrt;i++){\n\t\t\tif(n%i!=0)\n\t\t\t\tcontinue;\n\t\t\tint first = i;\n\t\t\tint second = n/i;\n\t\t\tal.add(i);\n\t\t\tif(first==second){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tal.add(n/i);\n\t\t}\n\t\treturn al;\n\t}\n\t\n\tpublic static int power(int x, int y) \n\t{ \n\t\tint temp; \n\t\tif( y == 0) \n\t\t\treturn 1; \n\t\ttemp = power(x, y/2); \n\t\tif (y%2 == 0) \n\t\t\treturn temp*temp; \n\t\telse\n\t\t\treturn x*temp*temp; \n\t} \n\t\n\tpublic static ArrayList<Integer> comp(){\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\t\tint n = (int)2e5;\n\t\t\tboolean arr[] = new boolean[n+1];\n\t\t\tint sqrt = (int)Math.sqrt(n);\n\t\t\tfor(int i=2;i<=sqrt;i++){\n\t\t\t\tif(arr[i]==false){\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=2;i<=n;i++){\n\t\t\t\tif(arr[i]==false)\n\t\t\t\t\tal.add(i);\n\t\t\t}\n\t\t\t\n\t\treturn al;\n\t}\n\t\n\tpublic static class pair{\n\t\tint x;\n\t\tint y;\n\t\tpair(int x, int y){\n\t\t\tthis.x=x;\n\t\t\tthis.y=y;\n\t\t}\n\t}\n\t\n\tpublic static class comp implements Comparator<pair>{\n\t\tpublic int compare(pair o1, pair o2){\n\t\t\tif(o1.y==o2.y){\n\t\t\t\treturn o2.x-o1.x;\n\t\t\t}\n\t\t\treturn o2.y-o1.y;\n\t\t}\n\t}\n\t\n\t\n\t\n\t\n\tstatic class Node{\n\t\tint node;\n\t\tint d;\n\t\tArrayList<Integer> al = new ArrayList<>();\t\n\t}\n\t\n\n\tstatic long gcd(long a, long b) \n { \n if (b == 0) \n return a; \n return gcd(b, a % b); \n }\n\t\n\t\t\n\tstatic class FastReader \n\t{ \n\t\tfinal private int BUFFER_SIZE = 1 << 16; \n\t\tprivate DataInputStream din; \n\t\tprivate byte[] buffer; \n\t\tprivate int bufferPointer, bytesRead; \n \n\t\tpublic FastReader() \n\t\t{ \n\t\t\tdin = new DataInputStream(System.in); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t} \n \n\t\tpublic FastReader(String file_name) throws IOException \n\t\t{ \n\t\t\tdin = new DataInputStream(new FileInputStream(file_name)); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t} \n \n\t\tpublic String readLine() throws IOException \n\t\t{ \n\t\t\tbyte[] buf = new byte[64]; // line length \n\t\t\tint cnt = 0, c; \n\t\t\twhile ((c = read()) != -1) \n\t\t\t{ \n\t\t\t\tif (c == '\\n') \n\t\t\t\t\tbreak; \n\t\t\t\tbuf[cnt++] = (byte) c; \n\t\t\t} \n\t\t\treturn new String(buf, 0, cnt); \n\t\t} \n \n\t\tpublic int nextInt() throws IOException \n\t\t{ \n\t\t\tint ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo\n\t\t\t{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} while ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tpublic long nextLong() throws IOException \n\t\t{ \n\t\t\tlong ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tpublic double nextDouble() throws IOException \n\t\t{ \n\t\t\tdouble ret = 0, div = 1; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (c == '.') \n\t\t\t{ \n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') \n\t\t\t\t{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t} \n\t\t\t} \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tprivate void fillBuffer() throws IOException \n\t\t{ \n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n\t\t\tif (bytesRead == -1) \n\t\t\t\tbuffer[0] = -1; \n\t\t} \n \n\t\tprivate byte read() throws IOException \n\t\t{ \n\t\t\tif (bufferPointer == bytesRead) \n\t\t\t\tfillBuffer(); \n\t\t\treturn buffer[bufferPointer++]; \n\t\t} \n \n\t\tpublic void close() throws IOException \n\t\t{ \n\t\t\tif (din == null) \n\t\t\t\treturn; \n\t\t\tdin.close(); \n\t\t} \n\t} \n}",
"Main"
]
| import java.util.*;
import java.io.*;
import java.math.*;
public class Main{
public static PrintWriter out = new PrintWriter (new BufferedOutputStream(System.out));
public static void main(String sp[])throws IOException{
Scanner sc = new Scanner(System.in);
//FastReader sc = new FastReader();
int n = sc.nextInt();
HashMap<String,Integer> hm = new LinkedHashMap<>();
hm.put("AC",0);
hm.put("WA",0);
hm.put("TLE",0);
hm.put("RE",0);
for(int i=0;i<n;i++){
String st = sc.next();
hm.put(st,hm.get(st)+1);
}
ArrayList<String> al = new ArrayList<>(hm.keySet());
for(String val:al){
System.out.println(val+" x "+hm.get(val));
}
}
public static ArrayList<Integer> primefactor(int n){
int sqrt = (int)Math.sqrt(n);
ArrayList<Integer> al = new ArrayList<>();
while(n%2==0){
al.add(2);
n/=2;
}
for(int i=3;i<=sqrt;i+=2){
while(n%i==0){
al.add(i);
n/=i;
}
}
if(n>2)
al.add(n);
return al;
}
public static long sum(long val){
long fg =0 ;
while(val!=0){
fg+=val%10;
val/=10;
}
return fg;
}
public static ArrayList<Integer> factor(int n){
int sqrt = (int)Math.sqrt(n);
ArrayList<Integer> al = new ArrayList<>();
for(int i=1;i<=sqrt;i++){
if(n%i!=0)
continue;
int first = i;
int second = n/i;
al.add(i);
if(first==second){
continue;
}
al.add(n/i);
}
return al;
}
public static int power(int x, int y)
{
int temp;
if( y == 0)
return 1;
temp = power(x, y/2);
if (y%2 == 0)
return temp*temp;
else
return x*temp*temp;
}
public static ArrayList<Integer> comp(){
ArrayList<Integer> al = new ArrayList<>();
int n = (int)2e5;
boolean arr[] = new boolean[n+1];
int sqrt = (int)Math.sqrt(n);
for(int i=2;i<=sqrt;i++){
if(arr[i]==false){
for(int j=i*i;j<=n;j+=i){
arr[j]=true;
}
}
}
for(int i=2;i<=n;i++){
if(arr[i]==false)
al.add(i);
}
return al;
}
public static class pair{
int x;
int y;
pair(int x, int y){
this.x=x;
this.y=y;
}
}
public static class comp implements Comparator<pair>{
public int compare(pair o1, pair o2){
if(o1.y==o2.y){
return o2.x-o1.x;
}
return o2.y-o1.y;
}
}
static class Node{
int node;
int d;
ArrayList<Integer> al = new ArrayList<>();
}
static long gcd(long a, long b)
{
if (b == 0)
return a;
return gcd(b, a % b);
}
static class FastReader
{
final private int BUFFER_SIZE = 1 << 16;
private DataInputStream din;
private byte[] buffer;
private int bufferPointer, bytesRead;
public FastReader()
{
din = new DataInputStream(System.in);
buffer = new byte[BUFFER_SIZE];
bufferPointer = bytesRead = 0;
}
public FastReader(String file_name) throws IOException
{
din = new DataInputStream(new FileInputStream(file_name));
buffer = new byte[BUFFER_SIZE];
bufferPointer = bytesRead = 0;
}
public String readLine() throws IOException
{
byte[] buf = new byte[64]; // line length
int cnt = 0, c;
while ((c = read()) != -1)
{
if (c == '\n')
break;
buf[cnt++] = (byte) c;
}
return new String(buf, 0, cnt);
}
public int nextInt() throws IOException
{
int ret = 0;
byte c = read();
while (c <= ' ')
c = read();
boolean neg = (c == '-');
if (neg)
c = read();
do
{
ret = ret * 10 + c - '0';
} while ((c = read()) >= '0' && c <= '9');
if (neg)
return -ret;
return ret;
}
public long nextLong() throws IOException
{
long ret = 0;
byte c = read();
while (c <= ' ')
c = read();
boolean neg = (c == '-');
if (neg)
c = read();
do {
ret = ret * 10 + c - '0';
}
while ((c = read()) >= '0' && c <= '9');
if (neg)
return -ret;
return ret;
}
public double nextDouble() throws IOException
{
double ret = 0, div = 1;
byte c = read();
while (c <= ' ')
c = read();
boolean neg = (c == '-');
if (neg)
c = read();
do {
ret = ret * 10 + c - '0';
}
while ((c = read()) >= '0' && c <= '9');
if (c == '.')
{
while ((c = read()) >= '0' && c <= '9')
{
ret += (c - '0') / (div *= 10);
}
}
if (neg)
return -ret;
return ret;
}
private void fillBuffer() throws IOException
{
bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);
if (bytesRead == -1)
buffer[0] = -1;
}
private byte read() throws IOException
{
if (bufferPointer == bytesRead)
fillBuffer();
return buffer[bufferPointer++];
}
public void close() throws IOException
{
if (din == null)
return;
din.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,
40,
13,
14,
4,
18,
18,
13,
13,
17,
40,
13,
14,
4,
18,
18,
13,
13,
17,
40,
13,
14,
4,
18,
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,
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
],
[
65,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
75,
82
],
[
82,
83
],
[
65,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
84,
91
],
[
91,
92
],
[
65,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
93,
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.*;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner scn = new Scanner(System.in);\n\t\tint n = scn.nextInt();\n\t\tString[] s = new String[n];\n\t\tfor(int i=0; i<n; i++){\n\t\t\ts[i] = scn.next();\n\t\t}\n \tint ac = 0;\n \tint wa = 0;\n \tint tle = 0;\n \tint re = 0;\n \tfor(int i=0; i<n; i++){\n if(s[i].equals(\"AC\")) ac++;\n if(s[i].equals(\"WA\")) wa++;\n if(s[i].equals(\"TLE\")) tle++;\n if(s[i].equals(\"RE\")) re++;\n }\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\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner scn = new Scanner(System.in);\n\t\tint n = scn.nextInt();\n\t\tString[] s = new String[n];\n\t\tfor(int i=0; i<n; i++){\n\t\t\ts[i] = scn.next();\n\t\t}\n \tint ac = 0;\n \tint wa = 0;\n \tint tle = 0;\n \tint re = 0;\n \tfor(int i=0; i<n; i++){\n if(s[i].equals(\"AC\")) ac++;\n if(s[i].equals(\"WA\")) wa++;\n if(s[i].equals(\"TLE\")) tle++;\n if(s[i].equals(\"RE\")) re++;\n }\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\t}\n}",
"Main",
"public static void main(String[] args) throws Exception{\n\t\tScanner scn = new Scanner(System.in);\n\t\tint n = scn.nextInt();\n\t\tString[] s = new String[n];\n\t\tfor(int i=0; i<n; i++){\n\t\t\ts[i] = scn.next();\n\t\t}\n \tint ac = 0;\n \tint wa = 0;\n \tint tle = 0;\n \tint re = 0;\n \tfor(int i=0; i<n; i++){\n if(s[i].equals(\"AC\")) ac++;\n if(s[i].equals(\"WA\")) wa++;\n if(s[i].equals(\"TLE\")) tle++;\n if(s[i].equals(\"RE\")) re++;\n }\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\t}",
"main",
"{\n\t\tScanner scn = new Scanner(System.in);\n\t\tint n = scn.nextInt();\n\t\tString[] s = new String[n];\n\t\tfor(int i=0; i<n; i++){\n\t\t\ts[i] = scn.next();\n\t\t}\n \tint ac = 0;\n \tint wa = 0;\n \tint tle = 0;\n \tint re = 0;\n \tfor(int i=0; i<n; i++){\n if(s[i].equals(\"AC\")) ac++;\n if(s[i].equals(\"WA\")) wa++;\n if(s[i].equals(\"TLE\")) tle++;\n if(s[i].equals(\"RE\")) re++;\n }\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\t}",
"Scanner scn = new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"int n = scn.nextInt();",
"n",
"scn.nextInt()",
"scn.nextInt",
"scn",
"String[] s = new String[n];",
"s",
"new String[n]",
"n",
"for(int i=0; i<n; i++){\n\t\t\ts[i] = scn.next();\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\ts[i] = scn.next();\n\t\t}",
"{\n\t\t\ts[i] = scn.next();\n\t\t}",
"s[i] = scn.next()",
"s[i]",
"s",
"i",
"scn.next()",
"scn.next",
"scn",
"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\")) ac++;\n if(s[i].equals(\"WA\")) wa++;\n if(s[i].equals(\"TLE\")) tle++;\n if(s[i].equals(\"RE\")) re++;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(s[i].equals(\"AC\")) ac++;\n if(s[i].equals(\"WA\")) wa++;\n if(s[i].equals(\"TLE\")) tle++;\n if(s[i].equals(\"RE\")) re++;\n }",
"{\n if(s[i].equals(\"AC\")) ac++;\n if(s[i].equals(\"WA\")) wa++;\n if(s[i].equals(\"TLE\")) tle++;\n if(s[i].equals(\"RE\")) re++;\n }",
"if(s[i].equals(\"AC\")) ac++;",
"s[i].equals(\"AC\")",
"s[i].equals",
"s[i]",
"s",
"i",
"\"AC\"",
"ac++",
"ac",
"if(s[i].equals(\"WA\")) wa++;",
"s[i].equals(\"WA\")",
"s[i].equals",
"s[i]",
"s",
"i",
"\"WA\"",
"wa++",
"wa",
"if(s[i].equals(\"TLE\")) tle++;",
"s[i].equals(\"TLE\")",
"s[i].equals",
"s[i]",
"s",
"i",
"\"TLE\"",
"tle++",
"tle",
"if(s[i].equals(\"RE\")) re++;",
"s[i].equals(\"RE\")",
"s[i].equals",
"s[i]",
"s",
"i",
"\"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) throws Exception{\n\t\tScanner scn = new Scanner(System.in);\n\t\tint n = scn.nextInt();\n\t\tString[] s = new String[n];\n\t\tfor(int i=0; i<n; i++){\n\t\t\ts[i] = scn.next();\n\t\t}\n \tint ac = 0;\n \tint wa = 0;\n \tint tle = 0;\n \tint re = 0;\n \tfor(int i=0; i<n; i++){\n if(s[i].equals(\"AC\")) ac++;\n if(s[i].equals(\"WA\")) wa++;\n if(s[i].equals(\"TLE\")) tle++;\n if(s[i].equals(\"RE\")) re++;\n }\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\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner scn = new Scanner(System.in);\n\t\tint n = scn.nextInt();\n\t\tString[] s = new String[n];\n\t\tfor(int i=0; i<n; i++){\n\t\t\ts[i] = scn.next();\n\t\t}\n \tint ac = 0;\n \tint wa = 0;\n \tint tle = 0;\n \tint re = 0;\n \tfor(int i=0; i<n; i++){\n if(s[i].equals(\"AC\")) ac++;\n if(s[i].equals(\"WA\")) wa++;\n if(s[i].equals(\"TLE\")) tle++;\n if(s[i].equals(\"RE\")) re++;\n }\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\t}\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) throws Exception{
Scanner scn = new Scanner(System.in);
int n = scn.nextInt();
String[] s = new String[n];
for(int i=0; i<n; i++){
s[i] = scn.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++;
if(s[i].equals("WA")) wa++;
if(s[i].equals("TLE")) tle++;
if(s[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,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
40,
13,
9,
14,
4,
18,
13,
17,
30,
40,
13,
9,
14,
4,
18,
13,
17,
30,
40,
13,
9,
14,
4,
18,
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
],
[
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
],
[
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
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
49,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
49,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
58,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
58,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
67,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
67,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
76,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
8,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
90,
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
],
[
6,
117
],
[
117,
118
],
[
0,
119
],
[
119,
120
],
[
119,
121
]
]
| [
"import java.util.Scanner;\n \npublic class Main {\n\tpublic static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int AC=0,WA=0,TLE=0,RE=0;\n for(int i=1;i<N+2;i++){\n \tString S = sc.nextLine();\n if(S.equals(\"AC\")){\n \tAC++;\n \tcontinue;\n }else if(S.equals(\"WA\")){\n \tWA++;\n continue;\n }else if(S.equals(\"TLE\")){\n \tTLE++;\n continue;\n }else if(S.equals(\"RE\")){\n \tRE++;\n continue;\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.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int AC=0,WA=0,TLE=0,RE=0;\n for(int i=1;i<N+2;i++){\n \tString S = sc.nextLine();\n if(S.equals(\"AC\")){\n \tAC++;\n \tcontinue;\n }else if(S.equals(\"WA\")){\n \tWA++;\n continue;\n }else if(S.equals(\"TLE\")){\n \tTLE++;\n continue;\n }else if(S.equals(\"RE\")){\n \tRE++;\n continue;\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 Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int AC=0,WA=0,TLE=0,RE=0;\n for(int i=1;i<N+2;i++){\n \tString S = sc.nextLine();\n if(S.equals(\"AC\")){\n \tAC++;\n \tcontinue;\n }else if(S.equals(\"WA\")){\n \tWA++;\n continue;\n }else if(S.equals(\"TLE\")){\n \tTLE++;\n continue;\n }else if(S.equals(\"RE\")){\n \tRE++;\n continue;\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\n int N = sc.nextInt();\n int AC=0,WA=0,TLE=0,RE=0;\n for(int i=1;i<N+2;i++){\n \tString S = sc.nextLine();\n if(S.equals(\"AC\")){\n \tAC++;\n \tcontinue;\n }else if(S.equals(\"WA\")){\n \tWA++;\n continue;\n }else if(S.equals(\"TLE\")){\n \tTLE++;\n continue;\n }else if(S.equals(\"RE\")){\n \tRE++;\n continue;\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",
"WA=0",
"WA",
"0",
"TLE=0",
"TLE",
"0",
"RE=0;",
"RE",
"0",
"for(int i=1;i<N+2;i++){\n \tString S = sc.nextLine();\n if(S.equals(\"AC\")){\n \tAC++;\n \tcontinue;\n }else if(S.equals(\"WA\")){\n \tWA++;\n continue;\n }else if(S.equals(\"TLE\")){\n \tTLE++;\n continue;\n }else if(S.equals(\"RE\")){\n \tRE++;\n continue;\n }\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<N+2",
"i",
"N+2",
"N",
"2",
"i++",
"i++",
"i",
"{\n \tString S = sc.nextLine();\n if(S.equals(\"AC\")){\n \tAC++;\n \tcontinue;\n }else if(S.equals(\"WA\")){\n \tWA++;\n continue;\n }else if(S.equals(\"TLE\")){\n \tTLE++;\n continue;\n }else if(S.equals(\"RE\")){\n \tRE++;\n continue;\n }\n }",
"{\n \tString S = sc.nextLine();\n if(S.equals(\"AC\")){\n \tAC++;\n \tcontinue;\n }else if(S.equals(\"WA\")){\n \tWA++;\n continue;\n }else if(S.equals(\"TLE\")){\n \tTLE++;\n continue;\n }else if(S.equals(\"RE\")){\n \tRE++;\n continue;\n }\n }",
"String S = sc.nextLine();",
"S",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if(S.equals(\"AC\")){\n \tAC++;\n \tcontinue;\n }else if(S.equals(\"WA\")){\n \tWA++;\n continue;\n }else if(S.equals(\"TLE\")){\n \tTLE++;\n continue;\n }else if(S.equals(\"RE\")){\n \tRE++;\n continue;\n }",
"S.equals(\"AC\")",
"S.equals",
"S",
"\"AC\"",
"{\n \tAC++;\n \tcontinue;\n }",
"AC++",
"AC",
"continue;",
"if(S.equals(\"WA\")){\n \tWA++;\n continue;\n }else if(S.equals(\"TLE\")){\n \tTLE++;\n continue;\n }else if(S.equals(\"RE\")){\n \tRE++;\n continue;\n }",
"S.equals(\"WA\")",
"S.equals",
"S",
"\"WA\"",
"{\n \tWA++;\n continue;\n }",
"WA++",
"WA",
"continue;",
"if(S.equals(\"TLE\")){\n \tTLE++;\n continue;\n }else if(S.equals(\"RE\")){\n \tRE++;\n continue;\n }",
"S.equals(\"TLE\")",
"S.equals",
"S",
"\"TLE\"",
"{\n \tTLE++;\n continue;\n }",
"TLE++",
"TLE",
"continue;",
"if(S.equals(\"RE\")){\n \tRE++;\n continue;\n }",
"S.equals(\"RE\")",
"S.equals",
"S",
"\"RE\"",
"{\n \tRE++;\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 Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int AC=0,WA=0,TLE=0,RE=0;\n for(int i=1;i<N+2;i++){\n \tString S = sc.nextLine();\n if(S.equals(\"AC\")){\n \tAC++;\n \tcontinue;\n }else if(S.equals(\"WA\")){\n \tWA++;\n continue;\n }else if(S.equals(\"TLE\")){\n \tTLE++;\n continue;\n }else if(S.equals(\"RE\")){\n \tRE++;\n continue;\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\tpublic static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int AC=0,WA=0,TLE=0,RE=0;\n for(int i=1;i<N+2;i++){\n \tString S = sc.nextLine();\n if(S.equals(\"AC\")){\n \tAC++;\n \tcontinue;\n }else if(S.equals(\"WA\")){\n \tWA++;\n continue;\n }else if(S.equals(\"TLE\")){\n \tTLE++;\n continue;\n }else if(S.equals(\"RE\")){\n \tRE++;\n continue;\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.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=1;i<N+2;i++){
String S = sc.nextLine();
if(S.equals("AC")){
AC++;
continue;
}else if(S.equals("WA")){
WA++;
continue;
}else if(S.equals("TLE")){
TLE++;
continue;
}else if(S.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,
39,
17,
17,
17,
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,
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,
4,
18,
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
],
[
19,
20
],
[
19,
21
],
[
19,
22
],
[
19,
23
],
[
8,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
24,
29
],
[
29,
30
],
[
29,
31
],
[
24,
32
],
[
32,
33
],
[
33,
34
],
[
24,
35
],
[
36,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
36,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
42,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
42,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
42,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
42,
76
],
[
76,
77
],
[
77,
78
],
[
8,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
86,
88
],
[
8,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
96,
98
],
[
8,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
106,
108
],
[
8,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
116,
118
],
[
8,
119
],
[
119,
120
],
[
120,
121
],
[
6,
122
],
[
122,
123
],
[
0,
124
],
[
124,
125
],
[
124,
126
]
]
| [
"import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\t\n\t\tScanner in = new java.util.Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint[] count = {0,0,0,0};\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tString s = in.next();\n\t\t\tswitch(s) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tcount[0]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tcount[1]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tcount[2]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tcount[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\n\t\tSystem.out.println(\"AC x \" + count[0]);\n\t\tSystem.out.println(\"WA x \" + count[1]);\n\t\tSystem.out.println(\"TLE x \" + count[2]);\n\t\tSystem.out.println(\"RE x \" + count[3]);\n\t\t\n\t\t\n\t\tin.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\t\n\t\tScanner in = new java.util.Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint[] count = {0,0,0,0};\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tString s = in.next();\n\t\t\tswitch(s) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tcount[0]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tcount[1]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tcount[2]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tcount[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\n\t\tSystem.out.println(\"AC x \" + count[0]);\n\t\tSystem.out.println(\"WA x \" + count[1]);\n\t\tSystem.out.println(\"TLE x \" + count[2]);\n\t\tSystem.out.println(\"RE x \" + count[3]);\n\t\t\n\t\t\n\t\tin.close();\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\t\n\t\tScanner in = new java.util.Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint[] count = {0,0,0,0};\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tString s = in.next();\n\t\t\tswitch(s) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tcount[0]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tcount[1]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tcount[2]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tcount[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\n\t\tSystem.out.println(\"AC x \" + count[0]);\n\t\tSystem.out.println(\"WA x \" + count[1]);\n\t\tSystem.out.println(\"TLE x \" + count[2]);\n\t\tSystem.out.println(\"RE x \" + count[3]);\n\t\t\n\t\t\n\t\tin.close();\n\t}",
"main",
"{\n\t\t\n\t\tScanner in = new java.util.Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint[] count = {0,0,0,0};\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tString s = in.next();\n\t\t\tswitch(s) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tcount[0]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tcount[1]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tcount[2]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tcount[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\n\t\tSystem.out.println(\"AC x \" + count[0]);\n\t\tSystem.out.println(\"WA x \" + count[1]);\n\t\tSystem.out.println(\"TLE x \" + count[2]);\n\t\tSystem.out.println(\"RE x \" + count[3]);\n\t\t\n\t\t\n\t\tin.close();\n\t}",
"Scanner in = new java.util.Scanner(System.in);",
"in",
"new java.util.Scanner(System.in)",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"int[] count = {0,0,0,0};",
"count",
"{0,0,0,0}",
"0",
"0",
"0",
"0",
"for(int i=0; i<n; i++) {\n\t\t\tString s = in.next();\n\t\t\tswitch(s) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tcount[0]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tcount[1]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tcount[2]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tcount[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\tString s = in.next();\n\t\t\tswitch(s) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tcount[0]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tcount[1]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tcount[2]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tcount[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\tString s = in.next();\n\t\t\tswitch(s) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tcount[0]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tcount[1]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tcount[2]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tcount[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}",
"String s = in.next();",
"s",
"in.next()",
"in.next",
"in",
"switch(s) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tcount[0]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tcount[1]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tcount[2]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tcount[3]++;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}",
"s",
"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;",
"default:",
"default:",
"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",
"in.close()",
"in.close",
"in",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\t\n\t\tScanner in = new java.util.Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint[] count = {0,0,0,0};\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tString s = in.next();\n\t\t\tswitch(s) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tcount[0]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tcount[1]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tcount[2]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tcount[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\n\t\tSystem.out.println(\"AC x \" + count[0]);\n\t\tSystem.out.println(\"WA x \" + count[1]);\n\t\tSystem.out.println(\"TLE x \" + count[2]);\n\t\tSystem.out.println(\"RE x \" + count[3]);\n\t\t\n\t\t\n\t\tin.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\t\n\t\tScanner in = new java.util.Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint[] count = {0,0,0,0};\n\t\tfor(int i=0; i<n; i++) {\n\t\t\tString s = in.next();\n\t\t\tswitch(s) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tcount[0]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tcount[1]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tcount[2]++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tcount[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\n\t\tSystem.out.println(\"AC x \" + count[0]);\n\t\tSystem.out.println(\"WA x \" + count[1]);\n\t\tSystem.out.println(\"TLE x \" + count[2]);\n\t\tSystem.out.println(\"RE x \" + count[3]);\n\t\t\n\t\t\n\t\tin.close();\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner in = new java.util.Scanner(System.in);
int n = in.nextInt();
int[] count = {0,0,0,0};
for(int i=0; i<n; i++) {
String s = in.next();
switch(s) {
case "AC":
count[0]++;
break;
case "WA":
count[1]++;
break;
case "TLE":
count[2]++;
break;
case "RE":
count[3]++;
break;
default:
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]);
in.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,
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,
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,
2,
2,
2,
13,
13,
13,
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
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
44,
49
],
[
49,
50
],
[
38,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
51,
56
],
[
56,
57
],
[
38,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
58,
63
],
[
63,
64
],
[
8,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
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
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
96,
102
],
[
6,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
]
| [
"\n\nimport 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\t\n\t\tint N = sc.nextInt();\n\t\t\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\n\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tString s = sc.next();\n\t\t\tif(s.equals(\"AC\"))\n\t\t\t\t++ac;\n\t\t\tif(s.equals(\"WA\"))\n\t\t\t\t++wa;\n\t\t\tif(s.equals(\"TLE\"))\n\t\t\t\t++tle;\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 \" + (N - ac - wa - tle));\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\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint N = sc.nextInt();\n\t\t\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\n\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tString s = sc.next();\n\t\t\tif(s.equals(\"AC\"))\n\t\t\t\t++ac;\n\t\t\tif(s.equals(\"WA\"))\n\t\t\t\t++wa;\n\t\t\tif(s.equals(\"TLE\"))\n\t\t\t\t++tle;\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 \" + (N - ac - wa - tle));\n\t\t\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint N = sc.nextInt();\n\t\t\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\n\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tString s = sc.next();\n\t\t\tif(s.equals(\"AC\"))\n\t\t\t\t++ac;\n\t\t\tif(s.equals(\"WA\"))\n\t\t\t\t++wa;\n\t\t\tif(s.equals(\"TLE\"))\n\t\t\t\t++tle;\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 \" + (N - ac - wa - tle));\n\t\t\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint N = sc.nextInt();\n\t\t\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\n\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tString s = sc.next();\n\t\t\tif(s.equals(\"AC\"))\n\t\t\t\t++ac;\n\t\t\tif(s.equals(\"WA\"))\n\t\t\t\t++wa;\n\t\t\tif(s.equals(\"TLE\"))\n\t\t\t\t++tle;\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 \" + (N - ac - wa - tle));\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 ac = 0;",
"ac",
"0",
"int wa = 0;",
"wa",
"0",
"int tle = 0;",
"tle",
"0",
"for(int i = 0; i < N; i++) {\n\t\t\tString s = sc.next();\n\t\t\tif(s.equals(\"AC\"))\n\t\t\t\t++ac;\n\t\t\tif(s.equals(\"WA\"))\n\t\t\t\t++wa;\n\t\t\tif(s.equals(\"TLE\"))\n\t\t\t\t++tle;\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\"))\n\t\t\t\t++ac;\n\t\t\tif(s.equals(\"WA\"))\n\t\t\t\t++wa;\n\t\t\tif(s.equals(\"TLE\"))\n\t\t\t\t++tle;\n\t\t}",
"{\n\t\t\tString s = sc.next();\n\t\t\tif(s.equals(\"AC\"))\n\t\t\t\t++ac;\n\t\t\tif(s.equals(\"WA\"))\n\t\t\t\t++wa;\n\t\t\tif(s.equals(\"TLE\"))\n\t\t\t\t++tle;\n\t\t}",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"if(s.equals(\"AC\"))\n\t\t\t\t++ac;",
"s.equals(\"AC\")",
"s.equals",
"s",
"\"AC\"",
"++ac",
"ac",
"if(s.equals(\"WA\"))\n\t\t\t\t++wa;",
"s.equals(\"WA\")",
"s.equals",
"s",
"\"WA\"",
"++wa",
"wa",
"if(s.equals(\"TLE\"))\n\t\t\t\t++tle;",
"s.equals(\"TLE\")",
"s.equals",
"s",
"\"TLE\"",
"++tle",
"tle",
"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 \" + (N - ac - wa - tle))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + (N - ac - wa - tle)",
"\"RE x \"",
"(N - ac - wa - tle)",
"wa",
"N - ac - wa - tle",
"N",
"ac",
"wa",
"tle",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint N = sc.nextInt();\n\t\t\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\n\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tString s = sc.next();\n\t\t\tif(s.equals(\"AC\"))\n\t\t\t\t++ac;\n\t\t\tif(s.equals(\"WA\"))\n\t\t\t\t++wa;\n\t\t\tif(s.equals(\"TLE\"))\n\t\t\t\t++tle;\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 \" + (N - ac - wa - tle));\n\t\t\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\t\n\t\tint N = sc.nextInt();\n\t\t\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\n\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tString s = sc.next();\n\t\t\tif(s.equals(\"AC\"))\n\t\t\t\t++ac;\n\t\t\tif(s.equals(\"WA\"))\n\t\t\t\t++wa;\n\t\t\tif(s.equals(\"TLE\"))\n\t\t\t\t++tle;\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 \" + (N - ac - wa - tle));\n\t\t\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;
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;
}
System.out.println("AC x " + ac);
System.out.println("WA x " + wa);
System.out.println("TLE x " + tle);
System.out.println("RE x " + (N - ac - wa - tle));
}
}
|
[
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,
14,
4,
18,
13,
17,
40,
13,
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,
6,
13,
41,
13,
18,
13,
13,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
14,
2,
13,
13,
29,
17,
30,
0,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
29,
17,
29,
17,
12,
13,
30,
14,
4,
13,
29,
18,
13,
40,
13,
29,
40,
17,
12,
13,
30,
29,
2,
2,
17,
13,
2,
13,
17,
23,
13,
12,
13,
30,
42,
2,
4,
13,
40,
4,
13,
18,
13,
13,
40,
13,
29,
4,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
20,
41,
13,
4,
13,
42,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
17,
41,
13,
17,
41,
13,
4,
13,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
4,
13,
14,
2,
2,
13,
17,
2,
17,
13,
37,
20,
42,
17,
30,
14,
2,
2,
17,
13,
2,
13,
17,
30,
0,
13,
17,
0,
13,
2,
13,
17,
14,
2,
2,
13,
40,
17,
40,
4,
13,
13,
29,
8,
13,
40,
13,
13,
37,
20,
0,
13,
4,
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,
29,
4,
18,
13,
4,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
4,
18,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
375,
8
],
[
375,
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
],
[
44,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
57,
62
],
[
62,
63
],
[
44,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
64,
69
],
[
69,
70
],
[
44,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
71,
76
],
[
76,
77
],
[
11,
78
],
[
78,
79
],
[
79,
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
],
[
11,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
110,
111
],
[
110,
112
],
[
9,
113
],
[
113,
114
],
[
375,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
119,
121
],
[
115,
122
],
[
122,
123
],
[
122,
124
],
[
115,
126
],
[
126,
127
],
[
126,
128
],
[
115,
129
],
[
129,
130
],
[
129,
131
],
[
115,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
135,
139
],
[
139,
140
],
[
135,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
145,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
155,
158
],
[
141,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
159,
163
],
[
163,
164
],
[
134,
165
],
[
165,
166
],
[
115,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
170,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
170,
178
],
[
178,
179
],
[
179,
180
],
[
115,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
185,
189
],
[
189,
190
],
[
189,
191
],
[
181,
192
],
[
192,
193
],
[
115,
194
],
[
194,
195
],
[
194,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
198,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
204,
205
],
[
204,
206
],
[
197,
207
],
[
207,
208
],
[
196,
209
],
[
209,
210
],
[
210,
211
],
[
115,
212
],
[
212,
213
],
[
212,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
215,
219
],
[
219,
220
],
[
214,
221
],
[
221,
222
],
[
221,
223
],
[
214,
224
],
[
224,
225
],
[
224,
226
],
[
226,
227
],
[
214,
228
],
[
228,
229
],
[
229,
230
],
[
229,
231
],
[
228,
232
],
[
232,
233
],
[
233,
234
],
[
234,
235
],
[
233,
236
],
[
232,
237
],
[
237,
238
],
[
237,
239
],
[
239,
240
],
[
214,
241
],
[
241,
242
],
[
242,
243
],
[
243,
244
],
[
115,
245
],
[
245,
246
],
[
245,
247
],
[
247,
248
],
[
248,
249
],
[
249,
250
],
[
250,
251
],
[
248,
252
],
[
252,
253
],
[
247,
254
],
[
254,
255
],
[
254,
256
],
[
247,
257
],
[
257,
258
],
[
257,
259
],
[
247,
260
],
[
260,
261
],
[
260,
262
],
[
262,
263
],
[
247,
264
],
[
264,
265
],
[
265,
266
],
[
265,
267
],
[
264,
268
],
[
268,
269
],
[
269,
270
],
[
269,
271
],
[
268,
272
],
[
272,
273
],
[
272,
274
],
[
274,
275
],
[
247,
276
],
[
276,
277
],
[
277,
278
],
[
278,
279
],
[
278,
280
],
[
277,
281
],
[
281,
282
],
[
281,
283
],
[
276,
284
],
[
284,
285
],
[
247,
286
],
[
286,
287
],
[
286,
288
],
[
288,
289
],
[
289,
290
],
[
290,
291
],
[
291,
292
],
[
291,
293
],
[
290,
294
],
[
294,
295
],
[
294,
296
],
[
289,
297
],
[
297,
298
],
[
298,
299
],
[
298,
300
],
[
297,
301
],
[
301,
302
],
[
301,
303
],
[
303,
304
],
[
303,
305
],
[
289,
306
],
[
306,
307
],
[
307,
308
],
[
308,
309
],
[
308,
310
],
[
310,
311
],
[
307,
312
],
[
312,
313
],
[
313,
314
],
[
313,
315
],
[
306,
316
],
[
316,
317
],
[
317,
318
],
[
317,
319
],
[
319,
320
],
[
317,
321
],
[
306,
322
],
[
322,
323
],
[
288,
324
],
[
324,
325
],
[
324,
326
],
[
326,
327
],
[
115,
328
],
[
328,
329
],
[
328,
330
],
[
330,
331
],
[
331,
332
],
[
331,
333
],
[
333,
334
],
[
330,
335
],
[
335,
336
],
[
336,
337
],
[
337,
338
],
[
337,
339
],
[
339,
340
],
[
339,
341
],
[
336,
342
],
[
342,
343
],
[
342,
344
],
[
344,
345
],
[
344,
346
],
[
335,
347
],
[
347,
348
],
[
330,
349
],
[
349,
350
],
[
115,
351
],
[
351,
352
],
[
351,
353
],
[
353,
354
],
[
354,
355
],
[
355,
356
],
[
356,
357
],
[
355,
358
],
[
358,
359
],
[
115,
360
],
[
360,
361
],
[
360,
362
],
[
362,
363
],
[
363,
364
],
[
364,
365
],
[
364,
366
],
[
366,
367
],
[
367,
368
],
[
368,
369
],
[
363,
370
],
[
370,
371
],
[
371,
372
],
[
372,
373
],
[
0,
374
],
[
374,
375
],
[
374,
376
]
]
| [
"import java.util.*;\nimport java.io.*;\n\npublic class Main{\n public static void main(String[] args){\n FastScanner fsc=new FastScanner();\n int N =fsc.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 \tString S = fsc.next();\n \tif (S.equals(\"AC\"))ac++;\n \tif (S.equals(\"WA\"))wa++;\n \tif (S.equals(\"TLE\"))tle++;\n \tif (S.equals(\"RE\"))re++;\n \t\n }\n fsc.close();\n System.out.println(\"AC x \"+ac);\t\n System.out.println(\"WA x \"+wa);\n System.out.println(\"TLE x \"+tle);\n System.out.println(\"RE x \"+re);\n \n }\n \n\n static class FastScanner {\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n private boolean hasNextByte(){\n if(ptr<buflen) return true;\n else{\n ptr = 0;\n try{\n buflen = in.read(buffer);\n }\n catch(IOException e){\n e.printStackTrace();\n }\n if(buflen<=0) return false;\n }\n return true;\n }\n private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n public long nextLong() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) throw new NumberFormatException();\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }\n else if(b == -1 || !isPrintableChar(b)) return minus ? -n : n;\n else throw new NumberFormatException();\n b = readByte();\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 public double nextDouble() { return Double.parseDouble(next());}\n public void close(){\n try{in.close();}\n catch(IOException e){e.printStackTrace();}\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n public static void main(String[] args){\n FastScanner fsc=new FastScanner();\n int N =fsc.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 \tString S = fsc.next();\n \tif (S.equals(\"AC\"))ac++;\n \tif (S.equals(\"WA\"))wa++;\n \tif (S.equals(\"TLE\"))tle++;\n \tif (S.equals(\"RE\"))re++;\n \t\n }\n fsc.close();\n System.out.println(\"AC x \"+ac);\t\n System.out.println(\"WA x \"+wa);\n System.out.println(\"TLE x \"+tle);\n System.out.println(\"RE x \"+re);\n \n }\n \n\n static class FastScanner {\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n private boolean hasNextByte(){\n if(ptr<buflen) return true;\n else{\n ptr = 0;\n try{\n buflen = in.read(buffer);\n }\n catch(IOException e){\n e.printStackTrace();\n }\n if(buflen<=0) return false;\n }\n return true;\n }\n private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n public long nextLong() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) throw new NumberFormatException();\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }\n else if(b == -1 || !isPrintableChar(b)) return minus ? -n : n;\n else throw new NumberFormatException();\n b = readByte();\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 public double nextDouble() { return Double.parseDouble(next());}\n public void close(){\n try{in.close();}\n catch(IOException e){e.printStackTrace();}\n }\n }\n}",
"Main",
"public static void main(String[] args){\n FastScanner fsc=new FastScanner();\n int N =fsc.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 \tString S = fsc.next();\n \tif (S.equals(\"AC\"))ac++;\n \tif (S.equals(\"WA\"))wa++;\n \tif (S.equals(\"TLE\"))tle++;\n \tif (S.equals(\"RE\"))re++;\n \t\n }\n fsc.close();\n System.out.println(\"AC x \"+ac);\t\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 FastScanner fsc=new FastScanner();\n int N =fsc.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 \tString S = fsc.next();\n \tif (S.equals(\"AC\"))ac++;\n \tif (S.equals(\"WA\"))wa++;\n \tif (S.equals(\"TLE\"))tle++;\n \tif (S.equals(\"RE\"))re++;\n \t\n }\n fsc.close();\n System.out.println(\"AC x \"+ac);\t\n System.out.println(\"WA x \"+wa);\n System.out.println(\"TLE x \"+tle);\n System.out.println(\"RE x \"+re);\n \n }",
"FastScanner fsc=new FastScanner();",
"fsc",
"new FastScanner()",
"int N =fsc.nextInt();",
"N",
"fsc.nextInt()",
"fsc.nextInt",
"fsc",
"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 = fsc.next();\n \tif (S.equals(\"AC\"))ac++;\n \tif (S.equals(\"WA\"))wa++;\n \tif (S.equals(\"TLE\"))tle++;\n \tif (S.equals(\"RE\"))re++;\n \t\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n \tString S = fsc.next();\n \tif (S.equals(\"AC\"))ac++;\n \tif (S.equals(\"WA\"))wa++;\n \tif (S.equals(\"TLE\"))tle++;\n \tif (S.equals(\"RE\"))re++;\n \t\n }",
"{\n \tString S = fsc.next();\n \tif (S.equals(\"AC\"))ac++;\n \tif (S.equals(\"WA\"))wa++;\n \tif (S.equals(\"TLE\"))tle++;\n \tif (S.equals(\"RE\"))re++;\n \t\n }",
"String S = fsc.next();",
"S",
"fsc.next()",
"fsc.next",
"fsc",
"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",
"fsc.close()",
"fsc.close",
"fsc",
"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",
"static class FastScanner {\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n private boolean hasNextByte(){\n if(ptr<buflen) return true;\n else{\n ptr = 0;\n try{\n buflen = in.read(buffer);\n }\n catch(IOException e){\n e.printStackTrace();\n }\n if(buflen<=0) return false;\n }\n return true;\n }\n private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n public long nextLong() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) throw new NumberFormatException();\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }\n else if(b == -1 || !isPrintableChar(b)) return minus ? -n : n;\n else throw new NumberFormatException();\n b = readByte();\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 public double nextDouble() { return Double.parseDouble(next());}\n public void close(){\n try{in.close();}\n catch(IOException e){e.printStackTrace();}\n }\n }",
"FastScanner",
"private final InputStream in = System.in;",
"in",
"System.in",
"System",
"System.in",
"private final byte[] buffer = new byte[1024];",
"buffer",
"new byte[1024]",
"1024",
"private int ptr = 0;",
"ptr",
"0",
"private int buflen = 0;",
"buflen",
"0",
"private boolean hasNextByte(){\n if(ptr<buflen) return true;\n else{\n ptr = 0;\n try{\n buflen = in.read(buffer);\n }\n catch(IOException e){\n e.printStackTrace();\n }\n if(buflen<=0) return false;\n }\n return true;\n }",
"hasNextByte",
"{\n if(ptr<buflen) return true;\n else{\n ptr = 0;\n try{\n buflen = in.read(buffer);\n }\n catch(IOException e){\n e.printStackTrace();\n }\n if(buflen<=0) return false;\n }\n return true;\n }",
"if(ptr<buflen) return true;\n else{\n ptr = 0;\n try{\n buflen = in.read(buffer);\n }\n catch(IOException e){\n e.printStackTrace();\n }\n if(buflen<=0) return false;\n }",
"ptr<buflen",
"ptr",
"buflen",
"return true;",
"true",
"{\n ptr = 0;\n try{\n buflen = in.read(buffer);\n }\n catch(IOException e){\n e.printStackTrace();\n }\n if(buflen<=0) return false;\n }",
"ptr = 0",
"ptr",
"0",
"try{\n buflen = in.read(buffer);\n }\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 buflen = in.read(buffer);\n }",
"buflen = in.read(buffer)",
"buflen",
"in.read(buffer)",
"in.read",
"in",
"buffer",
"if(buflen<=0) return false;",
"buflen<=0",
"buflen",
"0",
"return false;",
"false",
"return true;",
"true",
"private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}",
"readByte",
"{ if (hasNextByte()) return buffer[ptr++]; else return -1;}",
"if (hasNextByte()) return buffer[ptr++]; else return -1;",
"hasNextByte()",
"hasNextByte",
"return buffer[ptr++];",
"buffer[ptr++]",
"buffer",
"ptr++",
"ptr",
"return -1;",
"-1",
"1",
"private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}",
"isPrintableChar",
"{ return 33 <= c && c <= 126;}",
"return 33 <= c && c <= 126;",
"33 <= c && c <= 126",
"33 <= c",
"33",
"c",
"c <= 126",
"c",
"126",
"int c",
"c",
"public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}",
"hasNext",
"{ while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}",
"while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;",
"hasNextByte() && !isPrintableChar(buffer[ptr])",
"hasNextByte()",
"hasNextByte",
"!isPrintableChar(buffer[ptr])",
"isPrintableChar(buffer[ptr])",
"isPrintableChar",
"buffer[ptr]",
"buffer",
"ptr",
"ptr++",
"ptr",
"return hasNextByte();",
"hasNextByte()",
"hasNextByte",
"public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }",
"next",
"{\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }",
"if (!hasNext()) throw new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int b = readByte();",
"b",
"readByte()",
"readByte",
"while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"{\n sb.appendCodePoint(b);\n b = readByte();\n }",
"sb.appendCodePoint(b)",
"sb.appendCodePoint",
"sb",
"b",
"b = readByte()",
"b",
"readByte()",
"readByte",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"public long nextLong() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) throw new NumberFormatException();\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }\n else if(b == -1 || !isPrintableChar(b)) return minus ? -n : n;\n else throw new NumberFormatException();\n b = readByte();\n }\n }",
"nextLong",
"{\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) throw new NumberFormatException();\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }\n else if(b == -1 || !isPrintableChar(b)) return minus ? -n : n;\n else throw new NumberFormatException();\n b = readByte();\n }\n }",
"if (!hasNext()) throw new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"long n = 0;",
"n",
"0",
"boolean minus = false;",
"minus",
"false",
"int b = readByte();",
"b",
"readByte()",
"readByte",
"if (b == '-') {\n minus = true;\n b = readByte();\n }",
"b == '-'",
"b",
"'-'",
"{\n minus = true;\n b = readByte();\n }",
"minus = true",
"minus",
"true",
"b = readByte()",
"b",
"readByte()",
"readByte",
"if (b < '0' || '9' < b) throw new NumberFormatException();",
"b < '0' || '9' < b",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"throw new NumberFormatException();",
"new NumberFormatException()",
"while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }\n else if(b == -1 || !isPrintableChar(b)) return minus ? -n : n;\n else throw new NumberFormatException();\n b = readByte();\n }",
"true",
"{\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }\n else if(b == -1 || !isPrintableChar(b)) return minus ? -n : n;\n else throw new NumberFormatException();\n b = readByte();\n }",
"if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }\n else if(b == -1 || !isPrintableChar(b)) return minus ? -n : n;\n else throw new NumberFormatException();",
"'0' <= b && b <= '9'",
"'0' <= b",
"'0'",
"b",
"b <= '9'",
"b",
"'9'",
"{\n n *= 10;\n n += b - '0';\n }",
"n *= 10",
"n",
"10",
"n += b - '0'",
"n",
"b - '0'",
"b",
"'0'",
"if(b == -1 || !isPrintableChar(b)) return minus ? -n : n;\n else throw new NumberFormatException();",
"b == -1 || !isPrintableChar(b)",
"b == -1",
"b",
"-1",
"1",
"!isPrintableChar(b)",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"return minus ? -n : n;",
"minus ? -n : n",
"minus",
"-n",
"n",
"n",
"throw new NumberFormatException();",
"new NumberFormatException()",
"b = readByte()",
"b",
"readByte()",
"readByte",
"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 double nextDouble() { return Double.parseDouble(next());}",
"nextDouble",
"{ return Double.parseDouble(next());}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public void close(){\n try{in.close();}\n catch(IOException e){e.printStackTrace();}\n }",
"close",
"{\n try{in.close();}\n catch(IOException e){e.printStackTrace();}\n }",
"try{in.close();}\n catch(IOException e){e.printStackTrace();}",
"catch(IOException e){e.printStackTrace();}",
"IOException e",
"{e.printStackTrace();}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{in.close();}",
"in.close()",
"in.close",
"in",
"public class Main{\n public static void main(String[] args){\n FastScanner fsc=new FastScanner();\n int N =fsc.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 \tString S = fsc.next();\n \tif (S.equals(\"AC\"))ac++;\n \tif (S.equals(\"WA\"))wa++;\n \tif (S.equals(\"TLE\"))tle++;\n \tif (S.equals(\"RE\"))re++;\n \t\n }\n fsc.close();\n System.out.println(\"AC x \"+ac);\t\n System.out.println(\"WA x \"+wa);\n System.out.println(\"TLE x \"+tle);\n System.out.println(\"RE x \"+re);\n \n }\n \n\n static class FastScanner {\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n private boolean hasNextByte(){\n if(ptr<buflen) return true;\n else{\n ptr = 0;\n try{\n buflen = in.read(buffer);\n }\n catch(IOException e){\n e.printStackTrace();\n }\n if(buflen<=0) return false;\n }\n return true;\n }\n private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n public long nextLong() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) throw new NumberFormatException();\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }\n else if(b == -1 || !isPrintableChar(b)) return minus ? -n : n;\n else throw new NumberFormatException();\n b = readByte();\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 public double nextDouble() { return Double.parseDouble(next());}\n public void close(){\n try{in.close();}\n catch(IOException e){e.printStackTrace();}\n }\n }\n}",
"public class Main{\n public static void main(String[] args){\n FastScanner fsc=new FastScanner();\n int N =fsc.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 \tString S = fsc.next();\n \tif (S.equals(\"AC\"))ac++;\n \tif (S.equals(\"WA\"))wa++;\n \tif (S.equals(\"TLE\"))tle++;\n \tif (S.equals(\"RE\"))re++;\n \t\n }\n fsc.close();\n System.out.println(\"AC x \"+ac);\t\n System.out.println(\"WA x \"+wa);\n System.out.println(\"TLE x \"+tle);\n System.out.println(\"RE x \"+re);\n \n }\n \n\n static class FastScanner {\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n private boolean hasNextByte(){\n if(ptr<buflen) return true;\n else{\n ptr = 0;\n try{\n buflen = in.read(buffer);\n }\n catch(IOException e){\n e.printStackTrace();\n }\n if(buflen<=0) return false;\n }\n return true;\n }\n private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n public long nextLong() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) throw new NumberFormatException();\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }\n else if(b == -1 || !isPrintableChar(b)) return minus ? -n : n;\n else throw new NumberFormatException();\n b = readByte();\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 public double nextDouble() { return Double.parseDouble(next());}\n public void close(){\n try{in.close();}\n catch(IOException e){e.printStackTrace();}\n }\n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main{
public static void main(String[] args){
FastScanner fsc=new FastScanner();
int N =fsc.nextInt();
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
for(int i=0;i<N;i++) {
String S = fsc.next();
if (S.equals("AC"))ac++;
if (S.equals("WA"))wa++;
if (S.equals("TLE"))tle++;
if (S.equals("RE"))re++;
}
fsc.close();
System.out.println("AC x "+ac);
System.out.println("WA x "+wa);
System.out.println("TLE x "+tle);
System.out.println("RE x "+re);
}
static class FastScanner {
private final InputStream in = System.in;
private final byte[] buffer = new byte[1024];
private int ptr = 0;
private int buflen = 0;
private boolean hasNextByte(){
if(ptr<buflen) return true;
else{
ptr = 0;
try{
buflen = in.read(buffer);
}
catch(IOException e){
e.printStackTrace();
}
if(buflen<=0) return false;
}
return true;
}
private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}
private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}
public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}
public String next() {
if (!hasNext()) throw new NoSuchElementException();
StringBuilder sb = new StringBuilder();
int b = readByte();
while(isPrintableChar(b)) {
sb.appendCodePoint(b);
b = readByte();
}
return sb.toString();
}
public long nextLong() {
if (!hasNext()) throw new NoSuchElementException();
long n = 0;
boolean minus = false;
int b = readByte();
if (b == '-') {
minus = true;
b = readByte();
}
if (b < '0' || '9' < b) throw new NumberFormatException();
while(true){
if ('0' <= b && b <= '9') {
n *= 10;
n += b - '0';
}
else if(b == -1 || !isPrintableChar(b)) return minus ? -n : n;
else throw new NumberFormatException();
b = readByte();
}
}
public int nextInt() {
long nl = nextLong();
if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();
return (int) nl;
}
public double nextDouble() { return Double.parseDouble(next());}
public void close(){
try{in.close();}
catch(IOException e){e.printStackTrace();}
}
}
}
|
[
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,
4,
18,
17,
13,
30,
40,
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,
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
],
[
120,
5
],
[
120,
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
],
[
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
],
[
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
],
[
8,
114
],
[
114,
115
],
[
115,
116
],
[
6,
117
],
[
117,
118
],
[
0,
119
],
[
119,
120
],
[
119,
121
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n int numTest = Integer.parseInt(stdIn.next());\n\n int numAC = 0;\n int numWA = 0;\n int numTLE = 0;\n int numRE = 0;\n for (int i = 0; i < numTest; i++) {\n String result = stdIn.next();\n if (\"AC\".equals(result)) {\n numAC++;\n } else if (\"WA\".equals(result)) {\n numWA++;\n } else if (\"TLE\".equals(result)) {\n numTLE++;\n } else if (\"RE\".equals(result)) {\n numRE++;\n }\n }\n System.out.println(\"AC x \"+ numAC);\n System.out.println(\"WA x \"+ numWA);\n System.out.println(\"TLE x \"+ numTLE);\n System.out.println(\"RE x \"+ numRE);\n stdIn.close();\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n int numTest = Integer.parseInt(stdIn.next());\n\n int numAC = 0;\n int numWA = 0;\n int numTLE = 0;\n int numRE = 0;\n for (int i = 0; i < numTest; i++) {\n String result = stdIn.next();\n if (\"AC\".equals(result)) {\n numAC++;\n } else if (\"WA\".equals(result)) {\n numWA++;\n } else if (\"TLE\".equals(result)) {\n numTLE++;\n } else if (\"RE\".equals(result)) {\n numRE++;\n }\n }\n System.out.println(\"AC x \"+ numAC);\n System.out.println(\"WA x \"+ numWA);\n System.out.println(\"TLE x \"+ numTLE);\n System.out.println(\"RE x \"+ numRE);\n stdIn.close();\n }\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n int numTest = Integer.parseInt(stdIn.next());\n\n int numAC = 0;\n int numWA = 0;\n int numTLE = 0;\n int numRE = 0;\n for (int i = 0; i < numTest; i++) {\n String result = stdIn.next();\n if (\"AC\".equals(result)) {\n numAC++;\n } else if (\"WA\".equals(result)) {\n numWA++;\n } else if (\"TLE\".equals(result)) {\n numTLE++;\n } else if (\"RE\".equals(result)) {\n numRE++;\n }\n }\n System.out.println(\"AC x \"+ numAC);\n System.out.println(\"WA x \"+ numWA);\n System.out.println(\"TLE x \"+ numTLE);\n System.out.println(\"RE x \"+ numRE);\n stdIn.close();\n }",
"main",
"{\n Scanner stdIn = new Scanner(System.in);\n int numTest = Integer.parseInt(stdIn.next());\n\n int numAC = 0;\n int numWA = 0;\n int numTLE = 0;\n int numRE = 0;\n for (int i = 0; i < numTest; i++) {\n String result = stdIn.next();\n if (\"AC\".equals(result)) {\n numAC++;\n } else if (\"WA\".equals(result)) {\n numWA++;\n } else if (\"TLE\".equals(result)) {\n numTLE++;\n } else if (\"RE\".equals(result)) {\n numRE++;\n }\n }\n System.out.println(\"AC x \"+ numAC);\n System.out.println(\"WA x \"+ numWA);\n System.out.println(\"TLE x \"+ numTLE);\n System.out.println(\"RE x \"+ numRE);\n stdIn.close();\n }",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"int numTest = Integer.parseInt(stdIn.next());",
"numTest",
"Integer.parseInt(stdIn.next())",
"Integer.parseInt",
"Integer",
"stdIn.next()",
"stdIn.next",
"stdIn",
"int numAC = 0;",
"numAC",
"0",
"int numWA = 0;",
"numWA",
"0",
"int numTLE = 0;",
"numTLE",
"0",
"int numRE = 0;",
"numRE",
"0",
"for (int i = 0; i < numTest; i++) {\n String result = stdIn.next();\n if (\"AC\".equals(result)) {\n numAC++;\n } else if (\"WA\".equals(result)) {\n numWA++;\n } else if (\"TLE\".equals(result)) {\n numTLE++;\n } else if (\"RE\".equals(result)) {\n numRE++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < numTest",
"i",
"numTest",
"i++",
"i++",
"i",
"{\n String result = stdIn.next();\n if (\"AC\".equals(result)) {\n numAC++;\n } else if (\"WA\".equals(result)) {\n numWA++;\n } else if (\"TLE\".equals(result)) {\n numTLE++;\n } else if (\"RE\".equals(result)) {\n numRE++;\n }\n }",
"{\n String result = stdIn.next();\n if (\"AC\".equals(result)) {\n numAC++;\n } else if (\"WA\".equals(result)) {\n numWA++;\n } else if (\"TLE\".equals(result)) {\n numTLE++;\n } else if (\"RE\".equals(result)) {\n numRE++;\n }\n }",
"String result = stdIn.next();",
"result",
"stdIn.next()",
"stdIn.next",
"stdIn",
"if (\"AC\".equals(result)) {\n numAC++;\n } else if (\"WA\".equals(result)) {\n numWA++;\n } else if (\"TLE\".equals(result)) {\n numTLE++;\n } else if (\"RE\".equals(result)) {\n numRE++;\n }",
"\"AC\".equals(result)",
"\"AC\".equals",
"\"AC\"",
"result",
"{\n numAC++;\n }",
"numAC++",
"numAC",
"if (\"WA\".equals(result)) {\n numWA++;\n } else if (\"TLE\".equals(result)) {\n numTLE++;\n } else if (\"RE\".equals(result)) {\n numRE++;\n }",
"\"WA\".equals(result)",
"\"WA\".equals",
"\"WA\"",
"result",
"{\n numWA++;\n }",
"numWA++",
"numWA",
"if (\"TLE\".equals(result)) {\n numTLE++;\n } else if (\"RE\".equals(result)) {\n numRE++;\n }",
"\"TLE\".equals(result)",
"\"TLE\".equals",
"\"TLE\"",
"result",
"{\n numTLE++;\n }",
"numTLE++",
"numTLE",
"if (\"RE\".equals(result)) {\n numRE++;\n }",
"\"RE\".equals(result)",
"\"RE\".equals",
"\"RE\"",
"result",
"{\n numRE++;\n }",
"numRE++",
"numRE",
"System.out.println(\"AC x \"+ numAC)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \"+ numAC",
"\"AC x \"",
"numAC",
"System.out.println(\"WA x \"+ numWA)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \"+ numWA",
"\"WA x \"",
"numWA",
"System.out.println(\"TLE x \"+ numTLE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \"+ numTLE",
"\"TLE x \"",
"numTLE",
"System.out.println(\"RE x \"+ numRE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \"+ numRE",
"\"RE x \"",
"numRE",
"stdIn.close()",
"stdIn.close",
"stdIn",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n int numTest = Integer.parseInt(stdIn.next());\n\n int numAC = 0;\n int numWA = 0;\n int numTLE = 0;\n int numRE = 0;\n for (int i = 0; i < numTest; i++) {\n String result = stdIn.next();\n if (\"AC\".equals(result)) {\n numAC++;\n } else if (\"WA\".equals(result)) {\n numWA++;\n } else if (\"TLE\".equals(result)) {\n numTLE++;\n } else if (\"RE\".equals(result)) {\n numRE++;\n }\n }\n System.out.println(\"AC x \"+ numAC);\n System.out.println(\"WA x \"+ numWA);\n System.out.println(\"TLE x \"+ numTLE);\n System.out.println(\"RE x \"+ numRE);\n stdIn.close();\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n int numTest = Integer.parseInt(stdIn.next());\n\n int numAC = 0;\n int numWA = 0;\n int numTLE = 0;\n int numRE = 0;\n for (int i = 0; i < numTest; i++) {\n String result = stdIn.next();\n if (\"AC\".equals(result)) {\n numAC++;\n } else if (\"WA\".equals(result)) {\n numWA++;\n } else if (\"TLE\".equals(result)) {\n numTLE++;\n } else if (\"RE\".equals(result)) {\n numRE++;\n }\n }\n System.out.println(\"AC x \"+ numAC);\n System.out.println(\"WA x \"+ numWA);\n System.out.println(\"TLE x \"+ numTLE);\n System.out.println(\"RE x \"+ numRE);\n stdIn.close();\n }\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
int numTest = Integer.parseInt(stdIn.next());
int numAC = 0;
int numWA = 0;
int numTLE = 0;
int numRE = 0;
for (int i = 0; i < numTest; i++) {
String result = stdIn.next();
if ("AC".equals(result)) {
numAC++;
} else if ("WA".equals(result)) {
numWA++;
} else if ("TLE".equals(result)) {
numTLE++;
} else if ("RE".equals(result)) {
numRE++;
}
}
System.out.println("AC x "+ numAC);
System.out.println("WA x "+ numWA);
System.out.println("TLE x "+ numTLE);
System.out.println("RE x "+ numRE);
stdIn.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
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,
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
],
[
109,
5
],
[
109,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
10,
19
],
[
19,
20
],
[
19,
21
],
[
10,
22
],
[
22,
23
],
[
22,
24
],
[
10,
25
],
[
25,
26
],
[
25,
27
],
[
10,
28
],
[
28,
29
],
[
28,
30
],
[
10,
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
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
49,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
49,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
49,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
10,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
79,
80
],
[
79,
81
],
[
10,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
87,
88
],
[
87,
89
],
[
10,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
10,
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.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tint c0 = 0;\n\t\t\tint c1 = 0;\n\t\t\tint c2 = 0;\n\t\t\tint c3 = 0;\n\t\t\t\n\t\t\tfor(int i = 0 ; i < n ; i++ ) {\n\t\t\t\tString s = sc.next();\n\t\t\t\t\n\t\t\t\tswitch(s) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tc0++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tc1++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tc2++;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tc3++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"AC x \" + c0);\n\t\t\tSystem.out.println(\"WA x \" + c1);\n\t\t\tSystem.out.println(\"TLE x \" + c2);\n\t\t\tSystem.out.println(\"RE x \" + c3);\n\t\t}\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tint c0 = 0;\n\t\t\tint c1 = 0;\n\t\t\tint c2 = 0;\n\t\t\tint c3 = 0;\n\t\t\t\n\t\t\tfor(int i = 0 ; i < n ; i++ ) {\n\t\t\t\tString s = sc.next();\n\t\t\t\t\n\t\t\t\tswitch(s) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tc0++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tc1++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tc2++;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tc3++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"AC x \" + c0);\n\t\t\tSystem.out.println(\"WA x \" + c1);\n\t\t\tSystem.out.println(\"TLE x \" + c2);\n\t\t\tSystem.out.println(\"RE x \" + c3);\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args){\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tint c0 = 0;\n\t\t\tint c1 = 0;\n\t\t\tint c2 = 0;\n\t\t\tint c3 = 0;\n\t\t\t\n\t\t\tfor(int i = 0 ; i < n ; i++ ) {\n\t\t\t\tString s = sc.next();\n\t\t\t\t\n\t\t\t\tswitch(s) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tc0++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tc1++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tc2++;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tc3++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"AC x \" + c0);\n\t\t\tSystem.out.println(\"WA x \" + c1);\n\t\t\tSystem.out.println(\"TLE x \" + c2);\n\t\t\tSystem.out.println(\"RE x \" + c3);\n\t\t}\n\t}",
"main",
"{\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tint c0 = 0;\n\t\t\tint c1 = 0;\n\t\t\tint c2 = 0;\n\t\t\tint c3 = 0;\n\t\t\t\n\t\t\tfor(int i = 0 ; i < n ; i++ ) {\n\t\t\t\tString s = sc.next();\n\t\t\t\t\n\t\t\t\tswitch(s) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tc0++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tc1++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tc2++;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tc3++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"AC x \" + c0);\n\t\t\tSystem.out.println(\"WA x \" + c1);\n\t\t\tSystem.out.println(\"TLE x \" + c2);\n\t\t\tSystem.out.println(\"RE x \" + c3);\n\t\t}\n\t}",
"try(Scanner sc = new Scanner(System.in)) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tint c0 = 0;\n\t\t\tint c1 = 0;\n\t\t\tint c2 = 0;\n\t\t\tint c3 = 0;\n\t\t\t\n\t\t\tfor(int i = 0 ; i < n ; i++ ) {\n\t\t\t\tString s = sc.next();\n\t\t\t\t\n\t\t\t\tswitch(s) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tc0++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tc1++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tc2++;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tc3++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"AC x \" + c0);\n\t\t\tSystem.out.println(\"WA x \" + c1);\n\t\t\tSystem.out.println(\"TLE x \" + c2);\n\t\t\tSystem.out.println(\"RE x \" + c3);\n\t\t}",
"{\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tint c0 = 0;\n\t\t\tint c1 = 0;\n\t\t\tint c2 = 0;\n\t\t\tint c3 = 0;\n\t\t\t\n\t\t\tfor(int i = 0 ; i < n ; i++ ) {\n\t\t\t\tString s = sc.next();\n\t\t\t\t\n\t\t\t\tswitch(s) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tc0++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tc1++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tc2++;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tc3++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"AC x \" + c0);\n\t\t\tSystem.out.println(\"WA x \" + c1);\n\t\t\tSystem.out.println(\"TLE x \" + c2);\n\t\t\tSystem.out.println(\"RE x \" + c3);\n\t\t}",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"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\t\t\t\tString s = sc.next();\n\t\t\t\t\n\t\t\t\tswitch(s) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tc0++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tc1++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tc2++;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tc3++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\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 = sc.next();\n\t\t\t\t\n\t\t\t\tswitch(s) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tc0++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tc1++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tc2++;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tc3++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"{\n\t\t\t\tString s = sc.next();\n\t\t\t\t\n\t\t\t\tswitch(s) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tc0++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tc1++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tc2++;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tc3++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"switch(s) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tc0++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tc1++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tc2++;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tc3++;\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"s",
"case \"AC\":",
"\"AC\"",
"case \"AC\":",
"c0++",
"c0",
"break;",
"case \"WA\":",
"\"WA\"",
"case \"WA\":",
"c1++",
"c1",
"break;",
"case \"TLE\":",
"\"TLE\"",
"case \"TLE\":",
"c2++",
"c2",
"break;",
"default:",
"default:",
"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\tpublic static void main(String[] args){\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tint c0 = 0;\n\t\t\tint c1 = 0;\n\t\t\tint c2 = 0;\n\t\t\tint c3 = 0;\n\t\t\t\n\t\t\tfor(int i = 0 ; i < n ; i++ ) {\n\t\t\t\tString s = sc.next();\n\t\t\t\t\n\t\t\t\tswitch(s) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tc0++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tc1++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tc2++;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tc3++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"AC x \" + c0);\n\t\t\tSystem.out.println(\"WA x \" + c1);\n\t\t\tSystem.out.println(\"TLE x \" + c2);\n\t\t\tSystem.out.println(\"RE x \" + c3);\n\t\t}\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tint c0 = 0;\n\t\t\tint c1 = 0;\n\t\t\tint c2 = 0;\n\t\t\tint c3 = 0;\n\t\t\t\n\t\t\tfor(int i = 0 ; i < n ; i++ ) {\n\t\t\t\tString s = sc.next();\n\t\t\t\t\n\t\t\t\tswitch(s) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tc0++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tc1++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tc2++;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tc3++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"AC x \" + c0);\n\t\t\tSystem.out.println(\"WA x \" + c1);\n\t\t\tSystem.out.println(\"TLE x \" + c2);\n\t\t\tSystem.out.println(\"RE x \" + c3);\n\t\t}\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
try(Scanner sc = new Scanner(System.in)) {
int n = sc.nextInt();
int c0 = 0;
int c1 = 0;
int c2 = 0;
int c3 = 0;
for(int i = 0 ; i < n ; i++ ) {
String s = sc.next();
switch(s) {
case "AC":
c0++;
break;
case "WA":
c1++;
break;
case "TLE":
c2++;
break;
default:
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,
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
],
[
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
],
[
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
],
[
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.*;\n\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n int num = sc.nextInt();\n int countAC = 0;\n int countWA = 0;\n int countTLE = 0;\n int countRE = 0;\n for (int i = 0; i < num; i++) {\n String str = sc.next();\n switch(str) {\n case \"AC\":\n countAC++;\n break;\n case \"WA\":\n countWA++;\n break;\n case \"TLE\":\n countTLE++;\n break;\n case \"RE\":\n countRE++;\n break;\n }\n }\n System.out.println(\"AC x \" + countAC);\n System.out.println(\"WA x \" + countWA);\n System.out.println(\"TLE x \" + countTLE);\n System.out.println(\"RE x \" + countRE);\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 \n int num = sc.nextInt();\n int countAC = 0;\n int countWA = 0;\n int countTLE = 0;\n int countRE = 0;\n for (int i = 0; i < num; i++) {\n String str = sc.next();\n switch(str) {\n case \"AC\":\n countAC++;\n break;\n case \"WA\":\n countWA++;\n break;\n case \"TLE\":\n countTLE++;\n break;\n case \"RE\":\n countRE++;\n break;\n }\n }\n System.out.println(\"AC x \" + countAC);\n System.out.println(\"WA x \" + countWA);\n System.out.println(\"TLE x \" + countTLE);\n System.out.println(\"RE x \" + countRE);\n\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n int num = sc.nextInt();\n int countAC = 0;\n int countWA = 0;\n int countTLE = 0;\n int countRE = 0;\n for (int i = 0; i < num; i++) {\n String str = sc.next();\n switch(str) {\n case \"AC\":\n countAC++;\n break;\n case \"WA\":\n countWA++;\n break;\n case \"TLE\":\n countTLE++;\n break;\n case \"RE\":\n countRE++;\n break;\n }\n }\n System.out.println(\"AC x \" + countAC);\n System.out.println(\"WA x \" + countWA);\n System.out.println(\"TLE x \" + countTLE);\n System.out.println(\"RE x \" + countRE);\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n \n int num = sc.nextInt();\n int countAC = 0;\n int countWA = 0;\n int countTLE = 0;\n int countRE = 0;\n for (int i = 0; i < num; i++) {\n String str = sc.next();\n switch(str) {\n case \"AC\":\n countAC++;\n break;\n case \"WA\":\n countWA++;\n break;\n case \"TLE\":\n countTLE++;\n break;\n case \"RE\":\n countRE++;\n break;\n }\n }\n System.out.println(\"AC x \" + countAC);\n System.out.println(\"WA x \" + countWA);\n System.out.println(\"TLE x \" + countTLE);\n System.out.println(\"RE x \" + countRE);\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int countAC = 0;",
"countAC",
"0",
"int countWA = 0;",
"countWA",
"0",
"int countTLE = 0;",
"countTLE",
"0",
"int countRE = 0;",
"countRE",
"0",
"for (int i = 0; i < num; i++) {\n String str = sc.next();\n switch(str) {\n case \"AC\":\n countAC++;\n break;\n case \"WA\":\n countWA++;\n break;\n case \"TLE\":\n countTLE++;\n break;\n case \"RE\":\n countRE++;\n break;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n String str = sc.next();\n switch(str) {\n case \"AC\":\n countAC++;\n break;\n case \"WA\":\n countWA++;\n break;\n case \"TLE\":\n countTLE++;\n break;\n case \"RE\":\n countRE++;\n break;\n }\n }",
"{\n String str = sc.next();\n switch(str) {\n case \"AC\":\n countAC++;\n break;\n case \"WA\":\n countWA++;\n break;\n case \"TLE\":\n countTLE++;\n break;\n case \"RE\":\n countRE++;\n break;\n }\n }",
"String str = sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"switch(str) {\n case \"AC\":\n countAC++;\n break;\n case \"WA\":\n countWA++;\n break;\n case \"TLE\":\n countTLE++;\n break;\n case \"RE\":\n countRE++;\n break;\n }",
"str",
"case \"AC\":",
"\"AC\"",
"case \"AC\":",
"countAC++",
"countAC",
"break;",
"case \"WA\":",
"\"WA\"",
"case \"WA\":",
"countWA++",
"countWA",
"break;",
"case \"TLE\":",
"\"TLE\"",
"case \"TLE\":",
"countTLE++",
"countTLE",
"break;",
"case \"RE\":",
"\"RE\"",
"case \"RE\":",
"countRE++",
"countRE",
"break;",
"System.out.println(\"AC x \" + countAC)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + countAC",
"\"AC x \"",
"countAC",
"System.out.println(\"WA x \" + countWA)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + countWA",
"\"WA x \"",
"countWA",
"System.out.println(\"TLE x \" + countTLE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + countTLE",
"\"TLE x \"",
"countTLE",
"System.out.println(\"RE x \" + countRE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + countRE",
"\"RE x \"",
"countRE",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n int num = sc.nextInt();\n int countAC = 0;\n int countWA = 0;\n int countTLE = 0;\n int countRE = 0;\n for (int i = 0; i < num; i++) {\n String str = sc.next();\n switch(str) {\n case \"AC\":\n countAC++;\n break;\n case \"WA\":\n countWA++;\n break;\n case \"TLE\":\n countTLE++;\n break;\n case \"RE\":\n countRE++;\n break;\n }\n }\n System.out.println(\"AC x \" + countAC);\n System.out.println(\"WA x \" + countWA);\n System.out.println(\"TLE x \" + countTLE);\n System.out.println(\"RE x \" + countRE);\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n int num = sc.nextInt();\n int countAC = 0;\n int countWA = 0;\n int countTLE = 0;\n int countRE = 0;\n for (int i = 0; i < num; i++) {\n String str = sc.next();\n switch(str) {\n case \"AC\":\n countAC++;\n break;\n case \"WA\":\n countWA++;\n break;\n case \"TLE\":\n countTLE++;\n break;\n case \"RE\":\n countRE++;\n break;\n }\n }\n System.out.println(\"AC x \" + countAC);\n System.out.println(\"WA x \" + countWA);\n System.out.println(\"TLE x \" + countTLE);\n System.out.println(\"RE x \" + countRE);\n\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int num = sc.nextInt();
int countAC = 0;
int countWA = 0;
int countTLE = 0;
int countRE = 0;
for (int i = 0; i < num; i++) {
String str = sc.next();
switch(str) {
case "AC":
countAC++;
break;
case "WA":
countWA++;
break;
case "TLE":
countTLE++;
break;
case "RE":
countRE++;
break;
}
}
System.out.println("AC x " + countAC);
System.out.println("WA x " + countWA);
System.out.println("TLE x " + countTLE);
System.out.println("RE x " + countRE);
}
} |
[
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,
4,
18,
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
],
[
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
],
[
81,
82
],
[
80,
83
],
[
80,
84
],
[
80,
85
],
[
80,
86
],
[
80,
87
],
[
6,
88
],
[
88,
89
],
[
0,
90
],
[
90,
91
],
[
90,
92
]
]
| [
"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\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 = sc.next();\n if (s.equals(\"AC\")) ac++;\n else if (s.equals(\"WA\")) wa++;\n else if (s.equals(\"TLE\")) tle++;\n else if (s.equals(\"RE\")) re++;\n }\n System.out.println(String.format(\"AC x %d\\nWA x %d\\nTLE x %d\\nRE x %d\", ac, wa, tle, 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\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 = sc.next();\n if (s.equals(\"AC\")) ac++;\n else if (s.equals(\"WA\")) wa++;\n else if (s.equals(\"TLE\")) tle++;\n else if (s.equals(\"RE\")) re++;\n }\n System.out.println(String.format(\"AC x %d\\nWA x %d\\nTLE x %d\\nRE x %d\", ac, wa, tle, re));\n }\n}",
"Main",
"public static void main(String[] args) {\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 for (int i = 0; i < n; i++) {\n String s = sc.next();\n if (s.equals(\"AC\")) ac++;\n else if (s.equals(\"WA\")) wa++;\n else if (s.equals(\"TLE\")) tle++;\n else if (s.equals(\"RE\")) re++;\n }\n System.out.println(String.format(\"AC x %d\\nWA x %d\\nTLE x %d\\nRE x %d\", ac, wa, tle, 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 for (int i = 0; i < n; i++) {\n String s = sc.next();\n if (s.equals(\"AC\")) ac++;\n else if (s.equals(\"WA\")) wa++;\n else if (s.equals(\"TLE\")) tle++;\n else if (s.equals(\"RE\")) re++;\n }\n System.out.println(String.format(\"AC x %d\\nWA x %d\\nTLE x %d\\nRE x %d\", ac, wa, tle, 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\")) ac++;\n else if (s.equals(\"WA\")) wa++;\n else if (s.equals(\"TLE\")) tle++;\n else if (s.equals(\"RE\")) re++;\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\")) ac++;\n else if (s.equals(\"WA\")) wa++;\n else if (s.equals(\"TLE\")) tle++;\n else if (s.equals(\"RE\")) re++;\n }",
"{\n String s = sc.next();\n if (s.equals(\"AC\")) ac++;\n else if (s.equals(\"WA\")) wa++;\n else if (s.equals(\"TLE\")) tle++;\n else if (s.equals(\"RE\")) re++;\n }",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"if (s.equals(\"AC\")) ac++;\n else if (s.equals(\"WA\")) wa++;\n else if (s.equals(\"TLE\")) tle++;\n else if (s.equals(\"RE\")) re++;",
"s.equals(\"AC\")",
"s.equals",
"s",
"\"AC\"",
"ac++",
"ac",
"if (s.equals(\"WA\")) wa++;\n else if (s.equals(\"TLE\")) tle++;\n else if (s.equals(\"RE\")) re++;",
"s.equals(\"WA\")",
"s.equals",
"s",
"\"WA\"",
"wa++",
"wa",
"if (s.equals(\"TLE\")) tle++;\n else if (s.equals(\"RE\")) re++;",
"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.println(String.format(\"AC x %d\\nWA x %d\\nTLE x %d\\nRE x %d\", ac, wa, tle, re))",
"System.out.println",
"System.out",
"System",
"System.out",
"String.format(\"AC x %d\\nWA x %d\\nTLE x %d\\nRE x %d\", ac, wa, tle, re)",
"String.format",
"String",
"\"AC x %d\\nWA x %d\\nTLE x %d\\nRE x %d\"",
"ac",
"wa",
"tle",
"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\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 = sc.next();\n if (s.equals(\"AC\")) ac++;\n else if (s.equals(\"WA\")) wa++;\n else if (s.equals(\"TLE\")) tle++;\n else if (s.equals(\"RE\")) re++;\n }\n System.out.println(String.format(\"AC x %d\\nWA x %d\\nTLE x %d\\nRE x %d\", ac, wa, tle, 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\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 = sc.next();\n if (s.equals(\"AC\")) ac++;\n else if (s.equals(\"WA\")) wa++;\n else if (s.equals(\"TLE\")) tle++;\n else if (s.equals(\"RE\")) re++;\n }\n System.out.println(String.format(\"AC x %d\\nWA x %d\\nTLE x %d\\nRE x %d\", ac, wa, tle, 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++;
else if (s.equals("WA")) wa++;
else if (s.equals("TLE")) tle++;
else if (s.equals("RE")) re++;
}
System.out.println(String.format("AC x %d\nWA x %d\nTLE x %d\nRE x %d", ac, wa, tle, re));
}
} |
[
7,
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,
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,
17,
4,
18,
18,
13,
13,
18,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
18,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
18,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
18,
13,
17,
4,
18,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
5,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
5,
14
],
[
14,
15
],
[
14,
16
],
[
5,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
18,
23
],
[
23,
24
],
[
23,
25
],
[
18,
26
],
[
26,
27
],
[
27,
28
],
[
18,
29
],
[
30,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
30,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
36,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
36,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
46,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
46,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
56,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
56,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
5,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
5,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
5,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
5,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
5,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
5,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
110,
111
],
[
110,
112
],
[
5,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
5,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
124,
125
],
[
124,
126
],
[
5,
127
],
[
127,
128
],
[
128,
129
],
[
3,
130
],
[
130,
131
]
]
| [
"\nclass Main{\n\npublic static void main (String[] args) {\n\n\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\n\tint N = sc.nextInt();\n\n\tint kosuu [] = new int [4];\n\n\tfor (int i=0; i<N; i++) {\n\t\tString temp = sc.next();\n\t\tif (temp.equals(\"AC\")) {\n\t\t\tkosuu[0]++;\n\t\t} else if (temp.equals(\"WA\")) {\n\t\t\tkosuu[1]++;\n\t\t} else if (temp.equals(\"TLE\")) {\n\t\t\tkosuu[2]++;\n\t\t} else {\n\t\t\tkosuu[3]++;\n\t\t}\n\t}\n\n\tSystem.out.print(\"AC x \");\n\tSystem.out.println(kosuu[0]);\n\tSystem.out.print(\"WA x \");\n\tSystem.out.println(kosuu[1]);\n\tSystem.out.print(\"TLE x \");\n\tSystem.out.println(kosuu[2]);\n\tSystem.out.print(\"RE x \");\n\tSystem.out.println(kosuu[3]);\n\n\tsc.close();;\n\n}\n\n\n}\n",
"class Main{\n\npublic static void main (String[] args) {\n\n\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\n\tint N = sc.nextInt();\n\n\tint kosuu [] = new int [4];\n\n\tfor (int i=0; i<N; i++) {\n\t\tString temp = sc.next();\n\t\tif (temp.equals(\"AC\")) {\n\t\t\tkosuu[0]++;\n\t\t} else if (temp.equals(\"WA\")) {\n\t\t\tkosuu[1]++;\n\t\t} else if (temp.equals(\"TLE\")) {\n\t\t\tkosuu[2]++;\n\t\t} else {\n\t\t\tkosuu[3]++;\n\t\t}\n\t}\n\n\tSystem.out.print(\"AC x \");\n\tSystem.out.println(kosuu[0]);\n\tSystem.out.print(\"WA x \");\n\tSystem.out.println(kosuu[1]);\n\tSystem.out.print(\"TLE x \");\n\tSystem.out.println(kosuu[2]);\n\tSystem.out.print(\"RE x \");\n\tSystem.out.println(kosuu[3]);\n\n\tsc.close();;\n\n}\n\n\n}",
"Main",
"public static void main (String[] args) {\n\n\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\n\tint N = sc.nextInt();\n\n\tint kosuu [] = new int [4];\n\n\tfor (int i=0; i<N; i++) {\n\t\tString temp = sc.next();\n\t\tif (temp.equals(\"AC\")) {\n\t\t\tkosuu[0]++;\n\t\t} else if (temp.equals(\"WA\")) {\n\t\t\tkosuu[1]++;\n\t\t} else if (temp.equals(\"TLE\")) {\n\t\t\tkosuu[2]++;\n\t\t} else {\n\t\t\tkosuu[3]++;\n\t\t}\n\t}\n\n\tSystem.out.print(\"AC x \");\n\tSystem.out.println(kosuu[0]);\n\tSystem.out.print(\"WA x \");\n\tSystem.out.println(kosuu[1]);\n\tSystem.out.print(\"TLE x \");\n\tSystem.out.println(kosuu[2]);\n\tSystem.out.print(\"RE x \");\n\tSystem.out.println(kosuu[3]);\n\n\tsc.close();;\n\n}",
"main",
"{\n\n\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\n\tint N = sc.nextInt();\n\n\tint kosuu [] = new int [4];\n\n\tfor (int i=0; i<N; i++) {\n\t\tString temp = sc.next();\n\t\tif (temp.equals(\"AC\")) {\n\t\t\tkosuu[0]++;\n\t\t} else if (temp.equals(\"WA\")) {\n\t\t\tkosuu[1]++;\n\t\t} else if (temp.equals(\"TLE\")) {\n\t\t\tkosuu[2]++;\n\t\t} else {\n\t\t\tkosuu[3]++;\n\t\t}\n\t}\n\n\tSystem.out.print(\"AC x \");\n\tSystem.out.println(kosuu[0]);\n\tSystem.out.print(\"WA x \");\n\tSystem.out.println(kosuu[1]);\n\tSystem.out.print(\"TLE x \");\n\tSystem.out.println(kosuu[2]);\n\tSystem.out.print(\"RE x \");\n\tSystem.out.println(kosuu[3]);\n\n\tsc.close();;\n\n}",
"java.util.Scanner sc = new java.util.Scanner(System.in);",
"sc",
"new java.util.Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int kosuu [] = new int [4];",
"kosuu",
"new int [4]",
"4",
"for (int i=0; i<N; i++) {\n\t\tString temp = sc.next();\n\t\tif (temp.equals(\"AC\")) {\n\t\t\tkosuu[0]++;\n\t\t} else if (temp.equals(\"WA\")) {\n\t\t\tkosuu[1]++;\n\t\t} else if (temp.equals(\"TLE\")) {\n\t\t\tkosuu[2]++;\n\t\t} else {\n\t\t\tkosuu[3]++;\n\t\t}\n\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\tString temp = sc.next();\n\t\tif (temp.equals(\"AC\")) {\n\t\t\tkosuu[0]++;\n\t\t} else if (temp.equals(\"WA\")) {\n\t\t\tkosuu[1]++;\n\t\t} else if (temp.equals(\"TLE\")) {\n\t\t\tkosuu[2]++;\n\t\t} else {\n\t\t\tkosuu[3]++;\n\t\t}\n\t}",
"{\n\t\tString temp = sc.next();\n\t\tif (temp.equals(\"AC\")) {\n\t\t\tkosuu[0]++;\n\t\t} else if (temp.equals(\"WA\")) {\n\t\t\tkosuu[1]++;\n\t\t} else if (temp.equals(\"TLE\")) {\n\t\t\tkosuu[2]++;\n\t\t} else {\n\t\t\tkosuu[3]++;\n\t\t}\n\t}",
"String temp = sc.next();",
"temp",
"sc.next()",
"sc.next",
"sc",
"if (temp.equals(\"AC\")) {\n\t\t\tkosuu[0]++;\n\t\t} else if (temp.equals(\"WA\")) {\n\t\t\tkosuu[1]++;\n\t\t} else if (temp.equals(\"TLE\")) {\n\t\t\tkosuu[2]++;\n\t\t} else {\n\t\t\tkosuu[3]++;\n\t\t}",
"temp.equals(\"AC\")",
"temp.equals",
"temp",
"\"AC\"",
"{\n\t\t\tkosuu[0]++;\n\t\t}",
"kosuu[0]++",
"kosuu[0]",
"kosuu",
"0",
"if (temp.equals(\"WA\")) {\n\t\t\tkosuu[1]++;\n\t\t} else if (temp.equals(\"TLE\")) {\n\t\t\tkosuu[2]++;\n\t\t} else {\n\t\t\tkosuu[3]++;\n\t\t}",
"temp.equals(\"WA\")",
"temp.equals",
"temp",
"\"WA\"",
"{\n\t\t\tkosuu[1]++;\n\t\t}",
"kosuu[1]++",
"kosuu[1]",
"kosuu",
"1",
"if (temp.equals(\"TLE\")) {\n\t\t\tkosuu[2]++;\n\t\t} else {\n\t\t\tkosuu[3]++;\n\t\t}",
"temp.equals(\"TLE\")",
"temp.equals",
"temp",
"\"TLE\"",
"{\n\t\t\tkosuu[2]++;\n\t\t}",
"kosuu[2]++",
"kosuu[2]",
"kosuu",
"2",
"{\n\t\t\tkosuu[3]++;\n\t\t}",
"kosuu[3]++",
"kosuu[3]",
"kosuu",
"3",
"System.out.print(\"AC x \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"AC x \"",
"System.out.println(kosuu[0])",
"System.out.println",
"System.out",
"System",
"System.out",
"kosuu[0]",
"kosuu",
"0",
"System.out.print(\"WA x \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"WA x \"",
"System.out.println(kosuu[1])",
"System.out.println",
"System.out",
"System",
"System.out",
"kosuu[1]",
"kosuu",
"1",
"System.out.print(\"TLE x \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"TLE x \"",
"System.out.println(kosuu[2])",
"System.out.println",
"System.out",
"System",
"System.out",
"kosuu[2]",
"kosuu",
"2",
"System.out.print(\"RE x \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"RE x \"",
"System.out.println(kosuu[3])",
"System.out.println",
"System.out",
"System",
"System.out",
"kosuu[3]",
"kosuu",
"3",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args"
]
|
class Main{
public static void main (String[] args) {
java.util.Scanner sc = new java.util.Scanner(System.in);
int N = sc.nextInt();
int kosuu [] = new int [4];
for (int i=0; i<N; i++) {
String temp = sc.next();
if (temp.equals("AC")) {
kosuu[0]++;
} else if (temp.equals("WA")) {
kosuu[1]++;
} else if (temp.equals("TLE")) {
kosuu[2]++;
} else {
kosuu[3]++;
}
}
System.out.print("AC x ");
System.out.println(kosuu[0]);
System.out.print("WA x ");
System.out.println(kosuu[1]);
System.out.print("TLE x ");
System.out.println(kosuu[2]);
System.out.print("RE x ");
System.out.println(kosuu[3]);
sc.close();;
}
}
|
[
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,
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,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
114,
8
],
[
114,
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
],
[
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
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
53,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
53,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
53,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
11,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
11,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
92,
93
],
[
92,
94
],
[
11,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
100,
101
],
[
100,
102
],
[
11,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
108,
109
],
[
108,
110
],
[
9,
111
],
[
111,
112
],
[
0,
113
],
[
113,
114
],
[
113,
115
]
]
| [
"import java.util.*;\nimport java.io.*;\npublic class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\tint a = Integer.parseInt(reader.readLine());\n\tint ac = 0;\n\tint wa = 0;\n\tint tle = 0;\n\tint re = 0;\n\tfor(int i = 0;i<a;i++){\n\t\tString p = reader.readLine();\n\t\tswitch(p){\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}\n\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\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\tint a = Integer.parseInt(reader.readLine());\n\tint ac = 0;\n\tint wa = 0;\n\tint tle = 0;\n\tint re = 0;\n\tfor(int i = 0;i<a;i++){\n\t\tString p = reader.readLine();\n\t\tswitch(p){\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}\n\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\t}\n}",
"Main",
"public static void main(String[] args) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\tint a = Integer.parseInt(reader.readLine());\n\tint ac = 0;\n\tint wa = 0;\n\tint tle = 0;\n\tint re = 0;\n\tfor(int i = 0;i<a;i++){\n\t\tString p = reader.readLine();\n\t\tswitch(p){\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}\n\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\t}",
"main",
"{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\tint a = Integer.parseInt(reader.readLine());\n\tint ac = 0;\n\tint wa = 0;\n\tint tle = 0;\n\tint re = 0;\n\tfor(int i = 0;i<a;i++){\n\t\tString p = reader.readLine();\n\t\tswitch(p){\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}\n\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\t}",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"int a = Integer.parseInt(reader.readLine());",
"a",
"Integer.parseInt(reader.readLine())",
"Integer.parseInt",
"Integer",
"reader.readLine()",
"reader.readLine",
"reader",
"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<a;i++){\n\t\tString p = reader.readLine();\n\t\tswitch(p){\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}\n\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<a",
"i",
"a",
"i++",
"i++",
"i",
"{\n\t\tString p = reader.readLine();\n\t\tswitch(p){\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}\n\t}",
"{\n\t\tString p = reader.readLine();\n\t\tswitch(p){\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}\n\t}",
"String p = reader.readLine();",
"p",
"reader.readLine()",
"reader.readLine",
"reader",
"switch(p){\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}",
"p",
"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\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\tint a = Integer.parseInt(reader.readLine());\n\tint ac = 0;\n\tint wa = 0;\n\tint tle = 0;\n\tint re = 0;\n\tfor(int i = 0;i<a;i++){\n\t\tString p = reader.readLine();\n\t\tswitch(p){\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}\n\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\t}\n}",
"public class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\tint a = Integer.parseInt(reader.readLine());\n\tint ac = 0;\n\tint wa = 0;\n\tint tle = 0;\n\tint re = 0;\n\tfor(int i = 0;i<a;i++){\n\t\tString p = reader.readLine();\n\t\tswitch(p){\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}\n\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\t}\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main{
public static void main(String[] args) throws IOException{
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(reader.readLine());
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
for(int i = 0;i<a;i++){
String p = reader.readLine();
switch(p){
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,
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,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
120,
8
],
[
120,
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
],
[
44,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
58,
63
],
[
63,
64
],
[
64,
65
],
[
44,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
66,
71
],
[
71,
72
],
[
72,
73
],
[
44,
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
],
[
11,
114
],
[
114,
115
],
[
115,
116
],
[
9,
117
],
[
117,
118
],
[
0,
119
],
[
119,
120
],
[
119,
121
]
]
| [
"import java.util.Scanner;\nimport java.util.Arrays;\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 acN = 0;\n int waN = 0;\n int tleN = 0;\n int reN = 0;\n for (int cnt = 0; cnt < n; cnt++) {\n String input = sc.next();\n if (input.equals(\"AC\")) {\n acN++;\n }\n if (input.equals(\"WA\")) {\n waN++;\n }\n if (input.equals(\"TLE\")) {\n tleN++;\n }\n if (input.equals(\"RE\")) {\n reN++;\n }\n }\n\n System.out.println(\"AC x \" + acN);\n System.out.println(\"WA x \" + waN);\n System.out.println(\"TLE x \" + tleN);\n System.out.println(\"RE x \" + reN);\n sc.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Arrays;",
"Arrays",
"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 acN = 0;\n int waN = 0;\n int tleN = 0;\n int reN = 0;\n for (int cnt = 0; cnt < n; cnt++) {\n String input = sc.next();\n if (input.equals(\"AC\")) {\n acN++;\n }\n if (input.equals(\"WA\")) {\n waN++;\n }\n if (input.equals(\"TLE\")) {\n tleN++;\n }\n if (input.equals(\"RE\")) {\n reN++;\n }\n }\n\n System.out.println(\"AC x \" + acN);\n System.out.println(\"WA x \" + waN);\n System.out.println(\"TLE x \" + tleN);\n System.out.println(\"RE x \" + reN);\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 int acN = 0;\n int waN = 0;\n int tleN = 0;\n int reN = 0;\n for (int cnt = 0; cnt < n; cnt++) {\n String input = sc.next();\n if (input.equals(\"AC\")) {\n acN++;\n }\n if (input.equals(\"WA\")) {\n waN++;\n }\n if (input.equals(\"TLE\")) {\n tleN++;\n }\n if (input.equals(\"RE\")) {\n reN++;\n }\n }\n\n System.out.println(\"AC x \" + acN);\n System.out.println(\"WA x \" + waN);\n System.out.println(\"TLE x \" + tleN);\n System.out.println(\"RE x \" + reN);\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int acN = 0;\n int waN = 0;\n int tleN = 0;\n int reN = 0;\n for (int cnt = 0; cnt < n; cnt++) {\n String input = sc.next();\n if (input.equals(\"AC\")) {\n acN++;\n }\n if (input.equals(\"WA\")) {\n waN++;\n }\n if (input.equals(\"TLE\")) {\n tleN++;\n }\n if (input.equals(\"RE\")) {\n reN++;\n }\n }\n\n System.out.println(\"AC x \" + acN);\n System.out.println(\"WA x \" + waN);\n System.out.println(\"TLE x \" + tleN);\n System.out.println(\"RE x \" + reN);\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",
"int acN = 0;",
"acN",
"0",
"int waN = 0;",
"waN",
"0",
"int tleN = 0;",
"tleN",
"0",
"int reN = 0;",
"reN",
"0",
"for (int cnt = 0; cnt < n; cnt++) {\n String input = sc.next();\n if (input.equals(\"AC\")) {\n acN++;\n }\n if (input.equals(\"WA\")) {\n waN++;\n }\n if (input.equals(\"TLE\")) {\n tleN++;\n }\n if (input.equals(\"RE\")) {\n reN++;\n }\n }",
"int cnt = 0;",
"int cnt = 0;",
"cnt",
"0",
"cnt < n",
"cnt",
"n",
"cnt++",
"cnt++",
"cnt",
"{\n String input = sc.next();\n if (input.equals(\"AC\")) {\n acN++;\n }\n if (input.equals(\"WA\")) {\n waN++;\n }\n if (input.equals(\"TLE\")) {\n tleN++;\n }\n if (input.equals(\"RE\")) {\n reN++;\n }\n }",
"{\n String input = sc.next();\n if (input.equals(\"AC\")) {\n acN++;\n }\n if (input.equals(\"WA\")) {\n waN++;\n }\n if (input.equals(\"TLE\")) {\n tleN++;\n }\n if (input.equals(\"RE\")) {\n reN++;\n }\n }",
"String input = sc.next();",
"input",
"sc.next()",
"sc.next",
"sc",
"if (input.equals(\"AC\")) {\n acN++;\n }",
"input.equals(\"AC\")",
"input.equals",
"input",
"\"AC\"",
"{\n acN++;\n }",
"acN++",
"acN",
"if (input.equals(\"WA\")) {\n waN++;\n }",
"input.equals(\"WA\")",
"input.equals",
"input",
"\"WA\"",
"{\n waN++;\n }",
"waN++",
"waN",
"if (input.equals(\"TLE\")) {\n tleN++;\n }",
"input.equals(\"TLE\")",
"input.equals",
"input",
"\"TLE\"",
"{\n tleN++;\n }",
"tleN++",
"tleN",
"if (input.equals(\"RE\")) {\n reN++;\n }",
"input.equals(\"RE\")",
"input.equals",
"input",
"\"RE\"",
"{\n reN++;\n }",
"reN++",
"reN",
"System.out.println(\"AC x \" + acN)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + acN",
"\"AC x \"",
"acN",
"System.out.println(\"WA x \" + waN)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + waN",
"\"WA x \"",
"waN",
"System.out.println(\"TLE x \" + tleN)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + tleN",
"\"TLE x \"",
"tleN",
"System.out.println(\"RE x \" + reN)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + reN",
"\"RE x \"",
"reN",
"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 int acN = 0;\n int waN = 0;\n int tleN = 0;\n int reN = 0;\n for (int cnt = 0; cnt < n; cnt++) {\n String input = sc.next();\n if (input.equals(\"AC\")) {\n acN++;\n }\n if (input.equals(\"WA\")) {\n waN++;\n }\n if (input.equals(\"TLE\")) {\n tleN++;\n }\n if (input.equals(\"RE\")) {\n reN++;\n }\n }\n\n System.out.println(\"AC x \" + acN);\n System.out.println(\"WA x \" + waN);\n System.out.println(\"TLE x \" + tleN);\n System.out.println(\"RE x \" + reN);\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 int acN = 0;\n int waN = 0;\n int tleN = 0;\n int reN = 0;\n for (int cnt = 0; cnt < n; cnt++) {\n String input = sc.next();\n if (input.equals(\"AC\")) {\n acN++;\n }\n if (input.equals(\"WA\")) {\n waN++;\n }\n if (input.equals(\"TLE\")) {\n tleN++;\n }\n if (input.equals(\"RE\")) {\n reN++;\n }\n }\n\n System.out.println(\"AC x \" + acN);\n System.out.println(\"WA x \" + waN);\n System.out.println(\"TLE x \" + tleN);\n System.out.println(\"RE x \" + reN);\n sc.close();\n }\n}",
"Main"
]
| import java.util.Scanner;
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int acN = 0;
int waN = 0;
int tleN = 0;
int reN = 0;
for (int cnt = 0; cnt < n; cnt++) {
String input = sc.next();
if (input.equals("AC")) {
acN++;
}
if (input.equals("WA")) {
waN++;
}
if (input.equals("TLE")) {
tleN++;
}
if (input.equals("RE")) {
reN++;
}
}
System.out.println("AC x " + acN);
System.out.println("WA x " + waN);
System.out.println("TLE x " + tleN);
System.out.println("RE x " + reN);
sc.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
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,
35,
4,
18,
13,
13,
34,
13,
1,
40,
13,
3,
34,
13,
1,
40,
13,
3,
34,
13,
1,
40,
13,
3,
34,
13,
1,
40,
13,
3,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
163,
11
],
[
163,
12
],
[
12,
13
],
[
12,
14
],
[
163,
15
],
[
15,
16
],
[
15,
17
],
[
163,
18
],
[
18,
19
],
[
18,
20
],
[
163,
21
],
[
21,
22
],
[
21,
23
],
[
163,
24
],
[
24,
25
],
[
24,
26
],
[
163,
27
],
[
27,
28
],
[
27,
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
],
[
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
],
[
62,
65
],
[
29,
66
],
[
66,
67
],
[
66,
68
],
[
29,
69
],
[
69,
70
],
[
69,
71
],
[
29,
72
],
[
72,
73
],
[
72,
74
],
[
29,
75
],
[
75,
76
],
[
75,
77
],
[
29,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
78,
89
],
[
90,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
91,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
91,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
91,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
29,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
120,
125
],
[
126,
126
],
[
126,
127
],
[
126,
128
],
[
126,
129
],
[
29,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
130,
135
],
[
136,
136
],
[
136,
137
],
[
136,
138
],
[
136,
139
],
[
29,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
140,
145
],
[
146,
146
],
[
146,
147
],
[
146,
148
],
[
146,
149
],
[
29,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
150,
155
],
[
156,
156
],
[
156,
157
],
[
156,
158
],
[
156,
159
],
[
27,
160
],
[
160,
161
],
[
0,
162
],
[
162,
163
],
[
162,
164
]
]
| [
"import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\n/**\n * @author mihira\n *\n */\npublic class Main {\n \n static final String keyAc = \"AC\";\n \n static final String keyWa = \"WA\";\n \n static final String keyTle = \"TLE\";\n\n static final String keyRe = \"RE\";\n \n static final String cntLiteral = \" x \";\n \n \n public static void main(String[] args) {\n \n // 入力された値を受け取る\n Scanner scanner = new Scanner(System.in);\n \n List<String> list = new ArrayList<>();\n \n int cntNum = Integer.parseInt(scanner.nextLine());\n \n for (int i = 0; i < cntNum ; i++) {\n String getData = scanner.nextLine();\n list.add(getData);\n }\n \n // 保持した値をイコールズメソッドで比較\n \n int cntAc = 0;\n \n int cntWa = 0;\n \n int cntTle = 0;\n \n int cntRe = 0;\n \n \n for(int cntupNum = 0; cntupNum< cntNum; cntupNum++){ \n \n switch(list.get(cntupNum)) {\n case keyAc:\n cntAc++;\n break;\n \n case keyWa:\n \n cntWa++;\n break;\n \n case keyTle:\n \n cntTle++;\n break;\n \n case keyRe:\n \n cntRe++;\n break;\n \n \n }\n \n \n \n }\n\n System.out.println(keyAc+cntLiteral+cntAc);\n \n System.out.println(keyWa+cntLiteral+cntWa);\n \n System.out.println(keyTle+cntLiteral+cntTle);\n \n System.out.println(keyRe+cntLiteral+cntRe);\n }\n\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n \n static final String keyAc = \"AC\";\n \n static final String keyWa = \"WA\";\n \n static final String keyTle = \"TLE\";\n\n static final String keyRe = \"RE\";\n \n static final String cntLiteral = \" x \";\n \n \n public static void main(String[] args) {\n \n // 入力された値を受け取る\n Scanner scanner = new Scanner(System.in);\n \n List<String> list = new ArrayList<>();\n \n int cntNum = Integer.parseInt(scanner.nextLine());\n \n for (int i = 0; i < cntNum ; i++) {\n String getData = scanner.nextLine();\n list.add(getData);\n }\n \n // 保持した値をイコールズメソッドで比較\n \n int cntAc = 0;\n \n int cntWa = 0;\n \n int cntTle = 0;\n \n int cntRe = 0;\n \n \n for(int cntupNum = 0; cntupNum< cntNum; cntupNum++){ \n \n switch(list.get(cntupNum)) {\n case keyAc:\n cntAc++;\n break;\n \n case keyWa:\n \n cntWa++;\n break;\n \n case keyTle:\n \n cntTle++;\n break;\n \n case keyRe:\n \n cntRe++;\n break;\n \n \n }\n \n \n \n }\n\n System.out.println(keyAc+cntLiteral+cntAc);\n \n System.out.println(keyWa+cntLiteral+cntWa);\n \n System.out.println(keyTle+cntLiteral+cntTle);\n \n System.out.println(keyRe+cntLiteral+cntRe);\n }\n\n}",
"Main",
"static final String keyAc = \"AC\";",
"keyAc",
"\"AC\"",
"static final String keyWa = \"WA\";",
"keyWa",
"\"WA\"",
"static final String keyTle = \"TLE\";",
"keyTle",
"\"TLE\"",
"static final String keyRe = \"RE\";",
"keyRe",
"\"RE\"",
"static final String cntLiteral = \" x \";",
"cntLiteral",
"\" x \"",
"public static void main(String[] args) {\n \n // 入力された値を受け取る\n Scanner scanner = new Scanner(System.in);\n \n List<String> list = new ArrayList<>();\n \n int cntNum = Integer.parseInt(scanner.nextLine());\n \n for (int i = 0; i < cntNum ; i++) {\n String getData = scanner.nextLine();\n list.add(getData);\n }\n \n // 保持した値をイコールズメソッドで比較\n \n int cntAc = 0;\n \n int cntWa = 0;\n \n int cntTle = 0;\n \n int cntRe = 0;\n \n \n for(int cntupNum = 0; cntupNum< cntNum; cntupNum++){ \n \n switch(list.get(cntupNum)) {\n case keyAc:\n cntAc++;\n break;\n \n case keyWa:\n \n cntWa++;\n break;\n \n case keyTle:\n \n cntTle++;\n break;\n \n case keyRe:\n \n cntRe++;\n break;\n \n \n }\n \n \n \n }\n\n System.out.println(keyAc+cntLiteral+cntAc);\n \n System.out.println(keyWa+cntLiteral+cntWa);\n \n System.out.println(keyTle+cntLiteral+cntTle);\n \n System.out.println(keyRe+cntLiteral+cntRe);\n }",
"main",
"{\n \n // 入力された値を受け取る\n Scanner scanner = new Scanner(System.in);\n \n List<String> list = new ArrayList<>();\n \n int cntNum = Integer.parseInt(scanner.nextLine());\n \n for (int i = 0; i < cntNum ; i++) {\n String getData = scanner.nextLine();\n list.add(getData);\n }\n \n // 保持した値をイコールズメソッドで比較\n \n int cntAc = 0;\n \n int cntWa = 0;\n \n int cntTle = 0;\n \n int cntRe = 0;\n \n \n for(int cntupNum = 0; cntupNum< cntNum; cntupNum++){ \n \n switch(list.get(cntupNum)) {\n case keyAc:\n cntAc++;\n break;\n \n case keyWa:\n \n cntWa++;\n break;\n \n case keyTle:\n \n cntTle++;\n break;\n \n case keyRe:\n \n cntRe++;\n break;\n \n \n }\n \n \n \n }\n\n System.out.println(keyAc+cntLiteral+cntAc);\n \n System.out.println(keyWa+cntLiteral+cntWa);\n \n System.out.println(keyTle+cntLiteral+cntTle);\n \n System.out.println(keyRe+cntLiteral+cntRe);\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"List<String> list = new ArrayList<>();",
"list",
"new ArrayList<>()",
"int cntNum = Integer.parseInt(scanner.nextLine());",
"cntNum",
"Integer.parseInt(scanner.nextLine())",
"Integer.parseInt",
"Integer",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"for (int i = 0; i < cntNum ; i++) {\n String getData = scanner.nextLine();\n list.add(getData);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < cntNum",
"i",
"cntNum",
"i++",
"i++",
"i",
"{\n String getData = scanner.nextLine();\n list.add(getData);\n }",
"{\n String getData = scanner.nextLine();\n list.add(getData);\n }",
"String getData = scanner.nextLine();",
"getData",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"list.add(getData)",
"list.add",
"list",
"getData",
"int cntAc = 0;",
"cntAc",
"0",
"int cntWa = 0;",
"cntWa",
"0",
"int cntTle = 0;",
"cntTle",
"0",
"int cntRe = 0;",
"cntRe",
"0",
"for(int cntupNum = 0; cntupNum< cntNum; cntupNum++){ \n \n switch(list.get(cntupNum)) {\n case keyAc:\n cntAc++;\n break;\n \n case keyWa:\n \n cntWa++;\n break;\n \n case keyTle:\n \n cntTle++;\n break;\n \n case keyRe:\n \n cntRe++;\n break;\n \n \n }\n \n \n \n }",
"int cntupNum = 0;",
"int cntupNum = 0;",
"cntupNum",
"0",
"cntupNum< cntNum",
"cntupNum",
"cntNum",
"cntupNum++",
"cntupNum++",
"cntupNum",
"{ \n \n switch(list.get(cntupNum)) {\n case keyAc:\n cntAc++;\n break;\n \n case keyWa:\n \n cntWa++;\n break;\n \n case keyTle:\n \n cntTle++;\n break;\n \n case keyRe:\n \n cntRe++;\n break;\n \n \n }\n \n \n \n }",
"{ \n \n switch(list.get(cntupNum)) {\n case keyAc:\n cntAc++;\n break;\n \n case keyWa:\n \n cntWa++;\n break;\n \n case keyTle:\n \n cntTle++;\n break;\n \n case keyRe:\n \n cntRe++;\n break;\n \n \n }\n \n \n \n }",
"switch(list.get(cntupNum)) {\n case keyAc:\n cntAc++;\n break;\n \n case keyWa:\n \n cntWa++;\n break;\n \n case keyTle:\n \n cntTle++;\n break;\n \n case keyRe:\n \n cntRe++;\n break;\n \n \n }",
"list.get(cntupNum)",
"list.get",
"list",
"cntupNum",
"case keyAc:",
"keyAc",
"case keyAc:",
"cntAc++",
"cntAc",
"break;",
"case keyWa:",
"keyWa",
"case keyWa:",
"cntWa++",
"cntWa",
"break;",
"case keyTle:",
"keyTle",
"case keyTle:",
"cntTle++",
"cntTle",
"break;",
"case keyRe:",
"keyRe",
"case keyRe:",
"cntRe++",
"cntRe",
"break;",
"System.out.println(keyAc+cntLiteral+cntAc)",
"System.out.println",
"System.out",
"System",
"System.out",
"keyAc+cntLiteral+cntAc",
"keyAc+cntLiteral+cntAc",
"keyAc",
"cntLiteral",
"cntAc",
"System.out.println(keyWa+cntLiteral+cntWa)",
"System.out.println",
"System.out",
"System",
"System.out",
"keyWa+cntLiteral+cntWa",
"keyWa+cntLiteral+cntWa",
"keyWa",
"cntLiteral",
"cntWa",
"System.out.println(keyTle+cntLiteral+cntTle)",
"System.out.println",
"System.out",
"System",
"System.out",
"keyTle+cntLiteral+cntTle",
"keyTle+cntLiteral+cntTle",
"keyTle",
"cntLiteral",
"cntTle",
"System.out.println(keyRe+cntLiteral+cntRe)",
"System.out.println",
"System.out",
"System",
"System.out",
"keyRe+cntLiteral+cntRe",
"keyRe+cntLiteral+cntRe",
"keyRe",
"cntLiteral",
"cntRe",
"String[] args",
"args",
"public class Main {\n \n static final String keyAc = \"AC\";\n \n static final String keyWa = \"WA\";\n \n static final String keyTle = \"TLE\";\n\n static final String keyRe = \"RE\";\n \n static final String cntLiteral = \" x \";\n \n \n public static void main(String[] args) {\n \n // 入力された値を受け取る\n Scanner scanner = new Scanner(System.in);\n \n List<String> list = new ArrayList<>();\n \n int cntNum = Integer.parseInt(scanner.nextLine());\n \n for (int i = 0; i < cntNum ; i++) {\n String getData = scanner.nextLine();\n list.add(getData);\n }\n \n // 保持した値をイコールズメソッドで比較\n \n int cntAc = 0;\n \n int cntWa = 0;\n \n int cntTle = 0;\n \n int cntRe = 0;\n \n \n for(int cntupNum = 0; cntupNum< cntNum; cntupNum++){ \n \n switch(list.get(cntupNum)) {\n case keyAc:\n cntAc++;\n break;\n \n case keyWa:\n \n cntWa++;\n break;\n \n case keyTle:\n \n cntTle++;\n break;\n \n case keyRe:\n \n cntRe++;\n break;\n \n \n }\n \n \n \n }\n\n System.out.println(keyAc+cntLiteral+cntAc);\n \n System.out.println(keyWa+cntLiteral+cntWa);\n \n System.out.println(keyTle+cntLiteral+cntTle);\n \n System.out.println(keyRe+cntLiteral+cntRe);\n }\n\n}",
"public class Main {\n \n static final String keyAc = \"AC\";\n \n static final String keyWa = \"WA\";\n \n static final String keyTle = \"TLE\";\n\n static final String keyRe = \"RE\";\n \n static final String cntLiteral = \" x \";\n \n \n public static void main(String[] args) {\n \n // 入力された値を受け取る\n Scanner scanner = new Scanner(System.in);\n \n List<String> list = new ArrayList<>();\n \n int cntNum = Integer.parseInt(scanner.nextLine());\n \n for (int i = 0; i < cntNum ; i++) {\n String getData = scanner.nextLine();\n list.add(getData);\n }\n \n // 保持した値をイコールズメソッドで比較\n \n int cntAc = 0;\n \n int cntWa = 0;\n \n int cntTle = 0;\n \n int cntRe = 0;\n \n \n for(int cntupNum = 0; cntupNum< cntNum; cntupNum++){ \n \n switch(list.get(cntupNum)) {\n case keyAc:\n cntAc++;\n break;\n \n case keyWa:\n \n cntWa++;\n break;\n \n case keyTle:\n \n cntTle++;\n break;\n \n case keyRe:\n \n cntRe++;\n break;\n \n \n }\n \n \n \n }\n\n System.out.println(keyAc+cntLiteral+cntAc);\n \n System.out.println(keyWa+cntLiteral+cntWa);\n \n System.out.println(keyTle+cntLiteral+cntTle);\n \n System.out.println(keyRe+cntLiteral+cntRe);\n }\n\n}",
"Main"
]
| import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
/**
* @author mihira
*
*/
public class Main {
static final String keyAc = "AC";
static final String keyWa = "WA";
static final String keyTle = "TLE";
static final String keyRe = "RE";
static final String cntLiteral = " x ";
public static void main(String[] args) {
// 入力された値を受け取る
Scanner scanner = new Scanner(System.in);
List<String> list = new ArrayList<>();
int cntNum = Integer.parseInt(scanner.nextLine());
for (int i = 0; i < cntNum ; i++) {
String getData = scanner.nextLine();
list.add(getData);
}
// 保持した値をイコールズメソッドで比較
int cntAc = 0;
int cntWa = 0;
int cntTle = 0;
int cntRe = 0;
for(int cntupNum = 0; cntupNum< cntNum; cntupNum++){
switch(list.get(cntupNum)) {
case keyAc:
cntAc++;
break;
case keyWa:
cntWa++;
break;
case keyTle:
cntTle++;
break;
case keyRe:
cntRe++;
break;
}
}
System.out.println(keyAc+cntLiteral+cntAc);
System.out.println(keyWa+cntLiteral+cntWa);
System.out.println(keyTle+cntLiteral+cntTle);
System.out.println(keyRe+cntLiteral+cntRe);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
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,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
133,
11
],
[
133,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
17,
19
],
[
14,
20
],
[
20,
21
],
[
20,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
14,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
32,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
45,
46
],
[
46,
47
],
[
39,
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
],
[
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
],
[
74,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
82,
87
],
[
87,
88
],
[
88,
89
],
[
82,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
90,
95
],
[
95,
96
],
[
96,
97
],
[
39,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
103,
104
],
[
103,
105
],
[
39,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
39,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
119,
120
],
[
119,
121
],
[
39,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
127,
128
],
[
127,
129
],
[
12,
130
],
[
130,
131
],
[
0,
132
],
[
132,
133
],
[
132,
134
]
]
| [
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint testNum;\n\t\tint judgeAC = 0;\n\t\tint judgeWA = 0;\n\t\tint judgeTLE = 0;\n\t\tint judgeRE = 0;\n\n\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\ttestNum =Integer.parseInt(reader.readLine());\n\n\t\t\tfor (int i = 0; i < testNum; i++) {\n\t\t\t\tString judge = reader.readLine();\n//\t\t\t\tif (judge == \"AC\") {\n//\t\t\t\t\tjudgeAC++;\n//\t\t\t\t}\n\t\t\t\tif (judge.equals(\"AC\")) {\n\t\t\t\t\tjudgeAC++;\n\t\t\t\t}\n\t\t\t\telse if (judge.equals(\"WA\")) {\n\t\t\t\t\tjudgeWA++;\n\t\t\t\t}\n\t\t\t\telse if (judge.equals(\"TLE\")) {\n\t\t\t\t\tjudgeTLE++;\n\t\t\t\t}\n\t\t\t\telse if(judge.equals(\"RE\")) {\n\t\t\t\t\tjudgeRE++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"AC x \"+judgeAC);\n\t\t\tSystem.out.println(\"WA x \"+judgeWA);\n\t\t\tSystem.out.println(\"TLE x \"+judgeTLE);\n\t\t\tSystem.out.println(\"RE x \"+judgeRE);\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t}\n\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) {\n\t\tint testNum;\n\t\tint judgeAC = 0;\n\t\tint judgeWA = 0;\n\t\tint judgeTLE = 0;\n\t\tint judgeRE = 0;\n\n\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\ttestNum =Integer.parseInt(reader.readLine());\n\n\t\t\tfor (int i = 0; i < testNum; i++) {\n\t\t\t\tString judge = reader.readLine();\n//\t\t\t\tif (judge == \"AC\") {\n//\t\t\t\t\tjudgeAC++;\n//\t\t\t\t}\n\t\t\t\tif (judge.equals(\"AC\")) {\n\t\t\t\t\tjudgeAC++;\n\t\t\t\t}\n\t\t\t\telse if (judge.equals(\"WA\")) {\n\t\t\t\t\tjudgeWA++;\n\t\t\t\t}\n\t\t\t\telse if (judge.equals(\"TLE\")) {\n\t\t\t\t\tjudgeTLE++;\n\t\t\t\t}\n\t\t\t\telse if(judge.equals(\"RE\")) {\n\t\t\t\t\tjudgeRE++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"AC x \"+judgeAC);\n\t\t\tSystem.out.println(\"WA x \"+judgeWA);\n\t\t\tSystem.out.println(\"TLE x \"+judgeTLE);\n\t\t\tSystem.out.println(\"RE x \"+judgeRE);\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tint testNum;\n\t\tint judgeAC = 0;\n\t\tint judgeWA = 0;\n\t\tint judgeTLE = 0;\n\t\tint judgeRE = 0;\n\n\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\ttestNum =Integer.parseInt(reader.readLine());\n\n\t\t\tfor (int i = 0; i < testNum; i++) {\n\t\t\t\tString judge = reader.readLine();\n//\t\t\t\tif (judge == \"AC\") {\n//\t\t\t\t\tjudgeAC++;\n//\t\t\t\t}\n\t\t\t\tif (judge.equals(\"AC\")) {\n\t\t\t\t\tjudgeAC++;\n\t\t\t\t}\n\t\t\t\telse if (judge.equals(\"WA\")) {\n\t\t\t\t\tjudgeWA++;\n\t\t\t\t}\n\t\t\t\telse if (judge.equals(\"TLE\")) {\n\t\t\t\t\tjudgeTLE++;\n\t\t\t\t}\n\t\t\t\telse if(judge.equals(\"RE\")) {\n\t\t\t\t\tjudgeRE++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"AC x \"+judgeAC);\n\t\t\tSystem.out.println(\"WA x \"+judgeWA);\n\t\t\tSystem.out.println(\"TLE x \"+judgeTLE);\n\t\t\tSystem.out.println(\"RE x \"+judgeRE);\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"main",
"{\n\t\tint testNum;\n\t\tint judgeAC = 0;\n\t\tint judgeWA = 0;\n\t\tint judgeTLE = 0;\n\t\tint judgeRE = 0;\n\n\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\ttestNum =Integer.parseInt(reader.readLine());\n\n\t\t\tfor (int i = 0; i < testNum; i++) {\n\t\t\t\tString judge = reader.readLine();\n//\t\t\t\tif (judge == \"AC\") {\n//\t\t\t\t\tjudgeAC++;\n//\t\t\t\t}\n\t\t\t\tif (judge.equals(\"AC\")) {\n\t\t\t\t\tjudgeAC++;\n\t\t\t\t}\n\t\t\t\telse if (judge.equals(\"WA\")) {\n\t\t\t\t\tjudgeWA++;\n\t\t\t\t}\n\t\t\t\telse if (judge.equals(\"TLE\")) {\n\t\t\t\t\tjudgeTLE++;\n\t\t\t\t}\n\t\t\t\telse if(judge.equals(\"RE\")) {\n\t\t\t\t\tjudgeRE++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"AC x \"+judgeAC);\n\t\t\tSystem.out.println(\"WA x \"+judgeWA);\n\t\t\tSystem.out.println(\"TLE x \"+judgeTLE);\n\t\t\tSystem.out.println(\"RE x \"+judgeRE);\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"int testNum;",
"testNum",
"int judgeAC = 0;",
"judgeAC",
"0",
"int judgeWA = 0;",
"judgeWA",
"0",
"int judgeTLE = 0;",
"judgeTLE",
"0",
"int judgeRE = 0;",
"judgeRE",
"0",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"try {\n\t\t\ttestNum =Integer.parseInt(reader.readLine());\n\n\t\t\tfor (int i = 0; i < testNum; i++) {\n\t\t\t\tString judge = reader.readLine();\n//\t\t\t\tif (judge == \"AC\") {\n//\t\t\t\t\tjudgeAC++;\n//\t\t\t\t}\n\t\t\t\tif (judge.equals(\"AC\")) {\n\t\t\t\t\tjudgeAC++;\n\t\t\t\t}\n\t\t\t\telse if (judge.equals(\"WA\")) {\n\t\t\t\t\tjudgeWA++;\n\t\t\t\t}\n\t\t\t\telse if (judge.equals(\"TLE\")) {\n\t\t\t\t\tjudgeTLE++;\n\t\t\t\t}\n\t\t\t\telse if(judge.equals(\"RE\")) {\n\t\t\t\t\tjudgeRE++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"AC x \"+judgeAC);\n\t\t\tSystem.out.println(\"WA x \"+judgeWA);\n\t\t\tSystem.out.println(\"TLE x \"+judgeTLE);\n\t\t\tSystem.out.println(\"RE x \"+judgeRE);\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t}",
"catch (IOException e) {\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t}",
"IOException e",
"{\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\ttestNum =Integer.parseInt(reader.readLine());\n\n\t\t\tfor (int i = 0; i < testNum; i++) {\n\t\t\t\tString judge = reader.readLine();\n//\t\t\t\tif (judge == \"AC\") {\n//\t\t\t\t\tjudgeAC++;\n//\t\t\t\t}\n\t\t\t\tif (judge.equals(\"AC\")) {\n\t\t\t\t\tjudgeAC++;\n\t\t\t\t}\n\t\t\t\telse if (judge.equals(\"WA\")) {\n\t\t\t\t\tjudgeWA++;\n\t\t\t\t}\n\t\t\t\telse if (judge.equals(\"TLE\")) {\n\t\t\t\t\tjudgeTLE++;\n\t\t\t\t}\n\t\t\t\telse if(judge.equals(\"RE\")) {\n\t\t\t\t\tjudgeRE++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"AC x \"+judgeAC);\n\t\t\tSystem.out.println(\"WA x \"+judgeWA);\n\t\t\tSystem.out.println(\"TLE x \"+judgeTLE);\n\t\t\tSystem.out.println(\"RE x \"+judgeRE);\n\n\t\t}",
"testNum =Integer.parseInt(reader.readLine())",
"testNum",
"Integer.parseInt(reader.readLine())",
"Integer.parseInt",
"Integer",
"reader.readLine()",
"reader.readLine",
"reader",
"for (int i = 0; i < testNum; i++) {\n\t\t\t\tString judge = reader.readLine();\n//\t\t\t\tif (judge == \"AC\") {\n//\t\t\t\t\tjudgeAC++;\n//\t\t\t\t}\n\t\t\t\tif (judge.equals(\"AC\")) {\n\t\t\t\t\tjudgeAC++;\n\t\t\t\t}\n\t\t\t\telse if (judge.equals(\"WA\")) {\n\t\t\t\t\tjudgeWA++;\n\t\t\t\t}\n\t\t\t\telse if (judge.equals(\"TLE\")) {\n\t\t\t\t\tjudgeTLE++;\n\t\t\t\t}\n\t\t\t\telse if(judge.equals(\"RE\")) {\n\t\t\t\t\tjudgeRE++;\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < testNum",
"i",
"testNum",
"i++",
"i++",
"i",
"{\n\t\t\t\tString judge = reader.readLine();\n//\t\t\t\tif (judge == \"AC\") {\n//\t\t\t\t\tjudgeAC++;\n//\t\t\t\t}\n\t\t\t\tif (judge.equals(\"AC\")) {\n\t\t\t\t\tjudgeAC++;\n\t\t\t\t}\n\t\t\t\telse if (judge.equals(\"WA\")) {\n\t\t\t\t\tjudgeWA++;\n\t\t\t\t}\n\t\t\t\telse if (judge.equals(\"TLE\")) {\n\t\t\t\t\tjudgeTLE++;\n\t\t\t\t}\n\t\t\t\telse if(judge.equals(\"RE\")) {\n\t\t\t\t\tjudgeRE++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tString judge = reader.readLine();\n//\t\t\t\tif (judge == \"AC\") {\n//\t\t\t\t\tjudgeAC++;\n//\t\t\t\t}\n\t\t\t\tif (judge.equals(\"AC\")) {\n\t\t\t\t\tjudgeAC++;\n\t\t\t\t}\n\t\t\t\telse if (judge.equals(\"WA\")) {\n\t\t\t\t\tjudgeWA++;\n\t\t\t\t}\n\t\t\t\telse if (judge.equals(\"TLE\")) {\n\t\t\t\t\tjudgeTLE++;\n\t\t\t\t}\n\t\t\t\telse if(judge.equals(\"RE\")) {\n\t\t\t\t\tjudgeRE++;\n\t\t\t\t}\n\t\t\t}",
"String judge = reader.readLine();",
"judge",
"reader.readLine()",
"reader.readLine",
"reader",
"if (judge.equals(\"AC\")) {\n\t\t\t\t\tjudgeAC++;\n\t\t\t\t}\n\t\t\t\telse if (judge.equals(\"WA\")) {\n\t\t\t\t\tjudgeWA++;\n\t\t\t\t}\n\t\t\t\telse if (judge.equals(\"TLE\")) {\n\t\t\t\t\tjudgeTLE++;\n\t\t\t\t}\n\t\t\t\telse if(judge.equals(\"RE\")) {\n\t\t\t\t\tjudgeRE++;\n\t\t\t\t}",
"judge.equals(\"AC\")",
"judge.equals",
"judge",
"\"AC\"",
"{\n\t\t\t\t\tjudgeAC++;\n\t\t\t\t}",
"judgeAC++",
"judgeAC",
"if (judge.equals(\"WA\")) {\n\t\t\t\t\tjudgeWA++;\n\t\t\t\t}\n\t\t\t\telse if (judge.equals(\"TLE\")) {\n\t\t\t\t\tjudgeTLE++;\n\t\t\t\t}\n\t\t\t\telse if(judge.equals(\"RE\")) {\n\t\t\t\t\tjudgeRE++;\n\t\t\t\t}",
"judge.equals(\"WA\")",
"judge.equals",
"judge",
"\"WA\"",
"{\n\t\t\t\t\tjudgeWA++;\n\t\t\t\t}",
"judgeWA++",
"judgeWA",
"if (judge.equals(\"TLE\")) {\n\t\t\t\t\tjudgeTLE++;\n\t\t\t\t}\n\t\t\t\telse if(judge.equals(\"RE\")) {\n\t\t\t\t\tjudgeRE++;\n\t\t\t\t}",
"judge.equals(\"TLE\")",
"judge.equals",
"judge",
"\"TLE\"",
"{\n\t\t\t\t\tjudgeTLE++;\n\t\t\t\t}",
"judgeTLE++",
"judgeTLE",
"if(judge.equals(\"RE\")) {\n\t\t\t\t\tjudgeRE++;\n\t\t\t\t}",
"judge.equals(\"RE\")",
"judge.equals",
"judge",
"\"RE\"",
"{\n\t\t\t\t\tjudgeRE++;\n\t\t\t\t}",
"judgeRE++",
"judgeRE",
"System.out.println(\"AC x \"+judgeAC)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \"+judgeAC",
"\"AC x \"",
"judgeAC",
"System.out.println(\"WA x \"+judgeWA)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \"+judgeWA",
"\"WA x \"",
"judgeWA",
"System.out.println(\"TLE x \"+judgeTLE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \"+judgeTLE",
"\"TLE x \"",
"judgeTLE",
"System.out.println(\"RE x \"+judgeRE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \"+judgeRE",
"\"RE x \"",
"judgeRE",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint testNum;\n\t\tint judgeAC = 0;\n\t\tint judgeWA = 0;\n\t\tint judgeTLE = 0;\n\t\tint judgeRE = 0;\n\n\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\ttestNum =Integer.parseInt(reader.readLine());\n\n\t\t\tfor (int i = 0; i < testNum; i++) {\n\t\t\t\tString judge = reader.readLine();\n//\t\t\t\tif (judge == \"AC\") {\n//\t\t\t\t\tjudgeAC++;\n//\t\t\t\t}\n\t\t\t\tif (judge.equals(\"AC\")) {\n\t\t\t\t\tjudgeAC++;\n\t\t\t\t}\n\t\t\t\telse if (judge.equals(\"WA\")) {\n\t\t\t\t\tjudgeWA++;\n\t\t\t\t}\n\t\t\t\telse if (judge.equals(\"TLE\")) {\n\t\t\t\t\tjudgeTLE++;\n\t\t\t\t}\n\t\t\t\telse if(judge.equals(\"RE\")) {\n\t\t\t\t\tjudgeRE++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"AC x \"+judgeAC);\n\t\t\tSystem.out.println(\"WA x \"+judgeWA);\n\t\t\tSystem.out.println(\"TLE x \"+judgeTLE);\n\t\t\tSystem.out.println(\"RE x \"+judgeRE);\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint testNum;\n\t\tint judgeAC = 0;\n\t\tint judgeWA = 0;\n\t\tint judgeTLE = 0;\n\t\tint judgeRE = 0;\n\n\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\ttestNum =Integer.parseInt(reader.readLine());\n\n\t\t\tfor (int i = 0; i < testNum; i++) {\n\t\t\t\tString judge = reader.readLine();\n//\t\t\t\tif (judge == \"AC\") {\n//\t\t\t\t\tjudgeAC++;\n//\t\t\t\t}\n\t\t\t\tif (judge.equals(\"AC\")) {\n\t\t\t\t\tjudgeAC++;\n\t\t\t\t}\n\t\t\t\telse if (judge.equals(\"WA\")) {\n\t\t\t\t\tjudgeWA++;\n\t\t\t\t}\n\t\t\t\telse if (judge.equals(\"TLE\")) {\n\t\t\t\t\tjudgeTLE++;\n\t\t\t\t}\n\t\t\t\telse if(judge.equals(\"RE\")) {\n\t\t\t\t\tjudgeRE++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"AC x \"+judgeAC);\n\t\t\tSystem.out.println(\"WA x \"+judgeWA);\n\t\t\tSystem.out.println(\"TLE x \"+judgeTLE);\n\t\t\tSystem.out.println(\"RE x \"+judgeRE);\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t}\n\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) {
int testNum;
int judgeAC = 0;
int judgeWA = 0;
int judgeTLE = 0;
int judgeRE = 0;
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
try {
testNum =Integer.parseInt(reader.readLine());
for (int i = 0; i < testNum; i++) {
String judge = reader.readLine();
// if (judge == "AC") {
// judgeAC++;
// }
if (judge.equals("AC")) {
judgeAC++;
}
else if (judge.equals("WA")) {
judgeWA++;
}
else if (judge.equals("TLE")) {
judgeTLE++;
}
else if(judge.equals("RE")) {
judgeRE++;
}
}
System.out.println("AC x "+judgeAC);
System.out.println("WA x "+judgeWA);
System.out.println("TLE x "+judgeTLE);
System.out.println("RE x "+judgeRE);
} catch (IOException e) {
// TODO 自動生成された catch ブロック
e.printStackTrace();
}
}
}
|
[
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,
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,
42,
2,
40,
13,
17,
30,
4,
18,
13,
4,
18,
13,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
0,
18,
36,
13,
20,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
13,
17,
30,
4,
18,
13,
17,
4,
18,
13,
18,
13,
13,
23,
13,
12,
13,
30,
4,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
4,
18,
13,
6,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
13,
17,
40,
13,
4,
18,
13,
13,
13,
29,
13,
23,
13,
12,
13,
30,
29,
2,
2,
17,
13,
17,
12,
13,
30,
29,
4,
18,
13,
13,
17,
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,
30,
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,
30,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
30,
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,
30,
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,
30,
0,
13,
4,
13,
41,
13,
20,
42,
40,
4,
13,
13,
30,
14,
4,
18,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
4,
18,
13,
13,
29,
4,
13,
13,
23,
13,
12,
13,
30,
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
],
[
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
],
[
495,
41
],
[
495,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
44,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
44,
55
],
[
55,
56
],
[
55,
57
],
[
44,
58
],
[
58,
59
],
[
58,
60
],
[
44,
61
],
[
61,
62
],
[
61,
63
],
[
44,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
64,
68
],
[
64,
69
],
[
44,
70
],
[
70,
71
],
[
71,
72
],
[
42,
73
],
[
73,
74
],
[
495,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
79,
85
],
[
85,
86
],
[
85,
87
],
[
79,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
88,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
97,
98
],
[
98,
99
],
[
79,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
100,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
79,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
108,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
79,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
116,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
79,
124
],
[
124,
125
],
[
125,
126
],
[
124,
127
],
[
124,
128
],
[
128,
129
],
[
129,
130
],
[
128,
131
],
[
77,
132
],
[
132,
133
],
[
77,
134
],
[
134,
135
],
[
77,
136
],
[
136,
137
],
[
495,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
138,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
142,
148
],
[
148,
149
],
[
138,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
153,
157
],
[
150,
158
],
[
158,
159
],
[
138,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
163,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
170,
172
],
[
163,
173
],
[
173,
174
],
[
174,
175
],
[
163,
176
],
[
177,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
178,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
183,
186
],
[
177,
187
],
[
187,
188
],
[
188,
189
],
[
187,
190
],
[
190,
191
],
[
190,
192
],
[
160,
193
],
[
193,
194
],
[
138,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
197,
201
],
[
201,
202
],
[
202,
203
],
[
195,
204
],
[
204,
205
],
[
138,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
495,
212
],
[
212,
213
],
[
212,
214
],
[
214,
215
],
[
212,
216
],
[
216,
217
],
[
216,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
212,
222
],
[
222,
223
],
[
222,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
227,
228
],
[
228,
229
],
[
227,
230
],
[
227,
231
],
[
224,
232
],
[
232,
233
],
[
224,
234
],
[
234,
235
],
[
235,
236
],
[
234,
237
],
[
234,
238
],
[
224,
239
],
[
239,
240
],
[
222,
241
],
[
241,
242
],
[
212,
243
],
[
243,
244
],
[
243,
245
],
[
245,
246
],
[
246,
247
],
[
248,
248
],
[
248,
249
],
[
248,
250
],
[
248,
251
],
[
212,
252
],
[
252,
253
],
[
252,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
257,
258
],
[
256,
259
],
[
256,
260
],
[
252,
261
],
[
261,
262
],
[
495,
263
],
[
263,
264
],
[
263,
265
],
[
265,
266
],
[
263,
267
],
[
267,
268
],
[
267,
269
],
[
263,
271
],
[
271,
272
],
[
263,
273
],
[
273,
274
],
[
263,
275
],
[
275,
276
],
[
263,
277
],
[
277,
278
],
[
277,
279
],
[
279,
280
],
[
280,
281
],
[
281,
282
],
[
281,
283
],
[
280,
284
],
[
277,
285
],
[
285,
286
],
[
263,
287
],
[
287,
288
],
[
287,
289
],
[
289,
290
],
[
290,
291
],
[
291,
292
],
[
291,
293
],
[
293,
294
],
[
290,
295
],
[
295,
296
],
[
296,
297
],
[
289,
298
],
[
298,
299
],
[
299,
300
],
[
299,
301
],
[
298,
302
],
[
302,
303
],
[
303,
304
],
[
303,
305
],
[
302,
306
],
[
306,
307
],
[
307,
308
],
[
307,
309
],
[
309,
310
],
[
310,
311
],
[
306,
312
],
[
312,
313
],
[
313,
314
],
[
313,
315
],
[
315,
316
],
[
316,
317
],
[
315,
318
],
[
302,
319
],
[
319,
320
],
[
320,
321
],
[
320,
322
],
[
319,
323
],
[
323,
324
],
[
324,
325
],
[
325,
326
],
[
289,
327
],
[
327,
328
],
[
328,
329
],
[
328,
330
],
[
330,
331
],
[
263,
332
],
[
332,
333
],
[
332,
334
],
[
334,
335
],
[
335,
336
],
[
335,
337
],
[
337,
338
],
[
334,
339
],
[
339,
340
],
[
340,
341
],
[
340,
342
],
[
339,
343
],
[
343,
344
],
[
344,
345
],
[
344,
346
],
[
346,
347
],
[
334,
348
],
[
348,
349
],
[
348,
350
],
[
334,
351
],
[
351,
352
],
[
352,
353
],
[
352,
354
],
[
351,
355
],
[
355,
356
],
[
356,
357
],
[
356,
358
],
[
358,
359
],
[
355,
360
],
[
360,
361
],
[
360,
362
],
[
362,
363
],
[
334,
364
],
[
364,
365
],
[
364,
366
],
[
334,
367
],
[
367,
368
],
[
368,
369
],
[
369,
370
],
[
369,
371
],
[
367,
372
],
[
372,
373
],
[
373,
374
],
[
374,
375
],
[
375,
376
],
[
375,
377
],
[
374,
378
],
[
378,
379
],
[
378,
380
],
[
373,
381
],
[
381,
382
],
[
382,
383
],
[
372,
384
],
[
384,
385
],
[
384,
386
],
[
372,
387
],
[
387,
388
],
[
387,
389
],
[
389,
390
],
[
389,
391
],
[
372,
392
],
[
392,
393
],
[
392,
394
],
[
394,
395
],
[
334,
396
],
[
396,
397
],
[
397,
398
],
[
397,
399
],
[
263,
400
],
[
400,
401
],
[
400,
402
],
[
402,
403
],
[
403,
404
],
[
403,
405
],
[
405,
406
],
[
402,
407
],
[
407,
408
],
[
408,
409
],
[
408,
410
],
[
407,
411
],
[
411,
412
],
[
412,
413
],
[
412,
414
],
[
414,
415
],
[
402,
416
],
[
416,
417
],
[
416,
418
],
[
402,
419
],
[
419,
420
],
[
420,
421
],
[
421,
422
],
[
421,
423
],
[
419,
424
],
[
424,
425
],
[
425,
426
],
[
426,
427
],
[
427,
428
],
[
426,
429
],
[
425,
430
],
[
430,
431
],
[
431,
432
],
[
432,
433
],
[
431,
434
],
[
424,
435
],
[
435,
436
],
[
435,
437
],
[
437,
438
],
[
402,
439
],
[
439,
440
],
[
440,
441
],
[
441,
442
],
[
263,
443
],
[
443,
444
],
[
443,
445
],
[
445,
446
],
[
446,
447
],
[
447,
448
],
[
447,
449
],
[
446,
450
],
[
450,
451
],
[
451,
452
],
[
452,
453
],
[
453,
454
],
[
452,
455
],
[
445,
456
],
[
456,
457
],
[
457,
458
],
[
457,
459
],
[
443,
460
],
[
460,
461
],
[
263,
462
],
[
462,
463
],
[
462,
464
],
[
464,
465
],
[
465,
466
],
[
469,
467
],
[
479,
468
],
[
476,
469
],
[
469,
470
],
[
470,
471
],
[
470,
472
],
[
469,
473
],
[
473,
474
],
[
473,
475
],
[
476,
476
],
[
476,
477
],
[
476,
478
],
[
479,
479
],
[
479,
480
],
[
479,
481
],
[
469,
482
],
[
482,
483
],
[
482,
484
],
[
484,
485
],
[
462,
486
],
[
486,
487
],
[
263,
488
],
[
488,
489
],
[
488,
490
],
[
490,
491
],
[
490,
492
],
[
492,
493
],
[
0,
494
],
[
494,
495
],
[
494,
496
]
]
| [
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.OutputStream;\nimport java.io.PrintWriter;\nimport java.io.BufferedWriter;\nimport java.util.InputMismatchException;\nimport java.util.HashMap;\nimport java.io.IOException;\nimport java.util.Map;\nimport java.io.Writer;\nimport java.io.OutputStreamWriter;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author New User\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 OutputWriter out = new OutputWriter(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, InputReader c, OutputWriter w) {\n int n = c.readInt();\n Counter<String> cn = new Counter<>();\n while (n-- > 0) {\n cn.add(c.readString());\n }\n w.printLine(\"AC x\", cn.get(\"AC\"));\n w.printLine(\"WA x\", cn.get(\"WA\"));\n w.printLine(\"TLE x\", cn.get(\"TLE\"));\n w.printLine(\"RE x\", cn.get(\"RE\"));\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }\n\n public void printLine(Object... objects) {\n print(objects);\n writer.println();\n }\n\n public void close() {\n writer.close();\n }\n\n }\n\n static class Counter<K> {\n public Map<K, Long> map;\n\n public Counter() {\n map = new HashMap<>();\n }\n\n public long add(K key) {\n long count = map.getOrDefault(key, 0L);\n ++count;\n map.put(key, count);\n return count;\n }\n\n public String toString() {\n return \"Counter{\" +\n map +\n '}';\n }\n\n public long get(K key) {\n return map.getOrDefault(key, 0L);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\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) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int readInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\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') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int 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.OutputStream;",
"OutputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.io.BufferedWriter;",
"BufferedWriter",
"java.io",
"import java.util.InputMismatchException;",
"InputMismatchException",
"java.util",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.Map;",
"Map",
"java.util",
"import java.io.Writer;",
"Writer",
"java.io",
"import java.io.OutputStreamWriter;",
"OutputStreamWriter",
"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 OutputWriter out = new OutputWriter(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, InputReader c, OutputWriter w) {\n int n = c.readInt();\n Counter<String> cn = new Counter<>();\n while (n-- > 0) {\n cn.add(c.readString());\n }\n w.printLine(\"AC x\", cn.get(\"AC\"));\n w.printLine(\"WA x\", cn.get(\"WA\"));\n w.printLine(\"TLE x\", cn.get(\"TLE\"));\n w.printLine(\"RE x\", cn.get(\"RE\"));\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }\n\n public void printLine(Object... objects) {\n print(objects);\n writer.println();\n }\n\n public void close() {\n writer.close();\n }\n\n }\n\n static class Counter<K> {\n public Map<K, Long> map;\n\n public Counter() {\n map = new HashMap<>();\n }\n\n public long add(K key) {\n long count = map.getOrDefault(key, 0L);\n ++count;\n map.put(key, count);\n return count;\n }\n\n public String toString() {\n return \"Counter{\" +\n map +\n '}';\n }\n\n public long get(K key) {\n return map.getOrDefault(key, 0L);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\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) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int readInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\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') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int 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 InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(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 InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(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",
"InputReader in = new InputReader(inputStream);",
"in",
"new InputReader(inputStream)",
"OutputWriter out = new OutputWriter(outputStream);",
"out",
"new OutputWriter(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, InputReader c, OutputWriter w) {\n int n = c.readInt();\n Counter<String> cn = new Counter<>();\n while (n-- > 0) {\n cn.add(c.readString());\n }\n w.printLine(\"AC x\", cn.get(\"AC\"));\n w.printLine(\"WA x\", cn.get(\"WA\"));\n w.printLine(\"TLE x\", cn.get(\"TLE\"));\n w.printLine(\"RE x\", cn.get(\"RE\"));\n }\n\n }",
"BJudgeStatusSummary",
"public void solve(int testNumber, InputReader c, OutputWriter w) {\n int n = c.readInt();\n Counter<String> cn = new Counter<>();\n while (n-- > 0) {\n cn.add(c.readString());\n }\n w.printLine(\"AC x\", cn.get(\"AC\"));\n w.printLine(\"WA x\", cn.get(\"WA\"));\n w.printLine(\"TLE x\", cn.get(\"TLE\"));\n w.printLine(\"RE x\", cn.get(\"RE\"));\n }",
"solve",
"{\n int n = c.readInt();\n Counter<String> cn = new Counter<>();\n while (n-- > 0) {\n cn.add(c.readString());\n }\n w.printLine(\"AC x\", cn.get(\"AC\"));\n w.printLine(\"WA x\", cn.get(\"WA\"));\n w.printLine(\"TLE x\", cn.get(\"TLE\"));\n w.printLine(\"RE x\", cn.get(\"RE\"));\n }",
"int n = c.readInt();",
"n",
"c.readInt()",
"c.readInt",
"c",
"Counter<String> cn = new Counter<>();",
"cn",
"new Counter<>()",
"while (n-- > 0) {\n cn.add(c.readString());\n }",
"n-- > 0",
"n--",
"n",
"0",
"{\n cn.add(c.readString());\n }",
"cn.add(c.readString())",
"cn.add",
"cn",
"c.readString()",
"c.readString",
"c",
"w.printLine(\"AC x\", cn.get(\"AC\"))",
"w.printLine",
"w",
"\"AC x\"",
"cn.get(\"AC\")",
"cn.get",
"cn",
"\"AC\"",
"w.printLine(\"WA x\", cn.get(\"WA\"))",
"w.printLine",
"w",
"\"WA x\"",
"cn.get(\"WA\")",
"cn.get",
"cn",
"\"WA\"",
"w.printLine(\"TLE x\", cn.get(\"TLE\"))",
"w.printLine",
"w",
"\"TLE x\"",
"cn.get(\"TLE\")",
"cn.get",
"cn",
"\"TLE\"",
"w.printLine(\"RE x\", cn.get(\"RE\"))",
"w.printLine",
"w",
"\"RE x\"",
"cn.get(\"RE\")",
"cn.get",
"cn",
"\"RE\"",
"int testNumber",
"testNumber",
"InputReader c",
"c",
"OutputWriter w",
"w",
"static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }\n\n public void printLine(Object... objects) {\n print(objects);\n writer.println();\n }\n\n public void close() {\n writer.close();\n }\n\n }",
"OutputWriter",
"private final PrintWriter writer;",
"writer",
"public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }",
"OutputWriter",
"{\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }",
"writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)))",
"writer",
"new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)))",
"OutputStream outputStream",
"outputStream",
"public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }",
"OutputWriter",
"{\n this.writer = new PrintWriter(writer);\n }",
"this.writer = new PrintWriter(writer)",
"this.writer",
"this",
"this.writer",
"new PrintWriter(writer)",
"Writer writer",
"writer",
"public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }",
"print",
"{\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }",
"for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < objects.length",
"i",
"objects.length",
"objects",
"objects.length",
"i++",
"i++",
"i",
"{\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }",
"{\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }",
"if (i != 0) {\n writer.print(' ');\n }",
"i != 0",
"i",
"0",
"{\n writer.print(' ');\n }",
"writer.print(' ')",
"writer.print",
"writer",
"' '",
"writer.print(objects[i])",
"writer.print",
"writer",
"objects[i]",
"objects",
"i",
"Object... objects",
"objects",
"public void printLine(Object... objects) {\n print(objects);\n writer.println();\n }",
"printLine",
"{\n print(objects);\n writer.println();\n }",
"print(objects)",
"print",
"objects",
"writer.println()",
"writer.println",
"writer",
"Object... objects",
"objects",
"public void close() {\n writer.close();\n }",
"close",
"{\n writer.close();\n }",
"writer.close()",
"writer.close",
"writer",
"static class Counter<K> {\n public Map<K, Long> map;\n\n public Counter() {\n map = new HashMap<>();\n }\n\n public long add(K key) {\n long count = map.getOrDefault(key, 0L);\n ++count;\n map.put(key, count);\n return count;\n }\n\n public String toString() {\n return \"Counter{\" +\n map +\n '}';\n }\n\n public long get(K key) {\n return map.getOrDefault(key, 0L);\n }\n\n }",
"Counter",
"public Map<K, Long> map;",
"map",
"public Counter() {\n map = new HashMap<>();\n }",
"Counter",
"{\n map = new HashMap<>();\n }",
"map = new HashMap<>()",
"map",
"new HashMap<>()",
"public long add(K key) {\n long count = map.getOrDefault(key, 0L);\n ++count;\n map.put(key, count);\n return count;\n }",
"add",
"{\n long count = map.getOrDefault(key, 0L);\n ++count;\n map.put(key, count);\n return count;\n }",
"long count = map.getOrDefault(key, 0L);",
"count",
"map.getOrDefault(key, 0L)",
"map.getOrDefault",
"map",
"key",
"0L",
"++count",
"count",
"map.put(key, count)",
"map.put",
"map",
"key",
"count",
"return count;",
"count",
"K key",
"key",
"public String toString() {\n return \"Counter{\" +\n map +\n '}';\n }",
"toString",
"{\n return \"Counter{\" +\n map +\n '}';\n }",
"return \"Counter{\" +\n map +\n '}';",
"\"Counter{\" +\n map +\n '}'",
"\"Counter{\" +\n map +\n '}'",
"\"Counter{\"",
"map",
"'}'",
"public long get(K key) {\n return map.getOrDefault(key, 0L);\n }",
"get",
"{\n return map.getOrDefault(key, 0L);\n }",
"return map.getOrDefault(key, 0L);",
"map.getOrDefault(key, 0L)",
"map.getOrDefault",
"map",
"key",
"0L",
"K key",
"key",
"static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\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) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int readInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\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') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int 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 }",
"InputReader",
"private InputStream stream;",
"stream",
"private byte[] buf = new byte[1024];",
"buf",
"new byte[1024]",
"1024",
"private int curChar;",
"curChar",
"private int numChars;",
"numChars",
"private InputReader.SpaceCharFilter filter;",
"filter",
"public InputReader(InputStream stream) {\n this.stream = stream;\n }",
"InputReader",
"{\n this.stream = stream;\n }",
"this.stream = stream",
"this.stream",
"this",
"this.stream",
"stream",
"InputStream stream",
"stream",
"public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\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) {\n return -1;\n }\n }\n return buf[curChar++];\n }",
"read",
"{\n if (numChars == -1) {\n throw new InputMismatchException();\n }\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) {\n return -1;\n }\n }\n return buf[curChar++];\n }",
"if (numChars == -1) {\n throw new InputMismatchException();\n }",
"numChars == -1",
"numChars",
"-1",
"1",
"{\n throw new InputMismatchException();\n }",
"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) {\n return -1;\n }\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) {\n return -1;\n }\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) {\n return -1;\n }",
"numChars <= 0",
"numChars",
"0",
"{\n return -1;\n }",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"public int readInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\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') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"readInt",
"{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\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') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) {\n c = read();\n }",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n c = read();\n }",
"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') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n }",
"if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"{\n throw new InputMismatchException();\n }",
"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 readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }",
"readString",
"{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) {\n c = read();\n }",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n c = read();\n }",
"c = read()",
"c",
"read()",
"read",
"StringBuilder res = new StringBuilder();",
"res",
"new StringBuilder()",
"do {\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n }",
"if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }",
"Character.isValidCodePoint(c)",
"Character.isValidCodePoint",
"Character",
"c",
"{\n res.appendCodePoint(c);\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) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }",
"isSpaceChar",
"{\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }",
"if (filter != null) {\n return filter.isSpaceChar(c);\n }",
"filter != null",
"filter",
"null",
"{\n return filter.isSpaceChar(c);\n }",
"return filter.isSpaceChar(c);",
"filter.isSpaceChar(c)",
"filter.isSpaceChar",
"filter",
"c",
"return isWhitespace(c);",
"isWhitespace(c)",
"isWhitespace",
"c",
"int c",
"c",
"public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"isWhitespace",
"{\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"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 InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(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, InputReader c, OutputWriter w) {\n int n = c.readInt();\n Counter<String> cn = new Counter<>();\n while (n-- > 0) {\n cn.add(c.readString());\n }\n w.printLine(\"AC x\", cn.get(\"AC\"));\n w.printLine(\"WA x\", cn.get(\"WA\"));\n w.printLine(\"TLE x\", cn.get(\"TLE\"));\n w.printLine(\"RE x\", cn.get(\"RE\"));\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }\n\n public void printLine(Object... objects) {\n print(objects);\n writer.println();\n }\n\n public void close() {\n writer.close();\n }\n\n }\n\n static class Counter<K> {\n public Map<K, Long> map;\n\n public Counter() {\n map = new HashMap<>();\n }\n\n public long add(K key) {\n long count = map.getOrDefault(key, 0L);\n ++count;\n map.put(key, count);\n return count;\n }\n\n public String toString() {\n return \"Counter{\" +\n map +\n '}';\n }\n\n public long get(K key) {\n return map.getOrDefault(key, 0L);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\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) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int readInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\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') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int 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 InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(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, InputReader c, OutputWriter w) {\n int n = c.readInt();\n Counter<String> cn = new Counter<>();\n while (n-- > 0) {\n cn.add(c.readString());\n }\n w.printLine(\"AC x\", cn.get(\"AC\"));\n w.printLine(\"WA x\", cn.get(\"WA\"));\n w.printLine(\"TLE x\", cn.get(\"TLE\"));\n w.printLine(\"RE x\", cn.get(\"RE\"));\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }\n\n public void printLine(Object... objects) {\n print(objects);\n writer.println();\n }\n\n public void close() {\n writer.close();\n }\n\n }\n\n static class Counter<K> {\n public Map<K, Long> map;\n\n public Counter() {\n map = new HashMap<>();\n }\n\n public long add(K key) {\n long count = map.getOrDefault(key, 0L);\n ++count;\n map.put(key, count);\n return count;\n }\n\n public String toString() {\n return \"Counter{\" +\n map +\n '}';\n }\n\n public long get(K key) {\n return map.getOrDefault(key, 0L);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\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) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int readInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\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') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int 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.OutputStream;
import java.io.PrintWriter;
import java.io.BufferedWriter;
import java.util.InputMismatchException;
import java.util.HashMap;
import java.io.IOException;
import java.util.Map;
import java.io.Writer;
import java.io.OutputStreamWriter;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author New User
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
OutputWriter out = new OutputWriter(outputStream);
BJudgeStatusSummary solver = new BJudgeStatusSummary();
solver.solve(1, in, out);
out.close();
}
static class BJudgeStatusSummary {
public void solve(int testNumber, InputReader c, OutputWriter w) {
int n = c.readInt();
Counter<String> cn = new Counter<>();
while (n-- > 0) {
cn.add(c.readString());
}
w.printLine("AC x", cn.get("AC"));
w.printLine("WA x", cn.get("WA"));
w.printLine("TLE x", cn.get("TLE"));
w.printLine("RE x", cn.get("RE"));
}
}
static class OutputWriter {
private final PrintWriter writer;
public OutputWriter(OutputStream outputStream) {
writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));
}
public OutputWriter(Writer writer) {
this.writer = new PrintWriter(writer);
}
public void print(Object... objects) {
for (int i = 0; i < objects.length; i++) {
if (i != 0) {
writer.print(' ');
}
writer.print(objects[i]);
}
}
public void printLine(Object... objects) {
print(objects);
writer.println();
}
public void close() {
writer.close();
}
}
static class Counter<K> {
public Map<K, Long> map;
public Counter() {
map = new HashMap<>();
}
public long add(K key) {
long count = map.getOrDefault(key, 0L);
++count;
map.put(key, count);
return count;
}
public String toString() {
return "Counter{" +
map +
'}';
}
public long get(K key) {
return map.getOrDefault(key, 0L);
}
}
static class InputReader {
private InputStream stream;
private byte[] buf = new byte[1024];
private int curChar;
private int numChars;
private InputReader.SpaceCharFilter filter;
public InputReader(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 readInt() {
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 readString() {
int c = read();
while (isSpaceChar(c)) {
c = read();
}
StringBuilder res = new StringBuilder();
do {
if (Character.isValidCodePoint(c)) {
res.appendCodePoint(c);
}
c = read();
} while (!isSpaceChar(c));
return res.toString();
}
public boolean isSpaceChar(int c) {
if (filter != null) {
return filter.isSpaceChar(c);
}
return isWhitespace(c);
}
public static boolean isWhitespace(int 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,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
17,
42,
2,
40,
13,
17,
30,
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,
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,
23,
13,
6,
13,
41,
13,
41,
13,
20,
17,
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,
30,
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,
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,
30,
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,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
29,
2,
13,
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,
11,
1,
41,
13,
17,
41,
13,
18,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
4,
18,
13,
2,
13,
13,
13,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
30,
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,
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,
29,
2,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
12,
13,
30,
29,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
486,
8
],
[
486,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
21
],
[
21,
22
],
[
21,
23
],
[
11,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
24,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
29,
35
],
[
35,
36
],
[
35,
37
],
[
29,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
38,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
54,
58
],
[
53,
59
],
[
29,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
65,
69
],
[
29,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
75,
79
],
[
29,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
85,
89
],
[
29,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
95,
99
],
[
11,
100
],
[
100,
101
],
[
101,
102
],
[
9,
103
],
[
103,
104
],
[
486,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
105,
109
],
[
109,
110
],
[
109,
111
],
[
105,
113
],
[
113,
114
],
[
105,
115
],
[
115,
116
],
[
105,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
117,
125
],
[
125,
126
],
[
105,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
130,
135
],
[
135,
136
],
[
129,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
137,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
145,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
154,
157
],
[
141,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
158,
162
],
[
162,
163
],
[
163,
164
],
[
129,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
105,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
175,
176
],
[
172,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
177,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
172,
186
],
[
186,
187
],
[
186,
188
],
[
172,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
189,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
196,
197
],
[
193,
198
],
[
198,
199
],
[
198,
200
],
[
200,
201
],
[
172,
202
],
[
202,
203
],
[
202,
204
],
[
172,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
205,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
210,
214
],
[
214,
215
],
[
214,
216
],
[
216,
217
],
[
216,
218
],
[
210,
219
],
[
219,
220
],
[
219,
221
],
[
221,
222
],
[
172,
223
],
[
223,
224
],
[
224,
225
],
[
224,
226
],
[
105,
227
],
[
227,
228
],
[
227,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
232,
233
],
[
229,
234
],
[
234,
235
],
[
235,
236
],
[
235,
237
],
[
234,
238
],
[
238,
239
],
[
239,
240
],
[
239,
241
],
[
241,
242
],
[
229,
243
],
[
243,
244
],
[
243,
245
],
[
229,
246
],
[
246,
247
],
[
247,
248
],
[
247,
249
],
[
246,
250
],
[
250,
251
],
[
251,
252
],
[
251,
253
],
[
253,
254
],
[
250,
255
],
[
255,
256
],
[
255,
257
],
[
257,
258
],
[
229,
259
],
[
259,
260
],
[
259,
261
],
[
229,
262
],
[
262,
263
],
[
263,
264
],
[
264,
265
],
[
264,
266
],
[
262,
267
],
[
267,
268
],
[
268,
269
],
[
268,
270
],
[
267,
271
],
[
271,
272
],
[
271,
273
],
[
273,
274
],
[
273,
275
],
[
267,
276
],
[
276,
277
],
[
276,
278
],
[
278,
279
],
[
229,
280
],
[
280,
281
],
[
281,
282
],
[
281,
283
],
[
105,
284
],
[
284,
285
],
[
284,
286
],
[
286,
287
],
[
287,
288
],
[
287,
289
],
[
286,
291
],
[
291,
292
],
[
292,
293
],
[
293,
294
],
[
293,
295
],
[
291,
296
],
[
296,
297
],
[
296,
298
],
[
291,
299
],
[
299,
300
],
[
300,
301
],
[
291,
302
],
[
303,
303
],
[
303,
304
],
[
304,
305
],
[
305,
306
],
[
305,
307
],
[
304,
308
],
[
308,
309
],
[
286,
310
],
[
310,
311
],
[
284,
312
],
[
312,
313
],
[
105,
314
],
[
314,
315
],
[
314,
316
],
[
316,
317
],
[
317,
318
],
[
318,
319
],
[
319,
320
],
[
319,
321
],
[
318,
322
],
[
322,
323
],
[
322,
324
],
[
324,
325
],
[
324,
326
],
[
317,
327
],
[
327,
328
],
[
327,
329
],
[
317,
330
],
[
330,
331
],
[
331,
332
],
[
317,
333
],
[
334,
334
],
[
334,
335
],
[
335,
336
],
[
335,
337
],
[
337,
338
],
[
338,
339
],
[
339,
340
],
[
338,
341
],
[
341,
342
],
[
341,
343
],
[
337,
344
],
[
334,
345
],
[
345,
346
],
[
345,
347
],
[
347,
348
],
[
347,
349
],
[
334,
350
],
[
350,
351
],
[
351,
352
],
[
351,
353
],
[
350,
354
],
[
354,
355
],
[
354,
356
],
[
334,
357
],
[
357,
358
],
[
358,
359
],
[
358,
360
],
[
357,
361
],
[
316,
362
],
[
362,
363
],
[
314,
364
],
[
364,
365
],
[
314,
366
],
[
366,
367
],
[
105,
368
],
[
368,
369
],
[
368,
370
],
[
370,
371
],
[
371,
372
],
[
371,
373
],
[
373,
374
],
[
370,
375
],
[
375,
376
],
[
376,
377
],
[
376,
378
],
[
375,
379
],
[
379,
380
],
[
380,
381
],
[
380,
382
],
[
382,
383
],
[
370,
384
],
[
384,
385
],
[
384,
386
],
[
370,
387
],
[
387,
388
],
[
388,
389
],
[
389,
390
],
[
389,
391
],
[
387,
392
],
[
392,
393
],
[
393,
394
],
[
394,
395
],
[
393,
396
],
[
392,
397
],
[
397,
398
],
[
397,
399
],
[
399,
400
],
[
370,
401
],
[
401,
402
],
[
402,
403
],
[
403,
404
],
[
105,
405
],
[
405,
406
],
[
405,
407
],
[
407,
408
],
[
408,
409
],
[
408,
410
],
[
410,
411
],
[
407,
412
],
[
412,
413
],
[
413,
414
],
[
413,
415
],
[
412,
416
],
[
416,
417
],
[
416,
418
],
[
418,
419
],
[
407,
420
],
[
420,
421
],
[
420,
422
],
[
407,
423
],
[
423,
424
],
[
424,
425
],
[
425,
426
],
[
425,
427
],
[
423,
428
],
[
428,
429
],
[
429,
430
],
[
430,
431
],
[
429,
432
],
[
428,
433
],
[
433,
434
],
[
433,
435
],
[
435,
436
],
[
407,
437
],
[
437,
438
],
[
438,
439
],
[
439,
440
],
[
105,
441
],
[
441,
442
],
[
441,
443
],
[
443,
444
],
[
444,
445
],
[
448,
446
],
[
458,
447
],
[
455,
448
],
[
448,
449
],
[
449,
450
],
[
449,
451
],
[
448,
452
],
[
452,
453
],
[
452,
454
],
[
455,
455
],
[
455,
456
],
[
455,
457
],
[
458,
458
],
[
458,
459
],
[
458,
460
],
[
448,
461
],
[
461,
462
],
[
461,
463
],
[
463,
464
],
[
441,
465
],
[
465,
466
],
[
105,
467
],
[
467,
468
],
[
467,
469
],
[
469,
470
],
[
470,
471
],
[
472,
472
],
[
472,
473
],
[
473,
474
],
[
473,
475
],
[
472,
476
],
[
476,
477
],
[
476,
478
],
[
472,
479
],
[
479,
480
],
[
479,
481
],
[
481,
482
],
[
467,
483
],
[
483,
484
],
[
0,
485
],
[
485,
486
],
[
485,
487
]
]
| [
"import java.io.*;\nimport java.util.*;\npublic class Main {\n\npublic static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-->0) {\n\n int n = sc.nextInt();\n\n HashMap<String,Integer> map = new HashMap<>();\n while(n-->0)\n {\n String s = sc.readString();\n map.put(s,map.getOrDefault(s,0)+1);\n }\n\n pw.println(\"AC x \"+map.getOrDefault(\"AC\",0));\n pw.println(\"WA x \"+map.getOrDefault(\"WA\",0));\n pw.println(\"TLE x \"+map.getOrDefault(\"TLE\",0));\n pw.println(\"RE x \"+map.getOrDefault(\"RE\",0));\n }\n pw.close();\n\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nstatic class InputReader {\n\n private final InputStream stream;\n private final byte[] buf = new byte[8192];\n private int curChar, snumChars;\n\n public InputReader(InputStream st) {\n this.stream = st;\n }\n\n public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public int[] nextIntArray(int n) {\n int [] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }\n\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n}\n\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\npublic static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-->0) {\n\n int n = sc.nextInt();\n\n HashMap<String,Integer> map = new HashMap<>();\n while(n-->0)\n {\n String s = sc.readString();\n map.put(s,map.getOrDefault(s,0)+1);\n }\n\n pw.println(\"AC x \"+map.getOrDefault(\"AC\",0));\n pw.println(\"WA x \"+map.getOrDefault(\"WA\",0));\n pw.println(\"TLE x \"+map.getOrDefault(\"TLE\",0));\n pw.println(\"RE x \"+map.getOrDefault(\"RE\",0));\n }\n pw.close();\n\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nstatic class InputReader {\n\n private final InputStream stream;\n private final byte[] buf = new byte[8192];\n private int curChar, snumChars;\n\n public InputReader(InputStream st) {\n this.stream = st;\n }\n\n public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public int[] nextIntArray(int n) {\n int [] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }\n\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n}\n\n}",
"Main",
"public static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-->0) {\n\n int n = sc.nextInt();\n\n HashMap<String,Integer> map = new HashMap<>();\n while(n-->0)\n {\n String s = sc.readString();\n map.put(s,map.getOrDefault(s,0)+1);\n }\n\n pw.println(\"AC x \"+map.getOrDefault(\"AC\",0));\n pw.println(\"WA x \"+map.getOrDefault(\"WA\",0));\n pw.println(\"TLE x \"+map.getOrDefault(\"TLE\",0));\n pw.println(\"RE x \"+map.getOrDefault(\"RE\",0));\n }\n pw.close();\n\n}",
"main",
"{\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-->0) {\n\n int n = sc.nextInt();\n\n HashMap<String,Integer> map = new HashMap<>();\n while(n-->0)\n {\n String s = sc.readString();\n map.put(s,map.getOrDefault(s,0)+1);\n }\n\n pw.println(\"AC x \"+map.getOrDefault(\"AC\",0));\n pw.println(\"WA x \"+map.getOrDefault(\"WA\",0));\n pw.println(\"TLE x \"+map.getOrDefault(\"TLE\",0));\n pw.println(\"RE x \"+map.getOrDefault(\"RE\",0));\n }\n pw.close();\n\n}",
"InputReader sc = new InputReader(System.in);",
"sc",
"new InputReader(System.in)",
"PrintWriter pw = new PrintWriter(System.out);",
"pw",
"new PrintWriter(System.out)",
"Random gen = new Random();",
"gen",
"new Random()",
"int test = 1;",
"test",
"1",
"while(test-->0) {\n\n int n = sc.nextInt();\n\n HashMap<String,Integer> map = new HashMap<>();\n while(n-->0)\n {\n String s = sc.readString();\n map.put(s,map.getOrDefault(s,0)+1);\n }\n\n pw.println(\"AC x \"+map.getOrDefault(\"AC\",0));\n pw.println(\"WA x \"+map.getOrDefault(\"WA\",0));\n pw.println(\"TLE x \"+map.getOrDefault(\"TLE\",0));\n pw.println(\"RE x \"+map.getOrDefault(\"RE\",0));\n }",
"test-->0",
"test--",
"test",
"0",
"{\n\n int n = sc.nextInt();\n\n HashMap<String,Integer> map = new HashMap<>();\n while(n-->0)\n {\n String s = sc.readString();\n map.put(s,map.getOrDefault(s,0)+1);\n }\n\n pw.println(\"AC x \"+map.getOrDefault(\"AC\",0));\n pw.println(\"WA x \"+map.getOrDefault(\"WA\",0));\n pw.println(\"TLE x \"+map.getOrDefault(\"TLE\",0));\n pw.println(\"RE x \"+map.getOrDefault(\"RE\",0));\n }",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"HashMap<String,Integer> map = new HashMap<>();",
"map",
"new HashMap<>()",
"while(n-->0)\n {\n String s = sc.readString();\n map.put(s,map.getOrDefault(s,0)+1);\n }",
"n-->0",
"n--",
"n",
"0",
"{\n String s = sc.readString();\n map.put(s,map.getOrDefault(s,0)+1);\n }",
"String s = sc.readString();",
"s",
"sc.readString()",
"sc.readString",
"sc",
"map.put(s,map.getOrDefault(s,0)+1)",
"map.put",
"map",
"s",
"map.getOrDefault(s,0)+1",
"map.getOrDefault(s,0)",
"map.getOrDefault",
"map",
"s",
"0",
"1",
"pw.println(\"AC x \"+map.getOrDefault(\"AC\",0))",
"pw.println",
"pw",
"\"AC x \"+map.getOrDefault(\"AC\",0)",
"\"AC x \"",
"map.getOrDefault(\"AC\",0)",
"map.getOrDefault",
"map",
"\"AC\"",
"0",
"pw.println(\"WA x \"+map.getOrDefault(\"WA\",0))",
"pw.println",
"pw",
"\"WA x \"+map.getOrDefault(\"WA\",0)",
"\"WA x \"",
"map.getOrDefault(\"WA\",0)",
"map.getOrDefault",
"map",
"\"WA\"",
"0",
"pw.println(\"TLE x \"+map.getOrDefault(\"TLE\",0))",
"pw.println",
"pw",
"\"TLE x \"+map.getOrDefault(\"TLE\",0)",
"\"TLE x \"",
"map.getOrDefault(\"TLE\",0)",
"map.getOrDefault",
"map",
"\"TLE\"",
"0",
"pw.println(\"RE x \"+map.getOrDefault(\"RE\",0))",
"pw.println",
"pw",
"\"RE x \"+map.getOrDefault(\"RE\",0)",
"\"RE x \"",
"map.getOrDefault(\"RE\",0)",
"map.getOrDefault",
"map",
"\"RE\"",
"0",
"pw.close()",
"pw.close",
"pw",
"String[] args",
"args",
"static class InputReader {\n\n private final InputStream stream;\n private final byte[] buf = new byte[8192];\n private int curChar, snumChars;\n\n public InputReader(InputStream st) {\n this.stream = st;\n }\n\n public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public int[] nextIntArray(int n) {\n int [] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }\n\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n}",
"InputReader",
"private final InputStream stream;",
"stream",
"private final byte[] buf = new byte[8192];",
"buf",
"new byte[8192]",
"8192",
"private int curChar",
"curChar",
"snumChars;",
"snumChars",
"public InputReader(InputStream st) {\n this.stream = st;\n }",
"InputReader",
"{\n this.stream = st;\n }",
"this.stream = st",
"this.stream",
"this",
"this.stream",
"st",
"InputStream st",
"st",
"public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }",
"read",
"{\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }",
"if (snumChars == -1)\n throw new InputMismatchException();",
"snumChars == -1",
"snumChars",
"-1",
"1",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }",
"curChar >= snumChars",
"curChar",
"snumChars",
"{\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }",
"curChar = 0",
"curChar",
"0",
"try {\n snumChars = 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 snumChars = stream.read(buf);\n }",
"snumChars = stream.read(buf)",
"snumChars",
"stream.read(buf)",
"stream.read",
"stream",
"buf",
"if (snumChars <= 0)\n return -1;",
"snumChars <= 0",
"snumChars",
"0",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"nextInt",
"{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) {\n c = read();\n }",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n c = read();\n }",
"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 res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n res *= 10;\n res += c - '0';\n c = read();\n }",
"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 long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"nextLong",
"{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) {\n c = read();\n }",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n c = read();\n }",
"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",
"long res = 0;",
"res",
"0",
"do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n res *= 10;\n res += c - '0';\n c = read();\n }",
"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 int[] nextIntArray(int n) {\n int [] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }",
"nextIntArray",
"{\n int [] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }",
"int [] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n a[i] = nextInt();\n }",
"{\n a[i] = nextInt();\n }",
"a[i] = nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }",
"shuffle",
"{ for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }",
"for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }",
"int i = 0, n = a.length;",
"int i = 0",
"i",
"0",
"n = a.length;",
"n",
"a.length",
"a",
"a.length",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{ int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }",
"{ int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }",
"int ind = gen.nextInt(n-i)+i;",
"ind",
"gen.nextInt(n-i)+i",
"gen.nextInt(n-i)",
"gen.nextInt",
"gen",
"n-i",
"n",
"i",
"i",
"int d = a[i];",
"d",
"a[i]",
"a",
"i",
"a[i] = a[ind]",
"a[i]",
"a",
"i",
"a[ind]",
"a",
"ind",
"a[ind] = d",
"a[ind]",
"a",
"ind",
"d",
"return a;",
"a",
"int[] a",
"a",
"Random gen",
"gen",
"public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }",
"readString",
"{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) {\n c = read();\n }",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n c = read();\n }",
"c = read()",
"c",
"read()",
"read",
"StringBuilder res = new StringBuilder();",
"res",
"new StringBuilder()",
"do {\n res.appendCodePoint(c);\n c = read();\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 String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }",
"nextLine",
"{\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c))\n 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 } while (!isEndOfLine(c));",
"!isEndOfLine(c)",
"isEndOfLine(c)",
"isEndOfLine",
"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 return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"isSpaceChar",
"{\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"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",
"private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }",
"isEndOfLine",
"{\n return c == '\\n' || c == '\\r' || c == -1;\n }",
"return c == '\\n' || c == '\\r' || c == -1;",
"c == '\\n' || c == '\\r' || c == -1",
"c == '\\n' || c == '\\r' || c == -1",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"public class Main {\n\npublic static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-->0) {\n\n int n = sc.nextInt();\n\n HashMap<String,Integer> map = new HashMap<>();\n while(n-->0)\n {\n String s = sc.readString();\n map.put(s,map.getOrDefault(s,0)+1);\n }\n\n pw.println(\"AC x \"+map.getOrDefault(\"AC\",0));\n pw.println(\"WA x \"+map.getOrDefault(\"WA\",0));\n pw.println(\"TLE x \"+map.getOrDefault(\"TLE\",0));\n pw.println(\"RE x \"+map.getOrDefault(\"RE\",0));\n }\n pw.close();\n\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nstatic class InputReader {\n\n private final InputStream stream;\n private final byte[] buf = new byte[8192];\n private int curChar, snumChars;\n\n public InputReader(InputStream st) {\n this.stream = st;\n }\n\n public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public int[] nextIntArray(int n) {\n int [] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }\n\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n}\n\n}",
"public class Main {\n\npublic static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-->0) {\n\n int n = sc.nextInt();\n\n HashMap<String,Integer> map = new HashMap<>();\n while(n-->0)\n {\n String s = sc.readString();\n map.put(s,map.getOrDefault(s,0)+1);\n }\n\n pw.println(\"AC x \"+map.getOrDefault(\"AC\",0));\n pw.println(\"WA x \"+map.getOrDefault(\"WA\",0));\n pw.println(\"TLE x \"+map.getOrDefault(\"TLE\",0));\n pw.println(\"RE x \"+map.getOrDefault(\"RE\",0));\n }\n pw.close();\n\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nstatic class InputReader {\n\n private final InputStream stream;\n private final byte[] buf = new byte[8192];\n private int curChar, snumChars;\n\n public InputReader(InputStream st) {\n this.stream = st;\n }\n\n public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public int[] nextIntArray(int n) {\n int [] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }\n\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n}\n\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
InputReader sc = new InputReader(System.in);
PrintWriter pw = new PrintWriter(System.out);
Random gen = new Random();
int test = 1;//sc.nextInt();
while(test-->0) {
int n = sc.nextInt();
HashMap<String,Integer> map = new HashMap<>();
while(n-->0)
{
String s = sc.readString();
map.put(s,map.getOrDefault(s,0)+1);
}
pw.println("AC x "+map.getOrDefault("AC",0));
pw.println("WA x "+map.getOrDefault("WA",0));
pw.println("TLE x "+map.getOrDefault("TLE",0));
pw.println("RE x "+map.getOrDefault("RE",0));
}
pw.close();
}
static class InputReader {
private final InputStream stream;
private final byte[] buf = new byte[8192];
private int curChar, snumChars;
public InputReader(InputStream st) {
this.stream = st;
}
public int read() {
if (snumChars == -1)
throw new InputMismatchException();
if (curChar >= snumChars) {
curChar = 0;
try {
snumChars = stream.read(buf);
} catch (IOException e) {
throw new InputMismatchException();
}
if (snumChars <= 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 {
res *= 10;
res += c - '0';
c = read();
} while (!isSpaceChar(c));
return res * sgn;
}
public long nextLong() {
int c = read();
while (isSpaceChar(c)) {
c = read();
}
int sgn = 1;
if (c == '-') {
sgn = -1;
c = read();
}
long res = 0;
do {
res *= 10;
res += c - '0';
c = read();
} while (!isSpaceChar(c));
return res * sgn;
}
public int[] nextIntArray(int n) {
int [] a = new int[n];
for (int i = 0; i < n; i++) {
a[i] = nextInt();
}
return a;
}
public static int[] shuffle(int[] a, Random gen)
{ for(int i = 0, n = a.length;i < n;i++)
{ int ind = gen.nextInt(n-i)+i;
int d = a[i];
a[i] = a[ind];
a[ind] = d;
}
return a;
}
public String readString() {
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 String nextLine() {
int c = read();
while (isSpaceChar(c))
c = read();
StringBuilder res = new StringBuilder();
do {
res.appendCodePoint(c);
c = read();
} while (!isEndOfLine(c));
return res.toString();
}
public boolean isSpaceChar(int c) {
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
private boolean isEndOfLine(int c) {
return c == '\n' || c == '\r' || c == -1;
}
}
} |
[
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,
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,
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
],
[
122,
11
],
[
122,
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
],
[
27,
28
],
[
26,
29
],
[
26,
30
],
[
14,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
31,
35
],
[
14,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
36,
40
],
[
14,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
41,
45
],
[
14,
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
],
[
69,
73
],
[
68,
74
],
[
14,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
14,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
14,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
14,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
115,
118
],
[
12,
119
],
[
119,
120
],
[
0,
121
],
[
121,
122
],
[
121,
123
]
]
| [
"\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int N = scanner.nextInt();\n\n Map<String, Integer> answer = new HashMap<>();\n answer.put(\"AC\", 0);\n answer.put(\"WA\", 0);\n answer.put(\"TLE\", 0);\n answer.put(\"RE\", 0);\n\n for (int i = 0 ; i < N ; i++) {\n String result = scanner.next();\n answer.put(result, answer.getOrDefault(result, 0) + 1);\n }\n\n System.out.println(\"AC x \" + answer.get(\"AC\"));\n System.out.println(\"WA x \" + answer.get(\"WA\"));\n System.out.println(\"TLE x \" + answer.get(\"TLE\"));\n System.out.println(\"RE x \" + answer.get(\"RE\"));\n }\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 public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int N = scanner.nextInt();\n\n Map<String, Integer> answer = new HashMap<>();\n answer.put(\"AC\", 0);\n answer.put(\"WA\", 0);\n answer.put(\"TLE\", 0);\n answer.put(\"RE\", 0);\n\n for (int i = 0 ; i < N ; i++) {\n String result = scanner.next();\n answer.put(result, answer.getOrDefault(result, 0) + 1);\n }\n\n System.out.println(\"AC x \" + answer.get(\"AC\"));\n System.out.println(\"WA x \" + answer.get(\"WA\"));\n System.out.println(\"TLE x \" + answer.get(\"TLE\"));\n System.out.println(\"RE x \" + answer.get(\"RE\"));\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int N = scanner.nextInt();\n\n Map<String, Integer> answer = new HashMap<>();\n answer.put(\"AC\", 0);\n answer.put(\"WA\", 0);\n answer.put(\"TLE\", 0);\n answer.put(\"RE\", 0);\n\n for (int i = 0 ; i < N ; i++) {\n String result = scanner.next();\n answer.put(result, answer.getOrDefault(result, 0) + 1);\n }\n\n System.out.println(\"AC x \" + answer.get(\"AC\"));\n System.out.println(\"WA x \" + answer.get(\"WA\"));\n System.out.println(\"TLE x \" + answer.get(\"TLE\"));\n System.out.println(\"RE x \" + answer.get(\"RE\"));\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n\n int N = scanner.nextInt();\n\n Map<String, Integer> answer = new HashMap<>();\n answer.put(\"AC\", 0);\n answer.put(\"WA\", 0);\n answer.put(\"TLE\", 0);\n answer.put(\"RE\", 0);\n\n for (int i = 0 ; i < N ; i++) {\n String result = scanner.next();\n answer.put(result, answer.getOrDefault(result, 0) + 1);\n }\n\n System.out.println(\"AC x \" + answer.get(\"AC\"));\n System.out.println(\"WA x \" + answer.get(\"WA\"));\n System.out.println(\"TLE x \" + answer.get(\"TLE\"));\n System.out.println(\"RE x \" + answer.get(\"RE\"));\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int N = scanner.nextInt();",
"N",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"Map<String, Integer> answer = new HashMap<>();",
"answer",
"new HashMap<>()",
"answer.put(\"AC\", 0)",
"answer.put",
"answer",
"\"AC\"",
"0",
"answer.put(\"WA\", 0)",
"answer.put",
"answer",
"\"WA\"",
"0",
"answer.put(\"TLE\", 0)",
"answer.put",
"answer",
"\"TLE\"",
"0",
"answer.put(\"RE\", 0)",
"answer.put",
"answer",
"\"RE\"",
"0",
"for (int i = 0 ; i < N ; i++) {\n String result = scanner.next();\n answer.put(result, answer.getOrDefault(result, 0) + 1);\n }",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n String result = scanner.next();\n answer.put(result, answer.getOrDefault(result, 0) + 1);\n }",
"{\n String result = scanner.next();\n answer.put(result, answer.getOrDefault(result, 0) + 1);\n }",
"String result = scanner.next();",
"result",
"scanner.next()",
"scanner.next",
"scanner",
"answer.put(result, answer.getOrDefault(result, 0) + 1)",
"answer.put",
"answer",
"result",
"answer.getOrDefault(result, 0) + 1",
"answer.getOrDefault(result, 0)",
"answer.getOrDefault",
"answer",
"result",
"0",
"1",
"System.out.println(\"AC x \" + answer.get(\"AC\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + answer.get(\"AC\")",
"\"AC x \"",
"answer.get(\"AC\")",
"answer.get",
"answer",
"\"AC\"",
"System.out.println(\"WA x \" + answer.get(\"WA\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + answer.get(\"WA\")",
"\"WA x \"",
"answer.get(\"WA\")",
"answer.get",
"answer",
"\"WA\"",
"System.out.println(\"TLE x \" + answer.get(\"TLE\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + answer.get(\"TLE\")",
"\"TLE x \"",
"answer.get(\"TLE\")",
"answer.get",
"answer",
"\"TLE\"",
"System.out.println(\"RE x \" + answer.get(\"RE\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + answer.get(\"RE\")",
"\"RE x \"",
"answer.get(\"RE\")",
"answer.get",
"answer",
"\"RE\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int N = scanner.nextInt();\n\n Map<String, Integer> answer = new HashMap<>();\n answer.put(\"AC\", 0);\n answer.put(\"WA\", 0);\n answer.put(\"TLE\", 0);\n answer.put(\"RE\", 0);\n\n for (int i = 0 ; i < N ; i++) {\n String result = scanner.next();\n answer.put(result, answer.getOrDefault(result, 0) + 1);\n }\n\n System.out.println(\"AC x \" + answer.get(\"AC\"));\n System.out.println(\"WA x \" + answer.get(\"WA\"));\n System.out.println(\"TLE x \" + answer.get(\"TLE\"));\n System.out.println(\"RE x \" + answer.get(\"RE\"));\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int N = scanner.nextInt();\n\n Map<String, Integer> answer = new HashMap<>();\n answer.put(\"AC\", 0);\n answer.put(\"WA\", 0);\n answer.put(\"TLE\", 0);\n answer.put(\"RE\", 0);\n\n for (int i = 0 ; i < N ; i++) {\n String result = scanner.next();\n answer.put(result, answer.getOrDefault(result, 0) + 1);\n }\n\n System.out.println(\"AC x \" + answer.get(\"AC\"));\n System.out.println(\"WA x \" + answer.get(\"WA\"));\n System.out.println(\"TLE x \" + answer.get(\"TLE\"));\n System.out.println(\"RE x \" + answer.get(\"RE\"));\n }\n}",
"Main"
]
|
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int N = scanner.nextInt();
Map<String, Integer> answer = new HashMap<>();
answer.put("AC", 0);
answer.put("WA", 0);
answer.put("TLE", 0);
answer.put("RE", 0);
for (int i = 0 ; i < N ; i++) {
String result = scanner.next();
answer.put(result, answer.getOrDefault(result, 0) + 1);
}
System.out.println("AC x " + answer.get("AC"));
System.out.println("WA x " + answer.get("WA"));
System.out.println("TLE x " + answer.get("TLE"));
System.out.println("RE x " + answer.get("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,
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,
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
],
[
113,
5
],
[
113,
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
],
[
26,
29
],
[
29,
30
],
[
30,
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
],
[
51,
54
],
[
50,
55
],
[
55,
56
],
[
44,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
57,
62
],
[
62,
63
],
[
44,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
64,
69
],
[
69,
70
],
[
44,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
71,
76
],
[
76,
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
],
[
8,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
6,
110
],
[
110,
111
],
[
0,
112
],
[
112,
113
],
[
112,
114
]
]
| [
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int ac = 0, wa = 0, tle = 0, re = 0;\n int n = Integer.parseInt(sc.nextLine());\n for(int i = 0;i<n;i++){\n String temp = sc.nextLine();\n if(temp.equals(\"AC\")) ac++;\n if(temp.equals(\"WA\")) wa++;\n if(temp.equals(\"TLE\")) tle++;\n if(temp.equals(\"RE\")) re++;\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",
"public class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int ac = 0, wa = 0, tle = 0, re = 0;\n int n = Integer.parseInt(sc.nextLine());\n for(int i = 0;i<n;i++){\n String temp = sc.nextLine();\n if(temp.equals(\"AC\")) ac++;\n if(temp.equals(\"WA\")) wa++;\n if(temp.equals(\"TLE\")) tle++;\n if(temp.equals(\"RE\")) re++;\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 Scanner sc = new Scanner(System.in);\n int ac = 0, wa = 0, tle = 0, re = 0;\n int n = Integer.parseInt(sc.nextLine());\n for(int i = 0;i<n;i++){\n String temp = sc.nextLine();\n if(temp.equals(\"AC\")) ac++;\n if(temp.equals(\"WA\")) wa++;\n if(temp.equals(\"TLE\")) tle++;\n if(temp.equals(\"RE\")) re++;\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 ac = 0, wa = 0, tle = 0, re = 0;\n int n = Integer.parseInt(sc.nextLine());\n for(int i = 0;i<n;i++){\n String temp = sc.nextLine();\n if(temp.equals(\"AC\")) ac++;\n if(temp.equals(\"WA\")) wa++;\n if(temp.equals(\"TLE\")) tle++;\n if(temp.equals(\"RE\")) re++;\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 ac = 0",
"ac",
"0",
"wa = 0",
"wa",
"0",
"tle = 0",
"tle",
"0",
"re = 0;",
"re",
"0",
"int n = Integer.parseInt(sc.nextLine());",
"n",
"Integer.parseInt(sc.nextLine())",
"Integer.parseInt",
"Integer",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for(int i = 0;i<n;i++){\n String temp = sc.nextLine();\n if(temp.equals(\"AC\")) ac++;\n if(temp.equals(\"WA\")) wa++;\n if(temp.equals(\"TLE\")) tle++;\n if(temp.equals(\"RE\")) re++;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String temp = sc.nextLine();\n if(temp.equals(\"AC\")) ac++;\n if(temp.equals(\"WA\")) wa++;\n if(temp.equals(\"TLE\")) tle++;\n if(temp.equals(\"RE\")) re++;\n }",
"{\n String temp = sc.nextLine();\n if(temp.equals(\"AC\")) ac++;\n if(temp.equals(\"WA\")) wa++;\n if(temp.equals(\"TLE\")) tle++;\n if(temp.equals(\"RE\")) re++;\n }",
"String temp = sc.nextLine();",
"temp",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if(temp.equals(\"AC\")) ac++;",
"temp.equals(\"AC\")",
"temp.equals",
"temp",
"\"AC\"",
"ac++",
"ac",
"if(temp.equals(\"WA\")) wa++;",
"temp.equals(\"WA\")",
"temp.equals",
"temp",
"\"WA\"",
"wa++",
"wa",
"if(temp.equals(\"TLE\")) tle++;",
"temp.equals(\"TLE\")",
"temp.equals",
"temp",
"\"TLE\"",
"tle++",
"tle",
"if(temp.equals(\"RE\")) re++;",
"temp.equals(\"RE\")",
"temp.equals",
"temp",
"\"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 ac = 0, wa = 0, tle = 0, re = 0;\n int n = Integer.parseInt(sc.nextLine());\n for(int i = 0;i<n;i++){\n String temp = sc.nextLine();\n if(temp.equals(\"AC\")) ac++;\n if(temp.equals(\"WA\")) wa++;\n if(temp.equals(\"TLE\")) tle++;\n if(temp.equals(\"RE\")) re++;\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 Scanner sc = new Scanner(System.in);\n int ac = 0, wa = 0, tle = 0, re = 0;\n int n = Integer.parseInt(sc.nextLine());\n for(int i = 0;i<n;i++){\n String temp = sc.nextLine();\n if(temp.equals(\"AC\")) ac++;\n if(temp.equals(\"WA\")) wa++;\n if(temp.equals(\"TLE\")) tle++;\n if(temp.equals(\"RE\")) re++;\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.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int ac = 0, wa = 0, tle = 0, re = 0;
int n = Integer.parseInt(sc.nextLine());
for(int i = 0;i<n;i++){
String temp = sc.nextLine();
if(temp.equals("AC")) ac++;
if(temp.equals("WA")) wa++;
if(temp.equals("TLE")) tle++;
if(temp.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,
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,
41,
13,
17,
41,
13,
4,
18,
13,
11,
1,
0,
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,
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
]
| [
[
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
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
14,
25
],
[
25,
26
],
[
25,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
14,
31
],
[
31,
32
],
[
31,
33
],
[
14,
34
],
[
34,
35
],
[
34,
36
],
[
14,
37
],
[
37,
38
],
[
37,
39
],
[
14,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
14,
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
],
[
60,
61
],
[
61,
62
],
[
57,
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
],
[
71,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
78,
83
],
[
83,
84
],
[
78,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
85,
90
],
[
90,
91
],
[
14,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
98,
98
],
[
98,
99
],
[
98,
100
],
[
98,
101
],
[
14,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
108,
108
],
[
108,
109
],
[
108,
110
],
[
108,
111
],
[
14,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
118,
118
],
[
118,
119
],
[
118,
120
],
[
118,
121
],
[
14,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
128,
128
],
[
128,
129
],
[
128,
130
],
[
128,
131
],
[
12,
132
],
[
132,
133
]
]
| [
"import java.util.*;\nimport java.lang.*;\nimport java.io.*;\nclass Main {\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int i;\n int AC = 0;\n int TLE = 0;\n int RE = 0;\n int WA = 0;\n String ac = \"AC\";\n String temp = sc.nextLine();\n for(i=0;i<N;i++)\n {\n String s = sc.nextLine();\n if(s.equals(\"AC\"))\n {\n AC++;\n }\n else if(s.equals(\"WA\"))\n WA++;\n else if(s.equals(\"TLE\"))\n TLE++;\n else if(s.equals(\"RE\"))\n RE++;\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.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"class Main {\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int i;\n int AC = 0;\n int TLE = 0;\n int RE = 0;\n int WA = 0;\n String ac = \"AC\";\n String temp = sc.nextLine();\n for(i=0;i<N;i++)\n {\n String s = sc.nextLine();\n if(s.equals(\"AC\"))\n {\n AC++;\n }\n else if(s.equals(\"WA\"))\n WA++;\n else if(s.equals(\"TLE\"))\n TLE++;\n else if(s.equals(\"RE\"))\n RE++;\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 Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int i;\n int AC = 0;\n int TLE = 0;\n int RE = 0;\n int WA = 0;\n String ac = \"AC\";\n String temp = sc.nextLine();\n for(i=0;i<N;i++)\n {\n String s = sc.nextLine();\n if(s.equals(\"AC\"))\n {\n AC++;\n }\n else if(s.equals(\"WA\"))\n WA++;\n else if(s.equals(\"TLE\"))\n TLE++;\n else if(s.equals(\"RE\"))\n RE++;\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 int i;\n int AC = 0;\n int TLE = 0;\n int RE = 0;\n int WA = 0;\n String ac = \"AC\";\n String temp = sc.nextLine();\n for(i=0;i<N;i++)\n {\n String s = sc.nextLine();\n if(s.equals(\"AC\"))\n {\n AC++;\n }\n else if(s.equals(\"WA\"))\n WA++;\n else if(s.equals(\"TLE\"))\n TLE++;\n else if(s.equals(\"RE\"))\n RE++;\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 i;",
"i",
"int AC = 0;",
"AC",
"0",
"int TLE = 0;",
"TLE",
"0",
"int RE = 0;",
"RE",
"0",
"int WA = 0;",
"WA",
"0",
"String ac = \"AC\";",
"ac",
"\"AC\"",
"String temp = sc.nextLine();",
"temp",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for(i=0;i<N;i++)\n {\n String s = sc.nextLine();\n if(s.equals(\"AC\"))\n {\n AC++;\n }\n else if(s.equals(\"WA\"))\n WA++;\n else if(s.equals(\"TLE\"))\n TLE++;\n else if(s.equals(\"RE\"))\n RE++;\n }",
"i=0;",
"i=0",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n String s = sc.nextLine();\n if(s.equals(\"AC\"))\n {\n AC++;\n }\n else if(s.equals(\"WA\"))\n WA++;\n else if(s.equals(\"TLE\"))\n TLE++;\n else if(s.equals(\"RE\"))\n RE++;\n }",
"{\n String s = sc.nextLine();\n if(s.equals(\"AC\"))\n {\n AC++;\n }\n else if(s.equals(\"WA\"))\n WA++;\n else if(s.equals(\"TLE\"))\n TLE++;\n else if(s.equals(\"RE\"))\n RE++;\n }",
"String s = sc.nextLine();",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if(s.equals(\"AC\"))\n {\n AC++;\n }\n else if(s.equals(\"WA\"))\n WA++;\n else if(s.equals(\"TLE\"))\n TLE++;\n else if(s.equals(\"RE\"))\n RE++;",
"s.equals(\"AC\")",
"s.equals",
"s",
"\"AC\"",
"{\n AC++;\n }",
"AC++",
"AC",
"if(s.equals(\"WA\"))\n WA++;\n else if(s.equals(\"TLE\"))\n TLE++;\n else if(s.equals(\"RE\"))\n RE++;",
"s.equals(\"WA\")",
"s.equals",
"s",
"\"WA\"",
"WA++",
"WA",
"if(s.equals(\"TLE\"))\n TLE++;\n else if(s.equals(\"RE\"))\n RE++;",
"s.equals(\"TLE\")",
"s.equals",
"s",
"\"TLE\"",
"TLE++",
"TLE",
"if(s.equals(\"RE\"))\n RE++;",
"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",
"\"AC\"",
"\" x \"",
"AC",
"System.out.println(\"WA\"+\" x \"+WA)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA\"+\" x \"+WA",
"\"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",
"\"TLE\"",
"\" x \"",
"TLE",
"System.out.println(\"RE\"+\" x \"+RE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE\"+\" x \"+RE",
"\"RE\"+\" x \"+RE",
"\"RE\"",
"\" x \"",
"RE",
"String args[]",
"args"
]
| import java.util.*;
import java.lang.*;
import java.io.*;
class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int i;
int AC = 0;
int TLE = 0;
int RE = 0;
int WA = 0;
String ac = "AC";
String temp = sc.nextLine();
for(i=0;i<N;i++)
{
String s = sc.nextLine();
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,
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,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
115,
5
],
[
115,
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
],
[
47,
50
],
[
46,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
46,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
55,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
55,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
64,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
64,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
8,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
89,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
89,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
109,
110
],
[
109,
111
],
[
6,
112
],
[
112,
113
],
[
0,
114
],
[
114,
115
],
[
114,
116
]
]
| [
"import java.util.*;\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 ans[] = new int[4];\n String str[] = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n\n for (int i = 0; i < N; i++) {\n String S = sc.next();\n if (S.equals(\"AC\")) ans[0]++;\n else if (S.equals(\"WA\")) ans[1]++;\n else if (S.equals(\"TLE\")) ans[2]++;\n else ans[3]++;\n }\n\n for (int i = 0; i < 4; i++) {\n System.out.print(str[i]);\n System.out.print(\" x \");\n System.out.println(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\n int N = sc.nextInt();\n int ans[] = new int[4];\n String str[] = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n\n for (int i = 0; i < N; i++) {\n String S = sc.next();\n if (S.equals(\"AC\")) ans[0]++;\n else if (S.equals(\"WA\")) ans[1]++;\n else if (S.equals(\"TLE\")) ans[2]++;\n else ans[3]++;\n }\n\n for (int i = 0; i < 4; i++) {\n System.out.print(str[i]);\n System.out.print(\" x \");\n System.out.println(ans[i]);\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 ans[] = new int[4];\n String str[] = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n\n for (int i = 0; i < N; i++) {\n String S = sc.next();\n if (S.equals(\"AC\")) ans[0]++;\n else if (S.equals(\"WA\")) ans[1]++;\n else if (S.equals(\"TLE\")) ans[2]++;\n else ans[3]++;\n }\n\n for (int i = 0; i < 4; i++) {\n System.out.print(str[i]);\n System.out.print(\" x \");\n System.out.println(ans[i]);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int N = sc.nextInt();\n int ans[] = new int[4];\n String str[] = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n\n for (int i = 0; i < N; i++) {\n String S = sc.next();\n if (S.equals(\"AC\")) ans[0]++;\n else if (S.equals(\"WA\")) ans[1]++;\n else if (S.equals(\"TLE\")) ans[2]++;\n else ans[3]++;\n }\n\n for (int i = 0; i < 4; i++) {\n System.out.print(str[i]);\n System.out.print(\" x \");\n System.out.println(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 ans[] = new int[4];",
"ans",
"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 if (S.equals(\"AC\")) ans[0]++;\n else if (S.equals(\"WA\")) ans[1]++;\n else if (S.equals(\"TLE\")) ans[2]++;\n else ans[3]++;\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\")) ans[0]++;\n else if (S.equals(\"WA\")) ans[1]++;\n else if (S.equals(\"TLE\")) ans[2]++;\n else ans[3]++;\n }",
"{\n String S = sc.next();\n if (S.equals(\"AC\")) ans[0]++;\n else if (S.equals(\"WA\")) ans[1]++;\n else if (S.equals(\"TLE\")) ans[2]++;\n else ans[3]++;\n }",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"if (S.equals(\"AC\")) ans[0]++;\n else if (S.equals(\"WA\")) ans[1]++;\n else if (S.equals(\"TLE\")) ans[2]++;\n else ans[3]++;",
"S.equals(\"AC\")",
"S.equals",
"S",
"\"AC\"",
"ans[0]++",
"ans[0]",
"ans",
"0",
"if (S.equals(\"WA\")) ans[1]++;\n else if (S.equals(\"TLE\")) ans[2]++;\n else ans[3]++;",
"S.equals(\"WA\")",
"S.equals",
"S",
"\"WA\"",
"ans[1]++",
"ans[1]",
"ans",
"1",
"if (S.equals(\"TLE\")) ans[2]++;\n else ans[3]++;",
"S.equals(\"TLE\")",
"S.equals",
"S",
"\"TLE\"",
"ans[2]++",
"ans[2]",
"ans",
"2",
"ans[3]++",
"ans[3]",
"ans",
"3",
"for (int i = 0; i < 4; i++) {\n System.out.print(str[i]);\n System.out.print(\" x \");\n System.out.println(ans[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 4",
"i",
"4",
"i++",
"i++",
"i",
"{\n System.out.print(str[i]);\n System.out.print(\" x \");\n System.out.println(ans[i]);\n }",
"{\n System.out.print(str[i]);\n System.out.print(\" x \");\n System.out.println(ans[i]);\n }",
"System.out.print(str[i])",
"System.out.print",
"System.out",
"System",
"System.out",
"str[i]",
"str",
"i",
"System.out.print(\" x \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" x \"",
"System.out.println(ans[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"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\n int N = sc.nextInt();\n int ans[] = new int[4];\n String str[] = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n\n for (int i = 0; i < N; i++) {\n String S = sc.next();\n if (S.equals(\"AC\")) ans[0]++;\n else if (S.equals(\"WA\")) ans[1]++;\n else if (S.equals(\"TLE\")) ans[2]++;\n else ans[3]++;\n }\n\n for (int i = 0; i < 4; i++) {\n System.out.print(str[i]);\n System.out.print(\" x \");\n System.out.println(ans[i]);\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 ans[] = new int[4];\n String str[] = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n\n for (int i = 0; i < N; i++) {\n String S = sc.next();\n if (S.equals(\"AC\")) ans[0]++;\n else if (S.equals(\"WA\")) ans[1]++;\n else if (S.equals(\"TLE\")) ans[2]++;\n else ans[3]++;\n }\n\n for (int i = 0; i < 4; i++) {\n System.out.print(str[i]);\n System.out.print(\" x \");\n System.out.println(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 ans[] = new int[4];
String str[] = {"AC", "WA", "TLE", "RE"};
for (int i = 0; i < N; i++) {
String S = sc.next();
if (S.equals("AC")) ans[0]++;
else if (S.equals("WA")) ans[1]++;
else if (S.equals("TLE")) ans[2]++;
else ans[3]++;
}
for (int i = 0; i < 4; i++) {
System.out.print(str[i]);
System.out.print(" x ");
System.out.println(ans[i]);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
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,
13,
40,
13,
14,
4,
18,
13,
13,
40,
13,
14,
4,
18,
13,
13,
40,
13,
14,
4,
18,
13,
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,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
146,
5
],
[
146,
6
],
[
6,
7
],
[
6,
8
],
[
146,
9
],
[
9,
10
],
[
9,
11
],
[
146,
12
],
[
12,
13
],
[
12,
14
],
[
146,
15
],
[
15,
16
],
[
15,
17
],
[
146,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
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
],
[
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
],
[
59,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
66,
71
],
[
71,
72
],
[
66,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
73,
78
],
[
78,
79
],
[
73,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
80,
85
],
[
85,
86
],
[
20,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
95,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
93,
99
],
[
95,
100
],
[
20,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
109,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
107,
113
],
[
109,
114
],
[
20,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
123,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
121,
127
],
[
123,
128
],
[
20,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
137,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
136,
140
],
[
135,
141
],
[
137,
142
],
[
18,
143
],
[
143,
144
],
[
0,
145
],
[
145,
146
],
[
145,
147
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\t\tstatic String s1=\"AC\";\n\t\tstatic String s2=\"WA\";\n\t\tstatic String s3=\"TLE\";\n\t\tstatic String s4=\"RE\";\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tint c1=0,c2=0,c3=0,c4=0;\n\t\tfor\t(int i=0;i<n;i++)\n\t\t{\n\t\t\t\n\t\t\tString s=scan.next();\n\t\t\tif(s.contains(s1)) c1++;\n\t\t\telse if(s.contains(s2)) c2++;\n\t\t\telse if (s.contains(s3)) c3++;\n\t\t\telse if(s.contains(s4)) c4++;\n\t\t}\n\t\tSystem.out.println(s1+\" \"+\"x\"+\" \"+c1);\n\t\tSystem.out.println(s2+\" \"+\"x\"+\" \"+c2);\n\t\tSystem.out.println(s3+\" \"+\"x\"+\" \"+c3);\n\t\tSystem.out.println(s4+\" \"+\"x\"+\" \"+c4);\n\t\t\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\t\tstatic String s1=\"AC\";\n\t\tstatic String s2=\"WA\";\n\t\tstatic String s3=\"TLE\";\n\t\tstatic String s4=\"RE\";\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tint c1=0,c2=0,c3=0,c4=0;\n\t\tfor\t(int i=0;i<n;i++)\n\t\t{\n\t\t\t\n\t\t\tString s=scan.next();\n\t\t\tif(s.contains(s1)) c1++;\n\t\t\telse if(s.contains(s2)) c2++;\n\t\t\telse if (s.contains(s3)) c3++;\n\t\t\telse if(s.contains(s4)) c4++;\n\t\t}\n\t\tSystem.out.println(s1+\" \"+\"x\"+\" \"+c1);\n\t\tSystem.out.println(s2+\" \"+\"x\"+\" \"+c2);\n\t\tSystem.out.println(s3+\" \"+\"x\"+\" \"+c3);\n\t\tSystem.out.println(s4+\" \"+\"x\"+\" \"+c4);\n\t\t\n\n\t}\n\n}",
"Main",
"static String s1=\"AC\";",
"s1",
"\"AC\"",
"static String s2=\"WA\";",
"s2",
"\"WA\"",
"static String s3=\"TLE\";",
"s3",
"\"TLE\"",
"static String s4=\"RE\";",
"s4",
"\"RE\"",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tint c1=0,c2=0,c3=0,c4=0;\n\t\tfor\t(int i=0;i<n;i++)\n\t\t{\n\t\t\t\n\t\t\tString s=scan.next();\n\t\t\tif(s.contains(s1)) c1++;\n\t\t\telse if(s.contains(s2)) c2++;\n\t\t\telse if (s.contains(s3)) c3++;\n\t\t\telse if(s.contains(s4)) c4++;\n\t\t}\n\t\tSystem.out.println(s1+\" \"+\"x\"+\" \"+c1);\n\t\tSystem.out.println(s2+\" \"+\"x\"+\" \"+c2);\n\t\tSystem.out.println(s3+\" \"+\"x\"+\" \"+c3);\n\t\tSystem.out.println(s4+\" \"+\"x\"+\" \"+c4);\n\t\t\n\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tint c1=0,c2=0,c3=0,c4=0;\n\t\tfor\t(int i=0;i<n;i++)\n\t\t{\n\t\t\t\n\t\t\tString s=scan.next();\n\t\t\tif(s.contains(s1)) c1++;\n\t\t\telse if(s.contains(s2)) c2++;\n\t\t\telse if (s.contains(s3)) c3++;\n\t\t\telse if(s.contains(s4)) c4++;\n\t\t}\n\t\tSystem.out.println(s1+\" \"+\"x\"+\" \"+c1);\n\t\tSystem.out.println(s2+\" \"+\"x\"+\" \"+c2);\n\t\tSystem.out.println(s3+\" \"+\"x\"+\" \"+c3);\n\t\tSystem.out.println(s4+\" \"+\"x\"+\" \"+c4);\n\t\t\n\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n=scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int c1=0",
"c1",
"0",
"c2=0",
"c2",
"0",
"c3=0",
"c3",
"0",
"c4=0;",
"c4",
"0",
"for\t(int i=0;i<n;i++)\n\t\t{\n\t\t\t\n\t\t\tString s=scan.next();\n\t\t\tif(s.contains(s1)) c1++;\n\t\t\telse if(s.contains(s2)) c2++;\n\t\t\telse if (s.contains(s3)) c3++;\n\t\t\telse if(s.contains(s4)) c4++;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\n\t\t\tString s=scan.next();\n\t\t\tif(s.contains(s1)) c1++;\n\t\t\telse if(s.contains(s2)) c2++;\n\t\t\telse if (s.contains(s3)) c3++;\n\t\t\telse if(s.contains(s4)) c4++;\n\t\t}",
"{\n\t\t\t\n\t\t\tString s=scan.next();\n\t\t\tif(s.contains(s1)) c1++;\n\t\t\telse if(s.contains(s2)) c2++;\n\t\t\telse if (s.contains(s3)) c3++;\n\t\t\telse if(s.contains(s4)) c4++;\n\t\t}",
"String s=scan.next();",
"s",
"scan.next()",
"scan.next",
"scan",
"if(s.contains(s1)) c1++;\n\t\t\telse if(s.contains(s2)) c2++;\n\t\t\telse if (s.contains(s3)) c3++;\n\t\t\telse if(s.contains(s4)) c4++;",
"s.contains(s1)",
"s.contains",
"s",
"s1",
"c1++",
"c1",
"if(s.contains(s2)) c2++;\n\t\t\telse if (s.contains(s3)) c3++;\n\t\t\telse if(s.contains(s4)) c4++;",
"s.contains(s2)",
"s.contains",
"s",
"s2",
"c2++",
"c2",
"if (s.contains(s3)) c3++;\n\t\t\telse if(s.contains(s4)) c4++;",
"s.contains(s3)",
"s.contains",
"s",
"s3",
"c3++",
"c3",
"if(s.contains(s4)) c4++;",
"s.contains(s4)",
"s.contains",
"s",
"s4",
"c4++",
"c4",
"System.out.println(s1+\" \"+\"x\"+\" \"+c1)",
"System.out.println",
"System.out",
"System",
"System.out",
"s1+\" \"+\"x\"+\" \"+c1",
"\" \"",
"\"x\"",
"s1+\" \"+\"x\"+\" \"+c1",
"s1",
"\" \"",
"\"x\"",
"\" \"",
"c1",
"System.out.println(s2+\" \"+\"x\"+\" \"+c2)",
"System.out.println",
"System.out",
"System",
"System.out",
"s2+\" \"+\"x\"+\" \"+c2",
"\" \"",
"\"x\"",
"s2+\" \"+\"x\"+\" \"+c2",
"s2",
"\" \"",
"\"x\"",
"\" \"",
"c2",
"System.out.println(s3+\" \"+\"x\"+\" \"+c3)",
"System.out.println",
"System.out",
"System",
"System.out",
"s3+\" \"+\"x\"+\" \"+c3",
"\" \"",
"\"x\"",
"s3+\" \"+\"x\"+\" \"+c3",
"s3",
"\" \"",
"\"x\"",
"\" \"",
"c3",
"System.out.println(s4+\" \"+\"x\"+\" \"+c4)",
"System.out.println",
"System.out",
"System",
"System.out",
"s4+\" \"+\"x\"+\" \"+c4",
"\" \"",
"\"x\"",
"s4+\" \"+\"x\"+\" \"+c4",
"s4",
"\" \"",
"\"x\"",
"\" \"",
"c4",
"String[] args",
"args",
"public class Main {\n\t\tstatic String s1=\"AC\";\n\t\tstatic String s2=\"WA\";\n\t\tstatic String s3=\"TLE\";\n\t\tstatic String s4=\"RE\";\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tint c1=0,c2=0,c3=0,c4=0;\n\t\tfor\t(int i=0;i<n;i++)\n\t\t{\n\t\t\t\n\t\t\tString s=scan.next();\n\t\t\tif(s.contains(s1)) c1++;\n\t\t\telse if(s.contains(s2)) c2++;\n\t\t\telse if (s.contains(s3)) c3++;\n\t\t\telse if(s.contains(s4)) c4++;\n\t\t}\n\t\tSystem.out.println(s1+\" \"+\"x\"+\" \"+c1);\n\t\tSystem.out.println(s2+\" \"+\"x\"+\" \"+c2);\n\t\tSystem.out.println(s3+\" \"+\"x\"+\" \"+c3);\n\t\tSystem.out.println(s4+\" \"+\"x\"+\" \"+c4);\n\t\t\n\n\t}\n\n}",
"public class Main {\n\t\tstatic String s1=\"AC\";\n\t\tstatic String s2=\"WA\";\n\t\tstatic String s3=\"TLE\";\n\t\tstatic String s4=\"RE\";\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tint c1=0,c2=0,c3=0,c4=0;\n\t\tfor\t(int i=0;i<n;i++)\n\t\t{\n\t\t\t\n\t\t\tString s=scan.next();\n\t\t\tif(s.contains(s1)) c1++;\n\t\t\telse if(s.contains(s2)) c2++;\n\t\t\telse if (s.contains(s3)) c3++;\n\t\t\telse if(s.contains(s4)) c4++;\n\t\t}\n\t\tSystem.out.println(s1+\" \"+\"x\"+\" \"+c1);\n\t\tSystem.out.println(s2+\" \"+\"x\"+\" \"+c2);\n\t\tSystem.out.println(s3+\" \"+\"x\"+\" \"+c3);\n\t\tSystem.out.println(s4+\" \"+\"x\"+\" \"+c4);\n\t\t\n\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
static String s1="AC";
static String s2="WA";
static String s3="TLE";
static String s4="RE";
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n=scan.nextInt();
int c1=0,c2=0,c3=0,c4=0;
for (int i=0;i<n;i++)
{
String s=scan.next();
if(s.contains(s1)) c1++;
else if(s.contains(s2)) c2++;
else if (s.contains(s3)) c3++;
else if(s.contains(s4)) c4++;
}
System.out.println(s1+" "+"x"+" "+c1);
System.out.println(s2+" "+"x"+" "+c2);
System.out.println(s3+" "+"x"+" "+c3);
System.out.println(s4+" "+"x"+" "+c4);
}
}
|
[
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,
4,
18,
13,
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
],
[
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
],
[
29,
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
],
[
39,
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
],
[
8,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
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
],
[
6,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
]
| [
"import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint number = scanner.nextInt();\n\t\tint acCount = 0;\n\t\tint waCount = 0;\n\t\tint tleCount = 0;\n\t\tint reCount = 0;\n\t\twhile (scanner.hasNext()) {\n\t\t\tString str = scanner.next();\n\t\t\tif (str.equals(\"AC\")) {\n\t\t\t\tacCount++;\n\t\t\t} else if (str.equals(\"WA\")) {\n\t\t\t\twaCount++;\n\t\t\t} else if (str.equals(\"TLE\")) {\n\t\t\t\ttleCount++;\n\t\t\t} else if (str.equals(\"RE\")) {\n\t\t\t\treCount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + acCount);\n\t\tSystem.out.println(\"WA x \" + waCount);\n\t\tSystem.out.println(\"TLE x \" + tleCount);\n\t\tSystem.out.println(\"RE x \" + reCount);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint number = scanner.nextInt();\n\t\tint acCount = 0;\n\t\tint waCount = 0;\n\t\tint tleCount = 0;\n\t\tint reCount = 0;\n\t\twhile (scanner.hasNext()) {\n\t\t\tString str = scanner.next();\n\t\t\tif (str.equals(\"AC\")) {\n\t\t\t\tacCount++;\n\t\t\t} else if (str.equals(\"WA\")) {\n\t\t\t\twaCount++;\n\t\t\t} else if (str.equals(\"TLE\")) {\n\t\t\t\ttleCount++;\n\t\t\t} else if (str.equals(\"RE\")) {\n\t\t\t\treCount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + acCount);\n\t\tSystem.out.println(\"WA x \" + waCount);\n\t\tSystem.out.println(\"TLE x \" + tleCount);\n\t\tSystem.out.println(\"RE x \" + reCount);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint number = scanner.nextInt();\n\t\tint acCount = 0;\n\t\tint waCount = 0;\n\t\tint tleCount = 0;\n\t\tint reCount = 0;\n\t\twhile (scanner.hasNext()) {\n\t\t\tString str = scanner.next();\n\t\t\tif (str.equals(\"AC\")) {\n\t\t\t\tacCount++;\n\t\t\t} else if (str.equals(\"WA\")) {\n\t\t\t\twaCount++;\n\t\t\t} else if (str.equals(\"TLE\")) {\n\t\t\t\ttleCount++;\n\t\t\t} else if (str.equals(\"RE\")) {\n\t\t\t\treCount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + acCount);\n\t\tSystem.out.println(\"WA x \" + waCount);\n\t\tSystem.out.println(\"TLE x \" + tleCount);\n\t\tSystem.out.println(\"RE x \" + reCount);\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint number = scanner.nextInt();\n\t\tint acCount = 0;\n\t\tint waCount = 0;\n\t\tint tleCount = 0;\n\t\tint reCount = 0;\n\t\twhile (scanner.hasNext()) {\n\t\t\tString str = scanner.next();\n\t\t\tif (str.equals(\"AC\")) {\n\t\t\t\tacCount++;\n\t\t\t} else if (str.equals(\"WA\")) {\n\t\t\t\twaCount++;\n\t\t\t} else if (str.equals(\"TLE\")) {\n\t\t\t\ttleCount++;\n\t\t\t} else if (str.equals(\"RE\")) {\n\t\t\t\treCount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + acCount);\n\t\tSystem.out.println(\"WA x \" + waCount);\n\t\tSystem.out.println(\"TLE x \" + tleCount);\n\t\tSystem.out.println(\"RE x \" + reCount);\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int number = scanner.nextInt();",
"number",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int acCount = 0;",
"acCount",
"0",
"int waCount = 0;",
"waCount",
"0",
"int tleCount = 0;",
"tleCount",
"0",
"int reCount = 0;",
"reCount",
"0",
"while (scanner.hasNext()) {\n\t\t\tString str = scanner.next();\n\t\t\tif (str.equals(\"AC\")) {\n\t\t\t\tacCount++;\n\t\t\t} else if (str.equals(\"WA\")) {\n\t\t\t\twaCount++;\n\t\t\t} else if (str.equals(\"TLE\")) {\n\t\t\t\ttleCount++;\n\t\t\t} else if (str.equals(\"RE\")) {\n\t\t\t\treCount++;\n\t\t\t}\n\t\t}",
"scanner.hasNext()",
"scanner.hasNext",
"scanner",
"{\n\t\t\tString str = scanner.next();\n\t\t\tif (str.equals(\"AC\")) {\n\t\t\t\tacCount++;\n\t\t\t} else if (str.equals(\"WA\")) {\n\t\t\t\twaCount++;\n\t\t\t} else if (str.equals(\"TLE\")) {\n\t\t\t\ttleCount++;\n\t\t\t} else if (str.equals(\"RE\")) {\n\t\t\t\treCount++;\n\t\t\t}\n\t\t}",
"String str = scanner.next();",
"str",
"scanner.next()",
"scanner.next",
"scanner",
"if (str.equals(\"AC\")) {\n\t\t\t\tacCount++;\n\t\t\t} else if (str.equals(\"WA\")) {\n\t\t\t\twaCount++;\n\t\t\t} else if (str.equals(\"TLE\")) {\n\t\t\t\ttleCount++;\n\t\t\t} else if (str.equals(\"RE\")) {\n\t\t\t\treCount++;\n\t\t\t}",
"str.equals(\"AC\")",
"str.equals",
"str",
"\"AC\"",
"{\n\t\t\t\tacCount++;\n\t\t\t}",
"acCount++",
"acCount",
"if (str.equals(\"WA\")) {\n\t\t\t\twaCount++;\n\t\t\t} else if (str.equals(\"TLE\")) {\n\t\t\t\ttleCount++;\n\t\t\t} else if (str.equals(\"RE\")) {\n\t\t\t\treCount++;\n\t\t\t}",
"str.equals(\"WA\")",
"str.equals",
"str",
"\"WA\"",
"{\n\t\t\t\twaCount++;\n\t\t\t}",
"waCount++",
"waCount",
"if (str.equals(\"TLE\")) {\n\t\t\t\ttleCount++;\n\t\t\t} else if (str.equals(\"RE\")) {\n\t\t\t\treCount++;\n\t\t\t}",
"str.equals(\"TLE\")",
"str.equals",
"str",
"\"TLE\"",
"{\n\t\t\t\ttleCount++;\n\t\t\t}",
"tleCount++",
"tleCount",
"if (str.equals(\"RE\")) {\n\t\t\t\treCount++;\n\t\t\t}",
"str.equals(\"RE\")",
"str.equals",
"str",
"\"RE\"",
"{\n\t\t\t\treCount++;\n\t\t\t}",
"reCount++",
"reCount",
"System.out.println(\"AC x \" + acCount)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + acCount",
"\"AC x \"",
"acCount",
"System.out.println(\"WA x \" + waCount)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + waCount",
"\"WA x \"",
"waCount",
"System.out.println(\"TLE x \" + tleCount)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + tleCount",
"\"TLE x \"",
"tleCount",
"System.out.println(\"RE x \" + reCount)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + reCount",
"\"RE x \"",
"reCount",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint number = scanner.nextInt();\n\t\tint acCount = 0;\n\t\tint waCount = 0;\n\t\tint tleCount = 0;\n\t\tint reCount = 0;\n\t\twhile (scanner.hasNext()) {\n\t\t\tString str = scanner.next();\n\t\t\tif (str.equals(\"AC\")) {\n\t\t\t\tacCount++;\n\t\t\t} else if (str.equals(\"WA\")) {\n\t\t\t\twaCount++;\n\t\t\t} else if (str.equals(\"TLE\")) {\n\t\t\t\ttleCount++;\n\t\t\t} else if (str.equals(\"RE\")) {\n\t\t\t\treCount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + acCount);\n\t\tSystem.out.println(\"WA x \" + waCount);\n\t\tSystem.out.println(\"TLE x \" + tleCount);\n\t\tSystem.out.println(\"RE x \" + reCount);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint number = scanner.nextInt();\n\t\tint acCount = 0;\n\t\tint waCount = 0;\n\t\tint tleCount = 0;\n\t\tint reCount = 0;\n\t\twhile (scanner.hasNext()) {\n\t\t\tString str = scanner.next();\n\t\t\tif (str.equals(\"AC\")) {\n\t\t\t\tacCount++;\n\t\t\t} else if (str.equals(\"WA\")) {\n\t\t\t\twaCount++;\n\t\t\t} else if (str.equals(\"TLE\")) {\n\t\t\t\ttleCount++;\n\t\t\t} else if (str.equals(\"RE\")) {\n\t\t\t\treCount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"AC x \" + acCount);\n\t\tSystem.out.println(\"WA x \" + waCount);\n\t\tSystem.out.println(\"TLE x \" + tleCount);\n\t\tSystem.out.println(\"RE x \" + reCount);\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int number = scanner.nextInt();
int acCount = 0;
int waCount = 0;
int tleCount = 0;
int reCount = 0;
while (scanner.hasNext()) {
String str = scanner.next();
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);
}
}
|
[
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 public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n // 入力を受け取る\n int N = sc.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 = sc.next();\n if (S.equals(\"AC\")) {\n ac++;\n } else if (S.equals(\"WA\")) {\n wa++;\n } else if (S.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.util.*;",
"util.*",
"java",
"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 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 = sc.next();\n if (S.equals(\"AC\")) {\n ac++;\n } else if (S.equals(\"WA\")) {\n wa++;\n } else if (S.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) {\n Scanner sc = new Scanner(System.in);\n // 入力を受け取る\n int N = sc.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 = sc.next();\n if (S.equals(\"AC\")) {\n ac++;\n } else if (S.equals(\"WA\")) {\n wa++;\n } else if (S.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 // 入力を受け取る\n int N = sc.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 = sc.next();\n if (S.equals(\"AC\")) {\n ac++;\n } else if (S.equals(\"WA\")) {\n wa++;\n } else if (S.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 String S = sc.next();\n if (S.equals(\"AC\")) {\n ac++;\n } else if (S.equals(\"WA\")) {\n wa++;\n } else if (S.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 String S = sc.next();\n if (S.equals(\"AC\")) {\n ac++;\n } else if (S.equals(\"WA\")) {\n wa++;\n } else if (S.equals(\"TLE\")) {\n tle++;\n } else {\n re++;\n }\n }",
"{\n String S = sc.next();\n if (S.equals(\"AC\")) {\n ac++;\n } else if (S.equals(\"WA\")) {\n wa++;\n } else if (S.equals(\"TLE\")) {\n tle++;\n } else {\n re++;\n }\n }",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"if (S.equals(\"AC\")) {\n ac++;\n } else if (S.equals(\"WA\")) {\n wa++;\n } else if (S.equals(\"TLE\")) {\n tle++;\n } else {\n re++;\n }",
"S.equals(\"AC\")",
"S.equals",
"S",
"\"AC\"",
"{\n ac++;\n }",
"ac++",
"ac",
"if (S.equals(\"WA\")) {\n wa++;\n } else if (S.equals(\"TLE\")) {\n tle++;\n } else {\n re++;\n }",
"S.equals(\"WA\")",
"S.equals",
"S",
"\"WA\"",
"{\n wa++;\n }",
"wa++",
"wa",
"if (S.equals(\"TLE\")) {\n tle++;\n } else {\n re++;\n }",
"S.equals(\"TLE\")",
"S.equals",
"S",
"\"TLE\"",
"{\n tle++;\n }",
"tle++",
"tle",
"{\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 // 入力を受け取る\n int N = sc.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 = sc.next();\n if (S.equals(\"AC\")) {\n ac++;\n } else if (S.equals(\"WA\")) {\n wa++;\n } else if (S.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) {\n Scanner sc = new Scanner(System.in);\n // 入力を受け取る\n int N = sc.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 = sc.next();\n if (S.equals(\"AC\")) {\n ac++;\n } else if (S.equals(\"WA\")) {\n wa++;\n } else if (S.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.util.*;
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++;
} 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,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
38,
30,
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,
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,
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
],
[
98,
5
],
[
98,
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
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
22,
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
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
49,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
49,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
49,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
22,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
86,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
84,
90
],
[
83,
91
],
[
82,
92
],
[
81,
93
],
[
86,
94
],
[
6,
95
],
[
95,
96
],
[
0,
97
],
[
97,
98
],
[
97,
99
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\n\t\t\tint num = scanner.nextInt();\n\n\t\t\tfor (int i = 0; i < num; i++) {\n\n\t\t\t\tString s = scanner.next();\n\n\t\t\t\tswitch (s) {\n\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tac++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"WA\":\n\t\t\t\t\twa++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\ttle++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tre++;\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(\"AC x \" + ac + \"\\nWA x \" + wa + \"\\nTLE x \" + tle + \"\\nRE x \" + re);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\n\t\t\tint num = scanner.nextInt();\n\n\t\t\tfor (int i = 0; i < num; i++) {\n\n\t\t\t\tString s = scanner.next();\n\n\t\t\t\tswitch (s) {\n\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tac++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"WA\":\n\t\t\t\t\twa++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\ttle++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tre++;\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(\"AC x \" + ac + \"\\nWA x \" + wa + \"\\nTLE x \" + tle + \"\\nRE x \" + re);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\n\t\t\tint num = scanner.nextInt();\n\n\t\t\tfor (int i = 0; i < num; i++) {\n\n\t\t\t\tString s = scanner.next();\n\n\t\t\t\tswitch (s) {\n\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tac++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"WA\":\n\t\t\t\t\twa++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\ttle++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tre++;\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(\"AC x \" + ac + \"\\nWA x \" + wa + \"\\nTLE x \" + tle + \"\\nRE x \" + re);\n\t\t}\n\t}",
"main",
"{\n\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\n\t\t\tint num = scanner.nextInt();\n\n\t\t\tfor (int i = 0; i < num; i++) {\n\n\t\t\t\tString s = scanner.next();\n\n\t\t\t\tswitch (s) {\n\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tac++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"WA\":\n\t\t\t\t\twa++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\ttle++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tre++;\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(\"AC x \" + ac + \"\\nWA x \" + wa + \"\\nTLE x \" + tle + \"\\nRE x \" + re);\n\t\t}\n\t}",
"int ac = 0;",
"ac",
"0",
"int wa = 0;",
"wa",
"0",
"int tle = 0;",
"tle",
"0",
"int re = 0;",
"re",
"0",
"try (Scanner scanner = new Scanner(System.in)) {\n\n\t\t\tint num = scanner.nextInt();\n\n\t\t\tfor (int i = 0; i < num; i++) {\n\n\t\t\t\tString s = scanner.next();\n\n\t\t\t\tswitch (s) {\n\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tac++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"WA\":\n\t\t\t\t\twa++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\ttle++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tre++;\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(\"AC x \" + ac + \"\\nWA x \" + wa + \"\\nTLE x \" + tle + \"\\nRE x \" + re);\n\t\t}",
"{\n\n\t\t\tint num = scanner.nextInt();\n\n\t\t\tfor (int i = 0; i < num; i++) {\n\n\t\t\t\tString s = scanner.next();\n\n\t\t\t\tswitch (s) {\n\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tac++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"WA\":\n\t\t\t\t\twa++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\ttle++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tre++;\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(\"AC x \" + ac + \"\\nWA x \" + wa + \"\\nTLE x \" + tle + \"\\nRE x \" + re);\n\t\t}",
"Scanner scanner = new Scanner(System.in)",
"Scanner scanner = new Scanner(System.in)",
"new Scanner(System.in)",
"int num = scanner.nextInt();",
"num",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for (int i = 0; i < num; i++) {\n\n\t\t\t\tString s = scanner.next();\n\n\t\t\t\tswitch (s) {\n\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tac++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"WA\":\n\t\t\t\t\twa++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\ttle++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tre++;\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n\n\t\t\t\tString s = scanner.next();\n\n\t\t\t\tswitch (s) {\n\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tac++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"WA\":\n\t\t\t\t\twa++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\ttle++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tre++;\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\t\t\t}",
"{\n\n\t\t\t\tString s = scanner.next();\n\n\t\t\t\tswitch (s) {\n\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tac++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"WA\":\n\t\t\t\t\twa++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\ttle++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tre++;\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\t\t\t}",
"String s = scanner.next();",
"s",
"scanner.next()",
"scanner.next",
"scanner",
"switch (s) {\n\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tac++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"WA\":\n\t\t\t\t\twa++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\ttle++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tre++;\n\t\t\t\t\tbreak;\n\n\t\t\t\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 + \"\\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\tpublic static void main(String[] args){\n\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\n\t\t\tint num = scanner.nextInt();\n\n\t\t\tfor (int i = 0; i < num; i++) {\n\n\t\t\t\tString s = scanner.next();\n\n\t\t\t\tswitch (s) {\n\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tac++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"WA\":\n\t\t\t\t\twa++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\ttle++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tre++;\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(\"AC x \" + ac + \"\\nWA x \" + wa + \"\\nTLE x \" + tle + \"\\nRE x \" + re);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\n\t\tint ac = 0;\n\t\tint wa = 0;\n\t\tint tle = 0;\n\t\tint re = 0;\n\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\n\t\t\tint num = scanner.nextInt();\n\n\t\t\tfor (int i = 0; i < num; i++) {\n\n\t\t\t\tString s = scanner.next();\n\n\t\t\t\tswitch (s) {\n\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tac++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"WA\":\n\t\t\t\t\twa++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\ttle++;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tre++;\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(\"AC x \" + ac + \"\\nWA x \" + wa + \"\\nTLE x \" + tle + \"\\nRE x \" + re);\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
try (Scanner scanner = new Scanner(System.in)) {
int num = scanner.nextInt();
for (int i = 0; i < num; 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 + "\nWA x " + wa + "\nTLE x " + tle + "\nRE x " + re);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
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,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
41,
13,
20,
17,
41,
13,
4,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
40,
18,
13,
4,
18,
13,
4,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
4,
18,
13,
13,
17,
18,
13,
13,
23,
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,
42,
2,
2,
13,
17,
40,
4,
18,
13,
0,
13,
20,
29,
4,
18,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
173,
8
],
[
173,
9
],
[
9,
10
],
[
173,
11
],
[
11,
12
],
[
173,
13
],
[
13,
14
],
[
173,
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
],
[
28,
29
],
[
27,
30
],
[
27,
31
],
[
17,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
32,
36
],
[
17,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
37,
41
],
[
17,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
42,
46
],
[
17,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
47,
51
],
[
17,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
52,
56
],
[
17,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
57,
61
],
[
17,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
62,
66
],
[
17,
67
],
[
67,
68
],
[
67,
69
],
[
17,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
17,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
75,
83
],
[
83,
84
],
[
84,
85
],
[
75,
86
],
[
87,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
94,
95
],
[
17,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
96,
104
],
[
104,
105
],
[
105,
106
],
[
96,
107
],
[
108,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
115,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
115,
120
],
[
115,
121
],
[
121,
122
],
[
121,
123
],
[
15,
124
],
[
124,
125
],
[
173,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
130,
133
],
[
133,
134
],
[
173,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
139,
142
],
[
142,
143
],
[
173,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
148,
151
],
[
151,
152
],
[
173,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
156,
165
],
[
165,
166
],
[
165,
167
],
[
155,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
0,
172
],
[
172,
173
],
[
172,
174
]
]
| [
"import java.util.*; \nimport java.io.*;\n\npublic class Main {\n static StringTokenizer st;\n static BufferedReader br; \n static PrintWriter out;\n \n public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n HashMap<String, Integer> Judge_Status1 = new HashMap<String, Integer>();\n HashMap<Integer, String> Judge_Status2 = new HashMap<Integer, String>();\n\n Judge_Status1.put(\"AC\", 0);\n Judge_Status1.put(\"WA\", 1);\n Judge_Status1.put(\"TLE\", 2);\n Judge_Status1.put(\"RE\", 3);\n\n Judge_Status2.put(0, \"AC\");\n Judge_Status2.put(1, \"WA\");\n Judge_Status2.put(2, \"TLE\");\n Judge_Status2.put(3, \"RE\");\n\n int Map[] = new int[4];\n\n int N = nextInt();\n \n for (int i=0; i<N; i++) {\n Map[Judge_Status1.get(next())] ++;\n }\n\n \n for (int i=0; i<4; i++) {\n System.out.println(Judge_Status2.get(i) + \" x \" + Map[i]);\n }\n \n }\n \n \n public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n static StringTokenizer st;\n static BufferedReader br; \n static PrintWriter out;\n \n public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n HashMap<String, Integer> Judge_Status1 = new HashMap<String, Integer>();\n HashMap<Integer, String> Judge_Status2 = new HashMap<Integer, String>();\n\n Judge_Status1.put(\"AC\", 0);\n Judge_Status1.put(\"WA\", 1);\n Judge_Status1.put(\"TLE\", 2);\n Judge_Status1.put(\"RE\", 3);\n\n Judge_Status2.put(0, \"AC\");\n Judge_Status2.put(1, \"WA\");\n Judge_Status2.put(2, \"TLE\");\n Judge_Status2.put(3, \"RE\");\n\n int Map[] = new int[4];\n\n int N = nextInt();\n \n for (int i=0; i<N; i++) {\n Map[Judge_Status1.get(next())] ++;\n }\n\n \n for (int i=0; i<4; i++) {\n System.out.println(Judge_Status2.get(i) + \" x \" + Map[i]);\n }\n \n }\n \n \n public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n}",
"Main",
"static StringTokenizer st;",
"st",
"static BufferedReader br;",
"br",
"static PrintWriter out;",
"out",
"public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n HashMap<String, Integer> Judge_Status1 = new HashMap<String, Integer>();\n HashMap<Integer, String> Judge_Status2 = new HashMap<Integer, String>();\n\n Judge_Status1.put(\"AC\", 0);\n Judge_Status1.put(\"WA\", 1);\n Judge_Status1.put(\"TLE\", 2);\n Judge_Status1.put(\"RE\", 3);\n\n Judge_Status2.put(0, \"AC\");\n Judge_Status2.put(1, \"WA\");\n Judge_Status2.put(2, \"TLE\");\n Judge_Status2.put(3, \"RE\");\n\n int Map[] = new int[4];\n\n int N = nextInt();\n \n for (int i=0; i<N; i++) {\n Map[Judge_Status1.get(next())] ++;\n }\n\n \n for (int i=0; i<4; i++) {\n System.out.println(Judge_Status2.get(i) + \" x \" + Map[i]);\n }\n \n }",
"main",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n\n HashMap<String, Integer> Judge_Status1 = new HashMap<String, Integer>();\n HashMap<Integer, String> Judge_Status2 = new HashMap<Integer, String>();\n\n Judge_Status1.put(\"AC\", 0);\n Judge_Status1.put(\"WA\", 1);\n Judge_Status1.put(\"TLE\", 2);\n Judge_Status1.put(\"RE\", 3);\n\n Judge_Status2.put(0, \"AC\");\n Judge_Status2.put(1, \"WA\");\n Judge_Status2.put(2, \"TLE\");\n Judge_Status2.put(3, \"RE\");\n\n int Map[] = new int[4];\n\n int N = nextInt();\n \n for (int i=0; i<N; i++) {\n Map[Judge_Status1.get(next())] ++;\n }\n\n \n for (int i=0; i<4; i++) {\n System.out.println(Judge_Status2.get(i) + \" x \" + Map[i]);\n }\n \n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"HashMap<String, Integer> Judge_Status1 = new HashMap<String, Integer>();",
"Judge_Status1",
"new HashMap<String, Integer>()",
"HashMap<Integer, String> Judge_Status2 = new HashMap<Integer, String>();",
"Judge_Status2",
"new HashMap<Integer, String>()",
"Judge_Status1.put(\"AC\", 0)",
"Judge_Status1.put",
"Judge_Status1",
"\"AC\"",
"0",
"Judge_Status1.put(\"WA\", 1)",
"Judge_Status1.put",
"Judge_Status1",
"\"WA\"",
"1",
"Judge_Status1.put(\"TLE\", 2)",
"Judge_Status1.put",
"Judge_Status1",
"\"TLE\"",
"2",
"Judge_Status1.put(\"RE\", 3)",
"Judge_Status1.put",
"Judge_Status1",
"\"RE\"",
"3",
"Judge_Status2.put(0, \"AC\")",
"Judge_Status2.put",
"Judge_Status2",
"0",
"\"AC\"",
"Judge_Status2.put(1, \"WA\")",
"Judge_Status2.put",
"Judge_Status2",
"1",
"\"WA\"",
"Judge_Status2.put(2, \"TLE\")",
"Judge_Status2.put",
"Judge_Status2",
"2",
"\"TLE\"",
"Judge_Status2.put(3, \"RE\")",
"Judge_Status2.put",
"Judge_Status2",
"3",
"\"RE\"",
"int Map[] = new int[4];",
"Map",
"new int[4]",
"4",
"int N = nextInt();",
"N",
"nextInt()",
"nextInt",
"for (int i=0; i<N; i++) {\n Map[Judge_Status1.get(next())] ++;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n Map[Judge_Status1.get(next())] ++;\n }",
"{\n Map[Judge_Status1.get(next())] ++;\n }",
"Map[Judge_Status1.get(next())] ++",
"Map[Judge_Status1.get(next())]",
"Map",
"Judge_Status1.get(next())",
"Judge_Status1.get",
"Judge_Status1",
"next()",
"next",
"for (int i=0; i<4; i++) {\n System.out.println(Judge_Status2.get(i) + \" x \" + Map[i]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n System.out.println(Judge_Status2.get(i) + \" x \" + Map[i]);\n }",
"{\n System.out.println(Judge_Status2.get(i) + \" x \" + Map[i]);\n }",
"System.out.println(Judge_Status2.get(i) + \" x \" + Map[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"Judge_Status2.get(i) + \" x \" + Map[i]",
"Judge_Status2.get(i) + \" x \" + Map[i]",
"Judge_Status2.get(i)",
"Judge_Status2.get",
"Judge_Status2",
"i",
"\" x \"",
"Map[i]",
"Map",
"i",
"String[] args",
"args",
"public static int nextInt() throws IOException {\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 static long nextLong() throws IOException {\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 static double nextDouble() throws IOException {\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",
"static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"st = new StringTokenizer(br.readLine().trim())",
"st",
"new StringTokenizer(br.readLine().trim())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public class Main {\n static StringTokenizer st;\n static BufferedReader br; \n static PrintWriter out;\n \n public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n HashMap<String, Integer> Judge_Status1 = new HashMap<String, Integer>();\n HashMap<Integer, String> Judge_Status2 = new HashMap<Integer, String>();\n\n Judge_Status1.put(\"AC\", 0);\n Judge_Status1.put(\"WA\", 1);\n Judge_Status1.put(\"TLE\", 2);\n Judge_Status1.put(\"RE\", 3);\n\n Judge_Status2.put(0, \"AC\");\n Judge_Status2.put(1, \"WA\");\n Judge_Status2.put(2, \"TLE\");\n Judge_Status2.put(3, \"RE\");\n\n int Map[] = new int[4];\n\n int N = nextInt();\n \n for (int i=0; i<N; i++) {\n Map[Judge_Status1.get(next())] ++;\n }\n\n \n for (int i=0; i<4; i++) {\n System.out.println(Judge_Status2.get(i) + \" x \" + Map[i]);\n }\n \n }\n \n \n public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n}",
"public class Main {\n static StringTokenizer st;\n static BufferedReader br; \n static PrintWriter out;\n \n public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n HashMap<String, Integer> Judge_Status1 = new HashMap<String, Integer>();\n HashMap<Integer, String> Judge_Status2 = new HashMap<Integer, String>();\n\n Judge_Status1.put(\"AC\", 0);\n Judge_Status1.put(\"WA\", 1);\n Judge_Status1.put(\"TLE\", 2);\n Judge_Status1.put(\"RE\", 3);\n\n Judge_Status2.put(0, \"AC\");\n Judge_Status2.put(1, \"WA\");\n Judge_Status2.put(2, \"TLE\");\n Judge_Status2.put(3, \"RE\");\n\n int Map[] = new int[4];\n\n int N = nextInt();\n \n for (int i=0; i<N; i++) {\n Map[Judge_Status1.get(next())] ++;\n }\n\n \n for (int i=0; i<4; i++) {\n System.out.println(Judge_Status2.get(i) + \" x \" + Map[i]);\n }\n \n }\n \n \n public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main {
static StringTokenizer st;
static BufferedReader br;
static PrintWriter out;
public static void main(String[] args) throws IOException {
br = new BufferedReader(new InputStreamReader(System.in));
HashMap<String, Integer> Judge_Status1 = new HashMap<String, Integer>();
HashMap<Integer, String> Judge_Status2 = new HashMap<Integer, String>();
Judge_Status1.put("AC", 0);
Judge_Status1.put("WA", 1);
Judge_Status1.put("TLE", 2);
Judge_Status1.put("RE", 3);
Judge_Status2.put(0, "AC");
Judge_Status2.put(1, "WA");
Judge_Status2.put(2, "TLE");
Judge_Status2.put(3, "RE");
int Map[] = new int[4];
int N = nextInt();
for (int i=0; i<N; i++) {
Map[Judge_Status1.get(next())] ++;
}
for (int i=0; i<4; i++) {
System.out.println(Judge_Status2.get(i) + " x " + Map[i]);
}
}
public static int nextInt() throws IOException {
return Integer.parseInt(next());
}
public static long nextLong() throws IOException {
return Long.parseLong(next());
}
public static double nextDouble() throws IOException {
return Double.parseDouble(next());
}
static String next() throws IOException {
while (st == null || !st.hasMoreTokens())
st = new StringTokenizer(br.readLine().trim());
return st.nextToken();
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
17,
12,
13,
30,
41,
13,
4,
13,
41,
13,
20,
17,
42,
2,
40,
13,
17,
4,
13,
4,
18,
4,
18,
13,
13,
4,
18,
13,
4,
13,
13,
12,
13,
30,
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,
14,
4,
18,
13,
17,
40,
18,
13,
17,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
4,
18,
4,
18,
13,
2,
17,
18,
13,
17,
17,
4,
18,
4,
18,
13,
2,
17,
18,
13,
17,
17,
4,
18,
4,
18,
13,
2,
17,
18,
13,
17,
17,
4,
18,
4,
18,
13,
2,
17,
18,
13,
17,
17,
29,
4,
18,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
20,
4,
18,
13,
41,
13,
4,
18,
13,
14,
13,
4,
18,
18,
13,
13,
2,
17,
2,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
0,
13,
20,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
20,
18,
13,
13,
11,
1,
41,
13,
17,
41,
13,
18,
13,
13,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
29,
13,
12,
13,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
20,
18,
13,
13,
11,
1,
41,
13,
17,
41,
13,
18,
13,
13,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
29,
13,
12,
13,
30,
4,
18,
13,
4,
18,
13,
4,
18,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
4,
8
],
[
8,
9
],
[
4,
10
],
[
10,
11
],
[
4,
12
],
[
12,
13
],
[
12,
14
],
[
4,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
17,
22
],
[
22,
23
],
[
22,
24
],
[
17,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
31,
38
],
[
17,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
42,
44
],
[
4,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
48,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
48,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
57,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
57,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
66,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
66,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
75,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
45,
84
],
[
84,
85
],
[
45,
86
],
[
86,
87
],
[
4,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
101,
103
],
[
94,
104
],
[
90,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
112,
114
],
[
105,
115
],
[
90,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
123,
125
],
[
116,
126
],
[
90,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
129,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
134,
136
],
[
127,
137
],
[
90,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
88,
144
],
[
144,
145
],
[
4,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
148,
154
],
[
154,
155
],
[
154,
156
],
[
148,
157
],
[
157,
158
],
[
158,
159
],
[
148,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
148,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
174,
176
],
[
148,
177
],
[
177,
178
],
[
178,
179
],
[
146,
180
],
[
180,
181
],
[
4,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
184,
188
],
[
188,
189
],
[
188,
190
],
[
184,
191
],
[
191,
192
],
[
191,
193
],
[
4,
194
],
[
194,
195
],
[
194,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
198,
201
],
[
201,
202
],
[
202,
203
],
[
4,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
208,
211
],
[
211,
212
],
[
212,
213
],
[
4,
214
],
[
214,
215
],
[
214,
216
],
[
216,
217
],
[
217,
218
],
[
217,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
219,
224
],
[
216,
225
],
[
225,
226
],
[
225,
227
],
[
228,
229
],
[
228,
230
],
[
216,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
233,
235
],
[
232,
236
],
[
236,
237
],
[
236,
238
],
[
238,
239
],
[
238,
240
],
[
231,
241
],
[
241,
242
],
[
241,
243
],
[
231,
244
],
[
244,
245
],
[
245,
246
],
[
231,
247
],
[
247,
248
],
[
248,
249
],
[
249,
250
],
[
249,
251
],
[
248,
252
],
[
252,
253
],
[
253,
254
],
[
252,
255
],
[
255,
256
],
[
255,
257
],
[
216,
258
],
[
258,
259
],
[
4,
260
],
[
260,
261
],
[
260,
262
],
[
262,
263
],
[
263,
264
],
[
263,
265
],
[
265,
266
],
[
266,
267
],
[
267,
268
],
[
268,
269
],
[
265,
270
],
[
262,
271
],
[
271,
272
],
[
271,
273
],
[
274,
275
],
[
274,
276
],
[
262,
277
],
[
277,
278
],
[
278,
279
],
[
279,
280
],
[
279,
281
],
[
278,
282
],
[
282,
283
],
[
282,
284
],
[
284,
285
],
[
284,
286
],
[
277,
287
],
[
287,
288
],
[
287,
289
],
[
277,
290
],
[
290,
291
],
[
291,
292
],
[
277,
293
],
[
293,
294
],
[
294,
295
],
[
295,
296
],
[
295,
297
],
[
294,
298
],
[
298,
299
],
[
299,
300
],
[
298,
301
],
[
301,
302
],
[
301,
303
],
[
262,
304
],
[
304,
305
],
[
4,
306
],
[
306,
307
],
[
306,
308
],
[
308,
309
],
[
309,
310
],
[
310,
311
],
[
308,
312
],
[
312,
313
],
[
313,
314
],
[
308,
315
],
[
315,
316
],
[
316,
317
]
]
| [
"import java.io.*;\n\nclass Main {\n BufferedReader bf;\n PrintWriter writer;\n StringBuilder sb;\n static boolean local_system = false;\n\n void run() throws IOException {\n int t = getInt();\n int[] h = new int[4];\n while(t-->0) add(bf.readLine().trim(),h);\n writer.println(get(h));\n }\n\n void add(String s,int[] h){\n if(s.equals(\"AC\")) h[0]++;\n else if(s.equals(\"WA\")) h[1]++;\n else if(s.equals(\"TLE\")) h[2]++;\n else if(s.equals(\"RE\")) h[3]++;\n }\n String get(int[] h){\n StringBuilder sb = new StringBuilder();\n sb.append(\"AC x \"+h[0]).append(\"\\n\");\n sb.append(\"WA x \"+h[1]).append(\"\\n\");\n sb.append(\"TLE x \"+h[2]).append(\"\\n\");\n sb.append(\"RE x \"+h[3]).append(\"\\n\");\n return sb.toString().trim();\n }\n\n public static void main(String[] args) throws IOException {\n long start_time = System.currentTimeMillis();\n Main obj = new Main();\n obj.run();\n long end_time = System.currentTimeMillis();\n if (local_system) obj.writer.println(\"Time : \" + (end_time - start_time));\n obj.close();\n }\n\n public Main(){\n writer = new PrintWriter(System.out);\n bf = new BufferedReader(new InputStreamReader(System.in));\n sb = new StringBuilder();\n }\n\n public int getInt() throws IOException {\n return Integer.parseInt(bf.readLine());\n }\n\n public long getLong() throws IOException {\n return Long.parseLong(bf.readLine());\n }\n\n public int[] ints() throws IOException {\n String[] data = bf.readLine().split(\" \");\n int[] send = new int[data.length];\n for (int i = 0, h = data.length; i < h; i++) send[i] = Integer.parseInt(data[i]);\n return send;\n }\n\n public long[] longs() throws IOException {\n String[] data = bf.readLine().split(\" \");\n long[] send = new long[data.length];\n for (int i = 0, h = data.length; i < h; i++) send[i] = Long.parseLong(data[i]);\n return send;\n }\n\n public void close() throws IOException{\n writer.flush();\n writer.close();\n bf.close();\n }\n}\n\n",
"import java.io.*;",
"io.*",
"java",
"class Main {\n BufferedReader bf;\n PrintWriter writer;\n StringBuilder sb;\n static boolean local_system = false;\n\n void run() throws IOException {\n int t = getInt();\n int[] h = new int[4];\n while(t-->0) add(bf.readLine().trim(),h);\n writer.println(get(h));\n }\n\n void add(String s,int[] h){\n if(s.equals(\"AC\")) h[0]++;\n else if(s.equals(\"WA\")) h[1]++;\n else if(s.equals(\"TLE\")) h[2]++;\n else if(s.equals(\"RE\")) h[3]++;\n }\n String get(int[] h){\n StringBuilder sb = new StringBuilder();\n sb.append(\"AC x \"+h[0]).append(\"\\n\");\n sb.append(\"WA x \"+h[1]).append(\"\\n\");\n sb.append(\"TLE x \"+h[2]).append(\"\\n\");\n sb.append(\"RE x \"+h[3]).append(\"\\n\");\n return sb.toString().trim();\n }\n\n public static void main(String[] args) throws IOException {\n long start_time = System.currentTimeMillis();\n Main obj = new Main();\n obj.run();\n long end_time = System.currentTimeMillis();\n if (local_system) obj.writer.println(\"Time : \" + (end_time - start_time));\n obj.close();\n }\n\n public Main(){\n writer = new PrintWriter(System.out);\n bf = new BufferedReader(new InputStreamReader(System.in));\n sb = new StringBuilder();\n }\n\n public int getInt() throws IOException {\n return Integer.parseInt(bf.readLine());\n }\n\n public long getLong() throws IOException {\n return Long.parseLong(bf.readLine());\n }\n\n public int[] ints() throws IOException {\n String[] data = bf.readLine().split(\" \");\n int[] send = new int[data.length];\n for (int i = 0, h = data.length; i < h; i++) send[i] = Integer.parseInt(data[i]);\n return send;\n }\n\n public long[] longs() throws IOException {\n String[] data = bf.readLine().split(\" \");\n long[] send = new long[data.length];\n for (int i = 0, h = data.length; i < h; i++) send[i] = Long.parseLong(data[i]);\n return send;\n }\n\n public void close() throws IOException{\n writer.flush();\n writer.close();\n bf.close();\n }\n}",
"Main",
"BufferedReader bf;",
"bf",
"PrintWriter writer;",
"writer",
"StringBuilder sb;",
"sb",
"static boolean local_system = false;",
"local_system",
"false",
"void run() throws IOException {\n int t = getInt();\n int[] h = new int[4];\n while(t-->0) add(bf.readLine().trim(),h);\n writer.println(get(h));\n }",
"run",
"{\n int t = getInt();\n int[] h = new int[4];\n while(t-->0) add(bf.readLine().trim(),h);\n writer.println(get(h));\n }",
"int t = getInt();",
"t",
"getInt()",
"getInt",
"int[] h = new int[4];",
"h",
"new int[4]",
"4",
"while(t-->0) add(bf.readLine().trim(),h);",
"t-->0",
"t--",
"t",
"0",
"add(bf.readLine().trim(),h)",
"add",
"bf.readLine().trim()",
"bf.readLine().trim",
"bf.readLine()",
"bf.readLine",
"bf",
"h",
"writer.println(get(h))",
"writer.println",
"writer",
"get(h)",
"get",
"h",
"void add(String s,int[] h){\n if(s.equals(\"AC\")) h[0]++;\n else if(s.equals(\"WA\")) h[1]++;\n else if(s.equals(\"TLE\")) h[2]++;\n else if(s.equals(\"RE\")) h[3]++;\n }",
"add",
"{\n if(s.equals(\"AC\")) h[0]++;\n else if(s.equals(\"WA\")) h[1]++;\n else if(s.equals(\"TLE\")) h[2]++;\n else if(s.equals(\"RE\")) h[3]++;\n }",
"if(s.equals(\"AC\")) h[0]++;\n else if(s.equals(\"WA\")) h[1]++;\n else if(s.equals(\"TLE\")) h[2]++;\n else if(s.equals(\"RE\")) h[3]++;",
"s.equals(\"AC\")",
"s.equals",
"s",
"\"AC\"",
"h[0]++",
"h[0]",
"h",
"0",
"if(s.equals(\"WA\")) h[1]++;\n else if(s.equals(\"TLE\")) h[2]++;\n else if(s.equals(\"RE\")) h[3]++;",
"s.equals(\"WA\")",
"s.equals",
"s",
"\"WA\"",
"h[1]++",
"h[1]",
"h",
"1",
"if(s.equals(\"TLE\")) h[2]++;\n else if(s.equals(\"RE\")) h[3]++;",
"s.equals(\"TLE\")",
"s.equals",
"s",
"\"TLE\"",
"h[2]++",
"h[2]",
"h",
"2",
"if(s.equals(\"RE\")) h[3]++;",
"s.equals(\"RE\")",
"s.equals",
"s",
"\"RE\"",
"h[3]++",
"h[3]",
"h",
"3",
"String s",
"s",
"int[] h",
"h",
"String get(int[] h){\n StringBuilder sb = new StringBuilder();\n sb.append(\"AC x \"+h[0]).append(\"\\n\");\n sb.append(\"WA x \"+h[1]).append(\"\\n\");\n sb.append(\"TLE x \"+h[2]).append(\"\\n\");\n sb.append(\"RE x \"+h[3]).append(\"\\n\");\n return sb.toString().trim();\n }",
"get",
"{\n StringBuilder sb = new StringBuilder();\n sb.append(\"AC x \"+h[0]).append(\"\\n\");\n sb.append(\"WA x \"+h[1]).append(\"\\n\");\n sb.append(\"TLE x \"+h[2]).append(\"\\n\");\n sb.append(\"RE x \"+h[3]).append(\"\\n\");\n return sb.toString().trim();\n }",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"sb.append(\"AC x \"+h[0]).append(\"\\n\")",
"sb.append(\"AC x \"+h[0]).append",
"sb.append(\"AC x \"+h[0])",
"sb.append",
"sb",
"\"AC x \"+h[0]",
"\"AC x \"",
"h[0]",
"h",
"0",
"\"\\n\"",
"sb.append(\"WA x \"+h[1]).append(\"\\n\")",
"sb.append(\"WA x \"+h[1]).append",
"sb.append(\"WA x \"+h[1])",
"sb.append",
"sb",
"\"WA x \"+h[1]",
"\"WA x \"",
"h[1]",
"h",
"1",
"\"\\n\"",
"sb.append(\"TLE x \"+h[2]).append(\"\\n\")",
"sb.append(\"TLE x \"+h[2]).append",
"sb.append(\"TLE x \"+h[2])",
"sb.append",
"sb",
"\"TLE x \"+h[2]",
"\"TLE x \"",
"h[2]",
"h",
"2",
"\"\\n\"",
"sb.append(\"RE x \"+h[3]).append(\"\\n\")",
"sb.append(\"RE x \"+h[3]).append",
"sb.append(\"RE x \"+h[3])",
"sb.append",
"sb",
"\"RE x \"+h[3]",
"\"RE x \"",
"h[3]",
"h",
"3",
"\"\\n\"",
"return sb.toString().trim();",
"sb.toString().trim()",
"sb.toString().trim",
"sb.toString()",
"sb.toString",
"sb",
"int[] h",
"h",
"public static void main(String[] args) throws IOException {\n long start_time = System.currentTimeMillis();\n Main obj = new Main();\n obj.run();\n long end_time = System.currentTimeMillis();\n if (local_system) obj.writer.println(\"Time : \" + (end_time - start_time));\n obj.close();\n }",
"main",
"{\n long start_time = System.currentTimeMillis();\n Main obj = new Main();\n obj.run();\n long end_time = System.currentTimeMillis();\n if (local_system) obj.writer.println(\"Time : \" + (end_time - start_time));\n obj.close();\n }",
"long start_time = System.currentTimeMillis();",
"start_time",
"System.currentTimeMillis()",
"System.currentTimeMillis",
"System",
"Main obj = new Main();",
"obj",
"new Main()",
"obj.run()",
"obj.run",
"obj",
"long end_time = System.currentTimeMillis();",
"end_time",
"System.currentTimeMillis()",
"System.currentTimeMillis",
"System",
"if (local_system) obj.writer.println(\"Time : \" + (end_time - start_time));",
"local_system",
"obj.writer.println(\"Time : \" + (end_time - start_time))",
"obj.writer.println",
"obj.writer",
"obj",
"obj.writer",
"\"Time : \" + (end_time - start_time)",
"\"Time : \"",
"(end_time - start_time)",
"end_time",
"start_time",
"obj.close()",
"obj.close",
"obj",
"String[] args",
"args",
"public Main(){\n writer = new PrintWriter(System.out);\n bf = new BufferedReader(new InputStreamReader(System.in));\n sb = new StringBuilder();\n }",
"Main",
"{\n writer = new PrintWriter(System.out);\n bf = new BufferedReader(new InputStreamReader(System.in));\n sb = new StringBuilder();\n }",
"writer = new PrintWriter(System.out)",
"writer",
"new PrintWriter(System.out)",
"bf = new BufferedReader(new InputStreamReader(System.in))",
"bf",
"new BufferedReader(new InputStreamReader(System.in))",
"sb = new StringBuilder()",
"sb",
"new StringBuilder()",
"public int getInt() throws IOException {\n return Integer.parseInt(bf.readLine());\n }",
"getInt",
"{\n return Integer.parseInt(bf.readLine());\n }",
"return Integer.parseInt(bf.readLine());",
"Integer.parseInt(bf.readLine())",
"Integer.parseInt",
"Integer",
"bf.readLine()",
"bf.readLine",
"bf",
"public long getLong() throws IOException {\n return Long.parseLong(bf.readLine());\n }",
"getLong",
"{\n return Long.parseLong(bf.readLine());\n }",
"return Long.parseLong(bf.readLine());",
"Long.parseLong(bf.readLine())",
"Long.parseLong",
"Long",
"bf.readLine()",
"bf.readLine",
"bf",
"public int[] ints() throws IOException {\n String[] data = bf.readLine().split(\" \");\n int[] send = new int[data.length];\n for (int i = 0, h = data.length; i < h; i++) send[i] = Integer.parseInt(data[i]);\n return send;\n }",
"ints",
"{\n String[] data = bf.readLine().split(\" \");\n int[] send = new int[data.length];\n for (int i = 0, h = data.length; i < h; i++) send[i] = Integer.parseInt(data[i]);\n return send;\n }",
"String[] data = bf.readLine().split(\" \");",
"data",
"bf.readLine().split(\" \")",
"bf.readLine().split",
"bf.readLine()",
"bf.readLine",
"bf",
"\" \"",
"int[] send = new int[data.length];",
"send",
"new int[data.length]",
"data.length",
"data",
"data.length",
"for (int i = 0, h = data.length; i < h; i++) send[i] = Integer.parseInt(data[i]);",
"int i = 0, h = data.length;",
"int i = 0",
"i",
"0",
"h = data.length;",
"h",
"data.length",
"data",
"data.length",
"i < h",
"i",
"h",
"i++",
"i++",
"i",
"send[i] = Integer.parseInt(data[i]);",
"send[i] = Integer.parseInt(data[i])",
"send[i]",
"send",
"i",
"Integer.parseInt(data[i])",
"Integer.parseInt",
"Integer",
"data[i]",
"data",
"i",
"return send;",
"send",
"public long[] longs() throws IOException {\n String[] data = bf.readLine().split(\" \");\n long[] send = new long[data.length];\n for (int i = 0, h = data.length; i < h; i++) send[i] = Long.parseLong(data[i]);\n return send;\n }",
"longs",
"{\n String[] data = bf.readLine().split(\" \");\n long[] send = new long[data.length];\n for (int i = 0, h = data.length; i < h; i++) send[i] = Long.parseLong(data[i]);\n return send;\n }",
"String[] data = bf.readLine().split(\" \");",
"data",
"bf.readLine().split(\" \")",
"bf.readLine().split",
"bf.readLine()",
"bf.readLine",
"bf",
"\" \"",
"long[] send = new long[data.length];",
"send",
"new long[data.length]",
"data.length",
"data",
"data.length",
"for (int i = 0, h = data.length; i < h; i++) send[i] = Long.parseLong(data[i]);",
"int i = 0, h = data.length;",
"int i = 0",
"i",
"0",
"h = data.length;",
"h",
"data.length",
"data",
"data.length",
"i < h",
"i",
"h",
"i++",
"i++",
"i",
"send[i] = Long.parseLong(data[i]);",
"send[i] = Long.parseLong(data[i])",
"send[i]",
"send",
"i",
"Long.parseLong(data[i])",
"Long.parseLong",
"Long",
"data[i]",
"data",
"i",
"return send;",
"send",
"public void close() throws IOException{\n writer.flush();\n writer.close();\n bf.close();\n }",
"close",
"{\n writer.flush();\n writer.close();\n bf.close();\n }",
"writer.flush()",
"writer.flush",
"writer",
"writer.close()",
"writer.close",
"writer",
"bf.close()",
"bf.close",
"bf"
]
| import java.io.*;
class Main {
BufferedReader bf;
PrintWriter writer;
StringBuilder sb;
static boolean local_system = false;
void run() throws IOException {
int t = getInt();
int[] h = new int[4];
while(t-->0) add(bf.readLine().trim(),h);
writer.println(get(h));
}
void add(String s,int[] h){
if(s.equals("AC")) h[0]++;
else if(s.equals("WA")) h[1]++;
else if(s.equals("TLE")) h[2]++;
else if(s.equals("RE")) h[3]++;
}
String get(int[] h){
StringBuilder sb = new StringBuilder();
sb.append("AC x "+h[0]).append("\n");
sb.append("WA x "+h[1]).append("\n");
sb.append("TLE x "+h[2]).append("\n");
sb.append("RE x "+h[3]).append("\n");
return sb.toString().trim();
}
public static void main(String[] args) throws IOException {
long start_time = System.currentTimeMillis();
Main obj = new Main();
obj.run();
long end_time = System.currentTimeMillis();
if (local_system) obj.writer.println("Time : " + (end_time - start_time));
obj.close();
}
public Main(){
writer = new PrintWriter(System.out);
bf = new BufferedReader(new InputStreamReader(System.in));
sb = new StringBuilder();
}
public int getInt() throws IOException {
return Integer.parseInt(bf.readLine());
}
public long getLong() throws IOException {
return Long.parseLong(bf.readLine());
}
public int[] ints() throws IOException {
String[] data = bf.readLine().split(" ");
int[] send = new int[data.length];
for (int i = 0, h = data.length; i < h; i++) send[i] = Integer.parseInt(data[i]);
return send;
}
public long[] longs() throws IOException {
String[] data = bf.readLine().split(" ");
long[] send = new long[data.length];
for (int i = 0, h = data.length; i < h; i++) send[i] = Long.parseLong(data[i]);
return send;
}
public void close() throws IOException{
writer.flush();
writer.close();
bf.close();
}
}
|
[
7,
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,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
28,
13,
13,
30,
30,
28,
13,
4,
18,
13,
30,
30,
14,
4,
18,
13,
4,
18,
13,
30,
4,
18,
13,
13,
2,
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,
4,
18,
18,
13,
13,
2,
17,
4,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
20,
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
],
[
40,
42
],
[
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
],
[
56,
59
],
[
59,
60
],
[
60,
61
],
[
8,
62
],
[
62,
63
],
[
62,
64
],
[
62,
65
],
[
66,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
67,
72
],
[
73,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
78,
79
],
[
79,
80
],
[
74,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
82,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
86,
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
],
[
8,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
124,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
132,
133
],
[
131,
134
],
[
6,
135
],
[
135,
136
],
[
0,
137
],
[
137,
138
],
[
137,
139
]
]
| [
"import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint n = sc.nextInt();\n \tMap<String, Integer> inputMap = new HashMap<String, Integer>();\n \tinputMap.put(\"AC\", 0);\n \tinputMap.put(\"WA\", 0);\n inputMap.put(\"TLE\", 0);\n \tinputMap.put(\"RE\", 0);\n \n \tList<String> inputList = new ArrayList<String>();\n\t\tfor(int i=0;i<n;i++){\n \tinputList.add(sc.next());\n }\n \n for(String str: inputList){\n \tfor(Map.Entry<String, Integer> entry: inputMap.entrySet()){\n \tif( str.equals(entry.getKey())){\n \tinputMap.replace(str, entry.getValue()+1);\n }\n }\n }\n\n\t\t// 出力\n \t\n System.out.println(\"AC x \"+inputMap.get(\"AC\"));\n System.out.println(\"WA x \"+inputMap.get(\"WA\"));\n System.out.println(\"TLE x \"+inputMap.get(\"TLE\"));\n System.out.println(\"RE x \"+inputMap.get(\"RE\"));\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint n = sc.nextInt();\n \tMap<String, Integer> inputMap = new HashMap<String, Integer>();\n \tinputMap.put(\"AC\", 0);\n \tinputMap.put(\"WA\", 0);\n inputMap.put(\"TLE\", 0);\n \tinputMap.put(\"RE\", 0);\n \n \tList<String> inputList = new ArrayList<String>();\n\t\tfor(int i=0;i<n;i++){\n \tinputList.add(sc.next());\n }\n \n for(String str: inputList){\n \tfor(Map.Entry<String, Integer> entry: inputMap.entrySet()){\n \tif( str.equals(entry.getKey())){\n \tinputMap.replace(str, entry.getValue()+1);\n }\n }\n }\n\n\t\t// 出力\n \t\n System.out.println(\"AC x \"+inputMap.get(\"AC\"));\n System.out.println(\"WA x \"+inputMap.get(\"WA\"));\n System.out.println(\"TLE x \"+inputMap.get(\"TLE\"));\n System.out.println(\"RE x \"+inputMap.get(\"RE\"));\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint n = sc.nextInt();\n \tMap<String, Integer> inputMap = new HashMap<String, Integer>();\n \tinputMap.put(\"AC\", 0);\n \tinputMap.put(\"WA\", 0);\n inputMap.put(\"TLE\", 0);\n \tinputMap.put(\"RE\", 0);\n \n \tList<String> inputList = new ArrayList<String>();\n\t\tfor(int i=0;i<n;i++){\n \tinputList.add(sc.next());\n }\n \n for(String str: inputList){\n \tfor(Map.Entry<String, Integer> entry: inputMap.entrySet()){\n \tif( str.equals(entry.getKey())){\n \tinputMap.replace(str, entry.getValue()+1);\n }\n }\n }\n\n\t\t// 出力\n \t\n System.out.println(\"AC x \"+inputMap.get(\"AC\"));\n System.out.println(\"WA x \"+inputMap.get(\"WA\"));\n System.out.println(\"TLE x \"+inputMap.get(\"TLE\"));\n System.out.println(\"RE x \"+inputMap.get(\"RE\"));\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint n = sc.nextInt();\n \tMap<String, Integer> inputMap = new HashMap<String, Integer>();\n \tinputMap.put(\"AC\", 0);\n \tinputMap.put(\"WA\", 0);\n inputMap.put(\"TLE\", 0);\n \tinputMap.put(\"RE\", 0);\n \n \tList<String> inputList = new ArrayList<String>();\n\t\tfor(int i=0;i<n;i++){\n \tinputList.add(sc.next());\n }\n \n for(String str: inputList){\n \tfor(Map.Entry<String, Integer> entry: inputMap.entrySet()){\n \tif( str.equals(entry.getKey())){\n \tinputMap.replace(str, entry.getValue()+1);\n }\n }\n }\n\n\t\t// 出力\n \t\n System.out.println(\"AC x \"+inputMap.get(\"AC\"));\n System.out.println(\"WA x \"+inputMap.get(\"WA\"));\n System.out.println(\"TLE x \"+inputMap.get(\"TLE\"));\n System.out.println(\"RE x \"+inputMap.get(\"RE\"));\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Map<String, Integer> inputMap = new HashMap<String, Integer>();",
"inputMap",
"new HashMap<String, Integer>()",
"inputMap.put(\"AC\", 0)",
"inputMap.put",
"inputMap",
"\"AC\"",
"0",
"inputMap.put(\"WA\", 0)",
"inputMap.put",
"inputMap",
"\"WA\"",
"0",
"inputMap.put(\"TLE\", 0)",
"inputMap.put",
"inputMap",
"\"TLE\"",
"0",
"inputMap.put(\"RE\", 0)",
"inputMap.put",
"inputMap",
"\"RE\"",
"0",
"List<String> inputList = new ArrayList<String>();",
"inputList",
"new ArrayList<String>()",
"for(int i=0;i<n;i++){\n \tinputList.add(sc.next());\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \tinputList.add(sc.next());\n }",
"{\n \tinputList.add(sc.next());\n }",
"inputList.add(sc.next())",
"inputList.add",
"inputList",
"sc.next()",
"sc.next",
"sc",
"for(String str: inputList){\n \tfor(Map.Entry<String, Integer> entry: inputMap.entrySet()){\n \tif( str.equals(entry.getKey())){\n \tinputMap.replace(str, entry.getValue()+1);\n }\n }\n }",
"String str",
"inputList",
"{\n \tfor(Map.Entry<String, Integer> entry: inputMap.entrySet()){\n \tif( str.equals(entry.getKey())){\n \tinputMap.replace(str, entry.getValue()+1);\n }\n }\n }",
"{\n \tfor(Map.Entry<String, Integer> entry: inputMap.entrySet()){\n \tif( str.equals(entry.getKey())){\n \tinputMap.replace(str, entry.getValue()+1);\n }\n }\n }",
"for(Map.Entry<String, Integer> entry: inputMap.entrySet()){\n \tif( str.equals(entry.getKey())){\n \tinputMap.replace(str, entry.getValue()+1);\n }\n }",
"Map.Entry<String, Integer> entry",
"inputMap.entrySet()",
"inputMap.entrySet",
"inputMap",
"{\n \tif( str.equals(entry.getKey())){\n \tinputMap.replace(str, entry.getValue()+1);\n }\n }",
"{\n \tif( str.equals(entry.getKey())){\n \tinputMap.replace(str, entry.getValue()+1);\n }\n }",
"if( str.equals(entry.getKey())){\n \tinputMap.replace(str, entry.getValue()+1);\n }",
"str.equals(entry.getKey())",
"str.equals",
"str",
"entry.getKey()",
"entry.getKey",
"entry",
"{\n \tinputMap.replace(str, entry.getValue()+1);\n }",
"inputMap.replace(str, entry.getValue()+1)",
"inputMap.replace",
"inputMap",
"str",
"entry.getValue()+1",
"entry.getValue()",
"entry.getValue",
"entry",
"1",
"System.out.println(\"AC x \"+inputMap.get(\"AC\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \"+inputMap.get(\"AC\")",
"\"AC x \"",
"inputMap.get(\"AC\")",
"inputMap.get",
"inputMap",
"\"AC\"",
"System.out.println(\"WA x \"+inputMap.get(\"WA\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \"+inputMap.get(\"WA\")",
"\"WA x \"",
"inputMap.get(\"WA\")",
"inputMap.get",
"inputMap",
"\"WA\"",
"System.out.println(\"TLE x \"+inputMap.get(\"TLE\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \"+inputMap.get(\"TLE\")",
"\"TLE x \"",
"inputMap.get(\"TLE\")",
"inputMap.get",
"inputMap",
"\"TLE\"",
"System.out.println(\"RE x \"+inputMap.get(\"RE\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \"+inputMap.get(\"RE\")",
"\"RE x \"",
"inputMap.get(\"RE\")",
"inputMap.get",
"inputMap",
"\"RE\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint n = sc.nextInt();\n \tMap<String, Integer> inputMap = new HashMap<String, Integer>();\n \tinputMap.put(\"AC\", 0);\n \tinputMap.put(\"WA\", 0);\n inputMap.put(\"TLE\", 0);\n \tinputMap.put(\"RE\", 0);\n \n \tList<String> inputList = new ArrayList<String>();\n\t\tfor(int i=0;i<n;i++){\n \tinputList.add(sc.next());\n }\n \n for(String str: inputList){\n \tfor(Map.Entry<String, Integer> entry: inputMap.entrySet()){\n \tif( str.equals(entry.getKey())){\n \tinputMap.replace(str, entry.getValue()+1);\n }\n }\n }\n\n\t\t// 出力\n \t\n System.out.println(\"AC x \"+inputMap.get(\"AC\"));\n System.out.println(\"WA x \"+inputMap.get(\"WA\"));\n System.out.println(\"TLE x \"+inputMap.get(\"TLE\"));\n System.out.println(\"RE x \"+inputMap.get(\"RE\"));\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 整数の入力\n\t\tint n = sc.nextInt();\n \tMap<String, Integer> inputMap = new HashMap<String, Integer>();\n \tinputMap.put(\"AC\", 0);\n \tinputMap.put(\"WA\", 0);\n inputMap.put(\"TLE\", 0);\n \tinputMap.put(\"RE\", 0);\n \n \tList<String> inputList = new ArrayList<String>();\n\t\tfor(int i=0;i<n;i++){\n \tinputList.add(sc.next());\n }\n \n for(String str: inputList){\n \tfor(Map.Entry<String, Integer> entry: inputMap.entrySet()){\n \tif( str.equals(entry.getKey())){\n \tinputMap.replace(str, entry.getValue()+1);\n }\n }\n }\n\n\t\t// 出力\n \t\n System.out.println(\"AC x \"+inputMap.get(\"AC\"));\n System.out.println(\"WA x \"+inputMap.get(\"WA\"));\n System.out.println(\"TLE x \"+inputMap.get(\"TLE\"));\n System.out.println(\"RE x \"+inputMap.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 n = sc.nextInt();
Map<String, Integer> inputMap = new HashMap<String, Integer>();
inputMap.put("AC", 0);
inputMap.put("WA", 0);
inputMap.put("TLE", 0);
inputMap.put("RE", 0);
List<String> inputList = new ArrayList<String>();
for(int i=0;i<n;i++){
inputList.add(sc.next());
}
for(String str: inputList){
for(Map.Entry<String, Integer> entry: inputMap.entrySet()){
if( str.equals(entry.getKey())){
inputMap.replace(str, entry.getValue()+1);
}
}
}
// 出力
System.out.println("AC x "+inputMap.get("AC"));
System.out.println("WA x "+inputMap.get("WA"));
System.out.println("TLE x "+inputMap.get("TLE"));
System.out.println("RE x "+inputMap.get("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,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
4,
18,
18,
13,
13,
18,
13,
13,
30,
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
],
[
131,
5
],
[
131,
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
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
32,
35
],
[
32,
36
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
37,
47
],
[
47,
48
],
[
48,
49
],
[
37,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
8,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
66,
68
],
[
59,
69
],
[
69,
70
],
[
70,
71
],
[
59,
72
],
[
73,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
79,
80
],
[
79,
81
],
[
74,
82
],
[
82,
83
],
[
83,
84
],
[
74,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
87,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
8,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
106,
107
],
[
106,
108
],
[
101,
109
],
[
109,
110
],
[
110,
111
],
[
101,
112
],
[
113,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
120,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
120,
125
],
[
125,
126
],
[
125,
127
],
[
6,
128
],
[
128,
129
],
[
0,
130
],
[
130,
131
],
[
130,
132
]
]
| [
"import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint p = sc.nextInt();\n\t\tString[]a=new String[p+1];\n\t\tString[] r = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n\t\tint[] x= {0,0,0,0};\n\t\tfor(int i=0;i<p+1;++i) {\n\t\t\ta[i]= sc.nextLine();\n\n\n\t\t}\n\t\tfor(int i=1;i<p+1;i++) {\n\t\t\tfor(int j=0;j<4;j++) {\n\t\t\t\tif(a[i].equals(r[j])) {\n\t\t\t\t\tx[j]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\tfor(int i =0;i<4;i++) {\n\t\t\t\tSystem.out.println(r[i]+\" x \"+x[i]);\n\t\t\t}\n\n\n\t\t}\n\n\t}\n\n\n",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint p = sc.nextInt();\n\t\tString[]a=new String[p+1];\n\t\tString[] r = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n\t\tint[] x= {0,0,0,0};\n\t\tfor(int i=0;i<p+1;++i) {\n\t\t\ta[i]= sc.nextLine();\n\n\n\t\t}\n\t\tfor(int i=1;i<p+1;i++) {\n\t\t\tfor(int j=0;j<4;j++) {\n\t\t\t\tif(a[i].equals(r[j])) {\n\t\t\t\t\tx[j]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\tfor(int i =0;i<4;i++) {\n\t\t\t\tSystem.out.println(r[i]+\" x \"+x[i]);\n\t\t\t}\n\n\n\t\t}\n\n\t}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint p = sc.nextInt();\n\t\tString[]a=new String[p+1];\n\t\tString[] r = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n\t\tint[] x= {0,0,0,0};\n\t\tfor(int i=0;i<p+1;++i) {\n\t\t\ta[i]= sc.nextLine();\n\n\n\t\t}\n\t\tfor(int i=1;i<p+1;i++) {\n\t\t\tfor(int j=0;j<4;j++) {\n\t\t\t\tif(a[i].equals(r[j])) {\n\t\t\t\t\tx[j]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\tfor(int i =0;i<4;i++) {\n\t\t\t\tSystem.out.println(r[i]+\" x \"+x[i]);\n\t\t\t}\n\n\n\t\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint p = sc.nextInt();\n\t\tString[]a=new String[p+1];\n\t\tString[] r = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n\t\tint[] x= {0,0,0,0};\n\t\tfor(int i=0;i<p+1;++i) {\n\t\t\ta[i]= sc.nextLine();\n\n\n\t\t}\n\t\tfor(int i=1;i<p+1;i++) {\n\t\t\tfor(int j=0;j<4;j++) {\n\t\t\t\tif(a[i].equals(r[j])) {\n\t\t\t\t\tx[j]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\tfor(int i =0;i<4;i++) {\n\t\t\t\tSystem.out.println(r[i]+\" x \"+x[i]);\n\t\t\t}\n\n\n\t\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int p = sc.nextInt();",
"p",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String[]a=new String[p+1];",
"a",
"new String[p+1]",
"p+1",
"p",
"1",
"String[] r = {\"AC\", \"WA\", \"TLE\", \"RE\"};",
"r",
"{\"AC\", \"WA\", \"TLE\", \"RE\"}",
"\"AC\"",
"\"WA\"",
"\"TLE\"",
"\"RE\"",
"int[] x= {0,0,0,0};",
"x",
"{0,0,0,0}",
"0",
"0",
"0",
"0",
"for(int i=0;i<p+1;++i) {\n\t\t\ta[i]= sc.nextLine();\n\n\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<p+1",
"i",
"p+1",
"p",
"1",
"++i",
"++i",
"i",
"{\n\t\t\ta[i]= sc.nextLine();\n\n\n\t\t}",
"{\n\t\t\ta[i]= sc.nextLine();\n\n\n\t\t}",
"a[i]= sc.nextLine()",
"a[i]",
"a",
"i",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for(int i=1;i<p+1;i++) {\n\t\t\tfor(int j=0;j<4;j++) {\n\t\t\t\tif(a[i].equals(r[j])) {\n\t\t\t\t\tx[j]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<p+1",
"i",
"p+1",
"p",
"1",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0;j<4;j++) {\n\t\t\t\tif(a[i].equals(r[j])) {\n\t\t\t\t\tx[j]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0;j<4;j++) {\n\t\t\t\tif(a[i].equals(r[j])) {\n\t\t\t\t\tx[j]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int j=0;j<4;j++) {\n\t\t\t\tif(a[i].equals(r[j])) {\n\t\t\t\t\tx[j]++;\n\t\t\t\t}\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<4",
"j",
"4",
"j++",
"j++",
"j",
"{\n\t\t\t\tif(a[i].equals(r[j])) {\n\t\t\t\t\tx[j]++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(a[i].equals(r[j])) {\n\t\t\t\t\tx[j]++;\n\t\t\t\t}\n\t\t\t}",
"if(a[i].equals(r[j])) {\n\t\t\t\t\tx[j]++;\n\t\t\t\t}",
"a[i].equals(r[j])",
"a[i].equals",
"a[i]",
"a",
"i",
"r[j]",
"r",
"j",
"{\n\t\t\t\t\tx[j]++;\n\t\t\t\t}",
"x[j]++",
"x[j]",
"x",
"j",
"for(int i =0;i<4;i++) {\n\t\t\t\tSystem.out.println(r[i]+\" x \"+x[i]);\n\t\t\t}",
"int i =0;",
"int i =0;",
"i",
"0",
"i<4",
"i",
"4",
"i++",
"i++",
"i",
"{\n\t\t\t\tSystem.out.println(r[i]+\" x \"+x[i]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.println(r[i]+\" x \"+x[i]);\n\t\t\t}",
"System.out.println(r[i]+\" x \"+x[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"r[i]+\" x \"+x[i]",
"r[i]+\" x \"+x[i]",
"r[i]",
"r",
"i",
"\" x \"",
"x[i]",
"x",
"i",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint p = sc.nextInt();\n\t\tString[]a=new String[p+1];\n\t\tString[] r = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n\t\tint[] x= {0,0,0,0};\n\t\tfor(int i=0;i<p+1;++i) {\n\t\t\ta[i]= sc.nextLine();\n\n\n\t\t}\n\t\tfor(int i=1;i<p+1;i++) {\n\t\t\tfor(int j=0;j<4;j++) {\n\t\t\t\tif(a[i].equals(r[j])) {\n\t\t\t\t\tx[j]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\tfor(int i =0;i<4;i++) {\n\t\t\t\tSystem.out.println(r[i]+\" x \"+x[i]);\n\t\t\t}\n\n\n\t\t}\n\n\t}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint p = sc.nextInt();\n\t\tString[]a=new String[p+1];\n\t\tString[] r = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n\t\tint[] x= {0,0,0,0};\n\t\tfor(int i=0;i<p+1;++i) {\n\t\t\ta[i]= sc.nextLine();\n\n\n\t\t}\n\t\tfor(int i=1;i<p+1;i++) {\n\t\t\tfor(int j=0;j<4;j++) {\n\t\t\t\tif(a[i].equals(r[j])) {\n\t\t\t\t\tx[j]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\tfor(int i =0;i<4;i++) {\n\t\t\t\tSystem.out.println(r[i]+\" x \"+x[i]);\n\t\t\t}\n\n\n\t\t}\n\n\t}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int p = sc.nextInt();
String[]a=new String[p+1];
String[] r = {"AC", "WA", "TLE", "RE"};
int[] x= {0,0,0,0};
for(int i=0;i<p+1;++i) {
a[i]= sc.nextLine();
}
for(int i=1;i<p+1;i++) {
for(int j=0;j<4;j++) {
if(a[i].equals(r[j])) {
x[j]++;
}
}
}
for(int i =0;i<4;i++) {
System.out.println(r[i]+" x "+x[i]);
}
}
}
|
[
7,
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,
30,
4,
18,
13,
13,
2,
4,
18,
13,
13,
17,
30,
4,
18,
13,
13,
17,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
14,
2,
4,
18,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
14,
2,
4,
18,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
14,
2,
4,
18,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
14,
2,
4,
18,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
192,
5
],
[
192,
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
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
38,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
44,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
48,
53
],
[
38,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
55,
59
],
[
8,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
8,
65
],
[
65,
66
],
[
65,
67
],
[
8,
68
],
[
68,
69
],
[
68,
70
],
[
8,
71
],
[
71,
72
],
[
71,
73
],
[
8,
74
],
[
74,
75
],
[
74,
76
],
[
8,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
78,
83
],
[
77,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
90,
92
],
[
77,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
8,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
106,
111
],
[
105,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
105,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
129,
132
],
[
8,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
135,
138
],
[
134,
139
],
[
133,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
141,
146
],
[
146,
147
],
[
146,
148
],
[
133,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
150,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
158,
159
],
[
157,
160
],
[
8,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
163,
166
],
[
162,
167
],
[
161,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
169,
174
],
[
174,
175
],
[
174,
176
],
[
161,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
178,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
186,
187
],
[
185,
188
],
[
6,
189
],
[
189,
190
],
[
0,
191
],
[
191,
192
],
[
191,
193
]
]
| [
"import java.util.*;\npublic class Main{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tMap<String,Integer> mp=new TreeMap<String,Integer>();\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tString p=sc.next();\n\t\t\tif(mp.containsKey(p))\n\t\t\t{\n\t\t\t\tmp.put(p,mp.get(p)+1);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmp.put(p,1);\n\t\t\t}\n\t\t}\n\t Set<Map.Entry<String,Integer>> sp=mp.entrySet();\n\t long flag1=0;\n\t long flag2=0;\n\t long flag3=0;\n\t long flag4=0;\n\t if(mp.get(\"AC\")==null)\n\t {\n\t\t System.out.println(\"AC x \"+\"0\"); \n\t }\n\t else\n\t {\n\t System.out.println(\"AC x \"+mp.get(\"AC\"));\n\t }\n\t if(mp.get(\"WA\")==null)\n\t {\n\t\t System.out.println(\"WA x \"+\"0\"); \n\t }\n\t else\n\t {\n\t System.out.println(\"WA x \"+mp.get(\"WA\"));\n\t }\n\t if(mp.get(\"TLE\")==null)\n\t {\n\t\t System.out.println(\"TLE x \"+\"0\"); \n\t }\n\t else\n\t {\n\t System.out.println(\"TLE x \"+mp.get(\"TLE\"));\n\t }\n\t if(mp.get(\"RE\")==null)\n\t {\n\t\t System.out.println(\"RE x \"+\"0\"); \n\t }\n\t else\n\t {\n\t System.out.println(\"RE x \"+mp.get(\"RE\"));\n\t }\n\t\n\t /* for(Map.Entry<String,Integer> st:sp)\n\t {\n\t\t if(st.getKey().equals(\"AC\"))\n\t\t {\n\t\t \t flag1=1;\n\t\t \t System.out.println(\"AC x \"+st.getValue());\n\t\t \t continue;\n\t\t }\n\t\t if(st.getKey().equals(\"WA\"))\n\t\t {\n\t\t \t flag2=1;\n\t\t \t System.out.println(\"WA x \"+st.getValue());\n\t\t \t continue;\n\t\t }\n\t\t if(st.getKey().equals(\"TLE\"))\n\t\t {\n\t\t \t flag3=1;\n\t\t \t System.out.println(\"TLE x \"+st.getValue());\n\t\t \t continue;\n\t\t \t \n\t\t }\n\t\t if(st.getKey().equals(\"RE\"))\n\t\t {\n\t\t \t flag4=1;\n\t\t \t System.out.println(\"RE x \"+st.getValue());\n\t\t \t continue;\n\t\t }\n\t }\n\t if(flag1==0)\n\t {\n\t\t System.out.println(\"AC x \"+\"0\"); \n\t }\n\t if(flag2==0)\n\t {\n\t\t System.out.println(\"WA x \"+\"0\"); \n\t }\n\t if(flag3==0)\n\t {\n\t\t System.out.println(\"TLE x \"+\"0\"); \n\t }\n\t if(flag4==0)\n\t {\n\t\t System.out.println(\"RE x \"+\"0\"); \n\t }\n\t */\n\t\t\n\t}\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tMap<String,Integer> mp=new TreeMap<String,Integer>();\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tString p=sc.next();\n\t\t\tif(mp.containsKey(p))\n\t\t\t{\n\t\t\t\tmp.put(p,mp.get(p)+1);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmp.put(p,1);\n\t\t\t}\n\t\t}\n\t Set<Map.Entry<String,Integer>> sp=mp.entrySet();\n\t long flag1=0;\n\t long flag2=0;\n\t long flag3=0;\n\t long flag4=0;\n\t if(mp.get(\"AC\")==null)\n\t {\n\t\t System.out.println(\"AC x \"+\"0\"); \n\t }\n\t else\n\t {\n\t System.out.println(\"AC x \"+mp.get(\"AC\"));\n\t }\n\t if(mp.get(\"WA\")==null)\n\t {\n\t\t System.out.println(\"WA x \"+\"0\"); \n\t }\n\t else\n\t {\n\t System.out.println(\"WA x \"+mp.get(\"WA\"));\n\t }\n\t if(mp.get(\"TLE\")==null)\n\t {\n\t\t System.out.println(\"TLE x \"+\"0\"); \n\t }\n\t else\n\t {\n\t System.out.println(\"TLE x \"+mp.get(\"TLE\"));\n\t }\n\t if(mp.get(\"RE\")==null)\n\t {\n\t\t System.out.println(\"RE x \"+\"0\"); \n\t }\n\t else\n\t {\n\t System.out.println(\"RE x \"+mp.get(\"RE\"));\n\t }\n\t\n\t /* for(Map.Entry<String,Integer> st:sp)\n\t {\n\t\t if(st.getKey().equals(\"AC\"))\n\t\t {\n\t\t \t flag1=1;\n\t\t \t System.out.println(\"AC x \"+st.getValue());\n\t\t \t continue;\n\t\t }\n\t\t if(st.getKey().equals(\"WA\"))\n\t\t {\n\t\t \t flag2=1;\n\t\t \t System.out.println(\"WA x \"+st.getValue());\n\t\t \t continue;\n\t\t }\n\t\t if(st.getKey().equals(\"TLE\"))\n\t\t {\n\t\t \t flag3=1;\n\t\t \t System.out.println(\"TLE x \"+st.getValue());\n\t\t \t continue;\n\t\t \t \n\t\t }\n\t\t if(st.getKey().equals(\"RE\"))\n\t\t {\n\t\t \t flag4=1;\n\t\t \t System.out.println(\"RE x \"+st.getValue());\n\t\t \t continue;\n\t\t }\n\t }\n\t if(flag1==0)\n\t {\n\t\t System.out.println(\"AC x \"+\"0\"); \n\t }\n\t if(flag2==0)\n\t {\n\t\t System.out.println(\"WA x \"+\"0\"); \n\t }\n\t if(flag3==0)\n\t {\n\t\t System.out.println(\"TLE x \"+\"0\"); \n\t }\n\t if(flag4==0)\n\t {\n\t\t System.out.println(\"RE x \"+\"0\"); \n\t }\n\t */\n\t\t\n\t}\n\n}",
"Main",
"public static void main(String[] args)\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tMap<String,Integer> mp=new TreeMap<String,Integer>();\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tString p=sc.next();\n\t\t\tif(mp.containsKey(p))\n\t\t\t{\n\t\t\t\tmp.put(p,mp.get(p)+1);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmp.put(p,1);\n\t\t\t}\n\t\t}\n\t Set<Map.Entry<String,Integer>> sp=mp.entrySet();\n\t long flag1=0;\n\t long flag2=0;\n\t long flag3=0;\n\t long flag4=0;\n\t if(mp.get(\"AC\")==null)\n\t {\n\t\t System.out.println(\"AC x \"+\"0\"); \n\t }\n\t else\n\t {\n\t System.out.println(\"AC x \"+mp.get(\"AC\"));\n\t }\n\t if(mp.get(\"WA\")==null)\n\t {\n\t\t System.out.println(\"WA x \"+\"0\"); \n\t }\n\t else\n\t {\n\t System.out.println(\"WA x \"+mp.get(\"WA\"));\n\t }\n\t if(mp.get(\"TLE\")==null)\n\t {\n\t\t System.out.println(\"TLE x \"+\"0\"); \n\t }\n\t else\n\t {\n\t System.out.println(\"TLE x \"+mp.get(\"TLE\"));\n\t }\n\t if(mp.get(\"RE\")==null)\n\t {\n\t\t System.out.println(\"RE x \"+\"0\"); \n\t }\n\t else\n\t {\n\t System.out.println(\"RE x \"+mp.get(\"RE\"));\n\t }\n\t\n\t /* for(Map.Entry<String,Integer> st:sp)\n\t {\n\t\t if(st.getKey().equals(\"AC\"))\n\t\t {\n\t\t \t flag1=1;\n\t\t \t System.out.println(\"AC x \"+st.getValue());\n\t\t \t continue;\n\t\t }\n\t\t if(st.getKey().equals(\"WA\"))\n\t\t {\n\t\t \t flag2=1;\n\t\t \t System.out.println(\"WA x \"+st.getValue());\n\t\t \t continue;\n\t\t }\n\t\t if(st.getKey().equals(\"TLE\"))\n\t\t {\n\t\t \t flag3=1;\n\t\t \t System.out.println(\"TLE x \"+st.getValue());\n\t\t \t continue;\n\t\t \t \n\t\t }\n\t\t if(st.getKey().equals(\"RE\"))\n\t\t {\n\t\t \t flag4=1;\n\t\t \t System.out.println(\"RE x \"+st.getValue());\n\t\t \t continue;\n\t\t }\n\t }\n\t if(flag1==0)\n\t {\n\t\t System.out.println(\"AC x \"+\"0\"); \n\t }\n\t if(flag2==0)\n\t {\n\t\t System.out.println(\"WA x \"+\"0\"); \n\t }\n\t if(flag3==0)\n\t {\n\t\t System.out.println(\"TLE x \"+\"0\"); \n\t }\n\t if(flag4==0)\n\t {\n\t\t System.out.println(\"RE x \"+\"0\"); \n\t }\n\t */\n\t\t\n\t}",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tMap<String,Integer> mp=new TreeMap<String,Integer>();\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tString p=sc.next();\n\t\t\tif(mp.containsKey(p))\n\t\t\t{\n\t\t\t\tmp.put(p,mp.get(p)+1);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmp.put(p,1);\n\t\t\t}\n\t\t}\n\t Set<Map.Entry<String,Integer>> sp=mp.entrySet();\n\t long flag1=0;\n\t long flag2=0;\n\t long flag3=0;\n\t long flag4=0;\n\t if(mp.get(\"AC\")==null)\n\t {\n\t\t System.out.println(\"AC x \"+\"0\"); \n\t }\n\t else\n\t {\n\t System.out.println(\"AC x \"+mp.get(\"AC\"));\n\t }\n\t if(mp.get(\"WA\")==null)\n\t {\n\t\t System.out.println(\"WA x \"+\"0\"); \n\t }\n\t else\n\t {\n\t System.out.println(\"WA x \"+mp.get(\"WA\"));\n\t }\n\t if(mp.get(\"TLE\")==null)\n\t {\n\t\t System.out.println(\"TLE x \"+\"0\"); \n\t }\n\t else\n\t {\n\t System.out.println(\"TLE x \"+mp.get(\"TLE\"));\n\t }\n\t if(mp.get(\"RE\")==null)\n\t {\n\t\t System.out.println(\"RE x \"+\"0\"); \n\t }\n\t else\n\t {\n\t System.out.println(\"RE x \"+mp.get(\"RE\"));\n\t }\n\t\n\t /* for(Map.Entry<String,Integer> st:sp)\n\t {\n\t\t if(st.getKey().equals(\"AC\"))\n\t\t {\n\t\t \t flag1=1;\n\t\t \t System.out.println(\"AC x \"+st.getValue());\n\t\t \t continue;\n\t\t }\n\t\t if(st.getKey().equals(\"WA\"))\n\t\t {\n\t\t \t flag2=1;\n\t\t \t System.out.println(\"WA x \"+st.getValue());\n\t\t \t continue;\n\t\t }\n\t\t if(st.getKey().equals(\"TLE\"))\n\t\t {\n\t\t \t flag3=1;\n\t\t \t System.out.println(\"TLE x \"+st.getValue());\n\t\t \t continue;\n\t\t \t \n\t\t }\n\t\t if(st.getKey().equals(\"RE\"))\n\t\t {\n\t\t \t flag4=1;\n\t\t \t System.out.println(\"RE x \"+st.getValue());\n\t\t \t continue;\n\t\t }\n\t }\n\t if(flag1==0)\n\t {\n\t\t System.out.println(\"AC x \"+\"0\"); \n\t }\n\t if(flag2==0)\n\t {\n\t\t System.out.println(\"WA x \"+\"0\"); \n\t }\n\t if(flag3==0)\n\t {\n\t\t System.out.println(\"TLE x \"+\"0\"); \n\t }\n\t if(flag4==0)\n\t {\n\t\t System.out.println(\"RE x \"+\"0\"); \n\t }\n\t */\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",
"Map<String,Integer> mp=new TreeMap<String,Integer>();",
"mp",
"new TreeMap<String,Integer>()",
"for(int i=0;i<n;i++)\n\t\t{\n\t\t\tString p=sc.next();\n\t\t\tif(mp.containsKey(p))\n\t\t\t{\n\t\t\t\tmp.put(p,mp.get(p)+1);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmp.put(p,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 p=sc.next();\n\t\t\tif(mp.containsKey(p))\n\t\t\t{\n\t\t\t\tmp.put(p,mp.get(p)+1);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmp.put(p,1);\n\t\t\t}\n\t\t}",
"{\n\t\t\tString p=sc.next();\n\t\t\tif(mp.containsKey(p))\n\t\t\t{\n\t\t\t\tmp.put(p,mp.get(p)+1);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmp.put(p,1);\n\t\t\t}\n\t\t}",
"String p=sc.next();",
"p",
"sc.next()",
"sc.next",
"sc",
"if(mp.containsKey(p))\n\t\t\t{\n\t\t\t\tmp.put(p,mp.get(p)+1);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmp.put(p,1);\n\t\t\t}",
"mp.containsKey(p)",
"mp.containsKey",
"mp",
"p",
"{\n\t\t\t\tmp.put(p,mp.get(p)+1);\n\t\t\t}",
"mp.put(p,mp.get(p)+1)",
"mp.put",
"mp",
"p",
"mp.get(p)+1",
"mp.get(p)",
"mp.get",
"mp",
"p",
"1",
"{\n\t\t\t\tmp.put(p,1);\n\t\t\t}",
"mp.put(p,1)",
"mp.put",
"mp",
"p",
"1",
"Set<Map.Entry<String,Integer>> sp=mp.entrySet();",
"sp",
"mp.entrySet()",
"mp.entrySet",
"mp",
"long flag1=0;",
"flag1",
"0",
"long flag2=0;",
"flag2",
"0",
"long flag3=0;",
"flag3",
"0",
"long flag4=0;",
"flag4",
"0",
"if(mp.get(\"AC\")==null)\n\t {\n\t\t System.out.println(\"AC x \"+\"0\"); \n\t }\n\t else\n\t {\n\t System.out.println(\"AC x \"+mp.get(\"AC\"));\n\t }",
"mp.get(\"AC\")==null",
"mp.get(\"AC\")",
"mp.get",
"mp",
"\"AC\"",
"null",
"{\n\t\t System.out.println(\"AC x \"+\"0\"); \n\t }",
"System.out.println(\"AC x \"+\"0\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \"+\"0\"",
"\"AC x \"",
"\"0\"",
"{\n\t System.out.println(\"AC x \"+mp.get(\"AC\"));\n\t }",
"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\"",
"if(mp.get(\"WA\")==null)\n\t {\n\t\t System.out.println(\"WA x \"+\"0\"); \n\t }\n\t else\n\t {\n\t System.out.println(\"WA x \"+mp.get(\"WA\"));\n\t }",
"mp.get(\"WA\")==null",
"mp.get(\"WA\")",
"mp.get",
"mp",
"\"WA\"",
"null",
"{\n\t\t System.out.println(\"WA x \"+\"0\"); \n\t }",
"System.out.println(\"WA x \"+\"0\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \"+\"0\"",
"\"WA x \"",
"\"0\"",
"{\n\t System.out.println(\"WA x \"+mp.get(\"WA\"));\n\t }",
"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\"",
"if(mp.get(\"TLE\")==null)\n\t {\n\t\t System.out.println(\"TLE x \"+\"0\"); \n\t }\n\t else\n\t {\n\t System.out.println(\"TLE x \"+mp.get(\"TLE\"));\n\t }",
"mp.get(\"TLE\")==null",
"mp.get(\"TLE\")",
"mp.get",
"mp",
"\"TLE\"",
"null",
"{\n\t\t System.out.println(\"TLE x \"+\"0\"); \n\t }",
"System.out.println(\"TLE x \"+\"0\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \"+\"0\"",
"\"TLE x \"",
"\"0\"",
"{\n\t System.out.println(\"TLE x \"+mp.get(\"TLE\"));\n\t }",
"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\"",
"if(mp.get(\"RE\")==null)\n\t {\n\t\t System.out.println(\"RE x \"+\"0\"); \n\t }\n\t else\n\t {\n\t System.out.println(\"RE x \"+mp.get(\"RE\"));\n\t }",
"mp.get(\"RE\")==null",
"mp.get(\"RE\")",
"mp.get",
"mp",
"\"RE\"",
"null",
"{\n\t\t System.out.println(\"RE x \"+\"0\"); \n\t }",
"System.out.println(\"RE x \"+\"0\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \"+\"0\"",
"\"RE x \"",
"\"0\"",
"{\n\t System.out.println(\"RE x \"+mp.get(\"RE\"));\n\t }",
"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{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tMap<String,Integer> mp=new TreeMap<String,Integer>();\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tString p=sc.next();\n\t\t\tif(mp.containsKey(p))\n\t\t\t{\n\t\t\t\tmp.put(p,mp.get(p)+1);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmp.put(p,1);\n\t\t\t}\n\t\t}\n\t Set<Map.Entry<String,Integer>> sp=mp.entrySet();\n\t long flag1=0;\n\t long flag2=0;\n\t long flag3=0;\n\t long flag4=0;\n\t if(mp.get(\"AC\")==null)\n\t {\n\t\t System.out.println(\"AC x \"+\"0\"); \n\t }\n\t else\n\t {\n\t System.out.println(\"AC x \"+mp.get(\"AC\"));\n\t }\n\t if(mp.get(\"WA\")==null)\n\t {\n\t\t System.out.println(\"WA x \"+\"0\"); \n\t }\n\t else\n\t {\n\t System.out.println(\"WA x \"+mp.get(\"WA\"));\n\t }\n\t if(mp.get(\"TLE\")==null)\n\t {\n\t\t System.out.println(\"TLE x \"+\"0\"); \n\t }\n\t else\n\t {\n\t System.out.println(\"TLE x \"+mp.get(\"TLE\"));\n\t }\n\t if(mp.get(\"RE\")==null)\n\t {\n\t\t System.out.println(\"RE x \"+\"0\"); \n\t }\n\t else\n\t {\n\t System.out.println(\"RE x \"+mp.get(\"RE\"));\n\t }\n\t\n\t /* for(Map.Entry<String,Integer> st:sp)\n\t {\n\t\t if(st.getKey().equals(\"AC\"))\n\t\t {\n\t\t \t flag1=1;\n\t\t \t System.out.println(\"AC x \"+st.getValue());\n\t\t \t continue;\n\t\t }\n\t\t if(st.getKey().equals(\"WA\"))\n\t\t {\n\t\t \t flag2=1;\n\t\t \t System.out.println(\"WA x \"+st.getValue());\n\t\t \t continue;\n\t\t }\n\t\t if(st.getKey().equals(\"TLE\"))\n\t\t {\n\t\t \t flag3=1;\n\t\t \t System.out.println(\"TLE x \"+st.getValue());\n\t\t \t continue;\n\t\t \t \n\t\t }\n\t\t if(st.getKey().equals(\"RE\"))\n\t\t {\n\t\t \t flag4=1;\n\t\t \t System.out.println(\"RE x \"+st.getValue());\n\t\t \t continue;\n\t\t }\n\t }\n\t if(flag1==0)\n\t {\n\t\t System.out.println(\"AC x \"+\"0\"); \n\t }\n\t if(flag2==0)\n\t {\n\t\t System.out.println(\"WA x \"+\"0\"); \n\t }\n\t if(flag3==0)\n\t {\n\t\t System.out.println(\"TLE x \"+\"0\"); \n\t }\n\t if(flag4==0)\n\t {\n\t\t System.out.println(\"RE x \"+\"0\"); \n\t }\n\t */\n\t\t\n\t}\n\n}",
"public class Main{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tMap<String,Integer> mp=new TreeMap<String,Integer>();\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tString p=sc.next();\n\t\t\tif(mp.containsKey(p))\n\t\t\t{\n\t\t\t\tmp.put(p,mp.get(p)+1);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmp.put(p,1);\n\t\t\t}\n\t\t}\n\t Set<Map.Entry<String,Integer>> sp=mp.entrySet();\n\t long flag1=0;\n\t long flag2=0;\n\t long flag3=0;\n\t long flag4=0;\n\t if(mp.get(\"AC\")==null)\n\t {\n\t\t System.out.println(\"AC x \"+\"0\"); \n\t }\n\t else\n\t {\n\t System.out.println(\"AC x \"+mp.get(\"AC\"));\n\t }\n\t if(mp.get(\"WA\")==null)\n\t {\n\t\t System.out.println(\"WA x \"+\"0\"); \n\t }\n\t else\n\t {\n\t System.out.println(\"WA x \"+mp.get(\"WA\"));\n\t }\n\t if(mp.get(\"TLE\")==null)\n\t {\n\t\t System.out.println(\"TLE x \"+\"0\"); \n\t }\n\t else\n\t {\n\t System.out.println(\"TLE x \"+mp.get(\"TLE\"));\n\t }\n\t if(mp.get(\"RE\")==null)\n\t {\n\t\t System.out.println(\"RE x \"+\"0\"); \n\t }\n\t else\n\t {\n\t System.out.println(\"RE x \"+mp.get(\"RE\"));\n\t }\n\t\n\t /* for(Map.Entry<String,Integer> st:sp)\n\t {\n\t\t if(st.getKey().equals(\"AC\"))\n\t\t {\n\t\t \t flag1=1;\n\t\t \t System.out.println(\"AC x \"+st.getValue());\n\t\t \t continue;\n\t\t }\n\t\t if(st.getKey().equals(\"WA\"))\n\t\t {\n\t\t \t flag2=1;\n\t\t \t System.out.println(\"WA x \"+st.getValue());\n\t\t \t continue;\n\t\t }\n\t\t if(st.getKey().equals(\"TLE\"))\n\t\t {\n\t\t \t flag3=1;\n\t\t \t System.out.println(\"TLE x \"+st.getValue());\n\t\t \t continue;\n\t\t \t \n\t\t }\n\t\t if(st.getKey().equals(\"RE\"))\n\t\t {\n\t\t \t flag4=1;\n\t\t \t System.out.println(\"RE x \"+st.getValue());\n\t\t \t continue;\n\t\t }\n\t }\n\t if(flag1==0)\n\t {\n\t\t System.out.println(\"AC x \"+\"0\"); \n\t }\n\t if(flag2==0)\n\t {\n\t\t System.out.println(\"WA x \"+\"0\"); \n\t }\n\t if(flag3==0)\n\t {\n\t\t System.out.println(\"TLE x \"+\"0\"); \n\t }\n\t if(flag4==0)\n\t {\n\t\t System.out.println(\"RE x \"+\"0\"); \n\t }\n\t */\n\t\t\n\t}\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();
Map<String,Integer> mp=new TreeMap<String,Integer>();
for(int i=0;i<n;i++)
{
String p=sc.next();
if(mp.containsKey(p))
{
mp.put(p,mp.get(p)+1);
}
else
{
mp.put(p,1);
}
}
Set<Map.Entry<String,Integer>> sp=mp.entrySet();
long flag1=0;
long flag2=0;
long flag3=0;
long flag4=0;
if(mp.get("AC")==null)
{
System.out.println("AC x "+"0");
}
else
{
System.out.println("AC x "+mp.get("AC"));
}
if(mp.get("WA")==null)
{
System.out.println("WA x "+"0");
}
else
{
System.out.println("WA x "+mp.get("WA"));
}
if(mp.get("TLE")==null)
{
System.out.println("TLE x "+"0");
}
else
{
System.out.println("TLE x "+mp.get("TLE"));
}
if(mp.get("RE")==null)
{
System.out.println("RE x "+"0");
}
else
{
System.out.println("RE x "+mp.get("RE"));
}
/* for(Map.Entry<String,Integer> st:sp)
{
if(st.getKey().equals("AC"))
{
flag1=1;
System.out.println("AC x "+st.getValue());
continue;
}
if(st.getKey().equals("WA"))
{
flag2=1;
System.out.println("WA x "+st.getValue());
continue;
}
if(st.getKey().equals("TLE"))
{
flag3=1;
System.out.println("TLE x "+st.getValue());
continue;
}
if(st.getKey().equals("RE"))
{
flag4=1;
System.out.println("RE x "+st.getValue());
continue;
}
}
if(flag1==0)
{
System.out.println("AC x "+"0");
}
if(flag2==0)
{
System.out.println("WA x "+"0");
}
if(flag3==0)
{
System.out.println("TLE x "+"0");
}
if(flag4==0)
{
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,
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,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
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,
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,
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
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
240,
29
],
[
240,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
32,
41
],
[
41,
42
],
[
41,
43
],
[
32,
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
],
[
63,
64
],
[
32,
65
],
[
65,
66
],
[
65,
67
],
[
32,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
68,
72
],
[
32,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
73,
77
],
[
32,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
78,
82
],
[
32,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
83,
87
],
[
32,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
88,
96
],
[
96,
97
],
[
97,
98
],
[
88,
99
],
[
100,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
104,
105
],
[
104,
106
],
[
101,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
111,
112
],
[
111,
113
],
[
107,
114
],
[
32,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
32,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
133,
136
],
[
32,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
137,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
144,
147
],
[
32,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
148,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
155,
158
],
[
30,
159
],
[
159,
160
],
[
240,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
163,
165
],
[
161,
166
],
[
166,
167
],
[
166,
168
],
[
161,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
172,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
177,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
171,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
161,
192
],
[
192,
193
],
[
192,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
196,
199
],
[
199,
200
],
[
161,
201
],
[
201,
202
],
[
201,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
203,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
208,
213
],
[
213,
214
],
[
213,
215
],
[
208,
216
],
[
216,
217
],
[
217,
218
],
[
208,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
220,
224
],
[
224,
225
],
[
203,
226
],
[
226,
227
],
[
201,
228
],
[
228,
229
],
[
161,
230
],
[
230,
231
],
[
230,
232
],
[
232,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
234,
237
],
[
237,
238
],
[
0,
239
],
[
239,
240
],
[
239,
241
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.*;\nimport java.lang.Math;\nimport java.util.Map;\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.math.BigInteger;\n\npublic class Main {\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n int t = fs.nextInt();\n String[] ar = new String[t];\n for (int TT=0;TT<t;TT++) {\n ar[TT] = fs.next();\n }\n HashMap<String,Integer> x = new HashMap<>();\n x.put(\"AC\", 0);\n x.put(\"WA\",0);\n x.put(\"TLE\",0);\n x.put(\"RE\",0);\n\n for (int i = 0; i<t; i++) {\n x.put(ar[i],x.get(ar[i])+1);\n }\n\n System.out.println(\"AC x \" + x.get(\"AC\"));\n System.out.println(\"WA x \" + x.get(\"WA\"));\n System.out.println(\"TLE x \" + x.get(\"TLE\"));\n System.out.println(\"RE x \" + x.get(\"RE\"));\n\n\n\n\n }\n\n\n\n\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n 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 int nextInt() {\n return Integer.parseInt(next());\n }\n 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 long nextLong() {\n return Long.parseLong(next());\n }\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.*;",
"util.*",
"java",
"import java.lang.Math;",
"Math",
"java.lang",
"import java.util.Map;",
"Map",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"public class Main {\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n int t = fs.nextInt();\n String[] ar = new String[t];\n for (int TT=0;TT<t;TT++) {\n ar[TT] = fs.next();\n }\n HashMap<String,Integer> x = new HashMap<>();\n x.put(\"AC\", 0);\n x.put(\"WA\",0);\n x.put(\"TLE\",0);\n x.put(\"RE\",0);\n\n for (int i = 0; i<t; i++) {\n x.put(ar[i],x.get(ar[i])+1);\n }\n\n System.out.println(\"AC x \" + x.get(\"AC\"));\n System.out.println(\"WA x \" + x.get(\"WA\"));\n System.out.println(\"TLE x \" + x.get(\"TLE\"));\n System.out.println(\"RE x \" + x.get(\"RE\"));\n\n\n\n\n }\n\n\n\n\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n 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 int nextInt() {\n return Integer.parseInt(next());\n }\n 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 long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n}",
"Main",
"public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n int t = fs.nextInt();\n String[] ar = new String[t];\n for (int TT=0;TT<t;TT++) {\n ar[TT] = fs.next();\n }\n HashMap<String,Integer> x = new HashMap<>();\n x.put(\"AC\", 0);\n x.put(\"WA\",0);\n x.put(\"TLE\",0);\n x.put(\"RE\",0);\n\n for (int i = 0; i<t; i++) {\n x.put(ar[i],x.get(ar[i])+1);\n }\n\n System.out.println(\"AC x \" + x.get(\"AC\"));\n System.out.println(\"WA x \" + x.get(\"WA\"));\n System.out.println(\"TLE x \" + x.get(\"TLE\"));\n System.out.println(\"RE x \" + x.get(\"RE\"));\n\n\n\n\n }",
"main",
"{\n FastScanner fs = new FastScanner();\n int t = fs.nextInt();\n String[] ar = new String[t];\n for (int TT=0;TT<t;TT++) {\n ar[TT] = fs.next();\n }\n HashMap<String,Integer> x = new HashMap<>();\n x.put(\"AC\", 0);\n x.put(\"WA\",0);\n x.put(\"TLE\",0);\n x.put(\"RE\",0);\n\n for (int i = 0; i<t; i++) {\n x.put(ar[i],x.get(ar[i])+1);\n }\n\n System.out.println(\"AC x \" + x.get(\"AC\"));\n System.out.println(\"WA x \" + x.get(\"WA\"));\n System.out.println(\"TLE x \" + x.get(\"TLE\"));\n System.out.println(\"RE x \" + x.get(\"RE\"));\n\n\n\n\n }",
"FastScanner fs = new FastScanner();",
"fs",
"new FastScanner()",
"int t = fs.nextInt();",
"t",
"fs.nextInt()",
"fs.nextInt",
"fs",
"String[] ar = new String[t];",
"ar",
"new String[t]",
"t",
"for (int TT=0;TT<t;TT++) {\n ar[TT] = fs.next();\n }",
"int TT=0;",
"int TT=0;",
"TT",
"0",
"TT<t",
"TT",
"t",
"TT++",
"TT++",
"TT",
"{\n ar[TT] = fs.next();\n }",
"{\n ar[TT] = fs.next();\n }",
"ar[TT] = fs.next()",
"ar[TT]",
"ar",
"TT",
"fs.next()",
"fs.next",
"fs",
"HashMap<String,Integer> x = new HashMap<>();",
"x",
"new HashMap<>()",
"x.put(\"AC\", 0)",
"x.put",
"x",
"\"AC\"",
"0",
"x.put(\"WA\",0)",
"x.put",
"x",
"\"WA\"",
"0",
"x.put(\"TLE\",0)",
"x.put",
"x",
"\"TLE\"",
"0",
"x.put(\"RE\",0)",
"x.put",
"x",
"\"RE\"",
"0",
"for (int i = 0; i<t; i++) {\n x.put(ar[i],x.get(ar[i])+1);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<t",
"i",
"t",
"i++",
"i++",
"i",
"{\n x.put(ar[i],x.get(ar[i])+1);\n }",
"{\n x.put(ar[i],x.get(ar[i])+1);\n }",
"x.put(ar[i],x.get(ar[i])+1)",
"x.put",
"x",
"ar[i]",
"ar",
"i",
"x.get(ar[i])+1",
"x.get(ar[i])",
"x.get",
"x",
"ar[i]",
"ar",
"i",
"1",
"System.out.println(\"AC x \" + x.get(\"AC\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + x.get(\"AC\")",
"\"AC x \"",
"x.get(\"AC\")",
"x.get",
"x",
"\"AC\"",
"System.out.println(\"WA x \" + x.get(\"WA\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + x.get(\"WA\")",
"\"WA x \"",
"x.get(\"WA\")",
"x.get",
"x",
"\"WA\"",
"System.out.println(\"TLE x \" + x.get(\"TLE\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + x.get(\"TLE\")",
"\"TLE x \"",
"x.get(\"TLE\")",
"x.get",
"x",
"\"TLE\"",
"System.out.println(\"RE x \" + x.get(\"RE\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + x.get(\"RE\")",
"\"RE x \"",
"x.get(\"RE\")",
"x.get",
"x",
"\"RE\"",
"String[] args",
"args",
"static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n 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 int nextInt() {\n return Integer.parseInt(next());\n }\n 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 long nextLong() {\n return Long.parseLong(next());\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(\"\")",
"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",
"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",
"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",
"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\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n int t = fs.nextInt();\n String[] ar = new String[t];\n for (int TT=0;TT<t;TT++) {\n ar[TT] = fs.next();\n }\n HashMap<String,Integer> x = new HashMap<>();\n x.put(\"AC\", 0);\n x.put(\"WA\",0);\n x.put(\"TLE\",0);\n x.put(\"RE\",0);\n\n for (int i = 0; i<t; i++) {\n x.put(ar[i],x.get(ar[i])+1);\n }\n\n System.out.println(\"AC x \" + x.get(\"AC\"));\n System.out.println(\"WA x \" + x.get(\"WA\"));\n System.out.println(\"TLE x \" + x.get(\"TLE\"));\n System.out.println(\"RE x \" + x.get(\"RE\"));\n\n\n\n\n }\n\n\n\n\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n 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 int nextInt() {\n return Integer.parseInt(next());\n }\n 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 long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n int t = fs.nextInt();\n String[] ar = new String[t];\n for (int TT=0;TT<t;TT++) {\n ar[TT] = fs.next();\n }\n HashMap<String,Integer> x = new HashMap<>();\n x.put(\"AC\", 0);\n x.put(\"WA\",0);\n x.put(\"TLE\",0);\n x.put(\"RE\",0);\n\n for (int i = 0; i<t; i++) {\n x.put(ar[i],x.get(ar[i])+1);\n }\n\n System.out.println(\"AC x \" + x.get(\"AC\"));\n System.out.println(\"WA x \" + x.get(\"WA\"));\n System.out.println(\"TLE x \" + x.get(\"TLE\"));\n System.out.println(\"RE x \" + x.get(\"RE\"));\n\n\n\n\n }\n\n\n\n\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n 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 int nextInt() {\n return Integer.parseInt(next());\n }\n 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 long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
import java.lang.Math;
import java.util.Map;
import java.util.ArrayList;
import java.util.Collections;
import java.math.BigInteger;
public class Main {
public static void main(String[] args) {
FastScanner fs = new FastScanner();
int t = fs.nextInt();
String[] ar = new String[t];
for (int TT=0;TT<t;TT++) {
ar[TT] = fs.next();
}
HashMap<String,Integer> x = new HashMap<>();
x.put("AC", 0);
x.put("WA",0);
x.put("TLE",0);
x.put("RE",0);
for (int i = 0; i<t; i++) {
x.put(ar[i],x.get(ar[i])+1);
}
System.out.println("AC x " + x.get("AC"));
System.out.println("WA x " + x.get("WA"));
System.out.println("TLE x " + x.get("TLE"));
System.out.println("RE x " + x.get("RE"));
}
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,
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,
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,
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
],
[
113,
5
],
[
113,
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
],
[
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
],
[
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
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
71,
76
],
[
76,
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
],
[
8,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
6,
110
],
[
110,
111
],
[
0,
112
],
[
112,
113
],
[
112,
114
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args)\n {\n int AC=0,WA=0,TLE=0,RE=0;\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n scanner.nextLine();\n for(int i=0 ; i<n ; i++){\n String x = scanner.nextLine();\n if(x.equals(\"AC\")) AC++;\n else if(x.equals(\"WA\")) WA++;\n else if(x.equals(\"TLE\")) TLE++;\n else if(x.equals(\"RE\")) 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\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args)\n {\n int AC=0,WA=0,TLE=0,RE=0;\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n scanner.nextLine();\n for(int i=0 ; i<n ; i++){\n String x = scanner.nextLine();\n if(x.equals(\"AC\")) AC++;\n else if(x.equals(\"WA\")) WA++;\n else if(x.equals(\"TLE\")) TLE++;\n else if(x.equals(\"RE\")) 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\n}",
"Main",
"public static void main(String[] args)\n {\n int AC=0,WA=0,TLE=0,RE=0;\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n scanner.nextLine();\n for(int i=0 ; i<n ; i++){\n String x = scanner.nextLine();\n if(x.equals(\"AC\")) AC++;\n else if(x.equals(\"WA\")) WA++;\n else if(x.equals(\"TLE\")) TLE++;\n else if(x.equals(\"RE\")) 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 int AC=0,WA=0,TLE=0,RE=0;\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n scanner.nextLine();\n for(int i=0 ; i<n ; i++){\n String x = scanner.nextLine();\n if(x.equals(\"AC\")) AC++;\n else if(x.equals(\"WA\")) WA++;\n else if(x.equals(\"TLE\")) TLE++;\n else if(x.equals(\"RE\")) 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 }",
"int AC=0",
"AC",
"0",
"WA=0",
"WA",
"0",
"TLE=0",
"TLE",
"0",
"RE=0;",
"RE",
"0",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"for(int i=0 ; i<n ; i++){\n String x = scanner.nextLine();\n if(x.equals(\"AC\")) AC++;\n else if(x.equals(\"WA\")) WA++;\n else if(x.equals(\"TLE\")) TLE++;\n else if(x.equals(\"RE\")) RE++;\n }",
"int i=0 ;",
"int i=0 ;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String x = scanner.nextLine();\n if(x.equals(\"AC\")) AC++;\n else if(x.equals(\"WA\")) WA++;\n else if(x.equals(\"TLE\")) TLE++;\n else if(x.equals(\"RE\")) RE++;\n }",
"{\n String x = scanner.nextLine();\n if(x.equals(\"AC\")) AC++;\n else if(x.equals(\"WA\")) WA++;\n else if(x.equals(\"TLE\")) TLE++;\n else if(x.equals(\"RE\")) RE++;\n }",
"String x = scanner.nextLine();",
"x",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"if(x.equals(\"AC\")) AC++;\n else if(x.equals(\"WA\")) WA++;\n else if(x.equals(\"TLE\")) TLE++;\n else if(x.equals(\"RE\")) RE++;",
"x.equals(\"AC\")",
"x.equals",
"x",
"\"AC\"",
"AC++",
"AC",
"if(x.equals(\"WA\")) WA++;\n else if(x.equals(\"TLE\")) TLE++;\n else if(x.equals(\"RE\")) RE++;",
"x.equals(\"WA\")",
"x.equals",
"x",
"\"WA\"",
"WA++",
"WA",
"if(x.equals(\"TLE\")) TLE++;\n else if(x.equals(\"RE\")) RE++;",
"x.equals(\"TLE\")",
"x.equals",
"x",
"\"TLE\"",
"TLE++",
"TLE",
"if(x.equals(\"RE\")) RE++;",
"x.equals(\"RE\")",
"x.equals",
"x",
"\"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 public static void main(String[] args)\n {\n int AC=0,WA=0,TLE=0,RE=0;\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n scanner.nextLine();\n for(int i=0 ; i<n ; i++){\n String x = scanner.nextLine();\n if(x.equals(\"AC\")) AC++;\n else if(x.equals(\"WA\")) WA++;\n else if(x.equals(\"TLE\")) TLE++;\n else if(x.equals(\"RE\")) 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\n}",
"public class Main {\n\n public static void main(String[] args)\n {\n int AC=0,WA=0,TLE=0,RE=0;\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n scanner.nextLine();\n for(int i=0 ; i<n ; i++){\n String x = scanner.nextLine();\n if(x.equals(\"AC\")) AC++;\n else if(x.equals(\"WA\")) WA++;\n else if(x.equals(\"TLE\")) TLE++;\n else if(x.equals(\"RE\")) 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\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args)
{
int AC=0,WA=0,TLE=0,RE=0;
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
scanner.nextLine();
for(int i=0 ; i<n ; i++){
String x = scanner.nextLine();
if(x.equals("AC")) AC++;
else if(x.equals("WA")) WA++;
else if(x.equals("TLE")) TLE++;
else if(x.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,
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,
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,
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
],
[
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.*;\n\npublic class Main {\n\tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String[] result = new String[n];\n \n int c0 = 0;\n int c1 = 0;\n int c2 = 0;\n int c3 = 0;\n \n for(int i=0;i<n;i++){\n result[i] = sc.next();\n if(result[i].equals(\"AC\")){\n c0++;\n }else if(result[i].equals(\"WA\")){\n c1++;\n }else if(result[i].equals(\"TLE\")){\n c2++;\n }else if(result[i].equals(\"RE\")){\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.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String[] result = new String[n];\n \n int c0 = 0;\n int c1 = 0;\n int c2 = 0;\n int c3 = 0;\n \n for(int i=0;i<n;i++){\n result[i] = sc.next();\n if(result[i].equals(\"AC\")){\n c0++;\n }else if(result[i].equals(\"WA\")){\n c1++;\n }else if(result[i].equals(\"TLE\")){\n c2++;\n }else if(result[i].equals(\"RE\")){\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 String[] result = new String[n];\n \n int c0 = 0;\n int c1 = 0;\n int c2 = 0;\n int c3 = 0;\n \n for(int i=0;i<n;i++){\n result[i] = sc.next();\n if(result[i].equals(\"AC\")){\n c0++;\n }else if(result[i].equals(\"WA\")){\n c1++;\n }else if(result[i].equals(\"TLE\")){\n c2++;\n }else if(result[i].equals(\"RE\")){\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 String[] result = new String[n];\n \n int c0 = 0;\n int c1 = 0;\n int c2 = 0;\n int c3 = 0;\n \n for(int i=0;i<n;i++){\n result[i] = sc.next();\n if(result[i].equals(\"AC\")){\n c0++;\n }else if(result[i].equals(\"WA\")){\n c1++;\n }else if(result[i].equals(\"TLE\")){\n c2++;\n }else if(result[i].equals(\"RE\")){\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",
"String[] result = new String[n];",
"result",
"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 result[i] = sc.next();\n if(result[i].equals(\"AC\")){\n c0++;\n }else if(result[i].equals(\"WA\")){\n c1++;\n }else if(result[i].equals(\"TLE\")){\n c2++;\n }else if(result[i].equals(\"RE\")){\n c3++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n result[i] = sc.next();\n if(result[i].equals(\"AC\")){\n c0++;\n }else if(result[i].equals(\"WA\")){\n c1++;\n }else if(result[i].equals(\"TLE\")){\n c2++;\n }else if(result[i].equals(\"RE\")){\n c3++;\n }\n }",
"{\n result[i] = sc.next();\n if(result[i].equals(\"AC\")){\n c0++;\n }else if(result[i].equals(\"WA\")){\n c1++;\n }else if(result[i].equals(\"TLE\")){\n c2++;\n }else if(result[i].equals(\"RE\")){\n c3++;\n }\n }",
"result[i] = sc.next()",
"result[i]",
"result",
"i",
"sc.next()",
"sc.next",
"sc",
"if(result[i].equals(\"AC\")){\n c0++;\n }else if(result[i].equals(\"WA\")){\n c1++;\n }else if(result[i].equals(\"TLE\")){\n c2++;\n }else if(result[i].equals(\"RE\")){\n c3++;\n }",
"result[i].equals(\"AC\")",
"result[i].equals",
"result[i]",
"result",
"i",
"\"AC\"",
"{\n c0++;\n }",
"c0++",
"c0",
"if(result[i].equals(\"WA\")){\n c1++;\n }else if(result[i].equals(\"TLE\")){\n c2++;\n }else if(result[i].equals(\"RE\")){\n c3++;\n }",
"result[i].equals(\"WA\")",
"result[i].equals",
"result[i]",
"result",
"i",
"\"WA\"",
"{\n c1++;\n }",
"c1++",
"c1",
"if(result[i].equals(\"TLE\")){\n c2++;\n }else if(result[i].equals(\"RE\")){\n c3++;\n }",
"result[i].equals(\"TLE\")",
"result[i].equals",
"result[i]",
"result",
"i",
"\"TLE\"",
"{\n c2++;\n }",
"c2++",
"c2",
"if(result[i].equals(\"RE\")){\n c3++;\n }",
"result[i].equals(\"RE\")",
"result[i].equals",
"result[i]",
"result",
"i",
"\"RE\"",
"{\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\tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String[] result = new String[n];\n \n int c0 = 0;\n int c1 = 0;\n int c2 = 0;\n int c3 = 0;\n \n for(int i=0;i<n;i++){\n result[i] = sc.next();\n if(result[i].equals(\"AC\")){\n c0++;\n }else if(result[i].equals(\"WA\")){\n c1++;\n }else if(result[i].equals(\"TLE\")){\n c2++;\n }else if(result[i].equals(\"RE\")){\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\tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String[] result = new String[n];\n \n int c0 = 0;\n int c1 = 0;\n int c2 = 0;\n int c3 = 0;\n \n for(int i=0;i<n;i++){\n result[i] = sc.next();\n if(result[i].equals(\"AC\")){\n c0++;\n }else if(result[i].equals(\"WA\")){\n c1++;\n }else if(result[i].equals(\"TLE\")){\n c2++;\n }else if(result[i].equals(\"RE\")){\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.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
String[] result = new String[n];
int c0 = 0;
int c1 = 0;
int c2 = 0;
int c3 = 0;
for(int i=0;i<n;i++){
result[i] = sc.next();
if(result[i].equals("AC")){
c0++;
}else if(result[i].equals("WA")){
c1++;
}else if(result[i].equals("TLE")){
c2++;
}else if(result[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 );
}
}
|
[
7,
15,
13,
17,
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,
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,
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
],
[
101,
8
],
[
101,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
21
],
[
21,
22
],
[
21,
23
],
[
11,
24
],
[
24,
25
],
[
24,
26
],
[
11,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
11,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
32,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
43,
48
],
[
48,
49
],
[
43,
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
],
[
11,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
11,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
79,
80
],
[
79,
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
],
[
9,
98
],
[
98,
99
],
[
0,
100
],
[
100,
101
],
[
100,
102
]
]
| [
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint numAC = 0;\n\t\tint numWA = 0;\n\t\tint numTLE = 0;\n\t\tint numRE = 0;\n\n\t\tint n = in.nextInt();\n\t\twhile (n-- > 0) {\n\t\t\tString s = in.next();\n\t\t\tif (s.equals(\"AC\"))\n\t\t\t\tnumAC++;\n\t\t\telse if (s.equals(\"WA\"))\n\t\t\t\tnumWA++;\n\t\t\telse if (s.equals(\"TLE\"))\n\t\t\t\tnumTLE++;\n\t\t\telse\n\t\t\t\tnumRE++;\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + numAC);\n\t\tSystem.out.println(\"WA x \" + numWA);\n\t\tSystem.out.println(\"TLE x \" + numTLE);\n\t\tSystem.out.println(\"RE x \" + numRE);\n\t}\n}\n",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint numAC = 0;\n\t\tint numWA = 0;\n\t\tint numTLE = 0;\n\t\tint numRE = 0;\n\n\t\tint n = in.nextInt();\n\t\twhile (n-- > 0) {\n\t\t\tString s = in.next();\n\t\t\tif (s.equals(\"AC\"))\n\t\t\t\tnumAC++;\n\t\t\telse if (s.equals(\"WA\"))\n\t\t\t\tnumWA++;\n\t\t\telse if (s.equals(\"TLE\"))\n\t\t\t\tnumTLE++;\n\t\t\telse\n\t\t\t\tnumRE++;\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + numAC);\n\t\tSystem.out.println(\"WA x \" + numWA);\n\t\tSystem.out.println(\"TLE x \" + numTLE);\n\t\tSystem.out.println(\"RE x \" + numRE);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint numAC = 0;\n\t\tint numWA = 0;\n\t\tint numTLE = 0;\n\t\tint numRE = 0;\n\n\t\tint n = in.nextInt();\n\t\twhile (n-- > 0) {\n\t\t\tString s = in.next();\n\t\t\tif (s.equals(\"AC\"))\n\t\t\t\tnumAC++;\n\t\t\telse if (s.equals(\"WA\"))\n\t\t\t\tnumWA++;\n\t\t\telse if (s.equals(\"TLE\"))\n\t\t\t\tnumTLE++;\n\t\t\telse\n\t\t\t\tnumRE++;\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + numAC);\n\t\tSystem.out.println(\"WA x \" + numWA);\n\t\tSystem.out.println(\"TLE x \" + numTLE);\n\t\tSystem.out.println(\"RE x \" + numRE);\n\t}",
"main",
"{\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint numAC = 0;\n\t\tint numWA = 0;\n\t\tint numTLE = 0;\n\t\tint numRE = 0;\n\n\t\tint n = in.nextInt();\n\t\twhile (n-- > 0) {\n\t\t\tString s = in.next();\n\t\t\tif (s.equals(\"AC\"))\n\t\t\t\tnumAC++;\n\t\t\telse if (s.equals(\"WA\"))\n\t\t\t\tnumWA++;\n\t\t\telse if (s.equals(\"TLE\"))\n\t\t\t\tnumTLE++;\n\t\t\telse\n\t\t\t\tnumRE++;\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + numAC);\n\t\tSystem.out.println(\"WA x \" + numWA);\n\t\tSystem.out.println(\"TLE x \" + numTLE);\n\t\tSystem.out.println(\"RE x \" + numRE);\n\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int numAC = 0;",
"numAC",
"0",
"int numWA = 0;",
"numWA",
"0",
"int numTLE = 0;",
"numTLE",
"0",
"int numRE = 0;",
"numRE",
"0",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"while (n-- > 0) {\n\t\t\tString s = in.next();\n\t\t\tif (s.equals(\"AC\"))\n\t\t\t\tnumAC++;\n\t\t\telse if (s.equals(\"WA\"))\n\t\t\t\tnumWA++;\n\t\t\telse if (s.equals(\"TLE\"))\n\t\t\t\tnumTLE++;\n\t\t\telse\n\t\t\t\tnumRE++;\n\t\t}",
"n-- > 0",
"n--",
"n",
"0",
"{\n\t\t\tString s = in.next();\n\t\t\tif (s.equals(\"AC\"))\n\t\t\t\tnumAC++;\n\t\t\telse if (s.equals(\"WA\"))\n\t\t\t\tnumWA++;\n\t\t\telse if (s.equals(\"TLE\"))\n\t\t\t\tnumTLE++;\n\t\t\telse\n\t\t\t\tnumRE++;\n\t\t}",
"String s = in.next();",
"s",
"in.next()",
"in.next",
"in",
"if (s.equals(\"AC\"))\n\t\t\t\tnumAC++;\n\t\t\telse if (s.equals(\"WA\"))\n\t\t\t\tnumWA++;\n\t\t\telse if (s.equals(\"TLE\"))\n\t\t\t\tnumTLE++;\n\t\t\telse\n\t\t\t\tnumRE++;",
"s.equals(\"AC\")",
"s.equals",
"s",
"\"AC\"",
"numAC++",
"numAC",
"if (s.equals(\"WA\"))\n\t\t\t\tnumWA++;\n\t\t\telse if (s.equals(\"TLE\"))\n\t\t\t\tnumTLE++;\n\t\t\telse\n\t\t\t\tnumRE++;",
"s.equals(\"WA\")",
"s.equals",
"s",
"\"WA\"",
"numWA++",
"numWA",
"if (s.equals(\"TLE\"))\n\t\t\t\tnumTLE++;\n\t\t\telse\n\t\t\t\tnumRE++;",
"s.equals(\"TLE\")",
"s.equals",
"s",
"\"TLE\"",
"numTLE++",
"numTLE",
"numRE++",
"numRE",
"System.out.println(\"AC x \" + numAC)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + numAC",
"\"AC x \"",
"numAC",
"System.out.println(\"WA x \" + numWA)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + numWA",
"\"WA x \"",
"numWA",
"System.out.println(\"TLE x \" + numTLE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + numTLE",
"\"TLE x \"",
"numTLE",
"System.out.println(\"RE x \" + numRE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + numRE",
"\"RE x \"",
"numRE",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint numAC = 0;\n\t\tint numWA = 0;\n\t\tint numTLE = 0;\n\t\tint numRE = 0;\n\n\t\tint n = in.nextInt();\n\t\twhile (n-- > 0) {\n\t\t\tString s = in.next();\n\t\t\tif (s.equals(\"AC\"))\n\t\t\t\tnumAC++;\n\t\t\telse if (s.equals(\"WA\"))\n\t\t\t\tnumWA++;\n\t\t\telse if (s.equals(\"TLE\"))\n\t\t\t\tnumTLE++;\n\t\t\telse\n\t\t\t\tnumRE++;\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + numAC);\n\t\tSystem.out.println(\"WA x \" + numWA);\n\t\tSystem.out.println(\"TLE x \" + numTLE);\n\t\tSystem.out.println(\"RE x \" + numRE);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint numAC = 0;\n\t\tint numWA = 0;\n\t\tint numTLE = 0;\n\t\tint numRE = 0;\n\n\t\tint n = in.nextInt();\n\t\twhile (n-- > 0) {\n\t\t\tString s = in.next();\n\t\t\tif (s.equals(\"AC\"))\n\t\t\t\tnumAC++;\n\t\t\telse if (s.equals(\"WA\"))\n\t\t\t\tnumWA++;\n\t\t\telse if (s.equals(\"TLE\"))\n\t\t\t\tnumTLE++;\n\t\t\telse\n\t\t\t\tnumRE++;\n\t\t}\n\n\t\tSystem.out.println(\"AC x \" + numAC);\n\t\tSystem.out.println(\"WA x \" + numWA);\n\t\tSystem.out.println(\"TLE x \" + numTLE);\n\t\tSystem.out.println(\"RE x \" + numRE);\n\t}\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int numAC = 0;
int numWA = 0;
int numTLE = 0;
int numRE = 0;
int n = in.nextInt();
while (n-- > 0) {
String s = in.next();
if (s.equals("AC"))
numAC++;
else if (s.equals("WA"))
numWA++;
else if (s.equals("TLE"))
numTLE++;
else
numRE++;
}
System.out.println("AC x " + numAC);
System.out.println("WA x " + numWA);
System.out.println("TLE x " + numTLE);
System.out.println("RE x " + numRE);
}
}
|
[
7,
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,
14,
4,
18,
13,
13,
30,
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
],
[
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
],
[
21,
22
],
[
20,
23
],
[
20,
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
],
[
42,
43
],
[
41,
44
],
[
40,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
45,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
51,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
61,
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
]
]
| [
"\nimport java.util.*;\n\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n Map<String,Integer> map = new TreeMap<>();\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 if(map.containsKey(s)){\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 }\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 Map<String,Integer> map = new TreeMap<>();\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 if(map.containsKey(s)){\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 }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n Map<String,Integer> map = new TreeMap<>();\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 if(map.containsKey(s)){\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",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n Map<String,Integer> map = new TreeMap<>();\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 if(map.containsKey(s)){\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 }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Map<String,Integer> map = new TreeMap<>();",
"map",
"new TreeMap<>()",
"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 if(map.containsKey(s)){\n map.put(s,map.get(s) + 1);\n }\n }",
"n-->0",
"n--",
"n",
"0",
"{\n String s = sc.next();\n if(map.containsKey(s)){\n map.put(s,map.get(s) + 1);\n }\n }",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"if(map.containsKey(s)){\n map.put(s,map.get(s) + 1);\n }",
"map.containsKey(s)",
"map.containsKey",
"map",
"s",
"{\n map.put(s,map.get(s) + 1);\n }",
"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 Map<String,Integer> map = new TreeMap<>();\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 if(map.containsKey(s)){\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 }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n Map<String,Integer> map = new TreeMap<>();\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 if(map.containsKey(s)){\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 }\n}",
"Main"
]
|
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
Map<String,Integer> map = new TreeMap<>();
map.put("AC",0);
map.put("WA",0);
map.put("TLE",0);
map.put("RE",0) ;
while(n-->0){
String s = sc.next();
if(map.containsKey(s)){
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,
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,
0,
13,
4,
18,
13,
13,
17,
0,
13,
4,
18,
13,
13,
17,
0,
13,
4,
18,
13,
13,
17,
0,
13,
4,
18,
13,
13,
17,
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
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
129,
14
],
[
129,
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
],
[
38,
40
],
[
17,
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
],
[
59,
62
],
[
17,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
65,
69
],
[
17,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
72,
76
],
[
17,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
79,
83
],
[
17,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
86,
90
],
[
17,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
17,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
17,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
112,
113
],
[
112,
114
],
[
17,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
120,
121
],
[
120,
122
],
[
17,
123
],
[
123,
124
],
[
124,
125
],
[
15,
126
],
[
126,
127
],
[
0,
128
],
[
128,
129
],
[
128,
130
]
]
| [
"import java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n // 入力情報(個数)\n int N = scan.nextInt();\n\n int ansAC = 0;\n int ansWA = 0;\n int ansTLE = 0;\n int ansRE = 0;\n\n List<String> results = new ArrayList<String>();\n\n // 入力情報(内容)\n for(int i = 0; i < N; i++){\n String input = scan.next();\n results.add(input);\n }\n\n // カウント\n ansAC = Collections.frequency(results, \"AC\");\n ansWA = Collections.frequency(results, \"WA\");\n ansTLE = Collections.frequency(results, \"TLE\");\n ansRE = Collections.frequency(results, \"RE\");\n\n // 結果出力\n System.out.println(\"AC x \"+ ansAC);\n System.out.println(\"WA x \"+ ansWA);\n System.out.println(\"TLE x \"+ ansTLE);\n System.out.println(\"RE x \"+ ansRE);\n scan.close();\n\n }\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.util.List;",
"List",
"java.util",
"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 // 入力情報(個数)\n int N = scan.nextInt();\n\n int ansAC = 0;\n int ansWA = 0;\n int ansTLE = 0;\n int ansRE = 0;\n\n List<String> results = new ArrayList<String>();\n\n // 入力情報(内容)\n for(int i = 0; i < N; i++){\n String input = scan.next();\n results.add(input);\n }\n\n // カウント\n ansAC = Collections.frequency(results, \"AC\");\n ansWA = Collections.frequency(results, \"WA\");\n ansTLE = Collections.frequency(results, \"TLE\");\n ansRE = Collections.frequency(results, \"RE\");\n\n // 結果出力\n System.out.println(\"AC x \"+ ansAC);\n System.out.println(\"WA x \"+ ansWA);\n System.out.println(\"TLE x \"+ ansTLE);\n System.out.println(\"RE x \"+ ansRE);\n scan.close();\n\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n // 入力情報(個数)\n int N = scan.nextInt();\n\n int ansAC = 0;\n int ansWA = 0;\n int ansTLE = 0;\n int ansRE = 0;\n\n List<String> results = new ArrayList<String>();\n\n // 入力情報(内容)\n for(int i = 0; i < N; i++){\n String input = scan.next();\n results.add(input);\n }\n\n // カウント\n ansAC = Collections.frequency(results, \"AC\");\n ansWA = Collections.frequency(results, \"WA\");\n ansTLE = Collections.frequency(results, \"TLE\");\n ansRE = Collections.frequency(results, \"RE\");\n\n // 結果出力\n System.out.println(\"AC x \"+ ansAC);\n System.out.println(\"WA x \"+ ansWA);\n System.out.println(\"TLE x \"+ ansTLE);\n System.out.println(\"RE x \"+ ansRE);\n scan.close();\n\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n // 入力情報(個数)\n int N = scan.nextInt();\n\n int ansAC = 0;\n int ansWA = 0;\n int ansTLE = 0;\n int ansRE = 0;\n\n List<String> results = new ArrayList<String>();\n\n // 入力情報(内容)\n for(int i = 0; i < N; i++){\n String input = scan.next();\n results.add(input);\n }\n\n // カウント\n ansAC = Collections.frequency(results, \"AC\");\n ansWA = Collections.frequency(results, \"WA\");\n ansTLE = Collections.frequency(results, \"TLE\");\n ansRE = Collections.frequency(results, \"RE\");\n\n // 結果出力\n System.out.println(\"AC x \"+ ansAC);\n System.out.println(\"WA x \"+ ansWA);\n System.out.println(\"TLE x \"+ ansTLE);\n System.out.println(\"RE x \"+ ansRE);\n scan.close();\n\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int N = scan.nextInt();",
"N",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int ansAC = 0;",
"ansAC",
"0",
"int ansWA = 0;",
"ansWA",
"0",
"int ansTLE = 0;",
"ansTLE",
"0",
"int ansRE = 0;",
"ansRE",
"0",
"List<String> results = new ArrayList<String>();",
"results",
"new ArrayList<String>()",
"for(int i = 0; i < N; i++){\n String input = scan.next();\n results.add(input);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n String input = scan.next();\n results.add(input);\n }",
"{\n String input = scan.next();\n results.add(input);\n }",
"String input = scan.next();",
"input",
"scan.next()",
"scan.next",
"scan",
"results.add(input)",
"results.add",
"results",
"input",
"ansAC = Collections.frequency(results, \"AC\")",
"ansAC",
"Collections.frequency(results, \"AC\")",
"Collections.frequency",
"Collections",
"results",
"\"AC\"",
"ansWA = Collections.frequency(results, \"WA\")",
"ansWA",
"Collections.frequency(results, \"WA\")",
"Collections.frequency",
"Collections",
"results",
"\"WA\"",
"ansTLE = Collections.frequency(results, \"TLE\")",
"ansTLE",
"Collections.frequency(results, \"TLE\")",
"Collections.frequency",
"Collections",
"results",
"\"TLE\"",
"ansRE = Collections.frequency(results, \"RE\")",
"ansRE",
"Collections.frequency(results, \"RE\")",
"Collections.frequency",
"Collections",
"results",
"\"RE\"",
"System.out.println(\"AC x \"+ ansAC)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \"+ ansAC",
"\"AC x \"",
"ansAC",
"System.out.println(\"WA x \"+ ansWA)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \"+ ansWA",
"\"WA x \"",
"ansWA",
"System.out.println(\"TLE x \"+ ansTLE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \"+ ansTLE",
"\"TLE x \"",
"ansTLE",
"System.out.println(\"RE x \"+ ansRE)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \"+ ansRE",
"\"RE x \"",
"ansRE",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n // 入力情報(個数)\n int N = scan.nextInt();\n\n int ansAC = 0;\n int ansWA = 0;\n int ansTLE = 0;\n int ansRE = 0;\n\n List<String> results = new ArrayList<String>();\n\n // 入力情報(内容)\n for(int i = 0; i < N; i++){\n String input = scan.next();\n results.add(input);\n }\n\n // カウント\n ansAC = Collections.frequency(results, \"AC\");\n ansWA = Collections.frequency(results, \"WA\");\n ansTLE = Collections.frequency(results, \"TLE\");\n ansRE = Collections.frequency(results, \"RE\");\n\n // 結果出力\n System.out.println(\"AC x \"+ ansAC);\n System.out.println(\"WA x \"+ ansWA);\n System.out.println(\"TLE x \"+ ansTLE);\n System.out.println(\"RE x \"+ ansRE);\n scan.close();\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n // 入力情報(個数)\n int N = scan.nextInt();\n\n int ansAC = 0;\n int ansWA = 0;\n int ansTLE = 0;\n int ansRE = 0;\n\n List<String> results = new ArrayList<String>();\n\n // 入力情報(内容)\n for(int i = 0; i < N; i++){\n String input = scan.next();\n results.add(input);\n }\n\n // カウント\n ansAC = Collections.frequency(results, \"AC\");\n ansWA = Collections.frequency(results, \"WA\");\n ansTLE = Collections.frequency(results, \"TLE\");\n ansRE = Collections.frequency(results, \"RE\");\n\n // 結果出力\n System.out.println(\"AC x \"+ ansAC);\n System.out.println(\"WA x \"+ ansWA);\n System.out.println(\"TLE x \"+ ansTLE);\n System.out.println(\"RE x \"+ ansRE);\n scan.close();\n\n }\n}",
"Main"
]
| import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
// 入力情報(個数)
int N = scan.nextInt();
int ansAC = 0;
int ansWA = 0;
int ansTLE = 0;
int ansRE = 0;
List<String> results = new ArrayList<String>();
// 入力情報(内容)
for(int i = 0; i < N; i++){
String input = scan.next();
results.add(input);
}
// カウント
ansAC = Collections.frequency(results, "AC");
ansWA = Collections.frequency(results, "WA");
ansTLE = Collections.frequency(results, "TLE");
ansRE = Collections.frequency(results, "RE");
// 結果出力
System.out.println("AC x "+ ansAC);
System.out.println("WA x "+ ansWA);
System.out.println("TLE x "+ ansTLE);
System.out.println("RE x "+ ansRE);
scan.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
4,
18,
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,
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
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
118,
11
],
[
118,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
18,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
32,
33
],
[
25,
34
],
[
34,
35
],
[
34,
36
],
[
25,
37
],
[
37,
38
],
[
37,
39
],
[
25,
40
],
[
40,
41
],
[
40,
42
],
[
25,
43
],
[
43,
44
],
[
43,
45
],
[
25,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
46,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
51,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
57,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
57,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
57,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
25,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
88,
89
],
[
88,
90
],
[
25,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
25,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
25,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
112,
113
],
[
112,
114
],
[
12,
115
],
[
115,
116
],
[
0,
117
],
[
117,
118
],
[
117,
119
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n/**\n * abc173-B https://atcoder.jp/contests/abc173/tasks/abc173_b\n * \n */\npublic class Main {\n public static void main(String[] args) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try {\n int cases = Integer.parseInt(reader.readLine());\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n while (cases-- > 0) {\n String input = reader.readLine();\n switch (input) {\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 } catch (NumberFormatException | IOException e) {\n e.printStackTrace();\n }\n }\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 public static void main(String[] args) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try {\n int cases = Integer.parseInt(reader.readLine());\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n while (cases-- > 0) {\n String input = reader.readLine();\n switch (input) {\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 } catch (NumberFormatException | IOException e) {\n e.printStackTrace();\n }\n }\n\n}",
"Main",
"public static void main(String[] args) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try {\n int cases = Integer.parseInt(reader.readLine());\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n while (cases-- > 0) {\n String input = reader.readLine();\n switch (input) {\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 } catch (NumberFormatException | IOException e) {\n e.printStackTrace();\n }\n }",
"main",
"{\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try {\n int cases = Integer.parseInt(reader.readLine());\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n while (cases-- > 0) {\n String input = reader.readLine();\n switch (input) {\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 } catch (NumberFormatException | IOException e) {\n e.printStackTrace();\n }\n }",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"try {\n int cases = Integer.parseInt(reader.readLine());\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n while (cases-- > 0) {\n String input = reader.readLine();\n switch (input) {\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 } catch (NumberFormatException | IOException e) {\n e.printStackTrace();\n }",
"catch (NumberFormatException | IOException e) {\n e.printStackTrace();\n }",
"NumberFormatException | IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n int cases = Integer.parseInt(reader.readLine());\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n while (cases-- > 0) {\n String input = reader.readLine();\n switch (input) {\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 }",
"int cases = Integer.parseInt(reader.readLine());",
"cases",
"Integer.parseInt(reader.readLine())",
"Integer.parseInt",
"Integer",
"reader.readLine()",
"reader.readLine",
"reader",
"int ac = 0;",
"ac",
"0",
"int wa = 0;",
"wa",
"0",
"int tle = 0;",
"tle",
"0",
"int re = 0;",
"re",
"0",
"while (cases-- > 0) {\n String input = reader.readLine();\n switch (input) {\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 }",
"cases-- > 0",
"cases--",
"cases",
"0",
"{\n String input = reader.readLine();\n switch (input) {\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 input = reader.readLine();",
"input",
"reader.readLine()",
"reader.readLine",
"reader",
"switch (input) {\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 }",
"input",
"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 BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try {\n int cases = Integer.parseInt(reader.readLine());\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n while (cases-- > 0) {\n String input = reader.readLine();\n switch (input) {\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 } catch (NumberFormatException | IOException e) {\n e.printStackTrace();\n }\n }\n\n}",
"public class Main {\n public static void main(String[] args) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try {\n int cases = Integer.parseInt(reader.readLine());\n int ac = 0;\n int wa = 0;\n int tle = 0;\n int re = 0;\n while (cases-- > 0) {\n String input = reader.readLine();\n switch (input) {\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 } catch (NumberFormatException | IOException e) {\n e.printStackTrace();\n }\n }\n\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
* abc173-B https://atcoder.jp/contests/abc173/tasks/abc173_b
*
*/
public class Main {
public static void main(String[] args) {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
try {
int cases = Integer.parseInt(reader.readLine());
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
while (cases-- > 0) {
String input = reader.readLine();
switch (input) {
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);
} catch (NumberFormatException | IOException e) {
e.printStackTrace();
}
}
} |
[
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,
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
],
[
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
],
[
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
],
[
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
],
[
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.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n\n Scanner sc = new Scanner (System.in);\n \n int a = sc.nextInt();\n \n \n String x=\"\";\n //ac\n //wa\n //tle\n //re\n int ac=0;\n int wa=0;\n int tle=0;\n int re=0;\n \n \n for(int i=0;i<=a;i++){\n x=sc.nextLine();\n if(x.equals(\"AC\")){\n ++ac;\n }else if (x.equals(\"WA\")){\n ++wa;\n }else if (x.equals(\"TLE\")){\n ++tle;\n }else if (x.equals(\"RE\")){\n ++re;\n }\n \n \n //ac\n //wa\n //tle\n //re\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.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n\n Scanner sc = new Scanner (System.in);\n \n int a = sc.nextInt();\n \n \n String x=\"\";\n //ac\n //wa\n //tle\n //re\n int ac=0;\n int wa=0;\n int tle=0;\n int re=0;\n \n \n for(int i=0;i<=a;i++){\n x=sc.nextLine();\n if(x.equals(\"AC\")){\n ++ac;\n }else if (x.equals(\"WA\")){\n ++wa;\n }else if (x.equals(\"TLE\")){\n ++tle;\n }else if (x.equals(\"RE\")){\n ++re;\n }\n \n \n //ac\n //wa\n //tle\n //re\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) throws Exception {\n // Your code here!\n\n Scanner sc = new Scanner (System.in);\n \n int a = sc.nextInt();\n \n \n String x=\"\";\n //ac\n //wa\n //tle\n //re\n int ac=0;\n int wa=0;\n int tle=0;\n int re=0;\n \n \n for(int i=0;i<=a;i++){\n x=sc.nextLine();\n if(x.equals(\"AC\")){\n ++ac;\n }else if (x.equals(\"WA\")){\n ++wa;\n }else if (x.equals(\"TLE\")){\n ++tle;\n }else if (x.equals(\"RE\")){\n ++re;\n }\n \n \n //ac\n //wa\n //tle\n //re\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 // Your code here!\n\n Scanner sc = new Scanner (System.in);\n \n int a = sc.nextInt();\n \n \n String x=\"\";\n //ac\n //wa\n //tle\n //re\n int ac=0;\n int wa=0;\n int tle=0;\n int re=0;\n \n \n for(int i=0;i<=a;i++){\n x=sc.nextLine();\n if(x.equals(\"AC\")){\n ++ac;\n }else if (x.equals(\"WA\")){\n ++wa;\n }else if (x.equals(\"TLE\")){\n ++tle;\n }else if (x.equals(\"RE\")){\n ++re;\n }\n \n \n //ac\n //wa\n //tle\n //re\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 a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String x=\"\";",
"x",
"\"\"",
"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<=a;i++){\n x=sc.nextLine();\n if(x.equals(\"AC\")){\n ++ac;\n }else if (x.equals(\"WA\")){\n ++wa;\n }else if (x.equals(\"TLE\")){\n ++tle;\n }else if (x.equals(\"RE\")){\n ++re;\n }\n \n \n //ac\n //wa\n //tle\n //re\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<=a",
"i",
"a",
"i++",
"i++",
"i",
"{\n x=sc.nextLine();\n if(x.equals(\"AC\")){\n ++ac;\n }else if (x.equals(\"WA\")){\n ++wa;\n }else if (x.equals(\"TLE\")){\n ++tle;\n }else if (x.equals(\"RE\")){\n ++re;\n }\n \n \n //ac\n //wa\n //tle\n //re\n }",
"{\n x=sc.nextLine();\n if(x.equals(\"AC\")){\n ++ac;\n }else if (x.equals(\"WA\")){\n ++wa;\n }else if (x.equals(\"TLE\")){\n ++tle;\n }else if (x.equals(\"RE\")){\n ++re;\n }\n \n \n //ac\n //wa\n //tle\n //re\n }",
"x=sc.nextLine()",
"x",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if(x.equals(\"AC\")){\n ++ac;\n }else if (x.equals(\"WA\")){\n ++wa;\n }else if (x.equals(\"TLE\")){\n ++tle;\n }else if (x.equals(\"RE\")){\n ++re;\n }",
"x.equals(\"AC\")",
"x.equals",
"x",
"\"AC\"",
"{\n ++ac;\n }",
"++ac",
"ac",
"if (x.equals(\"WA\")){\n ++wa;\n }else if (x.equals(\"TLE\")){\n ++tle;\n }else if (x.equals(\"RE\")){\n ++re;\n }",
"x.equals(\"WA\")",
"x.equals",
"x",
"\"WA\"",
"{\n ++wa;\n }",
"++wa",
"wa",
"if (x.equals(\"TLE\")){\n ++tle;\n }else if (x.equals(\"RE\")){\n ++re;\n }",
"x.equals(\"TLE\")",
"x.equals",
"x",
"\"TLE\"",
"{\n ++tle;\n }",
"++tle",
"tle",
"if (x.equals(\"RE\")){\n ++re;\n }",
"x.equals(\"RE\")",
"x.equals",
"x",
"\"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) throws Exception {\n // Your code here!\n\n Scanner sc = new Scanner (System.in);\n \n int a = sc.nextInt();\n \n \n String x=\"\";\n //ac\n //wa\n //tle\n //re\n int ac=0;\n int wa=0;\n int tle=0;\n int re=0;\n \n \n for(int i=0;i<=a;i++){\n x=sc.nextLine();\n if(x.equals(\"AC\")){\n ++ac;\n }else if (x.equals(\"WA\")){\n ++wa;\n }else if (x.equals(\"TLE\")){\n ++tle;\n }else if (x.equals(\"RE\")){\n ++re;\n }\n \n \n //ac\n //wa\n //tle\n //re\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) throws Exception {\n // Your code here!\n\n Scanner sc = new Scanner (System.in);\n \n int a = sc.nextInt();\n \n \n String x=\"\";\n //ac\n //wa\n //tle\n //re\n int ac=0;\n int wa=0;\n int tle=0;\n int re=0;\n \n \n for(int i=0;i<=a;i++){\n x=sc.nextLine();\n if(x.equals(\"AC\")){\n ++ac;\n }else if (x.equals(\"WA\")){\n ++wa;\n }else if (x.equals(\"TLE\")){\n ++tle;\n }else if (x.equals(\"RE\")){\n ++re;\n }\n \n \n //ac\n //wa\n //tle\n //re\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.*;
public class Main {
public static void main(String[] args) throws Exception {
// Your code here!
Scanner sc = new Scanner (System.in);
int a = sc.nextInt();
String x="";
//ac
//wa
//tle
//re
int ac=0;
int wa=0;
int tle=0;
int re=0;
for(int i=0;i<=a;i++){
x=sc.nextLine();
if(x.equals("AC")){
++ac;
}else if (x.equals("WA")){
++wa;
}else if (x.equals("TLE")){
++tle;
}else if (x.equals("RE")){
++re;
}
//ac
//wa
//tle
//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,
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,
4,
18,
13,
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
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
124,
11
],
[
124,
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
],
[
27,
28
],
[
26,
29
],
[
26,
30
],
[
14,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
31,
35
],
[
14,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
36,
40
],
[
14,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
41,
45
],
[
14,
46
],
[
46,
47
],
[
47,
48
],
[
14,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
67,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
71,
76
],
[
14,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
14,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
14,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
14,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
12,
121
],
[
121,
122
],
[
0,
123
],
[
123,
124
],
[
123,
125
]
]
| [
"import java.util.HashMap;\nimport java.util.Map;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n Map<String, Integer> cnt = new HashMap<>();\n cnt.put(\"AC\", 0);\n cnt.put(\"WA\", 0);\n cnt.put(\"TLE\", 0);\n cnt.put(\"RE\", 0);\n scanner.nextLine();\n for (int i = 0; i < n; i++) {\n String s = scanner.nextLine();\n cnt.put(s, cnt.get(s) + 1);\n }\n System.out.println(\"AC x \"+cnt.get(\"AC\"));\n System.out.println(\"WA x \"+cnt.get(\"WA\"));\n System.out.println(\"TLE x \"+cnt.get(\"TLE\"));\n System.out.println(\"RE x \"+cnt.get(\"RE\"));\n }\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 public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n Map<String, Integer> cnt = new HashMap<>();\n cnt.put(\"AC\", 0);\n cnt.put(\"WA\", 0);\n cnt.put(\"TLE\", 0);\n cnt.put(\"RE\", 0);\n scanner.nextLine();\n for (int i = 0; i < n; i++) {\n String s = scanner.nextLine();\n cnt.put(s, cnt.get(s) + 1);\n }\n System.out.println(\"AC x \"+cnt.get(\"AC\"));\n System.out.println(\"WA x \"+cnt.get(\"WA\"));\n System.out.println(\"TLE x \"+cnt.get(\"TLE\"));\n System.out.println(\"RE x \"+cnt.get(\"RE\"));\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n Map<String, Integer> cnt = new HashMap<>();\n cnt.put(\"AC\", 0);\n cnt.put(\"WA\", 0);\n cnt.put(\"TLE\", 0);\n cnt.put(\"RE\", 0);\n scanner.nextLine();\n for (int i = 0; i < n; i++) {\n String s = scanner.nextLine();\n cnt.put(s, cnt.get(s) + 1);\n }\n System.out.println(\"AC x \"+cnt.get(\"AC\"));\n System.out.println(\"WA x \"+cnt.get(\"WA\"));\n System.out.println(\"TLE x \"+cnt.get(\"TLE\"));\n System.out.println(\"RE x \"+cnt.get(\"RE\"));\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n Map<String, Integer> cnt = new HashMap<>();\n cnt.put(\"AC\", 0);\n cnt.put(\"WA\", 0);\n cnt.put(\"TLE\", 0);\n cnt.put(\"RE\", 0);\n scanner.nextLine();\n for (int i = 0; i < n; i++) {\n String s = scanner.nextLine();\n cnt.put(s, cnt.get(s) + 1);\n }\n System.out.println(\"AC x \"+cnt.get(\"AC\"));\n System.out.println(\"WA x \"+cnt.get(\"WA\"));\n System.out.println(\"TLE x \"+cnt.get(\"TLE\"));\n System.out.println(\"RE x \"+cnt.get(\"RE\"));\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"Map<String, Integer> cnt = new HashMap<>();",
"cnt",
"new HashMap<>()",
"cnt.put(\"AC\", 0)",
"cnt.put",
"cnt",
"\"AC\"",
"0",
"cnt.put(\"WA\", 0)",
"cnt.put",
"cnt",
"\"WA\"",
"0",
"cnt.put(\"TLE\", 0)",
"cnt.put",
"cnt",
"\"TLE\"",
"0",
"cnt.put(\"RE\", 0)",
"cnt.put",
"cnt",
"\"RE\"",
"0",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"for (int i = 0; i < n; i++) {\n String s = scanner.nextLine();\n cnt.put(s, cnt.get(s) + 1);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String s = scanner.nextLine();\n cnt.put(s, cnt.get(s) + 1);\n }",
"{\n String s = scanner.nextLine();\n cnt.put(s, cnt.get(s) + 1);\n }",
"String s = scanner.nextLine();",
"s",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"cnt.put(s, cnt.get(s) + 1)",
"cnt.put",
"cnt",
"s",
"cnt.get(s) + 1",
"cnt.get(s)",
"cnt.get",
"cnt",
"s",
"1",
"System.out.println(\"AC x \"+cnt.get(\"AC\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \"+cnt.get(\"AC\")",
"\"AC x \"",
"cnt.get(\"AC\")",
"cnt.get",
"cnt",
"\"AC\"",
"System.out.println(\"WA x \"+cnt.get(\"WA\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \"+cnt.get(\"WA\")",
"\"WA x \"",
"cnt.get(\"WA\")",
"cnt.get",
"cnt",
"\"WA\"",
"System.out.println(\"TLE x \"+cnt.get(\"TLE\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \"+cnt.get(\"TLE\")",
"\"TLE x \"",
"cnt.get(\"TLE\")",
"cnt.get",
"cnt",
"\"TLE\"",
"System.out.println(\"RE x \"+cnt.get(\"RE\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \"+cnt.get(\"RE\")",
"\"RE x \"",
"cnt.get(\"RE\")",
"cnt.get",
"cnt",
"\"RE\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n Map<String, Integer> cnt = new HashMap<>();\n cnt.put(\"AC\", 0);\n cnt.put(\"WA\", 0);\n cnt.put(\"TLE\", 0);\n cnt.put(\"RE\", 0);\n scanner.nextLine();\n for (int i = 0; i < n; i++) {\n String s = scanner.nextLine();\n cnt.put(s, cnt.get(s) + 1);\n }\n System.out.println(\"AC x \"+cnt.get(\"AC\"));\n System.out.println(\"WA x \"+cnt.get(\"WA\"));\n System.out.println(\"TLE x \"+cnt.get(\"TLE\"));\n System.out.println(\"RE x \"+cnt.get(\"RE\"));\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n Map<String, Integer> cnt = new HashMap<>();\n cnt.put(\"AC\", 0);\n cnt.put(\"WA\", 0);\n cnt.put(\"TLE\", 0);\n cnt.put(\"RE\", 0);\n scanner.nextLine();\n for (int i = 0; i < n; i++) {\n String s = scanner.nextLine();\n cnt.put(s, cnt.get(s) + 1);\n }\n System.out.println(\"AC x \"+cnt.get(\"AC\"));\n System.out.println(\"WA x \"+cnt.get(\"WA\"));\n System.out.println(\"TLE x \"+cnt.get(\"TLE\"));\n System.out.println(\"RE x \"+cnt.get(\"RE\"));\n }\n}",
"Main"
]
| import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
Map<String, Integer> cnt = new HashMap<>();
cnt.put("AC", 0);
cnt.put("WA", 0);
cnt.put("TLE", 0);
cnt.put("RE", 0);
scanner.nextLine();
for (int i = 0; i < n; i++) {
String s = scanner.nextLine();
cnt.put(s, cnt.get(s) + 1);
}
System.out.println("AC x "+cnt.get("AC"));
System.out.println("WA x "+cnt.get("WA"));
System.out.println("TLE x "+cnt.get("TLE"));
System.out.println("RE x "+cnt.get("RE"));
}
} |
[
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,
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,
41,
13,
41,
13,
42,
2,
40,
13,
17,
30,
0,
13,
4,
18,
13,
0,
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,
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,
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,
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
],
[
207,
29
],
[
207,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
32,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
32,
43
],
[
43,
44
],
[
43,
45
],
[
32,
46
],
[
46,
47
],
[
46,
48
],
[
32,
49
],
[
49,
50
],
[
49,
51
],
[
32,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
52,
56
],
[
52,
57
],
[
32,
58
],
[
58,
59
],
[
59,
60
],
[
30,
61
],
[
61,
62
],
[
207,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
67,
73
],
[
73,
74
],
[
73,
75
],
[
67,
76
],
[
76,
77
],
[
76,
78
],
[
67,
79
],
[
79,
80
],
[
79,
81
],
[
67,
82
],
[
82,
83
],
[
82,
84
],
[
67,
85
],
[
85,
86
],
[
67,
87
],
[
87,
88
],
[
67,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
89,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
94,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
94,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
110,
111
],
[
106,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
116,
117
],
[
112,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
122,
123
],
[
118,
124
],
[
124,
125
],
[
67,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
129,
130
],
[
129,
131
],
[
67,
132
],
[
132,
133
],
[
133,
134
],
[
132,
135
],
[
135,
136
],
[
135,
137
],
[
67,
138
],
[
138,
139
],
[
139,
140
],
[
138,
141
],
[
141,
142
],
[
141,
143
],
[
67,
144
],
[
144,
145
],
[
145,
146
],
[
144,
147
],
[
147,
148
],
[
147,
149
],
[
65,
150
],
[
150,
151
],
[
65,
152
],
[
152,
153
],
[
65,
154
],
[
154,
155
],
[
207,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
156,
160
],
[
160,
161
],
[
156,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
162,
168
],
[
168,
169
],
[
156,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
174,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
173,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
187,
188
],
[
183,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
172,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
156,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
201,
204
],
[
204,
205
],
[
0,
206
],
[
206,
207
],
[
206,
208
]
]
| [
"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.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 HussienMoustafa\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(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, Scanner s, PrintWriter sout) {\n int n = s.nextInt(), ac = 0, wa = 0, tle = 0, re = 0;\n String x;\n char a;\n while (n-- != 0) {\n x = s.next();\n a = x.charAt(0);\n if (a == 'A') ac++;\n else if (a == 'T') tle++;\n else if (a == 'R') re++;\n else wa++;\n }\n sout.println(\"AC x \" + ac);\n sout.println(\"WA x \" + wa);\n sout.println(\"TLE x \" + tle);\n sout.println(\"RE x \" + re);\n }\n\n }\n\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.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.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 Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(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, Scanner s, PrintWriter sout) {\n int n = s.nextInt(), ac = 0, wa = 0, tle = 0, re = 0;\n String x;\n char a;\n while (n-- != 0) {\n x = s.next();\n a = x.charAt(0);\n if (a == 'A') ac++;\n else if (a == 'T') tle++;\n else if (a == 'R') re++;\n else wa++;\n }\n sout.println(\"AC x \" + ac);\n sout.println(\"WA x \" + wa);\n sout.println(\"TLE x \" + tle);\n sout.println(\"RE x \" + re);\n }\n\n }\n\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.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 Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(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 Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(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",
"Scanner in = new Scanner(inputStream);",
"in",
"new Scanner(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 public void solve(int testNumber, Scanner s, PrintWriter sout) {\n int n = s.nextInt(), ac = 0, wa = 0, tle = 0, re = 0;\n String x;\n char a;\n while (n-- != 0) {\n x = s.next();\n a = x.charAt(0);\n if (a == 'A') ac++;\n else if (a == 'T') tle++;\n else if (a == 'R') re++;\n else wa++;\n }\n sout.println(\"AC x \" + ac);\n sout.println(\"WA x \" + wa);\n sout.println(\"TLE x \" + tle);\n sout.println(\"RE x \" + re);\n }\n\n }",
"BJudgeStatusSummary",
"public void solve(int testNumber, Scanner s, PrintWriter sout) {\n int n = s.nextInt(), ac = 0, wa = 0, tle = 0, re = 0;\n String x;\n char a;\n while (n-- != 0) {\n x = s.next();\n a = x.charAt(0);\n if (a == 'A') ac++;\n else if (a == 'T') tle++;\n else if (a == 'R') re++;\n else wa++;\n }\n sout.println(\"AC x \" + ac);\n sout.println(\"WA x \" + wa);\n sout.println(\"TLE x \" + tle);\n sout.println(\"RE x \" + re);\n }",
"solve",
"{\n int n = s.nextInt(), ac = 0, wa = 0, tle = 0, re = 0;\n String x;\n char a;\n while (n-- != 0) {\n x = s.next();\n a = x.charAt(0);\n if (a == 'A') ac++;\n else if (a == 'T') tle++;\n else if (a == 'R') re++;\n else wa++;\n }\n sout.println(\"AC x \" + ac);\n sout.println(\"WA x \" + wa);\n sout.println(\"TLE x \" + tle);\n sout.println(\"RE x \" + re);\n }",
"int n = s.nextInt()",
"n",
"s.nextInt()",
"s.nextInt",
"s",
"ac = 0",
"ac",
"0",
"wa = 0",
"wa",
"0",
"tle = 0",
"tle",
"0",
"re = 0;",
"re",
"0",
"String x;",
"x",
"char a;",
"a",
"while (n-- != 0) {\n x = s.next();\n a = x.charAt(0);\n if (a == 'A') ac++;\n else if (a == 'T') tle++;\n else if (a == 'R') re++;\n else wa++;\n }",
"n-- != 0",
"n--",
"n",
"0",
"{\n x = s.next();\n a = x.charAt(0);\n if (a == 'A') ac++;\n else if (a == 'T') tle++;\n else if (a == 'R') re++;\n else wa++;\n }",
"x = s.next()",
"x",
"s.next()",
"s.next",
"s",
"a = x.charAt(0)",
"a",
"x.charAt(0)",
"x.charAt",
"x",
"0",
"if (a == 'A') ac++;\n else if (a == 'T') tle++;\n else if (a == 'R') re++;\n else wa++;",
"a == 'A'",
"a",
"'A'",
"ac++",
"ac",
"if (a == 'T') tle++;\n else if (a == 'R') re++;\n else wa++;",
"a == 'T'",
"a",
"'T'",
"tle++",
"tle",
"if (a == 'R') re++;\n else wa++;",
"a == 'R'",
"a",
"'R'",
"re++",
"re",
"wa++",
"wa",
"sout.println(\"AC x \" + ac)",
"sout.println",
"sout",
"\"AC x \" + ac",
"\"AC x \"",
"ac",
"sout.println(\"WA x \" + wa)",
"sout.println",
"sout",
"\"WA x \" + wa",
"\"WA x \"",
"wa",
"sout.println(\"TLE x \" + tle)",
"sout.println",
"sout",
"\"TLE x \" + tle",
"\"TLE x \"",
"tle",
"sout.println(\"RE x \" + re)",
"sout.println",
"sout",
"\"RE x \" + re",
"\"RE x \"",
"re",
"int testNumber",
"testNumber",
"Scanner s",
"s",
"PrintWriter sout",
"sout",
"static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }",
"Scanner",
"StringTokenizer st;",
"st",
"BufferedReader br;",
"br",
"public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }",
"Scanner",
"{\n br = new BufferedReader(new InputStreamReader(s));\n }",
"br = new BufferedReader(new InputStreamReader(s))",
"br",
"new BufferedReader(new InputStreamReader(s))",
"InputStream s",
"s",
"public String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"try {\n st = new StringTokenizer(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 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 class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(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, Scanner s, PrintWriter sout) {\n int n = s.nextInt(), ac = 0, wa = 0, tle = 0, re = 0;\n String x;\n char a;\n while (n-- != 0) {\n x = s.next();\n a = x.charAt(0);\n if (a == 'A') ac++;\n else if (a == 'T') tle++;\n else if (a == 'R') re++;\n else wa++;\n }\n sout.println(\"AC x \" + ac);\n sout.println(\"WA x \" + wa);\n sout.println(\"TLE x \" + tle);\n sout.println(\"RE x \" + re);\n }\n\n }\n\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.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 Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(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, Scanner s, PrintWriter sout) {\n int n = s.nextInt(), ac = 0, wa = 0, tle = 0, re = 0;\n String x;\n char a;\n while (n-- != 0) {\n x = s.next();\n a = x.charAt(0);\n if (a == 'A') ac++;\n else if (a == 'T') tle++;\n else if (a == 'R') re++;\n else wa++;\n }\n sout.println(\"AC x \" + ac);\n sout.println(\"WA x \" + wa);\n sout.println(\"TLE x \" + tle);\n sout.println(\"RE x \" + re);\n }\n\n }\n\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.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.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 HussienMoustafa
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
Scanner in = new Scanner(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, Scanner s, PrintWriter sout) {
int n = s.nextInt(), ac = 0, wa = 0, tle = 0, re = 0;
String x;
char a;
while (n-- != 0) {
x = s.next();
a = x.charAt(0);
if (a == 'A') ac++;
else if (a == 'T') tle++;
else if (a == 'R') re++;
else wa++;
}
sout.println("AC x " + ac);
sout.println("WA x " + wa);
sout.println("TLE x " + tle);
sout.println("RE x " + re);
}
}
static class Scanner {
StringTokenizer st;
BufferedReader br;
public Scanner(InputStream s) {
br = new BufferedReader(new InputStreamReader(s));
}
public String next() {
while (st == null || !st.hasMoreTokens()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return st.nextToken();
}
public int nextInt() {
return Integer.parseInt(next());
}
}
}
|
[
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,
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,
4,
18,
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
],
[
44,
45
],
[
42,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
42,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
42,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
42,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
66,
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
],
[
8,
102
],
[
102,
103
],
[
103,
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\tScanner sc = new Scanner(System.in);\n\n\t\t// 入力値の取得\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\t\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tswitch (sc.next()) {\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\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\tsc.close();\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\n\t\t// 入力値の取得\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\t\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tswitch (sc.next()) {\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\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\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 入力値の取得\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\t\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tswitch (sc.next()) {\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\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\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 入力値の取得\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\t\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tswitch (sc.next()) {\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\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\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",
"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 (sc.next()) {\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 (sc.next()) {\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 (sc.next()) {\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 (sc.next()) {\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}",
"sc.next()",
"sc.next",
"sc",
"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",
"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\n\t\t// 入力値の取得\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\t\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tswitch (sc.next()) {\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\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\tsc.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 入力値の取得\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\t\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tswitch (sc.next()) {\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\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\tsc.close();\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;
int WA = 0;
int TLE = 0;
int RE = 0;
for (int i = 0; i < N; i++) {
switch (sc.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);
sc.close();
}
}
|
[
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,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
4,
18,
18,
13,
13,
17,
30,
0,
13,
2,
13,
17,
14,
4,
18,
18,
13,
13,
17,
30,
0,
13,
2,
13,
17,
14,
4,
18,
18,
13,
13,
17,
30,
0,
13,
2,
13,
17,
14,
4,
18,
18,
13,
13,
17,
30,
0,
13,
2,
13,
17,
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
],
[
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,
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
],
[
40,
41
],
[
40,
42
],
[
33,
43
],
[
43,
44
],
[
44,
45
],
[
33,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
55,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
55,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
68,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
68,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
81,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
91,
93
],
[
81,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
94,
101
],
[
101,
102
],
[
102,
103
],
[
102,
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
],
[
8,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
123,
128
],
[
128,
129
],
[
128,
130
],
[
8,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
136,
137
],
[
136,
138
],
[
6,
139
],
[
139,
140
],
[
0,
141
],
[
141,
142
],
[
141,
143
]
]
| [
"import java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tString[] array = new String[n];\n\n\t\tint account = 0;\n\t\tint wacount = 0;\n\t\tint tlecount = 0;\n\t\tint recount = 0;\n\n\t\tfor(int i=0;i<array.length;i++) {\n\t\t\tarray[i] = scan.next();\n\t\t\tif(array[i].equals(\"AC\")) {\n\t\t\t\taccount = account + 1;\n\t\t\t}else if(array[i].equals(\"WA\")) {\n\t\t\t\twacount = wacount + 1;\n\t\t\t}else if(array[i].equals(\"TLE\")) {\n\t\t\t\ttlecount = tlecount + 1;\n\t\t\t}else if(array[i].equals(\"RE\")) {\n\t\t\t\trecount = recount + 1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \"+account);\n\t\tSystem.out.println(\"WA x \"+wacount);\n\t\tSystem.out.println(\"TLE x \"+tlecount);\n\t\tSystem.out.println(\"RE x \"+recount);\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 scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tString[] array = new String[n];\n\n\t\tint account = 0;\n\t\tint wacount = 0;\n\t\tint tlecount = 0;\n\t\tint recount = 0;\n\n\t\tfor(int i=0;i<array.length;i++) {\n\t\t\tarray[i] = scan.next();\n\t\t\tif(array[i].equals(\"AC\")) {\n\t\t\t\taccount = account + 1;\n\t\t\t}else if(array[i].equals(\"WA\")) {\n\t\t\t\twacount = wacount + 1;\n\t\t\t}else if(array[i].equals(\"TLE\")) {\n\t\t\t\ttlecount = tlecount + 1;\n\t\t\t}else if(array[i].equals(\"RE\")) {\n\t\t\t\trecount = recount + 1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \"+account);\n\t\tSystem.out.println(\"WA x \"+wacount);\n\t\tSystem.out.println(\"TLE x \"+tlecount);\n\t\tSystem.out.println(\"RE x \"+recount);\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tString[] array = new String[n];\n\n\t\tint account = 0;\n\t\tint wacount = 0;\n\t\tint tlecount = 0;\n\t\tint recount = 0;\n\n\t\tfor(int i=0;i<array.length;i++) {\n\t\t\tarray[i] = scan.next();\n\t\t\tif(array[i].equals(\"AC\")) {\n\t\t\t\taccount = account + 1;\n\t\t\t}else if(array[i].equals(\"WA\")) {\n\t\t\t\twacount = wacount + 1;\n\t\t\t}else if(array[i].equals(\"TLE\")) {\n\t\t\t\ttlecount = tlecount + 1;\n\t\t\t}else if(array[i].equals(\"RE\")) {\n\t\t\t\trecount = recount + 1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \"+account);\n\t\tSystem.out.println(\"WA x \"+wacount);\n\t\tSystem.out.println(\"TLE x \"+tlecount);\n\t\tSystem.out.println(\"RE x \"+recount);\n\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tString[] array = new String[n];\n\n\t\tint account = 0;\n\t\tint wacount = 0;\n\t\tint tlecount = 0;\n\t\tint recount = 0;\n\n\t\tfor(int i=0;i<array.length;i++) {\n\t\t\tarray[i] = scan.next();\n\t\t\tif(array[i].equals(\"AC\")) {\n\t\t\t\taccount = account + 1;\n\t\t\t}else if(array[i].equals(\"WA\")) {\n\t\t\t\twacount = wacount + 1;\n\t\t\t}else if(array[i].equals(\"TLE\")) {\n\t\t\t\ttlecount = tlecount + 1;\n\t\t\t}else if(array[i].equals(\"RE\")) {\n\t\t\t\trecount = recount + 1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \"+account);\n\t\tSystem.out.println(\"WA x \"+wacount);\n\t\tSystem.out.println(\"TLE x \"+tlecount);\n\t\tSystem.out.println(\"RE x \"+recount);\n\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String[] array = new String[n];",
"array",
"new String[n]",
"n",
"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<array.length;i++) {\n\t\t\tarray[i] = scan.next();\n\t\t\tif(array[i].equals(\"AC\")) {\n\t\t\t\taccount = account + 1;\n\t\t\t}else if(array[i].equals(\"WA\")) {\n\t\t\t\twacount = wacount + 1;\n\t\t\t}else if(array[i].equals(\"TLE\")) {\n\t\t\t\ttlecount = tlecount + 1;\n\t\t\t}else if(array[i].equals(\"RE\")) {\n\t\t\t\trecount = recount + 1;\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<array.length",
"i",
"array.length",
"array",
"array.length",
"i++",
"i++",
"i",
"{\n\t\t\tarray[i] = scan.next();\n\t\t\tif(array[i].equals(\"AC\")) {\n\t\t\t\taccount = account + 1;\n\t\t\t}else if(array[i].equals(\"WA\")) {\n\t\t\t\twacount = wacount + 1;\n\t\t\t}else if(array[i].equals(\"TLE\")) {\n\t\t\t\ttlecount = tlecount + 1;\n\t\t\t}else if(array[i].equals(\"RE\")) {\n\t\t\t\trecount = recount + 1;\n\t\t\t}\n\t\t}",
"{\n\t\t\tarray[i] = scan.next();\n\t\t\tif(array[i].equals(\"AC\")) {\n\t\t\t\taccount = account + 1;\n\t\t\t}else if(array[i].equals(\"WA\")) {\n\t\t\t\twacount = wacount + 1;\n\t\t\t}else if(array[i].equals(\"TLE\")) {\n\t\t\t\ttlecount = tlecount + 1;\n\t\t\t}else if(array[i].equals(\"RE\")) {\n\t\t\t\trecount = recount + 1;\n\t\t\t}\n\t\t}",
"array[i] = scan.next()",
"array[i]",
"array",
"i",
"scan.next()",
"scan.next",
"scan",
"if(array[i].equals(\"AC\")) {\n\t\t\t\taccount = account + 1;\n\t\t\t}else if(array[i].equals(\"WA\")) {\n\t\t\t\twacount = wacount + 1;\n\t\t\t}else if(array[i].equals(\"TLE\")) {\n\t\t\t\ttlecount = tlecount + 1;\n\t\t\t}else if(array[i].equals(\"RE\")) {\n\t\t\t\trecount = recount + 1;\n\t\t\t}",
"array[i].equals(\"AC\")",
"array[i].equals",
"array[i]",
"array",
"i",
"\"AC\"",
"{\n\t\t\t\taccount = account + 1;\n\t\t\t}",
"account = account + 1",
"account",
"account + 1",
"account",
"1",
"if(array[i].equals(\"WA\")) {\n\t\t\t\twacount = wacount + 1;\n\t\t\t}else if(array[i].equals(\"TLE\")) {\n\t\t\t\ttlecount = tlecount + 1;\n\t\t\t}else if(array[i].equals(\"RE\")) {\n\t\t\t\trecount = recount + 1;\n\t\t\t}",
"array[i].equals(\"WA\")",
"array[i].equals",
"array[i]",
"array",
"i",
"\"WA\"",
"{\n\t\t\t\twacount = wacount + 1;\n\t\t\t}",
"wacount = wacount + 1",
"wacount",
"wacount + 1",
"wacount",
"1",
"if(array[i].equals(\"TLE\")) {\n\t\t\t\ttlecount = tlecount + 1;\n\t\t\t}else if(array[i].equals(\"RE\")) {\n\t\t\t\trecount = recount + 1;\n\t\t\t}",
"array[i].equals(\"TLE\")",
"array[i].equals",
"array[i]",
"array",
"i",
"\"TLE\"",
"{\n\t\t\t\ttlecount = tlecount + 1;\n\t\t\t}",
"tlecount = tlecount + 1",
"tlecount",
"tlecount + 1",
"tlecount",
"1",
"if(array[i].equals(\"RE\")) {\n\t\t\t\trecount = recount + 1;\n\t\t\t}",
"array[i].equals(\"RE\")",
"array[i].equals",
"array[i]",
"array",
"i",
"\"RE\"",
"{\n\t\t\t\trecount = recount + 1;\n\t\t\t}",
"recount = recount + 1",
"recount",
"recount + 1",
"recount",
"1",
"System.out.println(\"AC x \"+account)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \"+account",
"\"AC x \"",
"account",
"System.out.println(\"WA x \"+wacount)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \"+wacount",
"\"WA x \"",
"wacount",
"System.out.println(\"TLE x \"+tlecount)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \"+tlecount",
"\"TLE x \"",
"tlecount",
"System.out.println(\"RE x \"+recount)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \"+recount",
"\"RE x \"",
"recount",
"String[] args",
"args",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tString[] array = new String[n];\n\n\t\tint account = 0;\n\t\tint wacount = 0;\n\t\tint tlecount = 0;\n\t\tint recount = 0;\n\n\t\tfor(int i=0;i<array.length;i++) {\n\t\t\tarray[i] = scan.next();\n\t\t\tif(array[i].equals(\"AC\")) {\n\t\t\t\taccount = account + 1;\n\t\t\t}else if(array[i].equals(\"WA\")) {\n\t\t\t\twacount = wacount + 1;\n\t\t\t}else if(array[i].equals(\"TLE\")) {\n\t\t\t\ttlecount = tlecount + 1;\n\t\t\t}else if(array[i].equals(\"RE\")) {\n\t\t\t\trecount = recount + 1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \"+account);\n\t\tSystem.out.println(\"WA x \"+wacount);\n\t\tSystem.out.println(\"TLE x \"+tlecount);\n\t\tSystem.out.println(\"RE x \"+recount);\n\n\t}\n\n}",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tString[] array = new String[n];\n\n\t\tint account = 0;\n\t\tint wacount = 0;\n\t\tint tlecount = 0;\n\t\tint recount = 0;\n\n\t\tfor(int i=0;i<array.length;i++) {\n\t\t\tarray[i] = scan.next();\n\t\t\tif(array[i].equals(\"AC\")) {\n\t\t\t\taccount = account + 1;\n\t\t\t}else if(array[i].equals(\"WA\")) {\n\t\t\t\twacount = wacount + 1;\n\t\t\t}else if(array[i].equals(\"TLE\")) {\n\t\t\t\ttlecount = tlecount + 1;\n\t\t\t}else if(array[i].equals(\"RE\")) {\n\t\t\t\trecount = recount + 1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"AC x \"+account);\n\t\tSystem.out.println(\"WA x \"+wacount);\n\t\tSystem.out.println(\"TLE x \"+tlecount);\n\t\tSystem.out.println(\"RE x \"+recount);\n\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
String[] array = new String[n];
int account = 0;
int wacount = 0;
int tlecount = 0;
int recount = 0;
for(int i=0;i<array.length;i++) {
array[i] = scan.next();
if(array[i].equals("AC")) {
account = account + 1;
}else if(array[i].equals("WA")) {
wacount = wacount + 1;
}else if(array[i].equals("TLE")) {
tlecount = tlecount + 1;
}else if(array[i].equals("RE")) {
recount = recount + 1;
}
}
System.out.println("AC x "+account);
System.out.println("WA x "+wacount);
System.out.println("TLE x "+tlecount);
System.out.println("RE x "+recount);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
4,
18,
13,
13,
2,
4,
18,
13,
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,
4,
18,
18,
13,
13,
2,
17,
8,
2,
4,
18,
13,
17,
17,
17,
4,
18,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
134,
8
],
[
134,
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
],
[
11,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
23,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
27,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
34,
39
],
[
33,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
40,
44
],
[
33,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
45,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
49,
54
],
[
11,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
63,
68
],
[
62,
69
],
[
62,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
11,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
82,
87
],
[
81,
88
],
[
81,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
11,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
101,
106
],
[
100,
107
],
[
100,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
11,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
121,
124
],
[
120,
125
],
[
119,
126
],
[
119,
127
],
[
127,
128
],
[
128,
129
],
[
127,
130
],
[
9,
131
],
[
131,
132
],
[
0,
133
],
[
133,
134
],
[
133,
135
]
]
| [
"import java.lang.*;\nimport java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n HashMap<String,Integer> map = new HashMap<>();\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n \n while(scan.hasNextLine()){\n String val = scan.nextLine();\n if(map.get(val) == null) map.put(val, 1);\n else map.put(val, map.get(val)+1);\n }\n \n System.out.println(\"AC x \" + ((map.get(\"AC\") == null)? 0 : map.get(\"AC\")));\n System.out.println(\"WA x \" + ((map.get(\"WA\") == null)? 0 : map.get(\"WA\")));\n System.out.println(\"TLE x \" + ((map.get(\"TLE\") == null)? 0 : map.get(\"TLE\")));\n System.out.println(\"RE x \" + ((map.get(\"RE\") == null)? 0 : map.get(\"RE\")));\n }\n}",
"import java.lang.*;",
"lang.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n HashMap<String,Integer> map = new HashMap<>();\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n \n while(scan.hasNextLine()){\n String val = scan.nextLine();\n if(map.get(val) == null) map.put(val, 1);\n else map.put(val, map.get(val)+1);\n }\n \n System.out.println(\"AC x \" + ((map.get(\"AC\") == null)? 0 : map.get(\"AC\")));\n System.out.println(\"WA x \" + ((map.get(\"WA\") == null)? 0 : map.get(\"WA\")));\n System.out.println(\"TLE x \" + ((map.get(\"TLE\") == null)? 0 : map.get(\"TLE\")));\n System.out.println(\"RE x \" + ((map.get(\"RE\") == null)? 0 : map.get(\"RE\")));\n }\n}",
"Main",
"public static void main(String[] args){\n HashMap<String,Integer> map = new HashMap<>();\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n \n while(scan.hasNextLine()){\n String val = scan.nextLine();\n if(map.get(val) == null) map.put(val, 1);\n else map.put(val, map.get(val)+1);\n }\n \n System.out.println(\"AC x \" + ((map.get(\"AC\") == null)? 0 : map.get(\"AC\")));\n System.out.println(\"WA x \" + ((map.get(\"WA\") == null)? 0 : map.get(\"WA\")));\n System.out.println(\"TLE x \" + ((map.get(\"TLE\") == null)? 0 : map.get(\"TLE\")));\n System.out.println(\"RE x \" + ((map.get(\"RE\") == null)? 0 : map.get(\"RE\")));\n }",
"main",
"{\n HashMap<String,Integer> map = new HashMap<>();\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n \n while(scan.hasNextLine()){\n String val = scan.nextLine();\n if(map.get(val) == null) map.put(val, 1);\n else map.put(val, map.get(val)+1);\n }\n \n System.out.println(\"AC x \" + ((map.get(\"AC\") == null)? 0 : map.get(\"AC\")));\n System.out.println(\"WA x \" + ((map.get(\"WA\") == null)? 0 : map.get(\"WA\")));\n System.out.println(\"TLE x \" + ((map.get(\"TLE\") == null)? 0 : map.get(\"TLE\")));\n System.out.println(\"RE x \" + ((map.get(\"RE\") == null)? 0 : map.get(\"RE\")));\n }",
"HashMap<String,Integer> map = new HashMap<>();",
"map",
"new HashMap<>()",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"while(scan.hasNextLine()){\n String val = scan.nextLine();\n if(map.get(val) == null) map.put(val, 1);\n else map.put(val, map.get(val)+1);\n }",
"scan.hasNextLine()",
"scan.hasNextLine",
"scan",
"{\n String val = scan.nextLine();\n if(map.get(val) == null) map.put(val, 1);\n else map.put(val, map.get(val)+1);\n }",
"String val = scan.nextLine();",
"val",
"scan.nextLine()",
"scan.nextLine",
"scan",
"if(map.get(val) == null) map.put(val, 1);\n else map.put(val, map.get(val)+1);",
"map.get(val) == null",
"map.get(val)",
"map.get",
"map",
"val",
"null",
"map.put(val, 1)",
"map.put",
"map",
"val",
"1",
"map.put(val, map.get(val)+1)",
"map.put",
"map",
"val",
"map.get(val)+1",
"map.get(val)",
"map.get",
"map",
"val",
"1",
"System.out.println(\"AC x \" + ((map.get(\"AC\") == null)? 0 : map.get(\"AC\")))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + ((map.get(\"AC\") == null)? 0 : map.get(\"AC\"))",
"\"AC x \"",
"((map.get(\"AC\") == null)? 0 : map.get(\"AC\"))",
"(map.get(\"AC\") == null)",
"map.get(\"AC\")",
"map.get",
"map",
"\"AC\"",
"null",
"0",
"map.get(\"AC\")",
"map.get",
"map",
"\"AC\"",
"System.out.println(\"WA x \" + ((map.get(\"WA\") == null)? 0 : map.get(\"WA\")))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + ((map.get(\"WA\") == null)? 0 : map.get(\"WA\"))",
"\"WA x \"",
"((map.get(\"WA\") == null)? 0 : map.get(\"WA\"))",
"(map.get(\"WA\") == null)",
"map.get(\"WA\")",
"map.get",
"map",
"\"WA\"",
"null",
"0",
"map.get(\"WA\")",
"map.get",
"map",
"\"WA\"",
"System.out.println(\"TLE x \" + ((map.get(\"TLE\") == null)? 0 : map.get(\"TLE\")))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + ((map.get(\"TLE\") == null)? 0 : map.get(\"TLE\"))",
"\"TLE x \"",
"((map.get(\"TLE\") == null)? 0 : map.get(\"TLE\"))",
"(map.get(\"TLE\") == null)",
"map.get(\"TLE\")",
"map.get",
"map",
"\"TLE\"",
"null",
"0",
"map.get(\"TLE\")",
"map.get",
"map",
"\"TLE\"",
"System.out.println(\"RE x \" + ((map.get(\"RE\") == null)? 0 : map.get(\"RE\")))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + ((map.get(\"RE\") == null)? 0 : map.get(\"RE\"))",
"\"RE x \"",
"((map.get(\"RE\") == null)? 0 : map.get(\"RE\"))",
"(map.get(\"RE\") == null)",
"map.get(\"RE\")",
"map.get",
"map",
"\"RE\"",
"null",
"0",
"map.get(\"RE\")",
"map.get",
"map",
"\"RE\"",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n HashMap<String,Integer> map = new HashMap<>();\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n \n while(scan.hasNextLine()){\n String val = scan.nextLine();\n if(map.get(val) == null) map.put(val, 1);\n else map.put(val, map.get(val)+1);\n }\n \n System.out.println(\"AC x \" + ((map.get(\"AC\") == null)? 0 : map.get(\"AC\")));\n System.out.println(\"WA x \" + ((map.get(\"WA\") == null)? 0 : map.get(\"WA\")));\n System.out.println(\"TLE x \" + ((map.get(\"TLE\") == null)? 0 : map.get(\"TLE\")));\n System.out.println(\"RE x \" + ((map.get(\"RE\") == null)? 0 : map.get(\"RE\")));\n }\n}",
"public class Main{\n public static void main(String[] args){\n HashMap<String,Integer> map = new HashMap<>();\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n \n while(scan.hasNextLine()){\n String val = scan.nextLine();\n if(map.get(val) == null) map.put(val, 1);\n else map.put(val, map.get(val)+1);\n }\n \n System.out.println(\"AC x \" + ((map.get(\"AC\") == null)? 0 : map.get(\"AC\")));\n System.out.println(\"WA x \" + ((map.get(\"WA\") == null)? 0 : map.get(\"WA\")));\n System.out.println(\"TLE x \" + ((map.get(\"TLE\") == null)? 0 : map.get(\"TLE\")));\n System.out.println(\"RE x \" + ((map.get(\"RE\") == null)? 0 : map.get(\"RE\")));\n }\n}",
"Main"
]
| import java.lang.*;
import java.util.*;
public class Main{
public static void main(String[] args){
HashMap<String,Integer> map = new HashMap<>();
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
while(scan.hasNextLine()){
String val = scan.nextLine();
if(map.get(val) == null) map.put(val, 1);
else map.put(val, map.get(val)+1);
}
System.out.println("AC x " + ((map.get("AC") == null)? 0 : map.get("AC")));
System.out.println("WA x " + ((map.get("WA") == null)? 0 : map.get("WA")));
System.out.println("TLE x " + ((map.get("TLE") == null)? 0 : map.get("TLE")));
System.out.println("RE x " + ((map.get("RE") == null)? 0 : map.get("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,
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,
4,
18,
18,
13,
13,
17,
13,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
92,
5
],
[
92,
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
],
[
8,
76
],
[
76,
77
],
[
77,
78
],
[
8,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
79,
85
],
[
79,
86
],
[
79,
87
],
[
79,
88
],
[
6,
89
],
[
89,
90
],
[
0,
91
],
[
91,
92
],
[
91,
93
]
]
| [
"import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = Integer.parseInt(scan.next());\n\t\tint AC = 0;\n\t\tint WA = 0;\n\t\tint TLE = 0;\n\t\tint RE = 0;\n\t\tfor (int n = 0;n < N ;n++ ) {\n\t\t\tString S = scan.next();\n\t\t\tswitch (S) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tAC++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tWA++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tTLE++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tRE++;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.printf(\"AC x %d\\nWA x %d\\nTLE x %d\\nRE x %d\\n\",AC,WA,TLE,RE);\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 scan = new Scanner(System.in);\n\t\tint N = Integer.parseInt(scan.next());\n\t\tint AC = 0;\n\t\tint WA = 0;\n\t\tint TLE = 0;\n\t\tint RE = 0;\n\t\tfor (int n = 0;n < N ;n++ ) {\n\t\t\tString S = scan.next();\n\t\t\tswitch (S) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tAC++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tWA++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tTLE++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tRE++;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.printf(\"AC x %d\\nWA x %d\\nTLE x %d\\nRE x %d\\n\",AC,WA,TLE,RE);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = Integer.parseInt(scan.next());\n\t\tint AC = 0;\n\t\tint WA = 0;\n\t\tint TLE = 0;\n\t\tint RE = 0;\n\t\tfor (int n = 0;n < N ;n++ ) {\n\t\t\tString S = scan.next();\n\t\t\tswitch (S) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tAC++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tWA++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tTLE++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tRE++;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.printf(\"AC x %d\\nWA x %d\\nTLE x %d\\nRE x %d\\n\",AC,WA,TLE,RE);\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = Integer.parseInt(scan.next());\n\t\tint AC = 0;\n\t\tint WA = 0;\n\t\tint TLE = 0;\n\t\tint RE = 0;\n\t\tfor (int n = 0;n < N ;n++ ) {\n\t\t\tString S = scan.next();\n\t\t\tswitch (S) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tAC++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tWA++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tTLE++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tRE++;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.printf(\"AC x %d\\nWA x %d\\nTLE x %d\\nRE x %d\\n\",AC,WA,TLE,RE);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int N = Integer.parseInt(scan.next());",
"N",
"Integer.parseInt(scan.next())",
"Integer.parseInt",
"Integer",
"scan.next()",
"scan.next",
"scan",
"int AC = 0;",
"AC",
"0",
"int WA = 0;",
"WA",
"0",
"int TLE = 0;",
"TLE",
"0",
"int RE = 0;",
"RE",
"0",
"for (int n = 0;n < N ;n++ ) {\n\t\t\tString S = scan.next();\n\t\t\tswitch (S) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tAC++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tWA++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tTLE++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tRE++;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int n = 0;",
"int n = 0;",
"n",
"0",
"n < N",
"n",
"N",
"n++",
"n++",
"n",
"{\n\t\t\tString S = scan.next();\n\t\t\tswitch (S) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tAC++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tWA++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tTLE++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tRE++;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString S = scan.next();\n\t\t\tswitch (S) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tAC++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tWA++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tTLE++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tRE++;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"String S = scan.next();",
"S",
"scan.next()",
"scan.next",
"scan",
"switch (S) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tAC++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tWA++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tTLE++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tRE++;\n\t\t\t\t\tbreak;\n\t\t\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;",
"scan.close()",
"scan.close",
"scan",
"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\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = Integer.parseInt(scan.next());\n\t\tint AC = 0;\n\t\tint WA = 0;\n\t\tint TLE = 0;\n\t\tint RE = 0;\n\t\tfor (int n = 0;n < N ;n++ ) {\n\t\t\tString S = scan.next();\n\t\t\tswitch (S) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tAC++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tWA++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tTLE++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tRE++;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.printf(\"AC x %d\\nWA x %d\\nTLE x %d\\nRE x %d\\n\",AC,WA,TLE,RE);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = Integer.parseInt(scan.next());\n\t\tint AC = 0;\n\t\tint WA = 0;\n\t\tint TLE = 0;\n\t\tint RE = 0;\n\t\tfor (int n = 0;n < N ;n++ ) {\n\t\t\tString S = scan.next();\n\t\t\tswitch (S) {\n\t\t\t\tcase \"AC\":\n\t\t\t\t\tAC++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"WA\":\n\t\t\t\t\tWA++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"TLE\":\n\t\t\t\t\tTLE++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RE\":\n\t\t\t\t\tRE++;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.printf(\"AC x %d\\nWA x %d\\nTLE x %d\\nRE x %d\\n\",AC,WA,TLE,RE);\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int N = Integer.parseInt(scan.next());
int AC = 0;
int WA = 0;
int TLE = 0;
int RE = 0;
for (int n = 0;n < N ;n++ ) {
String S = scan.next();
switch (S) {
case "AC":
AC++;
break;
case "WA":
WA++;
break;
case "TLE":
TLE++;
break;
case "RE":
RE++;
break;
}
}
scan.close();
System.out.printf("AC x %d\nWA x %d\nTLE x %d\nRE x %d\n",AC,WA,TLE,RE);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
4,
13,
23,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
41,
13,
20,
41,
13,
4,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
13,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
41,
13,
20,
41,
13,
4,
13,
4,
18,
13,
41,
13,
20,
17,
41,
13,
39,
17,
17,
17,
17,
4,
18,
13,
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,
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,
41,
13,
17,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
13,
40,
13,
12,
13,
30,
29,
4,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
185,
8
],
[
185,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
9,
14
],
[
14,
15
],
[
185,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
19,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
42,
43
],
[
42,
44
],
[
31,
45
],
[
45,
46
],
[
45,
47
],
[
31,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
185,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
61,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
73,
84
],
[
84,
85
],
[
84,
86
],
[
73,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
90,
92
],
[
90,
93
],
[
90,
94
],
[
73,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
95,
99
],
[
73,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
100,
108
],
[
108,
109
],
[
109,
110
],
[
100,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
112,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
118,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
130,
135
],
[
118,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
118,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
146,
151
],
[
73,
152
],
[
152,
153
],
[
152,
154
],
[
73,
155
],
[
155,
156
],
[
155,
157
],
[
155,
158
],
[
159,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
160,
165
],
[
166,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
166,
171
],
[
159,
172
],
[
172,
173
],
[
185,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
178,
181
],
[
174,
182
],
[
182,
183
],
[
0,
184
],
[
184,
185
],
[
184,
186
]
]
| [
"import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n // abc173_a();\n abc173_b();\n }\n\n // int 2147483648 [ 2 * 10(9)]\n // long 9223372036854775808 [ 9 * 10(18)]\n\n public static void abc173_a() {\n try (Scanner sc = new Scanner(System.in)) {\n int payment = parseI(sc.next());\n int max = 10000;\n int thou = 1000;\n\n System.out.println((max - payment) % thou);\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }\n\n public static void abc173_b() {\n try (Scanner sc = new Scanner(System.in)) {\n int num = parseI(sc.next());\n\n // AC\n // WA\n // TLE\n // RE x 0\n int[] ansCount = new int[4];\n String[] err = { \"AC\", \"WA\", \"TLE\", \"RE\" };\n Arrays.fill(ansCount, 0);\n\n for (int i = 0; i < num; i++) {\n String ans = sc.next();\n switch (ans) {\n case \"AC\":\n ansCount[0]++;\n break;\n case \"WA\":\n ansCount[1]++;\n break;\n case \"TLE\":\n ansCount[2]++;\n break;\n case \"RE\":\n ansCount[3]++;\n break;\n }\n }\n int count = 0;\n for (int answer : ansCount) {\n System.out.println(err[count] + \" x \" + answer);\n count++;\n }\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }\n\n public static int parseI(String value) {\n return Integer.parseInt(value);\n }\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n // abc173_a();\n abc173_b();\n }\n\n // int 2147483648 [ 2 * 10(9)]\n // long 9223372036854775808 [ 9 * 10(18)]\n\n public static void abc173_a() {\n try (Scanner sc = new Scanner(System.in)) {\n int payment = parseI(sc.next());\n int max = 10000;\n int thou = 1000;\n\n System.out.println((max - payment) % thou);\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }\n\n public static void abc173_b() {\n try (Scanner sc = new Scanner(System.in)) {\n int num = parseI(sc.next());\n\n // AC\n // WA\n // TLE\n // RE x 0\n int[] ansCount = new int[4];\n String[] err = { \"AC\", \"WA\", \"TLE\", \"RE\" };\n Arrays.fill(ansCount, 0);\n\n for (int i = 0; i < num; i++) {\n String ans = sc.next();\n switch (ans) {\n case \"AC\":\n ansCount[0]++;\n break;\n case \"WA\":\n ansCount[1]++;\n break;\n case \"TLE\":\n ansCount[2]++;\n break;\n case \"RE\":\n ansCount[3]++;\n break;\n }\n }\n int count = 0;\n for (int answer : ansCount) {\n System.out.println(err[count] + \" x \" + answer);\n count++;\n }\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }\n\n public static int parseI(String value) {\n return Integer.parseInt(value);\n }\n}",
"Main",
"public static void main(String[] args) {\n // abc173_a();\n abc173_b();\n }",
"main",
"{\n // abc173_a();\n abc173_b();\n }",
"abc173_b()",
"abc173_b",
"String[] args",
"args",
"public static void abc173_a() {\n try (Scanner sc = new Scanner(System.in)) {\n int payment = parseI(sc.next());\n int max = 10000;\n int thou = 1000;\n\n System.out.println((max - payment) % thou);\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }",
"abc173_a",
"{\n try (Scanner sc = new Scanner(System.in)) {\n int payment = parseI(sc.next());\n int max = 10000;\n int thou = 1000;\n\n System.out.println((max - payment) % thou);\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }",
"try (Scanner sc = new Scanner(System.in)) {\n int payment = parseI(sc.next());\n int max = 10000;\n int thou = 1000;\n\n System.out.println((max - payment) % thou);\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",
"\"エラー\"",
"e",
"{\n int payment = parseI(sc.next());\n int max = 10000;\n int thou = 1000;\n\n System.out.println((max - payment) % thou);\n }",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"int payment = parseI(sc.next());",
"payment",
"parseI(sc.next())",
"parseI",
"sc.next()",
"sc.next",
"sc",
"int max = 10000;",
"max",
"10000",
"int thou = 1000;",
"thou",
"1000",
"System.out.println((max - payment) % thou)",
"System.out.println",
"System.out",
"System",
"System.out",
"(max - payment) % thou",
"(max - payment)",
"max",
"payment",
"thou",
"public static void abc173_b() {\n try (Scanner sc = new Scanner(System.in)) {\n int num = parseI(sc.next());\n\n // AC\n // WA\n // TLE\n // RE x 0\n int[] ansCount = new int[4];\n String[] err = { \"AC\", \"WA\", \"TLE\", \"RE\" };\n Arrays.fill(ansCount, 0);\n\n for (int i = 0; i < num; i++) {\n String ans = sc.next();\n switch (ans) {\n case \"AC\":\n ansCount[0]++;\n break;\n case \"WA\":\n ansCount[1]++;\n break;\n case \"TLE\":\n ansCount[2]++;\n break;\n case \"RE\":\n ansCount[3]++;\n break;\n }\n }\n int count = 0;\n for (int answer : ansCount) {\n System.out.println(err[count] + \" x \" + answer);\n count++;\n }\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }",
"abc173_b",
"{\n try (Scanner sc = new Scanner(System.in)) {\n int num = parseI(sc.next());\n\n // AC\n // WA\n // TLE\n // RE x 0\n int[] ansCount = new int[4];\n String[] err = { \"AC\", \"WA\", \"TLE\", \"RE\" };\n Arrays.fill(ansCount, 0);\n\n for (int i = 0; i < num; i++) {\n String ans = sc.next();\n switch (ans) {\n case \"AC\":\n ansCount[0]++;\n break;\n case \"WA\":\n ansCount[1]++;\n break;\n case \"TLE\":\n ansCount[2]++;\n break;\n case \"RE\":\n ansCount[3]++;\n break;\n }\n }\n int count = 0;\n for (int answer : ansCount) {\n System.out.println(err[count] + \" x \" + answer);\n count++;\n }\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }",
"try (Scanner sc = new Scanner(System.in)) {\n int num = parseI(sc.next());\n\n // AC\n // WA\n // TLE\n // RE x 0\n int[] ansCount = new int[4];\n String[] err = { \"AC\", \"WA\", \"TLE\", \"RE\" };\n Arrays.fill(ansCount, 0);\n\n for (int i = 0; i < num; i++) {\n String ans = sc.next();\n switch (ans) {\n case \"AC\":\n ansCount[0]++;\n break;\n case \"WA\":\n ansCount[1]++;\n break;\n case \"TLE\":\n ansCount[2]++;\n break;\n case \"RE\":\n ansCount[3]++;\n break;\n }\n }\n int count = 0;\n for (int answer : ansCount) {\n System.out.println(err[count] + \" x \" + answer);\n count++;\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",
"\"エラー\"",
"e",
"{\n int num = parseI(sc.next());\n\n // AC\n // WA\n // TLE\n // RE x 0\n int[] ansCount = new int[4];\n String[] err = { \"AC\", \"WA\", \"TLE\", \"RE\" };\n Arrays.fill(ansCount, 0);\n\n for (int i = 0; i < num; i++) {\n String ans = sc.next();\n switch (ans) {\n case \"AC\":\n ansCount[0]++;\n break;\n case \"WA\":\n ansCount[1]++;\n break;\n case \"TLE\":\n ansCount[2]++;\n break;\n case \"RE\":\n ansCount[3]++;\n break;\n }\n }\n int count = 0;\n for (int answer : ansCount) {\n System.out.println(err[count] + \" x \" + answer);\n count++;\n }\n }",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"int num = parseI(sc.next());",
"num",
"parseI(sc.next())",
"parseI",
"sc.next()",
"sc.next",
"sc",
"int[] ansCount = new int[4];",
"ansCount",
"new int[4]",
"4",
"String[] err = { \"AC\", \"WA\", \"TLE\", \"RE\" };",
"err",
"{ \"AC\", \"WA\", \"TLE\", \"RE\" }",
"\"AC\"",
"\"WA\"",
"\"TLE\"",
"\"RE\"",
"Arrays.fill(ansCount, 0)",
"Arrays.fill",
"Arrays",
"ansCount",
"0",
"for (int i = 0; i < num; i++) {\n String ans = sc.next();\n switch (ans) {\n case \"AC\":\n ansCount[0]++;\n break;\n case \"WA\":\n ansCount[1]++;\n break;\n case \"TLE\":\n ansCount[2]++;\n break;\n case \"RE\":\n ansCount[3]++;\n break;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n String ans = sc.next();\n switch (ans) {\n case \"AC\":\n ansCount[0]++;\n break;\n case \"WA\":\n ansCount[1]++;\n break;\n case \"TLE\":\n ansCount[2]++;\n break;\n case \"RE\":\n ansCount[3]++;\n break;\n }\n }",
"{\n String ans = sc.next();\n switch (ans) {\n case \"AC\":\n ansCount[0]++;\n break;\n case \"WA\":\n ansCount[1]++;\n break;\n case \"TLE\":\n ansCount[2]++;\n break;\n case \"RE\":\n ansCount[3]++;\n break;\n }\n }",
"String ans = sc.next();",
"ans",
"sc.next()",
"sc.next",
"sc",
"switch (ans) {\n case \"AC\":\n ansCount[0]++;\n break;\n case \"WA\":\n ansCount[1]++;\n break;\n case \"TLE\":\n ansCount[2]++;\n break;\n case \"RE\":\n ansCount[3]++;\n break;\n }",
"ans",
"case \"AC\":",
"\"AC\"",
"case \"AC\":",
"ansCount[0]++",
"ansCount[0]",
"ansCount",
"0",
"break;",
"case \"WA\":",
"\"WA\"",
"case \"WA\":",
"ansCount[1]++",
"ansCount[1]",
"ansCount",
"1",
"break;",
"case \"TLE\":",
"\"TLE\"",
"case \"TLE\":",
"ansCount[2]++",
"ansCount[2]",
"ansCount",
"2",
"break;",
"case \"RE\":",
"\"RE\"",
"case \"RE\":",
"ansCount[3]++",
"ansCount[3]",
"ansCount",
"3",
"break;",
"int count = 0;",
"count",
"0",
"for (int answer : ansCount) {\n System.out.println(err[count] + \" x \" + answer);\n count++;\n }",
"int answer",
"ansCount",
"{\n System.out.println(err[count] + \" x \" + answer);\n count++;\n }",
"{\n System.out.println(err[count] + \" x \" + answer);\n count++;\n }",
"System.out.println(err[count] + \" x \" + answer)",
"System.out.println",
"System.out",
"System",
"System.out",
"err[count] + \" x \" + answer",
"err[count] + \" x \" + answer",
"err[count]",
"err",
"count",
"\" x \"",
"answer",
"count++",
"count",
"public static int parseI(String value) {\n return Integer.parseInt(value);\n }",
"parseI",
"{\n return Integer.parseInt(value);\n }",
"return Integer.parseInt(value);",
"Integer.parseInt(value)",
"Integer.parseInt",
"Integer",
"value",
"String value",
"value",
"public class Main {\n\n public static void main(String[] args) {\n // abc173_a();\n abc173_b();\n }\n\n // int 2147483648 [ 2 * 10(9)]\n // long 9223372036854775808 [ 9 * 10(18)]\n\n public static void abc173_a() {\n try (Scanner sc = new Scanner(System.in)) {\n int payment = parseI(sc.next());\n int max = 10000;\n int thou = 1000;\n\n System.out.println((max - payment) % thou);\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }\n\n public static void abc173_b() {\n try (Scanner sc = new Scanner(System.in)) {\n int num = parseI(sc.next());\n\n // AC\n // WA\n // TLE\n // RE x 0\n int[] ansCount = new int[4];\n String[] err = { \"AC\", \"WA\", \"TLE\", \"RE\" };\n Arrays.fill(ansCount, 0);\n\n for (int i = 0; i < num; i++) {\n String ans = sc.next();\n switch (ans) {\n case \"AC\":\n ansCount[0]++;\n break;\n case \"WA\":\n ansCount[1]++;\n break;\n case \"TLE\":\n ansCount[2]++;\n break;\n case \"RE\":\n ansCount[3]++;\n break;\n }\n }\n int count = 0;\n for (int answer : ansCount) {\n System.out.println(err[count] + \" x \" + answer);\n count++;\n }\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }\n\n public static int parseI(String value) {\n return Integer.parseInt(value);\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n // abc173_a();\n abc173_b();\n }\n\n // int 2147483648 [ 2 * 10(9)]\n // long 9223372036854775808 [ 9 * 10(18)]\n\n public static void abc173_a() {\n try (Scanner sc = new Scanner(System.in)) {\n int payment = parseI(sc.next());\n int max = 10000;\n int thou = 1000;\n\n System.out.println((max - payment) % thou);\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }\n\n public static void abc173_b() {\n try (Scanner sc = new Scanner(System.in)) {\n int num = parseI(sc.next());\n\n // AC\n // WA\n // TLE\n // RE x 0\n int[] ansCount = new int[4];\n String[] err = { \"AC\", \"WA\", \"TLE\", \"RE\" };\n Arrays.fill(ansCount, 0);\n\n for (int i = 0; i < num; i++) {\n String ans = sc.next();\n switch (ans) {\n case \"AC\":\n ansCount[0]++;\n break;\n case \"WA\":\n ansCount[1]++;\n break;\n case \"TLE\":\n ansCount[2]++;\n break;\n case \"RE\":\n ansCount[3]++;\n break;\n }\n }\n int count = 0;\n for (int answer : ansCount) {\n System.out.println(err[count] + \" x \" + answer);\n count++;\n }\n } catch (Exception e) {\n System.out.println(\"エラー\" + e);\n }\n }\n\n public static int parseI(String value) {\n return Integer.parseInt(value);\n }\n}",
"Main"
]
| import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// abc173_a();
abc173_b();
}
// int 2147483648 [ 2 * 10(9)]
// long 9223372036854775808 [ 9 * 10(18)]
public static void abc173_a() {
try (Scanner sc = new Scanner(System.in)) {
int payment = parseI(sc.next());
int max = 10000;
int thou = 1000;
System.out.println((max - payment) % thou);
} catch (Exception e) {
System.out.println("エラー" + e);
}
}
public static void abc173_b() {
try (Scanner sc = new Scanner(System.in)) {
int num = parseI(sc.next());
// AC
// WA
// TLE
// RE x 0
int[] ansCount = new int[4];
String[] err = { "AC", "WA", "TLE", "RE" };
Arrays.fill(ansCount, 0);
for (int i = 0; i < num; i++) {
String ans = sc.next();
switch (ans) {
case "AC":
ansCount[0]++;
break;
case "WA":
ansCount[1]++;
break;
case "TLE":
ansCount[2]++;
break;
case "RE":
ansCount[3]++;
break;
}
}
int count = 0;
for (int answer : ansCount) {
System.out.println(err[count] + " x " + answer);
count++;
}
} catch (Exception e) {
System.out.println("エラー" + e);
}
}
public static int parseI(String value) {
return Integer.parseInt(value);
}
}
|
[
7,
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,
30,
4,
18,
13,
13,
2,
4,
18,
13,
13,
17,
30,
4,
18,
13,
13,
17,
41,
13,
39,
17,
17,
17,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
28,
13,
4,
18,
13,
30,
30,
14,
4,
18,
13,
18,
13,
17,
0,
13,
17,
14,
4,
18,
13,
18,
13,
17,
0,
13,
17,
14,
4,
18,
13,
18,
13,
17,
0,
13,
17,
14,
4,
18,
13,
18,
13,
17,
0,
13,
17,
14,
13,
30,
4,
18,
18,
13,
13,
2,
2,
17,
17,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
17,
17,
17,
14,
13,
30,
4,
18,
18,
13,
13,
2,
2,
17,
17,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
17,
17,
17,
14,
13,
30,
4,
18,
18,
13,
13,
2,
2,
17,
17,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
17,
17,
17,
14,
13,
30,
4,
18,
18,
13,
13,
2,
2,
17,
17,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
17,
17,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
237,
5
],
[
237,
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
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
38,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
44,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
48,
53
],
[
38,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
55,
59
],
[
8,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
62,
65
],
[
62,
66
],
[
8,
67
],
[
67,
68
],
[
67,
69
],
[
8,
70
],
[
70,
71
],
[
70,
72
],
[
8,
73
],
[
73,
74
],
[
73,
75
],
[
8,
76
],
[
76,
77
],
[
76,
78
],
[
8,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
79,
84
],
[
85,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
90,
91
],
[
90,
92
],
[
86,
93
],
[
93,
94
],
[
93,
95
],
[
86,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
100,
101
],
[
100,
102
],
[
96,
103
],
[
103,
104
],
[
103,
105
],
[
96,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
110,
111
],
[
110,
112
],
[
106,
113
],
[
113,
114
],
[
113,
115
],
[
106,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
120,
121
],
[
120,
122
],
[
116,
123
],
[
123,
124
],
[
123,
125
],
[
8,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
135,
135
],
[
135,
136
],
[
135,
137
],
[
135,
138
],
[
138,
139
],
[
139,
140
],
[
138,
141
],
[
126,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
143,
148
],
[
149,
149
],
[
149,
150
],
[
149,
151
],
[
149,
152
],
[
8,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
156,
161
],
[
162,
162
],
[
162,
163
],
[
162,
164
],
[
162,
165
],
[
165,
166
],
[
166,
167
],
[
165,
168
],
[
153,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
170,
175
],
[
176,
176
],
[
176,
177
],
[
176,
178
],
[
176,
179
],
[
8,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
183,
188
],
[
189,
189
],
[
189,
190
],
[
189,
191
],
[
189,
192
],
[
192,
193
],
[
193,
194
],
[
192,
195
],
[
180,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
197,
202
],
[
203,
203
],
[
203,
204
],
[
203,
205
],
[
203,
206
],
[
8,
207
],
[
207,
208
],
[
207,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
210,
215
],
[
216,
216
],
[
216,
217
],
[
216,
218
],
[
216,
219
],
[
219,
220
],
[
220,
221
],
[
219,
222
],
[
207,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
224,
229
],
[
230,
230
],
[
230,
231
],
[
230,
232
],
[
230,
233
],
[
6,
234
],
[
234,
235
],
[
0,
236
],
[
236,
237
],
[
236,
238
]
]
| [
"import java.util.*;\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 Map<String, Integer> s = new HashMap<>();\n for(int i=0; i<n; i++) {\n String tmp = sc.next();\n if(s.containsKey(tmp)) {\n s.put(tmp, s.get(tmp)+1);\n } else {\n s.put(tmp, 1);\n }\n }\n\n String[] rst = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n boolean isAC = false;\n boolean isWA = false;\n boolean isTLE = false;\n boolean isRE = false;\n for(String tmp2: s.keySet()) {\n if(tmp2.equals(rst[0])) isAC = true;\n else if(tmp2.equals(rst[1])) isWA = true;\n else if(tmp2.equals(rst[2])) isTLE = true;\n else if(tmp2.equals(rst[3])) isRE = true;\n }\n\n if(isAC) {\n System.out.println(\"AC\" + \" x \" + s.get(\"AC\"));\n } else {\n System.out.println(\"AC\" + \" x \" + \"0\");\n }\n\n if(isWA) {\n System.out.println(\"WA\" + \" x \" + s.get(\"WA\"));\n } else {\n System.out.println(\"WA\" + \" x \" + \"0\");\n }\n\n if(isTLE) {\n System.out.println(\"TLE\" + \" x \" + s.get(\"TLE\"));\n } else {\n System.out.println(\"TLE\" + \" x \" + \"0\");\n }\n\n if(isRE) {\n System.out.println(\"RE\" + \" x \" + s.get(\"RE\"));\n } else {\n System.out.println(\"RE\" + \" x \" + \"0\");\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\n int n = sc.nextInt();\n Map<String, Integer> s = new HashMap<>();\n for(int i=0; i<n; i++) {\n String tmp = sc.next();\n if(s.containsKey(tmp)) {\n s.put(tmp, s.get(tmp)+1);\n } else {\n s.put(tmp, 1);\n }\n }\n\n String[] rst = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n boolean isAC = false;\n boolean isWA = false;\n boolean isTLE = false;\n boolean isRE = false;\n for(String tmp2: s.keySet()) {\n if(tmp2.equals(rst[0])) isAC = true;\n else if(tmp2.equals(rst[1])) isWA = true;\n else if(tmp2.equals(rst[2])) isTLE = true;\n else if(tmp2.equals(rst[3])) isRE = true;\n }\n\n if(isAC) {\n System.out.println(\"AC\" + \" x \" + s.get(\"AC\"));\n } else {\n System.out.println(\"AC\" + \" x \" + \"0\");\n }\n\n if(isWA) {\n System.out.println(\"WA\" + \" x \" + s.get(\"WA\"));\n } else {\n System.out.println(\"WA\" + \" x \" + \"0\");\n }\n\n if(isTLE) {\n System.out.println(\"TLE\" + \" x \" + s.get(\"TLE\"));\n } else {\n System.out.println(\"TLE\" + \" x \" + \"0\");\n }\n\n if(isRE) {\n System.out.println(\"RE\" + \" x \" + s.get(\"RE\"));\n } else {\n System.out.println(\"RE\" + \" x \" + \"0\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n Map<String, Integer> s = new HashMap<>();\n for(int i=0; i<n; i++) {\n String tmp = sc.next();\n if(s.containsKey(tmp)) {\n s.put(tmp, s.get(tmp)+1);\n } else {\n s.put(tmp, 1);\n }\n }\n\n String[] rst = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n boolean isAC = false;\n boolean isWA = false;\n boolean isTLE = false;\n boolean isRE = false;\n for(String tmp2: s.keySet()) {\n if(tmp2.equals(rst[0])) isAC = true;\n else if(tmp2.equals(rst[1])) isWA = true;\n else if(tmp2.equals(rst[2])) isTLE = true;\n else if(tmp2.equals(rst[3])) isRE = true;\n }\n\n if(isAC) {\n System.out.println(\"AC\" + \" x \" + s.get(\"AC\"));\n } else {\n System.out.println(\"AC\" + \" x \" + \"0\");\n }\n\n if(isWA) {\n System.out.println(\"WA\" + \" x \" + s.get(\"WA\"));\n } else {\n System.out.println(\"WA\" + \" x \" + \"0\");\n }\n\n if(isTLE) {\n System.out.println(\"TLE\" + \" x \" + s.get(\"TLE\"));\n } else {\n System.out.println(\"TLE\" + \" x \" + \"0\");\n }\n\n if(isRE) {\n System.out.println(\"RE\" + \" x \" + s.get(\"RE\"));\n } else {\n System.out.println(\"RE\" + \" x \" + \"0\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n Map<String, Integer> s = new HashMap<>();\n for(int i=0; i<n; i++) {\n String tmp = sc.next();\n if(s.containsKey(tmp)) {\n s.put(tmp, s.get(tmp)+1);\n } else {\n s.put(tmp, 1);\n }\n }\n\n String[] rst = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n boolean isAC = false;\n boolean isWA = false;\n boolean isTLE = false;\n boolean isRE = false;\n for(String tmp2: s.keySet()) {\n if(tmp2.equals(rst[0])) isAC = true;\n else if(tmp2.equals(rst[1])) isWA = true;\n else if(tmp2.equals(rst[2])) isTLE = true;\n else if(tmp2.equals(rst[3])) isRE = true;\n }\n\n if(isAC) {\n System.out.println(\"AC\" + \" x \" + s.get(\"AC\"));\n } else {\n System.out.println(\"AC\" + \" x \" + \"0\");\n }\n\n if(isWA) {\n System.out.println(\"WA\" + \" x \" + s.get(\"WA\"));\n } else {\n System.out.println(\"WA\" + \" x \" + \"0\");\n }\n\n if(isTLE) {\n System.out.println(\"TLE\" + \" x \" + s.get(\"TLE\"));\n } else {\n System.out.println(\"TLE\" + \" x \" + \"0\");\n }\n\n if(isRE) {\n System.out.println(\"RE\" + \" x \" + s.get(\"RE\"));\n } else {\n System.out.println(\"RE\" + \" x \" + \"0\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Map<String, Integer> s = new HashMap<>();",
"s",
"new HashMap<>()",
"for(int i=0; i<n; i++) {\n String tmp = sc.next();\n if(s.containsKey(tmp)) {\n s.put(tmp, s.get(tmp)+1);\n } else {\n s.put(tmp, 1);\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String tmp = sc.next();\n if(s.containsKey(tmp)) {\n s.put(tmp, s.get(tmp)+1);\n } else {\n s.put(tmp, 1);\n }\n }",
"{\n String tmp = sc.next();\n if(s.containsKey(tmp)) {\n s.put(tmp, s.get(tmp)+1);\n } else {\n s.put(tmp, 1);\n }\n }",
"String tmp = sc.next();",
"tmp",
"sc.next()",
"sc.next",
"sc",
"if(s.containsKey(tmp)) {\n s.put(tmp, s.get(tmp)+1);\n } else {\n s.put(tmp, 1);\n }",
"s.containsKey(tmp)",
"s.containsKey",
"s",
"tmp",
"{\n s.put(tmp, s.get(tmp)+1);\n }",
"s.put(tmp, s.get(tmp)+1)",
"s.put",
"s",
"tmp",
"s.get(tmp)+1",
"s.get(tmp)",
"s.get",
"s",
"tmp",
"1",
"{\n s.put(tmp, 1);\n }",
"s.put(tmp, 1)",
"s.put",
"s",
"tmp",
"1",
"String[] rst = {\"AC\", \"WA\", \"TLE\", \"RE\"};",
"rst",
"{\"AC\", \"WA\", \"TLE\", \"RE\"}",
"\"AC\"",
"\"WA\"",
"\"TLE\"",
"\"RE\"",
"boolean isAC = false;",
"isAC",
"false",
"boolean isWA = false;",
"isWA",
"false",
"boolean isTLE = false;",
"isTLE",
"false",
"boolean isRE = false;",
"isRE",
"false",
"for(String tmp2: s.keySet()) {\n if(tmp2.equals(rst[0])) isAC = true;\n else if(tmp2.equals(rst[1])) isWA = true;\n else if(tmp2.equals(rst[2])) isTLE = true;\n else if(tmp2.equals(rst[3])) isRE = true;\n }",
"String tmp2",
"s.keySet()",
"s.keySet",
"s",
"{\n if(tmp2.equals(rst[0])) isAC = true;\n else if(tmp2.equals(rst[1])) isWA = true;\n else if(tmp2.equals(rst[2])) isTLE = true;\n else if(tmp2.equals(rst[3])) isRE = true;\n }",
"{\n if(tmp2.equals(rst[0])) isAC = true;\n else if(tmp2.equals(rst[1])) isWA = true;\n else if(tmp2.equals(rst[2])) isTLE = true;\n else if(tmp2.equals(rst[3])) isRE = true;\n }",
"if(tmp2.equals(rst[0])) isAC = true;\n else if(tmp2.equals(rst[1])) isWA = true;\n else if(tmp2.equals(rst[2])) isTLE = true;\n else if(tmp2.equals(rst[3])) isRE = true;",
"tmp2.equals(rst[0])",
"tmp2.equals",
"tmp2",
"rst[0]",
"rst",
"0",
"isAC = true",
"isAC",
"true",
"if(tmp2.equals(rst[1])) isWA = true;\n else if(tmp2.equals(rst[2])) isTLE = true;\n else if(tmp2.equals(rst[3])) isRE = true;",
"tmp2.equals(rst[1])",
"tmp2.equals",
"tmp2",
"rst[1]",
"rst",
"1",
"isWA = true",
"isWA",
"true",
"if(tmp2.equals(rst[2])) isTLE = true;\n else if(tmp2.equals(rst[3])) isRE = true;",
"tmp2.equals(rst[2])",
"tmp2.equals",
"tmp2",
"rst[2]",
"rst",
"2",
"isTLE = true",
"isTLE",
"true",
"if(tmp2.equals(rst[3])) isRE = true;",
"tmp2.equals(rst[3])",
"tmp2.equals",
"tmp2",
"rst[3]",
"rst",
"3",
"isRE = true",
"isRE",
"true",
"if(isAC) {\n System.out.println(\"AC\" + \" x \" + s.get(\"AC\"));\n } else {\n System.out.println(\"AC\" + \" x \" + \"0\");\n }",
"isAC",
"{\n System.out.println(\"AC\" + \" x \" + s.get(\"AC\"));\n }",
"System.out.println(\"AC\" + \" x \" + s.get(\"AC\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC\" + \" x \" + s.get(\"AC\")",
"\"AC\" + \" x \" + s.get(\"AC\")",
"\"AC\"",
"\" x \"",
"s.get(\"AC\")",
"s.get",
"s",
"\"AC\"",
"{\n System.out.println(\"AC\" + \" x \" + \"0\");\n }",
"System.out.println(\"AC\" + \" x \" + \"0\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC\" + \" x \" + \"0\"",
"\"AC\" + \" x \" + \"0\"",
"\"AC\"",
"\" x \"",
"\"0\"",
"if(isWA) {\n System.out.println(\"WA\" + \" x \" + s.get(\"WA\"));\n } else {\n System.out.println(\"WA\" + \" x \" + \"0\");\n }",
"isWA",
"{\n System.out.println(\"WA\" + \" x \" + s.get(\"WA\"));\n }",
"System.out.println(\"WA\" + \" x \" + s.get(\"WA\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA\" + \" x \" + s.get(\"WA\")",
"\"WA\" + \" x \" + s.get(\"WA\")",
"\"WA\"",
"\" x \"",
"s.get(\"WA\")",
"s.get",
"s",
"\"WA\"",
"{\n System.out.println(\"WA\" + \" x \" + \"0\");\n }",
"System.out.println(\"WA\" + \" x \" + \"0\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA\" + \" x \" + \"0\"",
"\"WA\" + \" x \" + \"0\"",
"\"WA\"",
"\" x \"",
"\"0\"",
"if(isTLE) {\n System.out.println(\"TLE\" + \" x \" + s.get(\"TLE\"));\n } else {\n System.out.println(\"TLE\" + \" x \" + \"0\");\n }",
"isTLE",
"{\n System.out.println(\"TLE\" + \" x \" + s.get(\"TLE\"));\n }",
"System.out.println(\"TLE\" + \" x \" + s.get(\"TLE\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE\" + \" x \" + s.get(\"TLE\")",
"\"TLE\" + \" x \" + s.get(\"TLE\")",
"\"TLE\"",
"\" x \"",
"s.get(\"TLE\")",
"s.get",
"s",
"\"TLE\"",
"{\n System.out.println(\"TLE\" + \" x \" + \"0\");\n }",
"System.out.println(\"TLE\" + \" x \" + \"0\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE\" + \" x \" + \"0\"",
"\"TLE\" + \" x \" + \"0\"",
"\"TLE\"",
"\" x \"",
"\"0\"",
"if(isRE) {\n System.out.println(\"RE\" + \" x \" + s.get(\"RE\"));\n } else {\n System.out.println(\"RE\" + \" x \" + \"0\");\n }",
"isRE",
"{\n System.out.println(\"RE\" + \" x \" + s.get(\"RE\"));\n }",
"System.out.println(\"RE\" + \" x \" + s.get(\"RE\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE\" + \" x \" + s.get(\"RE\")",
"\"RE\" + \" x \" + s.get(\"RE\")",
"\"RE\"",
"\" x \"",
"s.get(\"RE\")",
"s.get",
"s",
"\"RE\"",
"{\n System.out.println(\"RE\" + \" x \" + \"0\");\n }",
"System.out.println(\"RE\" + \" x \" + \"0\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE\" + \" x \" + \"0\"",
"\"RE\" + \" x \" + \"0\"",
"\"RE\"",
"\" x \"",
"\"0\"",
"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 Map<String, Integer> s = new HashMap<>();\n for(int i=0; i<n; i++) {\n String tmp = sc.next();\n if(s.containsKey(tmp)) {\n s.put(tmp, s.get(tmp)+1);\n } else {\n s.put(tmp, 1);\n }\n }\n\n String[] rst = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n boolean isAC = false;\n boolean isWA = false;\n boolean isTLE = false;\n boolean isRE = false;\n for(String tmp2: s.keySet()) {\n if(tmp2.equals(rst[0])) isAC = true;\n else if(tmp2.equals(rst[1])) isWA = true;\n else if(tmp2.equals(rst[2])) isTLE = true;\n else if(tmp2.equals(rst[3])) isRE = true;\n }\n\n if(isAC) {\n System.out.println(\"AC\" + \" x \" + s.get(\"AC\"));\n } else {\n System.out.println(\"AC\" + \" x \" + \"0\");\n }\n\n if(isWA) {\n System.out.println(\"WA\" + \" x \" + s.get(\"WA\"));\n } else {\n System.out.println(\"WA\" + \" x \" + \"0\");\n }\n\n if(isTLE) {\n System.out.println(\"TLE\" + \" x \" + s.get(\"TLE\"));\n } else {\n System.out.println(\"TLE\" + \" x \" + \"0\");\n }\n\n if(isRE) {\n System.out.println(\"RE\" + \" x \" + s.get(\"RE\"));\n } else {\n System.out.println(\"RE\" + \" x \" + \"0\");\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 Map<String, Integer> s = new HashMap<>();\n for(int i=0; i<n; i++) {\n String tmp = sc.next();\n if(s.containsKey(tmp)) {\n s.put(tmp, s.get(tmp)+1);\n } else {\n s.put(tmp, 1);\n }\n }\n\n String[] rst = {\"AC\", \"WA\", \"TLE\", \"RE\"};\n boolean isAC = false;\n boolean isWA = false;\n boolean isTLE = false;\n boolean isRE = false;\n for(String tmp2: s.keySet()) {\n if(tmp2.equals(rst[0])) isAC = true;\n else if(tmp2.equals(rst[1])) isWA = true;\n else if(tmp2.equals(rst[2])) isTLE = true;\n else if(tmp2.equals(rst[3])) isRE = true;\n }\n\n if(isAC) {\n System.out.println(\"AC\" + \" x \" + s.get(\"AC\"));\n } else {\n System.out.println(\"AC\" + \" x \" + \"0\");\n }\n\n if(isWA) {\n System.out.println(\"WA\" + \" x \" + s.get(\"WA\"));\n } else {\n System.out.println(\"WA\" + \" x \" + \"0\");\n }\n\n if(isTLE) {\n System.out.println(\"TLE\" + \" x \" + s.get(\"TLE\"));\n } else {\n System.out.println(\"TLE\" + \" x \" + \"0\");\n }\n\n if(isRE) {\n System.out.println(\"RE\" + \" x \" + s.get(\"RE\"));\n } else {\n System.out.println(\"RE\" + \" x \" + \"0\");\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();
Map<String, Integer> s = new HashMap<>();
for(int i=0; i<n; i++) {
String tmp = sc.next();
if(s.containsKey(tmp)) {
s.put(tmp, s.get(tmp)+1);
} else {
s.put(tmp, 1);
}
}
String[] rst = {"AC", "WA", "TLE", "RE"};
boolean isAC = false;
boolean isWA = false;
boolean isTLE = false;
boolean isRE = false;
for(String tmp2: s.keySet()) {
if(tmp2.equals(rst[0])) isAC = true;
else if(tmp2.equals(rst[1])) isWA = true;
else if(tmp2.equals(rst[2])) isTLE = true;
else if(tmp2.equals(rst[3])) isRE = true;
}
if(isAC) {
System.out.println("AC" + " x " + s.get("AC"));
} else {
System.out.println("AC" + " x " + "0");
}
if(isWA) {
System.out.println("WA" + " x " + s.get("WA"));
} else {
System.out.println("WA" + " x " + "0");
}
if(isTLE) {
System.out.println("TLE" + " x " + s.get("TLE"));
} else {
System.out.println("TLE" + " x " + "0");
}
if(isRE) {
System.out.println("RE" + " x " + s.get("RE"));
} else {
System.out.println("RE" + " x " + "0");
}
}
}
|
[
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,
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,
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
],
[
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
],
[
44,
45
],
[
42,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
42,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
42,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
42,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
42,
70
],
[
70,
71
],
[
71,
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;\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 switch(sc.next()){\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 default:\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.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,wa=0,tle=0,re=0;\n for(int i=0;i<n;i++){\n switch(sc.next()){\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 default:\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){\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 switch(sc.next()){\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 default:\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 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 switch(sc.next()){\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 default:\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 }",
"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 switch(sc.next()){\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 default:\n break;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n switch(sc.next()){\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 default:\n break;\n }\n }",
"{\n switch(sc.next()){\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 default:\n break;\n }\n }",
"switch(sc.next()){\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 default:\n break;\n }",
"sc.next()",
"sc.next",
"sc",
"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 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 switch(sc.next()){\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 default:\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){\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 switch(sc.next()){\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 default:\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.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++){
switch(sc.next()){
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,
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,
40,
13,
14,
4,
18,
18,
13,
13,
17,
40,
13,
14,
4,
18,
18,
13,
13,
17,
40,
13,
14,
4,
18,
18,
13,
13,
17,
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,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
161,
5
],
[
161,
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
],
[
66,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
75,
82
],
[
82,
83
],
[
75,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
84,
91
],
[
91,
92
],
[
84,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
93,
100
],
[
100,
101
],
[
8,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
110,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
108,
114
],
[
110,
115
],
[
8,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
124,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
122,
128
],
[
124,
129
],
[
8,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
130,
135
],
[
138,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
137,
141
],
[
136,
142
],
[
138,
143
],
[
8,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
144,
149
],
[
152,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
151,
155
],
[
150,
156
],
[
152,
157
],
[
6,
158
],
[
158,
159
],
[
0,
160
],
[
160,
161
],
[
160,
162
]
]
| [
"import java.util.*;\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 C0 = 0;\n\t\tint C1 = 0;\n\t\tint C2 = 0;\n\t\tint C3 = 0;\n\n\t\tfor(int i = 0; i < N; i ++){\n\t\t\tS[i] = sc.next();\n\t\t}\n\n\t\tfor(int i = 0; i < N; i ++){\n\t\t\tif(S[i].equals(\"AC\"))\n\t\t\tC0 ++;\n\t\t\telse if(S[i].equals(\"WA\"))\n\t\t\tC1 ++;\n\t\t\telse if(S[i].equals(\"TLE\"))\n\t\t\tC2 ++;\n\t\t\telse if(S[i].equals(\"RE\"))\n\t\t\tC3 ++;\n\t\t}\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}\n}",
"import java.util.*;",
"util.*",
"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\tString[] S = new String[N];\n\t\tint C0 = 0;\n\t\tint C1 = 0;\n\t\tint C2 = 0;\n\t\tint C3 = 0;\n\n\t\tfor(int i = 0; i < N; i ++){\n\t\t\tS[i] = sc.next();\n\t\t}\n\n\t\tfor(int i = 0; i < N; i ++){\n\t\t\tif(S[i].equals(\"AC\"))\n\t\t\tC0 ++;\n\t\t\telse if(S[i].equals(\"WA\"))\n\t\t\tC1 ++;\n\t\t\telse if(S[i].equals(\"TLE\"))\n\t\t\tC2 ++;\n\t\t\telse if(S[i].equals(\"RE\"))\n\t\t\tC3 ++;\n\t\t}\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}\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 C0 = 0;\n\t\tint C1 = 0;\n\t\tint C2 = 0;\n\t\tint C3 = 0;\n\n\t\tfor(int i = 0; i < N; i ++){\n\t\t\tS[i] = sc.next();\n\t\t}\n\n\t\tfor(int i = 0; i < N; i ++){\n\t\t\tif(S[i].equals(\"AC\"))\n\t\t\tC0 ++;\n\t\t\telse if(S[i].equals(\"WA\"))\n\t\t\tC1 ++;\n\t\t\telse if(S[i].equals(\"TLE\"))\n\t\t\tC2 ++;\n\t\t\telse if(S[i].equals(\"RE\"))\n\t\t\tC3 ++;\n\t\t}\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}",
"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 C0 = 0;\n\t\tint C1 = 0;\n\t\tint C2 = 0;\n\t\tint C3 = 0;\n\n\t\tfor(int i = 0; i < N; i ++){\n\t\t\tS[i] = sc.next();\n\t\t}\n\n\t\tfor(int i = 0; i < N; i ++){\n\t\t\tif(S[i].equals(\"AC\"))\n\t\t\tC0 ++;\n\t\t\telse if(S[i].equals(\"WA\"))\n\t\t\tC1 ++;\n\t\t\telse if(S[i].equals(\"TLE\"))\n\t\t\tC2 ++;\n\t\t\telse if(S[i].equals(\"RE\"))\n\t\t\tC3 ++;\n\t\t}\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}",
"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\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",
"for(int i = 0; i < N; i ++){\n\t\t\tif(S[i].equals(\"AC\"))\n\t\t\tC0 ++;\n\t\t\telse if(S[i].equals(\"WA\"))\n\t\t\tC1 ++;\n\t\t\telse if(S[i].equals(\"TLE\"))\n\t\t\tC2 ++;\n\t\t\telse if(S[i].equals(\"RE\"))\n\t\t\tC3 ++;\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\tC0 ++;\n\t\t\telse if(S[i].equals(\"WA\"))\n\t\t\tC1 ++;\n\t\t\telse if(S[i].equals(\"TLE\"))\n\t\t\tC2 ++;\n\t\t\telse if(S[i].equals(\"RE\"))\n\t\t\tC3 ++;\n\t\t}",
"{\n\t\t\tif(S[i].equals(\"AC\"))\n\t\t\tC0 ++;\n\t\t\telse if(S[i].equals(\"WA\"))\n\t\t\tC1 ++;\n\t\t\telse if(S[i].equals(\"TLE\"))\n\t\t\tC2 ++;\n\t\t\telse if(S[i].equals(\"RE\"))\n\t\t\tC3 ++;\n\t\t}",
"if(S[i].equals(\"AC\"))\n\t\t\tC0 ++;\n\t\t\telse if(S[i].equals(\"WA\"))\n\t\t\tC1 ++;\n\t\t\telse if(S[i].equals(\"TLE\"))\n\t\t\tC2 ++;\n\t\t\telse if(S[i].equals(\"RE\"))\n\t\t\tC3 ++;",
"S[i].equals(\"AC\")",
"S[i].equals",
"S[i]",
"S",
"i",
"\"AC\"",
"C0 ++",
"C0",
"if(S[i].equals(\"WA\"))\n\t\t\tC1 ++;\n\t\t\telse if(S[i].equals(\"TLE\"))\n\t\t\tC2 ++;\n\t\t\telse if(S[i].equals(\"RE\"))\n\t\t\tC3 ++;",
"S[i].equals(\"WA\")",
"S[i].equals",
"S[i]",
"S",
"i",
"\"WA\"",
"C1 ++",
"C1",
"if(S[i].equals(\"TLE\"))\n\t\t\tC2 ++;\n\t\t\telse if(S[i].equals(\"RE\"))\n\t\t\tC3 ++;",
"S[i].equals(\"TLE\")",
"S[i].equals",
"S[i]",
"S",
"i",
"\"TLE\"",
"C2 ++",
"C2",
"if(S[i].equals(\"RE\"))\n\t\t\tC3 ++;",
"S[i].equals(\"RE\")",
"S[i].equals",
"S[i]",
"S",
"i",
"\"RE\"",
"C3 ++",
"C3",
"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\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 C0 = 0;\n\t\tint C1 = 0;\n\t\tint C2 = 0;\n\t\tint C3 = 0;\n\n\t\tfor(int i = 0; i < N; i ++){\n\t\t\tS[i] = sc.next();\n\t\t}\n\n\t\tfor(int i = 0; i < N; i ++){\n\t\t\tif(S[i].equals(\"AC\"))\n\t\t\tC0 ++;\n\t\t\telse if(S[i].equals(\"WA\"))\n\t\t\tC1 ++;\n\t\t\telse if(S[i].equals(\"TLE\"))\n\t\t\tC2 ++;\n\t\t\telse if(S[i].equals(\"RE\"))\n\t\t\tC3 ++;\n\t\t}\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}\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 C0 = 0;\n\t\tint C1 = 0;\n\t\tint C2 = 0;\n\t\tint C3 = 0;\n\n\t\tfor(int i = 0; i < N; i ++){\n\t\t\tS[i] = sc.next();\n\t\t}\n\n\t\tfor(int i = 0; i < N; i ++){\n\t\t\tif(S[i].equals(\"AC\"))\n\t\t\tC0 ++;\n\t\t\telse if(S[i].equals(\"WA\"))\n\t\t\tC1 ++;\n\t\t\telse if(S[i].equals(\"TLE\"))\n\t\t\tC2 ++;\n\t\t\telse if(S[i].equals(\"RE\"))\n\t\t\tC3 ++;\n\t\t}\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}\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];
int C0 = 0;
int C1 = 0;
int C2 = 0;
int C3 = 0;
for(int i = 0; i < N; i ++){
S[i] = sc.next();
}
for(int i = 0; i < N; i ++){
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 ++;
}
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,
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
],
[
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
],
[
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.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 a = sc.nextInt();\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<=a;i++) {\n\t\t\tString b = sc.nextLine();\n\t\t\tif(b.equals(\"AC\")) {\n\t\t\t\tac++;\n\t\t\t}\n\t\t\tif(b.equals(\"WA\")) {\n\t\t\t\twa++;\n\t\t\t}\n\t\t\tif(b.equals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}\n\t\t\tif(b.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\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\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<=a;i++) {\n\t\t\tString b = sc.nextLine();\n\t\t\tif(b.equals(\"AC\")) {\n\t\t\t\tac++;\n\t\t\t}\n\t\t\tif(b.equals(\"WA\")) {\n\t\t\t\twa++;\n\t\t\t}\n\t\t\tif(b.equals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}\n\t\t\tif(b.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\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\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<=a;i++) {\n\t\t\tString b = sc.nextLine();\n\t\t\tif(b.equals(\"AC\")) {\n\t\t\t\tac++;\n\t\t\t}\n\t\t\tif(b.equals(\"WA\")) {\n\t\t\t\twa++;\n\t\t\t}\n\t\t\tif(b.equals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}\n\t\t\tif(b.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\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\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<=a;i++) {\n\t\t\tString b = sc.nextLine();\n\t\t\tif(b.equals(\"AC\")) {\n\t\t\t\tac++;\n\t\t\t}\n\t\t\tif(b.equals(\"WA\")) {\n\t\t\t\twa++;\n\t\t\t}\n\t\t\tif(b.equals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}\n\t\t\tif(b.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 a = sc.nextInt();",
"a",
"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<=a;i++) {\n\t\t\tString b = sc.nextLine();\n\t\t\tif(b.equals(\"AC\")) {\n\t\t\t\tac++;\n\t\t\t}\n\t\t\tif(b.equals(\"WA\")) {\n\t\t\t\twa++;\n\t\t\t}\n\t\t\tif(b.equals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}\n\t\t\tif(b.equals(\"RE\")) {\n\t\t\t\tre++;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<=a",
"i",
"a",
"i++",
"i++",
"i",
"{\n\t\t\tString b = sc.nextLine();\n\t\t\tif(b.equals(\"AC\")) {\n\t\t\t\tac++;\n\t\t\t}\n\t\t\tif(b.equals(\"WA\")) {\n\t\t\t\twa++;\n\t\t\t}\n\t\t\tif(b.equals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}\n\t\t\tif(b.equals(\"RE\")) {\n\t\t\t\tre++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString b = sc.nextLine();\n\t\t\tif(b.equals(\"AC\")) {\n\t\t\t\tac++;\n\t\t\t}\n\t\t\tif(b.equals(\"WA\")) {\n\t\t\t\twa++;\n\t\t\t}\n\t\t\tif(b.equals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}\n\t\t\tif(b.equals(\"RE\")) {\n\t\t\t\tre++;\n\t\t\t}\n\t\t}",
"String b = sc.nextLine();",
"b",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if(b.equals(\"AC\")) {\n\t\t\t\tac++;\n\t\t\t}",
"b.equals(\"AC\")",
"b.equals",
"b",
"\"AC\"",
"{\n\t\t\t\tac++;\n\t\t\t}",
"ac++",
"ac",
"if(b.equals(\"WA\")) {\n\t\t\t\twa++;\n\t\t\t}",
"b.equals(\"WA\")",
"b.equals",
"b",
"\"WA\"",
"{\n\t\t\t\twa++;\n\t\t\t}",
"wa++",
"wa",
"if(b.equals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}",
"b.equals(\"TLE\")",
"b.equals",
"b",
"\"TLE\"",
"{\n\t\t\t\ttle++;\n\t\t\t}",
"tle++",
"tle",
"if(b.equals(\"RE\")) {\n\t\t\t\tre++;\n\t\t\t}",
"b.equals(\"RE\")",
"b.equals",
"b",
"\"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\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\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<=a;i++) {\n\t\t\tString b = sc.nextLine();\n\t\t\tif(b.equals(\"AC\")) {\n\t\t\t\tac++;\n\t\t\t}\n\t\t\tif(b.equals(\"WA\")) {\n\t\t\t\twa++;\n\t\t\t}\n\t\t\tif(b.equals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}\n\t\t\tif(b.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\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\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<=a;i++) {\n\t\t\tString b = sc.nextLine();\n\t\t\tif(b.equals(\"AC\")) {\n\t\t\t\tac++;\n\t\t\t}\n\t\t\tif(b.equals(\"WA\")) {\n\t\t\t\twa++;\n\t\t\t}\n\t\t\tif(b.equals(\"TLE\")) {\n\t\t\t\ttle++;\n\t\t\t}\n\t\t\tif(b.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) {
// TODO 自動生成されたメソッド・スタブ
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
for(int i = 0;i<=a;i++) {
String b = sc.nextLine();
if(b.equals("AC")) {
ac++;
}
if(b.equals("WA")) {
wa++;
}
if(b.equals("TLE")) {
tle++;
}
if(b.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,
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,
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,
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,
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
],
[
153,
17
],
[
153,
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
],
[
40,
45
],
[
20,
46
],
[
46,
47
],
[
47,
48
],
[
18,
49
],
[
49,
50
],
[
153,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
62,
63
],
[
55,
64
],
[
64,
65
],
[
64,
66
],
[
55,
67
],
[
67,
68
],
[
67,
69
],
[
55,
70
],
[
70,
71
],
[
70,
72
],
[
55,
73
],
[
73,
74
],
[
73,
75
],
[
55,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
76,
84
],
[
84,
85
],
[
85,
86
],
[
76,
87
],
[
88,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
88,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
94,
99
],
[
99,
100
],
[
88,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
101,
106
],
[
106,
107
],
[
88,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
108,
113
],
[
113,
114
],
[
88,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
115,
120
],
[
120,
121
],
[
55,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
125,
126
],
[
125,
127
],
[
55,
128
],
[
128,
129
],
[
129,
130
],
[
128,
131
],
[
131,
132
],
[
131,
133
],
[
55,
134
],
[
134,
135
],
[
135,
136
],
[
134,
137
],
[
137,
138
],
[
137,
139
],
[
55,
140
],
[
140,
141
],
[
141,
142
],
[
140,
143
],
[
143,
144
],
[
143,
145
],
[
53,
146
],
[
146,
147
],
[
53,
148
],
[
148,
149
],
[
53,
150
],
[
150,
151
],
[
0,
152
],
[
152,
153
],
[
152,
154
]
]
| [
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.Scanner;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class B {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n // 入力\n int n = Integer.parseInt(in.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 String tmp = in.next();\n if (tmp.equals(\"AC\")) ac++;\n if (tmp.equals(\"WA\")) wa++;\n if (tmp.equals(\"TLE\")) tle++;\n if (tmp.equals(\"RE\")) re++;\n }\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}\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.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class B {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n // 入力\n int n = Integer.parseInt(in.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 String tmp = in.next();\n if (tmp.equals(\"AC\")) ac++;\n if (tmp.equals(\"WA\")) wa++;\n if (tmp.equals(\"TLE\")) tle++;\n if (tmp.equals(\"RE\")) re++;\n }\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}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n B solver = new B();\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",
"Scanner in = new Scanner(inputStream);",
"in",
"new Scanner(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"B solver = new B();",
"solver",
"new B()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class B {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n // 入力\n int n = Integer.parseInt(in.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 String tmp = in.next();\n if (tmp.equals(\"AC\")) ac++;\n if (tmp.equals(\"WA\")) wa++;\n if (tmp.equals(\"TLE\")) tle++;\n if (tmp.equals(\"RE\")) re++;\n }\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 }",
"B",
"public void solve(int testNumber, Scanner in, PrintWriter out) {\n // 入力\n int n = Integer.parseInt(in.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 String tmp = in.next();\n if (tmp.equals(\"AC\")) ac++;\n if (tmp.equals(\"WA\")) wa++;\n if (tmp.equals(\"TLE\")) tle++;\n if (tmp.equals(\"RE\")) re++;\n }\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 }",
"solve",
"{\n // 入力\n int n = Integer.parseInt(in.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 String tmp = in.next();\n if (tmp.equals(\"AC\")) ac++;\n if (tmp.equals(\"WA\")) wa++;\n if (tmp.equals(\"TLE\")) tle++;\n if (tmp.equals(\"RE\")) re++;\n }\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 }",
"int n = Integer.parseInt(in.next());",
"n",
"Integer.parseInt(in.next())",
"Integer.parseInt",
"Integer",
"in.next()",
"in.next",
"in",
"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 tmp = in.next();\n if (tmp.equals(\"AC\")) ac++;\n if (tmp.equals(\"WA\")) wa++;\n if (tmp.equals(\"TLE\")) tle++;\n if (tmp.equals(\"RE\")) re++;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String tmp = in.next();\n if (tmp.equals(\"AC\")) ac++;\n if (tmp.equals(\"WA\")) wa++;\n if (tmp.equals(\"TLE\")) tle++;\n if (tmp.equals(\"RE\")) re++;\n }",
"{\n String tmp = in.next();\n if (tmp.equals(\"AC\")) ac++;\n if (tmp.equals(\"WA\")) wa++;\n if (tmp.equals(\"TLE\")) tle++;\n if (tmp.equals(\"RE\")) re++;\n }",
"String tmp = in.next();",
"tmp",
"in.next()",
"in.next",
"in",
"if (tmp.equals(\"AC\")) ac++;",
"tmp.equals(\"AC\")",
"tmp.equals",
"tmp",
"\"AC\"",
"ac++",
"ac",
"if (tmp.equals(\"WA\")) wa++;",
"tmp.equals(\"WA\")",
"tmp.equals",
"tmp",
"\"WA\"",
"wa++",
"wa",
"if (tmp.equals(\"TLE\")) tle++;",
"tmp.equals(\"TLE\")",
"tmp.equals",
"tmp",
"\"TLE\"",
"tle++",
"tle",
"if (tmp.equals(\"RE\")) re++;",
"tmp.equals(\"RE\")",
"tmp.equals",
"tmp",
"\"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",
"Scanner in",
"in",
"PrintWriter out",
"out",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class B {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n // 入力\n int n = Integer.parseInt(in.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 String tmp = in.next();\n if (tmp.equals(\"AC\")) ac++;\n if (tmp.equals(\"WA\")) wa++;\n if (tmp.equals(\"TLE\")) tle++;\n if (tmp.equals(\"RE\")) re++;\n }\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}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n B solver = new B();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class B {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n // 入力\n int n = Integer.parseInt(in.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 String tmp = in.next();\n if (tmp.equals(\"AC\")) ac++;\n if (tmp.equals(\"WA\")) wa++;\n if (tmp.equals(\"TLE\")) tle++;\n if (tmp.equals(\"RE\")) re++;\n }\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}",
"Main"
]
| import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;
/**
* 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;
Scanner in = new Scanner(inputStream);
PrintWriter out = new PrintWriter(outputStream);
B solver = new B();
solver.solve(1, in, out);
out.close();
}
static class B {
public void solve(int testNumber, Scanner in, PrintWriter out) {
// 入力
int n = Integer.parseInt(in.next());
int ac = 0;
int wa = 0;
int tle = 0;
int re = 0;
for (int i = 0; i < n; i++) {
String tmp = in.next();
if (tmp.equals("AC")) ac++;
if (tmp.equals("WA")) wa++;
if (tmp.equals("TLE")) tle++;
if (tmp.equals("RE")) re++;
}
// 出力
out.println("AC x " + ac);
out.println("WA x " + wa);
out.println("TLE x " + tle);
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
13,
8,
4,
18,
13,
17,
17,
17,
0,
13,
8,
4,
18,
13,
17,
17,
17,
0,
13,
8,
4,
18,
13,
17,
17,
17,
0,
13,
8,
4,
18,
13,
17,
17,
17,
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
],
[
118,
5
],
[
118,
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
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
49,
54
],
[
49,
55
],
[
41,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
58,
63
],
[
58,
64
],
[
41,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
67,
72
],
[
67,
73
],
[
41,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
76,
81
],
[
76,
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
],
[
8,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
112,
113
],
[
112,
114
],
[
6,
115
],
[
115,
116
],
[
0,
117
],
[
117,
118
],
[
117,
119
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint ac = 0; int wa = 0; int tle = 0; int re = 0;\n\n\t\tint n = sc.nextInt();\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString s = sc.next();\n\t\t\tac += s.equals(\"AC\") ? 1 : 0;\n\t\t\twa += s.equals(\"WA\") ? 1 : 0;\n\t\t\ttle += s.equals(\"TLE\") ? 1 : 0;\n\t\t\tre += s.equals(\"RE\") ? 1 : 0;\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\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint ac = 0; int wa = 0; int tle = 0; int re = 0;\n\n\t\tint n = sc.nextInt();\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString s = sc.next();\n\t\t\tac += s.equals(\"AC\") ? 1 : 0;\n\t\t\twa += s.equals(\"WA\") ? 1 : 0;\n\t\t\ttle += s.equals(\"TLE\") ? 1 : 0;\n\t\t\tre += s.equals(\"RE\") ? 1 : 0;\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\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint ac = 0; int wa = 0; int tle = 0; int re = 0;\n\n\t\tint n = sc.nextInt();\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString s = sc.next();\n\t\t\tac += s.equals(\"AC\") ? 1 : 0;\n\t\t\twa += s.equals(\"WA\") ? 1 : 0;\n\t\t\ttle += s.equals(\"TLE\") ? 1 : 0;\n\t\t\tre += s.equals(\"RE\") ? 1 : 0;\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\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint ac = 0; int wa = 0; int tle = 0; int re = 0;\n\n\t\tint n = sc.nextInt();\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString s = sc.next();\n\t\t\tac += s.equals(\"AC\") ? 1 : 0;\n\t\t\twa += s.equals(\"WA\") ? 1 : 0;\n\t\t\ttle += s.equals(\"TLE\") ? 1 : 0;\n\t\t\tre += s.equals(\"RE\") ? 1 : 0;\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\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"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 = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < n; i++) {\n\t\t\tString s = sc.next();\n\t\t\tac += s.equals(\"AC\") ? 1 : 0;\n\t\t\twa += s.equals(\"WA\") ? 1 : 0;\n\t\t\ttle += s.equals(\"TLE\") ? 1 : 0;\n\t\t\tre += s.equals(\"RE\") ? 1 : 0;\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\tac += s.equals(\"AC\") ? 1 : 0;\n\t\t\twa += s.equals(\"WA\") ? 1 : 0;\n\t\t\ttle += s.equals(\"TLE\") ? 1 : 0;\n\t\t\tre += s.equals(\"RE\") ? 1 : 0;\n\t\t}",
"{\n\t\t\tString s = sc.next();\n\t\t\tac += s.equals(\"AC\") ? 1 : 0;\n\t\t\twa += s.equals(\"WA\") ? 1 : 0;\n\t\t\ttle += s.equals(\"TLE\") ? 1 : 0;\n\t\t\tre += s.equals(\"RE\") ? 1 : 0;\n\t\t}",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"ac += s.equals(\"AC\") ? 1 : 0",
"ac",
"s.equals(\"AC\") ? 1 : 0",
"s.equals(\"AC\")",
"s.equals",
"s",
"\"AC\"",
"1",
"0",
"wa += s.equals(\"WA\") ? 1 : 0",
"wa",
"s.equals(\"WA\") ? 1 : 0",
"s.equals(\"WA\")",
"s.equals",
"s",
"\"WA\"",
"1",
"0",
"tle += s.equals(\"TLE\") ? 1 : 0",
"tle",
"s.equals(\"TLE\") ? 1 : 0",
"s.equals(\"TLE\")",
"s.equals",
"s",
"\"TLE\"",
"1",
"0",
"re += s.equals(\"RE\") ? 1 : 0",
"re",
"s.equals(\"RE\") ? 1 : 0",
"s.equals(\"RE\")",
"s.equals",
"s",
"\"RE\"",
"1",
"0",
"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\n\t\tScanner sc = new Scanner(System.in);\n\t\tint ac = 0; int wa = 0; int tle = 0; int re = 0;\n\n\t\tint n = sc.nextInt();\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString s = sc.next();\n\t\t\tac += s.equals(\"AC\") ? 1 : 0;\n\t\t\twa += s.equals(\"WA\") ? 1 : 0;\n\t\t\ttle += s.equals(\"TLE\") ? 1 : 0;\n\t\t\tre += s.equals(\"RE\") ? 1 : 0;\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\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint ac = 0; int wa = 0; int tle = 0; int re = 0;\n\n\t\tint n = sc.nextInt();\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString s = sc.next();\n\t\t\tac += s.equals(\"AC\") ? 1 : 0;\n\t\t\twa += s.equals(\"WA\") ? 1 : 0;\n\t\t\ttle += s.equals(\"TLE\") ? 1 : 0;\n\t\t\tre += s.equals(\"RE\") ? 1 : 0;\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\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int ac = 0; int wa = 0; int tle = 0; int re = 0;
int n = sc.nextInt();
for(int i = 0; i < n; i++) {
String s = sc.next();
ac += s.equals("AC") ? 1 : 0;
wa += s.equals("WA") ? 1 : 0;
tle += s.equals("TLE") ? 1 : 0;
re += s.equals("RE") ? 1 : 0;
}
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,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
42,
2,
13,
17,
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,
40,
13,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
17,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
17,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
17,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
17,
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
],
[
111,
11
],
[
111,
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
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
30,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
36,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
42,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
46,
51
],
[
36,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
53,
57
],
[
30,
58
],
[
58,
59
],
[
14,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
67,
71
],
[
14,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
79,
83
],
[
14,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
91,
95
],
[
14,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
103,
107
],
[
12,
108
],
[
108,
109
],
[
0,
110
],
[
110,
111
],
[
110,
112
]
]
| [
"import java.util.HashMap;\nimport java.util.Map;\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 s = sc.nextInt();\n Map<String, Integer> map = new HashMap<>();\n while (s > 0) {\n String a = sc.next();\n if (map.containsKey(a)) {\n map.put(a, map.get(a) + 1);\n } else {\n map.put(a, 1);\n }\n s--;\n }\n System.out.println(\"AC x \" + map.getOrDefault(\"AC\", 0));\n System.out.println(\"WA x \" + map.getOrDefault(\"WA\", 0));\n System.out.println(\"TLE x \" + map.getOrDefault(\"TLE\", 0));\n System.out.println(\"RE x \" + map.getOrDefault(\"RE\", 0));\n }\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\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int s = sc.nextInt();\n Map<String, Integer> map = new HashMap<>();\n while (s > 0) {\n String a = sc.next();\n if (map.containsKey(a)) {\n map.put(a, map.get(a) + 1);\n } else {\n map.put(a, 1);\n }\n s--;\n }\n System.out.println(\"AC x \" + map.getOrDefault(\"AC\", 0));\n System.out.println(\"WA x \" + map.getOrDefault(\"WA\", 0));\n System.out.println(\"TLE x \" + map.getOrDefault(\"TLE\", 0));\n System.out.println(\"RE x \" + map.getOrDefault(\"RE\", 0));\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int s = sc.nextInt();\n Map<String, Integer> map = new HashMap<>();\n while (s > 0) {\n String a = sc.next();\n if (map.containsKey(a)) {\n map.put(a, map.get(a) + 1);\n } else {\n map.put(a, 1);\n }\n s--;\n }\n System.out.println(\"AC x \" + map.getOrDefault(\"AC\", 0));\n System.out.println(\"WA x \" + map.getOrDefault(\"WA\", 0));\n System.out.println(\"TLE x \" + map.getOrDefault(\"TLE\", 0));\n System.out.println(\"RE x \" + map.getOrDefault(\"RE\", 0));\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int s = sc.nextInt();\n Map<String, Integer> map = new HashMap<>();\n while (s > 0) {\n String a = sc.next();\n if (map.containsKey(a)) {\n map.put(a, map.get(a) + 1);\n } else {\n map.put(a, 1);\n }\n s--;\n }\n System.out.println(\"AC x \" + map.getOrDefault(\"AC\", 0));\n System.out.println(\"WA x \" + map.getOrDefault(\"WA\", 0));\n System.out.println(\"TLE x \" + map.getOrDefault(\"TLE\", 0));\n System.out.println(\"RE x \" + map.getOrDefault(\"RE\", 0));\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int s = sc.nextInt();",
"s",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Map<String, Integer> map = new HashMap<>();",
"map",
"new HashMap<>()",
"while (s > 0) {\n String a = sc.next();\n if (map.containsKey(a)) {\n map.put(a, map.get(a) + 1);\n } else {\n map.put(a, 1);\n }\n s--;\n }",
"s > 0",
"s",
"0",
"{\n String a = sc.next();\n if (map.containsKey(a)) {\n map.put(a, map.get(a) + 1);\n } else {\n map.put(a, 1);\n }\n s--;\n }",
"String a = sc.next();",
"a",
"sc.next()",
"sc.next",
"sc",
"if (map.containsKey(a)) {\n map.put(a, map.get(a) + 1);\n } else {\n map.put(a, 1);\n }",
"map.containsKey(a)",
"map.containsKey",
"map",
"a",
"{\n map.put(a, map.get(a) + 1);\n }",
"map.put(a, map.get(a) + 1)",
"map.put",
"map",
"a",
"map.get(a) + 1",
"map.get(a)",
"map.get",
"map",
"a",
"1",
"{\n map.put(a, 1);\n }",
"map.put(a, 1)",
"map.put",
"map",
"a",
"1",
"s--",
"s",
"System.out.println(\"AC x \" + map.getOrDefault(\"AC\", 0))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"AC x \" + map.getOrDefault(\"AC\", 0)",
"\"AC x \"",
"map.getOrDefault(\"AC\", 0)",
"map.getOrDefault",
"map",
"\"AC\"",
"0",
"System.out.println(\"WA x \" + map.getOrDefault(\"WA\", 0))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"WA x \" + map.getOrDefault(\"WA\", 0)",
"\"WA x \"",
"map.getOrDefault(\"WA\", 0)",
"map.getOrDefault",
"map",
"\"WA\"",
"0",
"System.out.println(\"TLE x \" + map.getOrDefault(\"TLE\", 0))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"TLE x \" + map.getOrDefault(\"TLE\", 0)",
"\"TLE x \"",
"map.getOrDefault(\"TLE\", 0)",
"map.getOrDefault",
"map",
"\"TLE\"",
"0",
"System.out.println(\"RE x \" + map.getOrDefault(\"RE\", 0))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"RE x \" + map.getOrDefault(\"RE\", 0)",
"\"RE x \"",
"map.getOrDefault(\"RE\", 0)",
"map.getOrDefault",
"map",
"\"RE\"",
"0",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int s = sc.nextInt();\n Map<String, Integer> map = new HashMap<>();\n while (s > 0) {\n String a = sc.next();\n if (map.containsKey(a)) {\n map.put(a, map.get(a) + 1);\n } else {\n map.put(a, 1);\n }\n s--;\n }\n System.out.println(\"AC x \" + map.getOrDefault(\"AC\", 0));\n System.out.println(\"WA x \" + map.getOrDefault(\"WA\", 0));\n System.out.println(\"TLE x \" + map.getOrDefault(\"TLE\", 0));\n System.out.println(\"RE x \" + map.getOrDefault(\"RE\", 0));\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int s = sc.nextInt();\n Map<String, Integer> map = new HashMap<>();\n while (s > 0) {\n String a = sc.next();\n if (map.containsKey(a)) {\n map.put(a, map.get(a) + 1);\n } else {\n map.put(a, 1);\n }\n s--;\n }\n System.out.println(\"AC x \" + map.getOrDefault(\"AC\", 0));\n System.out.println(\"WA x \" + map.getOrDefault(\"WA\", 0));\n System.out.println(\"TLE x \" + map.getOrDefault(\"TLE\", 0));\n System.out.println(\"RE x \" + map.getOrDefault(\"RE\", 0));\n }\n}",
"Main"
]
| import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int s = sc.nextInt();
Map<String, Integer> map = new HashMap<>();
while (s > 0) {
String a = sc.next();
if (map.containsKey(a)) {
map.put(a, map.get(a) + 1);
} else {
map.put(a, 1);
}
s--;
}
System.out.println("AC x " + map.getOrDefault("AC", 0));
System.out.println("WA x " + map.getOrDefault("WA", 0));
System.out.println("TLE x " + map.getOrDefault("TLE", 0));
System.out.println("RE x " + map.getOrDefault("RE", 0));
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
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
],
[
40,
5
],
[
40,
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
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
33,
33
],
[
33,
34
],
[
33,
35
],
[
33,
36
],
[
6,
37
],
[
37,
38
],
[
0,
39
],
[
39,
40
],
[
39,
41
]
]
| [
"\nimport java.util.Scanner;\npublic class Main {\npublic static void main(String[] args) {\nScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\nint a=n*n, b=a*n;\nSystem.out.println(a+b+n);\n}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\npublic static void main(String[] args) {\nScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\nint a=n*n, b=a*n;\nSystem.out.println(a+b+n);\n}\n}",
"Main",
"public static void main(String[] args) {\nScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\nint a=n*n, b=a*n;\nSystem.out.println(a+b+n);\n}",
"main",
"{\nScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\nint a=n*n, b=a*n;\nSystem.out.println(a+b+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=n*n",
"a",
"n*n",
"n",
"n",
"b=a*n;",
"b",
"a*n",
"a",
"n",
"System.out.println(a+b+n)",
"System.out.println",
"System.out",
"System",
"System.out",
"a+b+n",
"a+b+n",
"a",
"b",
"n",
"String[] args",
"args",
"public class Main {\npublic static void main(String[] args) {\nScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\nint a=n*n, b=a*n;\nSystem.out.println(a+b+n);\n}\n}",
"public class Main {\npublic static void main(String[] args) {\nScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\nint a=n*n, b=a*n;\nSystem.out.println(a+b+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=n*n, b=a*n;
System.out.println(a+b+n);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
12,
13,
30,
41,
13,
17,
41,
13,
4,
18,
13,
42,
2,
13,
13,
30,
41,
13,
2,
2,
13,
13,
17,
14,
2,
4,
18,
13,
13,
13,
30,
0,
13,
2,
13,
17,
30,
0,
13,
13,
29,
2,
4,
18,
13,
13,
17,
23,
13,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
4,
18,
13,
42,
2,
13,
13,
30,
41,
13,
2,
2,
13,
13,
17,
14,
2,
4,
18,
13,
13,
13,
30,
0,
13,
2,
13,
17,
30,
0,
13,
13,
14,
2,
13,
4,
18,
13,
30,
29,
40,
17,
29,
13,
23,
13,
23,
13,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
42,
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,
38,
5,
13,
30,
4,
18,
13,
30,
29,
4,
18,
13,
29,
17,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
30,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
29,
17,
0,
13,
20,
29,
17,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
257,
8
],
[
257,
9
],
[
9,
10
],
[
9,
11
],
[
257,
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
],
[
24,
25
],
[
23,
26
],
[
27,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
33,
33
],
[
33,
34
],
[
33,
35
],
[
33,
36
],
[
14,
37
],
[
37,
38
],
[
38,
39
],
[
12,
40
],
[
40,
41
],
[
257,
42
],
[
42,
43
],
[
42,
44
],
[
257,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
47,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
69,
74
],
[
68,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
68,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
47,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
86,
91
],
[
45,
92
],
[
92,
93
],
[
45,
94
],
[
94,
95
],
[
257,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
98,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
111,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
121,
124
],
[
120,
125
],
[
119,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
129,
131
],
[
119,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
98,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
136,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
98,
146
],
[
146,
147
],
[
96,
148
],
[
148,
149
],
[
96,
150
],
[
150,
151
],
[
257,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
154,
156
],
[
152,
157
],
[
157,
158
],
[
157,
159
],
[
152,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
163,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
169,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
162,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
152,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
188,
191
],
[
191,
192
],
[
152,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
197,
200
],
[
200,
201
],
[
152,
202
],
[
202,
203
],
[
202,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
206,
209
],
[
209,
210
],
[
152,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
214,
221
],
[
221,
222
],
[
222,
223
],
[
223,
224
],
[
224,
225
],
[
213,
226
],
[
226,
227
],
[
152,
228
],
[
228,
229
],
[
228,
230
],
[
230,
231
],
[
231,
232
],
[
231,
233
],
[
230,
234
],
[
234,
235
],
[
235,
236
],
[
235,
237
],
[
234,
238
],
[
238,
239
],
[
239,
240
],
[
239,
241
],
[
241,
242
],
[
242,
243
],
[
230,
244
],
[
244,
245
],
[
245,
246
],
[
245,
247
],
[
244,
248
],
[
248,
249
],
[
249,
250
],
[
230,
251
],
[
251,
252
],
[
251,
253
],
[
230,
254
],
[
254,
255
],
[
0,
256
],
[
256,
257
],
[
256,
258
]
]
| [
"/*\n Author: @__goku__\n [email protected]\n\n `\\-. `\n \\ `. `\n \\ \\ |\n __.._ | \\. S O N - G O K U\n ..---~~ ~ . | Y\n ~-. `| |\n `. `~~--.\n \\ ~.\n \\ \\__. . -- - .\n .-~~~~~ , , ~~~~~~---...._\n .-~___ ,'/ ,'/ ,'\\ __...---~~~\n ~-. /._\\_( ,(/_. 7,-. ~~---...__\n _...>- P\"\"6=`_/\"6\"~ 6) ___...--~~~\n ~~--._ \\`--') `---' 9' _..--~~~\n ~\\ ~~/_ ~~~ /`-.--~~\n `. --- .' \\_\n `. \" _.-' | ~-.,-------._\n ..._../~~ ./ .-' .-~~~-.\n ,--~~~ ,'...\\` _./.----~~.'/ /' `-\n _.-( |\\ `/~ _____..-' / / _.-~~`.\n / | /. ^---~~~~ ' / / ,' ~. \\\n ( / ( . _ ' /' / ,/ \\ )\n (`. | `\\ - - - - ~ /' ( / . |\n \\.\\| \\ /' \\ |`. /\n /.'\\\\ `\\ /' ~-\\ . /\\\n /, ( `\\ /' `.___..- \\\n | | \\ `\\_/' // \\. |\n | | | _Seal_ /' | | |\n */\n\nimport java.io.*;\nimport java.util.*;\n\npublic class Main\n{\n static PrintWriter out = new PrintWriter((System.out));\n\n public static void main(String args[]) throws IOException\n {\n Kioken sc = new Kioken();\n int a=sc.nextInt();\n out.println(a+a*a+a*a*a);\n out.close();\n }\n\n public static void kamehameha()\n {\n }\n\n public static int lower_bound(ArrayList<Integer> ar, int k)\n {\n int s = 0, e = ar.size();\n while (s != e)\n {\n int mid = s + e >> 1;\n if (ar.get(mid) <= k)\n {\n s = mid + 1;\n }\n else\n {\n e = mid;\n }\n }\n return Math.abs(s) - 1;\n }\n\n public static int upper_bound(ArrayList<Integer> ar, int k)\n {\n int s = 0;\n int e = ar.size();\n while (s != e)\n {\n int mid = s + e >> 1;\n if (ar.get(mid) < k)\n {\n s = mid + 1;\n }\n else\n {\n e = mid;\n }\n }\n if (s == ar.size())\n {\n return -1;\n }\n return s;\n }\n\n static class Kioken\n {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n public String next()\n {\n while (!st.hasMoreTokens())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n public int nextInt()\n {\n return Integer.parseInt(next());\n }\n\n public long nextLong()\n {\n return Long.parseLong(next());\n }\n\n public double nextDouble()\n {\n return Double.parseDouble(next());\n }\n\n public String nextLine()\n {\n try\n {\n return br.readLine();\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n return null;\n }\n\n public boolean hasNext()\n {\n String next = null;\n try\n {\n next = br.readLine();\n }\n catch (Exception e)\n {\n }\n if (next == null)\n {\n return false;\n }\n st = new StringTokenizer(next);\n return true;\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main\n{\n static PrintWriter out = new PrintWriter((System.out));\n\n public static void main(String args[]) throws IOException\n {\n Kioken sc = new Kioken();\n int a=sc.nextInt();\n out.println(a+a*a+a*a*a);\n out.close();\n }\n\n public static void kamehameha()\n {\n }\n\n public static int lower_bound(ArrayList<Integer> ar, int k)\n {\n int s = 0, e = ar.size();\n while (s != e)\n {\n int mid = s + e >> 1;\n if (ar.get(mid) <= k)\n {\n s = mid + 1;\n }\n else\n {\n e = mid;\n }\n }\n return Math.abs(s) - 1;\n }\n\n public static int upper_bound(ArrayList<Integer> ar, int k)\n {\n int s = 0;\n int e = ar.size();\n while (s != e)\n {\n int mid = s + e >> 1;\n if (ar.get(mid) < k)\n {\n s = mid + 1;\n }\n else\n {\n e = mid;\n }\n }\n if (s == ar.size())\n {\n return -1;\n }\n return s;\n }\n\n static class Kioken\n {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n public String next()\n {\n while (!st.hasMoreTokens())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n public int nextInt()\n {\n return Integer.parseInt(next());\n }\n\n public long nextLong()\n {\n return Long.parseLong(next());\n }\n\n public double nextDouble()\n {\n return Double.parseDouble(next());\n }\n\n public String nextLine()\n {\n try\n {\n return br.readLine();\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n return null;\n }\n\n public boolean hasNext()\n {\n String next = null;\n try\n {\n next = br.readLine();\n }\n catch (Exception e)\n {\n }\n if (next == null)\n {\n return false;\n }\n st = new StringTokenizer(next);\n return true;\n }\n }\n}",
"Main",
"static PrintWriter out = new PrintWriter((System.out));",
"out",
"new PrintWriter((System.out))",
"public static void main(String args[]) throws IOException\n {\n Kioken sc = new Kioken();\n int a=sc.nextInt();\n out.println(a+a*a+a*a*a);\n out.close();\n }",
"main",
"{\n Kioken sc = new Kioken();\n int a=sc.nextInt();\n out.println(a+a*a+a*a*a);\n out.close();\n }",
"Kioken sc = new Kioken();",
"sc",
"new Kioken()",
"int a=sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"out.println(a+a*a+a*a*a)",
"out.println",
"out",
"a+a*a+a*a*a",
"a+a*a+a*a*a",
"a",
"a*a",
"a",
"a",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"out.close()",
"out.close",
"out",
"String args[]",
"args",
"public static void kamehameha()\n {\n }",
"kamehameha",
"{\n }",
"public static int lower_bound(ArrayList<Integer> ar, int k)\n {\n int s = 0, e = ar.size();\n while (s != e)\n {\n int mid = s + e >> 1;\n if (ar.get(mid) <= k)\n {\n s = mid + 1;\n }\n else\n {\n e = mid;\n }\n }\n return Math.abs(s) - 1;\n }",
"lower_bound",
"{\n int s = 0, e = ar.size();\n while (s != e)\n {\n int mid = s + e >> 1;\n if (ar.get(mid) <= k)\n {\n s = mid + 1;\n }\n else\n {\n e = mid;\n }\n }\n return Math.abs(s) - 1;\n }",
"int s = 0",
"s",
"0",
"e = ar.size();",
"e",
"ar.size()",
"ar.size",
"ar",
"while (s != e)\n {\n int mid = s + e >> 1;\n if (ar.get(mid) <= k)\n {\n s = mid + 1;\n }\n else\n {\n e = mid;\n }\n }",
"s != e",
"s",
"e",
"{\n int mid = s + e >> 1;\n if (ar.get(mid) <= k)\n {\n s = mid + 1;\n }\n else\n {\n e = mid;\n }\n }",
"int mid = s + e >> 1;",
"mid",
"s + e >> 1",
"s + e",
"s",
"e",
"1",
"if (ar.get(mid) <= k)\n {\n s = mid + 1;\n }\n else\n {\n e = mid;\n }",
"ar.get(mid) <= k",
"ar.get(mid)",
"ar.get",
"ar",
"mid",
"k",
"{\n s = mid + 1;\n }",
"s = mid + 1",
"s",
"mid + 1",
"mid",
"1",
"{\n e = mid;\n }",
"e = mid",
"e",
"mid",
"return Math.abs(s) - 1;",
"Math.abs(s) - 1",
"Math.abs(s)",
"Math.abs",
"Math",
"s",
"1",
"ArrayList<Integer> ar",
"ar",
"int k",
"k",
"public static int upper_bound(ArrayList<Integer> ar, int k)\n {\n int s = 0;\n int e = ar.size();\n while (s != e)\n {\n int mid = s + e >> 1;\n if (ar.get(mid) < k)\n {\n s = mid + 1;\n }\n else\n {\n e = mid;\n }\n }\n if (s == ar.size())\n {\n return -1;\n }\n return s;\n }",
"upper_bound",
"{\n int s = 0;\n int e = ar.size();\n while (s != e)\n {\n int mid = s + e >> 1;\n if (ar.get(mid) < k)\n {\n s = mid + 1;\n }\n else\n {\n e = mid;\n }\n }\n if (s == ar.size())\n {\n return -1;\n }\n return s;\n }",
"int s = 0;",
"s",
"0",
"int e = ar.size();",
"e",
"ar.size()",
"ar.size",
"ar",
"while (s != e)\n {\n int mid = s + e >> 1;\n if (ar.get(mid) < k)\n {\n s = mid + 1;\n }\n else\n {\n e = mid;\n }\n }",
"s != e",
"s",
"e",
"{\n int mid = s + e >> 1;\n if (ar.get(mid) < k)\n {\n s = mid + 1;\n }\n else\n {\n e = mid;\n }\n }",
"int mid = s + e >> 1;",
"mid",
"s + e >> 1",
"s + e",
"s",
"e",
"1",
"if (ar.get(mid) < k)\n {\n s = mid + 1;\n }\n else\n {\n e = mid;\n }",
"ar.get(mid) < k",
"ar.get(mid)",
"ar.get",
"ar",
"mid",
"k",
"{\n s = mid + 1;\n }",
"s = mid + 1",
"s",
"mid + 1",
"mid",
"1",
"{\n e = mid;\n }",
"e = mid",
"e",
"mid",
"if (s == ar.size())\n {\n return -1;\n }",
"s == ar.size()",
"s",
"ar.size()",
"ar.size",
"ar",
"{\n return -1;\n }",
"return -1;",
"-1",
"1",
"return s;",
"s",
"ArrayList<Integer> ar",
"ar",
"int k",
"k",
"static class Kioken\n {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n public String next()\n {\n while (!st.hasMoreTokens())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n public int nextInt()\n {\n return Integer.parseInt(next());\n }\n\n public long nextLong()\n {\n return Long.parseLong(next());\n }\n\n public double nextDouble()\n {\n return Double.parseDouble(next());\n }\n\n public String nextLine()\n {\n try\n {\n return br.readLine();\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n return null;\n }\n\n public boolean hasNext()\n {\n String next = null;\n try\n {\n next = br.readLine();\n }\n catch (Exception e)\n {\n }\n if (next == null)\n {\n return false;\n }\n st = new StringTokenizer(next);\n return true;\n }\n }",
"Kioken",
"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 {\n while (!st.hasMoreTokens())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (!st.hasMoreTokens())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (!st.hasMoreTokens())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }",
"try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }",
"catch (Exception e)\n {\n e.printStackTrace();\n }",
"Exception 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 {\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 long nextLong()\n {\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 double nextDouble()\n {\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",
"public String nextLine()\n {\n try\n {\n return br.readLine();\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n return null;\n }",
"nextLine",
"{\n try\n {\n return br.readLine();\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n return null;\n }",
"try\n {\n return br.readLine();\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }",
"catch (Exception e)\n {\n e.printStackTrace();\n }",
"Exception e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n return br.readLine();\n }",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"return null;",
"null",
"public boolean hasNext()\n {\n String next = null;\n try\n {\n next = br.readLine();\n }\n catch (Exception e)\n {\n }\n if (next == null)\n {\n return false;\n }\n st = new StringTokenizer(next);\n return true;\n }",
"hasNext",
"{\n String next = null;\n try\n {\n next = br.readLine();\n }\n catch (Exception e)\n {\n }\n if (next == null)\n {\n return false;\n }\n st = new StringTokenizer(next);\n return true;\n }",
"String next = null;",
"next",
"null",
"try\n {\n next = br.readLine();\n }\n catch (Exception e)\n {\n }",
"catch (Exception e)\n {\n }",
"Exception e",
"{\n }",
"{\n next = br.readLine();\n }",
"next = br.readLine()",
"next",
"br.readLine()",
"br.readLine",
"br",
"if (next == null)\n {\n return false;\n }",
"next == null",
"next",
"null",
"{\n return false;\n }",
"return false;",
"false",
"st = new StringTokenizer(next)",
"st",
"new StringTokenizer(next)",
"return true;",
"true",
"public class Main\n{\n static PrintWriter out = new PrintWriter((System.out));\n\n public static void main(String args[]) throws IOException\n {\n Kioken sc = new Kioken();\n int a=sc.nextInt();\n out.println(a+a*a+a*a*a);\n out.close();\n }\n\n public static void kamehameha()\n {\n }\n\n public static int lower_bound(ArrayList<Integer> ar, int k)\n {\n int s = 0, e = ar.size();\n while (s != e)\n {\n int mid = s + e >> 1;\n if (ar.get(mid) <= k)\n {\n s = mid + 1;\n }\n else\n {\n e = mid;\n }\n }\n return Math.abs(s) - 1;\n }\n\n public static int upper_bound(ArrayList<Integer> ar, int k)\n {\n int s = 0;\n int e = ar.size();\n while (s != e)\n {\n int mid = s + e >> 1;\n if (ar.get(mid) < k)\n {\n s = mid + 1;\n }\n else\n {\n e = mid;\n }\n }\n if (s == ar.size())\n {\n return -1;\n }\n return s;\n }\n\n static class Kioken\n {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n public String next()\n {\n while (!st.hasMoreTokens())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n public int nextInt()\n {\n return Integer.parseInt(next());\n }\n\n public long nextLong()\n {\n return Long.parseLong(next());\n }\n\n public double nextDouble()\n {\n return Double.parseDouble(next());\n }\n\n public String nextLine()\n {\n try\n {\n return br.readLine();\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n return null;\n }\n\n public boolean hasNext()\n {\n String next = null;\n try\n {\n next = br.readLine();\n }\n catch (Exception e)\n {\n }\n if (next == null)\n {\n return false;\n }\n st = new StringTokenizer(next);\n return true;\n }\n }\n}",
"public class Main\n{\n static PrintWriter out = new PrintWriter((System.out));\n\n public static void main(String args[]) throws IOException\n {\n Kioken sc = new Kioken();\n int a=sc.nextInt();\n out.println(a+a*a+a*a*a);\n out.close();\n }\n\n public static void kamehameha()\n {\n }\n\n public static int lower_bound(ArrayList<Integer> ar, int k)\n {\n int s = 0, e = ar.size();\n while (s != e)\n {\n int mid = s + e >> 1;\n if (ar.get(mid) <= k)\n {\n s = mid + 1;\n }\n else\n {\n e = mid;\n }\n }\n return Math.abs(s) - 1;\n }\n\n public static int upper_bound(ArrayList<Integer> ar, int k)\n {\n int s = 0;\n int e = ar.size();\n while (s != e)\n {\n int mid = s + e >> 1;\n if (ar.get(mid) < k)\n {\n s = mid + 1;\n }\n else\n {\n e = mid;\n }\n }\n if (s == ar.size())\n {\n return -1;\n }\n return s;\n }\n\n static class Kioken\n {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n public String next()\n {\n while (!st.hasMoreTokens())\n {\n try\n {\n st = new StringTokenizer(br.readLine());\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n public int nextInt()\n {\n return Integer.parseInt(next());\n }\n\n public long nextLong()\n {\n return Long.parseLong(next());\n }\n\n public double nextDouble()\n {\n return Double.parseDouble(next());\n }\n\n public String nextLine()\n {\n try\n {\n return br.readLine();\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n return null;\n }\n\n public boolean hasNext()\n {\n String next = null;\n try\n {\n next = br.readLine();\n }\n catch (Exception e)\n {\n }\n if (next == null)\n {\n return false;\n }\n st = new StringTokenizer(next);\n return true;\n }\n }\n}",
"Main"
]
| /*
Author: @__goku__
[email protected]
`\-. `
\ `. `
\ \ |
__.._ | \. S O N - G O K U
..---~~ ~ . | Y
~-. `| |
`. `~~--.
\ ~.
\ \__. . -- - .
.-~~~~~ , , ~~~~~~---...._
.-~___ ,'/ ,'/ ,'\ __...---~~~
~-. /._\_( ,(/_. 7,-. ~~---...__
_...>- P""6=`_/"6"~ 6) ___...--~~~
~~--._ \`--') `---' 9' _..--~~~
~\ ~~/_ ~~~ /`-.--~~
`. --- .' \_
`. " _.-' | ~-.,-------._
..._../~~ ./ .-' .-~~~-.
,--~~~ ,'...\` _./.----~~.'/ /' `-
_.-( |\ `/~ _____..-' / / _.-~~`.
/ | /. ^---~~~~ ' / / ,' ~. \
( / ( . _ ' /' / ,/ \ )
(`. | `\ - - - - ~ /' ( / . |
\.\| \ /' \ |`. /
/.'\\ `\ /' ~-\ . /\
/, ( `\ /' `.___..- \
| | \ `\_/' // \. |
| | | _Seal_ /' | | |
*/
import java.io.*;
import java.util.*;
public class Main
{
static PrintWriter out = new PrintWriter((System.out));
public static void main(String args[]) throws IOException
{
Kioken sc = new Kioken();
int a=sc.nextInt();
out.println(a+a*a+a*a*a);
out.close();
}
public static void kamehameha()
{
}
public static int lower_bound(ArrayList<Integer> ar, int k)
{
int s = 0, e = ar.size();
while (s != e)
{
int mid = s + e >> 1;
if (ar.get(mid) <= k)
{
s = mid + 1;
}
else
{
e = mid;
}
}
return Math.abs(s) - 1;
}
public static int upper_bound(ArrayList<Integer> ar, int k)
{
int s = 0;
int e = ar.size();
while (s != e)
{
int mid = s + e >> 1;
if (ar.get(mid) < k)
{
s = mid + 1;
}
else
{
e = mid;
}
}
if (s == ar.size())
{
return -1;
}
return s;
}
static class Kioken
{
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 (Exception e)
{
e.printStackTrace();
}
}
return st.nextToken();
}
public int nextInt()
{
return Integer.parseInt(next());
}
public long nextLong()
{
return Long.parseLong(next());
}
public double nextDouble()
{
return Double.parseDouble(next());
}
public String nextLine()
{
try
{
return br.readLine();
}
catch (Exception e)
{
e.printStackTrace();
}
return null;
}
public boolean hasNext()
{
String next = null;
try
{
next = br.readLine();
}
catch (Exception e)
{
}
if (next == null)
{
return false;
}
st = new StringTokenizer(next);
return true;
}
}
} |
[
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,
4,
18,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
17,
0,
18,
36,
13,
17,
23,
13,
12,
13,
30,
14,
2,
13,
13,
30,
14,
2,
13,
40,
17,
37,
20,
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,
29,
2,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
14,
40,
4,
13,
13,
37,
20,
29,
8,
13,
40,
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
],
[
252,
23
],
[
252,
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
],
[
252,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
71,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
77,
77
],
[
77,
78
],
[
77,
79
],
[
77,
80
],
[
59,
81
],
[
81,
82
],
[
59,
83
],
[
83,
84
],
[
59,
85
],
[
85,
86
],
[
252,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
87,
91
],
[
91,
92
],
[
91,
93
],
[
87,
95
],
[
95,
96
],
[
87,
97
],
[
97,
98
],
[
87,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
101,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
101,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
99,
117
],
[
117,
118
],
[
87,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
127,
132
],
[
132,
133
],
[
126,
134
],
[
134,
135
],
[
134,
136
],
[
126,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
137,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
146,
149
],
[
126,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
150,
154
],
[
154,
155
],
[
155,
156
],
[
121,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
87,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
165,
166
],
[
169,
167
],
[
179,
168
],
[
176,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
169,
173
],
[
173,
174
],
[
173,
175
],
[
176,
176
],
[
176,
177
],
[
176,
178
],
[
179,
179
],
[
179,
180
],
[
179,
181
],
[
169,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
162,
186
],
[
186,
187
],
[
87,
188
],
[
188,
189
],
[
188,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
190,
194
],
[
194,
195
],
[
194,
196
],
[
196,
197
],
[
190,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
198,
202
],
[
202,
203
],
[
202,
204
],
[
204,
205
],
[
190,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
208,
210
],
[
190,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
213,
215
],
[
215,
216
],
[
190,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
218,
222
],
[
222,
223
],
[
222,
224
],
[
217,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
225,
229
],
[
229,
230
],
[
229,
231
],
[
231,
232
],
[
231,
233
],
[
225,
234
],
[
234,
235
],
[
234,
236
],
[
236,
237
],
[
190,
238
],
[
238,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
238,
243
],
[
243,
244
],
[
190,
245
],
[
245,
246
],
[
246,
247
],
[
246,
248
],
[
248,
249
],
[
246,
250
],
[
0,
251
],
[
251,
252
],
[
251,
253
]
]
| [
"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 */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastScanner in = new FastScanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskA solver = new TaskA();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskA {\n public void solve(int testNumber, FastScanner in, PrintWriter out) {\n int a = in.nextInt();\n out.println(a + a * a + a * a * a);\n }\n\n }\n\n static class FastScanner {\n private InputStream in;\n private byte[] buffer = new byte[1024];\n private int bufPointer;\n private int bufLength;\n\n public FastScanner(InputStream in) {\n this.in = in;\n this.bufPointer = 0;\n this.bufLength = 0;\n }\n\n private int readByte() {\n if (bufPointer >= bufLength) {\n if (bufLength == -1)\n throw new InputMismatchException();\n\n bufPointer = 0;\n try {\n bufLength = in.read(buffer);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (bufLength <= 0)\n return -1;\n }\n return buffer[bufPointer++];\n }\n\n private static boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public int nextInt() {\n int n = 0;\n\n int b = readByte();\n while (isSpaceChar(b))\n b = readByte();\n\n boolean minus = (b == '-');\n if (minus)\n b = readByte();\n\n while (b >= '0' && b <= '9') {\n n *= 10;\n n += b - '0';\n b = readByte();\n }\n\n if (!isSpaceChar(b))\n throw new NumberFormatException();\n\n return minus ? -n : 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 FastScanner in = new FastScanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskA solver = new TaskA();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskA {\n public void solve(int testNumber, FastScanner in, PrintWriter out) {\n int a = in.nextInt();\n out.println(a + a * a + a * a * a);\n }\n\n }\n\n static class FastScanner {\n private InputStream in;\n private byte[] buffer = new byte[1024];\n private int bufPointer;\n private int bufLength;\n\n public FastScanner(InputStream in) {\n this.in = in;\n this.bufPointer = 0;\n this.bufLength = 0;\n }\n\n private int readByte() {\n if (bufPointer >= bufLength) {\n if (bufLength == -1)\n throw new InputMismatchException();\n\n bufPointer = 0;\n try {\n bufLength = in.read(buffer);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (bufLength <= 0)\n return -1;\n }\n return buffer[bufPointer++];\n }\n\n private static boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public int nextInt() {\n int n = 0;\n\n int b = readByte();\n while (isSpaceChar(b))\n b = readByte();\n\n boolean minus = (b == '-');\n if (minus)\n b = readByte();\n\n while (b >= '0' && b <= '9') {\n n *= 10;\n n += b - '0';\n b = readByte();\n }\n\n if (!isSpaceChar(b))\n throw new NumberFormatException();\n\n return minus ? -n : n;\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastScanner in = new FastScanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskA solver = new TaskA();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastScanner in = new FastScanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskA solver = new TaskA();\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",
"FastScanner in = new FastScanner(inputStream);",
"in",
"new FastScanner(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"TaskA solver = new TaskA();",
"solver",
"new TaskA()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class TaskA {\n public void solve(int testNumber, FastScanner in, PrintWriter out) {\n int a = in.nextInt();\n out.println(a + a * a + a * a * a);\n }\n\n }",
"TaskA",
"public void solve(int testNumber, FastScanner in, PrintWriter out) {\n int a = in.nextInt();\n out.println(a + a * a + a * a * a);\n }",
"solve",
"{\n int a = in.nextInt();\n out.println(a + a * a + a * a * a);\n }",
"int a = in.nextInt();",
"a",
"in.nextInt()",
"in.nextInt",
"in",
"out.println(a + a * a + a * a * a)",
"out.println",
"out",
"a + a * a + a * a * a",
"a + a * a + a * a * a",
"a",
"a * a",
"a",
"a",
"a * a * a",
"a * a * a",
"a",
"a",
"a",
"int testNumber",
"testNumber",
"FastScanner in",
"in",
"PrintWriter out",
"out",
"static class FastScanner {\n private InputStream in;\n private byte[] buffer = new byte[1024];\n private int bufPointer;\n private int bufLength;\n\n public FastScanner(InputStream in) {\n this.in = in;\n this.bufPointer = 0;\n this.bufLength = 0;\n }\n\n private int readByte() {\n if (bufPointer >= bufLength) {\n if (bufLength == -1)\n throw new InputMismatchException();\n\n bufPointer = 0;\n try {\n bufLength = in.read(buffer);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (bufLength <= 0)\n return -1;\n }\n return buffer[bufPointer++];\n }\n\n private static boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public int nextInt() {\n int n = 0;\n\n int b = readByte();\n while (isSpaceChar(b))\n b = readByte();\n\n boolean minus = (b == '-');\n if (minus)\n b = readByte();\n\n while (b >= '0' && b <= '9') {\n n *= 10;\n n += b - '0';\n b = readByte();\n }\n\n if (!isSpaceChar(b))\n throw new NumberFormatException();\n\n return minus ? -n : n;\n }\n\n }",
"FastScanner",
"private InputStream in;",
"in",
"private byte[] buffer = new byte[1024];",
"buffer",
"new byte[1024]",
"1024",
"private int bufPointer;",
"bufPointer",
"private int bufLength;",
"bufLength",
"public FastScanner(InputStream in) {\n this.in = in;\n this.bufPointer = 0;\n this.bufLength = 0;\n }",
"FastScanner",
"{\n this.in = in;\n this.bufPointer = 0;\n this.bufLength = 0;\n }",
"this.in = in",
"this.in",
"this",
"this.in",
"in",
"this.bufPointer = 0",
"this.bufPointer",
"this",
"this.bufPointer",
"0",
"this.bufLength = 0",
"this.bufLength",
"this",
"this.bufLength",
"0",
"InputStream in",
"in",
"private int readByte() {\n if (bufPointer >= bufLength) {\n if (bufLength == -1)\n throw new InputMismatchException();\n\n bufPointer = 0;\n try {\n bufLength = in.read(buffer);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (bufLength <= 0)\n return -1;\n }\n return buffer[bufPointer++];\n }",
"readByte",
"{\n if (bufPointer >= bufLength) {\n if (bufLength == -1)\n throw new InputMismatchException();\n\n bufPointer = 0;\n try {\n bufLength = in.read(buffer);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (bufLength <= 0)\n return -1;\n }\n return buffer[bufPointer++];\n }",
"if (bufPointer >= bufLength) {\n if (bufLength == -1)\n throw new InputMismatchException();\n\n bufPointer = 0;\n try {\n bufLength = in.read(buffer);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (bufLength <= 0)\n return -1;\n }",
"bufPointer >= bufLength",
"bufPointer",
"bufLength",
"{\n if (bufLength == -1)\n throw new InputMismatchException();\n\n bufPointer = 0;\n try {\n bufLength = in.read(buffer);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (bufLength <= 0)\n return -1;\n }",
"if (bufLength == -1)\n throw new InputMismatchException();",
"bufLength == -1",
"bufLength",
"-1",
"1",
"throw new InputMismatchException();",
"new InputMismatchException()",
"bufPointer = 0",
"bufPointer",
"0",
"try {\n bufLength = in.read(buffer);\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 bufLength = in.read(buffer);\n }",
"bufLength = in.read(buffer)",
"bufLength",
"in.read(buffer)",
"in.read",
"in",
"buffer",
"if (bufLength <= 0)\n return -1;",
"bufLength <= 0",
"bufLength",
"0",
"return -1;",
"-1",
"1",
"return buffer[bufPointer++];",
"buffer[bufPointer++]",
"buffer",
"bufPointer++",
"bufPointer",
"private static boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"isSpaceChar",
"{\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"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 int nextInt() {\n int n = 0;\n\n int b = readByte();\n while (isSpaceChar(b))\n b = readByte();\n\n boolean minus = (b == '-');\n if (minus)\n b = readByte();\n\n while (b >= '0' && b <= '9') {\n n *= 10;\n n += b - '0';\n b = readByte();\n }\n\n if (!isSpaceChar(b))\n throw new NumberFormatException();\n\n return minus ? -n : n;\n }",
"nextInt",
"{\n int n = 0;\n\n int b = readByte();\n while (isSpaceChar(b))\n b = readByte();\n\n boolean minus = (b == '-');\n if (minus)\n b = readByte();\n\n while (b >= '0' && b <= '9') {\n n *= 10;\n n += b - '0';\n b = readByte();\n }\n\n if (!isSpaceChar(b))\n throw new NumberFormatException();\n\n return minus ? -n : n;\n }",
"int n = 0;",
"n",
"0",
"int b = readByte();",
"b",
"readByte()",
"readByte",
"while (isSpaceChar(b))\n b = readByte();",
"isSpaceChar(b)",
"isSpaceChar",
"b",
"b = readByte()",
"b",
"readByte()",
"readByte",
"boolean minus = (b == '-');",
"minus",
"(b == '-')",
"b",
"'-'",
"if (minus)\n b = readByte();",
"minus",
"b = readByte()",
"b",
"readByte()",
"readByte",
"while (b >= '0' && b <= '9') {\n n *= 10;\n n += b - '0';\n b = readByte();\n }",
"b >= '0' && b <= '9'",
"b >= '0'",
"b",
"'0'",
"b <= '9'",
"b",
"'9'",
"{\n n *= 10;\n n += b - '0';\n b = readByte();\n }",
"n *= 10",
"n",
"10",
"n += b - '0'",
"n",
"b - '0'",
"b",
"'0'",
"b = readByte()",
"b",
"readByte()",
"readByte",
"if (!isSpaceChar(b))\n throw new NumberFormatException();",
"!isSpaceChar(b)",
"isSpaceChar(b)",
"isSpaceChar",
"b",
"throw new NumberFormatException();",
"new NumberFormatException()",
"return minus ? -n : n;",
"minus ? -n : n",
"minus",
"-n",
"n",
"n",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastScanner in = new FastScanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskA solver = new TaskA();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskA {\n public void solve(int testNumber, FastScanner in, PrintWriter out) {\n int a = in.nextInt();\n out.println(a + a * a + a * a * a);\n }\n\n }\n\n static class FastScanner {\n private InputStream in;\n private byte[] buffer = new byte[1024];\n private int bufPointer;\n private int bufLength;\n\n public FastScanner(InputStream in) {\n this.in = in;\n this.bufPointer = 0;\n this.bufLength = 0;\n }\n\n private int readByte() {\n if (bufPointer >= bufLength) {\n if (bufLength == -1)\n throw new InputMismatchException();\n\n bufPointer = 0;\n try {\n bufLength = in.read(buffer);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (bufLength <= 0)\n return -1;\n }\n return buffer[bufPointer++];\n }\n\n private static boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public int nextInt() {\n int n = 0;\n\n int b = readByte();\n while (isSpaceChar(b))\n b = readByte();\n\n boolean minus = (b == '-');\n if (minus)\n b = readByte();\n\n while (b >= '0' && b <= '9') {\n n *= 10;\n n += b - '0';\n b = readByte();\n }\n\n if (!isSpaceChar(b))\n throw new NumberFormatException();\n\n return minus ? -n : 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 FastScanner in = new FastScanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskA solver = new TaskA();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskA {\n public void solve(int testNumber, FastScanner in, PrintWriter out) {\n int a = in.nextInt();\n out.println(a + a * a + a * a * a);\n }\n\n }\n\n static class FastScanner {\n private InputStream in;\n private byte[] buffer = new byte[1024];\n private int bufPointer;\n private int bufLength;\n\n public FastScanner(InputStream in) {\n this.in = in;\n this.bufPointer = 0;\n this.bufLength = 0;\n }\n\n private int readByte() {\n if (bufPointer >= bufLength) {\n if (bufLength == -1)\n throw new InputMismatchException();\n\n bufPointer = 0;\n try {\n bufLength = in.read(buffer);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n\n if (bufLength <= 0)\n return -1;\n }\n return buffer[bufPointer++];\n }\n\n private static boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public int nextInt() {\n int n = 0;\n\n int b = readByte();\n while (isSpaceChar(b))\n b = readByte();\n\n boolean minus = (b == '-');\n if (minus)\n b = readByte();\n\n while (b >= '0' && b <= '9') {\n n *= 10;\n n += b - '0';\n b = readByte();\n }\n\n if (!isSpaceChar(b))\n throw new NumberFormatException();\n\n return minus ? -n : 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
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
FastScanner in = new FastScanner(inputStream);
PrintWriter out = new PrintWriter(outputStream);
TaskA solver = new TaskA();
solver.solve(1, in, out);
out.close();
}
static class TaskA {
public void solve(int testNumber, FastScanner in, PrintWriter out) {
int a = in.nextInt();
out.println(a + a * a + a * a * a);
}
}
static class FastScanner {
private InputStream in;
private byte[] buffer = new byte[1024];
private int bufPointer;
private int bufLength;
public FastScanner(InputStream in) {
this.in = in;
this.bufPointer = 0;
this.bufLength = 0;
}
private int readByte() {
if (bufPointer >= bufLength) {
if (bufLength == -1)
throw new InputMismatchException();
bufPointer = 0;
try {
bufLength = in.read(buffer);
} catch (IOException e) {
throw new InputMismatchException();
}
if (bufLength <= 0)
return -1;
}
return buffer[bufPointer++];
}
private static boolean isSpaceChar(int c) {
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
public int nextInt() {
int n = 0;
int b = readByte();
while (isSpaceChar(b))
b = readByte();
boolean minus = (b == '-');
if (minus)
b = readByte();
while (b >= '0' && b <= '9') {
n *= 10;
n += b - '0';
b = readByte();
}
if (!isSpaceChar(b))
throw new NumberFormatException();
return minus ? -n : n;
}
}
}
|
[
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,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
23,
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
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
82,
17
],
[
82,
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
],
[
40,
45
],
[
20,
46
],
[
46,
47
],
[
47,
48
],
[
18,
49
],
[
49,
50
],
[
82,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
65,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
71,
71
],
[
71,
72
],
[
71,
73
],
[
71,
74
],
[
53,
75
],
[
75,
76
],
[
53,
77
],
[
77,
78
],
[
53,
79
],
[
79,
80
],
[
0,
81
],
[
81,
82
],
[
81,
83
]
]
| [
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.Scanner;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class Task {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int a = in.nextInt();\n out.println(a + a * a + a * a * a);\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.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class Task {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int a = in.nextInt();\n out.println(a + a * a + a * a * a);\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\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",
"Scanner in = new Scanner(inputStream);",
"in",
"new Scanner(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"Task solver = new Task();",
"solver",
"new Task()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class Task {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int a = in.nextInt();\n out.println(a + a * a + a * a * a);\n }\n\n }",
"Task",
"public void solve(int testNumber, Scanner in, PrintWriter out) {\n int a = in.nextInt();\n out.println(a + a * a + a * a * a);\n }",
"solve",
"{\n int a = in.nextInt();\n out.println(a + a * a + a * a * a);\n }",
"int a = in.nextInt();",
"a",
"in.nextInt()",
"in.nextInt",
"in",
"out.println(a + a * a + a * a * a)",
"out.println",
"out",
"a + a * a + a * a * a",
"a + a * a + a * a * a",
"a",
"a * a",
"a",
"a",
"a * a * a",
"a * a * a",
"a",
"a",
"a",
"int testNumber",
"testNumber",
"Scanner in",
"in",
"PrintWriter out",
"out",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class Task {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int a = in.nextInt();\n out.println(a + a * a + a * a * a);\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 Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class Task {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int a = in.nextInt();\n out.println(a + a * a + a * a * a);\n }\n\n }\n}",
"Main"
]
| import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;
/**
* 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;
Scanner in = new Scanner(inputStream);
PrintWriter out = new PrintWriter(outputStream);
Task solver = new Task();
solver.solve(1, in, out);
out.close();
}
static class Task {
public void solve(int testNumber, Scanner in, PrintWriter out) {
int a = in.nextInt();
out.println(a + a * a + a * a * a);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
2,
17,
17,
12,
13,
30,
4,
18,
13,
18,
13,
13,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
2,
17,
13,
0,
13,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
13,
0,
18,
13,
13,
18,
13,
13,
30,
41,
13,
2,
2,
13,
13,
17,
4,
13,
2,
2,
17,
13,
17,
13,
13,
4,
13,
2,
2,
17,
13,
17,
2,
13,
17,
13,
0,
18,
13,
13,
4,
18,
13,
18,
13,
2,
2,
17,
13,
17,
18,
13,
2,
2,
17,
13,
17,
23,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
2,
13,
13,
2,
13,
13,
29,
18,
13,
13,
14,
2,
2,
13,
13,
2,
13,
13,
29,
17,
30,
41,
13,
2,
2,
13,
13,
17,
29,
4,
18,
13,
4,
13,
2,
2,
17,
13,
17,
13,
13,
13,
13,
4,
13,
2,
2,
17,
13,
17,
2,
13,
17,
13,
13,
13,
23,
13,
23,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
13,
30,
0,
18,
13,
13,
13,
30,
41,
13,
2,
2,
13,
13,
17,
14,
2,
13,
13,
30,
4,
13,
2,
2,
17,
13,
17,
13,
13,
13,
13,
4,
13,
2,
2,
17,
13,
17,
2,
13,
17,
13,
13,
13,
0,
18,
13,
13,
4,
18,
13,
18,
13,
2,
2,
17,
13,
17,
18,
13,
2,
2,
17,
13,
17,
23,
13,
23,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
12,
13,
30,
0,
13,
20,
0,
13,
20,
23,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
42,
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,
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
],
[
370,
8
],
[
370,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
11,
13
],
[
370,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
20,
22
],
[
16,
23
],
[
23,
24
],
[
23,
25
],
[
16,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
16,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
35,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
41,
41
],
[
41,
42
],
[
41,
43
],
[
41,
44
],
[
16,
45
],
[
45,
46
],
[
46,
47
],
[
14,
48
],
[
48,
49
],
[
0,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
50,
54
],
[
54,
55
],
[
50,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
62,
63
],
[
62,
64
],
[
58,
65
],
[
65,
66
],
[
65,
67
],
[
56,
68
],
[
68,
69
],
[
56,
70
],
[
70,
71
],
[
50,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
83,
85
],
[
75,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
86,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
94,
101
],
[
94,
102
],
[
86,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
103,
110
],
[
110,
111
],
[
110,
112
],
[
103,
113
],
[
86,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
118,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
72,
135
],
[
135,
136
],
[
72,
137
],
[
137,
138
],
[
72,
139
],
[
139,
140
],
[
50,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
145,
149
],
[
149,
150
],
[
149,
151
],
[
144,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
144,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
161,
162
],
[
161,
163
],
[
156,
164
],
[
164,
165
],
[
156,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
169,
173
],
[
166,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
175,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
180,
184
],
[
178,
185
],
[
178,
186
],
[
178,
187
],
[
178,
188
],
[
175,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
191,
195
],
[
189,
196
],
[
196,
197
],
[
196,
198
],
[
189,
199
],
[
189,
200
],
[
189,
201
],
[
141,
202
],
[
202,
203
],
[
141,
204
],
[
204,
205
],
[
141,
206
],
[
206,
207
],
[
141,
208
],
[
208,
209
],
[
141,
210
],
[
210,
211
],
[
50,
212
],
[
212,
213
],
[
212,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
215,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
220,
224
],
[
215,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
228,
229
],
[
229,
230
],
[
229,
231
],
[
228,
232
],
[
225,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
233,
237
],
[
237,
238
],
[
238,
239
],
[
238,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
240,
244
],
[
238,
245
],
[
238,
246
],
[
238,
247
],
[
238,
248
],
[
233,
249
],
[
249,
250
],
[
249,
251
],
[
251,
252
],
[
252,
253
],
[
252,
254
],
[
251,
255
],
[
249,
256
],
[
256,
257
],
[
256,
258
],
[
249,
259
],
[
249,
260
],
[
249,
261
],
[
225,
262
],
[
262,
263
],
[
263,
264
],
[
263,
265
],
[
262,
266
],
[
266,
267
],
[
267,
268
],
[
266,
269
],
[
269,
270
],
[
269,
271
],
[
271,
272
],
[
272,
273
],
[
272,
274
],
[
271,
275
],
[
266,
276
],
[
276,
277
],
[
276,
278
],
[
278,
279
],
[
279,
280
],
[
279,
281
],
[
278,
282
],
[
212,
283
],
[
283,
284
],
[
212,
285
],
[
285,
286
],
[
212,
287
],
[
287,
288
],
[
212,
289
],
[
289,
290
],
[
212,
291
],
[
291,
292
],
[
0,
293
],
[
293,
294
],
[
293,
295
],
[
295,
296
],
[
293,
297
],
[
297,
298
],
[
293,
299
],
[
299,
300
],
[
299,
301
],
[
301,
302
],
[
302,
303
],
[
302,
304
],
[
301,
305
],
[
305,
306
],
[
305,
307
],
[
293,
308
],
[
308,
309
],
[
308,
310
],
[
310,
311
],
[
311,
312
],
[
311,
313
],
[
310,
314
],
[
314,
315
],
[
314,
316
],
[
308,
317
],
[
317,
318
],
[
293,
319
],
[
319,
320
],
[
319,
321
],
[
321,
322
],
[
322,
323
],
[
323,
324
],
[
324,
325
],
[
293,
326
],
[
326,
327
],
[
326,
328
],
[
328,
329
],
[
329,
330
],
[
330,
331
],
[
331,
332
],
[
332,
333
],
[
329,
334
],
[
334,
335
],
[
335,
336
],
[
335,
337
],
[
328,
338
],
[
338,
339
],
[
339,
340
],
[
340,
341
],
[
293,
342
],
[
342,
343
],
[
342,
344
],
[
344,
345
],
[
345,
346
],
[
346,
347
],
[
347,
348
],
[
346,
349
],
[
349,
350
],
[
293,
351
],
[
351,
352
],
[
351,
353
],
[
353,
354
],
[
354,
355
],
[
355,
356
],
[
356,
357
],
[
355,
358
],
[
358,
359
],
[
293,
360
],
[
360,
361
],
[
360,
362
],
[
362,
363
],
[
363,
364
],
[
364,
365
],
[
365,
366
],
[
364,
367
],
[
367,
368
],
[
0,
369
],
[
369,
370
],
[
369,
371
]
]
| [
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n\t\n\tstatic long mod= (long) 1e9+7;\n\t\n\t\t\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tReader.init(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tlong a=Reader.nextInt();\n\t\tout.println(a+a*a+a*a*a);\n\t\t\n\t\t\n\t\tout.flush();\n\t\t\n\t}\n\n}\n\nclass Seg{\n\t\n\tint[] tree,arr;\n\t\n\tSeg(int n,int[] a){\n\t\ttree=new int[4*n];arr=a;\n\t}\n\t\n\tvoid build(int index, int left, int right) {\n\t\tif(left==right) tree[index]=arr[left];\n\t\telse {\n\t\t\tint mid=(left+right)/2;\n\t\t\tbuild(2*index+1,left,mid);\n\t\t\tbuild(2*index+2,mid+1,right);\n\t\t\ttree[index]=Math.max(tree[2*index+1],tree[2*index+2]);\n\t\t}\n\t}\n\t\n\tint query(int index, int ql, int qr, int left, int right) {\n\t\tif(ql<=left && right<=qr) return tree[index];\n\t\telse if(ql > right || qr<left) return 0;\n\t\telse {\n\t\t\tint mid=(left+right)/2;\n\t\t\treturn Math.max(query(2*index+1,left,mid,ql,qr), query(2*index+2,mid+1,right,ql,qr));\n\t\t}\n\t}\n\t\n\tvoid update(int index, int left, int right, int pos, int val) {\n\t\tif(left==right) {\n\t\t\ttree[index]=val;\n\t\t}\n\t\telse {\n\t\t\tint mid=(left+right)/2;\n\t\t\tif(pos<=mid) {\n\t\t\t\tupdate(2*index+1,left,mid,pos,val);\n\t\t\t}\n\t\t\telse update(2*index+2,mid+1,right,pos,val);\n\t\t\ttree[index]=Math.max(tree[2*index+1],tree[2*index+2]);\n\t\t}\n\t}\n}\n\n\nclass Reader {\n static BufferedReader reader;\n static StringTokenizer tokenizer;\n /** call this method to initialize reader for InputStream */\n static void init() throws IOException {\n reader = new BufferedReader(\n new FileReader(\"C:\\\\Users\\\\samee\\\\Desktop\\\\GRE prep\\\\confusion.txt\"));\n tokenizer = new StringTokenizer(\"\");\n }\n static void init(InputStream input) {\n reader = new BufferedReader(\n new InputStreamReader(input) );\n tokenizer = new StringTokenizer(\"\");\n }\n /** get next word */\n static String nextLine() throws IOException{\n return reader.readLine();\n }\n static String next() throws IOException {\n while ( ! tokenizer.hasMoreTokens() ) {\n //TODO add check for eof if necessary\n tokenizer = new StringTokenizer(\n reader.readLine() );\n }\n return tokenizer.nextToken();\n }\n static int nextInt() throws IOException {\n return Integer.parseInt( next() );\n }\n static long nextLong() throws IOException {\n return Long.parseLong( next() );\n }\n static double nextDouble() throws IOException {\n return Double.parseDouble( next() );\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\t\n\tstatic long mod= (long) 1e9+7;\n\t\n\t\t\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tReader.init(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tlong a=Reader.nextInt();\n\t\tout.println(a+a*a+a*a*a);\n\t\t\n\t\t\n\t\tout.flush();\n\t\t\n\t}\n\n}",
"Main",
"static long mod= (long) 1e9+7;",
"mod",
"(long) 1e9+7",
"(long) 1e9",
"7",
"public static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tReader.init(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tlong a=Reader.nextInt();\n\t\tout.println(a+a*a+a*a*a);\n\t\t\n\t\t\n\t\tout.flush();\n\t\t\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tReader.init(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tlong a=Reader.nextInt();\n\t\tout.println(a+a*a+a*a*a);\n\t\t\n\t\t\n\t\tout.flush();\n\t\t\n\t}",
"Reader.init(System.in)",
"Reader.init",
"Reader",
"System.in",
"System",
"System.in",
"PrintWriter out=new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"long a=Reader.nextInt();",
"a",
"Reader.nextInt()",
"Reader.nextInt",
"Reader",
"out.println(a+a*a+a*a*a)",
"out.println",
"out",
"a+a*a+a*a*a",
"a+a*a+a*a*a",
"a",
"a*a",
"a",
"a",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"class Seg{\n\t\n\tint[] tree,arr;\n\t\n\tSeg(int n,int[] a){\n\t\ttree=new int[4*n];arr=a;\n\t}\n\t\n\tvoid build(int index, int left, int right) {\n\t\tif(left==right) tree[index]=arr[left];\n\t\telse {\n\t\t\tint mid=(left+right)/2;\n\t\t\tbuild(2*index+1,left,mid);\n\t\t\tbuild(2*index+2,mid+1,right);\n\t\t\ttree[index]=Math.max(tree[2*index+1],tree[2*index+2]);\n\t\t}\n\t}\n\t\n\tint query(int index, int ql, int qr, int left, int right) {\n\t\tif(ql<=left && right<=qr) return tree[index];\n\t\telse if(ql > right || qr<left) return 0;\n\t\telse {\n\t\t\tint mid=(left+right)/2;\n\t\t\treturn Math.max(query(2*index+1,left,mid,ql,qr), query(2*index+2,mid+1,right,ql,qr));\n\t\t}\n\t}\n\t\n\tvoid update(int index, int left, int right, int pos, int val) {\n\t\tif(left==right) {\n\t\t\ttree[index]=val;\n\t\t}\n\t\telse {\n\t\t\tint mid=(left+right)/2;\n\t\t\tif(pos<=mid) {\n\t\t\t\tupdate(2*index+1,left,mid,pos,val);\n\t\t\t}\n\t\t\telse update(2*index+2,mid+1,right,pos,val);\n\t\t\ttree[index]=Math.max(tree[2*index+1],tree[2*index+2]);\n\t\t}\n\t}\n}",
"Seg",
"int[] tree",
"tree",
"arr;",
"arr",
"Seg(int n,int[] a){\n\t\ttree=new int[4*n];arr=a;\n\t}",
"Seg",
"{\n\t\ttree=new int[4*n];arr=a;\n\t}",
"tree=new int[4*n]",
"tree",
"new int[4*n]",
"4*n",
"4",
"n",
"arr=a",
"arr",
"a",
"int n",
"n",
"int[] a",
"a",
"void build(int index, int left, int right) {\n\t\tif(left==right) tree[index]=arr[left];\n\t\telse {\n\t\t\tint mid=(left+right)/2;\n\t\t\tbuild(2*index+1,left,mid);\n\t\t\tbuild(2*index+2,mid+1,right);\n\t\t\ttree[index]=Math.max(tree[2*index+1],tree[2*index+2]);\n\t\t}\n\t}",
"build",
"{\n\t\tif(left==right) tree[index]=arr[left];\n\t\telse {\n\t\t\tint mid=(left+right)/2;\n\t\t\tbuild(2*index+1,left,mid);\n\t\t\tbuild(2*index+2,mid+1,right);\n\t\t\ttree[index]=Math.max(tree[2*index+1],tree[2*index+2]);\n\t\t}\n\t}",
"if(left==right) tree[index]=arr[left];\n\t\telse {\n\t\t\tint mid=(left+right)/2;\n\t\t\tbuild(2*index+1,left,mid);\n\t\t\tbuild(2*index+2,mid+1,right);\n\t\t\ttree[index]=Math.max(tree[2*index+1],tree[2*index+2]);\n\t\t}",
"left==right",
"left",
"right",
"tree[index]=arr[left]",
"tree[index]",
"tree",
"index",
"arr[left]",
"arr",
"left",
"{\n\t\t\tint mid=(left+right)/2;\n\t\t\tbuild(2*index+1,left,mid);\n\t\t\tbuild(2*index+2,mid+1,right);\n\t\t\ttree[index]=Math.max(tree[2*index+1],tree[2*index+2]);\n\t\t}",
"int mid=(left+right)/2;",
"mid",
"(left+right)/2",
"(left+right)",
"left",
"right",
"2",
"build(2*index+1,left,mid)",
"build",
"2*index+1",
"2*index",
"2",
"index",
"1",
"left",
"mid",
"build(2*index+2,mid+1,right)",
"build",
"2*index+2",
"2*index",
"2",
"index",
"2",
"mid+1",
"mid",
"1",
"right",
"tree[index]=Math.max(tree[2*index+1],tree[2*index+2])",
"tree[index]",
"tree",
"index",
"Math.max(tree[2*index+1],tree[2*index+2])",
"Math.max",
"Math",
"tree[2*index+1]",
"tree",
"2*index+1",
"2*index",
"2",
"index",
"1",
"tree[2*index+2]",
"tree",
"2*index+2",
"2*index",
"2",
"index",
"2",
"int index",
"index",
"int left",
"left",
"int right",
"right",
"int query(int index, int ql, int qr, int left, int right) {\n\t\tif(ql<=left && right<=qr) return tree[index];\n\t\telse if(ql > right || qr<left) return 0;\n\t\telse {\n\t\t\tint mid=(left+right)/2;\n\t\t\treturn Math.max(query(2*index+1,left,mid,ql,qr), query(2*index+2,mid+1,right,ql,qr));\n\t\t}\n\t}",
"query",
"{\n\t\tif(ql<=left && right<=qr) return tree[index];\n\t\telse if(ql > right || qr<left) return 0;\n\t\telse {\n\t\t\tint mid=(left+right)/2;\n\t\t\treturn Math.max(query(2*index+1,left,mid,ql,qr), query(2*index+2,mid+1,right,ql,qr));\n\t\t}\n\t}",
"if(ql<=left && right<=qr) return tree[index];\n\t\telse if(ql > right || qr<left) return 0;\n\t\telse {\n\t\t\tint mid=(left+right)/2;\n\t\t\treturn Math.max(query(2*index+1,left,mid,ql,qr), query(2*index+2,mid+1,right,ql,qr));\n\t\t}",
"ql<=left && right<=qr",
"ql<=left",
"ql",
"left",
"right<=qr",
"right",
"qr",
"return tree[index];",
"tree[index]",
"tree",
"index",
"if(ql > right || qr<left) return 0;\n\t\telse {\n\t\t\tint mid=(left+right)/2;\n\t\t\treturn Math.max(query(2*index+1,left,mid,ql,qr), query(2*index+2,mid+1,right,ql,qr));\n\t\t}",
"ql > right || qr<left",
"ql > right",
"ql",
"right",
"qr<left",
"qr",
"left",
"return 0;",
"0",
"{\n\t\t\tint mid=(left+right)/2;\n\t\t\treturn Math.max(query(2*index+1,left,mid,ql,qr), query(2*index+2,mid+1,right,ql,qr));\n\t\t}",
"int mid=(left+right)/2;",
"mid",
"(left+right)/2",
"(left+right)",
"left",
"right",
"2",
"return Math.max(query(2*index+1,left,mid,ql,qr), query(2*index+2,mid+1,right,ql,qr));",
"Math.max(query(2*index+1,left,mid,ql,qr), query(2*index+2,mid+1,right,ql,qr))",
"Math.max",
"Math",
"query(2*index+1,left,mid,ql,qr)",
"query",
"2*index+1",
"2*index",
"2",
"index",
"1",
"left",
"mid",
"ql",
"qr",
"query(2*index+2,mid+1,right,ql,qr)",
"query",
"2*index+2",
"2*index",
"2",
"index",
"2",
"mid+1",
"mid",
"1",
"right",
"ql",
"qr",
"int index",
"index",
"int ql",
"ql",
"int qr",
"qr",
"int left",
"left",
"int right",
"right",
"void update(int index, int left, int right, int pos, int val) {\n\t\tif(left==right) {\n\t\t\ttree[index]=val;\n\t\t}\n\t\telse {\n\t\t\tint mid=(left+right)/2;\n\t\t\tif(pos<=mid) {\n\t\t\t\tupdate(2*index+1,left,mid,pos,val);\n\t\t\t}\n\t\t\telse update(2*index+2,mid+1,right,pos,val);\n\t\t\ttree[index]=Math.max(tree[2*index+1],tree[2*index+2]);\n\t\t}\n\t}",
"update",
"{\n\t\tif(left==right) {\n\t\t\ttree[index]=val;\n\t\t}\n\t\telse {\n\t\t\tint mid=(left+right)/2;\n\t\t\tif(pos<=mid) {\n\t\t\t\tupdate(2*index+1,left,mid,pos,val);\n\t\t\t}\n\t\t\telse update(2*index+2,mid+1,right,pos,val);\n\t\t\ttree[index]=Math.max(tree[2*index+1],tree[2*index+2]);\n\t\t}\n\t}",
"if(left==right) {\n\t\t\ttree[index]=val;\n\t\t}\n\t\telse {\n\t\t\tint mid=(left+right)/2;\n\t\t\tif(pos<=mid) {\n\t\t\t\tupdate(2*index+1,left,mid,pos,val);\n\t\t\t}\n\t\t\telse update(2*index+2,mid+1,right,pos,val);\n\t\t\ttree[index]=Math.max(tree[2*index+1],tree[2*index+2]);\n\t\t}",
"left==right",
"left",
"right",
"{\n\t\t\ttree[index]=val;\n\t\t}",
"tree[index]=val",
"tree[index]",
"tree",
"index",
"val",
"{\n\t\t\tint mid=(left+right)/2;\n\t\t\tif(pos<=mid) {\n\t\t\t\tupdate(2*index+1,left,mid,pos,val);\n\t\t\t}\n\t\t\telse update(2*index+2,mid+1,right,pos,val);\n\t\t\ttree[index]=Math.max(tree[2*index+1],tree[2*index+2]);\n\t\t}",
"int mid=(left+right)/2;",
"mid",
"(left+right)/2",
"(left+right)",
"left",
"right",
"2",
"if(pos<=mid) {\n\t\t\t\tupdate(2*index+1,left,mid,pos,val);\n\t\t\t}\n\t\t\telse update(2*index+2,mid+1,right,pos,val);",
"pos<=mid",
"pos",
"mid",
"{\n\t\t\t\tupdate(2*index+1,left,mid,pos,val);\n\t\t\t}",
"update(2*index+1,left,mid,pos,val)",
"update",
"2*index+1",
"2*index",
"2",
"index",
"1",
"left",
"mid",
"pos",
"val",
"update(2*index+2,mid+1,right,pos,val)",
"update",
"2*index+2",
"2*index",
"2",
"index",
"2",
"mid+1",
"mid",
"1",
"right",
"pos",
"val",
"tree[index]=Math.max(tree[2*index+1],tree[2*index+2])",
"tree[index]",
"tree",
"index",
"Math.max(tree[2*index+1],tree[2*index+2])",
"Math.max",
"Math",
"tree[2*index+1]",
"tree",
"2*index+1",
"2*index",
"2",
"index",
"1",
"tree[2*index+2]",
"tree",
"2*index+2",
"2*index",
"2",
"index",
"2",
"int index",
"index",
"int left",
"left",
"int right",
"right",
"int pos",
"pos",
"int val",
"val",
"class Reader {\n static BufferedReader reader;\n static StringTokenizer tokenizer;\n /** call this method to initialize reader for InputStream */\n static void init() throws IOException {\n reader = new BufferedReader(\n new FileReader(\"C:\\\\Users\\\\samee\\\\Desktop\\\\GRE prep\\\\confusion.txt\"));\n tokenizer = new StringTokenizer(\"\");\n }\n static void init(InputStream input) {\n reader = new BufferedReader(\n new InputStreamReader(input) );\n tokenizer = new StringTokenizer(\"\");\n }\n /** get next word */\n static String nextLine() throws IOException{\n return reader.readLine();\n }\n static String next() throws IOException {\n while ( ! tokenizer.hasMoreTokens() ) {\n //TODO add check for eof if necessary\n tokenizer = new StringTokenizer(\n reader.readLine() );\n }\n return tokenizer.nextToken();\n }\n static int nextInt() throws IOException {\n return Integer.parseInt( next() );\n }\n static long nextLong() throws IOException {\n return Long.parseLong( next() );\n }\n static double nextDouble() throws IOException {\n return Double.parseDouble( next() );\n }\n}",
"Reader",
"static BufferedReader reader;",
"reader",
"static StringTokenizer tokenizer;",
"tokenizer",
"/** call this method to initialize reader for InputStream */\n static void init() throws IOException {\n reader = new BufferedReader(\n new FileReader(\"C:\\\\Users\\\\samee\\\\Desktop\\\\GRE prep\\\\confusion.txt\"));\n tokenizer = new StringTokenizer(\"\");\n }",
"init",
"{\n reader = new BufferedReader(\n new FileReader(\"C:\\\\Users\\\\samee\\\\Desktop\\\\GRE prep\\\\confusion.txt\"));\n tokenizer = new StringTokenizer(\"\");\n }",
"reader = new BufferedReader(\n new FileReader(\"C:\\\\Users\\\\samee\\\\Desktop\\\\GRE prep\\\\confusion.txt\"))",
"reader",
"new BufferedReader(\n new FileReader(\"C:\\\\Users\\\\samee\\\\Desktop\\\\GRE prep\\\\confusion.txt\"))",
"tokenizer = new StringTokenizer(\"\")",
"tokenizer",
"new StringTokenizer(\"\")",
"static void init(InputStream input) {\n reader = new BufferedReader(\n new InputStreamReader(input) );\n tokenizer = new StringTokenizer(\"\");\n }",
"init",
"{\n reader = new BufferedReader(\n new InputStreamReader(input) );\n tokenizer = new StringTokenizer(\"\");\n }",
"reader = new BufferedReader(\n new InputStreamReader(input) )",
"reader",
"new BufferedReader(\n new InputStreamReader(input) )",
"tokenizer = new StringTokenizer(\"\")",
"tokenizer",
"new StringTokenizer(\"\")",
"InputStream input",
"input",
"/** get next word */\n static String nextLine() throws IOException{\n return reader.readLine();\n }",
"nextLine",
"{\n return reader.readLine();\n }",
"return reader.readLine();",
"reader.readLine()",
"reader.readLine",
"reader",
"static String next() throws IOException {\n while ( ! tokenizer.hasMoreTokens() ) {\n //TODO add check for eof if necessary\n tokenizer = new StringTokenizer(\n reader.readLine() );\n }\n return tokenizer.nextToken();\n }",
"next",
"{\n while ( ! tokenizer.hasMoreTokens() ) {\n //TODO add check for eof if necessary\n tokenizer = new StringTokenizer(\n reader.readLine() );\n }\n return tokenizer.nextToken();\n }",
"while ( ! tokenizer.hasMoreTokens() ) {\n //TODO add check for eof if necessary\n tokenizer = new StringTokenizer(\n reader.readLine() );\n }",
"! tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n //TODO add check for eof if necessary\n tokenizer = new StringTokenizer(\n reader.readLine() );\n }",
"tokenizer = new StringTokenizer(\n reader.readLine() )",
"tokenizer",
"new StringTokenizer(\n reader.readLine() )",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"static int nextInt() throws IOException {\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",
"static long nextLong() throws IOException {\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",
"static double nextDouble() throws IOException {\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",
"public class Main {\n\t\n\tstatic long mod= (long) 1e9+7;\n\t\n\t\t\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tReader.init(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tlong a=Reader.nextInt();\n\t\tout.println(a+a*a+a*a*a);\n\t\t\n\t\t\n\t\tout.flush();\n\t\t\n\t}\n\n}",
"public class Main {\n\t\n\tstatic long mod= (long) 1e9+7;\n\t\n\t\t\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tReader.init(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tlong a=Reader.nextInt();\n\t\tout.println(a+a*a+a*a*a);\n\t\t\n\t\t\n\t\tout.flush();\n\t\t\n\t}\n\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main {
static long mod= (long) 1e9+7;
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
Reader.init(System.in);
PrintWriter out=new PrintWriter(System.out);
long a=Reader.nextInt();
out.println(a+a*a+a*a*a);
out.flush();
}
}
class Seg{
int[] tree,arr;
Seg(int n,int[] a){
tree=new int[4*n];arr=a;
}
void build(int index, int left, int right) {
if(left==right) tree[index]=arr[left];
else {
int mid=(left+right)/2;
build(2*index+1,left,mid);
build(2*index+2,mid+1,right);
tree[index]=Math.max(tree[2*index+1],tree[2*index+2]);
}
}
int query(int index, int ql, int qr, int left, int right) {
if(ql<=left && right<=qr) return tree[index];
else if(ql > right || qr<left) return 0;
else {
int mid=(left+right)/2;
return Math.max(query(2*index+1,left,mid,ql,qr), query(2*index+2,mid+1,right,ql,qr));
}
}
void update(int index, int left, int right, int pos, int val) {
if(left==right) {
tree[index]=val;
}
else {
int mid=(left+right)/2;
if(pos<=mid) {
update(2*index+1,left,mid,pos,val);
}
else update(2*index+2,mid+1,right,pos,val);
tree[index]=Math.max(tree[2*index+1],tree[2*index+2]);
}
}
}
class Reader {
static BufferedReader reader;
static StringTokenizer tokenizer;
/** call this method to initialize reader for InputStream */
static void init() throws IOException {
reader = new BufferedReader(
new FileReader("C:\\Users\\samee\\Desktop\\GRE prep\\confusion.txt"));
tokenizer = new StringTokenizer("");
}
static void init(InputStream input) {
reader = new BufferedReader(
new InputStreamReader(input) );
tokenizer = new StringTokenizer("");
}
/** get next word */
static String nextLine() throws IOException{
return reader.readLine();
}
static String next() throws IOException {
while ( ! tokenizer.hasMoreTokens() ) {
//TODO add check for eof if necessary
tokenizer = new StringTokenizer(
reader.readLine() );
}
return tokenizer.nextToken();
}
static int nextInt() throws IOException {
return Integer.parseInt( next() );
}
static long nextLong() throws IOException {
return Long.parseLong( next() );
}
static double nextDouble() throws IOException {
return Double.parseDouble( next() );
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
39,
8
],
[
39,
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
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
26,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
32,
32
],
[
32,
33
],
[
32,
34
],
[
32,
35
],
[
9,
36
],
[
36,
37
],
[
0,
38
],
[
38,
39
],
[
38,
40
]
]
| [
"\nimport java.util.Arrays;\nimport 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\tSystem.out.println(n + n * n + n * n * n);\n\t}\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"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\tSystem.out.println(n + n * n + n * n * 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\tSystem.out.println(n + n * n + n * n * n);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tSystem.out.println(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",
"System.out.println(n + n * n + n * n * n)",
"System.out.println",
"System.out",
"System",
"System.out",
"n + n * n + n * n * n",
"n + n * n + n * n * n",
"n",
"n * n",
"n",
"n",
"n * n * n",
"n * n * n",
"n",
"n",
"n",
"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\tSystem.out.println(n + n * n + n * 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 = sc.nextInt();\n\t\tSystem.out.println(n + n * n + n * n * n);\n\t}\n}",
"Main"
]
|
import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
System.out.println(n + n * n + n * n * n);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
13,
2,
2,
17,
13,
2,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
36,
5
],
[
36,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
10,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
6,
33
],
[
33,
34
],
[
0,
35
],
[
35,
36
],
[
35,
37
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry (final Scanner sc = new Scanner(System.in);) {\n\t\t\tfinal int a = sc.nextInt();\n\t\t\tSystem.out.println(a*(1+a + a*a));\n\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry (final Scanner sc = new Scanner(System.in);) {\n\t\t\tfinal int a = sc.nextInt();\n\t\t\tSystem.out.println(a*(1+a + a*a));\n\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\ttry (final Scanner sc = new Scanner(System.in);) {\n\t\t\tfinal int a = sc.nextInt();\n\t\t\tSystem.out.println(a*(1+a + a*a));\n\n\t\t}\n\t}",
"main",
"{\n\t\ttry (final Scanner sc = new Scanner(System.in);) {\n\t\t\tfinal int a = sc.nextInt();\n\t\t\tSystem.out.println(a*(1+a + a*a));\n\n\t\t}\n\t}",
"try (final Scanner sc = new Scanner(System.in);) {\n\t\t\tfinal int a = sc.nextInt();\n\t\t\tSystem.out.println(a*(1+a + a*a));\n\n\t\t}",
"{\n\t\t\tfinal int a = sc.nextInt();\n\t\t\tSystem.out.println(a*(1+a + a*a));\n\n\t\t}",
"final Scanner sc = new Scanner(System.in)",
"final Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"final int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"System.out.println(a*(1+a + a*a))",
"System.out.println",
"System.out",
"System",
"System.out",
"a*(1+a + a*a)",
"a",
"(1+a + a*a)",
"1+a + a*a",
"1",
"a",
"a*a",
"a",
"a",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry (final Scanner sc = new Scanner(System.in);) {\n\t\t\tfinal int a = sc.nextInt();\n\t\t\tSystem.out.println(a*(1+a + a*a));\n\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry (final Scanner sc = new Scanner(System.in);) {\n\t\t\tfinal int a = sc.nextInt();\n\t\t\tSystem.out.println(a*(1+a + a*a));\n\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (final Scanner sc = new Scanner(System.in);) {
final int a = sc.nextInt();
System.out.println(a*(1+a + a*a));
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
2,
17,
17,
41,
13,
41,
13,
41,
13,
17,
12,
13,
30,
41,
13,
4,
13,
4,
13,
2,
13,
2,
2,
13,
13,
2,
17,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
41,
13,
17,
41,
13,
4,
18,
13,
4,
13,
4,
18,
13,
14,
40,
13,
4,
18,
18,
13,
13,
2,
2,
4,
18,
13,
13,
17,
4,
18,
18,
13,
13,
23,
13,
12,
13,
30,
4,
13,
13,
13,
4,
18,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
18,
13,
13,
41,
13,
2,
13,
4,
18,
13,
2,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
4,
18,
18,
13,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
8,
2,
13,
17,
13,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
8,
2,
13,
17,
13,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
8,
2,
13,
17,
17,
2,
17,
4,
13,
2,
13,
2,
13,
17,
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,
4,
13,
29,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
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,
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
],
[
433,
11
],
[
433,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
14,
16
],
[
433,
17
],
[
17,
18
],
[
433,
19
],
[
19,
20
],
[
433,
21
],
[
21,
22
],
[
21,
23
],
[
433,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
39,
41
],
[
433,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
48,
50
],
[
44,
51
],
[
51,
52
],
[
51,
53
],
[
44,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
44,
59
],
[
59,
60
],
[
44,
61
],
[
61,
62
],
[
62,
63
],
[
44,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
73,
77
],
[
72,
78
],
[
44,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
42,
84
],
[
84,
85
],
[
433,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
89,
92
],
[
88,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
86,
97
],
[
97,
98
],
[
86,
99
],
[
99,
100
],
[
433,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
112,
113
],
[
112,
114
],
[
107,
115
],
[
115,
116
],
[
116,
117
],
[
107,
118
],
[
119,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
122,
124
],
[
119,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
129,
132
],
[
132,
133
],
[
132,
134
],
[
119,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
135,
139
],
[
139,
140
],
[
139,
141
],
[
119,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
142,
146
],
[
101,
147
],
[
147,
148
],
[
101,
149
],
[
149,
150
],
[
433,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
154,
157
],
[
151,
158
],
[
158,
159
],
[
433,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
163,
166
],
[
160,
167
],
[
167,
168
],
[
433,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
172,
175
],
[
171,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
169,
181
],
[
181,
182
],
[
433,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
433,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
433,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
433,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
433,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
433,
218
],
[
218,
219
],
[
218,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
223,
224
],
[
223,
225
],
[
222,
226
],
[
222,
227
],
[
227,
228
],
[
227,
229
],
[
227,
230
],
[
230,
231
],
[
230,
232
],
[
218,
233
],
[
233,
234
],
[
218,
235
],
[
235,
236
],
[
433,
237
],
[
237,
238
],
[
237,
239
],
[
239,
240
],
[
240,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
241,
245
],
[
241,
246
],
[
246,
247
],
[
246,
248
],
[
246,
249
],
[
249,
250
],
[
249,
251
],
[
237,
252
],
[
252,
253
],
[
237,
254
],
[
254,
255
],
[
433,
256
],
[
256,
257
],
[
256,
258
],
[
258,
259
],
[
259,
260
],
[
260,
261
],
[
261,
262
],
[
261,
263
],
[
260,
264
],
[
260,
265
],
[
265,
266
],
[
265,
267
],
[
267,
268
],
[
267,
269
],
[
269,
270
],
[
269,
271
],
[
271,
272
],
[
271,
273
],
[
256,
274
],
[
274,
275
],
[
433,
276
],
[
276,
277
],
[
276,
278
],
[
278,
279
],
[
279,
280
],
[
279,
281
],
[
278,
283
],
[
283,
284
],
[
284,
285
],
[
285,
286
],
[
285,
287
],
[
283,
288
],
[
288,
289
],
[
288,
290
],
[
283,
291
],
[
291,
292
],
[
292,
293
],
[
283,
294
],
[
295,
295
],
[
295,
296
],
[
296,
297
],
[
297,
298
],
[
297,
299
],
[
296,
300
],
[
300,
301
],
[
278,
302
],
[
302,
303
],
[
276,
304
],
[
304,
305
],
[
433,
306
],
[
306,
307
],
[
306,
308
],
[
308,
309
],
[
309,
310
],
[
309,
311
],
[
308,
313
],
[
313,
314
],
[
314,
315
],
[
315,
316
],
[
315,
317
],
[
313,
318
],
[
318,
319
],
[
318,
320
],
[
313,
321
],
[
321,
322
],
[
322,
323
],
[
313,
324
],
[
325,
325
],
[
325,
326
],
[
326,
327
],
[
327,
328
],
[
327,
329
],
[
326,
330
],
[
330,
331
],
[
308,
332
],
[
332,
333
],
[
306,
334
],
[
334,
335
],
[
433,
336
],
[
336,
337
],
[
336,
338
],
[
338,
339
],
[
336,
340
],
[
340,
341
],
[
336,
342
],
[
342,
343
],
[
342,
344
],
[
344,
345
],
[
345,
346
],
[
345,
347
],
[
336,
348
],
[
348,
349
],
[
348,
350
],
[
350,
351
],
[
351,
352
],
[
351,
353
],
[
348,
354
],
[
354,
355
],
[
336,
356
],
[
356,
357
],
[
356,
358
],
[
358,
359
],
[
359,
360
],
[
360,
361
],
[
361,
362
],
[
361,
363
],
[
360,
364
],
[
364,
365
],
[
365,
366
],
[
366,
367
],
[
359,
368
],
[
368,
369
],
[
369,
370
],
[
370,
371
],
[
370,
372
],
[
372,
373
],
[
373,
374
],
[
374,
375
],
[
369,
376
],
[
376,
377
],
[
377,
378
],
[
377,
379
],
[
358,
380
],
[
380,
381
],
[
381,
382
],
[
382,
383
],
[
336,
384
],
[
384,
385
],
[
384,
386
],
[
386,
387
],
[
387,
388
],
[
388,
389
],
[
389,
390
],
[
388,
391
],
[
391,
392
],
[
336,
393
],
[
393,
394
],
[
393,
395
],
[
395,
396
],
[
396,
397
],
[
397,
398
],
[
398,
399
],
[
397,
400
],
[
400,
401
],
[
336,
402
],
[
402,
403
],
[
402,
404
],
[
404,
405
],
[
405,
406
],
[
406,
407
],
[
407,
408
],
[
406,
409
],
[
409,
410
],
[
336,
411
],
[
411,
412
],
[
411,
413
],
[
413,
414
],
[
414,
415
],
[
414,
416
],
[
413,
417
],
[
417,
418
],
[
418,
419
],
[
418,
420
],
[
420,
421
],
[
421,
422
],
[
422,
423
],
[
417,
424
],
[
424,
425
],
[
425,
426
],
[
425,
427
],
[
427,
428
],
[
428,
429
],
[
413,
430
],
[
430,
431
],
[
0,
432
],
[
432,
433
],
[
432,
434
]
]
| [
"\nimport java.util.*;\nimport java.io.*;\nimport java.math.*;\npublic class Main\n{ \n static int MOD = (int)(1e9 + 7);\n public static void process()throws IOException\n {\n int n=ni();\n pn(n+(n*n)*(1+n));\n }\n static AnotherReader sc;\n static PrintWriter out;\n public static void main(String[]args)throws IOException\n {\n out = new PrintWriter(System.out);\n sc=new AnotherReader();\n boolean oj = true;\n \n //oj = System.getProperty(\"ONLINE_JUDGE\") != null;\n //if(!oj) sc=new AnotherReader(100);\n \n long s = System.currentTimeMillis();\n //int T=ni(); while(T-->0)\n process();\n out.flush();\n if(!oj)\n System.out.println(System.currentTimeMillis()-s+\"ms\");\n System.out.close(); \n }\n static void sort(long arr[],int n)\n {\n shuffle(arr,n);\n Arrays.sort(arr);\n }\n static void shuffle(long arr[],int n)\n {\n Random r=new Random();\n for(int i=0;i<n;i++)\n {\n long temp=arr[i];\n int pos=i+r.nextInt(n-i);\n arr[i]=arr[pos];\n arr[pos]=temp;\n }\n }\n \n static void pn(Object o){out.println(o);}\n static void p(Object o){out.print(o);}\n static void pni(Object o){out.println(o);System.out.flush();}\n static int ni()throws IOException{return sc.nextInt();}\n static long nl()throws IOException{return sc.nextLong();}\n static double nd()throws IOException{return sc.nextDouble();}\n static String nln()throws IOException{return sc.nextLine();}\n static String nn()throws IOException{return sc.next();}\n static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}\n static int[] iarr(int N)throws IOException{int[]ARR=new int[N];for(int i=0;i<N;i++){ARR[i]=ni();}return ARR;}\n static long[] larr(int N)throws IOException{long[]ARR=new long[N];for(int i=0;i<N;i++){ARR[i]=nl();}return ARR;}\n static boolean multipleTC=false;\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////\n static class AnotherReader{BufferedReader br; StringTokenizer st;\n AnotherReader()throws FileNotFoundException{\n br=new BufferedReader(new InputStreamReader(System.in));}\n AnotherReader(int a)throws FileNotFoundException{\n br = new BufferedReader(new FileReader(\"input.txt\"));}\n String next()throws IOException{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); } int nextInt() throws IOException{\n return Integer.parseInt(next());}\n long nextLong() throws IOException\n {return Long.parseLong(next());}\n double nextDouble()throws IOException { return Double.parseDouble(next()); }\n String nextLine() throws IOException{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}}\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////////\n}\n \n ",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.math.*;",
"math.*",
"java",
"public class Main\n{ \n static int MOD = (int)(1e9 + 7);\n public static void process()throws IOException\n {\n int n=ni();\n pn(n+(n*n)*(1+n));\n }\n static AnotherReader sc;\n static PrintWriter out;\n public static void main(String[]args)throws IOException\n {\n out = new PrintWriter(System.out);\n sc=new AnotherReader();\n boolean oj = true;\n \n //oj = System.getProperty(\"ONLINE_JUDGE\") != null;\n //if(!oj) sc=new AnotherReader(100);\n \n long s = System.currentTimeMillis();\n //int T=ni(); while(T-->0)\n process();\n out.flush();\n if(!oj)\n System.out.println(System.currentTimeMillis()-s+\"ms\");\n System.out.close(); \n }\n static void sort(long arr[],int n)\n {\n shuffle(arr,n);\n Arrays.sort(arr);\n }\n static void shuffle(long arr[],int n)\n {\n Random r=new Random();\n for(int i=0;i<n;i++)\n {\n long temp=arr[i];\n int pos=i+r.nextInt(n-i);\n arr[i]=arr[pos];\n arr[pos]=temp;\n }\n }\n \n static void pn(Object o){out.println(o);}\n static void p(Object o){out.print(o);}\n static void pni(Object o){out.println(o);System.out.flush();}\n static int ni()throws IOException{return sc.nextInt();}\n static long nl()throws IOException{return sc.nextLong();}\n static double nd()throws IOException{return sc.nextDouble();}\n static String nln()throws IOException{return sc.nextLine();}\n static String nn()throws IOException{return sc.next();}\n static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}\n static int[] iarr(int N)throws IOException{int[]ARR=new int[N];for(int i=0;i<N;i++){ARR[i]=ni();}return ARR;}\n static long[] larr(int N)throws IOException{long[]ARR=new long[N];for(int i=0;i<N;i++){ARR[i]=nl();}return ARR;}\n static boolean multipleTC=false;\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////\n static class AnotherReader{BufferedReader br; StringTokenizer st;\n AnotherReader()throws FileNotFoundException{\n br=new BufferedReader(new InputStreamReader(System.in));}\n AnotherReader(int a)throws FileNotFoundException{\n br = new BufferedReader(new FileReader(\"input.txt\"));}\n String next()throws IOException{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); } int nextInt() throws IOException{\n return Integer.parseInt(next());}\n long nextLong() throws IOException\n {return Long.parseLong(next());}\n double nextDouble()throws IOException { return Double.parseDouble(next()); }\n String nextLine() throws IOException{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}}\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////////\n}",
"Main",
"static int MOD = (int)(1e9 + 7);",
"MOD",
"(int)(1e9 + 7)",
"1e9",
"7",
"static AnotherReader sc;",
"sc",
"static PrintWriter out;",
"out",
"static boolean multipleTC=false;",
"multipleTC",
"false",
"public static void process()throws IOException\n {\n int n=ni();\n pn(n+(n*n)*(1+n));\n }",
"process",
"{\n int n=ni();\n pn(n+(n*n)*(1+n));\n }",
"int n=ni();",
"n",
"ni()",
"ni",
"pn(n+(n*n)*(1+n))",
"pn",
"n+(n*n)*(1+n)",
"n",
"(n*n)*(1+n)",
"(n*n)",
"n",
"n",
"(1+n)",
"1",
"n",
"public static void main(String[]args)throws IOException\n {\n out = new PrintWriter(System.out);\n sc=new AnotherReader();\n boolean oj = true;\n \n //oj = System.getProperty(\"ONLINE_JUDGE\") != null;\n //if(!oj) sc=new AnotherReader(100);\n \n long s = System.currentTimeMillis();\n //int T=ni(); while(T-->0)\n process();\n out.flush();\n if(!oj)\n System.out.println(System.currentTimeMillis()-s+\"ms\");\n System.out.close(); \n }",
"main",
"{\n out = new PrintWriter(System.out);\n sc=new AnotherReader();\n boolean oj = true;\n \n //oj = System.getProperty(\"ONLINE_JUDGE\") != null;\n //if(!oj) sc=new AnotherReader(100);\n \n long s = System.currentTimeMillis();\n //int T=ni(); while(T-->0)\n process();\n out.flush();\n if(!oj)\n System.out.println(System.currentTimeMillis()-s+\"ms\");\n System.out.close(); \n }",
"out = new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"sc=new AnotherReader()",
"sc",
"new AnotherReader()",
"boolean oj = true;",
"oj",
"true",
"long s = System.currentTimeMillis();",
"s",
"System.currentTimeMillis()",
"System.currentTimeMillis",
"System",
"process()",
"process",
"out.flush()",
"out.flush",
"out",
"if(!oj)\n System.out.println(System.currentTimeMillis()-s+\"ms\");",
"!oj",
"oj",
"System.out.println(System.currentTimeMillis()-s+\"ms\")",
"System.out.println",
"System.out",
"System",
"System.out",
"System.currentTimeMillis()-s+\"ms\"",
"System.currentTimeMillis()-s",
"System.currentTimeMillis()",
"System.currentTimeMillis",
"System",
"s",
"\"ms\"",
"System.out.close()",
"System.out.close",
"System.out",
"System",
"System.out",
"String[]args",
"args",
"static void sort(long arr[],int n)\n {\n shuffle(arr,n);\n Arrays.sort(arr);\n }",
"sort",
"{\n shuffle(arr,n);\n Arrays.sort(arr);\n }",
"shuffle(arr,n)",
"shuffle",
"arr",
"n",
"Arrays.sort(arr)",
"Arrays.sort",
"Arrays",
"arr",
"long arr[]",
"arr",
"int n",
"n",
"static void shuffle(long arr[],int n)\n {\n Random r=new Random();\n for(int i=0;i<n;i++)\n {\n long temp=arr[i];\n int pos=i+r.nextInt(n-i);\n arr[i]=arr[pos];\n arr[pos]=temp;\n }\n }",
"shuffle",
"{\n Random r=new Random();\n for(int i=0;i<n;i++)\n {\n long temp=arr[i];\n int pos=i+r.nextInt(n-i);\n arr[i]=arr[pos];\n arr[pos]=temp;\n }\n }",
"Random r=new Random();",
"r",
"new Random()",
"for(int i=0;i<n;i++)\n {\n long temp=arr[i];\n int pos=i+r.nextInt(n-i);\n arr[i]=arr[pos];\n arr[pos]=temp;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n long temp=arr[i];\n int pos=i+r.nextInt(n-i);\n arr[i]=arr[pos];\n arr[pos]=temp;\n }",
"{\n long temp=arr[i];\n int pos=i+r.nextInt(n-i);\n arr[i]=arr[pos];\n arr[pos]=temp;\n }",
"long temp=arr[i];",
"temp",
"arr[i]",
"arr",
"i",
"int pos=i+r.nextInt(n-i);",
"pos",
"i+r.nextInt(n-i)",
"i",
"r.nextInt(n-i)",
"r.nextInt",
"r",
"n-i",
"n",
"i",
"arr[i]=arr[pos]",
"arr[i]",
"arr",
"i",
"arr[pos]",
"arr",
"pos",
"arr[pos]=temp",
"arr[pos]",
"arr",
"pos",
"temp",
"long arr[]",
"arr",
"int n",
"n",
"static void pn(Object o){out.println(o);}",
"pn",
"{out.println(o);}",
"out.println(o)",
"out.println",
"out",
"o",
"Object o",
"o",
"static void p(Object o){out.print(o);}",
"p",
"{out.print(o);}",
"out.print(o)",
"out.print",
"out",
"o",
"Object o",
"o",
"static void pni(Object o){out.println(o);System.out.flush();}",
"pni",
"{out.println(o);System.out.flush();}",
"out.println(o)",
"out.println",
"out",
"o",
"System.out.flush()",
"System.out.flush",
"System.out",
"System",
"System.out",
"Object o",
"o",
"static int ni()throws IOException{return sc.nextInt();}",
"ni",
"{return sc.nextInt();}",
"return sc.nextInt();",
"sc.nextInt()",
"sc.nextInt",
"sc",
"static long nl()throws IOException{return sc.nextLong();}",
"nl",
"{return sc.nextLong();}",
"return sc.nextLong();",
"sc.nextLong()",
"sc.nextLong",
"sc",
"static double nd()throws IOException{return sc.nextDouble();}",
"nd",
"{return sc.nextDouble();}",
"return sc.nextDouble();",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"static String nln()throws IOException{return sc.nextLine();}",
"nln",
"{return sc.nextLine();}",
"return sc.nextLine();",
"sc.nextLine()",
"sc.nextLine",
"sc",
"static String nn()throws IOException{return sc.next();}",
"nn",
"{return sc.next();}",
"return sc.next();",
"sc.next()",
"sc.next",
"sc",
"static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}",
"gcd",
"{return (b==0)?a:gcd(b,a%b);}",
"return (b==0)?a:gcd(b,a%b);",
"(b==0)?a:gcd(b,a%b)",
"(b==0)",
"b",
"0",
"a",
"gcd(b,a%b)",
"gcd",
"b",
"a%b",
"a",
"b",
"long a",
"a",
"long b",
"b",
"static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}",
"gcd",
"{return (b==0)?a:gcd(b,a%b);}",
"return (b==0)?a:gcd(b,a%b);",
"(b==0)?a:gcd(b,a%b)",
"(b==0)",
"b",
"0",
"a",
"gcd(b,a%b)",
"gcd",
"b",
"a%b",
"a",
"b",
"int a",
"a",
"int b",
"b",
"static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}",
"bit",
"{return (n==0)?0:(1+bit(n&(n-1)));}",
"return (n==0)?0:(1+bit(n&(n-1)));",
"(n==0)?0:(1+bit(n&(n-1)))",
"(n==0)",
"n",
"0",
"0",
"(1+bit(n&(n-1)))",
"1",
"bit(n&(n-1))",
"bit",
"n&(n-1)",
"n",
"(n-1)",
"n",
"1",
"long n",
"n",
"static int[] iarr(int N)throws IOException{int[]ARR=new int[N];for(int i=0;i<N;i++){ARR[i]=ni();}return ARR;}",
"iarr",
"{int[]ARR=new int[N];for(int i=0;i<N;i++){ARR[i]=ni();}return ARR;}",
"int[]ARR=new int[N];",
"ARR",
"new int[N]",
"N",
"for(int i=0;i<N;i++){ARR[i]=ni();}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{ARR[i]=ni();}",
"{ARR[i]=ni();}",
"ARR[i]=ni()",
"ARR[i]",
"ARR",
"i",
"ni()",
"ni",
"return ARR;",
"ARR",
"int N",
"N",
"static long[] larr(int N)throws IOException{long[]ARR=new long[N];for(int i=0;i<N;i++){ARR[i]=nl();}return ARR;}",
"larr",
"{long[]ARR=new long[N];for(int i=0;i<N;i++){ARR[i]=nl();}return ARR;}",
"long[]ARR=new long[N];",
"ARR",
"new long[N]",
"N",
"for(int i=0;i<N;i++){ARR[i]=nl();}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{ARR[i]=nl();}",
"{ARR[i]=nl();}",
"ARR[i]=nl()",
"ARR[i]",
"ARR",
"i",
"nl()",
"nl",
"return ARR;",
"ARR",
"int N",
"N",
" static class AnotherReader{BufferedReader br; StringTokenizer st;\n AnotherReader()throws FileNotFoundException{\n br=new BufferedReader(new InputStreamReader(System.in));}\n AnotherReader(int a)throws FileNotFoundException{\n br = new BufferedReader(new FileReader(\"input.txt\"));}\n String next()throws IOException{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); } int nextInt() throws IOException{\n return Integer.parseInt(next());}\n long nextLong() throws IOException\n {return Long.parseLong(next());}\n double nextDouble()throws IOException { return Double.parseDouble(next()); }\n String nextLine() throws IOException{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}}",
"AnotherReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"AnotherReader()throws FileNotFoundException{\n br=new BufferedReader(new InputStreamReader(System.in));}",
"AnotherReader",
"{\n br=new BufferedReader(new InputStreamReader(System.in));}",
"br=new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"AnotherReader(int a)throws FileNotFoundException{\n br = new BufferedReader(new FileReader(\"input.txt\"));}",
"AnotherReader",
"{\n br = new BufferedReader(new FileReader(\"input.txt\"));}",
"br = new BufferedReader(new FileReader(\"input.txt\"))",
"br",
"new BufferedReader(new FileReader(\"input.txt\"))",
"int a",
"a",
"String next()throws IOException{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); }",
"next",
"{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); }",
"while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}",
"try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }",
"catch (IOException e){ e.printStackTrace(); }",
"IOException e",
"{ e.printStackTrace(); }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());}",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() throws IOException{\n return Integer.parseInt(next());}",
"nextInt",
"{\n return Integer.parseInt(next());}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() throws IOException\n {return Long.parseLong(next());}",
"nextLong",
"{return Long.parseLong(next());}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble()throws IOException { return Double.parseDouble(next()); }",
"nextDouble",
"{ return Double.parseDouble(next()); }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() throws IOException{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}",
"nextLine",
"{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}",
"String str = \"\";",
"str",
"\"\"",
"try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();}",
"catch (IOException e){\n e.printStackTrace();}",
"IOException e",
"{\n e.printStackTrace();}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n str = br.readLine();}",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main\n{ \n static int MOD = (int)(1e9 + 7);\n public static void process()throws IOException\n {\n int n=ni();\n pn(n+(n*n)*(1+n));\n }\n static AnotherReader sc;\n static PrintWriter out;\n public static void main(String[]args)throws IOException\n {\n out = new PrintWriter(System.out);\n sc=new AnotherReader();\n boolean oj = true;\n \n //oj = System.getProperty(\"ONLINE_JUDGE\") != null;\n //if(!oj) sc=new AnotherReader(100);\n \n long s = System.currentTimeMillis();\n //int T=ni(); while(T-->0)\n process();\n out.flush();\n if(!oj)\n System.out.println(System.currentTimeMillis()-s+\"ms\");\n System.out.close(); \n }\n static void sort(long arr[],int n)\n {\n shuffle(arr,n);\n Arrays.sort(arr);\n }\n static void shuffle(long arr[],int n)\n {\n Random r=new Random();\n for(int i=0;i<n;i++)\n {\n long temp=arr[i];\n int pos=i+r.nextInt(n-i);\n arr[i]=arr[pos];\n arr[pos]=temp;\n }\n }\n \n static void pn(Object o){out.println(o);}\n static void p(Object o){out.print(o);}\n static void pni(Object o){out.println(o);System.out.flush();}\n static int ni()throws IOException{return sc.nextInt();}\n static long nl()throws IOException{return sc.nextLong();}\n static double nd()throws IOException{return sc.nextDouble();}\n static String nln()throws IOException{return sc.nextLine();}\n static String nn()throws IOException{return sc.next();}\n static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}\n static int[] iarr(int N)throws IOException{int[]ARR=new int[N];for(int i=0;i<N;i++){ARR[i]=ni();}return ARR;}\n static long[] larr(int N)throws IOException{long[]ARR=new long[N];for(int i=0;i<N;i++){ARR[i]=nl();}return ARR;}\n static boolean multipleTC=false;\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////\n static class AnotherReader{BufferedReader br; StringTokenizer st;\n AnotherReader()throws FileNotFoundException{\n br=new BufferedReader(new InputStreamReader(System.in));}\n AnotherReader(int a)throws FileNotFoundException{\n br = new BufferedReader(new FileReader(\"input.txt\"));}\n String next()throws IOException{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); } int nextInt() throws IOException{\n return Integer.parseInt(next());}\n long nextLong() throws IOException\n {return Long.parseLong(next());}\n double nextDouble()throws IOException { return Double.parseDouble(next()); }\n String nextLine() throws IOException{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}}\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////////\n}",
"public class Main\n{ \n static int MOD = (int)(1e9 + 7);\n public static void process()throws IOException\n {\n int n=ni();\n pn(n+(n*n)*(1+n));\n }\n static AnotherReader sc;\n static PrintWriter out;\n public static void main(String[]args)throws IOException\n {\n out = new PrintWriter(System.out);\n sc=new AnotherReader();\n boolean oj = true;\n \n //oj = System.getProperty(\"ONLINE_JUDGE\") != null;\n //if(!oj) sc=new AnotherReader(100);\n \n long s = System.currentTimeMillis();\n //int T=ni(); while(T-->0)\n process();\n out.flush();\n if(!oj)\n System.out.println(System.currentTimeMillis()-s+\"ms\");\n System.out.close(); \n }\n static void sort(long arr[],int n)\n {\n shuffle(arr,n);\n Arrays.sort(arr);\n }\n static void shuffle(long arr[],int n)\n {\n Random r=new Random();\n for(int i=0;i<n;i++)\n {\n long temp=arr[i];\n int pos=i+r.nextInt(n-i);\n arr[i]=arr[pos];\n arr[pos]=temp;\n }\n }\n \n static void pn(Object o){out.println(o);}\n static void p(Object o){out.print(o);}\n static void pni(Object o){out.println(o);System.out.flush();}\n static int ni()throws IOException{return sc.nextInt();}\n static long nl()throws IOException{return sc.nextLong();}\n static double nd()throws IOException{return sc.nextDouble();}\n static String nln()throws IOException{return sc.nextLine();}\n static String nn()throws IOException{return sc.next();}\n static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}\n static int[] iarr(int N)throws IOException{int[]ARR=new int[N];for(int i=0;i<N;i++){ARR[i]=ni();}return ARR;}\n static long[] larr(int N)throws IOException{long[]ARR=new long[N];for(int i=0;i<N;i++){ARR[i]=nl();}return ARR;}\n static boolean multipleTC=false;\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////\n static class AnotherReader{BufferedReader br; StringTokenizer st;\n AnotherReader()throws FileNotFoundException{\n br=new BufferedReader(new InputStreamReader(System.in));}\n AnotherReader(int a)throws FileNotFoundException{\n br = new BufferedReader(new FileReader(\"input.txt\"));}\n String next()throws IOException{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); } int nextInt() throws IOException{\n return Integer.parseInt(next());}\n long nextLong() throws IOException\n {return Long.parseLong(next());}\n double nextDouble()throws IOException { return Double.parseDouble(next()); }\n String nextLine() throws IOException{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}}\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////////\n}",
"Main"
]
|
import java.util.*;
import java.io.*;
import java.math.*;
public class Main
{
static int MOD = (int)(1e9 + 7);
public static void process()throws IOException
{
int n=ni();
pn(n+(n*n)*(1+n));
}
static AnotherReader sc;
static PrintWriter out;
public static void main(String[]args)throws IOException
{
out = new PrintWriter(System.out);
sc=new AnotherReader();
boolean oj = true;
//oj = System.getProperty("ONLINE_JUDGE") != null;
//if(!oj) sc=new AnotherReader(100);
long s = System.currentTimeMillis();
//int T=ni(); while(T-->0)
process();
out.flush();
if(!oj)
System.out.println(System.currentTimeMillis()-s+"ms");
System.out.close();
}
static void sort(long arr[],int n)
{
shuffle(arr,n);
Arrays.sort(arr);
}
static void shuffle(long arr[],int n)
{
Random r=new Random();
for(int i=0;i<n;i++)
{
long temp=arr[i];
int pos=i+r.nextInt(n-i);
arr[i]=arr[pos];
arr[pos]=temp;
}
}
static void pn(Object o){out.println(o);}
static void p(Object o){out.print(o);}
static void pni(Object o){out.println(o);System.out.flush();}
static int ni()throws IOException{return sc.nextInt();}
static long nl()throws IOException{return sc.nextLong();}
static double nd()throws IOException{return sc.nextDouble();}
static String nln()throws IOException{return sc.nextLine();}
static String nn()throws IOException{return sc.next();}
static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}
static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}
static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}
static int[] iarr(int N)throws IOException{int[]ARR=new int[N];for(int i=0;i<N;i++){ARR[i]=ni();}return ARR;}
static long[] larr(int N)throws IOException{long[]ARR=new long[N];for(int i=0;i<N;i++){ARR[i]=nl();}return ARR;}
static boolean multipleTC=false;
/////////////////////////////////////////////////////////////////////////////////////////////////////////
static class AnotherReader{BufferedReader br; StringTokenizer st;
AnotherReader()throws FileNotFoundException{
br=new BufferedReader(new InputStreamReader(System.in));}
AnotherReader(int a)throws FileNotFoundException{
br = new BufferedReader(new FileReader("input.txt"));}
String next()throws IOException{
while (st == null || !st.hasMoreElements()) {try{
st = new StringTokenizer(br.readLine());}
catch (IOException e){ e.printStackTrace(); }}
return st.nextToken(); } int nextInt() throws IOException{
return Integer.parseInt(next());}
long nextLong() throws IOException
{return Long.parseLong(next());}
double nextDouble()throws IOException { return Double.parseDouble(next()); }
String nextLine() throws IOException{ 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,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
39,
5
],
[
39,
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
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
26,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
32,
32
],
[
32,
33
],
[
32,
34
],
[
32,
35
],
[
6,
36
],
[
36,
37
],
[
0,
38
],
[
38,
39
],
[
38,
40
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\t\n\t\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner sc= new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tsc.nextLine();\n\t\tSystem.out.println(n+n*n+n*n*n);\n\t\t\n\t\t\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\t\n\t\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner sc= new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tsc.nextLine();\n\t\tSystem.out.println(n+n*n+n*n*n);\n\t\t\n\t\t\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception{\n\t\tScanner sc= new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tsc.nextLine();\n\t\tSystem.out.println(n+n*n+n*n*n);\n\t\t\n\t\t\n\t}",
"main",
"{\n\t\tScanner sc= new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tsc.nextLine();\n\t\tSystem.out.println(n+n*n+n*n*n);\n\t\t\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",
"sc.nextLine()",
"sc.nextLine",
"sc",
"System.out.println(n+n*n+n*n*n)",
"System.out.println",
"System.out",
"System",
"System.out",
"n+n*n+n*n*n",
"n+n*n+n*n*n",
"n",
"n*n",
"n",
"n",
"n*n*n",
"n*n*n",
"n",
"n",
"n",
"String[] args",
"args",
"public class Main {\n\t\n\t\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner sc= new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tsc.nextLine();\n\t\tSystem.out.println(n+n*n+n*n*n);\n\t\t\n\t\t\n\t}\n}",
"public class Main {\n\t\n\t\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner sc= new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tsc.nextLine();\n\t\tSystem.out.println(n+n*n+n*n*n);\n\t\t\n\t\t\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception{
Scanner sc= new Scanner(System.in);
int n = sc.nextInt();
sc.nextLine();
System.out.println(n+n*n+n*n*n);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
12,
13,
30,
41,
13,
41,
13,
41,
13,
20,
41,
13,
4,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
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
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
61,
20
],
[
61,
21
],
[
21,
22
],
[
21,
23
],
[
61,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
26,
41
],
[
41,
42
],
[
42,
43
],
[
26,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
48,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
54,
54
],
[
54,
55
],
[
54,
56
],
[
54,
57
],
[
24,
58
],
[
58,
59
],
[
0,
60
],
[
60,
61
],
[
60,
62
]
]
| [
"import java.util.*;\nimport java.io.PrintWriter;\nimport static java.lang.Integer.*;\nimport static java.lang.Long.*;\nimport static java.lang.Math.*;\nimport static java.lang.System.*;\n\npublic class Main {\n\tpublic static final int MOD = 1000000007;\n\tpublic static void main(String[] args) {\n\t\tint i,j;\n\t\tScanner sc = new Scanner(in);\n\t\tint n = parseInt(sc.next());\n\t\tsc.close();\n\t\tout.println(n+n*n+n*n*n);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import static java.lang.Integer.*;",
"import static java.lang.Integer.*;",
"import static java.lang.Integer.*;",
"import static java.lang.Long.*;",
"import static java.lang.Long.*;",
"import static java.lang.Long.*;",
"import static java.lang.Math.*;",
"import static java.lang.Math.*;",
"import static java.lang.Math.*;",
"import static java.lang.System.*;",
"import static java.lang.System.*;",
"import static java.lang.System.*;",
"public class Main {\n\tpublic static final int MOD = 1000000007;\n\tpublic static void main(String[] args) {\n\t\tint i,j;\n\t\tScanner sc = new Scanner(in);\n\t\tint n = parseInt(sc.next());\n\t\tsc.close();\n\t\tout.println(n+n*n+n*n*n);\n\t}\n}",
"Main",
"public static final int MOD = 1000000007;",
"MOD",
"1000000007",
"public static void main(String[] args) {\n\t\tint i,j;\n\t\tScanner sc = new Scanner(in);\n\t\tint n = parseInt(sc.next());\n\t\tsc.close();\n\t\tout.println(n+n*n+n*n*n);\n\t}",
"main",
"{\n\t\tint i,j;\n\t\tScanner sc = new Scanner(in);\n\t\tint n = parseInt(sc.next());\n\t\tsc.close();\n\t\tout.println(n+n*n+n*n*n);\n\t}",
"int i",
"i",
"j;",
"j",
"Scanner sc = new Scanner(in);",
"sc",
"new Scanner(in)",
"int n = parseInt(sc.next());",
"n",
"parseInt(sc.next())",
"parseInt",
"sc.next()",
"sc.next",
"sc",
"sc.close()",
"sc.close",
"sc",
"out.println(n+n*n+n*n*n)",
"out.println",
"out",
"n+n*n+n*n*n",
"n+n*n+n*n*n",
"n",
"n*n",
"n",
"n",
"n*n*n",
"n*n*n",
"n",
"n",
"n",
"String[] args",
"args",
"public class Main {\n\tpublic static final int MOD = 1000000007;\n\tpublic static void main(String[] args) {\n\t\tint i,j;\n\t\tScanner sc = new Scanner(in);\n\t\tint n = parseInt(sc.next());\n\t\tsc.close();\n\t\tout.println(n+n*n+n*n*n);\n\t}\n}",
"public class Main {\n\tpublic static final int MOD = 1000000007;\n\tpublic static void main(String[] args) {\n\t\tint i,j;\n\t\tScanner sc = new Scanner(in);\n\t\tint n = parseInt(sc.next());\n\t\tsc.close();\n\t\tout.println(n+n*n+n*n*n);\n\t}\n}",
"Main"
]
| import java.util.*;
import java.io.PrintWriter;
import static java.lang.Integer.*;
import static java.lang.Long.*;
import static java.lang.Math.*;
import static java.lang.System.*;
public class Main {
public static final int MOD = 1000000007;
public static void main(String[] args) {
int i,j;
Scanner sc = new Scanner(in);
int n = parseInt(sc.next());
sc.close();
out.println(n+n*n+n*n*n);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
38,
5
],
[
38,
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
],
[
17,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
25,
29
],
[
22,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
30,
34
],
[
6,
35
],
[
35,
36
],
[
0,
37
],
[
37,
38
],
[
37,
39
]
]
| [
"\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n long a = scn.nextInt();\n\n System.out.println((long) (a + Math.pow(a, 2) + Math.pow(a, 3)));\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n long a = scn.nextInt();\n\n System.out.println((long) (a + Math.pow(a, 2) + Math.pow(a, 3)));\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n long a = scn.nextInt();\n\n System.out.println((long) (a + Math.pow(a, 2) + Math.pow(a, 3)));\n }",
"main",
"{\n Scanner scn = new Scanner(System.in);\n long a = scn.nextInt();\n\n System.out.println((long) (a + Math.pow(a, 2) + Math.pow(a, 3)));\n }",
"Scanner scn = new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"long a = scn.nextInt();",
"a",
"scn.nextInt()",
"scn.nextInt",
"scn",
"System.out.println((long) (a + Math.pow(a, 2) + Math.pow(a, 3)))",
"System.out.println",
"System.out",
"System",
"System.out",
"(long) (a + Math.pow(a, 2) + Math.pow(a, 3))",
"a + Math.pow(a, 2) + Math.pow(a, 3)",
"a",
"Math.pow(a, 2)",
"Math.pow",
"Math",
"a",
"2",
"Math.pow(a, 3)",
"Math.pow",
"Math",
"a",
"3",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n long a = scn.nextInt();\n\n System.out.println((long) (a + Math.pow(a, 2) + Math.pow(a, 3)));\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n long a = scn.nextInt();\n\n System.out.println((long) (a + Math.pow(a, 2) + Math.pow(a, 3)));\n }\n}",
"Main"
]
|
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
long a = scn.nextInt();
System.out.println((long) (a + Math.pow(a, 2) + Math.pow(a, 3)));
}
}
|
[
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,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
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
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
54,
23
],
[
54,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
26,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
41,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
47,
47
],
[
47,
48
],
[
47,
49
],
[
47,
50
],
[
24,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.lang.reflect.Array;\nimport java.math.BigInteger;\nimport java.util.*;\n\nimport static java.lang.Math.max;\n\n\n\npublic class Main {\n\n \n\n public static void main(String args[]) throws Exception {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n System.out.println(n+n*n+n*n*n);\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.lang.reflect.Array;",
"Array",
"java.lang.reflect",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"import java.util.*;",
"util.*",
"java",
"import static java.lang.Math.max;",
"import static java.lang.Math.max;",
"import static java.lang.Math.max;",
"public class Main {\n\n \n\n public static void main(String args[]) throws Exception {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n System.out.println(n+n*n+n*n*n);\n\n }\n}",
"Main",
"public static void main(String args[]) throws Exception {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n System.out.println(n+n*n+n*n*n);\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n System.out.println(n+n*n+n*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",
"System.out.println(n+n*n+n*n*n)",
"System.out.println",
"System.out",
"System",
"System.out",
"n+n*n+n*n*n",
"n+n*n+n*n*n",
"n",
"n*n",
"n",
"n",
"n*n*n",
"n*n*n",
"n",
"n",
"n",
"String args[]",
"args",
"public class Main {\n\n \n\n public static void main(String args[]) throws Exception {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n System.out.println(n+n*n+n*n*n);\n\n }\n}",
"public class Main {\n\n \n\n public static void main(String args[]) throws Exception {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n System.out.println(n+n*n+n*n*n);\n\n }\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.lang.reflect.Array;
import java.math.BigInteger;
import java.util.*;
import static java.lang.Math.max;
public class Main {
public static void main(String args[]) throws Exception {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
System.out.println(n+n*n+n*n*n);
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
13,
4,
13,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
14,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
42,
2,
0,
13,
2,
13,
13,
17,
30,
0,
13,
13,
0,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
41,
13,
13,
0,
13,
13,
42,
2,
0,
13,
2,
13,
13,
17,
30,
0,
13,
13,
0,
13,
13,
29,
2,
13,
13,
23,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
169,
5
],
[
169,
6
],
[
6,
7
],
[
6,
8
],
[
169,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
11,
16
],
[
16,
17
],
[
16,
18
],
[
19,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
25,
25
],
[
25,
26
],
[
25,
27
],
[
25,
28
],
[
9,
29
],
[
29,
30
],
[
169,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
38,
39
],
[
39,
40
],
[
169,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
48,
49
],
[
49,
50
],
[
169,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
169,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
66,
67
],
[
169,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
76,
77
],
[
169,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
81,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
78,
95
],
[
95,
96
],
[
169,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
97,
106
],
[
106,
107
],
[
169,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
117,
119
],
[
114,
120
],
[
113,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
125,
126
],
[
125,
127
],
[
110,
128
],
[
128,
129
],
[
108,
130
],
[
130,
131
],
[
108,
132
],
[
132,
133
],
[
169,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
137,
138
],
[
136,
139
],
[
139,
140
],
[
139,
141
],
[
136,
142
],
[
142,
143
],
[
142,
144
],
[
136,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
149,
151
],
[
146,
152
],
[
145,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
153,
157
],
[
157,
158
],
[
157,
159
],
[
136,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
134,
164
],
[
164,
165
],
[
134,
166
],
[
166,
167
],
[
0,
168
],
[
168,
169
],
[
168,
170
]
]
| [
"import java.util.Scanner;\npublic class Main{\n public static Scanner scan = new Scanner(System.in);\n public static void main(String[]args){\n int a = nextInt();\n print(a+a*a+a*a*a);\n }\n\n public static int nextInt(){\n return Integer.parseInt(scan.next());\n }\n public static long nextLong(){\n return Long.parseLong(scan.next());\n }\n public static String next(){\n return scan.next();\n }\n public static double nextDouble(){\n return Double.parseDouble(scan.next());\n }\n public static float nextFloat(){\n return Float.parseFloat(scan.next());\n }\n\n //Yes or No\n public static void yesNo(boolean flag){\n if(flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n\n //print\n public static void print(Object a){\n System.out.println(a);\n }\n\n\n //gcd\n public static int gcd (int a, int b){\n int tmp;\n while((tmp = a%b) != 0){\n a = b;\n b = tmp;\n }\n return b;\n }\n\n\n //lcm\n public static int lcm(int a,int b){\n int tmp;\n long c = a;\n c *= b;\n while((tmp = a%b) != 0){\n a = b;\n b = tmp;\n }\n return (int)(c/b);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static Scanner scan = new Scanner(System.in);\n public static void main(String[]args){\n int a = nextInt();\n print(a+a*a+a*a*a);\n }\n\n public static int nextInt(){\n return Integer.parseInt(scan.next());\n }\n public static long nextLong(){\n return Long.parseLong(scan.next());\n }\n public static String next(){\n return scan.next();\n }\n public static double nextDouble(){\n return Double.parseDouble(scan.next());\n }\n public static float nextFloat(){\n return Float.parseFloat(scan.next());\n }\n\n //Yes or No\n public static void yesNo(boolean flag){\n if(flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n\n //print\n public static void print(Object a){\n System.out.println(a);\n }\n\n\n //gcd\n public static int gcd (int a, int b){\n int tmp;\n while((tmp = a%b) != 0){\n a = b;\n b = tmp;\n }\n return b;\n }\n\n\n //lcm\n public static int lcm(int a,int b){\n int tmp;\n long c = a;\n c *= b;\n while((tmp = a%b) != 0){\n a = b;\n b = tmp;\n }\n return (int)(c/b);\n }\n}",
"Main",
"public static Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"public static void main(String[]args){\n int a = nextInt();\n print(a+a*a+a*a*a);\n }",
"main",
"{\n int a = nextInt();\n print(a+a*a+a*a*a);\n }",
"int a = nextInt();",
"a",
"nextInt()",
"nextInt",
"print(a+a*a+a*a*a)",
"print",
"a+a*a+a*a*a",
"a+a*a+a*a*a",
"a",
"a*a",
"a",
"a",
"a*a*a",
"a*a*a",
"a",
"a",
"a",
"String[]args",
"args",
"public static int nextInt(){\n return Integer.parseInt(scan.next());\n }",
"nextInt",
"{\n return Integer.parseInt(scan.next());\n }",
"return Integer.parseInt(scan.next());",
"Integer.parseInt(scan.next())",
"Integer.parseInt",
"Integer",
"scan.next()",
"scan.next",
"scan",
"public static long nextLong(){\n return Long.parseLong(scan.next());\n }",
"nextLong",
"{\n return Long.parseLong(scan.next());\n }",
"return Long.parseLong(scan.next());",
"Long.parseLong(scan.next())",
"Long.parseLong",
"Long",
"scan.next()",
"scan.next",
"scan",
"public static String next(){\n return scan.next();\n }",
"next",
"{\n return scan.next();\n }",
"return scan.next();",
"scan.next()",
"scan.next",
"scan",
"public static double nextDouble(){\n return Double.parseDouble(scan.next());\n }",
"nextDouble",
"{\n return Double.parseDouble(scan.next());\n }",
"return Double.parseDouble(scan.next());",
"Double.parseDouble(scan.next())",
"Double.parseDouble",
"Double",
"scan.next()",
"scan.next",
"scan",
"public static float nextFloat(){\n return Float.parseFloat(scan.next());\n }",
"nextFloat",
"{\n return Float.parseFloat(scan.next());\n }",
"return Float.parseFloat(scan.next());",
"Float.parseFloat(scan.next())",
"Float.parseFloat",
"Float",
"scan.next()",
"scan.next",
"scan",
"//Yes or No\n public static void yesNo(boolean flag){\n if(flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }",
"yesNo",
"{\n if(flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }",
"if(flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");",
"flag",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"boolean flag",
"flag",
"//print\n public static void print(Object a){\n System.out.println(a);\n }",
"print",
"{\n System.out.println(a);\n }",
"System.out.println(a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a",
"Object a",
"a",
"//gcd\n public static int gcd (int a, int b){\n int tmp;\n while((tmp = a%b) != 0){\n a = b;\n b = tmp;\n }\n return b;\n }",
"gcd",
"{\n int tmp;\n while((tmp = a%b) != 0){\n a = b;\n b = tmp;\n }\n return b;\n }",
"int tmp;",
"tmp",
"while((tmp = a%b) != 0){\n a = b;\n b = tmp;\n }",
"(tmp = a%b) != 0",
"(tmp = a%b)",
"tmp",
"a%b",
"a",
"b",
"0",
"{\n a = b;\n b = tmp;\n }",
"a = b",
"a",
"b",
"b = tmp",
"b",
"tmp",
"return b;",
"b",
"int a",
"a",
"int b",
"b",
"//lcm\n public static int lcm(int a,int b){\n int tmp;\n long c = a;\n c *= b;\n while((tmp = a%b) != 0){\n a = b;\n b = tmp;\n }\n return (int)(c/b);\n }",
"lcm",
"{\n int tmp;\n long c = a;\n c *= b;\n while((tmp = a%b) != 0){\n a = b;\n b = tmp;\n }\n return (int)(c/b);\n }",
"int tmp;",
"tmp",
"long c = a;",
"c",
"a",
"c *= b",
"c",
"b",
"while((tmp = a%b) != 0){\n a = b;\n b = tmp;\n }",
"(tmp = a%b) != 0",
"(tmp = a%b)",
"tmp",
"a%b",
"a",
"b",
"0",
"{\n a = b;\n b = tmp;\n }",
"a = b",
"a",
"b",
"b = tmp",
"b",
"tmp",
"return (int)(c/b);",
"(int)(c/b)",
"c",
"b",
"int a",
"a",
"int b",
"b",
"public class Main{\n public static Scanner scan = new Scanner(System.in);\n public static void main(String[]args){\n int a = nextInt();\n print(a+a*a+a*a*a);\n }\n\n public static int nextInt(){\n return Integer.parseInt(scan.next());\n }\n public static long nextLong(){\n return Long.parseLong(scan.next());\n }\n public static String next(){\n return scan.next();\n }\n public static double nextDouble(){\n return Double.parseDouble(scan.next());\n }\n public static float nextFloat(){\n return Float.parseFloat(scan.next());\n }\n\n //Yes or No\n public static void yesNo(boolean flag){\n if(flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n\n //print\n public static void print(Object a){\n System.out.println(a);\n }\n\n\n //gcd\n public static int gcd (int a, int b){\n int tmp;\n while((tmp = a%b) != 0){\n a = b;\n b = tmp;\n }\n return b;\n }\n\n\n //lcm\n public static int lcm(int a,int b){\n int tmp;\n long c = a;\n c *= b;\n while((tmp = a%b) != 0){\n a = b;\n b = tmp;\n }\n return (int)(c/b);\n }\n}",
"public class Main{\n public static Scanner scan = new Scanner(System.in);\n public static void main(String[]args){\n int a = nextInt();\n print(a+a*a+a*a*a);\n }\n\n public static int nextInt(){\n return Integer.parseInt(scan.next());\n }\n public static long nextLong(){\n return Long.parseLong(scan.next());\n }\n public static String next(){\n return scan.next();\n }\n public static double nextDouble(){\n return Double.parseDouble(scan.next());\n }\n public static float nextFloat(){\n return Float.parseFloat(scan.next());\n }\n\n //Yes or No\n public static void yesNo(boolean flag){\n if(flag) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n\n //print\n public static void print(Object a){\n System.out.println(a);\n }\n\n\n //gcd\n public static int gcd (int a, int b){\n int tmp;\n while((tmp = a%b) != 0){\n a = b;\n b = tmp;\n }\n return b;\n }\n\n\n //lcm\n public static int lcm(int a,int b){\n int tmp;\n long c = a;\n c *= b;\n while((tmp = a%b) != 0){\n a = b;\n b = tmp;\n }\n return (int)(c/b);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static Scanner scan = new Scanner(System.in);
public static void main(String[]args){
int a = nextInt();
print(a+a*a+a*a*a);
}
public static int nextInt(){
return Integer.parseInt(scan.next());
}
public static long nextLong(){
return Long.parseLong(scan.next());
}
public static String next(){
return scan.next();
}
public static double nextDouble(){
return Double.parseDouble(scan.next());
}
public static float nextFloat(){
return Float.parseFloat(scan.next());
}
//Yes or No
public static void yesNo(boolean flag){
if(flag) System.out.println("Yes");
else System.out.println("No");
}
//print
public static void print(Object a){
System.out.println(a);
}
//gcd
public static int gcd (int a, int b){
int tmp;
while((tmp = a%b) != 0){
a = b;
b = tmp;
}
return b;
}
//lcm
public static int lcm(int a,int b){
int tmp;
long c = a;
c *= b;
while((tmp = a%b) != 0){
a = b;
b = tmp;
}
return (int)(c/b);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
17,
41,
13,
4,
18,
13,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
44,
5
],
[
44,
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
],
[
19,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
26,
30
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
37,
37
],
[
37,
38
],
[
37,
39
],
[
37,
40
],
[
6,
41
],
[
41,
42
],
[
0,
43
],
[
43,
44
],
[
43,
45
]
]
| [
"import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextLong();\n\t\tlong b = (long)Math.pow(a, 2);\n\t\tlong c = (long)Math.pow(a, 3);\n\t\tSystem.out.println(a + b + c);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextLong();\n\t\tlong b = (long)Math.pow(a, 2);\n\t\tlong c = (long)Math.pow(a, 3);\n\t\tSystem.out.println(a + b + c);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextLong();\n\t\tlong b = (long)Math.pow(a, 2);\n\t\tlong c = (long)Math.pow(a, 3);\n\t\tSystem.out.println(a + b + c);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextLong();\n\t\tlong b = (long)Math.pow(a, 2);\n\t\tlong c = (long)Math.pow(a, 3);\n\t\tSystem.out.println(a + b + c);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long a = sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long b = (long)Math.pow(a, 2);",
"b",
"(long)Math.pow(a, 2)",
"Math.pow",
"Math",
"a",
"2",
"long c = (long)Math.pow(a, 3);",
"c",
"(long)Math.pow(a, 3)",
"Math.pow",
"Math",
"a",
"3",
"System.out.println(a + b + c)",
"System.out.println",
"System.out",
"System",
"System.out",
"a + b + c",
"a + b + c",
"a",
"b",
"c",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextLong();\n\t\tlong b = (long)Math.pow(a, 2);\n\t\tlong c = (long)Math.pow(a, 3);\n\t\tSystem.out.println(a + b + c);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextLong();\n\t\tlong b = (long)Math.pow(a, 2);\n\t\tlong c = (long)Math.pow(a, 3);\n\t\tSystem.out.println(a + b + c);\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long a = sc.nextLong();
long b = (long)Math.pow(a, 2);
long c = (long)Math.pow(a, 3);
System.out.println(a + b + c);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
13,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
57,
8
],
[
57,
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
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
38,
42
],
[
35,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
11,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
9,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
]
| [
"import java.util.*; \nimport java.lang.*;\npublic class Main{\n public static void main(String[] args) { \nScanner sc=new Scanner(System.in); \nint x=sc.nextInt();\n int sum=0; \nfor(int i=1;i<=3;i++) \n{ \nint b=(int)Math.pow(x,i);\nsum=sum+b;\n\n} \nSystem.out.println(sum);\n }\n }",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"public class Main{\n public static void main(String[] args) { \nScanner sc=new Scanner(System.in); \nint x=sc.nextInt();\n int sum=0; \nfor(int i=1;i<=3;i++) \n{ \nint b=(int)Math.pow(x,i);\nsum=sum+b;\n\n} \nSystem.out.println(sum);\n }\n }",
"Main",
"public static void main(String[] args) { \nScanner sc=new Scanner(System.in); \nint x=sc.nextInt();\n int sum=0; \nfor(int i=1;i<=3;i++) \n{ \nint b=(int)Math.pow(x,i);\nsum=sum+b;\n\n} \nSystem.out.println(sum);\n }",
"main",
"{ \nScanner sc=new Scanner(System.in); \nint x=sc.nextInt();\n int sum=0; \nfor(int i=1;i<=3;i++) \n{ \nint b=(int)Math.pow(x,i);\nsum=sum+b;\n\n} \nSystem.out.println(sum);\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x=sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int sum=0;",
"sum",
"0",
"for(int i=1;i<=3;i++) \n{ \nint b=(int)Math.pow(x,i);\nsum=sum+b;\n\n}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=3",
"i",
"3",
"i++",
"i++",
"i",
"{ \nint b=(int)Math.pow(x,i);\nsum=sum+b;\n\n}",
"{ \nint b=(int)Math.pow(x,i);\nsum=sum+b;\n\n}",
"int b=(int)Math.pow(x,i);",
"b",
"(int)Math.pow(x,i)",
"Math.pow",
"Math",
"x",
"i",
"sum=sum+b",
"sum",
"sum+b",
"sum",
"b",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args) { \nScanner sc=new Scanner(System.in); \nint x=sc.nextInt();\n int sum=0; \nfor(int i=1;i<=3;i++) \n{ \nint b=(int)Math.pow(x,i);\nsum=sum+b;\n\n} \nSystem.out.println(sum);\n }\n }",
"public class Main{\n public static void main(String[] args) { \nScanner sc=new Scanner(System.in); \nint x=sc.nextInt();\n int sum=0; \nfor(int i=1;i<=3;i++) \n{ \nint b=(int)Math.pow(x,i);\nsum=sum+b;\n\n} \nSystem.out.println(sum);\n }\n }",
"Main"
]
| import java.util.*;
import java.lang.*;
public class Main{
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int x=sc.nextInt();
int sum=0;
for(int i=1;i<=3;i++)
{
int b=(int)Math.pow(x,i);
sum=sum+b;
}
System.out.println(sum);
}
}
|
[
7,
15,
13,
17,
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,
2,
2,
13,
2,
13,
13,
2,
2,
13,
13,
13,
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,
6,
13,
41,
13,
12,
13,
30,
0,
13,
20,
4,
18,
13,
12,
13,
30,
4,
18,
13,
4,
18,
13,
4,
18,
13,
17,
4,
18,
13,
23,
13,
12,
13,
30,
4,
18,
13,
17,
12,
13,
30,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
4,
18,
13,
4,
18,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
192,
11
],
[
192,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
30,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
14,
40
],
[
40,
41
],
[
41,
42
],
[
12,
43
],
[
43,
44
],
[
0,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
45,
49
],
[
49,
50
],
[
45,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
45,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
60,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
70,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
59,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
45,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
92,
93
],
[
45,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
101,
102
],
[
45,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
110,
111
],
[
45,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
118,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
129,
130
],
[
114,
131
],
[
131,
132
],
[
0,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
133,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
143,
144
],
[
144,
145
],
[
133,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
149,
152
],
[
152,
153
],
[
153,
154
],
[
148,
155
],
[
155,
156
],
[
156,
157
],
[
155,
158
],
[
148,
159
],
[
159,
160
],
[
160,
161
],
[
146,
162
],
[
162,
163
],
[
133,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
167,
170
],
[
133,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
174,
177
],
[
177,
178
],
[
178,
179
],
[
171,
180
],
[
180,
181
],
[
133,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
184,
188
],
[
188,
189
],
[
189,
190
],
[
0,
191
],
[
191,
192
],
[
191,
193
]
]
| [
"import java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\npublic class Main{\n public static void main(String[] args) throws IOException{\n FastReader in = new FastReader();\n FastWriter out = new FastWriter();\n int a = in.nextInt();\n out.pl(a + (a*a) + (a*a*a));\n out.close();\n }\n}\nclass FastReader{ \n BufferedReader br; \n StringTokenizer st; \n public FastReader() { \n br = new BufferedReader(new InputStreamReader(System.in)); \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 int nextInt(){ \n return Integer.parseInt(next()); \n } \n long nextLong(){ \n return Long.parseLong(next()); \n } \n double nextDouble(){ \n return Double.parseDouble(next()); \n } \n String nextLine(){ \n String str = \"\"; \n try{ \n str = br.readLine(); \n } \n catch (IOException e){ \n e.printStackTrace(); \n } \n return str; \n } \n}\nclass FastWriter{\n PrintWriter out;\n FastWriter(){\n out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n\tout.flush();\n }\n void pl(Object o){\n out.write(o.toString());\n\t out.write(\"\\n\");\n out.flush();\n }\n void pl(){\n out.write(\"\\n\");\n }\n void p(Object o){\n out.write(o.toString());\n }\n void close(){\n out.flush();\n out.close();\n } \n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n public static void main(String[] args) throws IOException{\n FastReader in = new FastReader();\n FastWriter out = new FastWriter();\n int a = in.nextInt();\n out.pl(a + (a*a) + (a*a*a));\n out.close();\n }\n}",
"Main",
"public static void main(String[] args) throws IOException{\n FastReader in = new FastReader();\n FastWriter out = new FastWriter();\n int a = in.nextInt();\n out.pl(a + (a*a) + (a*a*a));\n out.close();\n }",
"main",
"{\n FastReader in = new FastReader();\n FastWriter out = new FastWriter();\n int a = in.nextInt();\n out.pl(a + (a*a) + (a*a*a));\n out.close();\n }",
"FastReader in = new FastReader();",
"in",
"new FastReader()",
"FastWriter out = new FastWriter();",
"out",
"new FastWriter()",
"int a = in.nextInt();",
"a",
"in.nextInt()",
"in.nextInt",
"in",
"out.pl(a + (a*a) + (a*a*a))",
"out.pl",
"out",
"a + (a*a) + (a*a*a)",
"a + (a*a) + (a*a*a)",
"a",
"(a*a)",
"a",
"a",
"(a*a*a)",
"a*a*a",
"a",
"a",
"a",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"class FastReader{ \n BufferedReader br; \n StringTokenizer st; \n public FastReader() { \n br = new BufferedReader(new InputStreamReader(System.in)); \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 int nextInt(){ \n return Integer.parseInt(next()); \n } \n long nextLong(){ \n return Long.parseLong(next()); \n } \n double nextDouble(){ \n return Double.parseDouble(next()); \n } \n String nextLine(){ \n String str = \"\"; \n try{ \n str = br.readLine(); \n } \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 } \n catch (IOException e){ \n e.printStackTrace(); \n } \n return str; \n }",
"nextLine",
"{ \n String str = \"\"; \n try{ \n str = br.readLine(); \n } \n catch (IOException e){ \n e.printStackTrace(); \n } \n return str; \n }",
"String str = \"\";",
"str",
"\"\"",
"try{ \n str = br.readLine(); \n } \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",
"class FastWriter{\n PrintWriter out;\n FastWriter(){\n out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n\tout.flush();\n }\n void pl(Object o){\n out.write(o.toString());\n\t out.write(\"\\n\");\n out.flush();\n }\n void pl(){\n out.write(\"\\n\");\n }\n void p(Object o){\n out.write(o.toString());\n }\n void close(){\n out.flush();\n out.close();\n } \n}",
"FastWriter",
"PrintWriter out;",
"out",
"FastWriter(){\n out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n\tout.flush();\n }",
"FastWriter",
"{\n out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n\tout.flush();\n }",
"out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)))",
"out",
"new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)))",
"out.flush()",
"out.flush",
"out",
"void pl(Object o){\n out.write(o.toString());\n\t out.write(\"\\n\");\n out.flush();\n }",
"pl",
"{\n out.write(o.toString());\n\t out.write(\"\\n\");\n out.flush();\n }",
"out.write(o.toString())",
"out.write",
"out",
"o.toString()",
"o.toString",
"o",
"out.write(\"\\n\")",
"out.write",
"out",
"\"\\n\"",
"out.flush()",
"out.flush",
"out",
"Object o",
"o",
"void pl(){\n out.write(\"\\n\");\n }",
"pl",
"{\n out.write(\"\\n\");\n }",
"out.write(\"\\n\")",
"out.write",
"out",
"\"\\n\"",
"void p(Object o){\n out.write(o.toString());\n }",
"p",
"{\n out.write(o.toString());\n }",
"out.write(o.toString())",
"out.write",
"out",
"o.toString()",
"o.toString",
"o",
"Object o",
"o",
"void close(){\n out.flush();\n out.close();\n }",
"close",
"{\n out.flush();\n out.close();\n }",
"out.flush()",
"out.flush",
"out",
"out.close()",
"out.close",
"out",
"public class Main{\n public static void main(String[] args) throws IOException{\n FastReader in = new FastReader();\n FastWriter out = new FastWriter();\n int a = in.nextInt();\n out.pl(a + (a*a) + (a*a*a));\n out.close();\n }\n}",
"public class Main{\n public static void main(String[] args) throws IOException{\n FastReader in = new FastReader();\n FastWriter out = new FastWriter();\n int a = in.nextInt();\n out.pl(a + (a*a) + (a*a*a));\n out.close();\n }\n}",
"Main"
]
| import java.util.*;
import java.lang.*;
import java.io.*;
public class Main{
public static void main(String[] args) throws IOException{
FastReader in = new FastReader();
FastWriter out = new FastWriter();
int a = in.nextInt();
out.pl(a + (a*a) + (a*a*a));
out.close();
}
}
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;
}
}
class FastWriter{
PrintWriter out;
FastWriter(){
out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
out.flush();
}
void pl(Object o){
out.write(o.toString());
out.write("\n");
out.flush();
}
void pl(){
out.write("\n");
}
void p(Object o){
out.write(o.toString());
}
void close(){
out.flush();
out.close();
}
}
|
[
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,
2,
2,
13,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
4,
18,
18,
13,
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
],
[
50,
11
],
[
50,
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
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
31,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
36,
40
],
[
14,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
12,
47
],
[
47,
48
],
[
0,
49
],
[
49,
50
],
[
49,
51
]
]
| [
"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 a = Integer.parseInt(br.readLine());\n\t\t\n\t\tint sum = (int)(a + Math.pow((double)a, 2.0) + Math.pow((double)a, 3.0));\n\t\t\n\t\tSystem.out.println(sum);\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 a = Integer.parseInt(br.readLine());\n\t\t\n\t\tint sum = (int)(a + Math.pow((double)a, 2.0) + Math.pow((double)a, 3.0));\n\t\t\n\t\tSystem.out.println(sum);\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 a = Integer.parseInt(br.readLine());\n\t\t\n\t\tint sum = (int)(a + Math.pow((double)a, 2.0) + Math.pow((double)a, 3.0));\n\t\t\n\t\tSystem.out.println(sum);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint a = Integer.parseInt(br.readLine());\n\t\t\n\t\tint sum = (int)(a + Math.pow((double)a, 2.0) + Math.pow((double)a, 3.0));\n\t\t\n\t\tSystem.out.println(sum);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int a = Integer.parseInt(br.readLine());",
"a",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int sum = (int)(a + Math.pow((double)a, 2.0) + Math.pow((double)a, 3.0));",
"sum",
"(int)(a + Math.pow((double)a, 2.0) + Math.pow((double)a, 3.0))",
"a + Math.pow((double)a, 2.0) + Math.pow((double)a, 3.0)",
"a",
"Math.pow((double)a, 2.0)",
"Math.pow",
"Math",
"(double)a",
"2.0",
"Math.pow((double)a, 3.0)",
"Math.pow",
"Math",
"(double)a",
"3.0",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"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 a = Integer.parseInt(br.readLine());\n\t\t\n\t\tint sum = (int)(a + Math.pow((double)a, 2.0) + Math.pow((double)a, 3.0));\n\t\t\n\t\tSystem.out.println(sum);\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 a = Integer.parseInt(br.readLine());\n\t\t\n\t\tint sum = (int)(a + Math.pow((double)a, 2.0) + Math.pow((double)a, 3.0));\n\t\t\n\t\tSystem.out.println(sum);\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 a = Integer.parseInt(br.readLine());
int sum = (int)(a + Math.pow((double)a, 2.0) + Math.pow((double)a, 3.0));
System.out.println(sum);
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.