node_ids
listlengths 4
1.4k
| edge_index
listlengths 1
2.22k
| text
listlengths 4
1.4k
| source
stringlengths 14
427k
|
---|---|---|---|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
49,
11
],
[
49,
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
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
14,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
40,
45
],
[
12,
46
],
[
46,
47
],
[
0,
48
],
[
48,
49
],
[
48,
50
]
]
| [
"import java.util.Scanner;\nimport java.util.Arrays;\nimport java.util.List;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t String input = sc.nextLine();\n\t\tString[] array = input.split(\" \");\n\t\tList<String> list = Arrays.asList(array);\n\t System.out.println(list.indexOf(\"0\") + 1);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.List;",
"List",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t String input = sc.nextLine();\n\t\tString[] array = input.split(\" \");\n\t\tList<String> list = Arrays.asList(array);\n\t System.out.println(list.indexOf(\"0\") + 1);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t String input = sc.nextLine();\n\t\tString[] array = input.split(\" \");\n\t\tList<String> list = Arrays.asList(array);\n\t System.out.println(list.indexOf(\"0\") + 1);\n\t}",
"main",
"{\n\t Scanner sc = new Scanner(System.in);\n\t String input = sc.nextLine();\n\t\tString[] array = input.split(\" \");\n\t\tList<String> list = Arrays.asList(array);\n\t System.out.println(list.indexOf(\"0\") + 1);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String input = sc.nextLine();",
"input",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String[] array = input.split(\" \");",
"array",
"input.split(\" \")",
"input.split",
"input",
"\" \"",
"List<String> list = Arrays.asList(array);",
"list",
"Arrays.asList(array)",
"Arrays.asList",
"Arrays",
"array",
"System.out.println(list.indexOf(\"0\") + 1)",
"System.out.println",
"System.out",
"System",
"System.out",
"list.indexOf(\"0\") + 1",
"list.indexOf(\"0\")",
"list.indexOf",
"list",
"\"0\"",
"1",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t String input = sc.nextLine();\n\t\tString[] array = input.split(\" \");\n\t\tList<String> list = Arrays.asList(array);\n\t System.out.println(list.indexOf(\"0\") + 1);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t String input = sc.nextLine();\n\t\tString[] array = input.split(\" \");\n\t\tList<String> list = Arrays.asList(array);\n\t System.out.println(list.indexOf(\"0\") + 1);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
import java.util.Arrays;
import java.util.List;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String input = sc.nextLine();
String[] array = input.split(" ");
List<String> list = Arrays.asList(array);
System.out.println(list.indexOf("0") + 1);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
14,
2,
13,
17,
30,
4,
18,
13,
2,
13,
17,
3,
4,
18,
13,
4,
18,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
66,
8
],
[
66,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
26,
27
],
[
26,
28
],
[
21,
29
],
[
29,
30
],
[
30,
31
],
[
21,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
40,
41
],
[
33,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
50,
51
],
[
50,
52
],
[
46,
53
],
[
11,
54
],
[
54,
55
],
[
55,
56
],
[
11,
57
],
[
57,
58
],
[
58,
59
],
[
11,
60
],
[
60,
61
],
[
61,
62
],
[
9,
63
],
[
63,
64
],
[
0,
65
],
[
65,
66
],
[
65,
67
]
]
| [
"import java.io.*;\nimport java.util.StringTokenizer;\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\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\t\n\t\tStringTokenizer st = new StringTokenizer(br.readLine());\n\n\t\tfor(int i=1;i<6;i++){\n\t\t\tint cur = Integer.parseInt(st.nextToken());\n\t\t\tif(cur == 0){\n\t\t\t\tbw.write(i+\"\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tbw.flush();\n\t\tbw.close();\n\t\tbr.close();\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.StringTokenizer;",
"StringTokenizer",
"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\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\t\n\t\tStringTokenizer st = new StringTokenizer(br.readLine());\n\n\t\tfor(int i=1;i<6;i++){\n\t\t\tint cur = Integer.parseInt(st.nextToken());\n\t\t\tif(cur == 0){\n\t\t\t\tbw.write(i+\"\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tbw.flush();\n\t\tbw.close();\n\t\tbr.close();\n\t}\n}",
"Main",
"public static void main(String [] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\t\n\t\tStringTokenizer st = new StringTokenizer(br.readLine());\n\n\t\tfor(int i=1;i<6;i++){\n\t\t\tint cur = Integer.parseInt(st.nextToken());\n\t\t\tif(cur == 0){\n\t\t\t\tbw.write(i+\"\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tbw.flush();\n\t\tbw.close();\n\t\tbr.close();\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\t\n\t\tStringTokenizer st = new StringTokenizer(br.readLine());\n\n\t\tfor(int i=1;i<6;i++){\n\t\t\tint cur = Integer.parseInt(st.nextToken());\n\t\t\tif(cur == 0){\n\t\t\t\tbw.write(i+\"\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tbw.flush();\n\t\tbw.close();\n\t\tbr.close();\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));",
"bw",
"new BufferedWriter(new OutputStreamWriter(System.out))",
"StringTokenizer st = new StringTokenizer(br.readLine());",
"st",
"new StringTokenizer(br.readLine())",
"for(int i=1;i<6;i++){\n\t\t\tint cur = Integer.parseInt(st.nextToken());\n\t\t\tif(cur == 0){\n\t\t\t\tbw.write(i+\"\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<6",
"i",
"6",
"i++",
"i++",
"i",
"{\n\t\t\tint cur = Integer.parseInt(st.nextToken());\n\t\t\tif(cur == 0){\n\t\t\t\tbw.write(i+\"\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tint cur = Integer.parseInt(st.nextToken());\n\t\t\tif(cur == 0){\n\t\t\t\tbw.write(i+\"\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int cur = Integer.parseInt(st.nextToken());",
"cur",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"if(cur == 0){\n\t\t\t\tbw.write(i+\"\");\n\t\t\t\tbreak;\n\t\t\t}",
"cur == 0",
"cur",
"0",
"{\n\t\t\t\tbw.write(i+\"\");\n\t\t\t\tbreak;\n\t\t\t}",
"bw.write(i+\"\")",
"bw.write",
"bw",
"i+\"\"",
"i",
"\"\"",
"break;",
"bw.flush()",
"bw.flush",
"bw",
"bw.close()",
"bw.close",
"bw",
"br.close()",
"br.close",
"br",
"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\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\t\n\t\tStringTokenizer st = new StringTokenizer(br.readLine());\n\n\t\tfor(int i=1;i<6;i++){\n\t\t\tint cur = Integer.parseInt(st.nextToken());\n\t\t\tif(cur == 0){\n\t\t\t\tbw.write(i+\"\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tbw.flush();\n\t\tbw.close();\n\t\tbr.close();\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\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\t\n\t\tStringTokenizer st = new StringTokenizer(br.readLine());\n\n\t\tfor(int i=1;i<6;i++){\n\t\t\tint cur = Integer.parseInt(st.nextToken());\n\t\t\tif(cur == 0){\n\t\t\t\tbw.write(i+\"\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tbw.flush();\n\t\tbw.close();\n\t\tbr.close();\n\t}\n}",
"Main"
]
| import java.io.*;
import java.util.StringTokenizer;
public class Main{
public static void main(String [] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
StringTokenizer st = new StringTokenizer(br.readLine());
for(int i=1;i<6;i++){
int cur = Integer.parseInt(st.nextToken());
if(cur == 0){
bw.write(i+"");
break;
}
}
bw.flush();
bw.close();
br.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
18,
23
],
[
23,
24
],
[
23,
25
],
[
18,
26
],
[
26,
27
],
[
27,
28
],
[
18,
29
],
[
30,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
30,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
11,
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
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
54,
59
],
[
53,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
9,
69
],
[
69,
70
]
]
| [
"import java.util.Scanner;\nimport java.util.ArrayList;\nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n ArrayList <Integer> li = new ArrayList <Integer>();\n for(int i=0;i<5;i++){\n int a = sc.nextInt();\n li.add(a);\n }\n for(int i=0;i<5;i++){\n if(li.get(i)==0){\n System.out.println(i+1);\n }\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n ArrayList <Integer> li = new ArrayList <Integer>();\n for(int i=0;i<5;i++){\n int a = sc.nextInt();\n li.add(a);\n }\n for(int i=0;i<5;i++){\n if(li.get(i)==0){\n System.out.println(i+1);\n }\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n ArrayList <Integer> li = new ArrayList <Integer>();\n for(int i=0;i<5;i++){\n int a = sc.nextInt();\n li.add(a);\n }\n for(int i=0;i<5;i++){\n if(li.get(i)==0){\n System.out.println(i+1);\n }\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n ArrayList <Integer> li = new ArrayList <Integer>();\n for(int i=0;i<5;i++){\n int a = sc.nextInt();\n li.add(a);\n }\n for(int i=0;i<5;i++){\n if(li.get(i)==0){\n System.out.println(i+1);\n }\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"ArrayList <Integer> li = new ArrayList <Integer>();",
"li",
"new ArrayList <Integer>()",
"for(int i=0;i<5;i++){\n int a = sc.nextInt();\n li.add(a);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<5",
"i",
"5",
"i++",
"i++",
"i",
"{\n int a = sc.nextInt();\n li.add(a);\n }",
"{\n int a = sc.nextInt();\n li.add(a);\n }",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"li.add(a)",
"li.add",
"li",
"a",
"for(int i=0;i<5;i++){\n if(li.get(i)==0){\n System.out.println(i+1);\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<5",
"i",
"5",
"i++",
"i++",
"i",
"{\n if(li.get(i)==0){\n System.out.println(i+1);\n }\n }",
"{\n if(li.get(i)==0){\n System.out.println(i+1);\n }\n }",
"if(li.get(i)==0){\n System.out.println(i+1);\n }",
"li.get(i)==0",
"li.get(i)",
"li.get",
"li",
"i",
"0",
"{\n System.out.println(i+1);\n }",
"System.out.println(i+1)",
"System.out.println",
"System.out",
"System",
"System.out",
"i+1",
"i",
"1",
"String[] args",
"args"
]
| import java.util.Scanner;
import java.util.ArrayList;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
ArrayList <Integer> li = new ArrayList <Integer>();
for(int i=0;i<5;i++){
int a = sc.nextInt();
li.add(a);
}
for(int i=0;i<5;i++){
if(li.get(i)==0){
System.out.println(i+1);
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
41,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
4,
18,
13,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
20,
17,
23,
13,
12,
13,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
2,
18,
13,
13,
17,
30,
0,
13,
2,
13,
17,
29,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
98,
5
],
[
98,
6
],
[
6,
7
],
[
98,
8
],
[
8,
9
],
[
98,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
12,
16
],
[
16,
17
],
[
16,
18
],
[
12,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
22,
23
],
[
23,
24
],
[
12,
25
],
[
25,
26
],
[
26,
27
],
[
10,
28
],
[
28,
29
],
[
98,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
30,
44
],
[
44,
45
],
[
98,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
52,
60
],
[
60,
61
],
[
61,
62
],
[
52,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
70,
71
],
[
64,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
72,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
81,
83
],
[
48,
84
],
[
84,
85
],
[
98,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
86,
95
],
[
95,
96
],
[
0,
97
],
[
97,
98
],
[
97,
99
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n Main m = new Main(sc);\n m.show(m.solve());\n sc.close();\n }\n \n\t//フィールド\n Scanner sc;\n int[] x;\n \n //入力\n Main(Scanner sc) {\n this.sc = sc;\n this.x = new int[5];\n }\n \n //解答処理\n private int solve() {\n int answer = 0;\n for (int i=0; i<5; i++) {\n \tx[i] = sc.nextInt();\n \tif (x[i] == 0) {\n \t\tanswer = i+1;\n \t}\n }\n \n return answer;\n }\n \n //出力\n public void show(int answer) {\n System.out.println(answer);\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n Main m = new Main(sc);\n m.show(m.solve());\n sc.close();\n }\n \n\t//フィールド\n Scanner sc;\n int[] x;\n \n //入力\n Main(Scanner sc) {\n this.sc = sc;\n this.x = new int[5];\n }\n \n //解答処理\n private int solve() {\n int answer = 0;\n for (int i=0; i<5; i++) {\n \tx[i] = sc.nextInt();\n \tif (x[i] == 0) {\n \t\tanswer = i+1;\n \t}\n }\n \n return answer;\n }\n \n //出力\n public void show(int answer) {\n System.out.println(answer);\n }\n\n}",
"Main",
"//フィールド\n Scanner sc;",
"sc",
"int[] x;",
"x",
"public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n Main m = new Main(sc);\n m.show(m.solve());\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n Main m = new Main(sc);\n m.show(m.solve());\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"Main m = new Main(sc);",
"m",
"new Main(sc)",
"m.show(m.solve())",
"m.show",
"m",
"m.solve()",
"m.solve",
"m",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"//入力\n Main(Scanner sc) {\n this.sc = sc;\n this.x = new int[5];\n }",
"Main",
"{\n this.sc = sc;\n this.x = new int[5];\n }",
"this.sc = sc",
"this.sc",
"this",
"this.sc",
"sc",
"this.x = new int[5]",
"this.x",
"this",
"this.x",
"new int[5]",
"5",
"Scanner sc",
"sc",
"//解答処理\n private int solve() {\n int answer = 0;\n for (int i=0; i<5; i++) {\n \tx[i] = sc.nextInt();\n \tif (x[i] == 0) {\n \t\tanswer = i+1;\n \t}\n }\n \n return answer;\n }",
"solve",
"{\n int answer = 0;\n for (int i=0; i<5; i++) {\n \tx[i] = sc.nextInt();\n \tif (x[i] == 0) {\n \t\tanswer = i+1;\n \t}\n }\n \n return answer;\n }",
"int answer = 0;",
"answer",
"0",
"for (int i=0; i<5; i++) {\n \tx[i] = sc.nextInt();\n \tif (x[i] == 0) {\n \t\tanswer = i+1;\n \t}\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<5",
"i",
"5",
"i++",
"i++",
"i",
"{\n \tx[i] = sc.nextInt();\n \tif (x[i] == 0) {\n \t\tanswer = i+1;\n \t}\n }",
"{\n \tx[i] = sc.nextInt();\n \tif (x[i] == 0) {\n \t\tanswer = i+1;\n \t}\n }",
"x[i] = sc.nextInt()",
"x[i]",
"x",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (x[i] == 0) {\n \t\tanswer = i+1;\n \t}",
"x[i] == 0",
"x[i]",
"x",
"i",
"0",
"{\n \t\tanswer = i+1;\n \t}",
"answer = i+1",
"answer",
"i+1",
"i",
"1",
"return answer;",
"answer",
"//出力\n public void show(int answer) {\n System.out.println(answer);\n }",
"show",
"{\n System.out.println(answer);\n }",
"System.out.println(answer)",
"System.out.println",
"System.out",
"System",
"System.out",
"answer",
"int answer",
"answer",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n Main m = new Main(sc);\n m.show(m.solve());\n sc.close();\n }\n \n\t//フィールド\n Scanner sc;\n int[] x;\n \n //入力\n Main(Scanner sc) {\n this.sc = sc;\n this.x = new int[5];\n }\n \n //解答処理\n private int solve() {\n int answer = 0;\n for (int i=0; i<5; i++) {\n \tx[i] = sc.nextInt();\n \tif (x[i] == 0) {\n \t\tanswer = i+1;\n \t}\n }\n \n return answer;\n }\n \n //出力\n public void show(int answer) {\n System.out.println(answer);\n }\n\n}",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n Main m = new Main(sc);\n m.show(m.solve());\n sc.close();\n }\n \n\t//フィールド\n Scanner sc;\n int[] x;\n \n //入力\n Main(Scanner sc) {\n this.sc = sc;\n this.x = new int[5];\n }\n \n //解答処理\n private int solve() {\n int answer = 0;\n for (int i=0; i<5; i++) {\n \tx[i] = sc.nextInt();\n \tif (x[i] == 0) {\n \t\tanswer = i+1;\n \t}\n }\n \n return answer;\n }\n \n //出力\n public void show(int answer) {\n System.out.println(answer);\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);
Main m = new Main(sc);
m.show(m.solve());
sc.close();
}
//フィールド
Scanner sc;
int[] x;
//入力
Main(Scanner sc) {
this.sc = sc;
this.x = new int[5];
}
//解答処理
private int solve() {
int answer = 0;
for (int i=0; i<5; i++) {
x[i] = sc.nextInt();
if (x[i] == 0) {
answer = i+1;
}
}
return answer;
}
//出力
public void show(int answer) {
System.out.println(answer);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
2,
18,
13,
13,
17,
30,
0,
13,
13,
3,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
61,
5
],
[
61,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
8,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
24,
25
],
[
24,
26
],
[
19,
27
],
[
27,
28
],
[
28,
29
],
[
19,
30
],
[
31,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
8,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
6,
58
],
[
58,
59
],
[
0,
60
],
[
60,
61
],
[
60,
62
]
]
| [
"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 sin[] = new int[5];\n\t\tint good = 0;\n\t\t\n\t\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tsin[i] = scan.nextInt();\n\t\t\tif(sin[i] == 0) {\n\t\t\t\tgood = i;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(good + 1);\n\t\t\n\t}\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 sin[] = new int[5];\n\t\tint good = 0;\n\t\t\n\t\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tsin[i] = scan.nextInt();\n\t\t\tif(sin[i] == 0) {\n\t\t\t\tgood = i;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(good + 1);\n\t\t\n\t}\n\t\t\n\t\n}",
"Main",
"public static void main(String args[]) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint sin[] = new int[5];\n\t\tint good = 0;\n\t\t\n\t\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tsin[i] = scan.nextInt();\n\t\t\tif(sin[i] == 0) {\n\t\t\t\tgood = i;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(good + 1);\n\t\t\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint sin[] = new int[5];\n\t\tint good = 0;\n\t\t\n\t\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tsin[i] = scan.nextInt();\n\t\t\tif(sin[i] == 0) {\n\t\t\t\tgood = i;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(good + 1);\n\t\t\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int sin[] = new int[5];",
"sin",
"new int[5]",
"5",
"int good = 0;",
"good",
"0",
"for(int i = 0; i < 5; i++) {\n\t\t\tsin[i] = scan.nextInt();\n\t\t\tif(sin[i] == 0) {\n\t\t\t\tgood = i;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n\t\t\tsin[i] = scan.nextInt();\n\t\t\tif(sin[i] == 0) {\n\t\t\t\tgood = i;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}",
"{\n\t\t\tsin[i] = scan.nextInt();\n\t\t\tif(sin[i] == 0) {\n\t\t\t\tgood = i;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}",
"sin[i] = scan.nextInt()",
"sin[i]",
"sin",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if(sin[i] == 0) {\n\t\t\t\tgood = i;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}",
"sin[i] == 0",
"sin[i]",
"sin",
"i",
"0",
"{\n\t\t\t\tgood = i;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}",
"good = i",
"good",
"i",
"break;",
"System.out.println(good + 1)",
"System.out.println",
"System.out",
"System",
"System.out",
"good + 1",
"good",
"1",
"String args[]",
"args",
"public class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint sin[] = new int[5];\n\t\tint good = 0;\n\t\t\n\t\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tsin[i] = scan.nextInt();\n\t\t\tif(sin[i] == 0) {\n\t\t\t\tgood = i;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(good + 1);\n\t\t\n\t}\n\t\t\n\t\n}",
"public class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint sin[] = new int[5];\n\t\tint good = 0;\n\t\t\n\t\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tsin[i] = scan.nextInt();\n\t\t\tif(sin[i] == 0) {\n\t\t\t\tgood = i;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(good + 1);\n\t\t\n\t}\n\t\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 sin[] = new int[5];
int good = 0;
for(int i = 0; i < 5; i++) {
sin[i] = scan.nextInt();
if(sin[i] == 0) {
good = i;
break;
}
}
System.out.println(good + 1);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
42,
2,
40,
13,
17,
30,
41,
13,
17,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
17,
29,
23,
13,
12,
13,
30,
41,
13,
17,
0,
13,
2,
2,
4,
13,
13,
13,
13,
4,
13,
13,
13,
13,
17,
29,
13,
23,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
2,
13,
17,
42,
2,
13,
13,
30,
41,
13,
2,
2,
13,
13,
17,
14,
2,
18,
13,
13,
13,
0,
13,
2,
13,
17,
0,
13,
2,
13,
17,
29,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
2,
13,
17,
42,
2,
13,
13,
30,
41,
13,
2,
2,
13,
13,
17,
14,
2,
18,
13,
13,
13,
0,
13,
2,
13,
17,
0,
13,
2,
13,
17,
29,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
17,
29,
13,
41,
13,
20,
42,
2,
13,
17,
30,
4,
18,
13,
2,
13,
17,
0,
13,
17,
0,
13,
4,
18,
13,
41,
13,
20,
41,
13,
4,
18,
13,
42,
2,
13,
17,
30,
4,
18,
13,
17,
40,
13,
4,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
40,
17,
41,
13,
17,
41,
13,
13,
42,
2,
13,
13,
30,
0,
13,
2,
2,
13,
13,
17,
14,
2,
13,
13,
30,
29,
13,
14,
2,
13,
18,
13,
13,
30,
0,
13,
2,
13,
17,
14,
2,
13,
18,
13,
13,
30,
0,
13,
2,
13,
17,
30,
29,
13,
29,
40,
13,
23,
13,
23,
13,
6,
13,
41,
13,
2,
17,
17,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
13,
0,
13,
0,
13,
17,
12,
13,
30,
0,
13,
20,
0,
13,
20,
13,
0,
13,
0,
13,
17,
23,
13,
12,
13,
30,
41,
13,
20,
17,
41,
13,
17,
41,
13,
42,
2,
0,
13,
4,
13,
40,
17,
30,
14,
2,
13,
17,
3,
0,
18,
13,
40,
13,
13,
29,
20,
12,
13,
30,
41,
13,
17,
41,
13,
4,
13,
42,
2,
13,
17,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
13,
29,
40,
13,
29,
13,
12,
13,
30,
41,
13,
17,
41,
13,
4,
13,
42,
2,
13,
17,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
13,
29,
40,
13,
29,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
4,
13,
42,
2,
13,
17,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
2,
13,
17,
30,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
13,
17,
0,
13,
17,
14,
13,
29,
40,
13,
29,
13,
12,
13,
30,
0,
13,
4,
18,
13,
13,
0,
13,
17,
13,
14,
2,
13,
40,
17,
0,
18,
13,
17,
40,
17,
12,
13,
30,
14,
2,
13,
13,
4,
13,
29,
18,
13,
40,
13,
12,
13,
30,
14,
2,
13,
17,
29,
4,
18,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
692,
11
],
[
692,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
21,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
39,
40
],
[
39,
41
],
[
34,
42
],
[
42,
43
],
[
43,
44
],
[
34,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
51,
52
],
[
26,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
53,
64
],
[
65,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
74,
83
],
[
12,
84
],
[
84,
85
],
[
692,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
96,
99
],
[
96,
100
],
[
95,
101
],
[
101,
102
],
[
101,
103
],
[
101,
104
],
[
101,
105
],
[
94,
106
],
[
88,
107
],
[
107,
108
],
[
86,
109
],
[
109,
110
],
[
86,
111
],
[
111,
112
],
[
86,
113
],
[
113,
114
],
[
86,
115
],
[
115,
116
],
[
692,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
125,
127
],
[
119,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
135,
139
],
[
132,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
145
],
[
140,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
148,
150
],
[
140,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
153,
155
],
[
119,
156
],
[
156,
157
],
[
117,
158
],
[
158,
159
],
[
117,
160
],
[
160,
161
],
[
117,
162
],
[
162,
163
],
[
692,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
172,
174
],
[
166,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
175,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
182,
186
],
[
179,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
188,
192
],
[
187,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
195,
197
],
[
187,
198
],
[
198,
199
],
[
198,
200
],
[
200,
201
],
[
200,
202
],
[
166,
203
],
[
203,
204
],
[
164,
205
],
[
205,
206
],
[
164,
207
],
[
207,
208
],
[
164,
209
],
[
209,
210
],
[
692,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
214,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
218,
222
],
[
222,
223
],
[
223,
224
],
[
224,
225
],
[
224,
226
],
[
222,
227
],
[
227,
228
],
[
227,
229
],
[
222,
230
],
[
230,
231
],
[
231,
232
],
[
222,
233
],
[
234,
234
],
[
234,
235
],
[
235,
236
],
[
236,
237
],
[
235,
238
],
[
218,
239
],
[
239,
240
],
[
213,
241
],
[
241,
242
],
[
241,
243
],
[
213,
244
],
[
244,
245
],
[
245,
246
],
[
245,
247
],
[
244,
248
],
[
248,
249
],
[
249,
250
],
[
250,
251
],
[
249,
252
],
[
252,
253
],
[
252,
254
],
[
248,
255
],
[
255,
256
],
[
255,
257
],
[
213,
258
],
[
258,
259
],
[
258,
260
],
[
260,
261
],
[
261,
262
],
[
213,
263
],
[
263,
264
],
[
263,
265
],
[
213,
266
],
[
266,
267
],
[
266,
268
],
[
268,
269
],
[
269,
270
],
[
213,
271
],
[
271,
272
],
[
272,
273
],
[
272,
274
],
[
271,
275
],
[
275,
276
],
[
276,
277
],
[
277,
278
],
[
276,
279
],
[
275,
280
],
[
280,
281
],
[
213,
282
],
[
282,
283
],
[
283,
284
],
[
282,
285
],
[
213,
286
],
[
286,
287
],
[
211,
288
],
[
288,
289
],
[
692,
290
],
[
290,
291
],
[
290,
292
],
[
292,
293
],
[
293,
294
],
[
293,
295
],
[
295,
296
],
[
295,
297
],
[
292,
298
],
[
298,
299
],
[
298,
300
],
[
300,
301
],
[
292,
302
],
[
302,
303
],
[
302,
304
],
[
292,
305
],
[
305,
306
],
[
305,
307
],
[
292,
308
],
[
308,
309
],
[
309,
310
],
[
309,
311
],
[
308,
312
],
[
312,
313
],
[
313,
314
],
[
313,
315
],
[
315,
316
],
[
316,
317
],
[
316,
318
],
[
315,
319
],
[
312,
320
],
[
320,
321
],
[
321,
322
],
[
321,
323
],
[
320,
324
],
[
324,
325
],
[
325,
326
],
[
312,
327
],
[
327,
328
],
[
328,
329
],
[
328,
330
],
[
330,
331
],
[
330,
332
],
[
327,
333
],
[
333,
334
],
[
334,
335
],
[
334,
336
],
[
336,
337
],
[
336,
338
],
[
327,
339
],
[
339,
340
],
[
340,
341
],
[
340,
342
],
[
342,
343
],
[
342,
344
],
[
339,
345
],
[
345,
346
],
[
346,
347
],
[
346,
348
],
[
348,
349
],
[
348,
350
],
[
339,
351
],
[
351,
352
],
[
352,
353
],
[
292,
354
],
[
354,
355
],
[
355,
356
],
[
290,
357
],
[
357,
358
],
[
290,
359
],
[
359,
360
],
[
692,
361
],
[
361,
362
],
[
361,
363
],
[
363,
364
],
[
363,
365
],
[
365,
366
],
[
365,
367
],
[
361,
368
],
[
368,
369
],
[
361,
370
],
[
370,
371
],
[
361,
372
],
[
372,
373
],
[
361,
374
],
[
374,
375
],
[
361,
376
],
[
376,
377
],
[
376,
378
],
[
378,
379
],
[
379,
380
],
[
379,
381
],
[
378,
382
],
[
382,
383
],
[
382,
384
],
[
378,
386
],
[
386,
387
],
[
386,
388
],
[
388,
389
],
[
388,
390
],
[
361,
391
],
[
391,
392
],
[
391,
393
],
[
393,
394
],
[
394,
395
],
[
394,
396
],
[
393,
397
],
[
397,
398
],
[
397,
399
],
[
393,
401
],
[
401,
402
],
[
401,
403
],
[
403,
404
],
[
403,
405
],
[
391,
406
],
[
406,
407
],
[
361,
408
],
[
408,
409
],
[
408,
410
],
[
410,
411
],
[
411,
412
],
[
411,
413
],
[
410,
415
],
[
415,
416
],
[
415,
417
],
[
410,
418
],
[
418,
419
],
[
410,
420
],
[
420,
421
],
[
421,
422
],
[
422,
423
],
[
422,
424
],
[
424,
425
],
[
421,
426
],
[
426,
427
],
[
420,
428
],
[
428,
429
],
[
429,
430
],
[
430,
431
],
[
430,
432
],
[
429,
433
],
[
428,
434
],
[
434,
435
],
[
435,
436
],
[
435,
437
],
[
437,
438
],
[
434,
439
],
[
410,
440
],
[
440,
441
],
[
361,
442
],
[
442,
443
],
[
442,
444
],
[
444,
445
],
[
445,
446
],
[
445,
447
],
[
444,
448
],
[
448,
449
],
[
448,
450
],
[
450,
451
],
[
444,
452
],
[
452,
453
],
[
453,
454
],
[
453,
455
],
[
452,
456
],
[
456,
457
],
[
456,
458
],
[
458,
459
],
[
444,
460
],
[
460,
461
],
[
460,
462
],
[
462,
463
],
[
462,
464
],
[
444,
465
],
[
465,
466
],
[
465,
467
],
[
467,
468
],
[
467,
469
],
[
469,
470
],
[
444,
471
],
[
471,
472
],
[
472,
473
],
[
473,
474
],
[
474,
475
],
[
474,
476
],
[
476,
477
],
[
473,
478
],
[
472,
479
],
[
479,
480
],
[
479,
481
],
[
471,
482
],
[
482,
483
],
[
483,
484
],
[
483,
485
],
[
485,
486
],
[
486,
487
],
[
487,
488
],
[
487,
489
],
[
486,
490
],
[
485,
491
],
[
444,
492
],
[
492,
493
],
[
492,
494
],
[
494,
495
],
[
495,
496
],
[
444,
497
],
[
497,
498
],
[
361,
499
],
[
499,
500
],
[
499,
501
],
[
501,
502
],
[
502,
503
],
[
502,
504
],
[
501,
505
],
[
505,
506
],
[
505,
507
],
[
507,
508
],
[
501,
509
],
[
509,
510
],
[
510,
511
],
[
510,
512
],
[
509,
513
],
[
513,
514
],
[
513,
515
],
[
515,
516
],
[
501,
517
],
[
517,
518
],
[
517,
519
],
[
519,
520
],
[
519,
521
],
[
501,
522
],
[
522,
523
],
[
522,
524
],
[
524,
525
],
[
524,
526
],
[
526,
527
],
[
501,
528
],
[
528,
529
],
[
529,
530
],
[
530,
531
],
[
531,
532
],
[
531,
533
],
[
533,
534
],
[
530,
535
],
[
529,
536
],
[
536,
537
],
[
536,
538
],
[
528,
539
],
[
539,
540
],
[
540,
541
],
[
540,
542
],
[
542,
543
],
[
543,
544
],
[
544,
545
],
[
544,
546
],
[
543,
547
],
[
542,
548
],
[
501,
549
],
[
549,
550
],
[
549,
551
],
[
551,
552
],
[
552,
553
],
[
501,
554
],
[
554,
555
],
[
361,
556
],
[
556,
557
],
[
556,
558
],
[
558,
559
],
[
559,
560
],
[
559,
561
],
[
558,
562
],
[
562,
563
],
[
562,
564
],
[
558,
565
],
[
565,
566
],
[
565,
567
],
[
567,
568
],
[
558,
569
],
[
569,
570
],
[
570,
571
],
[
570,
572
],
[
569,
573
],
[
573,
574
],
[
573,
575
],
[
575,
576
],
[
558,
577
],
[
577,
578
],
[
577,
579
],
[
579,
580
],
[
579,
581
],
[
558,
582
],
[
582,
583
],
[
582,
584
],
[
584,
585
],
[
584,
586
],
[
586,
587
],
[
558,
588
],
[
588,
589
],
[
589,
590
],
[
590,
591
],
[
591,
592
],
[
591,
593
],
[
593,
594
],
[
590,
595
],
[
589,
596
],
[
596,
597
],
[
596,
598
],
[
588,
599
],
[
599,
600
],
[
600,
601
],
[
600,
602
],
[
602,
603
],
[
603,
604
],
[
604,
605
],
[
604,
606
],
[
603,
607
],
[
602,
608
],
[
558,
609
],
[
609,
610
],
[
610,
611
],
[
610,
612
],
[
609,
613
],
[
613,
614
],
[
614,
615
],
[
615,
616
],
[
616,
617
],
[
617,
618
],
[
617,
619
],
[
619,
620
],
[
616,
621
],
[
615,
622
],
[
622,
623
],
[
622,
624
],
[
614,
625
],
[
625,
626
],
[
626,
627
],
[
626,
628
],
[
628,
629
],
[
629,
630
],
[
629,
631
],
[
628,
632
],
[
632,
633
],
[
632,
634
],
[
558,
635
],
[
635,
636
],
[
635,
637
],
[
637,
638
],
[
638,
639
],
[
558,
640
],
[
640,
641
],
[
361,
642
],
[
642,
643
],
[
642,
644
],
[
644,
645
],
[
645,
646
],
[
645,
647
],
[
647,
648
],
[
648,
649
],
[
647,
650
],
[
647,
651
],
[
651,
652
],
[
651,
653
],
[
647,
654
],
[
644,
655
],
[
655,
656
],
[
656,
657
],
[
656,
658
],
[
658,
659
],
[
655,
660
],
[
660,
661
],
[
661,
662
],
[
661,
663
],
[
660,
664
],
[
664,
665
],
[
361,
666
],
[
666,
667
],
[
666,
668
],
[
668,
669
],
[
669,
670
],
[
670,
671
],
[
670,
672
],
[
669,
673
],
[
673,
674
],
[
668,
675
],
[
675,
676
],
[
676,
677
],
[
676,
678
],
[
678,
679
],
[
361,
680
],
[
680,
681
],
[
680,
682
],
[
682,
683
],
[
683,
684
],
[
684,
685
],
[
684,
686
],
[
683,
687
],
[
682,
688
],
[
688,
689
],
[
689,
690
],
[
0,
691
],
[
691,
692
],
[
691,
693
]
]
| [
"\nimport java.io.*;\nimport java.util.*;\nimport java.math.*;\n\npublic class Main { \n \n public static void main(String[] args) throws java.lang.Exception { \n Reader pm =new Reader(); \n //Scanner pm = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n int t = 1;\n while(t-- > 0){\n int n = 5;\n int[] a = new int[n];\n\n for(int i=0;i<n;i++)\n a[i] = pm.nextInt();\n for(int i=0;i<n;i++){\n if(a[i] != i+1){\n System.out.println(i+1);\n return;\n }\n }\n }\n //end of tests\n \n }\n //end of main class\n\n static int countInRange(int arr[], int n, int x, int y) { \n // initialize result \n int count = 0; \n count = upperIndex(arr, n, y) - \n lowerIndex(arr, n, x) + 1; \n return count; \n } \n \n \n static int lowerIndex(int arr[], int n, int x) { \n int l = 0, h = n - 1; \n while (l <= h) \n { \n int mid = (l + h) / 2; \n if (arr[mid] >= x) \n h = mid - 1; \n else\n l = mid + 1; \n } \n return l; \n } \n \n // function to find last index <= y \n static int upperIndex(int arr[], int n, int y) { \n int l = 0, h = n - 1; \n while (l <= h) \n { \n int mid = (l + h) / 2; \n if (arr[mid] <= y) \n l = mid + 1; \n else\n h = mid - 1; \n } \n return h; \n }\n \n public static StringBuilder dec_to_bin(long n) {\n // decimal to binary upto 30 binaries\n if(n==0) {\n StringBuilder str=new StringBuilder(\"\");\n for(int i=0;i<30;i++) {\n str.append(\"0\");\n }\n return str;\n }\n StringBuilder str=new StringBuilder(\"\");\n while(n!=0) {\n str.append(n%2L);\n n/=2L;\n }\n str=str.reverse();\n StringBuilder tmp_str=new StringBuilder(\"\");\n int len=str.length();\n while(len!=30) {\n tmp_str.append(\"0\");\n len++;\n }\n tmp_str.append(str);\n return tmp_str;\n }\n \n private static int binarySearchPM(int[] arr, int key){\n int n = arr.length;\n int mid = -1;\n int begin = 0,end=n;\n while(begin <= end){\n mid = (begin+end) / 2;\n if(mid == n){\n return n;\n }\n if(key < arr[mid]){\n end = mid-1;\n } else if(key > arr[mid]){\n begin = mid+1;\n } else {\n return mid;\n }\n }\n //System.out.println(begin+\" \"+end);\n return -begin; //expected Index\n }\n \n static class Reader { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead; \n \n public Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public Reader(String file_name) throws IOException \n { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public String readLine() throws IOException \n { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n } \n \n public int nextInt() throws IOException \n { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n } \n \n public long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n } \n \n public double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n } \n \n private void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n } \n \n private byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n } \n \n public void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n } \n }\n} ",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.math.*;",
"math.*",
"java",
"public class Main { \n \n public static void main(String[] args) throws java.lang.Exception { \n Reader pm =new Reader(); \n //Scanner pm = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n int t = 1;\n while(t-- > 0){\n int n = 5;\n int[] a = new int[n];\n\n for(int i=0;i<n;i++)\n a[i] = pm.nextInt();\n for(int i=0;i<n;i++){\n if(a[i] != i+1){\n System.out.println(i+1);\n return;\n }\n }\n }\n //end of tests\n \n }\n //end of main class\n\n static int countInRange(int arr[], int n, int x, int y) { \n // initialize result \n int count = 0; \n count = upperIndex(arr, n, y) - \n lowerIndex(arr, n, x) + 1; \n return count; \n } \n \n \n static int lowerIndex(int arr[], int n, int x) { \n int l = 0, h = n - 1; \n while (l <= h) \n { \n int mid = (l + h) / 2; \n if (arr[mid] >= x) \n h = mid - 1; \n else\n l = mid + 1; \n } \n return l; \n } \n \n // function to find last index <= y \n static int upperIndex(int arr[], int n, int y) { \n int l = 0, h = n - 1; \n while (l <= h) \n { \n int mid = (l + h) / 2; \n if (arr[mid] <= y) \n l = mid + 1; \n else\n h = mid - 1; \n } \n return h; \n }\n \n public static StringBuilder dec_to_bin(long n) {\n // decimal to binary upto 30 binaries\n if(n==0) {\n StringBuilder str=new StringBuilder(\"\");\n for(int i=0;i<30;i++) {\n str.append(\"0\");\n }\n return str;\n }\n StringBuilder str=new StringBuilder(\"\");\n while(n!=0) {\n str.append(n%2L);\n n/=2L;\n }\n str=str.reverse();\n StringBuilder tmp_str=new StringBuilder(\"\");\n int len=str.length();\n while(len!=30) {\n tmp_str.append(\"0\");\n len++;\n }\n tmp_str.append(str);\n return tmp_str;\n }\n \n private static int binarySearchPM(int[] arr, int key){\n int n = arr.length;\n int mid = -1;\n int begin = 0,end=n;\n while(begin <= end){\n mid = (begin+end) / 2;\n if(mid == n){\n return n;\n }\n if(key < arr[mid]){\n end = mid-1;\n } else if(key > arr[mid]){\n begin = mid+1;\n } else {\n return mid;\n }\n }\n //System.out.println(begin+\" \"+end);\n return -begin; //expected Index\n }\n \n static class Reader { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead; \n \n public Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public Reader(String file_name) throws IOException \n { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public String readLine() throws IOException \n { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n } \n \n public int nextInt() throws IOException \n { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n } \n \n public long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n } \n \n public double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n } \n \n private void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n } \n \n private byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n } \n \n public void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n } \n }\n}",
"Main",
"public static void main(String[] args) throws java.lang.Exception { \n Reader pm =new Reader(); \n //Scanner pm = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n int t = 1;\n while(t-- > 0){\n int n = 5;\n int[] a = new int[n];\n\n for(int i=0;i<n;i++)\n a[i] = pm.nextInt();\n for(int i=0;i<n;i++){\n if(a[i] != i+1){\n System.out.println(i+1);\n return;\n }\n }\n }\n //end of tests\n \n }",
"main",
"{ \n Reader pm =new Reader(); \n //Scanner pm = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n int t = 1;\n while(t-- > 0){\n int n = 5;\n int[] a = new int[n];\n\n for(int i=0;i<n;i++)\n a[i] = pm.nextInt();\n for(int i=0;i<n;i++){\n if(a[i] != i+1){\n System.out.println(i+1);\n return;\n }\n }\n }\n //end of tests\n \n }",
"Reader pm =new Reader();",
"pm",
"new Reader()",
"int t = 1;",
"t",
"1",
"while(t-- > 0){\n int n = 5;\n int[] a = new int[n];\n\n for(int i=0;i<n;i++)\n a[i] = pm.nextInt();\n for(int i=0;i<n;i++){\n if(a[i] != i+1){\n System.out.println(i+1);\n return;\n }\n }\n }",
"t-- > 0",
"t--",
"t",
"0",
"{\n int n = 5;\n int[] a = new int[n];\n\n for(int i=0;i<n;i++)\n a[i] = pm.nextInt();\n for(int i=0;i<n;i++){\n if(a[i] != i+1){\n System.out.println(i+1);\n return;\n }\n }\n }",
"int n = 5;",
"n",
"5",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for(int i=0;i<n;i++)\n a[i] = pm.nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = pm.nextInt();",
"a[i] = pm.nextInt()",
"a[i]",
"a",
"i",
"pm.nextInt()",
"pm.nextInt",
"pm",
"for(int i=0;i<n;i++){\n if(a[i] != i+1){\n System.out.println(i+1);\n return;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(a[i] != i+1){\n System.out.println(i+1);\n return;\n }\n }",
"{\n if(a[i] != i+1){\n System.out.println(i+1);\n return;\n }\n }",
"if(a[i] != i+1){\n System.out.println(i+1);\n return;\n }",
"a[i] != i+1",
"a[i]",
"a",
"i",
"i+1",
"i",
"1",
"{\n System.out.println(i+1);\n return;\n }",
"System.out.println(i+1)",
"System.out.println",
"System.out",
"System",
"System.out",
"i+1",
"i",
"1",
"return;",
"String[] args",
"args",
"static int countInRange(int arr[], int n, int x, int y) { \n // initialize result \n int count = 0; \n count = upperIndex(arr, n, y) - \n lowerIndex(arr, n, x) + 1; \n return count; \n }",
"countInRange",
"{ \n // initialize result \n int count = 0; \n count = upperIndex(arr, n, y) - \n lowerIndex(arr, n, x) + 1; \n return count; \n }",
"int count = 0;",
"count",
"0",
"count = upperIndex(arr, n, y) - \n lowerIndex(arr, n, x) + 1",
"count",
"upperIndex(arr, n, y) - \n lowerIndex(arr, n, x) + 1",
"upperIndex(arr, n, y) - \n lowerIndex(arr, n, x)",
"upperIndex(arr, n, y)",
"upperIndex",
"arr",
"n",
"y",
"lowerIndex(arr, n, x)",
"lowerIndex",
"arr",
"n",
"x",
"1",
"return count;",
"count",
"int arr[]",
"arr",
"int n",
"n",
"int x",
"x",
"int y",
"y",
"static int lowerIndex(int arr[], int n, int x) { \n int l = 0, h = n - 1; \n while (l <= h) \n { \n int mid = (l + h) / 2; \n if (arr[mid] >= x) \n h = mid - 1; \n else\n l = mid + 1; \n } \n return l; \n }",
"lowerIndex",
"{ \n int l = 0, h = n - 1; \n while (l <= h) \n { \n int mid = (l + h) / 2; \n if (arr[mid] >= x) \n h = mid - 1; \n else\n l = mid + 1; \n } \n return l; \n }",
"int l = 0",
"l",
"0",
"h = n - 1;",
"h",
"n - 1",
"n",
"1",
"while (l <= h) \n { \n int mid = (l + h) / 2; \n if (arr[mid] >= x) \n h = mid - 1; \n else\n l = mid + 1; \n }",
"l <= h",
"l",
"h",
"{ \n int mid = (l + h) / 2; \n if (arr[mid] >= x) \n h = mid - 1; \n else\n l = mid + 1; \n }",
"int mid = (l + h) / 2;",
"mid",
"(l + h) / 2",
"(l + h)",
"l",
"h",
"2",
"if (arr[mid] >= x) \n h = mid - 1; \n else\n l = mid + 1;",
"arr[mid] >= x",
"arr[mid]",
"arr",
"mid",
"x",
"h = mid - 1",
"h",
"mid - 1",
"mid",
"1",
"l = mid + 1",
"l",
"mid + 1",
"mid",
"1",
"return l;",
"l",
"int arr[]",
"arr",
"int n",
"n",
"int x",
"x",
"// function to find last index <= y \n static int upperIndex(int arr[], int n, int y) { \n int l = 0, h = n - 1; \n while (l <= h) \n { \n int mid = (l + h) / 2; \n if (arr[mid] <= y) \n l = mid + 1; \n else\n h = mid - 1; \n } \n return h; \n }",
"upperIndex",
"{ \n int l = 0, h = n - 1; \n while (l <= h) \n { \n int mid = (l + h) / 2; \n if (arr[mid] <= y) \n l = mid + 1; \n else\n h = mid - 1; \n } \n return h; \n }",
"int l = 0",
"l",
"0",
"h = n - 1;",
"h",
"n - 1",
"n",
"1",
"while (l <= h) \n { \n int mid = (l + h) / 2; \n if (arr[mid] <= y) \n l = mid + 1; \n else\n h = mid - 1; \n }",
"l <= h",
"l",
"h",
"{ \n int mid = (l + h) / 2; \n if (arr[mid] <= y) \n l = mid + 1; \n else\n h = mid - 1; \n }",
"int mid = (l + h) / 2;",
"mid",
"(l + h) / 2",
"(l + h)",
"l",
"h",
"2",
"if (arr[mid] <= y) \n l = mid + 1; \n else\n h = mid - 1;",
"arr[mid] <= y",
"arr[mid]",
"arr",
"mid",
"y",
"l = mid + 1",
"l",
"mid + 1",
"mid",
"1",
"h = mid - 1",
"h",
"mid - 1",
"mid",
"1",
"return h;",
"h",
"int arr[]",
"arr",
"int n",
"n",
"int y",
"y",
"public static StringBuilder dec_to_bin(long n) {\n // decimal to binary upto 30 binaries\n if(n==0) {\n StringBuilder str=new StringBuilder(\"\");\n for(int i=0;i<30;i++) {\n str.append(\"0\");\n }\n return str;\n }\n StringBuilder str=new StringBuilder(\"\");\n while(n!=0) {\n str.append(n%2L);\n n/=2L;\n }\n str=str.reverse();\n StringBuilder tmp_str=new StringBuilder(\"\");\n int len=str.length();\n while(len!=30) {\n tmp_str.append(\"0\");\n len++;\n }\n tmp_str.append(str);\n return tmp_str;\n }",
"dec_to_bin",
"{\n // decimal to binary upto 30 binaries\n if(n==0) {\n StringBuilder str=new StringBuilder(\"\");\n for(int i=0;i<30;i++) {\n str.append(\"0\");\n }\n return str;\n }\n StringBuilder str=new StringBuilder(\"\");\n while(n!=0) {\n str.append(n%2L);\n n/=2L;\n }\n str=str.reverse();\n StringBuilder tmp_str=new StringBuilder(\"\");\n int len=str.length();\n while(len!=30) {\n tmp_str.append(\"0\");\n len++;\n }\n tmp_str.append(str);\n return tmp_str;\n }",
"if(n==0) {\n StringBuilder str=new StringBuilder(\"\");\n for(int i=0;i<30;i++) {\n str.append(\"0\");\n }\n return str;\n }",
"n==0",
"n",
"0",
"{\n StringBuilder str=new StringBuilder(\"\");\n for(int i=0;i<30;i++) {\n str.append(\"0\");\n }\n return str;\n }",
"StringBuilder str=new StringBuilder(\"\");",
"str",
"new StringBuilder(\"\")",
"for(int i=0;i<30;i++) {\n str.append(\"0\");\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<30",
"i",
"30",
"i++",
"i++",
"i",
"{\n str.append(\"0\");\n }",
"{\n str.append(\"0\");\n }",
"str.append(\"0\")",
"str.append",
"str",
"\"0\"",
"return str;",
"str",
"StringBuilder str=new StringBuilder(\"\");",
"str",
"new StringBuilder(\"\")",
"while(n!=0) {\n str.append(n%2L);\n n/=2L;\n }",
"n!=0",
"n",
"0",
"{\n str.append(n%2L);\n n/=2L;\n }",
"str.append(n%2L)",
"str.append",
"str",
"n%2L",
"n",
"2L",
"n/=2L",
"n",
"2L",
"str=str.reverse()",
"str",
"str.reverse()",
"str.reverse",
"str",
"StringBuilder tmp_str=new StringBuilder(\"\");",
"tmp_str",
"new StringBuilder(\"\")",
"int len=str.length();",
"len",
"str.length()",
"str.length",
"str",
"while(len!=30) {\n tmp_str.append(\"0\");\n len++;\n }",
"len!=30",
"len",
"30",
"{\n tmp_str.append(\"0\");\n len++;\n }",
"tmp_str.append(\"0\")",
"tmp_str.append",
"tmp_str",
"\"0\"",
"len++",
"len",
"tmp_str.append(str)",
"tmp_str.append",
"tmp_str",
"str",
"return tmp_str;",
"tmp_str",
"long n",
"n",
"private static int binarySearchPM(int[] arr, int key){\n int n = arr.length;\n int mid = -1;\n int begin = 0,end=n;\n while(begin <= end){\n mid = (begin+end) / 2;\n if(mid == n){\n return n;\n }\n if(key < arr[mid]){\n end = mid-1;\n } else if(key > arr[mid]){\n begin = mid+1;\n } else {\n return mid;\n }\n }\n //System.out.println(begin+\" \"+end);\n return -begin; //expected Index\n }",
"binarySearchPM",
"{\n int n = arr.length;\n int mid = -1;\n int begin = 0,end=n;\n while(begin <= end){\n mid = (begin+end) / 2;\n if(mid == n){\n return n;\n }\n if(key < arr[mid]){\n end = mid-1;\n } else if(key > arr[mid]){\n begin = mid+1;\n } else {\n return mid;\n }\n }\n //System.out.println(begin+\" \"+end);\n return -begin; //expected Index\n }",
"int n = arr.length;",
"n",
"arr.length",
"arr",
"arr.length",
"int mid = -1;",
"mid",
"-1",
"1",
"int begin = 0",
"begin",
"0",
"end=n;",
"end",
"n",
"while(begin <= end){\n mid = (begin+end) / 2;\n if(mid == n){\n return n;\n }\n if(key < arr[mid]){\n end = mid-1;\n } else if(key > arr[mid]){\n begin = mid+1;\n } else {\n return mid;\n }\n }",
"begin <= end",
"begin",
"end",
"{\n mid = (begin+end) / 2;\n if(mid == n){\n return n;\n }\n if(key < arr[mid]){\n end = mid-1;\n } else if(key > arr[mid]){\n begin = mid+1;\n } else {\n return mid;\n }\n }",
"mid = (begin+end) / 2",
"mid",
"(begin+end) / 2",
"(begin+end)",
"begin",
"end",
"2",
"if(mid == n){\n return n;\n }",
"mid == n",
"mid",
"n",
"{\n return n;\n }",
"return n;",
"n",
"if(key < arr[mid]){\n end = mid-1;\n } else if(key > arr[mid]){\n begin = mid+1;\n } else {\n return mid;\n }",
"key < arr[mid]",
"key",
"arr[mid]",
"arr",
"mid",
"{\n end = mid-1;\n }",
"end = mid-1",
"end",
"mid-1",
"mid",
"1",
"if(key > arr[mid]){\n begin = mid+1;\n } else {\n return mid;\n }",
"key > arr[mid]",
"key",
"arr[mid]",
"arr",
"mid",
"{\n begin = mid+1;\n }",
"begin = mid+1",
"begin",
"mid+1",
"mid",
"1",
"{\n return mid;\n }",
"return mid;",
"mid",
"return -begin; //expected Index",
"-begin",
"begin",
"int[] arr",
"arr",
"int key",
"key",
"static class Reader { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead; \n \n public Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public Reader(String file_name) throws IOException \n { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public String readLine() throws IOException \n { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n } \n \n public int nextInt() throws IOException \n { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n } \n \n public long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n } \n \n public double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n } \n \n private void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n } \n \n private byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n } \n \n public void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n } \n }",
"Reader",
"final private int BUFFER_SIZE = 1 << 16;",
"BUFFER_SIZE",
"1 << 16",
"1",
"16",
"private DataInputStream din;",
"din",
"private byte[] buffer;",
"buffer",
"private int bufferPointer",
"bufferPointer",
"bytesRead;",
"bytesRead",
"public Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }",
"Reader",
"{ \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }",
"din = new DataInputStream(System.in)",
"din",
"new DataInputStream(System.in)",
"buffer = new byte[BUFFER_SIZE]",
"buffer",
"new byte[BUFFER_SIZE]",
"BUFFER_SIZE",
"bufferPointer = bytesRead = 0",
"bufferPointer",
"bytesRead = 0",
"bytesRead",
"0",
"public Reader(String file_name) throws IOException \n { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }",
"Reader",
"{ \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }",
"din = new DataInputStream(new FileInputStream(file_name))",
"din",
"new DataInputStream(new FileInputStream(file_name))",
"buffer = new byte[BUFFER_SIZE]",
"buffer",
"new byte[BUFFER_SIZE]",
"BUFFER_SIZE",
"bufferPointer = bytesRead = 0",
"bufferPointer",
"bytesRead = 0",
"bytesRead",
"0",
"String file_name",
"file_name",
"public String readLine() throws IOException \n { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n }",
"readLine",
"{ \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n }",
"byte[] buf = new byte[64];",
"buf",
"new byte[64]",
"64",
"int cnt = 0",
"cnt",
"0",
"c;",
"c",
"while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n }",
"(c = read()) != -1",
"(c = read())",
"c",
"read()",
"read",
"-1",
"1",
"{ \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n }",
"if (c == '\\n') \n break;",
"c == '\\n'",
"c",
"'\\n'",
"break;",
"buf[cnt++] = (byte) c",
"buf[cnt++]",
"buf",
"cnt++",
"cnt",
"(byte) c",
"return new String(buf, 0, cnt);",
"new String(buf, 0, cnt)",
"public int nextInt() throws IOException \n { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n }",
"nextInt",
"{ \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n }",
"int ret = 0;",
"ret",
"0",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ') \n c = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg) \n c = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n ret = ret * 10 + c - '0'; \n }",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (neg) \n return -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"public long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n }",
"nextLong",
"{ \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n }",
"long ret = 0;",
"ret",
"0",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ') \n c = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg) \n c = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n ret = ret * 10 + c - '0'; \n }",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (neg) \n return -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"public double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n }",
"nextDouble",
"{ \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n }",
"double ret = 0",
"ret",
"0",
"div = 1;",
"div",
"1",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ') \n c = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg) \n c = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n ret = ret * 10 + c - '0'; \n }",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n }",
"c == '.'",
"c",
"'.'",
"{ \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n }",
"while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n }",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n ret += (c - '0') / (div *= 10); \n }",
"ret += (c - '0') / (div *= 10)",
"ret",
"(c - '0') / (div *= 10)",
"(c - '0')",
"c",
"'0'",
"(div *= 10)",
"div",
"10",
"if (neg) \n return -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"private void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n }",
"fillBuffer",
"{ \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n }",
"bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE)",
"bytesRead",
"din.read(buffer, bufferPointer = 0, BUFFER_SIZE)",
"din.read",
"din",
"buffer",
"bufferPointer = 0",
"bufferPointer",
"0",
"BUFFER_SIZE",
"if (bytesRead == -1) \n buffer[0] = -1;",
"bytesRead == -1",
"bytesRead",
"-1",
"1",
"buffer[0] = -1",
"buffer[0]",
"buffer",
"0",
"-1",
"1",
"private byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n }",
"read",
"{ \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n }",
"if (bufferPointer == bytesRead) \n fillBuffer();",
"bufferPointer == bytesRead",
"bufferPointer",
"bytesRead",
"fillBuffer()",
"fillBuffer",
"return buffer[bufferPointer++];",
"buffer[bufferPointer++]",
"buffer",
"bufferPointer++",
"bufferPointer",
"public void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n }",
"close",
"{ \n if (din == null) \n return; \n din.close(); \n }",
"if (din == null) \n return;",
"din == null",
"din",
"null",
"return;",
"din.close()",
"din.close",
"din",
"public class Main { \n \n public static void main(String[] args) throws java.lang.Exception { \n Reader pm =new Reader(); \n //Scanner pm = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n int t = 1;\n while(t-- > 0){\n int n = 5;\n int[] a = new int[n];\n\n for(int i=0;i<n;i++)\n a[i] = pm.nextInt();\n for(int i=0;i<n;i++){\n if(a[i] != i+1){\n System.out.println(i+1);\n return;\n }\n }\n }\n //end of tests\n \n }\n //end of main class\n\n static int countInRange(int arr[], int n, int x, int y) { \n // initialize result \n int count = 0; \n count = upperIndex(arr, n, y) - \n lowerIndex(arr, n, x) + 1; \n return count; \n } \n \n \n static int lowerIndex(int arr[], int n, int x) { \n int l = 0, h = n - 1; \n while (l <= h) \n { \n int mid = (l + h) / 2; \n if (arr[mid] >= x) \n h = mid - 1; \n else\n l = mid + 1; \n } \n return l; \n } \n \n // function to find last index <= y \n static int upperIndex(int arr[], int n, int y) { \n int l = 0, h = n - 1; \n while (l <= h) \n { \n int mid = (l + h) / 2; \n if (arr[mid] <= y) \n l = mid + 1; \n else\n h = mid - 1; \n } \n return h; \n }\n \n public static StringBuilder dec_to_bin(long n) {\n // decimal to binary upto 30 binaries\n if(n==0) {\n StringBuilder str=new StringBuilder(\"\");\n for(int i=0;i<30;i++) {\n str.append(\"0\");\n }\n return str;\n }\n StringBuilder str=new StringBuilder(\"\");\n while(n!=0) {\n str.append(n%2L);\n n/=2L;\n }\n str=str.reverse();\n StringBuilder tmp_str=new StringBuilder(\"\");\n int len=str.length();\n while(len!=30) {\n tmp_str.append(\"0\");\n len++;\n }\n tmp_str.append(str);\n return tmp_str;\n }\n \n private static int binarySearchPM(int[] arr, int key){\n int n = arr.length;\n int mid = -1;\n int begin = 0,end=n;\n while(begin <= end){\n mid = (begin+end) / 2;\n if(mid == n){\n return n;\n }\n if(key < arr[mid]){\n end = mid-1;\n } else if(key > arr[mid]){\n begin = mid+1;\n } else {\n return mid;\n }\n }\n //System.out.println(begin+\" \"+end);\n return -begin; //expected Index\n }\n \n static class Reader { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead; \n \n public Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public Reader(String file_name) throws IOException \n { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public String readLine() throws IOException \n { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n } \n \n public int nextInt() throws IOException \n { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n } \n \n public long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n } \n \n public double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n } \n \n private void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n } \n \n private byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n } \n \n public void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n } \n }\n}",
"public class Main { \n \n public static void main(String[] args) throws java.lang.Exception { \n Reader pm =new Reader(); \n //Scanner pm = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n int t = 1;\n while(t-- > 0){\n int n = 5;\n int[] a = new int[n];\n\n for(int i=0;i<n;i++)\n a[i] = pm.nextInt();\n for(int i=0;i<n;i++){\n if(a[i] != i+1){\n System.out.println(i+1);\n return;\n }\n }\n }\n //end of tests\n \n }\n //end of main class\n\n static int countInRange(int arr[], int n, int x, int y) { \n // initialize result \n int count = 0; \n count = upperIndex(arr, n, y) - \n lowerIndex(arr, n, x) + 1; \n return count; \n } \n \n \n static int lowerIndex(int arr[], int n, int x) { \n int l = 0, h = n - 1; \n while (l <= h) \n { \n int mid = (l + h) / 2; \n if (arr[mid] >= x) \n h = mid - 1; \n else\n l = mid + 1; \n } \n return l; \n } \n \n // function to find last index <= y \n static int upperIndex(int arr[], int n, int y) { \n int l = 0, h = n - 1; \n while (l <= h) \n { \n int mid = (l + h) / 2; \n if (arr[mid] <= y) \n l = mid + 1; \n else\n h = mid - 1; \n } \n return h; \n }\n \n public static StringBuilder dec_to_bin(long n) {\n // decimal to binary upto 30 binaries\n if(n==0) {\n StringBuilder str=new StringBuilder(\"\");\n for(int i=0;i<30;i++) {\n str.append(\"0\");\n }\n return str;\n }\n StringBuilder str=new StringBuilder(\"\");\n while(n!=0) {\n str.append(n%2L);\n n/=2L;\n }\n str=str.reverse();\n StringBuilder tmp_str=new StringBuilder(\"\");\n int len=str.length();\n while(len!=30) {\n tmp_str.append(\"0\");\n len++;\n }\n tmp_str.append(str);\n return tmp_str;\n }\n \n private static int binarySearchPM(int[] arr, int key){\n int n = arr.length;\n int mid = -1;\n int begin = 0,end=n;\n while(begin <= end){\n mid = (begin+end) / 2;\n if(mid == n){\n return n;\n }\n if(key < arr[mid]){\n end = mid-1;\n } else if(key > arr[mid]){\n begin = mid+1;\n } else {\n return mid;\n }\n }\n //System.out.println(begin+\" \"+end);\n return -begin; //expected Index\n }\n \n static class Reader { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead; \n \n public Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public Reader(String file_name) throws IOException \n { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public String readLine() throws IOException \n { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n } \n \n public int nextInt() throws IOException \n { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n } \n \n public long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n } \n \n public double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n } \n \n private void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n } \n \n private byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n } \n \n public void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n } \n }\n}",
"Main"
]
|
import java.io.*;
import java.util.*;
import java.math.*;
public class Main {
public static void main(String[] args) throws java.lang.Exception {
Reader pm =new Reader();
//Scanner pm = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
int t = 1;
while(t-- > 0){
int n = 5;
int[] a = new int[n];
for(int i=0;i<n;i++)
a[i] = pm.nextInt();
for(int i=0;i<n;i++){
if(a[i] != i+1){
System.out.println(i+1);
return;
}
}
}
//end of tests
}
//end of main class
static int countInRange(int arr[], int n, int x, int y) {
// initialize result
int count = 0;
count = upperIndex(arr, n, y) -
lowerIndex(arr, n, x) + 1;
return count;
}
static int lowerIndex(int arr[], int n, int x) {
int l = 0, h = n - 1;
while (l <= h)
{
int mid = (l + h) / 2;
if (arr[mid] >= x)
h = mid - 1;
else
l = mid + 1;
}
return l;
}
// function to find last index <= y
static int upperIndex(int arr[], int n, int y) {
int l = 0, h = n - 1;
while (l <= h)
{
int mid = (l + h) / 2;
if (arr[mid] <= y)
l = mid + 1;
else
h = mid - 1;
}
return h;
}
public static StringBuilder dec_to_bin(long n) {
// decimal to binary upto 30 binaries
if(n==0) {
StringBuilder str=new StringBuilder("");
for(int i=0;i<30;i++) {
str.append("0");
}
return str;
}
StringBuilder str=new StringBuilder("");
while(n!=0) {
str.append(n%2L);
n/=2L;
}
str=str.reverse();
StringBuilder tmp_str=new StringBuilder("");
int len=str.length();
while(len!=30) {
tmp_str.append("0");
len++;
}
tmp_str.append(str);
return tmp_str;
}
private static int binarySearchPM(int[] arr, int key){
int n = arr.length;
int mid = -1;
int begin = 0,end=n;
while(begin <= end){
mid = (begin+end) / 2;
if(mid == n){
return n;
}
if(key < arr[mid]){
end = mid-1;
} else if(key > arr[mid]){
begin = mid+1;
} else {
return mid;
}
}
//System.out.println(begin+" "+end);
return -begin; //expected Index
}
static class Reader {
final private int BUFFER_SIZE = 1 << 16;
private DataInputStream din;
private byte[] buffer;
private int bufferPointer, bytesRead;
public Reader()
{
din = new DataInputStream(System.in);
buffer = new byte[BUFFER_SIZE];
bufferPointer = bytesRead = 0;
}
public Reader(String file_name) throws IOException
{
din = new DataInputStream(new FileInputStream(file_name));
buffer = new byte[BUFFER_SIZE];
bufferPointer = bytesRead = 0;
}
public String readLine() throws IOException
{
byte[] buf = new byte[64]; // line length
int cnt = 0, c;
while ((c = read()) != -1)
{
if (c == '\n')
break;
buf[cnt++] = (byte) c;
}
return new String(buf, 0, cnt);
}
public int nextInt() throws IOException
{
int ret = 0;
byte c = read();
while (c <= ' ')
c = read();
boolean neg = (c == '-');
if (neg)
c = read();
do
{
ret = ret * 10 + c - '0';
} while ((c = read()) >= '0' && c <= '9');
if (neg)
return -ret;
return ret;
}
public long nextLong() throws IOException
{
long ret = 0;
byte c = read();
while (c <= ' ')
c = read();
boolean neg = (c == '-');
if (neg)
c = read();
do {
ret = ret * 10 + c - '0';
}
while ((c = read()) >= '0' && c <= '9');
if (neg)
return -ret;
return ret;
}
public double nextDouble() throws IOException
{
double ret = 0, div = 1;
byte c = read();
while (c <= ' ')
c = read();
boolean neg = (c == '-');
if (neg)
c = read();
do {
ret = ret * 10 + c - '0';
}
while ((c = read()) >= '0' && c <= '9');
if (c == '.')
{
while ((c = read()) >= '0' && c <= '9')
{
ret += (c - '0') / (div *= 10);
}
}
if (neg)
return -ret;
return ret;
}
private void fillBuffer() throws IOException
{
bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);
if (bytesRead == -1)
buffer[0] = -1;
}
private byte read() throws IOException
{
if (bufferPointer == bytesRead)
fillBuffer();
return buffer[bufferPointer++];
}
public void close() throws IOException
{
if (din == null)
return;
din.close();
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
17,
41,
13,
17,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
2,
18,
13,
13,
17,
30,
0,
13,
2,
13,
17,
4,
18,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
63,
5
],
[
63,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
13
],
[
13,
14
],
[
13,
15
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
8,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
24,
25
],
[
24,
26
],
[
19,
27
],
[
27,
28
],
[
28,
29
],
[
19,
30
],
[
31,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
8,
51
],
[
51,
52
],
[
52,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
6,
60
],
[
60,
61
],
[
0,
62
],
[
62,
63
],
[
62,
64
]
]
| [
"import java.util.Scanner;\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tint[] N = new int[5];\n\t\tint result = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tfor(int i =0;i<5;i++) {\n\t\t\tN[i]=scan.nextInt();\n\t\t\tif(N[i]==0) {\n\t\t\t\tresult = i+1;\n\t\t\t}\n\t\t}\t\t\n\t\tscan.close();\n\t\tSystem.out.println(result);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tint[] N = new int[5];\n\t\tint result = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tfor(int i =0;i<5;i++) {\n\t\t\tN[i]=scan.nextInt();\n\t\t\tif(N[i]==0) {\n\t\t\t\tresult = i+1;\n\t\t\t}\n\t\t}\t\t\n\t\tscan.close();\n\t\tSystem.out.println(result);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tint[] N = new int[5];\n\t\tint result = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tfor(int i =0;i<5;i++) {\n\t\t\tN[i]=scan.nextInt();\n\t\t\tif(N[i]==0) {\n\t\t\t\tresult = i+1;\n\t\t\t}\n\t\t}\t\t\n\t\tscan.close();\n\t\tSystem.out.println(result);\n\t}",
"main",
"{\n\t\tint[] N = new int[5];\n\t\tint result = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tfor(int i =0;i<5;i++) {\n\t\t\tN[i]=scan.nextInt();\n\t\t\tif(N[i]==0) {\n\t\t\t\tresult = i+1;\n\t\t\t}\n\t\t}\t\t\n\t\tscan.close();\n\t\tSystem.out.println(result);\n\t}",
"int[] N = new int[5];",
"N",
"new int[5]",
"5",
"int result = 0;",
"result",
"0",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"for(int i =0;i<5;i++) {\n\t\t\tN[i]=scan.nextInt();\n\t\t\tif(N[i]==0) {\n\t\t\t\tresult = i+1;\n\t\t\t}\n\t\t}",
"int i =0;",
"int i =0;",
"i",
"0",
"i<5",
"i",
"5",
"i++",
"i++",
"i",
"{\n\t\t\tN[i]=scan.nextInt();\n\t\t\tif(N[i]==0) {\n\t\t\t\tresult = i+1;\n\t\t\t}\n\t\t}",
"{\n\t\t\tN[i]=scan.nextInt();\n\t\t\tif(N[i]==0) {\n\t\t\t\tresult = i+1;\n\t\t\t}\n\t\t}",
"N[i]=scan.nextInt()",
"N[i]",
"N",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if(N[i]==0) {\n\t\t\t\tresult = i+1;\n\t\t\t}",
"N[i]==0",
"N[i]",
"N",
"i",
"0",
"{\n\t\t\t\tresult = i+1;\n\t\t\t}",
"result = i+1",
"result",
"i+1",
"i",
"1",
"scan.close()",
"scan.close",
"scan",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tint[] N = new int[5];\n\t\tint result = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tfor(int i =0;i<5;i++) {\n\t\t\tN[i]=scan.nextInt();\n\t\t\tif(N[i]==0) {\n\t\t\t\tresult = i+1;\n\t\t\t}\n\t\t}\t\t\n\t\tscan.close();\n\t\tSystem.out.println(result);\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tint[] N = new int[5];\n\t\tint result = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tfor(int i =0;i<5;i++) {\n\t\t\tN[i]=scan.nextInt();\n\t\t\tif(N[i]==0) {\n\t\t\t\tresult = i+1;\n\t\t\t}\n\t\t}\t\t\n\t\tscan.close();\n\t\tSystem.out.println(result);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args) {
int[] N = new int[5];
int result = 0;
Scanner scan = new Scanner(System.in);
for(int i =0;i<5;i++) {
N[i]=scan.nextInt();
if(N[i]==0) {
result = i+1;
}
}
scan.close();
System.out.println(result);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
2,
18,
13,
13,
2,
13,
17,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
61,
5
],
[
61,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
8,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
24,
25
],
[
24,
26
],
[
19,
27
],
[
27,
28
],
[
28,
29
],
[
19,
30
],
[
31,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
44,
46
],
[
39,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
8,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
6,
58
],
[
58,
59
],
[
0,
60
],
[
60,
61
],
[
60,
62
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] x = new int[5];\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tx[i] = sc.nextInt();\n\t\t\tif(x[i] != i + 1) ans = i + 1;\n\t\t}\n\t\tSystem.out.println(ans);\n\t\t\n\t\t\n\t\t\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] x = new int[5];\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tx[i] = sc.nextInt();\n\t\t\tif(x[i] != i + 1) ans = i + 1;\n\t\t}\n\t\tSystem.out.println(ans);\n\t\t\n\t\t\n\t\t\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] x = new int[5];\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tx[i] = sc.nextInt();\n\t\t\tif(x[i] != i + 1) ans = i + 1;\n\t\t}\n\t\tSystem.out.println(ans);\n\t\t\n\t\t\n\t\t\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] x = new int[5];\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tx[i] = sc.nextInt();\n\t\t\tif(x[i] != i + 1) ans = i + 1;\n\t\t}\n\t\tSystem.out.println(ans);\n\t\t\n\t\t\n\t\t\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] x = new int[5];",
"x",
"new int[5]",
"5",
"int ans = 0;",
"ans",
"0",
"for(int i = 0; i < 5; i++) {\n\t\t\tx[i] = sc.nextInt();\n\t\t\tif(x[i] != i + 1) ans = i + 1;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n\t\t\tx[i] = sc.nextInt();\n\t\t\tif(x[i] != i + 1) ans = i + 1;\n\t\t}",
"{\n\t\t\tx[i] = sc.nextInt();\n\t\t\tif(x[i] != i + 1) ans = i + 1;\n\t\t}",
"x[i] = sc.nextInt()",
"x[i]",
"x",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(x[i] != i + 1) ans = i + 1;",
"x[i] != i + 1",
"x[i]",
"x",
"i",
"i + 1",
"i",
"1",
"ans = i + 1",
"ans",
"i + 1",
"i",
"1",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"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[] x = new int[5];\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tx[i] = sc.nextInt();\n\t\t\tif(x[i] != i + 1) ans = i + 1;\n\t\t}\n\t\tSystem.out.println(ans);\n\t\t\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\tScanner sc = new Scanner(System.in);\n\t\tint[] x = new int[5];\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tx[i] = sc.nextInt();\n\t\t\tif(x[i] != i + 1) ans = i + 1;\n\t\t}\n\t\tSystem.out.println(ans);\n\t\t\n\t\t\n\t\t\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner sc = new Scanner(System.in);
int[] x = new int[5];
int ans = 0;
for(int i = 0; i < 5; i++) {
x[i] = sc.nextInt();
if(x[i] != i + 1) ans = i + 1;
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
17,
3,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
47,
5
],
[
47,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
12,
17
],
[
17,
18
],
[
17,
19
],
[
12,
20
],
[
20,
21
],
[
21,
22
],
[
12,
23
],
[
24,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
24,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
34,
43
],
[
6,
44
],
[
44,
45
],
[
0,
46
],
[
46,
47
],
[
46,
48
]
]
| [
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n\n Scanner scanner = new Scanner(System.in);\n\n for(int loop=0; loop<5; loop++) {\n int x = scanner.nextInt();\n if(x==0) {\n System.out.println( loop+1 );\n break;\n }\n }\n\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n\n Scanner scanner = new Scanner(System.in);\n\n for(int loop=0; loop<5; loop++) {\n int x = scanner.nextInt();\n if(x==0) {\n System.out.println( loop+1 );\n break;\n }\n }\n\n }\n}",
"Main",
"public static void main(String[] args){\n\n Scanner scanner = new Scanner(System.in);\n\n for(int loop=0; loop<5; loop++) {\n int x = scanner.nextInt();\n if(x==0) {\n System.out.println( loop+1 );\n break;\n }\n }\n\n }",
"main",
"{\n\n Scanner scanner = new Scanner(System.in);\n\n for(int loop=0; loop<5; loop++) {\n int x = scanner.nextInt();\n if(x==0) {\n System.out.println( loop+1 );\n break;\n }\n }\n\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"for(int loop=0; loop<5; loop++) {\n int x = scanner.nextInt();\n if(x==0) {\n System.out.println( loop+1 );\n break;\n }\n }",
"int loop=0;",
"int loop=0;",
"loop",
"0",
"loop<5",
"loop",
"5",
"loop++",
"loop++",
"loop",
"{\n int x = scanner.nextInt();\n if(x==0) {\n System.out.println( loop+1 );\n break;\n }\n }",
"{\n int x = scanner.nextInt();\n if(x==0) {\n System.out.println( loop+1 );\n break;\n }\n }",
"int x = scanner.nextInt();",
"x",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"if(x==0) {\n System.out.println( loop+1 );\n break;\n }",
"x==0",
"x",
"0",
"{\n System.out.println( loop+1 );\n break;\n }",
"System.out.println( loop+1 )",
"System.out.println",
"System.out",
"System",
"System.out",
"loop+1",
"loop",
"1",
"break;",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n\n Scanner scanner = new Scanner(System.in);\n\n for(int loop=0; loop<5; loop++) {\n int x = scanner.nextInt();\n if(x==0) {\n System.out.println( loop+1 );\n break;\n }\n }\n\n }\n}",
"public class Main{\n public static void main(String[] args){\n\n Scanner scanner = new Scanner(System.in);\n\n for(int loop=0; loop<5; loop++) {\n int x = scanner.nextInt();\n if(x==0) {\n System.out.println( loop+1 );\n break;\n }\n }\n\n }\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
for(int loop=0; loop<5; loop++) {
int x = scanner.nextInt();
if(x==0) {
System.out.println( loop+1 );
break;
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
29,
30,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
3,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
76,
5
],
[
76,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
9,
14
],
[
9,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
15,
19
],
[
19,
20
],
[
19,
21
],
[
15,
23
],
[
23,
24
],
[
15,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
42,
43
],
[
15,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
57,
63
],
[
63,
64
],
[
15,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
6,
73
],
[
73,
74
],
[
0,
75
],
[
75,
76
],
[
75,
77
]
]
| [
"import java.util.*;\npublic class Main\n{\n public static void main(String args[])throws Exception\n {\n try {\n Scanner sc=new Scanner(System.in);\n int x[]=new int[5];\n int i;\n for(i=0;i<5;i++)\n x[i]=sc.nextInt();\n for(i=0;i<5;i++)\n {\n if(x[i]==0)\n {\n break;\n }\n }\n System.out.println(i+1);\n } catch(Exception e) { return;\n } finally {\n }\n }\n}\n ",
"import java.util.*;",
"util.*",
"java",
"public class Main\n{\n public static void main(String args[])throws Exception\n {\n try {\n Scanner sc=new Scanner(System.in);\n int x[]=new int[5];\n int i;\n for(i=0;i<5;i++)\n x[i]=sc.nextInt();\n for(i=0;i<5;i++)\n {\n if(x[i]==0)\n {\n break;\n }\n }\n System.out.println(i+1);\n } catch(Exception e) { return;\n } finally {\n }\n }\n}",
"Main",
"public static void main(String args[])throws Exception\n {\n try {\n Scanner sc=new Scanner(System.in);\n int x[]=new int[5];\n int i;\n for(i=0;i<5;i++)\n x[i]=sc.nextInt();\n for(i=0;i<5;i++)\n {\n if(x[i]==0)\n {\n break;\n }\n }\n System.out.println(i+1);\n } catch(Exception e) { return;\n } finally {\n }\n }",
"main",
"{\n try {\n Scanner sc=new Scanner(System.in);\n int x[]=new int[5];\n int i;\n for(i=0;i<5;i++)\n x[i]=sc.nextInt();\n for(i=0;i<5;i++)\n {\n if(x[i]==0)\n {\n break;\n }\n }\n System.out.println(i+1);\n } catch(Exception e) { return;\n } finally {\n }\n }",
"try {\n Scanner sc=new Scanner(System.in);\n int x[]=new int[5];\n int i;\n for(i=0;i<5;i++)\n x[i]=sc.nextInt();\n for(i=0;i<5;i++)\n {\n if(x[i]==0)\n {\n break;\n }\n }\n System.out.println(i+1);\n } catch(Exception e) { return;\n } finally {\n }",
"catch(Exception e) { return;\n }",
"Exception e",
"{ return;\n }",
"return;",
"{\n }",
"{\n Scanner sc=new Scanner(System.in);\n int x[]=new int[5];\n int i;\n for(i=0;i<5;i++)\n x[i]=sc.nextInt();\n for(i=0;i<5;i++)\n {\n if(x[i]==0)\n {\n break;\n }\n }\n System.out.println(i+1);\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x[]=new int[5];",
"x",
"new int[5]",
"5",
"int i;",
"i",
"for(i=0;i<5;i++)\n x[i]=sc.nextInt();",
"i=0;",
"i=0",
"i",
"0",
"i<5",
"i",
"5",
"i++",
"i++",
"i",
"x[i]=sc.nextInt();",
"x[i]=sc.nextInt()",
"x[i]",
"x",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(i=0;i<5;i++)\n {\n if(x[i]==0)\n {\n break;\n }\n }",
"i=0;",
"i=0",
"i",
"0",
"i<5",
"i",
"5",
"i++",
"i++",
"i",
"{\n if(x[i]==0)\n {\n break;\n }\n }",
"{\n if(x[i]==0)\n {\n break;\n }\n }",
"if(x[i]==0)\n {\n break;\n }",
"x[i]==0",
"x[i]",
"x",
"i",
"0",
"{\n break;\n }",
"break;",
"System.out.println(i+1)",
"System.out.println",
"System.out",
"System",
"System.out",
"i+1",
"i",
"1",
"String args[]",
"args",
"public class Main\n{\n public static void main(String args[])throws Exception\n {\n try {\n Scanner sc=new Scanner(System.in);\n int x[]=new int[5];\n int i;\n for(i=0;i<5;i++)\n x[i]=sc.nextInt();\n for(i=0;i<5;i++)\n {\n if(x[i]==0)\n {\n break;\n }\n }\n System.out.println(i+1);\n } catch(Exception e) { return;\n } finally {\n }\n }\n}",
"public class Main\n{\n public static void main(String args[])throws Exception\n {\n try {\n Scanner sc=new Scanner(System.in);\n int x[]=new int[5];\n int i;\n for(i=0;i<5;i++)\n x[i]=sc.nextInt();\n for(i=0;i<5;i++)\n {\n if(x[i]==0)\n {\n break;\n }\n }\n System.out.println(i+1);\n } catch(Exception e) { return;\n } finally {\n }\n }\n}",
"Main"
]
| import java.util.*;
public class Main
{
public static void main(String args[])throws Exception
{
try {
Scanner sc=new Scanner(System.in);
int x[]=new int[5];
int i;
for(i=0;i<5;i++)
x[i]=sc.nextInt();
for(i=0;i<5;i++)
{
if(x[i]==0)
{
break;
}
}
System.out.println(i+1);
} catch(Exception e) { return;
} finally {
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
8,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
8,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
8,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
8,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
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\t\t// contest 170\n\t\tScanner sc = new Scanner(System.in);\n\t\t// List<Integer> l = Arrays.asList(sc.nextInt().split(\" \"));\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\tint z = sc.nextInt();\n\t\tint w = sc.nextInt();\n\t\tint s = sc.nextInt();\n\t\tif (x == 0) {\n\t\t\tSystem.out.print(1);\n\t\t}\n\t\tif (y == 0) {\n\t\t\tSystem.out.print(2);\n\t\t}\n\t\tif (z == 0) {\n\t\t\tSystem.out.print(3);\n\t\t}\n\t\tif (w == 0) {\n\t\t\tSystem.out.print(4);\n\t\t}\n\t\tif (s == 0) {\n\t\t\tSystem.out.print(5);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// contest 170\n\t\tScanner sc = new Scanner(System.in);\n\t\t// List<Integer> l = Arrays.asList(sc.nextInt().split(\" \"));\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\tint z = sc.nextInt();\n\t\tint w = sc.nextInt();\n\t\tint s = sc.nextInt();\n\t\tif (x == 0) {\n\t\t\tSystem.out.print(1);\n\t\t}\n\t\tif (y == 0) {\n\t\t\tSystem.out.print(2);\n\t\t}\n\t\tif (z == 0) {\n\t\t\tSystem.out.print(3);\n\t\t}\n\t\tif (w == 0) {\n\t\t\tSystem.out.print(4);\n\t\t}\n\t\tif (s == 0) {\n\t\t\tSystem.out.print(5);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t// contest 170\n\t\tScanner sc = new Scanner(System.in);\n\t\t// List<Integer> l = Arrays.asList(sc.nextInt().split(\" \"));\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\tint z = sc.nextInt();\n\t\tint w = sc.nextInt();\n\t\tint s = sc.nextInt();\n\t\tif (x == 0) {\n\t\t\tSystem.out.print(1);\n\t\t}\n\t\tif (y == 0) {\n\t\t\tSystem.out.print(2);\n\t\t}\n\t\tif (z == 0) {\n\t\t\tSystem.out.print(3);\n\t\t}\n\t\tif (w == 0) {\n\t\t\tSystem.out.print(4);\n\t\t}\n\t\tif (s == 0) {\n\t\t\tSystem.out.print(5);\n\t\t}\n\t}",
"main",
"{\n\t\t// contest 170\n\t\tScanner sc = new Scanner(System.in);\n\t\t// List<Integer> l = Arrays.asList(sc.nextInt().split(\" \"));\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\tint z = sc.nextInt();\n\t\tint w = sc.nextInt();\n\t\tint s = sc.nextInt();\n\t\tif (x == 0) {\n\t\t\tSystem.out.print(1);\n\t\t}\n\t\tif (y == 0) {\n\t\t\tSystem.out.print(2);\n\t\t}\n\t\tif (z == 0) {\n\t\t\tSystem.out.print(3);\n\t\t}\n\t\tif (w == 0) {\n\t\t\tSystem.out.print(4);\n\t\t}\n\t\tif (s == 0) {\n\t\t\tSystem.out.print(5);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int z = sc.nextInt();",
"z",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int w = sc.nextInt();",
"w",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int s = sc.nextInt();",
"s",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (x == 0) {\n\t\t\tSystem.out.print(1);\n\t\t}",
"x == 0",
"x",
"0",
"{\n\t\t\tSystem.out.print(1);\n\t\t}",
"System.out.print(1)",
"System.out.print",
"System.out",
"System",
"System.out",
"1",
"if (y == 0) {\n\t\t\tSystem.out.print(2);\n\t\t}",
"y == 0",
"y",
"0",
"{\n\t\t\tSystem.out.print(2);\n\t\t}",
"System.out.print(2)",
"System.out.print",
"System.out",
"System",
"System.out",
"2",
"if (z == 0) {\n\t\t\tSystem.out.print(3);\n\t\t}",
"z == 0",
"z",
"0",
"{\n\t\t\tSystem.out.print(3);\n\t\t}",
"System.out.print(3)",
"System.out.print",
"System.out",
"System",
"System.out",
"3",
"if (w == 0) {\n\t\t\tSystem.out.print(4);\n\t\t}",
"w == 0",
"w",
"0",
"{\n\t\t\tSystem.out.print(4);\n\t\t}",
"System.out.print(4)",
"System.out.print",
"System.out",
"System",
"System.out",
"4",
"if (s == 0) {\n\t\t\tSystem.out.print(5);\n\t\t}",
"s == 0",
"s",
"0",
"{\n\t\t\tSystem.out.print(5);\n\t\t}",
"System.out.print(5)",
"System.out.print",
"System.out",
"System",
"System.out",
"5",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// contest 170\n\t\tScanner sc = new Scanner(System.in);\n\t\t// List<Integer> l = Arrays.asList(sc.nextInt().split(\" \"));\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\tint z = sc.nextInt();\n\t\tint w = sc.nextInt();\n\t\tint s = sc.nextInt();\n\t\tif (x == 0) {\n\t\t\tSystem.out.print(1);\n\t\t}\n\t\tif (y == 0) {\n\t\t\tSystem.out.print(2);\n\t\t}\n\t\tif (z == 0) {\n\t\t\tSystem.out.print(3);\n\t\t}\n\t\tif (w == 0) {\n\t\t\tSystem.out.print(4);\n\t\t}\n\t\tif (s == 0) {\n\t\t\tSystem.out.print(5);\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// contest 170\n\t\tScanner sc = new Scanner(System.in);\n\t\t// List<Integer> l = Arrays.asList(sc.nextInt().split(\" \"));\n\t\tint x = sc.nextInt();\n\t\tint y = sc.nextInt();\n\t\tint z = sc.nextInt();\n\t\tint w = sc.nextInt();\n\t\tint s = sc.nextInt();\n\t\tif (x == 0) {\n\t\t\tSystem.out.print(1);\n\t\t}\n\t\tif (y == 0) {\n\t\t\tSystem.out.print(2);\n\t\t}\n\t\tif (z == 0) {\n\t\t\tSystem.out.print(3);\n\t\t}\n\t\tif (w == 0) {\n\t\t\tSystem.out.print(4);\n\t\t}\n\t\tif (s == 0) {\n\t\t\tSystem.out.print(5);\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// contest 170
Scanner sc = new Scanner(System.in);
// List<Integer> l = Arrays.asList(sc.nextInt().split(" "));
int x = sc.nextInt();
int y = sc.nextInt();
int z = sc.nextInt();
int w = sc.nextInt();
int s = sc.nextInt();
if (x == 0) {
System.out.print(1);
}
if (y == 0) {
System.out.print(2);
}
if (z == 0) {
System.out.print(3);
}
if (w == 0) {
System.out.print(4);
}
if (s == 0) {
System.out.print(5);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
18,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
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
],
[
74,
14
],
[
74,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
26,
31
],
[
17,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
17,
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
],
[
52,
55
],
[
55,
56
],
[
55,
57
],
[
49,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
15,
71
],
[
71,
72
],
[
0,
73
],
[
73,
74
],
[
73,
75
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.nio.charset.StandardCharsets;\n\npublic class Main {\n\tpublic static void main (String[] args) throws IOException{\n\t InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t BufferedReader in = new BufferedReader(reader);\n\t\tString[] str = in.readLine().split(\" \");\n\t\tint size = str.length;\n\n\t\tfor(int i=0; i < size; i++) {\n\t\t\tint num = Integer.parseInt(str[i]);\n\t\t\tif(num == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.nio.charset.StandardCharsets;",
"StandardCharsets",
"java.nio.charset",
"public class Main {\n\tpublic static void main (String[] args) throws IOException{\n\t InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t BufferedReader in = new BufferedReader(reader);\n\t\tString[] str = in.readLine().split(\" \");\n\t\tint size = str.length;\n\n\t\tfor(int i=0; i < size; i++) {\n\t\t\tint num = Integer.parseInt(str[i]);\n\t\t\tif(num == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main (String[] args) throws IOException{\n\t InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t BufferedReader in = new BufferedReader(reader);\n\t\tString[] str = in.readLine().split(\" \");\n\t\tint size = str.length;\n\n\t\tfor(int i=0; i < size; i++) {\n\t\t\tint num = Integer.parseInt(str[i]);\n\t\t\tif(num == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t BufferedReader in = new BufferedReader(reader);\n\t\tString[] str = in.readLine().split(\" \");\n\t\tint size = str.length;\n\n\t\tfor(int i=0; i < size; i++) {\n\t\t\tint num = Integer.parseInt(str[i]);\n\t\t\tif(num == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}\n\t}",
"InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);",
"reader",
"new InputStreamReader(System.in, StandardCharsets.UTF_8)",
"BufferedReader in = new BufferedReader(reader);",
"in",
"new BufferedReader(reader)",
"String[] str = in.readLine().split(\" \");",
"str",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"int size = str.length;",
"size",
"str.length",
"str",
"str.length",
"for(int i=0; i < size; i++) {\n\t\t\tint num = Integer.parseInt(str[i]);\n\t\t\tif(num == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i < size",
"i",
"size",
"i++",
"i++",
"i",
"{\n\t\t\tint num = Integer.parseInt(str[i]);\n\t\t\tif(num == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}",
"{\n\t\t\tint num = Integer.parseInt(str[i]);\n\t\t\tif(num == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}",
"int num = Integer.parseInt(str[i]);",
"num",
"Integer.parseInt(str[i])",
"Integer.parseInt",
"Integer",
"str[i]",
"str",
"i",
"if(num == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}",
"num == 0",
"num",
"0",
"{\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}",
"System.out.println(i+1)",
"System.out.println",
"System.out",
"System",
"System.out",
"i+1",
"i",
"1",
"String[] args",
"args",
"public class Main {\n\tpublic static void main (String[] args) throws IOException{\n\t InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t BufferedReader in = new BufferedReader(reader);\n\t\tString[] str = in.readLine().split(\" \");\n\t\tint size = str.length;\n\n\t\tfor(int i=0; i < size; i++) {\n\t\t\tint num = Integer.parseInt(str[i]);\n\t\t\tif(num == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main (String[] args) throws IOException{\n\t InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t BufferedReader in = new BufferedReader(reader);\n\t\tString[] str = in.readLine().split(\" \");\n\t\tint size = str.length;\n\n\t\tfor(int i=0; i < size; i++) {\n\t\t\tint num = Integer.parseInt(str[i]);\n\t\t\tif(num == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
public class Main {
public static void main (String[] args) throws IOException{
InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
BufferedReader in = new BufferedReader(reader);
String[] str = in.readLine().split(" ");
int size = str.length;
for(int i=0; i < size; i++) {
int num = Integer.parseInt(str[i]);
if(num == 0) {
System.out.println(i+1);
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
13,
2,
13,
17,
29,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
17,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
191,
29
],
[
191,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
32,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
32,
43
],
[
43,
44
],
[
43,
45
],
[
32,
46
],
[
46,
47
],
[
46,
48
],
[
32,
49
],
[
49,
50
],
[
49,
51
],
[
32,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
52,
56
],
[
52,
57
],
[
32,
58
],
[
58,
59
],
[
59,
60
],
[
30,
61
],
[
61,
62
],
[
191,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
67,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
79,
80
],
[
79,
81
],
[
74,
82
],
[
82,
83
],
[
83,
84
],
[
74,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
87,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
97,
98
],
[
97,
99
],
[
93,
100
],
[
65,
101
],
[
101,
102
],
[
65,
103
],
[
103,
104
],
[
65,
105
],
[
105,
106
],
[
191,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
107,
111
],
[
111,
112
],
[
107,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
119,
120
],
[
119,
121
],
[
113,
122
],
[
122,
123
],
[
107,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
127,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
137,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
126,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
107,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
155,
158
],
[
158,
159
],
[
107,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
172,
173
],
[
172,
174
],
[
167,
175
],
[
175,
176
],
[
176,
177
],
[
167,
178
],
[
179,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
180,
184
],
[
184,
185
],
[
162,
186
],
[
186,
187
],
[
160,
188
],
[
188,
189
],
[
0,
190
],
[
190,
191
],
[
190,
192
]
]
| [
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\nimport java.io.IOException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author AnandOza\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n AFiveVariables solver = new AFiveVariables();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class AFiveVariables {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int[] x = in.readIntArray(5);\n for (int i = 0; i < 5; i++) {\n if (x[i] == 0) {\n out.println(i + 1);\n return;\n }\n }\n }\n\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] readIntArray(int n) {\n int[] x = new int[n];\n for (int i = 0; i < n; i++) {\n x[i] = nextInt();\n }\n return x;\n }\n\n }\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n AFiveVariables solver = new AFiveVariables();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class AFiveVariables {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int[] x = in.readIntArray(5);\n for (int i = 0; i < 5; i++) {\n if (x[i] == 0) {\n out.println(i + 1);\n return;\n }\n }\n }\n\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] readIntArray(int n) {\n int[] x = new int[n];\n for (int i = 0; i < n; i++) {\n x[i] = nextInt();\n }\n return x;\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n AFiveVariables solver = new AFiveVariables();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n AFiveVariables solver = new AFiveVariables();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"InputReader in = new InputReader(inputStream);",
"in",
"new InputReader(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"AFiveVariables solver = new AFiveVariables();",
"solver",
"new AFiveVariables()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class AFiveVariables {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int[] x = in.readIntArray(5);\n for (int i = 0; i < 5; i++) {\n if (x[i] == 0) {\n out.println(i + 1);\n return;\n }\n }\n }\n\n }",
"AFiveVariables",
"public void solve(int testNumber, InputReader in, PrintWriter out) {\n int[] x = in.readIntArray(5);\n for (int i = 0; i < 5; i++) {\n if (x[i] == 0) {\n out.println(i + 1);\n return;\n }\n }\n }",
"solve",
"{\n int[] x = in.readIntArray(5);\n for (int i = 0; i < 5; i++) {\n if (x[i] == 0) {\n out.println(i + 1);\n return;\n }\n }\n }",
"int[] x = in.readIntArray(5);",
"x",
"in.readIntArray(5)",
"in.readIntArray",
"in",
"5",
"for (int i = 0; i < 5; i++) {\n if (x[i] == 0) {\n out.println(i + 1);\n return;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n if (x[i] == 0) {\n out.println(i + 1);\n return;\n }\n }",
"{\n if (x[i] == 0) {\n out.println(i + 1);\n return;\n }\n }",
"if (x[i] == 0) {\n out.println(i + 1);\n return;\n }",
"x[i] == 0",
"x[i]",
"x",
"i",
"0",
"{\n out.println(i + 1);\n return;\n }",
"out.println(i + 1)",
"out.println",
"out",
"i + 1",
"i",
"1",
"return;",
"int testNumber",
"testNumber",
"InputReader in",
"in",
"PrintWriter out",
"out",
"static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] readIntArray(int n) {\n int[] x = new int[n];\n for (int i = 0; i < n; i++) {\n x[i] = nextInt();\n }\n return x;\n }\n\n }",
"InputReader",
"public BufferedReader reader;",
"reader",
"public StringTokenizer tokenizer;",
"tokenizer",
"public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }",
"InputReader",
"{\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }",
"reader = new BufferedReader(new InputStreamReader(stream), 32768)",
"reader",
"new BufferedReader(new InputStreamReader(stream), 32768)",
"tokenizer = null",
"tokenizer",
"null",
"InputStream stream",
"stream",
"public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"next",
"{\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }",
"catch (IOException e) {\n throw new RuntimeException(e);\n }",
"IOException e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n tokenizer = new StringTokenizer(reader.readLine());\n }",
"tokenizer = new StringTokenizer(reader.readLine())",
"tokenizer",
"new StringTokenizer(reader.readLine())",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"public int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public int[] readIntArray(int n) {\n int[] x = new int[n];\n for (int i = 0; i < n; i++) {\n x[i] = nextInt();\n }\n return x;\n }",
"readIntArray",
"{\n int[] x = new int[n];\n for (int i = 0; i < n; i++) {\n x[i] = nextInt();\n }\n return x;\n }",
"int[] x = new int[n];",
"x",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n x[i] = nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n x[i] = nextInt();\n }",
"{\n x[i] = nextInt();\n }",
"x[i] = nextInt()",
"x[i]",
"x",
"i",
"nextInt()",
"nextInt",
"return x;",
"x",
"int n",
"n",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n AFiveVariables solver = new AFiveVariables();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class AFiveVariables {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int[] x = in.readIntArray(5);\n for (int i = 0; i < 5; i++) {\n if (x[i] == 0) {\n out.println(i + 1);\n return;\n }\n }\n }\n\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] readIntArray(int n) {\n int[] x = new int[n];\n for (int i = 0; i < n; i++) {\n x[i] = nextInt();\n }\n return x;\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n AFiveVariables solver = new AFiveVariables();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class AFiveVariables {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int[] x = in.readIntArray(5);\n for (int i = 0; i < 5; i++) {\n if (x[i] == 0) {\n out.println(i + 1);\n return;\n }\n }\n }\n\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] readIntArray(int n) {\n int[] x = new int[n];\n for (int i = 0; i < n; i++) {\n x[i] = nextInt();\n }\n return x;\n }\n\n }\n}",
"Main"
]
| import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author AnandOza
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
AFiveVariables solver = new AFiveVariables();
solver.solve(1, in, out);
out.close();
}
static class AFiveVariables {
public void solve(int testNumber, InputReader in, PrintWriter out) {
int[] x = in.readIntArray(5);
for (int i = 0; i < 5; i++) {
if (x[i] == 0) {
out.println(i + 1);
return;
}
}
}
}
static class InputReader {
public BufferedReader reader;
public StringTokenizer tokenizer;
public InputReader(InputStream stream) {
reader = new BufferedReader(new InputStreamReader(stream), 32768);
tokenizer = null;
}
public String next() {
while (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(reader.readLine());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken();
}
public int nextInt() {
return Integer.parseInt(next());
}
public int[] readIntArray(int n) {
int[] x = new int[n];
for (int i = 0; i < n; i++) {
x[i] = nextInt();
}
return x;
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
3,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
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
],
[
180,
23
],
[
180,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
26,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
45,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
55,
62
],
[
24,
63
],
[
63,
64
],
[
0,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
65,
69
],
[
69,
70
],
[
65,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
74,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
71,
85
],
[
85,
86
],
[
65,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
90,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
87,
101
],
[
101,
102
],
[
65,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
109,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
105,
122
],
[
122,
123
],
[
65,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
127,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
137,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
126,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
65,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
156,
159
],
[
159,
160
],
[
65,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
165,
168
],
[
168,
169
],
[
65,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
174,
177
],
[
177,
178
],
[
0,
179
],
[
179,
180
],
[
179,
181
]
]
| [
"//package abc170_A;\n\nimport java.io.BufferedReader;\nimport java.io.File;\nimport java.io.FileReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tFastScanner in = new FastScanner(System.in);\n\t\tint n = 5;\n\t\tfor(int i = 1; i <= n; i++)\n\t\t{\n\t\t\tint num = in.nextInt();\n\t\t\tif(num == 0) {\n\t\t\t\tSystem.out.println(i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n}\n///////////////////////////////////TEMPLATE///////////////////////////////////\nclass FastScanner {\n\tBufferedReader br;\n\tStringTokenizer st;\n\n\tFastScanner(InputStream stream) {\n\t\ttry {\n\t\t\tbr = new BufferedReader(new InputStreamReader(stream));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n\tFastScanner(File input) {\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(input));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n\tString nextLine() {\n\t\tString s = \"\";\n\t\ttry {\n\t\t\ts = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn s;\n\t}\n\n\tString next() {\n\t\twhile (st == null || !st.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn st.nextToken();\n\t}\n\n\tint nextInt() {\n\t\treturn Integer.parseInt(next());\n\t}\n\n\tlong nextLong() {\n\t\treturn Long.parseLong(next());\n\t}\n\n\tdouble nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.File;",
"File",
"java.io",
"import java.io.FileReader;",
"FileReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tFastScanner in = new FastScanner(System.in);\n\t\tint n = 5;\n\t\tfor(int i = 1; i <= n; i++)\n\t\t{\n\t\t\tint num = in.nextInt();\n\t\t\tif(num == 0) {\n\t\t\t\tSystem.out.println(i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tFastScanner in = new FastScanner(System.in);\n\t\tint n = 5;\n\t\tfor(int i = 1; i <= n; i++)\n\t\t{\n\t\t\tint num = in.nextInt();\n\t\t\tif(num == 0) {\n\t\t\t\tSystem.out.println(i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tFastScanner in = new FastScanner(System.in);\n\t\tint n = 5;\n\t\tfor(int i = 1; i <= n; i++)\n\t\t{\n\t\t\tint num = in.nextInt();\n\t\t\tif(num == 0) {\n\t\t\t\tSystem.out.println(i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"FastScanner in = new FastScanner(System.in);",
"in",
"new FastScanner(System.in)",
"int n = 5;",
"n",
"5",
"for(int i = 1; i <= n; i++)\n\t\t{\n\t\t\tint num = in.nextInt();\n\t\t\tif(num == 0) {\n\t\t\t\tSystem.out.println(i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint num = in.nextInt();\n\t\t\tif(num == 0) {\n\t\t\t\tSystem.out.println(i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tint num = in.nextInt();\n\t\t\tif(num == 0) {\n\t\t\t\tSystem.out.println(i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int num = in.nextInt();",
"num",
"in.nextInt()",
"in.nextInt",
"in",
"if(num == 0) {\n\t\t\t\tSystem.out.println(i);\n\t\t\t\tbreak;\n\t\t\t}",
"num == 0",
"num",
"0",
"{\n\t\t\t\tSystem.out.println(i);\n\t\t\t\tbreak;\n\t\t\t}",
"System.out.println(i)",
"System.out.println",
"System.out",
"System",
"System.out",
"i",
"break;",
"String[] args",
"args",
"class FastScanner {\n\tBufferedReader br;\n\tStringTokenizer st;\n\n\tFastScanner(InputStream stream) {\n\t\ttry {\n\t\t\tbr = new BufferedReader(new InputStreamReader(stream));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n\tFastScanner(File input) {\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(input));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n\tString nextLine() {\n\t\tString s = \"\";\n\t\ttry {\n\t\t\ts = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn s;\n\t}\n\n\tString next() {\n\t\twhile (st == null || !st.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn st.nextToken();\n\t}\n\n\tint nextInt() {\n\t\treturn Integer.parseInt(next());\n\t}\n\n\tlong nextLong() {\n\t\treturn Long.parseLong(next());\n\t}\n\n\tdouble nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}\n}",
"FastScanner",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"FastScanner(InputStream stream) {\n\t\ttry {\n\t\t\tbr = new BufferedReader(new InputStreamReader(stream));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"FastScanner",
"{\n\t\ttry {\n\t\t\tbr = new BufferedReader(new InputStreamReader(stream));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"try {\n\t\t\tbr = new BufferedReader(new InputStreamReader(stream));\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\tbr = new BufferedReader(new InputStreamReader(stream));\n\t\t}",
"br = new BufferedReader(new InputStreamReader(stream))",
"br",
"new BufferedReader(new InputStreamReader(stream))",
"InputStream stream",
"stream",
"FastScanner(File input) {\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(input));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"FastScanner",
"{\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(input));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"try {\n\t\t\tbr = new BufferedReader(new FileReader(input));\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\tbr = new BufferedReader(new FileReader(input));\n\t\t}",
"br = new BufferedReader(new FileReader(input))",
"br",
"new BufferedReader(new FileReader(input))",
"File input",
"input",
"String nextLine() {\n\t\tString s = \"\";\n\t\ttry {\n\t\t\ts = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn s;\n\t}",
"nextLine",
"{\n\t\tString s = \"\";\n\t\ttry {\n\t\t\ts = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn s;\n\t}",
"String s = \"\";",
"s",
"\"\"",
"try {\n\t\t\ts = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}",
"catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}",
"IOException e",
"{\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\ts = br.readLine();\n\t\t}",
"s = br.readLine()",
"s",
"br.readLine()",
"br.readLine",
"br",
"return s;",
"s",
"String next() {\n\t\twhile (st == null || !st.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn st.nextToken();\n\t}",
"next",
"{\n\t\twhile (st == null || !st.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn st.nextToken();\n\t}",
"while (st == null || !st.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"try {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"IOException e",
"{\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t}",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n\t\treturn Integer.parseInt(next());\n\t}",
"nextInt",
"{\n\t\treturn Integer.parseInt(next());\n\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n\t\treturn Long.parseLong(next());\n\t}",
"nextLong",
"{\n\t\treturn Long.parseLong(next());\n\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}",
"nextDouble",
"{\n\t\treturn Double.parseDouble(next());\n\t}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tFastScanner in = new FastScanner(System.in);\n\t\tint n = 5;\n\t\tfor(int i = 1; i <= n; i++)\n\t\t{\n\t\t\tint num = in.nextInt();\n\t\t\tif(num == 0) {\n\t\t\t\tSystem.out.println(i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tFastScanner in = new FastScanner(System.in);\n\t\tint n = 5;\n\t\tfor(int i = 1; i <= n; i++)\n\t\t{\n\t\t\tint num = in.nextInt();\n\t\t\tif(num == 0) {\n\t\t\t\tSystem.out.println(i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main"
]
| //package abc170_A;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
FastScanner in = new FastScanner(System.in);
int n = 5;
for(int i = 1; i <= n; i++)
{
int num = in.nextInt();
if(num == 0) {
System.out.println(i);
break;
}
}
}
}
///////////////////////////////////TEMPLATE///////////////////////////////////
class FastScanner {
BufferedReader br;
StringTokenizer st;
FastScanner(InputStream stream) {
try {
br = new BufferedReader(new InputStreamReader(stream));
} catch (Exception e) {
e.printStackTrace();
}
}
FastScanner(File input) {
try {
br = new BufferedReader(new FileReader(input));
} catch (Exception e) {
e.printStackTrace();
}
}
String nextLine() {
String s = "";
try {
s = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return s;
}
String next() {
while (st == null || !st.hasMoreTokens()) {
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());
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
18,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
66,
5
],
[
66,
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
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
36,
38
],
[
29,
39
],
[
39,
40
],
[
40,
41
],
[
29,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
49,
50
],
[
49,
51
],
[
43,
52
],
[
52,
53
],
[
52,
54
],
[
8,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
6,
63
],
[
63,
64
],
[
0,
65
],
[
65,
66
],
[
65,
67
]
]
| [
"import java.util.*;\n\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n sc.close();\n String[] array = str.split(\" \");\n// System.out.println(array[0]);\n// System.out.println(Arrays.toString(array));\n int sum = 0;\n for(int i=0; i<array.length; i++) {\n int num = Integer.parseInt(array[i]);\n sum += num;\n }\n System.out.println(15-sum);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n sc.close();\n String[] array = str.split(\" \");\n// System.out.println(array[0]);\n// System.out.println(Arrays.toString(array));\n int sum = 0;\n for(int i=0; i<array.length; i++) {\n int num = Integer.parseInt(array[i]);\n sum += num;\n }\n System.out.println(15-sum);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n sc.close();\n String[] array = str.split(\" \");\n// System.out.println(array[0]);\n// System.out.println(Arrays.toString(array));\n int sum = 0;\n for(int i=0; i<array.length; i++) {\n int num = Integer.parseInt(array[i]);\n sum += num;\n }\n System.out.println(15-sum);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n sc.close();\n String[] array = str.split(\" \");\n// System.out.println(array[0]);\n// System.out.println(Arrays.toString(array));\n int sum = 0;\n for(int i=0; i<array.length; i++) {\n int num = Integer.parseInt(array[i]);\n sum += num;\n }\n System.out.println(15-sum);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String str = sc.nextLine();",
"str",
"sc.nextLine()",
"sc.nextLine",
"sc",
"sc.close()",
"sc.close",
"sc",
"String[] array = str.split(\" \");",
"array",
"str.split(\" \")",
"str.split",
"str",
"\" \"",
"int sum = 0;",
"sum",
"0",
"for(int i=0; i<array.length; i++) {\n int num = Integer.parseInt(array[i]);\n sum += num;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<array.length",
"i",
"array.length",
"array",
"array.length",
"i++",
"i++",
"i",
"{\n int num = Integer.parseInt(array[i]);\n sum += num;\n }",
"{\n int num = Integer.parseInt(array[i]);\n sum += num;\n }",
"int num = Integer.parseInt(array[i]);",
"num",
"Integer.parseInt(array[i])",
"Integer.parseInt",
"Integer",
"array[i]",
"array",
"i",
"sum += num",
"sum",
"num",
"System.out.println(15-sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"15-sum",
"15",
"sum",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n sc.close();\n String[] array = str.split(\" \");\n// System.out.println(array[0]);\n// System.out.println(Arrays.toString(array));\n int sum = 0;\n for(int i=0; i<array.length; i++) {\n int num = Integer.parseInt(array[i]);\n sum += num;\n }\n System.out.println(15-sum);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n sc.close();\n String[] array = str.split(\" \");\n// System.out.println(array[0]);\n// System.out.println(Arrays.toString(array));\n int sum = 0;\n for(int i=0; i<array.length; i++) {\n int num = Integer.parseInt(array[i]);\n sum += num;\n }\n System.out.println(15-sum);\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String str = sc.nextLine();
sc.close();
String[] array = str.split(" ");
// System.out.println(array[0]);
// System.out.println(Arrays.toString(array));
int sum = 0;
for(int i=0; i<array.length; i++) {
int num = Integer.parseInt(array[i]);
sum += num;
}
System.out.println(15-sum);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
40,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
2,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
50,
5
],
[
50,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
21,
22
],
[
21,
23
],
[
16,
24
],
[
24,
25
],
[
25,
26
],
[
16,
27
],
[
28,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
28,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
38,
40
],
[
8,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
6,
47
],
[
47,
48
],
[
0,
49
],
[
49,
50
],
[
49,
51
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int ans = -1;\n for (int i=1;i<=5;i++) {\n int x = sc.nextInt();\n if (i != x) ans = i;\n }\n System.out.println(ans);\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 ans = -1;\n for (int i=1;i<=5;i++) {\n int x = sc.nextInt();\n if (i != x) ans = i;\n }\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int ans = -1;\n for (int i=1;i<=5;i++) {\n int x = sc.nextInt();\n if (i != x) ans = i;\n }\n System.out.println(ans);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int ans = -1;\n for (int i=1;i<=5;i++) {\n int x = sc.nextInt();\n if (i != x) ans = i;\n }\n System.out.println(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int ans = -1;",
"ans",
"-1",
"1",
"for (int i=1;i<=5;i++) {\n int x = sc.nextInt();\n if (i != x) ans = i;\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=5",
"i",
"5",
"i++",
"i++",
"i",
"{\n int x = sc.nextInt();\n if (i != x) ans = i;\n }",
"{\n int x = sc.nextInt();\n if (i != x) ans = i;\n }",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (i != x) ans = i;",
"i != x",
"i",
"x",
"ans = i",
"ans",
"i",
"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) {\n Scanner sc = new Scanner(System.in);\n int ans = -1;\n for (int i=1;i<=5;i++) {\n int x = sc.nextInt();\n if (i != x) ans = i;\n }\n System.out.println(ans);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int ans = -1;\n for (int i=1;i<=5;i++) {\n int x = sc.nextInt();\n if (i != x) ans = i;\n }\n System.out.println(ans);\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int ans = -1;
for (int i=1;i<=5;i++) {
int x = sc.nextInt();
if (i != x) ans = i;
}
System.out.println(ans);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
42,
4,
18,
13,
30,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
4,
18,
13,
13,
4,
18,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
13,
17,
3,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
70,
8
],
[
70,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
18,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
26,
27
],
[
27,
28
],
[
11,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
29,
39
],
[
39,
40
],
[
40,
41
],
[
29,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
46,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
45,
56
],
[
44,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
57,
66
],
[
9,
67
],
[
67,
68
],
[
0,
69
],
[
69,
70
],
[
69,
71
]
]
| [
"import java.util.*;\nimport java.lang.Integer; \n\npublic class Main {\n public static void main(String[] args){\n List<Integer> xList = new ArrayList<Integer>();\n Scanner sc = new Scanner(System.in);\n while(sc.hasNext()){\n xList.add(sc.nextInt());\n }\n for(int i=0;i < xList.size();i++){\n if(xList.get(i).compareTo(Integer.valueOf(0)) == 0){\n \tSystem.out.println(i+1);\n break;\n }\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.Integer;",
"Integer",
"java.lang",
"public class Main {\n public static void main(String[] args){\n List<Integer> xList = new ArrayList<Integer>();\n Scanner sc = new Scanner(System.in);\n while(sc.hasNext()){\n xList.add(sc.nextInt());\n }\n for(int i=0;i < xList.size();i++){\n if(xList.get(i).compareTo(Integer.valueOf(0)) == 0){\n \tSystem.out.println(i+1);\n break;\n }\n }\n }\n}",
"Main",
"public static void main(String[] args){\n List<Integer> xList = new ArrayList<Integer>();\n Scanner sc = new Scanner(System.in);\n while(sc.hasNext()){\n xList.add(sc.nextInt());\n }\n for(int i=0;i < xList.size();i++){\n if(xList.get(i).compareTo(Integer.valueOf(0)) == 0){\n \tSystem.out.println(i+1);\n break;\n }\n }\n }",
"main",
"{\n List<Integer> xList = new ArrayList<Integer>();\n Scanner sc = new Scanner(System.in);\n while(sc.hasNext()){\n xList.add(sc.nextInt());\n }\n for(int i=0;i < xList.size();i++){\n if(xList.get(i).compareTo(Integer.valueOf(0)) == 0){\n \tSystem.out.println(i+1);\n break;\n }\n }\n }",
"List<Integer> xList = new ArrayList<Integer>();",
"xList",
"new ArrayList<Integer>()",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while(sc.hasNext()){\n xList.add(sc.nextInt());\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n xList.add(sc.nextInt());\n }",
"xList.add(sc.nextInt())",
"xList.add",
"xList",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=0;i < xList.size();i++){\n if(xList.get(i).compareTo(Integer.valueOf(0)) == 0){\n \tSystem.out.println(i+1);\n break;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i < xList.size()",
"i",
"xList.size()",
"xList.size",
"xList",
"i++",
"i++",
"i",
"{\n if(xList.get(i).compareTo(Integer.valueOf(0)) == 0){\n \tSystem.out.println(i+1);\n break;\n }\n }",
"{\n if(xList.get(i).compareTo(Integer.valueOf(0)) == 0){\n \tSystem.out.println(i+1);\n break;\n }\n }",
"if(xList.get(i).compareTo(Integer.valueOf(0)) == 0){\n \tSystem.out.println(i+1);\n break;\n }",
"xList.get(i).compareTo(Integer.valueOf(0)) == 0",
"xList.get(i).compareTo(Integer.valueOf(0))",
"xList.get(i).compareTo",
"xList.get(i)",
"xList.get",
"xList",
"i",
"Integer.valueOf(0)",
"Integer.valueOf",
"Integer",
"0",
"0",
"{\n \tSystem.out.println(i+1);\n break;\n }",
"System.out.println(i+1)",
"System.out.println",
"System.out",
"System",
"System.out",
"i+1",
"i",
"1",
"break;",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n List<Integer> xList = new ArrayList<Integer>();\n Scanner sc = new Scanner(System.in);\n while(sc.hasNext()){\n xList.add(sc.nextInt());\n }\n for(int i=0;i < xList.size();i++){\n if(xList.get(i).compareTo(Integer.valueOf(0)) == 0){\n \tSystem.out.println(i+1);\n break;\n }\n }\n }\n}",
"public class Main {\n public static void main(String[] args){\n List<Integer> xList = new ArrayList<Integer>();\n Scanner sc = new Scanner(System.in);\n while(sc.hasNext()){\n xList.add(sc.nextInt());\n }\n for(int i=0;i < xList.size();i++){\n if(xList.get(i).compareTo(Integer.valueOf(0)) == 0){\n \tSystem.out.println(i+1);\n break;\n }\n }\n }\n}",
"Main"
]
| import java.util.*;
import java.lang.Integer;
public class Main {
public static void main(String[] args){
List<Integer> xList = new ArrayList<Integer>();
Scanner sc = new Scanner(System.in);
while(sc.hasNext()){
xList.add(sc.nextInt());
}
for(int i=0;i < xList.size();i++){
if(xList.get(i).compareTo(Integer.valueOf(0)) == 0){
System.out.println(i+1);
break;
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
17,
42,
4,
18,
13,
30,
14,
2,
4,
18,
13,
17,
0,
13,
2,
13,
17,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
45,
5
],
[
45,
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
],
[
20,
21
],
[
18,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
24,
28
],
[
23,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
31,
33
],
[
22,
34
],
[
34,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
6,
42
],
[
42,
43
],
[
0,
44
],
[
44,
45
],
[
44,
46
]
]
| [
"import 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 solution = 0;\n\t\tint i = 0;\n\t\twhile(scanner.hasNext()) {\n\t\t\tif(scanner.nextInt() == 0)\n\t\t\t\tsolution = i + 1;\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.print(solution);\n\t\t\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint solution = 0;\n\t\tint i = 0;\n\t\twhile(scanner.hasNext()) {\n\t\t\tif(scanner.nextInt() == 0)\n\t\t\t\tsolution = i + 1;\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.print(solution);\n\t\t\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint solution = 0;\n\t\tint i = 0;\n\t\twhile(scanner.hasNext()) {\n\t\t\tif(scanner.nextInt() == 0)\n\t\t\t\tsolution = i + 1;\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.print(solution);\n\t\t\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint solution = 0;\n\t\tint i = 0;\n\t\twhile(scanner.hasNext()) {\n\t\t\tif(scanner.nextInt() == 0)\n\t\t\t\tsolution = i + 1;\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.print(solution);\n\t\t\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int solution = 0;",
"solution",
"0",
"int i = 0;",
"i",
"0",
"while(scanner.hasNext()) {\n\t\t\tif(scanner.nextInt() == 0)\n\t\t\t\tsolution = i + 1;\n\t\t\ti++;\n\t\t}",
"scanner.hasNext()",
"scanner.hasNext",
"scanner",
"{\n\t\t\tif(scanner.nextInt() == 0)\n\t\t\t\tsolution = i + 1;\n\t\t\ti++;\n\t\t}",
"if(scanner.nextInt() == 0)\n\t\t\t\tsolution = i + 1;",
"scanner.nextInt() == 0",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"0",
"solution = i + 1",
"solution",
"i + 1",
"i",
"1",
"i++",
"i",
"System.out.print(solution)",
"System.out.print",
"System.out",
"System",
"System.out",
"solution",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint solution = 0;\n\t\tint i = 0;\n\t\twhile(scanner.hasNext()) {\n\t\t\tif(scanner.nextInt() == 0)\n\t\t\t\tsolution = i + 1;\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.print(solution);\n\t\t\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint solution = 0;\n\t\tint i = 0;\n\t\twhile(scanner.hasNext()) {\n\t\t\tif(scanner.nextInt() == 0)\n\t\t\t\tsolution = i + 1;\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.print(solution);\n\t\t\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int solution = 0;
int i = 0;
while(scanner.hasNext()) {
if(scanner.nextInt() == 0)
solution = i + 1;
i++;
}
System.out.print(solution);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
20,
17,
41,
13,
40,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
2,
18,
13,
13,
17,
30,
0,
13,
2,
13,
17,
4,
18,
13,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
41,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
29,
17,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
169,
8
],
[
169,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
14,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
19,
21
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
11,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
31,
35
],
[
11,
36
],
[
36,
37
],
[
37,
38
],
[
9,
39
],
[
39,
40
],
[
169,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
45,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
54,
65
],
[
66,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
72,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
74,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
45,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
43,
90
],
[
90,
91
],
[
43,
92
],
[
92,
93
],
[
169,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
94,
98
],
[
98,
99
],
[
94,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
100,
106
],
[
106,
107
],
[
94,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
111,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
124,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
120,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
136,
140
],
[
140,
141
],
[
141,
142
],
[
120,
143
],
[
143,
144
],
[
143,
145
],
[
110,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
94,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
154,
157
],
[
157,
158
],
[
94,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
163,
166
],
[
166,
167
],
[
0,
168
],
[
168,
169
],
[
168,
170
]
]
| [
"\nimport java.io.*;\nimport java.util.*;\n\n/**\n * @author Tran Anh Tai\n * @template for CP codes\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n solver.solve(in, out);\n out.close();\n }\n // main solver\n static class Task{\n public void solve(InputReader in, PrintWriter out) {\n \n int[] a = new int[5];\n int r = -1;\n for (int j = 0; j < 5; j++){\n a[j] = in.nextInt();\n if (a[j] == 0){\n r = j + 1;\n }\n }\n out.println(r);\n\n }\n }\n // fast input reader class;\n static class InputReader {\n BufferedReader br;\n StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n String line = null;\n try {\n line = br.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n if (line == null) {\n return null;\n }\n st = new StringTokenizer(line);\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(nextToken());\n }\n public long nextLong(){\n return Long.parseLong(nextToken());\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n solver.solve(in, out);\n out.close();\n }\n // main solver\n static class Task{\n public void solve(InputReader in, PrintWriter out) {\n \n int[] a = new int[5];\n int r = -1;\n for (int j = 0; j < 5; j++){\n a[j] = in.nextInt();\n if (a[j] == 0){\n r = j + 1;\n }\n }\n out.println(r);\n\n }\n }\n // fast input reader class;\n static class InputReader {\n BufferedReader br;\n StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n String line = null;\n try {\n line = br.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n if (line == null) {\n return null;\n }\n st = new StringTokenizer(line);\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(nextToken());\n }\n public long nextLong(){\n return Long.parseLong(nextToken());\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n solver.solve(in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n solver.solve(in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"InputReader in = new InputReader(inputStream);",
"in",
"new InputReader(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"Task solver = new Task();",
"solver",
"new Task()",
"solver.solve(in, out)",
"solver.solve",
"solver",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class Task{\n public void solve(InputReader in, PrintWriter out) {\n \n int[] a = new int[5];\n int r = -1;\n for (int j = 0; j < 5; j++){\n a[j] = in.nextInt();\n if (a[j] == 0){\n r = j + 1;\n }\n }\n out.println(r);\n\n }\n }",
"Task",
"public void solve(InputReader in, PrintWriter out) {\n \n int[] a = new int[5];\n int r = -1;\n for (int j = 0; j < 5; j++){\n a[j] = in.nextInt();\n if (a[j] == 0){\n r = j + 1;\n }\n }\n out.println(r);\n\n }",
"solve",
"{\n \n int[] a = new int[5];\n int r = -1;\n for (int j = 0; j < 5; j++){\n a[j] = in.nextInt();\n if (a[j] == 0){\n r = j + 1;\n }\n }\n out.println(r);\n\n }",
"int[] a = new int[5];",
"a",
"new int[5]",
"5",
"int r = -1;",
"r",
"-1",
"1",
"for (int j = 0; j < 5; j++){\n a[j] = in.nextInt();\n if (a[j] == 0){\n r = j + 1;\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 5",
"j",
"5",
"j++",
"j++",
"j",
"{\n a[j] = in.nextInt();\n if (a[j] == 0){\n r = j + 1;\n }\n }",
"{\n a[j] = in.nextInt();\n if (a[j] == 0){\n r = j + 1;\n }\n }",
"a[j] = in.nextInt()",
"a[j]",
"a",
"j",
"in.nextInt()",
"in.nextInt",
"in",
"if (a[j] == 0){\n r = j + 1;\n }",
"a[j] == 0",
"a[j]",
"a",
"j",
"0",
"{\n r = j + 1;\n }",
"r = j + 1",
"r",
"j + 1",
"j",
"1",
"out.println(r)",
"out.println",
"out",
"r",
"InputReader in",
"in",
"PrintWriter out",
"out",
"static class InputReader {\n BufferedReader br;\n StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n String line = null;\n try {\n line = br.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n if (line == null) {\n return null;\n }\n st = new StringTokenizer(line);\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(nextToken());\n }\n public long nextLong(){\n return Long.parseLong(nextToken());\n }\n }",
"InputReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }",
"InputReader",
"{\n br = new BufferedReader(new InputStreamReader(stream));\n }",
"br = new BufferedReader(new InputStreamReader(stream))",
"br",
"new BufferedReader(new InputStreamReader(stream))",
"InputStream stream",
"stream",
"public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n String line = null;\n try {\n line = br.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n if (line == null) {\n return null;\n }\n st = new StringTokenizer(line);\n }\n return st.nextToken();\n }",
"nextToken",
"{\n while (st == null || !st.hasMoreTokens()) {\n String line = null;\n try {\n line = br.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n if (line == null) {\n return null;\n }\n st = new StringTokenizer(line);\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens()) {\n String line = null;\n try {\n line = br.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n if (line == null) {\n return null;\n }\n st = new StringTokenizer(line);\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n String line = null;\n try {\n line = br.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n if (line == null) {\n return null;\n }\n st = new StringTokenizer(line);\n }",
"String line = null;",
"line",
"null",
"try {\n line = br.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }",
"catch (IOException e) {\n throw new RuntimeException(e);\n }",
"IOException e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n line = br.readLine();\n }",
"line = br.readLine()",
"line",
"br.readLine()",
"br.readLine",
"br",
"if (line == null) {\n return null;\n }",
"line == null",
"line",
"null",
"{\n return null;\n }",
"return null;",
"null",
"st = new StringTokenizer(line)",
"st",
"new StringTokenizer(line)",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public int nextInt() {\n return Integer.parseInt(nextToken());\n }",
"nextInt",
"{\n return Integer.parseInt(nextToken());\n }",
"return Integer.parseInt(nextToken());",
"Integer.parseInt(nextToken())",
"Integer.parseInt",
"Integer",
"nextToken()",
"nextToken",
"public long nextLong(){\n return Long.parseLong(nextToken());\n }",
"nextLong",
"{\n return Long.parseLong(nextToken());\n }",
"return Long.parseLong(nextToken());",
"Long.parseLong(nextToken())",
"Long.parseLong",
"Long",
"nextToken()",
"nextToken",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n solver.solve(in, out);\n out.close();\n }\n // main solver\n static class Task{\n public void solve(InputReader in, PrintWriter out) {\n \n int[] a = new int[5];\n int r = -1;\n for (int j = 0; j < 5; j++){\n a[j] = in.nextInt();\n if (a[j] == 0){\n r = j + 1;\n }\n }\n out.println(r);\n\n }\n }\n // fast input reader class;\n static class InputReader {\n BufferedReader br;\n StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n String line = null;\n try {\n line = br.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n if (line == null) {\n return null;\n }\n st = new StringTokenizer(line);\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(nextToken());\n }\n public long nextLong(){\n return Long.parseLong(nextToken());\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n solver.solve(in, out);\n out.close();\n }\n // main solver\n static class Task{\n public void solve(InputReader in, PrintWriter out) {\n \n int[] a = new int[5];\n int r = -1;\n for (int j = 0; j < 5; j++){\n a[j] = in.nextInt();\n if (a[j] == 0){\n r = j + 1;\n }\n }\n out.println(r);\n\n }\n }\n // fast input reader class;\n static class InputReader {\n BufferedReader br;\n StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n String line = null;\n try {\n line = br.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n if (line == null) {\n return null;\n }\n st = new StringTokenizer(line);\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(nextToken());\n }\n public long nextLong(){\n return Long.parseLong(nextToken());\n }\n }\n}",
"Main"
]
|
import java.io.*;
import java.util.*;
/**
* @author Tran Anh Tai
* @template for CP codes
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
Task solver = new Task();
solver.solve(in, out);
out.close();
}
// main solver
static class Task{
public void solve(InputReader in, PrintWriter out) {
int[] a = new int[5];
int r = -1;
for (int j = 0; j < 5; j++){
a[j] = in.nextInt();
if (a[j] == 0){
r = j + 1;
}
}
out.println(r);
}
}
// fast input reader class;
static class InputReader {
BufferedReader br;
StringTokenizer st;
public InputReader(InputStream stream) {
br = new BufferedReader(new InputStreamReader(stream));
}
public String nextToken() {
while (st == null || !st.hasMoreTokens()) {
String line = null;
try {
line = br.readLine();
} catch (IOException e) {
throw new RuntimeException(e);
}
if (line == null) {
return null;
}
st = new StringTokenizer(line);
}
return st.nextToken();
}
public int nextInt() {
return Integer.parseInt(nextToken());
}
public long nextLong(){
return Long.parseLong(nextToken());
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
13,
2,
13,
17,
30,
0,
13,
2,
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
],
[
80,
11
],
[
80,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
26,
27
],
[
26,
28
],
[
21,
29
],
[
29,
30
],
[
30,
31
],
[
21,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
37,
38
],
[
38,
39
],
[
14,
40
],
[
40,
41
],
[
40,
42
],
[
14,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
43,
51
],
[
51,
52
],
[
52,
53
],
[
43,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
56,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
14,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
12,
77
],
[
77,
78
],
[
0,
79
],
[
79,
80
],
[
79,
81
]
]
| [
"import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tList<Integer> list = new ArrayList<>();\n\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tlist.add(sc.nextInt());\n\t\t}\n\n\t\tint ans = 0;\n\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tif (list.get(i) != (i + 1)) {\n\t\t\t\tans = (i + 1);\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}\n\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tList<Integer> list = new ArrayList<>();\n\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tlist.add(sc.nextInt());\n\t\t}\n\n\t\tint ans = 0;\n\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tif (list.get(i) != (i + 1)) {\n\t\t\t\tans = (i + 1);\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tList<Integer> list = new ArrayList<>();\n\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tlist.add(sc.nextInt());\n\t\t}\n\n\t\tint ans = 0;\n\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tif (list.get(i) != (i + 1)) {\n\t\t\t\tans = (i + 1);\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tList<Integer> list = new ArrayList<>();\n\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tlist.add(sc.nextInt());\n\t\t}\n\n\t\tint ans = 0;\n\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tif (list.get(i) != (i + 1)) {\n\t\t\t\tans = (i + 1);\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"List<Integer> list = new ArrayList<>();",
"list",
"new ArrayList<>()",
"for (int i = 0; i < 5; i++) {\n\t\t\tlist.add(sc.nextInt());\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n\t\t\tlist.add(sc.nextInt());\n\t\t}",
"{\n\t\t\tlist.add(sc.nextInt());\n\t\t}",
"list.add(sc.nextInt())",
"list.add",
"list",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ans = 0;",
"ans",
"0",
"for (int i = 0; i < 5; i++) {\n\t\t\tif (list.get(i) != (i + 1)) {\n\t\t\t\tans = (i + 1);\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n\t\t\tif (list.get(i) != (i + 1)) {\n\t\t\t\tans = (i + 1);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (list.get(i) != (i + 1)) {\n\t\t\t\tans = (i + 1);\n\t\t\t}\n\t\t}",
"if (list.get(i) != (i + 1)) {\n\t\t\t\tans = (i + 1);\n\t\t\t}",
"list.get(i) != (i + 1)",
"list.get(i)",
"list.get",
"list",
"i",
"(i + 1)",
"i",
"1",
"{\n\t\t\t\tans = (i + 1);\n\t\t\t}",
"ans = (i + 1)",
"ans",
"(i + 1)",
"i",
"1",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"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\tList<Integer> list = new ArrayList<>();\n\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tlist.add(sc.nextInt());\n\t\t}\n\n\t\tint ans = 0;\n\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tif (list.get(i) != (i + 1)) {\n\t\t\t\tans = (i + 1);\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\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\tList<Integer> list = new ArrayList<>();\n\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tlist.add(sc.nextInt());\n\t\t}\n\n\t\tint ans = 0;\n\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tif (list.get(i) != (i + 1)) {\n\t\t\t\tans = (i + 1);\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}\n\n}",
"Main"
]
| import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
List<Integer> list = new ArrayList<>();
for (int i = 0; i < 5; i++) {
list.add(sc.nextInt());
}
int ans = 0;
for (int i = 0; i < 5; i++) {
if (list.get(i) != (i + 1)) {
ans = (i + 1);
}
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
49,
8
],
[
49,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
15,
20
],
[
20,
21
],
[
20,
22
],
[
15,
23
],
[
23,
24
],
[
24,
25
],
[
15,
26
],
[
27,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
27,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
9,
46
],
[
46,
47
],
[
0,
48
],
[
48,
49
],
[
48,
50
]
]
| [
"import java.util.*;\nimport java.io.*;\npublic class Main {\n public static void main(String[] args) throws Exception { \n Scanner sc = new Scanner(System.in);\n for(int i=0;i<5;i++) {\n int k = sc.nextInt();\n if (k==0) {\n System.out.println(i+1);\n }\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception { \n Scanner sc = new Scanner(System.in);\n for(int i=0;i<5;i++) {\n int k = sc.nextInt();\n if (k==0) {\n System.out.println(i+1);\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) throws Exception { \n Scanner sc = new Scanner(System.in);\n for(int i=0;i<5;i++) {\n int k = sc.nextInt();\n if (k==0) {\n System.out.println(i+1);\n }\n }\n }",
"main",
"{ \n Scanner sc = new Scanner(System.in);\n for(int i=0;i<5;i++) {\n int k = sc.nextInt();\n if (k==0) {\n System.out.println(i+1);\n }\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"for(int i=0;i<5;i++) {\n int k = sc.nextInt();\n if (k==0) {\n System.out.println(i+1);\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<5",
"i",
"5",
"i++",
"i++",
"i",
"{\n int k = sc.nextInt();\n if (k==0) {\n System.out.println(i+1);\n }\n }",
"{\n int k = sc.nextInt();\n if (k==0) {\n System.out.println(i+1);\n }\n }",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (k==0) {\n System.out.println(i+1);\n }",
"k==0",
"k",
"0",
"{\n System.out.println(i+1);\n }",
"System.out.println(i+1)",
"System.out.println",
"System.out",
"System",
"System.out",
"i+1",
"i",
"1",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception { \n Scanner sc = new Scanner(System.in);\n for(int i=0;i<5;i++) {\n int k = sc.nextInt();\n if (k==0) {\n System.out.println(i+1);\n }\n }\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception { \n Scanner sc = new Scanner(System.in);\n for(int i=0;i<5;i++) {\n int k = sc.nextInt();\n if (k==0) {\n System.out.println(i+1);\n }\n }\n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
for(int i=0;i<5;i++) {
int k = sc.nextInt();
if (k==0) {
System.out.println(i+1);
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
50,
5
],
[
50,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
15,
20
],
[
20,
21
],
[
20,
22
],
[
15,
23
],
[
23,
24
],
[
24,
25
],
[
15,
26
],
[
27,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
27,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
6,
47
],
[
47,
48
],
[
0,
49
],
[
49,
50
],
[
49,
51
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n List<Integer> list = new ArrayList<Integer>();\n for(int i = 1; i <= 5; i++){\n int x = sc.nextInt();\n if(x == 0){\n System.out.println(i);\n }\n }\n sc.close();\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 List<Integer> list = new ArrayList<Integer>();\n for(int i = 1; i <= 5; i++){\n int x = sc.nextInt();\n if(x == 0){\n System.out.println(i);\n }\n }\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n List<Integer> list = new ArrayList<Integer>();\n for(int i = 1; i <= 5; i++){\n int x = sc.nextInt();\n if(x == 0){\n System.out.println(i);\n }\n }\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n List<Integer> list = new ArrayList<Integer>();\n for(int i = 1; i <= 5; i++){\n int x = sc.nextInt();\n if(x == 0){\n System.out.println(i);\n }\n }\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"List<Integer> list = new ArrayList<Integer>();",
"list",
"new ArrayList<Integer>()",
"for(int i = 1; i <= 5; i++){\n int x = sc.nextInt();\n if(x == 0){\n System.out.println(i);\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n int x = sc.nextInt();\n if(x == 0){\n System.out.println(i);\n }\n }",
"{\n int x = sc.nextInt();\n if(x == 0){\n System.out.println(i);\n }\n }",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(x == 0){\n System.out.println(i);\n }",
"x == 0",
"x",
"0",
"{\n System.out.println(i);\n }",
"System.out.println(i)",
"System.out.println",
"System.out",
"System",
"System.out",
"i",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n List<Integer> list = new ArrayList<Integer>();\n for(int i = 1; i <= 5; i++){\n int x = sc.nextInt();\n if(x == 0){\n System.out.println(i);\n }\n }\n sc.close();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n List<Integer> list = new ArrayList<Integer>();\n for(int i = 1; i <= 5; i++){\n int x = sc.nextInt();\n if(x == 0){\n System.out.println(i);\n }\n }\n sc.close();\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
List<Integer> list = new ArrayList<Integer>();
for(int i = 1; i <= 5; i++){
int x = sc.nextInt();
if(x == 0){
System.out.println(i);
}
}
sc.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
4,
18,
13,
17,
4,
18,
13,
29,
14,
2,
13,
17,
30,
4,
18,
13,
17,
4,
18,
13,
29,
14,
2,
13,
17,
30,
4,
18,
13,
17,
4,
18,
13,
29,
14,
2,
13,
17,
30,
4,
18,
13,
17,
4,
18,
13,
29,
14,
2,
13,
17,
30,
4,
18,
13,
17,
4,
18,
13,
29,
4,
18,
13,
23,
13,
6,
13,
41,
13,
18,
13,
13,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
14,
2,
13,
13,
30,
29,
17,
30,
0,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
29,
17,
29,
17,
12,
13,
30,
14,
4,
13,
29,
18,
13,
40,
13,
29,
40,
17,
12,
13,
30,
29,
2,
2,
17,
13,
2,
13,
17,
23,
13,
12,
13,
30,
42,
2,
4,
13,
40,
4,
13,
18,
13,
13,
40,
13,
29,
4,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
20,
41,
13,
4,
13,
42,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
17,
41,
13,
17,
41,
13,
4,
13,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
4,
13,
14,
2,
2,
13,
17,
2,
17,
13,
30,
37,
20,
42,
17,
30,
14,
2,
2,
17,
13,
2,
13,
17,
30,
0,
13,
17,
0,
13,
2,
13,
17,
14,
2,
2,
13,
40,
17,
40,
4,
13,
13,
30,
29,
8,
13,
40,
13,
13,
30,
37,
20,
0,
13,
4,
13,
12,
13,
30,
41,
13,
4,
13,
14,
2,
2,
13,
18,
13,
13,
2,
13,
18,
13,
13,
37,
20,
29,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
41,
13,
4,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
13,
13,
4,
18,
13,
13,
29,
13,
23,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
664,
20
],
[
664,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
27,
29
],
[
23,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
23,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
23,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
23,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
23,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
23,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
59,
64
],
[
64,
65
],
[
65,
66
],
[
59,
67
],
[
55,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
72,
77
],
[
77,
78
],
[
78,
79
],
[
72,
80
],
[
68,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
85,
90
],
[
90,
91
],
[
91,
92
],
[
85,
93
],
[
81,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
98,
103
],
[
103,
104
],
[
104,
105
],
[
98,
106
],
[
94,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
111,
116
],
[
116,
117
],
[
117,
118
],
[
111,
119
],
[
23,
120
],
[
120,
121
],
[
121,
122
],
[
21,
123
],
[
123,
124
],
[
0,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
129,
131
],
[
125,
132
],
[
132,
133
],
[
132,
134
],
[
125,
136
],
[
136,
137
],
[
136,
138
],
[
125,
139
],
[
139,
140
],
[
139,
141
],
[
125,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
145,
149
],
[
149,
150
],
[
150,
151
],
[
145,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
156,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
166,
169
],
[
152,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
170,
174
],
[
174,
175
],
[
175,
176
],
[
144,
177
],
[
177,
178
],
[
125,
179
],
[
179,
180
],
[
179,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
182,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
182,
190
],
[
190,
191
],
[
191,
192
],
[
125,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
197,
201
],
[
201,
202
],
[
201,
203
],
[
193,
204
],
[
204,
205
],
[
125,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
210,
213
],
[
213,
214
],
[
214,
215
],
[
214,
216
],
[
216,
217
],
[
216,
218
],
[
209,
219
],
[
219,
220
],
[
208,
221
],
[
221,
222
],
[
222,
223
],
[
125,
224
],
[
224,
225
],
[
224,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
229,
230
],
[
227,
231
],
[
231,
232
],
[
226,
233
],
[
233,
234
],
[
233,
235
],
[
226,
236
],
[
236,
237
],
[
236,
238
],
[
238,
239
],
[
226,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
240,
244
],
[
244,
245
],
[
245,
246
],
[
246,
247
],
[
245,
248
],
[
244,
249
],
[
249,
250
],
[
249,
251
],
[
251,
252
],
[
226,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
125,
257
],
[
257,
258
],
[
257,
259
],
[
259,
260
],
[
260,
261
],
[
261,
262
],
[
262,
263
],
[
260,
264
],
[
264,
265
],
[
259,
266
],
[
266,
267
],
[
266,
268
],
[
259,
269
],
[
269,
270
],
[
269,
271
],
[
259,
272
],
[
272,
273
],
[
272,
274
],
[
274,
275
],
[
259,
276
],
[
276,
277
],
[
277,
278
],
[
277,
279
],
[
276,
280
],
[
280,
281
],
[
281,
282
],
[
281,
283
],
[
280,
284
],
[
284,
285
],
[
284,
286
],
[
286,
287
],
[
259,
288
],
[
288,
289
],
[
289,
290
],
[
290,
291
],
[
290,
292
],
[
289,
293
],
[
293,
294
],
[
293,
295
],
[
288,
296
],
[
296,
297
],
[
297,
298
],
[
259,
299
],
[
299,
300
],
[
299,
301
],
[
301,
302
],
[
302,
303
],
[
303,
304
],
[
304,
305
],
[
304,
306
],
[
303,
307
],
[
307,
308
],
[
307,
309
],
[
302,
310
],
[
310,
311
],
[
311,
312
],
[
311,
313
],
[
310,
314
],
[
314,
315
],
[
314,
316
],
[
316,
317
],
[
316,
318
],
[
302,
319
],
[
319,
320
],
[
320,
321
],
[
321,
322
],
[
321,
323
],
[
323,
324
],
[
320,
325
],
[
325,
326
],
[
326,
327
],
[
326,
328
],
[
319,
329
],
[
329,
330
],
[
330,
331
],
[
331,
332
],
[
331,
333
],
[
333,
334
],
[
331,
335
],
[
319,
336
],
[
336,
337
],
[
337,
338
],
[
301,
339
],
[
339,
340
],
[
339,
341
],
[
341,
342
],
[
125,
343
],
[
343,
344
],
[
343,
345
],
[
345,
346
],
[
346,
347
],
[
346,
348
],
[
348,
349
],
[
345,
350
],
[
350,
351
],
[
351,
352
],
[
352,
353
],
[
352,
354
],
[
354,
355
],
[
354,
356
],
[
351,
357
],
[
357,
358
],
[
357,
359
],
[
359,
360
],
[
359,
361
],
[
350,
362
],
[
362,
363
],
[
345,
364
],
[
364,
365
],
[
125,
366
],
[
366,
367
],
[
366,
368
],
[
368,
369
],
[
369,
370
],
[
370,
371
],
[
371,
372
],
[
370,
373
],
[
373,
374
],
[
125,
375
],
[
375,
376
],
[
375,
377
],
[
377,
378
],
[
378,
379
],
[
378,
380
],
[
377,
382
],
[
382,
383
],
[
383,
384
],
[
384,
385
],
[
384,
386
],
[
382,
387
],
[
387,
388
],
[
387,
389
],
[
382,
390
],
[
390,
391
],
[
391,
392
],
[
382,
393
],
[
394,
394
],
[
394,
395
],
[
395,
396
],
[
396,
397
],
[
396,
398
],
[
395,
399
],
[
399,
400
],
[
377,
401
],
[
401,
402
],
[
375,
403
],
[
403,
404
],
[
125,
405
],
[
405,
406
],
[
405,
407
],
[
407,
408
],
[
408,
409
],
[
408,
410
],
[
407,
412
],
[
412,
413
],
[
413,
414
],
[
414,
415
],
[
414,
416
],
[
412,
417
],
[
417,
418
],
[
417,
419
],
[
412,
420
],
[
420,
421
],
[
421,
422
],
[
412,
423
],
[
424,
424
],
[
424,
425
],
[
425,
426
],
[
426,
427
],
[
426,
428
],
[
425,
429
],
[
429,
430
],
[
407,
431
],
[
431,
432
],
[
405,
433
],
[
433,
434
],
[
125,
435
],
[
435,
436
],
[
435,
437
],
[
437,
438
],
[
438,
439
],
[
438,
440
],
[
437,
442
],
[
442,
443
],
[
442,
444
],
[
444,
445
],
[
437,
446
],
[
446,
447
],
[
447,
448
],
[
448,
449
],
[
448,
450
],
[
446,
451
],
[
451,
452
],
[
451,
453
],
[
446,
454
],
[
454,
455
],
[
455,
456
],
[
446,
457
],
[
458,
458
],
[
458,
459
],
[
459,
460
],
[
460,
461
],
[
460,
462
],
[
459,
463
],
[
463,
464
],
[
464,
465
],
[
463,
466
],
[
437,
467
],
[
467,
468
],
[
435,
469
],
[
469,
470
],
[
125,
471
],
[
471,
472
],
[
471,
473
],
[
473,
474
],
[
474,
475
],
[
474,
476
],
[
473,
479
],
[
479,
480
],
[
480,
481
],
[
481,
482
],
[
481,
483
],
[
479,
484
],
[
484,
485
],
[
484,
486
],
[
479,
487
],
[
487,
488
],
[
488,
489
],
[
479,
490
],
[
491,
491
],
[
491,
492
],
[
492,
493
],
[
492,
494
],
[
494,
495
],
[
491,
496
],
[
496,
497
],
[
497,
498
],
[
498,
499
],
[
498,
500
],
[
496,
501
],
[
501,
502
],
[
501,
503
],
[
496,
504
],
[
504,
505
],
[
505,
506
],
[
496,
507
],
[
508,
508
],
[
508,
509
],
[
509,
510
],
[
510,
511
],
[
511,
512
],
[
511,
513
],
[
510,
514
],
[
509,
515
],
[
515,
516
],
[
516,
517
],
[
515,
518
],
[
473,
519
],
[
519,
520
],
[
471,
521
],
[
521,
522
],
[
471,
523
],
[
523,
524
],
[
125,
525
],
[
525,
526
],
[
525,
527
],
[
527,
528
],
[
528,
529
],
[
528,
530
],
[
527,
533
],
[
533,
534
],
[
534,
535
],
[
535,
536
],
[
535,
537
],
[
533,
538
],
[
538,
539
],
[
538,
540
],
[
533,
541
],
[
541,
542
],
[
542,
543
],
[
533,
544
],
[
545,
545
],
[
545,
546
],
[
546,
547
],
[
547,
548
],
[
548,
549
],
[
548,
550
],
[
546,
551
],
[
551,
552
],
[
551,
553
],
[
546,
554
],
[
554,
555
],
[
555,
556
],
[
546,
557
],
[
558,
558
],
[
558,
559
],
[
559,
560
],
[
560,
561
],
[
561,
562
],
[
561,
563
],
[
560,
564
],
[
559,
565
],
[
565,
566
],
[
527,
567
],
[
567,
568
],
[
525,
569
],
[
569,
570
],
[
525,
571
],
[
571,
572
],
[
125,
573
],
[
573,
574
],
[
573,
575
],
[
575,
576
],
[
576,
577
],
[
576,
578
],
[
575,
579
],
[
579,
580
],
[
580,
581
],
[
581,
582
],
[
581,
583
],
[
579,
584
],
[
584,
585
],
[
584,
586
],
[
579,
587
],
[
587,
588
],
[
588,
589
],
[
579,
590
],
[
591,
591
],
[
591,
592
],
[
592,
593
],
[
593,
594
],
[
592,
595
],
[
595,
596
],
[
575,
597
],
[
597,
598
],
[
573,
599
],
[
599,
600
],
[
125,
601
],
[
601,
602
],
[
601,
603
],
[
603,
604
],
[
604,
605
],
[
604,
606
],
[
603,
607
],
[
607,
608
],
[
608,
609
],
[
609,
610
],
[
609,
611
],
[
607,
612
],
[
612,
613
],
[
612,
614
],
[
607,
615
],
[
615,
616
],
[
616,
617
],
[
607,
618
],
[
619,
619
],
[
619,
620
],
[
620,
621
],
[
621,
622
],
[
620,
623
],
[
623,
624
],
[
603,
625
],
[
625,
626
],
[
601,
627
],
[
627,
628
],
[
125,
629
],
[
629,
630
],
[
629,
631
],
[
631,
632
],
[
632,
633
],
[
632,
634
],
[
631,
635
],
[
635,
636
],
[
636,
637
],
[
637,
638
],
[
637,
639
],
[
635,
640
],
[
640,
641
],
[
640,
642
],
[
635,
643
],
[
643,
644
],
[
644,
645
],
[
635,
646
],
[
647,
647
],
[
647,
648
],
[
648,
649
],
[
648,
650
],
[
650,
651
],
[
650,
652
],
[
647,
653
],
[
653,
654
],
[
654,
655
],
[
653,
656
],
[
631,
657
],
[
657,
658
],
[
629,
659
],
[
659,
660
],
[
629,
661
],
[
661,
662
],
[
0,
663
],
[
663,
664
],
[
663,
665
]
]
| [
"import java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.NoSuchElementException;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tFastScanner sc = new FastScanner();\n\t\tPrintWriter out = new PrintWriter(System.out);\n\t\tlong X1 = sc.nextLong();\n\t\tlong X2 = sc.nextLong();\n\t\tlong X3 = sc.nextLong();\n\t\tlong X4 = sc.nextLong();\n\t\tlong X5 = sc.nextLong();\n\n\t\tif (X1 != 1) {\n\t\t\tout.print(1);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X2 != 2) {\n\t\t\tout.print(2);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X3 != 3) {\n\t\t\tout.print(3);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X4 != 4) {\n\t\t\tout.print(4);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X5 != 5) {\n\t\t\tout.print(5);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t}\n\n\t\tout.flush();\n\n\t}\n\n}\n\nclass FastScanner {\n\tprivate final InputStream in = System.in;\n\tprivate final byte[] buffer = new byte[1024];\n\tprivate int ptr = 0;\n\tprivate int buflen = 0;\n\n\tprivate boolean hasNextByte() {\n\t\tif (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}\n\n\tprivate int readByte() {\n\t\tif (hasNextByte())\n\t\t\treturn buffer[ptr++];\n\t\telse\n\t\t\treturn -1;\n\t}\n\n\tprivate static boolean isPrintableChar(int c) {\n\t\treturn 33 <= c && c <= 126;\n\t}\n\n\tpublic boolean hasNext() {\n\t\twhile (hasNextByte() && !isPrintableChar(buffer[ptr]))\n\t\t\tptr++;\n\t\treturn hasNextByte();\n\t}\n\n\tpublic String next() {\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint b = readByte();\n\t\twhile (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}\n\n\tpublic long nextLong() {\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tlong n = 0;\n\t\tboolean minus = false;\n\t\tint b = readByte();\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\tif (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}\n\n\tpublic int nextInt() {\n\t\tlong nl = nextLong();\n\t\tif (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n\t\t\tthrow new NumberFormatException();\n\t\treturn (int) nl;\n\t}\n\n\tpublic double nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}\n\n\tpublic int[] nextIntsN(int N) {\n\t\tint[] ints = new int[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tints[i] = nextInt();\n\t\t}\n\t\treturn ints;\n\t}\n\n\tpublic long[] nextLongsN(int N) {\n\t\tlong[] longs = new long[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tlongs[i] = nextLong();\n\t\t}\n\t\treturn longs;\n\t}\n\n\tpublic char[] nextCharsN(int N) {\n\t\tchar[] chars = new char[N];\n\t\tString msg = next();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tchars[i] = msg.charAt(i);\n\t\t}\n\t\treturn chars;\n\t}\n\n\tpublic char[][] nextCharsHW(int H, int W) {\n\t\tchar[][] chars = new char[H][W];\n\t\tfor (int i = 0; i < H; i++) {\n\t\t\tString str = next();\n\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\tchars[i][j] = str.charAt(j);\n\t\t\t}\n\t\t}\n\t\treturn chars;\n\t}\n\n\tpublic int[][] nextIntsNM(int N, int M) {\n\t\tint[][] ints = new int[N][M];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tfor (int j = 0; j < M; j++) {\n\t\t\t\tints[i][j] = nextInt();\n\t\t\t}\n\t\t}\n\t\treturn ints;\n\t}\n\n\tpublic List<Integer> nextArrayIntsN(int N) {\n\t\tArrayList<Integer> array = new ArrayList<>(N);\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tarray.add(nextInt());\n\t\t}\n\t\treturn array;\n\t}\n\n\tpublic List<Long> nextArrayLongsN(int N) {\n\t\tArrayList<Long> array = new ArrayList<>(N);\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tarray.add(nextLong());\n\t\t}\n\t\treturn array;\n\t}\n\n\tpublic List<List<Long>> nextArrayLongsNM(int N, int M) {\n\n\t\tList<List<Long>> arrays = new ArrayList<List<Long>>(M);\n\t\tfor (int i = 0; i < M; i++) {\n\t\t\tList<Long> array = nextArrayLongsN(N);\n\t\t\tarrays.add(array);\n\t\t}\n\t\treturn arrays;\n\t}\n\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.NoSuchElementException;",
"NoSuchElementException",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tFastScanner sc = new FastScanner();\n\t\tPrintWriter out = new PrintWriter(System.out);\n\t\tlong X1 = sc.nextLong();\n\t\tlong X2 = sc.nextLong();\n\t\tlong X3 = sc.nextLong();\n\t\tlong X4 = sc.nextLong();\n\t\tlong X5 = sc.nextLong();\n\n\t\tif (X1 != 1) {\n\t\t\tout.print(1);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X2 != 2) {\n\t\t\tout.print(2);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X3 != 3) {\n\t\t\tout.print(3);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X4 != 4) {\n\t\t\tout.print(4);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X5 != 5) {\n\t\t\tout.print(5);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t}\n\n\t\tout.flush();\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tFastScanner sc = new FastScanner();\n\t\tPrintWriter out = new PrintWriter(System.out);\n\t\tlong X1 = sc.nextLong();\n\t\tlong X2 = sc.nextLong();\n\t\tlong X3 = sc.nextLong();\n\t\tlong X4 = sc.nextLong();\n\t\tlong X5 = sc.nextLong();\n\n\t\tif (X1 != 1) {\n\t\t\tout.print(1);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X2 != 2) {\n\t\t\tout.print(2);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X3 != 3) {\n\t\t\tout.print(3);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X4 != 4) {\n\t\t\tout.print(4);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X5 != 5) {\n\t\t\tout.print(5);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t}\n\n\t\tout.flush();\n\n\t}",
"main",
"{\n\n\t\tFastScanner sc = new FastScanner();\n\t\tPrintWriter out = new PrintWriter(System.out);\n\t\tlong X1 = sc.nextLong();\n\t\tlong X2 = sc.nextLong();\n\t\tlong X3 = sc.nextLong();\n\t\tlong X4 = sc.nextLong();\n\t\tlong X5 = sc.nextLong();\n\n\t\tif (X1 != 1) {\n\t\t\tout.print(1);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X2 != 2) {\n\t\t\tout.print(2);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X3 != 3) {\n\t\t\tout.print(3);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X4 != 4) {\n\t\t\tout.print(4);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X5 != 5) {\n\t\t\tout.print(5);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t}\n\n\t\tout.flush();\n\n\t}",
"FastScanner sc = new FastScanner();",
"sc",
"new FastScanner()",
"PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"long X1 = sc.nextLong();",
"X1",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long X2 = sc.nextLong();",
"X2",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long X3 = sc.nextLong();",
"X3",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long X4 = sc.nextLong();",
"X4",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long X5 = sc.nextLong();",
"X5",
"sc.nextLong()",
"sc.nextLong",
"sc",
"if (X1 != 1) {\n\t\t\tout.print(1);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X2 != 2) {\n\t\t\tout.print(2);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X3 != 3) {\n\t\t\tout.print(3);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X4 != 4) {\n\t\t\tout.print(4);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X5 != 5) {\n\t\t\tout.print(5);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t}",
"X1 != 1",
"X1",
"1",
"{\n\t\t\tout.print(1);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t}",
"out.print(1)",
"out.print",
"out",
"1",
"out.flush()",
"out.flush",
"out",
"return;",
"if (X2 != 2) {\n\t\t\tout.print(2);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X3 != 3) {\n\t\t\tout.print(3);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X4 != 4) {\n\t\t\tout.print(4);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X5 != 5) {\n\t\t\tout.print(5);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t}",
"X2 != 2",
"X2",
"2",
"{\n\t\t\tout.print(2);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t}",
"out.print(2)",
"out.print",
"out",
"2",
"out.flush()",
"out.flush",
"out",
"return;",
"if (X3 != 3) {\n\t\t\tout.print(3);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X4 != 4) {\n\t\t\tout.print(4);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X5 != 5) {\n\t\t\tout.print(5);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t}",
"X3 != 3",
"X3",
"3",
"{\n\t\t\tout.print(3);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t}",
"out.print(3)",
"out.print",
"out",
"3",
"out.flush()",
"out.flush",
"out",
"return;",
"if (X4 != 4) {\n\t\t\tout.print(4);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X5 != 5) {\n\t\t\tout.print(5);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t}",
"X4 != 4",
"X4",
"4",
"{\n\t\t\tout.print(4);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t}",
"out.print(4)",
"out.print",
"out",
"4",
"out.flush()",
"out.flush",
"out",
"return;",
"if (X5 != 5) {\n\t\t\tout.print(5);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t}",
"X5 != 5",
"X5",
"5",
"{\n\t\t\tout.print(5);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t}",
"out.print(5)",
"out.print",
"out",
"5",
"out.flush()",
"out.flush",
"out",
"return;",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"class FastScanner {\n\tprivate final InputStream in = System.in;\n\tprivate final byte[] buffer = new byte[1024];\n\tprivate int ptr = 0;\n\tprivate int buflen = 0;\n\n\tprivate boolean hasNextByte() {\n\t\tif (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}\n\n\tprivate int readByte() {\n\t\tif (hasNextByte())\n\t\t\treturn buffer[ptr++];\n\t\telse\n\t\t\treturn -1;\n\t}\n\n\tprivate static boolean isPrintableChar(int c) {\n\t\treturn 33 <= c && c <= 126;\n\t}\n\n\tpublic boolean hasNext() {\n\t\twhile (hasNextByte() && !isPrintableChar(buffer[ptr]))\n\t\t\tptr++;\n\t\treturn hasNextByte();\n\t}\n\n\tpublic String next() {\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint b = readByte();\n\t\twhile (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}\n\n\tpublic long nextLong() {\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tlong n = 0;\n\t\tboolean minus = false;\n\t\tint b = readByte();\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\tif (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}\n\n\tpublic int nextInt() {\n\t\tlong nl = nextLong();\n\t\tif (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n\t\t\tthrow new NumberFormatException();\n\t\treturn (int) nl;\n\t}\n\n\tpublic double nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}\n\n\tpublic int[] nextIntsN(int N) {\n\t\tint[] ints = new int[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tints[i] = nextInt();\n\t\t}\n\t\treturn ints;\n\t}\n\n\tpublic long[] nextLongsN(int N) {\n\t\tlong[] longs = new long[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tlongs[i] = nextLong();\n\t\t}\n\t\treturn longs;\n\t}\n\n\tpublic char[] nextCharsN(int N) {\n\t\tchar[] chars = new char[N];\n\t\tString msg = next();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tchars[i] = msg.charAt(i);\n\t\t}\n\t\treturn chars;\n\t}\n\n\tpublic char[][] nextCharsHW(int H, int W) {\n\t\tchar[][] chars = new char[H][W];\n\t\tfor (int i = 0; i < H; i++) {\n\t\t\tString str = next();\n\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\tchars[i][j] = str.charAt(j);\n\t\t\t}\n\t\t}\n\t\treturn chars;\n\t}\n\n\tpublic int[][] nextIntsNM(int N, int M) {\n\t\tint[][] ints = new int[N][M];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tfor (int j = 0; j < M; j++) {\n\t\t\t\tints[i][j] = nextInt();\n\t\t\t}\n\t\t}\n\t\treturn ints;\n\t}\n\n\tpublic List<Integer> nextArrayIntsN(int N) {\n\t\tArrayList<Integer> array = new ArrayList<>(N);\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tarray.add(nextInt());\n\t\t}\n\t\treturn array;\n\t}\n\n\tpublic List<Long> nextArrayLongsN(int N) {\n\t\tArrayList<Long> array = new ArrayList<>(N);\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tarray.add(nextLong());\n\t\t}\n\t\treturn array;\n\t}\n\n\tpublic List<List<Long>> nextArrayLongsNM(int N, int M) {\n\n\t\tList<List<Long>> arrays = new ArrayList<List<Long>>(M);\n\t\tfor (int i = 0; i < M; i++) {\n\t\t\tList<Long> array = nextArrayLongsN(N);\n\t\t\tarrays.add(array);\n\t\t}\n\t\treturn arrays;\n\t}\n\n}",
"FastScanner",
"private final InputStream in = System.in;",
"in",
"System.in",
"System",
"System.in",
"private final byte[] buffer = new byte[1024];",
"buffer",
"new byte[1024]",
"1024",
"private int ptr = 0;",
"ptr",
"0",
"private int buflen = 0;",
"buflen",
"0",
"private boolean hasNextByte() {\n\t\tif (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"hasNextByte",
"{\n\t\tif (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"if (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"ptr < buflen",
"ptr",
"buflen",
"{\n\t\t\treturn true;\n\t\t}",
"return true;",
"true",
"{\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"ptr = 0",
"ptr",
"0",
"try {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"IOException e",
"{\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t}",
"buflen = in.read(buffer)",
"buflen",
"in.read(buffer)",
"in.read",
"in",
"buffer",
"if (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}",
"buflen <= 0",
"buflen",
"0",
"{\n\t\t\t\treturn false;\n\t\t\t}",
"return false;",
"false",
"return true;",
"true",
"private int readByte() {\n\t\tif (hasNextByte())\n\t\t\treturn buffer[ptr++];\n\t\telse\n\t\t\treturn -1;\n\t}",
"readByte",
"{\n\t\tif (hasNextByte())\n\t\t\treturn buffer[ptr++];\n\t\telse\n\t\t\treturn -1;\n\t}",
"if (hasNextByte())\n\t\t\treturn buffer[ptr++];\n\t\telse\n\t\t\treturn -1;",
"hasNextByte()",
"hasNextByte",
"return buffer[ptr++];",
"buffer[ptr++]",
"buffer",
"ptr++",
"ptr",
"return -1;",
"-1",
"1",
"private static boolean isPrintableChar(int c) {\n\t\treturn 33 <= c && c <= 126;\n\t}",
"isPrintableChar",
"{\n\t\treturn 33 <= c && c <= 126;\n\t}",
"return 33 <= c && c <= 126;",
"33 <= c && c <= 126",
"33 <= c",
"33",
"c",
"c <= 126",
"c",
"126",
"int c",
"c",
"public boolean hasNext() {\n\t\twhile (hasNextByte() && !isPrintableChar(buffer[ptr]))\n\t\t\tptr++;\n\t\treturn hasNextByte();\n\t}",
"hasNext",
"{\n\t\twhile (hasNextByte() && !isPrintableChar(buffer[ptr]))\n\t\t\tptr++;\n\t\treturn hasNextByte();\n\t}",
"while (hasNextByte() && !isPrintableChar(buffer[ptr]))\n\t\t\tptr++;",
"hasNextByte() && !isPrintableChar(buffer[ptr])",
"hasNextByte()",
"hasNextByte",
"!isPrintableChar(buffer[ptr])",
"isPrintableChar(buffer[ptr])",
"isPrintableChar",
"buffer[ptr]",
"buffer",
"ptr",
"ptr++",
"ptr",
"return hasNextByte();",
"hasNextByte()",
"hasNextByte",
"public String next() {\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint b = readByte();\n\t\twhile (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}",
"next",
"{\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint b = readByte();\n\t\twhile (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}",
"if (!hasNext())\n\t\t\tthrow new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int b = readByte();",
"b",
"readByte()",
"readByte",
"while (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"{\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}",
"sb.appendCodePoint(b)",
"sb.appendCodePoint",
"sb",
"b",
"b = readByte()",
"b",
"readByte()",
"readByte",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"public long nextLong() {\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tlong n = 0;\n\t\tboolean minus = false;\n\t\tint b = readByte();\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\tif (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}",
"nextLong",
"{\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tlong n = 0;\n\t\tboolean minus = false;\n\t\tint b = readByte();\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\tif (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}",
"if (!hasNext())\n\t\t\tthrow new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"long n = 0;",
"n",
"0",
"boolean minus = false;",
"minus",
"false",
"int b = readByte();",
"b",
"readByte()",
"readByte",
"if (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}",
"b == '-'",
"b",
"'-'",
"{\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}",
"minus = true",
"minus",
"true",
"b = readByte()",
"b",
"readByte()",
"readByte",
"if (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}",
"b < '0' || '9' < b",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"{\n\t\t\tthrow new NumberFormatException();\n\t\t}",
"throw new NumberFormatException();",
"new NumberFormatException()",
"while (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}",
"true",
"{\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}",
"if ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}",
"'0' <= b && b <= '9'",
"'0' <= b",
"'0'",
"b",
"b <= '9'",
"b",
"'9'",
"{\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t}",
"n *= 10",
"n",
"10",
"n += b - '0'",
"n",
"b - '0'",
"b",
"'0'",
"if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}",
"b == -1 || !isPrintableChar(b)",
"b == -1",
"b",
"-1",
"1",
"!isPrintableChar(b)",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"{\n\t\t\t\treturn minus ? -n : n;\n\t\t\t}",
"return minus ? -n : n;",
"minus ? -n : n",
"minus",
"-n",
"n",
"n",
"{\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}",
"throw new NumberFormatException();",
"new NumberFormatException()",
"b = readByte()",
"b",
"readByte()",
"readByte",
"public int nextInt() {\n\t\tlong nl = nextLong();\n\t\tif (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n\t\t\tthrow new NumberFormatException();\n\t\treturn (int) nl;\n\t}",
"nextInt",
"{\n\t\tlong nl = nextLong();\n\t\tif (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n\t\t\tthrow new NumberFormatException();\n\t\treturn (int) nl;\n\t}",
"long nl = nextLong();",
"nl",
"nextLong()",
"nextLong",
"if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n\t\t\tthrow new NumberFormatException();",
"nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE",
"nl < Integer.MIN_VALUE",
"nl",
"Integer.MIN_VALUE",
"Integer",
"Integer.MIN_VALUE",
"nl > Integer.MAX_VALUE",
"nl",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"throw new NumberFormatException();",
"new NumberFormatException()",
"return (int) nl;",
"(int) nl",
"public double nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}",
"nextDouble",
"{\n\t\treturn Double.parseDouble(next());\n\t}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public int[] nextIntsN(int N) {\n\t\tint[] ints = new int[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tints[i] = nextInt();\n\t\t}\n\t\treturn ints;\n\t}",
"nextIntsN",
"{\n\t\tint[] ints = new int[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tints[i] = nextInt();\n\t\t}\n\t\treturn ints;\n\t}",
"int[] ints = new int[N];",
"ints",
"new int[N]",
"N",
"for (int i = 0; i < N; i++) {\n\t\t\tints[i] = nextInt();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tints[i] = nextInt();\n\t\t}",
"{\n\t\t\tints[i] = nextInt();\n\t\t}",
"ints[i] = nextInt()",
"ints[i]",
"ints",
"i",
"nextInt()",
"nextInt",
"return ints;",
"ints",
"int N",
"N",
"public long[] nextLongsN(int N) {\n\t\tlong[] longs = new long[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tlongs[i] = nextLong();\n\t\t}\n\t\treturn longs;\n\t}",
"nextLongsN",
"{\n\t\tlong[] longs = new long[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tlongs[i] = nextLong();\n\t\t}\n\t\treturn longs;\n\t}",
"long[] longs = new long[N];",
"longs",
"new long[N]",
"N",
"for (int i = 0; i < N; i++) {\n\t\t\tlongs[i] = nextLong();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tlongs[i] = nextLong();\n\t\t}",
"{\n\t\t\tlongs[i] = nextLong();\n\t\t}",
"longs[i] = nextLong()",
"longs[i]",
"longs",
"i",
"nextLong()",
"nextLong",
"return longs;",
"longs",
"int N",
"N",
"public char[] nextCharsN(int N) {\n\t\tchar[] chars = new char[N];\n\t\tString msg = next();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tchars[i] = msg.charAt(i);\n\t\t}\n\t\treturn chars;\n\t}",
"nextCharsN",
"{\n\t\tchar[] chars = new char[N];\n\t\tString msg = next();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tchars[i] = msg.charAt(i);\n\t\t}\n\t\treturn chars;\n\t}",
"char[] chars = new char[N];",
"chars",
"new char[N]",
"N",
"String msg = next();",
"msg",
"next()",
"next",
"for (int i = 0; i < N; i++) {\n\t\t\tchars[i] = msg.charAt(i);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tchars[i] = msg.charAt(i);\n\t\t}",
"{\n\t\t\tchars[i] = msg.charAt(i);\n\t\t}",
"chars[i] = msg.charAt(i)",
"chars[i]",
"chars",
"i",
"msg.charAt(i)",
"msg.charAt",
"msg",
"i",
"return chars;",
"chars",
"int N",
"N",
"public char[][] nextCharsHW(int H, int W) {\n\t\tchar[][] chars = new char[H][W];\n\t\tfor (int i = 0; i < H; i++) {\n\t\t\tString str = next();\n\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\tchars[i][j] = str.charAt(j);\n\t\t\t}\n\t\t}\n\t\treturn chars;\n\t}",
"nextCharsHW",
"{\n\t\tchar[][] chars = new char[H][W];\n\t\tfor (int i = 0; i < H; i++) {\n\t\t\tString str = next();\n\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\tchars[i][j] = str.charAt(j);\n\t\t\t}\n\t\t}\n\t\treturn chars;\n\t}",
"char[][] chars = new char[H][W];",
"chars",
"new char[H][W]",
"H",
"W",
"for (int i = 0; i < H; i++) {\n\t\t\tString str = next();\n\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\tchars[i][j] = str.charAt(j);\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 = next();\n\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\tchars[i][j] = str.charAt(j);\n\t\t\t}\n\t\t}",
"{\n\t\t\tString str = next();\n\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\tchars[i][j] = str.charAt(j);\n\t\t\t}\n\t\t}",
"String str = next();",
"str",
"next()",
"next",
"for (int j = 0; j < W; j++) {\n\t\t\t\tchars[i][j] = str.charAt(j);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < W",
"j",
"W",
"j++",
"j++",
"j",
"{\n\t\t\t\tchars[i][j] = str.charAt(j);\n\t\t\t}",
"{\n\t\t\t\tchars[i][j] = str.charAt(j);\n\t\t\t}",
"chars[i][j] = str.charAt(j)",
"chars[i][j]",
"chars[i]",
"chars",
"i",
"j",
"str.charAt(j)",
"str.charAt",
"str",
"j",
"return chars;",
"chars",
"int H",
"H",
"int W",
"W",
"public int[][] nextIntsNM(int N, int M) {\n\t\tint[][] ints = new int[N][M];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tfor (int j = 0; j < M; j++) {\n\t\t\t\tints[i][j] = nextInt();\n\t\t\t}\n\t\t}\n\t\treturn ints;\n\t}",
"nextIntsNM",
"{\n\t\tint[][] ints = new int[N][M];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tfor (int j = 0; j < M; j++) {\n\t\t\t\tints[i][j] = nextInt();\n\t\t\t}\n\t\t}\n\t\treturn ints;\n\t}",
"int[][] ints = new int[N][M];",
"ints",
"new int[N][M]",
"N",
"M",
"for (int i = 0; i < N; i++) {\n\t\t\tfor (int j = 0; j < M; j++) {\n\t\t\t\tints[i][j] = nextInt();\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\tfor (int j = 0; j < M; j++) {\n\t\t\t\tints[i][j] = nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < M; j++) {\n\t\t\t\tints[i][j] = nextInt();\n\t\t\t}\n\t\t}",
"for (int j = 0; j < M; j++) {\n\t\t\t\tints[i][j] = nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < M",
"j",
"M",
"j++",
"j++",
"j",
"{\n\t\t\t\tints[i][j] = nextInt();\n\t\t\t}",
"{\n\t\t\t\tints[i][j] = nextInt();\n\t\t\t}",
"ints[i][j] = nextInt()",
"ints[i][j]",
"ints[i]",
"ints",
"i",
"j",
"nextInt()",
"nextInt",
"return ints;",
"ints",
"int N",
"N",
"int M",
"M",
"public List<Integer> nextArrayIntsN(int N) {\n\t\tArrayList<Integer> array = new ArrayList<>(N);\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tarray.add(nextInt());\n\t\t}\n\t\treturn array;\n\t}",
"nextArrayIntsN",
"{\n\t\tArrayList<Integer> array = new ArrayList<>(N);\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tarray.add(nextInt());\n\t\t}\n\t\treturn array;\n\t}",
"ArrayList<Integer> array = new ArrayList<>(N);",
"array",
"new ArrayList<>(N)",
"for (int i = 0; i < N; i++) {\n\t\t\tarray.add(nextInt());\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tarray.add(nextInt());\n\t\t}",
"{\n\t\t\tarray.add(nextInt());\n\t\t}",
"array.add(nextInt())",
"array.add",
"array",
"nextInt()",
"nextInt",
"return array;",
"array",
"int N",
"N",
"public List<Long> nextArrayLongsN(int N) {\n\t\tArrayList<Long> array = new ArrayList<>(N);\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tarray.add(nextLong());\n\t\t}\n\t\treturn array;\n\t}",
"nextArrayLongsN",
"{\n\t\tArrayList<Long> array = new ArrayList<>(N);\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tarray.add(nextLong());\n\t\t}\n\t\treturn array;\n\t}",
"ArrayList<Long> array = new ArrayList<>(N);",
"array",
"new ArrayList<>(N)",
"for (int i = 0; i < N; i++) {\n\t\t\tarray.add(nextLong());\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tarray.add(nextLong());\n\t\t}",
"{\n\t\t\tarray.add(nextLong());\n\t\t}",
"array.add(nextLong())",
"array.add",
"array",
"nextLong()",
"nextLong",
"return array;",
"array",
"int N",
"N",
"public List<List<Long>> nextArrayLongsNM(int N, int M) {\n\n\t\tList<List<Long>> arrays = new ArrayList<List<Long>>(M);\n\t\tfor (int i = 0; i < M; i++) {\n\t\t\tList<Long> array = nextArrayLongsN(N);\n\t\t\tarrays.add(array);\n\t\t}\n\t\treturn arrays;\n\t}",
"nextArrayLongsNM",
"{\n\n\t\tList<List<Long>> arrays = new ArrayList<List<Long>>(M);\n\t\tfor (int i = 0; i < M; i++) {\n\t\t\tList<Long> array = nextArrayLongsN(N);\n\t\t\tarrays.add(array);\n\t\t}\n\t\treturn arrays;\n\t}",
"List<List<Long>> arrays = new ArrayList<List<Long>>(M);",
"arrays",
"new ArrayList<List<Long>>(M)",
"for (int i = 0; i < M; i++) {\n\t\t\tList<Long> array = nextArrayLongsN(N);\n\t\t\tarrays.add(array);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < M",
"i",
"M",
"i++",
"i++",
"i",
"{\n\t\t\tList<Long> array = nextArrayLongsN(N);\n\t\t\tarrays.add(array);\n\t\t}",
"{\n\t\t\tList<Long> array = nextArrayLongsN(N);\n\t\t\tarrays.add(array);\n\t\t}",
"List<Long> array = nextArrayLongsN(N);",
"array",
"nextArrayLongsN(N)",
"nextArrayLongsN",
"N",
"arrays.add(array)",
"arrays.add",
"arrays",
"array",
"return arrays;",
"arrays",
"int N",
"N",
"int M",
"M",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tFastScanner sc = new FastScanner();\n\t\tPrintWriter out = new PrintWriter(System.out);\n\t\tlong X1 = sc.nextLong();\n\t\tlong X2 = sc.nextLong();\n\t\tlong X3 = sc.nextLong();\n\t\tlong X4 = sc.nextLong();\n\t\tlong X5 = sc.nextLong();\n\n\t\tif (X1 != 1) {\n\t\t\tout.print(1);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X2 != 2) {\n\t\t\tout.print(2);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X3 != 3) {\n\t\t\tout.print(3);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X4 != 4) {\n\t\t\tout.print(4);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X5 != 5) {\n\t\t\tout.print(5);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t}\n\n\t\tout.flush();\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tFastScanner sc = new FastScanner();\n\t\tPrintWriter out = new PrintWriter(System.out);\n\t\tlong X1 = sc.nextLong();\n\t\tlong X2 = sc.nextLong();\n\t\tlong X3 = sc.nextLong();\n\t\tlong X4 = sc.nextLong();\n\t\tlong X5 = sc.nextLong();\n\n\t\tif (X1 != 1) {\n\t\t\tout.print(1);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X2 != 2) {\n\t\t\tout.print(2);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X3 != 3) {\n\t\t\tout.print(3);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X4 != 4) {\n\t\t\tout.print(4);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t} else if (X5 != 5) {\n\t\t\tout.print(5);\n\t\t\tout.flush();\n\t\t\treturn;\n\t\t}\n\n\t\tout.flush();\n\n\t}\n\n}",
"Main"
]
| import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;
import java.util.NoSuchElementException;
public class Main {
public static void main(String[] args) {
FastScanner sc = new FastScanner();
PrintWriter out = new PrintWriter(System.out);
long X1 = sc.nextLong();
long X2 = sc.nextLong();
long X3 = sc.nextLong();
long X4 = sc.nextLong();
long X5 = sc.nextLong();
if (X1 != 1) {
out.print(1);
out.flush();
return;
} else if (X2 != 2) {
out.print(2);
out.flush();
return;
} else if (X3 != 3) {
out.print(3);
out.flush();
return;
} else if (X4 != 4) {
out.print(4);
out.flush();
return;
} else if (X5 != 5) {
out.print(5);
out.flush();
return;
}
out.flush();
}
}
class FastScanner {
private final InputStream in = System.in;
private final byte[] buffer = new byte[1024];
private int ptr = 0;
private int buflen = 0;
private boolean hasNextByte() {
if (ptr < buflen) {
return true;
} else {
ptr = 0;
try {
buflen = in.read(buffer);
} catch (IOException e) {
e.printStackTrace();
}
if (buflen <= 0) {
return false;
}
}
return true;
}
private int readByte() {
if (hasNextByte())
return buffer[ptr++];
else
return -1;
}
private static boolean isPrintableChar(int c) {
return 33 <= c && c <= 126;
}
public boolean hasNext() {
while (hasNextByte() && !isPrintableChar(buffer[ptr]))
ptr++;
return hasNextByte();
}
public String next() {
if (!hasNext())
throw new NoSuchElementException();
StringBuilder sb = new StringBuilder();
int b = readByte();
while (isPrintableChar(b)) {
sb.appendCodePoint(b);
b = readByte();
}
return sb.toString();
}
public long nextLong() {
if (!hasNext())
throw new NoSuchElementException();
long n = 0;
boolean minus = false;
int b = readByte();
if (b == '-') {
minus = true;
b = readByte();
}
if (b < '0' || '9' < b) {
throw new NumberFormatException();
}
while (true) {
if ('0' <= b && b <= '9') {
n *= 10;
n += b - '0';
} else if (b == -1 || !isPrintableChar(b)) {
return minus ? -n : n;
} else {
throw new NumberFormatException();
}
b = readByte();
}
}
public int nextInt() {
long nl = nextLong();
if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)
throw new NumberFormatException();
return (int) nl;
}
public double nextDouble() {
return Double.parseDouble(next());
}
public int[] nextIntsN(int N) {
int[] ints = new int[N];
for (int i = 0; i < N; i++) {
ints[i] = nextInt();
}
return ints;
}
public long[] nextLongsN(int N) {
long[] longs = new long[N];
for (int i = 0; i < N; i++) {
longs[i] = nextLong();
}
return longs;
}
public char[] nextCharsN(int N) {
char[] chars = new char[N];
String msg = next();
for (int i = 0; i < N; i++) {
chars[i] = msg.charAt(i);
}
return chars;
}
public char[][] nextCharsHW(int H, int W) {
char[][] chars = new char[H][W];
for (int i = 0; i < H; i++) {
String str = next();
for (int j = 0; j < W; j++) {
chars[i][j] = str.charAt(j);
}
}
return chars;
}
public int[][] nextIntsNM(int N, int M) {
int[][] ints = new int[N][M];
for (int i = 0; i < N; i++) {
for (int j = 0; j < M; j++) {
ints[i][j] = nextInt();
}
}
return ints;
}
public List<Integer> nextArrayIntsN(int N) {
ArrayList<Integer> array = new ArrayList<>(N);
for (int i = 0; i < N; i++) {
array.add(nextInt());
}
return array;
}
public List<Long> nextArrayLongsN(int N) {
ArrayList<Long> array = new ArrayList<>(N);
for (int i = 0; i < N; i++) {
array.add(nextLong());
}
return array;
}
public List<List<Long>> nextArrayLongsNM(int N, int M) {
List<List<Long>> arrays = new ArrayList<List<Long>>(M);
for (int i = 0; i < M; i++) {
List<Long> array = nextArrayLongsN(N);
arrays.add(array);
}
return arrays;
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
17,
28,
13,
13,
30,
30,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
40,
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,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
21,
22
],
[
21,
23
],
[
16,
24
],
[
24,
25
],
[
25,
26
],
[
16,
27
],
[
28,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
39,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
43,
55
],
[
55,
56
],
[
6,
57
],
[
57,
58
]
]
| [
"import java.util.Scanner;\n \nclass Main {\n\tpublic static void main(String[] args) {\n \n\t Scanner sc = new Scanner(System.in);\n\t int xxxxx[] = new int[5];\n\t for (int i = 0; i < 5; i++) {\n\t xxxxx[i] = sc.nextInt();\n\t }\n\t \n\t int count = 1;\n\t for (int x : xxxxx) {\n\t if (x == 0) {\n\t System.out.println(count);\n\t }\n\t count++;\n\t }\n\t \n\t }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\tpublic static void main(String[] args) {\n \n\t Scanner sc = new Scanner(System.in);\n\t int xxxxx[] = new int[5];\n\t for (int i = 0; i < 5; i++) {\n\t xxxxx[i] = sc.nextInt();\n\t }\n\t \n\t int count = 1;\n\t for (int x : xxxxx) {\n\t if (x == 0) {\n\t System.out.println(count);\n\t }\n\t count++;\n\t }\n\t \n\t }\n}",
"Main",
"public static void main(String[] args) {\n \n\t Scanner sc = new Scanner(System.in);\n\t int xxxxx[] = new int[5];\n\t for (int i = 0; i < 5; i++) {\n\t xxxxx[i] = sc.nextInt();\n\t }\n\t \n\t int count = 1;\n\t for (int x : xxxxx) {\n\t if (x == 0) {\n\t System.out.println(count);\n\t }\n\t count++;\n\t }\n\t \n\t }",
"main",
"{\n \n\t Scanner sc = new Scanner(System.in);\n\t int xxxxx[] = new int[5];\n\t for (int i = 0; i < 5; i++) {\n\t xxxxx[i] = sc.nextInt();\n\t }\n\t \n\t int count = 1;\n\t for (int x : xxxxx) {\n\t if (x == 0) {\n\t System.out.println(count);\n\t }\n\t count++;\n\t }\n\t \n\t }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int xxxxx[] = new int[5];",
"xxxxx",
"new int[5]",
"5",
"for (int i = 0; i < 5; i++) {\n\t xxxxx[i] = sc.nextInt();\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n\t xxxxx[i] = sc.nextInt();\n\t }",
"{\n\t xxxxx[i] = sc.nextInt();\n\t }",
"xxxxx[i] = sc.nextInt()",
"xxxxx[i]",
"xxxxx",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int count = 1;",
"count",
"1",
"for (int x : xxxxx) {\n\t if (x == 0) {\n\t System.out.println(count);\n\t }\n\t count++;\n\t }",
"int x",
"xxxxx",
"{\n\t if (x == 0) {\n\t System.out.println(count);\n\t }\n\t count++;\n\t }",
"{\n\t if (x == 0) {\n\t System.out.println(count);\n\t }\n\t count++;\n\t }",
"if (x == 0) {\n\t System.out.println(count);\n\t }",
"x == 0",
"x",
"0",
"{\n\t System.out.println(count);\n\t }",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"count++",
"count",
"String[] args",
"args"
]
| import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int xxxxx[] = new int[5];
for (int i = 0; i < 5; i++) {
xxxxx[i] = sc.nextInt();
}
int count = 1;
for (int x : xxxxx) {
if (x == 0) {
System.out.println(count);
}
count++;
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
17,
18,
13,
13,
30,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
71,
5
],
[
71,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
16,
26
],
[
26,
27
],
[
27,
28
],
[
16,
29
],
[
30,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
35,
36
],
[
36,
37
],
[
8,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
38,
48
],
[
48,
49
],
[
49,
50
],
[
38,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
53,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
6,
68
],
[
68,
69
],
[
0,
70
],
[
70,
71
],
[
70,
72
]
]
| [
"import java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint arrys[] = new int[5];\n\t\t// sc.close();\n\n\t\tfor(int i = 0; i<arrys.length; i++){\n\t\t\tarrys[i] = sc.nextInt();\n\t\t}\n\t\tfor(int j = 0; j<arrys.length; j++){\n\t\t\tif(0==arrys[j]){\n\t\t\t\tSystem.out.println(j+1);\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint arrys[] = new int[5];\n\t\t// sc.close();\n\n\t\tfor(int i = 0; i<arrys.length; i++){\n\t\t\tarrys[i] = sc.nextInt();\n\t\t}\n\t\tfor(int j = 0; j<arrys.length; j++){\n\t\t\tif(0==arrys[j]){\n\t\t\t\tSystem.out.println(j+1);\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint arrys[] = new int[5];\n\t\t// sc.close();\n\n\t\tfor(int i = 0; i<arrys.length; i++){\n\t\t\tarrys[i] = sc.nextInt();\n\t\t}\n\t\tfor(int j = 0; j<arrys.length; j++){\n\t\t\tif(0==arrys[j]){\n\t\t\t\tSystem.out.println(j+1);\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint arrys[] = new int[5];\n\t\t// sc.close();\n\n\t\tfor(int i = 0; i<arrys.length; i++){\n\t\t\tarrys[i] = sc.nextInt();\n\t\t}\n\t\tfor(int j = 0; j<arrys.length; j++){\n\t\t\tif(0==arrys[j]){\n\t\t\t\tSystem.out.println(j+1);\n\t\t\t}\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int arrys[] = new int[5];",
"arrys",
"new int[5]",
"5",
"for(int i = 0; i<arrys.length; i++){\n\t\t\tarrys[i] = sc.nextInt();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<arrys.length",
"i",
"arrys.length",
"arrys",
"arrys.length",
"i++",
"i++",
"i",
"{\n\t\t\tarrys[i] = sc.nextInt();\n\t\t}",
"{\n\t\t\tarrys[i] = sc.nextInt();\n\t\t}",
"arrys[i] = sc.nextInt()",
"arrys[i]",
"arrys",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int j = 0; j<arrys.length; j++){\n\t\t\tif(0==arrys[j]){\n\t\t\t\tSystem.out.println(j+1);\n\t\t\t}\n\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j<arrys.length",
"j",
"arrys.length",
"arrys",
"arrys.length",
"j++",
"j++",
"j",
"{\n\t\t\tif(0==arrys[j]){\n\t\t\t\tSystem.out.println(j+1);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(0==arrys[j]){\n\t\t\t\tSystem.out.println(j+1);\n\t\t\t}\n\t\t}",
"if(0==arrys[j]){\n\t\t\t\tSystem.out.println(j+1);\n\t\t\t}",
"0==arrys[j]",
"0",
"arrys[j]",
"arrys",
"j",
"{\n\t\t\t\tSystem.out.println(j+1);\n\t\t\t}",
"System.out.println(j+1)",
"System.out.println",
"System.out",
"System",
"System.out",
"j+1",
"j",
"1",
"String[] args",
"args",
"public class Main{\n\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint arrys[] = new int[5];\n\t\t// sc.close();\n\n\t\tfor(int i = 0; i<arrys.length; i++){\n\t\t\tarrys[i] = sc.nextInt();\n\t\t}\n\t\tfor(int j = 0; j<arrys.length; j++){\n\t\t\tif(0==arrys[j]){\n\t\t\t\tSystem.out.println(j+1);\n\t\t\t}\n\t\t}\n\t}\n}",
"public class Main{\n\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint arrys[] = new int[5];\n\t\t// sc.close();\n\n\t\tfor(int i = 0; i<arrys.length; i++){\n\t\t\tarrys[i] = sc.nextInt();\n\t\t}\n\t\tfor(int j = 0; j<arrys.length; j++){\n\t\t\tif(0==arrys[j]){\n\t\t\t\tSystem.out.println(j+1);\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int arrys[] = new int[5];
// sc.close();
for(int i = 0; i<arrys.length; i++){
arrys[i] = sc.nextInt();
}
for(int j = 0; j<arrys.length; j++){
if(0==arrys[j]){
System.out.println(j+1);
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
56,
5
],
[
56,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
14,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
27,
29
],
[
20,
30
],
[
30,
31
],
[
31,
32
],
[
20,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
40,
41
],
[
40,
42
],
[
36,
43
],
[
35,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
6,
53
],
[
53,
54
],
[
0,
55
],
[
55,
56
],
[
55,
57
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t\n\t\t\n\t\t\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString[] ar = scanner.nextLine().split(\" \");\n\t\t\n\t\t\n\n\t\tfor(int i=0; i<ar.length; i++) {\n\t\t\tif (Integer.parseInt(ar[i]) == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}\t}\n\n\t}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t\n\t\t\n\t\t\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString[] ar = scanner.nextLine().split(\" \");\n\t\t\n\t\t\n\n\t\tfor(int i=0; i<ar.length; i++) {\n\t\t\tif (Integer.parseInt(ar[i]) == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}\t}\n\n\t}",
"Main",
"public static void main(String[] args) {\n\n\t\t\n\t\t\n\t\t\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString[] ar = scanner.nextLine().split(\" \");\n\t\t\n\t\t\n\n\t\tfor(int i=0; i<ar.length; i++) {\n\t\t\tif (Integer.parseInt(ar[i]) == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}\t}",
"main",
"{\n\n\t\t\n\t\t\n\t\t\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString[] ar = scanner.nextLine().split(\" \");\n\t\t\n\t\t\n\n\t\tfor(int i=0; i<ar.length; i++) {\n\t\t\tif (Integer.parseInt(ar[i]) == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"String[] ar = scanner.nextLine().split(\" \");",
"ar",
"scanner.nextLine().split(\" \")",
"scanner.nextLine().split",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"\" \"",
"for(int i=0; i<ar.length; i++) {\n\t\t\tif (Integer.parseInt(ar[i]) == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<ar.length",
"i",
"ar.length",
"ar",
"ar.length",
"i++",
"i++",
"i",
"{\n\t\t\tif (Integer.parseInt(ar[i]) == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (Integer.parseInt(ar[i]) == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}",
"if (Integer.parseInt(ar[i]) == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}",
"Integer.parseInt(ar[i]) == 0",
"Integer.parseInt(ar[i])",
"Integer.parseInt",
"Integer",
"ar[i]",
"ar",
"i",
"0",
"{\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}",
"System.out.println(i+1)",
"System.out.println",
"System.out",
"System",
"System.out",
"i+1",
"i",
"1",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t\n\t\t\n\t\t\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString[] ar = scanner.nextLine().split(\" \");\n\t\t\n\t\t\n\n\t\tfor(int i=0; i<ar.length; i++) {\n\t\t\tif (Integer.parseInt(ar[i]) == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}\t}\n\n\t}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t\n\t\t\n\t\t\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString[] ar = scanner.nextLine().split(\" \");\n\t\t\n\t\t\n\n\t\tfor(int i=0; i<ar.length; i++) {\n\t\t\tif (Integer.parseInt(ar[i]) == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}\t}\n\n\t}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String[] ar = scanner.nextLine().split(" ");
for(int i=0; i<ar.length; i++) {
if (Integer.parseInt(ar[i]) == 0) {
System.out.println(i+1);
}
} }
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
53,
5
],
[
53,
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
],
[
20,
21
],
[
20,
22
],
[
18,
23
],
[
23,
24
],
[
23,
25
],
[
18,
26
],
[
26,
27
],
[
27,
28
],
[
18,
29
],
[
30,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
30,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
6,
50
],
[
50,
51
],
[
0,
52
],
[
52,
53
],
[
52,
54
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int a = 0;\n int g=0;\n for (int i=1;i<=5;i++)\n {\n a=in.nextInt();\n if (a==0)\n {\n g=i;\n }\n \n\n\n }\n System.out.print(g);\n\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int a = 0;\n int g=0;\n for (int i=1;i<=5;i++)\n {\n a=in.nextInt();\n if (a==0)\n {\n g=i;\n }\n \n\n\n }\n System.out.print(g);\n\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int a = 0;\n int g=0;\n for (int i=1;i<=5;i++)\n {\n a=in.nextInt();\n if (a==0)\n {\n g=i;\n }\n \n\n\n }\n System.out.print(g);\n\n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n int a = 0;\n int g=0;\n for (int i=1;i<=5;i++)\n {\n a=in.nextInt();\n if (a==0)\n {\n g=i;\n }\n \n\n\n }\n System.out.print(g);\n\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int a = 0;",
"a",
"0",
"int g=0;",
"g",
"0",
"for (int i=1;i<=5;i++)\n {\n a=in.nextInt();\n if (a==0)\n {\n g=i;\n }\n \n\n\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=5",
"i",
"5",
"i++",
"i++",
"i",
"{\n a=in.nextInt();\n if (a==0)\n {\n g=i;\n }\n \n\n\n }",
"{\n a=in.nextInt();\n if (a==0)\n {\n g=i;\n }\n \n\n\n }",
"a=in.nextInt()",
"a",
"in.nextInt()",
"in.nextInt",
"in",
"if (a==0)\n {\n g=i;\n }",
"a==0",
"a",
"0",
"{\n g=i;\n }",
"g=i",
"g",
"i",
"System.out.print(g)",
"System.out.print",
"System.out",
"System",
"System.out",
"g",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int a = 0;\n int g=0;\n for (int i=1;i<=5;i++)\n {\n a=in.nextInt();\n if (a==0)\n {\n g=i;\n }\n \n\n\n }\n System.out.print(g);\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int a = 0;\n int g=0;\n for (int i=1;i<=5;i++)\n {\n a=in.nextInt();\n if (a==0)\n {\n g=i;\n }\n \n\n\n }\n System.out.print(g);\n\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int a = 0;
int g=0;
for (int i=1;i<=5;i++)
{
a=in.nextInt();
if (a==0)
{
g=i;
}
}
System.out.print(g);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
43,
5
],
[
43,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
12,
17
],
[
17,
18
],
[
17,
19
],
[
12,
20
],
[
20,
21
],
[
21,
22
],
[
12,
23
],
[
24,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
6,
40
],
[
40,
41
],
[
0,
42
],
[
42,
43
],
[
42,
44
]
]
| [
"import java.util.Scanner;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n for (int i = 0; i <=4; i++) {\n if(sc.nextLong()==0){\n System.out.println(i+1);\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 for (int i = 0; i <=4; i++) {\n if(sc.nextLong()==0){\n System.out.println(i+1);\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n for (int i = 0; i <=4; i++) {\n if(sc.nextLong()==0){\n System.out.println(i+1);\n }\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n for (int i = 0; i <=4; i++) {\n if(sc.nextLong()==0){\n System.out.println(i+1);\n }\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"for (int i = 0; i <=4; i++) {\n if(sc.nextLong()==0){\n System.out.println(i+1);\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <=4",
"i",
"4",
"i++",
"i++",
"i",
"{\n if(sc.nextLong()==0){\n System.out.println(i+1);\n }\n }",
"{\n if(sc.nextLong()==0){\n System.out.println(i+1);\n }\n }",
"if(sc.nextLong()==0){\n System.out.println(i+1);\n }",
"sc.nextLong()==0",
"sc.nextLong()",
"sc.nextLong",
"sc",
"0",
"{\n System.out.println(i+1);\n }",
"System.out.println(i+1)",
"System.out.println",
"System.out",
"System",
"System.out",
"i+1",
"i",
"1",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n for (int i = 0; i <=4; i++) {\n if(sc.nextLong()==0){\n System.out.println(i+1);\n }\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n for (int i = 0; i <=4; i++) {\n if(sc.nextLong()==0){\n System.out.println(i+1);\n }\n }\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
for (int i = 0; i <=4; i++) {
if(sc.nextLong()==0){
System.out.println(i+1);
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
17,
29,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
68,
5
],
[
68,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
21,
22
],
[
21,
23
],
[
16,
24
],
[
24,
25
],
[
25,
26
],
[
16,
27
],
[
28,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
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
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
61,
63
],
[
55,
64
],
[
6,
65
],
[
65,
66
],
[
0,
67
],
[
67,
68
],
[
67,
69
]
]
| [
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int [] a = new int[5];\n for (int i=0;i<5;i++){\n a[i] = scan.nextInt();\n }\n\n for (int j=0;j<5;j++){\n if (a[j] == 0){\n System.out.println(j+1);\n return;\n }\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 [] a = new int[5];\n for (int i=0;i<5;i++){\n a[i] = scan.nextInt();\n }\n\n for (int j=0;j<5;j++){\n if (a[j] == 0){\n System.out.println(j+1);\n return;\n }\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int [] a = new int[5];\n for (int i=0;i<5;i++){\n a[i] = scan.nextInt();\n }\n\n for (int j=0;j<5;j++){\n if (a[j] == 0){\n System.out.println(j+1);\n return;\n }\n }\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int [] a = new int[5];\n for (int i=0;i<5;i++){\n a[i] = scan.nextInt();\n }\n\n for (int j=0;j<5;j++){\n if (a[j] == 0){\n System.out.println(j+1);\n return;\n }\n }\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int [] a = new int[5];",
"a",
"new int[5]",
"5",
"for (int i=0;i<5;i++){\n a[i] = scan.nextInt();\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<5",
"i",
"5",
"i++",
"i++",
"i",
"{\n a[i] = scan.nextInt();\n }",
"{\n a[i] = scan.nextInt();\n }",
"a[i] = scan.nextInt()",
"a[i]",
"a",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int j=0;j<5;j++){\n if (a[j] == 0){\n System.out.println(j+1);\n return;\n }\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<5",
"j",
"5",
"j++",
"j++",
"j",
"{\n if (a[j] == 0){\n System.out.println(j+1);\n return;\n }\n }",
"{\n if (a[j] == 0){\n System.out.println(j+1);\n return;\n }\n }",
"if (a[j] == 0){\n System.out.println(j+1);\n return;\n }",
"a[j] == 0",
"a[j]",
"a",
"j",
"0",
"{\n System.out.println(j+1);\n return;\n }",
"System.out.println(j+1)",
"System.out.println",
"System.out",
"System",
"System.out",
"j+1",
"j",
"1",
"return;",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int [] a = new int[5];\n for (int i=0;i<5;i++){\n a[i] = scan.nextInt();\n }\n\n for (int j=0;j<5;j++){\n if (a[j] == 0){\n System.out.println(j+1);\n return;\n }\n }\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int [] a = new int[5];\n for (int i=0;i<5;i++){\n a[i] = scan.nextInt();\n }\n\n for (int j=0;j<5;j++){\n if (a[j] == 0){\n System.out.println(j+1);\n return;\n }\n }\n }\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int [] a = new int[5];
for (int i=0;i<5;i++){
a[i] = scan.nextInt();
}
for (int j=0;j<5;j++){
if (a[j] == 0){
System.out.println(j+1);
return;
}
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
52,
8
],
[
52,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
18,
23
],
[
23,
24
],
[
23,
25
],
[
18,
26
],
[
26,
27
],
[
27,
28
],
[
18,
29
],
[
30,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
30,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
40,
42
],
[
11,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
9,
49
],
[
49,
50
],
[
0,
51
],
[
51,
52
],
[
51,
53
]
]
| [
"import java.util.*;\nimport java.io.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n //int n = sc.nextInt();\n int flag = 0;\n for(int i=1;i<=5;i++){\n int x = sc.nextInt();\n if(x == 0)flag=i;\n }\n System.out.println(flag);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n //int n = sc.nextInt();\n int flag = 0;\n for(int i=1;i<=5;i++){\n int x = sc.nextInt();\n if(x == 0)flag=i;\n }\n System.out.println(flag);\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n //int n = sc.nextInt();\n int flag = 0;\n for(int i=1;i<=5;i++){\n int x = sc.nextInt();\n if(x == 0)flag=i;\n }\n System.out.println(flag);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n //int n = sc.nextInt();\n int flag = 0;\n for(int i=1;i<=5;i++){\n int x = sc.nextInt();\n if(x == 0)flag=i;\n }\n System.out.println(flag);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int flag = 0;",
"flag",
"0",
"for(int i=1;i<=5;i++){\n int x = sc.nextInt();\n if(x == 0)flag=i;\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=5",
"i",
"5",
"i++",
"i++",
"i",
"{\n int x = sc.nextInt();\n if(x == 0)flag=i;\n }",
"{\n int x = sc.nextInt();\n if(x == 0)flag=i;\n }",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(x == 0)flag=i;",
"x == 0",
"x",
"0",
"flag=i",
"flag",
"i",
"System.out.println(flag)",
"System.out.println",
"System.out",
"System",
"System.out",
"flag",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n //int n = sc.nextInt();\n int flag = 0;\n for(int i=1;i<=5;i++){\n int x = sc.nextInt();\n if(x == 0)flag=i;\n }\n System.out.println(flag);\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n //int n = sc.nextInt();\n int flag = 0;\n for(int i=1;i<=5;i++){\n int x = sc.nextInt();\n if(x == 0)flag=i;\n }\n System.out.println(flag);\n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
//int n = sc.nextInt();
int flag = 0;
for(int i=1;i<=5;i++){
int x = sc.nextInt();
if(x == 0)flag=i;
}
System.out.println(flag);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
2,
18,
13,
13,
17,
30,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
62,
5
],
[
62,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
8,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
26,
28
],
[
19,
29
],
[
29,
30
],
[
30,
31
],
[
19,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
6,
59
],
[
59,
60
],
[
0,
61
],
[
61,
62
],
[
61,
63
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int[] xs = new int[5];\n int ans = 0;\n for(int i=0; i<xs.length; i++) {\n xs[i] = scanner.nextInt();\n if(xs[i] == 0) {\n ans = i+1;\n }\n }\n System.out.println(ans);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int[] xs = new int[5];\n int ans = 0;\n for(int i=0; i<xs.length; i++) {\n xs[i] = scanner.nextInt();\n if(xs[i] == 0) {\n ans = i+1;\n }\n }\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int[] xs = new int[5];\n int ans = 0;\n for(int i=0; i<xs.length; i++) {\n xs[i] = scanner.nextInt();\n if(xs[i] == 0) {\n ans = i+1;\n }\n }\n System.out.println(ans);\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n int[] xs = new int[5];\n int ans = 0;\n for(int i=0; i<xs.length; i++) {\n xs[i] = scanner.nextInt();\n if(xs[i] == 0) {\n ans = i+1;\n }\n }\n System.out.println(ans);\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int[] xs = new int[5];",
"xs",
"new int[5]",
"5",
"int ans = 0;",
"ans",
"0",
"for(int i=0; i<xs.length; i++) {\n xs[i] = scanner.nextInt();\n if(xs[i] == 0) {\n ans = i+1;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<xs.length",
"i",
"xs.length",
"xs",
"xs.length",
"i++",
"i++",
"i",
"{\n xs[i] = scanner.nextInt();\n if(xs[i] == 0) {\n ans = i+1;\n }\n }",
"{\n xs[i] = scanner.nextInt();\n if(xs[i] == 0) {\n ans = i+1;\n }\n }",
"xs[i] = scanner.nextInt()",
"xs[i]",
"xs",
"i",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"if(xs[i] == 0) {\n ans = i+1;\n }",
"xs[i] == 0",
"xs[i]",
"xs",
"i",
"0",
"{\n ans = i+1;\n }",
"ans = i+1",
"ans",
"i+1",
"i",
"1",
"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) {\n Scanner scanner = new Scanner(System.in);\n int[] xs = new int[5];\n int ans = 0;\n for(int i=0; i<xs.length; i++) {\n xs[i] = scanner.nextInt();\n if(xs[i] == 0) {\n ans = i+1;\n }\n }\n System.out.println(ans);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int[] xs = new int[5];\n int ans = 0;\n for(int i=0; i<xs.length; i++) {\n xs[i] = scanner.nextInt();\n if(xs[i] == 0) {\n ans = i+1;\n }\n }\n System.out.println(ans);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int[] xs = new int[5];
int ans = 0;
for(int i=0; i<xs.length; i++) {
xs[i] = scanner.nextInt();
if(xs[i] == 0) {
ans = i+1;
}
}
System.out.println(ans);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
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
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
8,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
8,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
8,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
8,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
6,
87
],
[
87,
88
],
[
0,
89
],
[
89,
90
],
[
89,
91
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n int d = sc.nextInt();\n int e = sc.nextInt();\n if (a == 0) \n System.out.println(\"1\");\n if (b == 0) \n System.out.println(\"2\");\n if (c == 0) \n System.out.println(\"3\");\n if (d == 0) \n System.out.println(\"4\");\n if (e == 0) \n System.out.println(\"5\");\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n int d = sc.nextInt();\n int e = sc.nextInt();\n if (a == 0) \n System.out.println(\"1\");\n if (b == 0) \n System.out.println(\"2\");\n if (c == 0) \n System.out.println(\"3\");\n if (d == 0) \n System.out.println(\"4\");\n if (e == 0) \n System.out.println(\"5\");\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n int d = sc.nextInt();\n int e = sc.nextInt();\n if (a == 0) \n System.out.println(\"1\");\n if (b == 0) \n System.out.println(\"2\");\n if (c == 0) \n System.out.println(\"3\");\n if (d == 0) \n System.out.println(\"4\");\n if (e == 0) \n System.out.println(\"5\");\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n int d = sc.nextInt();\n int e = sc.nextInt();\n if (a == 0) \n System.out.println(\"1\");\n if (b == 0) \n System.out.println(\"2\");\n if (c == 0) \n System.out.println(\"3\");\n if (d == 0) \n System.out.println(\"4\");\n if (e == 0) \n System.out.println(\"5\");\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int c = sc.nextInt();",
"c",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int d = sc.nextInt();",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int e = sc.nextInt();",
"e",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (a == 0) \n System.out.println(\"1\");",
"a == 0",
"a",
"0",
"System.out.println(\"1\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"1\"",
"if (b == 0) \n System.out.println(\"2\");",
"b == 0",
"b",
"0",
"System.out.println(\"2\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"2\"",
"if (c == 0) \n System.out.println(\"3\");",
"c == 0",
"c",
"0",
"System.out.println(\"3\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"3\"",
"if (d == 0) \n System.out.println(\"4\");",
"d == 0",
"d",
"0",
"System.out.println(\"4\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"4\"",
"if (e == 0) \n System.out.println(\"5\");",
"e == 0",
"e",
"0",
"System.out.println(\"5\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"5\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n int d = sc.nextInt();\n int e = sc.nextInt();\n if (a == 0) \n System.out.println(\"1\");\n if (b == 0) \n System.out.println(\"2\");\n if (c == 0) \n System.out.println(\"3\");\n if (d == 0) \n System.out.println(\"4\");\n if (e == 0) \n System.out.println(\"5\");\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n int d = sc.nextInt();\n int e = sc.nextInt();\n if (a == 0) \n System.out.println(\"1\");\n if (b == 0) \n System.out.println(\"2\");\n if (c == 0) \n System.out.println(\"3\");\n if (d == 0) \n System.out.println(\"4\");\n if (e == 0) \n System.out.println(\"5\");\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int d = sc.nextInt();
int e = sc.nextInt();
if (a == 0)
System.out.println("1");
if (b == 0)
System.out.println("2");
if (c == 0)
System.out.println("3");
if (d == 0)
System.out.println("4");
if (e == 0)
System.out.println("5");
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
2,
18,
13,
13,
17,
4,
18,
18,
13,
13,
2,
13,
17,
12,
13,
30,
4,
18,
20,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
59,
5
],
[
59,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
21,
22
],
[
21,
23
],
[
16,
24
],
[
24,
25
],
[
25,
26
],
[
16,
27
],
[
28,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
59,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
50,
56
],
[
56,
57
],
[
0,
58
],
[
58,
59
],
[
58,
60
]
]
| [
"import java.util.*;\npublic class Main {\n public void solve() {\n Scanner scan = new Scanner(System.in);\n int[]X = new int[5];\n for(int i=0;i<=4;i++){X[i]=scan.nextInt();\n if(X[i]==0)System.out.println(i+1);}\n\n }\n public static void main(String[] args) {\n new Main().solve();\n }\n }",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public void solve() {\n Scanner scan = new Scanner(System.in);\n int[]X = new int[5];\n for(int i=0;i<=4;i++){X[i]=scan.nextInt();\n if(X[i]==0)System.out.println(i+1);}\n\n }\n public static void main(String[] args) {\n new Main().solve();\n }\n }",
"Main",
"public void solve() {\n Scanner scan = new Scanner(System.in);\n int[]X = new int[5];\n for(int i=0;i<=4;i++){X[i]=scan.nextInt();\n if(X[i]==0)System.out.println(i+1);}\n\n }",
"solve",
"{\n Scanner scan = new Scanner(System.in);\n int[]X = new int[5];\n for(int i=0;i<=4;i++){X[i]=scan.nextInt();\n if(X[i]==0)System.out.println(i+1);}\n\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int[]X = new int[5];",
"X",
"new int[5]",
"5",
"for(int i=0;i<=4;i++){X[i]=scan.nextInt();\n if(X[i]==0)System.out.println(i+1);}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<=4",
"i",
"4",
"i++",
"i++",
"i",
"{X[i]=scan.nextInt();\n if(X[i]==0)System.out.println(i+1);}",
"{X[i]=scan.nextInt();\n if(X[i]==0)System.out.println(i+1);}",
"X[i]=scan.nextInt()",
"X[i]",
"X",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if(X[i]==0)System.out.println(i+1);",
"X[i]==0",
"X[i]",
"X",
"i",
"0",
"System.out.println(i+1)",
"System.out.println",
"System.out",
"System",
"System.out",
"i+1",
"i",
"1",
"public static void main(String[] args) {\n new Main().solve();\n }",
"main",
"{\n new Main().solve();\n }",
"new Main().solve()",
"new Main().solve",
"new Main()",
"String[] args",
"args",
"public class Main {\n public void solve() {\n Scanner scan = new Scanner(System.in);\n int[]X = new int[5];\n for(int i=0;i<=4;i++){X[i]=scan.nextInt();\n if(X[i]==0)System.out.println(i+1);}\n\n }\n public static void main(String[] args) {\n new Main().solve();\n }\n }",
"public class Main {\n public void solve() {\n Scanner scan = new Scanner(System.in);\n int[]X = new int[5];\n for(int i=0;i<=4;i++){X[i]=scan.nextInt();\n if(X[i]==0)System.out.println(i+1);}\n\n }\n public static void main(String[] args) {\n new Main().solve();\n }\n }",
"Main"
]
| import java.util.*;
public class Main {
public void solve() {
Scanner scan = new Scanner(System.in);
int[]X = new int[5];
for(int i=0;i<=4;i++){X[i]=scan.nextInt();
if(X[i]==0)System.out.println(i+1);}
}
public static void main(String[] args) {
new Main().solve();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
42,
2,
40,
13,
17,
30,
14,
2,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
13,
3,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
41,
8
],
[
41,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
18,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
25,
29
],
[
24,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
30,
37
],
[
9,
38
],
[
38,
39
],
[
0,
40
],
[
40,
41
],
[
40,
42
]
]
| [
"import java.io.*;\nimport java.util.*;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner inputs = new Scanner(System.in);\n\t\tint loo = 0;\n\t\twhile(loo++<6) {\n\t\t\tif(inputs.nextInt()==0) {\n\t\t\t\tSystem.out.println(loo);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner inputs = new Scanner(System.in);\n\t\tint loo = 0;\n\t\twhile(loo++<6) {\n\t\t\tif(inputs.nextInt()==0) {\n\t\t\t\tSystem.out.println(loo);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner inputs = new Scanner(System.in);\n\t\tint loo = 0;\n\t\twhile(loo++<6) {\n\t\t\tif(inputs.nextInt()==0) {\n\t\t\t\tSystem.out.println(loo);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tScanner inputs = new Scanner(System.in);\n\t\tint loo = 0;\n\t\twhile(loo++<6) {\n\t\t\tif(inputs.nextInt()==0) {\n\t\t\t\tSystem.out.println(loo);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"Scanner inputs = new Scanner(System.in);",
"inputs",
"new Scanner(System.in)",
"int loo = 0;",
"loo",
"0",
"while(loo++<6) {\n\t\t\tif(inputs.nextInt()==0) {\n\t\t\t\tSystem.out.println(loo);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"loo++<6",
"loo++",
"loo",
"6",
"{\n\t\t\tif(inputs.nextInt()==0) {\n\t\t\t\tSystem.out.println(loo);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"if(inputs.nextInt()==0) {\n\t\t\t\tSystem.out.println(loo);\n\t\t\t\tbreak;\n\t\t\t}",
"inputs.nextInt()==0",
"inputs.nextInt()",
"inputs.nextInt",
"inputs",
"0",
"{\n\t\t\t\tSystem.out.println(loo);\n\t\t\t\tbreak;\n\t\t\t}",
"System.out.println(loo)",
"System.out.println",
"System.out",
"System",
"System.out",
"loo",
"break;",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner inputs = new Scanner(System.in);\n\t\tint loo = 0;\n\t\twhile(loo++<6) {\n\t\t\tif(inputs.nextInt()==0) {\n\t\t\t\tSystem.out.println(loo);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner inputs = new Scanner(System.in);\n\t\tint loo = 0;\n\t\twhile(loo++<6) {\n\t\t\tif(inputs.nextInt()==0) {\n\t\t\t\tSystem.out.println(loo);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner inputs = new Scanner(System.in);
int loo = 0;
while(loo++<6) {
if(inputs.nextInt()==0) {
System.out.println(loo);
break;
}
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
20,
17,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
14,
2,
4,
18,
13,
17,
30,
4,
18,
13,
2,
13,
17,
29,
4,
18,
13,
40,
17,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
17,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
154,
23
],
[
154,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
26,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
26,
37
],
[
37,
38
],
[
37,
39
],
[
26,
40
],
[
40,
41
],
[
40,
42
],
[
26,
43
],
[
43,
44
],
[
43,
45
],
[
26,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
46,
50
],
[
26,
51
],
[
51,
52
],
[
52,
53
],
[
24,
54
],
[
54,
55
],
[
154,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
58,
60
],
[
56,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
65,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
78,
82
],
[
77,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
87,
88
],
[
87,
89
],
[
83,
90
],
[
64,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
94,
95
],
[
62,
96
],
[
96,
97
],
[
62,
98
],
[
98,
99
],
[
154,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
100,
104
],
[
104,
105
],
[
100,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
112,
113
],
[
112,
114
],
[
106,
115
],
[
115,
116
],
[
100,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
120,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
130,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
119,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
100,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
148,
151
],
[
151,
152
],
[
0,
153
],
[
153,
154
],
[
153,
155
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.io.OutputStream;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tInputReader in = new InputReader(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tSolution sol = new Solution();\n\t\tsol.solve(in, out);\n\t\tout.close();\n\t}\n\n\tprivate static class Solution {\n\t\tint[] a = new int[5];\n\t\tprivate void solve(InputReader in, PrintWriter out) {\n\t\t\tfor (int i = 0; i < 5; i++) if (in.ni() == 0) {\n\t\t\t\tout.println(i+1);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tout.println(-1);\n\t\t}\n\t}\n\n\tprivate static class InputReader {\n\t\tprivate BufferedReader reader;\n\t\tprivate StringTokenizer tokenizer;\n\n\t\tprivate InputReader(InputStream stream) {\n\t\t\treader = new BufferedReader(new InputStreamReader(stream), 32768);\n\t\t\ttokenizer = null;\n\t\t}\n\n\t\tprivate String n() {\n\t\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tokenizer.nextToken();\n\t\t}\n\n\t\tprivate int ni() {\n\t\t\treturn Integer.parseInt(n());\n\t\t}\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tInputReader in = new InputReader(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tSolution sol = new Solution();\n\t\tsol.solve(in, out);\n\t\tout.close();\n\t}\n\n\tprivate static class Solution {\n\t\tint[] a = new int[5];\n\t\tprivate void solve(InputReader in, PrintWriter out) {\n\t\t\tfor (int i = 0; i < 5; i++) if (in.ni() == 0) {\n\t\t\t\tout.println(i+1);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tout.println(-1);\n\t\t}\n\t}\n\n\tprivate static class InputReader {\n\t\tprivate BufferedReader reader;\n\t\tprivate StringTokenizer tokenizer;\n\n\t\tprivate InputReader(InputStream stream) {\n\t\t\treader = new BufferedReader(new InputStreamReader(stream), 32768);\n\t\t\ttokenizer = null;\n\t\t}\n\n\t\tprivate String n() {\n\t\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tokenizer.nextToken();\n\t\t}\n\n\t\tprivate int ni() {\n\t\t\treturn Integer.parseInt(n());\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tInputReader in = new InputReader(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tSolution sol = new Solution();\n\t\tsol.solve(in, out);\n\t\tout.close();\n\t}",
"main",
"{\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tInputReader in = new InputReader(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tSolution sol = new Solution();\n\t\tsol.solve(in, out);\n\t\tout.close();\n\t}",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"InputReader in = new InputReader(inputStream);",
"in",
"new InputReader(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"Solution sol = new Solution();",
"sol",
"new Solution()",
"sol.solve(in, out)",
"sol.solve",
"sol",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"private static class Solution {\n\t\tint[] a = new int[5];\n\t\tprivate void solve(InputReader in, PrintWriter out) {\n\t\t\tfor (int i = 0; i < 5; i++) if (in.ni() == 0) {\n\t\t\t\tout.println(i+1);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tout.println(-1);\n\t\t}\n\t}",
"Solution",
"int[] a = new int[5];",
"a",
"new int[5]",
"5",
"private void solve(InputReader in, PrintWriter out) {\n\t\t\tfor (int i = 0; i < 5; i++) if (in.ni() == 0) {\n\t\t\t\tout.println(i+1);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tout.println(-1);\n\t\t}",
"solve",
"{\n\t\t\tfor (int i = 0; i < 5; i++) if (in.ni() == 0) {\n\t\t\t\tout.println(i+1);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tout.println(-1);\n\t\t}",
"for (int i = 0; i < 5; i++) if (in.ni() == 0) {\n\t\t\t\tout.println(i+1);\n\t\t\t\treturn;\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"if (in.ni() == 0) {\n\t\t\t\tout.println(i+1);\n\t\t\t\treturn;\n\t\t\t}",
"if (in.ni() == 0) {\n\t\t\t\tout.println(i+1);\n\t\t\t\treturn;\n\t\t\t}",
"in.ni() == 0",
"in.ni()",
"in.ni",
"in",
"0",
"{\n\t\t\t\tout.println(i+1);\n\t\t\t\treturn;\n\t\t\t}",
"out.println(i+1)",
"out.println",
"out",
"i+1",
"i",
"1",
"return;",
"out.println(-1)",
"out.println",
"out",
"-1",
"1",
"InputReader in",
"in",
"PrintWriter out",
"out",
"private static class InputReader {\n\t\tprivate BufferedReader reader;\n\t\tprivate StringTokenizer tokenizer;\n\n\t\tprivate InputReader(InputStream stream) {\n\t\t\treader = new BufferedReader(new InputStreamReader(stream), 32768);\n\t\t\ttokenizer = null;\n\t\t}\n\n\t\tprivate String n() {\n\t\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tokenizer.nextToken();\n\t\t}\n\n\t\tprivate int ni() {\n\t\t\treturn Integer.parseInt(n());\n\t\t}\n\t}",
"InputReader",
"private BufferedReader reader;",
"reader",
"private StringTokenizer tokenizer;",
"tokenizer",
"private InputReader(InputStream stream) {\n\t\t\treader = new BufferedReader(new InputStreamReader(stream), 32768);\n\t\t\ttokenizer = null;\n\t\t}",
"InputReader",
"{\n\t\t\treader = new BufferedReader(new InputStreamReader(stream), 32768);\n\t\t\ttokenizer = null;\n\t\t}",
"reader = new BufferedReader(new InputStreamReader(stream), 32768)",
"reader",
"new BufferedReader(new InputStreamReader(stream), 32768)",
"tokenizer = null",
"tokenizer",
"null",
"InputStream stream",
"stream",
"private String n() {\n\t\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tokenizer.nextToken();\n\t\t}",
"n",
"{\n\t\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tokenizer.nextToken();\n\t\t}",
"while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}",
"try {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}",
"catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}",
"IOException e",
"{\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t}",
"tokenizer = new StringTokenizer(reader.readLine())",
"tokenizer",
"new StringTokenizer(reader.readLine())",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"private int ni() {\n\t\t\treturn Integer.parseInt(n());\n\t\t}",
"ni",
"{\n\t\t\treturn Integer.parseInt(n());\n\t\t}",
"return Integer.parseInt(n());",
"Integer.parseInt(n())",
"Integer.parseInt",
"Integer",
"n()",
"n",
"public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tInputReader in = new InputReader(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tSolution sol = new Solution();\n\t\tsol.solve(in, out);\n\t\tout.close();\n\t}\n\n\tprivate static class Solution {\n\t\tint[] a = new int[5];\n\t\tprivate void solve(InputReader in, PrintWriter out) {\n\t\t\tfor (int i = 0; i < 5; i++) if (in.ni() == 0) {\n\t\t\t\tout.println(i+1);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tout.println(-1);\n\t\t}\n\t}\n\n\tprivate static class InputReader {\n\t\tprivate BufferedReader reader;\n\t\tprivate StringTokenizer tokenizer;\n\n\t\tprivate InputReader(InputStream stream) {\n\t\t\treader = new BufferedReader(new InputStreamReader(stream), 32768);\n\t\t\ttokenizer = null;\n\t\t}\n\n\t\tprivate String n() {\n\t\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tokenizer.nextToken();\n\t\t}\n\n\t\tprivate int ni() {\n\t\t\treturn Integer.parseInt(n());\n\t\t}\n\t}\n\n}",
"public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tInputReader in = new InputReader(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tSolution sol = new Solution();\n\t\tsol.solve(in, out);\n\t\tout.close();\n\t}\n\n\tprivate static class Solution {\n\t\tint[] a = new int[5];\n\t\tprivate void solve(InputReader in, PrintWriter out) {\n\t\t\tfor (int i = 0; i < 5; i++) if (in.ni() == 0) {\n\t\t\t\tout.println(i+1);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tout.println(-1);\n\t\t}\n\t}\n\n\tprivate static class InputReader {\n\t\tprivate BufferedReader reader;\n\t\tprivate StringTokenizer tokenizer;\n\n\t\tprivate InputReader(InputStream stream) {\n\t\t\treader = new BufferedReader(new InputStreamReader(stream), 32768);\n\t\t\ttokenizer = null;\n\t\t}\n\n\t\tprivate String n() {\n\t\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tokenizer.nextToken();\n\t\t}\n\n\t\tprivate int ni() {\n\t\t\treturn Integer.parseInt(n());\n\t\t}\n\t}\n\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
Solution sol = new Solution();
sol.solve(in, out);
out.close();
}
private static class Solution {
int[] a = new int[5];
private void solve(InputReader in, PrintWriter out) {
for (int i = 0; i < 5; i++) if (in.ni() == 0) {
out.println(i+1);
return;
}
out.println(-1);
}
}
private static class InputReader {
private BufferedReader reader;
private StringTokenizer tokenizer;
private InputReader(InputStream stream) {
reader = new BufferedReader(new InputStreamReader(stream), 32768);
tokenizer = null;
}
private String n() {
while (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(reader.readLine());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken();
}
private int ni() {
return Integer.parseInt(n());
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
0,
13,
17,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
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
],
[
65,
11
],
[
65,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
22
],
[
22,
23
],
[
22,
24
],
[
14,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
26,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
47,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
12,
62
],
[
62,
63
],
[
0,
64
],
[
64,
65
],
[
64,
66
]
]
| [
"\nimport java.util.*;\nimport java.io.*;\n\nimport static java.lang.Character.isUpperCase;\n\npublic class Main {\n\n public static void main(String[] args) {\n\n Scanner in = new Scanner(System.in);\n\n String[] S = new String[100];\n // [\"\", \"\",\"\" ,\"\" ,\"\", ... ]\n // [0, 0, 0, 0, 0, ... ]\n // \"\" - String, '' - Char\n\n int[] iVal = new int[5]; // [0, 0, 0, 0, 0]\n // iVal = [0,1,2,3,4]\n\n // iVal = [3, 5, 7, 9, 11]\n\n for(int i = 0; i < 5; i+=1) {\n\n iVal[i] = in.nextInt();\n if(iVal[i]==0)\n {\n System.out.println(i+1);\n }\n\n\n }\n\n }\n\n\n\n\n\n\n\n\n\n }\n\n\n",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import static java.lang.Character.isUpperCase;",
"import static java.lang.Character.isUpperCase;",
"import static java.lang.Character.isUpperCase;",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner in = new Scanner(System.in);\n\n String[] S = new String[100];\n // [\"\", \"\",\"\" ,\"\" ,\"\", ... ]\n // [0, 0, 0, 0, 0, ... ]\n // \"\" - String, '' - Char\n\n int[] iVal = new int[5]; // [0, 0, 0, 0, 0]\n // iVal = [0,1,2,3,4]\n\n // iVal = [3, 5, 7, 9, 11]\n\n for(int i = 0; i < 5; i+=1) {\n\n iVal[i] = in.nextInt();\n if(iVal[i]==0)\n {\n System.out.println(i+1);\n }\n\n\n }\n\n }\n\n\n\n\n\n\n\n\n\n }",
"Main",
"public static void main(String[] args) {\n\n Scanner in = new Scanner(System.in);\n\n String[] S = new String[100];\n // [\"\", \"\",\"\" ,\"\" ,\"\", ... ]\n // [0, 0, 0, 0, 0, ... ]\n // \"\" - String, '' - Char\n\n int[] iVal = new int[5]; // [0, 0, 0, 0, 0]\n // iVal = [0,1,2,3,4]\n\n // iVal = [3, 5, 7, 9, 11]\n\n for(int i = 0; i < 5; i+=1) {\n\n iVal[i] = in.nextInt();\n if(iVal[i]==0)\n {\n System.out.println(i+1);\n }\n\n\n }\n\n }",
"main",
"{\n\n Scanner in = new Scanner(System.in);\n\n String[] S = new String[100];\n // [\"\", \"\",\"\" ,\"\" ,\"\", ... ]\n // [0, 0, 0, 0, 0, ... ]\n // \"\" - String, '' - Char\n\n int[] iVal = new int[5]; // [0, 0, 0, 0, 0]\n // iVal = [0,1,2,3,4]\n\n // iVal = [3, 5, 7, 9, 11]\n\n for(int i = 0; i < 5; i+=1) {\n\n iVal[i] = in.nextInt();\n if(iVal[i]==0)\n {\n System.out.println(i+1);\n }\n\n\n }\n\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"String[] S = new String[100];",
"S",
"new String[100]",
"100",
"int[] iVal = new int[5];",
"iVal",
"new int[5]",
"5",
"for(int i = 0; i < 5; i+=1) {\n\n iVal[i] = in.nextInt();\n if(iVal[i]==0)\n {\n System.out.println(i+1);\n }\n\n\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i+=1",
"i+=1",
"i",
"1",
"{\n\n iVal[i] = in.nextInt();\n if(iVal[i]==0)\n {\n System.out.println(i+1);\n }\n\n\n }",
"{\n\n iVal[i] = in.nextInt();\n if(iVal[i]==0)\n {\n System.out.println(i+1);\n }\n\n\n }",
"iVal[i] = in.nextInt()",
"iVal[i]",
"iVal",
"i",
"in.nextInt()",
"in.nextInt",
"in",
"if(iVal[i]==0)\n {\n System.out.println(i+1);\n }",
"iVal[i]==0",
"iVal[i]",
"iVal",
"i",
"0",
"{\n System.out.println(i+1);\n }",
"System.out.println(i+1)",
"System.out.println",
"System.out",
"System",
"System.out",
"i+1",
"i",
"1",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner in = new Scanner(System.in);\n\n String[] S = new String[100];\n // [\"\", \"\",\"\" ,\"\" ,\"\", ... ]\n // [0, 0, 0, 0, 0, ... ]\n // \"\" - String, '' - Char\n\n int[] iVal = new int[5]; // [0, 0, 0, 0, 0]\n // iVal = [0,1,2,3,4]\n\n // iVal = [3, 5, 7, 9, 11]\n\n for(int i = 0; i < 5; i+=1) {\n\n iVal[i] = in.nextInt();\n if(iVal[i]==0)\n {\n System.out.println(i+1);\n }\n\n\n }\n\n }\n\n\n\n\n\n\n\n\n\n }",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner in = new Scanner(System.in);\n\n String[] S = new String[100];\n // [\"\", \"\",\"\" ,\"\" ,\"\", ... ]\n // [0, 0, 0, 0, 0, ... ]\n // \"\" - String, '' - Char\n\n int[] iVal = new int[5]; // [0, 0, 0, 0, 0]\n // iVal = [0,1,2,3,4]\n\n // iVal = [3, 5, 7, 9, 11]\n\n for(int i = 0; i < 5; i+=1) {\n\n iVal[i] = in.nextInt();\n if(iVal[i]==0)\n {\n System.out.println(i+1);\n }\n\n\n }\n\n }\n\n\n\n\n\n\n\n\n\n }",
"Main"
]
|
import java.util.*;
import java.io.*;
import static java.lang.Character.isUpperCase;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
String[] S = new String[100];
// ["", "","" ,"" ,"", ... ]
// [0, 0, 0, 0, 0, ... ]
// "" - String, '' - Char
int[] iVal = new int[5]; // [0, 0, 0, 0, 0]
// iVal = [0,1,2,3,4]
// iVal = [3, 5, 7, 9, 11]
for(int i = 0; i < 5; i+=1) {
iVal[i] = in.nextInt();
if(iVal[i]==0)
{
System.out.println(i+1);
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
4,
18,
13,
40,
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
],
[
19,
20
],
[
19,
21
],
[
18,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
22,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
6,
36
],
[
36,
37
]
]
| [
"import java.util.*;\nclass Main\n{\n public static void main(String [] args)\n {\n Scanner s = new Scanner(System.in);\n int count = 0;\n int n = 9;\n while(n != 0)\n {\n n = s.nextInt();\n count++;\n } \n System.out.println(count);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main\n{\n public static void main(String [] args)\n {\n Scanner s = new Scanner(System.in);\n int count = 0;\n int n = 9;\n while(n != 0)\n {\n n = s.nextInt();\n count++;\n } \n System.out.println(count);\n }\n}",
"Main",
"public static void main(String [] args)\n {\n Scanner s = new Scanner(System.in);\n int count = 0;\n int n = 9;\n while(n != 0)\n {\n n = s.nextInt();\n count++;\n } \n System.out.println(count);\n }",
"main",
"{\n Scanner s = new Scanner(System.in);\n int count = 0;\n int n = 9;\n while(n != 0)\n {\n n = s.nextInt();\n count++;\n } \n System.out.println(count);\n }",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int count = 0;",
"count",
"0",
"int n = 9;",
"n",
"9",
"while(n != 0)\n {\n n = s.nextInt();\n count++;\n }",
"n != 0",
"n",
"0",
"{\n n = s.nextInt();\n count++;\n }",
"n = s.nextInt()",
"n",
"s.nextInt()",
"s.nextInt",
"s",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String [] args",
"args"
]
| import java.util.*;
class Main
{
public static void main(String [] args)
{
Scanner s = new Scanner(System.in);
int count = 0;
int n = 9;
while(n != 0)
{
n = s.nextInt();
count++;
}
System.out.println(count);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
17,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
2,
18,
13,
13,
17,
4,
18,
18,
13,
13,
2,
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
],
[
59,
11
],
[
59,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
19
],
[
19,
20
],
[
19,
21
],
[
14,
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
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
40,
41
],
[
34,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
42,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
12,
56
],
[
56,
57
],
[
0,
58
],
[
58,
59
],
[
58,
60
]
]
| [
"import java.util.*;\nimport java.io.*;\nimport java.lang.*;\n\npublic class Main {\n\tpublic static void main (String[] args) {\n\t\tint[] arr = new int[5];\n\t\tScanner sc = new Scanner (System.in);\n\t\tfor (int i = 0; i<5; i++) {\n\t\t\tarr[i] = sc.nextInt();\n\t\t\tif (arr[i] == 0) \n\t\t\t\tSystem.out.println(i+1);\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"public class Main {\n\tpublic static void main (String[] args) {\n\t\tint[] arr = new int[5];\n\t\tScanner sc = new Scanner (System.in);\n\t\tfor (int i = 0; i<5; i++) {\n\t\t\tarr[i] = sc.nextInt();\n\t\t\tif (arr[i] == 0) \n\t\t\t\tSystem.out.println(i+1);\n\t\t}\n\t}\n}",
"Main",
"public static void main (String[] args) {\n\t\tint[] arr = new int[5];\n\t\tScanner sc = new Scanner (System.in);\n\t\tfor (int i = 0; i<5; i++) {\n\t\t\tarr[i] = sc.nextInt();\n\t\t\tif (arr[i] == 0) \n\t\t\t\tSystem.out.println(i+1);\n\t\t}\n\t}",
"main",
"{\n\t\tint[] arr = new int[5];\n\t\tScanner sc = new Scanner (System.in);\n\t\tfor (int i = 0; i<5; i++) {\n\t\t\tarr[i] = sc.nextInt();\n\t\t\tif (arr[i] == 0) \n\t\t\t\tSystem.out.println(i+1);\n\t\t}\n\t}",
"int[] arr = new int[5];",
"arr",
"new int[5]",
"5",
"Scanner sc = new Scanner (System.in);",
"sc",
"new Scanner (System.in)",
"for (int i = 0; i<5; i++) {\n\t\t\tarr[i] = sc.nextInt();\n\t\t\tif (arr[i] == 0) \n\t\t\t\tSystem.out.println(i+1);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<5",
"i",
"5",
"i++",
"i++",
"i",
"{\n\t\t\tarr[i] = sc.nextInt();\n\t\t\tif (arr[i] == 0) \n\t\t\t\tSystem.out.println(i+1);\n\t\t}",
"{\n\t\t\tarr[i] = sc.nextInt();\n\t\t\tif (arr[i] == 0) \n\t\t\t\tSystem.out.println(i+1);\n\t\t}",
"arr[i] = sc.nextInt()",
"arr[i]",
"arr",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (arr[i] == 0) \n\t\t\t\tSystem.out.println(i+1);",
"arr[i] == 0",
"arr[i]",
"arr",
"i",
"0",
"System.out.println(i+1)",
"System.out.println",
"System.out",
"System",
"System.out",
"i+1",
"i",
"1",
"String[] args",
"args",
"public class Main {\n\tpublic static void main (String[] args) {\n\t\tint[] arr = new int[5];\n\t\tScanner sc = new Scanner (System.in);\n\t\tfor (int i = 0; i<5; i++) {\n\t\t\tarr[i] = sc.nextInt();\n\t\t\tif (arr[i] == 0) \n\t\t\t\tSystem.out.println(i+1);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main (String[] args) {\n\t\tint[] arr = new int[5];\n\t\tScanner sc = new Scanner (System.in);\n\t\tfor (int i = 0; i<5; i++) {\n\t\t\tarr[i] = sc.nextInt();\n\t\t\tif (arr[i] == 0) \n\t\t\t\tSystem.out.println(i+1);\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.*;
import java.io.*;
import java.lang.*;
public class Main {
public static void main (String[] args) {
int[] arr = new int[5];
Scanner sc = new Scanner (System.in);
for (int i = 0; i<5; i++) {
arr[i] = sc.nextInt();
if (arr[i] == 0)
System.out.println(i+1);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
0,
13,
2,
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
],
[
54,
8
],
[
54,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
18,
23
],
[
23,
24
],
[
23,
25
],
[
18,
26
],
[
26,
27
],
[
27,
28
],
[
18,
29
],
[
30,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
30,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
11,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
9,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
]
| [
"/* package codechef; // don't place package name! */\n\nimport java.util.*;\nimport java.io.*;\n\n/* Name of the class has to be \"Main\" only if the class is public. */\npublic class Main {\n public static void main (String[] args) {\n // your code goes here\n Scanner s = new Scanner(System.in);\n int j = 0;\n for(int i=0; i<5; i++)\n {\n int x = s.nextInt();\n if(x==0)\n j=i+1;\n }\n System.out.println(j);\n\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main (String[] args) {\n // your code goes here\n Scanner s = new Scanner(System.in);\n int j = 0;\n for(int i=0; i<5; i++)\n {\n int x = s.nextInt();\n if(x==0)\n j=i+1;\n }\n System.out.println(j);\n\n }\n}",
"Main",
"public static void main (String[] args) {\n // your code goes here\n Scanner s = new Scanner(System.in);\n int j = 0;\n for(int i=0; i<5; i++)\n {\n int x = s.nextInt();\n if(x==0)\n j=i+1;\n }\n System.out.println(j);\n\n }",
"main",
"{\n // your code goes here\n Scanner s = new Scanner(System.in);\n int j = 0;\n for(int i=0; i<5; i++)\n {\n int x = s.nextInt();\n if(x==0)\n j=i+1;\n }\n System.out.println(j);\n\n }",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int j = 0;",
"j",
"0",
"for(int i=0; i<5; i++)\n {\n int x = s.nextInt();\n if(x==0)\n j=i+1;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<5",
"i",
"5",
"i++",
"i++",
"i",
"{\n int x = s.nextInt();\n if(x==0)\n j=i+1;\n }",
"{\n int x = s.nextInt();\n if(x==0)\n j=i+1;\n }",
"int x = s.nextInt();",
"x",
"s.nextInt()",
"s.nextInt",
"s",
"if(x==0)\n j=i+1;",
"x==0",
"x",
"0",
"j=i+1",
"j",
"i+1",
"i",
"1",
"System.out.println(j)",
"System.out.println",
"System.out",
"System",
"System.out",
"j",
"String[] args",
"args",
"public class Main {\n public static void main (String[] args) {\n // your code goes here\n Scanner s = new Scanner(System.in);\n int j = 0;\n for(int i=0; i<5; i++)\n {\n int x = s.nextInt();\n if(x==0)\n j=i+1;\n }\n System.out.println(j);\n\n }\n}",
"public class Main {\n public static void main (String[] args) {\n // your code goes here\n Scanner s = new Scanner(System.in);\n int j = 0;\n for(int i=0; i<5; i++)\n {\n int x = s.nextInt();\n if(x==0)\n j=i+1;\n }\n System.out.println(j);\n\n }\n}",
"Main"
]
| /* package codechef; // don't place package name! */
import java.util.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
public class Main {
public static void main (String[] args) {
// your code goes here
Scanner s = new Scanner(System.in);
int j = 0;
for(int i=0; i<5; i++)
{
int x = s.nextInt();
if(x==0)
j=i+1;
}
System.out.println(j);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
0,
13,
2,
13,
17,
3,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
74,
5
],
[
74,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
8,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
24,
25
],
[
24,
26
],
[
19,
27
],
[
27,
28
],
[
28,
29
],
[
19,
30
],
[
31,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
58,
64
],
[
8,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
6,
71
],
[
71,
72
],
[
0,
73
],
[
73,
74
],
[
73,
75
]
]
| [
"import java.util.*;\n\npublic class Main{\n\tpublic static void main(String args[]){\n\t\t\n\t\tScanner ob = new Scanner(System.in);\n\t\tint[] nums = new int[5];\n\t\tint C = 0;\n\n\t\tfor(int i = 0; i < 5; i++){\n\t\t\tnums[i] = ob.nextInt();\n\t\t}\n\n\t\tfor(int j = 0; j < 5; j++){\n\t\t\tif(nums[j] == 0){\n\t\t\t\tC = j + 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(C);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main(String args[]){\n\t\t\n\t\tScanner ob = new Scanner(System.in);\n\t\tint[] nums = new int[5];\n\t\tint C = 0;\n\n\t\tfor(int i = 0; i < 5; i++){\n\t\t\tnums[i] = ob.nextInt();\n\t\t}\n\n\t\tfor(int j = 0; j < 5; j++){\n\t\t\tif(nums[j] == 0){\n\t\t\t\tC = j + 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(C);\n\t}\n}",
"Main",
"public static void main(String args[]){\n\t\t\n\t\tScanner ob = new Scanner(System.in);\n\t\tint[] nums = new int[5];\n\t\tint C = 0;\n\n\t\tfor(int i = 0; i < 5; i++){\n\t\t\tnums[i] = ob.nextInt();\n\t\t}\n\n\t\tfor(int j = 0; j < 5; j++){\n\t\t\tif(nums[j] == 0){\n\t\t\t\tC = j + 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(C);\n\t}",
"main",
"{\n\t\t\n\t\tScanner ob = new Scanner(System.in);\n\t\tint[] nums = new int[5];\n\t\tint C = 0;\n\n\t\tfor(int i = 0; i < 5; i++){\n\t\t\tnums[i] = ob.nextInt();\n\t\t}\n\n\t\tfor(int j = 0; j < 5; j++){\n\t\t\tif(nums[j] == 0){\n\t\t\t\tC = j + 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(C);\n\t}",
"Scanner ob = new Scanner(System.in);",
"ob",
"new Scanner(System.in)",
"int[] nums = new int[5];",
"nums",
"new int[5]",
"5",
"int C = 0;",
"C",
"0",
"for(int i = 0; i < 5; i++){\n\t\t\tnums[i] = ob.nextInt();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n\t\t\tnums[i] = ob.nextInt();\n\t\t}",
"{\n\t\t\tnums[i] = ob.nextInt();\n\t\t}",
"nums[i] = ob.nextInt()",
"nums[i]",
"nums",
"i",
"ob.nextInt()",
"ob.nextInt",
"ob",
"for(int j = 0; j < 5; j++){\n\t\t\tif(nums[j] == 0){\n\t\t\t\tC = j + 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 5",
"j",
"5",
"j++",
"j++",
"j",
"{\n\t\t\tif(nums[j] == 0){\n\t\t\t\tC = j + 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(nums[j] == 0){\n\t\t\t\tC = j + 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"if(nums[j] == 0){\n\t\t\t\tC = j + 1;\n\t\t\t\tbreak;\n\t\t\t}",
"nums[j] == 0",
"nums[j]",
"nums",
"j",
"0",
"{\n\t\t\t\tC = j + 1;\n\t\t\t\tbreak;\n\t\t\t}",
"C = j + 1",
"C",
"j + 1",
"j",
"1",
"break;",
"System.out.println(C)",
"System.out.println",
"System.out",
"System",
"System.out",
"C",
"String args[]",
"args",
"public class Main{\n\tpublic static void main(String args[]){\n\t\t\n\t\tScanner ob = new Scanner(System.in);\n\t\tint[] nums = new int[5];\n\t\tint C = 0;\n\n\t\tfor(int i = 0; i < 5; i++){\n\t\t\tnums[i] = ob.nextInt();\n\t\t}\n\n\t\tfor(int j = 0; j < 5; j++){\n\t\t\tif(nums[j] == 0){\n\t\t\t\tC = j + 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(C);\n\t}\n}",
"public class Main{\n\tpublic static void main(String args[]){\n\t\t\n\t\tScanner ob = new Scanner(System.in);\n\t\tint[] nums = new int[5];\n\t\tint C = 0;\n\n\t\tfor(int i = 0; i < 5; i++){\n\t\t\tnums[i] = ob.nextInt();\n\t\t}\n\n\t\tfor(int j = 0; j < 5; j++){\n\t\t\tif(nums[j] == 0){\n\t\t\t\tC = j + 1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(C);\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String args[]){
Scanner ob = new Scanner(System.in);
int[] nums = new int[5];
int C = 0;
for(int i = 0; i < 5; i++){
nums[i] = ob.nextInt();
}
for(int j = 0; j < 5; j++){
if(nums[j] == 0){
C = j + 1;
break;
}
}
System.out.println(C);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
4,
18,
18,
13,
13,
4,
13,
23,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
13,
13,
17,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
13,
17,
29,
2,
13,
17,
29,
17,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
97,
11
],
[
97,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
15,
20
],
[
20,
21
],
[
12,
22
],
[
22,
23
],
[
97,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
47,
48
],
[
26,
49
],
[
49,
50
],
[
24,
51
],
[
51,
52
],
[
24,
53
],
[
53,
54
],
[
97,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
63,
66
],
[
57,
67
],
[
67,
68
],
[
68,
69
],
[
57,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
70,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
84,
89
],
[
83,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
57,
94
],
[
94,
95
],
[
0,
96
],
[
96,
97
],
[
96,
98
]
]
| [
"import java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n System.out.println(run());\n }\n\n private static ArrayList<Integer> nScan(Scanner sc, int n) {\n ArrayList<Integer> al = new ArrayList<>();\n for (int i = 0; i < n; i++) {\n al.add(sc.nextInt());\n }\n return al;\n }\n\n private static Object run() {\n Scanner sc = new Scanner(System.in);\n ArrayList<Integer> x = nScan(sc,5);\n sc.close();\n\n for (int i = 0; i < 5; i++) {\n if (x.get(i) == 0) return i + 1;\n }\n return 0;\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 public static void main(String[] args) {\n System.out.println(run());\n }\n\n private static ArrayList<Integer> nScan(Scanner sc, int n) {\n ArrayList<Integer> al = new ArrayList<>();\n for (int i = 0; i < n; i++) {\n al.add(sc.nextInt());\n }\n return al;\n }\n\n private static Object run() {\n Scanner sc = new Scanner(System.in);\n ArrayList<Integer> x = nScan(sc,5);\n sc.close();\n\n for (int i = 0; i < 5; i++) {\n if (x.get(i) == 0) return i + 1;\n }\n return 0;\n }\n}",
"Main",
"public static void main(String[] args) {\n System.out.println(run());\n }",
"main",
"{\n System.out.println(run());\n }",
"System.out.println(run())",
"System.out.println",
"System.out",
"System",
"System.out",
"run()",
"run",
"String[] args",
"args",
"private static ArrayList<Integer> nScan(Scanner sc, int n) {\n ArrayList<Integer> al = new ArrayList<>();\n for (int i = 0; i < n; i++) {\n al.add(sc.nextInt());\n }\n return al;\n }",
"nScan",
"{\n ArrayList<Integer> al = new ArrayList<>();\n for (int i = 0; i < n; i++) {\n al.add(sc.nextInt());\n }\n return al;\n }",
"ArrayList<Integer> al = new ArrayList<>();",
"al",
"new ArrayList<>()",
"for (int i = 0; i < n; i++) {\n al.add(sc.nextInt());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n al.add(sc.nextInt());\n }",
"{\n al.add(sc.nextInt());\n }",
"al.add(sc.nextInt())",
"al.add",
"al",
"sc.nextInt()",
"sc.nextInt",
"sc",
"return al;",
"al",
"Scanner sc",
"sc",
"int n",
"n",
"private static Object run() {\n Scanner sc = new Scanner(System.in);\n ArrayList<Integer> x = nScan(sc,5);\n sc.close();\n\n for (int i = 0; i < 5; i++) {\n if (x.get(i) == 0) return i + 1;\n }\n return 0;\n }",
"run",
"{\n Scanner sc = new Scanner(System.in);\n ArrayList<Integer> x = nScan(sc,5);\n sc.close();\n\n for (int i = 0; i < 5; i++) {\n if (x.get(i) == 0) return i + 1;\n }\n return 0;\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"ArrayList<Integer> x = nScan(sc,5);",
"x",
"nScan(sc,5)",
"nScan",
"sc",
"5",
"sc.close()",
"sc.close",
"sc",
"for (int i = 0; i < 5; i++) {\n if (x.get(i) == 0) return i + 1;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n if (x.get(i) == 0) return i + 1;\n }",
"{\n if (x.get(i) == 0) return i + 1;\n }",
"if (x.get(i) == 0) return i + 1;",
"x.get(i) == 0",
"x.get(i)",
"x.get",
"x",
"i",
"0",
"return i + 1;",
"i + 1",
"i",
"1",
"return 0;",
"0",
"public class Main {\n public static void main(String[] args) {\n System.out.println(run());\n }\n\n private static ArrayList<Integer> nScan(Scanner sc, int n) {\n ArrayList<Integer> al = new ArrayList<>();\n for (int i = 0; i < n; i++) {\n al.add(sc.nextInt());\n }\n return al;\n }\n\n private static Object run() {\n Scanner sc = new Scanner(System.in);\n ArrayList<Integer> x = nScan(sc,5);\n sc.close();\n\n for (int i = 0; i < 5; i++) {\n if (x.get(i) == 0) return i + 1;\n }\n return 0;\n }\n}",
"public class Main {\n public static void main(String[] args) {\n System.out.println(run());\n }\n\n private static ArrayList<Integer> nScan(Scanner sc, int n) {\n ArrayList<Integer> al = new ArrayList<>();\n for (int i = 0; i < n; i++) {\n al.add(sc.nextInt());\n }\n return al;\n }\n\n private static Object run() {\n Scanner sc = new Scanner(System.in);\n ArrayList<Integer> x = nScan(sc,5);\n sc.close();\n\n for (int i = 0; i < 5; i++) {\n if (x.get(i) == 0) return i + 1;\n }\n return 0;\n }\n}",
"Main"
]
| import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
System.out.println(run());
}
private static ArrayList<Integer> nScan(Scanner sc, int n) {
ArrayList<Integer> al = new ArrayList<>();
for (int i = 0; i < n; i++) {
al.add(sc.nextInt());
}
return al;
}
private static Object run() {
Scanner sc = new Scanner(System.in);
ArrayList<Integer> x = nScan(sc,5);
sc.close();
for (int i = 0; i < 5; i++) {
if (x.get(i) == 0) return i + 1;
}
return 0;
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
17,
42,
2,
40,
13,
17,
30,
41,
13,
17,
41,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
13,
2,
13,
17,
3,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
40,
17,
37,
20,
14,
2,
13,
13,
30,
0,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
30,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
29,
2,
13,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
30,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
29,
2,
13,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
41,
13,
18,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
4,
18,
13,
2,
13,
13,
13,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
30,
0,
13,
4,
13,
41,
13,
20,
42,
40,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
41,
13,
20,
42,
40,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
29,
2,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
12,
13,
30,
29,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
452,
8
],
[
452,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
21
],
[
21,
22
],
[
21,
23
],
[
11,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
24,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
29,
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
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
62,
63
],
[
62,
64
],
[
58,
65
],
[
11,
66
],
[
66,
67
],
[
67,
68
],
[
9,
69
],
[
69,
70
],
[
452,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
71,
75
],
[
75,
76
],
[
75,
77
],
[
71,
79
],
[
79,
80
],
[
71,
81
],
[
81,
82
],
[
71,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
83,
91
],
[
91,
92
],
[
71,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
96,
101
],
[
101,
102
],
[
95,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
111,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
107,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
124,
128
],
[
128,
129
],
[
129,
130
],
[
95,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
71,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
138,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
138,
152
],
[
152,
153
],
[
152,
154
],
[
138,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
159,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
138,
168
],
[
168,
169
],
[
168,
170
],
[
138,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
171,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
176,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
182,
184
],
[
176,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
138,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
71,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
195,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
200,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
207,
208
],
[
195,
209
],
[
209,
210
],
[
209,
211
],
[
195,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
212,
216
],
[
216,
217
],
[
217,
218
],
[
217,
219
],
[
219,
220
],
[
216,
221
],
[
221,
222
],
[
221,
223
],
[
223,
224
],
[
195,
225
],
[
225,
226
],
[
225,
227
],
[
195,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
228,
233
],
[
233,
234
],
[
234,
235
],
[
234,
236
],
[
233,
237
],
[
237,
238
],
[
237,
239
],
[
239,
240
],
[
239,
241
],
[
233,
242
],
[
242,
243
],
[
242,
244
],
[
244,
245
],
[
195,
246
],
[
246,
247
],
[
247,
248
],
[
247,
249
],
[
71,
250
],
[
250,
251
],
[
250,
252
],
[
252,
253
],
[
253,
254
],
[
253,
255
],
[
252,
257
],
[
257,
258
],
[
258,
259
],
[
259,
260
],
[
259,
261
],
[
257,
262
],
[
262,
263
],
[
262,
264
],
[
257,
265
],
[
265,
266
],
[
266,
267
],
[
257,
268
],
[
269,
269
],
[
269,
270
],
[
270,
271
],
[
271,
272
],
[
271,
273
],
[
270,
274
],
[
274,
275
],
[
252,
276
],
[
276,
277
],
[
250,
278
],
[
278,
279
],
[
71,
280
],
[
280,
281
],
[
280,
282
],
[
282,
283
],
[
283,
284
],
[
284,
285
],
[
285,
286
],
[
285,
287
],
[
284,
288
],
[
288,
289
],
[
288,
290
],
[
290,
291
],
[
290,
292
],
[
283,
293
],
[
293,
294
],
[
293,
295
],
[
283,
296
],
[
296,
297
],
[
297,
298
],
[
283,
299
],
[
300,
300
],
[
300,
301
],
[
301,
302
],
[
301,
303
],
[
303,
304
],
[
304,
305
],
[
305,
306
],
[
304,
307
],
[
307,
308
],
[
307,
309
],
[
303,
310
],
[
300,
311
],
[
311,
312
],
[
311,
313
],
[
313,
314
],
[
313,
315
],
[
300,
316
],
[
316,
317
],
[
317,
318
],
[
317,
319
],
[
316,
320
],
[
320,
321
],
[
320,
322
],
[
300,
323
],
[
323,
324
],
[
324,
325
],
[
324,
326
],
[
323,
327
],
[
282,
328
],
[
328,
329
],
[
280,
330
],
[
330,
331
],
[
280,
332
],
[
332,
333
],
[
71,
334
],
[
334,
335
],
[
334,
336
],
[
336,
337
],
[
337,
338
],
[
337,
339
],
[
339,
340
],
[
336,
341
],
[
341,
342
],
[
342,
343
],
[
342,
344
],
[
341,
345
],
[
345,
346
],
[
346,
347
],
[
346,
348
],
[
348,
349
],
[
336,
350
],
[
350,
351
],
[
350,
352
],
[
336,
353
],
[
353,
354
],
[
354,
355
],
[
355,
356
],
[
355,
357
],
[
353,
358
],
[
358,
359
],
[
359,
360
],
[
360,
361
],
[
359,
362
],
[
358,
363
],
[
363,
364
],
[
363,
365
],
[
365,
366
],
[
336,
367
],
[
367,
368
],
[
368,
369
],
[
369,
370
],
[
71,
371
],
[
371,
372
],
[
371,
373
],
[
373,
374
],
[
374,
375
],
[
374,
376
],
[
376,
377
],
[
373,
378
],
[
378,
379
],
[
379,
380
],
[
379,
381
],
[
378,
382
],
[
382,
383
],
[
382,
384
],
[
384,
385
],
[
373,
386
],
[
386,
387
],
[
386,
388
],
[
373,
389
],
[
389,
390
],
[
390,
391
],
[
391,
392
],
[
391,
393
],
[
389,
394
],
[
394,
395
],
[
395,
396
],
[
396,
397
],
[
395,
398
],
[
394,
399
],
[
399,
400
],
[
399,
401
],
[
401,
402
],
[
373,
403
],
[
403,
404
],
[
404,
405
],
[
405,
406
],
[
71,
407
],
[
407,
408
],
[
407,
409
],
[
409,
410
],
[
410,
411
],
[
414,
412
],
[
424,
413
],
[
421,
414
],
[
414,
415
],
[
415,
416
],
[
415,
417
],
[
414,
418
],
[
418,
419
],
[
418,
420
],
[
421,
421
],
[
421,
422
],
[
421,
423
],
[
424,
424
],
[
424,
425
],
[
424,
426
],
[
414,
427
],
[
427,
428
],
[
427,
429
],
[
429,
430
],
[
407,
431
],
[
431,
432
],
[
71,
433
],
[
433,
434
],
[
433,
435
],
[
435,
436
],
[
436,
437
],
[
438,
438
],
[
438,
439
],
[
439,
440
],
[
439,
441
],
[
438,
442
],
[
442,
443
],
[
442,
444
],
[
438,
445
],
[
445,
446
],
[
445,
447
],
[
447,
448
],
[
433,
449
],
[
449,
450
],
[
0,
451
],
[
451,
452
],
[
451,
453
]
]
| [
"import java.io.*;\nimport java.util.*;\npublic class Main {\n\npublic static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-->0) {\n int n = 5;\n int [] ar = sc.nextIntArray(n);\n for(int i = 0;i<n;i++)\n {\n if(ar[i]==0)\n {\n pw.println(i+1);\n break;\n }\n }\n }\n pw.close();\n\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nstatic class InputReader {\n\n private final InputStream stream;\n private final byte[] buf = new byte[8192];\n private int curChar, snumChars;\n\n public InputReader(InputStream st) {\n this.stream = st;\n }\n\n public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public int[] nextIntArray(int n) {\n int [] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }\n\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n}\n\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\npublic static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-->0) {\n int n = 5;\n int [] ar = sc.nextIntArray(n);\n for(int i = 0;i<n;i++)\n {\n if(ar[i]==0)\n {\n pw.println(i+1);\n break;\n }\n }\n }\n pw.close();\n\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nstatic class InputReader {\n\n private final InputStream stream;\n private final byte[] buf = new byte[8192];\n private int curChar, snumChars;\n\n public InputReader(InputStream st) {\n this.stream = st;\n }\n\n public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public int[] nextIntArray(int n) {\n int [] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }\n\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n}\n\n}",
"Main",
"public static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-->0) {\n int n = 5;\n int [] ar = sc.nextIntArray(n);\n for(int i = 0;i<n;i++)\n {\n if(ar[i]==0)\n {\n pw.println(i+1);\n break;\n }\n }\n }\n pw.close();\n\n}",
"main",
"{\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-->0) {\n int n = 5;\n int [] ar = sc.nextIntArray(n);\n for(int i = 0;i<n;i++)\n {\n if(ar[i]==0)\n {\n pw.println(i+1);\n break;\n }\n }\n }\n pw.close();\n\n}",
"InputReader sc = new InputReader(System.in);",
"sc",
"new InputReader(System.in)",
"PrintWriter pw = new PrintWriter(System.out);",
"pw",
"new PrintWriter(System.out)",
"Random gen = new Random();",
"gen",
"new Random()",
"int test = 1;",
"test",
"1",
"while(test-->0) {\n int n = 5;\n int [] ar = sc.nextIntArray(n);\n for(int i = 0;i<n;i++)\n {\n if(ar[i]==0)\n {\n pw.println(i+1);\n break;\n }\n }\n }",
"test-->0",
"test--",
"test",
"0",
"{\n int n = 5;\n int [] ar = sc.nextIntArray(n);\n for(int i = 0;i<n;i++)\n {\n if(ar[i]==0)\n {\n pw.println(i+1);\n break;\n }\n }\n }",
"int n = 5;",
"n",
"5",
"int [] ar = sc.nextIntArray(n);",
"ar",
"sc.nextIntArray(n)",
"sc.nextIntArray",
"sc",
"n",
"for(int i = 0;i<n;i++)\n {\n if(ar[i]==0)\n {\n pw.println(i+1);\n break;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(ar[i]==0)\n {\n pw.println(i+1);\n break;\n }\n }",
"{\n if(ar[i]==0)\n {\n pw.println(i+1);\n break;\n }\n }",
"if(ar[i]==0)\n {\n pw.println(i+1);\n break;\n }",
"ar[i]==0",
"ar[i]",
"ar",
"i",
"0",
"{\n pw.println(i+1);\n break;\n }",
"pw.println(i+1)",
"pw.println",
"pw",
"i+1",
"i",
"1",
"break;",
"pw.close()",
"pw.close",
"pw",
"String[] args",
"args",
"static class InputReader {\n\n private final InputStream stream;\n private final byte[] buf = new byte[8192];\n private int curChar, snumChars;\n\n public InputReader(InputStream st) {\n this.stream = st;\n }\n\n public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public int[] nextIntArray(int n) {\n int [] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }\n\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n}",
"InputReader",
"private final InputStream stream;",
"stream",
"private final byte[] buf = new byte[8192];",
"buf",
"new byte[8192]",
"8192",
"private int curChar",
"curChar",
"snumChars;",
"snumChars",
"public InputReader(InputStream st) {\n this.stream = st;\n }",
"InputReader",
"{\n this.stream = st;\n }",
"this.stream = st",
"this.stream",
"this",
"this.stream",
"st",
"InputStream st",
"st",
"public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }",
"read",
"{\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }",
"if (snumChars == -1)\n throw new InputMismatchException();",
"snumChars == -1",
"snumChars",
"-1",
"1",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }",
"curChar >= snumChars",
"curChar",
"snumChars",
"{\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }",
"curChar = 0",
"curChar",
"0",
"try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }",
"catch (IOException e) {\n throw new InputMismatchException();\n }",
"IOException e",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n snumChars = stream.read(buf);\n }",
"snumChars = stream.read(buf)",
"snumChars",
"stream.read(buf)",
"stream.read",
"stream",
"buf",
"if (snumChars <= 0)\n return -1;",
"snumChars <= 0",
"snumChars",
"0",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"nextInt",
"{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) {\n c = read();\n }",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n c = read();\n }",
"c = read()",
"c",
"read()",
"read",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') {\n sgn = -1;\n c = read();\n }",
"c == '-'",
"c",
"'-'",
"{\n sgn = -1;\n c = read();\n }",
"sgn = -1",
"sgn",
"-1",
"1",
"c = read()",
"c",
"read()",
"read",
"int res = 0;",
"res",
"0",
"do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n res *= 10;\n res += c - '0';\n c = read();\n }",
"res *= 10",
"res",
"10",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = read()",
"c",
"read()",
"read",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"nextLong",
"{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) {\n c = read();\n }",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n c = read();\n }",
"c = read()",
"c",
"read()",
"read",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') {\n sgn = -1;\n c = read();\n }",
"c == '-'",
"c",
"'-'",
"{\n sgn = -1;\n c = read();\n }",
"sgn = -1",
"sgn",
"-1",
"1",
"c = read()",
"c",
"read()",
"read",
"long res = 0;",
"res",
"0",
"do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n res *= 10;\n res += c - '0';\n c = read();\n }",
"res *= 10",
"res",
"10",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = read()",
"c",
"read()",
"read",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public int[] nextIntArray(int n) {\n int [] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }",
"nextIntArray",
"{\n int [] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }",
"int [] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n a[i] = nextInt();\n }",
"{\n a[i] = nextInt();\n }",
"a[i] = nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }",
"shuffle",
"{ for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }",
"for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }",
"int i = 0, n = a.length;",
"int i = 0",
"i",
"0",
"n = a.length;",
"n",
"a.length",
"a",
"a.length",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{ int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }",
"{ int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }",
"int ind = gen.nextInt(n-i)+i;",
"ind",
"gen.nextInt(n-i)+i",
"gen.nextInt(n-i)",
"gen.nextInt",
"gen",
"n-i",
"n",
"i",
"i",
"int d = a[i];",
"d",
"a[i]",
"a",
"i",
"a[i] = a[ind]",
"a[i]",
"a",
"i",
"a[ind]",
"a",
"ind",
"a[ind] = d",
"a[ind]",
"a",
"ind",
"d",
"return a;",
"a",
"int[] a",
"a",
"Random gen",
"gen",
"public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }",
"readString",
"{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) {\n c = read();\n }",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n c = read();\n }",
"c = read()",
"c",
"read()",
"read",
"StringBuilder res = new StringBuilder();",
"res",
"new StringBuilder()",
"do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n res.appendCodePoint(c);\n c = read();\n }",
"res.appendCodePoint(c)",
"res.appendCodePoint",
"res",
"c",
"c = read()",
"c",
"read()",
"read",
"return res.toString();",
"res.toString()",
"res.toString",
"res",
"public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }",
"nextLine",
"{\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c))\n c = read();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c = read()",
"c",
"read()",
"read",
"StringBuilder res = new StringBuilder();",
"res",
"new StringBuilder()",
"do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));",
"!isEndOfLine(c)",
"isEndOfLine(c)",
"isEndOfLine",
"c",
"{\n res.appendCodePoint(c);\n c = read();\n }",
"res.appendCodePoint(c)",
"res.appendCodePoint",
"res",
"c",
"c = read()",
"c",
"read()",
"read",
"return res.toString();",
"res.toString()",
"res.toString",
"res",
"public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"isSpaceChar",
"{\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == '\\t'",
"c == '\\r'",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == ' '",
"c",
"' '",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == '\\t'",
"c",
"'\\t'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }",
"isEndOfLine",
"{\n return c == '\\n' || c == '\\r' || c == -1;\n }",
"return c == '\\n' || c == '\\r' || c == -1;",
"c == '\\n' || c == '\\r' || c == -1",
"c == '\\n' || c == '\\r' || c == -1",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"public class Main {\n\npublic static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-->0) {\n int n = 5;\n int [] ar = sc.nextIntArray(n);\n for(int i = 0;i<n;i++)\n {\n if(ar[i]==0)\n {\n pw.println(i+1);\n break;\n }\n }\n }\n pw.close();\n\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nstatic class InputReader {\n\n private final InputStream stream;\n private final byte[] buf = new byte[8192];\n private int curChar, snumChars;\n\n public InputReader(InputStream st) {\n this.stream = st;\n }\n\n public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public int[] nextIntArray(int n) {\n int [] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }\n\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n}\n\n}",
"public class Main {\n\npublic static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-->0) {\n int n = 5;\n int [] ar = sc.nextIntArray(n);\n for(int i = 0;i<n;i++)\n {\n if(ar[i]==0)\n {\n pw.println(i+1);\n break;\n }\n }\n }\n pw.close();\n\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nstatic class InputReader {\n\n private final InputStream stream;\n private final byte[] buf = new byte[8192];\n private int curChar, snumChars;\n\n public InputReader(InputStream st) {\n this.stream = st;\n }\n\n public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public int[] nextIntArray(int n) {\n int [] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }\n\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n}\n\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
InputReader sc = new InputReader(System.in);
PrintWriter pw = new PrintWriter(System.out);
Random gen = new Random();
int test = 1;//sc.nextInt();
while(test-->0) {
int n = 5;
int [] ar = sc.nextIntArray(n);
for(int i = 0;i<n;i++)
{
if(ar[i]==0)
{
pw.println(i+1);
break;
}
}
}
pw.close();
}
static class InputReader {
private final InputStream stream;
private final byte[] buf = new byte[8192];
private int curChar, snumChars;
public InputReader(InputStream st) {
this.stream = st;
}
public int read() {
if (snumChars == -1)
throw new InputMismatchException();
if (curChar >= snumChars) {
curChar = 0;
try {
snumChars = stream.read(buf);
} catch (IOException e) {
throw new InputMismatchException();
}
if (snumChars <= 0)
return -1;
}
return buf[curChar++];
}
public int nextInt() {
int c = read();
while (isSpaceChar(c)) {
c = read();
}
int sgn = 1;
if (c == '-') {
sgn = -1;
c = read();
}
int res = 0;
do {
res *= 10;
res += c - '0';
c = read();
} while (!isSpaceChar(c));
return res * sgn;
}
public long nextLong() {
int c = read();
while (isSpaceChar(c)) {
c = read();
}
int sgn = 1;
if (c == '-') {
sgn = -1;
c = read();
}
long res = 0;
do {
res *= 10;
res += c - '0';
c = read();
} while (!isSpaceChar(c));
return res * sgn;
}
public int[] nextIntArray(int n) {
int [] a = new int[n];
for (int i = 0; i < n; i++) {
a[i] = nextInt();
}
return a;
}
public static int[] shuffle(int[] a, Random gen)
{ for(int i = 0, n = a.length;i < n;i++)
{ int ind = gen.nextInt(n-i)+i;
int d = a[i];
a[i] = a[ind];
a[ind] = d;
}
return a;
}
public String readString() {
int c = read();
while (isSpaceChar(c)) {
c = read();
}
StringBuilder res = new StringBuilder();
do {
res.appendCodePoint(c);
c = read();
} while (!isSpaceChar(c));
return res.toString();
}
public String nextLine() {
int c = read();
while (isSpaceChar(c))
c = read();
StringBuilder res = new StringBuilder();
do {
res.appendCodePoint(c);
c = read();
} while (!isEndOfLine(c));
return res.toString();
}
public boolean isSpaceChar(int c) {
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
private boolean isEndOfLine(int c) {
return c == '\n' || c == '\r' || c == -1;
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
17,
29,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
71,
5
],
[
71,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
21,
22
],
[
21,
23
],
[
16,
24
],
[
24,
25
],
[
25,
26
],
[
16,
27
],
[
28,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
8,
67
],
[
6,
68
],
[
68,
69
],
[
0,
70
],
[
70,
71
],
[
70,
72
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int[] X = new int[5];\n\n for (int i = 0; i < 5; i++) {\n X[i] = sc.nextInt();\n }\n sc.close();\n\n for (int i = 0; i < 5; i++) {\n if (X[i] == 0) {\n System.out.println(i + 1);\n }\n }\n return;\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int[] X = new int[5];\n\n for (int i = 0; i < 5; i++) {\n X[i] = sc.nextInt();\n }\n sc.close();\n\n for (int i = 0; i < 5; i++) {\n if (X[i] == 0) {\n System.out.println(i + 1);\n }\n }\n return;\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int[] X = new int[5];\n\n for (int i = 0; i < 5; i++) {\n X[i] = sc.nextInt();\n }\n sc.close();\n\n for (int i = 0; i < 5; i++) {\n if (X[i] == 0) {\n System.out.println(i + 1);\n }\n }\n return;\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int[] X = new int[5];\n\n for (int i = 0; i < 5; i++) {\n X[i] = sc.nextInt();\n }\n sc.close();\n\n for (int i = 0; i < 5; i++) {\n if (X[i] == 0) {\n System.out.println(i + 1);\n }\n }\n return;\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] X = new int[5];",
"X",
"new int[5]",
"5",
"for (int i = 0; i < 5; i++) {\n X[i] = sc.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n X[i] = sc.nextInt();\n }",
"{\n X[i] = sc.nextInt();\n }",
"X[i] = sc.nextInt()",
"X[i]",
"X",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.close()",
"sc.close",
"sc",
"for (int i = 0; i < 5; i++) {\n if (X[i] == 0) {\n System.out.println(i + 1);\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n if (X[i] == 0) {\n System.out.println(i + 1);\n }\n }",
"{\n if (X[i] == 0) {\n System.out.println(i + 1);\n }\n }",
"if (X[i] == 0) {\n System.out.println(i + 1);\n }",
"X[i] == 0",
"X[i]",
"X",
"i",
"0",
"{\n System.out.println(i + 1);\n }",
"System.out.println(i + 1)",
"System.out.println",
"System.out",
"System",
"System.out",
"i + 1",
"i",
"1",
"return;",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int[] X = new int[5];\n\n for (int i = 0; i < 5; i++) {\n X[i] = sc.nextInt();\n }\n sc.close();\n\n for (int i = 0; i < 5; i++) {\n if (X[i] == 0) {\n System.out.println(i + 1);\n }\n }\n return;\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int[] X = new int[5];\n\n for (int i = 0; i < 5; i++) {\n X[i] = sc.nextInt();\n }\n sc.close();\n\n for (int i = 0; i < 5; i++) {\n if (X[i] == 0) {\n System.out.println(i + 1);\n }\n }\n return;\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int[] X = new int[5];
for (int i = 0; i < 5; i++) {
X[i] = sc.nextInt();
}
sc.close();
for (int i = 0; i < 5; i++) {
if (X[i] == 0) {
System.out.println(i + 1);
}
}
return;
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
18,
13,
13,
17,
2,
13,
17,
30,
0,
13,
2,
18,
13,
2,
13,
17,
17,
3,
14,
2,
18,
13,
13,
17,
30,
0,
13,
2,
18,
13,
2,
13,
17,
17,
3,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
99,
5
],
[
99,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
8,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
24,
25
],
[
24,
26
],
[
19,
27
],
[
27,
28
],
[
28,
29
],
[
19,
30
],
[
31,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
53,
59
],
[
59,
60
],
[
59,
61
],
[
52,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
65,
71
],
[
62,
72
],
[
52,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
73,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
85,
87
],
[
82,
88
],
[
79,
89
],
[
8,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
6,
96
],
[
96,
97
],
[
0,
98
],
[
98,
99
],
[
98,
100
]
]
| [
"\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint[] x = new int[5];\n\t\tint ans = 0;\n\t\t\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tx[i]\t = sc.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tif(x[i] == 0 && i != 0) {\n\t\t\t\tans = x[i-1] + 1;\n\t\t\t\tbreak;\n\t\t\t}else if(x[i] == 0){\n\t\t\t\tans = x[i+1] -1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\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\t\n\t\tint[] x = new int[5];\n\t\tint ans = 0;\n\t\t\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tx[i]\t = sc.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tif(x[i] == 0 && i != 0) {\n\t\t\t\tans = x[i-1] + 1;\n\t\t\t\tbreak;\n\t\t\t}else if(x[i] == 0){\n\t\t\t\tans = x[i+1] -1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint[] x = new int[5];\n\t\tint ans = 0;\n\t\t\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tx[i]\t = sc.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tif(x[i] == 0 && i != 0) {\n\t\t\t\tans = x[i-1] + 1;\n\t\t\t\tbreak;\n\t\t\t}else if(x[i] == 0){\n\t\t\t\tans = x[i+1] -1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint[] x = new int[5];\n\t\tint ans = 0;\n\t\t\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tx[i]\t = sc.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tif(x[i] == 0 && i != 0) {\n\t\t\t\tans = x[i-1] + 1;\n\t\t\t\tbreak;\n\t\t\t}else if(x[i] == 0){\n\t\t\t\tans = x[i+1] -1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] x = new int[5];",
"x",
"new int[5]",
"5",
"int ans = 0;",
"ans",
"0",
"for(int i = 0; i < 5; i++) {\n\t\t\tx[i]\t = sc.nextInt();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n\t\t\tx[i]\t = sc.nextInt();\n\t\t}",
"{\n\t\t\tx[i]\t = sc.nextInt();\n\t\t}",
"x[i]\t = sc.nextInt()",
"x[i]",
"x",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < 5; i++) {\n\t\t\tif(x[i] == 0 && i != 0) {\n\t\t\t\tans = x[i-1] + 1;\n\t\t\t\tbreak;\n\t\t\t}else if(x[i] == 0){\n\t\t\t\tans = x[i+1] -1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n\t\t\tif(x[i] == 0 && i != 0) {\n\t\t\t\tans = x[i-1] + 1;\n\t\t\t\tbreak;\n\t\t\t}else if(x[i] == 0){\n\t\t\t\tans = x[i+1] -1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(x[i] == 0 && i != 0) {\n\t\t\t\tans = x[i-1] + 1;\n\t\t\t\tbreak;\n\t\t\t}else if(x[i] == 0){\n\t\t\t\tans = x[i+1] -1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"if(x[i] == 0 && i != 0) {\n\t\t\t\tans = x[i-1] + 1;\n\t\t\t\tbreak;\n\t\t\t}else if(x[i] == 0){\n\t\t\t\tans = x[i+1] -1;\n\t\t\t\tbreak;\n\t\t\t}",
"x[i] == 0 && i != 0",
"x[i] == 0",
"x[i]",
"x",
"i",
"0",
"i != 0",
"i",
"0",
"{\n\t\t\t\tans = x[i-1] + 1;\n\t\t\t\tbreak;\n\t\t\t}",
"ans = x[i-1] + 1",
"ans",
"x[i-1] + 1",
"x[i-1]",
"x",
"i-1",
"i",
"1",
"1",
"break;",
"if(x[i] == 0){\n\t\t\t\tans = x[i+1] -1;\n\t\t\t\tbreak;\n\t\t\t}",
"x[i] == 0",
"x[i]",
"x",
"i",
"0",
"{\n\t\t\t\tans = x[i+1] -1;\n\t\t\t\tbreak;\n\t\t\t}",
"ans = x[i+1] -1",
"ans",
"x[i+1] -1",
"x[i+1]",
"x",
"i+1",
"i",
"1",
"1",
"break;",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint[] x = new int[5];\n\t\tint ans = 0;\n\t\t\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tx[i]\t = sc.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tif(x[i] == 0 && i != 0) {\n\t\t\t\tans = x[i-1] + 1;\n\t\t\t\tbreak;\n\t\t\t}else if(x[i] == 0){\n\t\t\t\tans = x[i+1] -1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint[] x = new int[5];\n\t\tint ans = 0;\n\t\t\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tx[i]\t = sc.nextInt();\n\t\t}\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tif(x[i] == 0 && i != 0) {\n\t\t\t\tans = x[i-1] + 1;\n\t\t\t\tbreak;\n\t\t\t}else if(x[i] == 0){\n\t\t\t\tans = x[i+1] -1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"Main"
]
|
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] x = new int[5];
int ans = 0;
for(int i = 0; i < 5; i++) {
x[i] = sc.nextInt();
}
for(int i = 0; i < 5; i++) {
if(x[i] == 0 && i != 0) {
ans = x[i-1] + 1;
break;
}else if(x[i] == 0){
ans = x[i+1] -1;
break;
}
}
System.out.println(ans);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
30,
0,
13,
2,
13,
17,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
30,
0,
13,
2,
13,
17,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
30,
0,
13,
2,
13,
17,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
30,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
112,
5
],
[
112,
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
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
20,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
31,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
42,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
53,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
53,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
64,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
75,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
75,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
86,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
100,
102
],
[
97,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
6,
109
],
[
109,
110
],
[
0,
111
],
[
111,
112
],
[
111,
113
]
]
| [
"import java.util.Scanner;\n \npublic class Main {\n public static void main(String[] args ) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int i =1;\n if (N==0) {\n System.out.println(i);\n } else {\n i = i + 1;\n N = sc.nextInt();\n if (N==0) {\n System.out.println(i);\n \t } else {\n i = i + 1;\n N = sc.nextInt();\n if (N==0) {\n \t System.out.println(i);\n \t\t } else {\n \t\t i = i + 1;\n \t\t N = sc.nextInt();\n \tif (N==0) {\n \t\t\tSystem.out.println(i);\n \t\t\t } else {\n \t\t\t i = i + 1;\n \t\t\t System.out.println(i);\n \t\t\t }\n }\n }\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 i =1;\n if (N==0) {\n System.out.println(i);\n } else {\n i = i + 1;\n N = sc.nextInt();\n if (N==0) {\n System.out.println(i);\n \t } else {\n i = i + 1;\n N = sc.nextInt();\n if (N==0) {\n \t System.out.println(i);\n \t\t } else {\n \t\t i = i + 1;\n \t\t N = sc.nextInt();\n \tif (N==0) {\n \t\t\tSystem.out.println(i);\n \t\t\t } else {\n \t\t\t i = i + 1;\n \t\t\t System.out.println(i);\n \t\t\t }\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 i =1;\n if (N==0) {\n System.out.println(i);\n } else {\n i = i + 1;\n N = sc.nextInt();\n if (N==0) {\n System.out.println(i);\n \t } else {\n i = i + 1;\n N = sc.nextInt();\n if (N==0) {\n \t System.out.println(i);\n \t\t } else {\n \t\t i = i + 1;\n \t\t N = sc.nextInt();\n \tif (N==0) {\n \t\t\tSystem.out.println(i);\n \t\t\t } else {\n \t\t\t i = i + 1;\n \t\t\t System.out.println(i);\n \t\t\t }\n }\n }\n }\n}",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int i =1;\n if (N==0) {\n System.out.println(i);\n } else {\n i = i + 1;\n N = sc.nextInt();\n if (N==0) {\n System.out.println(i);\n \t } else {\n i = i + 1;\n N = sc.nextInt();\n if (N==0) {\n \t System.out.println(i);\n \t\t } else {\n \t\t i = i + 1;\n \t\t N = sc.nextInt();\n \tif (N==0) {\n \t\t\tSystem.out.println(i);\n \t\t\t } else {\n \t\t\t i = i + 1;\n \t\t\t System.out.println(i);\n \t\t\t }\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 i =1;",
"i",
"1",
"if (N==0) {\n System.out.println(i);\n } else {\n i = i + 1;\n N = sc.nextInt();\n if (N==0) {\n System.out.println(i);\n \t } else {\n i = i + 1;\n N = sc.nextInt();\n if (N==0) {\n \t System.out.println(i);\n \t\t } else {\n \t\t i = i + 1;\n \t\t N = sc.nextInt();\n \tif (N==0) {\n \t\t\tSystem.out.println(i);\n \t\t\t } else {\n \t\t\t i = i + 1;\n \t\t\t System.out.println(i);\n \t\t\t }\n }\n }\n }",
"N==0",
"N",
"0",
"{\n System.out.println(i);\n }",
"System.out.println(i)",
"System.out.println",
"System.out",
"System",
"System.out",
"i",
"{\n i = i + 1;\n N = sc.nextInt();\n if (N==0) {\n System.out.println(i);\n \t } else {\n i = i + 1;\n N = sc.nextInt();\n if (N==0) {\n \t System.out.println(i);\n \t\t } else {\n \t\t i = i + 1;\n \t\t N = sc.nextInt();\n \tif (N==0) {\n \t\t\tSystem.out.println(i);\n \t\t\t } else {\n \t\t\t i = i + 1;\n \t\t\t System.out.println(i);\n \t\t\t }\n }\n }\n }",
"i = i + 1",
"i",
"i + 1",
"i",
"1",
"N = sc.nextInt()",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (N==0) {\n System.out.println(i);\n \t } else {\n i = i + 1;\n N = sc.nextInt();\n if (N==0) {\n \t System.out.println(i);\n \t\t } else {\n \t\t i = i + 1;\n \t\t N = sc.nextInt();\n \tif (N==0) {\n \t\t\tSystem.out.println(i);\n \t\t\t } else {\n \t\t\t i = i + 1;\n \t\t\t System.out.println(i);\n \t\t\t }\n }\n }",
"N==0",
"N",
"0",
"{\n System.out.println(i);\n \t }",
"System.out.println(i)",
"System.out.println",
"System.out",
"System",
"System.out",
"i",
"{\n i = i + 1;\n N = sc.nextInt();\n if (N==0) {\n \t System.out.println(i);\n \t\t } else {\n \t\t i = i + 1;\n \t\t N = sc.nextInt();\n \tif (N==0) {\n \t\t\tSystem.out.println(i);\n \t\t\t } else {\n \t\t\t i = i + 1;\n \t\t\t System.out.println(i);\n \t\t\t }\n }\n }",
"i = i + 1",
"i",
"i + 1",
"i",
"1",
"N = sc.nextInt()",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (N==0) {\n \t System.out.println(i);\n \t\t } else {\n \t\t i = i + 1;\n \t\t N = sc.nextInt();\n \tif (N==0) {\n \t\t\tSystem.out.println(i);\n \t\t\t } else {\n \t\t\t i = i + 1;\n \t\t\t System.out.println(i);\n \t\t\t }\n }",
"N==0",
"N",
"0",
"{\n \t System.out.println(i);\n \t\t }",
"System.out.println(i)",
"System.out.println",
"System.out",
"System",
"System.out",
"i",
"{\n \t\t i = i + 1;\n \t\t N = sc.nextInt();\n \tif (N==0) {\n \t\t\tSystem.out.println(i);\n \t\t\t } else {\n \t\t\t i = i + 1;\n \t\t\t System.out.println(i);\n \t\t\t }\n }",
"i = i + 1",
"i",
"i + 1",
"i",
"1",
"N = sc.nextInt()",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (N==0) {\n \t\t\tSystem.out.println(i);\n \t\t\t } else {\n \t\t\t i = i + 1;\n \t\t\t System.out.println(i);\n \t\t\t }",
"N==0",
"N",
"0",
"{\n \t\t\tSystem.out.println(i);\n \t\t\t }",
"System.out.println(i)",
"System.out.println",
"System.out",
"System",
"System.out",
"i",
"{\n \t\t\t i = i + 1;\n \t\t\t System.out.println(i);\n \t\t\t }",
"i = i + 1",
"i",
"i + 1",
"i",
"1",
"System.out.println(i)",
"System.out.println",
"System.out",
"System",
"System.out",
"i",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args ) {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int i =1;\n if (N==0) {\n System.out.println(i);\n } else {\n i = i + 1;\n N = sc.nextInt();\n if (N==0) {\n System.out.println(i);\n \t } else {\n i = i + 1;\n N = sc.nextInt();\n if (N==0) {\n \t System.out.println(i);\n \t\t } else {\n \t\t i = i + 1;\n \t\t N = sc.nextInt();\n \tif (N==0) {\n \t\t\tSystem.out.println(i);\n \t\t\t } else {\n \t\t\t i = i + 1;\n \t\t\t System.out.println(i);\n \t\t\t }\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 i =1;\n if (N==0) {\n System.out.println(i);\n } else {\n i = i + 1;\n N = sc.nextInt();\n if (N==0) {\n System.out.println(i);\n \t } else {\n i = i + 1;\n N = sc.nextInt();\n if (N==0) {\n \t System.out.println(i);\n \t\t } else {\n \t\t i = i + 1;\n \t\t N = sc.nextInt();\n \tif (N==0) {\n \t\t\tSystem.out.println(i);\n \t\t\t } else {\n \t\t\t i = i + 1;\n \t\t\t System.out.println(i);\n \t\t\t }\n }\n }\n }\n}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args ) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int i =1;
if (N==0) {
System.out.println(i);
} else {
i = i + 1;
N = sc.nextInt();
if (N==0) {
System.out.println(i);
} else {
i = i + 1;
N = sc.nextInt();
if (N==0) {
System.out.println(i);
} else {
i = i + 1;
N = sc.nextInt();
if (N==0) {
System.out.println(i);
} else {
i = i + 1;
System.out.println(i);
}
}
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
69,
5
],
[
69,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
21,
22
],
[
21,
23
],
[
16,
24
],
[
24,
25
],
[
25,
26
],
[
16,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
33,
34
],
[
8,
35
],
[
35,
36
],
[
35,
37
],
[
8,
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
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
51,
57
],
[
57,
58
],
[
57,
59
],
[
8,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
6,
66
],
[
66,
67
],
[
0,
68
],
[
68,
69
],
[
68,
70
]
]
| [
"import java.util.Scanner;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc= new Scanner(System.in);\n int[] A = new int[5];\n for(int i = 0; i < 5; i++) A[i] =sc.nextInt();\n int ans = 1;\n for(int i = 0; i < 5; i++){\n if(A[i] == 0) ans +=i;\n }\n System.out.println(ans);\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[] A = new int[5];\n for(int i = 0; i < 5; i++) A[i] =sc.nextInt();\n int ans = 1;\n for(int i = 0; i < 5; i++){\n if(A[i] == 0) ans +=i;\n }\n System.out.println(ans);\n } \n}",
"Main",
"public static void main(String[] args) {\n Scanner sc= new Scanner(System.in);\n int[] A = new int[5];\n for(int i = 0; i < 5; i++) A[i] =sc.nextInt();\n int ans = 1;\n for(int i = 0; i < 5; i++){\n if(A[i] == 0) ans +=i;\n }\n System.out.println(ans);\n }",
"main",
"{\n Scanner sc= new Scanner(System.in);\n int[] A = new int[5];\n for(int i = 0; i < 5; i++) A[i] =sc.nextInt();\n int ans = 1;\n for(int i = 0; i < 5; i++){\n if(A[i] == 0) ans +=i;\n }\n System.out.println(ans);\n }",
"Scanner sc= new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] A = new int[5];",
"A",
"new int[5]",
"5",
"for(int i = 0; i < 5; i++) A[i] =sc.nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"A[i] =sc.nextInt();",
"A[i] =sc.nextInt()",
"A[i]",
"A",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ans = 1;",
"ans",
"1",
"for(int i = 0; i < 5; i++){\n if(A[i] == 0) ans +=i;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n if(A[i] == 0) ans +=i;\n }",
"{\n if(A[i] == 0) ans +=i;\n }",
"if(A[i] == 0) ans +=i;",
"A[i] == 0",
"A[i]",
"A",
"i",
"0",
"ans +=i",
"ans",
"i",
"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) {\n Scanner sc= new Scanner(System.in);\n int[] A = new int[5];\n for(int i = 0; i < 5; i++) A[i] =sc.nextInt();\n int ans = 1;\n for(int i = 0; i < 5; i++){\n if(A[i] == 0) ans +=i;\n }\n System.out.println(ans);\n } \n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc= new Scanner(System.in);\n int[] A = new int[5];\n for(int i = 0; i < 5; i++) A[i] =sc.nextInt();\n int ans = 1;\n for(int i = 0; i < 5; i++){\n if(A[i] == 0) ans +=i;\n }\n System.out.println(ans);\n } \n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc= new Scanner(System.in);
int[] A = new int[5];
for(int i = 0; i < 5; i++) A[i] =sc.nextInt();
int ans = 1;
for(int i = 0; i < 5; i++){
if(A[i] == 0) ans +=i;
}
System.out.println(ans);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
39,
40,
17,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
13,
3,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
64,
5
],
[
64,
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
],
[
14,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
27,
28
],
[
14,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
32,
42
],
[
42,
43
],
[
43,
44
],
[
32,
45
],
[
46,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
47,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
53,
60
],
[
6,
61
],
[
61,
62
],
[
0,
63
],
[
63,
64
],
[
63,
65
]
]
| [
"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[] xs = {\n -1,\n sc.nextInt(),\n sc.nextInt(),\n sc.nextInt(),\n sc.nextInt(),\n sc.nextInt()\n };\n for (int i = 1; i < xs.length; i++) {\n if (xs[i] == 0) {\n System.out.println(i);\n break;\n }\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] xs = {\n -1,\n sc.nextInt(),\n sc.nextInt(),\n sc.nextInt(),\n sc.nextInt(),\n sc.nextInt()\n };\n for (int i = 1; i < xs.length; i++) {\n if (xs[i] == 0) {\n System.out.println(i);\n break;\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] xs = {\n -1,\n sc.nextInt(),\n sc.nextInt(),\n sc.nextInt(),\n sc.nextInt(),\n sc.nextInt()\n };\n for (int i = 1; i < xs.length; i++) {\n if (xs[i] == 0) {\n System.out.println(i);\n break;\n }\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int[] xs = {\n -1,\n sc.nextInt(),\n sc.nextInt(),\n sc.nextInt(),\n sc.nextInt(),\n sc.nextInt()\n };\n for (int i = 1; i < xs.length; i++) {\n if (xs[i] == 0) {\n System.out.println(i);\n break;\n }\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] xs = {\n -1,\n sc.nextInt(),\n sc.nextInt(),\n sc.nextInt(),\n sc.nextInt(),\n sc.nextInt()\n };",
"xs",
"{\n -1,\n sc.nextInt(),\n sc.nextInt(),\n sc.nextInt(),\n sc.nextInt(),\n sc.nextInt()\n }",
"-1",
"1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 1; i < xs.length; i++) {\n if (xs[i] == 0) {\n System.out.println(i);\n break;\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < xs.length",
"i",
"xs.length",
"xs",
"xs.length",
"i++",
"i++",
"i",
"{\n if (xs[i] == 0) {\n System.out.println(i);\n break;\n }\n }",
"{\n if (xs[i] == 0) {\n System.out.println(i);\n break;\n }\n }",
"if (xs[i] == 0) {\n System.out.println(i);\n break;\n }",
"xs[i] == 0",
"xs[i]",
"xs",
"i",
"0",
"{\n System.out.println(i);\n break;\n }",
"System.out.println(i)",
"System.out.println",
"System.out",
"System",
"System.out",
"i",
"break;",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] xs = {\n -1,\n sc.nextInt(),\n sc.nextInt(),\n sc.nextInt(),\n sc.nextInt(),\n sc.nextInt()\n };\n for (int i = 1; i < xs.length; i++) {\n if (xs[i] == 0) {\n System.out.println(i);\n break;\n }\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] xs = {\n -1,\n sc.nextInt(),\n sc.nextInt(),\n sc.nextInt(),\n sc.nextInt(),\n sc.nextInt()\n };\n for (int i = 1; i < xs.length; i++) {\n if (xs[i] == 0) {\n System.out.println(i);\n break;\n }\n }\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] xs = {
-1,
sc.nextInt(),
sc.nextInt(),
sc.nextInt(),
sc.nextInt(),
sc.nextInt()
};
for (int i = 1; i < xs.length; i++) {
if (xs[i] == 0) {
System.out.println(i);
break;
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
4,
18,
20,
23,
13,
12,
13,
30,
0,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
17,
3
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
4,
8
],
[
8,
9
],
[
8,
10
],
[
10,
11
],
[
11,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
4,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
18,
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
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
40,
41
],
[
41,
42
],
[
34,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
47,
56
]
]
| [
"import java.util.Scanner;\n\nclass Main {\n\n public static void main(String[] args) {\n new Main().run();\n }\n\n private static Scanner sc;\n\n private void run() {\n sc = new Scanner(System.in);\n for (int i = 0; i < 5; i++) {\n int num = Integer.parseInt(sc.next());\n if (num == 0) {\n System.out.println(i + 1);\n break;\n }\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\n public static void main(String[] args) {\n new Main().run();\n }\n\n private static Scanner sc;\n\n private void run() {\n sc = new Scanner(System.in);\n for (int i = 0; i < 5; i++) {\n int num = Integer.parseInt(sc.next());\n if (num == 0) {\n System.out.println(i + 1);\n break;\n }\n }\n }\n}",
"Main",
"private static Scanner sc;",
"sc",
"public static void main(String[] args) {\n new Main().run();\n }",
"main",
"{\n new Main().run();\n }",
"new Main().run()",
"new Main().run",
"new Main()",
"String[] args",
"args",
"private void run() {\n sc = new Scanner(System.in);\n for (int i = 0; i < 5; i++) {\n int num = Integer.parseInt(sc.next());\n if (num == 0) {\n System.out.println(i + 1);\n break;\n }\n }\n }",
"run",
"{\n sc = new Scanner(System.in);\n for (int i = 0; i < 5; i++) {\n int num = Integer.parseInt(sc.next());\n if (num == 0) {\n System.out.println(i + 1);\n break;\n }\n }\n }",
"sc = new Scanner(System.in)",
"sc",
"new Scanner(System.in)",
"for (int i = 0; i < 5; i++) {\n int num = Integer.parseInt(sc.next());\n if (num == 0) {\n System.out.println(i + 1);\n break;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n int num = Integer.parseInt(sc.next());\n if (num == 0) {\n System.out.println(i + 1);\n break;\n }\n }",
"{\n int num = Integer.parseInt(sc.next());\n if (num == 0) {\n System.out.println(i + 1);\n break;\n }\n }",
"int num = Integer.parseInt(sc.next());",
"num",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"if (num == 0) {\n System.out.println(i + 1);\n break;\n }",
"num == 0",
"num",
"0",
"{\n System.out.println(i + 1);\n break;\n }",
"System.out.println(i + 1)",
"System.out.println",
"System.out",
"System",
"System.out",
"i + 1",
"i",
"1",
"break;"
]
| import java.util.Scanner;
class Main {
public static void main(String[] args) {
new Main().run();
}
private static Scanner sc;
private void run() {
sc = new Scanner(System.in);
for (int i = 0; i < 5; i++) {
int num = Integer.parseInt(sc.next());
if (num == 0) {
System.out.println(i + 1);
break;
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
3,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
48,
5
],
[
48,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
15,
20
],
[
20,
21
],
[
20,
22
],
[
15,
23
],
[
23,
24
],
[
24,
25
],
[
15,
26
],
[
27,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
27,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
6,
45
],
[
45,
46
],
[
0,
47
],
[
47,
48
],
[
47,
49
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint i=0;\n\t\t\n\t\tfor(i=1;i<=5;i++) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(i);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint i=0;\n\t\t\n\t\tfor(i=1;i<=5;i++) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(i);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint i=0;\n\t\t\n\t\tfor(i=1;i<=5;i++) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(i);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint i=0;\n\t\t\n\t\tfor(i=1;i<=5;i++) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(i);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int i=0;",
"i",
"0",
"for(i=1;i<=5;i++) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"i=1;",
"i=1",
"i",
"1",
"i<=5",
"i",
"5",
"i++",
"i++",
"i",
"{\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(n==0) {\n\t\t\t\tbreak;\n\t\t\t}",
"n==0",
"n",
"0",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"System.out.println(i)",
"System.out.println",
"System.out",
"System",
"System.out",
"i",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint i=0;\n\t\t\n\t\tfor(i=1;i<=5;i++) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(i);\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint i=0;\n\t\t\n\t\tfor(i=1;i<=5;i++) {\n\t\t\tint n = sc.nextInt();\n\t\t\tif(n==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(i);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int i=0;
for(i=1;i<=5;i++) {
int n = sc.nextInt();
if(n==0) {
break;
}
}
System.out.println(i);
}
}
|
[
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,
41,
13,
20,
12,
13,
30,
41,
13,
20,
2,
13,
17,
4,
18,
13,
13,
17,
0,
18,
13,
17,
17,
0,
18,
13,
17,
17,
41,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
18,
13,
13,
30,
11,
1,
41,
13,
2,
13,
13,
2,
13,
13,
1,
0,
13,
13,
30,
30,
0,
18,
13,
13,
17,
29,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
13,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
13,
11,
1,
41,
13,
17,
2,
2,
13,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
42,
2,
2,
13,
13,
17,
30,
0,
13,
13,
0,
13,
2,
13,
13,
14,
2,
13,
17,
30,
0,
13,
2,
13,
13,
29,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
2,
13,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
29,
17,
29,
17,
23,
13,
12,
13,
30,
4,
18,
20,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
2,
18,
13,
13,
17,
42,
2,
13,
13,
30,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
40,
13,
40,
13,
23,
13,
12,
13,
30,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
14,
2,
18,
13,
13,
17,
30,
4,
13,
2,
13,
17,
3,
12,
13,
30,
14,
2,
2,
13,
17,
17,
30,
29,
13,
14,
2,
2,
13,
17,
17,
30,
29,
17,
14,
2,
2,
13,
17,
17,
30,
29,
2,
13,
17,
29,
17,
23,
13,
12,
13,
30,
29,
2,
4,
13,
13,
4,
13,
2,
13,
17,
23,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
13,
0,
13,
13,
0,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
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,
12,
13,
30,
29,
4,
18,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
2,
18,
36,
13,
18,
13,
13,
23,
13,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
585,
26
],
[
585,
27
],
[
27,
28
],
[
27,
29
],
[
585,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
36,
37
],
[
36,
38
],
[
32,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
39,
43
],
[
32,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
32,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
32,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
32,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
60,
71
],
[
72,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
78,
85
],
[
85,
86
],
[
85,
87
],
[
78,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
78,
92
],
[
93,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
32,
99
],
[
99,
100
],
[
30,
101
],
[
101,
102
],
[
585,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
110,
111
],
[
111,
112
],
[
105,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
114,
117
],
[
117,
118
],
[
117,
119
],
[
103,
120
],
[
120,
121
],
[
103,
122
],
[
122,
123
],
[
585,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
130,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
135,
139
],
[
130,
140
],
[
140,
141
],
[
141,
142
],
[
130,
143
],
[
144,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
146,
150
],
[
145,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
153,
157
],
[
152,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
151,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
164,
166
],
[
126,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
174,
176
],
[
126,
177
],
[
177,
178
],
[
124,
179
],
[
179,
180
],
[
585,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
184,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
189,
193
],
[
184,
194
],
[
194,
195
],
[
195,
196
],
[
184,
197
],
[
198,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
201,
205
],
[
200,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
206,
210
],
[
199,
211
],
[
211,
212
],
[
212,
213
],
[
183,
214
],
[
214,
215
],
[
181,
216
],
[
216,
217
],
[
585,
218
],
[
218,
219
],
[
218,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
218,
224
],
[
224,
225
],
[
585,
226
],
[
226,
227
],
[
226,
228
],
[
228,
229
],
[
229,
230
],
[
229,
231
],
[
228,
232
],
[
232,
233
],
[
232,
234
],
[
234,
235
],
[
235,
236
],
[
235,
237
],
[
234,
238
],
[
228,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
239,
243
],
[
243,
244
],
[
244,
245
],
[
244,
246
],
[
246,
247
],
[
246,
248
],
[
243,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
249,
253
],
[
253,
254
],
[
253,
255
],
[
243,
256
],
[
256,
257
],
[
257,
258
],
[
257,
259
],
[
256,
260
],
[
243,
261
],
[
261,
262
],
[
243,
263
],
[
263,
264
],
[
226,
265
],
[
265,
266
],
[
585,
267
],
[
267,
268
],
[
267,
269
],
[
269,
270
],
[
270,
271
],
[
270,
272
],
[
269,
274
],
[
274,
275
],
[
275,
276
],
[
276,
277
],
[
276,
278
],
[
274,
279
],
[
279,
280
],
[
279,
281
],
[
274,
282
],
[
282,
283
],
[
283,
284
],
[
274,
285
],
[
286,
286
],
[
286,
287
],
[
287,
288
],
[
288,
289
],
[
288,
290
],
[
287,
291
],
[
291,
292
],
[
286,
293
],
[
293,
294
],
[
294,
295
],
[
295,
296
],
[
295,
297
],
[
294,
298
],
[
293,
299
],
[
299,
300
],
[
300,
301
],
[
300,
302
],
[
302,
303
],
[
302,
304
],
[
299,
305
],
[
585,
306
],
[
306,
307
],
[
306,
308
],
[
308,
309
],
[
309,
310
],
[
310,
311
],
[
311,
312
],
[
311,
313
],
[
310,
314
],
[
309,
315
],
[
315,
316
],
[
316,
317
],
[
308,
318
],
[
318,
319
],
[
319,
320
],
[
320,
321
],
[
320,
322
],
[
319,
323
],
[
318,
324
],
[
324,
325
],
[
325,
326
],
[
308,
327
],
[
327,
328
],
[
328,
329
],
[
329,
330
],
[
329,
331
],
[
328,
332
],
[
327,
333
],
[
333,
334
],
[
334,
335
],
[
335,
336
],
[
335,
337
],
[
308,
338
],
[
338,
339
],
[
306,
340
],
[
340,
341
],
[
585,
342
],
[
342,
343
],
[
342,
344
],
[
344,
345
],
[
345,
346
],
[
346,
347
],
[
347,
348
],
[
347,
349
],
[
346,
350
],
[
350,
351
],
[
350,
352
],
[
352,
353
],
[
352,
354
],
[
342,
355
],
[
355,
356
],
[
342,
357
],
[
357,
358
],
[
585,
359
],
[
359,
360
],
[
359,
361
],
[
361,
362
],
[
362,
363
],
[
363,
364
],
[
364,
365
],
[
364,
366
],
[
362,
367
],
[
359,
368
],
[
368,
369
],
[
585,
370
],
[
370,
371
],
[
370,
372
],
[
372,
373
],
[
373,
374
],
[
374,
375
],
[
375,
376
],
[
375,
377
],
[
373,
378
],
[
370,
379
],
[
379,
380
],
[
585,
381
],
[
381,
382
],
[
381,
383
],
[
383,
384
],
[
384,
385
],
[
385,
386
],
[
386,
387
],
[
386,
388
],
[
384,
389
],
[
381,
390
],
[
390,
391
],
[
585,
392
],
[
392,
393
],
[
392,
394
],
[
394,
395
],
[
395,
396
],
[
395,
397
],
[
394,
398
],
[
398,
399
],
[
398,
400
],
[
394,
401
],
[
401,
402
],
[
401,
403
],
[
392,
404
],
[
404,
405
],
[
392,
406
],
[
406,
407
],
[
585,
408
],
[
408,
409
],
[
408,
410
],
[
410,
411
],
[
411,
412
],
[
412,
413
],
[
413,
414
],
[
412,
415
],
[
412,
416
],
[
408,
417
],
[
417,
418
],
[
408,
419
],
[
419,
420
],
[
585,
421
],
[
421,
422
],
[
421,
423
],
[
423,
424
],
[
424,
425
],
[
425,
426
],
[
426,
427
],
[
425,
428
],
[
425,
429
],
[
421,
430
],
[
430,
431
],
[
421,
432
],
[
432,
433
],
[
585,
434
],
[
434,
435
],
[
434,
436
],
[
436,
437
],
[
437,
438
],
[
438,
439
],
[
439,
440
],
[
438,
441
],
[
441,
442
],
[
442,
443
],
[
585,
444
],
[
444,
445
],
[
444,
446
],
[
446,
447
],
[
447,
448
],
[
448,
449
],
[
449,
450
],
[
448,
451
],
[
451,
452
],
[
452,
453
],
[
585,
454
],
[
454,
455
],
[
454,
456
],
[
456,
457
],
[
457,
458
],
[
458,
459
],
[
459,
460
],
[
458,
461
],
[
461,
462
],
[
462,
463
],
[
585,
464
],
[
464,
465
],
[
464,
466
],
[
466,
467
],
[
467,
468
],
[
468,
469
],
[
469,
470
],
[
585,
471
],
[
471,
472
],
[
471,
473
],
[
473,
474
],
[
474,
475
],
[
475,
476
],
[
476,
477
],
[
475,
478
],
[
471,
479
],
[
479,
480
],
[
585,
481
],
[
481,
482
],
[
481,
483
],
[
483,
484
],
[
481,
485
],
[
485,
486
],
[
481,
487
],
[
487,
488
],
[
487,
489
],
[
489,
490
],
[
490,
491
],
[
490,
492
],
[
487,
493
],
[
493,
494
],
[
481,
495
],
[
495,
496
],
[
495,
497
],
[
497,
498
],
[
498,
499
],
[
499,
500
],
[
500,
501
],
[
500,
502
],
[
499,
503
],
[
503,
504
],
[
504,
505
],
[
505,
506
],
[
498,
507
],
[
507,
508
],
[
508,
509
],
[
508,
510
],
[
497,
511
],
[
511,
512
],
[
512,
513
],
[
513,
514
],
[
481,
515
],
[
515,
516
],
[
515,
517
],
[
517,
518
],
[
518,
519
],
[
519,
520
],
[
520,
521
],
[
519,
522
],
[
522,
523
],
[
481,
524
],
[
524,
525
],
[
524,
526
],
[
526,
527
],
[
527,
528
],
[
528,
529
],
[
529,
530
],
[
528,
531
],
[
531,
532
],
[
481,
533
],
[
533,
534
],
[
533,
535
],
[
535,
536
],
[
536,
537
],
[
537,
538
],
[
538,
539
],
[
481,
540
],
[
540,
541
],
[
540,
542
],
[
542,
543
],
[
543,
544
],
[
544,
545
],
[
545,
546
],
[
0,
547
],
[
547,
548
],
[
547,
549
],
[
549,
550
],
[
547,
551
],
[
551,
552
],
[
547,
553
],
[
553,
554
],
[
553,
555
],
[
555,
556
],
[
556,
557
],
[
557,
558
],
[
557,
559
],
[
556,
560
],
[
555,
561
],
[
561,
562
],
[
562,
563
],
[
562,
564
],
[
561,
565
],
[
553,
566
],
[
566,
567
],
[
553,
568
],
[
568,
569
],
[
547,
570
],
[
570,
571
],
[
570,
572
],
[
572,
573
],
[
573,
574
],
[
574,
575
],
[
575,
576
],
[
575,
577
],
[
574,
578
],
[
578,
579
],
[
578,
580
],
[
570,
581
],
[
581,
582
],
[
547,
583
],
[
0,
584
],
[
584,
585
],
[
584,
586
]
]
| [
"import java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.BufferedReader;\nimport java.util.*;\nimport java.math.*;\nimport java.io.*;\nimport java.text.*;\nimport java.math.BigInteger;\n\npublic class Main\n{ \n\n //Life's a bitch\n public static boolean[] sieve(long n)\n {\n boolean[] prime = new boolean[(int)n+1];\n Arrays.fill(prime,true);\n prime[0] = false;\n prime[1] = false;\n long m = (long)Math.sqrt(n);\n for(int i=2;i<=m;i++)\n {\n if(prime[i])\n {\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }\n }\n return prime;\n } \n\n \n static long GCD(long a,long b)\n {\n if(b==0)\n {\n return a;\n }\n return GCD(b,a%b);\n }\n\n static long CountCoPrimes(long n)\n {\n long res = n;\n for(int i=2;i*i<=n;i++)\n {\n if(n%i==0)\n {\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }\n }\n if(n>1)\n {\n res-=res/n;\n }\n return res;\n }\n\n\n \n\n \n\n static boolean prime(int n)\n {\n for(int i=2;i*i<=n;i++)\n {\n if(i%2==0 ||i%3==0)\n {\n return false;\n }\n }\n return true;\n }\n\n \n\n\n \n \n \n public static void main(String[] args) throws IOException\n {\n \n new Main().run();\n \n }\n\n\n \n\n static void reverse(char[] a)\n {\n // char[] a = c.toCharArray();\n int start=0;\n int end = a.length-1;\n while(start!=end)\n {\n char temp = a[start];\n a[start] = a[end];\n a[end] = temp;\n start++;\n end--;\n }\n }\n\n \n\n\n \n \n Scanner in = new Scanner(System.in);\n void run() throws IOException\n {\n \n int[] a = new int[5];\n for(int i=0;i<5;i++){\n a[i] = ni();\n if(a[i]==0){\n printL(i+1);\n break;\n }\n }\n \n\n }\n\n\n\n \n\n \n\n //xor range query\n static long xor(long n)\n {\n\n if(n%4==0)\n {\n return n;\n }\n if(n%4==1)\n {\n return 1;\n }\n if(n%4==2)\n {\n return n+1;\n }\n return 0;\n }\n\n static long xor(long a,long b)\n {\n return xor(b)^xor(a-1);\n }\n\n\n \n\n \n \n \n\n \n \n \n\n \n \n \n\n\n\n \n\n void printL(long a)\n {\n System.out.println(a);\n }\n void printS(String s)\n {\n System.out.println(s);\n }\n\n void printD(Double d)\n {\n System.out.println(d);\n }\n \n \n \n static void swap(char c,char p)\n {\n char t = c;\n c = p;\n p = t;\n }\n\n static long max(long n,long m)\n {\n return Math.max(n,m);\n }\n static long min(long n,long m)\n {\n return Math.min(n,m);\n }\n\n double nd() throws IOException\n {\n return Double.parseDouble(in.next());\n }\n int ni() throws IOException\n {\n return Integer.parseInt(in.next());\n }\n\n long nl() throws IOException\n {\n return Long.parseLong(in.next());\n }\n\n String si() throws IOException\n {\n return in.next();\n }\n\n\n \n \n static int abs(int n)\n {\n return Math.abs(n);\n }\n\n static class Scanner \n {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s){ br = new BufferedReader(new InputStreamReader(s));}\n\n public String next() throws IOException \n {\n while (st == null || !st.hasMoreTokens()) \n {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {return Integer.parseInt(next());}\n \n public long nextLong() throws IOException {return Long.parseLong(next());}\n\n public String nextLine() throws IOException {return br.readLine();}\n\n public boolean ready() throws IOException {return br.ready();}\n\n\n }\n\n \n}\n\n\n\nclass Pair implements Comparable<Pair>\n{\n int x,y;\n public Pair(int x,int y)\n {\n this.x = x;\n this.y = y;\n }\n public int compareTo(Pair o)\n {\n return this.y-o.y;\n }\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.util.*;",
"util.*",
"java",
"import java.math.*;",
"math.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.text.*;",
"text.*",
"java",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"public class Main\n{ \n\n //Life's a bitch\n public static boolean[] sieve(long n)\n {\n boolean[] prime = new boolean[(int)n+1];\n Arrays.fill(prime,true);\n prime[0] = false;\n prime[1] = false;\n long m = (long)Math.sqrt(n);\n for(int i=2;i<=m;i++)\n {\n if(prime[i])\n {\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }\n }\n return prime;\n } \n\n \n static long GCD(long a,long b)\n {\n if(b==0)\n {\n return a;\n }\n return GCD(b,a%b);\n }\n\n static long CountCoPrimes(long n)\n {\n long res = n;\n for(int i=2;i*i<=n;i++)\n {\n if(n%i==0)\n {\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }\n }\n if(n>1)\n {\n res-=res/n;\n }\n return res;\n }\n\n\n \n\n \n\n static boolean prime(int n)\n {\n for(int i=2;i*i<=n;i++)\n {\n if(i%2==0 ||i%3==0)\n {\n return false;\n }\n }\n return true;\n }\n\n \n\n\n \n \n \n public static void main(String[] args) throws IOException\n {\n \n new Main().run();\n \n }\n\n\n \n\n static void reverse(char[] a)\n {\n // char[] a = c.toCharArray();\n int start=0;\n int end = a.length-1;\n while(start!=end)\n {\n char temp = a[start];\n a[start] = a[end];\n a[end] = temp;\n start++;\n end--;\n }\n }\n\n \n\n\n \n \n Scanner in = new Scanner(System.in);\n void run() throws IOException\n {\n \n int[] a = new int[5];\n for(int i=0;i<5;i++){\n a[i] = ni();\n if(a[i]==0){\n printL(i+1);\n break;\n }\n }\n \n\n }\n\n\n\n \n\n \n\n //xor range query\n static long xor(long n)\n {\n\n if(n%4==0)\n {\n return n;\n }\n if(n%4==1)\n {\n return 1;\n }\n if(n%4==2)\n {\n return n+1;\n }\n return 0;\n }\n\n static long xor(long a,long b)\n {\n return xor(b)^xor(a-1);\n }\n\n\n \n\n \n \n \n\n \n \n \n\n \n \n \n\n\n\n \n\n void printL(long a)\n {\n System.out.println(a);\n }\n void printS(String s)\n {\n System.out.println(s);\n }\n\n void printD(Double d)\n {\n System.out.println(d);\n }\n \n \n \n static void swap(char c,char p)\n {\n char t = c;\n c = p;\n p = t;\n }\n\n static long max(long n,long m)\n {\n return Math.max(n,m);\n }\n static long min(long n,long m)\n {\n return Math.min(n,m);\n }\n\n double nd() throws IOException\n {\n return Double.parseDouble(in.next());\n }\n int ni() throws IOException\n {\n return Integer.parseInt(in.next());\n }\n\n long nl() throws IOException\n {\n return Long.parseLong(in.next());\n }\n\n String si() throws IOException\n {\n return in.next();\n }\n\n\n \n \n static int abs(int n)\n {\n return Math.abs(n);\n }\n\n static class Scanner \n {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s){ br = new BufferedReader(new InputStreamReader(s));}\n\n public String next() throws IOException \n {\n while (st == null || !st.hasMoreTokens()) \n {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {return Integer.parseInt(next());}\n \n public long nextLong() throws IOException {return Long.parseLong(next());}\n\n public String nextLine() throws IOException {return br.readLine();}\n\n public boolean ready() throws IOException {return br.ready();}\n\n\n }\n\n \n}",
"Main",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"//Life's a bitch\n public static boolean[] sieve(long n)\n {\n boolean[] prime = new boolean[(int)n+1];\n Arrays.fill(prime,true);\n prime[0] = false;\n prime[1] = false;\n long m = (long)Math.sqrt(n);\n for(int i=2;i<=m;i++)\n {\n if(prime[i])\n {\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }\n }\n return prime;\n }",
"sieve",
"{\n boolean[] prime = new boolean[(int)n+1];\n Arrays.fill(prime,true);\n prime[0] = false;\n prime[1] = false;\n long m = (long)Math.sqrt(n);\n for(int i=2;i<=m;i++)\n {\n if(prime[i])\n {\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }\n }\n return prime;\n }",
"boolean[] prime = new boolean[(int)n+1];",
"prime",
"new boolean[(int)n+1]",
"(int)n+1",
"(int)n",
"1",
"Arrays.fill(prime,true)",
"Arrays.fill",
"Arrays",
"prime",
"true",
"prime[0] = false",
"prime[0]",
"prime",
"0",
"false",
"prime[1] = false",
"prime[1]",
"prime",
"1",
"false",
"long m = (long)Math.sqrt(n);",
"m",
"(long)Math.sqrt(n)",
"Math.sqrt",
"Math",
"n",
"for(int i=2;i<=m;i++)\n {\n if(prime[i])\n {\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }\n }",
"int i=2;",
"int i=2;",
"i",
"2",
"i<=m",
"i",
"m",
"i++",
"i++",
"i",
"{\n if(prime[i])\n {\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }\n }",
"{\n if(prime[i])\n {\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }\n }",
"if(prime[i])\n {\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }",
"prime[i]",
"prime",
"i",
"{\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }",
"for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }",
"int k=i*i;",
"int k=i*i;",
"k",
"i*i",
"i",
"i",
"k<=n",
"k",
"n",
"k+=i",
"k+=i",
"k",
"i",
"{\n prime[k] = false;\n }",
"{\n prime[k] = false;\n }",
"prime[k] = false",
"prime[k]",
"prime",
"k",
"false",
"return prime;",
"prime",
"long n",
"n",
"static long GCD(long a,long b)\n {\n if(b==0)\n {\n return a;\n }\n return GCD(b,a%b);\n }",
"GCD",
"{\n if(b==0)\n {\n return a;\n }\n return GCD(b,a%b);\n }",
"if(b==0)\n {\n return a;\n }",
"b==0",
"b",
"0",
"{\n return a;\n }",
"return a;",
"a",
"return GCD(b,a%b);",
"GCD(b,a%b)",
"GCD",
"b",
"a%b",
"a",
"b",
"long a",
"a",
"long b",
"b",
"static long CountCoPrimes(long n)\n {\n long res = n;\n for(int i=2;i*i<=n;i++)\n {\n if(n%i==0)\n {\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }\n }\n if(n>1)\n {\n res-=res/n;\n }\n return res;\n }",
"CountCoPrimes",
"{\n long res = n;\n for(int i=2;i*i<=n;i++)\n {\n if(n%i==0)\n {\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }\n }\n if(n>1)\n {\n res-=res/n;\n }\n return res;\n }",
"long res = n;",
"res",
"n",
"for(int i=2;i*i<=n;i++)\n {\n if(n%i==0)\n {\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }\n }",
"int i=2;",
"int i=2;",
"i",
"2",
"i*i<=n",
"i*i",
"i",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(n%i==0)\n {\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }\n }",
"{\n if(n%i==0)\n {\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }\n }",
"if(n%i==0)\n {\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }",
"n%i==0",
"n%i",
"n",
"i",
"0",
"{\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }",
"while(n%i==0)\n {\n n/=i;\n }",
"n%i==0",
"n%i",
"n",
"i",
"0",
"{\n n/=i;\n }",
"n/=i",
"n",
"i",
"res-=res/i",
"res",
"res/i",
"res",
"i",
"if(n>1)\n {\n res-=res/n;\n }",
"n>1",
"n",
"1",
"{\n res-=res/n;\n }",
"res-=res/n",
"res",
"res/n",
"res",
"n",
"return res;",
"res",
"long n",
"n",
"static boolean prime(int n)\n {\n for(int i=2;i*i<=n;i++)\n {\n if(i%2==0 ||i%3==0)\n {\n return false;\n }\n }\n return true;\n }",
"prime",
"{\n for(int i=2;i*i<=n;i++)\n {\n if(i%2==0 ||i%3==0)\n {\n return false;\n }\n }\n return true;\n }",
"for(int i=2;i*i<=n;i++)\n {\n if(i%2==0 ||i%3==0)\n {\n return false;\n }\n }",
"int i=2;",
"int i=2;",
"i",
"2",
"i*i<=n",
"i*i",
"i",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(i%2==0 ||i%3==0)\n {\n return false;\n }\n }",
"{\n if(i%2==0 ||i%3==0)\n {\n return false;\n }\n }",
"if(i%2==0 ||i%3==0)\n {\n return false;\n }",
"i%2==0 ||i%3==0",
"i%2==0",
"i%2",
"i",
"2",
"0",
"i%3==0",
"i%3",
"i",
"3",
"0",
"{\n return false;\n }",
"return false;",
"false",
"return true;",
"true",
"int n",
"n",
"public static void main(String[] args) throws IOException\n {\n \n new Main().run();\n \n }",
"main",
"{\n \n new Main().run();\n \n }",
"new Main().run()",
"new Main().run",
"new Main()",
"String[] args",
"args",
"static void reverse(char[] a)\n {\n // char[] a = c.toCharArray();\n int start=0;\n int end = a.length-1;\n while(start!=end)\n {\n char temp = a[start];\n a[start] = a[end];\n a[end] = temp;\n start++;\n end--;\n }\n }",
"reverse",
"{\n // char[] a = c.toCharArray();\n int start=0;\n int end = a.length-1;\n while(start!=end)\n {\n char temp = a[start];\n a[start] = a[end];\n a[end] = temp;\n start++;\n end--;\n }\n }",
"int start=0;",
"start",
"0",
"int end = a.length-1;",
"end",
"a.length-1",
"a.length",
"a",
"a.length",
"1",
"while(start!=end)\n {\n char temp = a[start];\n a[start] = a[end];\n a[end] = temp;\n start++;\n end--;\n }",
"start!=end",
"start",
"end",
"{\n char temp = a[start];\n a[start] = a[end];\n a[end] = temp;\n start++;\n end--;\n }",
"char temp = a[start];",
"temp",
"a[start]",
"a",
"start",
"a[start] = a[end]",
"a[start]",
"a",
"start",
"a[end]",
"a",
"end",
"a[end] = temp",
"a[end]",
"a",
"end",
"temp",
"start++",
"start",
"end--",
"end",
"char[] a",
"a",
"void run() throws IOException\n {\n \n int[] a = new int[5];\n for(int i=0;i<5;i++){\n a[i] = ni();\n if(a[i]==0){\n printL(i+1);\n break;\n }\n }\n \n\n }",
"run",
"{\n \n int[] a = new int[5];\n for(int i=0;i<5;i++){\n a[i] = ni();\n if(a[i]==0){\n printL(i+1);\n break;\n }\n }\n \n\n }",
"int[] a = new int[5];",
"a",
"new int[5]",
"5",
"for(int i=0;i<5;i++){\n a[i] = ni();\n if(a[i]==0){\n printL(i+1);\n break;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<5",
"i",
"5",
"i++",
"i++",
"i",
"{\n a[i] = ni();\n if(a[i]==0){\n printL(i+1);\n break;\n }\n }",
"{\n a[i] = ni();\n if(a[i]==0){\n printL(i+1);\n break;\n }\n }",
"a[i] = ni()",
"a[i]",
"a",
"i",
"ni()",
"ni",
"if(a[i]==0){\n printL(i+1);\n break;\n }",
"a[i]==0",
"a[i]",
"a",
"i",
"0",
"{\n printL(i+1);\n break;\n }",
"printL(i+1)",
"printL",
"i+1",
"i",
"1",
"break;",
"//xor range query\n static long xor(long n)\n {\n\n if(n%4==0)\n {\n return n;\n }\n if(n%4==1)\n {\n return 1;\n }\n if(n%4==2)\n {\n return n+1;\n }\n return 0;\n }",
"xor",
"{\n\n if(n%4==0)\n {\n return n;\n }\n if(n%4==1)\n {\n return 1;\n }\n if(n%4==2)\n {\n return n+1;\n }\n return 0;\n }",
"if(n%4==0)\n {\n return n;\n }",
"n%4==0",
"n%4",
"n",
"4",
"0",
"{\n return n;\n }",
"return n;",
"n",
"if(n%4==1)\n {\n return 1;\n }",
"n%4==1",
"n%4",
"n",
"4",
"1",
"{\n return 1;\n }",
"return 1;",
"1",
"if(n%4==2)\n {\n return n+1;\n }",
"n%4==2",
"n%4",
"n",
"4",
"2",
"{\n return n+1;\n }",
"return n+1;",
"n+1",
"n",
"1",
"return 0;",
"0",
"long n",
"n",
"static long xor(long a,long b)\n {\n return xor(b)^xor(a-1);\n }",
"xor",
"{\n return xor(b)^xor(a-1);\n }",
"return xor(b)^xor(a-1);",
"xor(b)^xor(a-1)",
"xor(b)",
"xor",
"b",
"xor(a-1)",
"xor",
"a-1",
"a",
"1",
"long a",
"a",
"long b",
"b",
"void printL(long a)\n {\n System.out.println(a);\n }",
"printL",
"{\n System.out.println(a);\n }",
"System.out.println(a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a",
"long a",
"a",
"void printS(String s)\n {\n System.out.println(s);\n }",
"printS",
"{\n System.out.println(s);\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"String s",
"s",
"void printD(Double d)\n {\n System.out.println(d);\n }",
"printD",
"{\n System.out.println(d);\n }",
"System.out.println(d)",
"System.out.println",
"System.out",
"System",
"System.out",
"d",
"Double d",
"d",
"static void swap(char c,char p)\n {\n char t = c;\n c = p;\n p = t;\n }",
"swap",
"{\n char t = c;\n c = p;\n p = t;\n }",
"char t = c;",
"t",
"c",
"c = p",
"c",
"p",
"p = t",
"p",
"t",
"char c",
"c",
"char p",
"p",
"static long max(long n,long m)\n {\n return Math.max(n,m);\n }",
"max",
"{\n return Math.max(n,m);\n }",
"return Math.max(n,m);",
"Math.max(n,m)",
"Math.max",
"Math",
"n",
"m",
"long n",
"n",
"long m",
"m",
"static long min(long n,long m)\n {\n return Math.min(n,m);\n }",
"min",
"{\n return Math.min(n,m);\n }",
"return Math.min(n,m);",
"Math.min(n,m)",
"Math.min",
"Math",
"n",
"m",
"long n",
"n",
"long m",
"m",
"double nd() throws IOException\n {\n return Double.parseDouble(in.next());\n }",
"nd",
"{\n return Double.parseDouble(in.next());\n }",
"return Double.parseDouble(in.next());",
"Double.parseDouble(in.next())",
"Double.parseDouble",
"Double",
"in.next()",
"in.next",
"in",
"int ni() throws IOException\n {\n return Integer.parseInt(in.next());\n }",
"ni",
"{\n return Integer.parseInt(in.next());\n }",
"return Integer.parseInt(in.next());",
"Integer.parseInt(in.next())",
"Integer.parseInt",
"Integer",
"in.next()",
"in.next",
"in",
"long nl() throws IOException\n {\n return Long.parseLong(in.next());\n }",
"nl",
"{\n return Long.parseLong(in.next());\n }",
"return Long.parseLong(in.next());",
"Long.parseLong(in.next())",
"Long.parseLong",
"Long",
"in.next()",
"in.next",
"in",
"String si() throws IOException\n {\n return in.next();\n }",
"si",
"{\n return in.next();\n }",
"return in.next();",
"in.next()",
"in.next",
"in",
"static int abs(int n)\n {\n return Math.abs(n);\n }",
"abs",
"{\n return Math.abs(n);\n }",
"return Math.abs(n);",
"Math.abs(n)",
"Math.abs",
"Math",
"n",
"int n",
"n",
"static class Scanner \n {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s){ br = new BufferedReader(new InputStreamReader(s));}\n\n public String next() throws IOException \n {\n while (st == null || !st.hasMoreTokens()) \n {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {return Integer.parseInt(next());}\n \n public long nextLong() throws IOException {return Long.parseLong(next());}\n\n public String nextLine() throws IOException {return br.readLine();}\n\n public boolean ready() throws IOException {return br.ready();}\n\n\n }",
"Scanner",
"StringTokenizer st;",
"st",
"BufferedReader br;",
"br",
"public Scanner(InputStream s){ br = new BufferedReader(new InputStreamReader(s));}",
"Scanner",
"{ br = new BufferedReader(new InputStreamReader(s));}",
"br = new BufferedReader(new InputStreamReader(s))",
"br",
"new BufferedReader(new InputStreamReader(s))",
"InputStream s",
"s",
"public String next() throws IOException \n {\n while (st == null || !st.hasMoreTokens()) \n {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens()) \n {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens()) \n {\n st = new StringTokenizer(br.readLine());\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public int nextInt() throws IOException {return Integer.parseInt(next());}",
"nextInt",
"{return Integer.parseInt(next());}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public long nextLong() throws IOException {return Long.parseLong(next());}",
"nextLong",
"{return Long.parseLong(next());}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public String nextLine() throws IOException {return br.readLine();}",
"nextLine",
"{return br.readLine();}",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"public boolean ready() throws IOException {return br.ready();}",
"ready",
"{return br.ready();}",
"return br.ready();",
"br.ready()",
"br.ready",
"br",
"class Pair implements Comparable<Pair>\n{\n int x,y;\n public Pair(int x,int y)\n {\n this.x = x;\n this.y = y;\n }\n public int compareTo(Pair o)\n {\n return this.y-o.y;\n }\n}",
"Pair",
"int x",
"x",
"y;",
"y",
"public Pair(int x,int y)\n {\n this.x = x;\n this.y = y;\n }",
"Pair",
"{\n this.x = x;\n this.y = y;\n }",
"this.x = x",
"this.x",
"this",
"this.x",
"x",
"this.y = y",
"this.y",
"this",
"this.y",
"y",
"int x",
"x",
"int y",
"y",
"public int compareTo(Pair o)\n {\n return this.y-o.y;\n }",
"compareTo",
"{\n return this.y-o.y;\n }",
"return this.y-o.y;",
"this.y-o.y",
"this.y",
"this",
"this.y",
"o.y",
"o",
"o.y",
"Pair o",
"o",
"Comparable",
"public class Main\n{ \n\n //Life's a bitch\n public static boolean[] sieve(long n)\n {\n boolean[] prime = new boolean[(int)n+1];\n Arrays.fill(prime,true);\n prime[0] = false;\n prime[1] = false;\n long m = (long)Math.sqrt(n);\n for(int i=2;i<=m;i++)\n {\n if(prime[i])\n {\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }\n }\n return prime;\n } \n\n \n static long GCD(long a,long b)\n {\n if(b==0)\n {\n return a;\n }\n return GCD(b,a%b);\n }\n\n static long CountCoPrimes(long n)\n {\n long res = n;\n for(int i=2;i*i<=n;i++)\n {\n if(n%i==0)\n {\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }\n }\n if(n>1)\n {\n res-=res/n;\n }\n return res;\n }\n\n\n \n\n \n\n static boolean prime(int n)\n {\n for(int i=2;i*i<=n;i++)\n {\n if(i%2==0 ||i%3==0)\n {\n return false;\n }\n }\n return true;\n }\n\n \n\n\n \n \n \n public static void main(String[] args) throws IOException\n {\n \n new Main().run();\n \n }\n\n\n \n\n static void reverse(char[] a)\n {\n // char[] a = c.toCharArray();\n int start=0;\n int end = a.length-1;\n while(start!=end)\n {\n char temp = a[start];\n a[start] = a[end];\n a[end] = temp;\n start++;\n end--;\n }\n }\n\n \n\n\n \n \n Scanner in = new Scanner(System.in);\n void run() throws IOException\n {\n \n int[] a = new int[5];\n for(int i=0;i<5;i++){\n a[i] = ni();\n if(a[i]==0){\n printL(i+1);\n break;\n }\n }\n \n\n }\n\n\n\n \n\n \n\n //xor range query\n static long xor(long n)\n {\n\n if(n%4==0)\n {\n return n;\n }\n if(n%4==1)\n {\n return 1;\n }\n if(n%4==2)\n {\n return n+1;\n }\n return 0;\n }\n\n static long xor(long a,long b)\n {\n return xor(b)^xor(a-1);\n }\n\n\n \n\n \n \n \n\n \n \n \n\n \n \n \n\n\n\n \n\n void printL(long a)\n {\n System.out.println(a);\n }\n void printS(String s)\n {\n System.out.println(s);\n }\n\n void printD(Double d)\n {\n System.out.println(d);\n }\n \n \n \n static void swap(char c,char p)\n {\n char t = c;\n c = p;\n p = t;\n }\n\n static long max(long n,long m)\n {\n return Math.max(n,m);\n }\n static long min(long n,long m)\n {\n return Math.min(n,m);\n }\n\n double nd() throws IOException\n {\n return Double.parseDouble(in.next());\n }\n int ni() throws IOException\n {\n return Integer.parseInt(in.next());\n }\n\n long nl() throws IOException\n {\n return Long.parseLong(in.next());\n }\n\n String si() throws IOException\n {\n return in.next();\n }\n\n\n \n \n static int abs(int n)\n {\n return Math.abs(n);\n }\n\n static class Scanner \n {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s){ br = new BufferedReader(new InputStreamReader(s));}\n\n public String next() throws IOException \n {\n while (st == null || !st.hasMoreTokens()) \n {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {return Integer.parseInt(next());}\n \n public long nextLong() throws IOException {return Long.parseLong(next());}\n\n public String nextLine() throws IOException {return br.readLine();}\n\n public boolean ready() throws IOException {return br.ready();}\n\n\n }\n\n \n}",
"public class Main\n{ \n\n //Life's a bitch\n public static boolean[] sieve(long n)\n {\n boolean[] prime = new boolean[(int)n+1];\n Arrays.fill(prime,true);\n prime[0] = false;\n prime[1] = false;\n long m = (long)Math.sqrt(n);\n for(int i=2;i<=m;i++)\n {\n if(prime[i])\n {\n for(int k=i*i;k<=n;k+=i)\n {\n prime[k] = false;\n }\n }\n }\n return prime;\n } \n\n \n static long GCD(long a,long b)\n {\n if(b==0)\n {\n return a;\n }\n return GCD(b,a%b);\n }\n\n static long CountCoPrimes(long n)\n {\n long res = n;\n for(int i=2;i*i<=n;i++)\n {\n if(n%i==0)\n {\n while(n%i==0)\n {\n n/=i;\n }\n res-=res/i;\n }\n }\n if(n>1)\n {\n res-=res/n;\n }\n return res;\n }\n\n\n \n\n \n\n static boolean prime(int n)\n {\n for(int i=2;i*i<=n;i++)\n {\n if(i%2==0 ||i%3==0)\n {\n return false;\n }\n }\n return true;\n }\n\n \n\n\n \n \n \n public static void main(String[] args) throws IOException\n {\n \n new Main().run();\n \n }\n\n\n \n\n static void reverse(char[] a)\n {\n // char[] a = c.toCharArray();\n int start=0;\n int end = a.length-1;\n while(start!=end)\n {\n char temp = a[start];\n a[start] = a[end];\n a[end] = temp;\n start++;\n end--;\n }\n }\n\n \n\n\n \n \n Scanner in = new Scanner(System.in);\n void run() throws IOException\n {\n \n int[] a = new int[5];\n for(int i=0;i<5;i++){\n a[i] = ni();\n if(a[i]==0){\n printL(i+1);\n break;\n }\n }\n \n\n }\n\n\n\n \n\n \n\n //xor range query\n static long xor(long n)\n {\n\n if(n%4==0)\n {\n return n;\n }\n if(n%4==1)\n {\n return 1;\n }\n if(n%4==2)\n {\n return n+1;\n }\n return 0;\n }\n\n static long xor(long a,long b)\n {\n return xor(b)^xor(a-1);\n }\n\n\n \n\n \n \n \n\n \n \n \n\n \n \n \n\n\n\n \n\n void printL(long a)\n {\n System.out.println(a);\n }\n void printS(String s)\n {\n System.out.println(s);\n }\n\n void printD(Double d)\n {\n System.out.println(d);\n }\n \n \n \n static void swap(char c,char p)\n {\n char t = c;\n c = p;\n p = t;\n }\n\n static long max(long n,long m)\n {\n return Math.max(n,m);\n }\n static long min(long n,long m)\n {\n return Math.min(n,m);\n }\n\n double nd() throws IOException\n {\n return Double.parseDouble(in.next());\n }\n int ni() throws IOException\n {\n return Integer.parseInt(in.next());\n }\n\n long nl() throws IOException\n {\n return Long.parseLong(in.next());\n }\n\n String si() throws IOException\n {\n return in.next();\n }\n\n\n \n \n static int abs(int n)\n {\n return Math.abs(n);\n }\n\n static class Scanner \n {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s){ br = new BufferedReader(new InputStreamReader(s));}\n\n public String next() throws IOException \n {\n while (st == null || !st.hasMoreTokens()) \n {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {return Integer.parseInt(next());}\n \n public long nextLong() throws IOException {return Long.parseLong(next());}\n\n public String nextLine() throws IOException {return br.readLine();}\n\n public boolean ready() throws IOException {return br.ready();}\n\n\n }\n\n \n}",
"Main"
]
| import java.io.IOException;
import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.util.*;
import java.math.*;
import java.io.*;
import java.text.*;
import java.math.BigInteger;
public class Main
{
//Life's a bitch
public static boolean[] sieve(long n)
{
boolean[] prime = new boolean[(int)n+1];
Arrays.fill(prime,true);
prime[0] = false;
prime[1] = false;
long m = (long)Math.sqrt(n);
for(int i=2;i<=m;i++)
{
if(prime[i])
{
for(int k=i*i;k<=n;k+=i)
{
prime[k] = false;
}
}
}
return prime;
}
static long GCD(long a,long b)
{
if(b==0)
{
return a;
}
return GCD(b,a%b);
}
static long CountCoPrimes(long n)
{
long res = n;
for(int i=2;i*i<=n;i++)
{
if(n%i==0)
{
while(n%i==0)
{
n/=i;
}
res-=res/i;
}
}
if(n>1)
{
res-=res/n;
}
return res;
}
static boolean prime(int n)
{
for(int i=2;i*i<=n;i++)
{
if(i%2==0 ||i%3==0)
{
return false;
}
}
return true;
}
public static void main(String[] args) throws IOException
{
new Main().run();
}
static void reverse(char[] a)
{
// char[] a = c.toCharArray();
int start=0;
int end = a.length-1;
while(start!=end)
{
char temp = a[start];
a[start] = a[end];
a[end] = temp;
start++;
end--;
}
}
Scanner in = new Scanner(System.in);
void run() throws IOException
{
int[] a = new int[5];
for(int i=0;i<5;i++){
a[i] = ni();
if(a[i]==0){
printL(i+1);
break;
}
}
}
//xor range query
static long xor(long n)
{
if(n%4==0)
{
return n;
}
if(n%4==1)
{
return 1;
}
if(n%4==2)
{
return n+1;
}
return 0;
}
static long xor(long a,long b)
{
return xor(b)^xor(a-1);
}
void printL(long a)
{
System.out.println(a);
}
void printS(String s)
{
System.out.println(s);
}
void printD(Double d)
{
System.out.println(d);
}
static void swap(char c,char p)
{
char t = c;
c = p;
p = t;
}
static long max(long n,long m)
{
return Math.max(n,m);
}
static long min(long n,long m)
{
return Math.min(n,m);
}
double nd() throws IOException
{
return Double.parseDouble(in.next());
}
int ni() throws IOException
{
return Integer.parseInt(in.next());
}
long nl() throws IOException
{
return Long.parseLong(in.next());
}
String si() throws IOException
{
return in.next();
}
static int abs(int n)
{
return Math.abs(n);
}
static class Scanner
{
StringTokenizer st;
BufferedReader br;
public Scanner(InputStream s){ br = new BufferedReader(new InputStreamReader(s));}
public String next() throws IOException
{
while (st == null || !st.hasMoreTokens())
{
st = new StringTokenizer(br.readLine());
}
return st.nextToken();
}
public int nextInt() throws IOException {return Integer.parseInt(next());}
public long nextLong() throws IOException {return Long.parseLong(next());}
public String nextLine() throws IOException {return br.readLine();}
public boolean ready() throws IOException {return br.ready();}
}
}
class Pair implements Comparable<Pair>
{
int x,y;
public Pair(int x,int y)
{
this.x = x;
this.y = y;
}
public int compareTo(Pair o)
{
return this.y-o.y;
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
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,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
2,
18,
13,
13,
17,
14,
2,
13,
17,
30,
14,
2,
13,
17,
30,
0,
13,
2,
18,
13,
2,
13,
17,
17,
3,
30,
0,
13,
2,
18,
13,
2,
13,
17,
17,
3,
4,
18,
18,
13,
13,
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
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
40
],
[
40,
41
],
[
40,
42
],
[
8,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
43,
51
],
[
51,
52
],
[
52,
53
],
[
43,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
75,
81
],
[
72,
82
],
[
68,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
89,
91
],
[
86,
92
],
[
83,
93
],
[
8,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
6,
100
],
[
100,
101
],
[
0,
102
],
[
102,
103
],
[
102,
104
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint x1 = scanner.nextInt();\n\t\tint x2 = scanner.nextInt();\n\t\tint x3 = scanner.nextInt();\n\t\tint x4 = scanner.nextInt();\n\t\tint x5 = scanner.nextInt();\n\t\tint answer = 0;\n\n\t\tint [] array = new int[]{x1, x2, x3, x4, x5};\n\t\tfor (int i =0; i < 5; i++) {\n\t\t\tboolean bool = array[i] == 0;\n\t\t\tif (bool == true) {\n\t\t\t\tif(i == 4) {\n\t\t\t\t\tanswer = array[i - 1] + 1;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tanswer = array[i + 1] - 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(answer);\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint x1 = scanner.nextInt();\n\t\tint x2 = scanner.nextInt();\n\t\tint x3 = scanner.nextInt();\n\t\tint x4 = scanner.nextInt();\n\t\tint x5 = scanner.nextInt();\n\t\tint answer = 0;\n\n\t\tint [] array = new int[]{x1, x2, x3, x4, x5};\n\t\tfor (int i =0; i < 5; i++) {\n\t\t\tboolean bool = array[i] == 0;\n\t\t\tif (bool == true) {\n\t\t\t\tif(i == 4) {\n\t\t\t\t\tanswer = array[i - 1] + 1;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tanswer = array[i + 1] - 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(answer);\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint x1 = scanner.nextInt();\n\t\tint x2 = scanner.nextInt();\n\t\tint x3 = scanner.nextInt();\n\t\tint x4 = scanner.nextInt();\n\t\tint x5 = scanner.nextInt();\n\t\tint answer = 0;\n\n\t\tint [] array = new int[]{x1, x2, x3, x4, x5};\n\t\tfor (int i =0; i < 5; i++) {\n\t\t\tboolean bool = array[i] == 0;\n\t\t\tif (bool == true) {\n\t\t\t\tif(i == 4) {\n\t\t\t\t\tanswer = array[i - 1] + 1;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tanswer = array[i + 1] - 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(answer);\n\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint x1 = scanner.nextInt();\n\t\tint x2 = scanner.nextInt();\n\t\tint x3 = scanner.nextInt();\n\t\tint x4 = scanner.nextInt();\n\t\tint x5 = scanner.nextInt();\n\t\tint answer = 0;\n\n\t\tint [] array = new int[]{x1, x2, x3, x4, x5};\n\t\tfor (int i =0; i < 5; i++) {\n\t\t\tboolean bool = array[i] == 0;\n\t\t\tif (bool == true) {\n\t\t\t\tif(i == 4) {\n\t\t\t\t\tanswer = array[i - 1] + 1;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tanswer = array[i + 1] - 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(answer);\n\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int x1 = scanner.nextInt();",
"x1",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int x2 = scanner.nextInt();",
"x2",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int x3 = scanner.nextInt();",
"x3",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int x4 = scanner.nextInt();",
"x4",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int x5 = scanner.nextInt();",
"x5",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int answer = 0;",
"answer",
"0",
"int [] array = new int[]{x1, x2, x3, x4, x5};",
"array",
"new int[]{x1, x2, x3, x4, x5}",
"for (int i =0; i < 5; i++) {\n\t\t\tboolean bool = array[i] == 0;\n\t\t\tif (bool == true) {\n\t\t\t\tif(i == 4) {\n\t\t\t\t\tanswer = array[i - 1] + 1;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tanswer = array[i + 1] - 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i =0;",
"int i =0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n\t\t\tboolean bool = array[i] == 0;\n\t\t\tif (bool == true) {\n\t\t\t\tif(i == 4) {\n\t\t\t\t\tanswer = array[i - 1] + 1;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tanswer = array[i + 1] - 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tboolean bool = array[i] == 0;\n\t\t\tif (bool == true) {\n\t\t\t\tif(i == 4) {\n\t\t\t\t\tanswer = array[i - 1] + 1;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tanswer = array[i + 1] - 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"boolean bool = array[i] == 0;",
"bool",
"array[i] == 0",
"array[i]",
"array",
"i",
"0",
"if (bool == true) {\n\t\t\t\tif(i == 4) {\n\t\t\t\t\tanswer = array[i - 1] + 1;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tanswer = array[i + 1] - 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"bool == true",
"bool",
"true",
"{\n\t\t\t\tif(i == 4) {\n\t\t\t\t\tanswer = array[i - 1] + 1;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tanswer = array[i + 1] - 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"if(i == 4) {\n\t\t\t\t\tanswer = array[i - 1] + 1;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tanswer = array[i + 1] - 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"i == 4",
"i",
"4",
"{\n\t\t\t\t\tanswer = array[i - 1] + 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"answer = array[i - 1] + 1",
"answer",
"array[i - 1] + 1",
"array[i - 1]",
"array",
"i - 1",
"i",
"1",
"1",
"break;",
"{\n\t\t\t\t\tanswer = array[i + 1] - 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"answer = array[i + 1] - 1",
"answer",
"array[i + 1] - 1",
"array[i + 1]",
"array",
"i + 1",
"i",
"1",
"1",
"break;",
"System.out.println(answer)",
"System.out.println",
"System.out",
"System",
"System.out",
"answer",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint x1 = scanner.nextInt();\n\t\tint x2 = scanner.nextInt();\n\t\tint x3 = scanner.nextInt();\n\t\tint x4 = scanner.nextInt();\n\t\tint x5 = scanner.nextInt();\n\t\tint answer = 0;\n\n\t\tint [] array = new int[]{x1, x2, x3, x4, x5};\n\t\tfor (int i =0; i < 5; i++) {\n\t\t\tboolean bool = array[i] == 0;\n\t\t\tif (bool == true) {\n\t\t\t\tif(i == 4) {\n\t\t\t\t\tanswer = array[i - 1] + 1;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tanswer = array[i + 1] - 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(answer);\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint x1 = scanner.nextInt();\n\t\tint x2 = scanner.nextInt();\n\t\tint x3 = scanner.nextInt();\n\t\tint x4 = scanner.nextInt();\n\t\tint x5 = scanner.nextInt();\n\t\tint answer = 0;\n\n\t\tint [] array = new int[]{x1, x2, x3, x4, x5};\n\t\tfor (int i =0; i < 5; i++) {\n\t\t\tboolean bool = array[i] == 0;\n\t\t\tif (bool == true) {\n\t\t\t\tif(i == 4) {\n\t\t\t\t\tanswer = array[i - 1] + 1;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tanswer = array[i + 1] - 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(answer);\n\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner scanner = new Scanner(System.in);
int x1 = scanner.nextInt();
int x2 = scanner.nextInt();
int x3 = scanner.nextInt();
int x4 = scanner.nextInt();
int x5 = scanner.nextInt();
int answer = 0;
int [] array = new int[]{x1, x2, x3, x4, x5};
for (int i =0; i < 5; i++) {
boolean bool = array[i] == 0;
if (bool == true) {
if(i == 4) {
answer = array[i - 1] + 1;
break;
} else {
answer = array[i + 1] - 1;
break;
}
}
}
System.out.println(answer);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
50,
5
],
[
50,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
15,
20
],
[
20,
21
],
[
20,
22
],
[
15,
23
],
[
23,
24
],
[
24,
25
],
[
15,
26
],
[
27,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
34,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
6,
47
],
[
47,
48
],
[
0,
49
],
[
49,
50
],
[
49,
51
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n int sum = 0;\n for (int i = 0; i < 5; i++) {\n sum += Integer.parseInt(sc.next());\n }\n\n System.out.println(15 - sum);\n sc.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n int sum = 0;\n for (int i = 0; i < 5; i++) {\n sum += Integer.parseInt(sc.next());\n }\n\n System.out.println(15 - sum);\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n int sum = 0;\n for (int i = 0; i < 5; i++) {\n sum += Integer.parseInt(sc.next());\n }\n\n System.out.println(15 - sum);\n sc.close();\n }",
"main",
"{\n\n Scanner sc = new Scanner(System.in);\n\n int sum = 0;\n for (int i = 0; i < 5; i++) {\n sum += Integer.parseInt(sc.next());\n }\n\n System.out.println(15 - sum);\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int sum = 0;",
"sum",
"0",
"for (int i = 0; i < 5; i++) {\n sum += Integer.parseInt(sc.next());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n sum += Integer.parseInt(sc.next());\n }",
"{\n sum += Integer.parseInt(sc.next());\n }",
"sum += Integer.parseInt(sc.next())",
"sum",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"System.out.println(15 - sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"15 - sum",
"15",
"sum",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n int sum = 0;\n for (int i = 0; i < 5; i++) {\n sum += Integer.parseInt(sc.next());\n }\n\n System.out.println(15 - sum);\n sc.close();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n int sum = 0;\n for (int i = 0; i < 5; i++) {\n sum += Integer.parseInt(sc.next());\n }\n\n System.out.println(15 - sum);\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 sum = 0;
for (int i = 0; i < 5; i++) {
sum += Integer.parseInt(sc.next());
}
System.out.println(15 - sum);
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
17,
29,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
57,
5
],
[
57,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
16,
26
],
[
26,
27
],
[
27,
28
],
[
16,
29
],
[
30,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
35,
36
],
[
36,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
44,
53
],
[
6,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
]
| [
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int[] nums = new int[5];\n\n for (int i=0; i<nums.length; i++){\n nums[i] = sc.nextInt();\n if(nums[i]==0){\n System.out.print(i+1);\n return;\n }\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int[] nums = new int[5];\n\n for (int i=0; i<nums.length; i++){\n nums[i] = sc.nextInt();\n if(nums[i]==0){\n System.out.print(i+1);\n return;\n }\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int[] nums = new int[5];\n\n for (int i=0; i<nums.length; i++){\n nums[i] = sc.nextInt();\n if(nums[i]==0){\n System.out.print(i+1);\n return;\n }\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int[] nums = new int[5];\n\n for (int i=0; i<nums.length; i++){\n nums[i] = sc.nextInt();\n if(nums[i]==0){\n System.out.print(i+1);\n return;\n }\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] nums = new int[5];",
"nums",
"new int[5]",
"5",
"for (int i=0; i<nums.length; i++){\n nums[i] = sc.nextInt();\n if(nums[i]==0){\n System.out.print(i+1);\n return;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<nums.length",
"i",
"nums.length",
"nums",
"nums.length",
"i++",
"i++",
"i",
"{\n nums[i] = sc.nextInt();\n if(nums[i]==0){\n System.out.print(i+1);\n return;\n }\n }",
"{\n nums[i] = sc.nextInt();\n if(nums[i]==0){\n System.out.print(i+1);\n return;\n }\n }",
"nums[i] = sc.nextInt()",
"nums[i]",
"nums",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(nums[i]==0){\n System.out.print(i+1);\n return;\n }",
"nums[i]==0",
"nums[i]",
"nums",
"i",
"0",
"{\n System.out.print(i+1);\n return;\n }",
"System.out.print(i+1)",
"System.out.print",
"System.out",
"System",
"System.out",
"i+1",
"i",
"1",
"return;",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int[] nums = new int[5];\n\n for (int i=0; i<nums.length; i++){\n nums[i] = sc.nextInt();\n if(nums[i]==0){\n System.out.print(i+1);\n return;\n }\n }\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int[] nums = new int[5];\n\n for (int i=0; i<nums.length; i++){\n nums[i] = sc.nextInt();\n if(nums[i]==0){\n System.out.print(i+1);\n return;\n }\n }\n }\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int[] nums = new int[5];
for (int i=0; i<nums.length; i++){
nums[i] = sc.nextInt();
if(nums[i]==0){
System.out.print(i+1);
return;
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
17,
11,
1,
0,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
18,
13,
13,
17,
30,
3,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
63,
5
],
[
63,
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
],
[
21,
22
],
[
22,
23
],
[
21,
24
],
[
10,
25
],
[
25,
26
],
[
25,
27
],
[
10,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
28,
38
],
[
38,
39
],
[
39,
40
],
[
28,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
43,
50
],
[
50,
51
],
[
10,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
6,
60
],
[
60,
61
],
[
0,
62
],
[
62,
63
],
[
62,
64
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry(Scanner scanner = new Scanner(System.in)) {\n\t\t\tString data = scanner.nextLine();\n\n\t\t\tString[] dataArray = data.split(\" \");\n\n\t\t\tint index = 0;\n\t\t\tfor (index = 0; index <= dataArray.length; index++) {\n\t\t\t\tif (dataArray[index].equals(\"0\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(index + 1);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry(Scanner scanner = new Scanner(System.in)) {\n\t\t\tString data = scanner.nextLine();\n\n\t\t\tString[] dataArray = data.split(\" \");\n\n\t\t\tint index = 0;\n\t\t\tfor (index = 0; index <= dataArray.length; index++) {\n\t\t\t\tif (dataArray[index].equals(\"0\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(index + 1);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\ttry(Scanner scanner = new Scanner(System.in)) {\n\t\t\tString data = scanner.nextLine();\n\n\t\t\tString[] dataArray = data.split(\" \");\n\n\t\t\tint index = 0;\n\t\t\tfor (index = 0; index <= dataArray.length; index++) {\n\t\t\t\tif (dataArray[index].equals(\"0\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(index + 1);\n\t\t}\n\t}",
"main",
"{\n\t\ttry(Scanner scanner = new Scanner(System.in)) {\n\t\t\tString data = scanner.nextLine();\n\n\t\t\tString[] dataArray = data.split(\" \");\n\n\t\t\tint index = 0;\n\t\t\tfor (index = 0; index <= dataArray.length; index++) {\n\t\t\t\tif (dataArray[index].equals(\"0\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(index + 1);\n\t\t}\n\t}",
"try(Scanner scanner = new Scanner(System.in)) {\n\t\t\tString data = scanner.nextLine();\n\n\t\t\tString[] dataArray = data.split(\" \");\n\n\t\t\tint index = 0;\n\t\t\tfor (index = 0; index <= dataArray.length; index++) {\n\t\t\t\tif (dataArray[index].equals(\"0\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(index + 1);\n\t\t}",
"{\n\t\t\tString data = scanner.nextLine();\n\n\t\t\tString[] dataArray = data.split(\" \");\n\n\t\t\tint index = 0;\n\t\t\tfor (index = 0; index <= dataArray.length; index++) {\n\t\t\t\tif (dataArray[index].equals(\"0\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(index + 1);\n\t\t}",
"Scanner scanner = new Scanner(System.in)",
"Scanner scanner = new Scanner(System.in)",
"new Scanner(System.in)",
"String data = scanner.nextLine();",
"data",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"String[] dataArray = data.split(\" \");",
"dataArray",
"data.split(\" \")",
"data.split",
"data",
"\" \"",
"int index = 0;",
"index",
"0",
"for (index = 0; index <= dataArray.length; index++) {\n\t\t\t\tif (dataArray[index].equals(\"0\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"index = 0;",
"index = 0",
"index",
"0",
"index <= dataArray.length",
"index",
"dataArray.length",
"dataArray",
"dataArray.length",
"index++",
"index++",
"index",
"{\n\t\t\t\tif (dataArray[index].equals(\"0\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif (dataArray[index].equals(\"0\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"if (dataArray[index].equals(\"0\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"dataArray[index].equals(\"0\")",
"dataArray[index].equals",
"dataArray[index]",
"dataArray",
"index",
"\"0\"",
"{\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"break;",
"System.out.println(index + 1)",
"System.out.println",
"System.out",
"System",
"System.out",
"index + 1",
"index",
"1",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry(Scanner scanner = new Scanner(System.in)) {\n\t\t\tString data = scanner.nextLine();\n\n\t\t\tString[] dataArray = data.split(\" \");\n\n\t\t\tint index = 0;\n\t\t\tfor (index = 0; index <= dataArray.length; index++) {\n\t\t\t\tif (dataArray[index].equals(\"0\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(index + 1);\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry(Scanner scanner = new Scanner(System.in)) {\n\t\t\tString data = scanner.nextLine();\n\n\t\t\tString[] dataArray = data.split(\" \");\n\n\t\t\tint index = 0;\n\t\t\tfor (index = 0; index <= dataArray.length; index++) {\n\t\t\t\tif (dataArray[index].equals(\"0\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(index + 1);\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try(Scanner scanner = new Scanner(System.in)) {
String data = scanner.nextLine();
String[] dataArray = data.split(" ");
int index = 0;
for (index = 0; index <= dataArray.length; index++) {
if (dataArray[index].equals("0")) {
break;
}
}
System.out.println(index + 1);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
2,
18,
13,
13,
17,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
59,
5
],
[
59,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
8,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
24,
25
],
[
24,
26
],
[
19,
27
],
[
27,
28
],
[
28,
29
],
[
19,
30
],
[
31,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
39,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
8,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
6,
56
],
[
56,
57
],
[
0,
58
],
[
58,
59
],
[
58,
60
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\npublic static void main(String[] args) {\n\tScanner scn=new Scanner(System.in);\n\tint []arr=new int [5];\n\tint ans=0;\n\tfor(int i=0;i<5;i++) {\n\t\tarr[i]=scn.nextInt();\n\t\tif(arr[i]==0)\n\t\t\tans=i+1;\n\t}\n\tSystem.out.println(ans);\n}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\npublic static void main(String[] args) {\n\tScanner scn=new Scanner(System.in);\n\tint []arr=new int [5];\n\tint ans=0;\n\tfor(int i=0;i<5;i++) {\n\t\tarr[i]=scn.nextInt();\n\t\tif(arr[i]==0)\n\t\t\tans=i+1;\n\t}\n\tSystem.out.println(ans);\n}\n}",
"Main",
"public static void main(String[] args) {\n\tScanner scn=new Scanner(System.in);\n\tint []arr=new int [5];\n\tint ans=0;\n\tfor(int i=0;i<5;i++) {\n\t\tarr[i]=scn.nextInt();\n\t\tif(arr[i]==0)\n\t\t\tans=i+1;\n\t}\n\tSystem.out.println(ans);\n}",
"main",
"{\n\tScanner scn=new Scanner(System.in);\n\tint []arr=new int [5];\n\tint ans=0;\n\tfor(int i=0;i<5;i++) {\n\t\tarr[i]=scn.nextInt();\n\t\tif(arr[i]==0)\n\t\t\tans=i+1;\n\t}\n\tSystem.out.println(ans);\n}",
"Scanner scn=new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"int []arr=new int [5];",
"arr",
"new int [5]",
"5",
"int ans=0;",
"ans",
"0",
"for(int i=0;i<5;i++) {\n\t\tarr[i]=scn.nextInt();\n\t\tif(arr[i]==0)\n\t\t\tans=i+1;\n\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<5",
"i",
"5",
"i++",
"i++",
"i",
"{\n\t\tarr[i]=scn.nextInt();\n\t\tif(arr[i]==0)\n\t\t\tans=i+1;\n\t}",
"{\n\t\tarr[i]=scn.nextInt();\n\t\tif(arr[i]==0)\n\t\t\tans=i+1;\n\t}",
"arr[i]=scn.nextInt()",
"arr[i]",
"arr",
"i",
"scn.nextInt()",
"scn.nextInt",
"scn",
"if(arr[i]==0)\n\t\t\tans=i+1;",
"arr[i]==0",
"arr[i]",
"arr",
"i",
"0",
"ans=i+1",
"ans",
"i+1",
"i",
"1",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\npublic static void main(String[] args) {\n\tScanner scn=new Scanner(System.in);\n\tint []arr=new int [5];\n\tint ans=0;\n\tfor(int i=0;i<5;i++) {\n\t\tarr[i]=scn.nextInt();\n\t\tif(arr[i]==0)\n\t\t\tans=i+1;\n\t}\n\tSystem.out.println(ans);\n}\n}",
"public class Main {\npublic static void main(String[] args) {\n\tScanner scn=new Scanner(System.in);\n\tint []arr=new int [5];\n\tint ans=0;\n\tfor(int i=0;i<5;i++) {\n\t\tarr[i]=scn.nextInt();\n\t\tif(arr[i]==0)\n\t\t\tans=i+1;\n\t}\n\tSystem.out.println(ans);\n}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scn=new Scanner(System.in);
int []arr=new int [5];
int ans=0;
for(int i=0;i<5;i++) {
arr[i]=scn.nextInt();
if(arr[i]==0)
ans=i+1;
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
17,
3,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
71,
5
],
[
71,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
21,
22
],
[
21,
23
],
[
16,
24
],
[
24,
25
],
[
25,
26
],
[
16,
27
],
[
28,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
28,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
58,
67
],
[
6,
68
],
[
68,
69
],
[
0,
70
],
[
70,
71
],
[
70,
72
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner n = new Scanner(System.in) ;\n\n\t\tint[] xList = new int[5];\n\n\t\tfor(int i=0;i<5;i++) {\n\t\t\tint x = n.nextInt();\n\t\t\txList[i] = x;\n\t\t}\n\n\t\tfor(int i=0;i<5;i++) {\n\t\t\tif(xList[i] == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner n = new Scanner(System.in) ;\n\n\t\tint[] xList = new int[5];\n\n\t\tfor(int i=0;i<5;i++) {\n\t\t\tint x = n.nextInt();\n\t\t\txList[i] = x;\n\t\t}\n\n\t\tfor(int i=0;i<5;i++) {\n\t\t\tif(xList[i] == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner n = new Scanner(System.in) ;\n\n\t\tint[] xList = new int[5];\n\n\t\tfor(int i=0;i<5;i++) {\n\t\t\tint x = n.nextInt();\n\t\t\txList[i] = x;\n\t\t}\n\n\t\tfor(int i=0;i<5;i++) {\n\t\t\tif(xList[i] == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tScanner n = new Scanner(System.in) ;\n\n\t\tint[] xList = new int[5];\n\n\t\tfor(int i=0;i<5;i++) {\n\t\t\tint x = n.nextInt();\n\t\t\txList[i] = x;\n\t\t}\n\n\t\tfor(int i=0;i<5;i++) {\n\t\t\tif(xList[i] == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"Scanner n = new Scanner(System.in) ;",
"n",
"new Scanner(System.in)",
"int[] xList = new int[5];",
"xList",
"new int[5]",
"5",
"for(int i=0;i<5;i++) {\n\t\t\tint x = n.nextInt();\n\t\t\txList[i] = x;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<5",
"i",
"5",
"i++",
"i++",
"i",
"{\n\t\t\tint x = n.nextInt();\n\t\t\txList[i] = x;\n\t\t}",
"{\n\t\t\tint x = n.nextInt();\n\t\t\txList[i] = x;\n\t\t}",
"int x = n.nextInt();",
"x",
"n.nextInt()",
"n.nextInt",
"n",
"xList[i] = x",
"xList[i]",
"xList",
"i",
"x",
"for(int i=0;i<5;i++) {\n\t\t\tif(xList[i] == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<5",
"i",
"5",
"i++",
"i++",
"i",
"{\n\t\t\tif(xList[i] == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(xList[i] == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"if(xList[i] == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t\tbreak;\n\t\t\t}",
"xList[i] == 0",
"xList[i]",
"xList",
"i",
"0",
"{\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t\tbreak;\n\t\t\t}",
"System.out.println(i+1)",
"System.out.println",
"System.out",
"System",
"System.out",
"i+1",
"i",
"1",
"break;",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner n = new Scanner(System.in) ;\n\n\t\tint[] xList = new int[5];\n\n\t\tfor(int i=0;i<5;i++) {\n\t\t\tint x = n.nextInt();\n\t\t\txList[i] = x;\n\t\t}\n\n\t\tfor(int i=0;i<5;i++) {\n\t\t\tif(xList[i] == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner n = new Scanner(System.in) ;\n\n\t\tint[] xList = new int[5];\n\n\t\tfor(int i=0;i<5;i++) {\n\t\t\tint x = n.nextInt();\n\t\t\txList[i] = x;\n\t\t}\n\n\t\tfor(int i=0;i<5;i++) {\n\t\t\tif(xList[i] == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner n = new Scanner(System.in) ;
int[] xList = new int[5];
for(int i=0;i<5;i++) {
int x = n.nextInt();
xList[i] = x;
}
for(int i=0;i<5;i++) {
if(xList[i] == 0) {
System.out.println(i+1);
break;
}
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
2,
4,
18,
13,
17,
17,
17,
41,
13,
17,
12,
13,
30,
41,
13,
20,
41,
13,
17,
42,
2,
40,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
17,
3,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
30,
14,
2,
13,
4,
18,
13,
13,
4,
18,
13,
13,
30,
4,
18,
13,
13,
4,
18,
13,
2,
13,
13,
4,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
14,
2,
4,
18,
4,
13,
13,
17,
29,
17,
29,
17,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
13,
14,
2,
13,
17,
29,
13,
14,
2,
13,
13,
29,
13,
14,
2,
13,
13,
29,
4,
13,
2,
13,
13,
13,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
2,
2,
13,
13,
4,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
2,
2,
4,
18,
13,
17,
17,
1,
40,
13,
30,
30,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
2,
2,
4,
18,
13,
13,
17,
0,
18,
13,
2,
2,
4,
18,
13,
13,
17,
13,
41,
13,
20,
29,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
17,
14,
2,
13,
17,
29,
13,
30,
41,
13,
4,
13,
13,
2,
13,
17,
14,
2,
2,
13,
17,
17,
30,
29,
2,
13,
13,
30,
29,
2,
2,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
17,
14,
2,
13,
17,
29,
2,
13,
13,
30,
41,
13,
2,
4,
13,
13,
2,
13,
17,
13,
0,
13,
13,
0,
13,
13,
14,
2,
2,
13,
17,
17,
30,
0,
13,
13,
0,
13,
13,
29,
2,
13,
13,
23,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
370,
8
],
[
370,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
12,
15
],
[
12,
16
],
[
11,
17
],
[
370,
18
],
[
18,
19
],
[
18,
20
],
[
370,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
27,
29
],
[
23,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
30,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
50,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
61,
63
],
[
55,
64
],
[
23,
65
],
[
65,
66
],
[
66,
67
],
[
21,
68
],
[
68,
69
],
[
370,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
76,
87
],
[
87,
88
],
[
88,
89
],
[
76,
90
],
[
91,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
92,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
99,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
99,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
110,
115
],
[
115,
116
],
[
116,
117
],
[
115,
118
],
[
118,
119
],
[
118,
120
],
[
72,
121
],
[
121,
122
],
[
122,
123
],
[
121,
124
],
[
72,
125
],
[
125,
126
],
[
70,
127
],
[
127,
128
],
[
370,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
133,
139
],
[
132,
140
],
[
140,
141
],
[
132,
142
],
[
142,
143
],
[
129,
144
],
[
144,
145
],
[
370,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
149,
153
],
[
153,
154
],
[
148,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
159,
160
],
[
148,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
161,
165
],
[
165,
166
],
[
148,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
174,
176
],
[
172,
177
],
[
148,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
179,
182
],
[
182,
183
],
[
182,
184
],
[
146,
185
],
[
185,
186
],
[
146,
187
],
[
187,
188
],
[
370,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
193,
197
],
[
197,
198
],
[
197,
199
],
[
197,
200
],
[
189,
201
],
[
201,
202
],
[
189,
203
],
[
203,
204
],
[
370,
205
],
[
205,
206
],
[
205,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
210,
211
],
[
211,
212
],
[
207,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
213,
218
],
[
218,
219
],
[
218,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
223,
224
],
[
221,
225
],
[
220,
226
],
[
213,
227
],
[
227,
228
],
[
228,
229
],
[
213,
230
],
[
231,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
234,
235
],
[
234,
236
],
[
231,
237
],
[
237,
238
],
[
238,
239
],
[
238,
240
],
[
237,
241
],
[
241,
242
],
[
241,
243
],
[
244,
244
],
[
244,
245
],
[
245,
246
],
[
246,
247
],
[
244,
248
],
[
244,
249
],
[
231,
250
],
[
250,
251
],
[
251,
252
],
[
251,
253
],
[
254,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
254,
258
],
[
254,
259
],
[
250,
260
],
[
207,
261
],
[
261,
262
],
[
261,
263
],
[
207,
264
],
[
264,
265
],
[
205,
266
],
[
266,
267
],
[
370,
268
],
[
268,
269
],
[
268,
270
],
[
270,
271
],
[
271,
272
],
[
272,
273
],
[
272,
274
],
[
271,
275
],
[
275,
276
],
[
271,
277
],
[
277,
278
],
[
278,
279
],
[
278,
280
],
[
277,
281
],
[
281,
282
],
[
277,
283
],
[
283,
284
],
[
284,
285
],
[
284,
286
],
[
286,
287
],
[
286,
288
],
[
286,
289
],
[
289,
290
],
[
289,
291
],
[
283,
292
],
[
292,
293
],
[
293,
294
],
[
294,
295
],
[
294,
296
],
[
293,
297
],
[
292,
298
],
[
298,
299
],
[
299,
300
],
[
300,
301
],
[
300,
302
],
[
292,
303
],
[
303,
304
],
[
304,
305
],
[
306,
306
],
[
306,
307
],
[
306,
308
],
[
306,
309
],
[
268,
310
],
[
310,
311
],
[
268,
312
],
[
312,
313
],
[
370,
314
],
[
314,
315
],
[
314,
316
],
[
316,
317
],
[
317,
318
],
[
318,
319
],
[
318,
320
],
[
317,
321
],
[
321,
322
],
[
317,
323
],
[
323,
324
],
[
324,
325
],
[
324,
326
],
[
323,
327
],
[
327,
328
],
[
328,
329
],
[
328,
330
],
[
323,
331
],
[
331,
332
],
[
332,
333
],
[
332,
334
],
[
334,
335
],
[
335,
336
],
[
335,
337
],
[
335,
338
],
[
338,
339
],
[
338,
340
],
[
334,
341
],
[
331,
342
],
[
342,
343
],
[
342,
344
],
[
331,
345
],
[
345,
346
],
[
345,
347
],
[
331,
348
],
[
348,
349
],
[
349,
350
],
[
350,
351
],
[
350,
352
],
[
349,
353
],
[
348,
354
],
[
354,
355
],
[
355,
356
],
[
355,
357
],
[
354,
358
],
[
358,
359
],
[
358,
360
],
[
331,
361
],
[
361,
362
],
[
362,
363
],
[
362,
364
],
[
314,
365
],
[
365,
366
],
[
314,
367
],
[
367,
368
],
[
0,
369
],
[
369,
370
],
[
369,
371
]
]
| [
"import java.util.*;\nimport java.io.* ;\n/*\nNOTES:\n-more than 10 digits (10^10), use long\n-prefix sum of 1's and -1's to control flow of highlighting a region\n-log(a)/log(b) = log base b of a\n-create a position array if trying to see if elements show up next to each other sequentially\n i.e. elements 1,2,3 are within 3 spots of each other in an array\n arr[scannedInt - 1] = i; (position of i at p[i] in original)\n- use a freq array when counting instances of an element occurring\n- increment the counter first before simulating anything turn-based (two player game)\n\n */\n\npublic class Main {\n static long mod = (long)(Math.pow(10, 9) + 7);\n public static String alpha = \"zabcdefghijklmnopqrstuvwxy\";\n public static void main(String[] args) throws IOException{\n Scanner scan = new Scanner(System.in);\n long t = 1;\n while (t-- > 0) {\n for(int i = 0; i<5; i++){\n if(scan.nextInt() == 0){\n System.out.println(i+1);\n break;\n }\n }\n }\n scan.close();\n\n }\n\n static ArrayList factors(int n ){\n ArrayList<Integer> facts = new ArrayList<>();\n for(int i = 1; i<=(int)Math.sqrt(n); i++){\n if(n%i == 0){\n if( i == Math.sqrt(n)) facts.add(i);\n else{\n facts.add(i);\n facts.add(n/i);\n }\n }\n }\n Collections.sort(facts);\n return facts;\n }\n\n static boolean isPrime (int n){\n if(factors(n).size() ==2) return true;\n else return false;\n }\n\n\n\n\n\n static long GCD(long a, long b) {\n // Everything divides 0\n if (a == 0) return b;\n if (b == 0) return a;\n\n // base case\n if (a == b) return a;\n\n // a is greater\n if (a > b) return GCD(a-b, b);\n return GCD(a, b-a);\n }\n static long LCM(long a, long b){\n return (a*b)/(GCD(a,b));\n }\n static String rev(String s){\n char[] arr = s.toCharArray();\n for(int i = 0; i<(s.length()+1)/2; i++){\n char temp = arr[i];\n arr[i] = arr[s.length()-i-1];\n arr[s.length()-i-1] = temp;\n }\n String fin = new String(arr);\n return fin;\n }\n static long pow(long a, long N) {\n if (N == 0) return 1;\n else if (N == 1) return a;\n else {\n long R = pow(a,N/2);\n if (N % 2 == 0) {\n return R*R;\n }\n else {\n return R*R*a;\n }\n }\n }\n\n static long powMod(long a, long N) {\n if (N == 0) return 1;\n else if (N == 1) return a % mod;\n else {\n long R = powMod(a,N/2) % mod;\n R *= R;\n R %= mod;\n if (N % 2 == 1) {\n R *= a;\n R %= mod;\n }\n return R % mod;\n }\n }\n\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.* ;",
"io.*",
"java",
"public class Main {\n static long mod = (long)(Math.pow(10, 9) + 7);\n public static String alpha = \"zabcdefghijklmnopqrstuvwxy\";\n public static void main(String[] args) throws IOException{\n Scanner scan = new Scanner(System.in);\n long t = 1;\n while (t-- > 0) {\n for(int i = 0; i<5; i++){\n if(scan.nextInt() == 0){\n System.out.println(i+1);\n break;\n }\n }\n }\n scan.close();\n\n }\n\n static ArrayList factors(int n ){\n ArrayList<Integer> facts = new ArrayList<>();\n for(int i = 1; i<=(int)Math.sqrt(n); i++){\n if(n%i == 0){\n if( i == Math.sqrt(n)) facts.add(i);\n else{\n facts.add(i);\n facts.add(n/i);\n }\n }\n }\n Collections.sort(facts);\n return facts;\n }\n\n static boolean isPrime (int n){\n if(factors(n).size() ==2) return true;\n else return false;\n }\n\n\n\n\n\n static long GCD(long a, long b) {\n // Everything divides 0\n if (a == 0) return b;\n if (b == 0) return a;\n\n // base case\n if (a == b) return a;\n\n // a is greater\n if (a > b) return GCD(a-b, b);\n return GCD(a, b-a);\n }\n static long LCM(long a, long b){\n return (a*b)/(GCD(a,b));\n }\n static String rev(String s){\n char[] arr = s.toCharArray();\n for(int i = 0; i<(s.length()+1)/2; i++){\n char temp = arr[i];\n arr[i] = arr[s.length()-i-1];\n arr[s.length()-i-1] = temp;\n }\n String fin = new String(arr);\n return fin;\n }\n static long pow(long a, long N) {\n if (N == 0) return 1;\n else if (N == 1) return a;\n else {\n long R = pow(a,N/2);\n if (N % 2 == 0) {\n return R*R;\n }\n else {\n return R*R*a;\n }\n }\n }\n\n static long powMod(long a, long N) {\n if (N == 0) return 1;\n else if (N == 1) return a % mod;\n else {\n long R = powMod(a,N/2) % mod;\n R *= R;\n R %= mod;\n if (N % 2 == 1) {\n R *= a;\n R %= mod;\n }\n return R % mod;\n }\n }\n\n}",
"Main",
"static long mod = (long)(Math.pow(10, 9) + 7);",
"mod",
"(long)(Math.pow(10, 9) + 7)",
"Math.pow(10, 9)",
"Math.pow",
"Math",
"10",
"9",
"7",
"public static String alpha = \"zabcdefghijklmnopqrstuvwxy\";",
"alpha",
"\"zabcdefghijklmnopqrstuvwxy\"",
"public static void main(String[] args) throws IOException{\n Scanner scan = new Scanner(System.in);\n long t = 1;\n while (t-- > 0) {\n for(int i = 0; i<5; i++){\n if(scan.nextInt() == 0){\n System.out.println(i+1);\n break;\n }\n }\n }\n scan.close();\n\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n long t = 1;\n while (t-- > 0) {\n for(int i = 0; i<5; i++){\n if(scan.nextInt() == 0){\n System.out.println(i+1);\n break;\n }\n }\n }\n scan.close();\n\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"long t = 1;",
"t",
"1",
"while (t-- > 0) {\n for(int i = 0; i<5; i++){\n if(scan.nextInt() == 0){\n System.out.println(i+1);\n break;\n }\n }\n }",
"t-- > 0",
"t--",
"t",
"0",
"{\n for(int i = 0; i<5; i++){\n if(scan.nextInt() == 0){\n System.out.println(i+1);\n break;\n }\n }\n }",
"for(int i = 0; i<5; i++){\n if(scan.nextInt() == 0){\n System.out.println(i+1);\n break;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<5",
"i",
"5",
"i++",
"i++",
"i",
"{\n if(scan.nextInt() == 0){\n System.out.println(i+1);\n break;\n }\n }",
"{\n if(scan.nextInt() == 0){\n System.out.println(i+1);\n break;\n }\n }",
"if(scan.nextInt() == 0){\n System.out.println(i+1);\n break;\n }",
"scan.nextInt() == 0",
"scan.nextInt()",
"scan.nextInt",
"scan",
"0",
"{\n System.out.println(i+1);\n break;\n }",
"System.out.println(i+1)",
"System.out.println",
"System.out",
"System",
"System.out",
"i+1",
"i",
"1",
"break;",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"static ArrayList factors(int n ){\n ArrayList<Integer> facts = new ArrayList<>();\n for(int i = 1; i<=(int)Math.sqrt(n); i++){\n if(n%i == 0){\n if( i == Math.sqrt(n)) facts.add(i);\n else{\n facts.add(i);\n facts.add(n/i);\n }\n }\n }\n Collections.sort(facts);\n return facts;\n }",
"factors",
"{\n ArrayList<Integer> facts = new ArrayList<>();\n for(int i = 1; i<=(int)Math.sqrt(n); i++){\n if(n%i == 0){\n if( i == Math.sqrt(n)) facts.add(i);\n else{\n facts.add(i);\n facts.add(n/i);\n }\n }\n }\n Collections.sort(facts);\n return facts;\n }",
"ArrayList<Integer> facts = new ArrayList<>();",
"facts",
"new ArrayList<>()",
"for(int i = 1; i<=(int)Math.sqrt(n); i++){\n if(n%i == 0){\n if( i == Math.sqrt(n)) facts.add(i);\n else{\n facts.add(i);\n facts.add(n/i);\n }\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i<=(int)Math.sqrt(n)",
"i",
"(int)Math.sqrt(n)",
"Math.sqrt",
"Math",
"n",
"i++",
"i++",
"i",
"{\n if(n%i == 0){\n if( i == Math.sqrt(n)) facts.add(i);\n else{\n facts.add(i);\n facts.add(n/i);\n }\n }\n }",
"{\n if(n%i == 0){\n if( i == Math.sqrt(n)) facts.add(i);\n else{\n facts.add(i);\n facts.add(n/i);\n }\n }\n }",
"if(n%i == 0){\n if( i == Math.sqrt(n)) facts.add(i);\n else{\n facts.add(i);\n facts.add(n/i);\n }\n }",
"n%i == 0",
"n%i",
"n",
"i",
"0",
"{\n if( i == Math.sqrt(n)) facts.add(i);\n else{\n facts.add(i);\n facts.add(n/i);\n }\n }",
"if( i == Math.sqrt(n)) facts.add(i);\n else{\n facts.add(i);\n facts.add(n/i);\n }",
"i == Math.sqrt(n)",
"i",
"Math.sqrt(n)",
"Math.sqrt",
"Math",
"n",
"facts.add(i)",
"facts.add",
"facts",
"i",
"{\n facts.add(i);\n facts.add(n/i);\n }",
"facts.add(i)",
"facts.add",
"facts",
"i",
"facts.add(n/i)",
"facts.add",
"facts",
"n/i",
"n",
"i",
"Collections.sort(facts)",
"Collections.sort",
"Collections",
"facts",
"return facts;",
"facts",
"int n",
"n",
"static boolean isPrime (int n){\n if(factors(n).size() ==2) return true;\n else return false;\n }",
"isPrime",
"{\n if(factors(n).size() ==2) return true;\n else return false;\n }",
"if(factors(n).size() ==2) return true;\n else return false;",
"factors(n).size() ==2",
"factors(n).size()",
"factors(n).size",
"factors(n)",
"factors",
"n",
"2",
"return true;",
"true",
"return false;",
"false",
"int n",
"n",
"static long GCD(long a, long b) {\n // Everything divides 0\n if (a == 0) return b;\n if (b == 0) return a;\n\n // base case\n if (a == b) return a;\n\n // a is greater\n if (a > b) return GCD(a-b, b);\n return GCD(a, b-a);\n }",
"GCD",
"{\n // Everything divides 0\n if (a == 0) return b;\n if (b == 0) return a;\n\n // base case\n if (a == b) return a;\n\n // a is greater\n if (a > b) return GCD(a-b, b);\n return GCD(a, b-a);\n }",
"if (a == 0) return b;",
"a == 0",
"a",
"0",
"return b;",
"b",
"if (b == 0) return a;",
"b == 0",
"b",
"0",
"return a;",
"a",
"if (a == b) return a;",
"a == b",
"a",
"b",
"return a;",
"a",
"if (a > b) return GCD(a-b, b);",
"a > b",
"a",
"b",
"return GCD(a-b, b);",
"GCD(a-b, b)",
"GCD",
"a-b",
"a",
"b",
"b",
"return GCD(a, b-a);",
"GCD(a, b-a)",
"GCD",
"a",
"b-a",
"b",
"a",
"long a",
"a",
"long b",
"b",
"static long LCM(long a, long b){\n return (a*b)/(GCD(a,b));\n }",
"LCM",
"{\n return (a*b)/(GCD(a,b));\n }",
"return (a*b)/(GCD(a,b));",
"(a*b)/(GCD(a,b))",
"(a*b)",
"a",
"b",
"(GCD(a,b))",
"GCD",
"a",
"b",
"long a",
"a",
"long b",
"b",
"static String rev(String s){\n char[] arr = s.toCharArray();\n for(int i = 0; i<(s.length()+1)/2; i++){\n char temp = arr[i];\n arr[i] = arr[s.length()-i-1];\n arr[s.length()-i-1] = temp;\n }\n String fin = new String(arr);\n return fin;\n }",
"rev",
"{\n char[] arr = s.toCharArray();\n for(int i = 0; i<(s.length()+1)/2; i++){\n char temp = arr[i];\n arr[i] = arr[s.length()-i-1];\n arr[s.length()-i-1] = temp;\n }\n String fin = new String(arr);\n return fin;\n }",
"char[] arr = s.toCharArray();",
"arr",
"s.toCharArray()",
"s.toCharArray",
"s",
"for(int i = 0; i<(s.length()+1)/2; i++){\n char temp = arr[i];\n arr[i] = arr[s.length()-i-1];\n arr[s.length()-i-1] = temp;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<(s.length()+1)/2",
"i",
"(s.length()+1)/2",
"(s.length()+1)",
"s.length()",
"s.length",
"s",
"1",
"2",
"i++",
"i++",
"i",
"{\n char temp = arr[i];\n arr[i] = arr[s.length()-i-1];\n arr[s.length()-i-1] = temp;\n }",
"{\n char temp = arr[i];\n arr[i] = arr[s.length()-i-1];\n arr[s.length()-i-1] = temp;\n }",
"char temp = arr[i];",
"temp",
"arr[i]",
"arr",
"i",
"arr[i] = arr[s.length()-i-1]",
"arr[i]",
"arr",
"i",
"arr[s.length()-i-1]",
"arr",
"s.length()-i-1",
"s.length()-i-1",
"s.length()",
"s.length",
"s",
"i",
"1",
"arr[s.length()-i-1] = temp",
"arr[s.length()-i-1]",
"arr",
"s.length()-i-1",
"s.length()-i-1",
"s.length()",
"s.length",
"s",
"i",
"1",
"temp",
"String fin = new String(arr);",
"fin",
"new String(arr)",
"return fin;",
"fin",
"String s",
"s",
"static long pow(long a, long N) {\n if (N == 0) return 1;\n else if (N == 1) return a;\n else {\n long R = pow(a,N/2);\n if (N % 2 == 0) {\n return R*R;\n }\n else {\n return R*R*a;\n }\n }\n }",
"pow",
"{\n if (N == 0) return 1;\n else if (N == 1) return a;\n else {\n long R = pow(a,N/2);\n if (N % 2 == 0) {\n return R*R;\n }\n else {\n return R*R*a;\n }\n }\n }",
"if (N == 0) return 1;\n else if (N == 1) return a;\n else {\n long R = pow(a,N/2);\n if (N % 2 == 0) {\n return R*R;\n }\n else {\n return R*R*a;\n }\n }",
"N == 0",
"N",
"0",
"return 1;",
"1",
"if (N == 1) return a;\n else {\n long R = pow(a,N/2);\n if (N % 2 == 0) {\n return R*R;\n }\n else {\n return R*R*a;\n }\n }",
"N == 1",
"N",
"1",
"return a;",
"a",
"{\n long R = pow(a,N/2);\n if (N % 2 == 0) {\n return R*R;\n }\n else {\n return R*R*a;\n }\n }",
"long R = pow(a,N/2);",
"R",
"pow(a,N/2)",
"pow",
"a",
"N/2",
"N",
"2",
"if (N % 2 == 0) {\n return R*R;\n }\n else {\n return R*R*a;\n }",
"N % 2 == 0",
"N % 2",
"N",
"2",
"0",
"{\n return R*R;\n }",
"return R*R;",
"R*R",
"R",
"R",
"{\n return R*R*a;\n }",
"return R*R*a;",
"R*R*a",
"R*R*a",
"R",
"R",
"a",
"long a",
"a",
"long N",
"N",
"static long powMod(long a, long N) {\n if (N == 0) return 1;\n else if (N == 1) return a % mod;\n else {\n long R = powMod(a,N/2) % mod;\n R *= R;\n R %= mod;\n if (N % 2 == 1) {\n R *= a;\n R %= mod;\n }\n return R % mod;\n }\n }",
"powMod",
"{\n if (N == 0) return 1;\n else if (N == 1) return a % mod;\n else {\n long R = powMod(a,N/2) % mod;\n R *= R;\n R %= mod;\n if (N % 2 == 1) {\n R *= a;\n R %= mod;\n }\n return R % mod;\n }\n }",
"if (N == 0) return 1;\n else if (N == 1) return a % mod;\n else {\n long R = powMod(a,N/2) % mod;\n R *= R;\n R %= mod;\n if (N % 2 == 1) {\n R *= a;\n R %= mod;\n }\n return R % mod;\n }",
"N == 0",
"N",
"0",
"return 1;",
"1",
"if (N == 1) return a % mod;\n else {\n long R = powMod(a,N/2) % mod;\n R *= R;\n R %= mod;\n if (N % 2 == 1) {\n R *= a;\n R %= mod;\n }\n return R % mod;\n }",
"N == 1",
"N",
"1",
"return a % mod;",
"a % mod",
"a",
"mod",
"{\n long R = powMod(a,N/2) % mod;\n R *= R;\n R %= mod;\n if (N % 2 == 1) {\n R *= a;\n R %= mod;\n }\n return R % mod;\n }",
"long R = powMod(a,N/2) % mod;",
"R",
"powMod(a,N/2) % mod",
"powMod(a,N/2)",
"powMod",
"a",
"N/2",
"N",
"2",
"mod",
"R *= R",
"R",
"R",
"R %= mod",
"R",
"mod",
"if (N % 2 == 1) {\n R *= a;\n R %= mod;\n }",
"N % 2 == 1",
"N % 2",
"N",
"2",
"1",
"{\n R *= a;\n R %= mod;\n }",
"R *= a",
"R",
"a",
"R %= mod",
"R",
"mod",
"return R % mod;",
"R % mod",
"R",
"mod",
"long a",
"a",
"long N",
"N",
"public class Main {\n static long mod = (long)(Math.pow(10, 9) + 7);\n public static String alpha = \"zabcdefghijklmnopqrstuvwxy\";\n public static void main(String[] args) throws IOException{\n Scanner scan = new Scanner(System.in);\n long t = 1;\n while (t-- > 0) {\n for(int i = 0; i<5; i++){\n if(scan.nextInt() == 0){\n System.out.println(i+1);\n break;\n }\n }\n }\n scan.close();\n\n }\n\n static ArrayList factors(int n ){\n ArrayList<Integer> facts = new ArrayList<>();\n for(int i = 1; i<=(int)Math.sqrt(n); i++){\n if(n%i == 0){\n if( i == Math.sqrt(n)) facts.add(i);\n else{\n facts.add(i);\n facts.add(n/i);\n }\n }\n }\n Collections.sort(facts);\n return facts;\n }\n\n static boolean isPrime (int n){\n if(factors(n).size() ==2) return true;\n else return false;\n }\n\n\n\n\n\n static long GCD(long a, long b) {\n // Everything divides 0\n if (a == 0) return b;\n if (b == 0) return a;\n\n // base case\n if (a == b) return a;\n\n // a is greater\n if (a > b) return GCD(a-b, b);\n return GCD(a, b-a);\n }\n static long LCM(long a, long b){\n return (a*b)/(GCD(a,b));\n }\n static String rev(String s){\n char[] arr = s.toCharArray();\n for(int i = 0; i<(s.length()+1)/2; i++){\n char temp = arr[i];\n arr[i] = arr[s.length()-i-1];\n arr[s.length()-i-1] = temp;\n }\n String fin = new String(arr);\n return fin;\n }\n static long pow(long a, long N) {\n if (N == 0) return 1;\n else if (N == 1) return a;\n else {\n long R = pow(a,N/2);\n if (N % 2 == 0) {\n return R*R;\n }\n else {\n return R*R*a;\n }\n }\n }\n\n static long powMod(long a, long N) {\n if (N == 0) return 1;\n else if (N == 1) return a % mod;\n else {\n long R = powMod(a,N/2) % mod;\n R *= R;\n R %= mod;\n if (N % 2 == 1) {\n R *= a;\n R %= mod;\n }\n return R % mod;\n }\n }\n\n}",
"public class Main {\n static long mod = (long)(Math.pow(10, 9) + 7);\n public static String alpha = \"zabcdefghijklmnopqrstuvwxy\";\n public static void main(String[] args) throws IOException{\n Scanner scan = new Scanner(System.in);\n long t = 1;\n while (t-- > 0) {\n for(int i = 0; i<5; i++){\n if(scan.nextInt() == 0){\n System.out.println(i+1);\n break;\n }\n }\n }\n scan.close();\n\n }\n\n static ArrayList factors(int n ){\n ArrayList<Integer> facts = new ArrayList<>();\n for(int i = 1; i<=(int)Math.sqrt(n); i++){\n if(n%i == 0){\n if( i == Math.sqrt(n)) facts.add(i);\n else{\n facts.add(i);\n facts.add(n/i);\n }\n }\n }\n Collections.sort(facts);\n return facts;\n }\n\n static boolean isPrime (int n){\n if(factors(n).size() ==2) return true;\n else return false;\n }\n\n\n\n\n\n static long GCD(long a, long b) {\n // Everything divides 0\n if (a == 0) return b;\n if (b == 0) return a;\n\n // base case\n if (a == b) return a;\n\n // a is greater\n if (a > b) return GCD(a-b, b);\n return GCD(a, b-a);\n }\n static long LCM(long a, long b){\n return (a*b)/(GCD(a,b));\n }\n static String rev(String s){\n char[] arr = s.toCharArray();\n for(int i = 0; i<(s.length()+1)/2; i++){\n char temp = arr[i];\n arr[i] = arr[s.length()-i-1];\n arr[s.length()-i-1] = temp;\n }\n String fin = new String(arr);\n return fin;\n }\n static long pow(long a, long N) {\n if (N == 0) return 1;\n else if (N == 1) return a;\n else {\n long R = pow(a,N/2);\n if (N % 2 == 0) {\n return R*R;\n }\n else {\n return R*R*a;\n }\n }\n }\n\n static long powMod(long a, long N) {\n if (N == 0) return 1;\n else if (N == 1) return a % mod;\n else {\n long R = powMod(a,N/2) % mod;\n R *= R;\n R %= mod;\n if (N % 2 == 1) {\n R *= a;\n R %= mod;\n }\n return R % mod;\n }\n }\n\n}",
"Main"
]
| import java.util.*;
import java.io.* ;
/*
NOTES:
-more than 10 digits (10^10), use long
-prefix sum of 1's and -1's to control flow of highlighting a region
-log(a)/log(b) = log base b of a
-create a position array if trying to see if elements show up next to each other sequentially
i.e. elements 1,2,3 are within 3 spots of each other in an array
arr[scannedInt - 1] = i; (position of i at p[i] in original)
- use a freq array when counting instances of an element occurring
- increment the counter first before simulating anything turn-based (two player game)
*/
public class Main {
static long mod = (long)(Math.pow(10, 9) + 7);
public static String alpha = "zabcdefghijklmnopqrstuvwxy";
public static void main(String[] args) throws IOException{
Scanner scan = new Scanner(System.in);
long t = 1;
while (t-- > 0) {
for(int i = 0; i<5; i++){
if(scan.nextInt() == 0){
System.out.println(i+1);
break;
}
}
}
scan.close();
}
static ArrayList factors(int n ){
ArrayList<Integer> facts = new ArrayList<>();
for(int i = 1; i<=(int)Math.sqrt(n); i++){
if(n%i == 0){
if( i == Math.sqrt(n)) facts.add(i);
else{
facts.add(i);
facts.add(n/i);
}
}
}
Collections.sort(facts);
return facts;
}
static boolean isPrime (int n){
if(factors(n).size() ==2) return true;
else return false;
}
static long GCD(long a, long b) {
// Everything divides 0
if (a == 0) return b;
if (b == 0) return a;
// base case
if (a == b) return a;
// a is greater
if (a > b) return GCD(a-b, b);
return GCD(a, b-a);
}
static long LCM(long a, long b){
return (a*b)/(GCD(a,b));
}
static String rev(String s){
char[] arr = s.toCharArray();
for(int i = 0; i<(s.length()+1)/2; i++){
char temp = arr[i];
arr[i] = arr[s.length()-i-1];
arr[s.length()-i-1] = temp;
}
String fin = new String(arr);
return fin;
}
static long pow(long a, long N) {
if (N == 0) return 1;
else if (N == 1) return a;
else {
long R = pow(a,N/2);
if (N % 2 == 0) {
return R*R;
}
else {
return R*R*a;
}
}
}
static long powMod(long a, long N) {
if (N == 0) return 1;
else if (N == 1) return a % mod;
else {
long R = powMod(a,N/2) % mod;
R *= R;
R %= mod;
if (N % 2 == 1) {
R *= a;
R %= mod;
}
return R % mod;
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
103,
17
],
[
103,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
20,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
20,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
20,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
20,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
20,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
49,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
60,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
71,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
82,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
18,
100
],
[
100,
101
],
[
0,
102
],
[
102,
103
],
[
102,
104
]
]
| [
"import java.io.*;\nimport java.util.Scanner;\nimport java.util.Arrays;\nimport java.util.ArrayList;\nimport java.math.BigDecimal;\n\npublic class Main{\n\n public static void main(String[] args){\n //START\n\n Scanner sc=new Scanner(System.in);\n\n int A=sc.nextInt();\n int B=sc.nextInt();\n int C=sc.nextInt();\n int D=sc.nextInt();\n int E=sc.nextInt();\n\n if(A==0){\n System.out.println(\"1\");\n }else if(B==0){\n System.out.println(\"2\");\n }else if(C==0){\n System.out.println(\"3\");\n }else if(D==0){\n System.out.println(\"4\");\n }else{\n System.out.println(\"5\");\n }\n\n\n\n\n //END\n }\n}\n\n",
"import java.io.*;",
"io.*",
"java",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"public class Main{\n\n public static void main(String[] args){\n //START\n\n Scanner sc=new Scanner(System.in);\n\n int A=sc.nextInt();\n int B=sc.nextInt();\n int C=sc.nextInt();\n int D=sc.nextInt();\n int E=sc.nextInt();\n\n if(A==0){\n System.out.println(\"1\");\n }else if(B==0){\n System.out.println(\"2\");\n }else if(C==0){\n System.out.println(\"3\");\n }else if(D==0){\n System.out.println(\"4\");\n }else{\n System.out.println(\"5\");\n }\n\n\n\n\n //END\n }\n}",
"Main",
"public static void main(String[] args){\n //START\n\n Scanner sc=new Scanner(System.in);\n\n int A=sc.nextInt();\n int B=sc.nextInt();\n int C=sc.nextInt();\n int D=sc.nextInt();\n int E=sc.nextInt();\n\n if(A==0){\n System.out.println(\"1\");\n }else if(B==0){\n System.out.println(\"2\");\n }else if(C==0){\n System.out.println(\"3\");\n }else if(D==0){\n System.out.println(\"4\");\n }else{\n System.out.println(\"5\");\n }\n\n\n\n\n //END\n }",
"main",
"{\n //START\n\n Scanner sc=new Scanner(System.in);\n\n int A=sc.nextInt();\n int B=sc.nextInt();\n int C=sc.nextInt();\n int D=sc.nextInt();\n int E=sc.nextInt();\n\n if(A==0){\n System.out.println(\"1\");\n }else if(B==0){\n System.out.println(\"2\");\n }else if(C==0){\n System.out.println(\"3\");\n }else if(D==0){\n System.out.println(\"4\");\n }else{\n System.out.println(\"5\");\n }\n\n\n\n\n //END\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int A=sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int B=sc.nextInt();",
"B",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int C=sc.nextInt();",
"C",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int D=sc.nextInt();",
"D",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int E=sc.nextInt();",
"E",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(A==0){\n System.out.println(\"1\");\n }else if(B==0){\n System.out.println(\"2\");\n }else if(C==0){\n System.out.println(\"3\");\n }else if(D==0){\n System.out.println(\"4\");\n }else{\n System.out.println(\"5\");\n }",
"A==0",
"A",
"0",
"{\n System.out.println(\"1\");\n }",
"System.out.println(\"1\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"1\"",
"if(B==0){\n System.out.println(\"2\");\n }else if(C==0){\n System.out.println(\"3\");\n }else if(D==0){\n System.out.println(\"4\");\n }else{\n System.out.println(\"5\");\n }",
"B==0",
"B",
"0",
"{\n System.out.println(\"2\");\n }",
"System.out.println(\"2\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"2\"",
"if(C==0){\n System.out.println(\"3\");\n }else if(D==0){\n System.out.println(\"4\");\n }else{\n System.out.println(\"5\");\n }",
"C==0",
"C",
"0",
"{\n System.out.println(\"3\");\n }",
"System.out.println(\"3\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"3\"",
"if(D==0){\n System.out.println(\"4\");\n }else{\n System.out.println(\"5\");\n }",
"D==0",
"D",
"0",
"{\n System.out.println(\"4\");\n }",
"System.out.println(\"4\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"4\"",
"{\n System.out.println(\"5\");\n }",
"System.out.println(\"5\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"5\"",
"String[] args",
"args",
"public class Main{\n\n public static void main(String[] args){\n //START\n\n Scanner sc=new Scanner(System.in);\n\n int A=sc.nextInt();\n int B=sc.nextInt();\n int C=sc.nextInt();\n int D=sc.nextInt();\n int E=sc.nextInt();\n\n if(A==0){\n System.out.println(\"1\");\n }else if(B==0){\n System.out.println(\"2\");\n }else if(C==0){\n System.out.println(\"3\");\n }else if(D==0){\n System.out.println(\"4\");\n }else{\n System.out.println(\"5\");\n }\n\n\n\n\n //END\n }\n}",
"public class Main{\n\n public static void main(String[] args){\n //START\n\n Scanner sc=new Scanner(System.in);\n\n int A=sc.nextInt();\n int B=sc.nextInt();\n int C=sc.nextInt();\n int D=sc.nextInt();\n int E=sc.nextInt();\n\n if(A==0){\n System.out.println(\"1\");\n }else if(B==0){\n System.out.println(\"2\");\n }else if(C==0){\n System.out.println(\"3\");\n }else if(D==0){\n System.out.println(\"4\");\n }else{\n System.out.println(\"5\");\n }\n\n\n\n\n //END\n }\n}",
"Main"
]
| import java.io.*;
import java.util.Scanner;
import java.util.Arrays;
import java.util.ArrayList;
import java.math.BigDecimal;
public class Main{
public static void main(String[] args){
//START
Scanner sc=new Scanner(System.in);
int A=sc.nextInt();
int B=sc.nextInt();
int C=sc.nextInt();
int D=sc.nextInt();
int E=sc.nextInt();
if(A==0){
System.out.println("1");
}else if(B==0){
System.out.println("2");
}else if(C==0){
System.out.println("3");
}else if(D==0){
System.out.println("4");
}else{
System.out.println("5");
}
//END
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
17,
29,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
52,
5
],
[
52,
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
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
34,
38
],
[
33,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
39,
48
],
[
6,
49
],
[
49,
50
],
[
0,
51
],
[
51,
52
],
[
51,
53
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in);) {\n for(int i = 0; i < 5; i++) {\n if(scanner.nextInt() == 0) {\n System.out.println(i + 1);\n return;\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in);) {\n for(int i = 0; i < 5; i++) {\n if(scanner.nextInt() == 0) {\n System.out.println(i + 1);\n return;\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in);) {\n for(int i = 0; i < 5; i++) {\n if(scanner.nextInt() == 0) {\n System.out.println(i + 1);\n return;\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"main",
"{\n try (Scanner scanner = new Scanner(System.in);) {\n for(int i = 0; i < 5; i++) {\n if(scanner.nextInt() == 0) {\n System.out.println(i + 1);\n return;\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"try (Scanner scanner = new Scanner(System.in);) {\n for(int i = 0; i < 5; i++) {\n if(scanner.nextInt() == 0) {\n System.out.println(i + 1);\n return;\n }\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 for(int i = 0; i < 5; i++) {\n if(scanner.nextInt() == 0) {\n System.out.println(i + 1);\n return;\n }\n }\n }",
"Scanner scanner = new Scanner(System.in)",
"Scanner scanner = new Scanner(System.in)",
"new Scanner(System.in)",
"for(int i = 0; i < 5; i++) {\n if(scanner.nextInt() == 0) {\n System.out.println(i + 1);\n return;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n if(scanner.nextInt() == 0) {\n System.out.println(i + 1);\n return;\n }\n }",
"{\n if(scanner.nextInt() == 0) {\n System.out.println(i + 1);\n return;\n }\n }",
"if(scanner.nextInt() == 0) {\n System.out.println(i + 1);\n return;\n }",
"scanner.nextInt() == 0",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"0",
"{\n System.out.println(i + 1);\n return;\n }",
"System.out.println(i + 1)",
"System.out.println",
"System.out",
"System",
"System.out",
"i + 1",
"i",
"1",
"return;",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in);) {\n for(int i = 0; i < 5; i++) {\n if(scanner.nextInt() == 0) {\n System.out.println(i + 1);\n return;\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in);) {\n for(int i = 0; i < 5; i++) {\n if(scanner.nextInt() == 0) {\n System.out.println(i + 1);\n return;\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner scanner = new Scanner(System.in);) {
for(int i = 0; i < 5; i++) {
if(scanner.nextInt() == 0) {
System.out.println(i + 1);
return;
}
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
69,
8
],
[
69,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
24,
25
],
[
24,
26
],
[
19,
27
],
[
27,
28
],
[
28,
29
],
[
19,
30
],
[
31,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
11,
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
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
9,
66
],
[
66,
67
],
[
0,
68
],
[
68,
69
],
[
68,
70
]
]
| [
"import java.util.*;\nimport java.io.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] a = new int[5];\n for (int i = 0; i < 5; i++) {\n a[i] = sc.nextInt();\n }\n \n for(int i = 0; i < 5; i++) {\n if (a[i] == 0)\n System.out.println(i + 1);\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] a = new int[5];\n for (int i = 0; i < 5; i++) {\n a[i] = sc.nextInt();\n }\n \n for(int i = 0; i < 5; i++) {\n if (a[i] == 0)\n System.out.println(i + 1);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] a = new int[5];\n for (int i = 0; i < 5; i++) {\n a[i] = sc.nextInt();\n }\n \n for(int i = 0; i < 5; i++) {\n if (a[i] == 0)\n System.out.println(i + 1);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int[] a = new int[5];\n for (int i = 0; i < 5; i++) {\n a[i] = sc.nextInt();\n }\n \n for(int i = 0; i < 5; i++) {\n if (a[i] == 0)\n System.out.println(i + 1);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] a = new int[5];",
"a",
"new int[5]",
"5",
"for (int i = 0; i < 5; i++) {\n a[i] = sc.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n a[i] = sc.nextInt();\n }",
"{\n a[i] = sc.nextInt();\n }",
"a[i] = sc.nextInt()",
"a[i]",
"a",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < 5; i++) {\n if (a[i] == 0)\n System.out.println(i + 1);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n if (a[i] == 0)\n System.out.println(i + 1);\n }",
"{\n if (a[i] == 0)\n System.out.println(i + 1);\n }",
"if (a[i] == 0)\n System.out.println(i + 1);",
"a[i] == 0",
"a[i]",
"a",
"i",
"0",
"System.out.println(i + 1)",
"System.out.println",
"System.out",
"System",
"System.out",
"i + 1",
"i",
"1",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] a = new int[5];\n for (int i = 0; i < 5; i++) {\n a[i] = sc.nextInt();\n }\n \n for(int i = 0; i < 5; i++) {\n if (a[i] == 0)\n System.out.println(i + 1);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] a = new int[5];\n for (int i = 0; i < 5; i++) {\n a[i] = sc.nextInt();\n }\n \n for(int i = 0; i < 5; i++) {\n if (a[i] == 0)\n System.out.println(i + 1);\n }\n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] a = new int[5];
for (int i = 0; i < 5; i++) {
a[i] = sc.nextInt();
}
for(int i = 0; i < 5; i++) {
if (a[i] == 0)
System.out.println(i + 1);
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
41,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
20,
38,
30,
4,
18,
13,
30,
0,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
40,
18,
13,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
14,
2,
18,
13,
13,
17,
0,
13,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
96,
5
],
[
96,
6
],
[
6,
7
],
[
96,
8
],
[
8,
9
],
[
96,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
12,
16
],
[
16,
17
],
[
17,
18
],
[
12,
19
],
[
19,
20
],
[
20,
21
],
[
10,
22
],
[
22,
23
],
[
96,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
30,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
40,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
96,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
65,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
77,
83
],
[
83,
84
],
[
83,
85
],
[
96,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
0,
95
],
[
95,
96
],
[
95,
97
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Main main = new Main();\n main.solve();\n main.show();\n }\n\n int[] a;\n int ans;\n\n public Main() {\n Scanner sc = new Scanner(System.in);\n try {\n a = new int[6];\n for (int i = 0; i < 5; i++) {\n int x = sc.nextInt();\n a[x]++; \n }\n } finally {\n sc.close();\n }\n }\n \n void solve() {\n for (int i = 1; i <= 5; i++) if (a[i] == 0) ans = i;\n }\n\n void show() {\n System.out.println(ans);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Main main = new Main();\n main.solve();\n main.show();\n }\n\n int[] a;\n int ans;\n\n public Main() {\n Scanner sc = new Scanner(System.in);\n try {\n a = new int[6];\n for (int i = 0; i < 5; i++) {\n int x = sc.nextInt();\n a[x]++; \n }\n } finally {\n sc.close();\n }\n }\n \n void solve() {\n for (int i = 1; i <= 5; i++) if (a[i] == 0) ans = i;\n }\n\n void show() {\n System.out.println(ans);\n }\n}",
"Main",
"int[] a;",
"a",
"int ans;",
"ans",
"public static void main(String[] args) {\n Main main = new Main();\n main.solve();\n main.show();\n }",
"main",
"{\n Main main = new Main();\n main.solve();\n main.show();\n }",
"Main main = new Main();",
"main",
"new Main()",
"main.solve()",
"main.solve",
"main",
"main.show()",
"main.show",
"main",
"String[] args",
"args",
"public Main() {\n Scanner sc = new Scanner(System.in);\n try {\n a = new int[6];\n for (int i = 0; i < 5; i++) {\n int x = sc.nextInt();\n a[x]++; \n }\n } finally {\n sc.close();\n }\n }",
"Main",
"{\n Scanner sc = new Scanner(System.in);\n try {\n a = new int[6];\n for (int i = 0; i < 5; i++) {\n int x = sc.nextInt();\n a[x]++; \n }\n } finally {\n sc.close();\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"try {\n a = new int[6];\n for (int i = 0; i < 5; i++) {\n int x = sc.nextInt();\n a[x]++; \n }\n } finally {\n sc.close();\n }",
"{\n sc.close();\n }",
"sc.close()",
"sc.close",
"sc",
"{\n a = new int[6];\n for (int i = 0; i < 5; i++) {\n int x = sc.nextInt();\n a[x]++; \n }\n }",
"a = new int[6]",
"a",
"new int[6]",
"6",
"for (int i = 0; i < 5; i++) {\n int x = sc.nextInt();\n a[x]++; \n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n int x = sc.nextInt();\n a[x]++; \n }",
"{\n int x = sc.nextInt();\n a[x]++; \n }",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"a[x]++",
"a[x]",
"a",
"x",
"void solve() {\n for (int i = 1; i <= 5; i++) if (a[i] == 0) ans = i;\n }",
"solve",
"{\n for (int i = 1; i <= 5; i++) if (a[i] == 0) ans = i;\n }",
"for (int i = 1; i <= 5; i++) if (a[i] == 0) ans = i;",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= 5",
"i",
"5",
"i++",
"i++",
"i",
"if (a[i] == 0) ans = i;",
"if (a[i] == 0) ans = i;",
"a[i] == 0",
"a[i]",
"a",
"i",
"0",
"ans = i",
"ans",
"i",
"void show() {\n System.out.println(ans);\n }",
"show",
"{\n System.out.println(ans);\n }",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"public class Main {\n public static void main(String[] args) {\n Main main = new Main();\n main.solve();\n main.show();\n }\n\n int[] a;\n int ans;\n\n public Main() {\n Scanner sc = new Scanner(System.in);\n try {\n a = new int[6];\n for (int i = 0; i < 5; i++) {\n int x = sc.nextInt();\n a[x]++; \n }\n } finally {\n sc.close();\n }\n }\n \n void solve() {\n for (int i = 1; i <= 5; i++) if (a[i] == 0) ans = i;\n }\n\n void show() {\n System.out.println(ans);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Main main = new Main();\n main.solve();\n main.show();\n }\n\n int[] a;\n int ans;\n\n public Main() {\n Scanner sc = new Scanner(System.in);\n try {\n a = new int[6];\n for (int i = 0; i < 5; i++) {\n int x = sc.nextInt();\n a[x]++; \n }\n } finally {\n sc.close();\n }\n }\n \n void solve() {\n for (int i = 1; i <= 5; i++) if (a[i] == 0) ans = i;\n }\n\n void show() {\n System.out.println(ans);\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Main main = new Main();
main.solve();
main.show();
}
int[] a;
int ans;
public Main() {
Scanner sc = new Scanner(System.in);
try {
a = new int[6];
for (int i = 0; i < 5; i++) {
int x = sc.nextInt();
a[x]++;
}
} finally {
sc.close();
}
}
void solve() {
for (int i = 1; i <= 5; i++) if (a[i] == 0) ans = i;
}
void show() {
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
0,
13,
13,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
77,
5
],
[
77,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
16,
26
],
[
26,
27
],
[
27,
28
],
[
16,
29
],
[
30,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
35,
36
],
[
36,
37
],
[
8,
38
],
[
38,
39
],
[
38,
40
],
[
8,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
41,
51
],
[
51,
52
],
[
52,
53
],
[
41,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
6,
74
],
[
74,
75
],
[
0,
76
],
[
76,
77
],
[
76,
78
]
]
| [
"/*\n * To change this license header, choose License Headers in Project Properties.\n * To change this template file, choose Tools | Templates\n * and open the template in the editor.\n */\n\n/**\n *\n * @author Pollock\n */\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int a[] = new int[5];\n for (int i = 0; i < a.length; i++) {\n a[i] = sc.nextInt();\n }\n int idx = 0;\n for (int i = 0; i < a.length; i++) {\n if (a[i] == 0) {\n idx = i;\n }\n }\n System.out.println(idx + 1);\n }\n }\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int a[] = new int[5];\n for (int i = 0; i < a.length; i++) {\n a[i] = sc.nextInt();\n }\n int idx = 0;\n for (int i = 0; i < a.length; i++) {\n if (a[i] == 0) {\n idx = i;\n }\n }\n System.out.println(idx + 1);\n }\n }",
"Main",
"public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int a[] = new int[5];\n for (int i = 0; i < a.length; i++) {\n a[i] = sc.nextInt();\n }\n int idx = 0;\n for (int i = 0; i < a.length; i++) {\n if (a[i] == 0) {\n idx = i;\n }\n }\n System.out.println(idx + 1);\n }",
"main",
"{\n\n Scanner sc = new Scanner(System.in);\n int a[] = new int[5];\n for (int i = 0; i < a.length; i++) {\n a[i] = sc.nextInt();\n }\n int idx = 0;\n for (int i = 0; i < a.length; i++) {\n if (a[i] == 0) {\n idx = i;\n }\n }\n System.out.println(idx + 1);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a[] = new int[5];",
"a",
"new int[5]",
"5",
"for (int i = 0; i < a.length; i++) {\n a[i] = sc.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"{\n a[i] = sc.nextInt();\n }",
"{\n a[i] = sc.nextInt();\n }",
"a[i] = sc.nextInt()",
"a[i]",
"a",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int idx = 0;",
"idx",
"0",
"for (int i = 0; i < a.length; i++) {\n if (a[i] == 0) {\n idx = i;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"{\n if (a[i] == 0) {\n idx = i;\n }\n }",
"{\n if (a[i] == 0) {\n idx = i;\n }\n }",
"if (a[i] == 0) {\n idx = i;\n }",
"a[i] == 0",
"a[i]",
"a",
"i",
"0",
"{\n idx = i;\n }",
"idx = i",
"idx",
"i",
"System.out.println(idx + 1)",
"System.out.println",
"System.out",
"System",
"System.out",
"idx + 1",
"idx",
"1",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int a[] = new int[5];\n for (int i = 0; i < a.length; i++) {\n a[i] = sc.nextInt();\n }\n int idx = 0;\n for (int i = 0; i < a.length; i++) {\n if (a[i] == 0) {\n idx = i;\n }\n }\n System.out.println(idx + 1);\n }\n }",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int a[] = new int[5];\n for (int i = 0; i < a.length; i++) {\n a[i] = sc.nextInt();\n }\n int idx = 0;\n for (int i = 0; i < a.length; i++) {\n if (a[i] == 0) {\n idx = i;\n }\n }\n System.out.println(idx + 1);\n }\n }",
"Main"
]
| /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Pollock
*/
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a[] = new int[5];
for (int i = 0; i < a.length; i++) {
a[i] = sc.nextInt();
}
int idx = 0;
for (int i = 0; i < a.length; i++) {
if (a[i] == 0) {
idx = i;
}
}
System.out.println(idx + 1);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
4,
18,
13,
2,
13,
17,
29,
23,
13,
23,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
93,
17
],
[
93,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
20,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
20,
31
],
[
31,
32
],
[
31,
33
],
[
20,
34
],
[
34,
35
],
[
34,
36
],
[
20,
37
],
[
37,
38
],
[
37,
39
],
[
20,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
40,
44
],
[
40,
45
],
[
20,
46
],
[
46,
47
],
[
47,
48
],
[
18,
49
],
[
49,
50
],
[
93,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
55,
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
],
[
71,
72
],
[
72,
73
],
[
68,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
82,
83
],
[
82,
84
],
[
78,
85
],
[
53,
86
],
[
86,
87
],
[
53,
88
],
[
88,
89
],
[
53,
90
],
[
90,
91
],
[
0,
92
],
[
92,
93
],
[
92,
94
]
]
| [
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.Scanner;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ABC170_a solver = new ABC170_a();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ABC170_a {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n for (int i = 0; i < 5; i++) {\n int into = in.nextInt();\n if (into == 0) {\n out.println(i + 1);\n return;\n }\n\n }\n\n }\n\n }\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ABC170_a solver = new ABC170_a();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ABC170_a {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n for (int i = 0; i < 5; i++) {\n int into = in.nextInt();\n if (into == 0) {\n out.println(i + 1);\n return;\n }\n\n }\n\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ABC170_a solver = new ABC170_a();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ABC170_a solver = new ABC170_a();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"Scanner in = new Scanner(inputStream);",
"in",
"new Scanner(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"ABC170_a solver = new ABC170_a();",
"solver",
"new ABC170_a()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class ABC170_a {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n for (int i = 0; i < 5; i++) {\n int into = in.nextInt();\n if (into == 0) {\n out.println(i + 1);\n return;\n }\n\n }\n\n }\n\n }",
"ABC170_a",
"public void solve(int testNumber, Scanner in, PrintWriter out) {\n for (int i = 0; i < 5; i++) {\n int into = in.nextInt();\n if (into == 0) {\n out.println(i + 1);\n return;\n }\n\n }\n\n }",
"solve",
"{\n for (int i = 0; i < 5; i++) {\n int into = in.nextInt();\n if (into == 0) {\n out.println(i + 1);\n return;\n }\n\n }\n\n }",
"for (int i = 0; i < 5; i++) {\n int into = in.nextInt();\n if (into == 0) {\n out.println(i + 1);\n return;\n }\n\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n int into = in.nextInt();\n if (into == 0) {\n out.println(i + 1);\n return;\n }\n\n }",
"{\n int into = in.nextInt();\n if (into == 0) {\n out.println(i + 1);\n return;\n }\n\n }",
"int into = in.nextInt();",
"into",
"in.nextInt()",
"in.nextInt",
"in",
"if (into == 0) {\n out.println(i + 1);\n return;\n }",
"into == 0",
"into",
"0",
"{\n out.println(i + 1);\n return;\n }",
"out.println(i + 1)",
"out.println",
"out",
"i + 1",
"i",
"1",
"return;",
"int testNumber",
"testNumber",
"Scanner in",
"in",
"PrintWriter out",
"out",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ABC170_a solver = new ABC170_a();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ABC170_a {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n for (int i = 0; i < 5; i++) {\n int into = in.nextInt();\n if (into == 0) {\n out.println(i + 1);\n return;\n }\n\n }\n\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ABC170_a solver = new ABC170_a();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ABC170_a {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n for (int i = 0; i < 5; i++) {\n int into = in.nextInt();\n if (into == 0) {\n out.println(i + 1);\n return;\n }\n\n }\n\n }\n\n }\n}",
"Main"
]
| import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
Scanner in = new Scanner(inputStream);
PrintWriter out = new PrintWriter(outputStream);
ABC170_a solver = new ABC170_a();
solver.solve(1, in, out);
out.close();
}
static class ABC170_a {
public void solve(int testNumber, Scanner in, PrintWriter out) {
for (int i = 0; i < 5; i++) {
int into = in.nextInt();
if (into == 0) {
out.println(i + 1);
return;
}
}
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
17,
3,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
138,
11
],
[
138,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
18,
23
],
[
23,
24
],
[
23,
25
],
[
18,
26
],
[
26,
27
],
[
27,
28
],
[
18,
29
],
[
30,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
32,
36
],
[
31,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
37,
46
],
[
12,
47
],
[
47,
48
],
[
0,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
49,
53
],
[
53,
54
],
[
49,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
49,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
64,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
74,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
63,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
49,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
96,
97
],
[
49,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
105,
106
],
[
49,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
114,
115
],
[
49,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
122,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
118,
135
],
[
135,
136
],
[
0,
137
],
[
137,
138
],
[
137,
139
]
]
| [
"import java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\npublic class Main{\n public static void main(String[] args) throws IOException{\n FastReader sc = new FastReader();\n for (int i = 0; i < 5; i++){\n if (sc.nextInt() == 0){\n System.out.println(i+1);\n break;\n }\n }\n }\n}\nclass FastReader{ \n BufferedReader br; \n StringTokenizer st; \n public FastReader() { \n br = new BufferedReader(new InputStreamReader(System.in)); \n } \n String next(){ \n while (st == null || !st.hasMoreElements()) { \n try{ \n st = new StringTokenizer(br.readLine()); \n }catch (IOException e){ \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n int nextInt(){ \n return Integer.parseInt(next()); \n } \n long nextLong(){ \n return Long.parseLong(next()); \n } \n double nextDouble(){ \n return Double.parseDouble(next()); \n } \n String nextLine(){ \n String str = \"\"; \n try{ \n str = br.readLine(); \n } \n catch (IOException e){ \n e.printStackTrace(); \n } \n return str; \n } \n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n public static void main(String[] args) throws IOException{\n FastReader sc = new FastReader();\n for (int i = 0; i < 5; i++){\n if (sc.nextInt() == 0){\n System.out.println(i+1);\n break;\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) throws IOException{\n FastReader sc = new FastReader();\n for (int i = 0; i < 5; i++){\n if (sc.nextInt() == 0){\n System.out.println(i+1);\n break;\n }\n }\n }",
"main",
"{\n FastReader sc = new FastReader();\n for (int i = 0; i < 5; i++){\n if (sc.nextInt() == 0){\n System.out.println(i+1);\n break;\n }\n }\n }",
"FastReader sc = new FastReader();",
"sc",
"new FastReader()",
"for (int i = 0; i < 5; i++){\n if (sc.nextInt() == 0){\n System.out.println(i+1);\n break;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n if (sc.nextInt() == 0){\n System.out.println(i+1);\n break;\n }\n }",
"{\n if (sc.nextInt() == 0){\n System.out.println(i+1);\n break;\n }\n }",
"if (sc.nextInt() == 0){\n System.out.println(i+1);\n break;\n }",
"sc.nextInt() == 0",
"sc.nextInt()",
"sc.nextInt",
"sc",
"0",
"{\n System.out.println(i+1);\n break;\n }",
"System.out.println(i+1)",
"System.out.println",
"System.out",
"System",
"System.out",
"i+1",
"i",
"1",
"break;",
"String[] args",
"args",
"class FastReader{ \n BufferedReader br; \n StringTokenizer st; \n public FastReader() { \n br = new BufferedReader(new InputStreamReader(System.in)); \n } \n String next(){ \n while (st == null || !st.hasMoreElements()) { \n try{ \n st = new StringTokenizer(br.readLine()); \n }catch (IOException e){ \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n int nextInt(){ \n return Integer.parseInt(next()); \n } \n long nextLong(){ \n return Long.parseLong(next()); \n } \n double nextDouble(){ \n return Double.parseDouble(next()); \n } \n String nextLine(){ \n String str = \"\"; \n try{ \n str = br.readLine(); \n } \n catch (IOException e){ \n e.printStackTrace(); \n } \n return str; \n } \n}",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() { \n br = new BufferedReader(new InputStreamReader(System.in)); \n }",
"FastReader",
"{ \n br = new BufferedReader(new InputStreamReader(System.in)); \n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next(){ \n while (st == null || !st.hasMoreElements()) { \n try{ \n st = new StringTokenizer(br.readLine()); \n }catch (IOException e){ \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n }",
"next",
"{ \n while (st == null || !st.hasMoreElements()) { \n try{ \n st = new StringTokenizer(br.readLine()); \n }catch (IOException e){ \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n }",
"while (st == null || !st.hasMoreElements()) { \n try{ \n st = new StringTokenizer(br.readLine()); \n }catch (IOException e){ \n e.printStackTrace(); \n } \n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{ \n try{ \n st = new StringTokenizer(br.readLine()); \n }catch (IOException e){ \n e.printStackTrace(); \n } \n }",
"try{ \n st = new StringTokenizer(br.readLine()); \n }catch (IOException e){ \n e.printStackTrace(); \n }",
"catch (IOException e){ \n e.printStackTrace(); \n }",
"IOException e",
"{ \n e.printStackTrace(); \n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{ \n st = new StringTokenizer(br.readLine()); \n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt(){ \n return Integer.parseInt(next()); \n }",
"nextInt",
"{ \n return Integer.parseInt(next()); \n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong(){ \n return Long.parseLong(next()); \n }",
"nextLong",
"{ \n return Long.parseLong(next()); \n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble(){ \n return Double.parseDouble(next()); \n }",
"nextDouble",
"{ \n return Double.parseDouble(next()); \n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine(){ \n String str = \"\"; \n try{ \n str = br.readLine(); \n } \n catch (IOException e){ \n e.printStackTrace(); \n } \n return str; \n }",
"nextLine",
"{ \n String str = \"\"; \n try{ \n str = br.readLine(); \n } \n catch (IOException e){ \n e.printStackTrace(); \n } \n return str; \n }",
"String str = \"\";",
"str",
"\"\"",
"try{ \n str = br.readLine(); \n } \n catch (IOException e){ \n e.printStackTrace(); \n }",
"catch (IOException e){ \n e.printStackTrace(); \n }",
"IOException e",
"{ \n e.printStackTrace(); \n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{ \n str = br.readLine(); \n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main{\n public static void main(String[] args) throws IOException{\n FastReader sc = new FastReader();\n for (int i = 0; i < 5; i++){\n if (sc.nextInt() == 0){\n System.out.println(i+1);\n break;\n }\n }\n }\n}",
"public class Main{\n public static void main(String[] args) throws IOException{\n FastReader sc = new FastReader();\n for (int i = 0; i < 5; i++){\n if (sc.nextInt() == 0){\n System.out.println(i+1);\n break;\n }\n }\n }\n}",
"Main"
]
| import java.util.*;
import java.lang.*;
import java.io.*;
public class Main{
public static void main(String[] args) throws IOException{
FastReader sc = new FastReader();
for (int i = 0; i < 5; i++){
if (sc.nextInt() == 0){
System.out.println(i+1);
break;
}
}
}
}
class FastReader{
BufferedReader br;
StringTokenizer st;
public FastReader() {
br = new BufferedReader(new InputStreamReader(System.in));
}
String next(){
while (st == null || !st.hasMoreElements()) {
try{
st = new StringTokenizer(br.readLine());
}catch (IOException e){
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt(){
return Integer.parseInt(next());
}
long nextLong(){
return Long.parseLong(next());
}
double nextDouble(){
return Double.parseDouble(next());
}
String nextLine(){
String str = "";
try{
str = br.readLine();
}
catch (IOException e){
e.printStackTrace();
}
return str;
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
42,
2,
13,
17,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
29,
40,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
45,
5
],
[
45,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
15,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
19,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
29,
36
],
[
19,
37
],
[
37,
38
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
6,
42
],
[
42,
43
],
[
0,
44
],
[
44,
45
],
[
44,
46
]
]
| [
"import java.util.*;\npublic class Main {\n\n public static void main(String[] args) { \n Scanner sc = new Scanner(System.in);\n int idx = 1;\n while(idx <= 5) {\n \tint num = sc.nextInt();\n \tif(num == 0) {\n \t\tSystem.out.println(idx);\n \t\treturn;\n \t}\n \tidx++;\n }\n sc.close();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n public static void main(String[] args) { \n Scanner sc = new Scanner(System.in);\n int idx = 1;\n while(idx <= 5) {\n \tint num = sc.nextInt();\n \tif(num == 0) {\n \t\tSystem.out.println(idx);\n \t\treturn;\n \t}\n \tidx++;\n }\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) { \n Scanner sc = new Scanner(System.in);\n int idx = 1;\n while(idx <= 5) {\n \tint num = sc.nextInt();\n \tif(num == 0) {\n \t\tSystem.out.println(idx);\n \t\treturn;\n \t}\n \tidx++;\n }\n sc.close();\n }",
"main",
"{ \n Scanner sc = new Scanner(System.in);\n int idx = 1;\n while(idx <= 5) {\n \tint num = sc.nextInt();\n \tif(num == 0) {\n \t\tSystem.out.println(idx);\n \t\treturn;\n \t}\n \tidx++;\n }\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int idx = 1;",
"idx",
"1",
"while(idx <= 5) {\n \tint num = sc.nextInt();\n \tif(num == 0) {\n \t\tSystem.out.println(idx);\n \t\treturn;\n \t}\n \tidx++;\n }",
"idx <= 5",
"idx",
"5",
"{\n \tint num = sc.nextInt();\n \tif(num == 0) {\n \t\tSystem.out.println(idx);\n \t\treturn;\n \t}\n \tidx++;\n }",
"int num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(num == 0) {\n \t\tSystem.out.println(idx);\n \t\treturn;\n \t}",
"num == 0",
"num",
"0",
"{\n \t\tSystem.out.println(idx);\n \t\treturn;\n \t}",
"System.out.println(idx)",
"System.out.println",
"System.out",
"System",
"System.out",
"idx",
"return;",
"idx++",
"idx",
"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 idx = 1;\n while(idx <= 5) {\n \tint num = sc.nextInt();\n \tif(num == 0) {\n \t\tSystem.out.println(idx);\n \t\treturn;\n \t}\n \tidx++;\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 idx = 1;\n while(idx <= 5) {\n \tint num = sc.nextInt();\n \tif(num == 0) {\n \t\tSystem.out.println(idx);\n \t\treturn;\n \t}\n \tidx++;\n }\n sc.close();\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int idx = 1;
while(idx <= 5) {
int num = sc.nextInt();
if(num == 0) {
System.out.println(idx);
return;
}
idx++;
}
sc.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
3,
40,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
45,
5
],
[
45,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
15,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
19,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
29,
36
],
[
19,
37
],
[
37,
38
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
6,
42
],
[
42,
43
],
[
0,
44
],
[
44,
45
],
[
44,
46
]
]
| [
"import java.util.*;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int cnt = 1;\n while (sc.hasNext()) {\n int x = sc.nextInt();\n if (x == 0) {\n System.out.println(cnt);\n break;\n }\n cnt++;\n }\n sc.close();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int cnt = 1;\n while (sc.hasNext()) {\n int x = sc.nextInt();\n if (x == 0) {\n System.out.println(cnt);\n break;\n }\n cnt++;\n }\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int cnt = 1;\n while (sc.hasNext()) {\n int x = sc.nextInt();\n if (x == 0) {\n System.out.println(cnt);\n break;\n }\n cnt++;\n }\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int cnt = 1;\n while (sc.hasNext()) {\n int x = sc.nextInt();\n if (x == 0) {\n System.out.println(cnt);\n break;\n }\n cnt++;\n }\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int cnt = 1;",
"cnt",
"1",
"while (sc.hasNext()) {\n int x = sc.nextInt();\n if (x == 0) {\n System.out.println(cnt);\n break;\n }\n cnt++;\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n int x = sc.nextInt();\n if (x == 0) {\n System.out.println(cnt);\n break;\n }\n cnt++;\n }",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (x == 0) {\n System.out.println(cnt);\n break;\n }",
"x == 0",
"x",
"0",
"{\n System.out.println(cnt);\n break;\n }",
"System.out.println(cnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"cnt",
"break;",
"cnt++",
"cnt",
"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 cnt = 1;\n while (sc.hasNext()) {\n int x = sc.nextInt();\n if (x == 0) {\n System.out.println(cnt);\n break;\n }\n cnt++;\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 cnt = 1;\n while (sc.hasNext()) {\n int x = sc.nextInt();\n if (x == 0) {\n System.out.println(cnt);\n break;\n }\n cnt++;\n }\n sc.close();\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int cnt = 1;
while (sc.hasNext()) {
int x = sc.nextInt();
if (x == 0) {
System.out.println(cnt);
break;
}
cnt++;
}
sc.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
42,
2,
13,
17,
30,
14,
2,
18,
13,
13,
17,
30,
0,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
21,
22
],
[
21,
23
],
[
16,
24
],
[
24,
25
],
[
25,
26
],
[
16,
27
],
[
28,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
8,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
47,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
47,
57
],
[
57,
58
],
[
58,
59
],
[
8,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
6,
68
],
[
68,
69
]
]
| [
"import java.util.*;\n\n\nclass Main{\n public static void main(String[] args){\n \t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint[] x= new int[5];\n\t\t\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t x[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tint t = 0;\n\t\tint i = 0;\n\t\t\n\t\tdo {\n\t\t\tif ( x[i] == 0)\n\t\t\t{\n\t\t\t\tt = 1;\n\t\t\t\t//System.out.println(\"x[i] = \"+ x[i]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}while(t == 0);\n\t\t\n\t\tSystem.out.println(i+1);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n public static void main(String[] args){\n \t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint[] x= new int[5];\n\t\t\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t x[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tint t = 0;\n\t\tint i = 0;\n\t\t\n\t\tdo {\n\t\t\tif ( x[i] == 0)\n\t\t\t{\n\t\t\t\tt = 1;\n\t\t\t\t//System.out.println(\"x[i] = \"+ x[i]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}while(t == 0);\n\t\t\n\t\tSystem.out.println(i+1);\n }\n}",
"Main",
"public static void main(String[] args){\n \t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint[] x= new int[5];\n\t\t\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t x[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tint t = 0;\n\t\tint i = 0;\n\t\t\n\t\tdo {\n\t\t\tif ( x[i] == 0)\n\t\t\t{\n\t\t\t\tt = 1;\n\t\t\t\t//System.out.println(\"x[i] = \"+ x[i]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}while(t == 0);\n\t\t\n\t\tSystem.out.println(i+1);\n }",
"main",
"{\n \t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint[] x= new int[5];\n\t\t\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t x[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tint t = 0;\n\t\tint i = 0;\n\t\t\n\t\tdo {\n\t\t\tif ( x[i] == 0)\n\t\t\t{\n\t\t\t\tt = 1;\n\t\t\t\t//System.out.println(\"x[i] = \"+ x[i]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}while(t == 0);\n\t\t\n\t\tSystem.out.println(i+1);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] x= new int[5];",
"x",
"new int[5]",
"5",
"for (int i = 0; i < 5; i++) {\n\t\t x[i] = sc.nextInt();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n\t\t x[i] = sc.nextInt();\n\t\t}",
"{\n\t\t x[i] = sc.nextInt();\n\t\t}",
"x[i] = sc.nextInt()",
"x[i]",
"x",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t = 0;",
"t",
"0",
"int i = 0;",
"i",
"0",
"do {\n\t\t\tif ( x[i] == 0)\n\t\t\t{\n\t\t\t\tt = 1;\n\t\t\t\t//System.out.println(\"x[i] = \"+ x[i]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}while(t == 0);",
"t == 0",
"t",
"0",
"{\n\t\t\tif ( x[i] == 0)\n\t\t\t{\n\t\t\t\tt = 1;\n\t\t\t\t//System.out.println(\"x[i] = \"+ x[i]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}",
"if ( x[i] == 0)\n\t\t\t{\n\t\t\t\tt = 1;\n\t\t\t\t//System.out.println(\"x[i] = \"+ x[i]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ti++;\n\t\t\t}",
"x[i] == 0",
"x[i]",
"x",
"i",
"0",
"{\n\t\t\t\tt = 1;\n\t\t\t\t//System.out.println(\"x[i] = \"+ x[i]);\n\t\t\t}",
"t = 1",
"t",
"1",
"{\n\t\t\t\ti++;\n\t\t\t}",
"i++",
"i",
"System.out.println(i+1)",
"System.out.println",
"System.out",
"System",
"System.out",
"i+1",
"i",
"1",
"String[] args",
"args"
]
| import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int[] x= new int[5];
for (int i = 0; i < 5; i++) {
x[i] = sc.nextInt();
}
int t = 0;
int i = 0;
do {
if ( x[i] == 0)
{
t = 1;
//System.out.println("x[i] = "+ x[i]);
}
else
{
i++;
}
}while(t == 0);
System.out.println(i+1);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
113,
5
],
[
113,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
34,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
41,
42
],
[
42,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
49,
50
],
[
50,
51
],
[
8,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
52,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
63,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
74,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
85,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
8,
107
],
[
107,
108
],
[
108,
109
],
[
6,
110
],
[
110,
111
],
[
0,
112
],
[
112,
113
],
[
112,
114
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint input1 = Integer.parseInt(scanner.next());\n\t\tint input2 = Integer.parseInt(scanner.next());\n\t\tint input3 = Integer.parseInt(scanner.next());\n\t\tint input4 = Integer.parseInt(scanner.next());\n\t\tint input5 = Integer.parseInt(scanner.next());\n\t\t\n\t\tif(input1 ==0) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}else if(input2 == 0) {\n\t\t\tSystem.out.println(\"2\");\n\t\t}else if(input3 == 0) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}else if(input4 == 0) {\n\t\t\tSystem.out.println(\"4\");\n\t\t}else if(input5 == 0) {\n\t\t\tSystem.out.println(\"5\");\n\t\t}\n\t\tscanner.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint input1 = Integer.parseInt(scanner.next());\n\t\tint input2 = Integer.parseInt(scanner.next());\n\t\tint input3 = Integer.parseInt(scanner.next());\n\t\tint input4 = Integer.parseInt(scanner.next());\n\t\tint input5 = Integer.parseInt(scanner.next());\n\t\t\n\t\tif(input1 ==0) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}else if(input2 == 0) {\n\t\t\tSystem.out.println(\"2\");\n\t\t}else if(input3 == 0) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}else if(input4 == 0) {\n\t\t\tSystem.out.println(\"4\");\n\t\t}else if(input5 == 0) {\n\t\t\tSystem.out.println(\"5\");\n\t\t}\n\t\tscanner.close();\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint input1 = Integer.parseInt(scanner.next());\n\t\tint input2 = Integer.parseInt(scanner.next());\n\t\tint input3 = Integer.parseInt(scanner.next());\n\t\tint input4 = Integer.parseInt(scanner.next());\n\t\tint input5 = Integer.parseInt(scanner.next());\n\t\t\n\t\tif(input1 ==0) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}else if(input2 == 0) {\n\t\t\tSystem.out.println(\"2\");\n\t\t}else if(input3 == 0) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}else if(input4 == 0) {\n\t\t\tSystem.out.println(\"4\");\n\t\t}else if(input5 == 0) {\n\t\t\tSystem.out.println(\"5\");\n\t\t}\n\t\tscanner.close();\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint input1 = Integer.parseInt(scanner.next());\n\t\tint input2 = Integer.parseInt(scanner.next());\n\t\tint input3 = Integer.parseInt(scanner.next());\n\t\tint input4 = Integer.parseInt(scanner.next());\n\t\tint input5 = Integer.parseInt(scanner.next());\n\t\t\n\t\tif(input1 ==0) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}else if(input2 == 0) {\n\t\t\tSystem.out.println(\"2\");\n\t\t}else if(input3 == 0) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}else if(input4 == 0) {\n\t\t\tSystem.out.println(\"4\");\n\t\t}else if(input5 == 0) {\n\t\t\tSystem.out.println(\"5\");\n\t\t}\n\t\tscanner.close();\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int input1 = Integer.parseInt(scanner.next());",
"input1",
"Integer.parseInt(scanner.next())",
"Integer.parseInt",
"Integer",
"scanner.next()",
"scanner.next",
"scanner",
"int input2 = Integer.parseInt(scanner.next());",
"input2",
"Integer.parseInt(scanner.next())",
"Integer.parseInt",
"Integer",
"scanner.next()",
"scanner.next",
"scanner",
"int input3 = Integer.parseInt(scanner.next());",
"input3",
"Integer.parseInt(scanner.next())",
"Integer.parseInt",
"Integer",
"scanner.next()",
"scanner.next",
"scanner",
"int input4 = Integer.parseInt(scanner.next());",
"input4",
"Integer.parseInt(scanner.next())",
"Integer.parseInt",
"Integer",
"scanner.next()",
"scanner.next",
"scanner",
"int input5 = Integer.parseInt(scanner.next());",
"input5",
"Integer.parseInt(scanner.next())",
"Integer.parseInt",
"Integer",
"scanner.next()",
"scanner.next",
"scanner",
"if(input1 ==0) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}else if(input2 == 0) {\n\t\t\tSystem.out.println(\"2\");\n\t\t}else if(input3 == 0) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}else if(input4 == 0) {\n\t\t\tSystem.out.println(\"4\");\n\t\t}else if(input5 == 0) {\n\t\t\tSystem.out.println(\"5\");\n\t\t}",
"input1 ==0",
"input1",
"0",
"{\n\t\t\tSystem.out.println(\"1\");\n\t\t}",
"System.out.println(\"1\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"1\"",
"if(input2 == 0) {\n\t\t\tSystem.out.println(\"2\");\n\t\t}else if(input3 == 0) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}else if(input4 == 0) {\n\t\t\tSystem.out.println(\"4\");\n\t\t}else if(input5 == 0) {\n\t\t\tSystem.out.println(\"5\");\n\t\t}",
"input2 == 0",
"input2",
"0",
"{\n\t\t\tSystem.out.println(\"2\");\n\t\t}",
"System.out.println(\"2\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"2\"",
"if(input3 == 0) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}else if(input4 == 0) {\n\t\t\tSystem.out.println(\"4\");\n\t\t}else if(input5 == 0) {\n\t\t\tSystem.out.println(\"5\");\n\t\t}",
"input3 == 0",
"input3",
"0",
"{\n\t\t\tSystem.out.println(\"3\");\n\t\t}",
"System.out.println(\"3\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"3\"",
"if(input4 == 0) {\n\t\t\tSystem.out.println(\"4\");\n\t\t}else if(input5 == 0) {\n\t\t\tSystem.out.println(\"5\");\n\t\t}",
"input4 == 0",
"input4",
"0",
"{\n\t\t\tSystem.out.println(\"4\");\n\t\t}",
"System.out.println(\"4\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"4\"",
"if(input5 == 0) {\n\t\t\tSystem.out.println(\"5\");\n\t\t}",
"input5 == 0",
"input5",
"0",
"{\n\t\t\tSystem.out.println(\"5\");\n\t\t}",
"System.out.println(\"5\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"5\"",
"scanner.close()",
"scanner.close",
"scanner",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint input1 = Integer.parseInt(scanner.next());\n\t\tint input2 = Integer.parseInt(scanner.next());\n\t\tint input3 = Integer.parseInt(scanner.next());\n\t\tint input4 = Integer.parseInt(scanner.next());\n\t\tint input5 = Integer.parseInt(scanner.next());\n\t\t\n\t\tif(input1 ==0) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}else if(input2 == 0) {\n\t\t\tSystem.out.println(\"2\");\n\t\t}else if(input3 == 0) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}else if(input4 == 0) {\n\t\t\tSystem.out.println(\"4\");\n\t\t}else if(input5 == 0) {\n\t\t\tSystem.out.println(\"5\");\n\t\t}\n\t\tscanner.close();\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint input1 = Integer.parseInt(scanner.next());\n\t\tint input2 = Integer.parseInt(scanner.next());\n\t\tint input3 = Integer.parseInt(scanner.next());\n\t\tint input4 = Integer.parseInt(scanner.next());\n\t\tint input5 = Integer.parseInt(scanner.next());\n\t\t\n\t\tif(input1 ==0) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}else if(input2 == 0) {\n\t\t\tSystem.out.println(\"2\");\n\t\t}else if(input3 == 0) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}else if(input4 == 0) {\n\t\t\tSystem.out.println(\"4\");\n\t\t}else if(input5 == 0) {\n\t\t\tSystem.out.println(\"5\");\n\t\t}\n\t\tscanner.close();\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception{
Scanner scanner = new Scanner(System.in);
int input1 = Integer.parseInt(scanner.next());
int input2 = Integer.parseInt(scanner.next());
int input3 = Integer.parseInt(scanner.next());
int input4 = Integer.parseInt(scanner.next());
int input5 = Integer.parseInt(scanner.next());
if(input1 ==0) {
System.out.println("1");
}else if(input2 == 0) {
System.out.println("2");
}else if(input3 == 0) {
System.out.println("3");
}else if(input4 == 0) {
System.out.println("4");
}else if(input5 == 0) {
System.out.println("5");
}
scanner.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
2,
18,
13,
13,
17,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
57,
5
],
[
57,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
8,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
24,
25
],
[
24,
26
],
[
19,
27
],
[
27,
28
],
[
28,
29
],
[
19,
30
],
[
31,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
39,
45
],
[
45,
46
],
[
45,
47
],
[
8,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
6,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
]
| [
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int[] x = new int[5];\n int ans = 1;\n for (int i = 0; i < 5; i++){\n x[i] = sc.nextInt();\n if (x[i] == 0) ans += i;\n }\n System.out.println(ans);\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[] x = new int[5];\n int ans = 1;\n for (int i = 0; i < 5; i++){\n x[i] = sc.nextInt();\n if (x[i] == 0) ans += i;\n }\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int[] x = new int[5];\n int ans = 1;\n for (int i = 0; i < 5; i++){\n x[i] = sc.nextInt();\n if (x[i] == 0) ans += i;\n }\n System.out.println(ans);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int[] x = new int[5];\n int ans = 1;\n for (int i = 0; i < 5; i++){\n x[i] = sc.nextInt();\n if (x[i] == 0) ans += i;\n }\n System.out.println(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] x = new int[5];",
"x",
"new int[5]",
"5",
"int ans = 1;",
"ans",
"1",
"for (int i = 0; i < 5; i++){\n x[i] = sc.nextInt();\n if (x[i] == 0) ans += i;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n x[i] = sc.nextInt();\n if (x[i] == 0) ans += i;\n }",
"{\n x[i] = sc.nextInt();\n if (x[i] == 0) ans += i;\n }",
"x[i] = sc.nextInt()",
"x[i]",
"x",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (x[i] == 0) ans += i;",
"x[i] == 0",
"x[i]",
"x",
"i",
"0",
"ans += i",
"ans",
"i",
"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){\n Scanner sc = new Scanner(System.in);\n int[] x = new int[5];\n int ans = 1;\n for (int i = 0; i < 5; i++){\n x[i] = sc.nextInt();\n if (x[i] == 0) ans += i;\n }\n System.out.println(ans);\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int[] x = new int[5];\n int ans = 1;\n for (int i = 0; i < 5; i++){\n x[i] = sc.nextInt();\n if (x[i] == 0) ans += i;\n }\n System.out.println(ans);\n }\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int[] x = new int[5];
int ans = 1;
for (int i = 0; i < 5; i++){
x[i] = sc.nextInt();
if (x[i] == 0) ans += i;
}
System.out.println(ans);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
54,
5
],
[
54,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
21,
22
],
[
21,
23
],
[
16,
24
],
[
24,
25
],
[
25,
26
],
[
16,
27
],
[
28,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
6,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] a = new int[5];\n\t\tfor (int i=0;i<5;i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t\tif (a[i] == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] a = new int[5];\n\t\tfor (int i=0;i<5;i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t\tif (a[i] == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] a = new int[5];\n\t\tfor (int i=0;i<5;i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t\tif (a[i] == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] a = new int[5];\n\t\tfor (int i=0;i<5;i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t\tif (a[i] == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] a = new int[5];",
"a",
"new int[5]",
"5",
"for (int i=0;i<5;i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t\tif (a[i] == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<5",
"i",
"5",
"i++",
"i++",
"i",
"{\n\t\t\ta[i] = sc.nextInt();\n\t\t\tif (a[i] == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}",
"{\n\t\t\ta[i] = sc.nextInt();\n\t\t\tif (a[i] == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}",
"a[i] = sc.nextInt()",
"a[i]",
"a",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (a[i] == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}",
"a[i] == 0",
"a[i]",
"a",
"i",
"0",
"{\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}",
"System.out.println(i+1)",
"System.out.println",
"System.out",
"System",
"System.out",
"i+1",
"i",
"1",
"final String[] args",
"args",
"public class Main {\n\n\tpublic static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] a = new int[5];\n\t\tfor (int i=0;i<5;i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t\tif (a[i] == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] a = new int[5];\n\t\tfor (int i=0;i<5;i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t\tif (a[i] == 0) {\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(final String[] args) {
Scanner sc = new Scanner(System.in);
int[] a = new int[5];
for (int i=0;i<5;i++) {
a[i] = sc.nextInt();
if (a[i] == 0) {
System.out.println(i+1);
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
17,
41,
13,
20,
0,
18,
13,
17,
4,
18,
13,
0,
18,
13,
17,
4,
18,
13,
0,
18,
13,
17,
4,
18,
13,
0,
18,
13,
17,
4,
18,
13,
0,
18,
13,
17,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
17,
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,
13
],
[
13,
14
],
[
13,
15
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
42,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
49,
50
],
[
8,
51
],
[
51,
52
],
[
52,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
54,
65
],
[
66,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
6,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
]
| [
"import java.util.Scanner;\n\npublic class Main\n{\n\n\tpublic static void main(String args[])\n\t{\n\n\t\tint[] x = new int[5];\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tx[0] = sc.nextInt();\n\t\tx[1] = sc.nextInt();\n\t\tx[2] = sc.nextInt();\n\t\tx[3] = sc.nextInt();\n\t\tx[4] = sc.nextInt();\n\n\t\tsc.close();\n\n\t\tfor(int i = 0; i < 5; i++)\n\t\t{\n\t\t\tif(x[i] != (i + 1))\n\t\t\t{\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t}\n\t\t}\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main\n{\n\n\tpublic static void main(String args[])\n\t{\n\n\t\tint[] x = new int[5];\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tx[0] = sc.nextInt();\n\t\tx[1] = sc.nextInt();\n\t\tx[2] = sc.nextInt();\n\t\tx[3] = sc.nextInt();\n\t\tx[4] = sc.nextInt();\n\n\t\tsc.close();\n\n\t\tfor(int i = 0; i < 5; i++)\n\t\t{\n\t\t\tif(x[i] != (i + 1))\n\t\t\t{\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String args[])\n\t{\n\n\t\tint[] x = new int[5];\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tx[0] = sc.nextInt();\n\t\tx[1] = sc.nextInt();\n\t\tx[2] = sc.nextInt();\n\t\tx[3] = sc.nextInt();\n\t\tx[4] = sc.nextInt();\n\n\t\tsc.close();\n\n\t\tfor(int i = 0; i < 5; i++)\n\t\t{\n\t\t\tif(x[i] != (i + 1))\n\t\t\t{\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\n\t\tint[] x = new int[5];\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tx[0] = sc.nextInt();\n\t\tx[1] = sc.nextInt();\n\t\tx[2] = sc.nextInt();\n\t\tx[3] = sc.nextInt();\n\t\tx[4] = sc.nextInt();\n\n\t\tsc.close();\n\n\t\tfor(int i = 0; i < 5; i++)\n\t\t{\n\t\t\tif(x[i] != (i + 1))\n\t\t\t{\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t}\n\t\t}\n\t}",
"int[] x = new int[5];",
"x",
"new int[5]",
"5",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"x[0] = sc.nextInt()",
"x[0]",
"x",
"0",
"sc.nextInt()",
"sc.nextInt",
"sc",
"x[1] = sc.nextInt()",
"x[1]",
"x",
"1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"x[2] = sc.nextInt()",
"x[2]",
"x",
"2",
"sc.nextInt()",
"sc.nextInt",
"sc",
"x[3] = sc.nextInt()",
"x[3]",
"x",
"3",
"sc.nextInt()",
"sc.nextInt",
"sc",
"x[4] = sc.nextInt()",
"x[4]",
"x",
"4",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.close()",
"sc.close",
"sc",
"for(int i = 0; i < 5; i++)\n\t\t{\n\t\t\tif(x[i] != (i + 1))\n\t\t\t{\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n\t\t\tif(x[i] != (i + 1))\n\t\t\t{\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(x[i] != (i + 1))\n\t\t\t{\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t}\n\t\t}",
"if(x[i] != (i + 1))\n\t\t\t{\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t}",
"x[i] != (i + 1)",
"x[i]",
"x",
"i",
"(i + 1)",
"i",
"1",
"{\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t}",
"System.out.println(i + 1)",
"System.out.println",
"System.out",
"System",
"System.out",
"i + 1",
"i",
"1",
"String args[]",
"args",
"public class Main\n{\n\n\tpublic static void main(String args[])\n\t{\n\n\t\tint[] x = new int[5];\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tx[0] = sc.nextInt();\n\t\tx[1] = sc.nextInt();\n\t\tx[2] = sc.nextInt();\n\t\tx[3] = sc.nextInt();\n\t\tx[4] = sc.nextInt();\n\n\t\tsc.close();\n\n\t\tfor(int i = 0; i < 5; i++)\n\t\t{\n\t\t\tif(x[i] != (i + 1))\n\t\t\t{\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t}\n\t\t}\n\t}\n\n}",
"public class Main\n{\n\n\tpublic static void main(String args[])\n\t{\n\n\t\tint[] x = new int[5];\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tx[0] = sc.nextInt();\n\t\tx[1] = sc.nextInt();\n\t\tx[2] = sc.nextInt();\n\t\tx[3] = sc.nextInt();\n\t\tx[4] = sc.nextInt();\n\n\t\tsc.close();\n\n\t\tfor(int i = 0; i < 5; i++)\n\t\t{\n\t\t\tif(x[i] != (i + 1))\n\t\t\t{\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main
{
public static void main(String args[])
{
int[] x = new int[5];
Scanner sc = new Scanner(System.in);
x[0] = sc.nextInt();
x[1] = sc.nextInt();
x[2] = sc.nextInt();
x[3] = sc.nextInt();
x[4] = sc.nextInt();
sc.close();
for(int i = 0; i < 5; i++)
{
if(x[i] != (i + 1))
{
System.out.println(i + 1);
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
42,
2,
13,
17,
30,
14,
2,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
13,
3,
40,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
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,
12,
13,
30,
41,
13,
4,
13,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
14,
2,
4,
18,
13,
17,
17,
30,
0,
13,
17,
40,
13,
11,
1,
41,
13,
13,
2,
13,
4,
18,
13,
1,
40,
13,
30,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
4,
18,
13,
4,
18,
13,
0,
13,
20,
0,
13,
17,
30,
4,
18,
13,
4,
18,
13,
13,
14,
13,
0,
13,
17,
0,
13,
2,
4,
18,
13,
4,
18,
13,
13,
29,
2,
13,
8,
13,
40,
17,
17,
12,
13,
30,
29,
4,
18,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
221,
17
],
[
221,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
20,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
33,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
38,
45
],
[
31,
46
],
[
46,
47
],
[
18,
48
],
[
48,
49
],
[
0,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
50,
54
],
[
54,
55
],
[
50,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
56,
62
],
[
62,
63
],
[
50,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
67,
76
],
[
76,
77
],
[
76,
78
],
[
66,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
50,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
90,
91
],
[
50,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
99,
100
],
[
50,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
50,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
110,
118
],
[
118,
119
],
[
118,
120
],
[
110,
121
],
[
121,
122
],
[
121,
123
],
[
110,
124
],
[
124,
125
],
[
124,
126
],
[
110,
127
],
[
127,
128
],
[
127,
129
],
[
110,
130
],
[
130,
131
],
[
130,
132
],
[
110,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
135,
138
],
[
134,
139
],
[
133,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
144,
145
],
[
110,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
146,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
146,
156
],
[
156,
157
],
[
157,
158
],
[
146,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
162,
165
],
[
161,
166
],
[
160,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
171,
172
],
[
170,
173
],
[
173,
174
],
[
174,
175
],
[
167,
176
],
[
176,
177
],
[
176,
178
],
[
167,
179
],
[
179,
180
],
[
179,
181
],
[
160,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
183,
186
],
[
186,
187
],
[
187,
188
],
[
186,
189
],
[
182,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
192,
194
],
[
110,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
198,
201
],
[
201,
202
],
[
202,
203
],
[
197,
204
],
[
110,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
208,
210
],
[
210,
211
],
[
208,
212
],
[
50,
213
],
[
213,
214
],
[
213,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
0,
220
],
[
220,
221
],
[
220,
222
]
]
| [
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.util.*;\n\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n Scanner s = new Scanner(System.in);\n int i=1;\n while(i<=5){\n if(s.nextInt()==0){\n System.out.println(i);\n break;\n }\n i++;\n }\n\n\n\n }\n\n}\n\n\n\n\nclass Scanner\n{\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s){\tbr = new BufferedReader(new InputStreamReader(s));}\n\n public String next() throws IOException\n {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {return Integer.parseInt(next());}\n\n public long nextLong() throws IOException {return Long.parseLong(next());}\n\n public String nextLine() throws IOException {return br.readLine();}\n\n public double nextDouble() throws IOException\n {\n String x = next();\n StringBuilder sb = new StringBuilder(\"0\");\n double res = 0, f = 1;\n boolean dec = false, neg = false;\n int start = 0;\n if(x.charAt(0) == '-')\n {\n neg = true;\n start++;\n }\n for(int i = start; i < x.length(); i++)\n if(x.charAt(i) == '.')\n {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n }\n else\n {\n sb.append(x.charAt(i));\n if(dec)\n f *= 10;\n }\n res += Long.parseLong(sb.toString()) / f;\n return res * (neg?-1:1);\n }\n\n public boolean ready() throws IOException {return br.ready();}\n\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n Scanner s = new Scanner(System.in);\n int i=1;\n while(i<=5){\n if(s.nextInt()==0){\n System.out.println(i);\n break;\n }\n i++;\n }\n\n\n\n }\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n Scanner s = new Scanner(System.in);\n int i=1;\n while(i<=5){\n if(s.nextInt()==0){\n System.out.println(i);\n break;\n }\n i++;\n }\n\n\n\n }",
"main",
"{\n Scanner s = new Scanner(System.in);\n int i=1;\n while(i<=5){\n if(s.nextInt()==0){\n System.out.println(i);\n break;\n }\n i++;\n }\n\n\n\n }",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int i=1;",
"i",
"1",
"while(i<=5){\n if(s.nextInt()==0){\n System.out.println(i);\n break;\n }\n i++;\n }",
"i<=5",
"i",
"5",
"{\n if(s.nextInt()==0){\n System.out.println(i);\n break;\n }\n i++;\n }",
"if(s.nextInt()==0){\n System.out.println(i);\n break;\n }",
"s.nextInt()==0",
"s.nextInt()",
"s.nextInt",
"s",
"0",
"{\n System.out.println(i);\n break;\n }",
"System.out.println(i)",
"System.out.println",
"System.out",
"System",
"System.out",
"i",
"break;",
"i++",
"i",
"String[] args",
"args",
"class Scanner\n{\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s){\tbr = new BufferedReader(new InputStreamReader(s));}\n\n public String next() throws IOException\n {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {return Integer.parseInt(next());}\n\n public long nextLong() throws IOException {return Long.parseLong(next());}\n\n public String nextLine() throws IOException {return br.readLine();}\n\n public double nextDouble() throws IOException\n {\n String x = next();\n StringBuilder sb = new StringBuilder(\"0\");\n double res = 0, f = 1;\n boolean dec = false, neg = false;\n int start = 0;\n if(x.charAt(0) == '-')\n {\n neg = true;\n start++;\n }\n for(int i = start; i < x.length(); i++)\n if(x.charAt(i) == '.')\n {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n }\n else\n {\n sb.append(x.charAt(i));\n if(dec)\n f *= 10;\n }\n res += Long.parseLong(sb.toString()) / f;\n return res * (neg?-1:1);\n }\n\n public boolean ready() throws IOException {return br.ready();}\n\n\n}",
"Scanner",
"StringTokenizer st;",
"st",
"BufferedReader br;",
"br",
"public Scanner(InputStream s){\tbr = new BufferedReader(new InputStreamReader(s));}",
"Scanner",
"{\tbr = new BufferedReader(new InputStreamReader(s));}",
"br = new BufferedReader(new InputStreamReader(s))",
"br",
"new BufferedReader(new InputStreamReader(s))",
"InputStream s",
"s",
"public String next() throws IOException\n {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public int nextInt() throws IOException {return Integer.parseInt(next());}",
"nextInt",
"{return Integer.parseInt(next());}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public long nextLong() throws IOException {return Long.parseLong(next());}",
"nextLong",
"{return Long.parseLong(next());}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public String nextLine() throws IOException {return br.readLine();}",
"nextLine",
"{return br.readLine();}",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"public double nextDouble() throws IOException\n {\n String x = next();\n StringBuilder sb = new StringBuilder(\"0\");\n double res = 0, f = 1;\n boolean dec = false, neg = false;\n int start = 0;\n if(x.charAt(0) == '-')\n {\n neg = true;\n start++;\n }\n for(int i = start; i < x.length(); i++)\n if(x.charAt(i) == '.')\n {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n }\n else\n {\n sb.append(x.charAt(i));\n if(dec)\n f *= 10;\n }\n res += Long.parseLong(sb.toString()) / f;\n return res * (neg?-1:1);\n }",
"nextDouble",
"{\n String x = next();\n StringBuilder sb = new StringBuilder(\"0\");\n double res = 0, f = 1;\n boolean dec = false, neg = false;\n int start = 0;\n if(x.charAt(0) == '-')\n {\n neg = true;\n start++;\n }\n for(int i = start; i < x.length(); i++)\n if(x.charAt(i) == '.')\n {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n }\n else\n {\n sb.append(x.charAt(i));\n if(dec)\n f *= 10;\n }\n res += Long.parseLong(sb.toString()) / f;\n return res * (neg?-1:1);\n }",
"String x = next();",
"x",
"next()",
"next",
"StringBuilder sb = new StringBuilder(\"0\");",
"sb",
"new StringBuilder(\"0\")",
"double res = 0",
"res",
"0",
"f = 1;",
"f",
"1",
"boolean dec = false",
"dec",
"false",
"neg = false;",
"neg",
"false",
"int start = 0;",
"start",
"0",
"if(x.charAt(0) == '-')\n {\n neg = true;\n start++;\n }",
"x.charAt(0) == '-'",
"x.charAt(0)",
"x.charAt",
"x",
"0",
"'-'",
"{\n neg = true;\n start++;\n }",
"neg = true",
"neg",
"true",
"start++",
"start",
"for(int i = start; i < x.length(); i++)\n if(x.charAt(i) == '.')\n {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n }\n else\n {\n sb.append(x.charAt(i));\n if(dec)\n f *= 10;\n }",
"int i = start;",
"int i = start;",
"i",
"start",
"i < x.length()",
"i",
"x.length()",
"x.length",
"x",
"i++",
"i++",
"i",
"if(x.charAt(i) == '.')\n {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n }\n else\n {\n sb.append(x.charAt(i));\n if(dec)\n f *= 10;\n }",
"if(x.charAt(i) == '.')\n {\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n }\n else\n {\n sb.append(x.charAt(i));\n if(dec)\n f *= 10;\n }",
"x.charAt(i) == '.'",
"x.charAt(i)",
"x.charAt",
"x",
"i",
"'.'",
"{\n res = Long.parseLong(sb.toString());\n sb = new StringBuilder(\"0\");\n dec = true;\n }",
"res = Long.parseLong(sb.toString())",
"res",
"Long.parseLong(sb.toString())",
"Long.parseLong",
"Long",
"sb.toString()",
"sb.toString",
"sb",
"sb = new StringBuilder(\"0\")",
"sb",
"new StringBuilder(\"0\")",
"dec = true",
"dec",
"true",
"{\n sb.append(x.charAt(i));\n if(dec)\n f *= 10;\n }",
"sb.append(x.charAt(i))",
"sb.append",
"sb",
"x.charAt(i)",
"x.charAt",
"x",
"i",
"if(dec)\n f *= 10;",
"dec",
"f *= 10",
"f",
"10",
"res += Long.parseLong(sb.toString()) / f",
"res",
"Long.parseLong(sb.toString()) / f",
"Long.parseLong(sb.toString())",
"Long.parseLong",
"Long",
"sb.toString()",
"sb.toString",
"sb",
"f",
"return res * (neg?-1:1);",
"res * (neg?-1:1)",
"res",
"(neg?-1:1)",
"neg",
"-1",
"1",
"1",
"public boolean ready() throws IOException {return br.ready();}",
"ready",
"{return br.ready();}",
"return br.ready();",
"br.ready()",
"br.ready",
"br",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n Scanner s = new Scanner(System.in);\n int i=1;\n while(i<=5){\n if(s.nextInt()==0){\n System.out.println(i);\n break;\n }\n i++;\n }\n\n\n\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n Scanner s = new Scanner(System.in);\n int i=1;\n while(i<=5){\n if(s.nextInt()==0){\n System.out.println(i);\n break;\n }\n i++;\n }\n\n\n\n }\n\n}",
"Main"
]
|
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
Scanner s = new Scanner(System.in);
int i=1;
while(i<=5){
if(s.nextInt()==0){
System.out.println(i);
break;
}
i++;
}
}
}
class Scanner
{
StringTokenizer st;
BufferedReader br;
public Scanner(InputStream s){ br = new BufferedReader(new InputStreamReader(s));}
public String next() throws IOException
{
while (st == null || !st.hasMoreTokens())
st = new StringTokenizer(br.readLine());
return st.nextToken();
}
public int nextInt() throws IOException {return Integer.parseInt(next());}
public long nextLong() throws IOException {return Long.parseLong(next());}
public String nextLine() throws IOException {return br.readLine();}
public double nextDouble() throws IOException
{
String x = next();
StringBuilder sb = new StringBuilder("0");
double res = 0, f = 1;
boolean dec = false, neg = false;
int start = 0;
if(x.charAt(0) == '-')
{
neg = true;
start++;
}
for(int i = start; i < x.length(); i++)
if(x.charAt(i) == '.')
{
res = Long.parseLong(sb.toString());
sb = new StringBuilder("0");
dec = true;
}
else
{
sb.append(x.charAt(i));
if(dec)
f *= 10;
}
res += Long.parseLong(sb.toString()) / f;
return res * (neg?-1:1);
}
public boolean ready() throws IOException {return br.ready();}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
12,
17
],
[
17,
18
],
[
17,
19
],
[
12,
20
],
[
20,
21
],
[
21,
22
],
[
12,
23
],
[
24,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
6,
40
],
[
40,
41
]
]
| [
"import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tfor(int i=0; i<5; i++) {\n\t\t\tif(sc.nextInt() == 0) {\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t}\n\t\t}\n\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tfor(int i=0; i<5; i++) {\n\t\t\tif(sc.nextInt() == 0) {\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t}\n\t\t}\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tfor(int i=0; i<5; i++) {\n\t\t\tif(sc.nextInt() == 0) {\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t}\n\t\t}\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tfor(int i=0; i<5; i++) {\n\t\t\tif(sc.nextInt() == 0) {\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t}\n\t\t}\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"for(int i=0; i<5; i++) {\n\t\t\tif(sc.nextInt() == 0) {\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<5",
"i",
"5",
"i++",
"i++",
"i",
"{\n\t\t\tif(sc.nextInt() == 0) {\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(sc.nextInt() == 0) {\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t}\n\t\t}",
"if(sc.nextInt() == 0) {\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t}",
"sc.nextInt() == 0",
"sc.nextInt()",
"sc.nextInt",
"sc",
"0",
"{\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t}",
"System.out.println(i + 1)",
"System.out.println",
"System.out",
"System",
"System.out",
"i + 1",
"i",
"1",
"String[] args",
"args"
]
| import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
for(int i=0; i<5; i++) {
if(sc.nextInt() == 0) {
System.out.println(i + 1);
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
18,
13,
13,
17,
30,
0,
13,
2,
13,
17,
3,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
61,
5
],
[
61,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
14,
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
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
41,
42
],
[
41,
43
],
[
37,
44
],
[
36,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
45,
51
],
[
8,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
6,
58
],
[
58,
59
],
[
0,
60
],
[
60,
61
],
[
60,
62
]
]
| [
"import java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tString[] tmp = scanner.nextLine().split(\" \");\n\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 5; i++){\n\n\t\t\tif(Integer.parseInt(tmp[i]) == 0) {\n\t\t\t\tans = i + 1; break;\n\t\t\t}\n\n\t\t}\n\n\t\t\tSystem.out.println(ans);\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tString[] tmp = scanner.nextLine().split(\" \");\n\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 5; i++){\n\n\t\t\tif(Integer.parseInt(tmp[i]) == 0) {\n\t\t\t\tans = i + 1; break;\n\t\t\t}\n\n\t\t}\n\n\t\t\tSystem.out.println(ans);\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tString[] tmp = scanner.nextLine().split(\" \");\n\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 5; i++){\n\n\t\t\tif(Integer.parseInt(tmp[i]) == 0) {\n\t\t\t\tans = i + 1; break;\n\t\t\t}\n\n\t\t}\n\n\t\t\tSystem.out.println(ans);\n\n\t}",
"main",
"{\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tString[] tmp = scanner.nextLine().split(\" \");\n\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 5; i++){\n\n\t\t\tif(Integer.parseInt(tmp[i]) == 0) {\n\t\t\t\tans = i + 1; break;\n\t\t\t}\n\n\t\t}\n\n\t\t\tSystem.out.println(ans);\n\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"String[] tmp = scanner.nextLine().split(\" \");",
"tmp",
"scanner.nextLine().split(\" \")",
"scanner.nextLine().split",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"\" \"",
"int ans = 0;",
"ans",
"0",
"for(int i = 0; i < 5; i++){\n\n\t\t\tif(Integer.parseInt(tmp[i]) == 0) {\n\t\t\t\tans = i + 1; break;\n\t\t\t}\n\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n\n\t\t\tif(Integer.parseInt(tmp[i]) == 0) {\n\t\t\t\tans = i + 1; break;\n\t\t\t}\n\n\t\t}",
"{\n\n\t\t\tif(Integer.parseInt(tmp[i]) == 0) {\n\t\t\t\tans = i + 1; break;\n\t\t\t}\n\n\t\t}",
"if(Integer.parseInt(tmp[i]) == 0) {\n\t\t\t\tans = i + 1; break;\n\t\t\t}",
"Integer.parseInt(tmp[i]) == 0",
"Integer.parseInt(tmp[i])",
"Integer.parseInt",
"Integer",
"tmp[i]",
"tmp",
"i",
"0",
"{\n\t\t\t\tans = i + 1; break;\n\t\t\t}",
"ans = i + 1",
"ans",
"i + 1",
"i",
"1",
"break;",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tString[] tmp = scanner.nextLine().split(\" \");\n\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 5; i++){\n\n\t\t\tif(Integer.parseInt(tmp[i]) == 0) {\n\t\t\t\tans = i + 1; break;\n\t\t\t}\n\n\t\t}\n\n\t\t\tSystem.out.println(ans);\n\n\t}\n\n}",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tString[] tmp = scanner.nextLine().split(\" \");\n\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 5; i++){\n\n\t\t\tif(Integer.parseInt(tmp[i]) == 0) {\n\t\t\t\tans = i + 1; break;\n\t\t\t}\n\n\t\t}\n\n\t\t\tSystem.out.println(ans);\n\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String[] tmp = scanner.nextLine().split(" ");
int ans = 0;
for(int i = 0; i < 5; i++){
if(Integer.parseInt(tmp[i]) == 0) {
ans = i + 1; break;
}
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
12,
13,
30,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
2,
18,
13,
13,
17,
30,
4,
18,
13,
13,
29,
23,
13,
23,
13,
12,
13,
30,
41,
13,
8,
4,
18,
13,
18,
13,
13,
20,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
4,
13,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
20,
0,
18,
36,
13,
17,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
185,
29
],
[
185,
30
],
[
30,
31
],
[
30,
32
],
[
185,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
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
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
60,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
66,
71
],
[
33,
72
],
[
72,
73
],
[
33,
74
],
[
74,
75
],
[
185,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
81,
85
],
[
85,
86
],
[
85,
87
],
[
81,
88
],
[
78,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
91,
93
],
[
78,
94
],
[
94,
95
],
[
94,
96
],
[
78,
97
],
[
97,
98
],
[
97,
99
],
[
78,
100
],
[
100,
101
],
[
100,
102
],
[
100,
103
],
[
78,
104
],
[
104,
105
],
[
105,
106
],
[
76,
107
],
[
107,
108
],
[
185,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
109,
113
],
[
113,
114
],
[
109,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
117,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
115,
128
],
[
128,
129
],
[
109,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
133,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
143,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
132,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
109,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
161,
164
],
[
164,
165
],
[
109,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
170,
173
],
[
173,
174
],
[
109,
175
],
[
175,
176
],
[
175,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
179,
182
],
[
182,
183
],
[
0,
184
],
[
184,
185
],
[
184,
186
]
]
| [
"\nimport java.io.BufferedReader;\nimport java.io.File;\nimport java.io.FileInputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.io.OutputStream;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n private static final String INPUT_FILE_PATH = \"\";\n\n static void solve(InputReader in, PrintWriter out) {\n int[] a = new int[6];\n for (int i = 1; i <= 5; i++) {\n a[i] = in.nextInt();\n if (a[i] == 0) {\n out.println(i);\n return;\n }\n }\n }\n\n private static class InputReader {\n private BufferedReader br;\n private StringTokenizer st;\n\n public InputReader(InputStream inputStream) {\n this.br = new BufferedReader(new InputStreamReader(inputStream), 32768);\n this.st = null;\n }\n\n public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(nextToken());\n }\n\n public long nextLong() {\n return Long.parseLong(nextToken());\n }\n\n public double nextDouble() {\n return Double.parseDouble(nextToken());\n }\n }\n\n public static void main(String[] args) throws Exception {\n InputStream inputStream = INPUT_FILE_PATH.isEmpty()\n ? System.in\n : new FileInputStream(new File(INPUT_FILE_PATH));\n OutputStream outputStream = System.out;\n\n InputReader inputReader = new InputReader(inputStream);\n PrintWriter printWriter = new PrintWriter(outputStream);\n\n solve(inputReader, printWriter);\n\n printWriter.close();\n }\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.File;",
"File",
"java.io",
"import java.io.FileInputStream;",
"FileInputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n\n private static final String INPUT_FILE_PATH = \"\";\n\n static void solve(InputReader in, PrintWriter out) {\n int[] a = new int[6];\n for (int i = 1; i <= 5; i++) {\n a[i] = in.nextInt();\n if (a[i] == 0) {\n out.println(i);\n return;\n }\n }\n }\n\n private static class InputReader {\n private BufferedReader br;\n private StringTokenizer st;\n\n public InputReader(InputStream inputStream) {\n this.br = new BufferedReader(new InputStreamReader(inputStream), 32768);\n this.st = null;\n }\n\n public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(nextToken());\n }\n\n public long nextLong() {\n return Long.parseLong(nextToken());\n }\n\n public double nextDouble() {\n return Double.parseDouble(nextToken());\n }\n }\n\n public static void main(String[] args) throws Exception {\n InputStream inputStream = INPUT_FILE_PATH.isEmpty()\n ? System.in\n : new FileInputStream(new File(INPUT_FILE_PATH));\n OutputStream outputStream = System.out;\n\n InputReader inputReader = new InputReader(inputStream);\n PrintWriter printWriter = new PrintWriter(outputStream);\n\n solve(inputReader, printWriter);\n\n printWriter.close();\n }\n\n}",
"Main",
"private static final String INPUT_FILE_PATH = \"\";",
"INPUT_FILE_PATH",
"\"\"",
"static void solve(InputReader in, PrintWriter out) {\n int[] a = new int[6];\n for (int i = 1; i <= 5; i++) {\n a[i] = in.nextInt();\n if (a[i] == 0) {\n out.println(i);\n return;\n }\n }\n }",
"solve",
"{\n int[] a = new int[6];\n for (int i = 1; i <= 5; i++) {\n a[i] = in.nextInt();\n if (a[i] == 0) {\n out.println(i);\n return;\n }\n }\n }",
"int[] a = new int[6];",
"a",
"new int[6]",
"6",
"for (int i = 1; i <= 5; i++) {\n a[i] = in.nextInt();\n if (a[i] == 0) {\n out.println(i);\n return;\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n a[i] = in.nextInt();\n if (a[i] == 0) {\n out.println(i);\n return;\n }\n }",
"{\n a[i] = in.nextInt();\n if (a[i] == 0) {\n out.println(i);\n return;\n }\n }",
"a[i] = in.nextInt()",
"a[i]",
"a",
"i",
"in.nextInt()",
"in.nextInt",
"in",
"if (a[i] == 0) {\n out.println(i);\n return;\n }",
"a[i] == 0",
"a[i]",
"a",
"i",
"0",
"{\n out.println(i);\n return;\n }",
"out.println(i)",
"out.println",
"out",
"i",
"return;",
"InputReader in",
"in",
"PrintWriter out",
"out",
"public static void main(String[] args) throws Exception {\n InputStream inputStream = INPUT_FILE_PATH.isEmpty()\n ? System.in\n : new FileInputStream(new File(INPUT_FILE_PATH));\n OutputStream outputStream = System.out;\n\n InputReader inputReader = new InputReader(inputStream);\n PrintWriter printWriter = new PrintWriter(outputStream);\n\n solve(inputReader, printWriter);\n\n printWriter.close();\n }",
"main",
"{\n InputStream inputStream = INPUT_FILE_PATH.isEmpty()\n ? System.in\n : new FileInputStream(new File(INPUT_FILE_PATH));\n OutputStream outputStream = System.out;\n\n InputReader inputReader = new InputReader(inputStream);\n PrintWriter printWriter = new PrintWriter(outputStream);\n\n solve(inputReader, printWriter);\n\n printWriter.close();\n }",
"InputStream inputStream = INPUT_FILE_PATH.isEmpty()\n ? System.in\n : new FileInputStream(new File(INPUT_FILE_PATH));",
"inputStream",
"INPUT_FILE_PATH.isEmpty()\n ? System.in\n : new FileInputStream(new File(INPUT_FILE_PATH))",
"INPUT_FILE_PATH.isEmpty()",
"INPUT_FILE_PATH.isEmpty",
"INPUT_FILE_PATH",
"System.in",
"System",
"System.in",
"new FileInputStream(new File(INPUT_FILE_PATH))",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"InputReader inputReader = new InputReader(inputStream);",
"inputReader",
"new InputReader(inputStream)",
"PrintWriter printWriter = new PrintWriter(outputStream);",
"printWriter",
"new PrintWriter(outputStream)",
"solve(inputReader, printWriter)",
"solve",
"inputReader",
"printWriter",
"printWriter.close()",
"printWriter.close",
"printWriter",
"String[] args",
"args",
"private static class InputReader {\n private BufferedReader br;\n private StringTokenizer st;\n\n public InputReader(InputStream inputStream) {\n this.br = new BufferedReader(new InputStreamReader(inputStream), 32768);\n this.st = null;\n }\n\n public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(nextToken());\n }\n\n public long nextLong() {\n return Long.parseLong(nextToken());\n }\n\n public double nextDouble() {\n return Double.parseDouble(nextToken());\n }\n }",
"InputReader",
"private BufferedReader br;",
"br",
"private StringTokenizer st;",
"st",
"public InputReader(InputStream inputStream) {\n this.br = new BufferedReader(new InputStreamReader(inputStream), 32768);\n this.st = null;\n }",
"InputReader",
"{\n this.br = new BufferedReader(new InputStreamReader(inputStream), 32768);\n this.st = null;\n }",
"this.br = new BufferedReader(new InputStreamReader(inputStream), 32768)",
"this.br",
"this",
"this.br",
"new BufferedReader(new InputStreamReader(inputStream), 32768)",
"this.st = null",
"this.st",
"this",
"this.st",
"null",
"InputStream inputStream",
"inputStream",
"public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }",
"nextToken",
"{\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }",
"catch (IOException e) {\n throw new RuntimeException(e);\n }",
"IOException e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public int nextInt() {\n return Integer.parseInt(nextToken());\n }",
"nextInt",
"{\n return Integer.parseInt(nextToken());\n }",
"return Integer.parseInt(nextToken());",
"Integer.parseInt(nextToken())",
"Integer.parseInt",
"Integer",
"nextToken()",
"nextToken",
"public long nextLong() {\n return Long.parseLong(nextToken());\n }",
"nextLong",
"{\n return Long.parseLong(nextToken());\n }",
"return Long.parseLong(nextToken());",
"Long.parseLong(nextToken())",
"Long.parseLong",
"Long",
"nextToken()",
"nextToken",
"public double nextDouble() {\n return Double.parseDouble(nextToken());\n }",
"nextDouble",
"{\n return Double.parseDouble(nextToken());\n }",
"return Double.parseDouble(nextToken());",
"Double.parseDouble(nextToken())",
"Double.parseDouble",
"Double",
"nextToken()",
"nextToken",
"public class Main {\n\n private static final String INPUT_FILE_PATH = \"\";\n\n static void solve(InputReader in, PrintWriter out) {\n int[] a = new int[6];\n for (int i = 1; i <= 5; i++) {\n a[i] = in.nextInt();\n if (a[i] == 0) {\n out.println(i);\n return;\n }\n }\n }\n\n private static class InputReader {\n private BufferedReader br;\n private StringTokenizer st;\n\n public InputReader(InputStream inputStream) {\n this.br = new BufferedReader(new InputStreamReader(inputStream), 32768);\n this.st = null;\n }\n\n public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(nextToken());\n }\n\n public long nextLong() {\n return Long.parseLong(nextToken());\n }\n\n public double nextDouble() {\n return Double.parseDouble(nextToken());\n }\n }\n\n public static void main(String[] args) throws Exception {\n InputStream inputStream = INPUT_FILE_PATH.isEmpty()\n ? System.in\n : new FileInputStream(new File(INPUT_FILE_PATH));\n OutputStream outputStream = System.out;\n\n InputReader inputReader = new InputReader(inputStream);\n PrintWriter printWriter = new PrintWriter(outputStream);\n\n solve(inputReader, printWriter);\n\n printWriter.close();\n }\n\n}",
"public class Main {\n\n private static final String INPUT_FILE_PATH = \"\";\n\n static void solve(InputReader in, PrintWriter out) {\n int[] a = new int[6];\n for (int i = 1; i <= 5; i++) {\n a[i] = in.nextInt();\n if (a[i] == 0) {\n out.println(i);\n return;\n }\n }\n }\n\n private static class InputReader {\n private BufferedReader br;\n private StringTokenizer st;\n\n public InputReader(InputStream inputStream) {\n this.br = new BufferedReader(new InputStreamReader(inputStream), 32768);\n this.st = null;\n }\n\n public String nextToken() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(nextToken());\n }\n\n public long nextLong() {\n return Long.parseLong(nextToken());\n }\n\n public double nextDouble() {\n return Double.parseDouble(nextToken());\n }\n }\n\n public static void main(String[] args) throws Exception {\n InputStream inputStream = INPUT_FILE_PATH.isEmpty()\n ? System.in\n : new FileInputStream(new File(INPUT_FILE_PATH));\n OutputStream outputStream = System.out;\n\n InputReader inputReader = new InputReader(inputStream);\n PrintWriter printWriter = new PrintWriter(outputStream);\n\n solve(inputReader, printWriter);\n\n printWriter.close();\n }\n\n}",
"Main"
]
|
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;
public class Main {
private static final String INPUT_FILE_PATH = "";
static void solve(InputReader in, PrintWriter out) {
int[] a = new int[6];
for (int i = 1; i <= 5; i++) {
a[i] = in.nextInt();
if (a[i] == 0) {
out.println(i);
return;
}
}
}
private static class InputReader {
private BufferedReader br;
private StringTokenizer st;
public InputReader(InputStream inputStream) {
this.br = new BufferedReader(new InputStreamReader(inputStream), 32768);
this.st = null;
}
public String nextToken() {
while (st == null || !st.hasMoreTokens()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return st.nextToken();
}
public int nextInt() {
return Integer.parseInt(nextToken());
}
public long nextLong() {
return Long.parseLong(nextToken());
}
public double nextDouble() {
return Double.parseDouble(nextToken());
}
}
public static void main(String[] args) throws Exception {
InputStream inputStream = INPUT_FILE_PATH.isEmpty()
? System.in
: new FileInputStream(new File(INPUT_FILE_PATH));
OutputStream outputStream = System.out;
InputReader inputReader = new InputReader(inputStream);
PrintWriter printWriter = new PrintWriter(outputStream);
solve(inputReader, printWriter);
printWriter.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
0,
18,
13,
17,
4,
18,
13,
0,
18,
13,
17,
4,
18,
13,
0,
18,
13,
17,
4,
18,
13,
0,
18,
13,
17,
4,
18,
13,
0,
18,
13,
17,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
0,
13,
2,
13,
17,
4,
18,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
91,
5
],
[
91,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
42,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
49,
50
],
[
8,
51
],
[
51,
52
],
[
51,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
54,
65
],
[
66,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
67,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
76,
78
],
[
8,
79
],
[
79,
80
],
[
80,
81
],
[
8,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
6,
88
],
[
88,
89
],
[
0,
90
],
[
90,
91
],
[
90,
92
]
]
| [
"import java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] a = new int[5];\n\t\ta[0] = sc.nextInt();\n\t\ta[1] = sc.nextInt();\n\t\ta[2] = sc.nextInt();\n\t\ta[3] = sc.nextInt();\n\t\ta[4] = sc.nextInt();\n\t\tint b = 0;\n\t\tfor(int i=0; i<5; i++) {\n\t\t\tif(a[i]==0) {\n\t\t\t\tb = i+1;\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t\tSystem.out.println(b);\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] a = new int[5];\n\t\ta[0] = sc.nextInt();\n\t\ta[1] = sc.nextInt();\n\t\ta[2] = sc.nextInt();\n\t\ta[3] = sc.nextInt();\n\t\ta[4] = sc.nextInt();\n\t\tint b = 0;\n\t\tfor(int i=0; i<5; i++) {\n\t\t\tif(a[i]==0) {\n\t\t\t\tb = i+1;\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t\tSystem.out.println(b);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] a = new int[5];\n\t\ta[0] = sc.nextInt();\n\t\ta[1] = sc.nextInt();\n\t\ta[2] = sc.nextInt();\n\t\ta[3] = sc.nextInt();\n\t\ta[4] = sc.nextInt();\n\t\tint b = 0;\n\t\tfor(int i=0; i<5; i++) {\n\t\t\tif(a[i]==0) {\n\t\t\t\tb = i+1;\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t\tSystem.out.println(b);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] a = new int[5];\n\t\ta[0] = sc.nextInt();\n\t\ta[1] = sc.nextInt();\n\t\ta[2] = sc.nextInt();\n\t\ta[3] = sc.nextInt();\n\t\ta[4] = sc.nextInt();\n\t\tint b = 0;\n\t\tfor(int i=0; i<5; i++) {\n\t\t\tif(a[i]==0) {\n\t\t\t\tb = i+1;\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t\tSystem.out.println(b);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] a = new int[5];",
"a",
"new int[5]",
"5",
"a[0] = sc.nextInt()",
"a[0]",
"a",
"0",
"sc.nextInt()",
"sc.nextInt",
"sc",
"a[1] = sc.nextInt()",
"a[1]",
"a",
"1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"a[2] = sc.nextInt()",
"a[2]",
"a",
"2",
"sc.nextInt()",
"sc.nextInt",
"sc",
"a[3] = sc.nextInt()",
"a[3]",
"a",
"3",
"sc.nextInt()",
"sc.nextInt",
"sc",
"a[4] = sc.nextInt()",
"a[4]",
"a",
"4",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = 0;",
"b",
"0",
"for(int i=0; i<5; i++) {\n\t\t\tif(a[i]==0) {\n\t\t\t\tb = i+1;\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<5",
"i",
"5",
"i++",
"i++",
"i",
"{\n\t\t\tif(a[i]==0) {\n\t\t\t\tb = i+1;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(a[i]==0) {\n\t\t\t\tb = i+1;\n\t\t\t}\n\t\t}",
"if(a[i]==0) {\n\t\t\t\tb = i+1;\n\t\t\t}",
"a[i]==0",
"a[i]",
"a",
"i",
"0",
"{\n\t\t\t\tb = i+1;\n\t\t\t}",
"b = i+1",
"b",
"i+1",
"i",
"1",
"sc.close()",
"sc.close",
"sc",
"System.out.println(b)",
"System.out.println",
"System.out",
"System",
"System.out",
"b",
"String[] args",
"args",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] a = new int[5];\n\t\ta[0] = sc.nextInt();\n\t\ta[1] = sc.nextInt();\n\t\ta[2] = sc.nextInt();\n\t\ta[3] = sc.nextInt();\n\t\ta[4] = sc.nextInt();\n\t\tint b = 0;\n\t\tfor(int i=0; i<5; i++) {\n\t\t\tif(a[i]==0) {\n\t\t\t\tb = i+1;\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t\tSystem.out.println(b);\n\t}\n\n}",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] a = new int[5];\n\t\ta[0] = sc.nextInt();\n\t\ta[1] = sc.nextInt();\n\t\ta[2] = sc.nextInt();\n\t\ta[3] = sc.nextInt();\n\t\ta[4] = sc.nextInt();\n\t\tint b = 0;\n\t\tfor(int i=0; i<5; i++) {\n\t\t\tif(a[i]==0) {\n\t\t\t\tb = i+1;\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t\tSystem.out.println(b);\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[] a = new int[5];
a[0] = sc.nextInt();
a[1] = sc.nextInt();
a[2] = sc.nextInt();
a[3] = sc.nextInt();
a[4] = sc.nextInt();
int b = 0;
for(int i=0; i<5; i++) {
if(a[i]==0) {
b = i+1;
}
}
sc.close();
System.out.println(b);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
8,
37
],
[
37,
38
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
8,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
8,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
8,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
8,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
6,
94
],
[
94,
95
]
]
| [
"import java.util.Scanner;\n// A - Multiplication 1\nclass Main{\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint C = sc.nextInt();\n\t\tint D = sc.nextInt();\n\t\tint E = sc.nextInt();\n\n\t\tint ans;\n\n\t\tif (A == 0) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}\n\t\tif (B == 0) {\n\t\t\tSystem.out.println(\"2\");\n\t\t}\n\t\tif (C == 0) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}\n\t\tif (D == 0) {\n\t\t\tSystem.out.println(\"4\");\n\t\t}\n\t\tif (E == 0) {\n\t\t\tSystem.out.println(\"5\");\n\t\t}\n\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint C = sc.nextInt();\n\t\tint D = sc.nextInt();\n\t\tint E = sc.nextInt();\n\n\t\tint ans;\n\n\t\tif (A == 0) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}\n\t\tif (B == 0) {\n\t\t\tSystem.out.println(\"2\");\n\t\t}\n\t\tif (C == 0) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}\n\t\tif (D == 0) {\n\t\t\tSystem.out.println(\"4\");\n\t\t}\n\t\tif (E == 0) {\n\t\t\tSystem.out.println(\"5\");\n\t\t}\n\n\t}\n}",
"Main",
"public static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint C = sc.nextInt();\n\t\tint D = sc.nextInt();\n\t\tint E = sc.nextInt();\n\n\t\tint ans;\n\n\t\tif (A == 0) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}\n\t\tif (B == 0) {\n\t\t\tSystem.out.println(\"2\");\n\t\t}\n\t\tif (C == 0) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}\n\t\tif (D == 0) {\n\t\t\tSystem.out.println(\"4\");\n\t\t}\n\t\tif (E == 0) {\n\t\t\tSystem.out.println(\"5\");\n\t\t}\n\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint C = sc.nextInt();\n\t\tint D = sc.nextInt();\n\t\tint E = sc.nextInt();\n\n\t\tint ans;\n\n\t\tif (A == 0) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}\n\t\tif (B == 0) {\n\t\t\tSystem.out.println(\"2\");\n\t\t}\n\t\tif (C == 0) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}\n\t\tif (D == 0) {\n\t\t\tSystem.out.println(\"4\");\n\t\t}\n\t\tif (E == 0) {\n\t\t\tSystem.out.println(\"5\");\n\t\t}\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int A = sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int B = sc.nextInt();",
"B",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int C = sc.nextInt();",
"C",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int D = sc.nextInt();",
"D",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int E = sc.nextInt();",
"E",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ans;",
"ans",
"if (A == 0) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}",
"A == 0",
"A",
"0",
"{\n\t\t\tSystem.out.println(\"1\");\n\t\t}",
"System.out.println(\"1\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"1\"",
"if (B == 0) {\n\t\t\tSystem.out.println(\"2\");\n\t\t}",
"B == 0",
"B",
"0",
"{\n\t\t\tSystem.out.println(\"2\");\n\t\t}",
"System.out.println(\"2\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"2\"",
"if (C == 0) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}",
"C == 0",
"C",
"0",
"{\n\t\t\tSystem.out.println(\"3\");\n\t\t}",
"System.out.println(\"3\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"3\"",
"if (D == 0) {\n\t\t\tSystem.out.println(\"4\");\n\t\t}",
"D == 0",
"D",
"0",
"{\n\t\t\tSystem.out.println(\"4\");\n\t\t}",
"System.out.println(\"4\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"4\"",
"if (E == 0) {\n\t\t\tSystem.out.println(\"5\");\n\t\t}",
"E == 0",
"E",
"0",
"{\n\t\t\tSystem.out.println(\"5\");\n\t\t}",
"System.out.println(\"5\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"5\"",
"String[] args",
"args"
]
| import java.util.Scanner;
// A - Multiplication 1
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
int C = sc.nextInt();
int D = sc.nextInt();
int E = sc.nextInt();
int ans;
if (A == 0) {
System.out.println("1");
}
if (B == 0) {
System.out.println("2");
}
if (C == 0) {
System.out.println("3");
}
if (D == 0) {
System.out.println("4");
}
if (E == 0) {
System.out.println("5");
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
20,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
2,
18,
13,
13,
17,
0,
13,
2,
13,
17,
4,
18,
13,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
40,
17,
30,
37,
20,
14,
2,
13,
13,
30,
0,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
30,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
14,
2,
2,
13,
17,
2,
13,
17,
30,
37,
20,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
29,
2,
13,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
4,
18,
13,
13,
29,
4,
13,
13,
23,
13,
12,
13,
30,
29,
2,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
6,
13,
12,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
299,
23
],
[
299,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
26,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
26,
37
],
[
37,
38
],
[
37,
39
],
[
26,
40
],
[
40,
41
],
[
40,
42
],
[
26,
43
],
[
43,
44
],
[
43,
45
],
[
26,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
46,
50
],
[
46,
51
],
[
26,
52
],
[
52,
53
],
[
53,
54
],
[
24,
55
],
[
55,
56
],
[
299,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
77,
78
],
[
78,
79
],
[
69,
80
],
[
81,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
87,
88
],
[
81,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
89,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
97,
99
],
[
61,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
59,
104
],
[
104,
105
],
[
59,
106
],
[
106,
107
],
[
59,
108
],
[
108,
109
],
[
299,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
110,
114
],
[
114,
115
],
[
114,
116
],
[
110,
118
],
[
118,
119
],
[
110,
120
],
[
120,
121
],
[
110,
122
],
[
122,
123
],
[
110,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
124,
132
],
[
132,
133
],
[
110,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
137,
142
],
[
142,
143
],
[
143,
144
],
[
136,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
145,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
149,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
157,
158
],
[
153,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
162,
165
],
[
149,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
136,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
177,
178
],
[
110,
179
],
[
179,
180
],
[
179,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
181,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
186,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
193,
194
],
[
181,
195
],
[
195,
196
],
[
195,
197
],
[
181,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
198,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
205,
206
],
[
202,
207
],
[
207,
208
],
[
207,
209
],
[
209,
210
],
[
181,
211
],
[
211,
212
],
[
211,
213
],
[
181,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
214,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
221,
225
],
[
225,
226
],
[
225,
227
],
[
220,
228
],
[
228,
229
],
[
229,
230
],
[
219,
231
],
[
231,
232
],
[
231,
233
],
[
219,
234
],
[
234,
235
],
[
234,
236
],
[
236,
237
],
[
236,
238
],
[
219,
239
],
[
239,
240
],
[
239,
241
],
[
241,
242
],
[
181,
243
],
[
243,
244
],
[
244,
245
],
[
244,
246
],
[
110,
247
],
[
247,
248
],
[
247,
249
],
[
249,
250
],
[
250,
251
],
[
251,
252
],
[
251,
253
],
[
250,
254
],
[
254,
255
],
[
255,
256
],
[
256,
257
],
[
257,
258
],
[
256,
259
],
[
249,
260
],
[
260,
261
],
[
261,
262
],
[
261,
263
],
[
247,
264
],
[
264,
265
],
[
110,
266
],
[
266,
267
],
[
266,
268
],
[
268,
269
],
[
269,
270
],
[
273,
271
],
[
283,
272
],
[
280,
273
],
[
273,
274
],
[
274,
275
],
[
274,
276
],
[
273,
277
],
[
277,
278
],
[
277,
279
],
[
280,
280
],
[
280,
281
],
[
280,
282
],
[
283,
283
],
[
283,
284
],
[
283,
285
],
[
273,
286
],
[
286,
287
],
[
286,
288
],
[
288,
289
],
[
266,
290
],
[
290,
291
],
[
110,
292
],
[
292,
293
],
[
292,
294
],
[
294,
295
],
[
294,
296
],
[
296,
297
],
[
0,
298
],
[
298,
299
],
[
298,
300
]
]
| [
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.InputMismatchException;\nimport java.io.IOException;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author Vishal Burman\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n AFiveVariables solver = new AFiveVariables();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class AFiveVariables {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int a[] = new int[5];\n int index = 0;\n for (int i = 0; i < 5; i++) {\n a[i] = in.nextInt();\n if (a[i] == 0)\n index = i + 1;\n }\n out.println(index);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.InputMismatchException;",
"InputMismatchException",
"java.util",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n AFiveVariables solver = new AFiveVariables();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class AFiveVariables {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int a[] = new int[5];\n int index = 0;\n for (int i = 0; i < 5; i++) {\n a[i] = in.nextInt();\n if (a[i] == 0)\n index = i + 1;\n }\n out.println(index);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n AFiveVariables solver = new AFiveVariables();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n AFiveVariables solver = new AFiveVariables();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"InputReader in = new InputReader(inputStream);",
"in",
"new InputReader(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"AFiveVariables solver = new AFiveVariables();",
"solver",
"new AFiveVariables()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class AFiveVariables {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int a[] = new int[5];\n int index = 0;\n for (int i = 0; i < 5; i++) {\n a[i] = in.nextInt();\n if (a[i] == 0)\n index = i + 1;\n }\n out.println(index);\n }\n\n }",
"AFiveVariables",
"public void solve(int testNumber, InputReader in, PrintWriter out) {\n int a[] = new int[5];\n int index = 0;\n for (int i = 0; i < 5; i++) {\n a[i] = in.nextInt();\n if (a[i] == 0)\n index = i + 1;\n }\n out.println(index);\n }",
"solve",
"{\n int a[] = new int[5];\n int index = 0;\n for (int i = 0; i < 5; i++) {\n a[i] = in.nextInt();\n if (a[i] == 0)\n index = i + 1;\n }\n out.println(index);\n }",
"int a[] = new int[5];",
"a",
"new int[5]",
"5",
"int index = 0;",
"index",
"0",
"for (int i = 0; i < 5; i++) {\n a[i] = in.nextInt();\n if (a[i] == 0)\n index = i + 1;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n a[i] = in.nextInt();\n if (a[i] == 0)\n index = i + 1;\n }",
"{\n a[i] = in.nextInt();\n if (a[i] == 0)\n index = i + 1;\n }",
"a[i] = in.nextInt()",
"a[i]",
"a",
"i",
"in.nextInt()",
"in.nextInt",
"in",
"if (a[i] == 0)\n index = i + 1;",
"a[i] == 0",
"a[i]",
"a",
"i",
"0",
"index = i + 1",
"index",
"i + 1",
"i",
"1",
"out.println(index)",
"out.println",
"out",
"index",
"int testNumber",
"testNumber",
"InputReader in",
"in",
"PrintWriter out",
"out",
"static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }",
"InputReader",
"private InputStream stream;",
"stream",
"private byte[] buf = new byte[1024];",
"buf",
"new byte[1024]",
"1024",
"private int curChar;",
"curChar",
"private int numChars;",
"numChars",
"private InputReader.SpaceCharFilter filter;",
"filter",
"public InputReader(InputStream stream) {\n this.stream = stream;\n }",
"InputReader",
"{\n this.stream = stream;\n }",
"this.stream = stream",
"this.stream",
"this",
"this.stream",
"stream",
"InputStream stream",
"stream",
"public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }",
"read",
"{\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }",
"if (numChars == -1) {\n throw new InputMismatchException();\n }",
"numChars == -1",
"numChars",
"-1",
"1",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }",
"curChar >= numChars",
"curChar",
"numChars",
"{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }",
"curChar = 0",
"curChar",
"0",
"try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }",
"catch (IOException e) {\n throw new InputMismatchException();\n }",
"IOException e",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n numChars = stream.read(buf);\n }",
"numChars = stream.read(buf)",
"numChars",
"stream.read(buf)",
"stream.read",
"stream",
"buf",
"if (numChars <= 0) {\n return -1;\n }",
"numChars <= 0",
"numChars",
"0",
"{\n return -1;\n }",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"nextInt",
"{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) {\n c = read();\n }",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n c = read();\n }",
"c = read()",
"c",
"read()",
"read",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') {\n sgn = -1;\n c = read();\n }",
"c == '-'",
"c",
"'-'",
"{\n sgn = -1;\n c = read();\n }",
"sgn = -1",
"sgn",
"-1",
"1",
"c = read()",
"c",
"read()",
"read",
"int res = 0;",
"res",
"0",
"do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n }",
"if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"res *= 10",
"res",
"10",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = read()",
"c",
"read()",
"read",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }",
"isSpaceChar",
"{\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }",
"if (filter != null) {\n return filter.isSpaceChar(c);\n }",
"filter != null",
"filter",
"null",
"{\n return filter.isSpaceChar(c);\n }",
"return filter.isSpaceChar(c);",
"filter.isSpaceChar(c)",
"filter.isSpaceChar",
"filter",
"c",
"return isWhitespace(c);",
"isWhitespace(c)",
"isWhitespace",
"c",
"int c",
"c",
"public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"isWhitespace",
"{\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == '\\t'",
"c == '\\r'",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == ' '",
"c",
"' '",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == '\\t'",
"c",
"'\\t'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }",
"SpaceCharFilter",
"public boolean isSpaceChar(int ch);",
"isSpaceChar",
"int ch",
"ch",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n AFiveVariables solver = new AFiveVariables();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class AFiveVariables {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int a[] = new int[5];\n int index = 0;\n for (int i = 0; i < 5; i++) {\n a[i] = in.nextInt();\n if (a[i] == 0)\n index = i + 1;\n }\n out.println(index);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n AFiveVariables solver = new AFiveVariables();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class AFiveVariables {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int a[] = new int[5];\n int index = 0;\n for (int i = 0; i < 5; i++) {\n a[i] = in.nextInt();\n if (a[i] == 0)\n index = i + 1;\n }\n out.println(index);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}",
"Main"
]
| import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.InputMismatchException;
import java.io.IOException;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author Vishal Burman
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
AFiveVariables solver = new AFiveVariables();
solver.solve(1, in, out);
out.close();
}
static class AFiveVariables {
public void solve(int testNumber, InputReader in, PrintWriter out) {
int a[] = new int[5];
int index = 0;
for (int i = 0; i < 5; i++) {
a[i] = in.nextInt();
if (a[i] == 0)
index = i + 1;
}
out.println(index);
}
}
static class InputReader {
private InputStream stream;
private byte[] buf = new byte[1024];
private int curChar;
private int numChars;
private InputReader.SpaceCharFilter filter;
public InputReader(InputStream stream) {
this.stream = stream;
}
public int read() {
if (numChars == -1) {
throw new InputMismatchException();
}
if (curChar >= numChars) {
curChar = 0;
try {
numChars = stream.read(buf);
} catch (IOException e) {
throw new InputMismatchException();
}
if (numChars <= 0) {
return -1;
}
}
return buf[curChar++];
}
public int nextInt() {
int c = read();
while (isSpaceChar(c)) {
c = read();
}
int sgn = 1;
if (c == '-') {
sgn = -1;
c = read();
}
int res = 0;
do {
if (c < '0' || c > '9') {
throw new InputMismatchException();
}
res *= 10;
res += c - '0';
c = read();
} while (!isSpaceChar(c));
return res * sgn;
}
public boolean isSpaceChar(int c) {
if (filter != null) {
return filter.isSpaceChar(c);
}
return isWhitespace(c);
}
public static boolean isWhitespace(int c) {
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
public interface SpaceCharFilter {
public boolean isSpaceChar(int ch);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
13,
2,
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
],
[
55,
8
],
[
55,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
18,
23
],
[
23,
24
],
[
23,
25
],
[
18,
26
],
[
26,
27
],
[
27,
28
],
[
18,
29
],
[
30,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
30,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
11,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
9,
52
],
[
52,
53
],
[
0,
54
],
[
54,
55
],
[
54,
56
]
]
| [
"import java.util.Scanner;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 5; i++){\n\n\t\tint n = scan.nextInt();\n\t\tif(n == 0){\n\t\t\tans = i + 1;\n\t\t}\n\t\t}\n\n System.out.println(ans);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 5; i++){\n\n\t\tint n = scan.nextInt();\n\t\tif(n == 0){\n\t\t\tans = i + 1;\n\t\t}\n\t\t}\n\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 5; i++){\n\n\t\tint n = scan.nextInt();\n\t\tif(n == 0){\n\t\t\tans = i + 1;\n\t\t}\n\t\t}\n\n System.out.println(ans);\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 5; i++){\n\n\t\tint n = scan.nextInt();\n\t\tif(n == 0){\n\t\t\tans = i + 1;\n\t\t}\n\t\t}\n\n System.out.println(ans);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int ans = 0;",
"ans",
"0",
"for(int i = 0; i < 5; i++){\n\n\t\tint n = scan.nextInt();\n\t\tif(n == 0){\n\t\t\tans = i + 1;\n\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n\n\t\tint n = scan.nextInt();\n\t\tif(n == 0){\n\t\t\tans = i + 1;\n\t\t}\n\t\t}",
"{\n\n\t\tint n = scan.nextInt();\n\t\tif(n == 0){\n\t\t\tans = i + 1;\n\t\t}\n\t\t}",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if(n == 0){\n\t\t\tans = i + 1;\n\t\t}",
"n == 0",
"n",
"0",
"{\n\t\t\tans = i + 1;\n\t\t}",
"ans = i + 1",
"ans",
"i + 1",
"i",
"1",
"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) {\n Scanner scan = new Scanner(System.in);\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 5; i++){\n\n\t\tint n = scan.nextInt();\n\t\tif(n == 0){\n\t\t\tans = i + 1;\n\t\t}\n\t\t}\n\n System.out.println(ans);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 5; i++){\n\n\t\tint n = scan.nextInt();\n\t\tif(n == 0){\n\t\t\tans = i + 1;\n\t\t}\n\t\t}\n\n System.out.println(ans);\n }\n}",
"Main"
]
| import java.util.Scanner;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int ans = 0;
for(int i = 0; i < 5; i++){
int n = scan.nextInt();
if(n == 0){
ans = i + 1;
}
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
4,
18,
13,
17,
17,
17,
23,
13,
6,
13,
41,
13,
2,
17,
17,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
13,
0,
13,
0,
13,
17,
12,
13,
30,
0,
13,
20,
0,
13,
20,
13,
0,
13,
0,
13,
17,
23,
13,
12,
13,
30,
41,
13,
20,
17,
41,
13,
17,
41,
13,
42,
2,
0,
13,
4,
13,
40,
17,
30,
14,
2,
13,
17,
3,
0,
18,
13,
40,
13,
13,
29,
20,
12,
13,
30,
41,
13,
17,
41,
13,
4,
13,
42,
2,
13,
17,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
13,
29,
40,
13,
29,
13,
12,
13,
30,
41,
13,
17,
41,
13,
4,
13,
42,
2,
13,
17,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
13,
29,
40,
13,
29,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
4,
13,
42,
2,
13,
17,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
2,
13,
17,
30,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
13,
17,
0,
13,
17,
14,
13,
29,
40,
13,
29,
13,
12,
13,
30,
0,
13,
4,
18,
13,
13,
0,
13,
17,
13,
14,
2,
13,
40,
17,
0,
18,
13,
17,
40,
17,
12,
13,
30,
14,
2,
13,
13,
4,
13,
29,
18,
13,
40,
13,
12,
13,
30,
14,
2,
13,
17,
29,
4,
18,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
363,
5
],
[
363,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
23,
28
],
[
22,
29
],
[
6,
30
],
[
30,
31
],
[
363,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
36,
38
],
[
32,
39
],
[
39,
40
],
[
32,
41
],
[
41,
42
],
[
32,
43
],
[
43,
44
],
[
32,
45
],
[
45,
46
],
[
32,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
53,
55
],
[
49,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
32,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
68,
70
],
[
64,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
74,
76
],
[
62,
77
],
[
77,
78
],
[
32,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
86
],
[
86,
87
],
[
86,
88
],
[
81,
89
],
[
89,
90
],
[
81,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
92,
97
],
[
97,
98
],
[
91,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
99,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
105,
110
],
[
81,
111
],
[
111,
112
],
[
32,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
115,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
115,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
133,
135
],
[
115,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
115,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
144,
149
],
[
143,
150
],
[
150,
151
],
[
150,
152
],
[
142,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
156,
162
],
[
115,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
166,
167
],
[
115,
168
],
[
168,
169
],
[
32,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
172,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
172,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
180,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
172,
188
],
[
188,
189
],
[
188,
190
],
[
190,
191
],
[
190,
192
],
[
172,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
172,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
204,
205
],
[
201,
206
],
[
200,
207
],
[
207,
208
],
[
207,
209
],
[
199,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
214,
218
],
[
213,
219
],
[
172,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
223,
224
],
[
172,
225
],
[
225,
226
],
[
32,
227
],
[
227,
228
],
[
227,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
229,
233
],
[
233,
234
],
[
233,
235
],
[
229,
236
],
[
236,
237
],
[
236,
238
],
[
238,
239
],
[
229,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
240,
244
],
[
244,
245
],
[
244,
246
],
[
246,
247
],
[
229,
248
],
[
248,
249
],
[
248,
250
],
[
250,
251
],
[
250,
252
],
[
229,
253
],
[
253,
254
],
[
253,
255
],
[
255,
256
],
[
255,
257
],
[
257,
258
],
[
229,
259
],
[
259,
260
],
[
260,
261
],
[
261,
262
],
[
262,
263
],
[
262,
264
],
[
264,
265
],
[
261,
266
],
[
260,
267
],
[
267,
268
],
[
267,
269
],
[
259,
270
],
[
270,
271
],
[
271,
272
],
[
271,
273
],
[
273,
274
],
[
274,
275
],
[
275,
276
],
[
275,
277
],
[
274,
278
],
[
273,
279
],
[
229,
280
],
[
280,
281
],
[
281,
282
],
[
281,
283
],
[
280,
284
],
[
284,
285
],
[
285,
286
],
[
286,
287
],
[
287,
288
],
[
288,
289
],
[
288,
290
],
[
290,
291
],
[
287,
292
],
[
286,
293
],
[
293,
294
],
[
293,
295
],
[
285,
296
],
[
296,
297
],
[
297,
298
],
[
297,
299
],
[
299,
300
],
[
300,
301
],
[
300,
302
],
[
299,
303
],
[
303,
304
],
[
303,
305
],
[
229,
306
],
[
306,
307
],
[
306,
308
],
[
308,
309
],
[
309,
310
],
[
229,
311
],
[
311,
312
],
[
32,
313
],
[
313,
314
],
[
313,
315
],
[
315,
316
],
[
316,
317
],
[
316,
318
],
[
318,
319
],
[
319,
320
],
[
318,
321
],
[
318,
322
],
[
322,
323
],
[
322,
324
],
[
318,
325
],
[
315,
326
],
[
326,
327
],
[
327,
328
],
[
327,
329
],
[
329,
330
],
[
326,
331
],
[
331,
332
],
[
332,
333
],
[
332,
334
],
[
331,
335
],
[
335,
336
],
[
32,
337
],
[
337,
338
],
[
337,
339
],
[
339,
340
],
[
340,
341
],
[
341,
342
],
[
341,
343
],
[
340,
344
],
[
344,
345
],
[
339,
346
],
[
346,
347
],
[
347,
348
],
[
347,
349
],
[
349,
350
],
[
32,
351
],
[
351,
352
],
[
351,
353
],
[
353,
354
],
[
354,
355
],
[
355,
356
],
[
355,
357
],
[
354,
358
],
[
353,
359
],
[
359,
360
],
[
360,
361
],
[
0,
362
],
[
362,
363
],
[
362,
364
]
]
| [
"import java.io.*;\n\npublic class Main { \n public static void main(String[] args) throws IOException { \n Reader in = new Reader();\n String n = in.readLine();\n System.out.println(n.indexOf(\"0\")/2+1);\n\n } \n \n static class Reader { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead; \n \n public Reader() { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public Reader(String file_name) throws IOException { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public String readLine() throws IOException { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n } \n \n public int nextInt() throws IOException { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n } \n \n public long nextLong() throws IOException { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n } \n \n public double nextDouble() throws IOException { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n } \n \n private void fillBuffer() throws IOException { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n } \n \n private byte read() throws IOException { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n } \n \n public void close() throws IOException { \n if (din == null) \n return; \n din.close(); \n } \n } \n} ",
"import java.io.*;",
"io.*",
"java",
"public class Main { \n public static void main(String[] args) throws IOException { \n Reader in = new Reader();\n String n = in.readLine();\n System.out.println(n.indexOf(\"0\")/2+1);\n\n } \n \n static class Reader { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead; \n \n public Reader() { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public Reader(String file_name) throws IOException { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public String readLine() throws IOException { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n } \n \n public int nextInt() throws IOException { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n } \n \n public long nextLong() throws IOException { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n } \n \n public double nextDouble() throws IOException { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n } \n \n private void fillBuffer() throws IOException { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n } \n \n private byte read() throws IOException { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n } \n \n public void close() throws IOException { \n if (din == null) \n return; \n din.close(); \n } \n } \n}",
"Main",
"public static void main(String[] args) throws IOException { \n Reader in = new Reader();\n String n = in.readLine();\n System.out.println(n.indexOf(\"0\")/2+1);\n\n }",
"main",
"{ \n Reader in = new Reader();\n String n = in.readLine();\n System.out.println(n.indexOf(\"0\")/2+1);\n\n }",
"Reader in = new Reader();",
"in",
"new Reader()",
"String n = in.readLine();",
"n",
"in.readLine()",
"in.readLine",
"in",
"System.out.println(n.indexOf(\"0\")/2+1)",
"System.out.println",
"System.out",
"System",
"System.out",
"n.indexOf(\"0\")/2+1",
"n.indexOf(\"0\")/2",
"n.indexOf(\"0\")",
"n.indexOf",
"n",
"\"0\"",
"2",
"1",
"String[] args",
"args",
"static class Reader { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead; \n \n public Reader() { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public Reader(String file_name) throws IOException { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public String readLine() throws IOException { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n } \n \n public int nextInt() throws IOException { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n } \n \n public long nextLong() throws IOException { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n } \n \n public double nextDouble() throws IOException { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n } \n \n private void fillBuffer() throws IOException { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n } \n \n private byte read() throws IOException { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n } \n \n public void close() throws IOException { \n if (din == null) \n return; \n din.close(); \n } \n }",
"Reader",
"final private int BUFFER_SIZE = 1 << 16;",
"BUFFER_SIZE",
"1 << 16",
"1",
"16",
"private DataInputStream din;",
"din",
"private byte[] buffer;",
"buffer",
"private int bufferPointer",
"bufferPointer",
"bytesRead;",
"bytesRead",
"public Reader() { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }",
"Reader",
"{ \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }",
"din = new DataInputStream(System.in)",
"din",
"new DataInputStream(System.in)",
"buffer = new byte[BUFFER_SIZE]",
"buffer",
"new byte[BUFFER_SIZE]",
"BUFFER_SIZE",
"bufferPointer = bytesRead = 0",
"bufferPointer",
"bytesRead = 0",
"bytesRead",
"0",
"public Reader(String file_name) throws IOException { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }",
"Reader",
"{ \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }",
"din = new DataInputStream(new FileInputStream(file_name))",
"din",
"new DataInputStream(new FileInputStream(file_name))",
"buffer = new byte[BUFFER_SIZE]",
"buffer",
"new byte[BUFFER_SIZE]",
"BUFFER_SIZE",
"bufferPointer = bytesRead = 0",
"bufferPointer",
"bytesRead = 0",
"bytesRead",
"0",
"String file_name",
"file_name",
"public String readLine() throws IOException { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n }",
"readLine",
"{ \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n }",
"byte[] buf = new byte[64];",
"buf",
"new byte[64]",
"64",
"int cnt = 0",
"cnt",
"0",
"c;",
"c",
"while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n }",
"(c = read()) != -1",
"(c = read())",
"c",
"read()",
"read",
"-1",
"1",
"{ \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n }",
"if (c == '\\n') \n break;",
"c == '\\n'",
"c",
"'\\n'",
"break;",
"buf[cnt++] = (byte) c",
"buf[cnt++]",
"buf",
"cnt++",
"cnt",
"(byte) c",
"return new String(buf, 0, cnt);",
"new String(buf, 0, cnt)",
"public int nextInt() throws IOException { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n }",
"nextInt",
"{ \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n }",
"int ret = 0;",
"ret",
"0",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ') \n c = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg) \n c = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n ret = ret * 10 + c - '0'; \n }",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (neg) \n return -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"public long nextLong() throws IOException { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n }",
"nextLong",
"{ \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n }",
"long ret = 0;",
"ret",
"0",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ') \n c = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg) \n c = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n ret = ret * 10 + c - '0'; \n }",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (neg) \n return -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"public double nextDouble() throws IOException { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n }",
"nextDouble",
"{ \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n }",
"double ret = 0",
"ret",
"0",
"div = 1;",
"div",
"1",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ') \n c = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg) \n c = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n ret = ret * 10 + c - '0'; \n }",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n }",
"c == '.'",
"c",
"'.'",
"{ \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n }",
"while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n }",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n ret += (c - '0') / (div *= 10); \n }",
"ret += (c - '0') / (div *= 10)",
"ret",
"(c - '0') / (div *= 10)",
"(c - '0')",
"c",
"'0'",
"(div *= 10)",
"div",
"10",
"if (neg) \n return -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"private void fillBuffer() throws IOException { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n }",
"fillBuffer",
"{ \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n }",
"bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE)",
"bytesRead",
"din.read(buffer, bufferPointer = 0, BUFFER_SIZE)",
"din.read",
"din",
"buffer",
"bufferPointer = 0",
"bufferPointer",
"0",
"BUFFER_SIZE",
"if (bytesRead == -1) \n buffer[0] = -1;",
"bytesRead == -1",
"bytesRead",
"-1",
"1",
"buffer[0] = -1",
"buffer[0]",
"buffer",
"0",
"-1",
"1",
"private byte read() throws IOException { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n }",
"read",
"{ \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n }",
"if (bufferPointer == bytesRead) \n fillBuffer();",
"bufferPointer == bytesRead",
"bufferPointer",
"bytesRead",
"fillBuffer()",
"fillBuffer",
"return buffer[bufferPointer++];",
"buffer[bufferPointer++]",
"buffer",
"bufferPointer++",
"bufferPointer",
"public void close() throws IOException { \n if (din == null) \n return; \n din.close(); \n }",
"close",
"{ \n if (din == null) \n return; \n din.close(); \n }",
"if (din == null) \n return;",
"din == null",
"din",
"null",
"return;",
"din.close()",
"din.close",
"din",
"public class Main { \n public static void main(String[] args) throws IOException { \n Reader in = new Reader();\n String n = in.readLine();\n System.out.println(n.indexOf(\"0\")/2+1);\n\n } \n \n static class Reader { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead; \n \n public Reader() { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public Reader(String file_name) throws IOException { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public String readLine() throws IOException { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n } \n \n public int nextInt() throws IOException { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n } \n \n public long nextLong() throws IOException { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n } \n \n public double nextDouble() throws IOException { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n } \n \n private void fillBuffer() throws IOException { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n } \n \n private byte read() throws IOException { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n } \n \n public void close() throws IOException { \n if (din == null) \n return; \n din.close(); \n } \n } \n}",
"public class Main { \n public static void main(String[] args) throws IOException { \n Reader in = new Reader();\n String n = in.readLine();\n System.out.println(n.indexOf(\"0\")/2+1);\n\n } \n \n static class Reader { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead; \n \n public Reader() { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public Reader(String file_name) throws IOException { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public String readLine() throws IOException { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n } \n \n public int nextInt() throws IOException { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n } \n \n public long nextLong() throws IOException { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n } \n \n public double nextDouble() throws IOException { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n } \n \n private void fillBuffer() throws IOException { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n } \n \n private byte read() throws IOException { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n } \n \n public void close() throws IOException { \n if (din == null) \n return; \n din.close(); \n } \n } \n}",
"Main"
]
| import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
Reader in = new Reader();
String n = in.readLine();
System.out.println(n.indexOf("0")/2+1);
}
static class Reader {
final private int BUFFER_SIZE = 1 << 16;
private DataInputStream din;
private byte[] buffer;
private int bufferPointer, bytesRead;
public Reader() {
din = new DataInputStream(System.in);
buffer = new byte[BUFFER_SIZE];
bufferPointer = bytesRead = 0;
}
public Reader(String file_name) throws IOException {
din = new DataInputStream(new FileInputStream(file_name));
buffer = new byte[BUFFER_SIZE];
bufferPointer = bytesRead = 0;
}
public String readLine() throws IOException {
byte[] buf = new byte[64]; // line length
int cnt = 0, c;
while ((c = read()) != -1)
{
if (c == '\n')
break;
buf[cnt++] = (byte) c;
}
return new String(buf, 0, cnt);
}
public int nextInt() throws IOException {
int ret = 0;
byte c = read();
while (c <= ' ')
c = read();
boolean neg = (c == '-');
if (neg)
c = read();
do
{
ret = ret * 10 + c - '0';
} while ((c = read()) >= '0' && c <= '9');
if (neg)
return -ret;
return ret;
}
public long nextLong() throws IOException {
long ret = 0;
byte c = read();
while (c <= ' ')
c = read();
boolean neg = (c == '-');
if (neg)
c = read();
do {
ret = ret * 10 + c - '0';
}
while ((c = read()) >= '0' && c <= '9');
if (neg)
return -ret;
return ret;
}
public double nextDouble() throws IOException {
double ret = 0, div = 1;
byte c = read();
while (c <= ' ')
c = read();
boolean neg = (c == '-');
if (neg)
c = read();
do {
ret = ret * 10 + c - '0';
}
while ((c = read()) >= '0' && c <= '9');
if (c == '.')
{
while ((c = read()) >= '0' && c <= '9')
{
ret += (c - '0') / (div *= 10);
}
}
if (neg)
return -ret;
return ret;
}
private void fillBuffer() throws IOException {
bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);
if (bytesRead == -1)
buffer[0] = -1;
}
private byte read() throws IOException {
if (bufferPointer == bytesRead)
fillBuffer();
return buffer[bufferPointer++];
}
public void close() throws IOException {
if (din == null)
return;
din.close();
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
17,
3,
23,
13,
12,
13,
30,
4,
18,
13,
17,
42,
17,
30,
38,
5,
13,
30,
3,
30,
41,
13,
4,
18,
18,
13,
13,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
30,
3,
30,
4,
18,
13,
13,
12,
13,
30,
4,
13,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
4,
13,
29,
4,
18,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
13,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
4,
13,
29,
4,
18,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
13,
29,
20,
12,
13,
30,
4,
13,
29,
20,
23,
13,
12,
13,
30,
42,
17,
30,
38,
5,
13,
30,
3,
30,
41,
13,
4,
18,
18,
13,
13,
14,
2,
2,
13,
17,
2,
13,
40,
17,
30,
3,
12,
13,
30,
42,
17,
30,
38,
5,
13,
30,
3,
30,
41,
13,
4,
18,
18,
13,
13,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
3,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
225,
8
],
[
225,
9
],
[
9,
10
],
[
9,
11
],
[
225,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
15,
20
],
[
20,
21
],
[
20,
22
],
[
15,
23
],
[
23,
24
],
[
24,
25
],
[
15,
26
],
[
27,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
27,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
36,
45
],
[
12,
46
],
[
46,
47
],
[
225,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
58,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
63,
71
],
[
71,
72
],
[
73,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
77,
79
],
[
73,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
71,
84
],
[
84,
85
],
[
71,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
225,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
100,
101
],
[
101,
102
],
[
225,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
112,
113
],
[
113,
114
],
[
109,
115
],
[
103,
116
],
[
116,
117
],
[
225,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
124,
127
],
[
127,
128
],
[
128,
129
],
[
225,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
132,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
136,
139
],
[
139,
140
],
[
140,
141
],
[
136,
142
],
[
130,
143
],
[
143,
144
],
[
225,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
148,
149
],
[
147,
150
],
[
150,
151
],
[
225,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
154,
157
],
[
157,
158
],
[
152,
159
],
[
159,
160
],
[
225,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
167,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
172,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
180,
189
],
[
189,
190
],
[
225,
191
],
[
191,
192
],
[
191,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
200,
201
],
[
197,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
202,
210
],
[
210,
211
],
[
212,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
212,
216
],
[
216,
217
],
[
216,
218
],
[
212,
219
],
[
219,
220
],
[
219,
221
],
[
221,
222
],
[
210,
223
],
[
0,
224
],
[
224,
225
],
[
224,
226
]
]
| [
"import java.io.IOException;\nimport java.math.BigInteger;\n\npublic class Main {\n private static StringBuilder builder = new StringBuilder();\n public static void main(String[] args) {\n for (int i = 0; i < 5; i++) {\n int x = readInt();\n if (x == 0) {\n System.out.print(i + 1);\n break;\n }\n }\n }\n\n private static void read() {\n builder.setLength(0);\n while (true) {\n try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) {\n break;\n } else {\n builder.appendCodePoint(b);\n }\n } catch (IOException e) {\n break;\n }\n }\n }\n\n private static int readInt() {\n read();\n return Integer.parseInt(builder.toString());\n }\n\n private static int readInt(int radix) {\n read();\n return Integer.parseInt(builder.toString(), radix);\n }\n\n private static long readLong() {\n read();\n return Long.parseLong(builder.toString());\n }\n\n private static long readLong(int radix) {\n read();\n return Long.parseLong(builder.toString(), radix);\n }\n\n private static BigInteger readBigInteger() {\n read();\n return new BigInteger(builder.toString());\n }\n\n private static BigInteger readBigInteger(int radix) {\n read();\n return new BigInteger(builder.toString(), radix);\n }\n\n private static void skipLine() {\n while (true) {\n try {\n int b = System.in.read();\n if (b == '\\n' || b == -1) {\n break;\n }\n } catch (IOException e) {\n break;\n }\n }\n }\n\n private static void skip() {\n while (true) {\n try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) break;\n } catch (IOException e) {\n break;\n }\n }\n }\n\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"public class Main {\n private static StringBuilder builder = new StringBuilder();\n public static void main(String[] args) {\n for (int i = 0; i < 5; i++) {\n int x = readInt();\n if (x == 0) {\n System.out.print(i + 1);\n break;\n }\n }\n }\n\n private static void read() {\n builder.setLength(0);\n while (true) {\n try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) {\n break;\n } else {\n builder.appendCodePoint(b);\n }\n } catch (IOException e) {\n break;\n }\n }\n }\n\n private static int readInt() {\n read();\n return Integer.parseInt(builder.toString());\n }\n\n private static int readInt(int radix) {\n read();\n return Integer.parseInt(builder.toString(), radix);\n }\n\n private static long readLong() {\n read();\n return Long.parseLong(builder.toString());\n }\n\n private static long readLong(int radix) {\n read();\n return Long.parseLong(builder.toString(), radix);\n }\n\n private static BigInteger readBigInteger() {\n read();\n return new BigInteger(builder.toString());\n }\n\n private static BigInteger readBigInteger(int radix) {\n read();\n return new BigInteger(builder.toString(), radix);\n }\n\n private static void skipLine() {\n while (true) {\n try {\n int b = System.in.read();\n if (b == '\\n' || b == -1) {\n break;\n }\n } catch (IOException e) {\n break;\n }\n }\n }\n\n private static void skip() {\n while (true) {\n try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) break;\n } catch (IOException e) {\n break;\n }\n }\n }\n\n}",
"Main",
"private static StringBuilder builder = new StringBuilder();",
"builder",
"new StringBuilder()",
"public static void main(String[] args) {\n for (int i = 0; i < 5; i++) {\n int x = readInt();\n if (x == 0) {\n System.out.print(i + 1);\n break;\n }\n }\n }",
"main",
"{\n for (int i = 0; i < 5; i++) {\n int x = readInt();\n if (x == 0) {\n System.out.print(i + 1);\n break;\n }\n }\n }",
"for (int i = 0; i < 5; i++) {\n int x = readInt();\n if (x == 0) {\n System.out.print(i + 1);\n break;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n int x = readInt();\n if (x == 0) {\n System.out.print(i + 1);\n break;\n }\n }",
"{\n int x = readInt();\n if (x == 0) {\n System.out.print(i + 1);\n break;\n }\n }",
"int x = readInt();",
"x",
"readInt()",
"readInt",
"if (x == 0) {\n System.out.print(i + 1);\n break;\n }",
"x == 0",
"x",
"0",
"{\n System.out.print(i + 1);\n break;\n }",
"System.out.print(i + 1)",
"System.out.print",
"System.out",
"System",
"System.out",
"i + 1",
"i",
"1",
"break;",
"String[] args",
"args",
"private static void read() {\n builder.setLength(0);\n while (true) {\n try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) {\n break;\n } else {\n builder.appendCodePoint(b);\n }\n } catch (IOException e) {\n break;\n }\n }\n }",
"read",
"{\n builder.setLength(0);\n while (true) {\n try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) {\n break;\n } else {\n builder.appendCodePoint(b);\n }\n } catch (IOException e) {\n break;\n }\n }\n }",
"builder.setLength(0)",
"builder.setLength",
"builder",
"0",
"while (true) {\n try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) {\n break;\n } else {\n builder.appendCodePoint(b);\n }\n } catch (IOException e) {\n break;\n }\n }",
"true",
"{\n try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) {\n break;\n } else {\n builder.appendCodePoint(b);\n }\n } catch (IOException e) {\n break;\n }\n }",
"try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) {\n break;\n } else {\n builder.appendCodePoint(b);\n }\n } catch (IOException e) {\n break;\n }",
"catch (IOException e) {\n break;\n }",
"IOException e",
"{\n break;\n }",
"break;",
"{\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) {\n break;\n } else {\n builder.appendCodePoint(b);\n }\n }",
"int b = System.in.read();",
"b",
"System.in.read()",
"System.in.read",
"System.in",
"System",
"System.in",
"if (b == ' ' || b == '\\n' || b == -1) {\n break;\n } else {\n builder.appendCodePoint(b);\n }",
"b == ' ' || b == '\\n' || b == -1",
"b == ' ' || b == '\\n' || b == -1",
"b == ' '",
"b",
"' '",
"b == '\\n'",
"b",
"'\\n'",
"b == -1",
"b",
"-1",
"1",
"{\n break;\n }",
"break;",
"{\n builder.appendCodePoint(b);\n }",
"builder.appendCodePoint(b)",
"builder.appendCodePoint",
"builder",
"b",
"private static int readInt() {\n read();\n return Integer.parseInt(builder.toString());\n }",
"readInt",
"{\n read();\n return Integer.parseInt(builder.toString());\n }",
"read()",
"read",
"return Integer.parseInt(builder.toString());",
"Integer.parseInt(builder.toString())",
"Integer.parseInt",
"Integer",
"builder.toString()",
"builder.toString",
"builder",
"private static int readInt(int radix) {\n read();\n return Integer.parseInt(builder.toString(), radix);\n }",
"readInt",
"{\n read();\n return Integer.parseInt(builder.toString(), radix);\n }",
"read()",
"read",
"return Integer.parseInt(builder.toString(), radix);",
"Integer.parseInt(builder.toString(), radix)",
"Integer.parseInt",
"Integer",
"builder.toString()",
"builder.toString",
"builder",
"radix",
"int radix",
"radix",
"private static long readLong() {\n read();\n return Long.parseLong(builder.toString());\n }",
"readLong",
"{\n read();\n return Long.parseLong(builder.toString());\n }",
"read()",
"read",
"return Long.parseLong(builder.toString());",
"Long.parseLong(builder.toString())",
"Long.parseLong",
"Long",
"builder.toString()",
"builder.toString",
"builder",
"private static long readLong(int radix) {\n read();\n return Long.parseLong(builder.toString(), radix);\n }",
"readLong",
"{\n read();\n return Long.parseLong(builder.toString(), radix);\n }",
"read()",
"read",
"return Long.parseLong(builder.toString(), radix);",
"Long.parseLong(builder.toString(), radix)",
"Long.parseLong",
"Long",
"builder.toString()",
"builder.toString",
"builder",
"radix",
"int radix",
"radix",
"private static BigInteger readBigInteger() {\n read();\n return new BigInteger(builder.toString());\n }",
"readBigInteger",
"{\n read();\n return new BigInteger(builder.toString());\n }",
"read()",
"read",
"return new BigInteger(builder.toString());",
"new BigInteger(builder.toString())",
"private static BigInteger readBigInteger(int radix) {\n read();\n return new BigInteger(builder.toString(), radix);\n }",
"readBigInteger",
"{\n read();\n return new BigInteger(builder.toString(), radix);\n }",
"read()",
"read",
"return new BigInteger(builder.toString(), radix);",
"new BigInteger(builder.toString(), radix)",
"int radix",
"radix",
"private static void skipLine() {\n while (true) {\n try {\n int b = System.in.read();\n if (b == '\\n' || b == -1) {\n break;\n }\n } catch (IOException e) {\n break;\n }\n }\n }",
"skipLine",
"{\n while (true) {\n try {\n int b = System.in.read();\n if (b == '\\n' || b == -1) {\n break;\n }\n } catch (IOException e) {\n break;\n }\n }\n }",
"while (true) {\n try {\n int b = System.in.read();\n if (b == '\\n' || b == -1) {\n break;\n }\n } catch (IOException e) {\n break;\n }\n }",
"true",
"{\n try {\n int b = System.in.read();\n if (b == '\\n' || b == -1) {\n break;\n }\n } catch (IOException e) {\n break;\n }\n }",
"try {\n int b = System.in.read();\n if (b == '\\n' || b == -1) {\n break;\n }\n } catch (IOException e) {\n break;\n }",
"catch (IOException e) {\n break;\n }",
"IOException e",
"{\n break;\n }",
"break;",
"{\n int b = System.in.read();\n if (b == '\\n' || b == -1) {\n break;\n }\n }",
"int b = System.in.read();",
"b",
"System.in.read()",
"System.in.read",
"System.in",
"System",
"System.in",
"if (b == '\\n' || b == -1) {\n break;\n }",
"b == '\\n' || b == -1",
"b == '\\n'",
"b",
"'\\n'",
"b == -1",
"b",
"-1",
"1",
"{\n break;\n }",
"break;",
"private static void skip() {\n while (true) {\n try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) break;\n } catch (IOException e) {\n break;\n }\n }\n }",
"skip",
"{\n while (true) {\n try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) break;\n } catch (IOException e) {\n break;\n }\n }\n }",
"while (true) {\n try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) break;\n } catch (IOException e) {\n break;\n }\n }",
"true",
"{\n try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) break;\n } catch (IOException e) {\n break;\n }\n }",
"try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) break;\n } catch (IOException e) {\n break;\n }",
"catch (IOException e) {\n break;\n }",
"IOException e",
"{\n break;\n }",
"break;",
"{\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) break;\n }",
"int b = System.in.read();",
"b",
"System.in.read()",
"System.in.read",
"System.in",
"System",
"System.in",
"if (b == ' ' || b == '\\n' || b == -1) break;",
"b == ' ' || b == '\\n' || b == -1",
"b == ' ' || b == '\\n' || b == -1",
"b == ' '",
"b",
"' '",
"b == '\\n'",
"b",
"'\\n'",
"b == -1",
"b",
"-1",
"1",
"break;",
"public class Main {\n private static StringBuilder builder = new StringBuilder();\n public static void main(String[] args) {\n for (int i = 0; i < 5; i++) {\n int x = readInt();\n if (x == 0) {\n System.out.print(i + 1);\n break;\n }\n }\n }\n\n private static void read() {\n builder.setLength(0);\n while (true) {\n try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) {\n break;\n } else {\n builder.appendCodePoint(b);\n }\n } catch (IOException e) {\n break;\n }\n }\n }\n\n private static int readInt() {\n read();\n return Integer.parseInt(builder.toString());\n }\n\n private static int readInt(int radix) {\n read();\n return Integer.parseInt(builder.toString(), radix);\n }\n\n private static long readLong() {\n read();\n return Long.parseLong(builder.toString());\n }\n\n private static long readLong(int radix) {\n read();\n return Long.parseLong(builder.toString(), radix);\n }\n\n private static BigInteger readBigInteger() {\n read();\n return new BigInteger(builder.toString());\n }\n\n private static BigInteger readBigInteger(int radix) {\n read();\n return new BigInteger(builder.toString(), radix);\n }\n\n private static void skipLine() {\n while (true) {\n try {\n int b = System.in.read();\n if (b == '\\n' || b == -1) {\n break;\n }\n } catch (IOException e) {\n break;\n }\n }\n }\n\n private static void skip() {\n while (true) {\n try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) break;\n } catch (IOException e) {\n break;\n }\n }\n }\n\n}",
"public class Main {\n private static StringBuilder builder = new StringBuilder();\n public static void main(String[] args) {\n for (int i = 0; i < 5; i++) {\n int x = readInt();\n if (x == 0) {\n System.out.print(i + 1);\n break;\n }\n }\n }\n\n private static void read() {\n builder.setLength(0);\n while (true) {\n try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) {\n break;\n } else {\n builder.appendCodePoint(b);\n }\n } catch (IOException e) {\n break;\n }\n }\n }\n\n private static int readInt() {\n read();\n return Integer.parseInt(builder.toString());\n }\n\n private static int readInt(int radix) {\n read();\n return Integer.parseInt(builder.toString(), radix);\n }\n\n private static long readLong() {\n read();\n return Long.parseLong(builder.toString());\n }\n\n private static long readLong(int radix) {\n read();\n return Long.parseLong(builder.toString(), radix);\n }\n\n private static BigInteger readBigInteger() {\n read();\n return new BigInteger(builder.toString());\n }\n\n private static BigInteger readBigInteger(int radix) {\n read();\n return new BigInteger(builder.toString(), radix);\n }\n\n private static void skipLine() {\n while (true) {\n try {\n int b = System.in.read();\n if (b == '\\n' || b == -1) {\n break;\n }\n } catch (IOException e) {\n break;\n }\n }\n }\n\n private static void skip() {\n while (true) {\n try {\n int b = System.in.read();\n if (b == ' ' || b == '\\n' || b == -1) break;\n } catch (IOException e) {\n break;\n }\n }\n }\n\n}",
"Main"
]
| import java.io.IOException;
import java.math.BigInteger;
public class Main {
private static StringBuilder builder = new StringBuilder();
public static void main(String[] args) {
for (int i = 0; i < 5; i++) {
int x = readInt();
if (x == 0) {
System.out.print(i + 1);
break;
}
}
}
private static void read() {
builder.setLength(0);
while (true) {
try {
int b = System.in.read();
if (b == ' ' || b == '\n' || b == -1) {
break;
} else {
builder.appendCodePoint(b);
}
} catch (IOException e) {
break;
}
}
}
private static int readInt() {
read();
return Integer.parseInt(builder.toString());
}
private static int readInt(int radix) {
read();
return Integer.parseInt(builder.toString(), radix);
}
private static long readLong() {
read();
return Long.parseLong(builder.toString());
}
private static long readLong(int radix) {
read();
return Long.parseLong(builder.toString(), radix);
}
private static BigInteger readBigInteger() {
read();
return new BigInteger(builder.toString());
}
private static BigInteger readBigInteger(int radix) {
read();
return new BigInteger(builder.toString(), radix);
}
private static void skipLine() {
while (true) {
try {
int b = System.in.read();
if (b == '\n' || b == -1) {
break;
}
} catch (IOException e) {
break;
}
}
}
private static void skip() {
while (true) {
try {
int b = System.in.read();
if (b == ' ' || b == '\n' || b == -1) break;
} catch (IOException e) {
break;
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
3,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
45,
5
],
[
45,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
12,
17
],
[
17,
18
],
[
17,
19
],
[
12,
20
],
[
20,
21
],
[
21,
22
],
[
12,
23
],
[
24,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
24,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
34,
41
],
[
6,
42
],
[
42,
43
],
[
0,
44
],
[
44,
45
],
[
44,
46
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n \n Scanner scan = new Scanner(System.in);\n \n for (int i = 1; i <= 5; i++){\n int x = scan.nextInt();\n \n if (x == 0){\n System.out.println(i);\n break;\n }\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n \n Scanner scan = new Scanner(System.in);\n \n for (int i = 1; i <= 5; i++){\n int x = scan.nextInt();\n \n if (x == 0){\n System.out.println(i);\n break;\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n // Your code here!\n \n Scanner scan = new Scanner(System.in);\n \n for (int i = 1; i <= 5; i++){\n int x = scan.nextInt();\n \n if (x == 0){\n System.out.println(i);\n break;\n }\n }\n }",
"main",
"{\n // Your code here!\n \n Scanner scan = new Scanner(System.in);\n \n for (int i = 1; i <= 5; i++){\n int x = scan.nextInt();\n \n if (x == 0){\n System.out.println(i);\n break;\n }\n }\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"for (int i = 1; i <= 5; i++){\n int x = scan.nextInt();\n \n if (x == 0){\n System.out.println(i);\n break;\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n int x = scan.nextInt();\n \n if (x == 0){\n System.out.println(i);\n break;\n }\n }",
"{\n int x = scan.nextInt();\n \n if (x == 0){\n System.out.println(i);\n break;\n }\n }",
"int x = scan.nextInt();",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if (x == 0){\n System.out.println(i);\n break;\n }",
"x == 0",
"x",
"0",
"{\n System.out.println(i);\n break;\n }",
"System.out.println(i)",
"System.out.println",
"System.out",
"System",
"System.out",
"i",
"break;",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n \n Scanner scan = new Scanner(System.in);\n \n for (int i = 1; i <= 5; i++){\n int x = scan.nextInt();\n \n if (x == 0){\n System.out.println(i);\n break;\n }\n }\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n \n Scanner scan = new Scanner(System.in);\n \n for (int i = 1; i <= 5; i++){\n int x = scan.nextInt();\n \n if (x == 0){\n System.out.println(i);\n break;\n }\n }\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
// Your code here!
Scanner scan = new Scanner(System.in);
for (int i = 1; i <= 5; i++){
int x = scan.nextInt();
if (x == 0){
System.out.println(i);
break;
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
29,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
45,
5
],
[
45,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
12,
17
],
[
17,
18
],
[
17,
19
],
[
12,
20
],
[
20,
21
],
[
21,
22
],
[
12,
23
],
[
24,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
24,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
34,
41
],
[
6,
42
],
[
42,
43
],
[
0,
44
],
[
44,
45
],
[
44,
46
]
]
| [
"\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n for (int i = 1 ; i <= 5 ; i++) {\n int x = scanner.nextInt();\n if (x == 0) {\n System.out.println(i);\n return;\n }\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n for (int i = 1 ; i <= 5 ; i++) {\n int x = scanner.nextInt();\n if (x == 0) {\n System.out.println(i);\n return;\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n for (int i = 1 ; i <= 5 ; i++) {\n int x = scanner.nextInt();\n if (x == 0) {\n System.out.println(i);\n return;\n }\n }\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n\n for (int i = 1 ; i <= 5 ; i++) {\n int x = scanner.nextInt();\n if (x == 0) {\n System.out.println(i);\n return;\n }\n }\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"for (int i = 1 ; i <= 5 ; i++) {\n int x = scanner.nextInt();\n if (x == 0) {\n System.out.println(i);\n return;\n }\n }",
"int i = 1 ;",
"int i = 1 ;",
"i",
"1",
"i <= 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n int x = scanner.nextInt();\n if (x == 0) {\n System.out.println(i);\n return;\n }\n }",
"{\n int x = scanner.nextInt();\n if (x == 0) {\n System.out.println(i);\n return;\n }\n }",
"int x = scanner.nextInt();",
"x",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"if (x == 0) {\n System.out.println(i);\n return;\n }",
"x == 0",
"x",
"0",
"{\n System.out.println(i);\n return;\n }",
"System.out.println(i)",
"System.out.println",
"System.out",
"System",
"System.out",
"i",
"return;",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n for (int i = 1 ; i <= 5 ; i++) {\n int x = scanner.nextInt();\n if (x == 0) {\n System.out.println(i);\n return;\n }\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n for (int i = 1 ; i <= 5 ; i++) {\n int x = scanner.nextInt();\n if (x == 0) {\n System.out.println(i);\n return;\n }\n }\n }\n}",
"Main"
]
|
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
for (int i = 1 ; i <= 5 ; i++) {
int x = scanner.nextInt();
if (x == 0) {
System.out.println(i);
return;
}
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
2,
18,
13,
13,
17,
4,
18,
18,
13,
13,
2,
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
],
[
65,
17
],
[
65,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
40,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
48,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
18,
62
],
[
62,
63
],
[
0,
64
],
[
64,
65
],
[
64,
66
]
]
| [
"import java.io.*;\nimport java.util.*;\nimport java.text.*;\nimport java.math.*;\nimport java.util.regex.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\t// code to read values\n\t\t// code to call required method\n\t\t// code to display the result\n\t\t// System.out.println(Math.ceil(2.5));\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] arr = new int[5];\n\t\tfor(int i=0; i<5; i++){\n\t\t\tarr[i] = sc.nextInt();\n\t\t\tif(arr[i]==0) System.out.println(i+1);\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.text.*;",
"text.*",
"java",
"import java.math.*;",
"math.*",
"java",
"import java.util.regex.*;",
"regex.*",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t// code to read values\n\t\t// code to call required method\n\t\t// code to display the result\n\t\t// System.out.println(Math.ceil(2.5));\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] arr = new int[5];\n\t\tfor(int i=0; i<5; i++){\n\t\t\tarr[i] = sc.nextInt();\n\t\t\tif(arr[i]==0) System.out.println(i+1);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t// code to read values\n\t\t// code to call required method\n\t\t// code to display the result\n\t\t// System.out.println(Math.ceil(2.5));\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] arr = new int[5];\n\t\tfor(int i=0; i<5; i++){\n\t\t\tarr[i] = sc.nextInt();\n\t\t\tif(arr[i]==0) System.out.println(i+1);\n\t\t}\n\t}",
"main",
"{\n\t\t// code to read values\n\t\t// code to call required method\n\t\t// code to display the result\n\t\t// System.out.println(Math.ceil(2.5));\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] arr = new int[5];\n\t\tfor(int i=0; i<5; i++){\n\t\t\tarr[i] = sc.nextInt();\n\t\t\tif(arr[i]==0) System.out.println(i+1);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] arr = new int[5];",
"arr",
"new int[5]",
"5",
"for(int i=0; i<5; i++){\n\t\t\tarr[i] = sc.nextInt();\n\t\t\tif(arr[i]==0) System.out.println(i+1);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<5",
"i",
"5",
"i++",
"i++",
"i",
"{\n\t\t\tarr[i] = sc.nextInt();\n\t\t\tif(arr[i]==0) System.out.println(i+1);\n\t\t}",
"{\n\t\t\tarr[i] = sc.nextInt();\n\t\t\tif(arr[i]==0) System.out.println(i+1);\n\t\t}",
"arr[i] = sc.nextInt()",
"arr[i]",
"arr",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(arr[i]==0) System.out.println(i+1);",
"arr[i]==0",
"arr[i]",
"arr",
"i",
"0",
"System.out.println(i+1)",
"System.out.println",
"System.out",
"System",
"System.out",
"i+1",
"i",
"1",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t// code to read values\n\t\t// code to call required method\n\t\t// code to display the result\n\t\t// System.out.println(Math.ceil(2.5));\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] arr = new int[5];\n\t\tfor(int i=0; i<5; i++){\n\t\t\tarr[i] = sc.nextInt();\n\t\t\tif(arr[i]==0) System.out.println(i+1);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t// code to read values\n\t\t// code to call required method\n\t\t// code to display the result\n\t\t// System.out.println(Math.ceil(2.5));\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] arr = new int[5];\n\t\tfor(int i=0; i<5; i++){\n\t\t\tarr[i] = sc.nextInt();\n\t\t\tif(arr[i]==0) System.out.println(i+1);\n\t\t}\n\t}\n}",
"Main"
]
| import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Main {
public static void main(String[] args) {
// code to read values
// code to call required method
// code to display the result
// System.out.println(Math.ceil(2.5));
Scanner sc = new Scanner(System.in);
int[] arr = new int[5];
for(int i=0; i<5; i++){
arr[i] = sc.nextInt();
if(arr[i]==0) System.out.println(i+1);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
20,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
2,
18,
13,
13,
17,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
64,
5
],
[
64,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
22,
32
],
[
32,
33
],
[
33,
34
],
[
22,
35
],
[
36,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
42,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
44,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
8,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
6,
61
],
[
61,
62
],
[
0,
63
],
[
63,
64
],
[
63,
65
]
]
| [
"import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner scn = new Scanner(System.in);\n\t\tint n = 5;\n\t\tint[] a = new int[n];\n \tint num=0;\n\t\tfor(int i=0; i<a.length; i++){\n\t\t\ta[i] = scn.nextInt();\n \tif(a[i]==0) num=i+1;\n\t\t}\n \tSystem.out.println(num);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner scn = new Scanner(System.in);\n\t\tint n = 5;\n\t\tint[] a = new int[n];\n \tint num=0;\n\t\tfor(int i=0; i<a.length; i++){\n\t\t\ta[i] = scn.nextInt();\n \tif(a[i]==0) num=i+1;\n\t\t}\n \tSystem.out.println(num);\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception{\n\t\tScanner scn = new Scanner(System.in);\n\t\tint n = 5;\n\t\tint[] a = new int[n];\n \tint num=0;\n\t\tfor(int i=0; i<a.length; i++){\n\t\t\ta[i] = scn.nextInt();\n \tif(a[i]==0) num=i+1;\n\t\t}\n \tSystem.out.println(num);\n\t}",
"main",
"{\n\t\tScanner scn = new Scanner(System.in);\n\t\tint n = 5;\n\t\tint[] a = new int[n];\n \tint num=0;\n\t\tfor(int i=0; i<a.length; i++){\n\t\t\ta[i] = scn.nextInt();\n \tif(a[i]==0) num=i+1;\n\t\t}\n \tSystem.out.println(num);\n\t}",
"Scanner scn = new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"int n = 5;",
"n",
"5",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"int num=0;",
"num",
"0",
"for(int i=0; i<a.length; i++){\n\t\t\ta[i] = scn.nextInt();\n \tif(a[i]==0) num=i+1;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"{\n\t\t\ta[i] = scn.nextInt();\n \tif(a[i]==0) num=i+1;\n\t\t}",
"{\n\t\t\ta[i] = scn.nextInt();\n \tif(a[i]==0) num=i+1;\n\t\t}",
"a[i] = scn.nextInt()",
"a[i]",
"a",
"i",
"scn.nextInt()",
"scn.nextInt",
"scn",
"if(a[i]==0) num=i+1;",
"a[i]==0",
"a[i]",
"a",
"i",
"0",
"num=i+1",
"num",
"i+1",
"i",
"1",
"System.out.println(num)",
"System.out.println",
"System.out",
"System",
"System.out",
"num",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner scn = new Scanner(System.in);\n\t\tint n = 5;\n\t\tint[] a = new int[n];\n \tint num=0;\n\t\tfor(int i=0; i<a.length; i++){\n\t\t\ta[i] = scn.nextInt();\n \tif(a[i]==0) num=i+1;\n\t\t}\n \tSystem.out.println(num);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner scn = new Scanner(System.in);\n\t\tint n = 5;\n\t\tint[] a = new int[n];\n \tint num=0;\n\t\tfor(int i=0; i<a.length; i++){\n\t\t\ta[i] = scn.nextInt();\n \tif(a[i]==0) num=i+1;\n\t\t}\n \tSystem.out.println(num);\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) throws Exception{
Scanner scn = new Scanner(System.in);
int n = 5;
int[] a = new int[n];
int num=0;
for(int i=0; i<a.length; i++){
a[i] = scn.nextInt();
if(a[i]==0) num=i+1;
}
System.out.println(num);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
67,
5
],
[
67,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
21,
22
],
[
21,
23
],
[
16,
24
],
[
24,
25
],
[
25,
26
],
[
16,
27
],
[
28,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
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
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
61,
63
],
[
6,
64
],
[
64,
65
],
[
0,
66
],
[
66,
67
],
[
66,
68
]
]
| [
"\n\nimport java.util.Scanner;\n\npublic class Main {\n\n \n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int [] nums = new int[5];\n for(int i = 0 ; i< 5;i++){\n \n nums[i] = scanner.nextInt();\n }\n \n for(int i = 0 ; i< 5;i++){\n if(nums[i] == 0){\n System.out.println(i+1);\n }\n \n \n \n }\n \n \n \n }\n \n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n \n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int [] nums = new int[5];\n for(int i = 0 ; i< 5;i++){\n \n nums[i] = scanner.nextInt();\n }\n \n for(int i = 0 ; i< 5;i++){\n if(nums[i] == 0){\n System.out.println(i+1);\n }\n \n \n \n }\n \n \n \n }\n \n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int [] nums = new int[5];\n for(int i = 0 ; i< 5;i++){\n \n nums[i] = scanner.nextInt();\n }\n \n for(int i = 0 ; i< 5;i++){\n if(nums[i] == 0){\n System.out.println(i+1);\n }\n \n \n \n }\n \n \n \n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n int [] nums = new int[5];\n for(int i = 0 ; i< 5;i++){\n \n nums[i] = scanner.nextInt();\n }\n \n for(int i = 0 ; i< 5;i++){\n if(nums[i] == 0){\n System.out.println(i+1);\n }\n \n \n \n }\n \n \n \n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int [] nums = new int[5];",
"nums",
"new int[5]",
"5",
"for(int i = 0 ; i< 5;i++){\n \n nums[i] = scanner.nextInt();\n }",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i< 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n \n nums[i] = scanner.nextInt();\n }",
"{\n \n nums[i] = scanner.nextInt();\n }",
"nums[i] = scanner.nextInt()",
"nums[i]",
"nums",
"i",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for(int i = 0 ; i< 5;i++){\n if(nums[i] == 0){\n System.out.println(i+1);\n }\n \n \n \n }",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i< 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n if(nums[i] == 0){\n System.out.println(i+1);\n }\n \n \n \n }",
"{\n if(nums[i] == 0){\n System.out.println(i+1);\n }\n \n \n \n }",
"if(nums[i] == 0){\n System.out.println(i+1);\n }",
"nums[i] == 0",
"nums[i]",
"nums",
"i",
"0",
"{\n System.out.println(i+1);\n }",
"System.out.println(i+1)",
"System.out.println",
"System.out",
"System",
"System.out",
"i+1",
"i",
"1",
"String[] args",
"args",
"public class Main {\n\n \n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int [] nums = new int[5];\n for(int i = 0 ; i< 5;i++){\n \n nums[i] = scanner.nextInt();\n }\n \n for(int i = 0 ; i< 5;i++){\n if(nums[i] == 0){\n System.out.println(i+1);\n }\n \n \n \n }\n \n \n \n }\n \n}",
"public class Main {\n\n \n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int [] nums = new int[5];\n for(int i = 0 ; i< 5;i++){\n \n nums[i] = scanner.nextInt();\n }\n \n for(int i = 0 ; i< 5;i++){\n if(nums[i] == 0){\n System.out.println(i+1);\n }\n \n \n \n }\n \n \n \n }\n \n}",
"Main"
]
|
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int [] nums = new int[5];
for(int i = 0 ; i< 5;i++){
nums[i] = scanner.nextInt();
}
for(int i = 0 ; i< 5;i++){
if(nums[i] == 0){
System.out.println(i+1);
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
40,
17,
41,
13,
20,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
2,
18,
13,
13,
17,
0,
13,
13,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
60,
5
],
[
60,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[
13,
15
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
40,
46
],
[
46,
47
],
[
46,
48
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
6,
57
],
[
57,
58
],
[
0,
59
],
[
59,
60
],
[
59,
61
]
]
| [
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[]args){\n int pos=-1;\n Scanner sc=new Scanner(System.in);\n int[] a=new int[5];\n for(int i=0;i<5;i++){\n a[i]=sc.nextInt();\n if(a[i]==0)\n pos=i;\n }\n System.out.println(pos+1);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[]args){\n int pos=-1;\n Scanner sc=new Scanner(System.in);\n int[] a=new int[5];\n for(int i=0;i<5;i++){\n a[i]=sc.nextInt();\n if(a[i]==0)\n pos=i;\n }\n System.out.println(pos+1);\n }\n}",
"Main",
"public static void main(String[]args){\n int pos=-1;\n Scanner sc=new Scanner(System.in);\n int[] a=new int[5];\n for(int i=0;i<5;i++){\n a[i]=sc.nextInt();\n if(a[i]==0)\n pos=i;\n }\n System.out.println(pos+1);\n }",
"main",
"{\n int pos=-1;\n Scanner sc=new Scanner(System.in);\n int[] a=new int[5];\n for(int i=0;i<5;i++){\n a[i]=sc.nextInt();\n if(a[i]==0)\n pos=i;\n }\n System.out.println(pos+1);\n }",
"int pos=-1;",
"pos",
"-1",
"1",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] a=new int[5];",
"a",
"new int[5]",
"5",
"for(int i=0;i<5;i++){\n a[i]=sc.nextInt();\n if(a[i]==0)\n pos=i;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<5",
"i",
"5",
"i++",
"i++",
"i",
"{\n a[i]=sc.nextInt();\n if(a[i]==0)\n pos=i;\n }",
"{\n a[i]=sc.nextInt();\n if(a[i]==0)\n pos=i;\n }",
"a[i]=sc.nextInt()",
"a[i]",
"a",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(a[i]==0)\n pos=i;",
"a[i]==0",
"a[i]",
"a",
"i",
"0",
"pos=i",
"pos",
"i",
"System.out.println(pos+1)",
"System.out.println",
"System.out",
"System",
"System.out",
"pos+1",
"pos",
"1",
"String[]args",
"args",
"public class Main{\n public static void main(String[]args){\n int pos=-1;\n Scanner sc=new Scanner(System.in);\n int[] a=new int[5];\n for(int i=0;i<5;i++){\n a[i]=sc.nextInt();\n if(a[i]==0)\n pos=i;\n }\n System.out.println(pos+1);\n }\n}",
"public class Main{\n public static void main(String[]args){\n int pos=-1;\n Scanner sc=new Scanner(System.in);\n int[] a=new int[5];\n for(int i=0;i<5;i++){\n a[i]=sc.nextInt();\n if(a[i]==0)\n pos=i;\n }\n System.out.println(pos+1);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[]args){
int pos=-1;
Scanner sc=new Scanner(System.in);
int[] a=new int[5];
for(int i=0;i<5;i++){
a[i]=sc.nextInt();
if(a[i]==0)
pos=i;
}
System.out.println(pos+1);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
17,
4,
18,
13,
23,
13,
6,
13,
41,
13,
18,
13,
13,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
14,
2,
13,
13,
30,
29,
17,
30,
0,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
29,
17,
29,
17,
12,
13,
30,
14,
4,
13,
30,
29,
18,
13,
40,
13,
30,
29,
40,
17,
12,
13,
30,
29,
2,
2,
17,
13,
2,
13,
17,
23,
13,
12,
13,
30,
42,
2,
4,
13,
40,
4,
13,
18,
13,
13,
40,
13,
29,
4,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
20,
41,
13,
4,
13,
42,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
17,
41,
13,
17,
41,
13,
4,
13,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
4,
13,
14,
2,
2,
13,
17,
2,
17,
13,
30,
37,
20,
42,
17,
30,
14,
2,
2,
17,
13,
2,
13,
17,
30,
0,
13,
17,
0,
13,
2,
13,
17,
14,
2,
2,
13,
40,
17,
40,
4,
13,
13,
30,
29,
8,
13,
40,
13,
13,
30,
37,
20,
0,
13,
4,
13,
12,
13,
30,
41,
13,
4,
13,
14,
2,
2,
13,
18,
13,
13,
2,
13,
18,
13,
13,
37,
20,
29,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
38,
5,
13,
30,
30,
4,
18,
13,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
7,
12
],
[
12,
13
],
[
12,
14
],
[
7,
15
],
[
15,
16
],
[
15,
17
],
[
7,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
28,
38
],
[
38,
39
],
[
39,
40
],
[
28,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
48,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
50,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
20,
65
],
[
65,
66
],
[
66,
67
],
[
18,
68
],
[
68,
69
],
[
0,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
74,
76
],
[
70,
77
],
[
77,
78
],
[
77,
79
],
[
70,
81
],
[
81,
82
],
[
81,
83
],
[
70,
84
],
[
84,
85
],
[
84,
86
],
[
70,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
95,
96
],
[
90,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
101,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
97,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
119,
120
],
[
120,
121
],
[
89,
122
],
[
122,
123
],
[
70,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
127,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
127,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
70,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
148,
149
],
[
148,
150
],
[
140,
151
],
[
151,
152
],
[
70,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
157,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
163,
165
],
[
156,
166
],
[
166,
167
],
[
155,
168
],
[
168,
169
],
[
169,
170
],
[
70,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
174,
178
],
[
178,
179
],
[
173,
180
],
[
180,
181
],
[
180,
182
],
[
173,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
173,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
187,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
192,
195
],
[
191,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
173,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
70,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
207,
211
],
[
211,
212
],
[
206,
213
],
[
213,
214
],
[
213,
215
],
[
206,
216
],
[
216,
217
],
[
216,
218
],
[
206,
219
],
[
219,
220
],
[
219,
221
],
[
221,
222
],
[
206,
223
],
[
223,
224
],
[
224,
225
],
[
224,
226
],
[
223,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
227,
231
],
[
231,
232
],
[
231,
233
],
[
233,
234
],
[
206,
235
],
[
235,
236
],
[
236,
237
],
[
237,
238
],
[
237,
239
],
[
236,
240
],
[
240,
241
],
[
240,
242
],
[
235,
243
],
[
243,
244
],
[
244,
245
],
[
206,
246
],
[
246,
247
],
[
246,
248
],
[
248,
249
],
[
249,
250
],
[
250,
251
],
[
251,
252
],
[
251,
253
],
[
250,
254
],
[
254,
255
],
[
254,
256
],
[
249,
257
],
[
257,
258
],
[
258,
259
],
[
258,
260
],
[
257,
261
],
[
261,
262
],
[
261,
263
],
[
263,
264
],
[
263,
265
],
[
249,
266
],
[
266,
267
],
[
267,
268
],
[
268,
269
],
[
268,
270
],
[
270,
271
],
[
267,
272
],
[
272,
273
],
[
273,
274
],
[
273,
275
],
[
266,
276
],
[
276,
277
],
[
277,
278
],
[
278,
279
],
[
278,
280
],
[
280,
281
],
[
278,
282
],
[
266,
283
],
[
283,
284
],
[
284,
285
],
[
248,
286
],
[
286,
287
],
[
286,
288
],
[
288,
289
],
[
70,
290
],
[
290,
291
],
[
290,
292
],
[
292,
293
],
[
293,
294
],
[
293,
295
],
[
295,
296
],
[
292,
297
],
[
297,
298
],
[
298,
299
],
[
299,
300
],
[
299,
301
],
[
301,
302
],
[
301,
303
],
[
298,
304
],
[
304,
305
],
[
304,
306
],
[
306,
307
],
[
306,
308
],
[
297,
309
],
[
309,
310
],
[
292,
311
],
[
311,
312
],
[
70,
313
],
[
313,
314
],
[
313,
315
],
[
315,
316
],
[
316,
317
],
[
317,
318
],
[
318,
319
],
[
317,
320
],
[
320,
321
],
[
70,
322
],
[
322,
323
],
[
322,
324
],
[
324,
325
],
[
325,
326
],
[
326,
327
],
[
326,
328
],
[
325,
329
],
[
329,
330
],
[
330,
331
],
[
331,
332
],
[
70,
333
]
]
| [
"import java.io.*;\nimport java.util.*;\nclass Main{\n\tstatic final long MOD = 1_000_000_007; // 10^9+7\n\tstatic final int MAX = 2_147_483_646; // intMax \n\tstatic final int INF = 1_000_000_000; // 10^9 \n\tpublic static void main(String[] args) throws Exception{\n\t\thayami saori = new hayami();\n\t\tint[] x = new int[5];\n\t\tfor(int i = 0;i < x.length;i++){\n\t\t\tx[i] = saori.saori_hayami();\n\t\t\tif(x[i] == 0){\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}\n\t\tsaori.close();\n\t}\n}\n\nclass hayami implements Closeable {\n\tprivate final InputStream in = System.in;\n\tprivate final byte[] hayami = new byte[1024];\n\tprivate int Hayami = 0;\n\tprivate int saori = 0;\n\tprivate boolean HayamiSaori() {\n\t\tif (Hayami < saori) {\n\t\t\treturn true;\n\t\t}else{\n\t\t\tHayami = 0;\n\t\t\ttry {\n\t\t\t\tsaori = in.read(hayami);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (saori <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}\n\tprivate int SaoriHayami() { \n\t\tif (HayamiSaori()) {\n return hayami[Hayami++];\n }else{\n return -1;\n }\n\t}\n\tprivate static boolean hayami_saori(int hayami) { \n\t\treturn 33 <= hayami && hayami <= 126;\n\t}\n\tpublic boolean hayamisaori() { \n\t\twhile(HayamiSaori() && !hayami_saori(hayami[Hayami])) Hayami++; return HayamiSaori();\n\t}\n\tpublic String nextHayami() {\n\t\tif (!hayamisaori()) throw new NoSuchElementException();\n\t\tStringBuilder hayamin = new StringBuilder();\n\t\tint saori = SaoriHayami();\n\t\twhile(hayami_saori(saori)) {\n\t\t\thayamin.appendCodePoint(saori);\n\t\t\tsaori = SaoriHayami();\n\t\t}\n\t\treturn hayamin.toString();\n\t}\n\tpublic long saorihayami() {//nextLong\n\t\tif (!hayamisaori()) throw new NoSuchElementException();\n\t\tlong hayami = 0;\n\t\tboolean misao = false;\n\t\tint saori = SaoriHayami();\n\t\tif (saori == '-') {\n\t\t\tmisao = true;\n\t\t\tsaori = SaoriHayami();\n\t\t}\n\t\tif (saori < '0' || '9' < saori) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile(true){\n\t\t\tif ('0' <= saori && saori <= '9') {\n\t\t\t\thayami *= 10;\n\t\t\t\thayami += saori - '0';\n\t\t\t}else if(saori == -1 || !hayami_saori(saori)){\n\t\t\t\treturn misao ? -hayami : hayami;\n\t\t\t}else{\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tsaori = SaoriHayami();\n\t\t}\n\t}\n\tpublic int saori_hayami() {//nextInt\n\t\tlong hayami = saorihayami();\n\t\tif (hayami < Integer.MIN_VALUE || hayami > Integer.MAX_VALUE) throw new NumberFormatException();\n\t\treturn (int) hayami;\n\t}\n\tpublic double Hayamin() { //nextDouble\n\t\treturn Double.parseDouble(nextHayami());\n\t}\n\tpublic void close() {\n\t\ttry {\n\t\t\tin.close();\n\t\t} catch (IOException e) {\n\t\t}\n }\n \n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"class Main{\n\tstatic final long MOD = 1_000_000_007; // 10^9+7\n\tstatic final int MAX = 2_147_483_646; // intMax \n\tstatic final int INF = 1_000_000_000; // 10^9 \n\tpublic static void main(String[] args) throws Exception{\n\t\thayami saori = new hayami();\n\t\tint[] x = new int[5];\n\t\tfor(int i = 0;i < x.length;i++){\n\t\t\tx[i] = saori.saori_hayami();\n\t\t\tif(x[i] == 0){\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}\n\t\tsaori.close();\n\t}\n}",
"Main",
"static final long MOD = 1_000_000_007; // 10^9+7",
"MOD",
"1_000_000_007",
"static final int MAX = 2_147_483_646; // intMax ",
"MAX",
"2_147_483_646",
"static final int INF = 1_000_000_000; // 10^9 ",
"INF",
"1_000_000_000",
"public static void main(String[] args) throws Exception{\n\t\thayami saori = new hayami();\n\t\tint[] x = new int[5];\n\t\tfor(int i = 0;i < x.length;i++){\n\t\t\tx[i] = saori.saori_hayami();\n\t\t\tif(x[i] == 0){\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}\n\t\tsaori.close();\n\t}",
"main",
"{\n\t\thayami saori = new hayami();\n\t\tint[] x = new int[5];\n\t\tfor(int i = 0;i < x.length;i++){\n\t\t\tx[i] = saori.saori_hayami();\n\t\t\tif(x[i] == 0){\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}\n\t\tsaori.close();\n\t}",
"hayami saori = new hayami();",
"saori",
"new hayami()",
"int[] x = new int[5];",
"x",
"new int[5]",
"5",
"for(int i = 0;i < x.length;i++){\n\t\t\tx[i] = saori.saori_hayami();\n\t\t\tif(x[i] == 0){\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < x.length",
"i",
"x.length",
"x",
"x.length",
"i++",
"i++",
"i",
"{\n\t\t\tx[i] = saori.saori_hayami();\n\t\t\tif(x[i] == 0){\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}",
"{\n\t\t\tx[i] = saori.saori_hayami();\n\t\t\tif(x[i] == 0){\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}\n\t\t}",
"x[i] = saori.saori_hayami()",
"x[i]",
"x",
"i",
"saori.saori_hayami()",
"saori.saori_hayami",
"saori",
"if(x[i] == 0){\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}",
"x[i] == 0",
"x[i]",
"x",
"i",
"0",
"{\n\t\t\t\tSystem.out.println(i+1);\n\t\t\t}",
"System.out.println(i+1)",
"System.out.println",
"System.out",
"System",
"System.out",
"i+1",
"i",
"1",
"saori.close()",
"saori.close",
"saori",
"String[] args",
"args",
"class hayami implements Closeable {\n\tprivate final InputStream in = System.in;\n\tprivate final byte[] hayami = new byte[1024];\n\tprivate int Hayami = 0;\n\tprivate int saori = 0;\n\tprivate boolean HayamiSaori() {\n\t\tif (Hayami < saori) {\n\t\t\treturn true;\n\t\t}else{\n\t\t\tHayami = 0;\n\t\t\ttry {\n\t\t\t\tsaori = in.read(hayami);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (saori <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}\n\tprivate int SaoriHayami() { \n\t\tif (HayamiSaori()) {\n return hayami[Hayami++];\n }else{\n return -1;\n }\n\t}\n\tprivate static boolean hayami_saori(int hayami) { \n\t\treturn 33 <= hayami && hayami <= 126;\n\t}\n\tpublic boolean hayamisaori() { \n\t\twhile(HayamiSaori() && !hayami_saori(hayami[Hayami])) Hayami++; return HayamiSaori();\n\t}\n\tpublic String nextHayami() {\n\t\tif (!hayamisaori()) throw new NoSuchElementException();\n\t\tStringBuilder hayamin = new StringBuilder();\n\t\tint saori = SaoriHayami();\n\t\twhile(hayami_saori(saori)) {\n\t\t\thayamin.appendCodePoint(saori);\n\t\t\tsaori = SaoriHayami();\n\t\t}\n\t\treturn hayamin.toString();\n\t}\n\tpublic long saorihayami() {//nextLong\n\t\tif (!hayamisaori()) throw new NoSuchElementException();\n\t\tlong hayami = 0;\n\t\tboolean misao = false;\n\t\tint saori = SaoriHayami();\n\t\tif (saori == '-') {\n\t\t\tmisao = true;\n\t\t\tsaori = SaoriHayami();\n\t\t}\n\t\tif (saori < '0' || '9' < saori) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile(true){\n\t\t\tif ('0' <= saori && saori <= '9') {\n\t\t\t\thayami *= 10;\n\t\t\t\thayami += saori - '0';\n\t\t\t}else if(saori == -1 || !hayami_saori(saori)){\n\t\t\t\treturn misao ? -hayami : hayami;\n\t\t\t}else{\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tsaori = SaoriHayami();\n\t\t}\n\t}\n\tpublic int saori_hayami() {//nextInt\n\t\tlong hayami = saorihayami();\n\t\tif (hayami < Integer.MIN_VALUE || hayami > Integer.MAX_VALUE) throw new NumberFormatException();\n\t\treturn (int) hayami;\n\t}\n\tpublic double Hayamin() { //nextDouble\n\t\treturn Double.parseDouble(nextHayami());\n\t}\n\tpublic void close() {\n\t\ttry {\n\t\t\tin.close();\n\t\t} catch (IOException e) {\n\t\t}\n }\n \n}",
"hayami",
"private final InputStream in = System.in;",
"in",
"System.in",
"System",
"System.in",
"private final byte[] hayami = new byte[1024];",
"hayami",
"new byte[1024]",
"1024",
"private int Hayami = 0;",
"Hayami",
"0",
"private int saori = 0;",
"saori",
"0",
"private boolean HayamiSaori() {\n\t\tif (Hayami < saori) {\n\t\t\treturn true;\n\t\t}else{\n\t\t\tHayami = 0;\n\t\t\ttry {\n\t\t\t\tsaori = in.read(hayami);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (saori <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"HayamiSaori",
"{\n\t\tif (Hayami < saori) {\n\t\t\treturn true;\n\t\t}else{\n\t\t\tHayami = 0;\n\t\t\ttry {\n\t\t\t\tsaori = in.read(hayami);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (saori <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"if (Hayami < saori) {\n\t\t\treturn true;\n\t\t}else{\n\t\t\tHayami = 0;\n\t\t\ttry {\n\t\t\t\tsaori = in.read(hayami);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (saori <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"Hayami < saori",
"Hayami",
"saori",
"{\n\t\t\treturn true;\n\t\t}",
"return true;",
"true",
"{\n\t\t\tHayami = 0;\n\t\t\ttry {\n\t\t\t\tsaori = in.read(hayami);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (saori <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"Hayami = 0",
"Hayami",
"0",
"try {\n\t\t\t\tsaori = in.read(hayami);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"IOException e",
"{\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\t\tsaori = in.read(hayami);\n\t\t\t}",
"saori = in.read(hayami)",
"saori",
"in.read(hayami)",
"in.read",
"in",
"hayami",
"if (saori <= 0) {\n\t\t\t\treturn false;\n\t\t\t}",
"saori <= 0",
"saori",
"0",
"{\n\t\t\t\treturn false;\n\t\t\t}",
"return false;",
"false",
"return true;",
"true",
"private int SaoriHayami() { \n\t\tif (HayamiSaori()) {\n return hayami[Hayami++];\n }else{\n return -1;\n }\n\t}",
"SaoriHayami",
"{ \n\t\tif (HayamiSaori()) {\n return hayami[Hayami++];\n }else{\n return -1;\n }\n\t}",
"if (HayamiSaori()) {\n return hayami[Hayami++];\n }else{\n return -1;\n }",
"HayamiSaori()",
"HayamiSaori",
"{\n return hayami[Hayami++];\n }",
"return hayami[Hayami++];",
"hayami[Hayami++]",
"hayami",
"Hayami++",
"Hayami",
"{\n return -1;\n }",
"return -1;",
"-1",
"1",
"private static boolean hayami_saori(int hayami) { \n\t\treturn 33 <= hayami && hayami <= 126;\n\t}",
"hayami_saori",
"{ \n\t\treturn 33 <= hayami && hayami <= 126;\n\t}",
"return 33 <= hayami && hayami <= 126;",
"33 <= hayami && hayami <= 126",
"33 <= hayami",
"33",
"hayami",
"hayami <= 126",
"hayami",
"126",
"int hayami",
"hayami",
"public boolean hayamisaori() { \n\t\twhile(HayamiSaori() && !hayami_saori(hayami[Hayami])) Hayami++; return HayamiSaori();\n\t}",
"hayamisaori",
"{ \n\t\twhile(HayamiSaori() && !hayami_saori(hayami[Hayami])) Hayami++; return HayamiSaori();\n\t}",
"while(HayamiSaori() && !hayami_saori(hayami[Hayami])) Hayami++;",
"HayamiSaori() && !hayami_saori(hayami[Hayami])",
"HayamiSaori()",
"HayamiSaori",
"!hayami_saori(hayami[Hayami])",
"hayami_saori(hayami[Hayami])",
"hayami_saori",
"hayami[Hayami]",
"hayami",
"Hayami",
"Hayami++",
"Hayami",
"return HayamiSaori();",
"HayamiSaori()",
"HayamiSaori",
"public String nextHayami() {\n\t\tif (!hayamisaori()) throw new NoSuchElementException();\n\t\tStringBuilder hayamin = new StringBuilder();\n\t\tint saori = SaoriHayami();\n\t\twhile(hayami_saori(saori)) {\n\t\t\thayamin.appendCodePoint(saori);\n\t\t\tsaori = SaoriHayami();\n\t\t}\n\t\treturn hayamin.toString();\n\t}",
"nextHayami",
"{\n\t\tif (!hayamisaori()) throw new NoSuchElementException();\n\t\tStringBuilder hayamin = new StringBuilder();\n\t\tint saori = SaoriHayami();\n\t\twhile(hayami_saori(saori)) {\n\t\t\thayamin.appendCodePoint(saori);\n\t\t\tsaori = SaoriHayami();\n\t\t}\n\t\treturn hayamin.toString();\n\t}",
"if (!hayamisaori()) throw new NoSuchElementException();",
"!hayamisaori()",
"hayamisaori()",
"hayamisaori",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"StringBuilder hayamin = new StringBuilder();",
"hayamin",
"new StringBuilder()",
"int saori = SaoriHayami();",
"saori",
"SaoriHayami()",
"SaoriHayami",
"while(hayami_saori(saori)) {\n\t\t\thayamin.appendCodePoint(saori);\n\t\t\tsaori = SaoriHayami();\n\t\t}",
"hayami_saori(saori)",
"hayami_saori",
"saori",
"{\n\t\t\thayamin.appendCodePoint(saori);\n\t\t\tsaori = SaoriHayami();\n\t\t}",
"hayamin.appendCodePoint(saori)",
"hayamin.appendCodePoint",
"hayamin",
"saori",
"saori = SaoriHayami()",
"saori",
"SaoriHayami()",
"SaoriHayami",
"return hayamin.toString();",
"hayamin.toString()",
"hayamin.toString",
"hayamin",
"public long saorihayami() {//nextLong\n\t\tif (!hayamisaori()) throw new NoSuchElementException();\n\t\tlong hayami = 0;\n\t\tboolean misao = false;\n\t\tint saori = SaoriHayami();\n\t\tif (saori == '-') {\n\t\t\tmisao = true;\n\t\t\tsaori = SaoriHayami();\n\t\t}\n\t\tif (saori < '0' || '9' < saori) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile(true){\n\t\t\tif ('0' <= saori && saori <= '9') {\n\t\t\t\thayami *= 10;\n\t\t\t\thayami += saori - '0';\n\t\t\t}else if(saori == -1 || !hayami_saori(saori)){\n\t\t\t\treturn misao ? -hayami : hayami;\n\t\t\t}else{\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tsaori = SaoriHayami();\n\t\t}\n\t}",
"saorihayami",
"{//nextLong\n\t\tif (!hayamisaori()) throw new NoSuchElementException();\n\t\tlong hayami = 0;\n\t\tboolean misao = false;\n\t\tint saori = SaoriHayami();\n\t\tif (saori == '-') {\n\t\t\tmisao = true;\n\t\t\tsaori = SaoriHayami();\n\t\t}\n\t\tif (saori < '0' || '9' < saori) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile(true){\n\t\t\tif ('0' <= saori && saori <= '9') {\n\t\t\t\thayami *= 10;\n\t\t\t\thayami += saori - '0';\n\t\t\t}else if(saori == -1 || !hayami_saori(saori)){\n\t\t\t\treturn misao ? -hayami : hayami;\n\t\t\t}else{\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tsaori = SaoriHayami();\n\t\t}\n\t}",
"if (!hayamisaori()) throw new NoSuchElementException();",
"!hayamisaori()",
"hayamisaori()",
"hayamisaori",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"long hayami = 0;",
"hayami",
"0",
"boolean misao = false;",
"misao",
"false",
"int saori = SaoriHayami();",
"saori",
"SaoriHayami()",
"SaoriHayami",
"if (saori == '-') {\n\t\t\tmisao = true;\n\t\t\tsaori = SaoriHayami();\n\t\t}",
"saori == '-'",
"saori",
"'-'",
"{\n\t\t\tmisao = true;\n\t\t\tsaori = SaoriHayami();\n\t\t}",
"misao = true",
"misao",
"true",
"saori = SaoriHayami()",
"saori",
"SaoriHayami()",
"SaoriHayami",
"if (saori < '0' || '9' < saori) {\n\t\t\tthrow new NumberFormatException();\n\t\t}",
"saori < '0' || '9' < saori",
"saori < '0'",
"saori",
"'0'",
"'9' < saori",
"'9'",
"saori",
"{\n\t\t\tthrow new NumberFormatException();\n\t\t}",
"throw new NumberFormatException();",
"new NumberFormatException()",
"while(true){\n\t\t\tif ('0' <= saori && saori <= '9') {\n\t\t\t\thayami *= 10;\n\t\t\t\thayami += saori - '0';\n\t\t\t}else if(saori == -1 || !hayami_saori(saori)){\n\t\t\t\treturn misao ? -hayami : hayami;\n\t\t\t}else{\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tsaori = SaoriHayami();\n\t\t}",
"true",
"{\n\t\t\tif ('0' <= saori && saori <= '9') {\n\t\t\t\thayami *= 10;\n\t\t\t\thayami += saori - '0';\n\t\t\t}else if(saori == -1 || !hayami_saori(saori)){\n\t\t\t\treturn misao ? -hayami : hayami;\n\t\t\t}else{\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tsaori = SaoriHayami();\n\t\t}",
"if ('0' <= saori && saori <= '9') {\n\t\t\t\thayami *= 10;\n\t\t\t\thayami += saori - '0';\n\t\t\t}else if(saori == -1 || !hayami_saori(saori)){\n\t\t\t\treturn misao ? -hayami : hayami;\n\t\t\t}else{\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}",
"'0' <= saori && saori <= '9'",
"'0' <= saori",
"'0'",
"saori",
"saori <= '9'",
"saori",
"'9'",
"{\n\t\t\t\thayami *= 10;\n\t\t\t\thayami += saori - '0';\n\t\t\t}",
"hayami *= 10",
"hayami",
"10",
"hayami += saori - '0'",
"hayami",
"saori - '0'",
"saori",
"'0'",
"if(saori == -1 || !hayami_saori(saori)){\n\t\t\t\treturn misao ? -hayami : hayami;\n\t\t\t}else{\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}",
"saori == -1 || !hayami_saori(saori)",
"saori == -1",
"saori",
"-1",
"1",
"!hayami_saori(saori)",
"hayami_saori(saori)",
"hayami_saori",
"saori",
"{\n\t\t\t\treturn misao ? -hayami : hayami;\n\t\t\t}",
"return misao ? -hayami : hayami;",
"misao ? -hayami : hayami",
"misao",
"-hayami",
"hayami",
"hayami",
"{\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}",
"throw new NumberFormatException();",
"new NumberFormatException()",
"saori = SaoriHayami()",
"saori",
"SaoriHayami()",
"SaoriHayami",
"public int saori_hayami() {//nextInt\n\t\tlong hayami = saorihayami();\n\t\tif (hayami < Integer.MIN_VALUE || hayami > Integer.MAX_VALUE) throw new NumberFormatException();\n\t\treturn (int) hayami;\n\t}",
"saori_hayami",
"{//nextInt\n\t\tlong hayami = saorihayami();\n\t\tif (hayami < Integer.MIN_VALUE || hayami > Integer.MAX_VALUE) throw new NumberFormatException();\n\t\treturn (int) hayami;\n\t}",
"long hayami = saorihayami();",
"hayami",
"saorihayami()",
"saorihayami",
"if (hayami < Integer.MIN_VALUE || hayami > Integer.MAX_VALUE) throw new NumberFormatException();",
"hayami < Integer.MIN_VALUE || hayami > Integer.MAX_VALUE",
"hayami < Integer.MIN_VALUE",
"hayami",
"Integer.MIN_VALUE",
"Integer",
"Integer.MIN_VALUE",
"hayami > Integer.MAX_VALUE",
"hayami",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"throw new NumberFormatException();",
"new NumberFormatException()",
"return (int) hayami;",
"(int) hayami",
"public double Hayamin() { //nextDouble\n\t\treturn Double.parseDouble(nextHayami());\n\t}",
"Hayamin",
"{ //nextDouble\n\t\treturn Double.parseDouble(nextHayami());\n\t}",
"return Double.parseDouble(nextHayami());",
"Double.parseDouble(nextHayami())",
"Double.parseDouble",
"Double",
"nextHayami()",
"nextHayami",
"public void close() {\n\t\ttry {\n\t\t\tin.close();\n\t\t} catch (IOException e) {\n\t\t}\n }",
"close",
"{\n\t\ttry {\n\t\t\tin.close();\n\t\t} catch (IOException e) {\n\t\t}\n }",
"try {\n\t\t\tin.close();\n\t\t} catch (IOException e) {\n\t\t}",
"catch (IOException e) {\n\t\t}",
"IOException e",
"{\n\t\t}",
"{\n\t\t\tin.close();\n\t\t}",
"in.close()",
"in.close",
"in",
"Closeable"
]
| import java.io.*;
import java.util.*;
class Main{
static final long MOD = 1_000_000_007; // 10^9+7
static final int MAX = 2_147_483_646; // intMax
static final int INF = 1_000_000_000; // 10^9
public static void main(String[] args) throws Exception{
hayami saori = new hayami();
int[] x = new int[5];
for(int i = 0;i < x.length;i++){
x[i] = saori.saori_hayami();
if(x[i] == 0){
System.out.println(i+1);
}
}
saori.close();
}
}
class hayami implements Closeable {
private final InputStream in = System.in;
private final byte[] hayami = new byte[1024];
private int Hayami = 0;
private int saori = 0;
private boolean HayamiSaori() {
if (Hayami < saori) {
return true;
}else{
Hayami = 0;
try {
saori = in.read(hayami);
} catch (IOException e) {
e.printStackTrace();
}
if (saori <= 0) {
return false;
}
}
return true;
}
private int SaoriHayami() {
if (HayamiSaori()) {
return hayami[Hayami++];
}else{
return -1;
}
}
private static boolean hayami_saori(int hayami) {
return 33 <= hayami && hayami <= 126;
}
public boolean hayamisaori() {
while(HayamiSaori() && !hayami_saori(hayami[Hayami])) Hayami++; return HayamiSaori();
}
public String nextHayami() {
if (!hayamisaori()) throw new NoSuchElementException();
StringBuilder hayamin = new StringBuilder();
int saori = SaoriHayami();
while(hayami_saori(saori)) {
hayamin.appendCodePoint(saori);
saori = SaoriHayami();
}
return hayamin.toString();
}
public long saorihayami() {//nextLong
if (!hayamisaori()) throw new NoSuchElementException();
long hayami = 0;
boolean misao = false;
int saori = SaoriHayami();
if (saori == '-') {
misao = true;
saori = SaoriHayami();
}
if (saori < '0' || '9' < saori) {
throw new NumberFormatException();
}
while(true){
if ('0' <= saori && saori <= '9') {
hayami *= 10;
hayami += saori - '0';
}else if(saori == -1 || !hayami_saori(saori)){
return misao ? -hayami : hayami;
}else{
throw new NumberFormatException();
}
saori = SaoriHayami();
}
}
public int saori_hayami() {//nextInt
long hayami = saorihayami();
if (hayami < Integer.MIN_VALUE || hayami > Integer.MAX_VALUE) throw new NumberFormatException();
return (int) hayami;
}
public double Hayamin() { //nextDouble
return Double.parseDouble(nextHayami());
}
public void close() {
try {
in.close();
} catch (IOException e) {
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
2,
18,
13,
13,
17,
0,
13,
13,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
59,
5
],
[
59,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
8,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
24,
25
],
[
24,
26
],
[
19,
27
],
[
27,
28
],
[
28,
29
],
[
19,
30
],
[
31,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
39,
45
],
[
45,
46
],
[
45,
47
],
[
8,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
6,
56
],
[
56,
57
],
[
0,
58
],
[
58,
59
],
[
58,
60
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint [] a=new int[5];\n\t\tint c=0;\n\t\tfor(int i=0;i<5;i++)\n\t\t{\n\t\t\ta[i]=scan.nextInt();\n\t\t\tif(a[i]==0) c=i;\n\t\t}\n\t\tSystem.out.println(c+1);\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint [] a=new int[5];\n\t\tint c=0;\n\t\tfor(int i=0;i<5;i++)\n\t\t{\n\t\t\ta[i]=scan.nextInt();\n\t\t\tif(a[i]==0) c=i;\n\t\t}\n\t\tSystem.out.println(c+1);\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint [] a=new int[5];\n\t\tint c=0;\n\t\tfor(int i=0;i<5;i++)\n\t\t{\n\t\t\ta[i]=scan.nextInt();\n\t\t\tif(a[i]==0) c=i;\n\t\t}\n\t\tSystem.out.println(c+1);\n\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint [] a=new int[5];\n\t\tint c=0;\n\t\tfor(int i=0;i<5;i++)\n\t\t{\n\t\t\ta[i]=scan.nextInt();\n\t\t\tif(a[i]==0) c=i;\n\t\t}\n\t\tSystem.out.println(c+1);\n\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int [] a=new int[5];",
"a",
"new int[5]",
"5",
"int c=0;",
"c",
"0",
"for(int i=0;i<5;i++)\n\t\t{\n\t\t\ta[i]=scan.nextInt();\n\t\t\tif(a[i]==0) c=i;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<5",
"i",
"5",
"i++",
"i++",
"i",
"{\n\t\t\ta[i]=scan.nextInt();\n\t\t\tif(a[i]==0) c=i;\n\t\t}",
"{\n\t\t\ta[i]=scan.nextInt();\n\t\t\tif(a[i]==0) c=i;\n\t\t}",
"a[i]=scan.nextInt()",
"a[i]",
"a",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if(a[i]==0) c=i;",
"a[i]==0",
"a[i]",
"a",
"i",
"0",
"c=i",
"c",
"i",
"System.out.println(c+1)",
"System.out.println",
"System.out",
"System",
"System.out",
"c+1",
"c",
"1",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint [] a=new int[5];\n\t\tint c=0;\n\t\tfor(int i=0;i<5;i++)\n\t\t{\n\t\t\ta[i]=scan.nextInt();\n\t\t\tif(a[i]==0) c=i;\n\t\t}\n\t\tSystem.out.println(c+1);\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint [] a=new int[5];\n\t\tint c=0;\n\t\tfor(int i=0;i<5;i++)\n\t\t{\n\t\t\ta[i]=scan.nextInt();\n\t\t\tif(a[i]==0) c=i;\n\t\t}\n\t\tSystem.out.println(c+1);\n\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 [] a=new int[5];
int c=0;
for(int i=0;i<5;i++)
{
a[i]=scan.nextInt();
if(a[i]==0) c=i;
}
System.out.println(c+1);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
14,
2,
4,
18,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
39,
5
],
[
39,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
12,
17
],
[
17,
18
],
[
17,
19
],
[
12,
20
],
[
20,
21
],
[
21,
22
],
[
12,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
25,
29
],
[
24,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
6,
36
],
[
36,
37
],
[
0,
38
],
[
38,
39
],
[
38,
40
]
]
| [
"import java.util.Scanner;public class Main {public static void main(String[] args){Scanner in = new Scanner(System.in);for(int i=1;i<6;i++)if(in.nextInt() == 0)System.out.println(i);}}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {public static void main(String[] args){Scanner in = new Scanner(System.in);for(int i=1;i<6;i++)if(in.nextInt() == 0)System.out.println(i);}}",
"Main",
"public static void main(String[] args){Scanner in = new Scanner(System.in);for(int i=1;i<6;i++)if(in.nextInt() == 0)System.out.println(i);}",
"main",
"{Scanner in = new Scanner(System.in);for(int i=1;i<6;i++)if(in.nextInt() == 0)System.out.println(i);}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"for(int i=1;i<6;i++)if(in.nextInt() == 0)System.out.println(i);",
"int i=1;",
"int i=1;",
"i",
"1",
"i<6",
"i",
"6",
"i++",
"i++",
"i",
"if(in.nextInt() == 0)System.out.println(i);",
"if(in.nextInt() == 0)System.out.println(i);",
"in.nextInt() == 0",
"in.nextInt()",
"in.nextInt",
"in",
"0",
"System.out.println(i)",
"System.out.println",
"System.out",
"System",
"System.out",
"i",
"String[] args",
"args",
"public class Main {public static void main(String[] args){Scanner in = new Scanner(System.in);for(int i=1;i<6;i++)if(in.nextInt() == 0)System.out.println(i);}}",
"public class Main {public static void main(String[] args){Scanner in = new Scanner(System.in);for(int i=1;i<6;i++)if(in.nextInt() == 0)System.out.println(i);}}",
"Main"
]
| import java.util.Scanner;public class Main {public static void main(String[] args){Scanner in = new Scanner(System.in);for(int i=1;i<6;i++)if(in.nextInt() == 0)System.out.println(i);}} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
29,
2,
17,
4,
18,
4,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
69,
8
],
[
69,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
26,
28
],
[
19,
29
],
[
29,
30
],
[
30,
31
],
[
19,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
11,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
11,
49
],
[
49,
50
],
[
50,
51
],
[
9,
52
],
[
52,
53
],
[
69,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
54,
66
],
[
66,
67
],
[
0,
68
],
[
68,
69
],
[
68,
70
]
]
| [
"import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int[] x = new int[5];\n for (int i = 0; i < x.length; ++i) {\n x[i] = sc.nextInt();\n }\n\n System.out.println(solve(x));\n\n sc.close();\n }\n\n static int solve(int[] x) {\n return 15 - Arrays.stream(x).sum();\n }\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"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[] x = new int[5];\n for (int i = 0; i < x.length; ++i) {\n x[i] = sc.nextInt();\n }\n\n System.out.println(solve(x));\n\n sc.close();\n }\n\n static int solve(int[] x) {\n return 15 - Arrays.stream(x).sum();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int[] x = new int[5];\n for (int i = 0; i < x.length; ++i) {\n x[i] = sc.nextInt();\n }\n\n System.out.println(solve(x));\n\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int[] x = new int[5];\n for (int i = 0; i < x.length; ++i) {\n x[i] = sc.nextInt();\n }\n\n System.out.println(solve(x));\n\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] x = new int[5];",
"x",
"new int[5]",
"5",
"for (int i = 0; i < x.length; ++i) {\n x[i] = sc.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < x.length",
"i",
"x.length",
"x",
"x.length",
"++i",
"++i",
"i",
"{\n x[i] = sc.nextInt();\n }",
"{\n x[i] = sc.nextInt();\n }",
"x[i] = sc.nextInt()",
"x[i]",
"x",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"System.out.println(solve(x))",
"System.out.println",
"System.out",
"System",
"System.out",
"solve(x)",
"solve",
"x",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"static int solve(int[] x) {\n return 15 - Arrays.stream(x).sum();\n }",
"solve",
"{\n return 15 - Arrays.stream(x).sum();\n }",
"return 15 - Arrays.stream(x).sum();",
"15 - Arrays.stream(x).sum()",
"15",
"Arrays.stream(x).sum()",
"Arrays.stream(x).sum",
"Arrays.stream(x)",
"Arrays.stream",
"Arrays",
"x",
"int[] x",
"x",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int[] x = new int[5];\n for (int i = 0; i < x.length; ++i) {\n x[i] = sc.nextInt();\n }\n\n System.out.println(solve(x));\n\n sc.close();\n }\n\n static int solve(int[] x) {\n return 15 - Arrays.stream(x).sum();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int[] x = new int[5];\n for (int i = 0; i < x.length; ++i) {\n x[i] = sc.nextInt();\n }\n\n System.out.println(solve(x));\n\n sc.close();\n }\n\n static int solve(int[] x) {\n return 15 - Arrays.stream(x).sum();\n }\n}",
"Main"
]
| import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] x = new int[5];
for (int i = 0; i < x.length; ++i) {
x[i] = sc.nextInt();
}
System.out.println(solve(x));
sc.close();
}
static int solve(int[] x) {
return 15 - Arrays.stream(x).sum();
}
} |
[
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,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
97,
11
],
[
97,
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
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
14,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
14,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
14,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
43,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
54,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
65,
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
],
[
12,
94
],
[
94,
95
],
[
0,
96
],
[
96,
97
],
[
96,
98
]
]
| [
"\nimport java.util.*;\nimport java.io.*;\n\nimport static java.lang.Character.isUpperCase;\n\npublic class Main {\n\n public static void main(String[] args) {\n\n Scanner in = new Scanner(System.in);\n int a = in.nextInt();\n int b = in.nextInt();\n int c = in.nextInt();\n int d = in.nextInt();\n int e = in.nextInt();\n\n if(a==0)\n {\n System.out.println(1);\n\n }\n else if(b==0)\n {\n System.out.println(2);\n\n }\n else if(c==0)\n {\n System.out.println(3);\n\n }\n else if(d==0)\n {\n System.out.println(4);\n\n }\n else\n {\n System.out.println(5);\n\n }\n }\n\n\n\n\n }\n\n",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import static java.lang.Character.isUpperCase;",
"import static java.lang.Character.isUpperCase;",
"import static java.lang.Character.isUpperCase;",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner in = new Scanner(System.in);\n int a = in.nextInt();\n int b = in.nextInt();\n int c = in.nextInt();\n int d = in.nextInt();\n int e = in.nextInt();\n\n if(a==0)\n {\n System.out.println(1);\n\n }\n else if(b==0)\n {\n System.out.println(2);\n\n }\n else if(c==0)\n {\n System.out.println(3);\n\n }\n else if(d==0)\n {\n System.out.println(4);\n\n }\n else\n {\n System.out.println(5);\n\n }\n }\n\n\n\n\n }",
"Main",
"public static void main(String[] args) {\n\n Scanner in = new Scanner(System.in);\n int a = in.nextInt();\n int b = in.nextInt();\n int c = in.nextInt();\n int d = in.nextInt();\n int e = in.nextInt();\n\n if(a==0)\n {\n System.out.println(1);\n\n }\n else if(b==0)\n {\n System.out.println(2);\n\n }\n else if(c==0)\n {\n System.out.println(3);\n\n }\n else if(d==0)\n {\n System.out.println(4);\n\n }\n else\n {\n System.out.println(5);\n\n }\n }",
"main",
"{\n\n Scanner in = new Scanner(System.in);\n int a = in.nextInt();\n int b = in.nextInt();\n int c = in.nextInt();\n int d = in.nextInt();\n int e = in.nextInt();\n\n if(a==0)\n {\n System.out.println(1);\n\n }\n else if(b==0)\n {\n System.out.println(2);\n\n }\n else if(c==0)\n {\n System.out.println(3);\n\n }\n else if(d==0)\n {\n System.out.println(4);\n\n }\n else\n {\n System.out.println(5);\n\n }\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int a = in.nextInt();",
"a",
"in.nextInt()",
"in.nextInt",
"in",
"int b = in.nextInt();",
"b",
"in.nextInt()",
"in.nextInt",
"in",
"int c = in.nextInt();",
"c",
"in.nextInt()",
"in.nextInt",
"in",
"int d = in.nextInt();",
"d",
"in.nextInt()",
"in.nextInt",
"in",
"int e = in.nextInt();",
"e",
"in.nextInt()",
"in.nextInt",
"in",
"if(a==0)\n {\n System.out.println(1);\n\n }\n else if(b==0)\n {\n System.out.println(2);\n\n }\n else if(c==0)\n {\n System.out.println(3);\n\n }\n else if(d==0)\n {\n System.out.println(4);\n\n }\n else\n {\n System.out.println(5);\n\n }",
"a==0",
"a",
"0",
"{\n System.out.println(1);\n\n }",
"System.out.println(1)",
"System.out.println",
"System.out",
"System",
"System.out",
"1",
"if(b==0)\n {\n System.out.println(2);\n\n }\n else if(c==0)\n {\n System.out.println(3);\n\n }\n else if(d==0)\n {\n System.out.println(4);\n\n }\n else\n {\n System.out.println(5);\n\n }",
"b==0",
"b",
"0",
"{\n System.out.println(2);\n\n }",
"System.out.println(2)",
"System.out.println",
"System.out",
"System",
"System.out",
"2",
"if(c==0)\n {\n System.out.println(3);\n\n }\n else if(d==0)\n {\n System.out.println(4);\n\n }\n else\n {\n System.out.println(5);\n\n }",
"c==0",
"c",
"0",
"{\n System.out.println(3);\n\n }",
"System.out.println(3)",
"System.out.println",
"System.out",
"System",
"System.out",
"3",
"if(d==0)\n {\n System.out.println(4);\n\n }\n else\n {\n System.out.println(5);\n\n }",
"d==0",
"d",
"0",
"{\n System.out.println(4);\n\n }",
"System.out.println(4)",
"System.out.println",
"System.out",
"System",
"System.out",
"4",
"{\n System.out.println(5);\n\n }",
"System.out.println(5)",
"System.out.println",
"System.out",
"System",
"System.out",
"5",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner in = new Scanner(System.in);\n int a = in.nextInt();\n int b = in.nextInt();\n int c = in.nextInt();\n int d = in.nextInt();\n int e = in.nextInt();\n\n if(a==0)\n {\n System.out.println(1);\n\n }\n else if(b==0)\n {\n System.out.println(2);\n\n }\n else if(c==0)\n {\n System.out.println(3);\n\n }\n else if(d==0)\n {\n System.out.println(4);\n\n }\n else\n {\n System.out.println(5);\n\n }\n }\n\n\n\n\n }",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner in = new Scanner(System.in);\n int a = in.nextInt();\n int b = in.nextInt();\n int c = in.nextInt();\n int d = in.nextInt();\n int e = in.nextInt();\n\n if(a==0)\n {\n System.out.println(1);\n\n }\n else if(b==0)\n {\n System.out.println(2);\n\n }\n else if(c==0)\n {\n System.out.println(3);\n\n }\n else if(d==0)\n {\n System.out.println(4);\n\n }\n else\n {\n System.out.println(5);\n\n }\n }\n\n\n\n\n }",
"Main"
]
|
import java.util.*;
import java.io.*;
import static java.lang.Character.isUpperCase;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int a = in.nextInt();
int b = in.nextInt();
int c = in.nextInt();
int d = in.nextInt();
int e = in.nextInt();
if(a==0)
{
System.out.println(1);
}
else if(b==0)
{
System.out.println(2);
}
else if(c==0)
{
System.out.println(3);
}
else if(d==0)
{
System.out.println(4);
}
else
{
System.out.println(5);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
2,
18,
13,
13,
17,
30,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
68,
5
],
[
68,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
8,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
24,
25
],
[
24,
26
],
[
19,
27
],
[
27,
28
],
[
28,
29
],
[
19,
30
],
[
31,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
8,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
8,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
8,
62
],
[
62,
63
],
[
63,
64
],
[
6,
65
],
[
65,
66
],
[
0,
67
],
[
67,
68
],
[
67,
69
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[]arr = new int[5];\n int ans =0;\n for(int i=0;i<5;i++){\n arr[i]=sc.nextInt();\n if(arr[i]==0){\n ans=i+1;\n }\n }\n System.out.println(ans);\n System.out.flush();\n sc.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[]arr = new int[5];\n int ans =0;\n for(int i=0;i<5;i++){\n arr[i]=sc.nextInt();\n if(arr[i]==0){\n ans=i+1;\n }\n }\n System.out.println(ans);\n System.out.flush();\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[]arr = new int[5];\n int ans =0;\n for(int i=0;i<5;i++){\n arr[i]=sc.nextInt();\n if(arr[i]==0){\n ans=i+1;\n }\n }\n System.out.println(ans);\n System.out.flush();\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int[]arr = new int[5];\n int ans =0;\n for(int i=0;i<5;i++){\n arr[i]=sc.nextInt();\n if(arr[i]==0){\n ans=i+1;\n }\n }\n System.out.println(ans);\n System.out.flush();\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[]arr = new int[5];",
"arr",
"new int[5]",
"5",
"int ans =0;",
"ans",
"0",
"for(int i=0;i<5;i++){\n arr[i]=sc.nextInt();\n if(arr[i]==0){\n ans=i+1;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<5",
"i",
"5",
"i++",
"i++",
"i",
"{\n arr[i]=sc.nextInt();\n if(arr[i]==0){\n ans=i+1;\n }\n }",
"{\n arr[i]=sc.nextInt();\n if(arr[i]==0){\n ans=i+1;\n }\n }",
"arr[i]=sc.nextInt()",
"arr[i]",
"arr",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(arr[i]==0){\n ans=i+1;\n }",
"arr[i]==0",
"arr[i]",
"arr",
"i",
"0",
"{\n ans=i+1;\n }",
"ans=i+1",
"ans",
"i+1",
"i",
"1",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"System.out.flush()",
"System.out.flush",
"System.out",
"System",
"System.out",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[]arr = new int[5];\n int ans =0;\n for(int i=0;i<5;i++){\n arr[i]=sc.nextInt();\n if(arr[i]==0){\n ans=i+1;\n }\n }\n System.out.println(ans);\n System.out.flush();\n sc.close();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[]arr = new int[5];\n int ans =0;\n for(int i=0;i<5;i++){\n arr[i]=sc.nextInt();\n if(arr[i]==0){\n ans=i+1;\n }\n }\n System.out.println(ans);\n System.out.flush();\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[]arr = new int[5];
int ans =0;
for(int i=0;i<5;i++){
arr[i]=sc.nextInt();
if(arr[i]==0){
ans=i+1;
}
}
System.out.println(ans);
System.out.flush();
sc.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
2,
17,
17,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
0,
13,
20,
41,
13,
20,
17,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
40,
18,
13,
18,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
0,
13,
13,
4,
18,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
40,
17,
37,
20,
14,
2,
13,
13,
30,
0,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
30,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
14,
2,
2,
13,
17,
2,
13,
17,
37,
20,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
29,
2,
13,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
30,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
14,
2,
2,
13,
17,
2,
13,
17,
37,
20,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
29,
2,
13,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
30,
0,
13,
4,
13,
41,
13,
20,
42,
40,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
41,
13,
20,
42,
40,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
14,
2,
13,
17,
29,
4,
18,
13,
13,
29,
2,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
12,
13,
30,
29,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
6,
13,
12,
13,
23,
13,
6,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
2,
18,
13,
13,
17,
4,
18,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
36,
13,
29,
17,
14,
40,
2,
13,
13,
29,
17,
41,
13,
13,
29,
2,
2,
13,
18,
13,
13,
2,
13,
18,
13,
13,
23,
13,
12,
13,
30,
29,
4,
18,
2,
2,
2,
17,
13,
17,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
642,
11
],
[
642,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
14,
16
],
[
642,
17
],
[
17,
18
],
[
642,
19
],
[
19,
20
],
[
642,
21
],
[
21,
22
],
[
642,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
29
],
[
29,
30
],
[
29,
31
],
[
25,
32
],
[
32,
33
],
[
32,
34
],
[
25,
35
],
[
35,
36
],
[
35,
37
],
[
25,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
25,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
25,
64
],
[
64,
65
],
[
64,
66
],
[
25,
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
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
80,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
25,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
25,
94
],
[
94,
95
],
[
95,
96
],
[
23,
97
],
[
97,
98
],
[
642,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
99,
103
],
[
103,
104
],
[
103,
105
],
[
99,
107
],
[
107,
108
],
[
99,
109
],
[
109,
110
],
[
99,
111
],
[
111,
112
],
[
99,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
113,
121
],
[
121,
122
],
[
99,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
126,
131
],
[
131,
132
],
[
125,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
133,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
137,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
141,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
151,
152
],
[
150,
153
],
[
137,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
158,
159
],
[
159,
160
],
[
125,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
99,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
168,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
173,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
168,
182
],
[
182,
183
],
[
182,
184
],
[
168,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
185,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
189,
194
],
[
194,
195
],
[
194,
196
],
[
196,
197
],
[
168,
198
],
[
198,
199
],
[
198,
200
],
[
168,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
201,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
208,
212
],
[
212,
213
],
[
212,
214
],
[
207,
215
],
[
215,
216
],
[
206,
217
],
[
217,
218
],
[
217,
219
],
[
206,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
222,
224
],
[
206,
225
],
[
225,
226
],
[
225,
227
],
[
227,
228
],
[
168,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
99,
233
],
[
233,
234
],
[
233,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
238,
239
],
[
235,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
240,
244
],
[
244,
245
],
[
245,
246
],
[
245,
247
],
[
247,
248
],
[
235,
249
],
[
249,
250
],
[
249,
251
],
[
235,
252
],
[
252,
253
],
[
253,
254
],
[
253,
255
],
[
252,
256
],
[
256,
257
],
[
257,
258
],
[
257,
259
],
[
259,
260
],
[
256,
261
],
[
261,
262
],
[
261,
263
],
[
263,
264
],
[
235,
265
],
[
265,
266
],
[
265,
267
],
[
235,
268
],
[
268,
269
],
[
269,
270
],
[
270,
271
],
[
270,
272
],
[
268,
273
],
[
273,
274
],
[
274,
275
],
[
275,
276
],
[
276,
277
],
[
276,
278
],
[
275,
279
],
[
279,
280
],
[
279,
281
],
[
274,
282
],
[
282,
283
],
[
273,
284
],
[
284,
285
],
[
284,
286
],
[
273,
287
],
[
287,
288
],
[
287,
289
],
[
289,
290
],
[
289,
291
],
[
273,
292
],
[
292,
293
],
[
292,
294
],
[
294,
295
],
[
235,
296
],
[
296,
297
],
[
297,
298
],
[
297,
299
],
[
99,
300
],
[
300,
301
],
[
300,
302
],
[
302,
303
],
[
303,
304
],
[
303,
305
],
[
302,
307
],
[
307,
308
],
[
308,
309
],
[
309,
310
],
[
309,
311
],
[
307,
312
],
[
312,
313
],
[
312,
314
],
[
307,
315
],
[
315,
316
],
[
316,
317
],
[
307,
318
],
[
319,
319
],
[
319,
320
],
[
320,
321
],
[
321,
322
],
[
321,
323
],
[
320,
324
],
[
324,
325
],
[
302,
326
],
[
326,
327
],
[
300,
328
],
[
328,
329
],
[
99,
330
],
[
330,
331
],
[
330,
332
],
[
332,
333
],
[
333,
334
],
[
333,
335
],
[
332,
337
],
[
337,
338
],
[
338,
339
],
[
339,
340
],
[
339,
341
],
[
337,
342
],
[
342,
343
],
[
342,
344
],
[
337,
345
],
[
345,
346
],
[
346,
347
],
[
337,
348
],
[
349,
349
],
[
349,
350
],
[
350,
351
],
[
351,
352
],
[
351,
353
],
[
350,
354
],
[
354,
355
],
[
332,
356
],
[
356,
357
],
[
330,
358
],
[
358,
359
],
[
99,
360
],
[
360,
361
],
[
360,
362
],
[
362,
363
],
[
363,
364
],
[
363,
365
],
[
362,
366
],
[
366,
367
],
[
367,
368
],
[
368,
369
],
[
368,
370
],
[
366,
371
],
[
371,
372
],
[
371,
373
],
[
366,
374
],
[
374,
375
],
[
375,
376
],
[
366,
377
],
[
378,
378
],
[
378,
379
],
[
379,
380
],
[
379,
381
],
[
381,
382
],
[
382,
383
],
[
378,
384
],
[
384,
385
],
[
385,
386
],
[
384,
387
],
[
362,
388
],
[
388,
389
],
[
360,
390
],
[
390,
391
],
[
99,
392
],
[
392,
393
],
[
392,
394
],
[
394,
395
],
[
395,
396
],
[
395,
397
],
[
397,
398
],
[
394,
399
],
[
399,
400
],
[
400,
401
],
[
400,
402
],
[
399,
403
],
[
403,
404
],
[
404,
405
],
[
404,
406
],
[
406,
407
],
[
394,
408
],
[
408,
409
],
[
408,
410
],
[
394,
411
],
[
411,
412
],
[
412,
413
],
[
413,
414
],
[
413,
415
],
[
411,
416
],
[
416,
417
],
[
417,
418
],
[
418,
419
],
[
417,
420
],
[
416,
421
],
[
421,
422
],
[
421,
423
],
[
423,
424
],
[
394,
425
],
[
425,
426
],
[
426,
427
],
[
427,
428
],
[
99,
429
],
[
429,
430
],
[
429,
431
],
[
431,
432
],
[
432,
433
],
[
432,
434
],
[
434,
435
],
[
431,
436
],
[
436,
437
],
[
437,
438
],
[
437,
439
],
[
436,
440
],
[
440,
441
],
[
440,
442
],
[
442,
443
],
[
431,
444
],
[
444,
445
],
[
444,
446
],
[
431,
447
],
[
447,
448
],
[
448,
449
],
[
449,
450
],
[
449,
451
],
[
447,
452
],
[
452,
453
],
[
453,
454
],
[
454,
455
],
[
453,
456
],
[
452,
457
],
[
457,
458
],
[
457,
459
],
[
459,
460
],
[
431,
461
],
[
461,
462
],
[
462,
463
],
[
463,
464
],
[
99,
465
],
[
465,
466
],
[
465,
467
],
[
467,
468
],
[
468,
469
],
[
469,
470
],
[
469,
471
],
[
468,
472
],
[
472,
473
],
[
473,
474
],
[
474,
475
],
[
473,
476
],
[
467,
477
],
[
477,
478
],
[
481,
479
],
[
491,
480
],
[
488,
481
],
[
481,
482
],
[
482,
483
],
[
482,
484
],
[
481,
485
],
[
485,
486
],
[
485,
487
],
[
488,
488
],
[
488,
489
],
[
488,
490
],
[
491,
491
],
[
491,
492
],
[
491,
493
],
[
481,
494
],
[
494,
495
],
[
494,
496
],
[
496,
497
],
[
465,
498
],
[
498,
499
],
[
99,
500
],
[
500,
501
],
[
500,
502
],
[
502,
503
],
[
503,
504
],
[
505,
505
],
[
505,
506
],
[
506,
507
],
[
506,
508
],
[
505,
509
],
[
509,
510
],
[
509,
511
],
[
505,
512
],
[
512,
513
],
[
512,
514
],
[
514,
515
],
[
500,
516
],
[
516,
517
],
[
99,
518
],
[
518,
519
],
[
518,
520
],
[
520,
521
],
[
520,
522
],
[
522,
523
],
[
642,
524
],
[
524,
525
],
[
524,
526
],
[
526,
527
],
[
526,
528
],
[
528,
529
],
[
529,
530
],
[
530,
531
],
[
529,
532
],
[
526,
533
],
[
533,
534
],
[
524,
535
],
[
535,
536
],
[
535,
537
],
[
537,
538
],
[
538,
539
],
[
538,
540
],
[
537,
541
],
[
541,
542
],
[
542,
543
],
[
543,
544
],
[
543,
545
],
[
541,
546
],
[
546,
547
],
[
546,
548
],
[
548,
549
],
[
548,
550
],
[
541,
551
],
[
551,
552
],
[
552,
553
],
[
541,
554
],
[
555,
555
],
[
555,
556
],
[
556,
557
],
[
557,
558
],
[
556,
559
],
[
559,
560
],
[
560,
561
],
[
560,
562
],
[
559,
563
],
[
537,
564
],
[
564,
565
],
[
565,
566
],
[
564,
567
],
[
567,
568
],
[
568,
569
],
[
535,
570
],
[
570,
571
],
[
0,
572
],
[
572,
573
],
[
572,
574
],
[
574,
575
],
[
572,
576
],
[
576,
577
],
[
572,
578
],
[
578,
579
],
[
578,
580
],
[
580,
581
],
[
581,
582
],
[
582,
583
],
[
582,
584
],
[
581,
585
],
[
580,
586
],
[
586,
587
],
[
587,
588
],
[
587,
589
],
[
586,
590
],
[
578,
591
],
[
591,
592
],
[
578,
593
],
[
593,
594
],
[
572,
595
],
[
595,
596
],
[
595,
597
],
[
597,
598
],
[
598,
599
],
[
599,
600
],
[
599,
601
],
[
598,
602
],
[
602,
603
],
[
597,
604
],
[
604,
605
],
[
605,
606
],
[
606,
607
],
[
606,
608
],
[
604,
609
],
[
609,
610
],
[
597,
611
],
[
611,
612
],
[
611,
613
],
[
597,
614
],
[
614,
615
],
[
615,
616
],
[
616,
617
],
[
616,
618
],
[
618,
619
],
[
618,
620
],
[
615,
621
],
[
621,
622
],
[
621,
623
],
[
623,
624
],
[
623,
625
],
[
595,
626
],
[
626,
627
],
[
572,
628
],
[
628,
629
],
[
628,
630
],
[
630,
631
],
[
631,
632
],
[
632,
633
],
[
633,
634
],
[
634,
635
],
[
635,
636
],
[
636,
637
],
[
636,
638
],
[
635,
639
],
[
634,
640
],
[
0,
641
],
[
641,
642
],
[
641,
643
]
]
| [
"import java.io.*;\nimport java.util.*;\nimport java.math.*;\n\n//Mann Shah [ DAIICT ].\n\npublic class Main {\n\tstatic long mod = (long) (1e9+7);\n\tstatic InputReader in;\n static PrintWriter out;\n static Debugger deb; \n \n \tpublic static void main(String args[] ) throws NumberFormatException, IOException {\n\t\t\t\n\t\tin = new InputReader(System.in);\n\t out = new PrintWriter(System.out);\n\t deb = new Debugger();\n\t \n\t int[] f= new int[6];\n\t int[] a =in.nextIntArray(5);\n\t for(int i=0;i<5;i++) {\n\t \t\tf[a[i]]++;\n\t }\n\t int ans=0;\n\t for(int i=1;i<=5;i++) {\n\t \t\tif(f[i]==0) {\n\t \t\t\tans = i;\n\t \t\t}\n\t }\n\t out.println(ans);\n\t \n\t out.close();\n\t}\n\n\n\n\n/* TC space\n\n\n */\t\n\t\tstatic class InputReader\n\t {\n\t private final InputStream stream;\n\t private final byte[] buf = new byte[8192];\n\t private int curChar, snumChars;\n\t private SpaceCharFilter filter;\n\n\t public InputReader(InputStream stream){\n\t this.stream = stream;\n\t }\n\t public int snext(){\n if (snumChars == -1) throw new InputMismatchException();\n if (curChar >= snumChars){\n curChar = 0;\n try{\n snumChars = stream.read(buf);\n } catch (IOException e){\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n\t }\n\n\t public int nextInt(){\n\t int c = snext();\n\t while (isSpaceChar(c)){\n\t c = snext();\n\t }\n\t int sgn = 1;\n\t if (c == '-'){\n sgn = -1;\n c = snext();\n\t }\n\t int res = 0;\n\t do{\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = snext();\n\t } while (!isSpaceChar(c));\n\t return res * sgn;\n\t }\n\n\t public long nextLong()\n\t {\n\t int c = snext();\n\t while (isSpaceChar(c))\n\t {\n\t c = snext();\n\t }\n\t int sgn = 1;\n\t if (c == '-')\n\t {\n\t sgn = -1;\n\t c = snext();\n\t }\n\t long res = 0;\n\t do\n\t {\n\t if (c < '0' || c > '9')\n\t throw new InputMismatchException();\n\t res *= 10;\n\t res += c - '0';\n\t c = snext();\n\t } while (!isSpaceChar(c));\n\t return res * sgn;\n\t }\n\n\t public int[] nextIntArray(int n)\n\t {\n\t int a[] = new int[n];\n\t for (int i = 0; i < n; i++)\n\t {\n\t a[i] = nextInt();\n\t }\n\t return a;\n\t }\n\n\t public long[] nextLongArray(int n)\n\t {\n\t long a[] = new long[n];\n\t for (int i = 0; i < n; i++)\n\t {\n\t a[i] = nextLong();\n\t }\n\t return a;\n\t }\n\t \n\t public ArrayList<Integer> nextArrayList(int n){\n\t \t\t\tArrayList<Integer> x = new ArrayList<Integer>();\n\t \t\t\tfor(int i=0;i<n;i++) {\n\t \t\t\t\tint v = in.nextInt();\n\t \t\t\t\tx.add(v);\n\t \t\t\t}\n\t \t\t\treturn x;\n\t }\n\n\t public String readString()\n\t {\n\t int c = snext();\n\t while (isSpaceChar(c))\n\t {\n\t c = snext();\n\t }\n\t StringBuilder res = new StringBuilder();\n\t do\n\t {\n\t res.appendCodePoint(c);\n\t c = snext();\n\t } while (!isSpaceChar(c));\n\t return res.toString();\n\t }\n\n\t public String nextLine()\n\t {\n\t int c = snext();\n\t while (isSpaceChar(c))\n\t c = snext();\n\t StringBuilder res = new StringBuilder();\n\t do\n\t {\n\t res.appendCodePoint(c);\n\t c = snext();\n\t } while (!isEndOfLine(c));\n\t return res.toString();\n\t }\n\n\t public boolean isSpaceChar(int c)\n\t {\n\t if (filter != null)\n\t return filter.isSpaceChar(c);\n\t return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t }\n\n\t private boolean isEndOfLine(int c)\n\t {\n\t return c == '\\n' || c == '\\r' || c == -1;\n\t }\n\n\t public interface SpaceCharFilter\n\t {\n\t public boolean isSpaceChar(int ch);\n\t }\n\n\t }\n\t\t\n\t\tstatic class Debugger{\n\t\t\tpublic void n(int x) {\n\t\t\t\tout.println(x);\n\t\t\t}\n\t\t\t\n\t\t\tpublic void a(int[] a) {\n\t\t StringBuilder sb = new StringBuilder();\n\t\t for(int i=0;i<a.length;i++) {\n\t\t \t\tsb.append(a[i]+\" \");\n\t\t }\n\t\t out.println(sb.toString());\n\t\t\t}\n\t\t}\n\t\n\t\t\n}\n\n\nclass Pair { \n int x; \n int y; \n // Constructor \n public Pair(int x, int y) \n { \n this.x = x; \n this.y = y; \n } \n\t@Override\n\tpublic boolean equals(Object o) {\n\t if (this == o) return true;\n\t if (!(o instanceof Pair)) return false;\n\t Pair p = (Pair) o;\n\t return x == p.x && y == p.y;\n\t}\t\n\t@Override\n\tpublic int hashCode() {\n\t\treturn (\"\"+x+\"-\"+y).hashCode();\n\t}\t\n} ",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.math.*;",
"math.*",
"java",
"public class Main {\n\tstatic long mod = (long) (1e9+7);\n\tstatic InputReader in;\n static PrintWriter out;\n static Debugger deb; \n \n \tpublic static void main(String args[] ) throws NumberFormatException, IOException {\n\t\t\t\n\t\tin = new InputReader(System.in);\n\t out = new PrintWriter(System.out);\n\t deb = new Debugger();\n\t \n\t int[] f= new int[6];\n\t int[] a =in.nextIntArray(5);\n\t for(int i=0;i<5;i++) {\n\t \t\tf[a[i]]++;\n\t }\n\t int ans=0;\n\t for(int i=1;i<=5;i++) {\n\t \t\tif(f[i]==0) {\n\t \t\t\tans = i;\n\t \t\t}\n\t }\n\t out.println(ans);\n\t \n\t out.close();\n\t}\n\n\n\n\n/* TC space\n\n\n */\t\n\t\tstatic class InputReader\n\t {\n\t private final InputStream stream;\n\t private final byte[] buf = new byte[8192];\n\t private int curChar, snumChars;\n\t private SpaceCharFilter filter;\n\n\t public InputReader(InputStream stream){\n\t this.stream = stream;\n\t }\n\t public int snext(){\n if (snumChars == -1) throw new InputMismatchException();\n if (curChar >= snumChars){\n curChar = 0;\n try{\n snumChars = stream.read(buf);\n } catch (IOException e){\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n\t }\n\n\t public int nextInt(){\n\t int c = snext();\n\t while (isSpaceChar(c)){\n\t c = snext();\n\t }\n\t int sgn = 1;\n\t if (c == '-'){\n sgn = -1;\n c = snext();\n\t }\n\t int res = 0;\n\t do{\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = snext();\n\t } while (!isSpaceChar(c));\n\t return res * sgn;\n\t }\n\n\t public long nextLong()\n\t {\n\t int c = snext();\n\t while (isSpaceChar(c))\n\t {\n\t c = snext();\n\t }\n\t int sgn = 1;\n\t if (c == '-')\n\t {\n\t sgn = -1;\n\t c = snext();\n\t }\n\t long res = 0;\n\t do\n\t {\n\t if (c < '0' || c > '9')\n\t throw new InputMismatchException();\n\t res *= 10;\n\t res += c - '0';\n\t c = snext();\n\t } while (!isSpaceChar(c));\n\t return res * sgn;\n\t }\n\n\t public int[] nextIntArray(int n)\n\t {\n\t int a[] = new int[n];\n\t for (int i = 0; i < n; i++)\n\t {\n\t a[i] = nextInt();\n\t }\n\t return a;\n\t }\n\n\t public long[] nextLongArray(int n)\n\t {\n\t long a[] = new long[n];\n\t for (int i = 0; i < n; i++)\n\t {\n\t a[i] = nextLong();\n\t }\n\t return a;\n\t }\n\t \n\t public ArrayList<Integer> nextArrayList(int n){\n\t \t\t\tArrayList<Integer> x = new ArrayList<Integer>();\n\t \t\t\tfor(int i=0;i<n;i++) {\n\t \t\t\t\tint v = in.nextInt();\n\t \t\t\t\tx.add(v);\n\t \t\t\t}\n\t \t\t\treturn x;\n\t }\n\n\t public String readString()\n\t {\n\t int c = snext();\n\t while (isSpaceChar(c))\n\t {\n\t c = snext();\n\t }\n\t StringBuilder res = new StringBuilder();\n\t do\n\t {\n\t res.appendCodePoint(c);\n\t c = snext();\n\t } while (!isSpaceChar(c));\n\t return res.toString();\n\t }\n\n\t public String nextLine()\n\t {\n\t int c = snext();\n\t while (isSpaceChar(c))\n\t c = snext();\n\t StringBuilder res = new StringBuilder();\n\t do\n\t {\n\t res.appendCodePoint(c);\n\t c = snext();\n\t } while (!isEndOfLine(c));\n\t return res.toString();\n\t }\n\n\t public boolean isSpaceChar(int c)\n\t {\n\t if (filter != null)\n\t return filter.isSpaceChar(c);\n\t return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t }\n\n\t private boolean isEndOfLine(int c)\n\t {\n\t return c == '\\n' || c == '\\r' || c == -1;\n\t }\n\n\t public interface SpaceCharFilter\n\t {\n\t public boolean isSpaceChar(int ch);\n\t }\n\n\t }\n\t\t\n\t\tstatic class Debugger{\n\t\t\tpublic void n(int x) {\n\t\t\t\tout.println(x);\n\t\t\t}\n\t\t\t\n\t\t\tpublic void a(int[] a) {\n\t\t StringBuilder sb = new StringBuilder();\n\t\t for(int i=0;i<a.length;i++) {\n\t\t \t\tsb.append(a[i]+\" \");\n\t\t }\n\t\t out.println(sb.toString());\n\t\t\t}\n\t\t}\n\t\n\t\t\n}",
"Main",
"static long mod = (long) (1e9+7);",
"mod",
"(long) (1e9+7)",
"1e9",
"7",
"static InputReader in;",
"in",
"static PrintWriter out;",
"out",
"static Debugger deb;",
"deb",
"public static void main(String args[] ) throws NumberFormatException, IOException {\n\t\t\t\n\t\tin = new InputReader(System.in);\n\t out = new PrintWriter(System.out);\n\t deb = new Debugger();\n\t \n\t int[] f= new int[6];\n\t int[] a =in.nextIntArray(5);\n\t for(int i=0;i<5;i++) {\n\t \t\tf[a[i]]++;\n\t }\n\t int ans=0;\n\t for(int i=1;i<=5;i++) {\n\t \t\tif(f[i]==0) {\n\t \t\t\tans = i;\n\t \t\t}\n\t }\n\t out.println(ans);\n\t \n\t out.close();\n\t}",
"main",
"{\n\t\t\t\n\t\tin = new InputReader(System.in);\n\t out = new PrintWriter(System.out);\n\t deb = new Debugger();\n\t \n\t int[] f= new int[6];\n\t int[] a =in.nextIntArray(5);\n\t for(int i=0;i<5;i++) {\n\t \t\tf[a[i]]++;\n\t }\n\t int ans=0;\n\t for(int i=1;i<=5;i++) {\n\t \t\tif(f[i]==0) {\n\t \t\t\tans = i;\n\t \t\t}\n\t }\n\t out.println(ans);\n\t \n\t out.close();\n\t}",
"in = new InputReader(System.in)",
"in",
"new InputReader(System.in)",
"out = new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"deb = new Debugger()",
"deb",
"new Debugger()",
"int[] f= new int[6];",
"f",
"new int[6]",
"6",
"int[] a =in.nextIntArray(5);",
"a",
"in.nextIntArray(5)",
"in.nextIntArray",
"in",
"5",
"for(int i=0;i<5;i++) {\n\t \t\tf[a[i]]++;\n\t }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<5",
"i",
"5",
"i++",
"i++",
"i",
"{\n\t \t\tf[a[i]]++;\n\t }",
"{\n\t \t\tf[a[i]]++;\n\t }",
"f[a[i]]++",
"f[a[i]]",
"f",
"a[i]",
"a",
"i",
"int ans=0;",
"ans",
"0",
"for(int i=1;i<=5;i++) {\n\t \t\tif(f[i]==0) {\n\t \t\t\tans = i;\n\t \t\t}\n\t }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=5",
"i",
"5",
"i++",
"i++",
"i",
"{\n\t \t\tif(f[i]==0) {\n\t \t\t\tans = i;\n\t \t\t}\n\t }",
"{\n\t \t\tif(f[i]==0) {\n\t \t\t\tans = i;\n\t \t\t}\n\t }",
"if(f[i]==0) {\n\t \t\t\tans = i;\n\t \t\t}",
"f[i]==0",
"f[i]",
"f",
"i",
"0",
"{\n\t \t\t\tans = i;\n\t \t\t}",
"ans = i",
"ans",
"i",
"out.println(ans)",
"out.println",
"out",
"ans",
"out.close()",
"out.close",
"out",
"String args[]",
"args",
"\t\tstatic class InputReader\n\t {\n\t private final InputStream stream;\n\t private final byte[] buf = new byte[8192];\n\t private int curChar, snumChars;\n\t private SpaceCharFilter filter;\n\n\t public InputReader(InputStream stream){\n\t this.stream = stream;\n\t }\n\t public int snext(){\n if (snumChars == -1) throw new InputMismatchException();\n if (curChar >= snumChars){\n curChar = 0;\n try{\n snumChars = stream.read(buf);\n } catch (IOException e){\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n\t }\n\n\t public int nextInt(){\n\t int c = snext();\n\t while (isSpaceChar(c)){\n\t c = snext();\n\t }\n\t int sgn = 1;\n\t if (c == '-'){\n sgn = -1;\n c = snext();\n\t }\n\t int res = 0;\n\t do{\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = snext();\n\t } while (!isSpaceChar(c));\n\t return res * sgn;\n\t }\n\n\t public long nextLong()\n\t {\n\t int c = snext();\n\t while (isSpaceChar(c))\n\t {\n\t c = snext();\n\t }\n\t int sgn = 1;\n\t if (c == '-')\n\t {\n\t sgn = -1;\n\t c = snext();\n\t }\n\t long res = 0;\n\t do\n\t {\n\t if (c < '0' || c > '9')\n\t throw new InputMismatchException();\n\t res *= 10;\n\t res += c - '0';\n\t c = snext();\n\t } while (!isSpaceChar(c));\n\t return res * sgn;\n\t }\n\n\t public int[] nextIntArray(int n)\n\t {\n\t int a[] = new int[n];\n\t for (int i = 0; i < n; i++)\n\t {\n\t a[i] = nextInt();\n\t }\n\t return a;\n\t }\n\n\t public long[] nextLongArray(int n)\n\t {\n\t long a[] = new long[n];\n\t for (int i = 0; i < n; i++)\n\t {\n\t a[i] = nextLong();\n\t }\n\t return a;\n\t }\n\t \n\t public ArrayList<Integer> nextArrayList(int n){\n\t \t\t\tArrayList<Integer> x = new ArrayList<Integer>();\n\t \t\t\tfor(int i=0;i<n;i++) {\n\t \t\t\t\tint v = in.nextInt();\n\t \t\t\t\tx.add(v);\n\t \t\t\t}\n\t \t\t\treturn x;\n\t }\n\n\t public String readString()\n\t {\n\t int c = snext();\n\t while (isSpaceChar(c))\n\t {\n\t c = snext();\n\t }\n\t StringBuilder res = new StringBuilder();\n\t do\n\t {\n\t res.appendCodePoint(c);\n\t c = snext();\n\t } while (!isSpaceChar(c));\n\t return res.toString();\n\t }\n\n\t public String nextLine()\n\t {\n\t int c = snext();\n\t while (isSpaceChar(c))\n\t c = snext();\n\t StringBuilder res = new StringBuilder();\n\t do\n\t {\n\t res.appendCodePoint(c);\n\t c = snext();\n\t } while (!isEndOfLine(c));\n\t return res.toString();\n\t }\n\n\t public boolean isSpaceChar(int c)\n\t {\n\t if (filter != null)\n\t return filter.isSpaceChar(c);\n\t return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t }\n\n\t private boolean isEndOfLine(int c)\n\t {\n\t return c == '\\n' || c == '\\r' || c == -1;\n\t }\n\n\t public interface SpaceCharFilter\n\t {\n\t public boolean isSpaceChar(int ch);\n\t }\n\n\t }",
"InputReader",
"private final InputStream stream;",
"stream",
"private final byte[] buf = new byte[8192];",
"buf",
"new byte[8192]",
"8192",
"private int curChar",
"curChar",
"snumChars;",
"snumChars",
"private SpaceCharFilter filter;",
"filter",
"public InputReader(InputStream stream){\n\t this.stream = stream;\n\t }",
"InputReader",
"{\n\t this.stream = stream;\n\t }",
"this.stream = stream",
"this.stream",
"this",
"this.stream",
"stream",
"InputStream stream",
"stream",
"public int snext(){\n if (snumChars == -1) throw new InputMismatchException();\n if (curChar >= snumChars){\n curChar = 0;\n try{\n snumChars = stream.read(buf);\n } catch (IOException e){\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n\t }",
"snext",
"{\n if (snumChars == -1) throw new InputMismatchException();\n if (curChar >= snumChars){\n curChar = 0;\n try{\n snumChars = stream.read(buf);\n } catch (IOException e){\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n\t }",
"if (snumChars == -1) throw new InputMismatchException();",
"snumChars == -1",
"snumChars",
"-1",
"1",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (curChar >= snumChars){\n curChar = 0;\n try{\n snumChars = stream.read(buf);\n } catch (IOException e){\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }",
"curChar >= snumChars",
"curChar",
"snumChars",
"{\n curChar = 0;\n try{\n snumChars = stream.read(buf);\n } catch (IOException e){\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }",
"curChar = 0",
"curChar",
"0",
"try{\n snumChars = stream.read(buf);\n } catch (IOException e){\n throw new InputMismatchException();\n }",
"catch (IOException e){\n throw new InputMismatchException();\n }",
"IOException e",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n snumChars = stream.read(buf);\n }",
"snumChars = stream.read(buf)",
"snumChars",
"stream.read(buf)",
"stream.read",
"stream",
"buf",
"if (snumChars <= 0)\n return -1;",
"snumChars <= 0",
"snumChars",
"0",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"public int nextInt(){\n\t int c = snext();\n\t while (isSpaceChar(c)){\n\t c = snext();\n\t }\n\t int sgn = 1;\n\t if (c == '-'){\n sgn = -1;\n c = snext();\n\t }\n\t int res = 0;\n\t do{\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = snext();\n\t } while (!isSpaceChar(c));\n\t return res * sgn;\n\t }",
"nextInt",
"{\n\t int c = snext();\n\t while (isSpaceChar(c)){\n\t c = snext();\n\t }\n\t int sgn = 1;\n\t if (c == '-'){\n sgn = -1;\n c = snext();\n\t }\n\t int res = 0;\n\t do{\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = snext();\n\t } while (!isSpaceChar(c));\n\t return res * sgn;\n\t }",
"int c = snext();",
"c",
"snext()",
"snext",
"while (isSpaceChar(c)){\n\t c = snext();\n\t }",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n\t c = snext();\n\t }",
"c = snext()",
"c",
"snext()",
"snext",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-'){\n sgn = -1;\n c = snext();\n\t }",
"c == '-'",
"c",
"'-'",
"{\n sgn = -1;\n c = snext();\n\t }",
"sgn = -1",
"sgn",
"-1",
"1",
"c = snext()",
"c",
"snext()",
"snext",
"int res = 0;",
"res",
"0",
"do{\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = snext();\n\t } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = snext();\n\t }",
"if (c < '0' || c > '9')\n throw new InputMismatchException();",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"throw new InputMismatchException();",
"new InputMismatchException()",
"res *= 10",
"res",
"10",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = snext()",
"c",
"snext()",
"snext",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public long nextLong()\n\t {\n\t int c = snext();\n\t while (isSpaceChar(c))\n\t {\n\t c = snext();\n\t }\n\t int sgn = 1;\n\t if (c == '-')\n\t {\n\t sgn = -1;\n\t c = snext();\n\t }\n\t long res = 0;\n\t do\n\t {\n\t if (c < '0' || c > '9')\n\t throw new InputMismatchException();\n\t res *= 10;\n\t res += c - '0';\n\t c = snext();\n\t } while (!isSpaceChar(c));\n\t return res * sgn;\n\t }",
"nextLong",
"{\n\t int c = snext();\n\t while (isSpaceChar(c))\n\t {\n\t c = snext();\n\t }\n\t int sgn = 1;\n\t if (c == '-')\n\t {\n\t sgn = -1;\n\t c = snext();\n\t }\n\t long res = 0;\n\t do\n\t {\n\t if (c < '0' || c > '9')\n\t throw new InputMismatchException();\n\t res *= 10;\n\t res += c - '0';\n\t c = snext();\n\t } while (!isSpaceChar(c));\n\t return res * sgn;\n\t }",
"int c = snext();",
"c",
"snext()",
"snext",
"while (isSpaceChar(c))\n\t {\n\t c = snext();\n\t }",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n\t c = snext();\n\t }",
"c = snext()",
"c",
"snext()",
"snext",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-')\n\t {\n\t sgn = -1;\n\t c = snext();\n\t }",
"c == '-'",
"c",
"'-'",
"{\n\t sgn = -1;\n\t c = snext();\n\t }",
"sgn = -1",
"sgn",
"-1",
"1",
"c = snext()",
"c",
"snext()",
"snext",
"long res = 0;",
"res",
"0",
"do\n\t {\n\t if (c < '0' || c > '9')\n\t throw new InputMismatchException();\n\t res *= 10;\n\t res += c - '0';\n\t c = snext();\n\t } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n\t if (c < '0' || c > '9')\n\t throw new InputMismatchException();\n\t res *= 10;\n\t res += c - '0';\n\t c = snext();\n\t }",
"if (c < '0' || c > '9')\n\t throw new InputMismatchException();",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"throw new InputMismatchException();",
"new InputMismatchException()",
"res *= 10",
"res",
"10",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = snext()",
"c",
"snext()",
"snext",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public int[] nextIntArray(int n)\n\t {\n\t int a[] = new int[n];\n\t for (int i = 0; i < n; i++)\n\t {\n\t a[i] = nextInt();\n\t }\n\t return a;\n\t }",
"nextIntArray",
"{\n\t int a[] = new int[n];\n\t for (int i = 0; i < n; i++)\n\t {\n\t a[i] = nextInt();\n\t }\n\t return a;\n\t }",
"int a[] = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++)\n\t {\n\t a[i] = nextInt();\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t a[i] = nextInt();\n\t }",
"{\n\t a[i] = nextInt();\n\t }",
"a[i] = nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"public long[] nextLongArray(int n)\n\t {\n\t long a[] = new long[n];\n\t for (int i = 0; i < n; i++)\n\t {\n\t a[i] = nextLong();\n\t }\n\t return a;\n\t }",
"nextLongArray",
"{\n\t long a[] = new long[n];\n\t for (int i = 0; i < n; i++)\n\t {\n\t a[i] = nextLong();\n\t }\n\t return a;\n\t }",
"long a[] = new long[n];",
"a",
"new long[n]",
"n",
"for (int i = 0; i < n; i++)\n\t {\n\t a[i] = nextLong();\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t a[i] = nextLong();\n\t }",
"{\n\t a[i] = nextLong();\n\t }",
"a[i] = nextLong()",
"a[i]",
"a",
"i",
"nextLong()",
"nextLong",
"return a;",
"a",
"int n",
"n",
"public ArrayList<Integer> nextArrayList(int n){\n\t \t\t\tArrayList<Integer> x = new ArrayList<Integer>();\n\t \t\t\tfor(int i=0;i<n;i++) {\n\t \t\t\t\tint v = in.nextInt();\n\t \t\t\t\tx.add(v);\n\t \t\t\t}\n\t \t\t\treturn x;\n\t }",
"nextArrayList",
"{\n\t \t\t\tArrayList<Integer> x = new ArrayList<Integer>();\n\t \t\t\tfor(int i=0;i<n;i++) {\n\t \t\t\t\tint v = in.nextInt();\n\t \t\t\t\tx.add(v);\n\t \t\t\t}\n\t \t\t\treturn x;\n\t }",
"ArrayList<Integer> x = new ArrayList<Integer>();",
"x",
"new ArrayList<Integer>()",
"for(int i=0;i<n;i++) {\n\t \t\t\t\tint v = in.nextInt();\n\t \t\t\t\tx.add(v);\n\t \t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t \t\t\t\tint v = in.nextInt();\n\t \t\t\t\tx.add(v);\n\t \t\t\t}",
"{\n\t \t\t\t\tint v = in.nextInt();\n\t \t\t\t\tx.add(v);\n\t \t\t\t}",
"int v = in.nextInt();",
"v",
"in.nextInt()",
"in.nextInt",
"in",
"x.add(v)",
"x.add",
"x",
"v",
"return x;",
"x",
"int n",
"n",
"public String readString()\n\t {\n\t int c = snext();\n\t while (isSpaceChar(c))\n\t {\n\t c = snext();\n\t }\n\t StringBuilder res = new StringBuilder();\n\t do\n\t {\n\t res.appendCodePoint(c);\n\t c = snext();\n\t } while (!isSpaceChar(c));\n\t return res.toString();\n\t }",
"readString",
"{\n\t int c = snext();\n\t while (isSpaceChar(c))\n\t {\n\t c = snext();\n\t }\n\t StringBuilder res = new StringBuilder();\n\t do\n\t {\n\t res.appendCodePoint(c);\n\t c = snext();\n\t } while (!isSpaceChar(c));\n\t return res.toString();\n\t }",
"int c = snext();",
"c",
"snext()",
"snext",
"while (isSpaceChar(c))\n\t {\n\t c = snext();\n\t }",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n\t c = snext();\n\t }",
"c = snext()",
"c",
"snext()",
"snext",
"StringBuilder res = new StringBuilder();",
"res",
"new StringBuilder()",
"do\n\t {\n\t res.appendCodePoint(c);\n\t c = snext();\n\t } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n\t res.appendCodePoint(c);\n\t c = snext();\n\t }",
"res.appendCodePoint(c)",
"res.appendCodePoint",
"res",
"c",
"c = snext()",
"c",
"snext()",
"snext",
"return res.toString();",
"res.toString()",
"res.toString",
"res",
"public String nextLine()\n\t {\n\t int c = snext();\n\t while (isSpaceChar(c))\n\t c = snext();\n\t StringBuilder res = new StringBuilder();\n\t do\n\t {\n\t res.appendCodePoint(c);\n\t c = snext();\n\t } while (!isEndOfLine(c));\n\t return res.toString();\n\t }",
"nextLine",
"{\n\t int c = snext();\n\t while (isSpaceChar(c))\n\t c = snext();\n\t StringBuilder res = new StringBuilder();\n\t do\n\t {\n\t res.appendCodePoint(c);\n\t c = snext();\n\t } while (!isEndOfLine(c));\n\t return res.toString();\n\t }",
"int c = snext();",
"c",
"snext()",
"snext",
"while (isSpaceChar(c))\n\t c = snext();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c = snext()",
"c",
"snext()",
"snext",
"StringBuilder res = new StringBuilder();",
"res",
"new StringBuilder()",
"do\n\t {\n\t res.appendCodePoint(c);\n\t c = snext();\n\t } while (!isEndOfLine(c));",
"!isEndOfLine(c)",
"isEndOfLine(c)",
"isEndOfLine",
"c",
"{\n\t res.appendCodePoint(c);\n\t c = snext();\n\t }",
"res.appendCodePoint(c)",
"res.appendCodePoint",
"res",
"c",
"c = snext()",
"c",
"snext()",
"snext",
"return res.toString();",
"res.toString()",
"res.toString",
"res",
"public boolean isSpaceChar(int c)\n\t {\n\t if (filter != null)\n\t return filter.isSpaceChar(c);\n\t return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t }",
"isSpaceChar",
"{\n\t if (filter != null)\n\t return filter.isSpaceChar(c);\n\t return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t }",
"if (filter != null)\n\t return filter.isSpaceChar(c);",
"filter != null",
"filter",
"null",
"return filter.isSpaceChar(c);",
"filter.isSpaceChar(c)",
"filter.isSpaceChar",
"filter",
"c",
"return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == '\\t'",
"c == '\\r'",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == ' '",
"c",
"' '",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == '\\t'",
"c",
"'\\t'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"private boolean isEndOfLine(int c)\n\t {\n\t return c == '\\n' || c == '\\r' || c == -1;\n\t }",
"isEndOfLine",
"{\n\t return c == '\\n' || c == '\\r' || c == -1;\n\t }",
"return c == '\\n' || c == '\\r' || c == -1;",
"c == '\\n' || c == '\\r' || c == -1",
"c == '\\n' || c == '\\r' || c == -1",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"public interface SpaceCharFilter\n\t {\n\t public boolean isSpaceChar(int ch);\n\t }",
"SpaceCharFilter",
"public boolean isSpaceChar(int ch);",
"isSpaceChar",
"int ch",
"ch",
"static class Debugger{\n\t\t\tpublic void n(int x) {\n\t\t\t\tout.println(x);\n\t\t\t}\n\t\t\t\n\t\t\tpublic void a(int[] a) {\n\t\t StringBuilder sb = new StringBuilder();\n\t\t for(int i=0;i<a.length;i++) {\n\t\t \t\tsb.append(a[i]+\" \");\n\t\t }\n\t\t out.println(sb.toString());\n\t\t\t}\n\t\t}",
"Debugger",
"public void n(int x) {\n\t\t\t\tout.println(x);\n\t\t\t}",
"n",
"{\n\t\t\t\tout.println(x);\n\t\t\t}",
"out.println(x)",
"out.println",
"out",
"x",
"int x",
"x",
"public void a(int[] a) {\n\t\t StringBuilder sb = new StringBuilder();\n\t\t for(int i=0;i<a.length;i++) {\n\t\t \t\tsb.append(a[i]+\" \");\n\t\t }\n\t\t out.println(sb.toString());\n\t\t\t}",
"a",
"{\n\t\t StringBuilder sb = new StringBuilder();\n\t\t for(int i=0;i<a.length;i++) {\n\t\t \t\tsb.append(a[i]+\" \");\n\t\t }\n\t\t out.println(sb.toString());\n\t\t\t}",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"for(int i=0;i<a.length;i++) {\n\t\t \t\tsb.append(a[i]+\" \");\n\t\t }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"{\n\t\t \t\tsb.append(a[i]+\" \");\n\t\t }",
"{\n\t\t \t\tsb.append(a[i]+\" \");\n\t\t }",
"sb.append(a[i]+\" \")",
"sb.append",
"sb",
"a[i]+\" \"",
"a[i]",
"a",
"i",
"\" \"",
"out.println(sb.toString())",
"out.println",
"out",
"sb.toString()",
"sb.toString",
"sb",
"int[] a",
"a",
"class Pair { \n int x; \n int y; \n // Constructor \n public Pair(int x, int y) \n { \n this.x = x; \n this.y = y; \n } \n\t@Override\n\tpublic boolean equals(Object o) {\n\t if (this == o) return true;\n\t if (!(o instanceof Pair)) return false;\n\t Pair p = (Pair) o;\n\t return x == p.x && y == p.y;\n\t}\t\n\t@Override\n\tpublic int hashCode() {\n\t\treturn (\"\"+x+\"-\"+y).hashCode();\n\t}\t\n}",
"Pair",
"int x;",
"x",
"int y;",
"y",
"// Constructor \n public Pair(int x, int y) \n { \n this.x = x; \n this.y = y; \n }",
"Pair",
"{ \n this.x = x; \n this.y = y; \n }",
"this.x = x",
"this.x",
"this",
"this.x",
"x",
"this.y = y",
"this.y",
"this",
"this.y",
"y",
"int x",
"x",
"int y",
"y",
"@Override\n\tpublic boolean equals(Object o) {\n\t if (this == o) return true;\n\t if (!(o instanceof Pair)) return false;\n\t Pair p = (Pair) o;\n\t return x == p.x && y == p.y;\n\t}",
"equals",
"{\n\t if (this == o) return true;\n\t if (!(o instanceof Pair)) return false;\n\t Pair p = (Pair) o;\n\t return x == p.x && y == p.y;\n\t}",
"if (this == o) return true;",
"this == o",
"this",
"o",
"return true;",
"true",
"if (!(o instanceof Pair)) return false;",
"!(o instanceof Pair)",
"(o instanceof Pair)",
"o",
"Pair",
"return false;",
"false",
"Pair p = (Pair) o;",
"p",
"(Pair) o",
"return x == p.x && y == p.y;",
"x == p.x && y == p.y",
"x == p.x",
"x",
"p.x",
"p",
"p.x",
"y == p.y",
"y",
"p.y",
"p",
"p.y",
"Object o",
"o",
"@Override\n\tpublic int hashCode() {\n\t\treturn (\"\"+x+\"-\"+y).hashCode();\n\t}",
"hashCode",
"{\n\t\treturn (\"\"+x+\"-\"+y).hashCode();\n\t}",
"return (\"\"+x+\"-\"+y).hashCode();",
"(\"\"+x+\"-\"+y).hashCode()",
"(\"\"+x+\"-\"+y).hashCode",
"(\"\"+x+\"-\"+y)",
"\"-\"",
"\"\"+x+\"-\"+y",
"\"\"",
"x",
"\"-\"",
"y",
"public class Main {\n\tstatic long mod = (long) (1e9+7);\n\tstatic InputReader in;\n static PrintWriter out;\n static Debugger deb; \n \n \tpublic static void main(String args[] ) throws NumberFormatException, IOException {\n\t\t\t\n\t\tin = new InputReader(System.in);\n\t out = new PrintWriter(System.out);\n\t deb = new Debugger();\n\t \n\t int[] f= new int[6];\n\t int[] a =in.nextIntArray(5);\n\t for(int i=0;i<5;i++) {\n\t \t\tf[a[i]]++;\n\t }\n\t int ans=0;\n\t for(int i=1;i<=5;i++) {\n\t \t\tif(f[i]==0) {\n\t \t\t\tans = i;\n\t \t\t}\n\t }\n\t out.println(ans);\n\t \n\t out.close();\n\t}\n\n\n\n\n/* TC space\n\n\n */\t\n\t\tstatic class InputReader\n\t {\n\t private final InputStream stream;\n\t private final byte[] buf = new byte[8192];\n\t private int curChar, snumChars;\n\t private SpaceCharFilter filter;\n\n\t public InputReader(InputStream stream){\n\t this.stream = stream;\n\t }\n\t public int snext(){\n if (snumChars == -1) throw new InputMismatchException();\n if (curChar >= snumChars){\n curChar = 0;\n try{\n snumChars = stream.read(buf);\n } catch (IOException e){\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n\t }\n\n\t public int nextInt(){\n\t int c = snext();\n\t while (isSpaceChar(c)){\n\t c = snext();\n\t }\n\t int sgn = 1;\n\t if (c == '-'){\n sgn = -1;\n c = snext();\n\t }\n\t int res = 0;\n\t do{\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = snext();\n\t } while (!isSpaceChar(c));\n\t return res * sgn;\n\t }\n\n\t public long nextLong()\n\t {\n\t int c = snext();\n\t while (isSpaceChar(c))\n\t {\n\t c = snext();\n\t }\n\t int sgn = 1;\n\t if (c == '-')\n\t {\n\t sgn = -1;\n\t c = snext();\n\t }\n\t long res = 0;\n\t do\n\t {\n\t if (c < '0' || c > '9')\n\t throw new InputMismatchException();\n\t res *= 10;\n\t res += c - '0';\n\t c = snext();\n\t } while (!isSpaceChar(c));\n\t return res * sgn;\n\t }\n\n\t public int[] nextIntArray(int n)\n\t {\n\t int a[] = new int[n];\n\t for (int i = 0; i < n; i++)\n\t {\n\t a[i] = nextInt();\n\t }\n\t return a;\n\t }\n\n\t public long[] nextLongArray(int n)\n\t {\n\t long a[] = new long[n];\n\t for (int i = 0; i < n; i++)\n\t {\n\t a[i] = nextLong();\n\t }\n\t return a;\n\t }\n\t \n\t public ArrayList<Integer> nextArrayList(int n){\n\t \t\t\tArrayList<Integer> x = new ArrayList<Integer>();\n\t \t\t\tfor(int i=0;i<n;i++) {\n\t \t\t\t\tint v = in.nextInt();\n\t \t\t\t\tx.add(v);\n\t \t\t\t}\n\t \t\t\treturn x;\n\t }\n\n\t public String readString()\n\t {\n\t int c = snext();\n\t while (isSpaceChar(c))\n\t {\n\t c = snext();\n\t }\n\t StringBuilder res = new StringBuilder();\n\t do\n\t {\n\t res.appendCodePoint(c);\n\t c = snext();\n\t } while (!isSpaceChar(c));\n\t return res.toString();\n\t }\n\n\t public String nextLine()\n\t {\n\t int c = snext();\n\t while (isSpaceChar(c))\n\t c = snext();\n\t StringBuilder res = new StringBuilder();\n\t do\n\t {\n\t res.appendCodePoint(c);\n\t c = snext();\n\t } while (!isEndOfLine(c));\n\t return res.toString();\n\t }\n\n\t public boolean isSpaceChar(int c)\n\t {\n\t if (filter != null)\n\t return filter.isSpaceChar(c);\n\t return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t }\n\n\t private boolean isEndOfLine(int c)\n\t {\n\t return c == '\\n' || c == '\\r' || c == -1;\n\t }\n\n\t public interface SpaceCharFilter\n\t {\n\t public boolean isSpaceChar(int ch);\n\t }\n\n\t }\n\t\t\n\t\tstatic class Debugger{\n\t\t\tpublic void n(int x) {\n\t\t\t\tout.println(x);\n\t\t\t}\n\t\t\t\n\t\t\tpublic void a(int[] a) {\n\t\t StringBuilder sb = new StringBuilder();\n\t\t for(int i=0;i<a.length;i++) {\n\t\t \t\tsb.append(a[i]+\" \");\n\t\t }\n\t\t out.println(sb.toString());\n\t\t\t}\n\t\t}\n\t\n\t\t\n}",
"public class Main {\n\tstatic long mod = (long) (1e9+7);\n\tstatic InputReader in;\n static PrintWriter out;\n static Debugger deb; \n \n \tpublic static void main(String args[] ) throws NumberFormatException, IOException {\n\t\t\t\n\t\tin = new InputReader(System.in);\n\t out = new PrintWriter(System.out);\n\t deb = new Debugger();\n\t \n\t int[] f= new int[6];\n\t int[] a =in.nextIntArray(5);\n\t for(int i=0;i<5;i++) {\n\t \t\tf[a[i]]++;\n\t }\n\t int ans=0;\n\t for(int i=1;i<=5;i++) {\n\t \t\tif(f[i]==0) {\n\t \t\t\tans = i;\n\t \t\t}\n\t }\n\t out.println(ans);\n\t \n\t out.close();\n\t}\n\n\n\n\n/* TC space\n\n\n */\t\n\t\tstatic class InputReader\n\t {\n\t private final InputStream stream;\n\t private final byte[] buf = new byte[8192];\n\t private int curChar, snumChars;\n\t private SpaceCharFilter filter;\n\n\t public InputReader(InputStream stream){\n\t this.stream = stream;\n\t }\n\t public int snext(){\n if (snumChars == -1) throw new InputMismatchException();\n if (curChar >= snumChars){\n curChar = 0;\n try{\n snumChars = stream.read(buf);\n } catch (IOException e){\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n\t }\n\n\t public int nextInt(){\n\t int c = snext();\n\t while (isSpaceChar(c)){\n\t c = snext();\n\t }\n\t int sgn = 1;\n\t if (c == '-'){\n sgn = -1;\n c = snext();\n\t }\n\t int res = 0;\n\t do{\n if (c < '0' || c > '9')\n throw new InputMismatchException();\n res *= 10;\n res += c - '0';\n c = snext();\n\t } while (!isSpaceChar(c));\n\t return res * sgn;\n\t }\n\n\t public long nextLong()\n\t {\n\t int c = snext();\n\t while (isSpaceChar(c))\n\t {\n\t c = snext();\n\t }\n\t int sgn = 1;\n\t if (c == '-')\n\t {\n\t sgn = -1;\n\t c = snext();\n\t }\n\t long res = 0;\n\t do\n\t {\n\t if (c < '0' || c > '9')\n\t throw new InputMismatchException();\n\t res *= 10;\n\t res += c - '0';\n\t c = snext();\n\t } while (!isSpaceChar(c));\n\t return res * sgn;\n\t }\n\n\t public int[] nextIntArray(int n)\n\t {\n\t int a[] = new int[n];\n\t for (int i = 0; i < n; i++)\n\t {\n\t a[i] = nextInt();\n\t }\n\t return a;\n\t }\n\n\t public long[] nextLongArray(int n)\n\t {\n\t long a[] = new long[n];\n\t for (int i = 0; i < n; i++)\n\t {\n\t a[i] = nextLong();\n\t }\n\t return a;\n\t }\n\t \n\t public ArrayList<Integer> nextArrayList(int n){\n\t \t\t\tArrayList<Integer> x = new ArrayList<Integer>();\n\t \t\t\tfor(int i=0;i<n;i++) {\n\t \t\t\t\tint v = in.nextInt();\n\t \t\t\t\tx.add(v);\n\t \t\t\t}\n\t \t\t\treturn x;\n\t }\n\n\t public String readString()\n\t {\n\t int c = snext();\n\t while (isSpaceChar(c))\n\t {\n\t c = snext();\n\t }\n\t StringBuilder res = new StringBuilder();\n\t do\n\t {\n\t res.appendCodePoint(c);\n\t c = snext();\n\t } while (!isSpaceChar(c));\n\t return res.toString();\n\t }\n\n\t public String nextLine()\n\t {\n\t int c = snext();\n\t while (isSpaceChar(c))\n\t c = snext();\n\t StringBuilder res = new StringBuilder();\n\t do\n\t {\n\t res.appendCodePoint(c);\n\t c = snext();\n\t } while (!isEndOfLine(c));\n\t return res.toString();\n\t }\n\n\t public boolean isSpaceChar(int c)\n\t {\n\t if (filter != null)\n\t return filter.isSpaceChar(c);\n\t return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n\t }\n\n\t private boolean isEndOfLine(int c)\n\t {\n\t return c == '\\n' || c == '\\r' || c == -1;\n\t }\n\n\t public interface SpaceCharFilter\n\t {\n\t public boolean isSpaceChar(int ch);\n\t }\n\n\t }\n\t\t\n\t\tstatic class Debugger{\n\t\t\tpublic void n(int x) {\n\t\t\t\tout.println(x);\n\t\t\t}\n\t\t\t\n\t\t\tpublic void a(int[] a) {\n\t\t StringBuilder sb = new StringBuilder();\n\t\t for(int i=0;i<a.length;i++) {\n\t\t \t\tsb.append(a[i]+\" \");\n\t\t }\n\t\t out.println(sb.toString());\n\t\t\t}\n\t\t}\n\t\n\t\t\n}",
"Main"
]
| import java.io.*;
import java.util.*;
import java.math.*;
//Mann Shah [ DAIICT ].
public class Main {
static long mod = (long) (1e9+7);
static InputReader in;
static PrintWriter out;
static Debugger deb;
public static void main(String args[] ) throws NumberFormatException, IOException {
in = new InputReader(System.in);
out = new PrintWriter(System.out);
deb = new Debugger();
int[] f= new int[6];
int[] a =in.nextIntArray(5);
for(int i=0;i<5;i++) {
f[a[i]]++;
}
int ans=0;
for(int i=1;i<=5;i++) {
if(f[i]==0) {
ans = i;
}
}
out.println(ans);
out.close();
}
/* TC space
*/
static class InputReader
{
private final InputStream stream;
private final byte[] buf = new byte[8192];
private int curChar, snumChars;
private SpaceCharFilter filter;
public InputReader(InputStream stream){
this.stream = stream;
}
public int snext(){
if (snumChars == -1) throw new InputMismatchException();
if (curChar >= snumChars){
curChar = 0;
try{
snumChars = stream.read(buf);
} catch (IOException e){
throw new InputMismatchException();
}
if (snumChars <= 0)
return -1;
}
return buf[curChar++];
}
public int nextInt(){
int c = snext();
while (isSpaceChar(c)){
c = snext();
}
int sgn = 1;
if (c == '-'){
sgn = -1;
c = snext();
}
int res = 0;
do{
if (c < '0' || c > '9')
throw new InputMismatchException();
res *= 10;
res += c - '0';
c = snext();
} while (!isSpaceChar(c));
return res * sgn;
}
public long nextLong()
{
int c = snext();
while (isSpaceChar(c))
{
c = snext();
}
int sgn = 1;
if (c == '-')
{
sgn = -1;
c = snext();
}
long res = 0;
do
{
if (c < '0' || c > '9')
throw new InputMismatchException();
res *= 10;
res += c - '0';
c = snext();
} while (!isSpaceChar(c));
return res * sgn;
}
public int[] nextIntArray(int n)
{
int a[] = new int[n];
for (int i = 0; i < n; i++)
{
a[i] = nextInt();
}
return a;
}
public long[] nextLongArray(int n)
{
long a[] = new long[n];
for (int i = 0; i < n; i++)
{
a[i] = nextLong();
}
return a;
}
public ArrayList<Integer> nextArrayList(int n){
ArrayList<Integer> x = new ArrayList<Integer>();
for(int i=0;i<n;i++) {
int v = in.nextInt();
x.add(v);
}
return x;
}
public String readString()
{
int c = snext();
while (isSpaceChar(c))
{
c = snext();
}
StringBuilder res = new StringBuilder();
do
{
res.appendCodePoint(c);
c = snext();
} while (!isSpaceChar(c));
return res.toString();
}
public String nextLine()
{
int c = snext();
while (isSpaceChar(c))
c = snext();
StringBuilder res = new StringBuilder();
do
{
res.appendCodePoint(c);
c = snext();
} while (!isEndOfLine(c));
return res.toString();
}
public boolean isSpaceChar(int c)
{
if (filter != null)
return filter.isSpaceChar(c);
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
private boolean isEndOfLine(int c)
{
return c == '\n' || c == '\r' || c == -1;
}
public interface SpaceCharFilter
{
public boolean isSpaceChar(int ch);
}
}
static class Debugger{
public void n(int x) {
out.println(x);
}
public void a(int[] a) {
StringBuilder sb = new StringBuilder();
for(int i=0;i<a.length;i++) {
sb.append(a[i]+" ");
}
out.println(sb.toString());
}
}
}
class Pair {
int x;
int y;
// Constructor
public Pair(int x, int y)
{
this.x = x;
this.y = y;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof Pair)) return false;
Pair p = (Pair) o;
return x == p.x && y == p.y;
}
@Override
public int hashCode() {
return (""+x+"-"+y).hashCode();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13,
12,
13,
30,
14,
2,
4,
18,
13,
17,
30,
29,
17,
41,
13,
20,
29,
4,
18,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
17,
0,
13,
2,
13,
13,
14,
2,
13,
17,
30,
0,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
17,
14,
2,
13,
17,
29,
17,
14,
2,
13,
17,
30,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
0,
13,
13,
0,
13,
2,
13,
17,
30,
0,
13,
13,
40,
13,
29,
13,
30,
0,
13,
4,
13,
13,
13,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
0,
13,
4,
13,
13,
13,
0,
13,
2,
13,
17,
30,
0,
13,
4,
13,
13,
13,
40,
13,
29,
4,
13,
13,
13,
23,
13,
23,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
213,
8
],
[
213,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
24,
25
],
[
24,
26
],
[
19,
27
],
[
27,
28
],
[
28,
29
],
[
19,
30
],
[
31,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
11,
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
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
9,
67
],
[
67,
68
],
[
213,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
73,
77
],
[
72,
78
],
[
78,
79
],
[
79,
80
],
[
71,
81
],
[
81,
82
],
[
81,
83
],
[
71,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
69,
90
],
[
90,
91
],
[
213,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
100,
102
],
[
94,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
94,
111
],
[
111,
112
],
[
92,
113
],
[
113,
114
],
[
92,
115
],
[
115,
116
],
[
213,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
127,
128
],
[
119,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
139,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
145,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
151,
153
],
[
139,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
158,
159
],
[
133,
160
],
[
160,
161
],
[
129,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
165,
167
],
[
165,
168
],
[
162,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
169,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
175,
179
],
[
174,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
183,
185
],
[
183,
186
],
[
180,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
189,
191
],
[
174,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
195,
197
],
[
195,
198
],
[
192,
199
],
[
199,
200
],
[
162,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
202,
205
],
[
117,
206
],
[
206,
207
],
[
117,
208
],
[
208,
209
],
[
117,
210
],
[
210,
211
],
[
0,
212
],
[
212,
213
],
[
212,
214
]
]
| [
"\n\nimport java.io.IOException;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint[] input = new int[5];\n\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tinput[i] = scan.nextInt();\n\t\t}\n\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tif (input[i] == 0) {\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t}\n\t\t}\n\n\t}\n\n\t//***********************以下共通関数************************************************\n\t/**\n\t * 文字列を反転して返す\n\t * @param pStr 文字列\n\t * @return 反転した文字列\n\t */\n\tpublic static String myReverse(String pStr) {\n\t\tif (pStr.length() < 1) {\n\t\t\treturn \"\";\n\t\t}\n\n\t\tStringBuffer sb = new StringBuffer(pStr);\n\t\treturn sb.reverse().toString();\n\t}\n\n\t/**\n\t * 余りを求める。\n\t * @param a\n\t * @param b\n\t * @return 余り。余りがマイナスの時はプラスで返す。\n\t */\n\tpublic static long myMod(long a, long b) {\n\t\tlong ret = 0;\n\n\t\tret = a % b;\n\n\t\tif (ret < 0) {\n\t\t\tret += b;\n\t\t}\n\n\t\treturn ret;\n\t}\n\n\t/**\n\t * 乗数を求める ※mod対応\n\t * @param kisu 基数\n\t * @param josu 乗数\n\t * @param primeNumMod_0 法 mod値 使わない場合は「0」\n\t * @return\n\t */\n\tpublic static long myPowWithMod(long kisu, long josu, long primeNumMod_0) {\n\n\t\tlong ans = 1;\n\n\t\t//乗数が0の場合→1\n\t\tif (josu == 0)\n\t\t\treturn 1;\n\n\t\tif (primeNumMod_0 == 0) {\n\t\t\t//modを使わないとき\n\n\t\t\twhile (josu > 0) {\n\n\t\t\t\tif (josu % 2 == 0) {\n\t\t\t\t\t//累乗が偶数の時\n\n\t\t\t\t\tkisu *= kisu;\n\t\t\t\t\tjosu = josu / 2;\n\t\t\t\t} else {\n\t\t\t\t\t//累乗が奇数の時\n\t\t\t\t\tans *= kisu;\n\t\t\t\t\tjosu--;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn ans;\n\n\t\t} else {\n\t\t\t//modを使うとき\n\n\t\t\t//初めに桁を落とす\n\t\t\tkisu = myMod(kisu, primeNumMod_0);\n\n\t\t\twhile (josu > 0) {\n\n\t\t\t\tif (josu % 2 == 0) {\n\t\t\t\t\t//累乗が偶数の時\n\n\t\t\t\t\tkisu *= myMod(kisu, primeNumMod_0);\n\t\t\t\t\tjosu = josu / 2;\n\n\t\t\t\t} else {\n\t\t\t\t\t//累乗が奇数の時\n\t\t\t\t\tans *= myMod(kisu, primeNumMod_0);\n\t\t\t\t\tjosu--;\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn myMod(ans, primeNumMod_0);\n\n\t\t}\n\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 IOException {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint[] input = new int[5];\n\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tinput[i] = scan.nextInt();\n\t\t}\n\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tif (input[i] == 0) {\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t}\n\t\t}\n\n\t}\n\n\t//***********************以下共通関数************************************************\n\t/**\n\t * 文字列を反転して返す\n\t * @param pStr 文字列\n\t * @return 反転した文字列\n\t */\n\tpublic static String myReverse(String pStr) {\n\t\tif (pStr.length() < 1) {\n\t\t\treturn \"\";\n\t\t}\n\n\t\tStringBuffer sb = new StringBuffer(pStr);\n\t\treturn sb.reverse().toString();\n\t}\n\n\t/**\n\t * 余りを求める。\n\t * @param a\n\t * @param b\n\t * @return 余り。余りがマイナスの時はプラスで返す。\n\t */\n\tpublic static long myMod(long a, long b) {\n\t\tlong ret = 0;\n\n\t\tret = a % b;\n\n\t\tif (ret < 0) {\n\t\t\tret += b;\n\t\t}\n\n\t\treturn ret;\n\t}\n\n\t/**\n\t * 乗数を求める ※mod対応\n\t * @param kisu 基数\n\t * @param josu 乗数\n\t * @param primeNumMod_0 法 mod値 使わない場合は「0」\n\t * @return\n\t */\n\tpublic static long myPowWithMod(long kisu, long josu, long primeNumMod_0) {\n\n\t\tlong ans = 1;\n\n\t\t//乗数が0の場合→1\n\t\tif (josu == 0)\n\t\t\treturn 1;\n\n\t\tif (primeNumMod_0 == 0) {\n\t\t\t//modを使わないとき\n\n\t\t\twhile (josu > 0) {\n\n\t\t\t\tif (josu % 2 == 0) {\n\t\t\t\t\t//累乗が偶数の時\n\n\t\t\t\t\tkisu *= kisu;\n\t\t\t\t\tjosu = josu / 2;\n\t\t\t\t} else {\n\t\t\t\t\t//累乗が奇数の時\n\t\t\t\t\tans *= kisu;\n\t\t\t\t\tjosu--;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn ans;\n\n\t\t} else {\n\t\t\t//modを使うとき\n\n\t\t\t//初めに桁を落とす\n\t\t\tkisu = myMod(kisu, primeNumMod_0);\n\n\t\t\twhile (josu > 0) {\n\n\t\t\t\tif (josu % 2 == 0) {\n\t\t\t\t\t//累乗が偶数の時\n\n\t\t\t\t\tkisu *= myMod(kisu, primeNumMod_0);\n\t\t\t\t\tjosu = josu / 2;\n\n\t\t\t\t} else {\n\t\t\t\t\t//累乗が奇数の時\n\t\t\t\t\tans *= myMod(kisu, primeNumMod_0);\n\t\t\t\t\tjosu--;\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn myMod(ans, primeNumMod_0);\n\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint[] input = new int[5];\n\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tinput[i] = scan.nextInt();\n\t\t}\n\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tif (input[i] == 0) {\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t}\n\t\t}\n\n\t}",
"main",
"{\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint[] input = new int[5];\n\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tinput[i] = scan.nextInt();\n\t\t}\n\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tif (input[i] == 0) {\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t}\n\t\t}\n\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int[] input = new int[5];",
"input",
"new int[5]",
"5",
"for (int i = 0; i < 5; i++) {\n\t\t\tinput[i] = scan.nextInt();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n\t\t\tinput[i] = scan.nextInt();\n\t\t}",
"{\n\t\t\tinput[i] = scan.nextInt();\n\t\t}",
"input[i] = scan.nextInt()",
"input[i]",
"input",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int i = 0; i < 5; i++) {\n\t\t\tif (input[i] == 0) {\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n\t\t\tif (input[i] == 0) {\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (input[i] == 0) {\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t}\n\t\t}",
"if (input[i] == 0) {\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t}",
"input[i] == 0",
"input[i]",
"input",
"i",
"0",
"{\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t}",
"System.out.println(i + 1)",
"System.out.println",
"System.out",
"System",
"System.out",
"i + 1",
"i",
"1",
"String[] args",
"args",
"/**\n\t * 文字列を反転して返す\n\t * @param pStr 文字列\n\t * @return 反転した文字列\n\t */\n\tpublic static String myReverse(String pStr) {\n\t\tif (pStr.length() < 1) {\n\t\t\treturn \"\";\n\t\t}\n\n\t\tStringBuffer sb = new StringBuffer(pStr);\n\t\treturn sb.reverse().toString();\n\t}",
"myReverse",
"{\n\t\tif (pStr.length() < 1) {\n\t\t\treturn \"\";\n\t\t}\n\n\t\tStringBuffer sb = new StringBuffer(pStr);\n\t\treturn sb.reverse().toString();\n\t}",
"if (pStr.length() < 1) {\n\t\t\treturn \"\";\n\t\t}",
"pStr.length() < 1",
"pStr.length()",
"pStr.length",
"pStr",
"1",
"{\n\t\t\treturn \"\";\n\t\t}",
"return \"\";",
"\"\"",
"StringBuffer sb = new StringBuffer(pStr);",
"sb",
"new StringBuffer(pStr)",
"return sb.reverse().toString();",
"sb.reverse().toString()",
"sb.reverse().toString",
"sb.reverse()",
"sb.reverse",
"sb",
"String pStr",
"pStr",
"/**\n\t * 余りを求める。\n\t * @param a\n\t * @param b\n\t * @return 余り。余りがマイナスの時はプラスで返す。\n\t */\n\tpublic static long myMod(long a, long b) {\n\t\tlong ret = 0;\n\n\t\tret = a % b;\n\n\t\tif (ret < 0) {\n\t\t\tret += b;\n\t\t}\n\n\t\treturn ret;\n\t}",
"myMod",
"{\n\t\tlong ret = 0;\n\n\t\tret = a % b;\n\n\t\tif (ret < 0) {\n\t\t\tret += b;\n\t\t}\n\n\t\treturn ret;\n\t}",
"long ret = 0;",
"ret",
"0",
"ret = a % b",
"ret",
"a % b",
"a",
"b",
"if (ret < 0) {\n\t\t\tret += b;\n\t\t}",
"ret < 0",
"ret",
"0",
"{\n\t\t\tret += b;\n\t\t}",
"ret += b",
"ret",
"b",
"return ret;",
"ret",
"long a",
"a",
"long b",
"b",
"/**\n\t * 乗数を求める ※mod対応\n\t * @param kisu 基数\n\t * @param josu 乗数\n\t * @param primeNumMod_0 法 mod値 使わない場合は「0」\n\t * @return\n\t */\n\tpublic static long myPowWithMod(long kisu, long josu, long primeNumMod_0) {\n\n\t\tlong ans = 1;\n\n\t\t//乗数が0の場合→1\n\t\tif (josu == 0)\n\t\t\treturn 1;\n\n\t\tif (primeNumMod_0 == 0) {\n\t\t\t//modを使わないとき\n\n\t\t\twhile (josu > 0) {\n\n\t\t\t\tif (josu % 2 == 0) {\n\t\t\t\t\t//累乗が偶数の時\n\n\t\t\t\t\tkisu *= kisu;\n\t\t\t\t\tjosu = josu / 2;\n\t\t\t\t} else {\n\t\t\t\t\t//累乗が奇数の時\n\t\t\t\t\tans *= kisu;\n\t\t\t\t\tjosu--;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn ans;\n\n\t\t} else {\n\t\t\t//modを使うとき\n\n\t\t\t//初めに桁を落とす\n\t\t\tkisu = myMod(kisu, primeNumMod_0);\n\n\t\t\twhile (josu > 0) {\n\n\t\t\t\tif (josu % 2 == 0) {\n\t\t\t\t\t//累乗が偶数の時\n\n\t\t\t\t\tkisu *= myMod(kisu, primeNumMod_0);\n\t\t\t\t\tjosu = josu / 2;\n\n\t\t\t\t} else {\n\t\t\t\t\t//累乗が奇数の時\n\t\t\t\t\tans *= myMod(kisu, primeNumMod_0);\n\t\t\t\t\tjosu--;\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn myMod(ans, primeNumMod_0);\n\n\t\t}\n\n\t}",
"myPowWithMod",
"{\n\n\t\tlong ans = 1;\n\n\t\t//乗数が0の場合→1\n\t\tif (josu == 0)\n\t\t\treturn 1;\n\n\t\tif (primeNumMod_0 == 0) {\n\t\t\t//modを使わないとき\n\n\t\t\twhile (josu > 0) {\n\n\t\t\t\tif (josu % 2 == 0) {\n\t\t\t\t\t//累乗が偶数の時\n\n\t\t\t\t\tkisu *= kisu;\n\t\t\t\t\tjosu = josu / 2;\n\t\t\t\t} else {\n\t\t\t\t\t//累乗が奇数の時\n\t\t\t\t\tans *= kisu;\n\t\t\t\t\tjosu--;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn ans;\n\n\t\t} else {\n\t\t\t//modを使うとき\n\n\t\t\t//初めに桁を落とす\n\t\t\tkisu = myMod(kisu, primeNumMod_0);\n\n\t\t\twhile (josu > 0) {\n\n\t\t\t\tif (josu % 2 == 0) {\n\t\t\t\t\t//累乗が偶数の時\n\n\t\t\t\t\tkisu *= myMod(kisu, primeNumMod_0);\n\t\t\t\t\tjosu = josu / 2;\n\n\t\t\t\t} else {\n\t\t\t\t\t//累乗が奇数の時\n\t\t\t\t\tans *= myMod(kisu, primeNumMod_0);\n\t\t\t\t\tjosu--;\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn myMod(ans, primeNumMod_0);\n\n\t\t}\n\n\t}",
"long ans = 1;",
"ans",
"1",
"if (josu == 0)\n\t\t\treturn 1;",
"josu == 0",
"josu",
"0",
"return 1;",
"1",
"if (primeNumMod_0 == 0) {\n\t\t\t//modを使わないとき\n\n\t\t\twhile (josu > 0) {\n\n\t\t\t\tif (josu % 2 == 0) {\n\t\t\t\t\t//累乗が偶数の時\n\n\t\t\t\t\tkisu *= kisu;\n\t\t\t\t\tjosu = josu / 2;\n\t\t\t\t} else {\n\t\t\t\t\t//累乗が奇数の時\n\t\t\t\t\tans *= kisu;\n\t\t\t\t\tjosu--;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn ans;\n\n\t\t} else {\n\t\t\t//modを使うとき\n\n\t\t\t//初めに桁を落とす\n\t\t\tkisu = myMod(kisu, primeNumMod_0);\n\n\t\t\twhile (josu > 0) {\n\n\t\t\t\tif (josu % 2 == 0) {\n\t\t\t\t\t//累乗が偶数の時\n\n\t\t\t\t\tkisu *= myMod(kisu, primeNumMod_0);\n\t\t\t\t\tjosu = josu / 2;\n\n\t\t\t\t} else {\n\t\t\t\t\t//累乗が奇数の時\n\t\t\t\t\tans *= myMod(kisu, primeNumMod_0);\n\t\t\t\t\tjosu--;\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn myMod(ans, primeNumMod_0);\n\n\t\t}",
"primeNumMod_0 == 0",
"primeNumMod_0",
"0",
"{\n\t\t\t//modを使わないとき\n\n\t\t\twhile (josu > 0) {\n\n\t\t\t\tif (josu % 2 == 0) {\n\t\t\t\t\t//累乗が偶数の時\n\n\t\t\t\t\tkisu *= kisu;\n\t\t\t\t\tjosu = josu / 2;\n\t\t\t\t} else {\n\t\t\t\t\t//累乗が奇数の時\n\t\t\t\t\tans *= kisu;\n\t\t\t\t\tjosu--;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn ans;\n\n\t\t}",
"while (josu > 0) {\n\n\t\t\t\tif (josu % 2 == 0) {\n\t\t\t\t\t//累乗が偶数の時\n\n\t\t\t\t\tkisu *= kisu;\n\t\t\t\t\tjosu = josu / 2;\n\t\t\t\t} else {\n\t\t\t\t\t//累乗が奇数の時\n\t\t\t\t\tans *= kisu;\n\t\t\t\t\tjosu--;\n\t\t\t\t}\n\t\t\t}",
"josu > 0",
"josu",
"0",
"{\n\n\t\t\t\tif (josu % 2 == 0) {\n\t\t\t\t\t//累乗が偶数の時\n\n\t\t\t\t\tkisu *= kisu;\n\t\t\t\t\tjosu = josu / 2;\n\t\t\t\t} else {\n\t\t\t\t\t//累乗が奇数の時\n\t\t\t\t\tans *= kisu;\n\t\t\t\t\tjosu--;\n\t\t\t\t}\n\t\t\t}",
"if (josu % 2 == 0) {\n\t\t\t\t\t//累乗が偶数の時\n\n\t\t\t\t\tkisu *= kisu;\n\t\t\t\t\tjosu = josu / 2;\n\t\t\t\t} else {\n\t\t\t\t\t//累乗が奇数の時\n\t\t\t\t\tans *= kisu;\n\t\t\t\t\tjosu--;\n\t\t\t\t}",
"josu % 2 == 0",
"josu % 2",
"josu",
"2",
"0",
"{\n\t\t\t\t\t//累乗が偶数の時\n\n\t\t\t\t\tkisu *= kisu;\n\t\t\t\t\tjosu = josu / 2;\n\t\t\t\t}",
"kisu *= kisu",
"kisu",
"kisu",
"josu = josu / 2",
"josu",
"josu / 2",
"josu",
"2",
"{\n\t\t\t\t\t//累乗が奇数の時\n\t\t\t\t\tans *= kisu;\n\t\t\t\t\tjosu--;\n\t\t\t\t}",
"ans *= kisu",
"ans",
"kisu",
"josu--",
"josu",
"return ans;",
"ans",
"{\n\t\t\t//modを使うとき\n\n\t\t\t//初めに桁を落とす\n\t\t\tkisu = myMod(kisu, primeNumMod_0);\n\n\t\t\twhile (josu > 0) {\n\n\t\t\t\tif (josu % 2 == 0) {\n\t\t\t\t\t//累乗が偶数の時\n\n\t\t\t\t\tkisu *= myMod(kisu, primeNumMod_0);\n\t\t\t\t\tjosu = josu / 2;\n\n\t\t\t\t} else {\n\t\t\t\t\t//累乗が奇数の時\n\t\t\t\t\tans *= myMod(kisu, primeNumMod_0);\n\t\t\t\t\tjosu--;\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn myMod(ans, primeNumMod_0);\n\n\t\t}",
"kisu = myMod(kisu, primeNumMod_0)",
"kisu",
"myMod(kisu, primeNumMod_0)",
"myMod",
"kisu",
"primeNumMod_0",
"while (josu > 0) {\n\n\t\t\t\tif (josu % 2 == 0) {\n\t\t\t\t\t//累乗が偶数の時\n\n\t\t\t\t\tkisu *= myMod(kisu, primeNumMod_0);\n\t\t\t\t\tjosu = josu / 2;\n\n\t\t\t\t} else {\n\t\t\t\t\t//累乗が奇数の時\n\t\t\t\t\tans *= myMod(kisu, primeNumMod_0);\n\t\t\t\t\tjosu--;\n\n\t\t\t\t}\n\t\t\t}",
"josu > 0",
"josu",
"0",
"{\n\n\t\t\t\tif (josu % 2 == 0) {\n\t\t\t\t\t//累乗が偶数の時\n\n\t\t\t\t\tkisu *= myMod(kisu, primeNumMod_0);\n\t\t\t\t\tjosu = josu / 2;\n\n\t\t\t\t} else {\n\t\t\t\t\t//累乗が奇数の時\n\t\t\t\t\tans *= myMod(kisu, primeNumMod_0);\n\t\t\t\t\tjosu--;\n\n\t\t\t\t}\n\t\t\t}",
"if (josu % 2 == 0) {\n\t\t\t\t\t//累乗が偶数の時\n\n\t\t\t\t\tkisu *= myMod(kisu, primeNumMod_0);\n\t\t\t\t\tjosu = josu / 2;\n\n\t\t\t\t} else {\n\t\t\t\t\t//累乗が奇数の時\n\t\t\t\t\tans *= myMod(kisu, primeNumMod_0);\n\t\t\t\t\tjosu--;\n\n\t\t\t\t}",
"josu % 2 == 0",
"josu % 2",
"josu",
"2",
"0",
"{\n\t\t\t\t\t//累乗が偶数の時\n\n\t\t\t\t\tkisu *= myMod(kisu, primeNumMod_0);\n\t\t\t\t\tjosu = josu / 2;\n\n\t\t\t\t}",
"kisu *= myMod(kisu, primeNumMod_0)",
"kisu",
"myMod(kisu, primeNumMod_0)",
"myMod",
"kisu",
"primeNumMod_0",
"josu = josu / 2",
"josu",
"josu / 2",
"josu",
"2",
"{\n\t\t\t\t\t//累乗が奇数の時\n\t\t\t\t\tans *= myMod(kisu, primeNumMod_0);\n\t\t\t\t\tjosu--;\n\n\t\t\t\t}",
"ans *= myMod(kisu, primeNumMod_0)",
"ans",
"myMod(kisu, primeNumMod_0)",
"myMod",
"kisu",
"primeNumMod_0",
"josu--",
"josu",
"return myMod(ans, primeNumMod_0);",
"myMod(ans, primeNumMod_0)",
"myMod",
"ans",
"primeNumMod_0",
"long kisu",
"kisu",
"long josu",
"josu",
"long primeNumMod_0",
"primeNumMod_0",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint[] input = new int[5];\n\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tinput[i] = scan.nextInt();\n\t\t}\n\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tif (input[i] == 0) {\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t}\n\t\t}\n\n\t}\n\n\t//***********************以下共通関数************************************************\n\t/**\n\t * 文字列を反転して返す\n\t * @param pStr 文字列\n\t * @return 反転した文字列\n\t */\n\tpublic static String myReverse(String pStr) {\n\t\tif (pStr.length() < 1) {\n\t\t\treturn \"\";\n\t\t}\n\n\t\tStringBuffer sb = new StringBuffer(pStr);\n\t\treturn sb.reverse().toString();\n\t}\n\n\t/**\n\t * 余りを求める。\n\t * @param a\n\t * @param b\n\t * @return 余り。余りがマイナスの時はプラスで返す。\n\t */\n\tpublic static long myMod(long a, long b) {\n\t\tlong ret = 0;\n\n\t\tret = a % b;\n\n\t\tif (ret < 0) {\n\t\t\tret += b;\n\t\t}\n\n\t\treturn ret;\n\t}\n\n\t/**\n\t * 乗数を求める ※mod対応\n\t * @param kisu 基数\n\t * @param josu 乗数\n\t * @param primeNumMod_0 法 mod値 使わない場合は「0」\n\t * @return\n\t */\n\tpublic static long myPowWithMod(long kisu, long josu, long primeNumMod_0) {\n\n\t\tlong ans = 1;\n\n\t\t//乗数が0の場合→1\n\t\tif (josu == 0)\n\t\t\treturn 1;\n\n\t\tif (primeNumMod_0 == 0) {\n\t\t\t//modを使わないとき\n\n\t\t\twhile (josu > 0) {\n\n\t\t\t\tif (josu % 2 == 0) {\n\t\t\t\t\t//累乗が偶数の時\n\n\t\t\t\t\tkisu *= kisu;\n\t\t\t\t\tjosu = josu / 2;\n\t\t\t\t} else {\n\t\t\t\t\t//累乗が奇数の時\n\t\t\t\t\tans *= kisu;\n\t\t\t\t\tjosu--;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn ans;\n\n\t\t} else {\n\t\t\t//modを使うとき\n\n\t\t\t//初めに桁を落とす\n\t\t\tkisu = myMod(kisu, primeNumMod_0);\n\n\t\t\twhile (josu > 0) {\n\n\t\t\t\tif (josu % 2 == 0) {\n\t\t\t\t\t//累乗が偶数の時\n\n\t\t\t\t\tkisu *= myMod(kisu, primeNumMod_0);\n\t\t\t\t\tjosu = josu / 2;\n\n\t\t\t\t} else {\n\t\t\t\t\t//累乗が奇数の時\n\t\t\t\t\tans *= myMod(kisu, primeNumMod_0);\n\t\t\t\t\tjosu--;\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn myMod(ans, primeNumMod_0);\n\n\t\t}\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint[] input = new int[5];\n\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tinput[i] = scan.nextInt();\n\t\t}\n\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tif (input[i] == 0) {\n\t\t\t\tSystem.out.println(i + 1);\n\t\t\t}\n\t\t}\n\n\t}\n\n\t//***********************以下共通関数************************************************\n\t/**\n\t * 文字列を反転して返す\n\t * @param pStr 文字列\n\t * @return 反転した文字列\n\t */\n\tpublic static String myReverse(String pStr) {\n\t\tif (pStr.length() < 1) {\n\t\t\treturn \"\";\n\t\t}\n\n\t\tStringBuffer sb = new StringBuffer(pStr);\n\t\treturn sb.reverse().toString();\n\t}\n\n\t/**\n\t * 余りを求める。\n\t * @param a\n\t * @param b\n\t * @return 余り。余りがマイナスの時はプラスで返す。\n\t */\n\tpublic static long myMod(long a, long b) {\n\t\tlong ret = 0;\n\n\t\tret = a % b;\n\n\t\tif (ret < 0) {\n\t\t\tret += b;\n\t\t}\n\n\t\treturn ret;\n\t}\n\n\t/**\n\t * 乗数を求める ※mod対応\n\t * @param kisu 基数\n\t * @param josu 乗数\n\t * @param primeNumMod_0 法 mod値 使わない場合は「0」\n\t * @return\n\t */\n\tpublic static long myPowWithMod(long kisu, long josu, long primeNumMod_0) {\n\n\t\tlong ans = 1;\n\n\t\t//乗数が0の場合→1\n\t\tif (josu == 0)\n\t\t\treturn 1;\n\n\t\tif (primeNumMod_0 == 0) {\n\t\t\t//modを使わないとき\n\n\t\t\twhile (josu > 0) {\n\n\t\t\t\tif (josu % 2 == 0) {\n\t\t\t\t\t//累乗が偶数の時\n\n\t\t\t\t\tkisu *= kisu;\n\t\t\t\t\tjosu = josu / 2;\n\t\t\t\t} else {\n\t\t\t\t\t//累乗が奇数の時\n\t\t\t\t\tans *= kisu;\n\t\t\t\t\tjosu--;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn ans;\n\n\t\t} else {\n\t\t\t//modを使うとき\n\n\t\t\t//初めに桁を落とす\n\t\t\tkisu = myMod(kisu, primeNumMod_0);\n\n\t\t\twhile (josu > 0) {\n\n\t\t\t\tif (josu % 2 == 0) {\n\t\t\t\t\t//累乗が偶数の時\n\n\t\t\t\t\tkisu *= myMod(kisu, primeNumMod_0);\n\t\t\t\t\tjosu = josu / 2;\n\n\t\t\t\t} else {\n\t\t\t\t\t//累乗が奇数の時\n\t\t\t\t\tans *= myMod(kisu, primeNumMod_0);\n\t\t\t\t\tjosu--;\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn myMod(ans, primeNumMod_0);\n\n\t\t}\n\n\t}\n\n}",
"Main"
]
|
import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
Scanner scan = new Scanner(System.in);
int[] input = new int[5];
for (int i = 0; i < 5; i++) {
input[i] = scan.nextInt();
}
for (int i = 0; i < 5; i++) {
if (input[i] == 0) {
System.out.println(i + 1);
}
}
}
//***********************以下共通関数************************************************
/**
* 文字列を反転して返す
* @param pStr 文字列
* @return 反転した文字列
*/
public static String myReverse(String pStr) {
if (pStr.length() < 1) {
return "";
}
StringBuffer sb = new StringBuffer(pStr);
return sb.reverse().toString();
}
/**
* 余りを求める。
* @param a
* @param b
* @return 余り。余りがマイナスの時はプラスで返す。
*/
public static long myMod(long a, long b) {
long ret = 0;
ret = a % b;
if (ret < 0) {
ret += b;
}
return ret;
}
/**
* 乗数を求める ※mod対応
* @param kisu 基数
* @param josu 乗数
* @param primeNumMod_0 法 mod値 使わない場合は「0」
* @return
*/
public static long myPowWithMod(long kisu, long josu, long primeNumMod_0) {
long ans = 1;
//乗数が0の場合→1
if (josu == 0)
return 1;
if (primeNumMod_0 == 0) {
//modを使わないとき
while (josu > 0) {
if (josu % 2 == 0) {
//累乗が偶数の時
kisu *= kisu;
josu = josu / 2;
} else {
//累乗が奇数の時
ans *= kisu;
josu--;
}
}
return ans;
} else {
//modを使うとき
//初めに桁を落とす
kisu = myMod(kisu, primeNumMod_0);
while (josu > 0) {
if (josu % 2 == 0) {
//累乗が偶数の時
kisu *= myMod(kisu, primeNumMod_0);
josu = josu / 2;
} else {
//累乗が奇数の時
ans *= myMod(kisu, primeNumMod_0);
josu--;
}
}
return myMod(ans, primeNumMod_0);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
17,
41,
13,
20,
17,
42,
2,
13,
17,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
40,
13,
0,
13,
18,
13,
17,
0,
13,
18,
13,
17,
0,
13,
18,
13,
17,
0,
13,
18,
13,
17,
0,
13,
18,
13,
17,
4,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
17,
42,
2,
13,
17,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
17,
3,
40,
13,
29,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
130,
8
],
[
130,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
11,
24
],
[
24,
25
],
[
11,
26
],
[
26,
27
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
11,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
11,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
38,
42
],
[
11,
43
],
[
43,
44
],
[
43,
45
],
[
11,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
59,
60
],
[
59,
61
],
[
51,
62
],
[
62,
63
],
[
11,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
66,
68
],
[
11,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
11,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
76,
78
],
[
11,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
81,
83
],
[
11,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
86,
88
],
[
11,
89
],
[
89,
90
],
[
89,
91
],
[
11,
92
],
[
92,
93
],
[
93,
94
],
[
9,
95
],
[
95,
96
],
[
130,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
108,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
120,
121
],
[
120,
122
],
[
114,
123
],
[
107,
124
],
[
124,
125
],
[
99,
126
],
[
97,
127
],
[
127,
128
],
[
0,
129
],
[
129,
130
],
[
129,
131
]
]
| [
"import java.util.Scanner;\nimport java.util.ArrayList;\n \npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n ArrayList<String> list = new ArrayList<String>();\n int x_1,x_2,x_3,x_4,x_5;\n int i = 0;\n String an = scan.nextLine();\n String atai[] = an.split(\" \",0);\n int num[] = new int[5];\n while(i < 5){\n num[i] = Integer.parseInt(atai[i]);\n i++;\n }\n x_1 = num[0];\n x_2 = num[1];\n x_3 = num[2];\n x_4 = num[3];\n x_5 = num[4];\n// System.out.println(A+\",\"+B+\",\"+H+\",\"+M);\n check(num);\n scan.close();\n }\n \n public static void check(int[] num){\n //System.out.println(num[0]);\n int i = 0;\n while(i<5){\n if(num[i] == 0){\n System.out.println(i+1);\n break;\n }\n i++;\n }\n return;\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n ArrayList<String> list = new ArrayList<String>();\n int x_1,x_2,x_3,x_4,x_5;\n int i = 0;\n String an = scan.nextLine();\n String atai[] = an.split(\" \",0);\n int num[] = new int[5];\n while(i < 5){\n num[i] = Integer.parseInt(atai[i]);\n i++;\n }\n x_1 = num[0];\n x_2 = num[1];\n x_3 = num[2];\n x_4 = num[3];\n x_5 = num[4];\n// System.out.println(A+\",\"+B+\",\"+H+\",\"+M);\n check(num);\n scan.close();\n }\n \n public static void check(int[] num){\n //System.out.println(num[0]);\n int i = 0;\n while(i<5){\n if(num[i] == 0){\n System.out.println(i+1);\n break;\n }\n i++;\n }\n return;\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n ArrayList<String> list = new ArrayList<String>();\n int x_1,x_2,x_3,x_4,x_5;\n int i = 0;\n String an = scan.nextLine();\n String atai[] = an.split(\" \",0);\n int num[] = new int[5];\n while(i < 5){\n num[i] = Integer.parseInt(atai[i]);\n i++;\n }\n x_1 = num[0];\n x_2 = num[1];\n x_3 = num[2];\n x_4 = num[3];\n x_5 = num[4];\n// System.out.println(A+\",\"+B+\",\"+H+\",\"+M);\n check(num);\n scan.close();\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n ArrayList<String> list = new ArrayList<String>();\n int x_1,x_2,x_3,x_4,x_5;\n int i = 0;\n String an = scan.nextLine();\n String atai[] = an.split(\" \",0);\n int num[] = new int[5];\n while(i < 5){\n num[i] = Integer.parseInt(atai[i]);\n i++;\n }\n x_1 = num[0];\n x_2 = num[1];\n x_3 = num[2];\n x_4 = num[3];\n x_5 = num[4];\n// System.out.println(A+\",\"+B+\",\"+H+\",\"+M);\n check(num);\n scan.close();\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"ArrayList<String> list = new ArrayList<String>();",
"list",
"new ArrayList<String>()",
"int x_1",
"x_1",
"x_2",
"x_2",
"x_3",
"x_3",
"x_4",
"x_4",
"x_5;",
"x_5",
"int i = 0;",
"i",
"0",
"String an = scan.nextLine();",
"an",
"scan.nextLine()",
"scan.nextLine",
"scan",
"String atai[] = an.split(\" \",0);",
"atai",
"an.split(\" \",0)",
"an.split",
"an",
"\" \"",
"0",
"int num[] = new int[5];",
"num",
"new int[5]",
"5",
"while(i < 5){\n num[i] = Integer.parseInt(atai[i]);\n i++;\n }",
"i < 5",
"i",
"5",
"{\n num[i] = Integer.parseInt(atai[i]);\n i++;\n }",
"num[i] = Integer.parseInt(atai[i])",
"num[i]",
"num",
"i",
"Integer.parseInt(atai[i])",
"Integer.parseInt",
"Integer",
"atai[i]",
"atai",
"i",
"i++",
"i",
"x_1 = num[0]",
"x_1",
"num[0]",
"num",
"0",
"x_2 = num[1]",
"x_2",
"num[1]",
"num",
"1",
"x_3 = num[2]",
"x_3",
"num[2]",
"num",
"2",
"x_4 = num[3]",
"x_4",
"num[3]",
"num",
"3",
"x_5 = num[4]",
"x_5",
"num[4]",
"num",
"4",
"check(num)",
"check",
"num",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public static void check(int[] num){\n //System.out.println(num[0]);\n int i = 0;\n while(i<5){\n if(num[i] == 0){\n System.out.println(i+1);\n break;\n }\n i++;\n }\n return;\n }",
"check",
"{\n //System.out.println(num[0]);\n int i = 0;\n while(i<5){\n if(num[i] == 0){\n System.out.println(i+1);\n break;\n }\n i++;\n }\n return;\n }",
"int i = 0;",
"i",
"0",
"while(i<5){\n if(num[i] == 0){\n System.out.println(i+1);\n break;\n }\n i++;\n }",
"i<5",
"i",
"5",
"{\n if(num[i] == 0){\n System.out.println(i+1);\n break;\n }\n i++;\n }",
"if(num[i] == 0){\n System.out.println(i+1);\n break;\n }",
"num[i] == 0",
"num[i]",
"num",
"i",
"0",
"{\n System.out.println(i+1);\n break;\n }",
"System.out.println(i+1)",
"System.out.println",
"System.out",
"System",
"System.out",
"i+1",
"i",
"1",
"break;",
"i++",
"i",
"return;",
"int[] num",
"num",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n ArrayList<String> list = new ArrayList<String>();\n int x_1,x_2,x_3,x_4,x_5;\n int i = 0;\n String an = scan.nextLine();\n String atai[] = an.split(\" \",0);\n int num[] = new int[5];\n while(i < 5){\n num[i] = Integer.parseInt(atai[i]);\n i++;\n }\n x_1 = num[0];\n x_2 = num[1];\n x_3 = num[2];\n x_4 = num[3];\n x_5 = num[4];\n// System.out.println(A+\",\"+B+\",\"+H+\",\"+M);\n check(num);\n scan.close();\n }\n \n public static void check(int[] num){\n //System.out.println(num[0]);\n int i = 0;\n while(i<5){\n if(num[i] == 0){\n System.out.println(i+1);\n break;\n }\n i++;\n }\n return;\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n ArrayList<String> list = new ArrayList<String>();\n int x_1,x_2,x_3,x_4,x_5;\n int i = 0;\n String an = scan.nextLine();\n String atai[] = an.split(\" \",0);\n int num[] = new int[5];\n while(i < 5){\n num[i] = Integer.parseInt(atai[i]);\n i++;\n }\n x_1 = num[0];\n x_2 = num[1];\n x_3 = num[2];\n x_4 = num[3];\n x_5 = num[4];\n// System.out.println(A+\",\"+B+\",\"+H+\",\"+M);\n check(num);\n scan.close();\n }\n \n public static void check(int[] num){\n //System.out.println(num[0]);\n int i = 0;\n while(i<5){\n if(num[i] == 0){\n System.out.println(i+1);\n break;\n }\n i++;\n }\n return;\n }\n}",
"Main"
]
| import java.util.Scanner;
import java.util.ArrayList;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
ArrayList<String> list = new ArrayList<String>();
int x_1,x_2,x_3,x_4,x_5;
int i = 0;
String an = scan.nextLine();
String atai[] = an.split(" ",0);
int num[] = new int[5];
while(i < 5){
num[i] = Integer.parseInt(atai[i]);
i++;
}
x_1 = num[0];
x_2 = num[1];
x_3 = num[2];
x_4 = num[3];
x_5 = num[4];
// System.out.println(A+","+B+","+H+","+M);
check(num);
scan.close();
}
public static void check(int[] num){
//System.out.println(num[0]);
int i = 0;
while(i<5){
if(num[i] == 0){
System.out.println(i+1);
break;
}
i++;
}
return;
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
54,
5
],
[
54,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
21,
22
],
[
21,
23
],
[
16,
24
],
[
24,
25
],
[
25,
26
],
[
16,
27
],
[
28,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
6,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n int N[] = new int[5];\n for(int i = 0; i < 5; i++){\n N[i] = sc.nextInt();\n if(N[i] == 0){\n System.out.println(i+1);\n }\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n int N[] = new int[5];\n for(int i = 0; i < 5; i++){\n N[i] = sc.nextInt();\n if(N[i] == 0){\n System.out.println(i+1);\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n int N[] = new int[5];\n for(int i = 0; i < 5; i++){\n N[i] = sc.nextInt();\n if(N[i] == 0){\n System.out.println(i+1);\n }\n }\n }",
"main",
"{\n // Your code here!\n Scanner sc = new Scanner(System.in);\n int N[] = new int[5];\n for(int i = 0; i < 5; i++){\n N[i] = sc.nextInt();\n if(N[i] == 0){\n System.out.println(i+1);\n }\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N[] = new int[5];",
"N",
"new int[5]",
"5",
"for(int i = 0; i < 5; i++){\n N[i] = sc.nextInt();\n if(N[i] == 0){\n System.out.println(i+1);\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n N[i] = sc.nextInt();\n if(N[i] == 0){\n System.out.println(i+1);\n }\n }",
"{\n N[i] = sc.nextInt();\n if(N[i] == 0){\n System.out.println(i+1);\n }\n }",
"N[i] = sc.nextInt()",
"N[i]",
"N",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(N[i] == 0){\n System.out.println(i+1);\n }",
"N[i] == 0",
"N[i]",
"N",
"i",
"0",
"{\n System.out.println(i+1);\n }",
"System.out.println(i+1)",
"System.out.println",
"System.out",
"System",
"System.out",
"i+1",
"i",
"1",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n int N[] = new int[5];\n for(int i = 0; i < 5; i++){\n N[i] = sc.nextInt();\n if(N[i] == 0){\n System.out.println(i+1);\n }\n }\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n int N[] = new int[5];\n for(int i = 0; i < 5; i++){\n N[i] = sc.nextInt();\n if(N[i] == 0){\n System.out.println(i+1);\n }\n }\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
// Your code here!
Scanner sc = new Scanner(System.in);
int N[] = new int[5];
for(int i = 0; i < 5; i++){
N[i] = sc.nextInt();
if(N[i] == 0){
System.out.println(i+1);
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
53,
5
],
[
53,
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
],
[
20,
21
],
[
20,
22
],
[
18,
23
],
[
23,
24
],
[
23,
25
],
[
18,
26
],
[
26,
27
],
[
27,
28
],
[
18,
29
],
[
30,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
30,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
6,
50
],
[
50,
51
],
[
0,
52
],
[
52,
53
],
[
52,
54
]
]
| [
"import java.util.Scanner;\npublic class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint num = 0;\n\t\tint ans = 0;\n\t\tfor(int i = 1; i < 6; i++) {\n\t\t\tnum = scan.nextInt();\n\t\t\tif(num == 0) {\n\t\t\t\tans = i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\t\n\t\t\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint num = 0;\n\t\tint ans = 0;\n\t\tfor(int i = 1; i < 6; i++) {\n\t\t\tnum = scan.nextInt();\n\t\t\tif(num == 0) {\n\t\t\t\tans = i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\t\n\t\t\n\t}\n\n}",
"Main",
"/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint num = 0;\n\t\tint ans = 0;\n\t\tfor(int i = 1; i < 6; i++) {\n\t\t\tnum = scan.nextInt();\n\t\t\tif(num == 0) {\n\t\t\t\tans = i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\t\n\t\t\n\t}",
"main",
"{\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint num = 0;\n\t\tint ans = 0;\n\t\tfor(int i = 1; i < 6; i++) {\n\t\t\tnum = scan.nextInt();\n\t\t\tif(num == 0) {\n\t\t\t\tans = i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\t\n\t\t\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int num = 0;",
"num",
"0",
"int ans = 0;",
"ans",
"0",
"for(int i = 1; i < 6; i++) {\n\t\t\tnum = scan.nextInt();\n\t\t\tif(num == 0) {\n\t\t\t\tans = i;\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < 6",
"i",
"6",
"i++",
"i++",
"i",
"{\n\t\t\tnum = scan.nextInt();\n\t\t\tif(num == 0) {\n\t\t\t\tans = i;\n\t\t\t}\n\t\t}",
"{\n\t\t\tnum = scan.nextInt();\n\t\t\tif(num == 0) {\n\t\t\t\tans = i;\n\t\t\t}\n\t\t}",
"num = scan.nextInt()",
"num",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if(num == 0) {\n\t\t\t\tans = i;\n\t\t\t}",
"num == 0",
"num",
"0",
"{\n\t\t\t\tans = i;\n\t\t\t}",
"ans = i",
"ans",
"i",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint num = 0;\n\t\tint ans = 0;\n\t\tfor(int i = 1; i < 6; i++) {\n\t\t\tnum = scan.nextInt();\n\t\t\tif(num == 0) {\n\t\t\t\tans = i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\t\n\t\t\n\t}\n\n}",
"public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint num = 0;\n\t\tint ans = 0;\n\t\tfor(int i = 1; i < 6; i++) {\n\t\t\tnum = scan.nextInt();\n\t\t\tif(num == 0) {\n\t\t\t\tans = i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t\t\n\t\t\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int num = 0;
int ans = 0;
for(int i = 1; i < 6; i++) {
num = scan.nextInt();
if(num == 0) {
ans = i;
}
}
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
13,
41,
13,
17,
41,
13,
41,
13,
12,
13,
30,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
17,
29,
12,
13,
30,
14,
2,
13,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
4,
18,
18,
13,
13,
17,
30,
0,
13,
18,
13,
13,
0,
13,
20,
0,
13,
20,
4,
13,
12,
13,
30,
4,
18,
20,
23,
13,
6,
13,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
40,
17,
37,
20,
14,
2,
13,
13,
30,
0,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
29,
2,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
12,
13,
30,
29,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
41,
13,
20,
42,
40,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
41,
13,
20,
42,
40,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
13,
29,
13,
23,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
599,
20
],
[
599,
21
],
[
21,
22
],
[
599,
23
],
[
23,
24
],
[
23,
25
],
[
599,
26
],
[
26,
27
],
[
26,
28
],
[
599,
29
],
[
29,
30
],
[
29,
31
],
[
599,
32
],
[
32,
33
],
[
32,
34
],
[
599,
35
],
[
35,
36
],
[
599,
37
],
[
37,
38
],
[
599,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
41,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
48,
59
],
[
60,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
67,
76
],
[
599,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
85,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
84,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
80,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
105,
107
],
[
79,
108
],
[
108,
109
],
[
108,
110
],
[
79,
111
],
[
111,
112
],
[
111,
113
],
[
79,
114
],
[
114,
115
],
[
599,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
116,
122
],
[
122,
123
],
[
0,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
124,
128
],
[
128,
129
],
[
128,
130
],
[
124,
132
],
[
132,
133
],
[
124,
134
],
[
134,
135
],
[
124,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
136,
144
],
[
144,
145
],
[
124,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
149,
154
],
[
154,
155
],
[
148,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
156,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
168,
169
],
[
164,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
174,
175
],
[
173,
176
],
[
160,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
177,
181
],
[
181,
182
],
[
182,
183
],
[
148,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
124,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
192,
193
],
[
196,
194
],
[
206,
195
],
[
203,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
196,
200
],
[
200,
201
],
[
200,
202
],
[
203,
203
],
[
203,
204
],
[
203,
205
],
[
206,
206
],
[
206,
207
],
[
206,
208
],
[
196,
209
],
[
209,
210
],
[
209,
211
],
[
211,
212
],
[
189,
213
],
[
213,
214
],
[
124,
215
],
[
215,
216
],
[
215,
217
],
[
217,
218
],
[
218,
219
],
[
220,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
220,
224
],
[
224,
225
],
[
224,
226
],
[
220,
227
],
[
227,
228
],
[
227,
229
],
[
229,
230
],
[
215,
231
],
[
231,
232
],
[
124,
233
],
[
233,
234
],
[
233,
235
],
[
235,
236
],
[
236,
237
],
[
237,
238
],
[
238,
239
],
[
237,
240
],
[
240,
241
],
[
124,
242
],
[
242,
243
],
[
242,
244
],
[
244,
245
],
[
245,
246
],
[
245,
247
],
[
244,
249
],
[
249,
250
],
[
250,
251
],
[
251,
252
],
[
251,
253
],
[
249,
254
],
[
254,
255
],
[
254,
256
],
[
249,
257
],
[
257,
258
],
[
258,
259
],
[
249,
260
],
[
260,
261
],
[
261,
262
],
[
262,
263
],
[
262,
264
],
[
261,
265
],
[
265,
266
],
[
244,
267
],
[
267,
268
],
[
242,
269
],
[
269,
270
],
[
124,
271
],
[
271,
272
],
[
271,
273
],
[
273,
274
],
[
274,
275
],
[
274,
276
],
[
273,
279
],
[
279,
280
],
[
280,
281
],
[
281,
282
],
[
281,
283
],
[
279,
284
],
[
284,
285
],
[
284,
286
],
[
279,
287
],
[
287,
288
],
[
288,
289
],
[
279,
290
],
[
291,
291
],
[
291,
292
],
[
292,
293
],
[
293,
294
],
[
293,
295
],
[
292,
296
],
[
296,
297
],
[
296,
298
],
[
273,
299
],
[
299,
300
],
[
271,
301
],
[
301,
302
],
[
271,
303
],
[
303,
304
],
[
124,
305
],
[
305,
306
],
[
305,
307
],
[
307,
308
],
[
308,
309
],
[
309,
310
],
[
310,
311
],
[
309,
312
],
[
312,
313
],
[
124,
314
],
[
314,
315
],
[
314,
316
],
[
316,
317
],
[
317,
318
],
[
317,
319
],
[
316,
321
],
[
321,
322
],
[
322,
323
],
[
323,
324
],
[
323,
325
],
[
321,
326
],
[
326,
327
],
[
326,
328
],
[
321,
329
],
[
329,
330
],
[
330,
331
],
[
321,
332
],
[
332,
333
],
[
333,
334
],
[
334,
335
],
[
334,
336
],
[
333,
337
],
[
337,
338
],
[
316,
339
],
[
339,
340
],
[
314,
341
],
[
341,
342
],
[
124,
343
],
[
343,
344
],
[
343,
345
],
[
345,
346
],
[
346,
347
],
[
346,
348
],
[
345,
351
],
[
351,
352
],
[
352,
353
],
[
353,
354
],
[
353,
355
],
[
351,
356
],
[
356,
357
],
[
356,
358
],
[
351,
359
],
[
359,
360
],
[
360,
361
],
[
351,
362
],
[
363,
363
],
[
363,
364
],
[
364,
365
],
[
365,
366
],
[
365,
367
],
[
364,
368
],
[
368,
369
],
[
368,
370
],
[
345,
371
],
[
371,
372
],
[
343,
373
],
[
373,
374
],
[
343,
375
],
[
375,
376
],
[
124,
377
],
[
377,
378
],
[
377,
379
],
[
379,
380
],
[
380,
381
],
[
381,
382
],
[
382,
383
],
[
381,
384
],
[
384,
385
],
[
124,
386
],
[
386,
387
],
[
386,
388
],
[
388,
389
],
[
389,
390
],
[
389,
391
],
[
388,
393
],
[
393,
394
],
[
394,
395
],
[
395,
396
],
[
395,
397
],
[
393,
398
],
[
398,
399
],
[
398,
400
],
[
393,
401
],
[
401,
402
],
[
402,
403
],
[
393,
404
],
[
404,
405
],
[
405,
406
],
[
406,
407
],
[
406,
408
],
[
405,
409
],
[
409,
410
],
[
388,
411
],
[
411,
412
],
[
386,
413
],
[
413,
414
],
[
124,
415
],
[
415,
416
],
[
415,
417
],
[
417,
418
],
[
418,
419
],
[
418,
420
],
[
417,
423
],
[
423,
424
],
[
424,
425
],
[
425,
426
],
[
425,
427
],
[
423,
428
],
[
428,
429
],
[
428,
430
],
[
423,
431
],
[
431,
432
],
[
432,
433
],
[
423,
434
],
[
435,
435
],
[
435,
436
],
[
436,
437
],
[
437,
438
],
[
437,
439
],
[
436,
440
],
[
440,
441
],
[
440,
442
],
[
417,
443
],
[
443,
444
],
[
415,
445
],
[
445,
446
],
[
415,
447
],
[
447,
448
],
[
124,
449
],
[
449,
450
],
[
449,
451
],
[
451,
452
],
[
452,
453
],
[
452,
454
],
[
454,
455
],
[
451,
456
],
[
456,
457
],
[
457,
458
],
[
457,
459
],
[
456,
460
],
[
460,
461
],
[
460,
462
],
[
462,
463
],
[
451,
464
],
[
464,
465
],
[
464,
466
],
[
451,
467
],
[
467,
468
],
[
468,
469
],
[
469,
470
],
[
469,
471
],
[
467,
472
],
[
472,
473
],
[
473,
474
],
[
474,
475
],
[
473,
476
],
[
472,
477
],
[
477,
478
],
[
477,
479
],
[
479,
480
],
[
451,
481
],
[
481,
482
],
[
482,
483
],
[
483,
484
],
[
124,
485
],
[
485,
486
],
[
485,
487
],
[
487,
488
],
[
488,
489
],
[
488,
490
],
[
487,
492
],
[
492,
493
],
[
493,
494
],
[
494,
495
],
[
494,
496
],
[
492,
497
],
[
497,
498
],
[
497,
499
],
[
492,
500
],
[
500,
501
],
[
501,
502
],
[
492,
503
],
[
503,
504
],
[
504,
505
],
[
505,
506
],
[
505,
507
],
[
504,
508
],
[
508,
509
],
[
487,
510
],
[
510,
511
],
[
485,
512
],
[
512,
513
],
[
124,
514
],
[
514,
515
],
[
514,
516
],
[
516,
517
],
[
517,
518
],
[
517,
519
],
[
519,
520
],
[
516,
521
],
[
521,
522
],
[
522,
523
],
[
522,
524
],
[
521,
525
],
[
525,
526
],
[
525,
527
],
[
527,
528
],
[
516,
529
],
[
529,
530
],
[
529,
531
],
[
516,
532
],
[
532,
533
],
[
533,
534
],
[
534,
535
],
[
534,
536
],
[
532,
537
],
[
537,
538
],
[
538,
539
],
[
539,
540
],
[
538,
541
],
[
537,
542
],
[
542,
543
],
[
542,
544
],
[
544,
545
],
[
516,
546
],
[
546,
547
],
[
547,
548
],
[
548,
549
],
[
124,
550
],
[
550,
551
],
[
550,
552
],
[
552,
553
],
[
553,
554
],
[
553,
555
],
[
552,
558
],
[
558,
559
],
[
559,
560
],
[
560,
561
],
[
560,
562
],
[
558,
563
],
[
563,
564
],
[
563,
565
],
[
558,
566
],
[
566,
567
],
[
567,
568
],
[
558,
569
],
[
570,
570
],
[
570,
571
],
[
571,
572
],
[
572,
573
],
[
573,
574
],
[
573,
575
],
[
571,
576
],
[
576,
577
],
[
576,
578
],
[
571,
579
],
[
579,
580
],
[
580,
581
],
[
571,
582
],
[
583,
583
],
[
583,
584
],
[
584,
585
],
[
585,
586
],
[
586,
587
],
[
586,
588
],
[
585,
589
],
[
584,
590
],
[
590,
591
],
[
552,
592
],
[
592,
593
],
[
550,
594
],
[
594,
595
],
[
550,
596
],
[
596,
597
],
[
0,
598
],
[
598,
599
],
[
598,
600
]
]
| [
"import java.io.IOException;\nimport java.io.PrintWriter;\nimport java.io.FileNotFoundException;\nimport java.util.InputMismatchException;\nimport java.io.InputStream;\nimport java.io.FileInputStream;\n\npublic class Main {\n InputStream is;\n\n int __t__ = 1;\n int __f__ = 0;\n int __FILE_DEBUG_FLAG__ = __f__;\n String __DEBUG_FILE_NAME__ = \"src/O1\";\n\n FastScanner in;\n PrintWriter out;\n\n public void solve() {\n int[] a = in.nextIntArray(5);\n for (int i = 0; i < 5; i++) {\n if (a[i] == 0) {\n System.out.println(i + 1);\n return;\n }\n }\n }\n\n public void run() {\n if (__FILE_DEBUG_FLAG__ == __t__) {\n try {\n is = new FileInputStream(__DEBUG_FILE_NAME__);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n System.out.println(\"FILE_INPUT!\");\n } else {\n is = System.in;\n }\n in = new FastScanner(is);\n out = new PrintWriter(System.out);\n\n solve();\n }\n\n public static void main(final String[] args) {\n new Main().run();\n }\n}\n\n\nclass FastScanner {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n\n public FastScanner(InputStream stream) {\n this.stream = stream;\n // stream = new FileInputStream(new File(\"dec.in\"));\n }\n\n int read() {\n if (numChars == -1)\n throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public boolean isEndline(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] nextIntArray(int n) {\n int[] array = new int[n];\n for (int i = 0; i < n; i++)\n array[i] = nextInt();\n\n return array;\n }\n\n public int[][] nextIntMap(int n, int m) {\n int[][] map = new int[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextIntArray(m);\n }\n return map;\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public long[] nextLongArray(int n) {\n long[] array = new long[n];\n for (int i = 0; i < n; i++)\n array[i] = nextLong();\n\n return array;\n }\n\n public long[][] nextLongMap(int n, int m) {\n long[][] map = new long[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextLongArray(m);\n }\n return map;\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public double[] nextDoubleArray(int n) {\n double[] array = new double[n];\n for (int i = 0; i < n; i++)\n array[i] = nextDouble();\n\n return array;\n }\n\n public double[][] nextDoubleMap(int n, int m) {\n double[][] map = new double[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextDoubleArray(m);\n }\n return map;\n }\n\n public String next() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String[] nextStringArray(int n) {\n String[] array = new String[n];\n for (int i = 0; i < n; i++)\n array[i] = next();\n\n return array;\n }\n\n public String nextLine() {\n int c = read();\n while (isEndline(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndline(c));\n return res.toString();\n }\n\n public int[][] nextPackedIntArrays(int packN, int size) {\n int[][] res = new int[packN][size];\n for (int i = 0; i < size; i++) {\n for (int j = 0; j < packN; j++) {\n res[j][i] = nextInt();\n }\n }\n return res;\n }\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.io.FileNotFoundException;",
"FileNotFoundException",
"java.io",
"import java.util.InputMismatchException;",
"InputMismatchException",
"java.util",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.FileInputStream;",
"FileInputStream",
"java.io",
"public class Main {\n InputStream is;\n\n int __t__ = 1;\n int __f__ = 0;\n int __FILE_DEBUG_FLAG__ = __f__;\n String __DEBUG_FILE_NAME__ = \"src/O1\";\n\n FastScanner in;\n PrintWriter out;\n\n public void solve() {\n int[] a = in.nextIntArray(5);\n for (int i = 0; i < 5; i++) {\n if (a[i] == 0) {\n System.out.println(i + 1);\n return;\n }\n }\n }\n\n public void run() {\n if (__FILE_DEBUG_FLAG__ == __t__) {\n try {\n is = new FileInputStream(__DEBUG_FILE_NAME__);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n System.out.println(\"FILE_INPUT!\");\n } else {\n is = System.in;\n }\n in = new FastScanner(is);\n out = new PrintWriter(System.out);\n\n solve();\n }\n\n public static void main(final String[] args) {\n new Main().run();\n }\n}",
"Main",
"InputStream is;",
"is",
"int __t__ = 1;",
"__t__",
"1",
"int __f__ = 0;",
"__f__",
"0",
"int __FILE_DEBUG_FLAG__ = __f__;",
"__FILE_DEBUG_FLAG__",
"__f__",
"String __DEBUG_FILE_NAME__ = \"src/O1\";",
"__DEBUG_FILE_NAME__",
"\"src/O1\"",
"FastScanner in;",
"in",
"PrintWriter out;",
"out",
"public void solve() {\n int[] a = in.nextIntArray(5);\n for (int i = 0; i < 5; i++) {\n if (a[i] == 0) {\n System.out.println(i + 1);\n return;\n }\n }\n }",
"solve",
"{\n int[] a = in.nextIntArray(5);\n for (int i = 0; i < 5; i++) {\n if (a[i] == 0) {\n System.out.println(i + 1);\n return;\n }\n }\n }",
"int[] a = in.nextIntArray(5);",
"a",
"in.nextIntArray(5)",
"in.nextIntArray",
"in",
"5",
"for (int i = 0; i < 5; i++) {\n if (a[i] == 0) {\n System.out.println(i + 1);\n return;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 5",
"i",
"5",
"i++",
"i++",
"i",
"{\n if (a[i] == 0) {\n System.out.println(i + 1);\n return;\n }\n }",
"{\n if (a[i] == 0) {\n System.out.println(i + 1);\n return;\n }\n }",
"if (a[i] == 0) {\n System.out.println(i + 1);\n return;\n }",
"a[i] == 0",
"a[i]",
"a",
"i",
"0",
"{\n System.out.println(i + 1);\n return;\n }",
"System.out.println(i + 1)",
"System.out.println",
"System.out",
"System",
"System.out",
"i + 1",
"i",
"1",
"return;",
"public void run() {\n if (__FILE_DEBUG_FLAG__ == __t__) {\n try {\n is = new FileInputStream(__DEBUG_FILE_NAME__);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n System.out.println(\"FILE_INPUT!\");\n } else {\n is = System.in;\n }\n in = new FastScanner(is);\n out = new PrintWriter(System.out);\n\n solve();\n }",
"run",
"{\n if (__FILE_DEBUG_FLAG__ == __t__) {\n try {\n is = new FileInputStream(__DEBUG_FILE_NAME__);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n System.out.println(\"FILE_INPUT!\");\n } else {\n is = System.in;\n }\n in = new FastScanner(is);\n out = new PrintWriter(System.out);\n\n solve();\n }",
"if (__FILE_DEBUG_FLAG__ == __t__) {\n try {\n is = new FileInputStream(__DEBUG_FILE_NAME__);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n System.out.println(\"FILE_INPUT!\");\n } else {\n is = System.in;\n }",
"__FILE_DEBUG_FLAG__ == __t__",
"__FILE_DEBUG_FLAG__",
"__t__",
"{\n try {\n is = new FileInputStream(__DEBUG_FILE_NAME__);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n System.out.println(\"FILE_INPUT!\");\n }",
"try {\n is = new FileInputStream(__DEBUG_FILE_NAME__);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }",
"catch (FileNotFoundException e) {\n e.printStackTrace();\n }",
"FileNotFoundException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n is = new FileInputStream(__DEBUG_FILE_NAME__);\n }",
"is = new FileInputStream(__DEBUG_FILE_NAME__)",
"is",
"new FileInputStream(__DEBUG_FILE_NAME__)",
"System.out.println(\"FILE_INPUT!\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"FILE_INPUT!\"",
"{\n is = System.in;\n }",
"is = System.in",
"is",
"System.in",
"System",
"System.in",
"in = new FastScanner(is)",
"in",
"new FastScanner(is)",
"out = new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"solve()",
"solve",
"public static void main(final String[] args) {\n new Main().run();\n }",
"main",
"{\n new Main().run();\n }",
"new Main().run()",
"new Main().run",
"new Main()",
"final String[] args",
"args",
"class FastScanner {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n\n public FastScanner(InputStream stream) {\n this.stream = stream;\n // stream = new FileInputStream(new File(\"dec.in\"));\n }\n\n int read() {\n if (numChars == -1)\n throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public boolean isEndline(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public int[] nextIntArray(int n) {\n int[] array = new int[n];\n for (int i = 0; i < n; i++)\n array[i] = nextInt();\n\n return array;\n }\n\n public int[][] nextIntMap(int n, int m) {\n int[][] map = new int[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextIntArray(m);\n }\n return map;\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public long[] nextLongArray(int n) {\n long[] array = new long[n];\n for (int i = 0; i < n; i++)\n array[i] = nextLong();\n\n return array;\n }\n\n public long[][] nextLongMap(int n, int m) {\n long[][] map = new long[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextLongArray(m);\n }\n return map;\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public double[] nextDoubleArray(int n) {\n double[] array = new double[n];\n for (int i = 0; i < n; i++)\n array[i] = nextDouble();\n\n return array;\n }\n\n public double[][] nextDoubleMap(int n, int m) {\n double[][] map = new double[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextDoubleArray(m);\n }\n return map;\n }\n\n public String next() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String[] nextStringArray(int n) {\n String[] array = new String[n];\n for (int i = 0; i < n; i++)\n array[i] = next();\n\n return array;\n }\n\n public String nextLine() {\n int c = read();\n while (isEndline(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndline(c));\n return res.toString();\n }\n\n public int[][] nextPackedIntArrays(int packN, int size) {\n int[][] res = new int[packN][size];\n for (int i = 0; i < size; i++) {\n for (int j = 0; j < packN; j++) {\n res[j][i] = nextInt();\n }\n }\n return res;\n }\n}",
"FastScanner",
"private InputStream stream;",
"stream",
"private byte[] buf = new byte[1024];",
"buf",
"new byte[1024]",
"1024",
"private int curChar;",
"curChar",
"private int numChars;",
"numChars",
"public FastScanner(InputStream stream) {\n this.stream = stream;\n // stream = new FileInputStream(new File(\"dec.in\"));\n }",
"FastScanner",
"{\n this.stream = stream;\n // stream = new FileInputStream(new File(\"dec.in\"));\n }",
"this.stream = stream",
"this.stream",
"this",
"this.stream",
"stream",
"InputStream stream",
"stream",
"int read() {\n if (numChars == -1)\n throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }",
"read",
"{\n if (numChars == -1)\n throw new InputMismatchException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }",
"if (numChars == -1)\n throw new InputMismatchException();",
"numChars == -1",
"numChars",
"-1",
"1",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }",
"curChar >= numChars",
"curChar",
"numChars",
"{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0)\n return -1;\n }",
"curChar = 0",
"curChar",
"0",
"try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }",
"catch (IOException e) {\n throw new InputMismatchException();\n }",
"IOException e",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n numChars = stream.read(buf);\n }",
"numChars = stream.read(buf)",
"numChars",
"stream.read(buf)",
"stream.read",
"stream",
"buf",
"if (numChars <= 0)\n return -1;",
"numChars <= 0",
"numChars",
"0",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"isSpaceChar",
"{\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == '\\t'",
"c == '\\r'",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == ' '",
"c",
"' '",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == '\\t'",
"c",
"'\\t'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"public boolean isEndline(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }",
"isEndline",
"{\n return c == '\\n' || c == '\\r' || c == -1;\n }",
"return c == '\\n' || c == '\\r' || c == -1;",
"c == '\\n' || c == '\\r' || c == -1",
"c == '\\n' || c == '\\r' || c == -1",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"public int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public int[] nextIntArray(int n) {\n int[] array = new int[n];\n for (int i = 0; i < n; i++)\n array[i] = nextInt();\n\n return array;\n }",
"nextIntArray",
"{\n int[] array = new int[n];\n for (int i = 0; i < n; i++)\n array[i] = nextInt();\n\n return array;\n }",
"int[] array = new int[n];",
"array",
"new int[n]",
"n",
"for (int i = 0; i < n; i++)\n array[i] = nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"array[i] = nextInt();",
"array[i] = nextInt()",
"array[i]",
"array",
"i",
"nextInt()",
"nextInt",
"return array;",
"array",
"int n",
"n",
"public int[][] nextIntMap(int n, int m) {\n int[][] map = new int[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextIntArray(m);\n }\n return map;\n }",
"nextIntMap",
"{\n int[][] map = new int[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextIntArray(m);\n }\n return map;\n }",
"int[][] map = new int[n][m];",
"map",
"new int[n][m]",
"n",
"m",
"for (int i = 0; i < n; i++) {\n map[i] = nextIntArray(m);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n map[i] = nextIntArray(m);\n }",
"{\n map[i] = nextIntArray(m);\n }",
"map[i] = nextIntArray(m)",
"map[i]",
"map",
"i",
"nextIntArray(m)",
"nextIntArray",
"m",
"return map;",
"map",
"int n",
"n",
"int m",
"m",
"public long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public long[] nextLongArray(int n) {\n long[] array = new long[n];\n for (int i = 0; i < n; i++)\n array[i] = nextLong();\n\n return array;\n }",
"nextLongArray",
"{\n long[] array = new long[n];\n for (int i = 0; i < n; i++)\n array[i] = nextLong();\n\n return array;\n }",
"long[] array = new long[n];",
"array",
"new long[n]",
"n",
"for (int i = 0; i < n; i++)\n array[i] = nextLong();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"array[i] = nextLong();",
"array[i] = nextLong()",
"array[i]",
"array",
"i",
"nextLong()",
"nextLong",
"return array;",
"array",
"int n",
"n",
"public long[][] nextLongMap(int n, int m) {\n long[][] map = new long[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextLongArray(m);\n }\n return map;\n }",
"nextLongMap",
"{\n long[][] map = new long[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextLongArray(m);\n }\n return map;\n }",
"long[][] map = new long[n][m];",
"map",
"new long[n][m]",
"n",
"m",
"for (int i = 0; i < n; i++) {\n map[i] = nextLongArray(m);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n map[i] = nextLongArray(m);\n }",
"{\n map[i] = nextLongArray(m);\n }",
"map[i] = nextLongArray(m)",
"map[i]",
"map",
"i",
"nextLongArray(m)",
"nextLongArray",
"m",
"return map;",
"map",
"int n",
"n",
"int m",
"m",
"public 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",
"public double[] nextDoubleArray(int n) {\n double[] array = new double[n];\n for (int i = 0; i < n; i++)\n array[i] = nextDouble();\n\n return array;\n }",
"nextDoubleArray",
"{\n double[] array = new double[n];\n for (int i = 0; i < n; i++)\n array[i] = nextDouble();\n\n return array;\n }",
"double[] array = new double[n];",
"array",
"new double[n]",
"n",
"for (int i = 0; i < n; i++)\n array[i] = nextDouble();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"array[i] = nextDouble();",
"array[i] = nextDouble()",
"array[i]",
"array",
"i",
"nextDouble()",
"nextDouble",
"return array;",
"array",
"int n",
"n",
"public double[][] nextDoubleMap(int n, int m) {\n double[][] map = new double[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextDoubleArray(m);\n }\n return map;\n }",
"nextDoubleMap",
"{\n double[][] map = new double[n][m];\n for (int i = 0; i < n; i++) {\n map[i] = nextDoubleArray(m);\n }\n return map;\n }",
"double[][] map = new double[n][m];",
"map",
"new double[n][m]",
"n",
"m",
"for (int i = 0; i < n; i++) {\n map[i] = nextDoubleArray(m);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n map[i] = nextDoubleArray(m);\n }",
"{\n map[i] = nextDoubleArray(m);\n }",
"map[i] = nextDoubleArray(m)",
"map[i]",
"map",
"i",
"nextDoubleArray(m)",
"nextDoubleArray",
"m",
"return map;",
"map",
"int n",
"n",
"int m",
"m",
"public String next() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }",
"next",
"{\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c))\n c = read();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c = read()",
"c",
"read()",
"read",
"StringBuilder res = new StringBuilder();",
"res",
"new StringBuilder()",
"do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n res.appendCodePoint(c);\n c = read();\n }",
"res.appendCodePoint(c)",
"res.appendCodePoint",
"res",
"c",
"c = read()",
"c",
"read()",
"read",
"return res.toString();",
"res.toString()",
"res.toString",
"res",
"public String[] nextStringArray(int n) {\n String[] array = new String[n];\n for (int i = 0; i < n; i++)\n array[i] = next();\n\n return array;\n }",
"nextStringArray",
"{\n String[] array = new String[n];\n for (int i = 0; i < n; i++)\n array[i] = next();\n\n return array;\n }",
"String[] array = new String[n];",
"array",
"new String[n]",
"n",
"for (int i = 0; i < n; i++)\n array[i] = next();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"array[i] = next();",
"array[i] = next()",
"array[i]",
"array",
"i",
"next()",
"next",
"return array;",
"array",
"int n",
"n",
"public String nextLine() {\n int c = read();\n while (isEndline(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndline(c));\n return res.toString();\n }",
"nextLine",
"{\n int c = read();\n while (isEndline(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndline(c));\n return res.toString();\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isEndline(c))\n c = read();",
"isEndline(c)",
"isEndline",
"c",
"c = read()",
"c",
"read()",
"read",
"StringBuilder res = new StringBuilder();",
"res",
"new StringBuilder()",
"do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndline(c));",
"!isEndline(c)",
"isEndline(c)",
"isEndline",
"c",
"{\n res.appendCodePoint(c);\n c = read();\n }",
"res.appendCodePoint(c)",
"res.appendCodePoint",
"res",
"c",
"c = read()",
"c",
"read()",
"read",
"return res.toString();",
"res.toString()",
"res.toString",
"res",
"public int[][] nextPackedIntArrays(int packN, int size) {\n int[][] res = new int[packN][size];\n for (int i = 0; i < size; i++) {\n for (int j = 0; j < packN; j++) {\n res[j][i] = nextInt();\n }\n }\n return res;\n }",
"nextPackedIntArrays",
"{\n int[][] res = new int[packN][size];\n for (int i = 0; i < size; i++) {\n for (int j = 0; j < packN; j++) {\n res[j][i] = nextInt();\n }\n }\n return res;\n }",
"int[][] res = new int[packN][size];",
"res",
"new int[packN][size]",
"packN",
"size",
"for (int i = 0; i < size; i++) {\n for (int j = 0; j < packN; j++) {\n res[j][i] = nextInt();\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < size",
"i",
"size",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < packN; j++) {\n res[j][i] = nextInt();\n }\n }",
"{\n for (int j = 0; j < packN; j++) {\n res[j][i] = nextInt();\n }\n }",
"for (int j = 0; j < packN; j++) {\n res[j][i] = nextInt();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < packN",
"j",
"packN",
"j++",
"j++",
"j",
"{\n res[j][i] = nextInt();\n }",
"{\n res[j][i] = nextInt();\n }",
"res[j][i] = nextInt()",
"res[j][i]",
"res[j]",
"res",
"j",
"i",
"nextInt()",
"nextInt",
"return res;",
"res",
"int packN",
"packN",
"int size",
"size",
"public class Main {\n InputStream is;\n\n int __t__ = 1;\n int __f__ = 0;\n int __FILE_DEBUG_FLAG__ = __f__;\n String __DEBUG_FILE_NAME__ = \"src/O1\";\n\n FastScanner in;\n PrintWriter out;\n\n public void solve() {\n int[] a = in.nextIntArray(5);\n for (int i = 0; i < 5; i++) {\n if (a[i] == 0) {\n System.out.println(i + 1);\n return;\n }\n }\n }\n\n public void run() {\n if (__FILE_DEBUG_FLAG__ == __t__) {\n try {\n is = new FileInputStream(__DEBUG_FILE_NAME__);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n System.out.println(\"FILE_INPUT!\");\n } else {\n is = System.in;\n }\n in = new FastScanner(is);\n out = new PrintWriter(System.out);\n\n solve();\n }\n\n public static void main(final String[] args) {\n new Main().run();\n }\n}",
"public class Main {\n InputStream is;\n\n int __t__ = 1;\n int __f__ = 0;\n int __FILE_DEBUG_FLAG__ = __f__;\n String __DEBUG_FILE_NAME__ = \"src/O1\";\n\n FastScanner in;\n PrintWriter out;\n\n public void solve() {\n int[] a = in.nextIntArray(5);\n for (int i = 0; i < 5; i++) {\n if (a[i] == 0) {\n System.out.println(i + 1);\n return;\n }\n }\n }\n\n public void run() {\n if (__FILE_DEBUG_FLAG__ == __t__) {\n try {\n is = new FileInputStream(__DEBUG_FILE_NAME__);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n System.out.println(\"FILE_INPUT!\");\n } else {\n is = System.in;\n }\n in = new FastScanner(is);\n out = new PrintWriter(System.out);\n\n solve();\n }\n\n public static void main(final String[] args) {\n new Main().run();\n }\n}",
"Main"
]
| import java.io.IOException;
import java.io.PrintWriter;
import java.io.FileNotFoundException;
import java.util.InputMismatchException;
import java.io.InputStream;
import java.io.FileInputStream;
public class Main {
InputStream is;
int __t__ = 1;
int __f__ = 0;
int __FILE_DEBUG_FLAG__ = __f__;
String __DEBUG_FILE_NAME__ = "src/O1";
FastScanner in;
PrintWriter out;
public void solve() {
int[] a = in.nextIntArray(5);
for (int i = 0; i < 5; i++) {
if (a[i] == 0) {
System.out.println(i + 1);
return;
}
}
}
public void run() {
if (__FILE_DEBUG_FLAG__ == __t__) {
try {
is = new FileInputStream(__DEBUG_FILE_NAME__);
} catch (FileNotFoundException e) {
e.printStackTrace();
}
System.out.println("FILE_INPUT!");
} else {
is = System.in;
}
in = new FastScanner(is);
out = new PrintWriter(System.out);
solve();
}
public static void main(final String[] args) {
new Main().run();
}
}
class FastScanner {
private InputStream stream;
private byte[] buf = new byte[1024];
private int curChar;
private int numChars;
public FastScanner(InputStream stream) {
this.stream = stream;
// stream = new FileInputStream(new File("dec.in"));
}
int read() {
if (numChars == -1)
throw new InputMismatchException();
if (curChar >= numChars) {
curChar = 0;
try {
numChars = stream.read(buf);
} catch (IOException e) {
throw new InputMismatchException();
}
if (numChars <= 0)
return -1;
}
return buf[curChar++];
}
public boolean isSpaceChar(int c) {
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
public boolean isEndline(int c) {
return c == '\n' || c == '\r' || c == -1;
}
public int nextInt() {
return Integer.parseInt(next());
}
public int[] nextIntArray(int n) {
int[] array = new int[n];
for (int i = 0; i < n; i++)
array[i] = nextInt();
return array;
}
public int[][] nextIntMap(int n, int m) {
int[][] map = new int[n][m];
for (int i = 0; i < n; i++) {
map[i] = nextIntArray(m);
}
return map;
}
public long nextLong() {
return Long.parseLong(next());
}
public long[] nextLongArray(int n) {
long[] array = new long[n];
for (int i = 0; i < n; i++)
array[i] = nextLong();
return array;
}
public long[][] nextLongMap(int n, int m) {
long[][] map = new long[n][m];
for (int i = 0; i < n; i++) {
map[i] = nextLongArray(m);
}
return map;
}
public double nextDouble() {
return Double.parseDouble(next());
}
public double[] nextDoubleArray(int n) {
double[] array = new double[n];
for (int i = 0; i < n; i++)
array[i] = nextDouble();
return array;
}
public double[][] nextDoubleMap(int n, int m) {
double[][] map = new double[n][m];
for (int i = 0; i < n; i++) {
map[i] = nextDoubleArray(m);
}
return map;
}
public String next() {
int c = read();
while (isSpaceChar(c))
c = read();
StringBuilder res = new StringBuilder();
do {
res.appendCodePoint(c);
c = read();
} while (!isSpaceChar(c));
return res.toString();
}
public String[] nextStringArray(int n) {
String[] array = new String[n];
for (int i = 0; i < n; i++)
array[i] = next();
return array;
}
public String nextLine() {
int c = read();
while (isEndline(c))
c = read();
StringBuilder res = new StringBuilder();
do {
res.appendCodePoint(c);
c = read();
} while (!isEndline(c));
return res.toString();
}
public int[][] nextPackedIntArrays(int packN, int size) {
int[][] res = new int[packN][size];
for (int i = 0; i < size; i++) {
for (int j = 0; j < packN; j++) {
res[j][i] = nextInt();
}
}
return res;
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
17,
3,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
57,
5
],
[
57,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
16,
26
],
[
26,
27
],
[
27,
28
],
[
16,
29
],
[
30,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
35,
36
],
[
36,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
44,
53
],
[
6,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tint[] ara = new int[5];\n\t\t\n\t\tfor(int i = 0;i<ara.length;i++) {\n\t\t\tara[i] = in.nextInt();\n\t\t\t\n\t\t\tif(ara[i] == 0) {\n\t\t\t\tSystem.out.println((i+1));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tint[] ara = new int[5];\n\t\t\n\t\tfor(int i = 0;i<ara.length;i++) {\n\t\t\tara[i] = in.nextInt();\n\t\t\t\n\t\t\tif(ara[i] == 0) {\n\t\t\t\tSystem.out.println((i+1));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tint[] ara = new int[5];\n\t\t\n\t\tfor(int i = 0;i<ara.length;i++) {\n\t\t\tara[i] = in.nextInt();\n\t\t\t\n\t\t\tif(ara[i] == 0) {\n\t\t\t\tSystem.out.println((i+1));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t}",
"main",
"{\n\t\t\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tint[] ara = new int[5];\n\t\t\n\t\tfor(int i = 0;i<ara.length;i++) {\n\t\t\tara[i] = in.nextInt();\n\t\t\t\n\t\t\tif(ara[i] == 0) {\n\t\t\t\tSystem.out.println((i+1));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int[] ara = new int[5];",
"ara",
"new int[5]",
"5",
"for(int i = 0;i<ara.length;i++) {\n\t\t\tara[i] = in.nextInt();\n\t\t\t\n\t\t\tif(ara[i] == 0) {\n\t\t\t\tSystem.out.println((i+1));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<ara.length",
"i",
"ara.length",
"ara",
"ara.length",
"i++",
"i++",
"i",
"{\n\t\t\tara[i] = in.nextInt();\n\t\t\t\n\t\t\tif(ara[i] == 0) {\n\t\t\t\tSystem.out.println((i+1));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tara[i] = in.nextInt();\n\t\t\t\n\t\t\tif(ara[i] == 0) {\n\t\t\t\tSystem.out.println((i+1));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"ara[i] = in.nextInt()",
"ara[i]",
"ara",
"i",
"in.nextInt()",
"in.nextInt",
"in",
"if(ara[i] == 0) {\n\t\t\t\tSystem.out.println((i+1));\n\t\t\t\tbreak;\n\t\t\t}",
"ara[i] == 0",
"ara[i]",
"ara",
"i",
"0",
"{\n\t\t\t\tSystem.out.println((i+1));\n\t\t\t\tbreak;\n\t\t\t}",
"System.out.println((i+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"(i+1)",
"i",
"1",
"break;",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tint[] ara = new int[5];\n\t\t\n\t\tfor(int i = 0;i<ara.length;i++) {\n\t\t\tara[i] = in.nextInt();\n\t\t\t\n\t\t\tif(ara[i] == 0) {\n\t\t\t\tSystem.out.println((i+1));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tint[] ara = new int[5];\n\t\t\n\t\tfor(int i = 0;i<ara.length;i++) {\n\t\t\tara[i] = in.nextInt();\n\t\t\t\n\t\t\tif(ara[i] == 0) {\n\t\t\t\tSystem.out.println((i+1));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int[] ara = new int[5];
for(int i = 0;i<ara.length;i++) {
ara[i] = in.nextInt();
if(ara[i] == 0) {
System.out.println((i+1));
break;
}
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.