node_ids
listlengths
4
1.4k
edge_index
listlengths
1
2.22k
text
listlengths
4
1.4k
source
stringlengths
14
427k
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 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, 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 ]
[ [ 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 ], [ 28, 30 ], [ 8, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 36, 37 ], [ 36, 38 ], [ 31, 39 ], [ 39, 40 ], [ 40, 41 ], [ 31, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 46, 51 ], [ 43, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 43, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 62, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 70, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 81, 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 ] ]
[ "import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n=Integer.parseInt(br.readLine());\n\t\tString[] a;\n int r=0,t=0,h=0;\n for(int i=0;i<n;i++){\n a=br.readLine().split(\" \");\n r=a[0].compareTo(a[1]);\n if(r>0){ t+=3;\n }else if(r<0){ h+=3;\n }else{ t++; h++; }\n }\n\t\tSystem.out.println(t+\" \"+h);\n\t}\n}", "import java.io.*;", "io.*", "java", "class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n=Integer.parseInt(br.readLine());\n\t\tString[] a;\n int r=0,t=0,h=0;\n for(int i=0;i<n;i++){\n a=br.readLine().split(\" \");\n r=a[0].compareTo(a[1]);\n if(r>0){ t+=3;\n }else if(r<0){ h+=3;\n }else{ t++; h++; }\n }\n\t\tSystem.out.println(t+\" \"+h);\n\t}\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n=Integer.parseInt(br.readLine());\n\t\tString[] a;\n int r=0,t=0,h=0;\n for(int i=0;i<n;i++){\n a=br.readLine().split(\" \");\n r=a[0].compareTo(a[1]);\n if(r>0){ t+=3;\n }else if(r<0){ h+=3;\n }else{ t++; h++; }\n }\n\t\tSystem.out.println(t+\" \"+h);\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n=Integer.parseInt(br.readLine());\n\t\tString[] a;\n int r=0,t=0,h=0;\n for(int i=0;i<n;i++){\n a=br.readLine().split(\" \");\n r=a[0].compareTo(a[1]);\n if(r>0){ t+=3;\n }else if(r<0){ h+=3;\n }else{ t++; h++; }\n }\n\t\tSystem.out.println(t+\" \"+h);\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", "String[] a;", "a", "int r=0", "r", "0", "t=0", "t", "0", "h=0;", "h", "0", "for(int i=0;i<n;i++){\n a=br.readLine().split(\" \");\n r=a[0].compareTo(a[1]);\n if(r>0){ t+=3;\n }else if(r<0){ h+=3;\n }else{ t++; h++; }\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n a=br.readLine().split(\" \");\n r=a[0].compareTo(a[1]);\n if(r>0){ t+=3;\n }else if(r<0){ h+=3;\n }else{ t++; h++; }\n }", "{\n a=br.readLine().split(\" \");\n r=a[0].compareTo(a[1]);\n if(r>0){ t+=3;\n }else if(r<0){ h+=3;\n }else{ t++; h++; }\n }", "a=br.readLine().split(\" \")", "a", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "r=a[0].compareTo(a[1])", "r", "a[0].compareTo(a[1])", "a[0].compareTo", "a[0]", "a", "0", "a[1]", "a", "1", "if(r>0){ t+=3;\n }else if(r<0){ h+=3;\n }else{ t++; h++; }", "r>0", "r", "0", "{ t+=3;\n }", "t+=3", "t", "3", "if(r<0){ h+=3;\n }else{ t++; h++; }", "r<0", "r", "0", "{ h+=3;\n }", "h+=3", "h", "3", "{ t++; h++; }", "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" ]
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()); String[] a; int r=0,t=0,h=0; for(int i=0;i<n;i++){ a=br.readLine().split(" "); r=a[0].compareTo(a[1]); if(r>0){ t+=3; }else if(r<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, 41, 13, 41, 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 ], [ 40, 5 ], [ 40, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 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 ], [ 33, 33 ], [ 33, 34 ], [ 33, 35 ], [ 33, 36 ], [ 6, 37 ], [ 37, 38 ], [ 0, 39 ], [ 39, 40 ], [ 39, 41 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\n\t\tchar[] taro;\n\t\tchar[] hana;\n\n\t\tint tp = 0;\n\t\tint hp = 0;\n\n\t\tloop:\n\t\tfor ( int i=0; i<n; i++ ) {\n\t\t\ttaro = sc.next().toCharArray();\n\t\t\thana = sc.next().toCharArray();\n\n\t\t\tint tl = taro.length;\n\t\t\tint hl = hana.length;\n\t\t\tint len = Math.min(tl, hl);\n\n\t\t\tfor (int j=0; j<len; j++) {\n\t\t\t\tif ( taro[j] - hana[j] > 0 ) {\n\t\t\t\t\ttp += 3;\n\t\t\t\t\tcontinue loop;\n\t\t\t\t} else if ( taro[j] - hana[j] < 0 ) {\n\t\t\t\t\thp += 3;\n\t\t\t\t\tcontinue loop;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( tl == hl ) {\n\t\t\t\ttp += 1;\n\t\t\t\thp += 1;\n\t\t\t\tcontinue loop;\n\t\t\t} else if ( tl > hl ) {\n\t\t\t\ttp += 3;\n\t\t\t\tcontinue loop;\n\t\t\t} else if ( tl < hl ) {\n\t\t\t\thp += 3;\n\t\t\t\tcontinue loop;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(tp + \" \" + hp);\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\n\t\tchar[] taro;\n\t\tchar[] hana;\n\n\t\tint tp = 0;\n\t\tint hp = 0;\n\n\t\tloop:\n\t\tfor ( int i=0; i<n; i++ ) {\n\t\t\ttaro = sc.next().toCharArray();\n\t\t\thana = sc.next().toCharArray();\n\n\t\t\tint tl = taro.length;\n\t\t\tint hl = hana.length;\n\t\t\tint len = Math.min(tl, hl);\n\n\t\t\tfor (int j=0; j<len; j++) {\n\t\t\t\tif ( taro[j] - hana[j] > 0 ) {\n\t\t\t\t\ttp += 3;\n\t\t\t\t\tcontinue loop;\n\t\t\t\t} else if ( taro[j] - hana[j] < 0 ) {\n\t\t\t\t\thp += 3;\n\t\t\t\t\tcontinue loop;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( tl == hl ) {\n\t\t\t\ttp += 1;\n\t\t\t\thp += 1;\n\t\t\t\tcontinue loop;\n\t\t\t} else if ( tl > hl ) {\n\t\t\t\ttp += 3;\n\t\t\t\tcontinue loop;\n\t\t\t} else if ( tl < hl ) {\n\t\t\t\thp += 3;\n\t\t\t\tcontinue loop;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(tp + \" \" + hp);\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\n\t\tchar[] taro;\n\t\tchar[] hana;\n\n\t\tint tp = 0;\n\t\tint hp = 0;\n\n\t\tloop:\n\t\tfor ( int i=0; i<n; i++ ) {\n\t\t\ttaro = sc.next().toCharArray();\n\t\t\thana = sc.next().toCharArray();\n\n\t\t\tint tl = taro.length;\n\t\t\tint hl = hana.length;\n\t\t\tint len = Math.min(tl, hl);\n\n\t\t\tfor (int j=0; j<len; j++) {\n\t\t\t\tif ( taro[j] - hana[j] > 0 ) {\n\t\t\t\t\ttp += 3;\n\t\t\t\t\tcontinue loop;\n\t\t\t\t} else if ( taro[j] - hana[j] < 0 ) {\n\t\t\t\t\thp += 3;\n\t\t\t\t\tcontinue loop;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( tl == hl ) {\n\t\t\t\ttp += 1;\n\t\t\t\thp += 1;\n\t\t\t\tcontinue loop;\n\t\t\t} else if ( tl > hl ) {\n\t\t\t\ttp += 3;\n\t\t\t\tcontinue loop;\n\t\t\t} else if ( tl < hl ) {\n\t\t\t\thp += 3;\n\t\t\t\tcontinue loop;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(tp + \" \" + hp);\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\n\t\tchar[] taro;\n\t\tchar[] hana;\n\n\t\tint tp = 0;\n\t\tint hp = 0;\n\n\t\tloop:\n\t\tfor ( int i=0; i<n; i++ ) {\n\t\t\ttaro = sc.next().toCharArray();\n\t\t\thana = sc.next().toCharArray();\n\n\t\t\tint tl = taro.length;\n\t\t\tint hl = hana.length;\n\t\t\tint len = Math.min(tl, hl);\n\n\t\t\tfor (int j=0; j<len; j++) {\n\t\t\t\tif ( taro[j] - hana[j] > 0 ) {\n\t\t\t\t\ttp += 3;\n\t\t\t\t\tcontinue loop;\n\t\t\t\t} else if ( taro[j] - hana[j] < 0 ) {\n\t\t\t\t\thp += 3;\n\t\t\t\t\tcontinue loop;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( tl == hl ) {\n\t\t\t\ttp += 1;\n\t\t\t\thp += 1;\n\t\t\t\tcontinue loop;\n\t\t\t} else if ( tl > hl ) {\n\t\t\t\ttp += 3;\n\t\t\t\tcontinue loop;\n\t\t\t} else if ( tl < hl ) {\n\t\t\t\thp += 3;\n\t\t\t\tcontinue loop;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(tp + \" \" + hp);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "char[] taro;", "taro", "char[] hana;", "hana", "int tp = 0;", "tp", "0", "int hp = 0;", "hp", "0", "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\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\n\t\tchar[] taro;\n\t\tchar[] hana;\n\n\t\tint tp = 0;\n\t\tint hp = 0;\n\n\t\tloop:\n\t\tfor ( int i=0; i<n; i++ ) {\n\t\t\ttaro = sc.next().toCharArray();\n\t\t\thana = sc.next().toCharArray();\n\n\t\t\tint tl = taro.length;\n\t\t\tint hl = hana.length;\n\t\t\tint len = Math.min(tl, hl);\n\n\t\t\tfor (int j=0; j<len; j++) {\n\t\t\t\tif ( taro[j] - hana[j] > 0 ) {\n\t\t\t\t\ttp += 3;\n\t\t\t\t\tcontinue loop;\n\t\t\t\t} else if ( taro[j] - hana[j] < 0 ) {\n\t\t\t\t\thp += 3;\n\t\t\t\t\tcontinue loop;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( tl == hl ) {\n\t\t\t\ttp += 1;\n\t\t\t\thp += 1;\n\t\t\t\tcontinue loop;\n\t\t\t} else if ( tl > hl ) {\n\t\t\t\ttp += 3;\n\t\t\t\tcontinue loop;\n\t\t\t} else if ( tl < hl ) {\n\t\t\t\thp += 3;\n\t\t\t\tcontinue loop;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(tp + \" \" + hp);\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\n\t\tchar[] taro;\n\t\tchar[] hana;\n\n\t\tint tp = 0;\n\t\tint hp = 0;\n\n\t\tloop:\n\t\tfor ( int i=0; i<n; i++ ) {\n\t\t\ttaro = sc.next().toCharArray();\n\t\t\thana = sc.next().toCharArray();\n\n\t\t\tint tl = taro.length;\n\t\t\tint hl = hana.length;\n\t\t\tint len = Math.min(tl, hl);\n\n\t\t\tfor (int j=0; j<len; j++) {\n\t\t\t\tif ( taro[j] - hana[j] > 0 ) {\n\t\t\t\t\ttp += 3;\n\t\t\t\t\tcontinue loop;\n\t\t\t\t} else if ( taro[j] - hana[j] < 0 ) {\n\t\t\t\t\thp += 3;\n\t\t\t\t\tcontinue loop;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( tl == hl ) {\n\t\t\t\ttp += 1;\n\t\t\t\thp += 1;\n\t\t\t\tcontinue loop;\n\t\t\t} else if ( tl > hl ) {\n\t\t\t\ttp += 3;\n\t\t\t\tcontinue loop;\n\t\t\t} else if ( tl < hl ) {\n\t\t\t\thp += 3;\n\t\t\t\tcontinue loop;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(tp + \" \" + hp);\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner sc = new Scanner(System.in); int n = sc.nextInt(); char[] taro; char[] hana; int tp = 0; int hp = 0; loop: for ( int i=0; i<n; i++ ) { taro = sc.next().toCharArray(); hana = sc.next().toCharArray(); int tl = taro.length; int hl = hana.length; int len = Math.min(tl, hl); for (int j=0; j<len; j++) { if ( taro[j] - hana[j] > 0 ) { tp += 3; continue loop; } else if ( taro[j] - hana[j] < 0 ) { hp += 3; continue loop; } } if ( tl == hl ) { tp += 1; hp += 1; continue loop; } else if ( tl > hl ) { tp += 3; continue loop; } else if ( tl < hl ) { hp += 3; continue loop; } } System.out.println(tp + " " + hp); } }
[ 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, 17, 14, 2, 4, 18, 18, 13, 17, 18, 13, 17, 17, 30, 0, 13, 2, 13, 17, 14, 2, 4, 18, 18, 13, 17, 18, 13, 17, 17, 30, 0, 13, 2, 13, 17, 14, 2, 4, 18, 18, 13, 17, 18, 13, 17, 17, 30, 0, 13, 2, 13, 17, 0, 13, 2, 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 ], [ 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 ], [ 52, 55 ], [ 44, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 57, 66 ], [ 56, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 56, 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 ], [ 87, 88 ], [ 87, 89 ], [ 73, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 97, 98 ], [ 97, 99 ], [ 91, 100 ], [ 90, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 104, 106 ], [ 101, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 109, 111 ], [ 11, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 118, 118 ], [ 118, 119 ], [ 118, 120 ], [ 118, 121 ], [ 9, 122 ], [ 122, 123 ] ]
[ "import java.util.Scanner;\nimport java.io.*;\n\nclass Main {\n public static void main(String[] args)throws IOException{ \n \tInputStreamReader in = new InputStreamReader(System.in);\n BufferedReader read = new BufferedReader(in);\n \t \t \n \tint n = Integer.parseInt(read.readLine());\n int taroP = 0;\n int hanaP = 0;\n\n for(int N = 0; N < n; N++){\n // String taro = read.readLine();\n // String hana = read.readLine();\n \t\n \tString line = read.readLine();\n \tString [] tarohana = line.split(\" \");\n\n if(tarohana[0].compareTo(tarohana[1]) > 0){\n taroP = taroP + 3;\n }\n else if(tarohana[0].compareTo(tarohana[1]) < 0){\n hanaP = hanaP + 3;\n }\n else if(tarohana[0].compareTo(tarohana[1]) == 0){\n taroP = taroP + 1;\n hanaP = hanaP + 1;\n }\n }\n System.out.println(taroP+\" \"+hanaP);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.io.*;", "io.*", "java", "class Main {\n public static void main(String[] args)throws IOException{ \n \tInputStreamReader in = new InputStreamReader(System.in);\n BufferedReader read = new BufferedReader(in);\n \t \t \n \tint n = Integer.parseInt(read.readLine());\n int taroP = 0;\n int hanaP = 0;\n\n for(int N = 0; N < n; N++){\n // String taro = read.readLine();\n // String hana = read.readLine();\n \t\n \tString line = read.readLine();\n \tString [] tarohana = line.split(\" \");\n\n if(tarohana[0].compareTo(tarohana[1]) > 0){\n taroP = taroP + 3;\n }\n else if(tarohana[0].compareTo(tarohana[1]) < 0){\n hanaP = hanaP + 3;\n }\n else if(tarohana[0].compareTo(tarohana[1]) == 0){\n taroP = taroP + 1;\n hanaP = hanaP + 1;\n }\n }\n System.out.println(taroP+\" \"+hanaP);\n }\n}", "Main", "public static void main(String[] args)throws IOException{ \n \tInputStreamReader in = new InputStreamReader(System.in);\n BufferedReader read = new BufferedReader(in);\n \t \t \n \tint n = Integer.parseInt(read.readLine());\n int taroP = 0;\n int hanaP = 0;\n\n for(int N = 0; N < n; N++){\n // String taro = read.readLine();\n // String hana = read.readLine();\n \t\n \tString line = read.readLine();\n \tString [] tarohana = line.split(\" \");\n\n if(tarohana[0].compareTo(tarohana[1]) > 0){\n taroP = taroP + 3;\n }\n else if(tarohana[0].compareTo(tarohana[1]) < 0){\n hanaP = hanaP + 3;\n }\n else if(tarohana[0].compareTo(tarohana[1]) == 0){\n taroP = taroP + 1;\n hanaP = hanaP + 1;\n }\n }\n System.out.println(taroP+\" \"+hanaP);\n }", "main", "{ \n \tInputStreamReader in = new InputStreamReader(System.in);\n BufferedReader read = new BufferedReader(in);\n \t \t \n \tint n = Integer.parseInt(read.readLine());\n int taroP = 0;\n int hanaP = 0;\n\n for(int N = 0; N < n; N++){\n // String taro = read.readLine();\n // String hana = read.readLine();\n \t\n \tString line = read.readLine();\n \tString [] tarohana = line.split(\" \");\n\n if(tarohana[0].compareTo(tarohana[1]) > 0){\n taroP = taroP + 3;\n }\n else if(tarohana[0].compareTo(tarohana[1]) < 0){\n hanaP = hanaP + 3;\n }\n else if(tarohana[0].compareTo(tarohana[1]) == 0){\n taroP = taroP + 1;\n hanaP = hanaP + 1;\n }\n }\n System.out.println(taroP+\" \"+hanaP);\n }", "InputStreamReader in = new InputStreamReader(System.in);", "in", "new InputStreamReader(System.in)", "BufferedReader read = new BufferedReader(in);", "read", "new BufferedReader(in)", "int n = Integer.parseInt(read.readLine());", "n", "Integer.parseInt(read.readLine())", "Integer.parseInt", "Integer", "read.readLine()", "read.readLine", "read", "int taroP = 0;", "taroP", "0", "int hanaP = 0;", "hanaP", "0", "for(int N = 0; N < n; N++){\n // String taro = read.readLine();\n // String hana = read.readLine();\n \t\n \tString line = read.readLine();\n \tString [] tarohana = line.split(\" \");\n\n if(tarohana[0].compareTo(tarohana[1]) > 0){\n taroP = taroP + 3;\n }\n else if(tarohana[0].compareTo(tarohana[1]) < 0){\n hanaP = hanaP + 3;\n }\n else if(tarohana[0].compareTo(tarohana[1]) == 0){\n taroP = taroP + 1;\n hanaP = hanaP + 1;\n }\n }", "int N = 0;", "int N = 0;", "N", "0", "N < n", "N", "n", "N++", "N++", "N", "{\n // String taro = read.readLine();\n // String hana = read.readLine();\n \t\n \tString line = read.readLine();\n \tString [] tarohana = line.split(\" \");\n\n if(tarohana[0].compareTo(tarohana[1]) > 0){\n taroP = taroP + 3;\n }\n else if(tarohana[0].compareTo(tarohana[1]) < 0){\n hanaP = hanaP + 3;\n }\n else if(tarohana[0].compareTo(tarohana[1]) == 0){\n taroP = taroP + 1;\n hanaP = hanaP + 1;\n }\n }", "{\n // String taro = read.readLine();\n // String hana = read.readLine();\n \t\n \tString line = read.readLine();\n \tString [] tarohana = line.split(\" \");\n\n if(tarohana[0].compareTo(tarohana[1]) > 0){\n taroP = taroP + 3;\n }\n else if(tarohana[0].compareTo(tarohana[1]) < 0){\n hanaP = hanaP + 3;\n }\n else if(tarohana[0].compareTo(tarohana[1]) == 0){\n taroP = taroP + 1;\n hanaP = hanaP + 1;\n }\n }", "String line = read.readLine();", "line", "read.readLine()", "read.readLine", "read", "String [] tarohana = line.split(\" \");", "tarohana", "line.split(\" \")", "line.split", "line", "\" \"", "if(tarohana[0].compareTo(tarohana[1]) > 0){\n taroP = taroP + 3;\n }\n else if(tarohana[0].compareTo(tarohana[1]) < 0){\n hanaP = hanaP + 3;\n }\n else if(tarohana[0].compareTo(tarohana[1]) == 0){\n taroP = taroP + 1;\n hanaP = hanaP + 1;\n }", "tarohana[0].compareTo(tarohana[1]) > 0", "tarohana[0].compareTo(tarohana[1])", "tarohana[0].compareTo", "tarohana[0]", "tarohana", "0", "tarohana[1]", "tarohana", "1", "0", "{\n taroP = taroP + 3;\n }", "taroP = taroP + 3", "taroP", "taroP + 3", "taroP", "3", "if(tarohana[0].compareTo(tarohana[1]) < 0){\n hanaP = hanaP + 3;\n }\n else if(tarohana[0].compareTo(tarohana[1]) == 0){\n taroP = taroP + 1;\n hanaP = hanaP + 1;\n }", "tarohana[0].compareTo(tarohana[1]) < 0", "tarohana[0].compareTo(tarohana[1])", "tarohana[0].compareTo", "tarohana[0]", "tarohana", "0", "tarohana[1]", "tarohana", "1", "0", "{\n hanaP = hanaP + 3;\n }", "hanaP = hanaP + 3", "hanaP", "hanaP + 3", "hanaP", "3", "if(tarohana[0].compareTo(tarohana[1]) == 0){\n taroP = taroP + 1;\n hanaP = hanaP + 1;\n }", "tarohana[0].compareTo(tarohana[1]) == 0", "tarohana[0].compareTo(tarohana[1])", "tarohana[0].compareTo", "tarohana[0]", "tarohana", "0", "tarohana[1]", "tarohana", "1", "0", "{\n taroP = taroP + 1;\n hanaP = hanaP + 1;\n }", "taroP = taroP + 1", "taroP", "taroP + 1", "taroP", "1", "hanaP = hanaP + 1", "hanaP", "hanaP + 1", "hanaP", "1", "System.out.println(taroP+\" \"+hanaP)", "System.out.println", "System.out", "System", "System.out", "taroP+\" \"+hanaP", "taroP+\" \"+hanaP", "taroP", "\" \"", "hanaP", "String[] args", "args" ]
import java.util.Scanner; import java.io.*; class Main { public static void main(String[] args)throws IOException{ InputStreamReader in = new InputStreamReader(System.in); BufferedReader read = new BufferedReader(in); int n = Integer.parseInt(read.readLine()); int taroP = 0; int hanaP = 0; for(int N = 0; N < n; N++){ // String taro = read.readLine(); // String hana = read.readLine(); String line = read.readLine(); String [] tarohana = line.split(" "); if(tarohana[0].compareTo(tarohana[1]) > 0){ taroP = taroP + 3; } else if(tarohana[0].compareTo(tarohana[1]) < 0){ hanaP = hanaP + 3; } else if(tarohana[0].compareTo(tarohana[1]) == 0){ taroP = taroP + 1; hanaP = hanaP + 1; } } System.out.println(taroP+" "+hanaP); } }
[ 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, 14, 2, 4, 18, 18, 13, 17, 18, 13, 17, 17, 30, 0, 13, 17, 0, 13, 17, 14, 2, 4, 18, 18, 13, 17, 18, 13, 17, 17, 30, 0, 13, 17, 30, 0, 13, 17, 4, 18, 13, 4, 18, 18, 13, 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 ], [ 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 ], [ 41, 46 ], [ 38, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 54, 55 ], [ 54, 56 ], [ 48, 57 ], [ 47, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 62, 64 ], [ 47, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 72, 73 ], [ 72, 74 ], [ 66, 75 ], [ 65, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 65, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 8, 84 ], [ 84, 85 ], [ 85, 86 ], [ 8, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 87, 93 ], [ 87, 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 Scanner(System.in);\n\n\t\tint gameCount = Integer.parseInt(sc.nextLine());\n\n\t\tint totalPointTaro = 0;\n\t\tint totalPointHanako = 0;\n\n\t\tfor (int i = 0; i < gameCount; i++) {\n\t\t\tString[] cards = sc.nextLine().split(\" \");\n\t\t\tif (cards[0].compareTo(cards[1]) == 0 ) {\n\t\t\t\ttotalPointTaro += 1;\n\t\t\t\ttotalPointHanako += 1;\n\t\t\t} else if (cards[0].compareTo(cards[1]) > 0) {\n\t\t\t\ttotalPointTaro += 3;\n\t\t\t} else {\n\t\t\t\ttotalPointHanako += 3;\n\t\t\t}\n\n\t\t}\n\t\tsc.close();\n\n\t\tSystem.out.printf(\"%d %d\\n\", totalPointTaro, totalPointHanako);\n\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 gameCount = Integer.parseInt(sc.nextLine());\n\n\t\tint totalPointTaro = 0;\n\t\tint totalPointHanako = 0;\n\n\t\tfor (int i = 0; i < gameCount; i++) {\n\t\t\tString[] cards = sc.nextLine().split(\" \");\n\t\t\tif (cards[0].compareTo(cards[1]) == 0 ) {\n\t\t\t\ttotalPointTaro += 1;\n\t\t\t\ttotalPointHanako += 1;\n\t\t\t} else if (cards[0].compareTo(cards[1]) > 0) {\n\t\t\t\ttotalPointTaro += 3;\n\t\t\t} else {\n\t\t\t\ttotalPointHanako += 3;\n\t\t\t}\n\n\t\t}\n\t\tsc.close();\n\n\t\tSystem.out.printf(\"%d %d\\n\", totalPointTaro, totalPointHanako);\n\n\t}\n}", "Main", "public static void main(String[] args ) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint gameCount = Integer.parseInt(sc.nextLine());\n\n\t\tint totalPointTaro = 0;\n\t\tint totalPointHanako = 0;\n\n\t\tfor (int i = 0; i < gameCount; i++) {\n\t\t\tString[] cards = sc.nextLine().split(\" \");\n\t\t\tif (cards[0].compareTo(cards[1]) == 0 ) {\n\t\t\t\ttotalPointTaro += 1;\n\t\t\t\ttotalPointHanako += 1;\n\t\t\t} else if (cards[0].compareTo(cards[1]) > 0) {\n\t\t\t\ttotalPointTaro += 3;\n\t\t\t} else {\n\t\t\t\ttotalPointHanako += 3;\n\t\t\t}\n\n\t\t}\n\t\tsc.close();\n\n\t\tSystem.out.printf(\"%d %d\\n\", totalPointTaro, totalPointHanako);\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint gameCount = Integer.parseInt(sc.nextLine());\n\n\t\tint totalPointTaro = 0;\n\t\tint totalPointHanako = 0;\n\n\t\tfor (int i = 0; i < gameCount; i++) {\n\t\t\tString[] cards = sc.nextLine().split(\" \");\n\t\t\tif (cards[0].compareTo(cards[1]) == 0 ) {\n\t\t\t\ttotalPointTaro += 1;\n\t\t\t\ttotalPointHanako += 1;\n\t\t\t} else if (cards[0].compareTo(cards[1]) > 0) {\n\t\t\t\ttotalPointTaro += 3;\n\t\t\t} else {\n\t\t\t\ttotalPointHanako += 3;\n\t\t\t}\n\n\t\t}\n\t\tsc.close();\n\n\t\tSystem.out.printf(\"%d %d\\n\", totalPointTaro, totalPointHanako);\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int gameCount = Integer.parseInt(sc.nextLine());", "gameCount", "Integer.parseInt(sc.nextLine())", "Integer.parseInt", "Integer", "sc.nextLine()", "sc.nextLine", "sc", "int totalPointTaro = 0;", "totalPointTaro", "0", "int totalPointHanako = 0;", "totalPointHanako", "0", "for (int i = 0; i < gameCount; i++) {\n\t\t\tString[] cards = sc.nextLine().split(\" \");\n\t\t\tif (cards[0].compareTo(cards[1]) == 0 ) {\n\t\t\t\ttotalPointTaro += 1;\n\t\t\t\ttotalPointHanako += 1;\n\t\t\t} else if (cards[0].compareTo(cards[1]) > 0) {\n\t\t\t\ttotalPointTaro += 3;\n\t\t\t} else {\n\t\t\t\ttotalPointHanako += 3;\n\t\t\t}\n\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < gameCount", "i", "gameCount", "i++", "i++", "i", "{\n\t\t\tString[] cards = sc.nextLine().split(\" \");\n\t\t\tif (cards[0].compareTo(cards[1]) == 0 ) {\n\t\t\t\ttotalPointTaro += 1;\n\t\t\t\ttotalPointHanako += 1;\n\t\t\t} else if (cards[0].compareTo(cards[1]) > 0) {\n\t\t\t\ttotalPointTaro += 3;\n\t\t\t} else {\n\t\t\t\ttotalPointHanako += 3;\n\t\t\t}\n\n\t\t}", "{\n\t\t\tString[] cards = sc.nextLine().split(\" \");\n\t\t\tif (cards[0].compareTo(cards[1]) == 0 ) {\n\t\t\t\ttotalPointTaro += 1;\n\t\t\t\ttotalPointHanako += 1;\n\t\t\t} else if (cards[0].compareTo(cards[1]) > 0) {\n\t\t\t\ttotalPointTaro += 3;\n\t\t\t} else {\n\t\t\t\ttotalPointHanako += 3;\n\t\t\t}\n\n\t\t}", "String[] cards = sc.nextLine().split(\" \");", "cards", "sc.nextLine().split(\" \")", "sc.nextLine().split", "sc.nextLine()", "sc.nextLine", "sc", "\" \"", "if (cards[0].compareTo(cards[1]) == 0 ) {\n\t\t\t\ttotalPointTaro += 1;\n\t\t\t\ttotalPointHanako += 1;\n\t\t\t} else if (cards[0].compareTo(cards[1]) > 0) {\n\t\t\t\ttotalPointTaro += 3;\n\t\t\t} else {\n\t\t\t\ttotalPointHanako += 3;\n\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\ttotalPointTaro += 1;\n\t\t\t\ttotalPointHanako += 1;\n\t\t\t}", "totalPointTaro += 1", "totalPointTaro", "1", "totalPointHanako += 1", "totalPointHanako", "1", "if (cards[0].compareTo(cards[1]) > 0) {\n\t\t\t\ttotalPointTaro += 3;\n\t\t\t} else {\n\t\t\t\ttotalPointHanako += 3;\n\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\ttotalPointTaro += 3;\n\t\t\t}", "totalPointTaro += 3", "totalPointTaro", "3", "{\n\t\t\t\ttotalPointHanako += 3;\n\t\t\t}", "totalPointHanako += 3", "totalPointHanako", "3", "sc.close()", "sc.close", "sc", "System.out.printf(\"%d %d\\n\", totalPointTaro, totalPointHanako)", "System.out.printf", "System.out", "System", "System.out", "\"%d %d\\n\"", "totalPointTaro", "totalPointHanako", "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 gameCount = Integer.parseInt(sc.nextLine());\n\n\t\tint totalPointTaro = 0;\n\t\tint totalPointHanako = 0;\n\n\t\tfor (int i = 0; i < gameCount; i++) {\n\t\t\tString[] cards = sc.nextLine().split(\" \");\n\t\t\tif (cards[0].compareTo(cards[1]) == 0 ) {\n\t\t\t\ttotalPointTaro += 1;\n\t\t\t\ttotalPointHanako += 1;\n\t\t\t} else if (cards[0].compareTo(cards[1]) > 0) {\n\t\t\t\ttotalPointTaro += 3;\n\t\t\t} else {\n\t\t\t\ttotalPointHanako += 3;\n\t\t\t}\n\n\t\t}\n\t\tsc.close();\n\n\t\tSystem.out.printf(\"%d %d\\n\", totalPointTaro, totalPointHanako);\n\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 gameCount = Integer.parseInt(sc.nextLine());\n\n\t\tint totalPointTaro = 0;\n\t\tint totalPointHanako = 0;\n\n\t\tfor (int i = 0; i < gameCount; i++) {\n\t\t\tString[] cards = sc.nextLine().split(\" \");\n\t\t\tif (cards[0].compareTo(cards[1]) == 0 ) {\n\t\t\t\ttotalPointTaro += 1;\n\t\t\t\ttotalPointHanako += 1;\n\t\t\t} else if (cards[0].compareTo(cards[1]) > 0) {\n\t\t\t\ttotalPointTaro += 3;\n\t\t\t} else {\n\t\t\t\ttotalPointHanako += 3;\n\t\t\t}\n\n\t\t}\n\t\tsc.close();\n\n\t\tSystem.out.printf(\"%d %d\\n\", totalPointTaro, totalPointHanako);\n\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args ) { Scanner sc = new Scanner(System.in); int gameCount = Integer.parseInt(sc.nextLine()); int totalPointTaro = 0; int totalPointHanako = 0; for (int i = 0; i < gameCount; i++) { String[] cards = sc.nextLine().split(" "); if (cards[0].compareTo(cards[1]) == 0 ) { totalPointTaro += 1; totalPointHanako += 1; } else if (cards[0].compareTo(cards[1]) > 0) { totalPointTaro += 3; } else { totalPointHanako += 3; } } sc.close(); System.out.printf("%d %d\n", totalPointTaro, totalPointHanako); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 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, 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 ], [ 95, 5 ], [ 95, 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 ], [ 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 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 72, 77 ], [ 71, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 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 ], [ 0, 94 ], [ 94, 95 ], [ 94, 96 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint tarou_point = 0,hanako_point = 0;\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint game_num =in.nextInt();\n\n\t\tfor(int i = 0; i < game_num; i++){\n\n\t\t\tString tarou_card = in.next();\n\t\t\tString hanako_card = in.next();\n\n\t\t\t// System.out.println(tarou_card.compareToIgnoreCase(hanako_card));\n\t\t\tif(tarou_card.compareToIgnoreCase(hanako_card) == 0){\n\n\t\t\t\ttarou_point += 1;\n\t\t\t\thanako_point += 1;\n\n\t\t\t}else if(tarou_card.compareToIgnoreCase(hanako_card) > 0){\n\n\t\t\t\ttarou_point += 3;\n\n\t\t\t}else if(tarou_card.compareToIgnoreCase(hanako_card) < 0){\n\n\t\t\t\thanako_point += 3;\n\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(tarou_point + \" \" + hanako_point);\n\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint tarou_point = 0,hanako_point = 0;\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint game_num =in.nextInt();\n\n\t\tfor(int i = 0; i < game_num; i++){\n\n\t\t\tString tarou_card = in.next();\n\t\t\tString hanako_card = in.next();\n\n\t\t\t// System.out.println(tarou_card.compareToIgnoreCase(hanako_card));\n\t\t\tif(tarou_card.compareToIgnoreCase(hanako_card) == 0){\n\n\t\t\t\ttarou_point += 1;\n\t\t\t\thanako_point += 1;\n\n\t\t\t}else if(tarou_card.compareToIgnoreCase(hanako_card) > 0){\n\n\t\t\t\ttarou_point += 3;\n\n\t\t\t}else if(tarou_card.compareToIgnoreCase(hanako_card) < 0){\n\n\t\t\t\thanako_point += 3;\n\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(tarou_point + \" \" + hanako_point);\n\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\tint tarou_point = 0,hanako_point = 0;\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint game_num =in.nextInt();\n\n\t\tfor(int i = 0; i < game_num; i++){\n\n\t\t\tString tarou_card = in.next();\n\t\t\tString hanako_card = in.next();\n\n\t\t\t// System.out.println(tarou_card.compareToIgnoreCase(hanako_card));\n\t\t\tif(tarou_card.compareToIgnoreCase(hanako_card) == 0){\n\n\t\t\t\ttarou_point += 1;\n\t\t\t\thanako_point += 1;\n\n\t\t\t}else if(tarou_card.compareToIgnoreCase(hanako_card) > 0){\n\n\t\t\t\ttarou_point += 3;\n\n\t\t\t}else if(tarou_card.compareToIgnoreCase(hanako_card) < 0){\n\n\t\t\t\thanako_point += 3;\n\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(tarou_point + \" \" + hanako_point);\n\n\t}", "main", "{\n\n\t\tint tarou_point = 0,hanako_point = 0;\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint game_num =in.nextInt();\n\n\t\tfor(int i = 0; i < game_num; i++){\n\n\t\t\tString tarou_card = in.next();\n\t\t\tString hanako_card = in.next();\n\n\t\t\t// System.out.println(tarou_card.compareToIgnoreCase(hanako_card));\n\t\t\tif(tarou_card.compareToIgnoreCase(hanako_card) == 0){\n\n\t\t\t\ttarou_point += 1;\n\t\t\t\thanako_point += 1;\n\n\t\t\t}else if(tarou_card.compareToIgnoreCase(hanako_card) > 0){\n\n\t\t\t\ttarou_point += 3;\n\n\t\t\t}else if(tarou_card.compareToIgnoreCase(hanako_card) < 0){\n\n\t\t\t\thanako_point += 3;\n\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(tarou_point + \" \" + hanako_point);\n\n\t}", "int tarou_point = 0", "tarou_point", "0", "hanako_point = 0;", "hanako_point", "0", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "int game_num =in.nextInt();", "game_num", "in.nextInt()", "in.nextInt", "in", "for(int i = 0; i < game_num; i++){\n\n\t\t\tString tarou_card = in.next();\n\t\t\tString hanako_card = in.next();\n\n\t\t\t// System.out.println(tarou_card.compareToIgnoreCase(hanako_card));\n\t\t\tif(tarou_card.compareToIgnoreCase(hanako_card) == 0){\n\n\t\t\t\ttarou_point += 1;\n\t\t\t\thanako_point += 1;\n\n\t\t\t}else if(tarou_card.compareToIgnoreCase(hanako_card) > 0){\n\n\t\t\t\ttarou_point += 3;\n\n\t\t\t}else if(tarou_card.compareToIgnoreCase(hanako_card) < 0){\n\n\t\t\t\thanako_point += 3;\n\n\t\t\t}\n\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < game_num", "i", "game_num", "i++", "i++", "i", "{\n\n\t\t\tString tarou_card = in.next();\n\t\t\tString hanako_card = in.next();\n\n\t\t\t// System.out.println(tarou_card.compareToIgnoreCase(hanako_card));\n\t\t\tif(tarou_card.compareToIgnoreCase(hanako_card) == 0){\n\n\t\t\t\ttarou_point += 1;\n\t\t\t\thanako_point += 1;\n\n\t\t\t}else if(tarou_card.compareToIgnoreCase(hanako_card) > 0){\n\n\t\t\t\ttarou_point += 3;\n\n\t\t\t}else if(tarou_card.compareToIgnoreCase(hanako_card) < 0){\n\n\t\t\t\thanako_point += 3;\n\n\t\t\t}\n\n\t\t}", "{\n\n\t\t\tString tarou_card = in.next();\n\t\t\tString hanako_card = in.next();\n\n\t\t\t// System.out.println(tarou_card.compareToIgnoreCase(hanako_card));\n\t\t\tif(tarou_card.compareToIgnoreCase(hanako_card) == 0){\n\n\t\t\t\ttarou_point += 1;\n\t\t\t\thanako_point += 1;\n\n\t\t\t}else if(tarou_card.compareToIgnoreCase(hanako_card) > 0){\n\n\t\t\t\ttarou_point += 3;\n\n\t\t\t}else if(tarou_card.compareToIgnoreCase(hanako_card) < 0){\n\n\t\t\t\thanako_point += 3;\n\n\t\t\t}\n\n\t\t}", "String tarou_card = in.next();", "tarou_card", "in.next()", "in.next", "in", "String hanako_card = in.next();", "hanako_card", "in.next()", "in.next", "in", "if(tarou_card.compareToIgnoreCase(hanako_card) == 0){\n\n\t\t\t\ttarou_point += 1;\n\t\t\t\thanako_point += 1;\n\n\t\t\t}else if(tarou_card.compareToIgnoreCase(hanako_card) > 0){\n\n\t\t\t\ttarou_point += 3;\n\n\t\t\t}else if(tarou_card.compareToIgnoreCase(hanako_card) < 0){\n\n\t\t\t\thanako_point += 3;\n\n\t\t\t}", "tarou_card.compareToIgnoreCase(hanako_card) == 0", "tarou_card.compareToIgnoreCase(hanako_card)", "tarou_card.compareToIgnoreCase", "tarou_card", "hanako_card", "0", "{\n\n\t\t\t\ttarou_point += 1;\n\t\t\t\thanako_point += 1;\n\n\t\t\t}", "tarou_point += 1", "tarou_point", "1", "hanako_point += 1", "hanako_point", "1", "if(tarou_card.compareToIgnoreCase(hanako_card) > 0){\n\n\t\t\t\ttarou_point += 3;\n\n\t\t\t}else if(tarou_card.compareToIgnoreCase(hanako_card) < 0){\n\n\t\t\t\thanako_point += 3;\n\n\t\t\t}", "tarou_card.compareToIgnoreCase(hanako_card) > 0", "tarou_card.compareToIgnoreCase(hanako_card)", "tarou_card.compareToIgnoreCase", "tarou_card", "hanako_card", "0", "{\n\n\t\t\t\ttarou_point += 3;\n\n\t\t\t}", "tarou_point += 3", "tarou_point", "3", "if(tarou_card.compareToIgnoreCase(hanako_card) < 0){\n\n\t\t\t\thanako_point += 3;\n\n\t\t\t}", "tarou_card.compareToIgnoreCase(hanako_card) < 0", "tarou_card.compareToIgnoreCase(hanako_card)", "tarou_card.compareToIgnoreCase", "tarou_card", "hanako_card", "0", "{\n\n\t\t\t\thanako_point += 3;\n\n\t\t\t}", "hanako_point += 3", "hanako_point", "3", "System.out.println(tarou_point + \" \" + hanako_point)", "System.out.println", "System.out", "System", "System.out", "tarou_point + \" \" + hanako_point", "tarou_point + \" \" + hanako_point", "tarou_point", "\" \"", "hanako_point", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint tarou_point = 0,hanako_point = 0;\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint game_num =in.nextInt();\n\n\t\tfor(int i = 0; i < game_num; i++){\n\n\t\t\tString tarou_card = in.next();\n\t\t\tString hanako_card = in.next();\n\n\t\t\t// System.out.println(tarou_card.compareToIgnoreCase(hanako_card));\n\t\t\tif(tarou_card.compareToIgnoreCase(hanako_card) == 0){\n\n\t\t\t\ttarou_point += 1;\n\t\t\t\thanako_point += 1;\n\n\t\t\t}else if(tarou_card.compareToIgnoreCase(hanako_card) > 0){\n\n\t\t\t\ttarou_point += 3;\n\n\t\t\t}else if(tarou_card.compareToIgnoreCase(hanako_card) < 0){\n\n\t\t\t\thanako_point += 3;\n\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(tarou_point + \" \" + hanako_point);\n\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint tarou_point = 0,hanako_point = 0;\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint game_num =in.nextInt();\n\n\t\tfor(int i = 0; i < game_num; i++){\n\n\t\t\tString tarou_card = in.next();\n\t\t\tString hanako_card = in.next();\n\n\t\t\t// System.out.println(tarou_card.compareToIgnoreCase(hanako_card));\n\t\t\tif(tarou_card.compareToIgnoreCase(hanako_card) == 0){\n\n\t\t\t\ttarou_point += 1;\n\t\t\t\thanako_point += 1;\n\n\t\t\t}else if(tarou_card.compareToIgnoreCase(hanako_card) > 0){\n\n\t\t\t\ttarou_point += 3;\n\n\t\t\t}else if(tarou_card.compareToIgnoreCase(hanako_card) < 0){\n\n\t\t\t\thanako_point += 3;\n\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(tarou_point + \" \" + hanako_point);\n\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { int tarou_point = 0,hanako_point = 0; Scanner in = new Scanner(System.in); int game_num =in.nextInt(); for(int i = 0; i < game_num; i++){ String tarou_card = in.next(); String hanako_card = in.next(); // System.out.println(tarou_card.compareToIgnoreCase(hanako_card)); if(tarou_card.compareToIgnoreCase(hanako_card) == 0){ tarou_point += 1; hanako_point += 1; }else if(tarou_card.compareToIgnoreCase(hanako_card) > 0){ tarou_point += 3; }else if(tarou_card.compareToIgnoreCase(hanako_card) < 0){ hanako_point += 3; } } System.out.println(tarou_point + " " + hanako_point); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 40, 17, 30, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 42, 2, 0, 13, 4, 18, 13, 17, 30, 14, 2, 4, 18, 13, 17, 30, 0, 13, 4, 18, 13, 13, 14, 2, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 17, 0, 13, 18, 13, 17, 0, 13, 18, 13, 17, 14, 2, 4, 18, 13, 13, 17, 30, 0, 13, 13, 14, 2, 4, 18, 13, 13, 17, 30, 0, 13, 13, 0, 13, 13, 30, 0, 13, 13, 14, 2, 4, 18, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 13, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 13, 3, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 17, 13, 4, 18, 13, 17, 13, 4, 18, 13, 13, 29, 4, 18, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 187, 8 ], [ 187, 9 ], [ 9, 10 ], [ 9, 11 ], [ 187, 12 ], [ 12, 13 ], [ 12, 14 ], [ 187, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 25, 26 ], [ 18, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 27, 31 ], [ 31, 32 ], [ 31, 33 ], [ 27, 34 ], [ 34, 35 ], [ 34, 36 ], [ 27, 37 ], [ 37, 38 ], [ 37, 39 ], [ 27, 40 ], [ 40, 41 ], [ 40, 42 ], [ 27, 43 ], [ 43, 44 ], [ 43, 45 ], [ 27, 46 ], [ 46, 47 ], [ 46, 48 ], [ 27, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 50, 56 ], [ 49, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 59, 63 ], [ 58, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 57, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 72, 76 ], [ 71, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 77, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 77, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 91, 93 ], [ 77, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 95, 100 ], [ 94, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 94, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 106, 111 ], [ 105, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 116, 117 ], [ 116, 118 ], [ 105, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 57, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 124, 128 ], [ 128, 129 ], [ 128, 130 ], [ 123, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 132, 137 ], [ 131, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 138, 143 ], [ 131, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 144, 149 ], [ 131, 150 ], [ 27, 151 ], [ 151, 152 ], [ 152, 153 ], [ 15, 154 ], [ 154, 155 ], [ 187, 156 ], [ 156, 157 ], [ 156, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 158, 162 ], [ 162, 163 ], [ 162, 164 ], [ 164, 165 ], [ 165, 166 ], [ 164, 167 ], [ 164, 168 ], [ 158, 169 ], [ 169, 170 ], [ 170, 171 ], [ 169, 172 ], [ 169, 173 ], [ 158, 174 ], [ 174, 175 ], [ 175, 176 ], [ 174, 177 ], [ 158, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 156, 182 ], [ 182, 183 ], [ 156, 184 ], [ 184, 185 ], [ 0, 186 ], [ 186, 187 ], [ 186, 188 ] ]
[ "import java.io.InputStreamReader;\nimport java.io.LineNumberReader;\n\n/**\n * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_9_C\n * \n * @author eitatsuro\n * \n */\npublic class Main {\n \n public static final int WIN_POINTS=3;\n public static final int EVEN_POINTS=1;\n \n public static void main(String[] args) {\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String inputStr = null;\n long turnNum = 0;\n String taro = null;\n String hanako = null;\n long taroPoint=0;\n long hanakoPoint=0;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n \n // ????????????????????°?????????.\n if (lineNumReader.getLineNumber() == 1) {\n turnNum = Integer.parseInt(inputStr);\n }\n \n if (lineNumReader.getLineNumber() > 1) {\n String[] line = inputStr.split(\" \");\n taro = line[0];\n hanako = line[1];\n \n // ??????\n if (taro.compareTo(hanako) < 0) {\n hanakoPoint += WIN_POINTS;\n } else if (taro.compareTo(hanako) == 0) {\n taroPoint += EVEN_POINTS;\n hanakoPoint += EVEN_POINTS;\n } else {\n taroPoint += WIN_POINTS;\n }\n }\n\n\n \n if (lineNumReader.getLineNumber() == turnNum+1) {\n System.out.print(taroPoint);\n System.out.print(\" \");\n System.out.println(hanakoPoint);\n break;\n }\n }\n \n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }\n \n public static String shuffle(String original, int h) {\n StringBuilder shuffledStr = new StringBuilder(original);\n String temp = shuffledStr.substring(0, h);\n shuffledStr.delete(0, h);\n shuffledStr.append(temp);\n return shuffledStr.toString();\n \n }\n}", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.LineNumberReader;", "LineNumberReader", "java.io", "public class Main {\n \n public static final int WIN_POINTS=3;\n public static final int EVEN_POINTS=1;\n \n public static void main(String[] args) {\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String inputStr = null;\n long turnNum = 0;\n String taro = null;\n String hanako = null;\n long taroPoint=0;\n long hanakoPoint=0;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n \n // ????????????????????°?????????.\n if (lineNumReader.getLineNumber() == 1) {\n turnNum = Integer.parseInt(inputStr);\n }\n \n if (lineNumReader.getLineNumber() > 1) {\n String[] line = inputStr.split(\" \");\n taro = line[0];\n hanako = line[1];\n \n // ??????\n if (taro.compareTo(hanako) < 0) {\n hanakoPoint += WIN_POINTS;\n } else if (taro.compareTo(hanako) == 0) {\n taroPoint += EVEN_POINTS;\n hanakoPoint += EVEN_POINTS;\n } else {\n taroPoint += WIN_POINTS;\n }\n }\n\n\n \n if (lineNumReader.getLineNumber() == turnNum+1) {\n System.out.print(taroPoint);\n System.out.print(\" \");\n System.out.println(hanakoPoint);\n break;\n }\n }\n \n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }\n \n public static String shuffle(String original, int h) {\n StringBuilder shuffledStr = new StringBuilder(original);\n String temp = shuffledStr.substring(0, h);\n shuffledStr.delete(0, h);\n shuffledStr.append(temp);\n return shuffledStr.toString();\n \n }\n}", "Main", "public static final int WIN_POINTS=3;", "WIN_POINTS", "3", "public static final int EVEN_POINTS=1;", "EVEN_POINTS", "1", "public static void main(String[] args) {\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String inputStr = null;\n long turnNum = 0;\n String taro = null;\n String hanako = null;\n long taroPoint=0;\n long hanakoPoint=0;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n \n // ????????????????????°?????????.\n if (lineNumReader.getLineNumber() == 1) {\n turnNum = Integer.parseInt(inputStr);\n }\n \n if (lineNumReader.getLineNumber() > 1) {\n String[] line = inputStr.split(\" \");\n taro = line[0];\n hanako = line[1];\n \n // ??????\n if (taro.compareTo(hanako) < 0) {\n hanakoPoint += WIN_POINTS;\n } else if (taro.compareTo(hanako) == 0) {\n taroPoint += EVEN_POINTS;\n hanakoPoint += EVEN_POINTS;\n } else {\n taroPoint += WIN_POINTS;\n }\n }\n\n\n \n if (lineNumReader.getLineNumber() == turnNum+1) {\n System.out.print(taroPoint);\n System.out.print(\" \");\n System.out.println(hanakoPoint);\n break;\n }\n }\n \n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }", "main", "{\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String inputStr = null;\n long turnNum = 0;\n String taro = null;\n String hanako = null;\n long taroPoint=0;\n long hanakoPoint=0;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n \n // ????????????????????°?????????.\n if (lineNumReader.getLineNumber() == 1) {\n turnNum = Integer.parseInt(inputStr);\n }\n \n if (lineNumReader.getLineNumber() > 1) {\n String[] line = inputStr.split(\" \");\n taro = line[0];\n hanako = line[1];\n \n // ??????\n if (taro.compareTo(hanako) < 0) {\n hanakoPoint += WIN_POINTS;\n } else if (taro.compareTo(hanako) == 0) {\n taroPoint += EVEN_POINTS;\n hanakoPoint += EVEN_POINTS;\n } else {\n taroPoint += WIN_POINTS;\n }\n }\n\n\n \n if (lineNumReader.getLineNumber() == turnNum+1) {\n System.out.print(taroPoint);\n System.out.print(\" \");\n System.out.println(hanakoPoint);\n break;\n }\n }\n \n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }", "try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String inputStr = null;\n long turnNum = 0;\n String taro = null;\n String hanako = null;\n long taroPoint=0;\n long hanakoPoint=0;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n \n // ????????????????????°?????????.\n if (lineNumReader.getLineNumber() == 1) {\n turnNum = Integer.parseInt(inputStr);\n }\n \n if (lineNumReader.getLineNumber() > 1) {\n String[] line = inputStr.split(\" \");\n taro = line[0];\n hanako = line[1];\n \n // ??????\n if (taro.compareTo(hanako) < 0) {\n hanakoPoint += WIN_POINTS;\n } else if (taro.compareTo(hanako) == 0) {\n taroPoint += EVEN_POINTS;\n hanakoPoint += EVEN_POINTS;\n } else {\n taroPoint += WIN_POINTS;\n }\n }\n\n\n \n if (lineNumReader.getLineNumber() == turnNum+1) {\n System.out.print(taroPoint);\n System.out.print(\" \");\n System.out.println(hanakoPoint);\n break;\n }\n }\n \n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }", "catch (Exception e) {\n System.exit(-1);\n }", "Exception e", "{\n System.exit(-1);\n }", "System.exit(-1)", "System.exit", "System", "-1", "1", "{\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String inputStr = null;\n long turnNum = 0;\n String taro = null;\n String hanako = null;\n long taroPoint=0;\n long hanakoPoint=0;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n \n // ????????????????????°?????????.\n if (lineNumReader.getLineNumber() == 1) {\n turnNum = Integer.parseInt(inputStr);\n }\n \n if (lineNumReader.getLineNumber() > 1) {\n String[] line = inputStr.split(\" \");\n taro = line[0];\n hanako = line[1];\n \n // ??????\n if (taro.compareTo(hanako) < 0) {\n hanakoPoint += WIN_POINTS;\n } else if (taro.compareTo(hanako) == 0) {\n taroPoint += EVEN_POINTS;\n hanakoPoint += EVEN_POINTS;\n } else {\n taroPoint += WIN_POINTS;\n }\n }\n\n\n \n if (lineNumReader.getLineNumber() == turnNum+1) {\n System.out.print(taroPoint);\n System.out.print(\" \");\n System.out.println(hanakoPoint);\n break;\n }\n }\n \n lineNumReader.close();\n }", "LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));", "lineNumReader", "new LineNumberReader(\n new InputStreamReader(System.in))", "String inputStr = null;", "inputStr", "null", "long turnNum = 0;", "turnNum", "0", "String taro = null;", "taro", "null", "String hanako = null;", "hanako", "null", "long taroPoint=0;", "taroPoint", "0", "long hanakoPoint=0;", "hanakoPoint", "0", "while ((inputStr = lineNumReader.readLine()) != null) {\n \n // ????????????????????°?????????.\n if (lineNumReader.getLineNumber() == 1) {\n turnNum = Integer.parseInt(inputStr);\n }\n \n if (lineNumReader.getLineNumber() > 1) {\n String[] line = inputStr.split(\" \");\n taro = line[0];\n hanako = line[1];\n \n // ??????\n if (taro.compareTo(hanako) < 0) {\n hanakoPoint += WIN_POINTS;\n } else if (taro.compareTo(hanako) == 0) {\n taroPoint += EVEN_POINTS;\n hanakoPoint += EVEN_POINTS;\n } else {\n taroPoint += WIN_POINTS;\n }\n }\n\n\n \n if (lineNumReader.getLineNumber() == turnNum+1) {\n System.out.print(taroPoint);\n System.out.print(\" \");\n System.out.println(hanakoPoint);\n break;\n }\n }", "(inputStr = lineNumReader.readLine()) != null", "(inputStr = lineNumReader.readLine())", "inputStr", "lineNumReader.readLine()", "lineNumReader.readLine", "lineNumReader", "null", "{\n \n // ????????????????????°?????????.\n if (lineNumReader.getLineNumber() == 1) {\n turnNum = Integer.parseInt(inputStr);\n }\n \n if (lineNumReader.getLineNumber() > 1) {\n String[] line = inputStr.split(\" \");\n taro = line[0];\n hanako = line[1];\n \n // ??????\n if (taro.compareTo(hanako) < 0) {\n hanakoPoint += WIN_POINTS;\n } else if (taro.compareTo(hanako) == 0) {\n taroPoint += EVEN_POINTS;\n hanakoPoint += EVEN_POINTS;\n } else {\n taroPoint += WIN_POINTS;\n }\n }\n\n\n \n if (lineNumReader.getLineNumber() == turnNum+1) {\n System.out.print(taroPoint);\n System.out.print(\" \");\n System.out.println(hanakoPoint);\n break;\n }\n }", "if (lineNumReader.getLineNumber() == 1) {\n turnNum = Integer.parseInt(inputStr);\n }", "lineNumReader.getLineNumber() == 1", "lineNumReader.getLineNumber()", "lineNumReader.getLineNumber", "lineNumReader", "1", "{\n turnNum = Integer.parseInt(inputStr);\n }", "turnNum = Integer.parseInt(inputStr)", "turnNum", "Integer.parseInt(inputStr)", "Integer.parseInt", "Integer", "inputStr", "if (lineNumReader.getLineNumber() > 1) {\n String[] line = inputStr.split(\" \");\n taro = line[0];\n hanako = line[1];\n \n // ??????\n if (taro.compareTo(hanako) < 0) {\n hanakoPoint += WIN_POINTS;\n } else if (taro.compareTo(hanako) == 0) {\n taroPoint += EVEN_POINTS;\n hanakoPoint += EVEN_POINTS;\n } else {\n taroPoint += WIN_POINTS;\n }\n }", "lineNumReader.getLineNumber() > 1", "lineNumReader.getLineNumber()", "lineNumReader.getLineNumber", "lineNumReader", "1", "{\n String[] line = inputStr.split(\" \");\n taro = line[0];\n hanako = line[1];\n \n // ??????\n if (taro.compareTo(hanako) < 0) {\n hanakoPoint += WIN_POINTS;\n } else if (taro.compareTo(hanako) == 0) {\n taroPoint += EVEN_POINTS;\n hanakoPoint += EVEN_POINTS;\n } else {\n taroPoint += WIN_POINTS;\n }\n }", "String[] line = inputStr.split(\" \");", "line", "inputStr.split(\" \")", "inputStr.split", "inputStr", "\" \"", "taro = line[0]", "taro", "line[0]", "line", "0", "hanako = line[1]", "hanako", "line[1]", "line", "1", "if (taro.compareTo(hanako) < 0) {\n hanakoPoint += WIN_POINTS;\n } else if (taro.compareTo(hanako) == 0) {\n taroPoint += EVEN_POINTS;\n hanakoPoint += EVEN_POINTS;\n } else {\n taroPoint += WIN_POINTS;\n }", "taro.compareTo(hanako) < 0", "taro.compareTo(hanako)", "taro.compareTo", "taro", "hanako", "0", "{\n hanakoPoint += WIN_POINTS;\n }", "hanakoPoint += WIN_POINTS", "hanakoPoint", "WIN_POINTS", "if (taro.compareTo(hanako) == 0) {\n taroPoint += EVEN_POINTS;\n hanakoPoint += EVEN_POINTS;\n } else {\n taroPoint += WIN_POINTS;\n }", "taro.compareTo(hanako) == 0", "taro.compareTo(hanako)", "taro.compareTo", "taro", "hanako", "0", "{\n taroPoint += EVEN_POINTS;\n hanakoPoint += EVEN_POINTS;\n }", "taroPoint += EVEN_POINTS", "taroPoint", "EVEN_POINTS", "hanakoPoint += EVEN_POINTS", "hanakoPoint", "EVEN_POINTS", "{\n taroPoint += WIN_POINTS;\n }", "taroPoint += WIN_POINTS", "taroPoint", "WIN_POINTS", "if (lineNumReader.getLineNumber() == turnNum+1) {\n System.out.print(taroPoint);\n System.out.print(\" \");\n System.out.println(hanakoPoint);\n break;\n }", "lineNumReader.getLineNumber() == turnNum+1", "lineNumReader.getLineNumber()", "lineNumReader.getLineNumber", "lineNumReader", "turnNum+1", "turnNum", "1", "{\n System.out.print(taroPoint);\n System.out.print(\" \");\n System.out.println(hanakoPoint);\n break;\n }", "System.out.print(taroPoint)", "System.out.print", "System.out", "System", "System.out", "taroPoint", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.println(hanakoPoint)", "System.out.println", "System.out", "System", "System.out", "hanakoPoint", "break;", "lineNumReader.close()", "lineNumReader.close", "lineNumReader", "String[] args", "args", "public static String shuffle(String original, int h) {\n StringBuilder shuffledStr = new StringBuilder(original);\n String temp = shuffledStr.substring(0, h);\n shuffledStr.delete(0, h);\n shuffledStr.append(temp);\n return shuffledStr.toString();\n \n }", "shuffle", "{\n StringBuilder shuffledStr = new StringBuilder(original);\n String temp = shuffledStr.substring(0, h);\n shuffledStr.delete(0, h);\n shuffledStr.append(temp);\n return shuffledStr.toString();\n \n }", "StringBuilder shuffledStr = new StringBuilder(original);", "shuffledStr", "new StringBuilder(original)", "String temp = shuffledStr.substring(0, h);", "temp", "shuffledStr.substring(0, h)", "shuffledStr.substring", "shuffledStr", "0", "h", "shuffledStr.delete(0, h)", "shuffledStr.delete", "shuffledStr", "0", "h", "shuffledStr.append(temp)", "shuffledStr.append", "shuffledStr", "temp", "return shuffledStr.toString();", "shuffledStr.toString()", "shuffledStr.toString", "shuffledStr", "String original", "original", "int h", "h", "public class Main {\n \n public static final int WIN_POINTS=3;\n public static final int EVEN_POINTS=1;\n \n public static void main(String[] args) {\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String inputStr = null;\n long turnNum = 0;\n String taro = null;\n String hanako = null;\n long taroPoint=0;\n long hanakoPoint=0;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n \n // ????????????????????°?????????.\n if (lineNumReader.getLineNumber() == 1) {\n turnNum = Integer.parseInt(inputStr);\n }\n \n if (lineNumReader.getLineNumber() > 1) {\n String[] line = inputStr.split(\" \");\n taro = line[0];\n hanako = line[1];\n \n // ??????\n if (taro.compareTo(hanako) < 0) {\n hanakoPoint += WIN_POINTS;\n } else if (taro.compareTo(hanako) == 0) {\n taroPoint += EVEN_POINTS;\n hanakoPoint += EVEN_POINTS;\n } else {\n taroPoint += WIN_POINTS;\n }\n }\n\n\n \n if (lineNumReader.getLineNumber() == turnNum+1) {\n System.out.print(taroPoint);\n System.out.print(\" \");\n System.out.println(hanakoPoint);\n break;\n }\n }\n \n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }\n \n public static String shuffle(String original, int h) {\n StringBuilder shuffledStr = new StringBuilder(original);\n String temp = shuffledStr.substring(0, h);\n shuffledStr.delete(0, h);\n shuffledStr.append(temp);\n return shuffledStr.toString();\n \n }\n}", "public class Main {\n \n public static final int WIN_POINTS=3;\n public static final int EVEN_POINTS=1;\n \n public static void main(String[] args) {\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String inputStr = null;\n long turnNum = 0;\n String taro = null;\n String hanako = null;\n long taroPoint=0;\n long hanakoPoint=0;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n \n // ????????????????????°?????????.\n if (lineNumReader.getLineNumber() == 1) {\n turnNum = Integer.parseInt(inputStr);\n }\n \n if (lineNumReader.getLineNumber() > 1) {\n String[] line = inputStr.split(\" \");\n taro = line[0];\n hanako = line[1];\n \n // ??????\n if (taro.compareTo(hanako) < 0) {\n hanakoPoint += WIN_POINTS;\n } else if (taro.compareTo(hanako) == 0) {\n taroPoint += EVEN_POINTS;\n hanakoPoint += EVEN_POINTS;\n } else {\n taroPoint += WIN_POINTS;\n }\n }\n\n\n \n if (lineNumReader.getLineNumber() == turnNum+1) {\n System.out.print(taroPoint);\n System.out.print(\" \");\n System.out.println(hanakoPoint);\n break;\n }\n }\n \n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }\n \n public static String shuffle(String original, int h) {\n StringBuilder shuffledStr = new StringBuilder(original);\n String temp = shuffledStr.substring(0, h);\n shuffledStr.delete(0, h);\n shuffledStr.append(temp);\n return shuffledStr.toString();\n \n }\n}", "Main" ]
import java.io.InputStreamReader; import java.io.LineNumberReader; /** * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_9_C * * @author eitatsuro * */ public class Main { public static final int WIN_POINTS=3; public static final int EVEN_POINTS=1; public static void main(String[] args) { try { LineNumberReader lineNumReader = new LineNumberReader( new InputStreamReader(System.in)); String inputStr = null; long turnNum = 0; String taro = null; String hanako = null; long taroPoint=0; long hanakoPoint=0; while ((inputStr = lineNumReader.readLine()) != null) { // ????????????????????°?????????. if (lineNumReader.getLineNumber() == 1) { turnNum = Integer.parseInt(inputStr); } if (lineNumReader.getLineNumber() > 1) { String[] line = inputStr.split(" "); taro = line[0]; hanako = line[1]; // ?????? if (taro.compareTo(hanako) < 0) { hanakoPoint += WIN_POINTS; } else if (taro.compareTo(hanako) == 0) { taroPoint += EVEN_POINTS; hanakoPoint += EVEN_POINTS; } else { taroPoint += WIN_POINTS; } } if (lineNumReader.getLineNumber() == turnNum+1) { System.out.print(taroPoint); System.out.print(" "); System.out.println(hanakoPoint); break; } } lineNumReader.close(); } catch (Exception e) { System.exit(-1); } } public static String shuffle(String original, int h) { StringBuilder shuffledStr = new StringBuilder(original); String temp = shuffledStr.substring(0, h); shuffledStr.delete(0, h); shuffledStr.append(temp); return shuffledStr.toString(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 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 ], [ 88, 5 ], [ 88, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 10, 19 ], [ 19, 20 ], [ 19, 21 ], [ 10, 22 ], [ 22, 23 ], [ 22, 24 ], [ 10, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 34, 35 ], [ 25, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 37, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 37, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 49, 54 ], [ 48, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 48, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 60, 65 ], [ 59, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 59, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 73, 74 ], [ 10, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 81, 81 ], [ 81, 82 ], [ 81, 83 ], [ 81, 84 ], [ 6, 85 ], [ 85, 86 ], [ 0, 87 ], [ 87, 88 ], [ 87, 89 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\ttry(Scanner sc = new Scanner(System.in)){\n\t\t\tint n = sc.nextInt();\n\t\t\tint TaroPoint = 0;\n\t\t\tint HanakoPoint = 0;\n\n\t\t\tfor(int i = 0;i < n;i++) {\n\t\t\t\tString TaroCard = sc.next();\n\t\t\t\tString HanakoCard = sc.next();\n\n\t\t\t\tif(TaroCard.compareTo(HanakoCard) > 0) {\n\t\t\t\t\tTaroPoint +=3;\n\t\t\t\t}else if(HanakoCard.compareTo(TaroCard) > 0){\n\t\t\t\t\tHanakoPoint +=3;\n\t\t\t\t}else {\n\t\t\t\t\tTaroPoint ++;\n\t\t\t\t\tHanakoPoint ++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(TaroPoint+\" \"+HanakoPoint);\n\t\t}\n\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String[] args) {\n\t\ttry(Scanner sc = new Scanner(System.in)){\n\t\t\tint n = sc.nextInt();\n\t\t\tint TaroPoint = 0;\n\t\t\tint HanakoPoint = 0;\n\n\t\t\tfor(int i = 0;i < n;i++) {\n\t\t\t\tString TaroCard = sc.next();\n\t\t\t\tString HanakoCard = sc.next();\n\n\t\t\t\tif(TaroCard.compareTo(HanakoCard) > 0) {\n\t\t\t\t\tTaroPoint +=3;\n\t\t\t\t}else if(HanakoCard.compareTo(TaroCard) > 0){\n\t\t\t\t\tHanakoPoint +=3;\n\t\t\t\t}else {\n\t\t\t\t\tTaroPoint ++;\n\t\t\t\t\tHanakoPoint ++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(TaroPoint+\" \"+HanakoPoint);\n\t\t}\n\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\ttry(Scanner sc = new Scanner(System.in)){\n\t\t\tint n = sc.nextInt();\n\t\t\tint TaroPoint = 0;\n\t\t\tint HanakoPoint = 0;\n\n\t\t\tfor(int i = 0;i < n;i++) {\n\t\t\t\tString TaroCard = sc.next();\n\t\t\t\tString HanakoCard = sc.next();\n\n\t\t\t\tif(TaroCard.compareTo(HanakoCard) > 0) {\n\t\t\t\t\tTaroPoint +=3;\n\t\t\t\t}else if(HanakoCard.compareTo(TaroCard) > 0){\n\t\t\t\t\tHanakoPoint +=3;\n\t\t\t\t}else {\n\t\t\t\t\tTaroPoint ++;\n\t\t\t\t\tHanakoPoint ++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(TaroPoint+\" \"+HanakoPoint);\n\t\t}\n\n\t}", "main", "{\n\t\ttry(Scanner sc = new Scanner(System.in)){\n\t\t\tint n = sc.nextInt();\n\t\t\tint TaroPoint = 0;\n\t\t\tint HanakoPoint = 0;\n\n\t\t\tfor(int i = 0;i < n;i++) {\n\t\t\t\tString TaroCard = sc.next();\n\t\t\t\tString HanakoCard = sc.next();\n\n\t\t\t\tif(TaroCard.compareTo(HanakoCard) > 0) {\n\t\t\t\t\tTaroPoint +=3;\n\t\t\t\t}else if(HanakoCard.compareTo(TaroCard) > 0){\n\t\t\t\t\tHanakoPoint +=3;\n\t\t\t\t}else {\n\t\t\t\t\tTaroPoint ++;\n\t\t\t\t\tHanakoPoint ++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(TaroPoint+\" \"+HanakoPoint);\n\t\t}\n\n\t}", "try(Scanner sc = new Scanner(System.in)){\n\t\t\tint n = sc.nextInt();\n\t\t\tint TaroPoint = 0;\n\t\t\tint HanakoPoint = 0;\n\n\t\t\tfor(int i = 0;i < n;i++) {\n\t\t\t\tString TaroCard = sc.next();\n\t\t\t\tString HanakoCard = sc.next();\n\n\t\t\t\tif(TaroCard.compareTo(HanakoCard) > 0) {\n\t\t\t\t\tTaroPoint +=3;\n\t\t\t\t}else if(HanakoCard.compareTo(TaroCard) > 0){\n\t\t\t\t\tHanakoPoint +=3;\n\t\t\t\t}else {\n\t\t\t\t\tTaroPoint ++;\n\t\t\t\t\tHanakoPoint ++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(TaroPoint+\" \"+HanakoPoint);\n\t\t}", "{\n\t\t\tint n = sc.nextInt();\n\t\t\tint TaroPoint = 0;\n\t\t\tint HanakoPoint = 0;\n\n\t\t\tfor(int i = 0;i < n;i++) {\n\t\t\t\tString TaroCard = sc.next();\n\t\t\t\tString HanakoCard = sc.next();\n\n\t\t\t\tif(TaroCard.compareTo(HanakoCard) > 0) {\n\t\t\t\t\tTaroPoint +=3;\n\t\t\t\t}else if(HanakoCard.compareTo(TaroCard) > 0){\n\t\t\t\t\tHanakoPoint +=3;\n\t\t\t\t}else {\n\t\t\t\t\tTaroPoint ++;\n\t\t\t\t\tHanakoPoint ++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(TaroPoint+\" \"+HanakoPoint);\n\t\t}", "Scanner sc = new Scanner(System.in)", "Scanner sc = new Scanner(System.in)", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int TaroPoint = 0;", "TaroPoint", "0", "int HanakoPoint = 0;", "HanakoPoint", "0", "for(int i = 0;i < n;i++) {\n\t\t\t\tString TaroCard = sc.next();\n\t\t\t\tString HanakoCard = sc.next();\n\n\t\t\t\tif(TaroCard.compareTo(HanakoCard) > 0) {\n\t\t\t\t\tTaroPoint +=3;\n\t\t\t\t}else if(HanakoCard.compareTo(TaroCard) > 0){\n\t\t\t\t\tHanakoPoint +=3;\n\t\t\t\t}else {\n\t\t\t\t\tTaroPoint ++;\n\t\t\t\t\tHanakoPoint ++;\n\t\t\t\t}\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tString TaroCard = sc.next();\n\t\t\t\tString HanakoCard = sc.next();\n\n\t\t\t\tif(TaroCard.compareTo(HanakoCard) > 0) {\n\t\t\t\t\tTaroPoint +=3;\n\t\t\t\t}else if(HanakoCard.compareTo(TaroCard) > 0){\n\t\t\t\t\tHanakoPoint +=3;\n\t\t\t\t}else {\n\t\t\t\t\tTaroPoint ++;\n\t\t\t\t\tHanakoPoint ++;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tString TaroCard = sc.next();\n\t\t\t\tString HanakoCard = sc.next();\n\n\t\t\t\tif(TaroCard.compareTo(HanakoCard) > 0) {\n\t\t\t\t\tTaroPoint +=3;\n\t\t\t\t}else if(HanakoCard.compareTo(TaroCard) > 0){\n\t\t\t\t\tHanakoPoint +=3;\n\t\t\t\t}else {\n\t\t\t\t\tTaroPoint ++;\n\t\t\t\t\tHanakoPoint ++;\n\t\t\t\t}\n\t\t\t}", "String TaroCard = sc.next();", "TaroCard", "sc.next()", "sc.next", "sc", "String HanakoCard = sc.next();", "HanakoCard", "sc.next()", "sc.next", "sc", "if(TaroCard.compareTo(HanakoCard) > 0) {\n\t\t\t\t\tTaroPoint +=3;\n\t\t\t\t}else if(HanakoCard.compareTo(TaroCard) > 0){\n\t\t\t\t\tHanakoPoint +=3;\n\t\t\t\t}else {\n\t\t\t\t\tTaroPoint ++;\n\t\t\t\t\tHanakoPoint ++;\n\t\t\t\t}", "TaroCard.compareTo(HanakoCard) > 0", "TaroCard.compareTo(HanakoCard)", "TaroCard.compareTo", "TaroCard", "HanakoCard", "0", "{\n\t\t\t\t\tTaroPoint +=3;\n\t\t\t\t}", "TaroPoint +=3", "TaroPoint", "3", "if(HanakoCard.compareTo(TaroCard) > 0){\n\t\t\t\t\tHanakoPoint +=3;\n\t\t\t\t}else {\n\t\t\t\t\tTaroPoint ++;\n\t\t\t\t\tHanakoPoint ++;\n\t\t\t\t}", "HanakoCard.compareTo(TaroCard) > 0", "HanakoCard.compareTo(TaroCard)", "HanakoCard.compareTo", "HanakoCard", "TaroCard", "0", "{\n\t\t\t\t\tHanakoPoint +=3;\n\t\t\t\t}", "HanakoPoint +=3", "HanakoPoint", "3", "{\n\t\t\t\t\tTaroPoint ++;\n\t\t\t\t\tHanakoPoint ++;\n\t\t\t\t}", "TaroPoint ++", "TaroPoint", "HanakoPoint ++", "HanakoPoint", "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) {\n\t\ttry(Scanner sc = new Scanner(System.in)){\n\t\t\tint n = sc.nextInt();\n\t\t\tint TaroPoint = 0;\n\t\t\tint HanakoPoint = 0;\n\n\t\t\tfor(int i = 0;i < n;i++) {\n\t\t\t\tString TaroCard = sc.next();\n\t\t\t\tString HanakoCard = sc.next();\n\n\t\t\t\tif(TaroCard.compareTo(HanakoCard) > 0) {\n\t\t\t\t\tTaroPoint +=3;\n\t\t\t\t}else if(HanakoCard.compareTo(TaroCard) > 0){\n\t\t\t\t\tHanakoPoint +=3;\n\t\t\t\t}else {\n\t\t\t\t\tTaroPoint ++;\n\t\t\t\t\tHanakoPoint ++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(TaroPoint+\" \"+HanakoPoint);\n\t\t}\n\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args) {\n\t\ttry(Scanner sc = new Scanner(System.in)){\n\t\t\tint n = sc.nextInt();\n\t\t\tint TaroPoint = 0;\n\t\t\tint HanakoPoint = 0;\n\n\t\t\tfor(int i = 0;i < n;i++) {\n\t\t\t\tString TaroCard = sc.next();\n\t\t\t\tString HanakoCard = sc.next();\n\n\t\t\t\tif(TaroCard.compareTo(HanakoCard) > 0) {\n\t\t\t\t\tTaroPoint +=3;\n\t\t\t\t}else if(HanakoCard.compareTo(TaroCard) > 0){\n\t\t\t\t\tHanakoPoint +=3;\n\t\t\t\t}else {\n\t\t\t\t\tTaroPoint ++;\n\t\t\t\t\tHanakoPoint ++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(TaroPoint+\" \"+HanakoPoint);\n\t\t}\n\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args) { try(Scanner sc = new Scanner(System.in)){ int n = sc.nextInt(); int TaroPoint = 0; int HanakoPoint = 0; for(int i = 0;i < n;i++) { String TaroCard = sc.next(); String HanakoCard = sc.next(); if(TaroCard.compareTo(HanakoCard) > 0) { TaroPoint +=3; }else if(HanakoCard.compareTo(TaroCard) > 0){ HanakoPoint +=3; }else { TaroPoint ++; HanakoPoint ++; } } System.out.println(TaroPoint+" "+HanakoPoint); } } }
[ 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, 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, 41, 13, 18, 13, 17, 41, 13, 18, 13, 17, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 111, 11 ], [ 111, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 14, 29 ], [ 29, 30 ], [ 29, 31 ], [ 14, 32 ], [ 32, 33 ], [ 32, 34 ], [ 14, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 47, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 47, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 47, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 47, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 70, 75 ], [ 69, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 69, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 81, 86 ], [ 80, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 80, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 95, 96 ], [ 95, 97 ], [ 14, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 104, 104 ], [ 104, 105 ], [ 104, 106 ], [ 104, 107 ], [ 12, 108 ], [ 108, 109 ], [ 0, 110 ], [ 110, 111 ], [ 110, 112 ] ]
[ "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\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// ???????????°??\\???\n\t\tString game_times = input.readLine();\n\n\t\tint game_num = Integer.parseInt(game_times);\n\n\t\t// ????????¨???????????????\n\t\tint taro_point = 0;\n\n\t\t// ????????¨?????±?????????\n\t\tint hanako_point = 0;\n\n\t\t// ??????????????°????????????????????°?????°?????????\n\t\tfor (int match_spot = 0; match_spot < game_num; match_spot++) {\n\n\t\t\tString two_person_card = input.readLine();\n\n\t\t\t// ???????????§?????????????????????????????±????????\\???\n\t\t\tString[] cards_array = two_person_card.split(\" \");\n\n\t\t\tString taro_card = cards_array[0];\n\n\t\t\tString hanako_card = cards_array[1];\n\n\t\t\t// ????????????????????¨??±?????????????????????????????????????????????????????????????´¢\n\t\t\tif (taro_card.compareToIgnoreCase(hanako_card) > 0) {\n\n\t\t\t\ttaro_point += 3;\n\n\t\t\t} else if (taro_card.compareToIgnoreCase(hanako_card) < 0) {\n\n\t\t\t\thanako_point += 3;\n\n\t\t\t\t// ??????????????????\n\t\t\t} else {\n\n\t\t\t\ttaro_point += 1;\n\n\t\t\t\thanako_point += 1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(taro_point + \" \" + hanako_point);\n\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// ???????????°??\\???\n\t\tString game_times = input.readLine();\n\n\t\tint game_num = Integer.parseInt(game_times);\n\n\t\t// ????????¨???????????????\n\t\tint taro_point = 0;\n\n\t\t// ????????¨?????±?????????\n\t\tint hanako_point = 0;\n\n\t\t// ??????????????°????????????????????°?????°?????????\n\t\tfor (int match_spot = 0; match_spot < game_num; match_spot++) {\n\n\t\t\tString two_person_card = input.readLine();\n\n\t\t\t// ???????????§?????????????????????????????±????????\\???\n\t\t\tString[] cards_array = two_person_card.split(\" \");\n\n\t\t\tString taro_card = cards_array[0];\n\n\t\t\tString hanako_card = cards_array[1];\n\n\t\t\t// ????????????????????¨??±?????????????????????????????????????????????????????????????´¢\n\t\t\tif (taro_card.compareToIgnoreCase(hanako_card) > 0) {\n\n\t\t\t\ttaro_point += 3;\n\n\t\t\t} else if (taro_card.compareToIgnoreCase(hanako_card) < 0) {\n\n\t\t\t\thanako_point += 3;\n\n\t\t\t\t// ??????????????????\n\t\t\t} else {\n\n\t\t\t\ttaro_point += 1;\n\n\t\t\t\thanako_point += 1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(taro_point + \" \" + hanako_point);\n\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// ???????????°??\\???\n\t\tString game_times = input.readLine();\n\n\t\tint game_num = Integer.parseInt(game_times);\n\n\t\t// ????????¨???????????????\n\t\tint taro_point = 0;\n\n\t\t// ????????¨?????±?????????\n\t\tint hanako_point = 0;\n\n\t\t// ??????????????°????????????????????°?????°?????????\n\t\tfor (int match_spot = 0; match_spot < game_num; match_spot++) {\n\n\t\t\tString two_person_card = input.readLine();\n\n\t\t\t// ???????????§?????????????????????????????±????????\\???\n\t\t\tString[] cards_array = two_person_card.split(\" \");\n\n\t\t\tString taro_card = cards_array[0];\n\n\t\t\tString hanako_card = cards_array[1];\n\n\t\t\t// ????????????????????¨??±?????????????????????????????????????????????????????????????´¢\n\t\t\tif (taro_card.compareToIgnoreCase(hanako_card) > 0) {\n\n\t\t\t\ttaro_point += 3;\n\n\t\t\t} else if (taro_card.compareToIgnoreCase(hanako_card) < 0) {\n\n\t\t\t\thanako_point += 3;\n\n\t\t\t\t// ??????????????????\n\t\t\t} else {\n\n\t\t\t\ttaro_point += 1;\n\n\t\t\t\thanako_point += 1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(taro_point + \" \" + hanako_point);\n\n\t}", "main", "{\n\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// ???????????°??\\???\n\t\tString game_times = input.readLine();\n\n\t\tint game_num = Integer.parseInt(game_times);\n\n\t\t// ????????¨???????????????\n\t\tint taro_point = 0;\n\n\t\t// ????????¨?????±?????????\n\t\tint hanako_point = 0;\n\n\t\t// ??????????????°????????????????????°?????°?????????\n\t\tfor (int match_spot = 0; match_spot < game_num; match_spot++) {\n\n\t\t\tString two_person_card = input.readLine();\n\n\t\t\t// ???????????§?????????????????????????????±????????\\???\n\t\t\tString[] cards_array = two_person_card.split(\" \");\n\n\t\t\tString taro_card = cards_array[0];\n\n\t\t\tString hanako_card = cards_array[1];\n\n\t\t\t// ????????????????????¨??±?????????????????????????????????????????????????????????????´¢\n\t\t\tif (taro_card.compareToIgnoreCase(hanako_card) > 0) {\n\n\t\t\t\ttaro_point += 3;\n\n\t\t\t} else if (taro_card.compareToIgnoreCase(hanako_card) < 0) {\n\n\t\t\t\thanako_point += 3;\n\n\t\t\t\t// ??????????????????\n\t\t\t} else {\n\n\t\t\t\ttaro_point += 1;\n\n\t\t\t\thanako_point += 1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(taro_point + \" \" + hanako_point);\n\n\t}", "BufferedReader input = new BufferedReader(new InputStreamReader(System.in));", "input", "new BufferedReader(new InputStreamReader(System.in))", "String game_times = input.readLine();", "game_times", "input.readLine()", "input.readLine", "input", "int game_num = Integer.parseInt(game_times);", "game_num", "Integer.parseInt(game_times)", "Integer.parseInt", "Integer", "game_times", "int taro_point = 0;", "taro_point", "0", "int hanako_point = 0;", "hanako_point", "0", "for (int match_spot = 0; match_spot < game_num; match_spot++) {\n\n\t\t\tString two_person_card = input.readLine();\n\n\t\t\t// ???????????§?????????????????????????????±????????\\???\n\t\t\tString[] cards_array = two_person_card.split(\" \");\n\n\t\t\tString taro_card = cards_array[0];\n\n\t\t\tString hanako_card = cards_array[1];\n\n\t\t\t// ????????????????????¨??±?????????????????????????????????????????????????????????????´¢\n\t\t\tif (taro_card.compareToIgnoreCase(hanako_card) > 0) {\n\n\t\t\t\ttaro_point += 3;\n\n\t\t\t} else if (taro_card.compareToIgnoreCase(hanako_card) < 0) {\n\n\t\t\t\thanako_point += 3;\n\n\t\t\t\t// ??????????????????\n\t\t\t} else {\n\n\t\t\t\ttaro_point += 1;\n\n\t\t\t\thanako_point += 1;\n\t\t\t}\n\t\t}", "int match_spot = 0;", "int match_spot = 0;", "match_spot", "0", "match_spot < game_num", "match_spot", "game_num", "match_spot++", "match_spot++", "match_spot", "{\n\n\t\t\tString two_person_card = input.readLine();\n\n\t\t\t// ???????????§?????????????????????????????±????????\\???\n\t\t\tString[] cards_array = two_person_card.split(\" \");\n\n\t\t\tString taro_card = cards_array[0];\n\n\t\t\tString hanako_card = cards_array[1];\n\n\t\t\t// ????????????????????¨??±?????????????????????????????????????????????????????????????´¢\n\t\t\tif (taro_card.compareToIgnoreCase(hanako_card) > 0) {\n\n\t\t\t\ttaro_point += 3;\n\n\t\t\t} else if (taro_card.compareToIgnoreCase(hanako_card) < 0) {\n\n\t\t\t\thanako_point += 3;\n\n\t\t\t\t// ??????????????????\n\t\t\t} else {\n\n\t\t\t\ttaro_point += 1;\n\n\t\t\t\thanako_point += 1;\n\t\t\t}\n\t\t}", "{\n\n\t\t\tString two_person_card = input.readLine();\n\n\t\t\t// ???????????§?????????????????????????????±????????\\???\n\t\t\tString[] cards_array = two_person_card.split(\" \");\n\n\t\t\tString taro_card = cards_array[0];\n\n\t\t\tString hanako_card = cards_array[1];\n\n\t\t\t// ????????????????????¨??±?????????????????????????????????????????????????????????????´¢\n\t\t\tif (taro_card.compareToIgnoreCase(hanako_card) > 0) {\n\n\t\t\t\ttaro_point += 3;\n\n\t\t\t} else if (taro_card.compareToIgnoreCase(hanako_card) < 0) {\n\n\t\t\t\thanako_point += 3;\n\n\t\t\t\t// ??????????????????\n\t\t\t} else {\n\n\t\t\t\ttaro_point += 1;\n\n\t\t\t\thanako_point += 1;\n\t\t\t}\n\t\t}", "String two_person_card = input.readLine();", "two_person_card", "input.readLine()", "input.readLine", "input", "String[] cards_array = two_person_card.split(\" \");", "cards_array", "two_person_card.split(\" \")", "two_person_card.split", "two_person_card", "\" \"", "String taro_card = cards_array[0];", "taro_card", "cards_array[0]", "cards_array", "0", "String hanako_card = cards_array[1];", "hanako_card", "cards_array[1]", "cards_array", "1", "if (taro_card.compareToIgnoreCase(hanako_card) > 0) {\n\n\t\t\t\ttaro_point += 3;\n\n\t\t\t} else if (taro_card.compareToIgnoreCase(hanako_card) < 0) {\n\n\t\t\t\thanako_point += 3;\n\n\t\t\t\t// ??????????????????\n\t\t\t} else {\n\n\t\t\t\ttaro_point += 1;\n\n\t\t\t\thanako_point += 1;\n\t\t\t}", "taro_card.compareToIgnoreCase(hanako_card) > 0", "taro_card.compareToIgnoreCase(hanako_card)", "taro_card.compareToIgnoreCase", "taro_card", "hanako_card", "0", "{\n\n\t\t\t\ttaro_point += 3;\n\n\t\t\t}", "taro_point += 3", "taro_point", "3", "if (taro_card.compareToIgnoreCase(hanako_card) < 0) {\n\n\t\t\t\thanako_point += 3;\n\n\t\t\t\t// ??????????????????\n\t\t\t} else {\n\n\t\t\t\ttaro_point += 1;\n\n\t\t\t\thanako_point += 1;\n\t\t\t}", "taro_card.compareToIgnoreCase(hanako_card) < 0", "taro_card.compareToIgnoreCase(hanako_card)", "taro_card.compareToIgnoreCase", "taro_card", "hanako_card", "0", "{\n\n\t\t\t\thanako_point += 3;\n\n\t\t\t\t// ??????????????????\n\t\t\t}", "hanako_point += 3", "hanako_point", "3", "{\n\n\t\t\t\ttaro_point += 1;\n\n\t\t\t\thanako_point += 1;\n\t\t\t}", "taro_point += 1", "taro_point", "1", "hanako_point += 1", "hanako_point", "1", "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\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// ???????????°??\\???\n\t\tString game_times = input.readLine();\n\n\t\tint game_num = Integer.parseInt(game_times);\n\n\t\t// ????????¨???????????????\n\t\tint taro_point = 0;\n\n\t\t// ????????¨?????±?????????\n\t\tint hanako_point = 0;\n\n\t\t// ??????????????°????????????????????°?????°?????????\n\t\tfor (int match_spot = 0; match_spot < game_num; match_spot++) {\n\n\t\t\tString two_person_card = input.readLine();\n\n\t\t\t// ???????????§?????????????????????????????±????????\\???\n\t\t\tString[] cards_array = two_person_card.split(\" \");\n\n\t\t\tString taro_card = cards_array[0];\n\n\t\t\tString hanako_card = cards_array[1];\n\n\t\t\t// ????????????????????¨??±?????????????????????????????????????????????????????????????´¢\n\t\t\tif (taro_card.compareToIgnoreCase(hanako_card) > 0) {\n\n\t\t\t\ttaro_point += 3;\n\n\t\t\t} else if (taro_card.compareToIgnoreCase(hanako_card) < 0) {\n\n\t\t\t\thanako_point += 3;\n\n\t\t\t\t// ??????????????????\n\t\t\t} else {\n\n\t\t\t\ttaro_point += 1;\n\n\t\t\t\thanako_point += 1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(taro_point + \" \" + hanako_point);\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// ???????????°??\\???\n\t\tString game_times = input.readLine();\n\n\t\tint game_num = Integer.parseInt(game_times);\n\n\t\t// ????????¨???????????????\n\t\tint taro_point = 0;\n\n\t\t// ????????¨?????±?????????\n\t\tint hanako_point = 0;\n\n\t\t// ??????????????°????????????????????°?????°?????????\n\t\tfor (int match_spot = 0; match_spot < game_num; match_spot++) {\n\n\t\t\tString two_person_card = input.readLine();\n\n\t\t\t// ???????????§?????????????????????????????±????????\\???\n\t\t\tString[] cards_array = two_person_card.split(\" \");\n\n\t\t\tString taro_card = cards_array[0];\n\n\t\t\tString hanako_card = cards_array[1];\n\n\t\t\t// ????????????????????¨??±?????????????????????????????????????????????????????????????´¢\n\t\t\tif (taro_card.compareToIgnoreCase(hanako_card) > 0) {\n\n\t\t\t\ttaro_point += 3;\n\n\t\t\t} else if (taro_card.compareToIgnoreCase(hanako_card) < 0) {\n\n\t\t\t\thanako_point += 3;\n\n\t\t\t\t// ??????????????????\n\t\t\t} else {\n\n\t\t\t\ttaro_point += 1;\n\n\t\t\t\thanako_point += 1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(taro_point + \" \" + hanako_point);\n\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); // ???????????°??\??? String game_times = input.readLine(); int game_num = Integer.parseInt(game_times); // ????????¨??????????????? int taro_point = 0; // ????????¨?????±????????? int hanako_point = 0; // ??????????????°????????????????????°?????°????????? for (int match_spot = 0; match_spot < game_num; match_spot++) { String two_person_card = input.readLine(); // ???????????§?????????????????????????????±????????\??? String[] cards_array = two_person_card.split(" "); String taro_card = cards_array[0]; String hanako_card = cards_array[1]; // ????????????????????¨??±?????????????????????????????????????????????????????????????´¢ if (taro_card.compareToIgnoreCase(hanako_card) > 0) { taro_point += 3; } else if (taro_card.compareToIgnoreCase(hanako_card) < 0) { hanako_point += 3; // ?????????????????? } else { taro_point += 1; hanako_point += 1; } } System.out.println(taro_point + " " + hanako_point); } }
[ 7, 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, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 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, 14, 2, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 13, 13, 0, 13, 13, 0, 13, 13, 11, 1, 41, 13, 17, 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, 13, 30, 0, 13, 17, 0, 13, 17, 3, 14, 2, 13, 13, 30, 0, 13, 17, 30, 0, 13, 17, 30, 9, 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 ], [ 225, 11 ], [ 225, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 16, 20 ], [ 20, 21 ], [ 20, 22 ], [ 16, 23 ], [ 23, 24 ], [ 23, 25 ], [ 16, 26 ], [ 26, 27 ], [ 26, 28 ], [ 16, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 34, 35 ], [ 35, 36 ], [ 16, 37 ], [ 37, 38 ], [ 37, 39 ], [ 16, 40 ], [ 40, 41 ], [ 40, 42 ], [ 16, 43 ], [ 43, 44 ], [ 43, 45 ], [ 16, 46 ], [ 46, 47 ], [ 46, 48 ], [ 16, 49 ], [ 49, 50 ], [ 49, 51 ], [ 16, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 52, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 69, 70 ], [ 64, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 74, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 64, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 88, 93 ], [ 85, 94 ], [ 94, 95 ], [ 95, 96 ], [ 64, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 102, 103 ], [ 98, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 97, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 97, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 118, 119 ], [ 118, 120 ], [ 114, 121 ], [ 121, 122 ], [ 121, 123 ], [ 64, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 129, 130 ], [ 129, 131 ], [ 124, 132 ], [ 132, 133 ], [ 133, 134 ], [ 124, 135 ], [ 136, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 139, 142 ], [ 138, 143 ], [ 143, 144 ], [ 144, 145 ], [ 143, 146 ], [ 137, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 147, 151 ], [ 137, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 154, 157 ], [ 153, 158 ], [ 158, 159 ], [ 159, 160 ], [ 158, 161 ], [ 152, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 162, 166 ], [ 152, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 170, 171 ], [ 170, 172 ], [ 167, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 175, 177 ], [ 174, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 178, 182 ], [ 182, 183 ], [ 182, 184 ], [ 178, 185 ], [ 174, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 186, 190 ], [ 190, 191 ], [ 191, 192 ], [ 191, 193 ], [ 186, 194 ], [ 194, 195 ], [ 195, 196 ], [ 195, 197 ], [ 167, 198 ], [ 198, 199 ], [ 64, 200 ], [ 200, 201 ], [ 201, 202 ], [ 200, 203 ], [ 64, 204 ], [ 204, 205 ], [ 205, 206 ], [ 204, 207 ], [ 64, 208 ], [ 208, 209 ], [ 209, 210 ], [ 208, 211 ], [ 16, 212 ], [ 212, 213 ], [ 213, 214 ], [ 214, 215 ], [ 214, 216 ], [ 212, 217 ], [ 218, 218 ], [ 218, 219 ], [ 218, 220 ], [ 218, 221 ], [ 12, 222 ], [ 222, 223 ], [ 0, 224 ], [ 224, 225 ], [ 224, 226 ] ]
[ "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 \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 int turn = Integer.parseInt(br.readLine());\n int pointA = 0;\n int pointB = 0;\n int lenA = 0;\n int lenB = 0;\n int len = 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 if( (lenA = wordA.length()) < (lenB = wordB.length()) ) len = wordA.length();\n else if( lenA > lenB ) len = lenB;\n else len = lenA;\n\n for ( int j = 0; j < len; j++) {\n\n if ( wordA.charAt(j) > wordB.charAt(j)){\n pointA += 3;\n break;\n } else if ( wordB.charAt(j) > wordA.charAt(j) ) {\n pointB += 3;\n break;\n } else if ( j == (len-1) ) {\n if(lenA == lenB){\n pointA += 1;\n pointB += 1;\n break;\n } else if (lenA > lenB) {\n pointA += 3;\n } else {\n pointB += 3;\n }\n } else {\n continue;\n }\n }\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", "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 int turn = Integer.parseInt(br.readLine());\n int pointA = 0;\n int pointB = 0;\n int lenA = 0;\n int lenB = 0;\n int len = 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 if( (lenA = wordA.length()) < (lenB = wordB.length()) ) len = wordA.length();\n else if( lenA > lenB ) len = lenB;\n else len = lenA;\n\n for ( int j = 0; j < len; j++) {\n\n if ( wordA.charAt(j) > wordB.charAt(j)){\n pointA += 3;\n break;\n } else if ( wordB.charAt(j) > wordA.charAt(j) ) {\n pointB += 3;\n break;\n } else if ( j == (len-1) ) {\n if(lenA == lenB){\n pointA += 1;\n pointB += 1;\n break;\n } else if (lenA > lenB) {\n pointA += 3;\n } else {\n pointB += 3;\n }\n } else {\n continue;\n }\n }\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 int turn = Integer.parseInt(br.readLine());\n int pointA = 0;\n int pointB = 0;\n int lenA = 0;\n int lenB = 0;\n int len = 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 if( (lenA = wordA.length()) < (lenB = wordB.length()) ) len = wordA.length();\n else if( lenA > lenB ) len = lenB;\n else len = lenA;\n\n for ( int j = 0; j < len; j++) {\n\n if ( wordA.charAt(j) > wordB.charAt(j)){\n pointA += 3;\n break;\n } else if ( wordB.charAt(j) > wordA.charAt(j) ) {\n pointB += 3;\n break;\n } else if ( j == (len-1) ) {\n if(lenA == lenB){\n pointA += 1;\n pointB += 1;\n break;\n } else if (lenA > lenB) {\n pointA += 3;\n } else {\n pointB += 3;\n }\n } else {\n continue;\n }\n }\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 int turn = Integer.parseInt(br.readLine());\n int pointA = 0;\n int pointB = 0;\n int lenA = 0;\n int lenB = 0;\n int len = 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 if( (lenA = wordA.length()) < (lenB = wordB.length()) ) len = wordA.length();\n else if( lenA > lenB ) len = lenB;\n else len = lenA;\n\n for ( int j = 0; j < len; j++) {\n\n if ( wordA.charAt(j) > wordB.charAt(j)){\n pointA += 3;\n break;\n } else if ( wordB.charAt(j) > wordA.charAt(j) ) {\n pointB += 3;\n break;\n } else if ( j == (len-1) ) {\n if(lenA == lenB){\n pointA += 1;\n pointB += 1;\n break;\n } else if (lenA > lenB) {\n pointA += 3;\n } else {\n pointB += 3;\n }\n } else {\n continue;\n }\n }\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 int turn = Integer.parseInt(br.readLine());\n int pointA = 0;\n int pointB = 0;\n int lenA = 0;\n int lenB = 0;\n int len = 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 if( (lenA = wordA.length()) < (lenB = wordB.length()) ) len = wordA.length();\n else if( lenA > lenB ) len = lenB;\n else len = lenA;\n\n for ( int j = 0; j < len; j++) {\n\n if ( wordA.charAt(j) > wordB.charAt(j)){\n pointA += 3;\n break;\n } else if ( wordB.charAt(j) > wordA.charAt(j) ) {\n pointB += 3;\n break;\n } else if ( j == (len-1) ) {\n if(lenA == lenB){\n pointA += 1;\n pointB += 1;\n break;\n } else if (lenA > lenB) {\n pointA += 3;\n } else {\n pointB += 3;\n }\n } else {\n continue;\n }\n }\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 int turn = Integer.parseInt(br.readLine());\n int pointA = 0;\n int pointB = 0;\n int lenA = 0;\n int lenB = 0;\n int len = 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 if( (lenA = wordA.length()) < (lenB = wordB.length()) ) len = wordA.length();\n else if( lenA > lenB ) len = lenB;\n else len = lenA;\n\n for ( int j = 0; j < len; j++) {\n\n if ( wordA.charAt(j) > wordB.charAt(j)){\n pointA += 3;\n break;\n } else if ( wordB.charAt(j) > wordA.charAt(j) ) {\n pointB += 3;\n break;\n } else if ( j == (len-1) ) {\n if(lenA == lenB){\n pointA += 1;\n pointB += 1;\n break;\n } else if (lenA > lenB) {\n pointA += 3;\n } else {\n pointB += 3;\n }\n } else {\n continue;\n }\n }\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()", "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 lenA = 0;", "lenA", "0", "int lenB = 0;", "lenB", "0", "int len = 0;", "len", "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 if( (lenA = wordA.length()) < (lenB = wordB.length()) ) len = wordA.length();\n else if( lenA > lenB ) len = lenB;\n else len = lenA;\n\n for ( int j = 0; j < len; j++) {\n\n if ( wordA.charAt(j) > wordB.charAt(j)){\n pointA += 3;\n break;\n } else if ( wordB.charAt(j) > wordA.charAt(j) ) {\n pointB += 3;\n break;\n } else if ( j == (len-1) ) {\n if(lenA == lenB){\n pointA += 1;\n pointB += 1;\n break;\n } else if (lenA > lenB) {\n pointA += 3;\n } else {\n pointB += 3;\n }\n } else {\n continue;\n }\n }\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 if( (lenA = wordA.length()) < (lenB = wordB.length()) ) len = wordA.length();\n else if( lenA > lenB ) len = lenB;\n else len = lenA;\n\n for ( int j = 0; j < len; j++) {\n\n if ( wordA.charAt(j) > wordB.charAt(j)){\n pointA += 3;\n break;\n } else if ( wordB.charAt(j) > wordA.charAt(j) ) {\n pointB += 3;\n break;\n } else if ( j == (len-1) ) {\n if(lenA == lenB){\n pointA += 1;\n pointB += 1;\n break;\n } else if (lenA > lenB) {\n pointA += 3;\n } else {\n pointB += 3;\n }\n } else {\n continue;\n }\n }\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 if( (lenA = wordA.length()) < (lenB = wordB.length()) ) len = wordA.length();\n else if( lenA > lenB ) len = lenB;\n else len = lenA;\n\n for ( int j = 0; j < len; j++) {\n\n if ( wordA.charAt(j) > wordB.charAt(j)){\n pointA += 3;\n break;\n } else if ( wordB.charAt(j) > wordA.charAt(j) ) {\n pointB += 3;\n break;\n } else if ( j == (len-1) ) {\n if(lenA == lenB){\n pointA += 1;\n pointB += 1;\n break;\n } else if (lenA > lenB) {\n pointA += 3;\n } else {\n pointB += 3;\n }\n } else {\n continue;\n }\n }\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", "if( (lenA = wordA.length()) < (lenB = wordB.length()) ) len = wordA.length();\n else if( lenA > lenB ) len = lenB;\n else len = lenA;", "(lenA = wordA.length()) < (lenB = wordB.length())", "(lenA = wordA.length())", "lenA", "wordA.length()", "wordA.length", "wordA", "(lenB = wordB.length())", "lenB", "wordB.length()", "wordB.length", "wordB", "len = wordA.length()", "len", "wordA.length()", "wordA.length", "wordA", "if( lenA > lenB ) len = lenB;\n else len = lenA;", "lenA > lenB", "lenA", "lenB", "len = lenB", "len", "lenB", "len = lenA", "len", "lenA", "for ( int j = 0; j < len; j++) {\n\n if ( wordA.charAt(j) > wordB.charAt(j)){\n pointA += 3;\n break;\n } else if ( wordB.charAt(j) > wordA.charAt(j) ) {\n pointB += 3;\n break;\n } else if ( j == (len-1) ) {\n if(lenA == lenB){\n pointA += 1;\n pointB += 1;\n break;\n } else if (lenA > lenB) {\n pointA += 3;\n } else {\n pointB += 3;\n }\n } else {\n continue;\n }\n }", "int j = 0;", "int j = 0;", "j", "0", "j < len", "j", "len", "j++", "j++", "j", "{\n\n if ( wordA.charAt(j) > wordB.charAt(j)){\n pointA += 3;\n break;\n } else if ( wordB.charAt(j) > wordA.charAt(j) ) {\n pointB += 3;\n break;\n } else if ( j == (len-1) ) {\n if(lenA == lenB){\n pointA += 1;\n pointB += 1;\n break;\n } else if (lenA > lenB) {\n pointA += 3;\n } else {\n pointB += 3;\n }\n } else {\n continue;\n }\n }", "{\n\n if ( wordA.charAt(j) > wordB.charAt(j)){\n pointA += 3;\n break;\n } else if ( wordB.charAt(j) > wordA.charAt(j) ) {\n pointB += 3;\n break;\n } else if ( j == (len-1) ) {\n if(lenA == lenB){\n pointA += 1;\n pointB += 1;\n break;\n } else if (lenA > lenB) {\n pointA += 3;\n } else {\n pointB += 3;\n }\n } else {\n continue;\n }\n }", "if ( wordA.charAt(j) > wordB.charAt(j)){\n pointA += 3;\n break;\n } else if ( wordB.charAt(j) > wordA.charAt(j) ) {\n pointB += 3;\n break;\n } else if ( j == (len-1) ) {\n if(lenA == lenB){\n pointA += 1;\n pointB += 1;\n break;\n } else if (lenA > lenB) {\n pointA += 3;\n } else {\n pointB += 3;\n }\n } else {\n continue;\n }", "wordA.charAt(j) > wordB.charAt(j)", "wordA.charAt(j)", "wordA.charAt", "wordA", "j", "wordB.charAt(j)", "wordB.charAt", "wordB", "j", "{\n pointA += 3;\n break;\n }", "pointA += 3", "pointA", "3", "break;", "if ( wordB.charAt(j) > wordA.charAt(j) ) {\n pointB += 3;\n break;\n } else if ( j == (len-1) ) {\n if(lenA == lenB){\n pointA += 1;\n pointB += 1;\n break;\n } else if (lenA > lenB) {\n pointA += 3;\n } else {\n pointB += 3;\n }\n } else {\n continue;\n }", "wordB.charAt(j) > wordA.charAt(j)", "wordB.charAt(j)", "wordB.charAt", "wordB", "j", "wordA.charAt(j)", "wordA.charAt", "wordA", "j", "{\n pointB += 3;\n break;\n }", "pointB += 3", "pointB", "3", "break;", "if ( j == (len-1) ) {\n if(lenA == lenB){\n pointA += 1;\n pointB += 1;\n break;\n } else if (lenA > lenB) {\n pointA += 3;\n } else {\n pointB += 3;\n }\n } else {\n continue;\n }", "j == (len-1)", "j", "(len-1)", "len", "1", "{\n if(lenA == lenB){\n pointA += 1;\n pointB += 1;\n break;\n } else if (lenA > lenB) {\n pointA += 3;\n } else {\n pointB += 3;\n }\n }", "if(lenA == lenB){\n pointA += 1;\n pointB += 1;\n break;\n } else if (lenA > lenB) {\n pointA += 3;\n } else {\n pointB += 3;\n }", "lenA == lenB", "lenA", "lenB", "{\n pointA += 1;\n pointB += 1;\n break;\n }", "pointA += 1", "pointA", "1", "pointB += 1", "pointB", "1", "break;", "if (lenA > lenB) {\n pointA += 3;\n } else {\n pointB += 3;\n }", "lenA > lenB", "lenA", "lenB", "{\n pointA += 3;\n }", "pointA += 3", "pointA", "3", "{\n pointB += 3;\n }", "pointB += 3", "pointB", "3", "{\n continue;\n }", "continue;", "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 int turn = Integer.parseInt(br.readLine());\n int pointA = 0;\n int pointB = 0;\n int lenA = 0;\n int lenB = 0;\n int len = 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 if( (lenA = wordA.length()) < (lenB = wordB.length()) ) len = wordA.length();\n else if( lenA > lenB ) len = lenB;\n else len = lenA;\n\n for ( int j = 0; j < len; j++) {\n\n if ( wordA.charAt(j) > wordB.charAt(j)){\n pointA += 3;\n break;\n } else if ( wordB.charAt(j) > wordA.charAt(j) ) {\n pointB += 3;\n break;\n } else if ( j == (len-1) ) {\n if(lenA == lenB){\n pointA += 1;\n pointB += 1;\n break;\n } else if (lenA > lenB) {\n pointA += 3;\n } else {\n pointB += 3;\n }\n } else {\n continue;\n }\n }\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 int turn = Integer.parseInt(br.readLine());\n int pointA = 0;\n int pointB = 0;\n int lenA = 0;\n int lenB = 0;\n int len = 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 if( (lenA = wordA.length()) < (lenB = wordB.length()) ) len = wordA.length();\n else if( lenA > lenB ) len = lenB;\n else len = lenA;\n\n for ( int j = 0; j < len; j++) {\n\n if ( wordA.charAt(j) > wordB.charAt(j)){\n pointA += 3;\n break;\n } else if ( wordB.charAt(j) > wordA.charAt(j) ) {\n pointB += 3;\n break;\n } else if ( j == (len-1) ) {\n if(lenA == lenB){\n pointA += 1;\n pointB += 1;\n break;\n } else if (lenA > lenB) {\n pointA += 3;\n } else {\n pointB += 3;\n }\n } else {\n continue;\n }\n }\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; 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(); int turn = Integer.parseInt(br.readLine()); int pointA = 0; int pointB = 0; int lenA = 0; int lenB = 0; int len = 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())); if( (lenA = wordA.length()) < (lenB = wordB.length()) ) len = wordA.length(); else if( lenA > lenB ) len = lenB; else len = lenA; for ( int j = 0; j < len; j++) { if ( wordA.charAt(j) > wordB.charAt(j)){ pointA += 3; break; } else if ( wordB.charAt(j) > wordA.charAt(j) ) { pointB += 3; break; } else if ( j == (len-1) ) { if(lenA == lenB){ pointA += 1; pointB += 1; break; } else if (lenA > lenB) { pointA += 3; } else { pointB += 3; } } else { continue; } } line.setLength(0); wordA.setLength(0); wordB.setLength(0); } System.out.println(pointA + " " + pointB); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 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, 40, 13, 40, 13, 14, 2, 4, 18, 18, 13, 17, 18, 13, 17, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 98, 8 ], [ 98, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 17, 20 ], [ 20, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 11, 26 ], [ 26, 27 ], [ 26, 28 ], [ 11, 29 ], [ 29, 30 ], [ 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 ], [ 46, 47 ], [ 47, 48 ], [ 44, 49 ], [ 41, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 51, 60 ], [ 50, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 50, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 73, 74 ], [ 73, 75 ], [ 67, 76 ], [ 66, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 66, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 11, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 91, 91 ], [ 91, 92 ], [ 91, 93 ], [ 91, 94 ], [ 9, 95 ], [ 95, 96 ], [ 0, 97 ], [ 97, 98 ], [ 97, 99 ] ]
[ "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 int turn = Integer.parseInt(br.readLine());\n int tarou = 0; int hanako = 0;\n for(int i = 0; i < turn; i++){\n String[] card = br.readLine().split(\" \");\n if(card[0].compareToIgnoreCase(card[1]) == 0){\n tarou++; hanako++;\n }else if(card[0].compareToIgnoreCase(card[1]) > 0){\n tarou += 3;\n }else{\n hanako += 3;\n }\n }\n System.out.println(tarou+\" \"+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 int turn = Integer.parseInt(br.readLine());\n int tarou = 0; int hanako = 0;\n for(int i = 0; i < turn; i++){\n String[] card = br.readLine().split(\" \");\n if(card[0].compareToIgnoreCase(card[1]) == 0){\n tarou++; hanako++;\n }else if(card[0].compareToIgnoreCase(card[1]) > 0){\n tarou += 3;\n }else{\n hanako += 3;\n }\n }\n System.out.println(tarou+\" \"+hanako);\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int turn = Integer.parseInt(br.readLine());\n int tarou = 0; int hanako = 0;\n for(int i = 0; i < turn; i++){\n String[] card = br.readLine().split(\" \");\n if(card[0].compareToIgnoreCase(card[1]) == 0){\n tarou++; hanako++;\n }else if(card[0].compareToIgnoreCase(card[1]) > 0){\n tarou += 3;\n }else{\n hanako += 3;\n }\n }\n System.out.println(tarou+\" \"+hanako);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int turn = Integer.parseInt(br.readLine());\n int tarou = 0; int hanako = 0;\n for(int i = 0; i < turn; i++){\n String[] card = br.readLine().split(\" \");\n if(card[0].compareToIgnoreCase(card[1]) == 0){\n tarou++; hanako++;\n }else if(card[0].compareToIgnoreCase(card[1]) > 0){\n tarou += 3;\n }else{\n hanako += 3;\n }\n }\n System.out.println(tarou+\" \"+hanako);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int turn = Integer.parseInt(br.readLine());", "turn", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int tarou = 0;", "tarou", "0", "int hanako = 0;", "hanako", "0", "for(int i = 0; i < turn; i++){\n String[] card = br.readLine().split(\" \");\n if(card[0].compareToIgnoreCase(card[1]) == 0){\n tarou++; hanako++;\n }else if(card[0].compareToIgnoreCase(card[1]) > 0){\n tarou += 3;\n }else{\n hanako += 3;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < turn", "i", "turn", "i++", "i++", "i", "{\n String[] card = br.readLine().split(\" \");\n if(card[0].compareToIgnoreCase(card[1]) == 0){\n tarou++; hanako++;\n }else if(card[0].compareToIgnoreCase(card[1]) > 0){\n tarou += 3;\n }else{\n hanako += 3;\n }\n }", "{\n String[] card = br.readLine().split(\" \");\n if(card[0].compareToIgnoreCase(card[1]) == 0){\n tarou++; hanako++;\n }else if(card[0].compareToIgnoreCase(card[1]) > 0){\n tarou += 3;\n }else{\n hanako += 3;\n }\n }", "String[] card = br.readLine().split(\" \");", "card", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "if(card[0].compareToIgnoreCase(card[1]) == 0){\n tarou++; hanako++;\n }else if(card[0].compareToIgnoreCase(card[1]) > 0){\n tarou += 3;\n }else{\n hanako += 3;\n }", "card[0].compareToIgnoreCase(card[1]) == 0", "card[0].compareToIgnoreCase(card[1])", "card[0].compareToIgnoreCase", "card[0]", "card", "0", "card[1]", "card", "1", "0", "{\n tarou++; hanako++;\n }", "tarou++", "tarou", "hanako++", "hanako", "if(card[0].compareToIgnoreCase(card[1]) > 0){\n tarou += 3;\n }else{\n hanako += 3;\n }", "card[0].compareToIgnoreCase(card[1]) > 0", "card[0].compareToIgnoreCase(card[1])", "card[0].compareToIgnoreCase", "card[0]", "card", "0", "card[1]", "card", "1", "0", "{\n tarou += 3;\n }", "tarou += 3", "tarou", "3", "{\n hanako += 3;\n }", "hanako += 3", "hanako", "3", "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 public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int turn = Integer.parseInt(br.readLine());\n int tarou = 0; int hanako = 0;\n for(int i = 0; i < turn; i++){\n String[] card = br.readLine().split(\" \");\n if(card[0].compareToIgnoreCase(card[1]) == 0){\n tarou++; hanako++;\n }else if(card[0].compareToIgnoreCase(card[1]) > 0){\n tarou += 3;\n }else{\n hanako += 3;\n }\n }\n System.out.println(tarou+\" \"+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 int turn = Integer.parseInt(br.readLine());\n int tarou = 0; int hanako = 0;\n for(int i = 0; i < turn; i++){\n String[] card = br.readLine().split(\" \");\n if(card[0].compareToIgnoreCase(card[1]) == 0){\n tarou++; hanako++;\n }else if(card[0].compareToIgnoreCase(card[1]) > 0){\n tarou += 3;\n }else{\n hanako += 3;\n }\n }\n System.out.println(tarou+\" \"+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)); int turn = Integer.parseInt(br.readLine()); int tarou = 0; int hanako = 0; for(int i = 0; i < turn; i++){ String[] card = br.readLine().split(" "); if(card[0].compareToIgnoreCase(card[1]) == 0){ tarou++; hanako++; }else if(card[0].compareToIgnoreCase(card[1]) > 0){ tarou += 3; }else{ hanako += 3; } } 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, 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, 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 ], [ 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 ], [ 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 ], [ 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\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint taro=0;\n\t\tint hanako=0;\n\t\tString first = \"\";\n\t\tString second = \"\";\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfirst = scan.next();\n\t\t\tsecond = scan.next();\n\t\t\tif((first.compareTo(second))>0)\n\t\t\t\ttaro+=3;\n\t\t\telse if((first.compareTo(second))<0)\n\t\t\t\thanako+=3;\n\t\t\telse{\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(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 scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint taro=0;\n\t\tint hanako=0;\n\t\tString first = \"\";\n\t\tString second = \"\";\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfirst = scan.next();\n\t\t\tsecond = scan.next();\n\t\t\tif((first.compareTo(second))>0)\n\t\t\t\ttaro+=3;\n\t\t\telse if((first.compareTo(second))<0)\n\t\t\t\thanako+=3;\n\t\t\telse{\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taro+\" \"+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\tint taro=0;\n\t\tint hanako=0;\n\t\tString first = \"\";\n\t\tString second = \"\";\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfirst = scan.next();\n\t\t\tsecond = scan.next();\n\t\t\tif((first.compareTo(second))>0)\n\t\t\t\ttaro+=3;\n\t\t\telse if((first.compareTo(second))<0)\n\t\t\t\thanako+=3;\n\t\t\telse{\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taro+\" \"+hanako);\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint taro=0;\n\t\tint hanako=0;\n\t\tString first = \"\";\n\t\tString second = \"\";\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfirst = scan.next();\n\t\t\tsecond = scan.next();\n\t\t\tif((first.compareTo(second))>0)\n\t\t\t\ttaro+=3;\n\t\t\telse if((first.compareTo(second))<0)\n\t\t\t\thanako+=3;\n\t\t\telse{\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taro+\" \"+hanako);\n\t}", "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", "String first = \"\";", "first", "\"\"", "String second = \"\";", "second", "\"\"", "for(int i=0;i<n;i++){\n\t\t\tfirst = scan.next();\n\t\t\tsecond = scan.next();\n\t\t\tif((first.compareTo(second))>0)\n\t\t\t\ttaro+=3;\n\t\t\telse if((first.compareTo(second))<0)\n\t\t\t\thanako+=3;\n\t\t\telse{\n\t\t\t\ttaro++;\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\tfirst = scan.next();\n\t\t\tsecond = scan.next();\n\t\t\tif((first.compareTo(second))>0)\n\t\t\t\ttaro+=3;\n\t\t\telse if((first.compareTo(second))<0)\n\t\t\t\thanako+=3;\n\t\t\telse{\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\n\t\t\t}\n\t\t}", "{\n\t\t\tfirst = scan.next();\n\t\t\tsecond = scan.next();\n\t\t\tif((first.compareTo(second))>0)\n\t\t\t\ttaro+=3;\n\t\t\telse if((first.compareTo(second))<0)\n\t\t\t\thanako+=3;\n\t\t\telse{\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\n\t\t\t}\n\t\t}", "first = scan.next()", "first", "scan.next()", "scan.next", "scan", "second = scan.next()", "second", "scan.next()", "scan.next", "scan", "if((first.compareTo(second))>0)\n\t\t\t\ttaro+=3;\n\t\t\telse if((first.compareTo(second))<0)\n\t\t\t\thanako+=3;\n\t\t\telse{\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\n\t\t\t}", "(first.compareTo(second))>0", "(first.compareTo(second))", "first.compareTo", "first", "second", "0", "taro+=3", "taro", "3", "if((first.compareTo(second))<0)\n\t\t\t\thanako+=3;\n\t\t\telse{\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\n\t\t\t}", "(first.compareTo(second))<0", "(first.compareTo(second))", "first.compareTo", "first", "second", "0", "hanako+=3", "hanako", "3", "{\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\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\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint taro=0;\n\t\tint hanako=0;\n\t\tString first = \"\";\n\t\tString second = \"\";\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfirst = scan.next();\n\t\t\tsecond = scan.next();\n\t\t\tif((first.compareTo(second))>0)\n\t\t\t\ttaro+=3;\n\t\t\telse if((first.compareTo(second))<0)\n\t\t\t\thanako+=3;\n\t\t\telse{\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taro+\" \"+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\tint taro=0;\n\t\tint hanako=0;\n\t\tString first = \"\";\n\t\tString second = \"\";\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfirst = scan.next();\n\t\t\tsecond = scan.next();\n\t\t\tif((first.compareTo(second))>0)\n\t\t\t\ttaro+=3;\n\t\t\telse if((first.compareTo(second))<0)\n\t\t\t\thanako+=3;\n\t\t\telse{\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taro+\" \"+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(); int taro=0; int hanako=0; String first = ""; String second = ""; for(int i=0;i<n;i++){ first = scan.next(); second = scan.next(); if((first.compareTo(second))>0) taro+=3; else if((first.compareTo(second))<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, 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, 40, 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 ], [ 85, 5 ], [ 85, 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 ], [ 55, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 64, 66 ], [ 60, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 8, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 78, 78 ], [ 78, 79 ], [ 78, 80 ], [ 78, 81 ], [ 6, 82 ], [ 82, 83 ], [ 0, 84 ], [ 84, 85 ], [ 84, 86 ] ]
[ "import java.util.*;\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int ans1 = 0, ans2 = 0;\n for(int i = 0; i < n; i++){\n String s = scan.next();\n String t = scan.next();\n int comp = s.compareTo(t);\n //System.out.println(comp);\n if(comp <= -1)ans1 += 3;\n else if(comp >= 1)ans2 += 3;\n else {\n ans1++;\n ans2++;\n }\n }\n System.out.println(ans2 + \" \" + ans1);\n }\n}\n", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int ans1 = 0, ans2 = 0;\n for(int i = 0; i < n; i++){\n String s = scan.next();\n String t = scan.next();\n int comp = s.compareTo(t);\n //System.out.println(comp);\n if(comp <= -1)ans1 += 3;\n else if(comp >= 1)ans2 += 3;\n else {\n ans1++;\n ans2++;\n }\n }\n System.out.println(ans2 + \" \" + ans1);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int ans1 = 0, ans2 = 0;\n for(int i = 0; i < n; i++){\n String s = scan.next();\n String t = scan.next();\n int comp = s.compareTo(t);\n //System.out.println(comp);\n if(comp <= -1)ans1 += 3;\n else if(comp >= 1)ans2 += 3;\n else {\n ans1++;\n ans2++;\n }\n }\n System.out.println(ans2 + \" \" + ans1);\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int ans1 = 0, ans2 = 0;\n for(int i = 0; i < n; i++){\n String s = scan.next();\n String t = scan.next();\n int comp = s.compareTo(t);\n //System.out.println(comp);\n if(comp <= -1)ans1 += 3;\n else if(comp >= 1)ans2 += 3;\n else {\n ans1++;\n ans2++;\n }\n }\n System.out.println(ans2 + \" \" + ans1);\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "int ans1 = 0", "ans1", "0", "ans2 = 0;", "ans2", "0", "for(int i = 0; i < n; i++){\n String s = scan.next();\n String t = scan.next();\n int comp = s.compareTo(t);\n //System.out.println(comp);\n if(comp <= -1)ans1 += 3;\n else if(comp >= 1)ans2 += 3;\n else {\n ans1++;\n ans2++;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n String s = scan.next();\n String t = scan.next();\n int comp = s.compareTo(t);\n //System.out.println(comp);\n if(comp <= -1)ans1 += 3;\n else if(comp >= 1)ans2 += 3;\n else {\n ans1++;\n ans2++;\n }\n }", "{\n String s = scan.next();\n String t = scan.next();\n int comp = s.compareTo(t);\n //System.out.println(comp);\n if(comp <= -1)ans1 += 3;\n else if(comp >= 1)ans2 += 3;\n else {\n ans1++;\n ans2++;\n }\n }", "String s = scan.next();", "s", "scan.next()", "scan.next", "scan", "String t = scan.next();", "t", "scan.next()", "scan.next", "scan", "int comp = s.compareTo(t);", "comp", "s.compareTo(t)", "s.compareTo", "s", "t", "if(comp <= -1)ans1 += 3;\n else if(comp >= 1)ans2 += 3;\n else {\n ans1++;\n ans2++;\n }", "comp <= -1", "comp", "-1", "1", "ans1 += 3", "ans1", "3", "if(comp >= 1)ans2 += 3;\n else {\n ans1++;\n ans2++;\n }", "comp >= 1", "comp", "1", "ans2 += 3", "ans2", "3", "{\n ans1++;\n ans2++;\n }", "ans1++", "ans1", "ans2++", "ans2", "System.out.println(ans2 + \" \" + ans1)", "System.out.println", "System.out", "System", "System.out", "ans2 + \" \" + ans1", "ans2 + \" \" + ans1", "ans2", "\" \"", "ans1", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int ans1 = 0, ans2 = 0;\n for(int i = 0; i < n; i++){\n String s = scan.next();\n String t = scan.next();\n int comp = s.compareTo(t);\n //System.out.println(comp);\n if(comp <= -1)ans1 += 3;\n else if(comp >= 1)ans2 += 3;\n else {\n ans1++;\n ans2++;\n }\n }\n System.out.println(ans2 + \" \" + ans1);\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int ans1 = 0, ans2 = 0;\n for(int i = 0; i < n; i++){\n String s = scan.next();\n String t = scan.next();\n int comp = s.compareTo(t);\n //System.out.println(comp);\n if(comp <= -1)ans1 += 3;\n else if(comp >= 1)ans2 += 3;\n else {\n ans1++;\n ans2++;\n }\n }\n System.out.println(ans2 + \" \" + ans1);\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int ans1 = 0, ans2 = 0; for(int i = 0; i < n; i++){ String s = scan.next(); String t = scan.next(); int comp = s.compareTo(t); //System.out.println(comp); if(comp <= -1)ans1 += 3; else if(comp >= 1)ans2 += 3; else { ans1++; ans2++; } } System.out.println(ans2 + " " + ans1); } }
[ 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, 20, 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, 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 ], [ 83, 5 ], [ 83, 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 ], [ 35, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 35, 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 ], [ 62, 64 ], [ 57, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 8, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 76, 76 ], [ 76, 77 ], [ 76, 78 ], [ 76, 79 ], [ 6, 80 ], [ 80, 81 ], [ 0, 82 ], [ 82, 83 ], [ 82, 84 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int s1 = 0, s2 = 0;\n for (int i = 0; i < n; i++) {\n String[] a = new String[]{sc.next(), sc.next()};\n int z = a[0].compareTo(a[1]);\n if (z > 0) {\n s1 += 3;\n } else if (z < 0) {\n s2 += 3;\n } else {\n s1++;\n s2++;\n }\n }\n System.out.println(s1 + \" \" + s2);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int s1 = 0, s2 = 0;\n for (int i = 0; i < n; i++) {\n String[] a = new String[]{sc.next(), sc.next()};\n int z = a[0].compareTo(a[1]);\n if (z > 0) {\n s1 += 3;\n } else if (z < 0) {\n s2 += 3;\n } else {\n s1++;\n s2++;\n }\n }\n System.out.println(s1 + \" \" + s2);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int s1 = 0, s2 = 0;\n for (int i = 0; i < n; i++) {\n String[] a = new String[]{sc.next(), sc.next()};\n int z = a[0].compareTo(a[1]);\n if (z > 0) {\n s1 += 3;\n } else if (z < 0) {\n s2 += 3;\n } else {\n s1++;\n s2++;\n }\n }\n System.out.println(s1 + \" \" + s2);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int s1 = 0, s2 = 0;\n for (int i = 0; i < n; i++) {\n String[] a = new String[]{sc.next(), sc.next()};\n int z = a[0].compareTo(a[1]);\n if (z > 0) {\n s1 += 3;\n } else if (z < 0) {\n s2 += 3;\n } else {\n s1++;\n s2++;\n }\n }\n System.out.println(s1 + \" \" + s2);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int s1 = 0", "s1", "0", "s2 = 0;", "s2", "0", "for (int i = 0; i < n; i++) {\n String[] a = new String[]{sc.next(), sc.next()};\n int z = a[0].compareTo(a[1]);\n if (z > 0) {\n s1 += 3;\n } else if (z < 0) {\n s2 += 3;\n } else {\n s1++;\n s2++;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n String[] a = new String[]{sc.next(), sc.next()};\n int z = a[0].compareTo(a[1]);\n if (z > 0) {\n s1 += 3;\n } else if (z < 0) {\n s2 += 3;\n } else {\n s1++;\n s2++;\n }\n }", "{\n String[] a = new String[]{sc.next(), sc.next()};\n int z = a[0].compareTo(a[1]);\n if (z > 0) {\n s1 += 3;\n } else if (z < 0) {\n s2 += 3;\n } else {\n s1++;\n s2++;\n }\n }", "String[] a = new String[]{sc.next(), sc.next()};", "a", "new String[]{sc.next(), sc.next()}", "int z = a[0].compareTo(a[1]);", "z", "a[0].compareTo(a[1])", "a[0].compareTo", "a[0]", "a", "0", "a[1]", "a", "1", "if (z > 0) {\n s1 += 3;\n } else if (z < 0) {\n s2 += 3;\n } else {\n s1++;\n s2++;\n }", "z > 0", "z", "0", "{\n s1 += 3;\n }", "s1 += 3", "s1", "3", "if (z < 0) {\n s2 += 3;\n } else {\n s1++;\n s2++;\n }", "z < 0", "z", "0", "{\n s2 += 3;\n }", "s2 += 3", "s2", "3", "{\n s1++;\n s2++;\n }", "s1++", "s1", "s2++", "s2", "System.out.println(s1 + \" \" + s2)", "System.out.println", "System.out", "System", "System.out", "s1 + \" \" + s2", "s1 + \" \" + s2", "s1", "\" \"", "s2", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int s1 = 0, s2 = 0;\n for (int i = 0; i < n; i++) {\n String[] a = new String[]{sc.next(), sc.next()};\n int z = a[0].compareTo(a[1]);\n if (z > 0) {\n s1 += 3;\n } else if (z < 0) {\n s2 += 3;\n } else {\n s1++;\n s2++;\n }\n }\n System.out.println(s1 + \" \" + s2);\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int s1 = 0, s2 = 0;\n for (int i = 0; i < n; i++) {\n String[] a = new String[]{sc.next(), sc.next()};\n int z = a[0].compareTo(a[1]);\n if (z > 0) {\n s1 += 3;\n } else if (z < 0) {\n s2 += 3;\n } else {\n s1++;\n s2++;\n }\n }\n System.out.println(s1 + \" \" + s2);\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 s1 = 0, s2 = 0; for (int i = 0; i < n; i++) { String[] a = new String[]{sc.next(), sc.next()}; int z = a[0].compareTo(a[1]); if (z > 0) { s1 += 3; } else if (z < 0) { s2 += 3; } else { s1++; s2++; } } System.out.println(s1 + " " + s2); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 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, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 0, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 11, 1, 0, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 13, 30, 0, 13, 13, 30, 0, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 0, 13, 18, 13, 13, 14, 2, 13, 13, 30, 0, 13, 17, 0, 13, 17, 3, 14, 2, 13, 13, 30, 0, 13, 17, 0, 13, 17, 3, 14, 2, 13, 17, 30, 14, 2, 13, 13, 30, 40, 13, 40, 13, 14, 2, 13, 13, 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 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 8, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 8, 29 ], [ 29, 30 ], [ 8, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 8, 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 ], [ 48, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 48, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 48, 69 ], [ 69, 70 ], [ 69, 71 ], [ 48, 72 ], [ 72, 73 ], [ 72, 74 ], [ 48, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 82, 84 ], [ 75, 85 ], [ 85, 86 ], [ 86, 87 ], [ 75, 88 ], [ 89, 89 ], [ 48, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 97, 99 ], [ 90, 100 ], [ 100, 101 ], [ 101, 102 ], [ 90, 103 ], [ 104, 104 ], [ 48, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 105, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 48, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 122, 123 ], [ 122, 124 ], [ 117, 125 ], [ 125, 126 ], [ 126, 127 ], [ 117, 128 ], [ 129, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 132, 133 ], [ 132, 134 ], [ 129, 135 ], [ 135, 136 ], [ 135, 137 ], [ 137, 138 ], [ 137, 139 ], [ 129, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 140, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 144, 148 ], [ 148, 149 ], [ 148, 150 ], [ 144, 151 ], [ 140, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 152, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 156, 160 ], [ 160, 161 ], [ 160, 162 ], [ 156, 163 ], [ 48, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 164, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 169, 173 ], [ 173, 174 ], [ 174, 175 ], [ 173, 176 ], [ 176, 177 ], [ 169, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 178, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 178, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 8, 190 ], [ 190, 191 ], [ 191, 192 ], [ 192, 193 ], [ 192, 194 ], [ 190, 195 ], [ 196, 196 ], [ 196, 197 ], [ 196, 198 ], [ 196, 199 ], [ 6, 200 ], [ 200, 201 ] ]
[ "import java.util.Scanner;\n\nclass Main\n{\n\tpublic static void main(String[] args){\n\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tScanner scan2 = new Scanner(System.in);\n\t\n\tint ak = 0, bk = 0;\n\tint a, b, j, w, u;\n\t\n\tint kai = scan.nextInt();\n\t\n\tfor(int i=0; i<kai; i++){\n\t\tString stra = scan.next();\n\t\tString strb = scan.next();\n\t\t\n\t\tchar[] A = stra.toCharArray();\n\t\tchar[] B = strb.toCharArray();\n\t\t\n\t\tint x = 0;\n\t\tint c = 0;\n\t\t\n\t\tfor(j=0; j<A.length; j++){}\n\t\tfor(w=0; w<B.length; w++){}\n\t\t\n\t\tif(j < w){\n\t\t\tu = j;}\n\t\telse{\n\t\t\tu = w;}\n\t\t\n\t\tfor(int q=0; q<u; q++){\n\t\t\ta = A[q];\n\t\t\tb = B[q];\n\t\t\t\n\t\t\tif(a < b){\n\t\t\t\tbk += 3;\n\t\t\t\tc = 1;\n\t\t\t\tbreak;}\n\t\t\telse if(a > b){\n\t\t\t\tak += 3;\n\t\t\t\tc = 1;\n\t\t\t\tbreak;}}\n\n\t\t\tif(c == 0){\n\t\t\t\tif(j == w){\n\t\t\t\t\tak++;\tbk++;}\n\t\t\t\telse if(j > w){\n\t\t\t\t\tak += 3;}\n\t\t\t\telse{\n\t\t\t\t\tbk += 3;}}}\n\t\t\t\t\n\t\tSystem.out.println(ak+\" \"+bk);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main\n{\n\tpublic static void main(String[] args){\n\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tScanner scan2 = new Scanner(System.in);\n\t\n\tint ak = 0, bk = 0;\n\tint a, b, j, w, u;\n\t\n\tint kai = scan.nextInt();\n\t\n\tfor(int i=0; i<kai; i++){\n\t\tString stra = scan.next();\n\t\tString strb = scan.next();\n\t\t\n\t\tchar[] A = stra.toCharArray();\n\t\tchar[] B = strb.toCharArray();\n\t\t\n\t\tint x = 0;\n\t\tint c = 0;\n\t\t\n\t\tfor(j=0; j<A.length; j++){}\n\t\tfor(w=0; w<B.length; w++){}\n\t\t\n\t\tif(j < w){\n\t\t\tu = j;}\n\t\telse{\n\t\t\tu = w;}\n\t\t\n\t\tfor(int q=0; q<u; q++){\n\t\t\ta = A[q];\n\t\t\tb = B[q];\n\t\t\t\n\t\t\tif(a < b){\n\t\t\t\tbk += 3;\n\t\t\t\tc = 1;\n\t\t\t\tbreak;}\n\t\t\telse if(a > b){\n\t\t\t\tak += 3;\n\t\t\t\tc = 1;\n\t\t\t\tbreak;}}\n\n\t\t\tif(c == 0){\n\t\t\t\tif(j == w){\n\t\t\t\t\tak++;\tbk++;}\n\t\t\t\telse if(j > w){\n\t\t\t\t\tak += 3;}\n\t\t\t\telse{\n\t\t\t\t\tbk += 3;}}}\n\t\t\t\t\n\t\tSystem.out.println(ak+\" \"+bk);\n\t}\n}", "Main", "public static void main(String[] args){\n\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tScanner scan2 = new Scanner(System.in);\n\t\n\tint ak = 0, bk = 0;\n\tint a, b, j, w, u;\n\t\n\tint kai = scan.nextInt();\n\t\n\tfor(int i=0; i<kai; i++){\n\t\tString stra = scan.next();\n\t\tString strb = scan.next();\n\t\t\n\t\tchar[] A = stra.toCharArray();\n\t\tchar[] B = strb.toCharArray();\n\t\t\n\t\tint x = 0;\n\t\tint c = 0;\n\t\t\n\t\tfor(j=0; j<A.length; j++){}\n\t\tfor(w=0; w<B.length; w++){}\n\t\t\n\t\tif(j < w){\n\t\t\tu = j;}\n\t\telse{\n\t\t\tu = w;}\n\t\t\n\t\tfor(int q=0; q<u; q++){\n\t\t\ta = A[q];\n\t\t\tb = B[q];\n\t\t\t\n\t\t\tif(a < b){\n\t\t\t\tbk += 3;\n\t\t\t\tc = 1;\n\t\t\t\tbreak;}\n\t\t\telse if(a > b){\n\t\t\t\tak += 3;\n\t\t\t\tc = 1;\n\t\t\t\tbreak;}}\n\n\t\t\tif(c == 0){\n\t\t\t\tif(j == w){\n\t\t\t\t\tak++;\tbk++;}\n\t\t\t\telse if(j > w){\n\t\t\t\t\tak += 3;}\n\t\t\t\telse{\n\t\t\t\t\tbk += 3;}}}\n\t\t\t\t\n\t\tSystem.out.println(ak+\" \"+bk);\n\t}", "main", "{\n\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tScanner scan2 = new Scanner(System.in);\n\t\n\tint ak = 0, bk = 0;\n\tint a, b, j, w, u;\n\t\n\tint kai = scan.nextInt();\n\t\n\tfor(int i=0; i<kai; i++){\n\t\tString stra = scan.next();\n\t\tString strb = scan.next();\n\t\t\n\t\tchar[] A = stra.toCharArray();\n\t\tchar[] B = strb.toCharArray();\n\t\t\n\t\tint x = 0;\n\t\tint c = 0;\n\t\t\n\t\tfor(j=0; j<A.length; j++){}\n\t\tfor(w=0; w<B.length; w++){}\n\t\t\n\t\tif(j < w){\n\t\t\tu = j;}\n\t\telse{\n\t\t\tu = w;}\n\t\t\n\t\tfor(int q=0; q<u; q++){\n\t\t\ta = A[q];\n\t\t\tb = B[q];\n\t\t\t\n\t\t\tif(a < b){\n\t\t\t\tbk += 3;\n\t\t\t\tc = 1;\n\t\t\t\tbreak;}\n\t\t\telse if(a > b){\n\t\t\t\tak += 3;\n\t\t\t\tc = 1;\n\t\t\t\tbreak;}}\n\n\t\t\tif(c == 0){\n\t\t\t\tif(j == w){\n\t\t\t\t\tak++;\tbk++;}\n\t\t\t\telse if(j > w){\n\t\t\t\t\tak += 3;}\n\t\t\t\telse{\n\t\t\t\t\tbk += 3;}}}\n\t\t\t\t\n\t\tSystem.out.println(ak+\" \"+bk);\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "Scanner scan2 = new Scanner(System.in);", "scan2", "new Scanner(System.in)", "int ak = 0", "ak", "0", "bk = 0;", "bk", "0", "int a", "a", "b", "b", "j", "j", "w", "w", "u;", "u", "int kai = scan.nextInt();", "kai", "scan.nextInt()", "scan.nextInt", "scan", "for(int i=0; i<kai; i++){\n\t\tString stra = scan.next();\n\t\tString strb = scan.next();\n\t\t\n\t\tchar[] A = stra.toCharArray();\n\t\tchar[] B = strb.toCharArray();\n\t\t\n\t\tint x = 0;\n\t\tint c = 0;\n\t\t\n\t\tfor(j=0; j<A.length; j++){}\n\t\tfor(w=0; w<B.length; w++){}\n\t\t\n\t\tif(j < w){\n\t\t\tu = j;}\n\t\telse{\n\t\t\tu = w;}\n\t\t\n\t\tfor(int q=0; q<u; q++){\n\t\t\ta = A[q];\n\t\t\tb = B[q];\n\t\t\t\n\t\t\tif(a < b){\n\t\t\t\tbk += 3;\n\t\t\t\tc = 1;\n\t\t\t\tbreak;}\n\t\t\telse if(a > b){\n\t\t\t\tak += 3;\n\t\t\t\tc = 1;\n\t\t\t\tbreak;}}\n\n\t\t\tif(c == 0){\n\t\t\t\tif(j == w){\n\t\t\t\t\tak++;\tbk++;}\n\t\t\t\telse if(j > w){\n\t\t\t\t\tak += 3;}\n\t\t\t\telse{\n\t\t\t\t\tbk += 3;}}}", "int i=0;", "int i=0;", "i", "0", "i<kai", "i", "kai", "i++", "i++", "i", "{\n\t\tString stra = scan.next();\n\t\tString strb = scan.next();\n\t\t\n\t\tchar[] A = stra.toCharArray();\n\t\tchar[] B = strb.toCharArray();\n\t\t\n\t\tint x = 0;\n\t\tint c = 0;\n\t\t\n\t\tfor(j=0; j<A.length; j++){}\n\t\tfor(w=0; w<B.length; w++){}\n\t\t\n\t\tif(j < w){\n\t\t\tu = j;}\n\t\telse{\n\t\t\tu = w;}\n\t\t\n\t\tfor(int q=0; q<u; q++){\n\t\t\ta = A[q];\n\t\t\tb = B[q];\n\t\t\t\n\t\t\tif(a < b){\n\t\t\t\tbk += 3;\n\t\t\t\tc = 1;\n\t\t\t\tbreak;}\n\t\t\telse if(a > b){\n\t\t\t\tak += 3;\n\t\t\t\tc = 1;\n\t\t\t\tbreak;}}\n\n\t\t\tif(c == 0){\n\t\t\t\tif(j == w){\n\t\t\t\t\tak++;\tbk++;}\n\t\t\t\telse if(j > w){\n\t\t\t\t\tak += 3;}\n\t\t\t\telse{\n\t\t\t\t\tbk += 3;}}}", "{\n\t\tString stra = scan.next();\n\t\tString strb = scan.next();\n\t\t\n\t\tchar[] A = stra.toCharArray();\n\t\tchar[] B = strb.toCharArray();\n\t\t\n\t\tint x = 0;\n\t\tint c = 0;\n\t\t\n\t\tfor(j=0; j<A.length; j++){}\n\t\tfor(w=0; w<B.length; w++){}\n\t\t\n\t\tif(j < w){\n\t\t\tu = j;}\n\t\telse{\n\t\t\tu = w;}\n\t\t\n\t\tfor(int q=0; q<u; q++){\n\t\t\ta = A[q];\n\t\t\tb = B[q];\n\t\t\t\n\t\t\tif(a < b){\n\t\t\t\tbk += 3;\n\t\t\t\tc = 1;\n\t\t\t\tbreak;}\n\t\t\telse if(a > b){\n\t\t\t\tak += 3;\n\t\t\t\tc = 1;\n\t\t\t\tbreak;}}\n\n\t\t\tif(c == 0){\n\t\t\t\tif(j == w){\n\t\t\t\t\tak++;\tbk++;}\n\t\t\t\telse if(j > w){\n\t\t\t\t\tak += 3;}\n\t\t\t\telse{\n\t\t\t\t\tbk += 3;}}}", "String stra = scan.next();", "stra", "scan.next()", "scan.next", "scan", "String strb = scan.next();", "strb", "scan.next()", "scan.next", "scan", "char[] A = stra.toCharArray();", "A", "stra.toCharArray()", "stra.toCharArray", "stra", "char[] B = strb.toCharArray();", "B", "strb.toCharArray()", "strb.toCharArray", "strb", "int x = 0;", "x", "0", "int c = 0;", "c", "0", "for(j=0; j<A.length; j++){}", "j=0;", "j=0", "j", "0", "j<A.length", "j", "A.length", "A", "A.length", "j++", "j++", "j", "{}", "{}", "for(w=0; w<B.length; w++){}", "w=0;", "w=0", "w", "0", "w<B.length", "w", "B.length", "B", "B.length", "w++", "w++", "w", "{}", "{}", "if(j < w){\n\t\t\tu = j;}\n\t\telse{\n\t\t\tu = w;}", "j < w", "j", "w", "{\n\t\t\tu = j;}", "u = j", "u", "j", "{\n\t\t\tu = w;}", "u = w", "u", "w", "for(int q=0; q<u; q++){\n\t\t\ta = A[q];\n\t\t\tb = B[q];\n\t\t\t\n\t\t\tif(a < b){\n\t\t\t\tbk += 3;\n\t\t\t\tc = 1;\n\t\t\t\tbreak;}\n\t\t\telse if(a > b){\n\t\t\t\tak += 3;\n\t\t\t\tc = 1;\n\t\t\t\tbreak;}}", "int q=0;", "int q=0;", "q", "0", "q<u", "q", "u", "q++", "q++", "q", "{\n\t\t\ta = A[q];\n\t\t\tb = B[q];\n\t\t\t\n\t\t\tif(a < b){\n\t\t\t\tbk += 3;\n\t\t\t\tc = 1;\n\t\t\t\tbreak;}\n\t\t\telse if(a > b){\n\t\t\t\tak += 3;\n\t\t\t\tc = 1;\n\t\t\t\tbreak;}}", "{\n\t\t\ta = A[q];\n\t\t\tb = B[q];\n\t\t\t\n\t\t\tif(a < b){\n\t\t\t\tbk += 3;\n\t\t\t\tc = 1;\n\t\t\t\tbreak;}\n\t\t\telse if(a > b){\n\t\t\t\tak += 3;\n\t\t\t\tc = 1;\n\t\t\t\tbreak;}}", "a = A[q]", "a", "A[q]", "A", "q", "b = B[q]", "b", "B[q]", "B", "q", "if(a < b){\n\t\t\t\tbk += 3;\n\t\t\t\tc = 1;\n\t\t\t\tbreak;}\n\t\t\telse if(a > b){\n\t\t\t\tak += 3;\n\t\t\t\tc = 1;\n\t\t\t\tbreak;}", "a < b", "a", "b", "{\n\t\t\t\tbk += 3;\n\t\t\t\tc = 1;\n\t\t\t\tbreak;}", "bk += 3", "bk", "3", "c = 1", "c", "1", "break;", "if(a > b){\n\t\t\t\tak += 3;\n\t\t\t\tc = 1;\n\t\t\t\tbreak;}", "a > b", "a", "b", "{\n\t\t\t\tak += 3;\n\t\t\t\tc = 1;\n\t\t\t\tbreak;}", "ak += 3", "ak", "3", "c = 1", "c", "1", "break;", "if(c == 0){\n\t\t\t\tif(j == w){\n\t\t\t\t\tak++;\tbk++;}\n\t\t\t\telse if(j > w){\n\t\t\t\t\tak += 3;}\n\t\t\t\telse{\n\t\t\t\t\tbk += 3;}}", "c == 0", "c", "0", "{\n\t\t\t\tif(j == w){\n\t\t\t\t\tak++;\tbk++;}\n\t\t\t\telse if(j > w){\n\t\t\t\t\tak += 3;}\n\t\t\t\telse{\n\t\t\t\t\tbk += 3;}}", "if(j == w){\n\t\t\t\t\tak++;\tbk++;}\n\t\t\t\telse if(j > w){\n\t\t\t\t\tak += 3;}\n\t\t\t\telse{\n\t\t\t\t\tbk += 3;}", "j == w", "j", "w", "{\n\t\t\t\t\tak++;\tbk++;}", "ak++", "ak", "bk++", "bk", "if(j > w){\n\t\t\t\t\tak += 3;}\n\t\t\t\telse{\n\t\t\t\t\tbk += 3;}", "j > w", "j", "w", "{\n\t\t\t\t\tak += 3;}", "ak += 3", "ak", "3", "{\n\t\t\t\t\tbk += 3;}", "bk += 3", "bk", "3", "System.out.println(ak+\" \"+bk)", "System.out.println", "System.out", "System", "System.out", "ak+\" \"+bk", "ak+\" \"+bk", "ak", "\" \"", "bk", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args){ Scanner scan = new Scanner(System.in); Scanner scan2 = new Scanner(System.in); int ak = 0, bk = 0; int a, b, j, w, u; int kai = scan.nextInt(); for(int i=0; i<kai; i++){ String stra = scan.next(); String strb = scan.next(); char[] A = stra.toCharArray(); char[] B = strb.toCharArray(); int x = 0; int c = 0; for(j=0; j<A.length; j++){} for(w=0; w<B.length; w++){} if(j < w){ u = j;} else{ u = w;} for(int q=0; q<u; q++){ a = A[q]; b = B[q]; if(a < b){ bk += 3; c = 1; break;} else if(a > b){ ak += 3; c = 1; break;}} if(c == 0){ if(j == w){ ak++; bk++;} else if(j > w){ ak += 3;} else{ bk += 3;}}} System.out.println(ak+" "+bk); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 17, 41, 13, 17, 41, 13, 17, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 17, 42, 2, 13, 13, 30, 0, 13, 4, 18, 4, 18, 13, 17, 14, 4, 18, 18, 13, 17, 18, 13, 17, 30, 0, 13, 17, 0, 13, 17, 30, 0, 13, 17, 0, 13, 4, 18, 18, 13, 17, 0, 13, 4, 18, 18, 13, 17, 42, 17, 30, 14, 2, 4, 18, 18, 13, 17, 13, 4, 18, 18, 13, 17, 13, 30, 0, 13, 17, 3, 14, 2, 4, 18, 18, 13, 17, 13, 4, 18, 18, 13, 17, 13, 30, 0, 13, 17, 3, 40, 13, 14, 2, 2, 13, 13, 2, 13, 13, 30, 14, 2, 13, 13, 30, 0, 13, 17, 3, 14, 2, 13, 13, 30, 0, 13, 17, 3, 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 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 16, 21 ], [ 12, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 28, 29 ], [ 29, 30 ], [ 22, 31 ], [ 31, 32 ], [ 31, 33 ], [ 22, 35 ], [ 35, 36 ], [ 35, 37 ], [ 22, 38 ], [ 38, 39 ], [ 38, 40 ], [ 22, 41 ], [ 41, 42 ], [ 22, 43 ], [ 43, 44 ], [ 22, 45 ], [ 45, 46 ], [ 22, 47 ], [ 47, 48 ], [ 22, 49 ], [ 49, 50 ], [ 49, 51 ], [ 22, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 59, 64 ], [ 56, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 71, 72 ], [ 71, 73 ], [ 65, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 78, 80 ], [ 65, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 81, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 81, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 103, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 102, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 120 ], [ 102, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 123, 128 ], [ 122, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 129, 134 ], [ 121, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 135, 139 ], [ 101, 140 ], [ 140, 141 ], [ 101, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 147, 148 ], [ 147, 149 ], [ 142, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 155, 159 ], [ 151, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 160, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 164, 168 ], [ 56, 169 ], [ 169, 170 ], [ 22, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 171, 176 ], [ 177, 177 ], [ 177, 178 ], [ 177, 179 ], [ 177, 180 ], [ 6, 181 ], [ 181, 182 ] ]
[ "import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\tint n = Integer.parseInt( kb.readLine() );\n\t\t\tString[] cards = new String[ 2 ];\n\t\t\tint hanakoScore = 0, taroScore = 0;\n\t\t\tint i,j,hlen,tlen;\n\t\t\ti=0;\t\t\t\n\t while( i<n ) {\n\t\t\t\tcards = kb.readLine().split( \" \" );\n\t\t\t\tif( cards[0].equals( cards[1] ) ) {\n\t\t\t\t\thanakoScore += 1;\n\t\t\t\t\ttaroScore += 1;\n\t\t\t\t} else {\n\t\t\t\t\tj=0;\n\t\t\t\t\thlen = cards[0].length();\n\t\t\t\t\ttlen = cards[1].length();\n\t\t\t\t\twhile( true ) {\n\t\t\t\t\t\tif( cards[0].charAt( j ) < cards[1].charAt( j ) ) {\n\t\t\t\t\t\t\ttaroScore += 3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} else if( cards[0].charAt( j ) > cards[1].charAt( j ) ) {\n\t\t\t\t\t\t\thanakoScore += 3;\n\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tj++;\n\t\t\t\t\t\tif( j == hlen || j == tlen ) {\n\t\t\t\t\t\t\tif( hlen < tlen ) {\n\t\t\t\t\t\t\t\ttaroScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else if( hlen > tlen ) {\n\t\t\t\t\t\t\t\thanakoScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ti++;\n\t }\n\t \n \tSystem.out.println( hanakoScore+\" \"+taroScore );\t\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}\n}", "import java.io.*;", "io.*", "java", "class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\tint n = Integer.parseInt( kb.readLine() );\n\t\t\tString[] cards = new String[ 2 ];\n\t\t\tint hanakoScore = 0, taroScore = 0;\n\t\t\tint i,j,hlen,tlen;\n\t\t\ti=0;\t\t\t\n\t while( i<n ) {\n\t\t\t\tcards = kb.readLine().split( \" \" );\n\t\t\t\tif( cards[0].equals( cards[1] ) ) {\n\t\t\t\t\thanakoScore += 1;\n\t\t\t\t\ttaroScore += 1;\n\t\t\t\t} else {\n\t\t\t\t\tj=0;\n\t\t\t\t\thlen = cards[0].length();\n\t\t\t\t\ttlen = cards[1].length();\n\t\t\t\t\twhile( true ) {\n\t\t\t\t\t\tif( cards[0].charAt( j ) < cards[1].charAt( j ) ) {\n\t\t\t\t\t\t\ttaroScore += 3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} else if( cards[0].charAt( j ) > cards[1].charAt( j ) ) {\n\t\t\t\t\t\t\thanakoScore += 3;\n\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tj++;\n\t\t\t\t\t\tif( j == hlen || j == tlen ) {\n\t\t\t\t\t\t\tif( hlen < tlen ) {\n\t\t\t\t\t\t\t\ttaroScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else if( hlen > tlen ) {\n\t\t\t\t\t\t\t\thanakoScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ti++;\n\t }\n\t \n \tSystem.out.println( hanakoScore+\" \"+taroScore );\t\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\tint n = Integer.parseInt( kb.readLine() );\n\t\t\tString[] cards = new String[ 2 ];\n\t\t\tint hanakoScore = 0, taroScore = 0;\n\t\t\tint i,j,hlen,tlen;\n\t\t\ti=0;\t\t\t\n\t while( i<n ) {\n\t\t\t\tcards = kb.readLine().split( \" \" );\n\t\t\t\tif( cards[0].equals( cards[1] ) ) {\n\t\t\t\t\thanakoScore += 1;\n\t\t\t\t\ttaroScore += 1;\n\t\t\t\t} else {\n\t\t\t\t\tj=0;\n\t\t\t\t\thlen = cards[0].length();\n\t\t\t\t\ttlen = cards[1].length();\n\t\t\t\t\twhile( true ) {\n\t\t\t\t\t\tif( cards[0].charAt( j ) < cards[1].charAt( j ) ) {\n\t\t\t\t\t\t\ttaroScore += 3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} else if( cards[0].charAt( j ) > cards[1].charAt( j ) ) {\n\t\t\t\t\t\t\thanakoScore += 3;\n\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tj++;\n\t\t\t\t\t\tif( j == hlen || j == tlen ) {\n\t\t\t\t\t\t\tif( hlen < tlen ) {\n\t\t\t\t\t\t\t\ttaroScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else if( hlen > tlen ) {\n\t\t\t\t\t\t\t\thanakoScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ti++;\n\t }\n\t \n \tSystem.out.println( hanakoScore+\" \"+taroScore );\t\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\tint n = Integer.parseInt( kb.readLine() );\n\t\t\tString[] cards = new String[ 2 ];\n\t\t\tint hanakoScore = 0, taroScore = 0;\n\t\t\tint i,j,hlen,tlen;\n\t\t\ti=0;\t\t\t\n\t while( i<n ) {\n\t\t\t\tcards = kb.readLine().split( \" \" );\n\t\t\t\tif( cards[0].equals( cards[1] ) ) {\n\t\t\t\t\thanakoScore += 1;\n\t\t\t\t\ttaroScore += 1;\n\t\t\t\t} else {\n\t\t\t\t\tj=0;\n\t\t\t\t\thlen = cards[0].length();\n\t\t\t\t\ttlen = cards[1].length();\n\t\t\t\t\twhile( true ) {\n\t\t\t\t\t\tif( cards[0].charAt( j ) < cards[1].charAt( j ) ) {\n\t\t\t\t\t\t\ttaroScore += 3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} else if( cards[0].charAt( j ) > cards[1].charAt( j ) ) {\n\t\t\t\t\t\t\thanakoScore += 3;\n\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tj++;\n\t\t\t\t\t\tif( j == hlen || j == tlen ) {\n\t\t\t\t\t\t\tif( hlen < tlen ) {\n\t\t\t\t\t\t\t\ttaroScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else if( hlen > tlen ) {\n\t\t\t\t\t\t\t\thanakoScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ti++;\n\t }\n\t \n \tSystem.out.println( hanakoScore+\" \"+taroScore );\t\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}", "BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );", "kb", "new BufferedReader( new InputStreamReader( System.in ) )", "try {\n\t\t\tint n = Integer.parseInt( kb.readLine() );\n\t\t\tString[] cards = new String[ 2 ];\n\t\t\tint hanakoScore = 0, taroScore = 0;\n\t\t\tint i,j,hlen,tlen;\n\t\t\ti=0;\t\t\t\n\t while( i<n ) {\n\t\t\t\tcards = kb.readLine().split( \" \" );\n\t\t\t\tif( cards[0].equals( cards[1] ) ) {\n\t\t\t\t\thanakoScore += 1;\n\t\t\t\t\ttaroScore += 1;\n\t\t\t\t} else {\n\t\t\t\t\tj=0;\n\t\t\t\t\thlen = cards[0].length();\n\t\t\t\t\ttlen = cards[1].length();\n\t\t\t\t\twhile( true ) {\n\t\t\t\t\t\tif( cards[0].charAt( j ) < cards[1].charAt( j ) ) {\n\t\t\t\t\t\t\ttaroScore += 3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} else if( cards[0].charAt( j ) > cards[1].charAt( j ) ) {\n\t\t\t\t\t\t\thanakoScore += 3;\n\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tj++;\n\t\t\t\t\t\tif( j == hlen || j == tlen ) {\n\t\t\t\t\t\t\tif( hlen < tlen ) {\n\t\t\t\t\t\t\t\ttaroScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else if( hlen > tlen ) {\n\t\t\t\t\t\t\t\thanakoScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ti++;\n\t }\n\t \n \tSystem.out.println( hanakoScore+\" \"+taroScore );\t\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}", "catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}", "IOException e", "{\n\t\t\tSystem.err.println( e );\n\t\t}", "System.err.println( e )", "System.err.println", "System.err", "System", "System.err", "e", "{\n\t\t\tint n = Integer.parseInt( kb.readLine() );\n\t\t\tString[] cards = new String[ 2 ];\n\t\t\tint hanakoScore = 0, taroScore = 0;\n\t\t\tint i,j,hlen,tlen;\n\t\t\ti=0;\t\t\t\n\t while( i<n ) {\n\t\t\t\tcards = kb.readLine().split( \" \" );\n\t\t\t\tif( cards[0].equals( cards[1] ) ) {\n\t\t\t\t\thanakoScore += 1;\n\t\t\t\t\ttaroScore += 1;\n\t\t\t\t} else {\n\t\t\t\t\tj=0;\n\t\t\t\t\thlen = cards[0].length();\n\t\t\t\t\ttlen = cards[1].length();\n\t\t\t\t\twhile( true ) {\n\t\t\t\t\t\tif( cards[0].charAt( j ) < cards[1].charAt( j ) ) {\n\t\t\t\t\t\t\ttaroScore += 3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} else if( cards[0].charAt( j ) > cards[1].charAt( j ) ) {\n\t\t\t\t\t\t\thanakoScore += 3;\n\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tj++;\n\t\t\t\t\t\tif( j == hlen || j == tlen ) {\n\t\t\t\t\t\t\tif( hlen < tlen ) {\n\t\t\t\t\t\t\t\ttaroScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else if( hlen > tlen ) {\n\t\t\t\t\t\t\t\thanakoScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ti++;\n\t }\n\t \n \tSystem.out.println( hanakoScore+\" \"+taroScore );\t\t\t\t\n\t\t}", "int n = Integer.parseInt( kb.readLine() );", "n", "Integer.parseInt( kb.readLine() )", "Integer.parseInt", "Integer", "kb.readLine()", "kb.readLine", "kb", "String[] cards = new String[ 2 ];", "cards", "new String[ 2 ]", "2", "int hanakoScore = 0", "hanakoScore", "0", "taroScore = 0;", "taroScore", "0", "int i", "i", "j", "j", "hlen", "hlen", "tlen;", "tlen", "i=0", "i", "0", "while( i<n ) {\n\t\t\t\tcards = kb.readLine().split( \" \" );\n\t\t\t\tif( cards[0].equals( cards[1] ) ) {\n\t\t\t\t\thanakoScore += 1;\n\t\t\t\t\ttaroScore += 1;\n\t\t\t\t} else {\n\t\t\t\t\tj=0;\n\t\t\t\t\thlen = cards[0].length();\n\t\t\t\t\ttlen = cards[1].length();\n\t\t\t\t\twhile( true ) {\n\t\t\t\t\t\tif( cards[0].charAt( j ) < cards[1].charAt( j ) ) {\n\t\t\t\t\t\t\ttaroScore += 3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} else if( cards[0].charAt( j ) > cards[1].charAt( j ) ) {\n\t\t\t\t\t\t\thanakoScore += 3;\n\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tj++;\n\t\t\t\t\t\tif( j == hlen || j == tlen ) {\n\t\t\t\t\t\t\tif( hlen < tlen ) {\n\t\t\t\t\t\t\t\ttaroScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else if( hlen > tlen ) {\n\t\t\t\t\t\t\t\thanakoScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ti++;\n\t }", "i<n", "i", "n", "{\n\t\t\t\tcards = kb.readLine().split( \" \" );\n\t\t\t\tif( cards[0].equals( cards[1] ) ) {\n\t\t\t\t\thanakoScore += 1;\n\t\t\t\t\ttaroScore += 1;\n\t\t\t\t} else {\n\t\t\t\t\tj=0;\n\t\t\t\t\thlen = cards[0].length();\n\t\t\t\t\ttlen = cards[1].length();\n\t\t\t\t\twhile( true ) {\n\t\t\t\t\t\tif( cards[0].charAt( j ) < cards[1].charAt( j ) ) {\n\t\t\t\t\t\t\ttaroScore += 3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} else if( cards[0].charAt( j ) > cards[1].charAt( j ) ) {\n\t\t\t\t\t\t\thanakoScore += 3;\n\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tj++;\n\t\t\t\t\t\tif( j == hlen || j == tlen ) {\n\t\t\t\t\t\t\tif( hlen < tlen ) {\n\t\t\t\t\t\t\t\ttaroScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else if( hlen > tlen ) {\n\t\t\t\t\t\t\t\thanakoScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ti++;\n\t }", "cards = kb.readLine().split( \" \" )", "cards", "kb.readLine().split( \" \" )", "kb.readLine().split", "kb.readLine()", "kb.readLine", "kb", "\" \"", "if( cards[0].equals( cards[1] ) ) {\n\t\t\t\t\thanakoScore += 1;\n\t\t\t\t\ttaroScore += 1;\n\t\t\t\t} else {\n\t\t\t\t\tj=0;\n\t\t\t\t\thlen = cards[0].length();\n\t\t\t\t\ttlen = cards[1].length();\n\t\t\t\t\twhile( true ) {\n\t\t\t\t\t\tif( cards[0].charAt( j ) < cards[1].charAt( j ) ) {\n\t\t\t\t\t\t\ttaroScore += 3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} else if( cards[0].charAt( j ) > cards[1].charAt( j ) ) {\n\t\t\t\t\t\t\thanakoScore += 3;\n\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tj++;\n\t\t\t\t\t\tif( j == hlen || j == tlen ) {\n\t\t\t\t\t\t\tif( hlen < tlen ) {\n\t\t\t\t\t\t\t\ttaroScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else if( hlen > tlen ) {\n\t\t\t\t\t\t\t\thanakoScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}", "cards[0].equals( cards[1] )", "cards[0].equals", "cards[0]", "cards", "0", "cards[1]", "cards", "1", "{\n\t\t\t\t\thanakoScore += 1;\n\t\t\t\t\ttaroScore += 1;\n\t\t\t\t}", "hanakoScore += 1", "hanakoScore", "1", "taroScore += 1", "taroScore", "1", "{\n\t\t\t\t\tj=0;\n\t\t\t\t\thlen = cards[0].length();\n\t\t\t\t\ttlen = cards[1].length();\n\t\t\t\t\twhile( true ) {\n\t\t\t\t\t\tif( cards[0].charAt( j ) < cards[1].charAt( j ) ) {\n\t\t\t\t\t\t\ttaroScore += 3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} else if( cards[0].charAt( j ) > cards[1].charAt( j ) ) {\n\t\t\t\t\t\t\thanakoScore += 3;\n\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tj++;\n\t\t\t\t\t\tif( j == hlen || j == tlen ) {\n\t\t\t\t\t\t\tif( hlen < tlen ) {\n\t\t\t\t\t\t\t\ttaroScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else if( hlen > tlen ) {\n\t\t\t\t\t\t\t\thanakoScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}", "j=0", "j", "0", "hlen = cards[0].length()", "hlen", "cards[0].length()", "cards[0].length", "cards[0]", "cards", "0", "tlen = cards[1].length()", "tlen", "cards[1].length()", "cards[1].length", "cards[1]", "cards", "1", "while( true ) {\n\t\t\t\t\t\tif( cards[0].charAt( j ) < cards[1].charAt( j ) ) {\n\t\t\t\t\t\t\ttaroScore += 3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} else if( cards[0].charAt( j ) > cards[1].charAt( j ) ) {\n\t\t\t\t\t\t\thanakoScore += 3;\n\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tj++;\n\t\t\t\t\t\tif( j == hlen || j == tlen ) {\n\t\t\t\t\t\t\tif( hlen < tlen ) {\n\t\t\t\t\t\t\t\ttaroScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else if( hlen > tlen ) {\n\t\t\t\t\t\t\t\thanakoScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\t}", "true", "{\n\t\t\t\t\t\tif( cards[0].charAt( j ) < cards[1].charAt( j ) ) {\n\t\t\t\t\t\t\ttaroScore += 3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} else if( cards[0].charAt( j ) > cards[1].charAt( j ) ) {\n\t\t\t\t\t\t\thanakoScore += 3;\n\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tj++;\n\t\t\t\t\t\tif( j == hlen || j == tlen ) {\n\t\t\t\t\t\t\tif( hlen < tlen ) {\n\t\t\t\t\t\t\t\ttaroScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else if( hlen > tlen ) {\n\t\t\t\t\t\t\t\thanakoScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\t}", "if( cards[0].charAt( j ) < cards[1].charAt( j ) ) {\n\t\t\t\t\t\t\ttaroScore += 3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} else if( cards[0].charAt( j ) > cards[1].charAt( j ) ) {\n\t\t\t\t\t\t\thanakoScore += 3;\n\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\n\t\t\t\t\t\t}", "cards[0].charAt( j ) < cards[1].charAt( j )", "cards[0].charAt( j )", "cards[0].charAt", "cards[0]", "cards", "0", "j", "cards[1].charAt( j )", "cards[1].charAt", "cards[1]", "cards", "1", "j", "{\n\t\t\t\t\t\t\ttaroScore += 3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}", "taroScore += 3", "taroScore", "3", "break;", "if( cards[0].charAt( j ) > cards[1].charAt( j ) ) {\n\t\t\t\t\t\t\thanakoScore += 3;\n\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\n\t\t\t\t\t\t}", "cards[0].charAt( j ) > cards[1].charAt( j )", "cards[0].charAt( j )", "cards[0].charAt", "cards[0]", "cards", "0", "j", "cards[1].charAt( j )", "cards[1].charAt", "cards[1]", "cards", "1", "j", "{\n\t\t\t\t\t\t\thanakoScore += 3;\n\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\n\t\t\t\t\t\t}", "hanakoScore += 3", "hanakoScore", "3", "break;", "j++", "j", "if( j == hlen || j == tlen ) {\n\t\t\t\t\t\t\tif( hlen < tlen ) {\n\t\t\t\t\t\t\t\ttaroScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else if( hlen > tlen ) {\n\t\t\t\t\t\t\t\thanakoScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "j == hlen || j == tlen", "j == hlen", "j", "hlen", "j == tlen", "j", "tlen", "{\n\t\t\t\t\t\t\tif( hlen < tlen ) {\n\t\t\t\t\t\t\t\ttaroScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else if( hlen > tlen ) {\n\t\t\t\t\t\t\t\thanakoScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "if( hlen < tlen ) {\n\t\t\t\t\t\t\t\ttaroScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else if( hlen > tlen ) {\n\t\t\t\t\t\t\t\thanakoScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}", "hlen < tlen", "hlen", "tlen", "{\n\t\t\t\t\t\t\t\ttaroScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}", "taroScore += 3", "taroScore", "3", "break;", "if( hlen > tlen ) {\n\t\t\t\t\t\t\t\thanakoScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}", "hlen > tlen", "hlen", "tlen", "{\n\t\t\t\t\t\t\t\thanakoScore += 3;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}", "hanakoScore += 3", "hanakoScore", "3", "break;", "i++", "i", "System.out.println( hanakoScore+\" \"+taroScore )", "System.out.println", "System.out", "System", "System.out", "hanakoScore+\" \"+taroScore", "hanakoScore+\" \"+taroScore", "hanakoScore", "\" \"", "taroScore", "String[] args", "args" ]
import java.io.*; class Main { public static void main(String[] args) { BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) ); try { int n = Integer.parseInt( kb.readLine() ); String[] cards = new String[ 2 ]; int hanakoScore = 0, taroScore = 0; int i,j,hlen,tlen; i=0; while( i<n ) { cards = kb.readLine().split( " " ); if( cards[0].equals( cards[1] ) ) { hanakoScore += 1; taroScore += 1; } else { j=0; hlen = cards[0].length(); tlen = cards[1].length(); while( true ) { if( cards[0].charAt( j ) < cards[1].charAt( j ) ) { taroScore += 3; break; } else if( cards[0].charAt( j ) > cards[1].charAt( j ) ) { hanakoScore += 3; break; } j++; if( j == hlen || j == tlen ) { if( hlen < tlen ) { taroScore += 3; break; } else if( hlen > tlen ) { hanakoScore += 3; break; } } } } i++; } System.out.println( hanakoScore+" "+taroScore ); } catch( IOException e ) { System.err.println( e ); } } }
[ 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, 41, 13, 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, 0, 13, 4, 18, 13, 17, 4, 18, 13, 17, 0, 13, 4, 18, 13, 2, 4, 18, 13, 17, 17, 4, 18, 13, 0, 13, 4, 18, 13, 13, 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, 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 ], [ 145, 14 ], [ 145, 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 ], [ 19, 28 ], [ 28, 29 ], [ 19, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 19, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 40, 41 ], [ 41, 42 ], [ 19, 43 ], [ 43, 44 ], [ 43, 45 ], [ 19, 46 ], [ 46, 47 ], [ 46, 48 ], [ 19, 49 ], [ 49, 50 ], [ 49, 51 ], [ 19, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 52, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 69, 70 ], [ 64, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 73, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 64, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 86, 91 ], [ 83, 92 ], [ 92, 93 ], [ 93, 94 ], [ 64, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 97, 101 ], [ 64, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 104, 108 ], [ 104, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 109, 113 ], [ 109, 114 ], [ 64, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 117, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 122, 127 ], [ 64, 128 ], [ 128, 129 ], [ 129, 130 ], [ 128, 131 ], [ 19, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 132, 137 ], [ 138, 138 ], [ 138, 139 ], [ 138, 140 ], [ 138, 141 ], [ 15, 142 ], [ 142, 143 ], [ 0, 144 ], [ 144, 145 ], [ 144, 146 ] ]
[ "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 String wordA;\n String wordB;\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 = line.substring(0, line.indexOf(\" \"));\n wordB = line.substring(line.indexOf(\" \")+1, line.length());\n\n result = collator.compare(wordA,wordB);\n pointA += result == 0 ? 1 : result < 0 ? 0 : 3;\n pointB += result == 0 ? 1 : result < 0 ? 3 : 0;\n\n line.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 String wordA;\n String wordB;\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 = line.substring(0, line.indexOf(\" \"));\n wordB = line.substring(line.indexOf(\" \")+1, line.length());\n\n result = collator.compare(wordA,wordB);\n pointA += result == 0 ? 1 : result < 0 ? 0 : 3;\n pointB += result == 0 ? 1 : result < 0 ? 3 : 0;\n\n line.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 String wordA;\n String wordB;\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 = line.substring(0, line.indexOf(\" \"));\n wordB = line.substring(line.indexOf(\" \")+1, line.length());\n\n result = collator.compare(wordA,wordB);\n pointA += result == 0 ? 1 : result < 0 ? 0 : 3;\n pointB += result == 0 ? 1 : result < 0 ? 3 : 0;\n\n line.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 String wordA;\n String wordB;\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 = line.substring(0, line.indexOf(\" \"));\n wordB = line.substring(line.indexOf(\" \")+1, line.length());\n\n result = collator.compare(wordA,wordB);\n pointA += result == 0 ? 1 : result < 0 ? 0 : 3;\n pointB += result == 0 ? 1 : result < 0 ? 3 : 0;\n\n line.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 String wordA;\n String wordB;\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 = line.substring(0, line.indexOf(\" \"));\n wordB = line.substring(line.indexOf(\" \")+1, line.length());\n\n result = collator.compare(wordA,wordB);\n pointA += result == 0 ? 1 : result < 0 ? 0 : 3;\n pointB += result == 0 ? 1 : result < 0 ? 3 : 0;\n\n line.setLength(0);\n }\n\n System.out.println(pointA + \" \" + pointB);\n }", "{\n\n StringBuilder line = new StringBuilder();\n String wordA;\n String wordB;\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 = line.substring(0, line.indexOf(\" \"));\n wordB = line.substring(line.indexOf(\" \")+1, line.length());\n\n result = collator.compare(wordA,wordB);\n pointA += result == 0 ? 1 : result < 0 ? 0 : 3;\n pointB += result == 0 ? 1 : result < 0 ? 3 : 0;\n\n line.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()", "String wordA;", "wordA", "String wordB;", "wordB", "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 = line.substring(0, line.indexOf(\" \"));\n wordB = line.substring(line.indexOf(\" \")+1, line.length());\n\n result = collator.compare(wordA,wordB);\n pointA += result == 0 ? 1 : result < 0 ? 0 : 3;\n pointB += result == 0 ? 1 : result < 0 ? 3 : 0;\n\n line.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 = line.substring(0, line.indexOf(\" \"));\n wordB = line.substring(line.indexOf(\" \")+1, line.length());\n\n result = collator.compare(wordA,wordB);\n pointA += result == 0 ? 1 : result < 0 ? 0 : 3;\n pointB += result == 0 ? 1 : result < 0 ? 3 : 0;\n\n line.setLength(0);\n }", "{\n\n line.append(br.readLine());\n wordA = line.substring(0, line.indexOf(\" \"));\n wordB = line.substring(line.indexOf(\" \")+1, line.length());\n\n result = collator.compare(wordA,wordB);\n pointA += result == 0 ? 1 : result < 0 ? 0 : 3;\n pointB += result == 0 ? 1 : result < 0 ? 3 : 0;\n\n line.setLength(0);\n }", "line.append(br.readLine())", "line.append", "line", "br.readLine()", "br.readLine", "br", "wordA = line.substring(0, line.indexOf(\" \"))", "wordA", "line.substring(0, line.indexOf(\" \"))", "line.substring", "line", "0", "line.indexOf(\" \")", "line.indexOf", "line", "\" \"", "wordB = line.substring(line.indexOf(\" \")+1, line.length())", "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,wordB)", "result", "collator.compare(wordA,wordB)", "collator.compare", "collator", "wordA", "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", "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 String wordA;\n String wordB;\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 = line.substring(0, line.indexOf(\" \"));\n wordB = line.substring(line.indexOf(\" \")+1, line.length());\n\n result = collator.compare(wordA,wordB);\n pointA += result == 0 ? 1 : result < 0 ? 0 : 3;\n pointB += result == 0 ? 1 : result < 0 ? 3 : 0;\n\n line.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 String wordA;\n String wordB;\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 = line.substring(0, line.indexOf(\" \"));\n wordB = line.substring(line.indexOf(\" \")+1, line.length());\n\n result = collator.compare(wordA,wordB);\n pointA += result == 0 ? 1 : result < 0 ? 0 : 3;\n pointB += result == 0 ? 1 : result < 0 ? 3 : 0;\n\n line.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(); String wordA; String wordB; 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 = line.substring(0, line.indexOf(" ")); wordB = line.substring(line.indexOf(" ")+1, line.length()); result = collator.compare(wordA,wordB); pointA += result == 0 ? 1 : result < 0 ? 0 : 3; pointB += result == 0 ? 1 : result < 0 ? 3 : 0; line.setLength(0); } System.out.println(pointA + " " + pointB); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 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, 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 ], [ 91, 5 ], [ 91, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 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 ], [ 64, 68 ], [ 68, 69 ], [ 68, 70 ], [ 57, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 8, 75 ], [ 75, 76 ], [ 76, 77 ], [ 8, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 84, 84 ], [ 84, 85 ], [ 84, 86 ], [ 84, 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\tint score1 = 0, score2 = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString card1 = scan.next();\n\t\t\tString card2 = scan.next();\n\t\t\tif(card1.compareTo(card2) > 0){\n\t\t\t\tscore1 += 3;\n\t\t\t}else if(card1.compareTo(card2) == 0){\n\t\t\t\tscore1 += 1;\n\t\t\t\tscore2 += 1;\n\t\t\t}else{\n\t\t\t\tscore2 += 3;\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.println(score1 + \" \" + score2);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tint score1 = 0, score2 = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString card1 = scan.next();\n\t\t\tString card2 = scan.next();\n\t\t\tif(card1.compareTo(card2) > 0){\n\t\t\t\tscore1 += 3;\n\t\t\t}else if(card1.compareTo(card2) == 0){\n\t\t\t\tscore1 += 1;\n\t\t\t\tscore2 += 1;\n\t\t\t}else{\n\t\t\t\tscore2 += 3;\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.println(score1 + \" \" + score2);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tint score1 = 0, score2 = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString card1 = scan.next();\n\t\t\tString card2 = scan.next();\n\t\t\tif(card1.compareTo(card2) > 0){\n\t\t\t\tscore1 += 3;\n\t\t\t}else if(card1.compareTo(card2) == 0){\n\t\t\t\tscore1 += 1;\n\t\t\t\tscore2 += 1;\n\t\t\t}else{\n\t\t\t\tscore2 += 3;\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.println(score1 + \" \" + score2);\n\t}", "main", "{\n\t\tint score1 = 0, score2 = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString card1 = scan.next();\n\t\t\tString card2 = scan.next();\n\t\t\tif(card1.compareTo(card2) > 0){\n\t\t\t\tscore1 += 3;\n\t\t\t}else if(card1.compareTo(card2) == 0){\n\t\t\t\tscore1 += 1;\n\t\t\t\tscore2 += 1;\n\t\t\t}else{\n\t\t\t\tscore2 += 3;\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.println(score1 + \" \" + score2);\n\t}", "int score1 = 0", "score1", "0", "score2 = 0;", "score2", "0", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "for(int i = 0; i < n; i++){\n\t\t\tString card1 = scan.next();\n\t\t\tString card2 = scan.next();\n\t\t\tif(card1.compareTo(card2) > 0){\n\t\t\t\tscore1 += 3;\n\t\t\t}else if(card1.compareTo(card2) == 0){\n\t\t\t\tscore1 += 1;\n\t\t\t\tscore2 += 1;\n\t\t\t}else{\n\t\t\t\tscore2 += 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 card1 = scan.next();\n\t\t\tString card2 = scan.next();\n\t\t\tif(card1.compareTo(card2) > 0){\n\t\t\t\tscore1 += 3;\n\t\t\t}else if(card1.compareTo(card2) == 0){\n\t\t\t\tscore1 += 1;\n\t\t\t\tscore2 += 1;\n\t\t\t}else{\n\t\t\t\tscore2 += 3;\n\t\t\t}\n\t\t}", "{\n\t\t\tString card1 = scan.next();\n\t\t\tString card2 = scan.next();\n\t\t\tif(card1.compareTo(card2) > 0){\n\t\t\t\tscore1 += 3;\n\t\t\t}else if(card1.compareTo(card2) == 0){\n\t\t\t\tscore1 += 1;\n\t\t\t\tscore2 += 1;\n\t\t\t}else{\n\t\t\t\tscore2 += 3;\n\t\t\t}\n\t\t}", "String card1 = scan.next();", "card1", "scan.next()", "scan.next", "scan", "String card2 = scan.next();", "card2", "scan.next()", "scan.next", "scan", "if(card1.compareTo(card2) > 0){\n\t\t\t\tscore1 += 3;\n\t\t\t}else if(card1.compareTo(card2) == 0){\n\t\t\t\tscore1 += 1;\n\t\t\t\tscore2 += 1;\n\t\t\t}else{\n\t\t\t\tscore2 += 3;\n\t\t\t}", "card1.compareTo(card2) > 0", "card1.compareTo(card2)", "card1.compareTo", "card1", "card2", "0", "{\n\t\t\t\tscore1 += 3;\n\t\t\t}", "score1 += 3", "score1", "3", "if(card1.compareTo(card2) == 0){\n\t\t\t\tscore1 += 1;\n\t\t\t\tscore2 += 1;\n\t\t\t}else{\n\t\t\t\tscore2 += 3;\n\t\t\t}", "card1.compareTo(card2) == 0", "card1.compareTo(card2)", "card1.compareTo", "card1", "card2", "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\tscore2 += 3;\n\t\t\t}", "score2 += 3", "score2", "3", "scan.close()", "scan.close", "scan", "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\tpublic static void main(String[] args) {\n\t\tint score1 = 0, score2 = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString card1 = scan.next();\n\t\t\tString card2 = scan.next();\n\t\t\tif(card1.compareTo(card2) > 0){\n\t\t\t\tscore1 += 3;\n\t\t\t}else if(card1.compareTo(card2) == 0){\n\t\t\t\tscore1 += 1;\n\t\t\t\tscore2 += 1;\n\t\t\t}else{\n\t\t\t\tscore2 += 3;\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.println(score1 + \" \" + score2);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tint score1 = 0, score2 = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString card1 = scan.next();\n\t\t\tString card2 = scan.next();\n\t\t\tif(card1.compareTo(card2) > 0){\n\t\t\t\tscore1 += 3;\n\t\t\t}else if(card1.compareTo(card2) == 0){\n\t\t\t\tscore1 += 1;\n\t\t\t\tscore2 += 1;\n\t\t\t}else{\n\t\t\t\tscore2 += 3;\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.println(score1 + \" \" + score2);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { int score1 = 0, score2 = 0; Scanner scan = new Scanner(System.in); int n = scan.nextInt(); for(int i = 0; i < n; i++){ String card1 = scan.next(); String card2 = scan.next(); if(card1.compareTo(card2) > 0){ score1 += 3; }else if(card1.compareTo(card2) == 0){ score1 += 1; score2 += 1; }else{ score2 += 3; } } scan.close(); System.out.println(score1 + " " + score2); } }
[ 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, 14, 2, 4, 18, 18, 13, 17, 18, 13, 17, 17, 30, 0, 13, 2, 13, 17, 14, 2, 4, 18, 18, 13, 17, 18, 13, 17, 17, 30, 0, 13, 2, 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 ], [ 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 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 54, 55 ], [ 54, 56 ], [ 48, 57 ], [ 47, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 47, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 71, 72 ], [ 71, 73 ], [ 65, 74 ], [ 64, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 78, 80 ], [ 64, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 84, 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 ] ]
[ "import java.io.*;\n\nclass Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint h = Integer.parseInt(br.readLine());\n\t\tint x=0,y=0;\n\t\tfor(int i=0 ;i<h ;i++){\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tif(str[0].compareTo(str[1])>0){\n\t\t\t\tx = x + 3;\n\t\t\t}else if(str[0].compareTo(str[1])<0){\n\t\t\t\ty = y + 3;\n\t\t\t}else{\n\t\t\t\tx++;\n\t\t\t\ty++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(x + \" \" + y);\n\t}\n}", "import java.io.*;", "io.*", "java", "class Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint h = Integer.parseInt(br.readLine());\n\t\tint x=0,y=0;\n\t\tfor(int i=0 ;i<h ;i++){\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tif(str[0].compareTo(str[1])>0){\n\t\t\t\tx = x + 3;\n\t\t\t}else if(str[0].compareTo(str[1])<0){\n\t\t\t\ty = y + 3;\n\t\t\t}else{\n\t\t\t\tx++;\n\t\t\t\ty++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(x + \" \" + y);\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 h = Integer.parseInt(br.readLine());\n\t\tint x=0,y=0;\n\t\tfor(int i=0 ;i<h ;i++){\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tif(str[0].compareTo(str[1])>0){\n\t\t\t\tx = x + 3;\n\t\t\t}else if(str[0].compareTo(str[1])<0){\n\t\t\t\ty = y + 3;\n\t\t\t}else{\n\t\t\t\tx++;\n\t\t\t\ty++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(x + \" \" + y);\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint h = Integer.parseInt(br.readLine());\n\t\tint x=0,y=0;\n\t\tfor(int i=0 ;i<h ;i++){\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tif(str[0].compareTo(str[1])>0){\n\t\t\t\tx = x + 3;\n\t\t\t}else if(str[0].compareTo(str[1])<0){\n\t\t\t\ty = y + 3;\n\t\t\t}else{\n\t\t\t\tx++;\n\t\t\t\ty++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(x + \" \" + y);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int h = Integer.parseInt(br.readLine());", "h", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int x=0", "x", "0", "y=0;", "y", "0", "for(int i=0 ;i<h ;i++){\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tif(str[0].compareTo(str[1])>0){\n\t\t\t\tx = x + 3;\n\t\t\t}else if(str[0].compareTo(str[1])<0){\n\t\t\t\ty = y + 3;\n\t\t\t}else{\n\t\t\t\tx++;\n\t\t\t\ty++;\n\t\t\t}\n\t\t}", "int i=0 ;", "int i=0 ;", "i", "0", "i<h", "i", "h", "i++", "i++", "i", "{\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tif(str[0].compareTo(str[1])>0){\n\t\t\t\tx = x + 3;\n\t\t\t}else if(str[0].compareTo(str[1])<0){\n\t\t\t\ty = y + 3;\n\t\t\t}else{\n\t\t\t\tx++;\n\t\t\t\ty++;\n\t\t\t}\n\t\t}", "{\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tif(str[0].compareTo(str[1])>0){\n\t\t\t\tx = x + 3;\n\t\t\t}else if(str[0].compareTo(str[1])<0){\n\t\t\t\ty = y + 3;\n\t\t\t}else{\n\t\t\t\tx++;\n\t\t\t\ty++;\n\t\t\t}\n\t\t}", "String[] str = br.readLine().split(\" \");", "str", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "if(str[0].compareTo(str[1])>0){\n\t\t\t\tx = x + 3;\n\t\t\t}else if(str[0].compareTo(str[1])<0){\n\t\t\t\ty = y + 3;\n\t\t\t}else{\n\t\t\t\tx++;\n\t\t\t\ty++;\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", "{\n\t\t\t\tx = x + 3;\n\t\t\t}", "x = x + 3", "x", "x + 3", "x", "3", "if(str[0].compareTo(str[1])<0){\n\t\t\t\ty = y + 3;\n\t\t\t}else{\n\t\t\t\tx++;\n\t\t\t\ty++;\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", "{\n\t\t\t\ty = y + 3;\n\t\t\t}", "y = y + 3", "y", "y + 3", "y", "3", "{\n\t\t\t\tx++;\n\t\t\t\ty++;\n\t\t\t}", "x++", "x", "y++", "y", "System.out.println(x + \" \" + y)", "System.out.println", "System.out", "System", "System.out", "x + \" \" + y", "x + \" \" + y", "x", "\" \"", "y", "String[] args", "args" ]
import java.io.*; class Main{ public static void main(String[] args)throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int h = Integer.parseInt(br.readLine()); int x=0,y=0; for(int i=0 ;i<h ;i++){ String[] str = br.readLine().split(" "); if(str[0].compareTo(str[1])>0){ x = x + 3; }else if(str[0].compareTo(str[1])<0){ y = y + 3; }else{ x++; y++; } } System.out.println(x + " " + y); } }
[ 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, 42, 2, 0, 13, 4, 18, 13, 17, 30, 14, 2, 2, 13, 17, 2, 4, 18, 13, 17, 3, 41, 13, 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 ], [ 35, 36 ], [ 36, 37 ], [ 32, 38 ], [ 31, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 45, 49 ], [ 40, 50 ], [ 39, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 39, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 39, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 39, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 39, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 73, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 81, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 93, 94 ], [ 93, 95 ], [ 11, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 102, 102 ], [ 102, 103 ], [ 102, 104 ], [ 102, 105 ], [ 9, 106 ], [ 106, 107 ] ]
[ "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 name;\n int t_point=0;\n int h_point=0;\n while ((name=br.readLine())!=null) {\n \tif (card>1000 || name.length()>100) break;\n String[] c_name = name.split(\" \");\n String tarou = c_name[0];\n String hanako = c_name[1];\n \n int judge = tarou.compareTo(hanako);\n \n if(judge<0){\n h_point += 3;\n }else if(judge>0){\n t_point += 3;\n }else{\n h_point += 1;\n t_point += 1;\n }\n }\n System.out.println(t_point+\" \"+h_point);\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 name;\n int t_point=0;\n int h_point=0;\n while ((name=br.readLine())!=null) {\n \tif (card>1000 || name.length()>100) break;\n String[] c_name = name.split(\" \");\n String tarou = c_name[0];\n String hanako = c_name[1];\n \n int judge = tarou.compareTo(hanako);\n \n if(judge<0){\n h_point += 3;\n }else if(judge>0){\n t_point += 3;\n }else{\n h_point += 1;\n t_point += 1;\n }\n }\n System.out.println(t_point+\" \"+h_point);\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 name;\n int t_point=0;\n int h_point=0;\n while ((name=br.readLine())!=null) {\n \tif (card>1000 || name.length()>100) break;\n String[] c_name = name.split(\" \");\n String tarou = c_name[0];\n String hanako = c_name[1];\n \n int judge = tarou.compareTo(hanako);\n \n if(judge<0){\n h_point += 3;\n }else if(judge>0){\n t_point += 3;\n }else{\n h_point += 1;\n t_point += 1;\n }\n }\n System.out.println(t_point+\" \"+h_point);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int card = Integer.parseInt(br.readLine());\n String name;\n int t_point=0;\n int h_point=0;\n while ((name=br.readLine())!=null) {\n \tif (card>1000 || name.length()>100) break;\n String[] c_name = name.split(\" \");\n String tarou = c_name[0];\n String hanako = c_name[1];\n \n int judge = tarou.compareTo(hanako);\n \n if(judge<0){\n h_point += 3;\n }else if(judge>0){\n t_point += 3;\n }else{\n h_point += 1;\n t_point += 1;\n }\n }\n System.out.println(t_point+\" \"+h_point);\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 name;", "name", "int t_point=0;", "t_point", "0", "int h_point=0;", "h_point", "0", "while ((name=br.readLine())!=null) {\n \tif (card>1000 || name.length()>100) break;\n String[] c_name = name.split(\" \");\n String tarou = c_name[0];\n String hanako = c_name[1];\n \n int judge = tarou.compareTo(hanako);\n \n if(judge<0){\n h_point += 3;\n }else if(judge>0){\n t_point += 3;\n }else{\n h_point += 1;\n t_point += 1;\n }\n }", "(name=br.readLine())!=null", "(name=br.readLine())", "name", "br.readLine()", "br.readLine", "br", "null", "{\n \tif (card>1000 || name.length()>100) break;\n String[] c_name = name.split(\" \");\n String tarou = c_name[0];\n String hanako = c_name[1];\n \n int judge = tarou.compareTo(hanako);\n \n if(judge<0){\n h_point += 3;\n }else if(judge>0){\n t_point += 3;\n }else{\n h_point += 1;\n t_point += 1;\n }\n }", "if (card>1000 || name.length()>100) break;", "card>1000 || name.length()>100", "card>1000", "card", "1000", "name.length()>100", "name.length()", "name.length", "name", "100", "break;", "String[] c_name = name.split(\" \");", "c_name", "name.split(\" \")", "name.split", "name", "\" \"", "String tarou = c_name[0];", "tarou", "c_name[0]", "c_name", "0", "String hanako = c_name[1];", "hanako", "c_name[1]", "c_name", "1", "int judge = tarou.compareTo(hanako);", "judge", "tarou.compareTo(hanako)", "tarou.compareTo", "tarou", "hanako", "if(judge<0){\n h_point += 3;\n }else if(judge>0){\n t_point += 3;\n }else{\n h_point += 1;\n t_point += 1;\n }", "judge<0", "judge", "0", "{\n h_point += 3;\n }", "h_point += 3", "h_point", "3", "if(judge>0){\n t_point += 3;\n }else{\n h_point += 1;\n t_point += 1;\n }", "judge>0", "judge", "0", "{\n t_point += 3;\n }", "t_point += 3", "t_point", "3", "{\n h_point += 1;\n t_point += 1;\n }", "h_point += 1", "h_point", "1", "t_point += 1", "t_point", "1", "System.out.println(t_point+\" \"+h_point)", "System.out.println", "System.out", "System", "System.out", "t_point+\" \"+h_point", "t_point+\" \"+h_point", "t_point", "\" \"", "h_point", "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 name; int t_point=0; int h_point=0; while ((name=br.readLine())!=null) { if (card>1000 || name.length()>100) break; String[] c_name = name.split(" "); String tarou = c_name[0]; String hanako = c_name[1]; int judge = tarou.compareTo(hanako); if(judge<0){ h_point += 3; }else if(judge>0){ t_point += 3; }else{ h_point += 1; t_point += 1; } } System.out.println(t_point+" "+h_point); } }
[ 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, 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, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 95, 5 ], [ 95, 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 ], [ 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 ], [ 8, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 88, 88 ], [ 88, 89 ], [ 88, 90 ], [ 88, 91 ], [ 6, 92 ], [ 92, 93 ], [ 0, 94 ], [ 94, 95 ], [ 94, 96 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) throws Exception {\n\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 str1 = sc.next();\n String str2 = sc.next();\n int result = str1.compareTo(str2);\n if(result == 0) {\n taro++;\n hanako++;\n }else if(result < 0){\n hanako += 3;\n }else{\n taro += 3;\n }\n }\n sc.close();\n\n System.out.println(taro +\" \"+hanako);\n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) throws Exception {\n\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 str1 = sc.next();\n String str2 = sc.next();\n int result = str1.compareTo(str2);\n if(result == 0) {\n taro++;\n hanako++;\n }else if(result < 0){\n hanako += 3;\n }else{\n taro += 3;\n }\n }\n sc.close();\n\n System.out.println(taro +\" \"+hanako);\n }\n\n}", "Main", "public static void main(String[] args) throws Exception {\n\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 str1 = sc.next();\n String str2 = sc.next();\n int result = str1.compareTo(str2);\n if(result == 0) {\n taro++;\n hanako++;\n }else if(result < 0){\n hanako += 3;\n }else{\n taro += 3;\n }\n }\n sc.close();\n\n System.out.println(taro +\" \"+hanako);\n }", "main", "{\n\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 str1 = sc.next();\n String str2 = sc.next();\n int result = str1.compareTo(str2);\n if(result == 0) {\n taro++;\n hanako++;\n }else if(result < 0){\n hanako += 3;\n }else{\n taro += 3;\n }\n }\n sc.close();\n\n System.out.println(taro +\" \"+hanako);\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 str1 = sc.next();\n String str2 = sc.next();\n int result = str1.compareTo(str2);\n if(result == 0) {\n taro++;\n hanako++;\n }else if(result < 0){\n hanako += 3;\n }else{\n taro += 3;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n String str1 = sc.next();\n String str2 = sc.next();\n int result = str1.compareTo(str2);\n if(result == 0) {\n taro++;\n hanako++;\n }else if(result < 0){\n hanako += 3;\n }else{\n taro += 3;\n }\n }", "{\n String str1 = sc.next();\n String str2 = sc.next();\n int result = str1.compareTo(str2);\n if(result == 0) {\n taro++;\n hanako++;\n }else if(result < 0){\n hanako += 3;\n }else{\n taro += 3;\n }\n }", "String str1 = sc.next();", "str1", "sc.next()", "sc.next", "sc", "String str2 = sc.next();", "str2", "sc.next()", "sc.next", "sc", "int result = str1.compareTo(str2);", "result", "str1.compareTo(str2)", "str1.compareTo", "str1", "str2", "if(result == 0) {\n taro++;\n hanako++;\n }else if(result < 0){\n hanako += 3;\n }else{\n taro += 3;\n }", "result == 0", "result", "0", "{\n taro++;\n hanako++;\n }", "taro++", "taro", "hanako++", "hanako", "if(result < 0){\n hanako += 3;\n }else{\n taro += 3;\n }", "result < 0", "result", "0", "{\n hanako += 3;\n }", "hanako += 3", "hanako", "3", "{\n taro += 3;\n }", "taro += 3", "taro", "3", "sc.close()", "sc.close", "sc", "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) throws Exception {\n\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 str1 = sc.next();\n String str2 = sc.next();\n int result = str1.compareTo(str2);\n if(result == 0) {\n taro++;\n hanako++;\n }else if(result < 0){\n hanako += 3;\n }else{\n taro += 3;\n }\n }\n sc.close();\n\n System.out.println(taro +\" \"+hanako);\n }\n\n}", "public class Main {\n\n public static void main(String[] args) throws Exception {\n\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 str1 = sc.next();\n String str2 = sc.next();\n int result = str1.compareTo(str2);\n if(result == 0) {\n taro++;\n hanako++;\n }else if(result < 0){\n hanako += 3;\n }else{\n taro += 3;\n }\n }\n sc.close();\n\n System.out.println(taro +\" \"+hanako);\n }\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { 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 str1 = sc.next(); String str2 = sc.next(); int result = str1.compareTo(str2); if(result == 0) { taro++; hanako++; }else if(result < 0){ hanako += 3; }else{ taro += 3; } } sc.close(); 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, 41, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 0, 13, 17, 0, 13, 17, 14, 2, 17, 13, 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 ], [ 97, 5 ], [ 97, 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 ], [ 62, 66 ], [ 66, 67 ], [ 66, 68 ], [ 58, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 69, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 8, 81 ], [ 81, 82 ], [ 82, 83 ], [ 8, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 90, 90 ], [ 90, 91 ], [ 90, 92 ], [ 90, 93 ], [ 6, 94 ], [ 94, 95 ], [ 0, 96 ], [ 96, 97 ], [ 96, 98 ] ]
[ "import java.util.Scanner;\n\n\npublic class Main{\n\n\tpublic static void main(String[] args){\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\t\t//??????????????°??????\n\t\tint n = scan.nextInt();\n\t\tString strTcard = \"\";\n\t\tString strHcard = \"\";\n\t\tint Tscore = 0;\n\t\tint Hscore = 0;\n\n\t\tfor(int i = 0; i < n; i++){\n\n\t\t\tstrTcard = scan.next();\n\t\t\tstrHcard = scan.next();\n\t\t\t//????????????????????°????????????\n\n\t\t\t//???????????????????????????\n\t\t\tint resultNum = strTcard.compareTo(strHcard);\n\n\t\t\tif(resultNum == 0 ){\n\t\t\t\tTscore += 1;\n\t\t\t\tHscore += 1;\n\t\t\t}else if(0 < resultNum){\n\t\t\t\tTscore += 3;\n\t\t\t}else{\n\t\t\t\tHscore += 3;\n\t\t\t}\n\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.println(Tscore + \" \" + Hscore);\n\t}\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\tScanner scan = new Scanner(System.in);\n\t\t//??????????????°??????\n\t\tint n = scan.nextInt();\n\t\tString strTcard = \"\";\n\t\tString strHcard = \"\";\n\t\tint Tscore = 0;\n\t\tint Hscore = 0;\n\n\t\tfor(int i = 0; i < n; i++){\n\n\t\t\tstrTcard = scan.next();\n\t\t\tstrHcard = scan.next();\n\t\t\t//????????????????????°????????????\n\n\t\t\t//???????????????????????????\n\t\t\tint resultNum = strTcard.compareTo(strHcard);\n\n\t\t\tif(resultNum == 0 ){\n\t\t\t\tTscore += 1;\n\t\t\t\tHscore += 1;\n\t\t\t}else if(0 < resultNum){\n\t\t\t\tTscore += 3;\n\t\t\t}else{\n\t\t\t\tHscore += 3;\n\t\t\t}\n\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.println(Tscore + \" \" + Hscore);\n\t}\n}", "Main", "public static void main(String[] args){\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\t\t//??????????????°??????\n\t\tint n = scan.nextInt();\n\t\tString strTcard = \"\";\n\t\tString strHcard = \"\";\n\t\tint Tscore = 0;\n\t\tint Hscore = 0;\n\n\t\tfor(int i = 0; i < n; i++){\n\n\t\t\tstrTcard = scan.next();\n\t\t\tstrHcard = scan.next();\n\t\t\t//????????????????????°????????????\n\n\t\t\t//???????????????????????????\n\t\t\tint resultNum = strTcard.compareTo(strHcard);\n\n\t\t\tif(resultNum == 0 ){\n\t\t\t\tTscore += 1;\n\t\t\t\tHscore += 1;\n\t\t\t}else if(0 < resultNum){\n\t\t\t\tTscore += 3;\n\t\t\t}else{\n\t\t\t\tHscore += 3;\n\t\t\t}\n\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.println(Tscore + \" \" + Hscore);\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\t\t//??????????????°??????\n\t\tint n = scan.nextInt();\n\t\tString strTcard = \"\";\n\t\tString strHcard = \"\";\n\t\tint Tscore = 0;\n\t\tint Hscore = 0;\n\n\t\tfor(int i = 0; i < n; i++){\n\n\t\t\tstrTcard = scan.next();\n\t\t\tstrHcard = scan.next();\n\t\t\t//????????????????????°????????????\n\n\t\t\t//???????????????????????????\n\t\t\tint resultNum = strTcard.compareTo(strHcard);\n\n\t\t\tif(resultNum == 0 ){\n\t\t\t\tTscore += 1;\n\t\t\t\tHscore += 1;\n\t\t\t}else if(0 < resultNum){\n\t\t\t\tTscore += 3;\n\t\t\t}else{\n\t\t\t\tHscore += 3;\n\t\t\t}\n\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.println(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", "String strTcard = \"\";", "strTcard", "\"\"", "String strHcard = \"\";", "strHcard", "\"\"", "int Tscore = 0;", "Tscore", "0", "int Hscore = 0;", "Hscore", "0", "for(int i = 0; i < n; i++){\n\n\t\t\tstrTcard = scan.next();\n\t\t\tstrHcard = scan.next();\n\t\t\t//????????????????????°????????????\n\n\t\t\t//???????????????????????????\n\t\t\tint resultNum = strTcard.compareTo(strHcard);\n\n\t\t\tif(resultNum == 0 ){\n\t\t\t\tTscore += 1;\n\t\t\t\tHscore += 1;\n\t\t\t}else if(0 < resultNum){\n\t\t\t\tTscore += 3;\n\t\t\t}else{\n\t\t\t\tHscore += 3;\n\t\t\t}\n\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\n\t\t\tstrTcard = scan.next();\n\t\t\tstrHcard = scan.next();\n\t\t\t//????????????????????°????????????\n\n\t\t\t//???????????????????????????\n\t\t\tint resultNum = strTcard.compareTo(strHcard);\n\n\t\t\tif(resultNum == 0 ){\n\t\t\t\tTscore += 1;\n\t\t\t\tHscore += 1;\n\t\t\t}else if(0 < resultNum){\n\t\t\t\tTscore += 3;\n\t\t\t}else{\n\t\t\t\tHscore += 3;\n\t\t\t}\n\n\t\t}", "{\n\n\t\t\tstrTcard = scan.next();\n\t\t\tstrHcard = scan.next();\n\t\t\t//????????????????????°????????????\n\n\t\t\t//???????????????????????????\n\t\t\tint resultNum = strTcard.compareTo(strHcard);\n\n\t\t\tif(resultNum == 0 ){\n\t\t\t\tTscore += 1;\n\t\t\t\tHscore += 1;\n\t\t\t}else if(0 < resultNum){\n\t\t\t\tTscore += 3;\n\t\t\t}else{\n\t\t\t\tHscore += 3;\n\t\t\t}\n\n\t\t}", "strTcard = scan.next()", "strTcard", "scan.next()", "scan.next", "scan", "strHcard = scan.next()", "strHcard", "scan.next()", "scan.next", "scan", "int resultNum = strTcard.compareTo(strHcard);", "resultNum", "strTcard.compareTo(strHcard)", "strTcard.compareTo", "strTcard", "strHcard", "if(resultNum == 0 ){\n\t\t\t\tTscore += 1;\n\t\t\t\tHscore += 1;\n\t\t\t}else if(0 < resultNum){\n\t\t\t\tTscore += 3;\n\t\t\t}else{\n\t\t\t\tHscore += 3;\n\t\t\t}", "resultNum == 0", "resultNum", "0", "{\n\t\t\t\tTscore += 1;\n\t\t\t\tHscore += 1;\n\t\t\t}", "Tscore += 1", "Tscore", "1", "Hscore += 1", "Hscore", "1", "if(0 < resultNum){\n\t\t\t\tTscore += 3;\n\t\t\t}else{\n\t\t\t\tHscore += 3;\n\t\t\t}", "0 < resultNum", "0", "resultNum", "{\n\t\t\t\tTscore += 3;\n\t\t\t}", "Tscore += 3", "Tscore", "3", "{\n\t\t\t\tHscore += 3;\n\t\t\t}", "Hscore += 3", "Hscore", "3", "scan.close()", "scan.close", "scan", "System.out.println(Tscore + \" \" + Hscore)", "System.out.println", "System.out", "System", "System.out", "Tscore + \" \" + Hscore", "Tscore + \" \" + Hscore", "Tscore", "\" \"", "Hscore", "String[] args", "args", "public class Main{\n\n\tpublic static void main(String[] args){\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\t\t//??????????????°??????\n\t\tint n = scan.nextInt();\n\t\tString strTcard = \"\";\n\t\tString strHcard = \"\";\n\t\tint Tscore = 0;\n\t\tint Hscore = 0;\n\n\t\tfor(int i = 0; i < n; i++){\n\n\t\t\tstrTcard = scan.next();\n\t\t\tstrHcard = scan.next();\n\t\t\t//????????????????????°????????????\n\n\t\t\t//???????????????????????????\n\t\t\tint resultNum = strTcard.compareTo(strHcard);\n\n\t\t\tif(resultNum == 0 ){\n\t\t\t\tTscore += 1;\n\t\t\t\tHscore += 1;\n\t\t\t}else if(0 < resultNum){\n\t\t\t\tTscore += 3;\n\t\t\t}else{\n\t\t\t\tHscore += 3;\n\t\t\t}\n\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.println(Tscore + \" \" + Hscore);\n\t}\n}", "public class Main{\n\n\tpublic static void main(String[] args){\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\t\t//??????????????°??????\n\t\tint n = scan.nextInt();\n\t\tString strTcard = \"\";\n\t\tString strHcard = \"\";\n\t\tint Tscore = 0;\n\t\tint Hscore = 0;\n\n\t\tfor(int i = 0; i < n; i++){\n\n\t\t\tstrTcard = scan.next();\n\t\t\tstrHcard = scan.next();\n\t\t\t//????????????????????°????????????\n\n\t\t\t//???????????????????????????\n\t\t\tint resultNum = strTcard.compareTo(strHcard);\n\n\t\t\tif(resultNum == 0 ){\n\t\t\t\tTscore += 1;\n\t\t\t\tHscore += 1;\n\t\t\t}else if(0 < resultNum){\n\t\t\t\tTscore += 3;\n\t\t\t}else{\n\t\t\t\tHscore += 3;\n\t\t\t}\n\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.println(Tscore + \" \" + Hscore);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ // TODO ????????????????????????????????????????????? Scanner scan = new Scanner(System.in); //??????????????°?????? int n = scan.nextInt(); String strTcard = ""; String strHcard = ""; int Tscore = 0; int Hscore = 0; for(int i = 0; i < n; i++){ strTcard = scan.next(); strHcard = scan.next(); //????????????????????°???????????? //??????????????????????????? int resultNum = strTcard.compareTo(strHcard); if(resultNum == 0 ){ Tscore += 1; Hscore += 1; }else if(0 < resultNum){ Tscore += 3; }else{ Hscore += 3; } } scan.close(); System.out.println(Tscore + " " + Hscore); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 42, 2, 13, 17, 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, 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 ], [ 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 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 38, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 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 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 64, 66 ], [ 27, 67 ], [ 67, 68 ], [ 8, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 75, 75 ], [ 75, 76 ], [ 75, 77 ], [ 75, 78 ], [ 6, 79 ], [ 79, 80 ] ]
[ "import java.util.Scanner;\n\nclass Main { \n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int num = in.nextInt();\n \n int Taro = 0;\n int Hanako = 0;\n \n while (num != 0) {\n String taro = in.next();\n String hanako = in.next();\n if (taro.compareTo(hanako) < 0) {Hanako += 3; }\n else if (taro.compareTo(hanako) > 0) {Taro += 3; }\n else {Taro += 1; Hanako += 1;}\n num--;\n }\n System.out.println(Taro + \" \" + Hanako);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main { \n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int num = in.nextInt();\n \n int Taro = 0;\n int Hanako = 0;\n \n while (num != 0) {\n String taro = in.next();\n String hanako = in.next();\n if (taro.compareTo(hanako) < 0) {Hanako += 3; }\n else if (taro.compareTo(hanako) > 0) {Taro += 3; }\n else {Taro += 1; Hanako += 1;}\n num--;\n }\n System.out.println(Taro + \" \" + Hanako);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int num = in.nextInt();\n \n int Taro = 0;\n int Hanako = 0;\n \n while (num != 0) {\n String taro = in.next();\n String hanako = in.next();\n if (taro.compareTo(hanako) < 0) {Hanako += 3; }\n else if (taro.compareTo(hanako) > 0) {Taro += 3; }\n else {Taro += 1; Hanako += 1;}\n num--;\n }\n System.out.println(Taro + \" \" + Hanako);\n }", "main", "{\n Scanner in = new Scanner(System.in);\n int num = in.nextInt();\n \n int Taro = 0;\n int Hanako = 0;\n \n while (num != 0) {\n String taro = in.next();\n String hanako = in.next();\n if (taro.compareTo(hanako) < 0) {Hanako += 3; }\n else if (taro.compareTo(hanako) > 0) {Taro += 3; }\n else {Taro += 1; Hanako += 1;}\n num--;\n }\n System.out.println(Taro + \" \" + Hanako);\n }", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "int num = in.nextInt();", "num", "in.nextInt()", "in.nextInt", "in", "int Taro = 0;", "Taro", "0", "int Hanako = 0;", "Hanako", "0", "while (num != 0) {\n String taro = in.next();\n String hanako = in.next();\n if (taro.compareTo(hanako) < 0) {Hanako += 3; }\n else if (taro.compareTo(hanako) > 0) {Taro += 3; }\n else {Taro += 1; Hanako += 1;}\n num--;\n }", "num != 0", "num", "0", "{\n String taro = in.next();\n String hanako = in.next();\n if (taro.compareTo(hanako) < 0) {Hanako += 3; }\n else if (taro.compareTo(hanako) > 0) {Taro += 3; }\n else {Taro += 1; Hanako += 1;}\n num--;\n }", "String taro = in.next();", "taro", "in.next()", "in.next", "in", "String hanako = in.next();", "hanako", "in.next()", "in.next", "in", "if (taro.compareTo(hanako) < 0) {Hanako += 3; }\n else if (taro.compareTo(hanako) > 0) {Taro += 3; }\n else {Taro += 1; Hanako += 1;}", "taro.compareTo(hanako) < 0", "taro.compareTo(hanako)", "taro.compareTo", "taro", "hanako", "0", "{Hanako += 3; }", "Hanako += 3", "Hanako", "3", "if (taro.compareTo(hanako) > 0) {Taro += 3; }\n else {Taro += 1; Hanako += 1;}", "taro.compareTo(hanako) > 0", "taro.compareTo(hanako)", "taro.compareTo", "taro", "hanako", "0", "{Taro += 3; }", "Taro += 3", "Taro", "3", "{Taro += 1; Hanako += 1;}", "Taro += 1", "Taro", "1", "Hanako += 1", "Hanako", "1", "num--", "num", "System.out.println(Taro + \" \" + Hanako)", "System.out.println", "System.out", "System", "System.out", "Taro + \" \" + Hanako", "Taro + \" \" + Hanako", "Taro", "\" \"", "Hanako", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int num = in.nextInt(); int Taro = 0; int Hanako = 0; while (num != 0) { String taro = in.next(); String hanako = in.next(); if (taro.compareTo(hanako) < 0) {Hanako += 3; } else if (taro.compareTo(hanako) > 0) {Taro += 3; } else {Taro += 1; Hanako += 1;} num--; } 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 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint N = sc.nextInt();\n\t\tint T = 0;\n\t\tint H = 0;\n\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tString Taro = sc.next();\n\t\t\tString Hana = sc.next();\n\n\t\t\tif (Taro.compareTo(Hana) == 0) {\n\t\t\t\tT++;\n\t\t\t\tH++;\n//.compareToで比べる時、左の値が大きい場合には正の値、右の値の方が大きければ負の値がでる\n\t\t\t} else if (Taro.compareTo(Hana) > 0) {\n\t\t\t\tT += 3;\n\t\t\t} else {\n\t\t\t\tH += 3;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(T + \" \" + H);\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\tScanner sc = new Scanner(System.in);\n\n\t\tint N = sc.nextInt();\n\t\tint T = 0;\n\t\tint H = 0;\n\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tString Taro = sc.next();\n\t\t\tString Hana = sc.next();\n\n\t\t\tif (Taro.compareTo(Hana) == 0) {\n\t\t\t\tT++;\n\t\t\t\tH++;\n//.compareToで比べる時、左の値が大きい場合には正の値、右の値の方が大きければ負の値がでる\n\t\t\t} else if (Taro.compareTo(Hana) > 0) {\n\t\t\t\tT += 3;\n\t\t\t} else {\n\t\t\t\tH += 3;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(T + \" \" + H);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint N = sc.nextInt();\n\t\tint T = 0;\n\t\tint H = 0;\n\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tString Taro = sc.next();\n\t\t\tString Hana = sc.next();\n\n\t\t\tif (Taro.compareTo(Hana) == 0) {\n\t\t\t\tT++;\n\t\t\t\tH++;\n//.compareToで比べる時、左の値が大きい場合には正の値、右の値の方が大きければ負の値がでる\n\t\t\t} else if (Taro.compareTo(Hana) > 0) {\n\t\t\t\tT += 3;\n\t\t\t} else {\n\t\t\t\tH += 3;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(T + \" \" + H);\n\t}", "main", "{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint N = sc.nextInt();\n\t\tint T = 0;\n\t\tint H = 0;\n\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tString Taro = sc.next();\n\t\t\tString Hana = sc.next();\n\n\t\t\tif (Taro.compareTo(Hana) == 0) {\n\t\t\t\tT++;\n\t\t\t\tH++;\n//.compareToで比べる時、左の値が大きい場合には正の値、右の値の方が大きければ負の値がでる\n\t\t\t} else if (Taro.compareTo(Hana) > 0) {\n\t\t\t\tT += 3;\n\t\t\t} else {\n\t\t\t\tH += 3;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(T + \" \" + H);\n\t}", "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\t\t\tString Taro = sc.next();\n\t\t\tString Hana = sc.next();\n\n\t\t\tif (Taro.compareTo(Hana) == 0) {\n\t\t\t\tT++;\n\t\t\t\tH++;\n//.compareToで比べる時、左の値が大きい場合には正の値、右の値の方が大きければ負の値がでる\n\t\t\t} else if (Taro.compareTo(Hana) > 0) {\n\t\t\t\tT += 3;\n\t\t\t} else {\n\t\t\t\tH += 3;\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 = sc.next();\n\t\t\tString Hana = sc.next();\n\n\t\t\tif (Taro.compareTo(Hana) == 0) {\n\t\t\t\tT++;\n\t\t\t\tH++;\n//.compareToで比べる時、左の値が大きい場合には正の値、右の値の方が大きければ負の値がでる\n\t\t\t} else if (Taro.compareTo(Hana) > 0) {\n\t\t\t\tT += 3;\n\t\t\t} else {\n\t\t\t\tH += 3;\n\t\t\t}\n\n\t\t}", "{\n\t\t\tString Taro = sc.next();\n\t\t\tString Hana = sc.next();\n\n\t\t\tif (Taro.compareTo(Hana) == 0) {\n\t\t\t\tT++;\n\t\t\t\tH++;\n//.compareToで比べる時、左の値が大きい場合には正の値、右の値の方が大きければ負の値がでる\n\t\t\t} else if (Taro.compareTo(Hana) > 0) {\n\t\t\t\tT += 3;\n\t\t\t} else {\n\t\t\t\tH += 3;\n\t\t\t}\n\n\t\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) {\n\t\t\t\tT++;\n\t\t\t\tH++;\n//.compareToで比べる時、左の値が大きい場合には正の値、右の値の方が大きければ負の値がでる\n\t\t\t} else if (Taro.compareTo(Hana) > 0) {\n\t\t\t\tT += 3;\n\t\t\t} else {\n\t\t\t\tH += 3;\n\t\t\t}", "Taro.compareTo(Hana) == 0", "Taro.compareTo(Hana)", "Taro.compareTo", "Taro", "Hana", "0", "{\n\t\t\t\tT++;\n\t\t\t\tH++;\n//.compareToで比べる時、左の値が大きい場合には正の値、右の値の方が大きければ負の値がでる\n\t\t\t}", "T++", "T", "H++", "H", "if (Taro.compareTo(Hana) > 0) {\n\t\t\t\tT += 3;\n\t\t\t} else {\n\t\t\t\tH += 3;\n\t\t\t}", "Taro.compareTo(Hana) > 0", "Taro.compareTo(Hana)", "Taro.compareTo", "Taro", "Hana", "0", "{\n\t\t\t\tT += 3;\n\t\t\t}", "T += 3", "T", "3", "{\n\t\t\t\tH += 3;\n\t\t\t}", "H += 3", "H", "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\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint N = sc.nextInt();\n\t\tint T = 0;\n\t\tint H = 0;\n\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tString Taro = sc.next();\n\t\t\tString Hana = sc.next();\n\n\t\t\tif (Taro.compareTo(Hana) == 0) {\n\t\t\t\tT++;\n\t\t\t\tH++;\n//.compareToで比べる時、左の値が大きい場合には正の値、右の値の方が大きければ負の値がでる\n\t\t\t} else if (Taro.compareTo(Hana) > 0) {\n\t\t\t\tT += 3;\n\t\t\t} else {\n\t\t\t\tH += 3;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(T + \" \" + H);\n\t}\n}", "public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint N = sc.nextInt();\n\t\tint T = 0;\n\t\tint H = 0;\n\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tString Taro = sc.next();\n\t\t\tString Hana = sc.next();\n\n\t\t\tif (Taro.compareTo(Hana) == 0) {\n\t\t\t\tT++;\n\t\t\t\tH++;\n//.compareToで比べる時、左の値が大きい場合には正の値、右の値の方が大きければ負の値がでる\n\t\t\t} else if (Taro.compareTo(Hana) > 0) {\n\t\t\t\tT += 3;\n\t\t\t} else {\n\t\t\t\tH += 3;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(T + \" \" + H);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int T = 0; int H = 0; for (int i = 0; i < N; i++) { String Taro = sc.next(); String Hana = sc.next(); if (Taro.compareTo(Hana) == 0) { T++; H++; //.compareToで比べる時、左の値が大きい場合には正の値、右の値の方が大きければ負の値がでる } else if (Taro.compareTo(Hana) > 0) { T += 3; } else { H += 3; } } 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, 42, 2, 40, 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, 17, 0, 13, 17, 14, 2, 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 ], [ 84, 5 ], [ 84, 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 ], [ 27, 30 ], [ 26, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 31, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 31, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 31, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 56, 58 ], [ 48, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 59, 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\tpublic static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\n\t\tint score_t = 0;\n\t\tint score_h = 0;\n\t\twhile (n-- > 0) {\n\t\t\tString word_t = sc.next();\n\t\t\tString word_h = sc.next();\n\n\t\t\tint result = word_t.compareTo(word_h);\n\t\t\tif (result == 0) {\n\t\t\t\tscore_t += 1;\n\t\t\t\tscore_h += 1;\n\t\t\t} else if (result > 0) {\n\t\t\t\tscore_t += 3;\n\t\t\t} else {\n\t\t\t\tscore_h += 3;\n\t\t\t}\n\t\t}\n\n\t System.out.println(score_t + \" \" + score_h);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\n\t\tint score_t = 0;\n\t\tint score_h = 0;\n\t\twhile (n-- > 0) {\n\t\t\tString word_t = sc.next();\n\t\t\tString word_h = sc.next();\n\n\t\t\tint result = word_t.compareTo(word_h);\n\t\t\tif (result == 0) {\n\t\t\t\tscore_t += 1;\n\t\t\t\tscore_h += 1;\n\t\t\t} else if (result > 0) {\n\t\t\t\tscore_t += 3;\n\t\t\t} else {\n\t\t\t\tscore_h += 3;\n\t\t\t}\n\t\t}\n\n\t System.out.println(score_t + \" \" + score_h);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\n\t\tint score_t = 0;\n\t\tint score_h = 0;\n\t\twhile (n-- > 0) {\n\t\t\tString word_t = sc.next();\n\t\t\tString word_h = sc.next();\n\n\t\t\tint result = word_t.compareTo(word_h);\n\t\t\tif (result == 0) {\n\t\t\t\tscore_t += 1;\n\t\t\t\tscore_h += 1;\n\t\t\t} else if (result > 0) {\n\t\t\t\tscore_t += 3;\n\t\t\t} else {\n\t\t\t\tscore_h += 3;\n\t\t\t}\n\t\t}\n\n\t System.out.println(score_t + \" \" + score_h);\n\t}", "main", "{\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\n\t\tint score_t = 0;\n\t\tint score_h = 0;\n\t\twhile (n-- > 0) {\n\t\t\tString word_t = sc.next();\n\t\t\tString word_h = sc.next();\n\n\t\t\tint result = word_t.compareTo(word_h);\n\t\t\tif (result == 0) {\n\t\t\t\tscore_t += 1;\n\t\t\t\tscore_h += 1;\n\t\t\t} else if (result > 0) {\n\t\t\t\tscore_t += 3;\n\t\t\t} else {\n\t\t\t\tscore_h += 3;\n\t\t\t}\n\t\t}\n\n\t System.out.println(score_t + \" \" + score_h);\n\t}", "@SuppressWarnings(\"resource\")\n\t\tScanner 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 score_t = 0;", "score_t", "0", "int score_h = 0;", "score_h", "0", "while (n-- > 0) {\n\t\t\tString word_t = sc.next();\n\t\t\tString word_h = sc.next();\n\n\t\t\tint result = word_t.compareTo(word_h);\n\t\t\tif (result == 0) {\n\t\t\t\tscore_t += 1;\n\t\t\t\tscore_h += 1;\n\t\t\t} else if (result > 0) {\n\t\t\t\tscore_t += 3;\n\t\t\t} else {\n\t\t\t\tscore_h += 3;\n\t\t\t}\n\t\t}", "n-- > 0", "n--", "n", "0", "{\n\t\t\tString word_t = sc.next();\n\t\t\tString word_h = sc.next();\n\n\t\t\tint result = word_t.compareTo(word_h);\n\t\t\tif (result == 0) {\n\t\t\t\tscore_t += 1;\n\t\t\t\tscore_h += 1;\n\t\t\t} else if (result > 0) {\n\t\t\t\tscore_t += 3;\n\t\t\t} else {\n\t\t\t\tscore_h += 3;\n\t\t\t}\n\t\t}", "String word_t = sc.next();", "word_t", "sc.next()", "sc.next", "sc", "String word_h = sc.next();", "word_h", "sc.next()", "sc.next", "sc", "int result = word_t.compareTo(word_h);", "result", "word_t.compareTo(word_h)", "word_t.compareTo", "word_t", "word_h", "if (result == 0) {\n\t\t\t\tscore_t += 1;\n\t\t\t\tscore_h += 1;\n\t\t\t} else if (result > 0) {\n\t\t\t\tscore_t += 3;\n\t\t\t} else {\n\t\t\t\tscore_h += 3;\n\t\t\t}", "result == 0", "result", "0", "{\n\t\t\t\tscore_t += 1;\n\t\t\t\tscore_h += 1;\n\t\t\t}", "score_t += 1", "score_t", "1", "score_h += 1", "score_h", "1", "if (result > 0) {\n\t\t\t\tscore_t += 3;\n\t\t\t} else {\n\t\t\t\tscore_h += 3;\n\t\t\t}", "result > 0", "result", "0", "{\n\t\t\t\tscore_t += 3;\n\t\t\t}", "score_t += 3", "score_t", "3", "{\n\t\t\t\tscore_h += 3;\n\t\t\t}", "score_h += 3", "score_h", "3", "System.out.println(score_t + \" \" + score_h)", "System.out.println", "System.out", "System", "System.out", "score_t + \" \" + score_h", "score_t + \" \" + score_h", "score_t", "\" \"", "score_h", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\n\t\tint score_t = 0;\n\t\tint score_h = 0;\n\t\twhile (n-- > 0) {\n\t\t\tString word_t = sc.next();\n\t\t\tString word_h = sc.next();\n\n\t\t\tint result = word_t.compareTo(word_h);\n\t\t\tif (result == 0) {\n\t\t\t\tscore_t += 1;\n\t\t\t\tscore_h += 1;\n\t\t\t} else if (result > 0) {\n\t\t\t\tscore_t += 3;\n\t\t\t} else {\n\t\t\t\tscore_h += 3;\n\t\t\t}\n\t\t}\n\n\t System.out.println(score_t + \" \" + score_h);\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.next());\n\n\t\tint score_t = 0;\n\t\tint score_h = 0;\n\t\twhile (n-- > 0) {\n\t\t\tString word_t = sc.next();\n\t\t\tString word_h = sc.next();\n\n\t\t\tint result = word_t.compareTo(word_h);\n\t\t\tif (result == 0) {\n\t\t\t\tscore_t += 1;\n\t\t\t\tscore_h += 1;\n\t\t\t} else if (result > 0) {\n\t\t\t\tscore_t += 3;\n\t\t\t} else {\n\t\t\t\tscore_h += 3;\n\t\t\t}\n\t\t}\n\n\t System.out.println(score_t + \" \" + score_h);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args) { @SuppressWarnings("resource") Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int score_t = 0; int score_h = 0; while (n-- > 0) { String word_t = sc.next(); String word_h = sc.next(); int result = word_t.compareTo(word_h); if (result == 0) { score_t += 1; score_h += 1; } else if (result > 0) { score_t += 3; } else { score_h += 3; } } System.out.println(score_t + " " + score_h); } }
[ 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, 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 ], [ 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 ], [ 6, 85 ], [ 85, 86 ], [ 0, 87 ], [ 87, 88 ], [ 87, 89 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\tint taro=0, hanako=0;\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\ttaro += 3;\n\t\t\t} else if (a.compareTo(b) > 0) {\n\t\t\t\thanako += 3;\n\t\t\t} else {\n\t\t\t\ttaro += 1;\n\t\t\t\thanako += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(hanako + \" \" + taro);\n\t}\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\tint taro=0, hanako=0;\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\ttaro += 3;\n\t\t\t} else if (a.compareTo(b) > 0) {\n\t\t\t\thanako += 3;\n\t\t\t} else {\n\t\t\t\ttaro += 1;\n\t\t\t\thanako += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(hanako + \" \" + taro);\n\t}\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\tint taro=0, hanako=0;\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\ttaro += 3;\n\t\t\t} else if (a.compareTo(b) > 0) {\n\t\t\t\thanako += 3;\n\t\t\t} else {\n\t\t\t\ttaro += 1;\n\t\t\t\thanako += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(hanako + \" \" + taro);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\tint taro=0, hanako=0;\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\ttaro += 3;\n\t\t\t} else if (a.compareTo(b) > 0) {\n\t\t\t\thanako += 3;\n\t\t\t} else {\n\t\t\t\ttaro += 1;\n\t\t\t\thanako += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(hanako + \" \" + taro);\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", "hanako=0;", "hanako", "0", "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\ttaro += 3;\n\t\t\t} else if (a.compareTo(b) > 0) {\n\t\t\t\thanako += 3;\n\t\t\t} else {\n\t\t\t\ttaro += 1;\n\t\t\t\thanako += 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 a = sc.next();\n\t\t\tString b = sc.next();\n\t\t\tif (a.compareTo(b) < 0) {\n\t\t\t\ttaro += 3;\n\t\t\t} else if (a.compareTo(b) > 0) {\n\t\t\t\thanako += 3;\n\t\t\t} else {\n\t\t\t\ttaro += 1;\n\t\t\t\thanako += 1;\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\ttaro += 3;\n\t\t\t} else if (a.compareTo(b) > 0) {\n\t\t\t\thanako += 3;\n\t\t\t} else {\n\t\t\t\ttaro += 1;\n\t\t\t\thanako += 1;\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\ttaro += 3;\n\t\t\t} else if (a.compareTo(b) > 0) {\n\t\t\t\thanako += 3;\n\t\t\t} else {\n\t\t\t\ttaro += 1;\n\t\t\t\thanako += 1;\n\t\t\t}", "a.compareTo(b) < 0", "a.compareTo(b)", "a.compareTo", "a", "b", "0", "{\n\t\t\t\ttaro += 3;\n\t\t\t}", "taro += 3", "taro", "3", "if (a.compareTo(b) > 0) {\n\t\t\t\thanako += 3;\n\t\t\t} else {\n\t\t\t\ttaro += 1;\n\t\t\t\thanako += 1;\n\t\t\t}", "a.compareTo(b) > 0", "a.compareTo(b)", "a.compareTo", "a", "b", "0", "{\n\t\t\t\thanako += 3;\n\t\t\t}", "hanako += 3", "hanako", "3", "{\n\t\t\t\ttaro += 1;\n\t\t\t\thanako += 1;\n\t\t\t}", "taro += 1", "taro", "1", "hanako += 1", "hanako", "1", "System.out.println(hanako + \" \" + taro)", "System.out.println", "System.out", "System", "System.out", "hanako + \" \" + taro", "hanako + \" \" + taro", "hanako", "\" \"", "taro", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\tint taro=0, hanako=0;\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\ttaro += 3;\n\t\t\t} else if (a.compareTo(b) > 0) {\n\t\t\t\thanako += 3;\n\t\t\t} else {\n\t\t\t\ttaro += 1;\n\t\t\t\thanako += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(hanako + \" \" + taro);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\tint taro=0, hanako=0;\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\ttaro += 3;\n\t\t\t} else if (a.compareTo(b) > 0) {\n\t\t\t\thanako += 3;\n\t\t\t} else {\n\t\t\t\ttaro += 1;\n\t\t\t\thanako += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(hanako + \" \" + taro);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int taro=0, hanako=0; for (int i = 0; i < n; 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(hanako + " " + taro); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 95, 14 ], [ 95, 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 ], [ 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 ], [ 17, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 88, 88 ], [ 88, 89 ], [ 88, 90 ], [ 88, 91 ], [ 15, 92 ], [ 92, 93 ], [ 0, 94 ], [ 94, 95 ], [ 94, 96 ] ]
[ "import java.lang.reflect.Array;\nimport java.math.BigDecimal;\nimport java.util.*;\nimport java.util.stream.Stream;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int left = 0;\n int right = 0;\n\n for(int i=0; i<num; i++){\n String line1 = sc.next();\n String line2 = sc.next();\n\n if (line1.compareTo(line2) < 0){\n right+=3;\n } else if (line1.compareTo(line2) > 0){\n left+=3;\n } else {\n left++;\n right++;\n }\n }\n\n System.out.println(left + \" \" + right);\n }\n}\n", "import java.lang.reflect.Array;", "Array", "java.lang.reflect", "import java.math.BigDecimal;", "BigDecimal", "java.math", "import java.util.*;", "util.*", "java", "import java.util.stream.Stream;", "Stream", "java.util.stream", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int left = 0;\n int right = 0;\n\n for(int i=0; i<num; i++){\n String line1 = sc.next();\n String line2 = sc.next();\n\n if (line1.compareTo(line2) < 0){\n right+=3;\n } else if (line1.compareTo(line2) > 0){\n left+=3;\n } else {\n left++;\n right++;\n }\n }\n\n System.out.println(left + \" \" + right);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int left = 0;\n int right = 0;\n\n for(int i=0; i<num; i++){\n String line1 = sc.next();\n String line2 = sc.next();\n\n if (line1.compareTo(line2) < 0){\n right+=3;\n } else if (line1.compareTo(line2) > 0){\n left+=3;\n } else {\n left++;\n right++;\n }\n }\n\n System.out.println(left + \" \" + right);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int left = 0;\n int right = 0;\n\n for(int i=0; i<num; i++){\n String line1 = sc.next();\n String line2 = sc.next();\n\n if (line1.compareTo(line2) < 0){\n right+=3;\n } else if (line1.compareTo(line2) > 0){\n left+=3;\n } else {\n left++;\n right++;\n }\n }\n\n System.out.println(left + \" \" + right);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int num = sc.nextInt();", "num", "sc.nextInt()", "sc.nextInt", "sc", "int left = 0;", "left", "0", "int right = 0;", "right", "0", "for(int i=0; i<num; i++){\n String line1 = sc.next();\n String line2 = sc.next();\n\n if (line1.compareTo(line2) < 0){\n right+=3;\n } else if (line1.compareTo(line2) > 0){\n left+=3;\n } else {\n left++;\n right++;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<num", "i", "num", "i++", "i++", "i", "{\n String line1 = sc.next();\n String line2 = sc.next();\n\n if (line1.compareTo(line2) < 0){\n right+=3;\n } else if (line1.compareTo(line2) > 0){\n left+=3;\n } else {\n left++;\n right++;\n }\n }", "{\n String line1 = sc.next();\n String line2 = sc.next();\n\n if (line1.compareTo(line2) < 0){\n right+=3;\n } else if (line1.compareTo(line2) > 0){\n left+=3;\n } else {\n left++;\n right++;\n }\n }", "String line1 = sc.next();", "line1", "sc.next()", "sc.next", "sc", "String line2 = sc.next();", "line2", "sc.next()", "sc.next", "sc", "if (line1.compareTo(line2) < 0){\n right+=3;\n } else if (line1.compareTo(line2) > 0){\n left+=3;\n } else {\n left++;\n right++;\n }", "line1.compareTo(line2) < 0", "line1.compareTo(line2)", "line1.compareTo", "line1", "line2", "0", "{\n right+=3;\n }", "right+=3", "right", "3", "if (line1.compareTo(line2) > 0){\n left+=3;\n } else {\n left++;\n right++;\n }", "line1.compareTo(line2) > 0", "line1.compareTo(line2)", "line1.compareTo", "line1", "line2", "0", "{\n left+=3;\n }", "left+=3", "left", "3", "{\n left++;\n right++;\n }", "left++", "left", "right++", "right", "System.out.println(left + \" \" + right)", "System.out.println", "System.out", "System", "System.out", "left + \" \" + right", "left + \" \" + right", "left", "\" \"", "right", "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 left = 0;\n int right = 0;\n\n for(int i=0; i<num; i++){\n String line1 = sc.next();\n String line2 = sc.next();\n\n if (line1.compareTo(line2) < 0){\n right+=3;\n } else if (line1.compareTo(line2) > 0){\n left+=3;\n } else {\n left++;\n right++;\n }\n }\n\n System.out.println(left + \" \" + right);\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 left = 0;\n int right = 0;\n\n for(int i=0; i<num; i++){\n String line1 = sc.next();\n String line2 = sc.next();\n\n if (line1.compareTo(line2) < 0){\n right+=3;\n } else if (line1.compareTo(line2) > 0){\n left+=3;\n } else {\n left++;\n right++;\n }\n }\n\n System.out.println(left + \" \" + right);\n }\n}", "Main" ]
import java.lang.reflect.Array; import java.math.BigDecimal; import java.util.*; import java.util.stream.Stream; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int left = 0; int right = 0; for(int i=0; i<num; i++){ String line1 = sc.next(); String line2 = sc.next(); if (line1.compareTo(line2) < 0){ right+=3; } else if (line1.compareTo(line2) > 0){ left+=3; } else { left++; right++; } } System.out.println(left + " " + right); } }
[ 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, 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, 2, 13, 17, 14, 2, 4, 18, 18, 13, 17, 18, 13, 17, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 111, 11 ], [ 111, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 14, 29 ], [ 29, 30 ], [ 29, 31 ], [ 14, 32 ], [ 32, 33 ], [ 32, 34 ], [ 14, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 47, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 47, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 60, 69 ], [ 59, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 59, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 83, 84 ], [ 83, 85 ], [ 77, 86 ], [ 76, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 76, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 96, 97 ], [ 14, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 104, 104 ], [ 104, 105 ], [ 104, 106 ], [ 104, 107 ], [ 12, 108 ], [ 108, 109 ], [ 0, 110 ], [ 110, 111 ], [ 110, 112 ] ]
[ "import java.io.*;\nimport java.util.Arrays;\nimport java.util.Scanner;\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\tString line1 = br.readLine();\n\t\tint n = Integer.parseInt(line1);\n\t\tint taro = 0;\n\t\tint hanako = 0;\n\t\tfor (int i = 0; i<n ; i++ ) {\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tif (str[0].compareToIgnoreCase(str[1]) > 0) {\n\t\t\t\ttaro = taro + 3;\n\t\t\t}else if (str[0].compareToIgnoreCase(str[1]) < 0){\n\t\t\t\thanako = hanako + 3;\n\t\t\t}else{\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(taro + \" \" + hanako);\n\t}\n}", "import java.io.*;", "io.*", "java", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String[] args) throws IOException{ \n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line1 = br.readLine();\n\t\tint n = Integer.parseInt(line1);\n\t\tint taro = 0;\n\t\tint hanako = 0;\n\t\tfor (int i = 0; i<n ; i++ ) {\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tif (str[0].compareToIgnoreCase(str[1]) > 0) {\n\t\t\t\ttaro = taro + 3;\n\t\t\t}else if (str[0].compareToIgnoreCase(str[1]) < 0){\n\t\t\t\thanako = hanako + 3;\n\t\t\t}else{\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(taro + \" \" + hanako);\n\t}\n}", "Main", "public static void main(String[] args) throws IOException{ \n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line1 = br.readLine();\n\t\tint n = Integer.parseInt(line1);\n\t\tint taro = 0;\n\t\tint hanako = 0;\n\t\tfor (int i = 0; i<n ; i++ ) {\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tif (str[0].compareToIgnoreCase(str[1]) > 0) {\n\t\t\t\ttaro = taro + 3;\n\t\t\t}else if (str[0].compareToIgnoreCase(str[1]) < 0){\n\t\t\t\thanako = hanako + 3;\n\t\t\t}else{\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(taro + \" \" + hanako);\n\t}", "main", "{ \n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line1 = br.readLine();\n\t\tint n = Integer.parseInt(line1);\n\t\tint taro = 0;\n\t\tint hanako = 0;\n\t\tfor (int i = 0; i<n ; i++ ) {\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tif (str[0].compareToIgnoreCase(str[1]) > 0) {\n\t\t\t\ttaro = taro + 3;\n\t\t\t}else if (str[0].compareToIgnoreCase(str[1]) < 0){\n\t\t\t\thanako = hanako + 3;\n\t\t\t}else{\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(taro + \" \" + hanako);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String line1 = br.readLine();", "line1", "br.readLine()", "br.readLine", "br", "int n = Integer.parseInt(line1);", "n", "Integer.parseInt(line1)", "Integer.parseInt", "Integer", "line1", "int taro = 0;", "taro", "0", "int hanako = 0;", "hanako", "0", "for (int i = 0; i<n ; i++ ) {\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tif (str[0].compareToIgnoreCase(str[1]) > 0) {\n\t\t\t\ttaro = taro + 3;\n\t\t\t}else if (str[0].compareToIgnoreCase(str[1]) < 0){\n\t\t\t\thanako = hanako + 3;\n\t\t\t}else{\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\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 line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tif (str[0].compareToIgnoreCase(str[1]) > 0) {\n\t\t\t\ttaro = taro + 3;\n\t\t\t}else if (str[0].compareToIgnoreCase(str[1]) < 0){\n\t\t\t\thanako = hanako + 3;\n\t\t\t}else{\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\n\t\t\t}\n\n\t\t}", "{\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tif (str[0].compareToIgnoreCase(str[1]) > 0) {\n\t\t\t\ttaro = taro + 3;\n\t\t\t}else if (str[0].compareToIgnoreCase(str[1]) < 0){\n\t\t\t\thanako = hanako + 3;\n\t\t\t}else{\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\n\t\t\t}\n\n\t\t}", "String line = br.readLine();", "line", "br.readLine()", "br.readLine", "br", "String[] str = line.split(\" \");", "str", "line.split(\" \")", "line.split", "line", "\" \"", "if (str[0].compareToIgnoreCase(str[1]) > 0) {\n\t\t\t\ttaro = taro + 3;\n\t\t\t}else if (str[0].compareToIgnoreCase(str[1]) < 0){\n\t\t\t\thanako = hanako + 3;\n\t\t\t}else{\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\n\t\t\t}", "str[0].compareToIgnoreCase(str[1]) > 0", "str[0].compareToIgnoreCase(str[1])", "str[0].compareToIgnoreCase", "str[0]", "str", "0", "str[1]", "str", "1", "0", "{\n\t\t\t\ttaro = taro + 3;\n\t\t\t}", "taro = taro + 3", "taro", "taro + 3", "taro", "3", "if (str[0].compareToIgnoreCase(str[1]) < 0){\n\t\t\t\thanako = hanako + 3;\n\t\t\t}else{\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\n\t\t\t}", "str[0].compareToIgnoreCase(str[1]) < 0", "str[0].compareToIgnoreCase(str[1])", "str[0].compareToIgnoreCase", "str[0]", "str", "0", "str[1]", "str", "1", "0", "{\n\t\t\t\thanako = hanako + 3;\n\t\t\t}", "hanako = hanako + 3", "hanako", "hanako + 3", "hanako", "3", "{\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\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\tpublic static void main(String[] args) throws IOException{ \n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line1 = br.readLine();\n\t\tint n = Integer.parseInt(line1);\n\t\tint taro = 0;\n\t\tint hanako = 0;\n\t\tfor (int i = 0; i<n ; i++ ) {\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tif (str[0].compareToIgnoreCase(str[1]) > 0) {\n\t\t\t\ttaro = taro + 3;\n\t\t\t}else if (str[0].compareToIgnoreCase(str[1]) < 0){\n\t\t\t\thanako = hanako + 3;\n\t\t\t}else{\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(taro + \" \" + hanako);\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\tString line1 = br.readLine();\n\t\tint n = Integer.parseInt(line1);\n\t\tint taro = 0;\n\t\tint hanako = 0;\n\t\tfor (int i = 0; i<n ; i++ ) {\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tif (str[0].compareToIgnoreCase(str[1]) > 0) {\n\t\t\t\ttaro = taro + 3;\n\t\t\t}else if (str[0].compareToIgnoreCase(str[1]) < 0){\n\t\t\t\thanako = hanako + 3;\n\t\t\t}else{\n\t\t\t\ttaro++;\n\t\t\t\thanako++;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(taro + \" \" + hanako);\n\t}\n}", "Main" ]
import java.io.*; import java.util.Arrays; import java.util.Scanner; public class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line1 = br.readLine(); int n = Integer.parseInt(line1); int taro = 0; int hanako = 0; for (int i = 0; i<n ; i++ ) { String line = br.readLine(); String[] str = line.split(" "); if (str[0].compareToIgnoreCase(str[1]) > 0) { taro = taro + 3; }else if (str[0].compareToIgnoreCase(str[1]) < 0){ hanako = hanako + 3; }else{ taro++; hanako++; } } System.out.println(taro + " " + hanako); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 4, 13, 13, 23, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 41, 13, 42, 2, 13, 17, 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, 0, 13, 17, 30, 0, 13, 17, 0, 13, 17, 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 ], [ 103, 5 ], [ 103, 6 ], [ 6, 7 ], [ 6, 8 ], [ 103, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 26, 27 ], [ 26, 28 ], [ 9, 29 ], [ 29, 30 ], [ 103, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 37, 38 ], [ 37, 39 ], [ 33, 40 ], [ 40, 41 ], [ 33, 42 ], [ 42, 43 ], [ 33, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 48, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 48, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 48, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 65, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 73, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 85, 86 ], [ 85, 87 ], [ 48, 88 ], [ 88, 89 ], [ 33, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 96, 96 ], [ 96, 97 ], [ 96, 98 ], [ 96, 99 ], [ 31, 100 ], [ 100, 101 ], [ 0, 102 ], [ 102, 103 ], [ 102, 104 ] ]
[ "import java.util.*;\npublic class Main{\n static Scanner kbd = new Scanner(System.in);\n public static void main(String[] args){\n while(kbd.hasNext()){\n int n = kbd.nextInt();\n if(n!=0) solve(n);\n }\n }\n \n static void solve(int n){\n int taro = 0;\n int hana = 0;\n String t, h;\n \n while(n>0){\n t = kbd.next();\n h = kbd.next();\n int j = t.compareToIgnoreCase(h);\n if(j < 0){\n hana += 3;\n }\n else if(j > 0){\n taro += 3;\n }\n else{\n hana += 1;\n taro += 1;\n }\n n--;\n }\n \n System.out.println(taro+\" \"+hana);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main{\n static Scanner kbd = new Scanner(System.in);\n public static void main(String[] args){\n while(kbd.hasNext()){\n int n = kbd.nextInt();\n if(n!=0) solve(n);\n }\n }\n \n static void solve(int n){\n int taro = 0;\n int hana = 0;\n String t, h;\n \n while(n>0){\n t = kbd.next();\n h = kbd.next();\n int j = t.compareToIgnoreCase(h);\n if(j < 0){\n hana += 3;\n }\n else if(j > 0){\n taro += 3;\n }\n else{\n hana += 1;\n taro += 1;\n }\n n--;\n }\n \n System.out.println(taro+\" \"+hana);\n }\n}", "Main", "static Scanner kbd = new Scanner(System.in);", "kbd", "new Scanner(System.in)", "public static void main(String[] args){\n while(kbd.hasNext()){\n int n = kbd.nextInt();\n if(n!=0) solve(n);\n }\n }", "main", "{\n while(kbd.hasNext()){\n int n = kbd.nextInt();\n if(n!=0) solve(n);\n }\n }", "while(kbd.hasNext()){\n int n = kbd.nextInt();\n if(n!=0) solve(n);\n }", "kbd.hasNext()", "kbd.hasNext", "kbd", "{\n int n = kbd.nextInt();\n if(n!=0) solve(n);\n }", "int n = kbd.nextInt();", "n", "kbd.nextInt()", "kbd.nextInt", "kbd", "if(n!=0) solve(n);", "n!=0", "n", "0", "solve(n)", "solve", "n", "String[] args", "args", "static void solve(int n){\n int taro = 0;\n int hana = 0;\n String t, h;\n \n while(n>0){\n t = kbd.next();\n h = kbd.next();\n int j = t.compareToIgnoreCase(h);\n if(j < 0){\n hana += 3;\n }\n else if(j > 0){\n taro += 3;\n }\n else{\n hana += 1;\n taro += 1;\n }\n n--;\n }\n \n System.out.println(taro+\" \"+hana);\n }", "solve", "{\n int taro = 0;\n int hana = 0;\n String t, h;\n \n while(n>0){\n t = kbd.next();\n h = kbd.next();\n int j = t.compareToIgnoreCase(h);\n if(j < 0){\n hana += 3;\n }\n else if(j > 0){\n taro += 3;\n }\n else{\n hana += 1;\n taro += 1;\n }\n n--;\n }\n \n System.out.println(taro+\" \"+hana);\n }", "int taro = 0;", "taro", "0", "int hana = 0;", "hana", "0", "String t", "t", "h;", "h", "while(n>0){\n t = kbd.next();\n h = kbd.next();\n int j = t.compareToIgnoreCase(h);\n if(j < 0){\n hana += 3;\n }\n else if(j > 0){\n taro += 3;\n }\n else{\n hana += 1;\n taro += 1;\n }\n n--;\n }", "n>0", "n", "0", "{\n t = kbd.next();\n h = kbd.next();\n int j = t.compareToIgnoreCase(h);\n if(j < 0){\n hana += 3;\n }\n else if(j > 0){\n taro += 3;\n }\n else{\n hana += 1;\n taro += 1;\n }\n n--;\n }", "t = kbd.next()", "t", "kbd.next()", "kbd.next", "kbd", "h = kbd.next()", "h", "kbd.next()", "kbd.next", "kbd", "int j = t.compareToIgnoreCase(h);", "j", "t.compareToIgnoreCase(h)", "t.compareToIgnoreCase", "t", "h", "if(j < 0){\n hana += 3;\n }\n else if(j > 0){\n taro += 3;\n }\n else{\n hana += 1;\n taro += 1;\n }", "j < 0", "j", "0", "{\n hana += 3;\n }", "hana += 3", "hana", "3", "if(j > 0){\n taro += 3;\n }\n else{\n hana += 1;\n taro += 1;\n }", "j > 0", "j", "0", "{\n taro += 3;\n }", "taro += 3", "taro", "3", "{\n hana += 1;\n taro += 1;\n }", "hana += 1", "hana", "1", "taro += 1", "taro", "1", "n--", "n", "System.out.println(taro+\" \"+hana)", "System.out.println", "System.out", "System", "System.out", "taro+\" \"+hana", "taro+\" \"+hana", "taro", "\" \"", "hana", "int n", "n", "public class Main{\n static Scanner kbd = new Scanner(System.in);\n public static void main(String[] args){\n while(kbd.hasNext()){\n int n = kbd.nextInt();\n if(n!=0) solve(n);\n }\n }\n \n static void solve(int n){\n int taro = 0;\n int hana = 0;\n String t, h;\n \n while(n>0){\n t = kbd.next();\n h = kbd.next();\n int j = t.compareToIgnoreCase(h);\n if(j < 0){\n hana += 3;\n }\n else if(j > 0){\n taro += 3;\n }\n else{\n hana += 1;\n taro += 1;\n }\n n--;\n }\n \n System.out.println(taro+\" \"+hana);\n }\n}", "public class Main{\n static Scanner kbd = new Scanner(System.in);\n public static void main(String[] args){\n while(kbd.hasNext()){\n int n = kbd.nextInt();\n if(n!=0) solve(n);\n }\n }\n \n static void solve(int n){\n int taro = 0;\n int hana = 0;\n String t, h;\n \n while(n>0){\n t = kbd.next();\n h = kbd.next();\n int j = t.compareToIgnoreCase(h);\n if(j < 0){\n hana += 3;\n }\n else if(j > 0){\n taro += 3;\n }\n else{\n hana += 1;\n taro += 1;\n }\n n--;\n }\n \n System.out.println(taro+\" \"+hana);\n }\n}", "Main" ]
import java.util.*; public class Main{ static Scanner kbd = new Scanner(System.in); public static void main(String[] args){ while(kbd.hasNext()){ int n = kbd.nextInt(); if(n!=0) solve(n); } } static void solve(int n){ int taro = 0; int hana = 0; String t, h; while(n>0){ t = kbd.next(); h = kbd.next(); int j = t.compareToIgnoreCase(h); if(j < 0){ hana += 3; } else if(j > 0){ taro += 3; } else{ hana += 1; taro += 1; } n--; } System.out.println(taro+" "+hana); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 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, 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, 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 ], [ 8, 20 ], [ 20, 21 ], [ 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 ], [ 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 ], [ 68, 72 ], [ 72, 73 ], [ 72, 74 ], [ 61, 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 public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int taro_score = 0;\n int hanako_score = 0;\n String taro_card;\n String hanako_card;\n int n = scan.nextInt();\n for (int i = 0; i < n; i++) {\n taro_card = scan.next();\n hanako_card = scan.next();\n if (taro_card.compareTo(hanako_card) > 0) {\n taro_score += 3;\n } else if (taro_card.compareTo(hanako_card) == 0) {\n taro_score += 1;\n hanako_score += 1;\n } else {\n hanako_score += 3;\n }\n }\n System.out.println(taro_score + \" \" + hanako_score);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int taro_score = 0;\n int hanako_score = 0;\n String taro_card;\n String hanako_card;\n int n = scan.nextInt();\n for (int i = 0; i < n; i++) {\n taro_card = scan.next();\n hanako_card = scan.next();\n if (taro_card.compareTo(hanako_card) > 0) {\n taro_score += 3;\n } else if (taro_card.compareTo(hanako_card) == 0) {\n taro_score += 1;\n hanako_score += 1;\n } else {\n hanako_score += 3;\n }\n }\n System.out.println(taro_score + \" \" + hanako_score);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int taro_score = 0;\n int hanako_score = 0;\n String taro_card;\n String hanako_card;\n int n = scan.nextInt();\n for (int i = 0; i < n; i++) {\n taro_card = scan.next();\n hanako_card = scan.next();\n if (taro_card.compareTo(hanako_card) > 0) {\n taro_score += 3;\n } else if (taro_card.compareTo(hanako_card) == 0) {\n taro_score += 1;\n hanako_score += 1;\n } else {\n hanako_score += 3;\n }\n }\n System.out.println(taro_score + \" \" + hanako_score);\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n int taro_score = 0;\n int hanako_score = 0;\n String taro_card;\n String hanako_card;\n int n = scan.nextInt();\n for (int i = 0; i < n; i++) {\n taro_card = scan.next();\n hanako_card = scan.next();\n if (taro_card.compareTo(hanako_card) > 0) {\n taro_score += 3;\n } else if (taro_card.compareTo(hanako_card) == 0) {\n taro_score += 1;\n hanako_score += 1;\n } else {\n hanako_score += 3;\n }\n }\n System.out.println(taro_score + \" \" + hanako_score);\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int taro_score = 0;", "taro_score", "0", "int hanako_score = 0;", "hanako_score", "0", "String taro_card;", "taro_card", "String hanako_card;", "hanako_card", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "for (int i = 0; i < n; i++) {\n taro_card = scan.next();\n hanako_card = scan.next();\n if (taro_card.compareTo(hanako_card) > 0) {\n taro_score += 3;\n } else if (taro_card.compareTo(hanako_card) == 0) {\n taro_score += 1;\n hanako_score += 1;\n } else {\n hanako_score += 3;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n taro_card = scan.next();\n hanako_card = scan.next();\n if (taro_card.compareTo(hanako_card) > 0) {\n taro_score += 3;\n } else if (taro_card.compareTo(hanako_card) == 0) {\n taro_score += 1;\n hanako_score += 1;\n } else {\n hanako_score += 3;\n }\n }", "{\n taro_card = scan.next();\n hanako_card = scan.next();\n if (taro_card.compareTo(hanako_card) > 0) {\n taro_score += 3;\n } else if (taro_card.compareTo(hanako_card) == 0) {\n taro_score += 1;\n hanako_score += 1;\n } else {\n hanako_score += 3;\n }\n }", "taro_card = scan.next()", "taro_card", "scan.next()", "scan.next", "scan", "hanako_card = scan.next()", "hanako_card", "scan.next()", "scan.next", "scan", "if (taro_card.compareTo(hanako_card) > 0) {\n taro_score += 3;\n } else if (taro_card.compareTo(hanako_card) == 0) {\n taro_score += 1;\n hanako_score += 1;\n } else {\n hanako_score += 3;\n }", "taro_card.compareTo(hanako_card) > 0", "taro_card.compareTo(hanako_card)", "taro_card.compareTo", "taro_card", "hanako_card", "0", "{\n taro_score += 3;\n }", "taro_score += 3", "taro_score", "3", "if (taro_card.compareTo(hanako_card) == 0) {\n taro_score += 1;\n hanako_score += 1;\n } else {\n hanako_score += 3;\n }", "taro_card.compareTo(hanako_card) == 0", "taro_card.compareTo(hanako_card)", "taro_card.compareTo", "taro_card", "hanako_card", "0", "{\n taro_score += 1;\n hanako_score += 1;\n }", "taro_score += 1", "taro_score", "1", "hanako_score += 1", "hanako_score", "1", "{\n hanako_score += 3;\n }", "hanako_score += 3", "hanako_score", "3", "System.out.println(taro_score + \" \" + hanako_score)", "System.out.println", "System.out", "System", "System.out", "taro_score + \" \" + hanako_score", "taro_score + \" \" + hanako_score", "taro_score", "\" \"", "hanako_score", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int taro_score = 0; int hanako_score = 0; String taro_card; String hanako_card; int n = scan.nextInt(); for (int i = 0; i < n; i++) { taro_card = scan.next(); hanako_card = scan.next(); if (taro_card.compareTo(hanako_card) > 0) { taro_score += 3; } else if (taro_card.compareTo(hanako_card) == 0) { taro_score += 1; hanako_score += 1; } else { hanako_score += 3; } } System.out.println(taro_score + " " + hanako_score); } }
[ 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, 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, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 123, 11 ], [ 123, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 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 ], [ 81, 85 ], [ 69, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 93, 94 ], [ 93, 95 ], [ 87, 96 ], [ 86, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 14, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 112, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 112, 117 ], [ 117, 118 ], [ 117, 119 ], [ 12, 120 ], [ 120, 121 ], [ 0, 122 ], [ 122, 123 ], [ 122, 124 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint num = Integer.parseInt(br.readLine());\n\t\tint point[] = {0,0};\n\t\tfor(int i = 0 ; i < num ; i++){\n\t\t\tString str[] = br.readLine().split(\" \");\n\t\t\tif(str[0].compareToIgnoreCase(str[1])>0){\n\t\t\t\tpoint[0]+=3;\n\t\t\t}\n\t\t\telse if(str[0].compareToIgnoreCase(str[1])<0){\n\t\t\t\tpoint[1]+=3;\n\t\t\t}\n\t\t\telse if(str[0].compareToIgnoreCase(str[1])==0){\n\t\t\t\tpoint[0]++;\n\t\t\t\tpoint[1]++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(point[0]+\" \"+point[1]);\n\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint num = Integer.parseInt(br.readLine());\n\t\tint point[] = {0,0};\n\t\tfor(int i = 0 ; i < num ; i++){\n\t\t\tString str[] = br.readLine().split(\" \");\n\t\t\tif(str[0].compareToIgnoreCase(str[1])>0){\n\t\t\t\tpoint[0]+=3;\n\t\t\t}\n\t\t\telse if(str[0].compareToIgnoreCase(str[1])<0){\n\t\t\t\tpoint[1]+=3;\n\t\t\t}\n\t\t\telse if(str[0].compareToIgnoreCase(str[1])==0){\n\t\t\t\tpoint[0]++;\n\t\t\t\tpoint[1]++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(point[0]+\" \"+point[1]);\n\n\t}\n\n}", "Main", "public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint num = Integer.parseInt(br.readLine());\n\t\tint point[] = {0,0};\n\t\tfor(int i = 0 ; i < num ; i++){\n\t\t\tString str[] = br.readLine().split(\" \");\n\t\t\tif(str[0].compareToIgnoreCase(str[1])>0){\n\t\t\t\tpoint[0]+=3;\n\t\t\t}\n\t\t\telse if(str[0].compareToIgnoreCase(str[1])<0){\n\t\t\t\tpoint[1]+=3;\n\t\t\t}\n\t\t\telse if(str[0].compareToIgnoreCase(str[1])==0){\n\t\t\t\tpoint[0]++;\n\t\t\t\tpoint[1]++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(point[0]+\" \"+point[1]);\n\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint num = Integer.parseInt(br.readLine());\n\t\tint point[] = {0,0};\n\t\tfor(int i = 0 ; i < num ; i++){\n\t\t\tString str[] = br.readLine().split(\" \");\n\t\t\tif(str[0].compareToIgnoreCase(str[1])>0){\n\t\t\t\tpoint[0]+=3;\n\t\t\t}\n\t\t\telse if(str[0].compareToIgnoreCase(str[1])<0){\n\t\t\t\tpoint[1]+=3;\n\t\t\t}\n\t\t\telse if(str[0].compareToIgnoreCase(str[1])==0){\n\t\t\t\tpoint[0]++;\n\t\t\t\tpoint[1]++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(point[0]+\" \"+point[1]);\n\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int num = Integer.parseInt(br.readLine());", "num", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int point[] = {0,0};", "point", "{0,0}", "0", "0", "for(int i = 0 ; i < num ; i++){\n\t\t\tString str[] = br.readLine().split(\" \");\n\t\t\tif(str[0].compareToIgnoreCase(str[1])>0){\n\t\t\t\tpoint[0]+=3;\n\t\t\t}\n\t\t\telse if(str[0].compareToIgnoreCase(str[1])<0){\n\t\t\t\tpoint[1]+=3;\n\t\t\t}\n\t\t\telse if(str[0].compareToIgnoreCase(str[1])==0){\n\t\t\t\tpoint[0]++;\n\t\t\t\tpoint[1]++;\n\t\t\t}\n\t\t}", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < num", "i", "num", "i++", "i++", "i", "{\n\t\t\tString str[] = br.readLine().split(\" \");\n\t\t\tif(str[0].compareToIgnoreCase(str[1])>0){\n\t\t\t\tpoint[0]+=3;\n\t\t\t}\n\t\t\telse if(str[0].compareToIgnoreCase(str[1])<0){\n\t\t\t\tpoint[1]+=3;\n\t\t\t}\n\t\t\telse if(str[0].compareToIgnoreCase(str[1])==0){\n\t\t\t\tpoint[0]++;\n\t\t\t\tpoint[1]++;\n\t\t\t}\n\t\t}", "{\n\t\t\tString str[] = br.readLine().split(\" \");\n\t\t\tif(str[0].compareToIgnoreCase(str[1])>0){\n\t\t\t\tpoint[0]+=3;\n\t\t\t}\n\t\t\telse if(str[0].compareToIgnoreCase(str[1])<0){\n\t\t\t\tpoint[1]+=3;\n\t\t\t}\n\t\t\telse if(str[0].compareToIgnoreCase(str[1])==0){\n\t\t\t\tpoint[0]++;\n\t\t\t\tpoint[1]++;\n\t\t\t}\n\t\t}", "String str[] = br.readLine().split(\" \");", "str", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "if(str[0].compareToIgnoreCase(str[1])>0){\n\t\t\t\tpoint[0]+=3;\n\t\t\t}\n\t\t\telse if(str[0].compareToIgnoreCase(str[1])<0){\n\t\t\t\tpoint[1]+=3;\n\t\t\t}\n\t\t\telse if(str[0].compareToIgnoreCase(str[1])==0){\n\t\t\t\tpoint[0]++;\n\t\t\t\tpoint[1]++;\n\t\t\t}", "str[0].compareToIgnoreCase(str[1])>0", "str[0].compareToIgnoreCase(str[1])", "str[0].compareToIgnoreCase", "str[0]", "str", "0", "str[1]", "str", "1", "0", "{\n\t\t\t\tpoint[0]+=3;\n\t\t\t}", "point[0]+=3", "point[0]", "point", "0", "3", "if(str[0].compareToIgnoreCase(str[1])<0){\n\t\t\t\tpoint[1]+=3;\n\t\t\t}\n\t\t\telse if(str[0].compareToIgnoreCase(str[1])==0){\n\t\t\t\tpoint[0]++;\n\t\t\t\tpoint[1]++;\n\t\t\t}", "str[0].compareToIgnoreCase(str[1])<0", "str[0].compareToIgnoreCase(str[1])", "str[0].compareToIgnoreCase", "str[0]", "str", "0", "str[1]", "str", "1", "0", "{\n\t\t\t\tpoint[1]+=3;\n\t\t\t}", "point[1]+=3", "point[1]", "point", "1", "3", "if(str[0].compareToIgnoreCase(str[1])==0){\n\t\t\t\tpoint[0]++;\n\t\t\t\tpoint[1]++;\n\t\t\t}", "str[0].compareToIgnoreCase(str[1])==0", "str[0].compareToIgnoreCase(str[1])", "str[0].compareToIgnoreCase", "str[0]", "str", "0", "str[1]", "str", "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", "System.out.println(point[0]+\" \"+point[1])", "System.out.println", "System.out", "System", "System.out", "point[0]+\" \"+point[1]", "point[0]+\" \"+point[1]", "point[0]", "point", "0", "\" \"", "point[1]", "point", "1", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint num = Integer.parseInt(br.readLine());\n\t\tint point[] = {0,0};\n\t\tfor(int i = 0 ; i < num ; i++){\n\t\t\tString str[] = br.readLine().split(\" \");\n\t\t\tif(str[0].compareToIgnoreCase(str[1])>0){\n\t\t\t\tpoint[0]+=3;\n\t\t\t}\n\t\t\telse if(str[0].compareToIgnoreCase(str[1])<0){\n\t\t\t\tpoint[1]+=3;\n\t\t\t}\n\t\t\telse if(str[0].compareToIgnoreCase(str[1])==0){\n\t\t\t\tpoint[0]++;\n\t\t\t\tpoint[1]++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(point[0]+\" \"+point[1]);\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint num = Integer.parseInt(br.readLine());\n\t\tint point[] = {0,0};\n\t\tfor(int i = 0 ; i < num ; i++){\n\t\t\tString str[] = br.readLine().split(\" \");\n\t\t\tif(str[0].compareToIgnoreCase(str[1])>0){\n\t\t\t\tpoint[0]+=3;\n\t\t\t}\n\t\t\telse if(str[0].compareToIgnoreCase(str[1])<0){\n\t\t\t\tpoint[1]+=3;\n\t\t\t}\n\t\t\telse if(str[0].compareToIgnoreCase(str[1])==0){\n\t\t\t\tpoint[0]++;\n\t\t\t\tpoint[1]++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(point[0]+\" \"+point[1]);\n\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int num = Integer.parseInt(br.readLine()); int point[] = {0,0}; for(int i = 0 ; i < num ; i++){ String str[] = br.readLine().split(" "); if(str[0].compareToIgnoreCase(str[1])>0){ point[0]+=3; } else if(str[0].compareToIgnoreCase(str[1])<0){ point[1]+=3; } else if(str[0].compareToIgnoreCase(str[1])==0){ point[0]++; point[1]++; } } System.out.println(point[0]+" "+point[1]); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 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, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 4, 18, 13, 17, 0, 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 ]
[ [ 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 ], [ 18, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 26, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 44, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 44, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 65, 70 ], [ 44, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 72, 77 ], [ 71, 78 ], [ 78, 79 ], [ 78, 80 ], [ 71, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 82, 87 ], [ 81, 88 ], [ 88, 89 ], [ 88, 90 ], [ 81, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 94, 95 ], [ 8, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 102, 102 ], [ 102, 103 ], [ 102, 104 ], [ 102, 105 ], [ 6, 106 ], [ 106, 107 ] ]
[ "import java.io.*;\n \nclass Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String taro, hanako, str;\n int st=0, sh=0;\n int n = Integer.parseInt(br.readLine());\n for(int i=0; i<n; i++) {\n str = br.readLine();\n taro = str.substring(0, str.indexOf(' '));\n hanako = str.substring(str.indexOf(' ')+1);\n if(taro.compareTo(hanako) < 0) sh += 3;\n else if(taro.compareTo(hanako) > 0) st+=3;\n else { st++; sh++; }\n }\n System.out.println(st + \" \" + sh);\n }\n}", "import java.io.*;", "io.*", "java", "class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String taro, hanako, str;\n int st=0, sh=0;\n int n = Integer.parseInt(br.readLine());\n for(int i=0; i<n; i++) {\n str = br.readLine();\n taro = str.substring(0, str.indexOf(' '));\n hanako = str.substring(str.indexOf(' ')+1);\n if(taro.compareTo(hanako) < 0) sh += 3;\n else if(taro.compareTo(hanako) > 0) st+=3;\n else { st++; sh++; }\n }\n System.out.println(st + \" \" + sh);\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String taro, hanako, str;\n int st=0, sh=0;\n int n = Integer.parseInt(br.readLine());\n for(int i=0; i<n; i++) {\n str = br.readLine();\n taro = str.substring(0, str.indexOf(' '));\n hanako = str.substring(str.indexOf(' ')+1);\n if(taro.compareTo(hanako) < 0) sh += 3;\n else if(taro.compareTo(hanako) > 0) st+=3;\n else { st++; sh++; }\n }\n System.out.println(st + \" \" + sh);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String taro, hanako, str;\n int st=0, sh=0;\n int n = Integer.parseInt(br.readLine());\n for(int i=0; i<n; i++) {\n str = br.readLine();\n taro = str.substring(0, str.indexOf(' '));\n hanako = str.substring(str.indexOf(' ')+1);\n if(taro.compareTo(hanako) < 0) sh += 3;\n else if(taro.compareTo(hanako) > 0) st+=3;\n else { st++; sh++; }\n }\n System.out.println(st + \" \" + sh);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String taro", "taro", "hanako", "hanako", "str;", "str", "int st=0", "st", "0", "sh=0;", "sh", "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 str = br.readLine();\n taro = str.substring(0, str.indexOf(' '));\n hanako = str.substring(str.indexOf(' ')+1);\n if(taro.compareTo(hanako) < 0) sh += 3;\n else if(taro.compareTo(hanako) > 0) st+=3;\n else { st++; sh++; }\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n str = br.readLine();\n taro = str.substring(0, str.indexOf(' '));\n hanako = str.substring(str.indexOf(' ')+1);\n if(taro.compareTo(hanako) < 0) sh += 3;\n else if(taro.compareTo(hanako) > 0) st+=3;\n else { st++; sh++; }\n }", "{\n str = br.readLine();\n taro = str.substring(0, str.indexOf(' '));\n hanako = str.substring(str.indexOf(' ')+1);\n if(taro.compareTo(hanako) < 0) sh += 3;\n else if(taro.compareTo(hanako) > 0) st+=3;\n else { st++; sh++; }\n }", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "taro = str.substring(0, str.indexOf(' '))", "taro", "str.substring(0, str.indexOf(' '))", "str.substring", "str", "0", "str.indexOf(' ')", "str.indexOf", "str", "' '", "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) sh += 3;\n else if(taro.compareTo(hanako) > 0) st+=3;\n else { st++; sh++; }", "taro.compareTo(hanako) < 0", "taro.compareTo(hanako)", "taro.compareTo", "taro", "hanako", "0", "sh += 3", "sh", "3", "if(taro.compareTo(hanako) > 0) st+=3;\n else { st++; sh++; }", "taro.compareTo(hanako) > 0", "taro.compareTo(hanako)", "taro.compareTo", "taro", "hanako", "0", "st+=3", "st", "3", "{ st++; sh++; }", "st++", "st", "sh++", "sh", "System.out.println(st + \" \" + sh)", "System.out.println", "System.out", "System", "System.out", "st + \" \" + sh", "st + \" \" + sh", "st", "\" \"", "sh", "String[] args", "args" ]
import java.io.*; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String taro, hanako, str; int st=0, sh=0; int n = Integer.parseInt(br.readLine()); for(int i=0; i<n; i++) { str = br.readLine(); taro = str.substring(0, str.indexOf(' ')); hanako = str.substring(str.indexOf(' ')+1); if(taro.compareTo(hanako) < 0) sh += 3; else if(taro.compareTo(hanako) > 0) st+=3; else { st++; sh++; } } System.out.println(st + " " + sh); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 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, 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 ], [ 91, 5 ], [ 91, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 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 ], [ 56, 60 ], [ 60, 61 ], [ 60, 62 ], [ 49, 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 ], [ 75, 77 ], [ 8, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 84, 84 ], [ 84, 85 ], [ 84, 86 ], [ 84, 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 scan = new Scanner(System.in);\n int n = scan.nextInt();\n int i = 0;\n\n\n int taro_count = 0;\n int hana_count = 0;\n for (i = 0; i < n; i++) {\n String a = scan.next();\n String b = scan.next();\n if (a.compareTo(b) == 0) {\n taro_count += 1;\n hana_count += 1;\n } else if (a.compareTo(b) < 0) {\n hana_count += 3;\n } else {\n taro_count += 3;\n }\n }\n System.out.println(taro_count + \" \" + hana_count);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int i = 0;\n\n\n int taro_count = 0;\n int hana_count = 0;\n for (i = 0; i < n; i++) {\n String a = scan.next();\n String b = scan.next();\n if (a.compareTo(b) == 0) {\n taro_count += 1;\n hana_count += 1;\n } else if (a.compareTo(b) < 0) {\n hana_count += 3;\n } else {\n taro_count += 3;\n }\n }\n System.out.println(taro_count + \" \" + hana_count);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int i = 0;\n\n\n int taro_count = 0;\n int hana_count = 0;\n for (i = 0; i < n; i++) {\n String a = scan.next();\n String b = scan.next();\n if (a.compareTo(b) == 0) {\n taro_count += 1;\n hana_count += 1;\n } else if (a.compareTo(b) < 0) {\n hana_count += 3;\n } else {\n taro_count += 3;\n }\n }\n System.out.println(taro_count + \" \" + hana_count);\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int i = 0;\n\n\n int taro_count = 0;\n int hana_count = 0;\n for (i = 0; i < n; i++) {\n String a = scan.next();\n String b = scan.next();\n if (a.compareTo(b) == 0) {\n taro_count += 1;\n hana_count += 1;\n } else if (a.compareTo(b) < 0) {\n hana_count += 3;\n } else {\n taro_count += 3;\n }\n }\n System.out.println(taro_count + \" \" + hana_count);\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "int i = 0;", "i", "0", "int taro_count = 0;", "taro_count", "0", "int hana_count = 0;", "hana_count", "0", "for (i = 0; i < n; i++) {\n String a = scan.next();\n String b = scan.next();\n if (a.compareTo(b) == 0) {\n taro_count += 1;\n hana_count += 1;\n } else if (a.compareTo(b) < 0) {\n hana_count += 3;\n } else {\n taro_count += 3;\n }\n }", "i = 0;", "i = 0", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n String a = scan.next();\n String b = scan.next();\n if (a.compareTo(b) == 0) {\n taro_count += 1;\n hana_count += 1;\n } else if (a.compareTo(b) < 0) {\n hana_count += 3;\n } else {\n taro_count += 3;\n }\n }", "{\n String a = scan.next();\n String b = scan.next();\n if (a.compareTo(b) == 0) {\n taro_count += 1;\n hana_count += 1;\n } else if (a.compareTo(b) < 0) {\n hana_count += 3;\n } else {\n taro_count += 3;\n }\n }", "String a = scan.next();", "a", "scan.next()", "scan.next", "scan", "String b = scan.next();", "b", "scan.next()", "scan.next", "scan", "if (a.compareTo(b) == 0) {\n taro_count += 1;\n hana_count += 1;\n } else if (a.compareTo(b) < 0) {\n hana_count += 3;\n } else {\n taro_count += 3;\n }", "a.compareTo(b) == 0", "a.compareTo(b)", "a.compareTo", "a", "b", "0", "{\n taro_count += 1;\n hana_count += 1;\n }", "taro_count += 1", "taro_count", "1", "hana_count += 1", "hana_count", "1", "if (a.compareTo(b) < 0) {\n hana_count += 3;\n } else {\n taro_count += 3;\n }", "a.compareTo(b) < 0", "a.compareTo(b)", "a.compareTo", "a", "b", "0", "{\n hana_count += 3;\n }", "hana_count += 3", "hana_count", "3", "{\n taro_count += 3;\n }", "taro_count += 3", "taro_count", "3", "System.out.println(taro_count + \" \" + hana_count)", "System.out.println", "System.out", "System", "System.out", "taro_count + \" \" + hana_count", "taro_count + \" \" + hana_count", "taro_count", "\" \"", "hana_count", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int i = 0;\n\n\n int taro_count = 0;\n int hana_count = 0;\n for (i = 0; i < n; i++) {\n String a = scan.next();\n String b = scan.next();\n if (a.compareTo(b) == 0) {\n taro_count += 1;\n hana_count += 1;\n } else if (a.compareTo(b) < 0) {\n hana_count += 3;\n } else {\n taro_count += 3;\n }\n }\n System.out.println(taro_count + \" \" + hana_count);\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int i = 0;\n\n\n int taro_count = 0;\n int hana_count = 0;\n for (i = 0; i < n; i++) {\n String a = scan.next();\n String b = scan.next();\n if (a.compareTo(b) == 0) {\n taro_count += 1;\n hana_count += 1;\n } else if (a.compareTo(b) < 0) {\n hana_count += 3;\n } else {\n taro_count += 3;\n }\n }\n System.out.println(taro_count + \" \" + hana_count);\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 i = 0; int taro_count = 0; int hana_count = 0; for (i = 0; i < n; i++) { String a = scan.next(); String b = scan.next(); if (a.compareTo(b) == 0) { taro_count += 1; hana_count += 1; } else if (a.compareTo(b) < 0) { hana_count += 3; } else { taro_count += 3; } } System.out.println(taro_count + " " + hana_count); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 20, 17, 41, 13, 20, 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, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 0, 13, 4, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 18, 13, 17, 17, 18, 13, 17, 4, 18, 13, 23, 13, 12, 13, 30, 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, 0, 18, 13, 17, 17, 30, 40, 18, 13, 17, 40, 18, 13, 17, 29, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 133, 5 ], [ 133, 6 ], [ 6, 7 ], [ 6, 8 ], [ 133, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 16 ], [ 16, 17 ], [ 16, 18 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 28, 29 ], [ 29, 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 ], [ 43, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 43, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 57, 60 ], [ 11, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 67, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 67, 72 ], [ 72, 73 ], [ 72, 74 ], [ 11, 75 ], [ 75, 76 ], [ 76, 77 ], [ 9, 78 ], [ 78, 79 ], [ 133, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 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 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 83, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 107, 108 ], [ 107, 109 ], [ 101, 110 ], [ 100, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 100, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 82, 126 ], [ 126, 127 ], [ 80, 128 ], [ 128, 129 ], [ 80, 130 ], [ 130, 131 ], [ 0, 132 ], [ 132, 133 ], [ 132, 134 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tint[] scores = new int[2];\n\t\tString[] cards = new String[2];\n\t\tString str = null;\n\n\t\tint n = Integer.parseInt(sc.nextLine());\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tstr = sc.nextLine();\n\t\t\tcards = str.split(\" \");\n\t\t\tscores = fight(scores, cards);\n\t\t}\n\n\t\t\tSystem.out.println(scores[0] + \" \" + scores[1]);\n\n\n\t\tsc.close();\n\n\t}\n\n\tprivate static int[] fight(int[] scores, String[] cards) {\n\n\t\t\tif (cards[0].compareTo(cards[1]) > 0) {\n\t\t\t\tscores[0] += 3;\n\t\t\t} else if (cards[0].compareTo(cards[1]) < 0) {\n\t\t\t\tscores[1] += 3;\n\t\t\t} else {\n\t\t\t\tscores[0]++;\n\t\t\t\tscores[1]++;\n\t\t\t}\n\n\t\treturn scores;\n\n\n\t}\n\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tint[] scores = new int[2];\n\t\tString[] cards = new String[2];\n\t\tString str = null;\n\n\t\tint n = Integer.parseInt(sc.nextLine());\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tstr = sc.nextLine();\n\t\t\tcards = str.split(\" \");\n\t\t\tscores = fight(scores, cards);\n\t\t}\n\n\t\t\tSystem.out.println(scores[0] + \" \" + scores[1]);\n\n\n\t\tsc.close();\n\n\t}\n\n\tprivate static int[] fight(int[] scores, String[] cards) {\n\n\t\t\tif (cards[0].compareTo(cards[1]) > 0) {\n\t\t\t\tscores[0] += 3;\n\t\t\t} else if (cards[0].compareTo(cards[1]) < 0) {\n\t\t\t\tscores[1] += 3;\n\t\t\t} else {\n\t\t\t\tscores[0]++;\n\t\t\t\tscores[1]++;\n\t\t\t}\n\n\t\treturn scores;\n\n\n\t}\n\n}", "Main", "static Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "public static void main(String[] args) {\n\t\tint[] scores = new int[2];\n\t\tString[] cards = new String[2];\n\t\tString str = null;\n\n\t\tint n = Integer.parseInt(sc.nextLine());\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tstr = sc.nextLine();\n\t\t\tcards = str.split(\" \");\n\t\t\tscores = fight(scores, cards);\n\t\t}\n\n\t\t\tSystem.out.println(scores[0] + \" \" + scores[1]);\n\n\n\t\tsc.close();\n\n\t}", "main", "{\n\t\tint[] scores = new int[2];\n\t\tString[] cards = new String[2];\n\t\tString str = null;\n\n\t\tint n = Integer.parseInt(sc.nextLine());\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tstr = sc.nextLine();\n\t\t\tcards = str.split(\" \");\n\t\t\tscores = fight(scores, cards);\n\t\t}\n\n\t\t\tSystem.out.println(scores[0] + \" \" + scores[1]);\n\n\n\t\tsc.close();\n\n\t}", "int[] scores = new int[2];", "scores", "new int[2]", "2", "String[] cards = new String[2];", "cards", "new String[2]", "2", "String str = null;", "str", "null", "int n = Integer.parseInt(sc.nextLine());", "n", "Integer.parseInt(sc.nextLine())", "Integer.parseInt", "Integer", "sc.nextLine()", "sc.nextLine", "sc", "for (int i = 0; i < n; i++) {\n\t\t\tstr = sc.nextLine();\n\t\t\tcards = str.split(\" \");\n\t\t\tscores = fight(scores, cards);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tstr = sc.nextLine();\n\t\t\tcards = str.split(\" \");\n\t\t\tscores = fight(scores, cards);\n\t\t}", "{\n\t\t\tstr = sc.nextLine();\n\t\t\tcards = str.split(\" \");\n\t\t\tscores = fight(scores, cards);\n\t\t}", "str = sc.nextLine()", "str", "sc.nextLine()", "sc.nextLine", "sc", "cards = str.split(\" \")", "cards", "str.split(\" \")", "str.split", "str", "\" \"", "scores = fight(scores, cards)", "scores", "fight(scores, cards)", "fight", "scores", "cards", "System.out.println(scores[0] + \" \" + scores[1])", "System.out.println", "System.out", "System", "System.out", "scores[0] + \" \" + scores[1]", "scores[0] + \" \" + scores[1]", "scores[0]", "scores", "0", "\" \"", "scores[1]", "scores", "1", "sc.close()", "sc.close", "sc", "String[] args", "args", "private static int[] fight(int[] scores, String[] cards) {\n\n\t\t\tif (cards[0].compareTo(cards[1]) > 0) {\n\t\t\t\tscores[0] += 3;\n\t\t\t} else if (cards[0].compareTo(cards[1]) < 0) {\n\t\t\t\tscores[1] += 3;\n\t\t\t} else {\n\t\t\t\tscores[0]++;\n\t\t\t\tscores[1]++;\n\t\t\t}\n\n\t\treturn scores;\n\n\n\t}", "fight", "{\n\n\t\t\tif (cards[0].compareTo(cards[1]) > 0) {\n\t\t\t\tscores[0] += 3;\n\t\t\t} else if (cards[0].compareTo(cards[1]) < 0) {\n\t\t\t\tscores[1] += 3;\n\t\t\t} else {\n\t\t\t\tscores[0]++;\n\t\t\t\tscores[1]++;\n\t\t\t}\n\n\t\treturn scores;\n\n\n\t}", "if (cards[0].compareTo(cards[1]) > 0) {\n\t\t\t\tscores[0] += 3;\n\t\t\t} else if (cards[0].compareTo(cards[1]) < 0) {\n\t\t\t\tscores[1] += 3;\n\t\t\t} else {\n\t\t\t\tscores[0]++;\n\t\t\t\tscores[1]++;\n\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\tscores[0] += 3;\n\t\t\t}", "scores[0] += 3", "scores[0]", "scores", "0", "3", "if (cards[0].compareTo(cards[1]) < 0) {\n\t\t\t\tscores[1] += 3;\n\t\t\t} else {\n\t\t\t\tscores[0]++;\n\t\t\t\tscores[1]++;\n\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\tscores[1] += 3;\n\t\t\t}", "scores[1] += 3", "scores[1]", "scores", "1", "3", "{\n\t\t\t\tscores[0]++;\n\t\t\t\tscores[1]++;\n\t\t\t}", "scores[0]++", "scores[0]", "scores", "0", "scores[1]++", "scores[1]", "scores", "1", "return scores;", "scores", "int[] scores", "scores", "String[] cards", "cards", "public class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tint[] scores = new int[2];\n\t\tString[] cards = new String[2];\n\t\tString str = null;\n\n\t\tint n = Integer.parseInt(sc.nextLine());\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tstr = sc.nextLine();\n\t\t\tcards = str.split(\" \");\n\t\t\tscores = fight(scores, cards);\n\t\t}\n\n\t\t\tSystem.out.println(scores[0] + \" \" + scores[1]);\n\n\n\t\tsc.close();\n\n\t}\n\n\tprivate static int[] fight(int[] scores, String[] cards) {\n\n\t\t\tif (cards[0].compareTo(cards[1]) > 0) {\n\t\t\t\tscores[0] += 3;\n\t\t\t} else if (cards[0].compareTo(cards[1]) < 0) {\n\t\t\t\tscores[1] += 3;\n\t\t\t} else {\n\t\t\t\tscores[0]++;\n\t\t\t\tscores[1]++;\n\t\t\t}\n\n\t\treturn scores;\n\n\n\t}\n\n}", "public class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tint[] scores = new int[2];\n\t\tString[] cards = new String[2];\n\t\tString str = null;\n\n\t\tint n = Integer.parseInt(sc.nextLine());\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tstr = sc.nextLine();\n\t\t\tcards = str.split(\" \");\n\t\t\tscores = fight(scores, cards);\n\t\t}\n\n\t\t\tSystem.out.println(scores[0] + \" \" + scores[1]);\n\n\n\t\tsc.close();\n\n\t}\n\n\tprivate static int[] fight(int[] scores, String[] cards) {\n\n\t\t\tif (cards[0].compareTo(cards[1]) > 0) {\n\t\t\t\tscores[0] += 3;\n\t\t\t} else if (cards[0].compareTo(cards[1]) < 0) {\n\t\t\t\tscores[1] += 3;\n\t\t\t} else {\n\t\t\t\tscores[0]++;\n\t\t\t\tscores[1]++;\n\t\t\t}\n\n\t\treturn scores;\n\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int[] scores = new int[2]; String[] cards = new String[2]; String str = null; int n = Integer.parseInt(sc.nextLine()); for (int i = 0; i < n; i++) { str = sc.nextLine(); cards = str.split(" "); scores = fight(scores, cards); } System.out.println(scores[0] + " " + scores[1]); sc.close(); } private static int[] fight(int[] scores, String[] cards) { if (cards[0].compareTo(cards[1]) > 0) { scores[0] += 3; } else if (cards[0].compareTo(cards[1]) < 0) { scores[1] += 3; } else { scores[0]++; scores[1]++; } return scores; } }
[ 7, 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, 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 ], [ 94, 2 ], [ 94, 3 ], [ 3, 4 ], [ 3, 5 ], [ 5, 6 ], [ 6, 7 ], [ 6, 8 ], [ 5, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 5, 14 ], [ 14, 15 ], [ 14, 16 ], [ 5, 17 ], [ 17, 18 ], [ 17, 19 ], [ 5, 20 ], [ 20, 21 ], [ 5, 22 ], [ 22, 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 ], [ 36, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 59, 64 ], [ 58, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 36, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 71, 76 ], [ 70, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 5, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 87, 87 ], [ 87, 88 ], [ 87, 89 ], [ 87, 90 ], [ 3, 91 ], [ 91, 92 ], [ 0, 93 ], [ 93, 94 ], [ 93, 95 ] ]
[ "public class Main {\n public static void main(String[] args) {\n\n java.util.Scanner sc = new java.util.Scanner(System.in);\n int n = sc.nextInt();\n\n int taro_point = 0, hanako_point = 0;\n String taro_card, hanako_card;\n for (int i = 0; i < n; i ++) {\n taro_card = sc.next();\n hanako_card = sc.next();\n if (taro_card.compareToIgnoreCase(hanako_card) > 0) { taro_point += 3; }\n if (taro_card.compareToIgnoreCase(hanako_card) == 0) { hanako_point ++; taro_point ++; }\n if (taro_card.compareToIgnoreCase(hanako_card) < 0) { hanako_point += 3; }\n }\n System.out.println(taro_point + \" \" + hanako_point);\n }\n}", "public class Main {\n public static void main(String[] args) {\n\n java.util.Scanner sc = new java.util.Scanner(System.in);\n int n = sc.nextInt();\n\n int taro_point = 0, hanako_point = 0;\n String taro_card, hanako_card;\n for (int i = 0; i < n; i ++) {\n taro_card = sc.next();\n hanako_card = sc.next();\n if (taro_card.compareToIgnoreCase(hanako_card) > 0) { taro_point += 3; }\n if (taro_card.compareToIgnoreCase(hanako_card) == 0) { hanako_point ++; taro_point ++; }\n if (taro_card.compareToIgnoreCase(hanako_card) < 0) { hanako_point += 3; }\n }\n System.out.println(taro_point + \" \" + hanako_point);\n }\n}", "Main", "public static void main(String[] args) {\n\n java.util.Scanner sc = new java.util.Scanner(System.in);\n int n = sc.nextInt();\n\n int taro_point = 0, hanako_point = 0;\n String taro_card, hanako_card;\n for (int i = 0; i < n; i ++) {\n taro_card = sc.next();\n hanako_card = sc.next();\n if (taro_card.compareToIgnoreCase(hanako_card) > 0) { taro_point += 3; }\n if (taro_card.compareToIgnoreCase(hanako_card) == 0) { hanako_point ++; taro_point ++; }\n if (taro_card.compareToIgnoreCase(hanako_card) < 0) { hanako_point += 3; }\n }\n System.out.println(taro_point + \" \" + hanako_point);\n }", "main", "{\n\n java.util.Scanner sc = new java.util.Scanner(System.in);\n int n = sc.nextInt();\n\n int taro_point = 0, hanako_point = 0;\n String taro_card, hanako_card;\n for (int i = 0; i < n; i ++) {\n taro_card = sc.next();\n hanako_card = sc.next();\n if (taro_card.compareToIgnoreCase(hanako_card) > 0) { taro_point += 3; }\n if (taro_card.compareToIgnoreCase(hanako_card) == 0) { hanako_point ++; taro_point ++; }\n if (taro_card.compareToIgnoreCase(hanako_card) < 0) { hanako_point += 3; }\n }\n System.out.println(taro_point + \" \" + hanako_point);\n }", "java.util.Scanner sc = new java.util.Scanner(System.in);", "sc", "new java.util.Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int taro_point = 0", "taro_point", "0", "hanako_point = 0;", "hanako_point", "0", "String taro_card", "taro_card", "hanako_card;", "hanako_card", "for (int i = 0; i < n; i ++) {\n taro_card = sc.next();\n hanako_card = sc.next();\n if (taro_card.compareToIgnoreCase(hanako_card) > 0) { taro_point += 3; }\n if (taro_card.compareToIgnoreCase(hanako_card) == 0) { hanako_point ++; taro_point ++; }\n if (taro_card.compareToIgnoreCase(hanako_card) < 0) { hanako_point += 3; }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i ++", "i ++", "i", "{\n taro_card = sc.next();\n hanako_card = sc.next();\n if (taro_card.compareToIgnoreCase(hanako_card) > 0) { taro_point += 3; }\n if (taro_card.compareToIgnoreCase(hanako_card) == 0) { hanako_point ++; taro_point ++; }\n if (taro_card.compareToIgnoreCase(hanako_card) < 0) { hanako_point += 3; }\n }", "{\n taro_card = sc.next();\n hanako_card = sc.next();\n if (taro_card.compareToIgnoreCase(hanako_card) > 0) { taro_point += 3; }\n if (taro_card.compareToIgnoreCase(hanako_card) == 0) { hanako_point ++; taro_point ++; }\n if (taro_card.compareToIgnoreCase(hanako_card) < 0) { hanako_point += 3; }\n }", "taro_card = sc.next()", "taro_card", "sc.next()", "sc.next", "sc", "hanako_card = sc.next()", "hanako_card", "sc.next()", "sc.next", "sc", "if (taro_card.compareToIgnoreCase(hanako_card) > 0) { taro_point += 3; }", "taro_card.compareToIgnoreCase(hanako_card) > 0", "taro_card.compareToIgnoreCase(hanako_card)", "taro_card.compareToIgnoreCase", "taro_card", "hanako_card", "0", "{ taro_point += 3; }", "taro_point += 3", "taro_point", "3", "if (taro_card.compareToIgnoreCase(hanako_card) == 0) { hanako_point ++; taro_point ++; }", "taro_card.compareToIgnoreCase(hanako_card) == 0", "taro_card.compareToIgnoreCase(hanako_card)", "taro_card.compareToIgnoreCase", "taro_card", "hanako_card", "0", "{ hanako_point ++; taro_point ++; }", "hanako_point ++", "hanako_point", "taro_point ++", "taro_point", "if (taro_card.compareToIgnoreCase(hanako_card) < 0) { hanako_point += 3; }", "taro_card.compareToIgnoreCase(hanako_card) < 0", "taro_card.compareToIgnoreCase(hanako_card)", "taro_card.compareToIgnoreCase", "taro_card", "hanako_card", "0", "{ hanako_point += 3; }", "hanako_point += 3", "hanako_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 public static void main(String[] args) {\n\n java.util.Scanner sc = new java.util.Scanner(System.in);\n int n = sc.nextInt();\n\n int taro_point = 0, hanako_point = 0;\n String taro_card, hanako_card;\n for (int i = 0; i < n; i ++) {\n taro_card = sc.next();\n hanako_card = sc.next();\n if (taro_card.compareToIgnoreCase(hanako_card) > 0) { taro_point += 3; }\n if (taro_card.compareToIgnoreCase(hanako_card) == 0) { hanako_point ++; taro_point ++; }\n if (taro_card.compareToIgnoreCase(hanako_card) < 0) { hanako_point += 3; }\n }\n System.out.println(taro_point + \" \" + hanako_point);\n }\n}", "public class Main {\n public static void main(String[] args) {\n\n java.util.Scanner sc = new java.util.Scanner(System.in);\n int n = sc.nextInt();\n\n int taro_point = 0, hanako_point = 0;\n String taro_card, hanako_card;\n for (int i = 0; i < n; i ++) {\n taro_card = sc.next();\n hanako_card = sc.next();\n if (taro_card.compareToIgnoreCase(hanako_card) > 0) { taro_point += 3; }\n if (taro_card.compareToIgnoreCase(hanako_card) == 0) { hanako_point ++; taro_point ++; }\n if (taro_card.compareToIgnoreCase(hanako_card) < 0) { hanako_point += 3; }\n }\n System.out.println(taro_point + \" \" + hanako_point);\n }\n}", "Main" ]
public class Main { public static void main(String[] args) { java.util.Scanner sc = new java.util.Scanner(System.in); int n = sc.nextInt(); int taro_point = 0, hanako_point = 0; String taro_card, hanako_card; for (int i = 0; i < n; i ++) { taro_card = sc.next(); hanako_card = sc.next(); if (taro_card.compareToIgnoreCase(hanako_card) > 0) { taro_point += 3; } if (taro_card.compareToIgnoreCase(hanako_card) == 0) { hanako_point ++; taro_point ++; } if (taro_card.compareToIgnoreCase(hanako_card) < 0) { hanako_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, 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, 17, 41, 13, 4, 18, 18, 13, 17, 41, 13, 4, 18, 18, 13, 17, 14, 2, 13, 13, 30, 0, 13, 13, 30, 0, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 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, 30, 0, 13, 17, 14, 13, 30, 14, 2, 13, 13, 30, 0, 13, 17, 14, 2, 13, 13, 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 ], [ 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 ], [ 41, 46 ], [ 38, 47 ], [ 47, 48 ], [ 47, 49 ], [ 38, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 38, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 38, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 64, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 38, 76 ], [ 76, 77 ], [ 76, 78 ], [ 38, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 84, 85 ], [ 84, 86 ], [ 79, 87 ], [ 87, 88 ], [ 88, 89 ], [ 79, 90 ], [ 91, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 93, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 92, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 110, 111 ], [ 110, 112 ], [ 106, 113 ], [ 92, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 115, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 114, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 132 ], [ 132, 133 ], [ 132, 134 ], [ 128, 135 ], [ 114, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 38, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 143, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 151, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 159, 163 ], [ 163, 164 ], [ 163, 165 ], [ 8, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 166, 171 ], [ 172, 172 ], [ 172, 173 ], [ 172, 174 ], [ 172, 175 ], [ 6, 176 ], [ 176, 177 ] ]
[ "import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n=Integer.parseInt(br.readLine());\n int t=0,h=0;\n for(int i=0;i<n;i++){\n String[] a=br.readLine().split(\" \");\n int s=0;\n int l0=a[0].length();\n int l1=a[1].length();\n if(l0<l1){\n \ts=l0;\n }else{\n \ts=l1;\n }\n boolean even=false;\n \t\tfor(int j=0;j<s;j++){\n \t\t\tif((int)a[0].charAt(j)>(int)a[1].charAt(j)){\n \t\t\t\tt+=3;\n \t\t\t\teven=false;\n \t\t\t\tbreak;\n \t\t\t}else if((int)a[0].charAt(j)<(int)a[1].charAt(j)){\n \t\t\t\th+=3;\n \t\t\t\teven=false;\n \t\t\t\tbreak;\n \t\t\t}else{\n \t\t\t\teven=true;\n \t\t\t}\n \t\t}\n \t\tif(even){\n if(l0>l1){\n \tt+=3;\n }else if(l0<l1){\n \th+=3;\n }else{\n \t\t\tt+=1;\n \t\t\th+=1;\n }\n \t\t}\n }\n\t\tSystem.out.println(t+\" \"+h);\n\t}\n}", "import java.io.*;", "io.*", "java", "class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n=Integer.parseInt(br.readLine());\n int t=0,h=0;\n for(int i=0;i<n;i++){\n String[] a=br.readLine().split(\" \");\n int s=0;\n int l0=a[0].length();\n int l1=a[1].length();\n if(l0<l1){\n \ts=l0;\n }else{\n \ts=l1;\n }\n boolean even=false;\n \t\tfor(int j=0;j<s;j++){\n \t\t\tif((int)a[0].charAt(j)>(int)a[1].charAt(j)){\n \t\t\t\tt+=3;\n \t\t\t\teven=false;\n \t\t\t\tbreak;\n \t\t\t}else if((int)a[0].charAt(j)<(int)a[1].charAt(j)){\n \t\t\t\th+=3;\n \t\t\t\teven=false;\n \t\t\t\tbreak;\n \t\t\t}else{\n \t\t\t\teven=true;\n \t\t\t}\n \t\t}\n \t\tif(even){\n if(l0>l1){\n \tt+=3;\n }else if(l0<l1){\n \th+=3;\n }else{\n \t\t\tt+=1;\n \t\t\th+=1;\n }\n \t\t}\n }\n\t\tSystem.out.println(t+\" \"+h);\n\t}\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n=Integer.parseInt(br.readLine());\n int t=0,h=0;\n for(int i=0;i<n;i++){\n String[] a=br.readLine().split(\" \");\n int s=0;\n int l0=a[0].length();\n int l1=a[1].length();\n if(l0<l1){\n \ts=l0;\n }else{\n \ts=l1;\n }\n boolean even=false;\n \t\tfor(int j=0;j<s;j++){\n \t\t\tif((int)a[0].charAt(j)>(int)a[1].charAt(j)){\n \t\t\t\tt+=3;\n \t\t\t\teven=false;\n \t\t\t\tbreak;\n \t\t\t}else if((int)a[0].charAt(j)<(int)a[1].charAt(j)){\n \t\t\t\th+=3;\n \t\t\t\teven=false;\n \t\t\t\tbreak;\n \t\t\t}else{\n \t\t\t\teven=true;\n \t\t\t}\n \t\t}\n \t\tif(even){\n if(l0>l1){\n \tt+=3;\n }else if(l0<l1){\n \th+=3;\n }else{\n \t\t\tt+=1;\n \t\t\th+=1;\n }\n \t\t}\n }\n\t\tSystem.out.println(t+\" \"+h);\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n=Integer.parseInt(br.readLine());\n int t=0,h=0;\n for(int i=0;i<n;i++){\n String[] a=br.readLine().split(\" \");\n int s=0;\n int l0=a[0].length();\n int l1=a[1].length();\n if(l0<l1){\n \ts=l0;\n }else{\n \ts=l1;\n }\n boolean even=false;\n \t\tfor(int j=0;j<s;j++){\n \t\t\tif((int)a[0].charAt(j)>(int)a[1].charAt(j)){\n \t\t\t\tt+=3;\n \t\t\t\teven=false;\n \t\t\t\tbreak;\n \t\t\t}else if((int)a[0].charAt(j)<(int)a[1].charAt(j)){\n \t\t\t\th+=3;\n \t\t\t\teven=false;\n \t\t\t\tbreak;\n \t\t\t}else{\n \t\t\t\teven=true;\n \t\t\t}\n \t\t}\n \t\tif(even){\n if(l0>l1){\n \tt+=3;\n }else if(l0<l1){\n \th+=3;\n }else{\n \t\t\tt+=1;\n \t\t\th+=1;\n }\n \t\t}\n }\n\t\tSystem.out.println(t+\" \"+h);\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 t=0", "t", "0", "h=0;", "h", "0", "for(int i=0;i<n;i++){\n String[] a=br.readLine().split(\" \");\n int s=0;\n int l0=a[0].length();\n int l1=a[1].length();\n if(l0<l1){\n \ts=l0;\n }else{\n \ts=l1;\n }\n boolean even=false;\n \t\tfor(int j=0;j<s;j++){\n \t\t\tif((int)a[0].charAt(j)>(int)a[1].charAt(j)){\n \t\t\t\tt+=3;\n \t\t\t\teven=false;\n \t\t\t\tbreak;\n \t\t\t}else if((int)a[0].charAt(j)<(int)a[1].charAt(j)){\n \t\t\t\th+=3;\n \t\t\t\teven=false;\n \t\t\t\tbreak;\n \t\t\t}else{\n \t\t\t\teven=true;\n \t\t\t}\n \t\t}\n \t\tif(even){\n if(l0>l1){\n \tt+=3;\n }else if(l0<l1){\n \th+=3;\n }else{\n \t\t\tt+=1;\n \t\t\th+=1;\n }\n \t\t}\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n String[] a=br.readLine().split(\" \");\n int s=0;\n int l0=a[0].length();\n int l1=a[1].length();\n if(l0<l1){\n \ts=l0;\n }else{\n \ts=l1;\n }\n boolean even=false;\n \t\tfor(int j=0;j<s;j++){\n \t\t\tif((int)a[0].charAt(j)>(int)a[1].charAt(j)){\n \t\t\t\tt+=3;\n \t\t\t\teven=false;\n \t\t\t\tbreak;\n \t\t\t}else if((int)a[0].charAt(j)<(int)a[1].charAt(j)){\n \t\t\t\th+=3;\n \t\t\t\teven=false;\n \t\t\t\tbreak;\n \t\t\t}else{\n \t\t\t\teven=true;\n \t\t\t}\n \t\t}\n \t\tif(even){\n if(l0>l1){\n \tt+=3;\n }else if(l0<l1){\n \th+=3;\n }else{\n \t\t\tt+=1;\n \t\t\th+=1;\n }\n \t\t}\n }", "{\n String[] a=br.readLine().split(\" \");\n int s=0;\n int l0=a[0].length();\n int l1=a[1].length();\n if(l0<l1){\n \ts=l0;\n }else{\n \ts=l1;\n }\n boolean even=false;\n \t\tfor(int j=0;j<s;j++){\n \t\t\tif((int)a[0].charAt(j)>(int)a[1].charAt(j)){\n \t\t\t\tt+=3;\n \t\t\t\teven=false;\n \t\t\t\tbreak;\n \t\t\t}else if((int)a[0].charAt(j)<(int)a[1].charAt(j)){\n \t\t\t\th+=3;\n \t\t\t\teven=false;\n \t\t\t\tbreak;\n \t\t\t}else{\n \t\t\t\teven=true;\n \t\t\t}\n \t\t}\n \t\tif(even){\n if(l0>l1){\n \tt+=3;\n }else if(l0<l1){\n \th+=3;\n }else{\n \t\t\tt+=1;\n \t\t\th+=1;\n }\n \t\t}\n }", "String[] a=br.readLine().split(\" \");", "a", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int s=0;", "s", "0", "int l0=a[0].length();", "l0", "a[0].length()", "a[0].length", "a[0]", "a", "0", "int l1=a[1].length();", "l1", "a[1].length()", "a[1].length", "a[1]", "a", "1", "if(l0<l1){\n \ts=l0;\n }else{\n \ts=l1;\n }", "l0<l1", "l0", "l1", "{\n \ts=l0;\n }", "s=l0", "s", "l0", "{\n \ts=l1;\n }", "s=l1", "s", "l1", "boolean even=false;", "even", "false", "for(int j=0;j<s;j++){\n \t\t\tif((int)a[0].charAt(j)>(int)a[1].charAt(j)){\n \t\t\t\tt+=3;\n \t\t\t\teven=false;\n \t\t\t\tbreak;\n \t\t\t}else if((int)a[0].charAt(j)<(int)a[1].charAt(j)){\n \t\t\t\th+=3;\n \t\t\t\teven=false;\n \t\t\t\tbreak;\n \t\t\t}else{\n \t\t\t\teven=true;\n \t\t\t}\n \t\t}", "int j=0;", "int j=0;", "j", "0", "j<s", "j", "s", "j++", "j++", "j", "{\n \t\t\tif((int)a[0].charAt(j)>(int)a[1].charAt(j)){\n \t\t\t\tt+=3;\n \t\t\t\teven=false;\n \t\t\t\tbreak;\n \t\t\t}else if((int)a[0].charAt(j)<(int)a[1].charAt(j)){\n \t\t\t\th+=3;\n \t\t\t\teven=false;\n \t\t\t\tbreak;\n \t\t\t}else{\n \t\t\t\teven=true;\n \t\t\t}\n \t\t}", "{\n \t\t\tif((int)a[0].charAt(j)>(int)a[1].charAt(j)){\n \t\t\t\tt+=3;\n \t\t\t\teven=false;\n \t\t\t\tbreak;\n \t\t\t}else if((int)a[0].charAt(j)<(int)a[1].charAt(j)){\n \t\t\t\th+=3;\n \t\t\t\teven=false;\n \t\t\t\tbreak;\n \t\t\t}else{\n \t\t\t\teven=true;\n \t\t\t}\n \t\t}", "if((int)a[0].charAt(j)>(int)a[1].charAt(j)){\n \t\t\t\tt+=3;\n \t\t\t\teven=false;\n \t\t\t\tbreak;\n \t\t\t}else if((int)a[0].charAt(j)<(int)a[1].charAt(j)){\n \t\t\t\th+=3;\n \t\t\t\teven=false;\n \t\t\t\tbreak;\n \t\t\t}else{\n \t\t\t\teven=true;\n \t\t\t}", "(int)a[0].charAt(j)>(int)a[1].charAt(j)", "(int)a[0].charAt(j)", "a[0].charAt", "a[0]", "a", "0", "j", "(int)a[1].charAt(j)", "a[1].charAt", "a[1]", "a", "1", "j", "{\n \t\t\t\tt+=3;\n \t\t\t\teven=false;\n \t\t\t\tbreak;\n \t\t\t}", "t+=3", "t", "3", "even=false", "even", "false", "break;", "if((int)a[0].charAt(j)<(int)a[1].charAt(j)){\n \t\t\t\th+=3;\n \t\t\t\teven=false;\n \t\t\t\tbreak;\n \t\t\t}else{\n \t\t\t\teven=true;\n \t\t\t}", "(int)a[0].charAt(j)<(int)a[1].charAt(j)", "(int)a[0].charAt(j)", "a[0].charAt", "a[0]", "a", "0", "j", "(int)a[1].charAt(j)", "a[1].charAt", "a[1]", "a", "1", "j", "{\n \t\t\t\th+=3;\n \t\t\t\teven=false;\n \t\t\t\tbreak;\n \t\t\t}", "h+=3", "h", "3", "even=false", "even", "false", "break;", "{\n \t\t\t\teven=true;\n \t\t\t}", "even=true", "even", "true", "if(even){\n if(l0>l1){\n \tt+=3;\n }else if(l0<l1){\n \th+=3;\n }else{\n \t\t\tt+=1;\n \t\t\th+=1;\n }\n \t\t}", "even", "{\n if(l0>l1){\n \tt+=3;\n }else if(l0<l1){\n \th+=3;\n }else{\n \t\t\tt+=1;\n \t\t\th+=1;\n }\n \t\t}", "if(l0>l1){\n \tt+=3;\n }else if(l0<l1){\n \th+=3;\n }else{\n \t\t\tt+=1;\n \t\t\th+=1;\n }", "l0>l1", "l0", "l1", "{\n \tt+=3;\n }", "t+=3", "t", "3", "if(l0<l1){\n \th+=3;\n }else{\n \t\t\tt+=1;\n \t\t\th+=1;\n }", "l0<l1", "l0", "l1", "{\n \th+=3;\n }", "h+=3", "h", "3", "{\n \t\t\tt+=1;\n \t\t\th+=1;\n }", "t+=1", "t", "1", "h+=1", "h", "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.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 t=0,h=0; for(int i=0;i<n;i++){ String[] a=br.readLine().split(" "); int s=0; int l0=a[0].length(); int l1=a[1].length(); if(l0<l1){ s=l0; }else{ s=l1; } boolean even=false; for(int j=0;j<s;j++){ if((int)a[0].charAt(j)>(int)a[1].charAt(j)){ t+=3; even=false; break; }else if((int)a[0].charAt(j)<(int)a[1].charAt(j)){ h+=3; even=false; break; }else{ even=true; } } if(even){ if(l0>l1){ t+=3; }else if(l0<l1){ h+=3; }else{ t+=1; h+=1; } } } System.out.println(t+" "+h); } }
[ 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, 17, 38, 5, 13, 30, 4, 18, 13, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 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, 2, 13, 17, 14, 2, 13, 17, 30, 40, 13, 40, 13, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 121, 11 ], [ 121, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 14, 24 ], [ 24, 25 ], [ 24, 26 ], [ 14, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 27, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 27, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 40, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 40, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 52, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 67, 72 ], [ 64, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 80, 81 ], [ 80, 82 ], [ 64, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 83, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 100, 101 ], [ 93, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 40, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 114, 114 ], [ 114, 115 ], [ 114, 116 ], [ 114, 117 ], [ 12, 118 ], [ 118, 119 ], [ 0, 120 ], [ 120, 121 ], [ 120, 122 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint t = 0;\n\t\tint h = 0;\n\t\tString x = \"\";\n\t\ttry {\n\t\t\tx = in.readLine();\n\t\t\tint n = Integer.parseInt(x);\n\t\t\t\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tString[] words = in.readLine().split(\" \");\n\t\t\t\t\n\t\t\t\tint judge = words[0].compareTo(words[1]);\n\t\t\t\tif (judge < 0) {\n\t\t\t\t\th = h + 3;\n\t\t\t\t} else if (judge == 0) {\n\t\t\t\t\tt++;\n\t\t\t\t\th++;\n\t\t\t\t} else {\n\t\t\t\t\tt = t + 3;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(t + \" \" + h);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\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\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint t = 0;\n\t\tint h = 0;\n\t\tString x = \"\";\n\t\ttry {\n\t\t\tx = in.readLine();\n\t\t\tint n = Integer.parseInt(x);\n\t\t\t\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tString[] words = in.readLine().split(\" \");\n\t\t\t\t\n\t\t\t\tint judge = words[0].compareTo(words[1]);\n\t\t\t\tif (judge < 0) {\n\t\t\t\t\th = h + 3;\n\t\t\t\t} else if (judge == 0) {\n\t\t\t\t\tt++;\n\t\t\t\t\th++;\n\t\t\t\t} else {\n\t\t\t\t\tt = t + 3;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(t + \" \" + h);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint t = 0;\n\t\tint h = 0;\n\t\tString x = \"\";\n\t\ttry {\n\t\t\tx = in.readLine();\n\t\t\tint n = Integer.parseInt(x);\n\t\t\t\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tString[] words = in.readLine().split(\" \");\n\t\t\t\t\n\t\t\t\tint judge = words[0].compareTo(words[1]);\n\t\t\t\tif (judge < 0) {\n\t\t\t\t\th = h + 3;\n\t\t\t\t} else if (judge == 0) {\n\t\t\t\t\tt++;\n\t\t\t\t\th++;\n\t\t\t\t} else {\n\t\t\t\t\tt = t + 3;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(t + \" \" + h);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint t = 0;\n\t\tint h = 0;\n\t\tString x = \"\";\n\t\ttry {\n\t\t\tx = in.readLine();\n\t\t\tint n = Integer.parseInt(x);\n\t\t\t\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tString[] words = in.readLine().split(\" \");\n\t\t\t\t\n\t\t\t\tint judge = words[0].compareTo(words[1]);\n\t\t\t\tif (judge < 0) {\n\t\t\t\t\th = h + 3;\n\t\t\t\t} else if (judge == 0) {\n\t\t\t\t\tt++;\n\t\t\t\t\th++;\n\t\t\t\t} else {\n\t\t\t\t\tt = t + 3;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(t + \" \" + h);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "BufferedReader in = new BufferedReader(new InputStreamReader(System.in));", "in", "new BufferedReader(new InputStreamReader(System.in))", "int t = 0;", "t", "0", "int h = 0;", "h", "0", "String x = \"\";", "x", "\"\"", "try {\n\t\t\tx = in.readLine();\n\t\t\tint n = Integer.parseInt(x);\n\t\t\t\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tString[] words = in.readLine().split(\" \");\n\t\t\t\t\n\t\t\t\tint judge = words[0].compareTo(words[1]);\n\t\t\t\tif (judge < 0) {\n\t\t\t\t\th = h + 3;\n\t\t\t\t} else if (judge == 0) {\n\t\t\t\t\tt++;\n\t\t\t\t\th++;\n\t\t\t\t} else {\n\t\t\t\t\tt = t + 3;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(t + \" \" + h);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "NumberFormatException e", "{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "IOException e", "{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\tx = in.readLine();\n\t\t\tint n = Integer.parseInt(x);\n\t\t\t\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tString[] words = in.readLine().split(\" \");\n\t\t\t\t\n\t\t\t\tint judge = words[0].compareTo(words[1]);\n\t\t\t\tif (judge < 0) {\n\t\t\t\t\th = h + 3;\n\t\t\t\t} else if (judge == 0) {\n\t\t\t\t\tt++;\n\t\t\t\t\th++;\n\t\t\t\t} else {\n\t\t\t\t\tt = t + 3;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(t + \" \" + h);\n\t\t}", "x = in.readLine()", "x", "in.readLine()", "in.readLine", "in", "int n = Integer.parseInt(x);", "n", "Integer.parseInt(x)", "Integer.parseInt", "Integer", "x", "for (int i = 0; i < n; i++) {\n\t\t\t\tString[] words = in.readLine().split(\" \");\n\t\t\t\t\n\t\t\t\tint judge = words[0].compareTo(words[1]);\n\t\t\t\tif (judge < 0) {\n\t\t\t\t\th = h + 3;\n\t\t\t\t} else if (judge == 0) {\n\t\t\t\t\tt++;\n\t\t\t\t\th++;\n\t\t\t\t} else {\n\t\t\t\t\tt = t + 3;\n\t\t\t\t}\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tString[] words = in.readLine().split(\" \");\n\t\t\t\t\n\t\t\t\tint judge = words[0].compareTo(words[1]);\n\t\t\t\tif (judge < 0) {\n\t\t\t\t\th = h + 3;\n\t\t\t\t} else if (judge == 0) {\n\t\t\t\t\tt++;\n\t\t\t\t\th++;\n\t\t\t\t} else {\n\t\t\t\t\tt = t + 3;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tString[] words = in.readLine().split(\" \");\n\t\t\t\t\n\t\t\t\tint judge = words[0].compareTo(words[1]);\n\t\t\t\tif (judge < 0) {\n\t\t\t\t\th = h + 3;\n\t\t\t\t} else if (judge == 0) {\n\t\t\t\t\tt++;\n\t\t\t\t\th++;\n\t\t\t\t} else {\n\t\t\t\t\tt = t + 3;\n\t\t\t\t}\n\t\t\t}", "String[] words = in.readLine().split(\" \");", "words", "in.readLine().split(\" \")", "in.readLine().split", "in.readLine()", "in.readLine", "in", "\" \"", "int judge = words[0].compareTo(words[1]);", "judge", "words[0].compareTo(words[1])", "words[0].compareTo", "words[0]", "words", "0", "words[1]", "words", "1", "if (judge < 0) {\n\t\t\t\t\th = h + 3;\n\t\t\t\t} else if (judge == 0) {\n\t\t\t\t\tt++;\n\t\t\t\t\th++;\n\t\t\t\t} else {\n\t\t\t\t\tt = t + 3;\n\t\t\t\t}", "judge < 0", "judge", "0", "{\n\t\t\t\t\th = h + 3;\n\t\t\t\t}", "h = h + 3", "h", "h + 3", "h", "3", "if (judge == 0) {\n\t\t\t\t\tt++;\n\t\t\t\t\th++;\n\t\t\t\t} else {\n\t\t\t\t\tt = t + 3;\n\t\t\t\t}", "judge == 0", "judge", "0", "{\n\t\t\t\t\tt++;\n\t\t\t\t\th++;\n\t\t\t\t}", "t++", "t", "h++", "h", "{\n\t\t\t\t\tt = t + 3;\n\t\t\t\t}", "t = t + 3", "t", "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\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint t = 0;\n\t\tint h = 0;\n\t\tString x = \"\";\n\t\ttry {\n\t\t\tx = in.readLine();\n\t\t\tint n = Integer.parseInt(x);\n\t\t\t\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tString[] words = in.readLine().split(\" \");\n\t\t\t\t\n\t\t\t\tint judge = words[0].compareTo(words[1]);\n\t\t\t\tif (judge < 0) {\n\t\t\t\t\th = h + 3;\n\t\t\t\t} else if (judge == 0) {\n\t\t\t\t\tt++;\n\t\t\t\t\th++;\n\t\t\t\t} else {\n\t\t\t\t\tt = t + 3;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(t + \" \" + h);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint t = 0;\n\t\tint h = 0;\n\t\tString x = \"\";\n\t\ttry {\n\t\t\tx = in.readLine();\n\t\t\tint n = Integer.parseInt(x);\n\t\t\t\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tString[] words = in.readLine().split(\" \");\n\t\t\t\t\n\t\t\t\tint judge = words[0].compareTo(words[1]);\n\t\t\t\tif (judge < 0) {\n\t\t\t\t\th = h + 3;\n\t\t\t\t} else if (judge == 0) {\n\t\t\t\t\tt++;\n\t\t\t\t\th++;\n\t\t\t\t} else {\n\t\t\t\t\tt = t + 3;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(t + \" \" + h);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\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) { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int t = 0; int h = 0; String x = ""; try { x = in.readLine(); int n = Integer.parseInt(x); for (int i = 0; i < n; i++) { String[] words = in.readLine().split(" "); int judge = words[0].compareTo(words[1]); if (judge < 0) { h = h + 3; } else if (judge == 0) { t++; h++; } else { t = t + 3; } } System.out.println(t + " " + h); } catch (NumberFormatException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 20, 17, 38, 5, 13, 30, 4, 18, 13, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 14, 2, 4, 18, 18, 13, 17, 18, 13, 17, 17, 30, 0, 18, 13, 17, 2, 18, 13, 17, 17, 14, 2, 4, 18, 18, 13, 17, 18, 13, 17, 17, 30, 0, 18, 13, 17, 2, 18, 13, 17, 17, 30, 0, 18, 13, 17, 2, 18, 13, 17, 17, 0, 18, 13, 17, 2, 18, 13, 17, 17, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 146, 11 ], [ 146, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 14, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 25, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 25, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 44, 45 ], [ 45, 46 ], [ 38, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 52, 53 ], [ 52, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 47, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 62, 67 ], [ 59, 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 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 68, 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 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 89, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 110, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 38, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 129, 134 ], [ 135, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 135, 139 ], [ 135, 140 ], [ 140, 141 ], [ 140, 142 ], [ 12, 143 ], [ 143, 144 ], [ 0, 145 ], [ 145, 146 ], [ 145, 147 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = 0;\n\t\tint[] score = new int[2];\n\t\t\n\t\ttry {\n\t\t\tn = Integer.parseInt(br.readLine());\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tString[] cardStr = br.readLine().split(\"\\\\s\");\n\t\t\t\tif (cardStr[0].compareToIgnoreCase(cardStr[1]) > 0) {\n\t\t\t\t\tscore[0] = score[0] +3;\n\t\t\t\t} else if (cardStr[0].compareToIgnoreCase(cardStr[1]) < 0) {\n\t\t\t\t\tscore[1] = score[1] +3;\n\t\t\t\t} else {\n\t\t\t\t\tscore[0] = score[0] +1;\n\t\t\t\t\tscore[1] = score[1] +1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(score[0] + \" \" + score[1]);\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}\n\n}\n", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = 0;\n\t\tint[] score = new int[2];\n\t\t\n\t\ttry {\n\t\t\tn = Integer.parseInt(br.readLine());\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tString[] cardStr = br.readLine().split(\"\\\\s\");\n\t\t\t\tif (cardStr[0].compareToIgnoreCase(cardStr[1]) > 0) {\n\t\t\t\t\tscore[0] = score[0] +3;\n\t\t\t\t} else if (cardStr[0].compareToIgnoreCase(cardStr[1]) < 0) {\n\t\t\t\t\tscore[1] = score[1] +3;\n\t\t\t\t} else {\n\t\t\t\t\tscore[0] = score[0] +1;\n\t\t\t\t\tscore[1] = score[1] +1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(score[0] + \" \" + score[1]);\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = 0;\n\t\tint[] score = new int[2];\n\t\t\n\t\ttry {\n\t\t\tn = Integer.parseInt(br.readLine());\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tString[] cardStr = br.readLine().split(\"\\\\s\");\n\t\t\t\tif (cardStr[0].compareToIgnoreCase(cardStr[1]) > 0) {\n\t\t\t\t\tscore[0] = score[0] +3;\n\t\t\t\t} else if (cardStr[0].compareToIgnoreCase(cardStr[1]) < 0) {\n\t\t\t\t\tscore[1] = score[1] +3;\n\t\t\t\t} else {\n\t\t\t\t\tscore[0] = score[0] +1;\n\t\t\t\t\tscore[1] = score[1] +1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(score[0] + \" \" + score[1]);\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "main", "{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = 0;\n\t\tint[] score = new int[2];\n\t\t\n\t\ttry {\n\t\t\tn = Integer.parseInt(br.readLine());\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tString[] cardStr = br.readLine().split(\"\\\\s\");\n\t\t\t\tif (cardStr[0].compareToIgnoreCase(cardStr[1]) > 0) {\n\t\t\t\t\tscore[0] = score[0] +3;\n\t\t\t\t} else if (cardStr[0].compareToIgnoreCase(cardStr[1]) < 0) {\n\t\t\t\t\tscore[1] = score[1] +3;\n\t\t\t\t} else {\n\t\t\t\t\tscore[0] = score[0] +1;\n\t\t\t\t\tscore[1] = score[1] +1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(score[0] + \" \" + score[1]);\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int n = 0;", "n", "0", "int[] score = new int[2];", "score", "new int[2]", "2", "try {\n\t\t\tn = Integer.parseInt(br.readLine());\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tString[] cardStr = br.readLine().split(\"\\\\s\");\n\t\t\t\tif (cardStr[0].compareToIgnoreCase(cardStr[1]) > 0) {\n\t\t\t\t\tscore[0] = score[0] +3;\n\t\t\t\t} else if (cardStr[0].compareToIgnoreCase(cardStr[1]) < 0) {\n\t\t\t\t\tscore[1] = score[1] +3;\n\t\t\t\t} else {\n\t\t\t\t\tscore[0] = score[0] +1;\n\t\t\t\t\tscore[1] = score[1] +1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(score[0] + \" \" + score[1]);\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t}", "catch (NumberFormatException e) {\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t}", "NumberFormatException e", "{\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "catch (IOException e) {\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t}", "IOException e", "{\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\tn = Integer.parseInt(br.readLine());\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tString[] cardStr = br.readLine().split(\"\\\\s\");\n\t\t\t\tif (cardStr[0].compareToIgnoreCase(cardStr[1]) > 0) {\n\t\t\t\t\tscore[0] = score[0] +3;\n\t\t\t\t} else if (cardStr[0].compareToIgnoreCase(cardStr[1]) < 0) {\n\t\t\t\t\tscore[1] = score[1] +3;\n\t\t\t\t} else {\n\t\t\t\t\tscore[0] = score[0] +1;\n\t\t\t\t\tscore[1] = score[1] +1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(score[0] + \" \" + score[1]);\n\t\t\t\n\t\t}", "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\t\tString[] cardStr = br.readLine().split(\"\\\\s\");\n\t\t\t\tif (cardStr[0].compareToIgnoreCase(cardStr[1]) > 0) {\n\t\t\t\t\tscore[0] = score[0] +3;\n\t\t\t\t} else if (cardStr[0].compareToIgnoreCase(cardStr[1]) < 0) {\n\t\t\t\t\tscore[1] = score[1] +3;\n\t\t\t\t} else {\n\t\t\t\t\tscore[0] = score[0] +1;\n\t\t\t\t\tscore[1] = score[1] +1;\n\t\t\t\t}\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tString[] cardStr = br.readLine().split(\"\\\\s\");\n\t\t\t\tif (cardStr[0].compareToIgnoreCase(cardStr[1]) > 0) {\n\t\t\t\t\tscore[0] = score[0] +3;\n\t\t\t\t} else if (cardStr[0].compareToIgnoreCase(cardStr[1]) < 0) {\n\t\t\t\t\tscore[1] = score[1] +3;\n\t\t\t\t} else {\n\t\t\t\t\tscore[0] = score[0] +1;\n\t\t\t\t\tscore[1] = score[1] +1;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tString[] cardStr = br.readLine().split(\"\\\\s\");\n\t\t\t\tif (cardStr[0].compareToIgnoreCase(cardStr[1]) > 0) {\n\t\t\t\t\tscore[0] = score[0] +3;\n\t\t\t\t} else if (cardStr[0].compareToIgnoreCase(cardStr[1]) < 0) {\n\t\t\t\t\tscore[1] = score[1] +3;\n\t\t\t\t} else {\n\t\t\t\t\tscore[0] = score[0] +1;\n\t\t\t\t\tscore[1] = score[1] +1;\n\t\t\t\t}\n\t\t\t}", "String[] cardStr = br.readLine().split(\"\\\\s\");", "cardStr", "br.readLine().split(\"\\\\s\")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\"\\\\s\"", "if (cardStr[0].compareToIgnoreCase(cardStr[1]) > 0) {\n\t\t\t\t\tscore[0] = score[0] +3;\n\t\t\t\t} else if (cardStr[0].compareToIgnoreCase(cardStr[1]) < 0) {\n\t\t\t\t\tscore[1] = score[1] +3;\n\t\t\t\t} else {\n\t\t\t\t\tscore[0] = score[0] +1;\n\t\t\t\t\tscore[1] = score[1] +1;\n\t\t\t\t}", "cardStr[0].compareToIgnoreCase(cardStr[1]) > 0", "cardStr[0].compareToIgnoreCase(cardStr[1])", "cardStr[0].compareToIgnoreCase", "cardStr[0]", "cardStr", "0", "cardStr[1]", "cardStr", "1", "0", "{\n\t\t\t\t\tscore[0] = score[0] +3;\n\t\t\t\t}", "score[0] = score[0] +3", "score[0]", "score", "0", "score[0] +3", "score[0]", "score", "0", "3", "if (cardStr[0].compareToIgnoreCase(cardStr[1]) < 0) {\n\t\t\t\t\tscore[1] = score[1] +3;\n\t\t\t\t} else {\n\t\t\t\t\tscore[0] = score[0] +1;\n\t\t\t\t\tscore[1] = score[1] +1;\n\t\t\t\t}", "cardStr[0].compareToIgnoreCase(cardStr[1]) < 0", "cardStr[0].compareToIgnoreCase(cardStr[1])", "cardStr[0].compareToIgnoreCase", "cardStr[0]", "cardStr", "0", "cardStr[1]", "cardStr", "1", "0", "{\n\t\t\t\t\tscore[1] = score[1] +3;\n\t\t\t\t}", "score[1] = score[1] +3", "score[1]", "score", "1", "score[1] +3", "score[1]", "score", "1", "3", "{\n\t\t\t\t\tscore[0] = score[0] +1;\n\t\t\t\t\tscore[1] = score[1] +1;\n\t\t\t\t}", "score[0] = score[0] +1", "score[0]", "score", "0", "score[0] +1", "score[0]", "score", "0", "1", "score[1] = score[1] +1", "score[1]", "score", "1", "score[1] +1", "score[1]", "score", "1", "1", "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\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = 0;\n\t\tint[] score = new int[2];\n\t\t\n\t\ttry {\n\t\t\tn = Integer.parseInt(br.readLine());\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tString[] cardStr = br.readLine().split(\"\\\\s\");\n\t\t\t\tif (cardStr[0].compareToIgnoreCase(cardStr[1]) > 0) {\n\t\t\t\t\tscore[0] = score[0] +3;\n\t\t\t\t} else if (cardStr[0].compareToIgnoreCase(cardStr[1]) < 0) {\n\t\t\t\t\tscore[1] = score[1] +3;\n\t\t\t\t} else {\n\t\t\t\t\tscore[0] = score[0] +1;\n\t\t\t\t\tscore[1] = score[1] +1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(score[0] + \" \" + score[1]);\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = 0;\n\t\tint[] score = new int[2];\n\t\t\n\t\ttry {\n\t\t\tn = Integer.parseInt(br.readLine());\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tString[] cardStr = br.readLine().split(\"\\\\s\");\n\t\t\t\tif (cardStr[0].compareToIgnoreCase(cardStr[1]) > 0) {\n\t\t\t\t\tscore[0] = score[0] +3;\n\t\t\t\t} else if (cardStr[0].compareToIgnoreCase(cardStr[1]) < 0) {\n\t\t\t\t\tscore[1] = score[1] +3;\n\t\t\t\t} else {\n\t\t\t\t\tscore[0] = score[0] +1;\n\t\t\t\t\tscore[1] = score[1] +1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(score[0] + \" \" + score[1]);\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t}\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) { // TODO 自動生成されたメソッド・スタブ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = 0; int[] score = new int[2]; try { n = Integer.parseInt(br.readLine()); for (int i = 0; i < n; i++) { String[] cardStr = br.readLine().split("\\s"); if (cardStr[0].compareToIgnoreCase(cardStr[1]) > 0) { score[0] = score[0] +3; } else if (cardStr[0].compareToIgnoreCase(cardStr[1]) < 0) { score[1] = score[1] +3; } else { score[0] = score[0] +1; score[1] = score[1] +1; } } System.out.println(score[0] + " " + score[1]); } catch (NumberFormatException e) { // TODO 自動生成された catch ブロック e.printStackTrace(); } catch (IOException e) { // TODO 自動生成された catch ブロック e.printStackTrace(); } } }
[ 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, 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, 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 ], [ 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 ], [ 84, 87 ], [ 87, 88 ], [ 73, 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 ], [ 101, 103 ], [ 28, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 110, 110 ], [ 110, 111 ], [ 110, 112 ], [ 110, 113 ], [ 6, 114 ], [ 114, 115 ] ]
[ "// 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\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++;\n hanako++;\n } else if (cards[0].compareTo(cards[1]) < 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\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++;\n hanako++;\n } else if (cards[0].compareTo(cards[1]) < 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\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++;\n hanako++;\n } else if (cards[0].compareTo(cards[1]) < 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\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++;\n hanako++;\n } else if (cards[0].compareTo(cards[1]) < 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\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++;\n hanako++;\n } else if (cards[0].compareTo(cards[1]) < 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\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++;\n hanako++;\n } else if (cards[0].compareTo(cards[1]) < 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\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++;\n hanako++;\n } else if (cards[0].compareTo(cards[1]) < 0) {\n hanako += 3;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\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++;\n hanako++;\n } else if (cards[0].compareTo(cards[1]) < 0) {\n hanako += 3;\n }\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++;\n hanako++;\n } else if (cards[0].compareTo(cards[1]) < 0) {\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++;\n hanako++;\n } else if (cards[0].compareTo(cards[1]) < 0) {\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++;\n hanako++;\n } else if (cards[0].compareTo(cards[1]) < 0) {\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++;\n hanako++;\n }", "taro++", "taro", "hanako++", "hanako", "if (cards[0].compareTo(cards[1]) < 0) {\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 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(" "); if (cards[0].compareTo(cards[1]) > 0) { taro += 3; } else if (cards[0].compareTo(cards[1]) == 0) { taro++; hanako++; } else if (cards[0].compareTo(cards[1]) < 0) { hanako += 3; } } System.out.println(taro + " " + hanako); } catch (Exception e) { System.err.println(e); } } }
[ 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, 2, 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 ], [ 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 ], [ 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 ], [ 68, 69 ], [ 68, 70 ], [ 58, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 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 scan = new Scanner(System.in);\n int n = scan.nextInt();\n int t = 0;\n int h = 0;\n for(int x = 0; x < n; x++){\n String tc = scan.next();\n String hc = scan.next();\n if(tc.compareToIgnoreCase(hc) == 0){\n t++;\n h++;\n }\n else if(tc.compareToIgnoreCase(hc) > 0){\n t = t + 3;\n }\n else{\n h = h + 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 scan = new Scanner(System.in);\n int n = scan.nextInt();\n int t = 0;\n int h = 0;\n for(int x = 0; x < n; x++){\n String tc = scan.next();\n String hc = scan.next();\n if(tc.compareToIgnoreCase(hc) == 0){\n t++;\n h++;\n }\n else if(tc.compareToIgnoreCase(hc) > 0){\n t = t + 3;\n }\n else{\n h = h + 3;\n }\n }\n System.out.println(t + \" \" + h);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int t = 0;\n int h = 0;\n for(int x = 0; x < n; x++){\n String tc = scan.next();\n String hc = scan.next();\n if(tc.compareToIgnoreCase(hc) == 0){\n t++;\n h++;\n }\n else if(tc.compareToIgnoreCase(hc) > 0){\n t = t + 3;\n }\n else{\n h = h + 3;\n }\n }\n System.out.println(t + \" \" + h);\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int t = 0;\n int h = 0;\n for(int x = 0; x < n; x++){\n String tc = scan.next();\n String hc = scan.next();\n if(tc.compareToIgnoreCase(hc) == 0){\n t++;\n h++;\n }\n else if(tc.compareToIgnoreCase(hc) > 0){\n t = t + 3;\n }\n else{\n h = h + 3;\n }\n }\n System.out.println(t + \" \" + h);\n }", "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 x = 0; x < n; x++){\n String tc = scan.next();\n String hc = scan.next();\n if(tc.compareToIgnoreCase(hc) == 0){\n t++;\n h++;\n }\n else if(tc.compareToIgnoreCase(hc) > 0){\n t = t + 3;\n }\n else{\n h = h + 3;\n }\n }", "int x = 0;", "int x = 0;", "x", "0", "x < n", "x", "n", "x++", "x++", "x", "{\n String tc = scan.next();\n String hc = scan.next();\n if(tc.compareToIgnoreCase(hc) == 0){\n t++;\n h++;\n }\n else if(tc.compareToIgnoreCase(hc) > 0){\n t = t + 3;\n }\n else{\n h = h + 3;\n }\n }", "{\n String tc = scan.next();\n String hc = scan.next();\n if(tc.compareToIgnoreCase(hc) == 0){\n t++;\n h++;\n }\n else if(tc.compareToIgnoreCase(hc) > 0){\n t = t + 3;\n }\n else{\n h = h + 3;\n }\n }", "String tc = scan.next();", "tc", "scan.next()", "scan.next", "scan", "String hc = scan.next();", "hc", "scan.next()", "scan.next", "scan", "if(tc.compareToIgnoreCase(hc) == 0){\n t++;\n h++;\n }\n else if(tc.compareToIgnoreCase(hc) > 0){\n t = t + 3;\n }\n else{\n h = h + 3;\n }", "tc.compareToIgnoreCase(hc) == 0", "tc.compareToIgnoreCase(hc)", "tc.compareToIgnoreCase", "tc", "hc", "0", "{\n t++;\n h++;\n }", "t++", "t", "h++", "h", "if(tc.compareToIgnoreCase(hc) > 0){\n t = t + 3;\n }\n else{\n h = h + 3;\n }", "tc.compareToIgnoreCase(hc) > 0", "tc.compareToIgnoreCase(hc)", "tc.compareToIgnoreCase", "tc", "hc", "0", "{\n t = t + 3;\n }", "t = t + 3", "t", "t + 3", "t", "3", "{\n h = h + 3;\n }", "h = h + 3", "h", "h + 3", "h", "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 scan = new Scanner(System.in);\n int n = scan.nextInt();\n int t = 0;\n int h = 0;\n for(int x = 0; x < n; x++){\n String tc = scan.next();\n String hc = scan.next();\n if(tc.compareToIgnoreCase(hc) == 0){\n t++;\n h++;\n }\n else if(tc.compareToIgnoreCase(hc) > 0){\n t = t + 3;\n }\n else{\n h = h + 3;\n }\n }\n System.out.println(t + \" \" + h);\n }\n}", "public class Main{\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int t = 0;\n int h = 0;\n for(int x = 0; x < n; x++){\n String tc = scan.next();\n String hc = scan.next();\n if(tc.compareToIgnoreCase(hc) == 0){\n t++;\n h++;\n }\n else if(tc.compareToIgnoreCase(hc) > 0){\n t = t + 3;\n }\n else{\n h = h + 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 scan = new Scanner(System.in); int n = scan.nextInt(); int t = 0; int h = 0; for(int x = 0; x < n; x++){ String tc = scan.next(); String hc = scan.next(); if(tc.compareToIgnoreCase(hc) == 0){ t++; h++; } else if(tc.compareToIgnoreCase(hc) > 0){ t = t + 3; } else{ h = h + 3; } } System.out.println(t + " " + h); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 4, 18, 13, 4, 18, 13, 30, 0, 13, 4, 18, 13, 14, 2, 4, 18, 13, 4, 18, 13, 30, 0, 13, 4, 18, 13, 30, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 13, 13, 30, 0, 13, 17, 0, 13, 17, 3, 14, 2, 2, 2, 2, 2, 13, 17, 13, 2, 4, 18, 13, 13, 4, 18, 13, 13, 2, 4, 18, 13, 4, 18, 13, 2, 4, 18, 13, 13, 4, 18, 13, 13, 30, 0, 13, 17, 3, 14, 2, 2, 2, 2, 2, 13, 17, 13, 2, 4, 18, 13, 13, 4, 18, 13, 13, 2, 4, 18, 13, 4, 18, 13, 2, 4, 18, 13, 13, 4, 18, 13, 13, 30, 0, 13, 17, 3, 30, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 201, 5 ], [ 201, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 38, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 38, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 49, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 49, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 64, 68 ], [ 68, 69 ], [ 69, 70 ], [ 63, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 63, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 38, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 88, 89 ], [ 88, 90 ], [ 83, 91 ], [ 91, 92 ], [ 92, 93 ], [ 83, 94 ], [ 95, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 96, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 105, 106 ], [ 105, 107 ], [ 101, 108 ], [ 96, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 112, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 119, 122 ], [ 118, 123 ], [ 123, 124 ], [ 124, 125 ], [ 123, 126 ], [ 111, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 127, 131 ], [ 131, 132 ], [ 132, 133 ], [ 110, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 135, 138 ], [ 134, 139 ], [ 139, 140 ], [ 140, 141 ], [ 139, 142 ], [ 109, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 109, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 152, 156 ], [ 151, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 158, 161 ], [ 157, 162 ], [ 162, 163 ], [ 163, 164 ], [ 162, 165 ], [ 150, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 166, 170 ], [ 170, 171 ], [ 171, 172 ], [ 149, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 174, 177 ], [ 173, 178 ], [ 178, 179 ], [ 179, 180 ], [ 178, 181 ], [ 148, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 182, 186 ], [ 148, 187 ], [ 8, 188 ], [ 188, 189 ], [ 189, 190 ], [ 190, 191 ], [ 190, 192 ], [ 188, 193 ], [ 194, 194 ], [ 194, 195 ], [ 194, 196 ], [ 194, 197 ], [ 6, 198 ], [ 198, 199 ], [ 0, 200 ], [ 200, 201 ], [ 200, 202 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int taro_p = 0;\n int hanako_p = 0;\n int s = 0;\n for (int i = 0; i < n; i++) {\n String taro = sc.next();\n String hanako = sc.next();\n if (taro.length() == hanako.length()) { \n s = taro.length();\n } else if (taro.length() < hanako.length()) {\n s = taro.length();\n } else {\n s = hanako.length();\n }\n for (int j = 0; j < s; j++) {\n if (taro.equals(hanako)) {\n taro_p += 1;\n hanako_p += 1;\n break;\n } else if ((s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() > hanako.length()) || taro.charAt(j) > hanako.charAt(j)) {\n taro_p += 3;\n break;\n } else if ((s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() < hanako.length()) || taro.charAt(j) < hanako.charAt(j)) {\n hanako_p += 3;\n break;\n } else {\n \n }\n } \n }\n System.out.println(taro_p + \" \" + hanako_p);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int taro_p = 0;\n int hanako_p = 0;\n int s = 0;\n for (int i = 0; i < n; i++) {\n String taro = sc.next();\n String hanako = sc.next();\n if (taro.length() == hanako.length()) { \n s = taro.length();\n } else if (taro.length() < hanako.length()) {\n s = taro.length();\n } else {\n s = hanako.length();\n }\n for (int j = 0; j < s; j++) {\n if (taro.equals(hanako)) {\n taro_p += 1;\n hanako_p += 1;\n break;\n } else if ((s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() > hanako.length()) || taro.charAt(j) > hanako.charAt(j)) {\n taro_p += 3;\n break;\n } else if ((s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() < hanako.length()) || taro.charAt(j) < hanako.charAt(j)) {\n hanako_p += 3;\n break;\n } else {\n \n }\n } \n }\n System.out.println(taro_p + \" \" + hanako_p);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int taro_p = 0;\n int hanako_p = 0;\n int s = 0;\n for (int i = 0; i < n; i++) {\n String taro = sc.next();\n String hanako = sc.next();\n if (taro.length() == hanako.length()) { \n s = taro.length();\n } else if (taro.length() < hanako.length()) {\n s = taro.length();\n } else {\n s = hanako.length();\n }\n for (int j = 0; j < s; j++) {\n if (taro.equals(hanako)) {\n taro_p += 1;\n hanako_p += 1;\n break;\n } else if ((s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() > hanako.length()) || taro.charAt(j) > hanako.charAt(j)) {\n taro_p += 3;\n break;\n } else if ((s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() < hanako.length()) || taro.charAt(j) < hanako.charAt(j)) {\n hanako_p += 3;\n break;\n } else {\n \n }\n } \n }\n System.out.println(taro_p + \" \" + hanako_p);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int taro_p = 0;\n int hanako_p = 0;\n int s = 0;\n for (int i = 0; i < n; i++) {\n String taro = sc.next();\n String hanako = sc.next();\n if (taro.length() == hanako.length()) { \n s = taro.length();\n } else if (taro.length() < hanako.length()) {\n s = taro.length();\n } else {\n s = hanako.length();\n }\n for (int j = 0; j < s; j++) {\n if (taro.equals(hanako)) {\n taro_p += 1;\n hanako_p += 1;\n break;\n } else if ((s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() > hanako.length()) || taro.charAt(j) > hanako.charAt(j)) {\n taro_p += 3;\n break;\n } else if ((s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() < hanako.length()) || taro.charAt(j) < hanako.charAt(j)) {\n hanako_p += 3;\n break;\n } else {\n \n }\n } \n }\n System.out.println(taro_p + \" \" + hanako_p);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int taro_p = 0;", "taro_p", "0", "int hanako_p = 0;", "hanako_p", "0", "int s = 0;", "s", "0", "for (int i = 0; i < n; i++) {\n String taro = sc.next();\n String hanako = sc.next();\n if (taro.length() == hanako.length()) { \n s = taro.length();\n } else if (taro.length() < hanako.length()) {\n s = taro.length();\n } else {\n s = hanako.length();\n }\n for (int j = 0; j < s; j++) {\n if (taro.equals(hanako)) {\n taro_p += 1;\n hanako_p += 1;\n break;\n } else if ((s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() > hanako.length()) || taro.charAt(j) > hanako.charAt(j)) {\n taro_p += 3;\n break;\n } else if ((s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() < hanako.length()) || taro.charAt(j) < hanako.charAt(j)) {\n hanako_p += 3;\n break;\n } else {\n \n }\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 if (taro.length() == hanako.length()) { \n s = taro.length();\n } else if (taro.length() < hanako.length()) {\n s = taro.length();\n } else {\n s = hanako.length();\n }\n for (int j = 0; j < s; j++) {\n if (taro.equals(hanako)) {\n taro_p += 1;\n hanako_p += 1;\n break;\n } else if ((s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() > hanako.length()) || taro.charAt(j) > hanako.charAt(j)) {\n taro_p += 3;\n break;\n } else if ((s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() < hanako.length()) || taro.charAt(j) < hanako.charAt(j)) {\n hanako_p += 3;\n break;\n } else {\n \n }\n } \n }", "{\n String taro = sc.next();\n String hanako = sc.next();\n if (taro.length() == hanako.length()) { \n s = taro.length();\n } else if (taro.length() < hanako.length()) {\n s = taro.length();\n } else {\n s = hanako.length();\n }\n for (int j = 0; j < s; j++) {\n if (taro.equals(hanako)) {\n taro_p += 1;\n hanako_p += 1;\n break;\n } else if ((s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() > hanako.length()) || taro.charAt(j) > hanako.charAt(j)) {\n taro_p += 3;\n break;\n } else if ((s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() < hanako.length()) || taro.charAt(j) < hanako.charAt(j)) {\n hanako_p += 3;\n break;\n } else {\n \n }\n } \n }", "String taro = sc.next();", "taro", "sc.next()", "sc.next", "sc", "String hanako = sc.next();", "hanako", "sc.next()", "sc.next", "sc", "if (taro.length() == hanako.length()) { \n s = taro.length();\n } else if (taro.length() < hanako.length()) {\n s = taro.length();\n } else {\n s = hanako.length();\n }", "taro.length() == hanako.length()", "taro.length()", "taro.length", "taro", "hanako.length()", "hanako.length", "hanako", "{ \n s = taro.length();\n }", "s = taro.length()", "s", "taro.length()", "taro.length", "taro", "if (taro.length() < hanako.length()) {\n s = taro.length();\n } else {\n s = hanako.length();\n }", "taro.length() < hanako.length()", "taro.length()", "taro.length", "taro", "hanako.length()", "hanako.length", "hanako", "{\n s = taro.length();\n }", "s = taro.length()", "s", "taro.length()", "taro.length", "taro", "{\n s = hanako.length();\n }", "s = hanako.length()", "s", "hanako.length()", "hanako.length", "hanako", "for (int j = 0; j < s; j++) {\n if (taro.equals(hanako)) {\n taro_p += 1;\n hanako_p += 1;\n break;\n } else if ((s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() > hanako.length()) || taro.charAt(j) > hanako.charAt(j)) {\n taro_p += 3;\n break;\n } else if ((s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() < hanako.length()) || taro.charAt(j) < hanako.charAt(j)) {\n hanako_p += 3;\n break;\n } else {\n \n }\n }", "int j = 0;", "int j = 0;", "j", "0", "j < s", "j", "s", "j++", "j++", "j", "{\n if (taro.equals(hanako)) {\n taro_p += 1;\n hanako_p += 1;\n break;\n } else if ((s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() > hanako.length()) || taro.charAt(j) > hanako.charAt(j)) {\n taro_p += 3;\n break;\n } else if ((s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() < hanako.length()) || taro.charAt(j) < hanako.charAt(j)) {\n hanako_p += 3;\n break;\n } else {\n \n }\n }", "{\n if (taro.equals(hanako)) {\n taro_p += 1;\n hanako_p += 1;\n break;\n } else if ((s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() > hanako.length()) || taro.charAt(j) > hanako.charAt(j)) {\n taro_p += 3;\n break;\n } else if ((s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() < hanako.length()) || taro.charAt(j) < hanako.charAt(j)) {\n hanako_p += 3;\n break;\n } else {\n \n }\n }", "if (taro.equals(hanako)) {\n taro_p += 1;\n hanako_p += 1;\n break;\n } else if ((s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() > hanako.length()) || taro.charAt(j) > hanako.charAt(j)) {\n taro_p += 3;\n break;\n } else if ((s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() < hanako.length()) || taro.charAt(j) < hanako.charAt(j)) {\n hanako_p += 3;\n break;\n } else {\n \n }", "taro.equals(hanako)", "taro.equals", "taro", "hanako", "{\n taro_p += 1;\n hanako_p += 1;\n break;\n }", "taro_p += 1", "taro_p", "1", "hanako_p += 1", "hanako_p", "1", "break;", "if ((s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() > hanako.length()) || taro.charAt(j) > hanako.charAt(j)) {\n taro_p += 3;\n break;\n } else if ((s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() < hanako.length()) || taro.charAt(j) < hanako.charAt(j)) {\n hanako_p += 3;\n break;\n } else {\n \n }", "(s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() > hanako.length()) || taro.charAt(j) > hanako.charAt(j)", "(s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() > hanako.length())", "s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() > hanako.length()", "s - 1 == j", "s - 1", "s", "1", "j", "taro.charAt(j) == hanako.charAt(j)", "taro.charAt(j)", "taro.charAt", "taro", "j", "hanako.charAt(j)", "hanako.charAt", "hanako", "j", "taro.length() > hanako.length()", "taro.length()", "taro.length", "taro", "hanako.length()", "hanako.length", "hanako", "taro.charAt(j) > hanako.charAt(j)", "taro.charAt(j)", "taro.charAt", "taro", "j", "hanako.charAt(j)", "hanako.charAt", "hanako", "j", "{\n taro_p += 3;\n break;\n }", "taro_p += 3", "taro_p", "3", "break;", "if ((s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() < hanako.length()) || taro.charAt(j) < hanako.charAt(j)) {\n hanako_p += 3;\n break;\n } else {\n \n }", "(s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() < hanako.length()) || taro.charAt(j) < hanako.charAt(j)", "(s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() < hanako.length())", "s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() < hanako.length()", "s - 1 == j", "s - 1", "s", "1", "j", "taro.charAt(j) == hanako.charAt(j)", "taro.charAt(j)", "taro.charAt", "taro", "j", "hanako.charAt(j)", "hanako.charAt", "hanako", "j", "taro.length() < hanako.length()", "taro.length()", "taro.length", "taro", "hanako.length()", "hanako.length", "hanako", "taro.charAt(j) < hanako.charAt(j)", "taro.charAt(j)", "taro.charAt", "taro", "j", "hanako.charAt(j)", "hanako.charAt", "hanako", "j", "{\n hanako_p += 3;\n break;\n }", "hanako_p += 3", "hanako_p", "3", "break;", "{\n \n }", "System.out.println(taro_p + \" \" + hanako_p)", "System.out.println", "System.out", "System", "System.out", "taro_p + \" \" + hanako_p", "taro_p + \" \" + hanako_p", "taro_p", "\" \"", "hanako_p", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int taro_p = 0;\n int hanako_p = 0;\n int s = 0;\n for (int i = 0; i < n; i++) {\n String taro = sc.next();\n String hanako = sc.next();\n if (taro.length() == hanako.length()) { \n s = taro.length();\n } else if (taro.length() < hanako.length()) {\n s = taro.length();\n } else {\n s = hanako.length();\n }\n for (int j = 0; j < s; j++) {\n if (taro.equals(hanako)) {\n taro_p += 1;\n hanako_p += 1;\n break;\n } else if ((s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() > hanako.length()) || taro.charAt(j) > hanako.charAt(j)) {\n taro_p += 3;\n break;\n } else if ((s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() < hanako.length()) || taro.charAt(j) < hanako.charAt(j)) {\n hanako_p += 3;\n break;\n } else {\n \n }\n } \n }\n System.out.println(taro_p + \" \" + hanako_p);\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int taro_p = 0;\n int hanako_p = 0;\n int s = 0;\n for (int i = 0; i < n; i++) {\n String taro = sc.next();\n String hanako = sc.next();\n if (taro.length() == hanako.length()) { \n s = taro.length();\n } else if (taro.length() < hanako.length()) {\n s = taro.length();\n } else {\n s = hanako.length();\n }\n for (int j = 0; j < s; j++) {\n if (taro.equals(hanako)) {\n taro_p += 1;\n hanako_p += 1;\n break;\n } else if ((s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() > hanako.length()) || taro.charAt(j) > hanako.charAt(j)) {\n taro_p += 3;\n break;\n } else if ((s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() < hanako.length()) || taro.charAt(j) < hanako.charAt(j)) {\n hanako_p += 3;\n break;\n } else {\n \n }\n } \n }\n System.out.println(taro_p + \" \" + hanako_p);\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_p = 0; int hanako_p = 0; int s = 0; for (int i = 0; i < n; i++) { String taro = sc.next(); String hanako = sc.next(); if (taro.length() == hanako.length()) { s = taro.length(); } else if (taro.length() < hanako.length()) { s = taro.length(); } else { s = hanako.length(); } for (int j = 0; j < s; j++) { if (taro.equals(hanako)) { taro_p += 1; hanako_p += 1; break; } else if ((s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() > hanako.length()) || taro.charAt(j) > hanako.charAt(j)) { taro_p += 3; break; } else if ((s - 1 == j && taro.charAt(j) == hanako.charAt(j) && taro.length() < hanako.length()) || taro.charAt(j) < hanako.charAt(j)) { hanako_p += 3; break; } else { } } } System.out.println(taro_p + " " + hanako_p); } }
[ 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, 14, 2, 4, 18, 13, 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 ], [ 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 ], [ 53, 55 ], [ 35, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 57, 62 ], [ 56, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 66, 67 ], [ 35, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 69, 74 ], [ 68, 75 ], [ 75, 76 ], [ 75, 77 ], [ 8, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 84, 84 ], [ 84, 85 ], [ 84, 86 ], [ 84, 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 input = new Scanner(System.in);\n int cnt = input.nextInt();\n int grade_T = 0, grade_H = 0;\n for(int i = 0; i < cnt; i ++ ){\n String sub_T = input.next();\n String sub_H = input.next();\n if(sub_T.compareTo(sub_H) < 0)\n grade_H += 3;\n if(sub_T.compareTo(sub_H) == 0){\n grade_T ++;\n grade_H ++;\n }\n if(sub_T.compareTo(sub_H) > 0)\n grade_T += 3;\n }\n System.out.println(grade_T + \" \" + grade_H);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String args[]){\n Scanner input = new Scanner(System.in);\n int cnt = input.nextInt();\n int grade_T = 0, grade_H = 0;\n for(int i = 0; i < cnt; i ++ ){\n String sub_T = input.next();\n String sub_H = input.next();\n if(sub_T.compareTo(sub_H) < 0)\n grade_H += 3;\n if(sub_T.compareTo(sub_H) == 0){\n grade_T ++;\n grade_H ++;\n }\n if(sub_T.compareTo(sub_H) > 0)\n grade_T += 3;\n }\n System.out.println(grade_T + \" \" + grade_H);\n }\n}", "Main", "public static void main(String args[]){\n Scanner input = new Scanner(System.in);\n int cnt = input.nextInt();\n int grade_T = 0, grade_H = 0;\n for(int i = 0; i < cnt; i ++ ){\n String sub_T = input.next();\n String sub_H = input.next();\n if(sub_T.compareTo(sub_H) < 0)\n grade_H += 3;\n if(sub_T.compareTo(sub_H) == 0){\n grade_T ++;\n grade_H ++;\n }\n if(sub_T.compareTo(sub_H) > 0)\n grade_T += 3;\n }\n System.out.println(grade_T + \" \" + grade_H);\n }", "main", "{\n Scanner input = new Scanner(System.in);\n int cnt = input.nextInt();\n int grade_T = 0, grade_H = 0;\n for(int i = 0; i < cnt; i ++ ){\n String sub_T = input.next();\n String sub_H = input.next();\n if(sub_T.compareTo(sub_H) < 0)\n grade_H += 3;\n if(sub_T.compareTo(sub_H) == 0){\n grade_T ++;\n grade_H ++;\n }\n if(sub_T.compareTo(sub_H) > 0)\n grade_T += 3;\n }\n System.out.println(grade_T + \" \" + grade_H);\n }", "Scanner input = new Scanner(System.in);", "input", "new Scanner(System.in)", "int cnt = input.nextInt();", "cnt", "input.nextInt()", "input.nextInt", "input", "int grade_T = 0", "grade_T", "0", "grade_H = 0;", "grade_H", "0", "for(int i = 0; i < cnt; i ++ ){\n String sub_T = input.next();\n String sub_H = input.next();\n if(sub_T.compareTo(sub_H) < 0)\n grade_H += 3;\n if(sub_T.compareTo(sub_H) == 0){\n grade_T ++;\n grade_H ++;\n }\n if(sub_T.compareTo(sub_H) > 0)\n grade_T += 3;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < cnt", "i", "cnt", "i ++", "i ++", "i", "{\n String sub_T = input.next();\n String sub_H = input.next();\n if(sub_T.compareTo(sub_H) < 0)\n grade_H += 3;\n if(sub_T.compareTo(sub_H) == 0){\n grade_T ++;\n grade_H ++;\n }\n if(sub_T.compareTo(sub_H) > 0)\n grade_T += 3;\n }", "{\n String sub_T = input.next();\n String sub_H = input.next();\n if(sub_T.compareTo(sub_H) < 0)\n grade_H += 3;\n if(sub_T.compareTo(sub_H) == 0){\n grade_T ++;\n grade_H ++;\n }\n if(sub_T.compareTo(sub_H) > 0)\n grade_T += 3;\n }", "String sub_T = input.next();", "sub_T", "input.next()", "input.next", "input", "String sub_H = input.next();", "sub_H", "input.next()", "input.next", "input", "if(sub_T.compareTo(sub_H) < 0)\n grade_H += 3;", "sub_T.compareTo(sub_H) < 0", "sub_T.compareTo(sub_H)", "sub_T.compareTo", "sub_T", "sub_H", "0", "grade_H += 3", "grade_H", "3", "if(sub_T.compareTo(sub_H) == 0){\n grade_T ++;\n grade_H ++;\n }", "sub_T.compareTo(sub_H) == 0", "sub_T.compareTo(sub_H)", "sub_T.compareTo", "sub_T", "sub_H", "0", "{\n grade_T ++;\n grade_H ++;\n }", "grade_T ++", "grade_T", "grade_H ++", "grade_H", "if(sub_T.compareTo(sub_H) > 0)\n grade_T += 3;", "sub_T.compareTo(sub_H) > 0", "sub_T.compareTo(sub_H)", "sub_T.compareTo", "sub_T", "sub_H", "0", "grade_T += 3", "grade_T", "3", "System.out.println(grade_T + \" \" + grade_H)", "System.out.println", "System.out", "System", "System.out", "grade_T + \" \" + grade_H", "grade_T + \" \" + grade_H", "grade_T", "\" \"", "grade_H", "String args[]", "args", "public class Main{\n public static void main(String args[]){\n Scanner input = new Scanner(System.in);\n int cnt = input.nextInt();\n int grade_T = 0, grade_H = 0;\n for(int i = 0; i < cnt; i ++ ){\n String sub_T = input.next();\n String sub_H = input.next();\n if(sub_T.compareTo(sub_H) < 0)\n grade_H += 3;\n if(sub_T.compareTo(sub_H) == 0){\n grade_T ++;\n grade_H ++;\n }\n if(sub_T.compareTo(sub_H) > 0)\n grade_T += 3;\n }\n System.out.println(grade_T + \" \" + grade_H);\n }\n}", "public class Main{\n public static void main(String args[]){\n Scanner input = new Scanner(System.in);\n int cnt = input.nextInt();\n int grade_T = 0, grade_H = 0;\n for(int i = 0; i < cnt; i ++ ){\n String sub_T = input.next();\n String sub_H = input.next();\n if(sub_T.compareTo(sub_H) < 0)\n grade_H += 3;\n if(sub_T.compareTo(sub_H) == 0){\n grade_T ++;\n grade_H ++;\n }\n if(sub_T.compareTo(sub_H) > 0)\n grade_T += 3;\n }\n System.out.println(grade_T + \" \" + grade_H);\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner input = new Scanner(System.in); int cnt = input.nextInt(); int grade_T = 0, grade_H = 0; for(int i = 0; i < cnt; i ++ ){ String sub_T = input.next(); String sub_H = input.next(); if(sub_T.compareTo(sub_H) < 0) grade_H += 3; if(sub_T.compareTo(sub_H) == 0){ grade_T ++; grade_H ++; } if(sub_T.compareTo(sub_H) > 0) grade_T += 3; } System.out.println(grade_T + " " + grade_H); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 4, 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, 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, 0, 13, 17, 0, 13, 17, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 4, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 14, 2, 13, 17, 30, 4, 18, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 126, 5 ], [ 126, 6 ], [ 6, 7 ], [ 6, 8 ], [ 126, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 11, 19 ], [ 19, 20 ], [ 19, 21 ], [ 11, 22 ], [ 22, 23 ], [ 22, 24 ], [ 11, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 34, 35 ], [ 25, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 40, 44 ], [ 37, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 53, 54 ], [ 53, 55 ], [ 45, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 45, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 67, 68 ], [ 67, 69 ], [ 61, 70 ], [ 60, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 60, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 82, 83 ], [ 82, 84 ], [ 76, 85 ], [ 75, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 90, 91 ], [ 90, 92 ], [ 11, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 99, 99 ], [ 99, 100 ], [ 99, 101 ], [ 99, 102 ], [ 11, 103 ], [ 103, 104 ], [ 9, 105 ], [ 105, 106 ], [ 126, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 126, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 0, 125 ], [ 125, 126 ], [ 125, 127 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tint n = Integer.parseInt(input());\n\t\tint taroScore = 0;\n\t\tint hanakoScore = 0;\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tString[] tempList = input().split(\" \");\n\n\t\t\tif (0 < tempList[0].compareToIgnoreCase(tempList[1])) {\n\n\t\t\t\ttaroScore += 3;\n\n\t\t\t} else if (tempList[0].compareToIgnoreCase(tempList[1]) < 0) {\n\n\t\t\t\thanakoScore += 3;\n\n\t\t\t} else if (tempList[0].compareToIgnoreCase(tempList[1]) == 0) {\n\n\t\t\t\ttaroScore += 1;\n\t\t\t\thanakoScore += 1;\n\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(taroScore + \" \" + hanakoScore);\n\n\t\tclose();\n\n\t}\n\n\tpublic static String input() {\n\n\t\treturn scanner.nextLine();\n\n\t}\n\n\tpublic static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tint n = Integer.parseInt(input());\n\t\tint taroScore = 0;\n\t\tint hanakoScore = 0;\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tString[] tempList = input().split(\" \");\n\n\t\t\tif (0 < tempList[0].compareToIgnoreCase(tempList[1])) {\n\n\t\t\t\ttaroScore += 3;\n\n\t\t\t} else if (tempList[0].compareToIgnoreCase(tempList[1]) < 0) {\n\n\t\t\t\thanakoScore += 3;\n\n\t\t\t} else if (tempList[0].compareToIgnoreCase(tempList[1]) == 0) {\n\n\t\t\t\ttaroScore += 1;\n\t\t\t\thanakoScore += 1;\n\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(taroScore + \" \" + hanakoScore);\n\n\t\tclose();\n\n\t}\n\n\tpublic static String input() {\n\n\t\treturn scanner.nextLine();\n\n\t}\n\n\tpublic static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}\n}", "Main", "public static Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "public static void main(String[] args) {\n\n\t\tint n = Integer.parseInt(input());\n\t\tint taroScore = 0;\n\t\tint hanakoScore = 0;\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tString[] tempList = input().split(\" \");\n\n\t\t\tif (0 < tempList[0].compareToIgnoreCase(tempList[1])) {\n\n\t\t\t\ttaroScore += 3;\n\n\t\t\t} else if (tempList[0].compareToIgnoreCase(tempList[1]) < 0) {\n\n\t\t\t\thanakoScore += 3;\n\n\t\t\t} else if (tempList[0].compareToIgnoreCase(tempList[1]) == 0) {\n\n\t\t\t\ttaroScore += 1;\n\t\t\t\thanakoScore += 1;\n\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(taroScore + \" \" + hanakoScore);\n\n\t\tclose();\n\n\t}", "main", "{\n\n\t\tint n = Integer.parseInt(input());\n\t\tint taroScore = 0;\n\t\tint hanakoScore = 0;\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tString[] tempList = input().split(\" \");\n\n\t\t\tif (0 < tempList[0].compareToIgnoreCase(tempList[1])) {\n\n\t\t\t\ttaroScore += 3;\n\n\t\t\t} else if (tempList[0].compareToIgnoreCase(tempList[1]) < 0) {\n\n\t\t\t\thanakoScore += 3;\n\n\t\t\t} else if (tempList[0].compareToIgnoreCase(tempList[1]) == 0) {\n\n\t\t\t\ttaroScore += 1;\n\t\t\t\thanakoScore += 1;\n\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(taroScore + \" \" + hanakoScore);\n\n\t\tclose();\n\n\t}", "int n = Integer.parseInt(input());", "n", "Integer.parseInt(input())", "Integer.parseInt", "Integer", "input()", "input", "int taroScore = 0;", "taroScore", "0", "int hanakoScore = 0;", "hanakoScore", "0", "for (int i = 0; i < n; i++) {\n\n\t\t\tString[] tempList = input().split(\" \");\n\n\t\t\tif (0 < tempList[0].compareToIgnoreCase(tempList[1])) {\n\n\t\t\t\ttaroScore += 3;\n\n\t\t\t} else if (tempList[0].compareToIgnoreCase(tempList[1]) < 0) {\n\n\t\t\t\thanakoScore += 3;\n\n\t\t\t} else if (tempList[0].compareToIgnoreCase(tempList[1]) == 0) {\n\n\t\t\t\ttaroScore += 1;\n\t\t\t\thanakoScore += 1;\n\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[] tempList = input().split(\" \");\n\n\t\t\tif (0 < tempList[0].compareToIgnoreCase(tempList[1])) {\n\n\t\t\t\ttaroScore += 3;\n\n\t\t\t} else if (tempList[0].compareToIgnoreCase(tempList[1]) < 0) {\n\n\t\t\t\thanakoScore += 3;\n\n\t\t\t} else if (tempList[0].compareToIgnoreCase(tempList[1]) == 0) {\n\n\t\t\t\ttaroScore += 1;\n\t\t\t\thanakoScore += 1;\n\n\t\t\t}\n\t\t}", "{\n\n\t\t\tString[] tempList = input().split(\" \");\n\n\t\t\tif (0 < tempList[0].compareToIgnoreCase(tempList[1])) {\n\n\t\t\t\ttaroScore += 3;\n\n\t\t\t} else if (tempList[0].compareToIgnoreCase(tempList[1]) < 0) {\n\n\t\t\t\thanakoScore += 3;\n\n\t\t\t} else if (tempList[0].compareToIgnoreCase(tempList[1]) == 0) {\n\n\t\t\t\ttaroScore += 1;\n\t\t\t\thanakoScore += 1;\n\n\t\t\t}\n\t\t}", "String[] tempList = input().split(\" \");", "tempList", "input().split(\" \")", "input().split", "input()", "input", "\" \"", "if (0 < tempList[0].compareToIgnoreCase(tempList[1])) {\n\n\t\t\t\ttaroScore += 3;\n\n\t\t\t} else if (tempList[0].compareToIgnoreCase(tempList[1]) < 0) {\n\n\t\t\t\thanakoScore += 3;\n\n\t\t\t} else if (tempList[0].compareToIgnoreCase(tempList[1]) == 0) {\n\n\t\t\t\ttaroScore += 1;\n\t\t\t\thanakoScore += 1;\n\n\t\t\t}", "0 < tempList[0].compareToIgnoreCase(tempList[1])", "0", "tempList[0].compareToIgnoreCase(tempList[1])", "tempList[0].compareToIgnoreCase", "tempList[0]", "tempList", "0", "tempList[1]", "tempList", "1", "{\n\n\t\t\t\ttaroScore += 3;\n\n\t\t\t}", "taroScore += 3", "taroScore", "3", "if (tempList[0].compareToIgnoreCase(tempList[1]) < 0) {\n\n\t\t\t\thanakoScore += 3;\n\n\t\t\t} else if (tempList[0].compareToIgnoreCase(tempList[1]) == 0) {\n\n\t\t\t\ttaroScore += 1;\n\t\t\t\thanakoScore += 1;\n\n\t\t\t}", "tempList[0].compareToIgnoreCase(tempList[1]) < 0", "tempList[0].compareToIgnoreCase(tempList[1])", "tempList[0].compareToIgnoreCase", "tempList[0]", "tempList", "0", "tempList[1]", "tempList", "1", "0", "{\n\n\t\t\t\thanakoScore += 3;\n\n\t\t\t}", "hanakoScore += 3", "hanakoScore", "3", "if (tempList[0].compareToIgnoreCase(tempList[1]) == 0) {\n\n\t\t\t\ttaroScore += 1;\n\t\t\t\thanakoScore += 1;\n\n\t\t\t}", "tempList[0].compareToIgnoreCase(tempList[1]) == 0", "tempList[0].compareToIgnoreCase(tempList[1])", "tempList[0].compareToIgnoreCase", "tempList[0]", "tempList", "0", "tempList[1]", "tempList", "1", "0", "{\n\n\t\t\t\ttaroScore += 1;\n\t\t\t\thanakoScore += 1;\n\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", "close()", "close", "String[] args", "args", "public static String input() {\n\n\t\treturn scanner.nextLine();\n\n\t}", "input", "{\n\n\t\treturn scanner.nextLine();\n\n\t}", "return scanner.nextLine();", "scanner.nextLine()", "scanner.nextLine", "scanner", "public static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}", "close", "{\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}", "if (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}", "scanner != null", "scanner", "null", "{\n\n\t\t\tscanner.close();\n\n\t\t}", "scanner.close()", "scanner.close", "scanner", "public class Main {\n\n\tpublic static Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tint n = Integer.parseInt(input());\n\t\tint taroScore = 0;\n\t\tint hanakoScore = 0;\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tString[] tempList = input().split(\" \");\n\n\t\t\tif (0 < tempList[0].compareToIgnoreCase(tempList[1])) {\n\n\t\t\t\ttaroScore += 3;\n\n\t\t\t} else if (tempList[0].compareToIgnoreCase(tempList[1]) < 0) {\n\n\t\t\t\thanakoScore += 3;\n\n\t\t\t} else if (tempList[0].compareToIgnoreCase(tempList[1]) == 0) {\n\n\t\t\t\ttaroScore += 1;\n\t\t\t\thanakoScore += 1;\n\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(taroScore + \" \" + hanakoScore);\n\n\t\tclose();\n\n\t}\n\n\tpublic static String input() {\n\n\t\treturn scanner.nextLine();\n\n\t}\n\n\tpublic static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tint n = Integer.parseInt(input());\n\t\tint taroScore = 0;\n\t\tint hanakoScore = 0;\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tString[] tempList = input().split(\" \");\n\n\t\t\tif (0 < tempList[0].compareToIgnoreCase(tempList[1])) {\n\n\t\t\t\ttaroScore += 3;\n\n\t\t\t} else if (tempList[0].compareToIgnoreCase(tempList[1]) < 0) {\n\n\t\t\t\thanakoScore += 3;\n\n\t\t\t} else if (tempList[0].compareToIgnoreCase(tempList[1]) == 0) {\n\n\t\t\t\ttaroScore += 1;\n\t\t\t\thanakoScore += 1;\n\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(taroScore + \" \" + hanakoScore);\n\n\t\tclose();\n\n\t}\n\n\tpublic static String input() {\n\n\t\treturn scanner.nextLine();\n\n\t}\n\n\tpublic static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static Scanner scanner = new Scanner(System.in); public static void main(String[] args) { int n = Integer.parseInt(input()); int taroScore = 0; int hanakoScore = 0; for (int i = 0; i < n; i++) { String[] tempList = input().split(" "); if (0 < tempList[0].compareToIgnoreCase(tempList[1])) { taroScore += 3; } else if (tempList[0].compareToIgnoreCase(tempList[1]) < 0) { hanakoScore += 3; } else if (tempList[0].compareToIgnoreCase(tempList[1]) == 0) { taroScore += 1; hanakoScore += 1; } } System.out.println(taroScore + " " + hanakoScore); close(); } public static String input() { return scanner.nextLine(); } public static void close() { if (scanner != null) { 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, 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, 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 ], [ 68, 71 ], [ 71, 72 ], [ 8, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 79, 79 ], [ 79, 80 ], [ 79, 81 ], [ 79, 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 s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint tPoint = 0;\n\t\tint hPoint = 0;\n\t\tfor(int i = 0;i < n; i++){\n\t\t\tString taro = s.next();\n\t\t\tString hana = s.next();\n\t\t\tif(taro.compareTo(hana) < 0){\n\t\t\t\thPoint += 3;\n\t\t\t}else if(taro.compareTo(hana) > 0){\n\t\t\t\ttPoint += 3;\n\t\t\t}else{\n\t\t\t\ttPoint++;\n\t\t\t\thPoint++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tPoint + \" \" + hPoint);\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 s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint tPoint = 0;\n\t\tint hPoint = 0;\n\t\tfor(int i = 0;i < n; i++){\n\t\t\tString taro = s.next();\n\t\t\tString hana = s.next();\n\t\t\tif(taro.compareTo(hana) < 0){\n\t\t\t\thPoint += 3;\n\t\t\t}else if(taro.compareTo(hana) > 0){\n\t\t\t\ttPoint += 3;\n\t\t\t}else{\n\t\t\t\ttPoint++;\n\t\t\t\thPoint++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tPoint + \" \" + hPoint);\n\t}\n\tpublic static void main(String args[]){\n\t\tnew Main().run();\n\t}\n}", "Main", "void run(){\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint tPoint = 0;\n\t\tint hPoint = 0;\n\t\tfor(int i = 0;i < n; i++){\n\t\t\tString taro = s.next();\n\t\t\tString hana = s.next();\n\t\t\tif(taro.compareTo(hana) < 0){\n\t\t\t\thPoint += 3;\n\t\t\t}else if(taro.compareTo(hana) > 0){\n\t\t\t\ttPoint += 3;\n\t\t\t}else{\n\t\t\t\ttPoint++;\n\t\t\t\thPoint++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tPoint + \" \" + hPoint);\n\t}", "run", "{\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint tPoint = 0;\n\t\tint hPoint = 0;\n\t\tfor(int i = 0;i < n; i++){\n\t\t\tString taro = s.next();\n\t\t\tString hana = s.next();\n\t\t\tif(taro.compareTo(hana) < 0){\n\t\t\t\thPoint += 3;\n\t\t\t}else if(taro.compareTo(hana) > 0){\n\t\t\t\ttPoint += 3;\n\t\t\t}else{\n\t\t\t\ttPoint++;\n\t\t\t\thPoint++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tPoint + \" \" + hPoint);\n\t}", "Scanner s = new Scanner(System.in);", "s", "new Scanner(System.in)", "int n = s.nextInt();", "n", "s.nextInt()", "s.nextInt", "s", "int tPoint = 0;", "tPoint", "0", "int hPoint = 0;", "hPoint", "0", "for(int i = 0;i < n; i++){\n\t\t\tString taro = s.next();\n\t\t\tString hana = s.next();\n\t\t\tif(taro.compareTo(hana) < 0){\n\t\t\t\thPoint += 3;\n\t\t\t}else if(taro.compareTo(hana) > 0){\n\t\t\t\ttPoint += 3;\n\t\t\t}else{\n\t\t\t\ttPoint++;\n\t\t\t\thPoint++;\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 = s.next();\n\t\t\tString hana = s.next();\n\t\t\tif(taro.compareTo(hana) < 0){\n\t\t\t\thPoint += 3;\n\t\t\t}else if(taro.compareTo(hana) > 0){\n\t\t\t\ttPoint += 3;\n\t\t\t}else{\n\t\t\t\ttPoint++;\n\t\t\t\thPoint++;\n\t\t\t}\n\t\t}", "{\n\t\t\tString taro = s.next();\n\t\t\tString hana = s.next();\n\t\t\tif(taro.compareTo(hana) < 0){\n\t\t\t\thPoint += 3;\n\t\t\t}else if(taro.compareTo(hana) > 0){\n\t\t\t\ttPoint += 3;\n\t\t\t}else{\n\t\t\t\ttPoint++;\n\t\t\t\thPoint++;\n\t\t\t}\n\t\t}", "String taro = s.next();", "taro", "s.next()", "s.next", "s", "String hana = s.next();", "hana", "s.next()", "s.next", "s", "if(taro.compareTo(hana) < 0){\n\t\t\t\thPoint += 3;\n\t\t\t}else if(taro.compareTo(hana) > 0){\n\t\t\t\ttPoint += 3;\n\t\t\t}else{\n\t\t\t\ttPoint++;\n\t\t\t\thPoint++;\n\t\t\t}", "taro.compareTo(hana) < 0", "taro.compareTo(hana)", "taro.compareTo", "taro", "hana", "0", "{\n\t\t\t\thPoint += 3;\n\t\t\t}", "hPoint += 3", "hPoint", "3", "if(taro.compareTo(hana) > 0){\n\t\t\t\ttPoint += 3;\n\t\t\t}else{\n\t\t\t\ttPoint++;\n\t\t\t\thPoint++;\n\t\t\t}", "taro.compareTo(hana) > 0", "taro.compareTo(hana)", "taro.compareTo", "taro", "hana", "0", "{\n\t\t\t\ttPoint += 3;\n\t\t\t}", "tPoint += 3", "tPoint", "3", "{\n\t\t\t\ttPoint++;\n\t\t\t\thPoint++;\n\t\t\t}", "tPoint++", "tPoint", "hPoint++", "hPoint", "System.out.println(tPoint + \" \" + hPoint)", "System.out.println", "System.out", "System", "System.out", "tPoint + \" \" + hPoint", "tPoint + \" \" + hPoint", "tPoint", "\" \"", "hPoint", "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 s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint tPoint = 0;\n\t\tint hPoint = 0;\n\t\tfor(int i = 0;i < n; i++){\n\t\t\tString taro = s.next();\n\t\t\tString hana = s.next();\n\t\t\tif(taro.compareTo(hana) < 0){\n\t\t\t\thPoint += 3;\n\t\t\t}else if(taro.compareTo(hana) > 0){\n\t\t\t\ttPoint += 3;\n\t\t\t}else{\n\t\t\t\ttPoint++;\n\t\t\t\thPoint++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tPoint + \" \" + hPoint);\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 s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint tPoint = 0;\n\t\tint hPoint = 0;\n\t\tfor(int i = 0;i < n; i++){\n\t\t\tString taro = s.next();\n\t\t\tString hana = s.next();\n\t\t\tif(taro.compareTo(hana) < 0){\n\t\t\t\thPoint += 3;\n\t\t\t}else if(taro.compareTo(hana) > 0){\n\t\t\t\ttPoint += 3;\n\t\t\t}else{\n\t\t\t\ttPoint++;\n\t\t\t\thPoint++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tPoint + \" \" + hPoint);\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 s = new Scanner(System.in); int n = s.nextInt(); int tPoint = 0; int hPoint = 0; for(int i = 0;i < n; i++){ String taro = s.next(); String hana = s.next(); if(taro.compareTo(hana) < 0){ hPoint += 3; }else if(taro.compareTo(hana) > 0){ tPoint += 3; }else{ tPoint++; hPoint++; } } System.out.println(tPoint + " " + hPoint); } 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, 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, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 18, 13, 13, 41, 13, 4, 18, 18, 13, 13, 14, 2, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 30, 41, 13, 20, 4, 18, 18, 13, 13, 0, 13, 4, 18, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 30, 14, 2, 2, 2, 13, 17, 4, 18, 18, 13, 13, 2, 18, 13, 13, 18, 13, 13, 30, 0, 13, 17, 0, 13, 17, 14, 2, 18, 13, 13, 18, 13, 13, 30, 9, 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, 30, 14, 2, 2, 2, 13, 17, 4, 18, 18, 13, 13, 2, 18, 13, 13, 18, 13, 13, 30, 0, 13, 17, 14, 2, 18, 13, 13, 18, 13, 13, 30, 9, 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, 14, 2, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 30, 41, 13, 20, 4, 18, 18, 13, 13, 0, 13, 4, 18, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 13, 17, 4, 18, 18, 13, 13, 2, 18, 13, 13, 18, 13, 13, 30, 0, 13, 17, 14, 2, 18, 13, 13, 18, 13, 13, 30, 9, 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, 2, 2, 13, 17, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 382, 5 ], [ 382, 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 ], [ 8, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 58, 66 ], [ 66, 67 ], [ 67, 68 ], [ 58, 69 ], [ 70, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 70, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 70, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 86, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 85, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 97, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 97, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 113, 125 ], [ 125, 126 ], [ 126, 127 ], [ 113, 128 ], [ 129, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 131, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 130, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 145, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 144, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 154, 158 ], [ 158, 159 ], [ 158, 160 ], [ 143, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 161, 165 ], [ 165, 166 ], [ 165, 167 ], [ 143, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 169, 173 ], [ 173, 174 ], [ 173, 175 ], [ 168, 176 ], [ 176, 177 ], [ 168, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 180, 182 ], [ 179, 183 ], [ 183, 184 ], [ 183, 185 ], [ 178, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 186, 190 ], [ 178, 191 ], [ 191, 192 ], [ 192, 193 ], [ 193, 194 ], [ 193, 195 ], [ 192, 196 ], [ 196, 197 ], [ 196, 198 ], [ 191, 199 ], [ 199, 200 ], [ 200, 201 ], [ 200, 202 ], [ 199, 203 ], [ 130, 204 ], [ 204, 205 ], [ 205, 206 ], [ 206, 207 ], [ 207, 208 ], [ 208, 209 ], [ 208, 210 ], [ 207, 211 ], [ 211, 212 ], [ 212, 213 ], [ 213, 214 ], [ 213, 215 ], [ 206, 216 ], [ 216, 217 ], [ 217, 218 ], [ 217, 219 ], [ 216, 220 ], [ 220, 221 ], [ 220, 222 ], [ 205, 223 ], [ 223, 224 ], [ 224, 225 ], [ 224, 226 ], [ 205, 227 ], [ 227, 228 ], [ 228, 229 ], [ 229, 230 ], [ 229, 231 ], [ 228, 232 ], [ 232, 233 ], [ 232, 234 ], [ 227, 235 ], [ 235, 236 ], [ 227, 237 ], [ 237, 238 ], [ 238, 239 ], [ 239, 240 ], [ 239, 241 ], [ 238, 242 ], [ 242, 243 ], [ 242, 244 ], [ 237, 245 ], [ 245, 246 ], [ 246, 247 ], [ 246, 248 ], [ 245, 249 ], [ 237, 250 ], [ 250, 251 ], [ 251, 252 ], [ 252, 253 ], [ 252, 254 ], [ 251, 255 ], [ 255, 256 ], [ 255, 257 ], [ 250, 258 ], [ 258, 259 ], [ 259, 260 ], [ 259, 261 ], [ 258, 262 ], [ 85, 263 ], [ 263, 264 ], [ 264, 265 ], [ 265, 266 ], [ 266, 267 ], [ 267, 268 ], [ 267, 269 ], [ 264, 270 ], [ 270, 271 ], [ 271, 272 ], [ 272, 273 ], [ 272, 274 ], [ 263, 275 ], [ 275, 276 ], [ 276, 277 ], [ 276, 278 ], [ 279, 280 ], [ 280, 281 ], [ 281, 282 ], [ 281, 283 ], [ 275, 284 ], [ 284, 285 ], [ 284, 286 ], [ 286, 287 ], [ 287, 288 ], [ 288, 289 ], [ 288, 290 ], [ 275, 291 ], [ 291, 292 ], [ 292, 293 ], [ 293, 294 ], [ 293, 295 ], [ 291, 296 ], [ 296, 297 ], [ 296, 298 ], [ 298, 299 ], [ 299, 300 ], [ 300, 301 ], [ 300, 302 ], [ 291, 303 ], [ 303, 304 ], [ 304, 305 ], [ 291, 306 ], [ 307, 307 ], [ 307, 308 ], [ 308, 309 ], [ 309, 310 ], [ 310, 311 ], [ 311, 312 ], [ 311, 313 ], [ 310, 314 ], [ 314, 315 ], [ 315, 316 ], [ 316, 317 ], [ 316, 318 ], [ 309, 319 ], [ 319, 320 ], [ 320, 321 ], [ 320, 322 ], [ 319, 323 ], [ 323, 324 ], [ 323, 325 ], [ 308, 326 ], [ 326, 327 ], [ 327, 328 ], [ 327, 329 ], [ 308, 330 ], [ 330, 331 ], [ 331, 332 ], [ 332, 333 ], [ 332, 334 ], [ 331, 335 ], [ 335, 336 ], [ 335, 337 ], [ 330, 338 ], [ 338, 339 ], [ 330, 340 ], [ 340, 341 ], [ 341, 342 ], [ 342, 343 ], [ 342, 344 ], [ 341, 345 ], [ 345, 346 ], [ 345, 347 ], [ 340, 348 ], [ 348, 349 ], [ 349, 350 ], [ 349, 351 ], [ 348, 352 ], [ 340, 353 ], [ 353, 354 ], [ 354, 355 ], [ 355, 356 ], [ 355, 357 ], [ 354, 358 ], [ 358, 359 ], [ 358, 360 ], [ 353, 361 ], [ 361, 362 ], [ 362, 363 ], [ 362, 364 ], [ 361, 365 ], [ 8, 366 ], [ 366, 367 ], [ 367, 368 ], [ 368, 369 ], [ 368, 370 ], [ 366, 371 ], [ 372, 372 ], [ 372, 373 ], [ 372, 374 ], [ 372, 375 ], [ 8, 376 ], [ 376, 377 ], [ 377, 378 ], [ 6, 379 ], [ 379, 380 ], [ 0, 381 ], [ 381, 382 ], [ 381, 383 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tString [] str1=new String[n];\n\t\tString [] str2=new String[n];\n\t\tint tarou=0;\n\t\tint hanako=0;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tstr1[i]=sc.next();\n\t\t\tstr2[i]=sc.next();\n\t\t}\n\t\tfor(int j=0;j<n;j++) {\n\t\t\tchar [] ch1=str1[j].toCharArray();\n\t\t\tchar [] ch2=str2[j].toCharArray();\n\t\t\tif(str1[j].length()<=str2[j].length()) {\n\t\t\t\tchar [] ch3=new char[str2[j].length()];\n\t\t\t\tch3=str1[j].toCharArray();\n\t\t\t\tfor(int k=0;k<str1[j].length();k++) {\n\t\t\t\t\tif(str1[j].length()==str2[j].length()) {\n\t\t\t\t\t\tif(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\ttarou+=1;\n\t\t\t\t\t\t\thanako+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tif(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(str1[j].length()>str2[j].length()) {\n\t\t\t\tchar [] ch3=new char [str1[j].length()];\n\t\t\t\tch3=str2[j].toCharArray();\n\t\t\t\tfor(int k=0;k<str2[j].length();k++) {\n\t\t\t\t\t\tif(k+1==str2[j].length()&&ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch1[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\tSystem.out.println(tarou+\" \"+hanako);\n\t\tsc.close();\n\t\t}\n\n\t}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tString [] str1=new String[n];\n\t\tString [] str2=new String[n];\n\t\tint tarou=0;\n\t\tint hanako=0;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tstr1[i]=sc.next();\n\t\t\tstr2[i]=sc.next();\n\t\t}\n\t\tfor(int j=0;j<n;j++) {\n\t\t\tchar [] ch1=str1[j].toCharArray();\n\t\t\tchar [] ch2=str2[j].toCharArray();\n\t\t\tif(str1[j].length()<=str2[j].length()) {\n\t\t\t\tchar [] ch3=new char[str2[j].length()];\n\t\t\t\tch3=str1[j].toCharArray();\n\t\t\t\tfor(int k=0;k<str1[j].length();k++) {\n\t\t\t\t\tif(str1[j].length()==str2[j].length()) {\n\t\t\t\t\t\tif(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\ttarou+=1;\n\t\t\t\t\t\t\thanako+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tif(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(str1[j].length()>str2[j].length()) {\n\t\t\t\tchar [] ch3=new char [str1[j].length()];\n\t\t\t\tch3=str2[j].toCharArray();\n\t\t\t\tfor(int k=0;k<str2[j].length();k++) {\n\t\t\t\t\t\tif(k+1==str2[j].length()&&ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch1[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\tSystem.out.println(tarou+\" \"+hanako);\n\t\tsc.close();\n\t\t}\n\n\t}", "Main", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tString [] str1=new String[n];\n\t\tString [] str2=new String[n];\n\t\tint tarou=0;\n\t\tint hanako=0;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tstr1[i]=sc.next();\n\t\t\tstr2[i]=sc.next();\n\t\t}\n\t\tfor(int j=0;j<n;j++) {\n\t\t\tchar [] ch1=str1[j].toCharArray();\n\t\t\tchar [] ch2=str2[j].toCharArray();\n\t\t\tif(str1[j].length()<=str2[j].length()) {\n\t\t\t\tchar [] ch3=new char[str2[j].length()];\n\t\t\t\tch3=str1[j].toCharArray();\n\t\t\t\tfor(int k=0;k<str1[j].length();k++) {\n\t\t\t\t\tif(str1[j].length()==str2[j].length()) {\n\t\t\t\t\t\tif(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\ttarou+=1;\n\t\t\t\t\t\t\thanako+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tif(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(str1[j].length()>str2[j].length()) {\n\t\t\t\tchar [] ch3=new char [str1[j].length()];\n\t\t\t\tch3=str2[j].toCharArray();\n\t\t\t\tfor(int k=0;k<str2[j].length();k++) {\n\t\t\t\t\t\tif(k+1==str2[j].length()&&ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch1[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\tSystem.out.println(tarou+\" \"+hanako);\n\t\tsc.close();\n\t\t}", "main", "{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tString [] str1=new String[n];\n\t\tString [] str2=new String[n];\n\t\tint tarou=0;\n\t\tint hanako=0;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tstr1[i]=sc.next();\n\t\t\tstr2[i]=sc.next();\n\t\t}\n\t\tfor(int j=0;j<n;j++) {\n\t\t\tchar [] ch1=str1[j].toCharArray();\n\t\t\tchar [] ch2=str2[j].toCharArray();\n\t\t\tif(str1[j].length()<=str2[j].length()) {\n\t\t\t\tchar [] ch3=new char[str2[j].length()];\n\t\t\t\tch3=str1[j].toCharArray();\n\t\t\t\tfor(int k=0;k<str1[j].length();k++) {\n\t\t\t\t\tif(str1[j].length()==str2[j].length()) {\n\t\t\t\t\t\tif(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\ttarou+=1;\n\t\t\t\t\t\t\thanako+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tif(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(str1[j].length()>str2[j].length()) {\n\t\t\t\tchar [] ch3=new char [str1[j].length()];\n\t\t\t\tch3=str2[j].toCharArray();\n\t\t\t\tfor(int k=0;k<str2[j].length();k++) {\n\t\t\t\t\t\tif(k+1==str2[j].length()&&ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch1[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\tSystem.out.println(tarou+\" \"+hanako);\n\t\tsc.close();\n\t\t}", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "String [] str1=new String[n];", "str1", "new String[n]", "n", "String [] str2=new String[n];", "str2", "new String[n]", "n", "int tarou=0;", "tarou", "0", "int hanako=0;", "hanako", "0", "for(int i=0;i<n;i++) {\n\t\t\tstr1[i]=sc.next();\n\t\t\tstr2[i]=sc.next();\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tstr1[i]=sc.next();\n\t\t\tstr2[i]=sc.next();\n\t\t}", "{\n\t\t\tstr1[i]=sc.next();\n\t\t\tstr2[i]=sc.next();\n\t\t}", "str1[i]=sc.next()", "str1[i]", "str1", "i", "sc.next()", "sc.next", "sc", "str2[i]=sc.next()", "str2[i]", "str2", "i", "sc.next()", "sc.next", "sc", "for(int j=0;j<n;j++) {\n\t\t\tchar [] ch1=str1[j].toCharArray();\n\t\t\tchar [] ch2=str2[j].toCharArray();\n\t\t\tif(str1[j].length()<=str2[j].length()) {\n\t\t\t\tchar [] ch3=new char[str2[j].length()];\n\t\t\t\tch3=str1[j].toCharArray();\n\t\t\t\tfor(int k=0;k<str1[j].length();k++) {\n\t\t\t\t\tif(str1[j].length()==str2[j].length()) {\n\t\t\t\t\t\tif(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\ttarou+=1;\n\t\t\t\t\t\t\thanako+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tif(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(str1[j].length()>str2[j].length()) {\n\t\t\t\tchar [] ch3=new char [str1[j].length()];\n\t\t\t\tch3=str2[j].toCharArray();\n\t\t\t\tfor(int k=0;k<str2[j].length();k++) {\n\t\t\t\t\t\tif(k+1==str2[j].length()&&ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch1[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int j=0;", "int j=0;", "j", "0", "j<n", "j", "n", "j++", "j++", "j", "{\n\t\t\tchar [] ch1=str1[j].toCharArray();\n\t\t\tchar [] ch2=str2[j].toCharArray();\n\t\t\tif(str1[j].length()<=str2[j].length()) {\n\t\t\t\tchar [] ch3=new char[str2[j].length()];\n\t\t\t\tch3=str1[j].toCharArray();\n\t\t\t\tfor(int k=0;k<str1[j].length();k++) {\n\t\t\t\t\tif(str1[j].length()==str2[j].length()) {\n\t\t\t\t\t\tif(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\ttarou+=1;\n\t\t\t\t\t\t\thanako+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tif(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(str1[j].length()>str2[j].length()) {\n\t\t\t\tchar [] ch3=new char [str1[j].length()];\n\t\t\t\tch3=str2[j].toCharArray();\n\t\t\t\tfor(int k=0;k<str2[j].length();k++) {\n\t\t\t\t\t\tif(k+1==str2[j].length()&&ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch1[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tchar [] ch1=str1[j].toCharArray();\n\t\t\tchar [] ch2=str2[j].toCharArray();\n\t\t\tif(str1[j].length()<=str2[j].length()) {\n\t\t\t\tchar [] ch3=new char[str2[j].length()];\n\t\t\t\tch3=str1[j].toCharArray();\n\t\t\t\tfor(int k=0;k<str1[j].length();k++) {\n\t\t\t\t\tif(str1[j].length()==str2[j].length()) {\n\t\t\t\t\t\tif(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\ttarou+=1;\n\t\t\t\t\t\t\thanako+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tif(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(str1[j].length()>str2[j].length()) {\n\t\t\t\tchar [] ch3=new char [str1[j].length()];\n\t\t\t\tch3=str2[j].toCharArray();\n\t\t\t\tfor(int k=0;k<str2[j].length();k++) {\n\t\t\t\t\t\tif(k+1==str2[j].length()&&ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch1[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "char [] ch1=str1[j].toCharArray();", "ch1", "str1[j].toCharArray()", "str1[j].toCharArray", "str1[j]", "str1", "j", "char [] ch2=str2[j].toCharArray();", "ch2", "str2[j].toCharArray()", "str2[j].toCharArray", "str2[j]", "str2", "j", "if(str1[j].length()<=str2[j].length()) {\n\t\t\t\tchar [] ch3=new char[str2[j].length()];\n\t\t\t\tch3=str1[j].toCharArray();\n\t\t\t\tfor(int k=0;k<str1[j].length();k++) {\n\t\t\t\t\tif(str1[j].length()==str2[j].length()) {\n\t\t\t\t\t\tif(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\ttarou+=1;\n\t\t\t\t\t\t\thanako+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tif(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(str1[j].length()>str2[j].length()) {\n\t\t\t\tchar [] ch3=new char [str1[j].length()];\n\t\t\t\tch3=str2[j].toCharArray();\n\t\t\t\tfor(int k=0;k<str2[j].length();k++) {\n\t\t\t\t\t\tif(k+1==str2[j].length()&&ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch1[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "str1[j].length()<=str2[j].length()", "str1[j].length()", "str1[j].length", "str1[j]", "str1", "j", "str2[j].length()", "str2[j].length", "str2[j]", "str2", "j", "{\n\t\t\t\tchar [] ch3=new char[str2[j].length()];\n\t\t\t\tch3=str1[j].toCharArray();\n\t\t\t\tfor(int k=0;k<str1[j].length();k++) {\n\t\t\t\t\tif(str1[j].length()==str2[j].length()) {\n\t\t\t\t\t\tif(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\ttarou+=1;\n\t\t\t\t\t\t\thanako+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tif(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "char [] ch3=new char[str2[j].length()];", "ch3", "new char[str2[j].length()]", "str2[j].length()", "str2[j].length", "str2[j]", "str2", "j", "ch3=str1[j].toCharArray()", "ch3", "str1[j].toCharArray()", "str1[j].toCharArray", "str1[j]", "str1", "j", "for(int k=0;k<str1[j].length();k++) {\n\t\t\t\t\tif(str1[j].length()==str2[j].length()) {\n\t\t\t\t\t\tif(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\ttarou+=1;\n\t\t\t\t\t\t\thanako+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tif(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "int k=0;", "int k=0;", "k", "0", "k<str1[j].length()", "k", "str1[j].length()", "str1[j].length", "str1[j]", "str1", "j", "k++", "k++", "k", "{\n\t\t\t\t\tif(str1[j].length()==str2[j].length()) {\n\t\t\t\t\t\tif(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\ttarou+=1;\n\t\t\t\t\t\t\thanako+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tif(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\tif(str1[j].length()==str2[j].length()) {\n\t\t\t\t\t\tif(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\ttarou+=1;\n\t\t\t\t\t\t\thanako+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tif(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "if(str1[j].length()==str2[j].length()) {\n\t\t\t\t\t\tif(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\ttarou+=1;\n\t\t\t\t\t\t\thanako+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tif(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "str1[j].length()==str2[j].length()", "str1[j].length()", "str1[j].length", "str1[j]", "str1", "j", "str2[j].length()", "str2[j].length", "str2[j]", "str2", "j", "{\n\t\t\t\t\t\tif(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\ttarou+=1;\n\t\t\t\t\t\t\thanako+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "if(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\ttarou+=1;\n\t\t\t\t\t\t\thanako+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}", "k+1==str1[j].length()&&ch3[k]==ch2[k]", "k+1==str1[j].length()", "k+1", "k", "1", "str1[j].length()", "str1[j].length", "str1[j]", "str1", "j", "ch3[k]==ch2[k]", "ch3[k]", "ch3", "k", "ch2[k]", "ch2", "k", "{\n\t\t\t\t\t\t\ttarou+=1;\n\t\t\t\t\t\t\thanako+=1;\n\t\t\t\t\t\t}", "tarou+=1", "tarou", "1", "hanako+=1", "hanako", "1", "if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}", "ch3[k]==ch2[k]", "ch3[k]", "ch3", "k", "ch2[k]", "ch2", "k", "{\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}", "continue;", "if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}", "ch3[k]>ch2[k]", "ch3[k]", "ch3", "k", "ch2[k]", "ch2", "k", "{\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}", "tarou+=3", "tarou", "3", "break;", "if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}", "ch3[k]<ch2[k]", "ch3[k]", "ch3", "k", "ch2[k]", "ch2", "k", "{\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}", "hanako+=3", "hanako", "3", "break;", "{\n\t\t\t\t\t\tif(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "if(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}", "k+1==str1[j].length()&&ch3[k]==ch2[k]", "k+1==str1[j].length()", "k+1", "k", "1", "str1[j].length()", "str1[j].length", "str1[j]", "str1", "j", "ch3[k]==ch2[k]", "ch3[k]", "ch3", "k", "ch2[k]", "ch2", "k", "{\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t}", "hanako+=3", "hanako", "3", "if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}", "ch3[k]==ch2[k]", "ch3[k]", "ch3", "k", "ch2[k]", "ch2", "k", "{\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}", "continue;", "if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}", "ch3[k]>ch2[k]", "ch3[k]", "ch3", "k", "ch2[k]", "ch2", "k", "{\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}", "tarou+=3", "tarou", "3", "break;", "if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}", "ch3[k]<ch2[k]", "ch3[k]", "ch3", "k", "ch2[k]", "ch2", "k", "{\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}", "hanako+=3", "hanako", "3", "break;", "if(str1[j].length()>str2[j].length()) {\n\t\t\t\tchar [] ch3=new char [str1[j].length()];\n\t\t\t\tch3=str2[j].toCharArray();\n\t\t\t\tfor(int k=0;k<str2[j].length();k++) {\n\t\t\t\t\t\tif(k+1==str2[j].length()&&ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch1[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "str1[j].length()>str2[j].length()", "str1[j].length()", "str1[j].length", "str1[j]", "str1", "j", "str2[j].length()", "str2[j].length", "str2[j]", "str2", "j", "{\n\t\t\t\tchar [] ch3=new char [str1[j].length()];\n\t\t\t\tch3=str2[j].toCharArray();\n\t\t\t\tfor(int k=0;k<str2[j].length();k++) {\n\t\t\t\t\t\tif(k+1==str2[j].length()&&ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch1[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "char [] ch3=new char [str1[j].length()];", "ch3", "new char [str1[j].length()]", "str1[j].length()", "str1[j].length", "str1[j]", "str1", "j", "ch3=str2[j].toCharArray()", "ch3", "str2[j].toCharArray()", "str2[j].toCharArray", "str2[j]", "str2", "j", "for(int k=0;k<str2[j].length();k++) {\n\t\t\t\t\t\tif(k+1==str2[j].length()&&ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch1[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t}", "int k=0;", "int k=0;", "k", "0", "k<str2[j].length()", "k", "str2[j].length()", "str2[j].length", "str2[j]", "str2", "j", "k++", "k++", "k", "{\n\t\t\t\t\t\tif(k+1==str2[j].length()&&ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch1[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\t\tif(k+1==str2[j].length()&&ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch1[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t}", "if(k+1==str2[j].length()&&ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch1[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}", "k+1==str2[j].length()&&ch3[k]==ch1[k]", "k+1==str2[j].length()", "k+1", "k", "1", "str2[j].length()", "str2[j].length", "str2[j]", "str2", "j", "ch3[k]==ch1[k]", "ch3[k]", "ch3", "k", "ch1[k]", "ch1", "k", "{\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t}", "tarou+=3", "tarou", "3", "if(ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch1[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}", "ch3[k]==ch1[k]", "ch3[k]", "ch3", "k", "ch1[k]", "ch1", "k", "{\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}", "continue;", "if(ch3[k]>ch1[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}", "ch3[k]>ch1[k]", "ch3[k]", "ch3", "k", "ch1[k]", "ch1", "k", "{\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}", "hanako+=3", "hanako", "3", "break;", "if(ch3[k]<ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}", "ch3[k]<ch1[k]", "ch3[k]", "ch3", "k", "ch1[k]", "ch1", "k", "{\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}", "tarou+=3", "tarou", "3", "break;", "System.out.println(tarou+\" \"+hanako)", "System.out.println", "System.out", "System", "System.out", "tarou+\" \"+hanako", "tarou+\" \"+hanako", "tarou", "\" \"", "hanako", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tString [] str1=new String[n];\n\t\tString [] str2=new String[n];\n\t\tint tarou=0;\n\t\tint hanako=0;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tstr1[i]=sc.next();\n\t\t\tstr2[i]=sc.next();\n\t\t}\n\t\tfor(int j=0;j<n;j++) {\n\t\t\tchar [] ch1=str1[j].toCharArray();\n\t\t\tchar [] ch2=str2[j].toCharArray();\n\t\t\tif(str1[j].length()<=str2[j].length()) {\n\t\t\t\tchar [] ch3=new char[str2[j].length()];\n\t\t\t\tch3=str1[j].toCharArray();\n\t\t\t\tfor(int k=0;k<str1[j].length();k++) {\n\t\t\t\t\tif(str1[j].length()==str2[j].length()) {\n\t\t\t\t\t\tif(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\ttarou+=1;\n\t\t\t\t\t\t\thanako+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tif(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(str1[j].length()>str2[j].length()) {\n\t\t\t\tchar [] ch3=new char [str1[j].length()];\n\t\t\t\tch3=str2[j].toCharArray();\n\t\t\t\tfor(int k=0;k<str2[j].length();k++) {\n\t\t\t\t\t\tif(k+1==str2[j].length()&&ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch1[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\tSystem.out.println(tarou+\" \"+hanako);\n\t\tsc.close();\n\t\t}\n\n\t}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tString [] str1=new String[n];\n\t\tString [] str2=new String[n];\n\t\tint tarou=0;\n\t\tint hanako=0;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tstr1[i]=sc.next();\n\t\t\tstr2[i]=sc.next();\n\t\t}\n\t\tfor(int j=0;j<n;j++) {\n\t\t\tchar [] ch1=str1[j].toCharArray();\n\t\t\tchar [] ch2=str2[j].toCharArray();\n\t\t\tif(str1[j].length()<=str2[j].length()) {\n\t\t\t\tchar [] ch3=new char[str2[j].length()];\n\t\t\t\tch3=str1[j].toCharArray();\n\t\t\t\tfor(int k=0;k<str1[j].length();k++) {\n\t\t\t\t\tif(str1[j].length()==str2[j].length()) {\n\t\t\t\t\t\tif(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\ttarou+=1;\n\t\t\t\t\t\t\thanako+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tif(k+1==str1[j].length()&&ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch2[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch2[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch2[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(str1[j].length()>str2[j].length()) {\n\t\t\t\tchar [] ch3=new char [str1[j].length()];\n\t\t\t\tch3=str2[j].toCharArray();\n\t\t\t\tfor(int k=0;k<str2[j].length();k++) {\n\t\t\t\t\t\tif(k+1==str2[j].length()&&ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]==ch1[k]) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]>ch1[k]) {\n\t\t\t\t\t\t\thanako+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ch3[k]<ch1[k]) {\n\t\t\t\t\t\t\ttarou+=3;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\tSystem.out.println(tarou+\" \"+hanako);\n\t\tsc.close();\n\t\t}\n\n\t}", "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 [] str1=new String[n]; String [] str2=new String[n]; int tarou=0; int hanako=0; for(int i=0;i<n;i++) { str1[i]=sc.next(); str2[i]=sc.next(); } for(int j=0;j<n;j++) { char [] ch1=str1[j].toCharArray(); char [] ch2=str2[j].toCharArray(); if(str1[j].length()<=str2[j].length()) { char [] ch3=new char[str2[j].length()]; ch3=str1[j].toCharArray(); for(int k=0;k<str1[j].length();k++) { if(str1[j].length()==str2[j].length()) { if(k+1==str1[j].length()&&ch3[k]==ch2[k]) { tarou+=1; hanako+=1; } else if(ch3[k]==ch2[k]) { continue; } else if(ch3[k]>ch2[k]) { tarou+=3; break; } else if(ch3[k]<ch2[k]) { hanako+=3; break; } } else { if(k+1==str1[j].length()&&ch3[k]==ch2[k]) { hanako+=3; } else if(ch3[k]==ch2[k]) { continue; } else if(ch3[k]>ch2[k]) { tarou+=3; break; } else if(ch3[k]<ch2[k]) { hanako+=3; break; } } } } else if(str1[j].length()>str2[j].length()) { char [] ch3=new char [str1[j].length()]; ch3=str2[j].toCharArray(); for(int k=0;k<str2[j].length();k++) { if(k+1==str2[j].length()&&ch3[k]==ch1[k]) { tarou+=3; } else if(ch3[k]==ch1[k]) { continue; } else if(ch3[k]>ch1[k]) { hanako+=3; break; } else if(ch3[k]<ch1[k]) { tarou+=3; break; } } } } System.out.println(tarou+" "+hanako); sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 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, 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 ], [ 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 ], [ 6, 85 ], [ 85, 86 ], [ 0, 87 ], [ 87, 88 ], [ 87, 89 ] ]
[ "import java.util.Scanner;\n\npublic class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint n = scanner.nextInt();\n\t\tint p0=0, p1=0;\n\t\t\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tString in0 = scanner.next();\n\t\t\tString in1 = scanner.next();\n\t\t\t\n\t\t\tif(in0.compareTo(in1) == 0)\n\t\t\t{\n\t\t\t\tp0 += 1;\n\t\t\t\tp1 += 1;\n\t\t\t}\n\t\t\telse if(in0.compareTo(in1) > 0)\n\t\t\t{\n\t\t\t\tp0 += 3;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tp1 += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(p0+\" \"+p1);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint n = scanner.nextInt();\n\t\tint p0=0, p1=0;\n\t\t\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tString in0 = scanner.next();\n\t\t\tString in1 = scanner.next();\n\t\t\t\n\t\t\tif(in0.compareTo(in1) == 0)\n\t\t\t{\n\t\t\t\tp0 += 1;\n\t\t\t\tp1 += 1;\n\t\t\t}\n\t\t\telse if(in0.compareTo(in1) > 0)\n\t\t\t{\n\t\t\t\tp0 += 3;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tp1 += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(p0+\" \"+p1);\n\t}\n}", "Main", "public static void main(String[] args)\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint n = scanner.nextInt();\n\t\tint p0=0, p1=0;\n\t\t\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tString in0 = scanner.next();\n\t\t\tString in1 = scanner.next();\n\t\t\t\n\t\t\tif(in0.compareTo(in1) == 0)\n\t\t\t{\n\t\t\t\tp0 += 1;\n\t\t\t\tp1 += 1;\n\t\t\t}\n\t\t\telse if(in0.compareTo(in1) > 0)\n\t\t\t{\n\t\t\t\tp0 += 3;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tp1 += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(p0+\" \"+p1);\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint n = scanner.nextInt();\n\t\tint p0=0, p1=0;\n\t\t\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tString in0 = scanner.next();\n\t\t\tString in1 = scanner.next();\n\t\t\t\n\t\t\tif(in0.compareTo(in1) == 0)\n\t\t\t{\n\t\t\t\tp0 += 1;\n\t\t\t\tp1 += 1;\n\t\t\t}\n\t\t\telse if(in0.compareTo(in1) > 0)\n\t\t\t{\n\t\t\t\tp0 += 3;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tp1 += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(p0+\" \"+p1);\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int n = scanner.nextInt();", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "int p0=0", "p0", "0", "p1=0;", "p1", "0", "for(int i=0; i<n; i++)\n\t\t{\n\t\t\tString in0 = scanner.next();\n\t\t\tString in1 = scanner.next();\n\t\t\t\n\t\t\tif(in0.compareTo(in1) == 0)\n\t\t\t{\n\t\t\t\tp0 += 1;\n\t\t\t\tp1 += 1;\n\t\t\t}\n\t\t\telse if(in0.compareTo(in1) > 0)\n\t\t\t{\n\t\t\t\tp0 += 3;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tp1 += 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 in0 = scanner.next();\n\t\t\tString in1 = scanner.next();\n\t\t\t\n\t\t\tif(in0.compareTo(in1) == 0)\n\t\t\t{\n\t\t\t\tp0 += 1;\n\t\t\t\tp1 += 1;\n\t\t\t}\n\t\t\telse if(in0.compareTo(in1) > 0)\n\t\t\t{\n\t\t\t\tp0 += 3;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tp1 += 3;\n\t\t\t}\n\t\t}", "{\n\t\t\tString in0 = scanner.next();\n\t\t\tString in1 = scanner.next();\n\t\t\t\n\t\t\tif(in0.compareTo(in1) == 0)\n\t\t\t{\n\t\t\t\tp0 += 1;\n\t\t\t\tp1 += 1;\n\t\t\t}\n\t\t\telse if(in0.compareTo(in1) > 0)\n\t\t\t{\n\t\t\t\tp0 += 3;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tp1 += 3;\n\t\t\t}\n\t\t}", "String in0 = scanner.next();", "in0", "scanner.next()", "scanner.next", "scanner", "String in1 = scanner.next();", "in1", "scanner.next()", "scanner.next", "scanner", "if(in0.compareTo(in1) == 0)\n\t\t\t{\n\t\t\t\tp0 += 1;\n\t\t\t\tp1 += 1;\n\t\t\t}\n\t\t\telse if(in0.compareTo(in1) > 0)\n\t\t\t{\n\t\t\t\tp0 += 3;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tp1 += 3;\n\t\t\t}", "in0.compareTo(in1) == 0", "in0.compareTo(in1)", "in0.compareTo", "in0", "in1", "0", "{\n\t\t\t\tp0 += 1;\n\t\t\t\tp1 += 1;\n\t\t\t}", "p0 += 1", "p0", "1", "p1 += 1", "p1", "1", "if(in0.compareTo(in1) > 0)\n\t\t\t{\n\t\t\t\tp0 += 3;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tp1 += 3;\n\t\t\t}", "in0.compareTo(in1) > 0", "in0.compareTo(in1)", "in0.compareTo", "in0", "in1", "0", "{\n\t\t\t\tp0 += 3;\n\t\t\t}", "p0 += 3", "p0", "3", "{\n\t\t\t\tp1 += 3;\n\t\t\t}", "p1 += 3", "p1", "3", "System.out.println(p0+\" \"+p1)", "System.out.println", "System.out", "System", "System.out", "p0+\" \"+p1", "p0+\" \"+p1", "p0", "\" \"", "p1", "String[] args", "args", "public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint n = scanner.nextInt();\n\t\tint p0=0, p1=0;\n\t\t\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tString in0 = scanner.next();\n\t\t\tString in1 = scanner.next();\n\t\t\t\n\t\t\tif(in0.compareTo(in1) == 0)\n\t\t\t{\n\t\t\t\tp0 += 1;\n\t\t\t\tp1 += 1;\n\t\t\t}\n\t\t\telse if(in0.compareTo(in1) > 0)\n\t\t\t{\n\t\t\t\tp0 += 3;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tp1 += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(p0+\" \"+p1);\n\t}\n}", "public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint n = scanner.nextInt();\n\t\tint p0=0, p1=0;\n\t\t\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tString in0 = scanner.next();\n\t\t\tString in1 = scanner.next();\n\t\t\t\n\t\t\tif(in0.compareTo(in1) == 0)\n\t\t\t{\n\t\t\t\tp0 += 1;\n\t\t\t\tp1 += 1;\n\t\t\t}\n\t\t\telse if(in0.compareTo(in1) > 0)\n\t\t\t{\n\t\t\t\tp0 += 3;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tp1 += 3;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(p0+\" \"+p1);\n\t}\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 p0=0, p1=0; for(int i=0; i<n; i++) { String in0 = scanner.next(); String in1 = scanner.next(); if(in0.compareTo(in1) == 0) { p0 += 1; p1 += 1; } else if(in0.compareTo(in1) > 0) { p0 += 3; } else { p1 += 3; } } System.out.println(p0+" "+p1); } }
[ 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, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 18, 13, 17, 41, 13, 4, 18, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 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, 14, 2, 2, 13, 2, 18, 13, 13, 17, 2, 13, 2, 18, 13, 13, 17, 30, 14, 2, 18, 13, 13, 18, 13, 13, 30, 0, 13, 17, 14, 2, 18, 13, 13, 18, 13, 13, 30, 0, 13, 17, 30, 40, 13, 40, 13, 3, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 168, 5 ], [ 168, 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 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 41, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 41, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 67, 77 ], [ 77, 78 ], [ 78, 79 ], [ 67, 80 ], [ 81, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 87, 88 ], [ 87, 89 ], [ 82, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 82, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 100, 102 ], [ 95, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 95, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 109, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 119, 123 ], [ 108, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 130, 131 ], [ 130, 132 ], [ 125, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 125, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 138, 142 ], [ 142, 143 ], [ 142, 144 ], [ 137, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 137, 149 ], [ 149, 150 ], [ 150, 151 ], [ 149, 152 ], [ 152, 153 ], [ 124, 154 ], [ 8, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 155, 160 ], [ 161, 161 ], [ 161, 162 ], [ 161, 163 ], [ 161, 164 ], [ 6, 165 ], [ 165, 166 ], [ 0, 167 ], [ 167, 168 ], [ 167, 169 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int n = Integer.parseInt(line);\n\n int taro = 0;\n int hanako = 0;\n for(int i = 0; i < n; i++) {\n line = sc.nextLine();\n String[] l = line.split(\" \");\n char[] t = l[0].toCharArray();\n char[] h = l[1].toCharArray();\n\n for(int j = 0; j < t.length; j++) {\n if(t[j] < h[j]) {\n hanako += 3;\n break;\n } else if( t[j] > h[j]) {\n taro += 3;\n break;\n } else if(j == t.length - 1 || j == h.length - 1) {\n if(t.length < h.length) {\n hanako += 3;\n } else if(t.length > h.length) {\n taro += 3;\n } else {\n hanako++;\n taro++;\n }\n break;\n }\n }\n }\n\n System.out.println(taro + \" \" + hanako);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int n = Integer.parseInt(line);\n\n int taro = 0;\n int hanako = 0;\n for(int i = 0; i < n; i++) {\n line = sc.nextLine();\n String[] l = line.split(\" \");\n char[] t = l[0].toCharArray();\n char[] h = l[1].toCharArray();\n\n for(int j = 0; j < t.length; j++) {\n if(t[j] < h[j]) {\n hanako += 3;\n break;\n } else if( t[j] > h[j]) {\n taro += 3;\n break;\n } else if(j == t.length - 1 || j == h.length - 1) {\n if(t.length < h.length) {\n hanako += 3;\n } else if(t.length > h.length) {\n taro += 3;\n } else {\n hanako++;\n taro++;\n }\n break;\n }\n }\n }\n\n System.out.println(taro + \" \" + hanako);\n }\n}", "Main", "public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int n = Integer.parseInt(line);\n\n int taro = 0;\n int hanako = 0;\n for(int i = 0; i < n; i++) {\n line = sc.nextLine();\n String[] l = line.split(\" \");\n char[] t = l[0].toCharArray();\n char[] h = l[1].toCharArray();\n\n for(int j = 0; j < t.length; j++) {\n if(t[j] < h[j]) {\n hanako += 3;\n break;\n } else if( t[j] > h[j]) {\n taro += 3;\n break;\n } else if(j == t.length - 1 || j == h.length - 1) {\n if(t.length < h.length) {\n hanako += 3;\n } else if(t.length > h.length) {\n taro += 3;\n } else {\n hanako++;\n taro++;\n }\n break;\n }\n }\n }\n\n System.out.println(taro + \" \" + hanako);\n }", "main", "{\n\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int n = Integer.parseInt(line);\n\n int taro = 0;\n int hanako = 0;\n for(int i = 0; i < n; i++) {\n line = sc.nextLine();\n String[] l = line.split(\" \");\n char[] t = l[0].toCharArray();\n char[] h = l[1].toCharArray();\n\n for(int j = 0; j < t.length; j++) {\n if(t[j] < h[j]) {\n hanako += 3;\n break;\n } else if( t[j] > h[j]) {\n taro += 3;\n break;\n } else if(j == t.length - 1 || j == h.length - 1) {\n if(t.length < h.length) {\n hanako += 3;\n } else if(t.length > h.length) {\n taro += 3;\n } else {\n hanako++;\n taro++;\n }\n break;\n }\n }\n }\n\n System.out.println(taro + \" \" + hanako);\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 line = sc.nextLine();\n String[] l = line.split(\" \");\n char[] t = l[0].toCharArray();\n char[] h = l[1].toCharArray();\n\n for(int j = 0; j < t.length; j++) {\n if(t[j] < h[j]) {\n hanako += 3;\n break;\n } else if( t[j] > h[j]) {\n taro += 3;\n break;\n } else if(j == t.length - 1 || j == h.length - 1) {\n if(t.length < h.length) {\n hanako += 3;\n } else if(t.length > h.length) {\n taro += 3;\n } else {\n hanako++;\n taro++;\n }\n break;\n }\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n line = sc.nextLine();\n String[] l = line.split(\" \");\n char[] t = l[0].toCharArray();\n char[] h = l[1].toCharArray();\n\n for(int j = 0; j < t.length; j++) {\n if(t[j] < h[j]) {\n hanako += 3;\n break;\n } else if( t[j] > h[j]) {\n taro += 3;\n break;\n } else if(j == t.length - 1 || j == h.length - 1) {\n if(t.length < h.length) {\n hanako += 3;\n } else if(t.length > h.length) {\n taro += 3;\n } else {\n hanako++;\n taro++;\n }\n break;\n }\n }\n }", "{\n line = sc.nextLine();\n String[] l = line.split(\" \");\n char[] t = l[0].toCharArray();\n char[] h = l[1].toCharArray();\n\n for(int j = 0; j < t.length; j++) {\n if(t[j] < h[j]) {\n hanako += 3;\n break;\n } else if( t[j] > h[j]) {\n taro += 3;\n break;\n } else if(j == t.length - 1 || j == h.length - 1) {\n if(t.length < h.length) {\n hanako += 3;\n } else if(t.length > h.length) {\n taro += 3;\n } else {\n hanako++;\n taro++;\n }\n break;\n }\n }\n }", "line = sc.nextLine()", "line", "sc.nextLine()", "sc.nextLine", "sc", "String[] l = line.split(\" \");", "l", "line.split(\" \")", "line.split", "line", "\" \"", "char[] t = l[0].toCharArray();", "t", "l[0].toCharArray()", "l[0].toCharArray", "l[0]", "l", "0", "char[] h = l[1].toCharArray();", "h", "l[1].toCharArray()", "l[1].toCharArray", "l[1]", "l", "1", "for(int j = 0; j < t.length; j++) {\n if(t[j] < h[j]) {\n hanako += 3;\n break;\n } else if( t[j] > h[j]) {\n taro += 3;\n break;\n } else if(j == t.length - 1 || j == h.length - 1) {\n if(t.length < h.length) {\n hanako += 3;\n } else if(t.length > h.length) {\n taro += 3;\n } else {\n hanako++;\n taro++;\n }\n break;\n }\n }", "int j = 0;", "int j = 0;", "j", "0", "j < t.length", "j", "t.length", "t", "t.length", "j++", "j++", "j", "{\n if(t[j] < h[j]) {\n hanako += 3;\n break;\n } else if( t[j] > h[j]) {\n taro += 3;\n break;\n } else if(j == t.length - 1 || j == h.length - 1) {\n if(t.length < h.length) {\n hanako += 3;\n } else if(t.length > h.length) {\n taro += 3;\n } else {\n hanako++;\n taro++;\n }\n break;\n }\n }", "{\n if(t[j] < h[j]) {\n hanako += 3;\n break;\n } else if( t[j] > h[j]) {\n taro += 3;\n break;\n } else if(j == t.length - 1 || j == h.length - 1) {\n if(t.length < h.length) {\n hanako += 3;\n } else if(t.length > h.length) {\n taro += 3;\n } else {\n hanako++;\n taro++;\n }\n break;\n }\n }", "if(t[j] < h[j]) {\n hanako += 3;\n break;\n } else if( t[j] > h[j]) {\n taro += 3;\n break;\n } else if(j == t.length - 1 || j == h.length - 1) {\n if(t.length < h.length) {\n hanako += 3;\n } else if(t.length > h.length) {\n taro += 3;\n } else {\n hanako++;\n taro++;\n }\n break;\n }", "t[j] < h[j]", "t[j]", "t", "j", "h[j]", "h", "j", "{\n hanako += 3;\n break;\n }", "hanako += 3", "hanako", "3", "break;", "if( t[j] > h[j]) {\n taro += 3;\n break;\n } else if(j == t.length - 1 || j == h.length - 1) {\n if(t.length < h.length) {\n hanako += 3;\n } else if(t.length > h.length) {\n taro += 3;\n } else {\n hanako++;\n taro++;\n }\n break;\n }", "t[j] > h[j]", "t[j]", "t", "j", "h[j]", "h", "j", "{\n taro += 3;\n break;\n }", "taro += 3", "taro", "3", "break;", "if(j == t.length - 1 || j == h.length - 1) {\n if(t.length < h.length) {\n hanako += 3;\n } else if(t.length > h.length) {\n taro += 3;\n } else {\n hanako++;\n taro++;\n }\n break;\n }", "j == t.length - 1 || j == h.length - 1", "j == t.length - 1", "j", "t.length - 1", "t.length", "t", "t.length", "1", "j == h.length - 1", "j", "h.length - 1", "h.length", "h", "h.length", "1", "{\n if(t.length < h.length) {\n hanako += 3;\n } else if(t.length > h.length) {\n taro += 3;\n } else {\n hanako++;\n taro++;\n }\n break;\n }", "if(t.length < h.length) {\n hanako += 3;\n } else if(t.length > h.length) {\n taro += 3;\n } else {\n hanako++;\n taro++;\n }", "t.length < h.length", "t.length", "t", "t.length", "h.length", "h", "h.length", "{\n hanako += 3;\n }", "hanako += 3", "hanako", "3", "if(t.length > h.length) {\n taro += 3;\n } else {\n hanako++;\n taro++;\n }", "t.length > h.length", "t.length", "t", "t.length", "h.length", "h", "h.length", "{\n taro += 3;\n }", "taro += 3", "taro", "3", "{\n hanako++;\n taro++;\n }", "hanako++", "hanako", "taro++", "taro", "break;", "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\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int n = Integer.parseInt(line);\n\n int taro = 0;\n int hanako = 0;\n for(int i = 0; i < n; i++) {\n line = sc.nextLine();\n String[] l = line.split(\" \");\n char[] t = l[0].toCharArray();\n char[] h = l[1].toCharArray();\n\n for(int j = 0; j < t.length; j++) {\n if(t[j] < h[j]) {\n hanako += 3;\n break;\n } else if( t[j] > h[j]) {\n taro += 3;\n break;\n } else if(j == t.length - 1 || j == h.length - 1) {\n if(t.length < h.length) {\n hanako += 3;\n } else if(t.length > h.length) {\n taro += 3;\n } else {\n hanako++;\n taro++;\n }\n break;\n }\n }\n }\n\n System.out.println(taro + \" \" + hanako);\n }\n}", "public class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n int n = Integer.parseInt(line);\n\n int taro = 0;\n int hanako = 0;\n for(int i = 0; i < n; i++) {\n line = sc.nextLine();\n String[] l = line.split(\" \");\n char[] t = l[0].toCharArray();\n char[] h = l[1].toCharArray();\n\n for(int j = 0; j < t.length; j++) {\n if(t[j] < h[j]) {\n hanako += 3;\n break;\n } else if( t[j] > h[j]) {\n taro += 3;\n break;\n } else if(j == t.length - 1 || j == h.length - 1) {\n if(t.length < h.length) {\n hanako += 3;\n } else if(t.length > h.length) {\n taro += 3;\n } else {\n hanako++;\n taro++;\n }\n break;\n }\n }\n }\n\n System.out.println(taro + \" \" + hanako);\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++) { line = sc.nextLine(); String[] l = line.split(" "); char[] t = l[0].toCharArray(); char[] h = l[1].toCharArray(); for(int j = 0; j < t.length; j++) { if(t[j] < h[j]) { hanako += 3; break; } else if( t[j] > h[j]) { taro += 3; break; } else if(j == t.length - 1 || j == h.length - 1) { if(t.length < h.length) { hanako += 3; } else if(t.length > h.length) { taro += 3; } else { hanako++; taro++; } break; } } } System.out.println(taro + " " + hanako); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 41, 13, 41, 13, 41, 13, 20, 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, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 17, 0, 13, 4, 18, 18, 13, 13, 18, 13, 13, 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, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 134, 5 ], [ 134, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 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 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 8, 36 ], [ 36, 37 ], [ 36, 38 ], [ 8, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 40, 48 ], [ 48, 49 ], [ 49, 50 ], [ 40, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 58, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 65, 66 ], [ 8, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 72, 73 ], [ 72, 74 ], [ 67, 75 ], [ 75, 76 ], [ 76, 77 ], [ 67, 78 ], [ 79, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 90, 91 ], [ 90, 92 ], [ 79, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 93, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 105, 106 ], [ 106, 107 ], [ 105, 108 ], [ 108, 109 ], [ 101, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 8, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 124, 124 ], [ 124, 125 ], [ 124, 126 ], [ 124, 127 ], [ 8, 128 ], [ 128, 129 ], [ 129, 130 ], [ 6, 131 ], [ 131, 132 ], [ 0, 133 ], [ 133, 134 ], [ 133, 135 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\n public static void main(String[] args) {\n int taro_point = 0;\n int hanako_point = 0;\n int card_num = 0;\n int result_comp;\n\n String[] taro_card,hanako_card;\n\n Scanner sc= new Scanner( System.in );\n\n card_num = sc.nextInt();\n\n taro_card = new String[card_num];\n hanako_card = new String[card_num];\n\n for ( int i = 0 ; i < card_num ; i++ ) {\n taro_card[i] = sc.next();\n hanako_card[i] = sc.next();\n }\n\n for ( int i = 0 ; i < card_num ; i++ ) {\n result_comp = 0;\n result_comp = taro_card[i].compareTo(hanako_card[i]);\n\n if ( result_comp < 0 ) {\n hanako_point += 3;\n }else if ( result_comp == 0 ) {\n taro_point ++;\n hanako_point ++;\n }else if ( result_comp > 0 ) {\n taro_point += 3;\n }\n\n }\n System.out.println( taro_point + \" \" + hanako_point );\n sc.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\n public static void main(String[] args) {\n int taro_point = 0;\n int hanako_point = 0;\n int card_num = 0;\n int result_comp;\n\n String[] taro_card,hanako_card;\n\n Scanner sc= new Scanner( System.in );\n\n card_num = sc.nextInt();\n\n taro_card = new String[card_num];\n hanako_card = new String[card_num];\n\n for ( int i = 0 ; i < card_num ; i++ ) {\n taro_card[i] = sc.next();\n hanako_card[i] = sc.next();\n }\n\n for ( int i = 0 ; i < card_num ; i++ ) {\n result_comp = 0;\n result_comp = taro_card[i].compareTo(hanako_card[i]);\n\n if ( result_comp < 0 ) {\n hanako_point += 3;\n }else if ( result_comp == 0 ) {\n taro_point ++;\n hanako_point ++;\n }else if ( result_comp > 0 ) {\n taro_point += 3;\n }\n\n }\n System.out.println( taro_point + \" \" + hanako_point );\n sc.close();\n }\n}", "Main", "public static void main(String[] args) {\n int taro_point = 0;\n int hanako_point = 0;\n int card_num = 0;\n int result_comp;\n\n String[] taro_card,hanako_card;\n\n Scanner sc= new Scanner( System.in );\n\n card_num = sc.nextInt();\n\n taro_card = new String[card_num];\n hanako_card = new String[card_num];\n\n for ( int i = 0 ; i < card_num ; i++ ) {\n taro_card[i] = sc.next();\n hanako_card[i] = sc.next();\n }\n\n for ( int i = 0 ; i < card_num ; i++ ) {\n result_comp = 0;\n result_comp = taro_card[i].compareTo(hanako_card[i]);\n\n if ( result_comp < 0 ) {\n hanako_point += 3;\n }else if ( result_comp == 0 ) {\n taro_point ++;\n hanako_point ++;\n }else if ( result_comp > 0 ) {\n taro_point += 3;\n }\n\n }\n System.out.println( taro_point + \" \" + hanako_point );\n sc.close();\n }", "main", "{\n int taro_point = 0;\n int hanako_point = 0;\n int card_num = 0;\n int result_comp;\n\n String[] taro_card,hanako_card;\n\n Scanner sc= new Scanner( System.in );\n\n card_num = sc.nextInt();\n\n taro_card = new String[card_num];\n hanako_card = new String[card_num];\n\n for ( int i = 0 ; i < card_num ; i++ ) {\n taro_card[i] = sc.next();\n hanako_card[i] = sc.next();\n }\n\n for ( int i = 0 ; i < card_num ; i++ ) {\n result_comp = 0;\n result_comp = taro_card[i].compareTo(hanako_card[i]);\n\n if ( result_comp < 0 ) {\n hanako_point += 3;\n }else if ( result_comp == 0 ) {\n taro_point ++;\n hanako_point ++;\n }else if ( result_comp > 0 ) {\n taro_point += 3;\n }\n\n }\n System.out.println( taro_point + \" \" + hanako_point );\n sc.close();\n }", "int taro_point = 0;", "taro_point", "0", "int hanako_point = 0;", "hanako_point", "0", "int card_num = 0;", "card_num", "0", "int result_comp;", "result_comp", "String[] taro_card", "taro_card", "hanako_card;", "hanako_card", "Scanner sc= new Scanner( System.in );", "sc", "new Scanner( System.in )", "card_num = sc.nextInt()", "card_num", "sc.nextInt()", "sc.nextInt", "sc", "taro_card = new String[card_num]", "taro_card", "new String[card_num]", "card_num", "hanako_card = new String[card_num]", "hanako_card", "new String[card_num]", "card_num", "for ( int i = 0 ; i < card_num ; i++ ) {\n taro_card[i] = sc.next();\n hanako_card[i] = sc.next();\n }", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < card_num", "i", "card_num", "i++", "i++", "i", "{\n taro_card[i] = sc.next();\n hanako_card[i] = sc.next();\n }", "{\n taro_card[i] = sc.next();\n hanako_card[i] = sc.next();\n }", "taro_card[i] = sc.next()", "taro_card[i]", "taro_card", "i", "sc.next()", "sc.next", "sc", "hanako_card[i] = sc.next()", "hanako_card[i]", "hanako_card", "i", "sc.next()", "sc.next", "sc", "for ( int i = 0 ; i < card_num ; i++ ) {\n result_comp = 0;\n result_comp = taro_card[i].compareTo(hanako_card[i]);\n\n if ( result_comp < 0 ) {\n hanako_point += 3;\n }else if ( result_comp == 0 ) {\n taro_point ++;\n hanako_point ++;\n }else if ( result_comp > 0 ) {\n taro_point += 3;\n }\n\n }", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < card_num", "i", "card_num", "i++", "i++", "i", "{\n result_comp = 0;\n result_comp = taro_card[i].compareTo(hanako_card[i]);\n\n if ( result_comp < 0 ) {\n hanako_point += 3;\n }else if ( result_comp == 0 ) {\n taro_point ++;\n hanako_point ++;\n }else if ( result_comp > 0 ) {\n taro_point += 3;\n }\n\n }", "{\n result_comp = 0;\n result_comp = taro_card[i].compareTo(hanako_card[i]);\n\n if ( result_comp < 0 ) {\n hanako_point += 3;\n }else if ( result_comp == 0 ) {\n taro_point ++;\n hanako_point ++;\n }else if ( result_comp > 0 ) {\n taro_point += 3;\n }\n\n }", "result_comp = 0", "result_comp", "0", "result_comp = taro_card[i].compareTo(hanako_card[i])", "result_comp", "taro_card[i].compareTo(hanako_card[i])", "taro_card[i].compareTo", "taro_card[i]", "taro_card", "i", "hanako_card[i]", "hanako_card", "i", "if ( result_comp < 0 ) {\n hanako_point += 3;\n }else if ( result_comp == 0 ) {\n taro_point ++;\n hanako_point ++;\n }else if ( result_comp > 0 ) {\n taro_point += 3;\n }", "result_comp < 0", "result_comp", "0", "{\n hanako_point += 3;\n }", "hanako_point += 3", "hanako_point", "3", "if ( result_comp == 0 ) {\n taro_point ++;\n hanako_point ++;\n }else if ( result_comp > 0 ) {\n taro_point += 3;\n }", "result_comp == 0", "result_comp", "0", "{\n taro_point ++;\n hanako_point ++;\n }", "taro_point ++", "taro_point", "hanako_point ++", "hanako_point", "if ( result_comp > 0 ) {\n taro_point += 3;\n }", "result_comp > 0", "result_comp", "0", "{\n taro_point += 3;\n }", "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", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\n\n public static void main(String[] args) {\n int taro_point = 0;\n int hanako_point = 0;\n int card_num = 0;\n int result_comp;\n\n String[] taro_card,hanako_card;\n\n Scanner sc= new Scanner( System.in );\n\n card_num = sc.nextInt();\n\n taro_card = new String[card_num];\n hanako_card = new String[card_num];\n\n for ( int i = 0 ; i < card_num ; i++ ) {\n taro_card[i] = sc.next();\n hanako_card[i] = sc.next();\n }\n\n for ( int i = 0 ; i < card_num ; i++ ) {\n result_comp = 0;\n result_comp = taro_card[i].compareTo(hanako_card[i]);\n\n if ( result_comp < 0 ) {\n hanako_point += 3;\n }else if ( result_comp == 0 ) {\n taro_point ++;\n hanako_point ++;\n }else if ( result_comp > 0 ) {\n taro_point += 3;\n }\n\n }\n System.out.println( taro_point + \" \" + hanako_point );\n sc.close();\n }\n}", "public class Main {\n\n\n public static void main(String[] args) {\n int taro_point = 0;\n int hanako_point = 0;\n int card_num = 0;\n int result_comp;\n\n String[] taro_card,hanako_card;\n\n Scanner sc= new Scanner( System.in );\n\n card_num = sc.nextInt();\n\n taro_card = new String[card_num];\n hanako_card = new String[card_num];\n\n for ( int i = 0 ; i < card_num ; i++ ) {\n taro_card[i] = sc.next();\n hanako_card[i] = sc.next();\n }\n\n for ( int i = 0 ; i < card_num ; i++ ) {\n result_comp = 0;\n result_comp = taro_card[i].compareTo(hanako_card[i]);\n\n if ( result_comp < 0 ) {\n hanako_point += 3;\n }else if ( result_comp == 0 ) {\n taro_point ++;\n hanako_point ++;\n }else if ( result_comp > 0 ) {\n taro_point += 3;\n }\n\n }\n System.out.println( taro_point + \" \" + hanako_point );\n sc.close();\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { int taro_point = 0; int hanako_point = 0; int card_num = 0; int result_comp; String[] taro_card,hanako_card; Scanner sc= new Scanner( System.in ); card_num = sc.nextInt(); taro_card = new String[card_num]; hanako_card = new String[card_num]; for ( int i = 0 ; i < card_num ; i++ ) { taro_card[i] = sc.next(); hanako_card[i] = sc.next(); } for ( int i = 0 ; i < card_num ; i++ ) { result_comp = 0; result_comp = taro_card[i].compareTo(hanako_card[i]); if ( result_comp < 0 ) { hanako_point += 3; }else if ( result_comp == 0 ) { taro_point ++; hanako_point ++; }else if ( result_comp > 0 ) { taro_point += 3; } } System.out.println( taro_point + " " + hanako_point ); sc.close(); } }
[ 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, 4, 18, 18, 13, 17, 18, 13, 17, 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, 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 ], [ 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 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 54, 55 ], [ 54, 56 ], [ 38, 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 ], [ 66, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 66, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 8, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 84, 84 ], [ 84, 85 ], [ 84, 86 ], [ 84, 87 ], [ 6, 88 ], [ 88, 89 ], [ 0, 90 ], [ 90, 91 ], [ 90, 92 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n sc.nextLine();\n int pa = 0;\n int pb = 0;\n for (int i = 0; i < n; i++) {\n String[] words = sc.nextLine().split(\" \");\n int c = words[0].compareTo(words[1]);\n if (c == 0) {\n pa++;\n pb++;\n } else if (c > 0) {\n pa += 3;\n } else {\n pb += 3;\n }\n }\n System.out.println(pa + \" \" + pb);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n sc.nextLine();\n int pa = 0;\n int pb = 0;\n for (int i = 0; i < n; i++) {\n String[] words = sc.nextLine().split(\" \");\n int c = words[0].compareTo(words[1]);\n if (c == 0) {\n pa++;\n pb++;\n } else if (c > 0) {\n pa += 3;\n } else {\n pb += 3;\n }\n }\n System.out.println(pa + \" \" + pb);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n sc.nextLine();\n int pa = 0;\n int pb = 0;\n for (int i = 0; i < n; i++) {\n String[] words = sc.nextLine().split(\" \");\n int c = words[0].compareTo(words[1]);\n if (c == 0) {\n pa++;\n pb++;\n } else if (c > 0) {\n pa += 3;\n } else {\n pb += 3;\n }\n }\n System.out.println(pa + \" \" + pb);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n sc.nextLine();\n int pa = 0;\n int pb = 0;\n for (int i = 0; i < n; i++) {\n String[] words = sc.nextLine().split(\" \");\n int c = words[0].compareTo(words[1]);\n if (c == 0) {\n pa++;\n pb++;\n } else if (c > 0) {\n pa += 3;\n } else {\n pb += 3;\n }\n }\n System.out.println(pa + \" \" + pb);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "sc.nextLine()", "sc.nextLine", "sc", "int pa = 0;", "pa", "0", "int pb = 0;", "pb", "0", "for (int i = 0; i < n; i++) {\n String[] words = sc.nextLine().split(\" \");\n int c = words[0].compareTo(words[1]);\n if (c == 0) {\n pa++;\n pb++;\n } else if (c > 0) {\n pa += 3;\n } else {\n pb += 3;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n String[] words = sc.nextLine().split(\" \");\n int c = words[0].compareTo(words[1]);\n if (c == 0) {\n pa++;\n pb++;\n } else if (c > 0) {\n pa += 3;\n } else {\n pb += 3;\n }\n }", "{\n String[] words = sc.nextLine().split(\" \");\n int c = words[0].compareTo(words[1]);\n if (c == 0) {\n pa++;\n pb++;\n } else if (c > 0) {\n pa += 3;\n } else {\n pb += 3;\n }\n }", "String[] words = sc.nextLine().split(\" \");", "words", "sc.nextLine().split(\" \")", "sc.nextLine().split", "sc.nextLine()", "sc.nextLine", "sc", "\" \"", "int c = words[0].compareTo(words[1]);", "c", "words[0].compareTo(words[1])", "words[0].compareTo", "words[0]", "words", "0", "words[1]", "words", "1", "if (c == 0) {\n pa++;\n pb++;\n } else if (c > 0) {\n pa += 3;\n } else {\n pb += 3;\n }", "c == 0", "c", "0", "{\n pa++;\n pb++;\n }", "pa++", "pa", "pb++", "pb", "if (c > 0) {\n pa += 3;\n } else {\n pb += 3;\n }", "c > 0", "c", "0", "{\n pa += 3;\n }", "pa += 3", "pa", "3", "{\n pb += 3;\n }", "pb += 3", "pb", "3", "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 public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n sc.nextLine();\n int pa = 0;\n int pb = 0;\n for (int i = 0; i < n; i++) {\n String[] words = sc.nextLine().split(\" \");\n int c = words[0].compareTo(words[1]);\n if (c == 0) {\n pa++;\n pb++;\n } else if (c > 0) {\n pa += 3;\n } else {\n pb += 3;\n }\n }\n System.out.println(pa + \" \" + pb);\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n sc.nextLine();\n int pa = 0;\n int pb = 0;\n for (int i = 0; i < n; i++) {\n String[] words = sc.nextLine().split(\" \");\n int c = words[0].compareTo(words[1]);\n if (c == 0) {\n pa++;\n pb++;\n } else if (c > 0) {\n pa += 3;\n } else {\n pb += 3;\n }\n }\n System.out.println(pa + \" \" + pb);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); sc.nextLine(); int pa = 0; int pb = 0; for (int i = 0; i < n; i++) { String[] words = sc.nextLine().split(" "); int c = words[0].compareTo(words[1]); if (c == 0) { pa++; pb++; } else if (c > 0) { pa += 3; } else { pb += 3; } } System.out.println(pa + " " + pb); } }
[ 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, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 89, 5 ], [ 89, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 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 ], [ 8, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 82, 82 ], [ 82, 83 ], [ 82, 84 ], [ 82, 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\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint num = sc.nextInt();\n\n\t\tint taroPoint = 0;\n\t\tint hanakoPoint = 0;\n\n\t\tfor(int i=0; i<num; i++) {\n\t\t\tString taro = sc.next();\n\t\t\tString hanako = sc.next();\n\t\t\tif(taro.compareTo(hanako) < 0) {\n\t\t\t\thanakoPoint += 3;\n\t\t\t} else if(taro.compareTo(hanako) > 0) {\n\t\t\t\ttaroPoint += 3;\n\t\t\t} else {\n\t\t\t\thanakoPoint++;\n\t\t\t\ttaroPoint++;\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\n\t\tSystem.out.println(taroPoint + \" \" + hanakoPoint);\n\n\t}\n\n}\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 num = sc.nextInt();\n\n\t\tint taroPoint = 0;\n\t\tint hanakoPoint = 0;\n\n\t\tfor(int i=0; i<num; i++) {\n\t\t\tString taro = sc.next();\n\t\t\tString hanako = sc.next();\n\t\t\tif(taro.compareTo(hanako) < 0) {\n\t\t\t\thanakoPoint += 3;\n\t\t\t} else if(taro.compareTo(hanako) > 0) {\n\t\t\t\ttaroPoint += 3;\n\t\t\t} else {\n\t\t\t\thanakoPoint++;\n\t\t\t\ttaroPoint++;\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\n\t\tSystem.out.println(taroPoint + \" \" + hanakoPoint);\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint num = sc.nextInt();\n\n\t\tint taroPoint = 0;\n\t\tint hanakoPoint = 0;\n\n\t\tfor(int i=0; i<num; i++) {\n\t\t\tString taro = sc.next();\n\t\t\tString hanako = sc.next();\n\t\t\tif(taro.compareTo(hanako) < 0) {\n\t\t\t\thanakoPoint += 3;\n\t\t\t} else if(taro.compareTo(hanako) > 0) {\n\t\t\t\ttaroPoint += 3;\n\t\t\t} else {\n\t\t\t\thanakoPoint++;\n\t\t\t\ttaroPoint++;\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\n\t\tSystem.out.println(taroPoint + \" \" + hanakoPoint);\n\n\t}", "main", "{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint num = sc.nextInt();\n\n\t\tint taroPoint = 0;\n\t\tint hanakoPoint = 0;\n\n\t\tfor(int i=0; i<num; i++) {\n\t\t\tString taro = sc.next();\n\t\t\tString hanako = sc.next();\n\t\t\tif(taro.compareTo(hanako) < 0) {\n\t\t\t\thanakoPoint += 3;\n\t\t\t} else if(taro.compareTo(hanako) > 0) {\n\t\t\t\ttaroPoint += 3;\n\t\t\t} else {\n\t\t\t\thanakoPoint++;\n\t\t\t\ttaroPoint++;\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\n\t\tSystem.out.println(taroPoint + \" \" + hanakoPoint);\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int num = sc.nextInt();", "num", "sc.nextInt()", "sc.nextInt", "sc", "int taroPoint = 0;", "taroPoint", "0", "int hanakoPoint = 0;", "hanakoPoint", "0", "for(int i=0; i<num; i++) {\n\t\t\tString taro = sc.next();\n\t\t\tString hanako = sc.next();\n\t\t\tif(taro.compareTo(hanako) < 0) {\n\t\t\t\thanakoPoint += 3;\n\t\t\t} else if(taro.compareTo(hanako) > 0) {\n\t\t\t\ttaroPoint += 3;\n\t\t\t} else {\n\t\t\t\thanakoPoint++;\n\t\t\t\ttaroPoint++;\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<num", "i", "num", "i++", "i++", "i", "{\n\t\t\tString taro = sc.next();\n\t\t\tString hanako = sc.next();\n\t\t\tif(taro.compareTo(hanako) < 0) {\n\t\t\t\thanakoPoint += 3;\n\t\t\t} else if(taro.compareTo(hanako) > 0) {\n\t\t\t\ttaroPoint += 3;\n\t\t\t} else {\n\t\t\t\thanakoPoint++;\n\t\t\t\ttaroPoint++;\n\t\t\t}\n\t\t}", "{\n\t\t\tString taro = sc.next();\n\t\t\tString hanako = sc.next();\n\t\t\tif(taro.compareTo(hanako) < 0) {\n\t\t\t\thanakoPoint += 3;\n\t\t\t} else if(taro.compareTo(hanako) > 0) {\n\t\t\t\ttaroPoint += 3;\n\t\t\t} else {\n\t\t\t\thanakoPoint++;\n\t\t\t\ttaroPoint++;\n\t\t\t}\n\t\t}", "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) {\n\t\t\t\thanakoPoint += 3;\n\t\t\t} else if(taro.compareTo(hanako) > 0) {\n\t\t\t\ttaroPoint += 3;\n\t\t\t} else {\n\t\t\t\thanakoPoint++;\n\t\t\t\ttaroPoint++;\n\t\t\t}", "taro.compareTo(hanako) < 0", "taro.compareTo(hanako)", "taro.compareTo", "taro", "hanako", "0", "{\n\t\t\t\thanakoPoint += 3;\n\t\t\t}", "hanakoPoint += 3", "hanakoPoint", "3", "if(taro.compareTo(hanako) > 0) {\n\t\t\t\ttaroPoint += 3;\n\t\t\t} else {\n\t\t\t\thanakoPoint++;\n\t\t\t\ttaroPoint++;\n\t\t\t}", "taro.compareTo(hanako) > 0", "taro.compareTo(hanako)", "taro.compareTo", "taro", "hanako", "0", "{\n\t\t\t\ttaroPoint += 3;\n\t\t\t}", "taroPoint += 3", "taroPoint", "3", "{\n\t\t\t\thanakoPoint++;\n\t\t\t\ttaroPoint++;\n\t\t\t}", "hanakoPoint++", "hanakoPoint", "taroPoint++", "taroPoint", "sc.close()", "sc.close", "sc", "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\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint num = sc.nextInt();\n\n\t\tint taroPoint = 0;\n\t\tint hanakoPoint = 0;\n\n\t\tfor(int i=0; i<num; i++) {\n\t\t\tString taro = sc.next();\n\t\t\tString hanako = sc.next();\n\t\t\tif(taro.compareTo(hanako) < 0) {\n\t\t\t\thanakoPoint += 3;\n\t\t\t} else if(taro.compareTo(hanako) > 0) {\n\t\t\t\ttaroPoint += 3;\n\t\t\t} else {\n\t\t\t\thanakoPoint++;\n\t\t\t\ttaroPoint++;\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\n\t\tSystem.out.println(taroPoint + \" \" + hanakoPoint);\n\n\t}\n\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 num = sc.nextInt();\n\n\t\tint taroPoint = 0;\n\t\tint hanakoPoint = 0;\n\n\t\tfor(int i=0; i<num; i++) {\n\t\t\tString taro = sc.next();\n\t\t\tString hanako = sc.next();\n\t\t\tif(taro.compareTo(hanako) < 0) {\n\t\t\t\thanakoPoint += 3;\n\t\t\t} else if(taro.compareTo(hanako) > 0) {\n\t\t\t\ttaroPoint += 3;\n\t\t\t} else {\n\t\t\t\thanakoPoint++;\n\t\t\t\ttaroPoint++;\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\n\t\tSystem.out.println(taroPoint + \" \" + hanakoPoint);\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int taroPoint = 0; int hanakoPoint = 0; for(int i=0; i<num; i++) { String taro = sc.next(); String hanako = sc.next(); if(taro.compareTo(hanako) < 0) { hanakoPoint += 3; } else if(taro.compareTo(hanako) > 0) { taroPoint += 3; } else { hanakoPoint++; taroPoint++; } } sc.close(); System.out.println(taroPoint + " " + hanakoPoint); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 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, 4, 18, 13, 17, 41, 13, 18, 13, 17, 41, 13, 18, 13, 17, 41, 13, 20, 4, 18, 13, 13, 4, 18, 13, 13, 4, 18, 13, 13, 14, 4, 18, 13, 13, 30, 0, 13, 17, 0, 13, 17, 14, 4, 18, 13, 4, 18, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 125, 14 ], [ 125, 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 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 17, 32 ], [ 32, 33 ], [ 32, 34 ], [ 17, 35 ], [ 35, 36 ], [ 35, 37 ], [ 17, 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 ], [ 55, 56 ], [ 56, 57 ], [ 53, 58 ], [ 50, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 50, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 50, 69 ], [ 69, 70 ], [ 69, 71 ], [ 50, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 50, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 50, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 50, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 84, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 93, 94 ], [ 93, 95 ], [ 84, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 96, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 96, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 17, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 118, 118 ], [ 118, 119 ], [ 118, 120 ], [ 118, 121 ], [ 15, 122 ], [ 122, 123 ], [ 0, 124 ], [ 124, 125 ], [ 124, 126 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.Collections;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t String line = br.readLine();\n\t int n = Integer.parseInt(line);\n\n\t int tarouScore = 0;\n\t int hanakoScore = 0;\n\t for (int i = 0; i < n; i++) {\n\t \tString[]s = br.readLine().split(\" \");\n\t\t\tString tarou = s[0];\n\t\t\tString hanako = s[1];\n\n\t\t\tArrayList<String> dic = new ArrayList<String>();\n\t\t\tdic.add(tarou);\n\t\t\tdic.add(hanako);\n\n\t\t\tCollections.sort(dic);\n\n\t\t\tif (tarou.equals(hanako)) {\n\t\t\t\ttarouScore += 1;\n\t\t\t\thanakoScore += 1;\n\t\t\t} else if (tarou.equals(dic.get(0))) {\n\t\t\t\thanakoScore += 3;\n\t\t\t} else {\n\t\t\t\ttarouScore += 3;\n\t\t\t}\n\t }\n\t System.out.println(tarouScore + \" \" + hanakoScore);\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Collections;", "Collections", "java.util", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t String line = br.readLine();\n\t int n = Integer.parseInt(line);\n\n\t int tarouScore = 0;\n\t int hanakoScore = 0;\n\t for (int i = 0; i < n; i++) {\n\t \tString[]s = br.readLine().split(\" \");\n\t\t\tString tarou = s[0];\n\t\t\tString hanako = s[1];\n\n\t\t\tArrayList<String> dic = new ArrayList<String>();\n\t\t\tdic.add(tarou);\n\t\t\tdic.add(hanako);\n\n\t\t\tCollections.sort(dic);\n\n\t\t\tif (tarou.equals(hanako)) {\n\t\t\t\ttarouScore += 1;\n\t\t\t\thanakoScore += 1;\n\t\t\t} else if (tarou.equals(dic.get(0))) {\n\t\t\t\thanakoScore += 3;\n\t\t\t} else {\n\t\t\t\ttarouScore += 3;\n\t\t\t}\n\t }\n\t System.out.println(tarouScore + \" \" + hanakoScore);\n\t}\n}", "Main", "public static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t String line = br.readLine();\n\t int n = Integer.parseInt(line);\n\n\t int tarouScore = 0;\n\t int hanakoScore = 0;\n\t for (int i = 0; i < n; i++) {\n\t \tString[]s = br.readLine().split(\" \");\n\t\t\tString tarou = s[0];\n\t\t\tString hanako = s[1];\n\n\t\t\tArrayList<String> dic = new ArrayList<String>();\n\t\t\tdic.add(tarou);\n\t\t\tdic.add(hanako);\n\n\t\t\tCollections.sort(dic);\n\n\t\t\tif (tarou.equals(hanako)) {\n\t\t\t\ttarouScore += 1;\n\t\t\t\thanakoScore += 1;\n\t\t\t} else if (tarou.equals(dic.get(0))) {\n\t\t\t\thanakoScore += 3;\n\t\t\t} else {\n\t\t\t\ttarouScore += 3;\n\t\t\t}\n\t }\n\t System.out.println(tarouScore + \" \" + hanakoScore);\n\t}", "main", "{\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t String line = br.readLine();\n\t int n = Integer.parseInt(line);\n\n\t int tarouScore = 0;\n\t int hanakoScore = 0;\n\t for (int i = 0; i < n; i++) {\n\t \tString[]s = br.readLine().split(\" \");\n\t\t\tString tarou = s[0];\n\t\t\tString hanako = s[1];\n\n\t\t\tArrayList<String> dic = new ArrayList<String>();\n\t\t\tdic.add(tarou);\n\t\t\tdic.add(hanako);\n\n\t\t\tCollections.sort(dic);\n\n\t\t\tif (tarou.equals(hanako)) {\n\t\t\t\ttarouScore += 1;\n\t\t\t\thanakoScore += 1;\n\t\t\t} else if (tarou.equals(dic.get(0))) {\n\t\t\t\thanakoScore += 3;\n\t\t\t} else {\n\t\t\t\ttarouScore += 3;\n\t\t\t}\n\t }\n\t System.out.println(tarouScore + \" \" + hanakoScore);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String line = br.readLine();", "line", "br.readLine()", "br.readLine", "br", "int n = Integer.parseInt(line);", "n", "Integer.parseInt(line)", "Integer.parseInt", "Integer", "line", "int tarouScore = 0;", "tarouScore", "0", "int hanakoScore = 0;", "hanakoScore", "0", "for (int i = 0; i < n; i++) {\n\t \tString[]s = br.readLine().split(\" \");\n\t\t\tString tarou = s[0];\n\t\t\tString hanako = s[1];\n\n\t\t\tArrayList<String> dic = new ArrayList<String>();\n\t\t\tdic.add(tarou);\n\t\t\tdic.add(hanako);\n\n\t\t\tCollections.sort(dic);\n\n\t\t\tif (tarou.equals(hanako)) {\n\t\t\t\ttarouScore += 1;\n\t\t\t\thanakoScore += 1;\n\t\t\t} else if (tarou.equals(dic.get(0))) {\n\t\t\t\thanakoScore += 3;\n\t\t\t} else {\n\t\t\t\ttarouScore += 3;\n\t\t\t}\n\t }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t \tString[]s = br.readLine().split(\" \");\n\t\t\tString tarou = s[0];\n\t\t\tString hanako = s[1];\n\n\t\t\tArrayList<String> dic = new ArrayList<String>();\n\t\t\tdic.add(tarou);\n\t\t\tdic.add(hanako);\n\n\t\t\tCollections.sort(dic);\n\n\t\t\tif (tarou.equals(hanako)) {\n\t\t\t\ttarouScore += 1;\n\t\t\t\thanakoScore += 1;\n\t\t\t} else if (tarou.equals(dic.get(0))) {\n\t\t\t\thanakoScore += 3;\n\t\t\t} else {\n\t\t\t\ttarouScore += 3;\n\t\t\t}\n\t }", "{\n\t \tString[]s = br.readLine().split(\" \");\n\t\t\tString tarou = s[0];\n\t\t\tString hanako = s[1];\n\n\t\t\tArrayList<String> dic = new ArrayList<String>();\n\t\t\tdic.add(tarou);\n\t\t\tdic.add(hanako);\n\n\t\t\tCollections.sort(dic);\n\n\t\t\tif (tarou.equals(hanako)) {\n\t\t\t\ttarouScore += 1;\n\t\t\t\thanakoScore += 1;\n\t\t\t} else if (tarou.equals(dic.get(0))) {\n\t\t\t\thanakoScore += 3;\n\t\t\t} else {\n\t\t\t\ttarouScore += 3;\n\t\t\t}\n\t }", "String[]s = br.readLine().split(\" \");", "s", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "String tarou = s[0];", "tarou", "s[0]", "s", "0", "String hanako = s[1];", "hanako", "s[1]", "s", "1", "ArrayList<String> dic = new ArrayList<String>();", "dic", "new ArrayList<String>()", "dic.add(tarou)", "dic.add", "dic", "tarou", "dic.add(hanako)", "dic.add", "dic", "hanako", "Collections.sort(dic)", "Collections.sort", "Collections", "dic", "if (tarou.equals(hanako)) {\n\t\t\t\ttarouScore += 1;\n\t\t\t\thanakoScore += 1;\n\t\t\t} else if (tarou.equals(dic.get(0))) {\n\t\t\t\thanakoScore += 3;\n\t\t\t} else {\n\t\t\t\ttarouScore += 3;\n\t\t\t}", "tarou.equals(hanako)", "tarou.equals", "tarou", "hanako", "{\n\t\t\t\ttarouScore += 1;\n\t\t\t\thanakoScore += 1;\n\t\t\t}", "tarouScore += 1", "tarouScore", "1", "hanakoScore += 1", "hanakoScore", "1", "if (tarou.equals(dic.get(0))) {\n\t\t\t\thanakoScore += 3;\n\t\t\t} else {\n\t\t\t\ttarouScore += 3;\n\t\t\t}", "tarou.equals(dic.get(0))", "tarou.equals", "tarou", "dic.get(0)", "dic.get", "dic", "0", "{\n\t\t\t\thanakoScore += 3;\n\t\t\t}", "hanakoScore += 3", "hanakoScore", "3", "{\n\t\t\t\ttarouScore += 3;\n\t\t\t}", "tarouScore += 3", "tarouScore", "3", "System.out.println(tarouScore + \" \" + hanakoScore)", "System.out.println", "System.out", "System", "System.out", "tarouScore + \" \" + hanakoScore", "tarouScore + \" \" + hanakoScore", "tarouScore", "\" \"", "hanakoScore", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t String line = br.readLine();\n\t int n = Integer.parseInt(line);\n\n\t int tarouScore = 0;\n\t int hanakoScore = 0;\n\t for (int i = 0; i < n; i++) {\n\t \tString[]s = br.readLine().split(\" \");\n\t\t\tString tarou = s[0];\n\t\t\tString hanako = s[1];\n\n\t\t\tArrayList<String> dic = new ArrayList<String>();\n\t\t\tdic.add(tarou);\n\t\t\tdic.add(hanako);\n\n\t\t\tCollections.sort(dic);\n\n\t\t\tif (tarou.equals(hanako)) {\n\t\t\t\ttarouScore += 1;\n\t\t\t\thanakoScore += 1;\n\t\t\t} else if (tarou.equals(dic.get(0))) {\n\t\t\t\thanakoScore += 3;\n\t\t\t} else {\n\t\t\t\ttarouScore += 3;\n\t\t\t}\n\t }\n\t System.out.println(tarouScore + \" \" + hanakoScore);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t String line = br.readLine();\n\t int n = Integer.parseInt(line);\n\n\t int tarouScore = 0;\n\t int hanakoScore = 0;\n\t for (int i = 0; i < n; i++) {\n\t \tString[]s = br.readLine().split(\" \");\n\t\t\tString tarou = s[0];\n\t\t\tString hanako = s[1];\n\n\t\t\tArrayList<String> dic = new ArrayList<String>();\n\t\t\tdic.add(tarou);\n\t\t\tdic.add(hanako);\n\n\t\t\tCollections.sort(dic);\n\n\t\t\tif (tarou.equals(hanako)) {\n\t\t\t\ttarouScore += 1;\n\t\t\t\thanakoScore += 1;\n\t\t\t} else if (tarou.equals(dic.get(0))) {\n\t\t\t\thanakoScore += 3;\n\t\t\t} else {\n\t\t\t\ttarouScore += 3;\n\t\t\t}\n\t }\n\t System.out.println(tarouScore + \" \" + hanakoScore);\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Collections; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line = br.readLine(); int n = Integer.parseInt(line); int tarouScore = 0; int hanakoScore = 0; for (int i = 0; i < n; i++) { String[]s = br.readLine().split(" "); String tarou = s[0]; String hanako = s[1]; ArrayList<String> dic = new ArrayList<String>(); dic.add(tarou); dic.add(hanako); Collections.sort(dic); if (tarou.equals(hanako)) { tarouScore += 1; hanakoScore += 1; } else if (tarou.equals(dic.get(0))) { hanakoScore += 3; } else { tarouScore += 3; } } System.out.println(tarouScore + " " + hanakoScore); } }
[ 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, 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 ]
[ [ 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 ], [ 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 ], [ 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 ], [ 61, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 69, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 80, 81 ], [ 14, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 88, 88 ], [ 88, 89 ], [ 88, 90 ], [ 88, 91 ], [ 12, 92 ], [ 92, 93 ] ]
[ "import java.io.*;\nimport java.util.*;\nimport java.lang.*;\n\nclass Main{\n public static void main(String[] args) throws IOException{\n Scanner scan=new Scanner(System.in);\n int n=Integer.parseInt(scan.next());\n int hanakoPoint=0;\n int tarouPoint=0;\n for(int i=0;i<n;i++){\n String hanakoCard=scan.next();\n String tarouCard=scan.next();\n int judge=hanakoCard.compareTo(tarouCard);\n if(judge<0){\n hanakoPoint+=3;\n }else if(judge>0){\n tarouPoint+=3;\n }else{\n hanakoPoint++;\n tarouPoint++;\n }\n }\n\n System.out.println(tarouPoint+\" \"+hanakoPoint);\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "import java.lang.*;", "lang.*", "java", "class Main{\n public static void main(String[] args) throws IOException{\n Scanner scan=new Scanner(System.in);\n int n=Integer.parseInt(scan.next());\n int hanakoPoint=0;\n int tarouPoint=0;\n for(int i=0;i<n;i++){\n String hanakoCard=scan.next();\n String tarouCard=scan.next();\n int judge=hanakoCard.compareTo(tarouCard);\n if(judge<0){\n hanakoPoint+=3;\n }else if(judge>0){\n tarouPoint+=3;\n }else{\n hanakoPoint++;\n tarouPoint++;\n }\n }\n\n System.out.println(tarouPoint+\" \"+hanakoPoint);\n }\n}", "Main", "public static void main(String[] args) throws IOException{\n Scanner scan=new Scanner(System.in);\n int n=Integer.parseInt(scan.next());\n int hanakoPoint=0;\n int tarouPoint=0;\n for(int i=0;i<n;i++){\n String hanakoCard=scan.next();\n String tarouCard=scan.next();\n int judge=hanakoCard.compareTo(tarouCard);\n if(judge<0){\n hanakoPoint+=3;\n }else if(judge>0){\n tarouPoint+=3;\n }else{\n hanakoPoint++;\n tarouPoint++;\n }\n }\n\n System.out.println(tarouPoint+\" \"+hanakoPoint);\n }", "main", "{\n Scanner scan=new Scanner(System.in);\n int n=Integer.parseInt(scan.next());\n int hanakoPoint=0;\n int tarouPoint=0;\n for(int i=0;i<n;i++){\n String hanakoCard=scan.next();\n String tarouCard=scan.next();\n int judge=hanakoCard.compareTo(tarouCard);\n if(judge<0){\n hanakoPoint+=3;\n }else if(judge>0){\n tarouPoint+=3;\n }else{\n hanakoPoint++;\n tarouPoint++;\n }\n }\n\n System.out.println(tarouPoint+\" \"+hanakoPoint);\n }", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n=Integer.parseInt(scan.next());", "n", "Integer.parseInt(scan.next())", "Integer.parseInt", "Integer", "scan.next()", "scan.next", "scan", "int hanakoPoint=0;", "hanakoPoint", "0", "int tarouPoint=0;", "tarouPoint", "0", "for(int i=0;i<n;i++){\n String hanakoCard=scan.next();\n String tarouCard=scan.next();\n int judge=hanakoCard.compareTo(tarouCard);\n if(judge<0){\n hanakoPoint+=3;\n }else if(judge>0){\n tarouPoint+=3;\n }else{\n hanakoPoint++;\n tarouPoint++;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n String hanakoCard=scan.next();\n String tarouCard=scan.next();\n int judge=hanakoCard.compareTo(tarouCard);\n if(judge<0){\n hanakoPoint+=3;\n }else if(judge>0){\n tarouPoint+=3;\n }else{\n hanakoPoint++;\n tarouPoint++;\n }\n }", "{\n String hanakoCard=scan.next();\n String tarouCard=scan.next();\n int judge=hanakoCard.compareTo(tarouCard);\n if(judge<0){\n hanakoPoint+=3;\n }else if(judge>0){\n tarouPoint+=3;\n }else{\n hanakoPoint++;\n tarouPoint++;\n }\n }", "String hanakoCard=scan.next();", "hanakoCard", "scan.next()", "scan.next", "scan", "String tarouCard=scan.next();", "tarouCard", "scan.next()", "scan.next", "scan", "int judge=hanakoCard.compareTo(tarouCard);", "judge", "hanakoCard.compareTo(tarouCard)", "hanakoCard.compareTo", "hanakoCard", "tarouCard", "if(judge<0){\n hanakoPoint+=3;\n }else if(judge>0){\n tarouPoint+=3;\n }else{\n hanakoPoint++;\n tarouPoint++;\n }", "judge<0", "judge", "0", "{\n hanakoPoint+=3;\n }", "hanakoPoint+=3", "hanakoPoint", "3", "if(judge>0){\n tarouPoint+=3;\n }else{\n hanakoPoint++;\n tarouPoint++;\n }", "judge>0", "judge", "0", "{\n tarouPoint+=3;\n }", "tarouPoint+=3", "tarouPoint", "3", "{\n hanakoPoint++;\n tarouPoint++;\n }", "hanakoPoint++", "hanakoPoint", "tarouPoint++", "tarouPoint", "System.out.println(tarouPoint+\" \"+hanakoPoint)", "System.out.println", "System.out", "System", "System.out", "tarouPoint+\" \"+hanakoPoint", "tarouPoint+\" \"+hanakoPoint", "tarouPoint", "\" \"", "hanakoPoint", "String[] args", "args" ]
import java.io.*; import java.util.*; import java.lang.*; class Main{ public static void main(String[] args) throws IOException{ Scanner scan=new Scanner(System.in); int n=Integer.parseInt(scan.next()); int hanakoPoint=0; int tarouPoint=0; for(int i=0;i<n;i++){ String hanakoCard=scan.next(); String tarouCard=scan.next(); int judge=hanakoCard.compareTo(tarouCard); if(judge<0){ hanakoPoint+=3; }else if(judge>0){ tarouPoint+=3; }else{ hanakoPoint++; tarouPoint++; } } System.out.println(tarouPoint+" "+hanakoPoint); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 41, 13, 41, 13, 20, 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, 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 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 11, 13 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 8, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 8, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 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 ], [ 64, 67 ], [ 63, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 71, 72 ], [ 63, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 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 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) {\n int n, point1 = 0, point2 = 0;\n String card1, card2;\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n \n for (int i = 0; i < n; i++) {\n card1 = sc.next();\n card2 = sc.next();\n if (card2.compareTo(card1) < 0) {\n point1 += 3;\n } else if (card1.equals(card2)) {\n point1++;\n point2++;\n } else {\n point2 +=3;\n }\n }\n System.out.println(point1 + \" \" + point2);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String[] args) {\n int n, point1 = 0, point2 = 0;\n String card1, card2;\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n \n for (int i = 0; i < n; i++) {\n card1 = sc.next();\n card2 = sc.next();\n if (card2.compareTo(card1) < 0) {\n point1 += 3;\n } else if (card1.equals(card2)) {\n point1++;\n point2++;\n } else {\n point2 +=3;\n }\n }\n System.out.println(point1 + \" \" + point2);\n }\n}", "Main", "public static void main(String[] args) {\n int n, point1 = 0, point2 = 0;\n String card1, card2;\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n \n for (int i = 0; i < n; i++) {\n card1 = sc.next();\n card2 = sc.next();\n if (card2.compareTo(card1) < 0) {\n point1 += 3;\n } else if (card1.equals(card2)) {\n point1++;\n point2++;\n } else {\n point2 +=3;\n }\n }\n System.out.println(point1 + \" \" + point2);\n }", "main", "{\n int n, point1 = 0, point2 = 0;\n String card1, card2;\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n \n for (int i = 0; i < n; i++) {\n card1 = sc.next();\n card2 = sc.next();\n if (card2.compareTo(card1) < 0) {\n point1 += 3;\n } else if (card1.equals(card2)) {\n point1++;\n point2++;\n } else {\n point2 +=3;\n }\n }\n System.out.println(point1 + \" \" + point2);\n }", "int n", "n", "point1 = 0", "point1", "0", "point2 = 0;", "point2", "0", "String card1", "card1", "card2;", "card2", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "for (int i = 0; i < n; i++) {\n card1 = sc.next();\n card2 = sc.next();\n if (card2.compareTo(card1) < 0) {\n point1 += 3;\n } else if (card1.equals(card2)) {\n point1++;\n point2++;\n } else {\n point2 +=3;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n card1 = sc.next();\n card2 = sc.next();\n if (card2.compareTo(card1) < 0) {\n point1 += 3;\n } else if (card1.equals(card2)) {\n point1++;\n point2++;\n } else {\n point2 +=3;\n }\n }", "{\n card1 = sc.next();\n card2 = sc.next();\n if (card2.compareTo(card1) < 0) {\n point1 += 3;\n } else if (card1.equals(card2)) {\n point1++;\n point2++;\n } else {\n point2 +=3;\n }\n }", "card1 = sc.next()", "card1", "sc.next()", "sc.next", "sc", "card2 = sc.next()", "card2", "sc.next()", "sc.next", "sc", "if (card2.compareTo(card1) < 0) {\n point1 += 3;\n } else if (card1.equals(card2)) {\n point1++;\n point2++;\n } else {\n point2 +=3;\n }", "card2.compareTo(card1) < 0", "card2.compareTo(card1)", "card2.compareTo", "card2", "card1", "0", "{\n point1 += 3;\n }", "point1 += 3", "point1", "3", "if (card1.equals(card2)) {\n point1++;\n point2++;\n } else {\n point2 +=3;\n }", "card1.equals(card2)", "card1.equals", "card1", "card2", "{\n point1++;\n point2++;\n }", "point1++", "point1", "point2++", "point2", "{\n point2 +=3;\n }", "point2 +=3", "point2", "3", "System.out.println(point1 + \" \" + point2)", "System.out.println", "System.out", "System", "System.out", "point1 + \" \" + point2", "point1 + \" \" + point2", "point1", "\" \"", "point2", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args) { int n, point1 = 0, point2 = 0; String card1, card2; Scanner sc = new Scanner(System.in); n = sc.nextInt(); for (int i = 0; i < n; i++) { card1 = sc.next(); card2 = sc.next(); if (card2.compareTo(card1) < 0) { point1 += 3; } else if (card1.equals(card2)) { point1++; point2++; } else { point2 +=3; } } System.out.println(point1 + " " + point2); } }
[ 7, 15, 13, 17, 15, 13, 17, 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, 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, 30, 40, 13, 40, 13, 4, 18, 13, 2, 2, 2, 13, 17, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 110, 11 ], [ 110, 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 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 57, 66 ], [ 56, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 56, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 78, 79 ], [ 78, 80 ], [ 72, 81 ], [ 71, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 71, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 89, 90 ], [ 14, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 96, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 96, 100 ], [ 14, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 12, 107 ], [ 107, 108 ], [ 0, 109 ], [ 109, 110 ], [ 109, 111 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.lang.StringBuffer;\n\n/*Question\n/????????¨??±?????????????????????????????????????????????????????????n???????????????????????£????????????n??????????????????????????????\n/??????????????§???????????????1??????????????????????????????\n/?????????????????¢????????????????????????????????????????????????????????????????????????????????§??§?????????????????????????????????????????¨?????????\n/????????????3????????????????????????????????´?????????????????????1?????????????????????????????????\n/????????¨??±???????????????????????????????????±???????????????????????????????????????????????????????????????????????????????????°????????????????????????\n*/\n/*Input\n/??????????????????????????°n?????????????????????\n/?¶????n??????????????????????????????????????±?????????????????????\n/1????????????????????????????????????????????????????????????????????????2???????????????????????±???????????????????????????????????????????????§?????????\n*/\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\t//????????¨\n\t\tStringBuffer sb = new StringBuffer();\n\t\t//?????????????????????\n\t\tint t = 0;\n\t\t//??±??????????????????\n\t\tint h = 0;\n\t\t//???????????????????????\\???(?????????????????°)\n\t\tint n = Integer.parseInt(sc.readLine());\n\t\t//?????????????????????(??????????????????????????????)\n\t\tfor(int i = 0;i < n;i++){\n\t\t\t/*??????????????\\???\n\t\t\t/?????????????????????\" \"(??????)??§????????£?????????s??¨??????\n\t\t\t/s[0]????????????s[1]?????±?????¨??????\n\t\t\t*/\n\t\t\tString[] s = sc.readLine().split(\" \");\n\t\t\t/*??????????????????\n\t\t\t/??????????????§???????°???????????????§??????????????????\n\t\t\t/??????????????????????????¨?????????????????????\n\t\t\t/???????????????0????????§?????????????????????????????§\n\t\t\t/??????????????±???\n\t\t\t/????????\\?????????????????????????????????????????????????????¨??????(????????????????????????????????¨??????)\n\t\t\t*/\n\t\t\tif(s[0].compareToIgnoreCase(s[1]) > 0){\n\t\t\t\tt += 3;\n\t\t\t}else if(s[0].compareToIgnoreCase(s[1]) < 0){\n\t\t\t\th += 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//?????????????????????????????????????????¨?????????????????¨(sb)?????¨????´?(????????????????????????????????????????????????????????§?????¨??????????????¨???sb????????¨)\n\t\tsb.append(t+\" \"+h+\"\\n\");\n\t\tSystem.out.print(sb);\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.lang.StringBuffer;", "StringBuffer", "java.lang", "public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\t//????????¨\n\t\tStringBuffer sb = new StringBuffer();\n\t\t//?????????????????????\n\t\tint t = 0;\n\t\t//??±??????????????????\n\t\tint h = 0;\n\t\t//???????????????????????\\???(?????????????????°)\n\t\tint n = Integer.parseInt(sc.readLine());\n\t\t//?????????????????????(??????????????????????????????)\n\t\tfor(int i = 0;i < n;i++){\n\t\t\t/*??????????????\\???\n\t\t\t/?????????????????????\" \"(??????)??§????????£?????????s??¨??????\n\t\t\t/s[0]????????????s[1]?????±?????¨??????\n\t\t\t*/\n\t\t\tString[] s = sc.readLine().split(\" \");\n\t\t\t/*??????????????????\n\t\t\t/??????????????§???????°???????????????§??????????????????\n\t\t\t/??????????????????????????¨?????????????????????\n\t\t\t/???????????????0????????§?????????????????????????????§\n\t\t\t/??????????????±???\n\t\t\t/????????\\?????????????????????????????????????????????????????¨??????(????????????????????????????????¨??????)\n\t\t\t*/\n\t\t\tif(s[0].compareToIgnoreCase(s[1]) > 0){\n\t\t\t\tt += 3;\n\t\t\t}else if(s[0].compareToIgnoreCase(s[1]) < 0){\n\t\t\t\th += 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//?????????????????????????????????????????¨?????????????????¨(sb)?????¨????´?(????????????????????????????????????????????????????????§?????¨??????????????¨???sb????????¨)\n\t\tsb.append(t+\" \"+h+\"\\n\");\n\t\tSystem.out.print(sb);\n\t}\n}", "Main", "public static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\t//????????¨\n\t\tStringBuffer sb = new StringBuffer();\n\t\t//?????????????????????\n\t\tint t = 0;\n\t\t//??±??????????????????\n\t\tint h = 0;\n\t\t//???????????????????????\\???(?????????????????°)\n\t\tint n = Integer.parseInt(sc.readLine());\n\t\t//?????????????????????(??????????????????????????????)\n\t\tfor(int i = 0;i < n;i++){\n\t\t\t/*??????????????\\???\n\t\t\t/?????????????????????\" \"(??????)??§????????£?????????s??¨??????\n\t\t\t/s[0]????????????s[1]?????±?????¨??????\n\t\t\t*/\n\t\t\tString[] s = sc.readLine().split(\" \");\n\t\t\t/*??????????????????\n\t\t\t/??????????????§???????°???????????????§??????????????????\n\t\t\t/??????????????????????????¨?????????????????????\n\t\t\t/???????????????0????????§?????????????????????????????§\n\t\t\t/??????????????±???\n\t\t\t/????????\\?????????????????????????????????????????????????????¨??????(????????????????????????????????¨??????)\n\t\t\t*/\n\t\t\tif(s[0].compareToIgnoreCase(s[1]) > 0){\n\t\t\t\tt += 3;\n\t\t\t}else if(s[0].compareToIgnoreCase(s[1]) < 0){\n\t\t\t\th += 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//?????????????????????????????????????????¨?????????????????¨(sb)?????¨????´?(????????????????????????????????????????????????????????§?????¨??????????????¨???sb????????¨)\n\t\tsb.append(t+\" \"+h+\"\\n\");\n\t\tSystem.out.print(sb);\n\t}", "main", "{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\t//????????¨\n\t\tStringBuffer sb = new StringBuffer();\n\t\t//?????????????????????\n\t\tint t = 0;\n\t\t//??±??????????????????\n\t\tint h = 0;\n\t\t//???????????????????????\\???(?????????????????°)\n\t\tint n = Integer.parseInt(sc.readLine());\n\t\t//?????????????????????(??????????????????????????????)\n\t\tfor(int i = 0;i < n;i++){\n\t\t\t/*??????????????\\???\n\t\t\t/?????????????????????\" \"(??????)??§????????£?????????s??¨??????\n\t\t\t/s[0]????????????s[1]?????±?????¨??????\n\t\t\t*/\n\t\t\tString[] s = sc.readLine().split(\" \");\n\t\t\t/*??????????????????\n\t\t\t/??????????????§???????°???????????????§??????????????????\n\t\t\t/??????????????????????????¨?????????????????????\n\t\t\t/???????????????0????????§?????????????????????????????§\n\t\t\t/??????????????±???\n\t\t\t/????????\\?????????????????????????????????????????????????????¨??????(????????????????????????????????¨??????)\n\t\t\t*/\n\t\t\tif(s[0].compareToIgnoreCase(s[1]) > 0){\n\t\t\t\tt += 3;\n\t\t\t}else if(s[0].compareToIgnoreCase(s[1]) < 0){\n\t\t\t\th += 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//?????????????????????????????????????????¨?????????????????¨(sb)?????¨????´?(????????????????????????????????????????????????????????§?????¨??????????????¨???sb????????¨)\n\t\tsb.append(t+\" \"+h+\"\\n\");\n\t\tSystem.out.print(sb);\n\t}", "BufferedReader sc = new BufferedReader(new InputStreamReader(System.in));", "sc", "new BufferedReader(new InputStreamReader(System.in))", "StringBuffer sb = new StringBuffer();", "sb", "new StringBuffer()", "int t = 0;", "t", "0", "int h = 0;", "h", "0", "int n = Integer.parseInt(sc.readLine());", "n", "Integer.parseInt(sc.readLine())", "Integer.parseInt", "Integer", "sc.readLine()", "sc.readLine", "sc", "for(int i = 0;i < n;i++){\n\t\t\t/*??????????????\\???\n\t\t\t/?????????????????????\" \"(??????)??§????????£?????????s??¨??????\n\t\t\t/s[0]????????????s[1]?????±?????¨??????\n\t\t\t*/\n\t\t\tString[] s = sc.readLine().split(\" \");\n\t\t\t/*??????????????????\n\t\t\t/??????????????§???????°???????????????§??????????????????\n\t\t\t/??????????????????????????¨?????????????????????\n\t\t\t/???????????????0????????§?????????????????????????????§\n\t\t\t/??????????????±???\n\t\t\t/????????\\?????????????????????????????????????????????????????¨??????(????????????????????????????????¨??????)\n\t\t\t*/\n\t\t\tif(s[0].compareToIgnoreCase(s[1]) > 0){\n\t\t\t\tt += 3;\n\t\t\t}else if(s[0].compareToIgnoreCase(s[1]) < 0){\n\t\t\t\th += 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\t/*??????????????\\???\n\t\t\t/?????????????????????\" \"(??????)??§????????£?????????s??¨??????\n\t\t\t/s[0]????????????s[1]?????±?????¨??????\n\t\t\t*/\n\t\t\tString[] s = sc.readLine().split(\" \");\n\t\t\t/*??????????????????\n\t\t\t/??????????????§???????°???????????????§??????????????????\n\t\t\t/??????????????????????????¨?????????????????????\n\t\t\t/???????????????0????????§?????????????????????????????§\n\t\t\t/??????????????±???\n\t\t\t/????????\\?????????????????????????????????????????????????????¨??????(????????????????????????????????¨??????)\n\t\t\t*/\n\t\t\tif(s[0].compareToIgnoreCase(s[1]) > 0){\n\t\t\t\tt += 3;\n\t\t\t}else if(s[0].compareToIgnoreCase(s[1]) < 0){\n\t\t\t\th += 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\t/*??????????????\\???\n\t\t\t/?????????????????????\" \"(??????)??§????????£?????????s??¨??????\n\t\t\t/s[0]????????????s[1]?????±?????¨??????\n\t\t\t*/\n\t\t\tString[] s = sc.readLine().split(\" \");\n\t\t\t/*??????????????????\n\t\t\t/??????????????§???????°???????????????§??????????????????\n\t\t\t/??????????????????????????¨?????????????????????\n\t\t\t/???????????????0????????§?????????????????????????????§\n\t\t\t/??????????????±???\n\t\t\t/????????\\?????????????????????????????????????????????????????¨??????(????????????????????????????????¨??????)\n\t\t\t*/\n\t\t\tif(s[0].compareToIgnoreCase(s[1]) > 0){\n\t\t\t\tt += 3;\n\t\t\t}else if(s[0].compareToIgnoreCase(s[1]) < 0){\n\t\t\t\th += 3;\n\t\t\t}else{\n\t\t\t\tt++;\n\t\t\t\th++;\n\t\t\t}\n\t\t}", "String[] s = sc.readLine().split(\" \");", "s", "sc.readLine().split(\" \")", "sc.readLine().split", "sc.readLine()", "sc.readLine", "sc", "\" \"", "if(s[0].compareToIgnoreCase(s[1]) > 0){\n\t\t\t\tt += 3;\n\t\t\t}else if(s[0].compareToIgnoreCase(s[1]) < 0){\n\t\t\t\th += 3;\n\t\t\t}else{\n\t\t\t\tt++;\n\t\t\t\th++;\n\t\t\t}", "s[0].compareToIgnoreCase(s[1]) > 0", "s[0].compareToIgnoreCase(s[1])", "s[0].compareToIgnoreCase", "s[0]", "s", "0", "s[1]", "s", "1", "0", "{\n\t\t\t\tt += 3;\n\t\t\t}", "t += 3", "t", "3", "if(s[0].compareToIgnoreCase(s[1]) < 0){\n\t\t\t\th += 3;\n\t\t\t}else{\n\t\t\t\tt++;\n\t\t\t\th++;\n\t\t\t}", "s[0].compareToIgnoreCase(s[1]) < 0", "s[0].compareToIgnoreCase(s[1])", "s[0].compareToIgnoreCase", "s[0]", "s", "0", "s[1]", "s", "1", "0", "{\n\t\t\t\th += 3;\n\t\t\t}", "h += 3", "h", "3", "{\n\t\t\t\tt++;\n\t\t\t\th++;\n\t\t\t}", "t++", "t", "h++", "h", "sb.append(t+\" \"+h+\"\\n\")", "sb.append", "sb", "t+\" \"+h+\"\\n\"", "h", "t+\" \"+h+\"\\n\"", "t", "\" \"", "h", "\"\\n\"", "System.out.print(sb)", "System.out.print", "System.out", "System", "System.out", "sb", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\t//????????¨\n\t\tStringBuffer sb = new StringBuffer();\n\t\t//?????????????????????\n\t\tint t = 0;\n\t\t//??±??????????????????\n\t\tint h = 0;\n\t\t//???????????????????????\\???(?????????????????°)\n\t\tint n = Integer.parseInt(sc.readLine());\n\t\t//?????????????????????(??????????????????????????????)\n\t\tfor(int i = 0;i < n;i++){\n\t\t\t/*??????????????\\???\n\t\t\t/?????????????????????\" \"(??????)??§????????£?????????s??¨??????\n\t\t\t/s[0]????????????s[1]?????±?????¨??????\n\t\t\t*/\n\t\t\tString[] s = sc.readLine().split(\" \");\n\t\t\t/*??????????????????\n\t\t\t/??????????????§???????°???????????????§??????????????????\n\t\t\t/??????????????????????????¨?????????????????????\n\t\t\t/???????????????0????????§?????????????????????????????§\n\t\t\t/??????????????±???\n\t\t\t/????????\\?????????????????????????????????????????????????????¨??????(????????????????????????????????¨??????)\n\t\t\t*/\n\t\t\tif(s[0].compareToIgnoreCase(s[1]) > 0){\n\t\t\t\tt += 3;\n\t\t\t}else if(s[0].compareToIgnoreCase(s[1]) < 0){\n\t\t\t\th += 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//?????????????????????????????????????????¨?????????????????¨(sb)?????¨????´?(????????????????????????????????????????????????????????§?????¨??????????????¨???sb????????¨)\n\t\tsb.append(t+\" \"+h+\"\\n\");\n\t\tSystem.out.print(sb);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\t//????????¨\n\t\tStringBuffer sb = new StringBuffer();\n\t\t//?????????????????????\n\t\tint t = 0;\n\t\t//??±??????????????????\n\t\tint h = 0;\n\t\t//???????????????????????\\???(?????????????????°)\n\t\tint n = Integer.parseInt(sc.readLine());\n\t\t//?????????????????????(??????????????????????????????)\n\t\tfor(int i = 0;i < n;i++){\n\t\t\t/*??????????????\\???\n\t\t\t/?????????????????????\" \"(??????)??§????????£?????????s??¨??????\n\t\t\t/s[0]????????????s[1]?????±?????¨??????\n\t\t\t*/\n\t\t\tString[] s = sc.readLine().split(\" \");\n\t\t\t/*??????????????????\n\t\t\t/??????????????§???????°???????????????§??????????????????\n\t\t\t/??????????????????????????¨?????????????????????\n\t\t\t/???????????????0????????§?????????????????????????????§\n\t\t\t/??????????????±???\n\t\t\t/????????\\?????????????????????????????????????????????????????¨??????(????????????????????????????????¨??????)\n\t\t\t*/\n\t\t\tif(s[0].compareToIgnoreCase(s[1]) > 0){\n\t\t\t\tt += 3;\n\t\t\t}else if(s[0].compareToIgnoreCase(s[1]) < 0){\n\t\t\t\th += 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//?????????????????????????????????????????¨?????????????????¨(sb)?????¨????´?(????????????????????????????????????????????????????????§?????¨??????????????¨???sb????????¨)\n\t\tsb.append(t+\" \"+h+\"\\n\");\n\t\tSystem.out.print(sb);\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.lang.StringBuffer; /*Question /????????¨??±?????????????????????????????????????????????????????????n???????????????????????£????????????n?????????????????????????????? /??????????????§???????????????1?????????????????????????????? /?????????????????¢????????????????????????????????????????????????????????????????????????????????§??§?????????????????????????????????????????¨????????? /????????????3????????????????????????????????´?????????????????????1????????????????????????????????? /????????¨??±???????????????????????????????????±???????????????????????????????????????????????????????????????????????????????????°???????????????????????? */ /*Input /??????????????????????????°n????????????????????? /?¶????n??????????????????????????????????????±????????????????????? /1????????????????????????????????????????????????????????????????????????2???????????????????????±???????????????????????????????????????????????§????????? */ public class Main { public static void main(String[] args) throws Exception{ BufferedReader sc = new BufferedReader(new InputStreamReader(System.in)); //????????¨ StringBuffer sb = new StringBuffer(); //????????????????????? int t = 0; //??±?????????????????? int h = 0; //???????????????????????\???(?????????????????°) int n = Integer.parseInt(sc.readLine()); //?????????????????????(??????????????????????????????) for(int i = 0;i < n;i++){ /*??????????????\??? /?????????????????????" "(??????)??§????????£?????????s??¨?????? /s[0]????????????s[1]?????±?????¨?????? */ String[] s = sc.readLine().split(" "); /*?????????????????? /??????????????§???????°???????????????§?????????????????? /??????????????????????????¨????????????????????? /???????????????0????????§?????????????????????????????§ /??????????????±??? /????????\?????????????????????????????????????????????????????¨??????(????????????????????????????????¨??????) */ if(s[0].compareToIgnoreCase(s[1]) > 0){ t += 3; }else if(s[0].compareToIgnoreCase(s[1]) < 0){ h += 3; }else{ t++; h++; } } //?????????????????????????????????????????¨?????????????????¨(sb)?????¨????´?(????????????????????????????????????????????????????????§?????¨??????????????¨???sb????????¨) sb.append(t+" "+h+"\n"); System.out.print(sb); } }
[ 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, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 106, 5 ], [ 106, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 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 ], [ 8, 100 ], [ 100, 101 ], [ 101, 102 ], [ 6, 103 ], [ 103, 104 ], [ 0, 105 ], [ 105, 106 ], [ 105, 107 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n \n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int i,n,a=0,b=0;\n String s1,s2;\n n=sc.nextInt();\n \n for(i=0;i<n;i++) {\n s1=sc.next();\n s2=sc.next();\n \n if(s1.compareTo(s2)>0) {\n a+=3;\n }\n else if(s1.compareTo(s2)<0) {\n b+=3;\n }\n else if(s1.compareTo(s2)==0) {\n a+=1;\n b+=1;\n }\n }\n System.out.println(a+\" \"+b);\n \n sc.close();\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n \n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int i,n,a=0,b=0;\n String s1,s2;\n n=sc.nextInt();\n \n for(i=0;i<n;i++) {\n s1=sc.next();\n s2=sc.next();\n \n if(s1.compareTo(s2)>0) {\n a+=3;\n }\n else if(s1.compareTo(s2)<0) {\n b+=3;\n }\n else if(s1.compareTo(s2)==0) {\n a+=1;\n b+=1;\n }\n }\n System.out.println(a+\" \"+b);\n \n sc.close();\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int i,n,a=0,b=0;\n String s1,s2;\n n=sc.nextInt();\n \n for(i=0;i<n;i++) {\n s1=sc.next();\n s2=sc.next();\n \n if(s1.compareTo(s2)>0) {\n a+=3;\n }\n else if(s1.compareTo(s2)<0) {\n b+=3;\n }\n else if(s1.compareTo(s2)==0) {\n a+=1;\n b+=1;\n }\n }\n System.out.println(a+\" \"+b);\n \n sc.close();\n }", "main", "{\n Scanner sc=new Scanner(System.in);\n int i,n,a=0,b=0;\n String s1,s2;\n n=sc.nextInt();\n \n for(i=0;i<n;i++) {\n s1=sc.next();\n s2=sc.next();\n \n if(s1.compareTo(s2)>0) {\n a+=3;\n }\n else if(s1.compareTo(s2)<0) {\n b+=3;\n }\n else if(s1.compareTo(s2)==0) {\n a+=1;\n b+=1;\n }\n }\n System.out.println(a+\" \"+b);\n \n sc.close();\n }", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "int i", "i", "n", "n", "a=0", "a", "0", "b=0;", "b", "0", "String s1", "s1", "s2;", "s2", "n=sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "for(i=0;i<n;i++) {\n s1=sc.next();\n s2=sc.next();\n \n if(s1.compareTo(s2)>0) {\n a+=3;\n }\n else if(s1.compareTo(s2)<0) {\n b+=3;\n }\n else if(s1.compareTo(s2)==0) {\n a+=1;\n b+=1;\n }\n }", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n s1=sc.next();\n s2=sc.next();\n \n if(s1.compareTo(s2)>0) {\n a+=3;\n }\n else if(s1.compareTo(s2)<0) {\n b+=3;\n }\n else if(s1.compareTo(s2)==0) {\n a+=1;\n b+=1;\n }\n }", "{\n s1=sc.next();\n s2=sc.next();\n \n if(s1.compareTo(s2)>0) {\n a+=3;\n }\n else if(s1.compareTo(s2)<0) {\n b+=3;\n }\n else if(s1.compareTo(s2)==0) {\n a+=1;\n b+=1;\n }\n }", "s1=sc.next()", "s1", "sc.next()", "sc.next", "sc", "s2=sc.next()", "s2", "sc.next()", "sc.next", "sc", "if(s1.compareTo(s2)>0) {\n a+=3;\n }\n else if(s1.compareTo(s2)<0) {\n b+=3;\n }\n else if(s1.compareTo(s2)==0) {\n a+=1;\n b+=1;\n }", "s1.compareTo(s2)>0", "s1.compareTo(s2)", "s1.compareTo", "s1", "s2", "0", "{\n a+=3;\n }", "a+=3", "a", "3", "if(s1.compareTo(s2)<0) {\n b+=3;\n }\n else if(s1.compareTo(s2)==0) {\n a+=1;\n b+=1;\n }", "s1.compareTo(s2)<0", "s1.compareTo(s2)", "s1.compareTo", "s1", "s2", "0", "{\n b+=3;\n }", "b+=3", "b", "3", "if(s1.compareTo(s2)==0) {\n a+=1;\n b+=1;\n }", "s1.compareTo(s2)==0", "s1.compareTo(s2)", "s1.compareTo", "s1", "s2", "0", "{\n a+=1;\n b+=1;\n }", "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", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n \n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int i,n,a=0,b=0;\n String s1,s2;\n n=sc.nextInt();\n \n for(i=0;i<n;i++) {\n s1=sc.next();\n s2=sc.next();\n \n if(s1.compareTo(s2)>0) {\n a+=3;\n }\n else if(s1.compareTo(s2)<0) {\n b+=3;\n }\n else if(s1.compareTo(s2)==0) {\n a+=1;\n b+=1;\n }\n }\n System.out.println(a+\" \"+b);\n \n sc.close();\n }\n}", "public class Main {\n \n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int i,n,a=0,b=0;\n String s1,s2;\n n=sc.nextInt();\n \n for(i=0;i<n;i++) {\n s1=sc.next();\n s2=sc.next();\n \n if(s1.compareTo(s2)>0) {\n a+=3;\n }\n else if(s1.compareTo(s2)<0) {\n b+=3;\n }\n else if(s1.compareTo(s2)==0) {\n a+=1;\n b+=1;\n }\n }\n System.out.println(a+\" \"+b);\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 i,n,a=0,b=0; String s1,s2; n=sc.nextInt(); for(i=0;i<n;i++) { s1=sc.next(); s2=sc.next(); if(s1.compareTo(s2)>0) { a+=3; } else if(s1.compareTo(s2)<0) { b+=3; } else if(s1.compareTo(s2)==0) { a+=1; b+=1; } } System.out.println(a+" "+b); sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 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, 40, 13, 40, 13, 14, 2, 4, 18, 18, 13, 17, 18, 13, 17, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 98, 8 ], [ 98, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 17, 20 ], [ 20, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 11, 26 ], [ 26, 27 ], [ 26, 28 ], [ 11, 29 ], [ 29, 30 ], [ 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 ], [ 46, 47 ], [ 47, 48 ], [ 44, 49 ], [ 41, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 51, 60 ], [ 50, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 50, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 73, 74 ], [ 73, 75 ], [ 67, 76 ], [ 66, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 66, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 11, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 91, 91 ], [ 91, 92 ], [ 91, 93 ], [ 91, 94 ], [ 9, 95 ], [ 95, 96 ], [ 0, 97 ], [ 97, 98 ], [ 97, 99 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n // Here your code !\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int turn = Integer.parseInt(br.readLine());\n int taro=0,hanako=0;\n for(int i=0;i<turn;i++) {\n String[] line2 = br.readLine().split(\" \");\n //引き分け\n if(line2[0].compareTo(line2[1]) == 0){\n taro++;\n hanako++;\n }\n else if(line2[0].compareTo(line2[1]) > 0){\n taro += 3;\n }\n else {\n hanako += 3;\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 // Here your code !\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int turn = Integer.parseInt(br.readLine());\n int taro=0,hanako=0;\n for(int i=0;i<turn;i++) {\n String[] line2 = br.readLine().split(\" \");\n //引き分け\n if(line2[0].compareTo(line2[1]) == 0){\n taro++;\n hanako++;\n }\n else if(line2[0].compareTo(line2[1]) > 0){\n taro += 3;\n }\n else {\n hanako += 3;\n }\n }\n System.out.println(taro + \" \" + hanako);\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n // Here your code !\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int turn = Integer.parseInt(br.readLine());\n int taro=0,hanako=0;\n for(int i=0;i<turn;i++) {\n String[] line2 = br.readLine().split(\" \");\n //引き分け\n if(line2[0].compareTo(line2[1]) == 0){\n taro++;\n hanako++;\n }\n else if(line2[0].compareTo(line2[1]) > 0){\n taro += 3;\n }\n else {\n hanako += 3;\n }\n }\n System.out.println(taro + \" \" + hanako);\n }", "main", "{\n // Here your code !\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int turn = Integer.parseInt(br.readLine());\n int taro=0,hanako=0;\n for(int i=0;i<turn;i++) {\n String[] line2 = br.readLine().split(\" \");\n //引き分け\n if(line2[0].compareTo(line2[1]) == 0){\n taro++;\n hanako++;\n }\n else if(line2[0].compareTo(line2[1]) > 0){\n taro += 3;\n }\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 turn = Integer.parseInt(br.readLine());", "turn", "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<turn;i++) {\n String[] line2 = br.readLine().split(\" \");\n //引き分け\n if(line2[0].compareTo(line2[1]) == 0){\n taro++;\n hanako++;\n }\n else if(line2[0].compareTo(line2[1]) > 0){\n taro += 3;\n }\n else {\n hanako += 3;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<turn", "i", "turn", "i++", "i++", "i", "{\n String[] line2 = br.readLine().split(\" \");\n //引き分け\n if(line2[0].compareTo(line2[1]) == 0){\n taro++;\n hanako++;\n }\n else if(line2[0].compareTo(line2[1]) > 0){\n taro += 3;\n }\n else {\n hanako += 3;\n }\n }", "{\n String[] line2 = br.readLine().split(\" \");\n //引き分け\n if(line2[0].compareTo(line2[1]) == 0){\n taro++;\n hanako++;\n }\n else if(line2[0].compareTo(line2[1]) > 0){\n taro += 3;\n }\n else {\n hanako += 3;\n }\n }", "String[] line2 = br.readLine().split(\" \");", "line2", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "if(line2[0].compareTo(line2[1]) == 0){\n taro++;\n hanako++;\n }\n else if(line2[0].compareTo(line2[1]) > 0){\n taro += 3;\n }\n else {\n hanako += 3;\n }", "line2[0].compareTo(line2[1]) == 0", "line2[0].compareTo(line2[1])", "line2[0].compareTo", "line2[0]", "line2", "0", "line2[1]", "line2", "1", "0", "{\n taro++;\n hanako++;\n }", "taro++", "taro", "hanako++", "hanako", "if(line2[0].compareTo(line2[1]) > 0){\n taro += 3;\n }\n else {\n hanako += 3;\n }", "line2[0].compareTo(line2[1]) > 0", "line2[0].compareTo(line2[1])", "line2[0].compareTo", "line2[0]", "line2", "0", "line2[1]", "line2", "1", "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 public static void main(String[] args) throws Exception {\n // Here your code !\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int turn = Integer.parseInt(br.readLine());\n int taro=0,hanako=0;\n for(int i=0;i<turn;i++) {\n String[] line2 = br.readLine().split(\" \");\n //引き分け\n if(line2[0].compareTo(line2[1]) == 0){\n taro++;\n hanako++;\n }\n else if(line2[0].compareTo(line2[1]) > 0){\n taro += 3;\n }\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 Exception {\n // Here your code !\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int turn = Integer.parseInt(br.readLine());\n int taro=0,hanako=0;\n for(int i=0;i<turn;i++) {\n String[] line2 = br.readLine().split(\" \");\n //引き分け\n if(line2[0].compareTo(line2[1]) == 0){\n taro++;\n hanako++;\n }\n else if(line2[0].compareTo(line2[1]) > 0){\n taro += 3;\n }\n else {\n hanako += 3;\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 { // Here your code ! BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int turn = Integer.parseInt(br.readLine()); int taro=0,hanako=0; for(int i=0;i<turn;i++) { String[] line2 = br.readLine().split(" "); //引き分け if(line2[0].compareTo(line2[1]) == 0){ taro++; hanako++; } else if(line2[0].compareTo(line2[1]) > 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, 17, 41, 13, 17, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 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, 40, 13, 40, 13, 14, 2, 4, 18, 13, 13, 17, 30, 0, 13, 2, 13, 17, 30, 0, 13, 2, 13, 17, 0, 13, 2, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 4, 18, 18, 13, 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 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 8, 29 ], [ 29, 30 ], [ 29, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 8, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 37, 45 ], [ 45, 46 ], [ 46, 47 ], [ 37, 48 ], [ 49, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 49, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 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 ], [ 82, 83 ], [ 82, 84 ], [ 72, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 8, 91 ], [ 91, 92 ], [ 91, 93 ], [ 94, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 94, 99 ], [ 94, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 8, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 6, 110 ], [ 110, 111 ] ]
[ "import java.util.Scanner;\n\n/**\n * \n */\n\n/**\n * @author kawakami\n *\n */\nclass Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tString taro = \"\";\n\t\tString hana = \"\";\n\t\tString str;\n\t\t\n\t\tint i = 0;\n\t\tint num = 0;\n\t\tint tpoi = 0;\n\t\tint\thpoi = 0;\n\t\t\n\t\tnum = as.nextInt();\n\t\t\n\t\tfor(i=0;i<num;i++){\n\t\t\t\n\t\t\ttaro = as.next();\n\t\t\thana = as.next();\n\t\t\t\n\t\t\tif(hana.compareTo(taro) == 0){\n\t\t\t\t\n\t\t\t\ttpoi++;\n\t\t\t\thpoi++;\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(hana.compareTo(taro) < 0){ //??±????????????????????????????????§????????´???\n\t\t\t\t\n\t\t\t\ttpoi = tpoi + 3;\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\n\t\t\t\thpoi = hpoi + 3;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tstr = String.valueOf(tpoi)+\" \"+String.valueOf(hpoi);\n\t\tSystem.out.println(str);\n\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tString taro = \"\";\n\t\tString hana = \"\";\n\t\tString str;\n\t\t\n\t\tint i = 0;\n\t\tint num = 0;\n\t\tint tpoi = 0;\n\t\tint\thpoi = 0;\n\t\t\n\t\tnum = as.nextInt();\n\t\t\n\t\tfor(i=0;i<num;i++){\n\t\t\t\n\t\t\ttaro = as.next();\n\t\t\thana = as.next();\n\t\t\t\n\t\t\tif(hana.compareTo(taro) == 0){\n\t\t\t\t\n\t\t\t\ttpoi++;\n\t\t\t\thpoi++;\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(hana.compareTo(taro) < 0){ //??±????????????????????????????????§????????´???\n\t\t\t\t\n\t\t\t\ttpoi = tpoi + 3;\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\n\t\t\t\thpoi = hpoi + 3;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tstr = String.valueOf(tpoi)+\" \"+String.valueOf(hpoi);\n\t\tSystem.out.println(str);\n\n\t}\n\n}", "Main", "/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tString taro = \"\";\n\t\tString hana = \"\";\n\t\tString str;\n\t\t\n\t\tint i = 0;\n\t\tint num = 0;\n\t\tint tpoi = 0;\n\t\tint\thpoi = 0;\n\t\t\n\t\tnum = as.nextInt();\n\t\t\n\t\tfor(i=0;i<num;i++){\n\t\t\t\n\t\t\ttaro = as.next();\n\t\t\thana = as.next();\n\t\t\t\n\t\t\tif(hana.compareTo(taro) == 0){\n\t\t\t\t\n\t\t\t\ttpoi++;\n\t\t\t\thpoi++;\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(hana.compareTo(taro) < 0){ //??±????????????????????????????????§????????´???\n\t\t\t\t\n\t\t\t\ttpoi = tpoi + 3;\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\n\t\t\t\thpoi = hpoi + 3;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tstr = String.valueOf(tpoi)+\" \"+String.valueOf(hpoi);\n\t\tSystem.out.println(str);\n\n\t}", "main", "{\n\t\t// TODO Auto-generated method stub\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tString taro = \"\";\n\t\tString hana = \"\";\n\t\tString str;\n\t\t\n\t\tint i = 0;\n\t\tint num = 0;\n\t\tint tpoi = 0;\n\t\tint\thpoi = 0;\n\t\t\n\t\tnum = as.nextInt();\n\t\t\n\t\tfor(i=0;i<num;i++){\n\t\t\t\n\t\t\ttaro = as.next();\n\t\t\thana = as.next();\n\t\t\t\n\t\t\tif(hana.compareTo(taro) == 0){\n\t\t\t\t\n\t\t\t\ttpoi++;\n\t\t\t\thpoi++;\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(hana.compareTo(taro) < 0){ //??±????????????????????????????????§????????´???\n\t\t\t\t\n\t\t\t\ttpoi = tpoi + 3;\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\n\t\t\t\thpoi = hpoi + 3;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tstr = String.valueOf(tpoi)+\" \"+String.valueOf(hpoi);\n\t\tSystem.out.println(str);\n\n\t}", "Scanner as = new Scanner(System.in);", "as", "new Scanner(System.in)", "String taro = \"\";", "taro", "\"\"", "String hana = \"\";", "hana", "\"\"", "String str;", "str", "int i = 0;", "i", "0", "int num = 0;", "num", "0", "int tpoi = 0;", "tpoi", "0", "int\thpoi = 0;", "hpoi", "0", "num = as.nextInt()", "num", "as.nextInt()", "as.nextInt", "as", "for(i=0;i<num;i++){\n\t\t\t\n\t\t\ttaro = as.next();\n\t\t\thana = as.next();\n\t\t\t\n\t\t\tif(hana.compareTo(taro) == 0){\n\t\t\t\t\n\t\t\t\ttpoi++;\n\t\t\t\thpoi++;\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(hana.compareTo(taro) < 0){ //??±????????????????????????????????§????????´???\n\t\t\t\t\n\t\t\t\ttpoi = tpoi + 3;\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\n\t\t\t\thpoi = hpoi + 3;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}", "i=0;", "i=0", "i", "0", "i<num", "i", "num", "i++", "i++", "i", "{\n\t\t\t\n\t\t\ttaro = as.next();\n\t\t\thana = as.next();\n\t\t\t\n\t\t\tif(hana.compareTo(taro) == 0){\n\t\t\t\t\n\t\t\t\ttpoi++;\n\t\t\t\thpoi++;\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(hana.compareTo(taro) < 0){ //??±????????????????????????????????§????????´???\n\t\t\t\t\n\t\t\t\ttpoi = tpoi + 3;\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\n\t\t\t\thpoi = hpoi + 3;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}", "{\n\t\t\t\n\t\t\ttaro = as.next();\n\t\t\thana = as.next();\n\t\t\t\n\t\t\tif(hana.compareTo(taro) == 0){\n\t\t\t\t\n\t\t\t\ttpoi++;\n\t\t\t\thpoi++;\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(hana.compareTo(taro) < 0){ //??±????????????????????????????????§????????´???\n\t\t\t\t\n\t\t\t\ttpoi = tpoi + 3;\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\n\t\t\t\thpoi = hpoi + 3;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}", "taro = as.next()", "taro", "as.next()", "as.next", "as", "hana = as.next()", "hana", "as.next()", "as.next", "as", "if(hana.compareTo(taro) == 0){\n\t\t\t\t\n\t\t\t\ttpoi++;\n\t\t\t\thpoi++;\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(hana.compareTo(taro) < 0){ //??±????????????????????????????????§????????´???\n\t\t\t\t\n\t\t\t\ttpoi = tpoi + 3;\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\n\t\t\t\thpoi = hpoi + 3;\n\t\t\t\t\n\t\t\t}", "hana.compareTo(taro) == 0", "hana.compareTo(taro)", "hana.compareTo", "hana", "taro", "0", "{\n\t\t\t\t\n\t\t\t\ttpoi++;\n\t\t\t\thpoi++;\n\t\t\t\t\n\t\t\t}", "tpoi++", "tpoi", "hpoi++", "hpoi", "if(hana.compareTo(taro) < 0){ //??±????????????????????????????????§????????´???\n\t\t\t\t\n\t\t\t\ttpoi = tpoi + 3;\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\n\t\t\t\thpoi = hpoi + 3;\n\t\t\t\t\n\t\t\t}", "hana.compareTo(taro) < 0", "hana.compareTo(taro)", "hana.compareTo", "hana", "taro", "0", "{ //??±????????????????????????????????§????????´???\n\t\t\t\t\n\t\t\t\ttpoi = tpoi + 3;\n\t\t\t\t\n\t\t\t}", "tpoi = tpoi + 3", "tpoi", "tpoi + 3", "tpoi", "3", "{\n\t\t\t\t\n\t\t\t\thpoi = hpoi + 3;\n\t\t\t\t\n\t\t\t}", "hpoi = hpoi + 3", "hpoi", "hpoi + 3", "hpoi", "3", "str = String.valueOf(tpoi)+\" \"+String.valueOf(hpoi)", "str", "String.valueOf(tpoi)+\" \"+String.valueOf(hpoi)", "String.valueOf(tpoi)+\" \"+String.valueOf(hpoi)", "String.valueOf(tpoi)", "String.valueOf", "String", "tpoi", "\" \"", "String.valueOf(hpoi)", "String.valueOf", "String", "hpoi", "System.out.println(str)", "System.out.println", "System.out", "System", "System.out", "str", "String[] args", "args" ]
import java.util.Scanner; /** * */ /** * @author kawakami * */ class Main { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Scanner as = new Scanner(System.in); String taro = ""; String hana = ""; String str; int i = 0; int num = 0; int tpoi = 0; int hpoi = 0; num = as.nextInt(); for(i=0;i<num;i++){ taro = as.next(); hana = as.next(); if(hana.compareTo(taro) == 0){ tpoi++; hpoi++; } else if(hana.compareTo(taro) < 0){ //??±????????????????????????????????§????????´??? tpoi = tpoi + 3; } else{ hpoi = hpoi + 3; } } str = String.valueOf(tpoi)+" "+String.valueOf(hpoi); System.out.println(str); } }
[ 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, 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 ], [ 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 ], [ 6, 85 ], [ 85, 86 ], [ 0, 87 ], [ 87, 88 ], [ 87, 89 ] ]
[ "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 count = sc.nextInt();\n\t\tint point1 = 0;\n\t\tint point2 = 0;\n\n\t\tfor(int i = 0;i < count;i++) {\n\t\t\tString card1 = sc.next();\n\t\t\tString card2 = sc.next();\n\t\t\tif(card1.compareTo(card2) > 0){\n\t\t\t\tpoint1 += 3;\n\t\t\t} else if (card1.compareTo(card2) < 0) {\n\t\t\t\tpoint2 += 3;\n\n\t\t\t} else {\n\t\t\t\tpoint1 += 1;\n\t\t\t\tpoint2 += 1;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(point1 + \" \" + point2);\n\n\n\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 count = sc.nextInt();\n\t\tint point1 = 0;\n\t\tint point2 = 0;\n\n\t\tfor(int i = 0;i < count;i++) {\n\t\t\tString card1 = sc.next();\n\t\t\tString card2 = sc.next();\n\t\t\tif(card1.compareTo(card2) > 0){\n\t\t\t\tpoint1 += 3;\n\t\t\t} else if (card1.compareTo(card2) < 0) {\n\t\t\t\tpoint2 += 3;\n\n\t\t\t} else {\n\t\t\t\tpoint1 += 1;\n\t\t\t\tpoint2 += 1;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(point1 + \" \" + point2);\n\n\n\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count = sc.nextInt();\n\t\tint point1 = 0;\n\t\tint point2 = 0;\n\n\t\tfor(int i = 0;i < count;i++) {\n\t\t\tString card1 = sc.next();\n\t\t\tString card2 = sc.next();\n\t\t\tif(card1.compareTo(card2) > 0){\n\t\t\t\tpoint1 += 3;\n\t\t\t} else if (card1.compareTo(card2) < 0) {\n\t\t\t\tpoint2 += 3;\n\n\t\t\t} else {\n\t\t\t\tpoint1 += 1;\n\t\t\t\tpoint2 += 1;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(point1 + \" \" + point2);\n\n\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count = sc.nextInt();\n\t\tint point1 = 0;\n\t\tint point2 = 0;\n\n\t\tfor(int i = 0;i < count;i++) {\n\t\t\tString card1 = sc.next();\n\t\t\tString card2 = sc.next();\n\t\t\tif(card1.compareTo(card2) > 0){\n\t\t\t\tpoint1 += 3;\n\t\t\t} else if (card1.compareTo(card2) < 0) {\n\t\t\t\tpoint2 += 3;\n\n\t\t\t} else {\n\t\t\t\tpoint1 += 1;\n\t\t\t\tpoint2 += 1;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(point1 + \" \" + point2);\n\n\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int count = sc.nextInt();", "count", "sc.nextInt()", "sc.nextInt", "sc", "int point1 = 0;", "point1", "0", "int point2 = 0;", "point2", "0", "for(int i = 0;i < count;i++) {\n\t\t\tString card1 = sc.next();\n\t\t\tString card2 = sc.next();\n\t\t\tif(card1.compareTo(card2) > 0){\n\t\t\t\tpoint1 += 3;\n\t\t\t} else if (card1.compareTo(card2) < 0) {\n\t\t\t\tpoint2 += 3;\n\n\t\t\t} else {\n\t\t\t\tpoint1 += 1;\n\t\t\t\tpoint2 += 1;\n\t\t\t}\n\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < count", "i", "count", "i++", "i++", "i", "{\n\t\t\tString card1 = sc.next();\n\t\t\tString card2 = sc.next();\n\t\t\tif(card1.compareTo(card2) > 0){\n\t\t\t\tpoint1 += 3;\n\t\t\t} else if (card1.compareTo(card2) < 0) {\n\t\t\t\tpoint2 += 3;\n\n\t\t\t} else {\n\t\t\t\tpoint1 += 1;\n\t\t\t\tpoint2 += 1;\n\t\t\t}\n\n\t\t}", "{\n\t\t\tString card1 = sc.next();\n\t\t\tString card2 = sc.next();\n\t\t\tif(card1.compareTo(card2) > 0){\n\t\t\t\tpoint1 += 3;\n\t\t\t} else if (card1.compareTo(card2) < 0) {\n\t\t\t\tpoint2 += 3;\n\n\t\t\t} else {\n\t\t\t\tpoint1 += 1;\n\t\t\t\tpoint2 += 1;\n\t\t\t}\n\n\t\t}", "String card1 = sc.next();", "card1", "sc.next()", "sc.next", "sc", "String card2 = sc.next();", "card2", "sc.next()", "sc.next", "sc", "if(card1.compareTo(card2) > 0){\n\t\t\t\tpoint1 += 3;\n\t\t\t} else if (card1.compareTo(card2) < 0) {\n\t\t\t\tpoint2 += 3;\n\n\t\t\t} else {\n\t\t\t\tpoint1 += 1;\n\t\t\t\tpoint2 += 1;\n\t\t\t}", "card1.compareTo(card2) > 0", "card1.compareTo(card2)", "card1.compareTo", "card1", "card2", "0", "{\n\t\t\t\tpoint1 += 3;\n\t\t\t}", "point1 += 3", "point1", "3", "if (card1.compareTo(card2) < 0) {\n\t\t\t\tpoint2 += 3;\n\n\t\t\t} else {\n\t\t\t\tpoint1 += 1;\n\t\t\t\tpoint2 += 1;\n\t\t\t}", "card1.compareTo(card2) < 0", "card1.compareTo(card2)", "card1.compareTo", "card1", "card2", "0", "{\n\t\t\t\tpoint2 += 3;\n\n\t\t\t}", "point2 += 3", "point2", "3", "{\n\t\t\t\tpoint1 += 1;\n\t\t\t\tpoint2 += 1;\n\t\t\t}", "point1 += 1", "point1", "1", "point2 += 1", "point2", "1", "System.out.println(point1 + \" \" + point2)", "System.out.println", "System.out", "System", "System.out", "point1 + \" \" + point2", "point1 + \" \" + point2", "point1", "\" \"", "point2", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count = sc.nextInt();\n\t\tint point1 = 0;\n\t\tint point2 = 0;\n\n\t\tfor(int i = 0;i < count;i++) {\n\t\t\tString card1 = sc.next();\n\t\t\tString card2 = sc.next();\n\t\t\tif(card1.compareTo(card2) > 0){\n\t\t\t\tpoint1 += 3;\n\t\t\t} else if (card1.compareTo(card2) < 0) {\n\t\t\t\tpoint2 += 3;\n\n\t\t\t} else {\n\t\t\t\tpoint1 += 1;\n\t\t\t\tpoint2 += 1;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(point1 + \" \" + point2);\n\n\n\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count = sc.nextInt();\n\t\tint point1 = 0;\n\t\tint point2 = 0;\n\n\t\tfor(int i = 0;i < count;i++) {\n\t\t\tString card1 = sc.next();\n\t\t\tString card2 = sc.next();\n\t\t\tif(card1.compareTo(card2) > 0){\n\t\t\t\tpoint1 += 3;\n\t\t\t} else if (card1.compareTo(card2) < 0) {\n\t\t\t\tpoint2 += 3;\n\n\t\t\t} else {\n\t\t\t\tpoint1 += 1;\n\t\t\t\tpoint2 += 1;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(point1 + \" \" + point2);\n\n\n\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int count = sc.nextInt(); int point1 = 0; int point2 = 0; for(int i = 0;i < count;i++) { String card1 = sc.next(); String card2 = sc.next(); if(card1.compareTo(card2) > 0){ point1 += 3; } else if (card1.compareTo(card2) < 0) { point2 += 3; } else { point1 += 1; point2 += 1; } } System.out.println(point1 + " " + point2); } }
[ 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, 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, 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, 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 ], [ 105, 11 ], [ 105, 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 ], [ 22, 29 ], [ 29, 30 ], [ 29, 31 ], [ 22, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 37, 38 ], [ 38, 39 ], [ 22, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 40, 48 ], [ 48, 49 ], [ 49, 50 ], [ 40, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 55, 60 ], [ 52, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 68, 69 ], [ 68, 70 ], [ 52, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 71, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 86, 87 ], [ 79, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 22, 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 public static void main(String[] args) {\n try (BufferedReader in = new BufferedReader(new InputStreamReader(System.in))){\n int taro = 0;\n int hanako = 0;\n\n int n = Integer.parseInt(in.readLine());\n for (int i = 0; i < n; i++) {\n String[] arr = in.readLine().split(\" \");\n int cmp = arr[0].compareTo(arr[1]);\n if (cmp > 0) {\n taro += 3;\n } else if (cmp == 0) {\n taro++;\n hanako++;\n } else {\n hanako += 3;\n }\n }\n\n System.out.println(taro + \" \" + hanako);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n}\n", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n public static void main(String[] args) {\n try (BufferedReader in = new BufferedReader(new InputStreamReader(System.in))){\n int taro = 0;\n int hanako = 0;\n\n int n = Integer.parseInt(in.readLine());\n for (int i = 0; i < n; i++) {\n String[] arr = in.readLine().split(\" \");\n int cmp = arr[0].compareTo(arr[1]);\n if (cmp > 0) {\n taro += 3;\n } else if (cmp == 0) {\n taro++;\n hanako++;\n } else {\n hanako += 3;\n }\n }\n\n System.out.println(taro + \" \" + hanako);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n}", "Main", "public static void main(String[] args) {\n try (BufferedReader in = new BufferedReader(new InputStreamReader(System.in))){\n int taro = 0;\n int hanako = 0;\n\n int n = Integer.parseInt(in.readLine());\n for (int i = 0; i < n; i++) {\n String[] arr = in.readLine().split(\" \");\n int cmp = arr[0].compareTo(arr[1]);\n if (cmp > 0) {\n taro += 3;\n } else if (cmp == 0) {\n taro++;\n hanako++;\n } else {\n hanako += 3;\n }\n }\n\n System.out.println(taro + \" \" + hanako);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "main", "{\n try (BufferedReader in = new BufferedReader(new InputStreamReader(System.in))){\n int taro = 0;\n int hanako = 0;\n\n int n = Integer.parseInt(in.readLine());\n for (int i = 0; i < n; i++) {\n String[] arr = in.readLine().split(\" \");\n int cmp = arr[0].compareTo(arr[1]);\n if (cmp > 0) {\n taro += 3;\n } else if (cmp == 0) {\n taro++;\n hanako++;\n } else {\n hanako += 3;\n }\n }\n\n System.out.println(taro + \" \" + hanako);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "try (BufferedReader in = new BufferedReader(new InputStreamReader(System.in))){\n int taro = 0;\n int hanako = 0;\n\n int n = Integer.parseInt(in.readLine());\n for (int i = 0; i < n; i++) {\n String[] arr = in.readLine().split(\" \");\n int cmp = arr[0].compareTo(arr[1]);\n if (cmp > 0) {\n taro += 3;\n } else if (cmp == 0) {\n taro++;\n hanako++;\n } else {\n hanako += 3;\n }\n }\n\n System.out.println(taro + \" \" + hanako);\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n int taro = 0;\n int hanako = 0;\n\n int n = Integer.parseInt(in.readLine());\n for (int i = 0; i < n; i++) {\n String[] arr = in.readLine().split(\" \");\n int cmp = arr[0].compareTo(arr[1]);\n if (cmp > 0) {\n taro += 3;\n } else if (cmp == 0) {\n taro++;\n hanako++;\n } else {\n hanako += 3;\n }\n }\n\n System.out.println(taro + \" \" + hanako);\n }", "BufferedReader in = new BufferedReader(new InputStreamReader(System.in))", "BufferedReader in = new BufferedReader(new InputStreamReader(System.in))", "new BufferedReader(new InputStreamReader(System.in))", "int taro = 0;", "taro", "0", "int hanako = 0;", "hanako", "0", "int n = Integer.parseInt(in.readLine());", "n", "Integer.parseInt(in.readLine())", "Integer.parseInt", "Integer", "in.readLine()", "in.readLine", "in", "for (int i = 0; i < n; i++) {\n String[] arr = in.readLine().split(\" \");\n int cmp = arr[0].compareTo(arr[1]);\n if (cmp > 0) {\n taro += 3;\n } else if (cmp == 0) {\n taro++;\n hanako++;\n } else {\n hanako += 3;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n String[] arr = in.readLine().split(\" \");\n int cmp = arr[0].compareTo(arr[1]);\n if (cmp > 0) {\n taro += 3;\n } else if (cmp == 0) {\n taro++;\n hanako++;\n } else {\n hanako += 3;\n }\n }", "{\n String[] arr = in.readLine().split(\" \");\n int cmp = arr[0].compareTo(arr[1]);\n if (cmp > 0) {\n taro += 3;\n } else if (cmp == 0) {\n taro++;\n hanako++;\n } else {\n hanako += 3;\n }\n }", "String[] arr = in.readLine().split(\" \");", "arr", "in.readLine().split(\" \")", "in.readLine().split", "in.readLine()", "in.readLine", "in", "\" \"", "int cmp = arr[0].compareTo(arr[1]);", "cmp", "arr[0].compareTo(arr[1])", "arr[0].compareTo", "arr[0]", "arr", "0", "arr[1]", "arr", "1", "if (cmp > 0) {\n taro += 3;\n } else if (cmp == 0) {\n taro++;\n hanako++;\n } else {\n hanako += 3;\n }", "cmp > 0", "cmp", "0", "{\n taro += 3;\n }", "taro += 3", "taro", "3", "if (cmp == 0) {\n taro++;\n hanako++;\n } else {\n hanako += 3;\n }", "cmp == 0", "cmp", "0", "{\n taro++;\n hanako++;\n }", "taro++", "taro", "hanako++", "hanako", "{\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) {\n try (BufferedReader in = new BufferedReader(new InputStreamReader(System.in))){\n int taro = 0;\n int hanako = 0;\n\n int n = Integer.parseInt(in.readLine());\n for (int i = 0; i < n; i++) {\n String[] arr = in.readLine().split(\" \");\n int cmp = arr[0].compareTo(arr[1]);\n if (cmp > 0) {\n taro += 3;\n } else if (cmp == 0) {\n taro++;\n hanako++;\n } else {\n hanako += 3;\n }\n }\n\n System.out.println(taro + \" \" + hanako);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n try (BufferedReader in = new BufferedReader(new InputStreamReader(System.in))){\n int taro = 0;\n int hanako = 0;\n\n int n = Integer.parseInt(in.readLine());\n for (int i = 0; i < n; i++) {\n String[] arr = in.readLine().split(\" \");\n int cmp = arr[0].compareTo(arr[1]);\n if (cmp > 0) {\n taro += 3;\n } else if (cmp == 0) {\n taro++;\n hanako++;\n } else {\n hanako += 3;\n }\n }\n\n System.out.println(taro + \" \" + hanako);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { try (BufferedReader in = new BufferedReader(new InputStreamReader(System.in))){ int taro = 0; int hanako = 0; int n = Integer.parseInt(in.readLine()); for (int i = 0; i < n; i++) { String[] arr = in.readLine().split(" "); int cmp = arr[0].compareTo(arr[1]); if (cmp > 0) { taro += 3; } else if (cmp == 0) { taro++; hanako++; } else { hanako += 3; } } System.out.println(taro + " " + hanako); } catch (IOException e) { e.printStackTrace(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 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, 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 ], [ 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 ], [ 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 ], [ 64, 68 ], [ 68, 69 ], [ 68, 70 ], [ 57, 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 ], [ 6, 85 ], [ 85, 86 ], [ 0, 87 ], [ 87, 88 ], [ 87, 89 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner reader = new Scanner(System.in);\n\n int n = reader.nextInt();\n int tScore = 0, hScore = 0;\n for (int i = 0; i < n; i++) {\n String tStr = reader.next();\n String hStr = reader.next();\n if (tStr.compareTo(hStr) > 0) {\n tScore += 3;\n }\n else if (tStr.compareTo(hStr) == 0) {\n tScore += 1;\n hScore += 1;\n }\n else {\n hScore += 3;\n }\n }\n System.out.println(tScore + \" \" + hScore);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner reader = new Scanner(System.in);\n\n int n = reader.nextInt();\n int tScore = 0, hScore = 0;\n for (int i = 0; i < n; i++) {\n String tStr = reader.next();\n String hStr = reader.next();\n if (tStr.compareTo(hStr) > 0) {\n tScore += 3;\n }\n else if (tStr.compareTo(hStr) == 0) {\n tScore += 1;\n hScore += 1;\n }\n else {\n hScore += 3;\n }\n }\n System.out.println(tScore + \" \" + hScore);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner reader = new Scanner(System.in);\n\n int n = reader.nextInt();\n int tScore = 0, hScore = 0;\n for (int i = 0; i < n; i++) {\n String tStr = reader.next();\n String hStr = reader.next();\n if (tStr.compareTo(hStr) > 0) {\n tScore += 3;\n }\n else if (tStr.compareTo(hStr) == 0) {\n tScore += 1;\n hScore += 1;\n }\n else {\n hScore += 3;\n }\n }\n System.out.println(tScore + \" \" + hScore);\n }", "main", "{\n Scanner reader = new Scanner(System.in);\n\n int n = reader.nextInt();\n int tScore = 0, hScore = 0;\n for (int i = 0; i < n; i++) {\n String tStr = reader.next();\n String hStr = reader.next();\n if (tStr.compareTo(hStr) > 0) {\n tScore += 3;\n }\n else if (tStr.compareTo(hStr) == 0) {\n tScore += 1;\n hScore += 1;\n }\n else {\n hScore += 3;\n }\n }\n System.out.println(tScore + \" \" + hScore);\n }", "Scanner reader = new Scanner(System.in);", "reader", "new Scanner(System.in)", "int n = reader.nextInt();", "n", "reader.nextInt()", "reader.nextInt", "reader", "int tScore = 0", "tScore", "0", "hScore = 0;", "hScore", "0", "for (int i = 0; i < n; i++) {\n String tStr = reader.next();\n String hStr = reader.next();\n if (tStr.compareTo(hStr) > 0) {\n tScore += 3;\n }\n else if (tStr.compareTo(hStr) == 0) {\n tScore += 1;\n hScore += 1;\n }\n else {\n hScore += 3;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n String tStr = reader.next();\n String hStr = reader.next();\n if (tStr.compareTo(hStr) > 0) {\n tScore += 3;\n }\n else if (tStr.compareTo(hStr) == 0) {\n tScore += 1;\n hScore += 1;\n }\n else {\n hScore += 3;\n }\n }", "{\n String tStr = reader.next();\n String hStr = reader.next();\n if (tStr.compareTo(hStr) > 0) {\n tScore += 3;\n }\n else if (tStr.compareTo(hStr) == 0) {\n tScore += 1;\n hScore += 1;\n }\n else {\n hScore += 3;\n }\n }", "String tStr = reader.next();", "tStr", "reader.next()", "reader.next", "reader", "String hStr = reader.next();", "hStr", "reader.next()", "reader.next", "reader", "if (tStr.compareTo(hStr) > 0) {\n tScore += 3;\n }\n else if (tStr.compareTo(hStr) == 0) {\n tScore += 1;\n hScore += 1;\n }\n else {\n hScore += 3;\n }", "tStr.compareTo(hStr) > 0", "tStr.compareTo(hStr)", "tStr.compareTo", "tStr", "hStr", "0", "{\n tScore += 3;\n }", "tScore += 3", "tScore", "3", "if (tStr.compareTo(hStr) == 0) {\n tScore += 1;\n hScore += 1;\n }\n else {\n hScore += 3;\n }", "tStr.compareTo(hStr) == 0", "tStr.compareTo(hStr)", "tStr.compareTo", "tStr", "hStr", "0", "{\n tScore += 1;\n hScore += 1;\n }", "tScore += 1", "tScore", "1", "hScore += 1", "hScore", "1", "{\n hScore += 3;\n }", "hScore += 3", "hScore", "3", "System.out.println(tScore + \" \" + hScore)", "System.out.println", "System.out", "System", "System.out", "tScore + \" \" + hScore", "tScore + \" \" + hScore", "tScore", "\" \"", "hScore", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner reader = new Scanner(System.in);\n\n int n = reader.nextInt();\n int tScore = 0, hScore = 0;\n for (int i = 0; i < n; i++) {\n String tStr = reader.next();\n String hStr = reader.next();\n if (tStr.compareTo(hStr) > 0) {\n tScore += 3;\n }\n else if (tStr.compareTo(hStr) == 0) {\n tScore += 1;\n hScore += 1;\n }\n else {\n hScore += 3;\n }\n }\n System.out.println(tScore + \" \" + hScore);\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner reader = new Scanner(System.in);\n\n int n = reader.nextInt();\n int tScore = 0, hScore = 0;\n for (int i = 0; i < n; i++) {\n String tStr = reader.next();\n String hStr = reader.next();\n if (tStr.compareTo(hStr) > 0) {\n tScore += 3;\n }\n else if (tStr.compareTo(hStr) == 0) {\n tScore += 1;\n hScore += 1;\n }\n else {\n hScore += 3;\n }\n }\n System.out.println(tScore + \" \" + hScore);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner reader = new Scanner(System.in); int n = reader.nextInt(); int tScore = 0, hScore = 0; for (int i = 0; i < n; i++) { String tStr = reader.next(); String hStr = reader.next(); if (tStr.compareTo(hStr) > 0) { tScore += 3; } else if (tStr.compareTo(hStr) == 0) { tScore += 1; hScore += 1; } else { hScore += 3; } } System.out.println(tScore + " " + hScore); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 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, 41, 13, 4, 18, 18, 13, 17, 41, 13, 17, 41, 13, 18, 13, 13, 14, 2, 18, 13, 13, 18, 13, 13, 30, 0, 13, 18, 13, 13, 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, 3, 14, 2, 18, 13, 13, 18, 13, 13, 30, 0, 13, 17, 3, 14, 2, 13, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 30, 14, 2, 18, 13, 13, 18, 13, 13, 30, 0, 13, 17, 14, 2, 18, 13, 13, 18, 13, 13, 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 ], [ 186, 8 ], [ 186, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 17, 20 ], [ 20, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 11, 26 ], [ 26, 27 ], [ 26, 28 ], [ 11, 29 ], [ 29, 30 ], [ 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 ], [ 46, 47 ], [ 47, 48 ], [ 44, 49 ], [ 41, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 41, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 41, 64 ], [ 64, 65 ], [ 64, 66 ], [ 41, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 41, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 77, 79 ], [ 72, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 41, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 91, 92 ], [ 91, 93 ], [ 86, 94 ], [ 94, 95 ], [ 95, 96 ], [ 86, 97 ], [ 98, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 104, 105 ], [ 104, 106 ], [ 99, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 99, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 117, 118 ], [ 117, 119 ], [ 112, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 41, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 125, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 125, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 133, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 133, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 147, 148 ], [ 147, 149 ], [ 142, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 142, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 155, 159 ], [ 159, 160 ], [ 159, 161 ], [ 154, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 154, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 166, 170 ], [ 170, 171 ], [ 170, 172 ], [ 11, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 175, 177 ], [ 173, 178 ], [ 179, 179 ], [ 179, 180 ], [ 179, 181 ], [ 179, 182 ], [ 9, 183 ], [ 183, 184 ], [ 0, 185 ], [ 185, 186 ], [ 185, 187 ] ]
[ "import java.util.Scanner;\nimport java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tint tarou_point = 0;\n\t\tint hanako_point = 0;\n\t\t\n\t\tfor (int i = 0; i < n; i++){\n\t\t String []words = sc.nextLine().split(\" \");\n\t\t char tarou[] = words[0].toCharArray();\n\t\t char hanako[] = words[1].toCharArray();\n\t\t int flag = 2;\n\t\t \n\t\t int length = hanako.length;\n\t\t \n\t\t if (tarou.length < hanako.length){\n\t\t length = tarou.length;\n\t\t }\n\t\t \n\t\t for (int l = 0; l < length; l++){\n\t\t if (tarou[l] < hanako[l]){\n\t\t flag = 0;\n\t\t break;\n\t\t }else if(tarou[l] > hanako[l]){\n\t\t flag = 1;\n\t\t break;\n\t\t }\n\t\t }\n\t\t \n\t\t if (flag == 0){\n\t\t hanako_point += 3;\n\t\t }else if(flag == 1){\n\t\t tarou_point += 3;\n\t\t }else{\n\t\t if (tarou.length > hanako.length){\n\t\t tarou_point += 3;\n\t\t }else if (tarou.length < hanako.length){\n\t\t hanako_point += 3;\n\t\t } else{\n\t\t hanako_point += 1;\n\t\t tarou_point += 1;\n\t\t }\n\t\t \n\t\t }\n\t\t}\n\t\t\n\t\tSystem.out.println(tarou_point + \" \" + hanako_point);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.*;", "util.*", "java", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tint tarou_point = 0;\n\t\tint hanako_point = 0;\n\t\t\n\t\tfor (int i = 0; i < n; i++){\n\t\t String []words = sc.nextLine().split(\" \");\n\t\t char tarou[] = words[0].toCharArray();\n\t\t char hanako[] = words[1].toCharArray();\n\t\t int flag = 2;\n\t\t \n\t\t int length = hanako.length;\n\t\t \n\t\t if (tarou.length < hanako.length){\n\t\t length = tarou.length;\n\t\t }\n\t\t \n\t\t for (int l = 0; l < length; l++){\n\t\t if (tarou[l] < hanako[l]){\n\t\t flag = 0;\n\t\t break;\n\t\t }else if(tarou[l] > hanako[l]){\n\t\t flag = 1;\n\t\t break;\n\t\t }\n\t\t }\n\t\t \n\t\t if (flag == 0){\n\t\t hanako_point += 3;\n\t\t }else if(flag == 1){\n\t\t tarou_point += 3;\n\t\t }else{\n\t\t if (tarou.length > hanako.length){\n\t\t tarou_point += 3;\n\t\t }else if (tarou.length < hanako.length){\n\t\t hanako_point += 3;\n\t\t } else{\n\t\t hanako_point += 1;\n\t\t tarou_point += 1;\n\t\t }\n\t\t \n\t\t }\n\t\t}\n\t\t\n\t\tSystem.out.println(tarou_point + \" \" + hanako_point);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tint tarou_point = 0;\n\t\tint hanako_point = 0;\n\t\t\n\t\tfor (int i = 0; i < n; i++){\n\t\t String []words = sc.nextLine().split(\" \");\n\t\t char tarou[] = words[0].toCharArray();\n\t\t char hanako[] = words[1].toCharArray();\n\t\t int flag = 2;\n\t\t \n\t\t int length = hanako.length;\n\t\t \n\t\t if (tarou.length < hanako.length){\n\t\t length = tarou.length;\n\t\t }\n\t\t \n\t\t for (int l = 0; l < length; l++){\n\t\t if (tarou[l] < hanako[l]){\n\t\t flag = 0;\n\t\t break;\n\t\t }else if(tarou[l] > hanako[l]){\n\t\t flag = 1;\n\t\t break;\n\t\t }\n\t\t }\n\t\t \n\t\t if (flag == 0){\n\t\t hanako_point += 3;\n\t\t }else if(flag == 1){\n\t\t tarou_point += 3;\n\t\t }else{\n\t\t if (tarou.length > hanako.length){\n\t\t tarou_point += 3;\n\t\t }else if (tarou.length < hanako.length){\n\t\t hanako_point += 3;\n\t\t } else{\n\t\t hanako_point += 1;\n\t\t tarou_point += 1;\n\t\t }\n\t\t \n\t\t }\n\t\t}\n\t\t\n\t\tSystem.out.println(tarou_point + \" \" + hanako_point);\n\t}", "main", "{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tint tarou_point = 0;\n\t\tint hanako_point = 0;\n\t\t\n\t\tfor (int i = 0; i < n; i++){\n\t\t String []words = sc.nextLine().split(\" \");\n\t\t char tarou[] = words[0].toCharArray();\n\t\t char hanako[] = words[1].toCharArray();\n\t\t int flag = 2;\n\t\t \n\t\t int length = hanako.length;\n\t\t \n\t\t if (tarou.length < hanako.length){\n\t\t length = tarou.length;\n\t\t }\n\t\t \n\t\t for (int l = 0; l < length; l++){\n\t\t if (tarou[l] < hanako[l]){\n\t\t flag = 0;\n\t\t break;\n\t\t }else if(tarou[l] > hanako[l]){\n\t\t flag = 1;\n\t\t break;\n\t\t }\n\t\t }\n\t\t \n\t\t if (flag == 0){\n\t\t hanako_point += 3;\n\t\t }else if(flag == 1){\n\t\t tarou_point += 3;\n\t\t }else{\n\t\t if (tarou.length > hanako.length){\n\t\t tarou_point += 3;\n\t\t }else if (tarou.length < hanako.length){\n\t\t hanako_point += 3;\n\t\t } else{\n\t\t hanako_point += 1;\n\t\t tarou_point += 1;\n\t\t }\n\t\t \n\t\t }\n\t\t}\n\t\t\n\t\tSystem.out.println(tarou_point + \" \" + hanako_point);\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 tarou_point = 0;", "tarou_point", "0", "int hanako_point = 0;", "hanako_point", "0", "for (int i = 0; i < n; i++){\n\t\t String []words = sc.nextLine().split(\" \");\n\t\t char tarou[] = words[0].toCharArray();\n\t\t char hanako[] = words[1].toCharArray();\n\t\t int flag = 2;\n\t\t \n\t\t int length = hanako.length;\n\t\t \n\t\t if (tarou.length < hanako.length){\n\t\t length = tarou.length;\n\t\t }\n\t\t \n\t\t for (int l = 0; l < length; l++){\n\t\t if (tarou[l] < hanako[l]){\n\t\t flag = 0;\n\t\t break;\n\t\t }else if(tarou[l] > hanako[l]){\n\t\t flag = 1;\n\t\t break;\n\t\t }\n\t\t }\n\t\t \n\t\t if (flag == 0){\n\t\t hanako_point += 3;\n\t\t }else if(flag == 1){\n\t\t tarou_point += 3;\n\t\t }else{\n\t\t if (tarou.length > hanako.length){\n\t\t tarou_point += 3;\n\t\t }else if (tarou.length < hanako.length){\n\t\t hanako_point += 3;\n\t\t } else{\n\t\t hanako_point += 1;\n\t\t tarou_point += 1;\n\t\t }\n\t\t \n\t\t }\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t String []words = sc.nextLine().split(\" \");\n\t\t char tarou[] = words[0].toCharArray();\n\t\t char hanako[] = words[1].toCharArray();\n\t\t int flag = 2;\n\t\t \n\t\t int length = hanako.length;\n\t\t \n\t\t if (tarou.length < hanako.length){\n\t\t length = tarou.length;\n\t\t }\n\t\t \n\t\t for (int l = 0; l < length; l++){\n\t\t if (tarou[l] < hanako[l]){\n\t\t flag = 0;\n\t\t break;\n\t\t }else if(tarou[l] > hanako[l]){\n\t\t flag = 1;\n\t\t break;\n\t\t }\n\t\t }\n\t\t \n\t\t if (flag == 0){\n\t\t hanako_point += 3;\n\t\t }else if(flag == 1){\n\t\t tarou_point += 3;\n\t\t }else{\n\t\t if (tarou.length > hanako.length){\n\t\t tarou_point += 3;\n\t\t }else if (tarou.length < hanako.length){\n\t\t hanako_point += 3;\n\t\t } else{\n\t\t hanako_point += 1;\n\t\t tarou_point += 1;\n\t\t }\n\t\t \n\t\t }\n\t\t}", "{\n\t\t String []words = sc.nextLine().split(\" \");\n\t\t char tarou[] = words[0].toCharArray();\n\t\t char hanako[] = words[1].toCharArray();\n\t\t int flag = 2;\n\t\t \n\t\t int length = hanako.length;\n\t\t \n\t\t if (tarou.length < hanako.length){\n\t\t length = tarou.length;\n\t\t }\n\t\t \n\t\t for (int l = 0; l < length; l++){\n\t\t if (tarou[l] < hanako[l]){\n\t\t flag = 0;\n\t\t break;\n\t\t }else if(tarou[l] > hanako[l]){\n\t\t flag = 1;\n\t\t break;\n\t\t }\n\t\t }\n\t\t \n\t\t if (flag == 0){\n\t\t hanako_point += 3;\n\t\t }else if(flag == 1){\n\t\t tarou_point += 3;\n\t\t }else{\n\t\t if (tarou.length > hanako.length){\n\t\t tarou_point += 3;\n\t\t }else if (tarou.length < hanako.length){\n\t\t hanako_point += 3;\n\t\t } else{\n\t\t hanako_point += 1;\n\t\t tarou_point += 1;\n\t\t }\n\t\t \n\t\t }\n\t\t}", "String []words = sc.nextLine().split(\" \");", "words", "sc.nextLine().split(\" \")", "sc.nextLine().split", "sc.nextLine()", "sc.nextLine", "sc", "\" \"", "char tarou[] = words[0].toCharArray();", "tarou", "words[0].toCharArray()", "words[0].toCharArray", "words[0]", "words", "0", "char hanako[] = words[1].toCharArray();", "hanako", "words[1].toCharArray()", "words[1].toCharArray", "words[1]", "words", "1", "int flag = 2;", "flag", "2", "int length = hanako.length;", "length", "hanako.length", "hanako", "hanako.length", "if (tarou.length < hanako.length){\n\t\t length = tarou.length;\n\t\t }", "tarou.length < hanako.length", "tarou.length", "tarou", "tarou.length", "hanako.length", "hanako", "hanako.length", "{\n\t\t length = tarou.length;\n\t\t }", "length = tarou.length", "length", "tarou.length", "tarou", "tarou.length", "for (int l = 0; l < length; l++){\n\t\t if (tarou[l] < hanako[l]){\n\t\t flag = 0;\n\t\t break;\n\t\t }else if(tarou[l] > hanako[l]){\n\t\t flag = 1;\n\t\t break;\n\t\t }\n\t\t }", "int l = 0;", "int l = 0;", "l", "0", "l < length", "l", "length", "l++", "l++", "l", "{\n\t\t if (tarou[l] < hanako[l]){\n\t\t flag = 0;\n\t\t break;\n\t\t }else if(tarou[l] > hanako[l]){\n\t\t flag = 1;\n\t\t break;\n\t\t }\n\t\t }", "{\n\t\t if (tarou[l] < hanako[l]){\n\t\t flag = 0;\n\t\t break;\n\t\t }else if(tarou[l] > hanako[l]){\n\t\t flag = 1;\n\t\t break;\n\t\t }\n\t\t }", "if (tarou[l] < hanako[l]){\n\t\t flag = 0;\n\t\t break;\n\t\t }else if(tarou[l] > hanako[l]){\n\t\t flag = 1;\n\t\t break;\n\t\t }", "tarou[l] < hanako[l]", "tarou[l]", "tarou", "l", "hanako[l]", "hanako", "l", "{\n\t\t flag = 0;\n\t\t break;\n\t\t }", "flag = 0", "flag", "0", "break;", "if(tarou[l] > hanako[l]){\n\t\t flag = 1;\n\t\t break;\n\t\t }", "tarou[l] > hanako[l]", "tarou[l]", "tarou", "l", "hanako[l]", "hanako", "l", "{\n\t\t flag = 1;\n\t\t break;\n\t\t }", "flag = 1", "flag", "1", "break;", "if (flag == 0){\n\t\t hanako_point += 3;\n\t\t }else if(flag == 1){\n\t\t tarou_point += 3;\n\t\t }else{\n\t\t if (tarou.length > hanako.length){\n\t\t tarou_point += 3;\n\t\t }else if (tarou.length < hanako.length){\n\t\t hanako_point += 3;\n\t\t } else{\n\t\t hanako_point += 1;\n\t\t tarou_point += 1;\n\t\t }\n\t\t \n\t\t }", "flag == 0", "flag", "0", "{\n\t\t hanako_point += 3;\n\t\t }", "hanako_point += 3", "hanako_point", "3", "if(flag == 1){\n\t\t tarou_point += 3;\n\t\t }else{\n\t\t if (tarou.length > hanako.length){\n\t\t tarou_point += 3;\n\t\t }else if (tarou.length < hanako.length){\n\t\t hanako_point += 3;\n\t\t } else{\n\t\t hanako_point += 1;\n\t\t tarou_point += 1;\n\t\t }\n\t\t \n\t\t }", "flag == 1", "flag", "1", "{\n\t\t tarou_point += 3;\n\t\t }", "tarou_point += 3", "tarou_point", "3", "{\n\t\t if (tarou.length > hanako.length){\n\t\t tarou_point += 3;\n\t\t }else if (tarou.length < hanako.length){\n\t\t hanako_point += 3;\n\t\t } else{\n\t\t hanako_point += 1;\n\t\t tarou_point += 1;\n\t\t }\n\t\t \n\t\t }", "if (tarou.length > hanako.length){\n\t\t tarou_point += 3;\n\t\t }else if (tarou.length < hanako.length){\n\t\t hanako_point += 3;\n\t\t } else{\n\t\t hanako_point += 1;\n\t\t tarou_point += 1;\n\t\t }", "tarou.length > hanako.length", "tarou.length", "tarou", "tarou.length", "hanako.length", "hanako", "hanako.length", "{\n\t\t tarou_point += 3;\n\t\t }", "tarou_point += 3", "tarou_point", "3", "if (tarou.length < hanako.length){\n\t\t hanako_point += 3;\n\t\t } else{\n\t\t hanako_point += 1;\n\t\t tarou_point += 1;\n\t\t }", "tarou.length < hanako.length", "tarou.length", "tarou", "tarou.length", "hanako.length", "hanako", "hanako.length", "{\n\t\t hanako_point += 3;\n\t\t }", "hanako_point += 3", "hanako_point", "3", "{\n\t\t hanako_point += 1;\n\t\t tarou_point += 1;\n\t\t }", "hanako_point += 1", "hanako_point", "1", "tarou_point += 1", "tarou_point", "1", "System.out.println(tarou_point + \" \" + hanako_point)", "System.out.println", "System.out", "System", "System.out", "tarou_point + \" \" + hanako_point", "tarou_point + \" \" + hanako_point", "tarou_point", "\" \"", "hanako_point", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tint tarou_point = 0;\n\t\tint hanako_point = 0;\n\t\t\n\t\tfor (int i = 0; i < n; i++){\n\t\t String []words = sc.nextLine().split(\" \");\n\t\t char tarou[] = words[0].toCharArray();\n\t\t char hanako[] = words[1].toCharArray();\n\t\t int flag = 2;\n\t\t \n\t\t int length = hanako.length;\n\t\t \n\t\t if (tarou.length < hanako.length){\n\t\t length = tarou.length;\n\t\t }\n\t\t \n\t\t for (int l = 0; l < length; l++){\n\t\t if (tarou[l] < hanako[l]){\n\t\t flag = 0;\n\t\t break;\n\t\t }else if(tarou[l] > hanako[l]){\n\t\t flag = 1;\n\t\t break;\n\t\t }\n\t\t }\n\t\t \n\t\t if (flag == 0){\n\t\t hanako_point += 3;\n\t\t }else if(flag == 1){\n\t\t tarou_point += 3;\n\t\t }else{\n\t\t if (tarou.length > hanako.length){\n\t\t tarou_point += 3;\n\t\t }else if (tarou.length < hanako.length){\n\t\t hanako_point += 3;\n\t\t } else{\n\t\t hanako_point += 1;\n\t\t tarou_point += 1;\n\t\t }\n\t\t \n\t\t }\n\t\t}\n\t\t\n\t\tSystem.out.println(tarou_point + \" \" + hanako_point);\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tint tarou_point = 0;\n\t\tint hanako_point = 0;\n\t\t\n\t\tfor (int i = 0; i < n; i++){\n\t\t String []words = sc.nextLine().split(\" \");\n\t\t char tarou[] = words[0].toCharArray();\n\t\t char hanako[] = words[1].toCharArray();\n\t\t int flag = 2;\n\t\t \n\t\t int length = hanako.length;\n\t\t \n\t\t if (tarou.length < hanako.length){\n\t\t length = tarou.length;\n\t\t }\n\t\t \n\t\t for (int l = 0; l < length; l++){\n\t\t if (tarou[l] < hanako[l]){\n\t\t flag = 0;\n\t\t break;\n\t\t }else if(tarou[l] > hanako[l]){\n\t\t flag = 1;\n\t\t break;\n\t\t }\n\t\t }\n\t\t \n\t\t if (flag == 0){\n\t\t hanako_point += 3;\n\t\t }else if(flag == 1){\n\t\t tarou_point += 3;\n\t\t }else{\n\t\t if (tarou.length > hanako.length){\n\t\t tarou_point += 3;\n\t\t }else if (tarou.length < hanako.length){\n\t\t hanako_point += 3;\n\t\t } else{\n\t\t hanako_point += 1;\n\t\t tarou_point += 1;\n\t\t }\n\t\t \n\t\t }\n\t\t}\n\t\t\n\t\tSystem.out.println(tarou_point + \" \" + hanako_point);\n\t}\n}", "Main" ]
import java.util.Scanner; import java.util.*; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.nextLine()); int tarou_point = 0; int hanako_point = 0; for (int i = 0; i < n; i++){ String []words = sc.nextLine().split(" "); char tarou[] = words[0].toCharArray(); char hanako[] = words[1].toCharArray(); int flag = 2; int length = hanako.length; if (tarou.length < hanako.length){ length = tarou.length; } for (int l = 0; l < length; l++){ if (tarou[l] < hanako[l]){ flag = 0; break; }else if(tarou[l] > hanako[l]){ flag = 1; break; } } if (flag == 0){ hanako_point += 3; }else if(flag == 1){ tarou_point += 3; }else{ if (tarou.length > hanako.length){ tarou_point += 3; }else if (tarou.length < hanako.length){ hanako_point += 3; } else{ hanako_point += 1; tarou_point += 1; } } } System.out.println(tarou_point + " " + hanako_point); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 39, 17, 17, 41, 13, 20, 28, 13, 13, 30, 30, 41, 13, 20, 4, 18, 13, 13, 4, 18, 13, 13, 41, 13, 20, 42, 4, 18, 13, 30, 0, 13, 4, 18, 13, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 13, 13, 4, 18, 13, 13, 14, 4, 18, 13, 13, 30, 4, 18, 4, 18, 13, 17, 17, 4, 18, 4, 18, 13, 17, 17, 14, 4, 18, 4, 18, 13, 17, 13, 30, 4, 18, 4, 18, 13, 17, 17, 14, 4, 18, 4, 18, 13, 17, 13, 30, 4, 18, 4, 18, 13, 17, 17, 3, 4, 18, 18, 13, 13, 2, 2, 4, 18, 4, 18, 13, 17, 17, 4, 18, 4, 18, 13, 17, 23, 13, 6, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 12, 13, 30, 0, 13, 13, 23, 13, 12, 13, 30, 0, 13, 13, 23, 13, 12, 13, 30, 0, 13, 13, 23, 13, 12, 13, 30, 29, 13, 12, 13, 30, 29, 13, 12, 13, 30, 29, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 225, 11 ], [ 225, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 20, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 26, 29 ], [ 30, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 14, 42 ], [ 42, 43 ], [ 42, 44 ], [ 14, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 49, 55 ], [ 14, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 61, 62 ], [ 61, 63 ], [ 56, 64 ], [ 64, 65 ], [ 65, 66 ], [ 56, 67 ], [ 68, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 72, 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 ], [ 87, 90 ], [ 76, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 76, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 76, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 99, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 105, 111 ], [ 104, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 114, 117 ], [ 112, 118 ], [ 99, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 122, 125 ], [ 120, 126 ], [ 119, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 130, 133 ], [ 128, 134 ], [ 119, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 138, 141 ], [ 136, 142 ], [ 135, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 146, 149 ], [ 144, 150 ], [ 76, 151 ], [ 14, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 152, 157 ], [ 158, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 161, 164 ], [ 158, 165 ], [ 158, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 168, 171 ], [ 12, 172 ], [ 172, 173 ], [ 0, 174 ], [ 174, 175 ], [ 174, 176 ], [ 176, 177 ], [ 176, 178 ], [ 174, 179 ], [ 179, 180 ], [ 179, 181 ], [ 174, 182 ], [ 182, 183 ], [ 182, 184 ], [ 174, 185 ], [ 185, 186 ], [ 185, 187 ], [ 187, 188 ], [ 188, 189 ], [ 188, 190 ], [ 185, 191 ], [ 191, 192 ], [ 174, 193 ], [ 193, 194 ], [ 193, 195 ], [ 195, 196 ], [ 196, 197 ], [ 196, 198 ], [ 193, 199 ], [ 199, 200 ], [ 174, 201 ], [ 201, 202 ], [ 201, 203 ], [ 203, 204 ], [ 204, 205 ], [ 204, 206 ], [ 201, 207 ], [ 207, 208 ], [ 174, 209 ], [ 209, 210 ], [ 209, 211 ], [ 211, 212 ], [ 212, 213 ], [ 174, 214 ], [ 214, 215 ], [ 214, 216 ], [ 216, 217 ], [ 217, 218 ], [ 174, 219 ], [ 219, 220 ], [ 219, 221 ], [ 221, 222 ], [ 222, 223 ], [ 0, 224 ], [ 224, 225 ], [ 224, 226 ] ]
[ "\n\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t//\n\t\tint matches = 0;\n\t\t// 対戦者達\n\t\tString[] players = { \"太郎\", \"花子\" };\n\t\t//\n\t\tArrayList<player2> players_beans = new ArrayList<player2>();;\n\t\t//プレイヤーのインスタンスを作る\n\t\tfor (String val : players) {\n\t\t\tplayer2 obj = new player2();\n\t\t\tobj.setName(val);\n\t\t\tplayers_beans.add(obj);\n\t\t}\n\n\t\t// 標準入力\n\t\tScanner sc = new Scanner(System.in);\n\n\n\t\t// 対戦回数\n\t\twhile (sc.hasNext()) {\n\n\t\t\tmatches = sc.nextInt();\n\t\t\tbreak;\n\t\t}\n\n\t\t// 対戦回数分まわす\n\t\tfor (int m = 0; m < matches; m++) {\n\n\t\t\t// カードを入れるリスト\n\t\t\tArrayList<String> battle = new ArrayList<String>();\n\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\t// 入力文字列をリストに追加\n\t\t\t\tString taro_card = sc.next();\n\t\t\t\tString hanako_card = sc.next();\n\t\t\t\t\n\t\t\t\tbattle.add(taro_card);\n\t\t\t\tbattle.add(hanako_card);\n\n\t\t\t\t// アルファベット順にソート\n\t\t\t\tCollections.sort(battle);\n\n\t\t\t\t// 引き分けの場合\n\t\t\t\tif (taro_card.equals(hanako_card)) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(1);\n\t\t\t\t\tplayers_beans.get(1).setPoints(1);\n\t\t\t\t}\n\n\t\t\t\t// 太郎が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(hanako_card)) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\t// 花子が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(taro_card)) {\n\t\t\t\t\tplayers_beans.get(1).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// 出力\n\t\tSystem.out.println(players_beans.get(0).getPoints() + \" \" + players_beans.get(1).getPoints());\n\t}\n}\n\n// 各プレイヤーのプロパティ\nclass player2 {\n\n\t//\n\tprivate String name = \"\";\n\tprivate String card = \"\";\n\tprivate int points = 0;\n\n\t// セッター\n\tpublic void setName(String n) {\n\t\tname = n;\n\t}\n\n\tpublic void setCard(String c) {\n\t\tcard = c;\n\t}\n\n\t// 合計値を持つようにする\n\tpublic void setPoints(int p) {\n\t\tpoints += p;\n\t}\n\n\t// ゲッター\n\tpublic String getName() {\n\t\treturn name;\n\t}\n\n\tpublic String getCard() {\n\t\treturn card;\n\t}\n\n\tpublic int getPoints() {\n\t\treturn points;\n\t}\n\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Collections;", "Collections", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t//\n\t\tint matches = 0;\n\t\t// 対戦者達\n\t\tString[] players = { \"太郎\", \"花子\" };\n\t\t//\n\t\tArrayList<player2> players_beans = new ArrayList<player2>();;\n\t\t//プレイヤーのインスタンスを作る\n\t\tfor (String val : players) {\n\t\t\tplayer2 obj = new player2();\n\t\t\tobj.setName(val);\n\t\t\tplayers_beans.add(obj);\n\t\t}\n\n\t\t// 標準入力\n\t\tScanner sc = new Scanner(System.in);\n\n\n\t\t// 対戦回数\n\t\twhile (sc.hasNext()) {\n\n\t\t\tmatches = sc.nextInt();\n\t\t\tbreak;\n\t\t}\n\n\t\t// 対戦回数分まわす\n\t\tfor (int m = 0; m < matches; m++) {\n\n\t\t\t// カードを入れるリスト\n\t\t\tArrayList<String> battle = new ArrayList<String>();\n\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\t// 入力文字列をリストに追加\n\t\t\t\tString taro_card = sc.next();\n\t\t\t\tString hanako_card = sc.next();\n\t\t\t\t\n\t\t\t\tbattle.add(taro_card);\n\t\t\t\tbattle.add(hanako_card);\n\n\t\t\t\t// アルファベット順にソート\n\t\t\t\tCollections.sort(battle);\n\n\t\t\t\t// 引き分けの場合\n\t\t\t\tif (taro_card.equals(hanako_card)) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(1);\n\t\t\t\t\tplayers_beans.get(1).setPoints(1);\n\t\t\t\t}\n\n\t\t\t\t// 太郎が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(hanako_card)) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\t// 花子が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(taro_card)) {\n\t\t\t\t\tplayers_beans.get(1).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// 出力\n\t\tSystem.out.println(players_beans.get(0).getPoints() + \" \" + players_beans.get(1).getPoints());\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\t//\n\t\tint matches = 0;\n\t\t// 対戦者達\n\t\tString[] players = { \"太郎\", \"花子\" };\n\t\t//\n\t\tArrayList<player2> players_beans = new ArrayList<player2>();;\n\t\t//プレイヤーのインスタンスを作る\n\t\tfor (String val : players) {\n\t\t\tplayer2 obj = new player2();\n\t\t\tobj.setName(val);\n\t\t\tplayers_beans.add(obj);\n\t\t}\n\n\t\t// 標準入力\n\t\tScanner sc = new Scanner(System.in);\n\n\n\t\t// 対戦回数\n\t\twhile (sc.hasNext()) {\n\n\t\t\tmatches = sc.nextInt();\n\t\t\tbreak;\n\t\t}\n\n\t\t// 対戦回数分まわす\n\t\tfor (int m = 0; m < matches; m++) {\n\n\t\t\t// カードを入れるリスト\n\t\t\tArrayList<String> battle = new ArrayList<String>();\n\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\t// 入力文字列をリストに追加\n\t\t\t\tString taro_card = sc.next();\n\t\t\t\tString hanako_card = sc.next();\n\t\t\t\t\n\t\t\t\tbattle.add(taro_card);\n\t\t\t\tbattle.add(hanako_card);\n\n\t\t\t\t// アルファベット順にソート\n\t\t\t\tCollections.sort(battle);\n\n\t\t\t\t// 引き分けの場合\n\t\t\t\tif (taro_card.equals(hanako_card)) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(1);\n\t\t\t\t\tplayers_beans.get(1).setPoints(1);\n\t\t\t\t}\n\n\t\t\t\t// 太郎が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(hanako_card)) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\t// 花子が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(taro_card)) {\n\t\t\t\t\tplayers_beans.get(1).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// 出力\n\t\tSystem.out.println(players_beans.get(0).getPoints() + \" \" + players_beans.get(1).getPoints());\n\t}", "main", "{\n\n\t\t//\n\t\tint matches = 0;\n\t\t// 対戦者達\n\t\tString[] players = { \"太郎\", \"花子\" };\n\t\t//\n\t\tArrayList<player2> players_beans = new ArrayList<player2>();;\n\t\t//プレイヤーのインスタンスを作る\n\t\tfor (String val : players) {\n\t\t\tplayer2 obj = new player2();\n\t\t\tobj.setName(val);\n\t\t\tplayers_beans.add(obj);\n\t\t}\n\n\t\t// 標準入力\n\t\tScanner sc = new Scanner(System.in);\n\n\n\t\t// 対戦回数\n\t\twhile (sc.hasNext()) {\n\n\t\t\tmatches = sc.nextInt();\n\t\t\tbreak;\n\t\t}\n\n\t\t// 対戦回数分まわす\n\t\tfor (int m = 0; m < matches; m++) {\n\n\t\t\t// カードを入れるリスト\n\t\t\tArrayList<String> battle = new ArrayList<String>();\n\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\t// 入力文字列をリストに追加\n\t\t\t\tString taro_card = sc.next();\n\t\t\t\tString hanako_card = sc.next();\n\t\t\t\t\n\t\t\t\tbattle.add(taro_card);\n\t\t\t\tbattle.add(hanako_card);\n\n\t\t\t\t// アルファベット順にソート\n\t\t\t\tCollections.sort(battle);\n\n\t\t\t\t// 引き分けの場合\n\t\t\t\tif (taro_card.equals(hanako_card)) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(1);\n\t\t\t\t\tplayers_beans.get(1).setPoints(1);\n\t\t\t\t}\n\n\t\t\t\t// 太郎が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(hanako_card)) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\t// 花子が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(taro_card)) {\n\t\t\t\t\tplayers_beans.get(1).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// 出力\n\t\tSystem.out.println(players_beans.get(0).getPoints() + \" \" + players_beans.get(1).getPoints());\n\t}", "int matches = 0;", "matches", "0", "String[] players = { \"太郎\", \"花子\" };", "players", "{ \"太郎\", \"花子\" }", "\"太郎\"", "\"花子\"", "ArrayList<player2> players_beans = new ArrayList<player2>();", "players_beans", "new ArrayList<player2>()", "for (String val : players) {\n\t\t\tplayer2 obj = new player2();\n\t\t\tobj.setName(val);\n\t\t\tplayers_beans.add(obj);\n\t\t}", "String val", "players", "{\n\t\t\tplayer2 obj = new player2();\n\t\t\tobj.setName(val);\n\t\t\tplayers_beans.add(obj);\n\t\t}", "{\n\t\t\tplayer2 obj = new player2();\n\t\t\tobj.setName(val);\n\t\t\tplayers_beans.add(obj);\n\t\t}", "player2 obj = new player2();", "obj", "new player2()", "obj.setName(val)", "obj.setName", "obj", "val", "players_beans.add(obj)", "players_beans.add", "players_beans", "obj", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (sc.hasNext()) {\n\n\t\t\tmatches = sc.nextInt();\n\t\t\tbreak;\n\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\n\t\t\tmatches = sc.nextInt();\n\t\t\tbreak;\n\t\t}", "matches = sc.nextInt()", "matches", "sc.nextInt()", "sc.nextInt", "sc", "break;", "for (int m = 0; m < matches; m++) {\n\n\t\t\t// カードを入れるリスト\n\t\t\tArrayList<String> battle = new ArrayList<String>();\n\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\t// 入力文字列をリストに追加\n\t\t\t\tString taro_card = sc.next();\n\t\t\t\tString hanako_card = sc.next();\n\t\t\t\t\n\t\t\t\tbattle.add(taro_card);\n\t\t\t\tbattle.add(hanako_card);\n\n\t\t\t\t// アルファベット順にソート\n\t\t\t\tCollections.sort(battle);\n\n\t\t\t\t// 引き分けの場合\n\t\t\t\tif (taro_card.equals(hanako_card)) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(1);\n\t\t\t\t\tplayers_beans.get(1).setPoints(1);\n\t\t\t\t}\n\n\t\t\t\t// 太郎が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(hanako_card)) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\t// 花子が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(taro_card)) {\n\t\t\t\t\tplayers_beans.get(1).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "int m = 0;", "int m = 0;", "m", "0", "m < matches", "m", "matches", "m++", "m++", "m", "{\n\n\t\t\t// カードを入れるリスト\n\t\t\tArrayList<String> battle = new ArrayList<String>();\n\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\t// 入力文字列をリストに追加\n\t\t\t\tString taro_card = sc.next();\n\t\t\t\tString hanako_card = sc.next();\n\t\t\t\t\n\t\t\t\tbattle.add(taro_card);\n\t\t\t\tbattle.add(hanako_card);\n\n\t\t\t\t// アルファベット順にソート\n\t\t\t\tCollections.sort(battle);\n\n\t\t\t\t// 引き分けの場合\n\t\t\t\tif (taro_card.equals(hanako_card)) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(1);\n\t\t\t\t\tplayers_beans.get(1).setPoints(1);\n\t\t\t\t}\n\n\t\t\t\t// 太郎が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(hanako_card)) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\t// 花子が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(taro_card)) {\n\t\t\t\t\tplayers_beans.get(1).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "{\n\n\t\t\t// カードを入れるリスト\n\t\t\tArrayList<String> battle = new ArrayList<String>();\n\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\t// 入力文字列をリストに追加\n\t\t\t\tString taro_card = sc.next();\n\t\t\t\tString hanako_card = sc.next();\n\t\t\t\t\n\t\t\t\tbattle.add(taro_card);\n\t\t\t\tbattle.add(hanako_card);\n\n\t\t\t\t// アルファベット順にソート\n\t\t\t\tCollections.sort(battle);\n\n\t\t\t\t// 引き分けの場合\n\t\t\t\tif (taro_card.equals(hanako_card)) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(1);\n\t\t\t\t\tplayers_beans.get(1).setPoints(1);\n\t\t\t\t}\n\n\t\t\t\t// 太郎が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(hanako_card)) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\t// 花子が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(taro_card)) {\n\t\t\t\t\tplayers_beans.get(1).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "ArrayList<String> battle = new ArrayList<String>();", "battle", "new ArrayList<String>()", "while (sc.hasNext()) {\n\t\t\t\t// 入力文字列をリストに追加\n\t\t\t\tString taro_card = sc.next();\n\t\t\t\tString hanako_card = sc.next();\n\t\t\t\t\n\t\t\t\tbattle.add(taro_card);\n\t\t\t\tbattle.add(hanako_card);\n\n\t\t\t\t// アルファベット順にソート\n\t\t\t\tCollections.sort(battle);\n\n\t\t\t\t// 引き分けの場合\n\t\t\t\tif (taro_card.equals(hanako_card)) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(1);\n\t\t\t\t\tplayers_beans.get(1).setPoints(1);\n\t\t\t\t}\n\n\t\t\t\t// 太郎が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(hanako_card)) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\t// 花子が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(taro_card)) {\n\t\t\t\t\tplayers_beans.get(1).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\t\t\t// 入力文字列をリストに追加\n\t\t\t\tString taro_card = sc.next();\n\t\t\t\tString hanako_card = sc.next();\n\t\t\t\t\n\t\t\t\tbattle.add(taro_card);\n\t\t\t\tbattle.add(hanako_card);\n\n\t\t\t\t// アルファベット順にソート\n\t\t\t\tCollections.sort(battle);\n\n\t\t\t\t// 引き分けの場合\n\t\t\t\tif (taro_card.equals(hanako_card)) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(1);\n\t\t\t\t\tplayers_beans.get(1).setPoints(1);\n\t\t\t\t}\n\n\t\t\t\t// 太郎が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(hanako_card)) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\t// 花子が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(taro_card)) {\n\t\t\t\t\tplayers_beans.get(1).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\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", "battle.add(taro_card)", "battle.add", "battle", "taro_card", "battle.add(hanako_card)", "battle.add", "battle", "hanako_card", "Collections.sort(battle)", "Collections.sort", "Collections", "battle", "if (taro_card.equals(hanako_card)) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(1);\n\t\t\t\t\tplayers_beans.get(1).setPoints(1);\n\t\t\t\t}\n\n\t\t\t\t// 太郎が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(hanako_card)) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\t// 花子が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(taro_card)) {\n\t\t\t\t\tplayers_beans.get(1).setPoints(3);\n\t\t\t\t}", "taro_card.equals(hanako_card)", "taro_card.equals", "taro_card", "hanako_card", "{\n\t\t\t\t\tplayers_beans.get(0).setPoints(1);\n\t\t\t\t\tplayers_beans.get(1).setPoints(1);\n\t\t\t\t}", "players_beans.get(0).setPoints(1)", "players_beans.get(0).setPoints", "players_beans.get(0)", "players_beans.get", "players_beans", "0", "1", "players_beans.get(1).setPoints(1)", "players_beans.get(1).setPoints", "players_beans.get(1)", "players_beans.get", "players_beans", "1", "1", "if (battle.get(0).equals(hanako_card)) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\t// 花子が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(taro_card)) {\n\t\t\t\t\tplayers_beans.get(1).setPoints(3);\n\t\t\t\t}", "battle.get(0).equals(hanako_card)", "battle.get(0).equals", "battle.get(0)", "battle.get", "battle", "0", "hanako_card", "{\n\t\t\t\t\tplayers_beans.get(0).setPoints(3);\n\t\t\t\t}", "players_beans.get(0).setPoints(3)", "players_beans.get(0).setPoints", "players_beans.get(0)", "players_beans.get", "players_beans", "0", "3", "if (battle.get(0).equals(taro_card)) {\n\t\t\t\t\tplayers_beans.get(1).setPoints(3);\n\t\t\t\t}", "battle.get(0).equals(taro_card)", "battle.get(0).equals", "battle.get(0)", "battle.get", "battle", "0", "taro_card", "{\n\t\t\t\t\tplayers_beans.get(1).setPoints(3);\n\t\t\t\t}", "players_beans.get(1).setPoints(3)", "players_beans.get(1).setPoints", "players_beans.get(1)", "players_beans.get", "players_beans", "1", "3", "break;", "System.out.println(players_beans.get(0).getPoints() + \" \" + players_beans.get(1).getPoints())", "System.out.println", "System.out", "System", "System.out", "players_beans.get(0).getPoints() + \" \" + players_beans.get(1).getPoints()", "players_beans.get(0).getPoints() + \" \" + players_beans.get(1).getPoints()", "players_beans.get(0).getPoints()", "players_beans.get(0).getPoints", "players_beans.get(0)", "players_beans.get", "players_beans", "0", "\" \"", "players_beans.get(1).getPoints()", "players_beans.get(1).getPoints", "players_beans.get(1)", "players_beans.get", "players_beans", "1", "String[] args", "args", "class player2 {\n\n\t//\n\tprivate String name = \"\";\n\tprivate String card = \"\";\n\tprivate int points = 0;\n\n\t// セッター\n\tpublic void setName(String n) {\n\t\tname = n;\n\t}\n\n\tpublic void setCard(String c) {\n\t\tcard = c;\n\t}\n\n\t// 合計値を持つようにする\n\tpublic void setPoints(int p) {\n\t\tpoints += p;\n\t}\n\n\t// ゲッター\n\tpublic String getName() {\n\t\treturn name;\n\t}\n\n\tpublic String getCard() {\n\t\treturn card;\n\t}\n\n\tpublic int getPoints() {\n\t\treturn points;\n\t}\n\n}", "player2", "//\n\tprivate String name = \"\";", "name", "\"\"", "private String card = \"\";", "card", "\"\"", "private int points = 0;", "points", "0", "// セッター\n\tpublic void setName(String n) {\n\t\tname = n;\n\t}", "setName", "{\n\t\tname = n;\n\t}", "name = n", "name", "n", "String n", "n", "public void setCard(String c) {\n\t\tcard = c;\n\t}", "setCard", "{\n\t\tcard = c;\n\t}", "card = c", "card", "c", "String c", "c", "// 合計値を持つようにする\n\tpublic void setPoints(int p) {\n\t\tpoints += p;\n\t}", "setPoints", "{\n\t\tpoints += p;\n\t}", "points += p", "points", "p", "int p", "p", "// ゲッター\n\tpublic String getName() {\n\t\treturn name;\n\t}", "getName", "{\n\t\treturn name;\n\t}", "return name;", "name", "public String getCard() {\n\t\treturn card;\n\t}", "getCard", "{\n\t\treturn card;\n\t}", "return card;", "card", "public int getPoints() {\n\t\treturn points;\n\t}", "getPoints", "{\n\t\treturn points;\n\t}", "return points;", "points", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t//\n\t\tint matches = 0;\n\t\t// 対戦者達\n\t\tString[] players = { \"太郎\", \"花子\" };\n\t\t//\n\t\tArrayList<player2> players_beans = new ArrayList<player2>();;\n\t\t//プレイヤーのインスタンスを作る\n\t\tfor (String val : players) {\n\t\t\tplayer2 obj = new player2();\n\t\t\tobj.setName(val);\n\t\t\tplayers_beans.add(obj);\n\t\t}\n\n\t\t// 標準入力\n\t\tScanner sc = new Scanner(System.in);\n\n\n\t\t// 対戦回数\n\t\twhile (sc.hasNext()) {\n\n\t\t\tmatches = sc.nextInt();\n\t\t\tbreak;\n\t\t}\n\n\t\t// 対戦回数分まわす\n\t\tfor (int m = 0; m < matches; m++) {\n\n\t\t\t// カードを入れるリスト\n\t\t\tArrayList<String> battle = new ArrayList<String>();\n\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\t// 入力文字列をリストに追加\n\t\t\t\tString taro_card = sc.next();\n\t\t\t\tString hanako_card = sc.next();\n\t\t\t\t\n\t\t\t\tbattle.add(taro_card);\n\t\t\t\tbattle.add(hanako_card);\n\n\t\t\t\t// アルファベット順にソート\n\t\t\t\tCollections.sort(battle);\n\n\t\t\t\t// 引き分けの場合\n\t\t\t\tif (taro_card.equals(hanako_card)) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(1);\n\t\t\t\t\tplayers_beans.get(1).setPoints(1);\n\t\t\t\t}\n\n\t\t\t\t// 太郎が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(hanako_card)) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\t// 花子が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(taro_card)) {\n\t\t\t\t\tplayers_beans.get(1).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// 出力\n\t\tSystem.out.println(players_beans.get(0).getPoints() + \" \" + players_beans.get(1).getPoints());\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t//\n\t\tint matches = 0;\n\t\t// 対戦者達\n\t\tString[] players = { \"太郎\", \"花子\" };\n\t\t//\n\t\tArrayList<player2> players_beans = new ArrayList<player2>();;\n\t\t//プレイヤーのインスタンスを作る\n\t\tfor (String val : players) {\n\t\t\tplayer2 obj = new player2();\n\t\t\tobj.setName(val);\n\t\t\tplayers_beans.add(obj);\n\t\t}\n\n\t\t// 標準入力\n\t\tScanner sc = new Scanner(System.in);\n\n\n\t\t// 対戦回数\n\t\twhile (sc.hasNext()) {\n\n\t\t\tmatches = sc.nextInt();\n\t\t\tbreak;\n\t\t}\n\n\t\t// 対戦回数分まわす\n\t\tfor (int m = 0; m < matches; m++) {\n\n\t\t\t// カードを入れるリスト\n\t\t\tArrayList<String> battle = new ArrayList<String>();\n\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\t// 入力文字列をリストに追加\n\t\t\t\tString taro_card = sc.next();\n\t\t\t\tString hanako_card = sc.next();\n\t\t\t\t\n\t\t\t\tbattle.add(taro_card);\n\t\t\t\tbattle.add(hanako_card);\n\n\t\t\t\t// アルファベット順にソート\n\t\t\t\tCollections.sort(battle);\n\n\t\t\t\t// 引き分けの場合\n\t\t\t\tif (taro_card.equals(hanako_card)) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(1);\n\t\t\t\t\tplayers_beans.get(1).setPoints(1);\n\t\t\t\t}\n\n\t\t\t\t// 太郎が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(hanako_card)) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\t// 花子が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(taro_card)) {\n\t\t\t\t\tplayers_beans.get(1).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// 出力\n\t\tSystem.out.println(players_beans.get(0).getPoints() + \" \" + players_beans.get(1).getPoints());\n\t}\n}", "Main" ]
import java.util.ArrayList; import java.util.Collections; import java.util.Scanner; public class Main { public static void main(String[] args) { // int matches = 0; // 対戦者達 String[] players = { "太郎", "花子" }; // ArrayList<player2> players_beans = new ArrayList<player2>();; //プレイヤーのインスタンスを作る for (String val : players) { player2 obj = new player2(); obj.setName(val); players_beans.add(obj); } // 標準入力 Scanner sc = new Scanner(System.in); // 対戦回数 while (sc.hasNext()) { matches = sc.nextInt(); break; } // 対戦回数分まわす for (int m = 0; m < matches; m++) { // カードを入れるリスト ArrayList<String> battle = new ArrayList<String>(); while (sc.hasNext()) { // 入力文字列をリストに追加 String taro_card = sc.next(); String hanako_card = sc.next(); battle.add(taro_card); battle.add(hanako_card); // アルファベット順にソート Collections.sort(battle); // 引き分けの場合 if (taro_card.equals(hanako_card)) { players_beans.get(0).setPoints(1); players_beans.get(1).setPoints(1); } // 太郎が勝つ場合 else if (battle.get(0).equals(hanako_card)) { players_beans.get(0).setPoints(3); } // 花子が勝つ場合 else if (battle.get(0).equals(taro_card)) { players_beans.get(1).setPoints(3); } break; } } // 出力 System.out.println(players_beans.get(0).getPoints() + " " + players_beans.get(1).getPoints()); } } // 各プレイヤーのプロパティ class player2 { // private String name = ""; private String card = ""; private int points = 0; // セッター public void setName(String n) { name = n; } public void setCard(String c) { card = c; } // 合計値を持つようにする public void setPoints(int p) { points += p; } // ゲッター public String getName() { return name; } public String getCard() { return card; } public int getPoints() { return points; } }
[ 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, 17, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 82, 5 ], [ 82, 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 ], [ 71, 77 ], [ 71, 78 ], [ 6, 79 ], [ 79, 80 ], [ 0, 81 ], [ 81, 82 ], [ 81, 83 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt(),t = 0,h = 0;\n for(int i = 0;i < n;++i){\n String a = sc.next(),b = sc.next();\n int c = a.compareTo(b);\n if(c > 0) t += 3;\n else if(c < 0) h += 3;\n else{\n ++t;\n ++h;\n }\n }\n System.out.printf(\"%d %d\\n\",t,h);\n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt(),t = 0,h = 0;\n for(int i = 0;i < n;++i){\n String a = sc.next(),b = sc.next();\n int c = a.compareTo(b);\n if(c > 0) t += 3;\n else if(c < 0) h += 3;\n else{\n ++t;\n ++h;\n }\n }\n System.out.printf(\"%d %d\\n\",t,h);\n }\n\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt(),t = 0,h = 0;\n for(int i = 0;i < n;++i){\n String a = sc.next(),b = sc.next();\n int c = a.compareTo(b);\n if(c > 0) t += 3;\n else if(c < 0) h += 3;\n else{\n ++t;\n ++h;\n }\n }\n System.out.printf(\"%d %d\\n\",t,h);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt(),t = 0,h = 0;\n for(int i = 0;i < n;++i){\n String a = sc.next(),b = sc.next();\n int c = a.compareTo(b);\n if(c > 0) t += 3;\n else if(c < 0) h += 3;\n else{\n ++t;\n ++h;\n }\n }\n System.out.printf(\"%d %d\\n\",t,h);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "t = 0", "t", "0", "h = 0;", "h", "0", "for(int i = 0;i < n;++i){\n String a = sc.next(),b = sc.next();\n int c = a.compareTo(b);\n if(c > 0) t += 3;\n else if(c < 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 a = sc.next(),b = sc.next();\n int c = a.compareTo(b);\n if(c > 0) t += 3;\n else if(c < 0) h += 3;\n else{\n ++t;\n ++h;\n }\n }", "{\n String a = sc.next(),b = sc.next();\n int c = a.compareTo(b);\n if(c > 0) t += 3;\n else if(c < 0) h += 3;\n else{\n ++t;\n ++h;\n }\n }", "String a = sc.next()", "a", "sc.next()", "sc.next", "sc", "b = sc.next();", "b", "sc.next()", "sc.next", "sc", "int c = a.compareTo(b);", "c", "a.compareTo(b)", "a.compareTo", "a", "b", "if(c > 0) t += 3;\n else if(c < 0) h += 3;\n else{\n ++t;\n ++h;\n }", "c > 0", "c", "0", "t += 3", "t", "3", "if(c < 0) h += 3;\n else{\n ++t;\n ++h;\n }", "c < 0", "c", "0", "h += 3", "h", "3", "{\n ++t;\n ++h;\n }", "++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 public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt(),t = 0,h = 0;\n for(int i = 0;i < n;++i){\n String a = sc.next(),b = sc.next();\n int c = a.compareTo(b);\n if(c > 0) t += 3;\n else if(c < 0) h += 3;\n else{\n ++t;\n ++h;\n }\n }\n System.out.printf(\"%d %d\\n\",t,h);\n }\n\n}", "public class Main {\n\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt(),t = 0,h = 0;\n for(int i = 0;i < n;++i){\n String a = sc.next(),b = sc.next();\n int c = a.compareTo(b);\n if(c > 0) t += 3;\n else if(c < 0) h += 3;\n else{\n ++t;\n ++h;\n }\n }\n System.out.printf(\"%d %d\\n\",t,h);\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(),t = 0,h = 0; for(int i = 0;i < n;++i){ String a = sc.next(),b = sc.next(); int c = a.compareTo(b); if(c > 0) t += 3; else if(c < 0) h += 3; else{ ++t; ++h; } } System.out.printf("%d %d\n",t,h); } }
[ 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, 17, 14, 2, 17, 4, 18, 13, 13, 30, 0, 13, 17, 30, 0, 13, 17, 0, 13, 17, 4, 18, 18, 13, 13, 17, 13, 13, 4, 18, 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 ], [ 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 ], [ 50, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 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 ], [ 79, 85 ], [ 79, 86 ], [ 8, 87 ], [ 87, 88 ], [ 88, 89 ], [ 6, 90 ], [ 90, 91 ], [ 0, 92 ], [ 92, 93 ], [ 92, 94 ] ]
[ "import java.util.Scanner;\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\tint taro=0,hanako=0;\n\t\tString tcard,hcard;\n\t\tfor(int i=0;i<n;i++){\n\t\t\ttcard=scan.next();\n\t\t\thcard=scan.next();\n\t\t\tif(tcard.compareTo(hcard)<0){\n\t\t\t\thanako+=3;\n\t\t\t}else if(0<tcard.compareTo(hcard)){\n\t\t\t\ttaro+=3;\n\t\t\t}else{\n\t\t\t\thanako+=1;\n\t\t\t\ttaro+=1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\",taro,hanako);\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 n=scan.nextInt();\n\t\tint taro=0,hanako=0;\n\t\tString tcard,hcard;\n\t\tfor(int i=0;i<n;i++){\n\t\t\ttcard=scan.next();\n\t\t\thcard=scan.next();\n\t\t\tif(tcard.compareTo(hcard)<0){\n\t\t\t\thanako+=3;\n\t\t\t}else if(0<tcard.compareTo(hcard)){\n\t\t\t\ttaro+=3;\n\t\t\t}else{\n\t\t\t\thanako+=1;\n\t\t\t\ttaro+=1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\",taro,hanako);\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 n=scan.nextInt();\n\t\tint taro=0,hanako=0;\n\t\tString tcard,hcard;\n\t\tfor(int i=0;i<n;i++){\n\t\t\ttcard=scan.next();\n\t\t\thcard=scan.next();\n\t\t\tif(tcard.compareTo(hcard)<0){\n\t\t\t\thanako+=3;\n\t\t\t}else if(0<tcard.compareTo(hcard)){\n\t\t\t\ttaro+=3;\n\t\t\t}else{\n\t\t\t\thanako+=1;\n\t\t\t\ttaro+=1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\",taro,hanako);\n\t\tscan.close();\n\t}", "main", "{\n\t\tScanner scan=new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tint taro=0,hanako=0;\n\t\tString tcard,hcard;\n\t\tfor(int i=0;i<n;i++){\n\t\t\ttcard=scan.next();\n\t\t\thcard=scan.next();\n\t\t\tif(tcard.compareTo(hcard)<0){\n\t\t\t\thanako+=3;\n\t\t\t}else if(0<tcard.compareTo(hcard)){\n\t\t\t\ttaro+=3;\n\t\t\t}else{\n\t\t\t\thanako+=1;\n\t\t\t\ttaro+=1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\",taro,hanako);\n\t\tscan.close();\n\t}", "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", "hanako=0;", "hanako", "0", "String tcard", "tcard", "hcard;", "hcard", "for(int i=0;i<n;i++){\n\t\t\ttcard=scan.next();\n\t\t\thcard=scan.next();\n\t\t\tif(tcard.compareTo(hcard)<0){\n\t\t\t\thanako+=3;\n\t\t\t}else if(0<tcard.compareTo(hcard)){\n\t\t\t\ttaro+=3;\n\t\t\t}else{\n\t\t\t\thanako+=1;\n\t\t\t\ttaro+=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\ttcard=scan.next();\n\t\t\thcard=scan.next();\n\t\t\tif(tcard.compareTo(hcard)<0){\n\t\t\t\thanako+=3;\n\t\t\t}else if(0<tcard.compareTo(hcard)){\n\t\t\t\ttaro+=3;\n\t\t\t}else{\n\t\t\t\thanako+=1;\n\t\t\t\ttaro+=1;\n\t\t\t}\n\t\t}", "{\n\t\t\ttcard=scan.next();\n\t\t\thcard=scan.next();\n\t\t\tif(tcard.compareTo(hcard)<0){\n\t\t\t\thanako+=3;\n\t\t\t}else if(0<tcard.compareTo(hcard)){\n\t\t\t\ttaro+=3;\n\t\t\t}else{\n\t\t\t\thanako+=1;\n\t\t\t\ttaro+=1;\n\t\t\t}\n\t\t}", "tcard=scan.next()", "tcard", "scan.next()", "scan.next", "scan", "hcard=scan.next()", "hcard", "scan.next()", "scan.next", "scan", "if(tcard.compareTo(hcard)<0){\n\t\t\t\thanako+=3;\n\t\t\t}else if(0<tcard.compareTo(hcard)){\n\t\t\t\ttaro+=3;\n\t\t\t}else{\n\t\t\t\thanako+=1;\n\t\t\t\ttaro+=1;\n\t\t\t}", "tcard.compareTo(hcard)<0", "tcard.compareTo(hcard)", "tcard.compareTo", "tcard", "hcard", "0", "{\n\t\t\t\thanako+=3;\n\t\t\t}", "hanako+=3", "hanako", "3", "if(0<tcard.compareTo(hcard)){\n\t\t\t\ttaro+=3;\n\t\t\t}else{\n\t\t\t\thanako+=1;\n\t\t\t\ttaro+=1;\n\t\t\t}", "0<tcard.compareTo(hcard)", "0", "tcard.compareTo(hcard)", "tcard.compareTo", "tcard", "hcard", "{\n\t\t\t\ttaro+=3;\n\t\t\t}", "taro+=3", "taro", "3", "{\n\t\t\t\thanako+=1;\n\t\t\t\ttaro+=1;\n\t\t\t}", "hanako+=1", "hanako", "1", "taro+=1", "taro", "1", "System.out.printf(\"%d %d\\n\",taro,hanako)", "System.out.printf", "System.out", "System", "System.out", "\"%d %d\\n\"", "taro", "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 n=scan.nextInt();\n\t\tint taro=0,hanako=0;\n\t\tString tcard,hcard;\n\t\tfor(int i=0;i<n;i++){\n\t\t\ttcard=scan.next();\n\t\t\thcard=scan.next();\n\t\t\tif(tcard.compareTo(hcard)<0){\n\t\t\t\thanako+=3;\n\t\t\t}else if(0<tcard.compareTo(hcard)){\n\t\t\t\ttaro+=3;\n\t\t\t}else{\n\t\t\t\thanako+=1;\n\t\t\t\ttaro+=1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\",taro,hanako);\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 n=scan.nextInt();\n\t\tint taro=0,hanako=0;\n\t\tString tcard,hcard;\n\t\tfor(int i=0;i<n;i++){\n\t\t\ttcard=scan.next();\n\t\t\thcard=scan.next();\n\t\t\tif(tcard.compareTo(hcard)<0){\n\t\t\t\thanako+=3;\n\t\t\t}else if(0<tcard.compareTo(hcard)){\n\t\t\t\ttaro+=3;\n\t\t\t}else{\n\t\t\t\thanako+=1;\n\t\t\t\ttaro+=1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d %d\\n\",taro,hanako);\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 n=scan.nextInt(); int taro=0,hanako=0; String tcard,hcard; for(int i=0;i<n;i++){ tcard=scan.next(); hcard=scan.next(); if(tcard.compareTo(hcard)<0){ hanako+=3; }else if(0<tcard.compareTo(hcard)){ taro+=3; }else{ hanako+=1; taro+=1; } } System.out.printf("%d %d\n",taro,hanako); scan.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, 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 ], [ 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 ], [ 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;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n int n=sc.nextInt();\n int ap=0;\n int bp=0;\n for(int i=0; i<n; i++){\n \t String a=sc.next();\n \t String b=sc.next();\n \t if(a.compareTo(b)>0){\n \t\t ap+=3;\n \t }else if(a.compareTo(b)==0){\n \t\t ap++;\n \t\t bp++;\n \t }else{\n \t\t bp+=3;\n \t }\n }\n System.out.println(ap+\" \"+bp);\n\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n int n=sc.nextInt();\n int ap=0;\n int bp=0;\n for(int i=0; i<n; i++){\n \t String a=sc.next();\n \t String b=sc.next();\n \t if(a.compareTo(b)>0){\n \t\t ap+=3;\n \t }else if(a.compareTo(b)==0){\n \t\t ap++;\n \t\t bp++;\n \t }else{\n \t\t bp+=3;\n \t }\n }\n System.out.println(ap+\" \"+bp);\n\n }\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n int n=sc.nextInt();\n int ap=0;\n int bp=0;\n for(int i=0; i<n; i++){\n \t String a=sc.next();\n \t String b=sc.next();\n \t if(a.compareTo(b)>0){\n \t\t ap+=3;\n \t }else if(a.compareTo(b)==0){\n \t\t ap++;\n \t\t bp++;\n \t }else{\n \t\t bp+=3;\n \t }\n }\n System.out.println(ap+\" \"+bp);\n\n }", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n int n=sc.nextInt();\n int ap=0;\n int bp=0;\n for(int i=0; i<n; i++){\n \t String a=sc.next();\n \t String b=sc.next();\n \t if(a.compareTo(b)>0){\n \t\t ap+=3;\n \t }else if(a.compareTo(b)==0){\n \t\t ap++;\n \t\t bp++;\n \t }else{\n \t\t bp+=3;\n \t }\n }\n System.out.println(ap+\" \"+bp);\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int ap=0;", "ap", "0", "int bp=0;", "bp", "0", "for(int i=0; i<n; i++){\n \t String a=sc.next();\n \t String b=sc.next();\n \t if(a.compareTo(b)>0){\n \t\t ap+=3;\n \t }else if(a.compareTo(b)==0){\n \t\t ap++;\n \t\t bp++;\n \t }else{\n \t\t bp+=3;\n \t }\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n \t String a=sc.next();\n \t String b=sc.next();\n \t if(a.compareTo(b)>0){\n \t\t ap+=3;\n \t }else if(a.compareTo(b)==0){\n \t\t ap++;\n \t\t bp++;\n \t }else{\n \t\t bp+=3;\n \t }\n }", "{\n \t String a=sc.next();\n \t String b=sc.next();\n \t if(a.compareTo(b)>0){\n \t\t ap+=3;\n \t }else if(a.compareTo(b)==0){\n \t\t ap++;\n \t\t bp++;\n \t }else{\n \t\t bp+=3;\n \t }\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 \t\t ap+=3;\n \t }else if(a.compareTo(b)==0){\n \t\t ap++;\n \t\t bp++;\n \t }else{\n \t\t bp+=3;\n \t }", "a.compareTo(b)>0", "a.compareTo(b)", "a.compareTo", "a", "b", "0", "{\n \t\t ap+=3;\n \t }", "ap+=3", "ap", "3", "if(a.compareTo(b)==0){\n \t\t ap++;\n \t\t bp++;\n \t }else{\n \t\t bp+=3;\n \t }", "a.compareTo(b)==0", "a.compareTo(b)", "a.compareTo", "a", "b", "0", "{\n \t\t ap++;\n \t\t bp++;\n \t }", "ap++", "ap", "bp++", "bp", "{\n \t\t bp+=3;\n \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", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n int n=sc.nextInt();\n int ap=0;\n int bp=0;\n for(int i=0; i<n; i++){\n \t String a=sc.next();\n \t String b=sc.next();\n \t if(a.compareTo(b)>0){\n \t\t ap+=3;\n \t }else if(a.compareTo(b)==0){\n \t\t ap++;\n \t\t bp++;\n \t }else{\n \t\t bp+=3;\n \t }\n }\n System.out.println(ap+\" \"+bp);\n\n }\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n int n=sc.nextInt();\n int ap=0;\n int bp=0;\n for(int i=0; i<n; i++){\n \t String a=sc.next();\n \t String b=sc.next();\n \t if(a.compareTo(b)>0){\n \t\t ap+=3;\n \t }else if(a.compareTo(b)==0){\n \t\t ap++;\n \t\t bp++;\n \t }else{\n \t\t bp+=3;\n \t }\n }\n System.out.println(ap+\" \"+bp);\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 ap=0; int bp=0; for(int i=0; i<n; i++){ String a=sc.next(); String b=sc.next(); if(a.compareTo(b)>0){ ap+=3; }else if(a.compareTo(b)==0){ ap++; bp++; }else{ bp+=3; } } System.out.println(ap+" "+bp); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 17, 41, 13, 17, 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, 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, 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, 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 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 39, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 63, 64 ], [ 56, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 65, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 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 public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String[] strArray = new String[n];\n int taroSum = 0;\n int hanacoSum = 0;\n for(int i = 0; i < n; i++){\n String a = sc.next();\n String b = sc.next();\n int result = a.compareTo(b);\n if(result == 0){\n taroSum++;\n hanacoSum++;\n }else if(result < 0){\n hanacoSum += 3;\n }else{\n taroSum += 3;\n }\n }\n System.out.println(taroSum + \" \" + hanacoSum);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String[] strArray = new String[n];\n int taroSum = 0;\n int hanacoSum = 0;\n for(int i = 0; i < n; i++){\n String a = sc.next();\n String b = sc.next();\n int result = a.compareTo(b);\n if(result == 0){\n taroSum++;\n hanacoSum++;\n }else if(result < 0){\n hanacoSum += 3;\n }else{\n taroSum += 3;\n }\n }\n System.out.println(taroSum + \" \" + hanacoSum);\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String[] strArray = new String[n];\n int taroSum = 0;\n int hanacoSum = 0;\n for(int i = 0; i < n; i++){\n String a = sc.next();\n String b = sc.next();\n int result = a.compareTo(b);\n if(result == 0){\n taroSum++;\n hanacoSum++;\n }else if(result < 0){\n hanacoSum += 3;\n }else{\n taroSum += 3;\n }\n }\n System.out.println(taroSum + \" \" + hanacoSum);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String[] strArray = new String[n];\n int taroSum = 0;\n int hanacoSum = 0;\n for(int i = 0; i < n; i++){\n String a = sc.next();\n String b = sc.next();\n int result = a.compareTo(b);\n if(result == 0){\n taroSum++;\n hanacoSum++;\n }else if(result < 0){\n hanacoSum += 3;\n }else{\n taroSum += 3;\n }\n }\n System.out.println(taroSum + \" \" + hanacoSum);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "String[] strArray = new String[n];", "strArray", "new String[n]", "n", "int taroSum = 0;", "taroSum", "0", "int hanacoSum = 0;", "hanacoSum", "0", "for(int i = 0; i < n; i++){\n String a = sc.next();\n String b = sc.next();\n int result = a.compareTo(b);\n if(result == 0){\n taroSum++;\n hanacoSum++;\n }else if(result < 0){\n hanacoSum += 3;\n }else{\n taroSum += 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 int result = a.compareTo(b);\n if(result == 0){\n taroSum++;\n hanacoSum++;\n }else if(result < 0){\n hanacoSum += 3;\n }else{\n taroSum += 3;\n }\n }", "{\n String a = sc.next();\n String b = sc.next();\n int result = a.compareTo(b);\n if(result == 0){\n taroSum++;\n hanacoSum++;\n }else if(result < 0){\n hanacoSum += 3;\n }else{\n taroSum += 3;\n }\n }", "String a = sc.next();", "a", "sc.next()", "sc.next", "sc", "String b = sc.next();", "b", "sc.next()", "sc.next", "sc", "int result = a.compareTo(b);", "result", "a.compareTo(b)", "a.compareTo", "a", "b", "if(result == 0){\n taroSum++;\n hanacoSum++;\n }else if(result < 0){\n hanacoSum += 3;\n }else{\n taroSum += 3;\n }", "result == 0", "result", "0", "{\n taroSum++;\n hanacoSum++;\n }", "taroSum++", "taroSum", "hanacoSum++", "hanacoSum", "if(result < 0){\n hanacoSum += 3;\n }else{\n taroSum += 3;\n }", "result < 0", "result", "0", "{\n hanacoSum += 3;\n }", "hanacoSum += 3", "hanacoSum", "3", "{\n taroSum += 3;\n }", "taroSum += 3", "taroSum", "3", "System.out.println(taroSum + \" \" + hanacoSum)", "System.out.println", "System.out", "System", "System.out", "taroSum + \" \" + hanacoSum", "taroSum + \" \" + hanacoSum", "taroSum", "\" \"", "hanacoSum", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String[] strArray = new String[n];\n int taroSum = 0;\n int hanacoSum = 0;\n for(int i = 0; i < n; i++){\n String a = sc.next();\n String b = sc.next();\n int result = a.compareTo(b);\n if(result == 0){\n taroSum++;\n hanacoSum++;\n }else if(result < 0){\n hanacoSum += 3;\n }else{\n taroSum += 3;\n }\n }\n System.out.println(taroSum + \" \" + hanacoSum);\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String[] strArray = new String[n];\n int taroSum = 0;\n int hanacoSum = 0;\n for(int i = 0; i < n; i++){\n String a = sc.next();\n String b = sc.next();\n int result = a.compareTo(b);\n if(result == 0){\n taroSum++;\n hanacoSum++;\n }else if(result < 0){\n hanacoSum += 3;\n }else{\n taroSum += 3;\n }\n }\n System.out.println(taroSum + \" \" + hanacoSum);\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[] strArray = new String[n]; int taroSum = 0; int hanacoSum = 0; for(int i = 0; i < n; i++){ String a = sc.next(); String b = sc.next(); int result = a.compareTo(b); if(result == 0){ taroSum++; hanacoSum++; }else if(result < 0){ hanacoSum += 3; }else{ taroSum += 3; } } System.out.println(taroSum + " " + hanacoSum); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 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, 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 ]
[ [ 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 ], [ 8, 20 ], [ 20, 21 ], [ 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 ], [ 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 ], [ 57, 59 ], [ 50, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 61, 66 ], [ 60, 67 ], [ 67, 68 ], [ 67, 69 ], [ 60, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 73, 74 ], [ 8, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 81, 81 ], [ 81, 82 ], [ 81, 83 ], [ 81, 84 ], [ 6, 85 ], [ 85, 86 ] ]
[ "import java.util.Scanner;\nclass Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n int t_score = 0, h_score = 0;\n String t, h;\n int n = scanner.nextInt();\n for(int i = 0; i < n; i++){\n t = scanner.next();\n h = scanner.next();\n if(t.compareTo(h) > 0)t_score+=3;\n else if(t.compareTo(h) < 0)h_score+=3;\n else {\n t_score++;\n h_score++;\n }\n }\n System.out.println(t_score + \" \" + h_score);\n\n\n }\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\n int t_score = 0, h_score = 0;\n String t, h;\n int n = scanner.nextInt();\n for(int i = 0; i < n; i++){\n t = scanner.next();\n h = scanner.next();\n if(t.compareTo(h) > 0)t_score+=3;\n else if(t.compareTo(h) < 0)h_score+=3;\n else {\n t_score++;\n h_score++;\n }\n }\n System.out.println(t_score + \" \" + h_score);\n\n\n }\n}", "Main", "public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n int t_score = 0, h_score = 0;\n String t, h;\n int n = scanner.nextInt();\n for(int i = 0; i < n; i++){\n t = scanner.next();\n h = scanner.next();\n if(t.compareTo(h) > 0)t_score+=3;\n else if(t.compareTo(h) < 0)h_score+=3;\n else {\n t_score++;\n h_score++;\n }\n }\n System.out.println(t_score + \" \" + h_score);\n\n\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n\n int t_score = 0, h_score = 0;\n String t, h;\n int n = scanner.nextInt();\n for(int i = 0; i < n; i++){\n t = scanner.next();\n h = scanner.next();\n if(t.compareTo(h) > 0)t_score+=3;\n else if(t.compareTo(h) < 0)h_score+=3;\n else {\n t_score++;\n h_score++;\n }\n }\n System.out.println(t_score + \" \" + h_score);\n\n\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int t_score = 0", "t_score", "0", "h_score = 0;", "h_score", "0", "String t", "t", "h;", "h", "int n = scanner.nextInt();", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "for(int i = 0; i < n; i++){\n t = scanner.next();\n h = scanner.next();\n if(t.compareTo(h) > 0)t_score+=3;\n else if(t.compareTo(h) < 0)h_score+=3;\n else {\n t_score++;\n h_score++;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n t = scanner.next();\n h = scanner.next();\n if(t.compareTo(h) > 0)t_score+=3;\n else if(t.compareTo(h) < 0)h_score+=3;\n else {\n t_score++;\n h_score++;\n }\n }", "{\n t = scanner.next();\n h = scanner.next();\n if(t.compareTo(h) > 0)t_score+=3;\n else if(t.compareTo(h) < 0)h_score+=3;\n else {\n t_score++;\n h_score++;\n }\n }", "t = scanner.next()", "t", "scanner.next()", "scanner.next", "scanner", "h = scanner.next()", "h", "scanner.next()", "scanner.next", "scanner", "if(t.compareTo(h) > 0)t_score+=3;\n else if(t.compareTo(h) < 0)h_score+=3;\n else {\n t_score++;\n h_score++;\n }", "t.compareTo(h) > 0", "t.compareTo(h)", "t.compareTo", "t", "h", "0", "t_score+=3", "t_score", "3", "if(t.compareTo(h) < 0)h_score+=3;\n else {\n t_score++;\n h_score++;\n }", "t.compareTo(h) < 0", "t.compareTo(h)", "t.compareTo", "t", "h", "0", "h_score+=3", "h_score", "3", "{\n t_score++;\n h_score++;\n }", "t_score++", "t_score", "h_score++", "h_score", "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" ]
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int t_score = 0, h_score = 0; String t, h; int n = scanner.nextInt(); for(int i = 0; i < n; i++){ t = scanner.next(); h = scanner.next(); if(t.compareTo(h) > 0)t_score+=3; else if(t.compareTo(h) < 0)h_score+=3; else { t_score++; h_score++; } } System.out.println(t_score + " " + h_score); } }
[ 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.*;\n \npublic class Main {\n public static void main( String args[] ) {\n Scanner scan = new Scanner( System.in );\n\t\t\n\t\tint n = scan.nextInt();\n\t\t\n\t\tint TPoint = 0;\n\t\tint HPoint = 0;\n\t\tfor ( int i = 0; i < n; i++ ) {\n\t\t\tString T = scan.next();\n\t\t\tString H = scan.next();\n\t\t\t\n\t\t\tint result = T.compareToIgnoreCase(H);\n\t\t\tif ( result > 0 ) {\n\t\t\t\tTPoint += 3;\n\t\t\t\t\t\t\t\t\n\t\t\t} else if ( result == 0) {\n\t\t\t\tTPoint += 1;\n\t\t\t\tHPoint += 1;\n\t\t\t\t\n\t\t\t} else if ( result < 0 ) {\n\t\t\t\tHPoint += 3;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println( TPoint + \" \" + HPoint );\n\t\t\n\t}\n\t\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main( String args[] ) {\n Scanner scan = new Scanner( System.in );\n\t\t\n\t\tint n = scan.nextInt();\n\t\t\n\t\tint TPoint = 0;\n\t\tint HPoint = 0;\n\t\tfor ( int i = 0; i < n; i++ ) {\n\t\t\tString T = scan.next();\n\t\t\tString H = scan.next();\n\t\t\t\n\t\t\tint result = T.compareToIgnoreCase(H);\n\t\t\tif ( result > 0 ) {\n\t\t\t\tTPoint += 3;\n\t\t\t\t\t\t\t\t\n\t\t\t} else if ( result == 0) {\n\t\t\t\tTPoint += 1;\n\t\t\t\tHPoint += 1;\n\t\t\t\t\n\t\t\t} else if ( result < 0 ) {\n\t\t\t\tHPoint += 3;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println( TPoint + \" \" + HPoint );\n\t\t\n\t}\n\t\n}", "Main", "public static void main( String args[] ) {\n Scanner scan = new Scanner( System.in );\n\t\t\n\t\tint n = scan.nextInt();\n\t\t\n\t\tint TPoint = 0;\n\t\tint HPoint = 0;\n\t\tfor ( int i = 0; i < n; i++ ) {\n\t\t\tString T = scan.next();\n\t\t\tString H = scan.next();\n\t\t\t\n\t\t\tint result = T.compareToIgnoreCase(H);\n\t\t\tif ( result > 0 ) {\n\t\t\t\tTPoint += 3;\n\t\t\t\t\t\t\t\t\n\t\t\t} else if ( result == 0) {\n\t\t\t\tTPoint += 1;\n\t\t\t\tHPoint += 1;\n\t\t\t\t\n\t\t\t} else if ( result < 0 ) {\n\t\t\t\tHPoint += 3;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println( TPoint + \" \" + HPoint );\n\t\t\n\t}", "main", "{\n Scanner scan = new Scanner( System.in );\n\t\t\n\t\tint n = scan.nextInt();\n\t\t\n\t\tint TPoint = 0;\n\t\tint HPoint = 0;\n\t\tfor ( int i = 0; i < n; i++ ) {\n\t\t\tString T = scan.next();\n\t\t\tString H = scan.next();\n\t\t\t\n\t\t\tint result = T.compareToIgnoreCase(H);\n\t\t\tif ( result > 0 ) {\n\t\t\t\tTPoint += 3;\n\t\t\t\t\t\t\t\t\n\t\t\t} else if ( result == 0) {\n\t\t\t\tTPoint += 1;\n\t\t\t\tHPoint += 1;\n\t\t\t\t\n\t\t\t} else if ( result < 0 ) {\n\t\t\t\tHPoint += 3;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println( TPoint + \" \" + HPoint );\n\t\t\n\t}", "Scanner scan = new Scanner( System.in );", "scan", "new Scanner( System.in )", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "int TPoint = 0;", "TPoint", "0", "int HPoint = 0;", "HPoint", "0", "for ( int i = 0; i < n; i++ ) {\n\t\t\tString T = scan.next();\n\t\t\tString H = scan.next();\n\t\t\t\n\t\t\tint result = T.compareToIgnoreCase(H);\n\t\t\tif ( result > 0 ) {\n\t\t\t\tTPoint += 3;\n\t\t\t\t\t\t\t\t\n\t\t\t} else if ( result == 0) {\n\t\t\t\tTPoint += 1;\n\t\t\t\tHPoint += 1;\n\t\t\t\t\n\t\t\t} else if ( result < 0 ) {\n\t\t\t\tHPoint += 3;\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 < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tString T = scan.next();\n\t\t\tString H = scan.next();\n\t\t\t\n\t\t\tint result = T.compareToIgnoreCase(H);\n\t\t\tif ( result > 0 ) {\n\t\t\t\tTPoint += 3;\n\t\t\t\t\t\t\t\t\n\t\t\t} else if ( result == 0) {\n\t\t\t\tTPoint += 1;\n\t\t\t\tHPoint += 1;\n\t\t\t\t\n\t\t\t} else if ( result < 0 ) {\n\t\t\t\tHPoint += 3;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}", "{\n\t\t\tString T = scan.next();\n\t\t\tString H = scan.next();\n\t\t\t\n\t\t\tint result = T.compareToIgnoreCase(H);\n\t\t\tif ( result > 0 ) {\n\t\t\t\tTPoint += 3;\n\t\t\t\t\t\t\t\t\n\t\t\t} else if ( result == 0) {\n\t\t\t\tTPoint += 1;\n\t\t\t\tHPoint += 1;\n\t\t\t\t\n\t\t\t} else if ( result < 0 ) {\n\t\t\t\tHPoint += 3;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}", "String T = scan.next();", "T", "scan.next()", "scan.next", "scan", "String H = scan.next();", "H", "scan.next()", "scan.next", "scan", "int result = T.compareToIgnoreCase(H);", "result", "T.compareToIgnoreCase(H)", "T.compareToIgnoreCase", "T", "H", "if ( result > 0 ) {\n\t\t\t\tTPoint += 3;\n\t\t\t\t\t\t\t\t\n\t\t\t} else if ( result == 0) {\n\t\t\t\tTPoint += 1;\n\t\t\t\tHPoint += 1;\n\t\t\t\t\n\t\t\t} else if ( result < 0 ) {\n\t\t\t\tHPoint += 3;\n\t\t\t\t\n\t\t\t}", "result > 0", "result", "0", "{\n\t\t\t\tTPoint += 3;\n\t\t\t\t\t\t\t\t\n\t\t\t}", "TPoint += 3", "TPoint", "3", "if ( result == 0) {\n\t\t\t\tTPoint += 1;\n\t\t\t\tHPoint += 1;\n\t\t\t\t\n\t\t\t} else if ( result < 0 ) {\n\t\t\t\tHPoint += 3;\n\t\t\t\t\n\t\t\t}", "result == 0", "result", "0", "{\n\t\t\t\tTPoint += 1;\n\t\t\t\tHPoint += 1;\n\t\t\t\t\n\t\t\t}", "TPoint += 1", "TPoint", "1", "HPoint += 1", "HPoint", "1", "if ( result < 0 ) {\n\t\t\t\tHPoint += 3;\n\t\t\t\t\n\t\t\t}", "result < 0", "result", "0", "{\n\t\t\t\tHPoint += 3;\n\t\t\t\t\n\t\t\t}", "HPoint += 3", "HPoint", "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 scan = new Scanner( System.in );\n\t\t\n\t\tint n = scan.nextInt();\n\t\t\n\t\tint TPoint = 0;\n\t\tint HPoint = 0;\n\t\tfor ( int i = 0; i < n; i++ ) {\n\t\t\tString T = scan.next();\n\t\t\tString H = scan.next();\n\t\t\t\n\t\t\tint result = T.compareToIgnoreCase(H);\n\t\t\tif ( result > 0 ) {\n\t\t\t\tTPoint += 3;\n\t\t\t\t\t\t\t\t\n\t\t\t} else if ( result == 0) {\n\t\t\t\tTPoint += 1;\n\t\t\t\tHPoint += 1;\n\t\t\t\t\n\t\t\t} else if ( result < 0 ) {\n\t\t\t\tHPoint += 3;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println( TPoint + \" \" + HPoint );\n\t\t\n\t}\n\t\n}", "public class Main {\n public static void main( String args[] ) {\n Scanner scan = new Scanner( System.in );\n\t\t\n\t\tint n = scan.nextInt();\n\t\t\n\t\tint TPoint = 0;\n\t\tint HPoint = 0;\n\t\tfor ( int i = 0; i < n; i++ ) {\n\t\t\tString T = scan.next();\n\t\t\tString H = scan.next();\n\t\t\t\n\t\t\tint result = T.compareToIgnoreCase(H);\n\t\t\tif ( result > 0 ) {\n\t\t\t\tTPoint += 3;\n\t\t\t\t\t\t\t\t\n\t\t\t} else if ( result == 0) {\n\t\t\t\tTPoint += 1;\n\t\t\t\tHPoint += 1;\n\t\t\t\t\n\t\t\t} else if ( result < 0 ) {\n\t\t\t\tHPoint += 3;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println( TPoint + \" \" + HPoint );\n\t\t\n\t}\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 TPoint = 0; int HPoint = 0; for ( int i = 0; i < n; i++ ) { String T = scan.next(); String H = scan.next(); int result = T.compareToIgnoreCase(H); if ( result > 0 ) { TPoint += 3; } else if ( result == 0) { TPoint += 1; HPoint += 1; } else if ( result < 0 ) { HPoint += 3; } } System.out.println( TPoint + " " + HPoint ); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 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 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 90, 11 ], [ 90, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 29 ], [ 29, 30 ], [ 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 ], [ 62, 64 ], [ 58, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 69, 71 ], [ 65, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 75, 76 ], [ 14, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 83, 83 ], [ 83, 84 ], [ 83, 85 ], [ 83, 86 ], [ 12, 87 ], [ 87, 88 ], [ 0, 89 ], [ 89, 90 ], [ 89, 91 ] ]
[ "import java.io.File;\nimport java.io.IOException;\nimport java.util.*;\n \npublic class Main {\n \n\tpublic static void main(String[] args) throws IOException {\n\t\t//File file = new File(\"input.txt\");\n\t\t//Scanner sc = new Scanner(file);\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\tint p1 = 0, p2 = 0;\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString s1 = sc.next();\n\t\t\tString s2 = sc.next();\n\t\t\tint comp = s1.compareTo(s2);\n\t\t\tif(comp > 0) p1 += 3;\n\t\t\telse if(comp < 0) p2 += 3;\n\t\t\telse{\n\t\t\t\tp1++;\n\t\t\t\tp2++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(p1 + \" \" + p2);\n\t}\n}", "import java.io.File;", "File", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.util.*;", "util.*", "java", "public class Main {\n \n\tpublic static void main(String[] args) throws IOException {\n\t\t//File file = new File(\"input.txt\");\n\t\t//Scanner sc = new Scanner(file);\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\tint p1 = 0, p2 = 0;\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString s1 = sc.next();\n\t\t\tString s2 = sc.next();\n\t\t\tint comp = s1.compareTo(s2);\n\t\t\tif(comp > 0) p1 += 3;\n\t\t\telse if(comp < 0) p2 += 3;\n\t\t\telse{\n\t\t\t\tp1++;\n\t\t\t\tp2++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(p1 + \" \" + p2);\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\t//File file = new File(\"input.txt\");\n\t\t//Scanner sc = new Scanner(file);\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\tint p1 = 0, p2 = 0;\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString s1 = sc.next();\n\t\t\tString s2 = sc.next();\n\t\t\tint comp = s1.compareTo(s2);\n\t\t\tif(comp > 0) p1 += 3;\n\t\t\telse if(comp < 0) p2 += 3;\n\t\t\telse{\n\t\t\t\tp1++;\n\t\t\t\tp2++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(p1 + \" \" + p2);\n\t}", "main", "{\n\t\t//File file = new File(\"input.txt\");\n\t\t//Scanner sc = new Scanner(file);\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\tint p1 = 0, p2 = 0;\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString s1 = sc.next();\n\t\t\tString s2 = sc.next();\n\t\t\tint comp = s1.compareTo(s2);\n\t\t\tif(comp > 0) p1 += 3;\n\t\t\telse if(comp < 0) p2 += 3;\n\t\t\telse{\n\t\t\t\tp1++;\n\t\t\t\tp2++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(p1 + \" \" + p2);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int p1 = 0", "p1", "0", "p2 = 0;", "p2", "0", "for(int i = 0; i < n; i++){\n\t\t\tString s1 = sc.next();\n\t\t\tString s2 = sc.next();\n\t\t\tint comp = s1.compareTo(s2);\n\t\t\tif(comp > 0) p1 += 3;\n\t\t\telse if(comp < 0) p2 += 3;\n\t\t\telse{\n\t\t\t\tp1++;\n\t\t\t\tp2++;\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 s1 = sc.next();\n\t\t\tString s2 = sc.next();\n\t\t\tint comp = s1.compareTo(s2);\n\t\t\tif(comp > 0) p1 += 3;\n\t\t\telse if(comp < 0) p2 += 3;\n\t\t\telse{\n\t\t\t\tp1++;\n\t\t\t\tp2++;\n\t\t\t}\n\t\t}", "{\n\t\t\tString s1 = sc.next();\n\t\t\tString s2 = sc.next();\n\t\t\tint comp = s1.compareTo(s2);\n\t\t\tif(comp > 0) p1 += 3;\n\t\t\telse if(comp < 0) p2 += 3;\n\t\t\telse{\n\t\t\t\tp1++;\n\t\t\t\tp2++;\n\t\t\t}\n\t\t}", "String s1 = sc.next();", "s1", "sc.next()", "sc.next", "sc", "String s2 = sc.next();", "s2", "sc.next()", "sc.next", "sc", "int comp = s1.compareTo(s2);", "comp", "s1.compareTo(s2)", "s1.compareTo", "s1", "s2", "if(comp > 0) p1 += 3;\n\t\t\telse if(comp < 0) p2 += 3;\n\t\t\telse{\n\t\t\t\tp1++;\n\t\t\t\tp2++;\n\t\t\t}", "comp > 0", "comp", "0", "p1 += 3", "p1", "3", "if(comp < 0) p2 += 3;\n\t\t\telse{\n\t\t\t\tp1++;\n\t\t\t\tp2++;\n\t\t\t}", "comp < 0", "comp", "0", "p2 += 3", "p2", "3", "{\n\t\t\t\tp1++;\n\t\t\t\tp2++;\n\t\t\t}", "p1++", "p1", "p2++", "p2", "System.out.println(p1 + \" \" + p2)", "System.out.println", "System.out", "System", "System.out", "p1 + \" \" + p2", "p1 + \" \" + p2", "p1", "\" \"", "p2", "String[] args", "args", "public class Main {\n \n\tpublic static void main(String[] args) throws IOException {\n\t\t//File file = new File(\"input.txt\");\n\t\t//Scanner sc = new Scanner(file);\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\tint p1 = 0, p2 = 0;\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString s1 = sc.next();\n\t\t\tString s2 = sc.next();\n\t\t\tint comp = s1.compareTo(s2);\n\t\t\tif(comp > 0) p1 += 3;\n\t\t\telse if(comp < 0) p2 += 3;\n\t\t\telse{\n\t\t\t\tp1++;\n\t\t\t\tp2++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(p1 + \" \" + p2);\n\t}\n}", "public class Main {\n \n\tpublic static void main(String[] args) throws IOException {\n\t\t//File file = new File(\"input.txt\");\n\t\t//Scanner sc = new Scanner(file);\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\tint p1 = 0, p2 = 0;\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString s1 = sc.next();\n\t\t\tString s2 = sc.next();\n\t\t\tint comp = s1.compareTo(s2);\n\t\t\tif(comp > 0) p1 += 3;\n\t\t\telse if(comp < 0) p2 += 3;\n\t\t\telse{\n\t\t\t\tp1++;\n\t\t\t\tp2++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(p1 + \" \" + p2);\n\t}\n}", "Main" ]
import java.io.File; import java.io.IOException; import java.util.*; public class Main { public static void main(String[] args) throws IOException { //File file = new File("input.txt"); //Scanner sc = new Scanner(file); Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int p1 = 0, p2 = 0; for(int i = 0; i < n; i++){ String s1 = sc.next(); String s2 = sc.next(); int comp = s1.compareTo(s2); if(comp > 0) p1 += 3; else if(comp < 0) p2 += 3; else{ p1++; p2++; } } System.out.println(p1 + " " + p2); } }
[ 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, 14, 2, 4, 18, 13, 4, 18, 13, 30, 0, 13, 4, 18, 13, 30, 0, 13, 4, 18, 13, 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, 13, 13, 30, 0, 13, 17, 3, 14, 2, 13, 13, 30, 0, 13, 17, 3, 14, 2, 13, 13, 30, 14, 2, 13, 2, 13, 17, 30, 14, 2, 4, 18, 13, 4, 18, 13, 30, 0, 13, 17, 14, 2, 4, 18, 13, 4, 18, 13, 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 ], [ 170, 8 ], [ 170, 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 ], [ 38, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 51, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 51, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 38, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 76, 77 ], [ 76, 78 ], [ 71, 79 ], [ 79, 80 ], [ 80, 81 ], [ 71, 82 ], [ 83, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 83, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 83, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 96, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 109, 113 ], [ 105, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 122, 124 ], [ 119, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 127, 131 ], [ 131, 132 ], [ 132, 133 ], [ 126, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 126, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 139, 143 ], [ 143, 144 ], [ 144, 145 ], [ 138, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 138, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 150, 154 ], [ 154, 155 ], [ 154, 156 ], [ 11, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 157, 162 ], [ 163, 163 ], [ 163, 164 ], [ 163, 165 ], [ 163, 166 ], [ 9, 167 ], [ 167, 168 ], [ 0, 169 ], [ 169, 170 ], [ 169, 171 ] ]
[ "import java.io.IOException;\nimport java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint a = sc.nextInt();\n\t\t\tint taro = 0;\n\t\t\tint hanako = 0;\n\t\t\t\n\t\t\tfor(int b=0;b<a;++b){\n\t\t\t\tString c = sc.next();\n\t\t\t\tString d = sc.next();\n\t\t\t\tint e ;\n\t\t\t\tif(c.length()<d.length()){\n\t\t\t\t\te=c.length();\n\t\t\t\t}else{\n\t\t\t\t\te=d.length();\n\t\t\t\t}\n\t\t\t\tfor(int f=0;f<e;++f){\n\t\t\t\t\tchar g = c.charAt(f);\n\t\t\t\t\tchar h = d.charAt(f);\n\t\t\t\t\tif(g>h){\n\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else if(g<h){\n\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else if(g==h){\n\t\t\t\t\t\tif(f==e-1){\n\t\t\t\t\t\t\tif(c.length()>d.length()){\n\t\t\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\t\t}else if(c.length()<d.length()){\n\t\t\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\ttaro +=1;\n\t\t\t\t\t\t\t\thanako +=1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(taro + \" \" + hanako);\n\t}\n\n}", "import java.io.IOException;", "IOException", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint a = sc.nextInt();\n\t\t\tint taro = 0;\n\t\t\tint hanako = 0;\n\t\t\t\n\t\t\tfor(int b=0;b<a;++b){\n\t\t\t\tString c = sc.next();\n\t\t\t\tString d = sc.next();\n\t\t\t\tint e ;\n\t\t\t\tif(c.length()<d.length()){\n\t\t\t\t\te=c.length();\n\t\t\t\t}else{\n\t\t\t\t\te=d.length();\n\t\t\t\t}\n\t\t\t\tfor(int f=0;f<e;++f){\n\t\t\t\t\tchar g = c.charAt(f);\n\t\t\t\t\tchar h = d.charAt(f);\n\t\t\t\t\tif(g>h){\n\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else if(g<h){\n\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else if(g==h){\n\t\t\t\t\t\tif(f==e-1){\n\t\t\t\t\t\t\tif(c.length()>d.length()){\n\t\t\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\t\t}else if(c.length()<d.length()){\n\t\t\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\ttaro +=1;\n\t\t\t\t\t\t\t\thanako +=1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(taro + \" \" + hanako);\n\t}\n\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint a = sc.nextInt();\n\t\t\tint taro = 0;\n\t\t\tint hanako = 0;\n\t\t\t\n\t\t\tfor(int b=0;b<a;++b){\n\t\t\t\tString c = sc.next();\n\t\t\t\tString d = sc.next();\n\t\t\t\tint e ;\n\t\t\t\tif(c.length()<d.length()){\n\t\t\t\t\te=c.length();\n\t\t\t\t}else{\n\t\t\t\t\te=d.length();\n\t\t\t\t}\n\t\t\t\tfor(int f=0;f<e;++f){\n\t\t\t\t\tchar g = c.charAt(f);\n\t\t\t\t\tchar h = d.charAt(f);\n\t\t\t\t\tif(g>h){\n\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else if(g<h){\n\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else if(g==h){\n\t\t\t\t\t\tif(f==e-1){\n\t\t\t\t\t\t\tif(c.length()>d.length()){\n\t\t\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\t\t}else if(c.length()<d.length()){\n\t\t\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\ttaro +=1;\n\t\t\t\t\t\t\t\thanako +=1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(taro + \" \" + hanako);\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint a = sc.nextInt();\n\t\t\tint taro = 0;\n\t\t\tint hanako = 0;\n\t\t\t\n\t\t\tfor(int b=0;b<a;++b){\n\t\t\t\tString c = sc.next();\n\t\t\t\tString d = sc.next();\n\t\t\t\tint e ;\n\t\t\t\tif(c.length()<d.length()){\n\t\t\t\t\te=c.length();\n\t\t\t\t}else{\n\t\t\t\t\te=d.length();\n\t\t\t\t}\n\t\t\t\tfor(int f=0;f<e;++f){\n\t\t\t\t\tchar g = c.charAt(f);\n\t\t\t\t\tchar h = d.charAt(f);\n\t\t\t\t\tif(g>h){\n\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else if(g<h){\n\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else if(g==h){\n\t\t\t\t\t\tif(f==e-1){\n\t\t\t\t\t\t\tif(c.length()>d.length()){\n\t\t\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\t\t}else if(c.length()<d.length()){\n\t\t\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\ttaro +=1;\n\t\t\t\t\t\t\t\thanako +=1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(taro + \" \" + hanako);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int taro = 0;", "taro", "0", "int hanako = 0;", "hanako", "0", "for(int b=0;b<a;++b){\n\t\t\t\tString c = sc.next();\n\t\t\t\tString d = sc.next();\n\t\t\t\tint e ;\n\t\t\t\tif(c.length()<d.length()){\n\t\t\t\t\te=c.length();\n\t\t\t\t}else{\n\t\t\t\t\te=d.length();\n\t\t\t\t}\n\t\t\t\tfor(int f=0;f<e;++f){\n\t\t\t\t\tchar g = c.charAt(f);\n\t\t\t\t\tchar h = d.charAt(f);\n\t\t\t\t\tif(g>h){\n\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else if(g<h){\n\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else if(g==h){\n\t\t\t\t\t\tif(f==e-1){\n\t\t\t\t\t\t\tif(c.length()>d.length()){\n\t\t\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\t\t}else if(c.length()<d.length()){\n\t\t\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\ttaro +=1;\n\t\t\t\t\t\t\t\thanako +=1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "int b=0;", "int b=0;", "b", "0", "b<a", "b", "a", "++b", "++b", "b", "{\n\t\t\t\tString c = sc.next();\n\t\t\t\tString d = sc.next();\n\t\t\t\tint e ;\n\t\t\t\tif(c.length()<d.length()){\n\t\t\t\t\te=c.length();\n\t\t\t\t}else{\n\t\t\t\t\te=d.length();\n\t\t\t\t}\n\t\t\t\tfor(int f=0;f<e;++f){\n\t\t\t\t\tchar g = c.charAt(f);\n\t\t\t\t\tchar h = d.charAt(f);\n\t\t\t\t\tif(g>h){\n\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else if(g<h){\n\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else if(g==h){\n\t\t\t\t\t\tif(f==e-1){\n\t\t\t\t\t\t\tif(c.length()>d.length()){\n\t\t\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\t\t}else if(c.length()<d.length()){\n\t\t\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\ttaro +=1;\n\t\t\t\t\t\t\t\thanako +=1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tString c = sc.next();\n\t\t\t\tString d = sc.next();\n\t\t\t\tint e ;\n\t\t\t\tif(c.length()<d.length()){\n\t\t\t\t\te=c.length();\n\t\t\t\t}else{\n\t\t\t\t\te=d.length();\n\t\t\t\t}\n\t\t\t\tfor(int f=0;f<e;++f){\n\t\t\t\t\tchar g = c.charAt(f);\n\t\t\t\t\tchar h = d.charAt(f);\n\t\t\t\t\tif(g>h){\n\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else if(g<h){\n\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else if(g==h){\n\t\t\t\t\t\tif(f==e-1){\n\t\t\t\t\t\t\tif(c.length()>d.length()){\n\t\t\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\t\t}else if(c.length()<d.length()){\n\t\t\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\ttaro +=1;\n\t\t\t\t\t\t\t\thanako +=1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "String c = sc.next();", "c", "sc.next()", "sc.next", "sc", "String d = sc.next();", "d", "sc.next()", "sc.next", "sc", "int e ;", "e", "if(c.length()<d.length()){\n\t\t\t\t\te=c.length();\n\t\t\t\t}else{\n\t\t\t\t\te=d.length();\n\t\t\t\t}", "c.length()<d.length()", "c.length()", "c.length", "c", "d.length()", "d.length", "d", "{\n\t\t\t\t\te=c.length();\n\t\t\t\t}", "e=c.length()", "e", "c.length()", "c.length", "c", "{\n\t\t\t\t\te=d.length();\n\t\t\t\t}", "e=d.length()", "e", "d.length()", "d.length", "d", "for(int f=0;f<e;++f){\n\t\t\t\t\tchar g = c.charAt(f);\n\t\t\t\t\tchar h = d.charAt(f);\n\t\t\t\t\tif(g>h){\n\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else if(g<h){\n\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else if(g==h){\n\t\t\t\t\t\tif(f==e-1){\n\t\t\t\t\t\t\tif(c.length()>d.length()){\n\t\t\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\t\t}else if(c.length()<d.length()){\n\t\t\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\ttaro +=1;\n\t\t\t\t\t\t\t\thanako +=1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "int f=0;", "int f=0;", "f", "0", "f<e", "f", "e", "++f", "++f", "f", "{\n\t\t\t\t\tchar g = c.charAt(f);\n\t\t\t\t\tchar h = d.charAt(f);\n\t\t\t\t\tif(g>h){\n\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else if(g<h){\n\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else if(g==h){\n\t\t\t\t\t\tif(f==e-1){\n\t\t\t\t\t\t\tif(c.length()>d.length()){\n\t\t\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\t\t}else if(c.length()<d.length()){\n\t\t\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\ttaro +=1;\n\t\t\t\t\t\t\t\thanako +=1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\tchar g = c.charAt(f);\n\t\t\t\t\tchar h = d.charAt(f);\n\t\t\t\t\tif(g>h){\n\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else if(g<h){\n\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else if(g==h){\n\t\t\t\t\t\tif(f==e-1){\n\t\t\t\t\t\t\tif(c.length()>d.length()){\n\t\t\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\t\t}else if(c.length()<d.length()){\n\t\t\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\ttaro +=1;\n\t\t\t\t\t\t\t\thanako +=1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "char g = c.charAt(f);", "g", "c.charAt(f)", "c.charAt", "c", "f", "char h = d.charAt(f);", "h", "d.charAt(f)", "d.charAt", "d", "f", "if(g>h){\n\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else if(g<h){\n\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else if(g==h){\n\t\t\t\t\t\tif(f==e-1){\n\t\t\t\t\t\t\tif(c.length()>d.length()){\n\t\t\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\t\t}else if(c.length()<d.length()){\n\t\t\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\ttaro +=1;\n\t\t\t\t\t\t\t\thanako +=1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "g>h", "g", "h", "{\n\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}", "taro += 3", "taro", "3", "break;", "if(g<h){\n\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else if(g==h){\n\t\t\t\t\t\tif(f==e-1){\n\t\t\t\t\t\t\tif(c.length()>d.length()){\n\t\t\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\t\t}else if(c.length()<d.length()){\n\t\t\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\ttaro +=1;\n\t\t\t\t\t\t\t\thanako +=1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "g<h", "g", "h", "{\n\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}", "hanako += 3", "hanako", "3", "break;", "if(g==h){\n\t\t\t\t\t\tif(f==e-1){\n\t\t\t\t\t\t\tif(c.length()>d.length()){\n\t\t\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\t\t}else if(c.length()<d.length()){\n\t\t\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\ttaro +=1;\n\t\t\t\t\t\t\t\thanako +=1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "g==h", "g", "h", "{\n\t\t\t\t\t\tif(f==e-1){\n\t\t\t\t\t\t\tif(c.length()>d.length()){\n\t\t\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\t\t}else if(c.length()<d.length()){\n\t\t\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\ttaro +=1;\n\t\t\t\t\t\t\t\thanako +=1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "if(f==e-1){\n\t\t\t\t\t\t\tif(c.length()>d.length()){\n\t\t\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\t\t}else if(c.length()<d.length()){\n\t\t\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\ttaro +=1;\n\t\t\t\t\t\t\t\thanako +=1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "f==e-1", "f", "e-1", "e", "1", "{\n\t\t\t\t\t\t\tif(c.length()>d.length()){\n\t\t\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\t\t}else if(c.length()<d.length()){\n\t\t\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\ttaro +=1;\n\t\t\t\t\t\t\t\thanako +=1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "if(c.length()>d.length()){\n\t\t\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\t\t}else if(c.length()<d.length()){\n\t\t\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\ttaro +=1;\n\t\t\t\t\t\t\t\thanako +=1;\n\t\t\t\t\t\t\t}", "c.length()>d.length()", "c.length()", "c.length", "c", "d.length()", "d.length", "d", "{\n\t\t\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\t\t}", "taro += 3", "taro", "3", "if(c.length()<d.length()){\n\t\t\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\ttaro +=1;\n\t\t\t\t\t\t\t\thanako +=1;\n\t\t\t\t\t\t\t}", "c.length()<d.length()", "c.length()", "c.length", "c", "d.length()", "d.length", "d", "{\n\t\t\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\t\t}", "hanako += 3", "hanako", "3", "{\n\t\t\t\t\t\t\t\ttaro +=1;\n\t\t\t\t\t\t\t\thanako +=1;\n\t\t\t\t\t\t\t}", "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\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint a = sc.nextInt();\n\t\t\tint taro = 0;\n\t\t\tint hanako = 0;\n\t\t\t\n\t\t\tfor(int b=0;b<a;++b){\n\t\t\t\tString c = sc.next();\n\t\t\t\tString d = sc.next();\n\t\t\t\tint e ;\n\t\t\t\tif(c.length()<d.length()){\n\t\t\t\t\te=c.length();\n\t\t\t\t}else{\n\t\t\t\t\te=d.length();\n\t\t\t\t}\n\t\t\t\tfor(int f=0;f<e;++f){\n\t\t\t\t\tchar g = c.charAt(f);\n\t\t\t\t\tchar h = d.charAt(f);\n\t\t\t\t\tif(g>h){\n\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else if(g<h){\n\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else if(g==h){\n\t\t\t\t\t\tif(f==e-1){\n\t\t\t\t\t\t\tif(c.length()>d.length()){\n\t\t\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\t\t}else if(c.length()<d.length()){\n\t\t\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\ttaro +=1;\n\t\t\t\t\t\t\t\thanako +=1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(taro + \" \" + hanako);\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint a = sc.nextInt();\n\t\t\tint taro = 0;\n\t\t\tint hanako = 0;\n\t\t\t\n\t\t\tfor(int b=0;b<a;++b){\n\t\t\t\tString c = sc.next();\n\t\t\t\tString d = sc.next();\n\t\t\t\tint e ;\n\t\t\t\tif(c.length()<d.length()){\n\t\t\t\t\te=c.length();\n\t\t\t\t}else{\n\t\t\t\t\te=d.length();\n\t\t\t\t}\n\t\t\t\tfor(int f=0;f<e;++f){\n\t\t\t\t\tchar g = c.charAt(f);\n\t\t\t\t\tchar h = d.charAt(f);\n\t\t\t\t\tif(g>h){\n\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else if(g<h){\n\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else if(g==h){\n\t\t\t\t\t\tif(f==e-1){\n\t\t\t\t\t\t\tif(c.length()>d.length()){\n\t\t\t\t\t\t\t\ttaro += 3;\n\t\t\t\t\t\t\t}else if(c.length()<d.length()){\n\t\t\t\t\t\t\t\thanako += 3;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\ttaro +=1;\n\t\t\t\t\t\t\t\thanako +=1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(taro + \" \" + hanako);\n\t}\n\n}", "Main" ]
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { // TODO ????????????????????????????????????????????? Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int taro = 0; int hanako = 0; for(int b=0;b<a;++b){ String c = sc.next(); String d = sc.next(); int e ; if(c.length()<d.length()){ e=c.length(); }else{ e=d.length(); } for(int f=0;f<e;++f){ char g = c.charAt(f); char h = d.charAt(f); if(g>h){ taro += 3; break; }else if(g<h){ hanako += 3; break; }else if(g==h){ if(f==e-1){ if(c.length()>d.length()){ taro += 3; }else if(c.length()<d.length()){ hanako += 3; }else{ taro +=1; hanako +=1; } } } } } System.out.println(taro + " " + hanako); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 41, 13, 41, 13, 12, 12, 6, 13, 41, 13, 17, 41, 13, 17, 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, 35, 4, 13, 13, 13, 34, 13, 1, 0, 13, 17, 0, 13, 17, 3, 34, 13, 1, 0, 13, 17, 3, 34, 13, 1, 0, 13, 17, 3, 4, 18, 18, 13, 13, 17, 13, 13, 23, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 42, 2, 2, 2, 13, 4, 18, 13, 2, 13, 4, 18, 13, 2, 4, 18, 13, 13, 4, 18, 13, 13, 30, 40, 13, 40, 13, 14, 2, 2, 13, 4, 18, 13, 2, 13, 4, 18, 13, 30, 14, 2, 4, 18, 13, 13, 4, 18, 13, 13, 30, 29, 18, 13, 13, 30, 29, 18, 13, 13, 14, 2, 2, 13, 4, 18, 13, 2, 13, 4, 18, 13, 30, 29, 18, 13, 13, 14, 2, 2, 13, 4, 18, 13, 2, 13, 4, 18, 13, 30, 29, 18, 13, 13, 30, 29, 18, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 4, 8 ], [ 8, 9 ], [ 4, 10 ], [ 10, 11 ], [ 4, 12 ], [ 4, 13 ], [ 0, 14 ], [ 218, 15 ], [ 218, 16 ], [ 16, 17 ], [ 16, 18 ], [ 218, 19 ], [ 19, 20 ], [ 19, 21 ], [ 218, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 24, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 24, 33 ], [ 33, 34 ], [ 24, 35 ], [ 35, 36 ], [ 24, 37 ], [ 37, 38 ], [ 37, 39 ], [ 24, 40 ], [ 40, 41 ], [ 40, 42 ], [ 24, 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 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 55, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 55, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 67, 70 ], [ 66, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 77, 79 ], [ 73, 80 ], [ 66, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 66, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 24, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 95, 101 ], [ 95, 102 ], [ 22, 103 ], [ 103, 104 ], [ 218, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 111, 112 ], [ 111, 113 ], [ 107, 114 ], [ 114, 115 ], [ 116, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 120, 121 ], [ 116, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 125, 126 ], [ 116, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 128, 131 ], [ 127, 132 ], [ 132, 133 ], [ 133, 134 ], [ 132, 135 ], [ 114, 136 ], [ 136, 137 ], [ 137, 138 ], [ 136, 139 ], [ 139, 140 ], [ 107, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 145, 146 ], [ 146, 147 ], [ 142, 148 ], [ 148, 149 ], [ 148, 150 ], [ 150, 151 ], [ 151, 152 ], [ 141, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 156, 159 ], [ 155, 160 ], [ 160, 161 ], [ 161, 162 ], [ 160, 163 ], [ 154, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 154, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 171, 173 ], [ 141, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 178, 179 ], [ 179, 180 ], [ 175, 181 ], [ 181, 182 ], [ 181, 183 ], [ 183, 184 ], [ 184, 185 ], [ 174, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 188, 190 ], [ 174, 191 ], [ 191, 192 ], [ 192, 193 ], [ 193, 194 ], [ 193, 195 ], [ 195, 196 ], [ 196, 197 ], [ 192, 198 ], [ 198, 199 ], [ 198, 200 ], [ 200, 201 ], [ 201, 202 ], [ 191, 203 ], [ 203, 204 ], [ 204, 205 ], [ 205, 206 ], [ 205, 207 ], [ 191, 208 ], [ 208, 209 ], [ 209, 210 ], [ 210, 211 ], [ 210, 212 ], [ 105, 213 ], [ 213, 214 ], [ 105, 215 ], [ 215, 216 ], [ 0, 217 ], [ 217, 218 ], [ 217, 219 ] ]
[ "import java.util.Scanner;\n\nenum Type{\n\tSAME,\n\tA_BIG,\n\tB_BIG\n};\n\npublic class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint N = scanner.nextInt();\n\t\tString TARO,HANAKO;\n\t\tint score_TARO = 0,score_HANAKO = 0;\n\n\t\tfor(int loop = 0; loop < N; loop++){\n\n\t\t\tTARO = scanner.next();\n\t\t\tHANAKO = scanner.next();\n\n\t\t\tswitch(compString(TARO,HANAKO)){\n\t\t\tcase SAME:\n\t\t\t\tscore_TARO += 1;\n\t\t\t\tscore_HANAKO += 1;\n\t\t\t\tbreak;\n\t\t\tcase A_BIG:\n\t\t\t\tscore_TARO += 3;\n\t\t\t\tbreak;\n\t\t\tcase B_BIG:\n\t\t\t\tscore_HANAKO += 3;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.printf(\"%d %d\\n\", score_TARO,score_HANAKO);\n\t}\n\n\t//A基準で比較する関数\n\tpublic static Type compString(String A,String B){\n\t\tint a_index = 0,b_index = 0;\n\n\t\twhile(a_index < A.length() && b_index < B.length() && A.charAt(a_index) == B.charAt(b_index)){\n\t\t\ta_index++;\n\t\t\tb_index++;\n\t\t}\n\n\t\tif(a_index < A.length() && b_index < B.length()){\n\t\t\tif(A.charAt(a_index) > B.charAt(b_index)){\n\t\t\t\treturn Type.A_BIG;\n\t\t\t}else{\n\t\t\t\treturn Type.B_BIG;\n\t\t\t}\n\n\t\t}else if(a_index < A.length() && b_index == B.length()){\n\t\t\treturn Type.A_BIG;\n\t\t}else if(a_index == A.length() && b_index < B.length()){\n\t\t\treturn Type.B_BIG;\n\t\t}else{\n\t\t\treturn Type.SAME;\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "enum Type{\n\tSAME,\n\tA_BIG,\n\tB_BIG\n}", "Type", "SAME", "SAME", "A_BIG", "A_BIG", "B_BIG", "B_BIG", "import java.util.Scanner;\n\nenum T", "import java.util.Scanner;\n\nenum Type{\n\tSAME,\n\tA_BIG,\n\tB_BIG\n};\n\npublic class Main {\n\n\tpublic st", "public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint N = scanner.nextInt();\n\t\tString TARO,HANAKO;\n\t\tint score_TARO = 0,score_HANAKO = 0;\n\n\t\tfor(int loop = 0; loop < N; loop++){\n\n\t\t\tTARO = scanner.next();\n\t\t\tHANAKO = scanner.next();\n\n\t\t\tswitch(compString(TARO,HANAKO)){\n\t\t\tcase SAME:\n\t\t\t\tscore_TARO += 1;\n\t\t\t\tscore_HANAKO += 1;\n\t\t\t\tbreak;\n\t\t\tcase A_BIG:\n\t\t\t\tscore_TARO += 3;\n\t\t\t\tbreak;\n\t\t\tcase B_BIG:\n\t\t\t\tscore_HANAKO += 3;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.printf(\"%d %d\\n\", score_TARO,score_HANAKO);\n\t}\n\n\t//A基準で比較する関数\n\tpublic static Type compString(String A,String B){\n\t\tint a_index = 0,b_index = 0;\n\n\t\twhile(a_index < A.length() && b_index < B.length() && A.charAt(a_index) == B.charAt(b_index)){\n\t\t\ta_index++;\n\t\t\tb_index++;\n\t\t}\n\n\t\tif(a_index < A.length() && b_index < B.length()){\n\t\t\tif(A.charAt(a_index) > B.charAt(b_index)){\n\t\t\t\treturn Type.A_BIG;\n\t\t\t}else{\n\t\t\t\treturn Type.B_BIG;\n\t\t\t}\n\n\t\t}else if(a_index < A.length() && b_index == B.length()){\n\t\t\treturn Type.A_BIG;\n\t\t}else if(a_index == A.length() && b_index < B.length()){\n\t\t\treturn Type.B_BIG;\n\t\t}else{\n\t\t\treturn Type.SAME;\n\t\t}\n\t}\n}", "Main", "public static final int BIG_NUM = 2000000000;", "BIG_NUM", "2000000000", "public static final int MOD = 1000000007;", "MOD", "1000000007", "public static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint N = scanner.nextInt();\n\t\tString TARO,HANAKO;\n\t\tint score_TARO = 0,score_HANAKO = 0;\n\n\t\tfor(int loop = 0; loop < N; loop++){\n\n\t\t\tTARO = scanner.next();\n\t\t\tHANAKO = scanner.next();\n\n\t\t\tswitch(compString(TARO,HANAKO)){\n\t\t\tcase SAME:\n\t\t\t\tscore_TARO += 1;\n\t\t\t\tscore_HANAKO += 1;\n\t\t\t\tbreak;\n\t\t\tcase A_BIG:\n\t\t\t\tscore_TARO += 3;\n\t\t\t\tbreak;\n\t\t\tcase B_BIG:\n\t\t\t\tscore_HANAKO += 3;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.printf(\"%d %d\\n\", score_TARO,score_HANAKO);\n\t}", "main", "{\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint N = scanner.nextInt();\n\t\tString TARO,HANAKO;\n\t\tint score_TARO = 0,score_HANAKO = 0;\n\n\t\tfor(int loop = 0; loop < N; loop++){\n\n\t\t\tTARO = scanner.next();\n\t\t\tHANAKO = scanner.next();\n\n\t\t\tswitch(compString(TARO,HANAKO)){\n\t\t\tcase SAME:\n\t\t\t\tscore_TARO += 1;\n\t\t\t\tscore_HANAKO += 1;\n\t\t\t\tbreak;\n\t\t\tcase A_BIG:\n\t\t\t\tscore_TARO += 3;\n\t\t\t\tbreak;\n\t\t\tcase B_BIG:\n\t\t\t\tscore_HANAKO += 3;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.printf(\"%d %d\\n\", score_TARO,score_HANAKO);\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int N = scanner.nextInt();", "N", "scanner.nextInt()", "scanner.nextInt", "scanner", "String TARO", "TARO", "HANAKO;", "HANAKO", "int score_TARO = 0", "score_TARO", "0", "score_HANAKO = 0;", "score_HANAKO", "0", "for(int loop = 0; loop < N; loop++){\n\n\t\t\tTARO = scanner.next();\n\t\t\tHANAKO = scanner.next();\n\n\t\t\tswitch(compString(TARO,HANAKO)){\n\t\t\tcase SAME:\n\t\t\t\tscore_TARO += 1;\n\t\t\t\tscore_HANAKO += 1;\n\t\t\t\tbreak;\n\t\t\tcase A_BIG:\n\t\t\t\tscore_TARO += 3;\n\t\t\t\tbreak;\n\t\t\tcase B_BIG:\n\t\t\t\tscore_HANAKO += 3;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "int loop = 0;", "int loop = 0;", "loop", "0", "loop < N", "loop", "N", "loop++", "loop++", "loop", "{\n\n\t\t\tTARO = scanner.next();\n\t\t\tHANAKO = scanner.next();\n\n\t\t\tswitch(compString(TARO,HANAKO)){\n\t\t\tcase SAME:\n\t\t\t\tscore_TARO += 1;\n\t\t\t\tscore_HANAKO += 1;\n\t\t\t\tbreak;\n\t\t\tcase A_BIG:\n\t\t\t\tscore_TARO += 3;\n\t\t\t\tbreak;\n\t\t\tcase B_BIG:\n\t\t\t\tscore_HANAKO += 3;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "{\n\n\t\t\tTARO = scanner.next();\n\t\t\tHANAKO = scanner.next();\n\n\t\t\tswitch(compString(TARO,HANAKO)){\n\t\t\tcase SAME:\n\t\t\t\tscore_TARO += 1;\n\t\t\t\tscore_HANAKO += 1;\n\t\t\t\tbreak;\n\t\t\tcase A_BIG:\n\t\t\t\tscore_TARO += 3;\n\t\t\t\tbreak;\n\t\t\tcase B_BIG:\n\t\t\t\tscore_HANAKO += 3;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "TARO = scanner.next()", "TARO", "scanner.next()", "scanner.next", "scanner", "HANAKO = scanner.next()", "HANAKO", "scanner.next()", "scanner.next", "scanner", "switch(compString(TARO,HANAKO)){\n\t\t\tcase SAME:\n\t\t\t\tscore_TARO += 1;\n\t\t\t\tscore_HANAKO += 1;\n\t\t\t\tbreak;\n\t\t\tcase A_BIG:\n\t\t\t\tscore_TARO += 3;\n\t\t\t\tbreak;\n\t\t\tcase B_BIG:\n\t\t\t\tscore_HANAKO += 3;\n\t\t\t\tbreak;\n\t\t\t}", "compString(TARO,HANAKO)", "compString", "TARO", "HANAKO", "case SAME:", "SAME", "case SAME:", "score_TARO += 1", "score_TARO", "1", "score_HANAKO += 1", "score_HANAKO", "1", "break;", "case A_BIG:", "A_BIG", "case A_BIG:", "score_TARO += 3", "score_TARO", "3", "break;", "case B_BIG:", "B_BIG", "case B_BIG:", "score_HANAKO += 3", "score_HANAKO", "3", "break;", "System.out.printf(\"%d %d\\n\", score_TARO,score_HANAKO)", "System.out.printf", "System.out", "System", "System.out", "\"%d %d\\n\"", "score_TARO", "score_HANAKO", "String[] args", "args", "//A基準で比較する関数\n\tpublic static Type compString(String A,String B){\n\t\tint a_index = 0,b_index = 0;\n\n\t\twhile(a_index < A.length() && b_index < B.length() && A.charAt(a_index) == B.charAt(b_index)){\n\t\t\ta_index++;\n\t\t\tb_index++;\n\t\t}\n\n\t\tif(a_index < A.length() && b_index < B.length()){\n\t\t\tif(A.charAt(a_index) > B.charAt(b_index)){\n\t\t\t\treturn Type.A_BIG;\n\t\t\t}else{\n\t\t\t\treturn Type.B_BIG;\n\t\t\t}\n\n\t\t}else if(a_index < A.length() && b_index == B.length()){\n\t\t\treturn Type.A_BIG;\n\t\t}else if(a_index == A.length() && b_index < B.length()){\n\t\t\treturn Type.B_BIG;\n\t\t}else{\n\t\t\treturn Type.SAME;\n\t\t}\n\t}", "compString", "{\n\t\tint a_index = 0,b_index = 0;\n\n\t\twhile(a_index < A.length() && b_index < B.length() && A.charAt(a_index) == B.charAt(b_index)){\n\t\t\ta_index++;\n\t\t\tb_index++;\n\t\t}\n\n\t\tif(a_index < A.length() && b_index < B.length()){\n\t\t\tif(A.charAt(a_index) > B.charAt(b_index)){\n\t\t\t\treturn Type.A_BIG;\n\t\t\t}else{\n\t\t\t\treturn Type.B_BIG;\n\t\t\t}\n\n\t\t}else if(a_index < A.length() && b_index == B.length()){\n\t\t\treturn Type.A_BIG;\n\t\t}else if(a_index == A.length() && b_index < B.length()){\n\t\t\treturn Type.B_BIG;\n\t\t}else{\n\t\t\treturn Type.SAME;\n\t\t}\n\t}", "int a_index = 0", "a_index", "0", "b_index = 0;", "b_index", "0", "while(a_index < A.length() && b_index < B.length() && A.charAt(a_index) == B.charAt(b_index)){\n\t\t\ta_index++;\n\t\t\tb_index++;\n\t\t}", "a_index < A.length() && b_index < B.length() && A.charAt(a_index) == B.charAt(b_index)", "a_index < A.length() && b_index < B.length() && A.charAt(a_index) == B.charAt(b_index)", "a_index < A.length()", "a_index", "A.length()", "A.length", "A", "b_index < B.length()", "b_index", "B.length()", "B.length", "B", "A.charAt(a_index) == B.charAt(b_index)", "A.charAt(a_index)", "A.charAt", "A", "a_index", "B.charAt(b_index)", "B.charAt", "B", "b_index", "{\n\t\t\ta_index++;\n\t\t\tb_index++;\n\t\t}", "a_index++", "a_index", "b_index++", "b_index", "if(a_index < A.length() && b_index < B.length()){\n\t\t\tif(A.charAt(a_index) > B.charAt(b_index)){\n\t\t\t\treturn Type.A_BIG;\n\t\t\t}else{\n\t\t\t\treturn Type.B_BIG;\n\t\t\t}\n\n\t\t}else if(a_index < A.length() && b_index == B.length()){\n\t\t\treturn Type.A_BIG;\n\t\t}else if(a_index == A.length() && b_index < B.length()){\n\t\t\treturn Type.B_BIG;\n\t\t}else{\n\t\t\treturn Type.SAME;\n\t\t}", "a_index < A.length() && b_index < B.length()", "a_index < A.length()", "a_index", "A.length()", "A.length", "A", "b_index < B.length()", "b_index", "B.length()", "B.length", "B", "{\n\t\t\tif(A.charAt(a_index) > B.charAt(b_index)){\n\t\t\t\treturn Type.A_BIG;\n\t\t\t}else{\n\t\t\t\treturn Type.B_BIG;\n\t\t\t}\n\n\t\t}", "if(A.charAt(a_index) > B.charAt(b_index)){\n\t\t\t\treturn Type.A_BIG;\n\t\t\t}else{\n\t\t\t\treturn Type.B_BIG;\n\t\t\t}", "A.charAt(a_index) > B.charAt(b_index)", "A.charAt(a_index)", "A.charAt", "A", "a_index", "B.charAt(b_index)", "B.charAt", "B", "b_index", "{\n\t\t\t\treturn Type.A_BIG;\n\t\t\t}", "return Type.A_BIG;", "Type.A_BIG", "Type", "Type.A_BIG", "{\n\t\t\t\treturn Type.B_BIG;\n\t\t\t}", "return Type.B_BIG;", "Type.B_BIG", "Type", "Type.B_BIG", "if(a_index < A.length() && b_index == B.length()){\n\t\t\treturn Type.A_BIG;\n\t\t}else if(a_index == A.length() && b_index < B.length()){\n\t\t\treturn Type.B_BIG;\n\t\t}else{\n\t\t\treturn Type.SAME;\n\t\t}", "a_index < A.length() && b_index == B.length()", "a_index < A.length()", "a_index", "A.length()", "A.length", "A", "b_index == B.length()", "b_index", "B.length()", "B.length", "B", "{\n\t\t\treturn Type.A_BIG;\n\t\t}", "return Type.A_BIG;", "Type.A_BIG", "Type", "Type.A_BIG", "if(a_index == A.length() && b_index < B.length()){\n\t\t\treturn Type.B_BIG;\n\t\t}else{\n\t\t\treturn Type.SAME;\n\t\t}", "a_index == A.length() && b_index < B.length()", "a_index == A.length()", "a_index", "A.length()", "A.length", "A", "b_index < B.length()", "b_index", "B.length()", "B.length", "B", "{\n\t\t\treturn Type.B_BIG;\n\t\t}", "return Type.B_BIG;", "Type.B_BIG", "Type", "Type.B_BIG", "{\n\t\t\treturn Type.SAME;\n\t\t}", "return Type.SAME;", "Type.SAME", "Type", "Type.SAME", "String A", "A", "String B", "B", "public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint N = scanner.nextInt();\n\t\tString TARO,HANAKO;\n\t\tint score_TARO = 0,score_HANAKO = 0;\n\n\t\tfor(int loop = 0; loop < N; loop++){\n\n\t\t\tTARO = scanner.next();\n\t\t\tHANAKO = scanner.next();\n\n\t\t\tswitch(compString(TARO,HANAKO)){\n\t\t\tcase SAME:\n\t\t\t\tscore_TARO += 1;\n\t\t\t\tscore_HANAKO += 1;\n\t\t\t\tbreak;\n\t\t\tcase A_BIG:\n\t\t\t\tscore_TARO += 3;\n\t\t\t\tbreak;\n\t\t\tcase B_BIG:\n\t\t\t\tscore_HANAKO += 3;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.printf(\"%d %d\\n\", score_TARO,score_HANAKO);\n\t}\n\n\t//A基準で比較する関数\n\tpublic static Type compString(String A,String B){\n\t\tint a_index = 0,b_index = 0;\n\n\t\twhile(a_index < A.length() && b_index < B.length() && A.charAt(a_index) == B.charAt(b_index)){\n\t\t\ta_index++;\n\t\t\tb_index++;\n\t\t}\n\n\t\tif(a_index < A.length() && b_index < B.length()){\n\t\t\tif(A.charAt(a_index) > B.charAt(b_index)){\n\t\t\t\treturn Type.A_BIG;\n\t\t\t}else{\n\t\t\t\treturn Type.B_BIG;\n\t\t\t}\n\n\t\t}else if(a_index < A.length() && b_index == B.length()){\n\t\t\treturn Type.A_BIG;\n\t\t}else if(a_index == A.length() && b_index < B.length()){\n\t\t\treturn Type.B_BIG;\n\t\t}else{\n\t\t\treturn Type.SAME;\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint N = scanner.nextInt();\n\t\tString TARO,HANAKO;\n\t\tint score_TARO = 0,score_HANAKO = 0;\n\n\t\tfor(int loop = 0; loop < N; loop++){\n\n\t\t\tTARO = scanner.next();\n\t\t\tHANAKO = scanner.next();\n\n\t\t\tswitch(compString(TARO,HANAKO)){\n\t\t\tcase SAME:\n\t\t\t\tscore_TARO += 1;\n\t\t\t\tscore_HANAKO += 1;\n\t\t\t\tbreak;\n\t\t\tcase A_BIG:\n\t\t\t\tscore_TARO += 3;\n\t\t\t\tbreak;\n\t\t\tcase B_BIG:\n\t\t\t\tscore_HANAKO += 3;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.printf(\"%d %d\\n\", score_TARO,score_HANAKO);\n\t}\n\n\t//A基準で比較する関数\n\tpublic static Type compString(String A,String B){\n\t\tint a_index = 0,b_index = 0;\n\n\t\twhile(a_index < A.length() && b_index < B.length() && A.charAt(a_index) == B.charAt(b_index)){\n\t\t\ta_index++;\n\t\t\tb_index++;\n\t\t}\n\n\t\tif(a_index < A.length() && b_index < B.length()){\n\t\t\tif(A.charAt(a_index) > B.charAt(b_index)){\n\t\t\t\treturn Type.A_BIG;\n\t\t\t}else{\n\t\t\t\treturn Type.B_BIG;\n\t\t\t}\n\n\t\t}else if(a_index < A.length() && b_index == B.length()){\n\t\t\treturn Type.A_BIG;\n\t\t}else if(a_index == A.length() && b_index < B.length()){\n\t\t\treturn Type.B_BIG;\n\t\t}else{\n\t\t\treturn Type.SAME;\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; enum Type{ SAME, A_BIG, B_BIG }; public class Main { public static final int BIG_NUM = 2000000000; public static final int MOD = 1000000007; public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); String TARO,HANAKO; int score_TARO = 0,score_HANAKO = 0; for(int loop = 0; loop < N; loop++){ TARO = scanner.next(); HANAKO = scanner.next(); switch(compString(TARO,HANAKO)){ case SAME: score_TARO += 1; score_HANAKO += 1; break; case A_BIG: score_TARO += 3; break; case B_BIG: score_HANAKO += 3; break; } } System.out.printf("%d %d\n", score_TARO,score_HANAKO); } //A基準で比較する関数 public static Type compString(String A,String B){ int a_index = 0,b_index = 0; while(a_index < A.length() && b_index < B.length() && A.charAt(a_index) == B.charAt(b_index)){ a_index++; b_index++; } if(a_index < A.length() && b_index < B.length()){ if(A.charAt(a_index) > B.charAt(b_index)){ return Type.A_BIG; }else{ return Type.B_BIG; } }else if(a_index < A.length() && b_index == B.length()){ return Type.A_BIG; }else if(a_index == A.length() && b_index < B.length()){ return Type.B_BIG; }else{ return Type.SAME; } } }
[ 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, 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, 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 ]
[ [ 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 ], [ 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 ], [ 44, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 44, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 65, 70 ], [ 44, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 72, 77 ], [ 71, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 81, 82 ], [ 71, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 84, 89 ], [ 83, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 83, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 95, 100 ], [ 94, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 14, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 105, 110 ], [ 111, 111 ], [ 111, 112 ], [ 111, 113 ], [ 111, 114 ], [ 12, 115 ], [ 115, 116 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main {\n public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int t = 0, h = 0;\n int num = Integer.parseInt(br.readLine());\n\n for (int i = 0; i < num; i++) {\n String n = br.readLine();\n String taro = n.substring(0, n.indexOf(' '));\n String hanako = n.substring(n.indexOf(' ') + 1);\n\n if ((taro.compareTo (hanako)) == 0) {\n t++;\n h++;\n } else if((taro.compareTo(hanako) > 0)) {\n t += 3;\n } else if((taro.compareTo(hanako) < 0)) {\n h += 3;\n }\n }\n System.out.println(t + \" \" + h);\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 public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int t = 0, h = 0;\n int num = Integer.parseInt(br.readLine());\n\n for (int i = 0; i < num; i++) {\n String n = br.readLine();\n String taro = n.substring(0, n.indexOf(' '));\n String hanako = n.substring(n.indexOf(' ') + 1);\n\n if ((taro.compareTo (hanako)) == 0) {\n t++;\n h++;\n } else if((taro.compareTo(hanako) > 0)) {\n t += 3;\n } else if((taro.compareTo(hanako) < 0)) {\n h += 3;\n }\n }\n System.out.println(t + \" \" + h);\n }\n}", "Main", "public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int t = 0, h = 0;\n int num = Integer.parseInt(br.readLine());\n\n for (int i = 0; i < num; i++) {\n String n = br.readLine();\n String taro = n.substring(0, n.indexOf(' '));\n String hanako = n.substring(n.indexOf(' ') + 1);\n\n if ((taro.compareTo (hanako)) == 0) {\n t++;\n h++;\n } else if((taro.compareTo(hanako) > 0)) {\n t += 3;\n } else if((taro.compareTo(hanako) < 0)) {\n h += 3;\n }\n }\n System.out.println(t + \" \" + h);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int t = 0, h = 0;\n int num = Integer.parseInt(br.readLine());\n\n for (int i = 0; i < num; i++) {\n String n = br.readLine();\n String taro = n.substring(0, n.indexOf(' '));\n String hanako = n.substring(n.indexOf(' ') + 1);\n\n if ((taro.compareTo (hanako)) == 0) {\n t++;\n h++;\n } else if((taro.compareTo(hanako) > 0)) {\n t += 3;\n } else if((taro.compareTo(hanako) < 0)) {\n h += 3;\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 t = 0", "t", "0", "h = 0;", "h", "0", "int num = Integer.parseInt(br.readLine());", "num", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "for (int i = 0; i < num; i++) {\n String n = br.readLine();\n String taro = n.substring(0, n.indexOf(' '));\n String hanako = n.substring(n.indexOf(' ') + 1);\n\n if ((taro.compareTo (hanako)) == 0) {\n t++;\n h++;\n } else if((taro.compareTo(hanako) > 0)) {\n t += 3;\n } else if((taro.compareTo(hanako) < 0)) {\n h += 3;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < num", "i", "num", "i++", "i++", "i", "{\n String n = br.readLine();\n String taro = n.substring(0, n.indexOf(' '));\n String hanako = n.substring(n.indexOf(' ') + 1);\n\n if ((taro.compareTo (hanako)) == 0) {\n t++;\n h++;\n } else if((taro.compareTo(hanako) > 0)) {\n t += 3;\n } else if((taro.compareTo(hanako) < 0)) {\n h += 3;\n }\n }", "{\n String n = br.readLine();\n String taro = n.substring(0, n.indexOf(' '));\n String hanako = n.substring(n.indexOf(' ') + 1);\n\n if ((taro.compareTo (hanako)) == 0) {\n t++;\n h++;\n } else if((taro.compareTo(hanako) > 0)) {\n t += 3;\n } else if((taro.compareTo(hanako) < 0)) {\n h += 3;\n }\n }", "String n = br.readLine();", "n", "br.readLine()", "br.readLine", "br", "String taro = n.substring(0, n.indexOf(' '));", "taro", "n.substring(0, n.indexOf(' '))", "n.substring", "n", "0", "n.indexOf(' ')", "n.indexOf", "n", "' '", "String hanako = n.substring(n.indexOf(' ') + 1);", "hanako", "n.substring(n.indexOf(' ') + 1)", "n.substring", "n", "n.indexOf(' ') + 1", "n.indexOf(' ')", "n.indexOf", "n", "' '", "1", "if ((taro.compareTo (hanako)) == 0) {\n t++;\n h++;\n } else if((taro.compareTo(hanako) > 0)) {\n t += 3;\n } else if((taro.compareTo(hanako) < 0)) {\n h += 3;\n }", "(taro.compareTo (hanako)) == 0", "(taro.compareTo (hanako))", "taro.compareTo", "taro", "hanako", "0", "{\n t++;\n h++;\n }", "t++", "t", "h++", "h", "if((taro.compareTo(hanako) > 0)) {\n t += 3;\n } else if((taro.compareTo(hanako) < 0)) {\n h += 3;\n }", "(taro.compareTo(hanako) > 0)", "taro.compareTo(hanako)", "taro.compareTo", "taro", "hanako", "0", "{\n t += 3;\n }", "t += 3", "t", "3", "if((taro.compareTo(hanako) < 0)) {\n h += 3;\n }", "(taro.compareTo(hanako) < 0)", "taro.compareTo(hanako)", "taro.compareTo", "taro", "hanako", "0", "{\n h += 3;\n }", "h += 3", "h", "3", "System.out.println(t + \" \" + h)", "System.out.println", "System.out", "System", "System.out", "t + \" \" + h", "t + \" \" + h", "t", "\" \"", "h", "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)); int t = 0, h = 0; int num = Integer.parseInt(br.readLine()); for (int i = 0; i < num; i++) { String n = br.readLine(); String taro = n.substring(0, n.indexOf(' ')); String hanako = n.substring(n.indexOf(' ') + 1); if ((taro.compareTo (hanako)) == 0) { t++; h++; } else if((taro.compareTo(hanako) > 0)) { t += 3; } else if((taro.compareTo(hanako) < 0)) { h += 3; } } 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, 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 104, 5 ], [ 104, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 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 ], [ 41, 46 ], [ 38, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 54, 55 ], [ 54, 56 ], [ 48, 57 ], [ 47, 58 ], [ 58, 59 ], [ 58, 60 ], [ 47, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 68, 69 ], [ 68, 70 ], [ 62, 71 ], [ 61, 72 ], [ 72, 73 ], [ 72, 74 ], [ 61, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 82, 83 ], [ 82, 84 ], [ 76, 85 ], [ 75, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 89, 90 ], [ 8, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 97, 97 ], [ 97, 98 ], [ 97, 99 ], [ 97, 100 ], [ 6, 101 ], [ 101, 102 ], [ 0, 103 ], [ 103, 104 ], [ 103, 105 ] ]
[ "import java.io.*;\n\npublic class Main{\n\tpublic static void main(String[] arsg) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint a = 0, b = 0;\n\t\tfor(int i = 0;i<n;i++){\n\t\t\tString str[] = br.readLine().split(\" \");\n\t\t\tif(str[0].compareTo(str[1])>0) a+=3;\n\t\t\telse if(str[0].compareTo(str[1])<0) b+=3;\n\t\t\telse if(str[0].compareTo(str[1])==0){\n\t\t\ta++;\n\t\t\tb++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(a+\" \"+b);\n\t}\n}", "import java.io.*;", "io.*", "java", "public class Main{\n\tpublic static void main(String[] arsg) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint a = 0, b = 0;\n\t\tfor(int i = 0;i<n;i++){\n\t\t\tString str[] = br.readLine().split(\" \");\n\t\t\tif(str[0].compareTo(str[1])>0) a+=3;\n\t\t\telse if(str[0].compareTo(str[1])<0) b+=3;\n\t\t\telse if(str[0].compareTo(str[1])==0){\n\t\t\ta++;\n\t\t\tb++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(a+\" \"+b);\n\t}\n}", "Main", "public static void main(String[] arsg) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint a = 0, b = 0;\n\t\tfor(int i = 0;i<n;i++){\n\t\t\tString str[] = br.readLine().split(\" \");\n\t\t\tif(str[0].compareTo(str[1])>0) a+=3;\n\t\t\telse if(str[0].compareTo(str[1])<0) b+=3;\n\t\t\telse if(str[0].compareTo(str[1])==0){\n\t\t\ta++;\n\t\t\tb++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(a+\" \"+b);\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint a = 0, b = 0;\n\t\tfor(int i = 0;i<n;i++){\n\t\t\tString str[] = br.readLine().split(\" \");\n\t\t\tif(str[0].compareTo(str[1])>0) a+=3;\n\t\t\telse if(str[0].compareTo(str[1])<0) b+=3;\n\t\t\telse if(str[0].compareTo(str[1])==0){\n\t\t\ta++;\n\t\t\tb++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(a+\" \"+b);\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 a = 0", "a", "0", "b = 0;", "b", "0", "for(int i = 0;i<n;i++){\n\t\t\tString str[] = br.readLine().split(\" \");\n\t\t\tif(str[0].compareTo(str[1])>0) a+=3;\n\t\t\telse if(str[0].compareTo(str[1])<0) b+=3;\n\t\t\telse if(str[0].compareTo(str[1])==0){\n\t\t\ta++;\n\t\t\tb++;\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 str[] = br.readLine().split(\" \");\n\t\t\tif(str[0].compareTo(str[1])>0) a+=3;\n\t\t\telse if(str[0].compareTo(str[1])<0) b+=3;\n\t\t\telse if(str[0].compareTo(str[1])==0){\n\t\t\ta++;\n\t\t\tb++;\n\t\t\t}\n\t\t}", "{\n\t\t\tString str[] = br.readLine().split(\" \");\n\t\t\tif(str[0].compareTo(str[1])>0) a+=3;\n\t\t\telse if(str[0].compareTo(str[1])<0) b+=3;\n\t\t\telse if(str[0].compareTo(str[1])==0){\n\t\t\ta++;\n\t\t\tb++;\n\t\t\t}\n\t\t}", "String str[] = br.readLine().split(\" \");", "str", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "if(str[0].compareTo(str[1])>0) a+=3;\n\t\t\telse if(str[0].compareTo(str[1])<0) b+=3;\n\t\t\telse if(str[0].compareTo(str[1])==0){\n\t\t\ta++;\n\t\t\tb++;\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", "a+=3", "a", "3", "if(str[0].compareTo(str[1])<0) b+=3;\n\t\t\telse if(str[0].compareTo(str[1])==0){\n\t\t\ta++;\n\t\t\tb++;\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", "b+=3", "b", "3", "if(str[0].compareTo(str[1])==0){\n\t\t\ta++;\n\t\t\tb++;\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", "{\n\t\t\ta++;\n\t\t\tb++;\n\t\t\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[] arsg", "arsg", "public class Main{\n\tpublic static void main(String[] arsg) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint a = 0, b = 0;\n\t\tfor(int i = 0;i<n;i++){\n\t\t\tString str[] = br.readLine().split(\" \");\n\t\t\tif(str[0].compareTo(str[1])>0) a+=3;\n\t\t\telse if(str[0].compareTo(str[1])<0) b+=3;\n\t\t\telse if(str[0].compareTo(str[1])==0){\n\t\t\ta++;\n\t\t\tb++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(a+\" \"+b);\n\t}\n}", "public class Main{\n\tpublic static void main(String[] arsg) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint a = 0, b = 0;\n\t\tfor(int i = 0;i<n;i++){\n\t\t\tString str[] = br.readLine().split(\" \");\n\t\t\tif(str[0].compareTo(str[1])>0) a+=3;\n\t\t\telse if(str[0].compareTo(str[1])<0) b+=3;\n\t\t\telse if(str[0].compareTo(str[1])==0){\n\t\t\ta++;\n\t\t\tb++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(a+\" \"+b);\n\t}\n}", "Main" ]
import java.io.*; public class Main{ public static void main(String[] arsg) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); int a = 0, b = 0; for(int i = 0;i<n;i++){ String str[] = br.readLine().split(" "); if(str[0].compareTo(str[1])>0) a+=3; else if(str[0].compareTo(str[1])<0) b+=3; else if(str[0].compareTo(str[1])==0){ a++; b++; } } System.out.println(a+" "+b); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 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, 41, 13, 18, 13, 17, 41, 13, 18, 13, 17, 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, 4, 18, 4, 18, 13, 13, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 115, 11 ], [ 115, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 23, 26 ], [ 26, 27 ], [ 27, 28 ], [ 14, 29 ], [ 29, 30 ], [ 29, 31 ], [ 14, 32 ], [ 32, 33 ], [ 32, 34 ], [ 14, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 47, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 47, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 47, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 47, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 70, 75 ], [ 69, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 69, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 81, 86 ], [ 80, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 80, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 94, 95 ], [ 14, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 98, 104 ], [ 96, 105 ], [ 14, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 12, 112 ], [ 112, 113 ], [ 0, 114 ], [ 114, 115 ], [ 114, 116 ] ]
[ "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 NumberFormatException, IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n int n = Integer.parseInt(br.readLine());\n\n int taroPoint = 0;\n int hanakoPoint = 0;\n\n for(int i = 0; i < n; i++){\n\n String input = br.readLine();\n String[] card = input.split(\" \");\n\n String taro = card[0];\n String hanako = card[1];\n\n if(taro.compareTo(hanako) > 0){\n taroPoint += 3;\n }else if(taro.compareTo(hanako) < 0){\n hanakoPoint += 3;\n }else{\n taroPoint++;\n hanakoPoint++;\n }\n }\n sb.append(taroPoint).append(\" \").append(hanakoPoint);\n System.out.println(sb);\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 NumberFormatException, IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n int n = Integer.parseInt(br.readLine());\n\n int taroPoint = 0;\n int hanakoPoint = 0;\n\n for(int i = 0; i < n; i++){\n\n String input = br.readLine();\n String[] card = input.split(\" \");\n\n String taro = card[0];\n String hanako = card[1];\n\n if(taro.compareTo(hanako) > 0){\n taroPoint += 3;\n }else if(taro.compareTo(hanako) < 0){\n hanakoPoint += 3;\n }else{\n taroPoint++;\n hanakoPoint++;\n }\n }\n sb.append(taroPoint).append(\" \").append(hanakoPoint);\n System.out.println(sb);\n }\n}", "Main", "public static void main(String[] args) throws NumberFormatException, IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n int n = Integer.parseInt(br.readLine());\n\n int taroPoint = 0;\n int hanakoPoint = 0;\n\n for(int i = 0; i < n; i++){\n\n String input = br.readLine();\n String[] card = input.split(\" \");\n\n String taro = card[0];\n String hanako = card[1];\n\n if(taro.compareTo(hanako) > 0){\n taroPoint += 3;\n }else if(taro.compareTo(hanako) < 0){\n hanakoPoint += 3;\n }else{\n taroPoint++;\n hanakoPoint++;\n }\n }\n sb.append(taroPoint).append(\" \").append(hanakoPoint);\n System.out.println(sb);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n int n = Integer.parseInt(br.readLine());\n\n int taroPoint = 0;\n int hanakoPoint = 0;\n\n for(int i = 0; i < n; i++){\n\n String input = br.readLine();\n String[] card = input.split(\" \");\n\n String taro = card[0];\n String hanako = card[1];\n\n if(taro.compareTo(hanako) > 0){\n taroPoint += 3;\n }else if(taro.compareTo(hanako) < 0){\n hanakoPoint += 3;\n }else{\n taroPoint++;\n hanakoPoint++;\n }\n }\n sb.append(taroPoint).append(\" \").append(hanakoPoint);\n System.out.println(sb);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int taroPoint = 0;", "taroPoint", "0", "int hanakoPoint = 0;", "hanakoPoint", "0", "for(int i = 0; i < n; i++){\n\n String input = br.readLine();\n String[] card = input.split(\" \");\n\n String taro = card[0];\n String hanako = card[1];\n\n if(taro.compareTo(hanako) > 0){\n taroPoint += 3;\n }else if(taro.compareTo(hanako) < 0){\n hanakoPoint += 3;\n }else{\n taroPoint++;\n hanakoPoint++;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\n String input = br.readLine();\n String[] card = input.split(\" \");\n\n String taro = card[0];\n String hanako = card[1];\n\n if(taro.compareTo(hanako) > 0){\n taroPoint += 3;\n }else if(taro.compareTo(hanako) < 0){\n hanakoPoint += 3;\n }else{\n taroPoint++;\n hanakoPoint++;\n }\n }", "{\n\n String input = br.readLine();\n String[] card = input.split(\" \");\n\n String taro = card[0];\n String hanako = card[1];\n\n if(taro.compareTo(hanako) > 0){\n taroPoint += 3;\n }else if(taro.compareTo(hanako) < 0){\n hanakoPoint += 3;\n }else{\n taroPoint++;\n hanakoPoint++;\n }\n }", "String input = br.readLine();", "input", "br.readLine()", "br.readLine", "br", "String[] card = input.split(\" \");", "card", "input.split(\" \")", "input.split", "input", "\" \"", "String taro = card[0];", "taro", "card[0]", "card", "0", "String hanako = card[1];", "hanako", "card[1]", "card", "1", "if(taro.compareTo(hanako) > 0){\n taroPoint += 3;\n }else if(taro.compareTo(hanako) < 0){\n hanakoPoint += 3;\n }else{\n taroPoint++;\n hanakoPoint++;\n }", "taro.compareTo(hanako) > 0", "taro.compareTo(hanako)", "taro.compareTo", "taro", "hanako", "0", "{\n taroPoint += 3;\n }", "taroPoint += 3", "taroPoint", "3", "if(taro.compareTo(hanako) < 0){\n hanakoPoint += 3;\n }else{\n taroPoint++;\n hanakoPoint++;\n }", "taro.compareTo(hanako) < 0", "taro.compareTo(hanako)", "taro.compareTo", "taro", "hanako", "0", "{\n hanakoPoint += 3;\n }", "hanakoPoint += 3", "hanakoPoint", "3", "{\n taroPoint++;\n hanakoPoint++;\n }", "taroPoint++", "taroPoint", "hanakoPoint++", "hanakoPoint", "sb.append(taroPoint).append(\" \").append(hanakoPoint)", "sb.append(taroPoint).append(\" \").append", "sb.append(taroPoint).append(\" \")", "sb.append(taroPoint).append", "sb.append(taroPoint)", "sb.append", "sb", "taroPoint", "\" \"", "hanakoPoint", "System.out.println(sb)", "System.out.println", "System.out", "System", "System.out", "sb", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) throws NumberFormatException, IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n int n = Integer.parseInt(br.readLine());\n\n int taroPoint = 0;\n int hanakoPoint = 0;\n\n for(int i = 0; i < n; i++){\n\n String input = br.readLine();\n String[] card = input.split(\" \");\n\n String taro = card[0];\n String hanako = card[1];\n\n if(taro.compareTo(hanako) > 0){\n taroPoint += 3;\n }else if(taro.compareTo(hanako) < 0){\n hanakoPoint += 3;\n }else{\n taroPoint++;\n hanakoPoint++;\n }\n }\n sb.append(taroPoint).append(\" \").append(hanakoPoint);\n System.out.println(sb);\n }\n}", "public class Main {\n\n public static void main(String[] args) throws NumberFormatException, IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n int n = Integer.parseInt(br.readLine());\n\n int taroPoint = 0;\n int hanakoPoint = 0;\n\n for(int i = 0; i < n; i++){\n\n String input = br.readLine();\n String[] card = input.split(\" \");\n\n String taro = card[0];\n String hanako = card[1];\n\n if(taro.compareTo(hanako) > 0){\n taroPoint += 3;\n }else if(taro.compareTo(hanako) < 0){\n hanakoPoint += 3;\n }else{\n taroPoint++;\n hanakoPoint++;\n }\n }\n sb.append(taroPoint).append(\" \").append(hanakoPoint);\n System.out.println(sb);\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); int n = Integer.parseInt(br.readLine()); int taroPoint = 0; int hanakoPoint = 0; for(int i = 0; i < n; i++){ String input = br.readLine(); String[] card = input.split(" "); String taro = card[0]; String hanako = card[1]; if(taro.compareTo(hanako) > 0){ taroPoint += 3; }else if(taro.compareTo(hanako) < 0){ hanakoPoint += 3; }else{ taroPoint++; hanakoPoint++; } } sb.append(taroPoint).append(" ").append(hanakoPoint); System.out.println(sb); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 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, 14, 2, 4, 18, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 4, 18, 13, 4, 18, 13, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 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, 4, 18, 13, 4, 18, 13, 30, 0, 13, 17, 0, 13, 17, 14, 2, 4, 18, 13, 4, 18, 13, 0, 13, 17, 14, 2, 4, 18, 13, 4, 18, 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 ], [ 192, 8 ], [ 192, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 23, 24 ], [ 24, 25 ], [ 11, 26 ], [ 26, 27 ], [ 26, 28 ], [ 11, 29 ], [ 29, 30 ], [ 29, 31 ], [ 11, 32 ], [ 32, 33 ], [ 32, 34 ], [ 11, 35 ], [ 35, 36 ], [ 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 ], [ 58, 60 ], [ 47, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 47, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 67, 71 ], [ 71, 72 ], [ 72, 73 ], [ 66, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 66, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 80, 84 ], [ 84, 85 ], [ 85, 86 ], [ 79, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 90, 91 ], [ 47, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 97, 98 ], [ 97, 99 ], [ 92, 100 ], [ 100, 101 ], [ 101, 102 ], [ 92, 103 ], [ 104, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 106, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 105, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 105, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 122, 125 ], [ 121, 126 ], [ 126, 127 ], [ 127, 128 ], [ 126, 129 ], [ 120, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 130, 134 ], [ 104, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 138, 139 ], [ 138, 140 ], [ 135, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 143, 147 ], [ 147, 148 ], [ 148, 149 ], [ 142, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 150, 154 ], [ 154, 155 ], [ 154, 156 ], [ 142, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 158, 162 ], [ 162, 163 ], [ 163, 164 ], [ 157, 165 ], [ 165, 166 ], [ 165, 167 ], [ 157, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 169, 173 ], [ 173, 174 ], [ 174, 175 ], [ 168, 176 ], [ 176, 177 ], [ 176, 178 ], [ 11, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 179, 184 ], [ 185, 185 ], [ 185, 186 ], [ 185, 187 ], [ 185, 188 ], [ 9, 189 ], [ 189, 190 ], [ 0, 191 ], [ 191, 192 ], [ 191, 193 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args)throws Exception{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n \n \tint kaisu = Integer.parseInt( br.readLine());\n \tint tpoint = 0;\n \tint hpoint = 0;\n \tint kurikaesi = 0;\n \tfor (int i = 0; i < kaisu; i++)\n \t{\n \t\tString[] card = br.readLine().split(\" \");\n \t\tString taro = card[0];\n \t\tString hanako = card[1];\n \t\t\n \t\tif (taro.length() <= hanako.length())\n \t\t\tkurikaesi = taro.length();\n \t\telse if (taro.length() > hanako.length())\n \t\t\tkurikaesi = hanako.length();\n \t\t\n \t\tfor (int j = 0; j < kurikaesi; j++)\n \t\t{\n \t\t\tif (taro.charAt(j) > hanako.charAt(j))\n \t\t\t{\n \t\t\t\ttpoint += 3;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\telse if (taro.charAt(j) < hanako.charAt(j))\n \t\t\t{\n \t\t\t\thpoint += 3;\n\t\t\t\t\tbreak;\n \t\t\t}\n \t\t\tif (j == kurikaesi - 1)\n \t\t\t{\n \t\t\t\tif (taro.length() == hanako.length())\n \t\t\t\t{\n \t\t\t\t\ttpoint += 1;\n \t\t\t\t\thpoint += 1;\n \t\t\t\t}\n \t\t\t\telse if (taro.length() < hanako.length())\n \t\t\t\t\thpoint += 3;\n \t\t\t\telse if (taro.length() > hanako.length())\n \t\t\t\t\ttpoint += 3;\n \t\t\t}\n \t\t}\n \t}\n\t\tSystem.out.println(tpoint + \" \" + hpoint);\t\n\t}\n\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)throws Exception{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n \n \tint kaisu = Integer.parseInt( br.readLine());\n \tint tpoint = 0;\n \tint hpoint = 0;\n \tint kurikaesi = 0;\n \tfor (int i = 0; i < kaisu; i++)\n \t{\n \t\tString[] card = br.readLine().split(\" \");\n \t\tString taro = card[0];\n \t\tString hanako = card[1];\n \t\t\n \t\tif (taro.length() <= hanako.length())\n \t\t\tkurikaesi = taro.length();\n \t\telse if (taro.length() > hanako.length())\n \t\t\tkurikaesi = hanako.length();\n \t\t\n \t\tfor (int j = 0; j < kurikaesi; j++)\n \t\t{\n \t\t\tif (taro.charAt(j) > hanako.charAt(j))\n \t\t\t{\n \t\t\t\ttpoint += 3;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\telse if (taro.charAt(j) < hanako.charAt(j))\n \t\t\t{\n \t\t\t\thpoint += 3;\n\t\t\t\t\tbreak;\n \t\t\t}\n \t\t\tif (j == kurikaesi - 1)\n \t\t\t{\n \t\t\t\tif (taro.length() == hanako.length())\n \t\t\t\t{\n \t\t\t\t\ttpoint += 1;\n \t\t\t\t\thpoint += 1;\n \t\t\t\t}\n \t\t\t\telse if (taro.length() < hanako.length())\n \t\t\t\t\thpoint += 3;\n \t\t\t\telse if (taro.length() > hanako.length())\n \t\t\t\t\ttpoint += 3;\n \t\t\t}\n \t\t}\n \t}\n\t\tSystem.out.println(tpoint + \" \" + hpoint);\t\n\t}\n\n}", "Main", "public static void main(String[] args)throws Exception{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n \n \tint kaisu = Integer.parseInt( br.readLine());\n \tint tpoint = 0;\n \tint hpoint = 0;\n \tint kurikaesi = 0;\n \tfor (int i = 0; i < kaisu; i++)\n \t{\n \t\tString[] card = br.readLine().split(\" \");\n \t\tString taro = card[0];\n \t\tString hanako = card[1];\n \t\t\n \t\tif (taro.length() <= hanako.length())\n \t\t\tkurikaesi = taro.length();\n \t\telse if (taro.length() > hanako.length())\n \t\t\tkurikaesi = hanako.length();\n \t\t\n \t\tfor (int j = 0; j < kurikaesi; j++)\n \t\t{\n \t\t\tif (taro.charAt(j) > hanako.charAt(j))\n \t\t\t{\n \t\t\t\ttpoint += 3;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\telse if (taro.charAt(j) < hanako.charAt(j))\n \t\t\t{\n \t\t\t\thpoint += 3;\n\t\t\t\t\tbreak;\n \t\t\t}\n \t\t\tif (j == kurikaesi - 1)\n \t\t\t{\n \t\t\t\tif (taro.length() == hanako.length())\n \t\t\t\t{\n \t\t\t\t\ttpoint += 1;\n \t\t\t\t\thpoint += 1;\n \t\t\t\t}\n \t\t\t\telse if (taro.length() < hanako.length())\n \t\t\t\t\thpoint += 3;\n \t\t\t\telse if (taro.length() > hanako.length())\n \t\t\t\t\ttpoint += 3;\n \t\t\t}\n \t\t}\n \t}\n\t\tSystem.out.println(tpoint + \" \" + hpoint);\t\n\t}", "main", "{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n \n \tint kaisu = Integer.parseInt( br.readLine());\n \tint tpoint = 0;\n \tint hpoint = 0;\n \tint kurikaesi = 0;\n \tfor (int i = 0; i < kaisu; i++)\n \t{\n \t\tString[] card = br.readLine().split(\" \");\n \t\tString taro = card[0];\n \t\tString hanako = card[1];\n \t\t\n \t\tif (taro.length() <= hanako.length())\n \t\t\tkurikaesi = taro.length();\n \t\telse if (taro.length() > hanako.length())\n \t\t\tkurikaesi = hanako.length();\n \t\t\n \t\tfor (int j = 0; j < kurikaesi; j++)\n \t\t{\n \t\t\tif (taro.charAt(j) > hanako.charAt(j))\n \t\t\t{\n \t\t\t\ttpoint += 3;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\telse if (taro.charAt(j) < hanako.charAt(j))\n \t\t\t{\n \t\t\t\thpoint += 3;\n\t\t\t\t\tbreak;\n \t\t\t}\n \t\t\tif (j == kurikaesi - 1)\n \t\t\t{\n \t\t\t\tif (taro.length() == hanako.length())\n \t\t\t\t{\n \t\t\t\t\ttpoint += 1;\n \t\t\t\t\thpoint += 1;\n \t\t\t\t}\n \t\t\t\telse if (taro.length() < hanako.length())\n \t\t\t\t\thpoint += 3;\n \t\t\t\telse if (taro.length() > hanako.length())\n \t\t\t\t\ttpoint += 3;\n \t\t\t}\n \t\t}\n \t}\n\t\tSystem.out.println(tpoint + \" \" + hpoint);\t\n\t}", "InputStreamReader isr = new InputStreamReader(System.in);", "isr", "new InputStreamReader(System.in)", "BufferedReader br = new BufferedReader(isr);", "br", "new BufferedReader(isr)", "int kaisu = Integer.parseInt( br.readLine());", "kaisu", "Integer.parseInt( br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int tpoint = 0;", "tpoint", "0", "int hpoint = 0;", "hpoint", "0", "int kurikaesi = 0;", "kurikaesi", "0", "for (int i = 0; i < kaisu; i++)\n \t{\n \t\tString[] card = br.readLine().split(\" \");\n \t\tString taro = card[0];\n \t\tString hanako = card[1];\n \t\t\n \t\tif (taro.length() <= hanako.length())\n \t\t\tkurikaesi = taro.length();\n \t\telse if (taro.length() > hanako.length())\n \t\t\tkurikaesi = hanako.length();\n \t\t\n \t\tfor (int j = 0; j < kurikaesi; j++)\n \t\t{\n \t\t\tif (taro.charAt(j) > hanako.charAt(j))\n \t\t\t{\n \t\t\t\ttpoint += 3;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\telse if (taro.charAt(j) < hanako.charAt(j))\n \t\t\t{\n \t\t\t\thpoint += 3;\n\t\t\t\t\tbreak;\n \t\t\t}\n \t\t\tif (j == kurikaesi - 1)\n \t\t\t{\n \t\t\t\tif (taro.length() == hanako.length())\n \t\t\t\t{\n \t\t\t\t\ttpoint += 1;\n \t\t\t\t\thpoint += 1;\n \t\t\t\t}\n \t\t\t\telse if (taro.length() < hanako.length())\n \t\t\t\t\thpoint += 3;\n \t\t\t\telse if (taro.length() > hanako.length())\n \t\t\t\t\ttpoint += 3;\n \t\t\t}\n \t\t}\n \t}", "int i = 0;", "int i = 0;", "i", "0", "i < kaisu", "i", "kaisu", "i++", "i++", "i", "{\n \t\tString[] card = br.readLine().split(\" \");\n \t\tString taro = card[0];\n \t\tString hanako = card[1];\n \t\t\n \t\tif (taro.length() <= hanako.length())\n \t\t\tkurikaesi = taro.length();\n \t\telse if (taro.length() > hanako.length())\n \t\t\tkurikaesi = hanako.length();\n \t\t\n \t\tfor (int j = 0; j < kurikaesi; j++)\n \t\t{\n \t\t\tif (taro.charAt(j) > hanako.charAt(j))\n \t\t\t{\n \t\t\t\ttpoint += 3;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\telse if (taro.charAt(j) < hanako.charAt(j))\n \t\t\t{\n \t\t\t\thpoint += 3;\n\t\t\t\t\tbreak;\n \t\t\t}\n \t\t\tif (j == kurikaesi - 1)\n \t\t\t{\n \t\t\t\tif (taro.length() == hanako.length())\n \t\t\t\t{\n \t\t\t\t\ttpoint += 1;\n \t\t\t\t\thpoint += 1;\n \t\t\t\t}\n \t\t\t\telse if (taro.length() < hanako.length())\n \t\t\t\t\thpoint += 3;\n \t\t\t\telse if (taro.length() > hanako.length())\n \t\t\t\t\ttpoint += 3;\n \t\t\t}\n \t\t}\n \t}", "{\n \t\tString[] card = br.readLine().split(\" \");\n \t\tString taro = card[0];\n \t\tString hanako = card[1];\n \t\t\n \t\tif (taro.length() <= hanako.length())\n \t\t\tkurikaesi = taro.length();\n \t\telse if (taro.length() > hanako.length())\n \t\t\tkurikaesi = hanako.length();\n \t\t\n \t\tfor (int j = 0; j < kurikaesi; j++)\n \t\t{\n \t\t\tif (taro.charAt(j) > hanako.charAt(j))\n \t\t\t{\n \t\t\t\ttpoint += 3;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\telse if (taro.charAt(j) < hanako.charAt(j))\n \t\t\t{\n \t\t\t\thpoint += 3;\n\t\t\t\t\tbreak;\n \t\t\t}\n \t\t\tif (j == kurikaesi - 1)\n \t\t\t{\n \t\t\t\tif (taro.length() == hanako.length())\n \t\t\t\t{\n \t\t\t\t\ttpoint += 1;\n \t\t\t\t\thpoint += 1;\n \t\t\t\t}\n \t\t\t\telse if (taro.length() < hanako.length())\n \t\t\t\t\thpoint += 3;\n \t\t\t\telse if (taro.length() > hanako.length())\n \t\t\t\t\ttpoint += 3;\n \t\t\t}\n \t\t}\n \t}", "String[] card = br.readLine().split(\" \");", "card", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "String taro = card[0];", "taro", "card[0]", "card", "0", "String hanako = card[1];", "hanako", "card[1]", "card", "1", "if (taro.length() <= hanako.length())\n \t\t\tkurikaesi = taro.length();\n \t\telse if (taro.length() > hanako.length())\n \t\t\tkurikaesi = hanako.length();", "taro.length() <= hanako.length()", "taro.length()", "taro.length", "taro", "hanako.length()", "hanako.length", "hanako", "kurikaesi = taro.length()", "kurikaesi", "taro.length()", "taro.length", "taro", "if (taro.length() > hanako.length())\n \t\t\tkurikaesi = hanako.length();", "taro.length() > hanako.length()", "taro.length()", "taro.length", "taro", "hanako.length()", "hanako.length", "hanako", "kurikaesi = hanako.length()", "kurikaesi", "hanako.length()", "hanako.length", "hanako", "for (int j = 0; j < kurikaesi; j++)\n \t\t{\n \t\t\tif (taro.charAt(j) > hanako.charAt(j))\n \t\t\t{\n \t\t\t\ttpoint += 3;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\telse if (taro.charAt(j) < hanako.charAt(j))\n \t\t\t{\n \t\t\t\thpoint += 3;\n\t\t\t\t\tbreak;\n \t\t\t}\n \t\t\tif (j == kurikaesi - 1)\n \t\t\t{\n \t\t\t\tif (taro.length() == hanako.length())\n \t\t\t\t{\n \t\t\t\t\ttpoint += 1;\n \t\t\t\t\thpoint += 1;\n \t\t\t\t}\n \t\t\t\telse if (taro.length() < hanako.length())\n \t\t\t\t\thpoint += 3;\n \t\t\t\telse if (taro.length() > hanako.length())\n \t\t\t\t\ttpoint += 3;\n \t\t\t}\n \t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < kurikaesi", "j", "kurikaesi", "j++", "j++", "j", "{\n \t\t\tif (taro.charAt(j) > hanako.charAt(j))\n \t\t\t{\n \t\t\t\ttpoint += 3;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\telse if (taro.charAt(j) < hanako.charAt(j))\n \t\t\t{\n \t\t\t\thpoint += 3;\n\t\t\t\t\tbreak;\n \t\t\t}\n \t\t\tif (j == kurikaesi - 1)\n \t\t\t{\n \t\t\t\tif (taro.length() == hanako.length())\n \t\t\t\t{\n \t\t\t\t\ttpoint += 1;\n \t\t\t\t\thpoint += 1;\n \t\t\t\t}\n \t\t\t\telse if (taro.length() < hanako.length())\n \t\t\t\t\thpoint += 3;\n \t\t\t\telse if (taro.length() > hanako.length())\n \t\t\t\t\ttpoint += 3;\n \t\t\t}\n \t\t}", "{\n \t\t\tif (taro.charAt(j) > hanako.charAt(j))\n \t\t\t{\n \t\t\t\ttpoint += 3;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\telse if (taro.charAt(j) < hanako.charAt(j))\n \t\t\t{\n \t\t\t\thpoint += 3;\n\t\t\t\t\tbreak;\n \t\t\t}\n \t\t\tif (j == kurikaesi - 1)\n \t\t\t{\n \t\t\t\tif (taro.length() == hanako.length())\n \t\t\t\t{\n \t\t\t\t\ttpoint += 1;\n \t\t\t\t\thpoint += 1;\n \t\t\t\t}\n \t\t\t\telse if (taro.length() < hanako.length())\n \t\t\t\t\thpoint += 3;\n \t\t\t\telse if (taro.length() > hanako.length())\n \t\t\t\t\ttpoint += 3;\n \t\t\t}\n \t\t}", "if (taro.charAt(j) > hanako.charAt(j))\n \t\t\t{\n \t\t\t\ttpoint += 3;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\telse if (taro.charAt(j) < hanako.charAt(j))\n \t\t\t{\n \t\t\t\thpoint += 3;\n\t\t\t\t\tbreak;\n \t\t\t}", "taro.charAt(j) > hanako.charAt(j)", "taro.charAt(j)", "taro.charAt", "taro", "j", "hanako.charAt(j)", "hanako.charAt", "hanako", "j", "{\n \t\t\t\ttpoint += 3;\n \t\t\t\tbreak;\n \t\t\t}", "tpoint += 3", "tpoint", "3", "break;", "if (taro.charAt(j) < hanako.charAt(j))\n \t\t\t{\n \t\t\t\thpoint += 3;\n\t\t\t\t\tbreak;\n \t\t\t}", "taro.charAt(j) < hanako.charAt(j)", "taro.charAt(j)", "taro.charAt", "taro", "j", "hanako.charAt(j)", "hanako.charAt", "hanako", "j", "{\n \t\t\t\thpoint += 3;\n\t\t\t\t\tbreak;\n \t\t\t}", "hpoint += 3", "hpoint", "3", "break;", "if (j == kurikaesi - 1)\n \t\t\t{\n \t\t\t\tif (taro.length() == hanako.length())\n \t\t\t\t{\n \t\t\t\t\ttpoint += 1;\n \t\t\t\t\thpoint += 1;\n \t\t\t\t}\n \t\t\t\telse if (taro.length() < hanako.length())\n \t\t\t\t\thpoint += 3;\n \t\t\t\telse if (taro.length() > hanako.length())\n \t\t\t\t\ttpoint += 3;\n \t\t\t}", "j == kurikaesi - 1", "j", "kurikaesi - 1", "kurikaesi", "1", "{\n \t\t\t\tif (taro.length() == hanako.length())\n \t\t\t\t{\n \t\t\t\t\ttpoint += 1;\n \t\t\t\t\thpoint += 1;\n \t\t\t\t}\n \t\t\t\telse if (taro.length() < hanako.length())\n \t\t\t\t\thpoint += 3;\n \t\t\t\telse if (taro.length() > hanako.length())\n \t\t\t\t\ttpoint += 3;\n \t\t\t}", "if (taro.length() == hanako.length())\n \t\t\t\t{\n \t\t\t\t\ttpoint += 1;\n \t\t\t\t\thpoint += 1;\n \t\t\t\t}\n \t\t\t\telse if (taro.length() < hanako.length())\n \t\t\t\t\thpoint += 3;\n \t\t\t\telse if (taro.length() > hanako.length())\n \t\t\t\t\ttpoint += 3;", "taro.length() == hanako.length()", "taro.length()", "taro.length", "taro", "hanako.length()", "hanako.length", "hanako", "{\n \t\t\t\t\ttpoint += 1;\n \t\t\t\t\thpoint += 1;\n \t\t\t\t}", "tpoint += 1", "tpoint", "1", "hpoint += 1", "hpoint", "1", "if (taro.length() < hanako.length())\n \t\t\t\t\thpoint += 3;\n \t\t\t\telse if (taro.length() > hanako.length())\n \t\t\t\t\ttpoint += 3;", "taro.length() < hanako.length()", "taro.length()", "taro.length", "taro", "hanako.length()", "hanako.length", "hanako", "hpoint += 3", "hpoint", "3", "if (taro.length() > hanako.length())\n \t\t\t\t\ttpoint += 3;", "taro.length() > hanako.length()", "taro.length()", "taro.length", "taro", "hanako.length()", "hanako.length", "hanako", "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\tpublic static void main(String[] args)throws Exception{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n \n \tint kaisu = Integer.parseInt( br.readLine());\n \tint tpoint = 0;\n \tint hpoint = 0;\n \tint kurikaesi = 0;\n \tfor (int i = 0; i < kaisu; i++)\n \t{\n \t\tString[] card = br.readLine().split(\" \");\n \t\tString taro = card[0];\n \t\tString hanako = card[1];\n \t\t\n \t\tif (taro.length() <= hanako.length())\n \t\t\tkurikaesi = taro.length();\n \t\telse if (taro.length() > hanako.length())\n \t\t\tkurikaesi = hanako.length();\n \t\t\n \t\tfor (int j = 0; j < kurikaesi; j++)\n \t\t{\n \t\t\tif (taro.charAt(j) > hanako.charAt(j))\n \t\t\t{\n \t\t\t\ttpoint += 3;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\telse if (taro.charAt(j) < hanako.charAt(j))\n \t\t\t{\n \t\t\t\thpoint += 3;\n\t\t\t\t\tbreak;\n \t\t\t}\n \t\t\tif (j == kurikaesi - 1)\n \t\t\t{\n \t\t\t\tif (taro.length() == hanako.length())\n \t\t\t\t{\n \t\t\t\t\ttpoint += 1;\n \t\t\t\t\thpoint += 1;\n \t\t\t\t}\n \t\t\t\telse if (taro.length() < hanako.length())\n \t\t\t\t\thpoint += 3;\n \t\t\t\telse if (taro.length() > hanako.length())\n \t\t\t\t\ttpoint += 3;\n \t\t\t}\n \t\t}\n \t}\n\t\tSystem.out.println(tpoint + \" \" + hpoint);\t\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args)throws Exception{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n \n \tint kaisu = Integer.parseInt( br.readLine());\n \tint tpoint = 0;\n \tint hpoint = 0;\n \tint kurikaesi = 0;\n \tfor (int i = 0; i < kaisu; i++)\n \t{\n \t\tString[] card = br.readLine().split(\" \");\n \t\tString taro = card[0];\n \t\tString hanako = card[1];\n \t\t\n \t\tif (taro.length() <= hanako.length())\n \t\t\tkurikaesi = taro.length();\n \t\telse if (taro.length() > hanako.length())\n \t\t\tkurikaesi = hanako.length();\n \t\t\n \t\tfor (int j = 0; j < kurikaesi; j++)\n \t\t{\n \t\t\tif (taro.charAt(j) > hanako.charAt(j))\n \t\t\t{\n \t\t\t\ttpoint += 3;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\telse if (taro.charAt(j) < hanako.charAt(j))\n \t\t\t{\n \t\t\t\thpoint += 3;\n\t\t\t\t\tbreak;\n \t\t\t}\n \t\t\tif (j == kurikaesi - 1)\n \t\t\t{\n \t\t\t\tif (taro.length() == hanako.length())\n \t\t\t\t{\n \t\t\t\t\ttpoint += 1;\n \t\t\t\t\thpoint += 1;\n \t\t\t\t}\n \t\t\t\telse if (taro.length() < hanako.length())\n \t\t\t\t\thpoint += 3;\n \t\t\t\telse if (taro.length() > hanako.length())\n \t\t\t\t\ttpoint += 3;\n \t\t\t}\n \t\t}\n \t}\n\t\tSystem.out.println(tpoint + \" \" + hpoint);\t\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args)throws Exception{ InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); int kaisu = Integer.parseInt( br.readLine()); int tpoint = 0; int hpoint = 0; int kurikaesi = 0; for (int i = 0; i < kaisu; i++) { String[] card = br.readLine().split(" "); String taro = card[0]; String hanako = card[1]; if (taro.length() <= hanako.length()) kurikaesi = taro.length(); else if (taro.length() > hanako.length()) kurikaesi = hanako.length(); for (int j = 0; j < kurikaesi; j++) { if (taro.charAt(j) > hanako.charAt(j)) { tpoint += 3; break; } else if (taro.charAt(j) < hanako.charAt(j)) { hpoint += 3; break; } if (j == kurikaesi - 1) { if (taro.length() == hanako.length()) { tpoint += 1; hpoint += 1; } else if (taro.length() < hanako.length()) hpoint += 3; else if (taro.length() > hanako.length()) 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, 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, 14, 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 ], [ 100, 5 ], [ 100, 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 ], [ 59, 60 ], [ 59, 61 ], [ 52, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 62, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 79, 81 ], [ 76, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 8, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 93, 93 ], [ 93, 94 ], [ 93, 95 ], [ 93, 96 ], [ 6, 97 ], [ 97, 98 ], [ 0, 99 ], [ 99, 100 ], [ 99, 101 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tint count = scn.nextInt();\n\t\tint taroScore = 0;\n\t\tint hanakoScore = 0;\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tString taroData = scn.next();\n\t\t\tString hanakoData = scn.next();\n\t\t\tint result = taroData.compareTo(hanakoData);\n\t\t\tif (result > 0) {\n\t\t\t\ttaroScore = taroScore + 3;\n\t\t\t} else if (result < 0) {\n\t\t\t\thanakoScore = hanakoScore + 3;\n\t\t\t} else if (result == 0) {\n\t\t\t\ttaroScore = taroScore + 1;\n\t\t\t\thanakoScore = hanakoScore + 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroScore + \" \" + hanakoScore);\n\t}\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tint count = scn.nextInt();\n\t\tint taroScore = 0;\n\t\tint hanakoScore = 0;\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tString taroData = scn.next();\n\t\t\tString hanakoData = scn.next();\n\t\t\tint result = taroData.compareTo(hanakoData);\n\t\t\tif (result > 0) {\n\t\t\t\ttaroScore = taroScore + 3;\n\t\t\t} else if (result < 0) {\n\t\t\t\thanakoScore = hanakoScore + 3;\n\t\t\t} else if (result == 0) {\n\t\t\t\ttaroScore = taroScore + 1;\n\t\t\t\thanakoScore = hanakoScore + 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) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tint count = scn.nextInt();\n\t\tint taroScore = 0;\n\t\tint hanakoScore = 0;\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tString taroData = scn.next();\n\t\t\tString hanakoData = scn.next();\n\t\t\tint result = taroData.compareTo(hanakoData);\n\t\t\tif (result > 0) {\n\t\t\t\ttaroScore = taroScore + 3;\n\t\t\t} else if (result < 0) {\n\t\t\t\thanakoScore = hanakoScore + 3;\n\t\t\t} else if (result == 0) {\n\t\t\t\ttaroScore = taroScore + 1;\n\t\t\t\thanakoScore = hanakoScore + 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroScore + \" \" + hanakoScore);\n\t}", "main", "{\n\t\tScanner scn = new Scanner(System.in);\n\t\tint count = scn.nextInt();\n\t\tint taroScore = 0;\n\t\tint hanakoScore = 0;\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tString taroData = scn.next();\n\t\t\tString hanakoData = scn.next();\n\t\t\tint result = taroData.compareTo(hanakoData);\n\t\t\tif (result > 0) {\n\t\t\t\ttaroScore = taroScore + 3;\n\t\t\t} else if (result < 0) {\n\t\t\t\thanakoScore = hanakoScore + 3;\n\t\t\t} else if (result == 0) {\n\t\t\t\ttaroScore = taroScore + 1;\n\t\t\t\thanakoScore = hanakoScore + 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroScore + \" \" + hanakoScore);\n\t}", "Scanner scn = new Scanner(System.in);", "scn", "new Scanner(System.in)", "int count = scn.nextInt();", "count", "scn.nextInt()", "scn.nextInt", "scn", "int taroScore = 0;", "taroScore", "0", "int hanakoScore = 0;", "hanakoScore", "0", "for (int i = 0; i < count; i++) {\n\t\t\tString taroData = scn.next();\n\t\t\tString hanakoData = scn.next();\n\t\t\tint result = taroData.compareTo(hanakoData);\n\t\t\tif (result > 0) {\n\t\t\t\ttaroScore = taroScore + 3;\n\t\t\t} else if (result < 0) {\n\t\t\t\thanakoScore = hanakoScore + 3;\n\t\t\t} else if (result == 0) {\n\t\t\t\ttaroScore = taroScore + 1;\n\t\t\t\thanakoScore = hanakoScore + 1;\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\tString taroData = scn.next();\n\t\t\tString hanakoData = scn.next();\n\t\t\tint result = taroData.compareTo(hanakoData);\n\t\t\tif (result > 0) {\n\t\t\t\ttaroScore = taroScore + 3;\n\t\t\t} else if (result < 0) {\n\t\t\t\thanakoScore = hanakoScore + 3;\n\t\t\t} else if (result == 0) {\n\t\t\t\ttaroScore = taroScore + 1;\n\t\t\t\thanakoScore = hanakoScore + 1;\n\t\t\t}\n\t\t}", "{\n\t\t\tString taroData = scn.next();\n\t\t\tString hanakoData = scn.next();\n\t\t\tint result = taroData.compareTo(hanakoData);\n\t\t\tif (result > 0) {\n\t\t\t\ttaroScore = taroScore + 3;\n\t\t\t} else if (result < 0) {\n\t\t\t\thanakoScore = hanakoScore + 3;\n\t\t\t} else if (result == 0) {\n\t\t\t\ttaroScore = taroScore + 1;\n\t\t\t\thanakoScore = hanakoScore + 1;\n\t\t\t}\n\t\t}", "String taroData = scn.next();", "taroData", "scn.next()", "scn.next", "scn", "String hanakoData = scn.next();", "hanakoData", "scn.next()", "scn.next", "scn", "int result = taroData.compareTo(hanakoData);", "result", "taroData.compareTo(hanakoData)", "taroData.compareTo", "taroData", "hanakoData", "if (result > 0) {\n\t\t\t\ttaroScore = taroScore + 3;\n\t\t\t} else if (result < 0) {\n\t\t\t\thanakoScore = hanakoScore + 3;\n\t\t\t} else if (result == 0) {\n\t\t\t\ttaroScore = taroScore + 1;\n\t\t\t\thanakoScore = hanakoScore + 1;\n\t\t\t}", "result > 0", "result", "0", "{\n\t\t\t\ttaroScore = taroScore + 3;\n\t\t\t}", "taroScore = taroScore + 3", "taroScore", "taroScore + 3", "taroScore", "3", "if (result < 0) {\n\t\t\t\thanakoScore = hanakoScore + 3;\n\t\t\t} else if (result == 0) {\n\t\t\t\ttaroScore = taroScore + 1;\n\t\t\t\thanakoScore = hanakoScore + 1;\n\t\t\t}", "result < 0", "result", "0", "{\n\t\t\t\thanakoScore = hanakoScore + 3;\n\t\t\t}", "hanakoScore = hanakoScore + 3", "hanakoScore", "hanakoScore + 3", "hanakoScore", "3", "if (result == 0) {\n\t\t\t\ttaroScore = taroScore + 1;\n\t\t\t\thanakoScore = hanakoScore + 1;\n\t\t\t}", "result == 0", "result", "0", "{\n\t\t\t\ttaroScore = taroScore + 1;\n\t\t\t\thanakoScore = hanakoScore + 1;\n\t\t\t}", "taroScore = taroScore + 1", "taroScore", "taroScore + 1", "taroScore", "1", "hanakoScore = hanakoScore + 1", "hanakoScore", "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) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tint count = scn.nextInt();\n\t\tint taroScore = 0;\n\t\tint hanakoScore = 0;\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tString taroData = scn.next();\n\t\t\tString hanakoData = scn.next();\n\t\t\tint result = taroData.compareTo(hanakoData);\n\t\t\tif (result > 0) {\n\t\t\t\ttaroScore = taroScore + 3;\n\t\t\t} else if (result < 0) {\n\t\t\t\thanakoScore = hanakoScore + 3;\n\t\t\t} else if (result == 0) {\n\t\t\t\ttaroScore = taroScore + 1;\n\t\t\t\thanakoScore = hanakoScore + 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) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tint count = scn.nextInt();\n\t\tint taroScore = 0;\n\t\tint hanakoScore = 0;\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tString taroData = scn.next();\n\t\t\tString hanakoData = scn.next();\n\t\t\tint result = taroData.compareTo(hanakoData);\n\t\t\tif (result > 0) {\n\t\t\t\ttaroScore = taroScore + 3;\n\t\t\t} else if (result < 0) {\n\t\t\t\thanakoScore = hanakoScore + 3;\n\t\t\t} else if (result == 0) {\n\t\t\t\ttaroScore = taroScore + 1;\n\t\t\t\thanakoScore = hanakoScore + 1;\n\t\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 scn = new Scanner(System.in); int count = scn.nextInt(); int taroScore = 0; int hanakoScore = 0; for (int i = 0; i < count; i++) { String taroData = scn.next(); String hanakoData = scn.next(); int result = taroData.compareTo(hanakoData); if (result > 0) { taroScore = taroScore + 3; } else if (result < 0) { hanakoScore = hanakoScore + 3; } else if (result == 0) { taroScore = taroScore + 1; hanakoScore = hanakoScore + 1; } } 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, 41, 13, 4, 18, 18, 13, 17, 18, 13, 17, 14, 2, 13, 17, 0, 13, 17, 14, 2, 17, 13, 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 ], [ 95, 11 ], [ 95, 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 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 60, 61 ], [ 60, 62 ], [ 44, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 67, 69 ], [ 63, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 74, 76 ], [ 70, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 80, 81 ], [ 14, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 88, 88 ], [ 88, 89 ], [ 88, 90 ], [ 88, 91 ], [ 12, 92 ], [ 92, 93 ], [ 0, 94 ], [ 94, 95 ], [ 94, 96 ] ]
[ "import java.io.InputStreamReader;\nimport java.io.BufferedReader;\nimport java.io.IOException;\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 tarouPoint = 0;\n\t\tint hanakoPoint = 0;\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] cards = br.readLine().split(\" \");\n\t\t\tint j = cards[0].compareTo(cards[1]);\n\t\t\tif (j < 0) hanakoPoint += 3;\n\t\t\telse if (0 < j) tarouPoint += 3;\n\t\t\telse {\n\t\t\t\ttarouPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tarouPoint + \" \" + hanakoPoint);\n\t}\n}", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "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 tarouPoint = 0;\n\t\tint hanakoPoint = 0;\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] cards = br.readLine().split(\" \");\n\t\t\tint j = cards[0].compareTo(cards[1]);\n\t\t\tif (j < 0) hanakoPoint += 3;\n\t\t\telse if (0 < j) tarouPoint += 3;\n\t\t\telse {\n\t\t\t\ttarouPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tarouPoint + \" \" + 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 tarouPoint = 0;\n\t\tint hanakoPoint = 0;\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] cards = br.readLine().split(\" \");\n\t\t\tint j = cards[0].compareTo(cards[1]);\n\t\t\tif (j < 0) hanakoPoint += 3;\n\t\t\telse if (0 < j) tarouPoint += 3;\n\t\t\telse {\n\t\t\t\ttarouPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tarouPoint + \" \" + hanakoPoint);\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint tarouPoint = 0;\n\t\tint hanakoPoint = 0;\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] cards = br.readLine().split(\" \");\n\t\t\tint j = cards[0].compareTo(cards[1]);\n\t\t\tif (j < 0) hanakoPoint += 3;\n\t\t\telse if (0 < j) tarouPoint += 3;\n\t\t\telse {\n\t\t\t\ttarouPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tarouPoint + \" \" + hanakoPoint);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int tarouPoint = 0;", "tarouPoint", "0", "int hanakoPoint = 0;", "hanakoPoint", "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[] cards = br.readLine().split(\" \");\n\t\t\tint j = cards[0].compareTo(cards[1]);\n\t\t\tif (j < 0) hanakoPoint += 3;\n\t\t\telse if (0 < j) tarouPoint += 3;\n\t\t\telse {\n\t\t\t\ttarouPoint++;\n\t\t\t\thanakoPoint++;\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[] cards = br.readLine().split(\" \");\n\t\t\tint j = cards[0].compareTo(cards[1]);\n\t\t\tif (j < 0) hanakoPoint += 3;\n\t\t\telse if (0 < j) tarouPoint += 3;\n\t\t\telse {\n\t\t\t\ttarouPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t}\n\t\t}", "{\n\t\t\tString[] cards = br.readLine().split(\" \");\n\t\t\tint j = cards[0].compareTo(cards[1]);\n\t\t\tif (j < 0) hanakoPoint += 3;\n\t\t\telse if (0 < j) tarouPoint += 3;\n\t\t\telse {\n\t\t\t\ttarouPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t}\n\t\t}", "String[] cards = br.readLine().split(\" \");", "cards", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int j = cards[0].compareTo(cards[1]);", "j", "cards[0].compareTo(cards[1])", "cards[0].compareTo", "cards[0]", "cards", "0", "cards[1]", "cards", "1", "if (j < 0) hanakoPoint += 3;\n\t\t\telse if (0 < j) tarouPoint += 3;\n\t\t\telse {\n\t\t\t\ttarouPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t}", "j < 0", "j", "0", "hanakoPoint += 3", "hanakoPoint", "3", "if (0 < j) tarouPoint += 3;\n\t\t\telse {\n\t\t\t\ttarouPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t}", "0 < j", "0", "j", "tarouPoint += 3", "tarouPoint", "3", "{\n\t\t\t\ttarouPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t}", "tarouPoint++", "tarouPoint", "hanakoPoint++", "hanakoPoint", "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) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint tarouPoint = 0;\n\t\tint hanakoPoint = 0;\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] cards = br.readLine().split(\" \");\n\t\t\tint j = cards[0].compareTo(cards[1]);\n\t\t\tif (j < 0) hanakoPoint += 3;\n\t\t\telse if (0 < j) tarouPoint += 3;\n\t\t\telse {\n\t\t\t\ttarouPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tarouPoint + \" \" + 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 tarouPoint = 0;\n\t\tint hanakoPoint = 0;\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tString[] cards = br.readLine().split(\" \");\n\t\t\tint j = cards[0].compareTo(cards[1]);\n\t\t\tif (j < 0) hanakoPoint += 3;\n\t\t\telse if (0 < j) tarouPoint += 3;\n\t\t\telse {\n\t\t\t\ttarouPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tarouPoint + \" \" + hanakoPoint);\n\t}\n}", "Main" ]
import java.io.InputStreamReader; import java.io.BufferedReader; import java.io.IOException; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int tarouPoint = 0; int hanakoPoint = 0; int n = Integer.parseInt(br.readLine()); for (int i = 0; i < n; i++) { String[] cards = br.readLine().split(" "); int j = cards[0].compareTo(cards[1]); if (j < 0) hanakoPoint += 3; else if (0 < j) tarouPoint += 3; else { tarouPoint++; hanakoPoint++; } } System.out.println(tarouPoint + " " + hanakoPoint); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 17, 42, 2, 40, 13, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 14, 2, 17, 13, 0, 18, 13, 17, 17, 14, 2, 13, 17, 0, 18, 13, 17, 17, 30, 40, 18, 13, 17, 40, 18, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 17, 18, 13, 17, 18, 13, 17, 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 ], [ 13, 14 ], [ 6, 15 ], [ 15, 16 ], [ 97, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 19, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 19, 28 ], [ 28, 29 ], [ 28, 30 ], [ 19, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 32, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 37, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 37, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 37, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 54, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 63, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 19, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 86, 90 ], [ 90, 91 ], [ 90, 92 ], [ 86, 93 ], [ 93, 94 ], [ 93, 95 ], [ 0, 96 ], [ 96, 97 ], [ 96, 98 ] ]
[ "import java.util.*;\n\npublic class Main {\n \n public static void main(String[] args) {\n Main main = new Main();\n main.solv();\n }\n \n private void solv() {\n Scanner input = new Scanner(System.in);\n int n = input.nextInt();\n int[] score = new int[2];\n while (n-- > 0) {\n String a = input.next();\n String b = input.next();\n int cmp = a.compareTo(b);\n if (0 < cmp) score[0] += 3;\n else if (cmp < 0) score[1] += 3;\n else {score[0]++; score[1]++;}\n }\n System.out.println(String.format(\"%d %d\", score[0], score[1]));\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n \n public static void main(String[] args) {\n Main main = new Main();\n main.solv();\n }\n \n private void solv() {\n Scanner input = new Scanner(System.in);\n int n = input.nextInt();\n int[] score = new int[2];\n while (n-- > 0) {\n String a = input.next();\n String b = input.next();\n int cmp = a.compareTo(b);\n if (0 < cmp) score[0] += 3;\n else if (cmp < 0) score[1] += 3;\n else {score[0]++; score[1]++;}\n }\n System.out.println(String.format(\"%d %d\", score[0], score[1]));\n }\n}", "Main", "public static void main(String[] args) {\n Main main = new Main();\n main.solv();\n }", "main", "{\n Main main = new Main();\n main.solv();\n }", "Main main = new Main();", "main", "new Main()", "main.solv()", "main.solv", "main", "String[] args", "args", "private void solv() {\n Scanner input = new Scanner(System.in);\n int n = input.nextInt();\n int[] score = new int[2];\n while (n-- > 0) {\n String a = input.next();\n String b = input.next();\n int cmp = a.compareTo(b);\n if (0 < cmp) score[0] += 3;\n else if (cmp < 0) score[1] += 3;\n else {score[0]++; score[1]++;}\n }\n System.out.println(String.format(\"%d %d\", score[0], score[1]));\n }", "solv", "{\n Scanner input = new Scanner(System.in);\n int n = input.nextInt();\n int[] score = new int[2];\n while (n-- > 0) {\n String a = input.next();\n String b = input.next();\n int cmp = a.compareTo(b);\n if (0 < cmp) score[0] += 3;\n else if (cmp < 0) score[1] += 3;\n else {score[0]++; score[1]++;}\n }\n System.out.println(String.format(\"%d %d\", score[0], score[1]));\n }", "Scanner input = new Scanner(System.in);", "input", "new Scanner(System.in)", "int n = input.nextInt();", "n", "input.nextInt()", "input.nextInt", "input", "int[] score = new int[2];", "score", "new int[2]", "2", "while (n-- > 0) {\n String a = input.next();\n String b = input.next();\n int cmp = a.compareTo(b);\n if (0 < cmp) score[0] += 3;\n else if (cmp < 0) score[1] += 3;\n else {score[0]++; score[1]++;}\n }", "n-- > 0", "n--", "n", "0", "{\n String a = input.next();\n String b = input.next();\n int cmp = a.compareTo(b);\n if (0 < cmp) score[0] += 3;\n else if (cmp < 0) score[1] += 3;\n else {score[0]++; score[1]++;}\n }", "String a = input.next();", "a", "input.next()", "input.next", "input", "String b = input.next();", "b", "input.next()", "input.next", "input", "int cmp = a.compareTo(b);", "cmp", "a.compareTo(b)", "a.compareTo", "a", "b", "if (0 < cmp) score[0] += 3;\n else if (cmp < 0) score[1] += 3;\n else {score[0]++; score[1]++;}", "0 < cmp", "0", "cmp", "score[0] += 3", "score[0]", "score", "0", "3", "if (cmp < 0) score[1] += 3;\n else {score[0]++; score[1]++;}", "cmp < 0", "cmp", "0", "score[1] += 3", "score[1]", "score", "1", "3", "{score[0]++; score[1]++;}", "score[0]++", "score[0]", "score", "0", "score[1]++", "score[1]", "score", "1", "System.out.println(String.format(\"%d %d\", score[0], score[1]))", "System.out.println", "System.out", "System", "System.out", "String.format(\"%d %d\", score[0], score[1])", "String.format", "String", "\"%d %d\"", "score[0]", "score", "0", "score[1]", "score", "1", "public class Main {\n \n public static void main(String[] args) {\n Main main = new Main();\n main.solv();\n }\n \n private void solv() {\n Scanner input = new Scanner(System.in);\n int n = input.nextInt();\n int[] score = new int[2];\n while (n-- > 0) {\n String a = input.next();\n String b = input.next();\n int cmp = a.compareTo(b);\n if (0 < cmp) score[0] += 3;\n else if (cmp < 0) score[1] += 3;\n else {score[0]++; score[1]++;}\n }\n System.out.println(String.format(\"%d %d\", score[0], score[1]));\n }\n}", "public class Main {\n \n public static void main(String[] args) {\n Main main = new Main();\n main.solv();\n }\n \n private void solv() {\n Scanner input = new Scanner(System.in);\n int n = input.nextInt();\n int[] score = new int[2];\n while (n-- > 0) {\n String a = input.next();\n String b = input.next();\n int cmp = a.compareTo(b);\n if (0 < cmp) score[0] += 3;\n else if (cmp < 0) score[1] += 3;\n else {score[0]++; score[1]++;}\n }\n System.out.println(String.format(\"%d %d\", score[0], score[1]));\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Main main = new Main(); main.solv(); } private void solv() { Scanner input = new Scanner(System.in); int n = input.nextInt(); int[] score = new int[2]; while (n-- > 0) { String a = input.next(); String b = input.next(); int cmp = a.compareTo(b); if (0 < cmp) score[0] += 3; else if (cmp < 0) score[1] += 3; else {score[0]++; score[1]++;} } System.out.println(String.format("%d %d", score[0], score[1])); } }
[ 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, 42, 2, 13, 13, 30, 40, 13, 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 ], [ 81, 5 ], [ 81, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 30, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 30, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 43, 50 ], [ 50, 51 ], [ 50, 52 ], [ 43, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 54, 59 ], [ 53, 60 ], [ 60, 61 ], [ 60, 62 ], [ 53, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 66, 67 ], [ 8, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 74, 74 ], [ 74, 75 ], [ 74, 76 ], [ 74, 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 scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint i = 0 , taroPo = 0 , hanakoPo = 0 ;\n\t\twhile(i != n){\n\t\t\ti++;\n\t\t\tString taro = scan.next();\n\t\t\tString hanako = scan.next();\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.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\tint i = 0 , taroPo = 0 , hanakoPo = 0 ;\n\t\twhile(i != n){\n\t\t\ti++;\n\t\t\tString taro = scan.next();\n\t\t\tString hanako = scan.next();\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) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint i = 0 , taroPo = 0 , hanakoPo = 0 ;\n\t\twhile(i != n){\n\t\t\ti++;\n\t\t\tString taro = scan.next();\n\t\t\tString hanako = scan.next();\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\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint i = 0 , taroPo = 0 , hanakoPo = 0 ;\n\t\twhile(i != n){\n\t\t\ti++;\n\t\t\tString taro = scan.next();\n\t\t\tString hanako = scan.next();\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}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "int i = 0", "i", "0", "taroPo = 0", "taroPo", "0", "hanakoPo = 0 ;", "hanakoPo", "0", "while(i != n){\n\t\t\ti++;\n\t\t\tString taro = scan.next();\n\t\t\tString hanako = scan.next();\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 taro = scan.next();\n\t\t\tString hanako = scan.next();\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 taro = scan.next();", "taro", "scan.next()", "scan.next", "scan", "String hanako = scan.next();", "hanako", "scan.next()", "scan.next", "scan", "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) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint i = 0 , taroPo = 0 , hanakoPo = 0 ;\n\t\twhile(i != n){\n\t\t\ti++;\n\t\t\tString taro = scan.next();\n\t\t\tString hanako = scan.next();\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) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint i = 0 , taroPo = 0 , hanakoPo = 0 ;\n\t\twhile(i != n){\n\t\t\ti++;\n\t\t\tString taro = scan.next();\n\t\t\tString hanako = scan.next();\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.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int i = 0 , taroPo = 0 , hanakoPo = 0 ; while(i != n){ i++; String taro = scan.next(); String hanako = scan.next(); 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, 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, 0, 13, 17, 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 ], [ 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 ], [ 63, 65 ], [ 56, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 70, 72 ], [ 8, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 78, 82 ], [ 78, 83 ], [ 6, 84 ], [ 84, 85 ], [ 0, 86 ], [ 86, 87 ], [ 86, 88 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint a = scanner.nextInt();\n\t\tint sum1 = 0;\n\t\tint sum2 = 0;\n\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tString b = scanner.next();\n\t\t\tString c = scanner.next();\n\t\t\tif (b.compareTo(c) > 0)\n\t\t\t\tsum1 += 3;\n\t\t\telse if (b.compareTo(c) < 0)\n\t\t\t\tsum2 += 3;\n\t\t\telse {\n\t\t\t\tsum1 += 1;\n\t\t\t\tsum2 += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(String.format(\"%d %d\", sum1, sum2));\n\t}\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\t\tint a = scanner.nextInt();\n\t\tint sum1 = 0;\n\t\tint sum2 = 0;\n\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tString b = scanner.next();\n\t\t\tString c = scanner.next();\n\t\t\tif (b.compareTo(c) > 0)\n\t\t\t\tsum1 += 3;\n\t\t\telse if (b.compareTo(c) < 0)\n\t\t\t\tsum2 += 3;\n\t\t\telse {\n\t\t\t\tsum1 += 1;\n\t\t\t\tsum2 += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(String.format(\"%d %d\", sum1, sum2));\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint a = scanner.nextInt();\n\t\tint sum1 = 0;\n\t\tint sum2 = 0;\n\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tString b = scanner.next();\n\t\t\tString c = scanner.next();\n\t\t\tif (b.compareTo(c) > 0)\n\t\t\t\tsum1 += 3;\n\t\t\telse if (b.compareTo(c) < 0)\n\t\t\t\tsum2 += 3;\n\t\t\telse {\n\t\t\t\tsum1 += 1;\n\t\t\t\tsum2 += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(String.format(\"%d %d\", sum1, sum2));\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint a = scanner.nextInt();\n\t\tint sum1 = 0;\n\t\tint sum2 = 0;\n\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tString b = scanner.next();\n\t\t\tString c = scanner.next();\n\t\t\tif (b.compareTo(c) > 0)\n\t\t\t\tsum1 += 3;\n\t\t\telse if (b.compareTo(c) < 0)\n\t\t\t\tsum2 += 3;\n\t\t\telse {\n\t\t\t\tsum1 += 1;\n\t\t\t\tsum2 += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(String.format(\"%d %d\", sum1, sum2));\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int a = scanner.nextInt();", "a", "scanner.nextInt()", "scanner.nextInt", "scanner", "int sum1 = 0;", "sum1", "0", "int sum2 = 0;", "sum2", "0", "for (int i = 0; i < a; i++) {\n\t\t\tString b = scanner.next();\n\t\t\tString c = scanner.next();\n\t\t\tif (b.compareTo(c) > 0)\n\t\t\t\tsum1 += 3;\n\t\t\telse if (b.compareTo(c) < 0)\n\t\t\t\tsum2 += 3;\n\t\t\telse {\n\t\t\t\tsum1 += 1;\n\t\t\t\tsum2 += 1;\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < a", "i", "a", "i++", "i++", "i", "{\n\t\t\tString b = scanner.next();\n\t\t\tString c = scanner.next();\n\t\t\tif (b.compareTo(c) > 0)\n\t\t\t\tsum1 += 3;\n\t\t\telse if (b.compareTo(c) < 0)\n\t\t\t\tsum2 += 3;\n\t\t\telse {\n\t\t\t\tsum1 += 1;\n\t\t\t\tsum2 += 1;\n\t\t\t}\n\t\t}", "{\n\t\t\tString b = scanner.next();\n\t\t\tString c = scanner.next();\n\t\t\tif (b.compareTo(c) > 0)\n\t\t\t\tsum1 += 3;\n\t\t\telse if (b.compareTo(c) < 0)\n\t\t\t\tsum2 += 3;\n\t\t\telse {\n\t\t\t\tsum1 += 1;\n\t\t\t\tsum2 += 1;\n\t\t\t}\n\t\t}", "String b = scanner.next();", "b", "scanner.next()", "scanner.next", "scanner", "String c = scanner.next();", "c", "scanner.next()", "scanner.next", "scanner", "if (b.compareTo(c) > 0)\n\t\t\t\tsum1 += 3;\n\t\t\telse if (b.compareTo(c) < 0)\n\t\t\t\tsum2 += 3;\n\t\t\telse {\n\t\t\t\tsum1 += 1;\n\t\t\t\tsum2 += 1;\n\t\t\t}", "b.compareTo(c) > 0", "b.compareTo(c)", "b.compareTo", "b", "c", "0", "sum1 += 3", "sum1", "3", "if (b.compareTo(c) < 0)\n\t\t\t\tsum2 += 3;\n\t\t\telse {\n\t\t\t\tsum1 += 1;\n\t\t\t\tsum2 += 1;\n\t\t\t}", "b.compareTo(c) < 0", "b.compareTo(c)", "b.compareTo", "b", "c", "0", "sum2 += 3", "sum2", "3", "{\n\t\t\t\tsum1 += 1;\n\t\t\t\tsum2 += 1;\n\t\t\t}", "sum1 += 1", "sum1", "1", "sum2 += 1", "sum2", "1", "System.out.println(String.format(\"%d %d\", sum1, sum2))", "System.out.println", "System.out", "System", "System.out", "String.format(\"%d %d\", sum1, sum2)", "String.format", "String", "\"%d %d\"", "sum1", "sum2", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint a = scanner.nextInt();\n\t\tint sum1 = 0;\n\t\tint sum2 = 0;\n\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tString b = scanner.next();\n\t\t\tString c = scanner.next();\n\t\t\tif (b.compareTo(c) > 0)\n\t\t\t\tsum1 += 3;\n\t\t\telse if (b.compareTo(c) < 0)\n\t\t\t\tsum2 += 3;\n\t\t\telse {\n\t\t\t\tsum1 += 1;\n\t\t\t\tsum2 += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(String.format(\"%d %d\", sum1, sum2));\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint a = scanner.nextInt();\n\t\tint sum1 = 0;\n\t\tint sum2 = 0;\n\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tString b = scanner.next();\n\t\t\tString c = scanner.next();\n\t\t\tif (b.compareTo(c) > 0)\n\t\t\t\tsum1 += 3;\n\t\t\telse if (b.compareTo(c) < 0)\n\t\t\t\tsum2 += 3;\n\t\t\telse {\n\t\t\t\tsum1 += 1;\n\t\t\t\tsum2 += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(String.format(\"%d %d\", sum1, sum2));\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); int sum1 = 0; int sum2 = 0; for (int i = 0; i < a; i++) { String b = scanner.next(); String c = scanner.next(); if (b.compareTo(c) > 0) sum1 += 3; else if (b.compareTo(c) < 0) sum2 += 3; else { sum1 += 1; sum2 += 1; } } System.out.println(String.format("%d %d", sum1, sum2)); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 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 ], [ 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 ], [ 14, 17 ], [ 17, 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 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 30, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 42, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 42, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 54, 59 ], [ 53, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 53, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 65, 70 ], [ 64, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 64, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 78, 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.*;\npublic class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.nextLine());\n String sTaro;\n String sHanako;\n int iTaro = 0;\n int iHanako = 0;\n \n for(int i = 0; i < n; i++){\n sTaro = sc.next();\n sHanako = sc.next();\n \n if(sTaro.compareTo(sHanako) < 0){\n iHanako += 3;\n }else if(sTaro.compareTo(sHanako) > 0){\n iTaro += 3;\n }else{\n iTaro ++;\n iHanako ++;\n }\n } \n \n System.out.println(iTaro + \" \" + iHanako); \n \n }//main\n \n}//class", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.nextLine());\n String sTaro;\n String sHanako;\n int iTaro = 0;\n int iHanako = 0;\n \n for(int i = 0; i < n; i++){\n sTaro = sc.next();\n sHanako = sc.next();\n \n if(sTaro.compareTo(sHanako) < 0){\n iHanako += 3;\n }else if(sTaro.compareTo(sHanako) > 0){\n iTaro += 3;\n }else{\n iTaro ++;\n iHanako ++;\n }\n } \n \n System.out.println(iTaro + \" \" + iHanako); \n \n }//main\n \n}//class", "Main", "public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.nextLine());\n String sTaro;\n String sHanako;\n int iTaro = 0;\n int iHanako = 0;\n \n for(int i = 0; i < n; i++){\n sTaro = sc.next();\n sHanako = sc.next();\n \n if(sTaro.compareTo(sHanako) < 0){\n iHanako += 3;\n }else if(sTaro.compareTo(sHanako) > 0){\n iTaro += 3;\n }else{\n iTaro ++;\n iHanako ++;\n }\n } \n \n System.out.println(iTaro + \" \" + iHanako); \n \n }//main", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.nextLine());\n String sTaro;\n String sHanako;\n int iTaro = 0;\n int iHanako = 0;\n \n for(int i = 0; i < n; i++){\n sTaro = sc.next();\n sHanako = sc.next();\n \n if(sTaro.compareTo(sHanako) < 0){\n iHanako += 3;\n }else if(sTaro.compareTo(sHanako) > 0){\n iTaro += 3;\n }else{\n iTaro ++;\n iHanako ++;\n }\n } \n \n System.out.println(iTaro + \" \" + iHanako); \n \n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = Integer.parseInt(sc.nextLine());", "n", "Integer.parseInt(sc.nextLine())", "Integer.parseInt", "Integer", "sc.nextLine()", "sc.nextLine", "sc", "String sTaro;", "sTaro", "String sHanako;", "sHanako", "int iTaro = 0;", "iTaro", "0", "int iHanako = 0;", "iHanako", "0", "for(int i = 0; i < n; i++){\n sTaro = sc.next();\n sHanako = sc.next();\n \n if(sTaro.compareTo(sHanako) < 0){\n iHanako += 3;\n }else if(sTaro.compareTo(sHanako) > 0){\n iTaro += 3;\n }else{\n iTaro ++;\n iHanako ++;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n sTaro = sc.next();\n sHanako = sc.next();\n \n if(sTaro.compareTo(sHanako) < 0){\n iHanako += 3;\n }else if(sTaro.compareTo(sHanako) > 0){\n iTaro += 3;\n }else{\n iTaro ++;\n iHanako ++;\n }\n }", "{\n sTaro = sc.next();\n sHanako = sc.next();\n \n if(sTaro.compareTo(sHanako) < 0){\n iHanako += 3;\n }else if(sTaro.compareTo(sHanako) > 0){\n iTaro += 3;\n }else{\n iTaro ++;\n iHanako ++;\n }\n }", "sTaro = sc.next()", "sTaro", "sc.next()", "sc.next", "sc", "sHanako = sc.next()", "sHanako", "sc.next()", "sc.next", "sc", "if(sTaro.compareTo(sHanako) < 0){\n iHanako += 3;\n }else if(sTaro.compareTo(sHanako) > 0){\n iTaro += 3;\n }else{\n iTaro ++;\n iHanako ++;\n }", "sTaro.compareTo(sHanako) < 0", "sTaro.compareTo(sHanako)", "sTaro.compareTo", "sTaro", "sHanako", "0", "{\n iHanako += 3;\n }", "iHanako += 3", "iHanako", "3", "if(sTaro.compareTo(sHanako) > 0){\n iTaro += 3;\n }else{\n iTaro ++;\n iHanako ++;\n }", "sTaro.compareTo(sHanako) > 0", "sTaro.compareTo(sHanako)", "sTaro.compareTo", "sTaro", "sHanako", "0", "{\n iTaro += 3;\n }", "iTaro += 3", "iTaro", "3", "{\n iTaro ++;\n iHanako ++;\n }", "iTaro ++", "iTaro", "iHanako ++", "iHanako", "System.out.println(iTaro + \" \" + iHanako)", "System.out.println", "System.out", "System", "System.out", "iTaro + \" \" + iHanako", "iTaro + \" \" + iHanako", "iTaro", "\" \"", "iHanako", "String args[]", "args", "public class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.nextLine());\n String sTaro;\n String sHanako;\n int iTaro = 0;\n int iHanako = 0;\n \n for(int i = 0; i < n; i++){\n sTaro = sc.next();\n sHanako = sc.next();\n \n if(sTaro.compareTo(sHanako) < 0){\n iHanako += 3;\n }else if(sTaro.compareTo(sHanako) > 0){\n iTaro += 3;\n }else{\n iTaro ++;\n iHanako ++;\n }\n } \n \n System.out.println(iTaro + \" \" + iHanako); \n \n }//main\n \n}//class", "public class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.nextLine());\n String sTaro;\n String sHanako;\n int iTaro = 0;\n int iHanako = 0;\n \n for(int i = 0; i < n; i++){\n sTaro = sc.next();\n sHanako = sc.next();\n \n if(sTaro.compareTo(sHanako) < 0){\n iHanako += 3;\n }else if(sTaro.compareTo(sHanako) > 0){\n iTaro += 3;\n }else{\n iTaro ++;\n iHanako ++;\n }\n } \n \n System.out.println(iTaro + \" \" + iHanako); \n \n }//main\n \n}//class", "Main" ]
import java.util.*; public class Main { public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.nextLine()); String sTaro; String sHanako; int iTaro = 0; int iHanako = 0; for(int i = 0; i < n; i++){ sTaro = sc.next(); sHanako = sc.next(); if(sTaro.compareTo(sHanako) < 0){ iHanako += 3; }else if(sTaro.compareTo(sHanako) > 0){ iTaro += 3; }else{ iTaro ++; iHanako ++; } } System.out.println(iTaro + " " + iHanako); }//main }//class
[ 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, 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, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 85, 5 ], [ 85, 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 ], [ 40, 41 ], [ 41, 42 ], [ 38, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 48, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 53, 58 ], [ 35, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 61, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 66, 71 ], [ 8, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 78, 78 ], [ 78, 79 ], [ 78, 80 ], [ 78, 81 ], [ 6, 82 ], [ 82, 83 ], [ 0, 84 ], [ 84, 85 ], [ 84, 86 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n\n int ap = 0;\n int bp = 0;\n for (int i = 0; i < n; i++) {\n int result = sc.next().compareTo(sc.next());\n ap += result > 0 ? 3 : result < 0 ? 0 : 1;\n bp += result > 0 ? 0 : result < 0 ? 3 : 1;\n }\n\n System.out.println(ap + \" \" + bp);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n\n int ap = 0;\n int bp = 0;\n for (int i = 0; i < n; i++) {\n int result = sc.next().compareTo(sc.next());\n ap += result > 0 ? 3 : result < 0 ? 0 : 1;\n bp += result > 0 ? 0 : result < 0 ? 3 : 1;\n }\n\n System.out.println(ap + \" \" + bp);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n\n int ap = 0;\n int bp = 0;\n for (int i = 0; i < n; i++) {\n int result = sc.next().compareTo(sc.next());\n ap += result > 0 ? 3 : result < 0 ? 0 : 1;\n bp += result > 0 ? 0 : result < 0 ? 3 : 1;\n }\n\n System.out.println(ap + \" \" + bp);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n\n int ap = 0;\n int bp = 0;\n for (int i = 0; i < n; i++) {\n int result = sc.next().compareTo(sc.next());\n ap += result > 0 ? 3 : result < 0 ? 0 : 1;\n bp += result > 0 ? 0 : result < 0 ? 3 : 1;\n }\n\n System.out.println(ap + \" \" + bp);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int ap = 0;", "ap", "0", "int bp = 0;", "bp", "0", "for (int i = 0; i < n; i++) {\n int result = sc.next().compareTo(sc.next());\n ap += result > 0 ? 3 : result < 0 ? 0 : 1;\n bp += result > 0 ? 0 : result < 0 ? 3 : 1;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n int result = sc.next().compareTo(sc.next());\n ap += result > 0 ? 3 : result < 0 ? 0 : 1;\n bp += result > 0 ? 0 : result < 0 ? 3 : 1;\n }", "{\n int result = sc.next().compareTo(sc.next());\n ap += result > 0 ? 3 : result < 0 ? 0 : 1;\n bp += result > 0 ? 0 : result < 0 ? 3 : 1;\n }", "int result = sc.next().compareTo(sc.next());", "result", "sc.next().compareTo(sc.next())", "sc.next().compareTo", "sc.next()", "sc.next", "sc", "sc.next()", "sc.next", "sc", "ap += result > 0 ? 3 : result < 0 ? 0 : 1", "ap", "result > 0 ? 3 : result < 0 ? 0 : 1", "result > 0", "result", "0", "3", "result < 0 ? 0 : 1", "result < 0", "result", "0", "0", "1", "bp += result > 0 ? 0 : result < 0 ? 3 : 1", "bp", "result > 0 ? 0 : result < 0 ? 3 : 1", "result > 0", "result", "0", "0", "result < 0 ? 3 : 1", "result < 0", "result", "0", "3", "1", "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\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n\n int ap = 0;\n int bp = 0;\n for (int i = 0; i < n; i++) {\n int result = sc.next().compareTo(sc.next());\n ap += result > 0 ? 3 : result < 0 ? 0 : 1;\n bp += result > 0 ? 0 : result < 0 ? 3 : 1;\n }\n\n System.out.println(ap + \" \" + bp);\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n\n int ap = 0;\n int bp = 0;\n for (int i = 0; i < n; i++) {\n int result = sc.next().compareTo(sc.next());\n ap += result > 0 ? 3 : result < 0 ? 0 : 1;\n bp += result > 0 ? 0 : result < 0 ? 3 : 1;\n }\n\n System.out.println(ap + \" \" + bp);\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 ap = 0; int bp = 0; for (int i = 0; i < n; i++) { int result = sc.next().compareTo(sc.next()); ap += result > 0 ? 3 : result < 0 ? 0 : 1; bp += result > 0 ? 0 : result < 0 ? 3 : 1; } System.out.println(ap + " " + bp); } }
[ 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, 39, 17, 17, 41, 13, 20, 41, 13, 17, 42, 4, 18, 13, 30, 0, 13, 4, 18, 13, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 20, 0, 13, 20, 42, 4, 18, 13, 30, 28, 13, 13, 30, 30, 41, 13, 20, 4, 18, 13, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 13, 14, 4, 18, 4, 18, 4, 18, 13, 17, 4, 18, 4, 18, 13, 17, 30, 4, 18, 4, 18, 13, 17, 17, 4, 18, 4, 18, 13, 17, 17, 14, 4, 18, 4, 18, 13, 17, 4, 18, 4, 18, 13, 17, 30, 4, 18, 4, 18, 13, 17, 17, 14, 4, 18, 4, 18, 13, 17, 4, 18, 4, 18, 13, 17, 30, 4, 18, 4, 18, 13, 17, 17, 0, 13, 2, 13, 4, 18, 4, 18, 13, 17, 0, 13, 2, 13, 4, 18, 4, 18, 13, 17, 3, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13, 6, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 12, 13, 30, 0, 13, 13, 23, 13, 12, 13, 30, 0, 13, 13, 23, 13, 12, 13, 30, 0, 13, 13, 23, 13, 12, 13, 30, 29, 13, 12, 13, 30, 29, 13, 12, 13, 30, 29, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 258, 11 ], [ 258, 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 ], [ 26, 28 ], [ 14, 29 ], [ 29, 30 ], [ 29, 31 ], [ 14, 32 ], [ 32, 33 ], [ 32, 34 ], [ 14, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 35, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 39, 45 ], [ 14, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 51, 52 ], [ 51, 53 ], [ 46, 54 ], [ 54, 55 ], [ 55, 56 ], [ 46, 57 ], [ 58, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 62, 64 ], [ 58, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 65, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 70, 73 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 74, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 85, 86 ], [ 86, 87 ], [ 74, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 74, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 95, 96 ], [ 96, 97 ], [ 69, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 69, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 103, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 102, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 118, 124 ], [ 117, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 127, 130 ], [ 125, 131 ], [ 102, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 135, 138 ], [ 133, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 141, 144 ], [ 132, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 148, 151 ], [ 146, 152 ], [ 132, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 156, 159 ], [ 154, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 162, 165 ], [ 153, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 169, 172 ], [ 167, 173 ], [ 69, 174 ], [ 174, 175 ], [ 174, 176 ], [ 176, 177 ], [ 176, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 180, 183 ], [ 69, 184 ], [ 184, 185 ], [ 184, 186 ], [ 186, 187 ], [ 186, 188 ], [ 188, 189 ], [ 189, 190 ], [ 190, 191 ], [ 191, 192 ], [ 190, 193 ], [ 69, 194 ], [ 14, 195 ], [ 195, 196 ], [ 196, 197 ], [ 197, 198 ], [ 197, 199 ], [ 195, 200 ], [ 201, 201 ], [ 201, 202 ], [ 201, 203 ], [ 201, 204 ], [ 12, 205 ], [ 205, 206 ], [ 0, 207 ], [ 207, 208 ], [ 207, 209 ], [ 209, 210 ], [ 209, 211 ], [ 207, 212 ], [ 212, 213 ], [ 212, 214 ], [ 207, 215 ], [ 215, 216 ], [ 215, 217 ], [ 207, 218 ], [ 218, 219 ], [ 218, 220 ], [ 220, 221 ], [ 221, 222 ], [ 221, 223 ], [ 218, 224 ], [ 224, 225 ], [ 207, 226 ], [ 226, 227 ], [ 226, 228 ], [ 228, 229 ], [ 229, 230 ], [ 229, 231 ], [ 226, 232 ], [ 232, 233 ], [ 207, 234 ], [ 234, 235 ], [ 234, 236 ], [ 236, 237 ], [ 237, 238 ], [ 237, 239 ], [ 234, 240 ], [ 240, 241 ], [ 207, 242 ], [ 242, 243 ], [ 242, 244 ], [ 244, 245 ], [ 245, 246 ], [ 207, 247 ], [ 247, 248 ], [ 247, 249 ], [ 249, 250 ], [ 250, 251 ], [ 207, 252 ], [ 252, 253 ], [ 252, 254 ], [ 254, 255 ], [ 255, 256 ], [ 0, 257 ], [ 257, 258 ], [ 257, 259 ] ]
[ "\n\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\n\t\t//\n\t\tint matches = 0;\n\t\tint taro_points = 0;\n\t\tint hanako_points = 0;\n\t\t// 対戦者達\n\t\tString[] players = { \"太郎\", \"花子\" };\n\t\t// 標準入力\n\t\tScanner sc = new Scanner(System.in);\n\t\t//\n\t\tArrayList<player> players_beans = null;\n\n\t\t// 対戦回数\n\t\twhile (sc.hasNext()) {\n\n\t\t\tmatches = sc.nextInt();\n\t\t\tbreak;\n\t\t}\n\n\t\t// 対戦回数分まわす\n\t\tfor (int m = 0; m < matches; m++) {\n\n\t\t\t// カードを入れるリスト\n\t\t\tArrayList<String> battle = new ArrayList<String>();\n\t\t\t// 対戦者達のインスタンスを入れるリスト\n\t\t\tplayers_beans = new ArrayList<player>();\n\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\t// 対戦者達のインスタンスを作る\n\t\t\t\tfor (String val : players) {\n\t\t\t\t\tplayer obj = new player();\n\t\t\t\t\tobj.setName(val);\n\t\t\t\t\tobj.setCard(sc.next());\n\t\t\t\t\tplayers_beans.add(obj);\n\t\t\t\t\t// アルファベット順にソートするためにリストに入れる\n\t\t\t\t\tbattle.add(obj.getCard());\n\t\t\t\t}\n\n\t\t\t\t// アルファベット順にソート\n\t\t\t\tCollections.sort(battle);\n\n\t\t\t\t// 引き分けの場合\n\t\t\t\tif (players_beans.get(0).getCard()\n\t\t\t\t\t\t.equals(players_beans.get(1).getCard())) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(1);\n\t\t\t\t\tplayers_beans.get(1).setPoints(1);\n\t\t\t\t}\n\n\t\t\t\t// 太郎が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(players_beans.get(1).getCard())) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\t// 花子が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(players_beans.get(0).getCard())) {\n\t\t\t\t\tplayers_beans.get(1).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\ttaro_points = taro_points + players_beans.get(0).getPoints();\n\t\t\t\thanako_points = hanako_points\n\t\t\t\t\t\t+ players_beans.get(1).getPoints();\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// 出力\n\t\tSystem.out.println(taro_points + \" \" + hanako_points);\n\t}\n}\n\n// 各プレイヤーのプロパティ\nclass player {\n\n\t//\n\tprivate String name = \"\";\n\tprivate String card = \"\";\n\tprivate int points = 0;\n\n\t// セッター\n\tpublic void setName(String n) {\n\t\tname = n;\n\t}\n\n\tpublic void setCard(String c) {\n\t\tcard = c;\n\t}\n\n\t// 合計値を持つようにする\n\tpublic void setPoints(int p) {\n\t\tpoints += p;\n\t}\n\n\t// ゲッター\n\tpublic String getName() {\n\t\treturn name;\n\t}\n\n\tpublic String getCard() {\n\t\treturn card;\n\t}\n\n\tpublic int getPoints() {\n\t\treturn points;\n\t}\n\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Collections;", "Collections", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\n\tpublic static void main(String[] args) {\n\n\t\t//\n\t\tint matches = 0;\n\t\tint taro_points = 0;\n\t\tint hanako_points = 0;\n\t\t// 対戦者達\n\t\tString[] players = { \"太郎\", \"花子\" };\n\t\t// 標準入力\n\t\tScanner sc = new Scanner(System.in);\n\t\t//\n\t\tArrayList<player> players_beans = null;\n\n\t\t// 対戦回数\n\t\twhile (sc.hasNext()) {\n\n\t\t\tmatches = sc.nextInt();\n\t\t\tbreak;\n\t\t}\n\n\t\t// 対戦回数分まわす\n\t\tfor (int m = 0; m < matches; m++) {\n\n\t\t\t// カードを入れるリスト\n\t\t\tArrayList<String> battle = new ArrayList<String>();\n\t\t\t// 対戦者達のインスタンスを入れるリスト\n\t\t\tplayers_beans = new ArrayList<player>();\n\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\t// 対戦者達のインスタンスを作る\n\t\t\t\tfor (String val : players) {\n\t\t\t\t\tplayer obj = new player();\n\t\t\t\t\tobj.setName(val);\n\t\t\t\t\tobj.setCard(sc.next());\n\t\t\t\t\tplayers_beans.add(obj);\n\t\t\t\t\t// アルファベット順にソートするためにリストに入れる\n\t\t\t\t\tbattle.add(obj.getCard());\n\t\t\t\t}\n\n\t\t\t\t// アルファベット順にソート\n\t\t\t\tCollections.sort(battle);\n\n\t\t\t\t// 引き分けの場合\n\t\t\t\tif (players_beans.get(0).getCard()\n\t\t\t\t\t\t.equals(players_beans.get(1).getCard())) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(1);\n\t\t\t\t\tplayers_beans.get(1).setPoints(1);\n\t\t\t\t}\n\n\t\t\t\t// 太郎が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(players_beans.get(1).getCard())) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\t// 花子が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(players_beans.get(0).getCard())) {\n\t\t\t\t\tplayers_beans.get(1).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\ttaro_points = taro_points + players_beans.get(0).getPoints();\n\t\t\t\thanako_points = hanako_points\n\t\t\t\t\t\t+ players_beans.get(1).getPoints();\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// 出力\n\t\tSystem.out.println(taro_points + \" \" + hanako_points);\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\t//\n\t\tint matches = 0;\n\t\tint taro_points = 0;\n\t\tint hanako_points = 0;\n\t\t// 対戦者達\n\t\tString[] players = { \"太郎\", \"花子\" };\n\t\t// 標準入力\n\t\tScanner sc = new Scanner(System.in);\n\t\t//\n\t\tArrayList<player> players_beans = null;\n\n\t\t// 対戦回数\n\t\twhile (sc.hasNext()) {\n\n\t\t\tmatches = sc.nextInt();\n\t\t\tbreak;\n\t\t}\n\n\t\t// 対戦回数分まわす\n\t\tfor (int m = 0; m < matches; m++) {\n\n\t\t\t// カードを入れるリスト\n\t\t\tArrayList<String> battle = new ArrayList<String>();\n\t\t\t// 対戦者達のインスタンスを入れるリスト\n\t\t\tplayers_beans = new ArrayList<player>();\n\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\t// 対戦者達のインスタンスを作る\n\t\t\t\tfor (String val : players) {\n\t\t\t\t\tplayer obj = new player();\n\t\t\t\t\tobj.setName(val);\n\t\t\t\t\tobj.setCard(sc.next());\n\t\t\t\t\tplayers_beans.add(obj);\n\t\t\t\t\t// アルファベット順にソートするためにリストに入れる\n\t\t\t\t\tbattle.add(obj.getCard());\n\t\t\t\t}\n\n\t\t\t\t// アルファベット順にソート\n\t\t\t\tCollections.sort(battle);\n\n\t\t\t\t// 引き分けの場合\n\t\t\t\tif (players_beans.get(0).getCard()\n\t\t\t\t\t\t.equals(players_beans.get(1).getCard())) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(1);\n\t\t\t\t\tplayers_beans.get(1).setPoints(1);\n\t\t\t\t}\n\n\t\t\t\t// 太郎が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(players_beans.get(1).getCard())) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\t// 花子が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(players_beans.get(0).getCard())) {\n\t\t\t\t\tplayers_beans.get(1).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\ttaro_points = taro_points + players_beans.get(0).getPoints();\n\t\t\t\thanako_points = hanako_points\n\t\t\t\t\t\t+ players_beans.get(1).getPoints();\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// 出力\n\t\tSystem.out.println(taro_points + \" \" + hanako_points);\n\t}", "main", "{\n\n\t\t//\n\t\tint matches = 0;\n\t\tint taro_points = 0;\n\t\tint hanako_points = 0;\n\t\t// 対戦者達\n\t\tString[] players = { \"太郎\", \"花子\" };\n\t\t// 標準入力\n\t\tScanner sc = new Scanner(System.in);\n\t\t//\n\t\tArrayList<player> players_beans = null;\n\n\t\t// 対戦回数\n\t\twhile (sc.hasNext()) {\n\n\t\t\tmatches = sc.nextInt();\n\t\t\tbreak;\n\t\t}\n\n\t\t// 対戦回数分まわす\n\t\tfor (int m = 0; m < matches; m++) {\n\n\t\t\t// カードを入れるリスト\n\t\t\tArrayList<String> battle = new ArrayList<String>();\n\t\t\t// 対戦者達のインスタンスを入れるリスト\n\t\t\tplayers_beans = new ArrayList<player>();\n\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\t// 対戦者達のインスタンスを作る\n\t\t\t\tfor (String val : players) {\n\t\t\t\t\tplayer obj = new player();\n\t\t\t\t\tobj.setName(val);\n\t\t\t\t\tobj.setCard(sc.next());\n\t\t\t\t\tplayers_beans.add(obj);\n\t\t\t\t\t// アルファベット順にソートするためにリストに入れる\n\t\t\t\t\tbattle.add(obj.getCard());\n\t\t\t\t}\n\n\t\t\t\t// アルファベット順にソート\n\t\t\t\tCollections.sort(battle);\n\n\t\t\t\t// 引き分けの場合\n\t\t\t\tif (players_beans.get(0).getCard()\n\t\t\t\t\t\t.equals(players_beans.get(1).getCard())) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(1);\n\t\t\t\t\tplayers_beans.get(1).setPoints(1);\n\t\t\t\t}\n\n\t\t\t\t// 太郎が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(players_beans.get(1).getCard())) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\t// 花子が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(players_beans.get(0).getCard())) {\n\t\t\t\t\tplayers_beans.get(1).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\ttaro_points = taro_points + players_beans.get(0).getPoints();\n\t\t\t\thanako_points = hanako_points\n\t\t\t\t\t\t+ players_beans.get(1).getPoints();\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// 出力\n\t\tSystem.out.println(taro_points + \" \" + hanako_points);\n\t}", "int matches = 0;", "matches", "0", "int taro_points = 0;", "taro_points", "0", "int hanako_points = 0;", "hanako_points", "0", "String[] players = { \"太郎\", \"花子\" };", "players", "{ \"太郎\", \"花子\" }", "\"太郎\"", "\"花子\"", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "ArrayList<player> players_beans = null;", "players_beans", "null", "while (sc.hasNext()) {\n\n\t\t\tmatches = sc.nextInt();\n\t\t\tbreak;\n\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\n\t\t\tmatches = sc.nextInt();\n\t\t\tbreak;\n\t\t}", "matches = sc.nextInt()", "matches", "sc.nextInt()", "sc.nextInt", "sc", "break;", "for (int m = 0; m < matches; m++) {\n\n\t\t\t// カードを入れるリスト\n\t\t\tArrayList<String> battle = new ArrayList<String>();\n\t\t\t// 対戦者達のインスタンスを入れるリスト\n\t\t\tplayers_beans = new ArrayList<player>();\n\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\t// 対戦者達のインスタンスを作る\n\t\t\t\tfor (String val : players) {\n\t\t\t\t\tplayer obj = new player();\n\t\t\t\t\tobj.setName(val);\n\t\t\t\t\tobj.setCard(sc.next());\n\t\t\t\t\tplayers_beans.add(obj);\n\t\t\t\t\t// アルファベット順にソートするためにリストに入れる\n\t\t\t\t\tbattle.add(obj.getCard());\n\t\t\t\t}\n\n\t\t\t\t// アルファベット順にソート\n\t\t\t\tCollections.sort(battle);\n\n\t\t\t\t// 引き分けの場合\n\t\t\t\tif (players_beans.get(0).getCard()\n\t\t\t\t\t\t.equals(players_beans.get(1).getCard())) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(1);\n\t\t\t\t\tplayers_beans.get(1).setPoints(1);\n\t\t\t\t}\n\n\t\t\t\t// 太郎が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(players_beans.get(1).getCard())) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\t// 花子が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(players_beans.get(0).getCard())) {\n\t\t\t\t\tplayers_beans.get(1).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\ttaro_points = taro_points + players_beans.get(0).getPoints();\n\t\t\t\thanako_points = hanako_points\n\t\t\t\t\t\t+ players_beans.get(1).getPoints();\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "int m = 0;", "int m = 0;", "m", "0", "m < matches", "m", "matches", "m++", "m++", "m", "{\n\n\t\t\t// カードを入れるリスト\n\t\t\tArrayList<String> battle = new ArrayList<String>();\n\t\t\t// 対戦者達のインスタンスを入れるリスト\n\t\t\tplayers_beans = new ArrayList<player>();\n\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\t// 対戦者達のインスタンスを作る\n\t\t\t\tfor (String val : players) {\n\t\t\t\t\tplayer obj = new player();\n\t\t\t\t\tobj.setName(val);\n\t\t\t\t\tobj.setCard(sc.next());\n\t\t\t\t\tplayers_beans.add(obj);\n\t\t\t\t\t// アルファベット順にソートするためにリストに入れる\n\t\t\t\t\tbattle.add(obj.getCard());\n\t\t\t\t}\n\n\t\t\t\t// アルファベット順にソート\n\t\t\t\tCollections.sort(battle);\n\n\t\t\t\t// 引き分けの場合\n\t\t\t\tif (players_beans.get(0).getCard()\n\t\t\t\t\t\t.equals(players_beans.get(1).getCard())) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(1);\n\t\t\t\t\tplayers_beans.get(1).setPoints(1);\n\t\t\t\t}\n\n\t\t\t\t// 太郎が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(players_beans.get(1).getCard())) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\t// 花子が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(players_beans.get(0).getCard())) {\n\t\t\t\t\tplayers_beans.get(1).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\ttaro_points = taro_points + players_beans.get(0).getPoints();\n\t\t\t\thanako_points = hanako_points\n\t\t\t\t\t\t+ players_beans.get(1).getPoints();\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "{\n\n\t\t\t// カードを入れるリスト\n\t\t\tArrayList<String> battle = new ArrayList<String>();\n\t\t\t// 対戦者達のインスタンスを入れるリスト\n\t\t\tplayers_beans = new ArrayList<player>();\n\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\t// 対戦者達のインスタンスを作る\n\t\t\t\tfor (String val : players) {\n\t\t\t\t\tplayer obj = new player();\n\t\t\t\t\tobj.setName(val);\n\t\t\t\t\tobj.setCard(sc.next());\n\t\t\t\t\tplayers_beans.add(obj);\n\t\t\t\t\t// アルファベット順にソートするためにリストに入れる\n\t\t\t\t\tbattle.add(obj.getCard());\n\t\t\t\t}\n\n\t\t\t\t// アルファベット順にソート\n\t\t\t\tCollections.sort(battle);\n\n\t\t\t\t// 引き分けの場合\n\t\t\t\tif (players_beans.get(0).getCard()\n\t\t\t\t\t\t.equals(players_beans.get(1).getCard())) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(1);\n\t\t\t\t\tplayers_beans.get(1).setPoints(1);\n\t\t\t\t}\n\n\t\t\t\t// 太郎が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(players_beans.get(1).getCard())) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\t// 花子が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(players_beans.get(0).getCard())) {\n\t\t\t\t\tplayers_beans.get(1).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\ttaro_points = taro_points + players_beans.get(0).getPoints();\n\t\t\t\thanako_points = hanako_points\n\t\t\t\t\t\t+ players_beans.get(1).getPoints();\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "ArrayList<String> battle = new ArrayList<String>();", "battle", "new ArrayList<String>()", "players_beans = new ArrayList<player>()", "players_beans", "new ArrayList<player>()", "while (sc.hasNext()) {\n\t\t\t\t// 対戦者達のインスタンスを作る\n\t\t\t\tfor (String val : players) {\n\t\t\t\t\tplayer obj = new player();\n\t\t\t\t\tobj.setName(val);\n\t\t\t\t\tobj.setCard(sc.next());\n\t\t\t\t\tplayers_beans.add(obj);\n\t\t\t\t\t// アルファベット順にソートするためにリストに入れる\n\t\t\t\t\tbattle.add(obj.getCard());\n\t\t\t\t}\n\n\t\t\t\t// アルファベット順にソート\n\t\t\t\tCollections.sort(battle);\n\n\t\t\t\t// 引き分けの場合\n\t\t\t\tif (players_beans.get(0).getCard()\n\t\t\t\t\t\t.equals(players_beans.get(1).getCard())) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(1);\n\t\t\t\t\tplayers_beans.get(1).setPoints(1);\n\t\t\t\t}\n\n\t\t\t\t// 太郎が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(players_beans.get(1).getCard())) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\t// 花子が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(players_beans.get(0).getCard())) {\n\t\t\t\t\tplayers_beans.get(1).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\ttaro_points = taro_points + players_beans.get(0).getPoints();\n\t\t\t\thanako_points = hanako_points\n\t\t\t\t\t\t+ players_beans.get(1).getPoints();\n\n\t\t\t\tbreak;\n\t\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\t\t\t// 対戦者達のインスタンスを作る\n\t\t\t\tfor (String val : players) {\n\t\t\t\t\tplayer obj = new player();\n\t\t\t\t\tobj.setName(val);\n\t\t\t\t\tobj.setCard(sc.next());\n\t\t\t\t\tplayers_beans.add(obj);\n\t\t\t\t\t// アルファベット順にソートするためにリストに入れる\n\t\t\t\t\tbattle.add(obj.getCard());\n\t\t\t\t}\n\n\t\t\t\t// アルファベット順にソート\n\t\t\t\tCollections.sort(battle);\n\n\t\t\t\t// 引き分けの場合\n\t\t\t\tif (players_beans.get(0).getCard()\n\t\t\t\t\t\t.equals(players_beans.get(1).getCard())) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(1);\n\t\t\t\t\tplayers_beans.get(1).setPoints(1);\n\t\t\t\t}\n\n\t\t\t\t// 太郎が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(players_beans.get(1).getCard())) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\t// 花子が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(players_beans.get(0).getCard())) {\n\t\t\t\t\tplayers_beans.get(1).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\ttaro_points = taro_points + players_beans.get(0).getPoints();\n\t\t\t\thanako_points = hanako_points\n\t\t\t\t\t\t+ players_beans.get(1).getPoints();\n\n\t\t\t\tbreak;\n\t\t\t}", "for (String val : players) {\n\t\t\t\t\tplayer obj = new player();\n\t\t\t\t\tobj.setName(val);\n\t\t\t\t\tobj.setCard(sc.next());\n\t\t\t\t\tplayers_beans.add(obj);\n\t\t\t\t\t// アルファベット順にソートするためにリストに入れる\n\t\t\t\t\tbattle.add(obj.getCard());\n\t\t\t\t}", "String val", "players", "{\n\t\t\t\t\tplayer obj = new player();\n\t\t\t\t\tobj.setName(val);\n\t\t\t\t\tobj.setCard(sc.next());\n\t\t\t\t\tplayers_beans.add(obj);\n\t\t\t\t\t// アルファベット順にソートするためにリストに入れる\n\t\t\t\t\tbattle.add(obj.getCard());\n\t\t\t\t}", "{\n\t\t\t\t\tplayer obj = new player();\n\t\t\t\t\tobj.setName(val);\n\t\t\t\t\tobj.setCard(sc.next());\n\t\t\t\t\tplayers_beans.add(obj);\n\t\t\t\t\t// アルファベット順にソートするためにリストに入れる\n\t\t\t\t\tbattle.add(obj.getCard());\n\t\t\t\t}", "player obj = new player();", "obj", "new player()", "obj.setName(val)", "obj.setName", "obj", "val", "obj.setCard(sc.next())", "obj.setCard", "obj", "sc.next()", "sc.next", "sc", "players_beans.add(obj)", "players_beans.add", "players_beans", "obj", "battle.add(obj.getCard())", "battle.add", "battle", "obj.getCard()", "obj.getCard", "obj", "Collections.sort(battle)", "Collections.sort", "Collections", "battle", "if (players_beans.get(0).getCard()\n\t\t\t\t\t\t.equals(players_beans.get(1).getCard())) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(1);\n\t\t\t\t\tplayers_beans.get(1).setPoints(1);\n\t\t\t\t}\n\n\t\t\t\t// 太郎が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(players_beans.get(1).getCard())) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\t// 花子が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(players_beans.get(0).getCard())) {\n\t\t\t\t\tplayers_beans.get(1).setPoints(3);\n\t\t\t\t}", "players_beans.get(0).getCard()\n\t\t\t\t\t\t.equals(players_beans.get(1).getCard())", "players_beans.get(0).getCard()\n\t\t\t\t\t\t.equals", "players_beans.get(0).getCard()", "players_beans.get(0).getCard", "players_beans.get(0)", "players_beans.get", "players_beans", "0", "players_beans.get(1).getCard()", "players_beans.get(1).getCard", "players_beans.get(1)", "players_beans.get", "players_beans", "1", "{\n\t\t\t\t\tplayers_beans.get(0).setPoints(1);\n\t\t\t\t\tplayers_beans.get(1).setPoints(1);\n\t\t\t\t}", "players_beans.get(0).setPoints(1)", "players_beans.get(0).setPoints", "players_beans.get(0)", "players_beans.get", "players_beans", "0", "1", "players_beans.get(1).setPoints(1)", "players_beans.get(1).setPoints", "players_beans.get(1)", "players_beans.get", "players_beans", "1", "1", "if (battle.get(0).equals(players_beans.get(1).getCard())) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\t// 花子が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(players_beans.get(0).getCard())) {\n\t\t\t\t\tplayers_beans.get(1).setPoints(3);\n\t\t\t\t}", "battle.get(0).equals(players_beans.get(1).getCard())", "battle.get(0).equals", "battle.get(0)", "battle.get", "battle", "0", "players_beans.get(1).getCard()", "players_beans.get(1).getCard", "players_beans.get(1)", "players_beans.get", "players_beans", "1", "{\n\t\t\t\t\tplayers_beans.get(0).setPoints(3);\n\t\t\t\t}", "players_beans.get(0).setPoints(3)", "players_beans.get(0).setPoints", "players_beans.get(0)", "players_beans.get", "players_beans", "0", "3", "if (battle.get(0).equals(players_beans.get(0).getCard())) {\n\t\t\t\t\tplayers_beans.get(1).setPoints(3);\n\t\t\t\t}", "battle.get(0).equals(players_beans.get(0).getCard())", "battle.get(0).equals", "battle.get(0)", "battle.get", "battle", "0", "players_beans.get(0).getCard()", "players_beans.get(0).getCard", "players_beans.get(0)", "players_beans.get", "players_beans", "0", "{\n\t\t\t\t\tplayers_beans.get(1).setPoints(3);\n\t\t\t\t}", "players_beans.get(1).setPoints(3)", "players_beans.get(1).setPoints", "players_beans.get(1)", "players_beans.get", "players_beans", "1", "3", "taro_points = taro_points + players_beans.get(0).getPoints()", "taro_points", "taro_points + players_beans.get(0).getPoints()", "taro_points", "players_beans.get(0).getPoints()", "players_beans.get(0).getPoints", "players_beans.get(0)", "players_beans.get", "players_beans", "0", "hanako_points = hanako_points\n\t\t\t\t\t\t+ players_beans.get(1).getPoints()", "hanako_points", "hanako_points\n\t\t\t\t\t\t+ players_beans.get(1).getPoints()", "hanako_points", "players_beans.get(1).getPoints()", "players_beans.get(1).getPoints", "players_beans.get(1)", "players_beans.get", "players_beans", "1", "break;", "System.out.println(taro_points + \" \" + hanako_points)", "System.out.println", "System.out", "System", "System.out", "taro_points + \" \" + hanako_points", "taro_points + \" \" + hanako_points", "taro_points", "\" \"", "hanako_points", "String[] args", "args", "class player {\n\n\t//\n\tprivate String name = \"\";\n\tprivate String card = \"\";\n\tprivate int points = 0;\n\n\t// セッター\n\tpublic void setName(String n) {\n\t\tname = n;\n\t}\n\n\tpublic void setCard(String c) {\n\t\tcard = c;\n\t}\n\n\t// 合計値を持つようにする\n\tpublic void setPoints(int p) {\n\t\tpoints += p;\n\t}\n\n\t// ゲッター\n\tpublic String getName() {\n\t\treturn name;\n\t}\n\n\tpublic String getCard() {\n\t\treturn card;\n\t}\n\n\tpublic int getPoints() {\n\t\treturn points;\n\t}\n\n}", "player", "//\n\tprivate String name = \"\";", "name", "\"\"", "private String card = \"\";", "card", "\"\"", "private int points = 0;", "points", "0", "// セッター\n\tpublic void setName(String n) {\n\t\tname = n;\n\t}", "setName", "{\n\t\tname = n;\n\t}", "name = n", "name", "n", "String n", "n", "public void setCard(String c) {\n\t\tcard = c;\n\t}", "setCard", "{\n\t\tcard = c;\n\t}", "card = c", "card", "c", "String c", "c", "// 合計値を持つようにする\n\tpublic void setPoints(int p) {\n\t\tpoints += p;\n\t}", "setPoints", "{\n\t\tpoints += p;\n\t}", "points += p", "points", "p", "int p", "p", "// ゲッター\n\tpublic String getName() {\n\t\treturn name;\n\t}", "getName", "{\n\t\treturn name;\n\t}", "return name;", "name", "public String getCard() {\n\t\treturn card;\n\t}", "getCard", "{\n\t\treturn card;\n\t}", "return card;", "card", "public int getPoints() {\n\t\treturn points;\n\t}", "getPoints", "{\n\t\treturn points;\n\t}", "return points;", "points", "public class Main{\n\n\tpublic static void main(String[] args) {\n\n\t\t//\n\t\tint matches = 0;\n\t\tint taro_points = 0;\n\t\tint hanako_points = 0;\n\t\t// 対戦者達\n\t\tString[] players = { \"太郎\", \"花子\" };\n\t\t// 標準入力\n\t\tScanner sc = new Scanner(System.in);\n\t\t//\n\t\tArrayList<player> players_beans = null;\n\n\t\t// 対戦回数\n\t\twhile (sc.hasNext()) {\n\n\t\t\tmatches = sc.nextInt();\n\t\t\tbreak;\n\t\t}\n\n\t\t// 対戦回数分まわす\n\t\tfor (int m = 0; m < matches; m++) {\n\n\t\t\t// カードを入れるリスト\n\t\t\tArrayList<String> battle = new ArrayList<String>();\n\t\t\t// 対戦者達のインスタンスを入れるリスト\n\t\t\tplayers_beans = new ArrayList<player>();\n\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\t// 対戦者達のインスタンスを作る\n\t\t\t\tfor (String val : players) {\n\t\t\t\t\tplayer obj = new player();\n\t\t\t\t\tobj.setName(val);\n\t\t\t\t\tobj.setCard(sc.next());\n\t\t\t\t\tplayers_beans.add(obj);\n\t\t\t\t\t// アルファベット順にソートするためにリストに入れる\n\t\t\t\t\tbattle.add(obj.getCard());\n\t\t\t\t}\n\n\t\t\t\t// アルファベット順にソート\n\t\t\t\tCollections.sort(battle);\n\n\t\t\t\t// 引き分けの場合\n\t\t\t\tif (players_beans.get(0).getCard()\n\t\t\t\t\t\t.equals(players_beans.get(1).getCard())) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(1);\n\t\t\t\t\tplayers_beans.get(1).setPoints(1);\n\t\t\t\t}\n\n\t\t\t\t// 太郎が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(players_beans.get(1).getCard())) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\t// 花子が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(players_beans.get(0).getCard())) {\n\t\t\t\t\tplayers_beans.get(1).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\ttaro_points = taro_points + players_beans.get(0).getPoints();\n\t\t\t\thanako_points = hanako_points\n\t\t\t\t\t\t+ players_beans.get(1).getPoints();\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// 出力\n\t\tSystem.out.println(taro_points + \" \" + hanako_points);\n\t}\n}", "public class Main{\n\n\tpublic static void main(String[] args) {\n\n\t\t//\n\t\tint matches = 0;\n\t\tint taro_points = 0;\n\t\tint hanako_points = 0;\n\t\t// 対戦者達\n\t\tString[] players = { \"太郎\", \"花子\" };\n\t\t// 標準入力\n\t\tScanner sc = new Scanner(System.in);\n\t\t//\n\t\tArrayList<player> players_beans = null;\n\n\t\t// 対戦回数\n\t\twhile (sc.hasNext()) {\n\n\t\t\tmatches = sc.nextInt();\n\t\t\tbreak;\n\t\t}\n\n\t\t// 対戦回数分まわす\n\t\tfor (int m = 0; m < matches; m++) {\n\n\t\t\t// カードを入れるリスト\n\t\t\tArrayList<String> battle = new ArrayList<String>();\n\t\t\t// 対戦者達のインスタンスを入れるリスト\n\t\t\tplayers_beans = new ArrayList<player>();\n\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\t// 対戦者達のインスタンスを作る\n\t\t\t\tfor (String val : players) {\n\t\t\t\t\tplayer obj = new player();\n\t\t\t\t\tobj.setName(val);\n\t\t\t\t\tobj.setCard(sc.next());\n\t\t\t\t\tplayers_beans.add(obj);\n\t\t\t\t\t// アルファベット順にソートするためにリストに入れる\n\t\t\t\t\tbattle.add(obj.getCard());\n\t\t\t\t}\n\n\t\t\t\t// アルファベット順にソート\n\t\t\t\tCollections.sort(battle);\n\n\t\t\t\t// 引き分けの場合\n\t\t\t\tif (players_beans.get(0).getCard()\n\t\t\t\t\t\t.equals(players_beans.get(1).getCard())) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(1);\n\t\t\t\t\tplayers_beans.get(1).setPoints(1);\n\t\t\t\t}\n\n\t\t\t\t// 太郎が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(players_beans.get(1).getCard())) {\n\t\t\t\t\tplayers_beans.get(0).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\t// 花子が勝つ場合\n\t\t\t\telse if (battle.get(0).equals(players_beans.get(0).getCard())) {\n\t\t\t\t\tplayers_beans.get(1).setPoints(3);\n\t\t\t\t}\n\n\t\t\t\ttaro_points = taro_points + players_beans.get(0).getPoints();\n\t\t\t\thanako_points = hanako_points\n\t\t\t\t\t\t+ players_beans.get(1).getPoints();\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// 出力\n\t\tSystem.out.println(taro_points + \" \" + hanako_points);\n\t}\n}", "Main" ]
import java.util.ArrayList; import java.util.Collections; import java.util.Scanner; public class Main{ public static void main(String[] args) { // int matches = 0; int taro_points = 0; int hanako_points = 0; // 対戦者達 String[] players = { "太郎", "花子" }; // 標準入力 Scanner sc = new Scanner(System.in); // ArrayList<player> players_beans = null; // 対戦回数 while (sc.hasNext()) { matches = sc.nextInt(); break; } // 対戦回数分まわす for (int m = 0; m < matches; m++) { // カードを入れるリスト ArrayList<String> battle = new ArrayList<String>(); // 対戦者達のインスタンスを入れるリスト players_beans = new ArrayList<player>(); while (sc.hasNext()) { // 対戦者達のインスタンスを作る for (String val : players) { player obj = new player(); obj.setName(val); obj.setCard(sc.next()); players_beans.add(obj); // アルファベット順にソートするためにリストに入れる battle.add(obj.getCard()); } // アルファベット順にソート Collections.sort(battle); // 引き分けの場合 if (players_beans.get(0).getCard() .equals(players_beans.get(1).getCard())) { players_beans.get(0).setPoints(1); players_beans.get(1).setPoints(1); } // 太郎が勝つ場合 else if (battle.get(0).equals(players_beans.get(1).getCard())) { players_beans.get(0).setPoints(3); } // 花子が勝つ場合 else if (battle.get(0).equals(players_beans.get(0).getCard())) { players_beans.get(1).setPoints(3); } taro_points = taro_points + players_beans.get(0).getPoints(); hanako_points = hanako_points + players_beans.get(1).getPoints(); break; } } // 出力 System.out.println(taro_points + " " + hanako_points); } } // 各プレイヤーのプロパティ class player { // private String name = ""; private String card = ""; private int points = 0; // セッター public void setName(String n) { name = n; } public void setCard(String c) { card = c; } // 合計値を持つようにする public void setPoints(int p) { points += p; } // ゲッター public String getName() { return name; } public String getCard() { return card; } public int getPoints() { return points; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 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, 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, 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 ], [ 97, 5 ], [ 97, 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 ], [ 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 ], [ 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 ], [ 70, 74 ], [ 74, 75 ], [ 74, 76 ], [ 63, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 8, 81 ], [ 81, 82 ], [ 82, 83 ], [ 8, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 90, 90 ], [ 90, 91 ], [ 90, 92 ], [ 90, 93 ], [ 6, 94 ], [ 94, 95 ], [ 0, 96 ], [ 96, 97 ], [ 96, 98 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String [] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint turn;\n\t\tint playerA = 0, playerB = 0;\n\t\tString playerAcard, playerBcard;\n\t\t\n\t\tturn = scan.nextInt();\n\t\t\n\t\tfor (int i = 0; i < turn; i++) {\n\t\t\t\n\t\t\tplayerAcard = scan.next();\n\t\t\tplayerBcard = scan.next();\n\t\t\t\n\t\t\t//判定\n\t\t\tif (playerAcard.compareTo(playerBcard) > 0) {\n\t\t\t\tplayerA += 3;\n\t\t\t} else if (playerAcard.compareTo(playerBcard) == 0){\n\t\t\t\tplayerA += 1;\n\t\t\t\tplayerB += 1;\n\t\t\t} else {\n\t\t\t\tplayerB += 3;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tscan.close();\n\t\tSystem.out.println (playerA + \" \" + playerB);\n\t\t\n\t\t\n\t\t\n\t}\n\t\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String [] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint turn;\n\t\tint playerA = 0, playerB = 0;\n\t\tString playerAcard, playerBcard;\n\t\t\n\t\tturn = scan.nextInt();\n\t\t\n\t\tfor (int i = 0; i < turn; i++) {\n\t\t\t\n\t\t\tplayerAcard = scan.next();\n\t\t\tplayerBcard = scan.next();\n\t\t\t\n\t\t\t//判定\n\t\t\tif (playerAcard.compareTo(playerBcard) > 0) {\n\t\t\t\tplayerA += 3;\n\t\t\t} else if (playerAcard.compareTo(playerBcard) == 0){\n\t\t\t\tplayerA += 1;\n\t\t\t\tplayerB += 1;\n\t\t\t} else {\n\t\t\t\tplayerB += 3;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tscan.close();\n\t\tSystem.out.println (playerA + \" \" + playerB);\n\t\t\n\t\t\n\t\t\n\t}\n\t\n}", "Main", "public static void main(String [] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint turn;\n\t\tint playerA = 0, playerB = 0;\n\t\tString playerAcard, playerBcard;\n\t\t\n\t\tturn = scan.nextInt();\n\t\t\n\t\tfor (int i = 0; i < turn; i++) {\n\t\t\t\n\t\t\tplayerAcard = scan.next();\n\t\t\tplayerBcard = scan.next();\n\t\t\t\n\t\t\t//判定\n\t\t\tif (playerAcard.compareTo(playerBcard) > 0) {\n\t\t\t\tplayerA += 3;\n\t\t\t} else if (playerAcard.compareTo(playerBcard) == 0){\n\t\t\t\tplayerA += 1;\n\t\t\t\tplayerB += 1;\n\t\t\t} else {\n\t\t\t\tplayerB += 3;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tscan.close();\n\t\tSystem.out.println (playerA + \" \" + playerB);\n\t\t\n\t\t\n\t\t\n\t}", "main", "{\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint turn;\n\t\tint playerA = 0, playerB = 0;\n\t\tString playerAcard, playerBcard;\n\t\t\n\t\tturn = scan.nextInt();\n\t\t\n\t\tfor (int i = 0; i < turn; i++) {\n\t\t\t\n\t\t\tplayerAcard = scan.next();\n\t\t\tplayerBcard = scan.next();\n\t\t\t\n\t\t\t//判定\n\t\t\tif (playerAcard.compareTo(playerBcard) > 0) {\n\t\t\t\tplayerA += 3;\n\t\t\t} else if (playerAcard.compareTo(playerBcard) == 0){\n\t\t\t\tplayerA += 1;\n\t\t\t\tplayerB += 1;\n\t\t\t} else {\n\t\t\t\tplayerB += 3;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tscan.close();\n\t\tSystem.out.println (playerA + \" \" + playerB);\n\t\t\n\t\t\n\t\t\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int turn;", "turn", "int playerA = 0", "playerA", "0", "playerB = 0;", "playerB", "0", "String playerAcard", "playerAcard", "playerBcard;", "playerBcard", "turn = scan.nextInt()", "turn", "scan.nextInt()", "scan.nextInt", "scan", "for (int i = 0; i < turn; i++) {\n\t\t\t\n\t\t\tplayerAcard = scan.next();\n\t\t\tplayerBcard = scan.next();\n\t\t\t\n\t\t\t//判定\n\t\t\tif (playerAcard.compareTo(playerBcard) > 0) {\n\t\t\t\tplayerA += 3;\n\t\t\t} else if (playerAcard.compareTo(playerBcard) == 0){\n\t\t\t\tplayerA += 1;\n\t\t\t\tplayerB += 1;\n\t\t\t} else {\n\t\t\t\tplayerB += 3;\n\t\t\t}\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\t\n\t\t\tplayerAcard = scan.next();\n\t\t\tplayerBcard = scan.next();\n\t\t\t\n\t\t\t//判定\n\t\t\tif (playerAcard.compareTo(playerBcard) > 0) {\n\t\t\t\tplayerA += 3;\n\t\t\t} else if (playerAcard.compareTo(playerBcard) == 0){\n\t\t\t\tplayerA += 1;\n\t\t\t\tplayerB += 1;\n\t\t\t} else {\n\t\t\t\tplayerB += 3;\n\t\t\t}\n\t\t\t\n\t\t}", "{\n\t\t\t\n\t\t\tplayerAcard = scan.next();\n\t\t\tplayerBcard = scan.next();\n\t\t\t\n\t\t\t//判定\n\t\t\tif (playerAcard.compareTo(playerBcard) > 0) {\n\t\t\t\tplayerA += 3;\n\t\t\t} else if (playerAcard.compareTo(playerBcard) == 0){\n\t\t\t\tplayerA += 1;\n\t\t\t\tplayerB += 1;\n\t\t\t} else {\n\t\t\t\tplayerB += 3;\n\t\t\t}\n\t\t\t\n\t\t}", "playerAcard = scan.next()", "playerAcard", "scan.next()", "scan.next", "scan", "playerBcard = scan.next()", "playerBcard", "scan.next()", "scan.next", "scan", "if (playerAcard.compareTo(playerBcard) > 0) {\n\t\t\t\tplayerA += 3;\n\t\t\t} else if (playerAcard.compareTo(playerBcard) == 0){\n\t\t\t\tplayerA += 1;\n\t\t\t\tplayerB += 1;\n\t\t\t} else {\n\t\t\t\tplayerB += 3;\n\t\t\t}", "playerAcard.compareTo(playerBcard) > 0", "playerAcard.compareTo(playerBcard)", "playerAcard.compareTo", "playerAcard", "playerBcard", "0", "{\n\t\t\t\tplayerA += 3;\n\t\t\t}", "playerA += 3", "playerA", "3", "if (playerAcard.compareTo(playerBcard) == 0){\n\t\t\t\tplayerA += 1;\n\t\t\t\tplayerB += 1;\n\t\t\t} else {\n\t\t\t\tplayerB += 3;\n\t\t\t}", "playerAcard.compareTo(playerBcard) == 0", "playerAcard.compareTo(playerBcard)", "playerAcard.compareTo", "playerAcard", "playerBcard", "0", "{\n\t\t\t\tplayerA += 1;\n\t\t\t\tplayerB += 1;\n\t\t\t}", "playerA += 1", "playerA", "1", "playerB += 1", "playerB", "1", "{\n\t\t\t\tplayerB += 3;\n\t\t\t}", "playerB += 3", "playerB", "3", "scan.close()", "scan.close", "scan", "System.out.println (playerA + \" \" + playerB)", "System.out.println", "System.out", "System", "System.out", "playerA + \" \" + playerB", "playerA + \" \" + playerB", "playerA", "\" \"", "playerB", "String [] args", "args", "public class Main {\n\tpublic static void main(String [] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint turn;\n\t\tint playerA = 0, playerB = 0;\n\t\tString playerAcard, playerBcard;\n\t\t\n\t\tturn = scan.nextInt();\n\t\t\n\t\tfor (int i = 0; i < turn; i++) {\n\t\t\t\n\t\t\tplayerAcard = scan.next();\n\t\t\tplayerBcard = scan.next();\n\t\t\t\n\t\t\t//判定\n\t\t\tif (playerAcard.compareTo(playerBcard) > 0) {\n\t\t\t\tplayerA += 3;\n\t\t\t} else if (playerAcard.compareTo(playerBcard) == 0){\n\t\t\t\tplayerA += 1;\n\t\t\t\tplayerB += 1;\n\t\t\t} else {\n\t\t\t\tplayerB += 3;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tscan.close();\n\t\tSystem.out.println (playerA + \" \" + playerB);\n\t\t\n\t\t\n\t\t\n\t}\n\t\n}", "public class Main {\n\tpublic static void main(String [] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint turn;\n\t\tint playerA = 0, playerB = 0;\n\t\tString playerAcard, playerBcard;\n\t\t\n\t\tturn = scan.nextInt();\n\t\t\n\t\tfor (int i = 0; i < turn; i++) {\n\t\t\t\n\t\t\tplayerAcard = scan.next();\n\t\t\tplayerBcard = scan.next();\n\t\t\t\n\t\t\t//判定\n\t\t\tif (playerAcard.compareTo(playerBcard) > 0) {\n\t\t\t\tplayerA += 3;\n\t\t\t} else if (playerAcard.compareTo(playerBcard) == 0){\n\t\t\t\tplayerA += 1;\n\t\t\t\tplayerB += 1;\n\t\t\t} else {\n\t\t\t\tplayerB += 3;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tscan.close();\n\t\tSystem.out.println (playerA + \" \" + playerB);\n\t\t\n\t\t\n\t\t\n\t}\n\t\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String [] args) { Scanner scan = new Scanner(System.in); int turn; int playerA = 0, playerB = 0; String playerAcard, playerBcard; turn = scan.nextInt(); for (int i = 0; i < turn; i++) { playerAcard = scan.next(); playerBcard = scan.next(); //判定 if (playerAcard.compareTo(playerBcard) > 0) { playerA += 3; } else if (playerAcard.compareTo(playerBcard) == 0){ playerA += 1; playerB += 1; } else { playerB += 3; } } scan.close(); System.out.println (playerA + " " + playerB); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 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, 4, 18, 13, 17, 0, 13, 18, 13, 17, 0, 13, 18, 13, 17, 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 ], [ 103, 5 ], [ 103, 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 ], [ 8, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 8, 29 ], [ 29, 30 ], [ 29, 31 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 47, 52 ], [ 44, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 44, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 44, 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 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 75, 80 ], [ 74, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 74, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 88, 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.io.*;\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 String[] line;\n String a, b;\n int scoreOfA = 0;\n int scoreOfB = 0;\n\n for(int i = 0; i < n; i++){\n line = br.readLine().split(\" \");\n a = line[0];\n b = line[1];\n\n if(a.compareTo(b) > 0){\n scoreOfA += 3;\n }else if(a.compareTo(b) < 0){\n scoreOfB += 3;\n }else{\n scoreOfA++;\n scoreOfB++;\n }\n }\n System.out.println(scoreOfA + \" \" + scoreOfB);\n }\n}", "import java.io.*;", "io.*", "java", "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 String[] line;\n String a, b;\n int scoreOfA = 0;\n int scoreOfB = 0;\n\n for(int i = 0; i < n; i++){\n line = br.readLine().split(\" \");\n a = line[0];\n b = line[1];\n\n if(a.compareTo(b) > 0){\n scoreOfA += 3;\n }else if(a.compareTo(b) < 0){\n scoreOfB += 3;\n }else{\n scoreOfA++;\n scoreOfB++;\n }\n }\n System.out.println(scoreOfA + \" \" + scoreOfB);\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 String[] line;\n String a, b;\n int scoreOfA = 0;\n int scoreOfB = 0;\n\n for(int i = 0; i < n; i++){\n line = br.readLine().split(\" \");\n a = line[0];\n b = line[1];\n\n if(a.compareTo(b) > 0){\n scoreOfA += 3;\n }else if(a.compareTo(b) < 0){\n scoreOfB += 3;\n }else{\n scoreOfA++;\n scoreOfB++;\n }\n }\n System.out.println(scoreOfA + \" \" + scoreOfB);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n String[] line;\n String a, b;\n int scoreOfA = 0;\n int scoreOfB = 0;\n\n for(int i = 0; i < n; i++){\n line = br.readLine().split(\" \");\n a = line[0];\n b = line[1];\n\n if(a.compareTo(b) > 0){\n scoreOfA += 3;\n }else if(a.compareTo(b) < 0){\n scoreOfB += 3;\n }else{\n scoreOfA++;\n scoreOfB++;\n }\n }\n System.out.println(scoreOfA + \" \" + scoreOfB);\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", "String[] line;", "line", "String a", "a", "b;", "b", "int scoreOfA = 0;", "scoreOfA", "0", "int scoreOfB = 0;", "scoreOfB", "0", "for(int i = 0; i < n; i++){\n line = br.readLine().split(\" \");\n a = line[0];\n b = line[1];\n\n if(a.compareTo(b) > 0){\n scoreOfA += 3;\n }else if(a.compareTo(b) < 0){\n scoreOfB += 3;\n }else{\n scoreOfA++;\n scoreOfB++;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n line = br.readLine().split(\" \");\n a = line[0];\n b = line[1];\n\n if(a.compareTo(b) > 0){\n scoreOfA += 3;\n }else if(a.compareTo(b) < 0){\n scoreOfB += 3;\n }else{\n scoreOfA++;\n scoreOfB++;\n }\n }", "{\n line = br.readLine().split(\" \");\n a = line[0];\n b = line[1];\n\n if(a.compareTo(b) > 0){\n scoreOfA += 3;\n }else if(a.compareTo(b) < 0){\n scoreOfB += 3;\n }else{\n scoreOfA++;\n scoreOfB++;\n }\n }", "line = br.readLine().split(\" \")", "line", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "a = line[0]", "a", "line[0]", "line", "0", "b = line[1]", "b", "line[1]", "line", "1", "if(a.compareTo(b) > 0){\n scoreOfA += 3;\n }else if(a.compareTo(b) < 0){\n scoreOfB += 3;\n }else{\n scoreOfA++;\n scoreOfB++;\n }", "a.compareTo(b) > 0", "a.compareTo(b)", "a.compareTo", "a", "b", "0", "{\n scoreOfA += 3;\n }", "scoreOfA += 3", "scoreOfA", "3", "if(a.compareTo(b) < 0){\n scoreOfB += 3;\n }else{\n scoreOfA++;\n scoreOfB++;\n }", "a.compareTo(b) < 0", "a.compareTo(b)", "a.compareTo", "a", "b", "0", "{\n scoreOfB += 3;\n }", "scoreOfB += 3", "scoreOfB", "3", "{\n scoreOfA++;\n scoreOfB++;\n }", "scoreOfA++", "scoreOfA", "scoreOfB++", "scoreOfB", "System.out.println(scoreOfA + \" \" + scoreOfB)", "System.out.println", "System.out", "System", "System.out", "scoreOfA + \" \" + scoreOfB", "scoreOfA + \" \" + scoreOfB", "scoreOfA", "\" \"", "scoreOfB", "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 String[] line;\n String a, b;\n int scoreOfA = 0;\n int scoreOfB = 0;\n\n for(int i = 0; i < n; i++){\n line = br.readLine().split(\" \");\n a = line[0];\n b = line[1];\n\n if(a.compareTo(b) > 0){\n scoreOfA += 3;\n }else if(a.compareTo(b) < 0){\n scoreOfB += 3;\n }else{\n scoreOfA++;\n scoreOfB++;\n }\n }\n System.out.println(scoreOfA + \" \" + scoreOfB);\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 String[] line;\n String a, b;\n int scoreOfA = 0;\n int scoreOfB = 0;\n\n for(int i = 0; i < n; i++){\n line = br.readLine().split(\" \");\n a = line[0];\n b = line[1];\n\n if(a.compareTo(b) > 0){\n scoreOfA += 3;\n }else if(a.compareTo(b) < 0){\n scoreOfB += 3;\n }else{\n scoreOfA++;\n scoreOfB++;\n }\n }\n System.out.println(scoreOfA + \" \" + scoreOfB);\n }\n}", "Main" ]
import java.io.*; 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()); String[] line; String a, b; int scoreOfA = 0; int scoreOfB = 0; for(int i = 0; i < n; i++){ line = br.readLine().split(" "); a = line[0]; b = line[1]; if(a.compareTo(b) > 0){ scoreOfA += 3; }else if(a.compareTo(b) < 0){ scoreOfB += 3; }else{ scoreOfA++; scoreOfB++; } } System.out.println(scoreOfA + " " + scoreOfB); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 42, 2, 0, 13, 4, 18, 13, 17, 30, 14, 13, 30, 0, 13, 4, 18, 13, 13, 0, 13, 17, 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, 40, 13, 14, 2, 13, 13, 30, 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 ], [ 122, 8 ], [ 122, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 14, 16 ], [ 13, 17 ], [ 17, 18 ], [ 13, 19 ], [ 19, 20 ], [ 19, 21 ], [ 13, 22 ], [ 22, 23 ], [ 22, 24 ], [ 13, 25 ], [ 25, 26 ], [ 25, 27 ], [ 13, 28 ], [ 28, 29 ], [ 28, 30 ], [ 13, 31 ], [ 31, 32 ], [ 31, 33 ], [ 13, 34 ], [ 34, 35 ], [ 34, 36 ], [ 13, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 38, 44 ], [ 37, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 48, 55 ], [ 55, 56 ], [ 55, 57 ], [ 46, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 58, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 72, 73 ], [ 72, 74 ], [ 66, 75 ], [ 65, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 65, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 87, 88 ], [ 87, 89 ], [ 81, 90 ], [ 80, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 80, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 99, 100 ], [ 99, 101 ], [ 58, 102 ], [ 102, 103 ], [ 58, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 104, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 115, 115 ], [ 115, 116 ], [ 115, 117 ], [ 115, 118 ], [ 9, 119 ], [ 119, 120 ], [ 0, 121 ], [ 121, 122 ], [ 121, 123 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line,result=\"\";\n boolean first=true;\n int n=0,i=0,taro=0,hana=0;\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tn=Integer.parseInt(line);\n \t\tfirst=false;\n \t}else{\n \t\tString[] str=line.split(\" \");\n \t\tif(str[0].compareTo(str[1])>0){\n \t\t\ttaro+=3;\n \t\t}else if(str[0].compareTo(str[1])<0){\n \t\t\thana+=3;\n \t\t}else{\n \t\t\ttaro+=1;\n \t\t\thana+=1;\n \t\t}\n \t\ti++;\n \t\tif(i==n){\n \t\t\tSystem.out.println(taro+\" \"+hana);\n \t\t}\n \t}\n \t\n }\n }\n }\n\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line,result=\"\";\n boolean first=true;\n int n=0,i=0,taro=0,hana=0;\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tn=Integer.parseInt(line);\n \t\tfirst=false;\n \t}else{\n \t\tString[] str=line.split(\" \");\n \t\tif(str[0].compareTo(str[1])>0){\n \t\t\ttaro+=3;\n \t\t}else if(str[0].compareTo(str[1])<0){\n \t\t\thana+=3;\n \t\t}else{\n \t\t\ttaro+=1;\n \t\t\thana+=1;\n \t\t}\n \t\ti++;\n \t\tif(i==n){\n \t\t\tSystem.out.println(taro+\" \"+hana);\n \t\t}\n \t}\n \t\n }\n }\n }\n\n\n}", "Main", "public static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line,result=\"\";\n boolean first=true;\n int n=0,i=0,taro=0,hana=0;\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tn=Integer.parseInt(line);\n \t\tfirst=false;\n \t}else{\n \t\tString[] str=line.split(\" \");\n \t\tif(str[0].compareTo(str[1])>0){\n \t\t\ttaro+=3;\n \t\t}else if(str[0].compareTo(str[1])<0){\n \t\t\thana+=3;\n \t\t}else{\n \t\t\ttaro+=1;\n \t\t\thana+=1;\n \t\t}\n \t\ti++;\n \t\tif(i==n){\n \t\t\tSystem.out.println(taro+\" \"+hana);\n \t\t}\n \t}\n \t\n }\n }\n }", "main", "{\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line,result=\"\";\n boolean first=true;\n int n=0,i=0,taro=0,hana=0;\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tn=Integer.parseInt(line);\n \t\tfirst=false;\n \t}else{\n \t\tString[] str=line.split(\" \");\n \t\tif(str[0].compareTo(str[1])>0){\n \t\t\ttaro+=3;\n \t\t}else if(str[0].compareTo(str[1])<0){\n \t\t\thana+=3;\n \t\t}else{\n \t\t\ttaro+=1;\n \t\t\thana+=1;\n \t\t}\n \t\ti++;\n \t\tif(i==n){\n \t\t\tSystem.out.println(taro+\" \"+hana);\n \t\t}\n \t}\n \t\n }\n }\n }", "try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line,result=\"\";\n boolean first=true;\n int n=0,i=0,taro=0,hana=0;\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tn=Integer.parseInt(line);\n \t\tfirst=false;\n \t}else{\n \t\tString[] str=line.split(\" \");\n \t\tif(str[0].compareTo(str[1])>0){\n \t\t\ttaro+=3;\n \t\t}else if(str[0].compareTo(str[1])<0){\n \t\t\thana+=3;\n \t\t}else{\n \t\t\ttaro+=1;\n \t\t\thana+=1;\n \t\t}\n \t\ti++;\n \t\tif(i==n){\n \t\t\tSystem.out.println(taro+\" \"+hana);\n \t\t}\n \t}\n \t\n }\n }", "{\n String line,result=\"\";\n boolean first=true;\n int n=0,i=0,taro=0,hana=0;\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tn=Integer.parseInt(line);\n \t\tfirst=false;\n \t}else{\n \t\tString[] str=line.split(\" \");\n \t\tif(str[0].compareTo(str[1])>0){\n \t\t\ttaro+=3;\n \t\t}else if(str[0].compareTo(str[1])<0){\n \t\t\thana+=3;\n \t\t}else{\n \t\t\ttaro+=1;\n \t\t\thana+=1;\n \t\t}\n \t\ti++;\n \t\tif(i==n){\n \t\t\tSystem.out.println(taro+\" \"+hana);\n \t\t}\n \t}\n \t\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in))", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in))", "new BufferedReader(new InputStreamReader(System.in))", "String line", "line", "result=\"\";", "result", "\"\"", "boolean first=true;", "first", "true", "int n=0", "n", "0", "i=0", "i", "0", "taro=0", "taro", "0", "hana=0;", "hana", "0", "while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tn=Integer.parseInt(line);\n \t\tfirst=false;\n \t}else{\n \t\tString[] str=line.split(\" \");\n \t\tif(str[0].compareTo(str[1])>0){\n \t\t\ttaro+=3;\n \t\t}else if(str[0].compareTo(str[1])<0){\n \t\t\thana+=3;\n \t\t}else{\n \t\t\ttaro+=1;\n \t\t\thana+=1;\n \t\t}\n \t\ti++;\n \t\tif(i==n){\n \t\t\tSystem.out.println(taro+\" \"+hana);\n \t\t}\n \t}\n \t\n }", "(line = br.readLine()) != null", "(line = br.readLine())", "line", "br.readLine()", "br.readLine", "br", "null", "{\n \tif(first){\n \t\tn=Integer.parseInt(line);\n \t\tfirst=false;\n \t}else{\n \t\tString[] str=line.split(\" \");\n \t\tif(str[0].compareTo(str[1])>0){\n \t\t\ttaro+=3;\n \t\t}else if(str[0].compareTo(str[1])<0){\n \t\t\thana+=3;\n \t\t}else{\n \t\t\ttaro+=1;\n \t\t\thana+=1;\n \t\t}\n \t\ti++;\n \t\tif(i==n){\n \t\t\tSystem.out.println(taro+\" \"+hana);\n \t\t}\n \t}\n \t\n }", "if(first){\n \t\tn=Integer.parseInt(line);\n \t\tfirst=false;\n \t}else{\n \t\tString[] str=line.split(\" \");\n \t\tif(str[0].compareTo(str[1])>0){\n \t\t\ttaro+=3;\n \t\t}else if(str[0].compareTo(str[1])<0){\n \t\t\thana+=3;\n \t\t}else{\n \t\t\ttaro+=1;\n \t\t\thana+=1;\n \t\t}\n \t\ti++;\n \t\tif(i==n){\n \t\t\tSystem.out.println(taro+\" \"+hana);\n \t\t}\n \t}", "first", "{\n \t\tn=Integer.parseInt(line);\n \t\tfirst=false;\n \t}", "n=Integer.parseInt(line)", "n", "Integer.parseInt(line)", "Integer.parseInt", "Integer", "line", "first=false", "first", "false", "{\n \t\tString[] str=line.split(\" \");\n \t\tif(str[0].compareTo(str[1])>0){\n \t\t\ttaro+=3;\n \t\t}else if(str[0].compareTo(str[1])<0){\n \t\t\thana+=3;\n \t\t}else{\n \t\t\ttaro+=1;\n \t\t\thana+=1;\n \t\t}\n \t\ti++;\n \t\tif(i==n){\n \t\t\tSystem.out.println(taro+\" \"+hana);\n \t\t}\n \t}", "String[] str=line.split(\" \");", "str", "line.split(\" \")", "line.split", "line", "\" \"", "if(str[0].compareTo(str[1])>0){\n \t\t\ttaro+=3;\n \t\t}else if(str[0].compareTo(str[1])<0){\n \t\t\thana+=3;\n \t\t}else{\n \t\t\ttaro+=1;\n \t\t\thana+=1;\n \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", "{\n \t\t\ttaro+=3;\n \t\t}", "taro+=3", "taro", "3", "if(str[0].compareTo(str[1])<0){\n \t\t\thana+=3;\n \t\t}else{\n \t\t\ttaro+=1;\n \t\t\thana+=1;\n \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", "{\n \t\t\thana+=3;\n \t\t}", "hana+=3", "hana", "3", "{\n \t\t\ttaro+=1;\n \t\t\thana+=1;\n \t\t}", "taro+=1", "taro", "1", "hana+=1", "hana", "1", "i++", "i", "if(i==n){\n \t\t\tSystem.out.println(taro+\" \"+hana);\n \t\t}", "i==n", "i", "n", "{\n \t\t\tSystem.out.println(taro+\" \"+hana);\n \t\t}", "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\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line,result=\"\";\n boolean first=true;\n int n=0,i=0,taro=0,hana=0;\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tn=Integer.parseInt(line);\n \t\tfirst=false;\n \t}else{\n \t\tString[] str=line.split(\" \");\n \t\tif(str[0].compareTo(str[1])>0){\n \t\t\ttaro+=3;\n \t\t}else if(str[0].compareTo(str[1])<0){\n \t\t\thana+=3;\n \t\t}else{\n \t\t\ttaro+=1;\n \t\t\thana+=1;\n \t\t}\n \t\ti++;\n \t\tif(i==n){\n \t\t\tSystem.out.println(taro+\" \"+hana);\n \t\t}\n \t}\n \t\n }\n }\n }\n\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line,result=\"\";\n boolean first=true;\n int n=0,i=0,taro=0,hana=0;\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tn=Integer.parseInt(line);\n \t\tfirst=false;\n \t}else{\n \t\tString[] str=line.split(\" \");\n \t\tif(str[0].compareTo(str[1])>0){\n \t\t\ttaro+=3;\n \t\t}else if(str[0].compareTo(str[1])<0){\n \t\t\thana+=3;\n \t\t}else{\n \t\t\ttaro+=1;\n \t\t\thana+=1;\n \t\t}\n \t\ti++;\n \t\tif(i==n){\n \t\t\tSystem.out.println(taro+\" \"+hana);\n \t\t}\n \t}\n \t\n }\n }\n }\n\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { // TODO ????????????????????????????????????????????? try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) { String line,result=""; boolean first=true; int n=0,i=0,taro=0,hana=0; while ((line = br.readLine()) != null) { if(first){ n=Integer.parseInt(line); first=false; }else{ String[] str=line.split(" "); if(str[0].compareTo(str[1])>0){ taro+=3; }else if(str[0].compareTo(str[1])<0){ hana+=3; }else{ taro+=1; hana+=1; } i++; if(i==n){ System.out.println(taro+" "+hana); } } } } } }
[ 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, 17, 41, 13, 20, 17, 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, 4, 18, 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, 0, 13, 2, 13, 17, 14, 2, 4, 18, 18, 13, 17, 18, 13, 17, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 121, 11 ], [ 121, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 14, 24 ], [ 24, 25 ], [ 24, 26 ], [ 14, 27 ], [ 27, 28 ], [ 27, 29 ], [ 14, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 36, 37 ], [ 37, 38 ], [ 14, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 39, 47 ], [ 47, 48 ], [ 48, 49 ], [ 39, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 54, 59 ], [ 51, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 67, 68 ], [ 67, 69 ], [ 61, 70 ], [ 60, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 74, 75 ], [ 60, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 83, 84 ], [ 83, 85 ], [ 77, 86 ], [ 76, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 89, 91 ], [ 76, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 99, 100 ], [ 99, 101 ], [ 93, 102 ], [ 92, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 14, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 114, 114 ], [ 114, 115 ], [ 114, 116 ], [ 114, 117 ], [ 12, 118 ], [ 118, 119 ], [ 0, 120 ], [ 120, 121 ], [ 120, 122 ] ]
[ "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\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint T=0, H=0, n=0;\n\t\tString[] animal = new String[2];\n\t\tn = Integer.parseInt(br.readLine());\n\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tanimal = br.readLine().split(\" \");\n\t\t\tif(animal[0].compareTo(animal[1]) == 0)\n\t\t\t{\n\t\t\t\tT++;\n\t\t\t\tH++;\n\t\t\t}\n\t\t\telse if(animal[0].compareTo(animal[1]) > 0)\tT = T + 3;\n\t\t\telse if(animal[0].compareTo(animal[1]) < 0)\tH = H + 3;\n\t\t}\n\t\tSystem.out.println(T + \" \" + H);\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{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint T=0, H=0, n=0;\n\t\tString[] animal = new String[2];\n\t\tn = Integer.parseInt(br.readLine());\n\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tanimal = br.readLine().split(\" \");\n\t\t\tif(animal[0].compareTo(animal[1]) == 0)\n\t\t\t{\n\t\t\t\tT++;\n\t\t\t\tH++;\n\t\t\t}\n\t\t\telse if(animal[0].compareTo(animal[1]) > 0)\tT = T + 3;\n\t\t\telse if(animal[0].compareTo(animal[1]) < 0)\tH = H + 3;\n\t\t}\n\t\tSystem.out.println(T + \" \" + H);\n\t}\n}", "Main", "public static void main(String[] args)throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint T=0, H=0, n=0;\n\t\tString[] animal = new String[2];\n\t\tn = Integer.parseInt(br.readLine());\n\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tanimal = br.readLine().split(\" \");\n\t\t\tif(animal[0].compareTo(animal[1]) == 0)\n\t\t\t{\n\t\t\t\tT++;\n\t\t\t\tH++;\n\t\t\t}\n\t\t\telse if(animal[0].compareTo(animal[1]) > 0)\tT = T + 3;\n\t\t\telse if(animal[0].compareTo(animal[1]) < 0)\tH = H + 3;\n\t\t}\n\t\tSystem.out.println(T + \" \" + H);\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint T=0, H=0, n=0;\n\t\tString[] animal = new String[2];\n\t\tn = Integer.parseInt(br.readLine());\n\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tanimal = br.readLine().split(\" \");\n\t\t\tif(animal[0].compareTo(animal[1]) == 0)\n\t\t\t{\n\t\t\t\tT++;\n\t\t\t\tH++;\n\t\t\t}\n\t\t\telse if(animal[0].compareTo(animal[1]) > 0)\tT = T + 3;\n\t\t\telse if(animal[0].compareTo(animal[1]) < 0)\tH = H + 3;\n\t\t}\n\t\tSystem.out.println(T + \" \" + H);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int T=0", "T", "0", "H=0", "H", "0", "n=0;", "n", "0", "String[] animal = new String[2];", "animal", "new String[2]", "2", "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{\n\t\t\tanimal = br.readLine().split(\" \");\n\t\t\tif(animal[0].compareTo(animal[1]) == 0)\n\t\t\t{\n\t\t\t\tT++;\n\t\t\t\tH++;\n\t\t\t}\n\t\t\telse if(animal[0].compareTo(animal[1]) > 0)\tT = T + 3;\n\t\t\telse if(animal[0].compareTo(animal[1]) < 0)\tH = H + 3;\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tanimal = br.readLine().split(\" \");\n\t\t\tif(animal[0].compareTo(animal[1]) == 0)\n\t\t\t{\n\t\t\t\tT++;\n\t\t\t\tH++;\n\t\t\t}\n\t\t\telse if(animal[0].compareTo(animal[1]) > 0)\tT = T + 3;\n\t\t\telse if(animal[0].compareTo(animal[1]) < 0)\tH = H + 3;\n\t\t}", "{\n\t\t\tanimal = br.readLine().split(\" \");\n\t\t\tif(animal[0].compareTo(animal[1]) == 0)\n\t\t\t{\n\t\t\t\tT++;\n\t\t\t\tH++;\n\t\t\t}\n\t\t\telse if(animal[0].compareTo(animal[1]) > 0)\tT = T + 3;\n\t\t\telse if(animal[0].compareTo(animal[1]) < 0)\tH = H + 3;\n\t\t}", "animal = br.readLine().split(\" \")", "animal", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "if(animal[0].compareTo(animal[1]) == 0)\n\t\t\t{\n\t\t\t\tT++;\n\t\t\t\tH++;\n\t\t\t}\n\t\t\telse if(animal[0].compareTo(animal[1]) > 0)\tT = T + 3;\n\t\t\telse if(animal[0].compareTo(animal[1]) < 0)\tH = H + 3;", "animal[0].compareTo(animal[1]) == 0", "animal[0].compareTo(animal[1])", "animal[0].compareTo", "animal[0]", "animal", "0", "animal[1]", "animal", "1", "0", "{\n\t\t\t\tT++;\n\t\t\t\tH++;\n\t\t\t}", "T++", "T", "H++", "H", "if(animal[0].compareTo(animal[1]) > 0)\tT = T + 3;\n\t\t\telse if(animal[0].compareTo(animal[1]) < 0)\tH = H + 3;", "animal[0].compareTo(animal[1]) > 0", "animal[0].compareTo(animal[1])", "animal[0].compareTo", "animal[0]", "animal", "0", "animal[1]", "animal", "1", "0", "T = T + 3", "T", "T + 3", "T", "3", "if(animal[0].compareTo(animal[1]) < 0)\tH = H + 3;", "animal[0].compareTo(animal[1]) < 0", "animal[0].compareTo(animal[1])", "animal[0].compareTo", "animal[0]", "animal", "0", "animal[1]", "animal", "1", "0", "H = H + 3", "H", "H + 3", "H", "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{\n\tpublic static void main(String[] args)throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint T=0, H=0, n=0;\n\t\tString[] animal = new String[2];\n\t\tn = Integer.parseInt(br.readLine());\n\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tanimal = br.readLine().split(\" \");\n\t\t\tif(animal[0].compareTo(animal[1]) == 0)\n\t\t\t{\n\t\t\t\tT++;\n\t\t\t\tH++;\n\t\t\t}\n\t\t\telse if(animal[0].compareTo(animal[1]) > 0)\tT = T + 3;\n\t\t\telse if(animal[0].compareTo(animal[1]) < 0)\tH = H + 3;\n\t\t}\n\t\tSystem.out.println(T + \" \" + H);\n\t}\n}", "public class Main\n{\n\tpublic static void main(String[] args)throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint T=0, H=0, n=0;\n\t\tString[] animal = new String[2];\n\t\tn = Integer.parseInt(br.readLine());\n\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tanimal = br.readLine().split(\" \");\n\t\t\tif(animal[0].compareTo(animal[1]) == 0)\n\t\t\t{\n\t\t\t\tT++;\n\t\t\t\tH++;\n\t\t\t}\n\t\t\telse if(animal[0].compareTo(animal[1]) > 0)\tT = T + 3;\n\t\t\telse if(animal[0].compareTo(animal[1]) < 0)\tH = H + 3;\n\t\t}\n\t\tSystem.out.println(T + \" \" + H);\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 T=0, H=0, n=0; String[] animal = new String[2]; n = Integer.parseInt(br.readLine()); for(int i=0; i<n; i++) { animal = br.readLine().split(" "); if(animal[0].compareTo(animal[1]) == 0) { T++; H++; } else if(animal[0].compareTo(animal[1]) > 0) T = T + 3; else if(animal[0].compareTo(animal[1]) < 0) H = H + 3; } System.out.println(T + " " + H); } }
[ 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, 2, 13, 13, 13, 30, 40, 13, 14, 2, 13, 13, 30, 0, 13, 17, 40, 13, 30, 0, 13, 17, 0, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 29, 4, 18, 18, 13, 13, 17, 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 ], [ 48, 50 ], [ 47, 51 ], [ 46, 52 ], [ 52, 53 ], [ 53, 54 ], [ 46, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 55, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 69, 71 ], [ 35, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 76, 83 ], [ 8, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 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\n int n = sc.nextInt();\n\n int count = 0;\n boolean hit = false;\n for (int i = 0; i < n; i++) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n if (a == b && hit) {\n count++;\n } else if (a == b) {\n hit = true;\n count++;\n } else {\n hit = false;\n count = 0;\n }\n\n if (count >= 3) {\n System.out.println(\"Yes\");\n return;\n }\n }\n\n System.out.println(\"No\");\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n\n int count = 0;\n boolean hit = false;\n for (int i = 0; i < n; i++) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n if (a == b && hit) {\n count++;\n } else if (a == b) {\n hit = true;\n count++;\n } else {\n hit = false;\n count = 0;\n }\n\n if (count >= 3) {\n System.out.println(\"Yes\");\n return;\n }\n }\n\n System.out.println(\"No\");\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n\n int count = 0;\n boolean hit = false;\n for (int i = 0; i < n; i++) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n if (a == b && hit) {\n count++;\n } else if (a == b) {\n hit = true;\n count++;\n } else {\n hit = false;\n count = 0;\n }\n\n if (count >= 3) {\n System.out.println(\"Yes\");\n return;\n }\n }\n\n System.out.println(\"No\");\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n\n int count = 0;\n boolean hit = false;\n for (int i = 0; i < n; i++) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n if (a == b && hit) {\n count++;\n } else if (a == b) {\n hit = true;\n count++;\n } else {\n hit = false;\n count = 0;\n }\n\n if (count >= 3) {\n System.out.println(\"Yes\");\n return;\n }\n }\n\n System.out.println(\"No\");\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int count = 0;", "count", "0", "boolean hit = false;", "hit", "false", "for (int i = 0; i < n; i++) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n if (a == b && hit) {\n count++;\n } else if (a == b) {\n hit = true;\n count++;\n } else {\n hit = false;\n count = 0;\n }\n\n if (count >= 3) {\n System.out.println(\"Yes\");\n return;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n if (a == b && hit) {\n count++;\n } else if (a == b) {\n hit = true;\n count++;\n } else {\n hit = false;\n count = 0;\n }\n\n if (count >= 3) {\n System.out.println(\"Yes\");\n return;\n }\n }", "{\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n if (a == b && hit) {\n count++;\n } else if (a == b) {\n hit = true;\n count++;\n } else {\n hit = false;\n count = 0;\n }\n\n if (count >= 3) {\n System.out.println(\"Yes\");\n return;\n }\n }", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "if (a == b && hit) {\n count++;\n } else if (a == b) {\n hit = true;\n count++;\n } else {\n hit = false;\n count = 0;\n }", "a == b && hit", "a == b", "a", "b", "hit", "{\n count++;\n }", "count++", "count", "if (a == b) {\n hit = true;\n count++;\n } else {\n hit = false;\n count = 0;\n }", "a == b", "a", "b", "{\n hit = true;\n count++;\n }", "hit = true", "hit", "true", "count++", "count", "{\n hit = false;\n count = 0;\n }", "hit = false", "hit", "false", "count = 0", "count", "0", "if (count >= 3) {\n System.out.println(\"Yes\");\n return;\n }", "count >= 3", "count", "3", "{\n System.out.println(\"Yes\");\n return;\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "return;", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n\n int count = 0;\n boolean hit = false;\n for (int i = 0; i < n; i++) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n if (a == b && hit) {\n count++;\n } else if (a == b) {\n hit = true;\n count++;\n } else {\n hit = false;\n count = 0;\n }\n\n if (count >= 3) {\n System.out.println(\"Yes\");\n return;\n }\n }\n\n System.out.println(\"No\");\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n\n int count = 0;\n boolean hit = false;\n for (int i = 0; i < n; i++) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n\n if (a == b && hit) {\n count++;\n } else if (a == b) {\n hit = true;\n count++;\n } else {\n hit = false;\n count = 0;\n }\n\n if (count >= 3) {\n System.out.println(\"Yes\");\n return;\n }\n }\n\n System.out.println(\"No\");\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 count = 0; boolean hit = false; for (int i = 0; i < n; i++) { int a = sc.nextInt(); int b = sc.nextInt(); if (a == b && hit) { count++; } else if (a == b) { hit = true; count++; } else { hit = false; count = 0; } if (count >= 3) { System.out.println("Yes"); return; } } System.out.println("No"); } }
[ 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, 13, 13, 30, 0, 13, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 3, 14, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 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 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 46, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 35, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 8, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 67, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 6, 83 ], [ 83, 84 ], [ 0, 85 ], [ 85, 86 ], [ 85, 87 ] ]
[ "import java.util.Scanner;\n\n//atcoderはScannerクラスのsc.next()で行ける\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int flagcnt = 0;\n boolean flag = false;\n for (int i = 0; i < n; i++) {\n int i1 = sc.nextInt();\n int i2 = sc.nextInt();\n if (i1 == i2) {\n flagcnt += 1;\n } else {\n flagcnt = 0;\n }\n if (flagcnt > 2) {\n flag = true;\n break;\n }\n }\n if (flag) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int flagcnt = 0;\n boolean flag = false;\n for (int i = 0; i < n; i++) {\n int i1 = sc.nextInt();\n int i2 = sc.nextInt();\n if (i1 == i2) {\n flagcnt += 1;\n } else {\n flagcnt = 0;\n }\n if (flagcnt > 2) {\n flag = true;\n break;\n }\n }\n if (flag) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int flagcnt = 0;\n boolean flag = false;\n for (int i = 0; i < n; i++) {\n int i1 = sc.nextInt();\n int i2 = sc.nextInt();\n if (i1 == i2) {\n flagcnt += 1;\n } else {\n flagcnt = 0;\n }\n if (flagcnt > 2) {\n flag = true;\n break;\n }\n }\n if (flag) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int flagcnt = 0;\n boolean flag = false;\n for (int i = 0; i < n; i++) {\n int i1 = sc.nextInt();\n int i2 = sc.nextInt();\n if (i1 == i2) {\n flagcnt += 1;\n } else {\n flagcnt = 0;\n }\n if (flagcnt > 2) {\n flag = true;\n break;\n }\n }\n if (flag) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int flagcnt = 0;", "flagcnt", "0", "boolean flag = false;", "flag", "false", "for (int i = 0; i < n; i++) {\n int i1 = sc.nextInt();\n int i2 = sc.nextInt();\n if (i1 == i2) {\n flagcnt += 1;\n } else {\n flagcnt = 0;\n }\n if (flagcnt > 2) {\n flag = true;\n break;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n int i1 = sc.nextInt();\n int i2 = sc.nextInt();\n if (i1 == i2) {\n flagcnt += 1;\n } else {\n flagcnt = 0;\n }\n if (flagcnt > 2) {\n flag = true;\n break;\n }\n }", "{\n int i1 = sc.nextInt();\n int i2 = sc.nextInt();\n if (i1 == i2) {\n flagcnt += 1;\n } else {\n flagcnt = 0;\n }\n if (flagcnt > 2) {\n flag = true;\n break;\n }\n }", "int i1 = sc.nextInt();", "i1", "sc.nextInt()", "sc.nextInt", "sc", "int i2 = sc.nextInt();", "i2", "sc.nextInt()", "sc.nextInt", "sc", "if (i1 == i2) {\n flagcnt += 1;\n } else {\n flagcnt = 0;\n }", "i1 == i2", "i1", "i2", "{\n flagcnt += 1;\n }", "flagcnt += 1", "flagcnt", "1", "{\n flagcnt = 0;\n }", "flagcnt = 0", "flagcnt", "0", "if (flagcnt > 2) {\n flag = true;\n break;\n }", "flagcnt > 2", "flagcnt", "2", "{\n flag = true;\n break;\n }", "flag = true", "flag", "true", "break;", "if (flag) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }", "flag", "{\n System.out.println(\"Yes\");\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n System.out.println(\"No\");\n }", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "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 flagcnt = 0;\n boolean flag = false;\n for (int i = 0; i < n; i++) {\n int i1 = sc.nextInt();\n int i2 = sc.nextInt();\n if (i1 == i2) {\n flagcnt += 1;\n } else {\n flagcnt = 0;\n }\n if (flagcnt > 2) {\n flag = true;\n break;\n }\n }\n if (flag) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\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 flagcnt = 0;\n boolean flag = false;\n for (int i = 0; i < n; i++) {\n int i1 = sc.nextInt();\n int i2 = sc.nextInt();\n if (i1 == i2) {\n flagcnt += 1;\n } else {\n flagcnt = 0;\n }\n if (flagcnt > 2) {\n flag = true;\n break;\n }\n }\n if (flag) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n\n }\n}", "Main" ]
import java.util.Scanner; //atcoderはScannerクラスのsc.next()で行ける public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int flagcnt = 0; boolean flag = false; for (int i = 0; i < n; i++) { int i1 = sc.nextInt(); int i2 = sc.nextInt(); if (i1 == i2) { flagcnt += 1; } else { flagcnt = 0; } if (flagcnt > 2) { flag = true; break; } } if (flag) { System.out.println("Yes"); } else { System.out.println("No"); } } }
[ 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, 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, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 13, 13, 30, 40, 13, 30, 0, 13, 17, 14, 2, 40, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 0, 13, 17, 14, 2, 40, 13, 2, 13, 17, 4, 18, 18, 13, 13, 17, 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 ], [ 20, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 14, 31 ], [ 31, 32 ], [ 31, 33 ], [ 14, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 34, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 49, 56 ], [ 46, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 62, 64 ], [ 46, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 70, 72 ], [ 46, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 78, 79 ], [ 73, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 46, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 88, 89 ], [ 88, 90 ], [ 84, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 91, 98 ], [ 98, 99 ], [ 98, 100 ], [ 14, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 105, 106 ], [ 105, 107 ], [ 101, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 12, 114 ], [ 114, 115 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\nclass Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tint n = Integer.parseInt(br.readLine().trim());\n \tint count=0;\n \tboolean flag = false;\n \tfor(int i=1;i<=n;i++){\n String s[] = br.readLine().trim().split(\" \");\n int a = Integer.parseInt(s[0]);\n int b = Integer.parseInt(s[1]);\n if(a == b){\n\t\t\t\tcount++;\n }\n else{\n \tcount=0;\n }\n if(!flag && count == 3){\n \tSystem.out.println(\"Yes\");\n \t\tflag = true;\n }\n }\n \tif(!flag && count!=3)\n \t\tSystem.out.println(\"No\");\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tint n = Integer.parseInt(br.readLine().trim());\n \tint count=0;\n \tboolean flag = false;\n \tfor(int i=1;i<=n;i++){\n String s[] = br.readLine().trim().split(\" \");\n int a = Integer.parseInt(s[0]);\n int b = Integer.parseInt(s[1]);\n if(a == b){\n\t\t\t\tcount++;\n }\n else{\n \tcount=0;\n }\n if(!flag && count == 3){\n \tSystem.out.println(\"Yes\");\n \t\tflag = true;\n }\n }\n \tif(!flag && count!=3)\n \t\tSystem.out.println(\"No\");\n }\n}", "Main", "public static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tint n = Integer.parseInt(br.readLine().trim());\n \tint count=0;\n \tboolean flag = false;\n \tfor(int i=1;i<=n;i++){\n String s[] = br.readLine().trim().split(\" \");\n int a = Integer.parseInt(s[0]);\n int b = Integer.parseInt(s[1]);\n if(a == b){\n\t\t\t\tcount++;\n }\n else{\n \tcount=0;\n }\n if(!flag && count == 3){\n \tSystem.out.println(\"Yes\");\n \t\tflag = true;\n }\n }\n \tif(!flag && count!=3)\n \t\tSystem.out.println(\"No\");\n }", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tint n = Integer.parseInt(br.readLine().trim());\n \tint count=0;\n \tboolean flag = false;\n \tfor(int i=1;i<=n;i++){\n String s[] = br.readLine().trim().split(\" \");\n int a = Integer.parseInt(s[0]);\n int b = Integer.parseInt(s[1]);\n if(a == b){\n\t\t\t\tcount++;\n }\n else{\n \tcount=0;\n }\n if(!flag && count == 3){\n \tSystem.out.println(\"Yes\");\n \t\tflag = true;\n }\n }\n \tif(!flag && count!=3)\n \t\tSystem.out.println(\"No\");\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int n = Integer.parseInt(br.readLine().trim());", "n", "Integer.parseInt(br.readLine().trim())", "Integer.parseInt", "Integer", "br.readLine().trim()", "br.readLine().trim", "br.readLine()", "br.readLine", "br", "int count=0;", "count", "0", "boolean flag = false;", "flag", "false", "for(int i=1;i<=n;i++){\n String s[] = br.readLine().trim().split(\" \");\n int a = Integer.parseInt(s[0]);\n int b = Integer.parseInt(s[1]);\n if(a == b){\n\t\t\t\tcount++;\n }\n else{\n \tcount=0;\n }\n if(!flag && count == 3){\n \tSystem.out.println(\"Yes\");\n \t\tflag = true;\n }\n }", "int i=1;", "int i=1;", "i", "1", "i<=n", "i", "n", "i++", "i++", "i", "{\n String s[] = br.readLine().trim().split(\" \");\n int a = Integer.parseInt(s[0]);\n int b = Integer.parseInt(s[1]);\n if(a == b){\n\t\t\t\tcount++;\n }\n else{\n \tcount=0;\n }\n if(!flag && count == 3){\n \tSystem.out.println(\"Yes\");\n \t\tflag = true;\n }\n }", "{\n String s[] = br.readLine().trim().split(\" \");\n int a = Integer.parseInt(s[0]);\n int b = Integer.parseInt(s[1]);\n if(a == b){\n\t\t\t\tcount++;\n }\n else{\n \tcount=0;\n }\n if(!flag && count == 3){\n \tSystem.out.println(\"Yes\");\n \t\tflag = true;\n }\n }", "String s[] = br.readLine().trim().split(\" \");", "s", "br.readLine().trim().split(\" \")", "br.readLine().trim().split", "br.readLine().trim()", "br.readLine().trim", "br.readLine()", "br.readLine", "br", "\" \"", "int a = Integer.parseInt(s[0]);", "a", "Integer.parseInt(s[0])", "Integer.parseInt", "Integer", "s[0]", "s", "0", "int b = Integer.parseInt(s[1]);", "b", "Integer.parseInt(s[1])", "Integer.parseInt", "Integer", "s[1]", "s", "1", "if(a == b){\n\t\t\t\tcount++;\n }\n else{\n \tcount=0;\n }", "a == b", "a", "b", "{\n\t\t\t\tcount++;\n }", "count++", "count", "{\n \tcount=0;\n }", "count=0", "count", "0", "if(!flag && count == 3){\n \tSystem.out.println(\"Yes\");\n \t\tflag = true;\n }", "!flag && count == 3", "!flag", "flag", "count == 3", "count", "3", "{\n \tSystem.out.println(\"Yes\");\n \t\tflag = true;\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "flag = true", "flag", "true", "if(!flag && count!=3)\n \t\tSystem.out.println(\"No\");", "!flag && count!=3", "!flag", "flag", "count!=3", "count", "3", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine().trim()); int count=0; boolean flag = false; for(int i=1;i<=n;i++){ String s[] = br.readLine().trim().split(" "); int a = Integer.parseInt(s[0]); int b = Integer.parseInt(s[1]); if(a == b){ count++; } else{ count=0; } if(!flag && count == 3){ System.out.println("Yes"); flag = true; } } if(!flag && count!=3) System.out.println("No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 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, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 4, 18, 13, 13, 4, 18, 13, 13, 30, 40, 13, 30, 0, 13, 17, 14, 2, 13, 17, 30, 40, 13, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 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 ], [ 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 ], [ 134, 26 ], [ 134, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 33 ], [ 33, 34 ], [ 33, 35 ], [ 29, 36 ], [ 36, 37 ], [ 36, 38 ], [ 29, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 29, 44 ], [ 44, 45 ], [ 44, 46 ], [ 29, 47 ], [ 47, 48 ], [ 47, 49 ], [ 29, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 55, 56 ], [ 55, 57 ], [ 50, 58 ], [ 58, 59 ], [ 59, 60 ], [ 50, 61 ], [ 62, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 66, 67 ], [ 67, 68 ], [ 62, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 72, 73 ], [ 73, 74 ], [ 29, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 80, 81 ], [ 80, 82 ], [ 75, 83 ], [ 83, 84 ], [ 84, 85 ], [ 75, 86 ], [ 87, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 89, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 88, 99 ], [ 99, 100 ], [ 100, 101 ], [ 88, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 87, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 110, 111 ], [ 111, 112 ], [ 29, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 113, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 125, 130 ], [ 27, 131 ], [ 131, 132 ], [ 0, 133 ], [ 133, 134 ], [ 133, 135 ] ]
[ "import java.io.BufferedReader;\nimport java.io.*;\nimport java.util.*;\nimport java.util.ArrayList;\nimport java.util.Iterator;\nimport java.util.List;\nimport java.util.Collections;\nimport java.util.Arrays;\n\npublic class Main {\n\tpublic static void main(final String[] args){\n \n final Scanner sc = new Scanner(System.in);\n final List<Integer> list = new ArrayList<>();\n final List<Integer> list2 = new ArrayList<>();\n //final List<Long> list3 = new ArrayList<>();\n\n int n = sc.nextInt();\n int count = 0;\n int check = 0;\n\n for(int i = 0; i < n ; i++){\n list.add(sc.nextInt());\n list2.add(sc.nextInt());\n }\n\n for(int i = 0; i < n ; i++){\n if(list.get(i).equals(list2.get(i))){\n count++;\n }else{\n count = 0;\n }\n if(count == 3){\n check++;\n }\n }\n\n if(check == 0){\n System.out.println(\"No\");\n }else{\n System.out.println(\"Yes\");\n }\n\n \n\n \n\n \n\n \n\n\n\n\n \n\n\n\n\n\n\n\n}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Iterator;", "Iterator", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Collections;", "Collections", "java.util", "import java.util.Arrays;", "Arrays", "java.util", "public class Main {\n\tpublic static void main(final String[] args){\n \n final Scanner sc = new Scanner(System.in);\n final List<Integer> list = new ArrayList<>();\n final List<Integer> list2 = new ArrayList<>();\n //final List<Long> list3 = new ArrayList<>();\n\n int n = sc.nextInt();\n int count = 0;\n int check = 0;\n\n for(int i = 0; i < n ; i++){\n list.add(sc.nextInt());\n list2.add(sc.nextInt());\n }\n\n for(int i = 0; i < n ; i++){\n if(list.get(i).equals(list2.get(i))){\n count++;\n }else{\n count = 0;\n }\n if(count == 3){\n check++;\n }\n }\n\n if(check == 0){\n System.out.println(\"No\");\n }else{\n System.out.println(\"Yes\");\n }\n\n \n\n \n\n \n\n \n\n\n\n\n \n\n\n\n\n\n\n\n}\n}", "Main", "public static void main(final String[] args){\n \n final Scanner sc = new Scanner(System.in);\n final List<Integer> list = new ArrayList<>();\n final List<Integer> list2 = new ArrayList<>();\n //final List<Long> list3 = new ArrayList<>();\n\n int n = sc.nextInt();\n int count = 0;\n int check = 0;\n\n for(int i = 0; i < n ; i++){\n list.add(sc.nextInt());\n list2.add(sc.nextInt());\n }\n\n for(int i = 0; i < n ; i++){\n if(list.get(i).equals(list2.get(i))){\n count++;\n }else{\n count = 0;\n }\n if(count == 3){\n check++;\n }\n }\n\n if(check == 0){\n System.out.println(\"No\");\n }else{\n System.out.println(\"Yes\");\n }\n\n \n\n \n\n \n\n \n\n\n\n\n \n\n\n\n\n\n\n\n}", "main", "{\n \n final Scanner sc = new Scanner(System.in);\n final List<Integer> list = new ArrayList<>();\n final List<Integer> list2 = new ArrayList<>();\n //final List<Long> list3 = new ArrayList<>();\n\n int n = sc.nextInt();\n int count = 0;\n int check = 0;\n\n for(int i = 0; i < n ; i++){\n list.add(sc.nextInt());\n list2.add(sc.nextInt());\n }\n\n for(int i = 0; i < n ; i++){\n if(list.get(i).equals(list2.get(i))){\n count++;\n }else{\n count = 0;\n }\n if(count == 3){\n check++;\n }\n }\n\n if(check == 0){\n System.out.println(\"No\");\n }else{\n System.out.println(\"Yes\");\n }\n\n \n\n \n\n \n\n \n\n\n\n\n \n\n\n\n\n\n\n\n}", "final Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "final List<Integer> list = new ArrayList<>();", "list", "new ArrayList<>()", "final List<Integer> list2 = new ArrayList<>();", "list2", "new ArrayList<>()", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int count = 0;", "count", "0", "int check = 0;", "check", "0", "for(int i = 0; i < n ; i++){\n list.add(sc.nextInt());\n list2.add(sc.nextInt());\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n list.add(sc.nextInt());\n list2.add(sc.nextInt());\n }", "{\n list.add(sc.nextInt());\n list2.add(sc.nextInt());\n }", "list.add(sc.nextInt())", "list.add", "list", "sc.nextInt()", "sc.nextInt", "sc", "list2.add(sc.nextInt())", "list2.add", "list2", "sc.nextInt()", "sc.nextInt", "sc", "for(int i = 0; i < n ; i++){\n if(list.get(i).equals(list2.get(i))){\n count++;\n }else{\n count = 0;\n }\n if(count == 3){\n check++;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n if(list.get(i).equals(list2.get(i))){\n count++;\n }else{\n count = 0;\n }\n if(count == 3){\n check++;\n }\n }", "{\n if(list.get(i).equals(list2.get(i))){\n count++;\n }else{\n count = 0;\n }\n if(count == 3){\n check++;\n }\n }", "if(list.get(i).equals(list2.get(i))){\n count++;\n }else{\n count = 0;\n }", "list.get(i).equals(list2.get(i))", "list.get(i).equals", "list.get(i)", "list.get", "list", "i", "list2.get(i)", "list2.get", "list2", "i", "{\n count++;\n }", "count++", "count", "{\n count = 0;\n }", "count = 0", "count", "0", "if(count == 3){\n check++;\n }", "count == 3", "count", "3", "{\n check++;\n }", "check++", "check", "if(check == 0){\n System.out.println(\"No\");\n }else{\n System.out.println(\"Yes\");\n }", "check == 0", "check", "0", "{\n System.out.println(\"No\");\n }", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "{\n System.out.println(\"Yes\");\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "final String[] args", "args", "public class Main {\n\tpublic static void main(final String[] args){\n \n final Scanner sc = new Scanner(System.in);\n final List<Integer> list = new ArrayList<>();\n final List<Integer> list2 = new ArrayList<>();\n //final List<Long> list3 = new ArrayList<>();\n\n int n = sc.nextInt();\n int count = 0;\n int check = 0;\n\n for(int i = 0; i < n ; i++){\n list.add(sc.nextInt());\n list2.add(sc.nextInt());\n }\n\n for(int i = 0; i < n ; i++){\n if(list.get(i).equals(list2.get(i))){\n count++;\n }else{\n count = 0;\n }\n if(count == 3){\n check++;\n }\n }\n\n if(check == 0){\n System.out.println(\"No\");\n }else{\n System.out.println(\"Yes\");\n }\n\n \n\n \n\n \n\n \n\n\n\n\n \n\n\n\n\n\n\n\n}\n}", "public class Main {\n\tpublic static void main(final String[] args){\n \n final Scanner sc = new Scanner(System.in);\n final List<Integer> list = new ArrayList<>();\n final List<Integer> list2 = new ArrayList<>();\n //final List<Long> list3 = new ArrayList<>();\n\n int n = sc.nextInt();\n int count = 0;\n int check = 0;\n\n for(int i = 0; i < n ; i++){\n list.add(sc.nextInt());\n list2.add(sc.nextInt());\n }\n\n for(int i = 0; i < n ; i++){\n if(list.get(i).equals(list2.get(i))){\n count++;\n }else{\n count = 0;\n }\n if(count == 3){\n check++;\n }\n }\n\n if(check == 0){\n System.out.println(\"No\");\n }else{\n System.out.println(\"Yes\");\n }\n\n \n\n \n\n \n\n \n\n\n\n\n \n\n\n\n\n\n\n\n}\n}", "Main" ]
import java.io.BufferedReader; import java.io.*; import java.util.*; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.Collections; import java.util.Arrays; public class Main { public static void main(final String[] args){ final Scanner sc = new Scanner(System.in); final List<Integer> list = new ArrayList<>(); final List<Integer> list2 = new ArrayList<>(); //final List<Long> list3 = new ArrayList<>(); int n = sc.nextInt(); int count = 0; int check = 0; for(int i = 0; i < n ; i++){ list.add(sc.nextInt()); list2.add(sc.nextInt()); } for(int i = 0; i < n ; i++){ if(list.get(i).equals(list2.get(i))){ count++; }else{ count = 0; } if(count == 3){ check++; } } if(check == 0){ System.out.println("No"); }else{ System.out.println("Yes"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 0, 13, 17, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 3, 30, 14, 4, 18, 13, 17, 30, 30, 0, 13, 17, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 108, 5 ], [ 108, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 8, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 41, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 52, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 61, 63 ], [ 57, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 64, 73 ], [ 41, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 74, 79 ], [ 74, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 41, 84 ], [ 84, 85 ], [ 84, 86 ], [ 8, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 87, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 8, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 6, 105 ], [ 105, 106 ], [ 0, 107 ], [ 107, 108 ], [ 107, 109 ] ]
[ "import java.util.*;\n// 繰り返し回数N\n// 一行目数値1 数値2 \n// 二行目数値1 数値2 で渡された場合で渡された場合\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 String ansFlg = \"\";\n String ans = \"\";\n int stack = 0;\n String stackFlg = \"\";\n for (int i = 0; i < N; i++) {\n String token1 = sc.next();\n String token2 = sc.next();\n // 文字列比較は == ではなく StringA.equals(StringB)\n if(token1.equals(token2)){\n stack += 1;\n stackFlg = \"X\";\n if(stack == 3){\n ansFlg = \"X\";\n break;\n }else{\n //特になし\n }\n }\n // stackFlgがない場合にstackをリセットし、その後スタックフラグを切る\n if(stackFlg.equals(\"X\")){\n //特になし\n }else{\n stack = 0;\n }\n stackFlg = \"\";\n }\n \n if(ansFlg == \"X\"){\n ans = \"Yes\";\n }else{\n ans = \"No\";\n }\n System.out.println(ans);\n }\n}", "import java.util.*;", "util.*", "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 String ansFlg = \"\";\n String ans = \"\";\n int stack = 0;\n String stackFlg = \"\";\n for (int i = 0; i < N; i++) {\n String token1 = sc.next();\n String token2 = sc.next();\n // 文字列比較は == ではなく StringA.equals(StringB)\n if(token1.equals(token2)){\n stack += 1;\n stackFlg = \"X\";\n if(stack == 3){\n ansFlg = \"X\";\n break;\n }else{\n //特になし\n }\n }\n // stackFlgがない場合にstackをリセットし、その後スタックフラグを切る\n if(stackFlg.equals(\"X\")){\n //特になし\n }else{\n stack = 0;\n }\n stackFlg = \"\";\n }\n \n if(ansFlg == \"X\"){\n ans = \"Yes\";\n }else{\n ans = \"No\";\n }\n System.out.println(ans);\n }\n}", "Main", "public static void main(String[] args ) throws Exception {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String ansFlg = \"\";\n String ans = \"\";\n int stack = 0;\n String stackFlg = \"\";\n for (int i = 0; i < N; i++) {\n String token1 = sc.next();\n String token2 = sc.next();\n // 文字列比較は == ではなく StringA.equals(StringB)\n if(token1.equals(token2)){\n stack += 1;\n stackFlg = \"X\";\n if(stack == 3){\n ansFlg = \"X\";\n break;\n }else{\n //特になし\n }\n }\n // stackFlgがない場合にstackをリセットし、その後スタックフラグを切る\n if(stackFlg.equals(\"X\")){\n //特になし\n }else{\n stack = 0;\n }\n stackFlg = \"\";\n }\n \n if(ansFlg == \"X\"){\n ans = \"Yes\";\n }else{\n ans = \"No\";\n }\n System.out.println(ans);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n String ansFlg = \"\";\n String ans = \"\";\n int stack = 0;\n String stackFlg = \"\";\n for (int i = 0; i < N; i++) {\n String token1 = sc.next();\n String token2 = sc.next();\n // 文字列比較は == ではなく StringA.equals(StringB)\n if(token1.equals(token2)){\n stack += 1;\n stackFlg = \"X\";\n if(stack == 3){\n ansFlg = \"X\";\n break;\n }else{\n //特になし\n }\n }\n // stackFlgがない場合にstackをリセットし、その後スタックフラグを切る\n if(stackFlg.equals(\"X\")){\n //特になし\n }else{\n stack = 0;\n }\n stackFlg = \"\";\n }\n \n if(ansFlg == \"X\"){\n ans = \"Yes\";\n }else{\n ans = \"No\";\n }\n System.out.println(ans);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "String ansFlg = \"\";", "ansFlg", "\"\"", "String ans = \"\";", "ans", "\"\"", "int stack = 0;", "stack", "0", "String stackFlg = \"\";", "stackFlg", "\"\"", "for (int i = 0; i < N; i++) {\n String token1 = sc.next();\n String token2 = sc.next();\n // 文字列比較は == ではなく StringA.equals(StringB)\n if(token1.equals(token2)){\n stack += 1;\n stackFlg = \"X\";\n if(stack == 3){\n ansFlg = \"X\";\n break;\n }else{\n //特になし\n }\n }\n // stackFlgがない場合にstackをリセットし、その後スタックフラグを切る\n if(stackFlg.equals(\"X\")){\n //特になし\n }else{\n stack = 0;\n }\n stackFlg = \"\";\n }", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n String token1 = sc.next();\n String token2 = sc.next();\n // 文字列比較は == ではなく StringA.equals(StringB)\n if(token1.equals(token2)){\n stack += 1;\n stackFlg = \"X\";\n if(stack == 3){\n ansFlg = \"X\";\n break;\n }else{\n //特になし\n }\n }\n // stackFlgがない場合にstackをリセットし、その後スタックフラグを切る\n if(stackFlg.equals(\"X\")){\n //特になし\n }else{\n stack = 0;\n }\n stackFlg = \"\";\n }", "{\n String token1 = sc.next();\n String token2 = sc.next();\n // 文字列比較は == ではなく StringA.equals(StringB)\n if(token1.equals(token2)){\n stack += 1;\n stackFlg = \"X\";\n if(stack == 3){\n ansFlg = \"X\";\n break;\n }else{\n //特になし\n }\n }\n // stackFlgがない場合にstackをリセットし、その後スタックフラグを切る\n if(stackFlg.equals(\"X\")){\n //特になし\n }else{\n stack = 0;\n }\n stackFlg = \"\";\n }", "String token1 = sc.next();", "token1", "sc.next()", "sc.next", "sc", "String token2 = sc.next();", "token2", "sc.next()", "sc.next", "sc", "if(token1.equals(token2)){\n stack += 1;\n stackFlg = \"X\";\n if(stack == 3){\n ansFlg = \"X\";\n break;\n }else{\n //特になし\n }\n }", "token1.equals(token2)", "token1.equals", "token1", "token2", "{\n stack += 1;\n stackFlg = \"X\";\n if(stack == 3){\n ansFlg = \"X\";\n break;\n }else{\n //特になし\n }\n }", "stack += 1", "stack", "1", "stackFlg = \"X\"", "stackFlg", "\"X\"", "if(stack == 3){\n ansFlg = \"X\";\n break;\n }else{\n //特になし\n }", "stack == 3", "stack", "3", "{\n ansFlg = \"X\";\n break;\n }", "ansFlg = \"X\"", "ansFlg", "\"X\"", "break;", "{\n //特になし\n }", "if(stackFlg.equals(\"X\")){\n //特になし\n }else{\n stack = 0;\n }", "stackFlg.equals(\"X\")", "stackFlg.equals", "stackFlg", "\"X\"", "{\n //特になし\n }", "{\n stack = 0;\n }", "stack = 0", "stack", "0", "stackFlg = \"\"", "stackFlg", "\"\"", "if(ansFlg == \"X\"){\n ans = \"Yes\";\n }else{\n ans = \"No\";\n }", "ansFlg == \"X\"", "ansFlg", "\"X\"", "{\n ans = \"Yes\";\n }", "ans = \"Yes\"", "ans", "\"Yes\"", "{\n ans = \"No\";\n }", "ans = \"No\"", "ans", "\"No\"", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "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 String ansFlg = \"\";\n String ans = \"\";\n int stack = 0;\n String stackFlg = \"\";\n for (int i = 0; i < N; i++) {\n String token1 = sc.next();\n String token2 = sc.next();\n // 文字列比較は == ではなく StringA.equals(StringB)\n if(token1.equals(token2)){\n stack += 1;\n stackFlg = \"X\";\n if(stack == 3){\n ansFlg = \"X\";\n break;\n }else{\n //特になし\n }\n }\n // stackFlgがない場合にstackをリセットし、その後スタックフラグを切る\n if(stackFlg.equals(\"X\")){\n //特になし\n }else{\n stack = 0;\n }\n stackFlg = \"\";\n }\n \n if(ansFlg == \"X\"){\n ans = \"Yes\";\n }else{\n ans = \"No\";\n }\n System.out.println(ans);\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 String ansFlg = \"\";\n String ans = \"\";\n int stack = 0;\n String stackFlg = \"\";\n for (int i = 0; i < N; i++) {\n String token1 = sc.next();\n String token2 = sc.next();\n // 文字列比較は == ではなく StringA.equals(StringB)\n if(token1.equals(token2)){\n stack += 1;\n stackFlg = \"X\";\n if(stack == 3){\n ansFlg = \"X\";\n break;\n }else{\n //特になし\n }\n }\n // stackFlgがない場合にstackをリセットし、その後スタックフラグを切る\n if(stackFlg.equals(\"X\")){\n //特になし\n }else{\n stack = 0;\n }\n stackFlg = \"\";\n }\n \n if(ansFlg == \"X\"){\n ans = \"Yes\";\n }else{\n ans = \"No\";\n }\n System.out.println(ans);\n }\n}", "Main" ]
import java.util.*; // 繰り返し回数N // 一行目数値1 数値2 // 二行目数値1 数値2 で渡された場合で渡された場合 public class Main { public static void main(String[] args ) throws Exception { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); String ansFlg = ""; String ans = ""; int stack = 0; String stackFlg = ""; for (int i = 0; i < N; i++) { String token1 = sc.next(); String token2 = sc.next(); // 文字列比較は == ではなく StringA.equals(StringB) if(token1.equals(token2)){ stack += 1; stackFlg = "X"; if(stack == 3){ ansFlg = "X"; break; }else{ //特になし } } // stackFlgがない場合にstackをリセットし、その後スタックフラグを切る if(stackFlg.equals("X")){ //特になし }else{ stack = 0; } stackFlg = ""; } if(ansFlg == "X"){ ans = "Yes"; }else{ ans = "No"; } System.out.println(ans); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 17, 4, 18, 13, 0, 18, 18, 13, 13, 17, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 18, 18, 13, 2, 13, 13, 17, 18, 18, 13, 2, 13, 13, 17, 0, 13, 17, 14, 2, 13, 17, 0, 13, 17, 4, 18, 18, 13, 13, 8, 13, 17, 17, 23, 13, 6, 13, 41, 13, 20, 41, 13, 12, 13, 30, 38, 5, 13, 30, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 184, 14 ], [ 184, 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, 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 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 44, 50 ], [ 50, 51 ], [ 51, 52 ], [ 43, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 53, 59 ], [ 59, 60 ], [ 60, 61 ], [ 17, 62 ], [ 62, 63 ], [ 62, 64 ], [ 17, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 65, 75 ], [ 75, 76 ], [ 76, 77 ], [ 65, 78 ], [ 79, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 88, 89 ], [ 88, 90 ], [ 83, 91 ], [ 91, 92 ], [ 92, 93 ], [ 83, 94 ], [ 95, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 101, 103 ], [ 98, 104 ], [ 97, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 108, 110 ], [ 105, 111 ], [ 96, 112 ], [ 112, 113 ], [ 112, 114 ], [ 79, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 119, 120 ], [ 119, 121 ], [ 17, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 127, 128 ], [ 127, 129 ], [ 127, 130 ], [ 15, 131 ], [ 131, 132 ], [ 184, 133 ], [ 133, 134 ], [ 133, 135 ], [ 135, 136 ], [ 135, 137 ], [ 133, 138 ], [ 138, 139 ], [ 133, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 149, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 148, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 142, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 133, 165 ], [ 165, 166 ], [ 165, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 169, 172 ], [ 172, 173 ], [ 133, 174 ], [ 174, 175 ], [ 174, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 178, 181 ], [ 181, 182 ], [ 0, 183 ], [ 183, 184 ], [ 183, 185 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n\n int n = sc.nextInt();\n int[][] d = new int[n][2];\n\n for (int i = 0; i < n; i++) {\n d[i][0] = sc.nextInt();\n d[i][1] = sc.nextInt();\n }\n\n boolean isAns = false;\n for (int i = 0; i < n-2; i++) {\n boolean isTmp = true;\n\n for (int j = 0; j < 3; j++) {\n if (d[i+j][0] != d[i+j][1])\n isTmp = false;\n }\n\n if (isTmp == true)\n isAns = true;\n }\n\n System.out.println(isAns ? \"Yes\" : \"No\");\n }\n\n static class MyScanner {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15);\n StringTokenizer tokenizer;\n\n String next() {\n try {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(reader.readLine());\n }\n } catch (IOException ignored) {\n }\n return tokenizer.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n\n int n = sc.nextInt();\n int[][] d = new int[n][2];\n\n for (int i = 0; i < n; i++) {\n d[i][0] = sc.nextInt();\n d[i][1] = sc.nextInt();\n }\n\n boolean isAns = false;\n for (int i = 0; i < n-2; i++) {\n boolean isTmp = true;\n\n for (int j = 0; j < 3; j++) {\n if (d[i+j][0] != d[i+j][1])\n isTmp = false;\n }\n\n if (isTmp == true)\n isAns = true;\n }\n\n System.out.println(isAns ? \"Yes\" : \"No\");\n }\n\n static class MyScanner {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15);\n StringTokenizer tokenizer;\n\n String next() {\n try {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(reader.readLine());\n }\n } catch (IOException ignored) {\n }\n return tokenizer.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}", "Main", "public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n\n int n = sc.nextInt();\n int[][] d = new int[n][2];\n\n for (int i = 0; i < n; i++) {\n d[i][0] = sc.nextInt();\n d[i][1] = sc.nextInt();\n }\n\n boolean isAns = false;\n for (int i = 0; i < n-2; i++) {\n boolean isTmp = true;\n\n for (int j = 0; j < 3; j++) {\n if (d[i+j][0] != d[i+j][1])\n isTmp = false;\n }\n\n if (isTmp == true)\n isAns = true;\n }\n\n System.out.println(isAns ? \"Yes\" : \"No\");\n }", "main", "{\n MyScanner sc = new MyScanner();\n\n int n = sc.nextInt();\n int[][] d = new int[n][2];\n\n for (int i = 0; i < n; i++) {\n d[i][0] = sc.nextInt();\n d[i][1] = sc.nextInt();\n }\n\n boolean isAns = false;\n for (int i = 0; i < n-2; i++) {\n boolean isTmp = true;\n\n for (int j = 0; j < 3; j++) {\n if (d[i+j][0] != d[i+j][1])\n isTmp = false;\n }\n\n if (isTmp == true)\n isAns = true;\n }\n\n System.out.println(isAns ? \"Yes\" : \"No\");\n }", "MyScanner sc = new MyScanner();", "sc", "new MyScanner()", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[][] d = new int[n][2];", "d", "new int[n][2]", "n", "2", "for (int i = 0; i < n; i++) {\n d[i][0] = sc.nextInt();\n d[i][1] = sc.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n d[i][0] = sc.nextInt();\n d[i][1] = sc.nextInt();\n }", "{\n d[i][0] = sc.nextInt();\n d[i][1] = sc.nextInt();\n }", "d[i][0] = sc.nextInt()", "d[i][0]", "d[i]", "d", "i", "0", "sc.nextInt()", "sc.nextInt", "sc", "d[i][1] = sc.nextInt()", "d[i][1]", "d[i]", "d", "i", "1", "sc.nextInt()", "sc.nextInt", "sc", "boolean isAns = false;", "isAns", "false", "for (int i = 0; i < n-2; i++) {\n boolean isTmp = true;\n\n for (int j = 0; j < 3; j++) {\n if (d[i+j][0] != d[i+j][1])\n isTmp = false;\n }\n\n if (isTmp == true)\n isAns = true;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n-2", "i", "n-2", "n", "2", "i++", "i++", "i", "{\n boolean isTmp = true;\n\n for (int j = 0; j < 3; j++) {\n if (d[i+j][0] != d[i+j][1])\n isTmp = false;\n }\n\n if (isTmp == true)\n isAns = true;\n }", "{\n boolean isTmp = true;\n\n for (int j = 0; j < 3; j++) {\n if (d[i+j][0] != d[i+j][1])\n isTmp = false;\n }\n\n if (isTmp == true)\n isAns = true;\n }", "boolean isTmp = true;", "isTmp", "true", "for (int j = 0; j < 3; j++) {\n if (d[i+j][0] != d[i+j][1])\n isTmp = false;\n }", "int j = 0;", "int j = 0;", "j", "0", "j < 3", "j", "3", "j++", "j++", "j", "{\n if (d[i+j][0] != d[i+j][1])\n isTmp = false;\n }", "{\n if (d[i+j][0] != d[i+j][1])\n isTmp = false;\n }", "if (d[i+j][0] != d[i+j][1])\n isTmp = false;", "d[i+j][0] != d[i+j][1]", "d[i+j][0]", "d[i+j]", "d", "i+j", "i", "j", "0", "d[i+j][1]", "d[i+j]", "d", "i+j", "i", "j", "1", "isTmp = false", "isTmp", "false", "if (isTmp == true)\n isAns = true;", "isTmp == true", "isTmp", "true", "isAns = true", "isAns", "true", "System.out.println(isAns ? \"Yes\" : \"No\")", "System.out.println", "System.out", "System", "System.out", "isAns ? \"Yes\" : \"No\"", "isAns", "\"Yes\"", "\"No\"", "String[] args", "args", "static class MyScanner {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15);\n StringTokenizer tokenizer;\n\n String next() {\n try {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(reader.readLine());\n }\n } catch (IOException ignored) {\n }\n return tokenizer.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }", "MyScanner", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15);", "reader", "new BufferedReader(new InputStreamReader(System.in), 1 << 15)", "StringTokenizer tokenizer;", "tokenizer", "String next() {\n try {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(reader.readLine());\n }\n } catch (IOException ignored) {\n }\n return tokenizer.nextToken();\n }", "next", "{\n try {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(reader.readLine());\n }\n } catch (IOException ignored) {\n }\n return tokenizer.nextToken();\n }", "try {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(reader.readLine());\n }\n } catch (IOException ignored) {\n }", "catch (IOException ignored) {\n }", "IOException ignored", "{\n }", "{\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(reader.readLine());\n }\n }", "while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(reader.readLine());\n }", "tokenizer == null || !tokenizer.hasMoreTokens()", "tokenizer == null", "tokenizer", "null", "!tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens", "tokenizer", "{\n tokenizer = new StringTokenizer(reader.readLine());\n }", "tokenizer = new StringTokenizer(reader.readLine())", "tokenizer", "new StringTokenizer(reader.readLine())", "return tokenizer.nextToken();", "tokenizer.nextToken()", "tokenizer.nextToken", "tokenizer", "int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "public class Main {\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n\n int n = sc.nextInt();\n int[][] d = new int[n][2];\n\n for (int i = 0; i < n; i++) {\n d[i][0] = sc.nextInt();\n d[i][1] = sc.nextInt();\n }\n\n boolean isAns = false;\n for (int i = 0; i < n-2; i++) {\n boolean isTmp = true;\n\n for (int j = 0; j < 3; j++) {\n if (d[i+j][0] != d[i+j][1])\n isTmp = false;\n }\n\n if (isTmp == true)\n isAns = true;\n }\n\n System.out.println(isAns ? \"Yes\" : \"No\");\n }\n\n static class MyScanner {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15);\n StringTokenizer tokenizer;\n\n String next() {\n try {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(reader.readLine());\n }\n } catch (IOException ignored) {\n }\n return tokenizer.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n\n int n = sc.nextInt();\n int[][] d = new int[n][2];\n\n for (int i = 0; i < n; i++) {\n d[i][0] = sc.nextInt();\n d[i][1] = sc.nextInt();\n }\n\n boolean isAns = false;\n for (int i = 0; i < n-2; i++) {\n boolean isTmp = true;\n\n for (int j = 0; j < 3; j++) {\n if (d[i+j][0] != d[i+j][1])\n isTmp = false;\n }\n\n if (isTmp == true)\n isAns = true;\n }\n\n System.out.println(isAns ? \"Yes\" : \"No\");\n }\n\n static class MyScanner {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15);\n StringTokenizer tokenizer;\n\n String next() {\n try {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(reader.readLine());\n }\n } catch (IOException ignored) {\n }\n return tokenizer.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String[] args) { MyScanner sc = new MyScanner(); int n = sc.nextInt(); int[][] d = new int[n][2]; for (int i = 0; i < n; i++) { d[i][0] = sc.nextInt(); d[i][1] = sc.nextInt(); } boolean isAns = false; for (int i = 0; i < n-2; i++) { boolean isTmp = true; for (int j = 0; j < 3; j++) { if (d[i+j][0] != d[i+j][1]) isTmp = false; } if (isTmp == true) isAns = true; } System.out.println(isAns ? "Yes" : "No"); } static class MyScanner { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15); StringTokenizer tokenizer; String next() { try { while (tokenizer == null || !tokenizer.hasMoreTokens()) { tokenizer = new StringTokenizer(reader.readLine()); } } catch (IOException ignored) { } return tokenizer.nextToken(); } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 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, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 29, 30, 14, 4, 18, 18, 13, 17, 18, 13, 17, 30, 40, 13, 30, 0, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 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 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 20, 31 ], [ 31, 32 ], [ 32, 33 ], [ 20, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 35, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 35, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 51, 58 ], [ 47, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 60, 69 ], [ 69, 70 ], [ 70, 71 ], [ 60, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 8, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 76, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 6, 94 ], [ 94, 95 ], [ 0, 96 ], [ 96, 97 ], [ 96, 98 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner scan = new Scanner(System.in);\n String line = scan.nextLine();\n\n int count = 0;\n for (int i = 0; i < Integer.parseInt(line); i++) {\n String dice = scan.nextLine();\n String[] values = dice.split(\" \");\n if (count >= 3) {\n System.out.println(\"Yes\");\n return;\n } else {\n if (values[0].equals(values[1])) {\n count++;\n } else {\n count = 0;\n }\n }\n }\n \n if (count >= 3) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner scan = new Scanner(System.in);\n String line = scan.nextLine();\n\n int count = 0;\n for (int i = 0; i < Integer.parseInt(line); i++) {\n String dice = scan.nextLine();\n String[] values = dice.split(\" \");\n if (count >= 3) {\n System.out.println(\"Yes\");\n return;\n } else {\n if (values[0].equals(values[1])) {\n count++;\n } else {\n count = 0;\n }\n }\n }\n \n if (count >= 3) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n Scanner scan = new Scanner(System.in);\n String line = scan.nextLine();\n\n int count = 0;\n for (int i = 0; i < Integer.parseInt(line); i++) {\n String dice = scan.nextLine();\n String[] values = dice.split(\" \");\n if (count >= 3) {\n System.out.println(\"Yes\");\n return;\n } else {\n if (values[0].equals(values[1])) {\n count++;\n } else {\n count = 0;\n }\n }\n }\n \n if (count >= 3) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n String line = scan.nextLine();\n\n int count = 0;\n for (int i = 0; i < Integer.parseInt(line); i++) {\n String dice = scan.nextLine();\n String[] values = dice.split(\" \");\n if (count >= 3) {\n System.out.println(\"Yes\");\n return;\n } else {\n if (values[0].equals(values[1])) {\n count++;\n } else {\n count = 0;\n }\n }\n }\n \n if (count >= 3) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String line = scan.nextLine();", "line", "scan.nextLine()", "scan.nextLine", "scan", "int count = 0;", "count", "0", "for (int i = 0; i < Integer.parseInt(line); i++) {\n String dice = scan.nextLine();\n String[] values = dice.split(\" \");\n if (count >= 3) {\n System.out.println(\"Yes\");\n return;\n } else {\n if (values[0].equals(values[1])) {\n count++;\n } else {\n count = 0;\n }\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < Integer.parseInt(line)", "i", "Integer.parseInt(line)", "Integer.parseInt", "Integer", "line", "i++", "i++", "i", "{\n String dice = scan.nextLine();\n String[] values = dice.split(\" \");\n if (count >= 3) {\n System.out.println(\"Yes\");\n return;\n } else {\n if (values[0].equals(values[1])) {\n count++;\n } else {\n count = 0;\n }\n }\n }", "{\n String dice = scan.nextLine();\n String[] values = dice.split(\" \");\n if (count >= 3) {\n System.out.println(\"Yes\");\n return;\n } else {\n if (values[0].equals(values[1])) {\n count++;\n } else {\n count = 0;\n }\n }\n }", "String dice = scan.nextLine();", "dice", "scan.nextLine()", "scan.nextLine", "scan", "String[] values = dice.split(\" \");", "values", "dice.split(\" \")", "dice.split", "dice", "\" \"", "if (count >= 3) {\n System.out.println(\"Yes\");\n return;\n } else {\n if (values[0].equals(values[1])) {\n count++;\n } else {\n count = 0;\n }\n }", "count >= 3", "count", "3", "{\n System.out.println(\"Yes\");\n return;\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "return;", "{\n if (values[0].equals(values[1])) {\n count++;\n } else {\n count = 0;\n }\n }", "if (values[0].equals(values[1])) {\n count++;\n } else {\n count = 0;\n }", "values[0].equals(values[1])", "values[0].equals", "values[0]", "values", "0", "values[1]", "values", "1", "{\n count++;\n }", "count++", "count", "{\n count = 0;\n }", "count = 0", "count", "0", "if (count >= 3) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }", "count >= 3", "count", "3", "{\n System.out.println(\"Yes\");\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n System.out.println(\"No\");\n }", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner scan = new Scanner(System.in);\n String line = scan.nextLine();\n\n int count = 0;\n for (int i = 0; i < Integer.parseInt(line); i++) {\n String dice = scan.nextLine();\n String[] values = dice.split(\" \");\n if (count >= 3) {\n System.out.println(\"Yes\");\n return;\n } else {\n if (values[0].equals(values[1])) {\n count++;\n } else {\n count = 0;\n }\n }\n }\n \n if (count >= 3) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner scan = new Scanner(System.in);\n String line = scan.nextLine();\n\n int count = 0;\n for (int i = 0; i < Integer.parseInt(line); i++) {\n String dice = scan.nextLine();\n String[] values = dice.split(\" \");\n if (count >= 3) {\n System.out.println(\"Yes\");\n return;\n } else {\n if (values[0].equals(values[1])) {\n count++;\n } else {\n count = 0;\n }\n }\n }\n \n if (count >= 3) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner scan = new Scanner(System.in); String line = scan.nextLine(); int count = 0; for (int i = 0; i < Integer.parseInt(line); i++) { String dice = scan.nextLine(); String[] values = dice.split(" "); if (count >= 3) { System.out.println("Yes"); return; } else { if (values[0].equals(values[1])) { count++; } else { count = 0; } } } if (count >= 3) { System.out.println("Yes"); } else { System.out.println("No"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 17, 4, 18, 13, 0, 18, 18, 13, 13, 17, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 30, 40, 13, 30, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 17, 14, 2, 13, 13, 30, 0, 13, 13, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 128, 5 ], [ 128, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 22, 27 ], [ 27, 28 ], [ 27, 29 ], [ 22, 30 ], [ 30, 31 ], [ 31, 32 ], [ 22, 33 ], [ 34, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 35, 41 ], [ 41, 42 ], [ 42, 43 ], [ 34, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 44, 50 ], [ 50, 51 ], [ 51, 52 ], [ 8, 53 ], [ 53, 54 ], [ 53, 55 ], [ 8, 56 ], [ 56, 57 ], [ 56, 58 ], [ 8, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 64, 65 ], [ 64, 66 ], [ 59, 67 ], [ 67, 68 ], [ 68, 69 ], [ 59, 70 ], [ 71, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 73, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 72, 84 ], [ 84, 85 ], [ 85, 86 ], [ 72, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 87, 96 ], [ 96, 97 ], [ 96, 98 ], [ 8, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 8, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 107, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 6, 125 ], [ 125, 126 ], [ 0, 127 ], [ 127, 128 ], [ 127, 129 ] ]
[ "import java.util.*;\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[][] arr = new int[n][2];\n for(int i=0;i<n;i++){\n arr[i][0]=sc.nextInt();\n arr[i][1]=sc.nextInt();\n }\n int max=0;\n int count=0;\n for(int i=0;i<n;i++){\n if(arr[i][1]==arr[i][0]){\n count++;\n }\n else{\n if(max<count){\n max=count;\n }\n count=0;\n }\n }\n if(max<count){\n max=count;\n }\n if(max>=3){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }\n}", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[][] arr = new int[n][2];\n for(int i=0;i<n;i++){\n arr[i][0]=sc.nextInt();\n arr[i][1]=sc.nextInt();\n }\n int max=0;\n int count=0;\n for(int i=0;i<n;i++){\n if(arr[i][1]==arr[i][0]){\n count++;\n }\n else{\n if(max<count){\n max=count;\n }\n count=0;\n }\n }\n if(max<count){\n max=count;\n }\n if(max>=3){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[][] arr = new int[n][2];\n for(int i=0;i<n;i++){\n arr[i][0]=sc.nextInt();\n arr[i][1]=sc.nextInt();\n }\n int max=0;\n int count=0;\n for(int i=0;i<n;i++){\n if(arr[i][1]==arr[i][0]){\n count++;\n }\n else{\n if(max<count){\n max=count;\n }\n count=0;\n }\n }\n if(max<count){\n max=count;\n }\n if(max>=3){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[][] arr = new int[n][2];\n for(int i=0;i<n;i++){\n arr[i][0]=sc.nextInt();\n arr[i][1]=sc.nextInt();\n }\n int max=0;\n int count=0;\n for(int i=0;i<n;i++){\n if(arr[i][1]==arr[i][0]){\n count++;\n }\n else{\n if(max<count){\n max=count;\n }\n count=0;\n }\n }\n if(max<count){\n max=count;\n }\n if(max>=3){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[][] arr = new int[n][2];", "arr", "new int[n][2]", "n", "2", "for(int i=0;i<n;i++){\n arr[i][0]=sc.nextInt();\n arr[i][1]=sc.nextInt();\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n arr[i][0]=sc.nextInt();\n arr[i][1]=sc.nextInt();\n }", "{\n arr[i][0]=sc.nextInt();\n arr[i][1]=sc.nextInt();\n }", "arr[i][0]=sc.nextInt()", "arr[i][0]", "arr[i]", "arr", "i", "0", "sc.nextInt()", "sc.nextInt", "sc", "arr[i][1]=sc.nextInt()", "arr[i][1]", "arr[i]", "arr", "i", "1", "sc.nextInt()", "sc.nextInt", "sc", "int max=0;", "max", "0", "int count=0;", "count", "0", "for(int i=0;i<n;i++){\n if(arr[i][1]==arr[i][0]){\n count++;\n }\n else{\n if(max<count){\n max=count;\n }\n count=0;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n if(arr[i][1]==arr[i][0]){\n count++;\n }\n else{\n if(max<count){\n max=count;\n }\n count=0;\n }\n }", "{\n if(arr[i][1]==arr[i][0]){\n count++;\n }\n else{\n if(max<count){\n max=count;\n }\n count=0;\n }\n }", "if(arr[i][1]==arr[i][0]){\n count++;\n }\n else{\n if(max<count){\n max=count;\n }\n count=0;\n }", "arr[i][1]==arr[i][0]", "arr[i][1]", "arr[i]", "arr", "i", "1", "arr[i][0]", "arr[i]", "arr", "i", "0", "{\n count++;\n }", "count++", "count", "{\n if(max<count){\n max=count;\n }\n count=0;\n }", "if(max<count){\n max=count;\n }", "max<count", "max", "count", "{\n max=count;\n }", "max=count", "max", "count", "count=0", "count", "0", "if(max<count){\n max=count;\n }", "max<count", "max", "count", "{\n max=count;\n }", "max=count", "max", "count", "if(max>=3){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }", "max>=3", "max", "3", "{\n System.out.println(\"Yes\");\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n System.out.println(\"No\");\n }", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "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[][] arr = new int[n][2];\n for(int i=0;i<n;i++){\n arr[i][0]=sc.nextInt();\n arr[i][1]=sc.nextInt();\n }\n int max=0;\n int count=0;\n for(int i=0;i<n;i++){\n if(arr[i][1]==arr[i][0]){\n count++;\n }\n else{\n if(max<count){\n max=count;\n }\n count=0;\n }\n }\n if(max<count){\n max=count;\n }\n if(max>=3){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\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[][] arr = new int[n][2];\n for(int i=0;i<n;i++){\n arr[i][0]=sc.nextInt();\n arr[i][1]=sc.nextInt();\n }\n int max=0;\n int count=0;\n for(int i=0;i<n;i++){\n if(arr[i][1]==arr[i][0]){\n count++;\n }\n else{\n if(max<count){\n max=count;\n }\n count=0;\n }\n }\n if(max<count){\n max=count;\n }\n if(max>=3){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[][] arr = new int[n][2]; for(int i=0;i<n;i++){ arr[i][0]=sc.nextInt(); arr[i][1]=sc.nextInt(); } int max=0; int count=0; for(int i=0;i<n;i++){ if(arr[i][1]==arr[i][0]){ count++; } else{ if(max<count){ max=count; } count=0; } } if(max<count){ max=count; } if(max>=3){ System.out.println("Yes"); } else{ System.out.println("No"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 17, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 13, 17, 13, 4, 18, 13, 0, 18, 18, 13, 17, 13, 4, 18, 13, 41, 13, 20, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 11, 1, 41, 13, 13, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 18, 18, 13, 17, 13, 18, 18, 13, 17, 13, 30, 40, 18, 13, 13, 4, 18, 13, 13, 14, 2, 18, 13, 2, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 138, 8 ], [ 138, 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, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 34, 35 ], [ 25, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 38, 44 ], [ 44, 45 ], [ 45, 46 ], [ 37, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 47, 53 ], [ 53, 54 ], [ 54, 55 ], [ 11, 56 ], [ 56, 57 ], [ 56, 58 ], [ 59, 60 ], [ 59, 61 ], [ 11, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 62, 72 ], [ 72, 73 ], [ 73, 74 ], [ 62, 75 ], [ 76, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 77, 87 ], [ 87, 88 ], [ 88, 89 ], [ 77, 90 ], [ 91, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 93, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 92, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 11, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 11, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 117, 119 ], [ 114, 120 ], [ 113, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 113, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 129, 134 ], [ 9, 135 ], [ 135, 136 ], [ 0, 137 ], [ 137, 138 ], [ 137, 139 ] ]
[ "import java.util.Scanner;\nimport java.util.Arrays;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[][] dice = new int[2][n];\n for(int i = 0; i<n; i++){\n dice[0][i] = sc.nextInt();\n dice[1][i] = sc.nextInt();\n }\n\n int[] count = new int[n-2];\n for(int i = 0; i<n-2; i++){\n for(int j = i; j<i+3; j++){\n if(dice[0][j] == dice[1][j]){\n count[i]++;\n }\n }\n }\n\n Arrays.sort(count);\n if(count[n-3] == 3){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.Arrays;", "Arrays", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[][] dice = new int[2][n];\n for(int i = 0; i<n; i++){\n dice[0][i] = sc.nextInt();\n dice[1][i] = sc.nextInt();\n }\n\n int[] count = new int[n-2];\n for(int i = 0; i<n-2; i++){\n for(int j = i; j<i+3; j++){\n if(dice[0][j] == dice[1][j]){\n count[i]++;\n }\n }\n }\n\n Arrays.sort(count);\n if(count[n-3] == 3){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[][] dice = new int[2][n];\n for(int i = 0; i<n; i++){\n dice[0][i] = sc.nextInt();\n dice[1][i] = sc.nextInt();\n }\n\n int[] count = new int[n-2];\n for(int i = 0; i<n-2; i++){\n for(int j = i; j<i+3; j++){\n if(dice[0][j] == dice[1][j]){\n count[i]++;\n }\n }\n }\n\n Arrays.sort(count);\n if(count[n-3] == 3){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[][] dice = new int[2][n];\n for(int i = 0; i<n; i++){\n dice[0][i] = sc.nextInt();\n dice[1][i] = sc.nextInt();\n }\n\n int[] count = new int[n-2];\n for(int i = 0; i<n-2; i++){\n for(int j = i; j<i+3; j++){\n if(dice[0][j] == dice[1][j]){\n count[i]++;\n }\n }\n }\n\n Arrays.sort(count);\n if(count[n-3] == 3){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[][] dice = new int[2][n];", "dice", "new int[2][n]", "2", "n", "for(int i = 0; i<n; i++){\n dice[0][i] = sc.nextInt();\n dice[1][i] = sc.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n dice[0][i] = sc.nextInt();\n dice[1][i] = sc.nextInt();\n }", "{\n dice[0][i] = sc.nextInt();\n dice[1][i] = sc.nextInt();\n }", "dice[0][i] = sc.nextInt()", "dice[0][i]", "dice[0]", "dice", "0", "i", "sc.nextInt()", "sc.nextInt", "sc", "dice[1][i] = sc.nextInt()", "dice[1][i]", "dice[1]", "dice", "1", "i", "sc.nextInt()", "sc.nextInt", "sc", "int[] count = new int[n-2];", "count", "new int[n-2]", "n-2", "n", "2", "for(int i = 0; i<n-2; i++){\n for(int j = i; j<i+3; j++){\n if(dice[0][j] == dice[1][j]){\n count[i]++;\n }\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i<n-2", "i", "n-2", "n", "2", "i++", "i++", "i", "{\n for(int j = i; j<i+3; j++){\n if(dice[0][j] == dice[1][j]){\n count[i]++;\n }\n }\n }", "{\n for(int j = i; j<i+3; j++){\n if(dice[0][j] == dice[1][j]){\n count[i]++;\n }\n }\n }", "for(int j = i; j<i+3; j++){\n if(dice[0][j] == dice[1][j]){\n count[i]++;\n }\n }", "int j = i;", "int j = i;", "j", "i", "j<i+3", "j", "i+3", "i", "3", "j++", "j++", "j", "{\n if(dice[0][j] == dice[1][j]){\n count[i]++;\n }\n }", "{\n if(dice[0][j] == dice[1][j]){\n count[i]++;\n }\n }", "if(dice[0][j] == dice[1][j]){\n count[i]++;\n }", "dice[0][j] == dice[1][j]", "dice[0][j]", "dice[0]", "dice", "0", "j", "dice[1][j]", "dice[1]", "dice", "1", "j", "{\n count[i]++;\n }", "count[i]++", "count[i]", "count", "i", "Arrays.sort(count)", "Arrays.sort", "Arrays", "count", "if(count[n-3] == 3){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }", "count[n-3] == 3", "count[n-3]", "count", "n-3", "n", "3", "3", "{\n System.out.println(\"Yes\");\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n System.out.println(\"No\");\n }", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "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[][] dice = new int[2][n];\n for(int i = 0; i<n; i++){\n dice[0][i] = sc.nextInt();\n dice[1][i] = sc.nextInt();\n }\n\n int[] count = new int[n-2];\n for(int i = 0; i<n-2; i++){\n for(int j = i; j<i+3; j++){\n if(dice[0][j] == dice[1][j]){\n count[i]++;\n }\n }\n }\n\n Arrays.sort(count);\n if(count[n-3] == 3){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\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[][] dice = new int[2][n];\n for(int i = 0; i<n; i++){\n dice[0][i] = sc.nextInt();\n dice[1][i] = sc.nextInt();\n }\n\n int[] count = new int[n-2];\n for(int i = 0; i<n-2; i++){\n for(int j = i; j<i+3; j++){\n if(dice[0][j] == dice[1][j]){\n count[i]++;\n }\n }\n }\n\n Arrays.sort(count);\n if(count[n-3] == 3){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }\n}", "Main" ]
import java.util.Scanner; import java.util.Arrays; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[][] dice = new int[2][n]; for(int i = 0; i<n; i++){ dice[0][i] = sc.nextInt(); dice[1][i] = sc.nextInt(); } int[] count = new int[n-2]; for(int i = 0; i<n-2; i++){ for(int j = i; j<i+3; j++){ if(dice[0][j] == dice[1][j]){ count[i]++; } } } Arrays.sort(count); if(count[n-3] == 3){ System.out.println("Yes"); } else{ System.out.println("No"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 12, 13, 30, 41, 13, 20, 0, 13, 19, 18, 13, 4, 18, 13, 23, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 4, 18, 13, 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, 13, 13, 30, 40, 13, 30, 0, 13, 17, 14, 2, 13, 17, 30, 3, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 6, 13, 41, 13, 41, 13, 41, 13, 41, 13, 17, 12, 13, 30, 0, 13, 20, 17, 0, 13, 17, 0, 13, 20, 12, 13, 30, 38, 30, 4, 13, 30, 4, 18, 33, 12, 13, 30, 14, 2, 13, 17, 4, 18, 13, 12, 13, 30, 14, 2, 13, 18, 13, 13, 29, 18, 13, 40, 13, 41, 13, 4, 18, 13, 42, 2, 13, 17, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 17, 0, 13, 17, 29, 18, 13, 40, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 223, 11 ], [ 223, 12 ], [ 12, 13 ], [ 223, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 16, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 16, 25 ], [ 25, 26 ], [ 26, 27 ], [ 14, 28 ], [ 28, 29 ], [ 223, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 33, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 40, 46 ], [ 46, 47 ], [ 46, 48 ], [ 40, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 54, 55 ], [ 54, 56 ], [ 49, 57 ], [ 57, 58 ], [ 58, 59 ], [ 49, 60 ], [ 61, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 61, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 61, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 76, 77 ], [ 77, 78 ], [ 72, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 61, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 87, 88 ], [ 40, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 89, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 223, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 107, 111 ], [ 111, 112 ], [ 107, 113 ], [ 113, 114 ], [ 107, 115 ], [ 115, 116 ], [ 115, 117 ], [ 107, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 125 ], [ 125, 126 ], [ 125, 127 ], [ 120, 128 ], [ 128, 129 ], [ 128, 130 ], [ 107, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 134, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 107, 142 ], [ 142, 143 ], [ 142, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 145, 149 ], [ 149, 150 ], [ 150, 151 ], [ 107, 152 ], [ 152, 153 ], [ 152, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 158, 159 ], [ 158, 160 ], [ 155, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 164, 165 ], [ 154, 166 ], [ 166, 167 ], [ 166, 168 ], [ 168, 169 ], [ 169, 170 ], [ 154, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 171, 175 ], [ 175, 176 ], [ 175, 177 ], [ 177, 178 ], [ 178, 179 ], [ 154, 180 ], [ 180, 181 ], [ 180, 182 ], [ 182, 183 ], [ 183, 184 ], [ 182, 185 ], [ 182, 186 ], [ 154, 187 ], [ 187, 188 ], [ 187, 189 ], [ 154, 190 ], [ 190, 191 ], [ 191, 192 ], [ 191, 193 ], [ 193, 194 ], [ 107, 195 ], [ 195, 196 ], [ 195, 197 ], [ 197, 198 ], [ 198, 199 ], [ 199, 200 ], [ 200, 201 ], [ 199, 202 ], [ 202, 203 ], [ 107, 204 ], [ 204, 205 ], [ 204, 206 ], [ 206, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ], [ 208, 211 ], [ 211, 212 ], [ 107, 213 ], [ 213, 214 ], [ 213, 215 ], [ 215, 216 ], [ 216, 217 ], [ 217, 218 ], [ 218, 219 ], [ 217, 220 ], [ 220, 221 ], [ 0, 222 ], [ 222, 223 ], [ 222, 224 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n private static Scanner sc;\n\n public static void main(String[] args) {\n Main instance = new Main();\n sc = instance.new Scanner();\n instance.solve();\n }\n\n private void solve() {\n try {\n int N = sc.nextInt();\n int Z = 0;\n for (int i = 0; i < N; i++) {\n int D1 = sc.nextInt();\n int D2 = sc.nextInt();\n if (D1 == D2) {\n \tZ++;\n } else {\n \tZ = 0;\n }\n if (Z == 3) {\n \tbreak;\n }\n }\n if (Z == 3) {\n \tSystem.out.println(\"Yes\");\n } else {\n \tSystem.out.println(\"No\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n private class Scanner {\n String[] s;\n int i;\n BufferedReader br;\n String regex = \" \";\n\n public Scanner() {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n @Override\n protected void finalize() throws Throwable {\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }\n\n private void destruction() throws IOException {\n if (br != null) br.close();\n }\n\n public String next() throws IOException {\n if (i < s.length) return s[i++];\n String st = br.readLine();\n while (st == \"\") st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }\n\n public int nextInt() throws NumberFormatException, IOException {\n return Integer.parseInt(next());\n }\n\n public Long nextLong() throws NumberFormatException, IOException {\n return Long.parseLong(next());\n }\n\n public Double nextDouble() throws NumberFormatException, IOException {\n return Double.parseDouble(next());\n }\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n private static Scanner sc;\n\n public static void main(String[] args) {\n Main instance = new Main();\n sc = instance.new Scanner();\n instance.solve();\n }\n\n private void solve() {\n try {\n int N = sc.nextInt();\n int Z = 0;\n for (int i = 0; i < N; i++) {\n int D1 = sc.nextInt();\n int D2 = sc.nextInt();\n if (D1 == D2) {\n \tZ++;\n } else {\n \tZ = 0;\n }\n if (Z == 3) {\n \tbreak;\n }\n }\n if (Z == 3) {\n \tSystem.out.println(\"Yes\");\n } else {\n \tSystem.out.println(\"No\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n private class Scanner {\n String[] s;\n int i;\n BufferedReader br;\n String regex = \" \";\n\n public Scanner() {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n @Override\n protected void finalize() throws Throwable {\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }\n\n private void destruction() throws IOException {\n if (br != null) br.close();\n }\n\n public String next() throws IOException {\n if (i < s.length) return s[i++];\n String st = br.readLine();\n while (st == \"\") st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }\n\n public int nextInt() throws NumberFormatException, IOException {\n return Integer.parseInt(next());\n }\n\n public Long nextLong() throws NumberFormatException, IOException {\n return Long.parseLong(next());\n }\n\n public Double nextDouble() throws NumberFormatException, IOException {\n return Double.parseDouble(next());\n }\n }\n}", "Main", "private static Scanner sc;", "sc", "public static void main(String[] args) {\n Main instance = new Main();\n sc = instance.new Scanner();\n instance.solve();\n }", "main", "{\n Main instance = new Main();\n sc = instance.new Scanner();\n instance.solve();\n }", "Main instance = new Main();", "instance", "new Main()", "sc = instance.new Scanner()", "sc", "instance.new Scanner()", "instance", "instance", "instance.solve()", "instance.solve", "instance", "String[] args", "args", "private void solve() {\n try {\n int N = sc.nextInt();\n int Z = 0;\n for (int i = 0; i < N; i++) {\n int D1 = sc.nextInt();\n int D2 = sc.nextInt();\n if (D1 == D2) {\n \tZ++;\n } else {\n \tZ = 0;\n }\n if (Z == 3) {\n \tbreak;\n }\n }\n if (Z == 3) {\n \tSystem.out.println(\"Yes\");\n } else {\n \tSystem.out.println(\"No\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "solve", "{\n try {\n int N = sc.nextInt();\n int Z = 0;\n for (int i = 0; i < N; i++) {\n int D1 = sc.nextInt();\n int D2 = sc.nextInt();\n if (D1 == D2) {\n \tZ++;\n } else {\n \tZ = 0;\n }\n if (Z == 3) {\n \tbreak;\n }\n }\n if (Z == 3) {\n \tSystem.out.println(\"Yes\");\n } else {\n \tSystem.out.println(\"No\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "try {\n int N = sc.nextInt();\n int Z = 0;\n for (int i = 0; i < N; i++) {\n int D1 = sc.nextInt();\n int D2 = sc.nextInt();\n if (D1 == D2) {\n \tZ++;\n } else {\n \tZ = 0;\n }\n if (Z == 3) {\n \tbreak;\n }\n }\n if (Z == 3) {\n \tSystem.out.println(\"Yes\");\n } else {\n \tSystem.out.println(\"No\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }", "catch (Exception e) {\n e.printStackTrace();\n }", "Exception e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n int N = sc.nextInt();\n int Z = 0;\n for (int i = 0; i < N; i++) {\n int D1 = sc.nextInt();\n int D2 = sc.nextInt();\n if (D1 == D2) {\n \tZ++;\n } else {\n \tZ = 0;\n }\n if (Z == 3) {\n \tbreak;\n }\n }\n if (Z == 3) {\n \tSystem.out.println(\"Yes\");\n } else {\n \tSystem.out.println(\"No\");\n }\n }", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int Z = 0;", "Z", "0", "for (int i = 0; i < N; i++) {\n int D1 = sc.nextInt();\n int D2 = sc.nextInt();\n if (D1 == D2) {\n \tZ++;\n } else {\n \tZ = 0;\n }\n if (Z == 3) {\n \tbreak;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n int D1 = sc.nextInt();\n int D2 = sc.nextInt();\n if (D1 == D2) {\n \tZ++;\n } else {\n \tZ = 0;\n }\n if (Z == 3) {\n \tbreak;\n }\n }", "{\n int D1 = sc.nextInt();\n int D2 = sc.nextInt();\n if (D1 == D2) {\n \tZ++;\n } else {\n \tZ = 0;\n }\n if (Z == 3) {\n \tbreak;\n }\n }", "int D1 = sc.nextInt();", "D1", "sc.nextInt()", "sc.nextInt", "sc", "int D2 = sc.nextInt();", "D2", "sc.nextInt()", "sc.nextInt", "sc", "if (D1 == D2) {\n \tZ++;\n } else {\n \tZ = 0;\n }", "D1 == D2", "D1", "D2", "{\n \tZ++;\n }", "Z++", "Z", "{\n \tZ = 0;\n }", "Z = 0", "Z", "0", "if (Z == 3) {\n \tbreak;\n }", "Z == 3", "Z", "3", "{\n \tbreak;\n }", "break;", "if (Z == 3) {\n \tSystem.out.println(\"Yes\");\n } else {\n \tSystem.out.println(\"No\");\n }", "Z == 3", "Z", "3", "{\n \tSystem.out.println(\"Yes\");\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n \tSystem.out.println(\"No\");\n }", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "private class Scanner {\n String[] s;\n int i;\n BufferedReader br;\n String regex = \" \";\n\n public Scanner() {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n @Override\n protected void finalize() throws Throwable {\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }\n\n private void destruction() throws IOException {\n if (br != null) br.close();\n }\n\n public String next() throws IOException {\n if (i < s.length) return s[i++];\n String st = br.readLine();\n while (st == \"\") st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }\n\n public int nextInt() throws NumberFormatException, IOException {\n return Integer.parseInt(next());\n }\n\n public Long nextLong() throws NumberFormatException, IOException {\n return Long.parseLong(next());\n }\n\n public Double nextDouble() throws NumberFormatException, IOException {\n return Double.parseDouble(next());\n }\n }", "Scanner", "String[] s;", "s", "int i;", "i", "BufferedReader br;", "br", "String regex = \" \";", "regex", "\" \"", "public Scanner() {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "Scanner", "{\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "s = new String[0]", "s", "new String[0]", "0", "i = 0", "i", "0", "br = new BufferedReader(new InputStreamReader(System.in))", "br", "new BufferedReader(new InputStreamReader(System.in))", "@Override\n protected void finalize() throws Throwable {\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }", "finalize", "{\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }", "try {\n super.finalize();\n } finally {\n destruction();\n }", "{\n destruction();\n }", "destruction()", "destruction", "{\n super.finalize();\n }", "super.finalize()", "super.finalize", "super", "private void destruction() throws IOException {\n if (br != null) br.close();\n }", "destruction", "{\n if (br != null) br.close();\n }", "if (br != null) br.close();", "br != null", "br", "null", "br.close()", "br.close", "br", "public String next() throws IOException {\n if (i < s.length) return s[i++];\n String st = br.readLine();\n while (st == \"\") st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }", "next", "{\n if (i < s.length) return s[i++];\n String st = br.readLine();\n while (st == \"\") st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }", "if (i < s.length) return s[i++];", "i < s.length", "i", "s.length", "s", "s.length", "return s[i++];", "s[i++]", "s", "i++", "i", "String st = br.readLine();", "st", "br.readLine()", "br.readLine", "br", "while (st == \"\") st = br.readLine();", "st == \"\"", "st", "\"\"", "st = br.readLine()", "st", "br.readLine()", "br.readLine", "br", "s = st.split(regex, 0)", "s", "st.split(regex, 0)", "st.split", "st", "regex", "0", "i = 0", "i", "0", "return s[i++];", "s[i++]", "s", "i++", "i", "public int nextInt() throws NumberFormatException, IOException {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "public Long nextLong() throws NumberFormatException, IOException {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "public Double nextDouble() throws NumberFormatException, IOException {\n return Double.parseDouble(next());\n }", "nextDouble", "{\n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "public class Main {\n\n private static Scanner sc;\n\n public static void main(String[] args) {\n Main instance = new Main();\n sc = instance.new Scanner();\n instance.solve();\n }\n\n private void solve() {\n try {\n int N = sc.nextInt();\n int Z = 0;\n for (int i = 0; i < N; i++) {\n int D1 = sc.nextInt();\n int D2 = sc.nextInt();\n if (D1 == D2) {\n \tZ++;\n } else {\n \tZ = 0;\n }\n if (Z == 3) {\n \tbreak;\n }\n }\n if (Z == 3) {\n \tSystem.out.println(\"Yes\");\n } else {\n \tSystem.out.println(\"No\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n private class Scanner {\n String[] s;\n int i;\n BufferedReader br;\n String regex = \" \";\n\n public Scanner() {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n @Override\n protected void finalize() throws Throwable {\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }\n\n private void destruction() throws IOException {\n if (br != null) br.close();\n }\n\n public String next() throws IOException {\n if (i < s.length) return s[i++];\n String st = br.readLine();\n while (st == \"\") st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }\n\n public int nextInt() throws NumberFormatException, IOException {\n return Integer.parseInt(next());\n }\n\n public Long nextLong() throws NumberFormatException, IOException {\n return Long.parseLong(next());\n }\n\n public Double nextDouble() throws NumberFormatException, IOException {\n return Double.parseDouble(next());\n }\n }\n}", "public class Main {\n\n private static Scanner sc;\n\n public static void main(String[] args) {\n Main instance = new Main();\n sc = instance.new Scanner();\n instance.solve();\n }\n\n private void solve() {\n try {\n int N = sc.nextInt();\n int Z = 0;\n for (int i = 0; i < N; i++) {\n int D1 = sc.nextInt();\n int D2 = sc.nextInt();\n if (D1 == D2) {\n \tZ++;\n } else {\n \tZ = 0;\n }\n if (Z == 3) {\n \tbreak;\n }\n }\n if (Z == 3) {\n \tSystem.out.println(\"Yes\");\n } else {\n \tSystem.out.println(\"No\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n private class Scanner {\n String[] s;\n int i;\n BufferedReader br;\n String regex = \" \";\n\n public Scanner() {\n s = new String[0];\n i = 0;\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n @Override\n protected void finalize() throws Throwable {\n try {\n super.finalize();\n } finally {\n destruction();\n }\n }\n\n private void destruction() throws IOException {\n if (br != null) br.close();\n }\n\n public String next() throws IOException {\n if (i < s.length) return s[i++];\n String st = br.readLine();\n while (st == \"\") st = br.readLine();\n s = st.split(regex, 0);\n i = 0;\n return s[i++];\n }\n\n public int nextInt() throws NumberFormatException, IOException {\n return Integer.parseInt(next());\n }\n\n public Long nextLong() throws NumberFormatException, IOException {\n return Long.parseLong(next());\n }\n\n public Double nextDouble() throws NumberFormatException, IOException {\n return Double.parseDouble(next());\n }\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { private static Scanner sc; public static void main(String[] args) { Main instance = new Main(); sc = instance.new Scanner(); instance.solve(); } private void solve() { try { int N = sc.nextInt(); int Z = 0; for (int i = 0; i < N; i++) { int D1 = sc.nextInt(); int D2 = sc.nextInt(); if (D1 == D2) { Z++; } else { Z = 0; } if (Z == 3) { break; } } if (Z == 3) { System.out.println("Yes"); } else { System.out.println("No"); } } catch (Exception e) { e.printStackTrace(); } } private class Scanner { String[] s; int i; BufferedReader br; String regex = " "; public Scanner() { s = new String[0]; i = 0; br = new BufferedReader(new InputStreamReader(System.in)); } @Override protected void finalize() throws Throwable { try { super.finalize(); } finally { destruction(); } } private void destruction() throws IOException { if (br != null) br.close(); } public String next() throws IOException { if (i < s.length) return s[i++]; String st = br.readLine(); while (st == "") st = br.readLine(); s = st.split(regex, 0); i = 0; return s[i++]; } public int nextInt() throws NumberFormatException, IOException { return Integer.parseInt(next()); } public Long nextLong() throws NumberFormatException, IOException { return Long.parseLong(next()); } public Double nextDouble() throws NumberFormatException, IOException { return Double.parseDouble(next()); } } }
[ 7, 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, 20, 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, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 2, 18, 13, 13, 18, 13, 13, 2, 18, 13, 2, 13, 17, 18, 13, 2, 13, 17, 2, 18, 13, 2, 13, 17, 18, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 29, 4, 18, 18, 13, 13, 17, 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 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 9, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 16, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 16, 25 ], [ 25, 26 ], [ 25, 27 ], [ 16, 29 ], [ 29, 30 ], [ 29, 31 ], [ 16, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 33, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 51, 52 ], [ 45, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 58, 59 ], [ 16, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 60, 70 ], [ 70, 71 ], [ 71, 72 ], [ 60, 73 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 77, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 82, 84 ], [ 77, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 85, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 77, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 96, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 104, 106 ], [ 75, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 107, 114 ], [ 16, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 6, 121 ], [ 121, 122 ], [ 0, 123 ], [ 123, 124 ], [ 123, 125 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner sc = new Scanner(System.in);) {\n\t\t\tint n = sc.nextInt();\n\n\t\t\tint[] d1 = new int[n];\n\t\t\tint[] d2 = new int[n];\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\td1[i] = sc.nextInt();\n\t\t\t\td2[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < n - 2; i++) {\n\t\t\t\tif (d1[i] == d2[i] \n\t\t\t\t\t\t&& d1[i + 1] == d2[i + 1] \n\t\t\t\t\t\t\t\t&& d1[i + 2] == d2[i + 2]) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"No\");\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner sc = new Scanner(System.in);) {\n\t\t\tint n = sc.nextInt();\n\n\t\t\tint[] d1 = new int[n];\n\t\t\tint[] d2 = new int[n];\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\td1[i] = sc.nextInt();\n\t\t\t\td2[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < n - 2; i++) {\n\t\t\t\tif (d1[i] == d2[i] \n\t\t\t\t\t\t&& d1[i + 1] == d2[i + 1] \n\t\t\t\t\t\t\t\t&& d1[i + 2] == d2[i + 2]) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"No\");\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\ttry (Scanner sc = new Scanner(System.in);) {\n\t\t\tint n = sc.nextInt();\n\n\t\t\tint[] d1 = new int[n];\n\t\t\tint[] d2 = new int[n];\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\td1[i] = sc.nextInt();\n\t\t\t\td2[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < n - 2; i++) {\n\t\t\t\tif (d1[i] == d2[i] \n\t\t\t\t\t\t&& d1[i + 1] == d2[i + 1] \n\t\t\t\t\t\t\t\t&& d1[i + 2] == d2[i + 2]) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"No\");\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "main", "{\n\t\ttry (Scanner sc = new Scanner(System.in);) {\n\t\t\tint n = sc.nextInt();\n\n\t\t\tint[] d1 = new int[n];\n\t\t\tint[] d2 = new int[n];\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\td1[i] = sc.nextInt();\n\t\t\t\td2[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < n - 2; i++) {\n\t\t\t\tif (d1[i] == d2[i] \n\t\t\t\t\t\t&& d1[i + 1] == d2[i + 1] \n\t\t\t\t\t\t\t\t&& d1[i + 2] == d2[i + 2]) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"No\");\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "try (Scanner sc = new Scanner(System.in);) {\n\t\t\tint n = sc.nextInt();\n\n\t\t\tint[] d1 = new int[n];\n\t\t\tint[] d2 = new int[n];\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\td1[i] = sc.nextInt();\n\t\t\t\td2[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < n - 2; i++) {\n\t\t\t\tif (d1[i] == d2[i] \n\t\t\t\t\t\t&& d1[i + 1] == d2[i + 1] \n\t\t\t\t\t\t\t\t&& d1[i + 2] == d2[i + 2]) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"No\");\n\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\tint n = sc.nextInt();\n\n\t\t\tint[] d1 = new int[n];\n\t\t\tint[] d2 = new int[n];\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\td1[i] = sc.nextInt();\n\t\t\t\td2[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < n - 2; i++) {\n\t\t\t\tif (d1[i] == d2[i] \n\t\t\t\t\t\t&& d1[i + 1] == d2[i + 1] \n\t\t\t\t\t\t\t\t&& d1[i + 2] == d2[i + 2]) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"No\");\n\n\t\t}", "Scanner sc = new Scanner(System.in)", "Scanner sc = new Scanner(System.in)", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[] d1 = new int[n];", "d1", "new int[n]", "n", "int[] d2 = new int[n];", "d2", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n\t\t\t\td1[i] = sc.nextInt();\n\t\t\t\td2[i] = sc.nextInt();\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\td1[i] = sc.nextInt();\n\t\t\t\td2[i] = sc.nextInt();\n\t\t\t}", "{\n\t\t\t\td1[i] = sc.nextInt();\n\t\t\t\td2[i] = sc.nextInt();\n\t\t\t}", "d1[i] = sc.nextInt()", "d1[i]", "d1", "i", "sc.nextInt()", "sc.nextInt", "sc", "d2[i] = sc.nextInt()", "d2[i]", "d2", "i", "sc.nextInt()", "sc.nextInt", "sc", "for (int i = 0; i < n - 2; i++) {\n\t\t\t\tif (d1[i] == d2[i] \n\t\t\t\t\t\t&& d1[i + 1] == d2[i + 1] \n\t\t\t\t\t\t\t\t&& d1[i + 2] == d2[i + 2]) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n - 2", "i", "n - 2", "n", "2", "i++", "i++", "i", "{\n\t\t\t\tif (d1[i] == d2[i] \n\t\t\t\t\t\t&& d1[i + 1] == d2[i + 1] \n\t\t\t\t\t\t\t\t&& d1[i + 2] == d2[i + 2]) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif (d1[i] == d2[i] \n\t\t\t\t\t\t&& d1[i + 1] == d2[i + 1] \n\t\t\t\t\t\t\t\t&& d1[i + 2] == d2[i + 2]) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}", "if (d1[i] == d2[i] \n\t\t\t\t\t\t&& d1[i + 1] == d2[i + 1] \n\t\t\t\t\t\t\t\t&& d1[i + 2] == d2[i + 2]) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}", "d1[i] == d2[i] \n\t\t\t\t\t\t&& d1[i + 1] == d2[i + 1] \n\t\t\t\t\t\t\t\t&& d1[i + 2] == d2[i + 2]", "d1[i] == d2[i] \n\t\t\t\t\t\t&& d1[i + 1] == d2[i + 1] \n\t\t\t\t\t\t\t\t&& d1[i + 2] == d2[i + 2]", "d1[i] == d2[i]", "d1[i]", "d1", "i", "d2[i]", "d2", "i", "d1[i + 1] == d2[i + 1]", "d1[i + 1]", "d1", "i + 1", "i", "1", "d2[i + 1]", "d2", "i + 1", "i", "1", "d1[i + 2] == d2[i + 2]", "d1[i + 2]", "d1", "i + 2", "i", "2", "d2[i + 2]", "d2", "i + 2", "i", "2", "{\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "return;", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner sc = new Scanner(System.in);) {\n\t\t\tint n = sc.nextInt();\n\n\t\t\tint[] d1 = new int[n];\n\t\t\tint[] d2 = new int[n];\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\td1[i] = sc.nextInt();\n\t\t\t\td2[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < n - 2; i++) {\n\t\t\t\tif (d1[i] == d2[i] \n\t\t\t\t\t\t&& d1[i + 1] == d2[i + 1] \n\t\t\t\t\t\t\t\t&& d1[i + 2] == d2[i + 2]) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"No\");\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner sc = new Scanner(System.in);) {\n\t\t\tint n = sc.nextInt();\n\n\t\t\tint[] d1 = new int[n];\n\t\t\tint[] d2 = new int[n];\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\td1[i] = sc.nextInt();\n\t\t\t\td2[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < n - 2; i++) {\n\t\t\t\tif (d1[i] == d2[i] \n\t\t\t\t\t\t&& d1[i + 1] == d2[i + 1] \n\t\t\t\t\t\t\t\t&& d1[i + 2] == d2[i + 2]) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"No\");\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in);) { int n = sc.nextInt(); int[] d1 = new int[n]; int[] d2 = new int[n]; for (int i = 0; i < n; i++) { d1[i] = sc.nextInt(); d2[i] = sc.nextInt(); } for (int i = 0; i < n - 2; i++) { if (d1[i] == d2[i] && d1[i + 1] == d2[i + 1] && d1[i + 2] == d2[i + 2]) { System.out.println("Yes"); return; } } System.out.println("No"); } catch (Exception e) { e.printStackTrace(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 4, 13, 18, 13, 13, 18, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 14, 2, 13, 13, 30, 40, 13, 30, 0, 13, 17, 14, 2, 13, 17, 30, 4, 18, 13, 17, 29, 4, 18, 13, 17, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 101, 11 ], [ 101, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 17, 19 ], [ 15, 20 ], [ 20, 21 ], [ 20, 22 ], [ 12, 23 ], [ 23, 24 ], [ 101, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 27, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 36, 37 ], [ 37, 38 ], [ 27, 39 ], [ 39, 40 ], [ 39, 41 ], [ 27, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 47, 48 ], [ 47, 49 ], [ 42, 50 ], [ 50, 51 ], [ 51, 52 ], [ 42, 53 ], [ 54, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 60, 61 ], [ 61, 62 ], [ 54, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 69, 70 ], [ 54, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 76, 77 ], [ 71, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 54, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 86, 91 ], [ 27, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 25, 96 ], [ 96, 97 ], [ 25, 98 ], [ 98, 99 ], [ 0, 100 ], [ 100, 101 ], [ 100, 102 ] ]
[ "import java.io.InputStream;\nimport java.io.PrintStream;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n resolve(System.in, System.out);\n }\n\n static void resolve(InputStream is, PrintStream pw) {\n Scanner sc = new Scanner(is);\n int n = Integer.parseInt(sc.next());\n int count = 0;\n for (int i = 0; i < n; i++) {\n int d1 = Integer.parseInt(sc.next());\n int d2 = Integer.parseInt(sc.next());\n if (d1 == d2) {\n count++;\n } else {\n count = 0;\n }\n if (count == 3) {\n pw.println(\"Yes\");\n return;\n }\n }\n pw.println(\"No\");\n }\n}", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.PrintStream;", "PrintStream", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n resolve(System.in, System.out);\n }\n\n static void resolve(InputStream is, PrintStream pw) {\n Scanner sc = new Scanner(is);\n int n = Integer.parseInt(sc.next());\n int count = 0;\n for (int i = 0; i < n; i++) {\n int d1 = Integer.parseInt(sc.next());\n int d2 = Integer.parseInt(sc.next());\n if (d1 == d2) {\n count++;\n } else {\n count = 0;\n }\n if (count == 3) {\n pw.println(\"Yes\");\n return;\n }\n }\n pw.println(\"No\");\n }\n}", "Main", "public static void main(String[] args) {\n resolve(System.in, System.out);\n }", "main", "{\n resolve(System.in, System.out);\n }", "resolve(System.in, System.out)", "resolve", "System.in", "System", "System.in", "System.out", "System", "System.out", "String[] args", "args", "static void resolve(InputStream is, PrintStream pw) {\n Scanner sc = new Scanner(is);\n int n = Integer.parseInt(sc.next());\n int count = 0;\n for (int i = 0; i < n; i++) {\n int d1 = Integer.parseInt(sc.next());\n int d2 = Integer.parseInt(sc.next());\n if (d1 == d2) {\n count++;\n } else {\n count = 0;\n }\n if (count == 3) {\n pw.println(\"Yes\");\n return;\n }\n }\n pw.println(\"No\");\n }", "resolve", "{\n Scanner sc = new Scanner(is);\n int n = Integer.parseInt(sc.next());\n int count = 0;\n for (int i = 0; i < n; i++) {\n int d1 = Integer.parseInt(sc.next());\n int d2 = Integer.parseInt(sc.next());\n if (d1 == d2) {\n count++;\n } else {\n count = 0;\n }\n if (count == 3) {\n pw.println(\"Yes\");\n return;\n }\n }\n pw.println(\"No\");\n }", "Scanner sc = new Scanner(is);", "sc", "new Scanner(is)", "int n = Integer.parseInt(sc.next());", "n", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "int count = 0;", "count", "0", "for (int i = 0; i < n; i++) {\n int d1 = Integer.parseInt(sc.next());\n int d2 = Integer.parseInt(sc.next());\n if (d1 == d2) {\n count++;\n } else {\n count = 0;\n }\n if (count == 3) {\n pw.println(\"Yes\");\n return;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n int d1 = Integer.parseInt(sc.next());\n int d2 = Integer.parseInt(sc.next());\n if (d1 == d2) {\n count++;\n } else {\n count = 0;\n }\n if (count == 3) {\n pw.println(\"Yes\");\n return;\n }\n }", "{\n int d1 = Integer.parseInt(sc.next());\n int d2 = Integer.parseInt(sc.next());\n if (d1 == d2) {\n count++;\n } else {\n count = 0;\n }\n if (count == 3) {\n pw.println(\"Yes\");\n return;\n }\n }", "int d1 = Integer.parseInt(sc.next());", "d1", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "int d2 = Integer.parseInt(sc.next());", "d2", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "if (d1 == d2) {\n count++;\n } else {\n count = 0;\n }", "d1 == d2", "d1", "d2", "{\n count++;\n }", "count++", "count", "{\n count = 0;\n }", "count = 0", "count", "0", "if (count == 3) {\n pw.println(\"Yes\");\n return;\n }", "count == 3", "count", "3", "{\n pw.println(\"Yes\");\n return;\n }", "pw.println(\"Yes\")", "pw.println", "pw", "\"Yes\"", "return;", "pw.println(\"No\")", "pw.println", "pw", "\"No\"", "InputStream is", "is", "PrintStream pw", "pw", "public class Main {\n\n public static void main(String[] args) {\n resolve(System.in, System.out);\n }\n\n static void resolve(InputStream is, PrintStream pw) {\n Scanner sc = new Scanner(is);\n int n = Integer.parseInt(sc.next());\n int count = 0;\n for (int i = 0; i < n; i++) {\n int d1 = Integer.parseInt(sc.next());\n int d2 = Integer.parseInt(sc.next());\n if (d1 == d2) {\n count++;\n } else {\n count = 0;\n }\n if (count == 3) {\n pw.println(\"Yes\");\n return;\n }\n }\n pw.println(\"No\");\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n resolve(System.in, System.out);\n }\n\n static void resolve(InputStream is, PrintStream pw) {\n Scanner sc = new Scanner(is);\n int n = Integer.parseInt(sc.next());\n int count = 0;\n for (int i = 0; i < n; i++) {\n int d1 = Integer.parseInt(sc.next());\n int d2 = Integer.parseInt(sc.next());\n if (d1 == d2) {\n count++;\n } else {\n count = 0;\n }\n if (count == 3) {\n pw.println(\"Yes\");\n return;\n }\n }\n pw.println(\"No\");\n }\n}", "Main" ]
import java.io.InputStream; import java.io.PrintStream; import java.util.Scanner; public class Main { public static void main(String[] args) { resolve(System.in, System.out); } static void resolve(InputStream is, PrintStream pw) { Scanner sc = new Scanner(is); int n = Integer.parseInt(sc.next()); int count = 0; for (int i = 0; i < n; i++) { int d1 = Integer.parseInt(sc.next()); int d2 = Integer.parseInt(sc.next()); if (d1 == d2) { count++; } else { count = 0; } if (count == 3) { pw.println("Yes"); return; } } pw.println("No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 4, 18, 13, 0, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 18, 13, 13, 18, 13, 2, 13, 17, 18, 13, 2, 13, 17, 30, 4, 18, 13, 17, 4, 18, 13, 29, 4, 18, 13, 17, 4, 18, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 29, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 191, 8 ], [ 191, 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 ], [ 23, 25 ], [ 11, 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 ], [ 42, 43 ], [ 43, 44 ], [ 41, 45 ], [ 45, 46 ], [ 46, 47 ], [ 40, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 11, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 53, 63 ], [ 63, 64 ], [ 64, 65 ], [ 53, 66 ], [ 67, 67 ], [ 67, 68 ], [ 68, 69 ], [ 70, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 76, 78 ], [ 70, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 68, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 84, 89 ], [ 89, 90 ], [ 90, 91 ], [ 84, 92 ], [ 11, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 11, 97 ], [ 97, 98 ], [ 98, 99 ], [ 9, 100 ], [ 100, 101 ], [ 191, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 102, 106 ], [ 106, 107 ], [ 102, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 102, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 118, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 117, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 127, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 116, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 102, 142 ], [ 142, 143 ], [ 142, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 146, 149 ], [ 149, 150 ], [ 102, 151 ], [ 151, 152 ], [ 151, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 155, 158 ], [ 158, 159 ], [ 102, 160 ], [ 160, 161 ], [ 160, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 164, 167 ], [ 167, 168 ], [ 102, 169 ], [ 169, 170 ], [ 169, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 171, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 175, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 185, 186 ], [ 186, 187 ], [ 171, 188 ], [ 188, 189 ], [ 0, 190 ], [ 190, 191 ], [ 190, 192 ] ]
[ "import java.util.*;\nimport java.io.*;\n\npublic class Main {\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));\n int n = sc.nextInt();\n boolean [] ok = new boolean[n];\n for (int i = 0; i < n; i++) {\n if (sc.nextInt() == sc.nextInt()) ok[i] = true;\n }\n for (int i = 0; i < n - 2; i++) {\n if (ok[i] && ok[i + 1] && ok[i + 2]) {\n out.println(\"Yes\");\n out.close();\n return;\n }\n }\n out.println(\"No\");\n out.close();\n }\n\n\n //-----------MyScanner class for faster input----------\n public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n\n }\n\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));\n int n = sc.nextInt();\n boolean [] ok = new boolean[n];\n for (int i = 0; i < n; i++) {\n if (sc.nextInt() == sc.nextInt()) ok[i] = true;\n }\n for (int i = 0; i < n - 2; i++) {\n if (ok[i] && ok[i + 1] && ok[i + 2]) {\n out.println(\"Yes\");\n out.close();\n return;\n }\n }\n out.println(\"No\");\n out.close();\n }\n\n\n //-----------MyScanner class for faster input----------\n public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n\n }\n\n}", "Main", "public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));\n int n = sc.nextInt();\n boolean [] ok = new boolean[n];\n for (int i = 0; i < n; i++) {\n if (sc.nextInt() == sc.nextInt()) ok[i] = true;\n }\n for (int i = 0; i < n - 2; i++) {\n if (ok[i] && ok[i + 1] && ok[i + 2]) {\n out.println(\"Yes\");\n out.close();\n return;\n }\n }\n out.println(\"No\");\n out.close();\n }", "main", "{\n MyScanner sc = new MyScanner();\n PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));\n int n = sc.nextInt();\n boolean [] ok = new boolean[n];\n for (int i = 0; i < n; i++) {\n if (sc.nextInt() == sc.nextInt()) ok[i] = true;\n }\n for (int i = 0; i < n - 2; i++) {\n if (ok[i] && ok[i + 1] && ok[i + 2]) {\n out.println(\"Yes\");\n out.close();\n return;\n }\n }\n out.println(\"No\");\n out.close();\n }", "MyScanner sc = new MyScanner();", "sc", "new MyScanner()", "PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));", "out", "new PrintWriter(new BufferedOutputStream(System.out))", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "boolean [] ok = new boolean[n];", "ok", "new boolean[n]", "n", "for (int i = 0; i < n; i++) {\n if (sc.nextInt() == sc.nextInt()) ok[i] = true;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n if (sc.nextInt() == sc.nextInt()) ok[i] = true;\n }", "{\n if (sc.nextInt() == sc.nextInt()) ok[i] = true;\n }", "if (sc.nextInt() == sc.nextInt()) ok[i] = true;", "sc.nextInt() == sc.nextInt()", "sc.nextInt()", "sc.nextInt", "sc", "sc.nextInt()", "sc.nextInt", "sc", "ok[i] = true", "ok[i]", "ok", "i", "true", "for (int i = 0; i < n - 2; i++) {\n if (ok[i] && ok[i + 1] && ok[i + 2]) {\n out.println(\"Yes\");\n out.close();\n return;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n - 2", "i", "n - 2", "n", "2", "i++", "i++", "i", "{\n if (ok[i] && ok[i + 1] && ok[i + 2]) {\n out.println(\"Yes\");\n out.close();\n return;\n }\n }", "{\n if (ok[i] && ok[i + 1] && ok[i + 2]) {\n out.println(\"Yes\");\n out.close();\n return;\n }\n }", "if (ok[i] && ok[i + 1] && ok[i + 2]) {\n out.println(\"Yes\");\n out.close();\n return;\n }", "ok[i] && ok[i + 1] && ok[i + 2]", "ok[i] && ok[i + 1] && ok[i + 2]", "ok[i]", "ok", "i", "ok[i + 1]", "ok", "i + 1", "i", "1", "ok[i + 2]", "ok", "i + 2", "i", "2", "{\n out.println(\"Yes\");\n out.close();\n return;\n }", "out.println(\"Yes\")", "out.println", "out", "\"Yes\"", "out.close()", "out.close", "out", "return;", "out.println(\"No\")", "out.println", "out", "\"No\"", "out.close()", "out.close", "out", "String[] args", "args", "public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n\n }", "MyScanner", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "MyScanner", "{\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "br = new BufferedReader(new InputStreamReader(System.in))", "br", "new BufferedReader(new InputStreamReader(System.in))", "String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "double nextDouble() {\n return Double.parseDouble(next());\n }", "nextDouble", "{\n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }", "nextLine", "{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }", "String str = \"\";", "str", "\"\"", "try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n str = br.readLine();\n }", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "return str;", "str", "public class Main {\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));\n int n = sc.nextInt();\n boolean [] ok = new boolean[n];\n for (int i = 0; i < n; i++) {\n if (sc.nextInt() == sc.nextInt()) ok[i] = true;\n }\n for (int i = 0; i < n - 2; i++) {\n if (ok[i] && ok[i + 1] && ok[i + 2]) {\n out.println(\"Yes\");\n out.close();\n return;\n }\n }\n out.println(\"No\");\n out.close();\n }\n\n\n //-----------MyScanner class for faster input----------\n public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n\n }\n\n}", "public class Main {\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));\n int n = sc.nextInt();\n boolean [] ok = new boolean[n];\n for (int i = 0; i < n; i++) {\n if (sc.nextInt() == sc.nextInt()) ok[i] = true;\n }\n for (int i = 0; i < n - 2; i++) {\n if (ok[i] && ok[i + 1] && ok[i + 2]) {\n out.println(\"Yes\");\n out.close();\n return;\n }\n }\n out.println(\"No\");\n out.close();\n }\n\n\n //-----------MyScanner class for faster input----------\n public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n\n }\n\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) { MyScanner sc = new MyScanner(); PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out)); int n = sc.nextInt(); boolean [] ok = new boolean[n]; for (int i = 0; i < n; i++) { if (sc.nextInt() == sc.nextInt()) ok[i] = true; } for (int i = 0; i < n - 2; i++) { if (ok[i] && ok[i + 1] && ok[i + 2]) { out.println("Yes"); out.close(); return; } } out.println("No"); out.close(); } //-----------MyScanner class for faster input---------- public static class MyScanner { BufferedReader br; StringTokenizer st; public MyScanner() { br = new BufferedReader(new InputStreamReader(System.in)); } String next() { while (st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } double nextDouble() { return Double.parseDouble(next()); } String nextLine() { String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 20, 17, 0, 18, 13, 17, 4, 18, 13, 0, 18, 13, 17, 4, 18, 13, 4, 18, 13, 13, 4, 13, 13, 23, 13, 12, 13, 30, 41, 13, 17, 28, 13, 13, 30, 30, 14, 2, 18, 13, 17, 18, 13, 17, 30, 40, 13, 30, 0, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 29, 4, 18, 18, 13, 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 ], [ 113, 11 ], [ 113, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 38, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 38, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 14, 61 ], [ 61, 62 ], [ 61, 63 ], [ 12, 64 ], [ 64, 65 ], [ 113, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 72, 74 ], [ 72, 75 ], [ 76, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 82, 84 ], [ 77, 85 ], [ 85, 86 ], [ 86, 87 ], [ 77, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 76, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 96, 103 ], [ 68, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 66, 110 ], [ 110, 111 ], [ 0, 112 ], [ 112, 113 ], [ 112, 114 ] ]
[ "import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n List<int[]> examples = new ArrayList<>();\n for (int i = 0; i < N; i++) {\n int[] ints = new int[2];\n ints[0] = scanner.nextInt();\n ints[1] = scanner.nextInt();\n examples.add(ints);\n }\n judge(examples);\n }\n\n private static void judge(List<int[]> examples) {\n int count = 0;\n for (int[] item: examples) {\n if (item[0] == item[1]) {\n count++;\n } else {\n count = 0;\n }\n if (count == 3) {\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n List<int[]> examples = new ArrayList<>();\n for (int i = 0; i < N; i++) {\n int[] ints = new int[2];\n ints[0] = scanner.nextInt();\n ints[1] = scanner.nextInt();\n examples.add(ints);\n }\n judge(examples);\n }\n\n private static void judge(List<int[]> examples) {\n int count = 0;\n for (int[] item: examples) {\n if (item[0] == item[1]) {\n count++;\n } else {\n count = 0;\n }\n if (count == 3) {\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n List<int[]> examples = new ArrayList<>();\n for (int i = 0; i < N; i++) {\n int[] ints = new int[2];\n ints[0] = scanner.nextInt();\n ints[1] = scanner.nextInt();\n examples.add(ints);\n }\n judge(examples);\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n List<int[]> examples = new ArrayList<>();\n for (int i = 0; i < N; i++) {\n int[] ints = new int[2];\n ints[0] = scanner.nextInt();\n ints[1] = scanner.nextInt();\n examples.add(ints);\n }\n judge(examples);\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int N = scanner.nextInt();", "N", "scanner.nextInt()", "scanner.nextInt", "scanner", "List<int[]> examples = new ArrayList<>();", "examples", "new ArrayList<>()", "for (int i = 0; i < N; i++) {\n int[] ints = new int[2];\n ints[0] = scanner.nextInt();\n ints[1] = scanner.nextInt();\n examples.add(ints);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n int[] ints = new int[2];\n ints[0] = scanner.nextInt();\n ints[1] = scanner.nextInt();\n examples.add(ints);\n }", "{\n int[] ints = new int[2];\n ints[0] = scanner.nextInt();\n ints[1] = scanner.nextInt();\n examples.add(ints);\n }", "int[] ints = new int[2];", "ints", "new int[2]", "2", "ints[0] = scanner.nextInt()", "ints[0]", "ints", "0", "scanner.nextInt()", "scanner.nextInt", "scanner", "ints[1] = scanner.nextInt()", "ints[1]", "ints", "1", "scanner.nextInt()", "scanner.nextInt", "scanner", "examples.add(ints)", "examples.add", "examples", "ints", "judge(examples)", "judge", "examples", "String[] args", "args", "private static void judge(List<int[]> examples) {\n int count = 0;\n for (int[] item: examples) {\n if (item[0] == item[1]) {\n count++;\n } else {\n count = 0;\n }\n if (count == 3) {\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }", "judge", "{\n int count = 0;\n for (int[] item: examples) {\n if (item[0] == item[1]) {\n count++;\n } else {\n count = 0;\n }\n if (count == 3) {\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }", "int count = 0;", "count", "0", "for (int[] item: examples) {\n if (item[0] == item[1]) {\n count++;\n } else {\n count = 0;\n }\n if (count == 3) {\n System.out.println(\"Yes\");\n return;\n }\n }", "int[] item", "examples", "{\n if (item[0] == item[1]) {\n count++;\n } else {\n count = 0;\n }\n if (count == 3) {\n System.out.println(\"Yes\");\n return;\n }\n }", "{\n if (item[0] == item[1]) {\n count++;\n } else {\n count = 0;\n }\n if (count == 3) {\n System.out.println(\"Yes\");\n return;\n }\n }", "if (item[0] == item[1]) {\n count++;\n } else {\n count = 0;\n }", "item[0] == item[1]", "item[0]", "item", "0", "item[1]", "item", "1", "{\n count++;\n }", "count++", "count", "{\n count = 0;\n }", "count = 0", "count", "0", "if (count == 3) {\n System.out.println(\"Yes\");\n return;\n }", "count == 3", "count", "3", "{\n System.out.println(\"Yes\");\n return;\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "return;", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "List<int[]> examples", "examples", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n List<int[]> examples = new ArrayList<>();\n for (int i = 0; i < N; i++) {\n int[] ints = new int[2];\n ints[0] = scanner.nextInt();\n ints[1] = scanner.nextInt();\n examples.add(ints);\n }\n judge(examples);\n }\n\n private static void judge(List<int[]> examples) {\n int count = 0;\n for (int[] item: examples) {\n if (item[0] == item[1]) {\n count++;\n } else {\n count = 0;\n }\n if (count == 3) {\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n List<int[]> examples = new ArrayList<>();\n for (int i = 0; i < N; i++) {\n int[] ints = new int[2];\n ints[0] = scanner.nextInt();\n ints[1] = scanner.nextInt();\n examples.add(ints);\n }\n judge(examples);\n }\n\n private static void judge(List<int[]> examples) {\n int count = 0;\n for (int[] item: examples) {\n if (item[0] == item[1]) {\n count++;\n } else {\n count = 0;\n }\n if (count == 3) {\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }\n}", "Main" ]
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); List<int[]> examples = new ArrayList<>(); for (int i = 0; i < N; i++) { int[] ints = new int[2]; ints[0] = scanner.nextInt(); ints[1] = scanner.nextInt(); examples.add(ints); } judge(examples); } private static void judge(List<int[]> examples) { int count = 0; for (int[] item: examples) { if (item[0] == item[1]) { count++; } else { count = 0; } if (count == 3) { System.out.println("Yes"); return; } } System.out.println("No"); } }