node_ids
sequencelengths 4
1.4k
| edge_index
sequencelengths 1
2.22k
| text
sequencelengths 4
1.4k
| source
stringlengths 14
427k
|
---|---|---|---|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
18,
13,
17,
41,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
18,
13,
13,
14,
2,
13,
18,
13,
13,
30,
0,
13,
18,
13,
13,
14,
2,
13,
18,
13,
13,
30,
0,
13,
18,
13,
13,
4,
18,
18,
13,
13,
17,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
108,
5
],
[
108,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
24,
29
],
[
29,
30
],
[
29,
31
],
[
24,
32
],
[
32,
33
],
[
33,
34
],
[
24,
35
],
[
36,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
42,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
8,
49
],
[
49,
50
],
[
49,
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
],
[
67,
69
],
[
69,
70
],
[
69,
71
],
[
66,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
75,
77
],
[
72,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
81,
83
],
[
72,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
87,
89
],
[
84,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
93,
95
],
[
8,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
96,
102
],
[
96,
103
],
[
96,
104
],
[
6,
105
],
[
105,
106
],
[
0,
107
],
[
107,
108
],
[
107,
109
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t long sum = 0;\n\t int a = sc.nextInt();\n\t int[] c = new int[10000];\n\t for(int i = 0; i < a; i++) {\n\t c[i] = sc.nextInt();\n\t }\n\t \n\t int max = c[0];\n\t int min = c[0];\n\t \n\t for (int i = 0; i < a; i++) {\n\t sum += c[i];\n\t if (min > c[i]) {\n\t \tmin = c[i];\n\t } else if (max < c[i]) {\n\t \tmax = c[i];\n\t }\n\t }\n System.out.printf(\"%d %d %d\\n\", min, max, sum);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t long sum = 0;\n\t int a = sc.nextInt();\n\t int[] c = new int[10000];\n\t for(int i = 0; i < a; i++) {\n\t c[i] = sc.nextInt();\n\t }\n\t \n\t int max = c[0];\n\t int min = c[0];\n\t \n\t for (int i = 0; i < a; i++) {\n\t sum += c[i];\n\t if (min > c[i]) {\n\t \tmin = c[i];\n\t } else if (max < c[i]) {\n\t \tmax = c[i];\n\t }\n\t }\n System.out.printf(\"%d %d %d\\n\", min, max, sum);\n }\n}",
"Main",
"public static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t long sum = 0;\n\t int a = sc.nextInt();\n\t int[] c = new int[10000];\n\t for(int i = 0; i < a; i++) {\n\t c[i] = sc.nextInt();\n\t }\n\t \n\t int max = c[0];\n\t int min = c[0];\n\t \n\t for (int i = 0; i < a; i++) {\n\t sum += c[i];\n\t if (min > c[i]) {\n\t \tmin = c[i];\n\t } else if (max < c[i]) {\n\t \tmax = c[i];\n\t }\n\t }\n System.out.printf(\"%d %d %d\\n\", min, max, sum);\n }",
"main",
"{\n\t Scanner sc = new Scanner(System.in);\n\t long sum = 0;\n\t int a = sc.nextInt();\n\t int[] c = new int[10000];\n\t for(int i = 0; i < a; i++) {\n\t c[i] = sc.nextInt();\n\t }\n\t \n\t int max = c[0];\n\t int min = c[0];\n\t \n\t for (int i = 0; i < a; i++) {\n\t sum += c[i];\n\t if (min > c[i]) {\n\t \tmin = c[i];\n\t } else if (max < c[i]) {\n\t \tmax = c[i];\n\t }\n\t }\n System.out.printf(\"%d %d %d\\n\", min, max, sum);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long sum = 0;",
"sum",
"0",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] c = new int[10000];",
"c",
"new int[10000]",
"10000",
"for(int i = 0; i < a; i++) {\n\t c[i] = sc.nextInt();\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a",
"i",
"a",
"i++",
"i++",
"i",
"{\n\t c[i] = sc.nextInt();\n\t }",
"{\n\t c[i] = sc.nextInt();\n\t }",
"c[i] = sc.nextInt()",
"c[i]",
"c",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int max = c[0];",
"max",
"c[0]",
"c",
"0",
"int min = c[0];",
"min",
"c[0]",
"c",
"0",
"for (int i = 0; i < a; i++) {\n\t sum += c[i];\n\t if (min > c[i]) {\n\t \tmin = c[i];\n\t } else if (max < c[i]) {\n\t \tmax = c[i];\n\t }\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a",
"i",
"a",
"i++",
"i++",
"i",
"{\n\t sum += c[i];\n\t if (min > c[i]) {\n\t \tmin = c[i];\n\t } else if (max < c[i]) {\n\t \tmax = c[i];\n\t }\n\t }",
"{\n\t sum += c[i];\n\t if (min > c[i]) {\n\t \tmin = c[i];\n\t } else if (max < c[i]) {\n\t \tmax = c[i];\n\t }\n\t }",
"sum += c[i]",
"sum",
"c[i]",
"c",
"i",
"if (min > c[i]) {\n\t \tmin = c[i];\n\t } else if (max < c[i]) {\n\t \tmax = c[i];\n\t }",
"min > c[i]",
"min",
"c[i]",
"c",
"i",
"{\n\t \tmin = c[i];\n\t }",
"min = c[i]",
"min",
"c[i]",
"c",
"i",
"if (max < c[i]) {\n\t \tmax = c[i];\n\t }",
"max < c[i]",
"max",
"c[i]",
"c",
"i",
"{\n\t \tmax = c[i];\n\t }",
"max = c[i]",
"max",
"c[i]",
"c",
"i",
"System.out.printf(\"%d %d %d\\n\", min, max, sum)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d %d %d\\n\"",
"min",
"max",
"sum",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t long sum = 0;\n\t int a = sc.nextInt();\n\t int[] c = new int[10000];\n\t for(int i = 0; i < a; i++) {\n\t c[i] = sc.nextInt();\n\t }\n\t \n\t int max = c[0];\n\t int min = c[0];\n\t \n\t for (int i = 0; i < a; i++) {\n\t sum += c[i];\n\t if (min > c[i]) {\n\t \tmin = c[i];\n\t } else if (max < c[i]) {\n\t \tmax = c[i];\n\t }\n\t }\n System.out.printf(\"%d %d %d\\n\", min, max, sum);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t long sum = 0;\n\t int a = sc.nextInt();\n\t int[] c = new int[10000];\n\t for(int i = 0; i < a; i++) {\n\t c[i] = sc.nextInt();\n\t }\n\t \n\t int max = c[0];\n\t int min = c[0];\n\t \n\t for (int i = 0; i < a; i++) {\n\t sum += c[i];\n\t if (min > c[i]) {\n\t \tmin = c[i];\n\t } else if (max < c[i]) {\n\t \tmax = c[i];\n\t }\n\t }\n System.out.printf(\"%d %d %d\\n\", min, max, sum);\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long sum = 0;
int a = sc.nextInt();
int[] c = new int[10000];
for(int i = 0; i < a; i++) {
c[i] = sc.nextInt();
}
int max = c[0];
int min = c[0];
for (int i = 0; i < a; i++) {
sum += c[i];
if (min > c[i]) {
min = c[i];
} else if (max < c[i]) {
max = c[i];
}
}
System.out.printf("%d %d %d\n", min, max, sum);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
41,
13,
18,
13,
17,
41,
13,
18,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
13,
18,
13,
13,
30,
0,
13,
18,
13,
13,
14,
2,
13,
18,
13,
13,
30,
0,
13,
18,
13,
13,
0,
13,
18,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
138,
11
],
[
138,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
14,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
14,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
14,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
61,
63
],
[
14,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
66,
68
],
[
14,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
14,
74
],
[
74,
75
],
[
74,
76
],
[
14,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
84,
86
],
[
77,
87
],
[
87,
88
],
[
88,
89
],
[
77,
90
],
[
91,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
95,
97
],
[
92,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
101,
103
],
[
92,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
107,
109
],
[
104,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
113,
115
],
[
91,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
118,
120
],
[
14,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
129,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
127,
133
],
[
129,
134
],
[
12,
135
],
[
135,
136
],
[
0,
137
],
[
137,
138
],
[
137,
139
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint i = Integer.parseInt(br.readLine());\n\n\t\tint [] su = new int[i];\n\n\t\tString str = br.readLine();\n\t\tString[] s = str.split(\" \");\n\n\t\tfor(int n = 0; n < i; n++){\n\t\t\tsu[n] = Integer.parseInt(s[n]);\n\t\t}\n\n\t\tint max = su[0];\n\t\tint min = su[0];\n\t\tlong sum = 0;\n\n\t\tfor(int k = 0; k < su.length; k ++){\n\t\t\tif(max < su[k]){\n\t\t\t\tmax = su[k];\n\n\t\t\t}else if (min > su[k]){\n\t\t\t\tmin = su[k];\n\t\t\t}\n\t\t\tsum += su[k];\n\t\t}\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint i = Integer.parseInt(br.readLine());\n\n\t\tint [] su = new int[i];\n\n\t\tString str = br.readLine();\n\t\tString[] s = str.split(\" \");\n\n\t\tfor(int n = 0; n < i; n++){\n\t\t\tsu[n] = Integer.parseInt(s[n]);\n\t\t}\n\n\t\tint max = su[0];\n\t\tint min = su[0];\n\t\tlong sum = 0;\n\n\t\tfor(int k = 0; k < su.length; k ++){\n\t\t\tif(max < su[k]){\n\t\t\t\tmax = su[k];\n\n\t\t\t}else if (min > su[k]){\n\t\t\t\tmin = su[k];\n\t\t\t}\n\t\t\tsum += su[k];\n\t\t}\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}\n}",
"Main",
"public static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint i = Integer.parseInt(br.readLine());\n\n\t\tint [] su = new int[i];\n\n\t\tString str = br.readLine();\n\t\tString[] s = str.split(\" \");\n\n\t\tfor(int n = 0; n < i; n++){\n\t\t\tsu[n] = Integer.parseInt(s[n]);\n\t\t}\n\n\t\tint max = su[0];\n\t\tint min = su[0];\n\t\tlong sum = 0;\n\n\t\tfor(int k = 0; k < su.length; k ++){\n\t\t\tif(max < su[k]){\n\t\t\t\tmax = su[k];\n\n\t\t\t}else if (min > su[k]){\n\t\t\t\tmin = su[k];\n\t\t\t}\n\t\t\tsum += su[k];\n\t\t}\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint i = Integer.parseInt(br.readLine());\n\n\t\tint [] su = new int[i];\n\n\t\tString str = br.readLine();\n\t\tString[] s = str.split(\" \");\n\n\t\tfor(int n = 0; n < i; n++){\n\t\t\tsu[n] = Integer.parseInt(s[n]);\n\t\t}\n\n\t\tint max = su[0];\n\t\tint min = su[0];\n\t\tlong sum = 0;\n\n\t\tfor(int k = 0; k < su.length; k ++){\n\t\t\tif(max < su[k]){\n\t\t\t\tmax = su[k];\n\n\t\t\t}else if (min > su[k]){\n\t\t\t\tmin = su[k];\n\t\t\t}\n\t\t\tsum += su[k];\n\t\t}\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int i = Integer.parseInt(br.readLine());",
"i",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int [] su = new int[i];",
"su",
"new int[i]",
"i",
"String str = br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"String[] s = str.split(\" \");",
"s",
"str.split(\" \")",
"str.split",
"str",
"\" \"",
"for(int n = 0; n < i; n++){\n\t\t\tsu[n] = Integer.parseInt(s[n]);\n\t\t}",
"int n = 0;",
"int n = 0;",
"n",
"0",
"n < i",
"n",
"i",
"n++",
"n++",
"n",
"{\n\t\t\tsu[n] = Integer.parseInt(s[n]);\n\t\t}",
"{\n\t\t\tsu[n] = Integer.parseInt(s[n]);\n\t\t}",
"su[n] = Integer.parseInt(s[n])",
"su[n]",
"su",
"n",
"Integer.parseInt(s[n])",
"Integer.parseInt",
"Integer",
"s[n]",
"s",
"n",
"int max = su[0];",
"max",
"su[0]",
"su",
"0",
"int min = su[0];",
"min",
"su[0]",
"su",
"0",
"long sum = 0;",
"sum",
"0",
"for(int k = 0; k < su.length; k ++){\n\t\t\tif(max < su[k]){\n\t\t\t\tmax = su[k];\n\n\t\t\t}else if (min > su[k]){\n\t\t\t\tmin = su[k];\n\t\t\t}\n\t\t\tsum += su[k];\n\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < su.length",
"k",
"su.length",
"su",
"su.length",
"k ++",
"k ++",
"k",
"{\n\t\t\tif(max < su[k]){\n\t\t\t\tmax = su[k];\n\n\t\t\t}else if (min > su[k]){\n\t\t\t\tmin = su[k];\n\t\t\t}\n\t\t\tsum += su[k];\n\t\t}",
"{\n\t\t\tif(max < su[k]){\n\t\t\t\tmax = su[k];\n\n\t\t\t}else if (min > su[k]){\n\t\t\t\tmin = su[k];\n\t\t\t}\n\t\t\tsum += su[k];\n\t\t}",
"if(max < su[k]){\n\t\t\t\tmax = su[k];\n\n\t\t\t}else if (min > su[k]){\n\t\t\t\tmin = su[k];\n\t\t\t}",
"max < su[k]",
"max",
"su[k]",
"su",
"k",
"{\n\t\t\t\tmax = su[k];\n\n\t\t\t}",
"max = su[k]",
"max",
"su[k]",
"su",
"k",
"if (min > su[k]){\n\t\t\t\tmin = su[k];\n\t\t\t}",
"min > su[k]",
"min",
"su[k]",
"su",
"k",
"{\n\t\t\t\tmin = su[k];\n\t\t\t}",
"min = su[k]",
"min",
"su[k]",
"su",
"k",
"sum += su[k]",
"sum",
"su[k]",
"su",
"k",
"System.out.println(min+\" \"+max+\" \"+sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min+\" \"+max+\" \"+sum",
"\" \"",
"max",
"min+\" \"+max+\" \"+sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint i = Integer.parseInt(br.readLine());\n\n\t\tint [] su = new int[i];\n\n\t\tString str = br.readLine();\n\t\tString[] s = str.split(\" \");\n\n\t\tfor(int n = 0; n < i; n++){\n\t\t\tsu[n] = Integer.parseInt(s[n]);\n\t\t}\n\n\t\tint max = su[0];\n\t\tint min = su[0];\n\t\tlong sum = 0;\n\n\t\tfor(int k = 0; k < su.length; k ++){\n\t\t\tif(max < su[k]){\n\t\t\t\tmax = su[k];\n\n\t\t\t}else if (min > su[k]){\n\t\t\t\tmin = su[k];\n\t\t\t}\n\t\t\tsum += su[k];\n\t\t}\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint i = Integer.parseInt(br.readLine());\n\n\t\tint [] su = new int[i];\n\n\t\tString str = br.readLine();\n\t\tString[] s = str.split(\" \");\n\n\t\tfor(int n = 0; n < i; n++){\n\t\t\tsu[n] = Integer.parseInt(s[n]);\n\t\t}\n\n\t\tint max = su[0];\n\t\tint min = su[0];\n\t\tlong sum = 0;\n\n\t\tfor(int k = 0; k < su.length; k ++){\n\t\t\tif(max < su[k]){\n\t\t\t\tmax = su[k];\n\n\t\t\t}else if (min > su[k]){\n\t\t\t\tmin = su[k];\n\t\t\t}\n\t\t\tsum += su[k];\n\t\t}\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args)throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int i = Integer.parseInt(br.readLine());
int [] su = new int[i];
String str = br.readLine();
String[] s = str.split(" ");
for(int n = 0; n < i; n++){
su[n] = Integer.parseInt(s[n]);
}
int max = su[0];
int min = su[0];
long sum = 0;
for(int k = 0; k < su.length; k ++){
if(max < su[k]){
max = su[k];
}else if (min > su[k]){
min = su[k];
}
sum += su[k];
}
System.out.println(min+" "+max+" "+sum);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
20,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
0,
18,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
2,
18,
13,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
2,
18,
13,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
2,
13,
17,
30,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
2,
13,
17,
0,
18,
13,
2,
13,
17,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
18,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
18,
13,
2,
18,
13,
13,
17,
17,
18,
13,
17,
17,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
30,
40
],
[
40,
41
],
[
41,
42
],
[
30,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
44,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
44,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
8,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
61,
73
],
[
73,
74
],
[
74,
75
],
[
61,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
78,
90
],
[
90,
91
],
[
91,
92
],
[
78,
93
],
[
94,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
102,
104
],
[
95,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
108,
110
],
[
105,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
117,
119
],
[
105,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
123,
125
],
[
120,
126
],
[
8,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
134,
136
],
[
127,
137
],
[
137,
138
],
[
138,
139
],
[
127,
140
],
[
141,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
146,
148
],
[
8,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
149,
154
],
[
157,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
157,
165
],
[
156,
166
],
[
166,
167
],
[
166,
168
],
[
155,
169
],
[
157,
170
],
[
6,
171
],
[
171,
172
]
] | [
"\nimport java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String args[]){\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t//整数の数nを受け取る\n\t\tString s1 = sc.next();\n\t int n = Integer.parseInt(s1);\n\t int a[] = new int[n];\n\t long sum = 0;\n\t \n\t //n回、整数を読み取り、配列に入れる\n\t for(int i = 0; i <= n-1; i++){\n\t \tString s2 = sc.next();\n\t\t int j = Integer.parseInt(s2);\n\t\t a[i] = j;\n\t }\n\t \n\t //配列の0番目に大きな数、最後に小さな数が来るように並べ変える\n\t for(int i = 0; i <= a.length-1; i++){\n\t \tfor(int j = 0; j <= a.length-2; j++){\n\t \t\tif(a[j] < a[j+1]){\n\t \t\t\tint w = a[j];\n\t \t\t\ta[j] = a[j+1];\n\t \t\t\ta[j+1] = w;\n\t \t\t}\n\t \t}\n\t }\n\t \n\t //配列に格納されている整数の合計を計算\n\t for(int i = 0; i < a.length; i++){\n\t \tsum = sum + (long)a[i];\n\t }\n\t \n\t //最小値、最大値、合計を表示\n\t System.out.println(a[a.length-1] + \" \" + a[0] + \" \" + sum);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\tpublic static void main(String args[]){\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t//整数の数nを受け取る\n\t\tString s1 = sc.next();\n\t int n = Integer.parseInt(s1);\n\t int a[] = new int[n];\n\t long sum = 0;\n\t \n\t //n回、整数を読み取り、配列に入れる\n\t for(int i = 0; i <= n-1; i++){\n\t \tString s2 = sc.next();\n\t\t int j = Integer.parseInt(s2);\n\t\t a[i] = j;\n\t }\n\t \n\t //配列の0番目に大きな数、最後に小さな数が来るように並べ変える\n\t for(int i = 0; i <= a.length-1; i++){\n\t \tfor(int j = 0; j <= a.length-2; j++){\n\t \t\tif(a[j] < a[j+1]){\n\t \t\t\tint w = a[j];\n\t \t\t\ta[j] = a[j+1];\n\t \t\t\ta[j+1] = w;\n\t \t\t}\n\t \t}\n\t }\n\t \n\t //配列に格納されている整数の合計を計算\n\t for(int i = 0; i < a.length; i++){\n\t \tsum = sum + (long)a[i];\n\t }\n\t \n\t //最小値、最大値、合計を表示\n\t System.out.println(a[a.length-1] + \" \" + a[0] + \" \" + sum);\n\t}\n}",
"Main",
"public static void main(String args[]){\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t//整数の数nを受け取る\n\t\tString s1 = sc.next();\n\t int n = Integer.parseInt(s1);\n\t int a[] = new int[n];\n\t long sum = 0;\n\t \n\t //n回、整数を読み取り、配列に入れる\n\t for(int i = 0; i <= n-1; i++){\n\t \tString s2 = sc.next();\n\t\t int j = Integer.parseInt(s2);\n\t\t a[i] = j;\n\t }\n\t \n\t //配列の0番目に大きな数、最後に小さな数が来るように並べ変える\n\t for(int i = 0; i <= a.length-1; i++){\n\t \tfor(int j = 0; j <= a.length-2; j++){\n\t \t\tif(a[j] < a[j+1]){\n\t \t\t\tint w = a[j];\n\t \t\t\ta[j] = a[j+1];\n\t \t\t\ta[j+1] = w;\n\t \t\t}\n\t \t}\n\t }\n\t \n\t //配列に格納されている整数の合計を計算\n\t for(int i = 0; i < a.length; i++){\n\t \tsum = sum + (long)a[i];\n\t }\n\t \n\t //最小値、最大値、合計を表示\n\t System.out.println(a[a.length-1] + \" \" + a[0] + \" \" + sum);\n\t}",
"main",
"{\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t//整数の数nを受け取る\n\t\tString s1 = sc.next();\n\t int n = Integer.parseInt(s1);\n\t int a[] = new int[n];\n\t long sum = 0;\n\t \n\t //n回、整数を読み取り、配列に入れる\n\t for(int i = 0; i <= n-1; i++){\n\t \tString s2 = sc.next();\n\t\t int j = Integer.parseInt(s2);\n\t\t a[i] = j;\n\t }\n\t \n\t //配列の0番目に大きな数、最後に小さな数が来るように並べ変える\n\t for(int i = 0; i <= a.length-1; i++){\n\t \tfor(int j = 0; j <= a.length-2; j++){\n\t \t\tif(a[j] < a[j+1]){\n\t \t\t\tint w = a[j];\n\t \t\t\ta[j] = a[j+1];\n\t \t\t\ta[j+1] = w;\n\t \t\t}\n\t \t}\n\t }\n\t \n\t //配列に格納されている整数の合計を計算\n\t for(int i = 0; i < a.length; i++){\n\t \tsum = sum + (long)a[i];\n\t }\n\t \n\t //最小値、最大値、合計を表示\n\t System.out.println(a[a.length-1] + \" \" + a[0] + \" \" + sum);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s1 = sc.next();",
"s1",
"sc.next()",
"sc.next",
"sc",
"int n = Integer.parseInt(s1);",
"n",
"Integer.parseInt(s1)",
"Integer.parseInt",
"Integer",
"s1",
"int a[] = new int[n];",
"a",
"new int[n]",
"n",
"long sum = 0;",
"sum",
"0",
"for(int i = 0; i <= n-1; i++){\n\t \tString s2 = sc.next();\n\t\t int j = Integer.parseInt(s2);\n\t\t a[i] = j;\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= n-1",
"i",
"n-1",
"n",
"1",
"i++",
"i++",
"i",
"{\n\t \tString s2 = sc.next();\n\t\t int j = Integer.parseInt(s2);\n\t\t a[i] = j;\n\t }",
"{\n\t \tString s2 = sc.next();\n\t\t int j = Integer.parseInt(s2);\n\t\t a[i] = j;\n\t }",
"String s2 = sc.next();",
"s2",
"sc.next()",
"sc.next",
"sc",
"int j = Integer.parseInt(s2);",
"j",
"Integer.parseInt(s2)",
"Integer.parseInt",
"Integer",
"s2",
"a[i] = j",
"a[i]",
"a",
"i",
"j",
"for(int i = 0; i <= a.length-1; i++){\n\t \tfor(int j = 0; j <= a.length-2; j++){\n\t \t\tif(a[j] < a[j+1]){\n\t \t\t\tint w = a[j];\n\t \t\t\ta[j] = a[j+1];\n\t \t\t\ta[j+1] = w;\n\t \t\t}\n\t \t}\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= a.length-1",
"i",
"a.length-1",
"a.length",
"a",
"a.length",
"1",
"i++",
"i++",
"i",
"{\n\t \tfor(int j = 0; j <= a.length-2; j++){\n\t \t\tif(a[j] < a[j+1]){\n\t \t\t\tint w = a[j];\n\t \t\t\ta[j] = a[j+1];\n\t \t\t\ta[j+1] = w;\n\t \t\t}\n\t \t}\n\t }",
"{\n\t \tfor(int j = 0; j <= a.length-2; j++){\n\t \t\tif(a[j] < a[j+1]){\n\t \t\t\tint w = a[j];\n\t \t\t\ta[j] = a[j+1];\n\t \t\t\ta[j+1] = w;\n\t \t\t}\n\t \t}\n\t }",
"for(int j = 0; j <= a.length-2; j++){\n\t \t\tif(a[j] < a[j+1]){\n\t \t\t\tint w = a[j];\n\t \t\t\ta[j] = a[j+1];\n\t \t\t\ta[j+1] = w;\n\t \t\t}\n\t \t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j <= a.length-2",
"j",
"a.length-2",
"a.length",
"a",
"a.length",
"2",
"j++",
"j++",
"j",
"{\n\t \t\tif(a[j] < a[j+1]){\n\t \t\t\tint w = a[j];\n\t \t\t\ta[j] = a[j+1];\n\t \t\t\ta[j+1] = w;\n\t \t\t}\n\t \t}",
"{\n\t \t\tif(a[j] < a[j+1]){\n\t \t\t\tint w = a[j];\n\t \t\t\ta[j] = a[j+1];\n\t \t\t\ta[j+1] = w;\n\t \t\t}\n\t \t}",
"if(a[j] < a[j+1]){\n\t \t\t\tint w = a[j];\n\t \t\t\ta[j] = a[j+1];\n\t \t\t\ta[j+1] = w;\n\t \t\t}",
"a[j] < a[j+1]",
"a[j]",
"a",
"j",
"a[j+1]",
"a",
"j+1",
"j",
"1",
"{\n\t \t\t\tint w = a[j];\n\t \t\t\ta[j] = a[j+1];\n\t \t\t\ta[j+1] = w;\n\t \t\t}",
"int w = a[j];",
"w",
"a[j]",
"a",
"j",
"a[j] = a[j+1]",
"a[j]",
"a",
"j",
"a[j+1]",
"a",
"j+1",
"j",
"1",
"a[j+1] = w",
"a[j+1]",
"a",
"j+1",
"j",
"1",
"w",
"for(int i = 0; i < a.length; i++){\n\t \tsum = sum + (long)a[i];\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"{\n\t \tsum = sum + (long)a[i];\n\t }",
"{\n\t \tsum = sum + (long)a[i];\n\t }",
"sum = sum + (long)a[i]",
"sum",
"sum + (long)a[i]",
"sum",
"(long)a[i]",
"a",
"i",
"System.out.println(a[a.length-1] + \" \" + a[0] + \" \" + sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"a[a.length-1] + \" \" + a[0] + \" \" + sum",
"\" \"",
"a[0]",
"a[a.length-1] + \" \" + a[0] + \" \" + sum",
"a[a.length-1]",
"a",
"a.length-1",
"a.length",
"a",
"a.length",
"1",
"\" \"",
"a[0]",
"a",
"0",
"\" \"",
"sum",
"String args[]",
"args"
] |
import java.util.Scanner;
class Main {
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
//整数の数nを受け取る
String s1 = sc.next();
int n = Integer.parseInt(s1);
int a[] = new int[n];
long sum = 0;
//n回、整数を読み取り、配列に入れる
for(int i = 0; i <= n-1; i++){
String s2 = sc.next();
int j = Integer.parseInt(s2);
a[i] = j;
}
//配列の0番目に大きな数、最後に小さな数が来るように並べ変える
for(int i = 0; i <= a.length-1; i++){
for(int j = 0; j <= a.length-2; j++){
if(a[j] < a[j+1]){
int w = a[j];
a[j] = a[j+1];
a[j+1] = w;
}
}
}
//配列に格納されている整数の合計を計算
for(int i = 0; i < a.length; i++){
sum = sum + (long)a[i];
}
//最小値、最大値、合計を表示
System.out.println(a[a.length-1] + " " + a[0] + " " + sum);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
28,
13,
13,
30,
30,
0,
13,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
18,
13,
17,
17,
18,
13,
2,
18,
13,
13,
17,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
87,
8
],
[
87,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
24,
29
],
[
29,
30
],
[
29,
31
],
[
24,
32
],
[
32,
33
],
[
33,
34
],
[
24,
35
],
[
36,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
42,
43
],
[
11,
44
],
[
44,
45
],
[
45,
46
],
[
11,
47
],
[
47,
48
],
[
47,
49
],
[
11,
50
],
[
50,
51
],
[
50,
52
],
[
50,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
11,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
11,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
70,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
69,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
68,
82
],
[
70,
83
],
[
9,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
] | [
"import java.text.DecimalFormat;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws java.io.IOException{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] dataset = new int[n];\n for (int i=0;i<n;i++){\n dataset[i] = sc.nextInt();\n }\n sc.close();\n long sum = 0;\n\n for (int elem : dataset){\n sum += elem;\n }\n Arrays.sort(dataset);\n System.out.println(dataset[0] + \" \" + dataset[dataset.length-1]+ \" \"+sum);\n }\n}",
"import java.text.DecimalFormat;",
"DecimalFormat",
"java.text",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws java.io.IOException{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] dataset = new int[n];\n for (int i=0;i<n;i++){\n dataset[i] = sc.nextInt();\n }\n sc.close();\n long sum = 0;\n\n for (int elem : dataset){\n sum += elem;\n }\n Arrays.sort(dataset);\n System.out.println(dataset[0] + \" \" + dataset[dataset.length-1]+ \" \"+sum);\n }\n}",
"Main",
"public static void main(String[] args) throws java.io.IOException{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] dataset = new int[n];\n for (int i=0;i<n;i++){\n dataset[i] = sc.nextInt();\n }\n sc.close();\n long sum = 0;\n\n for (int elem : dataset){\n sum += elem;\n }\n Arrays.sort(dataset);\n System.out.println(dataset[0] + \" \" + dataset[dataset.length-1]+ \" \"+sum);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] dataset = new int[n];\n for (int i=0;i<n;i++){\n dataset[i] = sc.nextInt();\n }\n sc.close();\n long sum = 0;\n\n for (int elem : dataset){\n sum += elem;\n }\n Arrays.sort(dataset);\n System.out.println(dataset[0] + \" \" + dataset[dataset.length-1]+ \" \"+sum);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] dataset = new int[n];",
"dataset",
"new int[n]",
"n",
"for (int i=0;i<n;i++){\n dataset[i] = sc.nextInt();\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n dataset[i] = sc.nextInt();\n }",
"{\n dataset[i] = sc.nextInt();\n }",
"dataset[i] = sc.nextInt()",
"dataset[i]",
"dataset",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.close()",
"sc.close",
"sc",
"long sum = 0;",
"sum",
"0",
"for (int elem : dataset){\n sum += elem;\n }",
"int elem",
"dataset",
"{\n sum += elem;\n }",
"{\n sum += elem;\n }",
"sum += elem",
"sum",
"elem",
"Arrays.sort(dataset)",
"Arrays.sort",
"Arrays",
"dataset",
"System.out.println(dataset[0] + \" \" + dataset[dataset.length-1]+ \" \"+sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"dataset[0] + \" \" + dataset[dataset.length-1]+ \" \"+sum",
"\" \"",
"dataset[dataset.length-1]",
"dataset[0] + \" \" + dataset[dataset.length-1]+ \" \"+sum",
"dataset[0]",
"dataset",
"0",
"\" \"",
"dataset[dataset.length-1]",
"dataset",
"dataset.length-1",
"dataset.length",
"dataset",
"dataset.length",
"1",
"\" \"",
"sum",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws java.io.IOException{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] dataset = new int[n];\n for (int i=0;i<n;i++){\n dataset[i] = sc.nextInt();\n }\n sc.close();\n long sum = 0;\n\n for (int elem : dataset){\n sum += elem;\n }\n Arrays.sort(dataset);\n System.out.println(dataset[0] + \" \" + dataset[dataset.length-1]+ \" \"+sum);\n }\n}",
"public class Main {\n public static void main(String[] args) throws java.io.IOException{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] dataset = new int[n];\n for (int i=0;i<n;i++){\n dataset[i] = sc.nextInt();\n }\n sc.close();\n long sum = 0;\n\n for (int elem : dataset){\n sum += elem;\n }\n Arrays.sort(dataset);\n System.out.println(dataset[0] + \" \" + dataset[dataset.length-1]+ \" \"+sum);\n }\n}",
"Main"
] | import java.text.DecimalFormat;
import java.util.*;
public class Main {
public static void main(String[] args) throws java.io.IOException{
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int[] dataset = new int[n];
for (int i=0;i<n;i++){
dataset[i] = sc.nextInt();
}
sc.close();
long sum = 0;
for (int elem : dataset){
sum += elem;
}
Arrays.sort(dataset);
System.out.println(dataset[0] + " " + dataset[dataset.length-1]+ " "+sum);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
30,
14,
2,
13,
13,
30,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
97,
5
],
[
97,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
52,
54
],
[
48,
55
],
[
55,
56
],
[
55,
57
],
[
44,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
58,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
77,
79
],
[
8,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
88,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
86,
92
],
[
88,
93
],
[
6,
94
],
[
94,
95
],
[
0,
96
],
[
96,
97
],
[
96,
98
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tint min = 0;\n\t\tint max = 0;\n\t\tlong amount = 0;\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint x = scan.nextInt();\n\t\t\tif(i == 0){\n\t\t\t\tmin = x;\n\t\t\t\tmax = x;\n\t\t\t\tamount = x;\n\t\t\t}else{\n\t\t\t\tif(x < min){\n\t\t\t\t\tmin = x;\n\t\t\t\t}else if(x > max){\n\t\t\t\t\tmax = x;\n\t\t\t\t}\n\t\t\t\tamount = amount + x;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + amount);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tint min = 0;\n\t\tint max = 0;\n\t\tlong amount = 0;\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint x = scan.nextInt();\n\t\t\tif(i == 0){\n\t\t\t\tmin = x;\n\t\t\t\tmax = x;\n\t\t\t\tamount = x;\n\t\t\t}else{\n\t\t\t\tif(x < min){\n\t\t\t\t\tmin = x;\n\t\t\t\t}else if(x > max){\n\t\t\t\t\tmax = x;\n\t\t\t\t}\n\t\t\t\tamount = amount + x;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + amount);\n\t}\n}",
"Main",
"public static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tint min = 0;\n\t\tint max = 0;\n\t\tlong amount = 0;\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint x = scan.nextInt();\n\t\t\tif(i == 0){\n\t\t\t\tmin = x;\n\t\t\t\tmax = x;\n\t\t\t\tamount = x;\n\t\t\t}else{\n\t\t\t\tif(x < min){\n\t\t\t\t\tmin = x;\n\t\t\t\t}else if(x > max){\n\t\t\t\t\tmax = x;\n\t\t\t\t}\n\t\t\t\tamount = amount + x;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + amount);\n\t}",
"main",
"{\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tint min = 0;\n\t\tint max = 0;\n\t\tlong amount = 0;\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint x = scan.nextInt();\n\t\t\tif(i == 0){\n\t\t\t\tmin = x;\n\t\t\t\tmax = x;\n\t\t\t\tamount = x;\n\t\t\t}else{\n\t\t\t\tif(x < min){\n\t\t\t\t\tmin = x;\n\t\t\t\t}else if(x > max){\n\t\t\t\t\tmax = x;\n\t\t\t\t}\n\t\t\t\tamount = amount + x;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + amount);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int min = 0;",
"min",
"0",
"int max = 0;",
"max",
"0",
"long amount = 0;",
"amount",
"0",
"for(int i = 0; i < n; i++){\n\t\t\tint x = scan.nextInt();\n\t\t\tif(i == 0){\n\t\t\t\tmin = x;\n\t\t\t\tmax = x;\n\t\t\t\tamount = x;\n\t\t\t}else{\n\t\t\t\tif(x < min){\n\t\t\t\t\tmin = x;\n\t\t\t\t}else if(x > max){\n\t\t\t\t\tmax = x;\n\t\t\t\t}\n\t\t\t\tamount = amount + x;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint x = scan.nextInt();\n\t\t\tif(i == 0){\n\t\t\t\tmin = x;\n\t\t\t\tmax = x;\n\t\t\t\tamount = x;\n\t\t\t}else{\n\t\t\t\tif(x < min){\n\t\t\t\t\tmin = x;\n\t\t\t\t}else if(x > max){\n\t\t\t\t\tmax = x;\n\t\t\t\t}\n\t\t\t\tamount = amount + x;\n\t\t\t}\n\t\t}",
"{\n\t\t\tint x = scan.nextInt();\n\t\t\tif(i == 0){\n\t\t\t\tmin = x;\n\t\t\t\tmax = x;\n\t\t\t\tamount = x;\n\t\t\t}else{\n\t\t\t\tif(x < min){\n\t\t\t\t\tmin = x;\n\t\t\t\t}else if(x > max){\n\t\t\t\t\tmax = x;\n\t\t\t\t}\n\t\t\t\tamount = amount + x;\n\t\t\t}\n\t\t}",
"int x = scan.nextInt();",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if(i == 0){\n\t\t\t\tmin = x;\n\t\t\t\tmax = x;\n\t\t\t\tamount = x;\n\t\t\t}else{\n\t\t\t\tif(x < min){\n\t\t\t\t\tmin = x;\n\t\t\t\t}else if(x > max){\n\t\t\t\t\tmax = x;\n\t\t\t\t}\n\t\t\t\tamount = amount + x;\n\t\t\t}",
"i == 0",
"i",
"0",
"{\n\t\t\t\tmin = x;\n\t\t\t\tmax = x;\n\t\t\t\tamount = x;\n\t\t\t}",
"min = x",
"min",
"x",
"max = x",
"max",
"x",
"amount = x",
"amount",
"x",
"{\n\t\t\t\tif(x < min){\n\t\t\t\t\tmin = x;\n\t\t\t\t}else if(x > max){\n\t\t\t\t\tmax = x;\n\t\t\t\t}\n\t\t\t\tamount = amount + x;\n\t\t\t}",
"if(x < min){\n\t\t\t\t\tmin = x;\n\t\t\t\t}else if(x > max){\n\t\t\t\t\tmax = x;\n\t\t\t\t}",
"x < min",
"x",
"min",
"{\n\t\t\t\t\tmin = x;\n\t\t\t\t}",
"min = x",
"min",
"x",
"if(x > max){\n\t\t\t\t\tmax = x;\n\t\t\t\t}",
"x > max",
"x",
"max",
"{\n\t\t\t\t\tmax = x;\n\t\t\t\t}",
"max = x",
"max",
"x",
"amount = amount + x",
"amount",
"amount + x",
"amount",
"x",
"System.out.println(min + \" \" + max + \" \" + amount)",
"System.out.println",
"System.out",
"System",
"System.out",
"min + \" \" + max + \" \" + amount",
"\" \"",
"max",
"min + \" \" + max + \" \" + amount",
"min",
"\" \"",
"max",
"\" \"",
"amount",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tint min = 0;\n\t\tint max = 0;\n\t\tlong amount = 0;\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint x = scan.nextInt();\n\t\t\tif(i == 0){\n\t\t\t\tmin = x;\n\t\t\t\tmax = x;\n\t\t\t\tamount = x;\n\t\t\t}else{\n\t\t\t\tif(x < min){\n\t\t\t\t\tmin = x;\n\t\t\t\t}else if(x > max){\n\t\t\t\t\tmax = x;\n\t\t\t\t}\n\t\t\t\tamount = amount + x;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + amount);\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tint min = 0;\n\t\tint max = 0;\n\t\tlong amount = 0;\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint x = scan.nextInt();\n\t\t\tif(i == 0){\n\t\t\t\tmin = x;\n\t\t\t\tmax = x;\n\t\t\t\tamount = x;\n\t\t\t}else{\n\t\t\t\tif(x < min){\n\t\t\t\t\tmin = x;\n\t\t\t\t}else if(x > max){\n\t\t\t\t\tmax = x;\n\t\t\t\t}\n\t\t\t\tamount = amount + x;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + amount);\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int min = 0;
int max = 0;
long amount = 0;
for(int i = 0; i < n; i++){
int x = scan.nextInt();
if(i == 0){
min = x;
max = x;
amount = x;
}else{
if(x < min){
min = x;
}else if(x > max){
max = x;
}
amount = amount + x;
}
}
System.out.println(min + " " + max + " " + amount);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
40,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
2,
13,
13,
0,
13,
13,
14,
2,
13,
13,
0,
13,
13,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
49,
51
],
[
39,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
56,
58
],
[
39,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
8,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
72,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
70,
76
],
[
72,
77
],
[
6,
78
],
[
78,
79
]
] | [
"import java.util.Scanner;\nclass Main{\npublic static void main(String[] args){\nScanner scan=new Scanner(System.in);\nint b=scan.nextInt();\nlong min=1000000,max=-10000000,sum=0;\nfor(int a=0;a<b;a++){\nint c=scan.nextInt();\nif(min>c)\nmin=c;\nif(max<c)\nmax=c;\nsum=sum+c;\n}\nSystem.out.println(min+\" \"+max+\" \"+sum);\n}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\npublic static void main(String[] args){\nScanner scan=new Scanner(System.in);\nint b=scan.nextInt();\nlong min=1000000,max=-10000000,sum=0;\nfor(int a=0;a<b;a++){\nint c=scan.nextInt();\nif(min>c)\nmin=c;\nif(max<c)\nmax=c;\nsum=sum+c;\n}\nSystem.out.println(min+\" \"+max+\" \"+sum);\n}\n}",
"Main",
"public static void main(String[] args){\nScanner scan=new Scanner(System.in);\nint b=scan.nextInt();\nlong min=1000000,max=-10000000,sum=0;\nfor(int a=0;a<b;a++){\nint c=scan.nextInt();\nif(min>c)\nmin=c;\nif(max<c)\nmax=c;\nsum=sum+c;\n}\nSystem.out.println(min+\" \"+max+\" \"+sum);\n}",
"main",
"{\nScanner scan=new Scanner(System.in);\nint b=scan.nextInt();\nlong min=1000000,max=-10000000,sum=0;\nfor(int a=0;a<b;a++){\nint c=scan.nextInt();\nif(min>c)\nmin=c;\nif(max<c)\nmax=c;\nsum=sum+c;\n}\nSystem.out.println(min+\" \"+max+\" \"+sum);\n}",
"Scanner scan=new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int b=scan.nextInt();",
"b",
"scan.nextInt()",
"scan.nextInt",
"scan",
"long min=1000000",
"min",
"1000000",
"max=-10000000",
"max",
"-10000000",
"10000000",
"sum=0;",
"sum",
"0",
"for(int a=0;a<b;a++){\nint c=scan.nextInt();\nif(min>c)\nmin=c;\nif(max<c)\nmax=c;\nsum=sum+c;\n}",
"int a=0;",
"int a=0;",
"a",
"0",
"a<b",
"a",
"b",
"a++",
"a++",
"a",
"{\nint c=scan.nextInt();\nif(min>c)\nmin=c;\nif(max<c)\nmax=c;\nsum=sum+c;\n}",
"{\nint c=scan.nextInt();\nif(min>c)\nmin=c;\nif(max<c)\nmax=c;\nsum=sum+c;\n}",
"int c=scan.nextInt();",
"c",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if(min>c)\nmin=c;",
"min>c",
"min",
"c",
"min=c",
"min",
"c",
"if(max<c)\nmax=c;",
"max<c",
"max",
"c",
"max=c",
"max",
"c",
"sum=sum+c",
"sum",
"sum+c",
"sum",
"c",
"System.out.println(min+\" \"+max+\" \"+sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min+\" \"+max+\" \"+sum",
"\" \"",
"max",
"min+\" \"+max+\" \"+sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args"
] | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int b=scan.nextInt();
long min=1000000,max=-10000000,sum=0;
for(int a=0;a<b;a++){
int c=scan.nextInt();
if(min>c)
min=c;
if(max<c)
max=c;
sum=sum+c;
}
System.out.println(min+" "+max+" "+sum);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
40,
17,
41,
13,
20,
0,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
18,
13,
13,
14,
2,
13,
18,
13,
13,
30,
0,
13,
18,
13,
13,
14,
2,
13,
18,
13,
13,
30,
0,
13,
18,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
4,
18,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
11,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
51,
52
],
[
45,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
45,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
58,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
45,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
70,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
8,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
90,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
88,
94
],
[
90,
95
],
[
8,
96
],
[
96,
97
],
[
97,
98
],
[
6,
99
],
[
99,
100
]
] | [
"import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args){\n int n;\n long total = 0;\n //????°???????Constraints????????§?????§?????????\n int min = 1000000;\n //min??¨????§?\n int max = -1000000;\n \t//?¨??????\\??????????????????????????§????????????\n\t\tScanner scanner = new Scanner(System.in);\n\t\tn = scanner.nextInt();\n\t\tint a[] = new int[n];\n\t\t\n\t\tfor(int i = 0;i < n;i++){\n\t\t\ta[i] = scanner.nextInt();\n\t\t\ttotal += a[i];\n\t\t\t\n\t\t\tif(min > a[i]){\n\t\t\t\tmin = a[i];\n\t\t\t}\n\t\t\t\n\t\t\tif(max < a[i]){\n\t\t\t\tmax = a[i];\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(min+\" \"+max+\" \"+total);\n \tscanner.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] args){\n int n;\n long total = 0;\n //????°???????Constraints????????§?????§?????????\n int min = 1000000;\n //min??¨????§?\n int max = -1000000;\n \t//?¨??????\\??????????????????????????§????????????\n\t\tScanner scanner = new Scanner(System.in);\n\t\tn = scanner.nextInt();\n\t\tint a[] = new int[n];\n\t\t\n\t\tfor(int i = 0;i < n;i++){\n\t\t\ta[i] = scanner.nextInt();\n\t\t\ttotal += a[i];\n\t\t\t\n\t\t\tif(min > a[i]){\n\t\t\t\tmin = a[i];\n\t\t\t}\n\t\t\t\n\t\t\tif(max < a[i]){\n\t\t\t\tmax = a[i];\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(min+\" \"+max+\" \"+total);\n \tscanner.close();\n }\n}",
"Main",
"public static void main(String[] args){\n int n;\n long total = 0;\n //????°???????Constraints????????§?????§?????????\n int min = 1000000;\n //min??¨????§?\n int max = -1000000;\n \t//?¨??????\\??????????????????????????§????????????\n\t\tScanner scanner = new Scanner(System.in);\n\t\tn = scanner.nextInt();\n\t\tint a[] = new int[n];\n\t\t\n\t\tfor(int i = 0;i < n;i++){\n\t\t\ta[i] = scanner.nextInt();\n\t\t\ttotal += a[i];\n\t\t\t\n\t\t\tif(min > a[i]){\n\t\t\t\tmin = a[i];\n\t\t\t}\n\t\t\t\n\t\t\tif(max < a[i]){\n\t\t\t\tmax = a[i];\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(min+\" \"+max+\" \"+total);\n \tscanner.close();\n }",
"main",
"{\n int n;\n long total = 0;\n //????°???????Constraints????????§?????§?????????\n int min = 1000000;\n //min??¨????§?\n int max = -1000000;\n \t//?¨??????\\??????????????????????????§????????????\n\t\tScanner scanner = new Scanner(System.in);\n\t\tn = scanner.nextInt();\n\t\tint a[] = new int[n];\n\t\t\n\t\tfor(int i = 0;i < n;i++){\n\t\t\ta[i] = scanner.nextInt();\n\t\t\ttotal += a[i];\n\t\t\t\n\t\t\tif(min > a[i]){\n\t\t\t\tmin = a[i];\n\t\t\t}\n\t\t\t\n\t\t\tif(max < a[i]){\n\t\t\t\tmax = a[i];\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(min+\" \"+max+\" \"+total);\n \tscanner.close();\n }",
"int n;",
"n",
"long total = 0;",
"total",
"0",
"int min = 1000000;",
"min",
"1000000",
"int max = -1000000;",
"max",
"-1000000",
"1000000",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"n = scanner.nextInt()",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int a[] = new int[n];",
"a",
"new int[n]",
"n",
"for(int i = 0;i < n;i++){\n\t\t\ta[i] = scanner.nextInt();\n\t\t\ttotal += a[i];\n\t\t\t\n\t\t\tif(min > a[i]){\n\t\t\t\tmin = a[i];\n\t\t\t}\n\t\t\t\n\t\t\tif(max < a[i]){\n\t\t\t\tmax = a[i];\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\ta[i] = scanner.nextInt();\n\t\t\ttotal += a[i];\n\t\t\t\n\t\t\tif(min > a[i]){\n\t\t\t\tmin = a[i];\n\t\t\t}\n\t\t\t\n\t\t\tif(max < a[i]){\n\t\t\t\tmax = a[i];\n\t\t\t}\n\t\t}",
"{\n\t\t\ta[i] = scanner.nextInt();\n\t\t\ttotal += a[i];\n\t\t\t\n\t\t\tif(min > a[i]){\n\t\t\t\tmin = a[i];\n\t\t\t}\n\t\t\t\n\t\t\tif(max < a[i]){\n\t\t\t\tmax = a[i];\n\t\t\t}\n\t\t}",
"a[i] = scanner.nextInt()",
"a[i]",
"a",
"i",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"total += a[i]",
"total",
"a[i]",
"a",
"i",
"if(min > a[i]){\n\t\t\t\tmin = a[i];\n\t\t\t}",
"min > a[i]",
"min",
"a[i]",
"a",
"i",
"{\n\t\t\t\tmin = a[i];\n\t\t\t}",
"min = a[i]",
"min",
"a[i]",
"a",
"i",
"if(max < a[i]){\n\t\t\t\tmax = a[i];\n\t\t\t}",
"max < a[i]",
"max",
"a[i]",
"a",
"i",
"{\n\t\t\t\tmax = a[i];\n\t\t\t}",
"max = a[i]",
"max",
"a[i]",
"a",
"i",
"System.out.println(min+\" \"+max+\" \"+total)",
"System.out.println",
"System.out",
"System",
"System.out",
"min+\" \"+max+\" \"+total",
"\" \"",
"max",
"min+\" \"+max+\" \"+total",
"min",
"\" \"",
"max",
"\" \"",
"total",
"scanner.close()",
"scanner.close",
"scanner",
"String[] args",
"args"
] | import java.util.Scanner;
class Main{
public static void main(String[] args){
int n;
long total = 0;
//????°???????Constraints????????§?????§?????????
int min = 1000000;
//min??¨????§?
int max = -1000000;
//?¨??????\??????????????????????????§????????????
Scanner scanner = new Scanner(System.in);
n = scanner.nextInt();
int a[] = new int[n];
for(int i = 0;i < n;i++){
a[i] = scanner.nextInt();
total += a[i];
if(min > a[i]){
min = a[i];
}
if(max < a[i]){
max = a[i];
}
}
System.out.println(min+" "+max+" "+total);
scanner.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
20,
13,
41,
13,
17,
14,
2,
2,
17,
13,
2,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
14,
2,
2,
40,
17,
13,
2,
13,
17,
30,
0,
18,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
2,
18,
13,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
2,
18,
13,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
2,
13,
17,
30,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
2,
13,
17,
0,
18,
13,
2,
13,
17,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
18,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
18,
13,
2,
18,
13,
13,
17,
17,
18,
13,
17,
17,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
39,
49
],
[
49,
50
],
[
50,
51
],
[
39,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
53,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
53,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
65,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
38,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
80,
92
],
[
92,
93
],
[
93,
94
],
[
80,
95
],
[
96,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
97,
109
],
[
109,
110
],
[
110,
111
],
[
97,
112
],
[
113,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
121,
123
],
[
114,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
127,
129
],
[
124,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
136,
138
],
[
124,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
142,
144
],
[
139,
145
],
[
38,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
146,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
153,
155
],
[
146,
156
],
[
156,
157
],
[
157,
158
],
[
146,
159
],
[
160,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
165,
167
],
[
8,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
168,
173
],
[
176,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
179,
183
],
[
176,
184
],
[
175,
185
],
[
185,
186
],
[
185,
187
],
[
174,
188
],
[
176,
189
],
[
6,
190
],
[
190,
191
]
] | [
"\nimport java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String args[]){\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t//整数の数nを受け取る\n\t\tString s1 = sc.next();\n\t int n = Integer.parseInt(s1);\n\t int a[] = new int[n];\n\t long sum = 0;\n\t \n\t //整数nが条件にあっているか確認\n\t if(0 <= n && n <= 10000){\n\t \n\t //n回、整数を読み取り、配列に入れる\n\t for(int i = 0; i <= n-1; i++){\n\t \tString s2 = sc.next();\n\t\t int j = Integer.parseInt(s2);\n\t\t \n\t\t //入力された整数が条件(−1000000から1000000)内か確認\n\t\t if(-1000000 <= j && j <=1000000){\n\t\t a[i] = j;\n\t\t }\n\t }\n\t \n\t //配列の0番目に大きな数、最後に小さな数が来るように並べ変える\n\t for(int i = 0; i <= a.length-1; i++){\n\t \tfor(int j = 0; j <= a.length-2; j++){\n\t \t\t if(a[j] < a[j+1]){\n\t \t\t \t int w = a[j];\n\t \t\t \t a[j] = a[j+1];\n\t \t\t \t a[j+1] = w;\n\t \t \t}\n\t \t }\n\t }\n\t \n\t //配列に格納されている整数の合計を計算\n\t for(int i = 0; i < a.length; i++){\n\t \t sum = sum + (long)a[i];\n\t }\n\t }\n\t \n\t //最小値、最大値、合計を表示\n\t System.out.println(a[a.length-1] + \" \" + a[0] + \" \" + sum);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\tpublic static void main(String args[]){\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t//整数の数nを受け取る\n\t\tString s1 = sc.next();\n\t int n = Integer.parseInt(s1);\n\t int a[] = new int[n];\n\t long sum = 0;\n\t \n\t //整数nが条件にあっているか確認\n\t if(0 <= n && n <= 10000){\n\t \n\t //n回、整数を読み取り、配列に入れる\n\t for(int i = 0; i <= n-1; i++){\n\t \tString s2 = sc.next();\n\t\t int j = Integer.parseInt(s2);\n\t\t \n\t\t //入力された整数が条件(−1000000から1000000)内か確認\n\t\t if(-1000000 <= j && j <=1000000){\n\t\t a[i] = j;\n\t\t }\n\t }\n\t \n\t //配列の0番目に大きな数、最後に小さな数が来るように並べ変える\n\t for(int i = 0; i <= a.length-1; i++){\n\t \tfor(int j = 0; j <= a.length-2; j++){\n\t \t\t if(a[j] < a[j+1]){\n\t \t\t \t int w = a[j];\n\t \t\t \t a[j] = a[j+1];\n\t \t\t \t a[j+1] = w;\n\t \t \t}\n\t \t }\n\t }\n\t \n\t //配列に格納されている整数の合計を計算\n\t for(int i = 0; i < a.length; i++){\n\t \t sum = sum + (long)a[i];\n\t }\n\t }\n\t \n\t //最小値、最大値、合計を表示\n\t System.out.println(a[a.length-1] + \" \" + a[0] + \" \" + sum);\n\t}\n}",
"Main",
"public static void main(String args[]){\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t//整数の数nを受け取る\n\t\tString s1 = sc.next();\n\t int n = Integer.parseInt(s1);\n\t int a[] = new int[n];\n\t long sum = 0;\n\t \n\t //整数nが条件にあっているか確認\n\t if(0 <= n && n <= 10000){\n\t \n\t //n回、整数を読み取り、配列に入れる\n\t for(int i = 0; i <= n-1; i++){\n\t \tString s2 = sc.next();\n\t\t int j = Integer.parseInt(s2);\n\t\t \n\t\t //入力された整数が条件(−1000000から1000000)内か確認\n\t\t if(-1000000 <= j && j <=1000000){\n\t\t a[i] = j;\n\t\t }\n\t }\n\t \n\t //配列の0番目に大きな数、最後に小さな数が来るように並べ変える\n\t for(int i = 0; i <= a.length-1; i++){\n\t \tfor(int j = 0; j <= a.length-2; j++){\n\t \t\t if(a[j] < a[j+1]){\n\t \t\t \t int w = a[j];\n\t \t\t \t a[j] = a[j+1];\n\t \t\t \t a[j+1] = w;\n\t \t \t}\n\t \t }\n\t }\n\t \n\t //配列に格納されている整数の合計を計算\n\t for(int i = 0; i < a.length; i++){\n\t \t sum = sum + (long)a[i];\n\t }\n\t }\n\t \n\t //最小値、最大値、合計を表示\n\t System.out.println(a[a.length-1] + \" \" + a[0] + \" \" + sum);\n\t}",
"main",
"{\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\t//整数の数nを受け取る\n\t\tString s1 = sc.next();\n\t int n = Integer.parseInt(s1);\n\t int a[] = new int[n];\n\t long sum = 0;\n\t \n\t //整数nが条件にあっているか確認\n\t if(0 <= n && n <= 10000){\n\t \n\t //n回、整数を読み取り、配列に入れる\n\t for(int i = 0; i <= n-1; i++){\n\t \tString s2 = sc.next();\n\t\t int j = Integer.parseInt(s2);\n\t\t \n\t\t //入力された整数が条件(−1000000から1000000)内か確認\n\t\t if(-1000000 <= j && j <=1000000){\n\t\t a[i] = j;\n\t\t }\n\t }\n\t \n\t //配列の0番目に大きな数、最後に小さな数が来るように並べ変える\n\t for(int i = 0; i <= a.length-1; i++){\n\t \tfor(int j = 0; j <= a.length-2; j++){\n\t \t\t if(a[j] < a[j+1]){\n\t \t\t \t int w = a[j];\n\t \t\t \t a[j] = a[j+1];\n\t \t\t \t a[j+1] = w;\n\t \t \t}\n\t \t }\n\t }\n\t \n\t //配列に格納されている整数の合計を計算\n\t for(int i = 0; i < a.length; i++){\n\t \t sum = sum + (long)a[i];\n\t }\n\t }\n\t \n\t //最小値、最大値、合計を表示\n\t System.out.println(a[a.length-1] + \" \" + a[0] + \" \" + sum);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s1 = sc.next();",
"s1",
"sc.next()",
"sc.next",
"sc",
"int n = Integer.parseInt(s1);",
"n",
"Integer.parseInt(s1)",
"Integer.parseInt",
"Integer",
"s1",
"int a[] = new int[n];",
"a",
"new int[n]",
"n",
"long sum = 0;",
"sum",
"0",
"if(0 <= n && n <= 10000){\n\t \n\t //n回、整数を読み取り、配列に入れる\n\t for(int i = 0; i <= n-1; i++){\n\t \tString s2 = sc.next();\n\t\t int j = Integer.parseInt(s2);\n\t\t \n\t\t //入力された整数が条件(−1000000から1000000)内か確認\n\t\t if(-1000000 <= j && j <=1000000){\n\t\t a[i] = j;\n\t\t }\n\t }\n\t \n\t //配列の0番目に大きな数、最後に小さな数が来るように並べ変える\n\t for(int i = 0; i <= a.length-1; i++){\n\t \tfor(int j = 0; j <= a.length-2; j++){\n\t \t\t if(a[j] < a[j+1]){\n\t \t\t \t int w = a[j];\n\t \t\t \t a[j] = a[j+1];\n\t \t\t \t a[j+1] = w;\n\t \t \t}\n\t \t }\n\t }\n\t \n\t //配列に格納されている整数の合計を計算\n\t for(int i = 0; i < a.length; i++){\n\t \t sum = sum + (long)a[i];\n\t }\n\t }",
"0 <= n && n <= 10000",
"0 <= n",
"0",
"n",
"n <= 10000",
"n",
"10000",
"{\n\t \n\t //n回、整数を読み取り、配列に入れる\n\t for(int i = 0; i <= n-1; i++){\n\t \tString s2 = sc.next();\n\t\t int j = Integer.parseInt(s2);\n\t\t \n\t\t //入力された整数が条件(−1000000から1000000)内か確認\n\t\t if(-1000000 <= j && j <=1000000){\n\t\t a[i] = j;\n\t\t }\n\t }\n\t \n\t //配列の0番目に大きな数、最後に小さな数が来るように並べ変える\n\t for(int i = 0; i <= a.length-1; i++){\n\t \tfor(int j = 0; j <= a.length-2; j++){\n\t \t\t if(a[j] < a[j+1]){\n\t \t\t \t int w = a[j];\n\t \t\t \t a[j] = a[j+1];\n\t \t\t \t a[j+1] = w;\n\t \t \t}\n\t \t }\n\t }\n\t \n\t //配列に格納されている整数の合計を計算\n\t for(int i = 0; i < a.length; i++){\n\t \t sum = sum + (long)a[i];\n\t }\n\t }",
"for(int i = 0; i <= n-1; i++){\n\t \tString s2 = sc.next();\n\t\t int j = Integer.parseInt(s2);\n\t\t \n\t\t //入力された整数が条件(−1000000から1000000)内か確認\n\t\t if(-1000000 <= j && j <=1000000){\n\t\t a[i] = j;\n\t\t }\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= n-1",
"i",
"n-1",
"n",
"1",
"i++",
"i++",
"i",
"{\n\t \tString s2 = sc.next();\n\t\t int j = Integer.parseInt(s2);\n\t\t \n\t\t //入力された整数が条件(−1000000から1000000)内か確認\n\t\t if(-1000000 <= j && j <=1000000){\n\t\t a[i] = j;\n\t\t }\n\t }",
"{\n\t \tString s2 = sc.next();\n\t\t int j = Integer.parseInt(s2);\n\t\t \n\t\t //入力された整数が条件(−1000000から1000000)内か確認\n\t\t if(-1000000 <= j && j <=1000000){\n\t\t a[i] = j;\n\t\t }\n\t }",
"String s2 = sc.next();",
"s2",
"sc.next()",
"sc.next",
"sc",
"int j = Integer.parseInt(s2);",
"j",
"Integer.parseInt(s2)",
"Integer.parseInt",
"Integer",
"s2",
"if(-1000000 <= j && j <=1000000){\n\t\t a[i] = j;\n\t\t }",
"-1000000 <= j && j <=1000000",
"-1000000 <= j",
"-1000000",
"1000000",
"j",
"j <=1000000",
"j",
"1000000",
"{\n\t\t a[i] = j;\n\t\t }",
"a[i] = j",
"a[i]",
"a",
"i",
"j",
"for(int i = 0; i <= a.length-1; i++){\n\t \tfor(int j = 0; j <= a.length-2; j++){\n\t \t\t if(a[j] < a[j+1]){\n\t \t\t \t int w = a[j];\n\t \t\t \t a[j] = a[j+1];\n\t \t\t \t a[j+1] = w;\n\t \t \t}\n\t \t }\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <= a.length-1",
"i",
"a.length-1",
"a.length",
"a",
"a.length",
"1",
"i++",
"i++",
"i",
"{\n\t \tfor(int j = 0; j <= a.length-2; j++){\n\t \t\t if(a[j] < a[j+1]){\n\t \t\t \t int w = a[j];\n\t \t\t \t a[j] = a[j+1];\n\t \t\t \t a[j+1] = w;\n\t \t \t}\n\t \t }\n\t }",
"{\n\t \tfor(int j = 0; j <= a.length-2; j++){\n\t \t\t if(a[j] < a[j+1]){\n\t \t\t \t int w = a[j];\n\t \t\t \t a[j] = a[j+1];\n\t \t\t \t a[j+1] = w;\n\t \t \t}\n\t \t }\n\t }",
"for(int j = 0; j <= a.length-2; j++){\n\t \t\t if(a[j] < a[j+1]){\n\t \t\t \t int w = a[j];\n\t \t\t \t a[j] = a[j+1];\n\t \t\t \t a[j+1] = w;\n\t \t \t}\n\t \t }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j <= a.length-2",
"j",
"a.length-2",
"a.length",
"a",
"a.length",
"2",
"j++",
"j++",
"j",
"{\n\t \t\t if(a[j] < a[j+1]){\n\t \t\t \t int w = a[j];\n\t \t\t \t a[j] = a[j+1];\n\t \t\t \t a[j+1] = w;\n\t \t \t}\n\t \t }",
"{\n\t \t\t if(a[j] < a[j+1]){\n\t \t\t \t int w = a[j];\n\t \t\t \t a[j] = a[j+1];\n\t \t\t \t a[j+1] = w;\n\t \t \t}\n\t \t }",
"if(a[j] < a[j+1]){\n\t \t\t \t int w = a[j];\n\t \t\t \t a[j] = a[j+1];\n\t \t\t \t a[j+1] = w;\n\t \t \t}",
"a[j] < a[j+1]",
"a[j]",
"a",
"j",
"a[j+1]",
"a",
"j+1",
"j",
"1",
"{\n\t \t\t \t int w = a[j];\n\t \t\t \t a[j] = a[j+1];\n\t \t\t \t a[j+1] = w;\n\t \t \t}",
"int w = a[j];",
"w",
"a[j]",
"a",
"j",
"a[j] = a[j+1]",
"a[j]",
"a",
"j",
"a[j+1]",
"a",
"j+1",
"j",
"1",
"a[j+1] = w",
"a[j+1]",
"a",
"j+1",
"j",
"1",
"w",
"for(int i = 0; i < a.length; i++){\n\t \t sum = sum + (long)a[i];\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"{\n\t \t sum = sum + (long)a[i];\n\t }",
"{\n\t \t sum = sum + (long)a[i];\n\t }",
"sum = sum + (long)a[i]",
"sum",
"sum + (long)a[i]",
"sum",
"(long)a[i]",
"a",
"i",
"System.out.println(a[a.length-1] + \" \" + a[0] + \" \" + sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"a[a.length-1] + \" \" + a[0] + \" \" + sum",
"\" \"",
"a[0]",
"a[a.length-1] + \" \" + a[0] + \" \" + sum",
"a[a.length-1]",
"a",
"a.length-1",
"a.length",
"a",
"a.length",
"1",
"\" \"",
"a[0]",
"a",
"0",
"\" \"",
"sum",
"String args[]",
"args"
] |
import java.util.Scanner;
class Main {
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
//整数の数nを受け取る
String s1 = sc.next();
int n = Integer.parseInt(s1);
int a[] = new int[n];
long sum = 0;
//整数nが条件にあっているか確認
if(0 <= n && n <= 10000){
//n回、整数を読み取り、配列に入れる
for(int i = 0; i <= n-1; i++){
String s2 = sc.next();
int j = Integer.parseInt(s2);
//入力された整数が条件(−1000000から1000000)内か確認
if(-1000000 <= j && j <=1000000){
a[i] = j;
}
}
//配列の0番目に大きな数、最後に小さな数が来るように並べ変える
for(int i = 0; i <= a.length-1; i++){
for(int j = 0; j <= a.length-2; j++){
if(a[j] < a[j+1]){
int w = a[j];
a[j] = a[j+1];
a[j+1] = w;
}
}
}
//配列に格納されている整数の合計を計算
for(int i = 0; i < a.length; i++){
sum = sum + (long)a[i];
}
}
//最小値、最大値、合計を表示
System.out.println(a[a.length-1] + " " + a[0] + " " + sum);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
17,
41,
13,
40,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
18,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
106,
11
],
[
106,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
28,
33
],
[
14,
34
],
[
34,
35
],
[
34,
36
],
[
14,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
14,
41
],
[
41,
42
],
[
41,
43
],
[
14,
44
],
[
44,
45
],
[
44,
46
],
[
14,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
65,
67
],
[
59,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
59,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
59,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
86,
88
],
[
14,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
97,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
95,
101
],
[
97,
102
],
[
12,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint num = Integer.parseInt(br.readLine());\n\t\tString numsArray[] = br.readLine().split(\" \");\n\t\tlong sum = 0;\n\t\tint max=-1000000;\n\t\tint min=1000000;\n\t\tint tmp=0;\n\t\tfor(int i=0; i<num; i++){\n\t\t\ttmp = Integer.parseInt(numsArray[i]);\n\t\t\tif(tmp>max){\n\t\t\t\tmax = tmp;\n\t\t\t}\n\t\t\tif(tmp<min){\n\t\t\t\tmin = tmp;\n\t\t\t}\n\t\t\tsum = sum+tmp;\n\t\t}\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint num = Integer.parseInt(br.readLine());\n\t\tString numsArray[] = br.readLine().split(\" \");\n\t\tlong sum = 0;\n\t\tint max=-1000000;\n\t\tint min=1000000;\n\t\tint tmp=0;\n\t\tfor(int i=0; i<num; i++){\n\t\t\ttmp = Integer.parseInt(numsArray[i]);\n\t\t\tif(tmp>max){\n\t\t\t\tmax = tmp;\n\t\t\t}\n\t\t\tif(tmp<min){\n\t\t\t\tmin = tmp;\n\t\t\t}\n\t\t\tsum = sum+tmp;\n\t\t}\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}\n}",
"Main",
"public static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint num = Integer.parseInt(br.readLine());\n\t\tString numsArray[] = br.readLine().split(\" \");\n\t\tlong sum = 0;\n\t\tint max=-1000000;\n\t\tint min=1000000;\n\t\tint tmp=0;\n\t\tfor(int i=0; i<num; i++){\n\t\t\ttmp = Integer.parseInt(numsArray[i]);\n\t\t\tif(tmp>max){\n\t\t\t\tmax = tmp;\n\t\t\t}\n\t\t\tif(tmp<min){\n\t\t\t\tmin = tmp;\n\t\t\t}\n\t\t\tsum = sum+tmp;\n\t\t}\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint num = Integer.parseInt(br.readLine());\n\t\tString numsArray[] = br.readLine().split(\" \");\n\t\tlong sum = 0;\n\t\tint max=-1000000;\n\t\tint min=1000000;\n\t\tint tmp=0;\n\t\tfor(int i=0; i<num; i++){\n\t\t\ttmp = Integer.parseInt(numsArray[i]);\n\t\t\tif(tmp>max){\n\t\t\t\tmax = tmp;\n\t\t\t}\n\t\t\tif(tmp<min){\n\t\t\t\tmin = tmp;\n\t\t\t}\n\t\t\tsum = sum+tmp;\n\t\t}\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int num = Integer.parseInt(br.readLine());",
"num",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String numsArray[] = br.readLine().split(\" \");",
"numsArray",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"long sum = 0;",
"sum",
"0",
"int max=-1000000;",
"max",
"-1000000",
"1000000",
"int min=1000000;",
"min",
"1000000",
"int tmp=0;",
"tmp",
"0",
"for(int i=0; i<num; i++){\n\t\t\ttmp = Integer.parseInt(numsArray[i]);\n\t\t\tif(tmp>max){\n\t\t\t\tmax = tmp;\n\t\t\t}\n\t\t\tif(tmp<min){\n\t\t\t\tmin = tmp;\n\t\t\t}\n\t\t\tsum = sum+tmp;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<num",
"i",
"num",
"i++",
"i++",
"i",
"{\n\t\t\ttmp = Integer.parseInt(numsArray[i]);\n\t\t\tif(tmp>max){\n\t\t\t\tmax = tmp;\n\t\t\t}\n\t\t\tif(tmp<min){\n\t\t\t\tmin = tmp;\n\t\t\t}\n\t\t\tsum = sum+tmp;\n\t\t}",
"{\n\t\t\ttmp = Integer.parseInt(numsArray[i]);\n\t\t\tif(tmp>max){\n\t\t\t\tmax = tmp;\n\t\t\t}\n\t\t\tif(tmp<min){\n\t\t\t\tmin = tmp;\n\t\t\t}\n\t\t\tsum = sum+tmp;\n\t\t}",
"tmp = Integer.parseInt(numsArray[i])",
"tmp",
"Integer.parseInt(numsArray[i])",
"Integer.parseInt",
"Integer",
"numsArray[i]",
"numsArray",
"i",
"if(tmp>max){\n\t\t\t\tmax = tmp;\n\t\t\t}",
"tmp>max",
"tmp",
"max",
"{\n\t\t\t\tmax = tmp;\n\t\t\t}",
"max = tmp",
"max",
"tmp",
"if(tmp<min){\n\t\t\t\tmin = tmp;\n\t\t\t}",
"tmp<min",
"tmp",
"min",
"{\n\t\t\t\tmin = tmp;\n\t\t\t}",
"min = tmp",
"min",
"tmp",
"sum = sum+tmp",
"sum",
"sum+tmp",
"sum",
"tmp",
"System.out.println(min+\" \"+max+\" \"+sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min+\" \"+max+\" \"+sum",
"\" \"",
"max",
"min+\" \"+max+\" \"+sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint num = Integer.parseInt(br.readLine());\n\t\tString numsArray[] = br.readLine().split(\" \");\n\t\tlong sum = 0;\n\t\tint max=-1000000;\n\t\tint min=1000000;\n\t\tint tmp=0;\n\t\tfor(int i=0; i<num; i++){\n\t\t\ttmp = Integer.parseInt(numsArray[i]);\n\t\t\tif(tmp>max){\n\t\t\t\tmax = tmp;\n\t\t\t}\n\t\t\tif(tmp<min){\n\t\t\t\tmin = tmp;\n\t\t\t}\n\t\t\tsum = sum+tmp;\n\t\t}\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint num = Integer.parseInt(br.readLine());\n\t\tString numsArray[] = br.readLine().split(\" \");\n\t\tlong sum = 0;\n\t\tint max=-1000000;\n\t\tint min=1000000;\n\t\tint tmp=0;\n\t\tfor(int i=0; i<num; i++){\n\t\t\ttmp = Integer.parseInt(numsArray[i]);\n\t\t\tif(tmp>max){\n\t\t\t\tmax = tmp;\n\t\t\t}\n\t\t\tif(tmp<min){\n\t\t\t\tmin = tmp;\n\t\t\t}\n\t\t\tsum = sum+tmp;\n\t\t}\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
public static void main(String[] args)throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int num = Integer.parseInt(br.readLine());
String numsArray[] = br.readLine().split(" ");
long sum = 0;
int max=-1000000;
int min=1000000;
int tmp=0;
for(int i=0; i<num; i++){
tmp = Integer.parseInt(numsArray[i]);
if(tmp>max){
max = tmp;
}
if(tmp<min){
min = tmp;
}
sum = sum+tmp;
}
System.out.println(min+" "+max+" "+sum);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
18,
13,
17,
41,
13,
18,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
18,
13,
13,
14,
2,
18,
13,
13,
13,
0,
13,
18,
13,
13,
14,
2,
18,
13,
13,
13,
0,
13,
18,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
12,
13,
30,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
29,
23,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
140,
5
],
[
140,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
26,
27
],
[
26,
28
],
[
21,
29
],
[
29,
30
],
[
30,
31
],
[
21,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
8,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
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
],
[
67,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
74,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
66,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
85,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
93,
95
],
[
8,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
104,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
102,
108
],
[
104,
109
],
[
6,
110
],
[
110,
111
],
[
140,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
117,
119
],
[
114,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
124,
125
],
[
124,
126
],
[
114,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
114,
132
],
[
112,
133
],
[
133,
134
],
[
112,
135
],
[
135,
136
],
[
112,
137
],
[
137,
138
],
[
0,
139
],
[
139,
140
],
[
139,
141
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] a = new int[n];\n\t\t\n\t\tfor(int i = 0 ; i<n ; i++){\n\t\t\ta[i]=scan.nextInt();\n\t\t}\n\n\t\t\n\t\tint min = a[0];\n\t\tint max = a[0];\n\t\tlong sum = 0;\n\t\t\n\t\tfor(int i = 0 ; i<n ; i++){\n\t\t\tsum = sum + a[i];\n\t\t\tif(a[i]<min)min=a[i];\n\t\t\tif(a[i]>max)max=a[i];\n\t\t}\n\t\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t\n\t\n\t}\n\t\n\t\n\n\t\n\t\n\t\n\tstatic void swap(int[] a,int[] b,int i){\n\t\tint tmp =a[i];\n\t\ta[i]=b[i];\n\t\tb[i]=tmp;\n\t\treturn;\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] a = new int[n];\n\t\t\n\t\tfor(int i = 0 ; i<n ; i++){\n\t\t\ta[i]=scan.nextInt();\n\t\t}\n\n\t\t\n\t\tint min = a[0];\n\t\tint max = a[0];\n\t\tlong sum = 0;\n\t\t\n\t\tfor(int i = 0 ; i<n ; i++){\n\t\t\tsum = sum + a[i];\n\t\t\tif(a[i]<min)min=a[i];\n\t\t\tif(a[i]>max)max=a[i];\n\t\t}\n\t\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t\n\t\n\t}\n\t\n\t\n\n\t\n\t\n\t\n\tstatic void swap(int[] a,int[] b,int i){\n\t\tint tmp =a[i];\n\t\ta[i]=b[i];\n\t\tb[i]=tmp;\n\t\treturn;\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] a = new int[n];\n\t\t\n\t\tfor(int i = 0 ; i<n ; i++){\n\t\t\ta[i]=scan.nextInt();\n\t\t}\n\n\t\t\n\t\tint min = a[0];\n\t\tint max = a[0];\n\t\tlong sum = 0;\n\t\t\n\t\tfor(int i = 0 ; i<n ; i++){\n\t\t\tsum = sum + a[i];\n\t\t\tif(a[i]<min)min=a[i];\n\t\t\tif(a[i]>max)max=a[i];\n\t\t}\n\t\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t\n\t\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] a = new int[n];\n\t\t\n\t\tfor(int i = 0 ; i<n ; i++){\n\t\t\ta[i]=scan.nextInt();\n\t\t}\n\n\t\t\n\t\tint min = a[0];\n\t\tint max = a[0];\n\t\tlong sum = 0;\n\t\t\n\t\tfor(int i = 0 ; i<n ; i++){\n\t\t\tsum = sum + a[i];\n\t\t\tif(a[i]<min)min=a[i];\n\t\t\tif(a[i]>max)max=a[i];\n\t\t}\n\t\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t\n\t\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for(int i = 0 ; i<n ; i++){\n\t\t\ta[i]=scan.nextInt();\n\t\t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\ta[i]=scan.nextInt();\n\t\t}",
"{\n\t\t\ta[i]=scan.nextInt();\n\t\t}",
"a[i]=scan.nextInt()",
"a[i]",
"a",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int min = a[0];",
"min",
"a[0]",
"a",
"0",
"int max = a[0];",
"max",
"a[0]",
"a",
"0",
"long sum = 0;",
"sum",
"0",
"for(int i = 0 ; i<n ; i++){\n\t\t\tsum = sum + a[i];\n\t\t\tif(a[i]<min)min=a[i];\n\t\t\tif(a[i]>max)max=a[i];\n\t\t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tsum = sum + a[i];\n\t\t\tif(a[i]<min)min=a[i];\n\t\t\tif(a[i]>max)max=a[i];\n\t\t}",
"{\n\t\t\tsum = sum + a[i];\n\t\t\tif(a[i]<min)min=a[i];\n\t\t\tif(a[i]>max)max=a[i];\n\t\t}",
"sum = sum + a[i]",
"sum",
"sum + a[i]",
"sum",
"a[i]",
"a",
"i",
"if(a[i]<min)min=a[i];",
"a[i]<min",
"a[i]",
"a",
"i",
"min",
"min=a[i]",
"min",
"a[i]",
"a",
"i",
"if(a[i]>max)max=a[i];",
"a[i]>max",
"a[i]",
"a",
"i",
"max",
"max=a[i]",
"max",
"a[i]",
"a",
"i",
"System.out.println(min+\" \"+max+\" \"+sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min+\" \"+max+\" \"+sum",
"\" \"",
"max",
"min+\" \"+max+\" \"+sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args",
"static void swap(int[] a,int[] b,int i){\n\t\tint tmp =a[i];\n\t\ta[i]=b[i];\n\t\tb[i]=tmp;\n\t\treturn;\n\t}",
"swap",
"{\n\t\tint tmp =a[i];\n\t\ta[i]=b[i];\n\t\tb[i]=tmp;\n\t\treturn;\n\t}",
"int tmp =a[i];",
"tmp",
"a[i]",
"a",
"i",
"a[i]=b[i]",
"a[i]",
"a",
"i",
"b[i]",
"b",
"i",
"b[i]=tmp",
"b[i]",
"b",
"i",
"tmp",
"return;",
"int[] a",
"a",
"int[] b",
"b",
"int i",
"i",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] a = new int[n];\n\t\t\n\t\tfor(int i = 0 ; i<n ; i++){\n\t\t\ta[i]=scan.nextInt();\n\t\t}\n\n\t\t\n\t\tint min = a[0];\n\t\tint max = a[0];\n\t\tlong sum = 0;\n\t\t\n\t\tfor(int i = 0 ; i<n ; i++){\n\t\t\tsum = sum + a[i];\n\t\t\tif(a[i]<min)min=a[i];\n\t\t\tif(a[i]>max)max=a[i];\n\t\t}\n\t\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t\n\t\n\t}\n\t\n\t\n\n\t\n\t\n\t\n\tstatic void swap(int[] a,int[] b,int i){\n\t\tint tmp =a[i];\n\t\ta[i]=b[i];\n\t\tb[i]=tmp;\n\t\treturn;\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] a = new int[n];\n\t\t\n\t\tfor(int i = 0 ; i<n ; i++){\n\t\t\ta[i]=scan.nextInt();\n\t\t}\n\n\t\t\n\t\tint min = a[0];\n\t\tint max = a[0];\n\t\tlong sum = 0;\n\t\t\n\t\tfor(int i = 0 ; i<n ; i++){\n\t\t\tsum = sum + a[i];\n\t\t\tif(a[i]<min)min=a[i];\n\t\t\tif(a[i]>max)max=a[i];\n\t\t}\n\t\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t\n\t\n\t}\n\t\n\t\n\n\t\n\t\n\t\n\tstatic void swap(int[] a,int[] b,int i){\n\t\tint tmp =a[i];\n\t\ta[i]=b[i];\n\t\tb[i]=tmp;\n\t\treturn;\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int[] a = new int[n];
for(int i = 0 ; i<n ; i++){
a[i]=scan.nextInt();
}
int min = a[0];
int max = a[0];
long sum = 0;
for(int i = 0 ; i<n ; i++){
sum = sum + a[i];
if(a[i]<min)min=a[i];
if(a[i]>max)max=a[i];
}
System.out.println(min+" "+max+" "+sum);
}
static void swap(int[] a,int[] b,int i){
int tmp =a[i];
a[i]=b[i];
b[i]=tmp;
return;
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
17,
41,
13,
40,
17,
41,
13,
17,
41,
13,
4,
18,
13,
11,
1,
4,
18,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
13,
14,
2,
13,
13,
0,
13,
13,
14,
2,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
17,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
73,
8
],
[
73,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
11,
24
],
[
24,
25
],
[
24,
26
],
[
11,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
11,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
32,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
44,
46
],
[
38,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
51,
53
],
[
38,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
58,
60
],
[
11,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
61,
67
],
[
61,
68
],
[
61,
69
],
[
9,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
] | [
"import java.io.IOException;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc=new Scanner(System.in);\n\t\t\n\t\tint a;\n\t\tint min=1000000;\n\t\tint max=-1000000;\n\t\tlong sum=0;\n\t\tint f=sc.nextInt();\n\t\tfor(;sc.hasNext();){\n\t\t\ta=sc.nextInt();\n\t\t\tsum+=a;\n\t\t\tif(a<=min)min=a;\n\t\t\tif(a>=max)max=a;\n\t\t\t\n\t\t}\n\t\tSystem.out.printf(\"%d %d %d%n\",min,max,sum);\n\t\t\n\t}\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc=new Scanner(System.in);\n\t\t\n\t\tint a;\n\t\tint min=1000000;\n\t\tint max=-1000000;\n\t\tlong sum=0;\n\t\tint f=sc.nextInt();\n\t\tfor(;sc.hasNext();){\n\t\t\ta=sc.nextInt();\n\t\t\tsum+=a;\n\t\t\tif(a<=min)min=a;\n\t\t\tif(a>=max)max=a;\n\t\t\t\n\t\t}\n\t\tSystem.out.printf(\"%d %d %d%n\",min,max,sum);\n\t\t\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tScanner sc=new Scanner(System.in);\n\t\t\n\t\tint a;\n\t\tint min=1000000;\n\t\tint max=-1000000;\n\t\tlong sum=0;\n\t\tint f=sc.nextInt();\n\t\tfor(;sc.hasNext();){\n\t\t\ta=sc.nextInt();\n\t\t\tsum+=a;\n\t\t\tif(a<=min)min=a;\n\t\t\tif(a>=max)max=a;\n\t\t\t\n\t\t}\n\t\tSystem.out.printf(\"%d %d %d%n\",min,max,sum);\n\t\t\n\t}",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\t\n\t\tint a;\n\t\tint min=1000000;\n\t\tint max=-1000000;\n\t\tlong sum=0;\n\t\tint f=sc.nextInt();\n\t\tfor(;sc.hasNext();){\n\t\t\ta=sc.nextInt();\n\t\t\tsum+=a;\n\t\t\tif(a<=min)min=a;\n\t\t\tif(a>=max)max=a;\n\t\t\t\n\t\t}\n\t\tSystem.out.printf(\"%d %d %d%n\",min,max,sum);\n\t\t\n\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a;",
"a",
"int min=1000000;",
"min",
"1000000",
"int max=-1000000;",
"max",
"-1000000",
"1000000",
"long sum=0;",
"sum",
"0",
"int f=sc.nextInt();",
"f",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(;sc.hasNext();){\n\t\t\ta=sc.nextInt();\n\t\t\tsum+=a;\n\t\t\tif(a<=min)min=a;\n\t\t\tif(a>=max)max=a;\n\t\t\t\n\t\t}",
";",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\t\t\ta=sc.nextInt();\n\t\t\tsum+=a;\n\t\t\tif(a<=min)min=a;\n\t\t\tif(a>=max)max=a;\n\t\t\t\n\t\t}",
"{\n\t\t\ta=sc.nextInt();\n\t\t\tsum+=a;\n\t\t\tif(a<=min)min=a;\n\t\t\tif(a>=max)max=a;\n\t\t\t\n\t\t}",
"a=sc.nextInt()",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sum+=a",
"sum",
"a",
"if(a<=min)min=a;",
"a<=min",
"a",
"min",
"min=a",
"min",
"a",
"if(a>=max)max=a;",
"a>=max",
"a",
"max",
"max=a",
"max",
"a",
"System.out.printf(\"%d %d %d%n\",min,max,sum)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d %d %d%n\"",
"min",
"max",
"sum",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc=new Scanner(System.in);\n\t\t\n\t\tint a;\n\t\tint min=1000000;\n\t\tint max=-1000000;\n\t\tlong sum=0;\n\t\tint f=sc.nextInt();\n\t\tfor(;sc.hasNext();){\n\t\t\ta=sc.nextInt();\n\t\t\tsum+=a;\n\t\t\tif(a<=min)min=a;\n\t\t\tif(a>=max)max=a;\n\t\t\t\n\t\t}\n\t\tSystem.out.printf(\"%d %d %d%n\",min,max,sum);\n\t\t\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc=new Scanner(System.in);\n\t\t\n\t\tint a;\n\t\tint min=1000000;\n\t\tint max=-1000000;\n\t\tlong sum=0;\n\t\tint f=sc.nextInt();\n\t\tfor(;sc.hasNext();){\n\t\t\ta=sc.nextInt();\n\t\t\tsum+=a;\n\t\t\tif(a<=min)min=a;\n\t\t\tif(a>=max)max=a;\n\t\t\t\n\t\t}\n\t\tSystem.out.printf(\"%d %d %d%n\",min,max,sum);\n\t\t\n\t}\n}",
"Main"
] | import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
Scanner sc=new Scanner(System.in);
int a;
int min=1000000;
int max=-1000000;
long sum=0;
int f=sc.nextInt();
for(;sc.hasNext();){
a=sc.nextInt();
sum+=a;
if(a<=min)min=a;
if(a>=max)max=a;
}
System.out.printf("%d %d %d%n",min,max,sum);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
17,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
18,
13,
13,
14,
2,
13,
13,
0,
13,
13,
14,
2,
13,
13,
0,
13,
13,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
107,
11
],
[
107,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
28,
33
],
[
14,
34
],
[
34,
35
],
[
34,
36
],
[
14,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
14,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
14,
47
],
[
47,
48
],
[
47,
49
],
[
14,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
50,
61
],
[
62,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
68,
69
],
[
68,
70
],
[
62,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
75,
77
],
[
62,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
82,
84
],
[
62,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
87,
89
],
[
14,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
98,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
96,
102
],
[
98,
103
],
[
12,
104
],
[
104,
105
],
[
0,
106
],
[
106,
107
],
[
106,
108
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(buf.readLine());\n\t\tString[] str = buf.readLine().split(\" \");\n\t\n\t\tlong sum = 0;\n\t\tint max = Integer.MIN_VALUE, min = Integer.MAX_VALUE, tmp = 0; \n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ttmp = Integer.parseInt(str[i]);\n\t\t\tif(tmp < min)min = tmp;\n\t\t\tif(tmp > max)max = tmp;\n\t\t\tsum = sum + tmp;\n\t\t}\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(buf.readLine());\n\t\tString[] str = buf.readLine().split(\" \");\n\t\n\t\tlong sum = 0;\n\t\tint max = Integer.MIN_VALUE, min = Integer.MAX_VALUE, tmp = 0; \n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ttmp = Integer.parseInt(str[i]);\n\t\t\tif(tmp < min)min = tmp;\n\t\t\tif(tmp > max)max = tmp;\n\t\t\tsum = sum + tmp;\n\t\t}\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(buf.readLine());\n\t\tString[] str = buf.readLine().split(\" \");\n\t\n\t\tlong sum = 0;\n\t\tint max = Integer.MIN_VALUE, min = Integer.MAX_VALUE, tmp = 0; \n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ttmp = Integer.parseInt(str[i]);\n\t\t\tif(tmp < min)min = tmp;\n\t\t\tif(tmp > max)max = tmp;\n\t\t\tsum = sum + tmp;\n\t\t}\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}",
"main",
"{\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(buf.readLine());\n\t\tString[] str = buf.readLine().split(\" \");\n\t\n\t\tlong sum = 0;\n\t\tint max = Integer.MIN_VALUE, min = Integer.MAX_VALUE, tmp = 0; \n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ttmp = Integer.parseInt(str[i]);\n\t\t\tif(tmp < min)min = tmp;\n\t\t\tif(tmp > max)max = tmp;\n\t\t\tsum = sum + tmp;\n\t\t}\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}",
"BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));",
"buf",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(buf.readLine());",
"n",
"Integer.parseInt(buf.readLine())",
"Integer.parseInt",
"Integer",
"buf.readLine()",
"buf.readLine",
"buf",
"String[] str = buf.readLine().split(\" \");",
"str",
"buf.readLine().split(\" \")",
"buf.readLine().split",
"buf.readLine()",
"buf.readLine",
"buf",
"\" \"",
"long sum = 0;",
"sum",
"0",
"int max = Integer.MIN_VALUE",
"max",
"Integer.MIN_VALUE",
"Integer",
"Integer.MIN_VALUE",
"min = Integer.MAX_VALUE",
"min",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"tmp = 0;",
"tmp",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\ttmp = Integer.parseInt(str[i]);\n\t\t\tif(tmp < min)min = tmp;\n\t\t\tif(tmp > max)max = tmp;\n\t\t\tsum = sum + tmp;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\ttmp = Integer.parseInt(str[i]);\n\t\t\tif(tmp < min)min = tmp;\n\t\t\tif(tmp > max)max = tmp;\n\t\t\tsum = sum + tmp;\n\t\t}",
"{\n\t\t\ttmp = Integer.parseInt(str[i]);\n\t\t\tif(tmp < min)min = tmp;\n\t\t\tif(tmp > max)max = tmp;\n\t\t\tsum = sum + tmp;\n\t\t}",
"tmp = Integer.parseInt(str[i])",
"tmp",
"Integer.parseInt(str[i])",
"Integer.parseInt",
"Integer",
"str[i]",
"str",
"i",
"if(tmp < min)min = tmp;",
"tmp < min",
"tmp",
"min",
"min = tmp",
"min",
"tmp",
"if(tmp > max)max = tmp;",
"tmp > max",
"tmp",
"max",
"max = tmp",
"max",
"tmp",
"sum = sum + tmp",
"sum",
"sum + tmp",
"sum",
"tmp",
"System.out.println(min+\" \"+max+\" \"+sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min+\" \"+max+\" \"+sum",
"\" \"",
"max",
"min+\" \"+max+\" \"+sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(buf.readLine());\n\t\tString[] str = buf.readLine().split(\" \");\n\t\n\t\tlong sum = 0;\n\t\tint max = Integer.MIN_VALUE, min = Integer.MAX_VALUE, tmp = 0; \n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ttmp = Integer.parseInt(str[i]);\n\t\t\tif(tmp < min)min = tmp;\n\t\t\tif(tmp > max)max = tmp;\n\t\t\tsum = sum + tmp;\n\t\t}\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(buf.readLine());\n\t\tString[] str = buf.readLine().split(\" \");\n\t\n\t\tlong sum = 0;\n\t\tint max = Integer.MIN_VALUE, min = Integer.MAX_VALUE, tmp = 0; \n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ttmp = Integer.parseInt(str[i]);\n\t\t\tif(tmp < min)min = tmp;\n\t\t\tif(tmp > max)max = tmp;\n\t\t\tsum = sum + tmp;\n\t\t}\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}\n\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(buf.readLine());
String[] str = buf.readLine().split(" ");
long sum = 0;
int max = Integer.MIN_VALUE, min = Integer.MAX_VALUE, tmp = 0;
for (int i = 0; i < n; i++) {
tmp = Integer.parseInt(str[i]);
if(tmp < min)min = tmp;
if(tmp > max)max = tmp;
sum = sum + tmp;
}
System.out.println(min+" "+max+" "+sum);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
13,
41,
13,
20,
13,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
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,
18,
13,
13,
0,
13,
2,
13,
18,
13,
13,
14,
2,
13,
18,
13,
13,
30,
0,
13,
18,
13,
13,
14,
2,
13,
18,
13,
13,
30,
0,
13,
18,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
131,
11
],
[
131,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
28,
33
],
[
14,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
14,
40
],
[
40,
41
],
[
40,
42
],
[
14,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
49,
50
],
[
49,
51
],
[
14,
52
],
[
52,
53
],
[
52,
54
],
[
14,
55
],
[
55,
56
],
[
55,
57
],
[
14,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
58,
68
],
[
68,
69
],
[
69,
70
],
[
58,
71
],
[
72,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
80,
81
],
[
80,
82
],
[
72,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
87,
89
],
[
72,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
93,
95
],
[
90,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
99,
101
],
[
72,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
105,
107
],
[
102,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
111,
113
],
[
14,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
122,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
120,
126
],
[
122,
127
],
[
12,
128
],
[
128,
129
],
[
0,
130
],
[
130,
131
],
[
130,
132
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\npublic class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString lineN = br.readLine();\n\t\tString[] lineA = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(lineN);\n\t\tint[] a = new int[n];\n\t\tint min = Integer.parseInt(lineA[0]);\n\t\tint max = min;\n\t\tlong sun = 0L;\n\t\tfor(int i=0; i < a.length; i++){\n\t\t\ta[i] = Integer.parseInt(lineA[i]);\n\t\t\tsun = sun + a[i];\n\t\t\tif( max < a[i] ){\n\t\t\t\tmax = a[i];\n\t\t\t}\n\t\t\tif( min > a[i] ){\n\t\t\t\tmin = a[i];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sun);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"public class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString lineN = br.readLine();\n\t\tString[] lineA = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(lineN);\n\t\tint[] a = new int[n];\n\t\tint min = Integer.parseInt(lineA[0]);\n\t\tint max = min;\n\t\tlong sun = 0L;\n\t\tfor(int i=0; i < a.length; i++){\n\t\t\ta[i] = Integer.parseInt(lineA[i]);\n\t\t\tsun = sun + a[i];\n\t\t\tif( max < a[i] ){\n\t\t\t\tmax = a[i];\n\t\t\t}\n\t\t\tif( min > a[i] ){\n\t\t\t\tmin = a[i];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sun);\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString lineN = br.readLine();\n\t\tString[] lineA = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(lineN);\n\t\tint[] a = new int[n];\n\t\tint min = Integer.parseInt(lineA[0]);\n\t\tint max = min;\n\t\tlong sun = 0L;\n\t\tfor(int i=0; i < a.length; i++){\n\t\t\ta[i] = Integer.parseInt(lineA[i]);\n\t\t\tsun = sun + a[i];\n\t\t\tif( max < a[i] ){\n\t\t\t\tmax = a[i];\n\t\t\t}\n\t\t\tif( min > a[i] ){\n\t\t\t\tmin = a[i];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sun);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString lineN = br.readLine();\n\t\tString[] lineA = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(lineN);\n\t\tint[] a = new int[n];\n\t\tint min = Integer.parseInt(lineA[0]);\n\t\tint max = min;\n\t\tlong sun = 0L;\n\t\tfor(int i=0; i < a.length; i++){\n\t\t\ta[i] = Integer.parseInt(lineA[i]);\n\t\t\tsun = sun + a[i];\n\t\t\tif( max < a[i] ){\n\t\t\t\tmax = a[i];\n\t\t\t}\n\t\t\tif( min > a[i] ){\n\t\t\t\tmin = a[i];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sun);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"String lineN = br.readLine();",
"lineN",
"br.readLine()",
"br.readLine",
"br",
"String[] lineA = br.readLine().split(\" \");",
"lineA",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int n = Integer.parseInt(lineN);",
"n",
"Integer.parseInt(lineN)",
"Integer.parseInt",
"Integer",
"lineN",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"int min = Integer.parseInt(lineA[0]);",
"min",
"Integer.parseInt(lineA[0])",
"Integer.parseInt",
"Integer",
"lineA[0]",
"lineA",
"0",
"int max = min;",
"max",
"min",
"long sun = 0L;",
"sun",
"0L",
"for(int i=0; i < a.length; i++){\n\t\t\ta[i] = Integer.parseInt(lineA[i]);\n\t\t\tsun = sun + a[i];\n\t\t\tif( max < a[i] ){\n\t\t\t\tmax = a[i];\n\t\t\t}\n\t\t\tif( min > a[i] ){\n\t\t\t\tmin = a[i];\n\t\t\t}\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] = Integer.parseInt(lineA[i]);\n\t\t\tsun = sun + a[i];\n\t\t\tif( max < a[i] ){\n\t\t\t\tmax = a[i];\n\t\t\t}\n\t\t\tif( min > a[i] ){\n\t\t\t\tmin = a[i];\n\t\t\t}\n\t\t}",
"{\n\t\t\ta[i] = Integer.parseInt(lineA[i]);\n\t\t\tsun = sun + a[i];\n\t\t\tif( max < a[i] ){\n\t\t\t\tmax = a[i];\n\t\t\t}\n\t\t\tif( min > a[i] ){\n\t\t\t\tmin = a[i];\n\t\t\t}\n\t\t}",
"a[i] = Integer.parseInt(lineA[i])",
"a[i]",
"a",
"i",
"Integer.parseInt(lineA[i])",
"Integer.parseInt",
"Integer",
"lineA[i]",
"lineA",
"i",
"sun = sun + a[i]",
"sun",
"sun + a[i]",
"sun",
"a[i]",
"a",
"i",
"if( max < a[i] ){\n\t\t\t\tmax = a[i];\n\t\t\t}",
"max < a[i]",
"max",
"a[i]",
"a",
"i",
"{\n\t\t\t\tmax = a[i];\n\t\t\t}",
"max = a[i]",
"max",
"a[i]",
"a",
"i",
"if( min > a[i] ){\n\t\t\t\tmin = a[i];\n\t\t\t}",
"min > a[i]",
"min",
"a[i]",
"a",
"i",
"{\n\t\t\t\tmin = a[i];\n\t\t\t}",
"min = a[i]",
"min",
"a[i]",
"a",
"i",
"System.out.println(min + \" \" + max + \" \" + sun)",
"System.out.println",
"System.out",
"System",
"System.out",
"min + \" \" + max + \" \" + sun",
"\" \"",
"max",
"min + \" \" + max + \" \" + sun",
"min",
"\" \"",
"max",
"\" \"",
"sun",
"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\tStringBuilder sb = new StringBuilder();\n\t\tString lineN = br.readLine();\n\t\tString[] lineA = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(lineN);\n\t\tint[] a = new int[n];\n\t\tint min = Integer.parseInt(lineA[0]);\n\t\tint max = min;\n\t\tlong sun = 0L;\n\t\tfor(int i=0; i < a.length; i++){\n\t\t\ta[i] = Integer.parseInt(lineA[i]);\n\t\t\tsun = sun + a[i];\n\t\t\tif( max < a[i] ){\n\t\t\t\tmax = a[i];\n\t\t\t}\n\t\t\tif( min > a[i] ){\n\t\t\t\tmin = a[i];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sun);\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\tStringBuilder sb = new StringBuilder();\n\t\tString lineN = br.readLine();\n\t\tString[] lineA = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(lineN);\n\t\tint[] a = new int[n];\n\t\tint min = Integer.parseInt(lineA[0]);\n\t\tint max = min;\n\t\tlong sun = 0L;\n\t\tfor(int i=0; i < a.length; i++){\n\t\t\ta[i] = Integer.parseInt(lineA[i]);\n\t\t\tsun = sun + a[i];\n\t\t\tif( max < a[i] ){\n\t\t\t\tmax = a[i];\n\t\t\t}\n\t\t\tif( min > a[i] ){\n\t\t\t\tmin = a[i];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sun);\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
public class Main{
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
String lineN = br.readLine();
String[] lineA = br.readLine().split(" ");
int n = Integer.parseInt(lineN);
int[] a = new int[n];
int min = Integer.parseInt(lineA[0]);
int max = min;
long sun = 0L;
for(int i=0; i < a.length; i++){
a[i] = Integer.parseInt(lineA[i]);
sun = sun + a[i];
if( max < a[i] ){
max = a[i];
}
if( min > a[i] ){
min = a[i];
}
}
System.out.println(min + " " + max + " " + sun);
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
40,
17,
41,
13,
17,
41,
13,
12,
13,
30,
41,
13,
20,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
17,
0,
13,
17,
14,
2,
13,
17,
30,
0,
13,
4,
18,
13,
0,
13,
13,
0,
13,
13,
0,
13,
13,
14,
2,
13,
17,
30,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
14,
2,
13,
13,
30,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
12,
13,
30,
4,
18,
20,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
4,
8
],
[
8,
9
],
[
4,
10
],
[
10,
11
],
[
4,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
4,
16
],
[
16,
17
],
[
16,
18
],
[
4,
19
],
[
19,
20
],
[
4,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
23,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
40,
42
],
[
36,
43
],
[
43,
44
],
[
43,
45
],
[
32,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
50,
56
],
[
56,
57
],
[
56,
58
],
[
50,
59
],
[
59,
60
],
[
59,
61
],
[
50,
62
],
[
62,
63
],
[
62,
64
],
[
46,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
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
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
82,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
88,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
82,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
106,
108
],
[
23,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
117,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
115,
121
],
[
117,
122
],
[
4,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
123,
129
],
[
129,
130
]
] | [
"import java.util.Scanner;\nclass Main {\n\tint n,x,i,max = -1000000,min = 1000000;\n\tlong kei;\n\tpublic void suzuki(){\n\t\tScanner sc = new Scanner(System.in);\n\t\tn = sc.nextInt();\n\t\tif(n == 0){\n\t\t\tmax = 0;\n\t\t\tmin = 0;\n\t\t\tkei = 0;\n\t\t}else if(n == 1){\n\t\t\tx = sc.nextInt();\n\t\t\tmax = x;\n\t\t\tmin = x;\n\t\t\tkei = x;\n\t\t}else if(n >= 2){\n\t\t\tfor(i = 0;i < n;i++){\n\t\t\t\tx = sc.nextInt();\n\t\t\t\tif(min > x){\n\t\t\t\t\tmin = x;\n\t\t\t\t}else if(max < x){\n\t\t\t\t\tmax = x;\n\t\t\t\t}\n\t\t\t\tkei = kei + x;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + kei);\n\t}\n\tpublic static void main(String[] args){\n\t\tnew Main().suzuki();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\tint n,x,i,max = -1000000,min = 1000000;\n\tlong kei;\n\tpublic void suzuki(){\n\t\tScanner sc = new Scanner(System.in);\n\t\tn = sc.nextInt();\n\t\tif(n == 0){\n\t\t\tmax = 0;\n\t\t\tmin = 0;\n\t\t\tkei = 0;\n\t\t}else if(n == 1){\n\t\t\tx = sc.nextInt();\n\t\t\tmax = x;\n\t\t\tmin = x;\n\t\t\tkei = x;\n\t\t}else if(n >= 2){\n\t\t\tfor(i = 0;i < n;i++){\n\t\t\t\tx = sc.nextInt();\n\t\t\t\tif(min > x){\n\t\t\t\t\tmin = x;\n\t\t\t\t}else if(max < x){\n\t\t\t\t\tmax = x;\n\t\t\t\t}\n\t\t\t\tkei = kei + x;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + kei);\n\t}\n\tpublic static void main(String[] args){\n\t\tnew Main().suzuki();\n\t}\n}",
"Main",
"int n",
"n",
"x",
"x",
"i",
"i",
"max = -1000000",
"max",
"-1000000",
"1000000",
"min = 1000000;",
"min",
"1000000",
"long kei;",
"kei",
"public void suzuki(){\n\t\tScanner sc = new Scanner(System.in);\n\t\tn = sc.nextInt();\n\t\tif(n == 0){\n\t\t\tmax = 0;\n\t\t\tmin = 0;\n\t\t\tkei = 0;\n\t\t}else if(n == 1){\n\t\t\tx = sc.nextInt();\n\t\t\tmax = x;\n\t\t\tmin = x;\n\t\t\tkei = x;\n\t\t}else if(n >= 2){\n\t\t\tfor(i = 0;i < n;i++){\n\t\t\t\tx = sc.nextInt();\n\t\t\t\tif(min > x){\n\t\t\t\t\tmin = x;\n\t\t\t\t}else if(max < x){\n\t\t\t\t\tmax = x;\n\t\t\t\t}\n\t\t\t\tkei = kei + x;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + kei);\n\t}",
"suzuki",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tn = sc.nextInt();\n\t\tif(n == 0){\n\t\t\tmax = 0;\n\t\t\tmin = 0;\n\t\t\tkei = 0;\n\t\t}else if(n == 1){\n\t\t\tx = sc.nextInt();\n\t\t\tmax = x;\n\t\t\tmin = x;\n\t\t\tkei = x;\n\t\t}else if(n >= 2){\n\t\t\tfor(i = 0;i < n;i++){\n\t\t\t\tx = sc.nextInt();\n\t\t\t\tif(min > x){\n\t\t\t\t\tmin = x;\n\t\t\t\t}else if(max < x){\n\t\t\t\t\tmax = x;\n\t\t\t\t}\n\t\t\t\tkei = kei + x;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + kei);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(n == 0){\n\t\t\tmax = 0;\n\t\t\tmin = 0;\n\t\t\tkei = 0;\n\t\t}else if(n == 1){\n\t\t\tx = sc.nextInt();\n\t\t\tmax = x;\n\t\t\tmin = x;\n\t\t\tkei = x;\n\t\t}else if(n >= 2){\n\t\t\tfor(i = 0;i < n;i++){\n\t\t\t\tx = sc.nextInt();\n\t\t\t\tif(min > x){\n\t\t\t\t\tmin = x;\n\t\t\t\t}else if(max < x){\n\t\t\t\t\tmax = x;\n\t\t\t\t}\n\t\t\t\tkei = kei + x;\n\t\t\t}\n\t\t}",
"n == 0",
"n",
"0",
"{\n\t\t\tmax = 0;\n\t\t\tmin = 0;\n\t\t\tkei = 0;\n\t\t}",
"max = 0",
"max",
"0",
"min = 0",
"min",
"0",
"kei = 0",
"kei",
"0",
"if(n == 1){\n\t\t\tx = sc.nextInt();\n\t\t\tmax = x;\n\t\t\tmin = x;\n\t\t\tkei = x;\n\t\t}else if(n >= 2){\n\t\t\tfor(i = 0;i < n;i++){\n\t\t\t\tx = sc.nextInt();\n\t\t\t\tif(min > x){\n\t\t\t\t\tmin = x;\n\t\t\t\t}else if(max < x){\n\t\t\t\t\tmax = x;\n\t\t\t\t}\n\t\t\t\tkei = kei + x;\n\t\t\t}\n\t\t}",
"n == 1",
"n",
"1",
"{\n\t\t\tx = sc.nextInt();\n\t\t\tmax = x;\n\t\t\tmin = x;\n\t\t\tkei = x;\n\t\t}",
"x = sc.nextInt()",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"max = x",
"max",
"x",
"min = x",
"min",
"x",
"kei = x",
"kei",
"x",
"if(n >= 2){\n\t\t\tfor(i = 0;i < n;i++){\n\t\t\t\tx = sc.nextInt();\n\t\t\t\tif(min > x){\n\t\t\t\t\tmin = x;\n\t\t\t\t}else if(max < x){\n\t\t\t\t\tmax = x;\n\t\t\t\t}\n\t\t\t\tkei = kei + x;\n\t\t\t}\n\t\t}",
"n >= 2",
"n",
"2",
"{\n\t\t\tfor(i = 0;i < n;i++){\n\t\t\t\tx = sc.nextInt();\n\t\t\t\tif(min > x){\n\t\t\t\t\tmin = x;\n\t\t\t\t}else if(max < x){\n\t\t\t\t\tmax = x;\n\t\t\t\t}\n\t\t\t\tkei = kei + x;\n\t\t\t}\n\t\t}",
"for(i = 0;i < n;i++){\n\t\t\t\tx = sc.nextInt();\n\t\t\t\tif(min > x){\n\t\t\t\t\tmin = x;\n\t\t\t\t}else if(max < x){\n\t\t\t\t\tmax = x;\n\t\t\t\t}\n\t\t\t\tkei = kei + x;\n\t\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tx = sc.nextInt();\n\t\t\t\tif(min > x){\n\t\t\t\t\tmin = x;\n\t\t\t\t}else if(max < x){\n\t\t\t\t\tmax = x;\n\t\t\t\t}\n\t\t\t\tkei = kei + x;\n\t\t\t}",
"{\n\t\t\t\tx = sc.nextInt();\n\t\t\t\tif(min > x){\n\t\t\t\t\tmin = x;\n\t\t\t\t}else if(max < x){\n\t\t\t\t\tmax = x;\n\t\t\t\t}\n\t\t\t\tkei = kei + x;\n\t\t\t}",
"x = sc.nextInt()",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(min > x){\n\t\t\t\t\tmin = x;\n\t\t\t\t}else if(max < x){\n\t\t\t\t\tmax = x;\n\t\t\t\t}",
"min > x",
"min",
"x",
"{\n\t\t\t\t\tmin = x;\n\t\t\t\t}",
"min = x",
"min",
"x",
"if(max < x){\n\t\t\t\t\tmax = x;\n\t\t\t\t}",
"max < x",
"max",
"x",
"{\n\t\t\t\t\tmax = x;\n\t\t\t\t}",
"max = x",
"max",
"x",
"kei = kei + x",
"kei",
"kei + x",
"kei",
"x",
"System.out.println(min + \" \" + max + \" \" + kei)",
"System.out.println",
"System.out",
"System",
"System.out",
"min + \" \" + max + \" \" + kei",
"\" \"",
"max",
"min + \" \" + max + \" \" + kei",
"min",
"\" \"",
"max",
"\" \"",
"kei",
"public static void main(String[] args){\n\t\tnew Main().suzuki();\n\t}",
"main",
"{\n\t\tnew Main().suzuki();\n\t}",
"new Main().suzuki()",
"new Main().suzuki",
"new Main()",
"String[] args",
"args"
] | import java.util.Scanner;
class Main {
int n,x,i,max = -1000000,min = 1000000;
long kei;
public void suzuki(){
Scanner sc = new Scanner(System.in);
n = sc.nextInt();
if(n == 0){
max = 0;
min = 0;
kei = 0;
}else if(n == 1){
x = sc.nextInt();
max = x;
min = x;
kei = x;
}else if(n >= 2){
for(i = 0;i < n;i++){
x = sc.nextInt();
if(min > x){
min = x;
}else if(max < x){
max = x;
}
kei = kei + x;
}
}
System.out.println(min + " " + max + " " + kei);
}
public static void main(String[] args){
new Main().suzuki();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
40,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
13,
0,
13,
4,
18,
13,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
39,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
47,
51
],
[
39,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
54,
58
],
[
39,
59
],
[
59,
60
],
[
59,
61
],
[
8,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
70,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
70,
75
],
[
6,
76
],
[
76,
77
]
] | [
"import java.util.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tlong sum = 0;\n\t\tint min = 1000000;\n\t\tint max = -1000000;\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tint a = stdIn.nextInt();\n\t\t\tmin = Math.min(min,a);\n\t\t\tmax = Math.max(max,a);\n\t\t\tsum += a;\n\t\t}\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tlong sum = 0;\n\t\tint min = 1000000;\n\t\tint max = -1000000;\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tint a = stdIn.nextInt();\n\t\t\tmin = Math.min(min,a);\n\t\t\tmax = Math.max(max,a);\n\t\t\tsum += a;\n\t\t}\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tlong sum = 0;\n\t\tint min = 1000000;\n\t\tint max = -1000000;\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tint a = stdIn.nextInt();\n\t\t\tmin = Math.min(min,a);\n\t\t\tmax = Math.max(max,a);\n\t\t\tsum += a;\n\t\t}\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}",
"main",
"{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tlong sum = 0;\n\t\tint min = 1000000;\n\t\tint max = -1000000;\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tint a = stdIn.nextInt();\n\t\t\tmin = Math.min(min,a);\n\t\t\tmax = Math.max(max,a);\n\t\t\tsum += a;\n\t\t}\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"int n = stdIn.nextInt();",
"n",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"long sum = 0;",
"sum",
"0",
"int min = 1000000;",
"min",
"1000000",
"int max = -1000000;",
"max",
"-1000000",
"1000000",
"for (int i=0; i<n; i++) {\n\t\t\tint a = stdIn.nextInt();\n\t\t\tmin = Math.min(min,a);\n\t\t\tmax = Math.max(max,a);\n\t\t\tsum += a;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint a = stdIn.nextInt();\n\t\t\tmin = Math.min(min,a);\n\t\t\tmax = Math.max(max,a);\n\t\t\tsum += a;\n\t\t}",
"{\n\t\t\tint a = stdIn.nextInt();\n\t\t\tmin = Math.min(min,a);\n\t\t\tmax = Math.max(max,a);\n\t\t\tsum += a;\n\t\t}",
"int a = stdIn.nextInt();",
"a",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"min = Math.min(min,a)",
"min",
"Math.min(min,a)",
"Math.min",
"Math",
"min",
"a",
"max = Math.max(max,a)",
"max",
"Math.max(max,a)",
"Math.max",
"Math",
"max",
"a",
"sum += a",
"sum",
"a",
"System.out.println(min+\" \"+max+\" \"+sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min+\" \"+max+\" \"+sum",
"\" \"",
"max",
"min+\" \"+max+\" \"+sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args"
] | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
int n = stdIn.nextInt();
long sum = 0;
int min = 1000000;
int max = -1000000;
for (int i=0; i<n; i++) {
int a = stdIn.nextInt();
min = Math.min(min,a);
max = Math.max(max,a);
sum += a;
}
System.out.println(min+" "+max+" "+sum);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
40,
17,
41,
13,
17,
41,
13,
17,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
2,
18,
13,
13,
13,
0,
13,
18,
13,
13,
14,
2,
18,
13,
13,
13,
0,
13,
18,
13,
13,
0,
13,
18,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
49,
50
],
[
43,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
51,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
43,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
62,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
43,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
75,
77
],
[
8,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
86,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
84,
90
],
[
86,
91
],
[
6,
92
],
[
92,
93
]
] | [
"import java.util.*;\nclass Main{\n public static void main(String[] args){\n\tfinal Scanner sc = new Scanner(System.in);\n\tint a =sc.nextInt();\n\tlong max=-1000000;\n\tlong min=1000000;\n\tlong sum=0;\n\tlong[] data=new long[a];\n\tfor(int i=0;i<a;i++){\n\t data[i]=sc.nextInt();\n\t if(data[i]>max) max=data[i];\n\t\t\t \n\t if(data[i]<min) min=data[i];\n\t sum+=data[i];\n\t}\n\tSystem.out.println(min+\" \"+max+\" \"+sum);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n public static void main(String[] args){\n\tfinal Scanner sc = new Scanner(System.in);\n\tint a =sc.nextInt();\n\tlong max=-1000000;\n\tlong min=1000000;\n\tlong sum=0;\n\tlong[] data=new long[a];\n\tfor(int i=0;i<a;i++){\n\t data[i]=sc.nextInt();\n\t if(data[i]>max) max=data[i];\n\t\t\t \n\t if(data[i]<min) min=data[i];\n\t sum+=data[i];\n\t}\n\tSystem.out.println(min+\" \"+max+\" \"+sum);\n }\n}",
"Main",
"public static void main(String[] args){\n\tfinal Scanner sc = new Scanner(System.in);\n\tint a =sc.nextInt();\n\tlong max=-1000000;\n\tlong min=1000000;\n\tlong sum=0;\n\tlong[] data=new long[a];\n\tfor(int i=0;i<a;i++){\n\t data[i]=sc.nextInt();\n\t if(data[i]>max) max=data[i];\n\t\t\t \n\t if(data[i]<min) min=data[i];\n\t sum+=data[i];\n\t}\n\tSystem.out.println(min+\" \"+max+\" \"+sum);\n }",
"main",
"{\n\tfinal Scanner sc = new Scanner(System.in);\n\tint a =sc.nextInt();\n\tlong max=-1000000;\n\tlong min=1000000;\n\tlong sum=0;\n\tlong[] data=new long[a];\n\tfor(int i=0;i<a;i++){\n\t data[i]=sc.nextInt();\n\t if(data[i]>max) max=data[i];\n\t\t\t \n\t if(data[i]<min) min=data[i];\n\t sum+=data[i];\n\t}\n\tSystem.out.println(min+\" \"+max+\" \"+sum);\n }",
"final Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a =sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long max=-1000000;",
"max",
"-1000000",
"1000000",
"long min=1000000;",
"min",
"1000000",
"long sum=0;",
"sum",
"0",
"long[] data=new long[a];",
"data",
"new long[a]",
"a",
"for(int i=0;i<a;i++){\n\t data[i]=sc.nextInt();\n\t if(data[i]>max) max=data[i];\n\t\t\t \n\t if(data[i]<min) min=data[i];\n\t sum+=data[i];\n\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<a",
"i",
"a",
"i++",
"i++",
"i",
"{\n\t data[i]=sc.nextInt();\n\t if(data[i]>max) max=data[i];\n\t\t\t \n\t if(data[i]<min) min=data[i];\n\t sum+=data[i];\n\t}",
"{\n\t data[i]=sc.nextInt();\n\t if(data[i]>max) max=data[i];\n\t\t\t \n\t if(data[i]<min) min=data[i];\n\t sum+=data[i];\n\t}",
"data[i]=sc.nextInt()",
"data[i]",
"data",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(data[i]>max) max=data[i];",
"data[i]>max",
"data[i]",
"data",
"i",
"max",
"max=data[i]",
"max",
"data[i]",
"data",
"i",
"if(data[i]<min) min=data[i];",
"data[i]<min",
"data[i]",
"data",
"i",
"min",
"min=data[i]",
"min",
"data[i]",
"data",
"i",
"sum+=data[i]",
"sum",
"data[i]",
"data",
"i",
"System.out.println(min+\" \"+max+\" \"+sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min+\" \"+max+\" \"+sum",
"\" \"",
"max",
"min+\" \"+max+\" \"+sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args"
] | import java.util.*;
class Main{
public static void main(String[] args){
final Scanner sc = new Scanner(System.in);
int a =sc.nextInt();
long max=-1000000;
long min=1000000;
long sum=0;
long[] data=new long[a];
for(int i=0;i<a;i++){
data[i]=sc.nextInt();
if(data[i]>max) max=data[i];
if(data[i]<min) min=data[i];
sum+=data[i];
}
System.out.println(min+" "+max+" "+sum);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
17,
28,
13,
13,
30,
30,
14,
2,
13,
13,
0,
13,
13,
14,
2,
13,
13,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
4,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
122,
11
],
[
122,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
28,
33
],
[
14,
34
],
[
34,
35
],
[
34,
36
],
[
14,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
38,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
58,
59
],
[
58,
60
],
[
14,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
14,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
14,
71
],
[
71,
72
],
[
71,
73
],
[
14,
74
],
[
74,
75
],
[
74,
76
],
[
74,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
90,
92
],
[
78,
93
],
[
93,
94
],
[
93,
95
],
[
14,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
104,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
104,
109
],
[
103,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
102,
114
],
[
104,
115
],
[
115,
116
],
[
116,
117
],
[
115,
118
],
[
12,
119
],
[
119,
120
],
[
0,
121
],
[
121,
122
],
[
121,
123
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String args[]) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tint num = Integer.parseInt(reader.readLine());\n\t\tString data[] = reader.readLine().split(\" \");\n\t\tint[] ints = new int[num];\n\t\tfor(int i=0; i<num; i++){\n\t\t\tints[i] = Integer.parseInt(data[i]);\n\t\t}\n\t\tint max=Integer.MIN_VALUE;\n\t\tint min=Integer.MAX_VALUE;\n\t\tlong sum=0;\n\t\t\n\t\tfor(int i : ints){\n\t\t\tif(max<i)\n\t\t\t\tmax=i;\n\t\t\tif(min>i)\n\t\t\t\tmin=i;\n\t\t\tsum+=i;\n\t\t}\n\t\t\n\t\tSystem.out.println(Integer.toString(min)+\" \"+Integer.toString(max)+\" \"+Long.toString(sum));\n\t\t\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String args[]) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tint num = Integer.parseInt(reader.readLine());\n\t\tString data[] = reader.readLine().split(\" \");\n\t\tint[] ints = new int[num];\n\t\tfor(int i=0; i<num; i++){\n\t\t\tints[i] = Integer.parseInt(data[i]);\n\t\t}\n\t\tint max=Integer.MIN_VALUE;\n\t\tint min=Integer.MAX_VALUE;\n\t\tlong sum=0;\n\t\t\n\t\tfor(int i : ints){\n\t\t\tif(max<i)\n\t\t\t\tmax=i;\n\t\t\tif(min>i)\n\t\t\t\tmin=i;\n\t\t\tsum+=i;\n\t\t}\n\t\t\n\t\tSystem.out.println(Integer.toString(min)+\" \"+Integer.toString(max)+\" \"+Long.toString(sum));\n\t\t\n\t}\n}",
"Main",
"public static void main(String args[]) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tint num = Integer.parseInt(reader.readLine());\n\t\tString data[] = reader.readLine().split(\" \");\n\t\tint[] ints = new int[num];\n\t\tfor(int i=0; i<num; i++){\n\t\t\tints[i] = Integer.parseInt(data[i]);\n\t\t}\n\t\tint max=Integer.MIN_VALUE;\n\t\tint min=Integer.MAX_VALUE;\n\t\tlong sum=0;\n\t\t\n\t\tfor(int i : ints){\n\t\t\tif(max<i)\n\t\t\t\tmax=i;\n\t\t\tif(min>i)\n\t\t\t\tmin=i;\n\t\t\tsum+=i;\n\t\t}\n\t\t\n\t\tSystem.out.println(Integer.toString(min)+\" \"+Integer.toString(max)+\" \"+Long.toString(sum));\n\t\t\n\t}",
"main",
"{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tint num = Integer.parseInt(reader.readLine());\n\t\tString data[] = reader.readLine().split(\" \");\n\t\tint[] ints = new int[num];\n\t\tfor(int i=0; i<num; i++){\n\t\t\tints[i] = Integer.parseInt(data[i]);\n\t\t}\n\t\tint max=Integer.MIN_VALUE;\n\t\tint min=Integer.MAX_VALUE;\n\t\tlong sum=0;\n\t\t\n\t\tfor(int i : ints){\n\t\t\tif(max<i)\n\t\t\t\tmax=i;\n\t\t\tif(min>i)\n\t\t\t\tmin=i;\n\t\t\tsum+=i;\n\t\t}\n\t\t\n\t\tSystem.out.println(Integer.toString(min)+\" \"+Integer.toString(max)+\" \"+Long.toString(sum));\n\t\t\n\t}",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"int num = Integer.parseInt(reader.readLine());",
"num",
"Integer.parseInt(reader.readLine())",
"Integer.parseInt",
"Integer",
"reader.readLine()",
"reader.readLine",
"reader",
"String data[] = reader.readLine().split(\" \");",
"data",
"reader.readLine().split(\" \")",
"reader.readLine().split",
"reader.readLine()",
"reader.readLine",
"reader",
"\" \"",
"int[] ints = new int[num];",
"ints",
"new int[num]",
"num",
"for(int i=0; i<num; i++){\n\t\t\tints[i] = Integer.parseInt(data[i]);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<num",
"i",
"num",
"i++",
"i++",
"i",
"{\n\t\t\tints[i] = Integer.parseInt(data[i]);\n\t\t}",
"{\n\t\t\tints[i] = Integer.parseInt(data[i]);\n\t\t}",
"ints[i] = Integer.parseInt(data[i])",
"ints[i]",
"ints",
"i",
"Integer.parseInt(data[i])",
"Integer.parseInt",
"Integer",
"data[i]",
"data",
"i",
"int max=Integer.MIN_VALUE;",
"max",
"Integer.MIN_VALUE",
"Integer",
"Integer.MIN_VALUE",
"int min=Integer.MAX_VALUE;",
"min",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"long sum=0;",
"sum",
"0",
"for(int i : ints){\n\t\t\tif(max<i)\n\t\t\t\tmax=i;\n\t\t\tif(min>i)\n\t\t\t\tmin=i;\n\t\t\tsum+=i;\n\t\t}",
"int i",
"ints",
"{\n\t\t\tif(max<i)\n\t\t\t\tmax=i;\n\t\t\tif(min>i)\n\t\t\t\tmin=i;\n\t\t\tsum+=i;\n\t\t}",
"{\n\t\t\tif(max<i)\n\t\t\t\tmax=i;\n\t\t\tif(min>i)\n\t\t\t\tmin=i;\n\t\t\tsum+=i;\n\t\t}",
"if(max<i)\n\t\t\t\tmax=i;",
"max<i",
"max",
"i",
"max=i",
"max",
"i",
"if(min>i)\n\t\t\t\tmin=i;",
"min>i",
"min",
"i",
"min=i",
"min",
"i",
"sum+=i",
"sum",
"i",
"System.out.println(Integer.toString(min)+\" \"+Integer.toString(max)+\" \"+Long.toString(sum))",
"System.out.println",
"System.out",
"System",
"System.out",
"Integer.toString(min)+\" \"+Integer.toString(max)+\" \"+Long.toString(sum)",
"\" \"",
"Integer.toString(max)",
"Integer.toString(min)+\" \"+Integer.toString(max)+\" \"+Long.toString(sum)",
"Integer.toString(min)",
"Integer.toString",
"Integer",
"min",
"\" \"",
"Integer.toString(max)",
"Integer.toString",
"Integer",
"max",
"\" \"",
"Long.toString(sum)",
"Long.toString",
"Long",
"sum",
"String args[]",
"args",
"public class Main {\n\tpublic static void main(String args[]) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tint num = Integer.parseInt(reader.readLine());\n\t\tString data[] = reader.readLine().split(\" \");\n\t\tint[] ints = new int[num];\n\t\tfor(int i=0; i<num; i++){\n\t\t\tints[i] = Integer.parseInt(data[i]);\n\t\t}\n\t\tint max=Integer.MIN_VALUE;\n\t\tint min=Integer.MAX_VALUE;\n\t\tlong sum=0;\n\t\t\n\t\tfor(int i : ints){\n\t\t\tif(max<i)\n\t\t\t\tmax=i;\n\t\t\tif(min>i)\n\t\t\t\tmin=i;\n\t\t\tsum+=i;\n\t\t}\n\t\t\n\t\tSystem.out.println(Integer.toString(min)+\" \"+Integer.toString(max)+\" \"+Long.toString(sum));\n\t\t\n\t}\n}",
"public class Main {\n\tpublic static void main(String args[]) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tint num = Integer.parseInt(reader.readLine());\n\t\tString data[] = reader.readLine().split(\" \");\n\t\tint[] ints = new int[num];\n\t\tfor(int i=0; i<num; i++){\n\t\t\tints[i] = Integer.parseInt(data[i]);\n\t\t}\n\t\tint max=Integer.MIN_VALUE;\n\t\tint min=Integer.MAX_VALUE;\n\t\tlong sum=0;\n\t\t\n\t\tfor(int i : ints){\n\t\t\tif(max<i)\n\t\t\t\tmax=i;\n\t\t\tif(min>i)\n\t\t\t\tmin=i;\n\t\t\tsum+=i;\n\t\t}\n\t\t\n\t\tSystem.out.println(Integer.toString(min)+\" \"+Integer.toString(max)+\" \"+Long.toString(sum));\n\t\t\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String args[]) throws IOException{
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int num = Integer.parseInt(reader.readLine());
String data[] = reader.readLine().split(" ");
int[] ints = new int[num];
for(int i=0; i<num; i++){
ints[i] = Integer.parseInt(data[i]);
}
int max=Integer.MIN_VALUE;
int min=Integer.MAX_VALUE;
long sum=0;
for(int i : ints){
if(max<i)
max=i;
if(min>i)
min=i;
sum+=i;
}
System.out.println(Integer.toString(min)+" "+Integer.toString(max)+" "+Long.toString(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,
13,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
2,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
2,
13,
17,
30,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
2,
13,
17,
0,
18,
13,
2,
13,
17,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
18,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
18,
13,
17,
17,
18,
13,
2,
13,
17,
17,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
31,
36
],
[
14,
37
],
[
37,
38
],
[
37,
39
],
[
14,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
61,
63
],
[
14,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
64,
74
],
[
74,
75
],
[
75,
76
],
[
64,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
79,
86
],
[
86,
87
],
[
86,
88
],
[
79,
89
],
[
89,
90
],
[
90,
91
],
[
79,
92
],
[
93,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
101,
103
],
[
94,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
107,
109
],
[
104,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
116,
118
],
[
104,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
122,
124
],
[
119,
125
],
[
14,
126
],
[
126,
127
],
[
126,
128
],
[
14,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
134,
135
],
[
134,
136
],
[
129,
137
],
[
137,
138
],
[
138,
139
],
[
129,
140
],
[
141,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
144,
146
],
[
14,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
147,
152
],
[
155,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
154,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
162,
164
],
[
153,
165
],
[
155,
166
],
[
12,
167
],
[
167,
168
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main {\n public static void main(String[] args) throws IOException {\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n \t\tString kosu=br.readLine();\n \t\tint nako=Integer.parseInt(kosu);\n \tString strArr[] = br.readLine().split(\" \");\n \tint[] a=new int[nako];\n\n \tfor(int j=0; j<nako; j++){\n \t\ta[j]=Integer.parseInt(strArr[j]);\n \t}\n\n \tfor(int i=0;i<nako-1;i++){\n \t for(int j=nako-1;j>i;j--){\n\n \t\tif(a[j]<a[j-1]){\n \t\t int t=a[j];\n \t\t a[j]=a[j-1];\n \t\t a[j-1]=t;\n \t\t}\n \t }\n \t}\n\n \tlong sum=0;\n \tfor(int i=0; i<nako; i++){\n \t\tsum+=a[i];\n \t}\n\n \tSystem.out.println(a[0]+\" \"+a[nako-1]+\" \"+sum);\n\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"class Main {\n public static void main(String[] args) throws IOException {\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n \t\tString kosu=br.readLine();\n \t\tint nako=Integer.parseInt(kosu);\n \tString strArr[] = br.readLine().split(\" \");\n \tint[] a=new int[nako];\n\n \tfor(int j=0; j<nako; j++){\n \t\ta[j]=Integer.parseInt(strArr[j]);\n \t}\n\n \tfor(int i=0;i<nako-1;i++){\n \t for(int j=nako-1;j>i;j--){\n\n \t\tif(a[j]<a[j-1]){\n \t\t int t=a[j];\n \t\t a[j]=a[j-1];\n \t\t a[j-1]=t;\n \t\t}\n \t }\n \t}\n\n \tlong sum=0;\n \tfor(int i=0; i<nako; i++){\n \t\tsum+=a[i];\n \t}\n\n \tSystem.out.println(a[0]+\" \"+a[nako-1]+\" \"+sum);\n\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n \t\tString kosu=br.readLine();\n \t\tint nako=Integer.parseInt(kosu);\n \tString strArr[] = br.readLine().split(\" \");\n \tint[] a=new int[nako];\n\n \tfor(int j=0; j<nako; j++){\n \t\ta[j]=Integer.parseInt(strArr[j]);\n \t}\n\n \tfor(int i=0;i<nako-1;i++){\n \t for(int j=nako-1;j>i;j--){\n\n \t\tif(a[j]<a[j-1]){\n \t\t int t=a[j];\n \t\t a[j]=a[j-1];\n \t\t a[j-1]=t;\n \t\t}\n \t }\n \t}\n\n \tlong sum=0;\n \tfor(int i=0; i<nako; i++){\n \t\tsum+=a[i];\n \t}\n\n \tSystem.out.println(a[0]+\" \"+a[nako-1]+\" \"+sum);\n\n }",
"main",
"{\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n \t\tString kosu=br.readLine();\n \t\tint nako=Integer.parseInt(kosu);\n \tString strArr[] = br.readLine().split(\" \");\n \tint[] a=new int[nako];\n\n \tfor(int j=0; j<nako; j++){\n \t\ta[j]=Integer.parseInt(strArr[j]);\n \t}\n\n \tfor(int i=0;i<nako-1;i++){\n \t for(int j=nako-1;j>i;j--){\n\n \t\tif(a[j]<a[j-1]){\n \t\t int t=a[j];\n \t\t a[j]=a[j-1];\n \t\t a[j-1]=t;\n \t\t}\n \t }\n \t}\n\n \tlong sum=0;\n \tfor(int i=0; i<nako; i++){\n \t\tsum+=a[i];\n \t}\n\n \tSystem.out.println(a[0]+\" \"+a[nako-1]+\" \"+sum);\n\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String kosu=br.readLine();",
"kosu",
"br.readLine()",
"br.readLine",
"br",
"int nako=Integer.parseInt(kosu);",
"nako",
"Integer.parseInt(kosu)",
"Integer.parseInt",
"Integer",
"kosu",
"String strArr[] = br.readLine().split(\" \");",
"strArr",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int[] a=new int[nako];",
"a",
"new int[nako]",
"nako",
"for(int j=0; j<nako; j++){\n \t\ta[j]=Integer.parseInt(strArr[j]);\n \t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<nako",
"j",
"nako",
"j++",
"j++",
"j",
"{\n \t\ta[j]=Integer.parseInt(strArr[j]);\n \t}",
"{\n \t\ta[j]=Integer.parseInt(strArr[j]);\n \t}",
"a[j]=Integer.parseInt(strArr[j])",
"a[j]",
"a",
"j",
"Integer.parseInt(strArr[j])",
"Integer.parseInt",
"Integer",
"strArr[j]",
"strArr",
"j",
"for(int i=0;i<nako-1;i++){\n \t for(int j=nako-1;j>i;j--){\n\n \t\tif(a[j]<a[j-1]){\n \t\t int t=a[j];\n \t\t a[j]=a[j-1];\n \t\t a[j-1]=t;\n \t\t}\n \t }\n \t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<nako-1",
"i",
"nako-1",
"nako",
"1",
"i++",
"i++",
"i",
"{\n \t for(int j=nako-1;j>i;j--){\n\n \t\tif(a[j]<a[j-1]){\n \t\t int t=a[j];\n \t\t a[j]=a[j-1];\n \t\t a[j-1]=t;\n \t\t}\n \t }\n \t}",
"{\n \t for(int j=nako-1;j>i;j--){\n\n \t\tif(a[j]<a[j-1]){\n \t\t int t=a[j];\n \t\t a[j]=a[j-1];\n \t\t a[j-1]=t;\n \t\t}\n \t }\n \t}",
"for(int j=nako-1;j>i;j--){\n\n \t\tif(a[j]<a[j-1]){\n \t\t int t=a[j];\n \t\t a[j]=a[j-1];\n \t\t a[j-1]=t;\n \t\t}\n \t }",
"int j=nako-1;",
"int j=nako-1;",
"j",
"nako-1",
"nako",
"1",
"j>i",
"j",
"i",
"j--",
"j--",
"j",
"{\n\n \t\tif(a[j]<a[j-1]){\n \t\t int t=a[j];\n \t\t a[j]=a[j-1];\n \t\t a[j-1]=t;\n \t\t}\n \t }",
"{\n\n \t\tif(a[j]<a[j-1]){\n \t\t int t=a[j];\n \t\t a[j]=a[j-1];\n \t\t a[j-1]=t;\n \t\t}\n \t }",
"if(a[j]<a[j-1]){\n \t\t int t=a[j];\n \t\t a[j]=a[j-1];\n \t\t a[j-1]=t;\n \t\t}",
"a[j]<a[j-1]",
"a[j]",
"a",
"j",
"a[j-1]",
"a",
"j-1",
"j",
"1",
"{\n \t\t int t=a[j];\n \t\t a[j]=a[j-1];\n \t\t a[j-1]=t;\n \t\t}",
"int t=a[j];",
"t",
"a[j]",
"a",
"j",
"a[j]=a[j-1]",
"a[j]",
"a",
"j",
"a[j-1]",
"a",
"j-1",
"j",
"1",
"a[j-1]=t",
"a[j-1]",
"a",
"j-1",
"j",
"1",
"t",
"long sum=0;",
"sum",
"0",
"for(int i=0; i<nako; i++){\n \t\tsum+=a[i];\n \t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<nako",
"i",
"nako",
"i++",
"i++",
"i",
"{\n \t\tsum+=a[i];\n \t}",
"{\n \t\tsum+=a[i];\n \t}",
"sum+=a[i]",
"sum",
"a[i]",
"a",
"i",
"System.out.println(a[0]+\" \"+a[nako-1]+\" \"+sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"a[0]+\" \"+a[nako-1]+\" \"+sum",
"\" \"",
"a[nako-1]",
"a[0]+\" \"+a[nako-1]+\" \"+sum",
"a[0]",
"a",
"0",
"\" \"",
"a[nako-1]",
"a",
"nako-1",
"nako",
"1",
"\" \"",
"sum",
"String[] args",
"args"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String kosu=br.readLine();
int nako=Integer.parseInt(kosu);
String strArr[] = br.readLine().split(" ");
int[] a=new int[nako];
for(int j=0; j<nako; j++){
a[j]=Integer.parseInt(strArr[j]);
}
for(int i=0;i<nako-1;i++){
for(int j=nako-1;j>i;j--){
if(a[j]<a[j-1]){
int t=a[j];
a[j]=a[j-1];
a[j-1]=t;
}
}
}
long sum=0;
for(int i=0; i<nako; i++){
sum+=a[i];
}
System.out.println(a[0]+" "+a[nako-1]+" "+sum);
}
} |
[
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,
38,
5,
13,
30,
4,
18,
18,
13,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
17,
30,
41,
13,
20,
41,
13,
20,
41,
13,
17,
11,
1,
41,
13,
4,
18,
13,
2,
13,
17,
1,
0,
13,
4,
18,
13,
30,
30,
4,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
13,
17,
30,
0,
13,
4,
18,
13,
4,
18,
13,
13,
30,
41,
13,
4,
18,
4,
18,
13,
13,
17,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
13,
4,
18,
13,
18,
13,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
17,
28,
13,
13,
30,
30,
0,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
17,
13,
13,
13,
4,
18,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
210,
23
],
[
210,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
37,
38
],
[
30,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
47,
48
],
[
48,
49
],
[
30,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
27,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
58,
60
],
[
54,
61
],
[
61,
62
],
[
61,
63
],
[
54,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
64,
71
],
[
71,
72
],
[
71,
73
],
[
64,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
64,
80
],
[
81,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
54,
86
],
[
86,
87
],
[
87,
88
],
[
54,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
89,
99
],
[
99,
100
],
[
100,
101
],
[
89,
102
],
[
103,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
104,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
123,
126
],
[
121,
127
],
[
118,
128
],
[
128,
129
],
[
128,
130
],
[
118,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
138,
140
],
[
131,
141
],
[
141,
142
],
[
142,
143
],
[
131,
144
],
[
145,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
146,
149
],
[
146,
150
],
[
150,
151
],
[
151,
152
],
[
150,
153
],
[
153,
154
],
[
153,
155
],
[
118,
156
],
[
156,
157
],
[
157,
158
],
[
156,
159
],
[
159,
160
],
[
160,
161
],
[
118,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
165,
166
],
[
164,
167
],
[
118,
168
],
[
168,
169
],
[
169,
170
],
[
168,
171
],
[
171,
172
],
[
172,
173
],
[
118,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
176,
179
],
[
118,
180
],
[
180,
181
],
[
180,
182
],
[
118,
183
],
[
183,
184
],
[
183,
185
],
[
183,
186
],
[
187,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
118,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
191,
196
],
[
196,
197
],
[
197,
198
],
[
196,
199
],
[
196,
200
],
[
196,
201
],
[
196,
202
],
[
54,
203
],
[
203,
204
],
[
204,
205
],
[
203,
206
],
[
24,
207
],
[
207,
208
],
[
0,
209
],
[
209,
210
],
[
209,
211
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.Comparator;\n\npublic class Main{\n public static void main(String[] args) {\n\ttry {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\n\t int n = 0;\n\n\t for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }\n\n\t br.close();\n\n\t for (Integer i = 0; i < lines.size(); i++) {\n\t\tif (i==0) {\n\t\t n = Integer.parseInt(lines.get(i));\n\t\t} else {\n\t\t String[] splits = lines.get(i).split(\" \");\n\t\t List<Long> numbers = new ArrayList<Long>();\n\t\t for ( int j = 0; j < splits.length; j++ ) {\n\t\t\tnumbers.add(j, Long.parseLong(splits[j]));\n\t\t }\n\n\t\t numbers.sort(Comparator.naturalOrder());\n\t\t Long min = numbers.get(0);\n\t\t numbers.sort(Comparator.reverseOrder());\n\t\t Long max = numbers.get(0);\n\n\t\t Long sum = 0L;\n\t\t for (Long e : numbers) {\n\t\t\tsum += e;\n\t\t }\n\n\t\t System.out.println(String.format(\"%d %d %d\", min, max, sum));\n\t\t}\n\t }\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.util.Comparator;",
"Comparator",
"java.util",
"public class Main{\n public static void main(String[] args) {\n\ttry {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\n\t int n = 0;\n\n\t for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }\n\n\t br.close();\n\n\t for (Integer i = 0; i < lines.size(); i++) {\n\t\tif (i==0) {\n\t\t n = Integer.parseInt(lines.get(i));\n\t\t} else {\n\t\t String[] splits = lines.get(i).split(\" \");\n\t\t List<Long> numbers = new ArrayList<Long>();\n\t\t for ( int j = 0; j < splits.length; j++ ) {\n\t\t\tnumbers.add(j, Long.parseLong(splits[j]));\n\t\t }\n\n\t\t numbers.sort(Comparator.naturalOrder());\n\t\t Long min = numbers.get(0);\n\t\t numbers.sort(Comparator.reverseOrder());\n\t\t Long max = numbers.get(0);\n\n\t\t Long sum = 0L;\n\t\t for (Long e : numbers) {\n\t\t\tsum += e;\n\t\t }\n\n\t\t System.out.println(String.format(\"%d %d %d\", min, max, sum));\n\t\t}\n\t }\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}\n }\n}",
"Main",
"public static void main(String[] args) {\n\ttry {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\n\t int n = 0;\n\n\t for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }\n\n\t br.close();\n\n\t for (Integer i = 0; i < lines.size(); i++) {\n\t\tif (i==0) {\n\t\t n = Integer.parseInt(lines.get(i));\n\t\t} else {\n\t\t String[] splits = lines.get(i).split(\" \");\n\t\t List<Long> numbers = new ArrayList<Long>();\n\t\t for ( int j = 0; j < splits.length; j++ ) {\n\t\t\tnumbers.add(j, Long.parseLong(splits[j]));\n\t\t }\n\n\t\t numbers.sort(Comparator.naturalOrder());\n\t\t Long min = numbers.get(0);\n\t\t numbers.sort(Comparator.reverseOrder());\n\t\t Long max = numbers.get(0);\n\n\t\t Long sum = 0L;\n\t\t for (Long e : numbers) {\n\t\t\tsum += e;\n\t\t }\n\n\t\t System.out.println(String.format(\"%d %d %d\", min, max, sum));\n\t\t}\n\t }\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}\n }",
"main",
"{\n\ttry {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\n\t int n = 0;\n\n\t for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }\n\n\t br.close();\n\n\t for (Integer i = 0; i < lines.size(); i++) {\n\t\tif (i==0) {\n\t\t n = Integer.parseInt(lines.get(i));\n\t\t} else {\n\t\t String[] splits = lines.get(i).split(\" \");\n\t\t List<Long> numbers = new ArrayList<Long>();\n\t\t for ( int j = 0; j < splits.length; j++ ) {\n\t\t\tnumbers.add(j, Long.parseLong(splits[j]));\n\t\t }\n\n\t\t numbers.sort(Comparator.naturalOrder());\n\t\t Long min = numbers.get(0);\n\t\t numbers.sort(Comparator.reverseOrder());\n\t\t Long max = numbers.get(0);\n\n\t\t Long sum = 0L;\n\t\t for (Long e : numbers) {\n\t\t\tsum += e;\n\t\t }\n\n\t\t System.out.println(String.format(\"%d %d %d\", min, max, sum));\n\t\t}\n\t }\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}\n }",
"try {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\n\t int n = 0;\n\n\t for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }\n\n\t br.close();\n\n\t for (Integer i = 0; i < lines.size(); i++) {\n\t\tif (i==0) {\n\t\t n = Integer.parseInt(lines.get(i));\n\t\t} else {\n\t\t String[] splits = lines.get(i).split(\" \");\n\t\t List<Long> numbers = new ArrayList<Long>();\n\t\t for ( int j = 0; j < splits.length; j++ ) {\n\t\t\tnumbers.add(j, Long.parseLong(splits[j]));\n\t\t }\n\n\t\t numbers.sort(Comparator.naturalOrder());\n\t\t Long min = numbers.get(0);\n\t\t numbers.sort(Comparator.reverseOrder());\n\t\t Long max = numbers.get(0);\n\n\t\t Long sum = 0L;\n\t\t for (Long e : numbers) {\n\t\t\tsum += e;\n\t\t }\n\n\t\t System.out.println(String.format(\"%d %d %d\", min, max, sum));\n\t\t}\n\t }\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}",
"catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}",
"Exception e",
"{\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}",
"System.out.println(e.getMessage())",
"System.out.println",
"System.out",
"System",
"System.out",
"e.getMessage()",
"e.getMessage",
"e",
"System.out.println(Arrays.toString(e.getStackTrace()))",
"System.out.println",
"System.out",
"System",
"System.out",
"Arrays.toString(e.getStackTrace())",
"Arrays.toString",
"Arrays",
"e.getStackTrace()",
"e.getStackTrace",
"e",
"System.exit(0)",
"System.exit",
"System",
"0",
"{\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\n\t int n = 0;\n\n\t for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }\n\n\t br.close();\n\n\t for (Integer i = 0; i < lines.size(); i++) {\n\t\tif (i==0) {\n\t\t n = Integer.parseInt(lines.get(i));\n\t\t} else {\n\t\t String[] splits = lines.get(i).split(\" \");\n\t\t List<Long> numbers = new ArrayList<Long>();\n\t\t for ( int j = 0; j < splits.length; j++ ) {\n\t\t\tnumbers.add(j, Long.parseLong(splits[j]));\n\t\t }\n\n\t\t numbers.sort(Comparator.naturalOrder());\n\t\t Long min = numbers.get(0);\n\t\t numbers.sort(Comparator.reverseOrder());\n\t\t Long max = numbers.get(0);\n\n\t\t Long sum = 0L;\n\t\t for (Long e : numbers) {\n\t\t\tsum += e;\n\t\t }\n\n\t\t System.out.println(String.format(\"%d %d %d\", min, max, sum));\n\t\t}\n\t }\n\t System.exit(0);\n\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"List<String> lines = new ArrayList<String>();",
"lines",
"new ArrayList<String>()",
"int n = 0;",
"n",
"0",
"for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }",
"String line = br.readLine();",
"String line = br.readLine();",
"line",
"br.readLine()",
"br.readLine",
"br",
"line != null",
"line",
"null",
"line = br.readLine()",
"line = br.readLine()",
"line",
"br.readLine()",
"br.readLine",
"br",
"{\n\t\tlines.add(line);\n\t }",
"{\n\t\tlines.add(line);\n\t }",
"lines.add(line)",
"lines.add",
"lines",
"line",
"br.close()",
"br.close",
"br",
"for (Integer i = 0; i < lines.size(); i++) {\n\t\tif (i==0) {\n\t\t n = Integer.parseInt(lines.get(i));\n\t\t} else {\n\t\t String[] splits = lines.get(i).split(\" \");\n\t\t List<Long> numbers = new ArrayList<Long>();\n\t\t for ( int j = 0; j < splits.length; j++ ) {\n\t\t\tnumbers.add(j, Long.parseLong(splits[j]));\n\t\t }\n\n\t\t numbers.sort(Comparator.naturalOrder());\n\t\t Long min = numbers.get(0);\n\t\t numbers.sort(Comparator.reverseOrder());\n\t\t Long max = numbers.get(0);\n\n\t\t Long sum = 0L;\n\t\t for (Long e : numbers) {\n\t\t\tsum += e;\n\t\t }\n\n\t\t System.out.println(String.format(\"%d %d %d\", min, max, sum));\n\t\t}\n\t }",
"Integer i = 0;",
"Integer i = 0;",
"i",
"0",
"i < lines.size()",
"i",
"lines.size()",
"lines.size",
"lines",
"i++",
"i++",
"i",
"{\n\t\tif (i==0) {\n\t\t n = Integer.parseInt(lines.get(i));\n\t\t} else {\n\t\t String[] splits = lines.get(i).split(\" \");\n\t\t List<Long> numbers = new ArrayList<Long>();\n\t\t for ( int j = 0; j < splits.length; j++ ) {\n\t\t\tnumbers.add(j, Long.parseLong(splits[j]));\n\t\t }\n\n\t\t numbers.sort(Comparator.naturalOrder());\n\t\t Long min = numbers.get(0);\n\t\t numbers.sort(Comparator.reverseOrder());\n\t\t Long max = numbers.get(0);\n\n\t\t Long sum = 0L;\n\t\t for (Long e : numbers) {\n\t\t\tsum += e;\n\t\t }\n\n\t\t System.out.println(String.format(\"%d %d %d\", min, max, sum));\n\t\t}\n\t }",
"{\n\t\tif (i==0) {\n\t\t n = Integer.parseInt(lines.get(i));\n\t\t} else {\n\t\t String[] splits = lines.get(i).split(\" \");\n\t\t List<Long> numbers = new ArrayList<Long>();\n\t\t for ( int j = 0; j < splits.length; j++ ) {\n\t\t\tnumbers.add(j, Long.parseLong(splits[j]));\n\t\t }\n\n\t\t numbers.sort(Comparator.naturalOrder());\n\t\t Long min = numbers.get(0);\n\t\t numbers.sort(Comparator.reverseOrder());\n\t\t Long max = numbers.get(0);\n\n\t\t Long sum = 0L;\n\t\t for (Long e : numbers) {\n\t\t\tsum += e;\n\t\t }\n\n\t\t System.out.println(String.format(\"%d %d %d\", min, max, sum));\n\t\t}\n\t }",
"if (i==0) {\n\t\t n = Integer.parseInt(lines.get(i));\n\t\t} else {\n\t\t String[] splits = lines.get(i).split(\" \");\n\t\t List<Long> numbers = new ArrayList<Long>();\n\t\t for ( int j = 0; j < splits.length; j++ ) {\n\t\t\tnumbers.add(j, Long.parseLong(splits[j]));\n\t\t }\n\n\t\t numbers.sort(Comparator.naturalOrder());\n\t\t Long min = numbers.get(0);\n\t\t numbers.sort(Comparator.reverseOrder());\n\t\t Long max = numbers.get(0);\n\n\t\t Long sum = 0L;\n\t\t for (Long e : numbers) {\n\t\t\tsum += e;\n\t\t }\n\n\t\t System.out.println(String.format(\"%d %d %d\", min, max, sum));\n\t\t}",
"i==0",
"i",
"0",
"{\n\t\t n = Integer.parseInt(lines.get(i));\n\t\t}",
"n = Integer.parseInt(lines.get(i))",
"n",
"Integer.parseInt(lines.get(i))",
"Integer.parseInt",
"Integer",
"lines.get(i)",
"lines.get",
"lines",
"i",
"{\n\t\t String[] splits = lines.get(i).split(\" \");\n\t\t List<Long> numbers = new ArrayList<Long>();\n\t\t for ( int j = 0; j < splits.length; j++ ) {\n\t\t\tnumbers.add(j, Long.parseLong(splits[j]));\n\t\t }\n\n\t\t numbers.sort(Comparator.naturalOrder());\n\t\t Long min = numbers.get(0);\n\t\t numbers.sort(Comparator.reverseOrder());\n\t\t Long max = numbers.get(0);\n\n\t\t Long sum = 0L;\n\t\t for (Long e : numbers) {\n\t\t\tsum += e;\n\t\t }\n\n\t\t System.out.println(String.format(\"%d %d %d\", min, max, sum));\n\t\t}",
"String[] splits = lines.get(i).split(\" \");",
"splits",
"lines.get(i).split(\" \")",
"lines.get(i).split",
"lines.get(i)",
"lines.get",
"lines",
"i",
"\" \"",
"List<Long> numbers = new ArrayList<Long>();",
"numbers",
"new ArrayList<Long>()",
"for ( int j = 0; j < splits.length; j++ ) {\n\t\t\tnumbers.add(j, Long.parseLong(splits[j]));\n\t\t }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < splits.length",
"j",
"splits.length",
"splits",
"splits.length",
"j++",
"j++",
"j",
"{\n\t\t\tnumbers.add(j, Long.parseLong(splits[j]));\n\t\t }",
"{\n\t\t\tnumbers.add(j, Long.parseLong(splits[j]));\n\t\t }",
"numbers.add(j, Long.parseLong(splits[j]))",
"numbers.add",
"numbers",
"j",
"Long.parseLong(splits[j])",
"Long.parseLong",
"Long",
"splits[j]",
"splits",
"j",
"numbers.sort(Comparator.naturalOrder())",
"numbers.sort",
"numbers",
"Comparator.naturalOrder()",
"Comparator.naturalOrder",
"Comparator",
"Long min = numbers.get(0);",
"min",
"numbers.get(0)",
"numbers.get",
"numbers",
"0",
"numbers.sort(Comparator.reverseOrder())",
"numbers.sort",
"numbers",
"Comparator.reverseOrder()",
"Comparator.reverseOrder",
"Comparator",
"Long max = numbers.get(0);",
"max",
"numbers.get(0)",
"numbers.get",
"numbers",
"0",
"Long sum = 0L;",
"sum",
"0L",
"for (Long e : numbers) {\n\t\t\tsum += e;\n\t\t }",
"Long e",
"numbers",
"{\n\t\t\tsum += e;\n\t\t }",
"{\n\t\t\tsum += e;\n\t\t }",
"sum += e",
"sum",
"e",
"System.out.println(String.format(\"%d %d %d\", min, max, sum))",
"System.out.println",
"System.out",
"System",
"System.out",
"String.format(\"%d %d %d\", min, max, sum)",
"String.format",
"String",
"\"%d %d %d\"",
"min",
"max",
"sum",
"System.exit(0)",
"System.exit",
"System",
"0",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args) {\n\ttry {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\n\t int n = 0;\n\n\t for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }\n\n\t br.close();\n\n\t for (Integer i = 0; i < lines.size(); i++) {\n\t\tif (i==0) {\n\t\t n = Integer.parseInt(lines.get(i));\n\t\t} else {\n\t\t String[] splits = lines.get(i).split(\" \");\n\t\t List<Long> numbers = new ArrayList<Long>();\n\t\t for ( int j = 0; j < splits.length; j++ ) {\n\t\t\tnumbers.add(j, Long.parseLong(splits[j]));\n\t\t }\n\n\t\t numbers.sort(Comparator.naturalOrder());\n\t\t Long min = numbers.get(0);\n\t\t numbers.sort(Comparator.reverseOrder());\n\t\t Long max = numbers.get(0);\n\n\t\t Long sum = 0L;\n\t\t for (Long e : numbers) {\n\t\t\tsum += e;\n\t\t }\n\n\t\t System.out.println(String.format(\"%d %d %d\", min, max, sum));\n\t\t}\n\t }\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}\n }\n}",
"public class Main{\n public static void main(String[] args) {\n\ttry {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\n\t int n = 0;\n\n\t for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }\n\n\t br.close();\n\n\t for (Integer i = 0; i < lines.size(); i++) {\n\t\tif (i==0) {\n\t\t n = Integer.parseInt(lines.get(i));\n\t\t} else {\n\t\t String[] splits = lines.get(i).split(\" \");\n\t\t List<Long> numbers = new ArrayList<Long>();\n\t\t for ( int j = 0; j < splits.length; j++ ) {\n\t\t\tnumbers.add(j, Long.parseLong(splits[j]));\n\t\t }\n\n\t\t numbers.sort(Comparator.naturalOrder());\n\t\t Long min = numbers.get(0);\n\t\t numbers.sort(Comparator.reverseOrder());\n\t\t Long max = numbers.get(0);\n\n\t\t Long sum = 0L;\n\t\t for (Long e : numbers) {\n\t\t\tsum += e;\n\t\t }\n\n\t\t System.out.println(String.format(\"%d %d %d\", min, max, sum));\n\t\t}\n\t }\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.List;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
public class Main{
public static void main(String[] args) {
try {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
List<String> lines = new ArrayList<String>();
int n = 0;
for (String line = br.readLine(); line != null; line = br.readLine()) {
lines.add(line);
}
br.close();
for (Integer i = 0; i < lines.size(); i++) {
if (i==0) {
n = Integer.parseInt(lines.get(i));
} else {
String[] splits = lines.get(i).split(" ");
List<Long> numbers = new ArrayList<Long>();
for ( int j = 0; j < splits.length; j++ ) {
numbers.add(j, Long.parseLong(splits[j]));
}
numbers.sort(Comparator.naturalOrder());
Long min = numbers.get(0);
numbers.sort(Comparator.reverseOrder());
Long max = numbers.get(0);
Long sum = 0L;
for (Long e : numbers) {
sum += e;
}
System.out.println(String.format("%d %d %d", min, max, sum));
}
}
System.exit(0);
} catch (Exception e) {
System.out.println(e.getMessage());
System.out.println(Arrays.toString(e.getStackTrace()));
System.exit(0);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
20,
0,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
18,
13,
13,
4,
18,
13,
13,
0,
13,
18,
13,
17,
0,
13,
18,
13,
2,
13,
17,
4,
18,
18,
13,
13,
17,
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
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
48,
49
],
[
42,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
8,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
8,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
8,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
8,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
71,
77
],
[
71,
78
],
[
71,
79
],
[
6,
80
],
[
80,
81
]
] | [
"import java.util.*;\n\nclass Main{\n\tpublic static void main(String args[]){\n\t\tint num, max, min;\n\t\tlong sum = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tnum = scan.nextInt();\n\t\tint[] arr = new int[num];\n\n\t\tfor(int i=0; i<num; i++) {\n\t\t\tarr[i] = scan.nextInt();\n\t\t\tsum += arr[i];\n\t\t}\n\n\t\tArrays.sort(arr);\n\t\tmin = arr[0];\n\t\tmax = arr[num-1];\n\n\t\tSystem.out.printf(\"%d %d %d\\n\", min, max, sum);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n\tpublic static void main(String args[]){\n\t\tint num, max, min;\n\t\tlong sum = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tnum = scan.nextInt();\n\t\tint[] arr = new int[num];\n\n\t\tfor(int i=0; i<num; i++) {\n\t\t\tarr[i] = scan.nextInt();\n\t\t\tsum += arr[i];\n\t\t}\n\n\t\tArrays.sort(arr);\n\t\tmin = arr[0];\n\t\tmax = arr[num-1];\n\n\t\tSystem.out.printf(\"%d %d %d\\n\", min, max, sum);\n\t}\n}",
"Main",
"public static void main(String args[]){\n\t\tint num, max, min;\n\t\tlong sum = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tnum = scan.nextInt();\n\t\tint[] arr = new int[num];\n\n\t\tfor(int i=0; i<num; i++) {\n\t\t\tarr[i] = scan.nextInt();\n\t\t\tsum += arr[i];\n\t\t}\n\n\t\tArrays.sort(arr);\n\t\tmin = arr[0];\n\t\tmax = arr[num-1];\n\n\t\tSystem.out.printf(\"%d %d %d\\n\", min, max, sum);\n\t}",
"main",
"{\n\t\tint num, max, min;\n\t\tlong sum = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tnum = scan.nextInt();\n\t\tint[] arr = new int[num];\n\n\t\tfor(int i=0; i<num; i++) {\n\t\t\tarr[i] = scan.nextInt();\n\t\t\tsum += arr[i];\n\t\t}\n\n\t\tArrays.sort(arr);\n\t\tmin = arr[0];\n\t\tmax = arr[num-1];\n\n\t\tSystem.out.printf(\"%d %d %d\\n\", min, max, sum);\n\t}",
"int num",
"num",
"max",
"max",
"min;",
"min",
"long sum = 0;",
"sum",
"0",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"num = scan.nextInt()",
"num",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[] arr = new int[num];",
"arr",
"new int[num]",
"num",
"for(int i=0; i<num; i++) {\n\t\t\tarr[i] = scan.nextInt();\n\t\t\tsum += arr[i];\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<num",
"i",
"num",
"i++",
"i++",
"i",
"{\n\t\t\tarr[i] = scan.nextInt();\n\t\t\tsum += arr[i];\n\t\t}",
"{\n\t\t\tarr[i] = scan.nextInt();\n\t\t\tsum += arr[i];\n\t\t}",
"arr[i] = scan.nextInt()",
"arr[i]",
"arr",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"sum += arr[i]",
"sum",
"arr[i]",
"arr",
"i",
"Arrays.sort(arr)",
"Arrays.sort",
"Arrays",
"arr",
"min = arr[0]",
"min",
"arr[0]",
"arr",
"0",
"max = arr[num-1]",
"max",
"arr[num-1]",
"arr",
"num-1",
"num",
"1",
"System.out.printf(\"%d %d %d\\n\", min, max, sum)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d %d %d\\n\"",
"min",
"max",
"sum",
"String args[]",
"args"
] | import java.util.*;
class Main{
public static void main(String args[]){
int num, max, min;
long sum = 0;
Scanner scan = new Scanner(System.in);
num = scan.nextInt();
int[] arr = new int[num];
for(int i=0; i<num; i++) {
arr[i] = scan.nextInt();
sum += arr[i];
}
Arrays.sort(arr);
min = arr[0];
max = arr[num-1];
System.out.printf("%d %d %d\n", min, max, sum);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
17,
41,
13,
40,
17,
41,
13,
17,
41,
13,
17,
41,
13,
4,
18,
13,
42,
2,
17,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
18,
13,
13,
14,
2,
18,
13,
13,
13,
30,
0,
13,
18,
13,
13,
14,
2,
13,
18,
13,
13,
30,
0,
13,
18,
13,
13,
4,
18,
18,
13,
13,
17,
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,
16
],
[
16,
17
],
[
16,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
8,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
34,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
39,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
39,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
39,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
64,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
8,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
76,
82
],
[
76,
83
],
[
76,
84
],
[
6,
85
],
[
85,
86
]
] | [
"import java.util.Scanner;\n\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner kb = new Scanner( System.in);\t\n\t\tdouble a[]=new double[10001];\n\t\tdouble min=1000000,max=-1000000,sum=0;\n\t\tint i=0;\n\t\t\n\t\tint n = kb.nextInt();\n\t\twhile( 0<n-- ) {\n\t\t\ta[i]=kb.nextDouble();\n\t\t\tsum+=a[i];\n\t\t\tif( a[i] <= min ) {\n\t\t\t\tmin=a[i];\n\t\t\t} \n\t\t\tif( max <= a[i] ) {\n\t\t\t\tmax=a[i];\n\t\t\t} \n\t\t}\n\t\t\n\t\tSystem.out.printf( \"%.0f %.0f %.0f\\n\", min, max, sum );\n\t\t\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner kb = new Scanner( System.in);\t\n\t\tdouble a[]=new double[10001];\n\t\tdouble min=1000000,max=-1000000,sum=0;\n\t\tint i=0;\n\t\t\n\t\tint n = kb.nextInt();\n\t\twhile( 0<n-- ) {\n\t\t\ta[i]=kb.nextDouble();\n\t\t\tsum+=a[i];\n\t\t\tif( a[i] <= min ) {\n\t\t\t\tmin=a[i];\n\t\t\t} \n\t\t\tif( max <= a[i] ) {\n\t\t\t\tmax=a[i];\n\t\t\t} \n\t\t}\n\t\t\n\t\tSystem.out.printf( \"%.0f %.0f %.0f\\n\", min, max, sum );\n\t\t\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner kb = new Scanner( System.in);\t\n\t\tdouble a[]=new double[10001];\n\t\tdouble min=1000000,max=-1000000,sum=0;\n\t\tint i=0;\n\t\t\n\t\tint n = kb.nextInt();\n\t\twhile( 0<n-- ) {\n\t\t\ta[i]=kb.nextDouble();\n\t\t\tsum+=a[i];\n\t\t\tif( a[i] <= min ) {\n\t\t\t\tmin=a[i];\n\t\t\t} \n\t\t\tif( max <= a[i] ) {\n\t\t\t\tmax=a[i];\n\t\t\t} \n\t\t}\n\t\t\n\t\tSystem.out.printf( \"%.0f %.0f %.0f\\n\", min, max, sum );\n\t\t\n\t}",
"main",
"{\n\t\tScanner kb = new Scanner( System.in);\t\n\t\tdouble a[]=new double[10001];\n\t\tdouble min=1000000,max=-1000000,sum=0;\n\t\tint i=0;\n\t\t\n\t\tint n = kb.nextInt();\n\t\twhile( 0<n-- ) {\n\t\t\ta[i]=kb.nextDouble();\n\t\t\tsum+=a[i];\n\t\t\tif( a[i] <= min ) {\n\t\t\t\tmin=a[i];\n\t\t\t} \n\t\t\tif( max <= a[i] ) {\n\t\t\t\tmax=a[i];\n\t\t\t} \n\t\t}\n\t\t\n\t\tSystem.out.printf( \"%.0f %.0f %.0f\\n\", min, max, sum );\n\t\t\n\t}",
"Scanner kb = new Scanner( System.in);",
"kb",
"new Scanner( System.in)",
"double a[]=new double[10001];",
"a",
"new double[10001]",
"10001",
"double min=1000000",
"min",
"1000000",
"max=-1000000",
"max",
"-1000000",
"1000000",
"sum=0;",
"sum",
"0",
"int i=0;",
"i",
"0",
"int n = kb.nextInt();",
"n",
"kb.nextInt()",
"kb.nextInt",
"kb",
"while( 0<n-- ) {\n\t\t\ta[i]=kb.nextDouble();\n\t\t\tsum+=a[i];\n\t\t\tif( a[i] <= min ) {\n\t\t\t\tmin=a[i];\n\t\t\t} \n\t\t\tif( max <= a[i] ) {\n\t\t\t\tmax=a[i];\n\t\t\t} \n\t\t}",
"0<n--",
"0",
"n--",
"n",
"{\n\t\t\ta[i]=kb.nextDouble();\n\t\t\tsum+=a[i];\n\t\t\tif( a[i] <= min ) {\n\t\t\t\tmin=a[i];\n\t\t\t} \n\t\t\tif( max <= a[i] ) {\n\t\t\t\tmax=a[i];\n\t\t\t} \n\t\t}",
"a[i]=kb.nextDouble()",
"a[i]",
"a",
"i",
"kb.nextDouble()",
"kb.nextDouble",
"kb",
"sum+=a[i]",
"sum",
"a[i]",
"a",
"i",
"if( a[i] <= min ) {\n\t\t\t\tmin=a[i];\n\t\t\t}",
"a[i] <= min",
"a[i]",
"a",
"i",
"min",
"{\n\t\t\t\tmin=a[i];\n\t\t\t}",
"min=a[i]",
"min",
"a[i]",
"a",
"i",
"if( max <= a[i] ) {\n\t\t\t\tmax=a[i];\n\t\t\t}",
"max <= a[i]",
"max",
"a[i]",
"a",
"i",
"{\n\t\t\t\tmax=a[i];\n\t\t\t}",
"max=a[i]",
"max",
"a[i]",
"a",
"i",
"System.out.printf( \"%.0f %.0f %.0f\\n\", min, max, sum )",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%.0f %.0f %.0f\\n\"",
"min",
"max",
"sum",
"String[] args",
"args"
] | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner kb = new Scanner( System.in);
double a[]=new double[10001];
double min=1000000,max=-1000000,sum=0;
int i=0;
int n = kb.nextInt();
while( 0<n-- ) {
a[i]=kb.nextDouble();
sum+=a[i];
if( a[i] <= min ) {
min=a[i];
}
if( max <= a[i] ) {
max=a[i];
}
}
System.out.printf( "%.0f %.0f %.0f\n", min, max, sum );
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
13,
41,
13,
13,
41,
13,
13,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
2,
13,
17,
30,
3,
0,
13,
4,
18,
13,
14,
2,
2,
40,
17,
13,
2,
13,
17,
30,
3,
0,
13,
2,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
4,
18,
18,
13,
13,
17,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
105,
5
],
[
105,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
31,
41
],
[
41,
42
],
[
42,
43
],
[
31,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
51,
53
],
[
46,
54
],
[
54,
55
],
[
45,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
45,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
62,
67
],
[
67,
68
],
[
67,
69
],
[
61,
70
],
[
70,
71
],
[
45,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
74,
76
],
[
45,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
45,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
8,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
93,
99
],
[
93,
100
],
[
93,
101
],
[
6,
102
],
[
102,
103
],
[
0,
104
],
[
104,
105
],
[
104,
106
]
] | [
"\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n long goukei = b;\n long saishou = b, saidai = b;\n\n for (int i = 1; i <= a -1; i++) {\n if (a < 0 && a >= 10000) {\n break;\n }\n b = scanner.nextInt();\n if (-1000000 > b && b >= 1000000) {\n break;\n }\n goukei = b + goukei;\n if (saishou > b) {\n saishou = b;\n }\n if (saidai < b) {\n saidai = b;\n }\n }\n System.out.printf(\"%d %d %d\\n\",saishou,saidai,goukei);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n long goukei = b;\n long saishou = b, saidai = b;\n\n for (int i = 1; i <= a -1; i++) {\n if (a < 0 && a >= 10000) {\n break;\n }\n b = scanner.nextInt();\n if (-1000000 > b && b >= 1000000) {\n break;\n }\n goukei = b + goukei;\n if (saishou > b) {\n saishou = b;\n }\n if (saidai < b) {\n saidai = b;\n }\n }\n System.out.printf(\"%d %d %d\\n\",saishou,saidai,goukei);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n long goukei = b;\n long saishou = b, saidai = b;\n\n for (int i = 1; i <= a -1; i++) {\n if (a < 0 && a >= 10000) {\n break;\n }\n b = scanner.nextInt();\n if (-1000000 > b && b >= 1000000) {\n break;\n }\n goukei = b + goukei;\n if (saishou > b) {\n saishou = b;\n }\n if (saidai < b) {\n saidai = b;\n }\n }\n System.out.printf(\"%d %d %d\\n\",saishou,saidai,goukei);\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n long goukei = b;\n long saishou = b, saidai = b;\n\n for (int i = 1; i <= a -1; i++) {\n if (a < 0 && a >= 10000) {\n break;\n }\n b = scanner.nextInt();\n if (-1000000 > b && b >= 1000000) {\n break;\n }\n goukei = b + goukei;\n if (saishou > b) {\n saishou = b;\n }\n if (saidai < b) {\n saidai = b;\n }\n }\n System.out.printf(\"%d %d %d\\n\",saishou,saidai,goukei);\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int a = scanner.nextInt();",
"a",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int b = scanner.nextInt();",
"b",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"long goukei = b;",
"goukei",
"b",
"long saishou = b",
"saishou",
"b",
"saidai = b;",
"saidai",
"b",
"for (int i = 1; i <= a -1; i++) {\n if (a < 0 && a >= 10000) {\n break;\n }\n b = scanner.nextInt();\n if (-1000000 > b && b >= 1000000) {\n break;\n }\n goukei = b + goukei;\n if (saishou > b) {\n saishou = b;\n }\n if (saidai < b) {\n saidai = b;\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= a -1",
"i",
"a -1",
"a",
"1",
"i++",
"i++",
"i",
"{\n if (a < 0 && a >= 10000) {\n break;\n }\n b = scanner.nextInt();\n if (-1000000 > b && b >= 1000000) {\n break;\n }\n goukei = b + goukei;\n if (saishou > b) {\n saishou = b;\n }\n if (saidai < b) {\n saidai = b;\n }\n }",
"{\n if (a < 0 && a >= 10000) {\n break;\n }\n b = scanner.nextInt();\n if (-1000000 > b && b >= 1000000) {\n break;\n }\n goukei = b + goukei;\n if (saishou > b) {\n saishou = b;\n }\n if (saidai < b) {\n saidai = b;\n }\n }",
"if (a < 0 && a >= 10000) {\n break;\n }",
"a < 0 && a >= 10000",
"a < 0",
"a",
"0",
"a >= 10000",
"a",
"10000",
"{\n break;\n }",
"break;",
"b = scanner.nextInt()",
"b",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"if (-1000000 > b && b >= 1000000) {\n break;\n }",
"-1000000 > b && b >= 1000000",
"-1000000 > b",
"-1000000",
"1000000",
"b",
"b >= 1000000",
"b",
"1000000",
"{\n break;\n }",
"break;",
"goukei = b + goukei",
"goukei",
"b + goukei",
"b",
"goukei",
"if (saishou > b) {\n saishou = b;\n }",
"saishou > b",
"saishou",
"b",
"{\n saishou = b;\n }",
"saishou = b",
"saishou",
"b",
"if (saidai < b) {\n saidai = b;\n }",
"saidai < b",
"saidai",
"b",
"{\n saidai = b;\n }",
"saidai = b",
"saidai",
"b",
"System.out.printf(\"%d %d %d\\n\",saishou,saidai,goukei)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d %d %d\\n\"",
"saishou",
"saidai",
"goukei",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n long goukei = b;\n long saishou = b, saidai = b;\n\n for (int i = 1; i <= a -1; i++) {\n if (a < 0 && a >= 10000) {\n break;\n }\n b = scanner.nextInt();\n if (-1000000 > b && b >= 1000000) {\n break;\n }\n goukei = b + goukei;\n if (saishou > b) {\n saishou = b;\n }\n if (saidai < b) {\n saidai = b;\n }\n }\n System.out.printf(\"%d %d %d\\n\",saishou,saidai,goukei);\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n long goukei = b;\n long saishou = b, saidai = b;\n\n for (int i = 1; i <= a -1; i++) {\n if (a < 0 && a >= 10000) {\n break;\n }\n b = scanner.nextInt();\n if (-1000000 > b && b >= 1000000) {\n break;\n }\n goukei = b + goukei;\n if (saishou > b) {\n saishou = b;\n }\n if (saidai < b) {\n saidai = b;\n }\n }\n System.out.printf(\"%d %d %d\\n\",saishou,saidai,goukei);\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
long goukei = b;
long saishou = b, saidai = b;
for (int i = 1; i <= a -1; i++) {
if (a < 0 && a >= 10000) {
break;
}
b = scanner.nextInt();
if (-1000000 > b && b >= 1000000) {
break;
}
goukei = b + goukei;
if (saishou > b) {
saishou = b;
}
if (saidai < b) {
saidai = b;
}
}
System.out.printf("%d %d %d\n",saishou,saidai,goukei);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
14,
2,
2,
13,
17,
2,
4,
18,
13,
17,
17,
13,
37,
20,
41,
13,
20,
13,
0,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
0,
13,
17,
30,
30,
0,
13,
4,
18,
13,
13,
4,
18,
13,
18,
13,
13,
0,
13,
4,
18,
13,
13,
4,
18,
13,
18,
13,
13,
14,
2,
2,
4,
18,
13,
18,
13,
13,
40,
4,
18,
13,
17,
17,
2,
4,
18,
13,
17,
17,
4,
18,
13,
18,
13,
13,
37,
20,
0,
13,
2,
13,
4,
18,
13,
18,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
165,
11
],
[
165,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
32,
36
],
[
31,
37
],
[
26,
38
],
[
38,
39
],
[
14,
40
],
[
40,
41
],
[
40,
42
],
[
14,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
46,
51
],
[
14,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
57,
59
],
[
14,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
65,
67
],
[
14,
68
],
[
68,
69
],
[
68,
70
],
[
14,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
71,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
71,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
87,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
94,
95
],
[
94,
96
],
[
84,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
99,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
106,
107
],
[
106,
108
],
[
84,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
115,
116
],
[
115,
117
],
[
111,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
119,
122
],
[
119,
123
],
[
110,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
125,
128
],
[
125,
129
],
[
124,
130
],
[
130,
131
],
[
131,
132
],
[
130,
133
],
[
133,
134
],
[
133,
135
],
[
109,
136
],
[
136,
137
],
[
84,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
143,
144
],
[
142,
145
],
[
145,
146
],
[
145,
147
],
[
14,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
148,
153
],
[
156,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
154,
160
],
[
156,
161
],
[
12,
162
],
[
162,
163
],
[
0,
164
],
[
164,
165
],
[
164,
166
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tint range = Integer.parseInt(in.readLine());\n\t\tif (range < 0 || Math.pow(10, 4) < range)\n\t\t\tthrow new RuntimeException(\"error:range\");\n\t\tString[] nums = new String[range];\n\t\tnums = in.readLine().split(\" \");\n\t\tint min = Integer.parseInt(nums[0]), max = Integer.parseInt(nums[0]);\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < range; i += 1) {\n\t\t\tmax = Math.max(max, Integer.parseInt(nums[i]));\n\t\t\tmin = Math.min(min, Integer.parseInt(nums[i]));\n\t\t\tif (Integer.parseInt(nums[i]) < -Math.pow(10, 6)\n\t\t\t\t\t|| Math.pow(10, 6) < Integer.parseInt(nums[i]))\n\t\t\t\tthrow new RuntimeException(\"error:nums\");\n\t\t\tsum = sum + Integer.parseInt(nums[i]);\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tint range = Integer.parseInt(in.readLine());\n\t\tif (range < 0 || Math.pow(10, 4) < range)\n\t\t\tthrow new RuntimeException(\"error:range\");\n\t\tString[] nums = new String[range];\n\t\tnums = in.readLine().split(\" \");\n\t\tint min = Integer.parseInt(nums[0]), max = Integer.parseInt(nums[0]);\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < range; i += 1) {\n\t\t\tmax = Math.max(max, Integer.parseInt(nums[i]));\n\t\t\tmin = Math.min(min, Integer.parseInt(nums[i]));\n\t\t\tif (Integer.parseInt(nums[i]) < -Math.pow(10, 6)\n\t\t\t\t\t|| Math.pow(10, 6) < Integer.parseInt(nums[i]))\n\t\t\t\tthrow new RuntimeException(\"error:nums\");\n\t\t\tsum = sum + Integer.parseInt(nums[i]);\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tint range = Integer.parseInt(in.readLine());\n\t\tif (range < 0 || Math.pow(10, 4) < range)\n\t\t\tthrow new RuntimeException(\"error:range\");\n\t\tString[] nums = new String[range];\n\t\tnums = in.readLine().split(\" \");\n\t\tint min = Integer.parseInt(nums[0]), max = Integer.parseInt(nums[0]);\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < range; i += 1) {\n\t\t\tmax = Math.max(max, Integer.parseInt(nums[i]));\n\t\t\tmin = Math.min(min, Integer.parseInt(nums[i]));\n\t\t\tif (Integer.parseInt(nums[i]) < -Math.pow(10, 6)\n\t\t\t\t\t|| Math.pow(10, 6) < Integer.parseInt(nums[i]))\n\t\t\t\tthrow new RuntimeException(\"error:nums\");\n\t\t\tsum = sum + Integer.parseInt(nums[i]);\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t}",
"main",
"{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tint range = Integer.parseInt(in.readLine());\n\t\tif (range < 0 || Math.pow(10, 4) < range)\n\t\t\tthrow new RuntimeException(\"error:range\");\n\t\tString[] nums = new String[range];\n\t\tnums = in.readLine().split(\" \");\n\t\tint min = Integer.parseInt(nums[0]), max = Integer.parseInt(nums[0]);\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < range; i += 1) {\n\t\t\tmax = Math.max(max, Integer.parseInt(nums[i]));\n\t\t\tmin = Math.min(min, Integer.parseInt(nums[i]));\n\t\t\tif (Integer.parseInt(nums[i]) < -Math.pow(10, 6)\n\t\t\t\t\t|| Math.pow(10, 6) < Integer.parseInt(nums[i]))\n\t\t\t\tthrow new RuntimeException(\"error:nums\");\n\t\t\tsum = sum + Integer.parseInt(nums[i]);\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t}",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"int range = Integer.parseInt(in.readLine());",
"range",
"Integer.parseInt(in.readLine())",
"Integer.parseInt",
"Integer",
"in.readLine()",
"in.readLine",
"in",
"if (range < 0 || Math.pow(10, 4) < range)\n\t\t\tthrow new RuntimeException(\"error:range\");",
"range < 0 || Math.pow(10, 4) < range",
"range < 0",
"range",
"0",
"Math.pow(10, 4) < range",
"Math.pow(10, 4)",
"Math.pow",
"Math",
"10",
"4",
"range",
"throw new RuntimeException(\"error:range\");",
"new RuntimeException(\"error:range\")",
"String[] nums = new String[range];",
"nums",
"new String[range]",
"range",
"nums = in.readLine().split(\" \")",
"nums",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"int min = Integer.parseInt(nums[0])",
"min",
"Integer.parseInt(nums[0])",
"Integer.parseInt",
"Integer",
"nums[0]",
"nums",
"0",
"max = Integer.parseInt(nums[0]);",
"max",
"Integer.parseInt(nums[0])",
"Integer.parseInt",
"Integer",
"nums[0]",
"nums",
"0",
"long sum = 0;",
"sum",
"0",
"for (int i = 0; i < range; i += 1) {\n\t\t\tmax = Math.max(max, Integer.parseInt(nums[i]));\n\t\t\tmin = Math.min(min, Integer.parseInt(nums[i]));\n\t\t\tif (Integer.parseInt(nums[i]) < -Math.pow(10, 6)\n\t\t\t\t\t|| Math.pow(10, 6) < Integer.parseInt(nums[i]))\n\t\t\t\tthrow new RuntimeException(\"error:nums\");\n\t\t\tsum = sum + Integer.parseInt(nums[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < range",
"i",
"range",
"i += 1",
"i += 1",
"i",
"1",
"{\n\t\t\tmax = Math.max(max, Integer.parseInt(nums[i]));\n\t\t\tmin = Math.min(min, Integer.parseInt(nums[i]));\n\t\t\tif (Integer.parseInt(nums[i]) < -Math.pow(10, 6)\n\t\t\t\t\t|| Math.pow(10, 6) < Integer.parseInt(nums[i]))\n\t\t\t\tthrow new RuntimeException(\"error:nums\");\n\t\t\tsum = sum + Integer.parseInt(nums[i]);\n\t\t}",
"{\n\t\t\tmax = Math.max(max, Integer.parseInt(nums[i]));\n\t\t\tmin = Math.min(min, Integer.parseInt(nums[i]));\n\t\t\tif (Integer.parseInt(nums[i]) < -Math.pow(10, 6)\n\t\t\t\t\t|| Math.pow(10, 6) < Integer.parseInt(nums[i]))\n\t\t\t\tthrow new RuntimeException(\"error:nums\");\n\t\t\tsum = sum + Integer.parseInt(nums[i]);\n\t\t}",
"max = Math.max(max, Integer.parseInt(nums[i]))",
"max",
"Math.max(max, Integer.parseInt(nums[i]))",
"Math.max",
"Math",
"max",
"Integer.parseInt(nums[i])",
"Integer.parseInt",
"Integer",
"nums[i]",
"nums",
"i",
"min = Math.min(min, Integer.parseInt(nums[i]))",
"min",
"Math.min(min, Integer.parseInt(nums[i]))",
"Math.min",
"Math",
"min",
"Integer.parseInt(nums[i])",
"Integer.parseInt",
"Integer",
"nums[i]",
"nums",
"i",
"if (Integer.parseInt(nums[i]) < -Math.pow(10, 6)\n\t\t\t\t\t|| Math.pow(10, 6) < Integer.parseInt(nums[i]))\n\t\t\t\tthrow new RuntimeException(\"error:nums\");",
"Integer.parseInt(nums[i]) < -Math.pow(10, 6)\n\t\t\t\t\t|| Math.pow(10, 6) < Integer.parseInt(nums[i])",
"Integer.parseInt(nums[i]) < -Math.pow(10, 6)",
"Integer.parseInt(nums[i])",
"Integer.parseInt",
"Integer",
"nums[i]",
"nums",
"i",
"-Math.pow(10, 6)",
"Math.pow(10, 6)",
"Math.pow",
"Math",
"10",
"6",
"Math.pow(10, 6) < Integer.parseInt(nums[i])",
"Math.pow(10, 6)",
"Math.pow",
"Math",
"10",
"6",
"Integer.parseInt(nums[i])",
"Integer.parseInt",
"Integer",
"nums[i]",
"nums",
"i",
"throw new RuntimeException(\"error:nums\");",
"new RuntimeException(\"error:nums\")",
"sum = sum + Integer.parseInt(nums[i])",
"sum",
"sum + Integer.parseInt(nums[i])",
"sum",
"Integer.parseInt(nums[i])",
"Integer.parseInt",
"Integer",
"nums[i]",
"nums",
"i",
"System.out.println(min + \" \" + max + \" \" + sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min + \" \" + max + \" \" + sum",
"\" \"",
"max",
"min + \" \" + max + \" \" + sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tint range = Integer.parseInt(in.readLine());\n\t\tif (range < 0 || Math.pow(10, 4) < range)\n\t\t\tthrow new RuntimeException(\"error:range\");\n\t\tString[] nums = new String[range];\n\t\tnums = in.readLine().split(\" \");\n\t\tint min = Integer.parseInt(nums[0]), max = Integer.parseInt(nums[0]);\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < range; i += 1) {\n\t\t\tmax = Math.max(max, Integer.parseInt(nums[i]));\n\t\t\tmin = Math.min(min, Integer.parseInt(nums[i]));\n\t\t\tif (Integer.parseInt(nums[i]) < -Math.pow(10, 6)\n\t\t\t\t\t|| Math.pow(10, 6) < Integer.parseInt(nums[i]))\n\t\t\t\tthrow new RuntimeException(\"error:nums\");\n\t\t\tsum = sum + Integer.parseInt(nums[i]);\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tint range = Integer.parseInt(in.readLine());\n\t\tif (range < 0 || Math.pow(10, 4) < range)\n\t\t\tthrow new RuntimeException(\"error:range\");\n\t\tString[] nums = new String[range];\n\t\tnums = in.readLine().split(\" \");\n\t\tint min = Integer.parseInt(nums[0]), max = Integer.parseInt(nums[0]);\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < range; i += 1) {\n\t\t\tmax = Math.max(max, Integer.parseInt(nums[i]));\n\t\t\tmin = Math.min(min, Integer.parseInt(nums[i]));\n\t\t\tif (Integer.parseInt(nums[i]) < -Math.pow(10, 6)\n\t\t\t\t\t|| Math.pow(10, 6) < Integer.parseInt(nums[i]))\n\t\t\t\tthrow new RuntimeException(\"error:nums\");\n\t\t\tsum = sum + Integer.parseInt(nums[i]);\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int range = Integer.parseInt(in.readLine());
if (range < 0 || Math.pow(10, 4) < range)
throw new RuntimeException("error:range");
String[] nums = new String[range];
nums = in.readLine().split(" ");
int min = Integer.parseInt(nums[0]), max = Integer.parseInt(nums[0]);
long sum = 0;
for (int i = 0; i < range; i += 1) {
max = Math.max(max, Integer.parseInt(nums[i]));
min = Math.min(min, Integer.parseInt(nums[i]));
if (Integer.parseInt(nums[i]) < -Math.pow(10, 6)
|| Math.pow(10, 6) < Integer.parseInt(nums[i]))
throw new RuntimeException("error:nums");
sum = sum + Integer.parseInt(nums[i]);
}
System.out.println(min + " " + max + " " + sum);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
4,
18,
13,
17,
41,
13,
13,
41,
13,
13,
41,
13,
13,
11,
1,
41,
13,
4,
18,
13,
4,
18,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
14,
2,
13,
13,
0,
13,
13,
14,
2,
13,
13,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
2,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
16,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
23,
28
],
[
11,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
11,
38
],
[
38,
39
],
[
38,
40
],
[
11,
41
],
[
41,
42
],
[
41,
43
],
[
11,
44
],
[
44,
45
],
[
44,
46
],
[
11,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
47,
54
],
[
54,
55
],
[
55,
56
],
[
47,
57
],
[
58,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
58,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
58,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
58,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
81,
83
],
[
58,
84
],
[
84,
85
],
[
84,
86
],
[
11,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
95,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
93,
99
],
[
95,
100
],
[
100,
101
],
[
100,
102
],
[
9,
103
],
[
103,
104
]
] | [
"import java.io.*;\nimport java.util.*;\n\nclass Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tbr.readLine();\n\t\tList<String> a=Arrays.asList(br.readLine().split(\" \"));\n\t\tint n1=Integer.parseInt(a.get(0));\n int min=n1,max=n1;\n long sum=n1;\n for(Iterator<String> i=a.iterator();i.hasNext();){\n\t\t\tString s=i.next();\n \tint n2=Integer.parseInt(s);\n if(n2<min) min=n2;\n if(n2>max) max=n2;\n sum+=n2;\n\t\t}\n System.out.println(min+\" \"+max+\" \"+(sum-n1));\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tbr.readLine();\n\t\tList<String> a=Arrays.asList(br.readLine().split(\" \"));\n\t\tint n1=Integer.parseInt(a.get(0));\n int min=n1,max=n1;\n long sum=n1;\n for(Iterator<String> i=a.iterator();i.hasNext();){\n\t\t\tString s=i.next();\n \tint n2=Integer.parseInt(s);\n if(n2<min) min=n2;\n if(n2>max) max=n2;\n sum+=n2;\n\t\t}\n System.out.println(min+\" \"+max+\" \"+(sum-n1));\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tbr.readLine();\n\t\tList<String> a=Arrays.asList(br.readLine().split(\" \"));\n\t\tint n1=Integer.parseInt(a.get(0));\n int min=n1,max=n1;\n long sum=n1;\n for(Iterator<String> i=a.iterator();i.hasNext();){\n\t\t\tString s=i.next();\n \tint n2=Integer.parseInt(s);\n if(n2<min) min=n2;\n if(n2>max) max=n2;\n sum+=n2;\n\t\t}\n System.out.println(min+\" \"+max+\" \"+(sum-n1));\n\t}",
"main",
"{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tbr.readLine();\n\t\tList<String> a=Arrays.asList(br.readLine().split(\" \"));\n\t\tint n1=Integer.parseInt(a.get(0));\n int min=n1,max=n1;\n long sum=n1;\n for(Iterator<String> i=a.iterator();i.hasNext();){\n\t\t\tString s=i.next();\n \tint n2=Integer.parseInt(s);\n if(n2<min) min=n2;\n if(n2>max) max=n2;\n sum+=n2;\n\t\t}\n System.out.println(min+\" \"+max+\" \"+(sum-n1));\n\t}",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"br.readLine()",
"br.readLine",
"br",
"List<String> a=Arrays.asList(br.readLine().split(\" \"));",
"a",
"Arrays.asList(br.readLine().split(\" \"))",
"Arrays.asList",
"Arrays",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int n1=Integer.parseInt(a.get(0));",
"n1",
"Integer.parseInt(a.get(0))",
"Integer.parseInt",
"Integer",
"a.get(0)",
"a.get",
"a",
"0",
"int min=n1",
"min",
"n1",
"max=n1;",
"max",
"n1",
"long sum=n1;",
"sum",
"n1",
"for(Iterator<String> i=a.iterator();i.hasNext();){\n\t\t\tString s=i.next();\n \tint n2=Integer.parseInt(s);\n if(n2<min) min=n2;\n if(n2>max) max=n2;\n sum+=n2;\n\t\t}",
"Iterator<String> i=a.iterator();",
"Iterator<String> i=a.iterator();",
"i",
"a.iterator()",
"a.iterator",
"a",
"i.hasNext()",
"i.hasNext",
"i",
"{\n\t\t\tString s=i.next();\n \tint n2=Integer.parseInt(s);\n if(n2<min) min=n2;\n if(n2>max) max=n2;\n sum+=n2;\n\t\t}",
"{\n\t\t\tString s=i.next();\n \tint n2=Integer.parseInt(s);\n if(n2<min) min=n2;\n if(n2>max) max=n2;\n sum+=n2;\n\t\t}",
"String s=i.next();",
"s",
"i.next()",
"i.next",
"i",
"int n2=Integer.parseInt(s);",
"n2",
"Integer.parseInt(s)",
"Integer.parseInt",
"Integer",
"s",
"if(n2<min) min=n2;",
"n2<min",
"n2",
"min",
"min=n2",
"min",
"n2",
"if(n2>max) max=n2;",
"n2>max",
"n2",
"max",
"max=n2",
"max",
"n2",
"sum+=n2",
"sum",
"n2",
"System.out.println(min+\" \"+max+\" \"+(sum-n1))",
"System.out.println",
"System.out",
"System",
"System.out",
"min+\" \"+max+\" \"+(sum-n1)",
"\" \"",
"max",
"min+\" \"+max+\" \"+(sum-n1)",
"min",
"\" \"",
"max",
"\" \"",
"(sum-n1)",
"sum",
"n1",
"String[] args",
"args"
] | import java.io.*;
import java.util.*;
class Main {
public static void main(String[] args) throws Exception {
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
br.readLine();
List<String> a=Arrays.asList(br.readLine().split(" "));
int n1=Integer.parseInt(a.get(0));
int min=n1,max=n1;
long sum=n1;
for(Iterator<String> i=a.iterator();i.hasNext();){
String s=i.next();
int n2=Integer.parseInt(s);
if(n2<min) min=n2;
if(n2>max) max=n2;
sum+=n2;
}
System.out.println(min+" "+max+" "+(sum-n1));
}
} |
[
7,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
4,
18,
18,
18,
13,
13,
13,
13,
41,
13,
18,
13,
17,
41,
13,
18,
13,
2,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
18,
13,
13,
4,
18,
18,
13,
13,
17,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
105,
2
],
[
105,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
5,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
11,
14
],
[
14,
15
],
[
15,
16
],
[
5,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
19,
24
],
[
5,
25
],
[
25,
26
],
[
25,
27
],
[
5,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
49,
50
],
[
49,
51
],
[
5,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
52,
59
],
[
5,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
5,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
69,
71
],
[
5,
72
],
[
72,
73
],
[
72,
74
],
[
5,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
75,
83
],
[
83,
84
],
[
84,
85
],
[
75,
86
],
[
87,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
90,
92
],
[
5,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
93,
99
],
[
93,
100
],
[
93,
101
],
[
3,
102
],
[
102,
103
],
[
0,
104
],
[
104,
105
],
[
104,
106
]
] | [
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\n\t\tint n = Integer.parseInt( sc.nextLine() );\n\n\t\tString[] stra = sc.nextLine().split(\" \");\n\t\tlong[] a = new long[n];\n\t\tfor ( int i = 0; i < n; i++) {\n\t\t\ta[i] = Long.parseLong(stra[i]);\n\t\t}\n\n\t\tjava.util.Arrays.sort(a);\n\t\tlong min = a[0];\n\t\tlong max = a[n-1];\n\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsum += a[i];\n\t\t}\n\n\t\tSystem.out.printf(\"%d %d %d\\n\", min, max, sum);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\n\t\tint n = Integer.parseInt( sc.nextLine() );\n\n\t\tString[] stra = sc.nextLine().split(\" \");\n\t\tlong[] a = new long[n];\n\t\tfor ( int i = 0; i < n; i++) {\n\t\t\ta[i] = Long.parseLong(stra[i]);\n\t\t}\n\n\t\tjava.util.Arrays.sort(a);\n\t\tlong min = a[0];\n\t\tlong max = a[n-1];\n\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsum += a[i];\n\t\t}\n\n\t\tSystem.out.printf(\"%d %d %d\\n\", min, max, sum);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\n\t\tint n = Integer.parseInt( sc.nextLine() );\n\n\t\tString[] stra = sc.nextLine().split(\" \");\n\t\tlong[] a = new long[n];\n\t\tfor ( int i = 0; i < n; i++) {\n\t\t\ta[i] = Long.parseLong(stra[i]);\n\t\t}\n\n\t\tjava.util.Arrays.sort(a);\n\t\tlong min = a[0];\n\t\tlong max = a[n-1];\n\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsum += a[i];\n\t\t}\n\n\t\tSystem.out.printf(\"%d %d %d\\n\", min, max, sum);\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\n\t\tint n = Integer.parseInt( sc.nextLine() );\n\n\t\tString[] stra = sc.nextLine().split(\" \");\n\t\tlong[] a = new long[n];\n\t\tfor ( int i = 0; i < n; i++) {\n\t\t\ta[i] = Long.parseLong(stra[i]);\n\t\t}\n\n\t\tjava.util.Arrays.sort(a);\n\t\tlong min = a[0];\n\t\tlong max = a[n-1];\n\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsum += a[i];\n\t\t}\n\n\t\tSystem.out.printf(\"%d %d %d\\n\", min, max, sum);\n\t}",
"java.util.Scanner sc = new java.util.Scanner(System.in);",
"sc",
"new java.util.Scanner(System.in)",
"int n = Integer.parseInt( sc.nextLine() );",
"n",
"Integer.parseInt( sc.nextLine() )",
"Integer.parseInt",
"Integer",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String[] stra = sc.nextLine().split(\" \");",
"stra",
"sc.nextLine().split(\" \")",
"sc.nextLine().split",
"sc.nextLine()",
"sc.nextLine",
"sc",
"\" \"",
"long[] a = new long[n];",
"a",
"new long[n]",
"n",
"for ( int i = 0; i < n; i++) {\n\t\t\ta[i] = Long.parseLong(stra[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\ta[i] = Long.parseLong(stra[i]);\n\t\t}",
"{\n\t\t\ta[i] = Long.parseLong(stra[i]);\n\t\t}",
"a[i] = Long.parseLong(stra[i])",
"a[i]",
"a",
"i",
"Long.parseLong(stra[i])",
"Long.parseLong",
"Long",
"stra[i]",
"stra",
"i",
"java.util.Arrays.sort(a)",
"java.util.Arrays.sort",
"java.util.Arrays",
"java.util",
"java",
"java.util",
"java.util.Arrays",
"a",
"long min = a[0];",
"min",
"a[0]",
"a",
"0",
"long max = a[n-1];",
"max",
"a[n-1]",
"a",
"n-1",
"n",
"1",
"long sum = 0;",
"sum",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\tsum += a[i];\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tsum += a[i];\n\t\t}",
"{\n\t\t\tsum += a[i];\n\t\t}",
"sum += a[i]",
"sum",
"a[i]",
"a",
"i",
"System.out.printf(\"%d %d %d\\n\", min, max, sum)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d %d %d\\n\"",
"min",
"max",
"sum",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\n\t\tint n = Integer.parseInt( sc.nextLine() );\n\n\t\tString[] stra = sc.nextLine().split(\" \");\n\t\tlong[] a = new long[n];\n\t\tfor ( int i = 0; i < n; i++) {\n\t\t\ta[i] = Long.parseLong(stra[i]);\n\t\t}\n\n\t\tjava.util.Arrays.sort(a);\n\t\tlong min = a[0];\n\t\tlong max = a[n-1];\n\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsum += a[i];\n\t\t}\n\n\t\tSystem.out.printf(\"%d %d %d\\n\", min, max, sum);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\n\t\tint n = Integer.parseInt( sc.nextLine() );\n\n\t\tString[] stra = sc.nextLine().split(\" \");\n\t\tlong[] a = new long[n];\n\t\tfor ( int i = 0; i < n; i++) {\n\t\t\ta[i] = Long.parseLong(stra[i]);\n\t\t}\n\n\t\tjava.util.Arrays.sort(a);\n\t\tlong min = a[0];\n\t\tlong max = a[n-1];\n\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsum += a[i];\n\t\t}\n\n\t\tSystem.out.printf(\"%d %d %d\\n\", min, max, sum);\n\t}\n\n}",
"Main"
] | public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
java.util.Scanner sc = new java.util.Scanner(System.in);
int n = Integer.parseInt( sc.nextLine() );
String[] stra = sc.nextLine().split(" ");
long[] a = new long[n];
for ( int i = 0; i < n; i++) {
a[i] = Long.parseLong(stra[i]);
}
java.util.Arrays.sort(a);
long min = a[0];
long max = a[n-1];
long sum = 0;
for (int i = 0; i < n; i++) {
sum += a[i];
}
System.out.printf("%d %d %d\n", min, max, sum);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
42,
2,
13,
13,
30,
0,
18,
13,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
13,
18,
13,
17,
0,
13,
18,
13,
17,
30,
14,
2,
13,
18,
13,
13,
30,
0,
13,
18,
13,
13,
14,
2,
13,
18,
13,
13,
30,
0,
13,
18,
13,
13,
0,
13,
18,
13,
13,
40,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
112,
8
],
[
112,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
24
],
[
24,
25
],
[
24,
26
],
[
11,
27
],
[
27,
28
],
[
27,
29
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
11,
33
],
[
33,
34
],
[
33,
35
],
[
11,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
40,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
52,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
60,
62
],
[
48,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
64,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
64,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
76,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
85,
87
],
[
40,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
90,
92
],
[
40,
93
],
[
93,
94
],
[
11,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
103,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
101,
107
],
[
103,
108
],
[
9,
109
],
[
109,
110
],
[
0,
111
],
[
111,
112
],
[
111,
113
]
] | [
"import java.io.IOException;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tlong [] ax = new long [n];\n\t\t\n\t\tlong max =0;\n\t\tlong min =0;\n\t\tlong sum =0;\n\t\t\n\t\tint i = 0;\n\t\twhile(i<n){\n\t\t\tax[i] = sc.nextLong();\n\t\t\tif(i==0){\n\t\t\t\tmax = ax[0];\n\t\t\t\tmin = ax[0];\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(max < ax[i]){\n\t\t\t\t\tmax = ax[i];\n\t\t\t\t}\n\t\t\t\telse if(min > ax[i]){\n\t\t\t\t\tmin = ax[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\tsum += ax[i];\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tlong [] ax = new long [n];\n\t\t\n\t\tlong max =0;\n\t\tlong min =0;\n\t\tlong sum =0;\n\t\t\n\t\tint i = 0;\n\t\twhile(i<n){\n\t\t\tax[i] = sc.nextLong();\n\t\t\tif(i==0){\n\t\t\t\tmax = ax[0];\n\t\t\t\tmin = ax[0];\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(max < ax[i]){\n\t\t\t\t\tmax = ax[i];\n\t\t\t\t}\n\t\t\t\telse if(min > ax[i]){\n\t\t\t\t\tmin = ax[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\tsum += ax[i];\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tlong [] ax = new long [n];\n\t\t\n\t\tlong max =0;\n\t\tlong min =0;\n\t\tlong sum =0;\n\t\t\n\t\tint i = 0;\n\t\twhile(i<n){\n\t\t\tax[i] = sc.nextLong();\n\t\t\tif(i==0){\n\t\t\t\tmax = ax[0];\n\t\t\t\tmin = ax[0];\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(max < ax[i]){\n\t\t\t\t\tmax = ax[i];\n\t\t\t\t}\n\t\t\t\telse if(min > ax[i]){\n\t\t\t\t\tmin = ax[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\tsum += ax[i];\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tlong [] ax = new long [n];\n\t\t\n\t\tlong max =0;\n\t\tlong min =0;\n\t\tlong sum =0;\n\t\t\n\t\tint i = 0;\n\t\twhile(i<n){\n\t\t\tax[i] = sc.nextLong();\n\t\t\tif(i==0){\n\t\t\t\tmax = ax[0];\n\t\t\t\tmin = ax[0];\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(max < ax[i]){\n\t\t\t\t\tmax = ax[i];\n\t\t\t\t}\n\t\t\t\telse if(min > ax[i]){\n\t\t\t\t\tmin = ax[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\tsum += ax[i];\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long [] ax = new long [n];",
"ax",
"new long [n]",
"n",
"long max =0;",
"max",
"0",
"long min =0;",
"min",
"0",
"long sum =0;",
"sum",
"0",
"int i = 0;",
"i",
"0",
"while(i<n){\n\t\t\tax[i] = sc.nextLong();\n\t\t\tif(i==0){\n\t\t\t\tmax = ax[0];\n\t\t\t\tmin = ax[0];\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(max < ax[i]){\n\t\t\t\t\tmax = ax[i];\n\t\t\t\t}\n\t\t\t\telse if(min > ax[i]){\n\t\t\t\t\tmin = ax[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\tsum += ax[i];\n\t\t\ti++;\n\t\t}",
"i<n",
"i",
"n",
"{\n\t\t\tax[i] = sc.nextLong();\n\t\t\tif(i==0){\n\t\t\t\tmax = ax[0];\n\t\t\t\tmin = ax[0];\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(max < ax[i]){\n\t\t\t\t\tmax = ax[i];\n\t\t\t\t}\n\t\t\t\telse if(min > ax[i]){\n\t\t\t\t\tmin = ax[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\tsum += ax[i];\n\t\t\ti++;\n\t\t}",
"ax[i] = sc.nextLong()",
"ax[i]",
"ax",
"i",
"sc.nextLong()",
"sc.nextLong",
"sc",
"if(i==0){\n\t\t\t\tmax = ax[0];\n\t\t\t\tmin = ax[0];\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(max < ax[i]){\n\t\t\t\t\tmax = ax[i];\n\t\t\t\t}\n\t\t\t\telse if(min > ax[i]){\n\t\t\t\t\tmin = ax[i];\n\t\t\t\t}\n\t\t\t}",
"i==0",
"i",
"0",
"{\n\t\t\t\tmax = ax[0];\n\t\t\t\tmin = ax[0];\n\t\t\t}",
"max = ax[0]",
"max",
"ax[0]",
"ax",
"0",
"min = ax[0]",
"min",
"ax[0]",
"ax",
"0",
"{\n\t\t\t\tif(max < ax[i]){\n\t\t\t\t\tmax = ax[i];\n\t\t\t\t}\n\t\t\t\telse if(min > ax[i]){\n\t\t\t\t\tmin = ax[i];\n\t\t\t\t}\n\t\t\t}",
"if(max < ax[i]){\n\t\t\t\t\tmax = ax[i];\n\t\t\t\t}\n\t\t\t\telse if(min > ax[i]){\n\t\t\t\t\tmin = ax[i];\n\t\t\t\t}",
"max < ax[i]",
"max",
"ax[i]",
"ax",
"i",
"{\n\t\t\t\t\tmax = ax[i];\n\t\t\t\t}",
"max = ax[i]",
"max",
"ax[i]",
"ax",
"i",
"if(min > ax[i]){\n\t\t\t\t\tmin = ax[i];\n\t\t\t\t}",
"min > ax[i]",
"min",
"ax[i]",
"ax",
"i",
"{\n\t\t\t\t\tmin = ax[i];\n\t\t\t\t}",
"min = ax[i]",
"min",
"ax[i]",
"ax",
"i",
"sum += ax[i]",
"sum",
"ax[i]",
"ax",
"i",
"i++",
"i",
"System.out.println(min+\" \"+max+\" \"+sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min+\" \"+max+\" \"+sum",
"\" \"",
"max",
"min+\" \"+max+\" \"+sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tlong [] ax = new long [n];\n\t\t\n\t\tlong max =0;\n\t\tlong min =0;\n\t\tlong sum =0;\n\t\t\n\t\tint i = 0;\n\t\twhile(i<n){\n\t\t\tax[i] = sc.nextLong();\n\t\t\tif(i==0){\n\t\t\t\tmax = ax[0];\n\t\t\t\tmin = ax[0];\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(max < ax[i]){\n\t\t\t\t\tmax = ax[i];\n\t\t\t\t}\n\t\t\t\telse if(min > ax[i]){\n\t\t\t\t\tmin = ax[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\tsum += ax[i];\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tlong [] ax = new long [n];\n\t\t\n\t\tlong max =0;\n\t\tlong min =0;\n\t\tlong sum =0;\n\t\t\n\t\tint i = 0;\n\t\twhile(i<n){\n\t\t\tax[i] = sc.nextLong();\n\t\t\tif(i==0){\n\t\t\t\tmax = ax[0];\n\t\t\t\tmin = ax[0];\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(max < ax[i]){\n\t\t\t\t\tmax = ax[i];\n\t\t\t\t}\n\t\t\t\telse if(min > ax[i]){\n\t\t\t\t\tmin = ax[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\tsum += ax[i];\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}\n}",
"Main"
] | import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException{
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
long [] ax = new long [n];
long max =0;
long min =0;
long sum =0;
int i = 0;
while(i<n){
ax[i] = sc.nextLong();
if(i==0){
max = ax[0];
min = ax[0];
}
else{
if(max < ax[i]){
max = ax[i];
}
else if(min > ax[i]){
min = ax[i];
}
}
sum += ax[i];
i++;
}
System.out.println(min+" "+max+" "+sum);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
2,
13,
18,
13,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
18,
13,
17,
17,
18,
13,
2,
13,
17,
17,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
11,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
39,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
11,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
11,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
66,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
65,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
64,
76
],
[
66,
77
],
[
9,
78
],
[
78,
79
]
] | [
"import java.util.Arrays;\nimport java.util.Scanner;\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n long sum = 0;\n \n int nl[] = new int[n];\n for (int i=0; i<n; i++) {\n nl[i] = sc.nextInt();\n sum = sum +nl[i];\n }\n \n Arrays.sort(nl);\n \n System.out.println(nl[0]+\" \"+nl[n-1]+\" \"+sum);\n }\n \n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n long sum = 0;\n \n int nl[] = new int[n];\n for (int i=0; i<n; i++) {\n nl[i] = sc.nextInt();\n sum = sum +nl[i];\n }\n \n Arrays.sort(nl);\n \n System.out.println(nl[0]+\" \"+nl[n-1]+\" \"+sum);\n }\n \n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n long sum = 0;\n \n int nl[] = new int[n];\n for (int i=0; i<n; i++) {\n nl[i] = sc.nextInt();\n sum = sum +nl[i];\n }\n \n Arrays.sort(nl);\n \n System.out.println(nl[0]+\" \"+nl[n-1]+\" \"+sum);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n long sum = 0;\n \n int nl[] = new int[n];\n for (int i=0; i<n; i++) {\n nl[i] = sc.nextInt();\n sum = sum +nl[i];\n }\n \n Arrays.sort(nl);\n \n System.out.println(nl[0]+\" \"+nl[n-1]+\" \"+sum);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long sum = 0;",
"sum",
"0",
"int nl[] = new int[n];",
"nl",
"new int[n]",
"n",
"for (int i=0; i<n; i++) {\n nl[i] = sc.nextInt();\n sum = sum +nl[i];\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n nl[i] = sc.nextInt();\n sum = sum +nl[i];\n }",
"{\n nl[i] = sc.nextInt();\n sum = sum +nl[i];\n }",
"nl[i] = sc.nextInt()",
"nl[i]",
"nl",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sum = sum +nl[i]",
"sum",
"sum +nl[i]",
"sum",
"nl[i]",
"nl",
"i",
"Arrays.sort(nl)",
"Arrays.sort",
"Arrays",
"nl",
"System.out.println(nl[0]+\" \"+nl[n-1]+\" \"+sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"nl[0]+\" \"+nl[n-1]+\" \"+sum",
"\" \"",
"nl[n-1]",
"nl[0]+\" \"+nl[n-1]+\" \"+sum",
"nl[0]",
"nl",
"0",
"\" \"",
"nl[n-1]",
"nl",
"n-1",
"n",
"1",
"\" \"",
"sum",
"String[] args",
"args"
] | import java.util.Arrays;
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
long sum = 0;
int nl[] = new int[n];
for (int i=0; i<n; i++) {
nl[i] = sc.nextInt();
sum = sum +nl[i];
}
Arrays.sort(nl);
System.out.println(nl[0]+" "+nl[n-1]+" "+sum);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
14,
2,
13,
17,
30,
0,
13,
4,
18,
13,
4,
18,
13,
17,
4,
18,
13,
17,
30,
0,
13,
4,
18,
13,
4,
18,
13,
17,
41,
13,
13,
41,
13,
13,
41,
13,
13,
14,
2,
13,
17,
30,
41,
13,
4,
18,
13,
4,
18,
4,
18,
13,
2,
4,
18,
13,
17,
17,
17,
28,
13,
13,
30,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
13,
0,
13,
13,
14,
2,
13,
13,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
11,
28
],
[
28,
29
],
[
11,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
30,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
11,
58
],
[
58,
59
],
[
58,
60
],
[
11,
61
],
[
61,
62
],
[
61,
63
],
[
11,
64
],
[
64,
65
],
[
64,
66
],
[
11,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
82,
87
],
[
77,
88
],
[
71,
89
],
[
89,
90
],
[
89,
91
],
[
89,
92
],
[
93,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
93,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
104,
105
],
[
104,
106
],
[
93,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
111,
112
],
[
111,
113
],
[
93,
114
],
[
114,
115
],
[
114,
116
],
[
11,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
125,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
124,
128
],
[
123,
129
],
[
125,
130
],
[
9,
131
],
[
131,
132
]
] | [
"import java.io.*;\nimport java.util.*;\n\nclass Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tint N=Integer.parseInt(br.readLine());\n\t\tString s=br.readLine();\n\t\tint num;\n\t\tif(N>1){\n\t num=Integer.parseInt(s.substring(0, s.indexOf(\" \")));\n\t\t}else{\n\t\t\tnum=Integer.parseInt(s.substring(0));\n\t\t}\n int min=num,max=num;\n long sum=num;\n\t\tif(N>1){\n\t List<String> a=Arrays.asList(s.substring(s.indexOf(\" \")+1).split(\" \"));\n\t for(String n:a){\n\t \tnum=Integer.parseInt(n);\n\t if(num<min) min=num;\n\t if(num>max) max=num;\n\t sum+=num;\n\t }\n\t\t}\n System.out.println(min+\" \"+max+\" \"+sum);\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tint N=Integer.parseInt(br.readLine());\n\t\tString s=br.readLine();\n\t\tint num;\n\t\tif(N>1){\n\t num=Integer.parseInt(s.substring(0, s.indexOf(\" \")));\n\t\t}else{\n\t\t\tnum=Integer.parseInt(s.substring(0));\n\t\t}\n int min=num,max=num;\n long sum=num;\n\t\tif(N>1){\n\t List<String> a=Arrays.asList(s.substring(s.indexOf(\" \")+1).split(\" \"));\n\t for(String n:a){\n\t \tnum=Integer.parseInt(n);\n\t if(num<min) min=num;\n\t if(num>max) max=num;\n\t sum+=num;\n\t }\n\t\t}\n System.out.println(min+\" \"+max+\" \"+sum);\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tint N=Integer.parseInt(br.readLine());\n\t\tString s=br.readLine();\n\t\tint num;\n\t\tif(N>1){\n\t num=Integer.parseInt(s.substring(0, s.indexOf(\" \")));\n\t\t}else{\n\t\t\tnum=Integer.parseInt(s.substring(0));\n\t\t}\n int min=num,max=num;\n long sum=num;\n\t\tif(N>1){\n\t List<String> a=Arrays.asList(s.substring(s.indexOf(\" \")+1).split(\" \"));\n\t for(String n:a){\n\t \tnum=Integer.parseInt(n);\n\t if(num<min) min=num;\n\t if(num>max) max=num;\n\t sum+=num;\n\t }\n\t\t}\n System.out.println(min+\" \"+max+\" \"+sum);\n\t}",
"main",
"{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tint N=Integer.parseInt(br.readLine());\n\t\tString s=br.readLine();\n\t\tint num;\n\t\tif(N>1){\n\t num=Integer.parseInt(s.substring(0, s.indexOf(\" \")));\n\t\t}else{\n\t\t\tnum=Integer.parseInt(s.substring(0));\n\t\t}\n int min=num,max=num;\n long sum=num;\n\t\tif(N>1){\n\t List<String> a=Arrays.asList(s.substring(s.indexOf(\" \")+1).split(\" \"));\n\t for(String n:a){\n\t \tnum=Integer.parseInt(n);\n\t if(num<min) min=num;\n\t if(num>max) max=num;\n\t sum+=num;\n\t }\n\t\t}\n System.out.println(min+\" \"+max+\" \"+sum);\n\t}",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int N=Integer.parseInt(br.readLine());",
"N",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String s=br.readLine();",
"s",
"br.readLine()",
"br.readLine",
"br",
"int num;",
"num",
"if(N>1){\n\t num=Integer.parseInt(s.substring(0, s.indexOf(\" \")));\n\t\t}else{\n\t\t\tnum=Integer.parseInt(s.substring(0));\n\t\t}",
"N>1",
"N",
"1",
"{\n\t num=Integer.parseInt(s.substring(0, s.indexOf(\" \")));\n\t\t}",
"num=Integer.parseInt(s.substring(0, s.indexOf(\" \")))",
"num",
"Integer.parseInt(s.substring(0, s.indexOf(\" \")))",
"Integer.parseInt",
"Integer",
"s.substring(0, s.indexOf(\" \"))",
"s.substring",
"s",
"0",
"s.indexOf(\" \")",
"s.indexOf",
"s",
"\" \"",
"{\n\t\t\tnum=Integer.parseInt(s.substring(0));\n\t\t}",
"num=Integer.parseInt(s.substring(0))",
"num",
"Integer.parseInt(s.substring(0))",
"Integer.parseInt",
"Integer",
"s.substring(0)",
"s.substring",
"s",
"0",
"int min=num",
"min",
"num",
"max=num;",
"max",
"num",
"long sum=num;",
"sum",
"num",
"if(N>1){\n\t List<String> a=Arrays.asList(s.substring(s.indexOf(\" \")+1).split(\" \"));\n\t for(String n:a){\n\t \tnum=Integer.parseInt(n);\n\t if(num<min) min=num;\n\t if(num>max) max=num;\n\t sum+=num;\n\t }\n\t\t}",
"N>1",
"N",
"1",
"{\n\t List<String> a=Arrays.asList(s.substring(s.indexOf(\" \")+1).split(\" \"));\n\t for(String n:a){\n\t \tnum=Integer.parseInt(n);\n\t if(num<min) min=num;\n\t if(num>max) max=num;\n\t sum+=num;\n\t }\n\t\t}",
"List<String> a=Arrays.asList(s.substring(s.indexOf(\" \")+1).split(\" \"));",
"a",
"Arrays.asList(s.substring(s.indexOf(\" \")+1).split(\" \"))",
"Arrays.asList",
"Arrays",
"s.substring(s.indexOf(\" \")+1).split(\" \")",
"s.substring(s.indexOf(\" \")+1).split",
"s.substring(s.indexOf(\" \")+1)",
"s.substring",
"s",
"s.indexOf(\" \")+1",
"s.indexOf(\" \")",
"s.indexOf",
"s",
"\" \"",
"1",
"\" \"",
"for(String n:a){\n\t \tnum=Integer.parseInt(n);\n\t if(num<min) min=num;\n\t if(num>max) max=num;\n\t sum+=num;\n\t }",
"String n",
"a",
"{\n\t \tnum=Integer.parseInt(n);\n\t if(num<min) min=num;\n\t if(num>max) max=num;\n\t sum+=num;\n\t }",
"{\n\t \tnum=Integer.parseInt(n);\n\t if(num<min) min=num;\n\t if(num>max) max=num;\n\t sum+=num;\n\t }",
"num=Integer.parseInt(n)",
"num",
"Integer.parseInt(n)",
"Integer.parseInt",
"Integer",
"n",
"if(num<min) min=num;",
"num<min",
"num",
"min",
"min=num",
"min",
"num",
"if(num>max) max=num;",
"num>max",
"num",
"max",
"max=num",
"max",
"num",
"sum+=num",
"sum",
"num",
"System.out.println(min+\" \"+max+\" \"+sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min+\" \"+max+\" \"+sum",
"\" \"",
"max",
"min+\" \"+max+\" \"+sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args"
] | import java.io.*;
import java.util.*;
class Main {
public static void main(String[] args) throws Exception {
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int N=Integer.parseInt(br.readLine());
String s=br.readLine();
int num;
if(N>1){
num=Integer.parseInt(s.substring(0, s.indexOf(" ")));
}else{
num=Integer.parseInt(s.substring(0));
}
int min=num,max=num;
long sum=num;
if(N>1){
List<String> a=Arrays.asList(s.substring(s.indexOf(" ")+1).split(" "));
for(String n:a){
num=Integer.parseInt(n);
if(num<min) min=num;
if(num>max) max=num;
sum+=num;
}
}
System.out.println(min+" "+max+" "+sum);
}
} |
[
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,
12,
13,
30,
0,
13,
20,
0,
13,
20,
41,
13,
20,
4,
18,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
17,
41,
13,
40,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
18,
13,
13,
0,
13,
4,
18,
13,
13,
18,
13,
13,
0,
13,
4,
18,
13,
13,
18,
13,
13,
4,
18,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
4,
18,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
241,
20
],
[
241,
21
],
[
21,
22
],
[
241,
23
],
[
23,
24
],
[
241,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
31,
33
],
[
27,
34
],
[
34,
35
],
[
34,
36
],
[
27,
37
],
[
37,
38
],
[
38,
39
],
[
27,
40
],
[
40,
41
],
[
41,
42
],
[
25,
43
],
[
43,
44
],
[
241,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
49,
55
],
[
55,
56
],
[
55,
57
],
[
49,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
59,
70
],
[
71,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
77,
78
],
[
49,
79
],
[
79,
80
],
[
79,
81
],
[
49,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
49,
86
],
[
86,
87
],
[
86,
88
],
[
49,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
89,
97
],
[
97,
98
],
[
98,
99
],
[
89,
100
],
[
101,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
104,
106
],
[
101,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
109,
113
],
[
113,
114
],
[
113,
115
],
[
101,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
118,
122
],
[
122,
123
],
[
122,
124
],
[
49,
125
],
[
125,
126
],
[
126,
127
],
[
125,
128
],
[
131,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
129,
135
],
[
131,
136
],
[
241,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
137,
141
],
[
141,
142
],
[
137,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
143,
149
],
[
149,
150
],
[
137,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
154,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
153,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
168,
171
],
[
171,
172
],
[
172,
173
],
[
137,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
178,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
177,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
176,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
191,
194
],
[
194,
195
],
[
195,
196
],
[
137,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
201,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
200,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
199,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
137,
217
],
[
217,
218
],
[
217,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
221,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
220,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
219,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
234,
237
],
[
237,
238
],
[
238,
239
],
[
0,
240
],
[
240,
241
],
[
240,
242
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\n\npublic class Main {\n static InputReader in;\n static PrintWriter out;\n\n static class Solution {\n void solve() throws IOException {\n int n = in.nextInt();\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n \t a[i] = in.nextInt();\n }\n long sum = 0;\n int max = -1000000;\n int min = 1000000;\n \n for (int i = 0; i < n; i++) {\n \t sum += a[i];\n \t max = Math.max(max, a[i]);\n \t min = Math.min(min, a[i]);\n }\n out.println(min+\" \"+max+\" \"+sum);\n \n }\n}\n \n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n }\n\n}",
"import java.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.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n static InputReader in;\n static PrintWriter out;\n\n static class Solution {\n void solve() throws IOException {\n int n = in.nextInt();\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n \t a[i] = in.nextInt();\n }\n long sum = 0;\n int max = -1000000;\n int min = 1000000;\n \n for (int i = 0; i < n; i++) {\n \t sum += a[i];\n \t max = Math.max(max, a[i]);\n \t min = Math.min(min, a[i]);\n }\n out.println(min+\" \"+max+\" \"+sum);\n \n }\n}\n \n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n }\n\n}",
"Main",
"static InputReader in;",
"in",
"static PrintWriter out;",
"out",
"public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}",
"main",
"{\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}",
"in = new InputReader(System.in)",
"in",
"new InputReader(System.in)",
"out = new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"Solution solver = new Solution();",
"solver",
"new Solution()",
"solver.solve()",
"solver.solve",
"solver",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class Solution {\n void solve() throws IOException {\n int n = in.nextInt();\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n \t a[i] = in.nextInt();\n }\n long sum = 0;\n int max = -1000000;\n int min = 1000000;\n \n for (int i = 0; i < n; i++) {\n \t sum += a[i];\n \t max = Math.max(max, a[i]);\n \t min = Math.min(min, a[i]);\n }\n out.println(min+\" \"+max+\" \"+sum);\n \n }\n}",
"Solution",
"void solve() throws IOException {\n int n = in.nextInt();\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n \t a[i] = in.nextInt();\n }\n long sum = 0;\n int max = -1000000;\n int min = 1000000;\n \n for (int i = 0; i < n; i++) {\n \t sum += a[i];\n \t max = Math.max(max, a[i]);\n \t min = Math.min(min, a[i]);\n }\n out.println(min+\" \"+max+\" \"+sum);\n \n }",
"solve",
"{\n int n = in.nextInt();\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n \t a[i] = in.nextInt();\n }\n long sum = 0;\n int max = -1000000;\n int min = 1000000;\n \n for (int i = 0; i < n; i++) {\n \t sum += a[i];\n \t max = Math.max(max, a[i]);\n \t min = Math.min(min, a[i]);\n }\n out.println(min+\" \"+max+\" \"+sum);\n \n }",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n \t a[i] = in.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \t a[i] = in.nextInt();\n }",
"{\n \t a[i] = in.nextInt();\n }",
"a[i] = in.nextInt()",
"a[i]",
"a",
"i",
"in.nextInt()",
"in.nextInt",
"in",
"long sum = 0;",
"sum",
"0",
"int max = -1000000;",
"max",
"-1000000",
"1000000",
"int min = 1000000;",
"min",
"1000000",
"for (int i = 0; i < n; i++) {\n \t sum += a[i];\n \t max = Math.max(max, a[i]);\n \t min = Math.min(min, a[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \t sum += a[i];\n \t max = Math.max(max, a[i]);\n \t min = Math.min(min, a[i]);\n }",
"{\n \t sum += a[i];\n \t max = Math.max(max, a[i]);\n \t min = Math.min(min, a[i]);\n }",
"sum += a[i]",
"sum",
"a[i]",
"a",
"i",
"max = Math.max(max, a[i])",
"max",
"Math.max(max, a[i])",
"Math.max",
"Math",
"max",
"a[i]",
"a",
"i",
"min = Math.min(min, a[i])",
"min",
"Math.min(min, a[i])",
"Math.min",
"Math",
"min",
"a[i]",
"a",
"i",
"out.println(min+\" \"+max+\" \"+sum)",
"out.println",
"out",
"min+\" \"+max+\" \"+sum",
"\" \"",
"max",
"min+\" \"+max+\" \"+sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n }",
"InputReader",
"public BufferedReader br;",
"br",
"public StringTokenizer st;",
"st",
"public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }",
"InputReader",
"{\n br = new BufferedReader(new InputStreamReader(stream));\n }",
"br = new BufferedReader(new InputStreamReader(stream))",
"br",
"new BufferedReader(new InputStreamReader(stream))",
"InputStream stream",
"stream",
"public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }",
"nextInt",
"{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }",
"while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return Integer.parseInt(st.nextToken());",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }",
"nextLong",
"{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }",
"while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return Long.parseLong(st.nextToken());",
"Long.parseLong(st.nextToken())",
"Long.parseLong",
"Long",
"st.nextToken()",
"st.nextToken",
"st",
"public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }",
"nextDouble",
"{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }",
"while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return Double.parseDouble(st.nextToken());",
"Double.parseDouble(st.nextToken())",
"Double.parseDouble",
"Double",
"st.nextToken()",
"st.nextToken",
"st",
"public class Main {\n static InputReader in;\n static PrintWriter out;\n\n static class Solution {\n void solve() throws IOException {\n int n = in.nextInt();\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n \t a[i] = in.nextInt();\n }\n long sum = 0;\n int max = -1000000;\n int min = 1000000;\n \n for (int i = 0; i < n; i++) {\n \t sum += a[i];\n \t max = Math.max(max, a[i]);\n \t min = Math.min(min, a[i]);\n }\n out.println(min+\" \"+max+\" \"+sum);\n \n }\n}\n \n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n }\n\n}",
"public class Main {\n static InputReader in;\n static PrintWriter out;\n\n static class Solution {\n void solve() throws IOException {\n int n = in.nextInt();\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n \t a[i] = in.nextInt();\n }\n long sum = 0;\n int max = -1000000;\n int min = 1000000;\n \n for (int i = 0; i < n; i++) {\n \t sum += a[i];\n \t max = Math.max(max, a[i]);\n \t min = Math.min(min, a[i]);\n }\n out.println(min+\" \"+max+\" \"+sum);\n \n }\n}\n \n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n }\n\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;
public class Main {
static InputReader in;
static PrintWriter out;
static class Solution {
void solve() throws IOException {
int n = in.nextInt();
int[] a = new int[n];
for (int i = 0; i < n; i++) {
a[i] = in.nextInt();
}
long sum = 0;
int max = -1000000;
int min = 1000000;
for (int i = 0; i < n; i++) {
sum += a[i];
max = Math.max(max, a[i]);
min = Math.min(min, a[i]);
}
out.println(min+" "+max+" "+sum);
}
}
public static void main(String[] args) throws IOException {
in = new InputReader(System.in);
out = new PrintWriter(System.out);
Solution solver = new Solution();
solver.solve();
out.close();
}
static class InputReader {
public BufferedReader br;
public StringTokenizer st;
public InputReader(InputStream stream) {
br = new BufferedReader(new InputStreamReader(stream));
}
public int nextInt() throws IOException {
while (st == null || !st.hasMoreTokens()) {
st = new StringTokenizer(br.readLine());
}
return Integer.parseInt(st.nextToken());
}
public long nextLong() throws IOException {
while (st == null || !st.hasMoreTokens()) {
st = new StringTokenizer(br.readLine());
}
return Long.parseLong(st.nextToken());
}
public String next() throws IOException {
while (st == null || !st.hasMoreTokens()) {
st = new StringTokenizer(br.readLine());
}
return st.nextToken();
}
public double nextDouble() throws IOException {
while (st == null || !st.hasMoreTokens()) {
st = new StringTokenizer(br.readLine());
}
return Double.parseDouble(st.nextToken());
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
40,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
81,
5
],
[
81,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
39,
45
],
[
45,
46
],
[
45,
47
],
[
39,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
39,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
8,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
72,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
70,
76
],
[
72,
77
],
[
6,
78
],
[
78,
79
],
[
0,
80
],
[
80,
81
],
[
80,
82
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n\n int numOfInput = stdIn.nextInt();\n \n long sum = 0L;\n int max = -1000000;\n int min = 1000000;\n for(int i = 0; i < numOfInput; i++) {\n int n = stdIn.nextInt();\n sum += n;\n if(n > max) {\n max = n;\n }\n if(n < min) {\n min = n;\n }\n }\n System.out.println(min + \" \" + max + \" \" + sum);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n\n int numOfInput = stdIn.nextInt();\n \n long sum = 0L;\n int max = -1000000;\n int min = 1000000;\n for(int i = 0; i < numOfInput; i++) {\n int n = stdIn.nextInt();\n sum += n;\n if(n > max) {\n max = n;\n }\n if(n < min) {\n min = n;\n }\n }\n System.out.println(min + \" \" + max + \" \" + sum);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n\n int numOfInput = stdIn.nextInt();\n \n long sum = 0L;\n int max = -1000000;\n int min = 1000000;\n for(int i = 0; i < numOfInput; i++) {\n int n = stdIn.nextInt();\n sum += n;\n if(n > max) {\n max = n;\n }\n if(n < min) {\n min = n;\n }\n }\n System.out.println(min + \" \" + max + \" \" + sum);\n }",
"main",
"{\n Scanner stdIn = new Scanner(System.in);\n\n int numOfInput = stdIn.nextInt();\n \n long sum = 0L;\n int max = -1000000;\n int min = 1000000;\n for(int i = 0; i < numOfInput; i++) {\n int n = stdIn.nextInt();\n sum += n;\n if(n > max) {\n max = n;\n }\n if(n < min) {\n min = n;\n }\n }\n System.out.println(min + \" \" + max + \" \" + sum);\n }",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"int numOfInput = stdIn.nextInt();",
"numOfInput",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"long sum = 0L;",
"sum",
"0L",
"int max = -1000000;",
"max",
"-1000000",
"1000000",
"int min = 1000000;",
"min",
"1000000",
"for(int i = 0; i < numOfInput; i++) {\n int n = stdIn.nextInt();\n sum += n;\n if(n > max) {\n max = n;\n }\n if(n < min) {\n min = n;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < numOfInput",
"i",
"numOfInput",
"i++",
"i++",
"i",
"{\n int n = stdIn.nextInt();\n sum += n;\n if(n > max) {\n max = n;\n }\n if(n < min) {\n min = n;\n }\n }",
"{\n int n = stdIn.nextInt();\n sum += n;\n if(n > max) {\n max = n;\n }\n if(n < min) {\n min = n;\n }\n }",
"int n = stdIn.nextInt();",
"n",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"sum += n",
"sum",
"n",
"if(n > max) {\n max = n;\n }",
"n > max",
"n",
"max",
"{\n max = n;\n }",
"max = n",
"max",
"n",
"if(n < min) {\n min = n;\n }",
"n < min",
"n",
"min",
"{\n min = n;\n }",
"min = n",
"min",
"n",
"System.out.println(min + \" \" + max + \" \" + sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min + \" \" + max + \" \" + sum",
"\" \"",
"max",
"min + \" \" + max + \" \" + sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n\n int numOfInput = stdIn.nextInt();\n \n long sum = 0L;\n int max = -1000000;\n int min = 1000000;\n for(int i = 0; i < numOfInput; i++) {\n int n = stdIn.nextInt();\n sum += n;\n if(n > max) {\n max = n;\n }\n if(n < min) {\n min = n;\n }\n }\n System.out.println(min + \" \" + max + \" \" + sum);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n\n int numOfInput = stdIn.nextInt();\n \n long sum = 0L;\n int max = -1000000;\n int min = 1000000;\n for(int i = 0; i < numOfInput; i++) {\n int n = stdIn.nextInt();\n sum += n;\n if(n > max) {\n max = n;\n }\n if(n < min) {\n min = n;\n }\n }\n System.out.println(min + \" \" + max + \" \" + sum);\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
int numOfInput = stdIn.nextInt();
long sum = 0L;
int max = -1000000;
int min = 1000000;
for(int i = 0; i < numOfInput; i++) {
int n = stdIn.nextInt();
sum += n;
if(n > max) {
max = n;
}
if(n < min) {
min = n;
}
}
System.out.println(min + " " + max + " " + sum);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
40,
17,
41,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
2,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
2,
13,
13,
30,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
108,
5
],
[
108,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
53,
55
],
[
49,
56
],
[
56,
57
],
[
56,
58
],
[
45,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
69,
71
],
[
59,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
72,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
88,
90
],
[
8,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
99,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
97,
103
],
[
99,
104
],
[
6,
105
],
[
105,
106
],
[
0,
107
],
[
107,
108
],
[
107,
109
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint min = 1000000;\n int max = -1000000;\n\t\tlong sum = 0;\n\t\tint n = sc.nextInt();\n\t\tfor (int cnt = 1; cnt <= n; cnt++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tif (cnt == 1) {\n\t\t\t\tmin = a;\n\t\t\t\tmax = a;\n\t\t\t\tsum = a;\n\t\t\t} else if (a <= min) {\n\t\t\t\tmin = a;\n\t\t\t\tsum = sum + a;\n\t\t\t} else if (a >= max) {\n\t\t\t\tmax = a;\n\t\t\t\tsum = sum + a;\n\t\t\t} else {\n\t\t\t\tsum = sum + a;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint min = 1000000;\n int max = -1000000;\n\t\tlong sum = 0;\n\t\tint n = sc.nextInt();\n\t\tfor (int cnt = 1; cnt <= n; cnt++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tif (cnt == 1) {\n\t\t\t\tmin = a;\n\t\t\t\tmax = a;\n\t\t\t\tsum = a;\n\t\t\t} else if (a <= min) {\n\t\t\t\tmin = a;\n\t\t\t\tsum = sum + a;\n\t\t\t} else if (a >= max) {\n\t\t\t\tmax = a;\n\t\t\t\tsum = sum + a;\n\t\t\t} else {\n\t\t\t\tsum = sum + a;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint min = 1000000;\n int max = -1000000;\n\t\tlong sum = 0;\n\t\tint n = sc.nextInt();\n\t\tfor (int cnt = 1; cnt <= n; cnt++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tif (cnt == 1) {\n\t\t\t\tmin = a;\n\t\t\t\tmax = a;\n\t\t\t\tsum = a;\n\t\t\t} else if (a <= min) {\n\t\t\t\tmin = a;\n\t\t\t\tsum = sum + a;\n\t\t\t} else if (a >= max) {\n\t\t\t\tmax = a;\n\t\t\t\tsum = sum + a;\n\t\t\t} else {\n\t\t\t\tsum = sum + a;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint min = 1000000;\n int max = -1000000;\n\t\tlong sum = 0;\n\t\tint n = sc.nextInt();\n\t\tfor (int cnt = 1; cnt <= n; cnt++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tif (cnt == 1) {\n\t\t\t\tmin = a;\n\t\t\t\tmax = a;\n\t\t\t\tsum = a;\n\t\t\t} else if (a <= min) {\n\t\t\t\tmin = a;\n\t\t\t\tsum = sum + a;\n\t\t\t} else if (a >= max) {\n\t\t\t\tmax = a;\n\t\t\t\tsum = sum + a;\n\t\t\t} else {\n\t\t\t\tsum = sum + a;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int min = 1000000;",
"min",
"1000000",
"int max = -1000000;",
"max",
"-1000000",
"1000000",
"long sum = 0;",
"sum",
"0",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int cnt = 1; cnt <= n; cnt++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tif (cnt == 1) {\n\t\t\t\tmin = a;\n\t\t\t\tmax = a;\n\t\t\t\tsum = a;\n\t\t\t} else if (a <= min) {\n\t\t\t\tmin = a;\n\t\t\t\tsum = sum + a;\n\t\t\t} else if (a >= max) {\n\t\t\t\tmax = a;\n\t\t\t\tsum = sum + a;\n\t\t\t} else {\n\t\t\t\tsum = sum + a;\n\t\t\t}\n\t\t}",
"int cnt = 1;",
"int cnt = 1;",
"cnt",
"1",
"cnt <= n",
"cnt",
"n",
"cnt++",
"cnt++",
"cnt",
"{\n\t\t\tint a = sc.nextInt();\n\t\t\tif (cnt == 1) {\n\t\t\t\tmin = a;\n\t\t\t\tmax = a;\n\t\t\t\tsum = a;\n\t\t\t} else if (a <= min) {\n\t\t\t\tmin = a;\n\t\t\t\tsum = sum + a;\n\t\t\t} else if (a >= max) {\n\t\t\t\tmax = a;\n\t\t\t\tsum = sum + a;\n\t\t\t} else {\n\t\t\t\tsum = sum + a;\n\t\t\t}\n\t\t}",
"{\n\t\t\tint a = sc.nextInt();\n\t\t\tif (cnt == 1) {\n\t\t\t\tmin = a;\n\t\t\t\tmax = a;\n\t\t\t\tsum = a;\n\t\t\t} else if (a <= min) {\n\t\t\t\tmin = a;\n\t\t\t\tsum = sum + a;\n\t\t\t} else if (a >= max) {\n\t\t\t\tmax = a;\n\t\t\t\tsum = sum + a;\n\t\t\t} else {\n\t\t\t\tsum = sum + a;\n\t\t\t}\n\t\t}",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (cnt == 1) {\n\t\t\t\tmin = a;\n\t\t\t\tmax = a;\n\t\t\t\tsum = a;\n\t\t\t} else if (a <= min) {\n\t\t\t\tmin = a;\n\t\t\t\tsum = sum + a;\n\t\t\t} else if (a >= max) {\n\t\t\t\tmax = a;\n\t\t\t\tsum = sum + a;\n\t\t\t} else {\n\t\t\t\tsum = sum + a;\n\t\t\t}",
"cnt == 1",
"cnt",
"1",
"{\n\t\t\t\tmin = a;\n\t\t\t\tmax = a;\n\t\t\t\tsum = a;\n\t\t\t}",
"min = a",
"min",
"a",
"max = a",
"max",
"a",
"sum = a",
"sum",
"a",
"if (a <= min) {\n\t\t\t\tmin = a;\n\t\t\t\tsum = sum + a;\n\t\t\t} else if (a >= max) {\n\t\t\t\tmax = a;\n\t\t\t\tsum = sum + a;\n\t\t\t} else {\n\t\t\t\tsum = sum + a;\n\t\t\t}",
"a <= min",
"a",
"min",
"{\n\t\t\t\tmin = a;\n\t\t\t\tsum = sum + a;\n\t\t\t}",
"min = a",
"min",
"a",
"sum = sum + a",
"sum",
"sum + a",
"sum",
"a",
"if (a >= max) {\n\t\t\t\tmax = a;\n\t\t\t\tsum = sum + a;\n\t\t\t} else {\n\t\t\t\tsum = sum + a;\n\t\t\t}",
"a >= max",
"a",
"max",
"{\n\t\t\t\tmax = a;\n\t\t\t\tsum = sum + a;\n\t\t\t}",
"max = a",
"max",
"a",
"sum = sum + a",
"sum",
"sum + a",
"sum",
"a",
"{\n\t\t\t\tsum = sum + a;\n\t\t\t}",
"sum = sum + a",
"sum",
"sum + a",
"sum",
"a",
"System.out.println(min + \" \" + max + \" \" + sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min + \" \" + max + \" \" + sum",
"\" \"",
"max",
"min + \" \" + max + \" \" + sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint min = 1000000;\n int max = -1000000;\n\t\tlong sum = 0;\n\t\tint n = sc.nextInt();\n\t\tfor (int cnt = 1; cnt <= n; cnt++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tif (cnt == 1) {\n\t\t\t\tmin = a;\n\t\t\t\tmax = a;\n\t\t\t\tsum = a;\n\t\t\t} else if (a <= min) {\n\t\t\t\tmin = a;\n\t\t\t\tsum = sum + a;\n\t\t\t} else if (a >= max) {\n\t\t\t\tmax = a;\n\t\t\t\tsum = sum + a;\n\t\t\t} else {\n\t\t\t\tsum = sum + a;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint min = 1000000;\n int max = -1000000;\n\t\tlong sum = 0;\n\t\tint n = sc.nextInt();\n\t\tfor (int cnt = 1; cnt <= n; cnt++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tif (cnt == 1) {\n\t\t\t\tmin = a;\n\t\t\t\tmax = a;\n\t\t\t\tsum = a;\n\t\t\t} else if (a <= min) {\n\t\t\t\tmin = a;\n\t\t\t\tsum = sum + a;\n\t\t\t} else if (a >= max) {\n\t\t\t\tmax = a;\n\t\t\t\tsum = sum + a;\n\t\t\t} else {\n\t\t\t\tsum = sum + a;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int min = 1000000;
int max = -1000000;
long sum = 0;
int n = sc.nextInt();
for (int cnt = 1; cnt <= n; cnt++) {
int a = sc.nextInt();
if (cnt == 1) {
min = a;
max = a;
sum = a;
} else if (a <= min) {
min = a;
sum = sum + a;
} else if (a >= max) {
max = a;
sum = sum + a;
} else {
sum = sum + a;
}
}
System.out.println(min + " " + max + " " + sum);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
17,
41,
13,
40,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
18,
13,
13,
14,
2,
13,
13,
0,
13,
13,
14,
2,
13,
13,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
22,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
31,
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
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
56,
57
],
[
56,
58
],
[
50,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
63,
65
],
[
50,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
70,
72
],
[
50,
73
],
[
73,
74
],
[
73,
75
],
[
8,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
84,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
82,
88
],
[
84,
89
],
[
6,
90
],
[
90,
91
]
] | [
"import java.io.*;\n\nclass Main\n{\n public static void main(String[] args) throws IOException\n {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n // input\n int quantity = Integer.parseInt(br.readLine());\n String[] str = br.readLine().split(\" \");\n long min = 1000000;\n long max = -1000000;\n long sum = 0;\n\n for(int i = 0; i < quantity; i++){\n\n long value = Integer.parseInt(str[i]);\n\n //check\n if(min > value)\n min = value;\n if(max < value)\n max = value;\n sum += value;\n }\n // output\n System.out.println(min + \" \" + max + \" \" + sum);\n }\n}",
"import java.io.*;",
"io.*",
"java",
"class Main\n{\n public static void main(String[] args) throws IOException\n {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n // input\n int quantity = Integer.parseInt(br.readLine());\n String[] str = br.readLine().split(\" \");\n long min = 1000000;\n long max = -1000000;\n long sum = 0;\n\n for(int i = 0; i < quantity; i++){\n\n long value = Integer.parseInt(str[i]);\n\n //check\n if(min > value)\n min = value;\n if(max < value)\n max = value;\n sum += value;\n }\n // output\n System.out.println(min + \" \" + max + \" \" + sum);\n }\n}",
"Main",
"public static void main(String[] args) throws IOException\n {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n // input\n int quantity = Integer.parseInt(br.readLine());\n String[] str = br.readLine().split(\" \");\n long min = 1000000;\n long max = -1000000;\n long sum = 0;\n\n for(int i = 0; i < quantity; i++){\n\n long value = Integer.parseInt(str[i]);\n\n //check\n if(min > value)\n min = value;\n if(max < value)\n max = value;\n sum += value;\n }\n // output\n System.out.println(min + \" \" + max + \" \" + sum);\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n // input\n int quantity = Integer.parseInt(br.readLine());\n String[] str = br.readLine().split(\" \");\n long min = 1000000;\n long max = -1000000;\n long sum = 0;\n\n for(int i = 0; i < quantity; i++){\n\n long value = Integer.parseInt(str[i]);\n\n //check\n if(min > value)\n min = value;\n if(max < value)\n max = value;\n sum += value;\n }\n // output\n System.out.println(min + \" \" + max + \" \" + sum);\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int quantity = Integer.parseInt(br.readLine());",
"quantity",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String[] str = br.readLine().split(\" \");",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"long min = 1000000;",
"min",
"1000000",
"long max = -1000000;",
"max",
"-1000000",
"1000000",
"long sum = 0;",
"sum",
"0",
"for(int i = 0; i < quantity; i++){\n\n long value = Integer.parseInt(str[i]);\n\n //check\n if(min > value)\n min = value;\n if(max < value)\n max = value;\n sum += value;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < quantity",
"i",
"quantity",
"i++",
"i++",
"i",
"{\n\n long value = Integer.parseInt(str[i]);\n\n //check\n if(min > value)\n min = value;\n if(max < value)\n max = value;\n sum += value;\n }",
"{\n\n long value = Integer.parseInt(str[i]);\n\n //check\n if(min > value)\n min = value;\n if(max < value)\n max = value;\n sum += value;\n }",
"long value = Integer.parseInt(str[i]);",
"value",
"Integer.parseInt(str[i])",
"Integer.parseInt",
"Integer",
"str[i]",
"str",
"i",
"if(min > value)\n min = value;",
"min > value",
"min",
"value",
"min = value",
"min",
"value",
"if(max < value)\n max = value;",
"max < value",
"max",
"value",
"max = value",
"max",
"value",
"sum += value",
"sum",
"value",
"System.out.println(min + \" \" + max + \" \" + sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min + \" \" + max + \" \" + sum",
"\" \"",
"max",
"min + \" \" + max + \" \" + sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args"
] | import java.io.*;
class Main
{
public static void main(String[] args) throws IOException
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
// input
int quantity = Integer.parseInt(br.readLine());
String[] str = br.readLine().split(" ");
long min = 1000000;
long max = -1000000;
long sum = 0;
for(int i = 0; i < quantity; i++){
long value = Integer.parseInt(str[i]);
//check
if(min > value)
min = value;
if(max < value)
max = value;
sum += value;
}
// output
System.out.println(min + " " + max + " " + sum);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
20,
13,
0,
18,
13,
17,
4,
18,
13,
0,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
2,
13,
18,
13,
13,
42,
2,
13,
17,
30,
0,
13,
17,
11,
1,
0,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
2,
13,
17,
30,
0,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
2,
13,
17,
0,
18,
13,
2,
13,
17,
13,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
2,
2,
18,
13,
17,
17,
18,
13,
13,
17,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
35,
36
],
[
36,
37
],
[
8,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
8,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
43,
51
],
[
51,
52
],
[
52,
53
],
[
43,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
55,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
8,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
85,
87
],
[
78,
88
],
[
88,
89
],
[
89,
90
],
[
78,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
100,
102
],
[
93,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
106,
108
],
[
103,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
115,
117
],
[
103,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
121,
123
],
[
118,
124
],
[
103,
125
],
[
125,
126
],
[
125,
127
],
[
8,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
136,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
136,
140
],
[
135,
141
],
[
141,
142
],
[
141,
143
],
[
134,
144
],
[
136,
145
],
[
6,
146
],
[
146,
147
]
] | [
"import java.util.Scanner;\n/**\n * @author kawakami\n *\n */\nclass Main {\n /**\n * @param args\n */\n public static void main(String[] args) {\n // TODO Auto-generated method stub\n Scanner as = new Scanner(System.in);\n \n int n=as.nextInt();\n long tr,sum;\n int j = 0,k = 0;\n long jug[] = new long[n];\n \n \n \n jug[0]=as.nextInt();\n sum=jug[0];\n \n \n for(int i=1;i<n;i++){ //????¨????????¨????\n jug[i]=as.nextInt();\n sum=sum+jug[i];\n }\n while(j!=1){\n j=1;\n for(k = 0;k<n-1;k++){//?????????????´?????°????????????????????????????\n \n if(jug[k]>jug[k+1]){\n tr=jug[k];\n jug[k]=jug[k+1];\n jug[k+1]=tr;\n j=0;\n }\n }\n \n \n }\n System.out.println(jug[0]+\" \"+jug[k]+\" \"+sum);\n \n }\n \n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n /**\n * @param args\n */\n public static void main(String[] args) {\n // TODO Auto-generated method stub\n Scanner as = new Scanner(System.in);\n \n int n=as.nextInt();\n long tr,sum;\n int j = 0,k = 0;\n long jug[] = new long[n];\n \n \n \n jug[0]=as.nextInt();\n sum=jug[0];\n \n \n for(int i=1;i<n;i++){ //????¨????????¨????\n jug[i]=as.nextInt();\n sum=sum+jug[i];\n }\n while(j!=1){\n j=1;\n for(k = 0;k<n-1;k++){//?????????????´?????°????????????????????????????\n \n if(jug[k]>jug[k+1]){\n tr=jug[k];\n jug[k]=jug[k+1];\n jug[k+1]=tr;\n j=0;\n }\n }\n \n \n }\n System.out.println(jug[0]+\" \"+jug[k]+\" \"+sum);\n \n }\n \n}",
"Main",
"/**\n * @param args\n */\n public static void main(String[] args) {\n // TODO Auto-generated method stub\n Scanner as = new Scanner(System.in);\n \n int n=as.nextInt();\n long tr,sum;\n int j = 0,k = 0;\n long jug[] = new long[n];\n \n \n \n jug[0]=as.nextInt();\n sum=jug[0];\n \n \n for(int i=1;i<n;i++){ //????¨????????¨????\n jug[i]=as.nextInt();\n sum=sum+jug[i];\n }\n while(j!=1){\n j=1;\n for(k = 0;k<n-1;k++){//?????????????´?????°????????????????????????????\n \n if(jug[k]>jug[k+1]){\n tr=jug[k];\n jug[k]=jug[k+1];\n jug[k+1]=tr;\n j=0;\n }\n }\n \n \n }\n System.out.println(jug[0]+\" \"+jug[k]+\" \"+sum);\n \n }",
"main",
"{\n // TODO Auto-generated method stub\n Scanner as = new Scanner(System.in);\n \n int n=as.nextInt();\n long tr,sum;\n int j = 0,k = 0;\n long jug[] = new long[n];\n \n \n \n jug[0]=as.nextInt();\n sum=jug[0];\n \n \n for(int i=1;i<n;i++){ //????¨????????¨????\n jug[i]=as.nextInt();\n sum=sum+jug[i];\n }\n while(j!=1){\n j=1;\n for(k = 0;k<n-1;k++){//?????????????´?????°????????????????????????????\n \n if(jug[k]>jug[k+1]){\n tr=jug[k];\n jug[k]=jug[k+1];\n jug[k+1]=tr;\n j=0;\n }\n }\n \n \n }\n System.out.println(jug[0]+\" \"+jug[k]+\" \"+sum);\n \n }",
"Scanner as = new Scanner(System.in);",
"as",
"new Scanner(System.in)",
"int n=as.nextInt();",
"n",
"as.nextInt()",
"as.nextInt",
"as",
"long tr",
"tr",
"sum;",
"sum",
"int j = 0",
"j",
"0",
"k = 0;",
"k",
"0",
"long jug[] = new long[n];",
"jug",
"new long[n]",
"n",
"jug[0]=as.nextInt()",
"jug[0]",
"jug",
"0",
"as.nextInt()",
"as.nextInt",
"as",
"sum=jug[0]",
"sum",
"jug[0]",
"jug",
"0",
"for(int i=1;i<n;i++){ //????¨????????¨????\n jug[i]=as.nextInt();\n sum=sum+jug[i];\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{ //????¨????????¨????\n jug[i]=as.nextInt();\n sum=sum+jug[i];\n }",
"{ //????¨????????¨????\n jug[i]=as.nextInt();\n sum=sum+jug[i];\n }",
"jug[i]=as.nextInt()",
"jug[i]",
"jug",
"i",
"as.nextInt()",
"as.nextInt",
"as",
"sum=sum+jug[i]",
"sum",
"sum+jug[i]",
"sum",
"jug[i]",
"jug",
"i",
"while(j!=1){\n j=1;\n for(k = 0;k<n-1;k++){//?????????????´?????°????????????????????????????\n \n if(jug[k]>jug[k+1]){\n tr=jug[k];\n jug[k]=jug[k+1];\n jug[k+1]=tr;\n j=0;\n }\n }\n \n \n }",
"j!=1",
"j",
"1",
"{\n j=1;\n for(k = 0;k<n-1;k++){//?????????????´?????°????????????????????????????\n \n if(jug[k]>jug[k+1]){\n tr=jug[k];\n jug[k]=jug[k+1];\n jug[k+1]=tr;\n j=0;\n }\n }\n \n \n }",
"j=1",
"j",
"1",
"for(k = 0;k<n-1;k++){//?????????????´?????°????????????????????????????\n \n if(jug[k]>jug[k+1]){\n tr=jug[k];\n jug[k]=jug[k+1];\n jug[k+1]=tr;\n j=0;\n }\n }",
"k = 0;",
"k = 0",
"k",
"0",
"k<n-1",
"k",
"n-1",
"n",
"1",
"k++",
"k++",
"k",
"{//?????????????´?????°????????????????????????????\n \n if(jug[k]>jug[k+1]){\n tr=jug[k];\n jug[k]=jug[k+1];\n jug[k+1]=tr;\n j=0;\n }\n }",
"{//?????????????´?????°????????????????????????????\n \n if(jug[k]>jug[k+1]){\n tr=jug[k];\n jug[k]=jug[k+1];\n jug[k+1]=tr;\n j=0;\n }\n }",
"if(jug[k]>jug[k+1]){\n tr=jug[k];\n jug[k]=jug[k+1];\n jug[k+1]=tr;\n j=0;\n }",
"jug[k]>jug[k+1]",
"jug[k]",
"jug",
"k",
"jug[k+1]",
"jug",
"k+1",
"k",
"1",
"{\n tr=jug[k];\n jug[k]=jug[k+1];\n jug[k+1]=tr;\n j=0;\n }",
"tr=jug[k]",
"tr",
"jug[k]",
"jug",
"k",
"jug[k]=jug[k+1]",
"jug[k]",
"jug",
"k",
"jug[k+1]",
"jug",
"k+1",
"k",
"1",
"jug[k+1]=tr",
"jug[k+1]",
"jug",
"k+1",
"k",
"1",
"tr",
"j=0",
"j",
"0",
"System.out.println(jug[0]+\" \"+jug[k]+\" \"+sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"jug[0]+\" \"+jug[k]+\" \"+sum",
"\" \"",
"jug[k]",
"jug[0]+\" \"+jug[k]+\" \"+sum",
"jug[0]",
"jug",
"0",
"\" \"",
"jug[k]",
"jug",
"k",
"\" \"",
"sum",
"String[] args",
"args"
] | import java.util.Scanner;
/**
* @author kawakami
*
*/
class Main {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner as = new Scanner(System.in);
int n=as.nextInt();
long tr,sum;
int j = 0,k = 0;
long jug[] = new long[n];
jug[0]=as.nextInt();
sum=jug[0];
for(int i=1;i<n;i++){ //????¨????????¨????
jug[i]=as.nextInt();
sum=sum+jug[i];
}
while(j!=1){
j=1;
for(k = 0;k<n-1;k++){//?????????????´?????°????????????????????????????
if(jug[k]>jug[k+1]){
tr=jug[k];
jug[k]=jug[k+1];
jug[k+1]=tr;
j=0;
}
}
}
System.out.println(jug[0]+" "+jug[k]+" "+sum);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
5,
13,
30,
4,
18,
18,
13,
13,
17,
30,
41,
13,
20,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
13,
0,
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,
13,
30,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
41,
13,
20,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
4,
18,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
24,
26
],
[
17,
27
],
[
27,
28
],
[
27,
29
],
[
17,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
30,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
30,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
49,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
49,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
49,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
49,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
80,
81
],
[
80,
82
],
[
49,
83
],
[
83,
84
],
[
83,
85
],
[
49,
86
],
[
86,
87
],
[
86,
88
],
[
49,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
89,
97
],
[
97,
98
],
[
98,
99
],
[
89,
100
],
[
101,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
107,
108
],
[
107,
109
],
[
101,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
101,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
101,
126
],
[
126,
127
],
[
126,
128
],
[
49,
129
],
[
129,
130
],
[
129,
131
],
[
49,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
140,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
138,
144
],
[
140,
145
],
[
145,
146
],
[
146,
147
],
[
145,
148
],
[
15,
149
],
[
149,
150
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.text.DecimalFormat;\n\n\n/**\n * Lesson4D n 個の整数 a i (i=1,2,...n) を入力し、それらの最小値、最大値、合計値を求めるプログラム\n * @author 前島佑介\n * @version 2014/12/1\n */\nclass Main {\n\n\t// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\n\t\t//入力値 1つ目 2列目の扱う数\n\t\tint intNum = 0;\n\n\t\t//最小値\n\t\tint intMin = 0;\n\n\t\t//最大値\n\t\tint intMax = 0;\n\n\t\t//合計\n\t\tdouble dbSum = 0;\n\n\n\t\ttry{\n\t\t\t//キーボードからの入力準備\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\t//キーボードからの入力をString型で受け取る初期化\n\t\t\tString strLine = br.readLine();\n\n\t\t\t//入力値 1つ目 2列目の扱う数\n\t\t\tintNum = Integer.parseInt(strLine);\n\n\t\t\t//キーボードからの入力をString型で受け取る\n\t\t\tstrLine = br.readLine();\n\n\t\t\t//文字列の分割:入力値を\" \"で分ける\n\t\t\t//分けた文字列はstrLineAry[0]とstrLineAry[1]とstrLineAry[2]に分けられる\n\t\t\tString[] strLineAry = strLine.split(\" \");\n\n\t\t\t//1つ目の値を最小値に入れておく\n\t\t\tintMin = Integer.parseInt(strLineAry[0]);\n\n\t\t\t//最大値にも最小値の値を入れておく\n\t\t\tintMax = intMin;\n\n\t\t\t//総数をカウントしていく\n\t\t\tdbSum += (double)intMin;\n\n\t\t\t//2つ目以降\n\t\t\tfor(int i = 1; i < intNum; i++) {\n\n\t\t\t\tint intNum2 = Integer.parseInt(strLineAry[i]);\n\n\t\t\t\t//最小値より小さいなら\n\t\t\t\tif(intNum2 < intMin) {\n\n\t\t\t\t\t//これを最小値にする\n\t\t\t\t\tintMin = intNum2;\n\t\t\t\t}\n\n\t\t\t\t//最大値より大きいなら\n\t\t\t\tif(intMax < intNum2) {\n\n\t\t\t\t\t//これを最大値にする\n\t\t\t\t\tintMax = intNum2;\n\t\t\t\t}\n\n\t\t\t\t//総数をカウントしていく\n\t\t\t\tdbSum += (double)intNum2;\n\t\t\t}\n\n\t\t\t//小数5桁まで\n\t\t DecimalFormat insDF = new DecimalFormat(\"0\");\n\n\t\t\t//出力\n\t\t\tSystem.out.println(intMin + \" \" + intMax + \" \" + insDF.format(dbSum));\n\n\t\t\t//例外処理\n\t\t}catch(IOException e) {\n\n\t\t\t//例外時の出力\n\t\t\tSystem.out.println(e);\n\n\t\t}catch(NumberFormatException e) {\n\n\t\t\t//数値以外の入力値で出力\n\t\t\tSystem.out.println(\"数値で入力して下さい\");\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.text.DecimalFormat;",
"DecimalFormat",
"java.text",
"class Main {\n\n\t// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\n\t\t//入力値 1つ目 2列目の扱う数\n\t\tint intNum = 0;\n\n\t\t//最小値\n\t\tint intMin = 0;\n\n\t\t//最大値\n\t\tint intMax = 0;\n\n\t\t//合計\n\t\tdouble dbSum = 0;\n\n\n\t\ttry{\n\t\t\t//キーボードからの入力準備\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\t//キーボードからの入力をString型で受け取る初期化\n\t\t\tString strLine = br.readLine();\n\n\t\t\t//入力値 1つ目 2列目の扱う数\n\t\t\tintNum = Integer.parseInt(strLine);\n\n\t\t\t//キーボードからの入力をString型で受け取る\n\t\t\tstrLine = br.readLine();\n\n\t\t\t//文字列の分割:入力値を\" \"で分ける\n\t\t\t//分けた文字列はstrLineAry[0]とstrLineAry[1]とstrLineAry[2]に分けられる\n\t\t\tString[] strLineAry = strLine.split(\" \");\n\n\t\t\t//1つ目の値を最小値に入れておく\n\t\t\tintMin = Integer.parseInt(strLineAry[0]);\n\n\t\t\t//最大値にも最小値の値を入れておく\n\t\t\tintMax = intMin;\n\n\t\t\t//総数をカウントしていく\n\t\t\tdbSum += (double)intMin;\n\n\t\t\t//2つ目以降\n\t\t\tfor(int i = 1; i < intNum; i++) {\n\n\t\t\t\tint intNum2 = Integer.parseInt(strLineAry[i]);\n\n\t\t\t\t//最小値より小さいなら\n\t\t\t\tif(intNum2 < intMin) {\n\n\t\t\t\t\t//これを最小値にする\n\t\t\t\t\tintMin = intNum2;\n\t\t\t\t}\n\n\t\t\t\t//最大値より大きいなら\n\t\t\t\tif(intMax < intNum2) {\n\n\t\t\t\t\t//これを最大値にする\n\t\t\t\t\tintMax = intNum2;\n\t\t\t\t}\n\n\t\t\t\t//総数をカウントしていく\n\t\t\t\tdbSum += (double)intNum2;\n\t\t\t}\n\n\t\t\t//小数5桁まで\n\t\t DecimalFormat insDF = new DecimalFormat(\"0\");\n\n\t\t\t//出力\n\t\t\tSystem.out.println(intMin + \" \" + intMax + \" \" + insDF.format(dbSum));\n\n\t\t\t//例外処理\n\t\t}catch(IOException e) {\n\n\t\t\t//例外時の出力\n\t\t\tSystem.out.println(e);\n\n\t\t}catch(NumberFormatException e) {\n\n\t\t\t//数値以外の入力値で出力\n\t\t\tSystem.out.println(\"数値で入力して下さい\");\n\t\t}\n\t}\n}",
"Main",
"// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\n\t\t//入力値 1つ目 2列目の扱う数\n\t\tint intNum = 0;\n\n\t\t//最小値\n\t\tint intMin = 0;\n\n\t\t//最大値\n\t\tint intMax = 0;\n\n\t\t//合計\n\t\tdouble dbSum = 0;\n\n\n\t\ttry{\n\t\t\t//キーボードからの入力準備\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\t//キーボードからの入力をString型で受け取る初期化\n\t\t\tString strLine = br.readLine();\n\n\t\t\t//入力値 1つ目 2列目の扱う数\n\t\t\tintNum = Integer.parseInt(strLine);\n\n\t\t\t//キーボードからの入力をString型で受け取る\n\t\t\tstrLine = br.readLine();\n\n\t\t\t//文字列の分割:入力値を\" \"で分ける\n\t\t\t//分けた文字列はstrLineAry[0]とstrLineAry[1]とstrLineAry[2]に分けられる\n\t\t\tString[] strLineAry = strLine.split(\" \");\n\n\t\t\t//1つ目の値を最小値に入れておく\n\t\t\tintMin = Integer.parseInt(strLineAry[0]);\n\n\t\t\t//最大値にも最小値の値を入れておく\n\t\t\tintMax = intMin;\n\n\t\t\t//総数をカウントしていく\n\t\t\tdbSum += (double)intMin;\n\n\t\t\t//2つ目以降\n\t\t\tfor(int i = 1; i < intNum; i++) {\n\n\t\t\t\tint intNum2 = Integer.parseInt(strLineAry[i]);\n\n\t\t\t\t//最小値より小さいなら\n\t\t\t\tif(intNum2 < intMin) {\n\n\t\t\t\t\t//これを最小値にする\n\t\t\t\t\tintMin = intNum2;\n\t\t\t\t}\n\n\t\t\t\t//最大値より大きいなら\n\t\t\t\tif(intMax < intNum2) {\n\n\t\t\t\t\t//これを最大値にする\n\t\t\t\t\tintMax = intNum2;\n\t\t\t\t}\n\n\t\t\t\t//総数をカウントしていく\n\t\t\t\tdbSum += (double)intNum2;\n\t\t\t}\n\n\t\t\t//小数5桁まで\n\t\t DecimalFormat insDF = new DecimalFormat(\"0\");\n\n\t\t\t//出力\n\t\t\tSystem.out.println(intMin + \" \" + intMax + \" \" + insDF.format(dbSum));\n\n\t\t\t//例外処理\n\t\t}catch(IOException e) {\n\n\t\t\t//例外時の出力\n\t\t\tSystem.out.println(e);\n\n\t\t}catch(NumberFormatException e) {\n\n\t\t\t//数値以外の入力値で出力\n\t\t\tSystem.out.println(\"数値で入力して下さい\");\n\t\t}\n\t}",
"main",
"{\n\n\t\t//入力値 1つ目 2列目の扱う数\n\t\tint intNum = 0;\n\n\t\t//最小値\n\t\tint intMin = 0;\n\n\t\t//最大値\n\t\tint intMax = 0;\n\n\t\t//合計\n\t\tdouble dbSum = 0;\n\n\n\t\ttry{\n\t\t\t//キーボードからの入力準備\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\t//キーボードからの入力をString型で受け取る初期化\n\t\t\tString strLine = br.readLine();\n\n\t\t\t//入力値 1つ目 2列目の扱う数\n\t\t\tintNum = Integer.parseInt(strLine);\n\n\t\t\t//キーボードからの入力をString型で受け取る\n\t\t\tstrLine = br.readLine();\n\n\t\t\t//文字列の分割:入力値を\" \"で分ける\n\t\t\t//分けた文字列はstrLineAry[0]とstrLineAry[1]とstrLineAry[2]に分けられる\n\t\t\tString[] strLineAry = strLine.split(\" \");\n\n\t\t\t//1つ目の値を最小値に入れておく\n\t\t\tintMin = Integer.parseInt(strLineAry[0]);\n\n\t\t\t//最大値にも最小値の値を入れておく\n\t\t\tintMax = intMin;\n\n\t\t\t//総数をカウントしていく\n\t\t\tdbSum += (double)intMin;\n\n\t\t\t//2つ目以降\n\t\t\tfor(int i = 1; i < intNum; i++) {\n\n\t\t\t\tint intNum2 = Integer.parseInt(strLineAry[i]);\n\n\t\t\t\t//最小値より小さいなら\n\t\t\t\tif(intNum2 < intMin) {\n\n\t\t\t\t\t//これを最小値にする\n\t\t\t\t\tintMin = intNum2;\n\t\t\t\t}\n\n\t\t\t\t//最大値より大きいなら\n\t\t\t\tif(intMax < intNum2) {\n\n\t\t\t\t\t//これを最大値にする\n\t\t\t\t\tintMax = intNum2;\n\t\t\t\t}\n\n\t\t\t\t//総数をカウントしていく\n\t\t\t\tdbSum += (double)intNum2;\n\t\t\t}\n\n\t\t\t//小数5桁まで\n\t\t DecimalFormat insDF = new DecimalFormat(\"0\");\n\n\t\t\t//出力\n\t\t\tSystem.out.println(intMin + \" \" + intMax + \" \" + insDF.format(dbSum));\n\n\t\t\t//例外処理\n\t\t}catch(IOException e) {\n\n\t\t\t//例外時の出力\n\t\t\tSystem.out.println(e);\n\n\t\t}catch(NumberFormatException e) {\n\n\t\t\t//数値以外の入力値で出力\n\t\t\tSystem.out.println(\"数値で入力して下さい\");\n\t\t}\n\t}",
"int intNum = 0;",
"intNum",
"0",
"int intMin = 0;",
"intMin",
"0",
"int intMax = 0;",
"intMax",
"0",
"double dbSum = 0;",
"dbSum",
"0",
"try{\n\t\t\t//キーボードからの入力準備\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\t//キーボードからの入力をString型で受け取る初期化\n\t\t\tString strLine = br.readLine();\n\n\t\t\t//入力値 1つ目 2列目の扱う数\n\t\t\tintNum = Integer.parseInt(strLine);\n\n\t\t\t//キーボードからの入力をString型で受け取る\n\t\t\tstrLine = br.readLine();\n\n\t\t\t//文字列の分割:入力値を\" \"で分ける\n\t\t\t//分けた文字列はstrLineAry[0]とstrLineAry[1]とstrLineAry[2]に分けられる\n\t\t\tString[] strLineAry = strLine.split(\" \");\n\n\t\t\t//1つ目の値を最小値に入れておく\n\t\t\tintMin = Integer.parseInt(strLineAry[0]);\n\n\t\t\t//最大値にも最小値の値を入れておく\n\t\t\tintMax = intMin;\n\n\t\t\t//総数をカウントしていく\n\t\t\tdbSum += (double)intMin;\n\n\t\t\t//2つ目以降\n\t\t\tfor(int i = 1; i < intNum; i++) {\n\n\t\t\t\tint intNum2 = Integer.parseInt(strLineAry[i]);\n\n\t\t\t\t//最小値より小さいなら\n\t\t\t\tif(intNum2 < intMin) {\n\n\t\t\t\t\t//これを最小値にする\n\t\t\t\t\tintMin = intNum2;\n\t\t\t\t}\n\n\t\t\t\t//最大値より大きいなら\n\t\t\t\tif(intMax < intNum2) {\n\n\t\t\t\t\t//これを最大値にする\n\t\t\t\t\tintMax = intNum2;\n\t\t\t\t}\n\n\t\t\t\t//総数をカウントしていく\n\t\t\t\tdbSum += (double)intNum2;\n\t\t\t}\n\n\t\t\t//小数5桁まで\n\t\t DecimalFormat insDF = new DecimalFormat(\"0\");\n\n\t\t\t//出力\n\t\t\tSystem.out.println(intMin + \" \" + intMax + \" \" + insDF.format(dbSum));\n\n\t\t\t//例外処理\n\t\t}catch(IOException e) {\n\n\t\t\t//例外時の出力\n\t\t\tSystem.out.println(e);\n\n\t\t}catch(NumberFormatException e) {\n\n\t\t\t//数値以外の入力値で出力\n\t\t\tSystem.out.println(\"数値で入力して下さい\");\n\t\t}",
"catch(IOException e) {\n\n\t\t\t//例外時の出力\n\t\t\tSystem.out.println(e);\n\n\t\t}",
"IOException e",
"{\n\n\t\t\t//例外時の出力\n\t\t\tSystem.out.println(e);\n\n\t\t}",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"catch(NumberFormatException e) {\n\n\t\t\t//数値以外の入力値で出力\n\t\t\tSystem.out.println(\"数値で入力して下さい\");\n\t\t}",
"NumberFormatException e",
"{\n\n\t\t\t//数値以外の入力値で出力\n\t\t\tSystem.out.println(\"数値で入力して下さい\");\n\t\t}",
"System.out.println(\"数値で入力して下さい\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"数値で入力して下さい\"",
"{\n\t\t\t//キーボードからの入力準備\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\t//キーボードからの入力をString型で受け取る初期化\n\t\t\tString strLine = br.readLine();\n\n\t\t\t//入力値 1つ目 2列目の扱う数\n\t\t\tintNum = Integer.parseInt(strLine);\n\n\t\t\t//キーボードからの入力をString型で受け取る\n\t\t\tstrLine = br.readLine();\n\n\t\t\t//文字列の分割:入力値を\" \"で分ける\n\t\t\t//分けた文字列はstrLineAry[0]とstrLineAry[1]とstrLineAry[2]に分けられる\n\t\t\tString[] strLineAry = strLine.split(\" \");\n\n\t\t\t//1つ目の値を最小値に入れておく\n\t\t\tintMin = Integer.parseInt(strLineAry[0]);\n\n\t\t\t//最大値にも最小値の値を入れておく\n\t\t\tintMax = intMin;\n\n\t\t\t//総数をカウントしていく\n\t\t\tdbSum += (double)intMin;\n\n\t\t\t//2つ目以降\n\t\t\tfor(int i = 1; i < intNum; i++) {\n\n\t\t\t\tint intNum2 = Integer.parseInt(strLineAry[i]);\n\n\t\t\t\t//最小値より小さいなら\n\t\t\t\tif(intNum2 < intMin) {\n\n\t\t\t\t\t//これを最小値にする\n\t\t\t\t\tintMin = intNum2;\n\t\t\t\t}\n\n\t\t\t\t//最大値より大きいなら\n\t\t\t\tif(intMax < intNum2) {\n\n\t\t\t\t\t//これを最大値にする\n\t\t\t\t\tintMax = intNum2;\n\t\t\t\t}\n\n\t\t\t\t//総数をカウントしていく\n\t\t\t\tdbSum += (double)intNum2;\n\t\t\t}\n\n\t\t\t//小数5桁まで\n\t\t DecimalFormat insDF = new DecimalFormat(\"0\");\n\n\t\t\t//出力\n\t\t\tSystem.out.println(intMin + \" \" + intMax + \" \" + insDF.format(dbSum));\n\n\t\t\t//例外処理\n\t\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String strLine = br.readLine();",
"strLine",
"br.readLine()",
"br.readLine",
"br",
"intNum = Integer.parseInt(strLine)",
"intNum",
"Integer.parseInt(strLine)",
"Integer.parseInt",
"Integer",
"strLine",
"strLine = br.readLine()",
"strLine",
"br.readLine()",
"br.readLine",
"br",
"String[] strLineAry = strLine.split(\" \");",
"strLineAry",
"strLine.split(\" \")",
"strLine.split",
"strLine",
"\" \"",
"intMin = Integer.parseInt(strLineAry[0])",
"intMin",
"Integer.parseInt(strLineAry[0])",
"Integer.parseInt",
"Integer",
"strLineAry[0]",
"strLineAry",
"0",
"intMax = intMin",
"intMax",
"intMin",
"dbSum += (double)intMin",
"dbSum",
"(double)intMin",
"for(int i = 1; i < intNum; i++) {\n\n\t\t\t\tint intNum2 = Integer.parseInt(strLineAry[i]);\n\n\t\t\t\t//最小値より小さいなら\n\t\t\t\tif(intNum2 < intMin) {\n\n\t\t\t\t\t//これを最小値にする\n\t\t\t\t\tintMin = intNum2;\n\t\t\t\t}\n\n\t\t\t\t//最大値より大きいなら\n\t\t\t\tif(intMax < intNum2) {\n\n\t\t\t\t\t//これを最大値にする\n\t\t\t\t\tintMax = intNum2;\n\t\t\t\t}\n\n\t\t\t\t//総数をカウントしていく\n\t\t\t\tdbSum += (double)intNum2;\n\t\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < intNum",
"i",
"intNum",
"i++",
"i++",
"i",
"{\n\n\t\t\t\tint intNum2 = Integer.parseInt(strLineAry[i]);\n\n\t\t\t\t//最小値より小さいなら\n\t\t\t\tif(intNum2 < intMin) {\n\n\t\t\t\t\t//これを最小値にする\n\t\t\t\t\tintMin = intNum2;\n\t\t\t\t}\n\n\t\t\t\t//最大値より大きいなら\n\t\t\t\tif(intMax < intNum2) {\n\n\t\t\t\t\t//これを最大値にする\n\t\t\t\t\tintMax = intNum2;\n\t\t\t\t}\n\n\t\t\t\t//総数をカウントしていく\n\t\t\t\tdbSum += (double)intNum2;\n\t\t\t}",
"{\n\n\t\t\t\tint intNum2 = Integer.parseInt(strLineAry[i]);\n\n\t\t\t\t//最小値より小さいなら\n\t\t\t\tif(intNum2 < intMin) {\n\n\t\t\t\t\t//これを最小値にする\n\t\t\t\t\tintMin = intNum2;\n\t\t\t\t}\n\n\t\t\t\t//最大値より大きいなら\n\t\t\t\tif(intMax < intNum2) {\n\n\t\t\t\t\t//これを最大値にする\n\t\t\t\t\tintMax = intNum2;\n\t\t\t\t}\n\n\t\t\t\t//総数をカウントしていく\n\t\t\t\tdbSum += (double)intNum2;\n\t\t\t}",
"int intNum2 = Integer.parseInt(strLineAry[i]);",
"intNum2",
"Integer.parseInt(strLineAry[i])",
"Integer.parseInt",
"Integer",
"strLineAry[i]",
"strLineAry",
"i",
"if(intNum2 < intMin) {\n\n\t\t\t\t\t//これを最小値にする\n\t\t\t\t\tintMin = intNum2;\n\t\t\t\t}",
"intNum2 < intMin",
"intNum2",
"intMin",
"{\n\n\t\t\t\t\t//これを最小値にする\n\t\t\t\t\tintMin = intNum2;\n\t\t\t\t}",
"intMin = intNum2",
"intMin",
"intNum2",
"if(intMax < intNum2) {\n\n\t\t\t\t\t//これを最大値にする\n\t\t\t\t\tintMax = intNum2;\n\t\t\t\t}",
"intMax < intNum2",
"intMax",
"intNum2",
"{\n\n\t\t\t\t\t//これを最大値にする\n\t\t\t\t\tintMax = intNum2;\n\t\t\t\t}",
"intMax = intNum2",
"intMax",
"intNum2",
"dbSum += (double)intNum2",
"dbSum",
"(double)intNum2",
"DecimalFormat insDF = new DecimalFormat(\"0\");",
"insDF",
"new DecimalFormat(\"0\")",
"System.out.println(intMin + \" \" + intMax + \" \" + insDF.format(dbSum))",
"System.out.println",
"System.out",
"System",
"System.out",
"intMin + \" \" + intMax + \" \" + insDF.format(dbSum)",
"\" \"",
"intMax",
"intMin + \" \" + intMax + \" \" + insDF.format(dbSum)",
"intMin",
"\" \"",
"intMax",
"\" \"",
"insDF.format(dbSum)",
"insDF.format",
"insDF",
"dbSum",
"String[] args",
"args"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.text.DecimalFormat;
/**
* Lesson4D n 個の整数 a i (i=1,2,...n) を入力し、それらの最小値、最大値、合計値を求めるプログラム
* @author 前島佑介
* @version 2014/12/1
*/
class Main {
// プログラムのエントリポイント
public static void main(String[] args) {
//入力値 1つ目 2列目の扱う数
int intNum = 0;
//最小値
int intMin = 0;
//最大値
int intMax = 0;
//合計
double dbSum = 0;
try{
//キーボードからの入力準備
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
//キーボードからの入力をString型で受け取る初期化
String strLine = br.readLine();
//入力値 1つ目 2列目の扱う数
intNum = Integer.parseInt(strLine);
//キーボードからの入力をString型で受け取る
strLine = br.readLine();
//文字列の分割:入力値を" "で分ける
//分けた文字列はstrLineAry[0]とstrLineAry[1]とstrLineAry[2]に分けられる
String[] strLineAry = strLine.split(" ");
//1つ目の値を最小値に入れておく
intMin = Integer.parseInt(strLineAry[0]);
//最大値にも最小値の値を入れておく
intMax = intMin;
//総数をカウントしていく
dbSum += (double)intMin;
//2つ目以降
for(int i = 1; i < intNum; i++) {
int intNum2 = Integer.parseInt(strLineAry[i]);
//最小値より小さいなら
if(intNum2 < intMin) {
//これを最小値にする
intMin = intNum2;
}
//最大値より大きいなら
if(intMax < intNum2) {
//これを最大値にする
intMax = intNum2;
}
//総数をカウントしていく
dbSum += (double)intNum2;
}
//小数5桁まで
DecimalFormat insDF = new DecimalFormat("0");
//出力
System.out.println(intMin + " " + intMax + " " + insDF.format(dbSum));
//例外処理
}catch(IOException e) {
//例外時の出力
System.out.println(e);
}catch(NumberFormatException e) {
//数値以外の入力値で出力
System.out.println("数値で入力して下さい");
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
13,
41,
13,
13,
41,
13,
13,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
2,
13,
13,
0,
13,
13,
14,
2,
13,
13,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
12,
13,
30,
4,
18,
20,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
4,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
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
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
31,
41
],
[
41,
42
],
[
42,
43
],
[
31,
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
],
[
55,
57
],
[
45,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
62,
64
],
[
45,
65
],
[
65,
66
],
[
65,
67
],
[
11,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
76,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
74,
80
],
[
76,
81
],
[
4,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
82,
88
],
[
88,
89
]
] | [
"import java.util.*;\nclass Main{\n Scanner sc=new Scanner(System.in);\n void main(){\n\tint n=sc.nextInt();\n\tint f=sc.nextInt();\n\tint min=f;\n\tint max=f;\n\tlong sum=f;\n\tfor(int i=0;i<n-1;i++){\n\t int x=sc.nextInt();\n\t if(min>x)min=x;\n\t if(max<x)max=x;\n\t sum+=x;\n\t}\n System.out.println(min+\" \"+max+\" \"+sum);\n }\n public static void main(String[]ag){\n\tnew Main().main();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n Scanner sc=new Scanner(System.in);\n void main(){\n\tint n=sc.nextInt();\n\tint f=sc.nextInt();\n\tint min=f;\n\tint max=f;\n\tlong sum=f;\n\tfor(int i=0;i<n-1;i++){\n\t int x=sc.nextInt();\n\t if(min>x)min=x;\n\t if(max<x)max=x;\n\t sum+=x;\n\t}\n System.out.println(min+\" \"+max+\" \"+sum);\n }\n public static void main(String[]ag){\n\tnew Main().main();\n }\n}",
"Main",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"void main(){\n\tint n=sc.nextInt();\n\tint f=sc.nextInt();\n\tint min=f;\n\tint max=f;\n\tlong sum=f;\n\tfor(int i=0;i<n-1;i++){\n\t int x=sc.nextInt();\n\t if(min>x)min=x;\n\t if(max<x)max=x;\n\t sum+=x;\n\t}\n System.out.println(min+\" \"+max+\" \"+sum);\n }",
"main",
"{\n\tint n=sc.nextInt();\n\tint f=sc.nextInt();\n\tint min=f;\n\tint max=f;\n\tlong sum=f;\n\tfor(int i=0;i<n-1;i++){\n\t int x=sc.nextInt();\n\t if(min>x)min=x;\n\t if(max<x)max=x;\n\t sum+=x;\n\t}\n System.out.println(min+\" \"+max+\" \"+sum);\n }",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int f=sc.nextInt();",
"f",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int min=f;",
"min",
"f",
"int max=f;",
"max",
"f",
"long sum=f;",
"sum",
"f",
"for(int i=0;i<n-1;i++){\n\t int x=sc.nextInt();\n\t if(min>x)min=x;\n\t if(max<x)max=x;\n\t sum+=x;\n\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n-1",
"i",
"n-1",
"n",
"1",
"i++",
"i++",
"i",
"{\n\t int x=sc.nextInt();\n\t if(min>x)min=x;\n\t if(max<x)max=x;\n\t sum+=x;\n\t}",
"{\n\t int x=sc.nextInt();\n\t if(min>x)min=x;\n\t if(max<x)max=x;\n\t sum+=x;\n\t}",
"int x=sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(min>x)min=x;",
"min>x",
"min",
"x",
"min=x",
"min",
"x",
"if(max<x)max=x;",
"max<x",
"max",
"x",
"max=x",
"max",
"x",
"sum+=x",
"sum",
"x",
"System.out.println(min+\" \"+max+\" \"+sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min+\" \"+max+\" \"+sum",
"\" \"",
"max",
"min+\" \"+max+\" \"+sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"public static void main(String[]ag){\n\tnew Main().main();\n }",
"main",
"{\n\tnew Main().main();\n }",
"new Main().main()",
"new Main().main",
"new Main()",
"String[]ag",
"ag"
] | import java.util.*;
class Main{
Scanner sc=new Scanner(System.in);
void main(){
int n=sc.nextInt();
int f=sc.nextInt();
int min=f;
int max=f;
long sum=f;
for(int i=0;i<n-1;i++){
int x=sc.nextInt();
if(min>x)min=x;
if(max<x)max=x;
sum+=x;
}
System.out.println(min+" "+max+" "+sum);
}
public static void main(String[]ag){
new Main().main();
}
} |
[
7,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
40,
17,
0,
13,
17,
0,
13,
17,
14,
2,
2,
17,
13,
2,
13,
17,
30,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
14,
2,
2,
40,
17,
13,
2,
13,
17,
30,
14,
2,
13,
13,
30,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
2,
13,
17,
4,
18,
18,
13,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
117,
2
],
[
117,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
5,
9
],
[
9,
10
],
[
5,
11
],
[
11,
12
],
[
5,
13
],
[
13,
14
],
[
5,
15
],
[
15,
16
],
[
5,
17
],
[
17,
18
],
[
5,
19
],
[
19,
20
],
[
5,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
5,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
5,
30
],
[
30,
31
],
[
30,
32
],
[
5,
33
],
[
33,
34
],
[
33,
35
],
[
5,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
57,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
63,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
72,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
72,
89
],
[
89,
90
],
[
89,
91
],
[
5,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
97,
98
],
[
97,
99
],
[
5,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
5,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
3,
114
],
[
114,
115
],
[
0,
116
],
[
116,
117
],
[
116,
118
]
] | [
"public class Main {\n\n\n\t\tpublic static void main(String[] args) {\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tint a, b, c, d, e;\n\t\tlong f;\n\t\ta = scan.nextInt();\n\t\td = -1000000;\n\t\te = 1000000;\n\t\tf = 0;\n\t\tif(0 <= a && a <= 10000){\n\t\tfor(b = 1; b <= a ; b++){\n\t\t\n\t\t\tc = scan.nextInt();\n\t\t if(-1000000<=c && c <= 1000000){\n\t\t\t\n\t\t\tif(c >= d){\n\t\t\t\td = c;\n\t\t\t}\n\t\t\tif(c <= e){\n\t\t\t\te = c;\n\t\t\t}\n\t\t\tf += c;\n\t\t}\n\t\n\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.print(e+\" \");\n\t\tSystem.out.print(d+\" \");\n\t\tSystem.out.println(f);\n\t\t}\n\t\t\n\n\n\n\t\t}",
"public class Main {\n\n\n\t\tpublic static void main(String[] args) {\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tint a, b, c, d, e;\n\t\tlong f;\n\t\ta = scan.nextInt();\n\t\td = -1000000;\n\t\te = 1000000;\n\t\tf = 0;\n\t\tif(0 <= a && a <= 10000){\n\t\tfor(b = 1; b <= a ; b++){\n\t\t\n\t\t\tc = scan.nextInt();\n\t\t if(-1000000<=c && c <= 1000000){\n\t\t\t\n\t\t\tif(c >= d){\n\t\t\t\td = c;\n\t\t\t}\n\t\t\tif(c <= e){\n\t\t\t\te = c;\n\t\t\t}\n\t\t\tf += c;\n\t\t}\n\t\n\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.print(e+\" \");\n\t\tSystem.out.print(d+\" \");\n\t\tSystem.out.println(f);\n\t\t}\n\t\t\n\n\n\n\t\t}",
"Main",
"public static void main(String[] args) {\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tint a, b, c, d, e;\n\t\tlong f;\n\t\ta = scan.nextInt();\n\t\td = -1000000;\n\t\te = 1000000;\n\t\tf = 0;\n\t\tif(0 <= a && a <= 10000){\n\t\tfor(b = 1; b <= a ; b++){\n\t\t\n\t\t\tc = scan.nextInt();\n\t\t if(-1000000<=c && c <= 1000000){\n\t\t\t\n\t\t\tif(c >= d){\n\t\t\t\td = c;\n\t\t\t}\n\t\t\tif(c <= e){\n\t\t\t\te = c;\n\t\t\t}\n\t\t\tf += c;\n\t\t}\n\t\n\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.print(e+\" \");\n\t\tSystem.out.print(d+\" \");\n\t\tSystem.out.println(f);\n\t\t}",
"main",
"{\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tint a, b, c, d, e;\n\t\tlong f;\n\t\ta = scan.nextInt();\n\t\td = -1000000;\n\t\te = 1000000;\n\t\tf = 0;\n\t\tif(0 <= a && a <= 10000){\n\t\tfor(b = 1; b <= a ; b++){\n\t\t\n\t\t\tc = scan.nextInt();\n\t\t if(-1000000<=c && c <= 1000000){\n\t\t\t\n\t\t\tif(c >= d){\n\t\t\t\td = c;\n\t\t\t}\n\t\t\tif(c <= e){\n\t\t\t\te = c;\n\t\t\t}\n\t\t\tf += c;\n\t\t}\n\t\n\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.print(e+\" \");\n\t\tSystem.out.print(d+\" \");\n\t\tSystem.out.println(f);\n\t\t}",
"java.util.Scanner scan = new java.util.Scanner(System.in);",
"scan",
"new java.util.Scanner(System.in)",
"int a",
"a",
"b",
"b",
"c",
"c",
"d",
"d",
"e;",
"e",
"long f;",
"f",
"a = scan.nextInt()",
"a",
"scan.nextInt()",
"scan.nextInt",
"scan",
"d = -1000000",
"d",
"-1000000",
"1000000",
"e = 1000000",
"e",
"1000000",
"f = 0",
"f",
"0",
"if(0 <= a && a <= 10000){\n\t\tfor(b = 1; b <= a ; b++){\n\t\t\n\t\t\tc = scan.nextInt();\n\t\t if(-1000000<=c && c <= 1000000){\n\t\t\t\n\t\t\tif(c >= d){\n\t\t\t\td = c;\n\t\t\t}\n\t\t\tif(c <= e){\n\t\t\t\te = c;\n\t\t\t}\n\t\t\tf += c;\n\t\t}\n\t\n\t\t}\n\t\t}",
"0 <= a && a <= 10000",
"0 <= a",
"0",
"a",
"a <= 10000",
"a",
"10000",
"{\n\t\tfor(b = 1; b <= a ; b++){\n\t\t\n\t\t\tc = scan.nextInt();\n\t\t if(-1000000<=c && c <= 1000000){\n\t\t\t\n\t\t\tif(c >= d){\n\t\t\t\td = c;\n\t\t\t}\n\t\t\tif(c <= e){\n\t\t\t\te = c;\n\t\t\t}\n\t\t\tf += c;\n\t\t}\n\t\n\t\t}\n\t\t}",
"for(b = 1; b <= a ; b++){\n\t\t\n\t\t\tc = scan.nextInt();\n\t\t if(-1000000<=c && c <= 1000000){\n\t\t\t\n\t\t\tif(c >= d){\n\t\t\t\td = c;\n\t\t\t}\n\t\t\tif(c <= e){\n\t\t\t\te = c;\n\t\t\t}\n\t\t\tf += c;\n\t\t}\n\t\n\t\t}",
"b = 1;",
"b = 1",
"b",
"1",
"b <= a",
"b",
"a",
"b++",
"b++",
"b",
"{\n\t\t\n\t\t\tc = scan.nextInt();\n\t\t if(-1000000<=c && c <= 1000000){\n\t\t\t\n\t\t\tif(c >= d){\n\t\t\t\td = c;\n\t\t\t}\n\t\t\tif(c <= e){\n\t\t\t\te = c;\n\t\t\t}\n\t\t\tf += c;\n\t\t}\n\t\n\t\t}",
"{\n\t\t\n\t\t\tc = scan.nextInt();\n\t\t if(-1000000<=c && c <= 1000000){\n\t\t\t\n\t\t\tif(c >= d){\n\t\t\t\td = c;\n\t\t\t}\n\t\t\tif(c <= e){\n\t\t\t\te = c;\n\t\t\t}\n\t\t\tf += c;\n\t\t}\n\t\n\t\t}",
"c = scan.nextInt()",
"c",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if(-1000000<=c && c <= 1000000){\n\t\t\t\n\t\t\tif(c >= d){\n\t\t\t\td = c;\n\t\t\t}\n\t\t\tif(c <= e){\n\t\t\t\te = c;\n\t\t\t}\n\t\t\tf += c;\n\t\t}",
"-1000000<=c && c <= 1000000",
"-1000000<=c",
"-1000000",
"1000000",
"c",
"c <= 1000000",
"c",
"1000000",
"{\n\t\t\t\n\t\t\tif(c >= d){\n\t\t\t\td = c;\n\t\t\t}\n\t\t\tif(c <= e){\n\t\t\t\te = c;\n\t\t\t}\n\t\t\tf += c;\n\t\t}",
"if(c >= d){\n\t\t\t\td = c;\n\t\t\t}",
"c >= d",
"c",
"d",
"{\n\t\t\t\td = c;\n\t\t\t}",
"d = c",
"d",
"c",
"if(c <= e){\n\t\t\t\te = c;\n\t\t\t}",
"c <= e",
"c",
"e",
"{\n\t\t\t\te = c;\n\t\t\t}",
"e = c",
"e",
"c",
"f += c",
"f",
"c",
"System.out.print(e+\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"e+\" \"",
"e",
"\" \"",
"System.out.print(d+\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"d+\" \"",
"d",
"\" \"",
"System.out.println(f)",
"System.out.println",
"System.out",
"System",
"System.out",
"f",
"String[] args",
"args",
"public class Main {\n\n\n\t\tpublic static void main(String[] args) {\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tint a, b, c, d, e;\n\t\tlong f;\n\t\ta = scan.nextInt();\n\t\td = -1000000;\n\t\te = 1000000;\n\t\tf = 0;\n\t\tif(0 <= a && a <= 10000){\n\t\tfor(b = 1; b <= a ; b++){\n\t\t\n\t\t\tc = scan.nextInt();\n\t\t if(-1000000<=c && c <= 1000000){\n\t\t\t\n\t\t\tif(c >= d){\n\t\t\t\td = c;\n\t\t\t}\n\t\t\tif(c <= e){\n\t\t\t\te = c;\n\t\t\t}\n\t\t\tf += c;\n\t\t}\n\t\n\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.print(e+\" \");\n\t\tSystem.out.print(d+\" \");\n\t\tSystem.out.println(f);\n\t\t}\n\t\t\n\n\n\n\t\t}",
"public class Main {\n\n\n\t\tpublic static void main(String[] args) {\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tint a, b, c, d, e;\n\t\tlong f;\n\t\ta = scan.nextInt();\n\t\td = -1000000;\n\t\te = 1000000;\n\t\tf = 0;\n\t\tif(0 <= a && a <= 10000){\n\t\tfor(b = 1; b <= a ; b++){\n\t\t\n\t\t\tc = scan.nextInt();\n\t\t if(-1000000<=c && c <= 1000000){\n\t\t\t\n\t\t\tif(c >= d){\n\t\t\t\td = c;\n\t\t\t}\n\t\t\tif(c <= e){\n\t\t\t\te = c;\n\t\t\t}\n\t\t\tf += c;\n\t\t}\n\t\n\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.print(e+\" \");\n\t\tSystem.out.print(d+\" \");\n\t\tSystem.out.println(f);\n\t\t}\n\t\t\n\n\n\n\t\t}",
"Main"
] | public class Main {
public static void main(String[] args) {
java.util.Scanner scan = new java.util.Scanner(System.in);
int a, b, c, d, e;
long f;
a = scan.nextInt();
d = -1000000;
e = 1000000;
f = 0;
if(0 <= a && a <= 10000){
for(b = 1; b <= a ; b++){
c = scan.nextInt();
if(-1000000<=c && c <= 1000000){
if(c >= d){
d = c;
}
if(c <= e){
e = c;
}
f += c;
}
}
}
System.out.print(e+" ");
System.out.print(d+" ");
System.out.println(f);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
13,
41,
13,
13,
41,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
14,
2,
13,
13,
0,
13,
13,
14,
2,
13,
13,
0,
13,
13,
0,
13,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
85,
5
],
[
85,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
53,
55
],
[
43,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
60,
62
],
[
43,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
8,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
76,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
74,
80
],
[
76,
81
],
[
6,
82
],
[
82,
83
],
[
0,
84
],
[
84,
85
],
[
84,
86
]
] | [
"import java.util.Scanner;\npublic class Main\n{\n public static void main(String args[])\n {\n Scanner sc = new Scanner(System.in);\nlong n=sc.nextInt();\nlong t=sc.nextInt();\nlong max = t;\nlong min = t;\nlong sum = t;\nfor(long i=1;i<n;i++)\n{\nt=sc.nextInt();\nif(t > max) max = t ;\nif(t < min)min = t ;\nsum = sum+=t;\n}\nSystem.out.println(min+\" \"+max+\" \"+sum);\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);\nlong n=sc.nextInt();\nlong t=sc.nextInt();\nlong max = t;\nlong min = t;\nlong sum = t;\nfor(long i=1;i<n;i++)\n{\nt=sc.nextInt();\nif(t > max) max = t ;\nif(t < min)min = t ;\nsum = sum+=t;\n}\nSystem.out.println(min+\" \"+max+\" \"+sum);\n}\n}",
"Main",
"public static void main(String args[])\n {\n Scanner sc = new Scanner(System.in);\nlong n=sc.nextInt();\nlong t=sc.nextInt();\nlong max = t;\nlong min = t;\nlong sum = t;\nfor(long i=1;i<n;i++)\n{\nt=sc.nextInt();\nif(t > max) max = t ;\nif(t < min)min = t ;\nsum = sum+=t;\n}\nSystem.out.println(min+\" \"+max+\" \"+sum);\n}",
"main",
"{\n Scanner sc = new Scanner(System.in);\nlong n=sc.nextInt();\nlong t=sc.nextInt();\nlong max = t;\nlong min = t;\nlong sum = t;\nfor(long i=1;i<n;i++)\n{\nt=sc.nextInt();\nif(t > max) max = t ;\nif(t < min)min = t ;\nsum = sum+=t;\n}\nSystem.out.println(min+\" \"+max+\" \"+sum);\n}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long t=sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long max = t;",
"max",
"t",
"long min = t;",
"min",
"t",
"long sum = t;",
"sum",
"t",
"for(long i=1;i<n;i++)\n{\nt=sc.nextInt();\nif(t > max) max = t ;\nif(t < min)min = t ;\nsum = sum+=t;\n}",
"long i=1;",
"long i=1;",
"i",
"1",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\nt=sc.nextInt();\nif(t > max) max = t ;\nif(t < min)min = t ;\nsum = sum+=t;\n}",
"{\nt=sc.nextInt();\nif(t > max) max = t ;\nif(t < min)min = t ;\nsum = sum+=t;\n}",
"t=sc.nextInt()",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(t > max) max = t ;",
"t > max",
"t",
"max",
"max = t",
"max",
"t",
"if(t < min)min = t ;",
"t < min",
"t",
"min",
"min = t",
"min",
"t",
"sum = sum+=t",
"sum",
"sum+=t",
"sum",
"t",
"System.out.println(min+\" \"+max+\" \"+sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min+\" \"+max+\" \"+sum",
"\" \"",
"max",
"min+\" \"+max+\" \"+sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String args[]",
"args",
"public class Main\n{\n public static void main(String args[])\n {\n Scanner sc = new Scanner(System.in);\nlong n=sc.nextInt();\nlong t=sc.nextInt();\nlong max = t;\nlong min = t;\nlong sum = t;\nfor(long i=1;i<n;i++)\n{\nt=sc.nextInt();\nif(t > max) max = t ;\nif(t < min)min = t ;\nsum = sum+=t;\n}\nSystem.out.println(min+\" \"+max+\" \"+sum);\n}\n}",
"public class Main\n{\n public static void main(String args[])\n {\n Scanner sc = new Scanner(System.in);\nlong n=sc.nextInt();\nlong t=sc.nextInt();\nlong max = t;\nlong min = t;\nlong sum = t;\nfor(long i=1;i<n;i++)\n{\nt=sc.nextInt();\nif(t > max) max = t ;\nif(t < min)min = t ;\nsum = sum+=t;\n}\nSystem.out.println(min+\" \"+max+\" \"+sum);\n}\n}",
"Main"
] | import java.util.Scanner;
public class Main
{
public static void main(String args[])
{
Scanner sc = new Scanner(System.in);
long n=sc.nextInt();
long t=sc.nextInt();
long max = t;
long min = t;
long sum = t;
for(long i=1;i<n;i++)
{
t=sc.nextInt();
if(t > max) max = t ;
if(t < min)min = t ;
sum = sum+=t;
}
System.out.println(min+" "+max+" "+sum);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
20,
13,
0,
18,
13,
17,
4,
18,
13,
0,
13,
18,
13,
17,
0,
13,
18,
13,
17,
0,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
2,
13,
18,
13,
13,
42,
2,
13,
17,
30,
0,
13,
17,
11,
1,
0,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
2,
13,
17,
30,
0,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
2,
13,
17,
0,
18,
13,
2,
13,
17,
13,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
2,
2,
18,
13,
17,
17,
18,
13,
13,
17,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
40,
41
],
[
8,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
8,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
8,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
57,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
75,
76
],
[
69,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
81,
83
],
[
8,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
99,
101
],
[
92,
102
],
[
102,
103
],
[
103,
104
],
[
92,
105
],
[
106,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
114,
116
],
[
107,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
120,
122
],
[
117,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
129,
131
],
[
117,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
135,
137
],
[
132,
138
],
[
117,
139
],
[
139,
140
],
[
139,
141
],
[
8,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
142,
147
],
[
150,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
150,
154
],
[
149,
155
],
[
155,
156
],
[
155,
157
],
[
148,
158
],
[
150,
159
],
[
6,
160
],
[
160,
161
]
] | [
"import java.util.Scanner;\n\n/**\n * @author kawakami\n *\n */\nclass Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tint n=as.nextInt();\n\t\tlong tr,min,max,sum;\n\t\tint j = 0,k = 0;\n\t\tlong jug[] = new long[n];\n\t\t\n\t\t\n\t\t\n\t\tjug[0]=as.nextInt();\n\t\t//System.out.println(\"test3 \"+jug[0]);\n\t\tmax=jug[0];\n\t\tmin=jug[0];\n\t\tsum=jug[0];\n\t\t\n\t\t\n\t\tfor(int i=1;i<n;i++){\n\t\t\t//System.out.println(\"test4\");\n\t\t\tjug[i]=as.nextInt();\n\t\t\tsum=sum+jug[i];\n\t\t\t//System.out.println(sum+\" test1 \"+jug[i]);\n\t\t}\n\t\twhile(j!=1){\n\t\t\tj=1;\n\t\t\t//System.out.println(\"test2\");\n\t\t\tfor(k = 0;k<n-1;k++){\n\t\t\t\t\n\t\t\t\tif(jug[k]>jug[k+1]){\n\t\t\t\t\ttr=jug[k];\n\t\t\t\t\tjug[k]=jug[k+1];\n\t\t\t\t\tjug[k+1]=tr;\n\t\t\t\t\tj=0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(jug[0]+\" \"+jug[k]+\" \"+sum);\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tint n=as.nextInt();\n\t\tlong tr,min,max,sum;\n\t\tint j = 0,k = 0;\n\t\tlong jug[] = new long[n];\n\t\t\n\t\t\n\t\t\n\t\tjug[0]=as.nextInt();\n\t\t//System.out.println(\"test3 \"+jug[0]);\n\t\tmax=jug[0];\n\t\tmin=jug[0];\n\t\tsum=jug[0];\n\t\t\n\t\t\n\t\tfor(int i=1;i<n;i++){\n\t\t\t//System.out.println(\"test4\");\n\t\t\tjug[i]=as.nextInt();\n\t\t\tsum=sum+jug[i];\n\t\t\t//System.out.println(sum+\" test1 \"+jug[i]);\n\t\t}\n\t\twhile(j!=1){\n\t\t\tj=1;\n\t\t\t//System.out.println(\"test2\");\n\t\t\tfor(k = 0;k<n-1;k++){\n\t\t\t\t\n\t\t\t\tif(jug[k]>jug[k+1]){\n\t\t\t\t\ttr=jug[k];\n\t\t\t\t\tjug[k]=jug[k+1];\n\t\t\t\t\tjug[k+1]=tr;\n\t\t\t\t\tj=0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(jug[0]+\" \"+jug[k]+\" \"+sum);\n\n\t}\n\n}",
"Main",
"/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tint n=as.nextInt();\n\t\tlong tr,min,max,sum;\n\t\tint j = 0,k = 0;\n\t\tlong jug[] = new long[n];\n\t\t\n\t\t\n\t\t\n\t\tjug[0]=as.nextInt();\n\t\t//System.out.println(\"test3 \"+jug[0]);\n\t\tmax=jug[0];\n\t\tmin=jug[0];\n\t\tsum=jug[0];\n\t\t\n\t\t\n\t\tfor(int i=1;i<n;i++){\n\t\t\t//System.out.println(\"test4\");\n\t\t\tjug[i]=as.nextInt();\n\t\t\tsum=sum+jug[i];\n\t\t\t//System.out.println(sum+\" test1 \"+jug[i]);\n\t\t}\n\t\twhile(j!=1){\n\t\t\tj=1;\n\t\t\t//System.out.println(\"test2\");\n\t\t\tfor(k = 0;k<n-1;k++){\n\t\t\t\t\n\t\t\t\tif(jug[k]>jug[k+1]){\n\t\t\t\t\ttr=jug[k];\n\t\t\t\t\tjug[k]=jug[k+1];\n\t\t\t\t\tjug[k+1]=tr;\n\t\t\t\t\tj=0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(jug[0]+\" \"+jug[k]+\" \"+sum);\n\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tint n=as.nextInt();\n\t\tlong tr,min,max,sum;\n\t\tint j = 0,k = 0;\n\t\tlong jug[] = new long[n];\n\t\t\n\t\t\n\t\t\n\t\tjug[0]=as.nextInt();\n\t\t//System.out.println(\"test3 \"+jug[0]);\n\t\tmax=jug[0];\n\t\tmin=jug[0];\n\t\tsum=jug[0];\n\t\t\n\t\t\n\t\tfor(int i=1;i<n;i++){\n\t\t\t//System.out.println(\"test4\");\n\t\t\tjug[i]=as.nextInt();\n\t\t\tsum=sum+jug[i];\n\t\t\t//System.out.println(sum+\" test1 \"+jug[i]);\n\t\t}\n\t\twhile(j!=1){\n\t\t\tj=1;\n\t\t\t//System.out.println(\"test2\");\n\t\t\tfor(k = 0;k<n-1;k++){\n\t\t\t\t\n\t\t\t\tif(jug[k]>jug[k+1]){\n\t\t\t\t\ttr=jug[k];\n\t\t\t\t\tjug[k]=jug[k+1];\n\t\t\t\t\tjug[k+1]=tr;\n\t\t\t\t\tj=0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(jug[0]+\" \"+jug[k]+\" \"+sum);\n\n\t}",
"Scanner as = new Scanner(System.in);",
"as",
"new Scanner(System.in)",
"int n=as.nextInt();",
"n",
"as.nextInt()",
"as.nextInt",
"as",
"long tr",
"tr",
"min",
"min",
"max",
"max",
"sum;",
"sum",
"int j = 0",
"j",
"0",
"k = 0;",
"k",
"0",
"long jug[] = new long[n];",
"jug",
"new long[n]",
"n",
"jug[0]=as.nextInt()",
"jug[0]",
"jug",
"0",
"as.nextInt()",
"as.nextInt",
"as",
"max=jug[0]",
"max",
"jug[0]",
"jug",
"0",
"min=jug[0]",
"min",
"jug[0]",
"jug",
"0",
"sum=jug[0]",
"sum",
"jug[0]",
"jug",
"0",
"for(int i=1;i<n;i++){\n\t\t\t//System.out.println(\"test4\");\n\t\t\tjug[i]=as.nextInt();\n\t\t\tsum=sum+jug[i];\n\t\t\t//System.out.println(sum+\" test1 \"+jug[i]);\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t//System.out.println(\"test4\");\n\t\t\tjug[i]=as.nextInt();\n\t\t\tsum=sum+jug[i];\n\t\t\t//System.out.println(sum+\" test1 \"+jug[i]);\n\t\t}",
"{\n\t\t\t//System.out.println(\"test4\");\n\t\t\tjug[i]=as.nextInt();\n\t\t\tsum=sum+jug[i];\n\t\t\t//System.out.println(sum+\" test1 \"+jug[i]);\n\t\t}",
"jug[i]=as.nextInt()",
"jug[i]",
"jug",
"i",
"as.nextInt()",
"as.nextInt",
"as",
"sum=sum+jug[i]",
"sum",
"sum+jug[i]",
"sum",
"jug[i]",
"jug",
"i",
"while(j!=1){\n\t\t\tj=1;\n\t\t\t//System.out.println(\"test2\");\n\t\t\tfor(k = 0;k<n-1;k++){\n\t\t\t\t\n\t\t\t\tif(jug[k]>jug[k+1]){\n\t\t\t\t\ttr=jug[k];\n\t\t\t\t\tjug[k]=jug[k+1];\n\t\t\t\t\tjug[k+1]=tr;\n\t\t\t\t\tj=0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}",
"j!=1",
"j",
"1",
"{\n\t\t\tj=1;\n\t\t\t//System.out.println(\"test2\");\n\t\t\tfor(k = 0;k<n-1;k++){\n\t\t\t\t\n\t\t\t\tif(jug[k]>jug[k+1]){\n\t\t\t\t\ttr=jug[k];\n\t\t\t\t\tjug[k]=jug[k+1];\n\t\t\t\t\tjug[k+1]=tr;\n\t\t\t\t\tj=0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}",
"j=1",
"j",
"1",
"for(k = 0;k<n-1;k++){\n\t\t\t\t\n\t\t\t\tif(jug[k]>jug[k+1]){\n\t\t\t\t\ttr=jug[k];\n\t\t\t\t\tjug[k]=jug[k+1];\n\t\t\t\t\tjug[k+1]=tr;\n\t\t\t\t\tj=0;\n\t\t\t\t}\n\t\t\t}",
"k = 0;",
"k = 0",
"k",
"0",
"k<n-1",
"k",
"n-1",
"n",
"1",
"k++",
"k++",
"k",
"{\n\t\t\t\t\n\t\t\t\tif(jug[k]>jug[k+1]){\n\t\t\t\t\ttr=jug[k];\n\t\t\t\t\tjug[k]=jug[k+1];\n\t\t\t\t\tjug[k+1]=tr;\n\t\t\t\t\tj=0;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\t\n\t\t\t\tif(jug[k]>jug[k+1]){\n\t\t\t\t\ttr=jug[k];\n\t\t\t\t\tjug[k]=jug[k+1];\n\t\t\t\t\tjug[k+1]=tr;\n\t\t\t\t\tj=0;\n\t\t\t\t}\n\t\t\t}",
"if(jug[k]>jug[k+1]){\n\t\t\t\t\ttr=jug[k];\n\t\t\t\t\tjug[k]=jug[k+1];\n\t\t\t\t\tjug[k+1]=tr;\n\t\t\t\t\tj=0;\n\t\t\t\t}",
"jug[k]>jug[k+1]",
"jug[k]",
"jug",
"k",
"jug[k+1]",
"jug",
"k+1",
"k",
"1",
"{\n\t\t\t\t\ttr=jug[k];\n\t\t\t\t\tjug[k]=jug[k+1];\n\t\t\t\t\tjug[k+1]=tr;\n\t\t\t\t\tj=0;\n\t\t\t\t}",
"tr=jug[k]",
"tr",
"jug[k]",
"jug",
"k",
"jug[k]=jug[k+1]",
"jug[k]",
"jug",
"k",
"jug[k+1]",
"jug",
"k+1",
"k",
"1",
"jug[k+1]=tr",
"jug[k+1]",
"jug",
"k+1",
"k",
"1",
"tr",
"j=0",
"j",
"0",
"System.out.println(jug[0]+\" \"+jug[k]+\" \"+sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"jug[0]+\" \"+jug[k]+\" \"+sum",
"\" \"",
"jug[k]",
"jug[0]+\" \"+jug[k]+\" \"+sum",
"jug[0]",
"jug",
"0",
"\" \"",
"jug[k]",
"jug",
"k",
"\" \"",
"sum",
"String[] args",
"args"
] | import java.util.Scanner;
/**
* @author kawakami
*
*/
class Main {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner as = new Scanner(System.in);
int n=as.nextInt();
long tr,min,max,sum;
int j = 0,k = 0;
long jug[] = new long[n];
jug[0]=as.nextInt();
//System.out.println("test3 "+jug[0]);
max=jug[0];
min=jug[0];
sum=jug[0];
for(int i=1;i<n;i++){
//System.out.println("test4");
jug[i]=as.nextInt();
sum=sum+jug[i];
//System.out.println(sum+" test1 "+jug[i]);
}
while(j!=1){
j=1;
//System.out.println("test2");
for(k = 0;k<n-1;k++){
if(jug[k]>jug[k+1]){
tr=jug[k];
jug[k]=jug[k+1];
jug[k+1]=tr;
j=0;
}
}
}
System.out.println(jug[0]+" "+jug[k]+" "+sum);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
4,
18,
13,
4,
18,
13,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
17,
41,
13,
17,
28,
13,
4,
18,
4,
18,
13,
17,
30,
30,
0,
18,
13,
13,
4,
18,
13,
13,
40,
13,
28,
13,
13,
30,
30,
14,
2,
13,
13,
0,
13,
13,
14,
2,
13,
13,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
17,
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
],
[
100,
11
],
[
100,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
21,
22
],
[
22,
23
],
[
21,
24
],
[
24,
25
],
[
25,
26
],
[
14,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
14,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
14,
37
],
[
37,
38
],
[
37,
39
],
[
14,
40
],
[
40,
41
],
[
40,
42
],
[
14,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
45,
50
],
[
43,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
52,
61
],
[
61,
62
],
[
14,
63
],
[
63,
64
],
[
63,
65
],
[
63,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
79,
81
],
[
67,
82
],
[
82,
83
],
[
82,
84
],
[
14,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
90,
94
],
[
90,
95
],
[
90,
96
],
[
12,
97
],
[
97,
98
],
[
0,
99
],
[
99,
100
],
[
99,
101
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int[] datas = new int[Integer.parseInt(reader.readLine())];\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n long sum = 0;\n int c = 0;\n for (String str : reader.readLine().split(\" \")) {\n datas[c] = Integer.parseInt(str);\n c++;\n }\n for (int data : datas) {\n if (min > data)\n min = data;\n if (max < data)\n max = data;\n sum += data;\n }\n System.out.println(String.format(\"%d %d %d\", min, max, sum));\n }\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int[] datas = new int[Integer.parseInt(reader.readLine())];\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n long sum = 0;\n int c = 0;\n for (String str : reader.readLine().split(\" \")) {\n datas[c] = Integer.parseInt(str);\n c++;\n }\n for (int data : datas) {\n if (min > data)\n min = data;\n if (max < data)\n max = data;\n sum += data;\n }\n System.out.println(String.format(\"%d %d %d\", min, max, sum));\n }\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int[] datas = new int[Integer.parseInt(reader.readLine())];\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n long sum = 0;\n int c = 0;\n for (String str : reader.readLine().split(\" \")) {\n datas[c] = Integer.parseInt(str);\n c++;\n }\n for (int data : datas) {\n if (min > data)\n min = data;\n if (max < data)\n max = data;\n sum += data;\n }\n System.out.println(String.format(\"%d %d %d\", min, max, sum));\n }",
"main",
"{\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int[] datas = new int[Integer.parseInt(reader.readLine())];\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n long sum = 0;\n int c = 0;\n for (String str : reader.readLine().split(\" \")) {\n datas[c] = Integer.parseInt(str);\n c++;\n }\n for (int data : datas) {\n if (min > data)\n min = data;\n if (max < data)\n max = data;\n sum += data;\n }\n System.out.println(String.format(\"%d %d %d\", min, max, sum));\n }",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"int[] datas = new int[Integer.parseInt(reader.readLine())];",
"datas",
"new int[Integer.parseInt(reader.readLine())]",
"Integer.parseInt(reader.readLine())",
"Integer.parseInt",
"Integer",
"reader.readLine()",
"reader.readLine",
"reader",
"int min = Integer.MAX_VALUE;",
"min",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"int max = Integer.MIN_VALUE;",
"max",
"Integer.MIN_VALUE",
"Integer",
"Integer.MIN_VALUE",
"long sum = 0;",
"sum",
"0",
"int c = 0;",
"c",
"0",
"for (String str : reader.readLine().split(\" \")) {\n datas[c] = Integer.parseInt(str);\n c++;\n }",
"String str",
"reader.readLine().split(\" \")",
"reader.readLine().split",
"reader.readLine()",
"reader.readLine",
"reader",
"\" \"",
"{\n datas[c] = Integer.parseInt(str);\n c++;\n }",
"{\n datas[c] = Integer.parseInt(str);\n c++;\n }",
"datas[c] = Integer.parseInt(str)",
"datas[c]",
"datas",
"c",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"c++",
"c",
"for (int data : datas) {\n if (min > data)\n min = data;\n if (max < data)\n max = data;\n sum += data;\n }",
"int data",
"datas",
"{\n if (min > data)\n min = data;\n if (max < data)\n max = data;\n sum += data;\n }",
"{\n if (min > data)\n min = data;\n if (max < data)\n max = data;\n sum += data;\n }",
"if (min > data)\n min = data;",
"min > data",
"min",
"data",
"min = data",
"min",
"data",
"if (max < data)\n max = data;",
"max < data",
"max",
"data",
"max = data",
"max",
"data",
"sum += data",
"sum",
"data",
"System.out.println(String.format(\"%d %d %d\", min, max, sum))",
"System.out.println",
"System.out",
"System",
"System.out",
"String.format(\"%d %d %d\", min, max, sum)",
"String.format",
"String",
"\"%d %d %d\"",
"min",
"max",
"sum",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int[] datas = new int[Integer.parseInt(reader.readLine())];\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n long sum = 0;\n int c = 0;\n for (String str : reader.readLine().split(\" \")) {\n datas[c] = Integer.parseInt(str);\n c++;\n }\n for (int data : datas) {\n if (min > data)\n min = data;\n if (max < data)\n max = data;\n sum += data;\n }\n System.out.println(String.format(\"%d %d %d\", min, max, sum));\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int[] datas = new int[Integer.parseInt(reader.readLine())];\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n long sum = 0;\n int c = 0;\n for (String str : reader.readLine().split(\" \")) {\n datas[c] = Integer.parseInt(str);\n c++;\n }\n for (int data : datas) {\n if (min > data)\n min = data;\n if (max < data)\n max = data;\n sum += data;\n }\n System.out.println(String.format(\"%d %d %d\", min, max, sum));\n }\n\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int[] datas = new int[Integer.parseInt(reader.readLine())];
int min = Integer.MAX_VALUE;
int max = Integer.MIN_VALUE;
long sum = 0;
int c = 0;
for (String str : reader.readLine().split(" ")) {
datas[c] = Integer.parseInt(str);
c++;
}
for (int data : datas) {
if (min > data)
min = data;
if (max < data)
max = data;
sum += data;
}
System.out.println(String.format("%d %d %d", min, max, sum));
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
2,
13,
18,
13,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
17,
18,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
4,
18,
13,
17,
18,
13,
2,
13,
17,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
101,
8
],
[
101,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
24
],
[
24,
25
],
[
24,
26
],
[
11,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
39,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
11,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
11,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
63,
67
],
[
67,
68
],
[
67,
69
],
[
11,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
11,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
81,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
87,
89
],
[
11,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
9,
98
],
[
98,
99
],
[
0,
100
],
[
100,
101
],
[
100,
102
]
] | [
"import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint X = scan.nextInt();\n int[] n = new int[X];\n long sum = 0;\n for(int i = 0; i < X; i++){\n \tn[i] = scan.nextInt();\n \tsum = sum + n[i];\n }\n\n // ?????????????????????????????????\n Arrays.sort(n);\n\n // ?????????????????????\n System.out.print(String.format(\"%d\", n[0]));\n System.out.print(\" \");\n System.out.print(String.format(\"%d\", n[X-1]));\n System.out.println(\" \" + sum);\n\t}\n\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint X = scan.nextInt();\n int[] n = new int[X];\n long sum = 0;\n for(int i = 0; i < X; i++){\n \tn[i] = scan.nextInt();\n \tsum = sum + n[i];\n }\n\n // ?????????????????????????????????\n Arrays.sort(n);\n\n // ?????????????????????\n System.out.print(String.format(\"%d\", n[0]));\n System.out.print(\" \");\n System.out.print(String.format(\"%d\", n[X-1]));\n System.out.println(\" \" + sum);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint X = scan.nextInt();\n int[] n = new int[X];\n long sum = 0;\n for(int i = 0; i < X; i++){\n \tn[i] = scan.nextInt();\n \tsum = sum + n[i];\n }\n\n // ?????????????????????????????????\n Arrays.sort(n);\n\n // ?????????????????????\n System.out.print(String.format(\"%d\", n[0]));\n System.out.print(\" \");\n System.out.print(String.format(\"%d\", n[X-1]));\n System.out.println(\" \" + sum);\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint X = scan.nextInt();\n int[] n = new int[X];\n long sum = 0;\n for(int i = 0; i < X; i++){\n \tn[i] = scan.nextInt();\n \tsum = sum + n[i];\n }\n\n // ?????????????????????????????????\n Arrays.sort(n);\n\n // ?????????????????????\n System.out.print(String.format(\"%d\", n[0]));\n System.out.print(\" \");\n System.out.print(String.format(\"%d\", n[X-1]));\n System.out.println(\" \" + sum);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int X = scan.nextInt();",
"X",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[] n = new int[X];",
"n",
"new int[X]",
"X",
"long sum = 0;",
"sum",
"0",
"for(int i = 0; i < X; i++){\n \tn[i] = scan.nextInt();\n \tsum = sum + n[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < X",
"i",
"X",
"i++",
"i++",
"i",
"{\n \tn[i] = scan.nextInt();\n \tsum = sum + n[i];\n }",
"{\n \tn[i] = scan.nextInt();\n \tsum = sum + n[i];\n }",
"n[i] = scan.nextInt()",
"n[i]",
"n",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"sum = sum + n[i]",
"sum",
"sum + n[i]",
"sum",
"n[i]",
"n",
"i",
"Arrays.sort(n)",
"Arrays.sort",
"Arrays",
"n",
"System.out.print(String.format(\"%d\", n[0]))",
"System.out.print",
"System.out",
"System",
"System.out",
"String.format(\"%d\", n[0])",
"String.format",
"String",
"\"%d\"",
"n[0]",
"n",
"0",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.print(String.format(\"%d\", n[X-1]))",
"System.out.print",
"System.out",
"System",
"System.out",
"String.format(\"%d\", n[X-1])",
"String.format",
"String",
"\"%d\"",
"n[X-1]",
"n",
"X-1",
"X",
"1",
"System.out.println(\" \" + sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"\" \" + sum",
"\" \"",
"sum",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint X = scan.nextInt();\n int[] n = new int[X];\n long sum = 0;\n for(int i = 0; i < X; i++){\n \tn[i] = scan.nextInt();\n \tsum = sum + n[i];\n }\n\n // ?????????????????????????????????\n Arrays.sort(n);\n\n // ?????????????????????\n System.out.print(String.format(\"%d\", n[0]));\n System.out.print(\" \");\n System.out.print(String.format(\"%d\", n[X-1]));\n System.out.println(\" \" + sum);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint X = scan.nextInt();\n int[] n = new int[X];\n long sum = 0;\n for(int i = 0; i < X; i++){\n \tn[i] = scan.nextInt();\n \tsum = sum + n[i];\n }\n\n // ?????????????????????????????????\n Arrays.sort(n);\n\n // ?????????????????????\n System.out.print(String.format(\"%d\", n[0]));\n System.out.print(\" \");\n System.out.print(String.format(\"%d\", n[X-1]));\n System.out.println(\" \" + sum);\n\t}\n\n}",
"Main"
] | import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner scan = new Scanner(System.in);
int X = scan.nextInt();
int[] n = new int[X];
long sum = 0;
for(int i = 0; i < X; i++){
n[i] = scan.nextInt();
sum = sum + n[i];
}
// ?????????????????????????????????
Arrays.sort(n);
// ?????????????????????
System.out.print(String.format("%d", n[0]));
System.out.print(" ");
System.out.print(String.format("%d", n[X-1]));
System.out.println(" " + sum);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
41,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
13,
18,
13,
13,
30,
0,
13,
18,
13,
13,
41,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
13,
18,
13,
13,
30,
0,
13,
18,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
18,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
150,
5
],
[
150,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
26,
27
],
[
26,
28
],
[
21,
29
],
[
29,
30
],
[
30,
31
],
[
21,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
8,
41
],
[
41,
42
],
[
42,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
49,
59
],
[
59,
60
],
[
60,
61
],
[
49,
62
],
[
63,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
64,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
8,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
8,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
88,
90
],
[
81,
91
],
[
91,
92
],
[
92,
93
],
[
81,
94
],
[
95,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
99,
101
],
[
96,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
105,
107
],
[
8,
108
],
[
108,
109
],
[
108,
110
],
[
8,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
118,
120
],
[
111,
121
],
[
121,
122
],
[
122,
123
],
[
111,
124
],
[
125,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
130,
132
],
[
8,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
133,
138
],
[
141,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
139,
145
],
[
141,
146
],
[
6,
147
],
[
147,
148
],
[
0,
149
],
[
149,
150
],
[
149,
151
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\n\t\tint[] ary = new int[n];\n\n\t\tfor(int i = 0; i < n; i++){\n\n\t\t\tary[i] = scan.nextInt();\n\t\t}\n\n\t\tscan.close();\n\n\t\tint intMax = ary[0];\n\t\t//?????§?????????\n\t\tfor(int i = 0; i < ary.length; i++){\n\n\t\t\tif(intMax < ary[i]){\n\n\t\t\t\tintMax = ary[i];\n\t\t\t}\n\t\t}\n\n\n\t\tint intMin = ary[0];\n\t\t//????°??????????\n\t\tfor(int i = 0; i < ary.length; i++){\n\n\t\t\tif(intMin > ary[i]){\n\n\t\t\t\tintMin = ary[i];\n\t\t\t}\n\t\t}\n\n\t\tlong dbSum = 0;\n\t\t//????¨???????\n\t\tfor(int i = 0; i < ary.length; i++){\n\n\t\t\tdbSum = dbSum + ary[i];\n\n\t\t\t//System.out.println(\"[\" + i + \"]\" + \"intSum: \" + intSum + \" ary:\" + ary[i]);\n\t\t}\n\n\n\t\tSystem.out.println(intMin + \" \" + intMax + \" \" + dbSum);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\n\t\tint[] ary = new int[n];\n\n\t\tfor(int i = 0; i < n; i++){\n\n\t\t\tary[i] = scan.nextInt();\n\t\t}\n\n\t\tscan.close();\n\n\t\tint intMax = ary[0];\n\t\t//?????§?????????\n\t\tfor(int i = 0; i < ary.length; i++){\n\n\t\t\tif(intMax < ary[i]){\n\n\t\t\t\tintMax = ary[i];\n\t\t\t}\n\t\t}\n\n\n\t\tint intMin = ary[0];\n\t\t//????°??????????\n\t\tfor(int i = 0; i < ary.length; i++){\n\n\t\t\tif(intMin > ary[i]){\n\n\t\t\t\tintMin = ary[i];\n\t\t\t}\n\t\t}\n\n\t\tlong dbSum = 0;\n\t\t//????¨???????\n\t\tfor(int i = 0; i < ary.length; i++){\n\n\t\t\tdbSum = dbSum + ary[i];\n\n\t\t\t//System.out.println(\"[\" + i + \"]\" + \"intSum: \" + intSum + \" ary:\" + ary[i]);\n\t\t}\n\n\n\t\tSystem.out.println(intMin + \" \" + intMax + \" \" + dbSum);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\n\t\tint[] ary = new int[n];\n\n\t\tfor(int i = 0; i < n; i++){\n\n\t\t\tary[i] = scan.nextInt();\n\t\t}\n\n\t\tscan.close();\n\n\t\tint intMax = ary[0];\n\t\t//?????§?????????\n\t\tfor(int i = 0; i < ary.length; i++){\n\n\t\t\tif(intMax < ary[i]){\n\n\t\t\t\tintMax = ary[i];\n\t\t\t}\n\t\t}\n\n\n\t\tint intMin = ary[0];\n\t\t//????°??????????\n\t\tfor(int i = 0; i < ary.length; i++){\n\n\t\t\tif(intMin > ary[i]){\n\n\t\t\t\tintMin = ary[i];\n\t\t\t}\n\t\t}\n\n\t\tlong dbSum = 0;\n\t\t//????¨???????\n\t\tfor(int i = 0; i < ary.length; i++){\n\n\t\t\tdbSum = dbSum + ary[i];\n\n\t\t\t//System.out.println(\"[\" + i + \"]\" + \"intSum: \" + intSum + \" ary:\" + ary[i]);\n\t\t}\n\n\n\t\tSystem.out.println(intMin + \" \" + intMax + \" \" + dbSum);\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\n\t\tint[] ary = new int[n];\n\n\t\tfor(int i = 0; i < n; i++){\n\n\t\t\tary[i] = scan.nextInt();\n\t\t}\n\n\t\tscan.close();\n\n\t\tint intMax = ary[0];\n\t\t//?????§?????????\n\t\tfor(int i = 0; i < ary.length; i++){\n\n\t\t\tif(intMax < ary[i]){\n\n\t\t\t\tintMax = ary[i];\n\t\t\t}\n\t\t}\n\n\n\t\tint intMin = ary[0];\n\t\t//????°??????????\n\t\tfor(int i = 0; i < ary.length; i++){\n\n\t\t\tif(intMin > ary[i]){\n\n\t\t\t\tintMin = ary[i];\n\t\t\t}\n\t\t}\n\n\t\tlong dbSum = 0;\n\t\t//????¨???????\n\t\tfor(int i = 0; i < ary.length; i++){\n\n\t\t\tdbSum = dbSum + ary[i];\n\n\t\t\t//System.out.println(\"[\" + i + \"]\" + \"intSum: \" + intSum + \" ary:\" + ary[i]);\n\t\t}\n\n\n\t\tSystem.out.println(intMin + \" \" + intMax + \" \" + dbSum);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[] ary = new int[n];",
"ary",
"new int[n]",
"n",
"for(int i = 0; i < n; i++){\n\n\t\t\tary[i] = scan.nextInt();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\n\t\t\tary[i] = scan.nextInt();\n\t\t}",
"{\n\n\t\t\tary[i] = scan.nextInt();\n\t\t}",
"ary[i] = scan.nextInt()",
"ary[i]",
"ary",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"scan.close()",
"scan.close",
"scan",
"int intMax = ary[0];",
"intMax",
"ary[0]",
"ary",
"0",
"for(int i = 0; i < ary.length; i++){\n\n\t\t\tif(intMax < ary[i]){\n\n\t\t\t\tintMax = ary[i];\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < ary.length",
"i",
"ary.length",
"ary",
"ary.length",
"i++",
"i++",
"i",
"{\n\n\t\t\tif(intMax < ary[i]){\n\n\t\t\t\tintMax = ary[i];\n\t\t\t}\n\t\t}",
"{\n\n\t\t\tif(intMax < ary[i]){\n\n\t\t\t\tintMax = ary[i];\n\t\t\t}\n\t\t}",
"if(intMax < ary[i]){\n\n\t\t\t\tintMax = ary[i];\n\t\t\t}",
"intMax < ary[i]",
"intMax",
"ary[i]",
"ary",
"i",
"{\n\n\t\t\t\tintMax = ary[i];\n\t\t\t}",
"intMax = ary[i]",
"intMax",
"ary[i]",
"ary",
"i",
"int intMin = ary[0];",
"intMin",
"ary[0]",
"ary",
"0",
"for(int i = 0; i < ary.length; i++){\n\n\t\t\tif(intMin > ary[i]){\n\n\t\t\t\tintMin = ary[i];\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < ary.length",
"i",
"ary.length",
"ary",
"ary.length",
"i++",
"i++",
"i",
"{\n\n\t\t\tif(intMin > ary[i]){\n\n\t\t\t\tintMin = ary[i];\n\t\t\t}\n\t\t}",
"{\n\n\t\t\tif(intMin > ary[i]){\n\n\t\t\t\tintMin = ary[i];\n\t\t\t}\n\t\t}",
"if(intMin > ary[i]){\n\n\t\t\t\tintMin = ary[i];\n\t\t\t}",
"intMin > ary[i]",
"intMin",
"ary[i]",
"ary",
"i",
"{\n\n\t\t\t\tintMin = ary[i];\n\t\t\t}",
"intMin = ary[i]",
"intMin",
"ary[i]",
"ary",
"i",
"long dbSum = 0;",
"dbSum",
"0",
"for(int i = 0; i < ary.length; i++){\n\n\t\t\tdbSum = dbSum + ary[i];\n\n\t\t\t//System.out.println(\"[\" + i + \"]\" + \"intSum: \" + intSum + \" ary:\" + ary[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < ary.length",
"i",
"ary.length",
"ary",
"ary.length",
"i++",
"i++",
"i",
"{\n\n\t\t\tdbSum = dbSum + ary[i];\n\n\t\t\t//System.out.println(\"[\" + i + \"]\" + \"intSum: \" + intSum + \" ary:\" + ary[i]);\n\t\t}",
"{\n\n\t\t\tdbSum = dbSum + ary[i];\n\n\t\t\t//System.out.println(\"[\" + i + \"]\" + \"intSum: \" + intSum + \" ary:\" + ary[i]);\n\t\t}",
"dbSum = dbSum + ary[i]",
"dbSum",
"dbSum + ary[i]",
"dbSum",
"ary[i]",
"ary",
"i",
"System.out.println(intMin + \" \" + intMax + \" \" + dbSum)",
"System.out.println",
"System.out",
"System",
"System.out",
"intMin + \" \" + intMax + \" \" + dbSum",
"\" \"",
"intMax",
"intMin + \" \" + intMax + \" \" + dbSum",
"intMin",
"\" \"",
"intMax",
"\" \"",
"dbSum",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\n\t\tint[] ary = new int[n];\n\n\t\tfor(int i = 0; i < n; i++){\n\n\t\t\tary[i] = scan.nextInt();\n\t\t}\n\n\t\tscan.close();\n\n\t\tint intMax = ary[0];\n\t\t//?????§?????????\n\t\tfor(int i = 0; i < ary.length; i++){\n\n\t\t\tif(intMax < ary[i]){\n\n\t\t\t\tintMax = ary[i];\n\t\t\t}\n\t\t}\n\n\n\t\tint intMin = ary[0];\n\t\t//????°??????????\n\t\tfor(int i = 0; i < ary.length; i++){\n\n\t\t\tif(intMin > ary[i]){\n\n\t\t\t\tintMin = ary[i];\n\t\t\t}\n\t\t}\n\n\t\tlong dbSum = 0;\n\t\t//????¨???????\n\t\tfor(int i = 0; i < ary.length; i++){\n\n\t\t\tdbSum = dbSum + ary[i];\n\n\t\t\t//System.out.println(\"[\" + i + \"]\" + \"intSum: \" + intSum + \" ary:\" + ary[i]);\n\t\t}\n\n\n\t\tSystem.out.println(intMin + \" \" + intMax + \" \" + dbSum);\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\n\t\tint[] ary = new int[n];\n\n\t\tfor(int i = 0; i < n; i++){\n\n\t\t\tary[i] = scan.nextInt();\n\t\t}\n\n\t\tscan.close();\n\n\t\tint intMax = ary[0];\n\t\t//?????§?????????\n\t\tfor(int i = 0; i < ary.length; i++){\n\n\t\t\tif(intMax < ary[i]){\n\n\t\t\t\tintMax = ary[i];\n\t\t\t}\n\t\t}\n\n\n\t\tint intMin = ary[0];\n\t\t//????°??????????\n\t\tfor(int i = 0; i < ary.length; i++){\n\n\t\t\tif(intMin > ary[i]){\n\n\t\t\t\tintMin = ary[i];\n\t\t\t}\n\t\t}\n\n\t\tlong dbSum = 0;\n\t\t//????¨???????\n\t\tfor(int i = 0; i < ary.length; i++){\n\n\t\t\tdbSum = dbSum + ary[i];\n\n\t\t\t//System.out.println(\"[\" + i + \"]\" + \"intSum: \" + intSum + \" ary:\" + ary[i]);\n\t\t}\n\n\n\t\tSystem.out.println(intMin + \" \" + intMax + \" \" + dbSum);\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int[] ary = new int[n];
for(int i = 0; i < n; i++){
ary[i] = scan.nextInt();
}
scan.close();
int intMax = ary[0];
//?????§?????????
for(int i = 0; i < ary.length; i++){
if(intMax < ary[i]){
intMax = ary[i];
}
}
int intMin = ary[0];
//????°??????????
for(int i = 0; i < ary.length; i++){
if(intMin > ary[i]){
intMin = ary[i];
}
}
long dbSum = 0;
//????¨???????
for(int i = 0; i < ary.length; i++){
dbSum = dbSum + ary[i];
//System.out.println("[" + i + "]" + "intSum: " + intSum + " ary:" + ary[i]);
}
System.out.println(intMin + " " + intMax + " " + dbSum);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
13,
41,
13,
13,
41,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
14,
2,
13,
13,
30,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
85,
5
],
[
85,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
43,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
43,
65
],
[
65,
66
],
[
65,
67
],
[
8,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
76,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
74,
80
],
[
76,
81
],
[
6,
82
],
[
82,
83
],
[
0,
84
],
[
84,
85
],
[
84,
86
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\t\n\t\tint a = s.nextInt();\n\t\tint min = a;\n\t\tint max = a;\n\t\tlong sum = a;\n\t\t\n\t\tfor(int i=2; i<=n; i++){\n\t\t\ta = s.nextInt();\n\t\t\tif(a < min){\n\t\t\t\tmin = a;\n\t\t\t}\n\t\t\tif(a > max){\n\t\t\t\tmax = a;\n\t\t\t}\n\t\t\tsum += a;\n\t\t}\n\t\t\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\t\n\t\tint a = s.nextInt();\n\t\tint min = a;\n\t\tint max = a;\n\t\tlong sum = a;\n\t\t\n\t\tfor(int i=2; i<=n; i++){\n\t\t\ta = s.nextInt();\n\t\t\tif(a < min){\n\t\t\t\tmin = a;\n\t\t\t}\n\t\t\tif(a > max){\n\t\t\t\tmax = a;\n\t\t\t}\n\t\t\tsum += a;\n\t\t}\n\t\t\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\t\n\t\tint a = s.nextInt();\n\t\tint min = a;\n\t\tint max = a;\n\t\tlong sum = a;\n\t\t\n\t\tfor(int i=2; i<=n; i++){\n\t\t\ta = s.nextInt();\n\t\t\tif(a < min){\n\t\t\t\tmin = a;\n\t\t\t}\n\t\t\tif(a > max){\n\t\t\t\tmax = a;\n\t\t\t}\n\t\t\tsum += a;\n\t\t}\n\t\t\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t\n\t}",
"main",
"{\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\t\n\t\tint a = s.nextInt();\n\t\tint min = a;\n\t\tint max = a;\n\t\tlong sum = a;\n\t\t\n\t\tfor(int i=2; i<=n; i++){\n\t\t\ta = s.nextInt();\n\t\t\tif(a < min){\n\t\t\t\tmin = a;\n\t\t\t}\n\t\t\tif(a > max){\n\t\t\t\tmax = a;\n\t\t\t}\n\t\t\tsum += a;\n\t\t}\n\t\t\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t\n\t}",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int n = s.nextInt();",
"n",
"s.nextInt()",
"s.nextInt",
"s",
"int a = s.nextInt();",
"a",
"s.nextInt()",
"s.nextInt",
"s",
"int min = a;",
"min",
"a",
"int max = a;",
"max",
"a",
"long sum = a;",
"sum",
"a",
"for(int i=2; i<=n; i++){\n\t\t\ta = s.nextInt();\n\t\t\tif(a < min){\n\t\t\t\tmin = a;\n\t\t\t}\n\t\t\tif(a > max){\n\t\t\t\tmax = a;\n\t\t\t}\n\t\t\tsum += a;\n\t\t}",
"int i=2;",
"int i=2;",
"i",
"2",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\ta = s.nextInt();\n\t\t\tif(a < min){\n\t\t\t\tmin = a;\n\t\t\t}\n\t\t\tif(a > max){\n\t\t\t\tmax = a;\n\t\t\t}\n\t\t\tsum += a;\n\t\t}",
"{\n\t\t\ta = s.nextInt();\n\t\t\tif(a < min){\n\t\t\t\tmin = a;\n\t\t\t}\n\t\t\tif(a > max){\n\t\t\t\tmax = a;\n\t\t\t}\n\t\t\tsum += a;\n\t\t}",
"a = s.nextInt()",
"a",
"s.nextInt()",
"s.nextInt",
"s",
"if(a < min){\n\t\t\t\tmin = a;\n\t\t\t}",
"a < min",
"a",
"min",
"{\n\t\t\t\tmin = a;\n\t\t\t}",
"min = a",
"min",
"a",
"if(a > max){\n\t\t\t\tmax = a;\n\t\t\t}",
"a > max",
"a",
"max",
"{\n\t\t\t\tmax = a;\n\t\t\t}",
"max = a",
"max",
"a",
"sum += a",
"sum",
"a",
"System.out.println(min + \" \" + max + \" \" + sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min + \" \" + max + \" \" + sum",
"\" \"",
"max",
"min + \" \" + max + \" \" + sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\t\n\t\tint a = s.nextInt();\n\t\tint min = a;\n\t\tint max = a;\n\t\tlong sum = a;\n\t\t\n\t\tfor(int i=2; i<=n; i++){\n\t\t\ta = s.nextInt();\n\t\t\tif(a < min){\n\t\t\t\tmin = a;\n\t\t\t}\n\t\t\tif(a > max){\n\t\t\t\tmax = a;\n\t\t\t}\n\t\t\tsum += a;\n\t\t}\n\t\t\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\t\n\t\tint a = s.nextInt();\n\t\tint min = a;\n\t\tint max = a;\n\t\tlong sum = a;\n\t\t\n\t\tfor(int i=2; i<=n; i++){\n\t\t\ta = s.nextInt();\n\t\t\tif(a < min){\n\t\t\t\tmin = a;\n\t\t\t}\n\t\t\tif(a > max){\n\t\t\t\tmax = a;\n\t\t\t}\n\t\t\tsum += a;\n\t\t}\n\t\t\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int n = s.nextInt();
int a = s.nextInt();
int min = a;
int max = a;
long sum = a;
for(int i=2; i<=n; i++){
a = s.nextInt();
if(a < min){
min = a;
}
if(a > max){
max = a;
}
sum += a;
}
System.out.println(min + " " + max + " " + sum);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
4,
18,
18,
13,
13,
17,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
79,
5
],
[
79,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
42,
48
],
[
48,
49
],
[
48,
50
],
[
42,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
42,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
8,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
67,
73
],
[
67,
74
],
[
67,
75
],
[
6,
76
],
[
76,
77
],
[
0,
78
],
[
78,
79
],
[
78,
80
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n long N = sc.nextLong();\n\n long min = Long.MAX_VALUE;\n long max = Long.MIN_VALUE;\n long sum = 0;\n for (long i = 0; i < N; i++) {\n long a = sc.nextLong();\n\n sum += a;\n\n if (min > a) {\n min = a;\n }\n if (max < a) {\n max = a;\n }\n }\n\n System.out.printf(\"%d %d %d\\n\", min ,max, sum);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n long N = sc.nextLong();\n\n long min = Long.MAX_VALUE;\n long max = Long.MIN_VALUE;\n long sum = 0;\n for (long i = 0; i < N; i++) {\n long a = sc.nextLong();\n\n sum += a;\n\n if (min > a) {\n min = a;\n }\n if (max < a) {\n max = a;\n }\n }\n\n System.out.printf(\"%d %d %d\\n\", min ,max, sum);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n long N = sc.nextLong();\n\n long min = Long.MAX_VALUE;\n long max = Long.MIN_VALUE;\n long sum = 0;\n for (long i = 0; i < N; i++) {\n long a = sc.nextLong();\n\n sum += a;\n\n if (min > a) {\n min = a;\n }\n if (max < a) {\n max = a;\n }\n }\n\n System.out.printf(\"%d %d %d\\n\", min ,max, sum);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n long N = sc.nextLong();\n\n long min = Long.MAX_VALUE;\n long max = Long.MIN_VALUE;\n long sum = 0;\n for (long i = 0; i < N; i++) {\n long a = sc.nextLong();\n\n sum += a;\n\n if (min > a) {\n min = a;\n }\n if (max < a) {\n max = a;\n }\n }\n\n System.out.printf(\"%d %d %d\\n\", min ,max, sum);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long N = sc.nextLong();",
"N",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long min = Long.MAX_VALUE;",
"min",
"Long.MAX_VALUE",
"Long",
"Long.MAX_VALUE",
"long max = Long.MIN_VALUE;",
"max",
"Long.MIN_VALUE",
"Long",
"Long.MIN_VALUE",
"long sum = 0;",
"sum",
"0",
"for (long i = 0; i < N; i++) {\n long a = sc.nextLong();\n\n sum += a;\n\n if (min > a) {\n min = a;\n }\n if (max < a) {\n max = a;\n }\n }",
"long i = 0;",
"long i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n long a = sc.nextLong();\n\n sum += a;\n\n if (min > a) {\n min = a;\n }\n if (max < a) {\n max = a;\n }\n }",
"{\n long a = sc.nextLong();\n\n sum += a;\n\n if (min > a) {\n min = a;\n }\n if (max < a) {\n max = a;\n }\n }",
"long a = sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"sum += a",
"sum",
"a",
"if (min > a) {\n min = a;\n }",
"min > a",
"min",
"a",
"{\n min = a;\n }",
"min = a",
"min",
"a",
"if (max < a) {\n max = a;\n }",
"max < a",
"max",
"a",
"{\n max = a;\n }",
"max = a",
"max",
"a",
"System.out.printf(\"%d %d %d\\n\", min ,max, sum)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d %d %d\\n\"",
"min",
"max",
"sum",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n long N = sc.nextLong();\n\n long min = Long.MAX_VALUE;\n long max = Long.MIN_VALUE;\n long sum = 0;\n for (long i = 0; i < N; i++) {\n long a = sc.nextLong();\n\n sum += a;\n\n if (min > a) {\n min = a;\n }\n if (max < a) {\n max = a;\n }\n }\n\n System.out.printf(\"%d %d %d\\n\", min ,max, sum);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n long N = sc.nextLong();\n\n long min = Long.MAX_VALUE;\n long max = Long.MIN_VALUE;\n long sum = 0;\n for (long i = 0; i < N; i++) {\n long a = sc.nextLong();\n\n sum += a;\n\n if (min > a) {\n min = a;\n }\n if (max < a) {\n max = a;\n }\n }\n\n System.out.printf(\"%d %d %d\\n\", min ,max, sum);\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long N = sc.nextLong();
long min = Long.MAX_VALUE;
long max = Long.MIN_VALUE;
long sum = 0;
for (long i = 0; i < N; i++) {
long a = sc.nextLong();
sum += a;
if (min > a) {
min = a;
}
if (max < a) {
max = a;
}
}
System.out.printf("%d %d %d\n", min ,max, sum);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
0,
13,
20,
17,
41,
13,
4,
18,
13,
41,
13,
41,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
18,
13,
17,
41,
13,
18,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
13,
18,
13,
13,
30,
0,
13,
18,
13,
13,
14,
2,
13,
18,
13,
13,
30,
0,
13,
18,
13,
13,
0,
13,
2,
13,
18,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
119,
5
],
[
119,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
8,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
8,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
8,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
58,
69
],
[
70,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
74,
76
],
[
71,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
80,
82
],
[
70,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
86,
88
],
[
83,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
92,
94
],
[
70,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
99,
101
],
[
8,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
110,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
108,
114
],
[
110,
115
],
[
6,
116
],
[
116,
117
],
[
0,
118
],
[
118,
119
],
[
118,
120
]
] | [
"import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[] a;\n\t\ta = new int [10020];\n\t\tint n = scan.nextInt();\n\t\tint i;\n\t\tlong sum = 0;\n\t\tfor(i = 1; i <= n; ++i){\n\t\t\ta[i] = scan.nextInt();\n\t\t}\n\t\tint tmp = a[1];\n\t\tint tmp2 = a[1];\n\t\tfor(i = 1; i <= n; ++i){\n\t\t\tif(tmp <= a[i]){\n\t\t\t\ttmp = a[i];\n\t\t\t\t}\n\t\t\tif(tmp2 >= a[i]){\n\t\t\t\ttmp2 = a[i];\n\t\t\t}\n\t\t\tsum = sum + a[i];\n\t\t}\n\t\tSystem.out.println(tmp2+\" \"+tmp+\" \"+sum);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[] a;\n\t\ta = new int [10020];\n\t\tint n = scan.nextInt();\n\t\tint i;\n\t\tlong sum = 0;\n\t\tfor(i = 1; i <= n; ++i){\n\t\t\ta[i] = scan.nextInt();\n\t\t}\n\t\tint tmp = a[1];\n\t\tint tmp2 = a[1];\n\t\tfor(i = 1; i <= n; ++i){\n\t\t\tif(tmp <= a[i]){\n\t\t\t\ttmp = a[i];\n\t\t\t\t}\n\t\t\tif(tmp2 >= a[i]){\n\t\t\t\ttmp2 = a[i];\n\t\t\t}\n\t\t\tsum = sum + a[i];\n\t\t}\n\t\tSystem.out.println(tmp2+\" \"+tmp+\" \"+sum);\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[] a;\n\t\ta = new int [10020];\n\t\tint n = scan.nextInt();\n\t\tint i;\n\t\tlong sum = 0;\n\t\tfor(i = 1; i <= n; ++i){\n\t\t\ta[i] = scan.nextInt();\n\t\t}\n\t\tint tmp = a[1];\n\t\tint tmp2 = a[1];\n\t\tfor(i = 1; i <= n; ++i){\n\t\t\tif(tmp <= a[i]){\n\t\t\t\ttmp = a[i];\n\t\t\t\t}\n\t\t\tif(tmp2 >= a[i]){\n\t\t\t\ttmp2 = a[i];\n\t\t\t}\n\t\t\tsum = sum + a[i];\n\t\t}\n\t\tSystem.out.println(tmp2+\" \"+tmp+\" \"+sum);\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[] a;\n\t\ta = new int [10020];\n\t\tint n = scan.nextInt();\n\t\tint i;\n\t\tlong sum = 0;\n\t\tfor(i = 1; i <= n; ++i){\n\t\t\ta[i] = scan.nextInt();\n\t\t}\n\t\tint tmp = a[1];\n\t\tint tmp2 = a[1];\n\t\tfor(i = 1; i <= n; ++i){\n\t\t\tif(tmp <= a[i]){\n\t\t\t\ttmp = a[i];\n\t\t\t\t}\n\t\t\tif(tmp2 >= a[i]){\n\t\t\t\ttmp2 = a[i];\n\t\t\t}\n\t\t\tsum = sum + a[i];\n\t\t}\n\t\tSystem.out.println(tmp2+\" \"+tmp+\" \"+sum);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int[] a;",
"a",
"a = new int [10020]",
"a",
"new int [10020]",
"10020",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int i;",
"i",
"long sum = 0;",
"sum",
"0",
"for(i = 1; i <= n; ++i){\n\t\t\ta[i] = scan.nextInt();\n\t\t}",
"i = 1;",
"i = 1",
"i",
"1",
"i <= n",
"i",
"n",
"++i",
"++i",
"i",
"{\n\t\t\ta[i] = scan.nextInt();\n\t\t}",
"{\n\t\t\ta[i] = scan.nextInt();\n\t\t}",
"a[i] = scan.nextInt()",
"a[i]",
"a",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int tmp = a[1];",
"tmp",
"a[1]",
"a",
"1",
"int tmp2 = a[1];",
"tmp2",
"a[1]",
"a",
"1",
"for(i = 1; i <= n; ++i){\n\t\t\tif(tmp <= a[i]){\n\t\t\t\ttmp = a[i];\n\t\t\t\t}\n\t\t\tif(tmp2 >= a[i]){\n\t\t\t\ttmp2 = a[i];\n\t\t\t}\n\t\t\tsum = sum + a[i];\n\t\t}",
"i = 1;",
"i = 1",
"i",
"1",
"i <= n",
"i",
"n",
"++i",
"++i",
"i",
"{\n\t\t\tif(tmp <= a[i]){\n\t\t\t\ttmp = a[i];\n\t\t\t\t}\n\t\t\tif(tmp2 >= a[i]){\n\t\t\t\ttmp2 = a[i];\n\t\t\t}\n\t\t\tsum = sum + a[i];\n\t\t}",
"{\n\t\t\tif(tmp <= a[i]){\n\t\t\t\ttmp = a[i];\n\t\t\t\t}\n\t\t\tif(tmp2 >= a[i]){\n\t\t\t\ttmp2 = a[i];\n\t\t\t}\n\t\t\tsum = sum + a[i];\n\t\t}",
"if(tmp <= a[i]){\n\t\t\t\ttmp = a[i];\n\t\t\t\t}",
"tmp <= a[i]",
"tmp",
"a[i]",
"a",
"i",
"{\n\t\t\t\ttmp = a[i];\n\t\t\t\t}",
"tmp = a[i]",
"tmp",
"a[i]",
"a",
"i",
"if(tmp2 >= a[i]){\n\t\t\t\ttmp2 = a[i];\n\t\t\t}",
"tmp2 >= a[i]",
"tmp2",
"a[i]",
"a",
"i",
"{\n\t\t\t\ttmp2 = a[i];\n\t\t\t}",
"tmp2 = a[i]",
"tmp2",
"a[i]",
"a",
"i",
"sum = sum + a[i]",
"sum",
"sum + a[i]",
"sum",
"a[i]",
"a",
"i",
"System.out.println(tmp2+\" \"+tmp+\" \"+sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"tmp2+\" \"+tmp+\" \"+sum",
"\" \"",
"tmp",
"tmp2+\" \"+tmp+\" \"+sum",
"tmp2",
"\" \"",
"tmp",
"\" \"",
"sum",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[] a;\n\t\ta = new int [10020];\n\t\tint n = scan.nextInt();\n\t\tint i;\n\t\tlong sum = 0;\n\t\tfor(i = 1; i <= n; ++i){\n\t\t\ta[i] = scan.nextInt();\n\t\t}\n\t\tint tmp = a[1];\n\t\tint tmp2 = a[1];\n\t\tfor(i = 1; i <= n; ++i){\n\t\t\tif(tmp <= a[i]){\n\t\t\t\ttmp = a[i];\n\t\t\t\t}\n\t\t\tif(tmp2 >= a[i]){\n\t\t\t\ttmp2 = a[i];\n\t\t\t}\n\t\t\tsum = sum + a[i];\n\t\t}\n\t\tSystem.out.println(tmp2+\" \"+tmp+\" \"+sum);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[] a;\n\t\ta = new int [10020];\n\t\tint n = scan.nextInt();\n\t\tint i;\n\t\tlong sum = 0;\n\t\tfor(i = 1; i <= n; ++i){\n\t\t\ta[i] = scan.nextInt();\n\t\t}\n\t\tint tmp = a[1];\n\t\tint tmp2 = a[1];\n\t\tfor(i = 1; i <= n; ++i){\n\t\t\tif(tmp <= a[i]){\n\t\t\t\ttmp = a[i];\n\t\t\t\t}\n\t\t\tif(tmp2 >= a[i]){\n\t\t\t\ttmp2 = a[i];\n\t\t\t}\n\t\t\tsum = sum + a[i];\n\t\t}\n\t\tSystem.out.println(tmp2+\" \"+tmp+\" \"+sum);\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int[] a;
a = new int [10020];
int n = scan.nextInt();
int i;
long sum = 0;
for(i = 1; i <= n; ++i){
a[i] = scan.nextInt();
}
int tmp = a[1];
int tmp2 = a[1];
for(i = 1; i <= n; ++i){
if(tmp <= a[i]){
tmp = a[i];
}
if(tmp2 >= a[i]){
tmp2 = a[i];
}
sum = sum + a[i];
}
System.out.println(tmp2+" "+tmp+" "+sum);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
0,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
13,
17,
30,
0,
13,
18,
13,
13,
30,
14,
2,
13,
18,
13,
13,
30,
0,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
13,
17,
30,
0,
13,
18,
13,
13,
30,
14,
2,
18,
13,
13,
13,
30,
0,
13,
18,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
2,
13,
17,
13,
17,
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,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
51,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
53,
64
],
[
65,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
8,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
71,
79
],
[
79,
80
],
[
80,
81
],
[
71,
82
],
[
83,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
91,
93
],
[
84,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
98,
100
],
[
95,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
104,
106
],
[
8,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
112,
113
],
[
112,
114
],
[
107,
115
],
[
115,
116
],
[
116,
117
],
[
107,
118
],
[
119,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
127,
129
],
[
120,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
132,
136
],
[
131,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
140,
142
],
[
8,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
143,
148
],
[
152,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
151,
155
],
[
150,
156
],
[
149,
157
],
[
152,
158
],
[
6,
159
],
[
159,
160
]
] | [
"import java.util.Scanner;\n\nclass Main\n{\n\tpublic static void main ( String[] args ) {\n\t\tScanner sc = new Scanner ( System.in );\n\n\t\tint n = 0;\n\t\tint min = 0;\n\t\tint max = 0;\n\t\tlong sum = 0;\n\n\t\t// n??\\???\n\t\tn = sc.nextInt ();\n\n\t\tint[] a = new int[ n ];\n\n\t\t// a??\\???\n\t\tfor (int i = 0; i < n; i++ ) {\n\t\t\ta[ i ] = sc.nextInt ();\n\t\t}\n\n\t\t// ????¨??????????\n\t\tfor (int j = 0; j < n; j++ ) {\n\t\t\tsum += a[ j ];\n\t\t}\n\n\t\t// ?????§?????\\???\n\t\tfor (int x = 0; x < n; x++ ) {\n\t\t\tif ( x == 0 ) {\n\t\t\t\tmax = a[ x ];\n\t\t\t} else {\n\t\t\t\tif ( max < a[ x ] ) {\n\t\t\t\t\tmax = a[ x ];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// ????°??????????\n\t\tfor (int y = 0; y < n; y++ ) {\n\t\t\tif ( y == 0 ) {\n\t\t\t\tmin = a[ y ];\n\t\t\t} else {\n\t\t\t\tif ( a[ y ] < min ) {\n\t\t\t\t\tmin = a[ y ];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\n\t\tSystem.out.print ( min + \" \" + max + \" \" + sum + \"\\n\" );\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main\n{\n\tpublic static void main ( String[] args ) {\n\t\tScanner sc = new Scanner ( System.in );\n\n\t\tint n = 0;\n\t\tint min = 0;\n\t\tint max = 0;\n\t\tlong sum = 0;\n\n\t\t// n??\\???\n\t\tn = sc.nextInt ();\n\n\t\tint[] a = new int[ n ];\n\n\t\t// a??\\???\n\t\tfor (int i = 0; i < n; i++ ) {\n\t\t\ta[ i ] = sc.nextInt ();\n\t\t}\n\n\t\t// ????¨??????????\n\t\tfor (int j = 0; j < n; j++ ) {\n\t\t\tsum += a[ j ];\n\t\t}\n\n\t\t// ?????§?????\\???\n\t\tfor (int x = 0; x < n; x++ ) {\n\t\t\tif ( x == 0 ) {\n\t\t\t\tmax = a[ x ];\n\t\t\t} else {\n\t\t\t\tif ( max < a[ x ] ) {\n\t\t\t\t\tmax = a[ x ];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// ????°??????????\n\t\tfor (int y = 0; y < n; y++ ) {\n\t\t\tif ( y == 0 ) {\n\t\t\t\tmin = a[ y ];\n\t\t\t} else {\n\t\t\t\tif ( a[ y ] < min ) {\n\t\t\t\t\tmin = a[ y ];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\n\t\tSystem.out.print ( min + \" \" + max + \" \" + sum + \"\\n\" );\n\t}\n}",
"Main",
"public static void main ( String[] args ) {\n\t\tScanner sc = new Scanner ( System.in );\n\n\t\tint n = 0;\n\t\tint min = 0;\n\t\tint max = 0;\n\t\tlong sum = 0;\n\n\t\t// n??\\???\n\t\tn = sc.nextInt ();\n\n\t\tint[] a = new int[ n ];\n\n\t\t// a??\\???\n\t\tfor (int i = 0; i < n; i++ ) {\n\t\t\ta[ i ] = sc.nextInt ();\n\t\t}\n\n\t\t// ????¨??????????\n\t\tfor (int j = 0; j < n; j++ ) {\n\t\t\tsum += a[ j ];\n\t\t}\n\n\t\t// ?????§?????\\???\n\t\tfor (int x = 0; x < n; x++ ) {\n\t\t\tif ( x == 0 ) {\n\t\t\t\tmax = a[ x ];\n\t\t\t} else {\n\t\t\t\tif ( max < a[ x ] ) {\n\t\t\t\t\tmax = a[ x ];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// ????°??????????\n\t\tfor (int y = 0; y < n; y++ ) {\n\t\t\tif ( y == 0 ) {\n\t\t\t\tmin = a[ y ];\n\t\t\t} else {\n\t\t\t\tif ( a[ y ] < min ) {\n\t\t\t\t\tmin = a[ y ];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\n\t\tSystem.out.print ( min + \" \" + max + \" \" + sum + \"\\n\" );\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner ( System.in );\n\n\t\tint n = 0;\n\t\tint min = 0;\n\t\tint max = 0;\n\t\tlong sum = 0;\n\n\t\t// n??\\???\n\t\tn = sc.nextInt ();\n\n\t\tint[] a = new int[ n ];\n\n\t\t// a??\\???\n\t\tfor (int i = 0; i < n; i++ ) {\n\t\t\ta[ i ] = sc.nextInt ();\n\t\t}\n\n\t\t// ????¨??????????\n\t\tfor (int j = 0; j < n; j++ ) {\n\t\t\tsum += a[ j ];\n\t\t}\n\n\t\t// ?????§?????\\???\n\t\tfor (int x = 0; x < n; x++ ) {\n\t\t\tif ( x == 0 ) {\n\t\t\t\tmax = a[ x ];\n\t\t\t} else {\n\t\t\t\tif ( max < a[ x ] ) {\n\t\t\t\t\tmax = a[ x ];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// ????°??????????\n\t\tfor (int y = 0; y < n; y++ ) {\n\t\t\tif ( y == 0 ) {\n\t\t\t\tmin = a[ y ];\n\t\t\t} else {\n\t\t\t\tif ( a[ y ] < min ) {\n\t\t\t\t\tmin = a[ y ];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\n\t\tSystem.out.print ( min + \" \" + max + \" \" + sum + \"\\n\" );\n\t}",
"Scanner sc = new Scanner ( System.in );",
"sc",
"new Scanner ( System.in )",
"int n = 0;",
"n",
"0",
"int min = 0;",
"min",
"0",
"int max = 0;",
"max",
"0",
"long sum = 0;",
"sum",
"0",
"n = sc.nextInt ()",
"n",
"sc.nextInt ()",
"sc.nextInt",
"sc",
"int[] a = new int[ n ];",
"a",
"new int[ n ]",
"n",
"for (int i = 0; i < n; i++ ) {\n\t\t\ta[ i ] = sc.nextInt ();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\ta[ i ] = sc.nextInt ();\n\t\t}",
"{\n\t\t\ta[ i ] = sc.nextInt ();\n\t\t}",
"a[ i ] = sc.nextInt ()",
"a[ i ]",
"a",
"i",
"sc.nextInt ()",
"sc.nextInt",
"sc",
"for (int j = 0; j < n; j++ ) {\n\t\t\tsum += a[ j ];\n\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < n",
"j",
"n",
"j++",
"j++",
"j",
"{\n\t\t\tsum += a[ j ];\n\t\t}",
"{\n\t\t\tsum += a[ j ];\n\t\t}",
"sum += a[ j ]",
"sum",
"a[ j ]",
"a",
"j",
"for (int x = 0; x < n; x++ ) {\n\t\t\tif ( x == 0 ) {\n\t\t\t\tmax = a[ x ];\n\t\t\t} else {\n\t\t\t\tif ( max < a[ x ] ) {\n\t\t\t\t\tmax = a[ x ];\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x < n",
"x",
"n",
"x++",
"x++",
"x",
"{\n\t\t\tif ( x == 0 ) {\n\t\t\t\tmax = a[ x ];\n\t\t\t} else {\n\t\t\t\tif ( max < a[ x ] ) {\n\t\t\t\t\tmax = a[ x ];\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tif ( x == 0 ) {\n\t\t\t\tmax = a[ x ];\n\t\t\t} else {\n\t\t\t\tif ( max < a[ x ] ) {\n\t\t\t\t\tmax = a[ x ];\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"if ( x == 0 ) {\n\t\t\t\tmax = a[ x ];\n\t\t\t} else {\n\t\t\t\tif ( max < a[ x ] ) {\n\t\t\t\t\tmax = a[ x ];\n\t\t\t\t}\n\t\t\t}",
"x == 0",
"x",
"0",
"{\n\t\t\t\tmax = a[ x ];\n\t\t\t}",
"max = a[ x ]",
"max",
"a[ x ]",
"a",
"x",
"{\n\t\t\t\tif ( max < a[ x ] ) {\n\t\t\t\t\tmax = a[ x ];\n\t\t\t\t}\n\t\t\t}",
"if ( max < a[ x ] ) {\n\t\t\t\t\tmax = a[ x ];\n\t\t\t\t}",
"max < a[ x ]",
"max",
"a[ x ]",
"a",
"x",
"{\n\t\t\t\t\tmax = a[ x ];\n\t\t\t\t}",
"max = a[ x ]",
"max",
"a[ x ]",
"a",
"x",
"for (int y = 0; y < n; y++ ) {\n\t\t\tif ( y == 0 ) {\n\t\t\t\tmin = a[ y ];\n\t\t\t} else {\n\t\t\t\tif ( a[ y ] < min ) {\n\t\t\t\t\tmin = a[ y ];\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int y = 0;",
"int y = 0;",
"y",
"0",
"y < n",
"y",
"n",
"y++",
"y++",
"y",
"{\n\t\t\tif ( y == 0 ) {\n\t\t\t\tmin = a[ y ];\n\t\t\t} else {\n\t\t\t\tif ( a[ y ] < min ) {\n\t\t\t\t\tmin = a[ y ];\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tif ( y == 0 ) {\n\t\t\t\tmin = a[ y ];\n\t\t\t} else {\n\t\t\t\tif ( a[ y ] < min ) {\n\t\t\t\t\tmin = a[ y ];\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"if ( y == 0 ) {\n\t\t\t\tmin = a[ y ];\n\t\t\t} else {\n\t\t\t\tif ( a[ y ] < min ) {\n\t\t\t\t\tmin = a[ y ];\n\t\t\t\t}\n\t\t\t}",
"y == 0",
"y",
"0",
"{\n\t\t\t\tmin = a[ y ];\n\t\t\t}",
"min = a[ y ]",
"min",
"a[ y ]",
"a",
"y",
"{\n\t\t\t\tif ( a[ y ] < min ) {\n\t\t\t\t\tmin = a[ y ];\n\t\t\t\t}\n\t\t\t}",
"if ( a[ y ] < min ) {\n\t\t\t\t\tmin = a[ y ];\n\t\t\t\t}",
"a[ y ] < min",
"a[ y ]",
"a",
"y",
"min",
"{\n\t\t\t\t\tmin = a[ y ];\n\t\t\t\t}",
"min = a[ y ]",
"min",
"a[ y ]",
"a",
"y",
"System.out.print ( min + \" \" + max + \" \" + sum + \"\\n\" )",
"System.out.print",
"System.out",
"System",
"System.out",
"min + \" \" + max + \" \" + sum + \"\\n\"",
"sum",
"\" \"",
"max",
"min + \" \" + max + \" \" + sum + \"\\n\"",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"\"\\n\"",
"String[] args",
"args"
] | import java.util.Scanner;
class Main
{
public static void main ( String[] args ) {
Scanner sc = new Scanner ( System.in );
int n = 0;
int min = 0;
int max = 0;
long sum = 0;
// n??\???
n = sc.nextInt ();
int[] a = new int[ n ];
// a??\???
for (int i = 0; i < n; i++ ) {
a[ i ] = sc.nextInt ();
}
// ????¨??????????
for (int j = 0; j < n; j++ ) {
sum += a[ j ];
}
// ?????§?????\???
for (int x = 0; x < n; x++ ) {
if ( x == 0 ) {
max = a[ x ];
} else {
if ( max < a[ x ] ) {
max = a[ x ];
}
}
}
// ????°??????????
for (int y = 0; y < n; y++ ) {
if ( y == 0 ) {
min = a[ y ];
} else {
if ( a[ y ] < min ) {
min = a[ y ];
}
}
}
System.out.print ( min + " " + max + " " + sum + "\n" );
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
41,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
18,
13,
13,
41,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
18,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
18,
13,
13,
4,
18,
18,
13,
13,
17,
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
],
[
162,
11
],
[
162,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
28,
33
],
[
14,
34
],
[
34,
35
],
[
34,
36
],
[
14,
38
],
[
38,
39
],
[
38,
40
],
[
14,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
42,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
62,
63
],
[
62,
64
],
[
54,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
72,
73
],
[
72,
74
],
[
14,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
77,
79
],
[
14,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
80,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
95,
99
],
[
99,
100
],
[
99,
101
],
[
14,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
104,
106
],
[
14,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
112,
113
],
[
112,
114
],
[
107,
115
],
[
115,
116
],
[
116,
117
],
[
107,
118
],
[
119,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
122,
126
],
[
126,
127
],
[
126,
128
],
[
14,
129
],
[
129,
130
],
[
129,
131
],
[
14,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
137,
138
],
[
137,
139
],
[
132,
140
],
[
140,
141
],
[
141,
142
],
[
132,
143
],
[
144,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
147,
149
],
[
14,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
150,
155
],
[
150,
156
],
[
150,
157
],
[
150,
158
],
[
12,
159
],
[
159,
160
],
[
0,
161
],
[
161,
162
],
[
161,
163
]
] | [
"import java.io.IOException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n String line[] = br.readLine().split(\" \");\n int intArray[] = new int[n];\n\t\tlong longArray[] = new long[n];\n for (int i=0; i<n; i++){\n intArray[i] = Integer.parseInt(line[i]);\n\t\t\tlongArray[i] = Long.parseLong(line[i]);\n }\n\n int mi = Integer.MAX_VALUE;\n for (int i=0; i<n; i++){\n mi = Math.min(mi,intArray[i]);\n }\n \n int ma = Integer.MIN_VALUE;\n for (int i=0; i<n; i++){\n ma = Math.max(ma,intArray[i]);\n }\n \n long sum = 0;\n for (int i=0; i<n; i++){\n sum += longArray[i];\n }\n System.out.printf(\"%s %s %s\\n\", mi , ma, sum);\n }\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n String line[] = br.readLine().split(\" \");\n int intArray[] = new int[n];\n\t\tlong longArray[] = new long[n];\n for (int i=0; i<n; i++){\n intArray[i] = Integer.parseInt(line[i]);\n\t\t\tlongArray[i] = Long.parseLong(line[i]);\n }\n\n int mi = Integer.MAX_VALUE;\n for (int i=0; i<n; i++){\n mi = Math.min(mi,intArray[i]);\n }\n \n int ma = Integer.MIN_VALUE;\n for (int i=0; i<n; i++){\n ma = Math.max(ma,intArray[i]);\n }\n \n long sum = 0;\n for (int i=0; i<n; i++){\n sum += longArray[i];\n }\n System.out.printf(\"%s %s %s\\n\", mi , ma, sum);\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n String line[] = br.readLine().split(\" \");\n int intArray[] = new int[n];\n\t\tlong longArray[] = new long[n];\n for (int i=0; i<n; i++){\n intArray[i] = Integer.parseInt(line[i]);\n\t\t\tlongArray[i] = Long.parseLong(line[i]);\n }\n\n int mi = Integer.MAX_VALUE;\n for (int i=0; i<n; i++){\n mi = Math.min(mi,intArray[i]);\n }\n \n int ma = Integer.MIN_VALUE;\n for (int i=0; i<n; i++){\n ma = Math.max(ma,intArray[i]);\n }\n \n long sum = 0;\n for (int i=0; i<n; i++){\n sum += longArray[i];\n }\n System.out.printf(\"%s %s %s\\n\", mi , ma, sum);\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n String line[] = br.readLine().split(\" \");\n int intArray[] = new int[n];\n\t\tlong longArray[] = new long[n];\n for (int i=0; i<n; i++){\n intArray[i] = Integer.parseInt(line[i]);\n\t\t\tlongArray[i] = Long.parseLong(line[i]);\n }\n\n int mi = Integer.MAX_VALUE;\n for (int i=0; i<n; i++){\n mi = Math.min(mi,intArray[i]);\n }\n \n int ma = Integer.MIN_VALUE;\n for (int i=0; i<n; i++){\n ma = Math.max(ma,intArray[i]);\n }\n \n long sum = 0;\n for (int i=0; i<n; i++){\n sum += longArray[i];\n }\n System.out.printf(\"%s %s %s\\n\", mi , ma, sum);\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String line[] = br.readLine().split(\" \");",
"line",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int intArray[] = new int[n];",
"intArray",
"new int[n]",
"n",
"long longArray[] = new long[n];",
"longArray",
"new long[n]",
"n",
"for (int i=0; i<n; i++){\n intArray[i] = Integer.parseInt(line[i]);\n\t\t\tlongArray[i] = Long.parseLong(line[i]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n intArray[i] = Integer.parseInt(line[i]);\n\t\t\tlongArray[i] = Long.parseLong(line[i]);\n }",
"{\n intArray[i] = Integer.parseInt(line[i]);\n\t\t\tlongArray[i] = Long.parseLong(line[i]);\n }",
"intArray[i] = Integer.parseInt(line[i])",
"intArray[i]",
"intArray",
"i",
"Integer.parseInt(line[i])",
"Integer.parseInt",
"Integer",
"line[i]",
"line",
"i",
"longArray[i] = Long.parseLong(line[i])",
"longArray[i]",
"longArray",
"i",
"Long.parseLong(line[i])",
"Long.parseLong",
"Long",
"line[i]",
"line",
"i",
"int mi = Integer.MAX_VALUE;",
"mi",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"for (int i=0; i<n; i++){\n mi = Math.min(mi,intArray[i]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n mi = Math.min(mi,intArray[i]);\n }",
"{\n mi = Math.min(mi,intArray[i]);\n }",
"mi = Math.min(mi,intArray[i])",
"mi",
"Math.min(mi,intArray[i])",
"Math.min",
"Math",
"mi",
"intArray[i]",
"intArray",
"i",
"int ma = Integer.MIN_VALUE;",
"ma",
"Integer.MIN_VALUE",
"Integer",
"Integer.MIN_VALUE",
"for (int i=0; i<n; i++){\n ma = Math.max(ma,intArray[i]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n ma = Math.max(ma,intArray[i]);\n }",
"{\n ma = Math.max(ma,intArray[i]);\n }",
"ma = Math.max(ma,intArray[i])",
"ma",
"Math.max(ma,intArray[i])",
"Math.max",
"Math",
"ma",
"intArray[i]",
"intArray",
"i",
"long sum = 0;",
"sum",
"0",
"for (int i=0; i<n; i++){\n sum += longArray[i];\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n sum += longArray[i];\n }",
"{\n sum += longArray[i];\n }",
"sum += longArray[i]",
"sum",
"longArray[i]",
"longArray",
"i",
"System.out.printf(\"%s %s %s\\n\", mi , ma, sum)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%s %s %s\\n\"",
"mi",
"ma",
"sum",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n String line[] = br.readLine().split(\" \");\n int intArray[] = new int[n];\n\t\tlong longArray[] = new long[n];\n for (int i=0; i<n; i++){\n intArray[i] = Integer.parseInt(line[i]);\n\t\t\tlongArray[i] = Long.parseLong(line[i]);\n }\n\n int mi = Integer.MAX_VALUE;\n for (int i=0; i<n; i++){\n mi = Math.min(mi,intArray[i]);\n }\n \n int ma = Integer.MIN_VALUE;\n for (int i=0; i<n; i++){\n ma = Math.max(ma,intArray[i]);\n }\n \n long sum = 0;\n for (int i=0; i<n; i++){\n sum += longArray[i];\n }\n System.out.printf(\"%s %s %s\\n\", mi , ma, sum);\n }\n}",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n String line[] = br.readLine().split(\" \");\n int intArray[] = new int[n];\n\t\tlong longArray[] = new long[n];\n for (int i=0; i<n; i++){\n intArray[i] = Integer.parseInt(line[i]);\n\t\t\tlongArray[i] = Long.parseLong(line[i]);\n }\n\n int mi = Integer.MAX_VALUE;\n for (int i=0; i<n; i++){\n mi = Math.min(mi,intArray[i]);\n }\n \n int ma = Integer.MIN_VALUE;\n for (int i=0; i<n; i++){\n ma = Math.max(ma,intArray[i]);\n }\n \n long sum = 0;\n for (int i=0; i<n; i++){\n sum += longArray[i];\n }\n System.out.printf(\"%s %s %s\\n\", mi , ma, sum);\n }\n}",
"Main"
] | import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
String line[] = br.readLine().split(" ");
int intArray[] = new int[n];
long longArray[] = new long[n];
for (int i=0; i<n; i++){
intArray[i] = Integer.parseInt(line[i]);
longArray[i] = Long.parseLong(line[i]);
}
int mi = Integer.MAX_VALUE;
for (int i=0; i<n; i++){
mi = Math.min(mi,intArray[i]);
}
int ma = Integer.MIN_VALUE;
for (int i=0; i<n; i++){
ma = Math.max(ma,intArray[i]);
}
long sum = 0;
for (int i=0; i<n; i++){
sum += longArray[i];
}
System.out.printf("%s %s %s\n", mi , ma, sum);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
5,
13,
30,
4,
18,
18,
13,
13,
17,
30,
41,
13,
20,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
13,
0,
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,
13,
30,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
41,
13,
20,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
4,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
152,
14
],
[
152,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
24,
26
],
[
17,
27
],
[
27,
28
],
[
27,
29
],
[
17,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
30,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
30,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
49,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
49,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
49,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
49,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
80,
81
],
[
80,
82
],
[
49,
83
],
[
83,
84
],
[
83,
85
],
[
49,
86
],
[
86,
87
],
[
86,
88
],
[
49,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
89,
97
],
[
97,
98
],
[
98,
99
],
[
89,
100
],
[
101,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
107,
108
],
[
107,
109
],
[
101,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
101,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
101,
126
],
[
126,
127
],
[
126,
128
],
[
49,
129
],
[
129,
130
],
[
129,
131
],
[
49,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
140,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
138,
144
],
[
140,
145
],
[
145,
146
],
[
146,
147
],
[
145,
148
],
[
15,
149
],
[
149,
150
],
[
0,
151
],
[
151,
152
],
[
151,
153
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.text.DecimalFormat;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n\n int n = 0; //??\\??????????????????2???????????´??°?????°???\n int min = 0; //????°????\n int max = 0; //?????§???\n double sum = 0; //????¨????\n\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String input = br.readLine();\n\n// ??\\??????1?????????2???????????´??°?????°??????????????????\n n = Integer.parseInt(input);\n\n input = br.readLine();\n String[] strArray =input.split(\" \");\n\n// 1???????????´??°???????°??????¨?????§????????£??\\\n min = Integer.parseInt(strArray[0]); //????°????\n max = min; //?????§???\n sum += (double)min; //????¨????\n\n// 2????????\\????????´??°\n for(int i = 1; i < n ; i++){\n\n int x = Integer.parseInt(strArray[i]);\n\n// 1???????????´??°??¨????????????x????°?????????´??????min?????£??\\\n if(x < min){\n min = x;\n }\n// 1???????????´??°??¨????????????x?????§????????´??????max?????£??\\\n if(max < x){\n max = x;\n }\n// ????¨???????x?????????\n sum += (double)x;\n }\n DecimalFormat DF = new DecimalFormat(\"0\");\n\n System.out.println(min + \" \" + max + \" \" + DF.format(sum));\n\n }catch(IOException e) {\n\n //??????????????????\n System.out.println(e);\n\n }catch(NumberFormatException e) {\n\n //??°?????\\????????\\????????§??????\n System.out.println(\"??°?????§??\\??????????????????\");\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.text.DecimalFormat;",
"DecimalFormat",
"java.text",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n\n int n = 0; //??\\??????????????????2???????????´??°?????°???\n int min = 0; //????°????\n int max = 0; //?????§???\n double sum = 0; //????¨????\n\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String input = br.readLine();\n\n// ??\\??????1?????????2???????????´??°?????°??????????????????\n n = Integer.parseInt(input);\n\n input = br.readLine();\n String[] strArray =input.split(\" \");\n\n// 1???????????´??°???????°??????¨?????§????????£??\\\n min = Integer.parseInt(strArray[0]); //????°????\n max = min; //?????§???\n sum += (double)min; //????¨????\n\n// 2????????\\????????´??°\n for(int i = 1; i < n ; i++){\n\n int x = Integer.parseInt(strArray[i]);\n\n// 1???????????´??°??¨????????????x????°?????????´??????min?????£??\\\n if(x < min){\n min = x;\n }\n// 1???????????´??°??¨????????????x?????§????????´??????max?????£??\\\n if(max < x){\n max = x;\n }\n// ????¨???????x?????????\n sum += (double)x;\n }\n DecimalFormat DF = new DecimalFormat(\"0\");\n\n System.out.println(min + \" \" + max + \" \" + DF.format(sum));\n\n }catch(IOException e) {\n\n //??????????????????\n System.out.println(e);\n\n }catch(NumberFormatException e) {\n\n //??°?????\\????????\\????????§??????\n System.out.println(\"??°?????§??\\??????????????????\");\n }\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\n int n = 0; //??\\??????????????????2???????????´??°?????°???\n int min = 0; //????°????\n int max = 0; //?????§???\n double sum = 0; //????¨????\n\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String input = br.readLine();\n\n// ??\\??????1?????????2???????????´??°?????°??????????????????\n n = Integer.parseInt(input);\n\n input = br.readLine();\n String[] strArray =input.split(\" \");\n\n// 1???????????´??°???????°??????¨?????§????????£??\\\n min = Integer.parseInt(strArray[0]); //????°????\n max = min; //?????§???\n sum += (double)min; //????¨????\n\n// 2????????\\????????´??°\n for(int i = 1; i < n ; i++){\n\n int x = Integer.parseInt(strArray[i]);\n\n// 1???????????´??°??¨????????????x????°?????????´??????min?????£??\\\n if(x < min){\n min = x;\n }\n// 1???????????´??°??¨????????????x?????§????????´??????max?????£??\\\n if(max < x){\n max = x;\n }\n// ????¨???????x?????????\n sum += (double)x;\n }\n DecimalFormat DF = new DecimalFormat(\"0\");\n\n System.out.println(min + \" \" + max + \" \" + DF.format(sum));\n\n }catch(IOException e) {\n\n //??????????????????\n System.out.println(e);\n\n }catch(NumberFormatException e) {\n\n //??°?????\\????????\\????????§??????\n System.out.println(\"??°?????§??\\??????????????????\");\n }\n }",
"main",
"{\n\n int n = 0; //??\\??????????????????2???????????´??°?????°???\n int min = 0; //????°????\n int max = 0; //?????§???\n double sum = 0; //????¨????\n\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String input = br.readLine();\n\n// ??\\??????1?????????2???????????´??°?????°??????????????????\n n = Integer.parseInt(input);\n\n input = br.readLine();\n String[] strArray =input.split(\" \");\n\n// 1???????????´??°???????°??????¨?????§????????£??\\\n min = Integer.parseInt(strArray[0]); //????°????\n max = min; //?????§???\n sum += (double)min; //????¨????\n\n// 2????????\\????????´??°\n for(int i = 1; i < n ; i++){\n\n int x = Integer.parseInt(strArray[i]);\n\n// 1???????????´??°??¨????????????x????°?????????´??????min?????£??\\\n if(x < min){\n min = x;\n }\n// 1???????????´??°??¨????????????x?????§????????´??????max?????£??\\\n if(max < x){\n max = x;\n }\n// ????¨???????x?????????\n sum += (double)x;\n }\n DecimalFormat DF = new DecimalFormat(\"0\");\n\n System.out.println(min + \" \" + max + \" \" + DF.format(sum));\n\n }catch(IOException e) {\n\n //??????????????????\n System.out.println(e);\n\n }catch(NumberFormatException e) {\n\n //??°?????\\????????\\????????§??????\n System.out.println(\"??°?????§??\\??????????????????\");\n }\n }",
"int n = 0;",
"n",
"0",
"int min = 0;",
"min",
"0",
"int max = 0;",
"max",
"0",
"double sum = 0;",
"sum",
"0",
"try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String input = br.readLine();\n\n// ??\\??????1?????????2???????????´??°?????°??????????????????\n n = Integer.parseInt(input);\n\n input = br.readLine();\n String[] strArray =input.split(\" \");\n\n// 1???????????´??°???????°??????¨?????§????????£??\\\n min = Integer.parseInt(strArray[0]); //????°????\n max = min; //?????§???\n sum += (double)min; //????¨????\n\n// 2????????\\????????´??°\n for(int i = 1; i < n ; i++){\n\n int x = Integer.parseInt(strArray[i]);\n\n// 1???????????´??°??¨????????????x????°?????????´??????min?????£??\\\n if(x < min){\n min = x;\n }\n// 1???????????´??°??¨????????????x?????§????????´??????max?????£??\\\n if(max < x){\n max = x;\n }\n// ????¨???????x?????????\n sum += (double)x;\n }\n DecimalFormat DF = new DecimalFormat(\"0\");\n\n System.out.println(min + \" \" + max + \" \" + DF.format(sum));\n\n }catch(IOException e) {\n\n //??????????????????\n System.out.println(e);\n\n }catch(NumberFormatException e) {\n\n //??°?????\\????????\\????????§??????\n System.out.println(\"??°?????§??\\??????????????????\");\n }",
"catch(IOException e) {\n\n //??????????????????\n System.out.println(e);\n\n }",
"IOException e",
"{\n\n //??????????????????\n System.out.println(e);\n\n }",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"catch(NumberFormatException e) {\n\n //??°?????\\????????\\????????§??????\n System.out.println(\"??°?????§??\\??????????????????\");\n }",
"NumberFormatException e",
"{\n\n //??°?????\\????????\\????????§??????\n System.out.println(\"??°?????§??\\??????????????????\");\n }",
"System.out.println(\"??°?????§??\\??????????????????\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"??°?????§??\\??????????????????\"",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String input = br.readLine();\n\n// ??\\??????1?????????2???????????´??°?????°??????????????????\n n = Integer.parseInt(input);\n\n input = br.readLine();\n String[] strArray =input.split(\" \");\n\n// 1???????????´??°???????°??????¨?????§????????£??\\\n min = Integer.parseInt(strArray[0]); //????°????\n max = min; //?????§???\n sum += (double)min; //????¨????\n\n// 2????????\\????????´??°\n for(int i = 1; i < n ; i++){\n\n int x = Integer.parseInt(strArray[i]);\n\n// 1???????????´??°??¨????????????x????°?????????´??????min?????£??\\\n if(x < min){\n min = x;\n }\n// 1???????????´??°??¨????????????x?????§????????´??????max?????£??\\\n if(max < x){\n max = x;\n }\n// ????¨???????x?????????\n sum += (double)x;\n }\n DecimalFormat DF = new DecimalFormat(\"0\");\n\n System.out.println(min + \" \" + max + \" \" + DF.format(sum));\n\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String input = br.readLine();",
"input",
"br.readLine()",
"br.readLine",
"br",
"n = Integer.parseInt(input)",
"n",
"Integer.parseInt(input)",
"Integer.parseInt",
"Integer",
"input",
"input = br.readLine()",
"input",
"br.readLine()",
"br.readLine",
"br",
"String[] strArray =input.split(\" \");",
"strArray",
"input.split(\" \")",
"input.split",
"input",
"\" \"",
"min = Integer.parseInt(strArray[0])",
"min",
"Integer.parseInt(strArray[0])",
"Integer.parseInt",
"Integer",
"strArray[0]",
"strArray",
"0",
"max = min",
"max",
"min",
"sum += (double)min",
"sum",
"(double)min",
"for(int i = 1; i < n ; i++){\n\n int x = Integer.parseInt(strArray[i]);\n\n// 1???????????´??°??¨????????????x????°?????????´??????min?????£??\\\n if(x < min){\n min = x;\n }\n// 1???????????´??°??¨????????????x?????§????????´??????max?????£??\\\n if(max < x){\n max = x;\n }\n// ????¨???????x?????????\n sum += (double)x;\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\n int x = Integer.parseInt(strArray[i]);\n\n// 1???????????´??°??¨????????????x????°?????????´??????min?????£??\\\n if(x < min){\n min = x;\n }\n// 1???????????´??°??¨????????????x?????§????????´??????max?????£??\\\n if(max < x){\n max = x;\n }\n// ????¨???????x?????????\n sum += (double)x;\n }",
"{\n\n int x = Integer.parseInt(strArray[i]);\n\n// 1???????????´??°??¨????????????x????°?????????´??????min?????£??\\\n if(x < min){\n min = x;\n }\n// 1???????????´??°??¨????????????x?????§????????´??????max?????£??\\\n if(max < x){\n max = x;\n }\n// ????¨???????x?????????\n sum += (double)x;\n }",
"int x = Integer.parseInt(strArray[i]);",
"x",
"Integer.parseInt(strArray[i])",
"Integer.parseInt",
"Integer",
"strArray[i]",
"strArray",
"i",
"if(x < min){\n min = x;\n }",
"x < min",
"x",
"min",
"{\n min = x;\n }",
"min = x",
"min",
"x",
"if(max < x){\n max = x;\n }",
"max < x",
"max",
"x",
"{\n max = x;\n }",
"max = x",
"max",
"x",
"sum += (double)x",
"sum",
"(double)x",
"DecimalFormat DF = new DecimalFormat(\"0\");",
"DF",
"new DecimalFormat(\"0\")",
"System.out.println(min + \" \" + max + \" \" + DF.format(sum))",
"System.out.println",
"System.out",
"System",
"System.out",
"min + \" \" + max + \" \" + DF.format(sum)",
"\" \"",
"max",
"min + \" \" + max + \" \" + DF.format(sum)",
"min",
"\" \"",
"max",
"\" \"",
"DF.format(sum)",
"DF.format",
"DF",
"sum",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n\n int n = 0; //??\\??????????????????2???????????´??°?????°???\n int min = 0; //????°????\n int max = 0; //?????§???\n double sum = 0; //????¨????\n\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String input = br.readLine();\n\n// ??\\??????1?????????2???????????´??°?????°??????????????????\n n = Integer.parseInt(input);\n\n input = br.readLine();\n String[] strArray =input.split(\" \");\n\n// 1???????????´??°???????°??????¨?????§????????£??\\\n min = Integer.parseInt(strArray[0]); //????°????\n max = min; //?????§???\n sum += (double)min; //????¨????\n\n// 2????????\\????????´??°\n for(int i = 1; i < n ; i++){\n\n int x = Integer.parseInt(strArray[i]);\n\n// 1???????????´??°??¨????????????x????°?????????´??????min?????£??\\\n if(x < min){\n min = x;\n }\n// 1???????????´??°??¨????????????x?????§????????´??????max?????£??\\\n if(max < x){\n max = x;\n }\n// ????¨???????x?????????\n sum += (double)x;\n }\n DecimalFormat DF = new DecimalFormat(\"0\");\n\n System.out.println(min + \" \" + max + \" \" + DF.format(sum));\n\n }catch(IOException e) {\n\n //??????????????????\n System.out.println(e);\n\n }catch(NumberFormatException e) {\n\n //??°?????\\????????\\????????§??????\n System.out.println(\"??°?????§??\\??????????????????\");\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n\n int n = 0; //??\\??????????????????2???????????´??°?????°???\n int min = 0; //????°????\n int max = 0; //?????§???\n double sum = 0; //????¨????\n\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String input = br.readLine();\n\n// ??\\??????1?????????2???????????´??°?????°??????????????????\n n = Integer.parseInt(input);\n\n input = br.readLine();\n String[] strArray =input.split(\" \");\n\n// 1???????????´??°???????°??????¨?????§????????£??\\\n min = Integer.parseInt(strArray[0]); //????°????\n max = min; //?????§???\n sum += (double)min; //????¨????\n\n// 2????????\\????????´??°\n for(int i = 1; i < n ; i++){\n\n int x = Integer.parseInt(strArray[i]);\n\n// 1???????????´??°??¨????????????x????°?????????´??????min?????£??\\\n if(x < min){\n min = x;\n }\n// 1???????????´??°??¨????????????x?????§????????´??????max?????£??\\\n if(max < x){\n max = x;\n }\n// ????¨???????x?????????\n sum += (double)x;\n }\n DecimalFormat DF = new DecimalFormat(\"0\");\n\n System.out.println(min + \" \" + max + \" \" + DF.format(sum));\n\n }catch(IOException e) {\n\n //??????????????????\n System.out.println(e);\n\n }catch(NumberFormatException e) {\n\n //??°?????\\????????\\????????§??????\n System.out.println(\"??°?????§??\\??????????????????\");\n }\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.text.DecimalFormat;
public class Main {
public static void main(String[] args) throws IOException {
int n = 0; //??\??????????????????2???????????´??°?????°???
int min = 0; //????°????
int max = 0; //?????§???
double sum = 0; //????¨????
try{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String input = br.readLine();
// ??\??????1?????????2???????????´??°?????°??????????????????
n = Integer.parseInt(input);
input = br.readLine();
String[] strArray =input.split(" ");
// 1???????????´??°???????°??????¨?????§????????£??\
min = Integer.parseInt(strArray[0]); //????°????
max = min; //?????§???
sum += (double)min; //????¨????
// 2????????\????????´??°
for(int i = 1; i < n ; i++){
int x = Integer.parseInt(strArray[i]);
// 1???????????´??°??¨????????????x????°?????????´??????min?????£??\
if(x < min){
min = x;
}
// 1???????????´??°??¨????????????x?????§????????´??????max?????£??\
if(max < x){
max = x;
}
// ????¨???????x?????????
sum += (double)x;
}
DecimalFormat DF = new DecimalFormat("0");
System.out.println(min + " " + max + " " + DF.format(sum));
}catch(IOException e) {
//??????????????????
System.out.println(e);
}catch(NumberFormatException e) {
//??°?????\????????\????????§??????
System.out.println("??°?????§??\??????????????????");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
40,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
81,
5
],
[
81,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
39,
45
],
[
45,
46
],
[
45,
47
],
[
39,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
39,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
8,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
72,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
70,
76
],
[
72,
77
],
[
6,
78
],
[
78,
79
],
[
0,
80
],
[
80,
81
],
[
80,
82
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner( System.in );\n\t\tint count = sc.nextInt();\n\t\t\n\t\tint min\t\t= 1000000;\n\t\tint max\t\t= -1000000;\n\t\tlong calc\t= 0;\n\t\t\n\t\tfor(int i = 0; i < count; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\t\n\t\t\tcalc += a;\n\t\t\t\n\t\t\tif( a > max ) {\n\t\t\t\tmax = a;\n\t\t\t\t\n\t\t\t}\n\t\t\tif ( a < min ) {\n\t\t\t\tmin = a;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\tSystem.out.println(min+\" \"+max+\" \"+calc);\n\t\t\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner( System.in );\n\t\tint count = sc.nextInt();\n\t\t\n\t\tint min\t\t= 1000000;\n\t\tint max\t\t= -1000000;\n\t\tlong calc\t= 0;\n\t\t\n\t\tfor(int i = 0; i < count; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\t\n\t\t\tcalc += a;\n\t\t\t\n\t\t\tif( a > max ) {\n\t\t\t\tmax = a;\n\t\t\t\t\n\t\t\t}\n\t\t\tif ( a < min ) {\n\t\t\t\tmin = a;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\tSystem.out.println(min+\" \"+max+\" \"+calc);\n\t\t\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner( System.in );\n\t\tint count = sc.nextInt();\n\t\t\n\t\tint min\t\t= 1000000;\n\t\tint max\t\t= -1000000;\n\t\tlong calc\t= 0;\n\t\t\n\t\tfor(int i = 0; i < count; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\t\n\t\t\tcalc += a;\n\t\t\t\n\t\t\tif( a > max ) {\n\t\t\t\tmax = a;\n\t\t\t\t\n\t\t\t}\n\t\t\tif ( a < min ) {\n\t\t\t\tmin = a;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\tSystem.out.println(min+\" \"+max+\" \"+calc);\n\t\t\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner( System.in );\n\t\tint count = sc.nextInt();\n\t\t\n\t\tint min\t\t= 1000000;\n\t\tint max\t\t= -1000000;\n\t\tlong calc\t= 0;\n\t\t\n\t\tfor(int i = 0; i < count; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\t\n\t\t\tcalc += a;\n\t\t\t\n\t\t\tif( a > max ) {\n\t\t\t\tmax = a;\n\t\t\t\t\n\t\t\t}\n\t\t\tif ( a < min ) {\n\t\t\t\tmin = a;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\tSystem.out.println(min+\" \"+max+\" \"+calc);\n\t\t\n\t}",
"Scanner sc = new Scanner( System.in );",
"sc",
"new Scanner( System.in )",
"int count = sc.nextInt();",
"count",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int min\t\t= 1000000;",
"min",
"1000000",
"int max\t\t= -1000000;",
"max",
"-1000000",
"1000000",
"long calc\t= 0;",
"calc",
"0",
"for(int i = 0; i < count; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\t\n\t\t\tcalc += a;\n\t\t\t\n\t\t\tif( a > max ) {\n\t\t\t\tmax = a;\n\t\t\t\t\n\t\t\t}\n\t\t\tif ( a < min ) {\n\t\t\t\tmin = a;\n\t\t\t}\n\t\t\t\t\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < count",
"i",
"count",
"i++",
"i++",
"i",
"{\n\t\t\tint a = sc.nextInt();\n\t\t\t\n\t\t\tcalc += a;\n\t\t\t\n\t\t\tif( a > max ) {\n\t\t\t\tmax = a;\n\t\t\t\t\n\t\t\t}\n\t\t\tif ( a < min ) {\n\t\t\t\tmin = a;\n\t\t\t}\n\t\t\t\t\n\t\t}",
"{\n\t\t\tint a = sc.nextInt();\n\t\t\t\n\t\t\tcalc += a;\n\t\t\t\n\t\t\tif( a > max ) {\n\t\t\t\tmax = a;\n\t\t\t\t\n\t\t\t}\n\t\t\tif ( a < min ) {\n\t\t\t\tmin = a;\n\t\t\t}\n\t\t\t\t\n\t\t}",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"calc += a",
"calc",
"a",
"if( a > max ) {\n\t\t\t\tmax = a;\n\t\t\t\t\n\t\t\t}",
"a > max",
"a",
"max",
"{\n\t\t\t\tmax = a;\n\t\t\t\t\n\t\t\t}",
"max = a",
"max",
"a",
"if ( a < min ) {\n\t\t\t\tmin = a;\n\t\t\t}",
"a < min",
"a",
"min",
"{\n\t\t\t\tmin = a;\n\t\t\t}",
"min = a",
"min",
"a",
"System.out.println(min+\" \"+max+\" \"+calc)",
"System.out.println",
"System.out",
"System",
"System.out",
"min+\" \"+max+\" \"+calc",
"\" \"",
"max",
"min+\" \"+max+\" \"+calc",
"min",
"\" \"",
"max",
"\" \"",
"calc",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner( System.in );\n\t\tint count = sc.nextInt();\n\t\t\n\t\tint min\t\t= 1000000;\n\t\tint max\t\t= -1000000;\n\t\tlong calc\t= 0;\n\t\t\n\t\tfor(int i = 0; i < count; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\t\n\t\t\tcalc += a;\n\t\t\t\n\t\t\tif( a > max ) {\n\t\t\t\tmax = a;\n\t\t\t\t\n\t\t\t}\n\t\t\tif ( a < min ) {\n\t\t\t\tmin = a;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\tSystem.out.println(min+\" \"+max+\" \"+calc);\n\t\t\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner( System.in );\n\t\tint count = sc.nextInt();\n\t\t\n\t\tint min\t\t= 1000000;\n\t\tint max\t\t= -1000000;\n\t\tlong calc\t= 0;\n\t\t\n\t\tfor(int i = 0; i < count; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\t\n\t\t\tcalc += a;\n\t\t\t\n\t\t\tif( a > max ) {\n\t\t\t\tmax = a;\n\t\t\t\t\n\t\t\t}\n\t\t\tif ( a < min ) {\n\t\t\t\tmin = a;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\tSystem.out.println(min+\" \"+max+\" \"+calc);\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 count = sc.nextInt();
int min = 1000000;
int max = -1000000;
long calc = 0;
for(int i = 0; i < count; i++) {
int a = sc.nextInt();
calc += a;
if( a > max ) {
max = a;
}
if ( a < min ) {
min = a;
}
}
System.out.println(min+" "+max+" "+calc);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
13,
41,
13,
13,
41,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
18,
13,
13,
14,
2,
13,
13,
0,
13,
13,
14,
2,
13,
13,
0,
13,
13,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
131,
11
],
[
131,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
21,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
21,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
34,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
34,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
34,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
34,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
62,
63
],
[
62,
64
],
[
34,
65
],
[
65,
66
],
[
65,
67
],
[
34,
68
],
[
68,
69
],
[
68,
70
],
[
34,
71
],
[
71,
72
],
[
71,
73
],
[
34,
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
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
92,
93
],
[
92,
94
],
[
86,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
99,
100
],
[
99,
101
],
[
86,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
106,
107
],
[
106,
108
],
[
86,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
111,
113
],
[
34,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
122,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
120,
126
],
[
122,
127
],
[
12,
128
],
[
128,
129
],
[
0,
130
],
[
130,
131
],
[
130,
132
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n \n\t\tString x = \"\";\n\t\ttry {\n\t\t\tx = in.readLine();\n\t\t\tint num = Integer.parseInt(x);\n\n\t\t\tx = in.readLine();\n\t\t\t\n\t\t\tString[] values = x.split(\" \");\n\n\t\t\tint value = Integer.parseInt(values[0]);\n\t\t\tint min = value;\n\t\t\tint max = value;\n\t\t\tlong sum = value;\n\t\t\t\n\t\t\tfor (int i = 1; i < num; i++) {\n\t\t\t\tvalue = Integer.parseInt(values[i]);\n\t\t\t\t\n\t\t\t\tif (min > value) min = value;\n\t\t\t\tif (max < value) max = value;\n\t\t\t\tsum = sum + value;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n \n\t\tString x = \"\";\n\t\ttry {\n\t\t\tx = in.readLine();\n\t\t\tint num = Integer.parseInt(x);\n\n\t\t\tx = in.readLine();\n\t\t\t\n\t\t\tString[] values = x.split(\" \");\n\n\t\t\tint value = Integer.parseInt(values[0]);\n\t\t\tint min = value;\n\t\t\tint max = value;\n\t\t\tlong sum = value;\n\t\t\t\n\t\t\tfor (int i = 1; i < num; i++) {\n\t\t\t\tvalue = Integer.parseInt(values[i]);\n\t\t\t\t\n\t\t\t\tif (min > value) min = value;\n\t\t\t\tif (max < value) max = value;\n\t\t\t\tsum = sum + value;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n \n\t\tString x = \"\";\n\t\ttry {\n\t\t\tx = in.readLine();\n\t\t\tint num = Integer.parseInt(x);\n\n\t\t\tx = in.readLine();\n\t\t\t\n\t\t\tString[] values = x.split(\" \");\n\n\t\t\tint value = Integer.parseInt(values[0]);\n\t\t\tint min = value;\n\t\t\tint max = value;\n\t\t\tlong sum = value;\n\t\t\t\n\t\t\tfor (int i = 1; i < num; i++) {\n\t\t\t\tvalue = Integer.parseInt(values[i]);\n\t\t\t\t\n\t\t\t\tif (min > value) min = value;\n\t\t\t\tif (max < value) max = value;\n\t\t\t\tsum = sum + value;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n \n\t\tString x = \"\";\n\t\ttry {\n\t\t\tx = in.readLine();\n\t\t\tint num = Integer.parseInt(x);\n\n\t\t\tx = in.readLine();\n\t\t\t\n\t\t\tString[] values = x.split(\" \");\n\n\t\t\tint value = Integer.parseInt(values[0]);\n\t\t\tint min = value;\n\t\t\tint max = value;\n\t\t\tlong sum = value;\n\t\t\t\n\t\t\tfor (int i = 1; i < num; i++) {\n\t\t\t\tvalue = Integer.parseInt(values[i]);\n\t\t\t\t\n\t\t\t\tif (min > value) min = value;\n\t\t\t\tif (max < value) max = value;\n\t\t\t\tsum = sum + value;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"String x = \"\";",
"x",
"\"\"",
"try {\n\t\t\tx = in.readLine();\n\t\t\tint num = Integer.parseInt(x);\n\n\t\t\tx = in.readLine();\n\t\t\t\n\t\t\tString[] values = x.split(\" \");\n\n\t\t\tint value = Integer.parseInt(values[0]);\n\t\t\tint min = value;\n\t\t\tint max = value;\n\t\t\tlong sum = value;\n\t\t\t\n\t\t\tfor (int i = 1; i < num; i++) {\n\t\t\t\tvalue = Integer.parseInt(values[i]);\n\t\t\t\t\n\t\t\t\tif (min > value) min = value;\n\t\t\t\tif (max < value) max = value;\n\t\t\t\tsum = sum + value;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}",
"catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}",
"NumberFormatException e",
"{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}",
"IOException e",
"{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\tx = in.readLine();\n\t\t\tint num = Integer.parseInt(x);\n\n\t\t\tx = in.readLine();\n\t\t\t\n\t\t\tString[] values = x.split(\" \");\n\n\t\t\tint value = Integer.parseInt(values[0]);\n\t\t\tint min = value;\n\t\t\tint max = value;\n\t\t\tlong sum = value;\n\t\t\t\n\t\t\tfor (int i = 1; i < num; i++) {\n\t\t\t\tvalue = Integer.parseInt(values[i]);\n\t\t\t\t\n\t\t\t\tif (min > value) min = value;\n\t\t\t\tif (max < value) max = value;\n\t\t\t\tsum = sum + value;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t}",
"x = in.readLine()",
"x",
"in.readLine()",
"in.readLine",
"in",
"int num = Integer.parseInt(x);",
"num",
"Integer.parseInt(x)",
"Integer.parseInt",
"Integer",
"x",
"x = in.readLine()",
"x",
"in.readLine()",
"in.readLine",
"in",
"String[] values = x.split(\" \");",
"values",
"x.split(\" \")",
"x.split",
"x",
"\" \"",
"int value = Integer.parseInt(values[0]);",
"value",
"Integer.parseInt(values[0])",
"Integer.parseInt",
"Integer",
"values[0]",
"values",
"0",
"int min = value;",
"min",
"value",
"int max = value;",
"max",
"value",
"long sum = value;",
"sum",
"value",
"for (int i = 1; i < num; i++) {\n\t\t\t\tvalue = Integer.parseInt(values[i]);\n\t\t\t\t\n\t\t\t\tif (min > value) min = value;\n\t\t\t\tif (max < value) max = value;\n\t\t\t\tsum = sum + value;\n\t\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n\t\t\t\tvalue = Integer.parseInt(values[i]);\n\t\t\t\t\n\t\t\t\tif (min > value) min = value;\n\t\t\t\tif (max < value) max = value;\n\t\t\t\tsum = sum + value;\n\t\t\t}",
"{\n\t\t\t\tvalue = Integer.parseInt(values[i]);\n\t\t\t\t\n\t\t\t\tif (min > value) min = value;\n\t\t\t\tif (max < value) max = value;\n\t\t\t\tsum = sum + value;\n\t\t\t}",
"value = Integer.parseInt(values[i])",
"value",
"Integer.parseInt(values[i])",
"Integer.parseInt",
"Integer",
"values[i]",
"values",
"i",
"if (min > value) min = value;",
"min > value",
"min",
"value",
"min = value",
"min",
"value",
"if (max < value) max = value;",
"max < value",
"max",
"value",
"max = value",
"max",
"value",
"sum = sum + value",
"sum",
"sum + value",
"sum",
"value",
"System.out.println(min + \" \" + max + \" \" + sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min + \" \" + max + \" \" + sum",
"\" \"",
"max",
"min + \" \" + max + \" \" + sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n \n\t\tString x = \"\";\n\t\ttry {\n\t\t\tx = in.readLine();\n\t\t\tint num = Integer.parseInt(x);\n\n\t\t\tx = in.readLine();\n\t\t\t\n\t\t\tString[] values = x.split(\" \");\n\n\t\t\tint value = Integer.parseInt(values[0]);\n\t\t\tint min = value;\n\t\t\tint max = value;\n\t\t\tlong sum = value;\n\t\t\t\n\t\t\tfor (int i = 1; i < num; i++) {\n\t\t\t\tvalue = Integer.parseInt(values[i]);\n\t\t\t\t\n\t\t\t\tif (min > value) min = value;\n\t\t\t\tif (max < value) max = value;\n\t\t\t\tsum = sum + value;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n \n\t\tString x = \"\";\n\t\ttry {\n\t\t\tx = in.readLine();\n\t\t\tint num = Integer.parseInt(x);\n\n\t\t\tx = in.readLine();\n\t\t\t\n\t\t\tString[] values = x.split(\" \");\n\n\t\t\tint value = Integer.parseInt(values[0]);\n\t\t\tint min = value;\n\t\t\tint max = value;\n\t\t\tlong sum = value;\n\t\t\t\n\t\t\tfor (int i = 1; i < num; i++) {\n\t\t\t\tvalue = Integer.parseInt(values[i]);\n\t\t\t\t\n\t\t\t\tif (min > value) min = value;\n\t\t\t\tif (max < value) max = value;\n\t\t\t\tsum = sum + value;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String x = "";
try {
x = in.readLine();
int num = Integer.parseInt(x);
x = in.readLine();
String[] values = x.split(" ");
int value = Integer.parseInt(values[0]);
int min = value;
int max = value;
long sum = value;
for (int i = 1; i < num; i++) {
value = Integer.parseInt(values[i]);
if (min > value) min = value;
if (max < value) max = value;
sum = sum + value;
}
System.out.println(min + " " + max + " " + sum);
} catch (NumberFormatException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
} |
[
7,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
18,
13,
17,
28,
13,
13,
30,
30,
0,
13,
4,
18,
13,
13,
13,
41,
13,
18,
13,
17,
28,
13,
13,
30,
30,
0,
13,
4,
18,
13,
13,
13,
41,
13,
17,
28,
13,
13,
30,
30,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
102,
2
],
[
102,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
5,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
5,
14
],
[
14,
15
],
[
14,
16
],
[
5,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
18,
23
],
[
23,
24
],
[
23,
25
],
[
18,
26
],
[
26,
27
],
[
27,
28
],
[
18,
29
],
[
30,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
35,
36
],
[
36,
37
],
[
5,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
5,
43
],
[
43,
44
],
[
43,
45
],
[
43,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
50,
54
],
[
5,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
5,
60
],
[
60,
61
],
[
60,
62
],
[
60,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
67,
71
],
[
5,
72
],
[
72,
73
],
[
72,
74
],
[
5,
75
],
[
75,
76
],
[
75,
77
],
[
75,
78
],
[
79,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
5,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
93,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
91,
97
],
[
93,
98
],
[
3,
99
],
[
99,
100
],
[
0,
101
],
[
101,
102
],
[
101,
103
]
] | [
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\t\t//StringBuilder sb = new StringBuilder();\n\n\t\tint n = sc.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0;i < n;i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}\n\n\t\tint mini = a[0];\n\t\tfor (int i:a) { mini = Math.min(mini, i);}\n\n\t\tint maxi = a[0];\n\t\tfor (int i:a) { maxi = Math.max(maxi, i);}\n\n\t\tlong goukei = 0;\n\t\tfor (int i:a) { goukei = goukei + i;}\n\n\t\tSystem.out.println(mini + \" \" + maxi + \" \" + goukei);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\t\t//StringBuilder sb = new StringBuilder();\n\n\t\tint n = sc.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0;i < n;i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}\n\n\t\tint mini = a[0];\n\t\tfor (int i:a) { mini = Math.min(mini, i);}\n\n\t\tint maxi = a[0];\n\t\tfor (int i:a) { maxi = Math.max(maxi, i);}\n\n\t\tlong goukei = 0;\n\t\tfor (int i:a) { goukei = goukei + i;}\n\n\t\tSystem.out.println(mini + \" \" + maxi + \" \" + goukei);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\t\t//StringBuilder sb = new StringBuilder();\n\n\t\tint n = sc.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0;i < n;i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}\n\n\t\tint mini = a[0];\n\t\tfor (int i:a) { mini = Math.min(mini, i);}\n\n\t\tint maxi = a[0];\n\t\tfor (int i:a) { maxi = Math.max(maxi, i);}\n\n\t\tlong goukei = 0;\n\t\tfor (int i:a) { goukei = goukei + i;}\n\n\t\tSystem.out.println(mini + \" \" + maxi + \" \" + goukei);\n\t}",
"main",
"{\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\t\t//StringBuilder sb = new StringBuilder();\n\n\t\tint n = sc.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0;i < n;i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}\n\n\t\tint mini = a[0];\n\t\tfor (int i:a) { mini = Math.min(mini, i);}\n\n\t\tint maxi = a[0];\n\t\tfor (int i:a) { maxi = Math.max(maxi, i);}\n\n\t\tlong goukei = 0;\n\t\tfor (int i:a) { goukei = goukei + i;}\n\n\t\tSystem.out.println(mini + \" \" + maxi + \" \" + goukei);\n\t}",
"java.util.Scanner sc = new java.util.Scanner(System.in);",
"sc",
"new java.util.Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0;i < n;i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\ta[i] = sc.nextInt();\n\t\t}",
"{\n\t\t\ta[i] = sc.nextInt();\n\t\t}",
"a[i] = sc.nextInt()",
"a[i]",
"a",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int mini = a[0];",
"mini",
"a[0]",
"a",
"0",
"for (int i:a) { mini = Math.min(mini, i);}",
"int i",
"a",
"{ mini = Math.min(mini, i);}",
"{ mini = Math.min(mini, i);}",
"mini = Math.min(mini, i)",
"mini",
"Math.min(mini, i)",
"Math.min",
"Math",
"mini",
"i",
"int maxi = a[0];",
"maxi",
"a[0]",
"a",
"0",
"for (int i:a) { maxi = Math.max(maxi, i);}",
"int i",
"a",
"{ maxi = Math.max(maxi, i);}",
"{ maxi = Math.max(maxi, i);}",
"maxi = Math.max(maxi, i)",
"maxi",
"Math.max(maxi, i)",
"Math.max",
"Math",
"maxi",
"i",
"long goukei = 0;",
"goukei",
"0",
"for (int i:a) { goukei = goukei + i;}",
"int i",
"a",
"{ goukei = goukei + i;}",
"{ goukei = goukei + i;}",
"goukei = goukei + i",
"goukei",
"goukei + i",
"goukei",
"i",
"System.out.println(mini + \" \" + maxi + \" \" + goukei)",
"System.out.println",
"System.out",
"System",
"System.out",
"mini + \" \" + maxi + \" \" + goukei",
"\" \"",
"maxi",
"mini + \" \" + maxi + \" \" + goukei",
"mini",
"\" \"",
"maxi",
"\" \"",
"goukei",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\t\t//StringBuilder sb = new StringBuilder();\n\n\t\tint n = sc.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0;i < n;i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}\n\n\t\tint mini = a[0];\n\t\tfor (int i:a) { mini = Math.min(mini, i);}\n\n\t\tint maxi = a[0];\n\t\tfor (int i:a) { maxi = Math.max(maxi, i);}\n\n\t\tlong goukei = 0;\n\t\tfor (int i:a) { goukei = goukei + i;}\n\n\t\tSystem.out.println(mini + \" \" + maxi + \" \" + goukei);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\t\t//StringBuilder sb = new StringBuilder();\n\n\t\tint n = sc.nextInt();\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0;i < n;i++) {\n\t\t\ta[i] = sc.nextInt();\n\t\t}\n\n\t\tint mini = a[0];\n\t\tfor (int i:a) { mini = Math.min(mini, i);}\n\n\t\tint maxi = a[0];\n\t\tfor (int i:a) { maxi = Math.max(maxi, i);}\n\n\t\tlong goukei = 0;\n\t\tfor (int i:a) { goukei = goukei + i;}\n\n\t\tSystem.out.println(mini + \" \" + maxi + \" \" + goukei);\n\t}\n}",
"Main"
] | public class Main {
public static void main(String[] args) {
java.util.Scanner sc = new java.util.Scanner(System.in);
//StringBuilder sb = new StringBuilder();
int n = sc.nextInt();
int[] a = new int[n];
for (int i = 0;i < n;i++) {
a[i] = sc.nextInt();
}
int mini = a[0];
for (int i:a) { mini = Math.min(mini, i);}
int maxi = a[0];
for (int i:a) { maxi = Math.max(maxi, i);}
long goukei = 0;
for (int i:a) { goukei = goukei + i;}
System.out.println(mini + " " + maxi + " " + goukei);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
20,
0,
13,
4,
18,
13,
4,
18,
13,
0,
13,
18,
13,
13,
0,
13,
18,
13,
13,
41,
13,
4,
18,
4,
18,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
18,
13,
13,
14,
2,
13,
13,
0,
13,
13,
14,
2,
13,
13,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
112,
11
],
[
112,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
14,
19
],
[
19,
20
],
[
14,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
14,
25
],
[
25,
26
],
[
25,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
14,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
37,
38
],
[
14,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
41,
43
],
[
14,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
14,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
51,
56
],
[
14,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
57,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
75,
77
],
[
69,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
82,
84
],
[
69,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
89,
90
],
[
89,
91
],
[
69,
92
],
[
92,
93
],
[
92,
94
],
[
14,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
103,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
101,
107
],
[
103,
108
],
[
12,
109
],
[
109,
110
],
[
0,
111
],
[
111,
112
],
[
111,
113
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n \npublic class Main{\n public static void main(String[] args) throws IOException{\n int n,in,min,max,i;\n \n long sum = 0;\n \n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n n = Integer.parseInt(br.readLine());\n \n min = Integer.MAX_VALUE;\n max = Integer.MIN_VALUE;\n \n String[] readLineArray = br.readLine().split(\" \");\n \n for (i = 0; i < n; i++){\n in = Integer.parseInt(readLineArray[i]);\n if(in < min) min = in;\n if(in > max) max = in;\n sum += in;\n }\n \n System.out.println(min+\" \"+max+\" \"+sum);\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main{\n public static void main(String[] args) throws IOException{\n int n,in,min,max,i;\n \n long sum = 0;\n \n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n n = Integer.parseInt(br.readLine());\n \n min = Integer.MAX_VALUE;\n max = Integer.MIN_VALUE;\n \n String[] readLineArray = br.readLine().split(\" \");\n \n for (i = 0; i < n; i++){\n in = Integer.parseInt(readLineArray[i]);\n if(in < min) min = in;\n if(in > max) max = in;\n sum += in;\n }\n \n System.out.println(min+\" \"+max+\" \"+sum);\n }\n}",
"Main",
"public static void main(String[] args) throws IOException{\n int n,in,min,max,i;\n \n long sum = 0;\n \n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n n = Integer.parseInt(br.readLine());\n \n min = Integer.MAX_VALUE;\n max = Integer.MIN_VALUE;\n \n String[] readLineArray = br.readLine().split(\" \");\n \n for (i = 0; i < n; i++){\n in = Integer.parseInt(readLineArray[i]);\n if(in < min) min = in;\n if(in > max) max = in;\n sum += in;\n }\n \n System.out.println(min+\" \"+max+\" \"+sum);\n }",
"main",
"{\n int n,in,min,max,i;\n \n long sum = 0;\n \n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n n = Integer.parseInt(br.readLine());\n \n min = Integer.MAX_VALUE;\n max = Integer.MIN_VALUE;\n \n String[] readLineArray = br.readLine().split(\" \");\n \n for (i = 0; i < n; i++){\n in = Integer.parseInt(readLineArray[i]);\n if(in < min) min = in;\n if(in > max) max = in;\n sum += in;\n }\n \n System.out.println(min+\" \"+max+\" \"+sum);\n }",
"int n",
"n",
"in",
"in",
"min",
"min",
"max",
"max",
"i;",
"i",
"long sum = 0;",
"sum",
"0",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"n = Integer.parseInt(br.readLine())",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"min = Integer.MAX_VALUE",
"min",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"max = Integer.MIN_VALUE",
"max",
"Integer.MIN_VALUE",
"Integer",
"Integer.MIN_VALUE",
"String[] readLineArray = br.readLine().split(\" \");",
"readLineArray",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for (i = 0; i < n; i++){\n in = Integer.parseInt(readLineArray[i]);\n if(in < min) min = in;\n if(in > max) max = in;\n sum += in;\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n in = Integer.parseInt(readLineArray[i]);\n if(in < min) min = in;\n if(in > max) max = in;\n sum += in;\n }",
"{\n in = Integer.parseInt(readLineArray[i]);\n if(in < min) min = in;\n if(in > max) max = in;\n sum += in;\n }",
"in = Integer.parseInt(readLineArray[i])",
"in",
"Integer.parseInt(readLineArray[i])",
"Integer.parseInt",
"Integer",
"readLineArray[i]",
"readLineArray",
"i",
"if(in < min) min = in;",
"in < min",
"in",
"min",
"min = in",
"min",
"in",
"if(in > max) max = in;",
"in > max",
"in",
"max",
"max = in",
"max",
"in",
"sum += in",
"sum",
"in",
"System.out.println(min+\" \"+max+\" \"+sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min+\" \"+max+\" \"+sum",
"\" \"",
"max",
"min+\" \"+max+\" \"+sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args) throws IOException{\n int n,in,min,max,i;\n \n long sum = 0;\n \n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n n = Integer.parseInt(br.readLine());\n \n min = Integer.MAX_VALUE;\n max = Integer.MIN_VALUE;\n \n String[] readLineArray = br.readLine().split(\" \");\n \n for (i = 0; i < n; i++){\n in = Integer.parseInt(readLineArray[i]);\n if(in < min) min = in;\n if(in > max) max = in;\n sum += in;\n }\n \n System.out.println(min+\" \"+max+\" \"+sum);\n }\n}",
"public class Main{\n public static void main(String[] args) throws IOException{\n int n,in,min,max,i;\n \n long sum = 0;\n \n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n n = Integer.parseInt(br.readLine());\n \n min = Integer.MAX_VALUE;\n max = Integer.MIN_VALUE;\n \n String[] readLineArray = br.readLine().split(\" \");\n \n for (i = 0; i < n; i++){\n in = Integer.parseInt(readLineArray[i]);\n if(in < min) min = in;\n if(in > max) max = in;\n sum += in;\n }\n \n System.out.println(min+\" \"+max+\" \"+sum);\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
public static void main(String[] args) throws IOException{
int n,in,min,max,i;
long sum = 0;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
n = Integer.parseInt(br.readLine());
min = Integer.MAX_VALUE;
max = Integer.MIN_VALUE;
String[] readLineArray = br.readLine().split(" ");
for (i = 0; i < n; i++){
in = Integer.parseInt(readLineArray[i]);
if(in < min) min = in;
if(in > max) max = in;
sum += in;
}
System.out.println(min+" "+max+" "+sum);
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
41,
13,
12,
13,
30,
4,
13,
41,
13,
4,
13,
13,
41,
13,
4,
13,
13,
41,
13,
4,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
17,
0,
13,
4,
18,
13,
13,
0,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
12,
13,
30,
41,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
18,
13,
13,
29,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
4,
8
],
[
8,
9
],
[
4,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
13,
14
],
[
12,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
17,
19
],
[
12,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
22,
24
],
[
12,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
27,
29
],
[
12,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
38,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
36,
42
],
[
38,
43
],
[
10,
44
],
[
44,
45
],
[
4,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
52,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
52,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
71,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
79,
84
],
[
71,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
71,
91
],
[
91,
92
],
[
91,
93
],
[
71,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
100,
101
],
[
100,
102
],
[
95,
103
],
[
103,
104
],
[
104,
105
],
[
95,
106
],
[
107,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
115,
116
],
[
115,
117
],
[
4,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
123,
125
],
[
120,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
133,
135
],
[
126,
136
],
[
136,
137
],
[
137,
138
],
[
126,
139
],
[
140,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
143,
146
],
[
143,
147
],
[
147,
148
],
[
147,
149
],
[
120,
150
],
[
150,
151
],
[
118,
152
],
[
152,
153
],
[
4,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
159,
161
],
[
156,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
162,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
169,
171
],
[
162,
172
],
[
172,
173
],
[
173,
174
],
[
162,
175
],
[
176,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
180,
181
],
[
179,
182
],
[
179,
183
],
[
183,
184
],
[
183,
185
],
[
156,
186
],
[
186,
187
],
[
154,
188
],
[
188,
189
],
[
4,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
192,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
196,
201
],
[
201,
202
],
[
201,
203
],
[
196,
204
],
[
204,
205
],
[
205,
206
],
[
196,
207
],
[
208,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
211,
212
],
[
211,
213
],
[
192,
214
],
[
214,
215
],
[
190,
216
],
[
216,
217
]
] | [
"import java.io.*;\n\nclass Main {\n private static int num;\n private static int[] data;\n\n public static void main(String[] args) {\n dataSet();\n\n long min = arrayMin(data);\n long max = arrayMax(data);\n long sum = arraySum(data);\n\n System.out.println(min + \" \" + max + \" \" + sum);\n }\n\n static void dataSet() {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n String numString = reader.readLine();\n String[] dataString = reader.readLine().split(\" \");\n\n num = Integer.parseInt(numString);\n\n data = new int[num];\n for (int i = 0; i < num; i++) {\n data[i] = Integer.parseInt(dataString[i]);\n }\n } catch (NumberFormatException e) {\n System.out.println(e);\n } catch (IOException e) {\n System.out.println(e);\n }\n }\n\n static long arrayMin(int[] data) {\n long min = Long.MAX_VALUE;\n for (int i = 0; i < data.length; i++) {\n min = Math.min(min, data[i]);\n }\n return min;\n }\n\n static long arrayMax(int[] data) {\n long max = Long.MIN_VALUE;\n for (int i = 0; i < data.length; i++) {\n max = Math.max(max, data[i]);\n }\n return max;\n }\n\n static long arraySum(int[] data) {\n long sum = 0;\n for (int i = 0; i < num; i++) {\n sum += data[i];\n }\n return sum;\n }\n}",
"import java.io.*;",
"io.*",
"java",
"class Main {\n private static int num;\n private static int[] data;\n\n public static void main(String[] args) {\n dataSet();\n\n long min = arrayMin(data);\n long max = arrayMax(data);\n long sum = arraySum(data);\n\n System.out.println(min + \" \" + max + \" \" + sum);\n }\n\n static void dataSet() {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n String numString = reader.readLine();\n String[] dataString = reader.readLine().split(\" \");\n\n num = Integer.parseInt(numString);\n\n data = new int[num];\n for (int i = 0; i < num; i++) {\n data[i] = Integer.parseInt(dataString[i]);\n }\n } catch (NumberFormatException e) {\n System.out.println(e);\n } catch (IOException e) {\n System.out.println(e);\n }\n }\n\n static long arrayMin(int[] data) {\n long min = Long.MAX_VALUE;\n for (int i = 0; i < data.length; i++) {\n min = Math.min(min, data[i]);\n }\n return min;\n }\n\n static long arrayMax(int[] data) {\n long max = Long.MIN_VALUE;\n for (int i = 0; i < data.length; i++) {\n max = Math.max(max, data[i]);\n }\n return max;\n }\n\n static long arraySum(int[] data) {\n long sum = 0;\n for (int i = 0; i < num; i++) {\n sum += data[i];\n }\n return sum;\n }\n}",
"Main",
"private static int num;",
"num",
"private static int[] data;",
"data",
"public static void main(String[] args) {\n dataSet();\n\n long min = arrayMin(data);\n long max = arrayMax(data);\n long sum = arraySum(data);\n\n System.out.println(min + \" \" + max + \" \" + sum);\n }",
"main",
"{\n dataSet();\n\n long min = arrayMin(data);\n long max = arrayMax(data);\n long sum = arraySum(data);\n\n System.out.println(min + \" \" + max + \" \" + sum);\n }",
"dataSet()",
"dataSet",
"long min = arrayMin(data);",
"min",
"arrayMin(data)",
"arrayMin",
"data",
"long max = arrayMax(data);",
"max",
"arrayMax(data)",
"arrayMax",
"data",
"long sum = arraySum(data);",
"sum",
"arraySum(data)",
"arraySum",
"data",
"System.out.println(min + \" \" + max + \" \" + sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min + \" \" + max + \" \" + sum",
"\" \"",
"max",
"min + \" \" + max + \" \" + sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args",
"static void dataSet() {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n String numString = reader.readLine();\n String[] dataString = reader.readLine().split(\" \");\n\n num = Integer.parseInt(numString);\n\n data = new int[num];\n for (int i = 0; i < num; i++) {\n data[i] = Integer.parseInt(dataString[i]);\n }\n } catch (NumberFormatException e) {\n System.out.println(e);\n } catch (IOException e) {\n System.out.println(e);\n }\n }",
"dataSet",
"{\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n String numString = reader.readLine();\n String[] dataString = reader.readLine().split(\" \");\n\n num = Integer.parseInt(numString);\n\n data = new int[num];\n for (int i = 0; i < num; i++) {\n data[i] = Integer.parseInt(dataString[i]);\n }\n } catch (NumberFormatException e) {\n System.out.println(e);\n } catch (IOException e) {\n System.out.println(e);\n }\n }",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"try {\n String numString = reader.readLine();\n String[] dataString = reader.readLine().split(\" \");\n\n num = Integer.parseInt(numString);\n\n data = new int[num];\n for (int i = 0; i < num; i++) {\n data[i] = Integer.parseInt(dataString[i]);\n }\n } catch (NumberFormatException e) {\n System.out.println(e);\n } catch (IOException e) {\n System.out.println(e);\n }",
"catch (NumberFormatException e) {\n System.out.println(e);\n }",
"NumberFormatException e",
"{\n System.out.println(e);\n }",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"catch (IOException e) {\n System.out.println(e);\n }",
"IOException e",
"{\n System.out.println(e);\n }",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"{\n String numString = reader.readLine();\n String[] dataString = reader.readLine().split(\" \");\n\n num = Integer.parseInt(numString);\n\n data = new int[num];\n for (int i = 0; i < num; i++) {\n data[i] = Integer.parseInt(dataString[i]);\n }\n }",
"String numString = reader.readLine();",
"numString",
"reader.readLine()",
"reader.readLine",
"reader",
"String[] dataString = reader.readLine().split(\" \");",
"dataString",
"reader.readLine().split(\" \")",
"reader.readLine().split",
"reader.readLine()",
"reader.readLine",
"reader",
"\" \"",
"num = Integer.parseInt(numString)",
"num",
"Integer.parseInt(numString)",
"Integer.parseInt",
"Integer",
"numString",
"data = new int[num]",
"data",
"new int[num]",
"num",
"for (int i = 0; i < num; i++) {\n data[i] = Integer.parseInt(dataString[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n data[i] = Integer.parseInt(dataString[i]);\n }",
"{\n data[i] = Integer.parseInt(dataString[i]);\n }",
"data[i] = Integer.parseInt(dataString[i])",
"data[i]",
"data",
"i",
"Integer.parseInt(dataString[i])",
"Integer.parseInt",
"Integer",
"dataString[i]",
"dataString",
"i",
"static long arrayMin(int[] data) {\n long min = Long.MAX_VALUE;\n for (int i = 0; i < data.length; i++) {\n min = Math.min(min, data[i]);\n }\n return min;\n }",
"arrayMin",
"{\n long min = Long.MAX_VALUE;\n for (int i = 0; i < data.length; i++) {\n min = Math.min(min, data[i]);\n }\n return min;\n }",
"long min = Long.MAX_VALUE;",
"min",
"Long.MAX_VALUE",
"Long",
"Long.MAX_VALUE",
"for (int i = 0; i < data.length; i++) {\n min = Math.min(min, data[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < data.length",
"i",
"data.length",
"data",
"data.length",
"i++",
"i++",
"i",
"{\n min = Math.min(min, data[i]);\n }",
"{\n min = Math.min(min, data[i]);\n }",
"min = Math.min(min, data[i])",
"min",
"Math.min(min, data[i])",
"Math.min",
"Math",
"min",
"data[i]",
"data",
"i",
"return min;",
"min",
"int[] data",
"data",
"static long arrayMax(int[] data) {\n long max = Long.MIN_VALUE;\n for (int i = 0; i < data.length; i++) {\n max = Math.max(max, data[i]);\n }\n return max;\n }",
"arrayMax",
"{\n long max = Long.MIN_VALUE;\n for (int i = 0; i < data.length; i++) {\n max = Math.max(max, data[i]);\n }\n return max;\n }",
"long max = Long.MIN_VALUE;",
"max",
"Long.MIN_VALUE",
"Long",
"Long.MIN_VALUE",
"for (int i = 0; i < data.length; i++) {\n max = Math.max(max, data[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < data.length",
"i",
"data.length",
"data",
"data.length",
"i++",
"i++",
"i",
"{\n max = Math.max(max, data[i]);\n }",
"{\n max = Math.max(max, data[i]);\n }",
"max = Math.max(max, data[i])",
"max",
"Math.max(max, data[i])",
"Math.max",
"Math",
"max",
"data[i]",
"data",
"i",
"return max;",
"max",
"int[] data",
"data",
"static long arraySum(int[] data) {\n long sum = 0;\n for (int i = 0; i < num; i++) {\n sum += data[i];\n }\n return sum;\n }",
"arraySum",
"{\n long sum = 0;\n for (int i = 0; i < num; i++) {\n sum += data[i];\n }\n return sum;\n }",
"long sum = 0;",
"sum",
"0",
"for (int i = 0; i < num; i++) {\n sum += data[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n sum += data[i];\n }",
"{\n sum += data[i];\n }",
"sum += data[i]",
"sum",
"data[i]",
"data",
"i",
"return sum;",
"sum",
"int[] data",
"data"
] | import java.io.*;
class Main {
private static int num;
private static int[] data;
public static void main(String[] args) {
dataSet();
long min = arrayMin(data);
long max = arrayMax(data);
long sum = arraySum(data);
System.out.println(min + " " + max + " " + sum);
}
static void dataSet() {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
try {
String numString = reader.readLine();
String[] dataString = reader.readLine().split(" ");
num = Integer.parseInt(numString);
data = new int[num];
for (int i = 0; i < num; i++) {
data[i] = Integer.parseInt(dataString[i]);
}
} catch (NumberFormatException e) {
System.out.println(e);
} catch (IOException e) {
System.out.println(e);
}
}
static long arrayMin(int[] data) {
long min = Long.MAX_VALUE;
for (int i = 0; i < data.length; i++) {
min = Math.min(min, data[i]);
}
return min;
}
static long arrayMax(int[] data) {
long max = Long.MIN_VALUE;
for (int i = 0; i < data.length; i++) {
max = Math.max(max, data[i]);
}
return max;
}
static long arraySum(int[] data) {
long sum = 0;
for (int i = 0; i < num; i++) {
sum += data[i];
}
return sum;
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
20,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
4,
18,
13,
13,
41,
13,
18,
13,
17,
41,
13,
18,
13,
2,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
18,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
124,
8
],
[
124,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
11,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
11,
37
],
[
37,
38
],
[
37,
39
],
[
40,
41
],
[
40,
42
],
[
11,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
43,
53
],
[
53,
54
],
[
54,
55
],
[
43,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
65,
67
],
[
11,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
11,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
74,
76
],
[
11,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
81,
83
],
[
11,
84
],
[
84,
85
],
[
84,
86
],
[
11,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
94,
96
],
[
87,
97
],
[
97,
98
],
[
98,
99
],
[
87,
100
],
[
101,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
104,
106
],
[
11,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
115,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
113,
119
],
[
115,
120
],
[
9,
121
],
[
121,
122
],
[
0,
123
],
[
123,
124
],
[
123,
125
]
] | [
"import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\n\t\tString line2 = sc.nextLine();\n\t\tString[] array = line2.split(\" \");\n\n\t\tlong[] ai = new long[array.length];\n\t\tfor (int i = 0; i < ai.length; i++) {\n\t\t\tai[i] = Integer.parseInt(array[i]);\n\t\t}\n\n\t\tArrays.sort(ai);\n\t\tlong A = ai[0];\n\t\tlong B = ai[n - 1];\n\n\t\tlong C = 0;\n\t\tfor (int i = 0; i < ai.length; i++) {\n\t\t\tC += ai[i];\n\n\t\t}\n\n\t\tSystem.out.println(A + \" \" + B + \" \" + C);\n\n\t}\n\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\n\t\tString line2 = sc.nextLine();\n\t\tString[] array = line2.split(\" \");\n\n\t\tlong[] ai = new long[array.length];\n\t\tfor (int i = 0; i < ai.length; i++) {\n\t\t\tai[i] = Integer.parseInt(array[i]);\n\t\t}\n\n\t\tArrays.sort(ai);\n\t\tlong A = ai[0];\n\t\tlong B = ai[n - 1];\n\n\t\tlong C = 0;\n\t\tfor (int i = 0; i < ai.length; i++) {\n\t\t\tC += ai[i];\n\n\t\t}\n\n\t\tSystem.out.println(A + \" \" + B + \" \" + C);\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\n\t\tString line2 = sc.nextLine();\n\t\tString[] array = line2.split(\" \");\n\n\t\tlong[] ai = new long[array.length];\n\t\tfor (int i = 0; i < ai.length; i++) {\n\t\t\tai[i] = Integer.parseInt(array[i]);\n\t\t}\n\n\t\tArrays.sort(ai);\n\t\tlong A = ai[0];\n\t\tlong B = ai[n - 1];\n\n\t\tlong C = 0;\n\t\tfor (int i = 0; i < ai.length; i++) {\n\t\t\tC += ai[i];\n\n\t\t}\n\n\t\tSystem.out.println(A + \" \" + B + \" \" + C);\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\n\t\tString line2 = sc.nextLine();\n\t\tString[] array = line2.split(\" \");\n\n\t\tlong[] ai = new long[array.length];\n\t\tfor (int i = 0; i < ai.length; i++) {\n\t\t\tai[i] = Integer.parseInt(array[i]);\n\t\t}\n\n\t\tArrays.sort(ai);\n\t\tlong A = ai[0];\n\t\tlong B = ai[n - 1];\n\n\t\tlong C = 0;\n\t\tfor (int i = 0; i < ai.length; i++) {\n\t\t\tC += ai[i];\n\n\t\t}\n\n\t\tSystem.out.println(A + \" \" + B + \" \" + C);\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String line1 = sc.nextLine();",
"line1",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int n = Integer.parseInt(line1);",
"n",
"Integer.parseInt(line1)",
"Integer.parseInt",
"Integer",
"line1",
"String line2 = sc.nextLine();",
"line2",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String[] array = line2.split(\" \");",
"array",
"line2.split(\" \")",
"line2.split",
"line2",
"\" \"",
"long[] ai = new long[array.length];",
"ai",
"new long[array.length]",
"array.length",
"array",
"array.length",
"for (int i = 0; i < ai.length; i++) {\n\t\t\tai[i] = Integer.parseInt(array[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < ai.length",
"i",
"ai.length",
"ai",
"ai.length",
"i++",
"i++",
"i",
"{\n\t\t\tai[i] = Integer.parseInt(array[i]);\n\t\t}",
"{\n\t\t\tai[i] = Integer.parseInt(array[i]);\n\t\t}",
"ai[i] = Integer.parseInt(array[i])",
"ai[i]",
"ai",
"i",
"Integer.parseInt(array[i])",
"Integer.parseInt",
"Integer",
"array[i]",
"array",
"i",
"Arrays.sort(ai)",
"Arrays.sort",
"Arrays",
"ai",
"long A = ai[0];",
"A",
"ai[0]",
"ai",
"0",
"long B = ai[n - 1];",
"B",
"ai[n - 1]",
"ai",
"n - 1",
"n",
"1",
"long C = 0;",
"C",
"0",
"for (int i = 0; i < ai.length; i++) {\n\t\t\tC += ai[i];\n\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < ai.length",
"i",
"ai.length",
"ai",
"ai.length",
"i++",
"i++",
"i",
"{\n\t\t\tC += ai[i];\n\n\t\t}",
"{\n\t\t\tC += ai[i];\n\n\t\t}",
"C += ai[i]",
"C",
"ai[i]",
"ai",
"i",
"System.out.println(A + \" \" + B + \" \" + C)",
"System.out.println",
"System.out",
"System",
"System.out",
"A + \" \" + B + \" \" + C",
"\" \"",
"B",
"A + \" \" + B + \" \" + C",
"A",
"\" \"",
"B",
"\" \"",
"C",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\n\t\tString line2 = sc.nextLine();\n\t\tString[] array = line2.split(\" \");\n\n\t\tlong[] ai = new long[array.length];\n\t\tfor (int i = 0; i < ai.length; i++) {\n\t\t\tai[i] = Integer.parseInt(array[i]);\n\t\t}\n\n\t\tArrays.sort(ai);\n\t\tlong A = ai[0];\n\t\tlong B = ai[n - 1];\n\n\t\tlong C = 0;\n\t\tfor (int i = 0; i < ai.length; i++) {\n\t\t\tC += ai[i];\n\n\t\t}\n\n\t\tSystem.out.println(A + \" \" + B + \" \" + C);\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\n\t\tString line2 = sc.nextLine();\n\t\tString[] array = line2.split(\" \");\n\n\t\tlong[] ai = new long[array.length];\n\t\tfor (int i = 0; i < ai.length; i++) {\n\t\t\tai[i] = Integer.parseInt(array[i]);\n\t\t}\n\n\t\tArrays.sort(ai);\n\t\tlong A = ai[0];\n\t\tlong B = ai[n - 1];\n\n\t\tlong C = 0;\n\t\tfor (int i = 0; i < ai.length; i++) {\n\t\t\tC += ai[i];\n\n\t\t}\n\n\t\tSystem.out.println(A + \" \" + B + \" \" + C);\n\n\t}\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);
String line1 = sc.nextLine();
int n = Integer.parseInt(line1);
String line2 = sc.nextLine();
String[] array = line2.split(" ");
long[] ai = new long[array.length];
for (int i = 0; i < ai.length; i++) {
ai[i] = Integer.parseInt(array[i]);
}
Arrays.sort(ai);
long A = ai[0];
long B = ai[n - 1];
long C = 0;
for (int i = 0; i < ai.length; i++) {
C += ai[i];
}
System.out.println(A + " " + B + " " + C);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
40,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
13,
0,
13,
4,
18,
13,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
10,
19
],
[
19,
20
],
[
19,
21
],
[
10,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
10,
26
],
[
26,
27
],
[
26,
28
],
[
10,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
49,
53
],
[
41,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
56,
60
],
[
41,
61
],
[
61,
62
],
[
61,
63
],
[
10,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
72,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
70,
76
],
[
72,
77
],
[
6,
78
],
[
78,
79
]
] | [
"import java.util.*;\n\nclass Main {\n public static void main(String args[]) {\n try (Scanner sc = new Scanner(System.in)) {\n long N = sc.nextInt();\n long minv = 100000001L, maxv = -1000000000L, sumv = 0;\n for (int i = 0; i < N; i++) {\n long x = sc.nextInt();\n minv = Math.min(x, minv);\n maxv = Math.max(x, maxv);\n sumv += x;\n }\n System.out.println(minv + \" \" + maxv + \" \" + sumv);\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String args[]) {\n try (Scanner sc = new Scanner(System.in)) {\n long N = sc.nextInt();\n long minv = 100000001L, maxv = -1000000000L, sumv = 0;\n for (int i = 0; i < N; i++) {\n long x = sc.nextInt();\n minv = Math.min(x, minv);\n maxv = Math.max(x, maxv);\n sumv += x;\n }\n System.out.println(minv + \" \" + maxv + \" \" + sumv);\n }\n }\n}",
"Main",
"public static void main(String args[]) {\n try (Scanner sc = new Scanner(System.in)) {\n long N = sc.nextInt();\n long minv = 100000001L, maxv = -1000000000L, sumv = 0;\n for (int i = 0; i < N; i++) {\n long x = sc.nextInt();\n minv = Math.min(x, minv);\n maxv = Math.max(x, maxv);\n sumv += x;\n }\n System.out.println(minv + \" \" + maxv + \" \" + sumv);\n }\n }",
"main",
"{\n try (Scanner sc = new Scanner(System.in)) {\n long N = sc.nextInt();\n long minv = 100000001L, maxv = -1000000000L, sumv = 0;\n for (int i = 0; i < N; i++) {\n long x = sc.nextInt();\n minv = Math.min(x, minv);\n maxv = Math.max(x, maxv);\n sumv += x;\n }\n System.out.println(minv + \" \" + maxv + \" \" + sumv);\n }\n }",
"try (Scanner sc = new Scanner(System.in)) {\n long N = sc.nextInt();\n long minv = 100000001L, maxv = -1000000000L, sumv = 0;\n for (int i = 0; i < N; i++) {\n long x = sc.nextInt();\n minv = Math.min(x, minv);\n maxv = Math.max(x, maxv);\n sumv += x;\n }\n System.out.println(minv + \" \" + maxv + \" \" + sumv);\n }",
"{\n long N = sc.nextInt();\n long minv = 100000001L, maxv = -1000000000L, sumv = 0;\n for (int i = 0; i < N; i++) {\n long x = sc.nextInt();\n minv = Math.min(x, minv);\n maxv = Math.max(x, maxv);\n sumv += x;\n }\n System.out.println(minv + \" \" + maxv + \" \" + sumv);\n }",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"long N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long minv = 100000001L",
"minv",
"100000001L",
"maxv = -1000000000L",
"maxv",
"-1000000000L",
"1000000000L",
"sumv = 0;",
"sumv",
"0",
"for (int i = 0; i < N; i++) {\n long x = sc.nextInt();\n minv = Math.min(x, minv);\n maxv = Math.max(x, maxv);\n sumv += x;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n long x = sc.nextInt();\n minv = Math.min(x, minv);\n maxv = Math.max(x, maxv);\n sumv += x;\n }",
"{\n long x = sc.nextInt();\n minv = Math.min(x, minv);\n maxv = Math.max(x, maxv);\n sumv += x;\n }",
"long x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"minv = Math.min(x, minv)",
"minv",
"Math.min(x, minv)",
"Math.min",
"Math",
"x",
"minv",
"maxv = Math.max(x, maxv)",
"maxv",
"Math.max(x, maxv)",
"Math.max",
"Math",
"x",
"maxv",
"sumv += x",
"sumv",
"x",
"System.out.println(minv + \" \" + maxv + \" \" + sumv)",
"System.out.println",
"System.out",
"System",
"System.out",
"minv + \" \" + maxv + \" \" + sumv",
"\" \"",
"maxv",
"minv + \" \" + maxv + \" \" + sumv",
"minv",
"\" \"",
"maxv",
"\" \"",
"sumv",
"String args[]",
"args"
] | import java.util.*;
class Main {
public static void main(String args[]) {
try (Scanner sc = new Scanner(System.in)) {
long N = sc.nextInt();
long minv = 100000001L, maxv = -1000000000L, sumv = 0;
for (int i = 0; i < N; i++) {
long x = sc.nextInt();
minv = Math.min(x, minv);
maxv = Math.max(x, maxv);
sumv += x;
}
System.out.println(minv + " " + maxv + " " + sumv);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
20,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
0,
13,
18,
13,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
18,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
18,
13,
2,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
115,
8
],
[
115,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
11,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
11,
37
],
[
37,
38
],
[
37,
39
],
[
11,
41
],
[
41,
42
],
[
41,
43
],
[
11,
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
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
64,
65
],
[
64,
66
],
[
56,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
69,
71
],
[
11,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
11,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
11,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
11,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
97,
99
],
[
11,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
11,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
9,
112
],
[
112,
113
],
[
0,
114
],
[
114,
115
],
[
114,
116
]
] | [
"import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\n\t\tString line2 = sc.nextLine();\n\t\tString[] set1 = line2.split(\" \");\n\t\tint[] set = new int[n];\n\t\tlong sum = 0;\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tset[i] = Integer.parseInt(set1[i]);\n\t\t\tsum += set[i];\n\t\t}\n\n\t\tArrays.sort(set);\n\n\t\tSystem.out.print(set[0]);\n\t\tSystem.out.print(\" \");\n\t\tSystem.out.print(set[n-1]);\n\t\tSystem.out.print(\" \");\n\t\tSystem.out.println(sum);\n\t\t\n\t}\n\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\n\t\tString line2 = sc.nextLine();\n\t\tString[] set1 = line2.split(\" \");\n\t\tint[] set = new int[n];\n\t\tlong sum = 0;\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tset[i] = Integer.parseInt(set1[i]);\n\t\t\tsum += set[i];\n\t\t}\n\n\t\tArrays.sort(set);\n\n\t\tSystem.out.print(set[0]);\n\t\tSystem.out.print(\" \");\n\t\tSystem.out.print(set[n-1]);\n\t\tSystem.out.print(\" \");\n\t\tSystem.out.println(sum);\n\t\t\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\n\t\tString line2 = sc.nextLine();\n\t\tString[] set1 = line2.split(\" \");\n\t\tint[] set = new int[n];\n\t\tlong sum = 0;\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tset[i] = Integer.parseInt(set1[i]);\n\t\t\tsum += set[i];\n\t\t}\n\n\t\tArrays.sort(set);\n\n\t\tSystem.out.print(set[0]);\n\t\tSystem.out.print(\" \");\n\t\tSystem.out.print(set[n-1]);\n\t\tSystem.out.print(\" \");\n\t\tSystem.out.println(sum);\n\t\t\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\n\t\tString line2 = sc.nextLine();\n\t\tString[] set1 = line2.split(\" \");\n\t\tint[] set = new int[n];\n\t\tlong sum = 0;\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tset[i] = Integer.parseInt(set1[i]);\n\t\t\tsum += set[i];\n\t\t}\n\n\t\tArrays.sort(set);\n\n\t\tSystem.out.print(set[0]);\n\t\tSystem.out.print(\" \");\n\t\tSystem.out.print(set[n-1]);\n\t\tSystem.out.print(\" \");\n\t\tSystem.out.println(sum);\n\t\t\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String line1 = sc.nextLine();",
"line1",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int n = Integer.parseInt(line1);",
"n",
"Integer.parseInt(line1)",
"Integer.parseInt",
"Integer",
"line1",
"String line2 = sc.nextLine();",
"line2",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String[] set1 = line2.split(\" \");",
"set1",
"line2.split(\" \")",
"line2.split",
"line2",
"\" \"",
"int[] set = new int[n];",
"set",
"new int[n]",
"n",
"long sum = 0;",
"sum",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\tset[i] = Integer.parseInt(set1[i]);\n\t\t\tsum += set[i];\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tset[i] = Integer.parseInt(set1[i]);\n\t\t\tsum += set[i];\n\t\t}",
"{\n\t\t\tset[i] = Integer.parseInt(set1[i]);\n\t\t\tsum += set[i];\n\t\t}",
"set[i] = Integer.parseInt(set1[i])",
"set[i]",
"set",
"i",
"Integer.parseInt(set1[i])",
"Integer.parseInt",
"Integer",
"set1[i]",
"set1",
"i",
"sum += set[i]",
"sum",
"set[i]",
"set",
"i",
"Arrays.sort(set)",
"Arrays.sort",
"Arrays",
"set",
"System.out.print(set[0])",
"System.out.print",
"System.out",
"System",
"System.out",
"set[0]",
"set",
"0",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.print(set[n-1])",
"System.out.print",
"System.out",
"System",
"System.out",
"set[n-1]",
"set",
"n-1",
"n",
"1",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\n\t\tString line2 = sc.nextLine();\n\t\tString[] set1 = line2.split(\" \");\n\t\tint[] set = new int[n];\n\t\tlong sum = 0;\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tset[i] = Integer.parseInt(set1[i]);\n\t\t\tsum += set[i];\n\t\t}\n\n\t\tArrays.sort(set);\n\n\t\tSystem.out.print(set[0]);\n\t\tSystem.out.print(\" \");\n\t\tSystem.out.print(set[n-1]);\n\t\tSystem.out.print(\" \");\n\t\tSystem.out.println(sum);\n\t\t\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tint n = Integer.parseInt(line1);\n\n\t\tString line2 = sc.nextLine();\n\t\tString[] set1 = line2.split(\" \");\n\t\tint[] set = new int[n];\n\t\tlong sum = 0;\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tset[i] = Integer.parseInt(set1[i]);\n\t\t\tsum += set[i];\n\t\t}\n\n\t\tArrays.sort(set);\n\n\t\tSystem.out.print(set[0]);\n\t\tSystem.out.print(\" \");\n\t\tSystem.out.print(set[n-1]);\n\t\tSystem.out.print(\" \");\n\t\tSystem.out.println(sum);\n\t\t\n\t}\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);
String line1 = sc.nextLine();
int n = Integer.parseInt(line1);
String line2 = sc.nextLine();
String[] set1 = line2.split(" ");
int[] set = new int[n];
long sum = 0;
for (int i = 0; i < n; i++) {
set[i] = Integer.parseInt(set1[i]);
sum += set[i];
}
Arrays.sort(set);
System.out.print(set[0]);
System.out.print(" ");
System.out.print(set[n-1]);
System.out.print(" ");
System.out.println(sum);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
41,
13,
20,
13,
0,
13,
0,
13,
0,
18,
13,
17,
4,
18,
13,
41,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
2,
18,
13,
13,
13,
0,
13,
18,
13,
13,
14,
2,
18,
13,
13,
13,
0,
13,
18,
13,
13,
0,
13,
18,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
8,
36
],
[
36,
37
],
[
36,
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
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
51,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
59,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
51,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
70,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
51,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
8,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
94,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
92,
98
],
[
94,
99
],
[
6,
100
],
[
100,
101
]
] | [
"import java.util.Scanner;\n\nclass Main\n{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int min, max;\n int[] a = new int[num];\n\n min = max = a[0] = sc.nextInt();\n long sum = (long)min;\n\n for(int i=1 ; i < num ; i++){\n a[i] = sc.nextInt();\n if(a[i]<min) min = a[i];\n if(a[i]>max) max = a[i];\n sum += a[i];\n }\n System.out.println(min+\" \"+max+\" \"+sum);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main\n{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int min, max;\n int[] a = new int[num];\n\n min = max = a[0] = sc.nextInt();\n long sum = (long)min;\n\n for(int i=1 ; i < num ; i++){\n a[i] = sc.nextInt();\n if(a[i]<min) min = a[i];\n if(a[i]>max) max = a[i];\n sum += a[i];\n }\n System.out.println(min+\" \"+max+\" \"+sum);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int min, max;\n int[] a = new int[num];\n\n min = max = a[0] = sc.nextInt();\n long sum = (long)min;\n\n for(int i=1 ; i < num ; i++){\n a[i] = sc.nextInt();\n if(a[i]<min) min = a[i];\n if(a[i]>max) max = a[i];\n sum += a[i];\n }\n System.out.println(min+\" \"+max+\" \"+sum);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n int min, max;\n int[] a = new int[num];\n\n min = max = a[0] = sc.nextInt();\n long sum = (long)min;\n\n for(int i=1 ; i < num ; i++){\n a[i] = sc.nextInt();\n if(a[i]<min) min = a[i];\n if(a[i]>max) max = a[i];\n sum += a[i];\n }\n System.out.println(min+\" \"+max+\" \"+sum);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int min",
"min",
"max;",
"max",
"int[] a = new int[num];",
"a",
"new int[num]",
"num",
"min = max = a[0] = sc.nextInt()",
"min",
"max = a[0] = sc.nextInt()",
"max",
"a[0] = sc.nextInt()",
"a[0]",
"a",
"0",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long sum = (long)min;",
"sum",
"(long)min",
"for(int i=1 ; i < num ; i++){\n a[i] = sc.nextInt();\n if(a[i]<min) min = a[i];\n if(a[i]>max) max = a[i];\n sum += a[i];\n }",
"int i=1 ;",
"int i=1 ;",
"i",
"1",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n a[i] = sc.nextInt();\n if(a[i]<min) min = a[i];\n if(a[i]>max) max = a[i];\n sum += a[i];\n }",
"{\n a[i] = sc.nextInt();\n if(a[i]<min) min = a[i];\n if(a[i]>max) max = a[i];\n sum += a[i];\n }",
"a[i] = sc.nextInt()",
"a[i]",
"a",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(a[i]<min) min = a[i];",
"a[i]<min",
"a[i]",
"a",
"i",
"min",
"min = a[i]",
"min",
"a[i]",
"a",
"i",
"if(a[i]>max) max = a[i];",
"a[i]>max",
"a[i]",
"a",
"i",
"max",
"max = a[i]",
"max",
"a[i]",
"a",
"i",
"sum += a[i]",
"sum",
"a[i]",
"a",
"i",
"System.out.println(min+\" \"+max+\" \"+sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min+\" \"+max+\" \"+sum",
"\" \"",
"max",
"min+\" \"+max+\" \"+sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args"
] | import java.util.Scanner;
class Main
{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int num = sc.nextInt();
int min, max;
int[] a = new int[num];
min = max = a[0] = sc.nextInt();
long sum = (long)min;
for(int i=1 ; i < num ; i++){
a[i] = sc.nextInt();
if(a[i]<min) min = a[i];
if(a[i]>max) max = a[i];
sum += a[i];
}
System.out.println(min+" "+max+" "+sum);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
18,
13,
13,
41,
13,
18,
13,
17,
41,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
13,
18,
13,
13,
0,
13,
18,
13,
13,
14,
2,
13,
18,
13,
13,
0,
13,
18,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
114,
5
],
[
114,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
24,
29
],
[
29,
30
],
[
29,
31
],
[
24,
32
],
[
32,
33
],
[
33,
34
],
[
24,
35
],
[
36,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
42,
43
],
[
36,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
8,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
8,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
8,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
59,
70
],
[
71,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
75,
77
],
[
72,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
80,
82
],
[
71,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
86,
88
],
[
83,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
91,
93
],
[
8,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
102,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
100,
106
],
[
102,
107
],
[
8,
108
],
[
108,
109
],
[
109,
110
],
[
6,
111
],
[
111,
112
],
[
0,
113
],
[
113,
114
],
[
113,
115
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint a[] = new int[n];\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i]=sc.nextInt();\n\t\t\tsum += a[i];\n\t\t}\n\t\tint max = a[0];\n\t\tint min = a[0];\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tif (max > a[i])\n\t\t\t\tmax = a[i];\n\t\t\tif (min < a[i])\n\t\t\t\tmin = a[i];\n\t\t}\n\t\tSystem.out.println(max+\" \"+min+\" \"+sum);\n\n\t\tsc.close();\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint a[] = new int[n];\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i]=sc.nextInt();\n\t\t\tsum += a[i];\n\t\t}\n\t\tint max = a[0];\n\t\tint min = a[0];\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tif (max > a[i])\n\t\t\t\tmax = a[i];\n\t\t\tif (min < a[i])\n\t\t\t\tmin = a[i];\n\t\t}\n\t\tSystem.out.println(max+\" \"+min+\" \"+sum);\n\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint a[] = new int[n];\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i]=sc.nextInt();\n\t\t\tsum += a[i];\n\t\t}\n\t\tint max = a[0];\n\t\tint min = a[0];\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tif (max > a[i])\n\t\t\t\tmax = a[i];\n\t\t\tif (min < a[i])\n\t\t\t\tmin = a[i];\n\t\t}\n\t\tSystem.out.println(max+\" \"+min+\" \"+sum);\n\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint a[] = new int[n];\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i]=sc.nextInt();\n\t\t\tsum += a[i];\n\t\t}\n\t\tint max = a[0];\n\t\tint min = a[0];\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tif (max > a[i])\n\t\t\t\tmax = a[i];\n\t\t\tif (min < a[i])\n\t\t\t\tmin = a[i];\n\t\t}\n\t\tSystem.out.println(max+\" \"+min+\" \"+sum);\n\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a[] = new int[n];",
"a",
"new int[n]",
"n",
"long sum = 0;",
"sum",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\ta[i]=sc.nextInt();\n\t\t\tsum += a[i];\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\ta[i]=sc.nextInt();\n\t\t\tsum += a[i];\n\t\t}",
"{\n\t\t\ta[i]=sc.nextInt();\n\t\t\tsum += a[i];\n\t\t}",
"a[i]=sc.nextInt()",
"a[i]",
"a",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sum += a[i]",
"sum",
"a[i]",
"a",
"i",
"int max = a[0];",
"max",
"a[0]",
"a",
"0",
"int min = a[0];",
"min",
"a[0]",
"a",
"0",
"for (int i = 1; i < n; i++) {\n\t\t\tif (max > a[i])\n\t\t\t\tmax = a[i];\n\t\t\tif (min < a[i])\n\t\t\t\tmin = a[i];\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif (max > a[i])\n\t\t\t\tmax = a[i];\n\t\t\tif (min < a[i])\n\t\t\t\tmin = a[i];\n\t\t}",
"{\n\t\t\tif (max > a[i])\n\t\t\t\tmax = a[i];\n\t\t\tif (min < a[i])\n\t\t\t\tmin = a[i];\n\t\t}",
"if (max > a[i])\n\t\t\t\tmax = a[i];",
"max > a[i]",
"max",
"a[i]",
"a",
"i",
"max = a[i]",
"max",
"a[i]",
"a",
"i",
"if (min < a[i])\n\t\t\t\tmin = a[i];",
"min < a[i]",
"min",
"a[i]",
"a",
"i",
"min = a[i]",
"min",
"a[i]",
"a",
"i",
"System.out.println(max+\" \"+min+\" \"+sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"max+\" \"+min+\" \"+sum",
"\" \"",
"min",
"max+\" \"+min+\" \"+sum",
"max",
"\" \"",
"min",
"\" \"",
"sum",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint a[] = new int[n];\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i]=sc.nextInt();\n\t\t\tsum += a[i];\n\t\t}\n\t\tint max = a[0];\n\t\tint min = a[0];\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tif (max > a[i])\n\t\t\t\tmax = a[i];\n\t\t\tif (min < a[i])\n\t\t\t\tmin = a[i];\n\t\t}\n\t\tSystem.out.println(max+\" \"+min+\" \"+sum);\n\n\t\tsc.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint a[] = new int[n];\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i]=sc.nextInt();\n\t\t\tsum += a[i];\n\t\t}\n\t\tint max = a[0];\n\t\tint min = a[0];\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tif (max > a[i])\n\t\t\t\tmax = a[i];\n\t\t\tif (min < a[i])\n\t\t\t\tmin = a[i];\n\t\t}\n\t\tSystem.out.println(max+\" \"+min+\" \"+sum);\n\n\t\tsc.close();\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int a[] = new int[n];
long sum = 0;
for (int i = 0; i < n; i++) {
a[i]=sc.nextInt();
sum += a[i];
}
int max = a[0];
int min = a[0];
for (int i = 1; i < n; i++) {
if (max > a[i])
max = a[i];
if (min < a[i])
min = a[i];
}
System.out.println(max+" "+min+" "+sum);
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
13,
30,
0,
18,
13,
13,
4,
18,
13,
30,
3,
0,
13,
18,
13,
17,
0,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
13,
18,
13,
13,
30,
0,
13,
18,
13,
13,
14,
2,
13,
18,
13,
13,
30,
0,
13,
18,
13,
13,
0,
13,
18,
13,
13,
4,
18,
18,
13,
13,
17,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
121,
5
],
[
121,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
43,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
43,
55
],
[
55,
56
],
[
8,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
8,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
8,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
67,
78
],
[
79,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
80,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
89,
91
],
[
79,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
95,
97
],
[
92,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
101,
103
],
[
79,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
106,
108
],
[
8,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
109,
115
],
[
109,
116
],
[
109,
117
],
[
6,
118
],
[
118,
119
],
[
0,
120
],
[
120,
121
],
[
120,
122
]
] | [
"import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner kb=new Scanner(System.in);\n\t\tint n=kb.nextInt();\n\t\tlong a[]=new long[20000];\n\t\tlong nowMax=0,nowMin=0;\n\t\tlong sum=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tif(kb.hasNextLong()){\n\t\t\t\ta[i]=kb.nextLong();\n\t\t\t}else{\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tnowMax=a[0];\n\t\tnowMin=a[0];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tif(nowMax<a[i]){\n\t\t\t\tnowMax=a[i];\n\t\t\t}if(nowMin>a[i]){\n\t\t\t\tnowMin=a[i];\n\t\t\t}\n\n\t\t\tsum+=a[i];\n\t\t}\n\n\t\tSystem.out.printf(\"%d %d %d\\n\",nowMin,nowMax,sum);\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 kb=new Scanner(System.in);\n\t\tint n=kb.nextInt();\n\t\tlong a[]=new long[20000];\n\t\tlong nowMax=0,nowMin=0;\n\t\tlong sum=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tif(kb.hasNextLong()){\n\t\t\t\ta[i]=kb.nextLong();\n\t\t\t}else{\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tnowMax=a[0];\n\t\tnowMin=a[0];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tif(nowMax<a[i]){\n\t\t\t\tnowMax=a[i];\n\t\t\t}if(nowMin>a[i]){\n\t\t\t\tnowMin=a[i];\n\t\t\t}\n\n\t\t\tsum+=a[i];\n\t\t}\n\n\t\tSystem.out.printf(\"%d %d %d\\n\",nowMin,nowMax,sum);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner kb=new Scanner(System.in);\n\t\tint n=kb.nextInt();\n\t\tlong a[]=new long[20000];\n\t\tlong nowMax=0,nowMin=0;\n\t\tlong sum=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tif(kb.hasNextLong()){\n\t\t\t\ta[i]=kb.nextLong();\n\t\t\t}else{\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tnowMax=a[0];\n\t\tnowMin=a[0];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tif(nowMax<a[i]){\n\t\t\t\tnowMax=a[i];\n\t\t\t}if(nowMin>a[i]){\n\t\t\t\tnowMin=a[i];\n\t\t\t}\n\n\t\t\tsum+=a[i];\n\t\t}\n\n\t\tSystem.out.printf(\"%d %d %d\\n\",nowMin,nowMax,sum);\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner kb=new Scanner(System.in);\n\t\tint n=kb.nextInt();\n\t\tlong a[]=new long[20000];\n\t\tlong nowMax=0,nowMin=0;\n\t\tlong sum=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tif(kb.hasNextLong()){\n\t\t\t\ta[i]=kb.nextLong();\n\t\t\t}else{\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tnowMax=a[0];\n\t\tnowMin=a[0];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tif(nowMax<a[i]){\n\t\t\t\tnowMax=a[i];\n\t\t\t}if(nowMin>a[i]){\n\t\t\t\tnowMin=a[i];\n\t\t\t}\n\n\t\t\tsum+=a[i];\n\t\t}\n\n\t\tSystem.out.printf(\"%d %d %d\\n\",nowMin,nowMax,sum);\n\t}",
"Scanner kb=new Scanner(System.in);",
"kb",
"new Scanner(System.in)",
"int n=kb.nextInt();",
"n",
"kb.nextInt()",
"kb.nextInt",
"kb",
"long a[]=new long[20000];",
"a",
"new long[20000]",
"20000",
"long nowMax=0",
"nowMax",
"0",
"nowMin=0;",
"nowMin",
"0",
"long sum=0;",
"sum",
"0",
"for(int i=0;i<n;i++){\n\t\t\tif(kb.hasNextLong()){\n\t\t\t\ta[i]=kb.nextLong();\n\t\t\t}else{\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif(kb.hasNextLong()){\n\t\t\t\ta[i]=kb.nextLong();\n\t\t\t}else{\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}",
"{\n\t\t\tif(kb.hasNextLong()){\n\t\t\t\ta[i]=kb.nextLong();\n\t\t\t}else{\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}",
"if(kb.hasNextLong()){\n\t\t\t\ta[i]=kb.nextLong();\n\t\t\t}else{\n\t\t\t\tbreak;\n\t\t\t}",
"kb.hasNextLong()",
"kb.hasNextLong",
"kb",
"{\n\t\t\t\ta[i]=kb.nextLong();\n\t\t\t}",
"a[i]=kb.nextLong()",
"a[i]",
"a",
"i",
"kb.nextLong()",
"kb.nextLong",
"kb",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"nowMax=a[0]",
"nowMax",
"a[0]",
"a",
"0",
"nowMin=a[0]",
"nowMin",
"a[0]",
"a",
"0",
"for(int i=0;i<n;i++){\n\t\t\tif(nowMax<a[i]){\n\t\t\t\tnowMax=a[i];\n\t\t\t}if(nowMin>a[i]){\n\t\t\t\tnowMin=a[i];\n\t\t\t}\n\n\t\t\tsum+=a[i];\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif(nowMax<a[i]){\n\t\t\t\tnowMax=a[i];\n\t\t\t}if(nowMin>a[i]){\n\t\t\t\tnowMin=a[i];\n\t\t\t}\n\n\t\t\tsum+=a[i];\n\t\t}",
"{\n\t\t\tif(nowMax<a[i]){\n\t\t\t\tnowMax=a[i];\n\t\t\t}if(nowMin>a[i]){\n\t\t\t\tnowMin=a[i];\n\t\t\t}\n\n\t\t\tsum+=a[i];\n\t\t}",
"if(nowMax<a[i]){\n\t\t\t\tnowMax=a[i];\n\t\t\t}",
"nowMax<a[i]",
"nowMax",
"a[i]",
"a",
"i",
"{\n\t\t\t\tnowMax=a[i];\n\t\t\t}",
"nowMax=a[i]",
"nowMax",
"a[i]",
"a",
"i",
"if(nowMin>a[i]){\n\t\t\t\tnowMin=a[i];\n\t\t\t}",
"nowMin>a[i]",
"nowMin",
"a[i]",
"a",
"i",
"{\n\t\t\t\tnowMin=a[i];\n\t\t\t}",
"nowMin=a[i]",
"nowMin",
"a[i]",
"a",
"i",
"sum+=a[i]",
"sum",
"a[i]",
"a",
"i",
"System.out.printf(\"%d %d %d\\n\",nowMin,nowMax,sum)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d %d %d\\n\"",
"nowMin",
"nowMax",
"sum",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner kb=new Scanner(System.in);\n\t\tint n=kb.nextInt();\n\t\tlong a[]=new long[20000];\n\t\tlong nowMax=0,nowMin=0;\n\t\tlong sum=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tif(kb.hasNextLong()){\n\t\t\t\ta[i]=kb.nextLong();\n\t\t\t}else{\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tnowMax=a[0];\n\t\tnowMin=a[0];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tif(nowMax<a[i]){\n\t\t\t\tnowMax=a[i];\n\t\t\t}if(nowMin>a[i]){\n\t\t\t\tnowMin=a[i];\n\t\t\t}\n\n\t\t\tsum+=a[i];\n\t\t}\n\n\t\tSystem.out.printf(\"%d %d %d\\n\",nowMin,nowMax,sum);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner kb=new Scanner(System.in);\n\t\tint n=kb.nextInt();\n\t\tlong a[]=new long[20000];\n\t\tlong nowMax=0,nowMin=0;\n\t\tlong sum=0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tif(kb.hasNextLong()){\n\t\t\t\ta[i]=kb.nextLong();\n\t\t\t}else{\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tnowMax=a[0];\n\t\tnowMin=a[0];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tif(nowMax<a[i]){\n\t\t\t\tnowMax=a[i];\n\t\t\t}if(nowMin>a[i]){\n\t\t\t\tnowMin=a[i];\n\t\t\t}\n\n\t\t\tsum+=a[i];\n\t\t}\n\n\t\tSystem.out.printf(\"%d %d %d\\n\",nowMin,nowMax,sum);\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner kb=new Scanner(System.in);
int n=kb.nextInt();
long a[]=new long[20000];
long nowMax=0,nowMin=0;
long sum=0;
for(int i=0;i<n;i++){
if(kb.hasNextLong()){
a[i]=kb.nextLong();
}else{
break;
}
}
nowMax=a[0];
nowMin=a[0];
for(int i=0;i<n;i++){
if(nowMax<a[i]){
nowMax=a[i];
}if(nowMin>a[i]){
nowMin=a[i];
}
sum+=a[i];
}
System.out.printf("%d %d %d\n",nowMin,nowMax,sum);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
2,
13,
13,
0,
13,
13,
14,
2,
13,
13,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
2,
17,
13,
17,
13,
17,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
22,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
27,
29
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
11,
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
],
[
55,
57
],
[
45,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
62,
64
],
[
45,
65
],
[
65,
66
],
[
65,
67
],
[
11,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
77,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
75,
81
],
[
74,
82
],
[
77,
83
],
[
9,
84
],
[
84,
85
]
] | [
"import java.util.*;\nimport java.text.*;\n\nclass Main {\n public static void main(String[]args)throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int mx = Integer.MIN_VALUE;\n int mn = Integer.MAX_VALUE;\n long sum = 0;\n for(int i = 0; i < n; i++) {\n int a = sc.nextInt();\n if(a > mx) mx = a;\n if(a < mn) mn = a;\n sum += a;\n }\n System.out.println(\"\" + mn + \" \" + mx + \" \" + sum);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.text.*;",
"text.*",
"java",
"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 mx = Integer.MIN_VALUE;\n int mn = Integer.MAX_VALUE;\n long sum = 0;\n for(int i = 0; i < n; i++) {\n int a = sc.nextInt();\n if(a > mx) mx = a;\n if(a < mn) mn = a;\n sum += a;\n }\n System.out.println(\"\" + mn + \" \" + mx + \" \" + sum);\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 mx = Integer.MIN_VALUE;\n int mn = Integer.MAX_VALUE;\n long sum = 0;\n for(int i = 0; i < n; i++) {\n int a = sc.nextInt();\n if(a > mx) mx = a;\n if(a < mn) mn = a;\n sum += a;\n }\n System.out.println(\"\" + mn + \" \" + mx + \" \" + sum);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int mx = Integer.MIN_VALUE;\n int mn = Integer.MAX_VALUE;\n long sum = 0;\n for(int i = 0; i < n; i++) {\n int a = sc.nextInt();\n if(a > mx) mx = a;\n if(a < mn) mn = a;\n sum += a;\n }\n System.out.println(\"\" + mn + \" \" + mx + \" \" + sum);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int mx = Integer.MIN_VALUE;",
"mx",
"Integer.MIN_VALUE",
"Integer",
"Integer.MIN_VALUE",
"int mn = Integer.MAX_VALUE;",
"mn",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"long sum = 0;",
"sum",
"0",
"for(int i = 0; i < n; i++) {\n int a = sc.nextInt();\n if(a > mx) mx = a;\n if(a < mn) mn = a;\n sum += a;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int a = sc.nextInt();\n if(a > mx) mx = a;\n if(a < mn) mn = a;\n sum += a;\n }",
"{\n int a = sc.nextInt();\n if(a > mx) mx = a;\n if(a < mn) mn = a;\n sum += a;\n }",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(a > mx) mx = a;",
"a > mx",
"a",
"mx",
"mx = a",
"mx",
"a",
"if(a < mn) mn = a;",
"a < mn",
"a",
"mn",
"mn = a",
"mn",
"a",
"sum += a",
"sum",
"a",
"System.out.println(\"\" + mn + \" \" + mx + \" \" + sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\" + mn + \" \" + mx + \" \" + sum",
"\" \"",
"mx",
"\" \"",
"\"\" + mn + \" \" + mx + \" \" + sum",
"\"\"",
"mn",
"\" \"",
"mx",
"\" \"",
"sum",
"String[]args",
"args"
] | import java.util.*;
import java.text.*;
class Main {
public static void main(String[]args)throws Exception {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int mx = Integer.MIN_VALUE;
int mn = Integer.MAX_VALUE;
long sum = 0;
for(int i = 0; i < n; i++) {
int a = sc.nextInt();
if(a > mx) mx = a;
if(a < mn) mn = a;
sum += a;
}
System.out.println("" + mn + " " + mx + " " + sum);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
41,
13,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
20,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
0,
13,
20,
13,
42,
17,
30,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
13,
4,
18,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
0,
13,
18,
13,
17,
0,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
18,
13,
13,
13,
0,
13,
4,
18,
13,
18,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
18,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
30,
3,
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
],
[
200,
11
],
[
200,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
17,
19
],
[
14,
20
],
[
20,
21
],
[
20,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
14,
29
],
[
29,
30
],
[
14,
31
],
[
31,
32
],
[
14,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
33,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
33,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
52,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
52,
67
],
[
67,
68
],
[
67,
69
],
[
52,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
73,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
86,
90
],
[
83,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
98,
100
],
[
91,
101
],
[
101,
102
],
[
102,
103
],
[
91,
104
],
[
105,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
113,
114
],
[
113,
115
],
[
83,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
118,
120
],
[
83,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
123,
125
],
[
83,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
133,
135
],
[
126,
136
],
[
136,
137
],
[
137,
138
],
[
126,
139
],
[
140,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
143,
146
],
[
146,
147
],
[
146,
148
],
[
143,
149
],
[
140,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
153,
154
],
[
152,
155
],
[
155,
156
],
[
155,
157
],
[
152,
158
],
[
83,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
159,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
166,
168
],
[
159,
169
],
[
169,
170
],
[
170,
171
],
[
159,
172
],
[
173,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
178,
180
],
[
83,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
181,
186
],
[
189,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
188,
192
],
[
187,
193
],
[
189,
194
],
[
79,
195
],
[
195,
196
],
[
12,
197
],
[
197,
198
],
[
0,
199
],
[
199,
200
],
[
199,
201
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t//?????£?????????\n\t\tString line;\n\n\t\tint numN = 0;\n\t\tint numMin = 0;\n\t\tint numMax = 0;\n\t\tlong numAdd = 0;\n\n\t\tString[] NumWork;\n\t\tint[] NumList;\n\t\ttry {\n\t\t\t//??\\????????????\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tline = br.readLine();\n\n\t\t\t//???????????£?¨?\n\t\t\tnumN = Integer.parseInt(line);\n\t\t\tNumList = new int[numN];\n\n\t\t\t//System.out.println(numN);\n\t\t\twhile (true) {\n\t\t\t\t//?????????????????????\n\t\t\t\tline = br.readLine();\n\t\t\t\tif(line != null){\n\n\t\t\t\t\t//??°??£?????´??°?????????\n\t\t\t\t\tNumWork = line.split(\" \", 0);\n\n\t\t\t\t\t//??´??°?????°??????\n\t\t\t\t\tfor (int i = 0; i < NumWork.length; i++) {\n\t\t\t\t\t\tNumList[i] = Integer.parseInt(NumWork[i]);\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(NumList[0] + \"+\" + NumList[1]);\n\n\t\t\t\t\tnumMin = NumList[0];\n\t\t\t\t\tnumMax = NumList[0];\n\t\t\t\t\t//??´??°?????????\n\t\t\t\t\tfor (int i = 1; i < NumList.length; i++) {\n\n\t\t\t\t\t\t\tnumMin = Math.min(NumList[i], numMin);\n\t\t\t\t\t\t\tnumMax = Math.max(NumList[i], numMax);\n\t\t\t\t\t}\n\t\t\t\t\t//??´??°???????¨?\n\t\t\t\t\tfor (int i = 0; i < NumList.length; i++) {\n\t\t\t\t\t\tnumAdd = numAdd + NumList[i];\n\t\t\t\t\t}\n\t\t\t\t\t//???????????????\n\t\t\t\t\tSystem.out.println(numMin + \" \" + numMax + \" \" + numAdd);\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch (NumberFormatException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t//?????£?????????\n\t\tString line;\n\n\t\tint numN = 0;\n\t\tint numMin = 0;\n\t\tint numMax = 0;\n\t\tlong numAdd = 0;\n\n\t\tString[] NumWork;\n\t\tint[] NumList;\n\t\ttry {\n\t\t\t//??\\????????????\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tline = br.readLine();\n\n\t\t\t//???????????£?¨?\n\t\t\tnumN = Integer.parseInt(line);\n\t\t\tNumList = new int[numN];\n\n\t\t\t//System.out.println(numN);\n\t\t\twhile (true) {\n\t\t\t\t//?????????????????????\n\t\t\t\tline = br.readLine();\n\t\t\t\tif(line != null){\n\n\t\t\t\t\t//??°??£?????´??°?????????\n\t\t\t\t\tNumWork = line.split(\" \", 0);\n\n\t\t\t\t\t//??´??°?????°??????\n\t\t\t\t\tfor (int i = 0; i < NumWork.length; i++) {\n\t\t\t\t\t\tNumList[i] = Integer.parseInt(NumWork[i]);\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(NumList[0] + \"+\" + NumList[1]);\n\n\t\t\t\t\tnumMin = NumList[0];\n\t\t\t\t\tnumMax = NumList[0];\n\t\t\t\t\t//??´??°?????????\n\t\t\t\t\tfor (int i = 1; i < NumList.length; i++) {\n\n\t\t\t\t\t\t\tnumMin = Math.min(NumList[i], numMin);\n\t\t\t\t\t\t\tnumMax = Math.max(NumList[i], numMax);\n\t\t\t\t\t}\n\t\t\t\t\t//??´??°???????¨?\n\t\t\t\t\tfor (int i = 0; i < NumList.length; i++) {\n\t\t\t\t\t\tnumAdd = numAdd + NumList[i];\n\t\t\t\t\t}\n\t\t\t\t\t//???????????????\n\t\t\t\t\tSystem.out.println(numMin + \" \" + numMax + \" \" + numAdd);\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch (NumberFormatException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\t//?????£?????????\n\t\tString line;\n\n\t\tint numN = 0;\n\t\tint numMin = 0;\n\t\tint numMax = 0;\n\t\tlong numAdd = 0;\n\n\t\tString[] NumWork;\n\t\tint[] NumList;\n\t\ttry {\n\t\t\t//??\\????????????\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tline = br.readLine();\n\n\t\t\t//???????????£?¨?\n\t\t\tnumN = Integer.parseInt(line);\n\t\t\tNumList = new int[numN];\n\n\t\t\t//System.out.println(numN);\n\t\t\twhile (true) {\n\t\t\t\t//?????????????????????\n\t\t\t\tline = br.readLine();\n\t\t\t\tif(line != null){\n\n\t\t\t\t\t//??°??£?????´??°?????????\n\t\t\t\t\tNumWork = line.split(\" \", 0);\n\n\t\t\t\t\t//??´??°?????°??????\n\t\t\t\t\tfor (int i = 0; i < NumWork.length; i++) {\n\t\t\t\t\t\tNumList[i] = Integer.parseInt(NumWork[i]);\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(NumList[0] + \"+\" + NumList[1]);\n\n\t\t\t\t\tnumMin = NumList[0];\n\t\t\t\t\tnumMax = NumList[0];\n\t\t\t\t\t//??´??°?????????\n\t\t\t\t\tfor (int i = 1; i < NumList.length; i++) {\n\n\t\t\t\t\t\t\tnumMin = Math.min(NumList[i], numMin);\n\t\t\t\t\t\t\tnumMax = Math.max(NumList[i], numMax);\n\t\t\t\t\t}\n\t\t\t\t\t//??´??°???????¨?\n\t\t\t\t\tfor (int i = 0; i < NumList.length; i++) {\n\t\t\t\t\t\tnumAdd = numAdd + NumList[i];\n\t\t\t\t\t}\n\t\t\t\t\t//???????????????\n\t\t\t\t\tSystem.out.println(numMin + \" \" + numMax + \" \" + numAdd);\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch (NumberFormatException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}",
"main",
"{\n\n\t\t//?????£?????????\n\t\tString line;\n\n\t\tint numN = 0;\n\t\tint numMin = 0;\n\t\tint numMax = 0;\n\t\tlong numAdd = 0;\n\n\t\tString[] NumWork;\n\t\tint[] NumList;\n\t\ttry {\n\t\t\t//??\\????????????\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tline = br.readLine();\n\n\t\t\t//???????????£?¨?\n\t\t\tnumN = Integer.parseInt(line);\n\t\t\tNumList = new int[numN];\n\n\t\t\t//System.out.println(numN);\n\t\t\twhile (true) {\n\t\t\t\t//?????????????????????\n\t\t\t\tline = br.readLine();\n\t\t\t\tif(line != null){\n\n\t\t\t\t\t//??°??£?????´??°?????????\n\t\t\t\t\tNumWork = line.split(\" \", 0);\n\n\t\t\t\t\t//??´??°?????°??????\n\t\t\t\t\tfor (int i = 0; i < NumWork.length; i++) {\n\t\t\t\t\t\tNumList[i] = Integer.parseInt(NumWork[i]);\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(NumList[0] + \"+\" + NumList[1]);\n\n\t\t\t\t\tnumMin = NumList[0];\n\t\t\t\t\tnumMax = NumList[0];\n\t\t\t\t\t//??´??°?????????\n\t\t\t\t\tfor (int i = 1; i < NumList.length; i++) {\n\n\t\t\t\t\t\t\tnumMin = Math.min(NumList[i], numMin);\n\t\t\t\t\t\t\tnumMax = Math.max(NumList[i], numMax);\n\t\t\t\t\t}\n\t\t\t\t\t//??´??°???????¨?\n\t\t\t\t\tfor (int i = 0; i < NumList.length; i++) {\n\t\t\t\t\t\tnumAdd = numAdd + NumList[i];\n\t\t\t\t\t}\n\t\t\t\t\t//???????????????\n\t\t\t\t\tSystem.out.println(numMin + \" \" + numMax + \" \" + numAdd);\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch (NumberFormatException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}",
"String line;",
"line",
"int numN = 0;",
"numN",
"0",
"int numMin = 0;",
"numMin",
"0",
"int numMax = 0;",
"numMax",
"0",
"long numAdd = 0;",
"numAdd",
"0",
"String[] NumWork;",
"NumWork",
"int[] NumList;",
"NumList",
"try {\n\t\t\t//??\\????????????\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tline = br.readLine();\n\n\t\t\t//???????????£?¨?\n\t\t\tnumN = Integer.parseInt(line);\n\t\t\tNumList = new int[numN];\n\n\t\t\t//System.out.println(numN);\n\t\t\twhile (true) {\n\t\t\t\t//?????????????????????\n\t\t\t\tline = br.readLine();\n\t\t\t\tif(line != null){\n\n\t\t\t\t\t//??°??£?????´??°?????????\n\t\t\t\t\tNumWork = line.split(\" \", 0);\n\n\t\t\t\t\t//??´??°?????°??????\n\t\t\t\t\tfor (int i = 0; i < NumWork.length; i++) {\n\t\t\t\t\t\tNumList[i] = Integer.parseInt(NumWork[i]);\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(NumList[0] + \"+\" + NumList[1]);\n\n\t\t\t\t\tnumMin = NumList[0];\n\t\t\t\t\tnumMax = NumList[0];\n\t\t\t\t\t//??´??°?????????\n\t\t\t\t\tfor (int i = 1; i < NumList.length; i++) {\n\n\t\t\t\t\t\t\tnumMin = Math.min(NumList[i], numMin);\n\t\t\t\t\t\t\tnumMax = Math.max(NumList[i], numMax);\n\t\t\t\t\t}\n\t\t\t\t\t//??´??°???????¨?\n\t\t\t\t\tfor (int i = 0; i < NumList.length; i++) {\n\t\t\t\t\t\tnumAdd = numAdd + NumList[i];\n\t\t\t\t\t}\n\t\t\t\t\t//???????????????\n\t\t\t\t\tSystem.out.println(numMin + \" \" + numMax + \" \" + numAdd);\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch (NumberFormatException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}",
"catch (NumberFormatException e) {\n\t\t\tSystem.out.println(e);\n\t\t}",
"NumberFormatException e",
"{\n\t\t\tSystem.out.println(e);\n\t\t}",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}",
"IOException e",
"{\n\t\t\tSystem.out.println(e);\n\t\t}",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"{\n\t\t\t//??\\????????????\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tline = br.readLine();\n\n\t\t\t//???????????£?¨?\n\t\t\tnumN = Integer.parseInt(line);\n\t\t\tNumList = new int[numN];\n\n\t\t\t//System.out.println(numN);\n\t\t\twhile (true) {\n\t\t\t\t//?????????????????????\n\t\t\t\tline = br.readLine();\n\t\t\t\tif(line != null){\n\n\t\t\t\t\t//??°??£?????´??°?????????\n\t\t\t\t\tNumWork = line.split(\" \", 0);\n\n\t\t\t\t\t//??´??°?????°??????\n\t\t\t\t\tfor (int i = 0; i < NumWork.length; i++) {\n\t\t\t\t\t\tNumList[i] = Integer.parseInt(NumWork[i]);\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(NumList[0] + \"+\" + NumList[1]);\n\n\t\t\t\t\tnumMin = NumList[0];\n\t\t\t\t\tnumMax = NumList[0];\n\t\t\t\t\t//??´??°?????????\n\t\t\t\t\tfor (int i = 1; i < NumList.length; i++) {\n\n\t\t\t\t\t\t\tnumMin = Math.min(NumList[i], numMin);\n\t\t\t\t\t\t\tnumMax = Math.max(NumList[i], numMax);\n\t\t\t\t\t}\n\t\t\t\t\t//??´??°???????¨?\n\t\t\t\t\tfor (int i = 0; i < NumList.length; i++) {\n\t\t\t\t\t\tnumAdd = numAdd + NumList[i];\n\t\t\t\t\t}\n\t\t\t\t\t//???????????????\n\t\t\t\t\tSystem.out.println(numMin + \" \" + numMax + \" \" + numAdd);\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"line = br.readLine()",
"line",
"br.readLine()",
"br.readLine",
"br",
"numN = Integer.parseInt(line)",
"numN",
"Integer.parseInt(line)",
"Integer.parseInt",
"Integer",
"line",
"NumList = new int[numN]",
"NumList",
"new int[numN]",
"numN",
"while (true) {\n\t\t\t\t//?????????????????????\n\t\t\t\tline = br.readLine();\n\t\t\t\tif(line != null){\n\n\t\t\t\t\t//??°??£?????´??°?????????\n\t\t\t\t\tNumWork = line.split(\" \", 0);\n\n\t\t\t\t\t//??´??°?????°??????\n\t\t\t\t\tfor (int i = 0; i < NumWork.length; i++) {\n\t\t\t\t\t\tNumList[i] = Integer.parseInt(NumWork[i]);\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(NumList[0] + \"+\" + NumList[1]);\n\n\t\t\t\t\tnumMin = NumList[0];\n\t\t\t\t\tnumMax = NumList[0];\n\t\t\t\t\t//??´??°?????????\n\t\t\t\t\tfor (int i = 1; i < NumList.length; i++) {\n\n\t\t\t\t\t\t\tnumMin = Math.min(NumList[i], numMin);\n\t\t\t\t\t\t\tnumMax = Math.max(NumList[i], numMax);\n\t\t\t\t\t}\n\t\t\t\t\t//??´??°???????¨?\n\t\t\t\t\tfor (int i = 0; i < NumList.length; i++) {\n\t\t\t\t\t\tnumAdd = numAdd + NumList[i];\n\t\t\t\t\t}\n\t\t\t\t\t//???????????????\n\t\t\t\t\tSystem.out.println(numMin + \" \" + numMax + \" \" + numAdd);\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"true",
"{\n\t\t\t\t//?????????????????????\n\t\t\t\tline = br.readLine();\n\t\t\t\tif(line != null){\n\n\t\t\t\t\t//??°??£?????´??°?????????\n\t\t\t\t\tNumWork = line.split(\" \", 0);\n\n\t\t\t\t\t//??´??°?????°??????\n\t\t\t\t\tfor (int i = 0; i < NumWork.length; i++) {\n\t\t\t\t\t\tNumList[i] = Integer.parseInt(NumWork[i]);\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(NumList[0] + \"+\" + NumList[1]);\n\n\t\t\t\t\tnumMin = NumList[0];\n\t\t\t\t\tnumMax = NumList[0];\n\t\t\t\t\t//??´??°?????????\n\t\t\t\t\tfor (int i = 1; i < NumList.length; i++) {\n\n\t\t\t\t\t\t\tnumMin = Math.min(NumList[i], numMin);\n\t\t\t\t\t\t\tnumMax = Math.max(NumList[i], numMax);\n\t\t\t\t\t}\n\t\t\t\t\t//??´??°???????¨?\n\t\t\t\t\tfor (int i = 0; i < NumList.length; i++) {\n\t\t\t\t\t\tnumAdd = numAdd + NumList[i];\n\t\t\t\t\t}\n\t\t\t\t\t//???????????????\n\t\t\t\t\tSystem.out.println(numMin + \" \" + numMax + \" \" + numAdd);\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"line = br.readLine()",
"line",
"br.readLine()",
"br.readLine",
"br",
"if(line != null){\n\n\t\t\t\t\t//??°??£?????´??°?????????\n\t\t\t\t\tNumWork = line.split(\" \", 0);\n\n\t\t\t\t\t//??´??°?????°??????\n\t\t\t\t\tfor (int i = 0; i < NumWork.length; i++) {\n\t\t\t\t\t\tNumList[i] = Integer.parseInt(NumWork[i]);\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(NumList[0] + \"+\" + NumList[1]);\n\n\t\t\t\t\tnumMin = NumList[0];\n\t\t\t\t\tnumMax = NumList[0];\n\t\t\t\t\t//??´??°?????????\n\t\t\t\t\tfor (int i = 1; i < NumList.length; i++) {\n\n\t\t\t\t\t\t\tnumMin = Math.min(NumList[i], numMin);\n\t\t\t\t\t\t\tnumMax = Math.max(NumList[i], numMax);\n\t\t\t\t\t}\n\t\t\t\t\t//??´??°???????¨?\n\t\t\t\t\tfor (int i = 0; i < NumList.length; i++) {\n\t\t\t\t\t\tnumAdd = numAdd + NumList[i];\n\t\t\t\t\t}\n\t\t\t\t\t//???????????????\n\t\t\t\t\tSystem.out.println(numMin + \" \" + numMax + \" \" + numAdd);\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"line != null",
"line",
"null",
"{\n\n\t\t\t\t\t//??°??£?????´??°?????????\n\t\t\t\t\tNumWork = line.split(\" \", 0);\n\n\t\t\t\t\t//??´??°?????°??????\n\t\t\t\t\tfor (int i = 0; i < NumWork.length; i++) {\n\t\t\t\t\t\tNumList[i] = Integer.parseInt(NumWork[i]);\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(NumList[0] + \"+\" + NumList[1]);\n\n\t\t\t\t\tnumMin = NumList[0];\n\t\t\t\t\tnumMax = NumList[0];\n\t\t\t\t\t//??´??°?????????\n\t\t\t\t\tfor (int i = 1; i < NumList.length; i++) {\n\n\t\t\t\t\t\t\tnumMin = Math.min(NumList[i], numMin);\n\t\t\t\t\t\t\tnumMax = Math.max(NumList[i], numMax);\n\t\t\t\t\t}\n\t\t\t\t\t//??´??°???????¨?\n\t\t\t\t\tfor (int i = 0; i < NumList.length; i++) {\n\t\t\t\t\t\tnumAdd = numAdd + NumList[i];\n\t\t\t\t\t}\n\t\t\t\t\t//???????????????\n\t\t\t\t\tSystem.out.println(numMin + \" \" + numMax + \" \" + numAdd);\n\t\t\t\t}",
"NumWork = line.split(\" \", 0)",
"NumWork",
"line.split(\" \", 0)",
"line.split",
"line",
"\" \"",
"0",
"for (int i = 0; i < NumWork.length; i++) {\n\t\t\t\t\t\tNumList[i] = Integer.parseInt(NumWork[i]);\n\t\t\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < NumWork.length",
"i",
"NumWork.length",
"NumWork",
"NumWork.length",
"i++",
"i++",
"i",
"{\n\t\t\t\t\t\tNumList[i] = Integer.parseInt(NumWork[i]);\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\tNumList[i] = Integer.parseInt(NumWork[i]);\n\t\t\t\t\t}",
"NumList[i] = Integer.parseInt(NumWork[i])",
"NumList[i]",
"NumList",
"i",
"Integer.parseInt(NumWork[i])",
"Integer.parseInt",
"Integer",
"NumWork[i]",
"NumWork",
"i",
"numMin = NumList[0]",
"numMin",
"NumList[0]",
"NumList",
"0",
"numMax = NumList[0]",
"numMax",
"NumList[0]",
"NumList",
"0",
"for (int i = 1; i < NumList.length; i++) {\n\n\t\t\t\t\t\t\tnumMin = Math.min(NumList[i], numMin);\n\t\t\t\t\t\t\tnumMax = Math.max(NumList[i], numMax);\n\t\t\t\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < NumList.length",
"i",
"NumList.length",
"NumList",
"NumList.length",
"i++",
"i++",
"i",
"{\n\n\t\t\t\t\t\t\tnumMin = Math.min(NumList[i], numMin);\n\t\t\t\t\t\t\tnumMax = Math.max(NumList[i], numMax);\n\t\t\t\t\t}",
"{\n\n\t\t\t\t\t\t\tnumMin = Math.min(NumList[i], numMin);\n\t\t\t\t\t\t\tnumMax = Math.max(NumList[i], numMax);\n\t\t\t\t\t}",
"numMin = Math.min(NumList[i], numMin)",
"numMin",
"Math.min(NumList[i], numMin)",
"Math.min",
"Math",
"NumList[i]",
"NumList",
"i",
"numMin",
"numMax = Math.max(NumList[i], numMax)",
"numMax",
"Math.max(NumList[i], numMax)",
"Math.max",
"Math",
"NumList[i]",
"NumList",
"i",
"numMax",
"for (int i = 0; i < NumList.length; i++) {\n\t\t\t\t\t\tnumAdd = numAdd + NumList[i];\n\t\t\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < NumList.length",
"i",
"NumList.length",
"NumList",
"NumList.length",
"i++",
"i++",
"i",
"{\n\t\t\t\t\t\tnumAdd = numAdd + NumList[i];\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\tnumAdd = numAdd + NumList[i];\n\t\t\t\t\t}",
"numAdd = numAdd + NumList[i]",
"numAdd",
"numAdd + NumList[i]",
"numAdd",
"NumList[i]",
"NumList",
"i",
"System.out.println(numMin + \" \" + numMax + \" \" + numAdd)",
"System.out.println",
"System.out",
"System",
"System.out",
"numMin + \" \" + numMax + \" \" + numAdd",
"\" \"",
"numMax",
"numMin + \" \" + numMax + \" \" + numAdd",
"numMin",
"\" \"",
"numMax",
"\" \"",
"numAdd",
"{\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"break;",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t//?????£?????????\n\t\tString line;\n\n\t\tint numN = 0;\n\t\tint numMin = 0;\n\t\tint numMax = 0;\n\t\tlong numAdd = 0;\n\n\t\tString[] NumWork;\n\t\tint[] NumList;\n\t\ttry {\n\t\t\t//??\\????????????\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tline = br.readLine();\n\n\t\t\t//???????????£?¨?\n\t\t\tnumN = Integer.parseInt(line);\n\t\t\tNumList = new int[numN];\n\n\t\t\t//System.out.println(numN);\n\t\t\twhile (true) {\n\t\t\t\t//?????????????????????\n\t\t\t\tline = br.readLine();\n\t\t\t\tif(line != null){\n\n\t\t\t\t\t//??°??£?????´??°?????????\n\t\t\t\t\tNumWork = line.split(\" \", 0);\n\n\t\t\t\t\t//??´??°?????°??????\n\t\t\t\t\tfor (int i = 0; i < NumWork.length; i++) {\n\t\t\t\t\t\tNumList[i] = Integer.parseInt(NumWork[i]);\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(NumList[0] + \"+\" + NumList[1]);\n\n\t\t\t\t\tnumMin = NumList[0];\n\t\t\t\t\tnumMax = NumList[0];\n\t\t\t\t\t//??´??°?????????\n\t\t\t\t\tfor (int i = 1; i < NumList.length; i++) {\n\n\t\t\t\t\t\t\tnumMin = Math.min(NumList[i], numMin);\n\t\t\t\t\t\t\tnumMax = Math.max(NumList[i], numMax);\n\t\t\t\t\t}\n\t\t\t\t\t//??´??°???????¨?\n\t\t\t\t\tfor (int i = 0; i < NumList.length; i++) {\n\t\t\t\t\t\tnumAdd = numAdd + NumList[i];\n\t\t\t\t\t}\n\t\t\t\t\t//???????????????\n\t\t\t\t\tSystem.out.println(numMin + \" \" + numMax + \" \" + numAdd);\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch (NumberFormatException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t//?????£?????????\n\t\tString line;\n\n\t\tint numN = 0;\n\t\tint numMin = 0;\n\t\tint numMax = 0;\n\t\tlong numAdd = 0;\n\n\t\tString[] NumWork;\n\t\tint[] NumList;\n\t\ttry {\n\t\t\t//??\\????????????\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tline = br.readLine();\n\n\t\t\t//???????????£?¨?\n\t\t\tnumN = Integer.parseInt(line);\n\t\t\tNumList = new int[numN];\n\n\t\t\t//System.out.println(numN);\n\t\t\twhile (true) {\n\t\t\t\t//?????????????????????\n\t\t\t\tline = br.readLine();\n\t\t\t\tif(line != null){\n\n\t\t\t\t\t//??°??£?????´??°?????????\n\t\t\t\t\tNumWork = line.split(\" \", 0);\n\n\t\t\t\t\t//??´??°?????°??????\n\t\t\t\t\tfor (int i = 0; i < NumWork.length; i++) {\n\t\t\t\t\t\tNumList[i] = Integer.parseInt(NumWork[i]);\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(NumList[0] + \"+\" + NumList[1]);\n\n\t\t\t\t\tnumMin = NumList[0];\n\t\t\t\t\tnumMax = NumList[0];\n\t\t\t\t\t//??´??°?????????\n\t\t\t\t\tfor (int i = 1; i < NumList.length; i++) {\n\n\t\t\t\t\t\t\tnumMin = Math.min(NumList[i], numMin);\n\t\t\t\t\t\t\tnumMax = Math.max(NumList[i], numMax);\n\t\t\t\t\t}\n\t\t\t\t\t//??´??°???????¨?\n\t\t\t\t\tfor (int i = 0; i < NumList.length; i++) {\n\t\t\t\t\t\tnumAdd = numAdd + NumList[i];\n\t\t\t\t\t}\n\t\t\t\t\t//???????????????\n\t\t\t\t\tSystem.out.println(numMin + \" \" + numMax + \" \" + numAdd);\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch (NumberFormatException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}\n\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
//?????£?????????
String line;
int numN = 0;
int numMin = 0;
int numMax = 0;
long numAdd = 0;
String[] NumWork;
int[] NumList;
try {
//??\????????????
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
line = br.readLine();
//???????????£?¨?
numN = Integer.parseInt(line);
NumList = new int[numN];
//System.out.println(numN);
while (true) {
//?????????????????????
line = br.readLine();
if(line != null){
//??°??£?????´??°?????????
NumWork = line.split(" ", 0);
//??´??°?????°??????
for (int i = 0; i < NumWork.length; i++) {
NumList[i] = Integer.parseInt(NumWork[i]);
}
//System.out.println(NumList[0] + "+" + NumList[1]);
numMin = NumList[0];
numMax = NumList[0];
//??´??°?????????
for (int i = 1; i < NumList.length; i++) {
numMin = Math.min(NumList[i], numMin);
numMax = Math.max(NumList[i], numMax);
}
//??´??°???????¨?
for (int i = 0; i < NumList.length; i++) {
numAdd = numAdd + NumList[i];
}
//???????????????
System.out.println(numMin + " " + numMax + " " + numAdd);
}else{
break;
}
}
}catch (NumberFormatException e) {
System.out.println(e);
} catch (IOException e) {
System.out.println(e);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
20,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
41,
13,
18,
13,
17,
41,
13,
18,
13,
17,
41,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
18,
13,
13,
0,
13,
4,
18,
13,
13,
18,
13,
13,
0,
13,
18,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
129,
5
],
[
129,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
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
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
58,
59
],
[
58,
60
],
[
8,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
8,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
8,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
8,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
76,
84
],
[
84,
85
],
[
85,
86
],
[
76,
87
],
[
88,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
91,
95
],
[
95,
96
],
[
95,
97
],
[
88,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
100,
104
],
[
104,
105
],
[
104,
106
],
[
88,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
109,
111
],
[
8,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
120,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
118,
124
],
[
120,
125
],
[
6,
126
],
[
126,
127
],
[
0,
128
],
[
128,
129
],
[
128,
130
]
] | [
"import java.io.*;\n\npublic class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line1 = br.readLine();\n\t\tint n = Integer.parseInt(line1);\n\t\tint[] a = new int[n];\n\t\tString line2 = br.readLine();\n\t\tString[] str = line2.split(\" \");\n\t\tfor (int i = 0; i < n ; i++){\n\t\t\ta[i] = Integer.parseInt(str[i]);\n\t\t}\n\t\tint max = a[0];\n\t\tint min = a[0];\n\t\tlong sum = (long) a[0];\n\t\tfor (int i = 1; i < n ; i++){\n\t\t\tmax = Math.max(max,a[i]);\n\t\t\tmin = Math.min(min,a[i]);\n\t\t\tsum += (long) a[i];\n\t\t}\n\t\tSystem.out.println(min + \" \" + max +\" \"+ sum);\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line1 = br.readLine();\n\t\tint n = Integer.parseInt(line1);\n\t\tint[] a = new int[n];\n\t\tString line2 = br.readLine();\n\t\tString[] str = line2.split(\" \");\n\t\tfor (int i = 0; i < n ; i++){\n\t\t\ta[i] = Integer.parseInt(str[i]);\n\t\t}\n\t\tint max = a[0];\n\t\tint min = a[0];\n\t\tlong sum = (long) a[0];\n\t\tfor (int i = 1; i < n ; i++){\n\t\t\tmax = Math.max(max,a[i]);\n\t\t\tmin = Math.min(min,a[i]);\n\t\t\tsum += (long) a[i];\n\t\t}\n\t\tSystem.out.println(min + \" \" + max +\" \"+ sum);\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line1 = br.readLine();\n\t\tint n = Integer.parseInt(line1);\n\t\tint[] a = new int[n];\n\t\tString line2 = br.readLine();\n\t\tString[] str = line2.split(\" \");\n\t\tfor (int i = 0; i < n ; i++){\n\t\t\ta[i] = Integer.parseInt(str[i]);\n\t\t}\n\t\tint max = a[0];\n\t\tint min = a[0];\n\t\tlong sum = (long) a[0];\n\t\tfor (int i = 1; i < n ; i++){\n\t\t\tmax = Math.max(max,a[i]);\n\t\t\tmin = Math.min(min,a[i]);\n\t\t\tsum += (long) a[i];\n\t\t}\n\t\tSystem.out.println(min + \" \" + max +\" \"+ sum);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line1 = br.readLine();\n\t\tint n = Integer.parseInt(line1);\n\t\tint[] a = new int[n];\n\t\tString line2 = br.readLine();\n\t\tString[] str = line2.split(\" \");\n\t\tfor (int i = 0; i < n ; i++){\n\t\t\ta[i] = Integer.parseInt(str[i]);\n\t\t}\n\t\tint max = a[0];\n\t\tint min = a[0];\n\t\tlong sum = (long) a[0];\n\t\tfor (int i = 1; i < n ; i++){\n\t\t\tmax = Math.max(max,a[i]);\n\t\t\tmin = Math.min(min,a[i]);\n\t\t\tsum += (long) a[i];\n\t\t}\n\t\tSystem.out.println(min + \" \" + max +\" \"+ sum);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String line1 = br.readLine();",
"line1",
"br.readLine()",
"br.readLine",
"br",
"int n = Integer.parseInt(line1);",
"n",
"Integer.parseInt(line1)",
"Integer.parseInt",
"Integer",
"line1",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"String line2 = br.readLine();",
"line2",
"br.readLine()",
"br.readLine",
"br",
"String[] str = line2.split(\" \");",
"str",
"line2.split(\" \")",
"line2.split",
"line2",
"\" \"",
"for (int i = 0; i < n ; i++){\n\t\t\ta[i] = Integer.parseInt(str[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\ta[i] = Integer.parseInt(str[i]);\n\t\t}",
"{\n\t\t\ta[i] = Integer.parseInt(str[i]);\n\t\t}",
"a[i] = Integer.parseInt(str[i])",
"a[i]",
"a",
"i",
"Integer.parseInt(str[i])",
"Integer.parseInt",
"Integer",
"str[i]",
"str",
"i",
"int max = a[0];",
"max",
"a[0]",
"a",
"0",
"int min = a[0];",
"min",
"a[0]",
"a",
"0",
"long sum = (long) a[0];",
"sum",
"(long) a[0]",
"a",
"0",
"for (int i = 1; i < n ; i++){\n\t\t\tmax = Math.max(max,a[i]);\n\t\t\tmin = Math.min(min,a[i]);\n\t\t\tsum += (long) a[i];\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tmax = Math.max(max,a[i]);\n\t\t\tmin = Math.min(min,a[i]);\n\t\t\tsum += (long) a[i];\n\t\t}",
"{\n\t\t\tmax = Math.max(max,a[i]);\n\t\t\tmin = Math.min(min,a[i]);\n\t\t\tsum += (long) a[i];\n\t\t}",
"max = Math.max(max,a[i])",
"max",
"Math.max(max,a[i])",
"Math.max",
"Math",
"max",
"a[i]",
"a",
"i",
"min = Math.min(min,a[i])",
"min",
"Math.min(min,a[i])",
"Math.min",
"Math",
"min",
"a[i]",
"a",
"i",
"sum += (long) a[i]",
"sum",
"(long) a[i]",
"a",
"i",
"System.out.println(min + \" \" + max +\" \"+ sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min + \" \" + max +\" \"+ sum",
"\" \"",
"max",
"min + \" \" + max +\" \"+ sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line1 = br.readLine();\n\t\tint n = Integer.parseInt(line1);\n\t\tint[] a = new int[n];\n\t\tString line2 = br.readLine();\n\t\tString[] str = line2.split(\" \");\n\t\tfor (int i = 0; i < n ; i++){\n\t\t\ta[i] = Integer.parseInt(str[i]);\n\t\t}\n\t\tint max = a[0];\n\t\tint min = a[0];\n\t\tlong sum = (long) a[0];\n\t\tfor (int i = 1; i < n ; i++){\n\t\t\tmax = Math.max(max,a[i]);\n\t\t\tmin = Math.min(min,a[i]);\n\t\t\tsum += (long) a[i];\n\t\t}\n\t\tSystem.out.println(min + \" \" + max +\" \"+ sum);\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line1 = br.readLine();\n\t\tint n = Integer.parseInt(line1);\n\t\tint[] a = new int[n];\n\t\tString line2 = br.readLine();\n\t\tString[] str = line2.split(\" \");\n\t\tfor (int i = 0; i < n ; i++){\n\t\t\ta[i] = Integer.parseInt(str[i]);\n\t\t}\n\t\tint max = a[0];\n\t\tint min = a[0];\n\t\tlong sum = (long) a[0];\n\t\tfor (int i = 1; i < n ; i++){\n\t\t\tmax = Math.max(max,a[i]);\n\t\t\tmin = Math.min(min,a[i]);\n\t\t\tsum += (long) a[i];\n\t\t}\n\t\tSystem.out.println(min + \" \" + max +\" \"+ sum);\n\t}\n}",
"Main"
] | import java.io.*;
public class Main{
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line1 = br.readLine();
int n = Integer.parseInt(line1);
int[] a = new int[n];
String line2 = br.readLine();
String[] str = line2.split(" ");
for (int i = 0; i < n ; i++){
a[i] = Integer.parseInt(str[i]);
}
int max = a[0];
int min = a[0];
long sum = (long) a[0];
for (int i = 1; i < n ; i++){
max = Math.max(max,a[i]);
min = Math.min(min,a[i]);
sum += (long) a[i];
}
System.out.println(min + " " + max +" "+ 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,
13,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
20,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
0,
13,
2,
13,
18,
13,
13,
41,
13,
18,
13,
17,
41,
13,
18,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
13,
0,
13,
18,
13,
13,
14,
2,
18,
13,
13,
13,
0,
13,
18,
13,
13,
4,
18,
4,
18,
4,
18,
4,
18,
4,
18,
13,
13,
17,
13,
17,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
150,
11
],
[
150,
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
],
[
33,
34
],
[
34,
35
],
[
31,
36
],
[
14,
37
],
[
37,
38
],
[
37,
39
],
[
14,
40
],
[
40,
41
],
[
40,
42
],
[
14,
43
],
[
43,
44
],
[
43,
45
],
[
14,
46
],
[
46,
47
],
[
46,
48
],
[
14,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
50,
61
],
[
62,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
70,
71
],
[
70,
72
],
[
62,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
77,
79
],
[
14,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
14,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
87,
89
],
[
14,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
90,
98
],
[
98,
99
],
[
99,
100
],
[
90,
101
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
103,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
111,
113
],
[
102,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
114,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
122,
124
],
[
14,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
133,
136
],
[
131,
137
],
[
129,
138
],
[
127,
139
],
[
125,
140
],
[
14,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
141,
146
],
[
12,
147
],
[
147,
148
],
[
0,
149
],
[
149,
150
],
[
149,
151
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] age)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString ans = br.readLine();\n\t\tint a = Integer.parseInt(ans);\n\t\tString[] input = br.readLine().split(\" \");\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint i = 0;\n\t\tlong z = 0;\n\t\tint[] you = new int[a];\n\n\t\tfor( i=0 ; i<a ; i++ ){\n\t\t\tyou[i] = Integer.parseInt(input[i]);\n\t\t\tz = z+you[i];\n\t\t}\n\n\t\tint x = you[0];\n\t\tint y = you[0];\n\n\t\tfor ( i=1 ; i<a ; i++ ){\n\t\t\tif( you[i]>x ) x = you[i];\n\t\t\tif( you[i]<y ) y = you[i];\n\t\t}\n\t\tsb.append(y).append(\" \").append(x).append(\" \").append(z);\n\t\tSystem.out.println(sb);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String[] age)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString ans = br.readLine();\n\t\tint a = Integer.parseInt(ans);\n\t\tString[] input = br.readLine().split(\" \");\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint i = 0;\n\t\tlong z = 0;\n\t\tint[] you = new int[a];\n\n\t\tfor( i=0 ; i<a ; i++ ){\n\t\t\tyou[i] = Integer.parseInt(input[i]);\n\t\t\tz = z+you[i];\n\t\t}\n\n\t\tint x = you[0];\n\t\tint y = you[0];\n\n\t\tfor ( i=1 ; i<a ; i++ ){\n\t\t\tif( you[i]>x ) x = you[i];\n\t\t\tif( you[i]<y ) y = you[i];\n\t\t}\n\t\tsb.append(y).append(\" \").append(x).append(\" \").append(z);\n\t\tSystem.out.println(sb);\n\t}\n}",
"Main",
"public static void main(String[] age)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString ans = br.readLine();\n\t\tint a = Integer.parseInt(ans);\n\t\tString[] input = br.readLine().split(\" \");\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint i = 0;\n\t\tlong z = 0;\n\t\tint[] you = new int[a];\n\n\t\tfor( i=0 ; i<a ; i++ ){\n\t\t\tyou[i] = Integer.parseInt(input[i]);\n\t\t\tz = z+you[i];\n\t\t}\n\n\t\tint x = you[0];\n\t\tint y = you[0];\n\n\t\tfor ( i=1 ; i<a ; i++ ){\n\t\t\tif( you[i]>x ) x = you[i];\n\t\t\tif( you[i]<y ) y = you[i];\n\t\t}\n\t\tsb.append(y).append(\" \").append(x).append(\" \").append(z);\n\t\tSystem.out.println(sb);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString ans = br.readLine();\n\t\tint a = Integer.parseInt(ans);\n\t\tString[] input = br.readLine().split(\" \");\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint i = 0;\n\t\tlong z = 0;\n\t\tint[] you = new int[a];\n\n\t\tfor( i=0 ; i<a ; i++ ){\n\t\t\tyou[i] = Integer.parseInt(input[i]);\n\t\t\tz = z+you[i];\n\t\t}\n\n\t\tint x = you[0];\n\t\tint y = you[0];\n\n\t\tfor ( i=1 ; i<a ; i++ ){\n\t\t\tif( you[i]>x ) x = you[i];\n\t\t\tif( you[i]<y ) y = you[i];\n\t\t}\n\t\tsb.append(y).append(\" \").append(x).append(\" \").append(z);\n\t\tSystem.out.println(sb);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String ans = br.readLine();",
"ans",
"br.readLine()",
"br.readLine",
"br",
"int a = Integer.parseInt(ans);",
"a",
"Integer.parseInt(ans)",
"Integer.parseInt",
"Integer",
"ans",
"String[] input = br.readLine().split(\" \");",
"input",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int i = 0;",
"i",
"0",
"long z = 0;",
"z",
"0",
"int[] you = new int[a];",
"you",
"new int[a]",
"a",
"for( i=0 ; i<a ; i++ ){\n\t\t\tyou[i] = Integer.parseInt(input[i]);\n\t\t\tz = z+you[i];\n\t\t}",
"i=0 ;",
"i=0",
"i",
"0",
"i<a",
"i",
"a",
"i++",
"i++",
"i",
"{\n\t\t\tyou[i] = Integer.parseInt(input[i]);\n\t\t\tz = z+you[i];\n\t\t}",
"{\n\t\t\tyou[i] = Integer.parseInt(input[i]);\n\t\t\tz = z+you[i];\n\t\t}",
"you[i] = Integer.parseInt(input[i])",
"you[i]",
"you",
"i",
"Integer.parseInt(input[i])",
"Integer.parseInt",
"Integer",
"input[i]",
"input",
"i",
"z = z+you[i]",
"z",
"z+you[i]",
"z",
"you[i]",
"you",
"i",
"int x = you[0];",
"x",
"you[0]",
"you",
"0",
"int y = you[0];",
"y",
"you[0]",
"you",
"0",
"for ( i=1 ; i<a ; i++ ){\n\t\t\tif( you[i]>x ) x = you[i];\n\t\t\tif( you[i]<y ) y = you[i];\n\t\t}",
"i=1 ;",
"i=1",
"i",
"1",
"i<a",
"i",
"a",
"i++",
"i++",
"i",
"{\n\t\t\tif( you[i]>x ) x = you[i];\n\t\t\tif( you[i]<y ) y = you[i];\n\t\t}",
"{\n\t\t\tif( you[i]>x ) x = you[i];\n\t\t\tif( you[i]<y ) y = you[i];\n\t\t}",
"if( you[i]>x ) x = you[i];",
"you[i]>x",
"you[i]",
"you",
"i",
"x",
"x = you[i]",
"x",
"you[i]",
"you",
"i",
"if( you[i]<y ) y = you[i];",
"you[i]<y",
"you[i]",
"you",
"i",
"y",
"y = you[i]",
"y",
"you[i]",
"you",
"i",
"sb.append(y).append(\" \").append(x).append(\" \").append(z)",
"sb.append(y).append(\" \").append(x).append(\" \").append",
"sb.append(y).append(\" \").append(x).append(\" \")",
"sb.append(y).append(\" \").append(x).append",
"sb.append(y).append(\" \").append(x)",
"sb.append(y).append(\" \").append",
"sb.append(y).append(\" \")",
"sb.append(y).append",
"sb.append(y)",
"sb.append",
"sb",
"y",
"\" \"",
"x",
"\" \"",
"z",
"System.out.println(sb)",
"System.out.println",
"System.out",
"System",
"System.out",
"sb",
"String[] age",
"age",
"public class Main {\n\tpublic static void main(String[] age)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString ans = br.readLine();\n\t\tint a = Integer.parseInt(ans);\n\t\tString[] input = br.readLine().split(\" \");\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint i = 0;\n\t\tlong z = 0;\n\t\tint[] you = new int[a];\n\n\t\tfor( i=0 ; i<a ; i++ ){\n\t\t\tyou[i] = Integer.parseInt(input[i]);\n\t\t\tz = z+you[i];\n\t\t}\n\n\t\tint x = you[0];\n\t\tint y = you[0];\n\n\t\tfor ( i=1 ; i<a ; i++ ){\n\t\t\tif( you[i]>x ) x = you[i];\n\t\t\tif( you[i]<y ) y = you[i];\n\t\t}\n\t\tsb.append(y).append(\" \").append(x).append(\" \").append(z);\n\t\tSystem.out.println(sb);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] age)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString ans = br.readLine();\n\t\tint a = Integer.parseInt(ans);\n\t\tString[] input = br.readLine().split(\" \");\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint i = 0;\n\t\tlong z = 0;\n\t\tint[] you = new int[a];\n\n\t\tfor( i=0 ; i<a ; i++ ){\n\t\t\tyou[i] = Integer.parseInt(input[i]);\n\t\t\tz = z+you[i];\n\t\t}\n\n\t\tint x = you[0];\n\t\tint y = you[0];\n\n\t\tfor ( i=1 ; i<a ; i++ ){\n\t\t\tif( you[i]>x ) x = you[i];\n\t\t\tif( you[i]<y ) y = you[i];\n\t\t}\n\t\tsb.append(y).append(\" \").append(x).append(\" \").append(z);\n\t\tSystem.out.println(sb);\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] age)throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String ans = br.readLine();
int a = Integer.parseInt(ans);
String[] input = br.readLine().split(" ");
StringBuilder sb = new StringBuilder();
int i = 0;
long z = 0;
int[] you = new int[a];
for( i=0 ; i<a ; i++ ){
you[i] = Integer.parseInt(input[i]);
z = z+you[i];
}
int x = you[0];
int y = you[0];
for ( i=1 ; i<a ; i++ ){
if( you[i]>x ) x = you[i];
if( you[i]<y ) y = you[i];
}
sb.append(y).append(" ").append(x).append(" ").append(z);
System.out.println(sb);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
20,
41,
13,
4,
18,
13,
13,
41,
13,
20,
13,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
14,
2,
18,
13,
13,
13,
30,
0,
13,
18,
13,
13,
14,
2,
18,
13,
13,
13,
30,
0,
13,
18,
13,
13,
0,
13,
18,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
126,
11
],
[
126,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
28,
33
],
[
14,
34
],
[
34,
35
],
[
34,
36
],
[
14,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
14,
43
],
[
43,
44
],
[
43,
45
],
[
14,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
14,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
14,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
57,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
77,
79
],
[
69,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
80,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
89,
91
],
[
69,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
92,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
101,
103
],
[
69,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
106,
108
],
[
14,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
117,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
115,
121
],
[
117,
122
],
[
12,
123
],
[
123,
124
],
[
0,
125
],
[
125,
126
],
[
125,
127
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\n\npublic class Main{\n\tpublic static void main(String[] args)throws Exception{\n\t\tlong add=0;\n\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line1 = br.readLine();\n\t\tString[] line2 = br.readLine().split(\" \");\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tint n = Integer.parseInt(line1);\n\t\tint[] a = new int[n];\n\t\tint min = Integer.MAX_VALUE;\n\t\tint max = Integer.MIN_VALUE;\n\t\t\n\t\tfor(int i=0; i<n; i++){\n\t\t\ta[i] = Integer.parseInt(line2[i]);\n\t\t\tif(a[i] < min){\n\t\t\t\tmin = a[i];\n\t\t\t}\tif(a[i] > max){\n\t\t\t\tmax = a[i];\n\t\t\t}\n\t\t\tadd += a[i];\n\t\t}\n\t\tSystem.out.println(min+\" \"+ max+\" \"+ add);\t\t\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"public class Main{\n\tpublic static void main(String[] args)throws Exception{\n\t\tlong add=0;\n\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line1 = br.readLine();\n\t\tString[] line2 = br.readLine().split(\" \");\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tint n = Integer.parseInt(line1);\n\t\tint[] a = new int[n];\n\t\tint min = Integer.MAX_VALUE;\n\t\tint max = Integer.MIN_VALUE;\n\t\t\n\t\tfor(int i=0; i<n; i++){\n\t\t\ta[i] = Integer.parseInt(line2[i]);\n\t\t\tif(a[i] < min){\n\t\t\t\tmin = a[i];\n\t\t\t}\tif(a[i] > max){\n\t\t\t\tmax = a[i];\n\t\t\t}\n\t\t\tadd += a[i];\n\t\t}\n\t\tSystem.out.println(min+\" \"+ max+\" \"+ add);\t\t\n\t}\n}",
"Main",
"public static void main(String[] args)throws Exception{\n\t\tlong add=0;\n\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line1 = br.readLine();\n\t\tString[] line2 = br.readLine().split(\" \");\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tint n = Integer.parseInt(line1);\n\t\tint[] a = new int[n];\n\t\tint min = Integer.MAX_VALUE;\n\t\tint max = Integer.MIN_VALUE;\n\t\t\n\t\tfor(int i=0; i<n; i++){\n\t\t\ta[i] = Integer.parseInt(line2[i]);\n\t\t\tif(a[i] < min){\n\t\t\t\tmin = a[i];\n\t\t\t}\tif(a[i] > max){\n\t\t\t\tmax = a[i];\n\t\t\t}\n\t\t\tadd += a[i];\n\t\t}\n\t\tSystem.out.println(min+\" \"+ max+\" \"+ add);\t\t\n\t}",
"main",
"{\n\t\tlong add=0;\n\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line1 = br.readLine();\n\t\tString[] line2 = br.readLine().split(\" \");\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tint n = Integer.parseInt(line1);\n\t\tint[] a = new int[n];\n\t\tint min = Integer.MAX_VALUE;\n\t\tint max = Integer.MIN_VALUE;\n\t\t\n\t\tfor(int i=0; i<n; i++){\n\t\t\ta[i] = Integer.parseInt(line2[i]);\n\t\t\tif(a[i] < min){\n\t\t\t\tmin = a[i];\n\t\t\t}\tif(a[i] > max){\n\t\t\t\tmax = a[i];\n\t\t\t}\n\t\t\tadd += a[i];\n\t\t}\n\t\tSystem.out.println(min+\" \"+ max+\" \"+ add);\t\t\n\t}",
"long add=0;",
"add",
"0",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String line1 = br.readLine();",
"line1",
"br.readLine()",
"br.readLine",
"br",
"String[] line2 = br.readLine().split(\" \");",
"line2",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int n = Integer.parseInt(line1);",
"n",
"Integer.parseInt(line1)",
"Integer.parseInt",
"Integer",
"line1",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"int min = Integer.MAX_VALUE;",
"min",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"int max = Integer.MIN_VALUE;",
"max",
"Integer.MIN_VALUE",
"Integer",
"Integer.MIN_VALUE",
"for(int i=0; i<n; i++){\n\t\t\ta[i] = Integer.parseInt(line2[i]);\n\t\t\tif(a[i] < min){\n\t\t\t\tmin = a[i];\n\t\t\t}\tif(a[i] > max){\n\t\t\t\tmax = a[i];\n\t\t\t}\n\t\t\tadd += a[i];\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\ta[i] = Integer.parseInt(line2[i]);\n\t\t\tif(a[i] < min){\n\t\t\t\tmin = a[i];\n\t\t\t}\tif(a[i] > max){\n\t\t\t\tmax = a[i];\n\t\t\t}\n\t\t\tadd += a[i];\n\t\t}",
"{\n\t\t\ta[i] = Integer.parseInt(line2[i]);\n\t\t\tif(a[i] < min){\n\t\t\t\tmin = a[i];\n\t\t\t}\tif(a[i] > max){\n\t\t\t\tmax = a[i];\n\t\t\t}\n\t\t\tadd += a[i];\n\t\t}",
"a[i] = Integer.parseInt(line2[i])",
"a[i]",
"a",
"i",
"Integer.parseInt(line2[i])",
"Integer.parseInt",
"Integer",
"line2[i]",
"line2",
"i",
"if(a[i] < min){\n\t\t\t\tmin = a[i];\n\t\t\t}",
"a[i] < min",
"a[i]",
"a",
"i",
"min",
"{\n\t\t\t\tmin = a[i];\n\t\t\t}",
"min = a[i]",
"min",
"a[i]",
"a",
"i",
"if(a[i] > max){\n\t\t\t\tmax = a[i];\n\t\t\t}",
"a[i] > max",
"a[i]",
"a",
"i",
"max",
"{\n\t\t\t\tmax = a[i];\n\t\t\t}",
"max = a[i]",
"max",
"a[i]",
"a",
"i",
"add += a[i]",
"add",
"a[i]",
"a",
"i",
"System.out.println(min+\" \"+ max+\" \"+ add)",
"System.out.println",
"System.out",
"System",
"System.out",
"min+\" \"+ max+\" \"+ add",
"\" \"",
"max",
"min+\" \"+ max+\" \"+ add",
"min",
"\" \"",
"max",
"\" \"",
"add",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args)throws Exception{\n\t\tlong add=0;\n\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line1 = br.readLine();\n\t\tString[] line2 = br.readLine().split(\" \");\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tint n = Integer.parseInt(line1);\n\t\tint[] a = new int[n];\n\t\tint min = Integer.MAX_VALUE;\n\t\tint max = Integer.MIN_VALUE;\n\t\t\n\t\tfor(int i=0; i<n; i++){\n\t\t\ta[i] = Integer.parseInt(line2[i]);\n\t\t\tif(a[i] < min){\n\t\t\t\tmin = a[i];\n\t\t\t}\tif(a[i] > max){\n\t\t\t\tmax = a[i];\n\t\t\t}\n\t\t\tadd += a[i];\n\t\t}\n\t\tSystem.out.println(min+\" \"+ max+\" \"+ add);\t\t\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args)throws Exception{\n\t\tlong add=0;\n\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line1 = br.readLine();\n\t\tString[] line2 = br.readLine().split(\" \");\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tint n = Integer.parseInt(line1);\n\t\tint[] a = new int[n];\n\t\tint min = Integer.MAX_VALUE;\n\t\tint max = Integer.MIN_VALUE;\n\t\t\n\t\tfor(int i=0; i<n; i++){\n\t\t\ta[i] = Integer.parseInt(line2[i]);\n\t\t\tif(a[i] < min){\n\t\t\t\tmin = a[i];\n\t\t\t}\tif(a[i] > max){\n\t\t\t\tmax = a[i];\n\t\t\t}\n\t\t\tadd += a[i];\n\t\t}\n\t\tSystem.out.println(min+\" \"+ max+\" \"+ add);\t\t\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
public class Main{
public static void main(String[] args)throws Exception{
long add=0;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line1 = br.readLine();
String[] line2 = br.readLine().split(" ");
StringBuilder sb = new StringBuilder();
int n = Integer.parseInt(line1);
int[] a = new int[n];
int min = Integer.MAX_VALUE;
int max = Integer.MIN_VALUE;
for(int i=0; i<n; i++){
a[i] = Integer.parseInt(line2[i]);
if(a[i] < min){
min = a[i];
} if(a[i] > max){
max = a[i];
}
add += a[i];
}
System.out.println(min+" "+ max+" "+ add);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
18,
13,
17,
41,
13,
18,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
13,
18,
13,
13,
30,
0,
13,
18,
13,
13,
14,
2,
13,
18,
13,
13,
30,
0,
13,
18,
13,
13,
0,
13,
18,
13,
13,
4,
18,
18,
13,
13,
17,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
26,
27
],
[
26,
28
],
[
21,
29
],
[
29,
30
],
[
30,
31
],
[
21,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
8,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
8,
51
],
[
51,
52
],
[
51,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
54,
64
],
[
64,
65
],
[
65,
66
],
[
54,
67
],
[
68,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
69,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
68,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
84,
86
],
[
81,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
90,
92
],
[
68,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
95,
97
],
[
8,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
98,
104
],
[
98,
105
],
[
98,
106
],
[
6,
107
],
[
107,
108
]
] | [
"import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args){\n \tScanner scan = new Scanner(System.in);\n \tint n = scan.nextInt();\n \tlong[] values = new long[n];\n\n for(int i = 0; i < n; i++){\n \tvalues[i] = scan.nextInt();\n }\n\n long min = values[0];\n long max = values[0];\n long sum = 0;\n\n for(int i = 0; i < values.length; i++){\n \tif(min > values[i]){\n \t\tmin = values[i];\n \t}\n \tif(max < values[i]){\n \t\tmax = values[i];\n \t}\n \tsum += values[i];\n }\n System.out.printf(\"%d %d %d\\n\", min,max,sum);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] args){\n \tScanner scan = new Scanner(System.in);\n \tint n = scan.nextInt();\n \tlong[] values = new long[n];\n\n for(int i = 0; i < n; i++){\n \tvalues[i] = scan.nextInt();\n }\n\n long min = values[0];\n long max = values[0];\n long sum = 0;\n\n for(int i = 0; i < values.length; i++){\n \tif(min > values[i]){\n \t\tmin = values[i];\n \t}\n \tif(max < values[i]){\n \t\tmax = values[i];\n \t}\n \tsum += values[i];\n }\n System.out.printf(\"%d %d %d\\n\", min,max,sum);\n }\n}",
"Main",
"public static void main(String[] args){\n \tScanner scan = new Scanner(System.in);\n \tint n = scan.nextInt();\n \tlong[] values = new long[n];\n\n for(int i = 0; i < n; i++){\n \tvalues[i] = scan.nextInt();\n }\n\n long min = values[0];\n long max = values[0];\n long sum = 0;\n\n for(int i = 0; i < values.length; i++){\n \tif(min > values[i]){\n \t\tmin = values[i];\n \t}\n \tif(max < values[i]){\n \t\tmax = values[i];\n \t}\n \tsum += values[i];\n }\n System.out.printf(\"%d %d %d\\n\", min,max,sum);\n }",
"main",
"{\n \tScanner scan = new Scanner(System.in);\n \tint n = scan.nextInt();\n \tlong[] values = new long[n];\n\n for(int i = 0; i < n; i++){\n \tvalues[i] = scan.nextInt();\n }\n\n long min = values[0];\n long max = values[0];\n long sum = 0;\n\n for(int i = 0; i < values.length; i++){\n \tif(min > values[i]){\n \t\tmin = values[i];\n \t}\n \tif(max < values[i]){\n \t\tmax = values[i];\n \t}\n \tsum += values[i];\n }\n System.out.printf(\"%d %d %d\\n\", min,max,sum);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"long[] values = new long[n];",
"values",
"new long[n]",
"n",
"for(int i = 0; i < n; i++){\n \tvalues[i] = scan.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \tvalues[i] = scan.nextInt();\n }",
"{\n \tvalues[i] = scan.nextInt();\n }",
"values[i] = scan.nextInt()",
"values[i]",
"values",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"long min = values[0];",
"min",
"values[0]",
"values",
"0",
"long max = values[0];",
"max",
"values[0]",
"values",
"0",
"long sum = 0;",
"sum",
"0",
"for(int i = 0; i < values.length; i++){\n \tif(min > values[i]){\n \t\tmin = values[i];\n \t}\n \tif(max < values[i]){\n \t\tmax = values[i];\n \t}\n \tsum += values[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < values.length",
"i",
"values.length",
"values",
"values.length",
"i++",
"i++",
"i",
"{\n \tif(min > values[i]){\n \t\tmin = values[i];\n \t}\n \tif(max < values[i]){\n \t\tmax = values[i];\n \t}\n \tsum += values[i];\n }",
"{\n \tif(min > values[i]){\n \t\tmin = values[i];\n \t}\n \tif(max < values[i]){\n \t\tmax = values[i];\n \t}\n \tsum += values[i];\n }",
"if(min > values[i]){\n \t\tmin = values[i];\n \t}",
"min > values[i]",
"min",
"values[i]",
"values",
"i",
"{\n \t\tmin = values[i];\n \t}",
"min = values[i]",
"min",
"values[i]",
"values",
"i",
"if(max < values[i]){\n \t\tmax = values[i];\n \t}",
"max < values[i]",
"max",
"values[i]",
"values",
"i",
"{\n \t\tmax = values[i];\n \t}",
"max = values[i]",
"max",
"values[i]",
"values",
"i",
"sum += values[i]",
"sum",
"values[i]",
"values",
"i",
"System.out.printf(\"%d %d %d\\n\", min,max,sum)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d %d %d\\n\"",
"min",
"max",
"sum",
"String[] args",
"args"
] | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
long[] values = new long[n];
for(int i = 0; i < n; i++){
values[i] = scan.nextInt();
}
long min = values[0];
long max = values[0];
long sum = 0;
for(int i = 0; i < values.length; i++){
if(min > values[i]){
min = values[i];
}
if(max < values[i]){
max = values[i];
}
sum += values[i];
}
System.out.printf("%d %d %d\n", min,max,sum);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
40,
17,
30,
41,
13,
20,
41,
13,
41,
13,
17,
41,
13,
17,
42,
2,
0,
13,
4,
18,
13,
17,
30,
14,
2,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
14,
2,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
17,
41,
13,
17,
0,
13,
20,
13,
28,
13,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
13,
40,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
18,
13,
17,
4,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
18,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,
41,
13,
17,
28,
13,
13,
30,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
161,
11
],
[
161,
12
],
[
12,
13
],
[
12,
14
],
[
161,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
18,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
27,
33
],
[
33,
34
],
[
33,
35
],
[
27,
36
],
[
36,
37
],
[
36,
38
],
[
27,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
40,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
49,
53
],
[
48,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
54,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
66,
67
],
[
66,
68
],
[
47,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
70,
74
],
[
69,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
75,
82
],
[
82,
83
],
[
82,
84
],
[
75,
85
],
[
85,
86
],
[
85,
87
],
[
75,
89
],
[
89,
90
],
[
89,
91
],
[
89,
92
],
[
93,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
93,
102
],
[
102,
103
],
[
27,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
27,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
113,
114
],
[
113,
115
],
[
27,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
27,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
129,
131
],
[
27,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
27,
138
],
[
138,
139
],
[
138,
140
],
[
27,
141
],
[
141,
142
],
[
141,
143
],
[
141,
144
],
[
145,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
27,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
149,
154
],
[
27,
155
],
[
155,
156
],
[
156,
157
],
[
15,
158
],
[
158,
159
],
[
0,
160
],
[
160,
161
],
[
160,
162
]
] | [
"import java.io.InputStreamReader;\nimport java.io.LineNumberReader;\nimport java.util.Arrays;\n\n/**\n * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_4_D\n * \n * @author eitatsuro\n * \n */\npublic class Main {\n private final static String SPACE = \" \";\n public static void main(String[] args) {\n try {\n LineNumberReader stdReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String sStr;\n int n = 0;\n int[] an = null;\n while ((sStr = stdReader.readLine()) != null) {\n if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n }\n \n if (stdReader.getLineNumber() == 2) {\n String[] inputs = sStr.split(\" \");\n int i = 0;\n an = new int[n];\n for (String input : inputs) {\n an[i] = Integer.parseInt(input);\n i++;\n }\n }\n }\n // sort by ascending order.\n Arrays.sort(an);\n System.out.print(an[0]);\n System.out.print(SPACE);\n System.out.print(an[n - 1]);\n System.out.print(SPACE);\n long sum = 0;\n for (int a : an) {\n sum += a;\n }\n System.out.println(sum);\n \n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n }\n}",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.LineNumberReader;",
"LineNumberReader",
"java.io",
"import java.util.Arrays;",
"Arrays",
"java.util",
"public class Main {\n private final static String SPACE = \" \";\n public static void main(String[] args) {\n try {\n LineNumberReader stdReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String sStr;\n int n = 0;\n int[] an = null;\n while ((sStr = stdReader.readLine()) != null) {\n if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n }\n \n if (stdReader.getLineNumber() == 2) {\n String[] inputs = sStr.split(\" \");\n int i = 0;\n an = new int[n];\n for (String input : inputs) {\n an[i] = Integer.parseInt(input);\n i++;\n }\n }\n }\n // sort by ascending order.\n Arrays.sort(an);\n System.out.print(an[0]);\n System.out.print(SPACE);\n System.out.print(an[n - 1]);\n System.out.print(SPACE);\n long sum = 0;\n for (int a : an) {\n sum += a;\n }\n System.out.println(sum);\n \n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n }\n}",
"Main",
"private final static String SPACE = \" \";",
"SPACE",
"\" \"",
"public static void main(String[] args) {\n try {\n LineNumberReader stdReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String sStr;\n int n = 0;\n int[] an = null;\n while ((sStr = stdReader.readLine()) != null) {\n if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n }\n \n if (stdReader.getLineNumber() == 2) {\n String[] inputs = sStr.split(\" \");\n int i = 0;\n an = new int[n];\n for (String input : inputs) {\n an[i] = Integer.parseInt(input);\n i++;\n }\n }\n }\n // sort by ascending order.\n Arrays.sort(an);\n System.out.print(an[0]);\n System.out.print(SPACE);\n System.out.print(an[n - 1]);\n System.out.print(SPACE);\n long sum = 0;\n for (int a : an) {\n sum += a;\n }\n System.out.println(sum);\n \n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n }",
"main",
"{\n try {\n LineNumberReader stdReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String sStr;\n int n = 0;\n int[] an = null;\n while ((sStr = stdReader.readLine()) != null) {\n if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n }\n \n if (stdReader.getLineNumber() == 2) {\n String[] inputs = sStr.split(\" \");\n int i = 0;\n an = new int[n];\n for (String input : inputs) {\n an[i] = Integer.parseInt(input);\n i++;\n }\n }\n }\n // sort by ascending order.\n Arrays.sort(an);\n System.out.print(an[0]);\n System.out.print(SPACE);\n System.out.print(an[n - 1]);\n System.out.print(SPACE);\n long sum = 0;\n for (int a : an) {\n sum += a;\n }\n System.out.println(sum);\n \n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n }",
"try {\n LineNumberReader stdReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String sStr;\n int n = 0;\n int[] an = null;\n while ((sStr = stdReader.readLine()) != null) {\n if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n }\n \n if (stdReader.getLineNumber() == 2) {\n String[] inputs = sStr.split(\" \");\n int i = 0;\n an = new int[n];\n for (String input : inputs) {\n an[i] = Integer.parseInt(input);\n i++;\n }\n }\n }\n // sort by ascending order.\n Arrays.sort(an);\n System.out.print(an[0]);\n System.out.print(SPACE);\n System.out.print(an[n - 1]);\n System.out.print(SPACE);\n long sum = 0;\n for (int a : an) {\n sum += a;\n }\n System.out.println(sum);\n \n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }",
"catch (Exception e) {\n System.exit(-1);\n }",
"Exception e",
"{\n System.exit(-1);\n }",
"System.exit(-1)",
"System.exit",
"System",
"-1",
"1",
"{\n LineNumberReader stdReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String sStr;\n int n = 0;\n int[] an = null;\n while ((sStr = stdReader.readLine()) != null) {\n if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n }\n \n if (stdReader.getLineNumber() == 2) {\n String[] inputs = sStr.split(\" \");\n int i = 0;\n an = new int[n];\n for (String input : inputs) {\n an[i] = Integer.parseInt(input);\n i++;\n }\n }\n }\n // sort by ascending order.\n Arrays.sort(an);\n System.out.print(an[0]);\n System.out.print(SPACE);\n System.out.print(an[n - 1]);\n System.out.print(SPACE);\n long sum = 0;\n for (int a : an) {\n sum += a;\n }\n System.out.println(sum);\n \n stdReader.close();\n }",
"LineNumberReader stdReader = new LineNumberReader(\n new InputStreamReader(System.in));",
"stdReader",
"new LineNumberReader(\n new InputStreamReader(System.in))",
"String sStr;",
"sStr",
"int n = 0;",
"n",
"0",
"int[] an = null;",
"an",
"null",
"while ((sStr = stdReader.readLine()) != null) {\n if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n }\n \n if (stdReader.getLineNumber() == 2) {\n String[] inputs = sStr.split(\" \");\n int i = 0;\n an = new int[n];\n for (String input : inputs) {\n an[i] = Integer.parseInt(input);\n i++;\n }\n }\n }",
"(sStr = stdReader.readLine()) != null",
"(sStr = stdReader.readLine())",
"sStr",
"stdReader.readLine()",
"stdReader.readLine",
"stdReader",
"null",
"{\n if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n }\n \n if (stdReader.getLineNumber() == 2) {\n String[] inputs = sStr.split(\" \");\n int i = 0;\n an = new int[n];\n for (String input : inputs) {\n an[i] = Integer.parseInt(input);\n i++;\n }\n }\n }",
"if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n }",
"stdReader.getLineNumber() == 1",
"stdReader.getLineNumber()",
"stdReader.getLineNumber",
"stdReader",
"1",
"{\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n }",
"String[] inputs = sStr.split(\" \");",
"inputs",
"sStr.split(\" \")",
"sStr.split",
"sStr",
"\" \"",
"n = Integer.valueOf(inputs[0])",
"n",
"Integer.valueOf(inputs[0])",
"Integer.valueOf",
"Integer",
"inputs[0]",
"inputs",
"0",
"if (stdReader.getLineNumber() == 2) {\n String[] inputs = sStr.split(\" \");\n int i = 0;\n an = new int[n];\n for (String input : inputs) {\n an[i] = Integer.parseInt(input);\n i++;\n }\n }",
"stdReader.getLineNumber() == 2",
"stdReader.getLineNumber()",
"stdReader.getLineNumber",
"stdReader",
"2",
"{\n String[] inputs = sStr.split(\" \");\n int i = 0;\n an = new int[n];\n for (String input : inputs) {\n an[i] = Integer.parseInt(input);\n i++;\n }\n }",
"String[] inputs = sStr.split(\" \");",
"inputs",
"sStr.split(\" \")",
"sStr.split",
"sStr",
"\" \"",
"int i = 0;",
"i",
"0",
"an = new int[n]",
"an",
"new int[n]",
"n",
"for (String input : inputs) {\n an[i] = Integer.parseInt(input);\n i++;\n }",
"String input",
"inputs",
"{\n an[i] = Integer.parseInt(input);\n i++;\n }",
"{\n an[i] = Integer.parseInt(input);\n i++;\n }",
"an[i] = Integer.parseInt(input)",
"an[i]",
"an",
"i",
"Integer.parseInt(input)",
"Integer.parseInt",
"Integer",
"input",
"i++",
"i",
"Arrays.sort(an)",
"Arrays.sort",
"Arrays",
"an",
"System.out.print(an[0])",
"System.out.print",
"System.out",
"System",
"System.out",
"an[0]",
"an",
"0",
"System.out.print(SPACE)",
"System.out.print",
"System.out",
"System",
"System.out",
"SPACE",
"System.out.print(an[n - 1])",
"System.out.print",
"System.out",
"System",
"System.out",
"an[n - 1]",
"an",
"n - 1",
"n",
"1",
"System.out.print(SPACE)",
"System.out.print",
"System.out",
"System",
"System.out",
"SPACE",
"long sum = 0;",
"sum",
"0",
"for (int a : an) {\n sum += a;\n }",
"int a",
"an",
"{\n sum += a;\n }",
"{\n sum += a;\n }",
"sum += a",
"sum",
"a",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"stdReader.close()",
"stdReader.close",
"stdReader",
"String[] args",
"args",
"public class Main {\n private final static String SPACE = \" \";\n public static void main(String[] args) {\n try {\n LineNumberReader stdReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String sStr;\n int n = 0;\n int[] an = null;\n while ((sStr = stdReader.readLine()) != null) {\n if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n }\n \n if (stdReader.getLineNumber() == 2) {\n String[] inputs = sStr.split(\" \");\n int i = 0;\n an = new int[n];\n for (String input : inputs) {\n an[i] = Integer.parseInt(input);\n i++;\n }\n }\n }\n // sort by ascending order.\n Arrays.sort(an);\n System.out.print(an[0]);\n System.out.print(SPACE);\n System.out.print(an[n - 1]);\n System.out.print(SPACE);\n long sum = 0;\n for (int a : an) {\n sum += a;\n }\n System.out.println(sum);\n \n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n }\n}",
"public class Main {\n private final static String SPACE = \" \";\n public static void main(String[] args) {\n try {\n LineNumberReader stdReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String sStr;\n int n = 0;\n int[] an = null;\n while ((sStr = stdReader.readLine()) != null) {\n if (stdReader.getLineNumber() == 1) {\n String[] inputs = sStr.split(\" \");\n n = Integer.valueOf(inputs[0]);\n }\n \n if (stdReader.getLineNumber() == 2) {\n String[] inputs = sStr.split(\" \");\n int i = 0;\n an = new int[n];\n for (String input : inputs) {\n an[i] = Integer.parseInt(input);\n i++;\n }\n }\n }\n // sort by ascending order.\n Arrays.sort(an);\n System.out.print(an[0]);\n System.out.print(SPACE);\n System.out.print(an[n - 1]);\n System.out.print(SPACE);\n long sum = 0;\n for (int a : an) {\n sum += a;\n }\n System.out.println(sum);\n \n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n }\n}",
"Main"
] | import java.io.InputStreamReader;
import java.io.LineNumberReader;
import java.util.Arrays;
/**
* http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_4_D
*
* @author eitatsuro
*
*/
public class Main {
private final static String SPACE = " ";
public static void main(String[] args) {
try {
LineNumberReader stdReader = new LineNumberReader(
new InputStreamReader(System.in));
String sStr;
int n = 0;
int[] an = null;
while ((sStr = stdReader.readLine()) != null) {
if (stdReader.getLineNumber() == 1) {
String[] inputs = sStr.split(" ");
n = Integer.valueOf(inputs[0]);
}
if (stdReader.getLineNumber() == 2) {
String[] inputs = sStr.split(" ");
int i = 0;
an = new int[n];
for (String input : inputs) {
an[i] = Integer.parseInt(input);
i++;
}
}
}
// sort by ascending order.
Arrays.sort(an);
System.out.print(an[0]);
System.out.print(SPACE);
System.out.print(an[n - 1]);
System.out.print(SPACE);
long sum = 0;
for (int a : an) {
sum += a;
}
System.out.println(sum);
stdReader.close();
} catch (Exception e) {
System.exit(-1);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
20,
13,
41,
13,
4,
18,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
0,
13,
18,
13,
13,
41,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
13,
18,
13,
13,
30,
0,
13,
18,
13,
13,
41,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
13,
18,
13,
13,
30,
0,
13,
18,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
160,
11
],
[
160,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
15,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
22,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
22,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
22,
42
],
[
42,
43
],
[
42,
44
],
[
22,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
22,
52
],
[
52,
53
],
[
52,
54
],
[
22,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
75,
77
],
[
67,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
80,
82
],
[
22,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
85,
87
],
[
22,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
88,
96
],
[
96,
97
],
[
97,
98
],
[
88,
99
],
[
100,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
104,
106
],
[
101,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
110,
112
],
[
22,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
115,
117
],
[
22,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
118,
126
],
[
126,
127
],
[
127,
128
],
[
118,
129
],
[
130,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
134,
136
],
[
131,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
140,
142
],
[
22,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
143,
148
],
[
151,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
150,
154
],
[
149,
155
],
[
151,
156
],
[
12,
157
],
[
157,
158
],
[
0,
159
],
[
159,
160
],
[
159,
161
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = reader.readLine();\n\t\t\tString t = reader.readLine();\n\t\t\tint n = Integer.parseInt(s);\n\t\t\tint[] a = new int[n];\n\t\t\tString[] b = t.split(\" \");\n\n\t\t\tlong sum = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ta[i] = Integer.parseInt(b[i]);\n\t\t\t\tsum += a[i];\n\t\t\t}\n\t\t\tint max = a[0];\n\t\t\tfor (int j = 1; j < n; j++) {\n\t\t\t\tif (max < a[j]) {\n\t\t\t\t\tmax = a[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint min = a[0];\n\t\t\tfor (int k = 1; k < n; k++) {\n\t\t\t\tif (min > a[k]) {\n\t\t\t\t\tmin = a[k];\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = reader.readLine();\n\t\t\tString t = reader.readLine();\n\t\t\tint n = Integer.parseInt(s);\n\t\t\tint[] a = new int[n];\n\t\t\tString[] b = t.split(\" \");\n\n\t\t\tlong sum = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ta[i] = Integer.parseInt(b[i]);\n\t\t\t\tsum += a[i];\n\t\t\t}\n\t\t\tint max = a[0];\n\t\t\tfor (int j = 1; j < n; j++) {\n\t\t\t\tif (max < a[j]) {\n\t\t\t\t\tmax = a[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint min = a[0];\n\t\t\tfor (int k = 1; k < n; k++) {\n\t\t\t\tif (min > a[k]) {\n\t\t\t\t\tmin = a[k];\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = reader.readLine();\n\t\t\tString t = reader.readLine();\n\t\t\tint n = Integer.parseInt(s);\n\t\t\tint[] a = new int[n];\n\t\t\tString[] b = t.split(\" \");\n\n\t\t\tlong sum = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ta[i] = Integer.parseInt(b[i]);\n\t\t\t\tsum += a[i];\n\t\t\t}\n\t\t\tint max = a[0];\n\t\t\tfor (int j = 1; j < n; j++) {\n\t\t\t\tif (max < a[j]) {\n\t\t\t\t\tmax = a[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint min = a[0];\n\t\t\tfor (int k = 1; k < n; k++) {\n\t\t\t\tif (min > a[k]) {\n\t\t\t\t\tmin = a[k];\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"main",
"{\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = reader.readLine();\n\t\t\tString t = reader.readLine();\n\t\t\tint n = Integer.parseInt(s);\n\t\t\tint[] a = new int[n];\n\t\t\tString[] b = t.split(\" \");\n\n\t\t\tlong sum = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ta[i] = Integer.parseInt(b[i]);\n\t\t\t\tsum += a[i];\n\t\t\t}\n\t\t\tint max = a[0];\n\t\t\tfor (int j = 1; j < n; j++) {\n\t\t\t\tif (max < a[j]) {\n\t\t\t\t\tmax = a[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint min = a[0];\n\t\t\tfor (int k = 1; k < n; k++) {\n\t\t\t\tif (min > a[k]) {\n\t\t\t\t\tmin = a[k];\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"try {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = reader.readLine();\n\t\t\tString t = reader.readLine();\n\t\t\tint n = Integer.parseInt(s);\n\t\t\tint[] a = new int[n];\n\t\t\tString[] b = t.split(\" \");\n\n\t\t\tlong sum = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ta[i] = Integer.parseInt(b[i]);\n\t\t\t\tsum += a[i];\n\t\t\t}\n\t\t\tint max = a[0];\n\t\t\tfor (int j = 1; j < n; j++) {\n\t\t\t\tif (max < a[j]) {\n\t\t\t\t\tmax = a[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint min = a[0];\n\t\t\tfor (int k = 1; k < n; k++) {\n\t\t\t\tif (min > a[k]) {\n\t\t\t\t\tmin = a[k];\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t\t\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\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = reader.readLine();\n\t\t\tString t = reader.readLine();\n\t\t\tint n = Integer.parseInt(s);\n\t\t\tint[] a = new int[n];\n\t\t\tString[] b = t.split(\" \");\n\n\t\t\tlong sum = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ta[i] = Integer.parseInt(b[i]);\n\t\t\t\tsum += a[i];\n\t\t\t}\n\t\t\tint max = a[0];\n\t\t\tfor (int j = 1; j < n; j++) {\n\t\t\t\tif (max < a[j]) {\n\t\t\t\t\tmax = a[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint min = a[0];\n\t\t\tfor (int k = 1; k < n; k++) {\n\t\t\t\tif (min > a[k]) {\n\t\t\t\t\tmin = a[k];\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t\t\n\t\t}",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"String s = reader.readLine();",
"s",
"reader.readLine()",
"reader.readLine",
"reader",
"String t = reader.readLine();",
"t",
"reader.readLine()",
"reader.readLine",
"reader",
"int n = Integer.parseInt(s);",
"n",
"Integer.parseInt(s)",
"Integer.parseInt",
"Integer",
"s",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"String[] b = t.split(\" \");",
"b",
"t.split(\" \")",
"t.split",
"t",
"\" \"",
"long sum = 0;",
"sum",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\t\ta[i] = Integer.parseInt(b[i]);\n\t\t\t\tsum += a[i];\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\ta[i] = Integer.parseInt(b[i]);\n\t\t\t\tsum += a[i];\n\t\t\t}",
"{\n\t\t\t\ta[i] = Integer.parseInt(b[i]);\n\t\t\t\tsum += a[i];\n\t\t\t}",
"a[i] = Integer.parseInt(b[i])",
"a[i]",
"a",
"i",
"Integer.parseInt(b[i])",
"Integer.parseInt",
"Integer",
"b[i]",
"b",
"i",
"sum += a[i]",
"sum",
"a[i]",
"a",
"i",
"int max = a[0];",
"max",
"a[0]",
"a",
"0",
"for (int j = 1; j < n; j++) {\n\t\t\t\tif (max < a[j]) {\n\t\t\t\t\tmax = a[j];\n\t\t\t\t}\n\t\t\t}",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j < n",
"j",
"n",
"j++",
"j++",
"j",
"{\n\t\t\t\tif (max < a[j]) {\n\t\t\t\t\tmax = a[j];\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif (max < a[j]) {\n\t\t\t\t\tmax = a[j];\n\t\t\t\t}\n\t\t\t}",
"if (max < a[j]) {\n\t\t\t\t\tmax = a[j];\n\t\t\t\t}",
"max < a[j]",
"max",
"a[j]",
"a",
"j",
"{\n\t\t\t\t\tmax = a[j];\n\t\t\t\t}",
"max = a[j]",
"max",
"a[j]",
"a",
"j",
"int min = a[0];",
"min",
"a[0]",
"a",
"0",
"for (int k = 1; k < n; k++) {\n\t\t\t\tif (min > a[k]) {\n\t\t\t\t\tmin = a[k];\n\t\t\t\t}\n\t\t\t}",
"int k = 1;",
"int k = 1;",
"k",
"1",
"k < n",
"k",
"n",
"k++",
"k++",
"k",
"{\n\t\t\t\tif (min > a[k]) {\n\t\t\t\t\tmin = a[k];\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif (min > a[k]) {\n\t\t\t\t\tmin = a[k];\n\t\t\t\t}\n\t\t\t}",
"if (min > a[k]) {\n\t\t\t\t\tmin = a[k];\n\t\t\t\t}",
"min > a[k]",
"min",
"a[k]",
"a",
"k",
"{\n\t\t\t\t\tmin = a[k];\n\t\t\t\t}",
"min = a[k]",
"min",
"a[k]",
"a",
"k",
"System.out.println(min + \" \" + max + \" \" + sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min + \" \" + max + \" \" + sum",
"\" \"",
"max",
"min + \" \" + max + \" \" + sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args",
"public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = reader.readLine();\n\t\t\tString t = reader.readLine();\n\t\t\tint n = Integer.parseInt(s);\n\t\t\tint[] a = new int[n];\n\t\t\tString[] b = t.split(\" \");\n\n\t\t\tlong sum = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ta[i] = Integer.parseInt(b[i]);\n\t\t\t\tsum += a[i];\n\t\t\t}\n\t\t\tint max = a[0];\n\t\t\tfor (int j = 1; j < n; j++) {\n\t\t\t\tif (max < a[j]) {\n\t\t\t\t\tmax = a[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint min = a[0];\n\t\t\tfor (int k = 1; k < n; k++) {\n\t\t\t\tif (min > a[k]) {\n\t\t\t\t\tmin = a[k];\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n}",
"public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = reader.readLine();\n\t\t\tString t = reader.readLine();\n\t\t\tint n = Integer.parseInt(s);\n\t\t\tint[] a = new int[n];\n\t\t\tString[] b = t.split(\" \");\n\n\t\t\tlong sum = 0;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\ta[i] = Integer.parseInt(b[i]);\n\t\t\t\tsum += a[i];\n\t\t\t}\n\t\t\tint max = a[0];\n\t\t\tfor (int j = 1; j < n; j++) {\n\t\t\t\tif (max < a[j]) {\n\t\t\t\t\tmax = a[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint min = a[0];\n\t\t\tfor (int k = 1; k < n; k++) {\n\t\t\t\tif (min > a[k]) {\n\t\t\t\t\tmin = a[k];\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
try {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String s = reader.readLine();
String t = reader.readLine();
int n = Integer.parseInt(s);
int[] a = new int[n];
String[] b = t.split(" ");
long sum = 0;
for (int i = 0; i < n; i++) {
a[i] = Integer.parseInt(b[i]);
sum += a[i];
}
int max = a[0];
for (int j = 1; j < n; j++) {
if (max < a[j]) {
max = a[j];
}
}
int min = a[0];
for (int k = 1; k < n; k++) {
if (min > a[k]) {
min = a[k];
}
}
System.out.println(min + " " + max + " " + sum);
} catch (IOException e) {
e.printStackTrace();
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
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,
0,
13,
13,
0,
13,
13,
0,
13,
13,
14,
2,
13,
13,
0,
13,
13,
14,
2,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
52,
54
],
[
38,
55
],
[
55,
56
],
[
55,
57
],
[
38,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
62,
64
],
[
38,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
69,
71
],
[
8,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
80,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
78,
84
],
[
80,
85
],
[
6,
86
],
[
86,
87
]
] | [
"import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint length = scanner.nextInt(), minimum = 0, maximum = 0;\n\t\tlong total = 0;\n\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tint number = scanner.nextInt();\n\n\t\t\tif (i == 0) {\n\t\t\t\tminimum = number;\n\t\t\t\tmaximum = number;\n\t\t\t}\n\n\t\t\ttotal += number;\n\n\t\t\tif (number < minimum)\n\t\t\t\tminimum = number;\n\t\t\tif (number > maximum)\n\t\t\t\tmaximum = number;\n\t\t}\n\n\t\tSystem.out.println(minimum + \" \" + maximum + \" \" + total);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint length = scanner.nextInt(), minimum = 0, maximum = 0;\n\t\tlong total = 0;\n\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tint number = scanner.nextInt();\n\n\t\t\tif (i == 0) {\n\t\t\t\tminimum = number;\n\t\t\t\tmaximum = number;\n\t\t\t}\n\n\t\t\ttotal += number;\n\n\t\t\tif (number < minimum)\n\t\t\t\tminimum = number;\n\t\t\tif (number > maximum)\n\t\t\t\tmaximum = number;\n\t\t}\n\n\t\tSystem.out.println(minimum + \" \" + maximum + \" \" + total);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint length = scanner.nextInt(), minimum = 0, maximum = 0;\n\t\tlong total = 0;\n\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tint number = scanner.nextInt();\n\n\t\t\tif (i == 0) {\n\t\t\t\tminimum = number;\n\t\t\t\tmaximum = number;\n\t\t\t}\n\n\t\t\ttotal += number;\n\n\t\t\tif (number < minimum)\n\t\t\t\tminimum = number;\n\t\t\tif (number > maximum)\n\t\t\t\tmaximum = number;\n\t\t}\n\n\t\tSystem.out.println(minimum + \" \" + maximum + \" \" + total);\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint length = scanner.nextInt(), minimum = 0, maximum = 0;\n\t\tlong total = 0;\n\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tint number = scanner.nextInt();\n\n\t\t\tif (i == 0) {\n\t\t\t\tminimum = number;\n\t\t\t\tmaximum = number;\n\t\t\t}\n\n\t\t\ttotal += number;\n\n\t\t\tif (number < minimum)\n\t\t\t\tminimum = number;\n\t\t\tif (number > maximum)\n\t\t\t\tmaximum = number;\n\t\t}\n\n\t\tSystem.out.println(minimum + \" \" + maximum + \" \" + total);\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int length = scanner.nextInt()",
"length",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"minimum = 0",
"minimum",
"0",
"maximum = 0;",
"maximum",
"0",
"long total = 0;",
"total",
"0",
"for (int i = 0; i < length; i++) {\n\t\t\tint number = scanner.nextInt();\n\n\t\t\tif (i == 0) {\n\t\t\t\tminimum = number;\n\t\t\t\tmaximum = number;\n\t\t\t}\n\n\t\t\ttotal += number;\n\n\t\t\tif (number < minimum)\n\t\t\t\tminimum = number;\n\t\t\tif (number > maximum)\n\t\t\t\tmaximum = number;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < length",
"i",
"length",
"i++",
"i++",
"i",
"{\n\t\t\tint number = scanner.nextInt();\n\n\t\t\tif (i == 0) {\n\t\t\t\tminimum = number;\n\t\t\t\tmaximum = number;\n\t\t\t}\n\n\t\t\ttotal += number;\n\n\t\t\tif (number < minimum)\n\t\t\t\tminimum = number;\n\t\t\tif (number > maximum)\n\t\t\t\tmaximum = number;\n\t\t}",
"{\n\t\t\tint number = scanner.nextInt();\n\n\t\t\tif (i == 0) {\n\t\t\t\tminimum = number;\n\t\t\t\tmaximum = number;\n\t\t\t}\n\n\t\t\ttotal += number;\n\n\t\t\tif (number < minimum)\n\t\t\t\tminimum = number;\n\t\t\tif (number > maximum)\n\t\t\t\tmaximum = number;\n\t\t}",
"int number = scanner.nextInt();",
"number",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"if (i == 0) {\n\t\t\t\tminimum = number;\n\t\t\t\tmaximum = number;\n\t\t\t}",
"i == 0",
"i",
"0",
"{\n\t\t\t\tminimum = number;\n\t\t\t\tmaximum = number;\n\t\t\t}",
"minimum = number",
"minimum",
"number",
"maximum = number",
"maximum",
"number",
"total += number",
"total",
"number",
"if (number < minimum)\n\t\t\t\tminimum = number;",
"number < minimum",
"number",
"minimum",
"minimum = number",
"minimum",
"number",
"if (number > maximum)\n\t\t\t\tmaximum = number;",
"number > maximum",
"number",
"maximum",
"maximum = number",
"maximum",
"number",
"System.out.println(minimum + \" \" + maximum + \" \" + total)",
"System.out.println",
"System.out",
"System",
"System.out",
"minimum + \" \" + maximum + \" \" + total",
"\" \"",
"maximum",
"minimum + \" \" + maximum + \" \" + total",
"minimum",
"\" \"",
"maximum",
"\" \"",
"total",
"String[] args",
"args"
] | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int length = scanner.nextInt(), minimum = 0, maximum = 0;
long total = 0;
for (int i = 0; i < length; i++) {
int number = scanner.nextInt();
if (i == 0) {
minimum = number;
maximum = number;
}
total += number;
if (number < minimum)
minimum = number;
if (number > maximum)
maximum = number;
}
System.out.println(minimum + " " + maximum + " " + total);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
13,
41,
13,
13,
41,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
18,
13,
13,
14,
2,
13,
13,
0,
13,
13,
14,
2,
13,
13,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
22,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
8,
42
],
[
42,
43
],
[
42,
44
],
[
8,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
63,
64
],
[
63,
65
],
[
57,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
70,
72
],
[
57,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
77,
79
],
[
57,
80
],
[
80,
81
],
[
80,
82
],
[
8,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
91,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
89,
95
],
[
91,
96
],
[
6,
97
],
[
97,
98
]
] | [
"import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int N = Integer.parseInt(br.readLine());\n String[] array = br.readLine().split(\" \");\n int num = Integer.parseInt(array[0]);\n int min=num,max=num;\n long sum=num;\n for(int i=1;i<N;i++){\n num=Integer.parseInt(array[i]);\n if(num<min) min=num;\n if(num>max) max=num;\n sum+=num;\n }\n System.out.println(min+\" \"+max+\" \"+sum);\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int N = Integer.parseInt(br.readLine());\n String[] array = br.readLine().split(\" \");\n int num = Integer.parseInt(array[0]);\n int min=num,max=num;\n long sum=num;\n for(int i=1;i<N;i++){\n num=Integer.parseInt(array[i]);\n if(num<min) min=num;\n if(num>max) max=num;\n sum+=num;\n }\n System.out.println(min+\" \"+max+\" \"+sum);\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int N = Integer.parseInt(br.readLine());\n String[] array = br.readLine().split(\" \");\n int num = Integer.parseInt(array[0]);\n int min=num,max=num;\n long sum=num;\n for(int i=1;i<N;i++){\n num=Integer.parseInt(array[i]);\n if(num<min) min=num;\n if(num>max) max=num;\n sum+=num;\n }\n System.out.println(min+\" \"+max+\" \"+sum);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int N = Integer.parseInt(br.readLine());\n String[] array = br.readLine().split(\" \");\n int num = Integer.parseInt(array[0]);\n int min=num,max=num;\n long sum=num;\n for(int i=1;i<N;i++){\n num=Integer.parseInt(array[i]);\n if(num<min) min=num;\n if(num>max) max=num;\n sum+=num;\n }\n System.out.println(min+\" \"+max+\" \"+sum);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int N = Integer.parseInt(br.readLine());",
"N",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String[] array = br.readLine().split(\" \");",
"array",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int num = Integer.parseInt(array[0]);",
"num",
"Integer.parseInt(array[0])",
"Integer.parseInt",
"Integer",
"array[0]",
"array",
"0",
"int min=num",
"min",
"num",
"max=num;",
"max",
"num",
"long sum=num;",
"sum",
"num",
"for(int i=1;i<N;i++){\n num=Integer.parseInt(array[i]);\n if(num<min) min=num;\n if(num>max) max=num;\n sum+=num;\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n num=Integer.parseInt(array[i]);\n if(num<min) min=num;\n if(num>max) max=num;\n sum+=num;\n }",
"{\n num=Integer.parseInt(array[i]);\n if(num<min) min=num;\n if(num>max) max=num;\n sum+=num;\n }",
"num=Integer.parseInt(array[i])",
"num",
"Integer.parseInt(array[i])",
"Integer.parseInt",
"Integer",
"array[i]",
"array",
"i",
"if(num<min) min=num;",
"num<min",
"num",
"min",
"min=num",
"min",
"num",
"if(num>max) max=num;",
"num>max",
"num",
"max",
"max=num",
"max",
"num",
"sum+=num",
"sum",
"num",
"System.out.println(min+\" \"+max+\" \"+sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min+\" \"+max+\" \"+sum",
"\" \"",
"max",
"min+\" \"+max+\" \"+sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args"
] | import java.io.*;
class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int N = Integer.parseInt(br.readLine());
String[] array = br.readLine().split(" ");
int num = Integer.parseInt(array[0]);
int min=num,max=num;
long sum=num;
for(int i=1;i<N;i++){
num=Integer.parseInt(array[i]);
if(num<min) min=num;
if(num>max) max=num;
sum+=num;
}
System.out.println(min+" "+max+" "+sum);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
13,
41,
13,
13,
41,
13,
13,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
87,
5
],
[
87,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
31,
41
],
[
41,
42
],
[
42,
43
],
[
31,
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
],
[
56,
58
],
[
45,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
45,
67
],
[
67,
68
],
[
67,
69
],
[
8,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
78,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
76,
82
],
[
78,
83
],
[
6,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
] | [
"import java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n int a = in.nextInt();\n int b = in.nextInt();\n int min = b;\n int max = b;\n long sum = b;\n for(int i = 0 ;i<a-1 ;i++){\n int c = in.nextInt();\n if(min>c){\n min = c;\n }\n if(max<c){\n max = c;\n }\n sum += c;\n }\n System.out.println(min+\" \"+max+\" \"+sum);\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 = in.nextInt();\n int b = in.nextInt();\n int min = b;\n int max = b;\n long sum = b;\n for(int i = 0 ;i<a-1 ;i++){\n int c = in.nextInt();\n if(min>c){\n min = c;\n }\n if(max<c){\n max = c;\n }\n sum += c;\n }\n System.out.println(min+\" \"+max+\" \"+sum);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n int a = in.nextInt();\n int b = in.nextInt();\n int min = b;\n int max = b;\n long sum = b;\n for(int i = 0 ;i<a-1 ;i++){\n int c = in.nextInt();\n if(min>c){\n min = c;\n }\n if(max<c){\n max = c;\n }\n sum += c;\n }\n System.out.println(min+\" \"+max+\" \"+sum);\n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n int a = in.nextInt();\n int b = in.nextInt();\n int min = b;\n int max = b;\n long sum = b;\n for(int i = 0 ;i<a-1 ;i++){\n int c = in.nextInt();\n if(min>c){\n min = c;\n }\n if(max<c){\n max = c;\n }\n sum += c;\n }\n System.out.println(min+\" \"+max+\" \"+sum);\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 min = b;",
"min",
"b",
"int max = b;",
"max",
"b",
"long sum = b;",
"sum",
"b",
"for(int i = 0 ;i<a-1 ;i++){\n int c = in.nextInt();\n if(min>c){\n min = c;\n }\n if(max<c){\n max = c;\n }\n sum += c;\n }",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i<a-1",
"i",
"a-1",
"a",
"1",
"i++",
"i++",
"i",
"{\n int c = in.nextInt();\n if(min>c){\n min = c;\n }\n if(max<c){\n max = c;\n }\n sum += c;\n }",
"{\n int c = in.nextInt();\n if(min>c){\n min = c;\n }\n if(max<c){\n max = c;\n }\n sum += c;\n }",
"int c = in.nextInt();",
"c",
"in.nextInt()",
"in.nextInt",
"in",
"if(min>c){\n min = c;\n }",
"min>c",
"min",
"c",
"{\n min = c;\n }",
"min = c",
"min",
"c",
"if(max<c){\n max = c;\n }",
"max<c",
"max",
"c",
"{\n max = c;\n }",
"max = c",
"max",
"c",
"sum += c",
"sum",
"c",
"System.out.println(min+\" \"+max+\" \"+sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min+\" \"+max+\" \"+sum",
"\" \"",
"max",
"min+\" \"+max+\" \"+sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n int a = in.nextInt();\n int b = in.nextInt();\n int min = b;\n int max = b;\n long sum = b;\n for(int i = 0 ;i<a-1 ;i++){\n int c = in.nextInt();\n if(min>c){\n min = c;\n }\n if(max<c){\n max = c;\n }\n sum += c;\n }\n System.out.println(min+\" \"+max+\" \"+sum);\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n int a = in.nextInt();\n int b = in.nextInt();\n int min = b;\n int max = b;\n long sum = b;\n for(int i = 0 ;i<a-1 ;i++){\n int c = in.nextInt();\n if(min>c){\n min = c;\n }\n if(max<c){\n max = c;\n }\n sum += c;\n }\n System.out.println(min+\" \"+max+\" \"+sum);\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner in = new Scanner(System.in);
int a = in.nextInt();
int b = in.nextInt();
int min = b;
int max = b;
long sum = b;
for(int i = 0 ;i<a-1 ;i++){
int c = in.nextInt();
if(min>c){
min = c;
}
if(max<c){
max = c;
}
sum += c;
}
System.out.println(min+" "+max+" "+sum);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
13,
13,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
40,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
54,
56
],
[
40,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
40,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
40,
73
],
[
73,
74
],
[
73,
75
],
[
8,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
84,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
82,
88
],
[
84,
89
],
[
6,
90
],
[
90,
91
]
] | [
"//API???????????????\nimport java.util.Scanner;\nclass Main{\n \tpublic static void main(String[] args){\n\t//???????????\\???\n \tScanner scan = new Scanner(System.in);\n \t//???????????´??°?????????????????£??\\\n \tint n = scan.nextInt();\n \tint a;\n \tint min = 0;\n \tint max = 0;\n\t//?????????long????????????????????£??\\\n \tlong sum = 0;\n \t\n\t//n??????????????????????????§??°?????????\n \tfor(int i = 0; i < n; i++){\n \t a = scan.nextInt();\n \t if(i == 0) {\n \t \tmin = a;\n \t \tmax = a;\n \t }\n\t if(min > a){\n\t\tmin = a;\n\t }\n \t //min = Math.min(min, a);\n\t\n\t if(max < a){\n\t\tmax = a;\n\t }\n \t //max = Math.max(max, a);\n \t sum += a;\n \t}\n \t//????????????\n \tSystem.out.println(min + \" \" + max + \" \" + sum);\n \t\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n \tpublic static void main(String[] args){\n\t//???????????\\???\n \tScanner scan = new Scanner(System.in);\n \t//???????????´??°?????????????????£??\\\n \tint n = scan.nextInt();\n \tint a;\n \tint min = 0;\n \tint max = 0;\n\t//?????????long????????????????????£??\\\n \tlong sum = 0;\n \t\n\t//n??????????????????????????§??°?????????\n \tfor(int i = 0; i < n; i++){\n \t a = scan.nextInt();\n \t if(i == 0) {\n \t \tmin = a;\n \t \tmax = a;\n \t }\n\t if(min > a){\n\t\tmin = a;\n\t }\n \t //min = Math.min(min, a);\n\t\n\t if(max < a){\n\t\tmax = a;\n\t }\n \t //max = Math.max(max, a);\n \t sum += a;\n \t}\n \t//????????????\n \tSystem.out.println(min + \" \" + max + \" \" + sum);\n \t\n }\n}",
"Main",
"public static void main(String[] args){\n\t//???????????\\???\n \tScanner scan = new Scanner(System.in);\n \t//???????????´??°?????????????????£??\\\n \tint n = scan.nextInt();\n \tint a;\n \tint min = 0;\n \tint max = 0;\n\t//?????????long????????????????????£??\\\n \tlong sum = 0;\n \t\n\t//n??????????????????????????§??°?????????\n \tfor(int i = 0; i < n; i++){\n \t a = scan.nextInt();\n \t if(i == 0) {\n \t \tmin = a;\n \t \tmax = a;\n \t }\n\t if(min > a){\n\t\tmin = a;\n\t }\n \t //min = Math.min(min, a);\n\t\n\t if(max < a){\n\t\tmax = a;\n\t }\n \t //max = Math.max(max, a);\n \t sum += a;\n \t}\n \t//????????????\n \tSystem.out.println(min + \" \" + max + \" \" + sum);\n \t\n }",
"main",
"{\n\t//???????????\\???\n \tScanner scan = new Scanner(System.in);\n \t//???????????´??°?????????????????£??\\\n \tint n = scan.nextInt();\n \tint a;\n \tint min = 0;\n \tint max = 0;\n\t//?????????long????????????????????£??\\\n \tlong sum = 0;\n \t\n\t//n??????????????????????????§??°?????????\n \tfor(int i = 0; i < n; i++){\n \t a = scan.nextInt();\n \t if(i == 0) {\n \t \tmin = a;\n \t \tmax = a;\n \t }\n\t if(min > a){\n\t\tmin = a;\n\t }\n \t //min = Math.min(min, a);\n\t\n\t if(max < a){\n\t\tmax = a;\n\t }\n \t //max = Math.max(max, a);\n \t sum += a;\n \t}\n \t//????????????\n \tSystem.out.println(min + \" \" + max + \" \" + sum);\n \t\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int a;",
"a",
"int min = 0;",
"min",
"0",
"int max = 0;",
"max",
"0",
"long sum = 0;",
"sum",
"0",
"for(int i = 0; i < n; i++){\n \t a = scan.nextInt();\n \t if(i == 0) {\n \t \tmin = a;\n \t \tmax = a;\n \t }\n\t if(min > a){\n\t\tmin = a;\n\t }\n \t //min = Math.min(min, a);\n\t\n\t if(max < a){\n\t\tmax = a;\n\t }\n \t //max = Math.max(max, a);\n \t sum += a;\n \t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \t a = scan.nextInt();\n \t if(i == 0) {\n \t \tmin = a;\n \t \tmax = a;\n \t }\n\t if(min > a){\n\t\tmin = a;\n\t }\n \t //min = Math.min(min, a);\n\t\n\t if(max < a){\n\t\tmax = a;\n\t }\n \t //max = Math.max(max, a);\n \t sum += a;\n \t}",
"{\n \t a = scan.nextInt();\n \t if(i == 0) {\n \t \tmin = a;\n \t \tmax = a;\n \t }\n\t if(min > a){\n\t\tmin = a;\n\t }\n \t //min = Math.min(min, a);\n\t\n\t if(max < a){\n\t\tmax = a;\n\t }\n \t //max = Math.max(max, a);\n \t sum += a;\n \t}",
"a = scan.nextInt()",
"a",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if(i == 0) {\n \t \tmin = a;\n \t \tmax = a;\n \t }",
"i == 0",
"i",
"0",
"{\n \t \tmin = a;\n \t \tmax = a;\n \t }",
"min = a",
"min",
"a",
"max = a",
"max",
"a",
"if(min > a){\n\t\tmin = a;\n\t }",
"min > a",
"min",
"a",
"{\n\t\tmin = a;\n\t }",
"min = a",
"min",
"a",
"if(max < a){\n\t\tmax = a;\n\t }",
"max < a",
"max",
"a",
"{\n\t\tmax = a;\n\t }",
"max = a",
"max",
"a",
"sum += a",
"sum",
"a",
"System.out.println(min + \" \" + max + \" \" + sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min + \" \" + max + \" \" + sum",
"\" \"",
"max",
"min + \" \" + max + \" \" + sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args"
] | //API???????????????
import java.util.Scanner;
class Main{
public static void main(String[] args){
//???????????\???
Scanner scan = new Scanner(System.in);
//???????????´??°?????????????????£??\
int n = scan.nextInt();
int a;
int min = 0;
int max = 0;
//?????????long????????????????????£??\
long sum = 0;
//n??????????????????????????§??°?????????
for(int i = 0; i < n; i++){
a = scan.nextInt();
if(i == 0) {
min = a;
max = a;
}
if(min > a){
min = a;
}
//min = Math.min(min, a);
if(max < a){
max = a;
}
//max = Math.max(max, a);
sum += a;
}
//????????????
System.out.println(min + " " + max + " " + sum);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
17,
41,
13,
4,
18,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
18,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
30,
32
],
[
11,
33
],
[
33,
34
],
[
33,
35
],
[
11,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
38,
43
],
[
11,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
62,
63
],
[
62,
64
],
[
56,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
56,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
56,
81
],
[
81,
82
],
[
81,
83
],
[
11,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
92,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
90,
96
],
[
92,
97
],
[
9,
98
],
[
98,
99
]
] | [
"import java.io.*;\nimport java.util.*;\n\n\nclass Main {\n\tpublic static void main(String[] args) throws IOException {\n\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n =Integer.parseInt(br.readLine());\n\t\t\n\t\t\n\t\tint max = Integer.MIN_VALUE;\n\t\tint min = Integer.MAX_VALUE;\n\t\tlong sum = 0;\n\t\tString[] cut = br.readLine().split(\" \");\n\t\t\n\t\tfor (int i=0;i<n;i++) {\n\t\t\tint r =Integer.parseInt(cut[i]);\n\t\t\tif(max<r){\n\t\t\t\tmax=r;\n\t\t\t}\n\t\t\tif(min>r){\n\t\t\t\tmin=r;\n\t\t\t}\n\t\t\tsum+=r;\n\t\t}\t\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t\n\t\t\n\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"class Main {\n\tpublic static void main(String[] args) throws IOException {\n\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n =Integer.parseInt(br.readLine());\n\t\t\n\t\t\n\t\tint max = Integer.MIN_VALUE;\n\t\tint min = Integer.MAX_VALUE;\n\t\tlong sum = 0;\n\t\tString[] cut = br.readLine().split(\" \");\n\t\t\n\t\tfor (int i=0;i<n;i++) {\n\t\t\tint r =Integer.parseInt(cut[i]);\n\t\t\tif(max<r){\n\t\t\t\tmax=r;\n\t\t\t}\n\t\t\tif(min>r){\n\t\t\t\tmin=r;\n\t\t\t}\n\t\t\tsum+=r;\n\t\t}\t\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t\n\t\t\n\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n =Integer.parseInt(br.readLine());\n\t\t\n\t\t\n\t\tint max = Integer.MIN_VALUE;\n\t\tint min = Integer.MAX_VALUE;\n\t\tlong sum = 0;\n\t\tString[] cut = br.readLine().split(\" \");\n\t\t\n\t\tfor (int i=0;i<n;i++) {\n\t\t\tint r =Integer.parseInt(cut[i]);\n\t\t\tif(max<r){\n\t\t\t\tmax=r;\n\t\t\t}\n\t\t\tif(min>r){\n\t\t\t\tmin=r;\n\t\t\t}\n\t\t\tsum+=r;\n\t\t}\t\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t\n\t\t\n\n\t}",
"main",
"{\n\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n =Integer.parseInt(br.readLine());\n\t\t\n\t\t\n\t\tint max = Integer.MIN_VALUE;\n\t\tint min = Integer.MAX_VALUE;\n\t\tlong sum = 0;\n\t\tString[] cut = br.readLine().split(\" \");\n\t\t\n\t\tfor (int i=0;i<n;i++) {\n\t\t\tint r =Integer.parseInt(cut[i]);\n\t\t\tif(max<r){\n\t\t\t\tmax=r;\n\t\t\t}\n\t\t\tif(min>r){\n\t\t\t\tmin=r;\n\t\t\t}\n\t\t\tsum+=r;\n\t\t}\t\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t\n\t\t\n\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n =Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int max = Integer.MIN_VALUE;",
"max",
"Integer.MIN_VALUE",
"Integer",
"Integer.MIN_VALUE",
"int min = Integer.MAX_VALUE;",
"min",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"long sum = 0;",
"sum",
"0",
"String[] cut = br.readLine().split(\" \");",
"cut",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for (int i=0;i<n;i++) {\n\t\t\tint r =Integer.parseInt(cut[i]);\n\t\t\tif(max<r){\n\t\t\t\tmax=r;\n\t\t\t}\n\t\t\tif(min>r){\n\t\t\t\tmin=r;\n\t\t\t}\n\t\t\tsum+=r;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint r =Integer.parseInt(cut[i]);\n\t\t\tif(max<r){\n\t\t\t\tmax=r;\n\t\t\t}\n\t\t\tif(min>r){\n\t\t\t\tmin=r;\n\t\t\t}\n\t\t\tsum+=r;\n\t\t}",
"{\n\t\t\tint r =Integer.parseInt(cut[i]);\n\t\t\tif(max<r){\n\t\t\t\tmax=r;\n\t\t\t}\n\t\t\tif(min>r){\n\t\t\t\tmin=r;\n\t\t\t}\n\t\t\tsum+=r;\n\t\t}",
"int r =Integer.parseInt(cut[i]);",
"r",
"Integer.parseInt(cut[i])",
"Integer.parseInt",
"Integer",
"cut[i]",
"cut",
"i",
"if(max<r){\n\t\t\t\tmax=r;\n\t\t\t}",
"max<r",
"max",
"r",
"{\n\t\t\t\tmax=r;\n\t\t\t}",
"max=r",
"max",
"r",
"if(min>r){\n\t\t\t\tmin=r;\n\t\t\t}",
"min>r",
"min",
"r",
"{\n\t\t\t\tmin=r;\n\t\t\t}",
"min=r",
"min",
"r",
"sum+=r",
"sum",
"r",
"System.out.println(min+\" \"+max+\" \"+sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min+\" \"+max+\" \"+sum",
"\" \"",
"max",
"min+\" \"+max+\" \"+sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args"
] | import java.io.*;
import java.util.*;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n =Integer.parseInt(br.readLine());
int max = Integer.MIN_VALUE;
int min = Integer.MAX_VALUE;
long sum = 0;
String[] cut = br.readLine().split(" ");
for (int i=0;i<n;i++) {
int r =Integer.parseInt(cut[i]);
if(max<r){
max=r;
}
if(min>r){
min=r;
}
sum+=r;
}
System.out.println(min+" "+max+" "+sum);
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
13,
41,
13,
13,
41,
13,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
13,
0,
13,
4,
18,
13,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
17,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
4,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
11,
29
],
[
29,
30
],
[
11,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
31,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
41,
42
],
[
42,
43
],
[
35,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
46,
50
],
[
35,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
53,
57
],
[
35,
58
],
[
58,
59
],
[
58,
60
],
[
11,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
61,
67
],
[
61,
68
],
[
61,
69
],
[
9,
70
],
[
70,
71
]
] | [
"import java.util.*;\nclass Main{\n\tstatic Scanner s = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\ts.next();\n\t\tlong min = Integer.parseInt(s.next()),\n\t\t max = min,\n\t\t sum = min,\n\t\t in;\n\t\twhile(s.hasNext()) {\n\t\t\tin = Integer.parseInt(s.next());\n\t\t\tmin = Math.min(min, in);\n\t\t\tmax = Math.max(max, in);\n\t\t\tsum += in;\n\t\t}\n\n\t\tSystem.out.printf(\"%d %d %d\\n\",min,max,sum);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n\tstatic Scanner s = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\ts.next();\n\t\tlong min = Integer.parseInt(s.next()),\n\t\t max = min,\n\t\t sum = min,\n\t\t in;\n\t\twhile(s.hasNext()) {\n\t\t\tin = Integer.parseInt(s.next());\n\t\t\tmin = Math.min(min, in);\n\t\t\tmax = Math.max(max, in);\n\t\t\tsum += in;\n\t\t}\n\n\t\tSystem.out.printf(\"%d %d %d\\n\",min,max,sum);\n\t}\n}",
"Main",
"static Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"public static void main(String[] args) {\n\t\ts.next();\n\t\tlong min = Integer.parseInt(s.next()),\n\t\t max = min,\n\t\t sum = min,\n\t\t in;\n\t\twhile(s.hasNext()) {\n\t\t\tin = Integer.parseInt(s.next());\n\t\t\tmin = Math.min(min, in);\n\t\t\tmax = Math.max(max, in);\n\t\t\tsum += in;\n\t\t}\n\n\t\tSystem.out.printf(\"%d %d %d\\n\",min,max,sum);\n\t}",
"main",
"{\n\t\ts.next();\n\t\tlong min = Integer.parseInt(s.next()),\n\t\t max = min,\n\t\t sum = min,\n\t\t in;\n\t\twhile(s.hasNext()) {\n\t\t\tin = Integer.parseInt(s.next());\n\t\t\tmin = Math.min(min, in);\n\t\t\tmax = Math.max(max, in);\n\t\t\tsum += in;\n\t\t}\n\n\t\tSystem.out.printf(\"%d %d %d\\n\",min,max,sum);\n\t}",
"s.next()",
"s.next",
"s",
"long min = Integer.parseInt(s.next())",
"min",
"Integer.parseInt(s.next())",
"Integer.parseInt",
"Integer",
"s.next()",
"s.next",
"s",
"max = min",
"max",
"min",
"sum = min",
"sum",
"min",
"in;",
"in",
"while(s.hasNext()) {\n\t\t\tin = Integer.parseInt(s.next());\n\t\t\tmin = Math.min(min, in);\n\t\t\tmax = Math.max(max, in);\n\t\t\tsum += in;\n\t\t}",
"s.hasNext()",
"s.hasNext",
"s",
"{\n\t\t\tin = Integer.parseInt(s.next());\n\t\t\tmin = Math.min(min, in);\n\t\t\tmax = Math.max(max, in);\n\t\t\tsum += in;\n\t\t}",
"in = Integer.parseInt(s.next())",
"in",
"Integer.parseInt(s.next())",
"Integer.parseInt",
"Integer",
"s.next()",
"s.next",
"s",
"min = Math.min(min, in)",
"min",
"Math.min(min, in)",
"Math.min",
"Math",
"min",
"in",
"max = Math.max(max, in)",
"max",
"Math.max(max, in)",
"Math.max",
"Math",
"max",
"in",
"sum += in",
"sum",
"in",
"System.out.printf(\"%d %d %d\\n\",min,max,sum)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d %d %d\\n\"",
"min",
"max",
"sum",
"String[] args",
"args"
] | import java.util.*;
class Main{
static Scanner s = new Scanner(System.in);
public static void main(String[] args) {
s.next();
long min = Integer.parseInt(s.next()),
max = min,
sum = min,
in;
while(s.hasNext()) {
in = Integer.parseInt(s.next());
min = Math.min(min, in);
max = Math.max(max, in);
sum += in;
}
System.out.printf("%d %d %d\n",min,max,sum);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
40,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
2,
13,
13,
0,
13,
13,
14,
2,
13,
13,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
82,
5
],
[
82,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
49,
51
],
[
39,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
56,
58
],
[
39,
59
],
[
59,
60
],
[
59,
61
],
[
8,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
70,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
70,
75
],
[
8,
76
],
[
76,
77
],
[
77,
78
],
[
6,
79
],
[
79,
80
],
[
0,
81
],
[
81,
82
],
[
81,
83
]
] | [
"import java.util.Scanner;\n \npublic class Main {\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long max = -1000000;\n long min = 1000000;\n long sum = 0;\n for( int i = 0; i < n; i++ ){\n long a = sc.nextLong();\n if( max < a )\n max = a;\n if( a < min )\n min = a;\n sum += a;\n }\n \n System.out.println( min + \" \" + max + \" \" + sum);\n \n sc.close();\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long max = -1000000;\n long min = 1000000;\n long sum = 0;\n for( int i = 0; i < n; i++ ){\n long a = sc.nextLong();\n if( max < a )\n max = a;\n if( a < min )\n min = a;\n sum += a;\n }\n \n System.out.println( min + \" \" + max + \" \" + sum);\n \n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long max = -1000000;\n long min = 1000000;\n long sum = 0;\n for( int i = 0; i < n; i++ ){\n long a = sc.nextLong();\n if( max < a )\n max = a;\n if( a < min )\n min = a;\n sum += a;\n }\n \n System.out.println( min + \" \" + max + \" \" + sum);\n \n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long max = -1000000;\n long min = 1000000;\n long sum = 0;\n for( int i = 0; i < n; i++ ){\n long a = sc.nextLong();\n if( max < a )\n max = a;\n if( a < min )\n min = a;\n sum += a;\n }\n \n System.out.println( min + \" \" + max + \" \" + sum);\n \n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long max = -1000000;",
"max",
"-1000000",
"1000000",
"long min = 1000000;",
"min",
"1000000",
"long sum = 0;",
"sum",
"0",
"for( int i = 0; i < n; i++ ){\n long a = sc.nextLong();\n if( max < a )\n max = a;\n if( a < min )\n min = a;\n sum += a;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n long a = sc.nextLong();\n if( max < a )\n max = a;\n if( a < min )\n min = a;\n sum += a;\n }",
"{\n long a = sc.nextLong();\n if( max < a )\n max = a;\n if( a < min )\n min = a;\n sum += a;\n }",
"long a = sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"if( max < a )\n max = a;",
"max < a",
"max",
"a",
"max = a",
"max",
"a",
"if( a < min )\n min = a;",
"a < min",
"a",
"min",
"min = a",
"min",
"a",
"sum += a",
"sum",
"a",
"System.out.println( min + \" \" + max + \" \" + sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min + \" \" + max + \" \" + sum",
"\" \"",
"max",
"min + \" \" + max + \" \" + sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"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 n = sc.nextInt();\n long max = -1000000;\n long min = 1000000;\n long sum = 0;\n for( int i = 0; i < n; i++ ){\n long a = sc.nextLong();\n if( max < a )\n max = a;\n if( a < min )\n min = a;\n sum += a;\n }\n \n System.out.println( min + \" \" + max + \" \" + sum);\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 n = sc.nextInt();\n long max = -1000000;\n long min = 1000000;\n long sum = 0;\n for( int i = 0; i < n; i++ ){\n long a = sc.nextLong();\n if( max < a )\n max = a;\n if( a < min )\n min = a;\n sum += a;\n }\n \n System.out.println( min + \" \" + max + \" \" + sum);\n \n sc.close();\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
long max = -1000000;
long min = 1000000;
long sum = 0;
for( int i = 0; i < n; i++ ){
long a = sc.nextLong();
if( max < a )
max = a;
if( a < min )
min = a;
sum += a;
}
System.out.println( min + " " + max + " " + sum);
sc.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
40,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
84,
8
],
[
84,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
11,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
42,
48
],
[
48,
49
],
[
48,
50
],
[
42,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
42,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
11,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
75,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
73,
79
],
[
75,
80
],
[
9,
81
],
[
81,
82
],
[
0,
83
],
[
83,
84
],
[
83,
85
]
] | [
"import java.util.*;\nimport java.io.*;\n\npublic class Main{\n public static void main(String[] args) throws IOException\n {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n long sum = 0;\n int min = 1000000;\n int max = -1000000;\n\n for(int i=0; i<n; i++){\n int a = sc.nextInt();\n sum += a;\n if(a < min){\n min = a;\n }\n if(a > max){\n max = a;\n }\n }\n\n System.out.println(min + \" \" + max + \" \" + sum);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n public static void main(String[] args) throws IOException\n {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n long sum = 0;\n int min = 1000000;\n int max = -1000000;\n\n for(int i=0; i<n; i++){\n int a = sc.nextInt();\n sum += a;\n if(a < min){\n min = a;\n }\n if(a > max){\n max = a;\n }\n }\n\n System.out.println(min + \" \" + max + \" \" + sum);\n }\n}",
"Main",
"public static void main(String[] args) throws IOException\n {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n long sum = 0;\n int min = 1000000;\n int max = -1000000;\n\n for(int i=0; i<n; i++){\n int a = sc.nextInt();\n sum += a;\n if(a < min){\n min = a;\n }\n if(a > max){\n max = a;\n }\n }\n\n System.out.println(min + \" \" + max + \" \" + sum);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n long sum = 0;\n int min = 1000000;\n int max = -1000000;\n\n for(int i=0; i<n; i++){\n int a = sc.nextInt();\n sum += a;\n if(a < min){\n min = a;\n }\n if(a > max){\n max = a;\n }\n }\n\n System.out.println(min + \" \" + max + \" \" + sum);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long sum = 0;",
"sum",
"0",
"int min = 1000000;",
"min",
"1000000",
"int max = -1000000;",
"max",
"-1000000",
"1000000",
"for(int i=0; i<n; i++){\n int a = sc.nextInt();\n sum += a;\n if(a < min){\n min = a;\n }\n if(a > max){\n max = a;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int a = sc.nextInt();\n sum += a;\n if(a < min){\n min = a;\n }\n if(a > max){\n max = a;\n }\n }",
"{\n int a = sc.nextInt();\n sum += a;\n if(a < min){\n min = a;\n }\n if(a > max){\n max = a;\n }\n }",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sum += a",
"sum",
"a",
"if(a < min){\n min = a;\n }",
"a < min",
"a",
"min",
"{\n min = a;\n }",
"min = a",
"min",
"a",
"if(a > max){\n max = a;\n }",
"a > max",
"a",
"max",
"{\n max = a;\n }",
"max = a",
"max",
"a",
"System.out.println(min + \" \" + max + \" \" + sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min + \" \" + max + \" \" + sum",
"\" \"",
"max",
"min + \" \" + max + \" \" + sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args) throws IOException\n {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n long sum = 0;\n int min = 1000000;\n int max = -1000000;\n\n for(int i=0; i<n; i++){\n int a = sc.nextInt();\n sum += a;\n if(a < min){\n min = a;\n }\n if(a > max){\n max = a;\n }\n }\n\n System.out.println(min + \" \" + max + \" \" + sum);\n }\n}",
"public class Main{\n public static void main(String[] args) throws IOException\n {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n long sum = 0;\n int min = 1000000;\n int max = -1000000;\n\n for(int i=0; i<n; i++){\n int a = sc.nextInt();\n sum += a;\n if(a < min){\n min = a;\n }\n if(a > max){\n max = a;\n }\n }\n\n System.out.println(min + \" \" + max + \" \" + sum);\n }\n}",
"Main"
] | import java.util.*;
import java.io.*;
public class Main{
public static void main(String[] args) throws IOException
{
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
long sum = 0;
int min = 1000000;
int max = -1000000;
for(int i=0; i<n; i++){
int a = sc.nextInt();
sum += a;
if(a < min){
min = a;
}
if(a > max){
max = a;
}
}
System.out.println(min + " " + max + " " + sum);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
41,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
18,
13,
17,
0,
13,
18,
13,
17,
0,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
18,
13,
13,
0,
13,
4,
18,
13,
13,
18,
13,
13,
0,
13,
4,
18,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
12,
13,
30,
4,
18,
20,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
121,
5
],
[
121,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
8,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
8,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
8,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
8,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
67,
68
],
[
67,
69
],
[
62,
70
],
[
70,
71
],
[
71,
72
],
[
62,
73
],
[
74,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
77,
79
],
[
74,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
82,
86
],
[
86,
87
],
[
86,
88
],
[
74,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
91,
95
],
[
95,
96
],
[
95,
97
],
[
8,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
106,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
104,
110
],
[
106,
111
],
[
121,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
112,
118
],
[
118,
119
],
[
0,
120
],
[
120,
121
],
[
120,
122
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tvoid run(){\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint a[] = new int[n];\n\t\tlong max, min , sum;\n\t\tfor(int i = 0 ; i < n; i++){\n\t\t\ta[i] = s.nextInt();\n\t\t}\n\t\tmax = a[0];\n\t\tmin = a[0];\n\t\tsum = a[0];\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tsum += a[i];\n\t\t\tmax = Math.max(max, a[i]);\n\t\t\tmin = Math.min(min, a[i]);\n\t\t\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t\n\t\t\t\n\t}\n\tpublic static void main(String[] args) {\n\t\t/* \n\t\t * Main x;\n\t\t * x = new Main();\n\t\t * x.run();\n\t\t * ??¨????????????\n\t\t */\n\t\tnew Main().run();\n\t\t\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tvoid run(){\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint a[] = new int[n];\n\t\tlong max, min , sum;\n\t\tfor(int i = 0 ; i < n; i++){\n\t\t\ta[i] = s.nextInt();\n\t\t}\n\t\tmax = a[0];\n\t\tmin = a[0];\n\t\tsum = a[0];\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tsum += a[i];\n\t\t\tmax = Math.max(max, a[i]);\n\t\t\tmin = Math.min(min, a[i]);\n\t\t\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t\n\t\t\t\n\t}\n\tpublic static void main(String[] args) {\n\t\t/* \n\t\t * Main x;\n\t\t * x = new Main();\n\t\t * x.run();\n\t\t * ??¨????????????\n\t\t */\n\t\tnew Main().run();\n\t\t\n\t}\n}",
"Main",
"void run(){\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint a[] = new int[n];\n\t\tlong max, min , sum;\n\t\tfor(int i = 0 ; i < n; i++){\n\t\t\ta[i] = s.nextInt();\n\t\t}\n\t\tmax = a[0];\n\t\tmin = a[0];\n\t\tsum = a[0];\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tsum += a[i];\n\t\t\tmax = Math.max(max, a[i]);\n\t\t\tmin = Math.min(min, a[i]);\n\t\t\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t\n\t\t\t\n\t}",
"run",
"{\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint a[] = new int[n];\n\t\tlong max, min , sum;\n\t\tfor(int i = 0 ; i < n; i++){\n\t\t\ta[i] = s.nextInt();\n\t\t}\n\t\tmax = a[0];\n\t\tmin = a[0];\n\t\tsum = a[0];\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tsum += a[i];\n\t\t\tmax = Math.max(max, a[i]);\n\t\t\tmin = Math.min(min, a[i]);\n\t\t\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t\n\t\t\t\n\t}",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int n = s.nextInt();",
"n",
"s.nextInt()",
"s.nextInt",
"s",
"int a[] = new int[n];",
"a",
"new int[n]",
"n",
"long max",
"max",
"min",
"min",
"sum;",
"sum",
"for(int i = 0 ; i < n; i++){\n\t\t\ta[i] = s.nextInt();\n\t\t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\ta[i] = s.nextInt();\n\t\t}",
"{\n\t\t\ta[i] = s.nextInt();\n\t\t}",
"a[i] = s.nextInt()",
"a[i]",
"a",
"i",
"s.nextInt()",
"s.nextInt",
"s",
"max = a[0]",
"max",
"a[0]",
"a",
"0",
"min = a[0]",
"min",
"a[0]",
"a",
"0",
"sum = a[0]",
"sum",
"a[0]",
"a",
"0",
"for(int i = 1; i < n; i++){\n\t\t\tsum += a[i];\n\t\t\tmax = Math.max(max, a[i]);\n\t\t\tmin = Math.min(min, a[i]);\n\t\t\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tsum += a[i];\n\t\t\tmax = Math.max(max, a[i]);\n\t\t\tmin = Math.min(min, a[i]);\n\t\t\n\t\t}",
"{\n\t\t\tsum += a[i];\n\t\t\tmax = Math.max(max, a[i]);\n\t\t\tmin = Math.min(min, a[i]);\n\t\t\n\t\t}",
"sum += a[i]",
"sum",
"a[i]",
"a",
"i",
"max = Math.max(max, a[i])",
"max",
"Math.max(max, a[i])",
"Math.max",
"Math",
"max",
"a[i]",
"a",
"i",
"min = Math.min(min, a[i])",
"min",
"Math.min(min, a[i])",
"Math.min",
"Math",
"min",
"a[i]",
"a",
"i",
"System.out.println(min + \" \" + max + \" \" + sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min + \" \" + max + \" \" + sum",
"\" \"",
"max",
"min + \" \" + max + \" \" + sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"public static void main(String[] args) {\n\t\t/* \n\t\t * Main x;\n\t\t * x = new Main();\n\t\t * x.run();\n\t\t * ??¨????????????\n\t\t */\n\t\tnew Main().run();\n\t\t\n\t}",
"main",
"{\n\t\t/* \n\t\t * Main x;\n\t\t * x = new Main();\n\t\t * x.run();\n\t\t * ??¨????????????\n\t\t */\n\t\tnew Main().run();\n\t\t\n\t}",
"new Main().run()",
"new Main().run",
"new Main()",
"String[] args",
"args",
"public class Main {\n\tvoid run(){\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint a[] = new int[n];\n\t\tlong max, min , sum;\n\t\tfor(int i = 0 ; i < n; i++){\n\t\t\ta[i] = s.nextInt();\n\t\t}\n\t\tmax = a[0];\n\t\tmin = a[0];\n\t\tsum = a[0];\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tsum += a[i];\n\t\t\tmax = Math.max(max, a[i]);\n\t\t\tmin = Math.min(min, a[i]);\n\t\t\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t\n\t\t\t\n\t}\n\tpublic static void main(String[] args) {\n\t\t/* \n\t\t * Main x;\n\t\t * x = new Main();\n\t\t * x.run();\n\t\t * ??¨????????????\n\t\t */\n\t\tnew Main().run();\n\t\t\n\t}\n}",
"public class Main {\n\tvoid run(){\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint a[] = new int[n];\n\t\tlong max, min , sum;\n\t\tfor(int i = 0 ; i < n; i++){\n\t\t\ta[i] = s.nextInt();\n\t\t}\n\t\tmax = a[0];\n\t\tmin = a[0];\n\t\tsum = a[0];\n\t\tfor(int i = 1; i < n; i++){\n\t\t\tsum += a[i];\n\t\t\tmax = Math.max(max, a[i]);\n\t\t\tmin = Math.min(min, a[i]);\n\t\t\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t\n\t\t\t\n\t}\n\tpublic static void main(String[] args) {\n\t\t/* \n\t\t * Main x;\n\t\t * x = new Main();\n\t\t * x.run();\n\t\t * ??¨????????????\n\t\t */\n\t\tnew Main().run();\n\t\t\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
void run(){
Scanner s = new Scanner(System.in);
int n = s.nextInt();
int a[] = new int[n];
long max, min , sum;
for(int i = 0 ; i < n; i++){
a[i] = s.nextInt();
}
max = a[0];
min = a[0];
sum = a[0];
for(int i = 1; i < n; i++){
sum += a[i];
max = Math.max(max, a[i]);
min = Math.min(min, a[i]);
}
System.out.println(min + " " + max + " " + sum);
}
public static void main(String[] args) {
/*
* Main x;
* x = new Main();
* x.run();
* ??¨????????????
*/
new Main().run();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
41,
13,
20,
4,
18,
13,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
17,
28,
13,
13,
30,
30,
0,
13,
8,
2,
13,
13,
13,
13,
0,
13,
8,
2,
13,
13,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
132,
11
],
[
132,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
14,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
22,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
29,
35
],
[
35,
36
],
[
35,
37
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
29,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
29,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
29,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
60,
62
],
[
53,
63
],
[
63,
64
],
[
64,
65
],
[
53,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
75,
77
],
[
29,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
80,
82
],
[
29,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
85,
87
],
[
29,
88
],
[
88,
89
],
[
88,
90
],
[
29,
91
],
[
91,
92
],
[
91,
93
],
[
91,
94
],
[
95,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
98,
103
],
[
95,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
106,
111
],
[
95,
112
],
[
112,
113
],
[
112,
114
],
[
29,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
123,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
121,
127
],
[
123,
128
],
[
12,
129
],
[
129,
130
],
[
0,
131
],
[
131,
132
],
[
131,
133
]
] | [
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\t\tString[] arrStr;\n\t\ttry {\n\t\t\t// 1 line\n\t\t\tstr = br.readLine();\n\t\t\tint[] arr = new int[Integer.parseInt(str)];\n\n\t\t\t// 2 line\n\t\t\tstr = br.readLine();\n\t\t\tarrStr = str.split(\" \");\n\n\t\t\tfor(int i=0;i<arrStr.length;i++){\n\t\t\t\tarr[i] = Integer.parseInt(arrStr[i]);\n\t\t\t}\n\n\t\t\tint min = Integer.MAX_VALUE;\n\t\t\tint max = Integer.MIN_VALUE;\n\t\t\tlong sum = 0;\n\t\t\tfor(int num :arr){\n\t\t\t\tmin = min > num ? num : min;\n\t\t\t\tmax = max < num ? num : max;\n\t\t\t\tsum += num;\n\t\t\t}\n\n\t\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\t\tString[] arrStr;\n\t\ttry {\n\t\t\t// 1 line\n\t\t\tstr = br.readLine();\n\t\t\tint[] arr = new int[Integer.parseInt(str)];\n\n\t\t\t// 2 line\n\t\t\tstr = br.readLine();\n\t\t\tarrStr = str.split(\" \");\n\n\t\t\tfor(int i=0;i<arrStr.length;i++){\n\t\t\t\tarr[i] = Integer.parseInt(arrStr[i]);\n\t\t\t}\n\n\t\t\tint min = Integer.MAX_VALUE;\n\t\t\tint max = Integer.MIN_VALUE;\n\t\t\tlong sum = 0;\n\t\t\tfor(int num :arr){\n\t\t\t\tmin = min > num ? num : min;\n\t\t\t\tmax = max < num ? num : max;\n\t\t\t\tsum += num;\n\t\t\t}\n\n\t\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\t\tString[] arrStr;\n\t\ttry {\n\t\t\t// 1 line\n\t\t\tstr = br.readLine();\n\t\t\tint[] arr = new int[Integer.parseInt(str)];\n\n\t\t\t// 2 line\n\t\t\tstr = br.readLine();\n\t\t\tarrStr = str.split(\" \");\n\n\t\t\tfor(int i=0;i<arrStr.length;i++){\n\t\t\t\tarr[i] = Integer.parseInt(arrStr[i]);\n\t\t\t}\n\n\t\t\tint min = Integer.MAX_VALUE;\n\t\t\tint max = Integer.MIN_VALUE;\n\t\t\tlong sum = 0;\n\t\t\tfor(int num :arr){\n\t\t\t\tmin = min > num ? num : min;\n\t\t\t\tmax = max < num ? num : max;\n\t\t\t\tsum += num;\n\t\t\t}\n\n\t\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\t\tString[] arrStr;\n\t\ttry {\n\t\t\t// 1 line\n\t\t\tstr = br.readLine();\n\t\t\tint[] arr = new int[Integer.parseInt(str)];\n\n\t\t\t// 2 line\n\t\t\tstr = br.readLine();\n\t\t\tarrStr = str.split(\" \");\n\n\t\t\tfor(int i=0;i<arrStr.length;i++){\n\t\t\t\tarr[i] = Integer.parseInt(arrStr[i]);\n\t\t\t}\n\n\t\t\tint min = Integer.MAX_VALUE;\n\t\t\tint max = Integer.MIN_VALUE;\n\t\t\tlong sum = 0;\n\t\t\tfor(int num :arr){\n\t\t\t\tmin = min > num ? num : min;\n\t\t\t\tmax = max < num ? num : max;\n\t\t\t\tsum += num;\n\t\t\t}\n\n\t\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str;",
"str",
"String[] arrStr;",
"arrStr",
"try {\n\t\t\t// 1 line\n\t\t\tstr = br.readLine();\n\t\t\tint[] arr = new int[Integer.parseInt(str)];\n\n\t\t\t// 2 line\n\t\t\tstr = br.readLine();\n\t\t\tarrStr = str.split(\" \");\n\n\t\t\tfor(int i=0;i<arrStr.length;i++){\n\t\t\t\tarr[i] = Integer.parseInt(arrStr[i]);\n\t\t\t}\n\n\t\t\tint min = Integer.MAX_VALUE;\n\t\t\tint max = Integer.MIN_VALUE;\n\t\t\tlong sum = 0;\n\t\t\tfor(int num :arr){\n\t\t\t\tmin = min > num ? num : min;\n\t\t\t\tmax = max < num ? num : max;\n\t\t\t\tsum += num;\n\t\t\t}\n\n\t\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\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\t// 1 line\n\t\t\tstr = br.readLine();\n\t\t\tint[] arr = new int[Integer.parseInt(str)];\n\n\t\t\t// 2 line\n\t\t\tstr = br.readLine();\n\t\t\tarrStr = str.split(\" \");\n\n\t\t\tfor(int i=0;i<arrStr.length;i++){\n\t\t\t\tarr[i] = Integer.parseInt(arrStr[i]);\n\t\t\t}\n\n\t\t\tint min = Integer.MAX_VALUE;\n\t\t\tint max = Integer.MIN_VALUE;\n\t\t\tlong sum = 0;\n\t\t\tfor(int num :arr){\n\t\t\t\tmin = min > num ? num : min;\n\t\t\t\tmax = max < num ? num : max;\n\t\t\t\tsum += num;\n\t\t\t}\n\n\t\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t}",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"int[] arr = new int[Integer.parseInt(str)];",
"arr",
"new int[Integer.parseInt(str)]",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"arrStr = str.split(\" \")",
"arrStr",
"str.split(\" \")",
"str.split",
"str",
"\" \"",
"for(int i=0;i<arrStr.length;i++){\n\t\t\t\tarr[i] = Integer.parseInt(arrStr[i]);\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<arrStr.length",
"i",
"arrStr.length",
"arrStr",
"arrStr.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tarr[i] = Integer.parseInt(arrStr[i]);\n\t\t\t}",
"{\n\t\t\t\tarr[i] = Integer.parseInt(arrStr[i]);\n\t\t\t}",
"arr[i] = Integer.parseInt(arrStr[i])",
"arr[i]",
"arr",
"i",
"Integer.parseInt(arrStr[i])",
"Integer.parseInt",
"Integer",
"arrStr[i]",
"arrStr",
"i",
"int min = Integer.MAX_VALUE;",
"min",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"int max = Integer.MIN_VALUE;",
"max",
"Integer.MIN_VALUE",
"Integer",
"Integer.MIN_VALUE",
"long sum = 0;",
"sum",
"0",
"for(int num :arr){\n\t\t\t\tmin = min > num ? num : min;\n\t\t\t\tmax = max < num ? num : max;\n\t\t\t\tsum += num;\n\t\t\t}",
"int num",
"arr",
"{\n\t\t\t\tmin = min > num ? num : min;\n\t\t\t\tmax = max < num ? num : max;\n\t\t\t\tsum += num;\n\t\t\t}",
"{\n\t\t\t\tmin = min > num ? num : min;\n\t\t\t\tmax = max < num ? num : max;\n\t\t\t\tsum += num;\n\t\t\t}",
"min = min > num ? num : min",
"min",
"min > num ? num : min",
"min > num",
"min",
"num",
"num",
"min",
"max = max < num ? num : max",
"max",
"max < num ? num : max",
"max < num",
"max",
"num",
"num",
"max",
"sum += num",
"sum",
"num",
"System.out.println(min + \" \" + max + \" \" + sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min + \" \" + max + \" \" + sum",
"\" \"",
"max",
"min + \" \" + max + \" \" + sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\t\tString[] arrStr;\n\t\ttry {\n\t\t\t// 1 line\n\t\t\tstr = br.readLine();\n\t\t\tint[] arr = new int[Integer.parseInt(str)];\n\n\t\t\t// 2 line\n\t\t\tstr = br.readLine();\n\t\t\tarrStr = str.split(\" \");\n\n\t\t\tfor(int i=0;i<arrStr.length;i++){\n\t\t\t\tarr[i] = Integer.parseInt(arrStr[i]);\n\t\t\t}\n\n\t\t\tint min = Integer.MAX_VALUE;\n\t\t\tint max = Integer.MIN_VALUE;\n\t\t\tlong sum = 0;\n\t\t\tfor(int num :arr){\n\t\t\t\tmin = min > num ? num : min;\n\t\t\t\tmax = max < num ? num : max;\n\t\t\t\tsum += num;\n\t\t\t}\n\n\t\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\t\tString[] arrStr;\n\t\ttry {\n\t\t\t// 1 line\n\t\t\tstr = br.readLine();\n\t\t\tint[] arr = new int[Integer.parseInt(str)];\n\n\t\t\t// 2 line\n\t\t\tstr = br.readLine();\n\t\t\tarrStr = str.split(\" \");\n\n\t\t\tfor(int i=0;i<arrStr.length;i++){\n\t\t\t\tarr[i] = Integer.parseInt(arrStr[i]);\n\t\t\t}\n\n\t\t\tint min = Integer.MAX_VALUE;\n\t\t\tint max = Integer.MIN_VALUE;\n\t\t\tlong sum = 0;\n\t\t\tfor(int num :arr){\n\t\t\t\tmin = min > num ? num : min;\n\t\t\t\tmax = max < num ? num : max;\n\t\t\t\tsum += num;\n\t\t\t}\n\n\t\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str;
String[] arrStr;
try {
// 1 line
str = br.readLine();
int[] arr = new int[Integer.parseInt(str)];
// 2 line
str = br.readLine();
arrStr = str.split(" ");
for(int i=0;i<arrStr.length;i++){
arr[i] = Integer.parseInt(arrStr[i]);
}
int min = Integer.MAX_VALUE;
int max = Integer.MIN_VALUE;
long sum = 0;
for(int num :arr){
min = min > num ? num : min;
max = max < num ? num : max;
sum += num;
}
System.out.println(min + " " + max + " " + sum);
} catch (IOException e) {
e.printStackTrace();
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
13,
41,
13,
13,
41,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
85,
5
],
[
85,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
43,
49
],
[
49,
50
],
[
49,
51
],
[
43,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
52,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
8,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
76,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
74,
80
],
[
76,
81
],
[
6,
82
],
[
82,
83
],
[
0,
84
],
[
84,
85
],
[
84,
86
]
] | [
"\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\t\n\t\tint N = stdIn.nextInt();\n\t\t\n\t\tint y = stdIn.nextInt();\n\t\tint min = y;\n\t\tint max = y;\n\t\tlong sum = y;\n\t\t\n\t\tfor(int i=1;i<N;i++)\n\t\t{\n\t\t\tint x = stdIn.nextInt();\n\t\t\tsum+=x;\n\t\t\tif(min>x)\n\t\t\t{\n\t\t\t\tmin = x;\n\t\t\t}\n\t\t\telse if(max<x)\n\t\t\t{\n\t\t\t\tmax = x;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\t\n\t\tint N = stdIn.nextInt();\n\t\t\n\t\tint y = stdIn.nextInt();\n\t\tint min = y;\n\t\tint max = y;\n\t\tlong sum = y;\n\t\t\n\t\tfor(int i=1;i<N;i++)\n\t\t{\n\t\t\tint x = stdIn.nextInt();\n\t\t\tsum+=x;\n\t\t\tif(min>x)\n\t\t\t{\n\t\t\t\tmin = x;\n\t\t\t}\n\t\t\telse if(max<x)\n\t\t\t{\n\t\t\t\tmax = x;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}\n\n}",
"Main",
"public static void main(String[] args)\n\t{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\t\n\t\tint N = stdIn.nextInt();\n\t\t\n\t\tint y = stdIn.nextInt();\n\t\tint min = y;\n\t\tint max = y;\n\t\tlong sum = y;\n\t\t\n\t\tfor(int i=1;i<N;i++)\n\t\t{\n\t\t\tint x = stdIn.nextInt();\n\t\t\tsum+=x;\n\t\t\tif(min>x)\n\t\t\t{\n\t\t\t\tmin = x;\n\t\t\t}\n\t\t\telse if(max<x)\n\t\t\t{\n\t\t\t\tmax = x;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}",
"main",
"{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\t\n\t\tint N = stdIn.nextInt();\n\t\t\n\t\tint y = stdIn.nextInt();\n\t\tint min = y;\n\t\tint max = y;\n\t\tlong sum = y;\n\t\t\n\t\tfor(int i=1;i<N;i++)\n\t\t{\n\t\t\tint x = stdIn.nextInt();\n\t\t\tsum+=x;\n\t\t\tif(min>x)\n\t\t\t{\n\t\t\t\tmin = x;\n\t\t\t}\n\t\t\telse if(max<x)\n\t\t\t{\n\t\t\t\tmax = x;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"int N = stdIn.nextInt();",
"N",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"int y = stdIn.nextInt();",
"y",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"int min = y;",
"min",
"y",
"int max = y;",
"max",
"y",
"long sum = y;",
"sum",
"y",
"for(int i=1;i<N;i++)\n\t\t{\n\t\t\tint x = stdIn.nextInt();\n\t\t\tsum+=x;\n\t\t\tif(min>x)\n\t\t\t{\n\t\t\t\tmin = x;\n\t\t\t}\n\t\t\telse if(max<x)\n\t\t\t{\n\t\t\t\tmax = x;\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 x = stdIn.nextInt();\n\t\t\tsum+=x;\n\t\t\tif(min>x)\n\t\t\t{\n\t\t\t\tmin = x;\n\t\t\t}\n\t\t\telse if(max<x)\n\t\t\t{\n\t\t\t\tmax = x;\n\t\t\t}\n\t\t}",
"{\n\t\t\tint x = stdIn.nextInt();\n\t\t\tsum+=x;\n\t\t\tif(min>x)\n\t\t\t{\n\t\t\t\tmin = x;\n\t\t\t}\n\t\t\telse if(max<x)\n\t\t\t{\n\t\t\t\tmax = x;\n\t\t\t}\n\t\t}",
"int x = stdIn.nextInt();",
"x",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"sum+=x",
"sum",
"x",
"if(min>x)\n\t\t\t{\n\t\t\t\tmin = x;\n\t\t\t}\n\t\t\telse if(max<x)\n\t\t\t{\n\t\t\t\tmax = x;\n\t\t\t}",
"min>x",
"min",
"x",
"{\n\t\t\t\tmin = x;\n\t\t\t}",
"min = x",
"min",
"x",
"if(max<x)\n\t\t\t{\n\t\t\t\tmax = x;\n\t\t\t}",
"max<x",
"max",
"x",
"{\n\t\t\t\tmax = x;\n\t\t\t}",
"max = x",
"max",
"x",
"System.out.println(min+\" \"+max+\" \"+sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min+\" \"+max+\" \"+sum",
"\" \"",
"max",
"min+\" \"+max+\" \"+sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\t\n\t\tint N = stdIn.nextInt();\n\t\t\n\t\tint y = stdIn.nextInt();\n\t\tint min = y;\n\t\tint max = y;\n\t\tlong sum = y;\n\t\t\n\t\tfor(int i=1;i<N;i++)\n\t\t{\n\t\t\tint x = stdIn.nextInt();\n\t\t\tsum+=x;\n\t\t\tif(min>x)\n\t\t\t{\n\t\t\t\tmin = x;\n\t\t\t}\n\t\t\telse if(max<x)\n\t\t\t{\n\t\t\t\tmax = x;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\t\n\t\tint N = stdIn.nextInt();\n\t\t\n\t\tint y = stdIn.nextInt();\n\t\tint min = y;\n\t\tint max = y;\n\t\tlong sum = y;\n\t\t\n\t\tfor(int i=1;i<N;i++)\n\t\t{\n\t\t\tint x = stdIn.nextInt();\n\t\t\tsum+=x;\n\t\t\tif(min>x)\n\t\t\t{\n\t\t\t\tmin = x;\n\t\t\t}\n\t\t\telse if(max<x)\n\t\t\t{\n\t\t\t\tmax = x;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(min+\" \"+max+\" \"+sum);\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args)
{
Scanner stdIn = new Scanner(System.in);
int N = stdIn.nextInt();
int y = stdIn.nextInt();
int min = y;
int max = y;
long sum = y;
for(int i=1;i<N;i++)
{
int x = stdIn.nextInt();
sum+=x;
if(min>x)
{
min = x;
}
else if(max<x)
{
max = x;
}
}
System.out.println(min+" "+max+" "+sum);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
41,
13,
20,
0,
13,
4,
18,
13,
4,
18,
13,
0,
13,
4,
18,
4,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
18,
13,
13,
0,
13,
13,
14,
2,
13,
13,
0,
13,
13,
14,
2,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
121,
11
],
[
121,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
17,
19
],
[
14,
20
],
[
20,
21
],
[
20,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
14,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
14,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
37,
38
],
[
14,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
41,
46
],
[
14,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
52,
53
],
[
52,
54
],
[
14,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
60,
61
],
[
60,
62
],
[
14,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
63,
71
],
[
71,
72
],
[
72,
73
],
[
63,
74
],
[
75,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
81,
82
],
[
81,
83
],
[
75,
84
],
[
84,
85
],
[
84,
86
],
[
75,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
91,
92
],
[
91,
93
],
[
75,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
98,
100
],
[
14,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
109,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
107,
113
],
[
109,
114
],
[
14,
115
],
[
115,
116
],
[
116,
117
],
[
12,
118
],
[
118,
119
],
[
0,
120
],
[
120,
121
],
[
120,
122
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\npublic class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tint n,min=0,max=0;\n\t\tlong sum=0;\n\t\tString[] list;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tn = Integer.parseInt(br.readLine());\n\t\tlist = br.readLine().split(\" \");\n\n\t\tmin = Integer.parseInt(list[0]);\n\t\tmax = Integer.parseInt(list[0]);\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint num = Integer.parseInt(list[i]);\n\t\t\tsum += num;\n\t\t\tif(min > num)min = num;\n\t\t\tif(max < num)max = num;\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\n br.close();\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tint n,min=0,max=0;\n\t\tlong sum=0;\n\t\tString[] list;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tn = Integer.parseInt(br.readLine());\n\t\tlist = br.readLine().split(\" \");\n\n\t\tmin = Integer.parseInt(list[0]);\n\t\tmax = Integer.parseInt(list[0]);\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint num = Integer.parseInt(list[i]);\n\t\t\tsum += num;\n\t\t\tif(min > num)min = num;\n\t\t\tif(max < num)max = num;\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\n br.close();\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException{\n\t\tint n,min=0,max=0;\n\t\tlong sum=0;\n\t\tString[] list;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tn = Integer.parseInt(br.readLine());\n\t\tlist = br.readLine().split(\" \");\n\n\t\tmin = Integer.parseInt(list[0]);\n\t\tmax = Integer.parseInt(list[0]);\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint num = Integer.parseInt(list[i]);\n\t\t\tsum += num;\n\t\t\tif(min > num)min = num;\n\t\t\tif(max < num)max = num;\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\n br.close();\n\t}",
"main",
"{\n\t\tint n,min=0,max=0;\n\t\tlong sum=0;\n\t\tString[] list;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tn = Integer.parseInt(br.readLine());\n\t\tlist = br.readLine().split(\" \");\n\n\t\tmin = Integer.parseInt(list[0]);\n\t\tmax = Integer.parseInt(list[0]);\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint num = Integer.parseInt(list[i]);\n\t\t\tsum += num;\n\t\t\tif(min > num)min = num;\n\t\t\tif(max < num)max = num;\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\n br.close();\n\t}",
"int n",
"n",
"min=0",
"min",
"0",
"max=0;",
"max",
"0",
"long sum=0;",
"sum",
"0",
"String[] list;",
"list",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"n = Integer.parseInt(br.readLine())",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"list = br.readLine().split(\" \")",
"list",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"min = Integer.parseInt(list[0])",
"min",
"Integer.parseInt(list[0])",
"Integer.parseInt",
"Integer",
"list[0]",
"list",
"0",
"max = Integer.parseInt(list[0])",
"max",
"Integer.parseInt(list[0])",
"Integer.parseInt",
"Integer",
"list[0]",
"list",
"0",
"for(int i = 0; i < n; i++){\n\t\t\tint num = Integer.parseInt(list[i]);\n\t\t\tsum += num;\n\t\t\tif(min > num)min = num;\n\t\t\tif(max < num)max = num;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint num = Integer.parseInt(list[i]);\n\t\t\tsum += num;\n\t\t\tif(min > num)min = num;\n\t\t\tif(max < num)max = num;\n\t\t}",
"{\n\t\t\tint num = Integer.parseInt(list[i]);\n\t\t\tsum += num;\n\t\t\tif(min > num)min = num;\n\t\t\tif(max < num)max = num;\n\t\t}",
"int num = Integer.parseInt(list[i]);",
"num",
"Integer.parseInt(list[i])",
"Integer.parseInt",
"Integer",
"list[i]",
"list",
"i",
"sum += num",
"sum",
"num",
"if(min > num)min = num;",
"min > num",
"min",
"num",
"min = num",
"min",
"num",
"if(max < num)max = num;",
"max < num",
"max",
"num",
"max = num",
"max",
"num",
"System.out.println(min + \" \" + max + \" \" + sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min + \" \" + max + \" \" + sum",
"\" \"",
"max",
"min + \" \" + max + \" \" + sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"br.close()",
"br.close",
"br",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tint n,min=0,max=0;\n\t\tlong sum=0;\n\t\tString[] list;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tn = Integer.parseInt(br.readLine());\n\t\tlist = br.readLine().split(\" \");\n\n\t\tmin = Integer.parseInt(list[0]);\n\t\tmax = Integer.parseInt(list[0]);\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint num = Integer.parseInt(list[i]);\n\t\t\tsum += num;\n\t\t\tif(min > num)min = num;\n\t\t\tif(max < num)max = num;\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\n br.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tint n,min=0,max=0;\n\t\tlong sum=0;\n\t\tString[] list;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tn = Integer.parseInt(br.readLine());\n\t\tlist = br.readLine().split(\" \");\n\n\t\tmin = Integer.parseInt(list[0]);\n\t\tmax = Integer.parseInt(list[0]);\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint num = Integer.parseInt(list[i]);\n\t\t\tsum += num;\n\t\t\tif(min > num)min = num;\n\t\t\tif(max < num)max = num;\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\n br.close();\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException{
int n,min=0,max=0;
long sum=0;
String[] list;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
n = Integer.parseInt(br.readLine());
list = br.readLine().split(" ");
min = Integer.parseInt(list[0]);
max = Integer.parseInt(list[0]);
for(int i = 0; i < n; i++){
int num = Integer.parseInt(list[i]);
sum += num;
if(min > num)min = num;
if(max < num)max = num;
}
System.out.println(min + " " + max + " " + sum);
br.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
40,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
13,
13,
14,
2,
13,
13,
0,
13,
13,
14,
2,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
39,
45
],
[
45,
46
],
[
45,
47
],
[
39,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
52,
54
],
[
39,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
59,
61
],
[
8,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
70,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
70,
75
],
[
6,
76
],
[
76,
77
]
] | [
"import java.util.Scanner;\n \nclass Main{\npublic static void main(String[] args){\n \nScanner scan = new Scanner(System.in);\n \nint i = scan.nextInt();\nlong max = -1000000, min = 1000000, sum = 0;\nfor(int j = 0; j <i; j++){\n long x = scan.nextLong();\n sum += x;\n if(x > max) max = x;\n if(x < min) min = x;\n }\n \n \nSystem.out.println(min +\" \"+ max +\" \"+sum);\n }\n}\n ",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\npublic static void main(String[] args){\n \nScanner scan = new Scanner(System.in);\n \nint i = scan.nextInt();\nlong max = -1000000, min = 1000000, sum = 0;\nfor(int j = 0; j <i; j++){\n long x = scan.nextLong();\n sum += x;\n if(x > max) max = x;\n if(x < min) min = x;\n }\n \n \nSystem.out.println(min +\" \"+ max +\" \"+sum);\n }\n}",
"Main",
"public static void main(String[] args){\n \nScanner scan = new Scanner(System.in);\n \nint i = scan.nextInt();\nlong max = -1000000, min = 1000000, sum = 0;\nfor(int j = 0; j <i; j++){\n long x = scan.nextLong();\n sum += x;\n if(x > max) max = x;\n if(x < min) min = x;\n }\n \n \nSystem.out.println(min +\" \"+ max +\" \"+sum);\n }",
"main",
"{\n \nScanner scan = new Scanner(System.in);\n \nint i = scan.nextInt();\nlong max = -1000000, min = 1000000, sum = 0;\nfor(int j = 0; j <i; j++){\n long x = scan.nextLong();\n sum += x;\n if(x > max) max = x;\n if(x < min) min = x;\n }\n \n \nSystem.out.println(min +\" \"+ max +\" \"+sum);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int i = scan.nextInt();",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"long max = -1000000",
"max",
"-1000000",
"1000000",
"min = 1000000",
"min",
"1000000",
"sum = 0;",
"sum",
"0",
"for(int j = 0; j <i; j++){\n long x = scan.nextLong();\n sum += x;\n if(x > max) max = x;\n if(x < min) min = x;\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j <i",
"j",
"i",
"j++",
"j++",
"j",
"{\n long x = scan.nextLong();\n sum += x;\n if(x > max) max = x;\n if(x < min) min = x;\n }",
"{\n long x = scan.nextLong();\n sum += x;\n if(x > max) max = x;\n if(x < min) min = x;\n }",
"long x = scan.nextLong();",
"x",
"scan.nextLong()",
"scan.nextLong",
"scan",
"sum += x",
"sum",
"x",
"if(x > max) max = x;",
"x > max",
"x",
"max",
"max = x",
"max",
"x",
"if(x < min) min = x;",
"x < min",
"x",
"min",
"min = x",
"min",
"x",
"System.out.println(min +\" \"+ max +\" \"+sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min +\" \"+ max +\" \"+sum",
"\" \"",
"max",
"min +\" \"+ max +\" \"+sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args"
] | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int i = scan.nextInt();
long max = -1000000, min = 1000000, sum = 0;
for(int j = 0; j <i; j++){
long x = scan.nextLong();
sum += x;
if(x > max) max = x;
if(x < min) min = x;
}
System.out.println(min +" "+ max +" "+sum);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
40,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
18,
13,
13,
14,
2,
13,
13,
0,
13,
13,
14,
2,
13,
13,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
105,
14
],
[
105,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
26,
27
],
[
27,
28
],
[
17,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
31,
36
],
[
17,
37
],
[
37,
38
],
[
37,
39
],
[
17,
40
],
[
40,
41
],
[
40,
42
],
[
17,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
17,
47
],
[
47,
48
],
[
47,
49
],
[
17,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
50,
61
],
[
62,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
68,
69
],
[
68,
70
],
[
62,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
75,
77
],
[
62,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
82,
84
],
[
62,
85
],
[
85,
86
],
[
85,
87
],
[
17,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
96,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
94,
100
],
[
96,
101
],
[
15,
102
],
[
102,
103
],
[
0,
104
],
[
104,
105
],
[
104,
106
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n \n \npublic class Main {\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n String str2[] = br.readLine().split(\" \");\n long sum = 0;\n int tmp = 0;\n int max = -1000000;\n int min = 1000000;\n for(int i = 0; i < n; i++){\n tmp = Integer.parseInt(str2[i]);\n if(tmp > max) max = tmp;\n if(tmp < min) min = tmp;\n sum += tmp;\n }\n System.out.println(min+\" \"+max+\" \"+sum);\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n String str2[] = br.readLine().split(\" \");\n long sum = 0;\n int tmp = 0;\n int max = -1000000;\n int min = 1000000;\n for(int i = 0; i < n; i++){\n tmp = Integer.parseInt(str2[i]);\n if(tmp > max) max = tmp;\n if(tmp < min) min = tmp;\n sum += tmp;\n }\n System.out.println(min+\" \"+max+\" \"+sum);\n }\n}",
"Main",
"public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n String str2[] = br.readLine().split(\" \");\n long sum = 0;\n int tmp = 0;\n int max = -1000000;\n int min = 1000000;\n for(int i = 0; i < n; i++){\n tmp = Integer.parseInt(str2[i]);\n if(tmp > max) max = tmp;\n if(tmp < min) min = tmp;\n sum += tmp;\n }\n System.out.println(min+\" \"+max+\" \"+sum);\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n String str2[] = br.readLine().split(\" \");\n long sum = 0;\n int tmp = 0;\n int max = -1000000;\n int min = 1000000;\n for(int i = 0; i < n; i++){\n tmp = Integer.parseInt(str2[i]);\n if(tmp > max) max = tmp;\n if(tmp < min) min = tmp;\n sum += tmp;\n }\n System.out.println(min+\" \"+max+\" \"+sum);\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String str2[] = br.readLine().split(\" \");",
"str2",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"long sum = 0;",
"sum",
"0",
"int tmp = 0;",
"tmp",
"0",
"int max = -1000000;",
"max",
"-1000000",
"1000000",
"int min = 1000000;",
"min",
"1000000",
"for(int i = 0; i < n; i++){\n tmp = Integer.parseInt(str2[i]);\n if(tmp > max) max = tmp;\n if(tmp < min) min = tmp;\n sum += tmp;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n tmp = Integer.parseInt(str2[i]);\n if(tmp > max) max = tmp;\n if(tmp < min) min = tmp;\n sum += tmp;\n }",
"{\n tmp = Integer.parseInt(str2[i]);\n if(tmp > max) max = tmp;\n if(tmp < min) min = tmp;\n sum += tmp;\n }",
"tmp = Integer.parseInt(str2[i])",
"tmp",
"Integer.parseInt(str2[i])",
"Integer.parseInt",
"Integer",
"str2[i]",
"str2",
"i",
"if(tmp > max) max = tmp;",
"tmp > max",
"tmp",
"max",
"max = tmp",
"max",
"tmp",
"if(tmp < min) min = tmp;",
"tmp < min",
"tmp",
"min",
"min = tmp",
"min",
"tmp",
"sum += tmp",
"sum",
"tmp",
"System.out.println(min+\" \"+max+\" \"+sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min+\" \"+max+\" \"+sum",
"\" \"",
"max",
"min+\" \"+max+\" \"+sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n String str2[] = br.readLine().split(\" \");\n long sum = 0;\n int tmp = 0;\n int max = -1000000;\n int min = 1000000;\n for(int i = 0; i < n; i++){\n tmp = Integer.parseInt(str2[i]);\n if(tmp > max) max = tmp;\n if(tmp < min) min = tmp;\n sum += tmp;\n }\n System.out.println(min+\" \"+max+\" \"+sum);\n }\n}",
"public class Main {\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n String str2[] = br.readLine().split(\" \");\n long sum = 0;\n int tmp = 0;\n int max = -1000000;\n int min = 1000000;\n for(int i = 0; i < n; i++){\n tmp = Integer.parseInt(str2[i]);\n if(tmp > max) max = tmp;\n if(tmp < min) min = tmp;\n sum += tmp;\n }\n System.out.println(min+\" \"+max+\" \"+sum);\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
String str2[] = br.readLine().split(" ");
long sum = 0;
int tmp = 0;
int max = -1000000;
int min = 1000000;
for(int i = 0; i < n; i++){
tmp = Integer.parseInt(str2[i]);
if(tmp > max) max = tmp;
if(tmp < min) min = tmp;
sum += tmp;
}
System.out.println(min+" "+max+" "+sum);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
0,
13,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
4,
18,
13,
17,
17,
4,
18,
13,
2,
13,
17,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
86,
14
],
[
86,
15
],
[
15,
16
],
[
15,
17
],
[
86,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
20,
26
],
[
26,
27
],
[
26,
28
],
[
20,
29
],
[
29,
30
],
[
29,
31
],
[
20,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
44,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
44,
54
],
[
54,
55
],
[
54,
56
],
[
20,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
20,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
69,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
69,
74
],
[
68,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
78,
79
],
[
78,
80
],
[
67,
81
],
[
69,
82
],
[
18,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
] | [
"import java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.Scanner;\nimport java.util.List;\n\npublic class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n int n = sc.nextInt();\n long sum = 0;\n List<Long> list = new ArrayList<>();\n for (int i = 0; i < n; i++) {\n long l = sc.nextLong();\n list.add(l);\n sum += l;\n }\n \n Collections.sort(list);\n \n System.out.println(list.get(0) + \" \" + list.get(n-1) + \" \" + sum);\n }\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.List;",
"List",
"java.util",
"public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n int n = sc.nextInt();\n long sum = 0;\n List<Long> list = new ArrayList<>();\n for (int i = 0; i < n; i++) {\n long l = sc.nextLong();\n list.add(l);\n sum += l;\n }\n \n Collections.sort(list);\n \n System.out.println(list.get(0) + \" \" + list.get(n-1) + \" \" + sum);\n }\n}",
"Main",
"public static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"public static void main(String[] args) throws Exception {\n int n = sc.nextInt();\n long sum = 0;\n List<Long> list = new ArrayList<>();\n for (int i = 0; i < n; i++) {\n long l = sc.nextLong();\n list.add(l);\n sum += l;\n }\n \n Collections.sort(list);\n \n System.out.println(list.get(0) + \" \" + list.get(n-1) + \" \" + sum);\n }",
"main",
"{\n int n = sc.nextInt();\n long sum = 0;\n List<Long> list = new ArrayList<>();\n for (int i = 0; i < n; i++) {\n long l = sc.nextLong();\n list.add(l);\n sum += l;\n }\n \n Collections.sort(list);\n \n System.out.println(list.get(0) + \" \" + list.get(n-1) + \" \" + sum);\n }",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long sum = 0;",
"sum",
"0",
"List<Long> list = new ArrayList<>();",
"list",
"new ArrayList<>()",
"for (int i = 0; i < n; i++) {\n long l = sc.nextLong();\n list.add(l);\n sum += l;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n long l = sc.nextLong();\n list.add(l);\n sum += l;\n }",
"{\n long l = sc.nextLong();\n list.add(l);\n sum += l;\n }",
"long l = sc.nextLong();",
"l",
"sc.nextLong()",
"sc.nextLong",
"sc",
"list.add(l)",
"list.add",
"list",
"l",
"sum += l",
"sum",
"l",
"Collections.sort(list)",
"Collections.sort",
"Collections",
"list",
"System.out.println(list.get(0) + \" \" + list.get(n-1) + \" \" + sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"list.get(0) + \" \" + list.get(n-1) + \" \" + sum",
"\" \"",
"list.get(n-1)",
"list.get(0) + \" \" + list.get(n-1) + \" \" + sum",
"list.get(0)",
"list.get",
"list",
"0",
"\" \"",
"list.get(n-1)",
"list.get",
"list",
"n-1",
"n",
"1",
"\" \"",
"sum",
"String[] args",
"args",
"public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n int n = sc.nextInt();\n long sum = 0;\n List<Long> list = new ArrayList<>();\n for (int i = 0; i < n; i++) {\n long l = sc.nextLong();\n list.add(l);\n sum += l;\n }\n \n Collections.sort(list);\n \n System.out.println(list.get(0) + \" \" + list.get(n-1) + \" \" + sum);\n }\n}",
"public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n int n = sc.nextInt();\n long sum = 0;\n List<Long> list = new ArrayList<>();\n for (int i = 0; i < n; i++) {\n long l = sc.nextLong();\n list.add(l);\n sum += l;\n }\n \n Collections.sort(list);\n \n System.out.println(list.get(0) + \" \" + list.get(n-1) + \" \" + sum);\n }\n}",
"Main"
] | import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;
import java.util.List;
public class Main {
public static Scanner sc = new Scanner(System.in);
public static void main(String[] args) throws Exception {
int n = sc.nextInt();
long sum = 0;
List<Long> list = new ArrayList<>();
for (int i = 0; i < n; i++) {
long l = sc.nextLong();
list.add(l);
sum += l;
}
Collections.sort(list);
System.out.println(list.get(0) + " " + list.get(n-1) + " " + sum);
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
40,
17,
41,
13,
17,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
13,
41,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
87,
5
],
[
87,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
87,
10
],
[
10,
11
],
[
10,
12
],
[
87,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
15,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
15,
24
],
[
24,
25
],
[
24,
26
],
[
15,
27
],
[
27,
28
],
[
27,
29
],
[
15,
30
],
[
30,
31
],
[
30,
32
],
[
15,
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
],
[
56,
58
],
[
45,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
45,
67
],
[
67,
68
],
[
67,
69
],
[
15,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
78,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
76,
82
],
[
78,
83
],
[
13,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
] | [
"import java.util.*;\n\npublic class Main {\n private static final int MIN = -1000001;\n private static final int MAX = 1000001;\n public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n int d = scn.nextInt(), n = MAX, x = MIN;\n long s = 0;\n for(int i = 0; i < d; i++) {\n int a = scn.nextInt();\n if(a < n) {\n n = a;\n }\n if(a > x) {\n x = a;\n }\n s += a;\n }\n System.out.println(n + \" \" + x + \" \" + s);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n private static final int MIN = -1000001;\n private static final int MAX = 1000001;\n public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n int d = scn.nextInt(), n = MAX, x = MIN;\n long s = 0;\n for(int i = 0; i < d; i++) {\n int a = scn.nextInt();\n if(a < n) {\n n = a;\n }\n if(a > x) {\n x = a;\n }\n s += a;\n }\n System.out.println(n + \" \" + x + \" \" + s);\n }\n}",
"Main",
"private static final int MIN = -1000001;",
"MIN",
"-1000001",
"1000001",
"private static final int MAX = 1000001;",
"MAX",
"1000001",
"public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n int d = scn.nextInt(), n = MAX, x = MIN;\n long s = 0;\n for(int i = 0; i < d; i++) {\n int a = scn.nextInt();\n if(a < n) {\n n = a;\n }\n if(a > x) {\n x = a;\n }\n s += a;\n }\n System.out.println(n + \" \" + x + \" \" + s);\n }",
"main",
"{\n Scanner scn = new Scanner(System.in);\n int d = scn.nextInt(), n = MAX, x = MIN;\n long s = 0;\n for(int i = 0; i < d; i++) {\n int a = scn.nextInt();\n if(a < n) {\n n = a;\n }\n if(a > x) {\n x = a;\n }\n s += a;\n }\n System.out.println(n + \" \" + x + \" \" + s);\n }",
"Scanner scn = new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"int d = scn.nextInt()",
"d",
"scn.nextInt()",
"scn.nextInt",
"scn",
"n = MAX",
"n",
"MAX",
"x = MIN;",
"x",
"MIN",
"long s = 0;",
"s",
"0",
"for(int i = 0; i < d; i++) {\n int a = scn.nextInt();\n if(a < n) {\n n = a;\n }\n if(a > x) {\n x = a;\n }\n s += a;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < d",
"i",
"d",
"i++",
"i++",
"i",
"{\n int a = scn.nextInt();\n if(a < n) {\n n = a;\n }\n if(a > x) {\n x = a;\n }\n s += a;\n }",
"{\n int a = scn.nextInt();\n if(a < n) {\n n = a;\n }\n if(a > x) {\n x = a;\n }\n s += a;\n }",
"int a = scn.nextInt();",
"a",
"scn.nextInt()",
"scn.nextInt",
"scn",
"if(a < n) {\n n = a;\n }",
"a < n",
"a",
"n",
"{\n n = a;\n }",
"n = a",
"n",
"a",
"if(a > x) {\n x = a;\n }",
"a > x",
"a",
"x",
"{\n x = a;\n }",
"x = a",
"x",
"a",
"s += a",
"s",
"a",
"System.out.println(n + \" \" + x + \" \" + s)",
"System.out.println",
"System.out",
"System",
"System.out",
"n + \" \" + x + \" \" + s",
"\" \"",
"x",
"n + \" \" + x + \" \" + s",
"n",
"\" \"",
"x",
"\" \"",
"s",
"String[] args",
"args",
"public class Main {\n private static final int MIN = -1000001;\n private static final int MAX = 1000001;\n public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n int d = scn.nextInt(), n = MAX, x = MIN;\n long s = 0;\n for(int i = 0; i < d; i++) {\n int a = scn.nextInt();\n if(a < n) {\n n = a;\n }\n if(a > x) {\n x = a;\n }\n s += a;\n }\n System.out.println(n + \" \" + x + \" \" + s);\n }\n}",
"public class Main {\n private static final int MIN = -1000001;\n private static final int MAX = 1000001;\n public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n int d = scn.nextInt(), n = MAX, x = MIN;\n long s = 0;\n for(int i = 0; i < d; i++) {\n int a = scn.nextInt();\n if(a < n) {\n n = a;\n }\n if(a > x) {\n x = a;\n }\n s += a;\n }\n System.out.println(n + \" \" + x + \" \" + s);\n }\n}",
"Main"
] | import java.util.*;
public class Main {
private static final int MIN = -1000001;
private static final int MAX = 1000001;
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
int d = scn.nextInt(), n = MAX, x = MIN;
long s = 0;
for(int i = 0; i < d; i++) {
int a = scn.nextInt();
if(a < n) {
n = a;
}
if(a > x) {
x = a;
}
s += a;
}
System.out.println(n + " " + x + " " + s);
}
} |
[
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,
17,
41,
13,
4,
18,
13,
41,
13,
14,
2,
2,
17,
13,
2,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
14,
2,
2,
40,
17,
13,
2,
13,
17,
30,
4,
18,
13,
13,
0,
13,
2,
13,
13,
4,
18,
13,
13,
41,
13,
2,
4,
18,
13,
17,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
17,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
24,
26
],
[
17,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
17,
32
],
[
32,
33
],
[
17,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
39,
41
],
[
34,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
43,
51
],
[
51,
52
],
[
52,
53
],
[
43,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
62,
67
],
[
67,
68
],
[
67,
69
],
[
61,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
77,
79
],
[
42,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
42,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
86,
90
],
[
42,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
42,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
42,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
111,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
109,
115
],
[
111,
116
],
[
15,
117
],
[
117,
118
]
] | [
"import java.util.Scanner;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Collections;\n\n\nclass Main {\n\n\tpublic static void main(String[] args) {\n\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tArrayList<Integer> array = new ArrayList<Integer>();\n\t\t\n\t\tlong sum = 0;\n\t\tint n = sc.nextInt();\n\t\tint a;\n\t\t\n\t\tif(0 < n && n <= 10000){\n\t\t\t\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\t\n\t\t\t\ta = sc.nextInt();\n\t\t\t\t\n\t\t\t\tif(-1000000 <= a && a <= 1000000){\n\t\t\t\t\tarray.add(a);\n\t\t\t\t\tsum = sum + a;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tCollections.sort(array);\n\t\t\t\n\t\t\tint na = array.size() - 1;\n\t\t\tint max = array.get(na);\n\t\t\tint min = array.get(0);\n\t\t\t\n\t\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t}\n\t\t\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"class Main {\n\n\tpublic static void main(String[] args) {\n\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tArrayList<Integer> array = new ArrayList<Integer>();\n\t\t\n\t\tlong sum = 0;\n\t\tint n = sc.nextInt();\n\t\tint a;\n\t\t\n\t\tif(0 < n && n <= 10000){\n\t\t\t\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\t\n\t\t\t\ta = sc.nextInt();\n\t\t\t\t\n\t\t\t\tif(-1000000 <= a && a <= 1000000){\n\t\t\t\t\tarray.add(a);\n\t\t\t\t\tsum = sum + a;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tCollections.sort(array);\n\t\t\t\n\t\t\tint na = array.size() - 1;\n\t\t\tint max = array.get(na);\n\t\t\tint min = array.get(0);\n\t\t\t\n\t\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t}\n\t\t\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tArrayList<Integer> array = new ArrayList<Integer>();\n\t\t\n\t\tlong sum = 0;\n\t\tint n = sc.nextInt();\n\t\tint a;\n\t\t\n\t\tif(0 < n && n <= 10000){\n\t\t\t\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\t\n\t\t\t\ta = sc.nextInt();\n\t\t\t\t\n\t\t\t\tif(-1000000 <= a && a <= 1000000){\n\t\t\t\t\tarray.add(a);\n\t\t\t\t\tsum = sum + a;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tCollections.sort(array);\n\t\t\t\n\t\t\tint na = array.size() - 1;\n\t\t\tint max = array.get(na);\n\t\t\tint min = array.get(0);\n\t\t\t\n\t\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t}\n\t\t\n\t}",
"main",
"{\n\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tArrayList<Integer> array = new ArrayList<Integer>();\n\t\t\n\t\tlong sum = 0;\n\t\tint n = sc.nextInt();\n\t\tint a;\n\t\t\n\t\tif(0 < n && n <= 10000){\n\t\t\t\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\t\n\t\t\t\ta = sc.nextInt();\n\t\t\t\t\n\t\t\t\tif(-1000000 <= a && a <= 1000000){\n\t\t\t\t\tarray.add(a);\n\t\t\t\t\tsum = sum + a;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tCollections.sort(array);\n\t\t\t\n\t\t\tint na = array.size() - 1;\n\t\t\tint max = array.get(na);\n\t\t\tint min = array.get(0);\n\t\t\t\n\t\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t}\n\t\t\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"ArrayList<Integer> array = new ArrayList<Integer>();",
"array",
"new ArrayList<Integer>()",
"long sum = 0;",
"sum",
"0",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a;",
"a",
"if(0 < n && n <= 10000){\n\t\t\t\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\t\n\t\t\t\ta = sc.nextInt();\n\t\t\t\t\n\t\t\t\tif(-1000000 <= a && a <= 1000000){\n\t\t\t\t\tarray.add(a);\n\t\t\t\t\tsum = sum + a;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tCollections.sort(array);\n\t\t\t\n\t\t\tint na = array.size() - 1;\n\t\t\tint max = array.get(na);\n\t\t\tint min = array.get(0);\n\t\t\t\n\t\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t}",
"0 < n && n <= 10000",
"0 < n",
"0",
"n",
"n <= 10000",
"n",
"10000",
"{\n\t\t\t\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\t\n\t\t\t\ta = sc.nextInt();\n\t\t\t\t\n\t\t\t\tif(-1000000 <= a && a <= 1000000){\n\t\t\t\t\tarray.add(a);\n\t\t\t\t\tsum = sum + a;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tCollections.sort(array);\n\t\t\t\n\t\t\tint na = array.size() - 1;\n\t\t\tint max = array.get(na);\n\t\t\tint min = array.get(0);\n\t\t\t\n\t\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t}",
"for(int i = 0; i < n; i++){\n\t\t\t\t\n\t\t\t\ta = sc.nextInt();\n\t\t\t\t\n\t\t\t\tif(-1000000 <= a && a <= 1000000){\n\t\t\t\t\tarray.add(a);\n\t\t\t\t\tsum = sum + a;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\t\n\t\t\t\ta = sc.nextInt();\n\t\t\t\t\n\t\t\t\tif(-1000000 <= a && a <= 1000000){\n\t\t\t\t\tarray.add(a);\n\t\t\t\t\tsum = sum + a;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"{\n\t\t\t\t\n\t\t\t\ta = sc.nextInt();\n\t\t\t\t\n\t\t\t\tif(-1000000 <= a && a <= 1000000){\n\t\t\t\t\tarray.add(a);\n\t\t\t\t\tsum = sum + a;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"a = sc.nextInt()",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(-1000000 <= a && a <= 1000000){\n\t\t\t\t\tarray.add(a);\n\t\t\t\t\tsum = sum + a;\n\t\t\t\t}",
"-1000000 <= a && a <= 1000000",
"-1000000 <= a",
"-1000000",
"1000000",
"a",
"a <= 1000000",
"a",
"1000000",
"{\n\t\t\t\t\tarray.add(a);\n\t\t\t\t\tsum = sum + a;\n\t\t\t\t}",
"array.add(a)",
"array.add",
"array",
"a",
"sum = sum + a",
"sum",
"sum + a",
"sum",
"a",
"Collections.sort(array)",
"Collections.sort",
"Collections",
"array",
"int na = array.size() - 1;",
"na",
"array.size() - 1",
"array.size()",
"array.size",
"array",
"1",
"int max = array.get(na);",
"max",
"array.get(na)",
"array.get",
"array",
"na",
"int min = array.get(0);",
"min",
"array.get(0)",
"array.get",
"array",
"0",
"System.out.println(min + \" \" + max + \" \" + sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min + \" \" + max + \" \" + sum",
"\" \"",
"max",
"min + \" \" + max + \" \" + sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args"
] | import java.util.Scanner;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
ArrayList<Integer> array = new ArrayList<Integer>();
long sum = 0;
int n = sc.nextInt();
int a;
if(0 < n && n <= 10000){
for(int i = 0; i < n; i++){
a = sc.nextInt();
if(-1000000 <= a && a <= 1000000){
array.add(a);
sum = sum + a;
}
}
Collections.sort(array);
int na = array.size() - 1;
int max = array.get(na);
int min = array.get(0);
System.out.println(min + " " + max + " " + sum);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
13,
18,
13,
13,
0,
13,
18,
13,
13,
0,
13,
18,
13,
13,
14,
2,
18,
13,
13,
13,
0,
13,
18,
13,
13,
14,
2,
13,
18,
13,
13,
0,
13,
18,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
118,
5
],
[
118,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
26,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
60,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
45,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
45,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
76,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
84,
86
],
[
45,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
90,
92
],
[
87,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
95,
97
],
[
8,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
106,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
104,
110
],
[
106,
111
],
[
8,
112
],
[
112,
113
],
[
113,
114
],
[
6,
115
],
[
115,
116
],
[
0,
117
],
[
117,
118
],
[
117,
119
]
] | [
"import java.util.Scanner;\npublic class Main {\n \n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n long sum = 0;\n long max = 0;\n long min = 0;\n int i = Integer.parseInt(scan.next());\n long[] ary = new long[i];\n for(int a=0;a<i;a++){\n ary[a]=Long.parseLong(scan.next());\n if(a==0){ \n min=ary[a];\n max=ary[a];\n }\n sum+=ary[a];\n if(ary[a]>max) max = ary[a];\n if(min>ary[a]) min = ary[a];\n }\n System.out.println(min+\" \"+max+\" \"+sum);\n scan.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n \n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n long sum = 0;\n long max = 0;\n long min = 0;\n int i = Integer.parseInt(scan.next());\n long[] ary = new long[i];\n for(int a=0;a<i;a++){\n ary[a]=Long.parseLong(scan.next());\n if(a==0){ \n min=ary[a];\n max=ary[a];\n }\n sum+=ary[a];\n if(ary[a]>max) max = ary[a];\n if(min>ary[a]) min = ary[a];\n }\n System.out.println(min+\" \"+max+\" \"+sum);\n scan.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n long sum = 0;\n long max = 0;\n long min = 0;\n int i = Integer.parseInt(scan.next());\n long[] ary = new long[i];\n for(int a=0;a<i;a++){\n ary[a]=Long.parseLong(scan.next());\n if(a==0){ \n min=ary[a];\n max=ary[a];\n }\n sum+=ary[a];\n if(ary[a]>max) max = ary[a];\n if(min>ary[a]) min = ary[a];\n }\n System.out.println(min+\" \"+max+\" \"+sum);\n scan.close();\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n long sum = 0;\n long max = 0;\n long min = 0;\n int i = Integer.parseInt(scan.next());\n long[] ary = new long[i];\n for(int a=0;a<i;a++){\n ary[a]=Long.parseLong(scan.next());\n if(a==0){ \n min=ary[a];\n max=ary[a];\n }\n sum+=ary[a];\n if(ary[a]>max) max = ary[a];\n if(min>ary[a]) min = ary[a];\n }\n System.out.println(min+\" \"+max+\" \"+sum);\n scan.close();\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"long sum = 0;",
"sum",
"0",
"long max = 0;",
"max",
"0",
"long min = 0;",
"min",
"0",
"int i = Integer.parseInt(scan.next());",
"i",
"Integer.parseInt(scan.next())",
"Integer.parseInt",
"Integer",
"scan.next()",
"scan.next",
"scan",
"long[] ary = new long[i];",
"ary",
"new long[i]",
"i",
"for(int a=0;a<i;a++){\n ary[a]=Long.parseLong(scan.next());\n if(a==0){ \n min=ary[a];\n max=ary[a];\n }\n sum+=ary[a];\n if(ary[a]>max) max = ary[a];\n if(min>ary[a]) min = ary[a];\n }",
"int a=0;",
"int a=0;",
"a",
"0",
"a<i",
"a",
"i",
"a++",
"a++",
"a",
"{\n ary[a]=Long.parseLong(scan.next());\n if(a==0){ \n min=ary[a];\n max=ary[a];\n }\n sum+=ary[a];\n if(ary[a]>max) max = ary[a];\n if(min>ary[a]) min = ary[a];\n }",
"{\n ary[a]=Long.parseLong(scan.next());\n if(a==0){ \n min=ary[a];\n max=ary[a];\n }\n sum+=ary[a];\n if(ary[a]>max) max = ary[a];\n if(min>ary[a]) min = ary[a];\n }",
"ary[a]=Long.parseLong(scan.next())",
"ary[a]",
"ary",
"a",
"Long.parseLong(scan.next())",
"Long.parseLong",
"Long",
"scan.next()",
"scan.next",
"scan",
"if(a==0){ \n min=ary[a];\n max=ary[a];\n }",
"a==0",
"a",
"0",
"{ \n min=ary[a];\n max=ary[a];\n }",
"min=ary[a]",
"min",
"ary[a]",
"ary",
"a",
"max=ary[a]",
"max",
"ary[a]",
"ary",
"a",
"sum+=ary[a]",
"sum",
"ary[a]",
"ary",
"a",
"if(ary[a]>max) max = ary[a];",
"ary[a]>max",
"ary[a]",
"ary",
"a",
"max",
"max = ary[a]",
"max",
"ary[a]",
"ary",
"a",
"if(min>ary[a]) min = ary[a];",
"min>ary[a]",
"min",
"ary[a]",
"ary",
"a",
"min = ary[a]",
"min",
"ary[a]",
"ary",
"a",
"System.out.println(min+\" \"+max+\" \"+sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min+\" \"+max+\" \"+sum",
"\" \"",
"max",
"min+\" \"+max+\" \"+sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main {\n \n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n long sum = 0;\n long max = 0;\n long min = 0;\n int i = Integer.parseInt(scan.next());\n long[] ary = new long[i];\n for(int a=0;a<i;a++){\n ary[a]=Long.parseLong(scan.next());\n if(a==0){ \n min=ary[a];\n max=ary[a];\n }\n sum+=ary[a];\n if(ary[a]>max) max = ary[a];\n if(min>ary[a]) min = ary[a];\n }\n System.out.println(min+\" \"+max+\" \"+sum);\n scan.close();\n }\n}",
"public class Main {\n \n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n long sum = 0;\n long max = 0;\n long min = 0;\n int i = Integer.parseInt(scan.next());\n long[] ary = new long[i];\n for(int a=0;a<i;a++){\n ary[a]=Long.parseLong(scan.next());\n if(a==0){ \n min=ary[a];\n max=ary[a];\n }\n sum+=ary[a];\n if(ary[a]>max) max = ary[a];\n if(min>ary[a]) min = ary[a];\n }\n System.out.println(min+\" \"+max+\" \"+sum);\n scan.close();\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
long sum = 0;
long max = 0;
long min = 0;
int i = Integer.parseInt(scan.next());
long[] ary = new long[i];
for(int a=0;a<i;a++){
ary[a]=Long.parseLong(scan.next());
if(a==0){
min=ary[a];
max=ary[a];
}
sum+=ary[a];
if(ary[a]>max) max = ary[a];
if(min>ary[a]) min = ary[a];
}
System.out.println(min+" "+max+" "+sum);
scan.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
13,
41,
13,
13,
41,
13,
13,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
13,
13,
14,
2,
13,
13,
0,
13,
13,
14,
2,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
85,
5
],
[
85,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
31,
41
],
[
41,
42
],
[
42,
43
],
[
31,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
45,
51
],
[
51,
52
],
[
51,
53
],
[
45,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
58,
60
],
[
45,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
65,
67
],
[
8,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
76,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
74,
80
],
[
76,
81
],
[
6,
82
],
[
82,
83
],
[
0,
84
],
[
84,
85
],
[
84,
86
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint a =sc.nextInt();\n\t\tint Max=a;\n\t\tint min=a;\n\t\tlong sum=a;\n\t\tfor(int i=0;i<n-1;i++){\n\t\tint b=sc.nextInt();\n\t\tsum += b;\n\t\tif(Max<b) Max=b;\n\t\tif(min>b) min=b;\n\t\t}\n\t\tSystem.out.println(min+\" \"+Max+\" \"+sum);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint a =sc.nextInt();\n\t\tint Max=a;\n\t\tint min=a;\n\t\tlong sum=a;\n\t\tfor(int i=0;i<n-1;i++){\n\t\tint b=sc.nextInt();\n\t\tsum += b;\n\t\tif(Max<b) Max=b;\n\t\tif(min>b) min=b;\n\t\t}\n\t\tSystem.out.println(min+\" \"+Max+\" \"+sum);\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint a =sc.nextInt();\n\t\tint Max=a;\n\t\tint min=a;\n\t\tlong sum=a;\n\t\tfor(int i=0;i<n-1;i++){\n\t\tint b=sc.nextInt();\n\t\tsum += b;\n\t\tif(Max<b) Max=b;\n\t\tif(min>b) min=b;\n\t\t}\n\t\tSystem.out.println(min+\" \"+Max+\" \"+sum);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint a =sc.nextInt();\n\t\tint Max=a;\n\t\tint min=a;\n\t\tlong sum=a;\n\t\tfor(int i=0;i<n-1;i++){\n\t\tint b=sc.nextInt();\n\t\tsum += b;\n\t\tif(Max<b) Max=b;\n\t\tif(min>b) min=b;\n\t\t}\n\t\tSystem.out.println(min+\" \"+Max+\" \"+sum);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a =sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int Max=a;",
"Max",
"a",
"int min=a;",
"min",
"a",
"long sum=a;",
"sum",
"a",
"for(int i=0;i<n-1;i++){\n\t\tint b=sc.nextInt();\n\t\tsum += b;\n\t\tif(Max<b) Max=b;\n\t\tif(min>b) min=b;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n-1",
"i",
"n-1",
"n",
"1",
"i++",
"i++",
"i",
"{\n\t\tint b=sc.nextInt();\n\t\tsum += b;\n\t\tif(Max<b) Max=b;\n\t\tif(min>b) min=b;\n\t\t}",
"{\n\t\tint b=sc.nextInt();\n\t\tsum += b;\n\t\tif(Max<b) Max=b;\n\t\tif(min>b) min=b;\n\t\t}",
"int b=sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sum += b",
"sum",
"b",
"if(Max<b) Max=b;",
"Max<b",
"Max",
"b",
"Max=b",
"Max",
"b",
"if(min>b) min=b;",
"min>b",
"min",
"b",
"min=b",
"min",
"b",
"System.out.println(min+\" \"+Max+\" \"+sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min+\" \"+Max+\" \"+sum",
"\" \"",
"Max",
"min+\" \"+Max+\" \"+sum",
"min",
"\" \"",
"Max",
"\" \"",
"sum",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint a =sc.nextInt();\n\t\tint Max=a;\n\t\tint min=a;\n\t\tlong sum=a;\n\t\tfor(int i=0;i<n-1;i++){\n\t\tint b=sc.nextInt();\n\t\tsum += b;\n\t\tif(Max<b) Max=b;\n\t\tif(min>b) min=b;\n\t\t}\n\t\tSystem.out.println(min+\" \"+Max+\" \"+sum);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint a =sc.nextInt();\n\t\tint Max=a;\n\t\tint min=a;\n\t\tlong sum=a;\n\t\tfor(int i=0;i<n-1;i++){\n\t\tint b=sc.nextInt();\n\t\tsum += b;\n\t\tif(Max<b) Max=b;\n\t\tif(min>b) min=b;\n\t\t}\n\t\tSystem.out.println(min+\" \"+Max+\" \"+sum);\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int a =sc.nextInt();
int Max=a;
int min=a;
long sum=a;
for(int i=0;i<n-1;i++){
int b=sc.nextInt();
sum += b;
if(Max<b) Max=b;
if(min>b) min=b;
}
System.out.println(min+" "+Max+" "+sum);
}
} |
[
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,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
4,
18,
13,
17,
4,
18,
13,
17,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
20,
29
],
[
29,
30
],
[
29,
31
],
[
20,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
51,
52
],
[
20,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
20,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
20,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
20,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
20,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
20,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
20,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
94,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
94,
98
],
[
93,
99
],
[
99,
100
],
[
100,
101
],
[
92,
102
],
[
94,
103
],
[
18,
104
],
[
104,
105
]
] | [
"import java.io.IOException;\nimport java.util.Arrays;\nimport java.util.OptionalLong;\nimport java.util.Scanner;\nimport java.util.stream.LongStream;\n\nclass Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tScanner scane = new Scanner(System.in);\n\n\t\tint n = scane.nextInt();\n\n\t\tlong[] nums = new long[n];\n\n\t\tfor(int i =0; i<n; i++){\n\t\t\tnums[i] = scane.nextInt();\n\t\t}\n\n\t LongStream stream = Arrays.stream(nums);\n\t LongStream stream2 = Arrays.stream(nums);\n\t LongStream stream3 = Arrays.stream(nums);\n\n\t OptionalLong min = stream.min();\n\t OptionalLong max = stream2.max();\n\t long total = stream3.sum();\n\n\t System.out.println(min.getAsLong()+\" \"+max.getAsLong()+\" \"+total);\n\n\t}\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.OptionalLong;",
"OptionalLong",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.stream.LongStream;",
"LongStream",
"java.util.stream",
"class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tScanner scane = new Scanner(System.in);\n\n\t\tint n = scane.nextInt();\n\n\t\tlong[] nums = new long[n];\n\n\t\tfor(int i =0; i<n; i++){\n\t\t\tnums[i] = scane.nextInt();\n\t\t}\n\n\t LongStream stream = Arrays.stream(nums);\n\t LongStream stream2 = Arrays.stream(nums);\n\t LongStream stream3 = Arrays.stream(nums);\n\n\t OptionalLong min = stream.min();\n\t OptionalLong max = stream2.max();\n\t long total = stream3.sum();\n\n\t System.out.println(min.getAsLong()+\" \"+max.getAsLong()+\" \"+total);\n\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\n\t\tScanner scane = new Scanner(System.in);\n\n\t\tint n = scane.nextInt();\n\n\t\tlong[] nums = new long[n];\n\n\t\tfor(int i =0; i<n; i++){\n\t\t\tnums[i] = scane.nextInt();\n\t\t}\n\n\t LongStream stream = Arrays.stream(nums);\n\t LongStream stream2 = Arrays.stream(nums);\n\t LongStream stream3 = Arrays.stream(nums);\n\n\t OptionalLong min = stream.min();\n\t OptionalLong max = stream2.max();\n\t long total = stream3.sum();\n\n\t System.out.println(min.getAsLong()+\" \"+max.getAsLong()+\" \"+total);\n\n\t}",
"main",
"{\n\n\t\tScanner scane = new Scanner(System.in);\n\n\t\tint n = scane.nextInt();\n\n\t\tlong[] nums = new long[n];\n\n\t\tfor(int i =0; i<n; i++){\n\t\t\tnums[i] = scane.nextInt();\n\t\t}\n\n\t LongStream stream = Arrays.stream(nums);\n\t LongStream stream2 = Arrays.stream(nums);\n\t LongStream stream3 = Arrays.stream(nums);\n\n\t OptionalLong min = stream.min();\n\t OptionalLong max = stream2.max();\n\t long total = stream3.sum();\n\n\t System.out.println(min.getAsLong()+\" \"+max.getAsLong()+\" \"+total);\n\n\t}",
"Scanner scane = new Scanner(System.in);",
"scane",
"new Scanner(System.in)",
"int n = scane.nextInt();",
"n",
"scane.nextInt()",
"scane.nextInt",
"scane",
"long[] nums = new long[n];",
"nums",
"new long[n]",
"n",
"for(int i =0; i<n; i++){\n\t\t\tnums[i] = scane.nextInt();\n\t\t}",
"int i =0;",
"int i =0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tnums[i] = scane.nextInt();\n\t\t}",
"{\n\t\t\tnums[i] = scane.nextInt();\n\t\t}",
"nums[i] = scane.nextInt()",
"nums[i]",
"nums",
"i",
"scane.nextInt()",
"scane.nextInt",
"scane",
"LongStream stream = Arrays.stream(nums);",
"stream",
"Arrays.stream(nums)",
"Arrays.stream",
"Arrays",
"nums",
"LongStream stream2 = Arrays.stream(nums);",
"stream2",
"Arrays.stream(nums)",
"Arrays.stream",
"Arrays",
"nums",
"LongStream stream3 = Arrays.stream(nums);",
"stream3",
"Arrays.stream(nums)",
"Arrays.stream",
"Arrays",
"nums",
"OptionalLong min = stream.min();",
"min",
"stream.min()",
"stream.min",
"stream",
"OptionalLong max = stream2.max();",
"max",
"stream2.max()",
"stream2.max",
"stream2",
"long total = stream3.sum();",
"total",
"stream3.sum()",
"stream3.sum",
"stream3",
"System.out.println(min.getAsLong()+\" \"+max.getAsLong()+\" \"+total)",
"System.out.println",
"System.out",
"System",
"System.out",
"min.getAsLong()+\" \"+max.getAsLong()+\" \"+total",
"\" \"",
"max.getAsLong()",
"min.getAsLong()+\" \"+max.getAsLong()+\" \"+total",
"min.getAsLong()",
"min.getAsLong",
"min",
"\" \"",
"max.getAsLong()",
"max.getAsLong",
"max",
"\" \"",
"total",
"String[] args",
"args"
] | import java.io.IOException;
import java.util.Arrays;
import java.util.OptionalLong;
import java.util.Scanner;
import java.util.stream.LongStream;
class Main {
public static void main(String[] args) throws IOException {
Scanner scane = new Scanner(System.in);
int n = scane.nextInt();
long[] nums = new long[n];
for(int i =0; i<n; i++){
nums[i] = scane.nextInt();
}
LongStream stream = Arrays.stream(nums);
LongStream stream2 = Arrays.stream(nums);
LongStream stream3 = Arrays.stream(nums);
OptionalLong min = stream.min();
OptionalLong max = stream2.max();
long total = stream3.sum();
System.out.println(min.getAsLong()+" "+max.getAsLong()+" "+total);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
40,
17,
41,
13,
17,
41,
13,
17,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
13,
13,
30,
41,
13,
4,
18,
13,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
40,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
81,
8
],
[
81,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
11,
19
],
[
19,
20
],
[
19,
21
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
11,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
37,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
37,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
37,
62
],
[
62,
63
],
[
11,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
72,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
70,
76
],
[
72,
77
],
[
9,
78
],
[
78,
79
],
[
0,
80
],
[
80,
81
],
[
80,
82
]
] | [
"\nimport java.io.PrintStream;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int max = -1000001;\n int min = 1000001;\n long sum = 0;\n int n = scanner.nextInt();\n int i= 0;\n while(i < n){\n int x = scanner.nextInt();\n sum += x;\n if( max < x ){\n max = x;\n }\n if(min > x){\n min = x;\n }\n i++;\n }\n System.out.println(min+\" \"+max+\" \"+sum);\n }\n}\n",
"import java.io.PrintStream;",
"PrintStream",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int max = -1000001;\n int min = 1000001;\n long sum = 0;\n int n = scanner.nextInt();\n int i= 0;\n while(i < n){\n int x = scanner.nextInt();\n sum += x;\n if( max < x ){\n max = x;\n }\n if(min > x){\n min = x;\n }\n i++;\n }\n System.out.println(min+\" \"+max+\" \"+sum);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int max = -1000001;\n int min = 1000001;\n long sum = 0;\n int n = scanner.nextInt();\n int i= 0;\n while(i < n){\n int x = scanner.nextInt();\n sum += x;\n if( max < x ){\n max = x;\n }\n if(min > x){\n min = x;\n }\n i++;\n }\n System.out.println(min+\" \"+max+\" \"+sum);\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n\n int max = -1000001;\n int min = 1000001;\n long sum = 0;\n int n = scanner.nextInt();\n int i= 0;\n while(i < n){\n int x = scanner.nextInt();\n sum += x;\n if( max < x ){\n max = x;\n }\n if(min > x){\n min = x;\n }\n i++;\n }\n System.out.println(min+\" \"+max+\" \"+sum);\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int max = -1000001;",
"max",
"-1000001",
"1000001",
"int min = 1000001;",
"min",
"1000001",
"long sum = 0;",
"sum",
"0",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int i= 0;",
"i",
"0",
"while(i < n){\n int x = scanner.nextInt();\n sum += x;\n if( max < x ){\n max = x;\n }\n if(min > x){\n min = x;\n }\n i++;\n }",
"i < n",
"i",
"n",
"{\n int x = scanner.nextInt();\n sum += x;\n if( max < x ){\n max = x;\n }\n if(min > x){\n min = x;\n }\n i++;\n }",
"int x = scanner.nextInt();",
"x",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"sum += x",
"sum",
"x",
"if( max < x ){\n max = x;\n }",
"max < x",
"max",
"x",
"{\n max = x;\n }",
"max = x",
"max",
"x",
"if(min > x){\n min = x;\n }",
"min > x",
"min",
"x",
"{\n min = x;\n }",
"min = x",
"min",
"x",
"i++",
"i",
"System.out.println(min+\" \"+max+\" \"+sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min+\" \"+max+\" \"+sum",
"\" \"",
"max",
"min+\" \"+max+\" \"+sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int max = -1000001;\n int min = 1000001;\n long sum = 0;\n int n = scanner.nextInt();\n int i= 0;\n while(i < n){\n int x = scanner.nextInt();\n sum += x;\n if( max < x ){\n max = x;\n }\n if(min > x){\n min = x;\n }\n i++;\n }\n System.out.println(min+\" \"+max+\" \"+sum);\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int max = -1000001;\n int min = 1000001;\n long sum = 0;\n int n = scanner.nextInt();\n int i= 0;\n while(i < n){\n int x = scanner.nextInt();\n sum += x;\n if( max < x ){\n max = x;\n }\n if(min > x){\n min = x;\n }\n i++;\n }\n System.out.println(min+\" \"+max+\" \"+sum);\n }\n}",
"Main"
] |
import java.io.PrintStream;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int max = -1000001;
int min = 1000001;
long sum = 0;
int n = scanner.nextInt();
int i= 0;
while(i < n){
int x = scanner.nextInt();
sum += x;
if( max < x ){
max = x;
}
if(min > x){
min = x;
}
i++;
}
System.out.println(min+" "+max+" "+sum);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
20,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
13,
17,
30,
41,
13,
4,
18,
4,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
30,
41,
13,
4,
18,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
4,
18,
13,
18,
13,
13,
4,
18,
13,
4,
18,
13,
18,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
125,
11
],
[
125,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
14,
24
],
[
24,
25
],
[
24,
26
],
[
14,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
47,
52
],
[
44,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
58,
59
],
[
58,
60
],
[
40,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
64,
69
],
[
61,
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
],
[
83,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
90,
91
],
[
90,
92
],
[
82,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
99,
100
],
[
99,
101
],
[
14,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
110,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
110,
115
],
[
109,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
108,
120
],
[
110,
121
],
[
12,
122
],
[
122,
123
],
[
0,
124
],
[
124,
125
],
[
124,
126
]
] | [
"import java.io.*;\nimport java.util.ArrayList;\nimport java.util.Collections;\n \npublic class Main {\n \n public static void main(String[] args) throws IOException {\n \n int x = 0;\n long sum = 0;\n ArrayList<Integer> num = new ArrayList<>();\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n for(int i = 0; i < 2; i++) {\n if(i == 0){\n String[] line = br.readLine().split(\" \");\n x = Integer.parseInt(line[0]);\n }\n \n else{\n String[] line = br.readLine().split(\" \");\n for(int a = 0; a < x; a++){\n sum = sum + Integer.parseInt(line[a]);\n num.add(Integer.parseInt(line[a]));\n }\n }\n \n }\n \n System.out.println(Collections.min(num) +\" \"+ Collections.max(num) +\" \"+ sum);\n \n \n \n }\n \n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"public class Main {\n \n public static void main(String[] args) throws IOException {\n \n int x = 0;\n long sum = 0;\n ArrayList<Integer> num = new ArrayList<>();\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n for(int i = 0; i < 2; i++) {\n if(i == 0){\n String[] line = br.readLine().split(\" \");\n x = Integer.parseInt(line[0]);\n }\n \n else{\n String[] line = br.readLine().split(\" \");\n for(int a = 0; a < x; a++){\n sum = sum + Integer.parseInt(line[a]);\n num.add(Integer.parseInt(line[a]));\n }\n }\n \n }\n \n System.out.println(Collections.min(num) +\" \"+ Collections.max(num) +\" \"+ sum);\n \n \n \n }\n \n}",
"Main",
"public static void main(String[] args) throws IOException {\n \n int x = 0;\n long sum = 0;\n ArrayList<Integer> num = new ArrayList<>();\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n for(int i = 0; i < 2; i++) {\n if(i == 0){\n String[] line = br.readLine().split(\" \");\n x = Integer.parseInt(line[0]);\n }\n \n else{\n String[] line = br.readLine().split(\" \");\n for(int a = 0; a < x; a++){\n sum = sum + Integer.parseInt(line[a]);\n num.add(Integer.parseInt(line[a]));\n }\n }\n \n }\n \n System.out.println(Collections.min(num) +\" \"+ Collections.max(num) +\" \"+ sum);\n \n \n \n }",
"main",
"{\n \n int x = 0;\n long sum = 0;\n ArrayList<Integer> num = new ArrayList<>();\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n for(int i = 0; i < 2; i++) {\n if(i == 0){\n String[] line = br.readLine().split(\" \");\n x = Integer.parseInt(line[0]);\n }\n \n else{\n String[] line = br.readLine().split(\" \");\n for(int a = 0; a < x; a++){\n sum = sum + Integer.parseInt(line[a]);\n num.add(Integer.parseInt(line[a]));\n }\n }\n \n }\n \n System.out.println(Collections.min(num) +\" \"+ Collections.max(num) +\" \"+ sum);\n \n \n \n }",
"int x = 0;",
"x",
"0",
"long sum = 0;",
"sum",
"0",
"ArrayList<Integer> num = new ArrayList<>();",
"num",
"new ArrayList<>()",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"for(int i = 0; i < 2; i++) {\n if(i == 0){\n String[] line = br.readLine().split(\" \");\n x = Integer.parseInt(line[0]);\n }\n \n else{\n String[] line = br.readLine().split(\" \");\n for(int a = 0; a < x; a++){\n sum = sum + Integer.parseInt(line[a]);\n num.add(Integer.parseInt(line[a]));\n }\n }\n \n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 2",
"i",
"2",
"i++",
"i++",
"i",
"{\n if(i == 0){\n String[] line = br.readLine().split(\" \");\n x = Integer.parseInt(line[0]);\n }\n \n else{\n String[] line = br.readLine().split(\" \");\n for(int a = 0; a < x; a++){\n sum = sum + Integer.parseInt(line[a]);\n num.add(Integer.parseInt(line[a]));\n }\n }\n \n }",
"{\n if(i == 0){\n String[] line = br.readLine().split(\" \");\n x = Integer.parseInt(line[0]);\n }\n \n else{\n String[] line = br.readLine().split(\" \");\n for(int a = 0; a < x; a++){\n sum = sum + Integer.parseInt(line[a]);\n num.add(Integer.parseInt(line[a]));\n }\n }\n \n }",
"if(i == 0){\n String[] line = br.readLine().split(\" \");\n x = Integer.parseInt(line[0]);\n }\n \n else{\n String[] line = br.readLine().split(\" \");\n for(int a = 0; a < x; a++){\n sum = sum + Integer.parseInt(line[a]);\n num.add(Integer.parseInt(line[a]));\n }\n }",
"i == 0",
"i",
"0",
"{\n String[] line = br.readLine().split(\" \");\n x = Integer.parseInt(line[0]);\n }",
"String[] line = br.readLine().split(\" \");",
"line",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"x = Integer.parseInt(line[0])",
"x",
"Integer.parseInt(line[0])",
"Integer.parseInt",
"Integer",
"line[0]",
"line",
"0",
"{\n String[] line = br.readLine().split(\" \");\n for(int a = 0; a < x; a++){\n sum = sum + Integer.parseInt(line[a]);\n num.add(Integer.parseInt(line[a]));\n }\n }",
"String[] line = br.readLine().split(\" \");",
"line",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for(int a = 0; a < x; a++){\n sum = sum + Integer.parseInt(line[a]);\n num.add(Integer.parseInt(line[a]));\n }",
"int a = 0;",
"int a = 0;",
"a",
"0",
"a < x",
"a",
"x",
"a++",
"a++",
"a",
"{\n sum = sum + Integer.parseInt(line[a]);\n num.add(Integer.parseInt(line[a]));\n }",
"{\n sum = sum + Integer.parseInt(line[a]);\n num.add(Integer.parseInt(line[a]));\n }",
"sum = sum + Integer.parseInt(line[a])",
"sum",
"sum + Integer.parseInt(line[a])",
"sum",
"Integer.parseInt(line[a])",
"Integer.parseInt",
"Integer",
"line[a]",
"line",
"a",
"num.add(Integer.parseInt(line[a]))",
"num.add",
"num",
"Integer.parseInt(line[a])",
"Integer.parseInt",
"Integer",
"line[a]",
"line",
"a",
"System.out.println(Collections.min(num) +\" \"+ Collections.max(num) +\" \"+ sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"Collections.min(num) +\" \"+ Collections.max(num) +\" \"+ sum",
"\" \"",
"Collections.max(num)",
"Collections.min(num) +\" \"+ Collections.max(num) +\" \"+ sum",
"Collections.min(num)",
"Collections.min",
"Collections",
"num",
"\" \"",
"Collections.max(num)",
"Collections.max",
"Collections",
"num",
"\" \"",
"sum",
"String[] args",
"args",
"public class Main {\n \n public static void main(String[] args) throws IOException {\n \n int x = 0;\n long sum = 0;\n ArrayList<Integer> num = new ArrayList<>();\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n for(int i = 0; i < 2; i++) {\n if(i == 0){\n String[] line = br.readLine().split(\" \");\n x = Integer.parseInt(line[0]);\n }\n \n else{\n String[] line = br.readLine().split(\" \");\n for(int a = 0; a < x; a++){\n sum = sum + Integer.parseInt(line[a]);\n num.add(Integer.parseInt(line[a]));\n }\n }\n \n }\n \n System.out.println(Collections.min(num) +\" \"+ Collections.max(num) +\" \"+ sum);\n \n \n \n }\n \n}",
"public class Main {\n \n public static void main(String[] args) throws IOException {\n \n int x = 0;\n long sum = 0;\n ArrayList<Integer> num = new ArrayList<>();\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n for(int i = 0; i < 2; i++) {\n if(i == 0){\n String[] line = br.readLine().split(\" \");\n x = Integer.parseInt(line[0]);\n }\n \n else{\n String[] line = br.readLine().split(\" \");\n for(int a = 0; a < x; a++){\n sum = sum + Integer.parseInt(line[a]);\n num.add(Integer.parseInt(line[a]));\n }\n }\n \n }\n \n System.out.println(Collections.min(num) +\" \"+ Collections.max(num) +\" \"+ sum);\n \n \n \n }\n \n}",
"Main"
] | import java.io.*;
import java.util.ArrayList;
import java.util.Collections;
public class Main {
public static void main(String[] args) throws IOException {
int x = 0;
long sum = 0;
ArrayList<Integer> num = new ArrayList<>();
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
for(int i = 0; i < 2; i++) {
if(i == 0){
String[] line = br.readLine().split(" ");
x = Integer.parseInt(line[0]);
}
else{
String[] line = br.readLine().split(" ");
for(int a = 0; a < x; a++){
sum = sum + Integer.parseInt(line[a]);
num.add(Integer.parseInt(line[a]));
}
}
}
System.out.println(Collections.min(num) +" "+ Collections.max(num) +" "+ sum);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
0,
13,
17,
0,
13,
4,
18,
13,
0,
13,
13,
0,
13,
13,
0,
13,
13,
42,
2,
13,
13,
30,
0,
13,
4,
18,
13,
0,
13,
2,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
100,
8
],
[
100,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
11,
24
],
[
24,
25
],
[
11,
26
],
[
26,
27
],
[
11,
28
],
[
28,
29
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
11,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
11,
38
],
[
38,
39
],
[
38,
40
],
[
11,
41
],
[
41,
42
],
[
41,
43
],
[
11,
44
],
[
44,
45
],
[
44,
46
],
[
11,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
51,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
51,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
62,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
51,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
80,
82
],
[
11,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
91,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
89,
95
],
[
91,
96
],
[
9,
97
],
[
97,
98
],
[
0,
99
],
[
99,
100
],
[
99,
101
]
] | [
"import java.io.IOException;\nimport java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long a,b,c,d,e;\n a=2;\n b = sc.nextLong();\n c = b;\n d = b;\n e = b;\n while(a<=n){\n \t b = sc.nextLong();\n \t c = c + b;\n \t if (b > d){\n \t\t d = b;\n \t }else if (b < e){e = b;}\n \t a = a+1;\n }\n System.out.println(e + \" \" + d + \" \" + c);\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\t\t// TODO ?????????????????????????????????????????????\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long a,b,c,d,e;\n a=2;\n b = sc.nextLong();\n c = b;\n d = b;\n e = b;\n while(a<=n){\n \t b = sc.nextLong();\n \t c = c + b;\n \t if (b > d){\n \t\t d = b;\n \t }else if (b < e){e = b;}\n \t a = a+1;\n }\n System.out.println(e + \" \" + d + \" \" + c);\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long a,b,c,d,e;\n a=2;\n b = sc.nextLong();\n c = b;\n d = b;\n e = b;\n while(a<=n){\n \t b = sc.nextLong();\n \t c = c + b;\n \t if (b > d){\n \t\t d = b;\n \t }else if (b < e){e = b;}\n \t a = a+1;\n }\n System.out.println(e + \" \" + d + \" \" + c);\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long a,b,c,d,e;\n a=2;\n b = sc.nextLong();\n c = b;\n d = b;\n e = b;\n while(a<=n){\n \t b = sc.nextLong();\n \t c = c + b;\n \t if (b > d){\n \t\t d = b;\n \t }else if (b < e){e = b;}\n \t a = a+1;\n }\n System.out.println(e + \" \" + d + \" \" + c);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long a",
"a",
"b",
"b",
"c",
"c",
"d",
"d",
"e;",
"e",
"a=2",
"a",
"2",
"b = sc.nextLong()",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"c = b",
"c",
"b",
"d = b",
"d",
"b",
"e = b",
"e",
"b",
"while(a<=n){\n \t b = sc.nextLong();\n \t c = c + b;\n \t if (b > d){\n \t\t d = b;\n \t }else if (b < e){e = b;}\n \t a = a+1;\n }",
"a<=n",
"a",
"n",
"{\n \t b = sc.nextLong();\n \t c = c + b;\n \t if (b > d){\n \t\t d = b;\n \t }else if (b < e){e = b;}\n \t a = a+1;\n }",
"b = sc.nextLong()",
"b",
"sc.nextLong()",
"sc.nextLong",
"sc",
"c = c + b",
"c",
"c + b",
"c",
"b",
"if (b > d){\n \t\t d = b;\n \t }else if (b < e){e = b;}",
"b > d",
"b",
"d",
"{\n \t\t d = b;\n \t }",
"d = b",
"d",
"b",
"if (b < e){e = b;}",
"b < e",
"b",
"e",
"{e = b;}",
"e = b",
"e",
"b",
"a = a+1",
"a",
"a+1",
"a",
"1",
"System.out.println(e + \" \" + d + \" \" + c)",
"System.out.println",
"System.out",
"System",
"System.out",
"e + \" \" + d + \" \" + c",
"\" \"",
"d",
"e + \" \" + d + \" \" + c",
"e",
"\" \"",
"d",
"\" \"",
"c",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long a,b,c,d,e;\n a=2;\n b = sc.nextLong();\n c = b;\n d = b;\n e = b;\n while(a<=n){\n \t b = sc.nextLong();\n \t c = c + b;\n \t if (b > d){\n \t\t d = b;\n \t }else if (b < e){e = b;}\n \t a = a+1;\n }\n System.out.println(e + \" \" + d + \" \" + c);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long a,b,c,d,e;\n a=2;\n b = sc.nextLong();\n c = b;\n d = b;\n e = b;\n while(a<=n){\n \t b = sc.nextLong();\n \t c = c + b;\n \t if (b > d){\n \t\t d = b;\n \t }else if (b < e){e = b;}\n \t a = a+1;\n }\n System.out.println(e + \" \" + d + \" \" + c);\n\t}\n\n}",
"Main"
] | import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
// TODO ?????????????????????????????????????????????
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
long a,b,c,d,e;
a=2;
b = sc.nextLong();
c = b;
d = b;
e = b;
while(a<=n){
b = sc.nextLong();
c = c + b;
if (b > d){
d = b;
}else if (b < e){e = b;}
a = a+1;
}
System.out.println(e + " " + d + " " + c);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
18,
13,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
18,
13,
17,
17,
18,
13,
2,
13,
17,
17,
13,
23,
13,
6,
13,
41,
13,
41,
13,
17,
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,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
4,
18,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
149,
20
],
[
149,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
23,
32
],
[
32,
33
],
[
32,
34
],
[
23,
36
],
[
36,
37
],
[
36,
38
],
[
23,
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
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
51,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
23,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
23,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
76,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
75,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
74,
86
],
[
76,
87
],
[
21,
88
],
[
88,
89
],
[
0,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
90,
94
],
[
94,
95
],
[
94,
96
],
[
90,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
97,
103
],
[
103,
104
],
[
90,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
108,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
107,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
90,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
128,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
127,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
142,
145
],
[
145,
146
],
[
146,
147
],
[
0,
148
],
[
148,
149
],
[
148,
150
]
] | [
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tInputReader in = new InputReader(System.in);\n\t\t\n\t\tint n = in.readInt();\n\t\t\n\t\tint[] aArray = new int[n];\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\taArray[i] = in.readInt();\n\t\t\tsum += aArray[i];\n\t\t}\n\t\tArrays.sort(aArray);\n\t\t\n\t\tSystem.out.println(aArray[0] + \" \" + aArray[n - 1] + \" \" + sum);\t\t\n\t}\n}\nclass InputReader{\n\tprivate BufferedReader br;\n\tprivate StringTokenizer buffer = null;\t\n\t\n\tpublic InputReader(InputStream in) {\n\t\tbr = new BufferedReader(new InputStreamReader(in));\t\t\t\t\n\t}\n\n\tpublic String read() throws IOException {\n\t\twhile(buffer == null || !buffer.hasMoreTokens()) {\n\t\t\tbuffer = new StringTokenizer(br.readLine());\n\t\t}\n\t\treturn buffer.nextToken();\n\t}\n\t\n\tpublic int readInt() throws IOException {\n\t\twhile(buffer == null || !buffer.hasMoreTokens()) {\n\t\t\tbuffer = new StringTokenizer(br.readLine());\n\t\t}\n\t\treturn Integer.parseInt(buffer.nextToken());\n\t}\n\t\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.Arrays;",
"Arrays",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tInputReader in = new InputReader(System.in);\n\t\t\n\t\tint n = in.readInt();\n\t\t\n\t\tint[] aArray = new int[n];\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\taArray[i] = in.readInt();\n\t\t\tsum += aArray[i];\n\t\t}\n\t\tArrays.sort(aArray);\n\t\t\n\t\tSystem.out.println(aArray[0] + \" \" + aArray[n - 1] + \" \" + sum);\t\t\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException{\n\t\tInputReader in = new InputReader(System.in);\n\t\t\n\t\tint n = in.readInt();\n\t\t\n\t\tint[] aArray = new int[n];\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\taArray[i] = in.readInt();\n\t\t\tsum += aArray[i];\n\t\t}\n\t\tArrays.sort(aArray);\n\t\t\n\t\tSystem.out.println(aArray[0] + \" \" + aArray[n - 1] + \" \" + sum);\t\t\n\t}",
"main",
"{\n\t\tInputReader in = new InputReader(System.in);\n\t\t\n\t\tint n = in.readInt();\n\t\t\n\t\tint[] aArray = new int[n];\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\taArray[i] = in.readInt();\n\t\t\tsum += aArray[i];\n\t\t}\n\t\tArrays.sort(aArray);\n\t\t\n\t\tSystem.out.println(aArray[0] + \" \" + aArray[n - 1] + \" \" + sum);\t\t\n\t}",
"InputReader in = new InputReader(System.in);",
"in",
"new InputReader(System.in)",
"int n = in.readInt();",
"n",
"in.readInt()",
"in.readInt",
"in",
"int[] aArray = new int[n];",
"aArray",
"new int[n]",
"n",
"long sum = 0;",
"sum",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\taArray[i] = in.readInt();\n\t\t\tsum += aArray[i];\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\taArray[i] = in.readInt();\n\t\t\tsum += aArray[i];\n\t\t}",
"{\n\t\t\taArray[i] = in.readInt();\n\t\t\tsum += aArray[i];\n\t\t}",
"aArray[i] = in.readInt()",
"aArray[i]",
"aArray",
"i",
"in.readInt()",
"in.readInt",
"in",
"sum += aArray[i]",
"sum",
"aArray[i]",
"aArray",
"i",
"Arrays.sort(aArray)",
"Arrays.sort",
"Arrays",
"aArray",
"System.out.println(aArray[0] + \" \" + aArray[n - 1] + \" \" + sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"aArray[0] + \" \" + aArray[n - 1] + \" \" + sum",
"\" \"",
"aArray[n - 1]",
"aArray[0] + \" \" + aArray[n - 1] + \" \" + sum",
"aArray[0]",
"aArray",
"0",
"\" \"",
"aArray[n - 1]",
"aArray",
"n - 1",
"n",
"1",
"\" \"",
"sum",
"String[] args",
"args",
"class InputReader{\n\tprivate BufferedReader br;\n\tprivate StringTokenizer buffer = null;\t\n\t\n\tpublic InputReader(InputStream in) {\n\t\tbr = new BufferedReader(new InputStreamReader(in));\t\t\t\t\n\t}\n\n\tpublic String read() throws IOException {\n\t\twhile(buffer == null || !buffer.hasMoreTokens()) {\n\t\t\tbuffer = new StringTokenizer(br.readLine());\n\t\t}\n\t\treturn buffer.nextToken();\n\t}\n\t\n\tpublic int readInt() throws IOException {\n\t\twhile(buffer == null || !buffer.hasMoreTokens()) {\n\t\t\tbuffer = new StringTokenizer(br.readLine());\n\t\t}\n\t\treturn Integer.parseInt(buffer.nextToken());\n\t}\n\t\n}",
"InputReader",
"private BufferedReader br;",
"br",
"private StringTokenizer buffer = null;",
"buffer",
"null",
"public InputReader(InputStream in) {\n\t\tbr = new BufferedReader(new InputStreamReader(in));\t\t\t\t\n\t}",
"InputReader",
"{\n\t\tbr = new BufferedReader(new InputStreamReader(in));\t\t\t\t\n\t}",
"br = new BufferedReader(new InputStreamReader(in))",
"br",
"new BufferedReader(new InputStreamReader(in))",
"InputStream in",
"in",
"public String read() throws IOException {\n\t\twhile(buffer == null || !buffer.hasMoreTokens()) {\n\t\t\tbuffer = new StringTokenizer(br.readLine());\n\t\t}\n\t\treturn buffer.nextToken();\n\t}",
"read",
"{\n\t\twhile(buffer == null || !buffer.hasMoreTokens()) {\n\t\t\tbuffer = new StringTokenizer(br.readLine());\n\t\t}\n\t\treturn buffer.nextToken();\n\t}",
"while(buffer == null || !buffer.hasMoreTokens()) {\n\t\t\tbuffer = new StringTokenizer(br.readLine());\n\t\t}",
"buffer == null || !buffer.hasMoreTokens()",
"buffer == null",
"buffer",
"null",
"!buffer.hasMoreTokens()",
"buffer.hasMoreTokens()",
"buffer.hasMoreTokens",
"buffer",
"{\n\t\t\tbuffer = new StringTokenizer(br.readLine());\n\t\t}",
"buffer = new StringTokenizer(br.readLine())",
"buffer",
"new StringTokenizer(br.readLine())",
"return buffer.nextToken();",
"buffer.nextToken()",
"buffer.nextToken",
"buffer",
"public int readInt() throws IOException {\n\t\twhile(buffer == null || !buffer.hasMoreTokens()) {\n\t\t\tbuffer = new StringTokenizer(br.readLine());\n\t\t}\n\t\treturn Integer.parseInt(buffer.nextToken());\n\t}",
"readInt",
"{\n\t\twhile(buffer == null || !buffer.hasMoreTokens()) {\n\t\t\tbuffer = new StringTokenizer(br.readLine());\n\t\t}\n\t\treturn Integer.parseInt(buffer.nextToken());\n\t}",
"while(buffer == null || !buffer.hasMoreTokens()) {\n\t\t\tbuffer = new StringTokenizer(br.readLine());\n\t\t}",
"buffer == null || !buffer.hasMoreTokens()",
"buffer == null",
"buffer",
"null",
"!buffer.hasMoreTokens()",
"buffer.hasMoreTokens()",
"buffer.hasMoreTokens",
"buffer",
"{\n\t\t\tbuffer = new StringTokenizer(br.readLine());\n\t\t}",
"buffer = new StringTokenizer(br.readLine())",
"buffer",
"new StringTokenizer(br.readLine())",
"return Integer.parseInt(buffer.nextToken());",
"Integer.parseInt(buffer.nextToken())",
"Integer.parseInt",
"Integer",
"buffer.nextToken()",
"buffer.nextToken",
"buffer",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tInputReader in = new InputReader(System.in);\n\t\t\n\t\tint n = in.readInt();\n\t\t\n\t\tint[] aArray = new int[n];\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\taArray[i] = in.readInt();\n\t\t\tsum += aArray[i];\n\t\t}\n\t\tArrays.sort(aArray);\n\t\t\n\t\tSystem.out.println(aArray[0] + \" \" + aArray[n - 1] + \" \" + sum);\t\t\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tInputReader in = new InputReader(System.in);\n\t\t\n\t\tint n = in.readInt();\n\t\t\n\t\tint[] aArray = new int[n];\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\taArray[i] = in.readInt();\n\t\t\tsum += aArray[i];\n\t\t}\n\t\tArrays.sort(aArray);\n\t\t\n\t\tSystem.out.println(aArray[0] + \" \" + aArray[n - 1] + \" \" + sum);\t\t\n\t}\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) throws IOException{
InputReader in = new InputReader(System.in);
int n = in.readInt();
int[] aArray = new int[n];
long sum = 0;
for (int i = 0; i < n; i++) {
aArray[i] = in.readInt();
sum += aArray[i];
}
Arrays.sort(aArray);
System.out.println(aArray[0] + " " + aArray[n - 1] + " " + sum);
}
}
class InputReader{
private BufferedReader br;
private StringTokenizer buffer = null;
public InputReader(InputStream in) {
br = new BufferedReader(new InputStreamReader(in));
}
public String read() throws IOException {
while(buffer == null || !buffer.hasMoreTokens()) {
buffer = new StringTokenizer(br.readLine());
}
return buffer.nextToken();
}
public int readInt() throws IOException {
while(buffer == null || !buffer.hasMoreTokens()) {
buffer = new StringTokenizer(br.readLine());
}
return Integer.parseInt(buffer.nextToken());
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
40,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
4,
18,
13,
11,
1,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
13,
0,
13,
4,
18,
13,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
36,
37
],
[
30,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
39,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
47,
51
],
[
39,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
54,
58
],
[
39,
59
],
[
59,
60
],
[
59,
61
],
[
8,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
70,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
70,
75
],
[
6,
76
],
[
76,
77
]
] | [
"import java.util.*;\n\nclass Main{\n public static void main(String[] args){\n \tScanner sc= new Scanner(System.in);\n \tint max=-1000000,min=1000000,get=0;\n \tlong sum=0;\n \tint i=sc.nextInt();\n \tfor(;i>0;i--){\n \t\tget=sc.nextInt();\n \t\tmax=Math.max(max, get);\n \t\tmin=Math.min(min, get);\n \t\tsum+=get;\n \t}\n \tSystem.out.println(min+\" \"+max+\" \"+sum);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n public static void main(String[] args){\n \tScanner sc= new Scanner(System.in);\n \tint max=-1000000,min=1000000,get=0;\n \tlong sum=0;\n \tint i=sc.nextInt();\n \tfor(;i>0;i--){\n \t\tget=sc.nextInt();\n \t\tmax=Math.max(max, get);\n \t\tmin=Math.min(min, get);\n \t\tsum+=get;\n \t}\n \tSystem.out.println(min+\" \"+max+\" \"+sum);\n }\n}",
"Main",
"public static void main(String[] args){\n \tScanner sc= new Scanner(System.in);\n \tint max=-1000000,min=1000000,get=0;\n \tlong sum=0;\n \tint i=sc.nextInt();\n \tfor(;i>0;i--){\n \t\tget=sc.nextInt();\n \t\tmax=Math.max(max, get);\n \t\tmin=Math.min(min, get);\n \t\tsum+=get;\n \t}\n \tSystem.out.println(min+\" \"+max+\" \"+sum);\n }",
"main",
"{\n \tScanner sc= new Scanner(System.in);\n \tint max=-1000000,min=1000000,get=0;\n \tlong sum=0;\n \tint i=sc.nextInt();\n \tfor(;i>0;i--){\n \t\tget=sc.nextInt();\n \t\tmax=Math.max(max, get);\n \t\tmin=Math.min(min, get);\n \t\tsum+=get;\n \t}\n \tSystem.out.println(min+\" \"+max+\" \"+sum);\n }",
"Scanner sc= new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int max=-1000000",
"max",
"-1000000",
"1000000",
"min=1000000",
"min",
"1000000",
"get=0;",
"get",
"0",
"long sum=0;",
"sum",
"0",
"int i=sc.nextInt();",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(;i>0;i--){\n \t\tget=sc.nextInt();\n \t\tmax=Math.max(max, get);\n \t\tmin=Math.min(min, get);\n \t\tsum+=get;\n \t}",
";",
"i>0",
"i",
"0",
"i--",
"i--",
"i",
"{\n \t\tget=sc.nextInt();\n \t\tmax=Math.max(max, get);\n \t\tmin=Math.min(min, get);\n \t\tsum+=get;\n \t}",
"{\n \t\tget=sc.nextInt();\n \t\tmax=Math.max(max, get);\n \t\tmin=Math.min(min, get);\n \t\tsum+=get;\n \t}",
"get=sc.nextInt()",
"get",
"sc.nextInt()",
"sc.nextInt",
"sc",
"max=Math.max(max, get)",
"max",
"Math.max(max, get)",
"Math.max",
"Math",
"max",
"get",
"min=Math.min(min, get)",
"min",
"Math.min(min, get)",
"Math.min",
"Math",
"min",
"get",
"sum+=get",
"sum",
"get",
"System.out.println(min+\" \"+max+\" \"+sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min+\" \"+max+\" \"+sum",
"\" \"",
"max",
"min+\" \"+max+\" \"+sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args"
] | import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc= new Scanner(System.in);
int max=-1000000,min=1000000,get=0;
long sum=0;
int i=sc.nextInt();
for(;i>0;i--){
get=sc.nextInt();
max=Math.max(max, get);
min=Math.min(min, get);
sum+=get;
}
System.out.println(min+" "+max+" "+sum);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
4,
18,
13,
18,
13,
13,
41,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
4,
18,
13,
18,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
18,
13,
13,
4,
18,
18,
13,
13,
17,
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
],
[
130,
11
],
[
130,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
28,
33
],
[
14,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
36,
38
],
[
14,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
61,
63
],
[
14,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
66,
68
],
[
14,
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
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
84,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
91,
92
],
[
91,
93
],
[
14,
94
],
[
94,
95
],
[
94,
96
],
[
14,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
97,
105
],
[
105,
106
],
[
106,
107
],
[
97,
108
],
[
109,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
115,
116
],
[
115,
117
],
[
14,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
118,
124
],
[
118,
125
],
[
118,
126
],
[
12,
127
],
[
127,
128
],
[
0,
129
],
[
129,
130
],
[
129,
131
]
] | [
"import java.io.IOException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n String line[] = br.readLine().split(\" \");\n //int intArray[] = new int[n];\n /*for (int i=0; i<n; i++){\n intArray[i] = Integer.parseInt(line[i]);\n }\n */\n int mi = Integer.MAX_VALUE;\n for (int i=0; i<n; i++){\n mi = Math.min(mi,Integer.parseInt(line[i]));\n }\n \n int ma = Integer.MIN_VALUE;\n for (int i=0; i<n; i++){\n ma = Math.max(ma,Integer.parseInt(line[i]));\n }\n \n long sum = 0;\n for (int i=0; i<n; i++){\n sum += Long.parseLong(line[i]);\n }\n System.out.printf(\"%s %s %s\\n\", mi , ma, sum);\n }\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n String line[] = br.readLine().split(\" \");\n //int intArray[] = new int[n];\n /*for (int i=0; i<n; i++){\n intArray[i] = Integer.parseInt(line[i]);\n }\n */\n int mi = Integer.MAX_VALUE;\n for (int i=0; i<n; i++){\n mi = Math.min(mi,Integer.parseInt(line[i]));\n }\n \n int ma = Integer.MIN_VALUE;\n for (int i=0; i<n; i++){\n ma = Math.max(ma,Integer.parseInt(line[i]));\n }\n \n long sum = 0;\n for (int i=0; i<n; i++){\n sum += Long.parseLong(line[i]);\n }\n System.out.printf(\"%s %s %s\\n\", mi , ma, sum);\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n String line[] = br.readLine().split(\" \");\n //int intArray[] = new int[n];\n /*for (int i=0; i<n; i++){\n intArray[i] = Integer.parseInt(line[i]);\n }\n */\n int mi = Integer.MAX_VALUE;\n for (int i=0; i<n; i++){\n mi = Math.min(mi,Integer.parseInt(line[i]));\n }\n \n int ma = Integer.MIN_VALUE;\n for (int i=0; i<n; i++){\n ma = Math.max(ma,Integer.parseInt(line[i]));\n }\n \n long sum = 0;\n for (int i=0; i<n; i++){\n sum += Long.parseLong(line[i]);\n }\n System.out.printf(\"%s %s %s\\n\", mi , ma, sum);\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n String line[] = br.readLine().split(\" \");\n //int intArray[] = new int[n];\n /*for (int i=0; i<n; i++){\n intArray[i] = Integer.parseInt(line[i]);\n }\n */\n int mi = Integer.MAX_VALUE;\n for (int i=0; i<n; i++){\n mi = Math.min(mi,Integer.parseInt(line[i]));\n }\n \n int ma = Integer.MIN_VALUE;\n for (int i=0; i<n; i++){\n ma = Math.max(ma,Integer.parseInt(line[i]));\n }\n \n long sum = 0;\n for (int i=0; i<n; i++){\n sum += Long.parseLong(line[i]);\n }\n System.out.printf(\"%s %s %s\\n\", mi , ma, sum);\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String line[] = br.readLine().split(\" \");",
"line",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int mi = Integer.MAX_VALUE;",
"mi",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"for (int i=0; i<n; i++){\n mi = Math.min(mi,Integer.parseInt(line[i]));\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n mi = Math.min(mi,Integer.parseInt(line[i]));\n }",
"{\n mi = Math.min(mi,Integer.parseInt(line[i]));\n }",
"mi = Math.min(mi,Integer.parseInt(line[i]))",
"mi",
"Math.min(mi,Integer.parseInt(line[i]))",
"Math.min",
"Math",
"mi",
"Integer.parseInt(line[i])",
"Integer.parseInt",
"Integer",
"line[i]",
"line",
"i",
"int ma = Integer.MIN_VALUE;",
"ma",
"Integer.MIN_VALUE",
"Integer",
"Integer.MIN_VALUE",
"for (int i=0; i<n; i++){\n ma = Math.max(ma,Integer.parseInt(line[i]));\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n ma = Math.max(ma,Integer.parseInt(line[i]));\n }",
"{\n ma = Math.max(ma,Integer.parseInt(line[i]));\n }",
"ma = Math.max(ma,Integer.parseInt(line[i]))",
"ma",
"Math.max(ma,Integer.parseInt(line[i]))",
"Math.max",
"Math",
"ma",
"Integer.parseInt(line[i])",
"Integer.parseInt",
"Integer",
"line[i]",
"line",
"i",
"long sum = 0;",
"sum",
"0",
"for (int i=0; i<n; i++){\n sum += Long.parseLong(line[i]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n sum += Long.parseLong(line[i]);\n }",
"{\n sum += Long.parseLong(line[i]);\n }",
"sum += Long.parseLong(line[i])",
"sum",
"Long.parseLong(line[i])",
"Long.parseLong",
"Long",
"line[i]",
"line",
"i",
"System.out.printf(\"%s %s %s\\n\", mi , ma, sum)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%s %s %s\\n\"",
"mi",
"ma",
"sum",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n String line[] = br.readLine().split(\" \");\n //int intArray[] = new int[n];\n /*for (int i=0; i<n; i++){\n intArray[i] = Integer.parseInt(line[i]);\n }\n */\n int mi = Integer.MAX_VALUE;\n for (int i=0; i<n; i++){\n mi = Math.min(mi,Integer.parseInt(line[i]));\n }\n \n int ma = Integer.MIN_VALUE;\n for (int i=0; i<n; i++){\n ma = Math.max(ma,Integer.parseInt(line[i]));\n }\n \n long sum = 0;\n for (int i=0; i<n; i++){\n sum += Long.parseLong(line[i]);\n }\n System.out.printf(\"%s %s %s\\n\", mi , ma, sum);\n }\n}",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n String line[] = br.readLine().split(\" \");\n //int intArray[] = new int[n];\n /*for (int i=0; i<n; i++){\n intArray[i] = Integer.parseInt(line[i]);\n }\n */\n int mi = Integer.MAX_VALUE;\n for (int i=0; i<n; i++){\n mi = Math.min(mi,Integer.parseInt(line[i]));\n }\n \n int ma = Integer.MIN_VALUE;\n for (int i=0; i<n; i++){\n ma = Math.max(ma,Integer.parseInt(line[i]));\n }\n \n long sum = 0;\n for (int i=0; i<n; i++){\n sum += Long.parseLong(line[i]);\n }\n System.out.printf(\"%s %s %s\\n\", mi , ma, sum);\n }\n}",
"Main"
] | import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
String line[] = br.readLine().split(" ");
//int intArray[] = new int[n];
/*for (int i=0; i<n; i++){
intArray[i] = Integer.parseInt(line[i]);
}
*/
int mi = Integer.MAX_VALUE;
for (int i=0; i<n; i++){
mi = Math.min(mi,Integer.parseInt(line[i]));
}
int ma = Integer.MIN_VALUE;
for (int i=0; i<n; i++){
ma = Math.max(ma,Integer.parseInt(line[i]));
}
long sum = 0;
for (int i=0; i<n; i++){
sum += Long.parseLong(line[i]);
}
System.out.printf("%s %s %s\n", mi , ma, sum);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
13,
14,
2,
13,
17,
30,
0,
13,
13,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
97,
5
],
[
97,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
47,
49
],
[
41,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
58,
60
],
[
41,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
41,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
8,
77
],
[
77,
78
],
[
78,
79
],
[
8,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
88,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
86,
92
],
[
88,
93
],
[
6,
94
],
[
94,
95
],
[
0,
96
],
[
96,
97
],
[
96,
98
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint intSize = scan.nextInt();\n\t\tint intMin = 0;\n\t\tint intMax = 0;\n\t\tlong longSum = 0;\n\t\tint intTemp = 0;\n\t\tfor(int i = 0; i < intSize; i++){\n\t\t\tintTemp = scan.nextInt();\n\t\t\tlongSum += intTemp;\n\t\t\tif(intMin == 0){\n\t\t\t\tintMin = intTemp;\n\t\t\t\tintMax = intTemp;\n\t\t\t}\n\t\t\tif(intMax < intTemp){\n\t\t\t\tintMax = intTemp;\n\t\t\t}\n\t\t\tif(intTemp < intMin){\n\t\t\t\tintMin = intTemp;\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.println(intMin + \" \" + intMax + \" \" + longSum);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint intSize = scan.nextInt();\n\t\tint intMin = 0;\n\t\tint intMax = 0;\n\t\tlong longSum = 0;\n\t\tint intTemp = 0;\n\t\tfor(int i = 0; i < intSize; i++){\n\t\t\tintTemp = scan.nextInt();\n\t\t\tlongSum += intTemp;\n\t\t\tif(intMin == 0){\n\t\t\t\tintMin = intTemp;\n\t\t\t\tintMax = intTemp;\n\t\t\t}\n\t\t\tif(intMax < intTemp){\n\t\t\t\tintMax = intTemp;\n\t\t\t}\n\t\t\tif(intTemp < intMin){\n\t\t\t\tintMin = intTemp;\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.println(intMin + \" \" + intMax + \" \" + longSum);\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint intSize = scan.nextInt();\n\t\tint intMin = 0;\n\t\tint intMax = 0;\n\t\tlong longSum = 0;\n\t\tint intTemp = 0;\n\t\tfor(int i = 0; i < intSize; i++){\n\t\t\tintTemp = scan.nextInt();\n\t\t\tlongSum += intTemp;\n\t\t\tif(intMin == 0){\n\t\t\t\tintMin = intTemp;\n\t\t\t\tintMax = intTemp;\n\t\t\t}\n\t\t\tif(intMax < intTemp){\n\t\t\t\tintMax = intTemp;\n\t\t\t}\n\t\t\tif(intTemp < intMin){\n\t\t\t\tintMin = intTemp;\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.println(intMin + \" \" + intMax + \" \" + longSum);\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint intSize = scan.nextInt();\n\t\tint intMin = 0;\n\t\tint intMax = 0;\n\t\tlong longSum = 0;\n\t\tint intTemp = 0;\n\t\tfor(int i = 0; i < intSize; i++){\n\t\t\tintTemp = scan.nextInt();\n\t\t\tlongSum += intTemp;\n\t\t\tif(intMin == 0){\n\t\t\t\tintMin = intTemp;\n\t\t\t\tintMax = intTemp;\n\t\t\t}\n\t\t\tif(intMax < intTemp){\n\t\t\t\tintMax = intTemp;\n\t\t\t}\n\t\t\tif(intTemp < intMin){\n\t\t\t\tintMin = intTemp;\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.println(intMin + \" \" + intMax + \" \" + longSum);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int intSize = scan.nextInt();",
"intSize",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int intMin = 0;",
"intMin",
"0",
"int intMax = 0;",
"intMax",
"0",
"long longSum = 0;",
"longSum",
"0",
"int intTemp = 0;",
"intTemp",
"0",
"for(int i = 0; i < intSize; i++){\n\t\t\tintTemp = scan.nextInt();\n\t\t\tlongSum += intTemp;\n\t\t\tif(intMin == 0){\n\t\t\t\tintMin = intTemp;\n\t\t\t\tintMax = intTemp;\n\t\t\t}\n\t\t\tif(intMax < intTemp){\n\t\t\t\tintMax = intTemp;\n\t\t\t}\n\t\t\tif(intTemp < intMin){\n\t\t\t\tintMin = intTemp;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < intSize",
"i",
"intSize",
"i++",
"i++",
"i",
"{\n\t\t\tintTemp = scan.nextInt();\n\t\t\tlongSum += intTemp;\n\t\t\tif(intMin == 0){\n\t\t\t\tintMin = intTemp;\n\t\t\t\tintMax = intTemp;\n\t\t\t}\n\t\t\tif(intMax < intTemp){\n\t\t\t\tintMax = intTemp;\n\t\t\t}\n\t\t\tif(intTemp < intMin){\n\t\t\t\tintMin = intTemp;\n\t\t\t}\n\t\t}",
"{\n\t\t\tintTemp = scan.nextInt();\n\t\t\tlongSum += intTemp;\n\t\t\tif(intMin == 0){\n\t\t\t\tintMin = intTemp;\n\t\t\t\tintMax = intTemp;\n\t\t\t}\n\t\t\tif(intMax < intTemp){\n\t\t\t\tintMax = intTemp;\n\t\t\t}\n\t\t\tif(intTemp < intMin){\n\t\t\t\tintMin = intTemp;\n\t\t\t}\n\t\t}",
"intTemp = scan.nextInt()",
"intTemp",
"scan.nextInt()",
"scan.nextInt",
"scan",
"longSum += intTemp",
"longSum",
"intTemp",
"if(intMin == 0){\n\t\t\t\tintMin = intTemp;\n\t\t\t\tintMax = intTemp;\n\t\t\t}",
"intMin == 0",
"intMin",
"0",
"{\n\t\t\t\tintMin = intTemp;\n\t\t\t\tintMax = intTemp;\n\t\t\t}",
"intMin = intTemp",
"intMin",
"intTemp",
"intMax = intTemp",
"intMax",
"intTemp",
"if(intMax < intTemp){\n\t\t\t\tintMax = intTemp;\n\t\t\t}",
"intMax < intTemp",
"intMax",
"intTemp",
"{\n\t\t\t\tintMax = intTemp;\n\t\t\t}",
"intMax = intTemp",
"intMax",
"intTemp",
"if(intTemp < intMin){\n\t\t\t\tintMin = intTemp;\n\t\t\t}",
"intTemp < intMin",
"intTemp",
"intMin",
"{\n\t\t\t\tintMin = intTemp;\n\t\t\t}",
"intMin = intTemp",
"intMin",
"intTemp",
"scan.close()",
"scan.close",
"scan",
"System.out.println(intMin + \" \" + intMax + \" \" + longSum)",
"System.out.println",
"System.out",
"System",
"System.out",
"intMin + \" \" + intMax + \" \" + longSum",
"\" \"",
"intMax",
"intMin + \" \" + intMax + \" \" + longSum",
"intMin",
"\" \"",
"intMax",
"\" \"",
"longSum",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint intSize = scan.nextInt();\n\t\tint intMin = 0;\n\t\tint intMax = 0;\n\t\tlong longSum = 0;\n\t\tint intTemp = 0;\n\t\tfor(int i = 0; i < intSize; i++){\n\t\t\tintTemp = scan.nextInt();\n\t\t\tlongSum += intTemp;\n\t\t\tif(intMin == 0){\n\t\t\t\tintMin = intTemp;\n\t\t\t\tintMax = intTemp;\n\t\t\t}\n\t\t\tif(intMax < intTemp){\n\t\t\t\tintMax = intTemp;\n\t\t\t}\n\t\t\tif(intTemp < intMin){\n\t\t\t\tintMin = intTemp;\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.println(intMin + \" \" + intMax + \" \" + longSum);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint intSize = scan.nextInt();\n\t\tint intMin = 0;\n\t\tint intMax = 0;\n\t\tlong longSum = 0;\n\t\tint intTemp = 0;\n\t\tfor(int i = 0; i < intSize; i++){\n\t\t\tintTemp = scan.nextInt();\n\t\t\tlongSum += intTemp;\n\t\t\tif(intMin == 0){\n\t\t\t\tintMin = intTemp;\n\t\t\t\tintMax = intTemp;\n\t\t\t}\n\t\t\tif(intMax < intTemp){\n\t\t\t\tintMax = intTemp;\n\t\t\t}\n\t\t\tif(intTemp < intMin){\n\t\t\t\tintMin = intTemp;\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.println(intMin + \" \" + intMax + \" \" + longSum);\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int intSize = scan.nextInt();
int intMin = 0;
int intMax = 0;
long longSum = 0;
int intTemp = 0;
for(int i = 0; i < intSize; i++){
intTemp = scan.nextInt();
longSum += intTemp;
if(intMin == 0){
intMin = intTemp;
intMax = intTemp;
}
if(intMax < intTemp){
intMax = intTemp;
}
if(intTemp < intMin){
intMin = intTemp;
}
}
scan.close();
System.out.println(intMin + " " + intMax + " " + longSum);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
13,
0,
13,
4,
18,
13,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
91,
8
],
[
91,
9
],
[
9,
10
],
[
9,
11
],
[
91,
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
],
[
25,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
30,
32
],
[
14,
33
],
[
33,
34
],
[
33,
35
],
[
14,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
48,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
56,
60
],
[
48,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
63,
67
],
[
48,
68
],
[
68,
69
],
[
68,
70
],
[
14,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
79,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
77,
83
],
[
79,
84
],
[
14,
85
],
[
85,
86
],
[
86,
87
],
[
12,
88
],
[
88,
89
],
[
0,
90
],
[
90,
91
],
[
90,
92
]
] | [
"import java.text.DecimalFormat;\nimport java.util.Scanner;\n\npublic class Main {\n\t\n\tstatic DecimalFormat df = new DecimalFormat(\"0.0000000000000000000\");\n\t\n\tpublic static void main (String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt(), min = Integer.MAX_VALUE, max = Integer.MIN_VALUE;\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tmin = Math.min(min, a);\n\t\t\tmax = Math.max(max, a);\n\t\t\tsum += a;\n\t\t}\n\t\t\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t\n\t\tsc.close();\n\t}\n\n}",
"import java.text.DecimalFormat;",
"DecimalFormat",
"java.text",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\t\n\tstatic DecimalFormat df = new DecimalFormat(\"0.0000000000000000000\");\n\t\n\tpublic static void main (String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt(), min = Integer.MAX_VALUE, max = Integer.MIN_VALUE;\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tmin = Math.min(min, a);\n\t\t\tmax = Math.max(max, a);\n\t\t\tsum += a;\n\t\t}\n\t\t\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t\n\t\tsc.close();\n\t}\n\n}",
"Main",
"static DecimalFormat df = new DecimalFormat(\"0.0000000000000000000\");",
"df",
"new DecimalFormat(\"0.0000000000000000000\")",
"public static void main (String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt(), min = Integer.MAX_VALUE, max = Integer.MIN_VALUE;\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tmin = Math.min(min, a);\n\t\t\tmax = Math.max(max, a);\n\t\t\tsum += a;\n\t\t}\n\t\t\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t\n\t\tsc.close();\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt(), min = Integer.MAX_VALUE, max = Integer.MIN_VALUE;\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tmin = Math.min(min, a);\n\t\t\tmax = Math.max(max, a);\n\t\t\tsum += a;\n\t\t}\n\t\t\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"min = Integer.MAX_VALUE",
"min",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"max = Integer.MIN_VALUE;",
"max",
"Integer.MIN_VALUE",
"Integer",
"Integer.MIN_VALUE",
"long sum = 0;",
"sum",
"0",
"for (int i = 0; i < n; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tmin = Math.min(min, a);\n\t\t\tmax = Math.max(max, a);\n\t\t\tsum += a;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint a = sc.nextInt();\n\t\t\tmin = Math.min(min, a);\n\t\t\tmax = Math.max(max, a);\n\t\t\tsum += a;\n\t\t}",
"{\n\t\t\tint a = sc.nextInt();\n\t\t\tmin = Math.min(min, a);\n\t\t\tmax = Math.max(max, a);\n\t\t\tsum += a;\n\t\t}",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"min = Math.min(min, a)",
"min",
"Math.min(min, a)",
"Math.min",
"Math",
"min",
"a",
"max = Math.max(max, a)",
"max",
"Math.max(max, a)",
"Math.max",
"Math",
"max",
"a",
"sum += a",
"sum",
"a",
"System.out.println(min + \" \" + max + \" \" + sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min + \" \" + max + \" \" + sum",
"\" \"",
"max",
"min + \" \" + max + \" \" + sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\t\n\tstatic DecimalFormat df = new DecimalFormat(\"0.0000000000000000000\");\n\t\n\tpublic static void main (String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt(), min = Integer.MAX_VALUE, max = Integer.MIN_VALUE;\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tmin = Math.min(min, a);\n\t\t\tmax = Math.max(max, a);\n\t\t\tsum += a;\n\t\t}\n\t\t\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t\n\t\tsc.close();\n\t}\n\n}",
"public class Main {\n\t\n\tstatic DecimalFormat df = new DecimalFormat(\"0.0000000000000000000\");\n\t\n\tpublic static void main (String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt(), min = Integer.MAX_VALUE, max = Integer.MIN_VALUE;\n\t\tlong sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tmin = Math.min(min, a);\n\t\t\tmax = Math.max(max, a);\n\t\t\tsum += a;\n\t\t}\n\t\t\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t\t\n\t\tsc.close();\n\t}\n\n}",
"Main"
] | import java.text.DecimalFormat;
import java.util.Scanner;
public class Main {
static DecimalFormat df = new DecimalFormat("0.0000000000000000000");
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt(), min = Integer.MAX_VALUE, max = Integer.MIN_VALUE;
long sum = 0;
for (int i = 0; i < n; i++) {
int a = sc.nextInt();
min = Math.min(min, a);
max = Math.max(max, a);
sum += a;
}
System.out.println(min + " " + max + " " + sum);
sc.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
17,
41,
13,
40,
17,
41,
13,
17,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
18,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
28,
33
],
[
14,
34
],
[
34,
35
],
[
34,
36
],
[
14,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
14,
41
],
[
41,
42
],
[
41,
43
],
[
14,
44
],
[
44,
45
],
[
14,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
46,
54
],
[
54,
55
],
[
55,
56
],
[
46,
57
],
[
58,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
64,
65
],
[
64,
66
],
[
58,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
58,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
58,
83
],
[
83,
84
],
[
83,
85
],
[
14,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
94,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
92,
98
],
[
94,
99
],
[
12,
100
],
[
100,
101
]
] | [
"//Computation - Min, Max and Sum\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t int n =Integer.parseInt(in.readLine());\n\t\t String[] a = in.readLine().split(\" \");\n\n//\t\tint n = Integer.parseInt(\"10000\");\n\n\t\tint min = 1000000;\n\t\tint max = -1000000;\n\t\tlong sum = 0;\n\n\t\tint ai;\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tai = Integer.parseInt(a[i]);\n\n\t\t\tif (ai < min) {\n\t\t\t\tmin = ai;\n\t\t\t}\n\n\t\t\tif (ai > max) {\n\t\t\t\tmax = ai;\n\t\t\t}\n\n\t\t\tsum += ai;\n\n\t\t}\n\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t int n =Integer.parseInt(in.readLine());\n\t\t String[] a = in.readLine().split(\" \");\n\n//\t\tint n = Integer.parseInt(\"10000\");\n\n\t\tint min = 1000000;\n\t\tint max = -1000000;\n\t\tlong sum = 0;\n\n\t\tint ai;\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tai = Integer.parseInt(a[i]);\n\n\t\t\tif (ai < min) {\n\t\t\t\tmin = ai;\n\t\t\t}\n\n\t\t\tif (ai > max) {\n\t\t\t\tmax = ai;\n\t\t\t}\n\n\t\t\tsum += ai;\n\n\t\t}\n\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t int n =Integer.parseInt(in.readLine());\n\t\t String[] a = in.readLine().split(\" \");\n\n//\t\tint n = Integer.parseInt(\"10000\");\n\n\t\tint min = 1000000;\n\t\tint max = -1000000;\n\t\tlong sum = 0;\n\n\t\tint ai;\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tai = Integer.parseInt(a[i]);\n\n\t\t\tif (ai < min) {\n\t\t\t\tmin = ai;\n\t\t\t}\n\n\t\t\tif (ai > max) {\n\t\t\t\tmax = ai;\n\t\t\t}\n\n\t\t\tsum += ai;\n\n\t\t}\n\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\n\t}",
"main",
"{\n\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t int n =Integer.parseInt(in.readLine());\n\t\t String[] a = in.readLine().split(\" \");\n\n//\t\tint n = Integer.parseInt(\"10000\");\n\n\t\tint min = 1000000;\n\t\tint max = -1000000;\n\t\tlong sum = 0;\n\n\t\tint ai;\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tai = Integer.parseInt(a[i]);\n\n\t\t\tif (ai < min) {\n\t\t\t\tmin = ai;\n\t\t\t}\n\n\t\t\tif (ai > max) {\n\t\t\t\tmax = ai;\n\t\t\t}\n\n\t\t\tsum += ai;\n\n\t\t}\n\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\n\t}",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"int n =Integer.parseInt(in.readLine());",
"n",
"Integer.parseInt(in.readLine())",
"Integer.parseInt",
"Integer",
"in.readLine()",
"in.readLine",
"in",
"String[] a = in.readLine().split(\" \");",
"a",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"int min = 1000000;",
"min",
"1000000",
"int max = -1000000;",
"max",
"-1000000",
"1000000",
"long sum = 0;",
"sum",
"0",
"int ai;",
"ai",
"for (int i = 0; i < n; i++) {\n\n\t\t\tai = Integer.parseInt(a[i]);\n\n\t\t\tif (ai < min) {\n\t\t\t\tmin = ai;\n\t\t\t}\n\n\t\t\tif (ai > max) {\n\t\t\t\tmax = ai;\n\t\t\t}\n\n\t\t\tsum += ai;\n\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\n\t\t\tai = Integer.parseInt(a[i]);\n\n\t\t\tif (ai < min) {\n\t\t\t\tmin = ai;\n\t\t\t}\n\n\t\t\tif (ai > max) {\n\t\t\t\tmax = ai;\n\t\t\t}\n\n\t\t\tsum += ai;\n\n\t\t}",
"{\n\n\t\t\tai = Integer.parseInt(a[i]);\n\n\t\t\tif (ai < min) {\n\t\t\t\tmin = ai;\n\t\t\t}\n\n\t\t\tif (ai > max) {\n\t\t\t\tmax = ai;\n\t\t\t}\n\n\t\t\tsum += ai;\n\n\t\t}",
"ai = Integer.parseInt(a[i])",
"ai",
"Integer.parseInt(a[i])",
"Integer.parseInt",
"Integer",
"a[i]",
"a",
"i",
"if (ai < min) {\n\t\t\t\tmin = ai;\n\t\t\t}",
"ai < min",
"ai",
"min",
"{\n\t\t\t\tmin = ai;\n\t\t\t}",
"min = ai",
"min",
"ai",
"if (ai > max) {\n\t\t\t\tmax = ai;\n\t\t\t}",
"ai > max",
"ai",
"max",
"{\n\t\t\t\tmax = ai;\n\t\t\t}",
"max = ai",
"max",
"ai",
"sum += ai",
"sum",
"ai",
"System.out.println(min + \" \" + max + \" \" + sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min + \" \" + max + \" \" + sum",
"\" \"",
"max",
"min + \" \" + max + \" \" + sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args"
] | //Computation - Min, Max and Sum
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int n =Integer.parseInt(in.readLine());
String[] a = in.readLine().split(" ");
// int n = Integer.parseInt("10000");
int min = 1000000;
int max = -1000000;
long sum = 0;
int ai;
for (int i = 0; i < n; i++) {
ai = Integer.parseInt(a[i]);
if (ai < min) {
min = ai;
}
if (ai > max) {
max = ai;
}
sum += ai;
}
System.out.println(min + " " + max + " " + sum);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
17,
30,
41,
13,
17,
41,
13,
17,
41,
13,
40,
17,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
18,
13,
13,
0,
13,
2,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
117,
8
],
[
117,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
12,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
26,
28
],
[
22,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
22,
33
],
[
33,
34
],
[
33,
35
],
[
22,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
22,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
22,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
22,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
22,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
58,
69
],
[
70,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
76,
77
],
[
76,
78
],
[
70,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
81,
83
],
[
70,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
70,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
22,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
108,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
106,
112
],
[
108,
113
],
[
9,
114
],
[
114,
115
],
[
0,
116
],
[
116,
117
],
[
116,
118
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\ntry {\n long sum =0;\n int min =1000000;\n int max =-1000000;\n\t\n\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\n\tString input1 = buf.readLine();\t\n\tint count = Integer.parseInt(input1);\n\t\n\tString input2 = buf.readLine();\n\tString[] strAry = input2.split(\" \");\n\t\n\tfor (int i = 0; i < count; i++) {\n int x = Integer.parseInt(strAry[i]);\n sum = sum + x;\n if(x < min){ min = x;}\n if(x > max){ max = x;}\n\t}\n\tSystem.out.println(min + \" \" + max + \" \" + sum);\n} catch (Exception e) {\n\n\tSystem.out.println(\"????????????\");\n\t\n}\n\t\t }\n }",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\ntry {\n long sum =0;\n int min =1000000;\n int max =-1000000;\n\t\n\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\n\tString input1 = buf.readLine();\t\n\tint count = Integer.parseInt(input1);\n\t\n\tString input2 = buf.readLine();\n\tString[] strAry = input2.split(\" \");\n\t\n\tfor (int i = 0; i < count; i++) {\n int x = Integer.parseInt(strAry[i]);\n sum = sum + x;\n if(x < min){ min = x;}\n if(x > max){ max = x;}\n\t}\n\tSystem.out.println(min + \" \" + max + \" \" + sum);\n} catch (Exception e) {\n\n\tSystem.out.println(\"????????????\");\n\t\n}\n\t\t }\n }",
"Main",
"public static void main(String[] args) throws Exception {\ntry {\n long sum =0;\n int min =1000000;\n int max =-1000000;\n\t\n\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\n\tString input1 = buf.readLine();\t\n\tint count = Integer.parseInt(input1);\n\t\n\tString input2 = buf.readLine();\n\tString[] strAry = input2.split(\" \");\n\t\n\tfor (int i = 0; i < count; i++) {\n int x = Integer.parseInt(strAry[i]);\n sum = sum + x;\n if(x < min){ min = x;}\n if(x > max){ max = x;}\n\t}\n\tSystem.out.println(min + \" \" + max + \" \" + sum);\n} catch (Exception e) {\n\n\tSystem.out.println(\"????????????\");\n\t\n}\n\t\t }",
"main",
"{\ntry {\n long sum =0;\n int min =1000000;\n int max =-1000000;\n\t\n\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\n\tString input1 = buf.readLine();\t\n\tint count = Integer.parseInt(input1);\n\t\n\tString input2 = buf.readLine();\n\tString[] strAry = input2.split(\" \");\n\t\n\tfor (int i = 0; i < count; i++) {\n int x = Integer.parseInt(strAry[i]);\n sum = sum + x;\n if(x < min){ min = x;}\n if(x > max){ max = x;}\n\t}\n\tSystem.out.println(min + \" \" + max + \" \" + sum);\n} catch (Exception e) {\n\n\tSystem.out.println(\"????????????\");\n\t\n}\n\t\t }",
"try {\n long sum =0;\n int min =1000000;\n int max =-1000000;\n\t\n\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\n\tString input1 = buf.readLine();\t\n\tint count = Integer.parseInt(input1);\n\t\n\tString input2 = buf.readLine();\n\tString[] strAry = input2.split(\" \");\n\t\n\tfor (int i = 0; i < count; i++) {\n int x = Integer.parseInt(strAry[i]);\n sum = sum + x;\n if(x < min){ min = x;}\n if(x > max){ max = x;}\n\t}\n\tSystem.out.println(min + \" \" + max + \" \" + sum);\n} catch (Exception e) {\n\n\tSystem.out.println(\"????????????\");\n\t\n}",
"catch (Exception e) {\n\n\tSystem.out.println(\"????????????\");\n\t\n}",
"Exception e",
"{\n\n\tSystem.out.println(\"????????????\");\n\t\n}",
"System.out.println(\"????????????\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"????????????\"",
"{\n long sum =0;\n int min =1000000;\n int max =-1000000;\n\t\n\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\n\tString input1 = buf.readLine();\t\n\tint count = Integer.parseInt(input1);\n\t\n\tString input2 = buf.readLine();\n\tString[] strAry = input2.split(\" \");\n\t\n\tfor (int i = 0; i < count; i++) {\n int x = Integer.parseInt(strAry[i]);\n sum = sum + x;\n if(x < min){ min = x;}\n if(x > max){ max = x;}\n\t}\n\tSystem.out.println(min + \" \" + max + \" \" + sum);\n}",
"long sum =0;",
"sum",
"0",
"int min =1000000;",
"min",
"1000000",
"int max =-1000000;",
"max",
"-1000000",
"1000000",
"BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));",
"buf",
"new BufferedReader(new InputStreamReader(System.in))",
"String input1 = buf.readLine();",
"input1",
"buf.readLine()",
"buf.readLine",
"buf",
"int count = Integer.parseInt(input1);",
"count",
"Integer.parseInt(input1)",
"Integer.parseInt",
"Integer",
"input1",
"String input2 = buf.readLine();",
"input2",
"buf.readLine()",
"buf.readLine",
"buf",
"String[] strAry = input2.split(\" \");",
"strAry",
"input2.split(\" \")",
"input2.split",
"input2",
"\" \"",
"for (int i = 0; i < count; i++) {\n int x = Integer.parseInt(strAry[i]);\n sum = sum + x;\n if(x < min){ min = x;}\n if(x > max){ max = x;}\n\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < count",
"i",
"count",
"i++",
"i++",
"i",
"{\n int x = Integer.parseInt(strAry[i]);\n sum = sum + x;\n if(x < min){ min = x;}\n if(x > max){ max = x;}\n\t}",
"{\n int x = Integer.parseInt(strAry[i]);\n sum = sum + x;\n if(x < min){ min = x;}\n if(x > max){ max = x;}\n\t}",
"int x = Integer.parseInt(strAry[i]);",
"x",
"Integer.parseInt(strAry[i])",
"Integer.parseInt",
"Integer",
"strAry[i]",
"strAry",
"i",
"sum = sum + x",
"sum",
"sum + x",
"sum",
"x",
"if(x < min){ min = x;}",
"x < min",
"x",
"min",
"{ min = x;}",
"min = x",
"min",
"x",
"if(x > max){ max = x;}",
"x > max",
"x",
"max",
"{ max = x;}",
"max = x",
"max",
"x",
"System.out.println(min + \" \" + max + \" \" + sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min + \" \" + max + \" \" + sum",
"\" \"",
"max",
"min + \" \" + max + \" \" + sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\ntry {\n long sum =0;\n int min =1000000;\n int max =-1000000;\n\t\n\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\n\tString input1 = buf.readLine();\t\n\tint count = Integer.parseInt(input1);\n\t\n\tString input2 = buf.readLine();\n\tString[] strAry = input2.split(\" \");\n\t\n\tfor (int i = 0; i < count; i++) {\n int x = Integer.parseInt(strAry[i]);\n sum = sum + x;\n if(x < min){ min = x;}\n if(x > max){ max = x;}\n\t}\n\tSystem.out.println(min + \" \" + max + \" \" + sum);\n} catch (Exception e) {\n\n\tSystem.out.println(\"????????????\");\n\t\n}\n\t\t }\n }",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\ntry {\n long sum =0;\n int min =1000000;\n int max =-1000000;\n\t\n\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\n\tString input1 = buf.readLine();\t\n\tint count = Integer.parseInt(input1);\n\t\n\tString input2 = buf.readLine();\n\tString[] strAry = input2.split(\" \");\n\t\n\tfor (int i = 0; i < count; i++) {\n int x = Integer.parseInt(strAry[i]);\n sum = sum + x;\n if(x < min){ min = x;}\n if(x > max){ max = x;}\n\t}\n\tSystem.out.println(min + \" \" + max + \" \" + sum);\n} catch (Exception e) {\n\n\tSystem.out.println(\"????????????\");\n\t\n}\n\t\t }\n }",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
try {
long sum =0;
int min =1000000;
int max =-1000000;
BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
String input1 = buf.readLine();
int count = Integer.parseInt(input1);
String input2 = buf.readLine();
String[] strAry = input2.split(" ");
for (int i = 0; i < count; i++) {
int x = Integer.parseInt(strAry[i]);
sum = sum + x;
if(x < min){ min = x;}
if(x > max){ max = x;}
}
System.out.println(min + " " + max + " " + sum);
} catch (Exception e) {
System.out.println("????????????");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
40,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
39,
45
],
[
45,
46
],
[
45,
47
],
[
39,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
39,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
8,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
72,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
70,
76
],
[
72,
77
],
[
6,
78
],
[
78,
79
]
] | [
"import java.util.Scanner;\nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long Max = -10000001;\n long Min = 10000000;\n long Sum = 0;\n for(int i=0;i<n;i++){\n long a = sc.nextLong();\n Sum += a;\n if(Max<a){\n Max = a;\n }\n if(Min>a){\n Min = a;\n }\n }\n System.out.println(Min + \" \" + Max + \" \" + Sum);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long Max = -10000001;\n long Min = 10000000;\n long Sum = 0;\n for(int i=0;i<n;i++){\n long a = sc.nextLong();\n Sum += a;\n if(Max<a){\n Max = a;\n }\n if(Min>a){\n Min = a;\n }\n }\n System.out.println(Min + \" \" + Max + \" \" + Sum);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long Max = -10000001;\n long Min = 10000000;\n long Sum = 0;\n for(int i=0;i<n;i++){\n long a = sc.nextLong();\n Sum += a;\n if(Max<a){\n Max = a;\n }\n if(Min>a){\n Min = a;\n }\n }\n System.out.println(Min + \" \" + Max + \" \" + Sum);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long Max = -10000001;\n long Min = 10000000;\n long Sum = 0;\n for(int i=0;i<n;i++){\n long a = sc.nextLong();\n Sum += a;\n if(Max<a){\n Max = a;\n }\n if(Min>a){\n Min = a;\n }\n }\n System.out.println(Min + \" \" + Max + \" \" + Sum);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long Max = -10000001;",
"Max",
"-10000001",
"10000001",
"long Min = 10000000;",
"Min",
"10000000",
"long Sum = 0;",
"Sum",
"0",
"for(int i=0;i<n;i++){\n long a = sc.nextLong();\n Sum += a;\n if(Max<a){\n Max = a;\n }\n if(Min>a){\n Min = a;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n long a = sc.nextLong();\n Sum += a;\n if(Max<a){\n Max = a;\n }\n if(Min>a){\n Min = a;\n }\n }",
"{\n long a = sc.nextLong();\n Sum += a;\n if(Max<a){\n Max = a;\n }\n if(Min>a){\n Min = a;\n }\n }",
"long a = sc.nextLong();",
"a",
"sc.nextLong()",
"sc.nextLong",
"sc",
"Sum += a",
"Sum",
"a",
"if(Max<a){\n Max = a;\n }",
"Max<a",
"Max",
"a",
"{\n Max = a;\n }",
"Max = a",
"Max",
"a",
"if(Min>a){\n Min = a;\n }",
"Min>a",
"Min",
"a",
"{\n Min = a;\n }",
"Min = a",
"Min",
"a",
"System.out.println(Min + \" \" + Max + \" \" + Sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"Min + \" \" + Max + \" \" + Sum",
"\" \"",
"Max",
"Min + \" \" + Max + \" \" + Sum",
"Min",
"\" \"",
"Max",
"\" \"",
"Sum",
"String[] args",
"args"
] | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
long Max = -10000001;
long Min = 10000000;
long Sum = 0;
for(int i=0;i<n;i++){
long a = sc.nextLong();
Sum += a;
if(Max<a){
Max = a;
}
if(Min>a){
Min = a;
}
}
System.out.println(Min + " " + Max + " " + Sum);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
0,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
13,
4,
18,
13,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
4,
18,
13,
17,
17,
4,
18,
13,
2,
13,
17,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
88,
11
],
[
88,
12
],
[
12,
13
],
[
88,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
16,
25
],
[
25,
26
],
[
25,
27
],
[
16,
28
],
[
28,
29
],
[
28,
30
],
[
16,
31
],
[
31,
32
],
[
31,
33
],
[
16,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
39,
40
],
[
39,
41
],
[
34,
42
],
[
42,
43
],
[
43,
44
],
[
34,
45
],
[
46,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
46,
52
],
[
52,
53
],
[
52,
54
],
[
46,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
16,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
16,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
71,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
71,
76
],
[
70,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
80,
81
],
[
80,
82
],
[
69,
83
],
[
71,
84
],
[
14,
85
],
[
85,
86
],
[
0,
87
],
[
87,
88
],
[
87,
89
]
] | [
"import java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.Scanner;\n\npublic class Main {\n private static Scanner scan;\n\n public static void main(String[] args) {\n scan = new Scanner(System.in);\n int n = scan.nextInt();\n ArrayList<Long> list = new ArrayList<Long>();\n long input = 0;\n long sum = 0;\n for (int i = 0; i < n; i++) {\n input = scan.nextLong();\n sum += input;\n list.add(input);\n }\n Collections.sort(list);\n System.out.println(list.get(0) + \" \" + list.get(n-1) + \" \" + sum);\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 private static Scanner scan;\n\n public static void main(String[] args) {\n scan = new Scanner(System.in);\n int n = scan.nextInt();\n ArrayList<Long> list = new ArrayList<Long>();\n long input = 0;\n long sum = 0;\n for (int i = 0; i < n; i++) {\n input = scan.nextLong();\n sum += input;\n list.add(input);\n }\n Collections.sort(list);\n System.out.println(list.get(0) + \" \" + list.get(n-1) + \" \" + sum);\n }\n}",
"Main",
"private static Scanner scan;",
"scan",
"public static void main(String[] args) {\n scan = new Scanner(System.in);\n int n = scan.nextInt();\n ArrayList<Long> list = new ArrayList<Long>();\n long input = 0;\n long sum = 0;\n for (int i = 0; i < n; i++) {\n input = scan.nextLong();\n sum += input;\n list.add(input);\n }\n Collections.sort(list);\n System.out.println(list.get(0) + \" \" + list.get(n-1) + \" \" + sum);\n }",
"main",
"{\n scan = new Scanner(System.in);\n int n = scan.nextInt();\n ArrayList<Long> list = new ArrayList<Long>();\n long input = 0;\n long sum = 0;\n for (int i = 0; i < n; i++) {\n input = scan.nextLong();\n sum += input;\n list.add(input);\n }\n Collections.sort(list);\n System.out.println(list.get(0) + \" \" + list.get(n-1) + \" \" + sum);\n }",
"scan = new Scanner(System.in)",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"ArrayList<Long> list = new ArrayList<Long>();",
"list",
"new ArrayList<Long>()",
"long input = 0;",
"input",
"0",
"long sum = 0;",
"sum",
"0",
"for (int i = 0; i < n; i++) {\n input = scan.nextLong();\n sum += input;\n list.add(input);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n input = scan.nextLong();\n sum += input;\n list.add(input);\n }",
"{\n input = scan.nextLong();\n sum += input;\n list.add(input);\n }",
"input = scan.nextLong()",
"input",
"scan.nextLong()",
"scan.nextLong",
"scan",
"sum += input",
"sum",
"input",
"list.add(input)",
"list.add",
"list",
"input",
"Collections.sort(list)",
"Collections.sort",
"Collections",
"list",
"System.out.println(list.get(0) + \" \" + list.get(n-1) + \" \" + sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"list.get(0) + \" \" + list.get(n-1) + \" \" + sum",
"\" \"",
"list.get(n-1)",
"list.get(0) + \" \" + list.get(n-1) + \" \" + sum",
"list.get(0)",
"list.get",
"list",
"0",
"\" \"",
"list.get(n-1)",
"list.get",
"list",
"n-1",
"n",
"1",
"\" \"",
"sum",
"String[] args",
"args",
"public class Main {\n private static Scanner scan;\n\n public static void main(String[] args) {\n scan = new Scanner(System.in);\n int n = scan.nextInt();\n ArrayList<Long> list = new ArrayList<Long>();\n long input = 0;\n long sum = 0;\n for (int i = 0; i < n; i++) {\n input = scan.nextLong();\n sum += input;\n list.add(input);\n }\n Collections.sort(list);\n System.out.println(list.get(0) + \" \" + list.get(n-1) + \" \" + sum);\n }\n}",
"public class Main {\n private static Scanner scan;\n\n public static void main(String[] args) {\n scan = new Scanner(System.in);\n int n = scan.nextInt();\n ArrayList<Long> list = new ArrayList<Long>();\n long input = 0;\n long sum = 0;\n for (int i = 0; i < n; i++) {\n input = scan.nextLong();\n sum += input;\n list.add(input);\n }\n Collections.sort(list);\n System.out.println(list.get(0) + \" \" + list.get(n-1) + \" \" + sum);\n }\n}",
"Main"
] | import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;
public class Main {
private static Scanner scan;
public static void main(String[] args) {
scan = new Scanner(System.in);
int n = scan.nextInt();
ArrayList<Long> list = new ArrayList<Long>();
long input = 0;
long sum = 0;
for (int i = 0; i < n; i++) {
input = scan.nextLong();
sum += input;
list.add(input);
}
Collections.sort(list);
System.out.println(list.get(0) + " " + list.get(n-1) + " " + sum);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
0,
13,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
92,
5
],
[
92,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
40,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
40,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
40,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
40,
72
],
[
72,
73
],
[
72,
74
],
[
8,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
83,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
81,
87
],
[
83,
88
],
[
6,
89
],
[
89,
90
],
[
0,
91
],
[
91,
92
],
[
91,
93
]
] | [
"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 x;\n\t\tint max = 0;\n\t\tint min = 0;\n\t\tlong sum = 0;\n\t\tint n = scan.nextInt();//??´??°??\\???n???\n\t\tfor (int i = 0; i < n; i++) { //i???n???????°??????????????????°?????????\n\t\t\tx = scan.nextInt();//n????????????????????§??????????°??????\\???\n\t\t\tif (i == 0) { //?????????com???????????£??\\\n\t\t\t\tmin = max = x;\n\t\t\t}\n\t\t\tif (min > x) { //????°????\n\t\t\t\tmin = x;\n\t\t\t}\n\t\t\tif (max < x) { //?????§???\n\t\t\t\tmax = x;\n\t\t\t}\n\t\t\tsum += x; //????¨????\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t}\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 x;\n\t\tint max = 0;\n\t\tint min = 0;\n\t\tlong sum = 0;\n\t\tint n = scan.nextInt();//??´??°??\\???n???\n\t\tfor (int i = 0; i < n; i++) { //i???n???????°??????????????????°?????????\n\t\t\tx = scan.nextInt();//n????????????????????§??????????°??????\\???\n\t\t\tif (i == 0) { //?????????com???????????£??\\\n\t\t\t\tmin = max = x;\n\t\t\t}\n\t\t\tif (min > x) { //????°????\n\t\t\t\tmin = x;\n\t\t\t}\n\t\t\tif (max < x) { //?????§???\n\t\t\t\tmax = x;\n\t\t\t}\n\t\t\tsum += x; //????¨????\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint x;\n\t\tint max = 0;\n\t\tint min = 0;\n\t\tlong sum = 0;\n\t\tint n = scan.nextInt();//??´??°??\\???n???\n\t\tfor (int i = 0; i < n; i++) { //i???n???????°??????????????????°?????????\n\t\t\tx = scan.nextInt();//n????????????????????§??????????°??????\\???\n\t\t\tif (i == 0) { //?????????com???????????£??\\\n\t\t\t\tmin = max = x;\n\t\t\t}\n\t\t\tif (min > x) { //????°????\n\t\t\t\tmin = x;\n\t\t\t}\n\t\t\tif (max < x) { //?????§???\n\t\t\t\tmax = x;\n\t\t\t}\n\t\t\tsum += x; //????¨????\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint x;\n\t\tint max = 0;\n\t\tint min = 0;\n\t\tlong sum = 0;\n\t\tint n = scan.nextInt();//??´??°??\\???n???\n\t\tfor (int i = 0; i < n; i++) { //i???n???????°??????????????????°?????????\n\t\t\tx = scan.nextInt();//n????????????????????§??????????°??????\\???\n\t\t\tif (i == 0) { //?????????com???????????£??\\\n\t\t\t\tmin = max = x;\n\t\t\t}\n\t\t\tif (min > x) { //????°????\n\t\t\t\tmin = x;\n\t\t\t}\n\t\t\tif (max < x) { //?????§???\n\t\t\t\tmax = x;\n\t\t\t}\n\t\t\tsum += x; //????¨????\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int x;",
"x",
"int max = 0;",
"max",
"0",
"int min = 0;",
"min",
"0",
"long sum = 0;",
"sum",
"0",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int i = 0; i < n; i++) { //i???n???????°??????????????????°?????????\n\t\t\tx = scan.nextInt();//n????????????????????§??????????°??????\\???\n\t\t\tif (i == 0) { //?????????com???????????£??\\\n\t\t\t\tmin = max = x;\n\t\t\t}\n\t\t\tif (min > x) { //????°????\n\t\t\t\tmin = x;\n\t\t\t}\n\t\t\tif (max < x) { //?????§???\n\t\t\t\tmax = x;\n\t\t\t}\n\t\t\tsum += x; //????¨????\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{ //i???n???????°??????????????????°?????????\n\t\t\tx = scan.nextInt();//n????????????????????§??????????°??????\\???\n\t\t\tif (i == 0) { //?????????com???????????£??\\\n\t\t\t\tmin = max = x;\n\t\t\t}\n\t\t\tif (min > x) { //????°????\n\t\t\t\tmin = x;\n\t\t\t}\n\t\t\tif (max < x) { //?????§???\n\t\t\t\tmax = x;\n\t\t\t}\n\t\t\tsum += x; //????¨????\n\t\t}",
"{ //i???n???????°??????????????????°?????????\n\t\t\tx = scan.nextInt();//n????????????????????§??????????°??????\\???\n\t\t\tif (i == 0) { //?????????com???????????£??\\\n\t\t\t\tmin = max = x;\n\t\t\t}\n\t\t\tif (min > x) { //????°????\n\t\t\t\tmin = x;\n\t\t\t}\n\t\t\tif (max < x) { //?????§???\n\t\t\t\tmax = x;\n\t\t\t}\n\t\t\tsum += x; //????¨????\n\t\t}",
"x = scan.nextInt()",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if (i == 0) { //?????????com???????????£??\\\n\t\t\t\tmin = max = x;\n\t\t\t}",
"i == 0",
"i",
"0",
"{ //?????????com???????????£??\\\n\t\t\t\tmin = max = x;\n\t\t\t}",
"min = max = x",
"min",
"max = x",
"max",
"x",
"if (min > x) { //????°????\n\t\t\t\tmin = x;\n\t\t\t}",
"min > x",
"min",
"x",
"{ //????°????\n\t\t\t\tmin = x;\n\t\t\t}",
"min = x",
"min",
"x",
"if (max < x) { //?????§???\n\t\t\t\tmax = x;\n\t\t\t}",
"max < x",
"max",
"x",
"{ //?????§???\n\t\t\t\tmax = x;\n\t\t\t}",
"max = x",
"max",
"x",
"sum += x",
"sum",
"x",
"System.out.println(min + \" \" + max + \" \" + sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min + \" \" + max + \" \" + sum",
"\" \"",
"max",
"min + \" \" + max + \" \" + sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"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 x;\n\t\tint max = 0;\n\t\tint min = 0;\n\t\tlong sum = 0;\n\t\tint n = scan.nextInt();//??´??°??\\???n???\n\t\tfor (int i = 0; i < n; i++) { //i???n???????°??????????????????°?????????\n\t\t\tx = scan.nextInt();//n????????????????????§??????????°??????\\???\n\t\t\tif (i == 0) { //?????????com???????????£??\\\n\t\t\t\tmin = max = x;\n\t\t\t}\n\t\t\tif (min > x) { //????°????\n\t\t\t\tmin = x;\n\t\t\t}\n\t\t\tif (max < x) { //?????§???\n\t\t\t\tmax = x;\n\t\t\t}\n\t\t\tsum += x; //????¨????\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint x;\n\t\tint max = 0;\n\t\tint min = 0;\n\t\tlong sum = 0;\n\t\tint n = scan.nextInt();//??´??°??\\???n???\n\t\tfor (int i = 0; i < n; i++) { //i???n???????°??????????????????°?????????\n\t\t\tx = scan.nextInt();//n????????????????????§??????????°??????\\???\n\t\t\tif (i == 0) { //?????????com???????????£??\\\n\t\t\t\tmin = max = x;\n\t\t\t}\n\t\t\tif (min > x) { //????°????\n\t\t\t\tmin = x;\n\t\t\t}\n\t\t\tif (max < x) { //?????§???\n\t\t\t\tmax = x;\n\t\t\t}\n\t\t\tsum += x; //????¨????\n\t\t}\n\t\tSystem.out.println(min + \" \" + max + \" \" + sum);\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int x;
int max = 0;
int min = 0;
long sum = 0;
int n = scan.nextInt();//??´??°??\???n???
for (int i = 0; i < n; i++) { //i???n???????°??????????????????°?????????
x = scan.nextInt();//n????????????????????§??????????°??????\???
if (i == 0) { //?????????com???????????£??\
min = max = x;
}
if (min > x) { //????°????
min = x;
}
if (max < x) { //?????§???
max = x;
}
sum += x; //????¨????
}
System.out.println(min + " " + max + " " + 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,
4,
18,
13,
17,
41,
13,
4,
18,
13,
13,
41,
13,
17,
41,
13,
40,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
18,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
107,
11
],
[
107,
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
],
[
27,
28
],
[
28,
29
],
[
25,
30
],
[
14,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
14,
37
],
[
37,
38
],
[
37,
39
],
[
14,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
14,
44
],
[
44,
45
],
[
44,
46
],
[
14,
47
],
[
47,
48
],
[
47,
49
],
[
14,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
50,
61
],
[
62,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
68,
69
],
[
68,
70
],
[
62,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
62,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
62,
87
],
[
87,
88
],
[
87,
89
],
[
14,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
98,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
96,
102
],
[
98,
103
],
[
12,
104
],
[
104,
105
],
[
0,
106
],
[
106,
107
],
[
106,
108
]
] | [
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n\n\npublic class Main {\n\tpublic static void main(String[] args) throws NumberFormatException, IOException{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\n\t\tString[] arr = br.readLine().split(\" \");\n\n\n\n\t\tint n = Integer.parseInt(str);\n\t\tint value = 0;\n\n\n\t\tint max=-2147483648;\n\t\tint min=2147483647;\n\t\t\n\t\tlong sum = 0 ;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tvalue = Integer.parseInt(arr[i]);\n\t\t\tif(max<value){\n\t\t\t\tmax=value;\n\t\t\t}\n\t\t\tif(min>value){\n\t\t\t\tmin=value;\n\t\t\t}\n\t\t\tsum+=(long)value;\n\t\t\t\n\t\t}\n\t\tSystem.out.println(min +\" \"+ max +\" \"+sum);\n\t}\n\n\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String[] args) throws NumberFormatException, IOException{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\n\t\tString[] arr = br.readLine().split(\" \");\n\n\n\n\t\tint n = Integer.parseInt(str);\n\t\tint value = 0;\n\n\n\t\tint max=-2147483648;\n\t\tint min=2147483647;\n\t\t\n\t\tlong sum = 0 ;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tvalue = Integer.parseInt(arr[i]);\n\t\t\tif(max<value){\n\t\t\t\tmax=value;\n\t\t\t}\n\t\t\tif(min>value){\n\t\t\t\tmin=value;\n\t\t\t}\n\t\t\tsum+=(long)value;\n\t\t\t\n\t\t}\n\t\tSystem.out.println(min +\" \"+ max +\" \"+sum);\n\t}\n\n\n\n}",
"Main",
"public static void main(String[] args) throws NumberFormatException, IOException{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\n\t\tString[] arr = br.readLine().split(\" \");\n\n\n\n\t\tint n = Integer.parseInt(str);\n\t\tint value = 0;\n\n\n\t\tint max=-2147483648;\n\t\tint min=2147483647;\n\t\t\n\t\tlong sum = 0 ;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tvalue = Integer.parseInt(arr[i]);\n\t\t\tif(max<value){\n\t\t\t\tmax=value;\n\t\t\t}\n\t\t\tif(min>value){\n\t\t\t\tmin=value;\n\t\t\t}\n\t\t\tsum+=(long)value;\n\t\t\t\n\t\t}\n\t\tSystem.out.println(min +\" \"+ max +\" \"+sum);\n\t}",
"main",
"{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\n\t\tString[] arr = br.readLine().split(\" \");\n\n\n\n\t\tint n = Integer.parseInt(str);\n\t\tint value = 0;\n\n\n\t\tint max=-2147483648;\n\t\tint min=2147483647;\n\t\t\n\t\tlong sum = 0 ;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tvalue = Integer.parseInt(arr[i]);\n\t\t\tif(max<value){\n\t\t\t\tmax=value;\n\t\t\t}\n\t\t\tif(min>value){\n\t\t\t\tmin=value;\n\t\t\t}\n\t\t\tsum+=(long)value;\n\t\t\t\n\t\t}\n\t\tSystem.out.println(min +\" \"+ max +\" \"+sum);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str = br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"String[] arr = br.readLine().split(\" \");",
"arr",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int n = Integer.parseInt(str);",
"n",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"int value = 0;",
"value",
"0",
"int max=-2147483648;",
"max",
"-2147483648",
"2147483648",
"int min=2147483647;",
"min",
"2147483647",
"long sum = 0 ;",
"sum",
"0",
"for(int i=0;i<n;i++){\n\t\t\tvalue = Integer.parseInt(arr[i]);\n\t\t\tif(max<value){\n\t\t\t\tmax=value;\n\t\t\t}\n\t\t\tif(min>value){\n\t\t\t\tmin=value;\n\t\t\t}\n\t\t\tsum+=(long)value;\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\tvalue = Integer.parseInt(arr[i]);\n\t\t\tif(max<value){\n\t\t\t\tmax=value;\n\t\t\t}\n\t\t\tif(min>value){\n\t\t\t\tmin=value;\n\t\t\t}\n\t\t\tsum+=(long)value;\n\t\t\t\n\t\t}",
"{\n\t\t\tvalue = Integer.parseInt(arr[i]);\n\t\t\tif(max<value){\n\t\t\t\tmax=value;\n\t\t\t}\n\t\t\tif(min>value){\n\t\t\t\tmin=value;\n\t\t\t}\n\t\t\tsum+=(long)value;\n\t\t\t\n\t\t}",
"value = Integer.parseInt(arr[i])",
"value",
"Integer.parseInt(arr[i])",
"Integer.parseInt",
"Integer",
"arr[i]",
"arr",
"i",
"if(max<value){\n\t\t\t\tmax=value;\n\t\t\t}",
"max<value",
"max",
"value",
"{\n\t\t\t\tmax=value;\n\t\t\t}",
"max=value",
"max",
"value",
"if(min>value){\n\t\t\t\tmin=value;\n\t\t\t}",
"min>value",
"min",
"value",
"{\n\t\t\t\tmin=value;\n\t\t\t}",
"min=value",
"min",
"value",
"sum+=(long)value",
"sum",
"(long)value",
"System.out.println(min +\" \"+ max +\" \"+sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"min +\" \"+ max +\" \"+sum",
"\" \"",
"max",
"min +\" \"+ max +\" \"+sum",
"min",
"\" \"",
"max",
"\" \"",
"sum",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws NumberFormatException, IOException{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\n\t\tString[] arr = br.readLine().split(\" \");\n\n\n\n\t\tint n = Integer.parseInt(str);\n\t\tint value = 0;\n\n\n\t\tint max=-2147483648;\n\t\tint min=2147483647;\n\t\t\n\t\tlong sum = 0 ;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tvalue = Integer.parseInt(arr[i]);\n\t\t\tif(max<value){\n\t\t\t\tmax=value;\n\t\t\t}\n\t\t\tif(min>value){\n\t\t\t\tmin=value;\n\t\t\t}\n\t\t\tsum+=(long)value;\n\t\t\t\n\t\t}\n\t\tSystem.out.println(min +\" \"+ max +\" \"+sum);\n\t}\n\n\n\n}",
"public class Main {\n\tpublic static void main(String[] args) throws NumberFormatException, IOException{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\n\t\tString[] arr = br.readLine().split(\" \");\n\n\n\n\t\tint n = Integer.parseInt(str);\n\t\tint value = 0;\n\n\n\t\tint max=-2147483648;\n\t\tint min=2147483647;\n\t\t\n\t\tlong sum = 0 ;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tvalue = Integer.parseInt(arr[i]);\n\t\t\tif(max<value){\n\t\t\t\tmax=value;\n\t\t\t}\n\t\t\tif(min>value){\n\t\t\t\tmin=value;\n\t\t\t}\n\t\t\tsum+=(long)value;\n\t\t\t\n\t\t}\n\t\tSystem.out.println(min +\" \"+ max +\" \"+sum);\n\t}\n\n\n\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws NumberFormatException, IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = br.readLine();
String[] arr = br.readLine().split(" ");
int n = Integer.parseInt(str);
int value = 0;
int max=-2147483648;
int min=2147483647;
long sum = 0 ;
for(int i=0;i<n;i++){
value = Integer.parseInt(arr[i]);
if(max<value){
max=value;
}
if(min>value){
min=value;
}
sum+=(long)value;
}
System.out.println(min +" "+ max +" "+sum);
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.