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,
41,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
4,
18,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
0,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
0,
13,
17,
30,
0,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
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
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
31,
42
],
[
42,
43
],
[
43,
44
],
[
31,
45
],
[
46,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
49,
54
],
[
46,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
56,
65
],
[
55,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
55,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
71,
80
],
[
70,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
70,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
89,
90
],
[
89,
91
],
[
14,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
98,
98
],
[
98,
99
],
[
98,
100
],
[
98,
101
],
[
12,
102
],
[
102,
103
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString num = br.readLine();\n\n\t\tString[] words ;\n\n\t\tint player1_score =0;\n\n\t\tint player2_score =0;\n\n\t\tfor(int i=0; i<Integer.parseInt(num); i++){\n\n\t\t\twords = br.readLine().split(\" \");\n\t\t\tif((words[0].compareTo(words[1])) < 0){\n\n\t\t\t\tplayer2_score += 3;\n\t\t\t}else if ((words[0].compareTo(words[1])) > 0) {\n\t\t\t\tplayer1_score +=3;\n\t\t\t}else {\n\t\t\t\tplayer1_score +=1;\n\t\t\t\tplayer2_score +=1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(player1_score+\" \"+player2_score);\n\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",
"class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString num = br.readLine();\n\n\t\tString[] words ;\n\n\t\tint player1_score =0;\n\n\t\tint player2_score =0;\n\n\t\tfor(int i=0; i<Integer.parseInt(num); i++){\n\n\t\t\twords = br.readLine().split(\" \");\n\t\t\tif((words[0].compareTo(words[1])) < 0){\n\n\t\t\t\tplayer2_score += 3;\n\t\t\t}else if ((words[0].compareTo(words[1])) > 0) {\n\t\t\t\tplayer1_score +=3;\n\t\t\t}else {\n\t\t\t\tplayer1_score +=1;\n\t\t\t\tplayer2_score +=1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(player1_score+\" \"+player2_score);\n\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString num = br.readLine();\n\n\t\tString[] words ;\n\n\t\tint player1_score =0;\n\n\t\tint player2_score =0;\n\n\t\tfor(int i=0; i<Integer.parseInt(num); i++){\n\n\t\t\twords = br.readLine().split(\" \");\n\t\t\tif((words[0].compareTo(words[1])) < 0){\n\n\t\t\t\tplayer2_score += 3;\n\t\t\t}else if ((words[0].compareTo(words[1])) > 0) {\n\t\t\t\tplayer1_score +=3;\n\t\t\t}else {\n\t\t\t\tplayer1_score +=1;\n\t\t\t\tplayer2_score +=1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(player1_score+\" \"+player2_score);\n\n\n\t}",
"main",
"{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString num = br.readLine();\n\n\t\tString[] words ;\n\n\t\tint player1_score =0;\n\n\t\tint player2_score =0;\n\n\t\tfor(int i=0; i<Integer.parseInt(num); i++){\n\n\t\t\twords = br.readLine().split(\" \");\n\t\t\tif((words[0].compareTo(words[1])) < 0){\n\n\t\t\t\tplayer2_score += 3;\n\t\t\t}else if ((words[0].compareTo(words[1])) > 0) {\n\t\t\t\tplayer1_score +=3;\n\t\t\t}else {\n\t\t\t\tplayer1_score +=1;\n\t\t\t\tplayer2_score +=1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(player1_score+\" \"+player2_score);\n\n\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String num = br.readLine();",
"num",
"br.readLine()",
"br.readLine",
"br",
"String[] words ;",
"words",
"int player1_score =0;",
"player1_score",
"0",
"int player2_score =0;",
"player2_score",
"0",
"for(int i=0; i<Integer.parseInt(num); i++){\n\n\t\t\twords = br.readLine().split(\" \");\n\t\t\tif((words[0].compareTo(words[1])) < 0){\n\n\t\t\t\tplayer2_score += 3;\n\t\t\t}else if ((words[0].compareTo(words[1])) > 0) {\n\t\t\t\tplayer1_score +=3;\n\t\t\t}else {\n\t\t\t\tplayer1_score +=1;\n\t\t\t\tplayer2_score +=1;\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<Integer.parseInt(num)",
"i",
"Integer.parseInt(num)",
"Integer.parseInt",
"Integer",
"num",
"i++",
"i++",
"i",
"{\n\n\t\t\twords = br.readLine().split(\" \");\n\t\t\tif((words[0].compareTo(words[1])) < 0){\n\n\t\t\t\tplayer2_score += 3;\n\t\t\t}else if ((words[0].compareTo(words[1])) > 0) {\n\t\t\t\tplayer1_score +=3;\n\t\t\t}else {\n\t\t\t\tplayer1_score +=1;\n\t\t\t\tplayer2_score +=1;\n\t\t\t}\n\t\t}",
"{\n\n\t\t\twords = br.readLine().split(\" \");\n\t\t\tif((words[0].compareTo(words[1])) < 0){\n\n\t\t\t\tplayer2_score += 3;\n\t\t\t}else if ((words[0].compareTo(words[1])) > 0) {\n\t\t\t\tplayer1_score +=3;\n\t\t\t}else {\n\t\t\t\tplayer1_score +=1;\n\t\t\t\tplayer2_score +=1;\n\t\t\t}\n\t\t}",
"words = br.readLine().split(\" \")",
"words",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"if((words[0].compareTo(words[1])) < 0){\n\n\t\t\t\tplayer2_score += 3;\n\t\t\t}else if ((words[0].compareTo(words[1])) > 0) {\n\t\t\t\tplayer1_score +=3;\n\t\t\t}else {\n\t\t\t\tplayer1_score +=1;\n\t\t\t\tplayer2_score +=1;\n\t\t\t}",
"(words[0].compareTo(words[1])) < 0",
"(words[0].compareTo(words[1]))",
"words[0].compareTo",
"words[0]",
"words",
"0",
"words[1]",
"words",
"1",
"0",
"{\n\n\t\t\t\tplayer2_score += 3;\n\t\t\t}",
"player2_score += 3",
"player2_score",
"3",
"if ((words[0].compareTo(words[1])) > 0) {\n\t\t\t\tplayer1_score +=3;\n\t\t\t}else {\n\t\t\t\tplayer1_score +=1;\n\t\t\t\tplayer2_score +=1;\n\t\t\t}",
"(words[0].compareTo(words[1])) > 0",
"(words[0].compareTo(words[1]))",
"words[0].compareTo",
"words[0]",
"words",
"0",
"words[1]",
"words",
"1",
"0",
"{\n\t\t\t\tplayer1_score +=3;\n\t\t\t}",
"player1_score +=3",
"player1_score",
"3",
"{\n\t\t\t\tplayer1_score +=1;\n\t\t\t\tplayer2_score +=1;\n\t\t\t}",
"player1_score +=1",
"player1_score",
"1",
"player2_score +=1",
"player2_score",
"1",
"System.out.println(player1_score+\" \"+player2_score)",
"System.out.println",
"System.out",
"System",
"System.out",
"player1_score+\" \"+player2_score",
"player1_score+\" \"+player2_score",
"player1_score",
"\" \"",
"player2_score",
"String[] args",
"args"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String num = br.readLine();
String[] words ;
int player1_score =0;
int player2_score =0;
for(int i=0; i<Integer.parseInt(num); i++){
words = br.readLine().split(" ");
if((words[0].compareTo(words[1])) < 0){
player2_score += 3;
}else if ((words[0].compareTo(words[1])) > 0) {
player1_score +=3;
}else {
player1_score +=1;
player2_score +=1;
}
}
System.out.println(player1_score+" "+player2_score);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
41,
13,
0,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
103,
5
],
[
103,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
28,
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
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
43,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
55,
60
],
[
54,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
54,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
66,
71
],
[
65,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
65,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
77,
82
],
[
76,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
87,
89
],
[
8,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
96,
96
],
[
96,
97
],
[
96,
98
],
[
96,
99
],
[
6,
100
],
[
100,
101
],
[
0,
102
],
[
102,
103
],
[
102,
104
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int i,n,a=0,b=0;\n String sa,sb;\n n=scan.nextInt();\n for(i=0;i<n;i++) {\n \tsa=scan.next();\n \tsb=scan.next();\n \tif(sa.compareTo(sb)>0) {\n \t\ta+=3;\n \t}\n \telse if(sa.compareTo(sb)<0) {\n \t\tb+=3;\n \t}\n \telse if(sa.compareTo(sb)==0) {\n \t\ta+=1;\n \t\tb+=1;\n \t}\n }\n System.out.println(a+\" \"+b);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int i,n,a=0,b=0;\n String sa,sb;\n n=scan.nextInt();\n for(i=0;i<n;i++) {\n \tsa=scan.next();\n \tsb=scan.next();\n \tif(sa.compareTo(sb)>0) {\n \t\ta+=3;\n \t}\n \telse if(sa.compareTo(sb)<0) {\n \t\tb+=3;\n \t}\n \telse if(sa.compareTo(sb)==0) {\n \t\ta+=1;\n \t\tb+=1;\n \t}\n }\n System.out.println(a+\" \"+b);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int i,n,a=0,b=0;\n String sa,sb;\n n=scan.nextInt();\n for(i=0;i<n;i++) {\n \tsa=scan.next();\n \tsb=scan.next();\n \tif(sa.compareTo(sb)>0) {\n \t\ta+=3;\n \t}\n \telse if(sa.compareTo(sb)<0) {\n \t\tb+=3;\n \t}\n \telse if(sa.compareTo(sb)==0) {\n \t\ta+=1;\n \t\tb+=1;\n \t}\n }\n System.out.println(a+\" \"+b);\n }",
"main",
"{\n Scanner scan=new Scanner(System.in);\n int i,n,a=0,b=0;\n String sa,sb;\n n=scan.nextInt();\n for(i=0;i<n;i++) {\n \tsa=scan.next();\n \tsb=scan.next();\n \tif(sa.compareTo(sb)>0) {\n \t\ta+=3;\n \t}\n \telse if(sa.compareTo(sb)<0) {\n \t\tb+=3;\n \t}\n \telse if(sa.compareTo(sb)==0) {\n \t\ta+=1;\n \t\tb+=1;\n \t}\n }\n System.out.println(a+\" \"+b);\n }",
"Scanner scan=new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int i",
"i",
"n",
"n",
"a=0",
"a",
"0",
"b=0;",
"b",
"0",
"String sa",
"sa",
"sb;",
"sb",
"n=scan.nextInt()",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(i=0;i<n;i++) {\n \tsa=scan.next();\n \tsb=scan.next();\n \tif(sa.compareTo(sb)>0) {\n \t\ta+=3;\n \t}\n \telse if(sa.compareTo(sb)<0) {\n \t\tb+=3;\n \t}\n \telse if(sa.compareTo(sb)==0) {\n \t\ta+=1;\n \t\tb+=1;\n \t}\n }",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \tsa=scan.next();\n \tsb=scan.next();\n \tif(sa.compareTo(sb)>0) {\n \t\ta+=3;\n \t}\n \telse if(sa.compareTo(sb)<0) {\n \t\tb+=3;\n \t}\n \telse if(sa.compareTo(sb)==0) {\n \t\ta+=1;\n \t\tb+=1;\n \t}\n }",
"{\n \tsa=scan.next();\n \tsb=scan.next();\n \tif(sa.compareTo(sb)>0) {\n \t\ta+=3;\n \t}\n \telse if(sa.compareTo(sb)<0) {\n \t\tb+=3;\n \t}\n \telse if(sa.compareTo(sb)==0) {\n \t\ta+=1;\n \t\tb+=1;\n \t}\n }",
"sa=scan.next()",
"sa",
"scan.next()",
"scan.next",
"scan",
"sb=scan.next()",
"sb",
"scan.next()",
"scan.next",
"scan",
"if(sa.compareTo(sb)>0) {\n \t\ta+=3;\n \t}\n \telse if(sa.compareTo(sb)<0) {\n \t\tb+=3;\n \t}\n \telse if(sa.compareTo(sb)==0) {\n \t\ta+=1;\n \t\tb+=1;\n \t}",
"sa.compareTo(sb)>0",
"sa.compareTo(sb)",
"sa.compareTo",
"sa",
"sb",
"0",
"{\n \t\ta+=3;\n \t}",
"a+=3",
"a",
"3",
"if(sa.compareTo(sb)<0) {\n \t\tb+=3;\n \t}\n \telse if(sa.compareTo(sb)==0) {\n \t\ta+=1;\n \t\tb+=1;\n \t}",
"sa.compareTo(sb)<0",
"sa.compareTo(sb)",
"sa.compareTo",
"sa",
"sb",
"0",
"{\n \t\tb+=3;\n \t}",
"b+=3",
"b",
"3",
"if(sa.compareTo(sb)==0) {\n \t\ta+=1;\n \t\tb+=1;\n \t}",
"sa.compareTo(sb)==0",
"sa.compareTo(sb)",
"sa.compareTo",
"sa",
"sb",
"0",
"{\n \t\ta+=1;\n \t\tb+=1;\n \t}",
"a+=1",
"a",
"1",
"b+=1",
"b",
"1",
"System.out.println(a+\" \"+b)",
"System.out.println",
"System.out",
"System",
"System.out",
"a+\" \"+b",
"a+\" \"+b",
"a",
"\" \"",
"b",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int i,n,a=0,b=0;\n String sa,sb;\n n=scan.nextInt();\n for(i=0;i<n;i++) {\n \tsa=scan.next();\n \tsb=scan.next();\n \tif(sa.compareTo(sb)>0) {\n \t\ta+=3;\n \t}\n \telse if(sa.compareTo(sb)<0) {\n \t\tb+=3;\n \t}\n \telse if(sa.compareTo(sb)==0) {\n \t\ta+=1;\n \t\tb+=1;\n \t}\n }\n System.out.println(a+\" \"+b);\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int i,n,a=0,b=0;\n String sa,sb;\n n=scan.nextInt();\n for(i=0;i<n;i++) {\n \tsa=scan.next();\n \tsb=scan.next();\n \tif(sa.compareTo(sb)>0) {\n \t\ta+=3;\n \t}\n \telse if(sa.compareTo(sb)<0) {\n \t\tb+=3;\n \t}\n \telse if(sa.compareTo(sb)==0) {\n \t\ta+=1;\n \t\tb+=1;\n \t}\n }\n System.out.println(a+\" \"+b);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan=new Scanner(System.in);
int i,n,a=0,b=0;
String sa,sb;
n=scan.nextInt();
for(i=0;i<n;i++) {
sa=scan.next();
sb=scan.next();
if(sa.compareTo(sb)>0) {
a+=3;
}
else if(sa.compareTo(sb)<0) {
b+=3;
}
else if(sa.compareTo(sb)==0) {
a+=1;
b+=1;
}
}
System.out.println(a+" "+b);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
41,
13,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
40,
13,
40,
13,
14,
2,
13,
17,
30,
0,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
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
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
28,
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
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
43,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
43,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
67,
68
],
[
60,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
8,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
91,
91
],
[
91,
92
],
[
91,
93
],
[
91,
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\t\tScanner sc = new java.util.Scanner(System.in);\n\t\tint count,Judg,taroP=0,hanakoP=0;\n\t\tString taroC,hanakoC;\n\t\tcount= sc.nextInt();\n\n\t\tfor(int i =0; i<count; i++) {\n\t\t\ttaroC = sc.next();\n\t\t\thanakoC = sc.next();\n\t\t\tJudg = taroC.compareTo(hanakoC);\n\t\t\tif(Judg==0) {\n\t\t\t\ttaroP++;\n\t\t\t\thanakoP++;\n\t\t\t}else if(Judg<0) {\n\t\t\t\thanakoP +=3;\n\t\t\t}else if(Judg>0) {\n\t\t\t\ttaroP +=3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroP+\" \"+hanakoP);\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new java.util.Scanner(System.in);\n\t\tint count,Judg,taroP=0,hanakoP=0;\n\t\tString taroC,hanakoC;\n\t\tcount= sc.nextInt();\n\n\t\tfor(int i =0; i<count; i++) {\n\t\t\ttaroC = sc.next();\n\t\t\thanakoC = sc.next();\n\t\t\tJudg = taroC.compareTo(hanakoC);\n\t\t\tif(Judg==0) {\n\t\t\t\ttaroP++;\n\t\t\t\thanakoP++;\n\t\t\t}else if(Judg<0) {\n\t\t\t\thanakoP +=3;\n\t\t\t}else if(Judg>0) {\n\t\t\t\ttaroP +=3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroP+\" \"+hanakoP);\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new java.util.Scanner(System.in);\n\t\tint count,Judg,taroP=0,hanakoP=0;\n\t\tString taroC,hanakoC;\n\t\tcount= sc.nextInt();\n\n\t\tfor(int i =0; i<count; i++) {\n\t\t\ttaroC = sc.next();\n\t\t\thanakoC = sc.next();\n\t\t\tJudg = taroC.compareTo(hanakoC);\n\t\t\tif(Judg==0) {\n\t\t\t\ttaroP++;\n\t\t\t\thanakoP++;\n\t\t\t}else if(Judg<0) {\n\t\t\t\thanakoP +=3;\n\t\t\t}else if(Judg>0) {\n\t\t\t\ttaroP +=3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroP+\" \"+hanakoP);\n\t}",
"main",
"{\n\t\tScanner sc = new java.util.Scanner(System.in);\n\t\tint count,Judg,taroP=0,hanakoP=0;\n\t\tString taroC,hanakoC;\n\t\tcount= sc.nextInt();\n\n\t\tfor(int i =0; i<count; i++) {\n\t\t\ttaroC = sc.next();\n\t\t\thanakoC = sc.next();\n\t\t\tJudg = taroC.compareTo(hanakoC);\n\t\t\tif(Judg==0) {\n\t\t\t\ttaroP++;\n\t\t\t\thanakoP++;\n\t\t\t}else if(Judg<0) {\n\t\t\t\thanakoP +=3;\n\t\t\t}else if(Judg>0) {\n\t\t\t\ttaroP +=3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroP+\" \"+hanakoP);\n\t}",
"Scanner sc = new java.util.Scanner(System.in);",
"sc",
"new java.util.Scanner(System.in)",
"int count",
"count",
"Judg",
"Judg",
"taroP=0",
"taroP",
"0",
"hanakoP=0;",
"hanakoP",
"0",
"String taroC",
"taroC",
"hanakoC;",
"hanakoC",
"count= sc.nextInt()",
"count",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i =0; i<count; i++) {\n\t\t\ttaroC = sc.next();\n\t\t\thanakoC = sc.next();\n\t\t\tJudg = taroC.compareTo(hanakoC);\n\t\t\tif(Judg==0) {\n\t\t\t\ttaroP++;\n\t\t\t\thanakoP++;\n\t\t\t}else if(Judg<0) {\n\t\t\t\thanakoP +=3;\n\t\t\t}else if(Judg>0) {\n\t\t\t\ttaroP +=3;\n\t\t\t}\n\t\t}",
"int i =0;",
"int i =0;",
"i",
"0",
"i<count",
"i",
"count",
"i++",
"i++",
"i",
"{\n\t\t\ttaroC = sc.next();\n\t\t\thanakoC = sc.next();\n\t\t\tJudg = taroC.compareTo(hanakoC);\n\t\t\tif(Judg==0) {\n\t\t\t\ttaroP++;\n\t\t\t\thanakoP++;\n\t\t\t}else if(Judg<0) {\n\t\t\t\thanakoP +=3;\n\t\t\t}else if(Judg>0) {\n\t\t\t\ttaroP +=3;\n\t\t\t}\n\t\t}",
"{\n\t\t\ttaroC = sc.next();\n\t\t\thanakoC = sc.next();\n\t\t\tJudg = taroC.compareTo(hanakoC);\n\t\t\tif(Judg==0) {\n\t\t\t\ttaroP++;\n\t\t\t\thanakoP++;\n\t\t\t}else if(Judg<0) {\n\t\t\t\thanakoP +=3;\n\t\t\t}else if(Judg>0) {\n\t\t\t\ttaroP +=3;\n\t\t\t}\n\t\t}",
"taroC = sc.next()",
"taroC",
"sc.next()",
"sc.next",
"sc",
"hanakoC = sc.next()",
"hanakoC",
"sc.next()",
"sc.next",
"sc",
"Judg = taroC.compareTo(hanakoC)",
"Judg",
"taroC.compareTo(hanakoC)",
"taroC.compareTo",
"taroC",
"hanakoC",
"if(Judg==0) {\n\t\t\t\ttaroP++;\n\t\t\t\thanakoP++;\n\t\t\t}else if(Judg<0) {\n\t\t\t\thanakoP +=3;\n\t\t\t}else if(Judg>0) {\n\t\t\t\ttaroP +=3;\n\t\t\t}",
"Judg==0",
"Judg",
"0",
"{\n\t\t\t\ttaroP++;\n\t\t\t\thanakoP++;\n\t\t\t}",
"taroP++",
"taroP",
"hanakoP++",
"hanakoP",
"if(Judg<0) {\n\t\t\t\thanakoP +=3;\n\t\t\t}else if(Judg>0) {\n\t\t\t\ttaroP +=3;\n\t\t\t}",
"Judg<0",
"Judg",
"0",
"{\n\t\t\t\thanakoP +=3;\n\t\t\t}",
"hanakoP +=3",
"hanakoP",
"3",
"if(Judg>0) {\n\t\t\t\ttaroP +=3;\n\t\t\t}",
"Judg>0",
"Judg",
"0",
"{\n\t\t\t\ttaroP +=3;\n\t\t\t}",
"taroP +=3",
"taroP",
"3",
"System.out.println(taroP+\" \"+hanakoP)",
"System.out.println",
"System.out",
"System",
"System.out",
"taroP+\" \"+hanakoP",
"taroP+\" \"+hanakoP",
"taroP",
"\" \"",
"hanakoP",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new java.util.Scanner(System.in);\n\t\tint count,Judg,taroP=0,hanakoP=0;\n\t\tString taroC,hanakoC;\n\t\tcount= sc.nextInt();\n\n\t\tfor(int i =0; i<count; i++) {\n\t\t\ttaroC = sc.next();\n\t\t\thanakoC = sc.next();\n\t\t\tJudg = taroC.compareTo(hanakoC);\n\t\t\tif(Judg==0) {\n\t\t\t\ttaroP++;\n\t\t\t\thanakoP++;\n\t\t\t}else if(Judg<0) {\n\t\t\t\thanakoP +=3;\n\t\t\t}else if(Judg>0) {\n\t\t\t\ttaroP +=3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroP+\" \"+hanakoP);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new java.util.Scanner(System.in);\n\t\tint count,Judg,taroP=0,hanakoP=0;\n\t\tString taroC,hanakoC;\n\t\tcount= sc.nextInt();\n\n\t\tfor(int i =0; i<count; i++) {\n\t\t\ttaroC = sc.next();\n\t\t\thanakoC = sc.next();\n\t\t\tJudg = taroC.compareTo(hanakoC);\n\t\t\tif(Judg==0) {\n\t\t\t\ttaroP++;\n\t\t\t\thanakoP++;\n\t\t\t}else if(Judg<0) {\n\t\t\t\thanakoP +=3;\n\t\t\t}else if(Judg>0) {\n\t\t\t\ttaroP +=3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroP+\" \"+hanakoP);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new java.util.Scanner(System.in);
int count,Judg,taroP=0,hanakoP=0;
String taroC,hanakoC;
count= sc.nextInt();
for(int i =0; i<count; i++) {
taroC = sc.next();
hanakoC = sc.next();
Judg = taroC.compareTo(hanakoC);
if(Judg==0) {
taroP++;
hanakoP++;
}else if(Judg<0) {
hanakoP +=3;
}else if(Judg>0) {
taroP +=3;
}
}
System.out.println(taroP+" "+hanakoP);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
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,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
40,
13,
40,
13,
30,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
86,
5
],
[
86,
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
],
[
20,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
46,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
46,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
58,
63
],
[
57,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
67,
68
],
[
57,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
79,
79
],
[
79,
80
],
[
79,
81
],
[
79,
82
],
[
6,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
]
| [
"import java.util.Scanner;\n \npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint Hanako_Point = 0;\n\t\tint Taro_Point = 0;\n\t\tint n = sc.nextInt();\n\n\t\tfor(int i = 0; i< n; i++){\n\t\t\tString Taro_Card = sc.next();\n\t\t\tString Hanako_Card = sc.next();\n\n\t\t\tif(Taro_Card.compareToIgnoreCase(Hanako_Card) < 0){\n\t\t\t\tHanako_Point += 3;\n\t\t\t}else if(Taro_Card.compareToIgnoreCase(Hanako_Card) == 0){\n\t\t\t\tTaro_Point ++;\n\t\t\t\tHanako_Point++;\n\t\t\t}else{\n\t\t\t\tTaro_Point += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(Taro_Point + \" \" + Hanako_Point);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint Hanako_Point = 0;\n\t\tint Taro_Point = 0;\n\t\tint n = sc.nextInt();\n\n\t\tfor(int i = 0; i< n; i++){\n\t\t\tString Taro_Card = sc.next();\n\t\t\tString Hanako_Card = sc.next();\n\n\t\t\tif(Taro_Card.compareToIgnoreCase(Hanako_Card) < 0){\n\t\t\t\tHanako_Point += 3;\n\t\t\t}else if(Taro_Card.compareToIgnoreCase(Hanako_Card) == 0){\n\t\t\t\tTaro_Point ++;\n\t\t\t\tHanako_Point++;\n\t\t\t}else{\n\t\t\t\tTaro_Point += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(Taro_Point + \" \" + Hanako_Point);\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint Hanako_Point = 0;\n\t\tint Taro_Point = 0;\n\t\tint n = sc.nextInt();\n\n\t\tfor(int i = 0; i< n; i++){\n\t\t\tString Taro_Card = sc.next();\n\t\t\tString Hanako_Card = sc.next();\n\n\t\t\tif(Taro_Card.compareToIgnoreCase(Hanako_Card) < 0){\n\t\t\t\tHanako_Point += 3;\n\t\t\t}else if(Taro_Card.compareToIgnoreCase(Hanako_Card) == 0){\n\t\t\t\tTaro_Point ++;\n\t\t\t\tHanako_Point++;\n\t\t\t}else{\n\t\t\t\tTaro_Point += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(Taro_Point + \" \" + Hanako_Point);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint Hanako_Point = 0;\n\t\tint Taro_Point = 0;\n\t\tint n = sc.nextInt();\n\n\t\tfor(int i = 0; i< n; i++){\n\t\t\tString Taro_Card = sc.next();\n\t\t\tString Hanako_Card = sc.next();\n\n\t\t\tif(Taro_Card.compareToIgnoreCase(Hanako_Card) < 0){\n\t\t\t\tHanako_Point += 3;\n\t\t\t}else if(Taro_Card.compareToIgnoreCase(Hanako_Card) == 0){\n\t\t\t\tTaro_Point ++;\n\t\t\t\tHanako_Point++;\n\t\t\t}else{\n\t\t\t\tTaro_Point += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(Taro_Point + \" \" + Hanako_Point);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int Hanako_Point = 0;",
"Hanako_Point",
"0",
"int Taro_Point = 0;",
"Taro_Point",
"0",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i< n; i++){\n\t\t\tString Taro_Card = sc.next();\n\t\t\tString Hanako_Card = sc.next();\n\n\t\t\tif(Taro_Card.compareToIgnoreCase(Hanako_Card) < 0){\n\t\t\t\tHanako_Point += 3;\n\t\t\t}else if(Taro_Card.compareToIgnoreCase(Hanako_Card) == 0){\n\t\t\t\tTaro_Point ++;\n\t\t\t\tHanako_Point++;\n\t\t\t}else{\n\t\t\t\tTaro_Point += 3;\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 Taro_Card = sc.next();\n\t\t\tString Hanako_Card = sc.next();\n\n\t\t\tif(Taro_Card.compareToIgnoreCase(Hanako_Card) < 0){\n\t\t\t\tHanako_Point += 3;\n\t\t\t}else if(Taro_Card.compareToIgnoreCase(Hanako_Card) == 0){\n\t\t\t\tTaro_Point ++;\n\t\t\t\tHanako_Point++;\n\t\t\t}else{\n\t\t\t\tTaro_Point += 3;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString Taro_Card = sc.next();\n\t\t\tString Hanako_Card = sc.next();\n\n\t\t\tif(Taro_Card.compareToIgnoreCase(Hanako_Card) < 0){\n\t\t\t\tHanako_Point += 3;\n\t\t\t}else if(Taro_Card.compareToIgnoreCase(Hanako_Card) == 0){\n\t\t\t\tTaro_Point ++;\n\t\t\t\tHanako_Point++;\n\t\t\t}else{\n\t\t\t\tTaro_Point += 3;\n\t\t\t}\n\t\t}",
"String Taro_Card = sc.next();",
"Taro_Card",
"sc.next()",
"sc.next",
"sc",
"String Hanako_Card = sc.next();",
"Hanako_Card",
"sc.next()",
"sc.next",
"sc",
"if(Taro_Card.compareToIgnoreCase(Hanako_Card) < 0){\n\t\t\t\tHanako_Point += 3;\n\t\t\t}else if(Taro_Card.compareToIgnoreCase(Hanako_Card) == 0){\n\t\t\t\tTaro_Point ++;\n\t\t\t\tHanako_Point++;\n\t\t\t}else{\n\t\t\t\tTaro_Point += 3;\n\t\t\t}",
"Taro_Card.compareToIgnoreCase(Hanako_Card) < 0",
"Taro_Card.compareToIgnoreCase(Hanako_Card)",
"Taro_Card.compareToIgnoreCase",
"Taro_Card",
"Hanako_Card",
"0",
"{\n\t\t\t\tHanako_Point += 3;\n\t\t\t}",
"Hanako_Point += 3",
"Hanako_Point",
"3",
"if(Taro_Card.compareToIgnoreCase(Hanako_Card) == 0){\n\t\t\t\tTaro_Point ++;\n\t\t\t\tHanako_Point++;\n\t\t\t}else{\n\t\t\t\tTaro_Point += 3;\n\t\t\t}",
"Taro_Card.compareToIgnoreCase(Hanako_Card) == 0",
"Taro_Card.compareToIgnoreCase(Hanako_Card)",
"Taro_Card.compareToIgnoreCase",
"Taro_Card",
"Hanako_Card",
"0",
"{\n\t\t\t\tTaro_Point ++;\n\t\t\t\tHanako_Point++;\n\t\t\t}",
"Taro_Point ++",
"Taro_Point",
"Hanako_Point++",
"Hanako_Point",
"{\n\t\t\t\tTaro_Point += 3;\n\t\t\t}",
"Taro_Point += 3",
"Taro_Point",
"3",
"System.out.println(Taro_Point + \" \" + Hanako_Point)",
"System.out.println",
"System.out",
"System",
"System.out",
"Taro_Point + \" \" + Hanako_Point",
"Taro_Point + \" \" + Hanako_Point",
"Taro_Point",
"\" \"",
"Hanako_Point",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint Hanako_Point = 0;\n\t\tint Taro_Point = 0;\n\t\tint n = sc.nextInt();\n\n\t\tfor(int i = 0; i< n; i++){\n\t\t\tString Taro_Card = sc.next();\n\t\t\tString Hanako_Card = sc.next();\n\n\t\t\tif(Taro_Card.compareToIgnoreCase(Hanako_Card) < 0){\n\t\t\t\tHanako_Point += 3;\n\t\t\t}else if(Taro_Card.compareToIgnoreCase(Hanako_Card) == 0){\n\t\t\t\tTaro_Point ++;\n\t\t\t\tHanako_Point++;\n\t\t\t}else{\n\t\t\t\tTaro_Point += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(Taro_Point + \" \" + Hanako_Point);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint Hanako_Point = 0;\n\t\tint Taro_Point = 0;\n\t\tint n = sc.nextInt();\n\n\t\tfor(int i = 0; i< n; i++){\n\t\t\tString Taro_Card = sc.next();\n\t\t\tString Hanako_Card = sc.next();\n\n\t\t\tif(Taro_Card.compareToIgnoreCase(Hanako_Card) < 0){\n\t\t\t\tHanako_Point += 3;\n\t\t\t}else if(Taro_Card.compareToIgnoreCase(Hanako_Card) == 0){\n\t\t\t\tTaro_Point ++;\n\t\t\t\tHanako_Point++;\n\t\t\t}else{\n\t\t\t\tTaro_Point += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(Taro_Point + \" \" + Hanako_Point);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int Hanako_Point = 0;
int Taro_Point = 0;
int n = sc.nextInt();
for(int i = 0; i< n; i++){
String Taro_Card = sc.next();
String Hanako_Card = sc.next();
if(Taro_Card.compareToIgnoreCase(Hanako_Card) < 0){
Hanako_Point += 3;
}else if(Taro_Card.compareToIgnoreCase(Hanako_Card) == 0){
Taro_Point ++;
Hanako_Point++;
}else{
Taro_Point += 3;
}
}
System.out.println(Taro_Point + " " + Hanako_Point);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
87,
5
],
[
87,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
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
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
46,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
57,
59
],
[
46,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
61,
66
],
[
60,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
60,
71
],
[
71,
72
],
[
71,
73
],
[
8,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
80,
80
],
[
80,
81
],
[
80,
82
],
[
80,
83
],
[
6,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
]
| [
"import java.util.*;\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int scoreT = 0, scoreH = 0;\n for(int i = 0; i < num; i++){\n String strT = sc.next();\n String strH = sc.next();\n if((strT.compareTo(strH)) == 0){\n scoreT += 1;\n scoreH += 1;\n }\n else if((strT.compareTo(strH)) > 0){\n scoreT += 3;\n }\n else scoreH += 3;\n }\n System.out.println(scoreT +\" \"+ scoreH);\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 num = sc.nextInt();\n int scoreT = 0, scoreH = 0;\n for(int i = 0; i < num; i++){\n String strT = sc.next();\n String strH = sc.next();\n if((strT.compareTo(strH)) == 0){\n scoreT += 1;\n scoreH += 1;\n }\n else if((strT.compareTo(strH)) > 0){\n scoreT += 3;\n }\n else scoreH += 3;\n }\n System.out.println(scoreT +\" \"+ scoreH);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int scoreT = 0, scoreH = 0;\n for(int i = 0; i < num; i++){\n String strT = sc.next();\n String strH = sc.next();\n if((strT.compareTo(strH)) == 0){\n scoreT += 1;\n scoreH += 1;\n }\n else if((strT.compareTo(strH)) > 0){\n scoreT += 3;\n }\n else scoreH += 3;\n }\n System.out.println(scoreT +\" \"+ scoreH);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int scoreT = 0, scoreH = 0;\n for(int i = 0; i < num; i++){\n String strT = sc.next();\n String strH = sc.next();\n if((strT.compareTo(strH)) == 0){\n scoreT += 1;\n scoreH += 1;\n }\n else if((strT.compareTo(strH)) > 0){\n scoreT += 3;\n }\n else scoreH += 3;\n }\n System.out.println(scoreT +\" \"+ scoreH);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int scoreT = 0",
"scoreT",
"0",
"scoreH = 0;",
"scoreH",
"0",
"for(int i = 0; i < num; i++){\n String strT = sc.next();\n String strH = sc.next();\n if((strT.compareTo(strH)) == 0){\n scoreT += 1;\n scoreH += 1;\n }\n else if((strT.compareTo(strH)) > 0){\n scoreT += 3;\n }\n else scoreH += 3;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n String strT = sc.next();\n String strH = sc.next();\n if((strT.compareTo(strH)) == 0){\n scoreT += 1;\n scoreH += 1;\n }\n else if((strT.compareTo(strH)) > 0){\n scoreT += 3;\n }\n else scoreH += 3;\n }",
"{\n String strT = sc.next();\n String strH = sc.next();\n if((strT.compareTo(strH)) == 0){\n scoreT += 1;\n scoreH += 1;\n }\n else if((strT.compareTo(strH)) > 0){\n scoreT += 3;\n }\n else scoreH += 3;\n }",
"String strT = sc.next();",
"strT",
"sc.next()",
"sc.next",
"sc",
"String strH = sc.next();",
"strH",
"sc.next()",
"sc.next",
"sc",
"if((strT.compareTo(strH)) == 0){\n scoreT += 1;\n scoreH += 1;\n }\n else if((strT.compareTo(strH)) > 0){\n scoreT += 3;\n }\n else scoreH += 3;",
"(strT.compareTo(strH)) == 0",
"(strT.compareTo(strH))",
"strT.compareTo",
"strT",
"strH",
"0",
"{\n scoreT += 1;\n scoreH += 1;\n }",
"scoreT += 1",
"scoreT",
"1",
"scoreH += 1",
"scoreH",
"1",
"if((strT.compareTo(strH)) > 0){\n scoreT += 3;\n }\n else scoreH += 3;",
"(strT.compareTo(strH)) > 0",
"(strT.compareTo(strH))",
"strT.compareTo",
"strT",
"strH",
"0",
"{\n scoreT += 3;\n }",
"scoreT += 3",
"scoreT",
"3",
"scoreH += 3",
"scoreH",
"3",
"System.out.println(scoreT +\" \"+ scoreH)",
"System.out.println",
"System.out",
"System",
"System.out",
"scoreT +\" \"+ scoreH",
"scoreT +\" \"+ scoreH",
"scoreT",
"\" \"",
"scoreH",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int scoreT = 0, scoreH = 0;\n for(int i = 0; i < num; i++){\n String strT = sc.next();\n String strH = sc.next();\n if((strT.compareTo(strH)) == 0){\n scoreT += 1;\n scoreH += 1;\n }\n else if((strT.compareTo(strH)) > 0){\n scoreT += 3;\n }\n else scoreH += 3;\n }\n System.out.println(scoreT +\" \"+ scoreH);\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int scoreT = 0, scoreH = 0;\n for(int i = 0; i < num; i++){\n String strT = sc.next();\n String strH = sc.next();\n if((strT.compareTo(strH)) == 0){\n scoreT += 1;\n scoreH += 1;\n }\n else if((strT.compareTo(strH)) > 0){\n scoreT += 3;\n }\n else scoreH += 3;\n }\n System.out.println(scoreT +\" \"+ scoreH);\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 scoreT = 0, scoreH = 0;
for(int i = 0; i < num; i++){
String strT = sc.next();
String strH = sc.next();
if((strT.compareTo(strH)) == 0){
scoreT += 1;
scoreH += 1;
}
else if((strT.compareTo(strH)) > 0){
scoreT += 3;
}
else scoreH += 3;
}
System.out.println(scoreT +" "+ scoreH);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
41,
13,
17,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
14,
2,
13,
17,
0,
13,
17,
14,
2,
13,
17,
30,
40,
13,
40,
13,
0,
13,
17,
4,
18,
18,
13,
13,
17,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
4,
13,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
13,
30,
0,
13,
20,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
14,
4,
13,
30,
29,
4,
18,
13,
30,
4,
13,
29,
4,
18,
13,
12,
13,
30,
14,
4,
13,
30,
29,
4,
18,
13,
4,
18,
13,
30,
4,
13,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
14,
4,
13,
30,
29,
4,
18,
13,
4,
18,
13,
30,
4,
13,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
14,
4,
13,
30,
29,
4,
18,
13,
4,
18,
13,
30,
4,
13,
29,
4,
18,
13,
4,
18,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
219,
8
],
[
219,
9
],
[
9,
10
],
[
9,
11
],
[
219,
12
],
[
12,
13
],
[
12,
14
],
[
219,
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
],
[
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
],
[
53,
54
],
[
44,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
44,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
65,
67
],
[
61,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
68,
77
],
[
77,
78
],
[
77,
79
],
[
17,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
80,
86
],
[
80,
87
],
[
15,
88
],
[
88,
89
],
[
0,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
90,
94
],
[
94,
95
],
[
90,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
96,
104
],
[
104,
105
],
[
90,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
114,
115
],
[
115,
116
],
[
109,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
90,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
90,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
131,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
131,
139
],
[
139,
140
],
[
140,
141
],
[
139,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
90,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
149,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
154,
157
],
[
157,
158
],
[
158,
159
],
[
149,
160
],
[
160,
161
],
[
161,
162
],
[
160,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
164,
167
],
[
167,
168
],
[
168,
169
],
[
90,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
173,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
178,
181
],
[
181,
182
],
[
182,
183
],
[
173,
184
],
[
184,
185
],
[
185,
186
],
[
184,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
188,
191
],
[
191,
192
],
[
192,
193
],
[
90,
194
],
[
194,
195
],
[
194,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
197,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
202,
205
],
[
205,
206
],
[
206,
207
],
[
197,
208
],
[
208,
209
],
[
209,
210
],
[
208,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
212,
215
],
[
215,
216
],
[
216,
217
],
[
0,
218
],
[
218,
219
],
[
218,
220
]
]
| [
"import java.util.*;\nimport java.io.*;\n\npublic class Main{\n\tfinal static int MOD = 1000000007;\n\tfinal static int INF = 1000000000;\n\n\tpublic static void main(String[] args) throws IOException{\n\t\tNScanner sc = new NScanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint ta = 0, ha = 0;\n\t\tfor(int i = 0; i < n; ++i){\n\t\t\tString TA = sc.next();\n\t\t\tString HA = sc.next();\n\t\t\tint res = TA.compareTo(HA);\n\t\t\tif(res > 0) ta += 3;\n\t\t\telse if(res == 0){\n\t\t\t\t++ta; ++ha;\n\t\t\t}else ha += 3;\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\",ta, ha);\n\t}\n\n}\n\nclass NScanner{\n\n\tprivate BufferedReader br;\n\tprivate StringTokenizer tok;\n\n\tpublic NScanner(InputStream is) throws IOException{\n\t\tbr = new BufferedReader(new InputStreamReader(is));\n\t\tgetLine();\n\t}\n\n\tprivate void getLine() throws IOException{\n\t\twhile(tok == null || !hasNext()){\n\t\t\ttok = new StringTokenizer(br.readLine());\n\t\t}\n\t}\n\n\tpublic boolean hasNext(){\n\t\treturn tok.hasMoreTokens();\n\t}\n\n\tpublic String next() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn tok.nextToken();\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn tok.nextToken();\n\t\t}\n\t}\n\n\tpublic int nextInt() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}\n\t}\n\n\tpublic long nextLong() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}\n\t}\n\n\tpublic double nextDouble() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n\tfinal static int MOD = 1000000007;\n\tfinal static int INF = 1000000000;\n\n\tpublic static void main(String[] args) throws IOException{\n\t\tNScanner sc = new NScanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint ta = 0, ha = 0;\n\t\tfor(int i = 0; i < n; ++i){\n\t\t\tString TA = sc.next();\n\t\t\tString HA = sc.next();\n\t\t\tint res = TA.compareTo(HA);\n\t\t\tif(res > 0) ta += 3;\n\t\t\telse if(res == 0){\n\t\t\t\t++ta; ++ha;\n\t\t\t}else ha += 3;\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\",ta, ha);\n\t}\n\n}",
"Main",
"final static int MOD = 1000000007;",
"MOD",
"1000000007",
"final static int INF = 1000000000;",
"INF",
"1000000000",
"public static void main(String[] args) throws IOException{\n\t\tNScanner sc = new NScanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint ta = 0, ha = 0;\n\t\tfor(int i = 0; i < n; ++i){\n\t\t\tString TA = sc.next();\n\t\t\tString HA = sc.next();\n\t\t\tint res = TA.compareTo(HA);\n\t\t\tif(res > 0) ta += 3;\n\t\t\telse if(res == 0){\n\t\t\t\t++ta; ++ha;\n\t\t\t}else ha += 3;\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\",ta, ha);\n\t}",
"main",
"{\n\t\tNScanner sc = new NScanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint ta = 0, ha = 0;\n\t\tfor(int i = 0; i < n; ++i){\n\t\t\tString TA = sc.next();\n\t\t\tString HA = sc.next();\n\t\t\tint res = TA.compareTo(HA);\n\t\t\tif(res > 0) ta += 3;\n\t\t\telse if(res == 0){\n\t\t\t\t++ta; ++ha;\n\t\t\t}else ha += 3;\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\",ta, ha);\n\t}",
"NScanner sc = new NScanner(System.in);",
"sc",
"new NScanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ta = 0",
"ta",
"0",
"ha = 0;",
"ha",
"0",
"for(int i = 0; i < n; ++i){\n\t\t\tString TA = sc.next();\n\t\t\tString HA = sc.next();\n\t\t\tint res = TA.compareTo(HA);\n\t\t\tif(res > 0) ta += 3;\n\t\t\telse if(res == 0){\n\t\t\t\t++ta; ++ha;\n\t\t\t}else ha += 3;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"++i",
"++i",
"i",
"{\n\t\t\tString TA = sc.next();\n\t\t\tString HA = sc.next();\n\t\t\tint res = TA.compareTo(HA);\n\t\t\tif(res > 0) ta += 3;\n\t\t\telse if(res == 0){\n\t\t\t\t++ta; ++ha;\n\t\t\t}else ha += 3;\n\t\t}",
"{\n\t\t\tString TA = sc.next();\n\t\t\tString HA = sc.next();\n\t\t\tint res = TA.compareTo(HA);\n\t\t\tif(res > 0) ta += 3;\n\t\t\telse if(res == 0){\n\t\t\t\t++ta; ++ha;\n\t\t\t}else ha += 3;\n\t\t}",
"String TA = sc.next();",
"TA",
"sc.next()",
"sc.next",
"sc",
"String HA = sc.next();",
"HA",
"sc.next()",
"sc.next",
"sc",
"int res = TA.compareTo(HA);",
"res",
"TA.compareTo(HA)",
"TA.compareTo",
"TA",
"HA",
"if(res > 0) ta += 3;\n\t\t\telse if(res == 0){\n\t\t\t\t++ta; ++ha;\n\t\t\t}else ha += 3;",
"res > 0",
"res",
"0",
"ta += 3",
"ta",
"3",
"if(res == 0){\n\t\t\t\t++ta; ++ha;\n\t\t\t}else ha += 3;",
"res == 0",
"res",
"0",
"{\n\t\t\t\t++ta; ++ha;\n\t\t\t}",
"++ta",
"ta",
"++ha",
"ha",
"ha += 3",
"ha",
"3",
"System.out.printf(\"%d %d\\n\",ta, ha)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d %d\\n\"",
"ta",
"ha",
"String[] args",
"args",
"class NScanner{\n\n\tprivate BufferedReader br;\n\tprivate StringTokenizer tok;\n\n\tpublic NScanner(InputStream is) throws IOException{\n\t\tbr = new BufferedReader(new InputStreamReader(is));\n\t\tgetLine();\n\t}\n\n\tprivate void getLine() throws IOException{\n\t\twhile(tok == null || !hasNext()){\n\t\t\ttok = new StringTokenizer(br.readLine());\n\t\t}\n\t}\n\n\tpublic boolean hasNext(){\n\t\treturn tok.hasMoreTokens();\n\t}\n\n\tpublic String next() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn tok.nextToken();\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn tok.nextToken();\n\t\t}\n\t}\n\n\tpublic int nextInt() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}\n\t}\n\n\tpublic long nextLong() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}\n\t}\n\n\tpublic double nextDouble() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}\n\t}\n}",
"NScanner",
"private BufferedReader br;",
"br",
"private StringTokenizer tok;",
"tok",
"public NScanner(InputStream is) throws IOException{\n\t\tbr = new BufferedReader(new InputStreamReader(is));\n\t\tgetLine();\n\t}",
"NScanner",
"{\n\t\tbr = new BufferedReader(new InputStreamReader(is));\n\t\tgetLine();\n\t}",
"br = new BufferedReader(new InputStreamReader(is))",
"br",
"new BufferedReader(new InputStreamReader(is))",
"getLine()",
"getLine",
"InputStream is",
"is",
"private void getLine() throws IOException{\n\t\twhile(tok == null || !hasNext()){\n\t\t\ttok = new StringTokenizer(br.readLine());\n\t\t}\n\t}",
"getLine",
"{\n\t\twhile(tok == null || !hasNext()){\n\t\t\ttok = new StringTokenizer(br.readLine());\n\t\t}\n\t}",
"while(tok == null || !hasNext()){\n\t\t\ttok = new StringTokenizer(br.readLine());\n\t\t}",
"tok == null || !hasNext()",
"tok == null",
"tok",
"null",
"!hasNext()",
"hasNext()",
"hasNext",
"{\n\t\t\ttok = new StringTokenizer(br.readLine());\n\t\t}",
"tok = new StringTokenizer(br.readLine())",
"tok",
"new StringTokenizer(br.readLine())",
"public boolean hasNext(){\n\t\treturn tok.hasMoreTokens();\n\t}",
"hasNext",
"{\n\t\treturn tok.hasMoreTokens();\n\t}",
"return tok.hasMoreTokens();",
"tok.hasMoreTokens()",
"tok.hasMoreTokens",
"tok",
"public String next() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn tok.nextToken();\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn tok.nextToken();\n\t\t}\n\t}",
"next",
"{\n\t\tif(hasNext()){\n\t\t\treturn tok.nextToken();\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn tok.nextToken();\n\t\t}\n\t}",
"if(hasNext()){\n\t\t\treturn tok.nextToken();\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn tok.nextToken();\n\t\t}",
"hasNext()",
"hasNext",
"{\n\t\t\treturn tok.nextToken();\n\t\t}",
"return tok.nextToken();",
"tok.nextToken()",
"tok.nextToken",
"tok",
"{\n\t\t\tgetLine();\n\t\t\treturn tok.nextToken();\n\t\t}",
"getLine()",
"getLine",
"return tok.nextToken();",
"tok.nextToken()",
"tok.nextToken",
"tok",
"public int nextInt() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}\n\t}",
"nextInt",
"{\n\t\tif(hasNext()){\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}\n\t}",
"if(hasNext()){\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}",
"hasNext()",
"hasNext",
"{\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}",
"return Integer.parseInt(tok.nextToken());",
"Integer.parseInt(tok.nextToken())",
"Integer.parseInt",
"Integer",
"tok.nextToken()",
"tok.nextToken",
"tok",
"{\n\t\t\tgetLine();\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}",
"getLine()",
"getLine",
"return Integer.parseInt(tok.nextToken());",
"Integer.parseInt(tok.nextToken())",
"Integer.parseInt",
"Integer",
"tok.nextToken()",
"tok.nextToken",
"tok",
"public long nextLong() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}\n\t}",
"nextLong",
"{\n\t\tif(hasNext()){\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}\n\t}",
"if(hasNext()){\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}",
"hasNext()",
"hasNext",
"{\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}",
"return Long.parseLong(tok.nextToken());",
"Long.parseLong(tok.nextToken())",
"Long.parseLong",
"Long",
"tok.nextToken()",
"tok.nextToken",
"tok",
"{\n\t\t\tgetLine();\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}",
"getLine()",
"getLine",
"return Long.parseLong(tok.nextToken());",
"Long.parseLong(tok.nextToken())",
"Long.parseLong",
"Long",
"tok.nextToken()",
"tok.nextToken",
"tok",
"public double nextDouble() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}\n\t}",
"nextDouble",
"{\n\t\tif(hasNext()){\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}\n\t}",
"if(hasNext()){\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}",
"hasNext()",
"hasNext",
"{\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}",
"return Double.parseDouble(tok.nextToken());",
"Double.parseDouble(tok.nextToken())",
"Double.parseDouble",
"Double",
"tok.nextToken()",
"tok.nextToken",
"tok",
"{\n\t\t\tgetLine();\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}",
"getLine()",
"getLine",
"return Double.parseDouble(tok.nextToken());",
"Double.parseDouble(tok.nextToken())",
"Double.parseDouble",
"Double",
"tok.nextToken()",
"tok.nextToken",
"tok",
"public class Main{\n\tfinal static int MOD = 1000000007;\n\tfinal static int INF = 1000000000;\n\n\tpublic static void main(String[] args) throws IOException{\n\t\tNScanner sc = new NScanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint ta = 0, ha = 0;\n\t\tfor(int i = 0; i < n; ++i){\n\t\t\tString TA = sc.next();\n\t\t\tString HA = sc.next();\n\t\t\tint res = TA.compareTo(HA);\n\t\t\tif(res > 0) ta += 3;\n\t\t\telse if(res == 0){\n\t\t\t\t++ta; ++ha;\n\t\t\t}else ha += 3;\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\",ta, ha);\n\t}\n\n}",
"public class Main{\n\tfinal static int MOD = 1000000007;\n\tfinal static int INF = 1000000000;\n\n\tpublic static void main(String[] args) throws IOException{\n\t\tNScanner sc = new NScanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint ta = 0, ha = 0;\n\t\tfor(int i = 0; i < n; ++i){\n\t\t\tString TA = sc.next();\n\t\t\tString HA = sc.next();\n\t\t\tint res = TA.compareTo(HA);\n\t\t\tif(res > 0) ta += 3;\n\t\t\telse if(res == 0){\n\t\t\t\t++ta; ++ha;\n\t\t\t}else ha += 3;\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\",ta, ha);\n\t}\n\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main{
final static int MOD = 1000000007;
final static int INF = 1000000000;
public static void main(String[] args) throws IOException{
NScanner sc = new NScanner(System.in);
int n = sc.nextInt();
int ta = 0, ha = 0;
for(int i = 0; i < n; ++i){
String TA = sc.next();
String HA = sc.next();
int res = TA.compareTo(HA);
if(res > 0) ta += 3;
else if(res == 0){
++ta; ++ha;
}else ha += 3;
}
System.out.printf("%d %d\n",ta, ha);
}
}
class NScanner{
private BufferedReader br;
private StringTokenizer tok;
public NScanner(InputStream is) throws IOException{
br = new BufferedReader(new InputStreamReader(is));
getLine();
}
private void getLine() throws IOException{
while(tok == null || !hasNext()){
tok = new StringTokenizer(br.readLine());
}
}
public boolean hasNext(){
return tok.hasMoreTokens();
}
public String next() throws IOException{
if(hasNext()){
return tok.nextToken();
}else{
getLine();
return tok.nextToken();
}
}
public int nextInt() throws IOException{
if(hasNext()){
return Integer.parseInt(tok.nextToken());
}else{
getLine();
return Integer.parseInt(tok.nextToken());
}
}
public long nextLong() throws IOException{
if(hasNext()){
return Long.parseLong(tok.nextToken());
}else{
getLine();
return Long.parseLong(tok.nextToken());
}
}
public double nextDouble() throws IOException{
if(hasNext()){
return Double.parseDouble(tok.nextToken());
}else{
getLine();
return Double.parseDouble(tok.nextToken());
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
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,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
30,
40,
13,
40,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
86,
5
],
[
86,
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
],
[
20,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
46,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
46,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
58,
63
],
[
57,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
57,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
71,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
79,
79
],
[
79,
80
],
[
79,
81
],
[
79,
82
],
[
6,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
]
| [
"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 pa=0,pb=0;\n\t\tint n=sc.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString A = sc.next();\n\t\t\tString B = sc.next();\n\t\t\tif(A.compareTo(B)>0){\n\t\t\t\tpa+=3;\n\t\t\t}else if(A.compareTo(B)<0){\n\t\t\t\tpb+=3;\n\t\t\t}else{\n\t\t\t\tpa++;\n\t\t\t\tpb++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(pa+\" \"+pb);\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 pa=0,pb=0;\n\t\tint n=sc.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString A = sc.next();\n\t\t\tString B = sc.next();\n\t\t\tif(A.compareTo(B)>0){\n\t\t\t\tpa+=3;\n\t\t\t}else if(A.compareTo(B)<0){\n\t\t\t\tpb+=3;\n\t\t\t}else{\n\t\t\t\tpa++;\n\t\t\t\tpb++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(pa+\" \"+pb);\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tint pa=0,pb=0;\n\t\tint n=sc.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString A = sc.next();\n\t\t\tString B = sc.next();\n\t\t\tif(A.compareTo(B)>0){\n\t\t\t\tpa+=3;\n\t\t\t}else if(A.compareTo(B)<0){\n\t\t\t\tpb+=3;\n\t\t\t}else{\n\t\t\t\tpa++;\n\t\t\t\tpb++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(pa+\" \"+pb);\n\t}",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint pa=0,pb=0;\n\t\tint n=sc.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString A = sc.next();\n\t\t\tString B = sc.next();\n\t\t\tif(A.compareTo(B)>0){\n\t\t\t\tpa+=3;\n\t\t\t}else if(A.compareTo(B)<0){\n\t\t\t\tpb+=3;\n\t\t\t}else{\n\t\t\t\tpa++;\n\t\t\t\tpb++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(pa+\" \"+pb);\n\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int pa=0",
"pa",
"0",
"pb=0;",
"pb",
"0",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=0;i<n;i++){\n\t\t\tString A = sc.next();\n\t\t\tString B = sc.next();\n\t\t\tif(A.compareTo(B)>0){\n\t\t\t\tpa+=3;\n\t\t\t}else if(A.compareTo(B)<0){\n\t\t\t\tpb+=3;\n\t\t\t}else{\n\t\t\t\tpa++;\n\t\t\t\tpb++;\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 A = sc.next();\n\t\t\tString B = sc.next();\n\t\t\tif(A.compareTo(B)>0){\n\t\t\t\tpa+=3;\n\t\t\t}else if(A.compareTo(B)<0){\n\t\t\t\tpb+=3;\n\t\t\t}else{\n\t\t\t\tpa++;\n\t\t\t\tpb++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString A = sc.next();\n\t\t\tString B = sc.next();\n\t\t\tif(A.compareTo(B)>0){\n\t\t\t\tpa+=3;\n\t\t\t}else if(A.compareTo(B)<0){\n\t\t\t\tpb+=3;\n\t\t\t}else{\n\t\t\t\tpa++;\n\t\t\t\tpb++;\n\t\t\t}\n\t\t}",
"String A = sc.next();",
"A",
"sc.next()",
"sc.next",
"sc",
"String B = sc.next();",
"B",
"sc.next()",
"sc.next",
"sc",
"if(A.compareTo(B)>0){\n\t\t\t\tpa+=3;\n\t\t\t}else if(A.compareTo(B)<0){\n\t\t\t\tpb+=3;\n\t\t\t}else{\n\t\t\t\tpa++;\n\t\t\t\tpb++;\n\t\t\t}",
"A.compareTo(B)>0",
"A.compareTo(B)",
"A.compareTo",
"A",
"B",
"0",
"{\n\t\t\t\tpa+=3;\n\t\t\t}",
"pa+=3",
"pa",
"3",
"if(A.compareTo(B)<0){\n\t\t\t\tpb+=3;\n\t\t\t}else{\n\t\t\t\tpa++;\n\t\t\t\tpb++;\n\t\t\t}",
"A.compareTo(B)<0",
"A.compareTo(B)",
"A.compareTo",
"A",
"B",
"0",
"{\n\t\t\t\tpb+=3;\n\t\t\t}",
"pb+=3",
"pb",
"3",
"{\n\t\t\t\tpa++;\n\t\t\t\tpb++;\n\t\t\t}",
"pa++",
"pa",
"pb++",
"pb",
"System.out.println(pa+\" \"+pb)",
"System.out.println",
"System.out",
"System",
"System.out",
"pa+\" \"+pb",
"pa+\" \"+pb",
"pa",
"\" \"",
"pb",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tint pa=0,pb=0;\n\t\tint n=sc.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString A = sc.next();\n\t\t\tString B = sc.next();\n\t\t\tif(A.compareTo(B)>0){\n\t\t\t\tpa+=3;\n\t\t\t}else if(A.compareTo(B)<0){\n\t\t\t\tpb+=3;\n\t\t\t}else{\n\t\t\t\tpa++;\n\t\t\t\tpb++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(pa+\" \"+pb);\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tint pa=0,pb=0;\n\t\tint n=sc.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString A = sc.next();\n\t\t\tString B = sc.next();\n\t\t\tif(A.compareTo(B)>0){\n\t\t\t\tpa+=3;\n\t\t\t}else if(A.compareTo(B)<0){\n\t\t\t\tpb+=3;\n\t\t\t}else{\n\t\t\t\tpa++;\n\t\t\t\tpb++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(pa+\" \"+pb);\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int pa=0,pb=0;
int n=sc.nextInt();
for(int i=0;i<n;i++){
String A = sc.next();
String B = sc.next();
if(A.compareTo(B)>0){
pa+=3;
}else if(A.compareTo(B)<0){
pb+=3;
}else{
pa++;
pb++;
}
}
System.out.println(pa+" "+pb);
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
4,
18,
13,
42,
2,
13,
17,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
0,
13,
2,
13,
17,
14,
2,
13,
17,
30,
0,
13,
2,
13,
17,
30,
40,
13,
40,
13,
40,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
84,
5
],
[
84,
6
],
[
6,
7
],
[
6,
8
],
[
84,
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
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
27,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
27,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
44,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
54,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
67,
68
],
[
27,
69
],
[
69,
70
],
[
11,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
77,
77
],
[
77,
78
],
[
77,
79
],
[
77,
80
],
[
9,
81
],
[
81,
82
],
[
0,
83
],
[
83,
84
],
[
83,
85
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n static Scanner sc = new Scanner(System.in);\n\n public static void main(String[] args) {\n int taroP = 0;\n int hanakoP = 0;\n int num = sc.nextInt();\n while (num > 0) {\n String taroStr = sc.next();\n String hanakoStr = sc.next();\n int result = taroStr.compareTo(hanakoStr);\n if (result > 0) {\n taroP = taroP + 3;\n } else if (result < 0){\n hanakoP = hanakoP + 3;\n }else {\n taroP++;\n hanakoP++;\n }\n num--;\n }\n System.out.println(taroP + \" \" + hanakoP);\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n static Scanner sc = new Scanner(System.in);\n\n public static void main(String[] args) {\n int taroP = 0;\n int hanakoP = 0;\n int num = sc.nextInt();\n while (num > 0) {\n String taroStr = sc.next();\n String hanakoStr = sc.next();\n int result = taroStr.compareTo(hanakoStr);\n if (result > 0) {\n taroP = taroP + 3;\n } else if (result < 0){\n hanakoP = hanakoP + 3;\n }else {\n taroP++;\n hanakoP++;\n }\n num--;\n }\n System.out.println(taroP + \" \" + hanakoP);\n }\n}",
"Main",
"static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"public static void main(String[] args) {\n int taroP = 0;\n int hanakoP = 0;\n int num = sc.nextInt();\n while (num > 0) {\n String taroStr = sc.next();\n String hanakoStr = sc.next();\n int result = taroStr.compareTo(hanakoStr);\n if (result > 0) {\n taroP = taroP + 3;\n } else if (result < 0){\n hanakoP = hanakoP + 3;\n }else {\n taroP++;\n hanakoP++;\n }\n num--;\n }\n System.out.println(taroP + \" \" + hanakoP);\n }",
"main",
"{\n int taroP = 0;\n int hanakoP = 0;\n int num = sc.nextInt();\n while (num > 0) {\n String taroStr = sc.next();\n String hanakoStr = sc.next();\n int result = taroStr.compareTo(hanakoStr);\n if (result > 0) {\n taroP = taroP + 3;\n } else if (result < 0){\n hanakoP = hanakoP + 3;\n }else {\n taroP++;\n hanakoP++;\n }\n num--;\n }\n System.out.println(taroP + \" \" + hanakoP);\n }",
"int taroP = 0;",
"taroP",
"0",
"int hanakoP = 0;",
"hanakoP",
"0",
"int num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"while (num > 0) {\n String taroStr = sc.next();\n String hanakoStr = sc.next();\n int result = taroStr.compareTo(hanakoStr);\n if (result > 0) {\n taroP = taroP + 3;\n } else if (result < 0){\n hanakoP = hanakoP + 3;\n }else {\n taroP++;\n hanakoP++;\n }\n num--;\n }",
"num > 0",
"num",
"0",
"{\n String taroStr = sc.next();\n String hanakoStr = sc.next();\n int result = taroStr.compareTo(hanakoStr);\n if (result > 0) {\n taroP = taroP + 3;\n } else if (result < 0){\n hanakoP = hanakoP + 3;\n }else {\n taroP++;\n hanakoP++;\n }\n num--;\n }",
"String taroStr = sc.next();",
"taroStr",
"sc.next()",
"sc.next",
"sc",
"String hanakoStr = sc.next();",
"hanakoStr",
"sc.next()",
"sc.next",
"sc",
"int result = taroStr.compareTo(hanakoStr);",
"result",
"taroStr.compareTo(hanakoStr)",
"taroStr.compareTo",
"taroStr",
"hanakoStr",
"if (result > 0) {\n taroP = taroP + 3;\n } else if (result < 0){\n hanakoP = hanakoP + 3;\n }else {\n taroP++;\n hanakoP++;\n }",
"result > 0",
"result",
"0",
"{\n taroP = taroP + 3;\n }",
"taroP = taroP + 3",
"taroP",
"taroP + 3",
"taroP",
"3",
"if (result < 0){\n hanakoP = hanakoP + 3;\n }else {\n taroP++;\n hanakoP++;\n }",
"result < 0",
"result",
"0",
"{\n hanakoP = hanakoP + 3;\n }",
"hanakoP = hanakoP + 3",
"hanakoP",
"hanakoP + 3",
"hanakoP",
"3",
"{\n taroP++;\n hanakoP++;\n }",
"taroP++",
"taroP",
"hanakoP++",
"hanakoP",
"num--",
"num",
"System.out.println(taroP + \" \" + hanakoP)",
"System.out.println",
"System.out",
"System",
"System.out",
"taroP + \" \" + hanakoP",
"taroP + \" \" + hanakoP",
"taroP",
"\" \"",
"hanakoP",
"String[] args",
"args",
"public class Main {\n static Scanner sc = new Scanner(System.in);\n\n public static void main(String[] args) {\n int taroP = 0;\n int hanakoP = 0;\n int num = sc.nextInt();\n while (num > 0) {\n String taroStr = sc.next();\n String hanakoStr = sc.next();\n int result = taroStr.compareTo(hanakoStr);\n if (result > 0) {\n taroP = taroP + 3;\n } else if (result < 0){\n hanakoP = hanakoP + 3;\n }else {\n taroP++;\n hanakoP++;\n }\n num--;\n }\n System.out.println(taroP + \" \" + hanakoP);\n }\n}",
"public class Main {\n static Scanner sc = new Scanner(System.in);\n\n public static void main(String[] args) {\n int taroP = 0;\n int hanakoP = 0;\n int num = sc.nextInt();\n while (num > 0) {\n String taroStr = sc.next();\n String hanakoStr = sc.next();\n int result = taroStr.compareTo(hanakoStr);\n if (result > 0) {\n taroP = taroP + 3;\n } else if (result < 0){\n hanakoP = hanakoP + 3;\n }else {\n taroP++;\n hanakoP++;\n }\n num--;\n }\n System.out.println(taroP + \" \" + hanakoP);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
int taroP = 0;
int hanakoP = 0;
int num = sc.nextInt();
while (num > 0) {
String taroStr = sc.next();
String hanakoStr = sc.next();
int result = taroStr.compareTo(hanakoStr);
if (result > 0) {
taroP = taroP + 3;
} else if (result < 0){
hanakoP = hanakoP + 3;
}else {
taroP++;
hanakoP++;
}
num--;
}
System.out.println(taroP + " " + hanakoP);
}
}
|
[
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
18,
13,
17,
18,
13,
17,
0,
13,
8,
2,
13,
17,
17,
8,
2,
13,
17,
17,
17,
0,
13,
8,
2,
13,
17,
17,
8,
2,
13,
17,
17,
17,
4,
18,
18,
13,
13,
2,
2,
13,
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
],
[
102,
11
],
[
102,
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
],
[
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
],
[
49,
50
],
[
50,
51
],
[
47,
52
],
[
44,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
44,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
65,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
70,
75
],
[
44,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
78,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
83,
88
],
[
14,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
95,
95
],
[
95,
96
],
[
95,
97
],
[
95,
98
],
[
12,
99
],
[
99,
100
],
[
0,
101
],
[
101,
102
],
[
101,
103
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int sum1=0;\n int sum2=0;\n for (int i = 0; i < n; i++) {\n String[] lines=br.readLine().split(\" \");\n int result=lines[0].compareToIgnoreCase(lines[1]);\n sum1+=result==0?1:result>0?3:0;\n sum2+=result==0?1:result<0?3:0;\n }\n System.out.println(sum1+\" \"+sum2);\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 public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int sum1=0;\n int sum2=0;\n for (int i = 0; i < n; i++) {\n String[] lines=br.readLine().split(\" \");\n int result=lines[0].compareToIgnoreCase(lines[1]);\n sum1+=result==0?1:result>0?3:0;\n sum2+=result==0?1:result<0?3:0;\n }\n System.out.println(sum1+\" \"+sum2);\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int sum1=0;\n int sum2=0;\n for (int i = 0; i < n; i++) {\n String[] lines=br.readLine().split(\" \");\n int result=lines[0].compareToIgnoreCase(lines[1]);\n sum1+=result==0?1:result>0?3:0;\n sum2+=result==0?1:result<0?3:0;\n }\n System.out.println(sum1+\" \"+sum2);\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int sum1=0;\n int sum2=0;\n for (int i = 0; i < n; i++) {\n String[] lines=br.readLine().split(\" \");\n int result=lines[0].compareToIgnoreCase(lines[1]);\n sum1+=result==0?1:result>0?3:0;\n sum2+=result==0?1:result<0?3:0;\n }\n System.out.println(sum1+\" \"+sum2);\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int sum1=0;",
"sum1",
"0",
"int sum2=0;",
"sum2",
"0",
"for (int i = 0; i < n; i++) {\n String[] lines=br.readLine().split(\" \");\n int result=lines[0].compareToIgnoreCase(lines[1]);\n sum1+=result==0?1:result>0?3:0;\n sum2+=result==0?1:result<0?3:0;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String[] lines=br.readLine().split(\" \");\n int result=lines[0].compareToIgnoreCase(lines[1]);\n sum1+=result==0?1:result>0?3:0;\n sum2+=result==0?1:result<0?3:0;\n }",
"{\n String[] lines=br.readLine().split(\" \");\n int result=lines[0].compareToIgnoreCase(lines[1]);\n sum1+=result==0?1:result>0?3:0;\n sum2+=result==0?1:result<0?3:0;\n }",
"String[] lines=br.readLine().split(\" \");",
"lines",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int result=lines[0].compareToIgnoreCase(lines[1]);",
"result",
"lines[0].compareToIgnoreCase(lines[1])",
"lines[0].compareToIgnoreCase",
"lines[0]",
"lines",
"0",
"lines[1]",
"lines",
"1",
"sum1+=result==0?1:result>0?3:0",
"sum1",
"result==0?1:result>0?3:0",
"result==0",
"result",
"0",
"1",
"result>0?3:0",
"result>0",
"result",
"0",
"3",
"0",
"sum2+=result==0?1:result<0?3:0",
"sum2",
"result==0?1:result<0?3:0",
"result==0",
"result",
"0",
"1",
"result<0?3:0",
"result<0",
"result",
"0",
"3",
"0",
"System.out.println(sum1+\" \"+sum2)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum1+\" \"+sum2",
"sum1+\" \"+sum2",
"sum1",
"\" \"",
"sum2",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int sum1=0;\n int sum2=0;\n for (int i = 0; i < n; i++) {\n String[] lines=br.readLine().split(\" \");\n int result=lines[0].compareToIgnoreCase(lines[1]);\n sum1+=result==0?1:result>0?3:0;\n sum2+=result==0?1:result<0?3:0;\n }\n System.out.println(sum1+\" \"+sum2);\n }\n}",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int sum1=0;\n int sum2=0;\n for (int i = 0; i < n; i++) {\n String[] lines=br.readLine().split(\" \");\n int result=lines[0].compareToIgnoreCase(lines[1]);\n sum1+=result==0?1:result>0?3:0;\n sum2+=result==0?1:result<0?3:0;\n }\n System.out.println(sum1+\" \"+sum2);\n }\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
int sum1=0;
int sum2=0;
for (int i = 0; i < n; i++) {
String[] lines=br.readLine().split(" ");
int result=lines[0].compareToIgnoreCase(lines[1]);
sum1+=result==0?1:result>0?3:0;
sum2+=result==0?1:result<0?3:0;
}
System.out.println(sum1+" "+sum2);
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
41,
13,
11,
1,
41,
13,
4,
18,
13,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
0,
13,
17,
30,
40,
13,
40,
13,
4,
18,
18,
13,
13,
17,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
83,
5
],
[
83,
6
],
[
6,
7
],
[
6,
8
],
[
83,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
22,
29
],
[
29,
30
],
[
29,
31
],
[
22,
32
],
[
32,
33
],
[
33,
34
],
[
22,
35
],
[
36,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
36,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
48,
53
],
[
47,
54
],
[
54,
55
],
[
54,
56
],
[
47,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
58,
63
],
[
57,
64
],
[
64,
65
],
[
64,
66
],
[
57,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
70,
71
],
[
11,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
72,
78
],
[
72,
79
],
[
9,
80
],
[
80,
81
],
[
0,
82
],
[
82,
83
],
[
82,
84
]
]
| [
"import java.util.Scanner;\n\npublic class Main{\n\n\tstatic final Scanner s=new Scanner(System.in);\n\n\tpublic static void main(String args[]){\n\t\tint t=0,h=0;\n\t\tString st,sh;\n\t\tfor(int i=s.nextInt();i>0;i--) {\n\t\t\tst=s.next();\n\t\t\tsh=s.next();\n\t\t\tif(st.compareTo(sh)>0)\n\t\t\t\tt+=3;\n\t\t\telse if(st.compareTo(sh)<0)\n\t\t\t\th+=3;\n\t\t\telse {\n\t\t\t\tt++;\n\t\t\t\th++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\",t,h);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\n\tstatic final Scanner s=new Scanner(System.in);\n\n\tpublic static void main(String args[]){\n\t\tint t=0,h=0;\n\t\tString st,sh;\n\t\tfor(int i=s.nextInt();i>0;i--) {\n\t\t\tst=s.next();\n\t\t\tsh=s.next();\n\t\t\tif(st.compareTo(sh)>0)\n\t\t\t\tt+=3;\n\t\t\telse if(st.compareTo(sh)<0)\n\t\t\t\th+=3;\n\t\t\telse {\n\t\t\t\tt++;\n\t\t\t\th++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\",t,h);\n\t}\n}",
"Main",
"static final Scanner s=new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"public static void main(String args[]){\n\t\tint t=0,h=0;\n\t\tString st,sh;\n\t\tfor(int i=s.nextInt();i>0;i--) {\n\t\t\tst=s.next();\n\t\t\tsh=s.next();\n\t\t\tif(st.compareTo(sh)>0)\n\t\t\t\tt+=3;\n\t\t\telse if(st.compareTo(sh)<0)\n\t\t\t\th+=3;\n\t\t\telse {\n\t\t\t\tt++;\n\t\t\t\th++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\",t,h);\n\t}",
"main",
"{\n\t\tint t=0,h=0;\n\t\tString st,sh;\n\t\tfor(int i=s.nextInt();i>0;i--) {\n\t\t\tst=s.next();\n\t\t\tsh=s.next();\n\t\t\tif(st.compareTo(sh)>0)\n\t\t\t\tt+=3;\n\t\t\telse if(st.compareTo(sh)<0)\n\t\t\t\th+=3;\n\t\t\telse {\n\t\t\t\tt++;\n\t\t\t\th++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\",t,h);\n\t}",
"int t=0",
"t",
"0",
"h=0;",
"h",
"0",
"String st",
"st",
"sh;",
"sh",
"for(int i=s.nextInt();i>0;i--) {\n\t\t\tst=s.next();\n\t\t\tsh=s.next();\n\t\t\tif(st.compareTo(sh)>0)\n\t\t\t\tt+=3;\n\t\t\telse if(st.compareTo(sh)<0)\n\t\t\t\th+=3;\n\t\t\telse {\n\t\t\t\tt++;\n\t\t\t\th++;\n\t\t\t}\n\t\t}",
"int i=s.nextInt();",
"int i=s.nextInt();",
"i",
"s.nextInt()",
"s.nextInt",
"s",
"i>0",
"i",
"0",
"i--",
"i--",
"i",
"{\n\t\t\tst=s.next();\n\t\t\tsh=s.next();\n\t\t\tif(st.compareTo(sh)>0)\n\t\t\t\tt+=3;\n\t\t\telse if(st.compareTo(sh)<0)\n\t\t\t\th+=3;\n\t\t\telse {\n\t\t\t\tt++;\n\t\t\t\th++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tst=s.next();\n\t\t\tsh=s.next();\n\t\t\tif(st.compareTo(sh)>0)\n\t\t\t\tt+=3;\n\t\t\telse if(st.compareTo(sh)<0)\n\t\t\t\th+=3;\n\t\t\telse {\n\t\t\t\tt++;\n\t\t\t\th++;\n\t\t\t}\n\t\t}",
"st=s.next()",
"st",
"s.next()",
"s.next",
"s",
"sh=s.next()",
"sh",
"s.next()",
"s.next",
"s",
"if(st.compareTo(sh)>0)\n\t\t\t\tt+=3;\n\t\t\telse if(st.compareTo(sh)<0)\n\t\t\t\th+=3;\n\t\t\telse {\n\t\t\t\tt++;\n\t\t\t\th++;\n\t\t\t}",
"st.compareTo(sh)>0",
"st.compareTo(sh)",
"st.compareTo",
"st",
"sh",
"0",
"t+=3",
"t",
"3",
"if(st.compareTo(sh)<0)\n\t\t\t\th+=3;\n\t\t\telse {\n\t\t\t\tt++;\n\t\t\t\th++;\n\t\t\t}",
"st.compareTo(sh)<0",
"st.compareTo(sh)",
"st.compareTo",
"st",
"sh",
"0",
"h+=3",
"h",
"3",
"{\n\t\t\t\tt++;\n\t\t\t\th++;\n\t\t\t}",
"t++",
"t",
"h++",
"h",
"System.out.printf(\"%d %d\\n\",t,h)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d %d\\n\"",
"t",
"h",
"String args[]",
"args",
"public class Main{\n\n\tstatic final Scanner s=new Scanner(System.in);\n\n\tpublic static void main(String args[]){\n\t\tint t=0,h=0;\n\t\tString st,sh;\n\t\tfor(int i=s.nextInt();i>0;i--) {\n\t\t\tst=s.next();\n\t\t\tsh=s.next();\n\t\t\tif(st.compareTo(sh)>0)\n\t\t\t\tt+=3;\n\t\t\telse if(st.compareTo(sh)<0)\n\t\t\t\th+=3;\n\t\t\telse {\n\t\t\t\tt++;\n\t\t\t\th++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\",t,h);\n\t}\n}",
"public class Main{\n\n\tstatic final Scanner s=new Scanner(System.in);\n\n\tpublic static void main(String args[]){\n\t\tint t=0,h=0;\n\t\tString st,sh;\n\t\tfor(int i=s.nextInt();i>0;i--) {\n\t\t\tst=s.next();\n\t\t\tsh=s.next();\n\t\t\tif(st.compareTo(sh)>0)\n\t\t\t\tt+=3;\n\t\t\telse if(st.compareTo(sh)<0)\n\t\t\t\th+=3;\n\t\t\telse {\n\t\t\t\tt++;\n\t\t\t\th++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\",t,h);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
static final Scanner s=new Scanner(System.in);
public static void main(String args[]){
int t=0,h=0;
String st,sh;
for(int i=s.nextInt();i>0;i--) {
st=s.next();
sh=s.next();
if(st.compareTo(sh)>0)
t+=3;
else if(st.compareTo(sh)<0)
h+=3;
else {
t++;
h++;
}
}
System.out.printf("%d %d\n",t,h);
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
41,
13,
41,
13,
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,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
0,
13,
17,
30,
40,
13,
40,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
90,
5
],
[
90,
6
],
[
6,
7
],
[
6,
8
],
[
90,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
11,
14
],
[
14,
15
],
[
11,
16
],
[
16,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
21
],
[
21,
22
],
[
21,
23
],
[
11,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
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
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
53,
58
],
[
52,
59
],
[
59,
60
],
[
59,
61
],
[
52,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
63,
68
],
[
62,
69
],
[
69,
70
],
[
69,
71
],
[
62,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
11,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
83,
83
],
[
83,
84
],
[
83,
85
],
[
83,
86
],
[
9,
87
],
[
87,
88
],
[
0,
89
],
[
89,
90
],
[
89,
91
]
]
| [
"import java.util.*;\npublic class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n \tint i, j, k;\n \tint tp = 0;\n \tint hp = 0;\n \tint n = sc.nextInt();\n \t\n \tfor(i = 0; i < n; i++) {\n \t\tString taro = sc.next();\n \t\tString hana = sc.next();\n \t\t\n \t\tif(taro.compareTo(hana) > 0) tp += 3;\n \t\telse if(taro.compareTo(hana) < 0) hp += 3;\n \t\telse {\n \t\t\ttp++;\n \t\t\thp++;\n \t\t}\n \t}\n \tSystem.out.println(tp + \" \" + hp);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n \tint i, j, k;\n \tint tp = 0;\n \tint hp = 0;\n \tint n = sc.nextInt();\n \t\n \tfor(i = 0; i < n; i++) {\n \t\tString taro = sc.next();\n \t\tString hana = sc.next();\n \t\t\n \t\tif(taro.compareTo(hana) > 0) tp += 3;\n \t\telse if(taro.compareTo(hana) < 0) hp += 3;\n \t\telse {\n \t\t\ttp++;\n \t\t\thp++;\n \t\t}\n \t}\n \tSystem.out.println(tp + \" \" + hp);\n }\n}",
"Main",
"public static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"public static void main(String[] args) throws Exception {\n \tint i, j, k;\n \tint tp = 0;\n \tint hp = 0;\n \tint n = sc.nextInt();\n \t\n \tfor(i = 0; i < n; i++) {\n \t\tString taro = sc.next();\n \t\tString hana = sc.next();\n \t\t\n \t\tif(taro.compareTo(hana) > 0) tp += 3;\n \t\telse if(taro.compareTo(hana) < 0) hp += 3;\n \t\telse {\n \t\t\ttp++;\n \t\t\thp++;\n \t\t}\n \t}\n \tSystem.out.println(tp + \" \" + hp);\n }",
"main",
"{\n \tint i, j, k;\n \tint tp = 0;\n \tint hp = 0;\n \tint n = sc.nextInt();\n \t\n \tfor(i = 0; i < n; i++) {\n \t\tString taro = sc.next();\n \t\tString hana = sc.next();\n \t\t\n \t\tif(taro.compareTo(hana) > 0) tp += 3;\n \t\telse if(taro.compareTo(hana) < 0) hp += 3;\n \t\telse {\n \t\t\ttp++;\n \t\t\thp++;\n \t\t}\n \t}\n \tSystem.out.println(tp + \" \" + hp);\n }",
"int i",
"i",
"j",
"j",
"k;",
"k",
"int tp = 0;",
"tp",
"0",
"int hp = 0;",
"hp",
"0",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(i = 0; i < n; i++) {\n \t\tString taro = sc.next();\n \t\tString hana = sc.next();\n \t\t\n \t\tif(taro.compareTo(hana) > 0) tp += 3;\n \t\telse if(taro.compareTo(hana) < 0) hp += 3;\n \t\telse {\n \t\t\ttp++;\n \t\t\thp++;\n \t\t}\n \t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \t\tString taro = sc.next();\n \t\tString hana = sc.next();\n \t\t\n \t\tif(taro.compareTo(hana) > 0) tp += 3;\n \t\telse if(taro.compareTo(hana) < 0) hp += 3;\n \t\telse {\n \t\t\ttp++;\n \t\t\thp++;\n \t\t}\n \t}",
"{\n \t\tString taro = sc.next();\n \t\tString hana = sc.next();\n \t\t\n \t\tif(taro.compareTo(hana) > 0) tp += 3;\n \t\telse if(taro.compareTo(hana) < 0) hp += 3;\n \t\telse {\n \t\t\ttp++;\n \t\t\thp++;\n \t\t}\n \t}",
"String taro = sc.next();",
"taro",
"sc.next()",
"sc.next",
"sc",
"String hana = sc.next();",
"hana",
"sc.next()",
"sc.next",
"sc",
"if(taro.compareTo(hana) > 0) tp += 3;\n \t\telse if(taro.compareTo(hana) < 0) hp += 3;\n \t\telse {\n \t\t\ttp++;\n \t\t\thp++;\n \t\t}",
"taro.compareTo(hana) > 0",
"taro.compareTo(hana)",
"taro.compareTo",
"taro",
"hana",
"0",
"tp += 3",
"tp",
"3",
"if(taro.compareTo(hana) < 0) hp += 3;\n \t\telse {\n \t\t\ttp++;\n \t\t\thp++;\n \t\t}",
"taro.compareTo(hana) < 0",
"taro.compareTo(hana)",
"taro.compareTo",
"taro",
"hana",
"0",
"hp += 3",
"hp",
"3",
"{\n \t\t\ttp++;\n \t\t\thp++;\n \t\t}",
"tp++",
"tp",
"hp++",
"hp",
"System.out.println(tp + \" \" + hp)",
"System.out.println",
"System.out",
"System",
"System.out",
"tp + \" \" + hp",
"tp + \" \" + hp",
"tp",
"\" \"",
"hp",
"String[] args",
"args",
"public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n \tint i, j, k;\n \tint tp = 0;\n \tint hp = 0;\n \tint n = sc.nextInt();\n \t\n \tfor(i = 0; i < n; i++) {\n \t\tString taro = sc.next();\n \t\tString hana = sc.next();\n \t\t\n \t\tif(taro.compareTo(hana) > 0) tp += 3;\n \t\telse if(taro.compareTo(hana) < 0) hp += 3;\n \t\telse {\n \t\t\ttp++;\n \t\t\thp++;\n \t\t}\n \t}\n \tSystem.out.println(tp + \" \" + hp);\n }\n}",
"public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n \tint i, j, k;\n \tint tp = 0;\n \tint hp = 0;\n \tint n = sc.nextInt();\n \t\n \tfor(i = 0; i < n; i++) {\n \t\tString taro = sc.next();\n \t\tString hana = sc.next();\n \t\t\n \t\tif(taro.compareTo(hana) > 0) tp += 3;\n \t\telse if(taro.compareTo(hana) < 0) hp += 3;\n \t\telse {\n \t\t\ttp++;\n \t\t\thp++;\n \t\t}\n \t}\n \tSystem.out.println(tp + \" \" + hp);\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static Scanner sc = new Scanner(System.in);
public static void main(String[] args) throws Exception {
int i, j, k;
int tp = 0;
int hp = 0;
int n = sc.nextInt();
for(i = 0; i < n; i++) {
String taro = sc.next();
String hana = sc.next();
if(taro.compareTo(hana) > 0) tp += 3;
else if(taro.compareTo(hana) < 0) hp += 3;
else {
tp++;
hp++;
}
}
System.out.println(tp + " " + hp);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
30,
0,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
17,
13,
13,
12,
13,
30,
4,
18,
20,
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
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
46,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
46,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
58,
63
],
[
57,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
57,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
72,
74
],
[
8,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
75,
81
],
[
75,
82
],
[
92,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
83,
89
],
[
89,
90
],
[
0,
91
],
[
91,
92
],
[
91,
93
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint tscore = 0;\n\t\tint hscore = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString tcard = scan.next();\n\t\t\tString hcard = scan.next();\n\t\t\tif (tcard.compareToIgnoreCase(hcard) > 0) {\n\t\t\t\ttscore += 3;\n\t\t\t} else if (tcard.compareToIgnoreCase(hcard) < 0) {\n\t\t\t\thscore += 3;\n\t\t\t} else {\n\t\t\t\ttscore += 1;\n\t\t\t\thscore += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\", tscore, hscore);\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint tscore = 0;\n\t\tint hscore = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString tcard = scan.next();\n\t\t\tString hcard = scan.next();\n\t\t\tif (tcard.compareToIgnoreCase(hcard) > 0) {\n\t\t\t\ttscore += 3;\n\t\t\t} else if (tcard.compareToIgnoreCase(hcard) < 0) {\n\t\t\t\thscore += 3;\n\t\t\t} else {\n\t\t\t\ttscore += 1;\n\t\t\t\thscore += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\", tscore, hscore);\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"Main",
"void run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint tscore = 0;\n\t\tint hscore = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString tcard = scan.next();\n\t\t\tString hcard = scan.next();\n\t\t\tif (tcard.compareToIgnoreCase(hcard) > 0) {\n\t\t\t\ttscore += 3;\n\t\t\t} else if (tcard.compareToIgnoreCase(hcard) < 0) {\n\t\t\t\thscore += 3;\n\t\t\t} else {\n\t\t\t\ttscore += 1;\n\t\t\t\thscore += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\", tscore, hscore);\n\t}",
"run",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint tscore = 0;\n\t\tint hscore = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString tcard = scan.next();\n\t\t\tString hcard = scan.next();\n\t\t\tif (tcard.compareToIgnoreCase(hcard) > 0) {\n\t\t\t\ttscore += 3;\n\t\t\t} else if (tcard.compareToIgnoreCase(hcard) < 0) {\n\t\t\t\thscore += 3;\n\t\t\t} else {\n\t\t\t\ttscore += 1;\n\t\t\t\thscore += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\", tscore, hscore);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int tscore = 0;",
"tscore",
"0",
"int hscore = 0;",
"hscore",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\tString tcard = scan.next();\n\t\t\tString hcard = scan.next();\n\t\t\tif (tcard.compareToIgnoreCase(hcard) > 0) {\n\t\t\t\ttscore += 3;\n\t\t\t} else if (tcard.compareToIgnoreCase(hcard) < 0) {\n\t\t\t\thscore += 3;\n\t\t\t} else {\n\t\t\t\ttscore += 1;\n\t\t\t\thscore += 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 tcard = scan.next();\n\t\t\tString hcard = scan.next();\n\t\t\tif (tcard.compareToIgnoreCase(hcard) > 0) {\n\t\t\t\ttscore += 3;\n\t\t\t} else if (tcard.compareToIgnoreCase(hcard) < 0) {\n\t\t\t\thscore += 3;\n\t\t\t} else {\n\t\t\t\ttscore += 1;\n\t\t\t\thscore += 1;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString tcard = scan.next();\n\t\t\tString hcard = scan.next();\n\t\t\tif (tcard.compareToIgnoreCase(hcard) > 0) {\n\t\t\t\ttscore += 3;\n\t\t\t} else if (tcard.compareToIgnoreCase(hcard) < 0) {\n\t\t\t\thscore += 3;\n\t\t\t} else {\n\t\t\t\ttscore += 1;\n\t\t\t\thscore += 1;\n\t\t\t}\n\t\t}",
"String tcard = scan.next();",
"tcard",
"scan.next()",
"scan.next",
"scan",
"String hcard = scan.next();",
"hcard",
"scan.next()",
"scan.next",
"scan",
"if (tcard.compareToIgnoreCase(hcard) > 0) {\n\t\t\t\ttscore += 3;\n\t\t\t} else if (tcard.compareToIgnoreCase(hcard) < 0) {\n\t\t\t\thscore += 3;\n\t\t\t} else {\n\t\t\t\ttscore += 1;\n\t\t\t\thscore += 1;\n\t\t\t}",
"tcard.compareToIgnoreCase(hcard) > 0",
"tcard.compareToIgnoreCase(hcard)",
"tcard.compareToIgnoreCase",
"tcard",
"hcard",
"0",
"{\n\t\t\t\ttscore += 3;\n\t\t\t}",
"tscore += 3",
"tscore",
"3",
"if (tcard.compareToIgnoreCase(hcard) < 0) {\n\t\t\t\thscore += 3;\n\t\t\t} else {\n\t\t\t\ttscore += 1;\n\t\t\t\thscore += 1;\n\t\t\t}",
"tcard.compareToIgnoreCase(hcard) < 0",
"tcard.compareToIgnoreCase(hcard)",
"tcard.compareToIgnoreCase",
"tcard",
"hcard",
"0",
"{\n\t\t\t\thscore += 3;\n\t\t\t}",
"hscore += 3",
"hscore",
"3",
"{\n\t\t\t\ttscore += 1;\n\t\t\t\thscore += 1;\n\t\t\t}",
"tscore += 1",
"tscore",
"1",
"hscore += 1",
"hscore",
"1",
"System.out.printf(\"%d %d\\n\", tscore, hscore)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d %d\\n\"",
"tscore",
"hscore",
"public static void main(String[] args) {\n\t\tnew Main().run();\n\t}",
"main",
"{\n\t\tnew Main().run();\n\t}",
"new Main().run()",
"new Main().run",
"new Main()",
"String[] args",
"args",
"public class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint tscore = 0;\n\t\tint hscore = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString tcard = scan.next();\n\t\t\tString hcard = scan.next();\n\t\t\tif (tcard.compareToIgnoreCase(hcard) > 0) {\n\t\t\t\ttscore += 3;\n\t\t\t} else if (tcard.compareToIgnoreCase(hcard) < 0) {\n\t\t\t\thscore += 3;\n\t\t\t} else {\n\t\t\t\ttscore += 1;\n\t\t\t\thscore += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\", tscore, hscore);\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"public class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint tscore = 0;\n\t\tint hscore = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString tcard = scan.next();\n\t\t\tString hcard = scan.next();\n\t\t\tif (tcard.compareToIgnoreCase(hcard) > 0) {\n\t\t\t\ttscore += 3;\n\t\t\t} else if (tcard.compareToIgnoreCase(hcard) < 0) {\n\t\t\t\thscore += 3;\n\t\t\t} else {\n\t\t\t\ttscore += 1;\n\t\t\t\thscore += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\", tscore, hscore);\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
void run() {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int tscore = 0;
int hscore = 0;
for (int i = 0; i < n; i++) {
String tcard = scan.next();
String hcard = scan.next();
if (tcard.compareToIgnoreCase(hcard) > 0) {
tscore += 3;
} else if (tcard.compareToIgnoreCase(hcard) < 0) {
hscore += 3;
} else {
tscore += 1;
hscore += 1;
}
}
System.out.printf("%d %d\n", tscore, hscore);
}
public static void main(String[] args) {
new Main().run();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
28,
13,
13,
30,
30,
41,
13,
4,
18,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
0,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
0,
13,
17,
30,
0,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
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
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
43,
44
],
[
44,
45
],
[
8,
46
],
[
46,
47
],
[
46,
48
],
[
8,
49
],
[
49,
50
],
[
49,
51
],
[
8,
52
],
[
52,
53
],
[
52,
54
],
[
52,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
56,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
64,
73
],
[
63,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
63,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
79,
88
],
[
78,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
78,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
97,
99
],
[
8,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
106,
106
],
[
106,
107
],
[
106,
108
],
[
106,
109
],
[
6,
110
],
[
110,
111
],
[
0,
112
],
[
112,
113
],
[
112,
114
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line = sc.nextLine();\n\t\tString[] k = new String[Integer.parseInt(line)];\n\n\t\tfor (int i = 0; i < k.length; i++) {\n\t\t\tk[i] = sc.nextLine();\n\t\t}\n\t\tint tarou = 0;\n\t\tint hanako = 0;\n\t\tfor (String string : k) {\n\t\t\tString[] tehuda = string.split(\" \");\n\n\t\t\tif (tehuda[0].compareToIgnoreCase(tehuda[1]) > 0) {\n\t\t\t\ttarou += 3;\n\t\t\t} else if (tehuda[0].compareToIgnoreCase(tehuda[1]) < 0) {\n\t\t\t\thanako += 3;\n\t\t\t} else {\n\t\t\t\ttarou += 1;\n\t\t\t\thanako += 1;\n\t\t\t}\n\t\t}System.out.println(tarou+\" \"+hanako);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line = sc.nextLine();\n\t\tString[] k = new String[Integer.parseInt(line)];\n\n\t\tfor (int i = 0; i < k.length; i++) {\n\t\t\tk[i] = sc.nextLine();\n\t\t}\n\t\tint tarou = 0;\n\t\tint hanako = 0;\n\t\tfor (String string : k) {\n\t\t\tString[] tehuda = string.split(\" \");\n\n\t\t\tif (tehuda[0].compareToIgnoreCase(tehuda[1]) > 0) {\n\t\t\t\ttarou += 3;\n\t\t\t} else if (tehuda[0].compareToIgnoreCase(tehuda[1]) < 0) {\n\t\t\t\thanako += 3;\n\t\t\t} else {\n\t\t\t\ttarou += 1;\n\t\t\t\thanako += 1;\n\t\t\t}\n\t\t}System.out.println(tarou+\" \"+hanako);\n\t}\n}",
"Main",
"public static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line = sc.nextLine();\n\t\tString[] k = new String[Integer.parseInt(line)];\n\n\t\tfor (int i = 0; i < k.length; i++) {\n\t\t\tk[i] = sc.nextLine();\n\t\t}\n\t\tint tarou = 0;\n\t\tint hanako = 0;\n\t\tfor (String string : k) {\n\t\t\tString[] tehuda = string.split(\" \");\n\n\t\t\tif (tehuda[0].compareToIgnoreCase(tehuda[1]) > 0) {\n\t\t\t\ttarou += 3;\n\t\t\t} else if (tehuda[0].compareToIgnoreCase(tehuda[1]) < 0) {\n\t\t\t\thanako += 3;\n\t\t\t} else {\n\t\t\t\ttarou += 1;\n\t\t\t\thanako += 1;\n\t\t\t}\n\t\t}System.out.println(tarou+\" \"+hanako);\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line = sc.nextLine();\n\t\tString[] k = new String[Integer.parseInt(line)];\n\n\t\tfor (int i = 0; i < k.length; i++) {\n\t\t\tk[i] = sc.nextLine();\n\t\t}\n\t\tint tarou = 0;\n\t\tint hanako = 0;\n\t\tfor (String string : k) {\n\t\t\tString[] tehuda = string.split(\" \");\n\n\t\t\tif (tehuda[0].compareToIgnoreCase(tehuda[1]) > 0) {\n\t\t\t\ttarou += 3;\n\t\t\t} else if (tehuda[0].compareToIgnoreCase(tehuda[1]) < 0) {\n\t\t\t\thanako += 3;\n\t\t\t} else {\n\t\t\t\ttarou += 1;\n\t\t\t\thanako += 1;\n\t\t\t}\n\t\t}System.out.println(tarou+\" \"+hanako);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String line = sc.nextLine();",
"line",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String[] k = new String[Integer.parseInt(line)];",
"k",
"new String[Integer.parseInt(line)]",
"Integer.parseInt(line)",
"Integer.parseInt",
"Integer",
"line",
"for (int i = 0; i < k.length; i++) {\n\t\t\tk[i] = sc.nextLine();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < k.length",
"i",
"k.length",
"k",
"k.length",
"i++",
"i++",
"i",
"{\n\t\t\tk[i] = sc.nextLine();\n\t\t}",
"{\n\t\t\tk[i] = sc.nextLine();\n\t\t}",
"k[i] = sc.nextLine()",
"k[i]",
"k",
"i",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int tarou = 0;",
"tarou",
"0",
"int hanako = 0;",
"hanako",
"0",
"for (String string : k) {\n\t\t\tString[] tehuda = string.split(\" \");\n\n\t\t\tif (tehuda[0].compareToIgnoreCase(tehuda[1]) > 0) {\n\t\t\t\ttarou += 3;\n\t\t\t} else if (tehuda[0].compareToIgnoreCase(tehuda[1]) < 0) {\n\t\t\t\thanako += 3;\n\t\t\t} else {\n\t\t\t\ttarou += 1;\n\t\t\t\thanako += 1;\n\t\t\t}\n\t\t}",
"String string",
"k",
"{\n\t\t\tString[] tehuda = string.split(\" \");\n\n\t\t\tif (tehuda[0].compareToIgnoreCase(tehuda[1]) > 0) {\n\t\t\t\ttarou += 3;\n\t\t\t} else if (tehuda[0].compareToIgnoreCase(tehuda[1]) < 0) {\n\t\t\t\thanako += 3;\n\t\t\t} else {\n\t\t\t\ttarou += 1;\n\t\t\t\thanako += 1;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString[] tehuda = string.split(\" \");\n\n\t\t\tif (tehuda[0].compareToIgnoreCase(tehuda[1]) > 0) {\n\t\t\t\ttarou += 3;\n\t\t\t} else if (tehuda[0].compareToIgnoreCase(tehuda[1]) < 0) {\n\t\t\t\thanako += 3;\n\t\t\t} else {\n\t\t\t\ttarou += 1;\n\t\t\t\thanako += 1;\n\t\t\t}\n\t\t}",
"String[] tehuda = string.split(\" \");",
"tehuda",
"string.split(\" \")",
"string.split",
"string",
"\" \"",
"if (tehuda[0].compareToIgnoreCase(tehuda[1]) > 0) {\n\t\t\t\ttarou += 3;\n\t\t\t} else if (tehuda[0].compareToIgnoreCase(tehuda[1]) < 0) {\n\t\t\t\thanako += 3;\n\t\t\t} else {\n\t\t\t\ttarou += 1;\n\t\t\t\thanako += 1;\n\t\t\t}",
"tehuda[0].compareToIgnoreCase(tehuda[1]) > 0",
"tehuda[0].compareToIgnoreCase(tehuda[1])",
"tehuda[0].compareToIgnoreCase",
"tehuda[0]",
"tehuda",
"0",
"tehuda[1]",
"tehuda",
"1",
"0",
"{\n\t\t\t\ttarou += 3;\n\t\t\t}",
"tarou += 3",
"tarou",
"3",
"if (tehuda[0].compareToIgnoreCase(tehuda[1]) < 0) {\n\t\t\t\thanako += 3;\n\t\t\t} else {\n\t\t\t\ttarou += 1;\n\t\t\t\thanako += 1;\n\t\t\t}",
"tehuda[0].compareToIgnoreCase(tehuda[1]) < 0",
"tehuda[0].compareToIgnoreCase(tehuda[1])",
"tehuda[0].compareToIgnoreCase",
"tehuda[0]",
"tehuda",
"0",
"tehuda[1]",
"tehuda",
"1",
"0",
"{\n\t\t\t\thanako += 3;\n\t\t\t}",
"hanako += 3",
"hanako",
"3",
"{\n\t\t\t\ttarou += 1;\n\t\t\t\thanako += 1;\n\t\t\t}",
"tarou += 1",
"tarou",
"1",
"hanako += 1",
"hanako",
"1",
"System.out.println(tarou+\" \"+hanako)",
"System.out.println",
"System.out",
"System",
"System.out",
"tarou+\" \"+hanako",
"tarou+\" \"+hanako",
"tarou",
"\" \"",
"hanako",
"String[] arges",
"arges",
"public class Main {\n\tpublic static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line = sc.nextLine();\n\t\tString[] k = new String[Integer.parseInt(line)];\n\n\t\tfor (int i = 0; i < k.length; i++) {\n\t\t\tk[i] = sc.nextLine();\n\t\t}\n\t\tint tarou = 0;\n\t\tint hanako = 0;\n\t\tfor (String string : k) {\n\t\t\tString[] tehuda = string.split(\" \");\n\n\t\t\tif (tehuda[0].compareToIgnoreCase(tehuda[1]) > 0) {\n\t\t\t\ttarou += 3;\n\t\t\t} else if (tehuda[0].compareToIgnoreCase(tehuda[1]) < 0) {\n\t\t\t\thanako += 3;\n\t\t\t} else {\n\t\t\t\ttarou += 1;\n\t\t\t\thanako += 1;\n\t\t\t}\n\t\t}System.out.println(tarou+\" \"+hanako);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line = sc.nextLine();\n\t\tString[] k = new String[Integer.parseInt(line)];\n\n\t\tfor (int i = 0; i < k.length; i++) {\n\t\t\tk[i] = sc.nextLine();\n\t\t}\n\t\tint tarou = 0;\n\t\tint hanako = 0;\n\t\tfor (String string : k) {\n\t\t\tString[] tehuda = string.split(\" \");\n\n\t\t\tif (tehuda[0].compareToIgnoreCase(tehuda[1]) > 0) {\n\t\t\t\ttarou += 3;\n\t\t\t} else if (tehuda[0].compareToIgnoreCase(tehuda[1]) < 0) {\n\t\t\t\thanako += 3;\n\t\t\t} else {\n\t\t\t\ttarou += 1;\n\t\t\t\thanako += 1;\n\t\t\t}\n\t\t}System.out.println(tarou+\" \"+hanako);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] arges) {
Scanner sc = new Scanner(System.in);
String line = sc.nextLine();
String[] k = new String[Integer.parseInt(line)];
for (int i = 0; i < k.length; i++) {
k[i] = sc.nextLine();
}
int tarou = 0;
int hanako = 0;
for (String string : k) {
String[] tehuda = string.split(" ");
if (tehuda[0].compareToIgnoreCase(tehuda[1]) > 0) {
tarou += 3;
} else if (tehuda[0].compareToIgnoreCase(tehuda[1]) < 0) {
hanako += 3;
} else {
tarou += 1;
hanako += 1;
}
}System.out.println(tarou+" "+hanako);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
4,
13,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
0,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
0,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
40,
13,
40,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
117,
8
],
[
117,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
9,
18
],
[
18,
19
],
[
117,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
29,
30
],
[
22,
31
],
[
31,
32
],
[
31,
33
],
[
22,
34
],
[
34,
35
],
[
34,
36
],
[
22,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
52,
57
],
[
49,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
59,
68
],
[
58,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
58,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
74,
83
],
[
73,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
73,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
89,
98
],
[
88,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
102,
103
],
[
22,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
110,
110
],
[
110,
111
],
[
110,
112
],
[
110,
113
],
[
20,
114
],
[
114,
115
],
[
0,
116
],
[
116,
117
],
[
116,
118
]
]
| [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n execute(br);\n } \n\n private static void execute(BufferedReader br) throws Exception {\n int n = Integer.parseInt(br.readLine());\n int taro = 0, hanako = 0;\n for (int i = 0; i < n; i++) {\n String[] strs = br.readLine().split(\" \");\n if (strs[0].compareTo(strs[1]) > 0) {\n taro += 3;\n } \n else if(strs[0].compareTo(strs[1]) < 0) {\n hanako += 3; \n } \n else if(strs[0].compareTo(strs[1]) == 0) {\n taro++;\n hanako++;\n } \n } \n System.out.println(taro + \" \" + hanako);\n } \n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n execute(br);\n } \n\n private static void execute(BufferedReader br) throws Exception {\n int n = Integer.parseInt(br.readLine());\n int taro = 0, hanako = 0;\n for (int i = 0; i < n; i++) {\n String[] strs = br.readLine().split(\" \");\n if (strs[0].compareTo(strs[1]) > 0) {\n taro += 3;\n } \n else if(strs[0].compareTo(strs[1]) < 0) {\n hanako += 3; \n } \n else if(strs[0].compareTo(strs[1]) == 0) {\n taro++;\n hanako++;\n } \n } \n System.out.println(taro + \" \" + hanako);\n } \n}",
"Main",
"public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n execute(br);\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n execute(br);\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"execute(br)",
"execute",
"br",
"String[] args",
"args",
"private static void execute(BufferedReader br) throws Exception {\n int n = Integer.parseInt(br.readLine());\n int taro = 0, hanako = 0;\n for (int i = 0; i < n; i++) {\n String[] strs = br.readLine().split(\" \");\n if (strs[0].compareTo(strs[1]) > 0) {\n taro += 3;\n } \n else if(strs[0].compareTo(strs[1]) < 0) {\n hanako += 3; \n } \n else if(strs[0].compareTo(strs[1]) == 0) {\n taro++;\n hanako++;\n } \n } \n System.out.println(taro + \" \" + hanako);\n }",
"execute",
"{\n int n = Integer.parseInt(br.readLine());\n int taro = 0, hanako = 0;\n for (int i = 0; i < n; i++) {\n String[] strs = br.readLine().split(\" \");\n if (strs[0].compareTo(strs[1]) > 0) {\n taro += 3;\n } \n else if(strs[0].compareTo(strs[1]) < 0) {\n hanako += 3; \n } \n else if(strs[0].compareTo(strs[1]) == 0) {\n taro++;\n hanako++;\n } \n } \n System.out.println(taro + \" \" + hanako);\n }",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int taro = 0",
"taro",
"0",
"hanako = 0;",
"hanako",
"0",
"for (int i = 0; i < n; i++) {\n String[] strs = br.readLine().split(\" \");\n if (strs[0].compareTo(strs[1]) > 0) {\n taro += 3;\n } \n else if(strs[0].compareTo(strs[1]) < 0) {\n hanako += 3; \n } \n else if(strs[0].compareTo(strs[1]) == 0) {\n taro++;\n hanako++;\n } \n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String[] strs = br.readLine().split(\" \");\n if (strs[0].compareTo(strs[1]) > 0) {\n taro += 3;\n } \n else if(strs[0].compareTo(strs[1]) < 0) {\n hanako += 3; \n } \n else if(strs[0].compareTo(strs[1]) == 0) {\n taro++;\n hanako++;\n } \n }",
"{\n String[] strs = br.readLine().split(\" \");\n if (strs[0].compareTo(strs[1]) > 0) {\n taro += 3;\n } \n else if(strs[0].compareTo(strs[1]) < 0) {\n hanako += 3; \n } \n else if(strs[0].compareTo(strs[1]) == 0) {\n taro++;\n hanako++;\n } \n }",
"String[] strs = br.readLine().split(\" \");",
"strs",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"if (strs[0].compareTo(strs[1]) > 0) {\n taro += 3;\n } \n else if(strs[0].compareTo(strs[1]) < 0) {\n hanako += 3; \n } \n else if(strs[0].compareTo(strs[1]) == 0) {\n taro++;\n hanako++;\n }",
"strs[0].compareTo(strs[1]) > 0",
"strs[0].compareTo(strs[1])",
"strs[0].compareTo",
"strs[0]",
"strs",
"0",
"strs[1]",
"strs",
"1",
"0",
"{\n taro += 3;\n }",
"taro += 3",
"taro",
"3",
"if(strs[0].compareTo(strs[1]) < 0) {\n hanako += 3; \n } \n else if(strs[0].compareTo(strs[1]) == 0) {\n taro++;\n hanako++;\n }",
"strs[0].compareTo(strs[1]) < 0",
"strs[0].compareTo(strs[1])",
"strs[0].compareTo",
"strs[0]",
"strs",
"0",
"strs[1]",
"strs",
"1",
"0",
"{\n hanako += 3; \n }",
"hanako += 3",
"hanako",
"3",
"if(strs[0].compareTo(strs[1]) == 0) {\n taro++;\n hanako++;\n }",
"strs[0].compareTo(strs[1]) == 0",
"strs[0].compareTo(strs[1])",
"strs[0].compareTo",
"strs[0]",
"strs",
"0",
"strs[1]",
"strs",
"1",
"0",
"{\n taro++;\n hanako++;\n }",
"taro++",
"taro",
"hanako++",
"hanako",
"System.out.println(taro + \" \" + hanako)",
"System.out.println",
"System.out",
"System",
"System.out",
"taro + \" \" + hanako",
"taro + \" \" + hanako",
"taro",
"\" \"",
"hanako",
"BufferedReader br",
"br",
"public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n execute(br);\n } \n\n private static void execute(BufferedReader br) throws Exception {\n int n = Integer.parseInt(br.readLine());\n int taro = 0, hanako = 0;\n for (int i = 0; i < n; i++) {\n String[] strs = br.readLine().split(\" \");\n if (strs[0].compareTo(strs[1]) > 0) {\n taro += 3;\n } \n else if(strs[0].compareTo(strs[1]) < 0) {\n hanako += 3; \n } \n else if(strs[0].compareTo(strs[1]) == 0) {\n taro++;\n hanako++;\n } \n } \n System.out.println(taro + \" \" + hanako);\n } \n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n execute(br);\n } \n\n private static void execute(BufferedReader br) throws Exception {\n int n = Integer.parseInt(br.readLine());\n int taro = 0, hanako = 0;\n for (int i = 0; i < n; i++) {\n String[] strs = br.readLine().split(\" \");\n if (strs[0].compareTo(strs[1]) > 0) {\n taro += 3;\n } \n else if(strs[0].compareTo(strs[1]) < 0) {\n hanako += 3; \n } \n else if(strs[0].compareTo(strs[1]) == 0) {\n taro++;\n hanako++;\n } \n } \n System.out.println(taro + \" \" + hanako);\n } \n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
execute(br);
}
private static void execute(BufferedReader br) throws Exception {
int n = Integer.parseInt(br.readLine());
int taro = 0, hanako = 0;
for (int i = 0; i < n; i++) {
String[] strs = br.readLine().split(" ");
if (strs[0].compareTo(strs[1]) > 0) {
taro += 3;
}
else if(strs[0].compareTo(strs[1]) < 0) {
hanako += 3;
}
else if(strs[0].compareTo(strs[1]) == 0) {
taro++;
hanako++;
}
}
System.out.println(taro + " " + hanako);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
0,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
0,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
40,
13,
40,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
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
],
[
50,
51
],
[
49,
52
],
[
41,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
54,
63
],
[
53,
64
],
[
64,
65
],
[
64,
66
],
[
53,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
74,
75
],
[
74,
76
],
[
68,
77
],
[
67,
78
],
[
78,
79
],
[
78,
80
],
[
67,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
88,
89
],
[
88,
90
],
[
82,
91
],
[
81,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
95,
96
],
[
8,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
103,
103
],
[
103,
104
],
[
103,
105
],
[
103,
106
],
[
6,
107
],
[
107,
108
]
]
| [
"import java.io.*;\nclass Main\n{\n public static void main(String args[])throws IOException\n {\n\tBufferedReader input=new BufferedReader(new InputStreamReader(System.in));\n\tString str1=input.readLine();\n\tint n=Integer.parseInt(str1);\n\tint a=0,b=0;\n\tfor(int i=0;i<n;i++)\n\t {\n\t\tString str3=input.readLine();\n\tString str2[]=str3.split(\" \");\n\tif(str2[0].compareTo(str2[1])>0)a+=3;\n\telse if(str2[0].compareTo(str2[1])<0)b+=3;\n\telse if(str2[0].compareTo(str2[1])==0)\n\t {\n\t\ta++;\n\t\tb++;\n\t }\n\n\t }\n\tSystem.out.println(a+\" \"+b);\n }\n}",
"import java.io.*;",
"io.*",
"java",
"class Main\n{\n public static void main(String args[])throws IOException\n {\n\tBufferedReader input=new BufferedReader(new InputStreamReader(System.in));\n\tString str1=input.readLine();\n\tint n=Integer.parseInt(str1);\n\tint a=0,b=0;\n\tfor(int i=0;i<n;i++)\n\t {\n\t\tString str3=input.readLine();\n\tString str2[]=str3.split(\" \");\n\tif(str2[0].compareTo(str2[1])>0)a+=3;\n\telse if(str2[0].compareTo(str2[1])<0)b+=3;\n\telse if(str2[0].compareTo(str2[1])==0)\n\t {\n\t\ta++;\n\t\tb++;\n\t }\n\n\t }\n\tSystem.out.println(a+\" \"+b);\n }\n}",
"Main",
"public static void main(String args[])throws IOException\n {\n\tBufferedReader input=new BufferedReader(new InputStreamReader(System.in));\n\tString str1=input.readLine();\n\tint n=Integer.parseInt(str1);\n\tint a=0,b=0;\n\tfor(int i=0;i<n;i++)\n\t {\n\t\tString str3=input.readLine();\n\tString str2[]=str3.split(\" \");\n\tif(str2[0].compareTo(str2[1])>0)a+=3;\n\telse if(str2[0].compareTo(str2[1])<0)b+=3;\n\telse if(str2[0].compareTo(str2[1])==0)\n\t {\n\t\ta++;\n\t\tb++;\n\t }\n\n\t }\n\tSystem.out.println(a+\" \"+b);\n }",
"main",
"{\n\tBufferedReader input=new BufferedReader(new InputStreamReader(System.in));\n\tString str1=input.readLine();\n\tint n=Integer.parseInt(str1);\n\tint a=0,b=0;\n\tfor(int i=0;i<n;i++)\n\t {\n\t\tString str3=input.readLine();\n\tString str2[]=str3.split(\" \");\n\tif(str2[0].compareTo(str2[1])>0)a+=3;\n\telse if(str2[0].compareTo(str2[1])<0)b+=3;\n\telse if(str2[0].compareTo(str2[1])==0)\n\t {\n\t\ta++;\n\t\tb++;\n\t }\n\n\t }\n\tSystem.out.println(a+\" \"+b);\n }",
"BufferedReader input=new BufferedReader(new InputStreamReader(System.in));",
"input",
"new BufferedReader(new InputStreamReader(System.in))",
"String str1=input.readLine();",
"str1",
"input.readLine()",
"input.readLine",
"input",
"int n=Integer.parseInt(str1);",
"n",
"Integer.parseInt(str1)",
"Integer.parseInt",
"Integer",
"str1",
"int a=0",
"a",
"0",
"b=0;",
"b",
"0",
"for(int i=0;i<n;i++)\n\t {\n\t\tString str3=input.readLine();\n\tString str2[]=str3.split(\" \");\n\tif(str2[0].compareTo(str2[1])>0)a+=3;\n\telse if(str2[0].compareTo(str2[1])<0)b+=3;\n\telse if(str2[0].compareTo(str2[1])==0)\n\t {\n\t\ta++;\n\t\tb++;\n\t }\n\n\t }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\tString str3=input.readLine();\n\tString str2[]=str3.split(\" \");\n\tif(str2[0].compareTo(str2[1])>0)a+=3;\n\telse if(str2[0].compareTo(str2[1])<0)b+=3;\n\telse if(str2[0].compareTo(str2[1])==0)\n\t {\n\t\ta++;\n\t\tb++;\n\t }\n\n\t }",
"{\n\t\tString str3=input.readLine();\n\tString str2[]=str3.split(\" \");\n\tif(str2[0].compareTo(str2[1])>0)a+=3;\n\telse if(str2[0].compareTo(str2[1])<0)b+=3;\n\telse if(str2[0].compareTo(str2[1])==0)\n\t {\n\t\ta++;\n\t\tb++;\n\t }\n\n\t }",
"String str3=input.readLine();",
"str3",
"input.readLine()",
"input.readLine",
"input",
"String str2[]=str3.split(\" \");",
"str2",
"str3.split(\" \")",
"str3.split",
"str3",
"\" \"",
"if(str2[0].compareTo(str2[1])>0)a+=3;\n\telse if(str2[0].compareTo(str2[1])<0)b+=3;\n\telse if(str2[0].compareTo(str2[1])==0)\n\t {\n\t\ta++;\n\t\tb++;\n\t }",
"str2[0].compareTo(str2[1])>0",
"str2[0].compareTo(str2[1])",
"str2[0].compareTo",
"str2[0]",
"str2",
"0",
"str2[1]",
"str2",
"1",
"0",
"a+=3",
"a",
"3",
"if(str2[0].compareTo(str2[1])<0)b+=3;\n\telse if(str2[0].compareTo(str2[1])==0)\n\t {\n\t\ta++;\n\t\tb++;\n\t }",
"str2[0].compareTo(str2[1])<0",
"str2[0].compareTo(str2[1])",
"str2[0].compareTo",
"str2[0]",
"str2",
"0",
"str2[1]",
"str2",
"1",
"0",
"b+=3",
"b",
"3",
"if(str2[0].compareTo(str2[1])==0)\n\t {\n\t\ta++;\n\t\tb++;\n\t }",
"str2[0].compareTo(str2[1])==0",
"str2[0].compareTo(str2[1])",
"str2[0].compareTo",
"str2[0]",
"str2",
"0",
"str2[1]",
"str2",
"1",
"0",
"{\n\t\ta++;\n\t\tb++;\n\t }",
"a++",
"a",
"b++",
"b",
"System.out.println(a+\" \"+b)",
"System.out.println",
"System.out",
"System",
"System.out",
"a+\" \"+b",
"a+\" \"+b",
"a",
"\" \"",
"b",
"String args[]",
"args"
]
| import java.io.*;
class Main
{
public static void main(String args[])throws IOException
{
BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
String str1=input.readLine();
int n=Integer.parseInt(str1);
int a=0,b=0;
for(int i=0;i<n;i++)
{
String str3=input.readLine();
String str2[]=str3.split(" ");
if(str2[0].compareTo(str2[1])>0)a+=3;
else if(str2[0].compareTo(str2[1])<0)b+=3;
else if(str2[0].compareTo(str2[1])==0)
{
a++;
b++;
}
}
System.out.println(a+" "+b);
}
} |
[
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
30,
40,
13,
40,
13,
4,
18,
18,
13,
13,
2,
2,
13,
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
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
11,
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
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
50,
55
],
[
49,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
49,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
61,
66
],
[
60,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
60,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
74,
75
],
[
11,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
82,
82
],
[
82,
83
],
[
82,
84
],
[
82,
85
],
[
9,
86
],
[
86,
87
]
]
| [
"import java.util.Scanner;\nimport java.util.Arrays;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint taro_n = 0;\n\t\tint hanako_n = 0;\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString taro = scanner.next();\n\t\t\tString hanako = scanner.next();\n\n\t\t\tif(taro.compareTo(hanako) > 0){\n\t\t\t\ttaro_n += 3;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thanako_n += 3;\n\t\t\t}else{\n\t\t\t\ttaro_n ++;\n\t\t\t\thanako_n ++;\n\t\t\t}\n\n\t\t}\n\n\t\t\tSystem.out.println(taro_n + \" \" + hanako_n);\n\t\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint taro_n = 0;\n\t\tint hanako_n = 0;\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString taro = scanner.next();\n\t\t\tString hanako = scanner.next();\n\n\t\t\tif(taro.compareTo(hanako) > 0){\n\t\t\t\ttaro_n += 3;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thanako_n += 3;\n\t\t\t}else{\n\t\t\t\ttaro_n ++;\n\t\t\t\thanako_n ++;\n\t\t\t}\n\n\t\t}\n\n\t\t\tSystem.out.println(taro_n + \" \" + hanako_n);\n\t\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint taro_n = 0;\n\t\tint hanako_n = 0;\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString taro = scanner.next();\n\t\t\tString hanako = scanner.next();\n\n\t\t\tif(taro.compareTo(hanako) > 0){\n\t\t\t\ttaro_n += 3;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thanako_n += 3;\n\t\t\t}else{\n\t\t\t\ttaro_n ++;\n\t\t\t\thanako_n ++;\n\t\t\t}\n\n\t\t}\n\n\t\t\tSystem.out.println(taro_n + \" \" + hanako_n);\n\t\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint taro_n = 0;\n\t\tint hanako_n = 0;\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString taro = scanner.next();\n\t\t\tString hanako = scanner.next();\n\n\t\t\tif(taro.compareTo(hanako) > 0){\n\t\t\t\ttaro_n += 3;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thanako_n += 3;\n\t\t\t}else{\n\t\t\t\ttaro_n ++;\n\t\t\t\thanako_n ++;\n\t\t\t}\n\n\t\t}\n\n\t\t\tSystem.out.println(taro_n + \" \" + hanako_n);\n\t\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int taro_n = 0;",
"taro_n",
"0",
"int hanako_n = 0;",
"hanako_n",
"0",
"for(int i = 0; i < n; i++){\n\t\t\tString taro = scanner.next();\n\t\t\tString hanako = scanner.next();\n\n\t\t\tif(taro.compareTo(hanako) > 0){\n\t\t\t\ttaro_n += 3;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thanako_n += 3;\n\t\t\t}else{\n\t\t\t\ttaro_n ++;\n\t\t\t\thanako_n ++;\n\t\t\t}\n\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString taro = scanner.next();\n\t\t\tString hanako = scanner.next();\n\n\t\t\tif(taro.compareTo(hanako) > 0){\n\t\t\t\ttaro_n += 3;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thanako_n += 3;\n\t\t\t}else{\n\t\t\t\ttaro_n ++;\n\t\t\t\thanako_n ++;\n\t\t\t}\n\n\t\t}",
"{\n\t\t\tString taro = scanner.next();\n\t\t\tString hanako = scanner.next();\n\n\t\t\tif(taro.compareTo(hanako) > 0){\n\t\t\t\ttaro_n += 3;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thanako_n += 3;\n\t\t\t}else{\n\t\t\t\ttaro_n ++;\n\t\t\t\thanako_n ++;\n\t\t\t}\n\n\t\t}",
"String taro = scanner.next();",
"taro",
"scanner.next()",
"scanner.next",
"scanner",
"String hanako = scanner.next();",
"hanako",
"scanner.next()",
"scanner.next",
"scanner",
"if(taro.compareTo(hanako) > 0){\n\t\t\t\ttaro_n += 3;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thanako_n += 3;\n\t\t\t}else{\n\t\t\t\ttaro_n ++;\n\t\t\t\thanako_n ++;\n\t\t\t}",
"taro.compareTo(hanako) > 0",
"taro.compareTo(hanako)",
"taro.compareTo",
"taro",
"hanako",
"0",
"{\n\t\t\t\ttaro_n += 3;\n\t\t\t}",
"taro_n += 3",
"taro_n",
"3",
"if(taro.compareTo(hanako) < 0){\n\t\t\t\thanako_n += 3;\n\t\t\t}else{\n\t\t\t\ttaro_n ++;\n\t\t\t\thanako_n ++;\n\t\t\t}",
"taro.compareTo(hanako) < 0",
"taro.compareTo(hanako)",
"taro.compareTo",
"taro",
"hanako",
"0",
"{\n\t\t\t\thanako_n += 3;\n\t\t\t}",
"hanako_n += 3",
"hanako_n",
"3",
"{\n\t\t\t\ttaro_n ++;\n\t\t\t\thanako_n ++;\n\t\t\t}",
"taro_n ++",
"taro_n",
"hanako_n ++",
"hanako_n",
"System.out.println(taro_n + \" \" + hanako_n)",
"System.out.println",
"System.out",
"System",
"System.out",
"taro_n + \" \" + hanako_n",
"taro_n + \" \" + hanako_n",
"taro_n",
"\" \"",
"hanako_n",
"String[] args",
"args"
]
| import java.util.Scanner;
import java.util.Arrays;
class Main{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int taro_n = 0;
int hanako_n = 0;
for(int i = 0; i < n; i++){
String taro = scanner.next();
String hanako = scanner.next();
if(taro.compareTo(hanako) > 0){
taro_n += 3;
}else if(taro.compareTo(hanako) < 0){
hanako_n += 3;
}else{
taro_n ++;
hanako_n ++;
}
}
System.out.println(taro_n + " " + hanako_n);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
0,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
30,
0,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
4,
18,
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
],
[
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
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
35,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
52,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
72,
74
],
[
8,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
81,
81
],
[
81,
82
],
[
81,
83
],
[
81,
84
],
[
8,
85
],
[
85,
86
],
[
86,
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 scn = new Scanner(System.in);\n int n = scn.nextInt();\n int tp = 0;\n int hp = 0;\n\n for(int i=0;i<n;i++){\n String tt = scn.next();\n String ht = scn.next();\n int result = tt.compareTo(ht);\n if (result<0){\n hp +=3;\n }else if(result>0){\n tp +=3;\n }else{\n tp +=1;\n hp +=1;\n }\n }\n\n System.out.println(tp+\" \"+hp);\n\n scn.close();\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String args[]) {\n Scanner scn = new Scanner(System.in);\n int n = scn.nextInt();\n int tp = 0;\n int hp = 0;\n\n for(int i=0;i<n;i++){\n String tt = scn.next();\n String ht = scn.next();\n int result = tt.compareTo(ht);\n if (result<0){\n hp +=3;\n }else if(result>0){\n tp +=3;\n }else{\n tp +=1;\n hp +=1;\n }\n }\n\n System.out.println(tp+\" \"+hp);\n\n scn.close();\n }\n\n}",
"Main",
"public static void main(String args[]) {\n Scanner scn = new Scanner(System.in);\n int n = scn.nextInt();\n int tp = 0;\n int hp = 0;\n\n for(int i=0;i<n;i++){\n String tt = scn.next();\n String ht = scn.next();\n int result = tt.compareTo(ht);\n if (result<0){\n hp +=3;\n }else if(result>0){\n tp +=3;\n }else{\n tp +=1;\n hp +=1;\n }\n }\n\n System.out.println(tp+\" \"+hp);\n\n scn.close();\n }",
"main",
"{\n Scanner scn = new Scanner(System.in);\n int n = scn.nextInt();\n int tp = 0;\n int hp = 0;\n\n for(int i=0;i<n;i++){\n String tt = scn.next();\n String ht = scn.next();\n int result = tt.compareTo(ht);\n if (result<0){\n hp +=3;\n }else if(result>0){\n tp +=3;\n }else{\n tp +=1;\n hp +=1;\n }\n }\n\n System.out.println(tp+\" \"+hp);\n\n scn.close();\n }",
"Scanner scn = new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"int n = scn.nextInt();",
"n",
"scn.nextInt()",
"scn.nextInt",
"scn",
"int tp = 0;",
"tp",
"0",
"int hp = 0;",
"hp",
"0",
"for(int i=0;i<n;i++){\n String tt = scn.next();\n String ht = scn.next();\n int result = tt.compareTo(ht);\n if (result<0){\n hp +=3;\n }else if(result>0){\n tp +=3;\n }else{\n tp +=1;\n hp +=1;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String tt = scn.next();\n String ht = scn.next();\n int result = tt.compareTo(ht);\n if (result<0){\n hp +=3;\n }else if(result>0){\n tp +=3;\n }else{\n tp +=1;\n hp +=1;\n }\n }",
"{\n String tt = scn.next();\n String ht = scn.next();\n int result = tt.compareTo(ht);\n if (result<0){\n hp +=3;\n }else if(result>0){\n tp +=3;\n }else{\n tp +=1;\n hp +=1;\n }\n }",
"String tt = scn.next();",
"tt",
"scn.next()",
"scn.next",
"scn",
"String ht = scn.next();",
"ht",
"scn.next()",
"scn.next",
"scn",
"int result = tt.compareTo(ht);",
"result",
"tt.compareTo(ht)",
"tt.compareTo",
"tt",
"ht",
"if (result<0){\n hp +=3;\n }else if(result>0){\n tp +=3;\n }else{\n tp +=1;\n hp +=1;\n }",
"result<0",
"result",
"0",
"{\n hp +=3;\n }",
"hp +=3",
"hp",
"3",
"if(result>0){\n tp +=3;\n }else{\n tp +=1;\n hp +=1;\n }",
"result>0",
"result",
"0",
"{\n tp +=3;\n }",
"tp +=3",
"tp",
"3",
"{\n tp +=1;\n hp +=1;\n }",
"tp +=1",
"tp",
"1",
"hp +=1",
"hp",
"1",
"System.out.println(tp+\" \"+hp)",
"System.out.println",
"System.out",
"System",
"System.out",
"tp+\" \"+hp",
"tp+\" \"+hp",
"tp",
"\" \"",
"hp",
"scn.close()",
"scn.close",
"scn",
"String args[]",
"args",
"public class Main {\n public static void main(String args[]) {\n Scanner scn = new Scanner(System.in);\n int n = scn.nextInt();\n int tp = 0;\n int hp = 0;\n\n for(int i=0;i<n;i++){\n String tt = scn.next();\n String ht = scn.next();\n int result = tt.compareTo(ht);\n if (result<0){\n hp +=3;\n }else if(result>0){\n tp +=3;\n }else{\n tp +=1;\n hp +=1;\n }\n }\n\n System.out.println(tp+\" \"+hp);\n\n scn.close();\n }\n\n}",
"public class Main {\n public static void main(String args[]) {\n Scanner scn = new Scanner(System.in);\n int n = scn.nextInt();\n int tp = 0;\n int hp = 0;\n\n for(int i=0;i<n;i++){\n String tt = scn.next();\n String ht = scn.next();\n int result = tt.compareTo(ht);\n if (result<0){\n hp +=3;\n }else if(result>0){\n tp +=3;\n }else{\n tp +=1;\n hp +=1;\n }\n }\n\n System.out.println(tp+\" \"+hp);\n\n scn.close();\n }\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scn = new Scanner(System.in);
int n = scn.nextInt();
int tp = 0;
int hp = 0;
for(int i=0;i<n;i++){
String tt = scn.next();
String ht = scn.next();
int result = tt.compareTo(ht);
if (result<0){
hp +=3;
}else if(result>0){
tp +=3;
}else{
tp +=1;
hp +=1;
}
}
System.out.println(tp+" "+hp);
scn.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
18,
13,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
0,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
40,
13,
40,
13,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
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
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
45,
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
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
65,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
75,
84
],
[
74,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
74,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
90,
99
],
[
89,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
103,
104
],
[
89,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
112,
113
],
[
112,
114
],
[
106,
115
],
[
105,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
8,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
120,
125
],
[
8,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
8,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
6,
138
],
[
138,
139
],
[
0,
140
],
[
140,
141
],
[
140,
142
]
]
| [
"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\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\t\tString[] cards = new String[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tcards[i] = sc.nextLine();\n\t\t}\n\t\t\n\t\tint Tpoint = 0;\n\t\tint Hpoint = 0;\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] kari = cards[i].split(\" \");\n\t\t\tif (kari[0].compareTo(kari[1]) > 0) {\n\t\t\t\tTpoint += 3;\n\t\t\t} else if (kari[0].compareTo(kari[1]) == 0) {\n\t\t\t\tTpoint++;\n\t\t\t\tHpoint++;\n\t\t\t} else if (kari[0].compareTo(kari[1]) < 0) {\n\t\t\t\tHpoint += 3;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.print(Tpoint);\n\t\tSystem.out.print(\" \");\n\t\tSystem.out.println(Hpoint);\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\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\t\tString[] cards = new String[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tcards[i] = sc.nextLine();\n\t\t}\n\t\t\n\t\tint Tpoint = 0;\n\t\tint Hpoint = 0;\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] kari = cards[i].split(\" \");\n\t\t\tif (kari[0].compareTo(kari[1]) > 0) {\n\t\t\t\tTpoint += 3;\n\t\t\t} else if (kari[0].compareTo(kari[1]) == 0) {\n\t\t\t\tTpoint++;\n\t\t\t\tHpoint++;\n\t\t\t} else if (kari[0].compareTo(kari[1]) < 0) {\n\t\t\t\tHpoint += 3;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.print(Tpoint);\n\t\tSystem.out.print(\" \");\n\t\tSystem.out.println(Hpoint);\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\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\t\tString[] cards = new String[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tcards[i] = sc.nextLine();\n\t\t}\n\t\t\n\t\tint Tpoint = 0;\n\t\tint Hpoint = 0;\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] kari = cards[i].split(\" \");\n\t\t\tif (kari[0].compareTo(kari[1]) > 0) {\n\t\t\t\tTpoint += 3;\n\t\t\t} else if (kari[0].compareTo(kari[1]) == 0) {\n\t\t\t\tTpoint++;\n\t\t\t\tHpoint++;\n\t\t\t} else if (kari[0].compareTo(kari[1]) < 0) {\n\t\t\t\tHpoint += 3;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.print(Tpoint);\n\t\tSystem.out.print(\" \");\n\t\tSystem.out.println(Hpoint);\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\t\tString[] cards = new String[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tcards[i] = sc.nextLine();\n\t\t}\n\t\t\n\t\tint Tpoint = 0;\n\t\tint Hpoint = 0;\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] kari = cards[i].split(\" \");\n\t\t\tif (kari[0].compareTo(kari[1]) > 0) {\n\t\t\t\tTpoint += 3;\n\t\t\t} else if (kari[0].compareTo(kari[1]) == 0) {\n\t\t\t\tTpoint++;\n\t\t\t\tHpoint++;\n\t\t\t} else if (kari[0].compareTo(kari[1]) < 0) {\n\t\t\t\tHpoint += 3;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.print(Tpoint);\n\t\tSystem.out.print(\" \");\n\t\tSystem.out.println(Hpoint);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String line1 = sc.nextLine();",
"line1",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int n = Integer.parseInt(line1);",
"n",
"Integer.parseInt(line1)",
"Integer.parseInt",
"Integer",
"line1",
"String[] cards = new String[n];",
"cards",
"new String[n]",
"n",
"for (int i = 0; i < n; i++) {\n\t\t\tcards[i] = sc.nextLine();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tcards[i] = sc.nextLine();\n\t\t}",
"{\n\t\t\tcards[i] = sc.nextLine();\n\t\t}",
"cards[i] = sc.nextLine()",
"cards[i]",
"cards",
"i",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int Tpoint = 0;",
"Tpoint",
"0",
"int Hpoint = 0;",
"Hpoint",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\tString[] kari = cards[i].split(\" \");\n\t\t\tif (kari[0].compareTo(kari[1]) > 0) {\n\t\t\t\tTpoint += 3;\n\t\t\t} else if (kari[0].compareTo(kari[1]) == 0) {\n\t\t\t\tTpoint++;\n\t\t\t\tHpoint++;\n\t\t\t} else if (kari[0].compareTo(kari[1]) < 0) {\n\t\t\t\tHpoint += 3;\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[] kari = cards[i].split(\" \");\n\t\t\tif (kari[0].compareTo(kari[1]) > 0) {\n\t\t\t\tTpoint += 3;\n\t\t\t} else if (kari[0].compareTo(kari[1]) == 0) {\n\t\t\t\tTpoint++;\n\t\t\t\tHpoint++;\n\t\t\t} else if (kari[0].compareTo(kari[1]) < 0) {\n\t\t\t\tHpoint += 3;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString[] kari = cards[i].split(\" \");\n\t\t\tif (kari[0].compareTo(kari[1]) > 0) {\n\t\t\t\tTpoint += 3;\n\t\t\t} else if (kari[0].compareTo(kari[1]) == 0) {\n\t\t\t\tTpoint++;\n\t\t\t\tHpoint++;\n\t\t\t} else if (kari[0].compareTo(kari[1]) < 0) {\n\t\t\t\tHpoint += 3;\n\t\t\t}\n\t\t}",
"String[] kari = cards[i].split(\" \");",
"kari",
"cards[i].split(\" \")",
"cards[i].split",
"cards[i]",
"cards",
"i",
"\" \"",
"if (kari[0].compareTo(kari[1]) > 0) {\n\t\t\t\tTpoint += 3;\n\t\t\t} else if (kari[0].compareTo(kari[1]) == 0) {\n\t\t\t\tTpoint++;\n\t\t\t\tHpoint++;\n\t\t\t} else if (kari[0].compareTo(kari[1]) < 0) {\n\t\t\t\tHpoint += 3;\n\t\t\t}",
"kari[0].compareTo(kari[1]) > 0",
"kari[0].compareTo(kari[1])",
"kari[0].compareTo",
"kari[0]",
"kari",
"0",
"kari[1]",
"kari",
"1",
"0",
"{\n\t\t\t\tTpoint += 3;\n\t\t\t}",
"Tpoint += 3",
"Tpoint",
"3",
"if (kari[0].compareTo(kari[1]) == 0) {\n\t\t\t\tTpoint++;\n\t\t\t\tHpoint++;\n\t\t\t} else if (kari[0].compareTo(kari[1]) < 0) {\n\t\t\t\tHpoint += 3;\n\t\t\t}",
"kari[0].compareTo(kari[1]) == 0",
"kari[0].compareTo(kari[1])",
"kari[0].compareTo",
"kari[0]",
"kari",
"0",
"kari[1]",
"kari",
"1",
"0",
"{\n\t\t\t\tTpoint++;\n\t\t\t\tHpoint++;\n\t\t\t}",
"Tpoint++",
"Tpoint",
"Hpoint++",
"Hpoint",
"if (kari[0].compareTo(kari[1]) < 0) {\n\t\t\t\tHpoint += 3;\n\t\t\t}",
"kari[0].compareTo(kari[1]) < 0",
"kari[0].compareTo(kari[1])",
"kari[0].compareTo",
"kari[0]",
"kari",
"0",
"kari[1]",
"kari",
"1",
"0",
"{\n\t\t\t\tHpoint += 3;\n\t\t\t}",
"Hpoint += 3",
"Hpoint",
"3",
"System.out.print(Tpoint)",
"System.out.print",
"System.out",
"System",
"System.out",
"Tpoint",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.println(Hpoint)",
"System.out.println",
"System.out",
"System",
"System.out",
"Hpoint",
"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\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\t\tString[] cards = new String[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tcards[i] = sc.nextLine();\n\t\t}\n\t\t\n\t\tint Tpoint = 0;\n\t\tint Hpoint = 0;\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] kari = cards[i].split(\" \");\n\t\t\tif (kari[0].compareTo(kari[1]) > 0) {\n\t\t\t\tTpoint += 3;\n\t\t\t} else if (kari[0].compareTo(kari[1]) == 0) {\n\t\t\t\tTpoint++;\n\t\t\t\tHpoint++;\n\t\t\t} else if (kari[0].compareTo(kari[1]) < 0) {\n\t\t\t\tHpoint += 3;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.print(Tpoint);\n\t\tSystem.out.print(\" \");\n\t\tSystem.out.println(Hpoint);\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\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\t\tString[] cards = new String[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tcards[i] = sc.nextLine();\n\t\t}\n\t\t\n\t\tint Tpoint = 0;\n\t\tint Hpoint = 0;\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] kari = cards[i].split(\" \");\n\t\t\tif (kari[0].compareTo(kari[1]) > 0) {\n\t\t\t\tTpoint += 3;\n\t\t\t} else if (kari[0].compareTo(kari[1]) == 0) {\n\t\t\t\tTpoint++;\n\t\t\t\tHpoint++;\n\t\t\t} else if (kari[0].compareTo(kari[1]) < 0) {\n\t\t\t\tHpoint += 3;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.print(Tpoint);\n\t\tSystem.out.print(\" \");\n\t\tSystem.out.println(Hpoint);\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);
String line1 = sc.nextLine();
int n = Integer.parseInt(line1);
String[] cards = new String[n];
for (int i = 0; i < n; i++) {
cards[i] = sc.nextLine();
}
int Tpoint = 0;
int Hpoint = 0;
for (int i = 0; i < n; i++) {
String[] kari = cards[i].split(" ");
if (kari[0].compareTo(kari[1]) > 0) {
Tpoint += 3;
} else if (kari[0].compareTo(kari[1]) == 0) {
Tpoint++;
Hpoint++;
} else if (kari[0].compareTo(kari[1]) < 0) {
Hpoint += 3;
}
}
System.out.print(Tpoint);
System.out.print(" ");
System.out.println(Hpoint);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
42,
2,
13,
13,
30,
0,
13,
4,
18,
4,
18,
13,
0,
13,
4,
18,
4,
18,
13,
14,
2,
4,
18,
13,
4,
18,
13,
30,
0,
13,
4,
18,
13,
30,
0,
13,
4,
18,
13,
0,
13,
17,
42,
17,
30,
14,
2,
2,
4,
18,
13,
13,
4,
18,
13,
13,
2,
13,
2,
13,
17,
30,
14,
2,
13,
4,
18,
13,
30,
0,
13,
17,
3,
14,
2,
13,
4,
18,
13,
30,
0,
13,
17,
3,
40,
13,
40,
13,
3,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
30,
40,
13,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
30,
0,
13,
17,
3,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
30,
0,
13,
17,
3,
40,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
185,
5
],
[
185,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
35,
37
],
[
8,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
42,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
42,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
58,
62
],
[
62,
63
],
[
63,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
57,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
42,
77
],
[
77,
78
],
[
77,
79
],
[
42,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
85,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
84,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
96,
98
],
[
83,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
100,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
100,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
111,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
99,
122
],
[
122,
123
],
[
99,
124
],
[
124,
125
],
[
99,
126
],
[
83,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
129,
132
],
[
128,
133
],
[
133,
134
],
[
134,
135
],
[
133,
136
],
[
127,
137
],
[
137,
138
],
[
138,
139
],
[
127,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
142,
145
],
[
141,
146
],
[
146,
147
],
[
147,
148
],
[
146,
149
],
[
140,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
150,
154
],
[
140,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
157,
160
],
[
156,
161
],
[
161,
162
],
[
162,
163
],
[
161,
164
],
[
155,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
165,
169
],
[
42,
170
],
[
170,
171
],
[
8,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
172,
177
],
[
178,
178
],
[
178,
179
],
[
178,
180
],
[
178,
181
],
[
6,
182
],
[
182,
183
],
[
0,
184
],
[
184,
185
],
[
184,
186
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main (String[] args) {\n Scanner scan = new Scanner(System.in);\n int m = scan.nextInt();\n String a_card = null;\n String b_card = null;\n int a_point = 0;\n int b_point = 0;\n\n int j = 0;\n int i = 0;\n\n int compare_length = 0;\n\n\n while(i < m){\n\n a_card = scan.next().toLowerCase();\n b_card = scan.next().toLowerCase();\n if(a_card.length() < b_card.length()){\n compare_length = a_card.length();\n }else{\n compare_length = b_card.length();\n }\n\n j = 0;\n while(true){\n if(a_card.charAt(j) == b_card.charAt(j) && compare_length == (j + 1)){\n if(compare_length < a_card.length()){\n a_point += 3;\n break;\n }else if(compare_length < b_card.length()){\n b_point += 3;\n break;\n }\n a_point++;\n b_point++;\n \n break;\n }else if(a_card.charAt(j) == b_card.charAt(j)){\n\n \n j++;\n }else if(a_card.charAt(j) < b_card.charAt(j)){\n b_point += 3;\n \n break;\n }else if(a_card.charAt(j) > b_card.charAt(j)){\n a_point += 3;\n \n break;\n\n }\n\n }\n\n i++;\n }\n\n System.out.println(a_point + \" \" + b_point);\n\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main (String[] args) {\n Scanner scan = new Scanner(System.in);\n int m = scan.nextInt();\n String a_card = null;\n String b_card = null;\n int a_point = 0;\n int b_point = 0;\n\n int j = 0;\n int i = 0;\n\n int compare_length = 0;\n\n\n while(i < m){\n\n a_card = scan.next().toLowerCase();\n b_card = scan.next().toLowerCase();\n if(a_card.length() < b_card.length()){\n compare_length = a_card.length();\n }else{\n compare_length = b_card.length();\n }\n\n j = 0;\n while(true){\n if(a_card.charAt(j) == b_card.charAt(j) && compare_length == (j + 1)){\n if(compare_length < a_card.length()){\n a_point += 3;\n break;\n }else if(compare_length < b_card.length()){\n b_point += 3;\n break;\n }\n a_point++;\n b_point++;\n \n break;\n }else if(a_card.charAt(j) == b_card.charAt(j)){\n\n \n j++;\n }else if(a_card.charAt(j) < b_card.charAt(j)){\n b_point += 3;\n \n break;\n }else if(a_card.charAt(j) > b_card.charAt(j)){\n a_point += 3;\n \n break;\n\n }\n\n }\n\n i++;\n }\n\n System.out.println(a_point + \" \" + b_point);\n\n }\n}",
"Main",
"public static void main (String[] args) {\n Scanner scan = new Scanner(System.in);\n int m = scan.nextInt();\n String a_card = null;\n String b_card = null;\n int a_point = 0;\n int b_point = 0;\n\n int j = 0;\n int i = 0;\n\n int compare_length = 0;\n\n\n while(i < m){\n\n a_card = scan.next().toLowerCase();\n b_card = scan.next().toLowerCase();\n if(a_card.length() < b_card.length()){\n compare_length = a_card.length();\n }else{\n compare_length = b_card.length();\n }\n\n j = 0;\n while(true){\n if(a_card.charAt(j) == b_card.charAt(j) && compare_length == (j + 1)){\n if(compare_length < a_card.length()){\n a_point += 3;\n break;\n }else if(compare_length < b_card.length()){\n b_point += 3;\n break;\n }\n a_point++;\n b_point++;\n \n break;\n }else if(a_card.charAt(j) == b_card.charAt(j)){\n\n \n j++;\n }else if(a_card.charAt(j) < b_card.charAt(j)){\n b_point += 3;\n \n break;\n }else if(a_card.charAt(j) > b_card.charAt(j)){\n a_point += 3;\n \n break;\n\n }\n\n }\n\n i++;\n }\n\n System.out.println(a_point + \" \" + b_point);\n\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int m = scan.nextInt();\n String a_card = null;\n String b_card = null;\n int a_point = 0;\n int b_point = 0;\n\n int j = 0;\n int i = 0;\n\n int compare_length = 0;\n\n\n while(i < m){\n\n a_card = scan.next().toLowerCase();\n b_card = scan.next().toLowerCase();\n if(a_card.length() < b_card.length()){\n compare_length = a_card.length();\n }else{\n compare_length = b_card.length();\n }\n\n j = 0;\n while(true){\n if(a_card.charAt(j) == b_card.charAt(j) && compare_length == (j + 1)){\n if(compare_length < a_card.length()){\n a_point += 3;\n break;\n }else if(compare_length < b_card.length()){\n b_point += 3;\n break;\n }\n a_point++;\n b_point++;\n \n break;\n }else if(a_card.charAt(j) == b_card.charAt(j)){\n\n \n j++;\n }else if(a_card.charAt(j) < b_card.charAt(j)){\n b_point += 3;\n \n break;\n }else if(a_card.charAt(j) > b_card.charAt(j)){\n a_point += 3;\n \n break;\n\n }\n\n }\n\n i++;\n }\n\n System.out.println(a_point + \" \" + b_point);\n\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int m = scan.nextInt();",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String a_card = null;",
"a_card",
"null",
"String b_card = null;",
"b_card",
"null",
"int a_point = 0;",
"a_point",
"0",
"int b_point = 0;",
"b_point",
"0",
"int j = 0;",
"j",
"0",
"int i = 0;",
"i",
"0",
"int compare_length = 0;",
"compare_length",
"0",
"while(i < m){\n\n a_card = scan.next().toLowerCase();\n b_card = scan.next().toLowerCase();\n if(a_card.length() < b_card.length()){\n compare_length = a_card.length();\n }else{\n compare_length = b_card.length();\n }\n\n j = 0;\n while(true){\n if(a_card.charAt(j) == b_card.charAt(j) && compare_length == (j + 1)){\n if(compare_length < a_card.length()){\n a_point += 3;\n break;\n }else if(compare_length < b_card.length()){\n b_point += 3;\n break;\n }\n a_point++;\n b_point++;\n \n break;\n }else if(a_card.charAt(j) == b_card.charAt(j)){\n\n \n j++;\n }else if(a_card.charAt(j) < b_card.charAt(j)){\n b_point += 3;\n \n break;\n }else if(a_card.charAt(j) > b_card.charAt(j)){\n a_point += 3;\n \n break;\n\n }\n\n }\n\n i++;\n }",
"i < m",
"i",
"m",
"{\n\n a_card = scan.next().toLowerCase();\n b_card = scan.next().toLowerCase();\n if(a_card.length() < b_card.length()){\n compare_length = a_card.length();\n }else{\n compare_length = b_card.length();\n }\n\n j = 0;\n while(true){\n if(a_card.charAt(j) == b_card.charAt(j) && compare_length == (j + 1)){\n if(compare_length < a_card.length()){\n a_point += 3;\n break;\n }else if(compare_length < b_card.length()){\n b_point += 3;\n break;\n }\n a_point++;\n b_point++;\n \n break;\n }else if(a_card.charAt(j) == b_card.charAt(j)){\n\n \n j++;\n }else if(a_card.charAt(j) < b_card.charAt(j)){\n b_point += 3;\n \n break;\n }else if(a_card.charAt(j) > b_card.charAt(j)){\n a_point += 3;\n \n break;\n\n }\n\n }\n\n i++;\n }",
"a_card = scan.next().toLowerCase()",
"a_card",
"scan.next().toLowerCase()",
"scan.next().toLowerCase",
"scan.next()",
"scan.next",
"scan",
"b_card = scan.next().toLowerCase()",
"b_card",
"scan.next().toLowerCase()",
"scan.next().toLowerCase",
"scan.next()",
"scan.next",
"scan",
"if(a_card.length() < b_card.length()){\n compare_length = a_card.length();\n }else{\n compare_length = b_card.length();\n }",
"a_card.length() < b_card.length()",
"a_card.length()",
"a_card.length",
"a_card",
"b_card.length()",
"b_card.length",
"b_card",
"{\n compare_length = a_card.length();\n }",
"compare_length = a_card.length()",
"compare_length",
"a_card.length()",
"a_card.length",
"a_card",
"{\n compare_length = b_card.length();\n }",
"compare_length = b_card.length()",
"compare_length",
"b_card.length()",
"b_card.length",
"b_card",
"j = 0",
"j",
"0",
"while(true){\n if(a_card.charAt(j) == b_card.charAt(j) && compare_length == (j + 1)){\n if(compare_length < a_card.length()){\n a_point += 3;\n break;\n }else if(compare_length < b_card.length()){\n b_point += 3;\n break;\n }\n a_point++;\n b_point++;\n \n break;\n }else if(a_card.charAt(j) == b_card.charAt(j)){\n\n \n j++;\n }else if(a_card.charAt(j) < b_card.charAt(j)){\n b_point += 3;\n \n break;\n }else if(a_card.charAt(j) > b_card.charAt(j)){\n a_point += 3;\n \n break;\n\n }\n\n }",
"true",
"{\n if(a_card.charAt(j) == b_card.charAt(j) && compare_length == (j + 1)){\n if(compare_length < a_card.length()){\n a_point += 3;\n break;\n }else if(compare_length < b_card.length()){\n b_point += 3;\n break;\n }\n a_point++;\n b_point++;\n \n break;\n }else if(a_card.charAt(j) == b_card.charAt(j)){\n\n \n j++;\n }else if(a_card.charAt(j) < b_card.charAt(j)){\n b_point += 3;\n \n break;\n }else if(a_card.charAt(j) > b_card.charAt(j)){\n a_point += 3;\n \n break;\n\n }\n\n }",
"if(a_card.charAt(j) == b_card.charAt(j) && compare_length == (j + 1)){\n if(compare_length < a_card.length()){\n a_point += 3;\n break;\n }else if(compare_length < b_card.length()){\n b_point += 3;\n break;\n }\n a_point++;\n b_point++;\n \n break;\n }else if(a_card.charAt(j) == b_card.charAt(j)){\n\n \n j++;\n }else if(a_card.charAt(j) < b_card.charAt(j)){\n b_point += 3;\n \n break;\n }else if(a_card.charAt(j) > b_card.charAt(j)){\n a_point += 3;\n \n break;\n\n }",
"a_card.charAt(j) == b_card.charAt(j) && compare_length == (j + 1)",
"a_card.charAt(j) == b_card.charAt(j)",
"a_card.charAt(j)",
"a_card.charAt",
"a_card",
"j",
"b_card.charAt(j)",
"b_card.charAt",
"b_card",
"j",
"compare_length == (j + 1)",
"compare_length",
"(j + 1)",
"j",
"1",
"{\n if(compare_length < a_card.length()){\n a_point += 3;\n break;\n }else if(compare_length < b_card.length()){\n b_point += 3;\n break;\n }\n a_point++;\n b_point++;\n \n break;\n }",
"if(compare_length < a_card.length()){\n a_point += 3;\n break;\n }else if(compare_length < b_card.length()){\n b_point += 3;\n break;\n }",
"compare_length < a_card.length()",
"compare_length",
"a_card.length()",
"a_card.length",
"a_card",
"{\n a_point += 3;\n break;\n }",
"a_point += 3",
"a_point",
"3",
"break;",
"if(compare_length < b_card.length()){\n b_point += 3;\n break;\n }",
"compare_length < b_card.length()",
"compare_length",
"b_card.length()",
"b_card.length",
"b_card",
"{\n b_point += 3;\n break;\n }",
"b_point += 3",
"b_point",
"3",
"break;",
"a_point++",
"a_point",
"b_point++",
"b_point",
"break;",
"if(a_card.charAt(j) == b_card.charAt(j)){\n\n \n j++;\n }else if(a_card.charAt(j) < b_card.charAt(j)){\n b_point += 3;\n \n break;\n }else if(a_card.charAt(j) > b_card.charAt(j)){\n a_point += 3;\n \n break;\n\n }",
"a_card.charAt(j) == b_card.charAt(j)",
"a_card.charAt(j)",
"a_card.charAt",
"a_card",
"j",
"b_card.charAt(j)",
"b_card.charAt",
"b_card",
"j",
"{\n\n \n j++;\n }",
"j++",
"j",
"if(a_card.charAt(j) < b_card.charAt(j)){\n b_point += 3;\n \n break;\n }else if(a_card.charAt(j) > b_card.charAt(j)){\n a_point += 3;\n \n break;\n\n }",
"a_card.charAt(j) < b_card.charAt(j)",
"a_card.charAt(j)",
"a_card.charAt",
"a_card",
"j",
"b_card.charAt(j)",
"b_card.charAt",
"b_card",
"j",
"{\n b_point += 3;\n \n break;\n }",
"b_point += 3",
"b_point",
"3",
"break;",
"if(a_card.charAt(j) > b_card.charAt(j)){\n a_point += 3;\n \n break;\n\n }",
"a_card.charAt(j) > b_card.charAt(j)",
"a_card.charAt(j)",
"a_card.charAt",
"a_card",
"j",
"b_card.charAt(j)",
"b_card.charAt",
"b_card",
"j",
"{\n a_point += 3;\n \n break;\n\n }",
"a_point += 3",
"a_point",
"3",
"break;",
"i++",
"i",
"System.out.println(a_point + \" \" + b_point)",
"System.out.println",
"System.out",
"System",
"System.out",
"a_point + \" \" + b_point",
"a_point + \" \" + b_point",
"a_point",
"\" \"",
"b_point",
"String[] args",
"args",
"public class Main {\n public static void main (String[] args) {\n Scanner scan = new Scanner(System.in);\n int m = scan.nextInt();\n String a_card = null;\n String b_card = null;\n int a_point = 0;\n int b_point = 0;\n\n int j = 0;\n int i = 0;\n\n int compare_length = 0;\n\n\n while(i < m){\n\n a_card = scan.next().toLowerCase();\n b_card = scan.next().toLowerCase();\n if(a_card.length() < b_card.length()){\n compare_length = a_card.length();\n }else{\n compare_length = b_card.length();\n }\n\n j = 0;\n while(true){\n if(a_card.charAt(j) == b_card.charAt(j) && compare_length == (j + 1)){\n if(compare_length < a_card.length()){\n a_point += 3;\n break;\n }else if(compare_length < b_card.length()){\n b_point += 3;\n break;\n }\n a_point++;\n b_point++;\n \n break;\n }else if(a_card.charAt(j) == b_card.charAt(j)){\n\n \n j++;\n }else if(a_card.charAt(j) < b_card.charAt(j)){\n b_point += 3;\n \n break;\n }else if(a_card.charAt(j) > b_card.charAt(j)){\n a_point += 3;\n \n break;\n\n }\n\n }\n\n i++;\n }\n\n System.out.println(a_point + \" \" + b_point);\n\n }\n}",
"public class Main {\n public static void main (String[] args) {\n Scanner scan = new Scanner(System.in);\n int m = scan.nextInt();\n String a_card = null;\n String b_card = null;\n int a_point = 0;\n int b_point = 0;\n\n int j = 0;\n int i = 0;\n\n int compare_length = 0;\n\n\n while(i < m){\n\n a_card = scan.next().toLowerCase();\n b_card = scan.next().toLowerCase();\n if(a_card.length() < b_card.length()){\n compare_length = a_card.length();\n }else{\n compare_length = b_card.length();\n }\n\n j = 0;\n while(true){\n if(a_card.charAt(j) == b_card.charAt(j) && compare_length == (j + 1)){\n if(compare_length < a_card.length()){\n a_point += 3;\n break;\n }else if(compare_length < b_card.length()){\n b_point += 3;\n break;\n }\n a_point++;\n b_point++;\n \n break;\n }else if(a_card.charAt(j) == b_card.charAt(j)){\n\n \n j++;\n }else if(a_card.charAt(j) < b_card.charAt(j)){\n b_point += 3;\n \n break;\n }else if(a_card.charAt(j) > b_card.charAt(j)){\n a_point += 3;\n \n break;\n\n }\n\n }\n\n i++;\n }\n\n System.out.println(a_point + \" \" + b_point);\n\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main (String[] args) {
Scanner scan = new Scanner(System.in);
int m = scan.nextInt();
String a_card = null;
String b_card = null;
int a_point = 0;
int b_point = 0;
int j = 0;
int i = 0;
int compare_length = 0;
while(i < m){
a_card = scan.next().toLowerCase();
b_card = scan.next().toLowerCase();
if(a_card.length() < b_card.length()){
compare_length = a_card.length();
}else{
compare_length = b_card.length();
}
j = 0;
while(true){
if(a_card.charAt(j) == b_card.charAt(j) && compare_length == (j + 1)){
if(compare_length < a_card.length()){
a_point += 3;
break;
}else if(compare_length < b_card.length()){
b_point += 3;
break;
}
a_point++;
b_point++;
break;
}else if(a_card.charAt(j) == b_card.charAt(j)){
j++;
}else if(a_card.charAt(j) < b_card.charAt(j)){
b_point += 3;
break;
}else if(a_card.charAt(j) > b_card.charAt(j)){
a_point += 3;
break;
}
}
i++;
}
System.out.println(a_point + " " + b_point);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
4,
18,
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
],
[
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
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
46,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
57,
59
],
[
46,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
61,
66
],
[
60,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
60,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
8,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
81,
81
],
[
81,
82
],
[
81,
83
],
[
81,
84
],
[
8,
85
],
[
85,
86
],
[
86,
87
],
[
6,
88
],
[
88,
89
],
[
0,
90
],
[
90,
91
],
[
90,
92
]
]
| [
"\nimport java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String args[]){\n\n\t\t//compareTo(str) ?????????????????????str ??¨???????????????????????????????????§????????????????????????\n\t\t//str ??????????????§?????????????????????????????????????????? 0???????°???????????????£????????????????????????\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint taro = 0;\n\t\tint hana = 0;\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString str1 = sc.next();\n\t\t\tString str2 = sc.next();;\n\t\t\tif (str1.compareToIgnoreCase(str2) == 0){\n\t\t\t\ttaro += 1;\n\t\t\t\thana += 1;\n\t\t\t}else if(str1.compareToIgnoreCase(str2) < 0){\n\t\t\t\thana += 3;\n\t\t\t}else{\n\t\t\t\ttaro += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taro + \" \" + hana);\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\n\t\t//compareTo(str) ?????????????????????str ??¨???????????????????????????????????§????????????????????????\n\t\t//str ??????????????§?????????????????????????????????????????? 0???????°???????????????£????????????????????????\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint taro = 0;\n\t\tint hana = 0;\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString str1 = sc.next();\n\t\t\tString str2 = sc.next();;\n\t\t\tif (str1.compareToIgnoreCase(str2) == 0){\n\t\t\t\ttaro += 1;\n\t\t\t\thana += 1;\n\t\t\t}else if(str1.compareToIgnoreCase(str2) < 0){\n\t\t\t\thana += 3;\n\t\t\t}else{\n\t\t\t\ttaro += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taro + \" \" + hana);\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String args[]){\n\n\t\t//compareTo(str) ?????????????????????str ??¨???????????????????????????????????§????????????????????????\n\t\t//str ??????????????§?????????????????????????????????????????? 0???????°???????????????£????????????????????????\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint taro = 0;\n\t\tint hana = 0;\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString str1 = sc.next();\n\t\t\tString str2 = sc.next();;\n\t\t\tif (str1.compareToIgnoreCase(str2) == 0){\n\t\t\t\ttaro += 1;\n\t\t\t\thana += 1;\n\t\t\t}else if(str1.compareToIgnoreCase(str2) < 0){\n\t\t\t\thana += 3;\n\t\t\t}else{\n\t\t\t\ttaro += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taro + \" \" + hana);\n\t\tsc.close();\n\t}",
"main",
"{\n\n\t\t//compareTo(str) ?????????????????????str ??¨???????????????????????????????????§????????????????????????\n\t\t//str ??????????????§?????????????????????????????????????????? 0???????°???????????????£????????????????????????\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint taro = 0;\n\t\tint hana = 0;\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString str1 = sc.next();\n\t\t\tString str2 = sc.next();;\n\t\t\tif (str1.compareToIgnoreCase(str2) == 0){\n\t\t\t\ttaro += 1;\n\t\t\t\thana += 1;\n\t\t\t}else if(str1.compareToIgnoreCase(str2) < 0){\n\t\t\t\thana += 3;\n\t\t\t}else{\n\t\t\t\ttaro += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taro + \" \" + hana);\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 taro = 0;",
"taro",
"0",
"int hana = 0;",
"hana",
"0",
"for(int i = 0; i < n; i++){\n\t\t\tString str1 = sc.next();\n\t\t\tString str2 = sc.next();;\n\t\t\tif (str1.compareToIgnoreCase(str2) == 0){\n\t\t\t\ttaro += 1;\n\t\t\t\thana += 1;\n\t\t\t}else if(str1.compareToIgnoreCase(str2) < 0){\n\t\t\t\thana += 3;\n\t\t\t}else{\n\t\t\t\ttaro += 3;\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 str1 = sc.next();\n\t\t\tString str2 = sc.next();;\n\t\t\tif (str1.compareToIgnoreCase(str2) == 0){\n\t\t\t\ttaro += 1;\n\t\t\t\thana += 1;\n\t\t\t}else if(str1.compareToIgnoreCase(str2) < 0){\n\t\t\t\thana += 3;\n\t\t\t}else{\n\t\t\t\ttaro += 3;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString str1 = sc.next();\n\t\t\tString str2 = sc.next();;\n\t\t\tif (str1.compareToIgnoreCase(str2) == 0){\n\t\t\t\ttaro += 1;\n\t\t\t\thana += 1;\n\t\t\t}else if(str1.compareToIgnoreCase(str2) < 0){\n\t\t\t\thana += 3;\n\t\t\t}else{\n\t\t\t\ttaro += 3;\n\t\t\t}\n\t\t}",
"String str1 = sc.next();",
"str1",
"sc.next()",
"sc.next",
"sc",
"String str2 = sc.next();",
"str2",
"sc.next()",
"sc.next",
"sc",
"if (str1.compareToIgnoreCase(str2) == 0){\n\t\t\t\ttaro += 1;\n\t\t\t\thana += 1;\n\t\t\t}else if(str1.compareToIgnoreCase(str2) < 0){\n\t\t\t\thana += 3;\n\t\t\t}else{\n\t\t\t\ttaro += 3;\n\t\t\t}",
"str1.compareToIgnoreCase(str2) == 0",
"str1.compareToIgnoreCase(str2)",
"str1.compareToIgnoreCase",
"str1",
"str2",
"0",
"{\n\t\t\t\ttaro += 1;\n\t\t\t\thana += 1;\n\t\t\t}",
"taro += 1",
"taro",
"1",
"hana += 1",
"hana",
"1",
"if(str1.compareToIgnoreCase(str2) < 0){\n\t\t\t\thana += 3;\n\t\t\t}else{\n\t\t\t\ttaro += 3;\n\t\t\t}",
"str1.compareToIgnoreCase(str2) < 0",
"str1.compareToIgnoreCase(str2)",
"str1.compareToIgnoreCase",
"str1",
"str2",
"0",
"{\n\t\t\t\thana += 3;\n\t\t\t}",
"hana += 3",
"hana",
"3",
"{\n\t\t\t\ttaro += 3;\n\t\t\t}",
"taro += 3",
"taro",
"3",
"System.out.println(taro + \" \" + hana)",
"System.out.println",
"System.out",
"System",
"System.out",
"taro + \" \" + hana",
"taro + \" \" + hana",
"taro",
"\" \"",
"hana",
"sc.close()",
"sc.close",
"sc",
"String args[]",
"args",
"public class Main{\n\tpublic static void main(String args[]){\n\n\t\t//compareTo(str) ?????????????????????str ??¨???????????????????????????????????§????????????????????????\n\t\t//str ??????????????§?????????????????????????????????????????? 0???????°???????????????£????????????????????????\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint taro = 0;\n\t\tint hana = 0;\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString str1 = sc.next();\n\t\t\tString str2 = sc.next();;\n\t\t\tif (str1.compareToIgnoreCase(str2) == 0){\n\t\t\t\ttaro += 1;\n\t\t\t\thana += 1;\n\t\t\t}else if(str1.compareToIgnoreCase(str2) < 0){\n\t\t\t\thana += 3;\n\t\t\t}else{\n\t\t\t\ttaro += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taro + \" \" + hana);\n\t\tsc.close();\n\t}\n}",
"public class Main{\n\tpublic static void main(String args[]){\n\n\t\t//compareTo(str) ?????????????????????str ??¨???????????????????????????????????§????????????????????????\n\t\t//str ??????????????§?????????????????????????????????????????? 0???????°???????????????£????????????????????????\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint taro = 0;\n\t\tint hana = 0;\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString str1 = sc.next();\n\t\t\tString str2 = sc.next();;\n\t\t\tif (str1.compareToIgnoreCase(str2) == 0){\n\t\t\t\ttaro += 1;\n\t\t\t\thana += 1;\n\t\t\t}else if(str1.compareToIgnoreCase(str2) < 0){\n\t\t\t\thana += 3;\n\t\t\t}else{\n\t\t\t\ttaro += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taro + \" \" + hana);\n\t\tsc.close();\n\t}\n}",
"Main"
]
|
import java.util.Scanner;
public class Main{
public static void main(String args[]){
//compareTo(str) ?????????????????????str ??¨???????????????????????????????????§????????????????????????
//str ??????????????§?????????????????????????????????????????? 0???????°???????????????£????????????????????????
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int taro = 0;
int hana = 0;
for(int i = 0; i < n; i++){
String str1 = sc.next();
String str2 = sc.next();;
if (str1.compareToIgnoreCase(str2) == 0){
taro += 1;
hana += 1;
}else if(str1.compareToIgnoreCase(str2) < 0){
hana += 3;
}else{
taro += 3;
}
}
System.out.println(taro + " " + hana);
sc.close();
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
30,
40,
13,
40,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
86,
5
],
[
86,
6
],
[
6,
7
],
[
6,
8
],
[
86,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
17,
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
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
46,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
46,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
58,
63
],
[
57,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
57,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
71,
72
],
[
11,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
79,
79
],
[
79,
80
],
[
79,
81
],
[
79,
82
],
[
9,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
]
| [
"import java.util.*;\n\npublic class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tint n = sc.nextInt();\n\t\tint taro = 0;\n\t\tint hanako = 0;\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tString t = sc.next();\n\t\t\tString h = sc.next();\n\t\t\tif (t.compareTo(h) < 0) {hanako += 3;}\n\t\t\telse if (t.compareTo(h) > 0) {taro += 3;}\n\t\t\telse {hanako++; taro++;}\n\t\t}\n\t\tSystem.out.println(taro+\" \"+hanako);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tint n = sc.nextInt();\n\t\tint taro = 0;\n\t\tint hanako = 0;\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tString t = sc.next();\n\t\t\tString h = sc.next();\n\t\t\tif (t.compareTo(h) < 0) {hanako += 3;}\n\t\t\telse if (t.compareTo(h) > 0) {taro += 3;}\n\t\t\telse {hanako++; taro++;}\n\t\t}\n\t\tSystem.out.println(taro+\" \"+hanako);\n\t}\n}",
"Main",
"static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"public static void main(String[] args) {\n\t\tint n = sc.nextInt();\n\t\tint taro = 0;\n\t\tint hanako = 0;\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tString t = sc.next();\n\t\t\tString h = sc.next();\n\t\t\tif (t.compareTo(h) < 0) {hanako += 3;}\n\t\t\telse if (t.compareTo(h) > 0) {taro += 3;}\n\t\t\telse {hanako++; taro++;}\n\t\t}\n\t\tSystem.out.println(taro+\" \"+hanako);\n\t}",
"main",
"{\n\t\tint n = sc.nextInt();\n\t\tint taro = 0;\n\t\tint hanako = 0;\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tString t = sc.next();\n\t\t\tString h = sc.next();\n\t\t\tif (t.compareTo(h) < 0) {hanako += 3;}\n\t\t\telse if (t.compareTo(h) > 0) {taro += 3;}\n\t\t\telse {hanako++; taro++;}\n\t\t}\n\t\tSystem.out.println(taro+\" \"+hanako);\n\t}",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int taro = 0;",
"taro",
"0",
"int hanako = 0;",
"hanako",
"0",
"for (int i=0; i<n; i++) {\n\t\t\tString t = sc.next();\n\t\t\tString h = sc.next();\n\t\t\tif (t.compareTo(h) < 0) {hanako += 3;}\n\t\t\telse if (t.compareTo(h) > 0) {taro += 3;}\n\t\t\telse {hanako++; taro++;}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString t = sc.next();\n\t\t\tString h = sc.next();\n\t\t\tif (t.compareTo(h) < 0) {hanako += 3;}\n\t\t\telse if (t.compareTo(h) > 0) {taro += 3;}\n\t\t\telse {hanako++; taro++;}\n\t\t}",
"{\n\t\t\tString t = sc.next();\n\t\t\tString h = sc.next();\n\t\t\tif (t.compareTo(h) < 0) {hanako += 3;}\n\t\t\telse if (t.compareTo(h) > 0) {taro += 3;}\n\t\t\telse {hanako++; taro++;}\n\t\t}",
"String t = sc.next();",
"t",
"sc.next()",
"sc.next",
"sc",
"String h = sc.next();",
"h",
"sc.next()",
"sc.next",
"sc",
"if (t.compareTo(h) < 0) {hanako += 3;}\n\t\t\telse if (t.compareTo(h) > 0) {taro += 3;}\n\t\t\telse {hanako++; taro++;}",
"t.compareTo(h) < 0",
"t.compareTo(h)",
"t.compareTo",
"t",
"h",
"0",
"{hanako += 3;}",
"hanako += 3",
"hanako",
"3",
"if (t.compareTo(h) > 0) {taro += 3;}\n\t\t\telse {hanako++; taro++;}",
"t.compareTo(h) > 0",
"t.compareTo(h)",
"t.compareTo",
"t",
"h",
"0",
"{taro += 3;}",
"taro += 3",
"taro",
"3",
"{hanako++; taro++;}",
"hanako++",
"hanako",
"taro++",
"taro",
"System.out.println(taro+\" \"+hanako)",
"System.out.println",
"System.out",
"System",
"System.out",
"taro+\" \"+hanako",
"taro+\" \"+hanako",
"taro",
"\" \"",
"hanako",
"String[] args",
"args",
"public class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tint n = sc.nextInt();\n\t\tint taro = 0;\n\t\tint hanako = 0;\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tString t = sc.next();\n\t\t\tString h = sc.next();\n\t\t\tif (t.compareTo(h) < 0) {hanako += 3;}\n\t\t\telse if (t.compareTo(h) > 0) {taro += 3;}\n\t\t\telse {hanako++; taro++;}\n\t\t}\n\t\tSystem.out.println(taro+\" \"+hanako);\n\t}\n}",
"public class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tint n = sc.nextInt();\n\t\tint taro = 0;\n\t\tint hanako = 0;\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tString t = sc.next();\n\t\t\tString h = sc.next();\n\t\t\tif (t.compareTo(h) < 0) {hanako += 3;}\n\t\t\telse if (t.compareTo(h) > 0) {taro += 3;}\n\t\t\telse {hanako++; taro++;}\n\t\t}\n\t\tSystem.out.println(taro+\" \"+hanako);\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
int n = sc.nextInt();
int taro = 0;
int hanako = 0;
for (int i=0; i<n; i++) {
String t = sc.next();
String h = sc.next();
if (t.compareTo(h) < 0) {hanako += 3;}
else if (t.compareTo(h) > 0) {taro += 3;}
else {hanako++; taro++;}
}
System.out.println(taro+" "+hanako);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
13,
4,
18,
13,
4,
18,
13,
14,
2,
13,
17,
0,
13,
17,
14,
2,
13,
17,
0,
13,
17,
30,
0,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
4,
18,
13,
17,
13,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
29,
17,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
29,
40,
17,
29,
17,
14,
2,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
29,
17,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
29,
40,
17,
29,
40,
17,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
29,
17,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
29,
40,
17,
29,
17,
23,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
230,
5
],
[
230,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
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
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
38,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
50,
52
],
[
46,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
57,
59
],
[
53,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
64,
66
],
[
8,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
72,
76
],
[
72,
77
],
[
6,
78
],
[
78,
79
],
[
230,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
82,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
82,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
103,
104
],
[
103,
105
],
[
98,
106
],
[
106,
107
],
[
107,
108
],
[
98,
109
],
[
110,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
112,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
111,
121
],
[
121,
122
],
[
111,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
125,
128
],
[
124,
129
],
[
129,
130
],
[
130,
131
],
[
129,
132
],
[
123,
133
],
[
133,
134
],
[
134,
135
],
[
97,
136
],
[
136,
137
],
[
93,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
138,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
143,
148
],
[
148,
149
],
[
148,
150
],
[
143,
151
],
[
151,
152
],
[
152,
153
],
[
143,
154
],
[
155,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
158,
161
],
[
157,
162
],
[
162,
163
],
[
163,
164
],
[
162,
165
],
[
156,
166
],
[
166,
167
],
[
156,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
170,
173
],
[
169,
174
],
[
174,
175
],
[
175,
176
],
[
174,
177
],
[
168,
178
],
[
178,
179
],
[
179,
180
],
[
142,
181
],
[
181,
182
],
[
182,
183
],
[
138,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
185,
190
],
[
190,
191
],
[
190,
192
],
[
185,
193
],
[
193,
194
],
[
194,
195
],
[
185,
196
],
[
197,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
200,
203
],
[
199,
204
],
[
204,
205
],
[
205,
206
],
[
204,
207
],
[
198,
208
],
[
208,
209
],
[
198,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
212,
215
],
[
211,
216
],
[
216,
217
],
[
217,
218
],
[
216,
219
],
[
210,
220
],
[
220,
221
],
[
221,
222
],
[
184,
223
],
[
223,
224
],
[
80,
225
],
[
225,
226
],
[
80,
227
],
[
227,
228
],
[
0,
229
],
[
229,
230
],
[
229,
231
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int taro = 0;\n int hanako = 0;\n\n for(int i = 0; i < n; i++){\n int ret = compareTo(sc.next(), sc.next());\n if(ret > 0) taro += 3;\n else if(ret < 0) hanako += 3;\n else {\n taro += 1;\n hanako += 1;\n }\n }\n\n System.out.println(String.format(\"%d %d\", taro, hanako));\n }\n\n /**\n *\n * @param str1\n * @param str2\n * @return str1 > str2 -> 1, str1 == str2 -> 0, str1 < str2 -> -1\n */\n public static int compareTo(String str1, String str2){\n int length1 = str1.length();\n int length2 = str2.length();\n if(length1 > length2){\n for(int i = 0; i < length2; i++){\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }\n return 1;\n }\n else if(length1 < length2){\n for(int i = 0; i < length1; i++){\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }\n return -1;\n }\n else {\n for(int i = 0; i < length1; i++){\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }\n return 0;\n }\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int taro = 0;\n int hanako = 0;\n\n for(int i = 0; i < n; i++){\n int ret = compareTo(sc.next(), sc.next());\n if(ret > 0) taro += 3;\n else if(ret < 0) hanako += 3;\n else {\n taro += 1;\n hanako += 1;\n }\n }\n\n System.out.println(String.format(\"%d %d\", taro, hanako));\n }\n\n /**\n *\n * @param str1\n * @param str2\n * @return str1 > str2 -> 1, str1 == str2 -> 0, str1 < str2 -> -1\n */\n public static int compareTo(String str1, String str2){\n int length1 = str1.length();\n int length2 = str2.length();\n if(length1 > length2){\n for(int i = 0; i < length2; i++){\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }\n return 1;\n }\n else if(length1 < length2){\n for(int i = 0; i < length1; i++){\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }\n return -1;\n }\n else {\n for(int i = 0; i < length1; i++){\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }\n return 0;\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int taro = 0;\n int hanako = 0;\n\n for(int i = 0; i < n; i++){\n int ret = compareTo(sc.next(), sc.next());\n if(ret > 0) taro += 3;\n else if(ret < 0) hanako += 3;\n else {\n taro += 1;\n hanako += 1;\n }\n }\n\n System.out.println(String.format(\"%d %d\", taro, hanako));\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int taro = 0;\n int hanako = 0;\n\n for(int i = 0; i < n; i++){\n int ret = compareTo(sc.next(), sc.next());\n if(ret > 0) taro += 3;\n else if(ret < 0) hanako += 3;\n else {\n taro += 1;\n hanako += 1;\n }\n }\n\n System.out.println(String.format(\"%d %d\", taro, hanako));\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int taro = 0;",
"taro",
"0",
"int hanako = 0;",
"hanako",
"0",
"for(int i = 0; i < n; i++){\n int ret = compareTo(sc.next(), sc.next());\n if(ret > 0) taro += 3;\n else if(ret < 0) hanako += 3;\n else {\n taro += 1;\n hanako += 1;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int ret = compareTo(sc.next(), sc.next());\n if(ret > 0) taro += 3;\n else if(ret < 0) hanako += 3;\n else {\n taro += 1;\n hanako += 1;\n }\n }",
"{\n int ret = compareTo(sc.next(), sc.next());\n if(ret > 0) taro += 3;\n else if(ret < 0) hanako += 3;\n else {\n taro += 1;\n hanako += 1;\n }\n }",
"int ret = compareTo(sc.next(), sc.next());",
"ret",
"compareTo(sc.next(), sc.next())",
"compareTo",
"sc.next()",
"sc.next",
"sc",
"sc.next()",
"sc.next",
"sc",
"if(ret > 0) taro += 3;\n else if(ret < 0) hanako += 3;\n else {\n taro += 1;\n hanako += 1;\n }",
"ret > 0",
"ret",
"0",
"taro += 3",
"taro",
"3",
"if(ret < 0) hanako += 3;\n else {\n taro += 1;\n hanako += 1;\n }",
"ret < 0",
"ret",
"0",
"hanako += 3",
"hanako",
"3",
"{\n taro += 1;\n hanako += 1;\n }",
"taro += 1",
"taro",
"1",
"hanako += 1",
"hanako",
"1",
"System.out.println(String.format(\"%d %d\", taro, hanako))",
"System.out.println",
"System.out",
"System",
"System.out",
"String.format(\"%d %d\", taro, hanako)",
"String.format",
"String",
"\"%d %d\"",
"taro",
"hanako",
"String[] args",
"args",
"/**\n *\n * @param str1\n * @param str2\n * @return str1 > str2 -> 1, str1 == str2 -> 0, str1 < str2 -> -1\n */\n public static int compareTo(String str1, String str2){\n int length1 = str1.length();\n int length2 = str2.length();\n if(length1 > length2){\n for(int i = 0; i < length2; i++){\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }\n return 1;\n }\n else if(length1 < length2){\n for(int i = 0; i < length1; i++){\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }\n return -1;\n }\n else {\n for(int i = 0; i < length1; i++){\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }\n return 0;\n }\n }",
"compareTo",
"{\n int length1 = str1.length();\n int length2 = str2.length();\n if(length1 > length2){\n for(int i = 0; i < length2; i++){\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }\n return 1;\n }\n else if(length1 < length2){\n for(int i = 0; i < length1; i++){\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }\n return -1;\n }\n else {\n for(int i = 0; i < length1; i++){\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }\n return 0;\n }\n }",
"int length1 = str1.length();",
"length1",
"str1.length()",
"str1.length",
"str1",
"int length2 = str2.length();",
"length2",
"str2.length()",
"str2.length",
"str2",
"if(length1 > length2){\n for(int i = 0; i < length2; i++){\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }\n return 1;\n }\n else if(length1 < length2){\n for(int i = 0; i < length1; i++){\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }\n return -1;\n }\n else {\n for(int i = 0; i < length1; i++){\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }\n return 0;\n }",
"length1 > length2",
"length1",
"length2",
"{\n for(int i = 0; i < length2; i++){\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }\n return 1;\n }",
"for(int i = 0; i < length2; i++){\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < length2",
"i",
"length2",
"i++",
"i++",
"i",
"{\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }",
"{\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }",
"if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;",
"str1.charAt(i) > str2.charAt(i)",
"str1.charAt(i)",
"str1.charAt",
"str1",
"i",
"str2.charAt(i)",
"str2.charAt",
"str2",
"i",
"return 1;",
"1",
"if(str1.charAt(i) < str2.charAt(i)) return -1;",
"str1.charAt(i) < str2.charAt(i)",
"str1.charAt(i)",
"str1.charAt",
"str1",
"i",
"str2.charAt(i)",
"str2.charAt",
"str2",
"i",
"return -1;",
"-1",
"1",
"return 1;",
"1",
"if(length1 < length2){\n for(int i = 0; i < length1; i++){\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }\n return -1;\n }\n else {\n for(int i = 0; i < length1; i++){\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }\n return 0;\n }",
"length1 < length2",
"length1",
"length2",
"{\n for(int i = 0; i < length1; i++){\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }\n return -1;\n }",
"for(int i = 0; i < length1; i++){\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < length1",
"i",
"length1",
"i++",
"i++",
"i",
"{\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }",
"{\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }",
"if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;",
"str1.charAt(i) > str2.charAt(i)",
"str1.charAt(i)",
"str1.charAt",
"str1",
"i",
"str2.charAt(i)",
"str2.charAt",
"str2",
"i",
"return 1;",
"1",
"if(str1.charAt(i) < str2.charAt(i)) return -1;",
"str1.charAt(i) < str2.charAt(i)",
"str1.charAt(i)",
"str1.charAt",
"str1",
"i",
"str2.charAt(i)",
"str2.charAt",
"str2",
"i",
"return -1;",
"-1",
"1",
"return -1;",
"-1",
"1",
"{\n for(int i = 0; i < length1; i++){\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }\n return 0;\n }",
"for(int i = 0; i < length1; i++){\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < length1",
"i",
"length1",
"i++",
"i++",
"i",
"{\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }",
"{\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }",
"if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;",
"str1.charAt(i) > str2.charAt(i)",
"str1.charAt(i)",
"str1.charAt",
"str1",
"i",
"str2.charAt(i)",
"str2.charAt",
"str2",
"i",
"return 1;",
"1",
"if(str1.charAt(i) < str2.charAt(i)) return -1;",
"str1.charAt(i) < str2.charAt(i)",
"str1.charAt(i)",
"str1.charAt",
"str1",
"i",
"str2.charAt(i)",
"str2.charAt",
"str2",
"i",
"return -1;",
"-1",
"1",
"return 0;",
"0",
"String str1",
"str1",
"String str2",
"str2",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int taro = 0;\n int hanako = 0;\n\n for(int i = 0; i < n; i++){\n int ret = compareTo(sc.next(), sc.next());\n if(ret > 0) taro += 3;\n else if(ret < 0) hanako += 3;\n else {\n taro += 1;\n hanako += 1;\n }\n }\n\n System.out.println(String.format(\"%d %d\", taro, hanako));\n }\n\n /**\n *\n * @param str1\n * @param str2\n * @return str1 > str2 -> 1, str1 == str2 -> 0, str1 < str2 -> -1\n */\n public static int compareTo(String str1, String str2){\n int length1 = str1.length();\n int length2 = str2.length();\n if(length1 > length2){\n for(int i = 0; i < length2; i++){\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }\n return 1;\n }\n else if(length1 < length2){\n for(int i = 0; i < length1; i++){\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }\n return -1;\n }\n else {\n for(int i = 0; i < length1; i++){\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }\n return 0;\n }\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int taro = 0;\n int hanako = 0;\n\n for(int i = 0; i < n; i++){\n int ret = compareTo(sc.next(), sc.next());\n if(ret > 0) taro += 3;\n else if(ret < 0) hanako += 3;\n else {\n taro += 1;\n hanako += 1;\n }\n }\n\n System.out.println(String.format(\"%d %d\", taro, hanako));\n }\n\n /**\n *\n * @param str1\n * @param str2\n * @return str1 > str2 -> 1, str1 == str2 -> 0, str1 < str2 -> -1\n */\n public static int compareTo(String str1, String str2){\n int length1 = str1.length();\n int length2 = str2.length();\n if(length1 > length2){\n for(int i = 0; i < length2; i++){\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }\n return 1;\n }\n else if(length1 < length2){\n for(int i = 0; i < length1; i++){\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }\n return -1;\n }\n else {\n for(int i = 0; i < length1; i++){\n if(str1.charAt(i) > str2.charAt(i)) return 1;\n else if(str1.charAt(i) < str2.charAt(i)) return -1;\n }\n return 0;\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 taro = 0;
int hanako = 0;
for(int i = 0; i < n; i++){
int ret = compareTo(sc.next(), sc.next());
if(ret > 0) taro += 3;
else if(ret < 0) hanako += 3;
else {
taro += 1;
hanako += 1;
}
}
System.out.println(String.format("%d %d", taro, hanako));
}
/**
*
* @param str1
* @param str2
* @return str1 > str2 -> 1, str1 == str2 -> 0, str1 < str2 -> -1
*/
public static int compareTo(String str1, String str2){
int length1 = str1.length();
int length2 = str2.length();
if(length1 > length2){
for(int i = 0; i < length2; i++){
if(str1.charAt(i) > str2.charAt(i)) return 1;
else if(str1.charAt(i) < str2.charAt(i)) return -1;
}
return 1;
}
else if(length1 < length2){
for(int i = 0; i < length1; i++){
if(str1.charAt(i) > str2.charAt(i)) return 1;
else if(str1.charAt(i) < str2.charAt(i)) return -1;
}
return -1;
}
else {
for(int i = 0; i < length1; i++){
if(str1.charAt(i) > str2.charAt(i)) return 1;
else if(str1.charAt(i) < str2.charAt(i)) return -1;
}
return 0;
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
13,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
30,
40,
13,
40,
13,
4,
18,
18,
13,
13,
2,
2,
13,
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
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
14,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
14,
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
],
[
42,
45
],
[
45,
46
],
[
46,
47
],
[
41,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
51,
52
],
[
52,
53
],
[
14,
54
],
[
54,
55
],
[
54,
56
],
[
14,
57
],
[
57,
58
],
[
57,
59
],
[
14,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
60,
71
],
[
72,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
72,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
72,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
86,
91
],
[
85,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
85,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
97,
102
],
[
96,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
96,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
110,
111
],
[
14,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
118,
118
],
[
118,
119
],
[
118,
120
],
[
118,
121
],
[
12,
122
],
[
122,
123
]
]
| [
"/* package whatever; // don't place package name! */\n\nimport java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\n/* Name of the class has to be \"Main\" only if the class is public. */\nclass Main\n{\npublic static void main (String[] args) throws java.lang.Exception\n{\n\tScanner scan = new Scanner(System.in);\n\tList<String> taroList = new ArrayList<String>();\n\tList<String> hanakoList = new ArrayList<String>();\n\n\tint n = scan.nextInt();\n\n\tfor (int i = 0; i < n; i ++) {\n\t\ttaroList.add(scan.next());\n\t\thanakoList.add(scan.next());\t\n\t}\n\n\tint tP = 0;\n\tint hP = 0;\n\n\tfor (int i = 0; i < n; i ++) {\n\t\tString t = taroList.get(i);\n\t\tString h = hanakoList.get(i);\n\t\t\n\t\tif (t.compareTo(h) > 0) {\n\t\t\ttP += 3;\t\n\t\t}\n\t\telse if (t.compareTo(h) < 0) {\n\t\t\thP += 3;\n\t\t}\n\t\telse {\n\t\t\thP++;\n\t\t\ttP++;\n\t\t}\n\t}\n\t\t\n\tSystem.out.println(tP + \" \" + hP); \n\n}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"class Main\n{\npublic static void main (String[] args) throws java.lang.Exception\n{\n\tScanner scan = new Scanner(System.in);\n\tList<String> taroList = new ArrayList<String>();\n\tList<String> hanakoList = new ArrayList<String>();\n\n\tint n = scan.nextInt();\n\n\tfor (int i = 0; i < n; i ++) {\n\t\ttaroList.add(scan.next());\n\t\thanakoList.add(scan.next());\t\n\t}\n\n\tint tP = 0;\n\tint hP = 0;\n\n\tfor (int i = 0; i < n; i ++) {\n\t\tString t = taroList.get(i);\n\t\tString h = hanakoList.get(i);\n\t\t\n\t\tif (t.compareTo(h) > 0) {\n\t\t\ttP += 3;\t\n\t\t}\n\t\telse if (t.compareTo(h) < 0) {\n\t\t\thP += 3;\n\t\t}\n\t\telse {\n\t\t\thP++;\n\t\t\ttP++;\n\t\t}\n\t}\n\t\t\n\tSystem.out.println(tP + \" \" + hP); \n\n}\n}",
"Main",
"public static void main (String[] args) throws java.lang.Exception\n{\n\tScanner scan = new Scanner(System.in);\n\tList<String> taroList = new ArrayList<String>();\n\tList<String> hanakoList = new ArrayList<String>();\n\n\tint n = scan.nextInt();\n\n\tfor (int i = 0; i < n; i ++) {\n\t\ttaroList.add(scan.next());\n\t\thanakoList.add(scan.next());\t\n\t}\n\n\tint tP = 0;\n\tint hP = 0;\n\n\tfor (int i = 0; i < n; i ++) {\n\t\tString t = taroList.get(i);\n\t\tString h = hanakoList.get(i);\n\t\t\n\t\tif (t.compareTo(h) > 0) {\n\t\t\ttP += 3;\t\n\t\t}\n\t\telse if (t.compareTo(h) < 0) {\n\t\t\thP += 3;\n\t\t}\n\t\telse {\n\t\t\thP++;\n\t\t\ttP++;\n\t\t}\n\t}\n\t\t\n\tSystem.out.println(tP + \" \" + hP); \n\n}",
"main",
"{\n\tScanner scan = new Scanner(System.in);\n\tList<String> taroList = new ArrayList<String>();\n\tList<String> hanakoList = new ArrayList<String>();\n\n\tint n = scan.nextInt();\n\n\tfor (int i = 0; i < n; i ++) {\n\t\ttaroList.add(scan.next());\n\t\thanakoList.add(scan.next());\t\n\t}\n\n\tint tP = 0;\n\tint hP = 0;\n\n\tfor (int i = 0; i < n; i ++) {\n\t\tString t = taroList.get(i);\n\t\tString h = hanakoList.get(i);\n\t\t\n\t\tif (t.compareTo(h) > 0) {\n\t\t\ttP += 3;\t\n\t\t}\n\t\telse if (t.compareTo(h) < 0) {\n\t\t\thP += 3;\n\t\t}\n\t\telse {\n\t\t\thP++;\n\t\t\ttP++;\n\t\t}\n\t}\n\t\t\n\tSystem.out.println(tP + \" \" + hP); \n\n}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"List<String> taroList = new ArrayList<String>();",
"taroList",
"new ArrayList<String>()",
"List<String> hanakoList = new ArrayList<String>();",
"hanakoList",
"new ArrayList<String>()",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int i = 0; i < n; i ++) {\n\t\ttaroList.add(scan.next());\n\t\thanakoList.add(scan.next());\t\n\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i ++",
"i ++",
"i",
"{\n\t\ttaroList.add(scan.next());\n\t\thanakoList.add(scan.next());\t\n\t}",
"{\n\t\ttaroList.add(scan.next());\n\t\thanakoList.add(scan.next());\t\n\t}",
"taroList.add(scan.next())",
"taroList.add",
"taroList",
"scan.next()",
"scan.next",
"scan",
"hanakoList.add(scan.next())",
"hanakoList.add",
"hanakoList",
"scan.next()",
"scan.next",
"scan",
"int tP = 0;",
"tP",
"0",
"int hP = 0;",
"hP",
"0",
"for (int i = 0; i < n; i ++) {\n\t\tString t = taroList.get(i);\n\t\tString h = hanakoList.get(i);\n\t\t\n\t\tif (t.compareTo(h) > 0) {\n\t\t\ttP += 3;\t\n\t\t}\n\t\telse if (t.compareTo(h) < 0) {\n\t\t\thP += 3;\n\t\t}\n\t\telse {\n\t\t\thP++;\n\t\t\ttP++;\n\t\t}\n\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i ++",
"i ++",
"i",
"{\n\t\tString t = taroList.get(i);\n\t\tString h = hanakoList.get(i);\n\t\t\n\t\tif (t.compareTo(h) > 0) {\n\t\t\ttP += 3;\t\n\t\t}\n\t\telse if (t.compareTo(h) < 0) {\n\t\t\thP += 3;\n\t\t}\n\t\telse {\n\t\t\thP++;\n\t\t\ttP++;\n\t\t}\n\t}",
"{\n\t\tString t = taroList.get(i);\n\t\tString h = hanakoList.get(i);\n\t\t\n\t\tif (t.compareTo(h) > 0) {\n\t\t\ttP += 3;\t\n\t\t}\n\t\telse if (t.compareTo(h) < 0) {\n\t\t\thP += 3;\n\t\t}\n\t\telse {\n\t\t\thP++;\n\t\t\ttP++;\n\t\t}\n\t}",
"String t = taroList.get(i);",
"t",
"taroList.get(i)",
"taroList.get",
"taroList",
"i",
"String h = hanakoList.get(i);",
"h",
"hanakoList.get(i)",
"hanakoList.get",
"hanakoList",
"i",
"if (t.compareTo(h) > 0) {\n\t\t\ttP += 3;\t\n\t\t}\n\t\telse if (t.compareTo(h) < 0) {\n\t\t\thP += 3;\n\t\t}\n\t\telse {\n\t\t\thP++;\n\t\t\ttP++;\n\t\t}",
"t.compareTo(h) > 0",
"t.compareTo(h)",
"t.compareTo",
"t",
"h",
"0",
"{\n\t\t\ttP += 3;\t\n\t\t}",
"tP += 3",
"tP",
"3",
"if (t.compareTo(h) < 0) {\n\t\t\thP += 3;\n\t\t}\n\t\telse {\n\t\t\thP++;\n\t\t\ttP++;\n\t\t}",
"t.compareTo(h) < 0",
"t.compareTo(h)",
"t.compareTo",
"t",
"h",
"0",
"{\n\t\t\thP += 3;\n\t\t}",
"hP += 3",
"hP",
"3",
"{\n\t\t\thP++;\n\t\t\ttP++;\n\t\t}",
"hP++",
"hP",
"tP++",
"tP",
"System.out.println(tP + \" \" + hP)",
"System.out.println",
"System.out",
"System",
"System.out",
"tP + \" \" + hP",
"tP + \" \" + hP",
"tP",
"\" \"",
"hP",
"String[] args",
"args"
]
| /* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Main
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner scan = new Scanner(System.in);
List<String> taroList = new ArrayList<String>();
List<String> hanakoList = new ArrayList<String>();
int n = scan.nextInt();
for (int i = 0; i < n; i ++) {
taroList.add(scan.next());
hanakoList.add(scan.next());
}
int tP = 0;
int hP = 0;
for (int i = 0; i < n; i ++) {
String t = taroList.get(i);
String h = hanakoList.get(i);
if (t.compareTo(h) > 0) {
tP += 3;
}
else if (t.compareTo(h) < 0) {
hP += 3;
}
else {
hP++;
tP++;
}
}
System.out.println(tP + " " + hP);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
4,
18,
13,
13,
2,
13,
17,
4,
18,
13,
13,
2,
13,
17,
17,
30,
0,
13,
4,
18,
4,
18,
13,
13,
2,
13,
17,
4,
18,
13,
13,
2,
13,
17,
3,
14,
2,
13,
17,
0,
13,
17,
14,
2,
13,
17,
30,
14,
2,
4,
18,
13,
4,
18,
13,
0,
13,
17,
14,
2,
4,
18,
13,
4,
18,
13,
0,
13,
17,
30,
40,
13,
40,
13,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
175,
5
],
[
175,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
28,
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
],
[
43,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
43,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
43,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
62,
63
],
[
63,
64
],
[
59,
65
],
[
65,
66
],
[
66,
67
],
[
43,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
68,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
85,
89
],
[
89,
90
],
[
89,
91
],
[
83,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
92,
96
],
[
96,
97
],
[
96,
98
],
[
82,
99
],
[
81,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
105,
109
],
[
109,
110
],
[
109,
111
],
[
103,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
112,
116
],
[
116,
117
],
[
116,
118
],
[
100,
119
],
[
43,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
124,
125
],
[
124,
126
],
[
120,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
133,
137
],
[
137,
138
],
[
138,
139
],
[
132,
140
],
[
140,
141
],
[
140,
142
],
[
132,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
144,
148
],
[
148,
149
],
[
149,
150
],
[
143,
151
],
[
151,
152
],
[
151,
153
],
[
143,
154
],
[
154,
155
],
[
155,
156
],
[
154,
157
],
[
157,
158
],
[
127,
159
],
[
159,
160
],
[
159,
161
],
[
8,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
162,
167
],
[
168,
168
],
[
168,
169
],
[
168,
170
],
[
168,
171
],
[
6,
172
],
[
172,
173
],
[
0,
174
],
[
174,
175
],
[
174,
176
]
]
| [
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n String words1, words2;\n int wordl,result,score1=0,score2=0;\n int n=scan.nextInt();\n \n for(int i=0; i<n; i++){\n result=0;\n words1=scan.next();\n words2=scan.next();\n \n wordl=Math.min(words1.length(), words2.length());\n for(int j=0; j<wordl; j++){\n if(words1.substring(j,j+1).compareTo(words2.substring(j,j+1))!=0){\n result=words1.substring(j,j+1).compareTo(words2.substring(j,j+1));\n break;\n }\n }\n if(result>0)score1+=3;\n else if(result==0){\n if(words1.length()>words2.length())score1+=3;\n else if(words1.length()<words2.length())score2+=3;\n else{\n score1++;\n score2++;\n }\n }else score2+=3;\n }\n System.out.println(score1+\" \"+score2);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n String words1, words2;\n int wordl,result,score1=0,score2=0;\n int n=scan.nextInt();\n \n for(int i=0; i<n; i++){\n result=0;\n words1=scan.next();\n words2=scan.next();\n \n wordl=Math.min(words1.length(), words2.length());\n for(int j=0; j<wordl; j++){\n if(words1.substring(j,j+1).compareTo(words2.substring(j,j+1))!=0){\n result=words1.substring(j,j+1).compareTo(words2.substring(j,j+1));\n break;\n }\n }\n if(result>0)score1+=3;\n else if(result==0){\n if(words1.length()>words2.length())score1+=3;\n else if(words1.length()<words2.length())score2+=3;\n else{\n score1++;\n score2++;\n }\n }else score2+=3;\n }\n System.out.println(score1+\" \"+score2);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n String words1, words2;\n int wordl,result,score1=0,score2=0;\n int n=scan.nextInt();\n \n for(int i=0; i<n; i++){\n result=0;\n words1=scan.next();\n words2=scan.next();\n \n wordl=Math.min(words1.length(), words2.length());\n for(int j=0; j<wordl; j++){\n if(words1.substring(j,j+1).compareTo(words2.substring(j,j+1))!=0){\n result=words1.substring(j,j+1).compareTo(words2.substring(j,j+1));\n break;\n }\n }\n if(result>0)score1+=3;\n else if(result==0){\n if(words1.length()>words2.length())score1+=3;\n else if(words1.length()<words2.length())score2+=3;\n else{\n score1++;\n score2++;\n }\n }else score2+=3;\n }\n System.out.println(score1+\" \"+score2);\n }",
"main",
"{\n Scanner scan=new Scanner(System.in);\n String words1, words2;\n int wordl,result,score1=0,score2=0;\n int n=scan.nextInt();\n \n for(int i=0; i<n; i++){\n result=0;\n words1=scan.next();\n words2=scan.next();\n \n wordl=Math.min(words1.length(), words2.length());\n for(int j=0; j<wordl; j++){\n if(words1.substring(j,j+1).compareTo(words2.substring(j,j+1))!=0){\n result=words1.substring(j,j+1).compareTo(words2.substring(j,j+1));\n break;\n }\n }\n if(result>0)score1+=3;\n else if(result==0){\n if(words1.length()>words2.length())score1+=3;\n else if(words1.length()<words2.length())score2+=3;\n else{\n score1++;\n score2++;\n }\n }else score2+=3;\n }\n System.out.println(score1+\" \"+score2);\n }",
"Scanner scan=new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String words1",
"words1",
"words2;",
"words2",
"int wordl",
"wordl",
"result",
"result",
"score1=0",
"score1",
"0",
"score2=0;",
"score2",
"0",
"int n=scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i=0; i<n; i++){\n result=0;\n words1=scan.next();\n words2=scan.next();\n \n wordl=Math.min(words1.length(), words2.length());\n for(int j=0; j<wordl; j++){\n if(words1.substring(j,j+1).compareTo(words2.substring(j,j+1))!=0){\n result=words1.substring(j,j+1).compareTo(words2.substring(j,j+1));\n break;\n }\n }\n if(result>0)score1+=3;\n else if(result==0){\n if(words1.length()>words2.length())score1+=3;\n else if(words1.length()<words2.length())score2+=3;\n else{\n score1++;\n score2++;\n }\n }else score2+=3;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n result=0;\n words1=scan.next();\n words2=scan.next();\n \n wordl=Math.min(words1.length(), words2.length());\n for(int j=0; j<wordl; j++){\n if(words1.substring(j,j+1).compareTo(words2.substring(j,j+1))!=0){\n result=words1.substring(j,j+1).compareTo(words2.substring(j,j+1));\n break;\n }\n }\n if(result>0)score1+=3;\n else if(result==0){\n if(words1.length()>words2.length())score1+=3;\n else if(words1.length()<words2.length())score2+=3;\n else{\n score1++;\n score2++;\n }\n }else score2+=3;\n }",
"{\n result=0;\n words1=scan.next();\n words2=scan.next();\n \n wordl=Math.min(words1.length(), words2.length());\n for(int j=0; j<wordl; j++){\n if(words1.substring(j,j+1).compareTo(words2.substring(j,j+1))!=0){\n result=words1.substring(j,j+1).compareTo(words2.substring(j,j+1));\n break;\n }\n }\n if(result>0)score1+=3;\n else if(result==0){\n if(words1.length()>words2.length())score1+=3;\n else if(words1.length()<words2.length())score2+=3;\n else{\n score1++;\n score2++;\n }\n }else score2+=3;\n }",
"result=0",
"result",
"0",
"words1=scan.next()",
"words1",
"scan.next()",
"scan.next",
"scan",
"words2=scan.next()",
"words2",
"scan.next()",
"scan.next",
"scan",
"wordl=Math.min(words1.length(), words2.length())",
"wordl",
"Math.min(words1.length(), words2.length())",
"Math.min",
"Math",
"words1.length()",
"words1.length",
"words1",
"words2.length()",
"words2.length",
"words2",
"for(int j=0; j<wordl; j++){\n if(words1.substring(j,j+1).compareTo(words2.substring(j,j+1))!=0){\n result=words1.substring(j,j+1).compareTo(words2.substring(j,j+1));\n break;\n }\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<wordl",
"j",
"wordl",
"j++",
"j++",
"j",
"{\n if(words1.substring(j,j+1).compareTo(words2.substring(j,j+1))!=0){\n result=words1.substring(j,j+1).compareTo(words2.substring(j,j+1));\n break;\n }\n }",
"{\n if(words1.substring(j,j+1).compareTo(words2.substring(j,j+1))!=0){\n result=words1.substring(j,j+1).compareTo(words2.substring(j,j+1));\n break;\n }\n }",
"if(words1.substring(j,j+1).compareTo(words2.substring(j,j+1))!=0){\n result=words1.substring(j,j+1).compareTo(words2.substring(j,j+1));\n break;\n }",
"words1.substring(j,j+1).compareTo(words2.substring(j,j+1))!=0",
"words1.substring(j,j+1).compareTo(words2.substring(j,j+1))",
"words1.substring(j,j+1).compareTo",
"words1.substring(j,j+1)",
"words1.substring",
"words1",
"j",
"j+1",
"j",
"1",
"words2.substring(j,j+1)",
"words2.substring",
"words2",
"j",
"j+1",
"j",
"1",
"0",
"{\n result=words1.substring(j,j+1).compareTo(words2.substring(j,j+1));\n break;\n }",
"result=words1.substring(j,j+1).compareTo(words2.substring(j,j+1))",
"result",
"words1.substring(j,j+1).compareTo(words2.substring(j,j+1))",
"words1.substring(j,j+1).compareTo",
"words1.substring(j,j+1)",
"words1.substring",
"words1",
"j",
"j+1",
"j",
"1",
"words2.substring(j,j+1)",
"words2.substring",
"words2",
"j",
"j+1",
"j",
"1",
"break;",
"if(result>0)score1+=3;\n else if(result==0){\n if(words1.length()>words2.length())score1+=3;\n else if(words1.length()<words2.length())score2+=3;\n else{\n score1++;\n score2++;\n }\n }else score2+=3;",
"result>0",
"result",
"0",
"score1+=3",
"score1",
"3",
"if(result==0){\n if(words1.length()>words2.length())score1+=3;\n else if(words1.length()<words2.length())score2+=3;\n else{\n score1++;\n score2++;\n }\n }else score2+=3;",
"result==0",
"result",
"0",
"{\n if(words1.length()>words2.length())score1+=3;\n else if(words1.length()<words2.length())score2+=3;\n else{\n score1++;\n score2++;\n }\n }",
"if(words1.length()>words2.length())score1+=3;\n else if(words1.length()<words2.length())score2+=3;\n else{\n score1++;\n score2++;\n }",
"words1.length()>words2.length()",
"words1.length()",
"words1.length",
"words1",
"words2.length()",
"words2.length",
"words2",
"score1+=3",
"score1",
"3",
"if(words1.length()<words2.length())score2+=3;\n else{\n score1++;\n score2++;\n }",
"words1.length()<words2.length()",
"words1.length()",
"words1.length",
"words1",
"words2.length()",
"words2.length",
"words2",
"score2+=3",
"score2",
"3",
"{\n score1++;\n score2++;\n }",
"score1++",
"score1",
"score2++",
"score2",
"score2+=3",
"score2",
"3",
"System.out.println(score1+\" \"+score2)",
"System.out.println",
"System.out",
"System",
"System.out",
"score1+\" \"+score2",
"score1+\" \"+score2",
"score1",
"\" \"",
"score2",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n String words1, words2;\n int wordl,result,score1=0,score2=0;\n int n=scan.nextInt();\n \n for(int i=0; i<n; i++){\n result=0;\n words1=scan.next();\n words2=scan.next();\n \n wordl=Math.min(words1.length(), words2.length());\n for(int j=0; j<wordl; j++){\n if(words1.substring(j,j+1).compareTo(words2.substring(j,j+1))!=0){\n result=words1.substring(j,j+1).compareTo(words2.substring(j,j+1));\n break;\n }\n }\n if(result>0)score1+=3;\n else if(result==0){\n if(words1.length()>words2.length())score1+=3;\n else if(words1.length()<words2.length())score2+=3;\n else{\n score1++;\n score2++;\n }\n }else score2+=3;\n }\n System.out.println(score1+\" \"+score2);\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n String words1, words2;\n int wordl,result,score1=0,score2=0;\n int n=scan.nextInt();\n \n for(int i=0; i<n; i++){\n result=0;\n words1=scan.next();\n words2=scan.next();\n \n wordl=Math.min(words1.length(), words2.length());\n for(int j=0; j<wordl; j++){\n if(words1.substring(j,j+1).compareTo(words2.substring(j,j+1))!=0){\n result=words1.substring(j,j+1).compareTo(words2.substring(j,j+1));\n break;\n }\n }\n if(result>0)score1+=3;\n else if(result==0){\n if(words1.length()>words2.length())score1+=3;\n else if(words1.length()<words2.length())score2+=3;\n else{\n score1++;\n score2++;\n }\n }else score2+=3;\n }\n System.out.println(score1+\" \"+score2);\n }\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
String words1, words2;
int wordl,result,score1=0,score2=0;
int n=scan.nextInt();
for(int i=0; i<n; i++){
result=0;
words1=scan.next();
words2=scan.next();
wordl=Math.min(words1.length(), words2.length());
for(int j=0; j<wordl; j++){
if(words1.substring(j,j+1).compareTo(words2.substring(j,j+1))!=0){
result=words1.substring(j,j+1).compareTo(words2.substring(j,j+1));
break;
}
}
if(result>0)score1+=3;
else if(result==0){
if(words1.length()>words2.length())score1+=3;
else if(words1.length()<words2.length())score2+=3;
else{
score1++;
score2++;
}
}else score2+=3;
}
System.out.println(score1+" "+score2);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
17,
0,
13,
4,
18,
18,
13,
17,
18,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
30,
40,
13,
40,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
119,
11
],
[
119,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
15,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
22,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
22,
37
],
[
37,
38
],
[
22,
39
],
[
39,
40
],
[
39,
41
],
[
22,
43
],
[
43,
44
],
[
22,
45
],
[
45,
46
],
[
45,
47
],
[
22,
48
],
[
48,
49
],
[
48,
50
],
[
22,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
51,
59
],
[
59,
60
],
[
60,
61
],
[
51,
62
],
[
63,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
63,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
63,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
63,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
85,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
93,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
104,
105
],
[
22,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
112,
112
],
[
112,
113
],
[
112,
114
],
[
112,
115
],
[
12,
116
],
[
116,
117
],
[
0,
118
],
[
118,
119
],
[
118,
120
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString number = reader.readLine();\n\t\t\tint n = Integer.parseInt(number);\n\n\t\t\tString cards;\n\t\t\tString[] card = new String[2];\n\t\t\tint judge;\n\t\t\tint taro = 0;\n\t\t\tint hanako = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tcards = reader.readLine();\n\t\t\t\tcard = cards.split(\" \");\n\t\t\t\tjudge = card[0].compareTo(card[1]);\n\t\t\t\tif (judge > 0) {\n\t\t\t\t\ttaro += 3;\n\t\t\t\t} else if (judge < 0) {\n\t\t\t\t\thanako += 3;\n\t\t\t\t} else {\n\t\t\t\t\ttaro++;\n\t\t\t\t\thanako++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(taro + \" \" + hanako);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\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",
"public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString number = reader.readLine();\n\t\t\tint n = Integer.parseInt(number);\n\n\t\t\tString cards;\n\t\t\tString[] card = new String[2];\n\t\t\tint judge;\n\t\t\tint taro = 0;\n\t\t\tint hanako = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tcards = reader.readLine();\n\t\t\t\tcard = cards.split(\" \");\n\t\t\t\tjudge = card[0].compareTo(card[1]);\n\t\t\t\tif (judge > 0) {\n\t\t\t\t\ttaro += 3;\n\t\t\t\t} else if (judge < 0) {\n\t\t\t\t\thanako += 3;\n\t\t\t\t} else {\n\t\t\t\t\ttaro++;\n\t\t\t\t\thanako++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(taro + \" \" + hanako);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\ttry {\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString number = reader.readLine();\n\t\t\tint n = Integer.parseInt(number);\n\n\t\t\tString cards;\n\t\t\tString[] card = new String[2];\n\t\t\tint judge;\n\t\t\tint taro = 0;\n\t\t\tint hanako = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tcards = reader.readLine();\n\t\t\t\tcard = cards.split(\" \");\n\t\t\t\tjudge = card[0].compareTo(card[1]);\n\t\t\t\tif (judge > 0) {\n\t\t\t\t\ttaro += 3;\n\t\t\t\t} else if (judge < 0) {\n\t\t\t\t\thanako += 3;\n\t\t\t\t} else {\n\t\t\t\t\ttaro++;\n\t\t\t\t\thanako++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(taro + \" \" + hanako);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"main",
"{\n\t\ttry {\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString number = reader.readLine();\n\t\t\tint n = Integer.parseInt(number);\n\n\t\t\tString cards;\n\t\t\tString[] card = new String[2];\n\t\t\tint judge;\n\t\t\tint taro = 0;\n\t\t\tint hanako = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tcards = reader.readLine();\n\t\t\t\tcard = cards.split(\" \");\n\t\t\t\tjudge = card[0].compareTo(card[1]);\n\t\t\t\tif (judge > 0) {\n\t\t\t\t\ttaro += 3;\n\t\t\t\t} else if (judge < 0) {\n\t\t\t\t\thanako += 3;\n\t\t\t\t} else {\n\t\t\t\t\ttaro++;\n\t\t\t\t\thanako++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(taro + \" \" + hanako);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"try {\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString number = reader.readLine();\n\t\t\tint n = Integer.parseInt(number);\n\n\t\t\tString cards;\n\t\t\tString[] card = new String[2];\n\t\t\tint judge;\n\t\t\tint taro = 0;\n\t\t\tint hanako = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tcards = reader.readLine();\n\t\t\t\tcard = cards.split(\" \");\n\t\t\t\tjudge = card[0].compareTo(card[1]);\n\t\t\t\tif (judge > 0) {\n\t\t\t\t\ttaro += 3;\n\t\t\t\t} else if (judge < 0) {\n\t\t\t\t\thanako += 3;\n\t\t\t\t} else {\n\t\t\t\t\ttaro++;\n\t\t\t\t\thanako++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(taro + \" \" + hanako);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}",
"catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}",
"IOException e",
"{\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString number = reader.readLine();\n\t\t\tint n = Integer.parseInt(number);\n\n\t\t\tString cards;\n\t\t\tString[] card = new String[2];\n\t\t\tint judge;\n\t\t\tint taro = 0;\n\t\t\tint hanako = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tcards = reader.readLine();\n\t\t\t\tcard = cards.split(\" \");\n\t\t\t\tjudge = card[0].compareTo(card[1]);\n\t\t\t\tif (judge > 0) {\n\t\t\t\t\ttaro += 3;\n\t\t\t\t} else if (judge < 0) {\n\t\t\t\t\thanako += 3;\n\t\t\t\t} else {\n\t\t\t\t\ttaro++;\n\t\t\t\t\thanako++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(taro + \" \" + hanako);\n\t\t}",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"String number = reader.readLine();",
"number",
"reader.readLine()",
"reader.readLine",
"reader",
"int n = Integer.parseInt(number);",
"n",
"Integer.parseInt(number)",
"Integer.parseInt",
"Integer",
"number",
"String cards;",
"cards",
"String[] card = new String[2];",
"card",
"new String[2]",
"2",
"int judge;",
"judge",
"int taro = 0;",
"taro",
"0",
"int hanako = 0;",
"hanako",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\t\tcards = reader.readLine();\n\t\t\t\tcard = cards.split(\" \");\n\t\t\t\tjudge = card[0].compareTo(card[1]);\n\t\t\t\tif (judge > 0) {\n\t\t\t\t\ttaro += 3;\n\t\t\t\t} else if (judge < 0) {\n\t\t\t\t\thanako += 3;\n\t\t\t\t} else {\n\t\t\t\t\ttaro++;\n\t\t\t\t\thanako++;\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\tcards = reader.readLine();\n\t\t\t\tcard = cards.split(\" \");\n\t\t\t\tjudge = card[0].compareTo(card[1]);\n\t\t\t\tif (judge > 0) {\n\t\t\t\t\ttaro += 3;\n\t\t\t\t} else if (judge < 0) {\n\t\t\t\t\thanako += 3;\n\t\t\t\t} else {\n\t\t\t\t\ttaro++;\n\t\t\t\t\thanako++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tcards = reader.readLine();\n\t\t\t\tcard = cards.split(\" \");\n\t\t\t\tjudge = card[0].compareTo(card[1]);\n\t\t\t\tif (judge > 0) {\n\t\t\t\t\ttaro += 3;\n\t\t\t\t} else if (judge < 0) {\n\t\t\t\t\thanako += 3;\n\t\t\t\t} else {\n\t\t\t\t\ttaro++;\n\t\t\t\t\thanako++;\n\t\t\t\t}\n\t\t\t}",
"cards = reader.readLine()",
"cards",
"reader.readLine()",
"reader.readLine",
"reader",
"card = cards.split(\" \")",
"card",
"cards.split(\" \")",
"cards.split",
"cards",
"\" \"",
"judge = card[0].compareTo(card[1])",
"judge",
"card[0].compareTo(card[1])",
"card[0].compareTo",
"card[0]",
"card",
"0",
"card[1]",
"card",
"1",
"if (judge > 0) {\n\t\t\t\t\ttaro += 3;\n\t\t\t\t} else if (judge < 0) {\n\t\t\t\t\thanako += 3;\n\t\t\t\t} else {\n\t\t\t\t\ttaro++;\n\t\t\t\t\thanako++;\n\t\t\t\t}",
"judge > 0",
"judge",
"0",
"{\n\t\t\t\t\ttaro += 3;\n\t\t\t\t}",
"taro += 3",
"taro",
"3",
"if (judge < 0) {\n\t\t\t\t\thanako += 3;\n\t\t\t\t} else {\n\t\t\t\t\ttaro++;\n\t\t\t\t\thanako++;\n\t\t\t\t}",
"judge < 0",
"judge",
"0",
"{\n\t\t\t\t\thanako += 3;\n\t\t\t\t}",
"hanako += 3",
"hanako",
"3",
"{\n\t\t\t\t\ttaro++;\n\t\t\t\t\thanako++;\n\t\t\t\t}",
"taro++",
"taro",
"hanako++",
"hanako",
"System.out.println(taro + \" \" + hanako)",
"System.out.println",
"System.out",
"System",
"System.out",
"taro + \" \" + hanako",
"taro + \" \" + hanako",
"taro",
"\" \"",
"hanako",
"String[] args",
"args",
"public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString number = reader.readLine();\n\t\t\tint n = Integer.parseInt(number);\n\n\t\t\tString cards;\n\t\t\tString[] card = new String[2];\n\t\t\tint judge;\n\t\t\tint taro = 0;\n\t\t\tint hanako = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tcards = reader.readLine();\n\t\t\t\tcard = cards.split(\" \");\n\t\t\t\tjudge = card[0].compareTo(card[1]);\n\t\t\t\tif (judge > 0) {\n\t\t\t\t\ttaro += 3;\n\t\t\t\t} else if (judge < 0) {\n\t\t\t\t\thanako += 3;\n\t\t\t\t} else {\n\t\t\t\t\ttaro++;\n\t\t\t\t\thanako++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(taro + \" \" + hanako);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString number = reader.readLine();\n\t\t\tint n = Integer.parseInt(number);\n\n\t\t\tString cards;\n\t\t\tString[] card = new String[2];\n\t\t\tint judge;\n\t\t\tint taro = 0;\n\t\t\tint hanako = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tcards = reader.readLine();\n\t\t\t\tcard = cards.split(\" \");\n\t\t\t\tjudge = card[0].compareTo(card[1]);\n\t\t\t\tif (judge > 0) {\n\t\t\t\t\ttaro += 3;\n\t\t\t\t} else if (judge < 0) {\n\t\t\t\t\thanako += 3;\n\t\t\t\t} else {\n\t\t\t\t\ttaro++;\n\t\t\t\t\thanako++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(taro + \" \" + hanako);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
try {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String number = reader.readLine();
int n = Integer.parseInt(number);
String cards;
String[] card = new String[2];
int judge;
int taro = 0;
int hanako = 0;
for (int i = 0; i < n; i++) {
cards = reader.readLine();
card = cards.split(" ");
judge = card[0].compareTo(card[1]);
if (judge > 0) {
taro += 3;
} else if (judge < 0) {
hanako += 3;
} else {
taro++;
hanako++;
}
}
System.out.println(taro + " " + hanako);
} catch (IOException e) {
e.printStackTrace();
}
}
} |
[
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
30,
40,
13,
40,
13,
4,
18,
13,
17,
13,
13,
4,
18,
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
],
[
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
],
[
53,
54
],
[
44,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
56,
61
],
[
55,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
55,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
67,
72
],
[
66,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
66,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
80,
81
],
[
11,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
82,
86
],
[
82,
87
],
[
11,
88
],
[
88,
89
],
[
89,
90
],
[
9,
91
],
[
91,
92
]
]
| [
"import java.util.*;\nimport java.io.*;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out);\n\n int n = Integer.parseInt(sc.next());\n int a_score = 0;\n int b_score = 0;\n for (int i = 0; i < n; i++) {\n String a = sc.next();\n String b = sc.next();\n if (a.compareTo(b) < 0) {\n b_score += 3;\n } else if (a.compareTo(b) > 0) {\n a_score += 3;\n } else {\n a_score++;\n b_score++;\n }\n }\n out.printf(\"%d %d\\n\", a_score, b_score);\n out.flush();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out);\n\n int n = Integer.parseInt(sc.next());\n int a_score = 0;\n int b_score = 0;\n for (int i = 0; i < n; i++) {\n String a = sc.next();\n String b = sc.next();\n if (a.compareTo(b) < 0) {\n b_score += 3;\n } else if (a.compareTo(b) > 0) {\n a_score += 3;\n } else {\n a_score++;\n b_score++;\n }\n }\n out.printf(\"%d %d\\n\", a_score, b_score);\n out.flush();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out);\n\n int n = Integer.parseInt(sc.next());\n int a_score = 0;\n int b_score = 0;\n for (int i = 0; i < n; i++) {\n String a = sc.next();\n String b = sc.next();\n if (a.compareTo(b) < 0) {\n b_score += 3;\n } else if (a.compareTo(b) > 0) {\n a_score += 3;\n } else {\n a_score++;\n b_score++;\n }\n }\n out.printf(\"%d %d\\n\", a_score, b_score);\n out.flush();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out);\n\n int n = Integer.parseInt(sc.next());\n int a_score = 0;\n int b_score = 0;\n for (int i = 0; i < n; i++) {\n String a = sc.next();\n String b = sc.next();\n if (a.compareTo(b) < 0) {\n b_score += 3;\n } else if (a.compareTo(b) > 0) {\n a_score += 3;\n } else {\n a_score++;\n b_score++;\n }\n }\n out.printf(\"%d %d\\n\", a_score, b_score);\n out.flush();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"int n = Integer.parseInt(sc.next());",
"n",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int a_score = 0;",
"a_score",
"0",
"int b_score = 0;",
"b_score",
"0",
"for (int i = 0; i < n; i++) {\n String a = sc.next();\n String b = sc.next();\n if (a.compareTo(b) < 0) {\n b_score += 3;\n } else if (a.compareTo(b) > 0) {\n a_score += 3;\n } else {\n a_score++;\n b_score++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String a = sc.next();\n String b = sc.next();\n if (a.compareTo(b) < 0) {\n b_score += 3;\n } else if (a.compareTo(b) > 0) {\n a_score += 3;\n } else {\n a_score++;\n b_score++;\n }\n }",
"{\n String a = sc.next();\n String b = sc.next();\n if (a.compareTo(b) < 0) {\n b_score += 3;\n } else if (a.compareTo(b) > 0) {\n a_score += 3;\n } else {\n a_score++;\n b_score++;\n }\n }",
"String a = sc.next();",
"a",
"sc.next()",
"sc.next",
"sc",
"String b = sc.next();",
"b",
"sc.next()",
"sc.next",
"sc",
"if (a.compareTo(b) < 0) {\n b_score += 3;\n } else if (a.compareTo(b) > 0) {\n a_score += 3;\n } else {\n a_score++;\n b_score++;\n }",
"a.compareTo(b) < 0",
"a.compareTo(b)",
"a.compareTo",
"a",
"b",
"0",
"{\n b_score += 3;\n }",
"b_score += 3",
"b_score",
"3",
"if (a.compareTo(b) > 0) {\n a_score += 3;\n } else {\n a_score++;\n b_score++;\n }",
"a.compareTo(b) > 0",
"a.compareTo(b)",
"a.compareTo",
"a",
"b",
"0",
"{\n a_score += 3;\n }",
"a_score += 3",
"a_score",
"3",
"{\n a_score++;\n b_score++;\n }",
"a_score++",
"a_score",
"b_score++",
"b_score",
"out.printf(\"%d %d\\n\", a_score, b_score)",
"out.printf",
"out",
"\"%d %d\\n\"",
"a_score",
"b_score",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args"
]
| import java.util.*;
import java.io.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
PrintWriter out = new PrintWriter(System.out);
int n = Integer.parseInt(sc.next());
int a_score = 0;
int b_score = 0;
for (int i = 0; i < n; i++) {
String a = sc.next();
String b = sc.next();
if (a.compareTo(b) < 0) {
b_score += 3;
} else if (a.compareTo(b) > 0) {
a_score += 3;
} else {
a_score++;
b_score++;
}
}
out.printf("%d %d\n", a_score, b_score);
out.flush();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
30,
40,
13,
40,
13,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
2,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
101,
5
],
[
101,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
39,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
51,
56
],
[
50,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
60,
61
],
[
50,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
63,
68
],
[
62,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
62,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
76,
81
],
[
75,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
85,
87
],
[
8,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
94,
94
],
[
94,
95
],
[
94,
96
],
[
94,
97
],
[
6,
98
],
[
98,
99
],
[
0,
100
],
[
100,
101
],
[
100,
102
]
]
| [
"import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String [] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString taro,hanako;\n\t\tint n = sc.nextInt();\n\t\tint taroscore = 0;\n\t\tint hanakoscore = 0;\n\t\tfor(int i = 0; i < n; i++){\n\t\t\ttaro = sc.next();\n\t\t\thanako = sc.next();\n\t\t\tif(taro.compareTo(hanako) == 0){\n\t\t\t\ttaroscore++;\n\t\t\t\thanakoscore++;\n\t\t\t}else if(taro.compareTo(hanako) > 0){\n\t\t\t\ttaroscore = taroscore + 3;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thanakoscore = hanakoscore + 3;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(taroscore + \" \" + hanakoscore);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String [] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString taro,hanako;\n\t\tint n = sc.nextInt();\n\t\tint taroscore = 0;\n\t\tint hanakoscore = 0;\n\t\tfor(int i = 0; i < n; i++){\n\t\t\ttaro = sc.next();\n\t\t\thanako = sc.next();\n\t\t\tif(taro.compareTo(hanako) == 0){\n\t\t\t\ttaroscore++;\n\t\t\t\thanakoscore++;\n\t\t\t}else if(taro.compareTo(hanako) > 0){\n\t\t\t\ttaroscore = taroscore + 3;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thanakoscore = hanakoscore + 3;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(taroscore + \" \" + hanakoscore);\n\t}\n}",
"Main",
"public static void main(String [] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString taro,hanako;\n\t\tint n = sc.nextInt();\n\t\tint taroscore = 0;\n\t\tint hanakoscore = 0;\n\t\tfor(int i = 0; i < n; i++){\n\t\t\ttaro = sc.next();\n\t\t\thanako = sc.next();\n\t\t\tif(taro.compareTo(hanako) == 0){\n\t\t\t\ttaroscore++;\n\t\t\t\thanakoscore++;\n\t\t\t}else if(taro.compareTo(hanako) > 0){\n\t\t\t\ttaroscore = taroscore + 3;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thanakoscore = hanakoscore + 3;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(taroscore + \" \" + hanakoscore);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString taro,hanako;\n\t\tint n = sc.nextInt();\n\t\tint taroscore = 0;\n\t\tint hanakoscore = 0;\n\t\tfor(int i = 0; i < n; i++){\n\t\t\ttaro = sc.next();\n\t\t\thanako = sc.next();\n\t\t\tif(taro.compareTo(hanako) == 0){\n\t\t\t\ttaroscore++;\n\t\t\t\thanakoscore++;\n\t\t\t}else if(taro.compareTo(hanako) > 0){\n\t\t\t\ttaroscore = taroscore + 3;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thanakoscore = hanakoscore + 3;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(taroscore + \" \" + hanakoscore);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String taro",
"taro",
"hanako;",
"hanako",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int taroscore = 0;",
"taroscore",
"0",
"int hanakoscore = 0;",
"hanakoscore",
"0",
"for(int i = 0; i < n; i++){\n\t\t\ttaro = sc.next();\n\t\t\thanako = sc.next();\n\t\t\tif(taro.compareTo(hanako) == 0){\n\t\t\t\ttaroscore++;\n\t\t\t\thanakoscore++;\n\t\t\t}else if(taro.compareTo(hanako) > 0){\n\t\t\t\ttaroscore = taroscore + 3;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thanakoscore = hanakoscore + 3;\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\ttaro = sc.next();\n\t\t\thanako = sc.next();\n\t\t\tif(taro.compareTo(hanako) == 0){\n\t\t\t\ttaroscore++;\n\t\t\t\thanakoscore++;\n\t\t\t}else if(taro.compareTo(hanako) > 0){\n\t\t\t\ttaroscore = taroscore + 3;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thanakoscore = hanakoscore + 3;\n\t\t\t}\n\t\t}",
"{\n\t\t\ttaro = sc.next();\n\t\t\thanako = sc.next();\n\t\t\tif(taro.compareTo(hanako) == 0){\n\t\t\t\ttaroscore++;\n\t\t\t\thanakoscore++;\n\t\t\t}else if(taro.compareTo(hanako) > 0){\n\t\t\t\ttaroscore = taroscore + 3;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thanakoscore = hanakoscore + 3;\n\t\t\t}\n\t\t}",
"taro = sc.next()",
"taro",
"sc.next()",
"sc.next",
"sc",
"hanako = sc.next()",
"hanako",
"sc.next()",
"sc.next",
"sc",
"if(taro.compareTo(hanako) == 0){\n\t\t\t\ttaroscore++;\n\t\t\t\thanakoscore++;\n\t\t\t}else if(taro.compareTo(hanako) > 0){\n\t\t\t\ttaroscore = taroscore + 3;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thanakoscore = hanakoscore + 3;\n\t\t\t}",
"taro.compareTo(hanako) == 0",
"taro.compareTo(hanako)",
"taro.compareTo",
"taro",
"hanako",
"0",
"{\n\t\t\t\ttaroscore++;\n\t\t\t\thanakoscore++;\n\t\t\t}",
"taroscore++",
"taroscore",
"hanakoscore++",
"hanakoscore",
"if(taro.compareTo(hanako) > 0){\n\t\t\t\ttaroscore = taroscore + 3;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thanakoscore = hanakoscore + 3;\n\t\t\t}",
"taro.compareTo(hanako) > 0",
"taro.compareTo(hanako)",
"taro.compareTo",
"taro",
"hanako",
"0",
"{\n\t\t\t\ttaroscore = taroscore + 3;\n\t\t\t}",
"taroscore = taroscore + 3",
"taroscore",
"taroscore + 3",
"taroscore",
"3",
"if(taro.compareTo(hanako) < 0){\n\t\t\t\thanakoscore = hanakoscore + 3;\n\t\t\t}",
"taro.compareTo(hanako) < 0",
"taro.compareTo(hanako)",
"taro.compareTo",
"taro",
"hanako",
"0",
"{\n\t\t\t\thanakoscore = hanakoscore + 3;\n\t\t\t}",
"hanakoscore = hanakoscore + 3",
"hanakoscore",
"hanakoscore + 3",
"hanakoscore",
"3",
"System.out.println(taroscore + \" \" + hanakoscore)",
"System.out.println",
"System.out",
"System",
"System.out",
"taroscore + \" \" + hanakoscore",
"taroscore + \" \" + hanakoscore",
"taroscore",
"\" \"",
"hanakoscore",
"String [] args",
"args",
"public class Main{\n\tpublic static void main(String [] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString taro,hanako;\n\t\tint n = sc.nextInt();\n\t\tint taroscore = 0;\n\t\tint hanakoscore = 0;\n\t\tfor(int i = 0; i < n; i++){\n\t\t\ttaro = sc.next();\n\t\t\thanako = sc.next();\n\t\t\tif(taro.compareTo(hanako) == 0){\n\t\t\t\ttaroscore++;\n\t\t\t\thanakoscore++;\n\t\t\t}else if(taro.compareTo(hanako) > 0){\n\t\t\t\ttaroscore = taroscore + 3;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thanakoscore = hanakoscore + 3;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(taroscore + \" \" + hanakoscore);\n\t}\n}",
"public class Main{\n\tpublic static void main(String [] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString taro,hanako;\n\t\tint n = sc.nextInt();\n\t\tint taroscore = 0;\n\t\tint hanakoscore = 0;\n\t\tfor(int i = 0; i < n; i++){\n\t\t\ttaro = sc.next();\n\t\t\thanako = sc.next();\n\t\t\tif(taro.compareTo(hanako) == 0){\n\t\t\t\ttaroscore++;\n\t\t\t\thanakoscore++;\n\t\t\t}else if(taro.compareTo(hanako) > 0){\n\t\t\t\ttaroscore = taroscore + 3;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thanakoscore = hanakoscore + 3;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(taroscore + \" \" + hanakoscore);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String [] args){
Scanner sc = new Scanner(System.in);
String taro,hanako;
int n = sc.nextInt();
int taroscore = 0;
int hanakoscore = 0;
for(int i = 0; i < n; i++){
taro = sc.next();
hanako = sc.next();
if(taro.compareTo(hanako) == 0){
taroscore++;
hanakoscore++;
}else if(taro.compareTo(hanako) > 0){
taroscore = taroscore + 3;
}else if(taro.compareTo(hanako) < 0){
hanakoscore = hanakoscore + 3;
}
}
System.out.println(taroscore + " " + hanakoscore);
}
} |
[
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,
41,
13,
41,
13,
41,
13,
17,
41,
13,
41,
13,
41,
13,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
41,
13,
17,
42,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
18,
13,
13,
30,
0,
13,
17,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
17,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
17,
30,
0,
13,
13,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
2,
13,
13,
30,
0,
13,
17,
3,
14,
2,
2,
13,
17,
2,
13,
13,
30,
0,
13,
17,
3,
30,
0,
13,
4,
18,
13,
13,
2,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
42,
17,
30,
40,
13,
14,
4,
18,
13,
18,
13,
13,
3,
40,
13,
0,
13,
4,
18,
13,
13,
2,
13,
17,
42,
17,
30,
40,
13,
14,
4,
18,
13,
18,
13,
13,
3,
40,
13,
14,
2,
13,
13,
30,
0,
13,
17,
3,
14,
2,
13,
13,
30,
0,
13,
17,
3,
35,
13,
34,
17,
1,
40,
13,
40,
13,
3,
34,
17,
1,
0,
13,
17,
3,
34,
17,
1,
0,
13,
17,
3,
40,
13,
14,
2,
13,
13,
30,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
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
],
[
8,
31
],
[
31,
32
],
[
8,
33
],
[
33,
34
],
[
8,
35
],
[
35,
36
],
[
35,
37
],
[
8,
38
],
[
38,
39
],
[
8,
40
],
[
40,
41
],
[
8,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
44,
47
],
[
44,
48
],
[
44,
49
],
[
44,
50
],
[
44,
51
],
[
44,
52
],
[
44,
53
],
[
44,
54
],
[
44,
55
],
[
44,
56
],
[
44,
57
],
[
44,
58
],
[
44,
59
],
[
44,
60
],
[
44,
61
],
[
44,
62
],
[
44,
63
],
[
44,
64
],
[
44,
65
],
[
44,
66
],
[
44,
67
],
[
44,
68
],
[
44,
69
],
[
44,
70
],
[
8,
71
],
[
71,
72
],
[
71,
73
],
[
8,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
76,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
76,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
87,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
76,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
76,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
76,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
114,
115
],
[
114,
116
],
[
106,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
125,
126
],
[
125,
127
],
[
117,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
132,
133
],
[
132,
134
],
[
76,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
135,
140
],
[
140,
141
],
[
140,
142
],
[
135,
143
],
[
143,
144
],
[
144,
145
],
[
135,
146
],
[
147,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
149,
153
],
[
153,
154
],
[
153,
155
],
[
148,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
156,
160
],
[
148,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
166,
167
],
[
166,
168
],
[
161,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
169,
173
],
[
161,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
177,
178
],
[
178,
179
],
[
177,
180
],
[
177,
181
],
[
181,
182
],
[
181,
183
],
[
174,
184
],
[
184,
185
],
[
184,
186
],
[
174,
187
],
[
187,
188
],
[
187,
189
],
[
174,
190
],
[
190,
191
],
[
190,
192
],
[
174,
193
],
[
193,
194
],
[
193,
195
],
[
174,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
199,
200
],
[
198,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
202,
205
],
[
205,
206
],
[
205,
207
],
[
201,
208
],
[
198,
209
],
[
209,
210
],
[
174,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
214,
215
],
[
213,
216
],
[
213,
217
],
[
217,
218
],
[
217,
219
],
[
174,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
223,
224
],
[
222,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
226,
229
],
[
229,
230
],
[
229,
231
],
[
225,
232
],
[
222,
233
],
[
233,
234
],
[
174,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
235,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
239,
243
],
[
235,
244
],
[
244,
245
],
[
245,
246
],
[
245,
247
],
[
244,
248
],
[
248,
249
],
[
249,
250
],
[
249,
251
],
[
248,
252
],
[
76,
253
],
[
253,
254
],
[
253,
255
],
[
255,
256
],
[
255,
257
],
[
257,
258
],
[
258,
259
],
[
257,
260
],
[
260,
261
],
[
257,
262
],
[
253,
263
],
[
263,
264
],
[
263,
265
],
[
265,
266
],
[
266,
267
],
[
266,
268
],
[
265,
269
],
[
253,
270
],
[
270,
271
],
[
270,
272
],
[
272,
273
],
[
273,
274
],
[
273,
275
],
[
272,
276
],
[
76,
277
],
[
277,
278
],
[
76,
279
],
[
279,
280
],
[
280,
281
],
[
280,
282
],
[
279,
283
],
[
283,
284
],
[
284,
285
],
[
284,
286
],
[
8,
287
],
[
287,
288
],
[
288,
289
],
[
289,
290
],
[
289,
291
],
[
287,
292
],
[
293,
293
],
[
293,
294
],
[
293,
295
],
[
293,
296
],
[
8,
297
],
[
297,
298
],
[
298,
299
],
[
6,
300
],
[
300,
301
]
]
| [
"import java.util.Scanner;\n\nclass Main {\n public static void main(String args[]) {\n\tScanner scanner = new Scanner(System.in);\n\tint deck = scanner.nextInt();\t//ターン数,山札数\n\tint count = 0;\n\tint sum_t = 0;\n\tint sum_h = 0;\n \tint Judge = 0;\n \tint card_stlength_t;\n \tint card_stlength_h;\n \tint card_stlength;\n \tint case_st = 0;\n \tString work_t,work_h;\n \tString alf[] = {\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\n \t\t\t\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\"};\n \tboolean bJudge = true;\n \t\n \t\n \tdo {\n\t\tString card_t = scanner.next();\t//太郎の文字\n\t\tString card_h = scanner.next();\t//花子の文字\n \t\t\n \t\t//引き分け\n \t\tif( card_t.equals(card_h) ){\n \t\t\tJudge = 0;\n \t\t}\n \t\t//カードの文字数取得\n \t\tcard_stlength_t = card_t.length();\n \t\tcard_stlength_h = card_h.length();\n \t\t\n \t\tif( card_stlength_t == card_stlength_h ){\n \t\t\tcard_stlength = card_stlength_t;\n \t\t\tcase_st = 0;\n \t\t}else if( card_stlength_t > card_stlength_h ){\n \t\t\tcard_stlength = card_stlength_t;\n \t\t\tcase_st = 1;\n \t\t}else{\n \t\t\tcard_stlength = card_stlength_h;\n \t\t\tcase_st = 2;\n \t\t}\n \t\t\n \t\t//カードの比較\n \t\tfor( int i = 0; i < card_stlength ; i ++ ) {\n\t\t \t\t//System.out.println(\"比較判定\");\n \t\t\tif( case_st == 1 && i == card_stlength_h ){\n \t\t\t\tJudge = 1;\n \t\t \t\t//System.out.println(\"太郎勝ち\");\n \t\t\t\tbreak;\n \t\t\t}else if( case_st == 2 && i == card_stlength_t ){\n \t\t\t\tJudge = 2;\n \t\t \t\t//System.out.println(\"花子勝ち\");\n \t\t\t\tbreak;\n \t\t\t}else{\n\t \t\t\twork_t = card_t.substring(i, i +1);\n\t \t\t\tint j = 0;\n \t\t\t\tint k = 0;\n\t \t\t\tint ncard_t = 0,ncard_h = 0;\n \t\t\t\t//太郎の強さ\n\t\t\t\twhile( true ) {\n\t\t\t\t\tncard_t ++;\n\t\t\t\t\tif(work_t.equals( alf[j] ))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tj ++;\n\t\t\t\t}\n \t\t\t\twork_h = card_h.substring(i, i+ 1);\n\t\t\t\t//花子の強さ\n\t\t\t\twhile( true ) {\n\t\t\t\t\tncard_h ++;\n\t\t\t\t\tif(work_h.equals( alf[k] ))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tk ++;\n\t\t\t\t}\n\t \t\t\t\n\t \t\t\tif( ncard_t > ncard_h ) {\n\t \t\t \t\t//System.out.println(\"太郎勝ち\");\n\t \t\t\t\tJudge = 1;\n\t \t\t\t\tbreak;\n\t \t\t\t}else if( ncard_t < ncard_h ) {\n\t \t\t \t\t//System.out.println(\"花子勝ち\");\n\t \t\t\t\tJudge = 2;\n\t \t\t\t\tbreak;\n\t \t\t\t}\n \t\t\t}\n \t\t\t\n \t\t}\n \t\t\n \t\t\n \t\t//点の加点\n \t\tswitch ( Judge ){\n \t\tcase 0:\n \t\t\tsum_t ++;\n \t\t\tsum_h ++;\n \t\t\tbreak;\n \t\tcase 1:\n \t\t\tsum_t += 3;\n \t\t\tbreak;\n \t\tcase 2:\n \t\t\tsum_h += 3;\n \t\t\tbreak;\n \t\t}\n \t\t\n \t\t//終了判定\n \t\tcount ++;\n \t\tif( count >= deck ) {\n \t\t\tbJudge = false;\n \t\t}\n \t\t\n \t}while( bJudge );\n \t\n \t \t//結果出力\n \t\tSystem.out.println(sum_t + \" \" + sum_h);\n\t\n \t//後処理\n\tscanner.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String args[]) {\n\tScanner scanner = new Scanner(System.in);\n\tint deck = scanner.nextInt();\t//ターン数,山札数\n\tint count = 0;\n\tint sum_t = 0;\n\tint sum_h = 0;\n \tint Judge = 0;\n \tint card_stlength_t;\n \tint card_stlength_h;\n \tint card_stlength;\n \tint case_st = 0;\n \tString work_t,work_h;\n \tString alf[] = {\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\n \t\t\t\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\"};\n \tboolean bJudge = true;\n \t\n \t\n \tdo {\n\t\tString card_t = scanner.next();\t//太郎の文字\n\t\tString card_h = scanner.next();\t//花子の文字\n \t\t\n \t\t//引き分け\n \t\tif( card_t.equals(card_h) ){\n \t\t\tJudge = 0;\n \t\t}\n \t\t//カードの文字数取得\n \t\tcard_stlength_t = card_t.length();\n \t\tcard_stlength_h = card_h.length();\n \t\t\n \t\tif( card_stlength_t == card_stlength_h ){\n \t\t\tcard_stlength = card_stlength_t;\n \t\t\tcase_st = 0;\n \t\t}else if( card_stlength_t > card_stlength_h ){\n \t\t\tcard_stlength = card_stlength_t;\n \t\t\tcase_st = 1;\n \t\t}else{\n \t\t\tcard_stlength = card_stlength_h;\n \t\t\tcase_st = 2;\n \t\t}\n \t\t\n \t\t//カードの比較\n \t\tfor( int i = 0; i < card_stlength ; i ++ ) {\n\t\t \t\t//System.out.println(\"比較判定\");\n \t\t\tif( case_st == 1 && i == card_stlength_h ){\n \t\t\t\tJudge = 1;\n \t\t \t\t//System.out.println(\"太郎勝ち\");\n \t\t\t\tbreak;\n \t\t\t}else if( case_st == 2 && i == card_stlength_t ){\n \t\t\t\tJudge = 2;\n \t\t \t\t//System.out.println(\"花子勝ち\");\n \t\t\t\tbreak;\n \t\t\t}else{\n\t \t\t\twork_t = card_t.substring(i, i +1);\n\t \t\t\tint j = 0;\n \t\t\t\tint k = 0;\n\t \t\t\tint ncard_t = 0,ncard_h = 0;\n \t\t\t\t//太郎の強さ\n\t\t\t\twhile( true ) {\n\t\t\t\t\tncard_t ++;\n\t\t\t\t\tif(work_t.equals( alf[j] ))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tj ++;\n\t\t\t\t}\n \t\t\t\twork_h = card_h.substring(i, i+ 1);\n\t\t\t\t//花子の強さ\n\t\t\t\twhile( true ) {\n\t\t\t\t\tncard_h ++;\n\t\t\t\t\tif(work_h.equals( alf[k] ))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tk ++;\n\t\t\t\t}\n\t \t\t\t\n\t \t\t\tif( ncard_t > ncard_h ) {\n\t \t\t \t\t//System.out.println(\"太郎勝ち\");\n\t \t\t\t\tJudge = 1;\n\t \t\t\t\tbreak;\n\t \t\t\t}else if( ncard_t < ncard_h ) {\n\t \t\t \t\t//System.out.println(\"花子勝ち\");\n\t \t\t\t\tJudge = 2;\n\t \t\t\t\tbreak;\n\t \t\t\t}\n \t\t\t}\n \t\t\t\n \t\t}\n \t\t\n \t\t\n \t\t//点の加点\n \t\tswitch ( Judge ){\n \t\tcase 0:\n \t\t\tsum_t ++;\n \t\t\tsum_h ++;\n \t\t\tbreak;\n \t\tcase 1:\n \t\t\tsum_t += 3;\n \t\t\tbreak;\n \t\tcase 2:\n \t\t\tsum_h += 3;\n \t\t\tbreak;\n \t\t}\n \t\t\n \t\t//終了判定\n \t\tcount ++;\n \t\tif( count >= deck ) {\n \t\t\tbJudge = false;\n \t\t}\n \t\t\n \t}while( bJudge );\n \t\n \t \t//結果出力\n \t\tSystem.out.println(sum_t + \" \" + sum_h);\n\t\n \t//後処理\n\tscanner.close();\n }\n}",
"Main",
"public static void main(String args[]) {\n\tScanner scanner = new Scanner(System.in);\n\tint deck = scanner.nextInt();\t//ターン数,山札数\n\tint count = 0;\n\tint sum_t = 0;\n\tint sum_h = 0;\n \tint Judge = 0;\n \tint card_stlength_t;\n \tint card_stlength_h;\n \tint card_stlength;\n \tint case_st = 0;\n \tString work_t,work_h;\n \tString alf[] = {\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\n \t\t\t\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\"};\n \tboolean bJudge = true;\n \t\n \t\n \tdo {\n\t\tString card_t = scanner.next();\t//太郎の文字\n\t\tString card_h = scanner.next();\t//花子の文字\n \t\t\n \t\t//引き分け\n \t\tif( card_t.equals(card_h) ){\n \t\t\tJudge = 0;\n \t\t}\n \t\t//カードの文字数取得\n \t\tcard_stlength_t = card_t.length();\n \t\tcard_stlength_h = card_h.length();\n \t\t\n \t\tif( card_stlength_t == card_stlength_h ){\n \t\t\tcard_stlength = card_stlength_t;\n \t\t\tcase_st = 0;\n \t\t}else if( card_stlength_t > card_stlength_h ){\n \t\t\tcard_stlength = card_stlength_t;\n \t\t\tcase_st = 1;\n \t\t}else{\n \t\t\tcard_stlength = card_stlength_h;\n \t\t\tcase_st = 2;\n \t\t}\n \t\t\n \t\t//カードの比較\n \t\tfor( int i = 0; i < card_stlength ; i ++ ) {\n\t\t \t\t//System.out.println(\"比較判定\");\n \t\t\tif( case_st == 1 && i == card_stlength_h ){\n \t\t\t\tJudge = 1;\n \t\t \t\t//System.out.println(\"太郎勝ち\");\n \t\t\t\tbreak;\n \t\t\t}else if( case_st == 2 && i == card_stlength_t ){\n \t\t\t\tJudge = 2;\n \t\t \t\t//System.out.println(\"花子勝ち\");\n \t\t\t\tbreak;\n \t\t\t}else{\n\t \t\t\twork_t = card_t.substring(i, i +1);\n\t \t\t\tint j = 0;\n \t\t\t\tint k = 0;\n\t \t\t\tint ncard_t = 0,ncard_h = 0;\n \t\t\t\t//太郎の強さ\n\t\t\t\twhile( true ) {\n\t\t\t\t\tncard_t ++;\n\t\t\t\t\tif(work_t.equals( alf[j] ))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tj ++;\n\t\t\t\t}\n \t\t\t\twork_h = card_h.substring(i, i+ 1);\n\t\t\t\t//花子の強さ\n\t\t\t\twhile( true ) {\n\t\t\t\t\tncard_h ++;\n\t\t\t\t\tif(work_h.equals( alf[k] ))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tk ++;\n\t\t\t\t}\n\t \t\t\t\n\t \t\t\tif( ncard_t > ncard_h ) {\n\t \t\t \t\t//System.out.println(\"太郎勝ち\");\n\t \t\t\t\tJudge = 1;\n\t \t\t\t\tbreak;\n\t \t\t\t}else if( ncard_t < ncard_h ) {\n\t \t\t \t\t//System.out.println(\"花子勝ち\");\n\t \t\t\t\tJudge = 2;\n\t \t\t\t\tbreak;\n\t \t\t\t}\n \t\t\t}\n \t\t\t\n \t\t}\n \t\t\n \t\t\n \t\t//点の加点\n \t\tswitch ( Judge ){\n \t\tcase 0:\n \t\t\tsum_t ++;\n \t\t\tsum_h ++;\n \t\t\tbreak;\n \t\tcase 1:\n \t\t\tsum_t += 3;\n \t\t\tbreak;\n \t\tcase 2:\n \t\t\tsum_h += 3;\n \t\t\tbreak;\n \t\t}\n \t\t\n \t\t//終了判定\n \t\tcount ++;\n \t\tif( count >= deck ) {\n \t\t\tbJudge = false;\n \t\t}\n \t\t\n \t}while( bJudge );\n \t\n \t \t//結果出力\n \t\tSystem.out.println(sum_t + \" \" + sum_h);\n\t\n \t//後処理\n\tscanner.close();\n }",
"main",
"{\n\tScanner scanner = new Scanner(System.in);\n\tint deck = scanner.nextInt();\t//ターン数,山札数\n\tint count = 0;\n\tint sum_t = 0;\n\tint sum_h = 0;\n \tint Judge = 0;\n \tint card_stlength_t;\n \tint card_stlength_h;\n \tint card_stlength;\n \tint case_st = 0;\n \tString work_t,work_h;\n \tString alf[] = {\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\n \t\t\t\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\"};\n \tboolean bJudge = true;\n \t\n \t\n \tdo {\n\t\tString card_t = scanner.next();\t//太郎の文字\n\t\tString card_h = scanner.next();\t//花子の文字\n \t\t\n \t\t//引き分け\n \t\tif( card_t.equals(card_h) ){\n \t\t\tJudge = 0;\n \t\t}\n \t\t//カードの文字数取得\n \t\tcard_stlength_t = card_t.length();\n \t\tcard_stlength_h = card_h.length();\n \t\t\n \t\tif( card_stlength_t == card_stlength_h ){\n \t\t\tcard_stlength = card_stlength_t;\n \t\t\tcase_st = 0;\n \t\t}else if( card_stlength_t > card_stlength_h ){\n \t\t\tcard_stlength = card_stlength_t;\n \t\t\tcase_st = 1;\n \t\t}else{\n \t\t\tcard_stlength = card_stlength_h;\n \t\t\tcase_st = 2;\n \t\t}\n \t\t\n \t\t//カードの比較\n \t\tfor( int i = 0; i < card_stlength ; i ++ ) {\n\t\t \t\t//System.out.println(\"比較判定\");\n \t\t\tif( case_st == 1 && i == card_stlength_h ){\n \t\t\t\tJudge = 1;\n \t\t \t\t//System.out.println(\"太郎勝ち\");\n \t\t\t\tbreak;\n \t\t\t}else if( case_st == 2 && i == card_stlength_t ){\n \t\t\t\tJudge = 2;\n \t\t \t\t//System.out.println(\"花子勝ち\");\n \t\t\t\tbreak;\n \t\t\t}else{\n\t \t\t\twork_t = card_t.substring(i, i +1);\n\t \t\t\tint j = 0;\n \t\t\t\tint k = 0;\n\t \t\t\tint ncard_t = 0,ncard_h = 0;\n \t\t\t\t//太郎の強さ\n\t\t\t\twhile( true ) {\n\t\t\t\t\tncard_t ++;\n\t\t\t\t\tif(work_t.equals( alf[j] ))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tj ++;\n\t\t\t\t}\n \t\t\t\twork_h = card_h.substring(i, i+ 1);\n\t\t\t\t//花子の強さ\n\t\t\t\twhile( true ) {\n\t\t\t\t\tncard_h ++;\n\t\t\t\t\tif(work_h.equals( alf[k] ))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tk ++;\n\t\t\t\t}\n\t \t\t\t\n\t \t\t\tif( ncard_t > ncard_h ) {\n\t \t\t \t\t//System.out.println(\"太郎勝ち\");\n\t \t\t\t\tJudge = 1;\n\t \t\t\t\tbreak;\n\t \t\t\t}else if( ncard_t < ncard_h ) {\n\t \t\t \t\t//System.out.println(\"花子勝ち\");\n\t \t\t\t\tJudge = 2;\n\t \t\t\t\tbreak;\n\t \t\t\t}\n \t\t\t}\n \t\t\t\n \t\t}\n \t\t\n \t\t\n \t\t//点の加点\n \t\tswitch ( Judge ){\n \t\tcase 0:\n \t\t\tsum_t ++;\n \t\t\tsum_h ++;\n \t\t\tbreak;\n \t\tcase 1:\n \t\t\tsum_t += 3;\n \t\t\tbreak;\n \t\tcase 2:\n \t\t\tsum_h += 3;\n \t\t\tbreak;\n \t\t}\n \t\t\n \t\t//終了判定\n \t\tcount ++;\n \t\tif( count >= deck ) {\n \t\t\tbJudge = false;\n \t\t}\n \t\t\n \t}while( bJudge );\n \t\n \t \t//結果出力\n \t\tSystem.out.println(sum_t + \" \" + sum_h);\n\t\n \t//後処理\n\tscanner.close();\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int deck = scanner.nextInt();",
"deck",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int count = 0;",
"count",
"0",
"int sum_t = 0;",
"sum_t",
"0",
"int sum_h = 0;",
"sum_h",
"0",
"int Judge = 0;",
"Judge",
"0",
"int card_stlength_t;",
"card_stlength_t",
"int card_stlength_h;",
"card_stlength_h",
"int card_stlength;",
"card_stlength",
"int case_st = 0;",
"case_st",
"0",
"String work_t",
"work_t",
"work_h;",
"work_h",
"String alf[] = {\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\n \t\t\t\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\"};",
"alf",
"{\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\n \t\t\t\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\"}",
"\"a\"",
"\"b\"",
"\"c\"",
"\"d\"",
"\"e\"",
"\"f\"",
"\"g\"",
"\"h\"",
"\"i\"",
"\"j\"",
"\"k\"",
"\"l\"",
"\"m\"",
"\"n\"",
"\"o\"",
"\"p\"",
"\"q\"",
"\"r\"",
"\"s\"",
"\"t\"",
"\"u\"",
"\"v\"",
"\"w\"",
"\"x\"",
"\"y\"",
"\"z\"",
"boolean bJudge = true;",
"bJudge",
"true",
"do {\n\t\tString card_t = scanner.next();\t//太郎の文字\n\t\tString card_h = scanner.next();\t//花子の文字\n \t\t\n \t\t//引き分け\n \t\tif( card_t.equals(card_h) ){\n \t\t\tJudge = 0;\n \t\t}\n \t\t//カードの文字数取得\n \t\tcard_stlength_t = card_t.length();\n \t\tcard_stlength_h = card_h.length();\n \t\t\n \t\tif( card_stlength_t == card_stlength_h ){\n \t\t\tcard_stlength = card_stlength_t;\n \t\t\tcase_st = 0;\n \t\t}else if( card_stlength_t > card_stlength_h ){\n \t\t\tcard_stlength = card_stlength_t;\n \t\t\tcase_st = 1;\n \t\t}else{\n \t\t\tcard_stlength = card_stlength_h;\n \t\t\tcase_st = 2;\n \t\t}\n \t\t\n \t\t//カードの比較\n \t\tfor( int i = 0; i < card_stlength ; i ++ ) {\n\t\t \t\t//System.out.println(\"比較判定\");\n \t\t\tif( case_st == 1 && i == card_stlength_h ){\n \t\t\t\tJudge = 1;\n \t\t \t\t//System.out.println(\"太郎勝ち\");\n \t\t\t\tbreak;\n \t\t\t}else if( case_st == 2 && i == card_stlength_t ){\n \t\t\t\tJudge = 2;\n \t\t \t\t//System.out.println(\"花子勝ち\");\n \t\t\t\tbreak;\n \t\t\t}else{\n\t \t\t\twork_t = card_t.substring(i, i +1);\n\t \t\t\tint j = 0;\n \t\t\t\tint k = 0;\n\t \t\t\tint ncard_t = 0,ncard_h = 0;\n \t\t\t\t//太郎の強さ\n\t\t\t\twhile( true ) {\n\t\t\t\t\tncard_t ++;\n\t\t\t\t\tif(work_t.equals( alf[j] ))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tj ++;\n\t\t\t\t}\n \t\t\t\twork_h = card_h.substring(i, i+ 1);\n\t\t\t\t//花子の強さ\n\t\t\t\twhile( true ) {\n\t\t\t\t\tncard_h ++;\n\t\t\t\t\tif(work_h.equals( alf[k] ))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tk ++;\n\t\t\t\t}\n\t \t\t\t\n\t \t\t\tif( ncard_t > ncard_h ) {\n\t \t\t \t\t//System.out.println(\"太郎勝ち\");\n\t \t\t\t\tJudge = 1;\n\t \t\t\t\tbreak;\n\t \t\t\t}else if( ncard_t < ncard_h ) {\n\t \t\t \t\t//System.out.println(\"花子勝ち\");\n\t \t\t\t\tJudge = 2;\n\t \t\t\t\tbreak;\n\t \t\t\t}\n \t\t\t}\n \t\t\t\n \t\t}\n \t\t\n \t\t\n \t\t//点の加点\n \t\tswitch ( Judge ){\n \t\tcase 0:\n \t\t\tsum_t ++;\n \t\t\tsum_h ++;\n \t\t\tbreak;\n \t\tcase 1:\n \t\t\tsum_t += 3;\n \t\t\tbreak;\n \t\tcase 2:\n \t\t\tsum_h += 3;\n \t\t\tbreak;\n \t\t}\n \t\t\n \t\t//終了判定\n \t\tcount ++;\n \t\tif( count >= deck ) {\n \t\t\tbJudge = false;\n \t\t}\n \t\t\n \t}while( bJudge );",
"bJudge",
"{\n\t\tString card_t = scanner.next();\t//太郎の文字\n\t\tString card_h = scanner.next();\t//花子の文字\n \t\t\n \t\t//引き分け\n \t\tif( card_t.equals(card_h) ){\n \t\t\tJudge = 0;\n \t\t}\n \t\t//カードの文字数取得\n \t\tcard_stlength_t = card_t.length();\n \t\tcard_stlength_h = card_h.length();\n \t\t\n \t\tif( card_stlength_t == card_stlength_h ){\n \t\t\tcard_stlength = card_stlength_t;\n \t\t\tcase_st = 0;\n \t\t}else if( card_stlength_t > card_stlength_h ){\n \t\t\tcard_stlength = card_stlength_t;\n \t\t\tcase_st = 1;\n \t\t}else{\n \t\t\tcard_stlength = card_stlength_h;\n \t\t\tcase_st = 2;\n \t\t}\n \t\t\n \t\t//カードの比較\n \t\tfor( int i = 0; i < card_stlength ; i ++ ) {\n\t\t \t\t//System.out.println(\"比較判定\");\n \t\t\tif( case_st == 1 && i == card_stlength_h ){\n \t\t\t\tJudge = 1;\n \t\t \t\t//System.out.println(\"太郎勝ち\");\n \t\t\t\tbreak;\n \t\t\t}else if( case_st == 2 && i == card_stlength_t ){\n \t\t\t\tJudge = 2;\n \t\t \t\t//System.out.println(\"花子勝ち\");\n \t\t\t\tbreak;\n \t\t\t}else{\n\t \t\t\twork_t = card_t.substring(i, i +1);\n\t \t\t\tint j = 0;\n \t\t\t\tint k = 0;\n\t \t\t\tint ncard_t = 0,ncard_h = 0;\n \t\t\t\t//太郎の強さ\n\t\t\t\twhile( true ) {\n\t\t\t\t\tncard_t ++;\n\t\t\t\t\tif(work_t.equals( alf[j] ))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tj ++;\n\t\t\t\t}\n \t\t\t\twork_h = card_h.substring(i, i+ 1);\n\t\t\t\t//花子の強さ\n\t\t\t\twhile( true ) {\n\t\t\t\t\tncard_h ++;\n\t\t\t\t\tif(work_h.equals( alf[k] ))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tk ++;\n\t\t\t\t}\n\t \t\t\t\n\t \t\t\tif( ncard_t > ncard_h ) {\n\t \t\t \t\t//System.out.println(\"太郎勝ち\");\n\t \t\t\t\tJudge = 1;\n\t \t\t\t\tbreak;\n\t \t\t\t}else if( ncard_t < ncard_h ) {\n\t \t\t \t\t//System.out.println(\"花子勝ち\");\n\t \t\t\t\tJudge = 2;\n\t \t\t\t\tbreak;\n\t \t\t\t}\n \t\t\t}\n \t\t\t\n \t\t}\n \t\t\n \t\t\n \t\t//点の加点\n \t\tswitch ( Judge ){\n \t\tcase 0:\n \t\t\tsum_t ++;\n \t\t\tsum_h ++;\n \t\t\tbreak;\n \t\tcase 1:\n \t\t\tsum_t += 3;\n \t\t\tbreak;\n \t\tcase 2:\n \t\t\tsum_h += 3;\n \t\t\tbreak;\n \t\t}\n \t\t\n \t\t//終了判定\n \t\tcount ++;\n \t\tif( count >= deck ) {\n \t\t\tbJudge = false;\n \t\t}\n \t\t\n \t}",
"String card_t = scanner.next();",
"card_t",
"scanner.next()",
"scanner.next",
"scanner",
"String card_h = scanner.next();",
"card_h",
"scanner.next()",
"scanner.next",
"scanner",
"if( card_t.equals(card_h) ){\n \t\t\tJudge = 0;\n \t\t}",
"card_t.equals(card_h)",
"card_t.equals",
"card_t",
"card_h",
"{\n \t\t\tJudge = 0;\n \t\t}",
"Judge = 0",
"Judge",
"0",
"card_stlength_t = card_t.length()",
"card_stlength_t",
"card_t.length()",
"card_t.length",
"card_t",
"card_stlength_h = card_h.length()",
"card_stlength_h",
"card_h.length()",
"card_h.length",
"card_h",
"if( card_stlength_t == card_stlength_h ){\n \t\t\tcard_stlength = card_stlength_t;\n \t\t\tcase_st = 0;\n \t\t}else if( card_stlength_t > card_stlength_h ){\n \t\t\tcard_stlength = card_stlength_t;\n \t\t\tcase_st = 1;\n \t\t}else{\n \t\t\tcard_stlength = card_stlength_h;\n \t\t\tcase_st = 2;\n \t\t}",
"card_stlength_t == card_stlength_h",
"card_stlength_t",
"card_stlength_h",
"{\n \t\t\tcard_stlength = card_stlength_t;\n \t\t\tcase_st = 0;\n \t\t}",
"card_stlength = card_stlength_t",
"card_stlength",
"card_stlength_t",
"case_st = 0",
"case_st",
"0",
"if( card_stlength_t > card_stlength_h ){\n \t\t\tcard_stlength = card_stlength_t;\n \t\t\tcase_st = 1;\n \t\t}else{\n \t\t\tcard_stlength = card_stlength_h;\n \t\t\tcase_st = 2;\n \t\t}",
"card_stlength_t > card_stlength_h",
"card_stlength_t",
"card_stlength_h",
"{\n \t\t\tcard_stlength = card_stlength_t;\n \t\t\tcase_st = 1;\n \t\t}",
"card_stlength = card_stlength_t",
"card_stlength",
"card_stlength_t",
"case_st = 1",
"case_st",
"1",
"{\n \t\t\tcard_stlength = card_stlength_h;\n \t\t\tcase_st = 2;\n \t\t}",
"card_stlength = card_stlength_h",
"card_stlength",
"card_stlength_h",
"case_st = 2",
"case_st",
"2",
"for( int i = 0; i < card_stlength ; i ++ ) {\n\t\t \t\t//System.out.println(\"比較判定\");\n \t\t\tif( case_st == 1 && i == card_stlength_h ){\n \t\t\t\tJudge = 1;\n \t\t \t\t//System.out.println(\"太郎勝ち\");\n \t\t\t\tbreak;\n \t\t\t}else if( case_st == 2 && i == card_stlength_t ){\n \t\t\t\tJudge = 2;\n \t\t \t\t//System.out.println(\"花子勝ち\");\n \t\t\t\tbreak;\n \t\t\t}else{\n\t \t\t\twork_t = card_t.substring(i, i +1);\n\t \t\t\tint j = 0;\n \t\t\t\tint k = 0;\n\t \t\t\tint ncard_t = 0,ncard_h = 0;\n \t\t\t\t//太郎の強さ\n\t\t\t\twhile( true ) {\n\t\t\t\t\tncard_t ++;\n\t\t\t\t\tif(work_t.equals( alf[j] ))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tj ++;\n\t\t\t\t}\n \t\t\t\twork_h = card_h.substring(i, i+ 1);\n\t\t\t\t//花子の強さ\n\t\t\t\twhile( true ) {\n\t\t\t\t\tncard_h ++;\n\t\t\t\t\tif(work_h.equals( alf[k] ))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tk ++;\n\t\t\t\t}\n\t \t\t\t\n\t \t\t\tif( ncard_t > ncard_h ) {\n\t \t\t \t\t//System.out.println(\"太郎勝ち\");\n\t \t\t\t\tJudge = 1;\n\t \t\t\t\tbreak;\n\t \t\t\t}else if( ncard_t < ncard_h ) {\n\t \t\t \t\t//System.out.println(\"花子勝ち\");\n\t \t\t\t\tJudge = 2;\n\t \t\t\t\tbreak;\n\t \t\t\t}\n \t\t\t}\n \t\t\t\n \t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < card_stlength",
"i",
"card_stlength",
"i ++",
"i ++",
"i",
"{\n\t\t \t\t//System.out.println(\"比較判定\");\n \t\t\tif( case_st == 1 && i == card_stlength_h ){\n \t\t\t\tJudge = 1;\n \t\t \t\t//System.out.println(\"太郎勝ち\");\n \t\t\t\tbreak;\n \t\t\t}else if( case_st == 2 && i == card_stlength_t ){\n \t\t\t\tJudge = 2;\n \t\t \t\t//System.out.println(\"花子勝ち\");\n \t\t\t\tbreak;\n \t\t\t}else{\n\t \t\t\twork_t = card_t.substring(i, i +1);\n\t \t\t\tint j = 0;\n \t\t\t\tint k = 0;\n\t \t\t\tint ncard_t = 0,ncard_h = 0;\n \t\t\t\t//太郎の強さ\n\t\t\t\twhile( true ) {\n\t\t\t\t\tncard_t ++;\n\t\t\t\t\tif(work_t.equals( alf[j] ))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tj ++;\n\t\t\t\t}\n \t\t\t\twork_h = card_h.substring(i, i+ 1);\n\t\t\t\t//花子の強さ\n\t\t\t\twhile( true ) {\n\t\t\t\t\tncard_h ++;\n\t\t\t\t\tif(work_h.equals( alf[k] ))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tk ++;\n\t\t\t\t}\n\t \t\t\t\n\t \t\t\tif( ncard_t > ncard_h ) {\n\t \t\t \t\t//System.out.println(\"太郎勝ち\");\n\t \t\t\t\tJudge = 1;\n\t \t\t\t\tbreak;\n\t \t\t\t}else if( ncard_t < ncard_h ) {\n\t \t\t \t\t//System.out.println(\"花子勝ち\");\n\t \t\t\t\tJudge = 2;\n\t \t\t\t\tbreak;\n\t \t\t\t}\n \t\t\t}\n \t\t\t\n \t\t}",
"{\n\t\t \t\t//System.out.println(\"比較判定\");\n \t\t\tif( case_st == 1 && i == card_stlength_h ){\n \t\t\t\tJudge = 1;\n \t\t \t\t//System.out.println(\"太郎勝ち\");\n \t\t\t\tbreak;\n \t\t\t}else if( case_st == 2 && i == card_stlength_t ){\n \t\t\t\tJudge = 2;\n \t\t \t\t//System.out.println(\"花子勝ち\");\n \t\t\t\tbreak;\n \t\t\t}else{\n\t \t\t\twork_t = card_t.substring(i, i +1);\n\t \t\t\tint j = 0;\n \t\t\t\tint k = 0;\n\t \t\t\tint ncard_t = 0,ncard_h = 0;\n \t\t\t\t//太郎の強さ\n\t\t\t\twhile( true ) {\n\t\t\t\t\tncard_t ++;\n\t\t\t\t\tif(work_t.equals( alf[j] ))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tj ++;\n\t\t\t\t}\n \t\t\t\twork_h = card_h.substring(i, i+ 1);\n\t\t\t\t//花子の強さ\n\t\t\t\twhile( true ) {\n\t\t\t\t\tncard_h ++;\n\t\t\t\t\tif(work_h.equals( alf[k] ))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tk ++;\n\t\t\t\t}\n\t \t\t\t\n\t \t\t\tif( ncard_t > ncard_h ) {\n\t \t\t \t\t//System.out.println(\"太郎勝ち\");\n\t \t\t\t\tJudge = 1;\n\t \t\t\t\tbreak;\n\t \t\t\t}else if( ncard_t < ncard_h ) {\n\t \t\t \t\t//System.out.println(\"花子勝ち\");\n\t \t\t\t\tJudge = 2;\n\t \t\t\t\tbreak;\n\t \t\t\t}\n \t\t\t}\n \t\t\t\n \t\t}",
"if( case_st == 1 && i == card_stlength_h ){\n \t\t\t\tJudge = 1;\n \t\t \t\t//System.out.println(\"太郎勝ち\");\n \t\t\t\tbreak;\n \t\t\t}else if( case_st == 2 && i == card_stlength_t ){\n \t\t\t\tJudge = 2;\n \t\t \t\t//System.out.println(\"花子勝ち\");\n \t\t\t\tbreak;\n \t\t\t}else{\n\t \t\t\twork_t = card_t.substring(i, i +1);\n\t \t\t\tint j = 0;\n \t\t\t\tint k = 0;\n\t \t\t\tint ncard_t = 0,ncard_h = 0;\n \t\t\t\t//太郎の強さ\n\t\t\t\twhile( true ) {\n\t\t\t\t\tncard_t ++;\n\t\t\t\t\tif(work_t.equals( alf[j] ))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tj ++;\n\t\t\t\t}\n \t\t\t\twork_h = card_h.substring(i, i+ 1);\n\t\t\t\t//花子の強さ\n\t\t\t\twhile( true ) {\n\t\t\t\t\tncard_h ++;\n\t\t\t\t\tif(work_h.equals( alf[k] ))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tk ++;\n\t\t\t\t}\n\t \t\t\t\n\t \t\t\tif( ncard_t > ncard_h ) {\n\t \t\t \t\t//System.out.println(\"太郎勝ち\");\n\t \t\t\t\tJudge = 1;\n\t \t\t\t\tbreak;\n\t \t\t\t}else if( ncard_t < ncard_h ) {\n\t \t\t \t\t//System.out.println(\"花子勝ち\");\n\t \t\t\t\tJudge = 2;\n\t \t\t\t\tbreak;\n\t \t\t\t}\n \t\t\t}",
"case_st == 1 && i == card_stlength_h",
"case_st == 1",
"case_st",
"1",
"i == card_stlength_h",
"i",
"card_stlength_h",
"{\n \t\t\t\tJudge = 1;\n \t\t \t\t//System.out.println(\"太郎勝ち\");\n \t\t\t\tbreak;\n \t\t\t}",
"Judge = 1",
"Judge",
"1",
"break;",
"if( case_st == 2 && i == card_stlength_t ){\n \t\t\t\tJudge = 2;\n \t\t \t\t//System.out.println(\"花子勝ち\");\n \t\t\t\tbreak;\n \t\t\t}else{\n\t \t\t\twork_t = card_t.substring(i, i +1);\n\t \t\t\tint j = 0;\n \t\t\t\tint k = 0;\n\t \t\t\tint ncard_t = 0,ncard_h = 0;\n \t\t\t\t//太郎の強さ\n\t\t\t\twhile( true ) {\n\t\t\t\t\tncard_t ++;\n\t\t\t\t\tif(work_t.equals( alf[j] ))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tj ++;\n\t\t\t\t}\n \t\t\t\twork_h = card_h.substring(i, i+ 1);\n\t\t\t\t//花子の強さ\n\t\t\t\twhile( true ) {\n\t\t\t\t\tncard_h ++;\n\t\t\t\t\tif(work_h.equals( alf[k] ))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tk ++;\n\t\t\t\t}\n\t \t\t\t\n\t \t\t\tif( ncard_t > ncard_h ) {\n\t \t\t \t\t//System.out.println(\"太郎勝ち\");\n\t \t\t\t\tJudge = 1;\n\t \t\t\t\tbreak;\n\t \t\t\t}else if( ncard_t < ncard_h ) {\n\t \t\t \t\t//System.out.println(\"花子勝ち\");\n\t \t\t\t\tJudge = 2;\n\t \t\t\t\tbreak;\n\t \t\t\t}\n \t\t\t}",
"case_st == 2 && i == card_stlength_t",
"case_st == 2",
"case_st",
"2",
"i == card_stlength_t",
"i",
"card_stlength_t",
"{\n \t\t\t\tJudge = 2;\n \t\t \t\t//System.out.println(\"花子勝ち\");\n \t\t\t\tbreak;\n \t\t\t}",
"Judge = 2",
"Judge",
"2",
"break;",
"{\n\t \t\t\twork_t = card_t.substring(i, i +1);\n\t \t\t\tint j = 0;\n \t\t\t\tint k = 0;\n\t \t\t\tint ncard_t = 0,ncard_h = 0;\n \t\t\t\t//太郎の強さ\n\t\t\t\twhile( true ) {\n\t\t\t\t\tncard_t ++;\n\t\t\t\t\tif(work_t.equals( alf[j] ))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tj ++;\n\t\t\t\t}\n \t\t\t\twork_h = card_h.substring(i, i+ 1);\n\t\t\t\t//花子の強さ\n\t\t\t\twhile( true ) {\n\t\t\t\t\tncard_h ++;\n\t\t\t\t\tif(work_h.equals( alf[k] ))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tk ++;\n\t\t\t\t}\n\t \t\t\t\n\t \t\t\tif( ncard_t > ncard_h ) {\n\t \t\t \t\t//System.out.println(\"太郎勝ち\");\n\t \t\t\t\tJudge = 1;\n\t \t\t\t\tbreak;\n\t \t\t\t}else if( ncard_t < ncard_h ) {\n\t \t\t \t\t//System.out.println(\"花子勝ち\");\n\t \t\t\t\tJudge = 2;\n\t \t\t\t\tbreak;\n\t \t\t\t}\n \t\t\t}",
"work_t = card_t.substring(i, i +1)",
"work_t",
"card_t.substring(i, i +1)",
"card_t.substring",
"card_t",
"i",
"i +1",
"i",
"1",
"int j = 0;",
"j",
"0",
"int k = 0;",
"k",
"0",
"int ncard_t = 0",
"ncard_t",
"0",
"ncard_h = 0;",
"ncard_h",
"0",
"while( true ) {\n\t\t\t\t\tncard_t ++;\n\t\t\t\t\tif(work_t.equals( alf[j] ))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tj ++;\n\t\t\t\t}",
"true",
"{\n\t\t\t\t\tncard_t ++;\n\t\t\t\t\tif(work_t.equals( alf[j] ))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tj ++;\n\t\t\t\t}",
"ncard_t ++",
"ncard_t",
"if(work_t.equals( alf[j] ))\n\t\t\t\t\t\tbreak;",
"work_t.equals( alf[j] )",
"work_t.equals",
"work_t",
"alf[j]",
"alf",
"j",
"break;",
"j ++",
"j",
"work_h = card_h.substring(i, i+ 1)",
"work_h",
"card_h.substring(i, i+ 1)",
"card_h.substring",
"card_h",
"i",
"i+ 1",
"i",
"1",
"while( true ) {\n\t\t\t\t\tncard_h ++;\n\t\t\t\t\tif(work_h.equals( alf[k] ))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tk ++;\n\t\t\t\t}",
"true",
"{\n\t\t\t\t\tncard_h ++;\n\t\t\t\t\tif(work_h.equals( alf[k] ))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tk ++;\n\t\t\t\t}",
"ncard_h ++",
"ncard_h",
"if(work_h.equals( alf[k] ))\n\t\t\t\t\t\tbreak;",
"work_h.equals( alf[k] )",
"work_h.equals",
"work_h",
"alf[k]",
"alf",
"k",
"break;",
"k ++",
"k",
"if( ncard_t > ncard_h ) {\n\t \t\t \t\t//System.out.println(\"太郎勝ち\");\n\t \t\t\t\tJudge = 1;\n\t \t\t\t\tbreak;\n\t \t\t\t}else if( ncard_t < ncard_h ) {\n\t \t\t \t\t//System.out.println(\"花子勝ち\");\n\t \t\t\t\tJudge = 2;\n\t \t\t\t\tbreak;\n\t \t\t\t}",
"ncard_t > ncard_h",
"ncard_t",
"ncard_h",
"{\n\t \t\t \t\t//System.out.println(\"太郎勝ち\");\n\t \t\t\t\tJudge = 1;\n\t \t\t\t\tbreak;\n\t \t\t\t}",
"Judge = 1",
"Judge",
"1",
"break;",
"if( ncard_t < ncard_h ) {\n\t \t\t \t\t//System.out.println(\"花子勝ち\");\n\t \t\t\t\tJudge = 2;\n\t \t\t\t\tbreak;\n\t \t\t\t}",
"ncard_t < ncard_h",
"ncard_t",
"ncard_h",
"{\n\t \t\t \t\t//System.out.println(\"花子勝ち\");\n\t \t\t\t\tJudge = 2;\n\t \t\t\t\tbreak;\n\t \t\t\t}",
"Judge = 2",
"Judge",
"2",
"break;",
"switch ( Judge ){\n \t\tcase 0:\n \t\t\tsum_t ++;\n \t\t\tsum_h ++;\n \t\t\tbreak;\n \t\tcase 1:\n \t\t\tsum_t += 3;\n \t\t\tbreak;\n \t\tcase 2:\n \t\t\tsum_h += 3;\n \t\t\tbreak;\n \t\t}",
"Judge",
"case 0:",
"0",
"case 0:",
"sum_t ++",
"sum_t",
"sum_h ++",
"sum_h",
"break;",
"case 1:",
"1",
"case 1:",
"sum_t += 3",
"sum_t",
"3",
"break;",
"case 2:",
"2",
"case 2:",
"sum_h += 3",
"sum_h",
"3",
"break;",
"count ++",
"count",
"if( count >= deck ) {\n \t\t\tbJudge = false;\n \t\t}",
"count >= deck",
"count",
"deck",
"{\n \t\t\tbJudge = false;\n \t\t}",
"bJudge = false",
"bJudge",
"false",
"System.out.println(sum_t + \" \" + sum_h)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum_t + \" \" + sum_h",
"sum_t + \" \" + sum_h",
"sum_t",
"\" \"",
"sum_h",
"scanner.close()",
"scanner.close",
"scanner",
"String args[]",
"args"
]
| import java.util.Scanner;
class Main {
public static void main(String args[]) {
Scanner scanner = new Scanner(System.in);
int deck = scanner.nextInt(); //ターン数,山札数
int count = 0;
int sum_t = 0;
int sum_h = 0;
int Judge = 0;
int card_stlength_t;
int card_stlength_h;
int card_stlength;
int case_st = 0;
String work_t,work_h;
String alf[] = {"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p",
"q","r","s","t","u","v","w","x","y","z"};
boolean bJudge = true;
do {
String card_t = scanner.next(); //太郎の文字
String card_h = scanner.next(); //花子の文字
//引き分け
if( card_t.equals(card_h) ){
Judge = 0;
}
//カードの文字数取得
card_stlength_t = card_t.length();
card_stlength_h = card_h.length();
if( card_stlength_t == card_stlength_h ){
card_stlength = card_stlength_t;
case_st = 0;
}else if( card_stlength_t > card_stlength_h ){
card_stlength = card_stlength_t;
case_st = 1;
}else{
card_stlength = card_stlength_h;
case_st = 2;
}
//カードの比較
for( int i = 0; i < card_stlength ; i ++ ) {
//System.out.println("比較判定");
if( case_st == 1 && i == card_stlength_h ){
Judge = 1;
//System.out.println("太郎勝ち");
break;
}else if( case_st == 2 && i == card_stlength_t ){
Judge = 2;
//System.out.println("花子勝ち");
break;
}else{
work_t = card_t.substring(i, i +1);
int j = 0;
int k = 0;
int ncard_t = 0,ncard_h = 0;
//太郎の強さ
while( true ) {
ncard_t ++;
if(work_t.equals( alf[j] ))
break;
j ++;
}
work_h = card_h.substring(i, i+ 1);
//花子の強さ
while( true ) {
ncard_h ++;
if(work_h.equals( alf[k] ))
break;
k ++;
}
if( ncard_t > ncard_h ) {
//System.out.println("太郎勝ち");
Judge = 1;
break;
}else if( ncard_t < ncard_h ) {
//System.out.println("花子勝ち");
Judge = 2;
break;
}
}
}
//点の加点
switch ( Judge ){
case 0:
sum_t ++;
sum_h ++;
break;
case 1:
sum_t += 3;
break;
case 2:
sum_h += 3;
break;
}
//終了判定
count ++;
if( count >= deck ) {
bJudge = false;
}
}while( bJudge );
//結果出力
System.out.println(sum_t + " " + sum_h);
//後処理
scanner.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
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,
4,
18,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
0,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
0,
13,
17,
0,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
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
],
[
103,
11
],
[
103,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
14,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
14,
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
],
[
49,
50
],
[
50,
51
],
[
47,
52
],
[
44,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
54,
63
],
[
53,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
53,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
69,
78
],
[
68,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
83,
85
],
[
68,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
14,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
96,
96
],
[
96,
97
],
[
96,
98
],
[
96,
99
],
[
12,
100
],
[
100,
101
],
[
0,
102
],
[
102,
103
],
[
102,
104
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint taroScore = 0;\n\t\tint hanakoScore = 0;\n\t\tint number = Integer.parseInt(br.readLine());\n\t\tfor(int i = 0;i < number;i++){\n\t\t\tString[] cardName = br.readLine().split(\" \");\n\t\t\tif(cardName[0].compareTo(cardName[1]) > 0){\n\t\t\t\ttaroScore += 3;\n\t\t\t}\n\t\t\telse if(cardName[0].compareTo(cardName[1]) == 0){\n\t\t\t\ttaroScore += 1;\n\t\t\t\thanakoScore += 1;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanakoScore += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroScore + \" \" + hanakoScore);\n\t}\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\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint taroScore = 0;\n\t\tint hanakoScore = 0;\n\t\tint number = Integer.parseInt(br.readLine());\n\t\tfor(int i = 0;i < number;i++){\n\t\t\tString[] cardName = br.readLine().split(\" \");\n\t\t\tif(cardName[0].compareTo(cardName[1]) > 0){\n\t\t\t\ttaroScore += 3;\n\t\t\t}\n\t\t\telse if(cardName[0].compareTo(cardName[1]) == 0){\n\t\t\t\ttaroScore += 1;\n\t\t\t\thanakoScore += 1;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanakoScore += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroScore + \" \" + hanakoScore);\n\t}\n}",
"Main",
"public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint taroScore = 0;\n\t\tint hanakoScore = 0;\n\t\tint number = Integer.parseInt(br.readLine());\n\t\tfor(int i = 0;i < number;i++){\n\t\t\tString[] cardName = br.readLine().split(\" \");\n\t\t\tif(cardName[0].compareTo(cardName[1]) > 0){\n\t\t\t\ttaroScore += 3;\n\t\t\t}\n\t\t\telse if(cardName[0].compareTo(cardName[1]) == 0){\n\t\t\t\ttaroScore += 1;\n\t\t\t\thanakoScore += 1;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanakoScore += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroScore + \" \" + hanakoScore);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint taroScore = 0;\n\t\tint hanakoScore = 0;\n\t\tint number = Integer.parseInt(br.readLine());\n\t\tfor(int i = 0;i < number;i++){\n\t\t\tString[] cardName = br.readLine().split(\" \");\n\t\t\tif(cardName[0].compareTo(cardName[1]) > 0){\n\t\t\t\ttaroScore += 3;\n\t\t\t}\n\t\t\telse if(cardName[0].compareTo(cardName[1]) == 0){\n\t\t\t\ttaroScore += 1;\n\t\t\t\thanakoScore += 1;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanakoScore += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroScore + \" \" + hanakoScore);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int taroScore = 0;",
"taroScore",
"0",
"int hanakoScore = 0;",
"hanakoScore",
"0",
"int number = Integer.parseInt(br.readLine());",
"number",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for(int i = 0;i < number;i++){\n\t\t\tString[] cardName = br.readLine().split(\" \");\n\t\t\tif(cardName[0].compareTo(cardName[1]) > 0){\n\t\t\t\ttaroScore += 3;\n\t\t\t}\n\t\t\telse if(cardName[0].compareTo(cardName[1]) == 0){\n\t\t\t\ttaroScore += 1;\n\t\t\t\thanakoScore += 1;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanakoScore += 3;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < number",
"i",
"number",
"i++",
"i++",
"i",
"{\n\t\t\tString[] cardName = br.readLine().split(\" \");\n\t\t\tif(cardName[0].compareTo(cardName[1]) > 0){\n\t\t\t\ttaroScore += 3;\n\t\t\t}\n\t\t\telse if(cardName[0].compareTo(cardName[1]) == 0){\n\t\t\t\ttaroScore += 1;\n\t\t\t\thanakoScore += 1;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanakoScore += 3;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString[] cardName = br.readLine().split(\" \");\n\t\t\tif(cardName[0].compareTo(cardName[1]) > 0){\n\t\t\t\ttaroScore += 3;\n\t\t\t}\n\t\t\telse if(cardName[0].compareTo(cardName[1]) == 0){\n\t\t\t\ttaroScore += 1;\n\t\t\t\thanakoScore += 1;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanakoScore += 3;\n\t\t\t}\n\t\t}",
"String[] cardName = br.readLine().split(\" \");",
"cardName",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"if(cardName[0].compareTo(cardName[1]) > 0){\n\t\t\t\ttaroScore += 3;\n\t\t\t}\n\t\t\telse if(cardName[0].compareTo(cardName[1]) == 0){\n\t\t\t\ttaroScore += 1;\n\t\t\t\thanakoScore += 1;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanakoScore += 3;\n\t\t\t}",
"cardName[0].compareTo(cardName[1]) > 0",
"cardName[0].compareTo(cardName[1])",
"cardName[0].compareTo",
"cardName[0]",
"cardName",
"0",
"cardName[1]",
"cardName",
"1",
"0",
"{\n\t\t\t\ttaroScore += 3;\n\t\t\t}",
"taroScore += 3",
"taroScore",
"3",
"if(cardName[0].compareTo(cardName[1]) == 0){\n\t\t\t\ttaroScore += 1;\n\t\t\t\thanakoScore += 1;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanakoScore += 3;\n\t\t\t}",
"cardName[0].compareTo(cardName[1]) == 0",
"cardName[0].compareTo(cardName[1])",
"cardName[0].compareTo",
"cardName[0]",
"cardName",
"0",
"cardName[1]",
"cardName",
"1",
"0",
"{\n\t\t\t\ttaroScore += 1;\n\t\t\t\thanakoScore += 1;\n\t\t\t}",
"taroScore += 1",
"taroScore",
"1",
"hanakoScore += 1",
"hanakoScore",
"1",
"{\n\t\t\t\thanakoScore += 3;\n\t\t\t}",
"hanakoScore += 3",
"hanakoScore",
"3",
"System.out.println(taroScore + \" \" + hanakoScore)",
"System.out.println",
"System.out",
"System",
"System.out",
"taroScore + \" \" + hanakoScore",
"taroScore + \" \" + hanakoScore",
"taroScore",
"\" \"",
"hanakoScore",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint taroScore = 0;\n\t\tint hanakoScore = 0;\n\t\tint number = Integer.parseInt(br.readLine());\n\t\tfor(int i = 0;i < number;i++){\n\t\t\tString[] cardName = br.readLine().split(\" \");\n\t\t\tif(cardName[0].compareTo(cardName[1]) > 0){\n\t\t\t\ttaroScore += 3;\n\t\t\t}\n\t\t\telse if(cardName[0].compareTo(cardName[1]) == 0){\n\t\t\t\ttaroScore += 1;\n\t\t\t\thanakoScore += 1;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanakoScore += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroScore + \" \" + hanakoScore);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint taroScore = 0;\n\t\tint hanakoScore = 0;\n\t\tint number = Integer.parseInt(br.readLine());\n\t\tfor(int i = 0;i < number;i++){\n\t\t\tString[] cardName = br.readLine().split(\" \");\n\t\t\tif(cardName[0].compareTo(cardName[1]) > 0){\n\t\t\t\ttaroScore += 3;\n\t\t\t}\n\t\t\telse if(cardName[0].compareTo(cardName[1]) == 0){\n\t\t\t\ttaroScore += 1;\n\t\t\t\thanakoScore += 1;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanakoScore += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroScore + \" \" + hanakoScore);\n\t}\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 taroScore = 0;
int hanakoScore = 0;
int number = Integer.parseInt(br.readLine());
for(int i = 0;i < number;i++){
String[] cardName = br.readLine().split(" ");
if(cardName[0].compareTo(cardName[1]) > 0){
taroScore += 3;
}
else if(cardName[0].compareTo(cardName[1]) == 0){
taroScore += 1;
hanakoScore += 1;
}
else{
hanakoScore += 3;
}
}
System.out.println(taroScore + " " + hanakoScore);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
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,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
4,
18,
13,
2,
4,
18,
13,
17,
17,
4,
18,
13,
0,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
0,
13,
8,
2,
13,
17,
17,
8,
2,
13,
17,
17,
17,
0,
13,
8,
2,
13,
17,
17,
8,
2,
13,
17,
17,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
161,
14
],
[
161,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
19,
23
],
[
23,
24
],
[
23,
25
],
[
19,
26
],
[
26,
27
],
[
26,
28
],
[
19,
29
],
[
29,
30
],
[
29,
31
],
[
19,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
19,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
43,
44
],
[
19,
45
],
[
45,
46
],
[
45,
47
],
[
19,
48
],
[
48,
49
],
[
48,
50
],
[
19,
51
],
[
51,
52
],
[
51,
53
],
[
19,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
54,
65
],
[
66,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
70,
71
],
[
71,
72
],
[
66,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
76,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
66,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
90,
95
],
[
87,
96
],
[
96,
97
],
[
97,
98
],
[
66,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
104,
105
],
[
105,
106
],
[
101,
107
],
[
107,
108
],
[
108,
109
],
[
66,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
112,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
117,
122
],
[
66,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
125,
129
],
[
125,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
130,
135
],
[
66,
136
],
[
136,
137
],
[
137,
138
],
[
136,
139
],
[
66,
140
],
[
140,
141
],
[
141,
142
],
[
140,
143
],
[
66,
144
],
[
144,
145
],
[
145,
146
],
[
144,
147
],
[
19,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
148,
153
],
[
154,
154
],
[
154,
155
],
[
154,
156
],
[
154,
157
],
[
15,
158
],
[
158,
159
],
[
0,
160
],
[
160,
161
],
[
160,
162
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.text.Collator;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n \n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n StringBuilder line = new StringBuilder();\n StringBuilder wordA = new StringBuilder();\n StringBuilder wordB = new StringBuilder();\n Collator collator = Collator.getInstance();\n int turn = Integer.parseInt(br.readLine());\n int pointA = 0;\n int pointB = 0;\n int result = 0;\n\n\n for ( int i = 0; i < turn; i++ ) {\n\n line.append(br.readLine());\n wordA.append(line.substring(0, line.indexOf(\" \")));\n wordB.append(line.substring(line.indexOf(\" \")+1, line.length()));\n\n result = collator.compare(wordA.toString(),wordB.toString());\n pointA += result == 0 ? 1 : result < 0 ? 0 : 3;\n pointB += result == 0 ? 1 : result < 0 ? 3 : 0;\n\n line.setLength(0);\n wordA.setLength(0);\n wordB.setLength(0);\n }\n\n System.out.println(pointA + \" \" + pointB);\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.text.Collator;",
"Collator",
"java.text",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n \n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n StringBuilder line = new StringBuilder();\n StringBuilder wordA = new StringBuilder();\n StringBuilder wordB = new StringBuilder();\n Collator collator = Collator.getInstance();\n int turn = Integer.parseInt(br.readLine());\n int pointA = 0;\n int pointB = 0;\n int result = 0;\n\n\n for ( int i = 0; i < turn; i++ ) {\n\n line.append(br.readLine());\n wordA.append(line.substring(0, line.indexOf(\" \")));\n wordB.append(line.substring(line.indexOf(\" \")+1, line.length()));\n\n result = collator.compare(wordA.toString(),wordB.toString());\n pointA += result == 0 ? 1 : result < 0 ? 0 : 3;\n pointB += result == 0 ? 1 : result < 0 ? 3 : 0;\n\n line.setLength(0);\n wordA.setLength(0);\n wordB.setLength(0);\n }\n\n System.out.println(pointA + \" \" + pointB);\n }\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n \n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n StringBuilder line = new StringBuilder();\n StringBuilder wordA = new StringBuilder();\n StringBuilder wordB = new StringBuilder();\n Collator collator = Collator.getInstance();\n int turn = Integer.parseInt(br.readLine());\n int pointA = 0;\n int pointB = 0;\n int result = 0;\n\n\n for ( int i = 0; i < turn; i++ ) {\n\n line.append(br.readLine());\n wordA.append(line.substring(0, line.indexOf(\" \")));\n wordB.append(line.substring(line.indexOf(\" \")+1, line.length()));\n\n result = collator.compare(wordA.toString(),wordB.toString());\n pointA += result == 0 ? 1 : result < 0 ? 0 : 3;\n pointB += result == 0 ? 1 : result < 0 ? 3 : 0;\n\n line.setLength(0);\n wordA.setLength(0);\n wordB.setLength(0);\n }\n\n System.out.println(pointA + \" \" + pointB);\n }\n }",
"main",
"{\n \n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n StringBuilder line = new StringBuilder();\n StringBuilder wordA = new StringBuilder();\n StringBuilder wordB = new StringBuilder();\n Collator collator = Collator.getInstance();\n int turn = Integer.parseInt(br.readLine());\n int pointA = 0;\n int pointB = 0;\n int result = 0;\n\n\n for ( int i = 0; i < turn; i++ ) {\n\n line.append(br.readLine());\n wordA.append(line.substring(0, line.indexOf(\" \")));\n wordB.append(line.substring(line.indexOf(\" \")+1, line.length()));\n\n result = collator.compare(wordA.toString(),wordB.toString());\n pointA += result == 0 ? 1 : result < 0 ? 0 : 3;\n pointB += result == 0 ? 1 : result < 0 ? 3 : 0;\n\n line.setLength(0);\n wordA.setLength(0);\n wordB.setLength(0);\n }\n\n System.out.println(pointA + \" \" + pointB);\n }\n }",
"try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n StringBuilder line = new StringBuilder();\n StringBuilder wordA = new StringBuilder();\n StringBuilder wordB = new StringBuilder();\n Collator collator = Collator.getInstance();\n int turn = Integer.parseInt(br.readLine());\n int pointA = 0;\n int pointB = 0;\n int result = 0;\n\n\n for ( int i = 0; i < turn; i++ ) {\n\n line.append(br.readLine());\n wordA.append(line.substring(0, line.indexOf(\" \")));\n wordB.append(line.substring(line.indexOf(\" \")+1, line.length()));\n\n result = collator.compare(wordA.toString(),wordB.toString());\n pointA += result == 0 ? 1 : result < 0 ? 0 : 3;\n pointB += result == 0 ? 1 : result < 0 ? 3 : 0;\n\n line.setLength(0);\n wordA.setLength(0);\n wordB.setLength(0);\n }\n\n System.out.println(pointA + \" \" + pointB);\n }",
"{\n\n StringBuilder line = new StringBuilder();\n StringBuilder wordA = new StringBuilder();\n StringBuilder wordB = new StringBuilder();\n Collator collator = Collator.getInstance();\n int turn = Integer.parseInt(br.readLine());\n int pointA = 0;\n int pointB = 0;\n int result = 0;\n\n\n for ( int i = 0; i < turn; i++ ) {\n\n line.append(br.readLine());\n wordA.append(line.substring(0, line.indexOf(\" \")));\n wordB.append(line.substring(line.indexOf(\" \")+1, line.length()));\n\n result = collator.compare(wordA.toString(),wordB.toString());\n pointA += result == 0 ? 1 : result < 0 ? 0 : 3;\n pointB += result == 0 ? 1 : result < 0 ? 3 : 0;\n\n line.setLength(0);\n wordA.setLength(0);\n wordB.setLength(0);\n }\n\n System.out.println(pointA + \" \" + pointB);\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in))",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in))",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuilder line = new StringBuilder();",
"line",
"new StringBuilder()",
"StringBuilder wordA = new StringBuilder();",
"wordA",
"new StringBuilder()",
"StringBuilder wordB = new StringBuilder();",
"wordB",
"new StringBuilder()",
"Collator collator = Collator.getInstance();",
"collator",
"Collator.getInstance()",
"Collator.getInstance",
"Collator",
"int turn = Integer.parseInt(br.readLine());",
"turn",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int pointA = 0;",
"pointA",
"0",
"int pointB = 0;",
"pointB",
"0",
"int result = 0;",
"result",
"0",
"for ( int i = 0; i < turn; i++ ) {\n\n line.append(br.readLine());\n wordA.append(line.substring(0, line.indexOf(\" \")));\n wordB.append(line.substring(line.indexOf(\" \")+1, line.length()));\n\n result = collator.compare(wordA.toString(),wordB.toString());\n pointA += result == 0 ? 1 : result < 0 ? 0 : 3;\n pointB += result == 0 ? 1 : result < 0 ? 3 : 0;\n\n line.setLength(0);\n wordA.setLength(0);\n wordB.setLength(0);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < turn",
"i",
"turn",
"i++",
"i++",
"i",
"{\n\n line.append(br.readLine());\n wordA.append(line.substring(0, line.indexOf(\" \")));\n wordB.append(line.substring(line.indexOf(\" \")+1, line.length()));\n\n result = collator.compare(wordA.toString(),wordB.toString());\n pointA += result == 0 ? 1 : result < 0 ? 0 : 3;\n pointB += result == 0 ? 1 : result < 0 ? 3 : 0;\n\n line.setLength(0);\n wordA.setLength(0);\n wordB.setLength(0);\n }",
"{\n\n line.append(br.readLine());\n wordA.append(line.substring(0, line.indexOf(\" \")));\n wordB.append(line.substring(line.indexOf(\" \")+1, line.length()));\n\n result = collator.compare(wordA.toString(),wordB.toString());\n pointA += result == 0 ? 1 : result < 0 ? 0 : 3;\n pointB += result == 0 ? 1 : result < 0 ? 3 : 0;\n\n line.setLength(0);\n wordA.setLength(0);\n wordB.setLength(0);\n }",
"line.append(br.readLine())",
"line.append",
"line",
"br.readLine()",
"br.readLine",
"br",
"wordA.append(line.substring(0, line.indexOf(\" \")))",
"wordA.append",
"wordA",
"line.substring(0, line.indexOf(\" \"))",
"line.substring",
"line",
"0",
"line.indexOf(\" \")",
"line.indexOf",
"line",
"\" \"",
"wordB.append(line.substring(line.indexOf(\" \")+1, line.length()))",
"wordB.append",
"wordB",
"line.substring(line.indexOf(\" \")+1, line.length())",
"line.substring",
"line",
"line.indexOf(\" \")+1",
"line.indexOf(\" \")",
"line.indexOf",
"line",
"\" \"",
"1",
"line.length()",
"line.length",
"line",
"result = collator.compare(wordA.toString(),wordB.toString())",
"result",
"collator.compare(wordA.toString(),wordB.toString())",
"collator.compare",
"collator",
"wordA.toString()",
"wordA.toString",
"wordA",
"wordB.toString()",
"wordB.toString",
"wordB",
"pointA += result == 0 ? 1 : result < 0 ? 0 : 3",
"pointA",
"result == 0 ? 1 : result < 0 ? 0 : 3",
"result == 0",
"result",
"0",
"1",
"result < 0 ? 0 : 3",
"result < 0",
"result",
"0",
"0",
"3",
"pointB += result == 0 ? 1 : result < 0 ? 3 : 0",
"pointB",
"result == 0 ? 1 : result < 0 ? 3 : 0",
"result == 0",
"result",
"0",
"1",
"result < 0 ? 3 : 0",
"result < 0",
"result",
"0",
"3",
"0",
"line.setLength(0)",
"line.setLength",
"line",
"0",
"wordA.setLength(0)",
"wordA.setLength",
"wordA",
"0",
"wordB.setLength(0)",
"wordB.setLength",
"wordB",
"0",
"System.out.println(pointA + \" \" + pointB)",
"System.out.println",
"System.out",
"System",
"System.out",
"pointA + \" \" + pointB",
"pointA + \" \" + pointB",
"pointA",
"\" \"",
"pointB",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n \n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n StringBuilder line = new StringBuilder();\n StringBuilder wordA = new StringBuilder();\n StringBuilder wordB = new StringBuilder();\n Collator collator = Collator.getInstance();\n int turn = Integer.parseInt(br.readLine());\n int pointA = 0;\n int pointB = 0;\n int result = 0;\n\n\n for ( int i = 0; i < turn; i++ ) {\n\n line.append(br.readLine());\n wordA.append(line.substring(0, line.indexOf(\" \")));\n wordB.append(line.substring(line.indexOf(\" \")+1, line.length()));\n\n result = collator.compare(wordA.toString(),wordB.toString());\n pointA += result == 0 ? 1 : result < 0 ? 0 : 3;\n pointB += result == 0 ? 1 : result < 0 ? 3 : 0;\n\n line.setLength(0);\n wordA.setLength(0);\n wordB.setLength(0);\n }\n\n System.out.println(pointA + \" \" + pointB);\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n \n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n StringBuilder line = new StringBuilder();\n StringBuilder wordA = new StringBuilder();\n StringBuilder wordB = new StringBuilder();\n Collator collator = Collator.getInstance();\n int turn = Integer.parseInt(br.readLine());\n int pointA = 0;\n int pointB = 0;\n int result = 0;\n\n\n for ( int i = 0; i < turn; i++ ) {\n\n line.append(br.readLine());\n wordA.append(line.substring(0, line.indexOf(\" \")));\n wordB.append(line.substring(line.indexOf(\" \")+1, line.length()));\n\n result = collator.compare(wordA.toString(),wordB.toString());\n pointA += result == 0 ? 1 : result < 0 ? 0 : 3;\n pointB += result == 0 ? 1 : result < 0 ? 3 : 0;\n\n line.setLength(0);\n wordA.setLength(0);\n wordB.setLength(0);\n }\n\n System.out.println(pointA + \" \" + pointB);\n }\n }\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.text.Collator;
public class Main {
public static void main(String[] args) throws IOException {
try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
StringBuilder line = new StringBuilder();
StringBuilder wordA = new StringBuilder();
StringBuilder wordB = new StringBuilder();
Collator collator = Collator.getInstance();
int turn = Integer.parseInt(br.readLine());
int pointA = 0;
int pointB = 0;
int result = 0;
for ( int i = 0; i < turn; i++ ) {
line.append(br.readLine());
wordA.append(line.substring(0, line.indexOf(" ")));
wordB.append(line.substring(line.indexOf(" ")+1, line.length()));
result = collator.compare(wordA.toString(),wordB.toString());
pointA += result == 0 ? 1 : result < 0 ? 0 : 3;
pointB += result == 0 ? 1 : result < 0 ? 3 : 0;
line.setLength(0);
wordA.setLength(0);
wordB.setLength(0);
}
System.out.println(pointA + " " + pointB);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
0,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
30,
40,
13,
40,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
86,
5
],
[
86,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
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
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
35,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
52,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
71,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
79,
79
],
[
79,
80
],
[
79,
81
],
[
79,
82
],
[
6,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n\n int numOfGame = stdIn.nextInt();\n\n int taroScore = 0;\n int hanakoScore = 0;\n for(int i = 0; i < numOfGame; i++) {\n String taroHand = stdIn.next();\n String hanakoHand = stdIn.next();\n \n int result = taroHand.compareTo(hanakoHand);\n if(result > 0) {\n // taro win\n taroScore += 3;\n } else if(result < 0) {\n // hanako win\n hanakoScore += 3;\n } else {\n // draw\n taroScore++;\n hanakoScore++;\n }\n }\n System.out.println(taroScore + \" \" + hanakoScore);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n\n int numOfGame = stdIn.nextInt();\n\n int taroScore = 0;\n int hanakoScore = 0;\n for(int i = 0; i < numOfGame; i++) {\n String taroHand = stdIn.next();\n String hanakoHand = stdIn.next();\n \n int result = taroHand.compareTo(hanakoHand);\n if(result > 0) {\n // taro win\n taroScore += 3;\n } else if(result < 0) {\n // hanako win\n hanakoScore += 3;\n } else {\n // draw\n taroScore++;\n hanakoScore++;\n }\n }\n System.out.println(taroScore + \" \" + hanakoScore);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n\n int numOfGame = stdIn.nextInt();\n\n int taroScore = 0;\n int hanakoScore = 0;\n for(int i = 0; i < numOfGame; i++) {\n String taroHand = stdIn.next();\n String hanakoHand = stdIn.next();\n \n int result = taroHand.compareTo(hanakoHand);\n if(result > 0) {\n // taro win\n taroScore += 3;\n } else if(result < 0) {\n // hanako win\n hanakoScore += 3;\n } else {\n // draw\n taroScore++;\n hanakoScore++;\n }\n }\n System.out.println(taroScore + \" \" + hanakoScore);\n }",
"main",
"{\n Scanner stdIn = new Scanner(System.in);\n\n int numOfGame = stdIn.nextInt();\n\n int taroScore = 0;\n int hanakoScore = 0;\n for(int i = 0; i < numOfGame; i++) {\n String taroHand = stdIn.next();\n String hanakoHand = stdIn.next();\n \n int result = taroHand.compareTo(hanakoHand);\n if(result > 0) {\n // taro win\n taroScore += 3;\n } else if(result < 0) {\n // hanako win\n hanakoScore += 3;\n } else {\n // draw\n taroScore++;\n hanakoScore++;\n }\n }\n System.out.println(taroScore + \" \" + hanakoScore);\n }",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"int numOfGame = stdIn.nextInt();",
"numOfGame",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"int taroScore = 0;",
"taroScore",
"0",
"int hanakoScore = 0;",
"hanakoScore",
"0",
"for(int i = 0; i < numOfGame; i++) {\n String taroHand = stdIn.next();\n String hanakoHand = stdIn.next();\n \n int result = taroHand.compareTo(hanakoHand);\n if(result > 0) {\n // taro win\n taroScore += 3;\n } else if(result < 0) {\n // hanako win\n hanakoScore += 3;\n } else {\n // draw\n taroScore++;\n hanakoScore++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < numOfGame",
"i",
"numOfGame",
"i++",
"i++",
"i",
"{\n String taroHand = stdIn.next();\n String hanakoHand = stdIn.next();\n \n int result = taroHand.compareTo(hanakoHand);\n if(result > 0) {\n // taro win\n taroScore += 3;\n } else if(result < 0) {\n // hanako win\n hanakoScore += 3;\n } else {\n // draw\n taroScore++;\n hanakoScore++;\n }\n }",
"{\n String taroHand = stdIn.next();\n String hanakoHand = stdIn.next();\n \n int result = taroHand.compareTo(hanakoHand);\n if(result > 0) {\n // taro win\n taroScore += 3;\n } else if(result < 0) {\n // hanako win\n hanakoScore += 3;\n } else {\n // draw\n taroScore++;\n hanakoScore++;\n }\n }",
"String taroHand = stdIn.next();",
"taroHand",
"stdIn.next()",
"stdIn.next",
"stdIn",
"String hanakoHand = stdIn.next();",
"hanakoHand",
"stdIn.next()",
"stdIn.next",
"stdIn",
"int result = taroHand.compareTo(hanakoHand);",
"result",
"taroHand.compareTo(hanakoHand)",
"taroHand.compareTo",
"taroHand",
"hanakoHand",
"if(result > 0) {\n // taro win\n taroScore += 3;\n } else if(result < 0) {\n // hanako win\n hanakoScore += 3;\n } else {\n // draw\n taroScore++;\n hanakoScore++;\n }",
"result > 0",
"result",
"0",
"{\n // taro win\n taroScore += 3;\n }",
"taroScore += 3",
"taroScore",
"3",
"if(result < 0) {\n // hanako win\n hanakoScore += 3;\n } else {\n // draw\n taroScore++;\n hanakoScore++;\n }",
"result < 0",
"result",
"0",
"{\n // hanako win\n hanakoScore += 3;\n }",
"hanakoScore += 3",
"hanakoScore",
"3",
"{\n // draw\n taroScore++;\n hanakoScore++;\n }",
"taroScore++",
"taroScore",
"hanakoScore++",
"hanakoScore",
"System.out.println(taroScore + \" \" + hanakoScore)",
"System.out.println",
"System.out",
"System",
"System.out",
"taroScore + \" \" + hanakoScore",
"taroScore + \" \" + hanakoScore",
"taroScore",
"\" \"",
"hanakoScore",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n\n int numOfGame = stdIn.nextInt();\n\n int taroScore = 0;\n int hanakoScore = 0;\n for(int i = 0; i < numOfGame; i++) {\n String taroHand = stdIn.next();\n String hanakoHand = stdIn.next();\n \n int result = taroHand.compareTo(hanakoHand);\n if(result > 0) {\n // taro win\n taroScore += 3;\n } else if(result < 0) {\n // hanako win\n hanakoScore += 3;\n } else {\n // draw\n taroScore++;\n hanakoScore++;\n }\n }\n System.out.println(taroScore + \" \" + hanakoScore);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n\n int numOfGame = stdIn.nextInt();\n\n int taroScore = 0;\n int hanakoScore = 0;\n for(int i = 0; i < numOfGame; i++) {\n String taroHand = stdIn.next();\n String hanakoHand = stdIn.next();\n \n int result = taroHand.compareTo(hanakoHand);\n if(result > 0) {\n // taro win\n taroScore += 3;\n } else if(result < 0) {\n // hanako win\n hanakoScore += 3;\n } else {\n // draw\n taroScore++;\n hanakoScore++;\n }\n }\n System.out.println(taroScore + \" \" + hanakoScore);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
int numOfGame = stdIn.nextInt();
int taroScore = 0;
int hanakoScore = 0;
for(int i = 0; i < numOfGame; i++) {
String taroHand = stdIn.next();
String hanakoHand = stdIn.next();
int result = taroHand.compareTo(hanakoHand);
if(result > 0) {
// taro win
taroScore += 3;
} else if(result < 0) {
// hanako win
hanakoScore += 3;
} else {
// draw
taroScore++;
hanakoScore++;
}
}
System.out.println(taroScore + " " + hanakoScore);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
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,
4,
18,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
0,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
0,
13,
17,
0,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
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
],
[
103,
11
],
[
103,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
14,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
14,
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
],
[
49,
50
],
[
50,
51
],
[
47,
52
],
[
44,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
54,
63
],
[
53,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
53,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
69,
78
],
[
68,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
83,
85
],
[
68,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
14,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
96,
96
],
[
96,
97
],
[
96,
98
],
[
96,
99
],
[
12,
100
],
[
100,
101
],
[
0,
102
],
[
102,
103
],
[
102,
104
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint tSum = 0;\n\t\tint hSum = 0;\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] input = br.readLine().split(\" \");\n\t\t\tif (input[0].compareTo(input[1]) > 0) {\n\t\t\t\ttSum += 3;\n\t\t\t} else if (input[0].compareTo(input[1]) == 0) {\n\t\t\t\ttSum += 1;\n\t\t\t\thSum += 1;\n\t\t\t} else {\n\t\t\t\thSum += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tSum + \" \" + hSum);\n\t}\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\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint tSum = 0;\n\t\tint hSum = 0;\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] input = br.readLine().split(\" \");\n\t\t\tif (input[0].compareTo(input[1]) > 0) {\n\t\t\t\ttSum += 3;\n\t\t\t} else if (input[0].compareTo(input[1]) == 0) {\n\t\t\t\ttSum += 1;\n\t\t\t\thSum += 1;\n\t\t\t} else {\n\t\t\t\thSum += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tSum + \" \" + hSum);\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint tSum = 0;\n\t\tint hSum = 0;\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] input = br.readLine().split(\" \");\n\t\t\tif (input[0].compareTo(input[1]) > 0) {\n\t\t\t\ttSum += 3;\n\t\t\t} else if (input[0].compareTo(input[1]) == 0) {\n\t\t\t\ttSum += 1;\n\t\t\t\thSum += 1;\n\t\t\t} else {\n\t\t\t\thSum += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tSum + \" \" + hSum);\n\t}",
"main",
"{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint tSum = 0;\n\t\tint hSum = 0;\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] input = br.readLine().split(\" \");\n\t\t\tif (input[0].compareTo(input[1]) > 0) {\n\t\t\t\ttSum += 3;\n\t\t\t} else if (input[0].compareTo(input[1]) == 0) {\n\t\t\t\ttSum += 1;\n\t\t\t\thSum += 1;\n\t\t\t} else {\n\t\t\t\thSum += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tSum + \" \" + hSum);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int tSum = 0;",
"tSum",
"0",
"int hSum = 0;",
"hSum",
"0",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for (int i = 0; i < n; i++) {\n\t\t\tString[] input = br.readLine().split(\" \");\n\t\t\tif (input[0].compareTo(input[1]) > 0) {\n\t\t\t\ttSum += 3;\n\t\t\t} else if (input[0].compareTo(input[1]) == 0) {\n\t\t\t\ttSum += 1;\n\t\t\t\thSum += 1;\n\t\t\t} else {\n\t\t\t\thSum += 3;\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[] input = br.readLine().split(\" \");\n\t\t\tif (input[0].compareTo(input[1]) > 0) {\n\t\t\t\ttSum += 3;\n\t\t\t} else if (input[0].compareTo(input[1]) == 0) {\n\t\t\t\ttSum += 1;\n\t\t\t\thSum += 1;\n\t\t\t} else {\n\t\t\t\thSum += 3;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString[] input = br.readLine().split(\" \");\n\t\t\tif (input[0].compareTo(input[1]) > 0) {\n\t\t\t\ttSum += 3;\n\t\t\t} else if (input[0].compareTo(input[1]) == 0) {\n\t\t\t\ttSum += 1;\n\t\t\t\thSum += 1;\n\t\t\t} else {\n\t\t\t\thSum += 3;\n\t\t\t}\n\t\t}",
"String[] input = br.readLine().split(\" \");",
"input",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"if (input[0].compareTo(input[1]) > 0) {\n\t\t\t\ttSum += 3;\n\t\t\t} else if (input[0].compareTo(input[1]) == 0) {\n\t\t\t\ttSum += 1;\n\t\t\t\thSum += 1;\n\t\t\t} else {\n\t\t\t\thSum += 3;\n\t\t\t}",
"input[0].compareTo(input[1]) > 0",
"input[0].compareTo(input[1])",
"input[0].compareTo",
"input[0]",
"input",
"0",
"input[1]",
"input",
"1",
"0",
"{\n\t\t\t\ttSum += 3;\n\t\t\t}",
"tSum += 3",
"tSum",
"3",
"if (input[0].compareTo(input[1]) == 0) {\n\t\t\t\ttSum += 1;\n\t\t\t\thSum += 1;\n\t\t\t} else {\n\t\t\t\thSum += 3;\n\t\t\t}",
"input[0].compareTo(input[1]) == 0",
"input[0].compareTo(input[1])",
"input[0].compareTo",
"input[0]",
"input",
"0",
"input[1]",
"input",
"1",
"0",
"{\n\t\t\t\ttSum += 1;\n\t\t\t\thSum += 1;\n\t\t\t}",
"tSum += 1",
"tSum",
"1",
"hSum += 1",
"hSum",
"1",
"{\n\t\t\t\thSum += 3;\n\t\t\t}",
"hSum += 3",
"hSum",
"3",
"System.out.println(tSum + \" \" + hSum)",
"System.out.println",
"System.out",
"System",
"System.out",
"tSum + \" \" + hSum",
"tSum + \" \" + hSum",
"tSum",
"\" \"",
"hSum",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint tSum = 0;\n\t\tint hSum = 0;\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] input = br.readLine().split(\" \");\n\t\t\tif (input[0].compareTo(input[1]) > 0) {\n\t\t\t\ttSum += 3;\n\t\t\t} else if (input[0].compareTo(input[1]) == 0) {\n\t\t\t\ttSum += 1;\n\t\t\t\thSum += 1;\n\t\t\t} else {\n\t\t\t\thSum += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tSum + \" \" + hSum);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint tSum = 0;\n\t\tint hSum = 0;\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] input = br.readLine().split(\" \");\n\t\t\tif (input[0].compareTo(input[1]) > 0) {\n\t\t\t\ttSum += 3;\n\t\t\t} else if (input[0].compareTo(input[1]) == 0) {\n\t\t\t\ttSum += 1;\n\t\t\t\thSum += 1;\n\t\t\t} else {\n\t\t\t\thSum += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tSum + \" \" + hSum);\n\t}\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 tSum = 0;
int hSum = 0;
int n = Integer.parseInt(br.readLine());
for (int i = 0; i < n; i++) {
String[] input = br.readLine().split(" ");
if (input[0].compareTo(input[1]) > 0) {
tSum += 3;
} else if (input[0].compareTo(input[1]) == 0) {
tSum += 1;
hSum += 1;
} else {
hSum += 3;
}
}
System.out.println(tSum + " " + hSum);
}
} |
[
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,
41,
13,
41,
13,
41,
13,
41,
13,
4,
18,
18,
13,
13,
2,
2,
13,
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
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
8,
34
],
[
34,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
42,
42
],
[
42,
43
],
[
42,
44
],
[
42,
45
],
[
6,
46
],
[
46,
47
]
]
| [
"import java.io.*;\n\nclass Main {\n public static void main (String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int taro = 0, hanako = 0;\n int i, j;\n char taroCard, hanakoCard;\n String[] cards;\n\n outside: for (i = 0; i < n; i++) {\n cards = br.readLine().split(\" \");\n\n for (j = 0; j < cards[0].length() && j < cards[1].length(); j++) {\n taroCard = cards[0].charAt(j);\n hanakoCard = cards[1].charAt(j);\n if (taroCard > hanakoCard) {\n taro += 3;\n continue outside;\n } else if (taroCard < hanakoCard) {\n hanako += 3;\n continue outside;\n }\n }\n\n if (cards[0].length() > cards[1].length()) {\n taro += 3;\n } else if (cards[0].length() < cards[1].length()) {\n hanako += 3;\n } else {\n taro++;\n hanako++;\n }\n }\n\n System.out.println(taro + \" \" + hanako);\n }\n}",
"import java.io.*;",
"io.*",
"java",
"class Main {\n public static void main (String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int taro = 0, hanako = 0;\n int i, j;\n char taroCard, hanakoCard;\n String[] cards;\n\n outside: for (i = 0; i < n; i++) {\n cards = br.readLine().split(\" \");\n\n for (j = 0; j < cards[0].length() && j < cards[1].length(); j++) {\n taroCard = cards[0].charAt(j);\n hanakoCard = cards[1].charAt(j);\n if (taroCard > hanakoCard) {\n taro += 3;\n continue outside;\n } else if (taroCard < hanakoCard) {\n hanako += 3;\n continue outside;\n }\n }\n\n if (cards[0].length() > cards[1].length()) {\n taro += 3;\n } else if (cards[0].length() < cards[1].length()) {\n hanako += 3;\n } else {\n taro++;\n hanako++;\n }\n }\n\n System.out.println(taro + \" \" + hanako);\n }\n}",
"Main",
"public static void main (String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int taro = 0, hanako = 0;\n int i, j;\n char taroCard, hanakoCard;\n String[] cards;\n\n outside: for (i = 0; i < n; i++) {\n cards = br.readLine().split(\" \");\n\n for (j = 0; j < cards[0].length() && j < cards[1].length(); j++) {\n taroCard = cards[0].charAt(j);\n hanakoCard = cards[1].charAt(j);\n if (taroCard > hanakoCard) {\n taro += 3;\n continue outside;\n } else if (taroCard < hanakoCard) {\n hanako += 3;\n continue outside;\n }\n }\n\n if (cards[0].length() > cards[1].length()) {\n taro += 3;\n } else if (cards[0].length() < cards[1].length()) {\n hanako += 3;\n } else {\n taro++;\n hanako++;\n }\n }\n\n System.out.println(taro + \" \" + hanako);\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int taro = 0, hanako = 0;\n int i, j;\n char taroCard, hanakoCard;\n String[] cards;\n\n outside: for (i = 0; i < n; i++) {\n cards = br.readLine().split(\" \");\n\n for (j = 0; j < cards[0].length() && j < cards[1].length(); j++) {\n taroCard = cards[0].charAt(j);\n hanakoCard = cards[1].charAt(j);\n if (taroCard > hanakoCard) {\n taro += 3;\n continue outside;\n } else if (taroCard < hanakoCard) {\n hanako += 3;\n continue outside;\n }\n }\n\n if (cards[0].length() > cards[1].length()) {\n taro += 3;\n } else if (cards[0].length() < cards[1].length()) {\n hanako += 3;\n } else {\n taro++;\n hanako++;\n }\n }\n\n System.out.println(taro + \" \" + hanako);\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int taro = 0",
"taro",
"0",
"hanako = 0;",
"hanako",
"0",
"int i",
"i",
"j;",
"j",
"char taroCard",
"taroCard",
"hanakoCard;",
"hanakoCard",
"String[] cards;",
"cards",
"System.out.println(taro + \" \" + hanako)",
"System.out.println",
"System.out",
"System",
"System.out",
"taro + \" \" + hanako",
"taro + \" \" + hanako",
"taro",
"\" \"",
"hanako",
"String[] args",
"args"
]
| import java.io.*;
class Main {
public static void main (String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
int taro = 0, hanako = 0;
int i, j;
char taroCard, hanakoCard;
String[] cards;
outside: for (i = 0; i < n; i++) {
cards = br.readLine().split(" ");
for (j = 0; j < cards[0].length() && j < cards[1].length(); j++) {
taroCard = cards[0].charAt(j);
hanakoCard = cards[1].charAt(j);
if (taroCard > hanakoCard) {
taro += 3;
continue outside;
} else if (taroCard < hanakoCard) {
hanako += 3;
continue outside;
}
}
if (cards[0].length() > cards[1].length()) {
taro += 3;
} else if (cards[0].length() < cards[1].length()) {
hanako += 3;
} else {
taro++;
hanako++;
}
}
System.out.println(taro + " " + hanako);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
30,
0,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
4,
18,
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
],
[
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
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
46,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
46,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
58,
63
],
[
57,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
57,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
72,
74
],
[
8,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
81,
81
],
[
81,
82
],
[
81,
83
],
[
81,
84
],
[
8,
85
],
[
85,
86
],
[
86,
87
],
[
6,
88
],
[
88,
89
],
[
0,
90
],
[
90,
91
],
[
90,
92
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint x=scan.nextInt();\n\t\t\tint hanako=0,tarou=0;\n\t\t\tfor(int i=0;i<x;i++) {\n\t\t\t\tString str1=scan.next();\n\t\t\t\tString str2=scan.next();\n\t\t\t\tif(str1.compareTo(str2)>0) {\n\t\t\t\t\ttarou +=3;\n\t\t\t\t}else if(str1.compareTo(str2)<0) {\n\t\t\t\t\thanako +=3;\n\t\t\t\t}else {\n\t\t\t\t\thanako +=1;\n\t\t\t\t\ttarou +=1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(tarou+\" \"+hanako);\n\t\t\tscan.close();\n\t\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint x=scan.nextInt();\n\t\t\tint hanako=0,tarou=0;\n\t\t\tfor(int i=0;i<x;i++) {\n\t\t\t\tString str1=scan.next();\n\t\t\t\tString str2=scan.next();\n\t\t\t\tif(str1.compareTo(str2)>0) {\n\t\t\t\t\ttarou +=3;\n\t\t\t\t}else if(str1.compareTo(str2)<0) {\n\t\t\t\t\thanako +=3;\n\t\t\t\t}else {\n\t\t\t\t\thanako +=1;\n\t\t\t\t\ttarou +=1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(tarou+\" \"+hanako);\n\t\t\tscan.close();\n\t\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint x=scan.nextInt();\n\t\t\tint hanako=0,tarou=0;\n\t\t\tfor(int i=0;i<x;i++) {\n\t\t\t\tString str1=scan.next();\n\t\t\t\tString str2=scan.next();\n\t\t\t\tif(str1.compareTo(str2)>0) {\n\t\t\t\t\ttarou +=3;\n\t\t\t\t}else if(str1.compareTo(str2)<0) {\n\t\t\t\t\thanako +=3;\n\t\t\t\t}else {\n\t\t\t\t\thanako +=1;\n\t\t\t\t\ttarou +=1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(tarou+\" \"+hanako);\n\t\t\tscan.close();\n\t\t}",
"main",
"{\n\t\tScanner scan=new Scanner(System.in);\n\t\tint x=scan.nextInt();\n\t\t\tint hanako=0,tarou=0;\n\t\t\tfor(int i=0;i<x;i++) {\n\t\t\t\tString str1=scan.next();\n\t\t\t\tString str2=scan.next();\n\t\t\t\tif(str1.compareTo(str2)>0) {\n\t\t\t\t\ttarou +=3;\n\t\t\t\t}else if(str1.compareTo(str2)<0) {\n\t\t\t\t\thanako +=3;\n\t\t\t\t}else {\n\t\t\t\t\thanako +=1;\n\t\t\t\t\ttarou +=1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(tarou+\" \"+hanako);\n\t\t\tscan.close();\n\t\t}",
"Scanner scan=new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int x=scan.nextInt();",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int hanako=0",
"hanako",
"0",
"tarou=0;",
"tarou",
"0",
"for(int i=0;i<x;i++) {\n\t\t\t\tString str1=scan.next();\n\t\t\t\tString str2=scan.next();\n\t\t\t\tif(str1.compareTo(str2)>0) {\n\t\t\t\t\ttarou +=3;\n\t\t\t\t}else if(str1.compareTo(str2)<0) {\n\t\t\t\t\thanako +=3;\n\t\t\t\t}else {\n\t\t\t\t\thanako +=1;\n\t\t\t\t\ttarou +=1;\n\t\t\t\t}\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<x",
"i",
"x",
"i++",
"i++",
"i",
"{\n\t\t\t\tString str1=scan.next();\n\t\t\t\tString str2=scan.next();\n\t\t\t\tif(str1.compareTo(str2)>0) {\n\t\t\t\t\ttarou +=3;\n\t\t\t\t}else if(str1.compareTo(str2)<0) {\n\t\t\t\t\thanako +=3;\n\t\t\t\t}else {\n\t\t\t\t\thanako +=1;\n\t\t\t\t\ttarou +=1;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tString str1=scan.next();\n\t\t\t\tString str2=scan.next();\n\t\t\t\tif(str1.compareTo(str2)>0) {\n\t\t\t\t\ttarou +=3;\n\t\t\t\t}else if(str1.compareTo(str2)<0) {\n\t\t\t\t\thanako +=3;\n\t\t\t\t}else {\n\t\t\t\t\thanako +=1;\n\t\t\t\t\ttarou +=1;\n\t\t\t\t}\n\t\t\t}",
"String str1=scan.next();",
"str1",
"scan.next()",
"scan.next",
"scan",
"String str2=scan.next();",
"str2",
"scan.next()",
"scan.next",
"scan",
"if(str1.compareTo(str2)>0) {\n\t\t\t\t\ttarou +=3;\n\t\t\t\t}else if(str1.compareTo(str2)<0) {\n\t\t\t\t\thanako +=3;\n\t\t\t\t}else {\n\t\t\t\t\thanako +=1;\n\t\t\t\t\ttarou +=1;\n\t\t\t\t}",
"str1.compareTo(str2)>0",
"str1.compareTo(str2)",
"str1.compareTo",
"str1",
"str2",
"0",
"{\n\t\t\t\t\ttarou +=3;\n\t\t\t\t}",
"tarou +=3",
"tarou",
"3",
"if(str1.compareTo(str2)<0) {\n\t\t\t\t\thanako +=3;\n\t\t\t\t}else {\n\t\t\t\t\thanako +=1;\n\t\t\t\t\ttarou +=1;\n\t\t\t\t}",
"str1.compareTo(str2)<0",
"str1.compareTo(str2)",
"str1.compareTo",
"str1",
"str2",
"0",
"{\n\t\t\t\t\thanako +=3;\n\t\t\t\t}",
"hanako +=3",
"hanako",
"3",
"{\n\t\t\t\t\thanako +=1;\n\t\t\t\t\ttarou +=1;\n\t\t\t\t}",
"hanako +=1",
"hanako",
"1",
"tarou +=1",
"tarou",
"1",
"System.out.println(tarou+\" \"+hanako)",
"System.out.println",
"System.out",
"System",
"System.out",
"tarou+\" \"+hanako",
"tarou+\" \"+hanako",
"tarou",
"\" \"",
"hanako",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint x=scan.nextInt();\n\t\t\tint hanako=0,tarou=0;\n\t\t\tfor(int i=0;i<x;i++) {\n\t\t\t\tString str1=scan.next();\n\t\t\t\tString str2=scan.next();\n\t\t\t\tif(str1.compareTo(str2)>0) {\n\t\t\t\t\ttarou +=3;\n\t\t\t\t}else if(str1.compareTo(str2)<0) {\n\t\t\t\t\thanako +=3;\n\t\t\t\t}else {\n\t\t\t\t\thanako +=1;\n\t\t\t\t\ttarou +=1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(tarou+\" \"+hanako);\n\t\t\tscan.close();\n\t\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint x=scan.nextInt();\n\t\t\tint hanako=0,tarou=0;\n\t\t\tfor(int i=0;i<x;i++) {\n\t\t\t\tString str1=scan.next();\n\t\t\t\tString str2=scan.next();\n\t\t\t\tif(str1.compareTo(str2)>0) {\n\t\t\t\t\ttarou +=3;\n\t\t\t\t}else if(str1.compareTo(str2)<0) {\n\t\t\t\t\thanako +=3;\n\t\t\t\t}else {\n\t\t\t\t\thanako +=1;\n\t\t\t\t\ttarou +=1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(tarou+\" \"+hanako);\n\t\t\tscan.close();\n\t\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan=new Scanner(System.in);
int x=scan.nextInt();
int hanako=0,tarou=0;
for(int i=0;i<x;i++) {
String str1=scan.next();
String str2=scan.next();
if(str1.compareTo(str2)>0) {
tarou +=3;
}else if(str1.compareTo(str2)<0) {
hanako +=3;
}else {
hanako +=1;
tarou +=1;
}
}
System.out.println(tarou+" "+hanako);
scan.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
17,
14,
2,
13,
17,
30,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
101,
5
],
[
101,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
40
],
[
40,
41
],
[
40,
42
],
[
8,
43
],
[
43,
44
],
[
43,
45
],
[
8,
46
],
[
46,
47
],
[
46,
48
],
[
8,
49
],
[
49,
50
],
[
49,
51
],
[
8,
52
],
[
52,
53
],
[
52,
54
],
[
8,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
8,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
8,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
94,
94
],
[
94,
95
],
[
94,
96
],
[
94,
97
],
[
6,
98
],
[
98,
99
],
[
0,
100
],
[
100,
101
],
[
100,
102
]
]
| [
"import java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tString Alpha = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = \"\";\n\t\tString line2 = \"\";\n\t\tint T_Score = 0; // 太郎の得点\n\t\tint H_Score = 0; // 花子の得点\n\t\tint win = 3; // 勝者のプラス得点\n\t\tint draw = 1; // 引き分けの場合のプラス得点\n\t\tString[] animal = new String[2]; // カードに書かれた動物の組(太郎のカード、花子のカード)\n\t\tint T_Value = 0; // カードの強さ(太郎)\n\t\tint H_Value = 0; // カードの強さ(花子)\n\t\tint n = 0; // それぞれのカードの数(勝負回数)\n\t\tint compare_length = 0;\n\t\tboolean judge_n = true;\n\t\tboolean judge_line = true;\n\n\t\tline1 = sc.nextLine();\n\t\tn = Integer.parseInt(line1);\n\t\tif (n < 0 || n > 1000) {\n\t\t\tjudge_n = false;\n\t\t}\n\n\t\tif (judge_n == true) {\n\n\t\t\tout: for (int i = 0; i < n; i++) {\n\t\t\t\tline2 = sc.nextLine();\n\n\t\t\t\tif (line2.length() > 100) {\n\t\t\t\t\tjudge_line = false;\n\t\t\t\t\tbreak out;\n\t\t\t\t}\n\t\t\t\tanimal = line2.split(\" \");\n\t\t\t\tif (animal[0].length() > animal[1].length()) {\n\t\t\t\t\tcompare_length = animal[1].length();\n\t\t\t\t} else if (animal[1].length() > animal[0].length()) {\n\t\t\t\t\tcompare_length = animal[0].length();\n\t\t\t\t} else {\n\t\t\t\t\tcompare_length = animal[0].length(); // animal[1]でもよい\n\t\t\t\t}\n\t\t\t\tin: for (int k = 0; k < compare_length; k++) {\n\t\t\t\t\tT_Value = Alpha.indexOf(\"\" + animal[0].charAt(k));\n\t\t\t\t\tH_Value = Alpha.indexOf(\"\" + animal[1].charAt(k));\n\n\t\t\t\t\t// 始:各文字が小文字であるかのチェック\n\t\t\t\t\tif (T_Value == -1 || H_Value == -1) {\n\t\t\t\t\t\tjudge_line = false; // 大文字が存在すれば、条件を満たしていないのでループから出る\n\t\t\t\t\t\tbreak out;\n\t\t\t\t\t}\n\t\t\t\t\t// 終:各文字が小文字であるかのチェック\n\n\t\t\t\t\tif (T_Value != H_Value) {\n\t\t\t\t\t\tif (T_Value > H_Value) {\n\t\t\t\t\t\t\tT_Score += win;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tH_Score += win;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak in;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (k == compare_length - 1) { // kの値がcompare_length-1までき手いるということはそれまでの文字がすべて同じであるということ\n\t\t\t\t\t\t\tif (animal[0].length() == animal[1].length()) {\n\t\t\t\t\t\t\t\tT_Score += draw;\n\t\t\t\t\t\t\t\tH_Score += draw;\n\t\t\t\t\t\t\t} else if (animal[0].length() > animal[1].length()) {\n\t\t\t\t\t\t\t\tT_Score += win;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tH_Score += win;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}// in:forここまで\n\t\t\t}// out:forここまで\n\n\t\t\tif (judge_line == true) {\n\t\t\t\tSystem.out.println(T_Score + \" \" + H_Score);\n\t\t\t}\n\t\t}\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tString Alpha = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = \"\";\n\t\tString line2 = \"\";\n\t\tint T_Score = 0; // 太郎の得点\n\t\tint H_Score = 0; // 花子の得点\n\t\tint win = 3; // 勝者のプラス得点\n\t\tint draw = 1; // 引き分けの場合のプラス得点\n\t\tString[] animal = new String[2]; // カードに書かれた動物の組(太郎のカード、花子のカード)\n\t\tint T_Value = 0; // カードの強さ(太郎)\n\t\tint H_Value = 0; // カードの強さ(花子)\n\t\tint n = 0; // それぞれのカードの数(勝負回数)\n\t\tint compare_length = 0;\n\t\tboolean judge_n = true;\n\t\tboolean judge_line = true;\n\n\t\tline1 = sc.nextLine();\n\t\tn = Integer.parseInt(line1);\n\t\tif (n < 0 || n > 1000) {\n\t\t\tjudge_n = false;\n\t\t}\n\n\t\tif (judge_n == true) {\n\n\t\t\tout: for (int i = 0; i < n; i++) {\n\t\t\t\tline2 = sc.nextLine();\n\n\t\t\t\tif (line2.length() > 100) {\n\t\t\t\t\tjudge_line = false;\n\t\t\t\t\tbreak out;\n\t\t\t\t}\n\t\t\t\tanimal = line2.split(\" \");\n\t\t\t\tif (animal[0].length() > animal[1].length()) {\n\t\t\t\t\tcompare_length = animal[1].length();\n\t\t\t\t} else if (animal[1].length() > animal[0].length()) {\n\t\t\t\t\tcompare_length = animal[0].length();\n\t\t\t\t} else {\n\t\t\t\t\tcompare_length = animal[0].length(); // animal[1]でもよい\n\t\t\t\t}\n\t\t\t\tin: for (int k = 0; k < compare_length; k++) {\n\t\t\t\t\tT_Value = Alpha.indexOf(\"\" + animal[0].charAt(k));\n\t\t\t\t\tH_Value = Alpha.indexOf(\"\" + animal[1].charAt(k));\n\n\t\t\t\t\t// 始:各文字が小文字であるかのチェック\n\t\t\t\t\tif (T_Value == -1 || H_Value == -1) {\n\t\t\t\t\t\tjudge_line = false; // 大文字が存在すれば、条件を満たしていないのでループから出る\n\t\t\t\t\t\tbreak out;\n\t\t\t\t\t}\n\t\t\t\t\t// 終:各文字が小文字であるかのチェック\n\n\t\t\t\t\tif (T_Value != H_Value) {\n\t\t\t\t\t\tif (T_Value > H_Value) {\n\t\t\t\t\t\t\tT_Score += win;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tH_Score += win;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak in;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (k == compare_length - 1) { // kの値がcompare_length-1までき手いるということはそれまでの文字がすべて同じであるということ\n\t\t\t\t\t\t\tif (animal[0].length() == animal[1].length()) {\n\t\t\t\t\t\t\t\tT_Score += draw;\n\t\t\t\t\t\t\t\tH_Score += draw;\n\t\t\t\t\t\t\t} else if (animal[0].length() > animal[1].length()) {\n\t\t\t\t\t\t\t\tT_Score += win;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tH_Score += win;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}// in:forここまで\n\t\t\t}// out:forここまで\n\n\t\t\tif (judge_line == true) {\n\t\t\t\tSystem.out.println(T_Score + \" \" + H_Score);\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tString Alpha = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = \"\";\n\t\tString line2 = \"\";\n\t\tint T_Score = 0; // 太郎の得点\n\t\tint H_Score = 0; // 花子の得点\n\t\tint win = 3; // 勝者のプラス得点\n\t\tint draw = 1; // 引き分けの場合のプラス得点\n\t\tString[] animal = new String[2]; // カードに書かれた動物の組(太郎のカード、花子のカード)\n\t\tint T_Value = 0; // カードの強さ(太郎)\n\t\tint H_Value = 0; // カードの強さ(花子)\n\t\tint n = 0; // それぞれのカードの数(勝負回数)\n\t\tint compare_length = 0;\n\t\tboolean judge_n = true;\n\t\tboolean judge_line = true;\n\n\t\tline1 = sc.nextLine();\n\t\tn = Integer.parseInt(line1);\n\t\tif (n < 0 || n > 1000) {\n\t\t\tjudge_n = false;\n\t\t}\n\n\t\tif (judge_n == true) {\n\n\t\t\tout: for (int i = 0; i < n; i++) {\n\t\t\t\tline2 = sc.nextLine();\n\n\t\t\t\tif (line2.length() > 100) {\n\t\t\t\t\tjudge_line = false;\n\t\t\t\t\tbreak out;\n\t\t\t\t}\n\t\t\t\tanimal = line2.split(\" \");\n\t\t\t\tif (animal[0].length() > animal[1].length()) {\n\t\t\t\t\tcompare_length = animal[1].length();\n\t\t\t\t} else if (animal[1].length() > animal[0].length()) {\n\t\t\t\t\tcompare_length = animal[0].length();\n\t\t\t\t} else {\n\t\t\t\t\tcompare_length = animal[0].length(); // animal[1]でもよい\n\t\t\t\t}\n\t\t\t\tin: for (int k = 0; k < compare_length; k++) {\n\t\t\t\t\tT_Value = Alpha.indexOf(\"\" + animal[0].charAt(k));\n\t\t\t\t\tH_Value = Alpha.indexOf(\"\" + animal[1].charAt(k));\n\n\t\t\t\t\t// 始:各文字が小文字であるかのチェック\n\t\t\t\t\tif (T_Value == -1 || H_Value == -1) {\n\t\t\t\t\t\tjudge_line = false; // 大文字が存在すれば、条件を満たしていないのでループから出る\n\t\t\t\t\t\tbreak out;\n\t\t\t\t\t}\n\t\t\t\t\t// 終:各文字が小文字であるかのチェック\n\n\t\t\t\t\tif (T_Value != H_Value) {\n\t\t\t\t\t\tif (T_Value > H_Value) {\n\t\t\t\t\t\t\tT_Score += win;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tH_Score += win;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak in;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (k == compare_length - 1) { // kの値がcompare_length-1までき手いるということはそれまでの文字がすべて同じであるということ\n\t\t\t\t\t\t\tif (animal[0].length() == animal[1].length()) {\n\t\t\t\t\t\t\t\tT_Score += draw;\n\t\t\t\t\t\t\t\tH_Score += draw;\n\t\t\t\t\t\t\t} else if (animal[0].length() > animal[1].length()) {\n\t\t\t\t\t\t\t\tT_Score += win;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tH_Score += win;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}// in:forここまで\n\t\t\t}// out:forここまで\n\n\t\t\tif (judge_line == true) {\n\t\t\t\tSystem.out.println(T_Score + \" \" + H_Score);\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tString Alpha = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = \"\";\n\t\tString line2 = \"\";\n\t\tint T_Score = 0; // 太郎の得点\n\t\tint H_Score = 0; // 花子の得点\n\t\tint win = 3; // 勝者のプラス得点\n\t\tint draw = 1; // 引き分けの場合のプラス得点\n\t\tString[] animal = new String[2]; // カードに書かれた動物の組(太郎のカード、花子のカード)\n\t\tint T_Value = 0; // カードの強さ(太郎)\n\t\tint H_Value = 0; // カードの強さ(花子)\n\t\tint n = 0; // それぞれのカードの数(勝負回数)\n\t\tint compare_length = 0;\n\t\tboolean judge_n = true;\n\t\tboolean judge_line = true;\n\n\t\tline1 = sc.nextLine();\n\t\tn = Integer.parseInt(line1);\n\t\tif (n < 0 || n > 1000) {\n\t\t\tjudge_n = false;\n\t\t}\n\n\t\tif (judge_n == true) {\n\n\t\t\tout: for (int i = 0; i < n; i++) {\n\t\t\t\tline2 = sc.nextLine();\n\n\t\t\t\tif (line2.length() > 100) {\n\t\t\t\t\tjudge_line = false;\n\t\t\t\t\tbreak out;\n\t\t\t\t}\n\t\t\t\tanimal = line2.split(\" \");\n\t\t\t\tif (animal[0].length() > animal[1].length()) {\n\t\t\t\t\tcompare_length = animal[1].length();\n\t\t\t\t} else if (animal[1].length() > animal[0].length()) {\n\t\t\t\t\tcompare_length = animal[0].length();\n\t\t\t\t} else {\n\t\t\t\t\tcompare_length = animal[0].length(); // animal[1]でもよい\n\t\t\t\t}\n\t\t\t\tin: for (int k = 0; k < compare_length; k++) {\n\t\t\t\t\tT_Value = Alpha.indexOf(\"\" + animal[0].charAt(k));\n\t\t\t\t\tH_Value = Alpha.indexOf(\"\" + animal[1].charAt(k));\n\n\t\t\t\t\t// 始:各文字が小文字であるかのチェック\n\t\t\t\t\tif (T_Value == -1 || H_Value == -1) {\n\t\t\t\t\t\tjudge_line = false; // 大文字が存在すれば、条件を満たしていないのでループから出る\n\t\t\t\t\t\tbreak out;\n\t\t\t\t\t}\n\t\t\t\t\t// 終:各文字が小文字であるかのチェック\n\n\t\t\t\t\tif (T_Value != H_Value) {\n\t\t\t\t\t\tif (T_Value > H_Value) {\n\t\t\t\t\t\t\tT_Score += win;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tH_Score += win;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak in;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (k == compare_length - 1) { // kの値がcompare_length-1までき手いるということはそれまでの文字がすべて同じであるということ\n\t\t\t\t\t\t\tif (animal[0].length() == animal[1].length()) {\n\t\t\t\t\t\t\t\tT_Score += draw;\n\t\t\t\t\t\t\t\tH_Score += draw;\n\t\t\t\t\t\t\t} else if (animal[0].length() > animal[1].length()) {\n\t\t\t\t\t\t\t\tT_Score += win;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tH_Score += win;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}// in:forここまで\n\t\t\t}// out:forここまで\n\n\t\t\tif (judge_line == true) {\n\t\t\t\tSystem.out.println(T_Score + \" \" + H_Score);\n\t\t\t}\n\t\t}\n\t}",
"String Alpha = \"abcdefghijklmnopqrstuvwxyz\";",
"Alpha",
"\"abcdefghijklmnopqrstuvwxyz\"",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String line1 = \"\";",
"line1",
"\"\"",
"String line2 = \"\";",
"line2",
"\"\"",
"int T_Score = 0;",
"T_Score",
"0",
"int H_Score = 0;",
"H_Score",
"0",
"int win = 3;",
"win",
"3",
"int draw = 1;",
"draw",
"1",
"String[] animal = new String[2];",
"animal",
"new String[2]",
"2",
"int T_Value = 0;",
"T_Value",
"0",
"int H_Value = 0;",
"H_Value",
"0",
"int n = 0;",
"n",
"0",
"int compare_length = 0;",
"compare_length",
"0",
"boolean judge_n = true;",
"judge_n",
"true",
"boolean judge_line = true;",
"judge_line",
"true",
"line1 = sc.nextLine()",
"line1",
"sc.nextLine()",
"sc.nextLine",
"sc",
"n = Integer.parseInt(line1)",
"n",
"Integer.parseInt(line1)",
"Integer.parseInt",
"Integer",
"line1",
"if (n < 0 || n > 1000) {\n\t\t\tjudge_n = false;\n\t\t}",
"n < 0 || n > 1000",
"n < 0",
"n",
"0",
"n > 1000",
"n",
"1000",
"{\n\t\t\tjudge_n = false;\n\t\t}",
"judge_n = false",
"judge_n",
"false",
"if (judge_n == true) {\n\n\t\t\tout: for (int i = 0; i < n; i++) {\n\t\t\t\tline2 = sc.nextLine();\n\n\t\t\t\tif (line2.length() > 100) {\n\t\t\t\t\tjudge_line = false;\n\t\t\t\t\tbreak out;\n\t\t\t\t}\n\t\t\t\tanimal = line2.split(\" \");\n\t\t\t\tif (animal[0].length() > animal[1].length()) {\n\t\t\t\t\tcompare_length = animal[1].length();\n\t\t\t\t} else if (animal[1].length() > animal[0].length()) {\n\t\t\t\t\tcompare_length = animal[0].length();\n\t\t\t\t} else {\n\t\t\t\t\tcompare_length = animal[0].length(); // animal[1]でもよい\n\t\t\t\t}\n\t\t\t\tin: for (int k = 0; k < compare_length; k++) {\n\t\t\t\t\tT_Value = Alpha.indexOf(\"\" + animal[0].charAt(k));\n\t\t\t\t\tH_Value = Alpha.indexOf(\"\" + animal[1].charAt(k));\n\n\t\t\t\t\t// 始:各文字が小文字であるかのチェック\n\t\t\t\t\tif (T_Value == -1 || H_Value == -1) {\n\t\t\t\t\t\tjudge_line = false; // 大文字が存在すれば、条件を満たしていないのでループから出る\n\t\t\t\t\t\tbreak out;\n\t\t\t\t\t}\n\t\t\t\t\t// 終:各文字が小文字であるかのチェック\n\n\t\t\t\t\tif (T_Value != H_Value) {\n\t\t\t\t\t\tif (T_Value > H_Value) {\n\t\t\t\t\t\t\tT_Score += win;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tH_Score += win;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak in;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (k == compare_length - 1) { // kの値がcompare_length-1までき手いるということはそれまでの文字がすべて同じであるということ\n\t\t\t\t\t\t\tif (animal[0].length() == animal[1].length()) {\n\t\t\t\t\t\t\t\tT_Score += draw;\n\t\t\t\t\t\t\t\tH_Score += draw;\n\t\t\t\t\t\t\t} else if (animal[0].length() > animal[1].length()) {\n\t\t\t\t\t\t\t\tT_Score += win;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tH_Score += win;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}// in:forここまで\n\t\t\t}// out:forここまで\n\n\t\t\tif (judge_line == true) {\n\t\t\t\tSystem.out.println(T_Score + \" \" + H_Score);\n\t\t\t}\n\t\t}",
"judge_n == true",
"judge_n",
"true",
"{\n\n\t\t\tout: for (int i = 0; i < n; i++) {\n\t\t\t\tline2 = sc.nextLine();\n\n\t\t\t\tif (line2.length() > 100) {\n\t\t\t\t\tjudge_line = false;\n\t\t\t\t\tbreak out;\n\t\t\t\t}\n\t\t\t\tanimal = line2.split(\" \");\n\t\t\t\tif (animal[0].length() > animal[1].length()) {\n\t\t\t\t\tcompare_length = animal[1].length();\n\t\t\t\t} else if (animal[1].length() > animal[0].length()) {\n\t\t\t\t\tcompare_length = animal[0].length();\n\t\t\t\t} else {\n\t\t\t\t\tcompare_length = animal[0].length(); // animal[1]でもよい\n\t\t\t\t}\n\t\t\t\tin: for (int k = 0; k < compare_length; k++) {\n\t\t\t\t\tT_Value = Alpha.indexOf(\"\" + animal[0].charAt(k));\n\t\t\t\t\tH_Value = Alpha.indexOf(\"\" + animal[1].charAt(k));\n\n\t\t\t\t\t// 始:各文字が小文字であるかのチェック\n\t\t\t\t\tif (T_Value == -1 || H_Value == -1) {\n\t\t\t\t\t\tjudge_line = false; // 大文字が存在すれば、条件を満たしていないのでループから出る\n\t\t\t\t\t\tbreak out;\n\t\t\t\t\t}\n\t\t\t\t\t// 終:各文字が小文字であるかのチェック\n\n\t\t\t\t\tif (T_Value != H_Value) {\n\t\t\t\t\t\tif (T_Value > H_Value) {\n\t\t\t\t\t\t\tT_Score += win;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tH_Score += win;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak in;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (k == compare_length - 1) { // kの値がcompare_length-1までき手いるということはそれまでの文字がすべて同じであるということ\n\t\t\t\t\t\t\tif (animal[0].length() == animal[1].length()) {\n\t\t\t\t\t\t\t\tT_Score += draw;\n\t\t\t\t\t\t\t\tH_Score += draw;\n\t\t\t\t\t\t\t} else if (animal[0].length() > animal[1].length()) {\n\t\t\t\t\t\t\t\tT_Score += win;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tH_Score += win;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}// in:forここまで\n\t\t\t}// out:forここまで\n\n\t\t\tif (judge_line == true) {\n\t\t\t\tSystem.out.println(T_Score + \" \" + H_Score);\n\t\t\t}\n\t\t}",
"if (judge_line == true) {\n\t\t\t\tSystem.out.println(T_Score + \" \" + H_Score);\n\t\t\t}",
"judge_line == true",
"judge_line",
"true",
"{\n\t\t\t\tSystem.out.println(T_Score + \" \" + H_Score);\n\t\t\t}",
"System.out.println(T_Score + \" \" + H_Score)",
"System.out.println",
"System.out",
"System",
"System.out",
"T_Score + \" \" + H_Score",
"T_Score + \" \" + H_Score",
"T_Score",
"\" \"",
"H_Score",
"String[] args",
"args",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tString Alpha = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = \"\";\n\t\tString line2 = \"\";\n\t\tint T_Score = 0; // 太郎の得点\n\t\tint H_Score = 0; // 花子の得点\n\t\tint win = 3; // 勝者のプラス得点\n\t\tint draw = 1; // 引き分けの場合のプラス得点\n\t\tString[] animal = new String[2]; // カードに書かれた動物の組(太郎のカード、花子のカード)\n\t\tint T_Value = 0; // カードの強さ(太郎)\n\t\tint H_Value = 0; // カードの強さ(花子)\n\t\tint n = 0; // それぞれのカードの数(勝負回数)\n\t\tint compare_length = 0;\n\t\tboolean judge_n = true;\n\t\tboolean judge_line = true;\n\n\t\tline1 = sc.nextLine();\n\t\tn = Integer.parseInt(line1);\n\t\tif (n < 0 || n > 1000) {\n\t\t\tjudge_n = false;\n\t\t}\n\n\t\tif (judge_n == true) {\n\n\t\t\tout: for (int i = 0; i < n; i++) {\n\t\t\t\tline2 = sc.nextLine();\n\n\t\t\t\tif (line2.length() > 100) {\n\t\t\t\t\tjudge_line = false;\n\t\t\t\t\tbreak out;\n\t\t\t\t}\n\t\t\t\tanimal = line2.split(\" \");\n\t\t\t\tif (animal[0].length() > animal[1].length()) {\n\t\t\t\t\tcompare_length = animal[1].length();\n\t\t\t\t} else if (animal[1].length() > animal[0].length()) {\n\t\t\t\t\tcompare_length = animal[0].length();\n\t\t\t\t} else {\n\t\t\t\t\tcompare_length = animal[0].length(); // animal[1]でもよい\n\t\t\t\t}\n\t\t\t\tin: for (int k = 0; k < compare_length; k++) {\n\t\t\t\t\tT_Value = Alpha.indexOf(\"\" + animal[0].charAt(k));\n\t\t\t\t\tH_Value = Alpha.indexOf(\"\" + animal[1].charAt(k));\n\n\t\t\t\t\t// 始:各文字が小文字であるかのチェック\n\t\t\t\t\tif (T_Value == -1 || H_Value == -1) {\n\t\t\t\t\t\tjudge_line = false; // 大文字が存在すれば、条件を満たしていないのでループから出る\n\t\t\t\t\t\tbreak out;\n\t\t\t\t\t}\n\t\t\t\t\t// 終:各文字が小文字であるかのチェック\n\n\t\t\t\t\tif (T_Value != H_Value) {\n\t\t\t\t\t\tif (T_Value > H_Value) {\n\t\t\t\t\t\t\tT_Score += win;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tH_Score += win;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak in;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (k == compare_length - 1) { // kの値がcompare_length-1までき手いるということはそれまでの文字がすべて同じであるということ\n\t\t\t\t\t\t\tif (animal[0].length() == animal[1].length()) {\n\t\t\t\t\t\t\t\tT_Score += draw;\n\t\t\t\t\t\t\t\tH_Score += draw;\n\t\t\t\t\t\t\t} else if (animal[0].length() > animal[1].length()) {\n\t\t\t\t\t\t\t\tT_Score += win;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tH_Score += win;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}// in:forここまで\n\t\t\t}// out:forここまで\n\n\t\t\tif (judge_line == true) {\n\t\t\t\tSystem.out.println(T_Score + \" \" + H_Score);\n\t\t\t}\n\t\t}\n\t}\n}",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tString Alpha = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = \"\";\n\t\tString line2 = \"\";\n\t\tint T_Score = 0; // 太郎の得点\n\t\tint H_Score = 0; // 花子の得点\n\t\tint win = 3; // 勝者のプラス得点\n\t\tint draw = 1; // 引き分けの場合のプラス得点\n\t\tString[] animal = new String[2]; // カードに書かれた動物の組(太郎のカード、花子のカード)\n\t\tint T_Value = 0; // カードの強さ(太郎)\n\t\tint H_Value = 0; // カードの強さ(花子)\n\t\tint n = 0; // それぞれのカードの数(勝負回数)\n\t\tint compare_length = 0;\n\t\tboolean judge_n = true;\n\t\tboolean judge_line = true;\n\n\t\tline1 = sc.nextLine();\n\t\tn = Integer.parseInt(line1);\n\t\tif (n < 0 || n > 1000) {\n\t\t\tjudge_n = false;\n\t\t}\n\n\t\tif (judge_n == true) {\n\n\t\t\tout: for (int i = 0; i < n; i++) {\n\t\t\t\tline2 = sc.nextLine();\n\n\t\t\t\tif (line2.length() > 100) {\n\t\t\t\t\tjudge_line = false;\n\t\t\t\t\tbreak out;\n\t\t\t\t}\n\t\t\t\tanimal = line2.split(\" \");\n\t\t\t\tif (animal[0].length() > animal[1].length()) {\n\t\t\t\t\tcompare_length = animal[1].length();\n\t\t\t\t} else if (animal[1].length() > animal[0].length()) {\n\t\t\t\t\tcompare_length = animal[0].length();\n\t\t\t\t} else {\n\t\t\t\t\tcompare_length = animal[0].length(); // animal[1]でもよい\n\t\t\t\t}\n\t\t\t\tin: for (int k = 0; k < compare_length; k++) {\n\t\t\t\t\tT_Value = Alpha.indexOf(\"\" + animal[0].charAt(k));\n\t\t\t\t\tH_Value = Alpha.indexOf(\"\" + animal[1].charAt(k));\n\n\t\t\t\t\t// 始:各文字が小文字であるかのチェック\n\t\t\t\t\tif (T_Value == -1 || H_Value == -1) {\n\t\t\t\t\t\tjudge_line = false; // 大文字が存在すれば、条件を満たしていないのでループから出る\n\t\t\t\t\t\tbreak out;\n\t\t\t\t\t}\n\t\t\t\t\t// 終:各文字が小文字であるかのチェック\n\n\t\t\t\t\tif (T_Value != H_Value) {\n\t\t\t\t\t\tif (T_Value > H_Value) {\n\t\t\t\t\t\t\tT_Score += win;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tH_Score += win;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak in;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (k == compare_length - 1) { // kの値がcompare_length-1までき手いるということはそれまでの文字がすべて同じであるということ\n\t\t\t\t\t\t\tif (animal[0].length() == animal[1].length()) {\n\t\t\t\t\t\t\t\tT_Score += draw;\n\t\t\t\t\t\t\t\tH_Score += draw;\n\t\t\t\t\t\t\t} else if (animal[0].length() > animal[1].length()) {\n\t\t\t\t\t\t\t\tT_Score += win;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tH_Score += win;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}// in:forここまで\n\t\t\t}// out:forここまで\n\n\t\t\tif (judge_line == true) {\n\t\t\t\tSystem.out.println(T_Score + \" \" + H_Score);\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
String Alpha = "abcdefghijklmnopqrstuvwxyz";
Scanner sc = new Scanner(System.in);
String line1 = "";
String line2 = "";
int T_Score = 0; // 太郎の得点
int H_Score = 0; // 花子の得点
int win = 3; // 勝者のプラス得点
int draw = 1; // 引き分けの場合のプラス得点
String[] animal = new String[2]; // カードに書かれた動物の組(太郎のカード、花子のカード)
int T_Value = 0; // カードの強さ(太郎)
int H_Value = 0; // カードの強さ(花子)
int n = 0; // それぞれのカードの数(勝負回数)
int compare_length = 0;
boolean judge_n = true;
boolean judge_line = true;
line1 = sc.nextLine();
n = Integer.parseInt(line1);
if (n < 0 || n > 1000) {
judge_n = false;
}
if (judge_n == true) {
out: for (int i = 0; i < n; i++) {
line2 = sc.nextLine();
if (line2.length() > 100) {
judge_line = false;
break out;
}
animal = line2.split(" ");
if (animal[0].length() > animal[1].length()) {
compare_length = animal[1].length();
} else if (animal[1].length() > animal[0].length()) {
compare_length = animal[0].length();
} else {
compare_length = animal[0].length(); // animal[1]でもよい
}
in: for (int k = 0; k < compare_length; k++) {
T_Value = Alpha.indexOf("" + animal[0].charAt(k));
H_Value = Alpha.indexOf("" + animal[1].charAt(k));
// 始:各文字が小文字であるかのチェック
if (T_Value == -1 || H_Value == -1) {
judge_line = false; // 大文字が存在すれば、条件を満たしていないのでループから出る
break out;
}
// 終:各文字が小文字であるかのチェック
if (T_Value != H_Value) {
if (T_Value > H_Value) {
T_Score += win;
} else {
H_Score += win;
}
break in;
} else {
if (k == compare_length - 1) { // kの値がcompare_length-1までき手いるということはそれまでの文字がすべて同じであるということ
if (animal[0].length() == animal[1].length()) {
T_Score += draw;
H_Score += draw;
} else if (animal[0].length() > animal[1].length()) {
T_Score += win;
} else {
H_Score += win;
}
}
}
}// in:forここまで
}// out:forここまで
if (judge_line == true) {
System.out.println(T_Score + " " + H_Score);
}
}
}
}
|
[
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,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
14,
4,
18,
13,
13,
30,
0,
13,
17,
0,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
30,
0,
13,
17,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
103,
8
],
[
103,
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
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
26,
37
],
[
37,
38
],
[
38,
39
],
[
26,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
41,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
63,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
72,
74
],
[
58,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
75,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
11,
87
],
[
87,
88
],
[
88,
89
],
[
11,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
96,
96
],
[
96,
97
],
[
96,
98
],
[
96,
99
],
[
9,
100
],
[
100,
101
],
[
0,
102
],
[
102,
103
],
[
102,
104
]
]
| [
"import java.util.*;\nimport java.io.*;\n\n\npublic class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\tString turn = s.next();\n\t\tInteger tarou = 0;\n\t\tInteger hanako = 0;\n\t\tfor(int i = 0; i < Integer.parseInt(turn); i++){\n\t\t\tString tarou_card = s.next();\n\t\t\tString hanako_card = s.next();\n\t\t\tInteger result = tarou_card.compareTo(hanako_card);\n\t\t\tif(result == 0){\n\t\t\tif(tarou_card.equals(hanako_card)){\n\t\t\t\ttarou += 1;\n\t\t\t\thanako += 1;\n\t\t\t}\n\t\t\t}\n\t\t\telse if(result > 0){\n\t\t\t\ttarou += 3;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanako += 3;\n\t\t\t}\n\t\t}\n\t\ts.close();\n\t\tSystem.out.println(tarou + \" \" + hanako);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\tString turn = s.next();\n\t\tInteger tarou = 0;\n\t\tInteger hanako = 0;\n\t\tfor(int i = 0; i < Integer.parseInt(turn); i++){\n\t\t\tString tarou_card = s.next();\n\t\t\tString hanako_card = s.next();\n\t\t\tInteger result = tarou_card.compareTo(hanako_card);\n\t\t\tif(result == 0){\n\t\t\tif(tarou_card.equals(hanako_card)){\n\t\t\t\ttarou += 1;\n\t\t\t\thanako += 1;\n\t\t\t}\n\t\t\t}\n\t\t\telse if(result > 0){\n\t\t\t\ttarou += 3;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanako += 3;\n\t\t\t}\n\t\t}\n\t\ts.close();\n\t\tSystem.out.println(tarou + \" \" + hanako);\n\t}\n}",
"Main",
"/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\tString turn = s.next();\n\t\tInteger tarou = 0;\n\t\tInteger hanako = 0;\n\t\tfor(int i = 0; i < Integer.parseInt(turn); i++){\n\t\t\tString tarou_card = s.next();\n\t\t\tString hanako_card = s.next();\n\t\t\tInteger result = tarou_card.compareTo(hanako_card);\n\t\t\tif(result == 0){\n\t\t\tif(tarou_card.equals(hanako_card)){\n\t\t\t\ttarou += 1;\n\t\t\t\thanako += 1;\n\t\t\t}\n\t\t\t}\n\t\t\telse if(result > 0){\n\t\t\t\ttarou += 3;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanako += 3;\n\t\t\t}\n\t\t}\n\t\ts.close();\n\t\tSystem.out.println(tarou + \" \" + hanako);\n\t}",
"main",
"{\n\t\tScanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\tString turn = s.next();\n\t\tInteger tarou = 0;\n\t\tInteger hanako = 0;\n\t\tfor(int i = 0; i < Integer.parseInt(turn); i++){\n\t\t\tString tarou_card = s.next();\n\t\t\tString hanako_card = s.next();\n\t\t\tInteger result = tarou_card.compareTo(hanako_card);\n\t\t\tif(result == 0){\n\t\t\tif(tarou_card.equals(hanako_card)){\n\t\t\t\ttarou += 1;\n\t\t\t\thanako += 1;\n\t\t\t}\n\t\t\t}\n\t\t\telse if(result > 0){\n\t\t\t\ttarou += 3;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanako += 3;\n\t\t\t}\n\t\t}\n\t\ts.close();\n\t\tSystem.out.println(tarou + \" \" + hanako);\n\t}",
"Scanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));",
"s",
"new Scanner(new BufferedReader(new InputStreamReader(System.in)))",
"String turn = s.next();",
"turn",
"s.next()",
"s.next",
"s",
"Integer tarou = 0;",
"tarou",
"0",
"Integer hanako = 0;",
"hanako",
"0",
"for(int i = 0; i < Integer.parseInt(turn); i++){\n\t\t\tString tarou_card = s.next();\n\t\t\tString hanako_card = s.next();\n\t\t\tInteger result = tarou_card.compareTo(hanako_card);\n\t\t\tif(result == 0){\n\t\t\tif(tarou_card.equals(hanako_card)){\n\t\t\t\ttarou += 1;\n\t\t\t\thanako += 1;\n\t\t\t}\n\t\t\t}\n\t\t\telse if(result > 0){\n\t\t\t\ttarou += 3;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanako += 3;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < Integer.parseInt(turn)",
"i",
"Integer.parseInt(turn)",
"Integer.parseInt",
"Integer",
"turn",
"i++",
"i++",
"i",
"{\n\t\t\tString tarou_card = s.next();\n\t\t\tString hanako_card = s.next();\n\t\t\tInteger result = tarou_card.compareTo(hanako_card);\n\t\t\tif(result == 0){\n\t\t\tif(tarou_card.equals(hanako_card)){\n\t\t\t\ttarou += 1;\n\t\t\t\thanako += 1;\n\t\t\t}\n\t\t\t}\n\t\t\telse if(result > 0){\n\t\t\t\ttarou += 3;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanako += 3;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString tarou_card = s.next();\n\t\t\tString hanako_card = s.next();\n\t\t\tInteger result = tarou_card.compareTo(hanako_card);\n\t\t\tif(result == 0){\n\t\t\tif(tarou_card.equals(hanako_card)){\n\t\t\t\ttarou += 1;\n\t\t\t\thanako += 1;\n\t\t\t}\n\t\t\t}\n\t\t\telse if(result > 0){\n\t\t\t\ttarou += 3;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanako += 3;\n\t\t\t}\n\t\t}",
"String tarou_card = s.next();",
"tarou_card",
"s.next()",
"s.next",
"s",
"String hanako_card = s.next();",
"hanako_card",
"s.next()",
"s.next",
"s",
"Integer result = tarou_card.compareTo(hanako_card);",
"result",
"tarou_card.compareTo(hanako_card)",
"tarou_card.compareTo",
"tarou_card",
"hanako_card",
"if(result == 0){\n\t\t\tif(tarou_card.equals(hanako_card)){\n\t\t\t\ttarou += 1;\n\t\t\t\thanako += 1;\n\t\t\t}\n\t\t\t}\n\t\t\telse if(result > 0){\n\t\t\t\ttarou += 3;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanako += 3;\n\t\t\t}",
"result == 0",
"result",
"0",
"{\n\t\t\tif(tarou_card.equals(hanako_card)){\n\t\t\t\ttarou += 1;\n\t\t\t\thanako += 1;\n\t\t\t}\n\t\t\t}",
"if(tarou_card.equals(hanako_card)){\n\t\t\t\ttarou += 1;\n\t\t\t\thanako += 1;\n\t\t\t}",
"tarou_card.equals(hanako_card)",
"tarou_card.equals",
"tarou_card",
"hanako_card",
"{\n\t\t\t\ttarou += 1;\n\t\t\t\thanako += 1;\n\t\t\t}",
"tarou += 1",
"tarou",
"1",
"hanako += 1",
"hanako",
"1",
"if(result > 0){\n\t\t\t\ttarou += 3;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanako += 3;\n\t\t\t}",
"result > 0",
"result",
"0",
"{\n\t\t\t\ttarou += 3;\n\t\t\t}",
"tarou += 3",
"tarou",
"3",
"{\n\t\t\t\thanako += 3;\n\t\t\t}",
"hanako += 3",
"hanako",
"3",
"s.close()",
"s.close",
"s",
"System.out.println(tarou + \" \" + hanako)",
"System.out.println",
"System.out",
"System",
"System.out",
"tarou + \" \" + hanako",
"tarou + \" \" + hanako",
"tarou",
"\" \"",
"hanako",
"String[] args",
"args",
"public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\tString turn = s.next();\n\t\tInteger tarou = 0;\n\t\tInteger hanako = 0;\n\t\tfor(int i = 0; i < Integer.parseInt(turn); i++){\n\t\t\tString tarou_card = s.next();\n\t\t\tString hanako_card = s.next();\n\t\t\tInteger result = tarou_card.compareTo(hanako_card);\n\t\t\tif(result == 0){\n\t\t\tif(tarou_card.equals(hanako_card)){\n\t\t\t\ttarou += 1;\n\t\t\t\thanako += 1;\n\t\t\t}\n\t\t\t}\n\t\t\telse if(result > 0){\n\t\t\t\ttarou += 3;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanako += 3;\n\t\t\t}\n\t\t}\n\t\ts.close();\n\t\tSystem.out.println(tarou + \" \" + hanako);\n\t}\n}",
"public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\tString turn = s.next();\n\t\tInteger tarou = 0;\n\t\tInteger hanako = 0;\n\t\tfor(int i = 0; i < Integer.parseInt(turn); i++){\n\t\t\tString tarou_card = s.next();\n\t\t\tString hanako_card = s.next();\n\t\t\tInteger result = tarou_card.compareTo(hanako_card);\n\t\t\tif(result == 0){\n\t\t\tif(tarou_card.equals(hanako_card)){\n\t\t\t\ttarou += 1;\n\t\t\t\thanako += 1;\n\t\t\t}\n\t\t\t}\n\t\t\telse if(result > 0){\n\t\t\t\ttarou += 3;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanako += 3;\n\t\t\t}\n\t\t}\n\t\ts.close();\n\t\tSystem.out.println(tarou + \" \" + hanako);\n\t}\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
Scanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
String turn = s.next();
Integer tarou = 0;
Integer hanako = 0;
for(int i = 0; i < Integer.parseInt(turn); i++){
String tarou_card = s.next();
String hanako_card = s.next();
Integer result = tarou_card.compareTo(hanako_card);
if(result == 0){
if(tarou_card.equals(hanako_card)){
tarou += 1;
hanako += 1;
}
}
else if(result > 0){
tarou += 3;
}
else{
hanako += 3;
}
}
s.close();
System.out.println(tarou + " " + hanako);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
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
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
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
],
[
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\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tint n = scan.nextInt();\n\t\tint tarop = 0;\n\t\tint hanap = 0;\n\n\t\tloop:\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString taroCard = scan.next();\n\t\t\tString hanaCard = scan.next();\n\n\t\t\tchar[] taroAr = taroCard.toCharArray();\n\t\t\tchar[] hanaAr = hanaCard.toCharArray();\n\n\t\t\tint taroL = taroAr.length;\n\t\t\tint hanaL = hanaAr.length;\n\n\t\t\tfor ( int j = 0; j < Math.min(taroL, hanaL); j++) {\n\t\t\t\tif (taroAr[j] > hanaAr[j]) {\n\t\t\t\t\ttarop += 3;\n\t\t\t\t\tcontinue loop;\n\t\t\t\t} else if (taroAr[j] < hanaAr[j]) {\n\t\t\t\t\thanap += 3;\n\t\t\t\t\tcontinue loop;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (taroL > hanaL) {\n\t\t\t\ttarop += 3;\n\t\t\t\tcontinue loop;\n\t\t\t} else if ( taroL < hanaL) {\n\t\t\t\thanap += 3;\n\t\t\t\tcontinue loop;\n\t\t\t} else {\n\t\t\t\ttarop += 1;\n\t\t\t\thanap += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tarop + \" \" + hanap);\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\tStringBuilder sb = new StringBuilder();\n\n\t\tint n = scan.nextInt();\n\t\tint tarop = 0;\n\t\tint hanap = 0;\n\n\t\tloop:\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString taroCard = scan.next();\n\t\t\tString hanaCard = scan.next();\n\n\t\t\tchar[] taroAr = taroCard.toCharArray();\n\t\t\tchar[] hanaAr = hanaCard.toCharArray();\n\n\t\t\tint taroL = taroAr.length;\n\t\t\tint hanaL = hanaAr.length;\n\n\t\t\tfor ( int j = 0; j < Math.min(taroL, hanaL); j++) {\n\t\t\t\tif (taroAr[j] > hanaAr[j]) {\n\t\t\t\t\ttarop += 3;\n\t\t\t\t\tcontinue loop;\n\t\t\t\t} else if (taroAr[j] < hanaAr[j]) {\n\t\t\t\t\thanap += 3;\n\t\t\t\t\tcontinue loop;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (taroL > hanaL) {\n\t\t\t\ttarop += 3;\n\t\t\t\tcontinue loop;\n\t\t\t} else if ( taroL < hanaL) {\n\t\t\t\thanap += 3;\n\t\t\t\tcontinue loop;\n\t\t\t} else {\n\t\t\t\ttarop += 1;\n\t\t\t\thanap += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tarop + \" \" + hanap);\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\tStringBuilder sb = new StringBuilder();\n\n\t\tint n = scan.nextInt();\n\t\tint tarop = 0;\n\t\tint hanap = 0;\n\n\t\tloop:\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString taroCard = scan.next();\n\t\t\tString hanaCard = scan.next();\n\n\t\t\tchar[] taroAr = taroCard.toCharArray();\n\t\t\tchar[] hanaAr = hanaCard.toCharArray();\n\n\t\t\tint taroL = taroAr.length;\n\t\t\tint hanaL = hanaAr.length;\n\n\t\t\tfor ( int j = 0; j < Math.min(taroL, hanaL); j++) {\n\t\t\t\tif (taroAr[j] > hanaAr[j]) {\n\t\t\t\t\ttarop += 3;\n\t\t\t\t\tcontinue loop;\n\t\t\t\t} else if (taroAr[j] < hanaAr[j]) {\n\t\t\t\t\thanap += 3;\n\t\t\t\t\tcontinue loop;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (taroL > hanaL) {\n\t\t\t\ttarop += 3;\n\t\t\t\tcontinue loop;\n\t\t\t} else if ( taroL < hanaL) {\n\t\t\t\thanap += 3;\n\t\t\t\tcontinue loop;\n\t\t\t} else {\n\t\t\t\ttarop += 1;\n\t\t\t\thanap += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tarop + \" \" + hanap);\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tint n = scan.nextInt();\n\t\tint tarop = 0;\n\t\tint hanap = 0;\n\n\t\tloop:\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString taroCard = scan.next();\n\t\t\tString hanaCard = scan.next();\n\n\t\t\tchar[] taroAr = taroCard.toCharArray();\n\t\t\tchar[] hanaAr = hanaCard.toCharArray();\n\n\t\t\tint taroL = taroAr.length;\n\t\t\tint hanaL = hanaAr.length;\n\n\t\t\tfor ( int j = 0; j < Math.min(taroL, hanaL); j++) {\n\t\t\t\tif (taroAr[j] > hanaAr[j]) {\n\t\t\t\t\ttarop += 3;\n\t\t\t\t\tcontinue loop;\n\t\t\t\t} else if (taroAr[j] < hanaAr[j]) {\n\t\t\t\t\thanap += 3;\n\t\t\t\t\tcontinue loop;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (taroL > hanaL) {\n\t\t\t\ttarop += 3;\n\t\t\t\tcontinue loop;\n\t\t\t} else if ( taroL < hanaL) {\n\t\t\t\thanap += 3;\n\t\t\t\tcontinue loop;\n\t\t\t} else {\n\t\t\t\ttarop += 1;\n\t\t\t\thanap += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tarop + \" \" + hanap);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int tarop = 0;",
"tarop",
"0",
"int hanap = 0;",
"hanap",
"0",
"System.out.println(tarop + \" \" + hanap)",
"System.out.println",
"System.out",
"System",
"System.out",
"tarop + \" \" + hanap",
"tarop + \" \" + hanap",
"tarop",
"\" \"",
"hanap",
"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\tStringBuilder sb = new StringBuilder();\n\n\t\tint n = scan.nextInt();\n\t\tint tarop = 0;\n\t\tint hanap = 0;\n\n\t\tloop:\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString taroCard = scan.next();\n\t\t\tString hanaCard = scan.next();\n\n\t\t\tchar[] taroAr = taroCard.toCharArray();\n\t\t\tchar[] hanaAr = hanaCard.toCharArray();\n\n\t\t\tint taroL = taroAr.length;\n\t\t\tint hanaL = hanaAr.length;\n\n\t\t\tfor ( int j = 0; j < Math.min(taroL, hanaL); j++) {\n\t\t\t\tif (taroAr[j] > hanaAr[j]) {\n\t\t\t\t\ttarop += 3;\n\t\t\t\t\tcontinue loop;\n\t\t\t\t} else if (taroAr[j] < hanaAr[j]) {\n\t\t\t\t\thanap += 3;\n\t\t\t\t\tcontinue loop;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (taroL > hanaL) {\n\t\t\t\ttarop += 3;\n\t\t\t\tcontinue loop;\n\t\t\t} else if ( taroL < hanaL) {\n\t\t\t\thanap += 3;\n\t\t\t\tcontinue loop;\n\t\t\t} else {\n\t\t\t\ttarop += 1;\n\t\t\t\thanap += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tarop + \" \" + hanap);\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\tStringBuilder sb = new StringBuilder();\n\n\t\tint n = scan.nextInt();\n\t\tint tarop = 0;\n\t\tint hanap = 0;\n\n\t\tloop:\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString taroCard = scan.next();\n\t\t\tString hanaCard = scan.next();\n\n\t\t\tchar[] taroAr = taroCard.toCharArray();\n\t\t\tchar[] hanaAr = hanaCard.toCharArray();\n\n\t\t\tint taroL = taroAr.length;\n\t\t\tint hanaL = hanaAr.length;\n\n\t\t\tfor ( int j = 0; j < Math.min(taroL, hanaL); j++) {\n\t\t\t\tif (taroAr[j] > hanaAr[j]) {\n\t\t\t\t\ttarop += 3;\n\t\t\t\t\tcontinue loop;\n\t\t\t\t} else if (taroAr[j] < hanaAr[j]) {\n\t\t\t\t\thanap += 3;\n\t\t\t\t\tcontinue loop;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (taroL > hanaL) {\n\t\t\t\ttarop += 3;\n\t\t\t\tcontinue loop;\n\t\t\t} else if ( taroL < hanaL) {\n\t\t\t\thanap += 3;\n\t\t\t\tcontinue loop;\n\t\t\t} else {\n\t\t\t\ttarop += 1;\n\t\t\t\thanap += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tarop + \" \" + hanap);\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);
StringBuilder sb = new StringBuilder();
int n = scan.nextInt();
int tarop = 0;
int hanap = 0;
loop:
for (int i = 0; i < n; i++) {
String taroCard = scan.next();
String hanaCard = scan.next();
char[] taroAr = taroCard.toCharArray();
char[] hanaAr = hanaCard.toCharArray();
int taroL = taroAr.length;
int hanaL = hanaAr.length;
for ( int j = 0; j < Math.min(taroL, hanaL); j++) {
if (taroAr[j] > hanaAr[j]) {
tarop += 3;
continue loop;
} else if (taroAr[j] < hanaAr[j]) {
hanap += 3;
continue loop;
}
}
if (taroL > hanaL) {
tarop += 3;
continue loop;
} else if ( taroL < hanaL) {
hanap += 3;
continue loop;
} else {
tarop += 1;
hanap += 1;
}
}
System.out.println(tarop + " " + hanap);
}
} |
[
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
14,
2,
13,
17,
0,
13,
17,
14,
2,
13,
17,
0,
13,
17,
30,
40,
13,
40,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
87,
8
],
[
87,
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
],
[
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
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
38,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
59,
61
],
[
55,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
66,
68
],
[
62,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
72,
73
],
[
11,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
80,
80
],
[
80,
81
],
[
80,
82
],
[
80,
83
],
[
9,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
]
| [
"import java.util.*;\nimport java.io.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int t=0;\n int h=0;\n for(int i=0;i<n;i++){\n String Taro=sc.next();\n String Hanako=sc.next();\n int result=Taro.compareTo(Hanako);\n if(result>0) t+=3;\n else if(result<0) h+=3;\n else{\n t++;\n h++;\n }\n }\n System.out.println(t+\" \"+h);\n }\n}\n",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int t=0;\n int h=0;\n for(int i=0;i<n;i++){\n String Taro=sc.next();\n String Hanako=sc.next();\n int result=Taro.compareTo(Hanako);\n if(result>0) t+=3;\n else if(result<0) h+=3;\n else{\n t++;\n h++;\n }\n }\n System.out.println(t+\" \"+h);\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int t=0;\n int h=0;\n for(int i=0;i<n;i++){\n String Taro=sc.next();\n String Hanako=sc.next();\n int result=Taro.compareTo(Hanako);\n if(result>0) t+=3;\n else if(result<0) h+=3;\n else{\n t++;\n h++;\n }\n }\n System.out.println(t+\" \"+h);\n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int t=0;\n int h=0;\n for(int i=0;i<n;i++){\n String Taro=sc.next();\n String Hanako=sc.next();\n int result=Taro.compareTo(Hanako);\n if(result>0) t+=3;\n else if(result<0) h+=3;\n else{\n t++;\n h++;\n }\n }\n System.out.println(t+\" \"+h);\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t=0;",
"t",
"0",
"int h=0;",
"h",
"0",
"for(int i=0;i<n;i++){\n String Taro=sc.next();\n String Hanako=sc.next();\n int result=Taro.compareTo(Hanako);\n if(result>0) t+=3;\n else if(result<0) h+=3;\n else{\n t++;\n h++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String Taro=sc.next();\n String Hanako=sc.next();\n int result=Taro.compareTo(Hanako);\n if(result>0) t+=3;\n else if(result<0) h+=3;\n else{\n t++;\n h++;\n }\n }",
"{\n String Taro=sc.next();\n String Hanako=sc.next();\n int result=Taro.compareTo(Hanako);\n if(result>0) t+=3;\n else if(result<0) h+=3;\n else{\n t++;\n h++;\n }\n }",
"String Taro=sc.next();",
"Taro",
"sc.next()",
"sc.next",
"sc",
"String Hanako=sc.next();",
"Hanako",
"sc.next()",
"sc.next",
"sc",
"int result=Taro.compareTo(Hanako);",
"result",
"Taro.compareTo(Hanako)",
"Taro.compareTo",
"Taro",
"Hanako",
"if(result>0) t+=3;\n else if(result<0) h+=3;\n else{\n t++;\n h++;\n }",
"result>0",
"result",
"0",
"t+=3",
"t",
"3",
"if(result<0) h+=3;\n else{\n t++;\n h++;\n }",
"result<0",
"result",
"0",
"h+=3",
"h",
"3",
"{\n t++;\n h++;\n }",
"t++",
"t",
"h++",
"h",
"System.out.println(t+\" \"+h)",
"System.out.println",
"System.out",
"System",
"System.out",
"t+\" \"+h",
"t+\" \"+h",
"t",
"\" \"",
"h",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int t=0;\n int h=0;\n for(int i=0;i<n;i++){\n String Taro=sc.next();\n String Hanako=sc.next();\n int result=Taro.compareTo(Hanako);\n if(result>0) t+=3;\n else if(result<0) h+=3;\n else{\n t++;\n h++;\n }\n }\n System.out.println(t+\" \"+h);\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int t=0;\n int h=0;\n for(int i=0;i<n;i++){\n String Taro=sc.next();\n String Hanako=sc.next();\n int result=Taro.compareTo(Hanako);\n if(result>0) t+=3;\n else if(result<0) h+=3;\n else{\n t++;\n h++;\n }\n }\n System.out.println(t+\" \"+h);\n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int t=0;
int h=0;
for(int i=0;i<n;i++){
String Taro=sc.next();
String Hanako=sc.next();
int result=Taro.compareTo(Hanako);
if(result>0) t+=3;
else if(result<0) h+=3;
else{
t++;
h++;
}
}
System.out.println(t+" "+h);
}
}
|
[
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
18,
13,
17,
41,
13,
18,
13,
17,
41,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
40,
13,
40,
13,
14,
2,
13,
17,
30,
0,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
4,
18,
13,
17,
13,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
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
],
[
43,
44
],
[
44,
45
],
[
41,
46
],
[
38,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
38,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
38,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
38,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
70,
71
],
[
63,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
72,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
8,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
89,
93
],
[
89,
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\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tin.nextLine();\n\n\t\tint pt = 0;\n\t\tint ph = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] strs = in.nextLine().split(\" \");\n\t\t\tString strTaro = strs[0];\n\t\t\tString strHanako = strs[1];\n\t\t\tint diff = strTaro.compareTo(strHanako);\n\t\t\tif (diff == 0) {\n\t\t\t\tpt++;\n\t\t\t\tph++;\n\t\t\t} else if (diff > 0) {\n\t\t\t\t// win taro\n\t\t\t\tpt += 3;\n\t\t\t} else {\n\t\t\t\tph += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(String.format(\"%d %d\\n\", pt, ph));\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tin.nextLine();\n\n\t\tint pt = 0;\n\t\tint ph = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] strs = in.nextLine().split(\" \");\n\t\t\tString strTaro = strs[0];\n\t\t\tString strHanako = strs[1];\n\t\t\tint diff = strTaro.compareTo(strHanako);\n\t\t\tif (diff == 0) {\n\t\t\t\tpt++;\n\t\t\t\tph++;\n\t\t\t} else if (diff > 0) {\n\t\t\t\t// win taro\n\t\t\t\tpt += 3;\n\t\t\t} else {\n\t\t\t\tph += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(String.format(\"%d %d\\n\", pt, ph));\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tin.nextLine();\n\n\t\tint pt = 0;\n\t\tint ph = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] strs = in.nextLine().split(\" \");\n\t\t\tString strTaro = strs[0];\n\t\t\tString strHanako = strs[1];\n\t\t\tint diff = strTaro.compareTo(strHanako);\n\t\t\tif (diff == 0) {\n\t\t\t\tpt++;\n\t\t\t\tph++;\n\t\t\t} else if (diff > 0) {\n\t\t\t\t// win taro\n\t\t\t\tpt += 3;\n\t\t\t} else {\n\t\t\t\tph += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(String.format(\"%d %d\\n\", pt, ph));\n\t}",
"main",
"{\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tin.nextLine();\n\n\t\tint pt = 0;\n\t\tint ph = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] strs = in.nextLine().split(\" \");\n\t\t\tString strTaro = strs[0];\n\t\t\tString strHanako = strs[1];\n\t\t\tint diff = strTaro.compareTo(strHanako);\n\t\t\tif (diff == 0) {\n\t\t\t\tpt++;\n\t\t\t\tph++;\n\t\t\t} else if (diff > 0) {\n\t\t\t\t// win taro\n\t\t\t\tpt += 3;\n\t\t\t} else {\n\t\t\t\tph += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(String.format(\"%d %d\\n\", pt, ph));\n\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"in.nextLine()",
"in.nextLine",
"in",
"int pt = 0;",
"pt",
"0",
"int ph = 0;",
"ph",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\tString[] strs = in.nextLine().split(\" \");\n\t\t\tString strTaro = strs[0];\n\t\t\tString strHanako = strs[1];\n\t\t\tint diff = strTaro.compareTo(strHanako);\n\t\t\tif (diff == 0) {\n\t\t\t\tpt++;\n\t\t\t\tph++;\n\t\t\t} else if (diff > 0) {\n\t\t\t\t// win taro\n\t\t\t\tpt += 3;\n\t\t\t} else {\n\t\t\t\tph += 3;\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[] strs = in.nextLine().split(\" \");\n\t\t\tString strTaro = strs[0];\n\t\t\tString strHanako = strs[1];\n\t\t\tint diff = strTaro.compareTo(strHanako);\n\t\t\tif (diff == 0) {\n\t\t\t\tpt++;\n\t\t\t\tph++;\n\t\t\t} else if (diff > 0) {\n\t\t\t\t// win taro\n\t\t\t\tpt += 3;\n\t\t\t} else {\n\t\t\t\tph += 3;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString[] strs = in.nextLine().split(\" \");\n\t\t\tString strTaro = strs[0];\n\t\t\tString strHanako = strs[1];\n\t\t\tint diff = strTaro.compareTo(strHanako);\n\t\t\tif (diff == 0) {\n\t\t\t\tpt++;\n\t\t\t\tph++;\n\t\t\t} else if (diff > 0) {\n\t\t\t\t// win taro\n\t\t\t\tpt += 3;\n\t\t\t} else {\n\t\t\t\tph += 3;\n\t\t\t}\n\t\t}",
"String[] strs = in.nextLine().split(\" \");",
"strs",
"in.nextLine().split(\" \")",
"in.nextLine().split",
"in.nextLine()",
"in.nextLine",
"in",
"\" \"",
"String strTaro = strs[0];",
"strTaro",
"strs[0]",
"strs",
"0",
"String strHanako = strs[1];",
"strHanako",
"strs[1]",
"strs",
"1",
"int diff = strTaro.compareTo(strHanako);",
"diff",
"strTaro.compareTo(strHanako)",
"strTaro.compareTo",
"strTaro",
"strHanako",
"if (diff == 0) {\n\t\t\t\tpt++;\n\t\t\t\tph++;\n\t\t\t} else if (diff > 0) {\n\t\t\t\t// win taro\n\t\t\t\tpt += 3;\n\t\t\t} else {\n\t\t\t\tph += 3;\n\t\t\t}",
"diff == 0",
"diff",
"0",
"{\n\t\t\t\tpt++;\n\t\t\t\tph++;\n\t\t\t}",
"pt++",
"pt",
"ph++",
"ph",
"if (diff > 0) {\n\t\t\t\t// win taro\n\t\t\t\tpt += 3;\n\t\t\t} else {\n\t\t\t\tph += 3;\n\t\t\t}",
"diff > 0",
"diff",
"0",
"{\n\t\t\t\t// win taro\n\t\t\t\tpt += 3;\n\t\t\t}",
"pt += 3",
"pt",
"3",
"{\n\t\t\t\tph += 3;\n\t\t\t}",
"ph += 3",
"ph",
"3",
"System.out.printf(String.format(\"%d %d\\n\", pt, ph))",
"System.out.printf",
"System.out",
"System",
"System.out",
"String.format(\"%d %d\\n\", pt, ph)",
"String.format",
"String",
"\"%d %d\\n\"",
"pt",
"ph",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tin.nextLine();\n\n\t\tint pt = 0;\n\t\tint ph = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] strs = in.nextLine().split(\" \");\n\t\t\tString strTaro = strs[0];\n\t\t\tString strHanako = strs[1];\n\t\t\tint diff = strTaro.compareTo(strHanako);\n\t\t\tif (diff == 0) {\n\t\t\t\tpt++;\n\t\t\t\tph++;\n\t\t\t} else if (diff > 0) {\n\t\t\t\t// win taro\n\t\t\t\tpt += 3;\n\t\t\t} else {\n\t\t\t\tph += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(String.format(\"%d %d\\n\", pt, ph));\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tin.nextLine();\n\n\t\tint pt = 0;\n\t\tint ph = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] strs = in.nextLine().split(\" \");\n\t\t\tString strTaro = strs[0];\n\t\t\tString strHanako = strs[1];\n\t\t\tint diff = strTaro.compareTo(strHanako);\n\t\t\tif (diff == 0) {\n\t\t\t\tpt++;\n\t\t\t\tph++;\n\t\t\t} else if (diff > 0) {\n\t\t\t\t// win taro\n\t\t\t\tpt += 3;\n\t\t\t} else {\n\t\t\t\tph += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(String.format(\"%d %d\\n\", pt, ph));\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
in.nextLine();
int pt = 0;
int ph = 0;
for (int i = 0; i < n; i++) {
String[] strs = in.nextLine().split(" ");
String strTaro = strs[0];
String strHanako = strs[1];
int diff = strTaro.compareTo(strHanako);
if (diff == 0) {
pt++;
ph++;
} else if (diff > 0) {
// win taro
pt += 3;
} else {
ph += 3;
}
}
System.out.printf(String.format("%d %d\n", pt, ph));
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
0,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
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
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
35,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
52,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
68,
70
],
[
60,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
8,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
85,
85
],
[
85,
86
],
[
85,
87
],
[
85,
88
],
[
6,
89
],
[
89,
90
],
[
0,
91
],
[
91,
92
],
[
91,
93
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int turnNum = sc.nextInt();\n int tPoint = 0;\n int hPoint = 0;\n\n for(int i = 0; i < turnNum; i++) {\n \tString tStr = sc.next();\n \tString hStr = sc.next();\n\n \tint check = tStr.compareTo(hStr);\n \tif(check < 0) {\n \t\thPoint += 3;\n \t} else if(check == 0) {\n \t\ttPoint += 1;\n \t\thPoint += 1;\n \t} else if(check > 0) {\n \t\ttPoint += 3;\n \t}\n\n }\n\n System.out.println(tPoint + \" \" + hPoint);\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 turnNum = sc.nextInt();\n int tPoint = 0;\n int hPoint = 0;\n\n for(int i = 0; i < turnNum; i++) {\n \tString tStr = sc.next();\n \tString hStr = sc.next();\n\n \tint check = tStr.compareTo(hStr);\n \tif(check < 0) {\n \t\thPoint += 3;\n \t} else if(check == 0) {\n \t\ttPoint += 1;\n \t\thPoint += 1;\n \t} else if(check > 0) {\n \t\ttPoint += 3;\n \t}\n\n }\n\n System.out.println(tPoint + \" \" + hPoint);\n\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int turnNum = sc.nextInt();\n int tPoint = 0;\n int hPoint = 0;\n\n for(int i = 0; i < turnNum; i++) {\n \tString tStr = sc.next();\n \tString hStr = sc.next();\n\n \tint check = tStr.compareTo(hStr);\n \tif(check < 0) {\n \t\thPoint += 3;\n \t} else if(check == 0) {\n \t\ttPoint += 1;\n \t\thPoint += 1;\n \t} else if(check > 0) {\n \t\ttPoint += 3;\n \t}\n\n }\n\n System.out.println(tPoint + \" \" + hPoint);\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int turnNum = sc.nextInt();\n int tPoint = 0;\n int hPoint = 0;\n\n for(int i = 0; i < turnNum; i++) {\n \tString tStr = sc.next();\n \tString hStr = sc.next();\n\n \tint check = tStr.compareTo(hStr);\n \tif(check < 0) {\n \t\thPoint += 3;\n \t} else if(check == 0) {\n \t\ttPoint += 1;\n \t\thPoint += 1;\n \t} else if(check > 0) {\n \t\ttPoint += 3;\n \t}\n\n }\n\n System.out.println(tPoint + \" \" + hPoint);\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int turnNum = sc.nextInt();",
"turnNum",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int tPoint = 0;",
"tPoint",
"0",
"int hPoint = 0;",
"hPoint",
"0",
"for(int i = 0; i < turnNum; i++) {\n \tString tStr = sc.next();\n \tString hStr = sc.next();\n\n \tint check = tStr.compareTo(hStr);\n \tif(check < 0) {\n \t\thPoint += 3;\n \t} else if(check == 0) {\n \t\ttPoint += 1;\n \t\thPoint += 1;\n \t} else if(check > 0) {\n \t\ttPoint += 3;\n \t}\n\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < turnNum",
"i",
"turnNum",
"i++",
"i++",
"i",
"{\n \tString tStr = sc.next();\n \tString hStr = sc.next();\n\n \tint check = tStr.compareTo(hStr);\n \tif(check < 0) {\n \t\thPoint += 3;\n \t} else if(check == 0) {\n \t\ttPoint += 1;\n \t\thPoint += 1;\n \t} else if(check > 0) {\n \t\ttPoint += 3;\n \t}\n\n }",
"{\n \tString tStr = sc.next();\n \tString hStr = sc.next();\n\n \tint check = tStr.compareTo(hStr);\n \tif(check < 0) {\n \t\thPoint += 3;\n \t} else if(check == 0) {\n \t\ttPoint += 1;\n \t\thPoint += 1;\n \t} else if(check > 0) {\n \t\ttPoint += 3;\n \t}\n\n }",
"String tStr = sc.next();",
"tStr",
"sc.next()",
"sc.next",
"sc",
"String hStr = sc.next();",
"hStr",
"sc.next()",
"sc.next",
"sc",
"int check = tStr.compareTo(hStr);",
"check",
"tStr.compareTo(hStr)",
"tStr.compareTo",
"tStr",
"hStr",
"if(check < 0) {\n \t\thPoint += 3;\n \t} else if(check == 0) {\n \t\ttPoint += 1;\n \t\thPoint += 1;\n \t} else if(check > 0) {\n \t\ttPoint += 3;\n \t}",
"check < 0",
"check",
"0",
"{\n \t\thPoint += 3;\n \t}",
"hPoint += 3",
"hPoint",
"3",
"if(check == 0) {\n \t\ttPoint += 1;\n \t\thPoint += 1;\n \t} else if(check > 0) {\n \t\ttPoint += 3;\n \t}",
"check == 0",
"check",
"0",
"{\n \t\ttPoint += 1;\n \t\thPoint += 1;\n \t}",
"tPoint += 1",
"tPoint",
"1",
"hPoint += 1",
"hPoint",
"1",
"if(check > 0) {\n \t\ttPoint += 3;\n \t}",
"check > 0",
"check",
"0",
"{\n \t\ttPoint += 3;\n \t}",
"tPoint += 3",
"tPoint",
"3",
"System.out.println(tPoint + \" \" + hPoint)",
"System.out.println",
"System.out",
"System",
"System.out",
"tPoint + \" \" + hPoint",
"tPoint + \" \" + hPoint",
"tPoint",
"\" \"",
"hPoint",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int turnNum = sc.nextInt();\n int tPoint = 0;\n int hPoint = 0;\n\n for(int i = 0; i < turnNum; i++) {\n \tString tStr = sc.next();\n \tString hStr = sc.next();\n\n \tint check = tStr.compareTo(hStr);\n \tif(check < 0) {\n \t\thPoint += 3;\n \t} else if(check == 0) {\n \t\ttPoint += 1;\n \t\thPoint += 1;\n \t} else if(check > 0) {\n \t\ttPoint += 3;\n \t}\n\n }\n\n System.out.println(tPoint + \" \" + hPoint);\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int turnNum = sc.nextInt();\n int tPoint = 0;\n int hPoint = 0;\n\n for(int i = 0; i < turnNum; i++) {\n \tString tStr = sc.next();\n \tString hStr = sc.next();\n\n \tint check = tStr.compareTo(hStr);\n \tif(check < 0) {\n \t\thPoint += 3;\n \t} else if(check == 0) {\n \t\ttPoint += 1;\n \t\thPoint += 1;\n \t} else if(check > 0) {\n \t\ttPoint += 3;\n \t}\n\n }\n\n System.out.println(tPoint + \" \" + hPoint);\n\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int turnNum = sc.nextInt();
int tPoint = 0;
int hPoint = 0;
for(int i = 0; i < turnNum; i++) {
String tStr = sc.next();
String hStr = sc.next();
int check = tStr.compareTo(hStr);
if(check < 0) {
hPoint += 3;
} else if(check == 0) {
tPoint += 1;
hPoint += 1;
} else if(check > 0) {
tPoint += 3;
}
}
System.out.println(tPoint + " " + hPoint);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
30,
40,
13,
40,
13,
4,
18,
18,
13,
13,
17,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
84,
5
],
[
84,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
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
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
46,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
46,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
58,
63
],
[
57,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
57,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
71,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
73,
79
],
[
73,
80
],
[
6,
81
],
[
81,
82
],
[
0,
83
],
[
83,
84
],
[
83,
85
]
]
| [
"import java.util.*;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint T = 0;\n\t\tint H = 0;\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString sT = scan.next();\n\t\t\tString sH = scan.next();\n\t\t\tif(sT.compareTo(sH) < 0){\n\t\t\t\tH += 3;\n\t\t\t} else if(sT.compareTo(sH) > 0){\n\t\t\t\tT += 3;\n\t\t\t} else{\n\t\t\t\tT++;\n\t\t\t\tH++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\", T, H);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint T = 0;\n\t\tint H = 0;\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString sT = scan.next();\n\t\t\tString sH = scan.next();\n\t\t\tif(sT.compareTo(sH) < 0){\n\t\t\t\tH += 3;\n\t\t\t} else if(sT.compareTo(sH) > 0){\n\t\t\t\tT += 3;\n\t\t\t} else{\n\t\t\t\tT++;\n\t\t\t\tH++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\", T, H);\n\t}\n}",
"Main",
"public static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint T = 0;\n\t\tint H = 0;\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString sT = scan.next();\n\t\t\tString sH = scan.next();\n\t\t\tif(sT.compareTo(sH) < 0){\n\t\t\t\tH += 3;\n\t\t\t} else if(sT.compareTo(sH) > 0){\n\t\t\t\tT += 3;\n\t\t\t} else{\n\t\t\t\tT++;\n\t\t\t\tH++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\", T, H);\n\t}",
"main",
"{\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint T = 0;\n\t\tint H = 0;\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString sT = scan.next();\n\t\t\tString sH = scan.next();\n\t\t\tif(sT.compareTo(sH) < 0){\n\t\t\t\tH += 3;\n\t\t\t} else if(sT.compareTo(sH) > 0){\n\t\t\t\tT += 3;\n\t\t\t} else{\n\t\t\t\tT++;\n\t\t\t\tH++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\", T, H);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int T = 0;",
"T",
"0",
"int H = 0;",
"H",
"0",
"for(int i = 0; i < n; i++){\n\t\t\tString sT = scan.next();\n\t\t\tString sH = scan.next();\n\t\t\tif(sT.compareTo(sH) < 0){\n\t\t\t\tH += 3;\n\t\t\t} else if(sT.compareTo(sH) > 0){\n\t\t\t\tT += 3;\n\t\t\t} else{\n\t\t\t\tT++;\n\t\t\t\tH++;\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 sT = scan.next();\n\t\t\tString sH = scan.next();\n\t\t\tif(sT.compareTo(sH) < 0){\n\t\t\t\tH += 3;\n\t\t\t} else if(sT.compareTo(sH) > 0){\n\t\t\t\tT += 3;\n\t\t\t} else{\n\t\t\t\tT++;\n\t\t\t\tH++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString sT = scan.next();\n\t\t\tString sH = scan.next();\n\t\t\tif(sT.compareTo(sH) < 0){\n\t\t\t\tH += 3;\n\t\t\t} else if(sT.compareTo(sH) > 0){\n\t\t\t\tT += 3;\n\t\t\t} else{\n\t\t\t\tT++;\n\t\t\t\tH++;\n\t\t\t}\n\t\t}",
"String sT = scan.next();",
"sT",
"scan.next()",
"scan.next",
"scan",
"String sH = scan.next();",
"sH",
"scan.next()",
"scan.next",
"scan",
"if(sT.compareTo(sH) < 0){\n\t\t\t\tH += 3;\n\t\t\t} else if(sT.compareTo(sH) > 0){\n\t\t\t\tT += 3;\n\t\t\t} else{\n\t\t\t\tT++;\n\t\t\t\tH++;\n\t\t\t}",
"sT.compareTo(sH) < 0",
"sT.compareTo(sH)",
"sT.compareTo",
"sT",
"sH",
"0",
"{\n\t\t\t\tH += 3;\n\t\t\t}",
"H += 3",
"H",
"3",
"if(sT.compareTo(sH) > 0){\n\t\t\t\tT += 3;\n\t\t\t} else{\n\t\t\t\tT++;\n\t\t\t\tH++;\n\t\t\t}",
"sT.compareTo(sH) > 0",
"sT.compareTo(sH)",
"sT.compareTo",
"sT",
"sH",
"0",
"{\n\t\t\t\tT += 3;\n\t\t\t}",
"T += 3",
"T",
"3",
"{\n\t\t\t\tT++;\n\t\t\t\tH++;\n\t\t\t}",
"T++",
"T",
"H++",
"H",
"System.out.printf(\"%d %d\\n\", T, H)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d %d\\n\"",
"T",
"H",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint T = 0;\n\t\tint H = 0;\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString sT = scan.next();\n\t\t\tString sH = scan.next();\n\t\t\tif(sT.compareTo(sH) < 0){\n\t\t\t\tH += 3;\n\t\t\t} else if(sT.compareTo(sH) > 0){\n\t\t\t\tT += 3;\n\t\t\t} else{\n\t\t\t\tT++;\n\t\t\t\tH++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\", T, H);\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint T = 0;\n\t\tint H = 0;\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString sT = scan.next();\n\t\t\tString sH = scan.next();\n\t\t\tif(sT.compareTo(sH) < 0){\n\t\t\t\tH += 3;\n\t\t\t} else if(sT.compareTo(sH) > 0){\n\t\t\t\tT += 3;\n\t\t\t} else{\n\t\t\t\tT++;\n\t\t\t\tH++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\", T, H);\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int T = 0;
int H = 0;
for(int i = 0; i < n; i++){
String sT = scan.next();
String sH = scan.next();
if(sT.compareTo(sH) < 0){
H += 3;
} else if(sT.compareTo(sH) > 0){
T += 3;
} else{
T++;
H++;
}
}
System.out.printf("%d %d\n", T, H);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
41,
13,
17,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
4,
18,
13,
4,
18,
13,
42,
4,
18,
13,
30,
41,
13,
4,
18,
4,
18,
13,
17,
14,
2,
2,
2,
13,
13,
2,
4,
18,
18,
13,
17,
13,
2,
4,
18,
18,
13,
17,
13,
30,
4,
18,
18,
13,
13,
17,
41,
13,
4,
18,
18,
13,
17,
18,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
14,
2,
13,
17,
30,
40,
13,
40,
13,
14,
2,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
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
],
[
134,
12
],
[
12,
13
],
[
12,
14
],
[
134,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
21,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
35,
36
],
[
35,
37
],
[
31,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
44,
45
],
[
31,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
46,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
53,
58
],
[
50,
59
],
[
59,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
65,
71
],
[
61,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
72,
78
],
[
59,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
50,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
50,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
50,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
111,
112
],
[
50,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
31,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
127,
127
],
[
127,
128
],
[
127,
129
],
[
127,
130
],
[
15,
131
],
[
131,
132
],
[
0,
133
],
[
133,
134
],
[
133,
135
]
]
| [
"import java.util.NoSuchElementException;\nimport java.util.Scanner;\n\npublic class Main {\n private static int N = 1000;\n private static int S = 100;\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n try {\n int ap = 0, bp = 0;\n int n = Integer.parseInt(sc.nextLine());\n while (sc.hasNext()) {\n String[] cs = sc.nextLine().split(\" \");\n if (n > N || cs[0].length() > S || cs[1].length() > S) {\n System.out.println(\"Condition is invalid.\");\n }\n int c = cs[0].compareTo(cs[1]);\n if (c > 0) {\n ap += 3;\n }\n if (c == 0) {\n ap++;\n bp++;\n }\n if (c < 0) {\n bp += 3;\n }\n }\n System.out.println(ap + \" \" + bp);\n } catch (NoSuchElementException\n | NumberFormatException e) {\n System.out.println(e);\n }\n }\n}\n",
"import java.util.NoSuchElementException;",
"NoSuchElementException",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n private static int N = 1000;\n private static int S = 100;\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n try {\n int ap = 0, bp = 0;\n int n = Integer.parseInt(sc.nextLine());\n while (sc.hasNext()) {\n String[] cs = sc.nextLine().split(\" \");\n if (n > N || cs[0].length() > S || cs[1].length() > S) {\n System.out.println(\"Condition is invalid.\");\n }\n int c = cs[0].compareTo(cs[1]);\n if (c > 0) {\n ap += 3;\n }\n if (c == 0) {\n ap++;\n bp++;\n }\n if (c < 0) {\n bp += 3;\n }\n }\n System.out.println(ap + \" \" + bp);\n } catch (NoSuchElementException\n | NumberFormatException e) {\n System.out.println(e);\n }\n }\n}",
"Main",
"private static int N = 1000;",
"N",
"1000",
"private static int S = 100;",
"S",
"100",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n try {\n int ap = 0, bp = 0;\n int n = Integer.parseInt(sc.nextLine());\n while (sc.hasNext()) {\n String[] cs = sc.nextLine().split(\" \");\n if (n > N || cs[0].length() > S || cs[1].length() > S) {\n System.out.println(\"Condition is invalid.\");\n }\n int c = cs[0].compareTo(cs[1]);\n if (c > 0) {\n ap += 3;\n }\n if (c == 0) {\n ap++;\n bp++;\n }\n if (c < 0) {\n bp += 3;\n }\n }\n System.out.println(ap + \" \" + bp);\n } catch (NoSuchElementException\n | NumberFormatException e) {\n System.out.println(e);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n try {\n int ap = 0, bp = 0;\n int n = Integer.parseInt(sc.nextLine());\n while (sc.hasNext()) {\n String[] cs = sc.nextLine().split(\" \");\n if (n > N || cs[0].length() > S || cs[1].length() > S) {\n System.out.println(\"Condition is invalid.\");\n }\n int c = cs[0].compareTo(cs[1]);\n if (c > 0) {\n ap += 3;\n }\n if (c == 0) {\n ap++;\n bp++;\n }\n if (c < 0) {\n bp += 3;\n }\n }\n System.out.println(ap + \" \" + bp);\n } catch (NoSuchElementException\n | NumberFormatException e) {\n System.out.println(e);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"try {\n int ap = 0, bp = 0;\n int n = Integer.parseInt(sc.nextLine());\n while (sc.hasNext()) {\n String[] cs = sc.nextLine().split(\" \");\n if (n > N || cs[0].length() > S || cs[1].length() > S) {\n System.out.println(\"Condition is invalid.\");\n }\n int c = cs[0].compareTo(cs[1]);\n if (c > 0) {\n ap += 3;\n }\n if (c == 0) {\n ap++;\n bp++;\n }\n if (c < 0) {\n bp += 3;\n }\n }\n System.out.println(ap + \" \" + bp);\n } catch (NoSuchElementException\n | NumberFormatException e) {\n System.out.println(e);\n }",
"catch (NoSuchElementException\n | NumberFormatException e) {\n System.out.println(e);\n }",
"NoSuchElementException\n | NumberFormatException e",
"{\n System.out.println(e);\n }",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"{\n int ap = 0, bp = 0;\n int n = Integer.parseInt(sc.nextLine());\n while (sc.hasNext()) {\n String[] cs = sc.nextLine().split(\" \");\n if (n > N || cs[0].length() > S || cs[1].length() > S) {\n System.out.println(\"Condition is invalid.\");\n }\n int c = cs[0].compareTo(cs[1]);\n if (c > 0) {\n ap += 3;\n }\n if (c == 0) {\n ap++;\n bp++;\n }\n if (c < 0) {\n bp += 3;\n }\n }\n System.out.println(ap + \" \" + bp);\n }",
"int ap = 0",
"ap",
"0",
"bp = 0;",
"bp",
"0",
"int n = Integer.parseInt(sc.nextLine());",
"n",
"Integer.parseInt(sc.nextLine())",
"Integer.parseInt",
"Integer",
"sc.nextLine()",
"sc.nextLine",
"sc",
"while (sc.hasNext()) {\n String[] cs = sc.nextLine().split(\" \");\n if (n > N || cs[0].length() > S || cs[1].length() > S) {\n System.out.println(\"Condition is invalid.\");\n }\n int c = cs[0].compareTo(cs[1]);\n if (c > 0) {\n ap += 3;\n }\n if (c == 0) {\n ap++;\n bp++;\n }\n if (c < 0) {\n bp += 3;\n }\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n String[] cs = sc.nextLine().split(\" \");\n if (n > N || cs[0].length() > S || cs[1].length() > S) {\n System.out.println(\"Condition is invalid.\");\n }\n int c = cs[0].compareTo(cs[1]);\n if (c > 0) {\n ap += 3;\n }\n if (c == 0) {\n ap++;\n bp++;\n }\n if (c < 0) {\n bp += 3;\n }\n }",
"String[] cs = sc.nextLine().split(\" \");",
"cs",
"sc.nextLine().split(\" \")",
"sc.nextLine().split",
"sc.nextLine()",
"sc.nextLine",
"sc",
"\" \"",
"if (n > N || cs[0].length() > S || cs[1].length() > S) {\n System.out.println(\"Condition is invalid.\");\n }",
"n > N || cs[0].length() > S || cs[1].length() > S",
"n > N || cs[0].length() > S || cs[1].length() > S",
"n > N",
"n",
"N",
"cs[0].length() > S",
"cs[0].length()",
"cs[0].length",
"cs[0]",
"cs",
"0",
"S",
"cs[1].length() > S",
"cs[1].length()",
"cs[1].length",
"cs[1]",
"cs",
"1",
"S",
"{\n System.out.println(\"Condition is invalid.\");\n }",
"System.out.println(\"Condition is invalid.\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Condition is invalid.\"",
"int c = cs[0].compareTo(cs[1]);",
"c",
"cs[0].compareTo(cs[1])",
"cs[0].compareTo",
"cs[0]",
"cs",
"0",
"cs[1]",
"cs",
"1",
"if (c > 0) {\n ap += 3;\n }",
"c > 0",
"c",
"0",
"{\n ap += 3;\n }",
"ap += 3",
"ap",
"3",
"if (c == 0) {\n ap++;\n bp++;\n }",
"c == 0",
"c",
"0",
"{\n ap++;\n bp++;\n }",
"ap++",
"ap",
"bp++",
"bp",
"if (c < 0) {\n bp += 3;\n }",
"c < 0",
"c",
"0",
"{\n bp += 3;\n }",
"bp += 3",
"bp",
"3",
"System.out.println(ap + \" \" + bp)",
"System.out.println",
"System.out",
"System",
"System.out",
"ap + \" \" + bp",
"ap + \" \" + bp",
"ap",
"\" \"",
"bp",
"String[] args",
"args",
"public class Main {\n private static int N = 1000;\n private static int S = 100;\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n try {\n int ap = 0, bp = 0;\n int n = Integer.parseInt(sc.nextLine());\n while (sc.hasNext()) {\n String[] cs = sc.nextLine().split(\" \");\n if (n > N || cs[0].length() > S || cs[1].length() > S) {\n System.out.println(\"Condition is invalid.\");\n }\n int c = cs[0].compareTo(cs[1]);\n if (c > 0) {\n ap += 3;\n }\n if (c == 0) {\n ap++;\n bp++;\n }\n if (c < 0) {\n bp += 3;\n }\n }\n System.out.println(ap + \" \" + bp);\n } catch (NoSuchElementException\n | NumberFormatException e) {\n System.out.println(e);\n }\n }\n}",
"public class Main {\n private static int N = 1000;\n private static int S = 100;\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n try {\n int ap = 0, bp = 0;\n int n = Integer.parseInt(sc.nextLine());\n while (sc.hasNext()) {\n String[] cs = sc.nextLine().split(\" \");\n if (n > N || cs[0].length() > S || cs[1].length() > S) {\n System.out.println(\"Condition is invalid.\");\n }\n int c = cs[0].compareTo(cs[1]);\n if (c > 0) {\n ap += 3;\n }\n if (c == 0) {\n ap++;\n bp++;\n }\n if (c < 0) {\n bp += 3;\n }\n }\n System.out.println(ap + \" \" + bp);\n } catch (NoSuchElementException\n | NumberFormatException e) {\n System.out.println(e);\n }\n }\n}",
"Main"
]
| import java.util.NoSuchElementException;
import java.util.Scanner;
public class Main {
private static int N = 1000;
private static int S = 100;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
try {
int ap = 0, bp = 0;
int n = Integer.parseInt(sc.nextLine());
while (sc.hasNext()) {
String[] cs = sc.nextLine().split(" ");
if (n > N || cs[0].length() > S || cs[1].length() > S) {
System.out.println("Condition is invalid.");
}
int c = cs[0].compareTo(cs[1]);
if (c > 0) {
ap += 3;
}
if (c == 0) {
ap++;
bp++;
}
if (c < 0) {
bp += 3;
}
}
System.out.println(ap + " " + bp);
} catch (NoSuchElementException
| NumberFormatException e) {
System.out.println(e);
}
}
}
|
[
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
14,
4,
18,
13,
13,
30,
40,
13,
40,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
8,
2,
18,
13,
13,
18,
13,
13,
18,
13,
13,
18,
13,
13,
41,
13,
17,
42,
2,
13,
13,
30,
14,
2,
13,
13,
30,
14,
2,
18,
13,
13,
18,
13,
13,
30,
0,
13,
17,
30,
0,
13,
17,
3,
14,
2,
18,
13,
13,
18,
13,
13,
30,
40,
13,
14,
2,
18,
13,
13,
18,
13,
13,
30,
0,
13,
17,
3,
14,
2,
18,
13,
13,
18,
13,
13,
30,
0,
13,
17,
3,
4,
18,
18,
13,
13,
17,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
171,
5
],
[
171,
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
],
[
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
],
[
43,
44
],
[
44,
45
],
[
38,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
38,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
53,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
53,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
63,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
63,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
81,
83
],
[
76,
84
],
[
84,
85
],
[
84,
86
],
[
76,
87
],
[
87,
88
],
[
87,
89
],
[
63,
90
],
[
90,
91
],
[
90,
92
],
[
63,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
108,
110
],
[
103,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
103,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
102,
119
],
[
98,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
125,
126
],
[
125,
127
],
[
120,
128
],
[
128,
129
],
[
129,
130
],
[
120,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
132,
136
],
[
136,
137
],
[
136,
138
],
[
131,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
131,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
145,
149
],
[
149,
150
],
[
149,
151
],
[
144,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
8,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
157,
162
],
[
157,
163
],
[
157,
164
],
[
8,
165
],
[
165,
166
],
[
166,
167
],
[
6,
168
],
[
168,
169
],
[
0,
170
],
[
170,
171
],
[
170,
172
]
]
| [
"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 n = Integer.parseInt(scanner.nextLine());\n int tScore = 0;\n int hScore = 0;\n\n for(int i = 0; i < n; i++){\n String taro = scanner.next().toLowerCase();\n String hana = scanner.next().toLowerCase();\n\n if(taro.equals(hana)){\n tScore++;\n hScore++;\n }else{\n char[] tCh = taro.toCharArray();\n char[] hCh = hana.toCharArray();\n\n int min = tCh.length < hCh.length ? tCh.length : hCh.length;\n int index = 0;\n do{\n if(index == min){\n if(tCh.length > hCh.length){\n tScore += 3;\n }else {\n hScore += 3;\n }\n break;\n }else if(tCh[index] == hCh[index]){\n index++;\n }else if(tCh[index] > hCh[index]){\n tScore += 3;\n break;\n } else if (tCh[index] < hCh[index]) {\n hScore += 3;\n break;\n }\n\n\n }while(index <= min);\n }\n\n }\n\n System.out.printf(\"%d %d\\n\", tScore, hScore);\n\n scanner.close();\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 n = Integer.parseInt(scanner.nextLine());\n int tScore = 0;\n int hScore = 0;\n\n for(int i = 0; i < n; i++){\n String taro = scanner.next().toLowerCase();\n String hana = scanner.next().toLowerCase();\n\n if(taro.equals(hana)){\n tScore++;\n hScore++;\n }else{\n char[] tCh = taro.toCharArray();\n char[] hCh = hana.toCharArray();\n\n int min = tCh.length < hCh.length ? tCh.length : hCh.length;\n int index = 0;\n do{\n if(index == min){\n if(tCh.length > hCh.length){\n tScore += 3;\n }else {\n hScore += 3;\n }\n break;\n }else if(tCh[index] == hCh[index]){\n index++;\n }else if(tCh[index] > hCh[index]){\n tScore += 3;\n break;\n } else if (tCh[index] < hCh[index]) {\n hScore += 3;\n break;\n }\n\n\n }while(index <= min);\n }\n\n }\n\n System.out.printf(\"%d %d\\n\", tScore, hScore);\n\n scanner.close();\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n int n = Integer.parseInt(scanner.nextLine());\n int tScore = 0;\n int hScore = 0;\n\n for(int i = 0; i < n; i++){\n String taro = scanner.next().toLowerCase();\n String hana = scanner.next().toLowerCase();\n\n if(taro.equals(hana)){\n tScore++;\n hScore++;\n }else{\n char[] tCh = taro.toCharArray();\n char[] hCh = hana.toCharArray();\n\n int min = tCh.length < hCh.length ? tCh.length : hCh.length;\n int index = 0;\n do{\n if(index == min){\n if(tCh.length > hCh.length){\n tScore += 3;\n }else {\n hScore += 3;\n }\n break;\n }else if(tCh[index] == hCh[index]){\n index++;\n }else if(tCh[index] > hCh[index]){\n tScore += 3;\n break;\n } else if (tCh[index] < hCh[index]) {\n hScore += 3;\n break;\n }\n\n\n }while(index <= min);\n }\n\n }\n\n System.out.printf(\"%d %d\\n\", tScore, hScore);\n\n scanner.close();\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n\n int n = Integer.parseInt(scanner.nextLine());\n int tScore = 0;\n int hScore = 0;\n\n for(int i = 0; i < n; i++){\n String taro = scanner.next().toLowerCase();\n String hana = scanner.next().toLowerCase();\n\n if(taro.equals(hana)){\n tScore++;\n hScore++;\n }else{\n char[] tCh = taro.toCharArray();\n char[] hCh = hana.toCharArray();\n\n int min = tCh.length < hCh.length ? tCh.length : hCh.length;\n int index = 0;\n do{\n if(index == min){\n if(tCh.length > hCh.length){\n tScore += 3;\n }else {\n hScore += 3;\n }\n break;\n }else if(tCh[index] == hCh[index]){\n index++;\n }else if(tCh[index] > hCh[index]){\n tScore += 3;\n break;\n } else if (tCh[index] < hCh[index]) {\n hScore += 3;\n break;\n }\n\n\n }while(index <= min);\n }\n\n }\n\n System.out.printf(\"%d %d\\n\", tScore, hScore);\n\n scanner.close();\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int n = Integer.parseInt(scanner.nextLine());",
"n",
"Integer.parseInt(scanner.nextLine())",
"Integer.parseInt",
"Integer",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"int tScore = 0;",
"tScore",
"0",
"int hScore = 0;",
"hScore",
"0",
"for(int i = 0; i < n; i++){\n String taro = scanner.next().toLowerCase();\n String hana = scanner.next().toLowerCase();\n\n if(taro.equals(hana)){\n tScore++;\n hScore++;\n }else{\n char[] tCh = taro.toCharArray();\n char[] hCh = hana.toCharArray();\n\n int min = tCh.length < hCh.length ? tCh.length : hCh.length;\n int index = 0;\n do{\n if(index == min){\n if(tCh.length > hCh.length){\n tScore += 3;\n }else {\n hScore += 3;\n }\n break;\n }else if(tCh[index] == hCh[index]){\n index++;\n }else if(tCh[index] > hCh[index]){\n tScore += 3;\n break;\n } else if (tCh[index] < hCh[index]) {\n hScore += 3;\n break;\n }\n\n\n }while(index <= min);\n }\n\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String taro = scanner.next().toLowerCase();\n String hana = scanner.next().toLowerCase();\n\n if(taro.equals(hana)){\n tScore++;\n hScore++;\n }else{\n char[] tCh = taro.toCharArray();\n char[] hCh = hana.toCharArray();\n\n int min = tCh.length < hCh.length ? tCh.length : hCh.length;\n int index = 0;\n do{\n if(index == min){\n if(tCh.length > hCh.length){\n tScore += 3;\n }else {\n hScore += 3;\n }\n break;\n }else if(tCh[index] == hCh[index]){\n index++;\n }else if(tCh[index] > hCh[index]){\n tScore += 3;\n break;\n } else if (tCh[index] < hCh[index]) {\n hScore += 3;\n break;\n }\n\n\n }while(index <= min);\n }\n\n }",
"{\n String taro = scanner.next().toLowerCase();\n String hana = scanner.next().toLowerCase();\n\n if(taro.equals(hana)){\n tScore++;\n hScore++;\n }else{\n char[] tCh = taro.toCharArray();\n char[] hCh = hana.toCharArray();\n\n int min = tCh.length < hCh.length ? tCh.length : hCh.length;\n int index = 0;\n do{\n if(index == min){\n if(tCh.length > hCh.length){\n tScore += 3;\n }else {\n hScore += 3;\n }\n break;\n }else if(tCh[index] == hCh[index]){\n index++;\n }else if(tCh[index] > hCh[index]){\n tScore += 3;\n break;\n } else if (tCh[index] < hCh[index]) {\n hScore += 3;\n break;\n }\n\n\n }while(index <= min);\n }\n\n }",
"String taro = scanner.next().toLowerCase();",
"taro",
"scanner.next().toLowerCase()",
"scanner.next().toLowerCase",
"scanner.next()",
"scanner.next",
"scanner",
"String hana = scanner.next().toLowerCase();",
"hana",
"scanner.next().toLowerCase()",
"scanner.next().toLowerCase",
"scanner.next()",
"scanner.next",
"scanner",
"if(taro.equals(hana)){\n tScore++;\n hScore++;\n }else{\n char[] tCh = taro.toCharArray();\n char[] hCh = hana.toCharArray();\n\n int min = tCh.length < hCh.length ? tCh.length : hCh.length;\n int index = 0;\n do{\n if(index == min){\n if(tCh.length > hCh.length){\n tScore += 3;\n }else {\n hScore += 3;\n }\n break;\n }else if(tCh[index] == hCh[index]){\n index++;\n }else if(tCh[index] > hCh[index]){\n tScore += 3;\n break;\n } else if (tCh[index] < hCh[index]) {\n hScore += 3;\n break;\n }\n\n\n }while(index <= min);\n }",
"taro.equals(hana)",
"taro.equals",
"taro",
"hana",
"{\n tScore++;\n hScore++;\n }",
"tScore++",
"tScore",
"hScore++",
"hScore",
"{\n char[] tCh = taro.toCharArray();\n char[] hCh = hana.toCharArray();\n\n int min = tCh.length < hCh.length ? tCh.length : hCh.length;\n int index = 0;\n do{\n if(index == min){\n if(tCh.length > hCh.length){\n tScore += 3;\n }else {\n hScore += 3;\n }\n break;\n }else if(tCh[index] == hCh[index]){\n index++;\n }else if(tCh[index] > hCh[index]){\n tScore += 3;\n break;\n } else if (tCh[index] < hCh[index]) {\n hScore += 3;\n break;\n }\n\n\n }while(index <= min);\n }",
"char[] tCh = taro.toCharArray();",
"tCh",
"taro.toCharArray()",
"taro.toCharArray",
"taro",
"char[] hCh = hana.toCharArray();",
"hCh",
"hana.toCharArray()",
"hana.toCharArray",
"hana",
"int min = tCh.length < hCh.length ? tCh.length : hCh.length;",
"min",
"tCh.length < hCh.length ? tCh.length : hCh.length",
"tCh.length < hCh.length",
"tCh.length",
"tCh",
"tCh.length",
"hCh.length",
"hCh",
"hCh.length",
"tCh.length",
"tCh",
"tCh.length",
"hCh.length",
"hCh",
"hCh.length",
"int index = 0;",
"index",
"0",
"do{\n if(index == min){\n if(tCh.length > hCh.length){\n tScore += 3;\n }else {\n hScore += 3;\n }\n break;\n }else if(tCh[index] == hCh[index]){\n index++;\n }else if(tCh[index] > hCh[index]){\n tScore += 3;\n break;\n } else if (tCh[index] < hCh[index]) {\n hScore += 3;\n break;\n }\n\n\n }while(index <= min);",
"index <= min",
"index",
"min",
"{\n if(index == min){\n if(tCh.length > hCh.length){\n tScore += 3;\n }else {\n hScore += 3;\n }\n break;\n }else if(tCh[index] == hCh[index]){\n index++;\n }else if(tCh[index] > hCh[index]){\n tScore += 3;\n break;\n } else if (tCh[index] < hCh[index]) {\n hScore += 3;\n break;\n }\n\n\n }",
"if(index == min){\n if(tCh.length > hCh.length){\n tScore += 3;\n }else {\n hScore += 3;\n }\n break;\n }else if(tCh[index] == hCh[index]){\n index++;\n }else if(tCh[index] > hCh[index]){\n tScore += 3;\n break;\n } else if (tCh[index] < hCh[index]) {\n hScore += 3;\n break;\n }",
"index == min",
"index",
"min",
"{\n if(tCh.length > hCh.length){\n tScore += 3;\n }else {\n hScore += 3;\n }\n break;\n }",
"if(tCh.length > hCh.length){\n tScore += 3;\n }else {\n hScore += 3;\n }",
"tCh.length > hCh.length",
"tCh.length",
"tCh",
"tCh.length",
"hCh.length",
"hCh",
"hCh.length",
"{\n tScore += 3;\n }",
"tScore += 3",
"tScore",
"3",
"{\n hScore += 3;\n }",
"hScore += 3",
"hScore",
"3",
"break;",
"if(tCh[index] == hCh[index]){\n index++;\n }else if(tCh[index] > hCh[index]){\n tScore += 3;\n break;\n } else if (tCh[index] < hCh[index]) {\n hScore += 3;\n break;\n }",
"tCh[index] == hCh[index]",
"tCh[index]",
"tCh",
"index",
"hCh[index]",
"hCh",
"index",
"{\n index++;\n }",
"index++",
"index",
"if(tCh[index] > hCh[index]){\n tScore += 3;\n break;\n } else if (tCh[index] < hCh[index]) {\n hScore += 3;\n break;\n }",
"tCh[index] > hCh[index]",
"tCh[index]",
"tCh",
"index",
"hCh[index]",
"hCh",
"index",
"{\n tScore += 3;\n break;\n }",
"tScore += 3",
"tScore",
"3",
"break;",
"if (tCh[index] < hCh[index]) {\n hScore += 3;\n break;\n }",
"tCh[index] < hCh[index]",
"tCh[index]",
"tCh",
"index",
"hCh[index]",
"hCh",
"index",
"{\n hScore += 3;\n break;\n }",
"hScore += 3",
"hScore",
"3",
"break;",
"System.out.printf(\"%d %d\\n\", tScore, hScore)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d %d\\n\"",
"tScore",
"hScore",
"scanner.close()",
"scanner.close",
"scanner",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n int n = Integer.parseInt(scanner.nextLine());\n int tScore = 0;\n int hScore = 0;\n\n for(int i = 0; i < n; i++){\n String taro = scanner.next().toLowerCase();\n String hana = scanner.next().toLowerCase();\n\n if(taro.equals(hana)){\n tScore++;\n hScore++;\n }else{\n char[] tCh = taro.toCharArray();\n char[] hCh = hana.toCharArray();\n\n int min = tCh.length < hCh.length ? tCh.length : hCh.length;\n int index = 0;\n do{\n if(index == min){\n if(tCh.length > hCh.length){\n tScore += 3;\n }else {\n hScore += 3;\n }\n break;\n }else if(tCh[index] == hCh[index]){\n index++;\n }else if(tCh[index] > hCh[index]){\n tScore += 3;\n break;\n } else if (tCh[index] < hCh[index]) {\n hScore += 3;\n break;\n }\n\n\n }while(index <= min);\n }\n\n }\n\n System.out.printf(\"%d %d\\n\", tScore, hScore);\n\n scanner.close();\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n int n = Integer.parseInt(scanner.nextLine());\n int tScore = 0;\n int hScore = 0;\n\n for(int i = 0; i < n; i++){\n String taro = scanner.next().toLowerCase();\n String hana = scanner.next().toLowerCase();\n\n if(taro.equals(hana)){\n tScore++;\n hScore++;\n }else{\n char[] tCh = taro.toCharArray();\n char[] hCh = hana.toCharArray();\n\n int min = tCh.length < hCh.length ? tCh.length : hCh.length;\n int index = 0;\n do{\n if(index == min){\n if(tCh.length > hCh.length){\n tScore += 3;\n }else {\n hScore += 3;\n }\n break;\n }else if(tCh[index] == hCh[index]){\n index++;\n }else if(tCh[index] > hCh[index]){\n tScore += 3;\n break;\n } else if (tCh[index] < hCh[index]) {\n hScore += 3;\n break;\n }\n\n\n }while(index <= min);\n }\n\n }\n\n System.out.printf(\"%d %d\\n\", tScore, hScore);\n\n scanner.close();\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int n = Integer.parseInt(scanner.nextLine());
int tScore = 0;
int hScore = 0;
for(int i = 0; i < n; i++){
String taro = scanner.next().toLowerCase();
String hana = scanner.next().toLowerCase();
if(taro.equals(hana)){
tScore++;
hScore++;
}else{
char[] tCh = taro.toCharArray();
char[] hCh = hana.toCharArray();
int min = tCh.length < hCh.length ? tCh.length : hCh.length;
int index = 0;
do{
if(index == min){
if(tCh.length > hCh.length){
tScore += 3;
}else {
hScore += 3;
}
break;
}else if(tCh[index] == hCh[index]){
index++;
}else if(tCh[index] > hCh[index]){
tScore += 3;
break;
} else if (tCh[index] < hCh[index]) {
hScore += 3;
break;
}
}while(index <= min);
}
}
System.out.printf("%d %d\n", tScore, hScore);
scanner.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
0,
13,
17,
14,
2,
13,
17,
30,
40,
13,
40,
13,
14,
2,
17,
13,
30,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
99,
5
],
[
99,
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
],
[
50,
51
],
[
41,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
41,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
66,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
8,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
89,
89
],
[
89,
90
],
[
89,
91
],
[
89,
92
],
[
8,
93
],
[
93,
94
],
[
94,
95
],
[
6,
96
],
[
96,
97
],
[
0,
98
],
[
98,
99
],
[
98,
100
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint intLoop = scan.nextInt();\n\t\tString strTaro = \"\";\n\t\tString strHana = \"\";\n\t\tint intTaro = 0;\n\t\tint intHana = 0;\n\n\t\tfor(int i = 0; i < intLoop; i++){\n\t\t\tstrTaro = scan.next();\n\t\t\tstrHana = scan.next();\n\t\t\tint intJudge = strTaro.compareTo(strHana);\n\t\t\tif(intJudge < 0){\n\t\t\t\tintHana += 3;\n\t\t\t}else if(intJudge == 0){\n\t\t\t\tintTaro++;\n\t\t\t\tintHana++;\n\t\t\t}else if(0 < intJudge){\n\t\t\t\tintTaro += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(intTaro + \" \" + intHana);\n\t\tscan.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint intLoop = scan.nextInt();\n\t\tString strTaro = \"\";\n\t\tString strHana = \"\";\n\t\tint intTaro = 0;\n\t\tint intHana = 0;\n\n\t\tfor(int i = 0; i < intLoop; i++){\n\t\t\tstrTaro = scan.next();\n\t\t\tstrHana = scan.next();\n\t\t\tint intJudge = strTaro.compareTo(strHana);\n\t\t\tif(intJudge < 0){\n\t\t\t\tintHana += 3;\n\t\t\t}else if(intJudge == 0){\n\t\t\t\tintTaro++;\n\t\t\t\tintHana++;\n\t\t\t}else if(0 < intJudge){\n\t\t\t\tintTaro += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(intTaro + \" \" + intHana);\n\t\tscan.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint intLoop = scan.nextInt();\n\t\tString strTaro = \"\";\n\t\tString strHana = \"\";\n\t\tint intTaro = 0;\n\t\tint intHana = 0;\n\n\t\tfor(int i = 0; i < intLoop; i++){\n\t\t\tstrTaro = scan.next();\n\t\t\tstrHana = scan.next();\n\t\t\tint intJudge = strTaro.compareTo(strHana);\n\t\t\tif(intJudge < 0){\n\t\t\t\tintHana += 3;\n\t\t\t}else if(intJudge == 0){\n\t\t\t\tintTaro++;\n\t\t\t\tintHana++;\n\t\t\t}else if(0 < intJudge){\n\t\t\t\tintTaro += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(intTaro + \" \" + intHana);\n\t\tscan.close();\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint intLoop = scan.nextInt();\n\t\tString strTaro = \"\";\n\t\tString strHana = \"\";\n\t\tint intTaro = 0;\n\t\tint intHana = 0;\n\n\t\tfor(int i = 0; i < intLoop; i++){\n\t\t\tstrTaro = scan.next();\n\t\t\tstrHana = scan.next();\n\t\t\tint intJudge = strTaro.compareTo(strHana);\n\t\t\tif(intJudge < 0){\n\t\t\t\tintHana += 3;\n\t\t\t}else if(intJudge == 0){\n\t\t\t\tintTaro++;\n\t\t\t\tintHana++;\n\t\t\t}else if(0 < intJudge){\n\t\t\t\tintTaro += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(intTaro + \" \" + intHana);\n\t\tscan.close();\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int intLoop = scan.nextInt();",
"intLoop",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String strTaro = \"\";",
"strTaro",
"\"\"",
"String strHana = \"\";",
"strHana",
"\"\"",
"int intTaro = 0;",
"intTaro",
"0",
"int intHana = 0;",
"intHana",
"0",
"for(int i = 0; i < intLoop; i++){\n\t\t\tstrTaro = scan.next();\n\t\t\tstrHana = scan.next();\n\t\t\tint intJudge = strTaro.compareTo(strHana);\n\t\t\tif(intJudge < 0){\n\t\t\t\tintHana += 3;\n\t\t\t}else if(intJudge == 0){\n\t\t\t\tintTaro++;\n\t\t\t\tintHana++;\n\t\t\t}else if(0 < intJudge){\n\t\t\t\tintTaro += 3;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < intLoop",
"i",
"intLoop",
"i++",
"i++",
"i",
"{\n\t\t\tstrTaro = scan.next();\n\t\t\tstrHana = scan.next();\n\t\t\tint intJudge = strTaro.compareTo(strHana);\n\t\t\tif(intJudge < 0){\n\t\t\t\tintHana += 3;\n\t\t\t}else if(intJudge == 0){\n\t\t\t\tintTaro++;\n\t\t\t\tintHana++;\n\t\t\t}else if(0 < intJudge){\n\t\t\t\tintTaro += 3;\n\t\t\t}\n\t\t}",
"{\n\t\t\tstrTaro = scan.next();\n\t\t\tstrHana = scan.next();\n\t\t\tint intJudge = strTaro.compareTo(strHana);\n\t\t\tif(intJudge < 0){\n\t\t\t\tintHana += 3;\n\t\t\t}else if(intJudge == 0){\n\t\t\t\tintTaro++;\n\t\t\t\tintHana++;\n\t\t\t}else if(0 < intJudge){\n\t\t\t\tintTaro += 3;\n\t\t\t}\n\t\t}",
"strTaro = scan.next()",
"strTaro",
"scan.next()",
"scan.next",
"scan",
"strHana = scan.next()",
"strHana",
"scan.next()",
"scan.next",
"scan",
"int intJudge = strTaro.compareTo(strHana);",
"intJudge",
"strTaro.compareTo(strHana)",
"strTaro.compareTo",
"strTaro",
"strHana",
"if(intJudge < 0){\n\t\t\t\tintHana += 3;\n\t\t\t}else if(intJudge == 0){\n\t\t\t\tintTaro++;\n\t\t\t\tintHana++;\n\t\t\t}else if(0 < intJudge){\n\t\t\t\tintTaro += 3;\n\t\t\t}",
"intJudge < 0",
"intJudge",
"0",
"{\n\t\t\t\tintHana += 3;\n\t\t\t}",
"intHana += 3",
"intHana",
"3",
"if(intJudge == 0){\n\t\t\t\tintTaro++;\n\t\t\t\tintHana++;\n\t\t\t}else if(0 < intJudge){\n\t\t\t\tintTaro += 3;\n\t\t\t}",
"intJudge == 0",
"intJudge",
"0",
"{\n\t\t\t\tintTaro++;\n\t\t\t\tintHana++;\n\t\t\t}",
"intTaro++",
"intTaro",
"intHana++",
"intHana",
"if(0 < intJudge){\n\t\t\t\tintTaro += 3;\n\t\t\t}",
"0 < intJudge",
"0",
"intJudge",
"{\n\t\t\t\tintTaro += 3;\n\t\t\t}",
"intTaro += 3",
"intTaro",
"3",
"System.out.println(intTaro + \" \" + intHana)",
"System.out.println",
"System.out",
"System",
"System.out",
"intTaro + \" \" + intHana",
"intTaro + \" \" + intHana",
"intTaro",
"\" \"",
"intHana",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint intLoop = scan.nextInt();\n\t\tString strTaro = \"\";\n\t\tString strHana = \"\";\n\t\tint intTaro = 0;\n\t\tint intHana = 0;\n\n\t\tfor(int i = 0; i < intLoop; i++){\n\t\t\tstrTaro = scan.next();\n\t\t\tstrHana = scan.next();\n\t\t\tint intJudge = strTaro.compareTo(strHana);\n\t\t\tif(intJudge < 0){\n\t\t\t\tintHana += 3;\n\t\t\t}else if(intJudge == 0){\n\t\t\t\tintTaro++;\n\t\t\t\tintHana++;\n\t\t\t}else if(0 < intJudge){\n\t\t\t\tintTaro += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(intTaro + \" \" + intHana);\n\t\tscan.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint intLoop = scan.nextInt();\n\t\tString strTaro = \"\";\n\t\tString strHana = \"\";\n\t\tint intTaro = 0;\n\t\tint intHana = 0;\n\n\t\tfor(int i = 0; i < intLoop; i++){\n\t\t\tstrTaro = scan.next();\n\t\t\tstrHana = scan.next();\n\t\t\tint intJudge = strTaro.compareTo(strHana);\n\t\t\tif(intJudge < 0){\n\t\t\t\tintHana += 3;\n\t\t\t}else if(intJudge == 0){\n\t\t\t\tintTaro++;\n\t\t\t\tintHana++;\n\t\t\t}else if(0 < intJudge){\n\t\t\t\tintTaro += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(intTaro + \" \" + intHana);\n\t\tscan.close();\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int intLoop = scan.nextInt();
String strTaro = "";
String strHana = "";
int intTaro = 0;
int intHana = 0;
for(int i = 0; i < intLoop; i++){
strTaro = scan.next();
strHana = scan.next();
int intJudge = strTaro.compareTo(strHana);
if(intJudge < 0){
intHana += 3;
}else if(intJudge == 0){
intTaro++;
intHana++;
}else if(0 < intJudge){
intTaro += 3;
}
}
System.out.println(intTaro + " " + intHana);
scan.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
4,
18,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
0,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
0,
13,
17,
30,
40,
13,
40,
13,
4,
18,
18,
13,
13,
2,
2,
13,
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
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
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
],
[
45,
46
],
[
46,
47
],
[
43,
48
],
[
40,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
50,
59
],
[
49,
60
],
[
60,
61
],
[
60,
62
],
[
49,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
64,
73
],
[
63,
74
],
[
74,
75
],
[
74,
76
],
[
63,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
80,
81
],
[
8,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
88,
88
],
[
88,
89
],
[
88,
90
],
[
88,
91
],
[
6,
92
],
[
92,
93
]
]
| [
"import java.io.*;\n\nclass Main{\n\tpublic static void main(String args[]) throws IOException{\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(buf.readLine());\n\t\tString[] str;\n\t\tint tarou=0;\n\t\tint hanako=0;\n\t\tfor(int i=0; i<n; i++){\n\t\t\tstr = buf.readLine().split(\" \");\n\t\t\tif(str[0].compareTo(str[1]) > 0)\n\t\t\t\ttarou += 3;\n\t\t\telse if(str[0].compareTo(str[1]) < 0)\n\t\t\t\thanako += 3;\n\t\t\telse {\n\t\t\t\ttarou++;\n\t\t\t\thanako++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tarou + \" \" + hanako);\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"class Main{\n\tpublic static void main(String args[]) throws IOException{\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(buf.readLine());\n\t\tString[] str;\n\t\tint tarou=0;\n\t\tint hanako=0;\n\t\tfor(int i=0; i<n; i++){\n\t\t\tstr = buf.readLine().split(\" \");\n\t\t\tif(str[0].compareTo(str[1]) > 0)\n\t\t\t\ttarou += 3;\n\t\t\telse if(str[0].compareTo(str[1]) < 0)\n\t\t\t\thanako += 3;\n\t\t\telse {\n\t\t\t\ttarou++;\n\t\t\t\thanako++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tarou + \" \" + hanako);\n\t}\n}",
"Main",
"public static void main(String args[]) throws IOException{\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(buf.readLine());\n\t\tString[] str;\n\t\tint tarou=0;\n\t\tint hanako=0;\n\t\tfor(int i=0; i<n; i++){\n\t\t\tstr = buf.readLine().split(\" \");\n\t\t\tif(str[0].compareTo(str[1]) > 0)\n\t\t\t\ttarou += 3;\n\t\t\telse if(str[0].compareTo(str[1]) < 0)\n\t\t\t\thanako += 3;\n\t\t\telse {\n\t\t\t\ttarou++;\n\t\t\t\thanako++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tarou + \" \" + hanako);\n\t}",
"main",
"{\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(buf.readLine());\n\t\tString[] str;\n\t\tint tarou=0;\n\t\tint hanako=0;\n\t\tfor(int i=0; i<n; i++){\n\t\t\tstr = buf.readLine().split(\" \");\n\t\t\tif(str[0].compareTo(str[1]) > 0)\n\t\t\t\ttarou += 3;\n\t\t\telse if(str[0].compareTo(str[1]) < 0)\n\t\t\t\thanako += 3;\n\t\t\telse {\n\t\t\t\ttarou++;\n\t\t\t\thanako++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tarou + \" \" + hanako);\n\t}",
"BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));",
"buf",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(buf.readLine());",
"n",
"Integer.parseInt(buf.readLine())",
"Integer.parseInt",
"Integer",
"buf.readLine()",
"buf.readLine",
"buf",
"String[] str;",
"str",
"int tarou=0;",
"tarou",
"0",
"int hanako=0;",
"hanako",
"0",
"for(int i=0; i<n; i++){\n\t\t\tstr = buf.readLine().split(\" \");\n\t\t\tif(str[0].compareTo(str[1]) > 0)\n\t\t\t\ttarou += 3;\n\t\t\telse if(str[0].compareTo(str[1]) < 0)\n\t\t\t\thanako += 3;\n\t\t\telse {\n\t\t\t\ttarou++;\n\t\t\t\thanako++;\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\tstr = buf.readLine().split(\" \");\n\t\t\tif(str[0].compareTo(str[1]) > 0)\n\t\t\t\ttarou += 3;\n\t\t\telse if(str[0].compareTo(str[1]) < 0)\n\t\t\t\thanako += 3;\n\t\t\telse {\n\t\t\t\ttarou++;\n\t\t\t\thanako++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tstr = buf.readLine().split(\" \");\n\t\t\tif(str[0].compareTo(str[1]) > 0)\n\t\t\t\ttarou += 3;\n\t\t\telse if(str[0].compareTo(str[1]) < 0)\n\t\t\t\thanako += 3;\n\t\t\telse {\n\t\t\t\ttarou++;\n\t\t\t\thanako++;\n\t\t\t}\n\t\t}",
"str = buf.readLine().split(\" \")",
"str",
"buf.readLine().split(\" \")",
"buf.readLine().split",
"buf.readLine()",
"buf.readLine",
"buf",
"\" \"",
"if(str[0].compareTo(str[1]) > 0)\n\t\t\t\ttarou += 3;\n\t\t\telse if(str[0].compareTo(str[1]) < 0)\n\t\t\t\thanako += 3;\n\t\t\telse {\n\t\t\t\ttarou++;\n\t\t\t\thanako++;\n\t\t\t}",
"str[0].compareTo(str[1]) > 0",
"str[0].compareTo(str[1])",
"str[0].compareTo",
"str[0]",
"str",
"0",
"str[1]",
"str",
"1",
"0",
"tarou += 3",
"tarou",
"3",
"if(str[0].compareTo(str[1]) < 0)\n\t\t\t\thanako += 3;\n\t\t\telse {\n\t\t\t\ttarou++;\n\t\t\t\thanako++;\n\t\t\t}",
"str[0].compareTo(str[1]) < 0",
"str[0].compareTo(str[1])",
"str[0].compareTo",
"str[0]",
"str",
"0",
"str[1]",
"str",
"1",
"0",
"hanako += 3",
"hanako",
"3",
"{\n\t\t\t\ttarou++;\n\t\t\t\thanako++;\n\t\t\t}",
"tarou++",
"tarou",
"hanako++",
"hanako",
"System.out.println(tarou + \" \" + hanako)",
"System.out.println",
"System.out",
"System",
"System.out",
"tarou + \" \" + hanako",
"tarou + \" \" + hanako",
"tarou",
"\" \"",
"hanako",
"String args[]",
"args"
]
| import java.io.*;
class Main{
public static void main(String args[]) throws IOException{
BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(buf.readLine());
String[] str;
int tarou=0;
int hanako=0;
for(int i=0; i<n; i++){
str = buf.readLine().split(" ");
if(str[0].compareTo(str[1]) > 0)
tarou += 3;
else if(str[0].compareTo(str[1]) < 0)
hanako += 3;
else {
tarou++;
hanako++;
}
}
System.out.println(tarou + " " + hanako);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
40,
13,
40,
13,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
87,
5
],
[
87,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
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
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
46,
53
],
[
53,
54
],
[
53,
55
],
[
46,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
57,
62
],
[
56,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
66,
67
],
[
56,
68
],
[
68,
69
],
[
68,
70
],
[
8,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
77,
77
],
[
77,
78
],
[
77,
79
],
[
77,
80
],
[
8,
81
],
[
81,
82
],
[
82,
83
],
[
6,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int time = sc.nextInt();\n int score1 = 0, score2 = 0;\n\n for(int i = 0; i < time; i++){\n String p1 = sc.next();\n String p2 = sc.next();\n\n if(p1.compareToIgnoreCase(p2) < 0)\n score2 += 3;\n else if(p1.compareToIgnoreCase(p2) == 0){\n score1++;\n score2++;\n }\n else\n score1 += 3;\n }\n\n System.out.println(score1 + \" \" + score2);\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\n int time = sc.nextInt();\n int score1 = 0, score2 = 0;\n\n for(int i = 0; i < time; i++){\n String p1 = sc.next();\n String p2 = sc.next();\n\n if(p1.compareToIgnoreCase(p2) < 0)\n score2 += 3;\n else if(p1.compareToIgnoreCase(p2) == 0){\n score1++;\n score2++;\n }\n else\n score1 += 3;\n }\n\n System.out.println(score1 + \" \" + score2);\n\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int time = sc.nextInt();\n int score1 = 0, score2 = 0;\n\n for(int i = 0; i < time; i++){\n String p1 = sc.next();\n String p2 = sc.next();\n\n if(p1.compareToIgnoreCase(p2) < 0)\n score2 += 3;\n else if(p1.compareToIgnoreCase(p2) == 0){\n score1++;\n score2++;\n }\n else\n score1 += 3;\n }\n\n System.out.println(score1 + \" \" + score2);\n\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int time = sc.nextInt();\n int score1 = 0, score2 = 0;\n\n for(int i = 0; i < time; i++){\n String p1 = sc.next();\n String p2 = sc.next();\n\n if(p1.compareToIgnoreCase(p2) < 0)\n score2 += 3;\n else if(p1.compareToIgnoreCase(p2) == 0){\n score1++;\n score2++;\n }\n else\n score1 += 3;\n }\n\n System.out.println(score1 + \" \" + score2);\n\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int time = sc.nextInt();",
"time",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int score1 = 0",
"score1",
"0",
"score2 = 0;",
"score2",
"0",
"for(int i = 0; i < time; i++){\n String p1 = sc.next();\n String p2 = sc.next();\n\n if(p1.compareToIgnoreCase(p2) < 0)\n score2 += 3;\n else if(p1.compareToIgnoreCase(p2) == 0){\n score1++;\n score2++;\n }\n else\n score1 += 3;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < time",
"i",
"time",
"i++",
"i++",
"i",
"{\n String p1 = sc.next();\n String p2 = sc.next();\n\n if(p1.compareToIgnoreCase(p2) < 0)\n score2 += 3;\n else if(p1.compareToIgnoreCase(p2) == 0){\n score1++;\n score2++;\n }\n else\n score1 += 3;\n }",
"{\n String p1 = sc.next();\n String p2 = sc.next();\n\n if(p1.compareToIgnoreCase(p2) < 0)\n score2 += 3;\n else if(p1.compareToIgnoreCase(p2) == 0){\n score1++;\n score2++;\n }\n else\n score1 += 3;\n }",
"String p1 = sc.next();",
"p1",
"sc.next()",
"sc.next",
"sc",
"String p2 = sc.next();",
"p2",
"sc.next()",
"sc.next",
"sc",
"if(p1.compareToIgnoreCase(p2) < 0)\n score2 += 3;\n else if(p1.compareToIgnoreCase(p2) == 0){\n score1++;\n score2++;\n }\n else\n score1 += 3;",
"p1.compareToIgnoreCase(p2) < 0",
"p1.compareToIgnoreCase(p2)",
"p1.compareToIgnoreCase",
"p1",
"p2",
"0",
"score2 += 3",
"score2",
"3",
"if(p1.compareToIgnoreCase(p2) == 0){\n score1++;\n score2++;\n }\n else\n score1 += 3;",
"p1.compareToIgnoreCase(p2) == 0",
"p1.compareToIgnoreCase(p2)",
"p1.compareToIgnoreCase",
"p1",
"p2",
"0",
"{\n score1++;\n score2++;\n }",
"score1++",
"score1",
"score2++",
"score2",
"score1 += 3",
"score1",
"3",
"System.out.println(score1 + \" \" + score2)",
"System.out.println",
"System.out",
"System",
"System.out",
"score1 + \" \" + score2",
"score1 + \" \" + score2",
"score1",
"\" \"",
"score2",
"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\n int time = sc.nextInt();\n int score1 = 0, score2 = 0;\n\n for(int i = 0; i < time; i++){\n String p1 = sc.next();\n String p2 = sc.next();\n\n if(p1.compareToIgnoreCase(p2) < 0)\n score2 += 3;\n else if(p1.compareToIgnoreCase(p2) == 0){\n score1++;\n score2++;\n }\n else\n score1 += 3;\n }\n\n System.out.println(score1 + \" \" + score2);\n\n sc.close();\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int time = sc.nextInt();\n int score1 = 0, score2 = 0;\n\n for(int i = 0; i < time; i++){\n String p1 = sc.next();\n String p2 = sc.next();\n\n if(p1.compareToIgnoreCase(p2) < 0)\n score2 += 3;\n else if(p1.compareToIgnoreCase(p2) == 0){\n score1++;\n score2++;\n }\n else\n score1 += 3;\n }\n\n System.out.println(score1 + \" \" + score2);\n\n sc.close();\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int time = sc.nextInt();
int score1 = 0, score2 = 0;
for(int i = 0; i < time; i++){
String p1 = sc.next();
String p2 = sc.next();
if(p1.compareToIgnoreCase(p2) < 0)
score2 += 3;
else if(p1.compareToIgnoreCase(p2) == 0){
score1++;
score2++;
}
else
score1 += 3;
}
System.out.println(score1 + " " + score2);
sc.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,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
0,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
0,
13,
17,
0,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
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
],
[
103,
11
],
[
103,
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
],
[
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
],
[
49,
50
],
[
50,
51
],
[
47,
52
],
[
44,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
54,
63
],
[
53,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
53,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
69,
78
],
[
68,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
83,
85
],
[
68,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
14,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
96,
96
],
[
96,
97
],
[
96,
98
],
[
96,
99
],
[
12,
100
],
[
100,
101
],
[
0,
102
],
[
102,
103
],
[
102,
104
]
]
| [
"import java.io.IOException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int taro = 0;\n int hanako = 0;\n for (int i = 0; i < n; i++){\n String[] cards = br.readLine().split(\" \");\n if (cards[0].compareTo(cards[1])>0){\n taro += 3;\n }else if (cards[0].compareTo(cards[1])==0){\n taro += 1;\n hanako += 1;\n }else{\n hanako += 3;\n }\n }\n System.out.println(taro + \" \" + hanako);\n }\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int taro = 0;\n int hanako = 0;\n for (int i = 0; i < n; i++){\n String[] cards = br.readLine().split(\" \");\n if (cards[0].compareTo(cards[1])>0){\n taro += 3;\n }else if (cards[0].compareTo(cards[1])==0){\n taro += 1;\n hanako += 1;\n }else{\n hanako += 3;\n }\n }\n System.out.println(taro + \" \" + hanako);\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int taro = 0;\n int hanako = 0;\n for (int i = 0; i < n; i++){\n String[] cards = br.readLine().split(\" \");\n if (cards[0].compareTo(cards[1])>0){\n taro += 3;\n }else if (cards[0].compareTo(cards[1])==0){\n taro += 1;\n hanako += 1;\n }else{\n hanako += 3;\n }\n }\n System.out.println(taro + \" \" + hanako);\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int taro = 0;\n int hanako = 0;\n for (int i = 0; i < n; i++){\n String[] cards = br.readLine().split(\" \");\n if (cards[0].compareTo(cards[1])>0){\n taro += 3;\n }else if (cards[0].compareTo(cards[1])==0){\n taro += 1;\n hanako += 1;\n }else{\n hanako += 3;\n }\n }\n System.out.println(taro + \" \" + hanako);\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int taro = 0;",
"taro",
"0",
"int hanako = 0;",
"hanako",
"0",
"for (int i = 0; i < n; i++){\n String[] cards = br.readLine().split(\" \");\n if (cards[0].compareTo(cards[1])>0){\n taro += 3;\n }else if (cards[0].compareTo(cards[1])==0){\n taro += 1;\n hanako += 1;\n }else{\n hanako += 3;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String[] cards = br.readLine().split(\" \");\n if (cards[0].compareTo(cards[1])>0){\n taro += 3;\n }else if (cards[0].compareTo(cards[1])==0){\n taro += 1;\n hanako += 1;\n }else{\n hanako += 3;\n }\n }",
"{\n String[] cards = br.readLine().split(\" \");\n if (cards[0].compareTo(cards[1])>0){\n taro += 3;\n }else if (cards[0].compareTo(cards[1])==0){\n taro += 1;\n hanako += 1;\n }else{\n hanako += 3;\n }\n }",
"String[] cards = br.readLine().split(\" \");",
"cards",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"if (cards[0].compareTo(cards[1])>0){\n taro += 3;\n }else if (cards[0].compareTo(cards[1])==0){\n taro += 1;\n hanako += 1;\n }else{\n hanako += 3;\n }",
"cards[0].compareTo(cards[1])>0",
"cards[0].compareTo(cards[1])",
"cards[0].compareTo",
"cards[0]",
"cards",
"0",
"cards[1]",
"cards",
"1",
"0",
"{\n taro += 3;\n }",
"taro += 3",
"taro",
"3",
"if (cards[0].compareTo(cards[1])==0){\n taro += 1;\n hanako += 1;\n }else{\n hanako += 3;\n }",
"cards[0].compareTo(cards[1])==0",
"cards[0].compareTo(cards[1])",
"cards[0].compareTo",
"cards[0]",
"cards",
"0",
"cards[1]",
"cards",
"1",
"0",
"{\n taro += 1;\n hanako += 1;\n }",
"taro += 1",
"taro",
"1",
"hanako += 1",
"hanako",
"1",
"{\n hanako += 3;\n }",
"hanako += 3",
"hanako",
"3",
"System.out.println(taro + \" \" + hanako)",
"System.out.println",
"System.out",
"System",
"System.out",
"taro + \" \" + hanako",
"taro + \" \" + hanako",
"taro",
"\" \"",
"hanako",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int taro = 0;\n int hanako = 0;\n for (int i = 0; i < n; i++){\n String[] cards = br.readLine().split(\" \");\n if (cards[0].compareTo(cards[1])>0){\n taro += 3;\n }else if (cards[0].compareTo(cards[1])==0){\n taro += 1;\n hanako += 1;\n }else{\n hanako += 3;\n }\n }\n System.out.println(taro + \" \" + hanako);\n }\n}",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int taro = 0;\n int hanako = 0;\n for (int i = 0; i < n; i++){\n String[] cards = br.readLine().split(\" \");\n if (cards[0].compareTo(cards[1])>0){\n taro += 3;\n }else if (cards[0].compareTo(cards[1])==0){\n taro += 1;\n hanako += 1;\n }else{\n hanako += 3;\n }\n }\n System.out.println(taro + \" \" + hanako);\n }\n}",
"Main"
]
| import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
int taro = 0;
int hanako = 0;
for (int i = 0; i < n; i++){
String[] cards = br.readLine().split(" ");
if (cards[0].compareTo(cards[1])>0){
taro += 3;
}else if (cards[0].compareTo(cards[1])==0){
taro += 1;
hanako += 1;
}else{
hanako += 3;
}
}
System.out.println(taro + " " + hanako);
}
} |
[
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,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
18,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
87,
5
],
[
87,
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
],
[
8,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
39,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
39,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
39,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
65,
67
],
[
62,
68
],
[
68,
69
],
[
68,
70
],
[
8,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
77,
77
],
[
77,
78
],
[
77,
79
],
[
77,
80
],
[
8,
81
],
[
81,
82
],
[
82,
83
],
[
6,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
]
| [
"import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint point1 = 0, point2 = 0;\n\t\tString animal1, animal2;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tanimal1 = sc.next();\n\t\t\tanimal2 = sc.next();\n\t\t\tchar[] array1 = animal1.toCharArray();\n\t\t\tchar[] array2 = animal2.toCharArray();\n\t\t\tint arrayLength = Math.min(array1.length, array2.length);\n\t\t\ttop: for (int j = 0; j < arrayLength; j++) {\n\t\t\t\tif (array1[j] > array2[j]) {\n\t\t\t\t\tpoint1 += 3;\n\t\t\t\t\tbreak top;\n\t\t\t\t} else if (array1[j] < array2[j]) {\n\t\t\t\t\tpoint2 += 3;\n\t\t\t\t\tbreak top;\n\t\t\t\t} else if (j == arrayLength - 1) {\n\t\t\t\t\tif (array1.length == array2.length) {\n\t\t\t\t\t\tpoint1 += 1;\n\t\t\t\t\t\tpoint2 += 1;\n\t\t\t\t\t\tbreak top;\n\t\t\t\t\t} else if (array1.length > array2.length) {\n\t\t\t\t\t\tpoint1 += 3;\n\t\t\t\t\t\tbreak top;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpoint2 += 3;\n\t\t\t\t\t\tbreak top;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(point1 + \" \" + point2);\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\t\tint n = sc.nextInt();\n\t\tint point1 = 0, point2 = 0;\n\t\tString animal1, animal2;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tanimal1 = sc.next();\n\t\t\tanimal2 = sc.next();\n\t\t\tchar[] array1 = animal1.toCharArray();\n\t\t\tchar[] array2 = animal2.toCharArray();\n\t\t\tint arrayLength = Math.min(array1.length, array2.length);\n\t\t\ttop: for (int j = 0; j < arrayLength; j++) {\n\t\t\t\tif (array1[j] > array2[j]) {\n\t\t\t\t\tpoint1 += 3;\n\t\t\t\t\tbreak top;\n\t\t\t\t} else if (array1[j] < array2[j]) {\n\t\t\t\t\tpoint2 += 3;\n\t\t\t\t\tbreak top;\n\t\t\t\t} else if (j == arrayLength - 1) {\n\t\t\t\t\tif (array1.length == array2.length) {\n\t\t\t\t\t\tpoint1 += 1;\n\t\t\t\t\t\tpoint2 += 1;\n\t\t\t\t\t\tbreak top;\n\t\t\t\t\t} else if (array1.length > array2.length) {\n\t\t\t\t\t\tpoint1 += 3;\n\t\t\t\t\t\tbreak top;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpoint2 += 3;\n\t\t\t\t\t\tbreak top;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(point1 + \" \" + point2);\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint point1 = 0, point2 = 0;\n\t\tString animal1, animal2;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tanimal1 = sc.next();\n\t\t\tanimal2 = sc.next();\n\t\t\tchar[] array1 = animal1.toCharArray();\n\t\t\tchar[] array2 = animal2.toCharArray();\n\t\t\tint arrayLength = Math.min(array1.length, array2.length);\n\t\t\ttop: for (int j = 0; j < arrayLength; j++) {\n\t\t\t\tif (array1[j] > array2[j]) {\n\t\t\t\t\tpoint1 += 3;\n\t\t\t\t\tbreak top;\n\t\t\t\t} else if (array1[j] < array2[j]) {\n\t\t\t\t\tpoint2 += 3;\n\t\t\t\t\tbreak top;\n\t\t\t\t} else if (j == arrayLength - 1) {\n\t\t\t\t\tif (array1.length == array2.length) {\n\t\t\t\t\t\tpoint1 += 1;\n\t\t\t\t\t\tpoint2 += 1;\n\t\t\t\t\t\tbreak top;\n\t\t\t\t\t} else if (array1.length > array2.length) {\n\t\t\t\t\t\tpoint1 += 3;\n\t\t\t\t\t\tbreak top;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpoint2 += 3;\n\t\t\t\t\t\tbreak top;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(point1 + \" \" + point2);\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint point1 = 0, point2 = 0;\n\t\tString animal1, animal2;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tanimal1 = sc.next();\n\t\t\tanimal2 = sc.next();\n\t\t\tchar[] array1 = animal1.toCharArray();\n\t\t\tchar[] array2 = animal2.toCharArray();\n\t\t\tint arrayLength = Math.min(array1.length, array2.length);\n\t\t\ttop: for (int j = 0; j < arrayLength; j++) {\n\t\t\t\tif (array1[j] > array2[j]) {\n\t\t\t\t\tpoint1 += 3;\n\t\t\t\t\tbreak top;\n\t\t\t\t} else if (array1[j] < array2[j]) {\n\t\t\t\t\tpoint2 += 3;\n\t\t\t\t\tbreak top;\n\t\t\t\t} else if (j == arrayLength - 1) {\n\t\t\t\t\tif (array1.length == array2.length) {\n\t\t\t\t\t\tpoint1 += 1;\n\t\t\t\t\t\tpoint2 += 1;\n\t\t\t\t\t\tbreak top;\n\t\t\t\t\t} else if (array1.length > array2.length) {\n\t\t\t\t\t\tpoint1 += 3;\n\t\t\t\t\t\tbreak top;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpoint2 += 3;\n\t\t\t\t\t\tbreak top;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(point1 + \" \" + point2);\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 point1 = 0",
"point1",
"0",
"point2 = 0;",
"point2",
"0",
"String animal1",
"animal1",
"animal2;",
"animal2",
"for (int i = 0; i < n; i++) {\n\t\t\tanimal1 = sc.next();\n\t\t\tanimal2 = sc.next();\n\t\t\tchar[] array1 = animal1.toCharArray();\n\t\t\tchar[] array2 = animal2.toCharArray();\n\t\t\tint arrayLength = Math.min(array1.length, array2.length);\n\t\t\ttop: for (int j = 0; j < arrayLength; j++) {\n\t\t\t\tif (array1[j] > array2[j]) {\n\t\t\t\t\tpoint1 += 3;\n\t\t\t\t\tbreak top;\n\t\t\t\t} else if (array1[j] < array2[j]) {\n\t\t\t\t\tpoint2 += 3;\n\t\t\t\t\tbreak top;\n\t\t\t\t} else if (j == arrayLength - 1) {\n\t\t\t\t\tif (array1.length == array2.length) {\n\t\t\t\t\t\tpoint1 += 1;\n\t\t\t\t\t\tpoint2 += 1;\n\t\t\t\t\t\tbreak top;\n\t\t\t\t\t} else if (array1.length > array2.length) {\n\t\t\t\t\t\tpoint1 += 3;\n\t\t\t\t\t\tbreak top;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpoint2 += 3;\n\t\t\t\t\t\tbreak top;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tanimal1 = sc.next();\n\t\t\tanimal2 = sc.next();\n\t\t\tchar[] array1 = animal1.toCharArray();\n\t\t\tchar[] array2 = animal2.toCharArray();\n\t\t\tint arrayLength = Math.min(array1.length, array2.length);\n\t\t\ttop: for (int j = 0; j < arrayLength; j++) {\n\t\t\t\tif (array1[j] > array2[j]) {\n\t\t\t\t\tpoint1 += 3;\n\t\t\t\t\tbreak top;\n\t\t\t\t} else if (array1[j] < array2[j]) {\n\t\t\t\t\tpoint2 += 3;\n\t\t\t\t\tbreak top;\n\t\t\t\t} else if (j == arrayLength - 1) {\n\t\t\t\t\tif (array1.length == array2.length) {\n\t\t\t\t\t\tpoint1 += 1;\n\t\t\t\t\t\tpoint2 += 1;\n\t\t\t\t\t\tbreak top;\n\t\t\t\t\t} else if (array1.length > array2.length) {\n\t\t\t\t\t\tpoint1 += 3;\n\t\t\t\t\t\tbreak top;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpoint2 += 3;\n\t\t\t\t\t\tbreak top;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tanimal1 = sc.next();\n\t\t\tanimal2 = sc.next();\n\t\t\tchar[] array1 = animal1.toCharArray();\n\t\t\tchar[] array2 = animal2.toCharArray();\n\t\t\tint arrayLength = Math.min(array1.length, array2.length);\n\t\t\ttop: for (int j = 0; j < arrayLength; j++) {\n\t\t\t\tif (array1[j] > array2[j]) {\n\t\t\t\t\tpoint1 += 3;\n\t\t\t\t\tbreak top;\n\t\t\t\t} else if (array1[j] < array2[j]) {\n\t\t\t\t\tpoint2 += 3;\n\t\t\t\t\tbreak top;\n\t\t\t\t} else if (j == arrayLength - 1) {\n\t\t\t\t\tif (array1.length == array2.length) {\n\t\t\t\t\t\tpoint1 += 1;\n\t\t\t\t\t\tpoint2 += 1;\n\t\t\t\t\t\tbreak top;\n\t\t\t\t\t} else if (array1.length > array2.length) {\n\t\t\t\t\t\tpoint1 += 3;\n\t\t\t\t\t\tbreak top;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpoint2 += 3;\n\t\t\t\t\t\tbreak top;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"animal1 = sc.next()",
"animal1",
"sc.next()",
"sc.next",
"sc",
"animal2 = sc.next()",
"animal2",
"sc.next()",
"sc.next",
"sc",
"char[] array1 = animal1.toCharArray();",
"array1",
"animal1.toCharArray()",
"animal1.toCharArray",
"animal1",
"char[] array2 = animal2.toCharArray();",
"array2",
"animal2.toCharArray()",
"animal2.toCharArray",
"animal2",
"int arrayLength = Math.min(array1.length, array2.length);",
"arrayLength",
"Math.min(array1.length, array2.length)",
"Math.min",
"Math",
"array1.length",
"array1",
"array1.length",
"array2.length",
"array2",
"array2.length",
"System.out.println(point1 + \" \" + point2)",
"System.out.println",
"System.out",
"System",
"System.out",
"point1 + \" \" + point2",
"point1 + \" \" + point2",
"point1",
"\" \"",
"point2",
"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\tint point1 = 0, point2 = 0;\n\t\tString animal1, animal2;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tanimal1 = sc.next();\n\t\t\tanimal2 = sc.next();\n\t\t\tchar[] array1 = animal1.toCharArray();\n\t\t\tchar[] array2 = animal2.toCharArray();\n\t\t\tint arrayLength = Math.min(array1.length, array2.length);\n\t\t\ttop: for (int j = 0; j < arrayLength; j++) {\n\t\t\t\tif (array1[j] > array2[j]) {\n\t\t\t\t\tpoint1 += 3;\n\t\t\t\t\tbreak top;\n\t\t\t\t} else if (array1[j] < array2[j]) {\n\t\t\t\t\tpoint2 += 3;\n\t\t\t\t\tbreak top;\n\t\t\t\t} else if (j == arrayLength - 1) {\n\t\t\t\t\tif (array1.length == array2.length) {\n\t\t\t\t\t\tpoint1 += 1;\n\t\t\t\t\t\tpoint2 += 1;\n\t\t\t\t\t\tbreak top;\n\t\t\t\t\t} else if (array1.length > array2.length) {\n\t\t\t\t\t\tpoint1 += 3;\n\t\t\t\t\t\tbreak top;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpoint2 += 3;\n\t\t\t\t\t\tbreak top;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(point1 + \" \" + point2);\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\t\tint n = sc.nextInt();\n\t\tint point1 = 0, point2 = 0;\n\t\tString animal1, animal2;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tanimal1 = sc.next();\n\t\t\tanimal2 = sc.next();\n\t\t\tchar[] array1 = animal1.toCharArray();\n\t\t\tchar[] array2 = animal2.toCharArray();\n\t\t\tint arrayLength = Math.min(array1.length, array2.length);\n\t\t\ttop: for (int j = 0; j < arrayLength; j++) {\n\t\t\t\tif (array1[j] > array2[j]) {\n\t\t\t\t\tpoint1 += 3;\n\t\t\t\t\tbreak top;\n\t\t\t\t} else if (array1[j] < array2[j]) {\n\t\t\t\t\tpoint2 += 3;\n\t\t\t\t\tbreak top;\n\t\t\t\t} else if (j == arrayLength - 1) {\n\t\t\t\t\tif (array1.length == array2.length) {\n\t\t\t\t\t\tpoint1 += 1;\n\t\t\t\t\t\tpoint2 += 1;\n\t\t\t\t\t\tbreak top;\n\t\t\t\t\t} else if (array1.length > array2.length) {\n\t\t\t\t\t\tpoint1 += 3;\n\t\t\t\t\t\tbreak top;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpoint2 += 3;\n\t\t\t\t\t\tbreak top;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(point1 + \" \" + point2);\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 point1 = 0, point2 = 0;
String animal1, animal2;
for (int i = 0; i < n; i++) {
animal1 = sc.next();
animal2 = sc.next();
char[] array1 = animal1.toCharArray();
char[] array2 = animal2.toCharArray();
int arrayLength = Math.min(array1.length, array2.length);
top: for (int j = 0; j < arrayLength; j++) {
if (array1[j] > array2[j]) {
point1 += 3;
break top;
} else if (array1[j] < array2[j]) {
point2 += 3;
break top;
} else if (j == arrayLength - 1) {
if (array1.length == array2.length) {
point1 += 1;
point2 += 1;
break top;
} else if (array1.length > array2.length) {
point1 += 3;
break top;
} else {
point2 += 3;
break top;
}
}
}
}
System.out.println(point1 + " " + point2);
sc.close();
}
}
|
[
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
4,
18,
13,
14,
2,
13,
17,
30,
40,
13,
40,
13,
14,
2,
13,
17,
0,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
17,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
79,
8
],
[
79,
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
],
[
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
],
[
43,
44
],
[
44,
45
],
[
41,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
56,
57
],
[
49,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
62,
64
],
[
58,
65
],
[
65,
66
],
[
65,
67
],
[
11,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
68,
74
],
[
68,
75
],
[
9,
76
],
[
76,
77
],
[
0,
78
],
[
78,
79
],
[
78,
80
]
]
| [
"import java.util.*;\nimport java.io.*;\n\npublic class Main{\n public static void main(String args[]){\n Scanner in = new Scanner(System.in);\n \n int n = in.nextInt();\n int taro_point = 0, hana_point = 0;\n for(int i = 0; i < n ; i++){\n int compared = in.next().compareTo(in.next());\n\n if(compared == 0){\n taro_point++;\n hana_point++;\n }\n else if(compared > 0) taro_point += 3;\n else hana_point += 3;\n }\n\n System.out.printf(\"%d %d\\n\", taro_point, hana_point);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n public static void main(String args[]){\n Scanner in = new Scanner(System.in);\n \n int n = in.nextInt();\n int taro_point = 0, hana_point = 0;\n for(int i = 0; i < n ; i++){\n int compared = in.next().compareTo(in.next());\n\n if(compared == 0){\n taro_point++;\n hana_point++;\n }\n else if(compared > 0) taro_point += 3;\n else hana_point += 3;\n }\n\n System.out.printf(\"%d %d\\n\", taro_point, hana_point);\n }\n}",
"Main",
"public static void main(String args[]){\n Scanner in = new Scanner(System.in);\n \n int n = in.nextInt();\n int taro_point = 0, hana_point = 0;\n for(int i = 0; i < n ; i++){\n int compared = in.next().compareTo(in.next());\n\n if(compared == 0){\n taro_point++;\n hana_point++;\n }\n else if(compared > 0) taro_point += 3;\n else hana_point += 3;\n }\n\n System.out.printf(\"%d %d\\n\", taro_point, hana_point);\n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n \n int n = in.nextInt();\n int taro_point = 0, hana_point = 0;\n for(int i = 0; i < n ; i++){\n int compared = in.next().compareTo(in.next());\n\n if(compared == 0){\n taro_point++;\n hana_point++;\n }\n else if(compared > 0) taro_point += 3;\n else hana_point += 3;\n }\n\n System.out.printf(\"%d %d\\n\", taro_point, hana_point);\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"int taro_point = 0",
"taro_point",
"0",
"hana_point = 0;",
"hana_point",
"0",
"for(int i = 0; i < n ; i++){\n int compared = in.next().compareTo(in.next());\n\n if(compared == 0){\n taro_point++;\n hana_point++;\n }\n else if(compared > 0) taro_point += 3;\n else hana_point += 3;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int compared = in.next().compareTo(in.next());\n\n if(compared == 0){\n taro_point++;\n hana_point++;\n }\n else if(compared > 0) taro_point += 3;\n else hana_point += 3;\n }",
"{\n int compared = in.next().compareTo(in.next());\n\n if(compared == 0){\n taro_point++;\n hana_point++;\n }\n else if(compared > 0) taro_point += 3;\n else hana_point += 3;\n }",
"int compared = in.next().compareTo(in.next());",
"compared",
"in.next().compareTo(in.next())",
"in.next().compareTo",
"in.next()",
"in.next",
"in",
"in.next()",
"in.next",
"in",
"if(compared == 0){\n taro_point++;\n hana_point++;\n }\n else if(compared > 0) taro_point += 3;\n else hana_point += 3;",
"compared == 0",
"compared",
"0",
"{\n taro_point++;\n hana_point++;\n }",
"taro_point++",
"taro_point",
"hana_point++",
"hana_point",
"if(compared > 0) taro_point += 3;\n else hana_point += 3;",
"compared > 0",
"compared",
"0",
"taro_point += 3",
"taro_point",
"3",
"hana_point += 3",
"hana_point",
"3",
"System.out.printf(\"%d %d\\n\", taro_point, hana_point)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d %d\\n\"",
"taro_point",
"hana_point",
"String args[]",
"args",
"public class Main{\n public static void main(String args[]){\n Scanner in = new Scanner(System.in);\n \n int n = in.nextInt();\n int taro_point = 0, hana_point = 0;\n for(int i = 0; i < n ; i++){\n int compared = in.next().compareTo(in.next());\n\n if(compared == 0){\n taro_point++;\n hana_point++;\n }\n else if(compared > 0) taro_point += 3;\n else hana_point += 3;\n }\n\n System.out.printf(\"%d %d\\n\", taro_point, hana_point);\n }\n}",
"public class Main{\n public static void main(String args[]){\n Scanner in = new Scanner(System.in);\n \n int n = in.nextInt();\n int taro_point = 0, hana_point = 0;\n for(int i = 0; i < n ; i++){\n int compared = in.next().compareTo(in.next());\n\n if(compared == 0){\n taro_point++;\n hana_point++;\n }\n else if(compared > 0) taro_point += 3;\n else hana_point += 3;\n }\n\n System.out.printf(\"%d %d\\n\", taro_point, hana_point);\n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main{
public static void main(String args[]){
Scanner in = new Scanner(System.in);
int n = in.nextInt();
int taro_point = 0, hana_point = 0;
for(int i = 0; i < n ; i++){
int compared = in.next().compareTo(in.next());
if(compared == 0){
taro_point++;
hana_point++;
}
else if(compared > 0) taro_point += 3;
else hana_point += 3;
}
System.out.printf("%d %d\n", taro_point, hana_point);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
40,
18,
13,
17,
40,
18,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
0,
18,
13,
17,
17,
30,
0,
18,
13,
17,
17,
4,
18,
18,
13,
13,
4,
18,
13,
17,
18,
13,
17,
18,
13,
17,
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
],
[
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
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
36,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
36,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
49,
58
],
[
48,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
48,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
69,
78
],
[
68,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
68,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
8,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
96,
100
],
[
100,
101
],
[
100,
102
],
[
96,
103
],
[
103,
104
],
[
103,
105
],
[
6,
106
],
[
106,
107
],
[
0,
108
],
[
108,
109
],
[
108,
110
]
]
| [
"import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tint point[] = new int[2];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString game = sc.nextLine();\n\t\t\tString games[] = game.split(\" \");\n\t\t\tif (games[0].compareTo(games[1]) == 0) {\n\t\t\t\tpoint[0]++;\n\t\t\t\tpoint[1]++;\n\t\t\t} else if (games[0].compareTo(games[1]) > 0) {\n\t\t\t\tpoint[0] += 3;\n\t\t\t} else {\n\t\t\t\tpoint[1] += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(String.format(\"%d %d\", point[0], point[1]));\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tint point[] = new int[2];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString game = sc.nextLine();\n\t\t\tString games[] = game.split(\" \");\n\t\t\tif (games[0].compareTo(games[1]) == 0) {\n\t\t\t\tpoint[0]++;\n\t\t\t\tpoint[1]++;\n\t\t\t} else if (games[0].compareTo(games[1]) > 0) {\n\t\t\t\tpoint[0] += 3;\n\t\t\t} else {\n\t\t\t\tpoint[1] += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(String.format(\"%d %d\", point[0], point[1]));\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tint point[] = new int[2];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString game = sc.nextLine();\n\t\t\tString games[] = game.split(\" \");\n\t\t\tif (games[0].compareTo(games[1]) == 0) {\n\t\t\t\tpoint[0]++;\n\t\t\t\tpoint[1]++;\n\t\t\t} else if (games[0].compareTo(games[1]) > 0) {\n\t\t\t\tpoint[0] += 3;\n\t\t\t} else {\n\t\t\t\tpoint[1] += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(String.format(\"%d %d\", point[0], point[1]));\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tint point[] = new int[2];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString game = sc.nextLine();\n\t\t\tString games[] = game.split(\" \");\n\t\t\tif (games[0].compareTo(games[1]) == 0) {\n\t\t\t\tpoint[0]++;\n\t\t\t\tpoint[1]++;\n\t\t\t} else if (games[0].compareTo(games[1]) > 0) {\n\t\t\t\tpoint[0] += 3;\n\t\t\t} else {\n\t\t\t\tpoint[1] += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(String.format(\"%d %d\", point[0], point[1]));\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = Integer.parseInt(sc.nextLine());",
"n",
"Integer.parseInt(sc.nextLine())",
"Integer.parseInt",
"Integer",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int point[] = new int[2];",
"point",
"new int[2]",
"2",
"for (int i = 0; i < n; i++) {\n\t\t\tString game = sc.nextLine();\n\t\t\tString games[] = game.split(\" \");\n\t\t\tif (games[0].compareTo(games[1]) == 0) {\n\t\t\t\tpoint[0]++;\n\t\t\t\tpoint[1]++;\n\t\t\t} else if (games[0].compareTo(games[1]) > 0) {\n\t\t\t\tpoint[0] += 3;\n\t\t\t} else {\n\t\t\t\tpoint[1] += 3;\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 game = sc.nextLine();\n\t\t\tString games[] = game.split(\" \");\n\t\t\tif (games[0].compareTo(games[1]) == 0) {\n\t\t\t\tpoint[0]++;\n\t\t\t\tpoint[1]++;\n\t\t\t} else if (games[0].compareTo(games[1]) > 0) {\n\t\t\t\tpoint[0] += 3;\n\t\t\t} else {\n\t\t\t\tpoint[1] += 3;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString game = sc.nextLine();\n\t\t\tString games[] = game.split(\" \");\n\t\t\tif (games[0].compareTo(games[1]) == 0) {\n\t\t\t\tpoint[0]++;\n\t\t\t\tpoint[1]++;\n\t\t\t} else if (games[0].compareTo(games[1]) > 0) {\n\t\t\t\tpoint[0] += 3;\n\t\t\t} else {\n\t\t\t\tpoint[1] += 3;\n\t\t\t}\n\t\t}",
"String game = sc.nextLine();",
"game",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String games[] = game.split(\" \");",
"games",
"game.split(\" \")",
"game.split",
"game",
"\" \"",
"if (games[0].compareTo(games[1]) == 0) {\n\t\t\t\tpoint[0]++;\n\t\t\t\tpoint[1]++;\n\t\t\t} else if (games[0].compareTo(games[1]) > 0) {\n\t\t\t\tpoint[0] += 3;\n\t\t\t} else {\n\t\t\t\tpoint[1] += 3;\n\t\t\t}",
"games[0].compareTo(games[1]) == 0",
"games[0].compareTo(games[1])",
"games[0].compareTo",
"games[0]",
"games",
"0",
"games[1]",
"games",
"1",
"0",
"{\n\t\t\t\tpoint[0]++;\n\t\t\t\tpoint[1]++;\n\t\t\t}",
"point[0]++",
"point[0]",
"point",
"0",
"point[1]++",
"point[1]",
"point",
"1",
"if (games[0].compareTo(games[1]) > 0) {\n\t\t\t\tpoint[0] += 3;\n\t\t\t} else {\n\t\t\t\tpoint[1] += 3;\n\t\t\t}",
"games[0].compareTo(games[1]) > 0",
"games[0].compareTo(games[1])",
"games[0].compareTo",
"games[0]",
"games",
"0",
"games[1]",
"games",
"1",
"0",
"{\n\t\t\t\tpoint[0] += 3;\n\t\t\t}",
"point[0] += 3",
"point[0]",
"point",
"0",
"3",
"{\n\t\t\t\tpoint[1] += 3;\n\t\t\t}",
"point[1] += 3",
"point[1]",
"point",
"1",
"3",
"System.out.println(String.format(\"%d %d\", point[0], point[1]))",
"System.out.println",
"System.out",
"System",
"System.out",
"String.format(\"%d %d\", point[0], point[1])",
"String.format",
"String",
"\"%d %d\"",
"point[0]",
"point",
"0",
"point[1]",
"point",
"1",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tint point[] = new int[2];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString game = sc.nextLine();\n\t\t\tString games[] = game.split(\" \");\n\t\t\tif (games[0].compareTo(games[1]) == 0) {\n\t\t\t\tpoint[0]++;\n\t\t\t\tpoint[1]++;\n\t\t\t} else if (games[0].compareTo(games[1]) > 0) {\n\t\t\t\tpoint[0] += 3;\n\t\t\t} else {\n\t\t\t\tpoint[1] += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(String.format(\"%d %d\", point[0], point[1]));\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tint point[] = new int[2];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString game = sc.nextLine();\n\t\t\tString games[] = game.split(\" \");\n\t\t\tif (games[0].compareTo(games[1]) == 0) {\n\t\t\t\tpoint[0]++;\n\t\t\t\tpoint[1]++;\n\t\t\t} else if (games[0].compareTo(games[1]) > 0) {\n\t\t\t\tpoint[0] += 3;\n\t\t\t} else {\n\t\t\t\tpoint[1] += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(String.format(\"%d %d\", point[0], point[1]));\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 = Integer.parseInt(sc.nextLine());
int point[] = new int[2];
for (int i = 0; i < n; i++) {
String game = sc.nextLine();
String games[] = game.split(" ");
if (games[0].compareTo(games[1]) == 0) {
point[0]++;
point[1]++;
} else if (games[0].compareTo(games[1]) > 0) {
point[0] += 3;
} else {
point[1] += 3;
}
}
System.out.println(String.format("%d %d", point[0], point[1]));
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
41,
13,
20,
4,
18,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
40,
4,
18,
13,
13,
30,
11,
1,
41,
13,
17,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
30,
0,
13,
17,
3,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
30,
0,
13,
17,
3,
14,
2,
13,
2,
13,
17,
30,
14,
2,
13,
4,
18,
13,
30,
0,
13,
17,
3,
0,
13,
17,
30,
40,
13,
40,
13,
4,
18,
13,
2,
2,
13,
17,
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,
0,
13,
20,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
0,
13,
20,
29,
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
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
28,
29
],
[
28,
30
],
[
0,
31
],
[
31,
32
],
[
31,
33
],
[
0,
34
],
[
34,
35
],
[
34,
36
],
[
0,
37
],
[
37,
38
],
[
37,
39
],
[
0,
40
],
[
40,
41
],
[
40,
42
],
[
0,
43
],
[
43,
44
],
[
43,
45
],
[
0,
46
],
[
46,
47
],
[
46,
48
],
[
0,
49
],
[
317,
50
],
[
317,
51
],
[
51,
52
],
[
317,
53
],
[
53,
54
],
[
317,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
61,
63
],
[
57,
64
],
[
64,
65
],
[
64,
66
],
[
57,
67
],
[
67,
68
],
[
68,
69
],
[
57,
70
],
[
70,
71
],
[
71,
72
],
[
55,
73
],
[
73,
74
],
[
317,
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
],
[
88,
90
],
[
79,
91
],
[
91,
92
],
[
79,
93
],
[
93,
94
],
[
79,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
100,
101
],
[
100,
102
],
[
95,
103
],
[
103,
104
],
[
104,
105
],
[
95,
106
],
[
107,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
107,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
107,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
118,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
132,
135
],
[
135,
136
],
[
136,
137
],
[
132,
138
],
[
138,
139
],
[
139,
140
],
[
125,
141
],
[
141,
142
],
[
141,
143
],
[
125,
144
],
[
144,
145
],
[
145,
146
],
[
125,
147
],
[
148,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
151,
154
],
[
150,
155
],
[
155,
156
],
[
156,
157
],
[
155,
158
],
[
149,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
159,
163
],
[
149,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
166,
169
],
[
165,
170
],
[
170,
171
],
[
171,
172
],
[
170,
173
],
[
164,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
174,
178
],
[
148,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
182,
184
],
[
179,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
190,
191
],
[
186,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
192,
196
],
[
185,
197
],
[
197,
198
],
[
197,
199
],
[
118,
200
],
[
200,
201
],
[
201,
202
],
[
200,
203
],
[
203,
204
],
[
79,
205
],
[
205,
206
],
[
206,
207
],
[
205,
208
],
[
209,
209
],
[
209,
210
],
[
209,
211
],
[
209,
212
],
[
317,
213
],
[
213,
214
],
[
213,
215
],
[
215,
216
],
[
213,
217
],
[
217,
218
],
[
213,
219
],
[
219,
220
],
[
219,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
219,
225
],
[
225,
226
],
[
213,
227
],
[
227,
228
],
[
227,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
231,
235
],
[
235,
236
],
[
236,
237
],
[
237,
238
],
[
230,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
229,
243
],
[
243,
244
],
[
244,
245
],
[
245,
246
],
[
244,
247
],
[
247,
248
],
[
248,
249
],
[
213,
250
],
[
250,
251
],
[
250,
252
],
[
252,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
255,
257
],
[
254,
258
],
[
258,
259
],
[
259,
260
],
[
260,
261
],
[
253,
262
],
[
262,
263
],
[
263,
264
],
[
263,
265
],
[
252,
266
],
[
266,
267
],
[
267,
268
],
[
268,
269
],
[
267,
270
],
[
270,
271
],
[
271,
272
],
[
213,
273
],
[
273,
274
],
[
273,
275
],
[
275,
276
],
[
276,
277
],
[
277,
278
],
[
278,
279
],
[
278,
280
],
[
277,
281
],
[
281,
282
],
[
282,
283
],
[
283,
284
],
[
276,
285
],
[
285,
286
],
[
286,
287
],
[
286,
288
],
[
275,
289
],
[
289,
290
],
[
290,
291
],
[
291,
292
],
[
213,
293
],
[
293,
294
],
[
293,
295
],
[
295,
296
],
[
296,
297
],
[
297,
298
],
[
298,
299
],
[
298,
300
],
[
297,
301
],
[
301,
302
],
[
302,
303
],
[
303,
304
],
[
296,
305
],
[
305,
306
],
[
306,
307
],
[
306,
308
],
[
295,
309
],
[
309,
310
],
[
310,
311
],
[
311,
312
],
[
310,
313
],
[
313,
314
],
[
314,
315
],
[
0,
316
],
[
316,
317
],
[
316,
318
]
]
| [
"import java.awt.Frame;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.OutputStream;\nimport java.io.PrintWriter;\nimport java.util.Arrays;\nimport java.util.StringTokenizer;\nimport javax.sql.rowset.FilteredRowSet;\nimport javax.swing.BorderFactory;\nimport javax.xml.parsers.DocumentBuilder;\nimport javax.xml.stream.events.EndDocument;\nimport java.math.BigInteger;\nimport java.time.chrono.MinguoChronology;\nimport java.util.Scanner;\n\npublic class Main {\n static InputReader in;\n static PrintWriter out;\n \n static class Solution {\n void solve() throws IOException {\n int n = in.nextInt();\n int taropoint = 0;\n int hanakopoint = 0;\n String tarocard;\n String hanakocard;\n \n for (int i = 0; i < n; i++) {\n tarocard = in.next();\n hanakocard = in.next();\n \n if (!tarocard.equals(hanakocard)) { \n for (int j = 0, min = Math.min(tarocard.length(), hanakocard.length()); j < min; j++) {\n if (tarocard.charAt(j) > hanakocard.charAt(j)) {\n taropoint += 3;\n break;\n } else if (tarocard.charAt(j) < hanakocard.charAt(j)){\n hanakopoint += 3;\n break;\n }\n \n if (j == min - 1) {\n if (min == tarocard.length()) {\n hanakopoint +=3;\n break;\n } \n taropoint += 3;\n }\n }\n } else {\n taropoint++;\n hanakopoint++;\n }\n }\n \n out.println(taropoint + \" \" + hanakopoint);\n \n// End solve()\n }\n \n// End solution\n } \n \n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n \n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n \n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n \n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken()); \n }\n \n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n \n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n \n }\n \n}",
"import java.awt.Frame;",
"Frame",
"java.awt",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"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.util.Arrays;",
"Arrays",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import javax.sql.rowset.FilteredRowSet;",
"FilteredRowSet",
"javax.sql.rowset",
"import javax.swing.BorderFactory;",
"BorderFactory",
"javax.swing",
"import javax.xml.parsers.DocumentBuilder;",
"DocumentBuilder",
"javax.xml.parsers",
"import javax.xml.stream.events.EndDocument;",
"EndDocument",
"javax.xml.stream.events",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"import java.time.chrono.MinguoChronology;",
"MinguoChronology",
"java.time.chrono",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n static InputReader in;\n static PrintWriter out;\n \n static class Solution {\n void solve() throws IOException {\n int n = in.nextInt();\n int taropoint = 0;\n int hanakopoint = 0;\n String tarocard;\n String hanakocard;\n \n for (int i = 0; i < n; i++) {\n tarocard = in.next();\n hanakocard = in.next();\n \n if (!tarocard.equals(hanakocard)) { \n for (int j = 0, min = Math.min(tarocard.length(), hanakocard.length()); j < min; j++) {\n if (tarocard.charAt(j) > hanakocard.charAt(j)) {\n taropoint += 3;\n break;\n } else if (tarocard.charAt(j) < hanakocard.charAt(j)){\n hanakopoint += 3;\n break;\n }\n \n if (j == min - 1) {\n if (min == tarocard.length()) {\n hanakopoint +=3;\n break;\n } \n taropoint += 3;\n }\n }\n } else {\n taropoint++;\n hanakopoint++;\n }\n }\n \n out.println(taropoint + \" \" + hanakopoint);\n \n// End solve()\n }\n \n// End solution\n } \n \n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n \n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n \n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n \n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken()); \n }\n \n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n \n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n \n }\n \n}",
"Main",
"static InputReader in;",
"in",
"static PrintWriter out;",
"out",
"public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}",
"main",
"{\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}",
"in = new InputReader(System.in)",
"in",
"new InputReader(System.in)",
"out = new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"Solution solver = new Solution();",
"solver",
"new Solution()",
"solver.solve()",
"solver.solve",
"solver",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class Solution {\n void solve() throws IOException {\n int n = in.nextInt();\n int taropoint = 0;\n int hanakopoint = 0;\n String tarocard;\n String hanakocard;\n \n for (int i = 0; i < n; i++) {\n tarocard = in.next();\n hanakocard = in.next();\n \n if (!tarocard.equals(hanakocard)) { \n for (int j = 0, min = Math.min(tarocard.length(), hanakocard.length()); j < min; j++) {\n if (tarocard.charAt(j) > hanakocard.charAt(j)) {\n taropoint += 3;\n break;\n } else if (tarocard.charAt(j) < hanakocard.charAt(j)){\n hanakopoint += 3;\n break;\n }\n \n if (j == min - 1) {\n if (min == tarocard.length()) {\n hanakopoint +=3;\n break;\n } \n taropoint += 3;\n }\n }\n } else {\n taropoint++;\n hanakopoint++;\n }\n }\n \n out.println(taropoint + \" \" + hanakopoint);\n \n// End solve()\n }\n \n// End solution\n }",
"Solution",
"void solve() throws IOException {\n int n = in.nextInt();\n int taropoint = 0;\n int hanakopoint = 0;\n String tarocard;\n String hanakocard;\n \n for (int i = 0; i < n; i++) {\n tarocard = in.next();\n hanakocard = in.next();\n \n if (!tarocard.equals(hanakocard)) { \n for (int j = 0, min = Math.min(tarocard.length(), hanakocard.length()); j < min; j++) {\n if (tarocard.charAt(j) > hanakocard.charAt(j)) {\n taropoint += 3;\n break;\n } else if (tarocard.charAt(j) < hanakocard.charAt(j)){\n hanakopoint += 3;\n break;\n }\n \n if (j == min - 1) {\n if (min == tarocard.length()) {\n hanakopoint +=3;\n break;\n } \n taropoint += 3;\n }\n }\n } else {\n taropoint++;\n hanakopoint++;\n }\n }\n \n out.println(taropoint + \" \" + hanakopoint);\n \n// End solve()\n }",
"solve",
"{\n int n = in.nextInt();\n int taropoint = 0;\n int hanakopoint = 0;\n String tarocard;\n String hanakocard;\n \n for (int i = 0; i < n; i++) {\n tarocard = in.next();\n hanakocard = in.next();\n \n if (!tarocard.equals(hanakocard)) { \n for (int j = 0, min = Math.min(tarocard.length(), hanakocard.length()); j < min; j++) {\n if (tarocard.charAt(j) > hanakocard.charAt(j)) {\n taropoint += 3;\n break;\n } else if (tarocard.charAt(j) < hanakocard.charAt(j)){\n hanakopoint += 3;\n break;\n }\n \n if (j == min - 1) {\n if (min == tarocard.length()) {\n hanakopoint +=3;\n break;\n } \n taropoint += 3;\n }\n }\n } else {\n taropoint++;\n hanakopoint++;\n }\n }\n \n out.println(taropoint + \" \" + hanakopoint);\n \n// End solve()\n }",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"int taropoint = 0;",
"taropoint",
"0",
"int hanakopoint = 0;",
"hanakopoint",
"0",
"String tarocard;",
"tarocard",
"String hanakocard;",
"hanakocard",
"for (int i = 0; i < n; i++) {\n tarocard = in.next();\n hanakocard = in.next();\n \n if (!tarocard.equals(hanakocard)) { \n for (int j = 0, min = Math.min(tarocard.length(), hanakocard.length()); j < min; j++) {\n if (tarocard.charAt(j) > hanakocard.charAt(j)) {\n taropoint += 3;\n break;\n } else if (tarocard.charAt(j) < hanakocard.charAt(j)){\n hanakopoint += 3;\n break;\n }\n \n if (j == min - 1) {\n if (min == tarocard.length()) {\n hanakopoint +=3;\n break;\n } \n taropoint += 3;\n }\n }\n } else {\n taropoint++;\n hanakopoint++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n tarocard = in.next();\n hanakocard = in.next();\n \n if (!tarocard.equals(hanakocard)) { \n for (int j = 0, min = Math.min(tarocard.length(), hanakocard.length()); j < min; j++) {\n if (tarocard.charAt(j) > hanakocard.charAt(j)) {\n taropoint += 3;\n break;\n } else if (tarocard.charAt(j) < hanakocard.charAt(j)){\n hanakopoint += 3;\n break;\n }\n \n if (j == min - 1) {\n if (min == tarocard.length()) {\n hanakopoint +=3;\n break;\n } \n taropoint += 3;\n }\n }\n } else {\n taropoint++;\n hanakopoint++;\n }\n }",
"{\n tarocard = in.next();\n hanakocard = in.next();\n \n if (!tarocard.equals(hanakocard)) { \n for (int j = 0, min = Math.min(tarocard.length(), hanakocard.length()); j < min; j++) {\n if (tarocard.charAt(j) > hanakocard.charAt(j)) {\n taropoint += 3;\n break;\n } else if (tarocard.charAt(j) < hanakocard.charAt(j)){\n hanakopoint += 3;\n break;\n }\n \n if (j == min - 1) {\n if (min == tarocard.length()) {\n hanakopoint +=3;\n break;\n } \n taropoint += 3;\n }\n }\n } else {\n taropoint++;\n hanakopoint++;\n }\n }",
"tarocard = in.next()",
"tarocard",
"in.next()",
"in.next",
"in",
"hanakocard = in.next()",
"hanakocard",
"in.next()",
"in.next",
"in",
"if (!tarocard.equals(hanakocard)) { \n for (int j = 0, min = Math.min(tarocard.length(), hanakocard.length()); j < min; j++) {\n if (tarocard.charAt(j) > hanakocard.charAt(j)) {\n taropoint += 3;\n break;\n } else if (tarocard.charAt(j) < hanakocard.charAt(j)){\n hanakopoint += 3;\n break;\n }\n \n if (j == min - 1) {\n if (min == tarocard.length()) {\n hanakopoint +=3;\n break;\n } \n taropoint += 3;\n }\n }\n } else {\n taropoint++;\n hanakopoint++;\n }",
"!tarocard.equals(hanakocard)",
"tarocard.equals(hanakocard)",
"tarocard.equals",
"tarocard",
"hanakocard",
"{ \n for (int j = 0, min = Math.min(tarocard.length(), hanakocard.length()); j < min; j++) {\n if (tarocard.charAt(j) > hanakocard.charAt(j)) {\n taropoint += 3;\n break;\n } else if (tarocard.charAt(j) < hanakocard.charAt(j)){\n hanakopoint += 3;\n break;\n }\n \n if (j == min - 1) {\n if (min == tarocard.length()) {\n hanakopoint +=3;\n break;\n } \n taropoint += 3;\n }\n }\n }",
"for (int j = 0, min = Math.min(tarocard.length(), hanakocard.length()); j < min; j++) {\n if (tarocard.charAt(j) > hanakocard.charAt(j)) {\n taropoint += 3;\n break;\n } else if (tarocard.charAt(j) < hanakocard.charAt(j)){\n hanakopoint += 3;\n break;\n }\n \n if (j == min - 1) {\n if (min == tarocard.length()) {\n hanakopoint +=3;\n break;\n } \n taropoint += 3;\n }\n }",
"int j = 0, min = Math.min(tarocard.length(), hanakocard.length());",
"int j = 0",
"j",
"0",
"min = Math.min(tarocard.length(), hanakocard.length());",
"min",
"Math.min(tarocard.length(), hanakocard.length())",
"Math.min",
"Math",
"tarocard.length()",
"tarocard.length",
"tarocard",
"hanakocard.length()",
"hanakocard.length",
"hanakocard",
"j < min",
"j",
"min",
"j++",
"j++",
"j",
"{\n if (tarocard.charAt(j) > hanakocard.charAt(j)) {\n taropoint += 3;\n break;\n } else if (tarocard.charAt(j) < hanakocard.charAt(j)){\n hanakopoint += 3;\n break;\n }\n \n if (j == min - 1) {\n if (min == tarocard.length()) {\n hanakopoint +=3;\n break;\n } \n taropoint += 3;\n }\n }",
"{\n if (tarocard.charAt(j) > hanakocard.charAt(j)) {\n taropoint += 3;\n break;\n } else if (tarocard.charAt(j) < hanakocard.charAt(j)){\n hanakopoint += 3;\n break;\n }\n \n if (j == min - 1) {\n if (min == tarocard.length()) {\n hanakopoint +=3;\n break;\n } \n taropoint += 3;\n }\n }",
"if (tarocard.charAt(j) > hanakocard.charAt(j)) {\n taropoint += 3;\n break;\n } else if (tarocard.charAt(j) < hanakocard.charAt(j)){\n hanakopoint += 3;\n break;\n }",
"tarocard.charAt(j) > hanakocard.charAt(j)",
"tarocard.charAt(j)",
"tarocard.charAt",
"tarocard",
"j",
"hanakocard.charAt(j)",
"hanakocard.charAt",
"hanakocard",
"j",
"{\n taropoint += 3;\n break;\n }",
"taropoint += 3",
"taropoint",
"3",
"break;",
"if (tarocard.charAt(j) < hanakocard.charAt(j)){\n hanakopoint += 3;\n break;\n }",
"tarocard.charAt(j) < hanakocard.charAt(j)",
"tarocard.charAt(j)",
"tarocard.charAt",
"tarocard",
"j",
"hanakocard.charAt(j)",
"hanakocard.charAt",
"hanakocard",
"j",
"{\n hanakopoint += 3;\n break;\n }",
"hanakopoint += 3",
"hanakopoint",
"3",
"break;",
"if (j == min - 1) {\n if (min == tarocard.length()) {\n hanakopoint +=3;\n break;\n } \n taropoint += 3;\n }",
"j == min - 1",
"j",
"min - 1",
"min",
"1",
"{\n if (min == tarocard.length()) {\n hanakopoint +=3;\n break;\n } \n taropoint += 3;\n }",
"if (min == tarocard.length()) {\n hanakopoint +=3;\n break;\n }",
"min == tarocard.length()",
"min",
"tarocard.length()",
"tarocard.length",
"tarocard",
"{\n hanakopoint +=3;\n break;\n }",
"hanakopoint +=3",
"hanakopoint",
"3",
"break;",
"taropoint += 3",
"taropoint",
"3",
"{\n taropoint++;\n hanakopoint++;\n }",
"taropoint++",
"taropoint",
"hanakopoint++",
"hanakopoint",
"out.println(taropoint + \" \" + hanakopoint)",
"out.println",
"out",
"taropoint + \" \" + hanakopoint",
"taropoint + \" \" + hanakopoint",
"taropoint",
"\" \"",
"hanakopoint",
"static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n \n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n \n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n \n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken()); \n }\n \n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n \n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n \n }",
"InputReader",
"public BufferedReader br;",
"br",
"public StringTokenizer st;",
"st",
"public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }",
"InputReader",
"{\n br = new BufferedReader(new InputStreamReader(stream));\n }",
"br = new BufferedReader(new InputStreamReader(stream))",
"br",
"new BufferedReader(new InputStreamReader(stream))",
"InputStream stream",
"stream",
"public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }",
"nextInt",
"{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }",
"while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n st = new StringTokenizer(br.readLine());\n }",
"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",
"public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken()); \n }",
"nextLong",
"{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken()); \n }",
"while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return Long.parseLong(st.nextToken());",
"Long.parseLong(st.nextToken())",
"Long.parseLong",
"Long",
"st.nextToken()",
"st.nextToken",
"st",
"public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\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 double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }",
"nextDouble",
"{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }",
"while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return Double.parseDouble(st.nextToken());",
"Double.parseDouble(st.nextToken())",
"Double.parseDouble",
"Double",
"st.nextToken()",
"st.nextToken",
"st",
"public class Main {\n static InputReader in;\n static PrintWriter out;\n \n static class Solution {\n void solve() throws IOException {\n int n = in.nextInt();\n int taropoint = 0;\n int hanakopoint = 0;\n String tarocard;\n String hanakocard;\n \n for (int i = 0; i < n; i++) {\n tarocard = in.next();\n hanakocard = in.next();\n \n if (!tarocard.equals(hanakocard)) { \n for (int j = 0, min = Math.min(tarocard.length(), hanakocard.length()); j < min; j++) {\n if (tarocard.charAt(j) > hanakocard.charAt(j)) {\n taropoint += 3;\n break;\n } else if (tarocard.charAt(j) < hanakocard.charAt(j)){\n hanakopoint += 3;\n break;\n }\n \n if (j == min - 1) {\n if (min == tarocard.length()) {\n hanakopoint +=3;\n break;\n } \n taropoint += 3;\n }\n }\n } else {\n taropoint++;\n hanakopoint++;\n }\n }\n \n out.println(taropoint + \" \" + hanakopoint);\n \n// End solve()\n }\n \n// End solution\n } \n \n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n \n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n \n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n \n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken()); \n }\n \n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n \n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n \n }\n \n}",
"public class Main {\n static InputReader in;\n static PrintWriter out;\n \n static class Solution {\n void solve() throws IOException {\n int n = in.nextInt();\n int taropoint = 0;\n int hanakopoint = 0;\n String tarocard;\n String hanakocard;\n \n for (int i = 0; i < n; i++) {\n tarocard = in.next();\n hanakocard = in.next();\n \n if (!tarocard.equals(hanakocard)) { \n for (int j = 0, min = Math.min(tarocard.length(), hanakocard.length()); j < min; j++) {\n if (tarocard.charAt(j) > hanakocard.charAt(j)) {\n taropoint += 3;\n break;\n } else if (tarocard.charAt(j) < hanakocard.charAt(j)){\n hanakopoint += 3;\n break;\n }\n \n if (j == min - 1) {\n if (min == tarocard.length()) {\n hanakopoint +=3;\n break;\n } \n taropoint += 3;\n }\n }\n } else {\n taropoint++;\n hanakopoint++;\n }\n }\n \n out.println(taropoint + \" \" + hanakopoint);\n \n// End solve()\n }\n \n// End solution\n } \n \n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n \n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n \n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n \n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken()); \n }\n \n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n \n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n \n }\n \n}",
"Main"
]
| import java.awt.Frame;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.StringTokenizer;
import javax.sql.rowset.FilteredRowSet;
import javax.swing.BorderFactory;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.stream.events.EndDocument;
import java.math.BigInteger;
import java.time.chrono.MinguoChronology;
import java.util.Scanner;
public class Main {
static InputReader in;
static PrintWriter out;
static class Solution {
void solve() throws IOException {
int n = in.nextInt();
int taropoint = 0;
int hanakopoint = 0;
String tarocard;
String hanakocard;
for (int i = 0; i < n; i++) {
tarocard = in.next();
hanakocard = in.next();
if (!tarocard.equals(hanakocard)) {
for (int j = 0, min = Math.min(tarocard.length(), hanakocard.length()); j < min; j++) {
if (tarocard.charAt(j) > hanakocard.charAt(j)) {
taropoint += 3;
break;
} else if (tarocard.charAt(j) < hanakocard.charAt(j)){
hanakopoint += 3;
break;
}
if (j == min - 1) {
if (min == tarocard.length()) {
hanakopoint +=3;
break;
}
taropoint += 3;
}
}
} else {
taropoint++;
hanakopoint++;
}
}
out.println(taropoint + " " + hanakopoint);
// End solve()
}
// End solution
}
public static void main(String[] args) throws IOException {
in = new InputReader(System.in);
out = new PrintWriter(System.out);
Solution solver = new Solution();
solver.solve();
out.close();
}
static class InputReader {
public BufferedReader br;
public StringTokenizer st;
public InputReader(InputStream stream) {
br = new BufferedReader(new InputStreamReader(stream));
}
public int nextInt() throws IOException {
while (st == null || !st.hasMoreTokens()) {
st = new StringTokenizer(br.readLine());
}
return Integer.parseInt(st.nextToken());
}
public long nextLong() throws IOException {
while (st == null || !st.hasMoreTokens()) {
st = new StringTokenizer(br.readLine());
}
return Long.parseLong(st.nextToken());
}
public String next() throws IOException {
while (st == null || !st.hasMoreTokens()) {
st = new StringTokenizer(br.readLine());
}
return st.nextToken();
}
public double nextDouble() throws IOException {
while (st == null || !st.hasMoreTokens()) {
st = new StringTokenizer(br.readLine());
}
return Double.parseDouble(st.nextToken());
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
2,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
2,
13,
17,
30,
0,
13,
2,
13,
17,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
96,
5
],
[
96,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
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
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
46,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
46,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
60,
65
],
[
59,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
69,
71
],
[
59,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
75,
77
],
[
72,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
80,
82
],
[
8,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
89,
89
],
[
89,
90
],
[
89,
91
],
[
89,
92
],
[
6,
93
],
[
93,
94
],
[
0,
95
],
[
95,
96
],
[
95,
97
]
]
| [
"import java.util.Scanner;\npublic class Main {\n public static void main(String[] defargs) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int taro = 0;\n\t\tint hana = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString card1 = scanner.next();\n\t\t\tString card2 = scanner.next();\n\t\t\tif(card1.compareTo(card2) > 0){\n\t\t\t\ttaro = taro + 3;\n\t\t\t}else if (card1.compareTo(card2) < 0) {\n\t\t\t\thana = hana + 3;\n\t\t\t}else {\n\t\t\t\ttaro = taro + 1;\n\t\t\t\thana = hana + 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taro +\" \"+ hana);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] defargs) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int taro = 0;\n\t\tint hana = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString card1 = scanner.next();\n\t\t\tString card2 = scanner.next();\n\t\t\tif(card1.compareTo(card2) > 0){\n\t\t\t\ttaro = taro + 3;\n\t\t\t}else if (card1.compareTo(card2) < 0) {\n\t\t\t\thana = hana + 3;\n\t\t\t}else {\n\t\t\t\ttaro = taro + 1;\n\t\t\t\thana = hana + 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taro +\" \"+ hana);\n\t}\n}",
"Main",
"public static void main(String[] defargs) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int taro = 0;\n\t\tint hana = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString card1 = scanner.next();\n\t\t\tString card2 = scanner.next();\n\t\t\tif(card1.compareTo(card2) > 0){\n\t\t\t\ttaro = taro + 3;\n\t\t\t}else if (card1.compareTo(card2) < 0) {\n\t\t\t\thana = hana + 3;\n\t\t\t}else {\n\t\t\t\ttaro = taro + 1;\n\t\t\t\thana = hana + 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taro +\" \"+ hana);\n\t}",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int taro = 0;\n\t\tint hana = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString card1 = scanner.next();\n\t\t\tString card2 = scanner.next();\n\t\t\tif(card1.compareTo(card2) > 0){\n\t\t\t\ttaro = taro + 3;\n\t\t\t}else if (card1.compareTo(card2) < 0) {\n\t\t\t\thana = hana + 3;\n\t\t\t}else {\n\t\t\t\ttaro = taro + 1;\n\t\t\t\thana = hana + 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taro +\" \"+ hana);\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int taro = 0;",
"taro",
"0",
"int hana = 0;",
"hana",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\tString card1 = scanner.next();\n\t\t\tString card2 = scanner.next();\n\t\t\tif(card1.compareTo(card2) > 0){\n\t\t\t\ttaro = taro + 3;\n\t\t\t}else if (card1.compareTo(card2) < 0) {\n\t\t\t\thana = hana + 3;\n\t\t\t}else {\n\t\t\t\ttaro = taro + 1;\n\t\t\t\thana = hana + 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 card1 = scanner.next();\n\t\t\tString card2 = scanner.next();\n\t\t\tif(card1.compareTo(card2) > 0){\n\t\t\t\ttaro = taro + 3;\n\t\t\t}else if (card1.compareTo(card2) < 0) {\n\t\t\t\thana = hana + 3;\n\t\t\t}else {\n\t\t\t\ttaro = taro + 1;\n\t\t\t\thana = hana + 1;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString card1 = scanner.next();\n\t\t\tString card2 = scanner.next();\n\t\t\tif(card1.compareTo(card2) > 0){\n\t\t\t\ttaro = taro + 3;\n\t\t\t}else if (card1.compareTo(card2) < 0) {\n\t\t\t\thana = hana + 3;\n\t\t\t}else {\n\t\t\t\ttaro = taro + 1;\n\t\t\t\thana = hana + 1;\n\t\t\t}\n\t\t}",
"String card1 = scanner.next();",
"card1",
"scanner.next()",
"scanner.next",
"scanner",
"String card2 = scanner.next();",
"card2",
"scanner.next()",
"scanner.next",
"scanner",
"if(card1.compareTo(card2) > 0){\n\t\t\t\ttaro = taro + 3;\n\t\t\t}else if (card1.compareTo(card2) < 0) {\n\t\t\t\thana = hana + 3;\n\t\t\t}else {\n\t\t\t\ttaro = taro + 1;\n\t\t\t\thana = hana + 1;\n\t\t\t}",
"card1.compareTo(card2) > 0",
"card1.compareTo(card2)",
"card1.compareTo",
"card1",
"card2",
"0",
"{\n\t\t\t\ttaro = taro + 3;\n\t\t\t}",
"taro = taro + 3",
"taro",
"taro + 3",
"taro",
"3",
"if (card1.compareTo(card2) < 0) {\n\t\t\t\thana = hana + 3;\n\t\t\t}else {\n\t\t\t\ttaro = taro + 1;\n\t\t\t\thana = hana + 1;\n\t\t\t}",
"card1.compareTo(card2) < 0",
"card1.compareTo(card2)",
"card1.compareTo",
"card1",
"card2",
"0",
"{\n\t\t\t\thana = hana + 3;\n\t\t\t}",
"hana = hana + 3",
"hana",
"hana + 3",
"hana",
"3",
"{\n\t\t\t\ttaro = taro + 1;\n\t\t\t\thana = hana + 1;\n\t\t\t}",
"taro = taro + 1",
"taro",
"taro + 1",
"taro",
"1",
"hana = hana + 1",
"hana",
"hana + 1",
"hana",
"1",
"System.out.println(taro +\" \"+ hana)",
"System.out.println",
"System.out",
"System",
"System.out",
"taro +\" \"+ hana",
"taro +\" \"+ hana",
"taro",
"\" \"",
"hana",
"String[] defargs",
"defargs",
"public class Main {\n public static void main(String[] defargs) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int taro = 0;\n\t\tint hana = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString card1 = scanner.next();\n\t\t\tString card2 = scanner.next();\n\t\t\tif(card1.compareTo(card2) > 0){\n\t\t\t\ttaro = taro + 3;\n\t\t\t}else if (card1.compareTo(card2) < 0) {\n\t\t\t\thana = hana + 3;\n\t\t\t}else {\n\t\t\t\ttaro = taro + 1;\n\t\t\t\thana = hana + 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taro +\" \"+ hana);\n\t}\n}",
"public class Main {\n public static void main(String[] defargs) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int taro = 0;\n\t\tint hana = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString card1 = scanner.next();\n\t\t\tString card2 = scanner.next();\n\t\t\tif(card1.compareTo(card2) > 0){\n\t\t\t\ttaro = taro + 3;\n\t\t\t}else if (card1.compareTo(card2) < 0) {\n\t\t\t\thana = hana + 3;\n\t\t\t}else {\n\t\t\t\ttaro = taro + 1;\n\t\t\t\thana = hana + 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taro +\" \"+ hana);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] defargs) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int taro = 0;
int hana = 0;
for (int i = 0; i < n; i++) {
String card1 = scanner.next();
String card2 = scanner.next();
if(card1.compareTo(card2) > 0){
taro = taro + 3;
}else if (card1.compareTo(card2) < 0) {
hana = hana + 3;
}else {
taro = taro + 1;
hana = hana + 1;
}
}
System.out.println(taro +" "+ hana);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
14,
4,
18,
13,
13,
30,
40,
13,
40,
13,
30,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
84,
5
],
[
84,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
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
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
46,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
46,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
57,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
57,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
8,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
77,
77
],
[
77,
78
],
[
77,
79
],
[
77,
80
],
[
6,
81
],
[
81,
82
],
[
0,
83
],
[
83,
84
],
[
83,
85
]
]
| [
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int p_a = 0;\n int p_b = 0;\n for(int i=0; i<n; i++){\n String str_a = sc.next();\n String str_b = sc.next();\n if(str_a.compareTo(str_b) > 0) {p_a += 3;}\n else if(str_a.equals(str_b)) {\n p_a++;\n p_b++;\n }\n else {p_b += 3;}\n }\n System.out.println(p_a + \" \" + p_b);\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 p_a = 0;\n int p_b = 0;\n for(int i=0; i<n; i++){\n String str_a = sc.next();\n String str_b = sc.next();\n if(str_a.compareTo(str_b) > 0) {p_a += 3;}\n else if(str_a.equals(str_b)) {\n p_a++;\n p_b++;\n }\n else {p_b += 3;}\n }\n System.out.println(p_a + \" \" + p_b);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int p_a = 0;\n int p_b = 0;\n for(int i=0; i<n; i++){\n String str_a = sc.next();\n String str_b = sc.next();\n if(str_a.compareTo(str_b) > 0) {p_a += 3;}\n else if(str_a.equals(str_b)) {\n p_a++;\n p_b++;\n }\n else {p_b += 3;}\n }\n System.out.println(p_a + \" \" + p_b);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int p_a = 0;\n int p_b = 0;\n for(int i=0; i<n; i++){\n String str_a = sc.next();\n String str_b = sc.next();\n if(str_a.compareTo(str_b) > 0) {p_a += 3;}\n else if(str_a.equals(str_b)) {\n p_a++;\n p_b++;\n }\n else {p_b += 3;}\n }\n System.out.println(p_a + \" \" + p_b);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int p_a = 0;",
"p_a",
"0",
"int p_b = 0;",
"p_b",
"0",
"for(int i=0; i<n; i++){\n String str_a = sc.next();\n String str_b = sc.next();\n if(str_a.compareTo(str_b) > 0) {p_a += 3;}\n else if(str_a.equals(str_b)) {\n p_a++;\n p_b++;\n }\n else {p_b += 3;}\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String str_a = sc.next();\n String str_b = sc.next();\n if(str_a.compareTo(str_b) > 0) {p_a += 3;}\n else if(str_a.equals(str_b)) {\n p_a++;\n p_b++;\n }\n else {p_b += 3;}\n }",
"{\n String str_a = sc.next();\n String str_b = sc.next();\n if(str_a.compareTo(str_b) > 0) {p_a += 3;}\n else if(str_a.equals(str_b)) {\n p_a++;\n p_b++;\n }\n else {p_b += 3;}\n }",
"String str_a = sc.next();",
"str_a",
"sc.next()",
"sc.next",
"sc",
"String str_b = sc.next();",
"str_b",
"sc.next()",
"sc.next",
"sc",
"if(str_a.compareTo(str_b) > 0) {p_a += 3;}\n else if(str_a.equals(str_b)) {\n p_a++;\n p_b++;\n }\n else {p_b += 3;}",
"str_a.compareTo(str_b) > 0",
"str_a.compareTo(str_b)",
"str_a.compareTo",
"str_a",
"str_b",
"0",
"{p_a += 3;}",
"p_a += 3",
"p_a",
"3",
"if(str_a.equals(str_b)) {\n p_a++;\n p_b++;\n }\n else {p_b += 3;}",
"str_a.equals(str_b)",
"str_a.equals",
"str_a",
"str_b",
"{\n p_a++;\n p_b++;\n }",
"p_a++",
"p_a",
"p_b++",
"p_b",
"{p_b += 3;}",
"p_b += 3",
"p_b",
"3",
"System.out.println(p_a + \" \" + p_b)",
"System.out.println",
"System.out",
"System",
"System.out",
"p_a + \" \" + p_b",
"p_a + \" \" + p_b",
"p_a",
"\" \"",
"p_b",
"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 p_a = 0;\n int p_b = 0;\n for(int i=0; i<n; i++){\n String str_a = sc.next();\n String str_b = sc.next();\n if(str_a.compareTo(str_b) > 0) {p_a += 3;}\n else if(str_a.equals(str_b)) {\n p_a++;\n p_b++;\n }\n else {p_b += 3;}\n }\n System.out.println(p_a + \" \" + p_b);\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 p_a = 0;\n int p_b = 0;\n for(int i=0; i<n; i++){\n String str_a = sc.next();\n String str_b = sc.next();\n if(str_a.compareTo(str_b) > 0) {p_a += 3;}\n else if(str_a.equals(str_b)) {\n p_a++;\n p_b++;\n }\n else {p_b += 3;}\n }\n System.out.println(p_a + \" \" + p_b);\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 p_a = 0;
int p_b = 0;
for(int i=0; i<n; i++){
String str_a = sc.next();
String str_b = sc.next();
if(str_a.compareTo(str_b) > 0) {p_a += 3;}
else if(str_a.equals(str_b)) {
p_a++;
p_b++;
}
else {p_b += 3;}
}
System.out.println(p_a + " " + p_b);
}
}
|
[
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
40,
13,
40,
13,
4,
18,
18,
13,
13,
17,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
94,
5
],
[
94,
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
],
[
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
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
50,
55
],
[
49,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
49,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
61,
66
],
[
60,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
60,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
72,
77
],
[
71,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
81,
82
],
[
8,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
83,
89
],
[
83,
90
],
[
6,
91
],
[
91,
92
],
[
0,
93
],
[
93,
94
],
[
93,
95
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = Integer.parseInt(sc.next());\n\n int taro = 0;\n int hanako = 0;\n for (int i = 0; i < n; i++) {\n String TS = sc.next();\n String HS = sc.next();\n\n if (TS.compareTo(HS) > 0) {\n taro += 3;\n } else if (TS.compareTo(HS) < 0){\n hanako += 3;\n } else if (TS.compareTo(HS) == 0) {\n taro++;\n hanako++;\n }\n }\n System.out.printf(\"%d %d\\n\", taro, hanako);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = Integer.parseInt(sc.next());\n\n int taro = 0;\n int hanako = 0;\n for (int i = 0; i < n; i++) {\n String TS = sc.next();\n String HS = sc.next();\n\n if (TS.compareTo(HS) > 0) {\n taro += 3;\n } else if (TS.compareTo(HS) < 0){\n hanako += 3;\n } else if (TS.compareTo(HS) == 0) {\n taro++;\n hanako++;\n }\n }\n System.out.printf(\"%d %d\\n\", taro, hanako);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = Integer.parseInt(sc.next());\n\n int taro = 0;\n int hanako = 0;\n for (int i = 0; i < n; i++) {\n String TS = sc.next();\n String HS = sc.next();\n\n if (TS.compareTo(HS) > 0) {\n taro += 3;\n } else if (TS.compareTo(HS) < 0){\n hanako += 3;\n } else if (TS.compareTo(HS) == 0) {\n taro++;\n hanako++;\n }\n }\n System.out.printf(\"%d %d\\n\", taro, hanako);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int n = Integer.parseInt(sc.next());\n\n int taro = 0;\n int hanako = 0;\n for (int i = 0; i < n; i++) {\n String TS = sc.next();\n String HS = sc.next();\n\n if (TS.compareTo(HS) > 0) {\n taro += 3;\n } else if (TS.compareTo(HS) < 0){\n hanako += 3;\n } else if (TS.compareTo(HS) == 0) {\n taro++;\n hanako++;\n }\n }\n System.out.printf(\"%d %d\\n\", taro, hanako);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = Integer.parseInt(sc.next());",
"n",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int taro = 0;",
"taro",
"0",
"int hanako = 0;",
"hanako",
"0",
"for (int i = 0; i < n; i++) {\n String TS = sc.next();\n String HS = sc.next();\n\n if (TS.compareTo(HS) > 0) {\n taro += 3;\n } else if (TS.compareTo(HS) < 0){\n hanako += 3;\n } else if (TS.compareTo(HS) == 0) {\n taro++;\n hanako++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String TS = sc.next();\n String HS = sc.next();\n\n if (TS.compareTo(HS) > 0) {\n taro += 3;\n } else if (TS.compareTo(HS) < 0){\n hanako += 3;\n } else if (TS.compareTo(HS) == 0) {\n taro++;\n hanako++;\n }\n }",
"{\n String TS = sc.next();\n String HS = sc.next();\n\n if (TS.compareTo(HS) > 0) {\n taro += 3;\n } else if (TS.compareTo(HS) < 0){\n hanako += 3;\n } else if (TS.compareTo(HS) == 0) {\n taro++;\n hanako++;\n }\n }",
"String TS = sc.next();",
"TS",
"sc.next()",
"sc.next",
"sc",
"String HS = sc.next();",
"HS",
"sc.next()",
"sc.next",
"sc",
"if (TS.compareTo(HS) > 0) {\n taro += 3;\n } else if (TS.compareTo(HS) < 0){\n hanako += 3;\n } else if (TS.compareTo(HS) == 0) {\n taro++;\n hanako++;\n }",
"TS.compareTo(HS) > 0",
"TS.compareTo(HS)",
"TS.compareTo",
"TS",
"HS",
"0",
"{\n taro += 3;\n }",
"taro += 3",
"taro",
"3",
"if (TS.compareTo(HS) < 0){\n hanako += 3;\n } else if (TS.compareTo(HS) == 0) {\n taro++;\n hanako++;\n }",
"TS.compareTo(HS) < 0",
"TS.compareTo(HS)",
"TS.compareTo",
"TS",
"HS",
"0",
"{\n hanako += 3;\n }",
"hanako += 3",
"hanako",
"3",
"if (TS.compareTo(HS) == 0) {\n taro++;\n hanako++;\n }",
"TS.compareTo(HS) == 0",
"TS.compareTo(HS)",
"TS.compareTo",
"TS",
"HS",
"0",
"{\n taro++;\n hanako++;\n }",
"taro++",
"taro",
"hanako++",
"hanako",
"System.out.printf(\"%d %d\\n\", taro, hanako)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d %d\\n\"",
"taro",
"hanako",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = Integer.parseInt(sc.next());\n\n int taro = 0;\n int hanako = 0;\n for (int i = 0; i < n; i++) {\n String TS = sc.next();\n String HS = sc.next();\n\n if (TS.compareTo(HS) > 0) {\n taro += 3;\n } else if (TS.compareTo(HS) < 0){\n hanako += 3;\n } else if (TS.compareTo(HS) == 0) {\n taro++;\n hanako++;\n }\n }\n System.out.printf(\"%d %d\\n\", taro, hanako);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = Integer.parseInt(sc.next());\n\n int taro = 0;\n int hanako = 0;\n for (int i = 0; i < n; i++) {\n String TS = sc.next();\n String HS = sc.next();\n\n if (TS.compareTo(HS) > 0) {\n taro += 3;\n } else if (TS.compareTo(HS) < 0){\n hanako += 3;\n } else if (TS.compareTo(HS) == 0) {\n taro++;\n hanako++;\n }\n }\n System.out.printf(\"%d %d\\n\", taro, hanako);\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.next());
int taro = 0;
int hanako = 0;
for (int i = 0; i < n; i++) {
String TS = sc.next();
String HS = sc.next();
if (TS.compareTo(HS) > 0) {
taro += 3;
} else if (TS.compareTo(HS) < 0){
hanako += 3;
} else if (TS.compareTo(HS) == 0) {
taro++;
hanako++;
}
}
System.out.printf("%d %d\n", taro, hanako);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
0,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
0,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
0,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
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
],
[
19,
20
],
[
20,
21
],
[
19,
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
],
[
50,
51
],
[
49,
52
],
[
41,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
54,
63
],
[
53,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
53,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
69,
78
],
[
68,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
68,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
90,
92
],
[
84,
93
],
[
83,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
98,
100
],
[
8,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
107,
107
],
[
107,
108
],
[
107,
109
],
[
107,
110
],
[
6,
111
],
[
111,
112
],
[
0,
113
],
[
113,
114
],
[
113,
115
]
]
| [
"import java.util.*;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int n = Integer.parseInt(line);\n int taro = 0;\n int hanako = 0;\n for(int i = 0; i < n; i++) {\n String line1 = sc.nextLine();\n String[] ani = line1.split(\" \");\n if(ani[0].compareTo(ani[1]) < 0) {\n hanako += 3;\n } else if(ani[1].compareTo(ani[0]) < 0) {\n taro += 3;\n }else if(ani[1].compareTo(ani[0]) == 0) {\n taro += 1;\n hanako += 1;\n }\n }\n System.out.println(taro + \" \" + hanako);\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 String line = sc.nextLine();\n int n = Integer.parseInt(line);\n int taro = 0;\n int hanako = 0;\n for(int i = 0; i < n; i++) {\n String line1 = sc.nextLine();\n String[] ani = line1.split(\" \");\n if(ani[0].compareTo(ani[1]) < 0) {\n hanako += 3;\n } else if(ani[1].compareTo(ani[0]) < 0) {\n taro += 3;\n }else if(ani[1].compareTo(ani[0]) == 0) {\n taro += 1;\n hanako += 1;\n }\n }\n System.out.println(taro + \" \" + hanako);\n\n }\n }",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int n = Integer.parseInt(line);\n int taro = 0;\n int hanako = 0;\n for(int i = 0; i < n; i++) {\n String line1 = sc.nextLine();\n String[] ani = line1.split(\" \");\n if(ani[0].compareTo(ani[1]) < 0) {\n hanako += 3;\n } else if(ani[1].compareTo(ani[0]) < 0) {\n taro += 3;\n }else if(ani[1].compareTo(ani[0]) == 0) {\n taro += 1;\n hanako += 1;\n }\n }\n System.out.println(taro + \" \" + hanako);\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int n = Integer.parseInt(line);\n int taro = 0;\n int hanako = 0;\n for(int i = 0; i < n; i++) {\n String line1 = sc.nextLine();\n String[] ani = line1.split(\" \");\n if(ani[0].compareTo(ani[1]) < 0) {\n hanako += 3;\n } else if(ani[1].compareTo(ani[0]) < 0) {\n taro += 3;\n }else if(ani[1].compareTo(ani[0]) == 0) {\n taro += 1;\n hanako += 1;\n }\n }\n System.out.println(taro + \" \" + hanako);\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String line = sc.nextLine();",
"line",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int n = Integer.parseInt(line);",
"n",
"Integer.parseInt(line)",
"Integer.parseInt",
"Integer",
"line",
"int taro = 0;",
"taro",
"0",
"int hanako = 0;",
"hanako",
"0",
"for(int i = 0; i < n; i++) {\n String line1 = sc.nextLine();\n String[] ani = line1.split(\" \");\n if(ani[0].compareTo(ani[1]) < 0) {\n hanako += 3;\n } else if(ani[1].compareTo(ani[0]) < 0) {\n taro += 3;\n }else if(ani[1].compareTo(ani[0]) == 0) {\n taro += 1;\n hanako += 1;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String line1 = sc.nextLine();\n String[] ani = line1.split(\" \");\n if(ani[0].compareTo(ani[1]) < 0) {\n hanako += 3;\n } else if(ani[1].compareTo(ani[0]) < 0) {\n taro += 3;\n }else if(ani[1].compareTo(ani[0]) == 0) {\n taro += 1;\n hanako += 1;\n }\n }",
"{\n String line1 = sc.nextLine();\n String[] ani = line1.split(\" \");\n if(ani[0].compareTo(ani[1]) < 0) {\n hanako += 3;\n } else if(ani[1].compareTo(ani[0]) < 0) {\n taro += 3;\n }else if(ani[1].compareTo(ani[0]) == 0) {\n taro += 1;\n hanako += 1;\n }\n }",
"String line1 = sc.nextLine();",
"line1",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String[] ani = line1.split(\" \");",
"ani",
"line1.split(\" \")",
"line1.split",
"line1",
"\" \"",
"if(ani[0].compareTo(ani[1]) < 0) {\n hanako += 3;\n } else if(ani[1].compareTo(ani[0]) < 0) {\n taro += 3;\n }else if(ani[1].compareTo(ani[0]) == 0) {\n taro += 1;\n hanako += 1;\n }",
"ani[0].compareTo(ani[1]) < 0",
"ani[0].compareTo(ani[1])",
"ani[0].compareTo",
"ani[0]",
"ani",
"0",
"ani[1]",
"ani",
"1",
"0",
"{\n hanako += 3;\n }",
"hanako += 3",
"hanako",
"3",
"if(ani[1].compareTo(ani[0]) < 0) {\n taro += 3;\n }else if(ani[1].compareTo(ani[0]) == 0) {\n taro += 1;\n hanako += 1;\n }",
"ani[1].compareTo(ani[0]) < 0",
"ani[1].compareTo(ani[0])",
"ani[1].compareTo",
"ani[1]",
"ani",
"1",
"ani[0]",
"ani",
"0",
"0",
"{\n taro += 3;\n }",
"taro += 3",
"taro",
"3",
"if(ani[1].compareTo(ani[0]) == 0) {\n taro += 1;\n hanako += 1;\n }",
"ani[1].compareTo(ani[0]) == 0",
"ani[1].compareTo(ani[0])",
"ani[1].compareTo",
"ani[1]",
"ani",
"1",
"ani[0]",
"ani",
"0",
"0",
"{\n taro += 1;\n hanako += 1;\n }",
"taro += 1",
"taro",
"1",
"hanako += 1",
"hanako",
"1",
"System.out.println(taro + \" \" + hanako)",
"System.out.println",
"System.out",
"System",
"System.out",
"taro + \" \" + hanako",
"taro + \" \" + hanako",
"taro",
"\" \"",
"hanako",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int n = Integer.parseInt(line);\n int taro = 0;\n int hanako = 0;\n for(int i = 0; i < n; i++) {\n String line1 = sc.nextLine();\n String[] ani = line1.split(\" \");\n if(ani[0].compareTo(ani[1]) < 0) {\n hanako += 3;\n } else if(ani[1].compareTo(ani[0]) < 0) {\n taro += 3;\n }else if(ani[1].compareTo(ani[0]) == 0) {\n taro += 1;\n hanako += 1;\n }\n }\n System.out.println(taro + \" \" + hanako);\n\n }\n }",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int n = Integer.parseInt(line);\n int taro = 0;\n int hanako = 0;\n for(int i = 0; i < n; i++) {\n String line1 = sc.nextLine();\n String[] ani = line1.split(\" \");\n if(ani[0].compareTo(ani[1]) < 0) {\n hanako += 3;\n } else if(ani[1].compareTo(ani[0]) < 0) {\n taro += 3;\n }else if(ani[1].compareTo(ani[0]) == 0) {\n taro += 1;\n hanako += 1;\n }\n }\n System.out.println(taro + \" \" + hanako);\n\n }\n }",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String line = sc.nextLine();
int n = Integer.parseInt(line);
int taro = 0;
int hanako = 0;
for(int i = 0; i < n; i++) {
String line1 = sc.nextLine();
String[] ani = line1.split(" ");
if(ani[0].compareTo(ani[1]) < 0) {
hanako += 3;
} else if(ani[1].compareTo(ani[0]) < 0) {
taro += 3;
}else if(ani[1].compareTo(ani[0]) == 0) {
taro += 1;
hanako += 1;
}
}
System.out.println(taro + " " + hanako);
}
}
|
[
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,
39,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
0,
18,
13,
17,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
40,
18,
13,
17,
40,
18,
13,
17,
30,
0,
18,
13,
17,
17,
4,
18,
18,
13,
13,
17,
18,
13,
17,
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
],
[
110,
11
],
[
110,
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
],
[
28,
30
],
[
14,
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
],
[
48,
49
],
[
49,
50
],
[
46,
51
],
[
43,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
53,
62
],
[
52,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
52,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
70,
79
],
[
69,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
69,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
14,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
95,
101
],
[
101,
102
],
[
101,
103
],
[
95,
104
],
[
104,
105
],
[
104,
106
],
[
12,
107
],
[
107,
108
],
[
0,
109
],
[
109,
110
],
[
109,
111
]
]
| [
"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\tint n = Integer.parseInt(br.readLine());\n\t\tint[] score = {0, 0};\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tString[] words = br.readLine().split(\" \");\n\t\t\tif(words[0].compareTo(words[1]) > 0){\n\t\t\t\tscore[0] += 3;\n\t\t\t}else if(words[0].compareTo(words[1]) == 0){\n\t\t\t\tscore[0]++;\n\t\t\t\tscore[1]++;\n\t\t\t}else{\n\t\t\t\tscore[1] += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d%n\", score[0], score[1]);\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\tint n = Integer.parseInt(br.readLine());\n\t\tint[] score = {0, 0};\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tString[] words = br.readLine().split(\" \");\n\t\t\tif(words[0].compareTo(words[1]) > 0){\n\t\t\t\tscore[0] += 3;\n\t\t\t}else if(words[0].compareTo(words[1]) == 0){\n\t\t\t\tscore[0]++;\n\t\t\t\tscore[1]++;\n\t\t\t}else{\n\t\t\t\tscore[1] += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d%n\", score[0], score[1]);\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\tint n = Integer.parseInt(br.readLine());\n\t\tint[] score = {0, 0};\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tString[] words = br.readLine().split(\" \");\n\t\t\tif(words[0].compareTo(words[1]) > 0){\n\t\t\t\tscore[0] += 3;\n\t\t\t}else if(words[0].compareTo(words[1]) == 0){\n\t\t\t\tscore[0]++;\n\t\t\t\tscore[1]++;\n\t\t\t}else{\n\t\t\t\tscore[1] += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d%n\", score[0], score[1]);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint[] score = {0, 0};\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tString[] words = br.readLine().split(\" \");\n\t\t\tif(words[0].compareTo(words[1]) > 0){\n\t\t\t\tscore[0] += 3;\n\t\t\t}else if(words[0].compareTo(words[1]) == 0){\n\t\t\t\tscore[0]++;\n\t\t\t\tscore[1]++;\n\t\t\t}else{\n\t\t\t\tscore[1] += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d%n\", score[0], score[1]);\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[] score = {0, 0};",
"score",
"{0, 0}",
"0",
"0",
"for(int i = 0;i < n;i++){\n\t\t\tString[] words = br.readLine().split(\" \");\n\t\t\tif(words[0].compareTo(words[1]) > 0){\n\t\t\t\tscore[0] += 3;\n\t\t\t}else if(words[0].compareTo(words[1]) == 0){\n\t\t\t\tscore[0]++;\n\t\t\t\tscore[1]++;\n\t\t\t}else{\n\t\t\t\tscore[1] += 3;\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[] words = br.readLine().split(\" \");\n\t\t\tif(words[0].compareTo(words[1]) > 0){\n\t\t\t\tscore[0] += 3;\n\t\t\t}else if(words[0].compareTo(words[1]) == 0){\n\t\t\t\tscore[0]++;\n\t\t\t\tscore[1]++;\n\t\t\t}else{\n\t\t\t\tscore[1] += 3;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString[] words = br.readLine().split(\" \");\n\t\t\tif(words[0].compareTo(words[1]) > 0){\n\t\t\t\tscore[0] += 3;\n\t\t\t}else if(words[0].compareTo(words[1]) == 0){\n\t\t\t\tscore[0]++;\n\t\t\t\tscore[1]++;\n\t\t\t}else{\n\t\t\t\tscore[1] += 3;\n\t\t\t}\n\t\t}",
"String[] words = br.readLine().split(\" \");",
"words",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"if(words[0].compareTo(words[1]) > 0){\n\t\t\t\tscore[0] += 3;\n\t\t\t}else if(words[0].compareTo(words[1]) == 0){\n\t\t\t\tscore[0]++;\n\t\t\t\tscore[1]++;\n\t\t\t}else{\n\t\t\t\tscore[1] += 3;\n\t\t\t}",
"words[0].compareTo(words[1]) > 0",
"words[0].compareTo(words[1])",
"words[0].compareTo",
"words[0]",
"words",
"0",
"words[1]",
"words",
"1",
"0",
"{\n\t\t\t\tscore[0] += 3;\n\t\t\t}",
"score[0] += 3",
"score[0]",
"score",
"0",
"3",
"if(words[0].compareTo(words[1]) == 0){\n\t\t\t\tscore[0]++;\n\t\t\t\tscore[1]++;\n\t\t\t}else{\n\t\t\t\tscore[1] += 3;\n\t\t\t}",
"words[0].compareTo(words[1]) == 0",
"words[0].compareTo(words[1])",
"words[0].compareTo",
"words[0]",
"words",
"0",
"words[1]",
"words",
"1",
"0",
"{\n\t\t\t\tscore[0]++;\n\t\t\t\tscore[1]++;\n\t\t\t}",
"score[0]++",
"score[0]",
"score",
"0",
"score[1]++",
"score[1]",
"score",
"1",
"{\n\t\t\t\tscore[1] += 3;\n\t\t\t}",
"score[1] += 3",
"score[1]",
"score",
"1",
"3",
"System.out.printf(\"%d %d%n\", score[0], score[1])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d %d%n\"",
"score[0]",
"score",
"0",
"score[1]",
"score",
"1",
"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\tint n = Integer.parseInt(br.readLine());\n\t\tint[] score = {0, 0};\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tString[] words = br.readLine().split(\" \");\n\t\t\tif(words[0].compareTo(words[1]) > 0){\n\t\t\t\tscore[0] += 3;\n\t\t\t}else if(words[0].compareTo(words[1]) == 0){\n\t\t\t\tscore[0]++;\n\t\t\t\tscore[1]++;\n\t\t\t}else{\n\t\t\t\tscore[1] += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d%n\", score[0], score[1]);\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\tint n = Integer.parseInt(br.readLine());\n\t\tint[] score = {0, 0};\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tString[] words = br.readLine().split(\" \");\n\t\t\tif(words[0].compareTo(words[1]) > 0){\n\t\t\t\tscore[0] += 3;\n\t\t\t}else if(words[0].compareTo(words[1]) == 0){\n\t\t\t\tscore[0]++;\n\t\t\t\tscore[1]++;\n\t\t\t}else{\n\t\t\t\tscore[1] += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d%n\", score[0], score[1]);\n\t}\n\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
int[] score = {0, 0};
for(int i = 0;i < n;i++){
String[] words = br.readLine().split(" ");
if(words[0].compareTo(words[1]) > 0){
score[0] += 3;
}else if(words[0].compareTo(words[1]) == 0){
score[0]++;
score[1]++;
}else{
score[1] += 3;
}
}
System.out.printf("%d %d%n", score[0], score[1]);
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
17,
41,
13,
17,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
18,
13,
17,
13,
14,
2,
13,
17,
30,
0,
18,
13,
17,
13,
30,
0,
18,
13,
17,
13,
0,
18,
13,
17,
13,
4,
18,
18,
13,
13,
2,
2,
18,
13,
17,
17,
18,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
98,
5
],
[
98,
6
],
[
6,
7
],
[
6,
8
],
[
98,
9
],
[
9,
10
],
[
9,
11
],
[
98,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
14,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
42,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
50,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
60,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
70,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
14,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
87,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
87,
92
],
[
92,
93
],
[
92,
94
],
[
12,
95
],
[
95,
96
],
[
0,
97
],
[
97,
98
],
[
97,
99
]
]
| [
"import java.util.Scanner;\n\n/**\n * Card Game\n */\npublic class Main {\n private static final int WIN = 3;\n private static final int DRAW = 1;\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n int count[] = new int[2]; // 太郎[0]と花子[1]のポイントカウンター\n int n = scan.nextInt();\n for (int i = 0; i < n; i++) {\n int point = scan.next().compareToIgnoreCase(scan.next());\n if (point > 0) {\n count[0] += WIN;\n } else if (point < 0){\n count[1] += WIN;\n } else {\n count[0] += DRAW;\n count[1] += DRAW;\n }\n }\n System.out.println(count[0] + \" \" + count[1]);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n private static final int WIN = 3;\n private static final int DRAW = 1;\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n int count[] = new int[2]; // 太郎[0]と花子[1]のポイントカウンター\n int n = scan.nextInt();\n for (int i = 0; i < n; i++) {\n int point = scan.next().compareToIgnoreCase(scan.next());\n if (point > 0) {\n count[0] += WIN;\n } else if (point < 0){\n count[1] += WIN;\n } else {\n count[0] += DRAW;\n count[1] += DRAW;\n }\n }\n System.out.println(count[0] + \" \" + count[1]);\n }\n}",
"Main",
"private static final int WIN = 3;",
"WIN",
"3",
"private static final int DRAW = 1;",
"DRAW",
"1",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n int count[] = new int[2]; // 太郎[0]と花子[1]のポイントカウンター\n int n = scan.nextInt();\n for (int i = 0; i < n; i++) {\n int point = scan.next().compareToIgnoreCase(scan.next());\n if (point > 0) {\n count[0] += WIN;\n } else if (point < 0){\n count[1] += WIN;\n } else {\n count[0] += DRAW;\n count[1] += DRAW;\n }\n }\n System.out.println(count[0] + \" \" + count[1]);\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n\n int count[] = new int[2]; // 太郎[0]と花子[1]のポイントカウンター\n int n = scan.nextInt();\n for (int i = 0; i < n; i++) {\n int point = scan.next().compareToIgnoreCase(scan.next());\n if (point > 0) {\n count[0] += WIN;\n } else if (point < 0){\n count[1] += WIN;\n } else {\n count[0] += DRAW;\n count[1] += DRAW;\n }\n }\n System.out.println(count[0] + \" \" + count[1]);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int count[] = new int[2];",
"count",
"new int[2]",
"2",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int i = 0; i < n; i++) {\n int point = scan.next().compareToIgnoreCase(scan.next());\n if (point > 0) {\n count[0] += WIN;\n } else if (point < 0){\n count[1] += WIN;\n } else {\n count[0] += DRAW;\n count[1] += DRAW;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int point = scan.next().compareToIgnoreCase(scan.next());\n if (point > 0) {\n count[0] += WIN;\n } else if (point < 0){\n count[1] += WIN;\n } else {\n count[0] += DRAW;\n count[1] += DRAW;\n }\n }",
"{\n int point = scan.next().compareToIgnoreCase(scan.next());\n if (point > 0) {\n count[0] += WIN;\n } else if (point < 0){\n count[1] += WIN;\n } else {\n count[0] += DRAW;\n count[1] += DRAW;\n }\n }",
"int point = scan.next().compareToIgnoreCase(scan.next());",
"point",
"scan.next().compareToIgnoreCase(scan.next())",
"scan.next().compareToIgnoreCase",
"scan.next()",
"scan.next",
"scan",
"scan.next()",
"scan.next",
"scan",
"if (point > 0) {\n count[0] += WIN;\n } else if (point < 0){\n count[1] += WIN;\n } else {\n count[0] += DRAW;\n count[1] += DRAW;\n }",
"point > 0",
"point",
"0",
"{\n count[0] += WIN;\n }",
"count[0] += WIN",
"count[0]",
"count",
"0",
"WIN",
"if (point < 0){\n count[1] += WIN;\n } else {\n count[0] += DRAW;\n count[1] += DRAW;\n }",
"point < 0",
"point",
"0",
"{\n count[1] += WIN;\n }",
"count[1] += WIN",
"count[1]",
"count",
"1",
"WIN",
"{\n count[0] += DRAW;\n count[1] += DRAW;\n }",
"count[0] += DRAW",
"count[0]",
"count",
"0",
"DRAW",
"count[1] += DRAW",
"count[1]",
"count",
"1",
"DRAW",
"System.out.println(count[0] + \" \" + count[1])",
"System.out.println",
"System.out",
"System",
"System.out",
"count[0] + \" \" + count[1]",
"count[0] + \" \" + count[1]",
"count[0]",
"count",
"0",
"\" \"",
"count[1]",
"count",
"1",
"String[] args",
"args",
"public class Main {\n private static final int WIN = 3;\n private static final int DRAW = 1;\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n int count[] = new int[2]; // 太郎[0]と花子[1]のポイントカウンター\n int n = scan.nextInt();\n for (int i = 0; i < n; i++) {\n int point = scan.next().compareToIgnoreCase(scan.next());\n if (point > 0) {\n count[0] += WIN;\n } else if (point < 0){\n count[1] += WIN;\n } else {\n count[0] += DRAW;\n count[1] += DRAW;\n }\n }\n System.out.println(count[0] + \" \" + count[1]);\n }\n}",
"public class Main {\n private static final int WIN = 3;\n private static final int DRAW = 1;\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n int count[] = new int[2]; // 太郎[0]と花子[1]のポイントカウンター\n int n = scan.nextInt();\n for (int i = 0; i < n; i++) {\n int point = scan.next().compareToIgnoreCase(scan.next());\n if (point > 0) {\n count[0] += WIN;\n } else if (point < 0){\n count[1] += WIN;\n } else {\n count[0] += DRAW;\n count[1] += DRAW;\n }\n }\n System.out.println(count[0] + \" \" + count[1]);\n }\n}",
"Main"
]
| import java.util.Scanner;
/**
* Card Game
*/
public class Main {
private static final int WIN = 3;
private static final int DRAW = 1;
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int count[] = new int[2]; // 太郎[0]と花子[1]のポイントカウンター
int n = scan.nextInt();
for (int i = 0; i < n; i++) {
int point = scan.next().compareToIgnoreCase(scan.next());
if (point > 0) {
count[0] += WIN;
} else if (point < 0){
count[1] += WIN;
} else {
count[0] += DRAW;
count[1] += DRAW;
}
}
System.out.println(count[0] + " " + count[1]);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
30,
40,
13,
40,
13,
4,
18,
18,
13,
13,
17,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
88,
5
],
[
88,
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
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
39,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
51,
56
],
[
50,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
50,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
62,
67
],
[
61,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
61,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
8,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
77,
83
],
[
77,
84
],
[
6,
85
],
[
85,
86
],
[
0,
87
],
[
87,
88
],
[
87,
89
]
]
| [
"\n\nimport java.util.Scanner;\npublic class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String f,s;\n int a=0,b=0;\n for(int i = 0; i<n; i++)\n {\n f = sc.next();\n s = sc.next();\n if(f.compareToIgnoreCase(s)<0)\n {\n b+=3;\n }\n else if(f.compareToIgnoreCase(s)>0)\n {\n a+=3;\n }\n else\n {\n a++;\n b++;\n }\n }\n System.out.printf(\"%d %d\\n\",a,b);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String f,s;\n int a=0,b=0;\n for(int i = 0; i<n; i++)\n {\n f = sc.next();\n s = sc.next();\n if(f.compareToIgnoreCase(s)<0)\n {\n b+=3;\n }\n else if(f.compareToIgnoreCase(s)>0)\n {\n a+=3;\n }\n else\n {\n a++;\n b++;\n }\n }\n System.out.printf(\"%d %d\\n\",a,b);\n }\n}",
"Main",
"public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String f,s;\n int a=0,b=0;\n for(int i = 0; i<n; i++)\n {\n f = sc.next();\n s = sc.next();\n if(f.compareToIgnoreCase(s)<0)\n {\n b+=3;\n }\n else if(f.compareToIgnoreCase(s)>0)\n {\n a+=3;\n }\n else\n {\n a++;\n b++;\n }\n }\n System.out.printf(\"%d %d\\n\",a,b);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String f,s;\n int a=0,b=0;\n for(int i = 0; i<n; i++)\n {\n f = sc.next();\n s = sc.next();\n if(f.compareToIgnoreCase(s)<0)\n {\n b+=3;\n }\n else if(f.compareToIgnoreCase(s)>0)\n {\n a+=3;\n }\n else\n {\n a++;\n b++;\n }\n }\n System.out.printf(\"%d %d\\n\",a,b);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String f",
"f",
"s;",
"s",
"int a=0",
"a",
"0",
"b=0;",
"b",
"0",
"for(int i = 0; i<n; i++)\n {\n f = sc.next();\n s = sc.next();\n if(f.compareToIgnoreCase(s)<0)\n {\n b+=3;\n }\n else if(f.compareToIgnoreCase(s)>0)\n {\n a+=3;\n }\n else\n {\n a++;\n b++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n f = sc.next();\n s = sc.next();\n if(f.compareToIgnoreCase(s)<0)\n {\n b+=3;\n }\n else if(f.compareToIgnoreCase(s)>0)\n {\n a+=3;\n }\n else\n {\n a++;\n b++;\n }\n }",
"{\n f = sc.next();\n s = sc.next();\n if(f.compareToIgnoreCase(s)<0)\n {\n b+=3;\n }\n else if(f.compareToIgnoreCase(s)>0)\n {\n a+=3;\n }\n else\n {\n a++;\n b++;\n }\n }",
"f = sc.next()",
"f",
"sc.next()",
"sc.next",
"sc",
"s = sc.next()",
"s",
"sc.next()",
"sc.next",
"sc",
"if(f.compareToIgnoreCase(s)<0)\n {\n b+=3;\n }\n else if(f.compareToIgnoreCase(s)>0)\n {\n a+=3;\n }\n else\n {\n a++;\n b++;\n }",
"f.compareToIgnoreCase(s)<0",
"f.compareToIgnoreCase(s)",
"f.compareToIgnoreCase",
"f",
"s",
"0",
"{\n b+=3;\n }",
"b+=3",
"b",
"3",
"if(f.compareToIgnoreCase(s)>0)\n {\n a+=3;\n }\n else\n {\n a++;\n b++;\n }",
"f.compareToIgnoreCase(s)>0",
"f.compareToIgnoreCase(s)",
"f.compareToIgnoreCase",
"f",
"s",
"0",
"{\n a+=3;\n }",
"a+=3",
"a",
"3",
"{\n a++;\n b++;\n }",
"a++",
"a",
"b++",
"b",
"System.out.printf(\"%d %d\\n\",a,b)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d %d\\n\"",
"a",
"b",
"String[] args",
"args",
"public class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String f,s;\n int a=0,b=0;\n for(int i = 0; i<n; i++)\n {\n f = sc.next();\n s = sc.next();\n if(f.compareToIgnoreCase(s)<0)\n {\n b+=3;\n }\n else if(f.compareToIgnoreCase(s)>0)\n {\n a+=3;\n }\n else\n {\n a++;\n b++;\n }\n }\n System.out.printf(\"%d %d\\n\",a,b);\n }\n}",
"public class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String f,s;\n int a=0,b=0;\n for(int i = 0; i<n; i++)\n {\n f = sc.next();\n s = sc.next();\n if(f.compareToIgnoreCase(s)<0)\n {\n b+=3;\n }\n else if(f.compareToIgnoreCase(s)>0)\n {\n a+=3;\n }\n else\n {\n a++;\n b++;\n }\n }\n System.out.printf(\"%d %d\\n\",a,b);\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 f,s;
int a=0,b=0;
for(int i = 0; i<n; i++)
{
f = sc.next();
s = sc.next();
if(f.compareToIgnoreCase(s)<0)
{
b+=3;
}
else if(f.compareToIgnoreCase(s)>0)
{
a+=3;
}
else
{
a++;
b++;
}
}
System.out.printf("%d %d\n",a,b);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
14,
2,
17,
4,
18,
18,
13,
17,
18,
13,
17,
30,
0,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
0,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
40,
13,
40,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
117,
8
],
[
117,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
12,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
19,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
29,
30
],
[
19,
31
],
[
31,
32
],
[
31,
33
],
[
19,
34
],
[
34,
35
],
[
34,
36
],
[
19,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
52,
57
],
[
49,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
58,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
58,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
74,
83
],
[
73,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
73,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
89,
98
],
[
88,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
102,
103
],
[
19,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
110,
110
],
[
110,
111
],
[
110,
112
],
[
110,
113
],
[
9,
114
],
[
114,
115
],
[
0,
116
],
[
116,
117
],
[
116,
118
]
]
| [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n = Integer.parseInt(input.readLine());\n\t\t\t\n\t\t\tint taro = 0;\n\t\t\tint hanako = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tfinal String[] cards = input.readLine().split(\" \");\n\t\t\t\tif (0 < cards[0].compareTo(cards[1])) {\n\t\t\t\t\ttaro += 3;\n\t\t\t\t} else if (cards[0].compareTo(cards[1]) < 0) {\n\t\t\t\t\thanako += 3;\n\t\t\t\t} else if (cards[0].compareTo(cards[1]) == 0) {\n\t\t\t\t\ttaro++;\n\t\t\t\t\thanako++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(taro + \" \" + hanako);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n = Integer.parseInt(input.readLine());\n\t\t\t\n\t\t\tint taro = 0;\n\t\t\tint hanako = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tfinal String[] cards = input.readLine().split(\" \");\n\t\t\t\tif (0 < cards[0].compareTo(cards[1])) {\n\t\t\t\t\ttaro += 3;\n\t\t\t\t} else if (cards[0].compareTo(cards[1]) < 0) {\n\t\t\t\t\thanako += 3;\n\t\t\t\t} else if (cards[0].compareTo(cards[1]) == 0) {\n\t\t\t\t\ttaro++;\n\t\t\t\t\thanako++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(taro + \" \" + hanako);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n = Integer.parseInt(input.readLine());\n\t\t\t\n\t\t\tint taro = 0;\n\t\t\tint hanako = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tfinal String[] cards = input.readLine().split(\" \");\n\t\t\t\tif (0 < cards[0].compareTo(cards[1])) {\n\t\t\t\t\ttaro += 3;\n\t\t\t\t} else if (cards[0].compareTo(cards[1]) < 0) {\n\t\t\t\t\thanako += 3;\n\t\t\t\t} else if (cards[0].compareTo(cards[1]) == 0) {\n\t\t\t\t\ttaro++;\n\t\t\t\t\thanako++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(taro + \" \" + hanako);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"main",
"{\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n = Integer.parseInt(input.readLine());\n\t\t\t\n\t\t\tint taro = 0;\n\t\t\tint hanako = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tfinal String[] cards = input.readLine().split(\" \");\n\t\t\t\tif (0 < cards[0].compareTo(cards[1])) {\n\t\t\t\t\ttaro += 3;\n\t\t\t\t} else if (cards[0].compareTo(cards[1]) < 0) {\n\t\t\t\t\thanako += 3;\n\t\t\t\t} else if (cards[0].compareTo(cards[1]) == 0) {\n\t\t\t\t\ttaro++;\n\t\t\t\t\thanako++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(taro + \" \" + hanako);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"try {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n = Integer.parseInt(input.readLine());\n\t\t\t\n\t\t\tint taro = 0;\n\t\t\tint hanako = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tfinal String[] cards = input.readLine().split(\" \");\n\t\t\t\tif (0 < cards[0].compareTo(cards[1])) {\n\t\t\t\t\ttaro += 3;\n\t\t\t\t} else if (cards[0].compareTo(cards[1]) < 0) {\n\t\t\t\t\thanako += 3;\n\t\t\t\t} else if (cards[0].compareTo(cards[1]) == 0) {\n\t\t\t\t\ttaro++;\n\t\t\t\t\thanako++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(taro + \" \" + hanako);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}",
"catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}",
"Exception e",
"{\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n = Integer.parseInt(input.readLine());\n\t\t\t\n\t\t\tint taro = 0;\n\t\t\tint hanako = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tfinal String[] cards = input.readLine().split(\" \");\n\t\t\t\tif (0 < cards[0].compareTo(cards[1])) {\n\t\t\t\t\ttaro += 3;\n\t\t\t\t} else if (cards[0].compareTo(cards[1]) < 0) {\n\t\t\t\t\thanako += 3;\n\t\t\t\t} else if (cards[0].compareTo(cards[1]) == 0) {\n\t\t\t\t\ttaro++;\n\t\t\t\t\thanako++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(taro + \" \" + hanako);\n\t\t}",
"BufferedReader input = new BufferedReader(new InputStreamReader(System.in));",
"input",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(input.readLine());",
"n",
"Integer.parseInt(input.readLine())",
"Integer.parseInt",
"Integer",
"input.readLine()",
"input.readLine",
"input",
"int taro = 0;",
"taro",
"0",
"int hanako = 0;",
"hanako",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\t\tfinal String[] cards = input.readLine().split(\" \");\n\t\t\t\tif (0 < cards[0].compareTo(cards[1])) {\n\t\t\t\t\ttaro += 3;\n\t\t\t\t} else if (cards[0].compareTo(cards[1]) < 0) {\n\t\t\t\t\thanako += 3;\n\t\t\t\t} else if (cards[0].compareTo(cards[1]) == 0) {\n\t\t\t\t\ttaro++;\n\t\t\t\t\thanako++;\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\tfinal String[] cards = input.readLine().split(\" \");\n\t\t\t\tif (0 < cards[0].compareTo(cards[1])) {\n\t\t\t\t\ttaro += 3;\n\t\t\t\t} else if (cards[0].compareTo(cards[1]) < 0) {\n\t\t\t\t\thanako += 3;\n\t\t\t\t} else if (cards[0].compareTo(cards[1]) == 0) {\n\t\t\t\t\ttaro++;\n\t\t\t\t\thanako++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfinal String[] cards = input.readLine().split(\" \");\n\t\t\t\tif (0 < cards[0].compareTo(cards[1])) {\n\t\t\t\t\ttaro += 3;\n\t\t\t\t} else if (cards[0].compareTo(cards[1]) < 0) {\n\t\t\t\t\thanako += 3;\n\t\t\t\t} else if (cards[0].compareTo(cards[1]) == 0) {\n\t\t\t\t\ttaro++;\n\t\t\t\t\thanako++;\n\t\t\t\t}\n\t\t\t}",
"final String[] cards = input.readLine().split(\" \");",
"cards",
"input.readLine().split(\" \")",
"input.readLine().split",
"input.readLine()",
"input.readLine",
"input",
"\" \"",
"if (0 < cards[0].compareTo(cards[1])) {\n\t\t\t\t\ttaro += 3;\n\t\t\t\t} else if (cards[0].compareTo(cards[1]) < 0) {\n\t\t\t\t\thanako += 3;\n\t\t\t\t} else if (cards[0].compareTo(cards[1]) == 0) {\n\t\t\t\t\ttaro++;\n\t\t\t\t\thanako++;\n\t\t\t\t}",
"0 < cards[0].compareTo(cards[1])",
"0",
"cards[0].compareTo(cards[1])",
"cards[0].compareTo",
"cards[0]",
"cards",
"0",
"cards[1]",
"cards",
"1",
"{\n\t\t\t\t\ttaro += 3;\n\t\t\t\t}",
"taro += 3",
"taro",
"3",
"if (cards[0].compareTo(cards[1]) < 0) {\n\t\t\t\t\thanako += 3;\n\t\t\t\t} else if (cards[0].compareTo(cards[1]) == 0) {\n\t\t\t\t\ttaro++;\n\t\t\t\t\thanako++;\n\t\t\t\t}",
"cards[0].compareTo(cards[1]) < 0",
"cards[0].compareTo(cards[1])",
"cards[0].compareTo",
"cards[0]",
"cards",
"0",
"cards[1]",
"cards",
"1",
"0",
"{\n\t\t\t\t\thanako += 3;\n\t\t\t\t}",
"hanako += 3",
"hanako",
"3",
"if (cards[0].compareTo(cards[1]) == 0) {\n\t\t\t\t\ttaro++;\n\t\t\t\t\thanako++;\n\t\t\t\t}",
"cards[0].compareTo(cards[1]) == 0",
"cards[0].compareTo(cards[1])",
"cards[0].compareTo",
"cards[0]",
"cards",
"0",
"cards[1]",
"cards",
"1",
"0",
"{\n\t\t\t\t\ttaro++;\n\t\t\t\t\thanako++;\n\t\t\t\t}",
"taro++",
"taro",
"hanako++",
"hanako",
"System.out.println(taro + \" \" + hanako)",
"System.out.println",
"System.out",
"System",
"System.out",
"taro + \" \" + hanako",
"taro + \" \" + hanako",
"taro",
"\" \"",
"hanako",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n = Integer.parseInt(input.readLine());\n\t\t\t\n\t\t\tint taro = 0;\n\t\t\tint hanako = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tfinal String[] cards = input.readLine().split(\" \");\n\t\t\t\tif (0 < cards[0].compareTo(cards[1])) {\n\t\t\t\t\ttaro += 3;\n\t\t\t\t} else if (cards[0].compareTo(cards[1]) < 0) {\n\t\t\t\t\thanako += 3;\n\t\t\t\t} else if (cards[0].compareTo(cards[1]) == 0) {\n\t\t\t\t\ttaro++;\n\t\t\t\t\thanako++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(taro + \" \" + hanako);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n = Integer.parseInt(input.readLine());\n\t\t\t\n\t\t\tint taro = 0;\n\t\t\tint hanako = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tfinal String[] cards = input.readLine().split(\" \");\n\t\t\t\tif (0 < cards[0].compareTo(cards[1])) {\n\t\t\t\t\ttaro += 3;\n\t\t\t\t} else if (cards[0].compareTo(cards[1]) < 0) {\n\t\t\t\t\thanako += 3;\n\t\t\t\t} else if (cards[0].compareTo(cards[1]) == 0) {\n\t\t\t\t\ttaro++;\n\t\t\t\t\thanako++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(taro + \" \" + hanako);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
try {
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(input.readLine());
int taro = 0;
int hanako = 0;
for (int i = 0; i < n; i++) {
final String[] cards = input.readLine().split(" ");
if (0 < cards[0].compareTo(cards[1])) {
taro += 3;
} else if (cards[0].compareTo(cards[1]) < 0) {
hanako += 3;
} else if (cards[0].compareTo(cards[1]) == 0) {
taro++;
hanako++;
}
}
System.out.println(taro + " " + hanako);
} catch (Exception e) {
e.printStackTrace();
}
}
} |
[
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,
41,
13,
20,
0,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
17,
14,
2,
17,
4,
18,
18,
13,
17,
18,
13,
17,
0,
13,
17,
14,
4,
18,
18,
13,
17,
18,
13,
17,
30,
40,
13,
40,
13,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
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
],
[
105,
11
],
[
105,
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
],
[
14,
25
],
[
25,
26
],
[
25,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
34,
35
],
[
14,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
48,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
56,
60
],
[
48,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
61,
72
],
[
72,
73
],
[
72,
74
],
[
61,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
75,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
87,
88
],
[
75,
89
],
[
89,
90
],
[
89,
91
],
[
14,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
98,
98
],
[
98,
99
],
[
98,
100
],
[
98,
101
],
[
12,
102
],
[
102,
103
],
[
0,
104
],
[
104,
105
],
[
104,
106
]
]
| [
"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{\n\t\tint n,nTaro=0,nHana=0;\n\t\tString str;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\t\t\n n = Integer.parseInt(br.readLine() );\n \n for(int i=0; i<n; i++)\n {\n str = br.readLine();\n \n String[] strTH = str.split(\" \",2);\n \n if(0 < strTH[0].compareTo(strTH[1]) ) nTaro += 3;\n else if(strTH[0].equals(strTH[1]) )\n {\n nTaro++;\n nHana++;\n }\n else nHana += 3;\n \n }\n \n System.out.println(nTaro + \" \" +nHana);\n \n\t}\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{\n\t\tint n,nTaro=0,nHana=0;\n\t\tString str;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\t\t\n n = Integer.parseInt(br.readLine() );\n \n for(int i=0; i<n; i++)\n {\n str = br.readLine();\n \n String[] strTH = str.split(\" \",2);\n \n if(0 < strTH[0].compareTo(strTH[1]) ) nTaro += 3;\n else if(strTH[0].equals(strTH[1]) )\n {\n nTaro++;\n nHana++;\n }\n else nHana += 3;\n \n }\n \n System.out.println(nTaro + \" \" +nHana);\n \n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException\n\t{\n\t\tint n,nTaro=0,nHana=0;\n\t\tString str;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\t\t\n n = Integer.parseInt(br.readLine() );\n \n for(int i=0; i<n; i++)\n {\n str = br.readLine();\n \n String[] strTH = str.split(\" \",2);\n \n if(0 < strTH[0].compareTo(strTH[1]) ) nTaro += 3;\n else if(strTH[0].equals(strTH[1]) )\n {\n nTaro++;\n nHana++;\n }\n else nHana += 3;\n \n }\n \n System.out.println(nTaro + \" \" +nHana);\n \n\t}",
"main",
"{\n\t\tint n,nTaro=0,nHana=0;\n\t\tString str;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\t\t\n n = Integer.parseInt(br.readLine() );\n \n for(int i=0; i<n; i++)\n {\n str = br.readLine();\n \n String[] strTH = str.split(\" \",2);\n \n if(0 < strTH[0].compareTo(strTH[1]) ) nTaro += 3;\n else if(strTH[0].equals(strTH[1]) )\n {\n nTaro++;\n nHana++;\n }\n else nHana += 3;\n \n }\n \n System.out.println(nTaro + \" \" +nHana);\n \n\t}",
"int n",
"n",
"nTaro=0",
"nTaro",
"0",
"nHana=0;",
"nHana",
"0",
"String str;",
"str",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in) );",
"br",
"new BufferedReader(new InputStreamReader(System.in) )",
"n = Integer.parseInt(br.readLine() )",
"n",
"Integer.parseInt(br.readLine() )",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for(int i=0; i<n; i++)\n {\n str = br.readLine();\n \n String[] strTH = str.split(\" \",2);\n \n if(0 < strTH[0].compareTo(strTH[1]) ) nTaro += 3;\n else if(strTH[0].equals(strTH[1]) )\n {\n nTaro++;\n nHana++;\n }\n else nHana += 3;\n \n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n str = br.readLine();\n \n String[] strTH = str.split(\" \",2);\n \n if(0 < strTH[0].compareTo(strTH[1]) ) nTaro += 3;\n else if(strTH[0].equals(strTH[1]) )\n {\n nTaro++;\n nHana++;\n }\n else nHana += 3;\n \n }",
"{\n str = br.readLine();\n \n String[] strTH = str.split(\" \",2);\n \n if(0 < strTH[0].compareTo(strTH[1]) ) nTaro += 3;\n else if(strTH[0].equals(strTH[1]) )\n {\n nTaro++;\n nHana++;\n }\n else nHana += 3;\n \n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"String[] strTH = str.split(\" \",2);",
"strTH",
"str.split(\" \",2)",
"str.split",
"str",
"\" \"",
"2",
"if(0 < strTH[0].compareTo(strTH[1]) ) nTaro += 3;\n else if(strTH[0].equals(strTH[1]) )\n {\n nTaro++;\n nHana++;\n }\n else nHana += 3;",
"0 < strTH[0].compareTo(strTH[1])",
"0",
"strTH[0].compareTo(strTH[1])",
"strTH[0].compareTo",
"strTH[0]",
"strTH",
"0",
"strTH[1]",
"strTH",
"1",
"nTaro += 3",
"nTaro",
"3",
"if(strTH[0].equals(strTH[1]) )\n {\n nTaro++;\n nHana++;\n }\n else nHana += 3;",
"strTH[0].equals(strTH[1])",
"strTH[0].equals",
"strTH[0]",
"strTH",
"0",
"strTH[1]",
"strTH",
"1",
"{\n nTaro++;\n nHana++;\n }",
"nTaro++",
"nTaro",
"nHana++",
"nHana",
"nHana += 3",
"nHana",
"3",
"System.out.println(nTaro + \" \" +nHana)",
"System.out.println",
"System.out",
"System",
"System.out",
"nTaro + \" \" +nHana",
"nTaro + \" \" +nHana",
"nTaro",
"\" \"",
"nHana",
"String[] args",
"args",
"public class Main{\n\n\tpublic static void main(String[] args) throws IOException\n\t{\n\t\tint n,nTaro=0,nHana=0;\n\t\tString str;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\t\t\n n = Integer.parseInt(br.readLine() );\n \n for(int i=0; i<n; i++)\n {\n str = br.readLine();\n \n String[] strTH = str.split(\" \",2);\n \n if(0 < strTH[0].compareTo(strTH[1]) ) nTaro += 3;\n else if(strTH[0].equals(strTH[1]) )\n {\n nTaro++;\n nHana++;\n }\n else nHana += 3;\n \n }\n \n System.out.println(nTaro + \" \" +nHana);\n \n\t}\n}",
"public class Main{\n\n\tpublic static void main(String[] args) throws IOException\n\t{\n\t\tint n,nTaro=0,nHana=0;\n\t\tString str;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\t\t\n n = Integer.parseInt(br.readLine() );\n \n for(int i=0; i<n; i++)\n {\n str = br.readLine();\n \n String[] strTH = str.split(\" \",2);\n \n if(0 < strTH[0].compareTo(strTH[1]) ) nTaro += 3;\n else if(strTH[0].equals(strTH[1]) )\n {\n nTaro++;\n nHana++;\n }\n else nHana += 3;\n \n }\n \n System.out.println(nTaro + \" \" +nHana);\n \n\t}\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
{
int n,nTaro=0,nHana=0;
String str;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in) );
n = Integer.parseInt(br.readLine() );
for(int i=0; i<n; i++)
{
str = br.readLine();
String[] strTH = str.split(" ",2);
if(0 < strTH[0].compareTo(strTH[1]) ) nTaro += 3;
else if(strTH[0].equals(strTH[1]) )
{
nTaro++;
nHana++;
}
else nHana += 3;
}
System.out.println(nTaro + " " +nHana);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
20,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
17,
4,
18,
13,
0,
18,
13,
17,
4,
18,
13,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
40,
17,
30,
0,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
0,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
40,
13,
40,
13,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
124,
5
],
[
124,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
52,
53
],
[
39,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
61,
63
],
[
55,
64
],
[
64,
65
],
[
54,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
54,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
71,
80
],
[
70,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
70,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
92,
93
],
[
92,
94
],
[
86,
95
],
[
85,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
99,
100
],
[
85,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
8,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
114,
114
],
[
114,
115
],
[
114,
116
],
[
114,
117
],
[
8,
118
],
[
118,
119
],
[
119,
120
],
[
6,
121
],
[
121,
122
],
[
0,
123
],
[
123,
124
],
[
123,
125
]
]
| [
"import java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int scoa1=0,scoa2=0;\n String data[] = new String[2];\n\n int n=sc.nextInt();\n for(int i=0;i<n;i++){\n \tdata[0] = sc.next();\n \tdata[1] = sc.next();\n \tif(data[0].compareTo(data[1])<=-1){\n \t\tscoa1+=3;\n \t}\n \telse if(data[0].compareTo(data[1])>=1){\n \t\tscoa2+=3;\n \t}\n \telse if(data[0].compareTo(data[1])==0){\n \t\tscoa1++;scoa2++;\n \t}\n \telse{\n \t\tSystem.out.println(\"EEE\");\n \t}\n }\n System.out.println(scoa2+\" \"+scoa1);\n sc.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int scoa1=0,scoa2=0;\n String data[] = new String[2];\n\n int n=sc.nextInt();\n for(int i=0;i<n;i++){\n \tdata[0] = sc.next();\n \tdata[1] = sc.next();\n \tif(data[0].compareTo(data[1])<=-1){\n \t\tscoa1+=3;\n \t}\n \telse if(data[0].compareTo(data[1])>=1){\n \t\tscoa2+=3;\n \t}\n \telse if(data[0].compareTo(data[1])==0){\n \t\tscoa1++;scoa2++;\n \t}\n \telse{\n \t\tSystem.out.println(\"EEE\");\n \t}\n }\n System.out.println(scoa2+\" \"+scoa1);\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int scoa1=0,scoa2=0;\n String data[] = new String[2];\n\n int n=sc.nextInt();\n for(int i=0;i<n;i++){\n \tdata[0] = sc.next();\n \tdata[1] = sc.next();\n \tif(data[0].compareTo(data[1])<=-1){\n \t\tscoa1+=3;\n \t}\n \telse if(data[0].compareTo(data[1])>=1){\n \t\tscoa2+=3;\n \t}\n \telse if(data[0].compareTo(data[1])==0){\n \t\tscoa1++;scoa2++;\n \t}\n \telse{\n \t\tSystem.out.println(\"EEE\");\n \t}\n }\n System.out.println(scoa2+\" \"+scoa1);\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int scoa1=0,scoa2=0;\n String data[] = new String[2];\n\n int n=sc.nextInt();\n for(int i=0;i<n;i++){\n \tdata[0] = sc.next();\n \tdata[1] = sc.next();\n \tif(data[0].compareTo(data[1])<=-1){\n \t\tscoa1+=3;\n \t}\n \telse if(data[0].compareTo(data[1])>=1){\n \t\tscoa2+=3;\n \t}\n \telse if(data[0].compareTo(data[1])==0){\n \t\tscoa1++;scoa2++;\n \t}\n \telse{\n \t\tSystem.out.println(\"EEE\");\n \t}\n }\n System.out.println(scoa2+\" \"+scoa1);\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int scoa1=0",
"scoa1",
"0",
"scoa2=0;",
"scoa2",
"0",
"String data[] = new String[2];",
"data",
"new String[2]",
"2",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=0;i<n;i++){\n \tdata[0] = sc.next();\n \tdata[1] = sc.next();\n \tif(data[0].compareTo(data[1])<=-1){\n \t\tscoa1+=3;\n \t}\n \telse if(data[0].compareTo(data[1])>=1){\n \t\tscoa2+=3;\n \t}\n \telse if(data[0].compareTo(data[1])==0){\n \t\tscoa1++;scoa2++;\n \t}\n \telse{\n \t\tSystem.out.println(\"EEE\");\n \t}\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \tdata[0] = sc.next();\n \tdata[1] = sc.next();\n \tif(data[0].compareTo(data[1])<=-1){\n \t\tscoa1+=3;\n \t}\n \telse if(data[0].compareTo(data[1])>=1){\n \t\tscoa2+=3;\n \t}\n \telse if(data[0].compareTo(data[1])==0){\n \t\tscoa1++;scoa2++;\n \t}\n \telse{\n \t\tSystem.out.println(\"EEE\");\n \t}\n }",
"{\n \tdata[0] = sc.next();\n \tdata[1] = sc.next();\n \tif(data[0].compareTo(data[1])<=-1){\n \t\tscoa1+=3;\n \t}\n \telse if(data[0].compareTo(data[1])>=1){\n \t\tscoa2+=3;\n \t}\n \telse if(data[0].compareTo(data[1])==0){\n \t\tscoa1++;scoa2++;\n \t}\n \telse{\n \t\tSystem.out.println(\"EEE\");\n \t}\n }",
"data[0] = sc.next()",
"data[0]",
"data",
"0",
"sc.next()",
"sc.next",
"sc",
"data[1] = sc.next()",
"data[1]",
"data",
"1",
"sc.next()",
"sc.next",
"sc",
"if(data[0].compareTo(data[1])<=-1){\n \t\tscoa1+=3;\n \t}\n \telse if(data[0].compareTo(data[1])>=1){\n \t\tscoa2+=3;\n \t}\n \telse if(data[0].compareTo(data[1])==0){\n \t\tscoa1++;scoa2++;\n \t}\n \telse{\n \t\tSystem.out.println(\"EEE\");\n \t}",
"data[0].compareTo(data[1])<=-1",
"data[0].compareTo(data[1])",
"data[0].compareTo",
"data[0]",
"data",
"0",
"data[1]",
"data",
"1",
"-1",
"1",
"{\n \t\tscoa1+=3;\n \t}",
"scoa1+=3",
"scoa1",
"3",
"if(data[0].compareTo(data[1])>=1){\n \t\tscoa2+=3;\n \t}\n \telse if(data[0].compareTo(data[1])==0){\n \t\tscoa1++;scoa2++;\n \t}\n \telse{\n \t\tSystem.out.println(\"EEE\");\n \t}",
"data[0].compareTo(data[1])>=1",
"data[0].compareTo(data[1])",
"data[0].compareTo",
"data[0]",
"data",
"0",
"data[1]",
"data",
"1",
"1",
"{\n \t\tscoa2+=3;\n \t}",
"scoa2+=3",
"scoa2",
"3",
"if(data[0].compareTo(data[1])==0){\n \t\tscoa1++;scoa2++;\n \t}\n \telse{\n \t\tSystem.out.println(\"EEE\");\n \t}",
"data[0].compareTo(data[1])==0",
"data[0].compareTo(data[1])",
"data[0].compareTo",
"data[0]",
"data",
"0",
"data[1]",
"data",
"1",
"0",
"{\n \t\tscoa1++;scoa2++;\n \t}",
"scoa1++",
"scoa1",
"scoa2++",
"scoa2",
"{\n \t\tSystem.out.println(\"EEE\");\n \t}",
"System.out.println(\"EEE\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"EEE\"",
"System.out.println(scoa2+\" \"+scoa1)",
"System.out.println",
"System.out",
"System",
"System.out",
"scoa2+\" \"+scoa1",
"scoa2+\" \"+scoa1",
"scoa2",
"\" \"",
"scoa1",
"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 scoa1=0,scoa2=0;\n String data[] = new String[2];\n\n int n=sc.nextInt();\n for(int i=0;i<n;i++){\n \tdata[0] = sc.next();\n \tdata[1] = sc.next();\n \tif(data[0].compareTo(data[1])<=-1){\n \t\tscoa1+=3;\n \t}\n \telse if(data[0].compareTo(data[1])>=1){\n \t\tscoa2+=3;\n \t}\n \telse if(data[0].compareTo(data[1])==0){\n \t\tscoa1++;scoa2++;\n \t}\n \telse{\n \t\tSystem.out.println(\"EEE\");\n \t}\n }\n System.out.println(scoa2+\" \"+scoa1);\n sc.close();\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int scoa1=0,scoa2=0;\n String data[] = new String[2];\n\n int n=sc.nextInt();\n for(int i=0;i<n;i++){\n \tdata[0] = sc.next();\n \tdata[1] = sc.next();\n \tif(data[0].compareTo(data[1])<=-1){\n \t\tscoa1+=3;\n \t}\n \telse if(data[0].compareTo(data[1])>=1){\n \t\tscoa2+=3;\n \t}\n \telse if(data[0].compareTo(data[1])==0){\n \t\tscoa1++;scoa2++;\n \t}\n \telse{\n \t\tSystem.out.println(\"EEE\");\n \t}\n }\n System.out.println(scoa2+\" \"+scoa1);\n sc.close();\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int scoa1=0,scoa2=0;
String data[] = new String[2];
int n=sc.nextInt();
for(int i=0;i<n;i++){
data[0] = sc.next();
data[1] = sc.next();
if(data[0].compareTo(data[1])<=-1){
scoa1+=3;
}
else if(data[0].compareTo(data[1])>=1){
scoa2+=3;
}
else if(data[0].compareTo(data[1])==0){
scoa1++;scoa2++;
}
else{
System.out.println("EEE");
}
}
System.out.println(scoa2+" "+scoa1);
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
30,
0,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
93,
5
],
[
93,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
12,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
16,
22
],
[
22,
23
],
[
22,
24
],
[
16,
25
],
[
25,
26
],
[
25,
27
],
[
16,
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
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
52,
57
],
[
51,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
51,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
63,
68
],
[
62,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
62,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
77,
79
],
[
16,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
86,
86
],
[
86,
87
],
[
86,
88
],
[
86,
89
],
[
6,
90
],
[
90,
91
],
[
0,
92
],
[
92,
93
],
[
92,
94
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(sc.hasNext()){\n int num = sc.nextInt();\n int taro = 0, hanako = 0;\n for (int i=0; i<num; i++){\n String a = sc.next();\n String b = sc.next();\n if (a.compareTo(b) > 0) {\n taro += 3;\n } else if (a.compareTo(b) < 0) {\n hanako += 3;\n } else {\n taro += 1;\n hanako += 1;\n }\n }\n System.out.println(taro + \" \" + hanako);\n }\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(sc.hasNext()){\n int num = sc.nextInt();\n int taro = 0, hanako = 0;\n for (int i=0; i<num; i++){\n String a = sc.next();\n String b = sc.next();\n if (a.compareTo(b) > 0) {\n taro += 3;\n } else if (a.compareTo(b) < 0) {\n hanako += 3;\n } else {\n taro += 1;\n hanako += 1;\n }\n }\n System.out.println(taro + \" \" + hanako);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(sc.hasNext()){\n int num = sc.nextInt();\n int taro = 0, hanako = 0;\n for (int i=0; i<num; i++){\n String a = sc.next();\n String b = sc.next();\n if (a.compareTo(b) > 0) {\n taro += 3;\n } else if (a.compareTo(b) < 0) {\n hanako += 3;\n } else {\n taro += 1;\n hanako += 1;\n }\n }\n System.out.println(taro + \" \" + hanako);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n while(sc.hasNext()){\n int num = sc.nextInt();\n int taro = 0, hanako = 0;\n for (int i=0; i<num; i++){\n String a = sc.next();\n String b = sc.next();\n if (a.compareTo(b) > 0) {\n taro += 3;\n } else if (a.compareTo(b) < 0) {\n hanako += 3;\n } else {\n taro += 1;\n hanako += 1;\n }\n }\n System.out.println(taro + \" \" + hanako);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while(sc.hasNext()){\n int num = sc.nextInt();\n int taro = 0, hanako = 0;\n for (int i=0; i<num; i++){\n String a = sc.next();\n String b = sc.next();\n if (a.compareTo(b) > 0) {\n taro += 3;\n } else if (a.compareTo(b) < 0) {\n hanako += 3;\n } else {\n taro += 1;\n hanako += 1;\n }\n }\n System.out.println(taro + \" \" + hanako);\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n int num = sc.nextInt();\n int taro = 0, hanako = 0;\n for (int i=0; i<num; i++){\n String a = sc.next();\n String b = sc.next();\n if (a.compareTo(b) > 0) {\n taro += 3;\n } else if (a.compareTo(b) < 0) {\n hanako += 3;\n } else {\n taro += 1;\n hanako += 1;\n }\n }\n System.out.println(taro + \" \" + hanako);\n }",
"int num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int taro = 0",
"taro",
"0",
"hanako = 0;",
"hanako",
"0",
"for (int i=0; i<num; i++){\n String a = sc.next();\n String b = sc.next();\n if (a.compareTo(b) > 0) {\n taro += 3;\n } else if (a.compareTo(b) < 0) {\n hanako += 3;\n } else {\n taro += 1;\n hanako += 1;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<num",
"i",
"num",
"i++",
"i++",
"i",
"{\n String a = sc.next();\n String b = sc.next();\n if (a.compareTo(b) > 0) {\n taro += 3;\n } else if (a.compareTo(b) < 0) {\n hanako += 3;\n } else {\n taro += 1;\n hanako += 1;\n }\n }",
"{\n String a = sc.next();\n String b = sc.next();\n if (a.compareTo(b) > 0) {\n taro += 3;\n } else if (a.compareTo(b) < 0) {\n hanako += 3;\n } else {\n taro += 1;\n hanako += 1;\n }\n }",
"String a = sc.next();",
"a",
"sc.next()",
"sc.next",
"sc",
"String b = sc.next();",
"b",
"sc.next()",
"sc.next",
"sc",
"if (a.compareTo(b) > 0) {\n taro += 3;\n } else if (a.compareTo(b) < 0) {\n hanako += 3;\n } else {\n taro += 1;\n hanako += 1;\n }",
"a.compareTo(b) > 0",
"a.compareTo(b)",
"a.compareTo",
"a",
"b",
"0",
"{\n taro += 3;\n }",
"taro += 3",
"taro",
"3",
"if (a.compareTo(b) < 0) {\n hanako += 3;\n } else {\n taro += 1;\n hanako += 1;\n }",
"a.compareTo(b) < 0",
"a.compareTo(b)",
"a.compareTo",
"a",
"b",
"0",
"{\n hanako += 3;\n }",
"hanako += 3",
"hanako",
"3",
"{\n taro += 1;\n hanako += 1;\n }",
"taro += 1",
"taro",
"1",
"hanako += 1",
"hanako",
"1",
"System.out.println(taro + \" \" + hanako)",
"System.out.println",
"System.out",
"System",
"System.out",
"taro + \" \" + hanako",
"taro + \" \" + hanako",
"taro",
"\" \"",
"hanako",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(sc.hasNext()){\n int num = sc.nextInt();\n int taro = 0, hanako = 0;\n for (int i=0; i<num; i++){\n String a = sc.next();\n String b = sc.next();\n if (a.compareTo(b) > 0) {\n taro += 3;\n } else if (a.compareTo(b) < 0) {\n hanako += 3;\n } else {\n taro += 1;\n hanako += 1;\n }\n }\n System.out.println(taro + \" \" + hanako);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(sc.hasNext()){\n int num = sc.nextInt();\n int taro = 0, hanako = 0;\n for (int i=0; i<num; i++){\n String a = sc.next();\n String b = sc.next();\n if (a.compareTo(b) > 0) {\n taro += 3;\n } else if (a.compareTo(b) < 0) {\n hanako += 3;\n } else {\n taro += 1;\n hanako += 1;\n }\n }\n System.out.println(taro + \" \" + hanako);\n }\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while(sc.hasNext()){
int num = sc.nextInt();
int taro = 0, hanako = 0;
for (int i=0; i<num; i++){
String a = sc.next();
String b = sc.next();
if (a.compareTo(b) > 0) {
taro += 3;
} else if (a.compareTo(b) < 0) {
hanako += 3;
} else {
taro += 1;
hanako += 1;
}
}
System.out.println(taro + " " + hanako);
}
}
}
|
[
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,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
4,
18,
13,
13,
30,
40,
13,
40,
13,
9,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
18,
13,
13,
18,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
13,
30,
0,
13,
17,
0,
13,
17,
3,
14,
2,
18,
13,
13,
18,
13,
13,
30,
0,
13,
17,
0,
13,
17,
3,
14,
13,
30,
14,
2,
18,
13,
13,
18,
13,
13,
30,
0,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
162,
5
],
[
162,
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
],
[
8,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
39,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
50,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
58,
59
],
[
55,
60
],
[
39,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
39,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
39,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
76,
77
],
[
76,
78
],
[
73,
79
],
[
79,
80
],
[
79,
81
],
[
39,
82
],
[
82,
83
],
[
82,
84
],
[
39,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
90,
92
],
[
85,
93
],
[
93,
94
],
[
94,
95
],
[
85,
96
],
[
97,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
103,
104
],
[
103,
105
],
[
98,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
110,
111
],
[
110,
112
],
[
106,
113
],
[
98,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
119,
120
],
[
119,
121
],
[
114,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
126,
127
],
[
126,
128
],
[
122,
129
],
[
39,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
138,
139
],
[
138,
140
],
[
133,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
133,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
8,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
149,
154
],
[
155,
155
],
[
155,
156
],
[
155,
157
],
[
155,
158
],
[
6,
159
],
[
159,
160
],
[
0,
161
],
[
161,
162
],
[
161,
163
]
]
| [
"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\tint game = sc.nextInt();\n\n\t\tint tarouPoint = 0;\n\t\tint hanakoPoint = 0;\n\n\t\tString tarou;\n\t\tString hanako;\n\n\n\t\tfor (int j = 0; j < game; j++) {\n\t\t\ttarou = sc.next();\n\t\t\thanako = sc.next();\n\n\t\t\tif (tarou.equals(hanako)) {\n\t\t\t\ttarouPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tchar[] tarouChar = tarou.toCharArray();\n\t\t\tchar[] hanakoChar = hanako.toCharArray();\n\n\t\t\tint wordLength = (Math.min(tarouChar.length, hanakoChar.length));\n\n\t\t\tboolean equal = true;\n\t\t\tfor (int i = 0; i < wordLength; i++) {\n\t\t\t\tif (tarouChar[i] > hanakoChar[i]) {\n\t\t\t\t\ttarouPoint += 3;\n\t\t\t\t\tequal = false;\n\t\t\t\t\tbreak;\n\t\t\t\t} else if (tarouChar[i] < hanakoChar[i]) {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t\tequal = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (equal) {\n\t\t\t\tif (tarouChar.length > hanakoChar.length) {\n\t\t\t\t\ttarouPoint += 3;\n\t\t\t\t} else {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t}\n\t\tSystem.out.println(tarouPoint +\" \"+ hanakoPoint);\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\tint game = sc.nextInt();\n\n\t\tint tarouPoint = 0;\n\t\tint hanakoPoint = 0;\n\n\t\tString tarou;\n\t\tString hanako;\n\n\n\t\tfor (int j = 0; j < game; j++) {\n\t\t\ttarou = sc.next();\n\t\t\thanako = sc.next();\n\n\t\t\tif (tarou.equals(hanako)) {\n\t\t\t\ttarouPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tchar[] tarouChar = tarou.toCharArray();\n\t\t\tchar[] hanakoChar = hanako.toCharArray();\n\n\t\t\tint wordLength = (Math.min(tarouChar.length, hanakoChar.length));\n\n\t\t\tboolean equal = true;\n\t\t\tfor (int i = 0; i < wordLength; i++) {\n\t\t\t\tif (tarouChar[i] > hanakoChar[i]) {\n\t\t\t\t\ttarouPoint += 3;\n\t\t\t\t\tequal = false;\n\t\t\t\t\tbreak;\n\t\t\t\t} else if (tarouChar[i] < hanakoChar[i]) {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t\tequal = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (equal) {\n\t\t\t\tif (tarouChar.length > hanakoChar.length) {\n\t\t\t\t\ttarouPoint += 3;\n\t\t\t\t} else {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t}\n\t\tSystem.out.println(tarouPoint +\" \"+ hanakoPoint);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint game = sc.nextInt();\n\n\t\tint tarouPoint = 0;\n\t\tint hanakoPoint = 0;\n\n\t\tString tarou;\n\t\tString hanako;\n\n\n\t\tfor (int j = 0; j < game; j++) {\n\t\t\ttarou = sc.next();\n\t\t\thanako = sc.next();\n\n\t\t\tif (tarou.equals(hanako)) {\n\t\t\t\ttarouPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tchar[] tarouChar = tarou.toCharArray();\n\t\t\tchar[] hanakoChar = hanako.toCharArray();\n\n\t\t\tint wordLength = (Math.min(tarouChar.length, hanakoChar.length));\n\n\t\t\tboolean equal = true;\n\t\t\tfor (int i = 0; i < wordLength; i++) {\n\t\t\t\tif (tarouChar[i] > hanakoChar[i]) {\n\t\t\t\t\ttarouPoint += 3;\n\t\t\t\t\tequal = false;\n\t\t\t\t\tbreak;\n\t\t\t\t} else if (tarouChar[i] < hanakoChar[i]) {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t\tequal = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (equal) {\n\t\t\t\tif (tarouChar.length > hanakoChar.length) {\n\t\t\t\t\ttarouPoint += 3;\n\t\t\t\t} else {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t}\n\t\tSystem.out.println(tarouPoint +\" \"+ hanakoPoint);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint game = sc.nextInt();\n\n\t\tint tarouPoint = 0;\n\t\tint hanakoPoint = 0;\n\n\t\tString tarou;\n\t\tString hanako;\n\n\n\t\tfor (int j = 0; j < game; j++) {\n\t\t\ttarou = sc.next();\n\t\t\thanako = sc.next();\n\n\t\t\tif (tarou.equals(hanako)) {\n\t\t\t\ttarouPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tchar[] tarouChar = tarou.toCharArray();\n\t\t\tchar[] hanakoChar = hanako.toCharArray();\n\n\t\t\tint wordLength = (Math.min(tarouChar.length, hanakoChar.length));\n\n\t\t\tboolean equal = true;\n\t\t\tfor (int i = 0; i < wordLength; i++) {\n\t\t\t\tif (tarouChar[i] > hanakoChar[i]) {\n\t\t\t\t\ttarouPoint += 3;\n\t\t\t\t\tequal = false;\n\t\t\t\t\tbreak;\n\t\t\t\t} else if (tarouChar[i] < hanakoChar[i]) {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t\tequal = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (equal) {\n\t\t\t\tif (tarouChar.length > hanakoChar.length) {\n\t\t\t\t\ttarouPoint += 3;\n\t\t\t\t} else {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t}\n\t\tSystem.out.println(tarouPoint +\" \"+ hanakoPoint);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int game = sc.nextInt();",
"game",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int tarouPoint = 0;",
"tarouPoint",
"0",
"int hanakoPoint = 0;",
"hanakoPoint",
"0",
"String tarou;",
"tarou",
"String hanako;",
"hanako",
"for (int j = 0; j < game; j++) {\n\t\t\ttarou = sc.next();\n\t\t\thanako = sc.next();\n\n\t\t\tif (tarou.equals(hanako)) {\n\t\t\t\ttarouPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tchar[] tarouChar = tarou.toCharArray();\n\t\t\tchar[] hanakoChar = hanako.toCharArray();\n\n\t\t\tint wordLength = (Math.min(tarouChar.length, hanakoChar.length));\n\n\t\t\tboolean equal = true;\n\t\t\tfor (int i = 0; i < wordLength; i++) {\n\t\t\t\tif (tarouChar[i] > hanakoChar[i]) {\n\t\t\t\t\ttarouPoint += 3;\n\t\t\t\t\tequal = false;\n\t\t\t\t\tbreak;\n\t\t\t\t} else if (tarouChar[i] < hanakoChar[i]) {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t\tequal = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (equal) {\n\t\t\t\tif (tarouChar.length > hanakoChar.length) {\n\t\t\t\t\ttarouPoint += 3;\n\t\t\t\t} else {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < game",
"j",
"game",
"j++",
"j++",
"j",
"{\n\t\t\ttarou = sc.next();\n\t\t\thanako = sc.next();\n\n\t\t\tif (tarou.equals(hanako)) {\n\t\t\t\ttarouPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tchar[] tarouChar = tarou.toCharArray();\n\t\t\tchar[] hanakoChar = hanako.toCharArray();\n\n\t\t\tint wordLength = (Math.min(tarouChar.length, hanakoChar.length));\n\n\t\t\tboolean equal = true;\n\t\t\tfor (int i = 0; i < wordLength; i++) {\n\t\t\t\tif (tarouChar[i] > hanakoChar[i]) {\n\t\t\t\t\ttarouPoint += 3;\n\t\t\t\t\tequal = false;\n\t\t\t\t\tbreak;\n\t\t\t\t} else if (tarouChar[i] < hanakoChar[i]) {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t\tequal = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (equal) {\n\t\t\t\tif (tarouChar.length > hanakoChar.length) {\n\t\t\t\t\ttarouPoint += 3;\n\t\t\t\t} else {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t}",
"{\n\t\t\ttarou = sc.next();\n\t\t\thanako = sc.next();\n\n\t\t\tif (tarou.equals(hanako)) {\n\t\t\t\ttarouPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tchar[] tarouChar = tarou.toCharArray();\n\t\t\tchar[] hanakoChar = hanako.toCharArray();\n\n\t\t\tint wordLength = (Math.min(tarouChar.length, hanakoChar.length));\n\n\t\t\tboolean equal = true;\n\t\t\tfor (int i = 0; i < wordLength; i++) {\n\t\t\t\tif (tarouChar[i] > hanakoChar[i]) {\n\t\t\t\t\ttarouPoint += 3;\n\t\t\t\t\tequal = false;\n\t\t\t\t\tbreak;\n\t\t\t\t} else if (tarouChar[i] < hanakoChar[i]) {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t\tequal = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (equal) {\n\t\t\t\tif (tarouChar.length > hanakoChar.length) {\n\t\t\t\t\ttarouPoint += 3;\n\t\t\t\t} else {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t}",
"tarou = sc.next()",
"tarou",
"sc.next()",
"sc.next",
"sc",
"hanako = sc.next()",
"hanako",
"sc.next()",
"sc.next",
"sc",
"if (tarou.equals(hanako)) {\n\t\t\t\ttarouPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t\tcontinue;\n\t\t\t}",
"tarou.equals(hanako)",
"tarou.equals",
"tarou",
"hanako",
"{\n\t\t\t\ttarouPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t\tcontinue;\n\t\t\t}",
"tarouPoint++",
"tarouPoint",
"hanakoPoint++",
"hanakoPoint",
"continue;",
"char[] tarouChar = tarou.toCharArray();",
"tarouChar",
"tarou.toCharArray()",
"tarou.toCharArray",
"tarou",
"char[] hanakoChar = hanako.toCharArray();",
"hanakoChar",
"hanako.toCharArray()",
"hanako.toCharArray",
"hanako",
"int wordLength = (Math.min(tarouChar.length, hanakoChar.length));",
"wordLength",
"(Math.min(tarouChar.length, hanakoChar.length))",
"Math.min",
"Math",
"tarouChar.length",
"tarouChar",
"tarouChar.length",
"hanakoChar.length",
"hanakoChar",
"hanakoChar.length",
"boolean equal = true;",
"equal",
"true",
"for (int i = 0; i < wordLength; i++) {\n\t\t\t\tif (tarouChar[i] > hanakoChar[i]) {\n\t\t\t\t\ttarouPoint += 3;\n\t\t\t\t\tequal = false;\n\t\t\t\t\tbreak;\n\t\t\t\t} else if (tarouChar[i] < hanakoChar[i]) {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t\tequal = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < wordLength",
"i",
"wordLength",
"i++",
"i++",
"i",
"{\n\t\t\t\tif (tarouChar[i] > hanakoChar[i]) {\n\t\t\t\t\ttarouPoint += 3;\n\t\t\t\t\tequal = false;\n\t\t\t\t\tbreak;\n\t\t\t\t} else if (tarouChar[i] < hanakoChar[i]) {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t\tequal = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif (tarouChar[i] > hanakoChar[i]) {\n\t\t\t\t\ttarouPoint += 3;\n\t\t\t\t\tequal = false;\n\t\t\t\t\tbreak;\n\t\t\t\t} else if (tarouChar[i] < hanakoChar[i]) {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t\tequal = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"if (tarouChar[i] > hanakoChar[i]) {\n\t\t\t\t\ttarouPoint += 3;\n\t\t\t\t\tequal = false;\n\t\t\t\t\tbreak;\n\t\t\t\t} else if (tarouChar[i] < hanakoChar[i]) {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t\tequal = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"tarouChar[i] > hanakoChar[i]",
"tarouChar[i]",
"tarouChar",
"i",
"hanakoChar[i]",
"hanakoChar",
"i",
"{\n\t\t\t\t\ttarouPoint += 3;\n\t\t\t\t\tequal = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"tarouPoint += 3",
"tarouPoint",
"3",
"equal = false",
"equal",
"false",
"break;",
"if (tarouChar[i] < hanakoChar[i]) {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t\tequal = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"tarouChar[i] < hanakoChar[i]",
"tarouChar[i]",
"tarouChar",
"i",
"hanakoChar[i]",
"hanakoChar",
"i",
"{\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t\tequal = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"hanakoPoint += 3",
"hanakoPoint",
"3",
"equal = false",
"equal",
"false",
"break;",
"if (equal) {\n\t\t\t\tif (tarouChar.length > hanakoChar.length) {\n\t\t\t\t\ttarouPoint += 3;\n\t\t\t\t} else {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t}\n\t\t\t}",
"equal",
"{\n\t\t\t\tif (tarouChar.length > hanakoChar.length) {\n\t\t\t\t\ttarouPoint += 3;\n\t\t\t\t} else {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t}\n\t\t\t}",
"if (tarouChar.length > hanakoChar.length) {\n\t\t\t\t\ttarouPoint += 3;\n\t\t\t\t} else {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t}",
"tarouChar.length > hanakoChar.length",
"tarouChar.length",
"tarouChar",
"tarouChar.length",
"hanakoChar.length",
"hanakoChar",
"hanakoChar.length",
"{\n\t\t\t\t\ttarouPoint += 3;\n\t\t\t\t}",
"tarouPoint += 3",
"tarouPoint",
"3",
"{\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t}",
"hanakoPoint += 3",
"hanakoPoint",
"3",
"System.out.println(tarouPoint +\" \"+ hanakoPoint)",
"System.out.println",
"System.out",
"System",
"System.out",
"tarouPoint +\" \"+ hanakoPoint",
"tarouPoint +\" \"+ hanakoPoint",
"tarouPoint",
"\" \"",
"hanakoPoint",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint game = sc.nextInt();\n\n\t\tint tarouPoint = 0;\n\t\tint hanakoPoint = 0;\n\n\t\tString tarou;\n\t\tString hanako;\n\n\n\t\tfor (int j = 0; j < game; j++) {\n\t\t\ttarou = sc.next();\n\t\t\thanako = sc.next();\n\n\t\t\tif (tarou.equals(hanako)) {\n\t\t\t\ttarouPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tchar[] tarouChar = tarou.toCharArray();\n\t\t\tchar[] hanakoChar = hanako.toCharArray();\n\n\t\t\tint wordLength = (Math.min(tarouChar.length, hanakoChar.length));\n\n\t\t\tboolean equal = true;\n\t\t\tfor (int i = 0; i < wordLength; i++) {\n\t\t\t\tif (tarouChar[i] > hanakoChar[i]) {\n\t\t\t\t\ttarouPoint += 3;\n\t\t\t\t\tequal = false;\n\t\t\t\t\tbreak;\n\t\t\t\t} else if (tarouChar[i] < hanakoChar[i]) {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t\tequal = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (equal) {\n\t\t\t\tif (tarouChar.length > hanakoChar.length) {\n\t\t\t\t\ttarouPoint += 3;\n\t\t\t\t} else {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t}\n\t\tSystem.out.println(tarouPoint +\" \"+ hanakoPoint);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint game = sc.nextInt();\n\n\t\tint tarouPoint = 0;\n\t\tint hanakoPoint = 0;\n\n\t\tString tarou;\n\t\tString hanako;\n\n\n\t\tfor (int j = 0; j < game; j++) {\n\t\t\ttarou = sc.next();\n\t\t\thanako = sc.next();\n\n\t\t\tif (tarou.equals(hanako)) {\n\t\t\t\ttarouPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tchar[] tarouChar = tarou.toCharArray();\n\t\t\tchar[] hanakoChar = hanako.toCharArray();\n\n\t\t\tint wordLength = (Math.min(tarouChar.length, hanakoChar.length));\n\n\t\t\tboolean equal = true;\n\t\t\tfor (int i = 0; i < wordLength; i++) {\n\t\t\t\tif (tarouChar[i] > hanakoChar[i]) {\n\t\t\t\t\ttarouPoint += 3;\n\t\t\t\t\tequal = false;\n\t\t\t\t\tbreak;\n\t\t\t\t} else if (tarouChar[i] < hanakoChar[i]) {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t\tequal = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (equal) {\n\t\t\t\tif (tarouChar.length > hanakoChar.length) {\n\t\t\t\t\ttarouPoint += 3;\n\t\t\t\t} else {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t}\n\t\tSystem.out.println(tarouPoint +\" \"+ hanakoPoint);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int game = sc.nextInt();
int tarouPoint = 0;
int hanakoPoint = 0;
String tarou;
String hanako;
for (int j = 0; j < game; j++) {
tarou = sc.next();
hanako = sc.next();
if (tarou.equals(hanako)) {
tarouPoint++;
hanakoPoint++;
continue;
}
char[] tarouChar = tarou.toCharArray();
char[] hanakoChar = hanako.toCharArray();
int wordLength = (Math.min(tarouChar.length, hanakoChar.length));
boolean equal = true;
for (int i = 0; i < wordLength; i++) {
if (tarouChar[i] > hanakoChar[i]) {
tarouPoint += 3;
equal = false;
break;
} else if (tarouChar[i] < hanakoChar[i]) {
hanakoPoint += 3;
equal = false;
break;
}
}
if (equal) {
if (tarouChar.length > hanakoChar.length) {
tarouPoint += 3;
} else {
hanakoPoint += 3;
}
}
}
System.out.println(tarouPoint +" "+ hanakoPoint);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
18,
13,
17,
18,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
4,
18,
13,
13,
17,
4,
18,
13,
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
],
[
24,
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
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
38,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
38,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
76,
78
],
[
68,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
8,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
89,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
89,
94
],
[
89,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
6,
99
],
[
99,
100
]
]
| [
"import java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int taroPoint = 0;\n int hanakoPoint = 0;\n scanner.nextLine();\n \n for(int i=1;i<=n;i++){\n String input = scanner.nextLine();\n String inputArr[] = input.split(\" \");\n int check = inputArr[0].compareTo(inputArr[1]);\n if(check > 0){\n taroPoint += 3;\n } else if(check == 0){\n taroPoint += 1;\n hanakoPoint += 1;\n } else {\n hanakoPoint += 3;\n }\n }\n System.out.println(Integer.toString(taroPoint) + \" \" + Integer.toString(hanakoPoint));\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int taroPoint = 0;\n int hanakoPoint = 0;\n scanner.nextLine();\n \n for(int i=1;i<=n;i++){\n String input = scanner.nextLine();\n String inputArr[] = input.split(\" \");\n int check = inputArr[0].compareTo(inputArr[1]);\n if(check > 0){\n taroPoint += 3;\n } else if(check == 0){\n taroPoint += 1;\n hanakoPoint += 1;\n } else {\n hanakoPoint += 3;\n }\n }\n System.out.println(Integer.toString(taroPoint) + \" \" + Integer.toString(hanakoPoint));\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int taroPoint = 0;\n int hanakoPoint = 0;\n scanner.nextLine();\n \n for(int i=1;i<=n;i++){\n String input = scanner.nextLine();\n String inputArr[] = input.split(\" \");\n int check = inputArr[0].compareTo(inputArr[1]);\n if(check > 0){\n taroPoint += 3;\n } else if(check == 0){\n taroPoint += 1;\n hanakoPoint += 1;\n } else {\n hanakoPoint += 3;\n }\n }\n System.out.println(Integer.toString(taroPoint) + \" \" + Integer.toString(hanakoPoint));\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int taroPoint = 0;\n int hanakoPoint = 0;\n scanner.nextLine();\n \n for(int i=1;i<=n;i++){\n String input = scanner.nextLine();\n String inputArr[] = input.split(\" \");\n int check = inputArr[0].compareTo(inputArr[1]);\n if(check > 0){\n taroPoint += 3;\n } else if(check == 0){\n taroPoint += 1;\n hanakoPoint += 1;\n } else {\n hanakoPoint += 3;\n }\n }\n System.out.println(Integer.toString(taroPoint) + \" \" + Integer.toString(hanakoPoint));\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int taroPoint = 0;",
"taroPoint",
"0",
"int hanakoPoint = 0;",
"hanakoPoint",
"0",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"for(int i=1;i<=n;i++){\n String input = scanner.nextLine();\n String inputArr[] = input.split(\" \");\n int check = inputArr[0].compareTo(inputArr[1]);\n if(check > 0){\n taroPoint += 3;\n } else if(check == 0){\n taroPoint += 1;\n hanakoPoint += 1;\n } else {\n hanakoPoint += 3;\n }\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String input = scanner.nextLine();\n String inputArr[] = input.split(\" \");\n int check = inputArr[0].compareTo(inputArr[1]);\n if(check > 0){\n taroPoint += 3;\n } else if(check == 0){\n taroPoint += 1;\n hanakoPoint += 1;\n } else {\n hanakoPoint += 3;\n }\n }",
"{\n String input = scanner.nextLine();\n String inputArr[] = input.split(\" \");\n int check = inputArr[0].compareTo(inputArr[1]);\n if(check > 0){\n taroPoint += 3;\n } else if(check == 0){\n taroPoint += 1;\n hanakoPoint += 1;\n } else {\n hanakoPoint += 3;\n }\n }",
"String input = scanner.nextLine();",
"input",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"String inputArr[] = input.split(\" \");",
"inputArr",
"input.split(\" \")",
"input.split",
"input",
"\" \"",
"int check = inputArr[0].compareTo(inputArr[1]);",
"check",
"inputArr[0].compareTo(inputArr[1])",
"inputArr[0].compareTo",
"inputArr[0]",
"inputArr",
"0",
"inputArr[1]",
"inputArr",
"1",
"if(check > 0){\n taroPoint += 3;\n } else if(check == 0){\n taroPoint += 1;\n hanakoPoint += 1;\n } else {\n hanakoPoint += 3;\n }",
"check > 0",
"check",
"0",
"{\n taroPoint += 3;\n }",
"taroPoint += 3",
"taroPoint",
"3",
"if(check == 0){\n taroPoint += 1;\n hanakoPoint += 1;\n } else {\n hanakoPoint += 3;\n }",
"check == 0",
"check",
"0",
"{\n taroPoint += 1;\n hanakoPoint += 1;\n }",
"taroPoint += 1",
"taroPoint",
"1",
"hanakoPoint += 1",
"hanakoPoint",
"1",
"{\n hanakoPoint += 3;\n }",
"hanakoPoint += 3",
"hanakoPoint",
"3",
"System.out.println(Integer.toString(taroPoint) + \" \" + Integer.toString(hanakoPoint))",
"System.out.println",
"System.out",
"System",
"System.out",
"Integer.toString(taroPoint) + \" \" + Integer.toString(hanakoPoint)",
"Integer.toString(taroPoint) + \" \" + Integer.toString(hanakoPoint)",
"Integer.toString(taroPoint)",
"Integer.toString",
"Integer",
"taroPoint",
"\" \"",
"Integer.toString(hanakoPoint)",
"Integer.toString",
"Integer",
"hanakoPoint",
"String[] args",
"args"
]
| import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int taroPoint = 0;
int hanakoPoint = 0;
scanner.nextLine();
for(int i=1;i<=n;i++){
String input = scanner.nextLine();
String inputArr[] = input.split(" ");
int check = inputArr[0].compareTo(inputArr[1]);
if(check > 0){
taroPoint += 3;
} else if(check == 0){
taroPoint += 1;
hanakoPoint += 1;
} else {
hanakoPoint += 3;
}
}
System.out.println(Integer.toString(taroPoint) + " " + Integer.toString(hanakoPoint));
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
30,
0,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
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
],
[
8,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
39,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
51,
56
],
[
50,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
50,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
62,
67
],
[
61,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
61,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
76,
78
],
[
8,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
85,
85
],
[
85,
86
],
[
85,
87
],
[
85,
88
],
[
6,
89
],
[
89,
90
],
[
0,
91
],
[
91,
92
],
[
91,
93
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tString taro;\n\t\tString hanako;\n\t\tint point_taro = 0;\n\t\tint point_hanako = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ttaro = scan.next();\n\t\t\thanako = scan.next();\n\t\t\tif (taro.compareTo(hanako) < 0) {\n\t\t\t\tpoint_hanako += 3;\n\t\t\t} else if (taro.compareTo(hanako) > 0) {\n\t\t\t\tpoint_taro += 3;\n\t\t\t} else {\n\t\t\t\tpoint_taro += 1;\n\t\t\t\tpoint_hanako += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(point_taro + \" \" + point_hanako);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tString taro;\n\t\tString hanako;\n\t\tint point_taro = 0;\n\t\tint point_hanako = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ttaro = scan.next();\n\t\t\thanako = scan.next();\n\t\t\tif (taro.compareTo(hanako) < 0) {\n\t\t\t\tpoint_hanako += 3;\n\t\t\t} else if (taro.compareTo(hanako) > 0) {\n\t\t\t\tpoint_taro += 3;\n\t\t\t} else {\n\t\t\t\tpoint_taro += 1;\n\t\t\t\tpoint_hanako += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(point_taro + \" \" + point_hanako);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tString taro;\n\t\tString hanako;\n\t\tint point_taro = 0;\n\t\tint point_hanako = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ttaro = scan.next();\n\t\t\thanako = scan.next();\n\t\t\tif (taro.compareTo(hanako) < 0) {\n\t\t\t\tpoint_hanako += 3;\n\t\t\t} else if (taro.compareTo(hanako) > 0) {\n\t\t\t\tpoint_taro += 3;\n\t\t\t} else {\n\t\t\t\tpoint_taro += 1;\n\t\t\t\tpoint_hanako += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(point_taro + \" \" + point_hanako);\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tString taro;\n\t\tString hanako;\n\t\tint point_taro = 0;\n\t\tint point_hanako = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ttaro = scan.next();\n\t\t\thanako = scan.next();\n\t\t\tif (taro.compareTo(hanako) < 0) {\n\t\t\t\tpoint_hanako += 3;\n\t\t\t} else if (taro.compareTo(hanako) > 0) {\n\t\t\t\tpoint_taro += 3;\n\t\t\t} else {\n\t\t\t\tpoint_taro += 1;\n\t\t\t\tpoint_hanako += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(point_taro + \" \" + point_hanako);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String taro;",
"taro",
"String hanako;",
"hanako",
"int point_taro = 0;",
"point_taro",
"0",
"int point_hanako = 0;",
"point_hanako",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\ttaro = scan.next();\n\t\t\thanako = scan.next();\n\t\t\tif (taro.compareTo(hanako) < 0) {\n\t\t\t\tpoint_hanako += 3;\n\t\t\t} else if (taro.compareTo(hanako) > 0) {\n\t\t\t\tpoint_taro += 3;\n\t\t\t} else {\n\t\t\t\tpoint_taro += 1;\n\t\t\t\tpoint_hanako += 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\ttaro = scan.next();\n\t\t\thanako = scan.next();\n\t\t\tif (taro.compareTo(hanako) < 0) {\n\t\t\t\tpoint_hanako += 3;\n\t\t\t} else if (taro.compareTo(hanako) > 0) {\n\t\t\t\tpoint_taro += 3;\n\t\t\t} else {\n\t\t\t\tpoint_taro += 1;\n\t\t\t\tpoint_hanako += 1;\n\t\t\t}\n\t\t}",
"{\n\t\t\ttaro = scan.next();\n\t\t\thanako = scan.next();\n\t\t\tif (taro.compareTo(hanako) < 0) {\n\t\t\t\tpoint_hanako += 3;\n\t\t\t} else if (taro.compareTo(hanako) > 0) {\n\t\t\t\tpoint_taro += 3;\n\t\t\t} else {\n\t\t\t\tpoint_taro += 1;\n\t\t\t\tpoint_hanako += 1;\n\t\t\t}\n\t\t}",
"taro = scan.next()",
"taro",
"scan.next()",
"scan.next",
"scan",
"hanako = scan.next()",
"hanako",
"scan.next()",
"scan.next",
"scan",
"if (taro.compareTo(hanako) < 0) {\n\t\t\t\tpoint_hanako += 3;\n\t\t\t} else if (taro.compareTo(hanako) > 0) {\n\t\t\t\tpoint_taro += 3;\n\t\t\t} else {\n\t\t\t\tpoint_taro += 1;\n\t\t\t\tpoint_hanako += 1;\n\t\t\t}",
"taro.compareTo(hanako) < 0",
"taro.compareTo(hanako)",
"taro.compareTo",
"taro",
"hanako",
"0",
"{\n\t\t\t\tpoint_hanako += 3;\n\t\t\t}",
"point_hanako += 3",
"point_hanako",
"3",
"if (taro.compareTo(hanako) > 0) {\n\t\t\t\tpoint_taro += 3;\n\t\t\t} else {\n\t\t\t\tpoint_taro += 1;\n\t\t\t\tpoint_hanako += 1;\n\t\t\t}",
"taro.compareTo(hanako) > 0",
"taro.compareTo(hanako)",
"taro.compareTo",
"taro",
"hanako",
"0",
"{\n\t\t\t\tpoint_taro += 3;\n\t\t\t}",
"point_taro += 3",
"point_taro",
"3",
"{\n\t\t\t\tpoint_taro += 1;\n\t\t\t\tpoint_hanako += 1;\n\t\t\t}",
"point_taro += 1",
"point_taro",
"1",
"point_hanako += 1",
"point_hanako",
"1",
"System.out.println(point_taro + \" \" + point_hanako)",
"System.out.println",
"System.out",
"System",
"System.out",
"point_taro + \" \" + point_hanako",
"point_taro + \" \" + point_hanako",
"point_taro",
"\" \"",
"point_hanako",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tString taro;\n\t\tString hanako;\n\t\tint point_taro = 0;\n\t\tint point_hanako = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ttaro = scan.next();\n\t\t\thanako = scan.next();\n\t\t\tif (taro.compareTo(hanako) < 0) {\n\t\t\t\tpoint_hanako += 3;\n\t\t\t} else if (taro.compareTo(hanako) > 0) {\n\t\t\t\tpoint_taro += 3;\n\t\t\t} else {\n\t\t\t\tpoint_taro += 1;\n\t\t\t\tpoint_hanako += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(point_taro + \" \" + point_hanako);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tString taro;\n\t\tString hanako;\n\t\tint point_taro = 0;\n\t\tint point_hanako = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ttaro = scan.next();\n\t\t\thanako = scan.next();\n\t\t\tif (taro.compareTo(hanako) < 0) {\n\t\t\t\tpoint_hanako += 3;\n\t\t\t} else if (taro.compareTo(hanako) > 0) {\n\t\t\t\tpoint_taro += 3;\n\t\t\t} else {\n\t\t\t\tpoint_taro += 1;\n\t\t\t\tpoint_hanako += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(point_taro + \" \" + point_hanako);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
String taro;
String hanako;
int point_taro = 0;
int point_hanako = 0;
for (int i = 0; i < n; i++) {
taro = scan.next();
hanako = scan.next();
if (taro.compareTo(hanako) < 0) {
point_hanako += 3;
} else if (taro.compareTo(hanako) > 0) {
point_taro += 3;
} else {
point_taro += 1;
point_hanako += 1;
}
}
System.out.println(point_taro + " " + point_hanako);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
20,
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,
4,
18,
13,
17,
41,
13,
4,
18,
18,
13,
17,
18,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
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
],
[
106,
11
],
[
106,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
14,
24
],
[
24,
25
],
[
24,
26
],
[
14,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
32,
33
],
[
33,
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
],
[
52,
53
],
[
53,
54
],
[
50,
55
],
[
47,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
47,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
74,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
90,
92
],
[
14,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
99,
99
],
[
99,
100
],
[
99,
101
],
[
99,
102
],
[
12,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
]
| [
"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\tint turnNum = 0;\n\t\tint player1Score = 0;\n\t\tint player2Score = 0;\n\n\t\tBufferedReader br = new BufferedReader (new InputStreamReader(System.in));\n\n\t\tturnNum = Integer.parseInt(br.readLine());\n\n\t\tfor (int i = 0; i < turnNum; i++){\n\n\t\t\tString[] playerAnimal = (br.readLine()).split(\" \");\n\n\t\t\tint compareResult = playerAnimal[0].compareTo(playerAnimal[1]);\n\n\t\t\tif (compareResult > 0){\n\t\t\t\tplayer1Score += 3;\n\t\t\t} else if (compareResult < 0){\n\t\t\t\tplayer2Score += 3;\n\t\t\t} else if (compareResult == 0){\n\t\t\t\tplayer1Score += 1;\n\t\t\t\tplayer2Score += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(player1Score + \" \" + player2Score);\n\t}\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\tint turnNum = 0;\n\t\tint player1Score = 0;\n\t\tint player2Score = 0;\n\n\t\tBufferedReader br = new BufferedReader (new InputStreamReader(System.in));\n\n\t\tturnNum = Integer.parseInt(br.readLine());\n\n\t\tfor (int i = 0; i < turnNum; i++){\n\n\t\t\tString[] playerAnimal = (br.readLine()).split(\" \");\n\n\t\t\tint compareResult = playerAnimal[0].compareTo(playerAnimal[1]);\n\n\t\t\tif (compareResult > 0){\n\t\t\t\tplayer1Score += 3;\n\t\t\t} else if (compareResult < 0){\n\t\t\t\tplayer2Score += 3;\n\t\t\t} else if (compareResult == 0){\n\t\t\t\tplayer1Score += 1;\n\t\t\t\tplayer2Score += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(player1Score + \" \" + player2Score);\n\t}\n}",
"Main",
"public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tint turnNum = 0;\n\t\tint player1Score = 0;\n\t\tint player2Score = 0;\n\n\t\tBufferedReader br = new BufferedReader (new InputStreamReader(System.in));\n\n\t\tturnNum = Integer.parseInt(br.readLine());\n\n\t\tfor (int i = 0; i < turnNum; i++){\n\n\t\t\tString[] playerAnimal = (br.readLine()).split(\" \");\n\n\t\t\tint compareResult = playerAnimal[0].compareTo(playerAnimal[1]);\n\n\t\t\tif (compareResult > 0){\n\t\t\t\tplayer1Score += 3;\n\t\t\t} else if (compareResult < 0){\n\t\t\t\tplayer2Score += 3;\n\t\t\t} else if (compareResult == 0){\n\t\t\t\tplayer1Score += 1;\n\t\t\t\tplayer2Score += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(player1Score + \" \" + player2Score);\n\t}",
"main",
"{\n\t\tint turnNum = 0;\n\t\tint player1Score = 0;\n\t\tint player2Score = 0;\n\n\t\tBufferedReader br = new BufferedReader (new InputStreamReader(System.in));\n\n\t\tturnNum = Integer.parseInt(br.readLine());\n\n\t\tfor (int i = 0; i < turnNum; i++){\n\n\t\t\tString[] playerAnimal = (br.readLine()).split(\" \");\n\n\t\t\tint compareResult = playerAnimal[0].compareTo(playerAnimal[1]);\n\n\t\t\tif (compareResult > 0){\n\t\t\t\tplayer1Score += 3;\n\t\t\t} else if (compareResult < 0){\n\t\t\t\tplayer2Score += 3;\n\t\t\t} else if (compareResult == 0){\n\t\t\t\tplayer1Score += 1;\n\t\t\t\tplayer2Score += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(player1Score + \" \" + player2Score);\n\t}",
"int turnNum = 0;",
"turnNum",
"0",
"int player1Score = 0;",
"player1Score",
"0",
"int player2Score = 0;",
"player2Score",
"0",
"BufferedReader br = new BufferedReader (new InputStreamReader(System.in));",
"br",
"new BufferedReader (new InputStreamReader(System.in))",
"turnNum = Integer.parseInt(br.readLine())",
"turnNum",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for (int i = 0; i < turnNum; i++){\n\n\t\t\tString[] playerAnimal = (br.readLine()).split(\" \");\n\n\t\t\tint compareResult = playerAnimal[0].compareTo(playerAnimal[1]);\n\n\t\t\tif (compareResult > 0){\n\t\t\t\tplayer1Score += 3;\n\t\t\t} else if (compareResult < 0){\n\t\t\t\tplayer2Score += 3;\n\t\t\t} else if (compareResult == 0){\n\t\t\t\tplayer1Score += 1;\n\t\t\t\tplayer2Score += 1;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < turnNum",
"i",
"turnNum",
"i++",
"i++",
"i",
"{\n\n\t\t\tString[] playerAnimal = (br.readLine()).split(\" \");\n\n\t\t\tint compareResult = playerAnimal[0].compareTo(playerAnimal[1]);\n\n\t\t\tif (compareResult > 0){\n\t\t\t\tplayer1Score += 3;\n\t\t\t} else if (compareResult < 0){\n\t\t\t\tplayer2Score += 3;\n\t\t\t} else if (compareResult == 0){\n\t\t\t\tplayer1Score += 1;\n\t\t\t\tplayer2Score += 1;\n\t\t\t}\n\t\t}",
"{\n\n\t\t\tString[] playerAnimal = (br.readLine()).split(\" \");\n\n\t\t\tint compareResult = playerAnimal[0].compareTo(playerAnimal[1]);\n\n\t\t\tif (compareResult > 0){\n\t\t\t\tplayer1Score += 3;\n\t\t\t} else if (compareResult < 0){\n\t\t\t\tplayer2Score += 3;\n\t\t\t} else if (compareResult == 0){\n\t\t\t\tplayer1Score += 1;\n\t\t\t\tplayer2Score += 1;\n\t\t\t}\n\t\t}",
"String[] playerAnimal = (br.readLine()).split(\" \");",
"playerAnimal",
"(br.readLine()).split(\" \")",
"(br.readLine()).split",
"(br.readLine())",
"br.readLine",
"br",
"\" \"",
"int compareResult = playerAnimal[0].compareTo(playerAnimal[1]);",
"compareResult",
"playerAnimal[0].compareTo(playerAnimal[1])",
"playerAnimal[0].compareTo",
"playerAnimal[0]",
"playerAnimal",
"0",
"playerAnimal[1]",
"playerAnimal",
"1",
"if (compareResult > 0){\n\t\t\t\tplayer1Score += 3;\n\t\t\t} else if (compareResult < 0){\n\t\t\t\tplayer2Score += 3;\n\t\t\t} else if (compareResult == 0){\n\t\t\t\tplayer1Score += 1;\n\t\t\t\tplayer2Score += 1;\n\t\t\t}",
"compareResult > 0",
"compareResult",
"0",
"{\n\t\t\t\tplayer1Score += 3;\n\t\t\t}",
"player1Score += 3",
"player1Score",
"3",
"if (compareResult < 0){\n\t\t\t\tplayer2Score += 3;\n\t\t\t} else if (compareResult == 0){\n\t\t\t\tplayer1Score += 1;\n\t\t\t\tplayer2Score += 1;\n\t\t\t}",
"compareResult < 0",
"compareResult",
"0",
"{\n\t\t\t\tplayer2Score += 3;\n\t\t\t}",
"player2Score += 3",
"player2Score",
"3",
"if (compareResult == 0){\n\t\t\t\tplayer1Score += 1;\n\t\t\t\tplayer2Score += 1;\n\t\t\t}",
"compareResult == 0",
"compareResult",
"0",
"{\n\t\t\t\tplayer1Score += 1;\n\t\t\t\tplayer2Score += 1;\n\t\t\t}",
"player1Score += 1",
"player1Score",
"1",
"player2Score += 1",
"player2Score",
"1",
"System.out.println(player1Score + \" \" + player2Score)",
"System.out.println",
"System.out",
"System",
"System.out",
"player1Score + \" \" + player2Score",
"player1Score + \" \" + player2Score",
"player1Score",
"\" \"",
"player2Score",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tint turnNum = 0;\n\t\tint player1Score = 0;\n\t\tint player2Score = 0;\n\n\t\tBufferedReader br = new BufferedReader (new InputStreamReader(System.in));\n\n\t\tturnNum = Integer.parseInt(br.readLine());\n\n\t\tfor (int i = 0; i < turnNum; i++){\n\n\t\t\tString[] playerAnimal = (br.readLine()).split(\" \");\n\n\t\t\tint compareResult = playerAnimal[0].compareTo(playerAnimal[1]);\n\n\t\t\tif (compareResult > 0){\n\t\t\t\tplayer1Score += 3;\n\t\t\t} else if (compareResult < 0){\n\t\t\t\tplayer2Score += 3;\n\t\t\t} else if (compareResult == 0){\n\t\t\t\tplayer1Score += 1;\n\t\t\t\tplayer2Score += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(player1Score + \" \" + player2Score);\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tint turnNum = 0;\n\t\tint player1Score = 0;\n\t\tint player2Score = 0;\n\n\t\tBufferedReader br = new BufferedReader (new InputStreamReader(System.in));\n\n\t\tturnNum = Integer.parseInt(br.readLine());\n\n\t\tfor (int i = 0; i < turnNum; i++){\n\n\t\t\tString[] playerAnimal = (br.readLine()).split(\" \");\n\n\t\t\tint compareResult = playerAnimal[0].compareTo(playerAnimal[1]);\n\n\t\t\tif (compareResult > 0){\n\t\t\t\tplayer1Score += 3;\n\t\t\t} else if (compareResult < 0){\n\t\t\t\tplayer2Score += 3;\n\t\t\t} else if (compareResult == 0){\n\t\t\t\tplayer1Score += 1;\n\t\t\t\tplayer2Score += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(player1Score + \" \" + player2Score);\n\t}\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 {
int turnNum = 0;
int player1Score = 0;
int player2Score = 0;
BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
turnNum = Integer.parseInt(br.readLine());
for (int i = 0; i < turnNum; i++){
String[] playerAnimal = (br.readLine()).split(" ");
int compareResult = playerAnimal[0].compareTo(playerAnimal[1]);
if (compareResult > 0){
player1Score += 3;
} else if (compareResult < 0){
player2Score += 3;
} else if (compareResult == 0){
player1Score += 1;
player2Score += 1;
}
}
System.out.println(player1Score + " " + player2Score);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
20,
13,
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,
0,
18,
13,
13,
4,
18,
13,
14,
2,
4,
18,
18,
13,
13,
18,
13,
13,
17,
30,
0,
13,
17,
14,
2,
4,
18,
18,
13,
13,
18,
13,
13,
17,
30,
0,
13,
17,
30,
0,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
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,
21
],
[
21,
22
],
[
21,
23
],
[
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
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
49,
50
],
[
43,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
56,
57
],
[
43,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
59,
68
],
[
58,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
58,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
74,
83
],
[
73,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
73,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
92,
94
],
[
8,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
101,
101
],
[
101,
102
],
[
101,
103
],
[
101,
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{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint cards = scan.nextInt();\n\t\tString[] cardA = new String[cards];\n\t\tString[] cardB = new String[cards];\n\t\tint scoreA = 0;\n\t\tint scoreB = 0;\n\t\tfor(int i = 0;i < cards;i++)\n\t\t{\n\t\t\tcardA[i] = scan.next();\n\t\t\tcardB[i] = scan.next();\n\t\t\t\n\t\t\tif(cardA[i].compareTo(cardB[i]) > 0) //winner:A\n\t\t\t{\n\t\t\t\tscoreA += 3;\n\t\t\t}else if(cardA[i].compareTo(cardB[i]) < 0){ //winner:B\n\t\t\t\tscoreB += 3;\n\t\t\t}else{ //drrow\n\t\t\t\tscoreA += 1;\n\t\t\t\tscoreB += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(scoreA + \" \" + scoreB);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint cards = scan.nextInt();\n\t\tString[] cardA = new String[cards];\n\t\tString[] cardB = new String[cards];\n\t\tint scoreA = 0;\n\t\tint scoreB = 0;\n\t\tfor(int i = 0;i < cards;i++)\n\t\t{\n\t\t\tcardA[i] = scan.next();\n\t\t\tcardB[i] = scan.next();\n\t\t\t\n\t\t\tif(cardA[i].compareTo(cardB[i]) > 0) //winner:A\n\t\t\t{\n\t\t\t\tscoreA += 3;\n\t\t\t}else if(cardA[i].compareTo(cardB[i]) < 0){ //winner:B\n\t\t\t\tscoreB += 3;\n\t\t\t}else{ //drrow\n\t\t\t\tscoreA += 1;\n\t\t\t\tscoreB += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(scoreA + \" \" + scoreB);\n\t}\n}",
"Main",
"public static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint cards = scan.nextInt();\n\t\tString[] cardA = new String[cards];\n\t\tString[] cardB = new String[cards];\n\t\tint scoreA = 0;\n\t\tint scoreB = 0;\n\t\tfor(int i = 0;i < cards;i++)\n\t\t{\n\t\t\tcardA[i] = scan.next();\n\t\t\tcardB[i] = scan.next();\n\t\t\t\n\t\t\tif(cardA[i].compareTo(cardB[i]) > 0) //winner:A\n\t\t\t{\n\t\t\t\tscoreA += 3;\n\t\t\t}else if(cardA[i].compareTo(cardB[i]) < 0){ //winner:B\n\t\t\t\tscoreB += 3;\n\t\t\t}else{ //drrow\n\t\t\t\tscoreA += 1;\n\t\t\t\tscoreB += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(scoreA + \" \" + scoreB);\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint cards = scan.nextInt();\n\t\tString[] cardA = new String[cards];\n\t\tString[] cardB = new String[cards];\n\t\tint scoreA = 0;\n\t\tint scoreB = 0;\n\t\tfor(int i = 0;i < cards;i++)\n\t\t{\n\t\t\tcardA[i] = scan.next();\n\t\t\tcardB[i] = scan.next();\n\t\t\t\n\t\t\tif(cardA[i].compareTo(cardB[i]) > 0) //winner:A\n\t\t\t{\n\t\t\t\tscoreA += 3;\n\t\t\t}else if(cardA[i].compareTo(cardB[i]) < 0){ //winner:B\n\t\t\t\tscoreB += 3;\n\t\t\t}else{ //drrow\n\t\t\t\tscoreA += 1;\n\t\t\t\tscoreB += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(scoreA + \" \" + scoreB);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int cards = scan.nextInt();",
"cards",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String[] cardA = new String[cards];",
"cardA",
"new String[cards]",
"cards",
"String[] cardB = new String[cards];",
"cardB",
"new String[cards]",
"cards",
"int scoreA = 0;",
"scoreA",
"0",
"int scoreB = 0;",
"scoreB",
"0",
"for(int i = 0;i < cards;i++)\n\t\t{\n\t\t\tcardA[i] = scan.next();\n\t\t\tcardB[i] = scan.next();\n\t\t\t\n\t\t\tif(cardA[i].compareTo(cardB[i]) > 0) //winner:A\n\t\t\t{\n\t\t\t\tscoreA += 3;\n\t\t\t}else if(cardA[i].compareTo(cardB[i]) < 0){ //winner:B\n\t\t\t\tscoreB += 3;\n\t\t\t}else{ //drrow\n\t\t\t\tscoreA += 1;\n\t\t\t\tscoreB += 1;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < cards",
"i",
"cards",
"i++",
"i++",
"i",
"{\n\t\t\tcardA[i] = scan.next();\n\t\t\tcardB[i] = scan.next();\n\t\t\t\n\t\t\tif(cardA[i].compareTo(cardB[i]) > 0) //winner:A\n\t\t\t{\n\t\t\t\tscoreA += 3;\n\t\t\t}else if(cardA[i].compareTo(cardB[i]) < 0){ //winner:B\n\t\t\t\tscoreB += 3;\n\t\t\t}else{ //drrow\n\t\t\t\tscoreA += 1;\n\t\t\t\tscoreB += 1;\n\t\t\t}\n\t\t}",
"{\n\t\t\tcardA[i] = scan.next();\n\t\t\tcardB[i] = scan.next();\n\t\t\t\n\t\t\tif(cardA[i].compareTo(cardB[i]) > 0) //winner:A\n\t\t\t{\n\t\t\t\tscoreA += 3;\n\t\t\t}else if(cardA[i].compareTo(cardB[i]) < 0){ //winner:B\n\t\t\t\tscoreB += 3;\n\t\t\t}else{ //drrow\n\t\t\t\tscoreA += 1;\n\t\t\t\tscoreB += 1;\n\t\t\t}\n\t\t}",
"cardA[i] = scan.next()",
"cardA[i]",
"cardA",
"i",
"scan.next()",
"scan.next",
"scan",
"cardB[i] = scan.next()",
"cardB[i]",
"cardB",
"i",
"scan.next()",
"scan.next",
"scan",
"if(cardA[i].compareTo(cardB[i]) > 0) //winner:A\n\t\t\t{\n\t\t\t\tscoreA += 3;\n\t\t\t}else if(cardA[i].compareTo(cardB[i]) < 0){ //winner:B\n\t\t\t\tscoreB += 3;\n\t\t\t}else{ //drrow\n\t\t\t\tscoreA += 1;\n\t\t\t\tscoreB += 1;\n\t\t\t}",
"cardA[i].compareTo(cardB[i]) > 0",
"cardA[i].compareTo(cardB[i])",
"cardA[i].compareTo",
"cardA[i]",
"cardA",
"i",
"cardB[i]",
"cardB",
"i",
"0",
"{\n\t\t\t\tscoreA += 3;\n\t\t\t}",
"scoreA += 3",
"scoreA",
"3",
"if(cardA[i].compareTo(cardB[i]) < 0){ //winner:B\n\t\t\t\tscoreB += 3;\n\t\t\t}else{ //drrow\n\t\t\t\tscoreA += 1;\n\t\t\t\tscoreB += 1;\n\t\t\t}",
"cardA[i].compareTo(cardB[i]) < 0",
"cardA[i].compareTo(cardB[i])",
"cardA[i].compareTo",
"cardA[i]",
"cardA",
"i",
"cardB[i]",
"cardB",
"i",
"0",
"{ //winner:B\n\t\t\t\tscoreB += 3;\n\t\t\t}",
"scoreB += 3",
"scoreB",
"3",
"{ //drrow\n\t\t\t\tscoreA += 1;\n\t\t\t\tscoreB += 1;\n\t\t\t}",
"scoreA += 1",
"scoreA",
"1",
"scoreB += 1",
"scoreB",
"1",
"System.out.println(scoreA + \" \" + scoreB)",
"System.out.println",
"System.out",
"System",
"System.out",
"scoreA + \" \" + scoreB",
"scoreA + \" \" + scoreB",
"scoreA",
"\" \"",
"scoreB",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint cards = scan.nextInt();\n\t\tString[] cardA = new String[cards];\n\t\tString[] cardB = new String[cards];\n\t\tint scoreA = 0;\n\t\tint scoreB = 0;\n\t\tfor(int i = 0;i < cards;i++)\n\t\t{\n\t\t\tcardA[i] = scan.next();\n\t\t\tcardB[i] = scan.next();\n\t\t\t\n\t\t\tif(cardA[i].compareTo(cardB[i]) > 0) //winner:A\n\t\t\t{\n\t\t\t\tscoreA += 3;\n\t\t\t}else if(cardA[i].compareTo(cardB[i]) < 0){ //winner:B\n\t\t\t\tscoreB += 3;\n\t\t\t}else{ //drrow\n\t\t\t\tscoreA += 1;\n\t\t\t\tscoreB += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(scoreA + \" \" + scoreB);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint cards = scan.nextInt();\n\t\tString[] cardA = new String[cards];\n\t\tString[] cardB = new String[cards];\n\t\tint scoreA = 0;\n\t\tint scoreB = 0;\n\t\tfor(int i = 0;i < cards;i++)\n\t\t{\n\t\t\tcardA[i] = scan.next();\n\t\t\tcardB[i] = scan.next();\n\t\t\t\n\t\t\tif(cardA[i].compareTo(cardB[i]) > 0) //winner:A\n\t\t\t{\n\t\t\t\tscoreA += 3;\n\t\t\t}else if(cardA[i].compareTo(cardB[i]) < 0){ //winner:B\n\t\t\t\tscoreB += 3;\n\t\t\t}else{ //drrow\n\t\t\t\tscoreA += 1;\n\t\t\t\tscoreB += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(scoreA + \" \" + scoreB);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args)
{
Scanner scan = new Scanner(System.in);
int cards = scan.nextInt();
String[] cardA = new String[cards];
String[] cardB = new String[cards];
int scoreA = 0;
int scoreB = 0;
for(int i = 0;i < cards;i++)
{
cardA[i] = scan.next();
cardB[i] = scan.next();
if(cardA[i].compareTo(cardB[i]) > 0) //winner:A
{
scoreA += 3;
}else if(cardA[i].compareTo(cardB[i]) < 0){ //winner:B
scoreB += 3;
}else{ //drrow
scoreA += 1;
scoreB += 1;
}
}
System.out.println(scoreA + " " + scoreB);
}
} |
[
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
18,
13,
13,
30,
0,
13,
17,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
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
],
[
92,
8
],
[
92,
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
],
[
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
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
49,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
58,
60
],
[
49,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
62,
67
],
[
61,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
61,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
11,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
82,
82
],
[
82,
83
],
[
82,
84
],
[
82,
85
],
[
11,
86
],
[
86,
87
],
[
87,
88
],
[
9,
89
],
[
89,
90
],
[
0,
91
],
[
91,
92
],
[
91,
93
]
]
| [
"import java.io.IOException;\nimport java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\n\t\tint tp = 0;\n\t\tint hp = 0;\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tString t = sc.next();\n\t\t\tString h = sc.next();\n\n\t\t\tif(t.equals(h)) {\n\t\t\t\ttp += 1;\n\t\t\t\thp += 1;\n\t\t\t}else if(t.compareTo(h) > 0) {\n\t\t\t\ttp += 3;\n\t\t\t}else {\n\t\t\t\thp += 3;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(tp + \" \" + hp);\n\n\t\tsc.close();\n\t}\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\n\t\tint tp = 0;\n\t\tint hp = 0;\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tString t = sc.next();\n\t\t\tString h = sc.next();\n\n\t\t\tif(t.equals(h)) {\n\t\t\t\ttp += 1;\n\t\t\t\thp += 1;\n\t\t\t}else if(t.compareTo(h) > 0) {\n\t\t\t\ttp += 3;\n\t\t\t}else {\n\t\t\t\thp += 3;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(tp + \" \" + hp);\n\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\n\t\tint tp = 0;\n\t\tint hp = 0;\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tString t = sc.next();\n\t\t\tString h = sc.next();\n\n\t\t\tif(t.equals(h)) {\n\t\t\t\ttp += 1;\n\t\t\t\thp += 1;\n\t\t\t}else if(t.compareTo(h) > 0) {\n\t\t\t\ttp += 3;\n\t\t\t}else {\n\t\t\t\thp += 3;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(tp + \" \" + hp);\n\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\n\t\tint tp = 0;\n\t\tint hp = 0;\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tString t = sc.next();\n\t\t\tString h = sc.next();\n\n\t\t\tif(t.equals(h)) {\n\t\t\t\ttp += 1;\n\t\t\t\thp += 1;\n\t\t\t}else if(t.compareTo(h) > 0) {\n\t\t\t\ttp += 3;\n\t\t\t}else {\n\t\t\t\thp += 3;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(tp + \" \" + hp);\n\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int tp = 0;",
"tp",
"0",
"int hp = 0;",
"hp",
"0",
"for(int i=0;i<x;i++) {\n\t\t\tString t = sc.next();\n\t\t\tString h = sc.next();\n\n\t\t\tif(t.equals(h)) {\n\t\t\t\ttp += 1;\n\t\t\t\thp += 1;\n\t\t\t}else if(t.compareTo(h) > 0) {\n\t\t\t\ttp += 3;\n\t\t\t}else {\n\t\t\t\thp += 3;\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<x",
"i",
"x",
"i++",
"i++",
"i",
"{\n\t\t\tString t = sc.next();\n\t\t\tString h = sc.next();\n\n\t\t\tif(t.equals(h)) {\n\t\t\t\ttp += 1;\n\t\t\t\thp += 1;\n\t\t\t}else if(t.compareTo(h) > 0) {\n\t\t\t\ttp += 3;\n\t\t\t}else {\n\t\t\t\thp += 3;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString t = sc.next();\n\t\t\tString h = sc.next();\n\n\t\t\tif(t.equals(h)) {\n\t\t\t\ttp += 1;\n\t\t\t\thp += 1;\n\t\t\t}else if(t.compareTo(h) > 0) {\n\t\t\t\ttp += 3;\n\t\t\t}else {\n\t\t\t\thp += 3;\n\t\t\t}\n\t\t}",
"String t = sc.next();",
"t",
"sc.next()",
"sc.next",
"sc",
"String h = sc.next();",
"h",
"sc.next()",
"sc.next",
"sc",
"if(t.equals(h)) {\n\t\t\t\ttp += 1;\n\t\t\t\thp += 1;\n\t\t\t}else if(t.compareTo(h) > 0) {\n\t\t\t\ttp += 3;\n\t\t\t}else {\n\t\t\t\thp += 3;\n\t\t\t}",
"t.equals(h)",
"t.equals",
"t",
"h",
"{\n\t\t\t\ttp += 1;\n\t\t\t\thp += 1;\n\t\t\t}",
"tp += 1",
"tp",
"1",
"hp += 1",
"hp",
"1",
"if(t.compareTo(h) > 0) {\n\t\t\t\ttp += 3;\n\t\t\t}else {\n\t\t\t\thp += 3;\n\t\t\t}",
"t.compareTo(h) > 0",
"t.compareTo(h)",
"t.compareTo",
"t",
"h",
"0",
"{\n\t\t\t\ttp += 3;\n\t\t\t}",
"tp += 3",
"tp",
"3",
"{\n\t\t\t\thp += 3;\n\t\t\t}",
"hp += 3",
"hp",
"3",
"System.out.println(tp + \" \" + hp)",
"System.out.println",
"System.out",
"System",
"System.out",
"tp + \" \" + hp",
"tp + \" \" + hp",
"tp",
"\" \"",
"hp",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\n\t\tint tp = 0;\n\t\tint hp = 0;\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tString t = sc.next();\n\t\t\tString h = sc.next();\n\n\t\t\tif(t.equals(h)) {\n\t\t\t\ttp += 1;\n\t\t\t\thp += 1;\n\t\t\t}else if(t.compareTo(h) > 0) {\n\t\t\t\ttp += 3;\n\t\t\t}else {\n\t\t\t\thp += 3;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(tp + \" \" + hp);\n\n\t\tsc.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint x = sc.nextInt();\n\n\t\tint tp = 0;\n\t\tint hp = 0;\n\n\t\tfor(int i=0;i<x;i++) {\n\t\t\tString t = sc.next();\n\t\t\tString h = sc.next();\n\n\t\t\tif(t.equals(h)) {\n\t\t\t\ttp += 1;\n\t\t\t\thp += 1;\n\t\t\t}else if(t.compareTo(h) > 0) {\n\t\t\t\ttp += 3;\n\t\t\t}else {\n\t\t\t\thp += 3;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(tp + \" \" + hp);\n\n\t\tsc.close();\n\t}\n}",
"Main"
]
| import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException{
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int tp = 0;
int hp = 0;
for(int i=0;i<x;i++) {
String t = sc.next();
String h = sc.next();
if(t.equals(h)) {
tp += 1;
hp += 1;
}else if(t.compareTo(h) > 0) {
tp += 3;
}else {
hp += 3;
}
}
System.out.println(tp + " " + hp);
sc.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,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
0,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
0,
13,
17,
30,
0,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
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
],
[
103,
11
],
[
103,
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
],
[
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
],
[
49,
50
],
[
50,
51
],
[
47,
52
],
[
44,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
54,
63
],
[
53,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
53,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
69,
78
],
[
68,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
68,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
87,
89
],
[
14,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
96,
96
],
[
96,
97
],
[
96,
98
],
[
96,
99
],
[
12,
100
],
[
100,
101
],
[
0,
102
],
[
102,
103
],
[
102,
104
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint taroscore = 0;\n\t\tint hanakoscore = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] str2 = br.readLine().split(\" \");\n\n\t\t\tif (str2[0].compareTo(str2[1]) > 0) {\n\t\t\t\ttaroscore += 3;\n\t\t\t} else if (str2[0].compareTo(str2[1]) < 0) {\n\t\t\t\thanakoscore += 3;\n\t\t\t} else {\n\t\t\t\ttaroscore += 1;\n\t\t\t\thanakoscore += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroscore + \" \" + hanakoscore);\n\t}\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\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint taroscore = 0;\n\t\tint hanakoscore = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] str2 = br.readLine().split(\" \");\n\n\t\t\tif (str2[0].compareTo(str2[1]) > 0) {\n\t\t\t\ttaroscore += 3;\n\t\t\t} else if (str2[0].compareTo(str2[1]) < 0) {\n\t\t\t\thanakoscore += 3;\n\t\t\t} else {\n\t\t\t\ttaroscore += 1;\n\t\t\t\thanakoscore += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroscore + \" \" + hanakoscore);\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint taroscore = 0;\n\t\tint hanakoscore = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] str2 = br.readLine().split(\" \");\n\n\t\t\tif (str2[0].compareTo(str2[1]) > 0) {\n\t\t\t\ttaroscore += 3;\n\t\t\t} else if (str2[0].compareTo(str2[1]) < 0) {\n\t\t\t\thanakoscore += 3;\n\t\t\t} else {\n\t\t\t\ttaroscore += 1;\n\t\t\t\thanakoscore += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroscore + \" \" + hanakoscore);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint taroscore = 0;\n\t\tint hanakoscore = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] str2 = br.readLine().split(\" \");\n\n\t\t\tif (str2[0].compareTo(str2[1]) > 0) {\n\t\t\t\ttaroscore += 3;\n\t\t\t} else if (str2[0].compareTo(str2[1]) < 0) {\n\t\t\t\thanakoscore += 3;\n\t\t\t} else {\n\t\t\t\ttaroscore += 1;\n\t\t\t\thanakoscore += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroscore + \" \" + hanakoscore);\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 taroscore = 0;",
"taroscore",
"0",
"int hanakoscore = 0;",
"hanakoscore",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\tString[] str2 = br.readLine().split(\" \");\n\n\t\t\tif (str2[0].compareTo(str2[1]) > 0) {\n\t\t\t\ttaroscore += 3;\n\t\t\t} else if (str2[0].compareTo(str2[1]) < 0) {\n\t\t\t\thanakoscore += 3;\n\t\t\t} else {\n\t\t\t\ttaroscore += 1;\n\t\t\t\thanakoscore += 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[] str2 = br.readLine().split(\" \");\n\n\t\t\tif (str2[0].compareTo(str2[1]) > 0) {\n\t\t\t\ttaroscore += 3;\n\t\t\t} else if (str2[0].compareTo(str2[1]) < 0) {\n\t\t\t\thanakoscore += 3;\n\t\t\t} else {\n\t\t\t\ttaroscore += 1;\n\t\t\t\thanakoscore += 1;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString[] str2 = br.readLine().split(\" \");\n\n\t\t\tif (str2[0].compareTo(str2[1]) > 0) {\n\t\t\t\ttaroscore += 3;\n\t\t\t} else if (str2[0].compareTo(str2[1]) < 0) {\n\t\t\t\thanakoscore += 3;\n\t\t\t} else {\n\t\t\t\ttaroscore += 1;\n\t\t\t\thanakoscore += 1;\n\t\t\t}\n\t\t}",
"String[] str2 = br.readLine().split(\" \");",
"str2",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"if (str2[0].compareTo(str2[1]) > 0) {\n\t\t\t\ttaroscore += 3;\n\t\t\t} else if (str2[0].compareTo(str2[1]) < 0) {\n\t\t\t\thanakoscore += 3;\n\t\t\t} else {\n\t\t\t\ttaroscore += 1;\n\t\t\t\thanakoscore += 1;\n\t\t\t}",
"str2[0].compareTo(str2[1]) > 0",
"str2[0].compareTo(str2[1])",
"str2[0].compareTo",
"str2[0]",
"str2",
"0",
"str2[1]",
"str2",
"1",
"0",
"{\n\t\t\t\ttaroscore += 3;\n\t\t\t}",
"taroscore += 3",
"taroscore",
"3",
"if (str2[0].compareTo(str2[1]) < 0) {\n\t\t\t\thanakoscore += 3;\n\t\t\t} else {\n\t\t\t\ttaroscore += 1;\n\t\t\t\thanakoscore += 1;\n\t\t\t}",
"str2[0].compareTo(str2[1]) < 0",
"str2[0].compareTo(str2[1])",
"str2[0].compareTo",
"str2[0]",
"str2",
"0",
"str2[1]",
"str2",
"1",
"0",
"{\n\t\t\t\thanakoscore += 3;\n\t\t\t}",
"hanakoscore += 3",
"hanakoscore",
"3",
"{\n\t\t\t\ttaroscore += 1;\n\t\t\t\thanakoscore += 1;\n\t\t\t}",
"taroscore += 1",
"taroscore",
"1",
"hanakoscore += 1",
"hanakoscore",
"1",
"System.out.println(taroscore + \" \" + hanakoscore)",
"System.out.println",
"System.out",
"System",
"System.out",
"taroscore + \" \" + hanakoscore",
"taroscore + \" \" + hanakoscore",
"taroscore",
"\" \"",
"hanakoscore",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint taroscore = 0;\n\t\tint hanakoscore = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] str2 = br.readLine().split(\" \");\n\n\t\t\tif (str2[0].compareTo(str2[1]) > 0) {\n\t\t\t\ttaroscore += 3;\n\t\t\t} else if (str2[0].compareTo(str2[1]) < 0) {\n\t\t\t\thanakoscore += 3;\n\t\t\t} else {\n\t\t\t\ttaroscore += 1;\n\t\t\t\thanakoscore += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroscore + \" \" + hanakoscore);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint taroscore = 0;\n\t\tint hanakoscore = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] str2 = br.readLine().split(\" \");\n\n\t\t\tif (str2[0].compareTo(str2[1]) > 0) {\n\t\t\t\ttaroscore += 3;\n\t\t\t} else if (str2[0].compareTo(str2[1]) < 0) {\n\t\t\t\thanakoscore += 3;\n\t\t\t} else {\n\t\t\t\ttaroscore += 1;\n\t\t\t\thanakoscore += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroscore + \" \" + hanakoscore);\n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
int taroscore = 0;
int hanakoscore = 0;
for (int i = 0; i < n; i++) {
String[] str2 = br.readLine().split(" ");
if (str2[0].compareTo(str2[1]) > 0) {
taroscore += 3;
} else if (str2[0].compareTo(str2[1]) < 0) {
hanakoscore += 3;
} else {
taroscore += 1;
hanakoscore += 1;
}
}
System.out.println(taroscore + " " + hanakoscore);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
18,
13,
13,
30,
0,
13,
17,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
86,
5
],
[
86,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
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
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
46,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
55,
57
],
[
46,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
59,
64
],
[
58,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
58,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
79,
79
],
[
79,
80
],
[
79,
81
],
[
79,
82
],
[
6,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int Taro = 0;\n int Hanako = 0;\n for (int i =0; i<n; i++) {\n String a = sc.next();\n String b = sc.next();\n if (a.equals(b)) {\n Taro += 1;\n Hanako += 1;\n } else if (a.compareTo(b)>0) {\n Taro += 3;\n } else {\n Hanako += 3;\n }\n }\n System.out.println(Taro + \" \" + Hanako);\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 int n = sc.nextInt();\n int Taro = 0;\n int Hanako = 0;\n for (int i =0; i<n; i++) {\n String a = sc.next();\n String b = sc.next();\n if (a.equals(b)) {\n Taro += 1;\n Hanako += 1;\n } else if (a.compareTo(b)>0) {\n Taro += 3;\n } else {\n Hanako += 3;\n }\n }\n System.out.println(Taro + \" \" + Hanako);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int Taro = 0;\n int Hanako = 0;\n for (int i =0; i<n; i++) {\n String a = sc.next();\n String b = sc.next();\n if (a.equals(b)) {\n Taro += 1;\n Hanako += 1;\n } else if (a.compareTo(b)>0) {\n Taro += 3;\n } else {\n Hanako += 3;\n }\n }\n System.out.println(Taro + \" \" + Hanako);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int Taro = 0;\n int Hanako = 0;\n for (int i =0; i<n; i++) {\n String a = sc.next();\n String b = sc.next();\n if (a.equals(b)) {\n Taro += 1;\n Hanako += 1;\n } else if (a.compareTo(b)>0) {\n Taro += 3;\n } else {\n Hanako += 3;\n }\n }\n System.out.println(Taro + \" \" + Hanako);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int Taro = 0;",
"Taro",
"0",
"int Hanako = 0;",
"Hanako",
"0",
"for (int i =0; i<n; i++) {\n String a = sc.next();\n String b = sc.next();\n if (a.equals(b)) {\n Taro += 1;\n Hanako += 1;\n } else if (a.compareTo(b)>0) {\n Taro += 3;\n } else {\n Hanako += 3;\n }\n }",
"int i =0;",
"int i =0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String a = sc.next();\n String b = sc.next();\n if (a.equals(b)) {\n Taro += 1;\n Hanako += 1;\n } else if (a.compareTo(b)>0) {\n Taro += 3;\n } else {\n Hanako += 3;\n }\n }",
"{\n String a = sc.next();\n String b = sc.next();\n if (a.equals(b)) {\n Taro += 1;\n Hanako += 1;\n } else if (a.compareTo(b)>0) {\n Taro += 3;\n } else {\n Hanako += 3;\n }\n }",
"String a = sc.next();",
"a",
"sc.next()",
"sc.next",
"sc",
"String b = sc.next();",
"b",
"sc.next()",
"sc.next",
"sc",
"if (a.equals(b)) {\n Taro += 1;\n Hanako += 1;\n } else if (a.compareTo(b)>0) {\n Taro += 3;\n } else {\n Hanako += 3;\n }",
"a.equals(b)",
"a.equals",
"a",
"b",
"{\n Taro += 1;\n Hanako += 1;\n }",
"Taro += 1",
"Taro",
"1",
"Hanako += 1",
"Hanako",
"1",
"if (a.compareTo(b)>0) {\n Taro += 3;\n } else {\n Hanako += 3;\n }",
"a.compareTo(b)>0",
"a.compareTo(b)",
"a.compareTo",
"a",
"b",
"0",
"{\n Taro += 3;\n }",
"Taro += 3",
"Taro",
"3",
"{\n Hanako += 3;\n }",
"Hanako += 3",
"Hanako",
"3",
"System.out.println(Taro + \" \" + Hanako)",
"System.out.println",
"System.out",
"System",
"System.out",
"Taro + \" \" + Hanako",
"Taro + \" \" + Hanako",
"Taro",
"\" \"",
"Hanako",
"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 int Taro = 0;\n int Hanako = 0;\n for (int i =0; i<n; i++) {\n String a = sc.next();\n String b = sc.next();\n if (a.equals(b)) {\n Taro += 1;\n Hanako += 1;\n } else if (a.compareTo(b)>0) {\n Taro += 3;\n } else {\n Hanako += 3;\n }\n }\n System.out.println(Taro + \" \" + Hanako);\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 int Taro = 0;\n int Hanako = 0;\n for (int i =0; i<n; i++) {\n String a = sc.next();\n String b = sc.next();\n if (a.equals(b)) {\n Taro += 1;\n Hanako += 1;\n } else if (a.compareTo(b)>0) {\n Taro += 3;\n } else {\n Hanako += 3;\n }\n }\n System.out.println(Taro + \" \" + Hanako);\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 Taro = 0;
int Hanako = 0;
for (int i =0; i<n; i++) {
String a = sc.next();
String b = sc.next();
if (a.equals(b)) {
Taro += 1;
Hanako += 1;
} else if (a.compareTo(b)>0) {
Taro += 3;
} else {
Hanako += 3;
}
}
System.out.println(Taro + " " + Hanako);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
30,
40,
13,
40,
13,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
86,
5
],
[
86,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
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
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
46,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
56,
57
],
[
46,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
59,
64
],
[
58,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
58,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
79,
79
],
[
79,
80
],
[
79,
81
],
[
79,
82
],
[
6,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
]
| [
"import java.util.Scanner;\npublic class Main {\n \n \n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n int n = stdIn.nextInt();\n int L = 0;\n int R = 0;\n for(int i = 0; i < n; i++) {\n String s1 = stdIn.next();\n String s2 = stdIn.next();\n \n if(s1.compareTo(s2) == 0) {\n L++;\n R++;\n }\n else if(s1.compareTo(s2) < 0) {\n L += 3;\n }\n else {\n R += 3;\n }\n }\n \n System.out.println(R + \" \" + L);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n \n \n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n int n = stdIn.nextInt();\n int L = 0;\n int R = 0;\n for(int i = 0; i < n; i++) {\n String s1 = stdIn.next();\n String s2 = stdIn.next();\n \n if(s1.compareTo(s2) == 0) {\n L++;\n R++;\n }\n else if(s1.compareTo(s2) < 0) {\n L += 3;\n }\n else {\n R += 3;\n }\n }\n \n System.out.println(R + \" \" + L);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n int n = stdIn.nextInt();\n int L = 0;\n int R = 0;\n for(int i = 0; i < n; i++) {\n String s1 = stdIn.next();\n String s2 = stdIn.next();\n \n if(s1.compareTo(s2) == 0) {\n L++;\n R++;\n }\n else if(s1.compareTo(s2) < 0) {\n L += 3;\n }\n else {\n R += 3;\n }\n }\n \n System.out.println(R + \" \" + L);\n }",
"main",
"{\n Scanner stdIn = new Scanner(System.in);\n int n = stdIn.nextInt();\n int L = 0;\n int R = 0;\n for(int i = 0; i < n; i++) {\n String s1 = stdIn.next();\n String s2 = stdIn.next();\n \n if(s1.compareTo(s2) == 0) {\n L++;\n R++;\n }\n else if(s1.compareTo(s2) < 0) {\n L += 3;\n }\n else {\n R += 3;\n }\n }\n \n System.out.println(R + \" \" + L);\n }",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"int n = stdIn.nextInt();",
"n",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"int L = 0;",
"L",
"0",
"int R = 0;",
"R",
"0",
"for(int i = 0; i < n; i++) {\n String s1 = stdIn.next();\n String s2 = stdIn.next();\n \n if(s1.compareTo(s2) == 0) {\n L++;\n R++;\n }\n else if(s1.compareTo(s2) < 0) {\n L += 3;\n }\n else {\n R += 3;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String s1 = stdIn.next();\n String s2 = stdIn.next();\n \n if(s1.compareTo(s2) == 0) {\n L++;\n R++;\n }\n else if(s1.compareTo(s2) < 0) {\n L += 3;\n }\n else {\n R += 3;\n }\n }",
"{\n String s1 = stdIn.next();\n String s2 = stdIn.next();\n \n if(s1.compareTo(s2) == 0) {\n L++;\n R++;\n }\n else if(s1.compareTo(s2) < 0) {\n L += 3;\n }\n else {\n R += 3;\n }\n }",
"String s1 = stdIn.next();",
"s1",
"stdIn.next()",
"stdIn.next",
"stdIn",
"String s2 = stdIn.next();",
"s2",
"stdIn.next()",
"stdIn.next",
"stdIn",
"if(s1.compareTo(s2) == 0) {\n L++;\n R++;\n }\n else if(s1.compareTo(s2) < 0) {\n L += 3;\n }\n else {\n R += 3;\n }",
"s1.compareTo(s2) == 0",
"s1.compareTo(s2)",
"s1.compareTo",
"s1",
"s2",
"0",
"{\n L++;\n R++;\n }",
"L++",
"L",
"R++",
"R",
"if(s1.compareTo(s2) < 0) {\n L += 3;\n }\n else {\n R += 3;\n }",
"s1.compareTo(s2) < 0",
"s1.compareTo(s2)",
"s1.compareTo",
"s1",
"s2",
"0",
"{\n L += 3;\n }",
"L += 3",
"L",
"3",
"{\n R += 3;\n }",
"R += 3",
"R",
"3",
"System.out.println(R + \" \" + L)",
"System.out.println",
"System.out",
"System",
"System.out",
"R + \" \" + L",
"R + \" \" + L",
"R",
"\" \"",
"L",
"String[] args",
"args",
"public class Main {\n \n \n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n int n = stdIn.nextInt();\n int L = 0;\n int R = 0;\n for(int i = 0; i < n; i++) {\n String s1 = stdIn.next();\n String s2 = stdIn.next();\n \n if(s1.compareTo(s2) == 0) {\n L++;\n R++;\n }\n else if(s1.compareTo(s2) < 0) {\n L += 3;\n }\n else {\n R += 3;\n }\n }\n \n System.out.println(R + \" \" + L);\n }\n}",
"public class Main {\n \n \n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n int n = stdIn.nextInt();\n int L = 0;\n int R = 0;\n for(int i = 0; i < n; i++) {\n String s1 = stdIn.next();\n String s2 = stdIn.next();\n \n if(s1.compareTo(s2) == 0) {\n L++;\n R++;\n }\n else if(s1.compareTo(s2) < 0) {\n L += 3;\n }\n else {\n R += 3;\n }\n }\n \n System.out.println(R + \" \" + L);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
int n = stdIn.nextInt();
int L = 0;
int R = 0;
for(int i = 0; i < n; i++) {
String s1 = stdIn.next();
String s2 = stdIn.next();
if(s1.compareTo(s2) == 0) {
L++;
R++;
}
else if(s1.compareTo(s2) < 0) {
L += 3;
}
else {
R += 3;
}
}
System.out.println(R + " " + L);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
0,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
30,
40,
13,
40,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
89,
5
],
[
89,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
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
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
35,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
52,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
71,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
79,
79
],
[
79,
80
],
[
79,
81
],
[
79,
82
],
[
8,
83
],
[
83,
84
],
[
84,
85
],
[
6,
86
],
[
86,
87
],
[
0,
88
],
[
88,
89
],
[
88,
90
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in); \n\n\t\tint n = sc.nextInt();\n\n\t\tint taroP = 0;\n\t\tint hanaP = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString taro = sc.next();\n\t\t\tString hana = sc.next();\n\t\t\tint result = taro.compareTo(hana);\n\t\t\tif (result < 0) {\n\t\t\t\thanaP += 3;\n\t\t\t} else if (result > 0) {\n\t\t\t\ttaroP += 3;\n\t\t\t} else {\n\t\t\t\ttaroP++;\n\t\t\t\thanaP++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroP + \" \" + hanaP);\n\t\t\n\t\tsc.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in); \n\n\t\tint n = sc.nextInt();\n\n\t\tint taroP = 0;\n\t\tint hanaP = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString taro = sc.next();\n\t\t\tString hana = sc.next();\n\t\t\tint result = taro.compareTo(hana);\n\t\t\tif (result < 0) {\n\t\t\t\thanaP += 3;\n\t\t\t} else if (result > 0) {\n\t\t\t\ttaroP += 3;\n\t\t\t} else {\n\t\t\t\ttaroP++;\n\t\t\t\thanaP++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroP + \" \" + hanaP);\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\tint n = sc.nextInt();\n\n\t\tint taroP = 0;\n\t\tint hanaP = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString taro = sc.next();\n\t\t\tString hana = sc.next();\n\t\t\tint result = taro.compareTo(hana);\n\t\t\tif (result < 0) {\n\t\t\t\thanaP += 3;\n\t\t\t} else if (result > 0) {\n\t\t\t\ttaroP += 3;\n\t\t\t} else {\n\t\t\t\ttaroP++;\n\t\t\t\thanaP++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroP + \" \" + hanaP);\n\t\t\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in); \n\n\t\tint n = sc.nextInt();\n\n\t\tint taroP = 0;\n\t\tint hanaP = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString taro = sc.next();\n\t\t\tString hana = sc.next();\n\t\t\tint result = taro.compareTo(hana);\n\t\t\tif (result < 0) {\n\t\t\t\thanaP += 3;\n\t\t\t} else if (result > 0) {\n\t\t\t\ttaroP += 3;\n\t\t\t} else {\n\t\t\t\ttaroP++;\n\t\t\t\thanaP++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroP + \" \" + hanaP);\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 taroP = 0;",
"taroP",
"0",
"int hanaP = 0;",
"hanaP",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\tString taro = sc.next();\n\t\t\tString hana = sc.next();\n\t\t\tint result = taro.compareTo(hana);\n\t\t\tif (result < 0) {\n\t\t\t\thanaP += 3;\n\t\t\t} else if (result > 0) {\n\t\t\t\ttaroP += 3;\n\t\t\t} else {\n\t\t\t\ttaroP++;\n\t\t\t\thanaP++;\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 taro = sc.next();\n\t\t\tString hana = sc.next();\n\t\t\tint result = taro.compareTo(hana);\n\t\t\tif (result < 0) {\n\t\t\t\thanaP += 3;\n\t\t\t} else if (result > 0) {\n\t\t\t\ttaroP += 3;\n\t\t\t} else {\n\t\t\t\ttaroP++;\n\t\t\t\thanaP++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString taro = sc.next();\n\t\t\tString hana = sc.next();\n\t\t\tint result = taro.compareTo(hana);\n\t\t\tif (result < 0) {\n\t\t\t\thanaP += 3;\n\t\t\t} else if (result > 0) {\n\t\t\t\ttaroP += 3;\n\t\t\t} else {\n\t\t\t\ttaroP++;\n\t\t\t\thanaP++;\n\t\t\t}\n\t\t}",
"String taro = sc.next();",
"taro",
"sc.next()",
"sc.next",
"sc",
"String hana = sc.next();",
"hana",
"sc.next()",
"sc.next",
"sc",
"int result = taro.compareTo(hana);",
"result",
"taro.compareTo(hana)",
"taro.compareTo",
"taro",
"hana",
"if (result < 0) {\n\t\t\t\thanaP += 3;\n\t\t\t} else if (result > 0) {\n\t\t\t\ttaroP += 3;\n\t\t\t} else {\n\t\t\t\ttaroP++;\n\t\t\t\thanaP++;\n\t\t\t}",
"result < 0",
"result",
"0",
"{\n\t\t\t\thanaP += 3;\n\t\t\t}",
"hanaP += 3",
"hanaP",
"3",
"if (result > 0) {\n\t\t\t\ttaroP += 3;\n\t\t\t} else {\n\t\t\t\ttaroP++;\n\t\t\t\thanaP++;\n\t\t\t}",
"result > 0",
"result",
"0",
"{\n\t\t\t\ttaroP += 3;\n\t\t\t}",
"taroP += 3",
"taroP",
"3",
"{\n\t\t\t\ttaroP++;\n\t\t\t\thanaP++;\n\t\t\t}",
"taroP++",
"taroP",
"hanaP++",
"hanaP",
"System.out.println(taroP + \" \" + hanaP)",
"System.out.println",
"System.out",
"System",
"System.out",
"taroP + \" \" + hanaP",
"taroP + \" \" + hanaP",
"taroP",
"\" \"",
"hanaP",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in); \n\n\t\tint n = sc.nextInt();\n\n\t\tint taroP = 0;\n\t\tint hanaP = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString taro = sc.next();\n\t\t\tString hana = sc.next();\n\t\t\tint result = taro.compareTo(hana);\n\t\t\tif (result < 0) {\n\t\t\t\thanaP += 3;\n\t\t\t} else if (result > 0) {\n\t\t\t\ttaroP += 3;\n\t\t\t} else {\n\t\t\t\ttaroP++;\n\t\t\t\thanaP++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroP + \" \" + hanaP);\n\t\t\n\t\tsc.close();\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in); \n\n\t\tint n = sc.nextInt();\n\n\t\tint taroP = 0;\n\t\tint hanaP = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString taro = sc.next();\n\t\t\tString hana = sc.next();\n\t\t\tint result = taro.compareTo(hana);\n\t\t\tif (result < 0) {\n\t\t\t\thanaP += 3;\n\t\t\t} else if (result > 0) {\n\t\t\t\ttaroP += 3;\n\t\t\t} else {\n\t\t\t\ttaroP++;\n\t\t\t\thanaP++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroP + \" \" + hanaP);\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 taroP = 0;
int hanaP = 0;
for (int i = 0; i < n; i++) {
String taro = sc.next();
String hana = sc.next();
int result = taro.compareTo(hana);
if (result < 0) {
hanaP += 3;
} else if (result > 0) {
taroP += 3;
} else {
taroP++;
hanaP++;
}
}
System.out.println(taroP + " " + hanaP);
sc.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
40,
13,
40,
13,
14,
2,
13,
17,
30,
0,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
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
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
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
],
[
41,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
41,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
58,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
8,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
85,
85
],
[
85,
86
],
[
85,
87
],
[
85,
88
],
[
6,
89
],
[
89,
90
]
]
| [
"import java.util.Scanner;\n \nclass Main{\n \tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tString card1,card2;\n \tint cnt1 = 0,cnt2 = 0, x;\n \tint y = sc.nextInt();\n \tfor(int i = 0; i < y; i++){\n \t\tcard1 = sc.next();\n \t\tcard2 = sc.next();\n \t\tx = card1.compareTo(card2);\n \t\tif(x == 0){\n\t\t\t\tcnt1++;\n\t\t\t\tcnt2++;\n\t\t\t}else if(x > 0){\n\t\t\t\tcnt1 += 3;\n \t\t}else{\n\t\t\t\tcnt2 += 3;\n \t\t}\n\t\t}\n \tSystem.out.println(cnt1 + \" \" + cnt2);\n \t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n \tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tString card1,card2;\n \tint cnt1 = 0,cnt2 = 0, x;\n \tint y = sc.nextInt();\n \tfor(int i = 0; i < y; i++){\n \t\tcard1 = sc.next();\n \t\tcard2 = sc.next();\n \t\tx = card1.compareTo(card2);\n \t\tif(x == 0){\n\t\t\t\tcnt1++;\n\t\t\t\tcnt2++;\n\t\t\t}else if(x > 0){\n\t\t\t\tcnt1 += 3;\n \t\t}else{\n\t\t\t\tcnt2 += 3;\n \t\t}\n\t\t}\n \tSystem.out.println(cnt1 + \" \" + cnt2);\n \t}\n}",
"Main",
"public static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tString card1,card2;\n \tint cnt1 = 0,cnt2 = 0, x;\n \tint y = sc.nextInt();\n \tfor(int i = 0; i < y; i++){\n \t\tcard1 = sc.next();\n \t\tcard2 = sc.next();\n \t\tx = card1.compareTo(card2);\n \t\tif(x == 0){\n\t\t\t\tcnt1++;\n\t\t\t\tcnt2++;\n\t\t\t}else if(x > 0){\n\t\t\t\tcnt1 += 3;\n \t\t}else{\n\t\t\t\tcnt2 += 3;\n \t\t}\n\t\t}\n \tSystem.out.println(cnt1 + \" \" + cnt2);\n \t}",
"main",
"{\n \tScanner sc = new Scanner(System.in);\n \tString card1,card2;\n \tint cnt1 = 0,cnt2 = 0, x;\n \tint y = sc.nextInt();\n \tfor(int i = 0; i < y; i++){\n \t\tcard1 = sc.next();\n \t\tcard2 = sc.next();\n \t\tx = card1.compareTo(card2);\n \t\tif(x == 0){\n\t\t\t\tcnt1++;\n\t\t\t\tcnt2++;\n\t\t\t}else if(x > 0){\n\t\t\t\tcnt1 += 3;\n \t\t}else{\n\t\t\t\tcnt2 += 3;\n \t\t}\n\t\t}\n \tSystem.out.println(cnt1 + \" \" + cnt2);\n \t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String card1",
"card1",
"card2;",
"card2",
"int cnt1 = 0",
"cnt1",
"0",
"cnt2 = 0",
"cnt2",
"0",
"x;",
"x",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < y; i++){\n \t\tcard1 = sc.next();\n \t\tcard2 = sc.next();\n \t\tx = card1.compareTo(card2);\n \t\tif(x == 0){\n\t\t\t\tcnt1++;\n\t\t\t\tcnt2++;\n\t\t\t}else if(x > 0){\n\t\t\t\tcnt1 += 3;\n \t\t}else{\n\t\t\t\tcnt2 += 3;\n \t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < y",
"i",
"y",
"i++",
"i++",
"i",
"{\n \t\tcard1 = sc.next();\n \t\tcard2 = sc.next();\n \t\tx = card1.compareTo(card2);\n \t\tif(x == 0){\n\t\t\t\tcnt1++;\n\t\t\t\tcnt2++;\n\t\t\t}else if(x > 0){\n\t\t\t\tcnt1 += 3;\n \t\t}else{\n\t\t\t\tcnt2 += 3;\n \t\t}\n\t\t}",
"{\n \t\tcard1 = sc.next();\n \t\tcard2 = sc.next();\n \t\tx = card1.compareTo(card2);\n \t\tif(x == 0){\n\t\t\t\tcnt1++;\n\t\t\t\tcnt2++;\n\t\t\t}else if(x > 0){\n\t\t\t\tcnt1 += 3;\n \t\t}else{\n\t\t\t\tcnt2 += 3;\n \t\t}\n\t\t}",
"card1 = sc.next()",
"card1",
"sc.next()",
"sc.next",
"sc",
"card2 = sc.next()",
"card2",
"sc.next()",
"sc.next",
"sc",
"x = card1.compareTo(card2)",
"x",
"card1.compareTo(card2)",
"card1.compareTo",
"card1",
"card2",
"if(x == 0){\n\t\t\t\tcnt1++;\n\t\t\t\tcnt2++;\n\t\t\t}else if(x > 0){\n\t\t\t\tcnt1 += 3;\n \t\t}else{\n\t\t\t\tcnt2 += 3;\n \t\t}",
"x == 0",
"x",
"0",
"{\n\t\t\t\tcnt1++;\n\t\t\t\tcnt2++;\n\t\t\t}",
"cnt1++",
"cnt1",
"cnt2++",
"cnt2",
"if(x > 0){\n\t\t\t\tcnt1 += 3;\n \t\t}else{\n\t\t\t\tcnt2 += 3;\n \t\t}",
"x > 0",
"x",
"0",
"{\n\t\t\t\tcnt1 += 3;\n \t\t}",
"cnt1 += 3",
"cnt1",
"3",
"{\n\t\t\t\tcnt2 += 3;\n \t\t}",
"cnt2 += 3",
"cnt2",
"3",
"System.out.println(cnt1 + \" \" + cnt2)",
"System.out.println",
"System.out",
"System",
"System.out",
"cnt1 + \" \" + cnt2",
"cnt1 + \" \" + cnt2",
"cnt1",
"\" \"",
"cnt2",
"String[] args",
"args"
]
| import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String card1,card2;
int cnt1 = 0,cnt2 = 0, x;
int y = sc.nextInt();
for(int i = 0; i < y; i++){
card1 = sc.next();
card2 = sc.next();
x = card1.compareTo(card2);
if(x == 0){
cnt1++;
cnt2++;
}else if(x > 0){
cnt1 += 3;
}else{
cnt2 += 3;
}
}
System.out.println(cnt1 + " " + cnt2);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
17,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
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,
4,
18,
13,
17,
41,
13,
4,
18,
18,
13,
17,
18,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
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
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
18,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
34,
35
],
[
35,
36
],
[
28,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
52,
57
],
[
49,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
49,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
84,
85
],
[
84,
86
],
[
76,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
28,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
101,
101
],
[
101,
102
],
[
101,
103
],
[
101,
104
],
[
6,
105
],
[
105,
106
]
]
| [
"// ITP1_9_C Card Game\nimport java.io.*;\n\nclass Main {\n\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int taro = 0;\n int hanako = 0;\n try {\n int n = Integer.parseInt(br.readLine());\n for (int i = 0; i < n; i++) {\n String[] cards = br.readLine().split(\" \");\n int compare = cards[0].compareTo(cards[1]);\n if (compare > 0) {\n taro += 3;\n } else if (compare == 0) {\n taro += 1;\n hanako += 1;\n } else if (compare < 0) {\n hanako += 3;\n }\n }\n System.out.println(taro + \" \" + hanako);\n }\n catch (Exception e) {\n System.err.println(e);\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"class Main {\n\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int taro = 0;\n int hanako = 0;\n try {\n int n = Integer.parseInt(br.readLine());\n for (int i = 0; i < n; i++) {\n String[] cards = br.readLine().split(\" \");\n int compare = cards[0].compareTo(cards[1]);\n if (compare > 0) {\n taro += 3;\n } else if (compare == 0) {\n taro += 1;\n hanako += 1;\n } else if (compare < 0) {\n hanako += 3;\n }\n }\n System.out.println(taro + \" \" + hanako);\n }\n catch (Exception e) {\n System.err.println(e);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int taro = 0;\n int hanako = 0;\n try {\n int n = Integer.parseInt(br.readLine());\n for (int i = 0; i < n; i++) {\n String[] cards = br.readLine().split(\" \");\n int compare = cards[0].compareTo(cards[1]);\n if (compare > 0) {\n taro += 3;\n } else if (compare == 0) {\n taro += 1;\n hanako += 1;\n } else if (compare < 0) {\n hanako += 3;\n }\n }\n System.out.println(taro + \" \" + hanako);\n }\n catch (Exception e) {\n System.err.println(e);\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int taro = 0;\n int hanako = 0;\n try {\n int n = Integer.parseInt(br.readLine());\n for (int i = 0; i < n; i++) {\n String[] cards = br.readLine().split(\" \");\n int compare = cards[0].compareTo(cards[1]);\n if (compare > 0) {\n taro += 3;\n } else if (compare == 0) {\n taro += 1;\n hanako += 1;\n } else if (compare < 0) {\n hanako += 3;\n }\n }\n System.out.println(taro + \" \" + hanako);\n }\n catch (Exception e) {\n System.err.println(e);\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int taro = 0;",
"taro",
"0",
"int hanako = 0;",
"hanako",
"0",
"try {\n int n = Integer.parseInt(br.readLine());\n for (int i = 0; i < n; i++) {\n String[] cards = br.readLine().split(\" \");\n int compare = cards[0].compareTo(cards[1]);\n if (compare > 0) {\n taro += 3;\n } else if (compare == 0) {\n taro += 1;\n hanako += 1;\n } else if (compare < 0) {\n hanako += 3;\n }\n }\n System.out.println(taro + \" \" + hanako);\n }\n catch (Exception e) {\n System.err.println(e);\n }",
"catch (Exception e) {\n System.err.println(e);\n }",
"Exception e",
"{\n System.err.println(e);\n }",
"System.err.println(e)",
"System.err.println",
"System.err",
"System",
"System.err",
"e",
"{\n int n = Integer.parseInt(br.readLine());\n for (int i = 0; i < n; i++) {\n String[] cards = br.readLine().split(\" \");\n int compare = cards[0].compareTo(cards[1]);\n if (compare > 0) {\n taro += 3;\n } else if (compare == 0) {\n taro += 1;\n hanako += 1;\n } else if (compare < 0) {\n hanako += 3;\n }\n }\n System.out.println(taro + \" \" + hanako);\n }",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for (int i = 0; i < n; i++) {\n String[] cards = br.readLine().split(\" \");\n int compare = cards[0].compareTo(cards[1]);\n if (compare > 0) {\n taro += 3;\n } else if (compare == 0) {\n taro += 1;\n hanako += 1;\n } else if (compare < 0) {\n hanako += 3;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String[] cards = br.readLine().split(\" \");\n int compare = cards[0].compareTo(cards[1]);\n if (compare > 0) {\n taro += 3;\n } else if (compare == 0) {\n taro += 1;\n hanako += 1;\n } else if (compare < 0) {\n hanako += 3;\n }\n }",
"{\n String[] cards = br.readLine().split(\" \");\n int compare = cards[0].compareTo(cards[1]);\n if (compare > 0) {\n taro += 3;\n } else if (compare == 0) {\n taro += 1;\n hanako += 1;\n } else if (compare < 0) {\n hanako += 3;\n }\n }",
"String[] cards = br.readLine().split(\" \");",
"cards",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int compare = cards[0].compareTo(cards[1]);",
"compare",
"cards[0].compareTo(cards[1])",
"cards[0].compareTo",
"cards[0]",
"cards",
"0",
"cards[1]",
"cards",
"1",
"if (compare > 0) {\n taro += 3;\n } else if (compare == 0) {\n taro += 1;\n hanako += 1;\n } else if (compare < 0) {\n hanako += 3;\n }",
"compare > 0",
"compare",
"0",
"{\n taro += 3;\n }",
"taro += 3",
"taro",
"3",
"if (compare == 0) {\n taro += 1;\n hanako += 1;\n } else if (compare < 0) {\n hanako += 3;\n }",
"compare == 0",
"compare",
"0",
"{\n taro += 1;\n hanako += 1;\n }",
"taro += 1",
"taro",
"1",
"hanako += 1",
"hanako",
"1",
"if (compare < 0) {\n hanako += 3;\n }",
"compare < 0",
"compare",
"0",
"{\n hanako += 3;\n }",
"hanako += 3",
"hanako",
"3",
"System.out.println(taro + \" \" + hanako)",
"System.out.println",
"System.out",
"System",
"System.out",
"taro + \" \" + hanako",
"taro + \" \" + hanako",
"taro",
"\" \"",
"hanako",
"String[] args",
"args"
]
| // ITP1_9_C Card Game
import java.io.*;
class Main {
public static void main(String[] args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int taro = 0;
int hanako = 0;
try {
int n = Integer.parseInt(br.readLine());
for (int i = 0; i < n; i++) {
String[] cards = br.readLine().split(" ");
int compare = cards[0].compareTo(cards[1]);
if (compare > 0) {
taro += 3;
} else if (compare == 0) {
taro += 1;
hanako += 1;
} else if (compare < 0) {
hanako += 3;
}
}
System.out.println(taro + " " + hanako);
}
catch (Exception e) {
System.err.println(e);
}
}
} |
[
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,
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,
17,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
18,
13,
17,
41,
13,
18,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
13,
0,
13,
13,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
13,
30,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
13,
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
],
[
120,
11
],
[
120,
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
],
[
38,
40
],
[
14,
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
],
[
53,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
53,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
53,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
53,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
75,
77
],
[
53,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
79,
84
],
[
78,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
89,
90
],
[
89,
91
],
[
78,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
93,
98
],
[
92,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
92,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
14,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
113,
113
],
[
113,
114
],
[
113,
115
],
[
113,
116
],
[
12,
117
],
[
117,
118
],
[
0,
119
],
[
119,
120
],
[
119,
121
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint card = Integer.parseInt(br.readLine());\n\t\tint turn = card;\n\t\tint win = 3;\n\t\tint drow = 1;\n\t\tint taropoint = 0;\n\t\tint hanakopoint = 0;\n\n\t\tfor (int i = 0; i < turn; i++) {\n\t\t\tString str = null;\n\t\t\tstr = br.readLine();\n\t\t\tString[] s = str.split(\" \");\n\t\t\tString taro = (s[0]);\n\t\t\tString hanako = (s[1]);\n\n\t\t\tif(taro.compareTo(hanako) == 0){\n\t\t\t\ttaropoint += drow;\n\t\t\t\thanakopoint += drow;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thanakopoint += win;\n\t\t\t}else{\n\t\t\t\ttaropoint += win;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taropoint + \" \" + hanakopoint);\n\t}\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\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint card = Integer.parseInt(br.readLine());\n\t\tint turn = card;\n\t\tint win = 3;\n\t\tint drow = 1;\n\t\tint taropoint = 0;\n\t\tint hanakopoint = 0;\n\n\t\tfor (int i = 0; i < turn; i++) {\n\t\t\tString str = null;\n\t\t\tstr = br.readLine();\n\t\t\tString[] s = str.split(\" \");\n\t\t\tString taro = (s[0]);\n\t\t\tString hanako = (s[1]);\n\n\t\t\tif(taro.compareTo(hanako) == 0){\n\t\t\t\ttaropoint += drow;\n\t\t\t\thanakopoint += drow;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thanakopoint += win;\n\t\t\t}else{\n\t\t\t\ttaropoint += win;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taropoint + \" \" + hanakopoint);\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint card = Integer.parseInt(br.readLine());\n\t\tint turn = card;\n\t\tint win = 3;\n\t\tint drow = 1;\n\t\tint taropoint = 0;\n\t\tint hanakopoint = 0;\n\n\t\tfor (int i = 0; i < turn; i++) {\n\t\t\tString str = null;\n\t\t\tstr = br.readLine();\n\t\t\tString[] s = str.split(\" \");\n\t\t\tString taro = (s[0]);\n\t\t\tString hanako = (s[1]);\n\n\t\t\tif(taro.compareTo(hanako) == 0){\n\t\t\t\ttaropoint += drow;\n\t\t\t\thanakopoint += drow;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thanakopoint += win;\n\t\t\t}else{\n\t\t\t\ttaropoint += win;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taropoint + \" \" + hanakopoint);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint card = Integer.parseInt(br.readLine());\n\t\tint turn = card;\n\t\tint win = 3;\n\t\tint drow = 1;\n\t\tint taropoint = 0;\n\t\tint hanakopoint = 0;\n\n\t\tfor (int i = 0; i < turn; i++) {\n\t\t\tString str = null;\n\t\t\tstr = br.readLine();\n\t\t\tString[] s = str.split(\" \");\n\t\t\tString taro = (s[0]);\n\t\t\tString hanako = (s[1]);\n\n\t\t\tif(taro.compareTo(hanako) == 0){\n\t\t\t\ttaropoint += drow;\n\t\t\t\thanakopoint += drow;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thanakopoint += win;\n\t\t\t}else{\n\t\t\t\ttaropoint += win;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taropoint + \" \" + hanakopoint);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int card = Integer.parseInt(br.readLine());",
"card",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int turn = card;",
"turn",
"card",
"int win = 3;",
"win",
"3",
"int drow = 1;",
"drow",
"1",
"int taropoint = 0;",
"taropoint",
"0",
"int hanakopoint = 0;",
"hanakopoint",
"0",
"for (int i = 0; i < turn; i++) {\n\t\t\tString str = null;\n\t\t\tstr = br.readLine();\n\t\t\tString[] s = str.split(\" \");\n\t\t\tString taro = (s[0]);\n\t\t\tString hanako = (s[1]);\n\n\t\t\tif(taro.compareTo(hanako) == 0){\n\t\t\t\ttaropoint += drow;\n\t\t\t\thanakopoint += drow;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thanakopoint += win;\n\t\t\t}else{\n\t\t\t\ttaropoint += win;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < turn",
"i",
"turn",
"i++",
"i++",
"i",
"{\n\t\t\tString str = null;\n\t\t\tstr = br.readLine();\n\t\t\tString[] s = str.split(\" \");\n\t\t\tString taro = (s[0]);\n\t\t\tString hanako = (s[1]);\n\n\t\t\tif(taro.compareTo(hanako) == 0){\n\t\t\t\ttaropoint += drow;\n\t\t\t\thanakopoint += drow;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thanakopoint += win;\n\t\t\t}else{\n\t\t\t\ttaropoint += win;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString str = null;\n\t\t\tstr = br.readLine();\n\t\t\tString[] s = str.split(\" \");\n\t\t\tString taro = (s[0]);\n\t\t\tString hanako = (s[1]);\n\n\t\t\tif(taro.compareTo(hanako) == 0){\n\t\t\t\ttaropoint += drow;\n\t\t\t\thanakopoint += drow;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thanakopoint += win;\n\t\t\t}else{\n\t\t\t\ttaropoint += win;\n\t\t\t}\n\t\t}",
"String str = null;",
"str",
"null",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"String[] s = str.split(\" \");",
"s",
"str.split(\" \")",
"str.split",
"str",
"\" \"",
"String taro = (s[0]);",
"taro",
"(s[0])",
"s",
"0",
"String hanako = (s[1]);",
"hanako",
"(s[1])",
"s",
"1",
"if(taro.compareTo(hanako) == 0){\n\t\t\t\ttaropoint += drow;\n\t\t\t\thanakopoint += drow;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thanakopoint += win;\n\t\t\t}else{\n\t\t\t\ttaropoint += win;\n\t\t\t}",
"taro.compareTo(hanako) == 0",
"taro.compareTo(hanako)",
"taro.compareTo",
"taro",
"hanako",
"0",
"{\n\t\t\t\ttaropoint += drow;\n\t\t\t\thanakopoint += drow;\n\t\t\t}",
"taropoint += drow",
"taropoint",
"drow",
"hanakopoint += drow",
"hanakopoint",
"drow",
"if(taro.compareTo(hanako) < 0){\n\t\t\t\thanakopoint += win;\n\t\t\t}else{\n\t\t\t\ttaropoint += win;\n\t\t\t}",
"taro.compareTo(hanako) < 0",
"taro.compareTo(hanako)",
"taro.compareTo",
"taro",
"hanako",
"0",
"{\n\t\t\t\thanakopoint += win;\n\t\t\t}",
"hanakopoint += win",
"hanakopoint",
"win",
"{\n\t\t\t\ttaropoint += win;\n\t\t\t}",
"taropoint += win",
"taropoint",
"win",
"System.out.println(taropoint + \" \" + hanakopoint)",
"System.out.println",
"System.out",
"System",
"System.out",
"taropoint + \" \" + hanakopoint",
"taropoint + \" \" + hanakopoint",
"taropoint",
"\" \"",
"hanakopoint",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint card = Integer.parseInt(br.readLine());\n\t\tint turn = card;\n\t\tint win = 3;\n\t\tint drow = 1;\n\t\tint taropoint = 0;\n\t\tint hanakopoint = 0;\n\n\t\tfor (int i = 0; i < turn; i++) {\n\t\t\tString str = null;\n\t\t\tstr = br.readLine();\n\t\t\tString[] s = str.split(\" \");\n\t\t\tString taro = (s[0]);\n\t\t\tString hanako = (s[1]);\n\n\t\t\tif(taro.compareTo(hanako) == 0){\n\t\t\t\ttaropoint += drow;\n\t\t\t\thanakopoint += drow;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thanakopoint += win;\n\t\t\t}else{\n\t\t\t\ttaropoint += win;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taropoint + \" \" + hanakopoint);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint card = Integer.parseInt(br.readLine());\n\t\tint turn = card;\n\t\tint win = 3;\n\t\tint drow = 1;\n\t\tint taropoint = 0;\n\t\tint hanakopoint = 0;\n\n\t\tfor (int i = 0; i < turn; i++) {\n\t\t\tString str = null;\n\t\t\tstr = br.readLine();\n\t\t\tString[] s = str.split(\" \");\n\t\t\tString taro = (s[0]);\n\t\t\tString hanako = (s[1]);\n\n\t\t\tif(taro.compareTo(hanako) == 0){\n\t\t\t\ttaropoint += drow;\n\t\t\t\thanakopoint += drow;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thanakopoint += win;\n\t\t\t}else{\n\t\t\t\ttaropoint += win;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taropoint + \" \" + hanakopoint);\n\t}\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 card = Integer.parseInt(br.readLine());
int turn = card;
int win = 3;
int drow = 1;
int taropoint = 0;
int hanakopoint = 0;
for (int i = 0; i < turn; i++) {
String str = null;
str = br.readLine();
String[] s = str.split(" ");
String taro = (s[0]);
String hanako = (s[1]);
if(taro.compareTo(hanako) == 0){
taropoint += drow;
hanakopoint += drow;
}else if(taro.compareTo(hanako) < 0){
hanakopoint += win;
}else{
taropoint += win;
}
}
System.out.println(taropoint + " " + hanakopoint);
}
} |
[
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
40,
13,
40,
13,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
96,
5
],
[
96,
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
],
[
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
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
50,
55
],
[
49,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
49,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
61,
66
],
[
60,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
70,
71
],
[
60,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
73,
78
],
[
72,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
8,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
89,
89
],
[
89,
90
],
[
89,
91
],
[
89,
92
],
[
6,
93
],
[
93,
94
],
[
0,
95
],
[
95,
96
],
[
95,
97
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\tint n = Integer.parseInt(std.nextLine());\n\t\tint taro = 0;\n\t\tint hana = 0;\n\n\t\tfor(int i=0; i<n; i++){\n\t\t\tString taroline = std.next();\n\t\t\tString hanaline = std.next();\n\t\t\tif(taroline.compareTo(hanaline)<0){hana+=3;}\n\t\t\telse if(taroline.compareTo(hanaline)==0){hana++; taro++;}\n\t\t\telse if(taroline.compareTo(hanaline)>0){taro+=3;}\n\t\t}\n\t\tSystem.out.println(taro+\" \"+hana);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\tint n = Integer.parseInt(std.nextLine());\n\t\tint taro = 0;\n\t\tint hana = 0;\n\n\t\tfor(int i=0; i<n; i++){\n\t\t\tString taroline = std.next();\n\t\t\tString hanaline = std.next();\n\t\t\tif(taroline.compareTo(hanaline)<0){hana+=3;}\n\t\t\telse if(taroline.compareTo(hanaline)==0){hana++; taro++;}\n\t\t\telse if(taroline.compareTo(hanaline)>0){taro+=3;}\n\t\t}\n\t\tSystem.out.println(taro+\" \"+hana);\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\tint n = Integer.parseInt(std.nextLine());\n\t\tint taro = 0;\n\t\tint hana = 0;\n\n\t\tfor(int i=0; i<n; i++){\n\t\t\tString taroline = std.next();\n\t\t\tString hanaline = std.next();\n\t\t\tif(taroline.compareTo(hanaline)<0){hana+=3;}\n\t\t\telse if(taroline.compareTo(hanaline)==0){hana++; taro++;}\n\t\t\telse if(taroline.compareTo(hanaline)>0){taro+=3;}\n\t\t}\n\t\tSystem.out.println(taro+\" \"+hana);\n\t}",
"main",
"{\n\t\tScanner std = new Scanner(System.in);\n\t\tint n = Integer.parseInt(std.nextLine());\n\t\tint taro = 0;\n\t\tint hana = 0;\n\n\t\tfor(int i=0; i<n; i++){\n\t\t\tString taroline = std.next();\n\t\t\tString hanaline = std.next();\n\t\t\tif(taroline.compareTo(hanaline)<0){hana+=3;}\n\t\t\telse if(taroline.compareTo(hanaline)==0){hana++; taro++;}\n\t\t\telse if(taroline.compareTo(hanaline)>0){taro+=3;}\n\t\t}\n\t\tSystem.out.println(taro+\" \"+hana);\n\t}",
"Scanner std = new Scanner(System.in);",
"std",
"new Scanner(System.in)",
"int n = Integer.parseInt(std.nextLine());",
"n",
"Integer.parseInt(std.nextLine())",
"Integer.parseInt",
"Integer",
"std.nextLine()",
"std.nextLine",
"std",
"int taro = 0;",
"taro",
"0",
"int hana = 0;",
"hana",
"0",
"for(int i=0; i<n; i++){\n\t\t\tString taroline = std.next();\n\t\t\tString hanaline = std.next();\n\t\t\tif(taroline.compareTo(hanaline)<0){hana+=3;}\n\t\t\telse if(taroline.compareTo(hanaline)==0){hana++; taro++;}\n\t\t\telse if(taroline.compareTo(hanaline)>0){taro+=3;}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString taroline = std.next();\n\t\t\tString hanaline = std.next();\n\t\t\tif(taroline.compareTo(hanaline)<0){hana+=3;}\n\t\t\telse if(taroline.compareTo(hanaline)==0){hana++; taro++;}\n\t\t\telse if(taroline.compareTo(hanaline)>0){taro+=3;}\n\t\t}",
"{\n\t\t\tString taroline = std.next();\n\t\t\tString hanaline = std.next();\n\t\t\tif(taroline.compareTo(hanaline)<0){hana+=3;}\n\t\t\telse if(taroline.compareTo(hanaline)==0){hana++; taro++;}\n\t\t\telse if(taroline.compareTo(hanaline)>0){taro+=3;}\n\t\t}",
"String taroline = std.next();",
"taroline",
"std.next()",
"std.next",
"std",
"String hanaline = std.next();",
"hanaline",
"std.next()",
"std.next",
"std",
"if(taroline.compareTo(hanaline)<0){hana+=3;}\n\t\t\telse if(taroline.compareTo(hanaline)==0){hana++; taro++;}\n\t\t\telse if(taroline.compareTo(hanaline)>0){taro+=3;}",
"taroline.compareTo(hanaline)<0",
"taroline.compareTo(hanaline)",
"taroline.compareTo",
"taroline",
"hanaline",
"0",
"{hana+=3;}",
"hana+=3",
"hana",
"3",
"if(taroline.compareTo(hanaline)==0){hana++; taro++;}\n\t\t\telse if(taroline.compareTo(hanaline)>0){taro+=3;}",
"taroline.compareTo(hanaline)==0",
"taroline.compareTo(hanaline)",
"taroline.compareTo",
"taroline",
"hanaline",
"0",
"{hana++; taro++;}",
"hana++",
"hana",
"taro++",
"taro",
"if(taroline.compareTo(hanaline)>0){taro+=3;}",
"taroline.compareTo(hanaline)>0",
"taroline.compareTo(hanaline)",
"taroline.compareTo",
"taroline",
"hanaline",
"0",
"{taro+=3;}",
"taro+=3",
"taro",
"3",
"System.out.println(taro+\" \"+hana)",
"System.out.println",
"System.out",
"System",
"System.out",
"taro+\" \"+hana",
"taro+\" \"+hana",
"taro",
"\" \"",
"hana",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\tint n = Integer.parseInt(std.nextLine());\n\t\tint taro = 0;\n\t\tint hana = 0;\n\n\t\tfor(int i=0; i<n; i++){\n\t\t\tString taroline = std.next();\n\t\t\tString hanaline = std.next();\n\t\t\tif(taroline.compareTo(hanaline)<0){hana+=3;}\n\t\t\telse if(taroline.compareTo(hanaline)==0){hana++; taro++;}\n\t\t\telse if(taroline.compareTo(hanaline)>0){taro+=3;}\n\t\t}\n\t\tSystem.out.println(taro+\" \"+hana);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\tint n = Integer.parseInt(std.nextLine());\n\t\tint taro = 0;\n\t\tint hana = 0;\n\n\t\tfor(int i=0; i<n; i++){\n\t\t\tString taroline = std.next();\n\t\t\tString hanaline = std.next();\n\t\t\tif(taroline.compareTo(hanaline)<0){hana+=3;}\n\t\t\telse if(taroline.compareTo(hanaline)==0){hana++; taro++;}\n\t\t\telse if(taroline.compareTo(hanaline)>0){taro+=3;}\n\t\t}\n\t\tSystem.out.println(taro+\" \"+hana);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner std = new Scanner(System.in);
int n = Integer.parseInt(std.nextLine());
int taro = 0;
int hana = 0;
for(int i=0; i<n; i++){
String taroline = std.next();
String hanaline = std.next();
if(taroline.compareTo(hanaline)<0){hana+=3;}
else if(taroline.compareTo(hanaline)==0){hana++; taro++;}
else if(taroline.compareTo(hanaline)>0){taro+=3;}
}
System.out.println(taro+" "+hana);
}
} |
[
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,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
2,
13,
17,
14,
2,
4,
18,
13,
13,
17,
0,
13,
2,
13,
17,
30,
0,
13,
2,
13,
17,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
99,
5
],
[
99,
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
],
[
8,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
39,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
51,
56
],
[
50,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
60,
62
],
[
50,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
64,
69
],
[
63,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
63,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
75,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
8,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
92,
92
],
[
92,
93
],
[
92,
94
],
[
92,
95
],
[
6,
96
],
[
96,
97
],
[
0,
98
],
[
98,
99
],
[
98,
100
]
]
| [
"\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\t \n\t\t int n = scanner.nextInt();\n\t\t int tarop = 0;\n\t\t int hanakop = 0;\n\t\t String tarow;\n\t\t String hanakow;\n\t\t \n\t\t for(int i = 0; i < n; i++){\n\t\t tarow=scanner.next();\n\t\t hanakow=scanner.next();\n\t\t if(tarow.compareTo(hanakow) < 0) { hanakop =hanakop+ 3;}\n\t\t else if(tarow.compareTo(hanakow) > 0) tarop = tarop+3;\n\t\t else {\n\t\t hanakop=hanakop+1;\n\t\t tarop=tarop+1;\n\t\t }\n\t\t }\n\t\t \n\t\t System.out.println(tarop + \" \" + hanakop);\n\t\t }\n\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\t \n\t\t int n = scanner.nextInt();\n\t\t int tarop = 0;\n\t\t int hanakop = 0;\n\t\t String tarow;\n\t\t String hanakow;\n\t\t \n\t\t for(int i = 0; i < n; i++){\n\t\t tarow=scanner.next();\n\t\t hanakow=scanner.next();\n\t\t if(tarow.compareTo(hanakow) < 0) { hanakop =hanakop+ 3;}\n\t\t else if(tarow.compareTo(hanakow) > 0) tarop = tarop+3;\n\t\t else {\n\t\t hanakop=hanakop+1;\n\t\t tarop=tarop+1;\n\t\t }\n\t\t }\n\t\t \n\t\t System.out.println(tarop + \" \" + hanakop);\n\t\t }\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\t \n\t\t int n = scanner.nextInt();\n\t\t int tarop = 0;\n\t\t int hanakop = 0;\n\t\t String tarow;\n\t\t String hanakow;\n\t\t \n\t\t for(int i = 0; i < n; i++){\n\t\t tarow=scanner.next();\n\t\t hanakow=scanner.next();\n\t\t if(tarow.compareTo(hanakow) < 0) { hanakop =hanakop+ 3;}\n\t\t else if(tarow.compareTo(hanakow) > 0) tarop = tarop+3;\n\t\t else {\n\t\t hanakop=hanakop+1;\n\t\t tarop=tarop+1;\n\t\t }\n\t\t }\n\t\t \n\t\t System.out.println(tarop + \" \" + hanakop);\n\t\t }",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\t \n\t\t int n = scanner.nextInt();\n\t\t int tarop = 0;\n\t\t int hanakop = 0;\n\t\t String tarow;\n\t\t String hanakow;\n\t\t \n\t\t for(int i = 0; i < n; i++){\n\t\t tarow=scanner.next();\n\t\t hanakow=scanner.next();\n\t\t if(tarow.compareTo(hanakow) < 0) { hanakop =hanakop+ 3;}\n\t\t else if(tarow.compareTo(hanakow) > 0) tarop = tarop+3;\n\t\t else {\n\t\t hanakop=hanakop+1;\n\t\t tarop=tarop+1;\n\t\t }\n\t\t }\n\t\t \n\t\t System.out.println(tarop + \" \" + hanakop);\n\t\t }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int tarop = 0;",
"tarop",
"0",
"int hanakop = 0;",
"hanakop",
"0",
"String tarow;",
"tarow",
"String hanakow;",
"hanakow",
"for(int i = 0; i < n; i++){\n\t\t tarow=scanner.next();\n\t\t hanakow=scanner.next();\n\t\t if(tarow.compareTo(hanakow) < 0) { hanakop =hanakop+ 3;}\n\t\t else if(tarow.compareTo(hanakow) > 0) tarop = tarop+3;\n\t\t else {\n\t\t hanakop=hanakop+1;\n\t\t tarop=tarop+1;\n\t\t }\n\t\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t tarow=scanner.next();\n\t\t hanakow=scanner.next();\n\t\t if(tarow.compareTo(hanakow) < 0) { hanakop =hanakop+ 3;}\n\t\t else if(tarow.compareTo(hanakow) > 0) tarop = tarop+3;\n\t\t else {\n\t\t hanakop=hanakop+1;\n\t\t tarop=tarop+1;\n\t\t }\n\t\t }",
"{\n\t\t tarow=scanner.next();\n\t\t hanakow=scanner.next();\n\t\t if(tarow.compareTo(hanakow) < 0) { hanakop =hanakop+ 3;}\n\t\t else if(tarow.compareTo(hanakow) > 0) tarop = tarop+3;\n\t\t else {\n\t\t hanakop=hanakop+1;\n\t\t tarop=tarop+1;\n\t\t }\n\t\t }",
"tarow=scanner.next()",
"tarow",
"scanner.next()",
"scanner.next",
"scanner",
"hanakow=scanner.next()",
"hanakow",
"scanner.next()",
"scanner.next",
"scanner",
"if(tarow.compareTo(hanakow) < 0) { hanakop =hanakop+ 3;}\n\t\t else if(tarow.compareTo(hanakow) > 0) tarop = tarop+3;\n\t\t else {\n\t\t hanakop=hanakop+1;\n\t\t tarop=tarop+1;\n\t\t }",
"tarow.compareTo(hanakow) < 0",
"tarow.compareTo(hanakow)",
"tarow.compareTo",
"tarow",
"hanakow",
"0",
"{ hanakop =hanakop+ 3;}",
"hanakop =hanakop+ 3",
"hanakop",
"hanakop+ 3",
"hanakop",
"3",
"if(tarow.compareTo(hanakow) > 0) tarop = tarop+3;\n\t\t else {\n\t\t hanakop=hanakop+1;\n\t\t tarop=tarop+1;\n\t\t }",
"tarow.compareTo(hanakow) > 0",
"tarow.compareTo(hanakow)",
"tarow.compareTo",
"tarow",
"hanakow",
"0",
"tarop = tarop+3",
"tarop",
"tarop+3",
"tarop",
"3",
"{\n\t\t hanakop=hanakop+1;\n\t\t tarop=tarop+1;\n\t\t }",
"hanakop=hanakop+1",
"hanakop",
"hanakop+1",
"hanakop",
"1",
"tarop=tarop+1",
"tarop",
"tarop+1",
"tarop",
"1",
"System.out.println(tarop + \" \" + hanakop)",
"System.out.println",
"System.out",
"System",
"System.out",
"tarop + \" \" + hanakop",
"tarop + \" \" + hanakop",
"tarop",
"\" \"",
"hanakop",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\t \n\t\t int n = scanner.nextInt();\n\t\t int tarop = 0;\n\t\t int hanakop = 0;\n\t\t String tarow;\n\t\t String hanakow;\n\t\t \n\t\t for(int i = 0; i < n; i++){\n\t\t tarow=scanner.next();\n\t\t hanakow=scanner.next();\n\t\t if(tarow.compareTo(hanakow) < 0) { hanakop =hanakop+ 3;}\n\t\t else if(tarow.compareTo(hanakow) > 0) tarop = tarop+3;\n\t\t else {\n\t\t hanakop=hanakop+1;\n\t\t tarop=tarop+1;\n\t\t }\n\t\t }\n\t\t \n\t\t System.out.println(tarop + \" \" + hanakop);\n\t\t }\n\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\t \n\t\t int n = scanner.nextInt();\n\t\t int tarop = 0;\n\t\t int hanakop = 0;\n\t\t String tarow;\n\t\t String hanakow;\n\t\t \n\t\t for(int i = 0; i < n; i++){\n\t\t tarow=scanner.next();\n\t\t hanakow=scanner.next();\n\t\t if(tarow.compareTo(hanakow) < 0) { hanakop =hanakop+ 3;}\n\t\t else if(tarow.compareTo(hanakow) > 0) tarop = tarop+3;\n\t\t else {\n\t\t hanakop=hanakop+1;\n\t\t tarop=tarop+1;\n\t\t }\n\t\t }\n\t\t \n\t\t System.out.println(tarop + \" \" + hanakop);\n\t\t }\n\n}",
"Main"
]
|
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int tarop = 0;
int hanakop = 0;
String tarow;
String hanakow;
for(int i = 0; i < n; i++){
tarow=scanner.next();
hanakow=scanner.next();
if(tarow.compareTo(hanakow) < 0) { hanakop =hanakop+ 3;}
else if(tarow.compareTo(hanakow) > 0) tarop = tarop+3;
else {
hanakop=hanakop+1;
tarop=tarop+1;
}
}
System.out.println(tarop + " " + hanakop);
}
}
|
[
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
0,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
17,
13,
13,
4,
18,
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
],
[
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
],
[
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
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
38,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
71,
73
],
[
63,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
11,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
78,
84
],
[
78,
85
],
[
11,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
9,
91
],
[
91,
92
]
]
| [
"import java.util.*;\nimport java.lang.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint turns = sc.nextInt();\n\t\tint score1 = 0;\n\t\tint score2 = 0;\n\t\t\n\t\tfor(int i=0; i<turns; i++){\n\t\t\tString word1 = sc.next();\n\t\t\tString word2 = sc.next();\n\t\t\tint cp = word1.compareTo(word2);\n\t\t\t\n\t\t\tif (cp < 0) {\n\t\t\t\tscore2+=3;\n\t\t\t} else if (cp == 0) {\n\t\t\t\tscore1+=1;\n\t\t\t\tscore2+=1;\n\t\t\t} else {\n\t\t\t\tscore1+=3;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.printf(\"%d %d\", score1, score2);\n\t\tSystem.out.println();\n\t\t\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint turns = sc.nextInt();\n\t\tint score1 = 0;\n\t\tint score2 = 0;\n\t\t\n\t\tfor(int i=0; i<turns; i++){\n\t\t\tString word1 = sc.next();\n\t\t\tString word2 = sc.next();\n\t\t\tint cp = word1.compareTo(word2);\n\t\t\t\n\t\t\tif (cp < 0) {\n\t\t\t\tscore2+=3;\n\t\t\t} else if (cp == 0) {\n\t\t\t\tscore1+=1;\n\t\t\t\tscore2+=1;\n\t\t\t} else {\n\t\t\t\tscore1+=3;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.printf(\"%d %d\", score1, score2);\n\t\tSystem.out.println();\n\t\t\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint turns = sc.nextInt();\n\t\tint score1 = 0;\n\t\tint score2 = 0;\n\t\t\n\t\tfor(int i=0; i<turns; i++){\n\t\t\tString word1 = sc.next();\n\t\t\tString word2 = sc.next();\n\t\t\tint cp = word1.compareTo(word2);\n\t\t\t\n\t\t\tif (cp < 0) {\n\t\t\t\tscore2+=3;\n\t\t\t} else if (cp == 0) {\n\t\t\t\tscore1+=1;\n\t\t\t\tscore2+=1;\n\t\t\t} else {\n\t\t\t\tscore1+=3;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.printf(\"%d %d\", score1, score2);\n\t\tSystem.out.println();\n\t\t\n\t}",
"main",
"{\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint turns = sc.nextInt();\n\t\tint score1 = 0;\n\t\tint score2 = 0;\n\t\t\n\t\tfor(int i=0; i<turns; i++){\n\t\t\tString word1 = sc.next();\n\t\t\tString word2 = sc.next();\n\t\t\tint cp = word1.compareTo(word2);\n\t\t\t\n\t\t\tif (cp < 0) {\n\t\t\t\tscore2+=3;\n\t\t\t} else if (cp == 0) {\n\t\t\t\tscore1+=1;\n\t\t\t\tscore2+=1;\n\t\t\t} else {\n\t\t\t\tscore1+=3;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.printf(\"%d %d\", score1, score2);\n\t\tSystem.out.println();\n\t\t\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int turns = sc.nextInt();",
"turns",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int score1 = 0;",
"score1",
"0",
"int score2 = 0;",
"score2",
"0",
"for(int i=0; i<turns; i++){\n\t\t\tString word1 = sc.next();\n\t\t\tString word2 = sc.next();\n\t\t\tint cp = word1.compareTo(word2);\n\t\t\t\n\t\t\tif (cp < 0) {\n\t\t\t\tscore2+=3;\n\t\t\t} else if (cp == 0) {\n\t\t\t\tscore1+=1;\n\t\t\t\tscore2+=1;\n\t\t\t} else {\n\t\t\t\tscore1+=3;\n\t\t\t}\n\t\t\t\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<turns",
"i",
"turns",
"i++",
"i++",
"i",
"{\n\t\t\tString word1 = sc.next();\n\t\t\tString word2 = sc.next();\n\t\t\tint cp = word1.compareTo(word2);\n\t\t\t\n\t\t\tif (cp < 0) {\n\t\t\t\tscore2+=3;\n\t\t\t} else if (cp == 0) {\n\t\t\t\tscore1+=1;\n\t\t\t\tscore2+=1;\n\t\t\t} else {\n\t\t\t\tscore1+=3;\n\t\t\t}\n\t\t\t\n\t\t}",
"{\n\t\t\tString word1 = sc.next();\n\t\t\tString word2 = sc.next();\n\t\t\tint cp = word1.compareTo(word2);\n\t\t\t\n\t\t\tif (cp < 0) {\n\t\t\t\tscore2+=3;\n\t\t\t} else if (cp == 0) {\n\t\t\t\tscore1+=1;\n\t\t\t\tscore2+=1;\n\t\t\t} else {\n\t\t\t\tscore1+=3;\n\t\t\t}\n\t\t\t\n\t\t}",
"String word1 = sc.next();",
"word1",
"sc.next()",
"sc.next",
"sc",
"String word2 = sc.next();",
"word2",
"sc.next()",
"sc.next",
"sc",
"int cp = word1.compareTo(word2);",
"cp",
"word1.compareTo(word2)",
"word1.compareTo",
"word1",
"word2",
"if (cp < 0) {\n\t\t\t\tscore2+=3;\n\t\t\t} else if (cp == 0) {\n\t\t\t\tscore1+=1;\n\t\t\t\tscore2+=1;\n\t\t\t} else {\n\t\t\t\tscore1+=3;\n\t\t\t}",
"cp < 0",
"cp",
"0",
"{\n\t\t\t\tscore2+=3;\n\t\t\t}",
"score2+=3",
"score2",
"3",
"if (cp == 0) {\n\t\t\t\tscore1+=1;\n\t\t\t\tscore2+=1;\n\t\t\t} else {\n\t\t\t\tscore1+=3;\n\t\t\t}",
"cp == 0",
"cp",
"0",
"{\n\t\t\t\tscore1+=1;\n\t\t\t\tscore2+=1;\n\t\t\t}",
"score1+=1",
"score1",
"1",
"score2+=1",
"score2",
"1",
"{\n\t\t\t\tscore1+=3;\n\t\t\t}",
"score1+=3",
"score1",
"3",
"System.out.printf(\"%d %d\", score1, score2)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d %d\"",
"score1",
"score2",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args"
]
| import java.util.*;
import java.lang.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int turns = sc.nextInt();
int score1 = 0;
int score2 = 0;
for(int i=0; i<turns; i++){
String word1 = sc.next();
String word2 = sc.next();
int cp = word1.compareTo(word2);
if (cp < 0) {
score2+=3;
} else if (cp == 0) {
score1+=1;
score2+=1;
} else {
score1+=3;
}
}
System.out.printf("%d %d", score1, score2);
System.out.println();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
2,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
2,
13,
17,
30,
40,
13,
40,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
90,
5
],
[
90,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
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
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
46,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
46,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
60,
65
],
[
59,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
69,
71
],
[
59,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
8,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
83,
83
],
[
83,
84
],
[
83,
85
],
[
83,
86
],
[
6,
87
],
[
87,
88
],
[
0,
89
],
[
89,
90
],
[
89,
91
]
]
| [
"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 ts=0;\n int hs=0;\n for(int i=0;i<n;i++){\n \t String t = sc.next();\n String h = sc.next();\n if(t.compareTo(h)>0){\n ts=ts+3;\n }\n else if(h.compareTo(t)>0){\n hs=hs+3;\n }else{\n hs++;\n ts++;\n }\n }\n System.out.println(ts+\" \"+hs);\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 ts=0;\n int hs=0;\n for(int i=0;i<n;i++){\n \t String t = sc.next();\n String h = sc.next();\n if(t.compareTo(h)>0){\n ts=ts+3;\n }\n else if(h.compareTo(t)>0){\n hs=hs+3;\n }else{\n hs++;\n ts++;\n }\n }\n System.out.println(ts+\" \"+hs);\n } \n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt();\n int ts=0;\n int hs=0;\n for(int i=0;i<n;i++){\n \t String t = sc.next();\n String h = sc.next();\n if(t.compareTo(h)>0){\n ts=ts+3;\n }\n else if(h.compareTo(t)>0){\n hs=hs+3;\n }else{\n hs++;\n ts++;\n }\n }\n System.out.println(ts+\" \"+hs);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt();\n int ts=0;\n int hs=0;\n for(int i=0;i<n;i++){\n \t String t = sc.next();\n String h = sc.next();\n if(t.compareTo(h)>0){\n ts=ts+3;\n }\n else if(h.compareTo(t)>0){\n hs=hs+3;\n }else{\n hs++;\n ts++;\n }\n }\n System.out.println(ts+\" \"+hs);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ts=0;",
"ts",
"0",
"int hs=0;",
"hs",
"0",
"for(int i=0;i<n;i++){\n \t String t = sc.next();\n String h = sc.next();\n if(t.compareTo(h)>0){\n ts=ts+3;\n }\n else if(h.compareTo(t)>0){\n hs=hs+3;\n }else{\n hs++;\n ts++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \t String t = sc.next();\n String h = sc.next();\n if(t.compareTo(h)>0){\n ts=ts+3;\n }\n else if(h.compareTo(t)>0){\n hs=hs+3;\n }else{\n hs++;\n ts++;\n }\n }",
"{\n \t String t = sc.next();\n String h = sc.next();\n if(t.compareTo(h)>0){\n ts=ts+3;\n }\n else if(h.compareTo(t)>0){\n hs=hs+3;\n }else{\n hs++;\n ts++;\n }\n }",
"String t = sc.next();",
"t",
"sc.next()",
"sc.next",
"sc",
"String h = sc.next();",
"h",
"sc.next()",
"sc.next",
"sc",
"if(t.compareTo(h)>0){\n ts=ts+3;\n }\n else if(h.compareTo(t)>0){\n hs=hs+3;\n }else{\n hs++;\n ts++;\n }",
"t.compareTo(h)>0",
"t.compareTo(h)",
"t.compareTo",
"t",
"h",
"0",
"{\n ts=ts+3;\n }",
"ts=ts+3",
"ts",
"ts+3",
"ts",
"3",
"if(h.compareTo(t)>0){\n hs=hs+3;\n }else{\n hs++;\n ts++;\n }",
"h.compareTo(t)>0",
"h.compareTo(t)",
"h.compareTo",
"h",
"t",
"0",
"{\n hs=hs+3;\n }",
"hs=hs+3",
"hs",
"hs+3",
"hs",
"3",
"{\n hs++;\n ts++;\n }",
"hs++",
"hs",
"ts++",
"ts",
"System.out.println(ts+\" \"+hs)",
"System.out.println",
"System.out",
"System",
"System.out",
"ts+\" \"+hs",
"ts+\" \"+hs",
"ts",
"\" \"",
"hs",
"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 ts=0;\n int hs=0;\n for(int i=0;i<n;i++){\n \t String t = sc.next();\n String h = sc.next();\n if(t.compareTo(h)>0){\n ts=ts+3;\n }\n else if(h.compareTo(t)>0){\n hs=hs+3;\n }else{\n hs++;\n ts++;\n }\n }\n System.out.println(ts+\" \"+hs);\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 ts=0;\n int hs=0;\n for(int i=0;i<n;i++){\n \t String t = sc.next();\n String h = sc.next();\n if(t.compareTo(h)>0){\n ts=ts+3;\n }\n else if(h.compareTo(t)>0){\n hs=hs+3;\n }else{\n hs++;\n ts++;\n }\n }\n System.out.println(ts+\" \"+hs);\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 ts=0;
int hs=0;
for(int i=0;i<n;i++){
String t = sc.next();
String h = sc.next();
if(t.compareTo(h)>0){
ts=ts+3;
}
else if(h.compareTo(t)>0){
hs=hs+3;
}else{
hs++;
ts++;
}
}
System.out.println(ts+" "+hs);
}
}
|
[
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
20,
17,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
18,
13,
17,
13,
0,
18,
13,
17,
13,
4,
18,
13,
13,
14,
4,
18,
18,
13,
17,
18,
13,
17,
30,
0,
13,
17,
0,
13,
17,
14,
4,
18,
18,
13,
17,
13,
30,
0,
13,
17,
14,
4,
18,
18,
13,
17,
13,
30,
0,
13,
17,
4,
18,
18,
13,
13,
17,
13,
13,
4,
18,
18,
13,
13,
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,
23
],
[
23,
24
],
[
23,
25
],
[
11,
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
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
38,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
38,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
38,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
38,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
38,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
67,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
80,
82
],
[
67,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
83,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
83,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
94,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
11,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
105,
111
],
[
105,
112
],
[
11,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
9,
118
],
[
118,
119
],
[
0,
120
],
[
120,
121
],
[
120,
122
]
]
| [
"import java.util.Arrays;\nimport java.util.Scanner;\n\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint tp=0;\n\t\tint hp=0;\n\n\t\tfor(int i=0; i<n;i++) {\n\t\t\tString[] array = new String[2];\n\t\t\tString taro=sc.next();\n\t\t\tString hanako=sc.next();\n\t\t\tarray[0]=taro;\n\t\t\tarray[1]=hanako;\n\n\t\t\tArrays.sort(array);\n\t\t\tif(array[0].equals(array[1])) {\n\t\t\t\ttp+=1;\n\t\t\t\thp+=1;\n\t\t\t}else if(array[1].equals(taro)) {\n\t\t\t\ttp+=3;\n\t\t\t}else if(array[1].equals(hanako)) {\n\t\t\t\thp+=3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\", tp,hp);\n\t\tSystem.out.println();\n\t}\n}",
"import java.util.Arrays;",
"Arrays",
"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\tint tp=0;\n\t\tint hp=0;\n\n\t\tfor(int i=0; i<n;i++) {\n\t\t\tString[] array = new String[2];\n\t\t\tString taro=sc.next();\n\t\t\tString hanako=sc.next();\n\t\t\tarray[0]=taro;\n\t\t\tarray[1]=hanako;\n\n\t\t\tArrays.sort(array);\n\t\t\tif(array[0].equals(array[1])) {\n\t\t\t\ttp+=1;\n\t\t\t\thp+=1;\n\t\t\t}else if(array[1].equals(taro)) {\n\t\t\t\ttp+=3;\n\t\t\t}else if(array[1].equals(hanako)) {\n\t\t\t\thp+=3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\", tp,hp);\n\t\tSystem.out.println();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint tp=0;\n\t\tint hp=0;\n\n\t\tfor(int i=0; i<n;i++) {\n\t\t\tString[] array = new String[2];\n\t\t\tString taro=sc.next();\n\t\t\tString hanako=sc.next();\n\t\t\tarray[0]=taro;\n\t\t\tarray[1]=hanako;\n\n\t\t\tArrays.sort(array);\n\t\t\tif(array[0].equals(array[1])) {\n\t\t\t\ttp+=1;\n\t\t\t\thp+=1;\n\t\t\t}else if(array[1].equals(taro)) {\n\t\t\t\ttp+=3;\n\t\t\t}else if(array[1].equals(hanako)) {\n\t\t\t\thp+=3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\", tp,hp);\n\t\tSystem.out.println();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint tp=0;\n\t\tint hp=0;\n\n\t\tfor(int i=0; i<n;i++) {\n\t\t\tString[] array = new String[2];\n\t\t\tString taro=sc.next();\n\t\t\tString hanako=sc.next();\n\t\t\tarray[0]=taro;\n\t\t\tarray[1]=hanako;\n\n\t\t\tArrays.sort(array);\n\t\t\tif(array[0].equals(array[1])) {\n\t\t\t\ttp+=1;\n\t\t\t\thp+=1;\n\t\t\t}else if(array[1].equals(taro)) {\n\t\t\t\ttp+=3;\n\t\t\t}else if(array[1].equals(hanako)) {\n\t\t\t\thp+=3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\", tp,hp);\n\t\tSystem.out.println();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int tp=0;",
"tp",
"0",
"int hp=0;",
"hp",
"0",
"for(int i=0; i<n;i++) {\n\t\t\tString[] array = new String[2];\n\t\t\tString taro=sc.next();\n\t\t\tString hanako=sc.next();\n\t\t\tarray[0]=taro;\n\t\t\tarray[1]=hanako;\n\n\t\t\tArrays.sort(array);\n\t\t\tif(array[0].equals(array[1])) {\n\t\t\t\ttp+=1;\n\t\t\t\thp+=1;\n\t\t\t}else if(array[1].equals(taro)) {\n\t\t\t\ttp+=3;\n\t\t\t}else if(array[1].equals(hanako)) {\n\t\t\t\thp+=3;\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[] array = new String[2];\n\t\t\tString taro=sc.next();\n\t\t\tString hanako=sc.next();\n\t\t\tarray[0]=taro;\n\t\t\tarray[1]=hanako;\n\n\t\t\tArrays.sort(array);\n\t\t\tif(array[0].equals(array[1])) {\n\t\t\t\ttp+=1;\n\t\t\t\thp+=1;\n\t\t\t}else if(array[1].equals(taro)) {\n\t\t\t\ttp+=3;\n\t\t\t}else if(array[1].equals(hanako)) {\n\t\t\t\thp+=3;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString[] array = new String[2];\n\t\t\tString taro=sc.next();\n\t\t\tString hanako=sc.next();\n\t\t\tarray[0]=taro;\n\t\t\tarray[1]=hanako;\n\n\t\t\tArrays.sort(array);\n\t\t\tif(array[0].equals(array[1])) {\n\t\t\t\ttp+=1;\n\t\t\t\thp+=1;\n\t\t\t}else if(array[1].equals(taro)) {\n\t\t\t\ttp+=3;\n\t\t\t}else if(array[1].equals(hanako)) {\n\t\t\t\thp+=3;\n\t\t\t}\n\t\t}",
"String[] array = new String[2];",
"array",
"new String[2]",
"2",
"String taro=sc.next();",
"taro",
"sc.next()",
"sc.next",
"sc",
"String hanako=sc.next();",
"hanako",
"sc.next()",
"sc.next",
"sc",
"array[0]=taro",
"array[0]",
"array",
"0",
"taro",
"array[1]=hanako",
"array[1]",
"array",
"1",
"hanako",
"Arrays.sort(array)",
"Arrays.sort",
"Arrays",
"array",
"if(array[0].equals(array[1])) {\n\t\t\t\ttp+=1;\n\t\t\t\thp+=1;\n\t\t\t}else if(array[1].equals(taro)) {\n\t\t\t\ttp+=3;\n\t\t\t}else if(array[1].equals(hanako)) {\n\t\t\t\thp+=3;\n\t\t\t}",
"array[0].equals(array[1])",
"array[0].equals",
"array[0]",
"array",
"0",
"array[1]",
"array",
"1",
"{\n\t\t\t\ttp+=1;\n\t\t\t\thp+=1;\n\t\t\t}",
"tp+=1",
"tp",
"1",
"hp+=1",
"hp",
"1",
"if(array[1].equals(taro)) {\n\t\t\t\ttp+=3;\n\t\t\t}else if(array[1].equals(hanako)) {\n\t\t\t\thp+=3;\n\t\t\t}",
"array[1].equals(taro)",
"array[1].equals",
"array[1]",
"array",
"1",
"taro",
"{\n\t\t\t\ttp+=3;\n\t\t\t}",
"tp+=3",
"tp",
"3",
"if(array[1].equals(hanako)) {\n\t\t\t\thp+=3;\n\t\t\t}",
"array[1].equals(hanako)",
"array[1].equals",
"array[1]",
"array",
"1",
"hanako",
"{\n\t\t\t\thp+=3;\n\t\t\t}",
"hp+=3",
"hp",
"3",
"System.out.printf(\"%d %d\", tp,hp)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d %d\"",
"tp",
"hp",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint tp=0;\n\t\tint hp=0;\n\n\t\tfor(int i=0; i<n;i++) {\n\t\t\tString[] array = new String[2];\n\t\t\tString taro=sc.next();\n\t\t\tString hanako=sc.next();\n\t\t\tarray[0]=taro;\n\t\t\tarray[1]=hanako;\n\n\t\t\tArrays.sort(array);\n\t\t\tif(array[0].equals(array[1])) {\n\t\t\t\ttp+=1;\n\t\t\t\thp+=1;\n\t\t\t}else if(array[1].equals(taro)) {\n\t\t\t\ttp+=3;\n\t\t\t}else if(array[1].equals(hanako)) {\n\t\t\t\thp+=3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\", tp,hp);\n\t\tSystem.out.println();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint tp=0;\n\t\tint hp=0;\n\n\t\tfor(int i=0; i<n;i++) {\n\t\t\tString[] array = new String[2];\n\t\t\tString taro=sc.next();\n\t\t\tString hanako=sc.next();\n\t\t\tarray[0]=taro;\n\t\t\tarray[1]=hanako;\n\n\t\t\tArrays.sort(array);\n\t\t\tif(array[0].equals(array[1])) {\n\t\t\t\ttp+=1;\n\t\t\t\thp+=1;\n\t\t\t}else if(array[1].equals(taro)) {\n\t\t\t\ttp+=3;\n\t\t\t}else if(array[1].equals(hanako)) {\n\t\t\t\thp+=3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\", tp,hp);\n\t\tSystem.out.println();\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();
int tp=0;
int hp=0;
for(int i=0; i<n;i++) {
String[] array = new String[2];
String taro=sc.next();
String hanako=sc.next();
array[0]=taro;
array[1]=hanako;
Arrays.sort(array);
if(array[0].equals(array[1])) {
tp+=1;
hp+=1;
}else if(array[1].equals(taro)) {
tp+=3;
}else if(array[1].equals(hanako)) {
hp+=3;
}
}
System.out.printf("%d %d", tp,hp);
System.out.println();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
30,
40,
13,
40,
13,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
93,
5
],
[
93,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
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
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
46,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
56,
57
],
[
46,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
59,
64
],
[
58,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
58,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
70,
75
],
[
69,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
8,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
86,
86
],
[
86,
87
],
[
86,
88
],
[
86,
89
],
[
6,
90
],
[
90,
91
],
[
0,
92
],
[
92,
93
],
[
92,
94
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tint tresult = 0;\n\t\tint hresult = 0;\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString taro = scan.next();\n\t\t\tString hanako = scan.next();\n\n\t\t\tif(taro.compareTo(hanako) == 0){\n\t\t\t\ttresult++;\n\t\t\t\thresult++;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thresult += 3;\n\t\t\t}else if(taro.compareTo(hanako) > 0){\n\t\t\t\ttresult += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tresult + \" \" + hresult);\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tint tresult = 0;\n\t\tint hresult = 0;\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString taro = scan.next();\n\t\t\tString hanako = scan.next();\n\n\t\t\tif(taro.compareTo(hanako) == 0){\n\t\t\t\ttresult++;\n\t\t\t\thresult++;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thresult += 3;\n\t\t\t}else if(taro.compareTo(hanako) > 0){\n\t\t\t\ttresult += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tresult + \" \" + hresult);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tint tresult = 0;\n\t\tint hresult = 0;\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString taro = scan.next();\n\t\t\tString hanako = scan.next();\n\n\t\t\tif(taro.compareTo(hanako) == 0){\n\t\t\t\ttresult++;\n\t\t\t\thresult++;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thresult += 3;\n\t\t\t}else if(taro.compareTo(hanako) > 0){\n\t\t\t\ttresult += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tresult + \" \" + hresult);\n\t}",
"main",
"{\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tint tresult = 0;\n\t\tint hresult = 0;\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString taro = scan.next();\n\t\t\tString hanako = scan.next();\n\n\t\t\tif(taro.compareTo(hanako) == 0){\n\t\t\t\ttresult++;\n\t\t\t\thresult++;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thresult += 3;\n\t\t\t}else if(taro.compareTo(hanako) > 0){\n\t\t\t\ttresult += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tresult + \" \" + hresult);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int tresult = 0;",
"tresult",
"0",
"int hresult = 0;",
"hresult",
"0",
"for(int i = 0; i < n; i++){\n\t\t\tString taro = scan.next();\n\t\t\tString hanako = scan.next();\n\n\t\t\tif(taro.compareTo(hanako) == 0){\n\t\t\t\ttresult++;\n\t\t\t\thresult++;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thresult += 3;\n\t\t\t}else if(taro.compareTo(hanako) > 0){\n\t\t\t\ttresult += 3;\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 taro = scan.next();\n\t\t\tString hanako = scan.next();\n\n\t\t\tif(taro.compareTo(hanako) == 0){\n\t\t\t\ttresult++;\n\t\t\t\thresult++;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thresult += 3;\n\t\t\t}else if(taro.compareTo(hanako) > 0){\n\t\t\t\ttresult += 3;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString taro = scan.next();\n\t\t\tString hanako = scan.next();\n\n\t\t\tif(taro.compareTo(hanako) == 0){\n\t\t\t\ttresult++;\n\t\t\t\thresult++;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thresult += 3;\n\t\t\t}else if(taro.compareTo(hanako) > 0){\n\t\t\t\ttresult += 3;\n\t\t\t}\n\t\t}",
"String taro = scan.next();",
"taro",
"scan.next()",
"scan.next",
"scan",
"String hanako = scan.next();",
"hanako",
"scan.next()",
"scan.next",
"scan",
"if(taro.compareTo(hanako) == 0){\n\t\t\t\ttresult++;\n\t\t\t\thresult++;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thresult += 3;\n\t\t\t}else if(taro.compareTo(hanako) > 0){\n\t\t\t\ttresult += 3;\n\t\t\t}",
"taro.compareTo(hanako) == 0",
"taro.compareTo(hanako)",
"taro.compareTo",
"taro",
"hanako",
"0",
"{\n\t\t\t\ttresult++;\n\t\t\t\thresult++;\n\t\t\t}",
"tresult++",
"tresult",
"hresult++",
"hresult",
"if(taro.compareTo(hanako) < 0){\n\t\t\t\thresult += 3;\n\t\t\t}else if(taro.compareTo(hanako) > 0){\n\t\t\t\ttresult += 3;\n\t\t\t}",
"taro.compareTo(hanako) < 0",
"taro.compareTo(hanako)",
"taro.compareTo",
"taro",
"hanako",
"0",
"{\n\t\t\t\thresult += 3;\n\t\t\t}",
"hresult += 3",
"hresult",
"3",
"if(taro.compareTo(hanako) > 0){\n\t\t\t\ttresult += 3;\n\t\t\t}",
"taro.compareTo(hanako) > 0",
"taro.compareTo(hanako)",
"taro.compareTo",
"taro",
"hanako",
"0",
"{\n\t\t\t\ttresult += 3;\n\t\t\t}",
"tresult += 3",
"tresult",
"3",
"System.out.println(tresult + \" \" + hresult)",
"System.out.println",
"System.out",
"System",
"System.out",
"tresult + \" \" + hresult",
"tresult + \" \" + hresult",
"tresult",
"\" \"",
"hresult",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tint tresult = 0;\n\t\tint hresult = 0;\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString taro = scan.next();\n\t\t\tString hanako = scan.next();\n\n\t\t\tif(taro.compareTo(hanako) == 0){\n\t\t\t\ttresult++;\n\t\t\t\thresult++;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thresult += 3;\n\t\t\t}else if(taro.compareTo(hanako) > 0){\n\t\t\t\ttresult += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tresult + \" \" + hresult);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tint tresult = 0;\n\t\tint hresult = 0;\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString taro = scan.next();\n\t\t\tString hanako = scan.next();\n\n\t\t\tif(taro.compareTo(hanako) == 0){\n\t\t\t\ttresult++;\n\t\t\t\thresult++;\n\t\t\t}else if(taro.compareTo(hanako) < 0){\n\t\t\t\thresult += 3;\n\t\t\t}else if(taro.compareTo(hanako) > 0){\n\t\t\t\ttresult += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tresult + \" \" + hresult);\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 = scan.nextInt();
int tresult = 0;
int hresult = 0;
for(int i = 0; i < n; i++){
String taro = scan.next();
String hanako = scan.next();
if(taro.compareTo(hanako) == 0){
tresult++;
hresult++;
}else if(taro.compareTo(hanako) < 0){
hresult += 3;
}else if(taro.compareTo(hanako) > 0){
tresult += 3;
}
}
System.out.println(tresult + " " + hresult);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
0,
13,
17,
30,
40,
13,
40,
13,
4,
18,
18,
13,
13,
2,
2,
13,
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
],
[
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
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
46,
53
],
[
53,
54
],
[
53,
55
],
[
46,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
57,
62
],
[
56,
63
],
[
63,
64
],
[
63,
65
],
[
56,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
8,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
77,
77
],
[
77,
78
],
[
77,
79
],
[
77,
80
],
[
8,
81
],
[
81,
82
],
[
82,
83
],
[
6,
84
],
[
84,
85
]
]
| [
"import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String args[]) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tint tarowSum = 0;\n\n\t\tint hanakoSum = 0;\n\n\t\tfor(int i=0; i < n; i++) {\n\n\t\t\t// 入力を受け取る\n\t\t\tString ta = sc.next();\n\t\t\tString ha = sc.next();\n\n\t\t\tif(ta.compareTo(ha) > 0)\n\t\t\t\ttarowSum += 3;\n\n\t\t\telse if(ta.compareTo(ha) < 0)\n\t\t\t\thanakoSum += 3;\n\t\t\telse {\t// 引き分けの場合は、プラス1点\n\t\t\t\ttarowSum++;\n\t\t\t\thanakoSum++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tarowSum + \" \" + hanakoSum);\n\t\tsc.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\tpublic static void main(String args[]) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tint tarowSum = 0;\n\n\t\tint hanakoSum = 0;\n\n\t\tfor(int i=0; i < n; i++) {\n\n\t\t\t// 入力を受け取る\n\t\t\tString ta = sc.next();\n\t\t\tString ha = sc.next();\n\n\t\t\tif(ta.compareTo(ha) > 0)\n\t\t\t\ttarowSum += 3;\n\n\t\t\telse if(ta.compareTo(ha) < 0)\n\t\t\t\thanakoSum += 3;\n\t\t\telse {\t// 引き分けの場合は、プラス1点\n\t\t\t\ttarowSum++;\n\t\t\t\thanakoSum++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tarowSum + \" \" + hanakoSum);\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String args[]) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tint tarowSum = 0;\n\n\t\tint hanakoSum = 0;\n\n\t\tfor(int i=0; i < n; i++) {\n\n\t\t\t// 入力を受け取る\n\t\t\tString ta = sc.next();\n\t\t\tString ha = sc.next();\n\n\t\t\tif(ta.compareTo(ha) > 0)\n\t\t\t\ttarowSum += 3;\n\n\t\t\telse if(ta.compareTo(ha) < 0)\n\t\t\t\thanakoSum += 3;\n\t\t\telse {\t// 引き分けの場合は、プラス1点\n\t\t\t\ttarowSum++;\n\t\t\t\thanakoSum++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tarowSum + \" \" + hanakoSum);\n\t\tsc.close();\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tint tarowSum = 0;\n\n\t\tint hanakoSum = 0;\n\n\t\tfor(int i=0; i < n; i++) {\n\n\t\t\t// 入力を受け取る\n\t\t\tString ta = sc.next();\n\t\t\tString ha = sc.next();\n\n\t\t\tif(ta.compareTo(ha) > 0)\n\t\t\t\ttarowSum += 3;\n\n\t\t\telse if(ta.compareTo(ha) < 0)\n\t\t\t\thanakoSum += 3;\n\t\t\telse {\t// 引き分けの場合は、プラス1点\n\t\t\t\ttarowSum++;\n\t\t\t\thanakoSum++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tarowSum + \" \" + hanakoSum);\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 tarowSum = 0;",
"tarowSum",
"0",
"int hanakoSum = 0;",
"hanakoSum",
"0",
"for(int i=0; i < n; i++) {\n\n\t\t\t// 入力を受け取る\n\t\t\tString ta = sc.next();\n\t\t\tString ha = sc.next();\n\n\t\t\tif(ta.compareTo(ha) > 0)\n\t\t\t\ttarowSum += 3;\n\n\t\t\telse if(ta.compareTo(ha) < 0)\n\t\t\t\thanakoSum += 3;\n\t\t\telse {\t// 引き分けの場合は、プラス1点\n\t\t\t\ttarowSum++;\n\t\t\t\thanakoSum++;\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\n\t\t\t// 入力を受け取る\n\t\t\tString ta = sc.next();\n\t\t\tString ha = sc.next();\n\n\t\t\tif(ta.compareTo(ha) > 0)\n\t\t\t\ttarowSum += 3;\n\n\t\t\telse if(ta.compareTo(ha) < 0)\n\t\t\t\thanakoSum += 3;\n\t\t\telse {\t// 引き分けの場合は、プラス1点\n\t\t\t\ttarowSum++;\n\t\t\t\thanakoSum++;\n\t\t\t}\n\t\t}",
"{\n\n\t\t\t// 入力を受け取る\n\t\t\tString ta = sc.next();\n\t\t\tString ha = sc.next();\n\n\t\t\tif(ta.compareTo(ha) > 0)\n\t\t\t\ttarowSum += 3;\n\n\t\t\telse if(ta.compareTo(ha) < 0)\n\t\t\t\thanakoSum += 3;\n\t\t\telse {\t// 引き分けの場合は、プラス1点\n\t\t\t\ttarowSum++;\n\t\t\t\thanakoSum++;\n\t\t\t}\n\t\t}",
"String ta = sc.next();",
"ta",
"sc.next()",
"sc.next",
"sc",
"String ha = sc.next();",
"ha",
"sc.next()",
"sc.next",
"sc",
"if(ta.compareTo(ha) > 0)\n\t\t\t\ttarowSum += 3;\n\n\t\t\telse if(ta.compareTo(ha) < 0)\n\t\t\t\thanakoSum += 3;\n\t\t\telse {\t// 引き分けの場合は、プラス1点\n\t\t\t\ttarowSum++;\n\t\t\t\thanakoSum++;\n\t\t\t}",
"ta.compareTo(ha) > 0",
"ta.compareTo(ha)",
"ta.compareTo",
"ta",
"ha",
"0",
"tarowSum += 3",
"tarowSum",
"3",
"if(ta.compareTo(ha) < 0)\n\t\t\t\thanakoSum += 3;\n\t\t\telse {\t// 引き分けの場合は、プラス1点\n\t\t\t\ttarowSum++;\n\t\t\t\thanakoSum++;\n\t\t\t}",
"ta.compareTo(ha) < 0",
"ta.compareTo(ha)",
"ta.compareTo",
"ta",
"ha",
"0",
"hanakoSum += 3",
"hanakoSum",
"3",
"{\t// 引き分けの場合は、プラス1点\n\t\t\t\ttarowSum++;\n\t\t\t\thanakoSum++;\n\t\t\t}",
"tarowSum++",
"tarowSum",
"hanakoSum++",
"hanakoSum",
"System.out.println(tarowSum + \" \" + hanakoSum)",
"System.out.println",
"System.out",
"System",
"System.out",
"tarowSum + \" \" + hanakoSum",
"tarowSum + \" \" + hanakoSum",
"tarowSum",
"\" \"",
"hanakoSum",
"sc.close()",
"sc.close",
"sc",
"String args[]",
"args"
]
| import java.util.Scanner;
class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int tarowSum = 0;
int hanakoSum = 0;
for(int i=0; i < n; i++) {
// 入力を受け取る
String ta = sc.next();
String ha = sc.next();
if(ta.compareTo(ha) > 0)
tarowSum += 3;
else if(ta.compareTo(ha) < 0)
hanakoSum += 3;
else { // 引き分けの場合は、プラス1点
tarowSum++;
hanakoSum++;
}
}
System.out.println(tarowSum + " " + hanakoSum);
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
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,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
40,
13,
40,
13,
30,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
86,
5
],
[
86,
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
],
[
20,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
46,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
46,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
58,
63
],
[
57,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
67,
68
],
[
57,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
79,
79
],
[
79,
80
],
[
79,
81
],
[
79,
82
],
[
6,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n int t = 0, h = 0;\n \n int x = sc.nextInt();\n \n for(int i = 0; i < x; i++){\n String str1 = sc.next();\n String str2 = sc.next();\n if(str1.compareTo(str2)<0){\n h+=3;\n }else if(str1.compareTo(str2)==0){\n t++;\n h++;\n }else{\n t+=3;\n }\n }\n System.out.println(t + \" \" + h);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n int t = 0, h = 0;\n \n int x = sc.nextInt();\n \n for(int i = 0; i < x; i++){\n String str1 = sc.next();\n String str2 = sc.next();\n if(str1.compareTo(str2)<0){\n h+=3;\n }else if(str1.compareTo(str2)==0){\n t++;\n h++;\n }else{\n t+=3;\n }\n }\n System.out.println(t + \" \" + h);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n int t = 0, h = 0;\n \n int x = sc.nextInt();\n \n for(int i = 0; i < x; i++){\n String str1 = sc.next();\n String str2 = sc.next();\n if(str1.compareTo(str2)<0){\n h+=3;\n }else if(str1.compareTo(str2)==0){\n t++;\n h++;\n }else{\n t+=3;\n }\n }\n System.out.println(t + \" \" + h);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n \n int t = 0, h = 0;\n \n int x = sc.nextInt();\n \n for(int i = 0; i < x; i++){\n String str1 = sc.next();\n String str2 = sc.next();\n if(str1.compareTo(str2)<0){\n h+=3;\n }else if(str1.compareTo(str2)==0){\n t++;\n h++;\n }else{\n t+=3;\n }\n }\n System.out.println(t + \" \" + h);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int t = 0",
"t",
"0",
"h = 0;",
"h",
"0",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < x; i++){\n String str1 = sc.next();\n String str2 = sc.next();\n if(str1.compareTo(str2)<0){\n h+=3;\n }else if(str1.compareTo(str2)==0){\n t++;\n h++;\n }else{\n t+=3;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < x",
"i",
"x",
"i++",
"i++",
"i",
"{\n String str1 = sc.next();\n String str2 = sc.next();\n if(str1.compareTo(str2)<0){\n h+=3;\n }else if(str1.compareTo(str2)==0){\n t++;\n h++;\n }else{\n t+=3;\n }\n }",
"{\n String str1 = sc.next();\n String str2 = sc.next();\n if(str1.compareTo(str2)<0){\n h+=3;\n }else if(str1.compareTo(str2)==0){\n t++;\n h++;\n }else{\n t+=3;\n }\n }",
"String str1 = sc.next();",
"str1",
"sc.next()",
"sc.next",
"sc",
"String str2 = sc.next();",
"str2",
"sc.next()",
"sc.next",
"sc",
"if(str1.compareTo(str2)<0){\n h+=3;\n }else if(str1.compareTo(str2)==0){\n t++;\n h++;\n }else{\n t+=3;\n }",
"str1.compareTo(str2)<0",
"str1.compareTo(str2)",
"str1.compareTo",
"str1",
"str2",
"0",
"{\n h+=3;\n }",
"h+=3",
"h",
"3",
"if(str1.compareTo(str2)==0){\n t++;\n h++;\n }else{\n t+=3;\n }",
"str1.compareTo(str2)==0",
"str1.compareTo(str2)",
"str1.compareTo",
"str1",
"str2",
"0",
"{\n t++;\n h++;\n }",
"t++",
"t",
"h++",
"h",
"{\n t+=3;\n }",
"t+=3",
"t",
"3",
"System.out.println(t + \" \" + h)",
"System.out.println",
"System.out",
"System",
"System.out",
"t + \" \" + h",
"t + \" \" + h",
"t",
"\" \"",
"h",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n int t = 0, h = 0;\n \n int x = sc.nextInt();\n \n for(int i = 0; i < x; i++){\n String str1 = sc.next();\n String str2 = sc.next();\n if(str1.compareTo(str2)<0){\n h+=3;\n }else if(str1.compareTo(str2)==0){\n t++;\n h++;\n }else{\n t+=3;\n }\n }\n System.out.println(t + \" \" + h);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n int t = 0, h = 0;\n \n int x = sc.nextInt();\n \n for(int i = 0; i < x; i++){\n String str1 = sc.next();\n String str2 = sc.next();\n if(str1.compareTo(str2)<0){\n h+=3;\n }else if(str1.compareTo(str2)==0){\n t++;\n h++;\n }else{\n t+=3;\n }\n }\n System.out.println(t + \" \" + h);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int t = 0, h = 0;
int x = sc.nextInt();
for(int i = 0; i < x; i++){
String str1 = sc.next();
String str2 = sc.next();
if(str1.compareTo(str2)<0){
h+=3;
}else if(str1.compareTo(str2)==0){
t++;
h++;
}else{
t+=3;
}
}
System.out.println(t + " " + h);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
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,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
0,
13,
17,
30,
0,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
97,
5
],
[
97,
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
],
[
23,
24
],
[
24,
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
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
50,
55
],
[
49,
56
],
[
56,
57
],
[
56,
58
],
[
49,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
60,
65
],
[
59,
66
],
[
66,
67
],
[
66,
68
],
[
59,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
73,
75
],
[
8,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
8,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
8,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
6,
94
],
[
94,
95
],
[
0,
96
],
[
96,
97
],
[
96,
98
]
]
| [
"import java.util.*;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n //StringBuilder bd = new StringBuilder();\n ArrayList<String> A = new ArrayList<String>();\n //int[] A = new int[26];\n //Arrays.fill(A, 0);\n //String str;\n int t = 0;\n int h = 0;\n\n int n = sc.nextInt();\n\n for (int i=0; i<n; i++) {\n String taro = sc.next();\n String hanako = sc.next();\n\n if (taro.compareTo(hanako) > 0) t += 3;\n else if (taro.compareTo(hanako) < 0) h += 3;\n else {t += 1; h += 1;}\n }\n System.out.print(t);\n System.out.print(\" \");\n System.out.println(h);\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 //StringBuilder bd = new StringBuilder();\n ArrayList<String> A = new ArrayList<String>();\n //int[] A = new int[26];\n //Arrays.fill(A, 0);\n //String str;\n int t = 0;\n int h = 0;\n\n int n = sc.nextInt();\n\n for (int i=0; i<n; i++) {\n String taro = sc.next();\n String hanako = sc.next();\n\n if (taro.compareTo(hanako) > 0) t += 3;\n else if (taro.compareTo(hanako) < 0) h += 3;\n else {t += 1; h += 1;}\n }\n System.out.print(t);\n System.out.print(\" \");\n System.out.println(h);\n\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n //StringBuilder bd = new StringBuilder();\n ArrayList<String> A = new ArrayList<String>();\n //int[] A = new int[26];\n //Arrays.fill(A, 0);\n //String str;\n int t = 0;\n int h = 0;\n\n int n = sc.nextInt();\n\n for (int i=0; i<n; i++) {\n String taro = sc.next();\n String hanako = sc.next();\n\n if (taro.compareTo(hanako) > 0) t += 3;\n else if (taro.compareTo(hanako) < 0) h += 3;\n else {t += 1; h += 1;}\n }\n System.out.print(t);\n System.out.print(\" \");\n System.out.println(h);\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n //StringBuilder bd = new StringBuilder();\n ArrayList<String> A = new ArrayList<String>();\n //int[] A = new int[26];\n //Arrays.fill(A, 0);\n //String str;\n int t = 0;\n int h = 0;\n\n int n = sc.nextInt();\n\n for (int i=0; i<n; i++) {\n String taro = sc.next();\n String hanako = sc.next();\n\n if (taro.compareTo(hanako) > 0) t += 3;\n else if (taro.compareTo(hanako) < 0) h += 3;\n else {t += 1; h += 1;}\n }\n System.out.print(t);\n System.out.print(\" \");\n System.out.println(h);\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"ArrayList<String> A = new ArrayList<String>();",
"A",
"new ArrayList<String>()",
"int t = 0;",
"t",
"0",
"int h = 0;",
"h",
"0",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i=0; i<n; i++) {\n String taro = sc.next();\n String hanako = sc.next();\n\n if (taro.compareTo(hanako) > 0) t += 3;\n else if (taro.compareTo(hanako) < 0) h += 3;\n else {t += 1; h += 1;}\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String taro = sc.next();\n String hanako = sc.next();\n\n if (taro.compareTo(hanako) > 0) t += 3;\n else if (taro.compareTo(hanako) < 0) h += 3;\n else {t += 1; h += 1;}\n }",
"{\n String taro = sc.next();\n String hanako = sc.next();\n\n if (taro.compareTo(hanako) > 0) t += 3;\n else if (taro.compareTo(hanako) < 0) h += 3;\n else {t += 1; h += 1;}\n }",
"String taro = sc.next();",
"taro",
"sc.next()",
"sc.next",
"sc",
"String hanako = sc.next();",
"hanako",
"sc.next()",
"sc.next",
"sc",
"if (taro.compareTo(hanako) > 0) t += 3;\n else if (taro.compareTo(hanako) < 0) h += 3;\n else {t += 1; h += 1;}",
"taro.compareTo(hanako) > 0",
"taro.compareTo(hanako)",
"taro.compareTo",
"taro",
"hanako",
"0",
"t += 3",
"t",
"3",
"if (taro.compareTo(hanako) < 0) h += 3;\n else {t += 1; h += 1;}",
"taro.compareTo(hanako) < 0",
"taro.compareTo(hanako)",
"taro.compareTo",
"taro",
"hanako",
"0",
"h += 3",
"h",
"3",
"{t += 1; h += 1;}",
"t += 1",
"t",
"1",
"h += 1",
"h",
"1",
"System.out.print(t)",
"System.out.print",
"System.out",
"System",
"System.out",
"t",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.println(h)",
"System.out.println",
"System.out",
"System",
"System.out",
"h",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n //StringBuilder bd = new StringBuilder();\n ArrayList<String> A = new ArrayList<String>();\n //int[] A = new int[26];\n //Arrays.fill(A, 0);\n //String str;\n int t = 0;\n int h = 0;\n\n int n = sc.nextInt();\n\n for (int i=0; i<n; i++) {\n String taro = sc.next();\n String hanako = sc.next();\n\n if (taro.compareTo(hanako) > 0) t += 3;\n else if (taro.compareTo(hanako) < 0) h += 3;\n else {t += 1; h += 1;}\n }\n System.out.print(t);\n System.out.print(\" \");\n System.out.println(h);\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n //StringBuilder bd = new StringBuilder();\n ArrayList<String> A = new ArrayList<String>();\n //int[] A = new int[26];\n //Arrays.fill(A, 0);\n //String str;\n int t = 0;\n int h = 0;\n\n int n = sc.nextInt();\n\n for (int i=0; i<n; i++) {\n String taro = sc.next();\n String hanako = sc.next();\n\n if (taro.compareTo(hanako) > 0) t += 3;\n else if (taro.compareTo(hanako) < 0) h += 3;\n else {t += 1; h += 1;}\n }\n System.out.print(t);\n System.out.print(\" \");\n System.out.println(h);\n\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
//StringBuilder bd = new StringBuilder();
ArrayList<String> A = new ArrayList<String>();
//int[] A = new int[26];
//Arrays.fill(A, 0);
//String str;
int t = 0;
int h = 0;
int n = sc.nextInt();
for (int i=0; i<n; i++) {
String taro = sc.next();
String hanako = sc.next();
if (taro.compareTo(hanako) > 0) t += 3;
else if (taro.compareTo(hanako) < 0) h += 3;
else {t += 1; h += 1;}
}
System.out.print(t);
System.out.print(" ");
System.out.println(h);
}
}
|
[
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
0,
13,
17,
30,
40,
13,
40,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
90,
5
],
[
90,
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
],
[
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
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
50,
55
],
[
49,
56
],
[
56,
57
],
[
56,
58
],
[
49,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
60,
65
],
[
59,
66
],
[
66,
67
],
[
66,
68
],
[
59,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
72,
73
],
[
8,
74
],
[
74,
75
],
[
75,
76
],
[
8,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
83,
83
],
[
83,
84
],
[
83,
85
],
[
83,
86
],
[
6,
87
],
[
87,
88
],
[
0,
89
],
[
89,
90
],
[
89,
91
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tfinal int n = Integer.parseInt(sc.next());\n\t\tint taroScore = 0, hanakoScore = 0;\n\t\tfor (int i=0; i < n; i++) {\n\t\t\tString taro = sc.next(), hanako = sc.next();\n\t\t\tif (taro.compareToIgnoreCase(hanako) < 0) hanakoScore += 3;\n\t\t\telse if (taro.compareToIgnoreCase(hanako) > 0) taroScore += 3;\n\t\t\telse { taroScore++; hanakoScore++; }\n\t\t}\n\t\tsc.close(); System.out.println(taroScore + \" \" + hanakoScore);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tfinal int n = Integer.parseInt(sc.next());\n\t\tint taroScore = 0, hanakoScore = 0;\n\t\tfor (int i=0; i < n; i++) {\n\t\t\tString taro = sc.next(), hanako = sc.next();\n\t\t\tif (taro.compareToIgnoreCase(hanako) < 0) hanakoScore += 3;\n\t\t\telse if (taro.compareToIgnoreCase(hanako) > 0) taroScore += 3;\n\t\t\telse { taroScore++; hanakoScore++; }\n\t\t}\n\t\tsc.close(); System.out.println(taroScore + \" \" + hanakoScore);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tfinal int n = Integer.parseInt(sc.next());\n\t\tint taroScore = 0, hanakoScore = 0;\n\t\tfor (int i=0; i < n; i++) {\n\t\t\tString taro = sc.next(), hanako = sc.next();\n\t\t\tif (taro.compareToIgnoreCase(hanako) < 0) hanakoScore += 3;\n\t\t\telse if (taro.compareToIgnoreCase(hanako) > 0) taroScore += 3;\n\t\t\telse { taroScore++; hanakoScore++; }\n\t\t}\n\t\tsc.close(); System.out.println(taroScore + \" \" + hanakoScore);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tfinal int n = Integer.parseInt(sc.next());\n\t\tint taroScore = 0, hanakoScore = 0;\n\t\tfor (int i=0; i < n; i++) {\n\t\t\tString taro = sc.next(), hanako = sc.next();\n\t\t\tif (taro.compareToIgnoreCase(hanako) < 0) hanakoScore += 3;\n\t\t\telse if (taro.compareToIgnoreCase(hanako) > 0) taroScore += 3;\n\t\t\telse { taroScore++; hanakoScore++; }\n\t\t}\n\t\tsc.close(); System.out.println(taroScore + \" \" + hanakoScore);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"final int n = Integer.parseInt(sc.next());",
"n",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int taroScore = 0",
"taroScore",
"0",
"hanakoScore = 0;",
"hanakoScore",
"0",
"for (int i=0; i < n; i++) {\n\t\t\tString taro = sc.next(), hanako = sc.next();\n\t\t\tif (taro.compareToIgnoreCase(hanako) < 0) hanakoScore += 3;\n\t\t\telse if (taro.compareToIgnoreCase(hanako) > 0) taroScore += 3;\n\t\t\telse { taroScore++; hanakoScore++; }\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString taro = sc.next(), hanako = sc.next();\n\t\t\tif (taro.compareToIgnoreCase(hanako) < 0) hanakoScore += 3;\n\t\t\telse if (taro.compareToIgnoreCase(hanako) > 0) taroScore += 3;\n\t\t\telse { taroScore++; hanakoScore++; }\n\t\t}",
"{\n\t\t\tString taro = sc.next(), hanako = sc.next();\n\t\t\tif (taro.compareToIgnoreCase(hanako) < 0) hanakoScore += 3;\n\t\t\telse if (taro.compareToIgnoreCase(hanako) > 0) taroScore += 3;\n\t\t\telse { taroScore++; hanakoScore++; }\n\t\t}",
"String taro = sc.next()",
"taro",
"sc.next()",
"sc.next",
"sc",
"hanako = sc.next();",
"hanako",
"sc.next()",
"sc.next",
"sc",
"if (taro.compareToIgnoreCase(hanako) < 0) hanakoScore += 3;\n\t\t\telse if (taro.compareToIgnoreCase(hanako) > 0) taroScore += 3;\n\t\t\telse { taroScore++; hanakoScore++; }",
"taro.compareToIgnoreCase(hanako) < 0",
"taro.compareToIgnoreCase(hanako)",
"taro.compareToIgnoreCase",
"taro",
"hanako",
"0",
"hanakoScore += 3",
"hanakoScore",
"3",
"if (taro.compareToIgnoreCase(hanako) > 0) taroScore += 3;\n\t\t\telse { taroScore++; hanakoScore++; }",
"taro.compareToIgnoreCase(hanako) > 0",
"taro.compareToIgnoreCase(hanako)",
"taro.compareToIgnoreCase",
"taro",
"hanako",
"0",
"taroScore += 3",
"taroScore",
"3",
"{ taroScore++; hanakoScore++; }",
"taroScore++",
"taroScore",
"hanakoScore++",
"hanakoScore",
"sc.close()",
"sc.close",
"sc",
"System.out.println(taroScore + \" \" + hanakoScore)",
"System.out.println",
"System.out",
"System",
"System.out",
"taroScore + \" \" + hanakoScore",
"taroScore + \" \" + hanakoScore",
"taroScore",
"\" \"",
"hanakoScore",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tfinal int n = Integer.parseInt(sc.next());\n\t\tint taroScore = 0, hanakoScore = 0;\n\t\tfor (int i=0; i < n; i++) {\n\t\t\tString taro = sc.next(), hanako = sc.next();\n\t\t\tif (taro.compareToIgnoreCase(hanako) < 0) hanakoScore += 3;\n\t\t\telse if (taro.compareToIgnoreCase(hanako) > 0) taroScore += 3;\n\t\t\telse { taroScore++; hanakoScore++; }\n\t\t}\n\t\tsc.close(); System.out.println(taroScore + \" \" + hanakoScore);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tfinal int n = Integer.parseInt(sc.next());\n\t\tint taroScore = 0, hanakoScore = 0;\n\t\tfor (int i=0; i < n; i++) {\n\t\t\tString taro = sc.next(), hanako = sc.next();\n\t\t\tif (taro.compareToIgnoreCase(hanako) < 0) hanakoScore += 3;\n\t\t\telse if (taro.compareToIgnoreCase(hanako) > 0) taroScore += 3;\n\t\t\telse { taroScore++; hanakoScore++; }\n\t\t}\n\t\tsc.close(); System.out.println(taroScore + \" \" + hanakoScore);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
final int n = Integer.parseInt(sc.next());
int taroScore = 0, hanakoScore = 0;
for (int i=0; i < n; i++) {
String taro = sc.next(), hanako = sc.next();
if (taro.compareToIgnoreCase(hanako) < 0) hanakoScore += 3;
else if (taro.compareToIgnoreCase(hanako) > 0) taroScore += 3;
else { taroScore++; hanakoScore++; }
}
sc.close(); System.out.println(taroScore + " " + hanakoScore);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
14,
2,
13,
17,
0,
13,
17,
14,
2,
13,
17,
0,
13,
17,
30,
40,
13,
40,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
84,
5
],
[
84,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
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
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
35,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
56,
58
],
[
52,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
63,
65
],
[
59,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
8,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
77,
77
],
[
77,
78
],
[
77,
79
],
[
77,
80
],
[
6,
81
],
[
81,
82
],
[
0,
83
],
[
83,
84
],
[
83,
85
]
]
| [
"\nimport java.util.*;\n\npublic class Main {\n\t \n\tpublic static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\tint n=cin.nextInt();\n\t\tint taro=0,hanako=0;\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tString Ts=cin.next(),Hs=cin.next();\n\t\t\tint j=Ts.compareTo(Hs);\n\t\t\tif(j>0)taro+=3;\n\t\t\telse if(j<0)hanako+=3;\n\t\t\telse {\n\t\t\t\ttaro++;hanako++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taro+\" \"+hanako);\n\t}\n\t\n\t\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\t \n\tpublic static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\tint n=cin.nextInt();\n\t\tint taro=0,hanako=0;\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tString Ts=cin.next(),Hs=cin.next();\n\t\t\tint j=Ts.compareTo(Hs);\n\t\t\tif(j>0)taro+=3;\n\t\t\telse if(j<0)hanako+=3;\n\t\t\telse {\n\t\t\t\ttaro++;hanako++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taro+\" \"+hanako);\n\t}\n\t\n\t\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\tint n=cin.nextInt();\n\t\tint taro=0,hanako=0;\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tString Ts=cin.next(),Hs=cin.next();\n\t\t\tint j=Ts.compareTo(Hs);\n\t\t\tif(j>0)taro+=3;\n\t\t\telse if(j<0)hanako+=3;\n\t\t\telse {\n\t\t\t\ttaro++;hanako++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taro+\" \"+hanako);\n\t}",
"main",
"{\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\tint n=cin.nextInt();\n\t\tint taro=0,hanako=0;\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tString Ts=cin.next(),Hs=cin.next();\n\t\t\tint j=Ts.compareTo(Hs);\n\t\t\tif(j>0)taro+=3;\n\t\t\telse if(j<0)hanako+=3;\n\t\t\telse {\n\t\t\t\ttaro++;hanako++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taro+\" \"+hanako);\n\t}",
"Scanner cin=new Scanner(System.in);",
"cin",
"new Scanner(System.in)",
"int n=cin.nextInt();",
"n",
"cin.nextInt()",
"cin.nextInt",
"cin",
"int taro=0",
"taro",
"0",
"hanako=0;",
"hanako",
"0",
"for(int i=0;i<n;i++) {\n\t\t\tString Ts=cin.next(),Hs=cin.next();\n\t\t\tint j=Ts.compareTo(Hs);\n\t\t\tif(j>0)taro+=3;\n\t\t\telse if(j<0)hanako+=3;\n\t\t\telse {\n\t\t\t\ttaro++;hanako++;\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 Ts=cin.next(),Hs=cin.next();\n\t\t\tint j=Ts.compareTo(Hs);\n\t\t\tif(j>0)taro+=3;\n\t\t\telse if(j<0)hanako+=3;\n\t\t\telse {\n\t\t\t\ttaro++;hanako++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString Ts=cin.next(),Hs=cin.next();\n\t\t\tint j=Ts.compareTo(Hs);\n\t\t\tif(j>0)taro+=3;\n\t\t\telse if(j<0)hanako+=3;\n\t\t\telse {\n\t\t\t\ttaro++;hanako++;\n\t\t\t}\n\t\t}",
"String Ts=cin.next()",
"Ts",
"cin.next()",
"cin.next",
"cin",
"Hs=cin.next();",
"Hs",
"cin.next()",
"cin.next",
"cin",
"int j=Ts.compareTo(Hs);",
"j",
"Ts.compareTo(Hs)",
"Ts.compareTo",
"Ts",
"Hs",
"if(j>0)taro+=3;\n\t\t\telse if(j<0)hanako+=3;\n\t\t\telse {\n\t\t\t\ttaro++;hanako++;\n\t\t\t}",
"j>0",
"j",
"0",
"taro+=3",
"taro",
"3",
"if(j<0)hanako+=3;\n\t\t\telse {\n\t\t\t\ttaro++;hanako++;\n\t\t\t}",
"j<0",
"j",
"0",
"hanako+=3",
"hanako",
"3",
"{\n\t\t\t\ttaro++;hanako++;\n\t\t\t}",
"taro++",
"taro",
"hanako++",
"hanako",
"System.out.println(taro+\" \"+hanako)",
"System.out.println",
"System.out",
"System",
"System.out",
"taro+\" \"+hanako",
"taro+\" \"+hanako",
"taro",
"\" \"",
"hanako",
"String[] args",
"args",
"public class Main {\n\t \n\tpublic static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\tint n=cin.nextInt();\n\t\tint taro=0,hanako=0;\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tString Ts=cin.next(),Hs=cin.next();\n\t\t\tint j=Ts.compareTo(Hs);\n\t\t\tif(j>0)taro+=3;\n\t\t\telse if(j<0)hanako+=3;\n\t\t\telse {\n\t\t\t\ttaro++;hanako++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taro+\" \"+hanako);\n\t}\n\t\n\t\n}",
"public class Main {\n\t \n\tpublic static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\tint n=cin.nextInt();\n\t\tint taro=0,hanako=0;\n\t\t\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tString Ts=cin.next(),Hs=cin.next();\n\t\t\tint j=Ts.compareTo(Hs);\n\t\t\tif(j>0)taro+=3;\n\t\t\telse if(j<0)hanako+=3;\n\t\t\telse {\n\t\t\t\ttaro++;hanako++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taro+\" \"+hanako);\n\t}\n\t\n\t\n}",
"Main"
]
|
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner cin=new Scanner(System.in);
int n=cin.nextInt();
int taro=0,hanako=0;
for(int i=0;i<n;i++) {
String Ts=cin.next(),Hs=cin.next();
int j=Ts.compareTo(Hs);
if(j>0)taro+=3;
else if(j<0)hanako+=3;
else {
taro++;hanako++;
}
}
System.out.println(taro+" "+hanako);
}
}
|
[
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,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
30,
40,
13,
40,
13,
4,
18,
18,
13,
13,
2,
2,
13,
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
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
53,
58
],
[
52,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
52,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
64,
69
],
[
63,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
63,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
8,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
85,
85
],
[
85,
86
],
[
85,
87
],
[
85,
88
],
[
8,
89
],
[
89,
90
],
[
90,
91
],
[
6,
92
],
[
92,
93
]
]
| [
"import java.util.Scanner;\nclass Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n String b=\"\",g=\"\";\n int bc=0,gc=0;\n for(int i=0;i<n;i++){\n b=sc.next();\n g=sc.next();\n if(b.compareTo(g)>0){\n bc+=3;\n }else if(b.compareTo(g)<0){\n gc+=3;\n }else{\n bc++;\n gc++;\n }\n }\n System.out.println(bc+\" \"+gc);\n sc.close();\n }\n}\n ",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n String b=\"\",g=\"\";\n int bc=0,gc=0;\n for(int i=0;i<n;i++){\n b=sc.next();\n g=sc.next();\n if(b.compareTo(g)>0){\n bc+=3;\n }else if(b.compareTo(g)<0){\n gc+=3;\n }else{\n bc++;\n gc++;\n }\n }\n System.out.println(bc+\" \"+gc);\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n String b=\"\",g=\"\";\n int bc=0,gc=0;\n for(int i=0;i<n;i++){\n b=sc.next();\n g=sc.next();\n if(b.compareTo(g)>0){\n bc+=3;\n }else if(b.compareTo(g)<0){\n gc+=3;\n }else{\n bc++;\n gc++;\n }\n }\n System.out.println(bc+\" \"+gc);\n sc.close();\n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n String b=\"\",g=\"\";\n int bc=0,gc=0;\n for(int i=0;i<n;i++){\n b=sc.next();\n g=sc.next();\n if(b.compareTo(g)>0){\n bc+=3;\n }else if(b.compareTo(g)<0){\n gc+=3;\n }else{\n bc++;\n gc++;\n }\n }\n System.out.println(bc+\" \"+gc);\n sc.close();\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String b=\"\"",
"b",
"\"\"",
"g=\"\";",
"g",
"\"\"",
"int bc=0",
"bc",
"0",
"gc=0;",
"gc",
"0",
"for(int i=0;i<n;i++){\n b=sc.next();\n g=sc.next();\n if(b.compareTo(g)>0){\n bc+=3;\n }else if(b.compareTo(g)<0){\n gc+=3;\n }else{\n bc++;\n gc++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n b=sc.next();\n g=sc.next();\n if(b.compareTo(g)>0){\n bc+=3;\n }else if(b.compareTo(g)<0){\n gc+=3;\n }else{\n bc++;\n gc++;\n }\n }",
"{\n b=sc.next();\n g=sc.next();\n if(b.compareTo(g)>0){\n bc+=3;\n }else if(b.compareTo(g)<0){\n gc+=3;\n }else{\n bc++;\n gc++;\n }\n }",
"b=sc.next()",
"b",
"sc.next()",
"sc.next",
"sc",
"g=sc.next()",
"g",
"sc.next()",
"sc.next",
"sc",
"if(b.compareTo(g)>0){\n bc+=3;\n }else if(b.compareTo(g)<0){\n gc+=3;\n }else{\n bc++;\n gc++;\n }",
"b.compareTo(g)>0",
"b.compareTo(g)",
"b.compareTo",
"b",
"g",
"0",
"{\n bc+=3;\n }",
"bc+=3",
"bc",
"3",
"if(b.compareTo(g)<0){\n gc+=3;\n }else{\n bc++;\n gc++;\n }",
"b.compareTo(g)<0",
"b.compareTo(g)",
"b.compareTo",
"b",
"g",
"0",
"{\n gc+=3;\n }",
"gc+=3",
"gc",
"3",
"{\n bc++;\n gc++;\n }",
"bc++",
"bc",
"gc++",
"gc",
"System.out.println(bc+\" \"+gc)",
"System.out.println",
"System.out",
"System",
"System.out",
"bc+\" \"+gc",
"bc+\" \"+gc",
"bc",
"\" \"",
"gc",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args"
]
| import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
String b="",g="";
int bc=0,gc=0;
for(int i=0;i<n;i++){
b=sc.next();
g=sc.next();
if(b.compareTo(g)>0){
bc+=3;
}else if(b.compareTo(g)<0){
gc+=3;
}else{
bc++;
gc++;
}
}
System.out.println(bc+" "+gc);
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
0,
13,
17,
0,
13,
17,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
0,
13,
17,
14,
2,
13,
17,
30,
40,
13,
40,
13,
30,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
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
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
47,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
47,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
64,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
79,
80
],
[
72,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
8,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
91,
91
],
[
91,
92
],
[
91,
93
],
[
91,
94
],
[
6,
95
],
[
95,
96
]
]
| [
"import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String args[]){\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\t\t\n\t\tint n, ap, bp, a;\n\t\tString str, str2;\n\t\t\n\t\tap = 0;\n\t\tbp = 0;\n\t\t\n\t\tn = scan.nextInt();\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tstr = scan.next();\n\t\t\tstr2 = scan.next();\n\t\t\t\n\t\t\ta = str.compareTo(str2);\n\t\t\t\n\t\t\tif(a > 0){\n\t\t\t\tap += 3;\n\t\t\t}else if(a == 0){\n\t\t\t\tap++;\n\t\t\t\tbp++;\n\t\t\t}else{\n\t\t\t\tbp += 3;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\tSystem.out.println(ap + \" \" + bp);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\tpublic static void main(String args[]){\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\t\t\n\t\tint n, ap, bp, a;\n\t\tString str, str2;\n\t\t\n\t\tap = 0;\n\t\tbp = 0;\n\t\t\n\t\tn = scan.nextInt();\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tstr = scan.next();\n\t\t\tstr2 = scan.next();\n\t\t\t\n\t\t\ta = str.compareTo(str2);\n\t\t\t\n\t\t\tif(a > 0){\n\t\t\t\tap += 3;\n\t\t\t}else if(a == 0){\n\t\t\t\tap++;\n\t\t\t\tbp++;\n\t\t\t}else{\n\t\t\t\tbp += 3;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\tSystem.out.println(ap + \" \" + bp);\n\t}\n}",
"Main",
"public static void main(String args[]){\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\t\t\n\t\tint n, ap, bp, a;\n\t\tString str, str2;\n\t\t\n\t\tap = 0;\n\t\tbp = 0;\n\t\t\n\t\tn = scan.nextInt();\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tstr = scan.next();\n\t\t\tstr2 = scan.next();\n\t\t\t\n\t\t\ta = str.compareTo(str2);\n\t\t\t\n\t\t\tif(a > 0){\n\t\t\t\tap += 3;\n\t\t\t}else if(a == 0){\n\t\t\t\tap++;\n\t\t\t\tbp++;\n\t\t\t}else{\n\t\t\t\tbp += 3;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\tSystem.out.println(ap + \" \" + bp);\n\t}",
"main",
"{\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\t\t\n\t\tint n, ap, bp, a;\n\t\tString str, str2;\n\t\t\n\t\tap = 0;\n\t\tbp = 0;\n\t\t\n\t\tn = scan.nextInt();\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tstr = scan.next();\n\t\t\tstr2 = scan.next();\n\t\t\t\n\t\t\ta = str.compareTo(str2);\n\t\t\t\n\t\t\tif(a > 0){\n\t\t\t\tap += 3;\n\t\t\t}else if(a == 0){\n\t\t\t\tap++;\n\t\t\t\tbp++;\n\t\t\t}else{\n\t\t\t\tbp += 3;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\tSystem.out.println(ap + \" \" + bp);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n",
"n",
"ap",
"ap",
"bp",
"bp",
"a;",
"a",
"String str",
"str",
"str2;",
"str2",
"ap = 0",
"ap",
"0",
"bp = 0",
"bp",
"0",
"n = scan.nextInt()",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i = 0; i < n; i++){\n\t\t\tstr = scan.next();\n\t\t\tstr2 = scan.next();\n\t\t\t\n\t\t\ta = str.compareTo(str2);\n\t\t\t\n\t\t\tif(a > 0){\n\t\t\t\tap += 3;\n\t\t\t}else if(a == 0){\n\t\t\t\tap++;\n\t\t\t\tbp++;\n\t\t\t}else{\n\t\t\t\tbp += 3;\n\t\t\t}\n\t\t\t\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tstr = scan.next();\n\t\t\tstr2 = scan.next();\n\t\t\t\n\t\t\ta = str.compareTo(str2);\n\t\t\t\n\t\t\tif(a > 0){\n\t\t\t\tap += 3;\n\t\t\t}else if(a == 0){\n\t\t\t\tap++;\n\t\t\t\tbp++;\n\t\t\t}else{\n\t\t\t\tbp += 3;\n\t\t\t}\n\t\t\t\n\t\t}",
"{\n\t\t\tstr = scan.next();\n\t\t\tstr2 = scan.next();\n\t\t\t\n\t\t\ta = str.compareTo(str2);\n\t\t\t\n\t\t\tif(a > 0){\n\t\t\t\tap += 3;\n\t\t\t}else if(a == 0){\n\t\t\t\tap++;\n\t\t\t\tbp++;\n\t\t\t}else{\n\t\t\t\tbp += 3;\n\t\t\t}\n\t\t\t\n\t\t}",
"str = scan.next()",
"str",
"scan.next()",
"scan.next",
"scan",
"str2 = scan.next()",
"str2",
"scan.next()",
"scan.next",
"scan",
"a = str.compareTo(str2)",
"a",
"str.compareTo(str2)",
"str.compareTo",
"str",
"str2",
"if(a > 0){\n\t\t\t\tap += 3;\n\t\t\t}else if(a == 0){\n\t\t\t\tap++;\n\t\t\t\tbp++;\n\t\t\t}else{\n\t\t\t\tbp += 3;\n\t\t\t}",
"a > 0",
"a",
"0",
"{\n\t\t\t\tap += 3;\n\t\t\t}",
"ap += 3",
"ap",
"3",
"if(a == 0){\n\t\t\t\tap++;\n\t\t\t\tbp++;\n\t\t\t}else{\n\t\t\t\tbp += 3;\n\t\t\t}",
"a == 0",
"a",
"0",
"{\n\t\t\t\tap++;\n\t\t\t\tbp++;\n\t\t\t}",
"ap++",
"ap",
"bp++",
"bp",
"{\n\t\t\t\tbp += 3;\n\t\t\t}",
"bp += 3",
"bp",
"3",
"System.out.println(ap + \" \" + bp)",
"System.out.println",
"System.out",
"System",
"System.out",
"ap + \" \" + bp",
"ap + \" \" + bp",
"ap",
"\" \"",
"bp",
"String args[]",
"args"
]
| import java.util.Scanner;
class Main {
public static void main(String args[]){
Scanner scan = new Scanner(System.in);
int n, ap, bp, a;
String str, str2;
ap = 0;
bp = 0;
n = scan.nextInt();
for(int i = 0; i < n; i++){
str = scan.next();
str2 = scan.next();
a = str.compareTo(str2);
if(a > 0){
ap += 3;
}else if(a == 0){
ap++;
bp++;
}else{
bp += 3;
}
}
System.out.println(ap + " " + bp);
}
} |
[
7,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
30,
40,
13,
40,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
87,
2
],
[
87,
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
],
[
5,
16
],
[
16,
17
],
[
5,
18
],
[
18,
19
],
[
18,
20
],
[
5,
21
],
[
21,
22
],
[
21,
23
],
[
5,
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
],
[
45,
46
],
[
36,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
48,
53
],
[
47,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
47,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
59,
64
],
[
58,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
58,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
72,
73
],
[
5,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
80,
80
],
[
80,
81
],
[
80,
82
],
[
80,
83
],
[
3,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
]
| [
"public class Main {\n\tpublic static void main(String[] args){\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tString taro;\n\t\tString hana;\n\t\tint countt = 0;\n\t\tint counth = 0;\n\n\t\tfor(int i = 0; i < n;i++){\n\t\t\ttaro = scan.next();\n\t\t\thana = scan.next();\n\n\t\t\tif(taro.compareTo(hana) > 0){\n\t\t\t\tcountt += 3;\n\t\t\t}else if(taro.compareTo(hana) < 0){\n\t\t\t\tcounth += 3;\n\t\t\t\t}else{\n\t\t\t\t\tcountt++;\n\t\t\t\t\tcounth++;\n\t\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(countt +\" \"+counth);\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tString taro;\n\t\tString hana;\n\t\tint countt = 0;\n\t\tint counth = 0;\n\n\t\tfor(int i = 0; i < n;i++){\n\t\t\ttaro = scan.next();\n\t\t\thana = scan.next();\n\n\t\t\tif(taro.compareTo(hana) > 0){\n\t\t\t\tcountt += 3;\n\t\t\t}else if(taro.compareTo(hana) < 0){\n\t\t\t\tcounth += 3;\n\t\t\t\t}else{\n\t\t\t\t\tcountt++;\n\t\t\t\t\tcounth++;\n\t\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(countt +\" \"+counth);\n\t}\n\n}",
"Main",
"public static void main(String[] args){\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tString taro;\n\t\tString hana;\n\t\tint countt = 0;\n\t\tint counth = 0;\n\n\t\tfor(int i = 0; i < n;i++){\n\t\t\ttaro = scan.next();\n\t\t\thana = scan.next();\n\n\t\t\tif(taro.compareTo(hana) > 0){\n\t\t\t\tcountt += 3;\n\t\t\t}else if(taro.compareTo(hana) < 0){\n\t\t\t\tcounth += 3;\n\t\t\t\t}else{\n\t\t\t\t\tcountt++;\n\t\t\t\t\tcounth++;\n\t\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(countt +\" \"+counth);\n\t}",
"main",
"{\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tString taro;\n\t\tString hana;\n\t\tint countt = 0;\n\t\tint counth = 0;\n\n\t\tfor(int i = 0; i < n;i++){\n\t\t\ttaro = scan.next();\n\t\t\thana = scan.next();\n\n\t\t\tif(taro.compareTo(hana) > 0){\n\t\t\t\tcountt += 3;\n\t\t\t}else if(taro.compareTo(hana) < 0){\n\t\t\t\tcounth += 3;\n\t\t\t\t}else{\n\t\t\t\t\tcountt++;\n\t\t\t\t\tcounth++;\n\t\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(countt +\" \"+counth);\n\t}",
"java.util.Scanner scan = new java.util.Scanner(System.in);",
"scan",
"new java.util.Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String taro;",
"taro",
"String hana;",
"hana",
"int countt = 0;",
"countt",
"0",
"int counth = 0;",
"counth",
"0",
"for(int i = 0; i < n;i++){\n\t\t\ttaro = scan.next();\n\t\t\thana = scan.next();\n\n\t\t\tif(taro.compareTo(hana) > 0){\n\t\t\t\tcountt += 3;\n\t\t\t}else if(taro.compareTo(hana) < 0){\n\t\t\t\tcounth += 3;\n\t\t\t\t}else{\n\t\t\t\t\tcountt++;\n\t\t\t\t\tcounth++;\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\ttaro = scan.next();\n\t\t\thana = scan.next();\n\n\t\t\tif(taro.compareTo(hana) > 0){\n\t\t\t\tcountt += 3;\n\t\t\t}else if(taro.compareTo(hana) < 0){\n\t\t\t\tcounth += 3;\n\t\t\t\t}else{\n\t\t\t\t\tcountt++;\n\t\t\t\t\tcounth++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\ttaro = scan.next();\n\t\t\thana = scan.next();\n\n\t\t\tif(taro.compareTo(hana) > 0){\n\t\t\t\tcountt += 3;\n\t\t\t}else if(taro.compareTo(hana) < 0){\n\t\t\t\tcounth += 3;\n\t\t\t\t}else{\n\t\t\t\t\tcountt++;\n\t\t\t\t\tcounth++;\n\t\t\t\t}\n\t\t\t}",
"taro = scan.next()",
"taro",
"scan.next()",
"scan.next",
"scan",
"hana = scan.next()",
"hana",
"scan.next()",
"scan.next",
"scan",
"if(taro.compareTo(hana) > 0){\n\t\t\t\tcountt += 3;\n\t\t\t}else if(taro.compareTo(hana) < 0){\n\t\t\t\tcounth += 3;\n\t\t\t\t}else{\n\t\t\t\t\tcountt++;\n\t\t\t\t\tcounth++;\n\t\t\t\t}",
"taro.compareTo(hana) > 0",
"taro.compareTo(hana)",
"taro.compareTo",
"taro",
"hana",
"0",
"{\n\t\t\t\tcountt += 3;\n\t\t\t}",
"countt += 3",
"countt",
"3",
"if(taro.compareTo(hana) < 0){\n\t\t\t\tcounth += 3;\n\t\t\t\t}else{\n\t\t\t\t\tcountt++;\n\t\t\t\t\tcounth++;\n\t\t\t\t}",
"taro.compareTo(hana) < 0",
"taro.compareTo(hana)",
"taro.compareTo",
"taro",
"hana",
"0",
"{\n\t\t\t\tcounth += 3;\n\t\t\t\t}",
"counth += 3",
"counth",
"3",
"{\n\t\t\t\t\tcountt++;\n\t\t\t\t\tcounth++;\n\t\t\t\t}",
"countt++",
"countt",
"counth++",
"counth",
"System.out.println(countt +\" \"+counth)",
"System.out.println",
"System.out",
"System",
"System.out",
"countt +\" \"+counth",
"countt +\" \"+counth",
"countt",
"\" \"",
"counth",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tString taro;\n\t\tString hana;\n\t\tint countt = 0;\n\t\tint counth = 0;\n\n\t\tfor(int i = 0; i < n;i++){\n\t\t\ttaro = scan.next();\n\t\t\thana = scan.next();\n\n\t\t\tif(taro.compareTo(hana) > 0){\n\t\t\t\tcountt += 3;\n\t\t\t}else if(taro.compareTo(hana) < 0){\n\t\t\t\tcounth += 3;\n\t\t\t\t}else{\n\t\t\t\t\tcountt++;\n\t\t\t\t\tcounth++;\n\t\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(countt +\" \"+counth);\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tString taro;\n\t\tString hana;\n\t\tint countt = 0;\n\t\tint counth = 0;\n\n\t\tfor(int i = 0; i < n;i++){\n\t\t\ttaro = scan.next();\n\t\t\thana = scan.next();\n\n\t\t\tif(taro.compareTo(hana) > 0){\n\t\t\t\tcountt += 3;\n\t\t\t}else if(taro.compareTo(hana) < 0){\n\t\t\t\tcounth += 3;\n\t\t\t\t}else{\n\t\t\t\t\tcountt++;\n\t\t\t\t\tcounth++;\n\t\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(countt +\" \"+counth);\n\t}\n\n}",
"Main"
]
| public class Main {
public static void main(String[] args){
java.util.Scanner scan = new java.util.Scanner(System.in);
int n = scan.nextInt();
String taro;
String hana;
int countt = 0;
int counth = 0;
for(int i = 0; i < n;i++){
taro = scan.next();
hana = scan.next();
if(taro.compareTo(hana) > 0){
countt += 3;
}else if(taro.compareTo(hana) < 0){
counth += 3;
}else{
countt++;
counth++;
}
}
System.out.println(countt +" "+counth);
}
} |
[
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,
4,
18,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
14,
4,
18,
18,
13,
17,
18,
13,
17,
30,
40,
13,
40,
13,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
2,
13,
4,
18,
18,
13,
17,
2,
13,
4,
18,
18,
13,
17,
1,
40,
13,
30,
30,
14,
2,
4,
18,
18,
13,
17,
13,
4,
18,
18,
13,
17,
13,
9,
14,
2,
4,
18,
18,
13,
17,
13,
4,
18,
18,
13,
17,
13,
30,
0,
13,
17,
0,
13,
17,
3,
14,
2,
4,
18,
18,
13,
17,
13,
4,
18,
18,
13,
17,
13,
30,
0,
13,
17,
0,
13,
17,
3,
14,
2,
13,
17,
30,
14,
2,
4,
18,
18,
13,
17,
4,
18,
18,
13,
17,
0,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
17,
13,
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
],
[
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
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
20,
32
],
[
32,
33
],
[
32,
34
],
[
20,
35
],
[
35,
36
],
[
35,
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
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
50,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
62,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
74,
75
],
[
62,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
85,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
80,
100
],
[
100,
101
],
[
101,
102
],
[
80,
103
],
[
104,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
106,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
105,
119
],
[
105,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
121,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
120,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
138,
139
],
[
138,
140
],
[
134,
141
],
[
120,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
144,
149
],
[
143,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
150,
155
],
[
142,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
156,
160
],
[
160,
161
],
[
160,
162
],
[
156,
163
],
[
76,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
170,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
169,
181
],
[
181,
182
],
[
181,
183
],
[
169,
184
],
[
184,
185
],
[
184,
186
],
[
20,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
187,
192
],
[
187,
193
],
[
187,
194
],
[
18,
195
],
[
195,
196
]
]
| [
"import java.io.BufferedReader;\nimport java.io.FileReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) throws IOException {\n\n\t\t BufferedReader br = new BufferedReader(new\n\t\t InputStreamReader(System.in));\n\t\t//BufferedReader br = new BufferedReader(new FileReader(\"sample.txt\"));\n\t\tint x = Integer.parseInt(br.readLine());\n\t\tint t = 0, h = 0;\n\t\tfor (int i = 0; i < x; i++) {\n\t\t\t//System.out.println(i+\":\"+t+\" \" +h);\n\t\t\tString str = br.readLine();\n\t\t\tString[] fight = str.split(\" \");\n\t\t\tif (fight[0].equals(fight[1])) {\n\t\t\t\tt++;\n\t\t\t\th++;\n\t\t\t} else {\n\t\t\t\tboolean bl=false;\n\t\t\t\tfor (int l = 0;(l<fight[0].length())&&(l<fight[1].length()); l++) {\n\n\t\t\t\t\tif (fight[0].charAt(l) == fight[1].charAt(l))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\telse if (fight[0].charAt(l) > fight[1].charAt(l)) {\n\t\t\t\t\t\tt += 3;bl=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if(fight[0].charAt(l) < fight[1].charAt(l)){\n\t\t\t\t\t\th += 3;bl=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}if(bl==false){\n\t\t\t\t\tif(fight[0].length()>fight[1].length())t+=3;\n\t\t\t\t\telse h+=3;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.printf(\"%d %d%n\", t, h);\n\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.FileReader;",
"FileReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\tpublic static void main(String[] args) throws IOException {\n\n\t\t BufferedReader br = new BufferedReader(new\n\t\t InputStreamReader(System.in));\n\t\t//BufferedReader br = new BufferedReader(new FileReader(\"sample.txt\"));\n\t\tint x = Integer.parseInt(br.readLine());\n\t\tint t = 0, h = 0;\n\t\tfor (int i = 0; i < x; i++) {\n\t\t\t//System.out.println(i+\":\"+t+\" \" +h);\n\t\t\tString str = br.readLine();\n\t\t\tString[] fight = str.split(\" \");\n\t\t\tif (fight[0].equals(fight[1])) {\n\t\t\t\tt++;\n\t\t\t\th++;\n\t\t\t} else {\n\t\t\t\tboolean bl=false;\n\t\t\t\tfor (int l = 0;(l<fight[0].length())&&(l<fight[1].length()); l++) {\n\n\t\t\t\t\tif (fight[0].charAt(l) == fight[1].charAt(l))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\telse if (fight[0].charAt(l) > fight[1].charAt(l)) {\n\t\t\t\t\t\tt += 3;bl=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if(fight[0].charAt(l) < fight[1].charAt(l)){\n\t\t\t\t\t\th += 3;bl=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}if(bl==false){\n\t\t\t\t\tif(fight[0].length()>fight[1].length())t+=3;\n\t\t\t\t\telse h+=3;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.printf(\"%d %d%n\", t, h);\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\n\t\t BufferedReader br = new BufferedReader(new\n\t\t InputStreamReader(System.in));\n\t\t//BufferedReader br = new BufferedReader(new FileReader(\"sample.txt\"));\n\t\tint x = Integer.parseInt(br.readLine());\n\t\tint t = 0, h = 0;\n\t\tfor (int i = 0; i < x; i++) {\n\t\t\t//System.out.println(i+\":\"+t+\" \" +h);\n\t\t\tString str = br.readLine();\n\t\t\tString[] fight = str.split(\" \");\n\t\t\tif (fight[0].equals(fight[1])) {\n\t\t\t\tt++;\n\t\t\t\th++;\n\t\t\t} else {\n\t\t\t\tboolean bl=false;\n\t\t\t\tfor (int l = 0;(l<fight[0].length())&&(l<fight[1].length()); l++) {\n\n\t\t\t\t\tif (fight[0].charAt(l) == fight[1].charAt(l))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\telse if (fight[0].charAt(l) > fight[1].charAt(l)) {\n\t\t\t\t\t\tt += 3;bl=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if(fight[0].charAt(l) < fight[1].charAt(l)){\n\t\t\t\t\t\th += 3;bl=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}if(bl==false){\n\t\t\t\t\tif(fight[0].length()>fight[1].length())t+=3;\n\t\t\t\t\telse h+=3;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.printf(\"%d %d%n\", t, h);\n\n\t}",
"main",
"{\n\n\t\t BufferedReader br = new BufferedReader(new\n\t\t InputStreamReader(System.in));\n\t\t//BufferedReader br = new BufferedReader(new FileReader(\"sample.txt\"));\n\t\tint x = Integer.parseInt(br.readLine());\n\t\tint t = 0, h = 0;\n\t\tfor (int i = 0; i < x; i++) {\n\t\t\t//System.out.println(i+\":\"+t+\" \" +h);\n\t\t\tString str = br.readLine();\n\t\t\tString[] fight = str.split(\" \");\n\t\t\tif (fight[0].equals(fight[1])) {\n\t\t\t\tt++;\n\t\t\t\th++;\n\t\t\t} else {\n\t\t\t\tboolean bl=false;\n\t\t\t\tfor (int l = 0;(l<fight[0].length())&&(l<fight[1].length()); l++) {\n\n\t\t\t\t\tif (fight[0].charAt(l) == fight[1].charAt(l))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\telse if (fight[0].charAt(l) > fight[1].charAt(l)) {\n\t\t\t\t\t\tt += 3;bl=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if(fight[0].charAt(l) < fight[1].charAt(l)){\n\t\t\t\t\t\th += 3;bl=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}if(bl==false){\n\t\t\t\t\tif(fight[0].length()>fight[1].length())t+=3;\n\t\t\t\t\telse h+=3;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.printf(\"%d %d%n\", t, h);\n\n\t}",
"BufferedReader br = new BufferedReader(new\n\t\t InputStreamReader(System.in));",
"br",
"new BufferedReader(new\n\t\t InputStreamReader(System.in))",
"int x = Integer.parseInt(br.readLine());",
"x",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int t = 0",
"t",
"0",
"h = 0;",
"h",
"0",
"for (int i = 0; i < x; i++) {\n\t\t\t//System.out.println(i+\":\"+t+\" \" +h);\n\t\t\tString str = br.readLine();\n\t\t\tString[] fight = str.split(\" \");\n\t\t\tif (fight[0].equals(fight[1])) {\n\t\t\t\tt++;\n\t\t\t\th++;\n\t\t\t} else {\n\t\t\t\tboolean bl=false;\n\t\t\t\tfor (int l = 0;(l<fight[0].length())&&(l<fight[1].length()); l++) {\n\n\t\t\t\t\tif (fight[0].charAt(l) == fight[1].charAt(l))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\telse if (fight[0].charAt(l) > fight[1].charAt(l)) {\n\t\t\t\t\t\tt += 3;bl=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if(fight[0].charAt(l) < fight[1].charAt(l)){\n\t\t\t\t\t\th += 3;bl=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}if(bl==false){\n\t\t\t\t\tif(fight[0].length()>fight[1].length())t+=3;\n\t\t\t\t\telse h+=3;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < x",
"i",
"x",
"i++",
"i++",
"i",
"{\n\t\t\t//System.out.println(i+\":\"+t+\" \" +h);\n\t\t\tString str = br.readLine();\n\t\t\tString[] fight = str.split(\" \");\n\t\t\tif (fight[0].equals(fight[1])) {\n\t\t\t\tt++;\n\t\t\t\th++;\n\t\t\t} else {\n\t\t\t\tboolean bl=false;\n\t\t\t\tfor (int l = 0;(l<fight[0].length())&&(l<fight[1].length()); l++) {\n\n\t\t\t\t\tif (fight[0].charAt(l) == fight[1].charAt(l))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\telse if (fight[0].charAt(l) > fight[1].charAt(l)) {\n\t\t\t\t\t\tt += 3;bl=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if(fight[0].charAt(l) < fight[1].charAt(l)){\n\t\t\t\t\t\th += 3;bl=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}if(bl==false){\n\t\t\t\t\tif(fight[0].length()>fight[1].length())t+=3;\n\t\t\t\t\telse h+=3;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}",
"{\n\t\t\t//System.out.println(i+\":\"+t+\" \" +h);\n\t\t\tString str = br.readLine();\n\t\t\tString[] fight = str.split(\" \");\n\t\t\tif (fight[0].equals(fight[1])) {\n\t\t\t\tt++;\n\t\t\t\th++;\n\t\t\t} else {\n\t\t\t\tboolean bl=false;\n\t\t\t\tfor (int l = 0;(l<fight[0].length())&&(l<fight[1].length()); l++) {\n\n\t\t\t\t\tif (fight[0].charAt(l) == fight[1].charAt(l))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\telse if (fight[0].charAt(l) > fight[1].charAt(l)) {\n\t\t\t\t\t\tt += 3;bl=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if(fight[0].charAt(l) < fight[1].charAt(l)){\n\t\t\t\t\t\th += 3;bl=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}if(bl==false){\n\t\t\t\t\tif(fight[0].length()>fight[1].length())t+=3;\n\t\t\t\t\telse h+=3;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}",
"String str = br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"String[] fight = str.split(\" \");",
"fight",
"str.split(\" \")",
"str.split",
"str",
"\" \"",
"if (fight[0].equals(fight[1])) {\n\t\t\t\tt++;\n\t\t\t\th++;\n\t\t\t} else {\n\t\t\t\tboolean bl=false;\n\t\t\t\tfor (int l = 0;(l<fight[0].length())&&(l<fight[1].length()); l++) {\n\n\t\t\t\t\tif (fight[0].charAt(l) == fight[1].charAt(l))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\telse if (fight[0].charAt(l) > fight[1].charAt(l)) {\n\t\t\t\t\t\tt += 3;bl=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if(fight[0].charAt(l) < fight[1].charAt(l)){\n\t\t\t\t\t\th += 3;bl=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}if(bl==false){\n\t\t\t\t\tif(fight[0].length()>fight[1].length())t+=3;\n\t\t\t\t\telse h+=3;\n\t\t\t\t}\n\n\t\t\t}",
"fight[0].equals(fight[1])",
"fight[0].equals",
"fight[0]",
"fight",
"0",
"fight[1]",
"fight",
"1",
"{\n\t\t\t\tt++;\n\t\t\t\th++;\n\t\t\t}",
"t++",
"t",
"h++",
"h",
"{\n\t\t\t\tboolean bl=false;\n\t\t\t\tfor (int l = 0;(l<fight[0].length())&&(l<fight[1].length()); l++) {\n\n\t\t\t\t\tif (fight[0].charAt(l) == fight[1].charAt(l))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\telse if (fight[0].charAt(l) > fight[1].charAt(l)) {\n\t\t\t\t\t\tt += 3;bl=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if(fight[0].charAt(l) < fight[1].charAt(l)){\n\t\t\t\t\t\th += 3;bl=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}if(bl==false){\n\t\t\t\t\tif(fight[0].length()>fight[1].length())t+=3;\n\t\t\t\t\telse h+=3;\n\t\t\t\t}\n\n\t\t\t}",
"boolean bl=false;",
"bl",
"false",
"for (int l = 0;(l<fight[0].length())&&(l<fight[1].length()); l++) {\n\n\t\t\t\t\tif (fight[0].charAt(l) == fight[1].charAt(l))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\telse if (fight[0].charAt(l) > fight[1].charAt(l)) {\n\t\t\t\t\t\tt += 3;bl=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if(fight[0].charAt(l) < fight[1].charAt(l)){\n\t\t\t\t\t\th += 3;bl=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"int l = 0;",
"int l = 0;",
"l",
"0",
"(l<fight[0].length())&&(l<fight[1].length())",
"(l<fight[0].length())",
"l",
"fight[0].length()",
"fight[0].length",
"fight[0]",
"fight",
"0",
"(l<fight[1].length())",
"l",
"fight[1].length()",
"fight[1].length",
"fight[1]",
"fight",
"1",
"l++",
"l++",
"l",
"{\n\n\t\t\t\t\tif (fight[0].charAt(l) == fight[1].charAt(l))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\telse if (fight[0].charAt(l) > fight[1].charAt(l)) {\n\t\t\t\t\t\tt += 3;bl=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if(fight[0].charAt(l) < fight[1].charAt(l)){\n\t\t\t\t\t\th += 3;bl=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\n\t\t\t\t\tif (fight[0].charAt(l) == fight[1].charAt(l))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\telse if (fight[0].charAt(l) > fight[1].charAt(l)) {\n\t\t\t\t\t\tt += 3;bl=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if(fight[0].charAt(l) < fight[1].charAt(l)){\n\t\t\t\t\t\th += 3;bl=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"if (fight[0].charAt(l) == fight[1].charAt(l))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\telse if (fight[0].charAt(l) > fight[1].charAt(l)) {\n\t\t\t\t\t\tt += 3;bl=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if(fight[0].charAt(l) < fight[1].charAt(l)){\n\t\t\t\t\t\th += 3;bl=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"fight[0].charAt(l) == fight[1].charAt(l)",
"fight[0].charAt(l)",
"fight[0].charAt",
"fight[0]",
"fight",
"0",
"l",
"fight[1].charAt(l)",
"fight[1].charAt",
"fight[1]",
"fight",
"1",
"l",
"continue;",
"if (fight[0].charAt(l) > fight[1].charAt(l)) {\n\t\t\t\t\t\tt += 3;bl=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if(fight[0].charAt(l) < fight[1].charAt(l)){\n\t\t\t\t\t\th += 3;bl=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"fight[0].charAt(l) > fight[1].charAt(l)",
"fight[0].charAt(l)",
"fight[0].charAt",
"fight[0]",
"fight",
"0",
"l",
"fight[1].charAt(l)",
"fight[1].charAt",
"fight[1]",
"fight",
"1",
"l",
"{\n\t\t\t\t\t\tt += 3;bl=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"t += 3",
"t",
"3",
"bl=true",
"bl",
"true",
"break;",
"if(fight[0].charAt(l) < fight[1].charAt(l)){\n\t\t\t\t\t\th += 3;bl=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"fight[0].charAt(l) < fight[1].charAt(l)",
"fight[0].charAt(l)",
"fight[0].charAt",
"fight[0]",
"fight",
"0",
"l",
"fight[1].charAt(l)",
"fight[1].charAt",
"fight[1]",
"fight",
"1",
"l",
"{\n\t\t\t\t\t\th += 3;bl=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"h += 3",
"h",
"3",
"bl=true",
"bl",
"true",
"break;",
"if(bl==false){\n\t\t\t\t\tif(fight[0].length()>fight[1].length())t+=3;\n\t\t\t\t\telse h+=3;\n\t\t\t\t}",
"bl==false",
"bl",
"false",
"{\n\t\t\t\t\tif(fight[0].length()>fight[1].length())t+=3;\n\t\t\t\t\telse h+=3;\n\t\t\t\t}",
"if(fight[0].length()>fight[1].length())t+=3;\n\t\t\t\t\telse h+=3;",
"fight[0].length()>fight[1].length()",
"fight[0].length()",
"fight[0].length",
"fight[0]",
"fight",
"0",
"fight[1].length()",
"fight[1].length",
"fight[1]",
"fight",
"1",
"t+=3",
"t",
"3",
"h+=3",
"h",
"3",
"System.out.printf(\"%d %d%n\", t, h)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d %d%n\"",
"t",
"h",
"String[] args",
"args"
]
| import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new
InputStreamReader(System.in));
//BufferedReader br = new BufferedReader(new FileReader("sample.txt"));
int x = Integer.parseInt(br.readLine());
int t = 0, h = 0;
for (int i = 0; i < x; i++) {
//System.out.println(i+":"+t+" " +h);
String str = br.readLine();
String[] fight = str.split(" ");
if (fight[0].equals(fight[1])) {
t++;
h++;
} else {
boolean bl=false;
for (int l = 0;(l<fight[0].length())&&(l<fight[1].length()); l++) {
if (fight[0].charAt(l) == fight[1].charAt(l))
continue;
else if (fight[0].charAt(l) > fight[1].charAt(l)) {
t += 3;bl=true;
break;
} else if(fight[0].charAt(l) < fight[1].charAt(l)){
h += 3;bl=true;
break;
}
}if(bl==false){
if(fight[0].length()>fight[1].length())t+=3;
else h+=3;
}
}
}
System.out.printf("%d %d%n", t, h);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
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,
4,
18,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
13,
17,
14,
2,
13,
17,
30,
40,
13,
40,
13,
30,
0,
13,
17,
4,
18,
18,
13,
13,
17,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
81,
5
],
[
81,
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
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
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
],
[
43,
44
],
[
44,
45
],
[
41,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
64,
65
],
[
57,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
8,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
70,
76
],
[
70,
77
],
[
6,
78
],
[
78,
79
],
[
0,
80
],
[
80,
81
],
[
80,
82
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint taro = 0;\n\t\tint hanako = 0;\n\t\tint n = Integer.parseInt(s.next());\n\t\tfor (int i = 0; i < n; ++i) {\n\t\t\tint c = s.next().compareTo(s.next());\n\t\t\tif (c > 0) {\n\t\t\t\ttaro += 3;\n\t\t\t} else if (c == 0) {\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\n\t\t\t} else {\n\t\t\t\thanako += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\", taro, hanako);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint taro = 0;\n\t\tint hanako = 0;\n\t\tint n = Integer.parseInt(s.next());\n\t\tfor (int i = 0; i < n; ++i) {\n\t\t\tint c = s.next().compareTo(s.next());\n\t\t\tif (c > 0) {\n\t\t\t\ttaro += 3;\n\t\t\t} else if (c == 0) {\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\n\t\t\t} else {\n\t\t\t\thanako += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\", taro, hanako);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint taro = 0;\n\t\tint hanako = 0;\n\t\tint n = Integer.parseInt(s.next());\n\t\tfor (int i = 0; i < n; ++i) {\n\t\t\tint c = s.next().compareTo(s.next());\n\t\t\tif (c > 0) {\n\t\t\t\ttaro += 3;\n\t\t\t} else if (c == 0) {\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\n\t\t\t} else {\n\t\t\t\thanako += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\", taro, hanako);\n\t}",
"main",
"{\n\t\tScanner s = new Scanner(System.in);\n\t\tint taro = 0;\n\t\tint hanako = 0;\n\t\tint n = Integer.parseInt(s.next());\n\t\tfor (int i = 0; i < n; ++i) {\n\t\t\tint c = s.next().compareTo(s.next());\n\t\t\tif (c > 0) {\n\t\t\t\ttaro += 3;\n\t\t\t} else if (c == 0) {\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\n\t\t\t} else {\n\t\t\t\thanako += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\", taro, hanako);\n\t}",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int taro = 0;",
"taro",
"0",
"int hanako = 0;",
"hanako",
"0",
"int n = Integer.parseInt(s.next());",
"n",
"Integer.parseInt(s.next())",
"Integer.parseInt",
"Integer",
"s.next()",
"s.next",
"s",
"for (int i = 0; i < n; ++i) {\n\t\t\tint c = s.next().compareTo(s.next());\n\t\t\tif (c > 0) {\n\t\t\t\ttaro += 3;\n\t\t\t} else if (c == 0) {\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\n\t\t\t} else {\n\t\t\t\thanako += 3;\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\tint c = s.next().compareTo(s.next());\n\t\t\tif (c > 0) {\n\t\t\t\ttaro += 3;\n\t\t\t} else if (c == 0) {\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\n\t\t\t} else {\n\t\t\t\thanako += 3;\n\t\t\t}\n\t\t}",
"{\n\t\t\tint c = s.next().compareTo(s.next());\n\t\t\tif (c > 0) {\n\t\t\t\ttaro += 3;\n\t\t\t} else if (c == 0) {\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\n\t\t\t} else {\n\t\t\t\thanako += 3;\n\t\t\t}\n\t\t}",
"int c = s.next().compareTo(s.next());",
"c",
"s.next().compareTo(s.next())",
"s.next().compareTo",
"s.next()",
"s.next",
"s",
"s.next()",
"s.next",
"s",
"if (c > 0) {\n\t\t\t\ttaro += 3;\n\t\t\t} else if (c == 0) {\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\n\t\t\t} else {\n\t\t\t\thanako += 3;\n\t\t\t}",
"c > 0",
"c",
"0",
"{\n\t\t\t\ttaro += 3;\n\t\t\t}",
"taro += 3",
"taro",
"3",
"if (c == 0) {\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\n\t\t\t} else {\n\t\t\t\thanako += 3;\n\t\t\t}",
"c == 0",
"c",
"0",
"{\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\n\t\t\t}",
"taro++",
"taro",
"hanako++",
"hanako",
"{\n\t\t\t\thanako += 3;\n\t\t\t}",
"hanako += 3",
"hanako",
"3",
"System.out.printf(\"%d %d\\n\", taro, hanako)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d %d\\n\"",
"taro",
"hanako",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint taro = 0;\n\t\tint hanako = 0;\n\t\tint n = Integer.parseInt(s.next());\n\t\tfor (int i = 0; i < n; ++i) {\n\t\t\tint c = s.next().compareTo(s.next());\n\t\t\tif (c > 0) {\n\t\t\t\ttaro += 3;\n\t\t\t} else if (c == 0) {\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\n\t\t\t} else {\n\t\t\t\thanako += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\", taro, hanako);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint taro = 0;\n\t\tint hanako = 0;\n\t\tint n = Integer.parseInt(s.next());\n\t\tfor (int i = 0; i < n; ++i) {\n\t\t\tint c = s.next().compareTo(s.next());\n\t\t\tif (c > 0) {\n\t\t\t\ttaro += 3;\n\t\t\t} else if (c == 0) {\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\n\t\t\t} else {\n\t\t\t\thanako += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\", taro, hanako);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int taro = 0;
int hanako = 0;
int n = Integer.parseInt(s.next());
for (int i = 0; i < n; ++i) {
int c = s.next().compareTo(s.next());
if (c > 0) {
taro += 3;
} else if (c == 0) {
taro++;
hanako++;
} else {
hanako += 3;
}
}
System.out.printf("%d %d\n", taro, hanako);
}
} |
[
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,
42,
2,
13,
13,
30,
40,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
4,
18,
13,
17,
41,
13,
4,
18,
13,
2,
4,
18,
13,
17,
17,
14,
2,
4,
18,
13,
13,
17,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
0,
13,
17,
30,
40,
13,
40,
13,
4,
18,
18,
13,
13,
2,
2,
13,
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
],
[
106,
11
],
[
106,
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
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
39,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
39,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
62,
67
],
[
39,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
69,
74
],
[
68,
75
],
[
75,
76
],
[
75,
77
],
[
68,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
79,
84
],
[
78,
85
],
[
85,
86
],
[
85,
87
],
[
78,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
91,
92
],
[
14,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
99,
99
],
[
99,
100
],
[
99,
101
],
[
99,
102
],
[
12,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(input.readLine());\n\t\tint i = 0 , taroPo = 0 , hanakoPo = 0 ;\n\t\twhile(i != n){\n\t\t\ti++;\n\t\t\tString str = input.readLine();\n\t\t\tString taro = str.substring(0,str.indexOf(' '));\n\t\t\tString hanako = str.substring(str.indexOf(' ') +1);\n\t\t\t\n\t\t\tif(taro.compareTo(hanako) < 0) hanakoPo += 3;\n\t\t\telse if(taro.compareTo(hanako) > 0) taroPo += 3;\n\t\t\telse { \n\t\t\t\ttaroPo ++;\n\t\t\t\thanakoPo ++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(taroPo + \" \" + hanakoPo);\n\t\t\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\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(input.readLine());\n\t\tint i = 0 , taroPo = 0 , hanakoPo = 0 ;\n\t\twhile(i != n){\n\t\t\ti++;\n\t\t\tString str = input.readLine();\n\t\t\tString taro = str.substring(0,str.indexOf(' '));\n\t\t\tString hanako = str.substring(str.indexOf(' ') +1);\n\t\t\t\n\t\t\tif(taro.compareTo(hanako) < 0) hanakoPo += 3;\n\t\t\telse if(taro.compareTo(hanako) > 0) taroPo += 3;\n\t\t\telse { \n\t\t\t\ttaroPo ++;\n\t\t\t\thanakoPo ++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(taroPo + \" \" + hanakoPo);\n\t\t\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(input.readLine());\n\t\tint i = 0 , taroPo = 0 , hanakoPo = 0 ;\n\t\twhile(i != n){\n\t\t\ti++;\n\t\t\tString str = input.readLine();\n\t\t\tString taro = str.substring(0,str.indexOf(' '));\n\t\t\tString hanako = str.substring(str.indexOf(' ') +1);\n\t\t\t\n\t\t\tif(taro.compareTo(hanako) < 0) hanakoPo += 3;\n\t\t\telse if(taro.compareTo(hanako) > 0) taroPo += 3;\n\t\t\telse { \n\t\t\t\ttaroPo ++;\n\t\t\t\thanakoPo ++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(taroPo + \" \" + hanakoPo);\n\t\t\n\t}",
"main",
"{\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(input.readLine());\n\t\tint i = 0 , taroPo = 0 , hanakoPo = 0 ;\n\t\twhile(i != n){\n\t\t\ti++;\n\t\t\tString str = input.readLine();\n\t\t\tString taro = str.substring(0,str.indexOf(' '));\n\t\t\tString hanako = str.substring(str.indexOf(' ') +1);\n\t\t\t\n\t\t\tif(taro.compareTo(hanako) < 0) hanakoPo += 3;\n\t\t\telse if(taro.compareTo(hanako) > 0) taroPo += 3;\n\t\t\telse { \n\t\t\t\ttaroPo ++;\n\t\t\t\thanakoPo ++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(taroPo + \" \" + hanakoPo);\n\t\t\n\t}",
"BufferedReader input = new BufferedReader(new InputStreamReader(System.in));",
"input",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(input.readLine());",
"n",
"Integer.parseInt(input.readLine())",
"Integer.parseInt",
"Integer",
"input.readLine()",
"input.readLine",
"input",
"int i = 0",
"i",
"0",
"taroPo = 0",
"taroPo",
"0",
"hanakoPo = 0 ;",
"hanakoPo",
"0",
"while(i != n){\n\t\t\ti++;\n\t\t\tString str = input.readLine();\n\t\t\tString taro = str.substring(0,str.indexOf(' '));\n\t\t\tString hanako = str.substring(str.indexOf(' ') +1);\n\t\t\t\n\t\t\tif(taro.compareTo(hanako) < 0) hanakoPo += 3;\n\t\t\telse if(taro.compareTo(hanako) > 0) taroPo += 3;\n\t\t\telse { \n\t\t\t\ttaroPo ++;\n\t\t\t\thanakoPo ++;\n\t\t\t}\n\t\t}",
"i != n",
"i",
"n",
"{\n\t\t\ti++;\n\t\t\tString str = input.readLine();\n\t\t\tString taro = str.substring(0,str.indexOf(' '));\n\t\t\tString hanako = str.substring(str.indexOf(' ') +1);\n\t\t\t\n\t\t\tif(taro.compareTo(hanako) < 0) hanakoPo += 3;\n\t\t\telse if(taro.compareTo(hanako) > 0) taroPo += 3;\n\t\t\telse { \n\t\t\t\ttaroPo ++;\n\t\t\t\thanakoPo ++;\n\t\t\t}\n\t\t}",
"i++",
"i",
"String str = input.readLine();",
"str",
"input.readLine()",
"input.readLine",
"input",
"String taro = str.substring(0,str.indexOf(' '));",
"taro",
"str.substring(0,str.indexOf(' '))",
"str.substring",
"str",
"0",
"str.indexOf(' ')",
"str.indexOf",
"str",
"' '",
"String hanako = str.substring(str.indexOf(' ') +1);",
"hanako",
"str.substring(str.indexOf(' ') +1)",
"str.substring",
"str",
"str.indexOf(' ') +1",
"str.indexOf(' ')",
"str.indexOf",
"str",
"' '",
"1",
"if(taro.compareTo(hanako) < 0) hanakoPo += 3;\n\t\t\telse if(taro.compareTo(hanako) > 0) taroPo += 3;\n\t\t\telse { \n\t\t\t\ttaroPo ++;\n\t\t\t\thanakoPo ++;\n\t\t\t}",
"taro.compareTo(hanako) < 0",
"taro.compareTo(hanako)",
"taro.compareTo",
"taro",
"hanako",
"0",
"hanakoPo += 3",
"hanakoPo",
"3",
"if(taro.compareTo(hanako) > 0) taroPo += 3;\n\t\t\telse { \n\t\t\t\ttaroPo ++;\n\t\t\t\thanakoPo ++;\n\t\t\t}",
"taro.compareTo(hanako) > 0",
"taro.compareTo(hanako)",
"taro.compareTo",
"taro",
"hanako",
"0",
"taroPo += 3",
"taroPo",
"3",
"{ \n\t\t\t\ttaroPo ++;\n\t\t\t\thanakoPo ++;\n\t\t\t}",
"taroPo ++",
"taroPo",
"hanakoPo ++",
"hanakoPo",
"System.out.println(taroPo + \" \" + hanakoPo)",
"System.out.println",
"System.out",
"System",
"System.out",
"taroPo + \" \" + hanakoPo",
"taroPo + \" \" + hanakoPo",
"taroPo",
"\" \"",
"hanakoPo",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(input.readLine());\n\t\tint i = 0 , taroPo = 0 , hanakoPo = 0 ;\n\t\twhile(i != n){\n\t\t\ti++;\n\t\t\tString str = input.readLine();\n\t\t\tString taro = str.substring(0,str.indexOf(' '));\n\t\t\tString hanako = str.substring(str.indexOf(' ') +1);\n\t\t\t\n\t\t\tif(taro.compareTo(hanako) < 0) hanakoPo += 3;\n\t\t\telse if(taro.compareTo(hanako) > 0) taroPo += 3;\n\t\t\telse { \n\t\t\t\ttaroPo ++;\n\t\t\t\thanakoPo ++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(taroPo + \" \" + hanakoPo);\n\t\t\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(input.readLine());\n\t\tint i = 0 , taroPo = 0 , hanakoPo = 0 ;\n\t\twhile(i != n){\n\t\t\ti++;\n\t\t\tString str = input.readLine();\n\t\t\tString taro = str.substring(0,str.indexOf(' '));\n\t\t\tString hanako = str.substring(str.indexOf(' ') +1);\n\t\t\t\n\t\t\tif(taro.compareTo(hanako) < 0) hanakoPo += 3;\n\t\t\telse if(taro.compareTo(hanako) > 0) taroPo += 3;\n\t\t\telse { \n\t\t\t\ttaroPo ++;\n\t\t\t\thanakoPo ++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(taroPo + \" \" + hanakoPo);\n\t\t\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 input = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(input.readLine());
int i = 0 , taroPo = 0 , hanakoPo = 0 ;
while(i != n){
i++;
String str = input.readLine();
String taro = str.substring(0,str.indexOf(' '));
String hanako = str.substring(str.indexOf(' ') +1);
if(taro.compareTo(hanako) < 0) hanakoPo += 3;
else if(taro.compareTo(hanako) > 0) taroPo += 3;
else {
taroPo ++;
hanakoPo ++;
}
}
System.out.println(taroPo + " " + hanakoPo);
}
} |
[
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,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
4,
18,
13,
17,
41,
13,
18,
13,
17,
41,
13,
18,
13,
17,
41,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
0,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
30,
0,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
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
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
11,
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
],
[
48,
49
],
[
49,
50
],
[
46,
51
],
[
43,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
43,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
43,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
43,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
76,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
88,
90
],
[
11,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
97,
97
],
[
97,
98
],
[
97,
99
],
[
97,
100
],
[
9,
101
],
[
101,
102
]
]
| [
"import java.util.*;\nimport java.io.*;\n \nclass Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int card = Integer.parseInt(br.readLine()); \n String[] str;\n int t=0;\n int h=0;\n for(int i=0; i<card; i++){\n \n str = br.readLine().split(\" \"); \n String tarou = str[0];\n String hanako = str[1];\n\n int judge = tarou.compareTo(hanako);\n \n if(judge<0){ \n h += 3; \n }else if(judge>0){ \n t += 3; \n }else{ \n h += 1; \n t += 1;\n }\n }\n System.out.println(t +\" \"+h);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int card = Integer.parseInt(br.readLine()); \n String[] str;\n int t=0;\n int h=0;\n for(int i=0; i<card; i++){\n \n str = br.readLine().split(\" \"); \n String tarou = str[0];\n String hanako = str[1];\n\n int judge = tarou.compareTo(hanako);\n \n if(judge<0){ \n h += 3; \n }else if(judge>0){ \n t += 3; \n }else{ \n h += 1; \n t += 1;\n }\n }\n System.out.println(t +\" \"+h);\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int card = Integer.parseInt(br.readLine()); \n String[] str;\n int t=0;\n int h=0;\n for(int i=0; i<card; i++){\n \n str = br.readLine().split(\" \"); \n String tarou = str[0];\n String hanako = str[1];\n\n int judge = tarou.compareTo(hanako);\n \n if(judge<0){ \n h += 3; \n }else if(judge>0){ \n t += 3; \n }else{ \n h += 1; \n t += 1;\n }\n }\n System.out.println(t +\" \"+h);\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int card = Integer.parseInt(br.readLine()); \n String[] str;\n int t=0;\n int h=0;\n for(int i=0; i<card; i++){\n \n str = br.readLine().split(\" \"); \n String tarou = str[0];\n String hanako = str[1];\n\n int judge = tarou.compareTo(hanako);\n \n if(judge<0){ \n h += 3; \n }else if(judge>0){ \n t += 3; \n }else{ \n h += 1; \n t += 1;\n }\n }\n System.out.println(t +\" \"+h);\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int card = Integer.parseInt(br.readLine());",
"card",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String[] str;",
"str",
"int t=0;",
"t",
"0",
"int h=0;",
"h",
"0",
"for(int i=0; i<card; i++){\n \n str = br.readLine().split(\" \"); \n String tarou = str[0];\n String hanako = str[1];\n\n int judge = tarou.compareTo(hanako);\n \n if(judge<0){ \n h += 3; \n }else if(judge>0){ \n t += 3; \n }else{ \n h += 1; \n t += 1;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<card",
"i",
"card",
"i++",
"i++",
"i",
"{\n \n str = br.readLine().split(\" \"); \n String tarou = str[0];\n String hanako = str[1];\n\n int judge = tarou.compareTo(hanako);\n \n if(judge<0){ \n h += 3; \n }else if(judge>0){ \n t += 3; \n }else{ \n h += 1; \n t += 1;\n }\n }",
"{\n \n str = br.readLine().split(\" \"); \n String tarou = str[0];\n String hanako = str[1];\n\n int judge = tarou.compareTo(hanako);\n \n if(judge<0){ \n h += 3; \n }else if(judge>0){ \n t += 3; \n }else{ \n h += 1; \n t += 1;\n }\n }",
"str = br.readLine().split(\" \")",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"String tarou = str[0];",
"tarou",
"str[0]",
"str",
"0",
"String hanako = str[1];",
"hanako",
"str[1]",
"str",
"1",
"int judge = tarou.compareTo(hanako);",
"judge",
"tarou.compareTo(hanako)",
"tarou.compareTo",
"tarou",
"hanako",
"if(judge<0){ \n h += 3; \n }else if(judge>0){ \n t += 3; \n }else{ \n h += 1; \n t += 1;\n }",
"judge<0",
"judge",
"0",
"{ \n h += 3; \n }",
"h += 3",
"h",
"3",
"if(judge>0){ \n t += 3; \n }else{ \n h += 1; \n t += 1;\n }",
"judge>0",
"judge",
"0",
"{ \n t += 3; \n }",
"t += 3",
"t",
"3",
"{ \n h += 1; \n t += 1;\n }",
"h += 1",
"h",
"1",
"t += 1",
"t",
"1",
"System.out.println(t +\" \"+h)",
"System.out.println",
"System.out",
"System",
"System.out",
"t +\" \"+h",
"t +\" \"+h",
"t",
"\" \"",
"h",
"String[] args",
"args"
]
| import java.util.*;
import java.io.*;
class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int card = Integer.parseInt(br.readLine());
String[] str;
int t=0;
int h=0;
for(int i=0; i<card; i++){
str = br.readLine().split(" ");
String tarou = str[0];
String hanako = str[1];
int judge = tarou.compareTo(hanako);
if(judge<0){
h += 3;
}else if(judge>0){
t += 3;
}else{
h += 1;
t += 1;
}
}
System.out.println(t +" "+h);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
41,
13,
41,
13,
17,
41,
13,
17,
0,
13,
4,
18,
13,
0,
13,
20,
13,
0,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
41,
13,
4,
18,
18,
13,
13,
18,
13,
13,
14,
2,
13,
17,
30,
0,
13,
13,
0,
13,
13,
14,
2,
13,
17,
30,
0,
13,
13,
30,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
116,
5
],
[
116,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
8,
35
],
[
35,
36
],
[
35,
37
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
8,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
43,
51
],
[
51,
52
],
[
52,
53
],
[
43,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
68,
69
],
[
55,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
55,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
88,
90
],
[
80,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
91,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
8,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
109,
109
],
[
109,
110
],
[
109,
111
],
[
109,
112
],
[
6,
113
],
[
113,
114
],
[
0,
115
],
[
115,
116
],
[
115,
117
]
]
| [
"\n\nimport java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\t/*\n\t\t * ?????????????????? [C/C++] ?????????????????? string ???????????°????¨????????????°???\n\t\t * ???????????????????????°??????????????????????????? < ??? > ??¨\n\t\t * ??????????????? == ????????¨???????????¨?????§????????????\n\t\t *\n\t\t * taro hanako\n\t\t *\n\t\t * card N; turn N; Win 3; Draw 1;\n\t\t *\n\t\t */\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// declear variable\n\t\tint cardN; // same turn;\n\t\tint win = 3, draw = 1; // point\n\t\tString taro[], hanako[]; // player hands\n\t\tint pointT = 0, pointH = 0;// player`s point\n\n\t\t/*\n\t\t * Sample Input 3\n\t\t * cat dog\n\t\t * fish fish\n\t\t * lion tiger\n\t\t * Sample Output 1 7\n\t\t */\n\n\t\t// input Card N;\n\t\tcardN = sc.nextInt(); // ex : 3\n\t\ttaro = new String[cardN];\n\t\thanako = new String[cardN];\n\n\t\t// animal name\n\t\tfor (int i = 0; i < cardN; i++) { // 3\n\t\t\ttaro[i] = sc.next();\n\t\t\thanako[i] = sc.next();\n\n\t\t\tint game = taro[i].compareToIgnoreCase(hanako[i]);\n\t\t\tif (game == 0) {\n\t\t\t\tpointT += draw;\n\t\t\t\tpointH += draw;\n\t\t\t} else if (game > 0) {\n\t\t\t\tpointT += win;\n\t\t\t} else {\n\t\t\t\tpointH += win;\n\t\t\t}\n\t\t}\n\t\t// output\n\t\tSystem.out.println(pointT + \" \" + pointH);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t/*\n\t\t * ?????????????????? [C/C++] ?????????????????? string ???????????°????¨????????????°???\n\t\t * ???????????????????????°??????????????????????????? < ??? > ??¨\n\t\t * ??????????????? == ????????¨???????????¨?????§????????????\n\t\t *\n\t\t * taro hanako\n\t\t *\n\t\t * card N; turn N; Win 3; Draw 1;\n\t\t *\n\t\t */\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// declear variable\n\t\tint cardN; // same turn;\n\t\tint win = 3, draw = 1; // point\n\t\tString taro[], hanako[]; // player hands\n\t\tint pointT = 0, pointH = 0;// player`s point\n\n\t\t/*\n\t\t * Sample Input 3\n\t\t * cat dog\n\t\t * fish fish\n\t\t * lion tiger\n\t\t * Sample Output 1 7\n\t\t */\n\n\t\t// input Card N;\n\t\tcardN = sc.nextInt(); // ex : 3\n\t\ttaro = new String[cardN];\n\t\thanako = new String[cardN];\n\n\t\t// animal name\n\t\tfor (int i = 0; i < cardN; i++) { // 3\n\t\t\ttaro[i] = sc.next();\n\t\t\thanako[i] = sc.next();\n\n\t\t\tint game = taro[i].compareToIgnoreCase(hanako[i]);\n\t\t\tif (game == 0) {\n\t\t\t\tpointT += draw;\n\t\t\t\tpointH += draw;\n\t\t\t} else if (game > 0) {\n\t\t\t\tpointT += win;\n\t\t\t} else {\n\t\t\t\tpointH += win;\n\t\t\t}\n\t\t}\n\t\t// output\n\t\tSystem.out.println(pointT + \" \" + pointH);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t/*\n\t\t * ?????????????????? [C/C++] ?????????????????? string ???????????°????¨????????????°???\n\t\t * ???????????????????????°??????????????????????????? < ??? > ??¨\n\t\t * ??????????????? == ????????¨???????????¨?????§????????????\n\t\t *\n\t\t * taro hanako\n\t\t *\n\t\t * card N; turn N; Win 3; Draw 1;\n\t\t *\n\t\t */\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// declear variable\n\t\tint cardN; // same turn;\n\t\tint win = 3, draw = 1; // point\n\t\tString taro[], hanako[]; // player hands\n\t\tint pointT = 0, pointH = 0;// player`s point\n\n\t\t/*\n\t\t * Sample Input 3\n\t\t * cat dog\n\t\t * fish fish\n\t\t * lion tiger\n\t\t * Sample Output 1 7\n\t\t */\n\n\t\t// input Card N;\n\t\tcardN = sc.nextInt(); // ex : 3\n\t\ttaro = new String[cardN];\n\t\thanako = new String[cardN];\n\n\t\t// animal name\n\t\tfor (int i = 0; i < cardN; i++) { // 3\n\t\t\ttaro[i] = sc.next();\n\t\t\thanako[i] = sc.next();\n\n\t\t\tint game = taro[i].compareToIgnoreCase(hanako[i]);\n\t\t\tif (game == 0) {\n\t\t\t\tpointT += draw;\n\t\t\t\tpointH += draw;\n\t\t\t} else if (game > 0) {\n\t\t\t\tpointT += win;\n\t\t\t} else {\n\t\t\t\tpointH += win;\n\t\t\t}\n\t\t}\n\t\t// output\n\t\tSystem.out.println(pointT + \" \" + pointH);\n\t}",
"main",
"{\n\t\t/*\n\t\t * ?????????????????? [C/C++] ?????????????????? string ???????????°????¨????????????°???\n\t\t * ???????????????????????°??????????????????????????? < ??? > ??¨\n\t\t * ??????????????? == ????????¨???????????¨?????§????????????\n\t\t *\n\t\t * taro hanako\n\t\t *\n\t\t * card N; turn N; Win 3; Draw 1;\n\t\t *\n\t\t */\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// declear variable\n\t\tint cardN; // same turn;\n\t\tint win = 3, draw = 1; // point\n\t\tString taro[], hanako[]; // player hands\n\t\tint pointT = 0, pointH = 0;// player`s point\n\n\t\t/*\n\t\t * Sample Input 3\n\t\t * cat dog\n\t\t * fish fish\n\t\t * lion tiger\n\t\t * Sample Output 1 7\n\t\t */\n\n\t\t// input Card N;\n\t\tcardN = sc.nextInt(); // ex : 3\n\t\ttaro = new String[cardN];\n\t\thanako = new String[cardN];\n\n\t\t// animal name\n\t\tfor (int i = 0; i < cardN; i++) { // 3\n\t\t\ttaro[i] = sc.next();\n\t\t\thanako[i] = sc.next();\n\n\t\t\tint game = taro[i].compareToIgnoreCase(hanako[i]);\n\t\t\tif (game == 0) {\n\t\t\t\tpointT += draw;\n\t\t\t\tpointH += draw;\n\t\t\t} else if (game > 0) {\n\t\t\t\tpointT += win;\n\t\t\t} else {\n\t\t\t\tpointH += win;\n\t\t\t}\n\t\t}\n\t\t// output\n\t\tSystem.out.println(pointT + \" \" + pointH);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int cardN;",
"cardN",
"int win = 3",
"win",
"3",
"draw = 1;",
"draw",
"1",
"String taro[]",
"taro",
"hanako[];",
"hanako",
"int pointT = 0",
"pointT",
"0",
"pointH = 0;",
"pointH",
"0",
"cardN = sc.nextInt()",
"cardN",
"sc.nextInt()",
"sc.nextInt",
"sc",
"taro = new String[cardN]",
"taro",
"new String[cardN]",
"cardN",
"hanako = new String[cardN]",
"hanako",
"new String[cardN]",
"cardN",
"for (int i = 0; i < cardN; i++) { // 3\n\t\t\ttaro[i] = sc.next();\n\t\t\thanako[i] = sc.next();\n\n\t\t\tint game = taro[i].compareToIgnoreCase(hanako[i]);\n\t\t\tif (game == 0) {\n\t\t\t\tpointT += draw;\n\t\t\t\tpointH += draw;\n\t\t\t} else if (game > 0) {\n\t\t\t\tpointT += win;\n\t\t\t} else {\n\t\t\t\tpointH += win;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < cardN",
"i",
"cardN",
"i++",
"i++",
"i",
"{ // 3\n\t\t\ttaro[i] = sc.next();\n\t\t\thanako[i] = sc.next();\n\n\t\t\tint game = taro[i].compareToIgnoreCase(hanako[i]);\n\t\t\tif (game == 0) {\n\t\t\t\tpointT += draw;\n\t\t\t\tpointH += draw;\n\t\t\t} else if (game > 0) {\n\t\t\t\tpointT += win;\n\t\t\t} else {\n\t\t\t\tpointH += win;\n\t\t\t}\n\t\t}",
"{ // 3\n\t\t\ttaro[i] = sc.next();\n\t\t\thanako[i] = sc.next();\n\n\t\t\tint game = taro[i].compareToIgnoreCase(hanako[i]);\n\t\t\tif (game == 0) {\n\t\t\t\tpointT += draw;\n\t\t\t\tpointH += draw;\n\t\t\t} else if (game > 0) {\n\t\t\t\tpointT += win;\n\t\t\t} else {\n\t\t\t\tpointH += win;\n\t\t\t}\n\t\t}",
"taro[i] = sc.next()",
"taro[i]",
"taro",
"i",
"sc.next()",
"sc.next",
"sc",
"hanako[i] = sc.next()",
"hanako[i]",
"hanako",
"i",
"sc.next()",
"sc.next",
"sc",
"int game = taro[i].compareToIgnoreCase(hanako[i]);",
"game",
"taro[i].compareToIgnoreCase(hanako[i])",
"taro[i].compareToIgnoreCase",
"taro[i]",
"taro",
"i",
"hanako[i]",
"hanako",
"i",
"if (game == 0) {\n\t\t\t\tpointT += draw;\n\t\t\t\tpointH += draw;\n\t\t\t} else if (game > 0) {\n\t\t\t\tpointT += win;\n\t\t\t} else {\n\t\t\t\tpointH += win;\n\t\t\t}",
"game == 0",
"game",
"0",
"{\n\t\t\t\tpointT += draw;\n\t\t\t\tpointH += draw;\n\t\t\t}",
"pointT += draw",
"pointT",
"draw",
"pointH += draw",
"pointH",
"draw",
"if (game > 0) {\n\t\t\t\tpointT += win;\n\t\t\t} else {\n\t\t\t\tpointH += win;\n\t\t\t}",
"game > 0",
"game",
"0",
"{\n\t\t\t\tpointT += win;\n\t\t\t}",
"pointT += win",
"pointT",
"win",
"{\n\t\t\t\tpointH += win;\n\t\t\t}",
"pointH += win",
"pointH",
"win",
"System.out.println(pointT + \" \" + pointH)",
"System.out.println",
"System.out",
"System",
"System.out",
"pointT + \" \" + pointH",
"pointT + \" \" + pointH",
"pointT",
"\" \"",
"pointH",
"String[] args",
"args",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t/*\n\t\t * ?????????????????? [C/C++] ?????????????????? string ???????????°????¨????????????°???\n\t\t * ???????????????????????°??????????????????????????? < ??? > ??¨\n\t\t * ??????????????? == ????????¨???????????¨?????§????????????\n\t\t *\n\t\t * taro hanako\n\t\t *\n\t\t * card N; turn N; Win 3; Draw 1;\n\t\t *\n\t\t */\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// declear variable\n\t\tint cardN; // same turn;\n\t\tint win = 3, draw = 1; // point\n\t\tString taro[], hanako[]; // player hands\n\t\tint pointT = 0, pointH = 0;// player`s point\n\n\t\t/*\n\t\t * Sample Input 3\n\t\t * cat dog\n\t\t * fish fish\n\t\t * lion tiger\n\t\t * Sample Output 1 7\n\t\t */\n\n\t\t// input Card N;\n\t\tcardN = sc.nextInt(); // ex : 3\n\t\ttaro = new String[cardN];\n\t\thanako = new String[cardN];\n\n\t\t// animal name\n\t\tfor (int i = 0; i < cardN; i++) { // 3\n\t\t\ttaro[i] = sc.next();\n\t\t\thanako[i] = sc.next();\n\n\t\t\tint game = taro[i].compareToIgnoreCase(hanako[i]);\n\t\t\tif (game == 0) {\n\t\t\t\tpointT += draw;\n\t\t\t\tpointH += draw;\n\t\t\t} else if (game > 0) {\n\t\t\t\tpointT += win;\n\t\t\t} else {\n\t\t\t\tpointH += win;\n\t\t\t}\n\t\t}\n\t\t// output\n\t\tSystem.out.println(pointT + \" \" + pointH);\n\t}\n}",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t/*\n\t\t * ?????????????????? [C/C++] ?????????????????? string ???????????°????¨????????????°???\n\t\t * ???????????????????????°??????????????????????????? < ??? > ??¨\n\t\t * ??????????????? == ????????¨???????????¨?????§????????????\n\t\t *\n\t\t * taro hanako\n\t\t *\n\t\t * card N; turn N; Win 3; Draw 1;\n\t\t *\n\t\t */\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// declear variable\n\t\tint cardN; // same turn;\n\t\tint win = 3, draw = 1; // point\n\t\tString taro[], hanako[]; // player hands\n\t\tint pointT = 0, pointH = 0;// player`s point\n\n\t\t/*\n\t\t * Sample Input 3\n\t\t * cat dog\n\t\t * fish fish\n\t\t * lion tiger\n\t\t * Sample Output 1 7\n\t\t */\n\n\t\t// input Card N;\n\t\tcardN = sc.nextInt(); // ex : 3\n\t\ttaro = new String[cardN];\n\t\thanako = new String[cardN];\n\n\t\t// animal name\n\t\tfor (int i = 0; i < cardN; i++) { // 3\n\t\t\ttaro[i] = sc.next();\n\t\t\thanako[i] = sc.next();\n\n\t\t\tint game = taro[i].compareToIgnoreCase(hanako[i]);\n\t\t\tif (game == 0) {\n\t\t\t\tpointT += draw;\n\t\t\t\tpointH += draw;\n\t\t\t} else if (game > 0) {\n\t\t\t\tpointT += win;\n\t\t\t} else {\n\t\t\t\tpointH += win;\n\t\t\t}\n\t\t}\n\t\t// output\n\t\tSystem.out.println(pointT + \" \" + pointH);\n\t}\n}",
"Main"
]
|
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
/*
* ?????????????????? [C/C++] ?????????????????? string ???????????°????¨????????????°???
* ???????????????????????°??????????????????????????? < ??? > ??¨
* ??????????????? == ????????¨???????????¨?????§????????????
*
* taro hanako
*
* card N; turn N; Win 3; Draw 1;
*
*/
Scanner sc = new Scanner(System.in);
// declear variable
int cardN; // same turn;
int win = 3, draw = 1; // point
String taro[], hanako[]; // player hands
int pointT = 0, pointH = 0;// player`s point
/*
* Sample Input 3
* cat dog
* fish fish
* lion tiger
* Sample Output 1 7
*/
// input Card N;
cardN = sc.nextInt(); // ex : 3
taro = new String[cardN];
hanako = new String[cardN];
// animal name
for (int i = 0; i < cardN; i++) { // 3
taro[i] = sc.next();
hanako[i] = sc.next();
int game = taro[i].compareToIgnoreCase(hanako[i]);
if (game == 0) {
pointT += draw;
pointH += draw;
} else if (game > 0) {
pointT += win;
} else {
pointH += win;
}
}
// output
System.out.println(pointT + " " + pointH);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
18,
13,
17,
18,
13,
17,
14,
2,
13,
17,
30,
0,
18,
13,
17,
17,
0,
18,
13,
17,
17,
14,
2,
13,
17,
30,
0,
18,
13,
17,
17,
30,
0,
18,
13,
17,
17,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
18,
13,
17,
17,
18,
13,
17,
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
],
[
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
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
39,
44
],
[
36,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
36,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
59,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
55,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
70,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
8,
86
],
[
86,
87
],
[
87,
88
],
[
8,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
95,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
95,
100
],
[
100,
101
],
[
100,
102
],
[
6,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tsc.nextLine();\n\t\t\n\t\tint[] score = new int[2];\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tString[] taro_hana = sc.nextLine().split(\" \");\n\n\t\t\tint res = taro_hana[0].compareTo(taro_hana[1]);\n\n\t\t\tif(res == 0) {\n\t\t\t\tscore[0] += 1;\n\t\t\t\tscore[1] += 1;\n\t\t\t} else if(res > 0) {\n\t\t\t\tscore[0] += 3;\n\t\t\t} else {\n\t\t\t\tscore[1] += 3;\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\n\t\tSystem.out.println(score[0] + \" \" + score[1]);\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\n\t\tint n = sc.nextInt();\n\t\tsc.nextLine();\n\t\t\n\t\tint[] score = new int[2];\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tString[] taro_hana = sc.nextLine().split(\" \");\n\n\t\t\tint res = taro_hana[0].compareTo(taro_hana[1]);\n\n\t\t\tif(res == 0) {\n\t\t\t\tscore[0] += 1;\n\t\t\t\tscore[1] += 1;\n\t\t\t} else if(res > 0) {\n\t\t\t\tscore[0] += 3;\n\t\t\t} else {\n\t\t\t\tscore[1] += 3;\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\n\t\tSystem.out.println(score[0] + \" \" + score[1]);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tsc.nextLine();\n\t\t\n\t\tint[] score = new int[2];\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tString[] taro_hana = sc.nextLine().split(\" \");\n\n\t\t\tint res = taro_hana[0].compareTo(taro_hana[1]);\n\n\t\t\tif(res == 0) {\n\t\t\t\tscore[0] += 1;\n\t\t\t\tscore[1] += 1;\n\t\t\t} else if(res > 0) {\n\t\t\t\tscore[0] += 3;\n\t\t\t} else {\n\t\t\t\tscore[1] += 3;\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\n\t\tSystem.out.println(score[0] + \" \" + score[1]);\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tsc.nextLine();\n\t\t\n\t\tint[] score = new int[2];\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tString[] taro_hana = sc.nextLine().split(\" \");\n\n\t\t\tint res = taro_hana[0].compareTo(taro_hana[1]);\n\n\t\t\tif(res == 0) {\n\t\t\t\tscore[0] += 1;\n\t\t\t\tscore[1] += 1;\n\t\t\t} else if(res > 0) {\n\t\t\t\tscore[0] += 3;\n\t\t\t} else {\n\t\t\t\tscore[1] += 3;\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\n\t\tSystem.out.println(score[0] + \" \" + score[1]);\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",
"int[] score = new int[2];",
"score",
"new int[2]",
"2",
"for (int i = 0; i < n; i++) {\n\n\t\t\tString[] taro_hana = sc.nextLine().split(\" \");\n\n\t\t\tint res = taro_hana[0].compareTo(taro_hana[1]);\n\n\t\t\tif(res == 0) {\n\t\t\t\tscore[0] += 1;\n\t\t\t\tscore[1] += 1;\n\t\t\t} else if(res > 0) {\n\t\t\t\tscore[0] += 3;\n\t\t\t} else {\n\t\t\t\tscore[1] += 3;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\n\t\t\tString[] taro_hana = sc.nextLine().split(\" \");\n\n\t\t\tint res = taro_hana[0].compareTo(taro_hana[1]);\n\n\t\t\tif(res == 0) {\n\t\t\t\tscore[0] += 1;\n\t\t\t\tscore[1] += 1;\n\t\t\t} else if(res > 0) {\n\t\t\t\tscore[0] += 3;\n\t\t\t} else {\n\t\t\t\tscore[1] += 3;\n\t\t\t}\n\t\t}",
"{\n\n\t\t\tString[] taro_hana = sc.nextLine().split(\" \");\n\n\t\t\tint res = taro_hana[0].compareTo(taro_hana[1]);\n\n\t\t\tif(res == 0) {\n\t\t\t\tscore[0] += 1;\n\t\t\t\tscore[1] += 1;\n\t\t\t} else if(res > 0) {\n\t\t\t\tscore[0] += 3;\n\t\t\t} else {\n\t\t\t\tscore[1] += 3;\n\t\t\t}\n\t\t}",
"String[] taro_hana = sc.nextLine().split(\" \");",
"taro_hana",
"sc.nextLine().split(\" \")",
"sc.nextLine().split",
"sc.nextLine()",
"sc.nextLine",
"sc",
"\" \"",
"int res = taro_hana[0].compareTo(taro_hana[1]);",
"res",
"taro_hana[0].compareTo(taro_hana[1])",
"taro_hana[0].compareTo",
"taro_hana[0]",
"taro_hana",
"0",
"taro_hana[1]",
"taro_hana",
"1",
"if(res == 0) {\n\t\t\t\tscore[0] += 1;\n\t\t\t\tscore[1] += 1;\n\t\t\t} else if(res > 0) {\n\t\t\t\tscore[0] += 3;\n\t\t\t} else {\n\t\t\t\tscore[1] += 3;\n\t\t\t}",
"res == 0",
"res",
"0",
"{\n\t\t\t\tscore[0] += 1;\n\t\t\t\tscore[1] += 1;\n\t\t\t}",
"score[0] += 1",
"score[0]",
"score",
"0",
"1",
"score[1] += 1",
"score[1]",
"score",
"1",
"1",
"if(res > 0) {\n\t\t\t\tscore[0] += 3;\n\t\t\t} else {\n\t\t\t\tscore[1] += 3;\n\t\t\t}",
"res > 0",
"res",
"0",
"{\n\t\t\t\tscore[0] += 3;\n\t\t\t}",
"score[0] += 3",
"score[0]",
"score",
"0",
"3",
"{\n\t\t\t\tscore[1] += 3;\n\t\t\t}",
"score[1] += 3",
"score[1]",
"score",
"1",
"3",
"sc.close()",
"sc.close",
"sc",
"System.out.println(score[0] + \" \" + score[1])",
"System.out.println",
"System.out",
"System",
"System.out",
"score[0] + \" \" + score[1]",
"score[0] + \" \" + score[1]",
"score[0]",
"score",
"0",
"\" \"",
"score[1]",
"score",
"1",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tsc.nextLine();\n\t\t\n\t\tint[] score = new int[2];\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tString[] taro_hana = sc.nextLine().split(\" \");\n\n\t\t\tint res = taro_hana[0].compareTo(taro_hana[1]);\n\n\t\t\tif(res == 0) {\n\t\t\t\tscore[0] += 1;\n\t\t\t\tscore[1] += 1;\n\t\t\t} else if(res > 0) {\n\t\t\t\tscore[0] += 3;\n\t\t\t} else {\n\t\t\t\tscore[1] += 3;\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\n\t\tSystem.out.println(score[0] + \" \" + score[1]);\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tsc.nextLine();\n\t\t\n\t\tint[] score = new int[2];\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tString[] taro_hana = sc.nextLine().split(\" \");\n\n\t\t\tint res = taro_hana[0].compareTo(taro_hana[1]);\n\n\t\t\tif(res == 0) {\n\t\t\t\tscore[0] += 1;\n\t\t\t\tscore[1] += 1;\n\t\t\t} else if(res > 0) {\n\t\t\t\tscore[0] += 3;\n\t\t\t} else {\n\t\t\t\tscore[1] += 3;\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\n\t\tSystem.out.println(score[0] + \" \" + score[1]);\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();
sc.nextLine();
int[] score = new int[2];
for (int i = 0; i < n; i++) {
String[] taro_hana = sc.nextLine().split(" ");
int res = taro_hana[0].compareTo(taro_hana[1]);
if(res == 0) {
score[0] += 1;
score[1] += 1;
} else if(res > 0) {
score[0] += 3;
} else {
score[1] += 3;
}
}
sc.close();
System.out.println(score[0] + " " + score[1]);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
0,
13,
2,
13,
17,
14,
2,
13,
17,
30,
0,
13,
2,
13,
17,
0,
13,
2,
13,
17,
30,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
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
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
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
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
44,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
61,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
75,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
71,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
89,
91
],
[
8,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
98,
98
],
[
98,
99
],
[
98,
100
],
[
98,
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 stdIn = new Scanner(System.in);\n\t\tString word1 = \"\";\n\t\tString word2 = \"\";\n\t\tint n = 0;\n\t\tint pointA = 0;\n\t\tint pointB = 0;\n\n\t\t// ??????????????°??????????????°\n\t\tn = stdIn.nextInt();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\t// ???????????\\???\n\t\t\tword1 = stdIn.next();\n\t\t\tword2 = stdIn.next();\n\t\t\tint result = word1.compareTo(word2);\n\t\t\tif (result > 0) {\n\t\t\t\t// ?????????+3???\n\t\t\t\tpointA = pointA + 3;\n\t\t\t} else if (result == 0) {\n\t\t\t\t// ????????¨??±??????+1???\n\t\t\t\tpointA = pointA +1;\n\t\t\t\tpointB = pointB +1;\n\t\t\t} else {\n\t\t\t\t// ??±??????+3???\n\t\t\t\tpointB = pointB +3;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(pointA + \" \" + pointB);\n\n\t\tstdIn.close();\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString word1 = \"\";\n\t\tString word2 = \"\";\n\t\tint n = 0;\n\t\tint pointA = 0;\n\t\tint pointB = 0;\n\n\t\t// ??????????????°??????????????°\n\t\tn = stdIn.nextInt();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\t// ???????????\\???\n\t\t\tword1 = stdIn.next();\n\t\t\tword2 = stdIn.next();\n\t\t\tint result = word1.compareTo(word2);\n\t\t\tif (result > 0) {\n\t\t\t\t// ?????????+3???\n\t\t\t\tpointA = pointA + 3;\n\t\t\t} else if (result == 0) {\n\t\t\t\t// ????????¨??±??????+1???\n\t\t\t\tpointA = pointA +1;\n\t\t\t\tpointB = pointB +1;\n\t\t\t} else {\n\t\t\t\t// ??±??????+3???\n\t\t\t\tpointB = pointB +3;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(pointA + \" \" + pointB);\n\n\t\tstdIn.close();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString word1 = \"\";\n\t\tString word2 = \"\";\n\t\tint n = 0;\n\t\tint pointA = 0;\n\t\tint pointB = 0;\n\n\t\t// ??????????????°??????????????°\n\t\tn = stdIn.nextInt();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\t// ???????????\\???\n\t\t\tword1 = stdIn.next();\n\t\t\tword2 = stdIn.next();\n\t\t\tint result = word1.compareTo(word2);\n\t\t\tif (result > 0) {\n\t\t\t\t// ?????????+3???\n\t\t\t\tpointA = pointA + 3;\n\t\t\t} else if (result == 0) {\n\t\t\t\t// ????????¨??±??????+1???\n\t\t\t\tpointA = pointA +1;\n\t\t\t\tpointB = pointB +1;\n\t\t\t} else {\n\t\t\t\t// ??±??????+3???\n\t\t\t\tpointB = pointB +3;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(pointA + \" \" + pointB);\n\n\t\tstdIn.close();\n\t}",
"main",
"{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString word1 = \"\";\n\t\tString word2 = \"\";\n\t\tint n = 0;\n\t\tint pointA = 0;\n\t\tint pointB = 0;\n\n\t\t// ??????????????°??????????????°\n\t\tn = stdIn.nextInt();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\t// ???????????\\???\n\t\t\tword1 = stdIn.next();\n\t\t\tword2 = stdIn.next();\n\t\t\tint result = word1.compareTo(word2);\n\t\t\tif (result > 0) {\n\t\t\t\t// ?????????+3???\n\t\t\t\tpointA = pointA + 3;\n\t\t\t} else if (result == 0) {\n\t\t\t\t// ????????¨??±??????+1???\n\t\t\t\tpointA = pointA +1;\n\t\t\t\tpointB = pointB +1;\n\t\t\t} else {\n\t\t\t\t// ??±??????+3???\n\t\t\t\tpointB = pointB +3;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(pointA + \" \" + pointB);\n\n\t\tstdIn.close();\n\t}",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"String word1 = \"\";",
"word1",
"\"\"",
"String word2 = \"\";",
"word2",
"\"\"",
"int n = 0;",
"n",
"0",
"int pointA = 0;",
"pointA",
"0",
"int pointB = 0;",
"pointB",
"0",
"n = stdIn.nextInt()",
"n",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"for (int i = 0; i < n; i++) {\n\t\t\t// ???????????\\???\n\t\t\tword1 = stdIn.next();\n\t\t\tword2 = stdIn.next();\n\t\t\tint result = word1.compareTo(word2);\n\t\t\tif (result > 0) {\n\t\t\t\t// ?????????+3???\n\t\t\t\tpointA = pointA + 3;\n\t\t\t} else if (result == 0) {\n\t\t\t\t// ????????¨??±??????+1???\n\t\t\t\tpointA = pointA +1;\n\t\t\t\tpointB = pointB +1;\n\t\t\t} else {\n\t\t\t\t// ??±??????+3???\n\t\t\t\tpointB = pointB +3;\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\t// ???????????\\???\n\t\t\tword1 = stdIn.next();\n\t\t\tword2 = stdIn.next();\n\t\t\tint result = word1.compareTo(word2);\n\t\t\tif (result > 0) {\n\t\t\t\t// ?????????+3???\n\t\t\t\tpointA = pointA + 3;\n\t\t\t} else if (result == 0) {\n\t\t\t\t// ????????¨??±??????+1???\n\t\t\t\tpointA = pointA +1;\n\t\t\t\tpointB = pointB +1;\n\t\t\t} else {\n\t\t\t\t// ??±??????+3???\n\t\t\t\tpointB = pointB +3;\n\t\t\t}\n\t\t}",
"{\n\t\t\t// ???????????\\???\n\t\t\tword1 = stdIn.next();\n\t\t\tword2 = stdIn.next();\n\t\t\tint result = word1.compareTo(word2);\n\t\t\tif (result > 0) {\n\t\t\t\t// ?????????+3???\n\t\t\t\tpointA = pointA + 3;\n\t\t\t} else if (result == 0) {\n\t\t\t\t// ????????¨??±??????+1???\n\t\t\t\tpointA = pointA +1;\n\t\t\t\tpointB = pointB +1;\n\t\t\t} else {\n\t\t\t\t// ??±??????+3???\n\t\t\t\tpointB = pointB +3;\n\t\t\t}\n\t\t}",
"word1 = stdIn.next()",
"word1",
"stdIn.next()",
"stdIn.next",
"stdIn",
"word2 = stdIn.next()",
"word2",
"stdIn.next()",
"stdIn.next",
"stdIn",
"int result = word1.compareTo(word2);",
"result",
"word1.compareTo(word2)",
"word1.compareTo",
"word1",
"word2",
"if (result > 0) {\n\t\t\t\t// ?????????+3???\n\t\t\t\tpointA = pointA + 3;\n\t\t\t} else if (result == 0) {\n\t\t\t\t// ????????¨??±??????+1???\n\t\t\t\tpointA = pointA +1;\n\t\t\t\tpointB = pointB +1;\n\t\t\t} else {\n\t\t\t\t// ??±??????+3???\n\t\t\t\tpointB = pointB +3;\n\t\t\t}",
"result > 0",
"result",
"0",
"{\n\t\t\t\t// ?????????+3???\n\t\t\t\tpointA = pointA + 3;\n\t\t\t}",
"pointA = pointA + 3",
"pointA",
"pointA + 3",
"pointA",
"3",
"if (result == 0) {\n\t\t\t\t// ????????¨??±??????+1???\n\t\t\t\tpointA = pointA +1;\n\t\t\t\tpointB = pointB +1;\n\t\t\t} else {\n\t\t\t\t// ??±??????+3???\n\t\t\t\tpointB = pointB +3;\n\t\t\t}",
"result == 0",
"result",
"0",
"{\n\t\t\t\t// ????????¨??±??????+1???\n\t\t\t\tpointA = pointA +1;\n\t\t\t\tpointB = pointB +1;\n\t\t\t}",
"pointA = pointA +1",
"pointA",
"pointA +1",
"pointA",
"1",
"pointB = pointB +1",
"pointB",
"pointB +1",
"pointB",
"1",
"{\n\t\t\t\t// ??±??????+3???\n\t\t\t\tpointB = pointB +3;\n\t\t\t}",
"pointB = pointB +3",
"pointB",
"pointB +3",
"pointB",
"3",
"System.out.println(pointA + \" \" + pointB)",
"System.out.println",
"System.out",
"System",
"System.out",
"pointA + \" \" + pointB",
"pointA + \" \" + pointB",
"pointA",
"\" \"",
"pointB",
"stdIn.close()",
"stdIn.close",
"stdIn",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString word1 = \"\";\n\t\tString word2 = \"\";\n\t\tint n = 0;\n\t\tint pointA = 0;\n\t\tint pointB = 0;\n\n\t\t// ??????????????°??????????????°\n\t\tn = stdIn.nextInt();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\t// ???????????\\???\n\t\t\tword1 = stdIn.next();\n\t\t\tword2 = stdIn.next();\n\t\t\tint result = word1.compareTo(word2);\n\t\t\tif (result > 0) {\n\t\t\t\t// ?????????+3???\n\t\t\t\tpointA = pointA + 3;\n\t\t\t} else if (result == 0) {\n\t\t\t\t// ????????¨??±??????+1???\n\t\t\t\tpointA = pointA +1;\n\t\t\t\tpointB = pointB +1;\n\t\t\t} else {\n\t\t\t\t// ??±??????+3???\n\t\t\t\tpointB = pointB +3;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(pointA + \" \" + pointB);\n\n\t\tstdIn.close();\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString word1 = \"\";\n\t\tString word2 = \"\";\n\t\tint n = 0;\n\t\tint pointA = 0;\n\t\tint pointB = 0;\n\n\t\t// ??????????????°??????????????°\n\t\tn = stdIn.nextInt();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\t// ???????????\\???\n\t\t\tword1 = stdIn.next();\n\t\t\tword2 = stdIn.next();\n\t\t\tint result = word1.compareTo(word2);\n\t\t\tif (result > 0) {\n\t\t\t\t// ?????????+3???\n\t\t\t\tpointA = pointA + 3;\n\t\t\t} else if (result == 0) {\n\t\t\t\t// ????????¨??±??????+1???\n\t\t\t\tpointA = pointA +1;\n\t\t\t\tpointB = pointB +1;\n\t\t\t} else {\n\t\t\t\t// ??±??????+3???\n\t\t\t\tpointB = pointB +3;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(pointA + \" \" + pointB);\n\n\t\tstdIn.close();\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
String word1 = "";
String word2 = "";
int n = 0;
int pointA = 0;
int pointB = 0;
// ??????????????°??????????????°
n = stdIn.nextInt();
for (int i = 0; i < n; i++) {
// ???????????\???
word1 = stdIn.next();
word2 = stdIn.next();
int result = word1.compareTo(word2);
if (result > 0) {
// ?????????+3???
pointA = pointA + 3;
} else if (result == 0) {
// ????????¨??±??????+1???
pointA = pointA +1;
pointB = pointB +1;
} else {
// ??±??????+3???
pointB = pointB +3;
}
}
System.out.println(pointA + " " + pointB);
stdIn.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
13,
14,
2,
13,
13,
30,
0,
13,
17,
14,
2,
13,
13,
30,
0,
13,
17,
30,
40,
13,
40,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
35,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
35,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
8,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
85,
85
],
[
85,
86
],
[
85,
87
],
[
85,
88
],
[
6,
89
],
[
89,
90
]
]
| [
"import java.util.Scanner;\nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n int Apoint = 0;\n int Bpoint = 0;\n for(int i=0;i<n;i++){\n String strA = sc.next();\n String strB = sc.next();\n \n int a = strA.compareTo(strB);\n int b = strB.compareTo(strA);\n \t\n \tif(a > b){\n Apoint += 3;\n }else if(a < b){\n Bpoint += 3;\n }else{\n Apoint++;\n Bpoint++;\n }\n }\n System.out.println(Apoint + \" \" + Bpoint);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n int Apoint = 0;\n int Bpoint = 0;\n for(int i=0;i<n;i++){\n String strA = sc.next();\n String strB = sc.next();\n \n int a = strA.compareTo(strB);\n int b = strB.compareTo(strA);\n \t\n \tif(a > b){\n Apoint += 3;\n }else if(a < b){\n Bpoint += 3;\n }else{\n Apoint++;\n Bpoint++;\n }\n }\n System.out.println(Apoint + \" \" + Bpoint);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n int Apoint = 0;\n int Bpoint = 0;\n for(int i=0;i<n;i++){\n String strA = sc.next();\n String strB = sc.next();\n \n int a = strA.compareTo(strB);\n int b = strB.compareTo(strA);\n \t\n \tif(a > b){\n Apoint += 3;\n }else if(a < b){\n Bpoint += 3;\n }else{\n Apoint++;\n Bpoint++;\n }\n }\n System.out.println(Apoint + \" \" + Bpoint);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n int Apoint = 0;\n int Bpoint = 0;\n for(int i=0;i<n;i++){\n String strA = sc.next();\n String strB = sc.next();\n \n int a = strA.compareTo(strB);\n int b = strB.compareTo(strA);\n \t\n \tif(a > b){\n Apoint += 3;\n }else if(a < b){\n Bpoint += 3;\n }else{\n Apoint++;\n Bpoint++;\n }\n }\n System.out.println(Apoint + \" \" + Bpoint);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int Apoint = 0;",
"Apoint",
"0",
"int Bpoint = 0;",
"Bpoint",
"0",
"for(int i=0;i<n;i++){\n String strA = sc.next();\n String strB = sc.next();\n \n int a = strA.compareTo(strB);\n int b = strB.compareTo(strA);\n \t\n \tif(a > b){\n Apoint += 3;\n }else if(a < b){\n Bpoint += 3;\n }else{\n Apoint++;\n Bpoint++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String strA = sc.next();\n String strB = sc.next();\n \n int a = strA.compareTo(strB);\n int b = strB.compareTo(strA);\n \t\n \tif(a > b){\n Apoint += 3;\n }else if(a < b){\n Bpoint += 3;\n }else{\n Apoint++;\n Bpoint++;\n }\n }",
"{\n String strA = sc.next();\n String strB = sc.next();\n \n int a = strA.compareTo(strB);\n int b = strB.compareTo(strA);\n \t\n \tif(a > b){\n Apoint += 3;\n }else if(a < b){\n Bpoint += 3;\n }else{\n Apoint++;\n Bpoint++;\n }\n }",
"String strA = sc.next();",
"strA",
"sc.next()",
"sc.next",
"sc",
"String strB = sc.next();",
"strB",
"sc.next()",
"sc.next",
"sc",
"int a = strA.compareTo(strB);",
"a",
"strA.compareTo(strB)",
"strA.compareTo",
"strA",
"strB",
"int b = strB.compareTo(strA);",
"b",
"strB.compareTo(strA)",
"strB.compareTo",
"strB",
"strA",
"if(a > b){\n Apoint += 3;\n }else if(a < b){\n Bpoint += 3;\n }else{\n Apoint++;\n Bpoint++;\n }",
"a > b",
"a",
"b",
"{\n Apoint += 3;\n }",
"Apoint += 3",
"Apoint",
"3",
"if(a < b){\n Bpoint += 3;\n }else{\n Apoint++;\n Bpoint++;\n }",
"a < b",
"a",
"b",
"{\n Bpoint += 3;\n }",
"Bpoint += 3",
"Bpoint",
"3",
"{\n Apoint++;\n Bpoint++;\n }",
"Apoint++",
"Apoint",
"Bpoint++",
"Bpoint",
"System.out.println(Apoint + \" \" + Bpoint)",
"System.out.println",
"System.out",
"System",
"System.out",
"Apoint + \" \" + Bpoint",
"Apoint + \" \" + Bpoint",
"Apoint",
"\" \"",
"Bpoint",
"String[] args",
"args"
]
| import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int Apoint = 0;
int Bpoint = 0;
for(int i=0;i<n;i++){
String strA = sc.next();
String strB = sc.next();
int a = strA.compareTo(strB);
int b = strB.compareTo(strA);
if(a > b){
Apoint += 3;
}else if(a < b){
Bpoint += 3;
}else{
Apoint++;
Bpoint++;
}
}
System.out.println(Apoint + " " + Bpoint);
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
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,
4,
18,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
30,
40,
13,
40,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
80,
5
],
[
80,
6
],
[
6,
7
],
[
6,
8
],
[
80,
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
],
[
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
],
[
40,
41
],
[
41,
42
],
[
38,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
46,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
11,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
73,
73
],
[
73,
74
],
[
73,
75
],
[
73,
76
],
[
9,
77
],
[
77,
78
],
[
0,
79
],
[
79,
80
],
[
79,
81
]
]
| [
"import java.util.*;\n\npublic class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n int t = 0, h = 0, lim = scn.nextInt();\n for(int i = 0; i < lim; i++) {\n int val = scn.next().compareTo(scn.next());\n if(val > 0) {\n t += 3;\n } else if(val < 0) {\n h += 3;\n } else {\n t++;\n h++;\n }\n }\n System.out.println(t + \" \" + h);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n int t = 0, h = 0, lim = scn.nextInt();\n for(int i = 0; i < lim; i++) {\n int val = scn.next().compareTo(scn.next());\n if(val > 0) {\n t += 3;\n } else if(val < 0) {\n h += 3;\n } else {\n t++;\n h++;\n }\n }\n System.out.println(t + \" \" + h);\n }\n}",
"Main",
"private static final Scanner scn = new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"public static void main(String[] args) {\n int t = 0, h = 0, lim = scn.nextInt();\n for(int i = 0; i < lim; i++) {\n int val = scn.next().compareTo(scn.next());\n if(val > 0) {\n t += 3;\n } else if(val < 0) {\n h += 3;\n } else {\n t++;\n h++;\n }\n }\n System.out.println(t + \" \" + h);\n }",
"main",
"{\n int t = 0, h = 0, lim = scn.nextInt();\n for(int i = 0; i < lim; i++) {\n int val = scn.next().compareTo(scn.next());\n if(val > 0) {\n t += 3;\n } else if(val < 0) {\n h += 3;\n } else {\n t++;\n h++;\n }\n }\n System.out.println(t + \" \" + h);\n }",
"int t = 0",
"t",
"0",
"h = 0",
"h",
"0",
"lim = scn.nextInt();",
"lim",
"scn.nextInt()",
"scn.nextInt",
"scn",
"for(int i = 0; i < lim; i++) {\n int val = scn.next().compareTo(scn.next());\n if(val > 0) {\n t += 3;\n } else if(val < 0) {\n h += 3;\n } else {\n t++;\n h++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < lim",
"i",
"lim",
"i++",
"i++",
"i",
"{\n int val = scn.next().compareTo(scn.next());\n if(val > 0) {\n t += 3;\n } else if(val < 0) {\n h += 3;\n } else {\n t++;\n h++;\n }\n }",
"{\n int val = scn.next().compareTo(scn.next());\n if(val > 0) {\n t += 3;\n } else if(val < 0) {\n h += 3;\n } else {\n t++;\n h++;\n }\n }",
"int val = scn.next().compareTo(scn.next());",
"val",
"scn.next().compareTo(scn.next())",
"scn.next().compareTo",
"scn.next()",
"scn.next",
"scn",
"scn.next()",
"scn.next",
"scn",
"if(val > 0) {\n t += 3;\n } else if(val < 0) {\n h += 3;\n } else {\n t++;\n h++;\n }",
"val > 0",
"val",
"0",
"{\n t += 3;\n }",
"t += 3",
"t",
"3",
"if(val < 0) {\n h += 3;\n } else {\n t++;\n h++;\n }",
"val < 0",
"val",
"0",
"{\n h += 3;\n }",
"h += 3",
"h",
"3",
"{\n t++;\n h++;\n }",
"t++",
"t",
"h++",
"h",
"System.out.println(t + \" \" + h)",
"System.out.println",
"System.out",
"System",
"System.out",
"t + \" \" + h",
"t + \" \" + h",
"t",
"\" \"",
"h",
"String[] args",
"args",
"public class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n int t = 0, h = 0, lim = scn.nextInt();\n for(int i = 0; i < lim; i++) {\n int val = scn.next().compareTo(scn.next());\n if(val > 0) {\n t += 3;\n } else if(val < 0) {\n h += 3;\n } else {\n t++;\n h++;\n }\n }\n System.out.println(t + \" \" + h);\n }\n}",
"public class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n int t = 0, h = 0, lim = scn.nextInt();\n for(int i = 0; i < lim; i++) {\n int val = scn.next().compareTo(scn.next());\n if(val > 0) {\n t += 3;\n } else if(val < 0) {\n h += 3;\n } else {\n t++;\n h++;\n }\n }\n System.out.println(t + \" \" + h);\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
private static final Scanner scn = new Scanner(System.in);
public static void main(String[] args) {
int t = 0, h = 0, lim = scn.nextInt();
for(int i = 0; i < lim; i++) {
int val = scn.next().compareTo(scn.next());
if(val > 0) {
t += 3;
} else if(val < 0) {
h += 3;
} else {
t++;
h++;
}
}
System.out.println(t + " " + h);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
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,
41,
13,
4,
18,
13,
14,
2,
17,
4,
18,
13,
13,
30,
40,
13,
40,
13,
40,
13,
14,
2,
17,
4,
18,
13,
13,
30,
40,
13,
40,
13,
30,
40,
13,
40,
13,
40,
13,
4,
18,
18,
13,
13,
17,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
90,
5
],
[
90,
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
],
[
20,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
46,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
56,
57
],
[
53,
58
],
[
58,
59
],
[
46,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
60,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
70,
71
],
[
60,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
72,
77
],
[
77,
78
],
[
8,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
79,
85
],
[
79,
86
],
[
6,
87
],
[
87,
88
],
[
0,
89
],
[
89,
90
],
[
89,
91
]
]
| [
"\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 intTarouPoint = 0;\n\t\tint intHanakoPoint = 0;\n\n\t\tint intTurn = sc.nextInt();\n\t\tfor(int i = 0; i < intTurn; i++) {\n\t\t\tString strTarouCard = sc.next();\n\t\t\tString strHanakoCard = sc.next();\n\t\t\tif(0 < strTarouCard.compareTo(strHanakoCard)) {\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintTarouPoint++;\n\t\t\t}\n\t\t\telse if(0 == strTarouCard.compareTo(strHanakoCard)) {\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tintHanakoPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.printf(\"%d %d%n\",intTarouPoint, intHanakoPoint);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint intTarouPoint = 0;\n\t\tint intHanakoPoint = 0;\n\n\t\tint intTurn = sc.nextInt();\n\t\tfor(int i = 0; i < intTurn; i++) {\n\t\t\tString strTarouCard = sc.next();\n\t\t\tString strHanakoCard = sc.next();\n\t\t\tif(0 < strTarouCard.compareTo(strHanakoCard)) {\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintTarouPoint++;\n\t\t\t}\n\t\t\telse if(0 == strTarouCard.compareTo(strHanakoCard)) {\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tintHanakoPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.printf(\"%d %d%n\",intTarouPoint, intHanakoPoint);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint intTarouPoint = 0;\n\t\tint intHanakoPoint = 0;\n\n\t\tint intTurn = sc.nextInt();\n\t\tfor(int i = 0; i < intTurn; i++) {\n\t\t\tString strTarouCard = sc.next();\n\t\t\tString strHanakoCard = sc.next();\n\t\t\tif(0 < strTarouCard.compareTo(strHanakoCard)) {\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintTarouPoint++;\n\t\t\t}\n\t\t\telse if(0 == strTarouCard.compareTo(strHanakoCard)) {\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tintHanakoPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.printf(\"%d %d%n\",intTarouPoint, intHanakoPoint);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint intTarouPoint = 0;\n\t\tint intHanakoPoint = 0;\n\n\t\tint intTurn = sc.nextInt();\n\t\tfor(int i = 0; i < intTurn; i++) {\n\t\t\tString strTarouCard = sc.next();\n\t\t\tString strHanakoCard = sc.next();\n\t\t\tif(0 < strTarouCard.compareTo(strHanakoCard)) {\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintTarouPoint++;\n\t\t\t}\n\t\t\telse if(0 == strTarouCard.compareTo(strHanakoCard)) {\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tintHanakoPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.printf(\"%d %d%n\",intTarouPoint, intHanakoPoint);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int intTarouPoint = 0;",
"intTarouPoint",
"0",
"int intHanakoPoint = 0;",
"intHanakoPoint",
"0",
"int intTurn = sc.nextInt();",
"intTurn",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < intTurn; i++) {\n\t\t\tString strTarouCard = sc.next();\n\t\t\tString strHanakoCard = sc.next();\n\t\t\tif(0 < strTarouCard.compareTo(strHanakoCard)) {\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintTarouPoint++;\n\t\t\t}\n\t\t\telse if(0 == strTarouCard.compareTo(strHanakoCard)) {\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tintHanakoPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t}\n\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < intTurn",
"i",
"intTurn",
"i++",
"i++",
"i",
"{\n\t\t\tString strTarouCard = sc.next();\n\t\t\tString strHanakoCard = sc.next();\n\t\t\tif(0 < strTarouCard.compareTo(strHanakoCard)) {\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintTarouPoint++;\n\t\t\t}\n\t\t\telse if(0 == strTarouCard.compareTo(strHanakoCard)) {\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tintHanakoPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t}\n\n\t\t}",
"{\n\t\t\tString strTarouCard = sc.next();\n\t\t\tString strHanakoCard = sc.next();\n\t\t\tif(0 < strTarouCard.compareTo(strHanakoCard)) {\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintTarouPoint++;\n\t\t\t}\n\t\t\telse if(0 == strTarouCard.compareTo(strHanakoCard)) {\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tintHanakoPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t}\n\n\t\t}",
"String strTarouCard = sc.next();",
"strTarouCard",
"sc.next()",
"sc.next",
"sc",
"String strHanakoCard = sc.next();",
"strHanakoCard",
"sc.next()",
"sc.next",
"sc",
"if(0 < strTarouCard.compareTo(strHanakoCard)) {\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintTarouPoint++;\n\t\t\t}\n\t\t\telse if(0 == strTarouCard.compareTo(strHanakoCard)) {\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tintHanakoPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t}",
"0 < strTarouCard.compareTo(strHanakoCard)",
"0",
"strTarouCard.compareTo(strHanakoCard)",
"strTarouCard.compareTo",
"strTarouCard",
"strHanakoCard",
"{\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintTarouPoint++;\n\t\t\t}",
"intTarouPoint++",
"intTarouPoint",
"intTarouPoint++",
"intTarouPoint",
"intTarouPoint++",
"intTarouPoint",
"if(0 == strTarouCard.compareTo(strHanakoCard)) {\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tintHanakoPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t}",
"0 == strTarouCard.compareTo(strHanakoCard)",
"0",
"strTarouCard.compareTo(strHanakoCard)",
"strTarouCard.compareTo",
"strTarouCard",
"strHanakoCard",
"{\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t}",
"intTarouPoint++",
"intTarouPoint",
"intHanakoPoint++",
"intHanakoPoint",
"{\n\t\t\t\tintHanakoPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t}",
"intHanakoPoint++",
"intHanakoPoint",
"intHanakoPoint++",
"intHanakoPoint",
"intHanakoPoint++",
"intHanakoPoint",
"System.out.printf(\"%d %d%n\",intTarouPoint, intHanakoPoint)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d %d%n\"",
"intTarouPoint",
"intHanakoPoint",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint intTarouPoint = 0;\n\t\tint intHanakoPoint = 0;\n\n\t\tint intTurn = sc.nextInt();\n\t\tfor(int i = 0; i < intTurn; i++) {\n\t\t\tString strTarouCard = sc.next();\n\t\t\tString strHanakoCard = sc.next();\n\t\t\tif(0 < strTarouCard.compareTo(strHanakoCard)) {\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintTarouPoint++;\n\t\t\t}\n\t\t\telse if(0 == strTarouCard.compareTo(strHanakoCard)) {\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tintHanakoPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.printf(\"%d %d%n\",intTarouPoint, intHanakoPoint);\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint intTarouPoint = 0;\n\t\tint intHanakoPoint = 0;\n\n\t\tint intTurn = sc.nextInt();\n\t\tfor(int i = 0; i < intTurn; i++) {\n\t\t\tString strTarouCard = sc.next();\n\t\t\tString strHanakoCard = sc.next();\n\t\t\tif(0 < strTarouCard.compareTo(strHanakoCard)) {\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintTarouPoint++;\n\t\t\t}\n\t\t\telse if(0 == strTarouCard.compareTo(strHanakoCard)) {\n\t\t\t\tintTarouPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tintHanakoPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t\tintHanakoPoint++;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.printf(\"%d %d%n\",intTarouPoint, intHanakoPoint);\n\t}\n}",
"Main"
]
|
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int intTarouPoint = 0;
int intHanakoPoint = 0;
int intTurn = sc.nextInt();
for(int i = 0; i < intTurn; i++) {
String strTarouCard = sc.next();
String strHanakoCard = sc.next();
if(0 < strTarouCard.compareTo(strHanakoCard)) {
intTarouPoint++;
intTarouPoint++;
intTarouPoint++;
}
else if(0 == strTarouCard.compareTo(strHanakoCard)) {
intTarouPoint++;
intHanakoPoint++;
}
else {
intHanakoPoint++;
intHanakoPoint++;
intHanakoPoint++;
}
}
System.out.printf("%d %d%n",intTarouPoint, intHanakoPoint);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
0,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
30,
40,
13,
40,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
86,
5
],
[
86,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
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
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
35,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
52,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
71,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
79,
79
],
[
79,
80
],
[
79,
81
],
[
79,
82
],
[
6,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n\n int n = scan.nextInt();\n\n int taro = 0;\n int hanako = 0;\n\n for (int i = 0; i < n; i++) {\n \n String taros = scan.next();\n String hanakos = scan.next();\n\n int result = taros.compareTo(hanakos);\n if (result > 0) {\n taro += 3;\n } else if (result < 0) {\n hanako += 3;\n } else {\n taro++;\n hanako++;\n }\n\n }\n \n System.out.println(taro + \" \" + hanako);\n\n }\n\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n\n int n = scan.nextInt();\n\n int taro = 0;\n int hanako = 0;\n\n for (int i = 0; i < n; i++) {\n \n String taros = scan.next();\n String hanakos = scan.next();\n\n int result = taros.compareTo(hanakos);\n if (result > 0) {\n taro += 3;\n } else if (result < 0) {\n hanako += 3;\n } else {\n taro++;\n hanako++;\n }\n\n }\n \n System.out.println(taro + \" \" + hanako);\n\n }\n\n}",
"Main",
"public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n\n int n = scan.nextInt();\n\n int taro = 0;\n int hanako = 0;\n\n for (int i = 0; i < n; i++) {\n \n String taros = scan.next();\n String hanakos = scan.next();\n\n int result = taros.compareTo(hanakos);\n if (result > 0) {\n taro += 3;\n } else if (result < 0) {\n hanako += 3;\n } else {\n taro++;\n hanako++;\n }\n\n }\n \n System.out.println(taro + \" \" + hanako);\n\n }",
"main",
"{\n\n Scanner scan = new Scanner(System.in);\n\n int n = scan.nextInt();\n\n int taro = 0;\n int hanako = 0;\n\n for (int i = 0; i < n; i++) {\n \n String taros = scan.next();\n String hanakos = scan.next();\n\n int result = taros.compareTo(hanakos);\n if (result > 0) {\n taro += 3;\n } else if (result < 0) {\n hanako += 3;\n } else {\n taro++;\n hanako++;\n }\n\n }\n \n System.out.println(taro + \" \" + hanako);\n\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int taro = 0;",
"taro",
"0",
"int hanako = 0;",
"hanako",
"0",
"for (int i = 0; i < n; i++) {\n \n String taros = scan.next();\n String hanakos = scan.next();\n\n int result = taros.compareTo(hanakos);\n if (result > 0) {\n taro += 3;\n } else if (result < 0) {\n hanako += 3;\n } else {\n taro++;\n hanako++;\n }\n\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \n String taros = scan.next();\n String hanakos = scan.next();\n\n int result = taros.compareTo(hanakos);\n if (result > 0) {\n taro += 3;\n } else if (result < 0) {\n hanako += 3;\n } else {\n taro++;\n hanako++;\n }\n\n }",
"{\n \n String taros = scan.next();\n String hanakos = scan.next();\n\n int result = taros.compareTo(hanakos);\n if (result > 0) {\n taro += 3;\n } else if (result < 0) {\n hanako += 3;\n } else {\n taro++;\n hanako++;\n }\n\n }",
"String taros = scan.next();",
"taros",
"scan.next()",
"scan.next",
"scan",
"String hanakos = scan.next();",
"hanakos",
"scan.next()",
"scan.next",
"scan",
"int result = taros.compareTo(hanakos);",
"result",
"taros.compareTo(hanakos)",
"taros.compareTo",
"taros",
"hanakos",
"if (result > 0) {\n taro += 3;\n } else if (result < 0) {\n hanako += 3;\n } else {\n taro++;\n hanako++;\n }",
"result > 0",
"result",
"0",
"{\n taro += 3;\n }",
"taro += 3",
"taro",
"3",
"if (result < 0) {\n hanako += 3;\n } else {\n taro++;\n hanako++;\n }",
"result < 0",
"result",
"0",
"{\n hanako += 3;\n }",
"hanako += 3",
"hanako",
"3",
"{\n taro++;\n hanako++;\n }",
"taro++",
"taro",
"hanako++",
"hanako",
"System.out.println(taro + \" \" + hanako)",
"System.out.println",
"System.out",
"System",
"System.out",
"taro + \" \" + hanako",
"taro + \" \" + hanako",
"taro",
"\" \"",
"hanako",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n\n int n = scan.nextInt();\n\n int taro = 0;\n int hanako = 0;\n\n for (int i = 0; i < n; i++) {\n \n String taros = scan.next();\n String hanakos = scan.next();\n\n int result = taros.compareTo(hanakos);\n if (result > 0) {\n taro += 3;\n } else if (result < 0) {\n hanako += 3;\n } else {\n taro++;\n hanako++;\n }\n\n }\n \n System.out.println(taro + \" \" + hanako);\n\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n\n int n = scan.nextInt();\n\n int taro = 0;\n int hanako = 0;\n\n for (int i = 0; i < n; i++) {\n \n String taros = scan.next();\n String hanakos = scan.next();\n\n int result = taros.compareTo(hanakos);\n if (result > 0) {\n taro += 3;\n } else if (result < 0) {\n hanako += 3;\n } else {\n taro++;\n hanako++;\n }\n\n }\n \n System.out.println(taro + \" \" + hanako);\n\n }\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int taro = 0;
int hanako = 0;
for (int i = 0; i < n; i++) {
String taros = scan.next();
String hanakos = scan.next();
int result = taros.compareTo(hanakos);
if (result > 0) {
taro += 3;
} else if (result < 0) {
hanako += 3;
} else {
taro++;
hanako++;
}
}
System.out.println(taro + " " + hanako);
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.