node_ids
listlengths 4
1.4k
| edge_index
listlengths 1
2.22k
| text
listlengths 4
1.4k
| source
stringlengths 14
427k
|
---|---|---|---|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
14,
2,
2,
13,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
2,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
52,
5
],
[
52,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
8,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
6,
49
],
[
49,
50
],
[
0,
51
],
[
51,
52
],
[
51,
53
]
]
| [
"import java.util.*;\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong N = sc.nextLong();\n\t\tlong X = sc.nextLong();\n\t\tlong T = sc.nextLong();\n\t\tlong ans = N/X;\n\t\tif(N%X>0){\n\t\t ans++;\n\t\t}\n\t\tSystem.out.println(ans*T);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong N = sc.nextLong();\n\t\tlong X = sc.nextLong();\n\t\tlong T = sc.nextLong();\n\t\tlong ans = N/X;\n\t\tif(N%X>0){\n\t\t ans++;\n\t\t}\n\t\tSystem.out.println(ans*T);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong N = sc.nextLong();\n\t\tlong X = sc.nextLong();\n\t\tlong T = sc.nextLong();\n\t\tlong ans = N/X;\n\t\tif(N%X>0){\n\t\t ans++;\n\t\t}\n\t\tSystem.out.println(ans*T);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong N = sc.nextLong();\n\t\tlong X = sc.nextLong();\n\t\tlong T = sc.nextLong();\n\t\tlong ans = N/X;\n\t\tif(N%X>0){\n\t\t ans++;\n\t\t}\n\t\tSystem.out.println(ans*T);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long N = sc.nextLong();",
"N",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long X = sc.nextLong();",
"X",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long T = sc.nextLong();",
"T",
"sc.nextLong()",
"sc.nextLong",
"sc",
"long ans = N/X;",
"ans",
"N/X",
"N",
"X",
"if(N%X>0){\n\t\t ans++;\n\t\t}",
"N%X>0",
"N%X",
"N",
"X",
"0",
"{\n\t\t ans++;\n\t\t}",
"ans++",
"ans",
"System.out.println(ans*T)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans*T",
"ans",
"T",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong N = sc.nextLong();\n\t\tlong X = sc.nextLong();\n\t\tlong T = sc.nextLong();\n\t\tlong ans = N/X;\n\t\tif(N%X>0){\n\t\t ans++;\n\t\t}\n\t\tSystem.out.println(ans*T);\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong N = sc.nextLong();\n\t\tlong X = sc.nextLong();\n\t\tlong T = sc.nextLong();\n\t\tlong ans = N/X;\n\t\tif(N%X>0){\n\t\t ans++;\n\t\t}\n\t\tSystem.out.println(ans*T);\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long N = sc.nextLong();
long X = sc.nextLong();
long T = sc.nextLong();
long ans = N/X;
if(N%X>0){
ans++;
}
System.out.println(ans*T);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
0,
13,
2,
4,
18,
13,
2,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
61,
5
],
[
61,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
34,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
8,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
48,
49
],
[
48,
50
],
[
44,
51
],
[
8,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
6,
58
],
[
58,
59
],
[
0,
60
],
[
60,
61
],
[
60,
62
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(final String[] args) {\n final Scanner sc = new Scanner(System.in);\n // 整数の入力\n // final int a = sc.nextInt();\n // 文字列の入力\n // final String s1 = sc.next();\n final double varN = Integer.parseInt(sc.next());\n final double varX = Integer.parseInt(sc.next());\n final double varT = Integer.parseInt(sc.next());\n sc.close();\n\n int result = 0;\n result = (int) (Math.ceil(varN / varX) * varT);\n System.out.println(result);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(final String[] args) {\n final Scanner sc = new Scanner(System.in);\n // 整数の入力\n // final int a = sc.nextInt();\n // 文字列の入力\n // final String s1 = sc.next();\n final double varN = Integer.parseInt(sc.next());\n final double varX = Integer.parseInt(sc.next());\n final double varT = Integer.parseInt(sc.next());\n sc.close();\n\n int result = 0;\n result = (int) (Math.ceil(varN / varX) * varT);\n System.out.println(result);\n }\n}",
"Main",
"public static void main(final String[] args) {\n final Scanner sc = new Scanner(System.in);\n // 整数の入力\n // final int a = sc.nextInt();\n // 文字列の入力\n // final String s1 = sc.next();\n final double varN = Integer.parseInt(sc.next());\n final double varX = Integer.parseInt(sc.next());\n final double varT = Integer.parseInt(sc.next());\n sc.close();\n\n int result = 0;\n result = (int) (Math.ceil(varN / varX) * varT);\n System.out.println(result);\n }",
"main",
"{\n final Scanner sc = new Scanner(System.in);\n // 整数の入力\n // final int a = sc.nextInt();\n // 文字列の入力\n // final String s1 = sc.next();\n final double varN = Integer.parseInt(sc.next());\n final double varX = Integer.parseInt(sc.next());\n final double varT = Integer.parseInt(sc.next());\n sc.close();\n\n int result = 0;\n result = (int) (Math.ceil(varN / varX) * varT);\n System.out.println(result);\n }",
"final Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"final double varN = Integer.parseInt(sc.next());",
"varN",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"final double varX = Integer.parseInt(sc.next());",
"varX",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"final double varT = Integer.parseInt(sc.next());",
"varT",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"sc.close()",
"sc.close",
"sc",
"int result = 0;",
"result",
"0",
"result = (int) (Math.ceil(varN / varX) * varT)",
"result",
"(int) (Math.ceil(varN / varX) * varT)",
"Math.ceil(varN / varX)",
"Math.ceil",
"Math",
"varN / varX",
"varN",
"varX",
"varT",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"final String[] args",
"args",
"public class Main {\n public static void main(final String[] args) {\n final Scanner sc = new Scanner(System.in);\n // 整数の入力\n // final int a = sc.nextInt();\n // 文字列の入力\n // final String s1 = sc.next();\n final double varN = Integer.parseInt(sc.next());\n final double varX = Integer.parseInt(sc.next());\n final double varT = Integer.parseInt(sc.next());\n sc.close();\n\n int result = 0;\n result = (int) (Math.ceil(varN / varX) * varT);\n System.out.println(result);\n }\n}",
"public class Main {\n public static void main(final String[] args) {\n final Scanner sc = new Scanner(System.in);\n // 整数の入力\n // final int a = sc.nextInt();\n // 文字列の入力\n // final String s1 = sc.next();\n final double varN = Integer.parseInt(sc.next());\n final double varX = Integer.parseInt(sc.next());\n final double varT = Integer.parseInt(sc.next());\n sc.close();\n\n int result = 0;\n result = (int) (Math.ceil(varN / varX) * varT);\n System.out.println(result);\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(final String[] args) {
final Scanner sc = new Scanner(System.in);
// 整数の入力
// final int a = sc.nextInt();
// 文字列の入力
// final String s1 = sc.next();
final double varN = Integer.parseInt(sc.next());
final double varX = Integer.parseInt(sc.next());
final double varT = Integer.parseInt(sc.next());
sc.close();
int result = 0;
result = (int) (Math.ceil(varN / varX) * varT);
System.out.println(result);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
2,
2,
13,
13,
17,
13,
23,
13,
6,
13,
41,
13,
17,
41,
13,
17,
12,
13,
30,
0,
13,
20,
0,
13,
17,
23,
13,
12,
13,
30,
14,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
14,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
29,
4,
18,
13,
29,
4,
18,
13,
17,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
232,
17
],
[
232,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
20,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
20,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
20,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
39,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
62,
68
],
[
18,
69
],
[
69,
70
],
[
232,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
71,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
85,
87
],
[
79,
88
],
[
88,
89
],
[
71,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
93,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
103,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
92,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
71,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
120,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
130,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
119,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
142,
145
],
[
71,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
150,
153
],
[
153,
154
],
[
71,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
159,
162
],
[
162,
163
],
[
71,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
168,
171
],
[
171,
172
],
[
71,
173
],
[
173,
174
],
[
173,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
175,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
180,
185
],
[
185,
186
],
[
185,
187
],
[
180,
188
],
[
188,
189
],
[
189,
190
],
[
180,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
192,
196
],
[
196,
197
],
[
175,
198
],
[
198,
199
],
[
173,
200
],
[
200,
201
],
[
71,
202
],
[
202,
203
],
[
202,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
204,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
209,
214
],
[
214,
215
],
[
214,
216
],
[
209,
217
],
[
217,
218
],
[
218,
219
],
[
209,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
221,
225
],
[
225,
226
],
[
204,
227
],
[
227,
228
],
[
202,
229
],
[
229,
230
],
[
0,
231
],
[
231,
232
],
[
231,
233
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n private static class FastScanner {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public FastScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n tokenizer = null;\n }\n\n public String next() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public String nextLine() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n public long[] nextLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n }\n\n public static void main(String[] args) {\n FastScanner sc = new FastScanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n if (n % x == 0) {\n System.out.println((n / x) * t);\n } else {\n System.out.println((n / x + 1) * t);\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n private static class FastScanner {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public FastScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n tokenizer = null;\n }\n\n public String next() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public String nextLine() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n public long[] nextLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n }\n\n public static void main(String[] args) {\n FastScanner sc = new FastScanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n if (n % x == 0) {\n System.out.println((n / x) * t);\n } else {\n System.out.println((n / x + 1) * t);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n FastScanner sc = new FastScanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n if (n % x == 0) {\n System.out.println((n / x) * t);\n } else {\n System.out.println((n / x + 1) * t);\n }\n }",
"main",
"{\n FastScanner sc = new FastScanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n if (n % x == 0) {\n System.out.println((n / x) * t);\n } else {\n System.out.println((n / x + 1) * t);\n }\n }",
"FastScanner sc = new FastScanner(System.in);",
"sc",
"new FastScanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t = sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (n % x == 0) {\n System.out.println((n / x) * t);\n } else {\n System.out.println((n / x + 1) * t);\n }",
"n % x == 0",
"n % x",
"n",
"x",
"0",
"{\n System.out.println((n / x) * t);\n }",
"System.out.println((n / x) * t)",
"System.out.println",
"System.out",
"System",
"System.out",
"(n / x) * t",
"(n / x)",
"n",
"x",
"t",
"{\n System.out.println((n / x + 1) * t);\n }",
"System.out.println((n / x + 1) * t)",
"System.out.println",
"System.out",
"System",
"System.out",
"(n / x + 1) * t",
"(n / x + 1)",
"n / x",
"n",
"x",
"1",
"t",
"String[] args",
"args",
"private static class FastScanner {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public FastScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n tokenizer = null;\n }\n\n public String next() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public String nextLine() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n public long[] nextLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n }",
"FastScanner",
"private BufferedReader reader = null;",
"reader",
"null",
"private StringTokenizer tokenizer = null;",
"tokenizer",
"null",
"public FastScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n tokenizer = null;\n }",
"FastScanner",
"{\n reader = new BufferedReader(new InputStreamReader(in));\n tokenizer = null;\n }",
"reader = new BufferedReader(new InputStreamReader(in))",
"reader",
"new BufferedReader(new InputStreamReader(in))",
"tokenizer = null",
"tokenizer",
"null",
"InputStream in",
"in",
"public String next() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"next",
"{\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }",
"catch (IOException e) {\n throw new RuntimeException(e);\n }",
"IOException e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n tokenizer = new StringTokenizer(reader.readLine());\n }",
"tokenizer = new StringTokenizer(reader.readLine())",
"tokenizer",
"new StringTokenizer(reader.readLine())",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"public String nextLine() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }",
"nextLine",
"{\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }",
"if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }",
"catch (IOException e) {\n throw new RuntimeException(e);\n }",
"IOException e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n return reader.readLine();\n }",
"return reader.readLine();",
"reader.readLine()",
"reader.readLine",
"reader",
"return tokenizer.nextToken(\"\\n\");",
"tokenizer.nextToken(\"\\n\")",
"tokenizer.nextToken",
"tokenizer",
"\"\\n\"",
"public long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }",
"nextIntArray",
"{\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++)\n a[i] = nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = nextInt();",
"a[i] = nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"public long[] nextLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }",
"nextLongArray",
"{\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }",
"long[] a = new long[n];",
"a",
"new long[n]",
"n",
"for (int i = 0; i < n; i++)\n a[i] = nextLong();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = nextLong();",
"a[i] = nextLong()",
"a[i]",
"a",
"i",
"nextLong()",
"nextLong",
"return a;",
"a",
"int n",
"n",
"public class Main {\n private static class FastScanner {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public FastScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n tokenizer = null;\n }\n\n public String next() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public String nextLine() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n public long[] nextLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n }\n\n public static void main(String[] args) {\n FastScanner sc = new FastScanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n if (n % x == 0) {\n System.out.println((n / x) * t);\n } else {\n System.out.println((n / x + 1) * t);\n }\n }\n}",
"public class Main {\n private static class FastScanner {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public FastScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n tokenizer = null;\n }\n\n public String next() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public String nextLine() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public int[] nextIntArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n public long[] nextLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n }\n\n public static void main(String[] args) {\n FastScanner sc = new FastScanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n if (n % x == 0) {\n System.out.println((n / x) * t);\n } else {\n System.out.println((n / x + 1) * t);\n }\n }\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
private static class FastScanner {
private BufferedReader reader = null;
private StringTokenizer tokenizer = null;
public FastScanner(InputStream in) {
reader = new BufferedReader(new InputStreamReader(in));
tokenizer = null;
}
public String next() {
if (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(reader.readLine());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken();
}
public String nextLine() {
if (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
return reader.readLine();
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken("\n");
}
public long nextLong() {
return Long.parseLong(next());
}
public int nextInt() {
return Integer.parseInt(next());
}
public double nextDouble() {
return Double.parseDouble(next());
}
public int[] nextIntArray(int n) {
int[] a = new int[n];
for (int i = 0; i < n; i++)
a[i] = nextInt();
return a;
}
public long[] nextLongArray(int n) {
long[] a = new long[n];
for (int i = 0; i < n; i++)
a[i] = nextLong();
return a;
}
}
public static void main(String[] args) {
FastScanner sc = new FastScanner(System.in);
int n = sc.nextInt();
int x = sc.nextInt();
int t = sc.nextInt();
if (n % x == 0) {
System.out.println((n / x) * t);
} else {
System.out.println((n / x + 1) * t);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
2,
17,
17,
12,
13,
30,
4,
18,
13,
18,
13,
13,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
2,
2,
13,
13,
17,
13,
0,
13,
13,
4,
18,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
12,
13,
30,
0,
13,
20,
0,
13,
20,
23,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
42,
40,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
139,
8
],
[
139,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
11,
13
],
[
139,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
20,
22
],
[
16,
23
],
[
23,
24
],
[
23,
25
],
[
16,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
16,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
16,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
16,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
16,
50
],
[
50,
51
],
[
50,
52
],
[
16,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
16,
57
],
[
57,
58
],
[
58,
59
],
[
14,
60
],
[
60,
61
],
[
0,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
62,
66
],
[
66,
67
],
[
62,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
62,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
83,
85
],
[
77,
86
],
[
86,
87
],
[
62,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
62,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
98,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
97,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
62,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
115,
118
],
[
118,
119
],
[
62,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
124,
127
],
[
127,
128
],
[
62,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
133,
136
],
[
136,
137
],
[
0,
138
],
[
138,
139
],
[
138,
140
]
]
| [
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n\t\n\tstatic long mod= (long) 1e9+7;\n\t\n\t\t\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tReader.init(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint n=Reader.nextInt(), x=Reader.nextInt(), t=Reader.nextInt();\n\t\tlong ans = (n+x-1)/x;\n\t\tans*=t;\n\t\tout.println(ans);\n\t\t\n\t\tout.flush();\n\t\t\n\t}\n\n}\n\n\nclass Reader {\n static BufferedReader reader;\n static StringTokenizer tokenizer;\n /** call this method to initialize reader for InputStream */\n static void init() throws IOException {\n reader = new BufferedReader(\n new FileReader(\"C:\\\\Users\\\\samee\\\\Desktop\\\\GRE prep\\\\confusion.txt\"));\n tokenizer = new StringTokenizer(\"\");\n }\n static void init(InputStream input) {\n reader = new BufferedReader(\n new InputStreamReader(input) );\n tokenizer = new StringTokenizer(\"\");\n }\n /** get next word */\n static String nextLine() throws IOException{\n return reader.readLine();\n }\n static String next() throws IOException {\n while ( ! tokenizer.hasMoreTokens() ) {\n //TODO add check for eof if necessary\n tokenizer = new StringTokenizer(\n reader.readLine() );\n }\n return tokenizer.nextToken();\n }\n static int nextInt() throws IOException {\n return Integer.parseInt( next() );\n }\n static long nextLong() throws IOException {\n return Long.parseLong( next() );\n }\n static double nextDouble() throws IOException {\n return Double.parseDouble( next() );\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\t\n\tstatic long mod= (long) 1e9+7;\n\t\n\t\t\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tReader.init(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint n=Reader.nextInt(), x=Reader.nextInt(), t=Reader.nextInt();\n\t\tlong ans = (n+x-1)/x;\n\t\tans*=t;\n\t\tout.println(ans);\n\t\t\n\t\tout.flush();\n\t\t\n\t}\n\n}",
"Main",
"static long mod= (long) 1e9+7;",
"mod",
"(long) 1e9+7",
"(long) 1e9",
"7",
"public static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tReader.init(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint n=Reader.nextInt(), x=Reader.nextInt(), t=Reader.nextInt();\n\t\tlong ans = (n+x-1)/x;\n\t\tans*=t;\n\t\tout.println(ans);\n\t\t\n\t\tout.flush();\n\t\t\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tReader.init(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint n=Reader.nextInt(), x=Reader.nextInt(), t=Reader.nextInt();\n\t\tlong ans = (n+x-1)/x;\n\t\tans*=t;\n\t\tout.println(ans);\n\t\t\n\t\tout.flush();\n\t\t\n\t}",
"Reader.init(System.in)",
"Reader.init",
"Reader",
"System.in",
"System",
"System.in",
"PrintWriter out=new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"int n=Reader.nextInt()",
"n",
"Reader.nextInt()",
"Reader.nextInt",
"Reader",
"x=Reader.nextInt()",
"x",
"Reader.nextInt()",
"Reader.nextInt",
"Reader",
"t=Reader.nextInt();",
"t",
"Reader.nextInt()",
"Reader.nextInt",
"Reader",
"long ans = (n+x-1)/x;",
"ans",
"(n+x-1)/x",
"(n+x-1)",
"n+x",
"n",
"x",
"1",
"x",
"ans*=t",
"ans",
"t",
"out.println(ans)",
"out.println",
"out",
"ans",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"class Reader {\n static BufferedReader reader;\n static StringTokenizer tokenizer;\n /** call this method to initialize reader for InputStream */\n static void init() throws IOException {\n reader = new BufferedReader(\n new FileReader(\"C:\\\\Users\\\\samee\\\\Desktop\\\\GRE prep\\\\confusion.txt\"));\n tokenizer = new StringTokenizer(\"\");\n }\n static void init(InputStream input) {\n reader = new BufferedReader(\n new InputStreamReader(input) );\n tokenizer = new StringTokenizer(\"\");\n }\n /** get next word */\n static String nextLine() throws IOException{\n return reader.readLine();\n }\n static String next() throws IOException {\n while ( ! tokenizer.hasMoreTokens() ) {\n //TODO add check for eof if necessary\n tokenizer = new StringTokenizer(\n reader.readLine() );\n }\n return tokenizer.nextToken();\n }\n static int nextInt() throws IOException {\n return Integer.parseInt( next() );\n }\n static long nextLong() throws IOException {\n return Long.parseLong( next() );\n }\n static double nextDouble() throws IOException {\n return Double.parseDouble( next() );\n }\n}",
"Reader",
"static BufferedReader reader;",
"reader",
"static StringTokenizer tokenizer;",
"tokenizer",
"/** call this method to initialize reader for InputStream */\n static void init() throws IOException {\n reader = new BufferedReader(\n new FileReader(\"C:\\\\Users\\\\samee\\\\Desktop\\\\GRE prep\\\\confusion.txt\"));\n tokenizer = new StringTokenizer(\"\");\n }",
"init",
"{\n reader = new BufferedReader(\n new FileReader(\"C:\\\\Users\\\\samee\\\\Desktop\\\\GRE prep\\\\confusion.txt\"));\n tokenizer = new StringTokenizer(\"\");\n }",
"reader = new BufferedReader(\n new FileReader(\"C:\\\\Users\\\\samee\\\\Desktop\\\\GRE prep\\\\confusion.txt\"))",
"reader",
"new BufferedReader(\n new FileReader(\"C:\\\\Users\\\\samee\\\\Desktop\\\\GRE prep\\\\confusion.txt\"))",
"tokenizer = new StringTokenizer(\"\")",
"tokenizer",
"new StringTokenizer(\"\")",
"static void init(InputStream input) {\n reader = new BufferedReader(\n new InputStreamReader(input) );\n tokenizer = new StringTokenizer(\"\");\n }",
"init",
"{\n reader = new BufferedReader(\n new InputStreamReader(input) );\n tokenizer = new StringTokenizer(\"\");\n }",
"reader = new BufferedReader(\n new InputStreamReader(input) )",
"reader",
"new BufferedReader(\n new InputStreamReader(input) )",
"tokenizer = new StringTokenizer(\"\")",
"tokenizer",
"new StringTokenizer(\"\")",
"InputStream input",
"input",
"/** get next word */\n static String nextLine() throws IOException{\n return reader.readLine();\n }",
"nextLine",
"{\n return reader.readLine();\n }",
"return reader.readLine();",
"reader.readLine()",
"reader.readLine",
"reader",
"static String next() throws IOException {\n while ( ! tokenizer.hasMoreTokens() ) {\n //TODO add check for eof if necessary\n tokenizer = new StringTokenizer(\n reader.readLine() );\n }\n return tokenizer.nextToken();\n }",
"next",
"{\n while ( ! tokenizer.hasMoreTokens() ) {\n //TODO add check for eof if necessary\n tokenizer = new StringTokenizer(\n reader.readLine() );\n }\n return tokenizer.nextToken();\n }",
"while ( ! tokenizer.hasMoreTokens() ) {\n //TODO add check for eof if necessary\n tokenizer = new StringTokenizer(\n reader.readLine() );\n }",
"! tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n //TODO add check for eof if necessary\n tokenizer = new StringTokenizer(\n reader.readLine() );\n }",
"tokenizer = new StringTokenizer(\n reader.readLine() )",
"tokenizer",
"new StringTokenizer(\n reader.readLine() )",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"static int nextInt() throws IOException {\n return Integer.parseInt( next() );\n }",
"nextInt",
"{\n return Integer.parseInt( next() );\n }",
"return Integer.parseInt( next() );",
"Integer.parseInt( next() )",
"Integer.parseInt",
"Integer",
"next()",
"next",
"static long nextLong() throws IOException {\n return Long.parseLong( next() );\n }",
"nextLong",
"{\n return Long.parseLong( next() );\n }",
"return Long.parseLong( next() );",
"Long.parseLong( next() )",
"Long.parseLong",
"Long",
"next()",
"next",
"static double nextDouble() throws IOException {\n return Double.parseDouble( next() );\n }",
"nextDouble",
"{\n return Double.parseDouble( next() );\n }",
"return Double.parseDouble( next() );",
"Double.parseDouble( next() )",
"Double.parseDouble",
"Double",
"next()",
"next",
"public class Main {\n\t\n\tstatic long mod= (long) 1e9+7;\n\t\n\t\t\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tReader.init(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint n=Reader.nextInt(), x=Reader.nextInt(), t=Reader.nextInt();\n\t\tlong ans = (n+x-1)/x;\n\t\tans*=t;\n\t\tout.println(ans);\n\t\t\n\t\tout.flush();\n\t\t\n\t}\n\n}",
"public class Main {\n\t\n\tstatic long mod= (long) 1e9+7;\n\t\n\t\t\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tReader.init(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tint n=Reader.nextInt(), x=Reader.nextInt(), t=Reader.nextInt();\n\t\tlong ans = (n+x-1)/x;\n\t\tans*=t;\n\t\tout.println(ans);\n\t\t\n\t\tout.flush();\n\t\t\n\t}\n\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main {
static long mod= (long) 1e9+7;
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
Reader.init(System.in);
PrintWriter out=new PrintWriter(System.out);
int n=Reader.nextInt(), x=Reader.nextInt(), t=Reader.nextInt();
long ans = (n+x-1)/x;
ans*=t;
out.println(ans);
out.flush();
}
}
class Reader {
static BufferedReader reader;
static StringTokenizer tokenizer;
/** call this method to initialize reader for InputStream */
static void init() throws IOException {
reader = new BufferedReader(
new FileReader("C:\\Users\\samee\\Desktop\\GRE prep\\confusion.txt"));
tokenizer = new StringTokenizer("");
}
static void init(InputStream input) {
reader = new BufferedReader(
new InputStreamReader(input) );
tokenizer = new StringTokenizer("");
}
/** get next word */
static String nextLine() throws IOException{
return reader.readLine();
}
static String next() throws IOException {
while ( ! tokenizer.hasMoreTokens() ) {
//TODO add check for eof if necessary
tokenizer = new StringTokenizer(
reader.readLine() );
}
return tokenizer.nextToken();
}
static int nextInt() throws IOException {
return Integer.parseInt( next() );
}
static long nextLong() throws IOException {
return Long.parseLong( next() );
}
static double nextDouble() throws IOException {
return Double.parseDouble( next() );
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
2,
17,
17,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
23,
13,
23,
13,
23,
13,
6,
13,
12,
13,
30,
23,
13,
23,
13,
23,
13,
13,
6,
13,
12,
13,
30,
23,
13,
23,
13,
23,
13,
13,
6,
13,
12,
13,
30,
23,
13,
23,
13,
23,
13,
13,
6,
13,
12,
13,
30,
23,
13,
23,
13,
23,
13,
13,
6,
13,
12,
13,
30,
23,
13,
23,
13,
23,
13,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
2,
4,
18,
13,
13,
13,
13,
23,
13,
23,
13,
23,
13,
13,
6,
13,
41,
13,
12,
13,
30,
0,
13,
20,
2,
13,
17,
23,
13,
12,
13,
30,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
17,
1,
0,
13,
2,
13,
40,
13,
30,
30,
0,
13,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
13,
2,
13,
18,
13,
13,
1,
0,
13,
2,
13,
40,
13,
30,
30,
0,
18,
13,
13,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
41,
13,
17,
12,
13,
30,
0,
13,
20,
13,
0,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
13,
0,
18,
13,
13,
17,
23,
13,
12,
13,
30,
14,
2,
18,
13,
13,
13,
29,
13,
29,
0,
18,
13,
13,
4,
13,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
13,
41,
13,
4,
13,
13,
14,
2,
13,
13,
29,
0,
18,
13,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
13,
4,
18,
13,
13,
18,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
13,
41,
13,
4,
13,
13,
29,
2,
13,
13,
23,
13,
23,
13,
6,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
13,
29,
4,
13,
2,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
8,
2,
2,
13,
13,
17,
2,
13,
13,
2,
2,
13,
13,
17,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
17,
14,
2,
2,
13,
17,
17,
30,
41,
13,
2,
2,
13,
13,
13,
29,
4,
13,
13,
2,
13,
17,
30,
29,
2,
2,
13,
4,
13,
13,
2,
13,
17,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
29,
17,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
29,
17,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
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
],
[
543,
23
],
[
543,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
26,
28
],
[
543,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
31,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
31,
42
],
[
42,
43
],
[
42,
44
],
[
31,
45
],
[
45,
46
],
[
45,
47
],
[
31,
48
],
[
48,
49
],
[
48,
50
],
[
31,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
51,
55
],
[
51,
56
],
[
31,
57
],
[
57,
58
],
[
58,
59
],
[
29,
60
],
[
60,
61
],
[
543,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
64,
68
],
[
68,
69
],
[
64,
70
],
[
70,
71
],
[
543,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
74,
76
],
[
74,
77
],
[
77,
78
],
[
74,
79
],
[
79,
80
],
[
74,
81
],
[
81,
82
],
[
72,
83
],
[
543,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
86,
88
],
[
86,
89
],
[
89,
90
],
[
86,
91
],
[
91,
92
],
[
86,
93
],
[
93,
94
],
[
84,
95
],
[
543,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
98,
100
],
[
98,
101
],
[
101,
102
],
[
98,
103
],
[
103,
104
],
[
98,
105
],
[
105,
106
],
[
96,
107
],
[
543,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
110,
112
],
[
110,
113
],
[
113,
114
],
[
110,
115
],
[
115,
116
],
[
110,
117
],
[
117,
118
],
[
108,
119
],
[
543,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
122,
124
],
[
122,
125
],
[
125,
126
],
[
122,
127
],
[
127,
128
],
[
122,
129
],
[
129,
130
],
[
120,
131
],
[
543,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
136,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
136,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
136,
152
],
[
152,
153
],
[
153,
154
],
[
152,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
156,
159
],
[
156,
160
],
[
155,
161
],
[
134,
162
],
[
162,
163
],
[
134,
164
],
[
164,
165
],
[
134,
166
],
[
166,
167
],
[
132,
168
],
[
543,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
169,
173
],
[
173,
174
],
[
173,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
179,
180
],
[
179,
181
],
[
173,
182
],
[
182,
183
],
[
169,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
186,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
190,
195
],
[
195,
196
],
[
195,
197
],
[
190,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
201,
202
],
[
201,
203
],
[
203,
204
],
[
190,
205
],
[
206,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
209,
210
],
[
209,
211
],
[
186,
212
],
[
212,
213
],
[
184,
214
],
[
214,
215
],
[
169,
216
],
[
216,
217
],
[
216,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
219,
224
],
[
224,
225
],
[
224,
226
],
[
226,
227
],
[
226,
228
],
[
219,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
232,
233
],
[
232,
234
],
[
234,
235
],
[
219,
236
],
[
237,
237
],
[
237,
238
],
[
238,
239
],
[
239,
240
],
[
239,
241
],
[
238,
242
],
[
216,
243
],
[
243,
244
],
[
216,
245
],
[
245,
246
],
[
543,
247
],
[
247,
248
],
[
247,
249
],
[
249,
250
],
[
247,
251
],
[
251,
252
],
[
247,
253
],
[
253,
254
],
[
253,
255
],
[
247,
256
],
[
256,
257
],
[
256,
258
],
[
258,
259
],
[
259,
260
],
[
259,
261
],
[
258,
263
],
[
263,
264
],
[
263,
265
],
[
258,
267
],
[
267,
268
],
[
268,
269
],
[
269,
270
],
[
269,
271
],
[
267,
272
],
[
272,
273
],
[
272,
274
],
[
267,
275
],
[
275,
276
],
[
276,
277
],
[
267,
278
],
[
279,
279
],
[
279,
280
],
[
280,
281
],
[
281,
282
],
[
281,
283
],
[
280,
284
],
[
279,
285
],
[
285,
286
],
[
286,
287
],
[
286,
288
],
[
285,
289
],
[
256,
290
],
[
290,
291
],
[
247,
292
],
[
292,
293
],
[
292,
294
],
[
294,
295
],
[
295,
296
],
[
296,
297
],
[
297,
298
],
[
297,
299
],
[
296,
300
],
[
295,
301
],
[
301,
302
],
[
294,
303
],
[
303,
304
],
[
304,
305
],
[
305,
306
],
[
305,
307
],
[
304,
308
],
[
308,
309
],
[
308,
310
],
[
310,
311
],
[
310,
312
],
[
292,
313
],
[
313,
314
],
[
247,
315
],
[
315,
316
],
[
315,
317
],
[
317,
318
],
[
318,
319
],
[
318,
320
],
[
320,
321
],
[
320,
322
],
[
317,
323
],
[
323,
324
],
[
323,
325
],
[
325,
326
],
[
325,
327
],
[
317,
328
],
[
328,
329
],
[
329,
330
],
[
329,
331
],
[
328,
332
],
[
317,
333
],
[
333,
334
],
[
334,
335
],
[
334,
336
],
[
333,
337
],
[
317,
338
],
[
338,
339
],
[
339,
340
],
[
339,
341
],
[
338,
342
],
[
342,
343
],
[
342,
344
],
[
317,
345
],
[
345,
346
],
[
345,
347
],
[
347,
348
],
[
348,
349
],
[
347,
350
],
[
347,
351
],
[
351,
352
],
[
351,
353
],
[
315,
354
],
[
354,
355
],
[
315,
356
],
[
356,
357
],
[
247,
358
],
[
358,
359
],
[
358,
360
],
[
360,
361
],
[
361,
362
],
[
361,
363
],
[
363,
364
],
[
363,
365
],
[
360,
366
],
[
366,
367
],
[
366,
368
],
[
368,
369
],
[
368,
370
],
[
360,
371
],
[
371,
372
],
[
372,
373
],
[
372,
374
],
[
358,
375
],
[
375,
376
],
[
358,
377
],
[
377,
378
],
[
543,
379
],
[
379,
380
],
[
379,
381
],
[
381,
382
],
[
381,
383
],
[
383,
384
],
[
384,
385
],
[
385,
386
],
[
385,
387
],
[
384,
388
],
[
388,
389
],
[
389,
390
],
[
383,
391
],
[
391,
392
],
[
392,
393
],
[
392,
394
],
[
394,
395
],
[
394,
396
],
[
392,
397
],
[
381,
398
],
[
398,
399
],
[
381,
400
],
[
400,
401
],
[
379,
402
],
[
402,
403
],
[
402,
404
],
[
404,
405
],
[
405,
406
],
[
406,
407
],
[
407,
408
],
[
408,
409
],
[
408,
410
],
[
407,
411
],
[
406,
412
],
[
412,
413
],
[
412,
414
],
[
406,
415
],
[
415,
416
],
[
416,
417
],
[
416,
418
],
[
415,
419
],
[
402,
420
],
[
420,
421
],
[
402,
422
],
[
422,
423
],
[
379,
424
],
[
424,
425
],
[
424,
426
],
[
426,
427
],
[
427,
428
],
[
428,
429
],
[
428,
430
],
[
427,
431
],
[
431,
432
],
[
432,
433
],
[
426,
434
],
[
434,
435
],
[
435,
436
],
[
436,
437
],
[
436,
438
],
[
435,
439
],
[
434,
440
],
[
440,
441
],
[
441,
442
],
[
441,
443
],
[
443,
444
],
[
444,
445
],
[
444,
446
],
[
443,
447
],
[
440,
448
],
[
448,
449
],
[
449,
450
],
[
449,
451
],
[
449,
452
],
[
452,
453
],
[
452,
454
],
[
434,
455
],
[
455,
456
],
[
456,
457
],
[
457,
458
],
[
458,
459
],
[
458,
460
],
[
460,
461
],
[
460,
462
],
[
460,
463
],
[
463,
464
],
[
463,
465
],
[
457,
466
],
[
424,
467
],
[
467,
468
],
[
424,
469
],
[
469,
470
],
[
543,
471
],
[
471,
472
],
[
471,
473
],
[
473,
474
],
[
471,
475
],
[
475,
476
],
[
471,
477
],
[
477,
478
],
[
477,
479
],
[
479,
480
],
[
480,
481
],
[
480,
482
],
[
477,
483
],
[
483,
484
],
[
471,
485
],
[
485,
486
],
[
485,
487
],
[
487,
488
],
[
488,
489
],
[
489,
490
],
[
490,
491
],
[
490,
492
],
[
489,
493
],
[
493,
494
],
[
494,
495
],
[
495,
496
],
[
488,
497
],
[
497,
498
],
[
498,
499
],
[
499,
500
],
[
499,
501
],
[
501,
502
],
[
502,
503
],
[
498,
504
],
[
504,
505
],
[
505,
506
],
[
505,
507
],
[
507,
508
],
[
508,
509
],
[
504,
510
],
[
510,
511
],
[
511,
512
],
[
511,
513
],
[
510,
514
],
[
514,
515
],
[
515,
516
],
[
504,
517
],
[
517,
518
],
[
517,
519
],
[
487,
520
],
[
520,
521
],
[
521,
522
],
[
522,
523
],
[
471,
524
],
[
524,
525
],
[
524,
526
],
[
526,
527
],
[
527,
528
],
[
528,
529
],
[
529,
530
],
[
528,
531
],
[
531,
532
],
[
471,
533
],
[
533,
534
],
[
533,
535
],
[
535,
536
],
[
536,
537
],
[
537,
538
],
[
538,
539
],
[
537,
540
],
[
540,
541
],
[
0,
542
],
[
542,
543
],
[
542,
544
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.io.OutputStream;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\n\npublic class Main\n{\n\tstatic int MOD = (int) 1e9 + 7;\n\t\n\tstatic interface Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out);\n\t}\n\t\n\tpublic static void main(String[] args)\n\t{\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tMyScanner in = new MyScanner(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tSolver solver = new A();\n\t\tsolver.solve(1, in, out);\n\t\tout.close();\n\t}\n\t\n\tstatic class F implements Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t}\n\t}\n\n\tstatic class E implements Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t}\n\t}\n\n\tstatic class D implements Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t}\n\t}\n\t\n\tstatic class C implements Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t}\n\t}\n\t\n\tstatic class B implements Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t}\n\t}\n\n\tstatic class A implements Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t\tint n = in.nextInt();\n\t\t\tint x = in.nextInt();\n\t\t\tint t = in.nextInt();\n\t\t\tout.println(Calc.ceilInt(n, x) * t);\n\t\t}\n\t}\n\t\n\tstatic class FenwickTree\n\t{\n\t\t// bit[1] ~ bit[n]\n\t\tlong[] bit; // = new long[n+1];\n\t\t\n\t\tpublic FenwickTree(int n)\n\t\t{\n\t\t\tbit = new long[n+1];\n\t\t}\n\t\t\n\t\t// bit[1] + ... + bit[r]\n\t\tlong sum(int r)\n\t\t{\n\t\t\tlong s = 0;\n\t\t\tfor( int i=r; i>0; i-=(i & -i) )\n\t\t\t{\n\t\t\t\ts += bit[i];\n\t\t\t}\n\t\t\treturn s;\n\t\t}\n\t\t\n\t\tvoid add(int idx, int x)\n\t\t{\n\t\t\tfor( int i=idx; i<bit.length; i+=(i & -i) )\n\t\t\t{\n\t\t\t\tbit[i] += x;\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic class UnionFind\n\t{\n\t\tint[] par;\n\t\tint[] n_nodes;\n\t\tint max = 1;\n\t\t\n\t\tpublic UnionFind(int n)\n\t\t{\n\t\t\tpar = new int[n];\n\t\t\tn_nodes = new int[n];\n\t\t\tfor( int i=0; i<n; i++ )\n\t\t\t{\n\t\t\t\tpar[i] = i;\n\t\t\t\tn_nodes[i] = 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint root(int x)\n\t\t{\n\t\t\tif( par[x] == x ) return x;\n\t\t\treturn par[x] = root(par[x]);\n\t\t}\n\t\t\n\t\tvoid unite(int x, int y)\n\t\t{\n\t\t\tint rx = root(x);\n\t\t\tint ry = root(y);\n\t\t\tif( rx == ry ) return;\n\t\t\tpar[rx] = ry;\n\t\t\tn_nodes[ry] += n_nodes[rx];\n\t\t\tmax = Math.max(max, n_nodes[ry]);\n\t\t}\n\t\t\n\t\tboolean same(int x, int y)\n\t\t{\n\t\t\tint rx = root(x);\n\t\t\tint ry = root(y);\n\t\t\treturn rx == ry;\n\t\t}\n\t}\n\t\n\tstatic class Calc\n\t{\n\t\tstatic int gcd(int a, int b)\n\t\t{\n\t\t\tif( a == 0 )\n\t\t\t{\n\t\t\t\treturn b;\n\t\t\t}\n\t\t\treturn gcd(b%a, a);\n\t\t}\n\t\t\n\t\tstatic int ceilInt(int a, int b)\n\t\t{\n\t\t\treturn (a%b==0 ? a/b : a/b+1);\n\t\t}\n\n\t\tstatic long power(long x, long n)\n\t\t{\n\t\t\tif( n == 0 )\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\n\t\t\tif( n % 2 == 0 )\n\t\t\t{\n\t\t\t\tlong X = (x * x) % MOD;\n\t\t\t\treturn power(X, n/2);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn (x * power(x, n-1)) % MOD;\n\t\t\t}\n\t\t}\n\t}\n\t\n\tstatic class MyScanner\n\t{\n\t\tprivate BufferedReader in;\n\t\tprivate StringTokenizer st;\n\t\t\n\t\tpublic MyScanner(InputStream stream)\n\t\t{\n\t\t\tin = new BufferedReader(new InputStreamReader(stream));\n\t\t}\n\t\t\n\t\tpublic String next()\n\t\t{\n\t\t\twhile( st == null || !st.hasMoreTokens() )\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tString rl = in.readLine();\n\t\t\t\t\tif( rl == null )\n\t\t\t\t\t{\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(rl);\n\t\t\t\t}\n\t\t\t\tcatch( IOException e )\n\t\t\t\t{\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\t\n\t\tpublic int nextInt()\n\t\t{\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tpublic long nextLong()\n\t\t{\n\t\t\treturn Long.parseLong(next());\n\t\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.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main\n{\n\tstatic int MOD = (int) 1e9 + 7;\n\t\n\tstatic interface Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out);\n\t}\n\t\n\tpublic static void main(String[] args)\n\t{\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tMyScanner in = new MyScanner(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tSolver solver = new A();\n\t\tsolver.solve(1, in, out);\n\t\tout.close();\n\t}\n\t\n\tstatic class F implements Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t}\n\t}\n\n\tstatic class E implements Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t}\n\t}\n\n\tstatic class D implements Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t}\n\t}\n\t\n\tstatic class C implements Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t}\n\t}\n\t\n\tstatic class B implements Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t}\n\t}\n\n\tstatic class A implements Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t\tint n = in.nextInt();\n\t\t\tint x = in.nextInt();\n\t\t\tint t = in.nextInt();\n\t\t\tout.println(Calc.ceilInt(n, x) * t);\n\t\t}\n\t}\n\t\n\tstatic class FenwickTree\n\t{\n\t\t// bit[1] ~ bit[n]\n\t\tlong[] bit; // = new long[n+1];\n\t\t\n\t\tpublic FenwickTree(int n)\n\t\t{\n\t\t\tbit = new long[n+1];\n\t\t}\n\t\t\n\t\t// bit[1] + ... + bit[r]\n\t\tlong sum(int r)\n\t\t{\n\t\t\tlong s = 0;\n\t\t\tfor( int i=r; i>0; i-=(i & -i) )\n\t\t\t{\n\t\t\t\ts += bit[i];\n\t\t\t}\n\t\t\treturn s;\n\t\t}\n\t\t\n\t\tvoid add(int idx, int x)\n\t\t{\n\t\t\tfor( int i=idx; i<bit.length; i+=(i & -i) )\n\t\t\t{\n\t\t\t\tbit[i] += x;\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic class UnionFind\n\t{\n\t\tint[] par;\n\t\tint[] n_nodes;\n\t\tint max = 1;\n\t\t\n\t\tpublic UnionFind(int n)\n\t\t{\n\t\t\tpar = new int[n];\n\t\t\tn_nodes = new int[n];\n\t\t\tfor( int i=0; i<n; i++ )\n\t\t\t{\n\t\t\t\tpar[i] = i;\n\t\t\t\tn_nodes[i] = 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint root(int x)\n\t\t{\n\t\t\tif( par[x] == x ) return x;\n\t\t\treturn par[x] = root(par[x]);\n\t\t}\n\t\t\n\t\tvoid unite(int x, int y)\n\t\t{\n\t\t\tint rx = root(x);\n\t\t\tint ry = root(y);\n\t\t\tif( rx == ry ) return;\n\t\t\tpar[rx] = ry;\n\t\t\tn_nodes[ry] += n_nodes[rx];\n\t\t\tmax = Math.max(max, n_nodes[ry]);\n\t\t}\n\t\t\n\t\tboolean same(int x, int y)\n\t\t{\n\t\t\tint rx = root(x);\n\t\t\tint ry = root(y);\n\t\t\treturn rx == ry;\n\t\t}\n\t}\n\t\n\tstatic class Calc\n\t{\n\t\tstatic int gcd(int a, int b)\n\t\t{\n\t\t\tif( a == 0 )\n\t\t\t{\n\t\t\t\treturn b;\n\t\t\t}\n\t\t\treturn gcd(b%a, a);\n\t\t}\n\t\t\n\t\tstatic int ceilInt(int a, int b)\n\t\t{\n\t\t\treturn (a%b==0 ? a/b : a/b+1);\n\t\t}\n\n\t\tstatic long power(long x, long n)\n\t\t{\n\t\t\tif( n == 0 )\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\n\t\t\tif( n % 2 == 0 )\n\t\t\t{\n\t\t\t\tlong X = (x * x) % MOD;\n\t\t\t\treturn power(X, n/2);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn (x * power(x, n-1)) % MOD;\n\t\t\t}\n\t\t}\n\t}\n\t\n\tstatic class MyScanner\n\t{\n\t\tprivate BufferedReader in;\n\t\tprivate StringTokenizer st;\n\t\t\n\t\tpublic MyScanner(InputStream stream)\n\t\t{\n\t\t\tin = new BufferedReader(new InputStreamReader(stream));\n\t\t}\n\t\t\n\t\tpublic String next()\n\t\t{\n\t\t\twhile( st == null || !st.hasMoreTokens() )\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tString rl = in.readLine();\n\t\t\t\t\tif( rl == null )\n\t\t\t\t\t{\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(rl);\n\t\t\t\t}\n\t\t\t\tcatch( IOException e )\n\t\t\t\t{\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\t\n\t\tpublic int nextInt()\n\t\t{\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tpublic long nextLong()\n\t\t{\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t}\n}",
"Main",
"static int MOD = (int) 1e9 + 7;",
"MOD",
"(int) 1e9 + 7",
"(int) 1e9",
"7",
"public static void main(String[] args)\n\t{\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tMyScanner in = new MyScanner(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tSolver solver = new A();\n\t\tsolver.solve(1, in, out);\n\t\tout.close();\n\t}",
"main",
"{\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tMyScanner in = new MyScanner(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tSolver solver = new A();\n\t\tsolver.solve(1, in, out);\n\t\tout.close();\n\t}",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"MyScanner in = new MyScanner(inputStream);",
"in",
"new MyScanner(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"Solver solver = new A();",
"solver",
"new A()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static interface Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out);\n\t}",
"Solver",
"public void solve(int testNumber, MyScanner in, PrintWriter out);",
"solve",
"int testNumber",
"testNumber",
"MyScanner in",
"in",
"PrintWriter out",
"out",
"static class F implements Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t}\n\t}",
"F",
"public void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t}",
"solve",
"{\n\t\t}",
"int testNumber",
"testNumber",
"MyScanner in",
"in",
"PrintWriter out",
"out",
"Solver",
"static class E implements Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t}\n\t}",
"E",
"public void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t}",
"solve",
"{\n\t\t}",
"int testNumber",
"testNumber",
"MyScanner in",
"in",
"PrintWriter out",
"out",
"Solver",
"static class D implements Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t}\n\t}",
"D",
"public void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t}",
"solve",
"{\n\t\t}",
"int testNumber",
"testNumber",
"MyScanner in",
"in",
"PrintWriter out",
"out",
"Solver",
"static class C implements Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t}\n\t}",
"C",
"public void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t}",
"solve",
"{\n\t\t}",
"int testNumber",
"testNumber",
"MyScanner in",
"in",
"PrintWriter out",
"out",
"Solver",
"static class B implements Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t}\n\t}",
"B",
"public void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t}",
"solve",
"{\n\t\t}",
"int testNumber",
"testNumber",
"MyScanner in",
"in",
"PrintWriter out",
"out",
"Solver",
"static class A implements Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t\tint n = in.nextInt();\n\t\t\tint x = in.nextInt();\n\t\t\tint t = in.nextInt();\n\t\t\tout.println(Calc.ceilInt(n, x) * t);\n\t\t}\n\t}",
"A",
"public void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t\tint n = in.nextInt();\n\t\t\tint x = in.nextInt();\n\t\t\tint t = in.nextInt();\n\t\t\tout.println(Calc.ceilInt(n, x) * t);\n\t\t}",
"solve",
"{\n\t\t\tint n = in.nextInt();\n\t\t\tint x = in.nextInt();\n\t\t\tint t = in.nextInt();\n\t\t\tout.println(Calc.ceilInt(n, x) * t);\n\t\t}",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"int x = in.nextInt();",
"x",
"in.nextInt()",
"in.nextInt",
"in",
"int t = in.nextInt();",
"t",
"in.nextInt()",
"in.nextInt",
"in",
"out.println(Calc.ceilInt(n, x) * t)",
"out.println",
"out",
"Calc.ceilInt(n, x) * t",
"Calc.ceilInt(n, x)",
"Calc.ceilInt",
"Calc",
"n",
"x",
"t",
"int testNumber",
"testNumber",
"MyScanner in",
"in",
"PrintWriter out",
"out",
"Solver",
"static class FenwickTree\n\t{\n\t\t// bit[1] ~ bit[n]\n\t\tlong[] bit; // = new long[n+1];\n\t\t\n\t\tpublic FenwickTree(int n)\n\t\t{\n\t\t\tbit = new long[n+1];\n\t\t}\n\t\t\n\t\t// bit[1] + ... + bit[r]\n\t\tlong sum(int r)\n\t\t{\n\t\t\tlong s = 0;\n\t\t\tfor( int i=r; i>0; i-=(i & -i) )\n\t\t\t{\n\t\t\t\ts += bit[i];\n\t\t\t}\n\t\t\treturn s;\n\t\t}\n\t\t\n\t\tvoid add(int idx, int x)\n\t\t{\n\t\t\tfor( int i=idx; i<bit.length; i+=(i & -i) )\n\t\t\t{\n\t\t\t\tbit[i] += x;\n\t\t\t}\n\t\t}\n\t}",
"FenwickTree",
"// bit[1] ~ bit[n]\n\t\tlong[] bit; // = new long[n+1];",
"bit",
"public FenwickTree(int n)\n\t\t{\n\t\t\tbit = new long[n+1];\n\t\t}",
"FenwickTree",
"{\n\t\t\tbit = new long[n+1];\n\t\t}",
"bit = new long[n+1]",
"bit",
"new long[n+1]",
"n+1",
"n",
"1",
"int n",
"n",
"// bit[1] + ... + bit[r]\n\t\tlong sum(int r)\n\t\t{\n\t\t\tlong s = 0;\n\t\t\tfor( int i=r; i>0; i-=(i & -i) )\n\t\t\t{\n\t\t\t\ts += bit[i];\n\t\t\t}\n\t\t\treturn s;\n\t\t}",
"sum",
"{\n\t\t\tlong s = 0;\n\t\t\tfor( int i=r; i>0; i-=(i & -i) )\n\t\t\t{\n\t\t\t\ts += bit[i];\n\t\t\t}\n\t\t\treturn s;\n\t\t}",
"long s = 0;",
"s",
"0",
"for( int i=r; i>0; i-=(i & -i) )\n\t\t\t{\n\t\t\t\ts += bit[i];\n\t\t\t}",
"int i=r;",
"int i=r;",
"i",
"r",
"i>0",
"i",
"0",
"i-=(i & -i)",
"i-=(i & -i)",
"i",
"(i & -i)",
"i",
"-i",
"i",
"{\n\t\t\t\ts += bit[i];\n\t\t\t}",
"{\n\t\t\t\ts += bit[i];\n\t\t\t}",
"s += bit[i]",
"s",
"bit[i]",
"bit",
"i",
"return s;",
"s",
"int r",
"r",
"void add(int idx, int x)\n\t\t{\n\t\t\tfor( int i=idx; i<bit.length; i+=(i & -i) )\n\t\t\t{\n\t\t\t\tbit[i] += x;\n\t\t\t}\n\t\t}",
"add",
"{\n\t\t\tfor( int i=idx; i<bit.length; i+=(i & -i) )\n\t\t\t{\n\t\t\t\tbit[i] += x;\n\t\t\t}\n\t\t}",
"for( int i=idx; i<bit.length; i+=(i & -i) )\n\t\t\t{\n\t\t\t\tbit[i] += x;\n\t\t\t}",
"int i=idx;",
"int i=idx;",
"i",
"idx",
"i<bit.length",
"i",
"bit.length",
"bit",
"bit.length",
"i+=(i & -i)",
"i+=(i & -i)",
"i",
"(i & -i)",
"i",
"-i",
"i",
"{\n\t\t\t\tbit[i] += x;\n\t\t\t}",
"{\n\t\t\t\tbit[i] += x;\n\t\t\t}",
"bit[i] += x",
"bit[i]",
"bit",
"i",
"x",
"int idx",
"idx",
"int x",
"x",
"static class UnionFind\n\t{\n\t\tint[] par;\n\t\tint[] n_nodes;\n\t\tint max = 1;\n\t\t\n\t\tpublic UnionFind(int n)\n\t\t{\n\t\t\tpar = new int[n];\n\t\t\tn_nodes = new int[n];\n\t\t\tfor( int i=0; i<n; i++ )\n\t\t\t{\n\t\t\t\tpar[i] = i;\n\t\t\t\tn_nodes[i] = 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint root(int x)\n\t\t{\n\t\t\tif( par[x] == x ) return x;\n\t\t\treturn par[x] = root(par[x]);\n\t\t}\n\t\t\n\t\tvoid unite(int x, int y)\n\t\t{\n\t\t\tint rx = root(x);\n\t\t\tint ry = root(y);\n\t\t\tif( rx == ry ) return;\n\t\t\tpar[rx] = ry;\n\t\t\tn_nodes[ry] += n_nodes[rx];\n\t\t\tmax = Math.max(max, n_nodes[ry]);\n\t\t}\n\t\t\n\t\tboolean same(int x, int y)\n\t\t{\n\t\t\tint rx = root(x);\n\t\t\tint ry = root(y);\n\t\t\treturn rx == ry;\n\t\t}\n\t}",
"UnionFind",
"int[] par;",
"par",
"int[] n_nodes;",
"n_nodes",
"int max = 1;",
"max",
"1",
"public UnionFind(int n)\n\t\t{\n\t\t\tpar = new int[n];\n\t\t\tn_nodes = new int[n];\n\t\t\tfor( int i=0; i<n; i++ )\n\t\t\t{\n\t\t\t\tpar[i] = i;\n\t\t\t\tn_nodes[i] = 1;\n\t\t\t}\n\t\t}",
"UnionFind",
"{\n\t\t\tpar = new int[n];\n\t\t\tn_nodes = new int[n];\n\t\t\tfor( int i=0; i<n; i++ )\n\t\t\t{\n\t\t\t\tpar[i] = i;\n\t\t\t\tn_nodes[i] = 1;\n\t\t\t}\n\t\t}",
"par = new int[n]",
"par",
"new int[n]",
"n",
"n_nodes = new int[n]",
"n_nodes",
"new int[n]",
"n",
"for( int i=0; i<n; i++ )\n\t\t\t{\n\t\t\t\tpar[i] = i;\n\t\t\t\tn_nodes[i] = 1;\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tpar[i] = i;\n\t\t\t\tn_nodes[i] = 1;\n\t\t\t}",
"{\n\t\t\t\tpar[i] = i;\n\t\t\t\tn_nodes[i] = 1;\n\t\t\t}",
"par[i] = i",
"par[i]",
"par",
"i",
"i",
"n_nodes[i] = 1",
"n_nodes[i]",
"n_nodes",
"i",
"1",
"int n",
"n",
"int root(int x)\n\t\t{\n\t\t\tif( par[x] == x ) return x;\n\t\t\treturn par[x] = root(par[x]);\n\t\t}",
"root",
"{\n\t\t\tif( par[x] == x ) return x;\n\t\t\treturn par[x] = root(par[x]);\n\t\t}",
"if( par[x] == x ) return x;",
"par[x] == x",
"par[x]",
"par",
"x",
"x",
"return x;",
"x",
"return par[x] = root(par[x]);",
"par[x] = root(par[x])",
"par[x]",
"par",
"x",
"root(par[x])",
"root",
"par[x]",
"par",
"x",
"int x",
"x",
"void unite(int x, int y)\n\t\t{\n\t\t\tint rx = root(x);\n\t\t\tint ry = root(y);\n\t\t\tif( rx == ry ) return;\n\t\t\tpar[rx] = ry;\n\t\t\tn_nodes[ry] += n_nodes[rx];\n\t\t\tmax = Math.max(max, n_nodes[ry]);\n\t\t}",
"unite",
"{\n\t\t\tint rx = root(x);\n\t\t\tint ry = root(y);\n\t\t\tif( rx == ry ) return;\n\t\t\tpar[rx] = ry;\n\t\t\tn_nodes[ry] += n_nodes[rx];\n\t\t\tmax = Math.max(max, n_nodes[ry]);\n\t\t}",
"int rx = root(x);",
"rx",
"root(x)",
"root",
"x",
"int ry = root(y);",
"ry",
"root(y)",
"root",
"y",
"if( rx == ry ) return;",
"rx == ry",
"rx",
"ry",
"return;",
"par[rx] = ry",
"par[rx]",
"par",
"rx",
"ry",
"n_nodes[ry] += n_nodes[rx]",
"n_nodes[ry]",
"n_nodes",
"ry",
"n_nodes[rx]",
"n_nodes",
"rx",
"max = Math.max(max, n_nodes[ry])",
"max",
"Math.max(max, n_nodes[ry])",
"Math.max",
"Math",
"max",
"n_nodes[ry]",
"n_nodes",
"ry",
"int x",
"x",
"int y",
"y",
"boolean same(int x, int y)\n\t\t{\n\t\t\tint rx = root(x);\n\t\t\tint ry = root(y);\n\t\t\treturn rx == ry;\n\t\t}",
"same",
"{\n\t\t\tint rx = root(x);\n\t\t\tint ry = root(y);\n\t\t\treturn rx == ry;\n\t\t}",
"int rx = root(x);",
"rx",
"root(x)",
"root",
"x",
"int ry = root(y);",
"ry",
"root(y)",
"root",
"y",
"return rx == ry;",
"rx == ry",
"rx",
"ry",
"int x",
"x",
"int y",
"y",
"static class Calc\n\t{\n\t\tstatic int gcd(int a, int b)\n\t\t{\n\t\t\tif( a == 0 )\n\t\t\t{\n\t\t\t\treturn b;\n\t\t\t}\n\t\t\treturn gcd(b%a, a);\n\t\t}\n\t\t\n\t\tstatic int ceilInt(int a, int b)\n\t\t{\n\t\t\treturn (a%b==0 ? a/b : a/b+1);\n\t\t}\n\n\t\tstatic long power(long x, long n)\n\t\t{\n\t\t\tif( n == 0 )\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\n\t\t\tif( n % 2 == 0 )\n\t\t\t{\n\t\t\t\tlong X = (x * x) % MOD;\n\t\t\t\treturn power(X, n/2);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn (x * power(x, n-1)) % MOD;\n\t\t\t}\n\t\t}\n\t}",
"Calc",
"static int gcd(int a, int b)\n\t\t{\n\t\t\tif( a == 0 )\n\t\t\t{\n\t\t\t\treturn b;\n\t\t\t}\n\t\t\treturn gcd(b%a, a);\n\t\t}",
"gcd",
"{\n\t\t\tif( a == 0 )\n\t\t\t{\n\t\t\t\treturn b;\n\t\t\t}\n\t\t\treturn gcd(b%a, a);\n\t\t}",
"if( a == 0 )\n\t\t\t{\n\t\t\t\treturn b;\n\t\t\t}",
"a == 0",
"a",
"0",
"{\n\t\t\t\treturn b;\n\t\t\t}",
"return b;",
"b",
"return gcd(b%a, a);",
"gcd(b%a, a)",
"gcd",
"b%a",
"b",
"a",
"a",
"int a",
"a",
"int b",
"b",
"static int ceilInt(int a, int b)\n\t\t{\n\t\t\treturn (a%b==0 ? a/b : a/b+1);\n\t\t}",
"ceilInt",
"{\n\t\t\treturn (a%b==0 ? a/b : a/b+1);\n\t\t}",
"return (a%b==0 ? a/b : a/b+1);",
"(a%b==0 ? a/b : a/b+1)",
"a%b==0",
"a%b",
"a",
"b",
"0",
"a/b",
"a",
"b",
"a/b+1",
"a/b",
"a",
"b",
"1",
"int a",
"a",
"int b",
"b",
"static long power(long x, long n)\n\t\t{\n\t\t\tif( n == 0 )\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\n\t\t\tif( n % 2 == 0 )\n\t\t\t{\n\t\t\t\tlong X = (x * x) % MOD;\n\t\t\t\treturn power(X, n/2);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn (x * power(x, n-1)) % MOD;\n\t\t\t}\n\t\t}",
"power",
"{\n\t\t\tif( n == 0 )\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\n\t\t\tif( n % 2 == 0 )\n\t\t\t{\n\t\t\t\tlong X = (x * x) % MOD;\n\t\t\t\treturn power(X, n/2);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn (x * power(x, n-1)) % MOD;\n\t\t\t}\n\t\t}",
"if( n == 0 )\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}",
"n == 0",
"n",
"0",
"{\n\t\t\t\treturn 1;\n\t\t\t}",
"return 1;",
"1",
"if( n % 2 == 0 )\n\t\t\t{\n\t\t\t\tlong X = (x * x) % MOD;\n\t\t\t\treturn power(X, n/2);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn (x * power(x, n-1)) % MOD;\n\t\t\t}",
"n % 2 == 0",
"n % 2",
"n",
"2",
"0",
"{\n\t\t\t\tlong X = (x * x) % MOD;\n\t\t\t\treturn power(X, n/2);\n\t\t\t}",
"long X = (x * x) % MOD;",
"X",
"(x * x) % MOD",
"(x * x)",
"x",
"x",
"MOD",
"return power(X, n/2);",
"power(X, n/2)",
"power",
"X",
"n/2",
"n",
"2",
"{\n\t\t\t\treturn (x * power(x, n-1)) % MOD;\n\t\t\t}",
"return (x * power(x, n-1)) % MOD;",
"(x * power(x, n-1)) % MOD",
"(x * power(x, n-1))",
"x",
"power(x, n-1)",
"power",
"x",
"n-1",
"n",
"1",
"MOD",
"long x",
"x",
"long n",
"n",
"static class MyScanner\n\t{\n\t\tprivate BufferedReader in;\n\t\tprivate StringTokenizer st;\n\t\t\n\t\tpublic MyScanner(InputStream stream)\n\t\t{\n\t\t\tin = new BufferedReader(new InputStreamReader(stream));\n\t\t}\n\t\t\n\t\tpublic String next()\n\t\t{\n\t\t\twhile( st == null || !st.hasMoreTokens() )\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tString rl = in.readLine();\n\t\t\t\t\tif( rl == null )\n\t\t\t\t\t{\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(rl);\n\t\t\t\t}\n\t\t\t\tcatch( IOException e )\n\t\t\t\t{\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\t\n\t\tpublic int nextInt()\n\t\t{\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tpublic long nextLong()\n\t\t{\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t}",
"MyScanner",
"private BufferedReader in;",
"in",
"private StringTokenizer st;",
"st",
"public MyScanner(InputStream stream)\n\t\t{\n\t\t\tin = new BufferedReader(new InputStreamReader(stream));\n\t\t}",
"MyScanner",
"{\n\t\t\tin = new BufferedReader(new InputStreamReader(stream));\n\t\t}",
"in = new BufferedReader(new InputStreamReader(stream))",
"in",
"new BufferedReader(new InputStreamReader(stream))",
"InputStream stream",
"stream",
"public String next()\n\t\t{\n\t\t\twhile( st == null || !st.hasMoreTokens() )\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tString rl = in.readLine();\n\t\t\t\t\tif( rl == null )\n\t\t\t\t\t{\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(rl);\n\t\t\t\t}\n\t\t\t\tcatch( IOException e )\n\t\t\t\t{\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"next",
"{\n\t\t\twhile( st == null || !st.hasMoreTokens() )\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tString rl = in.readLine();\n\t\t\t\t\tif( rl == null )\n\t\t\t\t\t{\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(rl);\n\t\t\t\t}\n\t\t\t\tcatch( IOException e )\n\t\t\t\t{\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"while( st == null || !st.hasMoreTokens() )\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tString rl = in.readLine();\n\t\t\t\t\tif( rl == null )\n\t\t\t\t\t{\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(rl);\n\t\t\t\t}\n\t\t\t\tcatch( IOException e )\n\t\t\t\t{\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tString rl = in.readLine();\n\t\t\t\t\tif( rl == null )\n\t\t\t\t\t{\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(rl);\n\t\t\t\t}\n\t\t\t\tcatch( IOException e )\n\t\t\t\t{\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}",
"try\n\t\t\t\t{\n\t\t\t\t\tString rl = in.readLine();\n\t\t\t\t\tif( rl == null )\n\t\t\t\t\t{\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(rl);\n\t\t\t\t}\n\t\t\t\tcatch( IOException e )\n\t\t\t\t{\n\t\t\t\t\treturn null;\n\t\t\t\t}",
"catch( IOException e )\n\t\t\t\t{\n\t\t\t\t\treturn null;\n\t\t\t\t}",
"IOException e",
"{\n\t\t\t\t\treturn null;\n\t\t\t\t}",
"return null;",
"null",
"{\n\t\t\t\t\tString rl = in.readLine();\n\t\t\t\t\tif( rl == null )\n\t\t\t\t\t{\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(rl);\n\t\t\t\t}",
"String rl = in.readLine();",
"rl",
"in.readLine()",
"in.readLine",
"in",
"if( rl == null )\n\t\t\t\t\t{\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}",
"rl == null",
"rl",
"null",
"{\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}",
"return null;",
"null",
"st = new StringTokenizer(rl)",
"st",
"new StringTokenizer(rl)",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public int nextInt()\n\t\t{\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"nextInt",
"{\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public long nextLong()\n\t\t{\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"nextLong",
"{\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public class Main\n{\n\tstatic int MOD = (int) 1e9 + 7;\n\t\n\tstatic interface Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out);\n\t}\n\t\n\tpublic static void main(String[] args)\n\t{\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tMyScanner in = new MyScanner(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tSolver solver = new A();\n\t\tsolver.solve(1, in, out);\n\t\tout.close();\n\t}\n\t\n\tstatic class F implements Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t}\n\t}\n\n\tstatic class E implements Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t}\n\t}\n\n\tstatic class D implements Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t}\n\t}\n\t\n\tstatic class C implements Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t}\n\t}\n\t\n\tstatic class B implements Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t}\n\t}\n\n\tstatic class A implements Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t\tint n = in.nextInt();\n\t\t\tint x = in.nextInt();\n\t\t\tint t = in.nextInt();\n\t\t\tout.println(Calc.ceilInt(n, x) * t);\n\t\t}\n\t}\n\t\n\tstatic class FenwickTree\n\t{\n\t\t// bit[1] ~ bit[n]\n\t\tlong[] bit; // = new long[n+1];\n\t\t\n\t\tpublic FenwickTree(int n)\n\t\t{\n\t\t\tbit = new long[n+1];\n\t\t}\n\t\t\n\t\t// bit[1] + ... + bit[r]\n\t\tlong sum(int r)\n\t\t{\n\t\t\tlong s = 0;\n\t\t\tfor( int i=r; i>0; i-=(i & -i) )\n\t\t\t{\n\t\t\t\ts += bit[i];\n\t\t\t}\n\t\t\treturn s;\n\t\t}\n\t\t\n\t\tvoid add(int idx, int x)\n\t\t{\n\t\t\tfor( int i=idx; i<bit.length; i+=(i & -i) )\n\t\t\t{\n\t\t\t\tbit[i] += x;\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic class UnionFind\n\t{\n\t\tint[] par;\n\t\tint[] n_nodes;\n\t\tint max = 1;\n\t\t\n\t\tpublic UnionFind(int n)\n\t\t{\n\t\t\tpar = new int[n];\n\t\t\tn_nodes = new int[n];\n\t\t\tfor( int i=0; i<n; i++ )\n\t\t\t{\n\t\t\t\tpar[i] = i;\n\t\t\t\tn_nodes[i] = 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint root(int x)\n\t\t{\n\t\t\tif( par[x] == x ) return x;\n\t\t\treturn par[x] = root(par[x]);\n\t\t}\n\t\t\n\t\tvoid unite(int x, int y)\n\t\t{\n\t\t\tint rx = root(x);\n\t\t\tint ry = root(y);\n\t\t\tif( rx == ry ) return;\n\t\t\tpar[rx] = ry;\n\t\t\tn_nodes[ry] += n_nodes[rx];\n\t\t\tmax = Math.max(max, n_nodes[ry]);\n\t\t}\n\t\t\n\t\tboolean same(int x, int y)\n\t\t{\n\t\t\tint rx = root(x);\n\t\t\tint ry = root(y);\n\t\t\treturn rx == ry;\n\t\t}\n\t}\n\t\n\tstatic class Calc\n\t{\n\t\tstatic int gcd(int a, int b)\n\t\t{\n\t\t\tif( a == 0 )\n\t\t\t{\n\t\t\t\treturn b;\n\t\t\t}\n\t\t\treturn gcd(b%a, a);\n\t\t}\n\t\t\n\t\tstatic int ceilInt(int a, int b)\n\t\t{\n\t\t\treturn (a%b==0 ? a/b : a/b+1);\n\t\t}\n\n\t\tstatic long power(long x, long n)\n\t\t{\n\t\t\tif( n == 0 )\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\n\t\t\tif( n % 2 == 0 )\n\t\t\t{\n\t\t\t\tlong X = (x * x) % MOD;\n\t\t\t\treturn power(X, n/2);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn (x * power(x, n-1)) % MOD;\n\t\t\t}\n\t\t}\n\t}\n\t\n\tstatic class MyScanner\n\t{\n\t\tprivate BufferedReader in;\n\t\tprivate StringTokenizer st;\n\t\t\n\t\tpublic MyScanner(InputStream stream)\n\t\t{\n\t\t\tin = new BufferedReader(new InputStreamReader(stream));\n\t\t}\n\t\t\n\t\tpublic String next()\n\t\t{\n\t\t\twhile( st == null || !st.hasMoreTokens() )\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tString rl = in.readLine();\n\t\t\t\t\tif( rl == null )\n\t\t\t\t\t{\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(rl);\n\t\t\t\t}\n\t\t\t\tcatch( IOException e )\n\t\t\t\t{\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\t\n\t\tpublic int nextInt()\n\t\t{\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tpublic long nextLong()\n\t\t{\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t}\n}",
"public class Main\n{\n\tstatic int MOD = (int) 1e9 + 7;\n\t\n\tstatic interface Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out);\n\t}\n\t\n\tpublic static void main(String[] args)\n\t{\n\t\tInputStream inputStream = System.in;\n\t\tOutputStream outputStream = System.out;\n\t\tMyScanner in = new MyScanner(inputStream);\n\t\tPrintWriter out = new PrintWriter(outputStream);\n\t\tSolver solver = new A();\n\t\tsolver.solve(1, in, out);\n\t\tout.close();\n\t}\n\t\n\tstatic class F implements Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t}\n\t}\n\n\tstatic class E implements Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t}\n\t}\n\n\tstatic class D implements Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t}\n\t}\n\t\n\tstatic class C implements Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t}\n\t}\n\t\n\tstatic class B implements Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t}\n\t}\n\n\tstatic class A implements Solver\n\t{\n\t\tpublic void solve(int testNumber, MyScanner in, PrintWriter out)\n\t\t{\n\t\t\tint n = in.nextInt();\n\t\t\tint x = in.nextInt();\n\t\t\tint t = in.nextInt();\n\t\t\tout.println(Calc.ceilInt(n, x) * t);\n\t\t}\n\t}\n\t\n\tstatic class FenwickTree\n\t{\n\t\t// bit[1] ~ bit[n]\n\t\tlong[] bit; // = new long[n+1];\n\t\t\n\t\tpublic FenwickTree(int n)\n\t\t{\n\t\t\tbit = new long[n+1];\n\t\t}\n\t\t\n\t\t// bit[1] + ... + bit[r]\n\t\tlong sum(int r)\n\t\t{\n\t\t\tlong s = 0;\n\t\t\tfor( int i=r; i>0; i-=(i & -i) )\n\t\t\t{\n\t\t\t\ts += bit[i];\n\t\t\t}\n\t\t\treturn s;\n\t\t}\n\t\t\n\t\tvoid add(int idx, int x)\n\t\t{\n\t\t\tfor( int i=idx; i<bit.length; i+=(i & -i) )\n\t\t\t{\n\t\t\t\tbit[i] += x;\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic class UnionFind\n\t{\n\t\tint[] par;\n\t\tint[] n_nodes;\n\t\tint max = 1;\n\t\t\n\t\tpublic UnionFind(int n)\n\t\t{\n\t\t\tpar = new int[n];\n\t\t\tn_nodes = new int[n];\n\t\t\tfor( int i=0; i<n; i++ )\n\t\t\t{\n\t\t\t\tpar[i] = i;\n\t\t\t\tn_nodes[i] = 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint root(int x)\n\t\t{\n\t\t\tif( par[x] == x ) return x;\n\t\t\treturn par[x] = root(par[x]);\n\t\t}\n\t\t\n\t\tvoid unite(int x, int y)\n\t\t{\n\t\t\tint rx = root(x);\n\t\t\tint ry = root(y);\n\t\t\tif( rx == ry ) return;\n\t\t\tpar[rx] = ry;\n\t\t\tn_nodes[ry] += n_nodes[rx];\n\t\t\tmax = Math.max(max, n_nodes[ry]);\n\t\t}\n\t\t\n\t\tboolean same(int x, int y)\n\t\t{\n\t\t\tint rx = root(x);\n\t\t\tint ry = root(y);\n\t\t\treturn rx == ry;\n\t\t}\n\t}\n\t\n\tstatic class Calc\n\t{\n\t\tstatic int gcd(int a, int b)\n\t\t{\n\t\t\tif( a == 0 )\n\t\t\t{\n\t\t\t\treturn b;\n\t\t\t}\n\t\t\treturn gcd(b%a, a);\n\t\t}\n\t\t\n\t\tstatic int ceilInt(int a, int b)\n\t\t{\n\t\t\treturn (a%b==0 ? a/b : a/b+1);\n\t\t}\n\n\t\tstatic long power(long x, long n)\n\t\t{\n\t\t\tif( n == 0 )\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\n\t\t\tif( n % 2 == 0 )\n\t\t\t{\n\t\t\t\tlong X = (x * x) % MOD;\n\t\t\t\treturn power(X, n/2);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn (x * power(x, n-1)) % MOD;\n\t\t\t}\n\t\t}\n\t}\n\t\n\tstatic class MyScanner\n\t{\n\t\tprivate BufferedReader in;\n\t\tprivate StringTokenizer st;\n\t\t\n\t\tpublic MyScanner(InputStream stream)\n\t\t{\n\t\t\tin = new BufferedReader(new InputStreamReader(stream));\n\t\t}\n\t\t\n\t\tpublic String next()\n\t\t{\n\t\t\twhile( st == null || !st.hasMoreTokens() )\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tString rl = in.readLine();\n\t\t\t\t\tif( rl == null )\n\t\t\t\t\t{\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\tst = new StringTokenizer(rl);\n\t\t\t\t}\n\t\t\t\tcatch( IOException e )\n\t\t\t\t{\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\t\n\t\tpublic int nextInt()\n\t\t{\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tpublic long nextLong()\n\t\t{\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;
public class Main
{
static int MOD = (int) 1e9 + 7;
static interface Solver
{
public void solve(int testNumber, MyScanner in, PrintWriter out);
}
public static void main(String[] args)
{
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
MyScanner in = new MyScanner(inputStream);
PrintWriter out = new PrintWriter(outputStream);
Solver solver = new A();
solver.solve(1, in, out);
out.close();
}
static class F implements Solver
{
public void solve(int testNumber, MyScanner in, PrintWriter out)
{
}
}
static class E implements Solver
{
public void solve(int testNumber, MyScanner in, PrintWriter out)
{
}
}
static class D implements Solver
{
public void solve(int testNumber, MyScanner in, PrintWriter out)
{
}
}
static class C implements Solver
{
public void solve(int testNumber, MyScanner in, PrintWriter out)
{
}
}
static class B implements Solver
{
public void solve(int testNumber, MyScanner in, PrintWriter out)
{
}
}
static class A implements Solver
{
public void solve(int testNumber, MyScanner in, PrintWriter out)
{
int n = in.nextInt();
int x = in.nextInt();
int t = in.nextInt();
out.println(Calc.ceilInt(n, x) * t);
}
}
static class FenwickTree
{
// bit[1] ~ bit[n]
long[] bit; // = new long[n+1];
public FenwickTree(int n)
{
bit = new long[n+1];
}
// bit[1] + ... + bit[r]
long sum(int r)
{
long s = 0;
for( int i=r; i>0; i-=(i & -i) )
{
s += bit[i];
}
return s;
}
void add(int idx, int x)
{
for( int i=idx; i<bit.length; i+=(i & -i) )
{
bit[i] += x;
}
}
}
static class UnionFind
{
int[] par;
int[] n_nodes;
int max = 1;
public UnionFind(int n)
{
par = new int[n];
n_nodes = new int[n];
for( int i=0; i<n; i++ )
{
par[i] = i;
n_nodes[i] = 1;
}
}
int root(int x)
{
if( par[x] == x ) return x;
return par[x] = root(par[x]);
}
void unite(int x, int y)
{
int rx = root(x);
int ry = root(y);
if( rx == ry ) return;
par[rx] = ry;
n_nodes[ry] += n_nodes[rx];
max = Math.max(max, n_nodes[ry]);
}
boolean same(int x, int y)
{
int rx = root(x);
int ry = root(y);
return rx == ry;
}
}
static class Calc
{
static int gcd(int a, int b)
{
if( a == 0 )
{
return b;
}
return gcd(b%a, a);
}
static int ceilInt(int a, int b)
{
return (a%b==0 ? a/b : a/b+1);
}
static long power(long x, long n)
{
if( n == 0 )
{
return 1;
}
if( n % 2 == 0 )
{
long X = (x * x) % MOD;
return power(X, n/2);
}
else
{
return (x * power(x, n-1)) % MOD;
}
}
}
static class MyScanner
{
private BufferedReader in;
private StringTokenizer st;
public MyScanner(InputStream stream)
{
in = new BufferedReader(new InputStreamReader(stream));
}
public String next()
{
while( st == null || !st.hasMoreTokens() )
{
try
{
String rl = in.readLine();
if( rl == null )
{
return null;
}
st = new StringTokenizer(rl);
}
catch( IOException e )
{
return null;
}
}
return st.nextToken();
}
public int nextInt()
{
return Integer.parseInt(next());
}
public long nextLong()
{
return Long.parseLong(next());
}
}
}
|
[
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,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
14,
2,
2,
13,
13,
17,
40,
13,
4,
18,
18,
13,
13,
2,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
13,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
17,
14,
2,
2,
2,
2,
13,
17,
17,
2,
13,
17,
2,
13,
17,
29,
17,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
13,
1,
0,
13,
17,
30,
30,
14,
2,
2,
13,
13,
17,
29,
17,
29,
17,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
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
],
[
230,
20
],
[
230,
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
],
[
34,
35
],
[
35,
36
],
[
23,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
23,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
23,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
47,
53
],
[
53,
54
],
[
23,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
21,
63
],
[
63,
64
],
[
230,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
73,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
76,
79
],
[
79,
80
],
[
79,
81
],
[
65,
82
],
[
82,
83
],
[
65,
84
],
[
84,
85
],
[
230,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
93,
94
],
[
89,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
97,
103
],
[
103,
104
],
[
103,
105
],
[
96,
106
],
[
106,
107
],
[
106,
108
],
[
95,
109
],
[
109,
110
],
[
95,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
119,
122
],
[
112,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
112,
127
],
[
128,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
129,
135
],
[
135,
136
],
[
111,
137
],
[
137,
138
],
[
86,
139
],
[
139,
140
],
[
230,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
141,
145
],
[
145,
146
],
[
141,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
141,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
156,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
166,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
155,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
141,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
185,
188
],
[
188,
189
],
[
141,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
194,
197
],
[
197,
198
],
[
141,
199
],
[
199,
200
],
[
199,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
203,
206
],
[
206,
207
],
[
141,
208
],
[
208,
209
],
[
208,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
210,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
214,
221
],
[
221,
222
],
[
222,
223
],
[
222,
224
],
[
224,
225
],
[
225,
226
],
[
210,
227
],
[
227,
228
],
[
0,
229
],
[
229,
230
],
[
229,
231
]
]
| [
"\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\nimport java.util.Scanner;\nimport java.util.StringTokenizer;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n\n int n = s.nextInt();\n int x = s.nextInt();\n int t = s.nextInt();\n int res=(n/x);\n if(n%x!=0)\n res++;\n System.out.println(res*t);\n }\n static int gcd(int a, int b)\n {\n if(b==0) {\n return a;\n }\n return gcd(b,a%b);\n }\n private static boolean isPrime(int n) {\n if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n\n int n = s.nextInt();\n int x = s.nextInt();\n int t = s.nextInt();\n int res=(n/x);\n if(n%x!=0)\n res++;\n System.out.println(res*t);\n }\n static int gcd(int a, int b)\n {\n if(b==0) {\n return a;\n }\n return gcd(b,a%b);\n }\n private static boolean isPrime(int n) {\n if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n\n int n = s.nextInt();\n int x = s.nextInt();\n int t = s.nextInt();\n int res=(n/x);\n if(n%x!=0)\n res++;\n System.out.println(res*t);\n }",
"main",
"{\n Scanner s = new Scanner(System.in);\n\n int n = s.nextInt();\n int x = s.nextInt();\n int t = s.nextInt();\n int res=(n/x);\n if(n%x!=0)\n res++;\n System.out.println(res*t);\n }",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int n = s.nextInt();",
"n",
"s.nextInt()",
"s.nextInt",
"s",
"int x = s.nextInt();",
"x",
"s.nextInt()",
"s.nextInt",
"s",
"int t = s.nextInt();",
"t",
"s.nextInt()",
"s.nextInt",
"s",
"int res=(n/x);",
"res",
"(n/x)",
"n",
"x",
"if(n%x!=0)\n res++;",
"n%x!=0",
"n%x",
"n",
"x",
"0",
"res++",
"res",
"System.out.println(res*t)",
"System.out.println",
"System.out",
"System",
"System.out",
"res*t",
"res",
"t",
"String[] args",
"args",
"static int gcd(int a, int b)\n {\n if(b==0) {\n return a;\n }\n return gcd(b,a%b);\n }",
"gcd",
"{\n if(b==0) {\n return a;\n }\n return gcd(b,a%b);\n }",
"if(b==0) {\n return a;\n }",
"b==0",
"b",
"0",
"{\n return a;\n }",
"return a;",
"a",
"return gcd(b,a%b);",
"gcd(b,a%b)",
"gcd",
"b",
"a%b",
"a",
"b",
"int a",
"a",
"int b",
"b",
"private static boolean isPrime(int n) {\n if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n\n }",
"isPrime",
"{\n if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n\n }",
"if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }",
"n == 2",
"n",
"2",
"return true;",
"true",
"if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }",
"(n % 2 == 0 && n > 2) || n < 2",
"(n % 2 == 0 && n > 2)",
"n % 2 == 0",
"n % 2",
"n",
"2",
"0",
"n > 2",
"n",
"2",
"n < 2",
"n",
"2",
"return false;",
"false",
"{\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }",
"for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }",
"int i = 3;",
"int i = 3;",
"i",
"3",
"i <= (int) Math.sqrt(n)",
"i",
"(int) Math.sqrt(n)",
"Math.sqrt",
"Math",
"n",
"i += 2",
"i += 2",
"i",
"2",
"{\n if (n % i == 0)\n return false;\n }",
"{\n if (n % i == 0)\n return false;\n }",
"if (n % i == 0)\n return false;",
"n % i == 0",
"n % i",
"n",
"i",
"0",
"return false;",
"false",
"return true;",
"true",
"int n",
"n",
"static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }",
"FastReader",
"{\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }",
"br = new BufferedReader(new\n InputStreamReader(System.in))",
"br",
"new BufferedReader(new\n InputStreamReader(System.in))",
"String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n\n int n = s.nextInt();\n int x = s.nextInt();\n int t = s.nextInt();\n int res=(n/x);\n if(n%x!=0)\n res++;\n System.out.println(res*t);\n }\n static int gcd(int a, int b)\n {\n if(b==0) {\n return a;\n }\n return gcd(b,a%b);\n }\n private static boolean isPrime(int n) {\n if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n\n int n = s.nextInt();\n int x = s.nextInt();\n int t = s.nextInt();\n int res=(n/x);\n if(n%x!=0)\n res++;\n System.out.println(res*t);\n }\n static int gcd(int a, int b)\n {\n if(b==0) {\n return a;\n }\n return gcd(b,a%b);\n }\n private static boolean isPrime(int n) {\n if (n == 2)\n return true;\n else if ((n % 2 == 0 && n > 2) || n < 2)\n return false;\n else {\n for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n}",
"Main"
]
|
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Scanner;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int n = s.nextInt();
int x = s.nextInt();
int t = s.nextInt();
int res=(n/x);
if(n%x!=0)
res++;
System.out.println(res*t);
}
static int gcd(int a, int b)
{
if(b==0) {
return a;
}
return gcd(b,a%b);
}
private static boolean isPrime(int n) {
if (n == 2)
return true;
else if ((n % 2 == 0 && n > 2) || n < 2)
return false;
else {
for (int i = 3; i <= (int) Math.sqrt(n); i += 2) {
if (n % i == 0)
return false;
}
return true;
}
}
static class FastReader {
BufferedReader br;
StringTokenizer st;
public FastReader() {
br = new BufferedReader(new
InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
0,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
13,
0,
13,
13,
14,
2,
13,
17,
30,
3,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
70,
5
],
[
70,
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
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
52,
54
],
[
48,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
8,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
6,
67
],
[
67,
68
],
[
0,
69
],
[
69,
70
],
[
69,
71
]
]
| [
"import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args){\n \n Scanner sc = null;\n sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n sc.close();\n int ans = 0;\n\n for (int i = 0; i < 1000; i++) {\n\n ans += t;\n n -= x;\n if (n <= 0) {\n break;\n }\n }\n\n System.out.println(ans); \n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args){\n \n Scanner sc = null;\n sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n sc.close();\n int ans = 0;\n\n for (int i = 0; i < 1000; i++) {\n\n ans += t;\n n -= x;\n if (n <= 0) {\n break;\n }\n }\n\n System.out.println(ans); \n }\n}",
"Main",
"public static void main(String[] args){\n \n Scanner sc = null;\n sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n sc.close();\n int ans = 0;\n\n for (int i = 0; i < 1000; i++) {\n\n ans += t;\n n -= x;\n if (n <= 0) {\n break;\n }\n }\n\n System.out.println(ans); \n }",
"main",
"{\n \n Scanner sc = null;\n sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n sc.close();\n int ans = 0;\n\n for (int i = 0; i < 1000; i++) {\n\n ans += t;\n n -= x;\n if (n <= 0) {\n break;\n }\n }\n\n System.out.println(ans); \n }",
"Scanner sc = null;",
"sc",
"null",
"sc = new Scanner(System.in)",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t = sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.close()",
"sc.close",
"sc",
"int ans = 0;",
"ans",
"0",
"for (int i = 0; i < 1000; i++) {\n\n ans += t;\n n -= x;\n if (n <= 0) {\n break;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 1000",
"i",
"1000",
"i++",
"i++",
"i",
"{\n\n ans += t;\n n -= x;\n if (n <= 0) {\n break;\n }\n }",
"{\n\n ans += t;\n n -= x;\n if (n <= 0) {\n break;\n }\n }",
"ans += t",
"ans",
"t",
"n -= x",
"n",
"x",
"if (n <= 0) {\n break;\n }",
"n <= 0",
"n",
"0",
"{\n break;\n }",
"break;",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n \n Scanner sc = null;\n sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n sc.close();\n int ans = 0;\n\n for (int i = 0; i < 1000; i++) {\n\n ans += t;\n n -= x;\n if (n <= 0) {\n break;\n }\n }\n\n System.out.println(ans); \n }\n}",
"public class Main {\n\tpublic static void main(String[] args){\n \n Scanner sc = null;\n sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n sc.close();\n int ans = 0;\n\n for (int i = 0; i < 1000; i++) {\n\n ans += t;\n n -= x;\n if (n <= 0) {\n break;\n }\n }\n\n System.out.println(ans); \n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = null;
sc = new Scanner(System.in);
int n = sc.nextInt();
int x = sc.nextInt();
int t = sc.nextInt();
sc.close();
int ans = 0;
for (int i = 0; i < 1000; i++) {
ans += t;
n -= x;
if (n <= 0) {
break;
}
}
System.out.println(ans);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
13,
17,
13,
13,
12,
13,
30,
20,
23,
13,
6,
13,
41,
13,
18,
13,
13,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
14,
2,
13,
13,
30,
29,
17,
30,
0,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
29,
17,
29,
17,
12,
13,
30,
14,
4,
13,
29,
18,
13,
40,
13,
29,
40,
17,
12,
13,
30,
29,
2,
2,
17,
13,
2,
13,
17,
23,
13,
12,
13,
30,
42,
2,
4,
13,
40,
4,
13,
18,
13,
13,
40,
13,
29,
4,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
20,
41,
13,
4,
13,
42,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
17,
41,
13,
17,
41,
13,
4,
13,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
4,
13,
14,
2,
2,
13,
17,
2,
17,
13,
30,
37,
20,
42,
17,
30,
14,
2,
2,
17,
13,
2,
13,
17,
30,
0,
13,
17,
0,
13,
2,
13,
17,
14,
2,
2,
13,
40,
17,
40,
4,
13,
13,
30,
29,
8,
13,
40,
13,
13,
30,
37,
20,
0,
13,
4,
13,
12,
13,
30,
41,
13,
4,
13,
14,
2,
2,
13,
18,
13,
13,
2,
13,
18,
13,
13,
37,
20,
29,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
304,
11
],
[
304,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
14,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
39,
45
],
[
38,
46
],
[
304,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
47,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
53,
60
],
[
60,
61
],
[
60,
62
],
[
53,
64
],
[
64,
65
],
[
64,
66
],
[
53,
67
],
[
67,
68
],
[
67,
69
],
[
53,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
78,
79
],
[
73,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
84,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
80,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
103,
104
],
[
72,
105
],
[
105,
106
],
[
53,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
110,
118
],
[
118,
119
],
[
119,
120
],
[
53,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
125,
129
],
[
129,
130
],
[
129,
131
],
[
121,
132
],
[
132,
133
],
[
53,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
138,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
144,
146
],
[
137,
147
],
[
147,
148
],
[
136,
149
],
[
149,
150
],
[
150,
151
],
[
53,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
155,
159
],
[
159,
160
],
[
154,
161
],
[
161,
162
],
[
161,
163
],
[
154,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
154,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
168,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
173,
176
],
[
172,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
154,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
53,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
188,
192
],
[
192,
193
],
[
187,
194
],
[
194,
195
],
[
194,
196
],
[
187,
197
],
[
197,
198
],
[
197,
199
],
[
187,
200
],
[
200,
201
],
[
200,
202
],
[
202,
203
],
[
187,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
204,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
208,
212
],
[
212,
213
],
[
212,
214
],
[
214,
215
],
[
187,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
217,
221
],
[
221,
222
],
[
221,
223
],
[
216,
224
],
[
224,
225
],
[
225,
226
],
[
187,
227
],
[
227,
228
],
[
227,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
231,
235
],
[
235,
236
],
[
235,
237
],
[
230,
238
],
[
238,
239
],
[
239,
240
],
[
239,
241
],
[
238,
242
],
[
242,
243
],
[
242,
244
],
[
244,
245
],
[
244,
246
],
[
230,
247
],
[
247,
248
],
[
248,
249
],
[
249,
250
],
[
249,
251
],
[
251,
252
],
[
248,
253
],
[
253,
254
],
[
254,
255
],
[
254,
256
],
[
247,
257
],
[
257,
258
],
[
258,
259
],
[
259,
260
],
[
259,
261
],
[
261,
262
],
[
259,
263
],
[
247,
264
],
[
264,
265
],
[
265,
266
],
[
229,
267
],
[
267,
268
],
[
267,
269
],
[
269,
270
],
[
53,
271
],
[
271,
272
],
[
271,
273
],
[
273,
274
],
[
274,
275
],
[
274,
276
],
[
276,
277
],
[
273,
278
],
[
278,
279
],
[
279,
280
],
[
280,
281
],
[
280,
282
],
[
282,
283
],
[
282,
284
],
[
279,
285
],
[
285,
286
],
[
285,
287
],
[
287,
288
],
[
287,
289
],
[
278,
290
],
[
290,
291
],
[
273,
292
],
[
292,
293
],
[
53,
294
],
[
294,
295
],
[
294,
296
],
[
296,
297
],
[
297,
298
],
[
298,
299
],
[
299,
300
],
[
298,
301
],
[
301,
302
],
[
0,
303
],
[
303,
304
],
[
303,
305
]
]
| [
"import java.io.IOException;\nimport java.io.InputStream;\nimport java.util.*;\n\npublic class Main {\n\t\n\tpublic Main() {\n\t\tFastScanner scanner = new FastScanner();\n\t\tint N = scanner.nextInt();\n\t\tint X = scanner.nextInt();\n\t\tint T = scanner.nextInt();\n\t\t\n\t\tSystem.out.println( (N+X-1)/X*T );\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main();\n\t}\n}\n\nclass FastScanner {\n\tprivate final InputStream in = System.in;\n\tprivate final byte[] buffer = new byte[1024];\n\tprivate int ptr = 0;\n\tprivate int buflen = 0;\n\t\n\tprivate boolean hasNextByte() {\n\t\tif (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}\n\t\n\tprivate int readByte() {\n\t\tif (hasNextByte()) return buffer[ptr++];\n\t\telse return -1;\n\t}\n\t\n\tprivate static boolean isPrintableChar(int c) {\n\t\treturn 33 <= c && c <= 126;\n\t}\n\t\n\tpublic boolean hasNext() {\n\t\twhile (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t\treturn hasNextByte();\n\t}\n\t\n\tpublic String next() {\n\t\tif (!hasNext()) throw new NoSuchElementException();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint b = readByte();\n\t\twhile (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}\n\t\n\tpublic long nextLong() {\n\t\tif (!hasNext()) throw new NoSuchElementException();\n\t\tlong n = 0;\n\t\tboolean minus = false;\n\t\tint b = readByte();\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\tif (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}\n\t\n\tpublic int nextInt() {\n\t\tlong nl = nextLong();\n\t\tif (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n\t\treturn (int) nl;\n\t}\n\t\n\tpublic double nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\t\n\tpublic Main() {\n\t\tFastScanner scanner = new FastScanner();\n\t\tint N = scanner.nextInt();\n\t\tint X = scanner.nextInt();\n\t\tint T = scanner.nextInt();\n\t\t\n\t\tSystem.out.println( (N+X-1)/X*T );\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main();\n\t}\n}",
"Main",
"public Main() {\n\t\tFastScanner scanner = new FastScanner();\n\t\tint N = scanner.nextInt();\n\t\tint X = scanner.nextInt();\n\t\tint T = scanner.nextInt();\n\t\t\n\t\tSystem.out.println( (N+X-1)/X*T );\n\t}",
"Main",
"{\n\t\tFastScanner scanner = new FastScanner();\n\t\tint N = scanner.nextInt();\n\t\tint X = scanner.nextInt();\n\t\tint T = scanner.nextInt();\n\t\t\n\t\tSystem.out.println( (N+X-1)/X*T );\n\t}",
"FastScanner scanner = new FastScanner();",
"scanner",
"new FastScanner()",
"int N = scanner.nextInt();",
"N",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int X = scanner.nextInt();",
"X",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int T = scanner.nextInt();",
"T",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"System.out.println( (N+X-1)/X*T )",
"System.out.println",
"System.out",
"System",
"System.out",
"(N+X-1)/X*T",
"(N+X-1)/X",
"(N+X-1)",
"N+X",
"N",
"X",
"1",
"X",
"T",
"public static void main(String[] args) {\n\t\tnew Main();\n\t}",
"main",
"{\n\t\tnew Main();\n\t}",
"new Main()",
"String[] args",
"args",
"class FastScanner {\n\tprivate final InputStream in = System.in;\n\tprivate final byte[] buffer = new byte[1024];\n\tprivate int ptr = 0;\n\tprivate int buflen = 0;\n\t\n\tprivate boolean hasNextByte() {\n\t\tif (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}\n\t\n\tprivate int readByte() {\n\t\tif (hasNextByte()) return buffer[ptr++];\n\t\telse return -1;\n\t}\n\t\n\tprivate static boolean isPrintableChar(int c) {\n\t\treturn 33 <= c && c <= 126;\n\t}\n\t\n\tpublic boolean hasNext() {\n\t\twhile (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t\treturn hasNextByte();\n\t}\n\t\n\tpublic String next() {\n\t\tif (!hasNext()) throw new NoSuchElementException();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint b = readByte();\n\t\twhile (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}\n\t\n\tpublic long nextLong() {\n\t\tif (!hasNext()) throw new NoSuchElementException();\n\t\tlong n = 0;\n\t\tboolean minus = false;\n\t\tint b = readByte();\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\tif (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}\n\t\n\tpublic int nextInt() {\n\t\tlong nl = nextLong();\n\t\tif (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n\t\treturn (int) nl;\n\t}\n\t\n\tpublic double nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}\n}",
"FastScanner",
"private final InputStream in = System.in;",
"in",
"System.in",
"System",
"System.in",
"private final byte[] buffer = new byte[1024];",
"buffer",
"new byte[1024]",
"1024",
"private int ptr = 0;",
"ptr",
"0",
"private int buflen = 0;",
"buflen",
"0",
"private boolean hasNextByte() {\n\t\tif (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"hasNextByte",
"{\n\t\tif (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"if (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"ptr < buflen",
"ptr",
"buflen",
"{\n\t\t\treturn true;\n\t\t}",
"return true;",
"true",
"{\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"ptr = 0",
"ptr",
"0",
"try {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"IOException e",
"{\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t}",
"buflen = in.read(buffer)",
"buflen",
"in.read(buffer)",
"in.read",
"in",
"buffer",
"if (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}",
"buflen <= 0",
"buflen",
"0",
"{\n\t\t\t\treturn false;\n\t\t\t}",
"return false;",
"false",
"return true;",
"true",
"private int readByte() {\n\t\tif (hasNextByte()) return buffer[ptr++];\n\t\telse return -1;\n\t}",
"readByte",
"{\n\t\tif (hasNextByte()) return buffer[ptr++];\n\t\telse return -1;\n\t}",
"if (hasNextByte()) return buffer[ptr++];\n\t\telse return -1;",
"hasNextByte()",
"hasNextByte",
"return buffer[ptr++];",
"buffer[ptr++]",
"buffer",
"ptr++",
"ptr",
"return -1;",
"-1",
"1",
"private static boolean isPrintableChar(int c) {\n\t\treturn 33 <= c && c <= 126;\n\t}",
"isPrintableChar",
"{\n\t\treturn 33 <= c && c <= 126;\n\t}",
"return 33 <= c && c <= 126;",
"33 <= c && c <= 126",
"33 <= c",
"33",
"c",
"c <= 126",
"c",
"126",
"int c",
"c",
"public boolean hasNext() {\n\t\twhile (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t\treturn hasNextByte();\n\t}",
"hasNext",
"{\n\t\twhile (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t\treturn hasNextByte();\n\t}",
"while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;",
"hasNextByte() && !isPrintableChar(buffer[ptr])",
"hasNextByte()",
"hasNextByte",
"!isPrintableChar(buffer[ptr])",
"isPrintableChar(buffer[ptr])",
"isPrintableChar",
"buffer[ptr]",
"buffer",
"ptr",
"ptr++",
"ptr",
"return hasNextByte();",
"hasNextByte()",
"hasNextByte",
"public String next() {\n\t\tif (!hasNext()) throw new NoSuchElementException();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint b = readByte();\n\t\twhile (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}",
"next",
"{\n\t\tif (!hasNext()) throw new NoSuchElementException();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint b = readByte();\n\t\twhile (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}",
"if (!hasNext()) throw new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int b = readByte();",
"b",
"readByte()",
"readByte",
"while (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"{\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}",
"sb.appendCodePoint(b)",
"sb.appendCodePoint",
"sb",
"b",
"b = readByte()",
"b",
"readByte()",
"readByte",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"public long nextLong() {\n\t\tif (!hasNext()) throw new NoSuchElementException();\n\t\tlong n = 0;\n\t\tboolean minus = false;\n\t\tint b = readByte();\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\tif (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}",
"nextLong",
"{\n\t\tif (!hasNext()) throw new NoSuchElementException();\n\t\tlong n = 0;\n\t\tboolean minus = false;\n\t\tint b = readByte();\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\tif (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}",
"if (!hasNext()) throw new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"long n = 0;",
"n",
"0",
"boolean minus = false;",
"minus",
"false",
"int b = readByte();",
"b",
"readByte()",
"readByte",
"if (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}",
"b == '-'",
"b",
"'-'",
"{\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}",
"minus = true",
"minus",
"true",
"b = readByte()",
"b",
"readByte()",
"readByte",
"if (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}",
"b < '0' || '9' < b",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"{\n\t\t\tthrow new NumberFormatException();\n\t\t}",
"throw new NumberFormatException();",
"new NumberFormatException()",
"while (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}",
"true",
"{\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}",
"if ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}",
"'0' <= b && b <= '9'",
"'0' <= b",
"'0'",
"b",
"b <= '9'",
"b",
"'9'",
"{\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t}",
"n *= 10",
"n",
"10",
"n += b - '0'",
"n",
"b - '0'",
"b",
"'0'",
"if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}",
"b == -1 || !isPrintableChar(b)",
"b == -1",
"b",
"-1",
"1",
"!isPrintableChar(b)",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"{\n\t\t\t\treturn minus ? -n : n;\n\t\t\t}",
"return minus ? -n : n;",
"minus ? -n : n",
"minus",
"-n",
"n",
"n",
"{\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}",
"throw new NumberFormatException();",
"new NumberFormatException()",
"b = readByte()",
"b",
"readByte()",
"readByte",
"public int nextInt() {\n\t\tlong nl = nextLong();\n\t\tif (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n\t\treturn (int) nl;\n\t}",
"nextInt",
"{\n\t\tlong nl = nextLong();\n\t\tif (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n\t\treturn (int) nl;\n\t}",
"long nl = nextLong();",
"nl",
"nextLong()",
"nextLong",
"if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();",
"nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE",
"nl < Integer.MIN_VALUE",
"nl",
"Integer.MIN_VALUE",
"Integer",
"Integer.MIN_VALUE",
"nl > Integer.MAX_VALUE",
"nl",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"throw new NumberFormatException();",
"new NumberFormatException()",
"return (int) nl;",
"(int) nl",
"public double nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}",
"nextDouble",
"{\n\t\treturn Double.parseDouble(next());\n\t}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public class Main {\n\t\n\tpublic Main() {\n\t\tFastScanner scanner = new FastScanner();\n\t\tint N = scanner.nextInt();\n\t\tint X = scanner.nextInt();\n\t\tint T = scanner.nextInt();\n\t\t\n\t\tSystem.out.println( (N+X-1)/X*T );\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main();\n\t}\n}",
"public class Main {\n\t\n\tpublic Main() {\n\t\tFastScanner scanner = new FastScanner();\n\t\tint N = scanner.nextInt();\n\t\tint X = scanner.nextInt();\n\t\tint T = scanner.nextInt();\n\t\t\n\t\tSystem.out.println( (N+X-1)/X*T );\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main();\n\t}\n}",
"Main"
]
| import java.io.IOException;
import java.io.InputStream;
import java.util.*;
public class Main {
public Main() {
FastScanner scanner = new FastScanner();
int N = scanner.nextInt();
int X = scanner.nextInt();
int T = scanner.nextInt();
System.out.println( (N+X-1)/X*T );
}
public static void main(String[] args) {
new Main();
}
}
class FastScanner {
private final InputStream in = System.in;
private final byte[] buffer = new byte[1024];
private int ptr = 0;
private int buflen = 0;
private boolean hasNextByte() {
if (ptr < buflen) {
return true;
} else {
ptr = 0;
try {
buflen = in.read(buffer);
} catch (IOException e) {
e.printStackTrace();
}
if (buflen <= 0) {
return false;
}
}
return true;
}
private int readByte() {
if (hasNextByte()) return buffer[ptr++];
else return -1;
}
private static boolean isPrintableChar(int c) {
return 33 <= c && c <= 126;
}
public boolean hasNext() {
while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;
return hasNextByte();
}
public String next() {
if (!hasNext()) throw new NoSuchElementException();
StringBuilder sb = new StringBuilder();
int b = readByte();
while (isPrintableChar(b)) {
sb.appendCodePoint(b);
b = readByte();
}
return sb.toString();
}
public long nextLong() {
if (!hasNext()) throw new NoSuchElementException();
long n = 0;
boolean minus = false;
int b = readByte();
if (b == '-') {
minus = true;
b = readByte();
}
if (b < '0' || '9' < b) {
throw new NumberFormatException();
}
while (true) {
if ('0' <= b && b <= '9') {
n *= 10;
n += b - '0';
} else if (b == -1 || !isPrintableChar(b)) {
return minus ? -n : n;
} else {
throw new NumberFormatException();
}
b = readByte();
}
}
public int nextInt() {
long nl = nextLong();
if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();
return (int) nl;
}
public double nextDouble() {
return Double.parseDouble(next());
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
4,
18,
13,
41,
13,
41,
13,
41,
13,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
4,
18,
13,
18,
13,
17,
41,
13,
2,
2,
13,
13,
13,
14,
2,
2,
13,
13,
17,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
79,
5
],
[
79,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
14,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
34,
35
],
[
34,
36
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
42,
44
],
[
8,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
50,
51
],
[
50,
52
],
[
8,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
8,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
60,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
8,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
6,
76
],
[
76,
77
],
[
0,
78
],
[
78,
79
],
[
78,
80
]
]
| [
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n String[] input = sc.nextLine().split(\" \");\n sc.close();\n int N,X,T;\n N = Integer.parseInt(input[0]);\n X = Integer.parseInt(input[1]);\n T = Integer.parseInt(input[2]);\n\n int result= (N / X) * T ;\n if(N%X != 0){\n result += T;\n }\n System.out.println(result);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n String[] input = sc.nextLine().split(\" \");\n sc.close();\n int N,X,T;\n N = Integer.parseInt(input[0]);\n X = Integer.parseInt(input[1]);\n T = Integer.parseInt(input[2]);\n\n int result= (N / X) * T ;\n if(N%X != 0){\n result += T;\n }\n System.out.println(result);\n }\n}",
"Main",
"public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n String[] input = sc.nextLine().split(\" \");\n sc.close();\n int N,X,T;\n N = Integer.parseInt(input[0]);\n X = Integer.parseInt(input[1]);\n T = Integer.parseInt(input[2]);\n\n int result= (N / X) * T ;\n if(N%X != 0){\n result += T;\n }\n System.out.println(result);\n }",
"main",
"{\n\n Scanner sc = new Scanner(System.in);\n String[] input = sc.nextLine().split(\" \");\n sc.close();\n int N,X,T;\n N = Integer.parseInt(input[0]);\n X = Integer.parseInt(input[1]);\n T = Integer.parseInt(input[2]);\n\n int result= (N / X) * T ;\n if(N%X != 0){\n result += T;\n }\n System.out.println(result);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String[] input = sc.nextLine().split(\" \");",
"input",
"sc.nextLine().split(\" \")",
"sc.nextLine().split",
"sc.nextLine()",
"sc.nextLine",
"sc",
"\" \"",
"sc.close()",
"sc.close",
"sc",
"int N",
"N",
"X",
"X",
"T;",
"T",
"N = Integer.parseInt(input[0])",
"N",
"Integer.parseInt(input[0])",
"Integer.parseInt",
"Integer",
"input[0]",
"input",
"0",
"X = Integer.parseInt(input[1])",
"X",
"Integer.parseInt(input[1])",
"Integer.parseInt",
"Integer",
"input[1]",
"input",
"1",
"T = Integer.parseInt(input[2])",
"T",
"Integer.parseInt(input[2])",
"Integer.parseInt",
"Integer",
"input[2]",
"input",
"2",
"int result= (N / X) * T ;",
"result",
"(N / X) * T",
"(N / X)",
"N",
"X",
"T",
"if(N%X != 0){\n result += T;\n }",
"N%X != 0",
"N%X",
"N",
"X",
"0",
"{\n result += T;\n }",
"result += T",
"result",
"T",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n String[] input = sc.nextLine().split(\" \");\n sc.close();\n int N,X,T;\n N = Integer.parseInt(input[0]);\n X = Integer.parseInt(input[1]);\n T = Integer.parseInt(input[2]);\n\n int result= (N / X) * T ;\n if(N%X != 0){\n result += T;\n }\n System.out.println(result);\n }\n}",
"public class Main{\n public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n String[] input = sc.nextLine().split(\" \");\n sc.close();\n int N,X,T;\n N = Integer.parseInt(input[0]);\n X = Integer.parseInt(input[1]);\n T = Integer.parseInt(input[2]);\n\n int result= (N / X) * T ;\n if(N%X != 0){\n result += T;\n }\n System.out.println(result);\n }\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String[] input = sc.nextLine().split(" ");
sc.close();
int N,X,T;
N = Integer.parseInt(input[0]);
X = Integer.parseInt(input[1]);
T = Integer.parseInt(input[2]);
int result= (N / X) * T ;
if(N%X != 0){
result += T;
}
System.out.println(result);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
59,
5
],
[
59,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
34,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
47,
49
],
[
8,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
6,
56
],
[
56,
57
],
[
0,
58
],
[
58,
59
],
[
58,
60
]
]
| [
"import java.util.*;\n//import java.util.stream.Collectors;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = Integer.parseInt(sc.next());\n\t\tint x = Integer.parseInt(sc.next());\n\t\tint t = Integer.parseInt(sc.next());\n\t\tlong time = 0;\n\t\twhile(n > 0){\n\t\t\tn -= x;\n\t\t\ttime += t;\n\t\t}\n\t\tSystem.out.println(time);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = Integer.parseInt(sc.next());\n\t\tint x = Integer.parseInt(sc.next());\n\t\tint t = Integer.parseInt(sc.next());\n\t\tlong time = 0;\n\t\twhile(n > 0){\n\t\t\tn -= x;\n\t\t\ttime += t;\n\t\t}\n\t\tSystem.out.println(time);\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = Integer.parseInt(sc.next());\n\t\tint x = Integer.parseInt(sc.next());\n\t\tint t = Integer.parseInt(sc.next());\n\t\tlong time = 0;\n\t\twhile(n > 0){\n\t\t\tn -= x;\n\t\t\ttime += t;\n\t\t}\n\t\tSystem.out.println(time);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = Integer.parseInt(sc.next());\n\t\tint x = Integer.parseInt(sc.next());\n\t\tint t = Integer.parseInt(sc.next());\n\t\tlong time = 0;\n\t\twhile(n > 0){\n\t\t\tn -= x;\n\t\t\ttime += t;\n\t\t}\n\t\tSystem.out.println(time);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = Integer.parseInt(sc.next());",
"n",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int x = Integer.parseInt(sc.next());",
"x",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int t = Integer.parseInt(sc.next());",
"t",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"long time = 0;",
"time",
"0",
"while(n > 0){\n\t\t\tn -= x;\n\t\t\ttime += t;\n\t\t}",
"n > 0",
"n",
"0",
"{\n\t\t\tn -= x;\n\t\t\ttime += t;\n\t\t}",
"n -= x",
"n",
"x",
"time += t",
"time",
"t",
"System.out.println(time)",
"System.out.println",
"System.out",
"System",
"System.out",
"time",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = Integer.parseInt(sc.next());\n\t\tint x = Integer.parseInt(sc.next());\n\t\tint t = Integer.parseInt(sc.next());\n\t\tlong time = 0;\n\t\twhile(n > 0){\n\t\t\tn -= x;\n\t\t\ttime += t;\n\t\t}\n\t\tSystem.out.println(time);\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = Integer.parseInt(sc.next());\n\t\tint x = Integer.parseInt(sc.next());\n\t\tint t = Integer.parseInt(sc.next());\n\t\tlong time = 0;\n\t\twhile(n > 0){\n\t\t\tn -= x;\n\t\t\ttime += t;\n\t\t}\n\t\tSystem.out.println(time);\n\t}\n}",
"Main"
]
| import java.util.*;
//import java.util.stream.Collectors;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.next());
int x = Integer.parseInt(sc.next());
int t = Integer.parseInt(sc.next());
long time = 0;
while(n > 0){
n -= x;
time += t;
}
System.out.println(time);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
42,
2,
13,
13,
30,
0,
13,
2,
13,
13,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
60,
5
],
[
60,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
8,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
6,
57
],
[
57,
58
],
[
0,
59
],
[
59,
60
],
[
59,
61
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 整数の入力\n\t\tint n = sc.nextInt();\n\t\tint x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\n\t\tint makeNum = 0;\n\t\tint num = 0;\n\n\t\twhile(makeNum < n){\n\t\t\tmakeNum = makeNum + x;\n\t\t\tnum = num + t;\n\t\t}\n\n\t\tSystem.out.println(num);\n\n\t\tsc.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 整数の入力\n\t\tint n = sc.nextInt();\n\t\tint x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\n\t\tint makeNum = 0;\n\t\tint num = 0;\n\n\t\twhile(makeNum < n){\n\t\t\tmakeNum = makeNum + x;\n\t\t\tnum = num + t;\n\t\t}\n\n\t\tSystem.out.println(num);\n\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 整数の入力\n\t\tint n = sc.nextInt();\n\t\tint x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\n\t\tint makeNum = 0;\n\t\tint num = 0;\n\n\t\twhile(makeNum < n){\n\t\t\tmakeNum = makeNum + x;\n\t\t\tnum = num + t;\n\t\t}\n\n\t\tSystem.out.println(num);\n\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 整数の入力\n\t\tint n = sc.nextInt();\n\t\tint x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\n\t\tint makeNum = 0;\n\t\tint num = 0;\n\n\t\twhile(makeNum < n){\n\t\t\tmakeNum = makeNum + x;\n\t\t\tnum = num + t;\n\t\t}\n\n\t\tSystem.out.println(num);\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 x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t = sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int makeNum = 0;",
"makeNum",
"0",
"int num = 0;",
"num",
"0",
"while(makeNum < n){\n\t\t\tmakeNum = makeNum + x;\n\t\t\tnum = num + t;\n\t\t}",
"makeNum < n",
"makeNum",
"n",
"{\n\t\t\tmakeNum = makeNum + x;\n\t\t\tnum = num + t;\n\t\t}",
"makeNum = makeNum + x",
"makeNum",
"makeNum + x",
"makeNum",
"x",
"num = num + t",
"num",
"num + t",
"num",
"t",
"System.out.println(num)",
"System.out.println",
"System.out",
"System",
"System.out",
"num",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 整数の入力\n\t\tint n = sc.nextInt();\n\t\tint x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\n\t\tint makeNum = 0;\n\t\tint num = 0;\n\n\t\twhile(makeNum < n){\n\t\t\tmakeNum = makeNum + x;\n\t\t\tnum = num + t;\n\t\t}\n\n\t\tSystem.out.println(num);\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\n\t\t// 整数の入力\n\t\tint n = sc.nextInt();\n\t\tint x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\n\t\tint makeNum = 0;\n\t\tint num = 0;\n\n\t\twhile(makeNum < n){\n\t\t\tmakeNum = makeNum + x;\n\t\t\tnum = num + t;\n\t\t}\n\n\t\tSystem.out.println(num);\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 x = sc.nextInt();
int t = sc.nextInt();
int makeNum = 0;
int num = 0;
while(makeNum < n){
makeNum = makeNum + x;
num = num + t;
}
System.out.println(num);
sc.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
13,
13,
4,
13,
2,
13,
13,
29,
17,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
6,
13,
41,
13,
18,
13,
13,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
14,
2,
13,
13,
30,
29,
17,
30,
0,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
29,
17,
29,
17,
12,
13,
30,
14,
4,
13,
29,
18,
13,
40,
13,
29,
40,
17,
12,
13,
30,
29,
2,
2,
17,
13,
2,
13,
17,
23,
13,
12,
13,
30,
42,
2,
4,
13,
40,
4,
13,
18,
13,
13,
40,
13,
12,
13,
30,
4,
13,
29,
4,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
20,
41,
13,
4,
13,
42,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
17,
41,
13,
17,
41,
13,
4,
13,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
4,
13,
14,
2,
2,
13,
17,
2,
17,
13,
30,
37,
20,
42,
17,
30,
14,
2,
2,
17,
13,
2,
13,
17,
30,
0,
13,
17,
0,
13,
2,
13,
17,
14,
2,
2,
13,
40,
17,
40,
4,
13,
13,
30,
29,
8,
13,
40,
13,
13,
30,
37,
20,
0,
13,
4,
13,
12,
13,
30,
29,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
14,
13,
30,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
29,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
14,
13,
30,
41,
13,
20,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
29,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
29,
13,
23,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
488,
14
],
[
488,
15
],
[
15,
16
],
[
15,
17
],
[
488,
18
],
[
18,
19
],
[
18,
20
],
[
488,
21
],
[
21,
22
],
[
21,
23
],
[
23,
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
],
[
36,
39
],
[
39,
40
],
[
40,
41
],
[
21,
42
],
[
42,
43
],
[
488,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
46,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
46,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
46,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
67,
68
],
[
67,
69
],
[
46,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
46,
75
],
[
75,
76
],
[
488,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
77,
84
],
[
84,
85
],
[
488,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
86,
93
],
[
93,
94
],
[
488,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
488,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
101,
108
],
[
108,
109
],
[
488,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
110,
117
],
[
117,
118
],
[
488,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
123,
125
],
[
119,
126
],
[
126,
127
],
[
126,
128
],
[
119,
130
],
[
130,
131
],
[
130,
132
],
[
119,
133
],
[
133,
134
],
[
133,
135
],
[
119,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
143,
144
],
[
144,
145
],
[
139,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
146,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
150,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
161,
162
],
[
160,
163
],
[
146,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
168,
169
],
[
169,
170
],
[
138,
171
],
[
171,
172
],
[
119,
173
],
[
173,
174
],
[
173,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
176,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
176,
184
],
[
184,
185
],
[
185,
186
],
[
119,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
191,
195
],
[
195,
196
],
[
195,
197
],
[
187,
198
],
[
198,
199
],
[
119,
200
],
[
200,
201
],
[
200,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
204,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
210,
211
],
[
210,
212
],
[
203,
213
],
[
213,
214
],
[
119,
215
],
[
215,
216
],
[
215,
217
],
[
217,
218
],
[
218,
219
],
[
217,
220
],
[
220,
221
],
[
221,
222
],
[
119,
223
],
[
223,
224
],
[
223,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
226,
230
],
[
230,
231
],
[
225,
232
],
[
232,
233
],
[
232,
234
],
[
225,
235
],
[
235,
236
],
[
235,
237
],
[
237,
238
],
[
225,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
239,
243
],
[
243,
244
],
[
244,
245
],
[
245,
246
],
[
244,
247
],
[
243,
248
],
[
248,
249
],
[
248,
250
],
[
250,
251
],
[
225,
252
],
[
252,
253
],
[
253,
254
],
[
254,
255
],
[
119,
256
],
[
256,
257
],
[
256,
258
],
[
258,
259
],
[
259,
260
],
[
260,
261
],
[
261,
262
],
[
259,
263
],
[
263,
264
],
[
258,
265
],
[
265,
266
],
[
265,
267
],
[
258,
268
],
[
268,
269
],
[
268,
270
],
[
258,
271
],
[
271,
272
],
[
271,
273
],
[
273,
274
],
[
258,
275
],
[
275,
276
],
[
276,
277
],
[
276,
278
],
[
275,
279
],
[
279,
280
],
[
280,
281
],
[
280,
282
],
[
279,
283
],
[
283,
284
],
[
283,
285
],
[
285,
286
],
[
258,
287
],
[
287,
288
],
[
288,
289
],
[
289,
290
],
[
289,
291
],
[
288,
292
],
[
292,
293
],
[
292,
294
],
[
287,
295
],
[
295,
296
],
[
296,
297
],
[
258,
298
],
[
298,
299
],
[
298,
300
],
[
300,
301
],
[
301,
302
],
[
302,
303
],
[
303,
304
],
[
303,
305
],
[
302,
306
],
[
306,
307
],
[
306,
308
],
[
301,
309
],
[
309,
310
],
[
310,
311
],
[
310,
312
],
[
309,
313
],
[
313,
314
],
[
313,
315
],
[
315,
316
],
[
315,
317
],
[
301,
318
],
[
318,
319
],
[
319,
320
],
[
320,
321
],
[
320,
322
],
[
322,
323
],
[
319,
324
],
[
324,
325
],
[
325,
326
],
[
325,
327
],
[
318,
328
],
[
328,
329
],
[
329,
330
],
[
330,
331
],
[
330,
332
],
[
332,
333
],
[
330,
334
],
[
318,
335
],
[
335,
336
],
[
336,
337
],
[
300,
338
],
[
338,
339
],
[
338,
340
],
[
340,
341
],
[
119,
342
],
[
342,
343
],
[
342,
344
],
[
344,
345
],
[
345,
346
],
[
346,
347
],
[
119,
348
],
[
348,
349
],
[
348,
350
],
[
350,
351
],
[
351,
352
],
[
352,
353
],
[
353,
354
],
[
352,
355
],
[
355,
356
],
[
119,
357
],
[
357,
358
],
[
357,
359
],
[
359,
360
],
[
360,
361
],
[
360,
362
],
[
362,
363
],
[
363,
364
],
[
363,
365
],
[
366,
367
],
[
366,
368
],
[
362,
369
],
[
369,
370
],
[
370,
371
],
[
371,
372
],
[
371,
373
],
[
369,
374
],
[
374,
375
],
[
374,
376
],
[
369,
377
],
[
377,
378
],
[
378,
379
],
[
369,
380
],
[
381,
381
],
[
381,
382
],
[
382,
383
],
[
383,
384
],
[
383,
385
],
[
382,
386
],
[
386,
387
],
[
387,
388
],
[
362,
389
],
[
389,
390
],
[
360,
391
],
[
391,
392
],
[
392,
393
],
[
392,
394
],
[
391,
396
],
[
396,
397
],
[
397,
398
],
[
398,
399
],
[
398,
400
],
[
396,
401
],
[
401,
402
],
[
401,
403
],
[
396,
404
],
[
404,
405
],
[
405,
406
],
[
396,
407
],
[
408,
408
],
[
408,
409
],
[
409,
410
],
[
410,
411
],
[
410,
412
],
[
409,
413
],
[
413,
414
],
[
414,
415
],
[
391,
416
],
[
416,
417
],
[
357,
418
],
[
418,
419
],
[
357,
420
],
[
420,
421
],
[
119,
422
],
[
422,
423
],
[
422,
424
],
[
424,
425
],
[
425,
426
],
[
425,
427
],
[
427,
428
],
[
428,
429
],
[
428,
430
],
[
431,
432
],
[
431,
433
],
[
427,
434
],
[
434,
435
],
[
435,
436
],
[
436,
437
],
[
436,
438
],
[
434,
439
],
[
439,
440
],
[
439,
441
],
[
434,
442
],
[
442,
443
],
[
443,
444
],
[
434,
445
],
[
446,
446
],
[
446,
447
],
[
447,
448
],
[
448,
449
],
[
448,
450
],
[
447,
451
],
[
451,
452
],
[
452,
453
],
[
427,
454
],
[
454,
455
],
[
425,
456
],
[
456,
457
],
[
457,
458
],
[
457,
459
],
[
456,
461
],
[
461,
462
],
[
462,
463
],
[
463,
464
],
[
463,
465
],
[
461,
466
],
[
466,
467
],
[
466,
468
],
[
461,
469
],
[
469,
470
],
[
470,
471
],
[
461,
472
],
[
473,
473
],
[
473,
474
],
[
474,
475
],
[
475,
476
],
[
475,
477
],
[
474,
478
],
[
478,
479
],
[
479,
480
],
[
456,
481
],
[
481,
482
],
[
422,
483
],
[
483,
484
],
[
422,
485
],
[
485,
486
],
[
0,
487
],
[
487,
488
],
[
487,
489
]
]
| [
"import java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.NoSuchElementException;\n\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tfor(int i=0;i<1;i++) {\n\t\t\t\n\t\t\tslover();\n\t\t\tout.flush();\n\t\t}\n\t}\n\tstatic FastScanner sc = new FastScanner();\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\t//StringBuffer S = new StringBuffer(sc.next());\n\t\t//String hoge2 = str.reverse().toString();\n\t\t//map.containsKey(A)\n\t\t//Map<Integer, Integer> map = new HashMap<Integer, Integer>(N);\n\t\t/*for ( キーのデータ型 key : マップの名前.keySet() ) {\n\t\t\tデータのデータ型 data = マップの名前.get( key );\n\n\t\t\t// keyやdataを使った処理;\n\t\t}*/\n\t\t//int i = Integer.parseInt(s);\n\t\t//Queue<String> qq=new ArrayDeque<>(); //add,poll,peek BFSは前から実行される\n\t\t//Deque<String> dd=new ArrayDeque<>();//push後ろに入れる,poll(pop)後ろからとる,peek addは先頭に入るからバグ注意\n\t\t//stackdfsは後ろから実行される\n\t\t//ArrayList<Integer> cc = new ArrayList<>(N);\n\t\t//cc.contains(tmp)\n\t\t//Arrays.asList(c).contains(\"a\")\n\t\t//list.set(1,\"walk\");//1 1 2 3 5\n\t\t//PriorityQueue<Integer> r=new PriorityQueue<Integer>();//add poll\n\t//Set<Long> a=new HashSet<Long>();\n\t//Integer.toBinaryString(i);\n\t//Integer.toString(i, 2);\n//\t//Integer.parseInt(bin, 2);\n\t//bitset\n\t\n\tprivate static int slover() {\n\t\tint n=sc.nextInt();\n\t\tint X=sc.nextInt();\n\t\tint t=sc.nextInt();\n\t\tint v=(int)Math.ceil((double)n/X);\n\t\t//p(v);\n\t\tp(v*t);\n\t\t\n\t\treturn 0;\n\t}\n\t\n\tstatic void p(String ans) {out.println(ans);};\n\tstatic void p(int ans) {out.println(ans);};\n\tstatic void p() {out.println();};\n\tstatic void p(long ans) {out.println(ans);};\n\tstatic void p(double ans) {out.println(ans);};\n\n\tstatic class FastScanner {\n\t private final InputStream in = System.in;\n\t private final byte[] buffer = new byte[1024];\n\t private int ptr = 0;\n\t private int buflen = 0;\n\n\t private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }\n\n\t private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }\n\n\t private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }\n\n\t private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }\n\n\t public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }\n\n\t public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }\n\n\t public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }\n\n\t public int nextInt() {\n\t return (int) nextLong();\n\t }\n\n\t public double nextDouble(){\n\t \treturn Double.parseDouble(next());\n\t }\n\n\t public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }\n\n\t public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }\n\t }\n}\n",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.NoSuchElementException;",
"NoSuchElementException",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tfor(int i=0;i<1;i++) {\n\t\t\t\n\t\t\tslover();\n\t\t\tout.flush();\n\t\t}\n\t}\n\tstatic FastScanner sc = new FastScanner();\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\t//StringBuffer S = new StringBuffer(sc.next());\n\t\t//String hoge2 = str.reverse().toString();\n\t\t//map.containsKey(A)\n\t\t//Map<Integer, Integer> map = new HashMap<Integer, Integer>(N);\n\t\t/*for ( キーのデータ型 key : マップの名前.keySet() ) {\n\t\t\tデータのデータ型 data = マップの名前.get( key );\n\n\t\t\t// keyやdataを使った処理;\n\t\t}*/\n\t\t//int i = Integer.parseInt(s);\n\t\t//Queue<String> qq=new ArrayDeque<>(); //add,poll,peek BFSは前から実行される\n\t\t//Deque<String> dd=new ArrayDeque<>();//push後ろに入れる,poll(pop)後ろからとる,peek addは先頭に入るからバグ注意\n\t\t//stackdfsは後ろから実行される\n\t\t//ArrayList<Integer> cc = new ArrayList<>(N);\n\t\t//cc.contains(tmp)\n\t\t//Arrays.asList(c).contains(\"a\")\n\t\t//list.set(1,\"walk\");//1 1 2 3 5\n\t\t//PriorityQueue<Integer> r=new PriorityQueue<Integer>();//add poll\n\t//Set<Long> a=new HashSet<Long>();\n\t//Integer.toBinaryString(i);\n\t//Integer.toString(i, 2);\n//\t//Integer.parseInt(bin, 2);\n\t//bitset\n\t\n\tprivate static int slover() {\n\t\tint n=sc.nextInt();\n\t\tint X=sc.nextInt();\n\t\tint t=sc.nextInt();\n\t\tint v=(int)Math.ceil((double)n/X);\n\t\t//p(v);\n\t\tp(v*t);\n\t\t\n\t\treturn 0;\n\t}\n\t\n\tstatic void p(String ans) {out.println(ans);};\n\tstatic void p(int ans) {out.println(ans);};\n\tstatic void p() {out.println();};\n\tstatic void p(long ans) {out.println(ans);};\n\tstatic void p(double ans) {out.println(ans);};\n\n\tstatic class FastScanner {\n\t private final InputStream in = System.in;\n\t private final byte[] buffer = new byte[1024];\n\t private int ptr = 0;\n\t private int buflen = 0;\n\n\t private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }\n\n\t private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }\n\n\t private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }\n\n\t private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }\n\n\t public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }\n\n\t public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }\n\n\t public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }\n\n\t public int nextInt() {\n\t return (int) nextLong();\n\t }\n\n\t public double nextDouble(){\n\t \treturn Double.parseDouble(next());\n\t }\n\n\t public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }\n\n\t public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }\n\t }\n}",
"Main",
"static FastScanner sc = new FastScanner();",
"sc",
"new FastScanner()",
"static PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"public static void main(String[] args) {\n\t\t\n\t\tfor(int i=0;i<1;i++) {\n\t\t\t\n\t\t\tslover();\n\t\t\tout.flush();\n\t\t}\n\t}",
"main",
"{\n\t\t\n\t\tfor(int i=0;i<1;i++) {\n\t\t\t\n\t\t\tslover();\n\t\t\tout.flush();\n\t\t}\n\t}",
"for(int i=0;i<1;i++) {\n\t\t\t\n\t\t\tslover();\n\t\t\tout.flush();\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<1",
"i",
"1",
"i++",
"i++",
"i",
"{\n\t\t\t\n\t\t\tslover();\n\t\t\tout.flush();\n\t\t}",
"{\n\t\t\t\n\t\t\tslover();\n\t\t\tout.flush();\n\t\t}",
"slover()",
"slover",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"private static int slover() {\n\t\tint n=sc.nextInt();\n\t\tint X=sc.nextInt();\n\t\tint t=sc.nextInt();\n\t\tint v=(int)Math.ceil((double)n/X);\n\t\t//p(v);\n\t\tp(v*t);\n\t\t\n\t\treturn 0;\n\t}",
"slover",
"{\n\t\tint n=sc.nextInt();\n\t\tint X=sc.nextInt();\n\t\tint t=sc.nextInt();\n\t\tint v=(int)Math.ceil((double)n/X);\n\t\t//p(v);\n\t\tp(v*t);\n\t\t\n\t\treturn 0;\n\t}",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int X=sc.nextInt();",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t=sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int v=(int)Math.ceil((double)n/X);",
"v",
"(int)Math.ceil((double)n/X)",
"Math.ceil",
"Math",
"(double)n/X",
"(double)n",
"X",
"p(v*t)",
"p",
"v*t",
"v",
"t",
"return 0;",
"0",
"static void p(String ans) {out.println(ans);}",
"p",
"{out.println(ans);}",
"out.println(ans)",
"out.println",
"out",
"ans",
"String ans",
"ans",
"static void p(int ans) {out.println(ans);}",
"p",
"{out.println(ans);}",
"out.println(ans)",
"out.println",
"out",
"ans",
"int ans",
"ans",
"static void p() {out.println();}",
"p",
"{out.println();}",
"out.println()",
"out.println",
"out",
"static void p(long ans) {out.println(ans);}",
"p",
"{out.println(ans);}",
"out.println(ans)",
"out.println",
"out",
"ans",
"long ans",
"ans",
"static void p(double ans) {out.println(ans);}",
"p",
"{out.println(ans);}",
"out.println(ans)",
"out.println",
"out",
"ans",
"double ans",
"ans",
"static class FastScanner {\n\t private final InputStream in = System.in;\n\t private final byte[] buffer = new byte[1024];\n\t private int ptr = 0;\n\t private int buflen = 0;\n\n\t private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }\n\n\t private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }\n\n\t private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }\n\n\t private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }\n\n\t public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }\n\n\t public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }\n\n\t public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }\n\n\t public int nextInt() {\n\t return (int) nextLong();\n\t }\n\n\t public double nextDouble(){\n\t \treturn Double.parseDouble(next());\n\t }\n\n\t public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }\n\n\t public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }\n\t }",
"FastScanner",
"private final InputStream in = System.in;",
"in",
"System.in",
"System",
"System.in",
"private final byte[] buffer = new byte[1024];",
"buffer",
"new byte[1024]",
"1024",
"private int ptr = 0;",
"ptr",
"0",
"private int buflen = 0;",
"buflen",
"0",
"private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }",
"hasNextByte",
"{\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }",
"if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }",
"ptr < buflen",
"ptr",
"buflen",
"{\n\t return true;\n\t }",
"return true;",
"true",
"{\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }",
"ptr = 0",
"ptr",
"0",
"try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }",
"catch (IOException e) {\n\t e.printStackTrace();\n\t }",
"IOException e",
"{\n\t e.printStackTrace();\n\t }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t buflen = in.read(buffer);\n\t }",
"buflen = in.read(buffer)",
"buflen",
"in.read(buffer)",
"in.read",
"in",
"buffer",
"if (buflen <= 0) {\n\t return false;\n\t }",
"buflen <= 0",
"buflen",
"0",
"{\n\t return false;\n\t }",
"return false;",
"false",
"return true;",
"true",
"private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }",
"readByte",
"{\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }",
"if (hasNextByte()) return buffer[ptr++];\n\t else return -1;",
"hasNextByte()",
"hasNextByte",
"return buffer[ptr++];",
"buffer[ptr++]",
"buffer",
"ptr++",
"ptr",
"return -1;",
"-1",
"1",
"private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }",
"isPrintableChar",
"{\n\t return 33 <= c && c <= 126;\n\t }",
"return 33 <= c && c <= 126;",
"33 <= c && c <= 126",
"33 <= c",
"33",
"c",
"c <= 126",
"c",
"126",
"int c",
"c",
"private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }",
"skipUnprintable",
"{\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }",
"while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;",
"hasNextByte() && !isPrintableChar(buffer[ptr])",
"hasNextByte()",
"hasNextByte",
"!isPrintableChar(buffer[ptr])",
"isPrintableChar(buffer[ptr])",
"isPrintableChar",
"buffer[ptr]",
"buffer",
"ptr",
"ptr++",
"ptr",
"public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }",
"hasNext",
"{\n\t skipUnprintable();\n\t return hasNextByte();\n\t }",
"skipUnprintable()",
"skipUnprintable",
"return hasNextByte();",
"hasNextByte()",
"hasNextByte",
"public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }",
"next",
"{\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }",
"if (!hasNext()) throw new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int b = readByte();",
"b",
"readByte()",
"readByte",
"while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"{\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }",
"sb.appendCodePoint(b)",
"sb.appendCodePoint",
"sb",
"b",
"b = readByte()",
"b",
"readByte()",
"readByte",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }",
"nextLong",
"{\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }",
"if (!hasNext()) throw new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"long n = 0;",
"n",
"0",
"boolean minus = false;",
"minus",
"false",
"int b = readByte();",
"b",
"readByte()",
"readByte",
"if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }",
"b == '-'",
"b",
"'-'",
"{\n\t minus = true;\n\t b = readByte();\n\t }",
"minus = true",
"minus",
"true",
"b = readByte()",
"b",
"readByte()",
"readByte",
"if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }",
"b < '0' || '9' < b",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"{\n\t throw new NumberFormatException();\n\t }",
"throw new NumberFormatException();",
"new NumberFormatException()",
"while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }",
"true",
"{\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }",
"if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }",
"'0' <= b && b <= '9'",
"'0' <= b",
"'0'",
"b",
"b <= '9'",
"b",
"'9'",
"{\n\t n *= 10;\n\t n += b - '0';\n\t }",
"n *= 10",
"n",
"10",
"n += b - '0'",
"n",
"b - '0'",
"b",
"'0'",
"if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }",
"b == -1 || !isPrintableChar(b)",
"b == -1",
"b",
"-1",
"1",
"!isPrintableChar(b)",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"{\n\t return minus ? -n : n;\n\t }",
"return minus ? -n : n;",
"minus ? -n : n",
"minus",
"-n",
"n",
"n",
"{\n\t throw new NumberFormatException();\n\t }",
"throw new NumberFormatException();",
"new NumberFormatException()",
"b = readByte()",
"b",
"readByte()",
"readByte",
"public int nextInt() {\n\t return (int) nextLong();\n\t }",
"nextInt",
"{\n\t return (int) nextLong();\n\t }",
"return (int) nextLong();",
"(int) nextLong()",
"nextLong",
"public double nextDouble(){\n\t \treturn Double.parseDouble(next());\n\t }",
"nextDouble",
"{\n\t \treturn Double.parseDouble(next());\n\t }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }",
"nextIntArray",
"{\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }",
"if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }",
"oneBased",
"{\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }",
"int[] array = new int[N + 1];",
"array",
"new int[N + 1]",
"N + 1",
"N",
"1",
"for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t array[i] = sc.nextInt();\n\t }",
"{\n\t array[i] = sc.nextInt();\n\t }",
"array[i] = sc.nextInt()",
"array[i]",
"array",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"return array;",
"array",
"{\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }",
"int[] array = new int[N];",
"array",
"new int[N]",
"N",
"for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t array[i] = sc.nextInt();\n\t }",
"{\n\t array[i] = sc.nextInt();\n\t }",
"array[i] = sc.nextInt()",
"array[i]",
"array",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"return array;",
"array",
"int N",
"N",
"boolean oneBased",
"oneBased",
"public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }",
"nextLongArray",
"{\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }",
"if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }",
"oneBased",
"{\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }",
"long[] array = new long[N + 1];",
"array",
"new long[N + 1]",
"N + 1",
"N",
"1",
"for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t array[i] = sc.nextLong();\n\t }",
"{\n\t array[i] = sc.nextLong();\n\t }",
"array[i] = sc.nextLong()",
"array[i]",
"array",
"i",
"sc.nextLong()",
"sc.nextLong",
"sc",
"return array;",
"array",
"{\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }",
"long[] array = new long[N];",
"array",
"new long[N]",
"N",
"for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t array[i] = sc.nextLong();\n\t }",
"{\n\t array[i] = sc.nextLong();\n\t }",
"array[i] = sc.nextLong()",
"array[i]",
"array",
"i",
"sc.nextLong()",
"sc.nextLong",
"sc",
"return array;",
"array",
"int N",
"N",
"boolean oneBased",
"oneBased",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tfor(int i=0;i<1;i++) {\n\t\t\t\n\t\t\tslover();\n\t\t\tout.flush();\n\t\t}\n\t}\n\tstatic FastScanner sc = new FastScanner();\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\t//StringBuffer S = new StringBuffer(sc.next());\n\t\t//String hoge2 = str.reverse().toString();\n\t\t//map.containsKey(A)\n\t\t//Map<Integer, Integer> map = new HashMap<Integer, Integer>(N);\n\t\t/*for ( キーのデータ型 key : マップの名前.keySet() ) {\n\t\t\tデータのデータ型 data = マップの名前.get( key );\n\n\t\t\t// keyやdataを使った処理;\n\t\t}*/\n\t\t//int i = Integer.parseInt(s);\n\t\t//Queue<String> qq=new ArrayDeque<>(); //add,poll,peek BFSは前から実行される\n\t\t//Deque<String> dd=new ArrayDeque<>();//push後ろに入れる,poll(pop)後ろからとる,peek addは先頭に入るからバグ注意\n\t\t//stackdfsは後ろから実行される\n\t\t//ArrayList<Integer> cc = new ArrayList<>(N);\n\t\t//cc.contains(tmp)\n\t\t//Arrays.asList(c).contains(\"a\")\n\t\t//list.set(1,\"walk\");//1 1 2 3 5\n\t\t//PriorityQueue<Integer> r=new PriorityQueue<Integer>();//add poll\n\t//Set<Long> a=new HashSet<Long>();\n\t//Integer.toBinaryString(i);\n\t//Integer.toString(i, 2);\n//\t//Integer.parseInt(bin, 2);\n\t//bitset\n\t\n\tprivate static int slover() {\n\t\tint n=sc.nextInt();\n\t\tint X=sc.nextInt();\n\t\tint t=sc.nextInt();\n\t\tint v=(int)Math.ceil((double)n/X);\n\t\t//p(v);\n\t\tp(v*t);\n\t\t\n\t\treturn 0;\n\t}\n\t\n\tstatic void p(String ans) {out.println(ans);};\n\tstatic void p(int ans) {out.println(ans);};\n\tstatic void p() {out.println();};\n\tstatic void p(long ans) {out.println(ans);};\n\tstatic void p(double ans) {out.println(ans);};\n\n\tstatic class FastScanner {\n\t private final InputStream in = System.in;\n\t private final byte[] buffer = new byte[1024];\n\t private int ptr = 0;\n\t private int buflen = 0;\n\n\t private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }\n\n\t private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }\n\n\t private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }\n\n\t private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }\n\n\t public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }\n\n\t public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }\n\n\t public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }\n\n\t public int nextInt() {\n\t return (int) nextLong();\n\t }\n\n\t public double nextDouble(){\n\t \treturn Double.parseDouble(next());\n\t }\n\n\t public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }\n\n\t public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }\n\t }\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tfor(int i=0;i<1;i++) {\n\t\t\t\n\t\t\tslover();\n\t\t\tout.flush();\n\t\t}\n\t}\n\tstatic FastScanner sc = new FastScanner();\n\tstatic PrintWriter out = new PrintWriter(System.out);\n\t//StringBuffer S = new StringBuffer(sc.next());\n\t\t//String hoge2 = str.reverse().toString();\n\t\t//map.containsKey(A)\n\t\t//Map<Integer, Integer> map = new HashMap<Integer, Integer>(N);\n\t\t/*for ( キーのデータ型 key : マップの名前.keySet() ) {\n\t\t\tデータのデータ型 data = マップの名前.get( key );\n\n\t\t\t// keyやdataを使った処理;\n\t\t}*/\n\t\t//int i = Integer.parseInt(s);\n\t\t//Queue<String> qq=new ArrayDeque<>(); //add,poll,peek BFSは前から実行される\n\t\t//Deque<String> dd=new ArrayDeque<>();//push後ろに入れる,poll(pop)後ろからとる,peek addは先頭に入るからバグ注意\n\t\t//stackdfsは後ろから実行される\n\t\t//ArrayList<Integer> cc = new ArrayList<>(N);\n\t\t//cc.contains(tmp)\n\t\t//Arrays.asList(c).contains(\"a\")\n\t\t//list.set(1,\"walk\");//1 1 2 3 5\n\t\t//PriorityQueue<Integer> r=new PriorityQueue<Integer>();//add poll\n\t//Set<Long> a=new HashSet<Long>();\n\t//Integer.toBinaryString(i);\n\t//Integer.toString(i, 2);\n//\t//Integer.parseInt(bin, 2);\n\t//bitset\n\t\n\tprivate static int slover() {\n\t\tint n=sc.nextInt();\n\t\tint X=sc.nextInt();\n\t\tint t=sc.nextInt();\n\t\tint v=(int)Math.ceil((double)n/X);\n\t\t//p(v);\n\t\tp(v*t);\n\t\t\n\t\treturn 0;\n\t}\n\t\n\tstatic void p(String ans) {out.println(ans);};\n\tstatic void p(int ans) {out.println(ans);};\n\tstatic void p() {out.println();};\n\tstatic void p(long ans) {out.println(ans);};\n\tstatic void p(double ans) {out.println(ans);};\n\n\tstatic class FastScanner {\n\t private final InputStream in = System.in;\n\t private final byte[] buffer = new byte[1024];\n\t private int ptr = 0;\n\t private int buflen = 0;\n\n\t private boolean hasNextByte() {\n\t if (ptr < buflen) {\n\t return true;\n\t } else {\n\t ptr = 0;\n\t try {\n\t buflen = in.read(buffer);\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t if (buflen <= 0) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }\n\n\t private int readByte() {\n\t if (hasNextByte()) return buffer[ptr++];\n\t else return -1;\n\t }\n\n\t private static boolean isPrintableChar(int c) {\n\t return 33 <= c && c <= 126;\n\t }\n\n\t private void skipUnprintable() {\n\t while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n\t }\n\n\t public boolean hasNext() {\n\t skipUnprintable();\n\t return hasNextByte();\n\t }\n\n\t public String next() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t StringBuilder sb = new StringBuilder();\n\t int b = readByte();\n\t while (isPrintableChar(b)) {\n\t sb.appendCodePoint(b);\n\t b = readByte();\n\t }\n\t return sb.toString();\n\t }\n\n\t public long nextLong() {\n\t if (!hasNext()) throw new NoSuchElementException();\n\t long n = 0;\n\t boolean minus = false;\n\t int b = readByte();\n\t if (b == '-') {\n\t minus = true;\n\t b = readByte();\n\t }\n\t if (b < '0' || '9' < b) {\n\t throw new NumberFormatException();\n\t }\n\t while (true) {\n\t if ('0' <= b && b <= '9') {\n\t n *= 10;\n\t n += b - '0';\n\t } else if (b == -1 || !isPrintableChar(b)) {\n\t return minus ? -n : n;\n\t } else {\n\t throw new NumberFormatException();\n\t }\n\t b = readByte();\n\t }\n\t }\n\n\t public int nextInt() {\n\t return (int) nextLong();\n\t }\n\n\t public double nextDouble(){\n\t \treturn Double.parseDouble(next());\n\t }\n\n\t public int[] nextIntArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t int[] array = new int[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t } else {\n\t int[] array = new int[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextInt();\n\t }\n\t return array;\n\t }\n\t }\n\n\t public long[] nextLongArray(int N, boolean oneBased) {\n\t if (oneBased) {\n\t long[] array = new long[N + 1];\n\t for (int i = 1; i <= N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t } else {\n\t long[] array = new long[N];\n\t for (int i = 0; i < N; i++) {\n\t array[i] = sc.nextLong();\n\t }\n\t return array;\n\t }\n\t }\n\t }\n}",
"Main"
]
| import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.NoSuchElementException;
public class Main {
public static void main(String[] args) {
for(int i=0;i<1;i++) {
slover();
out.flush();
}
}
static FastScanner sc = new FastScanner();
static PrintWriter out = new PrintWriter(System.out);
//StringBuffer S = new StringBuffer(sc.next());
//String hoge2 = str.reverse().toString();
//map.containsKey(A)
//Map<Integer, Integer> map = new HashMap<Integer, Integer>(N);
/*for ( キーのデータ型 key : マップの名前.keySet() ) {
データのデータ型 data = マップの名前.get( key );
// keyやdataを使った処理;
}*/
//int i = Integer.parseInt(s);
//Queue<String> qq=new ArrayDeque<>(); //add,poll,peek BFSは前から実行される
//Deque<String> dd=new ArrayDeque<>();//push後ろに入れる,poll(pop)後ろからとる,peek addは先頭に入るからバグ注意
//stackdfsは後ろから実行される
//ArrayList<Integer> cc = new ArrayList<>(N);
//cc.contains(tmp)
//Arrays.asList(c).contains("a")
//list.set(1,"walk");//1 1 2 3 5
//PriorityQueue<Integer> r=new PriorityQueue<Integer>();//add poll
//Set<Long> a=new HashSet<Long>();
//Integer.toBinaryString(i);
//Integer.toString(i, 2);
// //Integer.parseInt(bin, 2);
//bitset
private static int slover() {
int n=sc.nextInt();
int X=sc.nextInt();
int t=sc.nextInt();
int v=(int)Math.ceil((double)n/X);
//p(v);
p(v*t);
return 0;
}
static void p(String ans) {out.println(ans);};
static void p(int ans) {out.println(ans);};
static void p() {out.println();};
static void p(long ans) {out.println(ans);};
static void p(double ans) {out.println(ans);};
static class FastScanner {
private final InputStream in = System.in;
private final byte[] buffer = new byte[1024];
private int ptr = 0;
private int buflen = 0;
private boolean hasNextByte() {
if (ptr < buflen) {
return true;
} else {
ptr = 0;
try {
buflen = in.read(buffer);
} catch (IOException e) {
e.printStackTrace();
}
if (buflen <= 0) {
return false;
}
}
return true;
}
private int readByte() {
if (hasNextByte()) return buffer[ptr++];
else return -1;
}
private static boolean isPrintableChar(int c) {
return 33 <= c && c <= 126;
}
private void skipUnprintable() {
while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;
}
public boolean hasNext() {
skipUnprintable();
return hasNextByte();
}
public String next() {
if (!hasNext()) throw new NoSuchElementException();
StringBuilder sb = new StringBuilder();
int b = readByte();
while (isPrintableChar(b)) {
sb.appendCodePoint(b);
b = readByte();
}
return sb.toString();
}
public long nextLong() {
if (!hasNext()) throw new NoSuchElementException();
long n = 0;
boolean minus = false;
int b = readByte();
if (b == '-') {
minus = true;
b = readByte();
}
if (b < '0' || '9' < b) {
throw new NumberFormatException();
}
while (true) {
if ('0' <= b && b <= '9') {
n *= 10;
n += b - '0';
} else if (b == -1 || !isPrintableChar(b)) {
return minus ? -n : n;
} else {
throw new NumberFormatException();
}
b = readByte();
}
}
public int nextInt() {
return (int) nextLong();
}
public double nextDouble(){
return Double.parseDouble(next());
}
public int[] nextIntArray(int N, boolean oneBased) {
if (oneBased) {
int[] array = new int[N + 1];
for (int i = 1; i <= N; i++) {
array[i] = sc.nextInt();
}
return array;
} else {
int[] array = new int[N];
for (int i = 0; i < N; i++) {
array[i] = sc.nextInt();
}
return array;
}
}
public long[] nextLongArray(int N, boolean oneBased) {
if (oneBased) {
long[] array = new long[N + 1];
for (int i = 1; i <= N; i++) {
array[i] = sc.nextLong();
}
return array;
} else {
long[] array = new long[N];
for (int i = 0; i < N; i++) {
array[i] = sc.nextLong();
}
return array;
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
13,
13,
4,
18,
18,
13,
13,
2,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
46,
5
],
[
46,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
6,
43
],
[
43,
44
],
[
0,
45
],
[
45,
46
],
[
45,
47
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int X = sc.nextInt();\n int t = sc.nextInt();\n\n int times = (int)Math.ceil((double)N/X);\n System.out.println(times * t);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int X = sc.nextInt();\n int t = sc.nextInt();\n\n int times = (int)Math.ceil((double)N/X);\n System.out.println(times * t);\n }\n}",
"Main",
"public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int X = sc.nextInt();\n int t = sc.nextInt();\n\n int times = (int)Math.ceil((double)N/X);\n System.out.println(times * t);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int X = sc.nextInt();\n int t = sc.nextInt();\n\n int times = (int)Math.ceil((double)N/X);\n System.out.println(times * t);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int X = sc.nextInt();",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t = sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int times = (int)Math.ceil((double)N/X);",
"times",
"(int)Math.ceil((double)N/X)",
"Math.ceil",
"Math",
"(double)N/X",
"(double)N",
"X",
"System.out.println(times * t)",
"System.out.println",
"System.out",
"System",
"System.out",
"times * t",
"times",
"t",
"String args[]",
"args",
"public class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int X = sc.nextInt();\n int t = sc.nextInt();\n\n int times = (int)Math.ceil((double)N/X);\n System.out.println(times * t);\n }\n}",
"public class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n int X = sc.nextInt();\n int t = sc.nextInt();\n\n int times = (int)Math.ceil((double)N/X);\n System.out.println(times * t);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int X = sc.nextInt();
int t = sc.nextInt();
int times = (int)Math.ceil((double)N/X);
System.out.println(times * t);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
29,
41,
13,
4,
18,
13,
2,
13,
13,
14,
2,
2,
13,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
2,
13,
13,
29,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
68,
5
],
[
68,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
31,
38
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
47,
53
],
[
53,
54
],
[
54,
55
],
[
8,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
61,
63
],
[
8,
64
],
[
6,
65
],
[
65,
66
],
[
0,
67
],
[
67,
68
],
[
67,
69
]
]
| [
"import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint X = sc.nextInt();\n\t\tint T = sc.nextInt();\n \n if(N<=X){\n\t\tSystem.out.println(T);\n\t\treturn;\n }\n \n\t\tint times = (int) Math.floor(N/X);\n \n if(N%X!=0){\n\t\ttimes++;\n }\n\t\tSystem.out.println(T*times);\n\t\treturn;\n\t}\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint X = sc.nextInt();\n\t\tint T = sc.nextInt();\n \n if(N<=X){\n\t\tSystem.out.println(T);\n\t\treturn;\n }\n \n\t\tint times = (int) Math.floor(N/X);\n \n if(N%X!=0){\n\t\ttimes++;\n }\n\t\tSystem.out.println(T*times);\n\t\treturn;\n\t}\n\n}",
"Main",
"public static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint X = sc.nextInt();\n\t\tint T = sc.nextInt();\n \n if(N<=X){\n\t\tSystem.out.println(T);\n\t\treturn;\n }\n \n\t\tint times = (int) Math.floor(N/X);\n \n if(N%X!=0){\n\t\ttimes++;\n }\n\t\tSystem.out.println(T*times);\n\t\treturn;\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint X = sc.nextInt();\n\t\tint T = sc.nextInt();\n \n if(N<=X){\n\t\tSystem.out.println(T);\n\t\treturn;\n }\n \n\t\tint times = (int) Math.floor(N/X);\n \n if(N%X!=0){\n\t\ttimes++;\n }\n\t\tSystem.out.println(T*times);\n\t\treturn;\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int X = sc.nextInt();",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int T = sc.nextInt();",
"T",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(N<=X){\n\t\tSystem.out.println(T);\n\t\treturn;\n }",
"N<=X",
"N",
"X",
"{\n\t\tSystem.out.println(T);\n\t\treturn;\n }",
"System.out.println(T)",
"System.out.println",
"System.out",
"System",
"System.out",
"T",
"return;",
"int times = (int) Math.floor(N/X);",
"times",
"(int) Math.floor(N/X)",
"Math.floor",
"Math",
"N/X",
"N",
"X",
"if(N%X!=0){\n\t\ttimes++;\n }",
"N%X!=0",
"N%X",
"N",
"X",
"0",
"{\n\t\ttimes++;\n }",
"times++",
"times",
"System.out.println(T*times)",
"System.out.println",
"System.out",
"System",
"System.out",
"T*times",
"T",
"times",
"return;",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint X = sc.nextInt();\n\t\tint T = sc.nextInt();\n \n if(N<=X){\n\t\tSystem.out.println(T);\n\t\treturn;\n }\n \n\t\tint times = (int) Math.floor(N/X);\n \n if(N%X!=0){\n\t\ttimes++;\n }\n\t\tSystem.out.println(T*times);\n\t\treturn;\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint X = sc.nextInt();\n\t\tint T = sc.nextInt();\n \n if(N<=X){\n\t\tSystem.out.println(T);\n\t\treturn;\n }\n \n\t\tint times = (int) Math.floor(N/X);\n \n if(N%X!=0){\n\t\ttimes++;\n }\n\t\tSystem.out.println(T*times);\n\t\treturn;\n\t}\n\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int X = sc.nextInt();
int T = sc.nextInt();
if(N<=X){
System.out.println(T);
return;
}
int times = (int) Math.floor(N/X);
if(N%X!=0){
times++;
}
System.out.println(T*times);
return;
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
13,
13,
30,
0,
13,
13,
40,
13,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
54,
5
],
[
54,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
8,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
8,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
6,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
]
| [
"import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n \tScanner sc = new Scanner(System.in);\n \n int N = sc.nextInt();\n int X = sc.nextInt();\n int T = sc.nextInt();\n int count = 1;\n \n while (N > X) {\n \tN -= X;\n \tcount++;\n }\n \n T = T * count;\n System.out.println(T);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) {\n \tScanner sc = new Scanner(System.in);\n \n int N = sc.nextInt();\n int X = sc.nextInt();\n int T = sc.nextInt();\n int count = 1;\n \n while (N > X) {\n \tN -= X;\n \tcount++;\n }\n \n T = T * count;\n System.out.println(T);\n }\n}",
"Main",
"public static void main(String[] args) {\n \tScanner sc = new Scanner(System.in);\n \n int N = sc.nextInt();\n int X = sc.nextInt();\n int T = sc.nextInt();\n int count = 1;\n \n while (N > X) {\n \tN -= X;\n \tcount++;\n }\n \n T = T * count;\n System.out.println(T);\n }",
"main",
"{\n \tScanner sc = new Scanner(System.in);\n \n int N = sc.nextInt();\n int X = sc.nextInt();\n int T = sc.nextInt();\n int count = 1;\n \n while (N > X) {\n \tN -= X;\n \tcount++;\n }\n \n T = T * count;\n System.out.println(T);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int X = sc.nextInt();",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int T = sc.nextInt();",
"T",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int count = 1;",
"count",
"1",
"while (N > X) {\n \tN -= X;\n \tcount++;\n }",
"N > X",
"N",
"X",
"{\n \tN -= X;\n \tcount++;\n }",
"N -= X",
"N",
"X",
"count++",
"count",
"T = T * count",
"T",
"T * count",
"T",
"count",
"System.out.println(T)",
"System.out.println",
"System.out",
"System",
"System.out",
"T",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n \tScanner sc = new Scanner(System.in);\n \n int N = sc.nextInt();\n int X = sc.nextInt();\n int T = sc.nextInt();\n int count = 1;\n \n while (N > X) {\n \tN -= X;\n \tcount++;\n }\n \n T = T * count;\n System.out.println(T);\n }\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n \tScanner sc = new Scanner(System.in);\n \n int N = sc.nextInt();\n int X = sc.nextInt();\n int T = sc.nextInt();\n int count = 1;\n \n while (N > X) {\n \tN -= X;\n \tcount++;\n }\n \n T = T * count;\n System.out.println(T);\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int X = sc.nextInt();
int T = sc.nextInt();
int count = 1;
while (N > X) {
N -= X;
count++;
}
T = T * count;
System.out.println(T);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
4,
18,
13,
2,
2,
17,
13,
13,
4,
18,
18,
13,
13,
2,
13,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
0,
13,
20,
29,
4,
18,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
100,
8
],
[
100,
9
],
[
9,
10
],
[
100,
11
],
[
11,
12
],
[
100,
13
],
[
13,
14
],
[
100,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
17,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
17,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
17,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
17,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
15,
51
],
[
51,
52
],
[
100,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
60,
61
],
[
100,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
100,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
78,
79
],
[
100,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
83,
92
],
[
92,
93
],
[
92,
94
],
[
82,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
0,
99
],
[
99,
100
],
[
99,
101
]
]
| [
"import java.util.*; \nimport java.io.*;\n\npublic class Main {\n static StringTokenizer st;\n static BufferedReader br; \n static PrintWriter out;\n \n public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n int N = nextInt();\n int X = nextInt();\n int T = nextInt();\n\n int factor = (int)Math.ceil((double)1 * N / X);\n System.out.println(factor * T);\n \n }\n \n \n public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n static StringTokenizer st;\n static BufferedReader br; \n static PrintWriter out;\n \n public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n int N = nextInt();\n int X = nextInt();\n int T = nextInt();\n\n int factor = (int)Math.ceil((double)1 * N / X);\n System.out.println(factor * T);\n \n }\n \n \n public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n}",
"Main",
"static StringTokenizer st;",
"st",
"static BufferedReader br;",
"br",
"static PrintWriter out;",
"out",
"public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n int N = nextInt();\n int X = nextInt();\n int T = nextInt();\n\n int factor = (int)Math.ceil((double)1 * N / X);\n System.out.println(factor * T);\n \n }",
"main",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n\n int N = nextInt();\n int X = nextInt();\n int T = nextInt();\n\n int factor = (int)Math.ceil((double)1 * N / X);\n System.out.println(factor * T);\n \n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int N = nextInt();",
"N",
"nextInt()",
"nextInt",
"int X = nextInt();",
"X",
"nextInt()",
"nextInt",
"int T = nextInt();",
"T",
"nextInt()",
"nextInt",
"int factor = (int)Math.ceil((double)1 * N / X);",
"factor",
"(int)Math.ceil((double)1 * N / X)",
"Math.ceil",
"Math",
"(double)1 * N / X",
"(double)1 * N",
"(double)1",
"N",
"X",
"System.out.println(factor * T)",
"System.out.println",
"System.out",
"System",
"System.out",
"factor * T",
"factor",
"T",
"String[] args",
"args",
"public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"st = new StringTokenizer(br.readLine().trim())",
"st",
"new StringTokenizer(br.readLine().trim())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public class Main {\n static StringTokenizer st;\n static BufferedReader br; \n static PrintWriter out;\n \n public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n int N = nextInt();\n int X = nextInt();\n int T = nextInt();\n\n int factor = (int)Math.ceil((double)1 * N / X);\n System.out.println(factor * T);\n \n }\n \n \n public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n}",
"public class Main {\n static StringTokenizer st;\n static BufferedReader br; \n static PrintWriter out;\n \n public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n int N = nextInt();\n int X = nextInt();\n int T = nextInt();\n\n int factor = (int)Math.ceil((double)1 * N / X);\n System.out.println(factor * T);\n \n }\n \n \n public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main {
static StringTokenizer st;
static BufferedReader br;
static PrintWriter out;
public static void main(String[] args) throws IOException {
br = new BufferedReader(new InputStreamReader(System.in));
int N = nextInt();
int X = nextInt();
int T = nextInt();
int factor = (int)Math.ceil((double)1 * N / X);
System.out.println(factor * T);
}
public static int nextInt() throws IOException {
return Integer.parseInt(next());
}
public static long nextLong() throws IOException {
return Long.parseLong(next());
}
public static double nextDouble() throws IOException {
return Double.parseDouble(next());
}
static String next() throws IOException {
while (st == null || !st.hasMoreTokens())
st = new StringTokenizer(br.readLine().trim());
return st.nextToken();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
2,
4,
18,
13,
2,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
56,
5
],
[
56,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
27,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
46,
48
],
[
42,
49
],
[
8,
50
],
[
50,
51
],
[
51,
52
],
[
6,
53
],
[
53,
54
],
[
0,
55
],
[
55,
56
],
[
55,
57
]
]
| [
"import java.util.Scanner;\n\n/**\n * A - Takoyaki\n * 高橋君はたこ焼きが好きです。\n * たこ焼き器を使うと、1 度に最大で X 個のたこ焼きを作ることができます。\n * これにかかる時間は作る個数によらず T 分です。\n * N 個のたこ焼きを作るためには何分必要ですか?\n */\npublic class Main {\n\n public static void main( String[] args ) {\n\n // 入力値\n Scanner sc = new Scanner( System.in );\n int n = sc.nextInt(); // 作るたこ焼きの数\n int x = sc.nextInt(); // 一度に作れるたこ焼きの数\n int t = sc.nextInt(); // 1回作るのにかかる時間\n\n if( n <= x ) System.out.println( t );\n else System.out.println( ( ( int ) Math.ceil( ( double ) n / x ) ) * t );\n\n sc.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main( String[] args ) {\n\n // 入力値\n Scanner sc = new Scanner( System.in );\n int n = sc.nextInt(); // 作るたこ焼きの数\n int x = sc.nextInt(); // 一度に作れるたこ焼きの数\n int t = sc.nextInt(); // 1回作るのにかかる時間\n\n if( n <= x ) System.out.println( t );\n else System.out.println( ( ( int ) Math.ceil( ( double ) n / x ) ) * t );\n\n sc.close();\n }\n}",
"Main",
"public static void main( String[] args ) {\n\n // 入力値\n Scanner sc = new Scanner( System.in );\n int n = sc.nextInt(); // 作るたこ焼きの数\n int x = sc.nextInt(); // 一度に作れるたこ焼きの数\n int t = sc.nextInt(); // 1回作るのにかかる時間\n\n if( n <= x ) System.out.println( t );\n else System.out.println( ( ( int ) Math.ceil( ( double ) n / x ) ) * t );\n\n sc.close();\n }",
"main",
"{\n\n // 入力値\n Scanner sc = new Scanner( System.in );\n int n = sc.nextInt(); // 作るたこ焼きの数\n int x = sc.nextInt(); // 一度に作れるたこ焼きの数\n int t = sc.nextInt(); // 1回作るのにかかる時間\n\n if( n <= x ) System.out.println( t );\n else System.out.println( ( ( int ) Math.ceil( ( double ) n / x ) ) * t );\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",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t = sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if( n <= x ) System.out.println( t );\n else System.out.println( ( ( int ) Math.ceil( ( double ) n / x ) ) * t );",
"n <= x",
"n",
"x",
"System.out.println( t )",
"System.out.println",
"System.out",
"System",
"System.out",
"t",
"System.out.println( ( ( int ) Math.ceil( ( double ) n / x ) ) * t )",
"System.out.println",
"System.out",
"System",
"System.out",
"( ( int ) Math.ceil( ( double ) n / x ) ) * t",
"( ( int ) Math.ceil( ( double ) n / x ) )",
"Math.ceil",
"Math",
"( double ) n / x",
"( double ) n",
"x",
"t",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n public static void main( String[] args ) {\n\n // 入力値\n Scanner sc = new Scanner( System.in );\n int n = sc.nextInt(); // 作るたこ焼きの数\n int x = sc.nextInt(); // 一度に作れるたこ焼きの数\n int t = sc.nextInt(); // 1回作るのにかかる時間\n\n if( n <= x ) System.out.println( t );\n else System.out.println( ( ( int ) Math.ceil( ( double ) n / x ) ) * t );\n\n sc.close();\n }\n}",
"public class Main {\n\n public static void main( String[] args ) {\n\n // 入力値\n Scanner sc = new Scanner( System.in );\n int n = sc.nextInt(); // 作るたこ焼きの数\n int x = sc.nextInt(); // 一度に作れるたこ焼きの数\n int t = sc.nextInt(); // 1回作るのにかかる時間\n\n if( n <= x ) System.out.println( t );\n else System.out.println( ( ( int ) Math.ceil( ( double ) n / x ) ) * t );\n\n sc.close();\n }\n}",
"Main"
]
| import java.util.Scanner;
/**
* A - Takoyaki
* 高橋君はたこ焼きが好きです。
* たこ焼き器を使うと、1 度に最大で X 個のたこ焼きを作ることができます。
* これにかかる時間は作る個数によらず T 分です。
* N 個のたこ焼きを作るためには何分必要ですか?
*/
public class Main {
public static void main( String[] args ) {
// 入力値
Scanner sc = new Scanner( System.in );
int n = sc.nextInt(); // 作るたこ焼きの数
int x = sc.nextInt(); // 一度に作れるたこ焼きの数
int t = sc.nextInt(); // 1回作るのにかかる時間
if( n <= x ) System.out.println( t );
else System.out.println( ( ( int ) Math.ceil( ( double ) n / x ) ) * t );
sc.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,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
13,
17,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
47,
5
],
[
47,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
36,
42
],
[
35,
43
],
[
6,
44
],
[
44,
45
],
[
0,
46
],
[
46,
47
],
[
46,
48
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n sc.close();\n System.out.println((n + x - 1) / x * t);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n sc.close();\n System.out.println((n + x - 1) / x * t);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n sc.close();\n System.out.println((n + x - 1) / x * t);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n sc.close();\n System.out.println((n + x - 1) / x * t);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t = sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.close()",
"sc.close",
"sc",
"System.out.println((n + x - 1) / x * t)",
"System.out.println",
"System.out",
"System",
"System.out",
"(n + x - 1) / x * t",
"(n + x - 1) / x",
"(n + x - 1)",
"n + x",
"n",
"x",
"1",
"x",
"t",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n sc.close();\n System.out.println((n + x - 1) / x * t);\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n sc.close();\n System.out.println((n + x - 1) / x * t);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int x = sc.nextInt();
int t = sc.nextInt();
sc.close();
System.out.println((n + x - 1) / x * t);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
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,
4,
18,
13,
18,
13,
17,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
67,
5
],
[
67,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
14,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
55,
57
],
[
8,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
6,
64
],
[
64,
65
],
[
0,
66
],
[
66,
67
],
[
66,
68
]
]
| [
"import java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString[] a = sc.nextLine().split(\" \");\n\t\tint n = Integer.parseInt(a[0]);\n\t\tint x = Integer.parseInt(a[1]) ;\n\t\tint t = Integer.parseInt(a[2]);\n\t\tint answer = 0;\n\t\twhile (n > 0) {\n\t\t\tn -= x;\n\t\t\tanswer += t;\n\t\t}\n\t\tSystem.out.println(answer);\n\t}\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString[] a = sc.nextLine().split(\" \");\n\t\tint n = Integer.parseInt(a[0]);\n\t\tint x = Integer.parseInt(a[1]) ;\n\t\tint t = Integer.parseInt(a[2]);\n\t\tint answer = 0;\n\t\twhile (n > 0) {\n\t\t\tn -= x;\n\t\t\tanswer += t;\n\t\t}\n\t\tSystem.out.println(answer);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString[] a = sc.nextLine().split(\" \");\n\t\tint n = Integer.parseInt(a[0]);\n\t\tint x = Integer.parseInt(a[1]) ;\n\t\tint t = Integer.parseInt(a[2]);\n\t\tint answer = 0;\n\t\twhile (n > 0) {\n\t\t\tn -= x;\n\t\t\tanswer += t;\n\t\t}\n\t\tSystem.out.println(answer);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString[] a = sc.nextLine().split(\" \");\n\t\tint n = Integer.parseInt(a[0]);\n\t\tint x = Integer.parseInt(a[1]) ;\n\t\tint t = Integer.parseInt(a[2]);\n\t\tint answer = 0;\n\t\twhile (n > 0) {\n\t\t\tn -= x;\n\t\t\tanswer += t;\n\t\t}\n\t\tSystem.out.println(answer);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String[] a = sc.nextLine().split(\" \");",
"a",
"sc.nextLine().split(\" \")",
"sc.nextLine().split",
"sc.nextLine()",
"sc.nextLine",
"sc",
"\" \"",
"int n = Integer.parseInt(a[0]);",
"n",
"Integer.parseInt(a[0])",
"Integer.parseInt",
"Integer",
"a[0]",
"a",
"0",
"int x = Integer.parseInt(a[1]) ;",
"x",
"Integer.parseInt(a[1])",
"Integer.parseInt",
"Integer",
"a[1]",
"a",
"1",
"int t = Integer.parseInt(a[2]);",
"t",
"Integer.parseInt(a[2])",
"Integer.parseInt",
"Integer",
"a[2]",
"a",
"2",
"int answer = 0;",
"answer",
"0",
"while (n > 0) {\n\t\t\tn -= x;\n\t\t\tanswer += t;\n\t\t}",
"n > 0",
"n",
"0",
"{\n\t\t\tn -= x;\n\t\t\tanswer += t;\n\t\t}",
"n -= x",
"n",
"x",
"answer += t",
"answer",
"t",
"System.out.println(answer)",
"System.out.println",
"System.out",
"System",
"System.out",
"answer",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString[] a = sc.nextLine().split(\" \");\n\t\tint n = Integer.parseInt(a[0]);\n\t\tint x = Integer.parseInt(a[1]) ;\n\t\tint t = Integer.parseInt(a[2]);\n\t\tint answer = 0;\n\t\twhile (n > 0) {\n\t\t\tn -= x;\n\t\t\tanswer += t;\n\t\t}\n\t\tSystem.out.println(answer);\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[] a = sc.nextLine().split(\" \");\n\t\tint n = Integer.parseInt(a[0]);\n\t\tint x = Integer.parseInt(a[1]) ;\n\t\tint t = Integer.parseInt(a[2]);\n\t\tint answer = 0;\n\t\twhile (n > 0) {\n\t\t\tn -= x;\n\t\t\tanswer += t;\n\t\t}\n\t\tSystem.out.println(answer);\n\t}\n\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String[] a = sc.nextLine().split(" ");
int n = Integer.parseInt(a[0]);
int x = Integer.parseInt(a[1]) ;
int t = Integer.parseInt(a[2]);
int answer = 0;
while (n > 0) {
n -= x;
answer += t;
}
System.out.println(answer);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
14,
2,
13,
13,
30,
4,
13,
13,
30,
4,
13,
2,
2,
2,
13,
13,
17,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
62,
5
],
[
62,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
41,
47
],
[
6,
48
],
[
48,
49
],
[
62,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
50,
59
],
[
59,
60
],
[
0,
61
],
[
61,
62
],
[
61,
63
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\t\tsc.close();\n\t\tif(n < x) {\n\t\t\tprtln(t);\n\t\t} else {\n\t\t\tprtln((int)(((double)n / (double)x) + 0.5) * t);\n\t\t}\n\t}\n\n\tpublic static <T> void prtln(T t) { System.out.println(t); }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\t\tsc.close();\n\t\tif(n < x) {\n\t\t\tprtln(t);\n\t\t} else {\n\t\t\tprtln((int)(((double)n / (double)x) + 0.5) * t);\n\t\t}\n\t}\n\n\tpublic static <T> void prtln(T t) { System.out.println(t); }\n}",
"Main",
"public static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\t\tsc.close();\n\t\tif(n < x) {\n\t\t\tprtln(t);\n\t\t} else {\n\t\t\tprtln((int)(((double)n / (double)x) + 0.5) * t);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\t\tsc.close();\n\t\tif(n < x) {\n\t\t\tprtln(t);\n\t\t} else {\n\t\t\tprtln((int)(((double)n / (double)x) + 0.5) * t);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t = sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.close()",
"sc.close",
"sc",
"if(n < x) {\n\t\t\tprtln(t);\n\t\t} else {\n\t\t\tprtln((int)(((double)n / (double)x) + 0.5) * t);\n\t\t}",
"n < x",
"n",
"x",
"{\n\t\t\tprtln(t);\n\t\t}",
"prtln(t)",
"prtln",
"t",
"{\n\t\t\tprtln((int)(((double)n / (double)x) + 0.5) * t);\n\t\t}",
"prtln((int)(((double)n / (double)x) + 0.5) * t)",
"prtln",
"(int)(((double)n / (double)x) + 0.5) * t",
"(int)(((double)n / (double)x) + 0.5)",
"((double)n / (double)x)",
"(double)n",
"(double)x",
"0.5",
"t",
"final String[] args",
"args",
"public static <T> void prtln(T t) { System.out.println(t); }",
"prtln",
"{ System.out.println(t); }",
"System.out.println(t)",
"System.out.println",
"System.out",
"System",
"System.out",
"t",
"T t",
"t",
"public class Main {\n\n\tpublic static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\t\tsc.close();\n\t\tif(n < x) {\n\t\t\tprtln(t);\n\t\t} else {\n\t\t\tprtln((int)(((double)n / (double)x) + 0.5) * t);\n\t\t}\n\t}\n\n\tpublic static <T> void prtln(T t) { System.out.println(t); }\n}",
"public class Main {\n\n\tpublic static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\t\tsc.close();\n\t\tif(n < x) {\n\t\t\tprtln(t);\n\t\t} else {\n\t\t\tprtln((int)(((double)n / (double)x) + 0.5) * t);\n\t\t}\n\t}\n\n\tpublic static <T> void prtln(T t) { System.out.println(t); }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(final String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int x = sc.nextInt();
int t = sc.nextInt();
sc.close();
if(n < x) {
prtln(t);
} else {
prtln((int)(((double)n / (double)x) + 0.5) * t);
}
}
public static <T> void prtln(T t) { System.out.println(t); }
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
13,
40,
13,
4,
18,
18,
13,
13,
2,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
51,
5
],
[
51,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
8,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
6,
48
],
[
48,
49
],
[
0,
50
],
[
50,
51
],
[
50,
52
]
]
| [
"import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint x = scan.nextInt();\n\t\tint t = scan.nextInt();\n\t\tint ans = 0;\n\n\t\twhile(n > 0) {\n\t\t\tn -= x;\n\t\t\tans++;\n\t\t}\n\t\tSystem.out.println(ans*t);\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint x = scan.nextInt();\n\t\tint t = scan.nextInt();\n\t\tint ans = 0;\n\n\t\twhile(n > 0) {\n\t\t\tn -= x;\n\t\t\tans++;\n\t\t}\n\t\tSystem.out.println(ans*t);\n\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 x = scan.nextInt();\n\t\tint t = scan.nextInt();\n\t\tint ans = 0;\n\n\t\twhile(n > 0) {\n\t\t\tn -= x;\n\t\t\tans++;\n\t\t}\n\t\tSystem.out.println(ans*t);\n\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint x = scan.nextInt();\n\t\tint t = scan.nextInt();\n\t\tint ans = 0;\n\n\t\twhile(n > 0) {\n\t\t\tn -= x;\n\t\t\tans++;\n\t\t}\n\t\tSystem.out.println(ans*t);\n\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int x = scan.nextInt();",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int t = scan.nextInt();",
"t",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int ans = 0;",
"ans",
"0",
"while(n > 0) {\n\t\t\tn -= x;\n\t\t\tans++;\n\t\t}",
"n > 0",
"n",
"0",
"{\n\t\t\tn -= x;\n\t\t\tans++;\n\t\t}",
"n -= x",
"n",
"x",
"ans++",
"ans",
"System.out.println(ans*t)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans*t",
"ans",
"t",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint x = scan.nextInt();\n\t\tint t = scan.nextInt();\n\t\tint ans = 0;\n\n\t\twhile(n > 0) {\n\t\t\tn -= x;\n\t\t\tans++;\n\t\t}\n\t\tSystem.out.println(ans*t);\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint x = scan.nextInt();\n\t\tint t = scan.nextInt();\n\t\tint ans = 0;\n\n\t\twhile(n > 0) {\n\t\t\tn -= x;\n\t\t\tans++;\n\t\t}\n\t\tSystem.out.println(ans*t);\n\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int x = scan.nextInt();
int t = scan.nextInt();
int ans = 0;
while(n > 0) {
n -= x;
ans++;
}
System.out.println(ans*t);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
14,
2,
13,
17,
30,
41,
13,
2,
13,
13,
4,
18,
18,
13,
13,
2,
13,
13,
30,
41,
13,
2,
2,
13,
13,
17,
4,
18,
18,
13,
13,
2,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
69,
5
],
[
69,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
32,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
6,
66
],
[
66,
67
],
[
0,
68
],
[
68,
69
],
[
68,
70
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int x=sc.nextInt();\n int t=sc.nextInt();\n int rem=n%x;\n if (rem==0){\n int div=n/x;\n System.out.println(div*t);\n }\n else{\n int div=(n/x)+1;\n System.out.println(div*t);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int x=sc.nextInt();\n int t=sc.nextInt();\n int rem=n%x;\n if (rem==0){\n int div=n/x;\n System.out.println(div*t);\n }\n else{\n int div=(n/x)+1;\n System.out.println(div*t);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int x=sc.nextInt();\n int t=sc.nextInt();\n int rem=n%x;\n if (rem==0){\n int div=n/x;\n System.out.println(div*t);\n }\n else{\n int div=(n/x)+1;\n System.out.println(div*t);\n }\n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int x=sc.nextInt();\n int t=sc.nextInt();\n int rem=n%x;\n if (rem==0){\n int div=n/x;\n System.out.println(div*t);\n }\n else{\n int div=(n/x)+1;\n System.out.println(div*t);\n }\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x=sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t=sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int rem=n%x;",
"rem",
"n%x",
"n",
"x",
"if (rem==0){\n int div=n/x;\n System.out.println(div*t);\n }\n else{\n int div=(n/x)+1;\n System.out.println(div*t);\n }",
"rem==0",
"rem",
"0",
"{\n int div=n/x;\n System.out.println(div*t);\n }",
"int div=n/x;",
"div",
"n/x",
"n",
"x",
"System.out.println(div*t)",
"System.out.println",
"System.out",
"System",
"System.out",
"div*t",
"div",
"t",
"{\n int div=(n/x)+1;\n System.out.println(div*t);\n }",
"int div=(n/x)+1;",
"div",
"(n/x)+1",
"(n/x)",
"n",
"x",
"1",
"System.out.println(div*t)",
"System.out.println",
"System.out",
"System",
"System.out",
"div*t",
"div",
"t",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int x=sc.nextInt();\n int t=sc.nextInt();\n int rem=n%x;\n if (rem==0){\n int div=n/x;\n System.out.println(div*t);\n }\n else{\n int div=(n/x)+1;\n System.out.println(div*t);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int x=sc.nextInt();\n int t=sc.nextInt();\n int rem=n%x;\n if (rem==0){\n int div=n/x;\n System.out.println(div*t);\n }\n else{\n int div=(n/x)+1;\n System.out.println(div*t);\n }\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int x=sc.nextInt();
int t=sc.nextInt();
int rem=n%x;
if (rem==0){
int div=n/x;
System.out.println(div*t);
}
else{
int div=(n/x)+1;
System.out.println(div*t);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
42,
17,
30,
0,
13,
2,
13,
13,
0,
13,
2,
13,
13,
14,
2,
13,
13,
30,
4,
18,
13,
13,
3,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
13,
4,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
28,
29
],
[
28,
30
],
[
0,
31
],
[
31,
32
],
[
31,
33
],
[
0,
34
],
[
224,
35
],
[
224,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
45,
47
],
[
41,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
41,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
41,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
41,
63
],
[
63,
64
],
[
63,
65
],
[
41,
66
],
[
66,
67
],
[
66,
68
],
[
41,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
74,
76
],
[
71,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
71,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
86,
91
],
[
36,
92
],
[
92,
93
],
[
0,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
94,
98
],
[
98,
99
],
[
94,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
100,
106
],
[
106,
107
],
[
94,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
111,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
125,
126
],
[
121,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
110,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
94,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
139,
142
],
[
142,
143
],
[
94,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
148,
151
],
[
151,
152
],
[
94,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
157,
160
],
[
160,
161
],
[
94,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
168,
173
],
[
173,
174
],
[
173,
175
],
[
168,
176
],
[
176,
177
],
[
177,
178
],
[
168,
179
],
[
180,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
180,
185
],
[
185,
186
],
[
186,
187
],
[
185,
188
],
[
164,
189
],
[
189,
190
],
[
162,
191
],
[
191,
192
],
[
94,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
195,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
200,
205
],
[
205,
206
],
[
205,
207
],
[
200,
208
],
[
208,
209
],
[
209,
210
],
[
200,
211
],
[
212,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
214,
216
],
[
213,
217
],
[
217,
218
],
[
195,
219
],
[
219,
220
],
[
193,
221
],
[
221,
222
],
[
0,
223
],
[
223,
224
],
[
223,
225
]
]
| [
"import java.util.*;\nimport java.io.*;\nimport java.util.Arrays; \nimport java.util.ArrayList; \nimport java.util.Collections; \nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.InputStream;\nimport java.util.StringTokenizer;\nimport java.math.BigInteger;\n\npublic class Main {\n \n\n\n\n public static void main(String[] args) {\n try (PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {\n FastScanner in = new FastScanner(System.in);\n int n = in.nextInt();\n int x = in.nextInt();\n int t = in.nextInt();\n\n int countMin = 0;\n int madeSnacks = 0;\n\n while(true) {\n countMin = countMin + t;\n madeSnacks = madeSnacks + x;\n if(madeSnacks >= n) {\n out.println(countMin);\n break;\n }\n }\n\n\n\n\n } finally {\n //out.close();\n }\n \n \n }\n}\n\n\n\n\nclass FastScanner {\n private final BufferedReader br;\n private StringTokenizer st;\n \n FastScanner(InputStream InputStream) {\n br = new BufferedReader(new InputStreamReader(InputStream));\n }\n \n String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n\n \n ArrayList<Integer> nextIntList(int count) {\n ArrayList<Integer> array = new ArrayList<>();\n for (int n = 0; n < count; n++) {\n int number = nextInt();\n array.add(number);\n }\n return array;\n }\n \n int[] nextIntArray(int count) {\n int[] array = new int[count];\n for (int n = 0; n < count; n++) {\n array[n] = nextInt();\n }\n return array;\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"public class Main {\n \n\n\n\n public static void main(String[] args) {\n try (PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {\n FastScanner in = new FastScanner(System.in);\n int n = in.nextInt();\n int x = in.nextInt();\n int t = in.nextInt();\n\n int countMin = 0;\n int madeSnacks = 0;\n\n while(true) {\n countMin = countMin + t;\n madeSnacks = madeSnacks + x;\n if(madeSnacks >= n) {\n out.println(countMin);\n break;\n }\n }\n\n\n\n\n } finally {\n //out.close();\n }\n \n \n }\n}",
"Main",
"public static void main(String[] args) {\n try (PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {\n FastScanner in = new FastScanner(System.in);\n int n = in.nextInt();\n int x = in.nextInt();\n int t = in.nextInt();\n\n int countMin = 0;\n int madeSnacks = 0;\n\n while(true) {\n countMin = countMin + t;\n madeSnacks = madeSnacks + x;\n if(madeSnacks >= n) {\n out.println(countMin);\n break;\n }\n }\n\n\n\n\n } finally {\n //out.close();\n }\n \n \n }",
"main",
"{\n try (PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {\n FastScanner in = new FastScanner(System.in);\n int n = in.nextInt();\n int x = in.nextInt();\n int t = in.nextInt();\n\n int countMin = 0;\n int madeSnacks = 0;\n\n while(true) {\n countMin = countMin + t;\n madeSnacks = madeSnacks + x;\n if(madeSnacks >= n) {\n out.println(countMin);\n break;\n }\n }\n\n\n\n\n } finally {\n //out.close();\n }\n \n \n }",
"try (PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {\n FastScanner in = new FastScanner(System.in);\n int n = in.nextInt();\n int x = in.nextInt();\n int t = in.nextInt();\n\n int countMin = 0;\n int madeSnacks = 0;\n\n while(true) {\n countMin = countMin + t;\n madeSnacks = madeSnacks + x;\n if(madeSnacks >= n) {\n out.println(countMin);\n break;\n }\n }\n\n\n\n\n } finally {\n //out.close();\n }",
"{\n //out.close();\n }",
"{\n FastScanner in = new FastScanner(System.in);\n int n = in.nextInt();\n int x = in.nextInt();\n int t = in.nextInt();\n\n int countMin = 0;\n int madeSnacks = 0;\n\n while(true) {\n countMin = countMin + t;\n madeSnacks = madeSnacks + x;\n if(madeSnacks >= n) {\n out.println(countMin);\n break;\n }\n }\n\n\n\n\n }",
"PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))",
"PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))",
"new PrintWriter(new BufferedOutputStream(System.out))",
"FastScanner in = new FastScanner(System.in);",
"in",
"new FastScanner(System.in)",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"int x = in.nextInt();",
"x",
"in.nextInt()",
"in.nextInt",
"in",
"int t = in.nextInt();",
"t",
"in.nextInt()",
"in.nextInt",
"in",
"int countMin = 0;",
"countMin",
"0",
"int madeSnacks = 0;",
"madeSnacks",
"0",
"while(true) {\n countMin = countMin + t;\n madeSnacks = madeSnacks + x;\n if(madeSnacks >= n) {\n out.println(countMin);\n break;\n }\n }",
"true",
"{\n countMin = countMin + t;\n madeSnacks = madeSnacks + x;\n if(madeSnacks >= n) {\n out.println(countMin);\n break;\n }\n }",
"countMin = countMin + t",
"countMin",
"countMin + t",
"countMin",
"t",
"madeSnacks = madeSnacks + x",
"madeSnacks",
"madeSnacks + x",
"madeSnacks",
"x",
"if(madeSnacks >= n) {\n out.println(countMin);\n break;\n }",
"madeSnacks >= n",
"madeSnacks",
"n",
"{\n out.println(countMin);\n break;\n }",
"out.println(countMin)",
"out.println",
"out",
"countMin",
"break;",
"String[] args",
"args",
"class FastScanner {\n private final BufferedReader br;\n private StringTokenizer st;\n \n FastScanner(InputStream InputStream) {\n br = new BufferedReader(new InputStreamReader(InputStream));\n }\n \n String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n\n \n ArrayList<Integer> nextIntList(int count) {\n ArrayList<Integer> array = new ArrayList<>();\n for (int n = 0; n < count; n++) {\n int number = nextInt();\n array.add(number);\n }\n return array;\n }\n \n int[] nextIntArray(int count) {\n int[] array = new int[count];\n for (int n = 0; n < count; n++) {\n array[n] = nextInt();\n }\n return array;\n }\n}",
"FastScanner",
"private final BufferedReader br;",
"br",
"private StringTokenizer st;",
"st",
"FastScanner(InputStream InputStream) {\n br = new BufferedReader(new InputStreamReader(InputStream));\n }",
"FastScanner",
"{\n br = new BufferedReader(new InputStreamReader(InputStream));\n }",
"br = new BufferedReader(new InputStreamReader(InputStream))",
"br",
"new BufferedReader(new InputStreamReader(InputStream))",
"InputStream InputStream",
"InputStream",
"String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }",
"catch (IOException e) {\n throw new RuntimeException(e);\n }",
"IOException e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"ArrayList<Integer> nextIntList(int count) {\n ArrayList<Integer> array = new ArrayList<>();\n for (int n = 0; n < count; n++) {\n int number = nextInt();\n array.add(number);\n }\n return array;\n }",
"nextIntList",
"{\n ArrayList<Integer> array = new ArrayList<>();\n for (int n = 0; n < count; n++) {\n int number = nextInt();\n array.add(number);\n }\n return array;\n }",
"ArrayList<Integer> array = new ArrayList<>();",
"array",
"new ArrayList<>()",
"for (int n = 0; n < count; n++) {\n int number = nextInt();\n array.add(number);\n }",
"int n = 0;",
"int n = 0;",
"n",
"0",
"n < count",
"n",
"count",
"n++",
"n++",
"n",
"{\n int number = nextInt();\n array.add(number);\n }",
"{\n int number = nextInt();\n array.add(number);\n }",
"int number = nextInt();",
"number",
"nextInt()",
"nextInt",
"array.add(number)",
"array.add",
"array",
"number",
"return array;",
"array",
"int count",
"count",
"int[] nextIntArray(int count) {\n int[] array = new int[count];\n for (int n = 0; n < count; n++) {\n array[n] = nextInt();\n }\n return array;\n }",
"nextIntArray",
"{\n int[] array = new int[count];\n for (int n = 0; n < count; n++) {\n array[n] = nextInt();\n }\n return array;\n }",
"int[] array = new int[count];",
"array",
"new int[count]",
"count",
"for (int n = 0; n < count; n++) {\n array[n] = nextInt();\n }",
"int n = 0;",
"int n = 0;",
"n",
"0",
"n < count",
"n",
"count",
"n++",
"n++",
"n",
"{\n array[n] = nextInt();\n }",
"{\n array[n] = nextInt();\n }",
"array[n] = nextInt()",
"array[n]",
"array",
"n",
"nextInt()",
"nextInt",
"return array;",
"array",
"int count",
"count",
"public class Main {\n \n\n\n\n public static void main(String[] args) {\n try (PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {\n FastScanner in = new FastScanner(System.in);\n int n = in.nextInt();\n int x = in.nextInt();\n int t = in.nextInt();\n\n int countMin = 0;\n int madeSnacks = 0;\n\n while(true) {\n countMin = countMin + t;\n madeSnacks = madeSnacks + x;\n if(madeSnacks >= n) {\n out.println(countMin);\n break;\n }\n }\n\n\n\n\n } finally {\n //out.close();\n }\n \n \n }\n}",
"public class Main {\n \n\n\n\n public static void main(String[] args) {\n try (PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {\n FastScanner in = new FastScanner(System.in);\n int n = in.nextInt();\n int x = in.nextInt();\n int t = in.nextInt();\n\n int countMin = 0;\n int madeSnacks = 0;\n\n while(true) {\n countMin = countMin + t;\n madeSnacks = madeSnacks + x;\n if(madeSnacks >= n) {\n out.println(countMin);\n break;\n }\n }\n\n\n\n\n } finally {\n //out.close();\n }\n \n \n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.Collections;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.InputStream;
import java.util.StringTokenizer;
import java.math.BigInteger;
public class Main {
public static void main(String[] args) {
try (PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {
FastScanner in = new FastScanner(System.in);
int n = in.nextInt();
int x = in.nextInt();
int t = in.nextInt();
int countMin = 0;
int madeSnacks = 0;
while(true) {
countMin = countMin + t;
madeSnacks = madeSnacks + x;
if(madeSnacks >= n) {
out.println(countMin);
break;
}
}
} finally {
//out.close();
}
}
}
class FastScanner {
private final BufferedReader br;
private StringTokenizer st;
FastScanner(InputStream InputStream) {
br = new BufferedReader(new InputStreamReader(InputStream));
}
String next() {
while (st == null || !st.hasMoreTokens()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
ArrayList<Integer> nextIntList(int count) {
ArrayList<Integer> array = new ArrayList<>();
for (int n = 0; n < count; n++) {
int number = nextInt();
array.add(number);
}
return array;
}
int[] nextIntArray(int count) {
int[] array = new int[count];
for (int n = 0; n < count; n++) {
array[n] = nextInt();
}
return array;
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
2,
2,
2,
2,
13,
13,
17,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
4,
18,
20,
13,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
69,
8
],
[
69,
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
],
[
24,
25
],
[
25,
26
],
[
11,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
31,
37
],
[
30,
38
],
[
9,
39
],
[
39,
40
],
[
9,
41
],
[
41,
42
],
[
69,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
49,
51
],
[
45,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
52,
56
],
[
45,
57
],
[
57,
58
],
[
58,
59
],
[
45,
60
],
[
60,
61
],
[
61,
62
],
[
45,
63
],
[
63,
64
],
[
64,
65
],
[
43,
66
],
[
66,
67
],
[
0,
68
],
[
68,
69
],
[
68,
70
]
]
| [
"import java.io.PrintWriter;\nimport java.util.Scanner;\n\npublic class Main {\n void solve(Scanner sc, PrintWriter pw) {\n int N = sc.nextInt();\n int X = sc.nextInt();\n int T = sc.nextInt();\n pw.println((N + X - 1) / X * T);\n }\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n new Main().solve(sc, pw);\n pw.flush();\n pw.close();\n sc.close();\n }\n}",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n void solve(Scanner sc, PrintWriter pw) {\n int N = sc.nextInt();\n int X = sc.nextInt();\n int T = sc.nextInt();\n pw.println((N + X - 1) / X * T);\n }\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n new Main().solve(sc, pw);\n pw.flush();\n pw.close();\n sc.close();\n }\n}",
"Main",
"void solve(Scanner sc, PrintWriter pw) {\n int N = sc.nextInt();\n int X = sc.nextInt();\n int T = sc.nextInt();\n pw.println((N + X - 1) / X * T);\n }",
"solve",
"{\n int N = sc.nextInt();\n int X = sc.nextInt();\n int T = sc.nextInt();\n pw.println((N + X - 1) / X * T);\n }",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int X = sc.nextInt();",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int T = sc.nextInt();",
"T",
"sc.nextInt()",
"sc.nextInt",
"sc",
"pw.println((N + X - 1) / X * T)",
"pw.println",
"pw",
"(N + X - 1) / X * T",
"(N + X - 1) / X",
"(N + X - 1)",
"N + X",
"N",
"X",
"1",
"X",
"T",
"Scanner sc",
"sc",
"PrintWriter pw",
"pw",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n new Main().solve(sc, pw);\n pw.flush();\n pw.close();\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n new Main().solve(sc, pw);\n pw.flush();\n pw.close();\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"PrintWriter pw = new PrintWriter(System.out);",
"pw",
"new PrintWriter(System.out)",
"new Main().solve(sc, pw)",
"new Main().solve",
"new Main()",
"sc",
"pw",
"pw.flush()",
"pw.flush",
"pw",
"pw.close()",
"pw.close",
"pw",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n void solve(Scanner sc, PrintWriter pw) {\n int N = sc.nextInt();\n int X = sc.nextInt();\n int T = sc.nextInt();\n pw.println((N + X - 1) / X * T);\n }\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n new Main().solve(sc, pw);\n pw.flush();\n pw.close();\n sc.close();\n }\n}",
"public class Main {\n void solve(Scanner sc, PrintWriter pw) {\n int N = sc.nextInt();\n int X = sc.nextInt();\n int T = sc.nextInt();\n pw.println((N + X - 1) / X * T);\n }\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n new Main().solve(sc, pw);\n pw.flush();\n pw.close();\n sc.close();\n }\n}",
"Main"
]
| import java.io.PrintWriter;
import java.util.Scanner;
public class Main {
void solve(Scanner sc, PrintWriter pw) {
int N = sc.nextInt();
int X = sc.nextInt();
int T = sc.nextInt();
pw.println((N + X - 1) / X * T);
}
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
PrintWriter pw = new PrintWriter(System.out);
new Main().solve(sc, pw);
pw.flush();
pw.close();
sc.close();
}
}
|
[
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,
41,
13,
17,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
41,
13,
4,
13,
17,
41,
13,
2,
18,
13,
17,
18,
13,
17,
14,
2,
2,
18,
13,
17,
18,
13,
17,
17,
40,
13,
4,
18,
13,
2,
13,
18,
13,
17,
12,
13,
30,
0,
13,
8,
4,
18,
13,
18,
13,
13,
20,
0,
13,
20,
4,
13,
4,
18,
13,
23,
13,
12,
13,
30,
14,
2,
13,
40,
17,
37,
20,
14,
2,
13,
13,
30,
0,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
29,
40,
2,
2,
13,
17,
2,
13,
17,
23,
13,
12,
13,
30,
41,
13,
42,
2,
2,
0,
13,
4,
13,
40,
17,
4,
13,
13,
29,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
20,
42,
40,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
41,
13,
20,
13,
41,
13,
4,
13,
41,
13,
17,
42,
2,
2,
13,
13,
40,
4,
13,
13,
30,
0,
18,
13,
40,
13,
13,
0,
13,
4,
13,
29,
8,
2,
13,
13,
13,
4,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
41,
13,
17,
42,
2,
2,
0,
13,
4,
13,
40,
17,
40,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
4,
13,
42,
17,
30,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
13,
17,
2,
13,
17,
30,
29,
8,
13,
40,
13,
13,
0,
13,
4,
13,
12,
13,
30,
41,
13,
17,
41,
13,
41,
13,
17,
42,
2,
2,
0,
13,
4,
13,
40,
17,
40,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
4,
13,
42,
17,
30,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
13,
17,
2,
13,
17,
30,
29,
8,
13,
40,
13,
13,
0,
13,
4,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
603,
20
],
[
603,
21
],
[
21,
22
],
[
603,
23
],
[
23,
24
],
[
603,
25
],
[
25,
26
],
[
25,
27
],
[
603,
28
],
[
28,
29
],
[
28,
30
],
[
603,
32
],
[
32,
33
],
[
32,
34
],
[
603,
35
],
[
35,
36
],
[
35,
37
],
[
603,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
40,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
52,
54
],
[
40,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
61,
63
],
[
56,
64
],
[
55,
65
],
[
65,
66
],
[
40,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
603,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
80,
84
],
[
84,
85
],
[
84,
86
],
[
80,
87
],
[
77,
88
],
[
88,
89
],
[
88,
90
],
[
77,
91
],
[
91,
92
],
[
77,
93
],
[
93,
94
],
[
94,
95
],
[
75,
96
],
[
96,
97
],
[
603,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
101,
106
],
[
106,
107
],
[
100,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
116,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
125,
128
],
[
112,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
133,
134
],
[
134,
135
],
[
100,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
603,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
146,
150
],
[
150,
151
],
[
150,
152
],
[
141,
153
],
[
153,
154
],
[
603,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
158,
159
],
[
157,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
162,
167
],
[
167,
168
],
[
161,
169
],
[
169,
170
],
[
169,
171
],
[
157,
172
],
[
172,
173
],
[
603,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
178,
181
],
[
181,
182
],
[
603,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
603,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
194,
195
],
[
191,
196
],
[
196,
197
],
[
196,
198
],
[
191,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
199,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
205,
208
],
[
204,
209
],
[
209,
210
],
[
209,
211
],
[
211,
212
],
[
191,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
603,
217
],
[
217,
218
],
[
217,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
219,
224
],
[
224,
225
],
[
224,
226
],
[
226,
227
],
[
219,
228
],
[
228,
229
],
[
228,
230
],
[
219,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
233,
235
],
[
232,
236
],
[
236,
237
],
[
237,
238
],
[
237,
239
],
[
231,
240
],
[
240,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
244,
245
],
[
241,
246
],
[
240,
247
],
[
247,
248
],
[
247,
249
],
[
249,
250
],
[
219,
251
],
[
251,
252
],
[
252,
253
],
[
253,
254
],
[
253,
255
],
[
252,
256
],
[
252,
257
],
[
257,
258
],
[
258,
259
],
[
257,
260
],
[
257,
261
],
[
217,
262
],
[
262,
263
],
[
603,
264
],
[
264,
265
],
[
264,
266
],
[
266,
267
],
[
267,
268
],
[
267,
269
],
[
266,
271
],
[
271,
272
],
[
272,
273
],
[
273,
274
],
[
273,
275
],
[
271,
276
],
[
276,
277
],
[
276,
278
],
[
271,
279
],
[
279,
280
],
[
280,
281
],
[
271,
282
],
[
282,
283
],
[
283,
284
],
[
284,
285
],
[
284,
286
],
[
283,
287
],
[
287,
288
],
[
287,
289
],
[
266,
290
],
[
290,
291
],
[
264,
292
],
[
292,
293
],
[
264,
294
],
[
294,
295
],
[
603,
296
],
[
296,
297
],
[
296,
298
],
[
298,
299
],
[
299,
300
],
[
299,
301
],
[
298,
303
],
[
303,
304
],
[
304,
305
],
[
305,
306
],
[
305,
307
],
[
303,
308
],
[
308,
309
],
[
308,
310
],
[
303,
311
],
[
311,
312
],
[
312,
313
],
[
303,
314
],
[
314,
315
],
[
315,
316
],
[
316,
317
],
[
316,
318
],
[
315,
319
],
[
319,
320
],
[
298,
321
],
[
321,
322
],
[
296,
323
],
[
323,
324
],
[
603,
325
],
[
325,
326
],
[
325,
327
],
[
327,
328
],
[
328,
329
],
[
328,
330
],
[
327,
332
],
[
332,
333
],
[
333,
334
],
[
334,
335
],
[
334,
336
],
[
332,
337
],
[
337,
338
],
[
337,
339
],
[
332,
340
],
[
340,
341
],
[
341,
342
],
[
332,
343
],
[
343,
344
],
[
344,
345
],
[
345,
346
],
[
345,
347
],
[
344,
348
],
[
348,
349
],
[
327,
350
],
[
350,
351
],
[
325,
352
],
[
352,
353
],
[
603,
354
],
[
354,
355
],
[
354,
356
],
[
356,
357
],
[
357,
358
],
[
357,
359
],
[
356,
362
],
[
362,
363
],
[
363,
364
],
[
364,
365
],
[
364,
366
],
[
362,
367
],
[
367,
368
],
[
367,
369
],
[
362,
370
],
[
370,
371
],
[
371,
372
],
[
362,
373
],
[
374,
374
],
[
374,
375
],
[
375,
376
],
[
376,
377
],
[
377,
378
],
[
377,
379
],
[
375,
380
],
[
380,
381
],
[
380,
382
],
[
375,
383
],
[
383,
384
],
[
384,
385
],
[
375,
386
],
[
387,
387
],
[
387,
388
],
[
388,
389
],
[
389,
390
],
[
390,
391
],
[
390,
392
],
[
389,
393
],
[
388,
394
],
[
394,
395
],
[
356,
396
],
[
396,
397
],
[
354,
398
],
[
398,
399
],
[
354,
400
],
[
400,
401
],
[
603,
402
],
[
402,
403
],
[
402,
404
],
[
404,
405
],
[
405,
406
],
[
405,
407
],
[
404,
410
],
[
410,
411
],
[
411,
412
],
[
412,
413
],
[
412,
414
],
[
410,
415
],
[
415,
416
],
[
415,
417
],
[
410,
418
],
[
418,
419
],
[
419,
420
],
[
410,
421
],
[
422,
422
],
[
422,
423
],
[
423,
424
],
[
424,
425
],
[
425,
426
],
[
425,
427
],
[
423,
428
],
[
428,
429
],
[
428,
430
],
[
423,
431
],
[
431,
432
],
[
432,
433
],
[
423,
434
],
[
435,
435
],
[
435,
436
],
[
436,
437
],
[
437,
438
],
[
438,
439
],
[
438,
440
],
[
437,
441
],
[
436,
442
],
[
442,
443
],
[
404,
444
],
[
444,
445
],
[
402,
446
],
[
446,
447
],
[
402,
448
],
[
448,
449
],
[
603,
450
],
[
450,
451
],
[
450,
452
],
[
452,
453
],
[
453,
454
],
[
453,
455
],
[
452,
456
],
[
456,
457
],
[
452,
458
],
[
458,
459
],
[
458,
460
],
[
452,
461
],
[
461,
462
],
[
462,
463
],
[
463,
464
],
[
464,
465
],
[
464,
466
],
[
466,
467
],
[
463,
468
],
[
468,
469
],
[
462,
470
],
[
470,
471
],
[
471,
472
],
[
472,
473
],
[
473,
474
],
[
473,
475
],
[
472,
476
],
[
476,
477
],
[
476,
478
],
[
471,
479
],
[
479,
480
],
[
479,
481
],
[
452,
482
],
[
482,
483
],
[
483,
484
],
[
483,
485
],
[
482,
486
],
[
486,
487
],
[
487,
488
],
[
487,
489
],
[
486,
490
],
[
490,
491
],
[
490,
492
],
[
492,
493
],
[
452,
494
],
[
494,
495
],
[
494,
496
],
[
496,
497
],
[
497,
498
],
[
498,
499
],
[
499,
500
],
[
499,
501
],
[
498,
502
],
[
502,
503
],
[
502,
504
],
[
497,
505
],
[
505,
506
],
[
506,
507
],
[
506,
508
],
[
508,
509
],
[
509,
510
],
[
509,
511
],
[
508,
512
],
[
512,
513
],
[
512,
514
],
[
497,
515
],
[
515,
516
],
[
516,
517
],
[
517,
518
],
[
517,
519
],
[
519,
520
],
[
517,
521
],
[
496,
522
],
[
522,
523
],
[
522,
524
],
[
524,
525
],
[
603,
526
],
[
526,
527
],
[
526,
528
],
[
528,
529
],
[
529,
530
],
[
529,
531
],
[
528,
532
],
[
532,
533
],
[
528,
534
],
[
534,
535
],
[
534,
536
],
[
528,
537
],
[
537,
538
],
[
538,
539
],
[
539,
540
],
[
540,
541
],
[
540,
542
],
[
542,
543
],
[
539,
544
],
[
544,
545
],
[
538,
546
],
[
546,
547
],
[
547,
548
],
[
548,
549
],
[
549,
550
],
[
549,
551
],
[
548,
552
],
[
552,
553
],
[
552,
554
],
[
547,
555
],
[
555,
556
],
[
555,
557
],
[
528,
558
],
[
558,
559
],
[
559,
560
],
[
559,
561
],
[
558,
562
],
[
562,
563
],
[
563,
564
],
[
563,
565
],
[
562,
566
],
[
566,
567
],
[
566,
568
],
[
568,
569
],
[
528,
570
],
[
570,
571
],
[
570,
572
],
[
572,
573
],
[
573,
574
],
[
574,
575
],
[
575,
576
],
[
575,
577
],
[
574,
578
],
[
578,
579
],
[
578,
580
],
[
573,
581
],
[
581,
582
],
[
582,
583
],
[
582,
584
],
[
584,
585
],
[
585,
586
],
[
585,
587
],
[
584,
588
],
[
588,
589
],
[
588,
590
],
[
573,
591
],
[
591,
592
],
[
592,
593
],
[
593,
594
],
[
593,
595
],
[
595,
596
],
[
593,
597
],
[
572,
598
],
[
598,
599
],
[
598,
600
],
[
600,
601
],
[
0,
602
],
[
602,
603
],
[
602,
604
]
]
| [
"import java.io.ByteArrayInputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.Arrays;\nimport java.util.InputMismatchException;\n \npublic class Main {\n\tstatic void solve() {\n\t\tint a[] = na(3);\n\t\tint cooking = a[0] / a[1];\n\t\tif (a[0] % a[1] != 0) cooking++;\n\t\tout.println(cooking * a[2]);\n\t}\t\n \n\tpublic static void main(String[] args) throws Exception {\n\t\tis = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t}\n\t//input\n\tstatic InputStream is;\n\tstatic PrintWriter out;\n\tstatic String INPUT = \"\";\n\tprivate static byte[] inbuf = new byte[1024];\n\tstatic int lenbuf = 0, ptrbuf = 0;\n\tprivate static int readByte() {\n\t\tif (lenbuf == -1)\n\t\t\tthrow new InputMismatchException();\n\t\tif (ptrbuf >= lenbuf) {\n\t\t\tptrbuf = 0;\n\t\t\ttry {\n\t\t\t\tlenbuf = is.read(inbuf);\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\tif (lenbuf <= 0)\n\t\t\t\treturn -1;\n\t\t}\n\t\treturn inbuf[ptrbuf++];\n\t}\n\tprivate static boolean isSpaceChar(int c) {\n\t\treturn !(c >= 33 && c <= 126);\n\t}\n\tprivate static int skip() {\n\t\tint b;\n\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t;\n\t\treturn b;\n\t}\n\t@SuppressWarnings(\"unused\")\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(ns());\n\t}\n\t@SuppressWarnings(\"unused\")\n\tprivate static char nc() {\n\t\treturn (char) skip();\n\t}\n\tprivate static String ns() {\n\t\tint b = skip();\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile (!(isSpaceChar(b))) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}\n\tprivate static char[] ns(int n) {\n\t\tchar[] buf = new char[n];\n\t\tint b = skip(), p = 0;\n\t\twhile (p < n && !(isSpaceChar(b))) {\n\t\t\tbuf[p++] = (char) b;\n\t\t\tb = readByte();\n\t\t}\n\t\treturn n == p ? buf : Arrays.copyOf(buf, p);\n\t}\n\t@SuppressWarnings(\"unused\")\n\tprivate static char[][] nm(int n, int m) {\n\t\tchar[][] map = new char[n][];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tmap[i] = ns(m);\n\t\treturn map;\n\t}\n\t@SuppressWarnings(\"unused\")\n\tprivate static int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}\n\t@SuppressWarnings(\"unused\")\n\tprivate static long[] nla(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}\n\t\n\t@SuppressWarnings(\"unused\")\n\tprivate static int[][] nas(int n, int m){\n\t\tint[][] res = new int[n][m];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tres[i][j] = ni();\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}\n\t\n\t@SuppressWarnings(\"unused\")\n\tprivate static long[][] nlas(int n, int m){\n\t\tlong[][] res = new long[n][m];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tres[i][j] = nl();\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}\n\t\n\t@SuppressWarnings(\"unused\")\n\tprivate static int ni() {\n\t\tint num = 0, b;\n\t\tboolean minus = false;\n\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t;\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\t\n\t\twhile (true) {\n\t\t\tif (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}\n\t@SuppressWarnings(\"unused\")\n\tprivate static long nl() {\n\t\tlong num = 0;\n\t\tint b;\n\t\tboolean minus = false;\n\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t;\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\t\n\t\twhile (true) {\n\t\t\tif (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}\n}",
"import java.io.ByteArrayInputStream;",
"ByteArrayInputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.InputMismatchException;",
"InputMismatchException",
"java.util",
"public class Main {\n\tstatic void solve() {\n\t\tint a[] = na(3);\n\t\tint cooking = a[0] / a[1];\n\t\tif (a[0] % a[1] != 0) cooking++;\n\t\tout.println(cooking * a[2]);\n\t}\t\n \n\tpublic static void main(String[] args) throws Exception {\n\t\tis = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t}\n\t//input\n\tstatic InputStream is;\n\tstatic PrintWriter out;\n\tstatic String INPUT = \"\";\n\tprivate static byte[] inbuf = new byte[1024];\n\tstatic int lenbuf = 0, ptrbuf = 0;\n\tprivate static int readByte() {\n\t\tif (lenbuf == -1)\n\t\t\tthrow new InputMismatchException();\n\t\tif (ptrbuf >= lenbuf) {\n\t\t\tptrbuf = 0;\n\t\t\ttry {\n\t\t\t\tlenbuf = is.read(inbuf);\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\tif (lenbuf <= 0)\n\t\t\t\treturn -1;\n\t\t}\n\t\treturn inbuf[ptrbuf++];\n\t}\n\tprivate static boolean isSpaceChar(int c) {\n\t\treturn !(c >= 33 && c <= 126);\n\t}\n\tprivate static int skip() {\n\t\tint b;\n\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t;\n\t\treturn b;\n\t}\n\t@SuppressWarnings(\"unused\")\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(ns());\n\t}\n\t@SuppressWarnings(\"unused\")\n\tprivate static char nc() {\n\t\treturn (char) skip();\n\t}\n\tprivate static String ns() {\n\t\tint b = skip();\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile (!(isSpaceChar(b))) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}\n\tprivate static char[] ns(int n) {\n\t\tchar[] buf = new char[n];\n\t\tint b = skip(), p = 0;\n\t\twhile (p < n && !(isSpaceChar(b))) {\n\t\t\tbuf[p++] = (char) b;\n\t\t\tb = readByte();\n\t\t}\n\t\treturn n == p ? buf : Arrays.copyOf(buf, p);\n\t}\n\t@SuppressWarnings(\"unused\")\n\tprivate static char[][] nm(int n, int m) {\n\t\tchar[][] map = new char[n][];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tmap[i] = ns(m);\n\t\treturn map;\n\t}\n\t@SuppressWarnings(\"unused\")\n\tprivate static int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}\n\t@SuppressWarnings(\"unused\")\n\tprivate static long[] nla(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}\n\t\n\t@SuppressWarnings(\"unused\")\n\tprivate static int[][] nas(int n, int m){\n\t\tint[][] res = new int[n][m];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tres[i][j] = ni();\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}\n\t\n\t@SuppressWarnings(\"unused\")\n\tprivate static long[][] nlas(int n, int m){\n\t\tlong[][] res = new long[n][m];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tres[i][j] = nl();\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}\n\t\n\t@SuppressWarnings(\"unused\")\n\tprivate static int ni() {\n\t\tint num = 0, b;\n\t\tboolean minus = false;\n\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t;\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\t\n\t\twhile (true) {\n\t\t\tif (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}\n\t@SuppressWarnings(\"unused\")\n\tprivate static long nl() {\n\t\tlong num = 0;\n\t\tint b;\n\t\tboolean minus = false;\n\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t;\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\t\n\t\twhile (true) {\n\t\t\tif (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}\n}",
"Main",
"//input\n\tstatic InputStream is;",
"is",
"static PrintWriter out;",
"out",
"static String INPUT = \"\";",
"INPUT",
"\"\"",
"private static byte[] inbuf = new byte[1024];",
"inbuf",
"new byte[1024]",
"1024",
"static int lenbuf = 0",
"lenbuf",
"0",
"ptrbuf = 0;",
"ptrbuf",
"0",
"static void solve() {\n\t\tint a[] = na(3);\n\t\tint cooking = a[0] / a[1];\n\t\tif (a[0] % a[1] != 0) cooking++;\n\t\tout.println(cooking * a[2]);\n\t}",
"solve",
"{\n\t\tint a[] = na(3);\n\t\tint cooking = a[0] / a[1];\n\t\tif (a[0] % a[1] != 0) cooking++;\n\t\tout.println(cooking * a[2]);\n\t}",
"int a[] = na(3);",
"a",
"na(3)",
"na",
"3",
"int cooking = a[0] / a[1];",
"cooking",
"a[0] / a[1]",
"a[0]",
"a",
"0",
"a[1]",
"a",
"1",
"if (a[0] % a[1] != 0) cooking++;",
"a[0] % a[1] != 0",
"a[0] % a[1]",
"a[0]",
"a",
"0",
"a[1]",
"a",
"1",
"0",
"cooking++",
"cooking",
"out.println(cooking * a[2])",
"out.println",
"out",
"cooking * a[2]",
"cooking",
"a[2]",
"a",
"2",
"public static void main(String[] args) throws Exception {\n\t\tis = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t}",
"main",
"{\n\t\tis = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t}",
"is = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes())",
"is",
"INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes())",
"INPUT.isEmpty()",
"INPUT.isEmpty",
"INPUT",
"System.in",
"System",
"System.in",
"new ByteArrayInputStream(INPUT.getBytes())",
"out = new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"solve()",
"solve",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"private static int readByte() {\n\t\tif (lenbuf == -1)\n\t\t\tthrow new InputMismatchException();\n\t\tif (ptrbuf >= lenbuf) {\n\t\t\tptrbuf = 0;\n\t\t\ttry {\n\t\t\t\tlenbuf = is.read(inbuf);\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\tif (lenbuf <= 0)\n\t\t\t\treturn -1;\n\t\t}\n\t\treturn inbuf[ptrbuf++];\n\t}",
"readByte",
"{\n\t\tif (lenbuf == -1)\n\t\t\tthrow new InputMismatchException();\n\t\tif (ptrbuf >= lenbuf) {\n\t\t\tptrbuf = 0;\n\t\t\ttry {\n\t\t\t\tlenbuf = is.read(inbuf);\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\tif (lenbuf <= 0)\n\t\t\t\treturn -1;\n\t\t}\n\t\treturn inbuf[ptrbuf++];\n\t}",
"if (lenbuf == -1)\n\t\t\tthrow new InputMismatchException();",
"lenbuf == -1",
"lenbuf",
"-1",
"1",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (ptrbuf >= lenbuf) {\n\t\t\tptrbuf = 0;\n\t\t\ttry {\n\t\t\t\tlenbuf = is.read(inbuf);\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\tif (lenbuf <= 0)\n\t\t\t\treturn -1;\n\t\t}",
"ptrbuf >= lenbuf",
"ptrbuf",
"lenbuf",
"{\n\t\t\tptrbuf = 0;\n\t\t\ttry {\n\t\t\t\tlenbuf = is.read(inbuf);\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\tif (lenbuf <= 0)\n\t\t\t\treturn -1;\n\t\t}",
"ptrbuf = 0",
"ptrbuf",
"0",
"try {\n\t\t\t\tlenbuf = is.read(inbuf);\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}",
"catch (IOException e) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}",
"IOException e",
"{\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n\t\t\t\tlenbuf = is.read(inbuf);\n\t\t\t}",
"lenbuf = is.read(inbuf)",
"lenbuf",
"is.read(inbuf)",
"is.read",
"is",
"inbuf",
"if (lenbuf <= 0)\n\t\t\t\treturn -1;",
"lenbuf <= 0",
"lenbuf",
"0",
"return -1;",
"-1",
"1",
"return inbuf[ptrbuf++];",
"inbuf[ptrbuf++]",
"inbuf",
"ptrbuf++",
"ptrbuf",
"private static boolean isSpaceChar(int c) {\n\t\treturn !(c >= 33 && c <= 126);\n\t}",
"isSpaceChar",
"{\n\t\treturn !(c >= 33 && c <= 126);\n\t}",
"return !(c >= 33 && c <= 126);",
"!(c >= 33 && c <= 126)",
"(c >= 33 && c <= 126)",
"c >= 33",
"c",
"33",
"c <= 126",
"c",
"126",
"int c",
"c",
"private static int skip() {\n\t\tint b;\n\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t;\n\t\treturn b;\n\t}",
"skip",
"{\n\t\tint b;\n\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t;\n\t\treturn b;\n\t}",
"int b;",
"b",
"while ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t;",
"(b = readByte()) != -1 && isSpaceChar(b)",
"(b = readByte()) != -1",
"(b = readByte())",
"b",
"readByte()",
"readByte",
"-1",
"1",
"isSpaceChar(b)",
"isSpaceChar",
"b",
"return b;",
"b",
"@SuppressWarnings(\"unused\")\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(ns());\n\t}",
"nd",
"{\n\t\treturn Double.parseDouble(ns());\n\t}",
"return Double.parseDouble(ns());",
"Double.parseDouble(ns())",
"Double.parseDouble",
"Double",
"ns()",
"ns",
"@SuppressWarnings(\"unused\")\n\tprivate static char nc() {\n\t\treturn (char) skip();\n\t}",
"nc",
"{\n\t\treturn (char) skip();\n\t}",
"return (char) skip();",
"(char) skip()",
"skip",
"private static String ns() {\n\t\tint b = skip();\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile (!(isSpaceChar(b))) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}",
"ns",
"{\n\t\tint b = skip();\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile (!(isSpaceChar(b))) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}",
"int b = skip();",
"b",
"skip()",
"skip",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"while (!(isSpaceChar(b))) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}",
"!(isSpaceChar(b))",
"(isSpaceChar(b))",
"isSpaceChar",
"b",
"{\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}",
"sb.appendCodePoint(b)",
"sb.appendCodePoint",
"sb",
"b",
"b = readByte()",
"b",
"readByte()",
"readByte",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"private static char[] ns(int n) {\n\t\tchar[] buf = new char[n];\n\t\tint b = skip(), p = 0;\n\t\twhile (p < n && !(isSpaceChar(b))) {\n\t\t\tbuf[p++] = (char) b;\n\t\t\tb = readByte();\n\t\t}\n\t\treturn n == p ? buf : Arrays.copyOf(buf, p);\n\t}",
"ns",
"{\n\t\tchar[] buf = new char[n];\n\t\tint b = skip(), p = 0;\n\t\twhile (p < n && !(isSpaceChar(b))) {\n\t\t\tbuf[p++] = (char) b;\n\t\t\tb = readByte();\n\t\t}\n\t\treturn n == p ? buf : Arrays.copyOf(buf, p);\n\t}",
"char[] buf = new char[n];",
"buf",
"new char[n]",
"n",
"int b = skip()",
"b",
"skip()",
"skip",
"p = 0;",
"p",
"0",
"while (p < n && !(isSpaceChar(b))) {\n\t\t\tbuf[p++] = (char) b;\n\t\t\tb = readByte();\n\t\t}",
"p < n && !(isSpaceChar(b))",
"p < n",
"p",
"n",
"!(isSpaceChar(b))",
"(isSpaceChar(b))",
"isSpaceChar",
"b",
"{\n\t\t\tbuf[p++] = (char) b;\n\t\t\tb = readByte();\n\t\t}",
"buf[p++] = (char) b",
"buf[p++]",
"buf",
"p++",
"p",
"(char) b",
"b = readByte()",
"b",
"readByte()",
"readByte",
"return n == p ? buf : Arrays.copyOf(buf, p);",
"n == p ? buf : Arrays.copyOf(buf, p)",
"n == p",
"n",
"p",
"buf",
"Arrays.copyOf(buf, p)",
"Arrays.copyOf",
"Arrays",
"buf",
"p",
"int n",
"n",
"@SuppressWarnings(\"unused\")\n\tprivate static char[][] nm(int n, int m) {\n\t\tchar[][] map = new char[n][];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tmap[i] = ns(m);\n\t\treturn map;\n\t}",
"nm",
"{\n\t\tchar[][] map = new char[n][];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tmap[i] = ns(m);\n\t\treturn map;\n\t}",
"char[][] map = new char[n][];",
"map",
"new char[n][]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\tmap[i] = ns(m);",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"map[i] = ns(m);",
"map[i] = ns(m)",
"map[i]",
"map",
"i",
"ns(m)",
"ns",
"m",
"return map;",
"map",
"int n",
"n",
"int m",
"m",
"@SuppressWarnings(\"unused\")\n\tprivate static int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}",
"na",
"{\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = ni();",
"a[i] = ni()",
"a[i]",
"a",
"i",
"ni()",
"ni",
"return a;",
"a",
"int n",
"n",
"@SuppressWarnings(\"unused\")\n\tprivate static long[] nla(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}",
"nla",
"{\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}",
"long[] a = new long[n];",
"a",
"new long[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = nl();",
"a[i] = nl()",
"a[i]",
"a",
"i",
"nl()",
"nl",
"return a;",
"a",
"int n",
"n",
"@SuppressWarnings(\"unused\")\n\tprivate static int[][] nas(int n, int m){\n\t\tint[][] res = new int[n][m];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tres[i][j] = ni();\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}",
"nas",
"{\n\t\tint[][] res = new int[n][m];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tres[i][j] = ni();\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}",
"int[][] res = new int[n][m];",
"res",
"new int[n][m]",
"n",
"m",
"for(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tres[i][j] = ni();\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tres[i][j] = ni();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tres[i][j] = ni();\n\t\t\t}\n\t\t}",
"for(int j=0;j<m;j++) {\n\t\t\t\tres[i][j] = ni();\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tres[i][j] = ni();\n\t\t\t}",
"{\n\t\t\t\tres[i][j] = ni();\n\t\t\t}",
"res[i][j] = ni()",
"res[i][j]",
"res[i]",
"res",
"i",
"j",
"ni()",
"ni",
"return res;",
"res",
"int n",
"n",
"int m",
"m",
"@SuppressWarnings(\"unused\")\n\tprivate static long[][] nlas(int n, int m){\n\t\tlong[][] res = new long[n][m];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tres[i][j] = nl();\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}",
"nlas",
"{\n\t\tlong[][] res = new long[n][m];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tres[i][j] = nl();\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}",
"long[][] res = new long[n][m];",
"res",
"new long[n][m]",
"n",
"m",
"for(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tres[i][j] = nl();\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tres[i][j] = nl();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tres[i][j] = nl();\n\t\t\t}\n\t\t}",
"for(int j=0;j<m;j++) {\n\t\t\t\tres[i][j] = nl();\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\tres[i][j] = nl();\n\t\t\t}",
"{\n\t\t\t\tres[i][j] = nl();\n\t\t\t}",
"res[i][j] = nl()",
"res[i][j]",
"res[i]",
"res",
"i",
"j",
"nl()",
"nl",
"return res;",
"res",
"int n",
"n",
"int m",
"m",
"@SuppressWarnings(\"unused\")\n\tprivate static int ni() {\n\t\tint num = 0, b;\n\t\tboolean minus = false;\n\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t;\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\t\n\t\twhile (true) {\n\t\t\tif (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}",
"ni",
"{\n\t\tint num = 0, b;\n\t\tboolean minus = false;\n\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t;\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\t\n\t\twhile (true) {\n\t\t\tif (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}",
"int num = 0",
"num",
"0",
"b;",
"b",
"boolean minus = false;",
"minus",
"false",
"while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t;",
"(b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')",
"(b = readByte()) != -1",
"(b = readByte())",
"b",
"readByte()",
"readByte",
"-1",
"1",
"!((b >= '0' && b <= '9') || b == '-')",
"((b >= '0' && b <= '9') || b == '-')",
"(b >= '0' && b <= '9')",
"b >= '0'",
"b",
"'0'",
"b <= '9'",
"b",
"'9'",
"b == '-'",
"b",
"'-'",
"if (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}",
"b == '-'",
"b",
"'-'",
"{\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}",
"minus = true",
"minus",
"true",
"b = readByte()",
"b",
"readByte()",
"readByte",
"while (true) {\n\t\t\tif (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}",
"true",
"{\n\t\t\tif (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}",
"if (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}",
"b >= '0' && b <= '9'",
"b >= '0'",
"b",
"'0'",
"b <= '9'",
"b",
"'9'",
"{\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t}",
"num = num * 10 + (b - '0')",
"num",
"num * 10 + (b - '0')",
"num * 10",
"num",
"10",
"(b - '0')",
"b",
"'0'",
"{\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}",
"return minus ? -num : num;",
"minus ? -num : num",
"minus",
"-num",
"num",
"num",
"b = readByte()",
"b",
"readByte()",
"readByte",
"@SuppressWarnings(\"unused\")\n\tprivate static long nl() {\n\t\tlong num = 0;\n\t\tint b;\n\t\tboolean minus = false;\n\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t;\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\t\n\t\twhile (true) {\n\t\t\tif (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}",
"nl",
"{\n\t\tlong num = 0;\n\t\tint b;\n\t\tboolean minus = false;\n\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t;\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\t\n\t\twhile (true) {\n\t\t\tif (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}",
"long num = 0;",
"num",
"0",
"int b;",
"b",
"boolean minus = false;",
"minus",
"false",
"while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t;",
"(b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-')",
"(b = readByte()) != -1",
"(b = readByte())",
"b",
"readByte()",
"readByte",
"-1",
"1",
"!((b >= '0' && b <= '9') || b == '-')",
"((b >= '0' && b <= '9') || b == '-')",
"(b >= '0' && b <= '9')",
"b >= '0'",
"b",
"'0'",
"b <= '9'",
"b",
"'9'",
"b == '-'",
"b",
"'-'",
"if (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}",
"b == '-'",
"b",
"'-'",
"{\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}",
"minus = true",
"minus",
"true",
"b = readByte()",
"b",
"readByte()",
"readByte",
"while (true) {\n\t\t\tif (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}",
"true",
"{\n\t\t\tif (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}",
"if (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}",
"b >= '0' && b <= '9'",
"b >= '0'",
"b",
"'0'",
"b <= '9'",
"b",
"'9'",
"{\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t}",
"num = num * 10 + (b - '0')",
"num",
"num * 10 + (b - '0')",
"num * 10",
"num",
"10",
"(b - '0')",
"b",
"'0'",
"{\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}",
"return minus ? -num : num;",
"minus ? -num : num",
"minus",
"-num",
"num",
"num",
"b = readByte()",
"b",
"readByte()",
"readByte",
"public class Main {\n\tstatic void solve() {\n\t\tint a[] = na(3);\n\t\tint cooking = a[0] / a[1];\n\t\tif (a[0] % a[1] != 0) cooking++;\n\t\tout.println(cooking * a[2]);\n\t}\t\n \n\tpublic static void main(String[] args) throws Exception {\n\t\tis = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t}\n\t//input\n\tstatic InputStream is;\n\tstatic PrintWriter out;\n\tstatic String INPUT = \"\";\n\tprivate static byte[] inbuf = new byte[1024];\n\tstatic int lenbuf = 0, ptrbuf = 0;\n\tprivate static int readByte() {\n\t\tif (lenbuf == -1)\n\t\t\tthrow new InputMismatchException();\n\t\tif (ptrbuf >= lenbuf) {\n\t\t\tptrbuf = 0;\n\t\t\ttry {\n\t\t\t\tlenbuf = is.read(inbuf);\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\tif (lenbuf <= 0)\n\t\t\t\treturn -1;\n\t\t}\n\t\treturn inbuf[ptrbuf++];\n\t}\n\tprivate static boolean isSpaceChar(int c) {\n\t\treturn !(c >= 33 && c <= 126);\n\t}\n\tprivate static int skip() {\n\t\tint b;\n\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t;\n\t\treturn b;\n\t}\n\t@SuppressWarnings(\"unused\")\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(ns());\n\t}\n\t@SuppressWarnings(\"unused\")\n\tprivate static char nc() {\n\t\treturn (char) skip();\n\t}\n\tprivate static String ns() {\n\t\tint b = skip();\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile (!(isSpaceChar(b))) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}\n\tprivate static char[] ns(int n) {\n\t\tchar[] buf = new char[n];\n\t\tint b = skip(), p = 0;\n\t\twhile (p < n && !(isSpaceChar(b))) {\n\t\t\tbuf[p++] = (char) b;\n\t\t\tb = readByte();\n\t\t}\n\t\treturn n == p ? buf : Arrays.copyOf(buf, p);\n\t}\n\t@SuppressWarnings(\"unused\")\n\tprivate static char[][] nm(int n, int m) {\n\t\tchar[][] map = new char[n][];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tmap[i] = ns(m);\n\t\treturn map;\n\t}\n\t@SuppressWarnings(\"unused\")\n\tprivate static int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}\n\t@SuppressWarnings(\"unused\")\n\tprivate static long[] nla(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}\n\t\n\t@SuppressWarnings(\"unused\")\n\tprivate static int[][] nas(int n, int m){\n\t\tint[][] res = new int[n][m];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tres[i][j] = ni();\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}\n\t\n\t@SuppressWarnings(\"unused\")\n\tprivate static long[][] nlas(int n, int m){\n\t\tlong[][] res = new long[n][m];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tres[i][j] = nl();\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}\n\t\n\t@SuppressWarnings(\"unused\")\n\tprivate static int ni() {\n\t\tint num = 0, b;\n\t\tboolean minus = false;\n\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t;\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\t\n\t\twhile (true) {\n\t\t\tif (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}\n\t@SuppressWarnings(\"unused\")\n\tprivate static long nl() {\n\t\tlong num = 0;\n\t\tint b;\n\t\tboolean minus = false;\n\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t;\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\t\n\t\twhile (true) {\n\t\t\tif (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}\n}",
"public class Main {\n\tstatic void solve() {\n\t\tint a[] = na(3);\n\t\tint cooking = a[0] / a[1];\n\t\tif (a[0] % a[1] != 0) cooking++;\n\t\tout.println(cooking * a[2]);\n\t}\t\n \n\tpublic static void main(String[] args) throws Exception {\n\t\tis = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t}\n\t//input\n\tstatic InputStream is;\n\tstatic PrintWriter out;\n\tstatic String INPUT = \"\";\n\tprivate static byte[] inbuf = new byte[1024];\n\tstatic int lenbuf = 0, ptrbuf = 0;\n\tprivate static int readByte() {\n\t\tif (lenbuf == -1)\n\t\t\tthrow new InputMismatchException();\n\t\tif (ptrbuf >= lenbuf) {\n\t\t\tptrbuf = 0;\n\t\t\ttry {\n\t\t\t\tlenbuf = is.read(inbuf);\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new InputMismatchException();\n\t\t\t}\n\t\t\tif (lenbuf <= 0)\n\t\t\t\treturn -1;\n\t\t}\n\t\treturn inbuf[ptrbuf++];\n\t}\n\tprivate static boolean isSpaceChar(int c) {\n\t\treturn !(c >= 33 && c <= 126);\n\t}\n\tprivate static int skip() {\n\t\tint b;\n\t\twhile ((b = readByte()) != -1 && isSpaceChar(b))\n\t\t\t;\n\t\treturn b;\n\t}\n\t@SuppressWarnings(\"unused\")\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(ns());\n\t}\n\t@SuppressWarnings(\"unused\")\n\tprivate static char nc() {\n\t\treturn (char) skip();\n\t}\n\tprivate static String ns() {\n\t\tint b = skip();\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile (!(isSpaceChar(b))) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}\n\tprivate static char[] ns(int n) {\n\t\tchar[] buf = new char[n];\n\t\tint b = skip(), p = 0;\n\t\twhile (p < n && !(isSpaceChar(b))) {\n\t\t\tbuf[p++] = (char) b;\n\t\t\tb = readByte();\n\t\t}\n\t\treturn n == p ? buf : Arrays.copyOf(buf, p);\n\t}\n\t@SuppressWarnings(\"unused\")\n\tprivate static char[][] nm(int n, int m) {\n\t\tchar[][] map = new char[n][];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tmap[i] = ns(m);\n\t\treturn map;\n\t}\n\t@SuppressWarnings(\"unused\")\n\tprivate static int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}\n\t@SuppressWarnings(\"unused\")\n\tprivate static long[] nla(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}\n\t\n\t@SuppressWarnings(\"unused\")\n\tprivate static int[][] nas(int n, int m){\n\t\tint[][] res = new int[n][m];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tres[i][j] = ni();\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}\n\t\n\t@SuppressWarnings(\"unused\")\n\tprivate static long[][] nlas(int n, int m){\n\t\tlong[][] res = new long[n][m];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<m;j++) {\n\t\t\t\tres[i][j] = nl();\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}\n\t\n\t@SuppressWarnings(\"unused\")\n\tprivate static int ni() {\n\t\tint num = 0, b;\n\t\tboolean minus = false;\n\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t;\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\t\n\t\twhile (true) {\n\t\t\tif (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}\n\t@SuppressWarnings(\"unused\")\n\tprivate static long nl() {\n\t\tlong num = 0;\n\t\tint b;\n\t\tboolean minus = false;\n\t\twhile ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))\n\t\t\t;\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\t\n\t\twhile (true) {\n\t\t\tif (b >= '0' && b <= '9') {\n\t\t\t\tnum = num * 10 + (b - '0');\n\t\t\t} else {\n\t\t\t\treturn minus ? -num : num;\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}\n}",
"Main"
]
| import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.InputMismatchException;
public class Main {
static void solve() {
int a[] = na(3);
int cooking = a[0] / a[1];
if (a[0] % a[1] != 0) cooking++;
out.println(cooking * a[2]);
}
public static void main(String[] args) throws Exception {
is = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());
out = new PrintWriter(System.out);
solve();
out.flush();
}
//input
static InputStream is;
static PrintWriter out;
static String INPUT = "";
private static byte[] inbuf = new byte[1024];
static int lenbuf = 0, ptrbuf = 0;
private static int readByte() {
if (lenbuf == -1)
throw new InputMismatchException();
if (ptrbuf >= lenbuf) {
ptrbuf = 0;
try {
lenbuf = is.read(inbuf);
} catch (IOException e) {
throw new InputMismatchException();
}
if (lenbuf <= 0)
return -1;
}
return inbuf[ptrbuf++];
}
private static boolean isSpaceChar(int c) {
return !(c >= 33 && c <= 126);
}
private static int skip() {
int b;
while ((b = readByte()) != -1 && isSpaceChar(b))
;
return b;
}
@SuppressWarnings("unused")
private static double nd() {
return Double.parseDouble(ns());
}
@SuppressWarnings("unused")
private static char nc() {
return (char) skip();
}
private static String ns() {
int b = skip();
StringBuilder sb = new StringBuilder();
while (!(isSpaceChar(b))) {
sb.appendCodePoint(b);
b = readByte();
}
return sb.toString();
}
private static char[] ns(int n) {
char[] buf = new char[n];
int b = skip(), p = 0;
while (p < n && !(isSpaceChar(b))) {
buf[p++] = (char) b;
b = readByte();
}
return n == p ? buf : Arrays.copyOf(buf, p);
}
@SuppressWarnings("unused")
private static char[][] nm(int n, int m) {
char[][] map = new char[n][];
for (int i = 0; i < n; i++)
map[i] = ns(m);
return map;
}
@SuppressWarnings("unused")
private static int[] na(int n) {
int[] a = new int[n];
for (int i = 0; i < n; i++)
a[i] = ni();
return a;
}
@SuppressWarnings("unused")
private static long[] nla(int n) {
long[] a = new long[n];
for (int i = 0; i < n; i++)
a[i] = nl();
return a;
}
@SuppressWarnings("unused")
private static int[][] nas(int n, int m){
int[][] res = new int[n][m];
for(int i=0;i<n;i++) {
for(int j=0;j<m;j++) {
res[i][j] = ni();
}
}
return res;
}
@SuppressWarnings("unused")
private static long[][] nlas(int n, int m){
long[][] res = new long[n][m];
for(int i=0;i<n;i++) {
for(int j=0;j<m;j++) {
res[i][j] = nl();
}
}
return res;
}
@SuppressWarnings("unused")
private static int ni() {
int num = 0, b;
boolean minus = false;
while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))
;
if (b == '-') {
minus = true;
b = readByte();
}
while (true) {
if (b >= '0' && b <= '9') {
num = num * 10 + (b - '0');
} else {
return minus ? -num : num;
}
b = readByte();
}
}
@SuppressWarnings("unused")
private static long nl() {
long num = 0;
int b;
boolean minus = false;
while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))
;
if (b == '-') {
minus = true;
b = readByte();
}
while (true) {
if (b >= '0' && b <= '9') {
num = num * 10 + (b - '0');
} else {
return minus ? -num : num;
}
b = readByte();
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
2,
13,
13,
4,
18,
18,
13,
13,
2,
4,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
40,
45
],
[
6,
46
],
[
46,
47
]
]
| [
"import java.util.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tdouble N = sc.nextDouble();\n\t\tdouble X = sc.nextDouble();\n\t\tint T = sc.nextInt();\n\t\tsc.close();\n\t\tdouble ans = N / X;\n\t\tSystem.out.println((int)(Math.ceil(ans)*T));\n\t}\n}\n",
"import java.util.*;",
"util.*",
"java",
"class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tdouble N = sc.nextDouble();\n\t\tdouble X = sc.nextDouble();\n\t\tint T = sc.nextInt();\n\t\tsc.close();\n\t\tdouble ans = N / X;\n\t\tSystem.out.println((int)(Math.ceil(ans)*T));\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tdouble N = sc.nextDouble();\n\t\tdouble X = sc.nextDouble();\n\t\tint T = sc.nextInt();\n\t\tsc.close();\n\t\tdouble ans = N / X;\n\t\tSystem.out.println((int)(Math.ceil(ans)*T));\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tdouble N = sc.nextDouble();\n\t\tdouble X = sc.nextDouble();\n\t\tint T = sc.nextInt();\n\t\tsc.close();\n\t\tdouble ans = N / X;\n\t\tSystem.out.println((int)(Math.ceil(ans)*T));\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"double N = sc.nextDouble();",
"N",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"double X = sc.nextDouble();",
"X",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"int T = sc.nextInt();",
"T",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.close()",
"sc.close",
"sc",
"double ans = N / X;",
"ans",
"N / X",
"N",
"X",
"System.out.println((int)(Math.ceil(ans)*T))",
"System.out.println",
"System.out",
"System",
"System.out",
"(int)(Math.ceil(ans)*T)",
"Math.ceil(ans)",
"Math.ceil",
"Math",
"ans",
"T",
"String[] args",
"args"
]
| import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double N = sc.nextDouble();
double X = sc.nextDouble();
int T = sc.nextInt();
sc.close();
double ans = N / X;
System.out.println((int)(Math.ceil(ans)*T));
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
41,
13,
20,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
14,
2,
2,
13,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
13,
13,
30,
0,
13,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
17,
42,
2,
13,
13,
30,
14,
2,
18,
13,
13,
17,
30,
40,
13,
9,
41,
13,
2,
18,
13,
13,
17,
14,
2,
18,
13,
13,
17,
30,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
40,
17,
30,
40,
18,
13,
13,
0,
18,
13,
13,
17,
40,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
18,
13,
13,
17,
40,
13,
29,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
269,
14
],
[
269,
15
],
[
15,
16
],
[
15,
17
],
[
269,
18
],
[
18,
19
],
[
269,
20
],
[
20,
21
],
[
20,
22
],
[
269,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
25,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
25,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
25,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
49,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
44,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
23,
85
],
[
85,
86
],
[
269,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
98,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
97,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
97,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
115,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
126,
127
],
[
126,
128
],
[
121,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
133,
134
],
[
115,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
135,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
135,
145
],
[
145,
146
],
[
89,
147
],
[
147,
148
],
[
147,
149
],
[
89,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
150,
155
],
[
155,
156
],
[
155,
157
],
[
150,
158
],
[
158,
159
],
[
159,
160
],
[
150,
161
],
[
162,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
165,
168
],
[
168,
169
],
[
168,
170
],
[
164,
171
],
[
163,
172
],
[
172,
173
],
[
89,
174
],
[
174,
175
],
[
87,
176
],
[
176,
177
],
[
87,
178
],
[
178,
179
],
[
269,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
180,
184
],
[
184,
185
],
[
180,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
180,
192
],
[
192,
193
],
[
192,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
196,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
195,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
205,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
194,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
180,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
224,
227
],
[
227,
228
],
[
180,
229
],
[
229,
230
],
[
229,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
234,
235
],
[
233,
236
],
[
236,
237
],
[
180,
238
],
[
238,
239
],
[
238,
240
],
[
240,
241
],
[
241,
242
],
[
242,
243
],
[
243,
244
],
[
242,
245
],
[
245,
246
],
[
180,
247
],
[
247,
248
],
[
247,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
249,
253
],
[
253,
254
],
[
254,
255
],
[
254,
256
],
[
256,
257
],
[
257,
258
],
[
258,
259
],
[
253,
260
],
[
260,
261
],
[
261,
262
],
[
261,
263
],
[
263,
264
],
[
264,
265
],
[
249,
266
],
[
266,
267
],
[
0,
268
],
[
268,
269
],
[
268,
270
]
]
| [
"\n// import java.lang.*;\nimport java.util.*;\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n static List<Integer> al = new ArrayList<>();\n static int[] a;\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n static Set<String> se = new HashSet<>();\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n // StringBuffer sb = new StringBuffer();\n // ArrayList<Integer> al=new ArrayList<>();\n \n // String s=sc.nextLine();\n\n\n\n int n=sc.nextInt();\n int x=sc.nextInt();\n int t=sc.nextInt();\n\n if(n>x)\n {\n if(n%x==0)\n System.out.println((n/x)*t);\n else\n {\n n /=x;\n System.out.println((n+1)*t);\n }\n\n }\n else\n System.out.println(t);\n\n \n }\n \n\n \n static int findCounts(int arr[], int n) {\n // Traverse all array elements\n int i = 0;\n while (i < n) {\n // If this element is already processed,\n // then nothing to do\n if (arr[i] <= 0) {\n i++;\n continue;\n }\n\n // Find index corresponding to this element\n // For example, index for 5 is 4\n int elementIndex = arr[i] - 1;\n\n // If the elementIndex has an element that is not\n // processed yet, then first store that element\n // to arr[i] so that we don't lose anything.\n if (arr[elementIndex] > 0) {\n arr[i] = arr[elementIndex];\n\n // After storing arr[elementIndex], change it\n // to store initial count of 'arr[i]'\n arr[elementIndex] = -1;\n } else {\n // If this is NOT first occurrence of arr[i],\n // then decrement its count.\n arr[elementIndex]--;\n\n // And initialize arr[i] as 0 means the element\n // 'i+1' is not seen so far\n arr[i] = 0;\n i++;\n }\n }\n int sum = 0;\n\n for (int j = 1; j < n; j++) {\n if (Math.abs(arr[j]) > 1)\n sum++;\n }\n return sum;\n }\n\n // public static String sortString(String inputString)\n // {\n // // convert input string to Character array\n // Character tempArray[] = new Character[inputString.length()];\n // for (int i = 0; i < inputString.length(); i++) {\n // tempArray[i] = inputString.charAt(i);\n // }\n\n // // Sort, ignoring case during sorting\n // Arrays.sort(tempArray, new Comparator<Character>(){\n\n // @Override\n // public int compare(Character c1, Character c2)\n // {\n // // ignoring case\n // return Character.compare(Character.toLowerCase(c1),\n // Character.toLowerCase(c2));\n // }\n // });\n\n // // using StringBuilder to convert Character array to String\n // StringBuilder sb = new StringBuilder(tempArray.length);\n // for (Character c : tempArray)\n // sb.append(c.charValue());\n\n // return sb.toString();\n // }\n\n}",
"import java.util.*;",
"util.*",
"java",
"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 static List<Integer> al = new ArrayList<>();\n static int[] a;\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n static Set<String> se = new HashSet<>();\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n // StringBuffer sb = new StringBuffer();\n // ArrayList<Integer> al=new ArrayList<>();\n \n // String s=sc.nextLine();\n\n\n\n int n=sc.nextInt();\n int x=sc.nextInt();\n int t=sc.nextInt();\n\n if(n>x)\n {\n if(n%x==0)\n System.out.println((n/x)*t);\n else\n {\n n /=x;\n System.out.println((n+1)*t);\n }\n\n }\n else\n System.out.println(t);\n\n \n }\n \n\n \n static int findCounts(int arr[], int n) {\n // Traverse all array elements\n int i = 0;\n while (i < n) {\n // If this element is already processed,\n // then nothing to do\n if (arr[i] <= 0) {\n i++;\n continue;\n }\n\n // Find index corresponding to this element\n // For example, index for 5 is 4\n int elementIndex = arr[i] - 1;\n\n // If the elementIndex has an element that is not\n // processed yet, then first store that element\n // to arr[i] so that we don't lose anything.\n if (arr[elementIndex] > 0) {\n arr[i] = arr[elementIndex];\n\n // After storing arr[elementIndex], change it\n // to store initial count of 'arr[i]'\n arr[elementIndex] = -1;\n } else {\n // If this is NOT first occurrence of arr[i],\n // then decrement its count.\n arr[elementIndex]--;\n\n // And initialize arr[i] as 0 means the element\n // 'i+1' is not seen so far\n arr[i] = 0;\n i++;\n }\n }\n int sum = 0;\n\n for (int j = 1; j < n; j++) {\n if (Math.abs(arr[j]) > 1)\n sum++;\n }\n return sum;\n }\n\n // public static String sortString(String inputString)\n // {\n // // convert input string to Character array\n // Character tempArray[] = new Character[inputString.length()];\n // for (int i = 0; i < inputString.length(); i++) {\n // tempArray[i] = inputString.charAt(i);\n // }\n\n // // Sort, ignoring case during sorting\n // Arrays.sort(tempArray, new Comparator<Character>(){\n\n // @Override\n // public int compare(Character c1, Character c2)\n // {\n // // ignoring case\n // return Character.compare(Character.toLowerCase(c1),\n // Character.toLowerCase(c2));\n // }\n // });\n\n // // using StringBuilder to convert Character array to String\n // StringBuilder sb = new StringBuilder(tempArray.length);\n // for (Character c : tempArray)\n // sb.append(c.charValue());\n\n // return sb.toString();\n // }\n\n}",
"Main",
"static List<Integer> al = new ArrayList<>();",
"al",
"new ArrayList<>()",
"static int[] a;",
"a",
"static Set<String> se = new HashSet<>();",
"se",
"new HashSet<>()",
"public static void main(String[] args) {\n FastReader sc = new FastReader();\n // StringBuffer sb = new StringBuffer();\n // ArrayList<Integer> al=new ArrayList<>();\n \n // String s=sc.nextLine();\n\n\n\n int n=sc.nextInt();\n int x=sc.nextInt();\n int t=sc.nextInt();\n\n if(n>x)\n {\n if(n%x==0)\n System.out.println((n/x)*t);\n else\n {\n n /=x;\n System.out.println((n+1)*t);\n }\n\n }\n else\n System.out.println(t);\n\n \n }",
"main",
"{\n FastReader sc = new FastReader();\n // StringBuffer sb = new StringBuffer();\n // ArrayList<Integer> al=new ArrayList<>();\n \n // String s=sc.nextLine();\n\n\n\n int n=sc.nextInt();\n int x=sc.nextInt();\n int t=sc.nextInt();\n\n if(n>x)\n {\n if(n%x==0)\n System.out.println((n/x)*t);\n else\n {\n n /=x;\n System.out.println((n+1)*t);\n }\n\n }\n else\n System.out.println(t);\n\n \n }",
"FastReader sc = new FastReader();",
"sc",
"new FastReader()",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x=sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t=sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(n>x)\n {\n if(n%x==0)\n System.out.println((n/x)*t);\n else\n {\n n /=x;\n System.out.println((n+1)*t);\n }\n\n }\n else\n System.out.println(t);",
"n>x",
"n",
"x",
"{\n if(n%x==0)\n System.out.println((n/x)*t);\n else\n {\n n /=x;\n System.out.println((n+1)*t);\n }\n\n }",
"if(n%x==0)\n System.out.println((n/x)*t);\n else\n {\n n /=x;\n System.out.println((n+1)*t);\n }",
"n%x==0",
"n%x",
"n",
"x",
"0",
"System.out.println((n/x)*t)",
"System.out.println",
"System.out",
"System",
"System.out",
"(n/x)*t",
"(n/x)",
"n",
"x",
"t",
"{\n n /=x;\n System.out.println((n+1)*t);\n }",
"n /=x",
"n",
"x",
"System.out.println((n+1)*t)",
"System.out.println",
"System.out",
"System",
"System.out",
"(n+1)*t",
"(n+1)",
"n",
"1",
"t",
"System.out.println(t)",
"System.out.println",
"System.out",
"System",
"System.out",
"t",
"String[] args",
"args",
"static int findCounts(int arr[], int n) {\n // Traverse all array elements\n int i = 0;\n while (i < n) {\n // If this element is already processed,\n // then nothing to do\n if (arr[i] <= 0) {\n i++;\n continue;\n }\n\n // Find index corresponding to this element\n // For example, index for 5 is 4\n int elementIndex = arr[i] - 1;\n\n // If the elementIndex has an element that is not\n // processed yet, then first store that element\n // to arr[i] so that we don't lose anything.\n if (arr[elementIndex] > 0) {\n arr[i] = arr[elementIndex];\n\n // After storing arr[elementIndex], change it\n // to store initial count of 'arr[i]'\n arr[elementIndex] = -1;\n } else {\n // If this is NOT first occurrence of arr[i],\n // then decrement its count.\n arr[elementIndex]--;\n\n // And initialize arr[i] as 0 means the element\n // 'i+1' is not seen so far\n arr[i] = 0;\n i++;\n }\n }\n int sum = 0;\n\n for (int j = 1; j < n; j++) {\n if (Math.abs(arr[j]) > 1)\n sum++;\n }\n return sum;\n }",
"findCounts",
"{\n // Traverse all array elements\n int i = 0;\n while (i < n) {\n // If this element is already processed,\n // then nothing to do\n if (arr[i] <= 0) {\n i++;\n continue;\n }\n\n // Find index corresponding to this element\n // For example, index for 5 is 4\n int elementIndex = arr[i] - 1;\n\n // If the elementIndex has an element that is not\n // processed yet, then first store that element\n // to arr[i] so that we don't lose anything.\n if (arr[elementIndex] > 0) {\n arr[i] = arr[elementIndex];\n\n // After storing arr[elementIndex], change it\n // to store initial count of 'arr[i]'\n arr[elementIndex] = -1;\n } else {\n // If this is NOT first occurrence of arr[i],\n // then decrement its count.\n arr[elementIndex]--;\n\n // And initialize arr[i] as 0 means the element\n // 'i+1' is not seen so far\n arr[i] = 0;\n i++;\n }\n }\n int sum = 0;\n\n for (int j = 1; j < n; j++) {\n if (Math.abs(arr[j]) > 1)\n sum++;\n }\n return sum;\n }",
"int i = 0;",
"i",
"0",
"while (i < n) {\n // If this element is already processed,\n // then nothing to do\n if (arr[i] <= 0) {\n i++;\n continue;\n }\n\n // Find index corresponding to this element\n // For example, index for 5 is 4\n int elementIndex = arr[i] - 1;\n\n // If the elementIndex has an element that is not\n // processed yet, then first store that element\n // to arr[i] so that we don't lose anything.\n if (arr[elementIndex] > 0) {\n arr[i] = arr[elementIndex];\n\n // After storing arr[elementIndex], change it\n // to store initial count of 'arr[i]'\n arr[elementIndex] = -1;\n } else {\n // If this is NOT first occurrence of arr[i],\n // then decrement its count.\n arr[elementIndex]--;\n\n // And initialize arr[i] as 0 means the element\n // 'i+1' is not seen so far\n arr[i] = 0;\n i++;\n }\n }",
"i < n",
"i",
"n",
"{\n // If this element is already processed,\n // then nothing to do\n if (arr[i] <= 0) {\n i++;\n continue;\n }\n\n // Find index corresponding to this element\n // For example, index for 5 is 4\n int elementIndex = arr[i] - 1;\n\n // If the elementIndex has an element that is not\n // processed yet, then first store that element\n // to arr[i] so that we don't lose anything.\n if (arr[elementIndex] > 0) {\n arr[i] = arr[elementIndex];\n\n // After storing arr[elementIndex], change it\n // to store initial count of 'arr[i]'\n arr[elementIndex] = -1;\n } else {\n // If this is NOT first occurrence of arr[i],\n // then decrement its count.\n arr[elementIndex]--;\n\n // And initialize arr[i] as 0 means the element\n // 'i+1' is not seen so far\n arr[i] = 0;\n i++;\n }\n }",
"if (arr[i] <= 0) {\n i++;\n continue;\n }",
"arr[i] <= 0",
"arr[i]",
"arr",
"i",
"0",
"{\n i++;\n continue;\n }",
"i++",
"i",
"continue;",
"int elementIndex = arr[i] - 1;",
"elementIndex",
"arr[i] - 1",
"arr[i]",
"arr",
"i",
"1",
"if (arr[elementIndex] > 0) {\n arr[i] = arr[elementIndex];\n\n // After storing arr[elementIndex], change it\n // to store initial count of 'arr[i]'\n arr[elementIndex] = -1;\n } else {\n // If this is NOT first occurrence of arr[i],\n // then decrement its count.\n arr[elementIndex]--;\n\n // And initialize arr[i] as 0 means the element\n // 'i+1' is not seen so far\n arr[i] = 0;\n i++;\n }",
"arr[elementIndex] > 0",
"arr[elementIndex]",
"arr",
"elementIndex",
"0",
"{\n arr[i] = arr[elementIndex];\n\n // After storing arr[elementIndex], change it\n // to store initial count of 'arr[i]'\n arr[elementIndex] = -1;\n }",
"arr[i] = arr[elementIndex]",
"arr[i]",
"arr",
"i",
"arr[elementIndex]",
"arr",
"elementIndex",
"arr[elementIndex] = -1",
"arr[elementIndex]",
"arr",
"elementIndex",
"-1",
"1",
"{\n // If this is NOT first occurrence of arr[i],\n // then decrement its count.\n arr[elementIndex]--;\n\n // And initialize arr[i] as 0 means the element\n // 'i+1' is not seen so far\n arr[i] = 0;\n i++;\n }",
"arr[elementIndex]--",
"arr[elementIndex]",
"arr",
"elementIndex",
"arr[i] = 0",
"arr[i]",
"arr",
"i",
"0",
"i++",
"i",
"int sum = 0;",
"sum",
"0",
"for (int j = 1; j < n; j++) {\n if (Math.abs(arr[j]) > 1)\n sum++;\n }",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j < n",
"j",
"n",
"j++",
"j++",
"j",
"{\n if (Math.abs(arr[j]) > 1)\n sum++;\n }",
"{\n if (Math.abs(arr[j]) > 1)\n sum++;\n }",
"if (Math.abs(arr[j]) > 1)\n sum++;",
"Math.abs(arr[j]) > 1",
"Math.abs(arr[j])",
"Math.abs",
"Math",
"arr[j]",
"arr",
"j",
"1",
"sum++",
"sum",
"return sum;",
"sum",
"int arr[]",
"arr",
"int n",
"n",
"static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"FastReader",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\n static List<Integer> al = new ArrayList<>();\n static int[] a;\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n static Set<String> se = new HashSet<>();\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n // StringBuffer sb = new StringBuffer();\n // ArrayList<Integer> al=new ArrayList<>();\n \n // String s=sc.nextLine();\n\n\n\n int n=sc.nextInt();\n int x=sc.nextInt();\n int t=sc.nextInt();\n\n if(n>x)\n {\n if(n%x==0)\n System.out.println((n/x)*t);\n else\n {\n n /=x;\n System.out.println((n+1)*t);\n }\n\n }\n else\n System.out.println(t);\n\n \n }\n \n\n \n static int findCounts(int arr[], int n) {\n // Traverse all array elements\n int i = 0;\n while (i < n) {\n // If this element is already processed,\n // then nothing to do\n if (arr[i] <= 0) {\n i++;\n continue;\n }\n\n // Find index corresponding to this element\n // For example, index for 5 is 4\n int elementIndex = arr[i] - 1;\n\n // If the elementIndex has an element that is not\n // processed yet, then first store that element\n // to arr[i] so that we don't lose anything.\n if (arr[elementIndex] > 0) {\n arr[i] = arr[elementIndex];\n\n // After storing arr[elementIndex], change it\n // to store initial count of 'arr[i]'\n arr[elementIndex] = -1;\n } else {\n // If this is NOT first occurrence of arr[i],\n // then decrement its count.\n arr[elementIndex]--;\n\n // And initialize arr[i] as 0 means the element\n // 'i+1' is not seen so far\n arr[i] = 0;\n i++;\n }\n }\n int sum = 0;\n\n for (int j = 1; j < n; j++) {\n if (Math.abs(arr[j]) > 1)\n sum++;\n }\n return sum;\n }\n\n // public static String sortString(String inputString)\n // {\n // // convert input string to Character array\n // Character tempArray[] = new Character[inputString.length()];\n // for (int i = 0; i < inputString.length(); i++) {\n // tempArray[i] = inputString.charAt(i);\n // }\n\n // // Sort, ignoring case during sorting\n // Arrays.sort(tempArray, new Comparator<Character>(){\n\n // @Override\n // public int compare(Character c1, Character c2)\n // {\n // // ignoring case\n // return Character.compare(Character.toLowerCase(c1),\n // Character.toLowerCase(c2));\n // }\n // });\n\n // // using StringBuilder to convert Character array to String\n // StringBuilder sb = new StringBuilder(tempArray.length);\n // for (Character c : tempArray)\n // sb.append(c.charValue());\n\n // return sb.toString();\n // }\n\n}",
"public class Main {\n static List<Integer> al = new ArrayList<>();\n static int[] a;\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n static Set<String> se = new HashSet<>();\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n // StringBuffer sb = new StringBuffer();\n // ArrayList<Integer> al=new ArrayList<>();\n \n // String s=sc.nextLine();\n\n\n\n int n=sc.nextInt();\n int x=sc.nextInt();\n int t=sc.nextInt();\n\n if(n>x)\n {\n if(n%x==0)\n System.out.println((n/x)*t);\n else\n {\n n /=x;\n System.out.println((n+1)*t);\n }\n\n }\n else\n System.out.println(t);\n\n \n }\n \n\n \n static int findCounts(int arr[], int n) {\n // Traverse all array elements\n int i = 0;\n while (i < n) {\n // If this element is already processed,\n // then nothing to do\n if (arr[i] <= 0) {\n i++;\n continue;\n }\n\n // Find index corresponding to this element\n // For example, index for 5 is 4\n int elementIndex = arr[i] - 1;\n\n // If the elementIndex has an element that is not\n // processed yet, then first store that element\n // to arr[i] so that we don't lose anything.\n if (arr[elementIndex] > 0) {\n arr[i] = arr[elementIndex];\n\n // After storing arr[elementIndex], change it\n // to store initial count of 'arr[i]'\n arr[elementIndex] = -1;\n } else {\n // If this is NOT first occurrence of arr[i],\n // then decrement its count.\n arr[elementIndex]--;\n\n // And initialize arr[i] as 0 means the element\n // 'i+1' is not seen so far\n arr[i] = 0;\n i++;\n }\n }\n int sum = 0;\n\n for (int j = 1; j < n; j++) {\n if (Math.abs(arr[j]) > 1)\n sum++;\n }\n return sum;\n }\n\n // public static String sortString(String inputString)\n // {\n // // convert input string to Character array\n // Character tempArray[] = new Character[inputString.length()];\n // for (int i = 0; i < inputString.length(); i++) {\n // tempArray[i] = inputString.charAt(i);\n // }\n\n // // Sort, ignoring case during sorting\n // Arrays.sort(tempArray, new Comparator<Character>(){\n\n // @Override\n // public int compare(Character c1, Character c2)\n // {\n // // ignoring case\n // return Character.compare(Character.toLowerCase(c1),\n // Character.toLowerCase(c2));\n // }\n // });\n\n // // using StringBuilder to convert Character array to String\n // StringBuilder sb = new StringBuilder(tempArray.length);\n // for (Character c : tempArray)\n // sb.append(c.charValue());\n\n // return sb.toString();\n // }\n\n}",
"Main"
]
|
// import java.lang.*;
import java.util.*;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
static List<Integer> al = new ArrayList<>();
static int[] a;
static class FastReader {
BufferedReader br;
StringTokenizer st;
public FastReader() {
br = new BufferedReader(new InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
static Set<String> se = new HashSet<>();
public static void main(String[] args) {
FastReader sc = new FastReader();
// StringBuffer sb = new StringBuffer();
// ArrayList<Integer> al=new ArrayList<>();
// String s=sc.nextLine();
int n=sc.nextInt();
int x=sc.nextInt();
int t=sc.nextInt();
if(n>x)
{
if(n%x==0)
System.out.println((n/x)*t);
else
{
n /=x;
System.out.println((n+1)*t);
}
}
else
System.out.println(t);
}
static int findCounts(int arr[], int n) {
// Traverse all array elements
int i = 0;
while (i < n) {
// If this element is already processed,
// then nothing to do
if (arr[i] <= 0) {
i++;
continue;
}
// Find index corresponding to this element
// For example, index for 5 is 4
int elementIndex = arr[i] - 1;
// If the elementIndex has an element that is not
// processed yet, then first store that element
// to arr[i] so that we don't lose anything.
if (arr[elementIndex] > 0) {
arr[i] = arr[elementIndex];
// After storing arr[elementIndex], change it
// to store initial count of 'arr[i]'
arr[elementIndex] = -1;
} else {
// If this is NOT first occurrence of arr[i],
// then decrement its count.
arr[elementIndex]--;
// And initialize arr[i] as 0 means the element
// 'i+1' is not seen so far
arr[i] = 0;
i++;
}
}
int sum = 0;
for (int j = 1; j < n; j++) {
if (Math.abs(arr[j]) > 1)
sum++;
}
return sum;
}
// public static String sortString(String inputString)
// {
// // convert input string to Character array
// Character tempArray[] = new Character[inputString.length()];
// for (int i = 0; i < inputString.length(); i++) {
// tempArray[i] = inputString.charAt(i);
// }
// // Sort, ignoring case during sorting
// Arrays.sort(tempArray, new Comparator<Character>(){
// @Override
// public int compare(Character c1, Character c2)
// {
// // ignoring case
// return Character.compare(Character.toLowerCase(c1),
// Character.toLowerCase(c2));
// }
// });
// // using StringBuilder to convert Character array to String
// StringBuilder sb = new StringBuilder(tempArray.length);
// for (Character c : tempArray)
// sb.append(c.charValue());
// return sb.toString();
// }
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
42,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
53,
5
],
[
53,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
6,
50
],
[
50,
51
],
[
0,
52
],
[
52,
53
],
[
52,
54
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args)\n {\n Scanner inputs = new Scanner(System.in);\n int n = inputs.nextInt();\n int x = inputs.nextInt();\n int t = inputs.nextInt();\n\n int takoyakiMade = 0;\n int timeTook = 0;\n do {\n timeTook += t;\n takoyakiMade += x;\n } while(takoyakiMade < n);\n System.out.println(timeTook);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args)\n {\n Scanner inputs = new Scanner(System.in);\n int n = inputs.nextInt();\n int x = inputs.nextInt();\n int t = inputs.nextInt();\n\n int takoyakiMade = 0;\n int timeTook = 0;\n do {\n timeTook += t;\n takoyakiMade += x;\n } while(takoyakiMade < n);\n System.out.println(timeTook);\n }\n}",
"Main",
"public static void main(String[] args)\n {\n Scanner inputs = new Scanner(System.in);\n int n = inputs.nextInt();\n int x = inputs.nextInt();\n int t = inputs.nextInt();\n\n int takoyakiMade = 0;\n int timeTook = 0;\n do {\n timeTook += t;\n takoyakiMade += x;\n } while(takoyakiMade < n);\n System.out.println(timeTook);\n }",
"main",
"{\n Scanner inputs = new Scanner(System.in);\n int n = inputs.nextInt();\n int x = inputs.nextInt();\n int t = inputs.nextInt();\n\n int takoyakiMade = 0;\n int timeTook = 0;\n do {\n timeTook += t;\n takoyakiMade += x;\n } while(takoyakiMade < n);\n System.out.println(timeTook);\n }",
"Scanner inputs = new Scanner(System.in);",
"inputs",
"new Scanner(System.in)",
"int n = inputs.nextInt();",
"n",
"inputs.nextInt()",
"inputs.nextInt",
"inputs",
"int x = inputs.nextInt();",
"x",
"inputs.nextInt()",
"inputs.nextInt",
"inputs",
"int t = inputs.nextInt();",
"t",
"inputs.nextInt()",
"inputs.nextInt",
"inputs",
"int takoyakiMade = 0;",
"takoyakiMade",
"0",
"int timeTook = 0;",
"timeTook",
"0",
"do {\n timeTook += t;\n takoyakiMade += x;\n } while(takoyakiMade < n);",
"takoyakiMade < n",
"takoyakiMade",
"n",
"{\n timeTook += t;\n takoyakiMade += x;\n }",
"timeTook += t",
"timeTook",
"t",
"takoyakiMade += x",
"takoyakiMade",
"x",
"System.out.println(timeTook)",
"System.out.println",
"System.out",
"System",
"System.out",
"timeTook",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args)\n {\n Scanner inputs = new Scanner(System.in);\n int n = inputs.nextInt();\n int x = inputs.nextInt();\n int t = inputs.nextInt();\n\n int takoyakiMade = 0;\n int timeTook = 0;\n do {\n timeTook += t;\n takoyakiMade += x;\n } while(takoyakiMade < n);\n System.out.println(timeTook);\n }\n}",
"public class Main {\n public static void main(String[] args)\n {\n Scanner inputs = new Scanner(System.in);\n int n = inputs.nextInt();\n int x = inputs.nextInt();\n int t = inputs.nextInt();\n\n int takoyakiMade = 0;\n int timeTook = 0;\n do {\n timeTook += t;\n takoyakiMade += x;\n } while(takoyakiMade < n);\n System.out.println(timeTook);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args)
{
Scanner inputs = new Scanner(System.in);
int n = inputs.nextInt();
int x = inputs.nextInt();
int t = inputs.nextInt();
int takoyakiMade = 0;
int timeTook = 0;
do {
timeTook += t;
takoyakiMade += x;
} while(takoyakiMade < n);
System.out.println(timeTook);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
2,
2,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
67,
5
],
[
67,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
8,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
40,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
6,
64
],
[
64,
65
],
[
0,
66
],
[
66,
67
],
[
66,
68
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint N = scanner.nextInt();\n\t\tint X = scanner.nextInt();\n\t\tint T = scanner.nextInt();\n\t\t\n\t\tscanner.close();\n\t\t\n\t\tint result = N / X;\n\t\tint amari = N % X;\n\t\t\n\t\tif (amari == 0) {\n\t\t\tSystem.out.println(result * T);\n\t\t} else {\n\t\t\tSystem.out.println(result * T + T);\n\t\t}\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint N = scanner.nextInt();\n\t\tint X = scanner.nextInt();\n\t\tint T = scanner.nextInt();\n\t\t\n\t\tscanner.close();\n\t\t\n\t\tint result = N / X;\n\t\tint amari = N % X;\n\t\t\n\t\tif (amari == 0) {\n\t\t\tSystem.out.println(result * T);\n\t\t} else {\n\t\t\tSystem.out.println(result * T + T);\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint N = scanner.nextInt();\n\t\tint X = scanner.nextInt();\n\t\tint T = scanner.nextInt();\n\t\t\n\t\tscanner.close();\n\t\t\n\t\tint result = N / X;\n\t\tint amari = N % X;\n\t\t\n\t\tif (amari == 0) {\n\t\t\tSystem.out.println(result * T);\n\t\t} else {\n\t\t\tSystem.out.println(result * T + T);\n\t\t}\n\t}",
"main",
"{\n\t\t\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint N = scanner.nextInt();\n\t\tint X = scanner.nextInt();\n\t\tint T = scanner.nextInt();\n\t\t\n\t\tscanner.close();\n\t\t\n\t\tint result = N / X;\n\t\tint amari = N % X;\n\t\t\n\t\tif (amari == 0) {\n\t\t\tSystem.out.println(result * T);\n\t\t} else {\n\t\t\tSystem.out.println(result * T + T);\n\t\t}\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int N = scanner.nextInt();",
"N",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int X = scanner.nextInt();",
"X",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int T = scanner.nextInt();",
"T",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"scanner.close()",
"scanner.close",
"scanner",
"int result = N / X;",
"result",
"N / X",
"N",
"X",
"int amari = N % X;",
"amari",
"N % X",
"N",
"X",
"if (amari == 0) {\n\t\t\tSystem.out.println(result * T);\n\t\t} else {\n\t\t\tSystem.out.println(result * T + T);\n\t\t}",
"amari == 0",
"amari",
"0",
"{\n\t\t\tSystem.out.println(result * T);\n\t\t}",
"System.out.println(result * T)",
"System.out.println",
"System.out",
"System",
"System.out",
"result * T",
"result",
"T",
"{\n\t\t\tSystem.out.println(result * T + T);\n\t\t}",
"System.out.println(result * T + T)",
"System.out.println",
"System.out",
"System",
"System.out",
"result * T + T",
"result * T",
"result",
"T",
"T",
"String[] args",
"args",
"public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint N = scanner.nextInt();\n\t\tint X = scanner.nextInt();\n\t\tint T = scanner.nextInt();\n\t\t\n\t\tscanner.close();\n\t\t\n\t\tint result = N / X;\n\t\tint amari = N % X;\n\t\t\n\t\tif (amari == 0) {\n\t\t\tSystem.out.println(result * T);\n\t\t} else {\n\t\t\tSystem.out.println(result * T + T);\n\t\t}\n\t}\n\n}",
"public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint N = scanner.nextInt();\n\t\tint X = scanner.nextInt();\n\t\tint T = scanner.nextInt();\n\t\t\n\t\tscanner.close();\n\t\t\n\t\tint result = N / X;\n\t\tint amari = N % X;\n\t\t\n\t\tif (amari == 0) {\n\t\t\tSystem.out.println(result * T);\n\t\t} else {\n\t\t\tSystem.out.println(result * T + T);\n\t\t}\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int N = scanner.nextInt();
int X = scanner.nextInt();
int T = scanner.nextInt();
scanner.close();
int result = N / X;
int amari = N % X;
if (amari == 0) {
System.out.println(result * T);
} else {
System.out.println(result * T + T);
}
}
}
|
[
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,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
13,
13,
41,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
35,
36
],
[
35,
37
],
[
11,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
11,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
9,
49
],
[
49,
50
]
]
| [
"\n/*\n * \n * Date: 07 September 2019\n * Time: 01:03:00\n*/\nimport java.io.*; \nimport java.util.*;\n\n\n \n class Main\n{ \n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt();\n int x=sc.nextInt();\n int t=sc.nextInt();\n long a=(long)Math.ceil((double)n/x);\n long b=a*t;\n System.out.println(b);\n \n \n \n\n \n } \n} \n \n \n ",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"class Main\n{ \n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt();\n int x=sc.nextInt();\n int t=sc.nextInt();\n long a=(long)Math.ceil((double)n/x);\n long b=a*t;\n System.out.println(b);\n \n \n \n\n \n } \n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt();\n int x=sc.nextInt();\n int t=sc.nextInt();\n long a=(long)Math.ceil((double)n/x);\n long b=a*t;\n System.out.println(b);\n \n \n \n\n \n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt();\n int x=sc.nextInt();\n int t=sc.nextInt();\n long a=(long)Math.ceil((double)n/x);\n long b=a*t;\n System.out.println(b);\n \n \n \n\n \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x=sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t=sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long a=(long)Math.ceil((double)n/x);",
"a",
"(long)Math.ceil((double)n/x)",
"Math.ceil",
"Math",
"(double)n/x",
"(double)n",
"x",
"long b=a*t;",
"b",
"a*t",
"a",
"t",
"System.out.println(b)",
"System.out.println",
"System.out",
"System",
"System.out",
"b",
"String[] args",
"args"
]
|
/*
*
* Date: 07 September 2019
* Time: 01:03:00
*/
import java.io.*;
import java.util.*;
class Main
{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n=sc.nextInt();
int x=sc.nextInt();
int t=sc.nextInt();
long a=(long)Math.ceil((double)n/x);
long b=a*t;
System.out.println(b);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
0,
13,
4,
18,
13,
17,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
2,
2,
13,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
85,
5
],
[
85,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
23,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
49,
50
],
[
49,
51
],
[
8,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
52,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
75,
81
],
[
6,
82
],
[
82,
83
],
[
0,
84
],
[
84,
85
],
[
84,
86
]
]
| [
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n String info[] = new String[3];\n info = line.split(\" \", 0);\n int n = Integer.parseInt(info[0]);\n int x = Integer.parseInt(info[1]);\n int t = Integer.parseInt(info[2]);\n \n if(n % x == 0){\n\t\tSystem.out.println(n / x * t);\n }else{\n \tSystem.out.println((n / x + 1)* t);\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n String info[] = new String[3];\n info = line.split(\" \", 0);\n int n = Integer.parseInt(info[0]);\n int x = Integer.parseInt(info[1]);\n int t = Integer.parseInt(info[2]);\n \n if(n % x == 0){\n\t\tSystem.out.println(n / x * t);\n }else{\n \tSystem.out.println((n / x + 1)* t);\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n String info[] = new String[3];\n info = line.split(\" \", 0);\n int n = Integer.parseInt(info[0]);\n int x = Integer.parseInt(info[1]);\n int t = Integer.parseInt(info[2]);\n \n if(n % x == 0){\n\t\tSystem.out.println(n / x * t);\n }else{\n \tSystem.out.println((n / x + 1)* t);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n String info[] = new String[3];\n info = line.split(\" \", 0);\n int n = Integer.parseInt(info[0]);\n int x = Integer.parseInt(info[1]);\n int t = Integer.parseInt(info[2]);\n \n if(n % x == 0){\n\t\tSystem.out.println(n / x * t);\n }else{\n \tSystem.out.println((n / x + 1)* t);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String line = sc.nextLine();",
"line",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String info[] = new String[3];",
"info",
"new String[3]",
"3",
"info = line.split(\" \", 0)",
"info",
"line.split(\" \", 0)",
"line.split",
"line",
"\" \"",
"0",
"int n = Integer.parseInt(info[0]);",
"n",
"Integer.parseInt(info[0])",
"Integer.parseInt",
"Integer",
"info[0]",
"info",
"0",
"int x = Integer.parseInt(info[1]);",
"x",
"Integer.parseInt(info[1])",
"Integer.parseInt",
"Integer",
"info[1]",
"info",
"1",
"int t = Integer.parseInt(info[2]);",
"t",
"Integer.parseInt(info[2])",
"Integer.parseInt",
"Integer",
"info[2]",
"info",
"2",
"if(n % x == 0){\n\t\tSystem.out.println(n / x * t);\n }else{\n \tSystem.out.println((n / x + 1)* t);\n }",
"n % x == 0",
"n % x",
"n",
"x",
"0",
"{\n\t\tSystem.out.println(n / x * t);\n }",
"System.out.println(n / x * t)",
"System.out.println",
"System.out",
"System",
"System.out",
"n / x * t",
"n / x",
"n",
"x",
"t",
"{\n \tSystem.out.println((n / x + 1)* t);\n }",
"System.out.println((n / x + 1)* t)",
"System.out.println",
"System.out",
"System",
"System.out",
"(n / x + 1)* t",
"(n / x + 1)",
"n / x",
"n",
"x",
"1",
"t",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n String info[] = new String[3];\n info = line.split(\" \", 0);\n int n = Integer.parseInt(info[0]);\n int x = Integer.parseInt(info[1]);\n int t = Integer.parseInt(info[2]);\n \n if(n % x == 0){\n\t\tSystem.out.println(n / x * t);\n }else{\n \tSystem.out.println((n / x + 1)* t);\n }\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n String info[] = new String[3];\n info = line.split(\" \", 0);\n int n = Integer.parseInt(info[0]);\n int x = Integer.parseInt(info[1]);\n int t = Integer.parseInt(info[2]);\n \n if(n % x == 0){\n\t\tSystem.out.println(n / x * t);\n }else{\n \tSystem.out.println((n / x + 1)* t);\n }\n }\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String line = sc.nextLine();
String info[] = new String[3];
info = line.split(" ", 0);
int n = Integer.parseInt(info[0]);
int x = Integer.parseInt(info[1]);
int t = Integer.parseInt(info[2]);
if(n % x == 0){
System.out.println(n / x * t);
}else{
System.out.println((n / x + 1)* t);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
13,
41,
13,
13,
41,
13,
13,
41,
13,
17,
14,
2,
13,
13,
0,
13,
13,
30,
0,
13,
4,
18,
13,
2,
13,
13,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
69,
5
],
[
69,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
43,
44
],
[
43,
45
],
[
39,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
52,
53
],
[
52,
54
],
[
46,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
8,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
6,
66
],
[
66,
67
],
[
0,
68
],
[
68,
69
],
[
68,
70
]
]
| [
"import java.util.*;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\t\t\n\t\tdouble N=n;\n\t\tdouble X=x;\n\t\tdouble T=t;\n\t\t\n\t\t double res=0.0;\n\t\tif(N<X)\n\t\t\tres=T;\n\t\telse\n\t\t{\n\t\t\tres=Math.ceil(N/X);\n\t\t\tres=res*T;\n\t\t}\n\t\tSystem.out.println((int)res);\n\t}\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\t\t\n\t\tdouble N=n;\n\t\tdouble X=x;\n\t\tdouble T=t;\n\t\t\n\t\t double res=0.0;\n\t\tif(N<X)\n\t\t\tres=T;\n\t\telse\n\t\t{\n\t\t\tres=Math.ceil(N/X);\n\t\t\tres=res*T;\n\t\t}\n\t\tSystem.out.println((int)res);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\t\t\n\t\tdouble N=n;\n\t\tdouble X=x;\n\t\tdouble T=t;\n\t\t\n\t\t double res=0.0;\n\t\tif(N<X)\n\t\t\tres=T;\n\t\telse\n\t\t{\n\t\t\tres=Math.ceil(N/X);\n\t\t\tres=res*T;\n\t\t}\n\t\tSystem.out.println((int)res);\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\t\t\n\t\tdouble N=n;\n\t\tdouble X=x;\n\t\tdouble T=t;\n\t\t\n\t\t double res=0.0;\n\t\tif(N<X)\n\t\t\tres=T;\n\t\telse\n\t\t{\n\t\t\tres=Math.ceil(N/X);\n\t\t\tres=res*T;\n\t\t}\n\t\tSystem.out.println((int)res);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t = sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double N=n;",
"N",
"n",
"double X=x;",
"X",
"x",
"double T=t;",
"T",
"t",
"double res=0.0;",
"res",
"0.0",
"if(N<X)\n\t\t\tres=T;\n\t\telse\n\t\t{\n\t\t\tres=Math.ceil(N/X);\n\t\t\tres=res*T;\n\t\t}",
"N<X",
"N",
"X",
"res=T",
"res",
"T",
"{\n\t\t\tres=Math.ceil(N/X);\n\t\t\tres=res*T;\n\t\t}",
"res=Math.ceil(N/X)",
"res",
"Math.ceil(N/X)",
"Math.ceil",
"Math",
"N/X",
"N",
"X",
"res=res*T",
"res",
"res*T",
"res",
"T",
"System.out.println((int)res)",
"System.out.println",
"System.out",
"System",
"System.out",
"(int)res",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\t\t\n\t\tdouble N=n;\n\t\tdouble X=x;\n\t\tdouble T=t;\n\t\t\n\t\t double res=0.0;\n\t\tif(N<X)\n\t\t\tres=T;\n\t\telse\n\t\t{\n\t\t\tres=Math.ceil(N/X);\n\t\t\tres=res*T;\n\t\t}\n\t\tSystem.out.println((int)res);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\t\t\n\t\tdouble N=n;\n\t\tdouble X=x;\n\t\tdouble T=t;\n\t\t\n\t\t double res=0.0;\n\t\tif(N<X)\n\t\t\tres=T;\n\t\telse\n\t\t{\n\t\t\tres=Math.ceil(N/X);\n\t\t\tres=res*T;\n\t\t}\n\t\tSystem.out.println((int)res);\n\t}\n\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int x = sc.nextInt();
int t = sc.nextInt();
double N=n;
double X=x;
double T=t;
double res=0.0;
if(N<X)
res=T;
else
{
res=Math.ceil(N/X);
res=res*T;
}
System.out.println((int)res);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
12,
13,
30,
14,
40,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
2,
13,
13,
14,
2,
2,
13,
13,
17,
40,
13,
4,
18,
13,
2,
13,
13,
4,
18,
13,
12,
13,
30,
4,
18,
20,
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
],
[
114,
11
],
[
114,
12
],
[
12,
13
],
[
12,
14
],
[
114,
15
],
[
15,
16
],
[
15,
17
],
[
114,
18
],
[
18,
19
],
[
18,
20
],
[
114,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
24,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
23,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
114,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
44,
45
],
[
114,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
53,
54
],
[
114,
55
],
[
55,
56
],
[
55,
57
],
[
57,
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
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
70,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
70,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
85,
87
],
[
70,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
88,
94
],
[
94,
95
],
[
70,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
99,
100
],
[
99,
101
],
[
57,
102
],
[
102,
103
],
[
103,
104
],
[
114,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
105,
111
],
[
111,
112
],
[
0,
113
],
[
113,
114
],
[
113,
115
]
]
| [
"import java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\npublic class Main\n{\n\tPrintWriter out = new PrintWriter(System.out);\n\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer tok = new StringTokenizer(\"\");\n String next() throws IOException {\n if (!tok.hasMoreTokens()) { tok = new StringTokenizer(in.readLine()); }\n return tok.nextToken();\n }\n int ni() throws IOException { return Integer.parseInt(next()); }\n long nl() throws IOException { return Long.parseLong(next()); }\n \n void solve() throws IOException {\n for (int tc=1;tc>0;tc--) {\n int n=ni(),x=ni(),t=ni();\n int ans=n/x;\n if (n%x>0) ans++;\n out.println(ans*t);\n }\n out.flush();\n }\n \n public static void main(String[] args) throws IOException {\n new Main().solve();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main\n{\n\tPrintWriter out = new PrintWriter(System.out);\n\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer tok = new StringTokenizer(\"\");\n String next() throws IOException {\n if (!tok.hasMoreTokens()) { tok = new StringTokenizer(in.readLine()); }\n return tok.nextToken();\n }\n int ni() throws IOException { return Integer.parseInt(next()); }\n long nl() throws IOException { return Long.parseLong(next()); }\n \n void solve() throws IOException {\n for (int tc=1;tc>0;tc--) {\n int n=ni(),x=ni(),t=ni();\n int ans=n/x;\n if (n%x>0) ans++;\n out.println(ans*t);\n }\n out.flush();\n }\n \n public static void main(String[] args) throws IOException {\n new Main().solve();\n }\n}",
"Main",
"PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer tok = new StringTokenizer(\"\");",
"tok",
"new StringTokenizer(\"\")",
"String next() throws IOException {\n if (!tok.hasMoreTokens()) { tok = new StringTokenizer(in.readLine()); }\n return tok.nextToken();\n }",
"next",
"{\n if (!tok.hasMoreTokens()) { tok = new StringTokenizer(in.readLine()); }\n return tok.nextToken();\n }",
"if (!tok.hasMoreTokens()) { tok = new StringTokenizer(in.readLine()); }",
"!tok.hasMoreTokens()",
"tok.hasMoreTokens()",
"tok.hasMoreTokens",
"tok",
"{ tok = new StringTokenizer(in.readLine()); }",
"tok = new StringTokenizer(in.readLine())",
"tok",
"new StringTokenizer(in.readLine())",
"return tok.nextToken();",
"tok.nextToken()",
"tok.nextToken",
"tok",
"int ni() throws IOException { return Integer.parseInt(next()); }",
"ni",
"{ return Integer.parseInt(next()); }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nl() throws IOException { return Long.parseLong(next()); }",
"nl",
"{ return Long.parseLong(next()); }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"void solve() throws IOException {\n for (int tc=1;tc>0;tc--) {\n int n=ni(),x=ni(),t=ni();\n int ans=n/x;\n if (n%x>0) ans++;\n out.println(ans*t);\n }\n out.flush();\n }",
"solve",
"{\n for (int tc=1;tc>0;tc--) {\n int n=ni(),x=ni(),t=ni();\n int ans=n/x;\n if (n%x>0) ans++;\n out.println(ans*t);\n }\n out.flush();\n }",
"for (int tc=1;tc>0;tc--) {\n int n=ni(),x=ni(),t=ni();\n int ans=n/x;\n if (n%x>0) ans++;\n out.println(ans*t);\n }",
"int tc=1;",
"int tc=1;",
"tc",
"1",
"tc>0",
"tc",
"0",
"tc--",
"tc--",
"tc",
"{\n int n=ni(),x=ni(),t=ni();\n int ans=n/x;\n if (n%x>0) ans++;\n out.println(ans*t);\n }",
"{\n int n=ni(),x=ni(),t=ni();\n int ans=n/x;\n if (n%x>0) ans++;\n out.println(ans*t);\n }",
"int n=ni()",
"n",
"ni()",
"ni",
"x=ni()",
"x",
"ni()",
"ni",
"t=ni();",
"t",
"ni()",
"ni",
"int ans=n/x;",
"ans",
"n/x",
"n",
"x",
"if (n%x>0) ans++;",
"n%x>0",
"n%x",
"n",
"x",
"0",
"ans++",
"ans",
"out.println(ans*t)",
"out.println",
"out",
"ans*t",
"ans",
"t",
"out.flush()",
"out.flush",
"out",
"public static void main(String[] args) throws IOException {\n new Main().solve();\n }",
"main",
"{\n new Main().solve();\n }",
"new Main().solve()",
"new Main().solve",
"new Main()",
"String[] args",
"args",
"public class Main\n{\n\tPrintWriter out = new PrintWriter(System.out);\n\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer tok = new StringTokenizer(\"\");\n String next() throws IOException {\n if (!tok.hasMoreTokens()) { tok = new StringTokenizer(in.readLine()); }\n return tok.nextToken();\n }\n int ni() throws IOException { return Integer.parseInt(next()); }\n long nl() throws IOException { return Long.parseLong(next()); }\n \n void solve() throws IOException {\n for (int tc=1;tc>0;tc--) {\n int n=ni(),x=ni(),t=ni();\n int ans=n/x;\n if (n%x>0) ans++;\n out.println(ans*t);\n }\n out.flush();\n }\n \n public static void main(String[] args) throws IOException {\n new Main().solve();\n }\n}",
"public class Main\n{\n\tPrintWriter out = new PrintWriter(System.out);\n\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer tok = new StringTokenizer(\"\");\n String next() throws IOException {\n if (!tok.hasMoreTokens()) { tok = new StringTokenizer(in.readLine()); }\n return tok.nextToken();\n }\n int ni() throws IOException { return Integer.parseInt(next()); }\n long nl() throws IOException { return Long.parseLong(next()); }\n \n void solve() throws IOException {\n for (int tc=1;tc>0;tc--) {\n int n=ni(),x=ni(),t=ni();\n int ans=n/x;\n if (n%x>0) ans++;\n out.println(ans*t);\n }\n out.flush();\n }\n \n public static void main(String[] args) throws IOException {\n new Main().solve();\n }\n}",
"Main"
]
| import java.util.*;
import java.lang.*;
import java.io.*;
public class Main
{
PrintWriter out = new PrintWriter(System.out);
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer tok = new StringTokenizer("");
String next() throws IOException {
if (!tok.hasMoreTokens()) { tok = new StringTokenizer(in.readLine()); }
return tok.nextToken();
}
int ni() throws IOException { return Integer.parseInt(next()); }
long nl() throws IOException { return Long.parseLong(next()); }
void solve() throws IOException {
for (int tc=1;tc>0;tc--) {
int n=ni(),x=ni(),t=ni();
int ans=n/x;
if (n%x>0) ans++;
out.println(ans*t);
}
out.flush();
}
public static void main(String[] args) throws IOException {
new Main().solve();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
20,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
2,
13,
13,
14,
2,
2,
13,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
2,
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
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
8,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
8,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
40,
46
],
[
46,
47
],
[
46,
48
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
6,
57
],
[
57,
58
]
]
| [
"import java.util.*;\nclass Main\n{\n public static void main(String args[])\n {\n int n,x,t,k;\n Scanner sc= new Scanner(System.in);\n n=sc.nextInt();\n x=sc.nextInt();\n t=sc.nextInt();\n k=n/x;\n if(n%x>0)\n k+=1;\n System.out.println(k*t);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main\n{\n public static void main(String args[])\n {\n int n,x,t,k;\n Scanner sc= new Scanner(System.in);\n n=sc.nextInt();\n x=sc.nextInt();\n t=sc.nextInt();\n k=n/x;\n if(n%x>0)\n k+=1;\n System.out.println(k*t);\n }\n}",
"Main",
"public static void main(String args[])\n {\n int n,x,t,k;\n Scanner sc= new Scanner(System.in);\n n=sc.nextInt();\n x=sc.nextInt();\n t=sc.nextInt();\n k=n/x;\n if(n%x>0)\n k+=1;\n System.out.println(k*t);\n }",
"main",
"{\n int n,x,t,k;\n Scanner sc= new Scanner(System.in);\n n=sc.nextInt();\n x=sc.nextInt();\n t=sc.nextInt();\n k=n/x;\n if(n%x>0)\n k+=1;\n System.out.println(k*t);\n }",
"int n",
"n",
"x",
"x",
"t",
"t",
"k;",
"k",
"Scanner sc= new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"n=sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"x=sc.nextInt()",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"t=sc.nextInt()",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"k=n/x",
"k",
"n/x",
"n",
"x",
"if(n%x>0)\n k+=1;",
"n%x>0",
"n%x",
"n",
"x",
"0",
"k+=1",
"k",
"1",
"System.out.println(k*t)",
"System.out.println",
"System.out",
"System",
"System.out",
"k*t",
"k",
"t",
"String args[]",
"args"
]
| import java.util.*;
class Main
{
public static void main(String args[])
{
int n,x,t,k;
Scanner sc= new Scanner(System.in);
n=sc.nextInt();
x=sc.nextInt();
t=sc.nextInt();
k=n/x;
if(n%x>0)
k+=1;
System.out.println(k*t);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
2,
2,
2,
2,
13,
13,
17,
13,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
152,
29
],
[
152,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
32,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
32,
43
],
[
43,
44
],
[
43,
45
],
[
32,
46
],
[
46,
47
],
[
46,
48
],
[
32,
49
],
[
49,
50
],
[
49,
51
],
[
32,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
52,
56
],
[
52,
57
],
[
32,
58
],
[
58,
59
],
[
59,
60
],
[
30,
61
],
[
61,
62
],
[
152,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
67,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
67,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
67,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
87,
93
],
[
86,
94
],
[
65,
95
],
[
95,
96
],
[
65,
97
],
[
97,
98
],
[
65,
99
],
[
99,
100
],
[
152,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
101,
105
],
[
105,
106
],
[
101,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
107,
113
],
[
113,
114
],
[
101,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
118,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
132,
133
],
[
128,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
117,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
101,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
146,
149
],
[
149,
150
],
[
0,
151
],
[
151,
152
],
[
151,
153
]
]
| [
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\nimport java.io.IOException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author lucasr\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n MyScanner in = new MyScanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ATakoyaki solver = new ATakoyaki();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ATakoyaki {\n public void solve(int testNumber, MyScanner sc, PrintWriter out) {\n int N = sc.nextInt();\n int X = sc.nextInt();\n int T = sc.nextInt();\n out.println((N + X - 1) / X * T);\n }\n\n }\n\n static class MyScanner {\n private BufferedReader br;\n private StringTokenizer tokenizer;\n\n public MyScanner(InputStream is) {\n br = new BufferedReader(new InputStreamReader(is));\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n MyScanner in = new MyScanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ATakoyaki solver = new ATakoyaki();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ATakoyaki {\n public void solve(int testNumber, MyScanner sc, PrintWriter out) {\n int N = sc.nextInt();\n int X = sc.nextInt();\n int T = sc.nextInt();\n out.println((N + X - 1) / X * T);\n }\n\n }\n\n static class MyScanner {\n private BufferedReader br;\n private StringTokenizer tokenizer;\n\n public MyScanner(InputStream is) {\n br = new BufferedReader(new InputStreamReader(is));\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n MyScanner in = new MyScanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ATakoyaki solver = new ATakoyaki();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n MyScanner in = new MyScanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ATakoyaki solver = new ATakoyaki();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"MyScanner in = new MyScanner(inputStream);",
"in",
"new MyScanner(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"ATakoyaki solver = new ATakoyaki();",
"solver",
"new ATakoyaki()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class ATakoyaki {\n public void solve(int testNumber, MyScanner sc, PrintWriter out) {\n int N = sc.nextInt();\n int X = sc.nextInt();\n int T = sc.nextInt();\n out.println((N + X - 1) / X * T);\n }\n\n }",
"ATakoyaki",
"public void solve(int testNumber, MyScanner sc, PrintWriter out) {\n int N = sc.nextInt();\n int X = sc.nextInt();\n int T = sc.nextInt();\n out.println((N + X - 1) / X * T);\n }",
"solve",
"{\n int N = sc.nextInt();\n int X = sc.nextInt();\n int T = sc.nextInt();\n out.println((N + X - 1) / X * T);\n }",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int X = sc.nextInt();",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int T = sc.nextInt();",
"T",
"sc.nextInt()",
"sc.nextInt",
"sc",
"out.println((N + X - 1) / X * T)",
"out.println",
"out",
"(N + X - 1) / X * T",
"(N + X - 1) / X",
"(N + X - 1)",
"N + X",
"N",
"X",
"1",
"X",
"T",
"int testNumber",
"testNumber",
"MyScanner sc",
"sc",
"PrintWriter out",
"out",
"static class MyScanner {\n private BufferedReader br;\n private StringTokenizer tokenizer;\n\n public MyScanner(InputStream is) {\n br = new BufferedReader(new InputStreamReader(is));\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }",
"MyScanner",
"private BufferedReader br;",
"br",
"private StringTokenizer tokenizer;",
"tokenizer",
"public MyScanner(InputStream is) {\n br = new BufferedReader(new InputStreamReader(is));\n }",
"MyScanner",
"{\n br = new BufferedReader(new InputStreamReader(is));\n }",
"br = new BufferedReader(new InputStreamReader(is))",
"br",
"new BufferedReader(new InputStreamReader(is))",
"InputStream is",
"is",
"public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"next",
"{\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n try {\n tokenizer = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"try {\n tokenizer = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }",
"catch (IOException e) {\n throw new RuntimeException(e);\n }",
"IOException e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n tokenizer = new StringTokenizer(br.readLine());\n }",
"tokenizer = new StringTokenizer(br.readLine())",
"tokenizer",
"new StringTokenizer(br.readLine())",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"public int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n MyScanner in = new MyScanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ATakoyaki solver = new ATakoyaki();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ATakoyaki {\n public void solve(int testNumber, MyScanner sc, PrintWriter out) {\n int N = sc.nextInt();\n int X = sc.nextInt();\n int T = sc.nextInt();\n out.println((N + X - 1) / X * T);\n }\n\n }\n\n static class MyScanner {\n private BufferedReader br;\n private StringTokenizer tokenizer;\n\n public MyScanner(InputStream is) {\n br = new BufferedReader(new InputStreamReader(is));\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n MyScanner in = new MyScanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ATakoyaki solver = new ATakoyaki();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ATakoyaki {\n public void solve(int testNumber, MyScanner sc, PrintWriter out) {\n int N = sc.nextInt();\n int X = sc.nextInt();\n int T = sc.nextInt();\n out.println((N + X - 1) / X * T);\n }\n\n }\n\n static class MyScanner {\n private BufferedReader br;\n private StringTokenizer tokenizer;\n\n public MyScanner(InputStream is) {\n br = new BufferedReader(new InputStreamReader(is));\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n}",
"Main"
]
| import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author lucasr
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
MyScanner in = new MyScanner(inputStream);
PrintWriter out = new PrintWriter(outputStream);
ATakoyaki solver = new ATakoyaki();
solver.solve(1, in, out);
out.close();
}
static class ATakoyaki {
public void solve(int testNumber, MyScanner sc, PrintWriter out) {
int N = sc.nextInt();
int X = sc.nextInt();
int T = sc.nextInt();
out.println((N + X - 1) / X * T);
}
}
static class MyScanner {
private BufferedReader br;
private StringTokenizer tokenizer;
public MyScanner(InputStream is) {
br = new BufferedReader(new InputStreamReader(is));
}
public String next() {
while (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(br.readLine());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken();
}
public int nextInt() {
return Integer.parseInt(next());
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
17,
42,
2,
40,
13,
17,
30,
4,
13,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
2,
4,
18,
13,
2,
13,
13,
13,
23,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
109,
17
],
[
109,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
20,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
20,
31
],
[
31,
32
],
[
31,
33
],
[
20,
34
],
[
34,
35
],
[
34,
36
],
[
20,
37
],
[
37,
38
],
[
37,
39
],
[
20,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
40,
44
],
[
40,
45
],
[
20,
46
],
[
46,
47
],
[
47,
48
],
[
18,
49
],
[
49,
50
],
[
109,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
59,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
65,
68
],
[
53,
69
],
[
69,
70
],
[
53,
71
],
[
71,
72
],
[
53,
73
],
[
73,
74
],
[
51,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
77,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
77,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
100,
101
],
[
100,
102
],
[
96,
103
],
[
75,
104
],
[
104,
105
],
[
75,
106
],
[
106,
107
],
[
0,
108
],
[
108,
109
],
[
108,
110
]
]
| [
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.Scanner;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n */\npublic class Main\n{\n public static void main(String[] args)\n {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskA solver = new TaskA();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskA\n {\n public void solve(int testNumber, Scanner in, PrintWriter out)\n {\n int T = 1;\n while (T-- > 0)\n {\n solveOne(in, out);\n }\n }\n\n private void solveOne(Scanner in, PrintWriter out)\n {\n int N = in.nextInt(), X = in.nextInt(), T = in.nextInt();\n\n out.println((int) (Math.ceil((double) N / X) * T));\n }\n\n }\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main\n{\n public static void main(String[] args)\n {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskA solver = new TaskA();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskA\n {\n public void solve(int testNumber, Scanner in, PrintWriter out)\n {\n int T = 1;\n while (T-- > 0)\n {\n solveOne(in, out);\n }\n }\n\n private void solveOne(Scanner in, PrintWriter out)\n {\n int N = in.nextInt(), X = in.nextInt(), T = in.nextInt();\n\n out.println((int) (Math.ceil((double) N / X) * T));\n }\n\n }\n}",
"Main",
"public static void main(String[] args)\n {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskA solver = new TaskA();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskA solver = new TaskA();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"Scanner in = new Scanner(inputStream);",
"in",
"new Scanner(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"TaskA solver = new TaskA();",
"solver",
"new TaskA()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class TaskA\n {\n public void solve(int testNumber, Scanner in, PrintWriter out)\n {\n int T = 1;\n while (T-- > 0)\n {\n solveOne(in, out);\n }\n }\n\n private void solveOne(Scanner in, PrintWriter out)\n {\n int N = in.nextInt(), X = in.nextInt(), T = in.nextInt();\n\n out.println((int) (Math.ceil((double) N / X) * T));\n }\n\n }",
"TaskA",
"public void solve(int testNumber, Scanner in, PrintWriter out)\n {\n int T = 1;\n while (T-- > 0)\n {\n solveOne(in, out);\n }\n }",
"solve",
"{\n int T = 1;\n while (T-- > 0)\n {\n solveOne(in, out);\n }\n }",
"int T = 1;",
"T",
"1",
"while (T-- > 0)\n {\n solveOne(in, out);\n }",
"T-- > 0",
"T--",
"T",
"0",
"{\n solveOne(in, out);\n }",
"solveOne(in, out)",
"solveOne",
"in",
"out",
"int testNumber",
"testNumber",
"Scanner in",
"in",
"PrintWriter out",
"out",
"private void solveOne(Scanner in, PrintWriter out)\n {\n int N = in.nextInt(), X = in.nextInt(), T = in.nextInt();\n\n out.println((int) (Math.ceil((double) N / X) * T));\n }",
"solveOne",
"{\n int N = in.nextInt(), X = in.nextInt(), T = in.nextInt();\n\n out.println((int) (Math.ceil((double) N / X) * T));\n }",
"int N = in.nextInt()",
"N",
"in.nextInt()",
"in.nextInt",
"in",
"X = in.nextInt()",
"X",
"in.nextInt()",
"in.nextInt",
"in",
"T = in.nextInt();",
"T",
"in.nextInt()",
"in.nextInt",
"in",
"out.println((int) (Math.ceil((double) N / X) * T))",
"out.println",
"out",
"(int) (Math.ceil((double) N / X) * T)",
"Math.ceil((double) N / X)",
"Math.ceil",
"Math",
"(double) N / X",
"(double) N",
"X",
"T",
"Scanner in",
"in",
"PrintWriter out",
"out",
"public class Main\n{\n public static void main(String[] args)\n {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskA solver = new TaskA();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskA\n {\n public void solve(int testNumber, Scanner in, PrintWriter out)\n {\n int T = 1;\n while (T-- > 0)\n {\n solveOne(in, out);\n }\n }\n\n private void solveOne(Scanner in, PrintWriter out)\n {\n int N = in.nextInt(), X = in.nextInt(), T = in.nextInt();\n\n out.println((int) (Math.ceil((double) N / X) * T));\n }\n\n }\n}",
"public class Main\n{\n public static void main(String[] args)\n {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskA solver = new TaskA();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskA\n {\n public void solve(int testNumber, Scanner in, PrintWriter out)\n {\n int T = 1;\n while (T-- > 0)\n {\n solveOne(in, out);\n }\n }\n\n private void solveOne(Scanner in, PrintWriter out)\n {\n int N = in.nextInt(), X = in.nextInt(), T = in.nextInt();\n\n out.println((int) (Math.ceil((double) N / X) * T));\n }\n\n }\n}",
"Main"
]
| import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*/
public class Main
{
public static void main(String[] args)
{
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
Scanner in = new Scanner(inputStream);
PrintWriter out = new PrintWriter(outputStream);
TaskA solver = new TaskA();
solver.solve(1, in, out);
out.close();
}
static class TaskA
{
public void solve(int testNumber, Scanner in, PrintWriter out)
{
int T = 1;
while (T-- > 0)
{
solveOne(in, out);
}
}
private void solveOne(Scanner in, PrintWriter out)
{
int N = in.nextInt(), X = in.nextInt(), T = in.nextInt();
out.println((int) (Math.ceil((double) N / X) * T));
}
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
4,
18,
13,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
4,
18,
13,
0,
18,
36,
13,
4,
18,
13,
0,
18,
36,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
13,
0,
13,
13,
29,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
109,
5
],
[
109,
6
],
[
6,
7
],
[
109,
8
],
[
8,
9
],
[
109,
10
],
[
10,
11
],
[
109,
12
],
[
12,
13
],
[
109,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
21
],
[
20,
22
],
[
16,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
26,
27
],
[
27,
28
],
[
16,
29
],
[
29,
30
],
[
30,
31
],
[
14,
32
],
[
32,
33
],
[
109,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
47,
48
],
[
36,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
36,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
34,
63
],
[
63,
64
],
[
109,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
71,
73
],
[
67,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
79,
80
],
[
79,
81
],
[
74,
82
],
[
82,
83
],
[
83,
84
],
[
74,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
89,
91
],
[
86,
92
],
[
92,
93
],
[
92,
94
],
[
67,
95
],
[
95,
96
],
[
109,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
97,
106
],
[
106,
107
],
[
0,
108
],
[
108,
109
],
[
108,
110
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n Main m = new Main(sc);\n m.show(m.solve());\n sc.close();\n }\n \n\t//フィールド\n Scanner sc;\n int N;\n int X;\n int T;\n \n //入力\n Main(Scanner sc) {\n this.sc = sc;\n this.N = sc.nextInt();\n this.X = sc.nextInt();\n this.T = sc.nextInt();\n }\n \n //解答処理\n private long solve() {\n long answer = T;\n int takoyaki = 0;\n \n for (int i=1; takoyaki<N; i++) {\n \t\tanswer = T * i;\n \t\ttakoyaki += X;\n }\n \n return answer;\n }\n \n //出力\n public void show(long answer) {\n System.out.println(answer);\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n Main m = new Main(sc);\n m.show(m.solve());\n sc.close();\n }\n \n\t//フィールド\n Scanner sc;\n int N;\n int X;\n int T;\n \n //入力\n Main(Scanner sc) {\n this.sc = sc;\n this.N = sc.nextInt();\n this.X = sc.nextInt();\n this.T = sc.nextInt();\n }\n \n //解答処理\n private long solve() {\n long answer = T;\n int takoyaki = 0;\n \n for (int i=1; takoyaki<N; i++) {\n \t\tanswer = T * i;\n \t\ttakoyaki += X;\n }\n \n return answer;\n }\n \n //出力\n public void show(long answer) {\n System.out.println(answer);\n }\n\n}",
"Main",
"//フィールド\n Scanner sc;",
"sc",
"int N;",
"N",
"int X;",
"X",
"int T;",
"T",
"public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n Main m = new Main(sc);\n m.show(m.solve());\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n Main m = new Main(sc);\n m.show(m.solve());\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"Main m = new Main(sc);",
"m",
"new Main(sc)",
"m.show(m.solve())",
"m.show",
"m",
"m.solve()",
"m.solve",
"m",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"//入力\n Main(Scanner sc) {\n this.sc = sc;\n this.N = sc.nextInt();\n this.X = sc.nextInt();\n this.T = sc.nextInt();\n }",
"Main",
"{\n this.sc = sc;\n this.N = sc.nextInt();\n this.X = sc.nextInt();\n this.T = sc.nextInt();\n }",
"this.sc = sc",
"this.sc",
"this",
"this.sc",
"sc",
"this.N = sc.nextInt()",
"this.N",
"this",
"this.N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"this.X = sc.nextInt()",
"this.X",
"this",
"this.X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"this.T = sc.nextInt()",
"this.T",
"this",
"this.T",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Scanner sc",
"sc",
"//解答処理\n private long solve() {\n long answer = T;\n int takoyaki = 0;\n \n for (int i=1; takoyaki<N; i++) {\n \t\tanswer = T * i;\n \t\ttakoyaki += X;\n }\n \n return answer;\n }",
"solve",
"{\n long answer = T;\n int takoyaki = 0;\n \n for (int i=1; takoyaki<N; i++) {\n \t\tanswer = T * i;\n \t\ttakoyaki += X;\n }\n \n return answer;\n }",
"long answer = T;",
"answer",
"T",
"int takoyaki = 0;",
"takoyaki",
"0",
"for (int i=1; takoyaki<N; i++) {\n \t\tanswer = T * i;\n \t\ttakoyaki += X;\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"takoyaki<N",
"takoyaki",
"N",
"i++",
"i++",
"i",
"{\n \t\tanswer = T * i;\n \t\ttakoyaki += X;\n }",
"{\n \t\tanswer = T * i;\n \t\ttakoyaki += X;\n }",
"answer = T * i",
"answer",
"T * i",
"T",
"i",
"takoyaki += X",
"takoyaki",
"X",
"return answer;",
"answer",
"//出力\n public void show(long answer) {\n System.out.println(answer);\n }",
"show",
"{\n System.out.println(answer);\n }",
"System.out.println(answer)",
"System.out.println",
"System.out",
"System",
"System.out",
"answer",
"long answer",
"answer",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n Main m = new Main(sc);\n m.show(m.solve());\n sc.close();\n }\n \n\t//フィールド\n Scanner sc;\n int N;\n int X;\n int T;\n \n //入力\n Main(Scanner sc) {\n this.sc = sc;\n this.N = sc.nextInt();\n this.X = sc.nextInt();\n this.T = sc.nextInt();\n }\n \n //解答処理\n private long solve() {\n long answer = T;\n int takoyaki = 0;\n \n for (int i=1; takoyaki<N; i++) {\n \t\tanswer = T * i;\n \t\ttakoyaki += X;\n }\n \n return answer;\n }\n \n //出力\n public void show(long answer) {\n System.out.println(answer);\n }\n\n}",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n Main m = new Main(sc);\n m.show(m.solve());\n sc.close();\n }\n \n\t//フィールド\n Scanner sc;\n int N;\n int X;\n int T;\n \n //入力\n Main(Scanner sc) {\n this.sc = sc;\n this.N = sc.nextInt();\n this.X = sc.nextInt();\n this.T = sc.nextInt();\n }\n \n //解答処理\n private long solve() {\n long answer = T;\n int takoyaki = 0;\n \n for (int i=1; takoyaki<N; i++) {\n \t\tanswer = T * i;\n \t\ttakoyaki += X;\n }\n \n return answer;\n }\n \n //出力\n public void show(long answer) {\n System.out.println(answer);\n }\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
Main m = new Main(sc);
m.show(m.solve());
sc.close();
}
//フィールド
Scanner sc;
int N;
int X;
int T;
//入力
Main(Scanner sc) {
this.sc = sc;
this.N = sc.nextInt();
this.X = sc.nextInt();
this.T = sc.nextInt();
}
//解答処理
private long solve() {
long answer = T;
int takoyaki = 0;
for (int i=1; takoyaki<N; i++) {
answer = T * i;
takoyaki += X;
}
return answer;
}
//出力
public void show(long answer) {
System.out.println(answer);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
42,
2,
13,
13,
30,
0,
13,
13,
40,
13,
4,
18,
13,
2,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
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
],
[
158,
17
],
[
158,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
20,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
20,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
20,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
20,
42
],
[
42,
43
],
[
42,
44
],
[
20,
45
],
[
45,
46
],
[
45,
47
],
[
20,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
20,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
61,
63
],
[
20,
64
],
[
64,
65
],
[
65,
66
],
[
18,
67
],
[
67,
68
],
[
158,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
69,
73
],
[
73,
74
],
[
69,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
69,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
84,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
94,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
83,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
69,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
116,
117
],
[
69,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
125,
126
],
[
69,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
131,
134
],
[
134,
135
],
[
69,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
138,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
142,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
153,
154
],
[
138,
155
],
[
155,
156
],
[
0,
157
],
[
157,
158
],
[
157,
159
]
]
| [
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n\tpublic static void main(String args[]) throws Exception {\n\n\t\tMyScanner sc = new MyScanner();\n\t\tPrintWriter pr = new PrintWriter(System.out);\n\t\tint n = sc.nextInt();\n\t\tint x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\t\tlong count = 0;\n\t\tint total = 0;\n\t\t\n\t\twhile(total < n) {\n\t\t\t\n\t\t\ttotal += x;\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\tpr.print(count * t);\n\t\tpr.close();\n\t}\n\n\tpublic static class MyScanner {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic MyScanner() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n\n\tpublic static void main(String args[]) throws Exception {\n\n\t\tMyScanner sc = new MyScanner();\n\t\tPrintWriter pr = new PrintWriter(System.out);\n\t\tint n = sc.nextInt();\n\t\tint x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\t\tlong count = 0;\n\t\tint total = 0;\n\t\t\n\t\twhile(total < n) {\n\t\t\t\n\t\t\ttotal += x;\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\tpr.print(count * t);\n\t\tpr.close();\n\t}\n\n\tpublic static class MyScanner {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic MyScanner() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t}\n}",
"Main",
"public static void main(String args[]) throws Exception {\n\n\t\tMyScanner sc = new MyScanner();\n\t\tPrintWriter pr = new PrintWriter(System.out);\n\t\tint n = sc.nextInt();\n\t\tint x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\t\tlong count = 0;\n\t\tint total = 0;\n\t\t\n\t\twhile(total < n) {\n\t\t\t\n\t\t\ttotal += x;\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\tpr.print(count * t);\n\t\tpr.close();\n\t}",
"main",
"{\n\n\t\tMyScanner sc = new MyScanner();\n\t\tPrintWriter pr = new PrintWriter(System.out);\n\t\tint n = sc.nextInt();\n\t\tint x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\t\tlong count = 0;\n\t\tint total = 0;\n\t\t\n\t\twhile(total < n) {\n\t\t\t\n\t\t\ttotal += x;\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\tpr.print(count * t);\n\t\tpr.close();\n\t}",
"MyScanner sc = new MyScanner();",
"sc",
"new MyScanner()",
"PrintWriter pr = new PrintWriter(System.out);",
"pr",
"new PrintWriter(System.out)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t = sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long count = 0;",
"count",
"0",
"int total = 0;",
"total",
"0",
"while(total < n) {\n\t\t\t\n\t\t\ttotal += x;\n\t\t\tcount++;\n\t\t}",
"total < n",
"total",
"n",
"{\n\t\t\t\n\t\t\ttotal += x;\n\t\t\tcount++;\n\t\t}",
"total += x",
"total",
"x",
"count++",
"count",
"pr.print(count * t)",
"pr.print",
"pr",
"count * t",
"count",
"t",
"pr.close()",
"pr.close",
"pr",
"String args[]",
"args",
"public static class MyScanner {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic MyScanner() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t}",
"MyScanner",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public MyScanner() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}",
"MyScanner",
"{\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"next",
"{\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"while (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"try {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"IOException e",
"{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t}",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"nextInt",
"{\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"nextLong",
"{\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}",
"nextDouble",
"{\n\t\t\treturn Double.parseDouble(next());\n\t\t}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}",
"nextLine",
"{\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}",
"String str = \"\";",
"str",
"\"\"",
"try {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"IOException e",
"{\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\t\tstr = br.readLine();\n\t\t\t}",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\n\n\tpublic static void main(String args[]) throws Exception {\n\n\t\tMyScanner sc = new MyScanner();\n\t\tPrintWriter pr = new PrintWriter(System.out);\n\t\tint n = sc.nextInt();\n\t\tint x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\t\tlong count = 0;\n\t\tint total = 0;\n\t\t\n\t\twhile(total < n) {\n\t\t\t\n\t\t\ttotal += x;\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\tpr.print(count * t);\n\t\tpr.close();\n\t}\n\n\tpublic static class MyScanner {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic MyScanner() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String args[]) throws Exception {\n\n\t\tMyScanner sc = new MyScanner();\n\t\tPrintWriter pr = new PrintWriter(System.out);\n\t\tint n = sc.nextInt();\n\t\tint x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\t\tlong count = 0;\n\t\tint total = 0;\n\t\t\n\t\twhile(total < n) {\n\t\t\t\n\t\t\ttotal += x;\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\tpr.print(count * t);\n\t\tpr.close();\n\t}\n\n\tpublic static class MyScanner {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic MyScanner() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t}\n}",
"Main"
]
|
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;
public class Main {
public static void main(String args[]) throws Exception {
MyScanner sc = new MyScanner();
PrintWriter pr = new PrintWriter(System.out);
int n = sc.nextInt();
int x = sc.nextInt();
int t = sc.nextInt();
long count = 0;
int total = 0;
while(total < n) {
total += x;
count++;
}
pr.print(count * t);
pr.close();
}
public static class MyScanner {
BufferedReader br;
StringTokenizer st;
public MyScanner() {
br = new BufferedReader(new InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
4,
18,
18,
13,
13,
4,
18,
13,
13,
13,
13,
23,
13,
6,
13,
12,
13,
30,
14,
2,
2,
13,
13,
17,
30,
29,
2,
2,
13,
13,
17,
29,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
36,
13,
13,
29,
2,
13,
13,
23,
13,
23,
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
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
10,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
10,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
10,
29
],
[
29,
30
],
[
29,
31
],
[
10,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
37,
41
],
[
37,
42
],
[
6,
43
],
[
43,
44
],
[
0,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
50,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
49,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
47,
67
],
[
67,
68
],
[
47,
69
],
[
69,
70
],
[
45,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
76,
80
],
[
73,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
71,
85
],
[
85,
86
],
[
71,
87
],
[
87,
88
],
[
71,
89
],
[
89,
90
],
[
0,
91
],
[
91,
92
],
[
91,
93
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in)) {\n int n = scanner.nextInt();\n int x = scanner.nextInt();\n int t = scanner.nextInt();\n\n Takoyaki takoyaki = new Takoyaki();\n System.out.println(takoyaki.getTimeOfBake(n, x, t));\n }\n }\n}\n\n\nclass Takoyaki {\n\n\tint getCountOfBake(int numOfCanBeBakedAtOneTime, int numOfWant) {\n\t\tif (numOfWant % numOfCanBeBakedAtOneTime > 0) {\n\t\t\treturn (numOfWant / numOfCanBeBakedAtOneTime) + 1;\n\t\t}\n\t\treturn numOfWant / numOfCanBeBakedAtOneTime;\n\t}\n\n\tpublic int getTimeOfBake(int n, int x, int bakeTimeUnit) {\n\t\tint bakeCount = this.getCountOfBake(x, n);\n\t\treturn bakeTimeUnit * bakeCount;\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in)) {\n int n = scanner.nextInt();\n int x = scanner.nextInt();\n int t = scanner.nextInt();\n\n Takoyaki takoyaki = new Takoyaki();\n System.out.println(takoyaki.getTimeOfBake(n, x, t));\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in)) {\n int n = scanner.nextInt();\n int x = scanner.nextInt();\n int t = scanner.nextInt();\n\n Takoyaki takoyaki = new Takoyaki();\n System.out.println(takoyaki.getTimeOfBake(n, x, t));\n }\n }",
"main",
"{\n try (Scanner scanner = new Scanner(System.in)) {\n int n = scanner.nextInt();\n int x = scanner.nextInt();\n int t = scanner.nextInt();\n\n Takoyaki takoyaki = new Takoyaki();\n System.out.println(takoyaki.getTimeOfBake(n, x, t));\n }\n }",
"try (Scanner scanner = new Scanner(System.in)) {\n int n = scanner.nextInt();\n int x = scanner.nextInt();\n int t = scanner.nextInt();\n\n Takoyaki takoyaki = new Takoyaki();\n System.out.println(takoyaki.getTimeOfBake(n, x, t));\n }",
"{\n int n = scanner.nextInt();\n int x = scanner.nextInt();\n int t = scanner.nextInt();\n\n Takoyaki takoyaki = new Takoyaki();\n System.out.println(takoyaki.getTimeOfBake(n, x, t));\n }",
"Scanner scanner = new Scanner(System.in)",
"Scanner scanner = new Scanner(System.in)",
"new Scanner(System.in)",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int x = scanner.nextInt();",
"x",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int t = scanner.nextInt();",
"t",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"Takoyaki takoyaki = new Takoyaki();",
"takoyaki",
"new Takoyaki()",
"System.out.println(takoyaki.getTimeOfBake(n, x, t))",
"System.out.println",
"System.out",
"System",
"System.out",
"takoyaki.getTimeOfBake(n, x, t)",
"takoyaki.getTimeOfBake",
"takoyaki",
"n",
"x",
"t",
"String[] args",
"args",
"class Takoyaki {\n\n\tint getCountOfBake(int numOfCanBeBakedAtOneTime, int numOfWant) {\n\t\tif (numOfWant % numOfCanBeBakedAtOneTime > 0) {\n\t\t\treturn (numOfWant / numOfCanBeBakedAtOneTime) + 1;\n\t\t}\n\t\treturn numOfWant / numOfCanBeBakedAtOneTime;\n\t}\n\n\tpublic int getTimeOfBake(int n, int x, int bakeTimeUnit) {\n\t\tint bakeCount = this.getCountOfBake(x, n);\n\t\treturn bakeTimeUnit * bakeCount;\n\t}\n}",
"Takoyaki",
"int getCountOfBake(int numOfCanBeBakedAtOneTime, int numOfWant) {\n\t\tif (numOfWant % numOfCanBeBakedAtOneTime > 0) {\n\t\t\treturn (numOfWant / numOfCanBeBakedAtOneTime) + 1;\n\t\t}\n\t\treturn numOfWant / numOfCanBeBakedAtOneTime;\n\t}",
"getCountOfBake",
"{\n\t\tif (numOfWant % numOfCanBeBakedAtOneTime > 0) {\n\t\t\treturn (numOfWant / numOfCanBeBakedAtOneTime) + 1;\n\t\t}\n\t\treturn numOfWant / numOfCanBeBakedAtOneTime;\n\t}",
"if (numOfWant % numOfCanBeBakedAtOneTime > 0) {\n\t\t\treturn (numOfWant / numOfCanBeBakedAtOneTime) + 1;\n\t\t}",
"numOfWant % numOfCanBeBakedAtOneTime > 0",
"numOfWant % numOfCanBeBakedAtOneTime",
"numOfWant",
"numOfCanBeBakedAtOneTime",
"0",
"{\n\t\t\treturn (numOfWant / numOfCanBeBakedAtOneTime) + 1;\n\t\t}",
"return (numOfWant / numOfCanBeBakedAtOneTime) + 1;",
"(numOfWant / numOfCanBeBakedAtOneTime) + 1",
"(numOfWant / numOfCanBeBakedAtOneTime)",
"numOfWant",
"numOfCanBeBakedAtOneTime",
"1",
"return numOfWant / numOfCanBeBakedAtOneTime;",
"numOfWant / numOfCanBeBakedAtOneTime",
"numOfWant",
"numOfCanBeBakedAtOneTime",
"int numOfCanBeBakedAtOneTime",
"numOfCanBeBakedAtOneTime",
"int numOfWant",
"numOfWant",
"public int getTimeOfBake(int n, int x, int bakeTimeUnit) {\n\t\tint bakeCount = this.getCountOfBake(x, n);\n\t\treturn bakeTimeUnit * bakeCount;\n\t}",
"getTimeOfBake",
"{\n\t\tint bakeCount = this.getCountOfBake(x, n);\n\t\treturn bakeTimeUnit * bakeCount;\n\t}",
"int bakeCount = this.getCountOfBake(x, n);",
"bakeCount",
"this.getCountOfBake(x, n)",
"this.getCountOfBake",
"this",
"x",
"n",
"return bakeTimeUnit * bakeCount;",
"bakeTimeUnit * bakeCount",
"bakeTimeUnit",
"bakeCount",
"int n",
"n",
"int x",
"x",
"int bakeTimeUnit",
"bakeTimeUnit",
"public class Main {\n public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in)) {\n int n = scanner.nextInt();\n int x = scanner.nextInt();\n int t = scanner.nextInt();\n\n Takoyaki takoyaki = new Takoyaki();\n System.out.println(takoyaki.getTimeOfBake(n, x, t));\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in)) {\n int n = scanner.nextInt();\n int x = scanner.nextInt();\n int t = scanner.nextInt();\n\n Takoyaki takoyaki = new Takoyaki();\n System.out.println(takoyaki.getTimeOfBake(n, x, t));\n }\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner scanner = new Scanner(System.in)) {
int n = scanner.nextInt();
int x = scanner.nextInt();
int t = scanner.nextInt();
Takoyaki takoyaki = new Takoyaki();
System.out.println(takoyaki.getTimeOfBake(n, x, t));
}
}
}
class Takoyaki {
int getCountOfBake(int numOfCanBeBakedAtOneTime, int numOfWant) {
if (numOfWant % numOfCanBeBakedAtOneTime > 0) {
return (numOfWant / numOfCanBeBakedAtOneTime) + 1;
}
return numOfWant / numOfCanBeBakedAtOneTime;
}
public int getTimeOfBake(int n, int x, int bakeTimeUnit) {
int bakeCount = this.getCountOfBake(x, n);
return bakeTimeUnit * bakeCount;
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
13,
13,
4,
18,
13,
2,
13,
13,
4,
18,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
2,
17,
17,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
13,
0,
13,
0,
13,
17,
12,
13,
30,
0,
13,
20,
0,
13,
20,
13,
0,
13,
0,
13,
17,
23,
13,
12,
13,
30,
41,
13,
20,
17,
41,
13,
17,
41,
13,
42,
2,
0,
13,
4,
13,
40,
17,
30,
14,
2,
13,
17,
3,
0,
18,
13,
40,
13,
13,
29,
20,
12,
13,
30,
41,
13,
17,
41,
13,
4,
13,
42,
2,
13,
17,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
13,
29,
40,
13,
29,
13,
12,
13,
30,
41,
13,
17,
41,
13,
4,
13,
42,
2,
13,
17,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
13,
29,
40,
13,
29,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
4,
13,
42,
2,
13,
17,
0,
13,
4,
13,
41,
13,
2,
13,
17,
14,
13,
0,
13,
4,
13,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
2,
13,
17,
13,
17,
14,
2,
13,
17,
30,
42,
2,
2,
0,
13,
4,
13,
17,
2,
13,
17,
30,
0,
13,
2,
2,
13,
17,
0,
13,
17,
14,
13,
29,
40,
13,
29,
13,
12,
13,
30,
0,
13,
4,
18,
13,
13,
0,
13,
17,
13,
14,
2,
13,
40,
17,
0,
18,
13,
17,
40,
17,
12,
13,
30,
14,
2,
13,
13,
4,
13,
29,
18,
13,
40,
13,
12,
13,
30,
14,
2,
13,
17,
29,
4,
18,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
394,
11
],
[
394,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
15,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
19,
23
],
[
23,
24
],
[
23,
25
],
[
19,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
19,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
19,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
19,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
46,
48
],
[
19,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
52,
53
],
[
52,
54
],
[
19,
55
],
[
55,
56
],
[
56,
57
],
[
19,
58
],
[
58,
59
],
[
59,
60
],
[
12,
61
],
[
61,
62
],
[
394,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
63,
70
],
[
70,
71
],
[
63,
72
],
[
72,
73
],
[
63,
74
],
[
74,
75
],
[
63,
76
],
[
76,
77
],
[
63,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
84,
85
],
[
84,
86
],
[
80,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
90,
92
],
[
63,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
99,
100
],
[
99,
101
],
[
95,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
105,
107
],
[
93,
108
],
[
108,
109
],
[
63,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
112,
120
],
[
120,
121
],
[
112,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
123,
128
],
[
128,
129
],
[
122,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
130,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
136,
141
],
[
112,
142
],
[
142,
143
],
[
63,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
146,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
146,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
146,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
164,
166
],
[
146,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
146,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
175,
180
],
[
174,
181
],
[
181,
182
],
[
181,
183
],
[
173,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
188,
192
],
[
187,
193
],
[
146,
194
],
[
194,
195
],
[
194,
196
],
[
196,
197
],
[
197,
198
],
[
146,
199
],
[
199,
200
],
[
63,
201
],
[
201,
202
],
[
201,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
203,
207
],
[
207,
208
],
[
207,
209
],
[
209,
210
],
[
203,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
211,
215
],
[
215,
216
],
[
215,
217
],
[
217,
218
],
[
203,
219
],
[
219,
220
],
[
219,
221
],
[
221,
222
],
[
221,
223
],
[
203,
224
],
[
224,
225
],
[
224,
226
],
[
226,
227
],
[
226,
228
],
[
228,
229
],
[
203,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
233,
235
],
[
235,
236
],
[
232,
237
],
[
231,
238
],
[
238,
239
],
[
238,
240
],
[
230,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
244,
245
],
[
245,
246
],
[
246,
247
],
[
246,
248
],
[
245,
249
],
[
244,
250
],
[
203,
251
],
[
251,
252
],
[
251,
253
],
[
253,
254
],
[
254,
255
],
[
203,
256
],
[
256,
257
],
[
63,
258
],
[
258,
259
],
[
258,
260
],
[
260,
261
],
[
261,
262
],
[
261,
263
],
[
260,
264
],
[
264,
265
],
[
264,
266
],
[
260,
267
],
[
267,
268
],
[
267,
269
],
[
269,
270
],
[
260,
271
],
[
271,
272
],
[
272,
273
],
[
272,
274
],
[
271,
275
],
[
275,
276
],
[
275,
277
],
[
277,
278
],
[
260,
279
],
[
279,
280
],
[
279,
281
],
[
281,
282
],
[
281,
283
],
[
260,
284
],
[
284,
285
],
[
284,
286
],
[
286,
287
],
[
286,
288
],
[
288,
289
],
[
260,
290
],
[
290,
291
],
[
291,
292
],
[
292,
293
],
[
293,
294
],
[
293,
295
],
[
295,
296
],
[
292,
297
],
[
291,
298
],
[
298,
299
],
[
298,
300
],
[
290,
301
],
[
301,
302
],
[
302,
303
],
[
302,
304
],
[
304,
305
],
[
305,
306
],
[
306,
307
],
[
306,
308
],
[
305,
309
],
[
304,
310
],
[
260,
311
],
[
311,
312
],
[
312,
313
],
[
312,
314
],
[
311,
315
],
[
315,
316
],
[
316,
317
],
[
317,
318
],
[
318,
319
],
[
319,
320
],
[
319,
321
],
[
321,
322
],
[
318,
323
],
[
317,
324
],
[
324,
325
],
[
324,
326
],
[
316,
327
],
[
327,
328
],
[
328,
329
],
[
328,
330
],
[
330,
331
],
[
331,
332
],
[
331,
333
],
[
330,
334
],
[
334,
335
],
[
334,
336
],
[
260,
337
],
[
337,
338
],
[
337,
339
],
[
339,
340
],
[
340,
341
],
[
260,
342
],
[
342,
343
],
[
63,
344
],
[
344,
345
],
[
344,
346
],
[
346,
347
],
[
347,
348
],
[
347,
349
],
[
349,
350
],
[
350,
351
],
[
349,
352
],
[
349,
353
],
[
353,
354
],
[
353,
355
],
[
349,
356
],
[
346,
357
],
[
357,
358
],
[
358,
359
],
[
358,
360
],
[
360,
361
],
[
357,
362
],
[
362,
363
],
[
363,
364
],
[
363,
365
],
[
362,
366
],
[
366,
367
],
[
63,
368
],
[
368,
369
],
[
368,
370
],
[
370,
371
],
[
371,
372
],
[
372,
373
],
[
372,
374
],
[
371,
375
],
[
375,
376
],
[
370,
377
],
[
377,
378
],
[
378,
379
],
[
378,
380
],
[
380,
381
],
[
63,
382
],
[
382,
383
],
[
382,
384
],
[
384,
385
],
[
385,
386
],
[
386,
387
],
[
386,
388
],
[
385,
389
],
[
384,
390
],
[
390,
391
],
[
391,
392
],
[
0,
393
],
[
393,
394
],
[
393,
395
]
]
| [
"/* package codechef; // don't place package name! */\n\nimport java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\n/* Name of the class has to be \"Main\" only if the class is public. */\npublic class Main\n{ \n \n public static void main (String[] args) throws java.lang.Exception\n {\n\ttry{\n\t //long a=Long.parseLong(next());\n\t // int a=sc.nextInt();\n\t Reader sc=new Reader();\n\t PrintWriter out=new PrintWriter(System.out);\n\t long n=sc.nextInt();\n\t\t long x=sc.nextInt();\n\t\t long t=sc.nextInt();\n\t\t \n\t\t long val=(long)Math.ceil((double)n/(double)x);\n\t\t out.println(val*t);\n\t\t \n\t\t \n\t\t \n\t\t \n\tout.flush();\n\tout.close();\n\t } \n\tcatch(Exception e)\n\t\t {}\n\t}\n\t//Template\n // static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n // static PrintWriter pw = new PrintWriter(System.out);\n // static StringTokenizer st;\n \n // static String next()\n // {\n // while(st==null || !st.hasMoreElements()) \n // {\n // try\n // {\n // st = new StringTokenizer(br.readLine());\n // }\n // catch(IOException e)\n // {\n // e.printStackTrace();\n // }\n // }\n // return st.nextToken();\n // }\n // static int gcd(int a,int b)\n // {\n // if(b==0)\n // return a;\n // else\n // return gcd(b,a%b);\n // }\n \n static class Reader \n { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead; \n \n public Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public Reader(String file_name) throws IOException \n { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public String readLine() throws IOException \n { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n } \n \n public int nextInt() throws IOException \n { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n } \n \n public long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n } \n \n public double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n } \n \n private void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n } \n \n private byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n } \n \n public void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n } \n } \n\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main\n{ \n \n public static void main (String[] args) throws java.lang.Exception\n {\n\ttry{\n\t //long a=Long.parseLong(next());\n\t // int a=sc.nextInt();\n\t Reader sc=new Reader();\n\t PrintWriter out=new PrintWriter(System.out);\n\t long n=sc.nextInt();\n\t\t long x=sc.nextInt();\n\t\t long t=sc.nextInt();\n\t\t \n\t\t long val=(long)Math.ceil((double)n/(double)x);\n\t\t out.println(val*t);\n\t\t \n\t\t \n\t\t \n\t\t \n\tout.flush();\n\tout.close();\n\t } \n\tcatch(Exception e)\n\t\t {}\n\t}\n\t//Template\n // static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n // static PrintWriter pw = new PrintWriter(System.out);\n // static StringTokenizer st;\n \n // static String next()\n // {\n // while(st==null || !st.hasMoreElements()) \n // {\n // try\n // {\n // st = new StringTokenizer(br.readLine());\n // }\n // catch(IOException e)\n // {\n // e.printStackTrace();\n // }\n // }\n // return st.nextToken();\n // }\n // static int gcd(int a,int b)\n // {\n // if(b==0)\n // return a;\n // else\n // return gcd(b,a%b);\n // }\n \n static class Reader \n { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead; \n \n public Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public Reader(String file_name) throws IOException \n { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public String readLine() throws IOException \n { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n } \n \n public int nextInt() throws IOException \n { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n } \n \n public long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n } \n \n public double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n } \n \n private void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n } \n \n private byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n } \n \n public void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n } \n } \n\n}",
"Main",
"public static void main (String[] args) throws java.lang.Exception\n {\n\ttry{\n\t //long a=Long.parseLong(next());\n\t // int a=sc.nextInt();\n\t Reader sc=new Reader();\n\t PrintWriter out=new PrintWriter(System.out);\n\t long n=sc.nextInt();\n\t\t long x=sc.nextInt();\n\t\t long t=sc.nextInt();\n\t\t \n\t\t long val=(long)Math.ceil((double)n/(double)x);\n\t\t out.println(val*t);\n\t\t \n\t\t \n\t\t \n\t\t \n\tout.flush();\n\tout.close();\n\t } \n\tcatch(Exception e)\n\t\t {}\n\t}",
"main",
"{\n\ttry{\n\t //long a=Long.parseLong(next());\n\t // int a=sc.nextInt();\n\t Reader sc=new Reader();\n\t PrintWriter out=new PrintWriter(System.out);\n\t long n=sc.nextInt();\n\t\t long x=sc.nextInt();\n\t\t long t=sc.nextInt();\n\t\t \n\t\t long val=(long)Math.ceil((double)n/(double)x);\n\t\t out.println(val*t);\n\t\t \n\t\t \n\t\t \n\t\t \n\tout.flush();\n\tout.close();\n\t } \n\tcatch(Exception e)\n\t\t {}\n\t}",
"try{\n\t //long a=Long.parseLong(next());\n\t // int a=sc.nextInt();\n\t Reader sc=new Reader();\n\t PrintWriter out=new PrintWriter(System.out);\n\t long n=sc.nextInt();\n\t\t long x=sc.nextInt();\n\t\t long t=sc.nextInt();\n\t\t \n\t\t long val=(long)Math.ceil((double)n/(double)x);\n\t\t out.println(val*t);\n\t\t \n\t\t \n\t\t \n\t\t \n\tout.flush();\n\tout.close();\n\t } \n\tcatch(Exception e)\n\t\t {}",
"catch(Exception e)\n\t\t {}",
"Exception e",
"{}",
"{\n\t //long a=Long.parseLong(next());\n\t // int a=sc.nextInt();\n\t Reader sc=new Reader();\n\t PrintWriter out=new PrintWriter(System.out);\n\t long n=sc.nextInt();\n\t\t long x=sc.nextInt();\n\t\t long t=sc.nextInt();\n\t\t \n\t\t long val=(long)Math.ceil((double)n/(double)x);\n\t\t out.println(val*t);\n\t\t \n\t\t \n\t\t \n\t\t \n\tout.flush();\n\tout.close();\n\t }",
"Reader sc=new Reader();",
"sc",
"new Reader()",
"PrintWriter out=new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"long n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long x=sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long t=sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"long val=(long)Math.ceil((double)n/(double)x);",
"val",
"(long)Math.ceil((double)n/(double)x)",
"Math.ceil",
"Math",
"(double)n/(double)x",
"(double)n",
"(double)x",
"out.println(val*t)",
"out.println",
"out",
"val*t",
"val",
"t",
"out.flush()",
"out.flush",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class Reader \n { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead; \n \n public Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public Reader(String file_name) throws IOException \n { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public String readLine() throws IOException \n { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n } \n \n public int nextInt() throws IOException \n { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n } \n \n public long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n } \n \n public double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n } \n \n private void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n } \n \n private byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n } \n \n public void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n } \n }",
"Reader",
"final private int BUFFER_SIZE = 1 << 16;",
"BUFFER_SIZE",
"1 << 16",
"1",
"16",
"private DataInputStream din;",
"din",
"private byte[] buffer;",
"buffer",
"private int bufferPointer",
"bufferPointer",
"bytesRead;",
"bytesRead",
"public Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }",
"Reader",
"{ \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }",
"din = new DataInputStream(System.in)",
"din",
"new DataInputStream(System.in)",
"buffer = new byte[BUFFER_SIZE]",
"buffer",
"new byte[BUFFER_SIZE]",
"BUFFER_SIZE",
"bufferPointer = bytesRead = 0",
"bufferPointer",
"bytesRead = 0",
"bytesRead",
"0",
"public Reader(String file_name) throws IOException \n { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }",
"Reader",
"{ \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n }",
"din = new DataInputStream(new FileInputStream(file_name))",
"din",
"new DataInputStream(new FileInputStream(file_name))",
"buffer = new byte[BUFFER_SIZE]",
"buffer",
"new byte[BUFFER_SIZE]",
"BUFFER_SIZE",
"bufferPointer = bytesRead = 0",
"bufferPointer",
"bytesRead = 0",
"bytesRead",
"0",
"String file_name",
"file_name",
"public String readLine() throws IOException \n { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n }",
"readLine",
"{ \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n }",
"byte[] buf = new byte[64];",
"buf",
"new byte[64]",
"64",
"int cnt = 0",
"cnt",
"0",
"c;",
"c",
"while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n }",
"(c = read()) != -1",
"(c = read())",
"c",
"read()",
"read",
"-1",
"1",
"{ \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n }",
"if (c == '\\n') \n break;",
"c == '\\n'",
"c",
"'\\n'",
"break;",
"buf[cnt++] = (byte) c",
"buf[cnt++]",
"buf",
"cnt++",
"cnt",
"(byte) c",
"return new String(buf, 0, cnt);",
"new String(buf, 0, cnt)",
"public int nextInt() throws IOException \n { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n }",
"nextInt",
"{ \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n }",
"int ret = 0;",
"ret",
"0",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ') \n c = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg) \n c = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n ret = ret * 10 + c - '0'; \n }",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (neg) \n return -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"public long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n }",
"nextLong",
"{ \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n }",
"long ret = 0;",
"ret",
"0",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ') \n c = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg) \n c = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n ret = ret * 10 + c - '0'; \n }",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (neg) \n return -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"public double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n }",
"nextDouble",
"{ \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n }",
"double ret = 0",
"ret",
"0",
"div = 1;",
"div",
"1",
"byte c = read();",
"c",
"read()",
"read",
"while (c <= ' ') \n c = read();",
"c <= ' '",
"c",
"' '",
"c = read()",
"c",
"read()",
"read",
"boolean neg = (c == '-');",
"neg",
"(c == '-')",
"c",
"'-'",
"if (neg) \n c = read();",
"neg",
"c = read()",
"c",
"read()",
"read",
"do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9');",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n ret = ret * 10 + c - '0'; \n }",
"ret = ret * 10 + c - '0'",
"ret",
"ret * 10 + c - '0'",
"ret * 10 + c",
"ret * 10",
"ret",
"10",
"c",
"'0'",
"if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n }",
"c == '.'",
"c",
"'.'",
"{ \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n }",
"while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n }",
"(c = read()) >= '0' && c <= '9'",
"(c = read()) >= '0'",
"(c = read())",
"c",
"read()",
"read",
"'0'",
"c <= '9'",
"c",
"'9'",
"{ \n ret += (c - '0') / (div *= 10); \n }",
"ret += (c - '0') / (div *= 10)",
"ret",
"(c - '0') / (div *= 10)",
"(c - '0')",
"c",
"'0'",
"(div *= 10)",
"div",
"10",
"if (neg) \n return -ret;",
"neg",
"return -ret;",
"-ret",
"ret",
"return ret;",
"ret",
"private void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n }",
"fillBuffer",
"{ \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n }",
"bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE)",
"bytesRead",
"din.read(buffer, bufferPointer = 0, BUFFER_SIZE)",
"din.read",
"din",
"buffer",
"bufferPointer = 0",
"bufferPointer",
"0",
"BUFFER_SIZE",
"if (bytesRead == -1) \n buffer[0] = -1;",
"bytesRead == -1",
"bytesRead",
"-1",
"1",
"buffer[0] = -1",
"buffer[0]",
"buffer",
"0",
"-1",
"1",
"private byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n }",
"read",
"{ \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n }",
"if (bufferPointer == bytesRead) \n fillBuffer();",
"bufferPointer == bytesRead",
"bufferPointer",
"bytesRead",
"fillBuffer()",
"fillBuffer",
"return buffer[bufferPointer++];",
"buffer[bufferPointer++]",
"buffer",
"bufferPointer++",
"bufferPointer",
"public void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n }",
"close",
"{ \n if (din == null) \n return; \n din.close(); \n }",
"if (din == null) \n return;",
"din == null",
"din",
"null",
"return;",
"din.close()",
"din.close",
"din",
"public class Main\n{ \n \n public static void main (String[] args) throws java.lang.Exception\n {\n\ttry{\n\t //long a=Long.parseLong(next());\n\t // int a=sc.nextInt();\n\t Reader sc=new Reader();\n\t PrintWriter out=new PrintWriter(System.out);\n\t long n=sc.nextInt();\n\t\t long x=sc.nextInt();\n\t\t long t=sc.nextInt();\n\t\t \n\t\t long val=(long)Math.ceil((double)n/(double)x);\n\t\t out.println(val*t);\n\t\t \n\t\t \n\t\t \n\t\t \n\tout.flush();\n\tout.close();\n\t } \n\tcatch(Exception e)\n\t\t {}\n\t}\n\t//Template\n // static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n // static PrintWriter pw = new PrintWriter(System.out);\n // static StringTokenizer st;\n \n // static String next()\n // {\n // while(st==null || !st.hasMoreElements()) \n // {\n // try\n // {\n // st = new StringTokenizer(br.readLine());\n // }\n // catch(IOException e)\n // {\n // e.printStackTrace();\n // }\n // }\n // return st.nextToken();\n // }\n // static int gcd(int a,int b)\n // {\n // if(b==0)\n // return a;\n // else\n // return gcd(b,a%b);\n // }\n \n static class Reader \n { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead; \n \n public Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public Reader(String file_name) throws IOException \n { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public String readLine() throws IOException \n { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n } \n \n public int nextInt() throws IOException \n { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n } \n \n public long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n } \n \n public double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n } \n \n private void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n } \n \n private byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n } \n \n public void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n } \n } \n\n}",
"public class Main\n{ \n \n public static void main (String[] args) throws java.lang.Exception\n {\n\ttry{\n\t //long a=Long.parseLong(next());\n\t // int a=sc.nextInt();\n\t Reader sc=new Reader();\n\t PrintWriter out=new PrintWriter(System.out);\n\t long n=sc.nextInt();\n\t\t long x=sc.nextInt();\n\t\t long t=sc.nextInt();\n\t\t \n\t\t long val=(long)Math.ceil((double)n/(double)x);\n\t\t out.println(val*t);\n\t\t \n\t\t \n\t\t \n\t\t \n\tout.flush();\n\tout.close();\n\t } \n\tcatch(Exception e)\n\t\t {}\n\t}\n\t//Template\n // static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n // static PrintWriter pw = new PrintWriter(System.out);\n // static StringTokenizer st;\n \n // static String next()\n // {\n // while(st==null || !st.hasMoreElements()) \n // {\n // try\n // {\n // st = new StringTokenizer(br.readLine());\n // }\n // catch(IOException e)\n // {\n // e.printStackTrace();\n // }\n // }\n // return st.nextToken();\n // }\n // static int gcd(int a,int b)\n // {\n // if(b==0)\n // return a;\n // else\n // return gcd(b,a%b);\n // }\n \n static class Reader \n { \n final private int BUFFER_SIZE = 1 << 16; \n private DataInputStream din; \n private byte[] buffer; \n private int bufferPointer, bytesRead; \n \n public Reader() \n { \n din = new DataInputStream(System.in); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public Reader(String file_name) throws IOException \n { \n din = new DataInputStream(new FileInputStream(file_name)); \n buffer = new byte[BUFFER_SIZE]; \n bufferPointer = bytesRead = 0; \n } \n \n public String readLine() throws IOException \n { \n byte[] buf = new byte[64]; // line length \n int cnt = 0, c; \n while ((c = read()) != -1) \n { \n if (c == '\\n') \n break; \n buf[cnt++] = (byte) c; \n } \n return new String(buf, 0, cnt); \n } \n \n public int nextInt() throws IOException \n { \n int ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do\n { \n ret = ret * 10 + c - '0'; \n } while ((c = read()) >= '0' && c <= '9'); \n \n if (neg) \n return -ret; \n return ret; \n } \n \n public long nextLong() throws IOException \n { \n long ret = 0; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n if (neg) \n return -ret; \n return ret; \n } \n \n public double nextDouble() throws IOException \n { \n double ret = 0, div = 1; \n byte c = read(); \n while (c <= ' ') \n c = read(); \n boolean neg = (c == '-'); \n if (neg) \n c = read(); \n \n do { \n ret = ret * 10 + c - '0'; \n } \n while ((c = read()) >= '0' && c <= '9'); \n \n if (c == '.') \n { \n while ((c = read()) >= '0' && c <= '9') \n { \n ret += (c - '0') / (div *= 10); \n } \n } \n \n if (neg) \n return -ret; \n return ret; \n } \n \n private void fillBuffer() throws IOException \n { \n bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n if (bytesRead == -1) \n buffer[0] = -1; \n } \n \n private byte read() throws IOException \n { \n if (bufferPointer == bytesRead) \n fillBuffer(); \n return buffer[bufferPointer++]; \n } \n \n public void close() throws IOException \n { \n if (din == null) \n return; \n din.close(); \n } \n } \n\n}",
"Main"
]
| /* package codechef; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
public static void main (String[] args) throws java.lang.Exception
{
try{
//long a=Long.parseLong(next());
// int a=sc.nextInt();
Reader sc=new Reader();
PrintWriter out=new PrintWriter(System.out);
long n=sc.nextInt();
long x=sc.nextInt();
long t=sc.nextInt();
long val=(long)Math.ceil((double)n/(double)x);
out.println(val*t);
out.flush();
out.close();
}
catch(Exception e)
{}
}
//Template
// static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
// static PrintWriter pw = new PrintWriter(System.out);
// static StringTokenizer st;
// static String next()
// {
// while(st==null || !st.hasMoreElements())
// {
// try
// {
// st = new StringTokenizer(br.readLine());
// }
// catch(IOException e)
// {
// e.printStackTrace();
// }
// }
// return st.nextToken();
// }
// static int gcd(int a,int b)
// {
// if(b==0)
// return a;
// else
// return gcd(b,a%b);
// }
static class Reader
{
final private int BUFFER_SIZE = 1 << 16;
private DataInputStream din;
private byte[] buffer;
private int bufferPointer, bytesRead;
public Reader()
{
din = new DataInputStream(System.in);
buffer = new byte[BUFFER_SIZE];
bufferPointer = bytesRead = 0;
}
public Reader(String file_name) throws IOException
{
din = new DataInputStream(new FileInputStream(file_name));
buffer = new byte[BUFFER_SIZE];
bufferPointer = bytesRead = 0;
}
public String readLine() throws IOException
{
byte[] buf = new byte[64]; // line length
int cnt = 0, c;
while ((c = read()) != -1)
{
if (c == '\n')
break;
buf[cnt++] = (byte) c;
}
return new String(buf, 0, cnt);
}
public int nextInt() throws IOException
{
int ret = 0;
byte c = read();
while (c <= ' ')
c = read();
boolean neg = (c == '-');
if (neg)
c = read();
do
{
ret = ret * 10 + c - '0';
} while ((c = read()) >= '0' && c <= '9');
if (neg)
return -ret;
return ret;
}
public long nextLong() throws IOException
{
long ret = 0;
byte c = read();
while (c <= ' ')
c = read();
boolean neg = (c == '-');
if (neg)
c = read();
do {
ret = ret * 10 + c - '0';
}
while ((c = read()) >= '0' && c <= '9');
if (neg)
return -ret;
return ret;
}
public double nextDouble() throws IOException
{
double ret = 0, div = 1;
byte c = read();
while (c <= ' ')
c = read();
boolean neg = (c == '-');
if (neg)
c = read();
do {
ret = ret * 10 + c - '0';
}
while ((c = read()) >= '0' && c <= '9');
if (c == '.')
{
while ((c = read()) >= '0' && c <= '9')
{
ret += (c - '0') / (div *= 10);
}
}
if (neg)
return -ret;
return ret;
}
private void fillBuffer() throws IOException
{
bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);
if (bytesRead == -1)
buffer[0] = -1;
}
private byte read() throws IOException
{
if (bufferPointer == bytesRead)
fillBuffer();
return buffer[bufferPointer++];
}
public void close() throws IOException
{
if (din == null)
return;
din.close();
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
2,
13,
13,
0,
13,
13,
4,
18,
13,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
17,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
28,
29
],
[
28,
30
],
[
0,
31
],
[
31,
32
],
[
31,
33
],
[
0,
34
],
[
34,
35
],
[
34,
36
],
[
0,
37
],
[
37,
38
],
[
37,
39
],
[
0,
40
],
[
40,
41
],
[
40,
42
],
[
0,
43
],
[
43,
44
],
[
43,
45
],
[
0,
46
],
[
46,
47
],
[
46,
48
],
[
0,
49
],
[
49,
50
],
[
49,
51
],
[
0,
52
],
[
196,
53
],
[
196,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
56,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
56,
67
],
[
67,
68
],
[
67,
69
],
[
56,
70
],
[
70,
71
],
[
70,
72
],
[
56,
73
],
[
73,
74
],
[
73,
75
],
[
56,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
76,
80
],
[
76,
81
],
[
56,
82
],
[
82,
83
],
[
83,
84
],
[
54,
85
],
[
85,
86
],
[
196,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
91,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
91,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
91,
107
],
[
107,
108
],
[
107,
109
],
[
91,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
117,
119
],
[
114,
120
],
[
120,
121
],
[
120,
122
],
[
91,
123
],
[
123,
124
],
[
124,
125
],
[
123,
126
],
[
89,
127
],
[
127,
128
],
[
89,
129
],
[
129,
130
],
[
89,
131
],
[
131,
132
],
[
196,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
133,
137
],
[
137,
138
],
[
133,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
145
],
[
145,
146
],
[
145,
147
],
[
139,
148
],
[
148,
149
],
[
133,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
153,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
163,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
152,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
133,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
181,
184
],
[
184,
185
],
[
133,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
190,
193
],
[
193,
194
],
[
0,
195
],
[
195,
196
],
[
195,
197
]
]
| [
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.HashMap;\nimport java.util.HashSet;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.Random;\nimport java.util.Set;\nimport java.util.StringTokenizer;\nimport java.io.IOException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.InputStream;\n\n\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskT solver = new TaskT();\n solver.solve(1, in, out);\n out.close();\n }\n \n \n\n static class TaskT {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n \t\n \tint N = in.nextInt();\n \tint X = in.nextInt();\n \tint T = in.nextInt();\n \t\n \t\n \tint ans = 0; \n \twhile(N > 0){\n \t\tN = N - X;\n \t\tans += T;\n \t}\n \t\n \tout.println(ans);\n }\n\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n \n public long nextLong() {\n return Long.parseLong(next());\n }\n }\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Map;",
"Map",
"java.util",
"import java.util.Random;",
"Random",
"java.util",
"import java.util.Set;",
"Set",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskT solver = new TaskT();\n solver.solve(1, in, out);\n out.close();\n }\n \n \n\n static class TaskT {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n \t\n \tint N = in.nextInt();\n \tint X = in.nextInt();\n \tint T = in.nextInt();\n \t\n \t\n \tint ans = 0; \n \twhile(N > 0){\n \t\tN = N - X;\n \t\tans += T;\n \t}\n \t\n \tout.println(ans);\n }\n\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n \n public long nextLong() {\n return Long.parseLong(next());\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskT solver = new TaskT();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskT solver = new TaskT();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"InputReader in = new InputReader(inputStream);",
"in",
"new InputReader(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"TaskT solver = new TaskT();",
"solver",
"new TaskT()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class TaskT {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n \t\n \tint N = in.nextInt();\n \tint X = in.nextInt();\n \tint T = in.nextInt();\n \t\n \t\n \tint ans = 0; \n \twhile(N > 0){\n \t\tN = N - X;\n \t\tans += T;\n \t}\n \t\n \tout.println(ans);\n }\n\n }",
"TaskT",
"public void solve(int testNumber, InputReader in, PrintWriter out) {\n \t\n \tint N = in.nextInt();\n \tint X = in.nextInt();\n \tint T = in.nextInt();\n \t\n \t\n \tint ans = 0; \n \twhile(N > 0){\n \t\tN = N - X;\n \t\tans += T;\n \t}\n \t\n \tout.println(ans);\n }",
"solve",
"{\n \t\n \tint N = in.nextInt();\n \tint X = in.nextInt();\n \tint T = in.nextInt();\n \t\n \t\n \tint ans = 0; \n \twhile(N > 0){\n \t\tN = N - X;\n \t\tans += T;\n \t}\n \t\n \tout.println(ans);\n }",
"int N = in.nextInt();",
"N",
"in.nextInt()",
"in.nextInt",
"in",
"int X = in.nextInt();",
"X",
"in.nextInt()",
"in.nextInt",
"in",
"int T = in.nextInt();",
"T",
"in.nextInt()",
"in.nextInt",
"in",
"int ans = 0;",
"ans",
"0",
"while(N > 0){\n \t\tN = N - X;\n \t\tans += T;\n \t}",
"N > 0",
"N",
"0",
"{\n \t\tN = N - X;\n \t\tans += T;\n \t}",
"N = N - X",
"N",
"N - X",
"N",
"X",
"ans += T",
"ans",
"T",
"out.println(ans)",
"out.println",
"out",
"ans",
"int testNumber",
"testNumber",
"InputReader in",
"in",
"PrintWriter out",
"out",
"static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n \n public long nextLong() {\n return Long.parseLong(next());\n }\n }",
"InputReader",
"public BufferedReader reader;",
"reader",
"public StringTokenizer tokenizer;",
"tokenizer",
"public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }",
"InputReader",
"{\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }",
"reader = new BufferedReader(new InputStreamReader(stream), 32768)",
"reader",
"new BufferedReader(new InputStreamReader(stream), 32768)",
"tokenizer = null",
"tokenizer",
"null",
"InputStream stream",
"stream",
"public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"next",
"{\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }",
"catch (IOException e) {\n throw new RuntimeException(e);\n }",
"IOException e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n tokenizer = new StringTokenizer(reader.readLine());\n }",
"tokenizer = new StringTokenizer(reader.readLine())",
"tokenizer",
"new StringTokenizer(reader.readLine())",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"public int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskT solver = new TaskT();\n solver.solve(1, in, out);\n out.close();\n }\n \n \n\n static class TaskT {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n \t\n \tint N = in.nextInt();\n \tint X = in.nextInt();\n \tint T = in.nextInt();\n \t\n \t\n \tint ans = 0; \n \twhile(N > 0){\n \t\tN = N - X;\n \t\tans += T;\n \t}\n \t\n \tout.println(ans);\n }\n\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n \n public long nextLong() {\n return Long.parseLong(next());\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskT solver = new TaskT();\n solver.solve(1, in, out);\n out.close();\n }\n \n \n\n static class TaskT {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n \t\n \tint N = in.nextInt();\n \tint X = in.nextInt();\n \tint T = in.nextInt();\n \t\n \t\n \tint ans = 0; \n \twhile(N > 0){\n \t\tN = N - X;\n \t\tans += T;\n \t}\n \t\n \tout.println(ans);\n }\n\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n \n public long nextLong() {\n return Long.parseLong(next());\n }\n }\n}",
"Main"
]
| import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.Set;
import java.util.StringTokenizer;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
TaskT solver = new TaskT();
solver.solve(1, in, out);
out.close();
}
static class TaskT {
public void solve(int testNumber, InputReader in, PrintWriter out) {
int N = in.nextInt();
int X = in.nextInt();
int T = in.nextInt();
int ans = 0;
while(N > 0){
N = N - X;
ans += T;
}
out.println(ans);
}
}
static class InputReader {
public BufferedReader reader;
public StringTokenizer tokenizer;
public InputReader(InputStream stream) {
reader = new BufferedReader(new InputStreamReader(stream), 32768);
tokenizer = null;
}
public String next() {
while (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(reader.readLine());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken();
}
public int nextInt() {
return Integer.parseInt(next());
}
public long nextLong() {
return Long.parseLong(next());
}
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
17,
12,
13,
30,
41,
13,
4,
13,
41,
13,
8,
2,
2,
18,
13,
17,
18,
13,
17,
17,
2,
18,
13,
17,
18,
13,
17,
2,
2,
18,
13,
17,
18,
13,
17,
17,
4,
18,
13,
2,
13,
18,
13,
17,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
20,
4,
18,
13,
41,
13,
4,
18,
13,
14,
13,
4,
18,
18,
13,
13,
2,
17,
2,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
0,
13,
20,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
20,
18,
13,
13,
11,
1,
41,
13,
17,
41,
13,
18,
13,
13,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
29,
13,
12,
13,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
20,
18,
13,
13,
11,
1,
41,
13,
17,
41,
13,
18,
13,
13,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
29,
13,
12,
13,
30,
4,
18,
13,
4,
18,
13,
4,
18,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
4,
8
],
[
8,
9
],
[
4,
10
],
[
10,
11
],
[
4,
12
],
[
12,
13
],
[
12,
14
],
[
4,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
17,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
24,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
38,
40
],
[
24,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
17,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
4,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
60,
66
],
[
66,
67
],
[
66,
68
],
[
60,
69
],
[
69,
70
],
[
70,
71
],
[
60,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
60,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
86,
88
],
[
60,
89
],
[
89,
90
],
[
90,
91
],
[
58,
92
],
[
92,
93
],
[
4,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
100,
102
],
[
96,
103
],
[
103,
104
],
[
103,
105
],
[
4,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
113,
114
],
[
114,
115
],
[
4,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
123,
124
],
[
124,
125
],
[
4,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
131,
136
],
[
128,
137
],
[
137,
138
],
[
137,
139
],
[
140,
141
],
[
140,
142
],
[
128,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
150,
152
],
[
143,
153
],
[
153,
154
],
[
153,
155
],
[
143,
156
],
[
156,
157
],
[
157,
158
],
[
143,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
164,
165
],
[
165,
166
],
[
164,
167
],
[
167,
168
],
[
167,
169
],
[
128,
170
],
[
170,
171
],
[
4,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
177,
182
],
[
174,
183
],
[
183,
184
],
[
183,
185
],
[
186,
187
],
[
186,
188
],
[
174,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
190,
194
],
[
194,
195
],
[
194,
196
],
[
196,
197
],
[
196,
198
],
[
189,
199
],
[
199,
200
],
[
199,
201
],
[
189,
202
],
[
202,
203
],
[
203,
204
],
[
189,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
206,
210
],
[
210,
211
],
[
211,
212
],
[
210,
213
],
[
213,
214
],
[
213,
215
],
[
174,
216
],
[
216,
217
],
[
4,
218
],
[
218,
219
],
[
218,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
220,
224
],
[
224,
225
],
[
225,
226
],
[
220,
227
],
[
227,
228
],
[
228,
229
]
]
| [
"import java.io.*;\n\nclass Main {\n BufferedReader bf;\n PrintWriter writer;\n StringBuilder sb;\n static boolean local_system = false;\n\n void run() throws IOException {\n int[] c = ni();\n int d = c[0] % c[1] == 0 ? c[0] / c[1] : c[0] / c[1] + 1;\n writer.println(d*c[2]);\n }\n\n public static void main(String[] args) throws IOException {\n long start_time = System.currentTimeMillis();\n Main obj = new Main();\n obj.run();\n long end_time = System.currentTimeMillis();\n if (local_system) obj.writer.println(\"Time : \" + (end_time - start_time));\n obj.close();\n }\n\n public Main(){\n writer = new PrintWriter(System.out);\n bf = new BufferedReader(new InputStreamReader(System.in));\n sb = new StringBuilder();\n }\n\n public int i() throws IOException {\n return Integer.parseInt(bf.readLine());\n }\n\n public long l() throws IOException {\n return Long.parseLong(bf.readLine());\n }\n\n public int[] ni() throws IOException {\n String[] data = bf.readLine().split(\" \");\n int[] send = new int[data.length];\n for (int i = 0, h = data.length; i < h; i++) send[i] = Integer.parseInt(data[i]);\n return send;\n }\n\n public long[] nl() throws IOException {\n String[] data = bf.readLine().split(\" \");\n long[] send = new long[data.length];\n for (int i = 0, h = data.length; i < h; i++) send[i] = Long.parseLong(data[i]);\n return send;\n }\n\n public void close() throws IOException{\n writer.flush();\n writer.close();\n bf.close();\n }\n}\n\n",
"import java.io.*;",
"io.*",
"java",
"class Main {\n BufferedReader bf;\n PrintWriter writer;\n StringBuilder sb;\n static boolean local_system = false;\n\n void run() throws IOException {\n int[] c = ni();\n int d = c[0] % c[1] == 0 ? c[0] / c[1] : c[0] / c[1] + 1;\n writer.println(d*c[2]);\n }\n\n public static void main(String[] args) throws IOException {\n long start_time = System.currentTimeMillis();\n Main obj = new Main();\n obj.run();\n long end_time = System.currentTimeMillis();\n if (local_system) obj.writer.println(\"Time : \" + (end_time - start_time));\n obj.close();\n }\n\n public Main(){\n writer = new PrintWriter(System.out);\n bf = new BufferedReader(new InputStreamReader(System.in));\n sb = new StringBuilder();\n }\n\n public int i() throws IOException {\n return Integer.parseInt(bf.readLine());\n }\n\n public long l() throws IOException {\n return Long.parseLong(bf.readLine());\n }\n\n public int[] ni() throws IOException {\n String[] data = bf.readLine().split(\" \");\n int[] send = new int[data.length];\n for (int i = 0, h = data.length; i < h; i++) send[i] = Integer.parseInt(data[i]);\n return send;\n }\n\n public long[] nl() throws IOException {\n String[] data = bf.readLine().split(\" \");\n long[] send = new long[data.length];\n for (int i = 0, h = data.length; i < h; i++) send[i] = Long.parseLong(data[i]);\n return send;\n }\n\n public void close() throws IOException{\n writer.flush();\n writer.close();\n bf.close();\n }\n}",
"Main",
"BufferedReader bf;",
"bf",
"PrintWriter writer;",
"writer",
"StringBuilder sb;",
"sb",
"static boolean local_system = false;",
"local_system",
"false",
"void run() throws IOException {\n int[] c = ni();\n int d = c[0] % c[1] == 0 ? c[0] / c[1] : c[0] / c[1] + 1;\n writer.println(d*c[2]);\n }",
"run",
"{\n int[] c = ni();\n int d = c[0] % c[1] == 0 ? c[0] / c[1] : c[0] / c[1] + 1;\n writer.println(d*c[2]);\n }",
"int[] c = ni();",
"c",
"ni()",
"ni",
"int d = c[0] % c[1] == 0 ? c[0] / c[1] : c[0] / c[1] + 1;",
"d",
"c[0] % c[1] == 0 ? c[0] / c[1] : c[0] / c[1] + 1",
"c[0] % c[1] == 0",
"c[0] % c[1]",
"c[0]",
"c",
"0",
"c[1]",
"c",
"1",
"0",
"c[0] / c[1]",
"c[0]",
"c",
"0",
"c[1]",
"c",
"1",
"c[0] / c[1] + 1",
"c[0] / c[1]",
"c[0]",
"c",
"0",
"c[1]",
"c",
"1",
"1",
"writer.println(d*c[2])",
"writer.println",
"writer",
"d*c[2]",
"d",
"c[2]",
"c",
"2",
"public static void main(String[] args) throws IOException {\n long start_time = System.currentTimeMillis();\n Main obj = new Main();\n obj.run();\n long end_time = System.currentTimeMillis();\n if (local_system) obj.writer.println(\"Time : \" + (end_time - start_time));\n obj.close();\n }",
"main",
"{\n long start_time = System.currentTimeMillis();\n Main obj = new Main();\n obj.run();\n long end_time = System.currentTimeMillis();\n if (local_system) obj.writer.println(\"Time : \" + (end_time - start_time));\n obj.close();\n }",
"long start_time = System.currentTimeMillis();",
"start_time",
"System.currentTimeMillis()",
"System.currentTimeMillis",
"System",
"Main obj = new Main();",
"obj",
"new Main()",
"obj.run()",
"obj.run",
"obj",
"long end_time = System.currentTimeMillis();",
"end_time",
"System.currentTimeMillis()",
"System.currentTimeMillis",
"System",
"if (local_system) obj.writer.println(\"Time : \" + (end_time - start_time));",
"local_system",
"obj.writer.println(\"Time : \" + (end_time - start_time))",
"obj.writer.println",
"obj.writer",
"obj",
"obj.writer",
"\"Time : \" + (end_time - start_time)",
"\"Time : \"",
"(end_time - start_time)",
"end_time",
"start_time",
"obj.close()",
"obj.close",
"obj",
"String[] args",
"args",
"public Main(){\n writer = new PrintWriter(System.out);\n bf = new BufferedReader(new InputStreamReader(System.in));\n sb = new StringBuilder();\n }",
"Main",
"{\n writer = new PrintWriter(System.out);\n bf = new BufferedReader(new InputStreamReader(System.in));\n sb = new StringBuilder();\n }",
"writer = new PrintWriter(System.out)",
"writer",
"new PrintWriter(System.out)",
"bf = new BufferedReader(new InputStreamReader(System.in))",
"bf",
"new BufferedReader(new InputStreamReader(System.in))",
"sb = new StringBuilder()",
"sb",
"new StringBuilder()",
"public int i() throws IOException {\n return Integer.parseInt(bf.readLine());\n }",
"i",
"{\n return Integer.parseInt(bf.readLine());\n }",
"return Integer.parseInt(bf.readLine());",
"Integer.parseInt(bf.readLine())",
"Integer.parseInt",
"Integer",
"bf.readLine()",
"bf.readLine",
"bf",
"public long l() throws IOException {\n return Long.parseLong(bf.readLine());\n }",
"l",
"{\n return Long.parseLong(bf.readLine());\n }",
"return Long.parseLong(bf.readLine());",
"Long.parseLong(bf.readLine())",
"Long.parseLong",
"Long",
"bf.readLine()",
"bf.readLine",
"bf",
"public int[] ni() throws IOException {\n String[] data = bf.readLine().split(\" \");\n int[] send = new int[data.length];\n for (int i = 0, h = data.length; i < h; i++) send[i] = Integer.parseInt(data[i]);\n return send;\n }",
"ni",
"{\n String[] data = bf.readLine().split(\" \");\n int[] send = new int[data.length];\n for (int i = 0, h = data.length; i < h; i++) send[i] = Integer.parseInt(data[i]);\n return send;\n }",
"String[] data = bf.readLine().split(\" \");",
"data",
"bf.readLine().split(\" \")",
"bf.readLine().split",
"bf.readLine()",
"bf.readLine",
"bf",
"\" \"",
"int[] send = new int[data.length];",
"send",
"new int[data.length]",
"data.length",
"data",
"data.length",
"for (int i = 0, h = data.length; i < h; i++) send[i] = Integer.parseInt(data[i]);",
"int i = 0, h = data.length;",
"int i = 0",
"i",
"0",
"h = data.length;",
"h",
"data.length",
"data",
"data.length",
"i < h",
"i",
"h",
"i++",
"i++",
"i",
"send[i] = Integer.parseInt(data[i]);",
"send[i] = Integer.parseInt(data[i])",
"send[i]",
"send",
"i",
"Integer.parseInt(data[i])",
"Integer.parseInt",
"Integer",
"data[i]",
"data",
"i",
"return send;",
"send",
"public long[] nl() throws IOException {\n String[] data = bf.readLine().split(\" \");\n long[] send = new long[data.length];\n for (int i = 0, h = data.length; i < h; i++) send[i] = Long.parseLong(data[i]);\n return send;\n }",
"nl",
"{\n String[] data = bf.readLine().split(\" \");\n long[] send = new long[data.length];\n for (int i = 0, h = data.length; i < h; i++) send[i] = Long.parseLong(data[i]);\n return send;\n }",
"String[] data = bf.readLine().split(\" \");",
"data",
"bf.readLine().split(\" \")",
"bf.readLine().split",
"bf.readLine()",
"bf.readLine",
"bf",
"\" \"",
"long[] send = new long[data.length];",
"send",
"new long[data.length]",
"data.length",
"data",
"data.length",
"for (int i = 0, h = data.length; i < h; i++) send[i] = Long.parseLong(data[i]);",
"int i = 0, h = data.length;",
"int i = 0",
"i",
"0",
"h = data.length;",
"h",
"data.length",
"data",
"data.length",
"i < h",
"i",
"h",
"i++",
"i++",
"i",
"send[i] = Long.parseLong(data[i]);",
"send[i] = Long.parseLong(data[i])",
"send[i]",
"send",
"i",
"Long.parseLong(data[i])",
"Long.parseLong",
"Long",
"data[i]",
"data",
"i",
"return send;",
"send",
"public void close() throws IOException{\n writer.flush();\n writer.close();\n bf.close();\n }",
"close",
"{\n writer.flush();\n writer.close();\n bf.close();\n }",
"writer.flush()",
"writer.flush",
"writer",
"writer.close()",
"writer.close",
"writer",
"bf.close()",
"bf.close",
"bf"
]
| import java.io.*;
class Main {
BufferedReader bf;
PrintWriter writer;
StringBuilder sb;
static boolean local_system = false;
void run() throws IOException {
int[] c = ni();
int d = c[0] % c[1] == 0 ? c[0] / c[1] : c[0] / c[1] + 1;
writer.println(d*c[2]);
}
public static void main(String[] args) throws IOException {
long start_time = System.currentTimeMillis();
Main obj = new Main();
obj.run();
long end_time = System.currentTimeMillis();
if (local_system) obj.writer.println("Time : " + (end_time - start_time));
obj.close();
}
public Main(){
writer = new PrintWriter(System.out);
bf = new BufferedReader(new InputStreamReader(System.in));
sb = new StringBuilder();
}
public int i() throws IOException {
return Integer.parseInt(bf.readLine());
}
public long l() throws IOException {
return Long.parseLong(bf.readLine());
}
public int[] ni() throws IOException {
String[] data = bf.readLine().split(" ");
int[] send = new int[data.length];
for (int i = 0, h = data.length; i < h; i++) send[i] = Integer.parseInt(data[i]);
return send;
}
public long[] nl() throws IOException {
String[] data = bf.readLine().split(" ");
long[] send = new long[data.length];
for (int i = 0, h = data.length; i < h; i++) send[i] = Long.parseLong(data[i]);
return send;
}
public void close() throws IOException{
writer.flush();
writer.close();
bf.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
13,
42,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
50,
5
],
[
50,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
38,
40
],
[
8,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
6,
47
],
[
47,
48
],
[
0,
49
],
[
49,
50
],
[
49,
51
]
]
| [
"import java.util.*;\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n int time = t;\n while(x < n){\n n -= x;\n time += t;\n }\n System.out.println(time);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n int time = t;\n while(x < n){\n n -= x;\n time += t;\n }\n System.out.println(time);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n int time = t;\n while(x < n){\n n -= x;\n time += t;\n }\n System.out.println(time);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n int time = t;\n while(x < n){\n n -= x;\n time += t;\n }\n System.out.println(time);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t = sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int time = t;",
"time",
"t",
"while(x < n){\n n -= x;\n time += t;\n }",
"x < n",
"x",
"n",
"{\n n -= x;\n time += t;\n }",
"n -= x",
"n",
"x",
"time += t",
"time",
"t",
"System.out.println(time)",
"System.out.println",
"System.out",
"System",
"System.out",
"time",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n int time = t;\n while(x < n){\n n -= x;\n time += t;\n }\n System.out.println(time);\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n int time = t;\n while(x < n){\n n -= x;\n time += t;\n }\n System.out.println(time);\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int x = sc.nextInt();
int t = sc.nextInt();
int time = t;
while(x < n){
n -= x;
time += t;
}
System.out.println(time);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
14,
2,
2,
13,
13,
17,
4,
18,
13,
2,
2,
13,
13,
13,
4,
18,
13,
2,
2,
2,
13,
13,
17,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
0,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
13,
13,
13,
13,
4,
18,
13,
13,
4,
18,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
89,
8
],
[
89,
9
],
[
9,
10
],
[
89,
11
],
[
11,
12
],
[
11,
13
],
[
13,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
15,
19
],
[
14,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
14,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
31,
37
],
[
11,
38
],
[
38,
39
],
[
11,
40
],
[
40,
41
],
[
11,
42
],
[
42,
43
],
[
89,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
50,
52
],
[
46,
53
],
[
53,
54
],
[
53,
55
],
[
46,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
46,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
46,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
46,
71
],
[
71,
72
],
[
71,
73
],
[
71,
74
],
[
71,
75
],
[
46,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
46,
80
],
[
80,
81
],
[
81,
82
],
[
46,
83
],
[
83,
84
],
[
84,
85
],
[
44,
86
],
[
86,
87
],
[
0,
88
],
[
88,
89
],
[
88,
90
]
]
| [
"import java.util.*;\nimport java.io.*;\n\npublic class Main {\n static StringBuilder sb;\n\n public static void solve(int n, int x, int t) {\n if (n % x == 0) sb.append(n / x * t);\n else sb.append((n / x + 1) * t);\n }\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n sb = new StringBuilder();\n\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n\n solve(n, x, t);\n\n pw.print(sb);\n pw.flush();\n sc.close();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n static StringBuilder sb;\n\n public static void solve(int n, int x, int t) {\n if (n % x == 0) sb.append(n / x * t);\n else sb.append((n / x + 1) * t);\n }\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n sb = new StringBuilder();\n\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n\n solve(n, x, t);\n\n pw.print(sb);\n pw.flush();\n sc.close();\n }\n}",
"Main",
"static StringBuilder sb;",
"sb",
"public static void solve(int n, int x, int t) {\n if (n % x == 0) sb.append(n / x * t);\n else sb.append((n / x + 1) * t);\n }",
"solve",
"{\n if (n % x == 0) sb.append(n / x * t);\n else sb.append((n / x + 1) * t);\n }",
"if (n % x == 0) sb.append(n / x * t);\n else sb.append((n / x + 1) * t);",
"n % x == 0",
"n % x",
"n",
"x",
"0",
"sb.append(n / x * t)",
"sb.append",
"sb",
"n / x * t",
"n / x",
"n",
"x",
"t",
"sb.append((n / x + 1) * t)",
"sb.append",
"sb",
"(n / x + 1) * t",
"(n / x + 1)",
"n / x",
"n",
"x",
"1",
"t",
"int n",
"n",
"int x",
"x",
"int t",
"t",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n sb = new StringBuilder();\n\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n\n solve(n, x, t);\n\n pw.print(sb);\n pw.flush();\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n sb = new StringBuilder();\n\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n\n solve(n, x, t);\n\n pw.print(sb);\n pw.flush();\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"PrintWriter pw = new PrintWriter(System.out);",
"pw",
"new PrintWriter(System.out)",
"sb = new StringBuilder()",
"sb",
"new StringBuilder()",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t = sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"solve(n, x, t)",
"solve",
"n",
"x",
"t",
"pw.print(sb)",
"pw.print",
"pw",
"sb",
"pw.flush()",
"pw.flush",
"pw",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n static StringBuilder sb;\n\n public static void solve(int n, int x, int t) {\n if (n % x == 0) sb.append(n / x * t);\n else sb.append((n / x + 1) * t);\n }\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n sb = new StringBuilder();\n\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n\n solve(n, x, t);\n\n pw.print(sb);\n pw.flush();\n sc.close();\n }\n}",
"public class Main {\n static StringBuilder sb;\n\n public static void solve(int n, int x, int t) {\n if (n % x == 0) sb.append(n / x * t);\n else sb.append((n / x + 1) * t);\n }\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n sb = new StringBuilder();\n\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n\n solve(n, x, t);\n\n pw.print(sb);\n pw.flush();\n sc.close();\n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main {
static StringBuilder sb;
public static void solve(int n, int x, int t) {
if (n % x == 0) sb.append(n / x * t);
else sb.append((n / x + 1) * t);
}
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
PrintWriter pw = new PrintWriter(System.out);
sb = new StringBuilder();
int n = sc.nextInt();
int x = sc.nextInt();
int t = sc.nextInt();
solve(n, x, t);
pw.print(sb);
pw.flush();
sc.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,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
13,
17,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
44,
5
],
[
44,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
33,
39
],
[
32,
40
],
[
6,
41
],
[
41,
42
],
[
0,
43
],
[
43,
44
],
[
43,
45
]
]
| [
"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 X = sc.nextInt();\n\t\tint T = sc.nextInt();\n\t\tSystem.out.println((N + X - 1) / X * 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 N = sc.nextInt();\n\t\tint X = sc.nextInt();\n\t\tint T = sc.nextInt();\n\t\tSystem.out.println((N + X - 1) / X * T);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint X = sc.nextInt();\n\t\tint T = sc.nextInt();\n\t\tSystem.out.println((N + X - 1) / X * T);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint X = sc.nextInt();\n\t\tint T = sc.nextInt();\n\t\tSystem.out.println((N + X - 1) / X * T);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int X = sc.nextInt();",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int T = sc.nextInt();",
"T",
"sc.nextInt()",
"sc.nextInt",
"sc",
"System.out.println((N + X - 1) / X * T)",
"System.out.println",
"System.out",
"System",
"System.out",
"(N + X - 1) / X * T",
"(N + X - 1) / X",
"(N + X - 1)",
"N + X",
"N",
"X",
"1",
"X",
"T",
"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 X = sc.nextInt();\n\t\tint T = sc.nextInt();\n\t\tSystem.out.println((N + X - 1) / X * T);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint X = sc.nextInt();\n\t\tint T = sc.nextInt();\n\t\tSystem.out.println((N + X - 1) / X * 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 N = sc.nextInt();
int X = sc.nextInt();
int T = sc.nextInt();
System.out.println((N + X - 1) / X * T);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
13,
42,
2,
13,
17,
30,
0,
13,
2,
13,
13,
40,
13,
4,
18,
18,
13,
13,
2,
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
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
37,
43
],
[
43,
44
],
[
8,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
6,
53
],
[
53,
54
]
]
| [
"import java.util.Scanner;\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n\n int kaisuu = 0;\n int nn = n;\n while(nn > 0) {\n nn = nn - x;\n kaisuu++;\n }\n \n System.out.println(kaisuu*t);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n\n int kaisuu = 0;\n int nn = n;\n while(nn > 0) {\n nn = nn - x;\n kaisuu++;\n }\n \n System.out.println(kaisuu*t);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n\n int kaisuu = 0;\n int nn = n;\n while(nn > 0) {\n nn = nn - x;\n kaisuu++;\n }\n \n System.out.println(kaisuu*t);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n\n int kaisuu = 0;\n int nn = n;\n while(nn > 0) {\n nn = nn - x;\n kaisuu++;\n }\n \n System.out.println(kaisuu*t);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t = sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int kaisuu = 0;",
"kaisuu",
"0",
"int nn = n;",
"nn",
"n",
"while(nn > 0) {\n nn = nn - x;\n kaisuu++;\n }",
"nn > 0",
"nn",
"0",
"{\n nn = nn - x;\n kaisuu++;\n }",
"nn = nn - x",
"nn",
"nn - x",
"nn",
"x",
"kaisuu++",
"kaisuu",
"System.out.println(kaisuu*t)",
"System.out.println",
"System.out",
"System",
"System.out",
"kaisuu*t",
"kaisuu",
"t",
"String[] args",
"args"
]
| import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int x = sc.nextInt();
int t = sc.nextInt();
int kaisuu = 0;
int nn = n;
while(nn > 0) {
nn = nn - x;
kaisuu++;
}
System.out.println(kaisuu*t);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
4,
18,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
57,
5
],
[
57,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
37,
38
],
[
37,
39
],
[
8,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
8,
45
],
[
45,
46
],
[
45,
47
],
[
8,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
6,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
]
| [
"import java.util.Scanner;\npublic class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int N=sc.nextInt();\n double X=sc.nextDouble();\n int T=sc.nextInt();\n double a =N/X;\n double temp=Math.ceil(N/X);\n double ans=T*temp;\n int ans1=(int)ans;\n \n \n \n System.out.println(ans1);\n }}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int N=sc.nextInt();\n double X=sc.nextDouble();\n int T=sc.nextInt();\n double a =N/X;\n double temp=Math.ceil(N/X);\n double ans=T*temp;\n int ans1=(int)ans;\n \n \n \n System.out.println(ans1);\n }}",
"Main",
"public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int N=sc.nextInt();\n double X=sc.nextDouble();\n int T=sc.nextInt();\n double a =N/X;\n double temp=Math.ceil(N/X);\n double ans=T*temp;\n int ans1=(int)ans;\n \n \n \n System.out.println(ans1);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N=sc.nextInt();\n double X=sc.nextDouble();\n int T=sc.nextInt();\n double a =N/X;\n double temp=Math.ceil(N/X);\n double ans=T*temp;\n int ans1=(int)ans;\n \n \n \n System.out.println(ans1);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N=sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double X=sc.nextDouble();",
"X",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"int T=sc.nextInt();",
"T",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double a =N/X;",
"a",
"N/X",
"N",
"X",
"double temp=Math.ceil(N/X);",
"temp",
"Math.ceil(N/X)",
"Math.ceil",
"Math",
"N/X",
"N",
"X",
"double ans=T*temp;",
"ans",
"T*temp",
"T",
"temp",
"int ans1=(int)ans;",
"ans1",
"(int)ans",
"System.out.println(ans1)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans1",
"String[] args",
"args",
"public class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int N=sc.nextInt();\n double X=sc.nextDouble();\n int T=sc.nextInt();\n double a =N/X;\n double temp=Math.ceil(N/X);\n double ans=T*temp;\n int ans1=(int)ans;\n \n \n \n System.out.println(ans1);\n }}",
"public class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int N=sc.nextInt();\n double X=sc.nextDouble();\n int T=sc.nextInt();\n double a =N/X;\n double temp=Math.ceil(N/X);\n double ans=T*temp;\n int ans1=(int)ans;\n \n \n \n System.out.println(ans1);\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();
double X=sc.nextDouble();
int T=sc.nextInt();
double a =N/X;
double temp=Math.ceil(N/X);
double ans=T*temp;
int ans1=(int)ans;
System.out.println(ans1);
}} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
13,
13,
4,
18,
18,
13,
13,
2,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
46,
5
],
[
46,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
6,
43
],
[
43,
44
],
[
0,
45
],
[
45,
46
],
[
45,
47
]
]
| [
"import java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tdouble want = sc.nextInt();\n\t\tdouble can = sc.nextInt();\n\t\tdouble min = sc.nextInt();\n\t\tdouble bakeNum = Math.ceil(want / can) ;\n\t\tSystem.out.println((int)(bakeNum * min));\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tdouble want = sc.nextInt();\n\t\tdouble can = sc.nextInt();\n\t\tdouble min = sc.nextInt();\n\t\tdouble bakeNum = Math.ceil(want / can) ;\n\t\tSystem.out.println((int)(bakeNum * min));\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tdouble want = sc.nextInt();\n\t\tdouble can = sc.nextInt();\n\t\tdouble min = sc.nextInt();\n\t\tdouble bakeNum = Math.ceil(want / can) ;\n\t\tSystem.out.println((int)(bakeNum * min));\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tdouble want = sc.nextInt();\n\t\tdouble can = sc.nextInt();\n\t\tdouble min = sc.nextInt();\n\t\tdouble bakeNum = Math.ceil(want / can) ;\n\t\tSystem.out.println((int)(bakeNum * min));\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"double want = sc.nextInt();",
"want",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double can = sc.nextInt();",
"can",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double min = sc.nextInt();",
"min",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double bakeNum = Math.ceil(want / can) ;",
"bakeNum",
"Math.ceil(want / can)",
"Math.ceil",
"Math",
"want / can",
"want",
"can",
"System.out.println((int)(bakeNum * min))",
"System.out.println",
"System.out",
"System",
"System.out",
"(int)(bakeNum * min)",
"bakeNum",
"min",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tdouble want = sc.nextInt();\n\t\tdouble can = sc.nextInt();\n\t\tdouble min = sc.nextInt();\n\t\tdouble bakeNum = Math.ceil(want / can) ;\n\t\tSystem.out.println((int)(bakeNum * min));\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tdouble want = sc.nextInt();\n\t\tdouble can = sc.nextInt();\n\t\tdouble min = sc.nextInt();\n\t\tdouble bakeNum = Math.ceil(want / can) ;\n\t\tSystem.out.println((int)(bakeNum * min));\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double want = sc.nextInt();
double can = sc.nextInt();
double min = sc.nextInt();
double bakeNum = Math.ceil(want / can) ;
System.out.println((int)(bakeNum * min));
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
41,
13,
20,
0,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
2,
2,
2,
2,
13,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
141,
8
],
[
141,
9
],
[
9,
10
],
[
141,
11
],
[
11,
12
],
[
11,
13
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
13,
17
],
[
17,
18
],
[
17,
19
],
[
13,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
13,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
13,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
13,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
39,
45
],
[
38,
46
],
[
13,
47
],
[
47,
48
],
[
48,
49
],
[
11,
50
],
[
50,
51
],
[
141,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
52,
56
],
[
56,
57
],
[
52,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
52,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
67,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
77,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
66,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
52,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
99,
100
],
[
52,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
108,
109
],
[
52,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
117,
118
],
[
52,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
125,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
121,
138
],
[
138,
139
],
[
0,
140
],
[
140,
141
],
[
140,
142
]
]
| [
"import java.util.*;\nimport java.io.*;\n\npublic class Main {\n public static void main(String[] args) {\n MyScanner scn = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n\n // Start writing your solution here. -------------------------------------\n\n /*\n * int n = sc.nextInt(); // read input as integer long k = sc.nextLong(); //\n * read input as long double d = sc.nextDouble(); // read input as double String\n * str = sc.next(); // read input as String String s = sc.nextLine(); // read\n * whole line as String\n * \n * int result = 3*n; out.println(result); // print via PrintWriter\n */\n\n // Stop writing your solution here. -------------------------------------\n\n long x = scn.nextLong();\n long b = scn.nextLong();\n long t = scn.nextLong();\n\n out.println(((x + b - 1) / b) * t);\n out.close();\n }\n\n public static PrintWriter out;\n\n public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n }\n\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main(String[] args) {\n MyScanner scn = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n\n // Start writing your solution here. -------------------------------------\n\n /*\n * int n = sc.nextInt(); // read input as integer long k = sc.nextLong(); //\n * read input as long double d = sc.nextDouble(); // read input as double String\n * str = sc.next(); // read input as String String s = sc.nextLine(); // read\n * whole line as String\n * \n * int result = 3*n; out.println(result); // print via PrintWriter\n */\n\n // Stop writing your solution here. -------------------------------------\n\n long x = scn.nextLong();\n long b = scn.nextLong();\n long t = scn.nextLong();\n\n out.println(((x + b - 1) / b) * t);\n out.close();\n }\n\n public static PrintWriter out;\n\n public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n }\n\n}",
"Main",
"public static PrintWriter out;",
"out",
"public static void main(String[] args) {\n MyScanner scn = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n\n // Start writing your solution here. -------------------------------------\n\n /*\n * int n = sc.nextInt(); // read input as integer long k = sc.nextLong(); //\n * read input as long double d = sc.nextDouble(); // read input as double String\n * str = sc.next(); // read input as String String s = sc.nextLine(); // read\n * whole line as String\n * \n * int result = 3*n; out.println(result); // print via PrintWriter\n */\n\n // Stop writing your solution here. -------------------------------------\n\n long x = scn.nextLong();\n long b = scn.nextLong();\n long t = scn.nextLong();\n\n out.println(((x + b - 1) / b) * t);\n out.close();\n }",
"main",
"{\n MyScanner scn = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n\n // Start writing your solution here. -------------------------------------\n\n /*\n * int n = sc.nextInt(); // read input as integer long k = sc.nextLong(); //\n * read input as long double d = sc.nextDouble(); // read input as double String\n * str = sc.next(); // read input as String String s = sc.nextLine(); // read\n * whole line as String\n * \n * int result = 3*n; out.println(result); // print via PrintWriter\n */\n\n // Stop writing your solution here. -------------------------------------\n\n long x = scn.nextLong();\n long b = scn.nextLong();\n long t = scn.nextLong();\n\n out.println(((x + b - 1) / b) * t);\n out.close();\n }",
"MyScanner scn = new MyScanner();",
"scn",
"new MyScanner()",
"out = new PrintWriter(new BufferedOutputStream(System.out))",
"out",
"new PrintWriter(new BufferedOutputStream(System.out))",
"long x = scn.nextLong();",
"x",
"scn.nextLong()",
"scn.nextLong",
"scn",
"long b = scn.nextLong();",
"b",
"scn.nextLong()",
"scn.nextLong",
"scn",
"long t = scn.nextLong();",
"t",
"scn.nextLong()",
"scn.nextLong",
"scn",
"out.println(((x + b - 1) / b) * t)",
"out.println",
"out",
"((x + b - 1) / b) * t",
"((x + b - 1) / b)",
"(x + b - 1)",
"x + b",
"x",
"b",
"1",
"b",
"t",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n }",
"MyScanner",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"MyScanner",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\n public static void main(String[] args) {\n MyScanner scn = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n\n // Start writing your solution here. -------------------------------------\n\n /*\n * int n = sc.nextInt(); // read input as integer long k = sc.nextLong(); //\n * read input as long double d = sc.nextDouble(); // read input as double String\n * str = sc.next(); // read input as String String s = sc.nextLine(); // read\n * whole line as String\n * \n * int result = 3*n; out.println(result); // print via PrintWriter\n */\n\n // Stop writing your solution here. -------------------------------------\n\n long x = scn.nextLong();\n long b = scn.nextLong();\n long t = scn.nextLong();\n\n out.println(((x + b - 1) / b) * t);\n out.close();\n }\n\n public static PrintWriter out;\n\n public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n }\n\n}",
"public class Main {\n public static void main(String[] args) {\n MyScanner scn = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n\n // Start writing your solution here. -------------------------------------\n\n /*\n * int n = sc.nextInt(); // read input as integer long k = sc.nextLong(); //\n * read input as long double d = sc.nextDouble(); // read input as double String\n * str = sc.next(); // read input as String String s = sc.nextLine(); // read\n * whole line as String\n * \n * int result = 3*n; out.println(result); // print via PrintWriter\n */\n\n // Stop writing your solution here. -------------------------------------\n\n long x = scn.nextLong();\n long b = scn.nextLong();\n long t = scn.nextLong();\n\n out.println(((x + b - 1) / b) * t);\n out.close();\n }\n\n public static PrintWriter out;\n\n public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n }\n\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) {
MyScanner scn = new MyScanner();
out = new PrintWriter(new BufferedOutputStream(System.out));
// Start writing your solution here. -------------------------------------
/*
* int n = sc.nextInt(); // read input as integer long k = sc.nextLong(); //
* read input as long double d = sc.nextDouble(); // read input as double String
* str = sc.next(); // read input as String String s = sc.nextLine(); // read
* whole line as String
*
* int result = 3*n; out.println(result); // print via PrintWriter
*/
// Stop writing your solution here. -------------------------------------
long x = scn.nextLong();
long b = scn.nextLong();
long t = scn.nextLong();
out.println(((x + b - 1) / b) * t);
out.close();
}
public static PrintWriter out;
public static class MyScanner {
BufferedReader br;
StringTokenizer st;
public MyScanner() {
br = new BufferedReader(new InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
42,
17,
30,
0,
13,
13,
14,
2,
13,
2,
13,
13,
3,
40,
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
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
78,
14
],
[
78,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
17,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
37,
38
],
[
38,
39
],
[
17,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
45,
46
],
[
46,
47
],
[
17,
48
],
[
48,
49
],
[
48,
50
],
[
17,
51
],
[
51,
52
],
[
51,
53
],
[
17,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
60,
66
],
[
56,
67
],
[
67,
68
],
[
17,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
15,
75
],
[
75,
76
],
[
0,
77
],
[
77,
78
],
[
77,
79
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tStringTokenizer st = new StringTokenizer(br.readLine());\n\t\t\n\t\tint N = Integer.parseInt(st.nextToken());\n\t\tint X = Integer.parseInt(st.nextToken());\n\t\tint T = Integer.parseInt(st.nextToken());\n\t\t\n\t\tint i = 1;\n\t\tint ans = 0;\n\t\twhile(true) {\n\t\t\tans += T;\n\t\t\tif(N <= (X * i))\n\t\t\t\tbreak;\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\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",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tStringTokenizer st = new StringTokenizer(br.readLine());\n\t\t\n\t\tint N = Integer.parseInt(st.nextToken());\n\t\tint X = Integer.parseInt(st.nextToken());\n\t\tint T = Integer.parseInt(st.nextToken());\n\t\t\n\t\tint i = 1;\n\t\tint ans = 0;\n\t\twhile(true) {\n\t\t\tans += T;\n\t\t\tif(N <= (X * i))\n\t\t\t\tbreak;\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tStringTokenizer st = new StringTokenizer(br.readLine());\n\t\t\n\t\tint N = Integer.parseInt(st.nextToken());\n\t\tint X = Integer.parseInt(st.nextToken());\n\t\tint T = Integer.parseInt(st.nextToken());\n\t\t\n\t\tint i = 1;\n\t\tint ans = 0;\n\t\twhile(true) {\n\t\t\tans += T;\n\t\t\tif(N <= (X * i))\n\t\t\t\tbreak;\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tStringTokenizer st = new StringTokenizer(br.readLine());\n\t\t\n\t\tint N = Integer.parseInt(st.nextToken());\n\t\tint X = Integer.parseInt(st.nextToken());\n\t\tint T = Integer.parseInt(st.nextToken());\n\t\t\n\t\tint i = 1;\n\t\tint ans = 0;\n\t\twhile(true) {\n\t\t\tans += T;\n\t\t\tif(N <= (X * i))\n\t\t\t\tbreak;\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st = new StringTokenizer(br.readLine());",
"st",
"new StringTokenizer(br.readLine())",
"int N = Integer.parseInt(st.nextToken());",
"N",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"int X = Integer.parseInt(st.nextToken());",
"X",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"int T = Integer.parseInt(st.nextToken());",
"T",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"int i = 1;",
"i",
"1",
"int ans = 0;",
"ans",
"0",
"while(true) {\n\t\t\tans += T;\n\t\t\tif(N <= (X * i))\n\t\t\t\tbreak;\n\t\t\ti++;\n\t\t}",
"true",
"{\n\t\t\tans += T;\n\t\t\tif(N <= (X * i))\n\t\t\t\tbreak;\n\t\t\ti++;\n\t\t}",
"ans += T",
"ans",
"T",
"if(N <= (X * i))\n\t\t\t\tbreak;",
"N <= (X * i)",
"N",
"(X * i)",
"X",
"i",
"break;",
"i++",
"i",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tStringTokenizer st = new StringTokenizer(br.readLine());\n\t\t\n\t\tint N = Integer.parseInt(st.nextToken());\n\t\tint X = Integer.parseInt(st.nextToken());\n\t\tint T = Integer.parseInt(st.nextToken());\n\t\t\n\t\tint i = 1;\n\t\tint ans = 0;\n\t\twhile(true) {\n\t\t\tans += T;\n\t\t\tif(N <= (X * i))\n\t\t\t\tbreak;\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tStringTokenizer st = new StringTokenizer(br.readLine());\n\t\t\n\t\tint N = Integer.parseInt(st.nextToken());\n\t\tint X = Integer.parseInt(st.nextToken());\n\t\tint T = Integer.parseInt(st.nextToken());\n\t\t\n\t\tint i = 1;\n\t\tint ans = 0;\n\t\twhile(true) {\n\t\t\tans += T;\n\t\t\tif(N <= (X * i))\n\t\t\t\tbreak;\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t}\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));
StringTokenizer st = new StringTokenizer(br.readLine());
int N = Integer.parseInt(st.nextToken());
int X = Integer.parseInt(st.nextToken());
int T = Integer.parseInt(st.nextToken());
int i = 1;
int ans = 0;
while(true) {
ans += T;
if(N <= (X * i))
break;
i++;
}
System.out.println(ans);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
2,
2,
13,
13,
17,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
63,
5
],
[
63,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
27,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
27,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
50,
56
],
[
8,
57
],
[
57,
58
],
[
58,
59
],
[
6,
60
],
[
60,
61
],
[
0,
62
],
[
62,
63
],
[
62,
64
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 入力値の取得\n\t\tint N = sc.nextInt();\n\t\tint X = sc.nextInt();\n\t\tint T = sc.nextInt();\n\t\t\n\t\t// 結果の出力\n\t\tif (N % X == 0) {\n\t\t\tSystem.out.println((N / X ) * T);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(((N / X) + 1) * T);\n\t\t}\n\t\t\n\t\tsc.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 入力値の取得\n\t\tint N = sc.nextInt();\n\t\tint X = sc.nextInt();\n\t\tint T = sc.nextInt();\n\t\t\n\t\t// 結果の出力\n\t\tif (N % X == 0) {\n\t\t\tSystem.out.println((N / X ) * T);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(((N / X) + 1) * T);\n\t\t}\n\t\t\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 入力値の取得\n\t\tint N = sc.nextInt();\n\t\tint X = sc.nextInt();\n\t\tint T = sc.nextInt();\n\t\t\n\t\t// 結果の出力\n\t\tif (N % X == 0) {\n\t\t\tSystem.out.println((N / X ) * T);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(((N / X) + 1) * T);\n\t\t}\n\t\t\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 入力値の取得\n\t\tint N = sc.nextInt();\n\t\tint X = sc.nextInt();\n\t\tint T = sc.nextInt();\n\t\t\n\t\t// 結果の出力\n\t\tif (N % X == 0) {\n\t\t\tSystem.out.println((N / X ) * T);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(((N / X) + 1) * T);\n\t\t}\n\t\t\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int X = sc.nextInt();",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int T = sc.nextInt();",
"T",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (N % X == 0) {\n\t\t\tSystem.out.println((N / X ) * T);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(((N / X) + 1) * T);\n\t\t}",
"N % X == 0",
"N % X",
"N",
"X",
"0",
"{\n\t\t\tSystem.out.println((N / X ) * T);\n\t\t}",
"System.out.println((N / X ) * T)",
"System.out.println",
"System.out",
"System",
"System.out",
"(N / X ) * T",
"(N / X )",
"N",
"X",
"T",
"{\n\t\t\tSystem.out.println(((N / X) + 1) * T);\n\t\t}",
"System.out.println(((N / X) + 1) * T)",
"System.out.println",
"System.out",
"System",
"System.out",
"((N / X) + 1) * T",
"((N / X) + 1)",
"(N / X)",
"N",
"X",
"1",
"T",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 入力値の取得\n\t\tint N = sc.nextInt();\n\t\tint X = sc.nextInt();\n\t\tint T = sc.nextInt();\n\t\t\n\t\t// 結果の出力\n\t\tif (N % X == 0) {\n\t\t\tSystem.out.println((N / X ) * T);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(((N / X) + 1) * T);\n\t\t}\n\t\t\n\t\tsc.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 入力値の取得\n\t\tint N = sc.nextInt();\n\t\tint X = sc.nextInt();\n\t\tint T = sc.nextInt();\n\t\t\n\t\t// 結果の出力\n\t\tif (N % X == 0) {\n\t\t\tSystem.out.println((N / X ) * T);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(((N / X) + 1) * T);\n\t\t}\n\t\t\n\t\tsc.close();\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// 入力値の取得
int N = sc.nextInt();
int X = sc.nextInt();
int T = sc.nextInt();
// 結果の出力
if (N % X == 0) {
System.out.println((N / X ) * T);
}
else {
System.out.println(((N / X) + 1) * T);
}
sc.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,
4,
18,
13,
41,
13,
17,
41,
13,
17,
42,
2,
13,
13,
30,
0,
13,
2,
13,
13,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
8,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
6,
54
],
[
54,
55
]
]
| [
"import java.util.*;\nclass Main{\n public static void main(String args[]){\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int x=sc.nextInt();\n int t=sc.nextInt();\n int u=0,t1=0;\n while(u<n){\n t1=t1+t;\n u=u+x;\n }\n System.out.println(t1);\n }}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n public static void main(String args[]){\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int x=sc.nextInt();\n int t=sc.nextInt();\n int u=0,t1=0;\n while(u<n){\n t1=t1+t;\n u=u+x;\n }\n System.out.println(t1);\n }}",
"Main",
"public static void main(String args[]){\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int x=sc.nextInt();\n int t=sc.nextInt();\n int u=0,t1=0;\n while(u<n){\n t1=t1+t;\n u=u+x;\n }\n System.out.println(t1);\n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int x=sc.nextInt();\n int t=sc.nextInt();\n int u=0,t1=0;\n while(u<n){\n t1=t1+t;\n u=u+x;\n }\n System.out.println(t1);\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x=sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t=sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int u=0",
"u",
"0",
"t1=0;",
"t1",
"0",
"while(u<n){\n t1=t1+t;\n u=u+x;\n }",
"u<n",
"u",
"n",
"{\n t1=t1+t;\n u=u+x;\n }",
"t1=t1+t",
"t1",
"t1+t",
"t1",
"t",
"u=u+x",
"u",
"u+x",
"u",
"x",
"System.out.println(t1)",
"System.out.println",
"System.out",
"System",
"System.out",
"t1",
"String args[]",
"args"
]
| import java.util.*;
class Main{
public static void main(String args[]){
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int x=sc.nextInt();
int t=sc.nextInt();
int u=0,t1=0;
while(u<n){
t1=t1+t;
u=u+x;
}
System.out.println(t1);
}} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
2,
13,
13,
4,
18,
13,
2,
13,
13,
17,
4,
18,
18,
13,
13,
2,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
51,
5
],
[
51,
6
],
[
6,
7
],
[
6,
8
],
[
51,
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
],
[
24,
25
],
[
25,
26
],
[
11,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
36,
38
],
[
33,
39
],
[
11,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
9,
48
],
[
48,
49
],
[
0,
50
],
[
50,
51
],
[
50,
52
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) {\n int n = sc.nextInt(), x = sc.nextInt(), t = sc.nextInt();\n int ans = n/x + Math.min(n%x , 1);\n System.out.println(ans*t);\n } \n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) {\n int n = sc.nextInt(), x = sc.nextInt(), t = sc.nextInt();\n int ans = n/x + Math.min(n%x , 1);\n System.out.println(ans*t);\n } \n}",
"Main",
"static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"public static void main(String[] args) {\n int n = sc.nextInt(), x = sc.nextInt(), t = sc.nextInt();\n int ans = n/x + Math.min(n%x , 1);\n System.out.println(ans*t);\n }",
"main",
"{\n int n = sc.nextInt(), x = sc.nextInt(), t = sc.nextInt();\n int ans = n/x + Math.min(n%x , 1);\n System.out.println(ans*t);\n }",
"int n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"x = sc.nextInt()",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"t = sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ans = n/x + Math.min(n%x , 1);",
"ans",
"n/x + Math.min(n%x , 1)",
"n/x",
"n",
"x",
"Math.min(n%x , 1)",
"Math.min",
"Math",
"n%x",
"n",
"x",
"1",
"System.out.println(ans*t)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans*t",
"ans",
"t",
"String[] args",
"args",
"public class Main {\n static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) {\n int n = sc.nextInt(), x = sc.nextInt(), t = sc.nextInt();\n int ans = n/x + Math.min(n%x , 1);\n System.out.println(ans*t);\n } \n}",
"public class Main {\n static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) {\n int n = sc.nextInt(), x = sc.nextInt(), t = sc.nextInt();\n int ans = n/x + Math.min(n%x , 1);\n System.out.println(ans*t);\n } \n}",
"Main"
]
| import java.util.Scanner;
public class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
int n = sc.nextInt(), x = sc.nextInt(), t = sc.nextInt();
int ans = n/x + Math.min(n%x , 1);
System.out.println(ans*t);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
14,
2,
2,
13,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
2,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
28,
13,
13,
30,
4,
18,
13,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
28,
13,
13,
30,
4,
18,
13,
13,
4,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
13,
23,
13,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
42,
40,
4,
18,
13,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
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
],
[
229,
17
],
[
229,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
20,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
20,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
20,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
41,
43
],
[
20,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
44,
50
],
[
50,
51
],
[
51,
52
],
[
20,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
18,
61
],
[
61,
62
],
[
229,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
69,
71
],
[
69,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
65,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
65,
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
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
63,
103
],
[
103,
104
],
[
229,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
111,
112
],
[
111,
113
],
[
111,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
115,
118
],
[
107,
119
],
[
119,
120
],
[
120,
121
],
[
119,
122
],
[
119,
123
],
[
123,
124
],
[
124,
125
],
[
107,
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
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
144,
145
],
[
145,
146
],
[
144,
147
],
[
105,
148
],
[
148,
149
],
[
229,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
152,
154
],
[
150,
155
],
[
155,
156
],
[
155,
157
],
[
150,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
161,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
166,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
160,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
150,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
185,
188
],
[
188,
189
],
[
150,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
192,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
197,
202
],
[
202,
203
],
[
202,
204
],
[
197,
205
],
[
205,
206
],
[
206,
207
],
[
197,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
209,
213
],
[
213,
214
],
[
192,
215
],
[
215,
216
],
[
190,
217
],
[
217,
218
],
[
150,
219
],
[
219,
220
],
[
219,
221
],
[
221,
222
],
[
222,
223
],
[
223,
224
],
[
224,
225
],
[
223,
226
],
[
226,
227
],
[
0,
228
],
[
228,
229
],
[
228,
230
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.LineNumberReader;\nimport java.util.*;\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt(),x=sc.nextInt(),t=sc.nextInt();\n// System.out.println((n+x-1)/x*t);\n int ans=n/x;\n if (n%x!=0){\n ans++;\n }\n System.out.println(ans*t);\n\n\n\n }\n\n\n\n\n static void sort(int[] a) {\n ArrayList<Integer> l=new ArrayList<>();\n for (int i:a) l.add(i);\n Collections.sort(l);\n for (int i=0; i<a.length; i++) a[i]=l.get(i);\n }\n static void sortReverse(long[] a) {\n ArrayList<Long> l=new ArrayList<>();\n for (long i:a) l.add(i);\n// Collections.sort.(l);\n Collections.sort(l,Collections.reverseOrder());\n for (int i=0; i<a.length; i++) a[i]=l.get(i);\n }\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.LineNumberReader;",
"LineNumberReader",
"java.io",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt(),x=sc.nextInt(),t=sc.nextInt();\n// System.out.println((n+x-1)/x*t);\n int ans=n/x;\n if (n%x!=0){\n ans++;\n }\n System.out.println(ans*t);\n\n\n\n }\n\n\n\n\n static void sort(int[] a) {\n ArrayList<Integer> l=new ArrayList<>();\n for (int i:a) l.add(i);\n Collections.sort(l);\n for (int i=0; i<a.length; i++) a[i]=l.get(i);\n }\n static void sortReverse(long[] a) {\n ArrayList<Long> l=new ArrayList<>();\n for (long i:a) l.add(i);\n// Collections.sort.(l);\n Collections.sort(l,Collections.reverseOrder());\n for (int i=0; i<a.length; i++) a[i]=l.get(i);\n }\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt(),x=sc.nextInt(),t=sc.nextInt();\n// System.out.println((n+x-1)/x*t);\n int ans=n/x;\n if (n%x!=0){\n ans++;\n }\n System.out.println(ans*t);\n\n\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt(),x=sc.nextInt(),t=sc.nextInt();\n// System.out.println((n+x-1)/x*t);\n int ans=n/x;\n if (n%x!=0){\n ans++;\n }\n System.out.println(ans*t);\n\n\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"x=sc.nextInt()",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"t=sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ans=n/x;",
"ans",
"n/x",
"n",
"x",
"if (n%x!=0){\n ans++;\n }",
"n%x!=0",
"n%x",
"n",
"x",
"0",
"{\n ans++;\n }",
"ans++",
"ans",
"System.out.println(ans*t)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans*t",
"ans",
"t",
"String[] args",
"args",
"static void sort(int[] a) {\n ArrayList<Integer> l=new ArrayList<>();\n for (int i:a) l.add(i);\n Collections.sort(l);\n for (int i=0; i<a.length; i++) a[i]=l.get(i);\n }",
"sort",
"{\n ArrayList<Integer> l=new ArrayList<>();\n for (int i:a) l.add(i);\n Collections.sort(l);\n for (int i=0; i<a.length; i++) a[i]=l.get(i);\n }",
"ArrayList<Integer> l=new ArrayList<>();",
"l",
"new ArrayList<>()",
"for (int i:a) l.add(i);",
"int i",
"a",
"l.add(i);",
"l.add(i)",
"l.add",
"l",
"i",
"Collections.sort(l)",
"Collections.sort",
"Collections",
"l",
"for (int i=0; i<a.length; i++) a[i]=l.get(i);",
"int i=0;",
"int i=0;",
"i",
"0",
"i<a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"a[i]=l.get(i);",
"a[i]=l.get(i)",
"a[i]",
"a",
"i",
"l.get(i)",
"l.get",
"l",
"i",
"int[] a",
"a",
"static void sortReverse(long[] a) {\n ArrayList<Long> l=new ArrayList<>();\n for (long i:a) l.add(i);\n// Collections.sort.(l);\n Collections.sort(l,Collections.reverseOrder());\n for (int i=0; i<a.length; i++) a[i]=l.get(i);\n }",
"sortReverse",
"{\n ArrayList<Long> l=new ArrayList<>();\n for (long i:a) l.add(i);\n// Collections.sort.(l);\n Collections.sort(l,Collections.reverseOrder());\n for (int i=0; i<a.length; i++) a[i]=l.get(i);\n }",
"ArrayList<Long> l=new ArrayList<>();",
"l",
"new ArrayList<>()",
"for (long i:a) l.add(i);",
"long i",
"a",
"l.add(i);",
"l.add(i)",
"l.add",
"l",
"i",
"Collections.sort(l,Collections.reverseOrder())",
"Collections.sort",
"Collections",
"l",
"Collections.reverseOrder()",
"Collections.reverseOrder",
"Collections",
"for (int i=0; i<a.length; i++) a[i]=l.get(i);",
"int i=0;",
"int i=0;",
"i",
"0",
"i<a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"a[i]=l.get(i);",
"a[i]=l.get(i)",
"a[i]",
"a",
"i",
"l.get(i)",
"l.get",
"l",
"i",
"long[] a",
"a",
"static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }",
"FastScanner",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st=new StringTokenizer(\"\");",
"st",
"new StringTokenizer(\"\")",
"String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }",
"next",
"{\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }",
"while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st=new StringTokenizer(br.readLine());\n }",
"st=new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }",
"readArray",
"{\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }",
"int[] a=new int[n];",
"a",
"new int[n]",
"n",
"for (int i=0; i<n; i++) a[i]=nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"a[i]=nextInt();",
"a[i]=nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt(),x=sc.nextInt(),t=sc.nextInt();\n// System.out.println((n+x-1)/x*t);\n int ans=n/x;\n if (n%x!=0){\n ans++;\n }\n System.out.println(ans*t);\n\n\n\n }\n\n\n\n\n static void sort(int[] a) {\n ArrayList<Integer> l=new ArrayList<>();\n for (int i:a) l.add(i);\n Collections.sort(l);\n for (int i=0; i<a.length; i++) a[i]=l.get(i);\n }\n static void sortReverse(long[] a) {\n ArrayList<Long> l=new ArrayList<>();\n for (long i:a) l.add(i);\n// Collections.sort.(l);\n Collections.sort(l,Collections.reverseOrder());\n for (int i=0; i<a.length; i++) a[i]=l.get(i);\n }\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt(),x=sc.nextInt(),t=sc.nextInt();\n// System.out.println((n+x-1)/x*t);\n int ans=n/x;\n if (n%x!=0){\n ans++;\n }\n System.out.println(ans*t);\n\n\n\n }\n\n\n\n\n static void sort(int[] a) {\n ArrayList<Integer> l=new ArrayList<>();\n for (int i:a) l.add(i);\n Collections.sort(l);\n for (int i=0; i<a.length; i++) a[i]=l.get(i);\n }\n static void sortReverse(long[] a) {\n ArrayList<Long> l=new ArrayList<>();\n for (long i:a) l.add(i);\n// Collections.sort.(l);\n Collections.sort(l,Collections.reverseOrder());\n for (int i=0; i<a.length; i++) a[i]=l.get(i);\n }\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.LineNumberReader;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n=sc.nextInt(),x=sc.nextInt(),t=sc.nextInt();
// System.out.println((n+x-1)/x*t);
int ans=n/x;
if (n%x!=0){
ans++;
}
System.out.println(ans*t);
}
static void sort(int[] a) {
ArrayList<Integer> l=new ArrayList<>();
for (int i:a) l.add(i);
Collections.sort(l);
for (int i=0; i<a.length; i++) a[i]=l.get(i);
}
static void sortReverse(long[] a) {
ArrayList<Long> l=new ArrayList<>();
for (long i:a) l.add(i);
// Collections.sort.(l);
Collections.sort(l,Collections.reverseOrder());
for (int i=0; i<a.length; i++) a[i]=l.get(i);
}
static class FastScanner {
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st=new StringTokenizer("");
String next() {
while (!st.hasMoreTokens())
try {
st=new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
int[] readArray(int n) {
int[] a=new int[n];
for (int i=0; i<n; i++) a[i]=nextInt();
return a;
}
long nextLong() {
return Long.parseLong(next());
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
2,
2,
2,
2,
13,
13,
17,
13,
13,
12,
13,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
13,
4,
18,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
42,
40,
4,
18,
13,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
194,
17
],
[
194,
18
],
[
18,
19
],
[
18,
20
],
[
194,
21
],
[
21,
22
],
[
21,
23
],
[
194,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
26,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
26,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
46,
52
],
[
45,
53
],
[
194,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
60,
71
],
[
72,
72
],
[
72,
73
],
[
73,
74
],
[
56,
75
],
[
75,
76
],
[
76,
77
],
[
54,
78
],
[
78,
79
],
[
194,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
82,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
80,
98
],
[
98,
99
],
[
194,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
100,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
111,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
116,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
110,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
100,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
135,
138
],
[
138,
139
],
[
100,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
142,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
147,
152
],
[
152,
153
],
[
152,
154
],
[
147,
155
],
[
155,
156
],
[
156,
157
],
[
147,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
159,
163
],
[
163,
164
],
[
142,
165
],
[
165,
166
],
[
140,
167
],
[
167,
168
],
[
100,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
173,
176
],
[
176,
177
],
[
100,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
182,
185
],
[
185,
186
],
[
100,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
0,
193
],
[
193,
194
],
[
193,
195
]
]
| [
"import java.io.*;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.BitSet;\nimport java.util.StringTokenizer;\n\npublic class Main {\n private static void solve() throws Exception {\n int n = fs.nextInt(), x = fs.nextInt(), t = fs.nextInt();\n out.println(((n+x-1)/x)*t);\n }\n\n private static FastScanner fs = new FastScanner();\n private static PrintWriter out = new PrintWriter(System.out);\n\n public static void main(String[] args) throws Exception {\n int T = 1;\n for (int t = 0; t < T; t++) {\n solve();\n }\n out.close();\n }\n\n static void debug(Object... O) {\n System.err.print(\"DEBUG \");\n System.err.println(Arrays.deepToString(O));\n }\n\n static class FastScanner {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextString() {\n return next();\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.BitSet;",
"BitSet",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n private static void solve() throws Exception {\n int n = fs.nextInt(), x = fs.nextInt(), t = fs.nextInt();\n out.println(((n+x-1)/x)*t);\n }\n\n private static FastScanner fs = new FastScanner();\n private static PrintWriter out = new PrintWriter(System.out);\n\n public static void main(String[] args) throws Exception {\n int T = 1;\n for (int t = 0; t < T; t++) {\n solve();\n }\n out.close();\n }\n\n static void debug(Object... O) {\n System.err.print(\"DEBUG \");\n System.err.println(Arrays.deepToString(O));\n }\n\n static class FastScanner {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextString() {\n return next();\n }\n }\n}",
"Main",
"private static FastScanner fs = new FastScanner();",
"fs",
"new FastScanner()",
"private static PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"private static void solve() throws Exception {\n int n = fs.nextInt(), x = fs.nextInt(), t = fs.nextInt();\n out.println(((n+x-1)/x)*t);\n }",
"solve",
"{\n int n = fs.nextInt(), x = fs.nextInt(), t = fs.nextInt();\n out.println(((n+x-1)/x)*t);\n }",
"int n = fs.nextInt()",
"n",
"fs.nextInt()",
"fs.nextInt",
"fs",
"x = fs.nextInt()",
"x",
"fs.nextInt()",
"fs.nextInt",
"fs",
"t = fs.nextInt();",
"t",
"fs.nextInt()",
"fs.nextInt",
"fs",
"out.println(((n+x-1)/x)*t)",
"out.println",
"out",
"((n+x-1)/x)*t",
"((n+x-1)/x)",
"(n+x-1)",
"n+x",
"n",
"x",
"1",
"x",
"t",
"public static void main(String[] args) throws Exception {\n int T = 1;\n for (int t = 0; t < T; t++) {\n solve();\n }\n out.close();\n }",
"main",
"{\n int T = 1;\n for (int t = 0; t < T; t++) {\n solve();\n }\n out.close();\n }",
"int T = 1;",
"T",
"1",
"for (int t = 0; t < T; t++) {\n solve();\n }",
"int t = 0;",
"int t = 0;",
"t",
"0",
"t < T",
"t",
"T",
"t++",
"t++",
"t",
"{\n solve();\n }",
"{\n solve();\n }",
"solve()",
"solve",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static void debug(Object... O) {\n System.err.print(\"DEBUG \");\n System.err.println(Arrays.deepToString(O));\n }",
"debug",
"{\n System.err.print(\"DEBUG \");\n System.err.println(Arrays.deepToString(O));\n }",
"System.err.print(\"DEBUG \")",
"System.err.print",
"System.err",
"System",
"System.err",
"\"DEBUG \"",
"System.err.println(Arrays.deepToString(O))",
"System.err.println",
"System.err",
"System",
"System.err",
"Arrays.deepToString(O)",
"Arrays.deepToString",
"Arrays",
"O",
"Object... O",
"O",
"static class FastScanner {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextString() {\n return next();\n }\n }",
"FastScanner",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st = new StringTokenizer(\"\");",
"st",
"new StringTokenizer(\"\")",
"String next() {\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }",
"next",
"{\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }",
"while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }",
"readArray",
"{\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) a[i] = nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = nextInt();",
"a[i] = nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextString() {\n return next();\n }",
"nextString",
"{\n return next();\n }",
"return next();",
"next()",
"next",
"public class Main {\n private static void solve() throws Exception {\n int n = fs.nextInt(), x = fs.nextInt(), t = fs.nextInt();\n out.println(((n+x-1)/x)*t);\n }\n\n private static FastScanner fs = new FastScanner();\n private static PrintWriter out = new PrintWriter(System.out);\n\n public static void main(String[] args) throws Exception {\n int T = 1;\n for (int t = 0; t < T; t++) {\n solve();\n }\n out.close();\n }\n\n static void debug(Object... O) {\n System.err.print(\"DEBUG \");\n System.err.println(Arrays.deepToString(O));\n }\n\n static class FastScanner {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextString() {\n return next();\n }\n }\n}",
"public class Main {\n private static void solve() throws Exception {\n int n = fs.nextInt(), x = fs.nextInt(), t = fs.nextInt();\n out.println(((n+x-1)/x)*t);\n }\n\n private static FastScanner fs = new FastScanner();\n private static PrintWriter out = new PrintWriter(System.out);\n\n public static void main(String[] args) throws Exception {\n int T = 1;\n for (int t = 0; t < T; t++) {\n solve();\n }\n out.close();\n }\n\n static void debug(Object... O) {\n System.err.print(\"DEBUG \");\n System.err.println(Arrays.deepToString(O));\n }\n\n static class FastScanner {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextString() {\n return next();\n }\n }\n}",
"Main"
]
| import java.io.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.BitSet;
import java.util.StringTokenizer;
public class Main {
private static void solve() throws Exception {
int n = fs.nextInt(), x = fs.nextInt(), t = fs.nextInt();
out.println(((n+x-1)/x)*t);
}
private static FastScanner fs = new FastScanner();
private static PrintWriter out = new PrintWriter(System.out);
public static void main(String[] args) throws Exception {
int T = 1;
for (int t = 0; t < T; t++) {
solve();
}
out.close();
}
static void debug(Object... O) {
System.err.print("DEBUG ");
System.err.println(Arrays.deepToString(O));
}
static class FastScanner {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer("");
String next() {
while (!st.hasMoreTokens())
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
int[] readArray(int n) {
int[] a = new int[n];
for (int i = 0; i < n; i++) a[i] = nextInt();
return a;
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextString() {
return next();
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
13,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
2,
2,
2,
13,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
51,
5
],
[
51,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
27,
33
],
[
33,
34
],
[
34,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
41,
47
],
[
6,
48
],
[
48,
49
],
[
0,
50
],
[
50,
51
],
[
50,
52
]
]
| [
"import java.util.Scanner;\n\n\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\n\t\tint n = sc.nextInt();\n\t\tint x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\t\t\n\t\tif(n%x==0) {\n\t\t\tn--;\n\t\t}\n\t\tSystem.out.println(((n/x)+1)*t);\n\t}\n\t\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\n\t\tint n = sc.nextInt();\n\t\tint x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\t\t\n\t\tif(n%x==0) {\n\t\t\tn--;\n\t\t}\n\t\tSystem.out.println(((n/x)+1)*t);\n\t}\n\t\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\n\t\tint n = sc.nextInt();\n\t\tint x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\t\t\n\t\tif(n%x==0) {\n\t\t\tn--;\n\t\t}\n\t\tSystem.out.println(((n/x)+1)*t);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\n\t\tint n = sc.nextInt();\n\t\tint x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\t\t\n\t\tif(n%x==0) {\n\t\t\tn--;\n\t\t}\n\t\tSystem.out.println(((n/x)+1)*t);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t = sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(n%x==0) {\n\t\t\tn--;\n\t\t}",
"n%x==0",
"n%x",
"n",
"x",
"0",
"{\n\t\t\tn--;\n\t\t}",
"n--",
"n",
"System.out.println(((n/x)+1)*t)",
"System.out.println",
"System.out",
"System",
"System.out",
"((n/x)+1)*t",
"((n/x)+1)",
"(n/x)",
"n",
"x",
"1",
"t",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\n\t\tint n = sc.nextInt();\n\t\tint x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\t\t\n\t\tif(n%x==0) {\n\t\t\tn--;\n\t\t}\n\t\tSystem.out.println(((n/x)+1)*t);\n\t}\n\t\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\n\t\tint n = sc.nextInt();\n\t\tint x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\t\t\n\t\tif(n%x==0) {\n\t\t\tn--;\n\t\t}\n\t\tSystem.out.println(((n/x)+1)*t);\n\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 n = sc.nextInt();
int x = sc.nextInt();
int t = sc.nextInt();
if(n%x==0) {
n--;
}
System.out.println(((n/x)+1)*t);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
4,
18,
13,
2,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
46,
5
],
[
46,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
36,
38
],
[
32,
39
],
[
8,
40
],
[
40,
41
],
[
41,
42
],
[
6,
43
],
[
43,
44
],
[
0,
45
],
[
45,
46
],
[
45,
47
]
]
| [
"import java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner reader = new Scanner(System.in);\n\t\tint N = reader.nextInt(), X = reader.nextInt(), T = reader.nextInt();\n\t\tSystem.out.println((int) Math.ceil(((double) N) / X) * T);\n\t\treader.close();\n\t}\n\t\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner reader = new Scanner(System.in);\n\t\tint N = reader.nextInt(), X = reader.nextInt(), T = reader.nextInt();\n\t\tSystem.out.println((int) Math.ceil(((double) N) / X) * T);\n\t\treader.close();\n\t}\n\t\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner reader = new Scanner(System.in);\n\t\tint N = reader.nextInt(), X = reader.nextInt(), T = reader.nextInt();\n\t\tSystem.out.println((int) Math.ceil(((double) N) / X) * T);\n\t\treader.close();\n\t}",
"main",
"{\n\t\tScanner reader = new Scanner(System.in);\n\t\tint N = reader.nextInt(), X = reader.nextInt(), T = reader.nextInt();\n\t\tSystem.out.println((int) Math.ceil(((double) N) / X) * T);\n\t\treader.close();\n\t}",
"Scanner reader = new Scanner(System.in);",
"reader",
"new Scanner(System.in)",
"int N = reader.nextInt()",
"N",
"reader.nextInt()",
"reader.nextInt",
"reader",
"X = reader.nextInt()",
"X",
"reader.nextInt()",
"reader.nextInt",
"reader",
"T = reader.nextInt();",
"T",
"reader.nextInt()",
"reader.nextInt",
"reader",
"System.out.println((int) Math.ceil(((double) N) / X) * T)",
"System.out.println",
"System.out",
"System",
"System.out",
"(int) Math.ceil(((double) N) / X) * T",
"(int) Math.ceil(((double) N) / X)",
"Math.ceil",
"Math",
"((double) N) / X",
"((double) N)",
"X",
"T",
"reader.close()",
"reader.close",
"reader",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner reader = new Scanner(System.in);\n\t\tint N = reader.nextInt(), X = reader.nextInt(), T = reader.nextInt();\n\t\tSystem.out.println((int) Math.ceil(((double) N) / X) * T);\n\t\treader.close();\n\t}\n\t\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner reader = new Scanner(System.in);\n\t\tint N = reader.nextInt(), X = reader.nextInt(), T = reader.nextInt();\n\t\tSystem.out.println((int) Math.ceil(((double) N) / X) * T);\n\t\treader.close();\n\t}\n\t\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
int N = reader.nextInt(), X = reader.nextInt(), T = reader.nextInt();
System.out.println((int) Math.ceil(((double) N) / X) * T);
reader.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
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,
4,
18,
13,
18,
13,
17,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
13,
17,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
67,
8
],
[
67,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
17,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
28,
30
],
[
11,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
36,
38
],
[
11,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
44,
45
],
[
44,
46
],
[
11,
47
],
[
47,
48
],
[
48,
49
],
[
11,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
56,
62
],
[
55,
63
],
[
9,
64
],
[
64,
65
],
[
0,
66
],
[
66,
67
],
[
66,
68
]
]
| [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] input = br.readLine().split(\" \");\n int n = Integer.parseInt(input[0]);\n int x = Integer.parseInt(input[1]);\n int t = Integer.parseInt(input[2]);\n br.close();\n System.out.println((x + n - 1) / x * t);\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] input = br.readLine().split(\" \");\n int n = Integer.parseInt(input[0]);\n int x = Integer.parseInt(input[1]);\n int t = Integer.parseInt(input[2]);\n br.close();\n System.out.println((x + n - 1) / x * t);\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] input = br.readLine().split(\" \");\n int n = Integer.parseInt(input[0]);\n int x = Integer.parseInt(input[1]);\n int t = Integer.parseInt(input[2]);\n br.close();\n System.out.println((x + n - 1) / x * t);\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] input = br.readLine().split(\" \");\n int n = Integer.parseInt(input[0]);\n int x = Integer.parseInt(input[1]);\n int t = Integer.parseInt(input[2]);\n br.close();\n System.out.println((x + n - 1) / x * t);\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] input = br.readLine().split(\" \");",
"input",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int n = Integer.parseInt(input[0]);",
"n",
"Integer.parseInt(input[0])",
"Integer.parseInt",
"Integer",
"input[0]",
"input",
"0",
"int x = Integer.parseInt(input[1]);",
"x",
"Integer.parseInt(input[1])",
"Integer.parseInt",
"Integer",
"input[1]",
"input",
"1",
"int t = Integer.parseInt(input[2]);",
"t",
"Integer.parseInt(input[2])",
"Integer.parseInt",
"Integer",
"input[2]",
"input",
"2",
"br.close()",
"br.close",
"br",
"System.out.println((x + n - 1) / x * t)",
"System.out.println",
"System.out",
"System",
"System.out",
"(x + n - 1) / x * t",
"(x + n - 1) / x",
"(x + n - 1)",
"x + n",
"x",
"n",
"1",
"x",
"t",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] input = br.readLine().split(\" \");\n int n = Integer.parseInt(input[0]);\n int x = Integer.parseInt(input[1]);\n int t = Integer.parseInt(input[2]);\n br.close();\n System.out.println((x + n - 1) / x * t);\n }\n}",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] input = br.readLine().split(\" \");\n int n = Integer.parseInt(input[0]);\n int x = Integer.parseInt(input[1]);\n int t = Integer.parseInt(input[2]);\n br.close();\n System.out.println((x + n - 1) / x * t);\n }\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] input = br.readLine().split(" ");
int n = Integer.parseInt(input[0]);
int x = Integer.parseInt(input[1]);
int t = Integer.parseInt(input[2]);
br.close();
System.out.println((x + n - 1) / x * t);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
13,
17,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
14,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
14,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
29,
4,
18,
13,
29,
4,
18,
13,
17,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
153,
17
],
[
153,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
20,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
20,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
20,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
45,
51
],
[
44,
52
],
[
18,
53
],
[
53,
54
],
[
153,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
55,
59
],
[
59,
60
],
[
55,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
61,
67
],
[
67,
68
],
[
55,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
72,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
82,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
71,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
55,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
103,
104
],
[
55,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
112,
113
],
[
55,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
121,
122
],
[
55,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
126,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
136,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
125,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
148,
151
],
[
0,
152
],
[
152,
153
],
[
152,
154
]
]
| [
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n public static void main(final String[] args) {\n final FastScanner scanner = new FastScanner(System.in);\n final int n = scanner.nextInt();\n final int x = scanner.nextInt();\n final int t = scanner.nextInt();\n\n System.out.println((n + x - 1) / x * t);\n }\n\n private static class FastScanner {\n private final BufferedReader reader;\n private StringTokenizer tokenizer;\n\n FastScanner(final InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }\n\n String next() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\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.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n public static void main(final String[] args) {\n final FastScanner scanner = new FastScanner(System.in);\n final int n = scanner.nextInt();\n final int x = scanner.nextInt();\n final int t = scanner.nextInt();\n\n System.out.println((n + x - 1) / x * t);\n }\n\n private static class FastScanner {\n private final BufferedReader reader;\n private StringTokenizer tokenizer;\n\n FastScanner(final InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }\n\n String next() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }\n }\n}",
"Main",
"public static void main(final String[] args) {\n final FastScanner scanner = new FastScanner(System.in);\n final int n = scanner.nextInt();\n final int x = scanner.nextInt();\n final int t = scanner.nextInt();\n\n System.out.println((n + x - 1) / x * t);\n }",
"main",
"{\n final FastScanner scanner = new FastScanner(System.in);\n final int n = scanner.nextInt();\n final int x = scanner.nextInt();\n final int t = scanner.nextInt();\n\n System.out.println((n + x - 1) / x * t);\n }",
"final FastScanner scanner = new FastScanner(System.in);",
"scanner",
"new FastScanner(System.in)",
"final int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"final int x = scanner.nextInt();",
"x",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"final int t = scanner.nextInt();",
"t",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"System.out.println((n + x - 1) / x * t)",
"System.out.println",
"System.out",
"System",
"System.out",
"(n + x - 1) / x * t",
"(n + x - 1) / x",
"(n + x - 1)",
"n + x",
"n",
"x",
"1",
"x",
"t",
"final String[] args",
"args",
"private static class FastScanner {\n private final BufferedReader reader;\n private StringTokenizer tokenizer;\n\n FastScanner(final InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }\n\n String next() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }\n }",
"FastScanner",
"private final BufferedReader reader;",
"reader",
"private StringTokenizer tokenizer;",
"tokenizer",
"FastScanner(final InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }",
"FastScanner",
"{\n reader = new BufferedReader(new InputStreamReader(in));\n }",
"reader = new BufferedReader(new InputStreamReader(in))",
"reader",
"new BufferedReader(new InputStreamReader(in))",
"final InputStream in",
"in",
"String next() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"next",
"{\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }",
"try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }",
"catch (final IOException e) {\n throw new RuntimeException(e);\n }",
"final IOException e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n tokenizer = new StringTokenizer(reader.readLine());\n }",
"tokenizer = new StringTokenizer(reader.readLine())",
"tokenizer",
"new StringTokenizer(reader.readLine())",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }",
"nextLine",
"{\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }",
"if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n try {\n return reader.readLine();\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }",
"try {\n return reader.readLine();\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }",
"catch (final IOException e) {\n throw new RuntimeException(e);\n }",
"final IOException e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n return reader.readLine();\n }",
"return reader.readLine();",
"reader.readLine()",
"reader.readLine",
"reader",
"return tokenizer.nextToken(\"\\n\");",
"tokenizer.nextToken(\"\\n\")",
"tokenizer.nextToken",
"tokenizer",
"\"\\n\"",
"public class Main {\n public static void main(final String[] args) {\n final FastScanner scanner = new FastScanner(System.in);\n final int n = scanner.nextInt();\n final int x = scanner.nextInt();\n final int t = scanner.nextInt();\n\n System.out.println((n + x - 1) / x * t);\n }\n\n private static class FastScanner {\n private final BufferedReader reader;\n private StringTokenizer tokenizer;\n\n FastScanner(final InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }\n\n String next() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }\n }\n}",
"public class Main {\n public static void main(final String[] args) {\n final FastScanner scanner = new FastScanner(System.in);\n final int n = scanner.nextInt();\n final int x = scanner.nextInt();\n final int t = scanner.nextInt();\n\n System.out.println((n + x - 1) / x * t);\n }\n\n private static class FastScanner {\n private final BufferedReader reader;\n private StringTokenizer tokenizer;\n\n FastScanner(final InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }\n\n String next() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n return reader.readLine();\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n return tokenizer.nextToken(\"\\n\");\n }\n }\n}",
"Main"
]
|
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
public static void main(final String[] args) {
final FastScanner scanner = new FastScanner(System.in);
final int n = scanner.nextInt();
final int x = scanner.nextInt();
final int t = scanner.nextInt();
System.out.println((n + x - 1) / x * t);
}
private static class FastScanner {
private final BufferedReader reader;
private StringTokenizer tokenizer;
FastScanner(final InputStream in) {
reader = new BufferedReader(new InputStreamReader(in));
}
String next() {
if (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(reader.readLine());
} catch (final IOException e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine() {
if (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
return reader.readLine();
} catch (final IOException e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken("\n");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
38,
30,
41,
13,
20,
0,
13,
4,
18,
13,
4,
18,
13,
0,
13,
4,
18,
13,
4,
18,
13,
0,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
13,
1,
40,
13,
30,
30,
40,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
87,
5
],
[
87,
6
],
[
6,
7
],
[
87,
8
],
[
8,
9
],
[
87,
10
],
[
10,
11
],
[
87,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
26,
27
],
[
16,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
34,
35
],
[
16,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
41,
42
],
[
42,
43
],
[
14,
44
],
[
44,
45
],
[
44,
46
],
[
14,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
47,
57
],
[
57,
58
],
[
58,
59
],
[
47,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
14,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
64,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
12,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tstatic int N;\n\tstatic int X;\n\tstatic int T;\n\tpublic static void main(String args[]) {\n\t\ttry(Scanner sc = new Scanner(System.in)){\n\t\t\tN = Integer.parseInt(sc.next());\n\t\t\tX = Integer.parseInt(sc.next());\n\t\t\tT = Integer.parseInt(sc.next());\n\t\t}\n\t\tint count=0;\n\t\tfor(int i=0;N>X*i;i++) {\n\t\t\tcount++;\n\t\t}\n\t\tif(count==0) {\n\t\t\tSystem.out.println(1);\n\t\t}else {\t\t\t\n\t\t\tSystem.out.println(count*T);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tstatic int N;\n\tstatic int X;\n\tstatic int T;\n\tpublic static void main(String args[]) {\n\t\ttry(Scanner sc = new Scanner(System.in)){\n\t\t\tN = Integer.parseInt(sc.next());\n\t\t\tX = Integer.parseInt(sc.next());\n\t\t\tT = Integer.parseInt(sc.next());\n\t\t}\n\t\tint count=0;\n\t\tfor(int i=0;N>X*i;i++) {\n\t\t\tcount++;\n\t\t}\n\t\tif(count==0) {\n\t\t\tSystem.out.println(1);\n\t\t}else {\t\t\t\n\t\t\tSystem.out.println(count*T);\n\t\t}\n\t}\n}",
"Main",
"static int N;",
"N",
"static int X;",
"X",
"static int T;",
"T",
"public static void main(String args[]) {\n\t\ttry(Scanner sc = new Scanner(System.in)){\n\t\t\tN = Integer.parseInt(sc.next());\n\t\t\tX = Integer.parseInt(sc.next());\n\t\t\tT = Integer.parseInt(sc.next());\n\t\t}\n\t\tint count=0;\n\t\tfor(int i=0;N>X*i;i++) {\n\t\t\tcount++;\n\t\t}\n\t\tif(count==0) {\n\t\t\tSystem.out.println(1);\n\t\t}else {\t\t\t\n\t\t\tSystem.out.println(count*T);\n\t\t}\n\t}",
"main",
"{\n\t\ttry(Scanner sc = new Scanner(System.in)){\n\t\t\tN = Integer.parseInt(sc.next());\n\t\t\tX = Integer.parseInt(sc.next());\n\t\t\tT = Integer.parseInt(sc.next());\n\t\t}\n\t\tint count=0;\n\t\tfor(int i=0;N>X*i;i++) {\n\t\t\tcount++;\n\t\t}\n\t\tif(count==0) {\n\t\t\tSystem.out.println(1);\n\t\t}else {\t\t\t\n\t\t\tSystem.out.println(count*T);\n\t\t}\n\t}",
"try(Scanner sc = new Scanner(System.in)){\n\t\t\tN = Integer.parseInt(sc.next());\n\t\t\tX = Integer.parseInt(sc.next());\n\t\t\tT = Integer.parseInt(sc.next());\n\t\t}",
"{\n\t\t\tN = Integer.parseInt(sc.next());\n\t\t\tX = Integer.parseInt(sc.next());\n\t\t\tT = Integer.parseInt(sc.next());\n\t\t}",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"N = Integer.parseInt(sc.next())",
"N",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"X = Integer.parseInt(sc.next())",
"X",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"T = Integer.parseInt(sc.next())",
"T",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int count=0;",
"count",
"0",
"for(int i=0;N>X*i;i++) {\n\t\t\tcount++;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"N>X*i",
"N",
"X*i",
"X",
"i",
"i++",
"i++",
"i",
"{\n\t\t\tcount++;\n\t\t}",
"{\n\t\t\tcount++;\n\t\t}",
"count++",
"count",
"if(count==0) {\n\t\t\tSystem.out.println(1);\n\t\t}else {\t\t\t\n\t\t\tSystem.out.println(count*T);\n\t\t}",
"count==0",
"count",
"0",
"{\n\t\t\tSystem.out.println(1);\n\t\t}",
"System.out.println(1)",
"System.out.println",
"System.out",
"System",
"System.out",
"1",
"{\t\t\t\n\t\t\tSystem.out.println(count*T);\n\t\t}",
"System.out.println(count*T)",
"System.out.println",
"System.out",
"System",
"System.out",
"count*T",
"count",
"T",
"String args[]",
"args",
"public class Main {\n\tstatic int N;\n\tstatic int X;\n\tstatic int T;\n\tpublic static void main(String args[]) {\n\t\ttry(Scanner sc = new Scanner(System.in)){\n\t\t\tN = Integer.parseInt(sc.next());\n\t\t\tX = Integer.parseInt(sc.next());\n\t\t\tT = Integer.parseInt(sc.next());\n\t\t}\n\t\tint count=0;\n\t\tfor(int i=0;N>X*i;i++) {\n\t\t\tcount++;\n\t\t}\n\t\tif(count==0) {\n\t\t\tSystem.out.println(1);\n\t\t}else {\t\t\t\n\t\t\tSystem.out.println(count*T);\n\t\t}\n\t}\n}",
"public class Main {\n\tstatic int N;\n\tstatic int X;\n\tstatic int T;\n\tpublic static void main(String args[]) {\n\t\ttry(Scanner sc = new Scanner(System.in)){\n\t\t\tN = Integer.parseInt(sc.next());\n\t\t\tX = Integer.parseInt(sc.next());\n\t\t\tT = Integer.parseInt(sc.next());\n\t\t}\n\t\tint count=0;\n\t\tfor(int i=0;N>X*i;i++) {\n\t\t\tcount++;\n\t\t}\n\t\tif(count==0) {\n\t\t\tSystem.out.println(1);\n\t\t}else {\t\t\t\n\t\t\tSystem.out.println(count*T);\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
static int N;
static int X;
static int T;
public static void main(String args[]) {
try(Scanner sc = new Scanner(System.in)){
N = Integer.parseInt(sc.next());
X = Integer.parseInt(sc.next());
T = Integer.parseInt(sc.next());
}
int count=0;
for(int i=0;N>X*i;i++) {
count++;
}
if(count==0) {
System.out.println(1);
}else {
System.out.println(count*T);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
13,
42,
2,
13,
17,
30,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
59,
11
],
[
59,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
14,
33
],
[
33,
34
],
[
33,
35
],
[
14,
36
],
[
36,
37
],
[
36,
38
],
[
14,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
47,
49
],
[
14,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
12,
56
],
[
56,
57
],
[
0,
58
],
[
58,
59
],
[
58,
60
]
]
| [
"/* package whatever; // don't place package name! */\n\nimport java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\n/* Name of the class has to be \"Main\" only if the class is public. */\npublic class Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\t// your code goes here\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint x = scanner.nextInt();\n\t\tint t = scanner.nextInt();\n\t\t\n\t\tint total = 0;\n\t\tint rem = n;\n\t\twhile(rem > 0){\n\t\t\ttotal += t;\n\t\t\trem -= x;\n\t\t}\n\t\t\n\t\tSystem.out.println(total);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\t// your code goes here\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint x = scanner.nextInt();\n\t\tint t = scanner.nextInt();\n\t\t\n\t\tint total = 0;\n\t\tint rem = n;\n\t\twhile(rem > 0){\n\t\t\ttotal += t;\n\t\t\trem -= x;\n\t\t}\n\t\t\n\t\tSystem.out.println(total);\n\t}\n}",
"Main",
"public static void main (String[] args) throws java.lang.Exception\n\t{\n\t\t// your code goes here\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint x = scanner.nextInt();\n\t\tint t = scanner.nextInt();\n\t\t\n\t\tint total = 0;\n\t\tint rem = n;\n\t\twhile(rem > 0){\n\t\t\ttotal += t;\n\t\t\trem -= x;\n\t\t}\n\t\t\n\t\tSystem.out.println(total);\n\t}",
"main",
"{\n\t\t// your code goes here\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint x = scanner.nextInt();\n\t\tint t = scanner.nextInt();\n\t\t\n\t\tint total = 0;\n\t\tint rem = n;\n\t\twhile(rem > 0){\n\t\t\ttotal += t;\n\t\t\trem -= x;\n\t\t}\n\t\t\n\t\tSystem.out.println(total);\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int x = scanner.nextInt();",
"x",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int t = scanner.nextInt();",
"t",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int total = 0;",
"total",
"0",
"int rem = n;",
"rem",
"n",
"while(rem > 0){\n\t\t\ttotal += t;\n\t\t\trem -= x;\n\t\t}",
"rem > 0",
"rem",
"0",
"{\n\t\t\ttotal += t;\n\t\t\trem -= x;\n\t\t}",
"total += t",
"total",
"t",
"rem -= x",
"rem",
"x",
"System.out.println(total)",
"System.out.println",
"System.out",
"System",
"System.out",
"total",
"String[] args",
"args",
"public class Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\t// your code goes here\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint x = scanner.nextInt();\n\t\tint t = scanner.nextInt();\n\t\t\n\t\tint total = 0;\n\t\tint rem = n;\n\t\twhile(rem > 0){\n\t\t\ttotal += t;\n\t\t\trem -= x;\n\t\t}\n\t\t\n\t\tSystem.out.println(total);\n\t}\n}",
"public class Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\t// your code goes here\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint x = scanner.nextInt();\n\t\tint t = scanner.nextInt();\n\t\t\n\t\tint total = 0;\n\t\tint rem = n;\n\t\twhile(rem > 0){\n\t\t\ttotal += t;\n\t\t\trem -= x;\n\t\t}\n\t\t\n\t\tSystem.out.println(total);\n\t}\n}",
"Main"
]
| /* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
public static void main (String[] args) throws java.lang.Exception
{
// your code goes here
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int x = scanner.nextInt();
int t = scanner.nextInt();
int total = 0;
int rem = n;
while(rem > 0){
total += t;
rem -= x;
}
System.out.println(total);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
13,
13,
4,
18,
18,
13,
13,
2,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
46,
5
],
[
46,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
6,
43
],
[
43,
44
],
[
0,
45
],
[
45,
46
],
[
45,
47
]
]
| [
"import java.util.*;\n \npublic class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tdouble N = sc.nextDouble();\n \tdouble X = sc.nextDouble();\n \tint T = sc.nextInt();\n \tint res = (int)(Math.ceil(N/X));\n \t\n \tSystem.out.println(res*T);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tdouble N = sc.nextDouble();\n \tdouble X = sc.nextDouble();\n \tint T = sc.nextInt();\n \tint res = (int)(Math.ceil(N/X));\n \t\n \tSystem.out.println(res*T);\n }\n}",
"Main",
"public static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tdouble N = sc.nextDouble();\n \tdouble X = sc.nextDouble();\n \tint T = sc.nextInt();\n \tint res = (int)(Math.ceil(N/X));\n \t\n \tSystem.out.println(res*T);\n }",
"main",
"{\n \tScanner sc = new Scanner(System.in);\n \tdouble N = sc.nextDouble();\n \tdouble X = sc.nextDouble();\n \tint T = sc.nextInt();\n \tint res = (int)(Math.ceil(N/X));\n \t\n \tSystem.out.println(res*T);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"double N = sc.nextDouble();",
"N",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"double X = sc.nextDouble();",
"X",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"int T = sc.nextInt();",
"T",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int res = (int)(Math.ceil(N/X));",
"res",
"(int)(Math.ceil(N/X))",
"Math.ceil",
"Math",
"N/X",
"N",
"X",
"System.out.println(res*T)",
"System.out.println",
"System.out",
"System",
"System.out",
"res*T",
"res",
"T",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tdouble N = sc.nextDouble();\n \tdouble X = sc.nextDouble();\n \tint T = sc.nextInt();\n \tint res = (int)(Math.ceil(N/X));\n \t\n \tSystem.out.println(res*T);\n }\n}",
"public class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tdouble N = sc.nextDouble();\n \tdouble X = sc.nextDouble();\n \tint T = sc.nextInt();\n \tint res = (int)(Math.ceil(N/X));\n \t\n \tSystem.out.println(res*T);\n }\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
double N = sc.nextDouble();
double X = sc.nextDouble();
int T = sc.nextInt();
int res = (int)(Math.ceil(N/X));
System.out.println(res*T);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
4,
13,
23,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
13,
17,
13,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
28,
29
],
[
28,
30
],
[
0,
31
],
[
31,
32
],
[
31,
33
],
[
0,
34
],
[
34,
35
],
[
34,
36
],
[
0,
37
],
[
84,
38
],
[
84,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
39,
44
],
[
44,
45
],
[
84,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
50,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
50,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
50,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
75,
81
],
[
74,
82
],
[
0,
83
],
[
83,
84
],
[
83,
85
]
]
| [
"import java.util.ArrayDeque;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Comparator;\nimport java.util.Deque;\nimport java.util.HashMap;\nimport java.util.HashSet;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.Queue;\nimport java.util.Scanner;\nimport java.util.Set;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\texecute20_3();\n\t}\n\t\n\tprivate static void execute20_3() {\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tint n = sc.nextInt();\n\t\t\tint x = sc.nextInt();\n\t\t\tint t = sc.nextInt();\n\t\t\t\tSystem.out.println((n+x-1)/x*t);\n\t\t}\n\t}\n}",
"import java.util.ArrayDeque;",
"ArrayDeque",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Comparator;",
"Comparator",
"java.util",
"import java.util.Deque;",
"Deque",
"java.util",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Map;",
"Map",
"java.util",
"import java.util.Queue;",
"Queue",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Set;",
"Set",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\texecute20_3();\n\t}\n\t\n\tprivate static void execute20_3() {\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tint n = sc.nextInt();\n\t\t\tint x = sc.nextInt();\n\t\t\tint t = sc.nextInt();\n\t\t\t\tSystem.out.println((n+x-1)/x*t);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\texecute20_3();\n\t}",
"main",
"{\n\t\texecute20_3();\n\t}",
"execute20_3()",
"execute20_3",
"String[] args",
"args",
"private static void execute20_3() {\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tint n = sc.nextInt();\n\t\t\tint x = sc.nextInt();\n\t\t\tint t = sc.nextInt();\n\t\t\t\tSystem.out.println((n+x-1)/x*t);\n\t\t}\n\t}",
"execute20_3",
"{\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tint n = sc.nextInt();\n\t\t\tint x = sc.nextInt();\n\t\t\tint t = sc.nextInt();\n\t\t\t\tSystem.out.println((n+x-1)/x*t);\n\t\t}\n\t}",
"try (Scanner sc = new Scanner(System.in)) {\n\t\t\tint n = sc.nextInt();\n\t\t\tint x = sc.nextInt();\n\t\t\tint t = sc.nextInt();\n\t\t\t\tSystem.out.println((n+x-1)/x*t);\n\t\t}",
"{\n\t\t\tint n = sc.nextInt();\n\t\t\tint x = sc.nextInt();\n\t\t\tint t = sc.nextInt();\n\t\t\t\tSystem.out.println((n+x-1)/x*t);\n\t\t}",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t = sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"System.out.println((n+x-1)/x*t)",
"System.out.println",
"System.out",
"System",
"System.out",
"(n+x-1)/x*t",
"(n+x-1)/x",
"(n+x-1)",
"n+x",
"n",
"x",
"1",
"x",
"t",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\texecute20_3();\n\t}\n\t\n\tprivate static void execute20_3() {\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tint n = sc.nextInt();\n\t\t\tint x = sc.nextInt();\n\t\t\tint t = sc.nextInt();\n\t\t\t\tSystem.out.println((n+x-1)/x*t);\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\texecute20_3();\n\t}\n\t\n\tprivate static void execute20_3() {\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tint n = sc.nextInt();\n\t\t\tint x = sc.nextInt();\n\t\t\tint t = sc.nextInt();\n\t\t\t\tSystem.out.println((n+x-1)/x*t);\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Deque;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Queue;
import java.util.Scanner;
import java.util.Set;
public class Main {
public static void main(String[] args) {
execute20_3();
}
private static void execute20_3() {
try (Scanner sc = new Scanner(System.in)) {
int n = sc.nextInt();
int x = sc.nextInt();
int t = sc.nextInt();
System.out.println((n+x-1)/x*t);
}
}
} |
[
7,
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,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
2,
4,
18,
13,
2,
13,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
4,
18,
13,
18,
13,
13,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
4,
18,
13,
18,
13,
13,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
2,
40,
13,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
13,
20,
2,
13,
17,
23,
13,
12,
13,
30,
29,
4,
18,
13,
13,
12,
13,
30,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
18,
13,
13,
0,
13,
2,
13,
40,
13,
29,
13,
23,
13,
12,
13,
30,
42,
2,
13,
13,
30,
0,
18,
13,
13,
13,
0,
13,
2,
13,
40,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
4,
13,
13,
4,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
4,
13,
13,
4,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
4,
13,
17,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
4,
18,
13,
17,
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
],
[
548,
14
],
[
548,
15
],
[
15,
16
],
[
548,
17
],
[
17,
18
],
[
548,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
21,
25
],
[
25,
26
],
[
25,
27
],
[
21,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
21,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
21,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
21,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
50,
51
],
[
50,
52
],
[
46,
53
],
[
21,
54
],
[
54,
55
],
[
55,
56
],
[
19,
57
],
[
57,
58
],
[
548,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
69,
71
],
[
62,
72
],
[
72,
73
],
[
73,
74
],
[
62,
75
],
[
76,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
79,
83
],
[
83,
84
],
[
83,
85
],
[
76,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
88,
90
],
[
76,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
95,
97
],
[
76,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
59,
103
],
[
103,
104
],
[
548,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
115,
117
],
[
108,
118
],
[
118,
119
],
[
119,
120
],
[
108,
121
],
[
122,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
125,
129
],
[
129,
130
],
[
129,
131
],
[
122,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
134,
136
],
[
122,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
137,
141
],
[
141,
142
],
[
141,
143
],
[
122,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
105,
149
],
[
149,
150
],
[
548,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
151,
155
],
[
155,
156
],
[
151,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
159,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
165,
169
],
[
157,
170
],
[
170,
171
],
[
157,
172
],
[
172,
173
],
[
151,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
178,
181
],
[
548,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
182,
186
],
[
186,
187
],
[
182,
188
],
[
188,
189
],
[
188,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
191,
195
],
[
190,
196
],
[
196,
197
],
[
196,
198
],
[
199,
200
],
[
199,
201
],
[
188,
202
],
[
202,
203
],
[
182,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
208,
211
],
[
182,
212
],
[
212,
213
],
[
212,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
214,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
218,
222
],
[
222,
223
],
[
223,
224
],
[
223,
225
],
[
225,
226
],
[
225,
227
],
[
222,
228
],
[
228,
229
],
[
228,
230
],
[
230,
231
],
[
230,
232
],
[
232,
233
],
[
214,
234
],
[
234,
235
],
[
212,
236
],
[
236,
237
],
[
182,
238
],
[
238,
239
],
[
238,
240
],
[
240,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
241,
245
],
[
245,
246
],
[
246,
247
],
[
247,
248
],
[
247,
249
],
[
246,
250
],
[
245,
251
],
[
251,
252
],
[
251,
253
],
[
253,
254
],
[
253,
255
],
[
255,
256
],
[
238,
257
],
[
257,
258
],
[
238,
259
],
[
259,
260
],
[
548,
261
],
[
261,
262
],
[
261,
263
],
[
263,
264
],
[
261,
265
],
[
265,
266
],
[
261,
267
],
[
267,
268
],
[
267,
269
],
[
269,
270
],
[
270,
271
],
[
270,
272
],
[
267,
273
],
[
273,
274
],
[
261,
275
],
[
275,
276
],
[
275,
277
],
[
277,
278
],
[
278,
279
],
[
278,
280
],
[
275,
281
],
[
281,
282
],
[
261,
283
],
[
283,
284
],
[
283,
285
],
[
285,
286
],
[
286,
287
],
[
287,
288
],
[
288,
289
],
[
288,
290
],
[
287,
291
],
[
291,
292
],
[
292,
293
],
[
293,
294
],
[
286,
295
],
[
295,
296
],
[
295,
297
],
[
285,
298
],
[
298,
299
],
[
299,
300
],
[
300,
301
],
[
261,
302
],
[
302,
303
],
[
302,
304
],
[
304,
305
],
[
305,
306
],
[
305,
307
],
[
304,
309
],
[
309,
310
],
[
310,
311
],
[
311,
312
],
[
311,
313
],
[
309,
314
],
[
314,
315
],
[
314,
316
],
[
309,
317
],
[
317,
318
],
[
318,
319
],
[
309,
320
],
[
320,
321
],
[
321,
322
],
[
322,
323
],
[
322,
324
],
[
321,
325
],
[
325,
326
],
[
304,
327
],
[
327,
328
],
[
302,
329
],
[
329,
330
],
[
261,
331
],
[
331,
332
],
[
331,
333
],
[
333,
334
],
[
334,
335
],
[
334,
336
],
[
333,
338
],
[
338,
339
],
[
339,
340
],
[
340,
341
],
[
340,
342
],
[
338,
343
],
[
343,
344
],
[
343,
345
],
[
338,
346
],
[
346,
347
],
[
347,
348
],
[
338,
349
],
[
349,
350
],
[
350,
351
],
[
351,
352
],
[
351,
353
],
[
350,
354
],
[
354,
355
],
[
333,
356
],
[
356,
357
],
[
331,
358
],
[
358,
359
],
[
261,
360
],
[
360,
361
],
[
360,
362
],
[
362,
363
],
[
363,
364
],
[
363,
365
],
[
362,
367
],
[
367,
368
],
[
368,
369
],
[
369,
370
],
[
369,
371
],
[
367,
372
],
[
372,
373
],
[
372,
374
],
[
367,
375
],
[
375,
376
],
[
376,
377
],
[
367,
378
],
[
378,
379
],
[
379,
380
],
[
380,
381
],
[
380,
382
],
[
379,
383
],
[
383,
384
],
[
362,
385
],
[
385,
386
],
[
385,
387
],
[
362,
388
],
[
388,
389
],
[
389,
390
],
[
388,
391
],
[
362,
392
],
[
392,
393
],
[
360,
394
],
[
394,
395
],
[
261,
396
],
[
396,
397
],
[
396,
398
],
[
398,
399
],
[
399,
400
],
[
399,
401
],
[
398,
403
],
[
403,
404
],
[
404,
405
],
[
405,
406
],
[
405,
407
],
[
403,
408
],
[
408,
409
],
[
408,
410
],
[
403,
411
],
[
411,
412
],
[
412,
413
],
[
403,
414
],
[
414,
415
],
[
415,
416
],
[
416,
417
],
[
416,
418
],
[
415,
419
],
[
419,
420
],
[
398,
421
],
[
421,
422
],
[
421,
423
],
[
398,
424
],
[
424,
425
],
[
425,
426
],
[
424,
427
],
[
398,
428
],
[
428,
429
],
[
396,
430
],
[
430,
431
],
[
261,
432
],
[
432,
433
],
[
432,
434
],
[
434,
435
],
[
435,
436
],
[
435,
437
],
[
434,
439
],
[
439,
440
],
[
440,
441
],
[
441,
442
],
[
441,
443
],
[
439,
444
],
[
444,
445
],
[
444,
446
],
[
439,
447
],
[
447,
448
],
[
448,
449
],
[
439,
450
],
[
450,
451
],
[
451,
452
],
[
452,
453
],
[
452,
454
],
[
451,
455
],
[
455,
456
],
[
434,
457
],
[
457,
458
],
[
432,
459
],
[
459,
460
],
[
261,
461
],
[
461,
462
],
[
461,
463
],
[
463,
464
],
[
464,
465
],
[
464,
466
],
[
463,
468
],
[
468,
469
],
[
469,
470
],
[
470,
471
],
[
470,
472
],
[
468,
473
],
[
473,
474
],
[
473,
475
],
[
468,
476
],
[
476,
477
],
[
477,
478
],
[
468,
479
],
[
479,
480
],
[
480,
481
],
[
481,
482
],
[
481,
483
],
[
480,
484
],
[
484,
485
],
[
463,
486
],
[
486,
487
],
[
461,
488
],
[
488,
489
],
[
261,
490
],
[
490,
491
],
[
490,
492
],
[
492,
493
],
[
493,
494
],
[
494,
495
],
[
495,
496
],
[
261,
497
],
[
497,
498
],
[
497,
499
],
[
499,
500
],
[
500,
501
],
[
501,
502
],
[
502,
503
],
[
501,
504
],
[
504,
505
],
[
261,
506
],
[
506,
507
],
[
506,
508
],
[
508,
509
],
[
509,
510
],
[
510,
511
],
[
511,
512
],
[
510,
513
],
[
513,
514
],
[
261,
515
],
[
515,
516
],
[
515,
517
],
[
517,
518
],
[
518,
519
],
[
519,
520
],
[
520,
521
],
[
521,
522
],
[
519,
523
],
[
261,
524
],
[
524,
525
],
[
524,
526
],
[
526,
527
],
[
527,
528
],
[
528,
529
],
[
529,
530
],
[
528,
531
],
[
531,
532
],
[
261,
533
],
[
533,
534
],
[
533,
535
],
[
535,
536
],
[
536,
537
],
[
537,
538
],
[
538,
539
],
[
261,
540
],
[
540,
541
],
[
540,
542
],
[
542,
543
],
[
543,
544
],
[
544,
545
],
[
543,
546
],
[
0,
547
],
[
547,
548
],
[
547,
549
]
]
| [
"import java.io.*;\nimport java.util.Arrays;\nimport java.util.StringTokenizer;\n\nimport static java.lang.Long.max;\n\npublic class Main {\n static class Pair {\n int num;\n int cut;\n\n Pair(int num, int cut) {\n this.num = num;\n this.cut = cut;\n }\n\n double getVal() {\n return -num / (double) cut;\n }\n }\n\n public static void main(String[] args) throws IOException {\n sc = new MScanner(System.in);\n pw = new PrintWriter(System.out);\n int N = sc.nextInt();\n double X = sc.nextInt();\n int T = sc.nextInt();\n pw.println((long)Math.ceil(N/X) * T);\n\n // pw.println(\"end\");\n // pw.println();\n\n pw.flush();\n // System.out.println(cnt);\n }\n\n /**\n * https://www.slideshare.net/hcpc_hokudai/binary-indexed-tree A space efficient version segment\n * tree. Usually for range sum. Or the required metric can be calulated in that:\n *\n * <p>right_metric = parant_metric - left_metric Only then, we can stop memoizing right_metric\n *\n * <p>The internal structure is a 1-base array, to simplify calculation of parent node's idx. lsb\n * = 3 & -3 = 2 (0x0011 & 0x1101 = 0x0001) lastParentOf3 = 3 - lsb = 2 curParentOf3 = 3 + lsb = 4\n */\n static class FenwickTree {\n private final long[] state;\n private final int size;\n\n FenwickTree(int size) {\n this.size = size;\n state = new long[size + 1];\n }\n\n @Override\n public String toString() {\n return Arrays.toString(state);\n }\n\n long queryRangeSumFromZeroTo(int idx) {\n long sum = 0;\n while (idx != 0) {\n sum += state[idx];\n idx -= (idx & -idx);\n }\n return sum;\n }\n\n /** @param val can be negative */\n void updateElement(int idx, long val) {\n while (idx <= size) {\n state[idx] += val;\n idx += (idx & -idx);\n }\n }\n }\n\n // sc.close();\n // pw.println(cnt);\n // pw.flush();\n\n static PrintWriter pw;\n static MScanner sc;\n\n static class MScanner {\n StringTokenizer st;\n BufferedReader br;\n\n public MScanner(InputStream system) {\n br = new BufferedReader(new InputStreamReader(system));\n }\n\n public MScanner(String file) throws Exception {\n br = new BufferedReader(new FileReader(file));\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int[] intArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }\n\n public long[] longArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }\n\n public int[] intSortedArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }\n\n public long[] longSortedArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }\n\n public Integer[] IntegerArr(int n) throws IOException {\n Integer[] in = new Integer[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }\n\n public Long[] LongArr(int n) throws IOException {\n Long[] in = new Long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public char nextChar() throws IOException {\n return next().charAt(0);\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public boolean ready() throws IOException {\n return br.ready();\n }\n\n public void waitForInput() throws InterruptedException {\n Thread.sleep(3000);\n }\n }\n\n static void shuffle(int[] in) {\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n int tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }\n\n static void shuffle(long[] in) {\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n long tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import static java.lang.Long.max;",
"import static java.lang.Long.max;",
"import static java.lang.Long.max;",
"public class Main {\n static class Pair {\n int num;\n int cut;\n\n Pair(int num, int cut) {\n this.num = num;\n this.cut = cut;\n }\n\n double getVal() {\n return -num / (double) cut;\n }\n }\n\n public static void main(String[] args) throws IOException {\n sc = new MScanner(System.in);\n pw = new PrintWriter(System.out);\n int N = sc.nextInt();\n double X = sc.nextInt();\n int T = sc.nextInt();\n pw.println((long)Math.ceil(N/X) * T);\n\n // pw.println(\"end\");\n // pw.println();\n\n pw.flush();\n // System.out.println(cnt);\n }\n\n /**\n * https://www.slideshare.net/hcpc_hokudai/binary-indexed-tree A space efficient version segment\n * tree. Usually for range sum. Or the required metric can be calulated in that:\n *\n * <p>right_metric = parant_metric - left_metric Only then, we can stop memoizing right_metric\n *\n * <p>The internal structure is a 1-base array, to simplify calculation of parent node's idx. lsb\n * = 3 & -3 = 2 (0x0011 & 0x1101 = 0x0001) lastParentOf3 = 3 - lsb = 2 curParentOf3 = 3 + lsb = 4\n */\n static class FenwickTree {\n private final long[] state;\n private final int size;\n\n FenwickTree(int size) {\n this.size = size;\n state = new long[size + 1];\n }\n\n @Override\n public String toString() {\n return Arrays.toString(state);\n }\n\n long queryRangeSumFromZeroTo(int idx) {\n long sum = 0;\n while (idx != 0) {\n sum += state[idx];\n idx -= (idx & -idx);\n }\n return sum;\n }\n\n /** @param val can be negative */\n void updateElement(int idx, long val) {\n while (idx <= size) {\n state[idx] += val;\n idx += (idx & -idx);\n }\n }\n }\n\n // sc.close();\n // pw.println(cnt);\n // pw.flush();\n\n static PrintWriter pw;\n static MScanner sc;\n\n static class MScanner {\n StringTokenizer st;\n BufferedReader br;\n\n public MScanner(InputStream system) {\n br = new BufferedReader(new InputStreamReader(system));\n }\n\n public MScanner(String file) throws Exception {\n br = new BufferedReader(new FileReader(file));\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int[] intArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }\n\n public long[] longArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }\n\n public int[] intSortedArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }\n\n public long[] longSortedArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }\n\n public Integer[] IntegerArr(int n) throws IOException {\n Integer[] in = new Integer[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }\n\n public Long[] LongArr(int n) throws IOException {\n Long[] in = new Long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public char nextChar() throws IOException {\n return next().charAt(0);\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public boolean ready() throws IOException {\n return br.ready();\n }\n\n public void waitForInput() throws InterruptedException {\n Thread.sleep(3000);\n }\n }\n\n static void shuffle(int[] in) {\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n int tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }\n\n static void shuffle(long[] in) {\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n long tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }\n}",
"Main",
"static PrintWriter pw;",
"pw",
"static MScanner sc;",
"sc",
"public static void main(String[] args) throws IOException {\n sc = new MScanner(System.in);\n pw = new PrintWriter(System.out);\n int N = sc.nextInt();\n double X = sc.nextInt();\n int T = sc.nextInt();\n pw.println((long)Math.ceil(N/X) * T);\n\n // pw.println(\"end\");\n // pw.println();\n\n pw.flush();\n // System.out.println(cnt);\n }",
"main",
"{\n sc = new MScanner(System.in);\n pw = new PrintWriter(System.out);\n int N = sc.nextInt();\n double X = sc.nextInt();\n int T = sc.nextInt();\n pw.println((long)Math.ceil(N/X) * T);\n\n // pw.println(\"end\");\n // pw.println();\n\n pw.flush();\n // System.out.println(cnt);\n }",
"sc = new MScanner(System.in)",
"sc",
"new MScanner(System.in)",
"pw = new PrintWriter(System.out)",
"pw",
"new PrintWriter(System.out)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double X = sc.nextInt();",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int T = sc.nextInt();",
"T",
"sc.nextInt()",
"sc.nextInt",
"sc",
"pw.println((long)Math.ceil(N/X) * T)",
"pw.println",
"pw",
"(long)Math.ceil(N/X) * T",
"(long)Math.ceil(N/X)",
"Math.ceil",
"Math",
"N/X",
"N",
"X",
"T",
"pw.flush()",
"pw.flush",
"pw",
"String[] args",
"args",
"static void shuffle(int[] in) {\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n int tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }",
"shuffle",
"{\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n int tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }",
"for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n int tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < in.length",
"i",
"in.length",
"in",
"in.length",
"i++",
"i++",
"i",
"{\n int idx = (int) (Math.random() * in.length);\n int tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }",
"{\n int idx = (int) (Math.random() * in.length);\n int tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }",
"int idx = (int) (Math.random() * in.length);",
"idx",
"(int) (Math.random() * in.length)",
"Math.random()",
"Math.random",
"Math",
"in.length",
"in",
"in.length",
"int tmp = in[i];",
"tmp",
"in[i]",
"in",
"i",
"in[i] = in[idx]",
"in[i]",
"in",
"i",
"in[idx]",
"in",
"idx",
"in[idx] = tmp",
"in[idx]",
"in",
"idx",
"tmp",
"int[] in",
"in",
"static void shuffle(long[] in) {\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n long tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }",
"shuffle",
"{\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n long tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }",
"for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n long tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < in.length",
"i",
"in.length",
"in",
"in.length",
"i++",
"i++",
"i",
"{\n int idx = (int) (Math.random() * in.length);\n long tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }",
"{\n int idx = (int) (Math.random() * in.length);\n long tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }",
"int idx = (int) (Math.random() * in.length);",
"idx",
"(int) (Math.random() * in.length)",
"Math.random()",
"Math.random",
"Math",
"in.length",
"in",
"in.length",
"long tmp = in[i];",
"tmp",
"in[i]",
"in",
"i",
"in[i] = in[idx]",
"in[i]",
"in",
"i",
"in[idx]",
"in",
"idx",
"in[idx] = tmp",
"in[idx]",
"in",
"idx",
"tmp",
"long[] in",
"in",
"static class Pair {\n int num;\n int cut;\n\n Pair(int num, int cut) {\n this.num = num;\n this.cut = cut;\n }\n\n double getVal() {\n return -num / (double) cut;\n }\n }",
"Pair",
"int num;",
"num",
"int cut;",
"cut",
"Pair(int num, int cut) {\n this.num = num;\n this.cut = cut;\n }",
"Pair",
"{\n this.num = num;\n this.cut = cut;\n }",
"this.num = num",
"this.num",
"this",
"this.num",
"num",
"this.cut = cut",
"this.cut",
"this",
"this.cut",
"cut",
"int num",
"num",
"int cut",
"cut",
"double getVal() {\n return -num / (double) cut;\n }",
"getVal",
"{\n return -num / (double) cut;\n }",
"return -num / (double) cut;",
"-num / (double) cut",
"-num",
"num",
"(double) cut",
"static class FenwickTree {\n private final long[] state;\n private final int size;\n\n FenwickTree(int size) {\n this.size = size;\n state = new long[size + 1];\n }\n\n @Override\n public String toString() {\n return Arrays.toString(state);\n }\n\n long queryRangeSumFromZeroTo(int idx) {\n long sum = 0;\n while (idx != 0) {\n sum += state[idx];\n idx -= (idx & -idx);\n }\n return sum;\n }\n\n /** @param val can be negative */\n void updateElement(int idx, long val) {\n while (idx <= size) {\n state[idx] += val;\n idx += (idx & -idx);\n }\n }\n }",
"FenwickTree",
"private final long[] state;",
"state",
"private final int size;",
"size",
"FenwickTree(int size) {\n this.size = size;\n state = new long[size + 1];\n }",
"FenwickTree",
"{\n this.size = size;\n state = new long[size + 1];\n }",
"this.size = size",
"this.size",
"this",
"this.size",
"size",
"state = new long[size + 1]",
"state",
"new long[size + 1]",
"size + 1",
"size",
"1",
"int size",
"size",
"@Override\n public String toString() {\n return Arrays.toString(state);\n }",
"toString",
"{\n return Arrays.toString(state);\n }",
"return Arrays.toString(state);",
"Arrays.toString(state)",
"Arrays.toString",
"Arrays",
"state",
"long queryRangeSumFromZeroTo(int idx) {\n long sum = 0;\n while (idx != 0) {\n sum += state[idx];\n idx -= (idx & -idx);\n }\n return sum;\n }",
"queryRangeSumFromZeroTo",
"{\n long sum = 0;\n while (idx != 0) {\n sum += state[idx];\n idx -= (idx & -idx);\n }\n return sum;\n }",
"long sum = 0;",
"sum",
"0",
"while (idx != 0) {\n sum += state[idx];\n idx -= (idx & -idx);\n }",
"idx != 0",
"idx",
"0",
"{\n sum += state[idx];\n idx -= (idx & -idx);\n }",
"sum += state[idx]",
"sum",
"state[idx]",
"state",
"idx",
"idx -= (idx & -idx)",
"idx",
"(idx & -idx)",
"idx",
"-idx",
"idx",
"return sum;",
"sum",
"int idx",
"idx",
"/** @param val can be negative */\n void updateElement(int idx, long val) {\n while (idx <= size) {\n state[idx] += val;\n idx += (idx & -idx);\n }\n }",
"updateElement",
"{\n while (idx <= size) {\n state[idx] += val;\n idx += (idx & -idx);\n }\n }",
"while (idx <= size) {\n state[idx] += val;\n idx += (idx & -idx);\n }",
"idx <= size",
"idx",
"size",
"{\n state[idx] += val;\n idx += (idx & -idx);\n }",
"state[idx] += val",
"state[idx]",
"state",
"idx",
"val",
"idx += (idx & -idx)",
"idx",
"(idx & -idx)",
"idx",
"-idx",
"idx",
"int idx",
"idx",
"long val",
"val",
"static class MScanner {\n StringTokenizer st;\n BufferedReader br;\n\n public MScanner(InputStream system) {\n br = new BufferedReader(new InputStreamReader(system));\n }\n\n public MScanner(String file) throws Exception {\n br = new BufferedReader(new FileReader(file));\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int[] intArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }\n\n public long[] longArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }\n\n public int[] intSortedArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }\n\n public long[] longSortedArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }\n\n public Integer[] IntegerArr(int n) throws IOException {\n Integer[] in = new Integer[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }\n\n public Long[] LongArr(int n) throws IOException {\n Long[] in = new Long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public char nextChar() throws IOException {\n return next().charAt(0);\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public boolean ready() throws IOException {\n return br.ready();\n }\n\n public void waitForInput() throws InterruptedException {\n Thread.sleep(3000);\n }\n }",
"MScanner",
"StringTokenizer st;",
"st",
"BufferedReader br;",
"br",
"public MScanner(InputStream system) {\n br = new BufferedReader(new InputStreamReader(system));\n }",
"MScanner",
"{\n br = new BufferedReader(new InputStreamReader(system));\n }",
"br = new BufferedReader(new InputStreamReader(system))",
"br",
"new BufferedReader(new InputStreamReader(system))",
"InputStream system",
"system",
"public MScanner(String file) throws Exception {\n br = new BufferedReader(new FileReader(file));\n }",
"MScanner",
"{\n br = new BufferedReader(new FileReader(file));\n }",
"br = new BufferedReader(new FileReader(file))",
"br",
"new BufferedReader(new FileReader(file))",
"String file",
"file",
"public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public int[] intArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }",
"intArr",
"{\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }",
"int[] in = new int[n];",
"in",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) in[i] = nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"in[i] = nextInt();",
"in[i] = nextInt()",
"in[i]",
"in",
"i",
"nextInt()",
"nextInt",
"return in;",
"in",
"int n",
"n",
"public long[] longArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }",
"longArr",
"{\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }",
"long[] in = new long[n];",
"in",
"new long[n]",
"n",
"for (int i = 0; i < n; i++) in[i] = nextLong();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"in[i] = nextLong();",
"in[i] = nextLong()",
"in[i]",
"in",
"i",
"nextLong()",
"nextLong",
"return in;",
"in",
"int n",
"n",
"public int[] intSortedArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }",
"intSortedArr",
"{\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }",
"int[] in = new int[n];",
"in",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) in[i] = nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"in[i] = nextInt();",
"in[i] = nextInt()",
"in[i]",
"in",
"i",
"nextInt()",
"nextInt",
"shuffle(in)",
"shuffle",
"in",
"Arrays.sort(in)",
"Arrays.sort",
"Arrays",
"in",
"return in;",
"in",
"int n",
"n",
"public long[] longSortedArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }",
"longSortedArr",
"{\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }",
"long[] in = new long[n];",
"in",
"new long[n]",
"n",
"for (int i = 0; i < n; i++) in[i] = nextLong();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"in[i] = nextLong();",
"in[i] = nextLong()",
"in[i]",
"in",
"i",
"nextLong()",
"nextLong",
"shuffle(in)",
"shuffle",
"in",
"Arrays.sort(in)",
"Arrays.sort",
"Arrays",
"in",
"return in;",
"in",
"int n",
"n",
"public Integer[] IntegerArr(int n) throws IOException {\n Integer[] in = new Integer[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }",
"IntegerArr",
"{\n Integer[] in = new Integer[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }",
"Integer[] in = new Integer[n];",
"in",
"new Integer[n]",
"n",
"for (int i = 0; i < n; i++) in[i] = nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"in[i] = nextInt();",
"in[i] = nextInt()",
"in[i]",
"in",
"i",
"nextInt()",
"nextInt",
"return in;",
"in",
"int n",
"n",
"public Long[] LongArr(int n) throws IOException {\n Long[] in = new Long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }",
"LongArr",
"{\n Long[] in = new Long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }",
"Long[] in = new Long[n];",
"in",
"new Long[n]",
"n",
"for (int i = 0; i < n; i++) in[i] = nextLong();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"in[i] = nextLong();",
"in[i] = nextLong()",
"in[i]",
"in",
"i",
"nextLong()",
"nextLong",
"return in;",
"in",
"int n",
"n",
"public String nextLine() throws IOException {\n return br.readLine();\n }",
"nextLine",
"{\n return br.readLine();\n }",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public char nextChar() throws IOException {\n return next().charAt(0);\n }",
"nextChar",
"{\n return next().charAt(0);\n }",
"return next().charAt(0);",
"next().charAt(0)",
"next().charAt",
"next()",
"next",
"0",
"public long nextLong() throws IOException {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public boolean ready() throws IOException {\n return br.ready();\n }",
"ready",
"{\n return br.ready();\n }",
"return br.ready();",
"br.ready()",
"br.ready",
"br",
"public void waitForInput() throws InterruptedException {\n Thread.sleep(3000);\n }",
"waitForInput",
"{\n Thread.sleep(3000);\n }",
"Thread.sleep(3000)",
"Thread.sleep",
"Thread",
"3000",
"public class Main {\n static class Pair {\n int num;\n int cut;\n\n Pair(int num, int cut) {\n this.num = num;\n this.cut = cut;\n }\n\n double getVal() {\n return -num / (double) cut;\n }\n }\n\n public static void main(String[] args) throws IOException {\n sc = new MScanner(System.in);\n pw = new PrintWriter(System.out);\n int N = sc.nextInt();\n double X = sc.nextInt();\n int T = sc.nextInt();\n pw.println((long)Math.ceil(N/X) * T);\n\n // pw.println(\"end\");\n // pw.println();\n\n pw.flush();\n // System.out.println(cnt);\n }\n\n /**\n * https://www.slideshare.net/hcpc_hokudai/binary-indexed-tree A space efficient version segment\n * tree. Usually for range sum. Or the required metric can be calulated in that:\n *\n * <p>right_metric = parant_metric - left_metric Only then, we can stop memoizing right_metric\n *\n * <p>The internal structure is a 1-base array, to simplify calculation of parent node's idx. lsb\n * = 3 & -3 = 2 (0x0011 & 0x1101 = 0x0001) lastParentOf3 = 3 - lsb = 2 curParentOf3 = 3 + lsb = 4\n */\n static class FenwickTree {\n private final long[] state;\n private final int size;\n\n FenwickTree(int size) {\n this.size = size;\n state = new long[size + 1];\n }\n\n @Override\n public String toString() {\n return Arrays.toString(state);\n }\n\n long queryRangeSumFromZeroTo(int idx) {\n long sum = 0;\n while (idx != 0) {\n sum += state[idx];\n idx -= (idx & -idx);\n }\n return sum;\n }\n\n /** @param val can be negative */\n void updateElement(int idx, long val) {\n while (idx <= size) {\n state[idx] += val;\n idx += (idx & -idx);\n }\n }\n }\n\n // sc.close();\n // pw.println(cnt);\n // pw.flush();\n\n static PrintWriter pw;\n static MScanner sc;\n\n static class MScanner {\n StringTokenizer st;\n BufferedReader br;\n\n public MScanner(InputStream system) {\n br = new BufferedReader(new InputStreamReader(system));\n }\n\n public MScanner(String file) throws Exception {\n br = new BufferedReader(new FileReader(file));\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int[] intArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }\n\n public long[] longArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }\n\n public int[] intSortedArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }\n\n public long[] longSortedArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }\n\n public Integer[] IntegerArr(int n) throws IOException {\n Integer[] in = new Integer[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }\n\n public Long[] LongArr(int n) throws IOException {\n Long[] in = new Long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public char nextChar() throws IOException {\n return next().charAt(0);\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public boolean ready() throws IOException {\n return br.ready();\n }\n\n public void waitForInput() throws InterruptedException {\n Thread.sleep(3000);\n }\n }\n\n static void shuffle(int[] in) {\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n int tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }\n\n static void shuffle(long[] in) {\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n long tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }\n}",
"public class Main {\n static class Pair {\n int num;\n int cut;\n\n Pair(int num, int cut) {\n this.num = num;\n this.cut = cut;\n }\n\n double getVal() {\n return -num / (double) cut;\n }\n }\n\n public static void main(String[] args) throws IOException {\n sc = new MScanner(System.in);\n pw = new PrintWriter(System.out);\n int N = sc.nextInt();\n double X = sc.nextInt();\n int T = sc.nextInt();\n pw.println((long)Math.ceil(N/X) * T);\n\n // pw.println(\"end\");\n // pw.println();\n\n pw.flush();\n // System.out.println(cnt);\n }\n\n /**\n * https://www.slideshare.net/hcpc_hokudai/binary-indexed-tree A space efficient version segment\n * tree. Usually for range sum. Or the required metric can be calulated in that:\n *\n * <p>right_metric = parant_metric - left_metric Only then, we can stop memoizing right_metric\n *\n * <p>The internal structure is a 1-base array, to simplify calculation of parent node's idx. lsb\n * = 3 & -3 = 2 (0x0011 & 0x1101 = 0x0001) lastParentOf3 = 3 - lsb = 2 curParentOf3 = 3 + lsb = 4\n */\n static class FenwickTree {\n private final long[] state;\n private final int size;\n\n FenwickTree(int size) {\n this.size = size;\n state = new long[size + 1];\n }\n\n @Override\n public String toString() {\n return Arrays.toString(state);\n }\n\n long queryRangeSumFromZeroTo(int idx) {\n long sum = 0;\n while (idx != 0) {\n sum += state[idx];\n idx -= (idx & -idx);\n }\n return sum;\n }\n\n /** @param val can be negative */\n void updateElement(int idx, long val) {\n while (idx <= size) {\n state[idx] += val;\n idx += (idx & -idx);\n }\n }\n }\n\n // sc.close();\n // pw.println(cnt);\n // pw.flush();\n\n static PrintWriter pw;\n static MScanner sc;\n\n static class MScanner {\n StringTokenizer st;\n BufferedReader br;\n\n public MScanner(InputStream system) {\n br = new BufferedReader(new InputStreamReader(system));\n }\n\n public MScanner(String file) throws Exception {\n br = new BufferedReader(new FileReader(file));\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int[] intArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }\n\n public long[] longArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }\n\n public int[] intSortedArr(int n) throws IOException {\n int[] in = new int[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }\n\n public long[] longSortedArr(int n) throws IOException {\n long[] in = new long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n shuffle(in);\n Arrays.sort(in);\n return in;\n }\n\n public Integer[] IntegerArr(int n) throws IOException {\n Integer[] in = new Integer[n];\n for (int i = 0; i < n; i++) in[i] = nextInt();\n return in;\n }\n\n public Long[] LongArr(int n) throws IOException {\n Long[] in = new Long[n];\n for (int i = 0; i < n; i++) in[i] = nextLong();\n return in;\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public char nextChar() throws IOException {\n return next().charAt(0);\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public boolean ready() throws IOException {\n return br.ready();\n }\n\n public void waitForInput() throws InterruptedException {\n Thread.sleep(3000);\n }\n }\n\n static void shuffle(int[] in) {\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n int tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }\n\n static void shuffle(long[] in) {\n for (int i = 0; i < in.length; i++) {\n int idx = (int) (Math.random() * in.length);\n long tmp = in[i];\n in[i] = in[idx];\n in[idx] = tmp;\n }\n }\n}",
"Main"
]
| import java.io.*;
import java.util.Arrays;
import java.util.StringTokenizer;
import static java.lang.Long.max;
public class Main {
static class Pair {
int num;
int cut;
Pair(int num, int cut) {
this.num = num;
this.cut = cut;
}
double getVal() {
return -num / (double) cut;
}
}
public static void main(String[] args) throws IOException {
sc = new MScanner(System.in);
pw = new PrintWriter(System.out);
int N = sc.nextInt();
double X = sc.nextInt();
int T = sc.nextInt();
pw.println((long)Math.ceil(N/X) * T);
// pw.println("end");
// pw.println();
pw.flush();
// System.out.println(cnt);
}
/**
* https://www.slideshare.net/hcpc_hokudai/binary-indexed-tree A space efficient version segment
* tree. Usually for range sum. Or the required metric can be calulated in that:
*
* <p>right_metric = parant_metric - left_metric Only then, we can stop memoizing right_metric
*
* <p>The internal structure is a 1-base array, to simplify calculation of parent node's idx. lsb
* = 3 & -3 = 2 (0x0011 & 0x1101 = 0x0001) lastParentOf3 = 3 - lsb = 2 curParentOf3 = 3 + lsb = 4
*/
static class FenwickTree {
private final long[] state;
private final int size;
FenwickTree(int size) {
this.size = size;
state = new long[size + 1];
}
@Override
public String toString() {
return Arrays.toString(state);
}
long queryRangeSumFromZeroTo(int idx) {
long sum = 0;
while (idx != 0) {
sum += state[idx];
idx -= (idx & -idx);
}
return sum;
}
/** @param val can be negative */
void updateElement(int idx, long val) {
while (idx <= size) {
state[idx] += val;
idx += (idx & -idx);
}
}
}
// sc.close();
// pw.println(cnt);
// pw.flush();
static PrintWriter pw;
static MScanner sc;
static class MScanner {
StringTokenizer st;
BufferedReader br;
public MScanner(InputStream system) {
br = new BufferedReader(new InputStreamReader(system));
}
public MScanner(String file) throws Exception {
br = new BufferedReader(new FileReader(file));
}
public String next() throws IOException {
while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());
return st.nextToken();
}
public int[] intArr(int n) throws IOException {
int[] in = new int[n];
for (int i = 0; i < n; i++) in[i] = nextInt();
return in;
}
public long[] longArr(int n) throws IOException {
long[] in = new long[n];
for (int i = 0; i < n; i++) in[i] = nextLong();
return in;
}
public int[] intSortedArr(int n) throws IOException {
int[] in = new int[n];
for (int i = 0; i < n; i++) in[i] = nextInt();
shuffle(in);
Arrays.sort(in);
return in;
}
public long[] longSortedArr(int n) throws IOException {
long[] in = new long[n];
for (int i = 0; i < n; i++) in[i] = nextLong();
shuffle(in);
Arrays.sort(in);
return in;
}
public Integer[] IntegerArr(int n) throws IOException {
Integer[] in = new Integer[n];
for (int i = 0; i < n; i++) in[i] = nextInt();
return in;
}
public Long[] LongArr(int n) throws IOException {
Long[] in = new Long[n];
for (int i = 0; i < n; i++) in[i] = nextLong();
return in;
}
public String nextLine() throws IOException {
return br.readLine();
}
public int nextInt() throws IOException {
return Integer.parseInt(next());
}
public double nextDouble() throws IOException {
return Double.parseDouble(next());
}
public char nextChar() throws IOException {
return next().charAt(0);
}
public long nextLong() throws IOException {
return Long.parseLong(next());
}
public boolean ready() throws IOException {
return br.ready();
}
public void waitForInput() throws InterruptedException {
Thread.sleep(3000);
}
}
static void shuffle(int[] in) {
for (int i = 0; i < in.length; i++) {
int idx = (int) (Math.random() * in.length);
int tmp = in[i];
in[i] = in[idx];
in[idx] = tmp;
}
}
static void shuffle(long[] in) {
for (int i = 0; i < in.length; i++) {
int idx = (int) (Math.random() * in.length);
long tmp = in[i];
in[i] = in[idx];
in[idx] = tmp;
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
2,
13,
13,
13,
14,
2,
2,
13,
13,
17,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
53,
5
],
[
53,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
8,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
6,
50
],
[
50,
51
],
[
0,
52
],
[
52,
53
],
[
52,
54
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint X = sc.nextInt();\n\t\tint T = sc.nextInt();\n\n\t\tint answer = (N/X)*T;\n\t\tif(N%X!=0) {\n\t\t\tanswer += T;\n\t\t}\n\t\tSystem.out.println(answer);\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint X = sc.nextInt();\n\t\tint T = sc.nextInt();\n\n\t\tint answer = (N/X)*T;\n\t\tif(N%X!=0) {\n\t\t\tanswer += T;\n\t\t}\n\t\tSystem.out.println(answer);\n\t}\n\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 X = sc.nextInt();\n\t\tint T = sc.nextInt();\n\n\t\tint answer = (N/X)*T;\n\t\tif(N%X!=0) {\n\t\t\tanswer += T;\n\t\t}\n\t\tSystem.out.println(answer);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint X = sc.nextInt();\n\t\tint T = sc.nextInt();\n\n\t\tint answer = (N/X)*T;\n\t\tif(N%X!=0) {\n\t\t\tanswer += T;\n\t\t}\n\t\tSystem.out.println(answer);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int X = sc.nextInt();",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int T = sc.nextInt();",
"T",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int answer = (N/X)*T;",
"answer",
"(N/X)*T",
"(N/X)",
"N",
"X",
"T",
"if(N%X!=0) {\n\t\t\tanswer += T;\n\t\t}",
"N%X!=0",
"N%X",
"N",
"X",
"0",
"{\n\t\t\tanswer += T;\n\t\t}",
"answer += T",
"answer",
"T",
"System.out.println(answer)",
"System.out.println",
"System.out",
"System",
"System.out",
"answer",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint X = sc.nextInt();\n\t\tint T = sc.nextInt();\n\n\t\tint answer = (N/X)*T;\n\t\tif(N%X!=0) {\n\t\t\tanswer += T;\n\t\t}\n\t\tSystem.out.println(answer);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint X = sc.nextInt();\n\t\tint T = sc.nextInt();\n\n\t\tint answer = (N/X)*T;\n\t\tif(N%X!=0) {\n\t\t\tanswer += T;\n\t\t}\n\t\tSystem.out.println(answer);\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int X = sc.nextInt();
int T = sc.nextInt();
int answer = (N/X)*T;
if(N%X!=0) {
answer += T;
}
System.out.println(answer);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
13,
40,
13,
4,
18,
18,
13,
13,
2,
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
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
8,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
6,
48
],
[
48,
49
]
]
| [
"import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n \n \tint total = sc.nextInt();\n \tint once = sc.nextInt();\n \tint time = sc.nextInt();\n \tint count = 0;\n \n\t\twhile(total > 0) {\n \ttotal -= once;\n \t\tcount++; \t\n }\n \tSystem.out.println(count * time);\n \n \n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n \n \tint total = sc.nextInt();\n \tint once = sc.nextInt();\n \tint time = sc.nextInt();\n \tint count = 0;\n \n\t\twhile(total > 0) {\n \ttotal -= once;\n \t\tcount++; \t\n }\n \tSystem.out.println(count * time);\n \n \n }\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n \n \tint total = sc.nextInt();\n \tint once = sc.nextInt();\n \tint time = sc.nextInt();\n \tint count = 0;\n \n\t\twhile(total > 0) {\n \ttotal -= once;\n \t\tcount++; \t\n }\n \tSystem.out.println(count * time);\n \n \n }",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n \n \tint total = sc.nextInt();\n \tint once = sc.nextInt();\n \tint time = sc.nextInt();\n \tint count = 0;\n \n\t\twhile(total > 0) {\n \ttotal -= once;\n \t\tcount++; \t\n }\n \tSystem.out.println(count * time);\n \n \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int total = sc.nextInt();",
"total",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int once = sc.nextInt();",
"once",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int time = sc.nextInt();",
"time",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int count = 0;",
"count",
"0",
"while(total > 0) {\n \ttotal -= once;\n \t\tcount++; \t\n }",
"total > 0",
"total",
"0",
"{\n \ttotal -= once;\n \t\tcount++; \t\n }",
"total -= once",
"total",
"once",
"count++",
"count",
"System.out.println(count * time)",
"System.out.println",
"System.out",
"System",
"System.out",
"count * time",
"count",
"time",
"String[] args",
"args"
]
| import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int total = sc.nextInt();
int once = sc.nextInt();
int time = sc.nextInt();
int count = 0;
while(total > 0) {
total -= once;
count++;
}
System.out.println(count * time);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
20,
18,
13,
13,
41,
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,
14,
2,
2,
18,
13,
17,
18,
13,
17,
17,
30,
0,
13,
2,
2,
18,
13,
17,
18,
13,
17,
18,
13,
17,
30,
0,
13,
2,
2,
2,
18,
13,
17,
18,
13,
17,
17,
18,
13,
17,
4,
18,
18,
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
],
[
19,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
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
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
53,
54
],
[
53,
55
],
[
8,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
62,
64
],
[
57,
65
],
[
56,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
77,
78
],
[
77,
79
],
[
56,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
89,
90
],
[
89,
91
],
[
84,
92
],
[
83,
93
],
[
93,
94
],
[
93,
95
],
[
8,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
6,
102
],
[
102,
103
],
[
0,
104
],
[
104,
105
],
[
104,
106
]
]
| [
"import java.util.*;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t\t// Scanner sc = new Scanner(System.in);\n\t\t// String str = sc.nextLine();\n\t\t// sc.close();\n\n\t\t// int result=0;\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString input_str = scan.nextLine();\n\n\t\tString[] num_str = input_str.split(\" \");\n\n\t\tint[] num_int = new int[num_str.length];\n\n\t\tint ans;\n\n\t\tfor(int i= 0; i < num_str.length; i++){\n\t\t\tnum_int[i] = Integer.parseInt(num_str[i]);\t\t\n\t\t}\n\n\t\tif (num_int[0] % num_int[1] ==0){\n\t\t\tans = num_int[0] / num_int[1] * num_int[2];\n\t\t}\n\t\telse{\n\t\t\tans = (num_int[0] / num_int[1]+1) * num_int[2];\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main(String[] args){\n\t\t// Scanner sc = new Scanner(System.in);\n\t\t// String str = sc.nextLine();\n\t\t// sc.close();\n\n\t\t// int result=0;\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString input_str = scan.nextLine();\n\n\t\tString[] num_str = input_str.split(\" \");\n\n\t\tint[] num_int = new int[num_str.length];\n\n\t\tint ans;\n\n\t\tfor(int i= 0; i < num_str.length; i++){\n\t\t\tnum_int[i] = Integer.parseInt(num_str[i]);\t\t\n\t\t}\n\n\t\tif (num_int[0] % num_int[1] ==0){\n\t\t\tans = num_int[0] / num_int[1] * num_int[2];\n\t\t}\n\t\telse{\n\t\t\tans = (num_int[0] / num_int[1]+1) * num_int[2];\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\t// Scanner sc = new Scanner(System.in);\n\t\t// String str = sc.nextLine();\n\t\t// sc.close();\n\n\t\t// int result=0;\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString input_str = scan.nextLine();\n\n\t\tString[] num_str = input_str.split(\" \");\n\n\t\tint[] num_int = new int[num_str.length];\n\n\t\tint ans;\n\n\t\tfor(int i= 0; i < num_str.length; i++){\n\t\t\tnum_int[i] = Integer.parseInt(num_str[i]);\t\t\n\t\t}\n\n\t\tif (num_int[0] % num_int[1] ==0){\n\t\t\tans = num_int[0] / num_int[1] * num_int[2];\n\t\t}\n\t\telse{\n\t\t\tans = (num_int[0] / num_int[1]+1) * num_int[2];\n\t\t}\n\t\tSystem.out.println(ans);\n\t}",
"main",
"{\n\t\t// Scanner sc = new Scanner(System.in);\n\t\t// String str = sc.nextLine();\n\t\t// sc.close();\n\n\t\t// int result=0;\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString input_str = scan.nextLine();\n\n\t\tString[] num_str = input_str.split(\" \");\n\n\t\tint[] num_int = new int[num_str.length];\n\n\t\tint ans;\n\n\t\tfor(int i= 0; i < num_str.length; i++){\n\t\t\tnum_int[i] = Integer.parseInt(num_str[i]);\t\t\n\t\t}\n\n\t\tif (num_int[0] % num_int[1] ==0){\n\t\t\tans = num_int[0] / num_int[1] * num_int[2];\n\t\t}\n\t\telse{\n\t\t\tans = (num_int[0] / num_int[1]+1) * num_int[2];\n\t\t}\n\t\tSystem.out.println(ans);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String input_str = scan.nextLine();",
"input_str",
"scan.nextLine()",
"scan.nextLine",
"scan",
"String[] num_str = input_str.split(\" \");",
"num_str",
"input_str.split(\" \")",
"input_str.split",
"input_str",
"\" \"",
"int[] num_int = new int[num_str.length];",
"num_int",
"new int[num_str.length]",
"num_str.length",
"num_str",
"num_str.length",
"int ans;",
"ans",
"for(int i= 0; i < num_str.length; i++){\n\t\t\tnum_int[i] = Integer.parseInt(num_str[i]);\t\t\n\t\t}",
"int i= 0;",
"int i= 0;",
"i",
"0",
"i < num_str.length",
"i",
"num_str.length",
"num_str",
"num_str.length",
"i++",
"i++",
"i",
"{\n\t\t\tnum_int[i] = Integer.parseInt(num_str[i]);\t\t\n\t\t}",
"{\n\t\t\tnum_int[i] = Integer.parseInt(num_str[i]);\t\t\n\t\t}",
"num_int[i] = Integer.parseInt(num_str[i])",
"num_int[i]",
"num_int",
"i",
"Integer.parseInt(num_str[i])",
"Integer.parseInt",
"Integer",
"num_str[i]",
"num_str",
"i",
"if (num_int[0] % num_int[1] ==0){\n\t\t\tans = num_int[0] / num_int[1] * num_int[2];\n\t\t}\n\t\telse{\n\t\t\tans = (num_int[0] / num_int[1]+1) * num_int[2];\n\t\t}",
"num_int[0] % num_int[1] ==0",
"num_int[0] % num_int[1]",
"num_int[0]",
"num_int",
"0",
"num_int[1]",
"num_int",
"1",
"0",
"{\n\t\t\tans = num_int[0] / num_int[1] * num_int[2];\n\t\t}",
"ans = num_int[0] / num_int[1] * num_int[2]",
"ans",
"num_int[0] / num_int[1] * num_int[2]",
"num_int[0] / num_int[1]",
"num_int[0]",
"num_int",
"0",
"num_int[1]",
"num_int",
"1",
"num_int[2]",
"num_int",
"2",
"{\n\t\t\tans = (num_int[0] / num_int[1]+1) * num_int[2];\n\t\t}",
"ans = (num_int[0] / num_int[1]+1) * num_int[2]",
"ans",
"(num_int[0] / num_int[1]+1) * num_int[2]",
"(num_int[0] / num_int[1]+1)",
"num_int[0] / num_int[1]",
"num_int[0]",
"num_int",
"0",
"num_int[1]",
"num_int",
"1",
"1",
"num_int[2]",
"num_int",
"2",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args){\n\t\t// Scanner sc = new Scanner(System.in);\n\t\t// String str = sc.nextLine();\n\t\t// sc.close();\n\n\t\t// int result=0;\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString input_str = scan.nextLine();\n\n\t\tString[] num_str = input_str.split(\" \");\n\n\t\tint[] num_int = new int[num_str.length];\n\n\t\tint ans;\n\n\t\tfor(int i= 0; i < num_str.length; i++){\n\t\t\tnum_int[i] = Integer.parseInt(num_str[i]);\t\t\n\t\t}\n\n\t\tif (num_int[0] % num_int[1] ==0){\n\t\t\tans = num_int[0] / num_int[1] * num_int[2];\n\t\t}\n\t\telse{\n\t\t\tans = (num_int[0] / num_int[1]+1) * num_int[2];\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args){\n\t\t// Scanner sc = new Scanner(System.in);\n\t\t// String str = sc.nextLine();\n\t\t// sc.close();\n\n\t\t// int result=0;\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString input_str = scan.nextLine();\n\n\t\tString[] num_str = input_str.split(\" \");\n\n\t\tint[] num_int = new int[num_str.length];\n\n\t\tint ans;\n\n\t\tfor(int i= 0; i < num_str.length; i++){\n\t\t\tnum_int[i] = Integer.parseInt(num_str[i]);\t\t\n\t\t}\n\n\t\tif (num_int[0] % num_int[1] ==0){\n\t\t\tans = num_int[0] / num_int[1] * num_int[2];\n\t\t}\n\t\telse{\n\t\t\tans = (num_int[0] / num_int[1]+1) * num_int[2];\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
// Scanner sc = new Scanner(System.in);
// String str = sc.nextLine();
// sc.close();
// int result=0;
Scanner scan = new Scanner(System.in);
String input_str = scan.nextLine();
String[] num_str = input_str.split(" ");
int[] num_int = new int[num_str.length];
int ans;
for(int i= 0; i < num_str.length; i++){
num_int[i] = Integer.parseInt(num_str[i]);
}
if (num_int[0] % num_int[1] ==0){
ans = num_int[0] / num_int[1] * num_int[2];
}
else{
ans = (num_int[0] / num_int[1]+1) * num_int[2];
}
System.out.println(ans);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
2,
13,
13,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
54,
5
],
[
54,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
34,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
8,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
6,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt(),x=sc.nextInt(),t=sc.nextInt();\n int sum=0;\n while(n>0){\n n = n-x;\n sum = sum + t;\n }\n System.out.println(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 int n=sc.nextInt(),x=sc.nextInt(),t=sc.nextInt();\n int sum=0;\n while(n>0){\n n = n-x;\n sum = sum + t;\n }\n System.out.println(sum);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt(),x=sc.nextInt(),t=sc.nextInt();\n int sum=0;\n while(n>0){\n n = n-x;\n sum = sum + t;\n }\n System.out.println(sum);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt(),x=sc.nextInt(),t=sc.nextInt();\n int sum=0;\n while(n>0){\n n = n-x;\n sum = sum + t;\n }\n System.out.println(sum);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"x=sc.nextInt()",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"t=sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int sum=0;",
"sum",
"0",
"while(n>0){\n n = n-x;\n sum = sum + t;\n }",
"n>0",
"n",
"0",
"{\n n = n-x;\n sum = sum + t;\n }",
"n = n-x",
"n",
"n-x",
"n",
"x",
"sum = sum + t",
"sum",
"sum + t",
"sum",
"t",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt(),x=sc.nextInt(),t=sc.nextInt();\n int sum=0;\n while(n>0){\n n = n-x;\n sum = sum + t;\n }\n System.out.println(sum);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt(),x=sc.nextInt(),t=sc.nextInt();\n int sum=0;\n while(n>0){\n n = n-x;\n sum = sum + t;\n }\n System.out.println(sum);\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(),x=sc.nextInt(),t=sc.nextInt();
int sum=0;
while(n>0){
n = n-x;
sum = sum + t;
}
System.out.println(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,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
64,
5
],
[
64,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
37,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
6,
61
],
[
61,
62
],
[
0,
63
],
[
63,
64
],
[
63,
65
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n int tmps = n / x;\n int tmpa = n % x;\n if (tmpa == 0) {\n System.out.println(tmps * t);\n } else {\n System.out.println((tmps + 1) * t);\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 int x = sc.nextInt();\n int t = sc.nextInt();\n int tmps = n / x;\n int tmpa = n % x;\n if (tmpa == 0) {\n System.out.println(tmps * t);\n } else {\n System.out.println((tmps + 1) * t);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n int tmps = n / x;\n int tmpa = n % x;\n if (tmpa == 0) {\n System.out.println(tmps * t);\n } else {\n System.out.println((tmps + 1) * t);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n int tmps = n / x;\n int tmpa = n % x;\n if (tmpa == 0) {\n System.out.println(tmps * t);\n } else {\n System.out.println((tmps + 1) * t);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t = sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int tmps = n / x;",
"tmps",
"n / x",
"n",
"x",
"int tmpa = n % x;",
"tmpa",
"n % x",
"n",
"x",
"if (tmpa == 0) {\n System.out.println(tmps * t);\n } else {\n System.out.println((tmps + 1) * t);\n }",
"tmpa == 0",
"tmpa",
"0",
"{\n System.out.println(tmps * t);\n }",
"System.out.println(tmps * t)",
"System.out.println",
"System.out",
"System",
"System.out",
"tmps * t",
"tmps",
"t",
"{\n System.out.println((tmps + 1) * t);\n }",
"System.out.println((tmps + 1) * t)",
"System.out.println",
"System.out",
"System",
"System.out",
"(tmps + 1) * t",
"(tmps + 1)",
"tmps",
"1",
"t",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n int tmps = n / x;\n int tmpa = n % x;\n if (tmpa == 0) {\n System.out.println(tmps * t);\n } else {\n System.out.println((tmps + 1) * t);\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n int tmps = n / x;\n int tmpa = n % x;\n if (tmpa == 0) {\n System.out.println(tmps * t);\n } else {\n System.out.println((tmps + 1) * t);\n }\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int x = sc.nextInt();
int t = sc.nextInt();
int tmps = n / x;
int tmpa = n % x;
if (tmpa == 0) {
System.out.println(tmps * t);
} else {
System.out.println((tmps + 1) * t);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
42,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
53,
5
],
[
53,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
6,
50
],
[
50,
51
],
[
0,
52
],
[
52,
53
],
[
52,
54
]
]
| [
"import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\t\t\n int x = sc.nextInt();\n\t\tint t = sc.nextInt();\n int ans = 0;\n int count = 0;\n while(count<n){count+=x;\n ans+=t; \n } \n\t\tSystem.out.println(ans);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\t\t\n int x = sc.nextInt();\n\t\tint t = sc.nextInt();\n int ans = 0;\n int count = 0;\n while(count<n){count+=x;\n ans+=t; \n } \n\t\tSystem.out.println(ans);\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\t\t\n int x = sc.nextInt();\n\t\tint t = sc.nextInt();\n int ans = 0;\n int count = 0;\n while(count<n){count+=x;\n ans+=t; \n } \n\t\tSystem.out.println(ans);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\t\t\n int x = sc.nextInt();\n\t\tint t = sc.nextInt();\n int ans = 0;\n int count = 0;\n while(count<n){count+=x;\n ans+=t; \n } \n\t\tSystem.out.println(ans);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t = sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ans = 0;",
"ans",
"0",
"int count = 0;",
"count",
"0",
"while(count<n){count+=x;\n ans+=t; \n }",
"count<n",
"count",
"n",
"{count+=x;\n ans+=t; \n }",
"count+=x",
"count",
"x",
"ans+=t",
"ans",
"t",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\t\t\n int x = sc.nextInt();\n\t\tint t = sc.nextInt();\n int ans = 0;\n int count = 0;\n while(count<n){count+=x;\n ans+=t; \n } \n\t\tSystem.out.println(ans);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\t\t\n int x = sc.nextInt();\n\t\tint t = sc.nextInt();\n int ans = 0;\n int count = 0;\n while(count<n){count+=x;\n ans+=t; \n } \n\t\tSystem.out.println(ans);\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int x = sc.nextInt();
int t = sc.nextInt();
int ans = 0;
int count = 0;
while(count<n){count+=x;
ans+=t;
}
System.out.println(ans);
}
} |
[
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,
41,
13,
4,
18,
13,
41,
13,
2,
2,
2,
13,
13,
17,
13,
4,
18,
13,
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
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
32,
38
],
[
11,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
42,
44
],
[
9,
45
],
[
45,
46
]
]
| [
"import java.util.*;\nimport static java.lang.System.*;\n\nclass Main{\n public static void main(String[] a){\n Scanner sc = new Scanner(in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n \n int y = (n+x-1)/x;\n out.print(y * t);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import static java.lang.System.*;",
"import static java.lang.System.*;",
"import static java.lang.System.*;",
"class Main{\n public static void main(String[] a){\n Scanner sc = new Scanner(in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n \n int y = (n+x-1)/x;\n out.print(y * t);\n }\n}",
"Main",
"public static void main(String[] a){\n Scanner sc = new Scanner(in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n \n int y = (n+x-1)/x;\n out.print(y * t);\n }",
"main",
"{\n Scanner sc = new Scanner(in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n \n int y = (n+x-1)/x;\n out.print(y * t);\n }",
"Scanner sc = new Scanner(in);",
"sc",
"new Scanner(in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t = sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y = (n+x-1)/x;",
"y",
"(n+x-1)/x",
"(n+x-1)",
"n+x",
"n",
"x",
"1",
"x",
"out.print(y * t)",
"out.print",
"out",
"y * t",
"y",
"t",
"String[] a",
"a"
]
| import java.util.*;
import static java.lang.System.*;
class Main{
public static void main(String[] a){
Scanner sc = new Scanner(in);
int n = sc.nextInt();
int x = sc.nextInt();
int t = sc.nextInt();
int y = (n+x-1)/x;
out.print(y * t);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
2,
13,
13,
14,
2,
2,
13,
13,
17,
30,
40,
13,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
29,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
68,
5
],
[
68,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
34,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
8,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
8,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
8,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
8,
61
],
[
61,
62
],
[
62,
63
],
[
8,
64
],
[
6,
65
],
[
65,
66
],
[
0,
67
],
[
67,
68
],
[
67,
69
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int x = Integer.parseInt(sc.next());\n int t = Integer.parseInt(sc.next());\n \n int ans = n / x;\n if(n%x > 0){\n ans++;\n }\n ans = ans * t;\n\n System.out.println(ans);\n \n sc.close();\n return;\n }\n \n \n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int x = Integer.parseInt(sc.next());\n int t = Integer.parseInt(sc.next());\n \n int ans = n / x;\n if(n%x > 0){\n ans++;\n }\n ans = ans * t;\n\n System.out.println(ans);\n \n sc.close();\n return;\n }\n \n \n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int x = Integer.parseInt(sc.next());\n int t = Integer.parseInt(sc.next());\n \n int ans = n / x;\n if(n%x > 0){\n ans++;\n }\n ans = ans * t;\n\n System.out.println(ans);\n \n sc.close();\n return;\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int x = Integer.parseInt(sc.next());\n int t = Integer.parseInt(sc.next());\n \n int ans = n / x;\n if(n%x > 0){\n ans++;\n }\n ans = ans * t;\n\n System.out.println(ans);\n \n sc.close();\n return;\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = Integer.parseInt(sc.next());",
"n",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int x = Integer.parseInt(sc.next());",
"x",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int t = Integer.parseInt(sc.next());",
"t",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int ans = n / x;",
"ans",
"n / x",
"n",
"x",
"if(n%x > 0){\n ans++;\n }",
"n%x > 0",
"n%x",
"n",
"x",
"0",
"{\n ans++;\n }",
"ans++",
"ans",
"ans = ans * t",
"ans",
"ans * t",
"ans",
"t",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"sc.close()",
"sc.close",
"sc",
"return;",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int x = Integer.parseInt(sc.next());\n int t = Integer.parseInt(sc.next());\n \n int ans = n / x;\n if(n%x > 0){\n ans++;\n }\n ans = ans * t;\n\n System.out.println(ans);\n \n sc.close();\n return;\n }\n \n \n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int x = Integer.parseInt(sc.next());\n int t = Integer.parseInt(sc.next());\n \n int ans = n / x;\n if(n%x > 0){\n ans++;\n }\n ans = ans * t;\n\n System.out.println(ans);\n \n sc.close();\n return;\n }\n \n \n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.next());
int x = Integer.parseInt(sc.next());
int t = Integer.parseInt(sc.next());
int ans = n / x;
if(n%x > 0){
ans++;
}
ans = ans * t;
System.out.println(ans);
sc.close();
return;
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
41,
13,
17,
12,
13,
30,
4,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
13,
13,
17,
30,
4,
18,
13,
2,
2,
13,
13,
13,
30,
4,
18,
13,
2,
2,
2,
13,
13,
13,
13,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
42,
40,
4,
18,
13,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
189,
8
],
[
189,
9
],
[
9,
10
],
[
9,
11
],
[
189,
12
],
[
12,
13
],
[
12,
14
],
[
189,
15
],
[
15,
16
],
[
15,
17
],
[
189,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
18,
26
],
[
26,
27
],
[
189,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
30,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
30,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
46,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
46,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
65,
71
],
[
189,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
72,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
83,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
88,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
82,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
72,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
110,
111
],
[
72,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
119,
120
],
[
72,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
133,
134
],
[
133,
135
],
[
128,
136
],
[
136,
137
],
[
137,
138
],
[
128,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
144,
145
],
[
123,
146
],
[
146,
147
],
[
121,
148
],
[
148,
149
],
[
72,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
154,
157
],
[
157,
158
],
[
72,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
161,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
166,
171
],
[
171,
172
],
[
171,
173
],
[
166,
174
],
[
174,
175
],
[
175,
176
],
[
166,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
178,
182
],
[
182,
183
],
[
161,
184
],
[
184,
185
],
[
159,
186
],
[
186,
187
],
[
0,
188
],
[
188,
189
],
[
188,
190
]
]
| [
"\n\nimport java.util.*;\nimport java.io.*;\n\npublic class Main {\n static class FS {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n public long[] readLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n }\n\n static final FS sc = new FS();\n static final PrintWriter out = new PrintWriter(System.out);\n static final int mod = 1000000007;\n\n public static void main(String[] args) {\n\n solve();\n out.close();\n\n }\n\n static void solve() {\n int n = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n if (n % a == 0) {\n out.println((n / a) * b);\n } else {\n out.println(((n / a) * b) + b );\n }\n\n }\n}\n\n",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n static class FS {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n public long[] readLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n }\n\n static final FS sc = new FS();\n static final PrintWriter out = new PrintWriter(System.out);\n static final int mod = 1000000007;\n\n public static void main(String[] args) {\n\n solve();\n out.close();\n\n }\n\n static void solve() {\n int n = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n if (n % a == 0) {\n out.println((n / a) * b);\n } else {\n out.println(((n / a) * b) + b );\n }\n\n }\n}",
"Main",
"static final FS sc = new FS();",
"sc",
"new FS()",
"static final PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"static final int mod = 1000000007;",
"mod",
"1000000007",
"public static void main(String[] args) {\n\n solve();\n out.close();\n\n }",
"main",
"{\n\n solve();\n out.close();\n\n }",
"solve()",
"solve",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static void solve() {\n int n = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n if (n % a == 0) {\n out.println((n / a) * b);\n } else {\n out.println(((n / a) * b) + b );\n }\n\n }",
"solve",
"{\n int n = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n if (n % a == 0) {\n out.println((n / a) * b);\n } else {\n out.println(((n / a) * b) + b );\n }\n\n }",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (n % a == 0) {\n out.println((n / a) * b);\n } else {\n out.println(((n / a) * b) + b );\n }",
"n % a == 0",
"n % a",
"n",
"a",
"0",
"{\n out.println((n / a) * b);\n }",
"out.println((n / a) * b)",
"out.println",
"out",
"(n / a) * b",
"(n / a)",
"n",
"a",
"b",
"{\n out.println(((n / a) * b) + b );\n }",
"out.println(((n / a) * b) + b )",
"out.println",
"out",
"((n / a) * b) + b",
"((n / a) * b)",
"(n / a)",
"n",
"a",
"b",
"b",
"static class FS {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n public long[] readLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n }",
"FS",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st = new StringTokenizer(\"\");",
"st",
"new StringTokenizer(\"\")",
"String next() {\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }",
"next",
"{\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }",
"while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }",
"readArray",
"{\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++)\n a[i] = nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = nextInt();",
"a[i] = nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public long[] readLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }",
"readLongArray",
"{\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }",
"long[] a = new long[n];",
"a",
"new long[n]",
"n",
"for (int i = 0; i < n; i++)\n a[i] = nextLong();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = nextLong();",
"a[i] = nextLong()",
"a[i]",
"a",
"i",
"nextLong()",
"nextLong",
"return a;",
"a",
"int n",
"n",
"public class Main {\n static class FS {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n public long[] readLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n }\n\n static final FS sc = new FS();\n static final PrintWriter out = new PrintWriter(System.out);\n static final int mod = 1000000007;\n\n public static void main(String[] args) {\n\n solve();\n out.close();\n\n }\n\n static void solve() {\n int n = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n if (n % a == 0) {\n out.println((n / a) * b);\n } else {\n out.println(((n / a) * b) + b );\n }\n\n }\n}",
"public class Main {\n static class FS {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n public long[] readLongArray(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n }\n\n static final FS sc = new FS();\n static final PrintWriter out = new PrintWriter(System.out);\n static final int mod = 1000000007;\n\n public static void main(String[] args) {\n\n solve();\n out.close();\n\n }\n\n static void solve() {\n int n = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n if (n % a == 0) {\n out.println((n / a) * b);\n } else {\n out.println(((n / a) * b) + b );\n }\n\n }\n}",
"Main"
]
|
import java.util.*;
import java.io.*;
public class Main {
static class FS {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer("");
String next() {
while (!st.hasMoreTokens())
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
int[] readArray(int n) {
int[] a = new int[n];
for (int i = 0; i < n; i++)
a[i] = nextInt();
return a;
}
long nextLong() {
return Long.parseLong(next());
}
public long[] readLongArray(int n) {
long[] a = new long[n];
for (int i = 0; i < n; i++)
a[i] = nextLong();
return a;
}
}
static final FS sc = new FS();
static final PrintWriter out = new PrintWriter(System.out);
static final int mod = 1000000007;
public static void main(String[] args) {
solve();
out.close();
}
static void solve() {
int n = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
if (n % a == 0) {
out.println((n / a) * b);
} else {
out.println(((n / a) * b) + b );
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
2,
2,
13,
2,
13,
17,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
47,
5
],
[
47,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
33,
35
],
[
30,
36
],
[
29,
37
],
[
8,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
6,
44
],
[
44,
45
],
[
0,
46
],
[
46,
47
],
[
46,
48
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n\n int res = (n + (x-1)) / x * t;\n System.out.println(res);\n }\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n\n int res = (n + (x-1)) / x * t;\n System.out.println(res);\n }\n\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n\n int res = (n + (x-1)) / x * t;\n System.out.println(res);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n\n int res = (n + (x-1)) / x * t;\n System.out.println(res);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t = sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int res = (n + (x-1)) / x * t;",
"res",
"(n + (x-1)) / x * t",
"(n + (x-1)) / x",
"(n + (x-1))",
"n",
"(x-1)",
"x",
"1",
"x",
"t",
"System.out.println(res)",
"System.out.println",
"System.out",
"System",
"System.out",
"res",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n\n int res = (n + (x-1)) / x * t;\n System.out.println(res);\n }\n\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n\n int res = (n + (x-1)) / x * t;\n System.out.println(res);\n }\n\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int x = sc.nextInt();
int t = sc.nextInt();
int res = (n + (x-1)) / x * t;
System.out.println(res);
}
} |
[
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,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
13,
13,
4,
18,
13,
2,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
29,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
177,
11
],
[
177,
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
],
[
14,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
14,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
41,
42
],
[
41,
43
],
[
14,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
47,
48
],
[
47,
49
],
[
14,
50
],
[
50,
51
],
[
51,
52
],
[
12,
53
],
[
53,
54
],
[
177,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
55,
59
],
[
59,
60
],
[
55,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
61,
67
],
[
67,
68
],
[
55,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
69,
75
],
[
75,
76
],
[
55,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
80,
89
],
[
89,
90
],
[
89,
91
],
[
79,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
55,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
103,
104
],
[
55,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
112,
113
],
[
55,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
55,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
125,
128
],
[
128,
129
],
[
55,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
55,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
144,
149
],
[
149,
150
],
[
149,
151
],
[
144,
152
],
[
152,
153
],
[
153,
154
],
[
144,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
156,
160
],
[
160,
161
],
[
139,
162
],
[
162,
163
],
[
137,
164
],
[
164,
165
],
[
55,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
168,
172
],
[
172,
173
],
[
166,
174
],
[
174,
175
],
[
0,
176
],
[
176,
177
],
[
176,
178
]
]
| [
"import java.io.*;\nimport java.util.*;\nimport java.math.BigInteger;\npublic class Main {\n\t\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tPrintWriter syso = new PrintWriter(System.out);\n\t\tdouble n=sc.nextDouble();\n\t\tdouble a=sc.nextDouble();\n\t\tint t=sc.nextInt();\n\t\tint ans=(int)Math.ceil(n/a);\n\t\tsyso.println(ans*t);\n syso.close();\n }\n \n \n\tstatic class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n \n\t\tpublic Scanner(InputStream s) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(s));\n\t\t}\n \n\t\tpublic Scanner(String file) throws FileNotFoundException {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n \n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n \n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n \n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\t\tpublic int[] nextArr(int n) throws IOException{\n\t\t\tint arr[]=new int[n];\n\t\t\tfor(int i=0;i<n;i++)arr[i]=nextInt();\n\t\t\treturn arr;\n\t\t}\n\t\tpublic BigInteger BigInteger(String s) throws IOException{\n\t\t\tBigInteger a=new BigInteger(s);\n\t\t\treturn a;\n\t\t}\n \n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"public class Main {\n\t\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tPrintWriter syso = new PrintWriter(System.out);\n\t\tdouble n=sc.nextDouble();\n\t\tdouble a=sc.nextDouble();\n\t\tint t=sc.nextInt();\n\t\tint ans=(int)Math.ceil(n/a);\n\t\tsyso.println(ans*t);\n syso.close();\n }\n \n \n\tstatic class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n \n\t\tpublic Scanner(InputStream s) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(s));\n\t\t}\n \n\t\tpublic Scanner(String file) throws FileNotFoundException {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n \n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n \n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n \n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\t\tpublic int[] nextArr(int n) throws IOException{\n\t\t\tint arr[]=new int[n];\n\t\t\tfor(int i=0;i<n;i++)arr[i]=nextInt();\n\t\t\treturn arr;\n\t\t}\n\t\tpublic BigInteger BigInteger(String s) throws IOException{\n\t\t\tBigInteger a=new BigInteger(s);\n\t\t\treturn a;\n\t\t}\n \n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tPrintWriter syso = new PrintWriter(System.out);\n\t\tdouble n=sc.nextDouble();\n\t\tdouble a=sc.nextDouble();\n\t\tint t=sc.nextInt();\n\t\tint ans=(int)Math.ceil(n/a);\n\t\tsyso.println(ans*t);\n syso.close();\n }",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tPrintWriter syso = new PrintWriter(System.out);\n\t\tdouble n=sc.nextDouble();\n\t\tdouble a=sc.nextDouble();\n\t\tint t=sc.nextInt();\n\t\tint ans=(int)Math.ceil(n/a);\n\t\tsyso.println(ans*t);\n syso.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"PrintWriter syso = new PrintWriter(System.out);",
"syso",
"new PrintWriter(System.out)",
"double n=sc.nextDouble();",
"n",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"double a=sc.nextDouble();",
"a",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"int t=sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ans=(int)Math.ceil(n/a);",
"ans",
"(int)Math.ceil(n/a)",
"Math.ceil",
"Math",
"n/a",
"n",
"a",
"syso.println(ans*t)",
"syso.println",
"syso",
"ans*t",
"ans",
"t",
"syso.close()",
"syso.close",
"syso",
"String[] args",
"args",
"static class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n \n\t\tpublic Scanner(InputStream s) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(s));\n\t\t}\n \n\t\tpublic Scanner(String file) throws FileNotFoundException {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n \n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n \n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n \n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\t\tpublic int[] nextArr(int n) throws IOException{\n\t\t\tint arr[]=new int[n];\n\t\t\tfor(int i=0;i<n;i++)arr[i]=nextInt();\n\t\t\treturn arr;\n\t\t}\n\t\tpublic BigInteger BigInteger(String s) throws IOException{\n\t\t\tBigInteger a=new BigInteger(s);\n\t\t\treturn a;\n\t\t}\n \n\t}",
"Scanner",
"StringTokenizer st;",
"st",
"BufferedReader br;",
"br",
"public Scanner(InputStream s) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(s));\n\t\t}",
"Scanner",
"{\n\t\t\tbr = new BufferedReader(new InputStreamReader(s));\n\t\t}",
"br = new BufferedReader(new InputStreamReader(s))",
"br",
"new BufferedReader(new InputStreamReader(s))",
"InputStream s",
"s",
"public Scanner(String file) throws FileNotFoundException {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}",
"Scanner",
"{\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}",
"br = new BufferedReader(new FileReader(file))",
"br",
"new BufferedReader(new FileReader(file))",
"String file",
"file",
"public String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}",
"next",
"{\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}",
"while (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"nextInt",
"{\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"nextLong",
"{\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}",
"nextLine",
"{\n\t\t\treturn br.readLine();\n\t\t}",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"public double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}",
"nextDouble",
"{\n\t\t\treturn Double.parseDouble(next());\n\t\t}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}",
"ready",
"{\n\t\t\treturn br.ready();\n\t\t}",
"return br.ready();",
"br.ready()",
"br.ready",
"br",
"public int[] nextArr(int n) throws IOException{\n\t\t\tint arr[]=new int[n];\n\t\t\tfor(int i=0;i<n;i++)arr[i]=nextInt();\n\t\t\treturn arr;\n\t\t}",
"nextArr",
"{\n\t\t\tint arr[]=new int[n];\n\t\t\tfor(int i=0;i<n;i++)arr[i]=nextInt();\n\t\t\treturn arr;\n\t\t}",
"int arr[]=new int[n];",
"arr",
"new int[n]",
"n",
"for(int i=0;i<n;i++)arr[i]=nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"arr[i]=nextInt();",
"arr[i]=nextInt()",
"arr[i]",
"arr",
"i",
"nextInt()",
"nextInt",
"return arr;",
"arr",
"int n",
"n",
"public BigInteger BigInteger(String s) throws IOException{\n\t\t\tBigInteger a=new BigInteger(s);\n\t\t\treturn a;\n\t\t}",
"BigInteger",
"{\n\t\t\tBigInteger a=new BigInteger(s);\n\t\t\treturn a;\n\t\t}",
"BigInteger a=new BigInteger(s);",
"a",
"new BigInteger(s)",
"return a;",
"a",
"String s",
"s",
"public class Main {\n\t\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tPrintWriter syso = new PrintWriter(System.out);\n\t\tdouble n=sc.nextDouble();\n\t\tdouble a=sc.nextDouble();\n\t\tint t=sc.nextInt();\n\t\tint ans=(int)Math.ceil(n/a);\n\t\tsyso.println(ans*t);\n syso.close();\n }\n \n \n\tstatic class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n \n\t\tpublic Scanner(InputStream s) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(s));\n\t\t}\n \n\t\tpublic Scanner(String file) throws FileNotFoundException {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n \n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n \n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n \n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\t\tpublic int[] nextArr(int n) throws IOException{\n\t\t\tint arr[]=new int[n];\n\t\t\tfor(int i=0;i<n;i++)arr[i]=nextInt();\n\t\t\treturn arr;\n\t\t}\n\t\tpublic BigInteger BigInteger(String s) throws IOException{\n\t\t\tBigInteger a=new BigInteger(s);\n\t\t\treturn a;\n\t\t}\n \n\t}\n}",
"public class Main {\n\t\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tPrintWriter syso = new PrintWriter(System.out);\n\t\tdouble n=sc.nextDouble();\n\t\tdouble a=sc.nextDouble();\n\t\tint t=sc.nextInt();\n\t\tint ans=(int)Math.ceil(n/a);\n\t\tsyso.println(ans*t);\n syso.close();\n }\n \n \n\tstatic class Scanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n \n\t\tpublic Scanner(InputStream s) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(s));\n\t\t}\n \n\t\tpublic Scanner(String file) throws FileNotFoundException {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n \n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n \n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n \n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\t\tpublic int[] nextArr(int n) throws IOException{\n\t\t\tint arr[]=new int[n];\n\t\t\tfor(int i=0;i<n;i++)arr[i]=nextInt();\n\t\t\treturn arr;\n\t\t}\n\t\tpublic BigInteger BigInteger(String s) throws IOException{\n\t\t\tBigInteger a=new BigInteger(s);\n\t\t\treturn a;\n\t\t}\n \n\t}\n}",
"Main"
]
| import java.io.*;
import java.util.*;
import java.math.BigInteger;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
PrintWriter syso = new PrintWriter(System.out);
double n=sc.nextDouble();
double a=sc.nextDouble();
int t=sc.nextInt();
int ans=(int)Math.ceil(n/a);
syso.println(ans*t);
syso.close();
}
static class Scanner {
StringTokenizer st;
BufferedReader br;
public Scanner(InputStream s) {
br = new BufferedReader(new InputStreamReader(s));
}
public Scanner(String file) throws FileNotFoundException {
br = new BufferedReader(new FileReader(file));
}
public String next() throws IOException {
while (st == null || !st.hasMoreTokens())
st = new StringTokenizer(br.readLine());
return st.nextToken();
}
public int nextInt() throws IOException {
return Integer.parseInt(next());
}
public long nextLong() throws IOException {
return Long.parseLong(next());
}
public String nextLine() throws IOException {
return br.readLine();
}
public double nextDouble() throws IOException {
return Double.parseDouble(next());
}
public boolean ready() throws IOException {
return br.ready();
}
public int[] nextArr(int n) throws IOException{
int arr[]=new int[n];
for(int i=0;i<n;i++)arr[i]=nextInt();
return arr;
}
public BigInteger BigInteger(String s) throws IOException{
BigInteger a=new BigInteger(s);
return a;
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
13,
13,
17,
4,
18,
13,
2,
2,
13,
13,
13,
4,
18,
13,
2,
2,
2,
13,
13,
13,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
0,
13,
20,
4,
13,
4,
18,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
4,
13,
4,
18,
13,
12,
13,
30,
4,
18,
20,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
14,
2,
13,
17,
29,
17,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
14,
2,
13,
17,
29,
17,
0,
13,
20,
29,
17,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
29,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
29,
13,
23,
13,
12,
13,
30,
29,
20,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
29,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
340,
11
],
[
340,
12
],
[
12,
13
],
[
340,
14
],
[
14,
15
],
[
340,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
18,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
18,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
18,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
34,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
51,
57
],
[
340,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
61,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
72,
74
],
[
68,
75
],
[
75,
76
],
[
68,
77
],
[
77,
78
],
[
78,
79
],
[
340,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
86,
88
],
[
82,
89
],
[
89,
90
],
[
82,
91
],
[
91,
92
],
[
92,
93
],
[
340,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
94,
100
],
[
100,
101
],
[
340,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
102,
106
],
[
106,
107
],
[
102,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
111,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
108,
122
],
[
122,
123
],
[
102,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
124,
130
],
[
130,
131
],
[
102,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
136,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
135,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
148,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
159,
160
],
[
144,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
161,
165
],
[
165,
166
],
[
144,
167
],
[
167,
168
],
[
167,
169
],
[
134,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
102,
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
],
[
186,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
190,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
200,
201
],
[
201,
202
],
[
186,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
203,
207
],
[
207,
208
],
[
186,
209
],
[
209,
210
],
[
209,
211
],
[
176,
212
],
[
212,
213
],
[
102,
214
],
[
214,
215
],
[
214,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
218,
221
],
[
221,
222
],
[
102,
223
],
[
223,
224
],
[
223,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
225,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
230,
235
],
[
235,
236
],
[
235,
237
],
[
230,
238
],
[
238,
239
],
[
239,
240
],
[
230,
241
],
[
242,
242
],
[
242,
243
],
[
243,
244
],
[
244,
245
],
[
244,
246
],
[
243,
247
],
[
247,
248
],
[
248,
249
],
[
225,
250
],
[
250,
251
],
[
223,
252
],
[
252,
253
],
[
102,
254
],
[
254,
255
],
[
254,
256
],
[
256,
257
],
[
257,
258
],
[
258,
259
],
[
259,
260
],
[
258,
261
],
[
261,
262
],
[
102,
263
],
[
263,
264
],
[
263,
265
],
[
265,
266
],
[
266,
267
],
[
266,
268
],
[
265,
270
],
[
270,
271
],
[
271,
272
],
[
272,
273
],
[
272,
274
],
[
270,
275
],
[
275,
276
],
[
275,
277
],
[
270,
278
],
[
278,
279
],
[
279,
280
],
[
270,
281
],
[
282,
282
],
[
282,
283
],
[
283,
284
],
[
284,
285
],
[
284,
286
],
[
283,
287
],
[
287,
288
],
[
288,
289
],
[
265,
290
],
[
290,
291
],
[
263,
292
],
[
292,
293
],
[
102,
294
],
[
294,
295
],
[
294,
296
],
[
296,
297
],
[
297,
298
],
[
102,
299
],
[
299,
300
],
[
299,
301
],
[
301,
302
],
[
302,
303
],
[
303,
304
],
[
304,
305
],
[
303,
306
],
[
306,
307
],
[
102,
308
],
[
308,
309
],
[
308,
310
],
[
310,
311
],
[
311,
312
],
[
311,
313
],
[
310,
315
],
[
315,
316
],
[
316,
317
],
[
317,
318
],
[
317,
319
],
[
315,
320
],
[
320,
321
],
[
320,
322
],
[
315,
323
],
[
323,
324
],
[
324,
325
],
[
315,
326
],
[
327,
327
],
[
327,
328
],
[
328,
329
],
[
329,
330
],
[
329,
331
],
[
328,
332
],
[
332,
333
],
[
333,
334
],
[
310,
335
],
[
335,
336
],
[
308,
337
],
[
337,
338
],
[
0,
339
],
[
339,
340
],
[
339,
341
]
]
| [
"import java.io.*;\nimport java.math.*;\nimport java.util.*;\n\npublic class Main {\n FastScanner sc;\n PrintWriter p;\n\n void solve() {\n int N = sc.nextInt();\n int X = sc.nextInt();\n int T = sc.nextInt();\n if(N % X == 0)\n p.println((N / X) * T);\n else\n p.println((N / X) * T + T);\n }\n\n void run() {\n try {\n sc = new FastScanner(new File(\"Takoyaki.in\"));\n p = new PrintWriter(new File(\"Takoyaki.out\"));\n\n solve();\n\n p.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }\n\n void runIO() {\n\n sc = new FastScanner(System.in);\n p = new PrintWriter(System.out);\n\n solve();\n\n p.close();\n }\n\n class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public FastScanner(File f) {\n try {\n br = new BufferedReader(new FileReader(f));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }\n\n public FastScanner(InputStream f) {\n br = new BufferedReader(new InputStreamReader(f));\n }\n\n String next() {\n while (st == null || !st.hasMoreTokens()) {\n String s = null;\n try {\n s = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n }\n return st.nextToken();\n }\n\n boolean hasMoreTokens() {\n while (st == null || !st.hasMoreTokens()) {\n String s = null;\n try {\n s = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (s == null)\n return false;\n st = new StringTokenizer(s);\n }\n return true;\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] nextIntArray(int N) {\n int[] A = new int[N];\n for (int i = 0; i < N; i++) {\n A[i] = sc.nextInt();\n }\n return A;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n long[] nextLongArray(int N) {\n long[] A = new long[N];\n for (int i = 0; i < N; i++) {\n A[i] = sc.nextLong();\n }\n return A;\n }\n\n BigInteger nextBigInteger() {\n return new BigInteger(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n double[] nextDoubleArray(int N) {\n double[] A = new double[N];\n for (int i = 0; i < N; i++) {\n A[i] = sc.nextDouble();\n }\n return A;\n }\n\n }\n\n public static void main(String[] args) {\n new Main().runIO();\n }\n}\n\n",
"import java.io.*;",
"io.*",
"java",
"import java.math.*;",
"math.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n FastScanner sc;\n PrintWriter p;\n\n void solve() {\n int N = sc.nextInt();\n int X = sc.nextInt();\n int T = sc.nextInt();\n if(N % X == 0)\n p.println((N / X) * T);\n else\n p.println((N / X) * T + T);\n }\n\n void run() {\n try {\n sc = new FastScanner(new File(\"Takoyaki.in\"));\n p = new PrintWriter(new File(\"Takoyaki.out\"));\n\n solve();\n\n p.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }\n\n void runIO() {\n\n sc = new FastScanner(System.in);\n p = new PrintWriter(System.out);\n\n solve();\n\n p.close();\n }\n\n class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public FastScanner(File f) {\n try {\n br = new BufferedReader(new FileReader(f));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }\n\n public FastScanner(InputStream f) {\n br = new BufferedReader(new InputStreamReader(f));\n }\n\n String next() {\n while (st == null || !st.hasMoreTokens()) {\n String s = null;\n try {\n s = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n }\n return st.nextToken();\n }\n\n boolean hasMoreTokens() {\n while (st == null || !st.hasMoreTokens()) {\n String s = null;\n try {\n s = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (s == null)\n return false;\n st = new StringTokenizer(s);\n }\n return true;\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] nextIntArray(int N) {\n int[] A = new int[N];\n for (int i = 0; i < N; i++) {\n A[i] = sc.nextInt();\n }\n return A;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n long[] nextLongArray(int N) {\n long[] A = new long[N];\n for (int i = 0; i < N; i++) {\n A[i] = sc.nextLong();\n }\n return A;\n }\n\n BigInteger nextBigInteger() {\n return new BigInteger(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n double[] nextDoubleArray(int N) {\n double[] A = new double[N];\n for (int i = 0; i < N; i++) {\n A[i] = sc.nextDouble();\n }\n return A;\n }\n\n }\n\n public static void main(String[] args) {\n new Main().runIO();\n }\n}",
"Main",
"FastScanner sc;",
"sc",
"PrintWriter p;",
"p",
"void solve() {\n int N = sc.nextInt();\n int X = sc.nextInt();\n int T = sc.nextInt();\n if(N % X == 0)\n p.println((N / X) * T);\n else\n p.println((N / X) * T + T);\n }",
"solve",
"{\n int N = sc.nextInt();\n int X = sc.nextInt();\n int T = sc.nextInt();\n if(N % X == 0)\n p.println((N / X) * T);\n else\n p.println((N / X) * T + T);\n }",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int X = sc.nextInt();",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int T = sc.nextInt();",
"T",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(N % X == 0)\n p.println((N / X) * T);\n else\n p.println((N / X) * T + T);",
"N % X == 0",
"N % X",
"N",
"X",
"0",
"p.println((N / X) * T)",
"p.println",
"p",
"(N / X) * T",
"(N / X)",
"N",
"X",
"T",
"p.println((N / X) * T + T)",
"p.println",
"p",
"(N / X) * T + T",
"(N / X) * T",
"(N / X)",
"N",
"X",
"T",
"T",
"void run() {\n try {\n sc = new FastScanner(new File(\"Takoyaki.in\"));\n p = new PrintWriter(new File(\"Takoyaki.out\"));\n\n solve();\n\n p.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }",
"run",
"{\n try {\n sc = new FastScanner(new File(\"Takoyaki.in\"));\n p = new PrintWriter(new File(\"Takoyaki.out\"));\n\n solve();\n\n p.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }",
"try {\n sc = new FastScanner(new File(\"Takoyaki.in\"));\n p = new PrintWriter(new File(\"Takoyaki.out\"));\n\n solve();\n\n p.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }",
"catch (FileNotFoundException e) {\n e.printStackTrace();\n }",
"FileNotFoundException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n sc = new FastScanner(new File(\"Takoyaki.in\"));\n p = new PrintWriter(new File(\"Takoyaki.out\"));\n\n solve();\n\n p.close();\n }",
"sc = new FastScanner(new File(\"Takoyaki.in\"))",
"sc",
"new FastScanner(new File(\"Takoyaki.in\"))",
"p = new PrintWriter(new File(\"Takoyaki.out\"))",
"p",
"new PrintWriter(new File(\"Takoyaki.out\"))",
"solve()",
"solve",
"p.close()",
"p.close",
"p",
"void runIO() {\n\n sc = new FastScanner(System.in);\n p = new PrintWriter(System.out);\n\n solve();\n\n p.close();\n }",
"runIO",
"{\n\n sc = new FastScanner(System.in);\n p = new PrintWriter(System.out);\n\n solve();\n\n p.close();\n }",
"sc = new FastScanner(System.in)",
"sc",
"new FastScanner(System.in)",
"p = new PrintWriter(System.out)",
"p",
"new PrintWriter(System.out)",
"solve()",
"solve",
"p.close()",
"p.close",
"p",
"public static void main(String[] args) {\n new Main().runIO();\n }",
"main",
"{\n new Main().runIO();\n }",
"new Main().runIO()",
"new Main().runIO",
"new Main()",
"String[] args",
"args",
"class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public FastScanner(File f) {\n try {\n br = new BufferedReader(new FileReader(f));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }\n\n public FastScanner(InputStream f) {\n br = new BufferedReader(new InputStreamReader(f));\n }\n\n String next() {\n while (st == null || !st.hasMoreTokens()) {\n String s = null;\n try {\n s = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n }\n return st.nextToken();\n }\n\n boolean hasMoreTokens() {\n while (st == null || !st.hasMoreTokens()) {\n String s = null;\n try {\n s = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (s == null)\n return false;\n st = new StringTokenizer(s);\n }\n return true;\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] nextIntArray(int N) {\n int[] A = new int[N];\n for (int i = 0; i < N; i++) {\n A[i] = sc.nextInt();\n }\n return A;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n long[] nextLongArray(int N) {\n long[] A = new long[N];\n for (int i = 0; i < N; i++) {\n A[i] = sc.nextLong();\n }\n return A;\n }\n\n BigInteger nextBigInteger() {\n return new BigInteger(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n double[] nextDoubleArray(int N) {\n double[] A = new double[N];\n for (int i = 0; i < N; i++) {\n A[i] = sc.nextDouble();\n }\n return A;\n }\n\n }",
"FastScanner",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastScanner(File f) {\n try {\n br = new BufferedReader(new FileReader(f));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }",
"FastScanner",
"{\n try {\n br = new BufferedReader(new FileReader(f));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }",
"try {\n br = new BufferedReader(new FileReader(f));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }",
"catch (FileNotFoundException e) {\n e.printStackTrace();\n }",
"FileNotFoundException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n br = new BufferedReader(new FileReader(f));\n }",
"br = new BufferedReader(new FileReader(f))",
"br",
"new BufferedReader(new FileReader(f))",
"File f",
"f",
"public FastScanner(InputStream f) {\n br = new BufferedReader(new InputStreamReader(f));\n }",
"FastScanner",
"{\n br = new BufferedReader(new InputStreamReader(f));\n }",
"br = new BufferedReader(new InputStreamReader(f))",
"br",
"new BufferedReader(new InputStreamReader(f))",
"InputStream f",
"f",
"String next() {\n while (st == null || !st.hasMoreTokens()) {\n String s = null;\n try {\n s = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens()) {\n String s = null;\n try {\n s = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens()) {\n String s = null;\n try {\n s = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n String s = null;\n try {\n s = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n }",
"String s = null;",
"s",
"null",
"try {\n s = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n s = br.readLine();\n }",
"s = br.readLine()",
"s",
"br.readLine()",
"br.readLine",
"br",
"if (s == null)\n return null;",
"s == null",
"s",
"null",
"return null;",
"null",
"st = new StringTokenizer(s)",
"st",
"new StringTokenizer(s)",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"boolean hasMoreTokens() {\n while (st == null || !st.hasMoreTokens()) {\n String s = null;\n try {\n s = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (s == null)\n return false;\n st = new StringTokenizer(s);\n }\n return true;\n }",
"hasMoreTokens",
"{\n while (st == null || !st.hasMoreTokens()) {\n String s = null;\n try {\n s = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (s == null)\n return false;\n st = new StringTokenizer(s);\n }\n return true;\n }",
"while (st == null || !st.hasMoreTokens()) {\n String s = null;\n try {\n s = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (s == null)\n return false;\n st = new StringTokenizer(s);\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n String s = null;\n try {\n s = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (s == null)\n return false;\n st = new StringTokenizer(s);\n }",
"String s = null;",
"s",
"null",
"try {\n s = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n s = br.readLine();\n }",
"s = br.readLine()",
"s",
"br.readLine()",
"br.readLine",
"br",
"if (s == null)\n return false;",
"s == null",
"s",
"null",
"return false;",
"false",
"st = new StringTokenizer(s)",
"st",
"new StringTokenizer(s)",
"return true;",
"true",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"int[] nextIntArray(int N) {\n int[] A = new int[N];\n for (int i = 0; i < N; i++) {\n A[i] = sc.nextInt();\n }\n return A;\n }",
"nextIntArray",
"{\n int[] A = new int[N];\n for (int i = 0; i < N; i++) {\n A[i] = sc.nextInt();\n }\n return A;\n }",
"int[] A = new int[N];",
"A",
"new int[N]",
"N",
"for (int i = 0; i < N; i++) {\n A[i] = sc.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n A[i] = sc.nextInt();\n }",
"{\n A[i] = sc.nextInt();\n }",
"A[i] = sc.nextInt()",
"A[i]",
"A",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"return A;",
"A",
"int N",
"N",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"long[] nextLongArray(int N) {\n long[] A = new long[N];\n for (int i = 0; i < N; i++) {\n A[i] = sc.nextLong();\n }\n return A;\n }",
"nextLongArray",
"{\n long[] A = new long[N];\n for (int i = 0; i < N; i++) {\n A[i] = sc.nextLong();\n }\n return A;\n }",
"long[] A = new long[N];",
"A",
"new long[N]",
"N",
"for (int i = 0; i < N; i++) {\n A[i] = sc.nextLong();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n A[i] = sc.nextLong();\n }",
"{\n A[i] = sc.nextLong();\n }",
"A[i] = sc.nextLong()",
"A[i]",
"A",
"i",
"sc.nextLong()",
"sc.nextLong",
"sc",
"return A;",
"A",
"int N",
"N",
"BigInteger nextBigInteger() {\n return new BigInteger(next());\n }",
"nextBigInteger",
"{\n return new BigInteger(next());\n }",
"return new BigInteger(next());",
"new BigInteger(next())",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"double[] nextDoubleArray(int N) {\n double[] A = new double[N];\n for (int i = 0; i < N; i++) {\n A[i] = sc.nextDouble();\n }\n return A;\n }",
"nextDoubleArray",
"{\n double[] A = new double[N];\n for (int i = 0; i < N; i++) {\n A[i] = sc.nextDouble();\n }\n return A;\n }",
"double[] A = new double[N];",
"A",
"new double[N]",
"N",
"for (int i = 0; i < N; i++) {\n A[i] = sc.nextDouble();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n A[i] = sc.nextDouble();\n }",
"{\n A[i] = sc.nextDouble();\n }",
"A[i] = sc.nextDouble()",
"A[i]",
"A",
"i",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"return A;",
"A",
"int N",
"N",
"public class Main {\n FastScanner sc;\n PrintWriter p;\n\n void solve() {\n int N = sc.nextInt();\n int X = sc.nextInt();\n int T = sc.nextInt();\n if(N % X == 0)\n p.println((N / X) * T);\n else\n p.println((N / X) * T + T);\n }\n\n void run() {\n try {\n sc = new FastScanner(new File(\"Takoyaki.in\"));\n p = new PrintWriter(new File(\"Takoyaki.out\"));\n\n solve();\n\n p.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }\n\n void runIO() {\n\n sc = new FastScanner(System.in);\n p = new PrintWriter(System.out);\n\n solve();\n\n p.close();\n }\n\n class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public FastScanner(File f) {\n try {\n br = new BufferedReader(new FileReader(f));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }\n\n public FastScanner(InputStream f) {\n br = new BufferedReader(new InputStreamReader(f));\n }\n\n String next() {\n while (st == null || !st.hasMoreTokens()) {\n String s = null;\n try {\n s = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n }\n return st.nextToken();\n }\n\n boolean hasMoreTokens() {\n while (st == null || !st.hasMoreTokens()) {\n String s = null;\n try {\n s = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (s == null)\n return false;\n st = new StringTokenizer(s);\n }\n return true;\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] nextIntArray(int N) {\n int[] A = new int[N];\n for (int i = 0; i < N; i++) {\n A[i] = sc.nextInt();\n }\n return A;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n long[] nextLongArray(int N) {\n long[] A = new long[N];\n for (int i = 0; i < N; i++) {\n A[i] = sc.nextLong();\n }\n return A;\n }\n\n BigInteger nextBigInteger() {\n return new BigInteger(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n double[] nextDoubleArray(int N) {\n double[] A = new double[N];\n for (int i = 0; i < N; i++) {\n A[i] = sc.nextDouble();\n }\n return A;\n }\n\n }\n\n public static void main(String[] args) {\n new Main().runIO();\n }\n}",
"public class Main {\n FastScanner sc;\n PrintWriter p;\n\n void solve() {\n int N = sc.nextInt();\n int X = sc.nextInt();\n int T = sc.nextInt();\n if(N % X == 0)\n p.println((N / X) * T);\n else\n p.println((N / X) * T + T);\n }\n\n void run() {\n try {\n sc = new FastScanner(new File(\"Takoyaki.in\"));\n p = new PrintWriter(new File(\"Takoyaki.out\"));\n\n solve();\n\n p.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }\n\n void runIO() {\n\n sc = new FastScanner(System.in);\n p = new PrintWriter(System.out);\n\n solve();\n\n p.close();\n }\n\n class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public FastScanner(File f) {\n try {\n br = new BufferedReader(new FileReader(f));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }\n\n public FastScanner(InputStream f) {\n br = new BufferedReader(new InputStreamReader(f));\n }\n\n String next() {\n while (st == null || !st.hasMoreTokens()) {\n String s = null;\n try {\n s = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n }\n return st.nextToken();\n }\n\n boolean hasMoreTokens() {\n while (st == null || !st.hasMoreTokens()) {\n String s = null;\n try {\n s = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (s == null)\n return false;\n st = new StringTokenizer(s);\n }\n return true;\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] nextIntArray(int N) {\n int[] A = new int[N];\n for (int i = 0; i < N; i++) {\n A[i] = sc.nextInt();\n }\n return A;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n long[] nextLongArray(int N) {\n long[] A = new long[N];\n for (int i = 0; i < N; i++) {\n A[i] = sc.nextLong();\n }\n return A;\n }\n\n BigInteger nextBigInteger() {\n return new BigInteger(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n double[] nextDoubleArray(int N) {\n double[] A = new double[N];\n for (int i = 0; i < N; i++) {\n A[i] = sc.nextDouble();\n }\n return A;\n }\n\n }\n\n public static void main(String[] args) {\n new Main().runIO();\n }\n}",
"Main"
]
| import java.io.*;
import java.math.*;
import java.util.*;
public class Main {
FastScanner sc;
PrintWriter p;
void solve() {
int N = sc.nextInt();
int X = sc.nextInt();
int T = sc.nextInt();
if(N % X == 0)
p.println((N / X) * T);
else
p.println((N / X) * T + T);
}
void run() {
try {
sc = new FastScanner(new File("Takoyaki.in"));
p = new PrintWriter(new File("Takoyaki.out"));
solve();
p.close();
} catch (FileNotFoundException e) {
e.printStackTrace();
}
}
void runIO() {
sc = new FastScanner(System.in);
p = new PrintWriter(System.out);
solve();
p.close();
}
class FastScanner {
BufferedReader br;
StringTokenizer st;
public FastScanner(File f) {
try {
br = new BufferedReader(new FileReader(f));
} catch (FileNotFoundException e) {
e.printStackTrace();
}
}
public FastScanner(InputStream f) {
br = new BufferedReader(new InputStreamReader(f));
}
String next() {
while (st == null || !st.hasMoreTokens()) {
String s = null;
try {
s = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
if (s == null)
return null;
st = new StringTokenizer(s);
}
return st.nextToken();
}
boolean hasMoreTokens() {
while (st == null || !st.hasMoreTokens()) {
String s = null;
try {
s = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
if (s == null)
return false;
st = new StringTokenizer(s);
}
return true;
}
int nextInt() {
return Integer.parseInt(next());
}
int[] nextIntArray(int N) {
int[] A = new int[N];
for (int i = 0; i < N; i++) {
A[i] = sc.nextInt();
}
return A;
}
long nextLong() {
return Long.parseLong(next());
}
long[] nextLongArray(int N) {
long[] A = new long[N];
for (int i = 0; i < N; i++) {
A[i] = sc.nextLong();
}
return A;
}
BigInteger nextBigInteger() {
return new BigInteger(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
double[] nextDoubleArray(int N) {
double[] A = new double[N];
for (int i = 0; i < N; i++) {
A[i] = sc.nextDouble();
}
return A;
}
}
public static void main(String[] args) {
new Main().runIO();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
14,
2,
13,
17,
30,
40,
13,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
58,
5
],
[
58,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
8,
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
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
6,
55
],
[
55,
56
],
[
0,
57
],
[
57,
58
],
[
57,
59
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String [] args) {\n \tScanner sn = new Scanner(System.in);\n \tint n = sn.nextInt();\n \tint x = sn.nextInt();\n \tint t = sn.nextInt();\n \tint res = n / x;\n \tint mod = n % x;\n \tif(mod != 0) {\n \tres++;\n }\n \tres = res * t; \n System.out.println(res);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String [] args) {\n \tScanner sn = new Scanner(System.in);\n \tint n = sn.nextInt();\n \tint x = sn.nextInt();\n \tint t = sn.nextInt();\n \tint res = n / x;\n \tint mod = n % x;\n \tif(mod != 0) {\n \tres++;\n }\n \tres = res * t; \n System.out.println(res);\n }\n}",
"Main",
"public static void main(String [] args) {\n \tScanner sn = new Scanner(System.in);\n \tint n = sn.nextInt();\n \tint x = sn.nextInt();\n \tint t = sn.nextInt();\n \tint res = n / x;\n \tint mod = n % x;\n \tif(mod != 0) {\n \tres++;\n }\n \tres = res * t; \n System.out.println(res);\n }",
"main",
"{\n \tScanner sn = new Scanner(System.in);\n \tint n = sn.nextInt();\n \tint x = sn.nextInt();\n \tint t = sn.nextInt();\n \tint res = n / x;\n \tint mod = n % x;\n \tif(mod != 0) {\n \tres++;\n }\n \tres = res * t; \n System.out.println(res);\n }",
"Scanner sn = new Scanner(System.in);",
"sn",
"new Scanner(System.in)",
"int n = sn.nextInt();",
"n",
"sn.nextInt()",
"sn.nextInt",
"sn",
"int x = sn.nextInt();",
"x",
"sn.nextInt()",
"sn.nextInt",
"sn",
"int t = sn.nextInt();",
"t",
"sn.nextInt()",
"sn.nextInt",
"sn",
"int res = n / x;",
"res",
"n / x",
"n",
"x",
"int mod = n % x;",
"mod",
"n % x",
"n",
"x",
"if(mod != 0) {\n \tres++;\n }",
"mod != 0",
"mod",
"0",
"{\n \tres++;\n }",
"res++",
"res",
"res = res * t",
"res",
"res * t",
"res",
"t",
"System.out.println(res)",
"System.out.println",
"System.out",
"System",
"System.out",
"res",
"String [] args",
"args",
"public class Main {\n\tpublic static void main(String [] args) {\n \tScanner sn = new Scanner(System.in);\n \tint n = sn.nextInt();\n \tint x = sn.nextInt();\n \tint t = sn.nextInt();\n \tint res = n / x;\n \tint mod = n % x;\n \tif(mod != 0) {\n \tres++;\n }\n \tres = res * t; \n System.out.println(res);\n }\n}",
"public class Main {\n\tpublic static void main(String [] args) {\n \tScanner sn = new Scanner(System.in);\n \tint n = sn.nextInt();\n \tint x = sn.nextInt();\n \tint t = sn.nextInt();\n \tint res = n / x;\n \tint mod = n % x;\n \tif(mod != 0) {\n \tres++;\n }\n \tres = res * t; \n System.out.println(res);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String [] args) {
Scanner sn = new Scanner(System.in);
int n = sn.nextInt();
int x = sn.nextInt();
int t = sn.nextInt();
int res = n / x;
int mod = n % x;
if(mod != 0) {
res++;
}
res = res * t;
System.out.println(res);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
13,
0,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
3,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
64,
5
],
[
64,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
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
],
[
42,
46
],
[
46,
47
],
[
46,
48
],
[
42,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
53,
60
],
[
6,
61
],
[
61,
62
],
[
0,
63
],
[
63,
64
],
[
63,
65
]
]
| [
"import java.util.*;\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 X = sc.nextInt();\n\t\tint T = sc.nextInt();\n\t\t\n\t\tint time = 0;\n\t\t\n\t\tfor(int i = 1; i <= 1000; i++) {\n\t\t\ttime += T;\n\t\t\tN -= X;\n\n\t\t\tif(N <= 0) {\n\t\t\t\tSystem.out.println(time);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint X = sc.nextInt();\n\t\tint T = sc.nextInt();\n\t\t\n\t\tint time = 0;\n\t\t\n\t\tfor(int i = 1; i <= 1000; i++) {\n\t\t\ttime += T;\n\t\t\tN -= X;\n\n\t\t\tif(N <= 0) {\n\t\t\t\tSystem.out.println(time);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint X = sc.nextInt();\n\t\tint T = sc.nextInt();\n\t\t\n\t\tint time = 0;\n\t\t\n\t\tfor(int i = 1; i <= 1000; i++) {\n\t\t\ttime += T;\n\t\t\tN -= X;\n\n\t\t\tif(N <= 0) {\n\t\t\t\tSystem.out.println(time);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint X = sc.nextInt();\n\t\tint T = sc.nextInt();\n\t\t\n\t\tint time = 0;\n\t\t\n\t\tfor(int i = 1; i <= 1000; i++) {\n\t\t\ttime += T;\n\t\t\tN -= X;\n\n\t\t\tif(N <= 0) {\n\t\t\t\tSystem.out.println(time);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int X = sc.nextInt();",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int T = sc.nextInt();",
"T",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int time = 0;",
"time",
"0",
"for(int i = 1; i <= 1000; i++) {\n\t\t\ttime += T;\n\t\t\tN -= X;\n\n\t\t\tif(N <= 0) {\n\t\t\t\tSystem.out.println(time);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= 1000",
"i",
"1000",
"i++",
"i++",
"i",
"{\n\t\t\ttime += T;\n\t\t\tN -= X;\n\n\t\t\tif(N <= 0) {\n\t\t\t\tSystem.out.println(time);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\ttime += T;\n\t\t\tN -= X;\n\n\t\t\tif(N <= 0) {\n\t\t\t\tSystem.out.println(time);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"time += T",
"time",
"T",
"N -= X",
"N",
"X",
"if(N <= 0) {\n\t\t\t\tSystem.out.println(time);\n\t\t\t\tbreak;\n\t\t\t}",
"N <= 0",
"N",
"0",
"{\n\t\t\t\tSystem.out.println(time);\n\t\t\t\tbreak;\n\t\t\t}",
"System.out.println(time)",
"System.out.println",
"System.out",
"System",
"System.out",
"time",
"break;",
"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 X = sc.nextInt();\n\t\tint T = sc.nextInt();\n\t\t\n\t\tint time = 0;\n\t\t\n\t\tfor(int i = 1; i <= 1000; i++) {\n\t\t\ttime += T;\n\t\t\tN -= X;\n\n\t\t\tif(N <= 0) {\n\t\t\t\tSystem.out.println(time);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\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 N = sc.nextInt();\n\t\tint X = sc.nextInt();\n\t\tint T = sc.nextInt();\n\t\t\n\t\tint time = 0;\n\t\t\n\t\tfor(int i = 1; i <= 1000; i++) {\n\t\t\ttime += T;\n\t\t\tN -= X;\n\n\t\t\tif(N <= 0) {\n\t\t\t\tSystem.out.println(time);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int X = sc.nextInt();
int T = sc.nextInt();
int time = 0;
for(int i = 1; i <= 1000; i++) {
time += T;
N -= X;
if(N <= 0) {
System.out.println(time);
break;
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
14,
2,
2,
13,
13,
17,
0,
13,
2,
13,
13,
0,
13,
2,
2,
13,
13,
17,
4,
18,
18,
13,
13,
2,
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
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
14,
33
],
[
33,
34
],
[
14,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
35,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
14,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
12,
61
],
[
61,
62
]
]
| [
"import java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\n/* Name of the class has to be \"Main\" only if the class is public. */\nclass Main\n{\n public static void main(String args[])\n {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt(),x=sc.nextInt(),t=sc.nextInt();\n int a;\n if(n%x==0) a=n/x;\n else a=n/x+1;\n System.out.println(a*t);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"class Main\n{\n public static void main(String args[])\n {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt(),x=sc.nextInt(),t=sc.nextInt();\n int a;\n if(n%x==0) a=n/x;\n else a=n/x+1;\n System.out.println(a*t);\n }\n}",
"Main",
"public static void main(String args[])\n {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt(),x=sc.nextInt(),t=sc.nextInt();\n int a;\n if(n%x==0) a=n/x;\n else a=n/x+1;\n System.out.println(a*t);\n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt(),x=sc.nextInt(),t=sc.nextInt();\n int a;\n if(n%x==0) a=n/x;\n else a=n/x+1;\n System.out.println(a*t);\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"x=sc.nextInt()",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"t=sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a;",
"a",
"if(n%x==0) a=n/x;\n else a=n/x+1;",
"n%x==0",
"n%x",
"n",
"x",
"0",
"a=n/x",
"a",
"n/x",
"n",
"x",
"a=n/x+1",
"a",
"n/x+1",
"n/x",
"n",
"x",
"1",
"System.out.println(a*t)",
"System.out.println",
"System.out",
"System",
"System.out",
"a*t",
"a",
"t",
"String args[]",
"args"
]
| import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Main
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
int n=sc.nextInt(),x=sc.nextInt(),t=sc.nextInt();
int a;
if(n%x==0) a=n/x;
else a=n/x+1;
System.out.println(a*t);
}
}
|
[
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,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
2,
2,
13,
2,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
13,
2,
2,
2,
13,
2,
13,
13,
13,
17,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
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
],
[
34,
35
],
[
35,
36
],
[
23,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
23,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
42,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
56,
62
],
[
42,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
75,
77
],
[
72,
78
],
[
71,
79
],
[
21,
80
],
[
80,
81
]
]
| [
"import java.util.Scanner;\nimport java.util.Arrays;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.stream.Collectors;\nimport java.util.HashSet;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N=sc.nextInt();\n int X=sc.nextInt();\n int T=sc.nextInt();\n\n\nif(N%X==0){\n System.out.println(T*((N-N%X)/X));\n\n}else{\n System.out.println(T*((N-N%X)/X+1));\n\n}\n}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.stream.Collectors;",
"Collectors",
"java.util.stream",
"import java.util.HashSet;",
"HashSet",
"java.util",
"class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N=sc.nextInt();\n int X=sc.nextInt();\n int T=sc.nextInt();\n\n\nif(N%X==0){\n System.out.println(T*((N-N%X)/X));\n\n}else{\n System.out.println(T*((N-N%X)/X+1));\n\n}\n}\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int N=sc.nextInt();\n int X=sc.nextInt();\n int T=sc.nextInt();\n\n\nif(N%X==0){\n System.out.println(T*((N-N%X)/X));\n\n}else{\n System.out.println(T*((N-N%X)/X+1));\n\n}\n}",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N=sc.nextInt();\n int X=sc.nextInt();\n int T=sc.nextInt();\n\n\nif(N%X==0){\n System.out.println(T*((N-N%X)/X));\n\n}else{\n System.out.println(T*((N-N%X)/X+1));\n\n}\n}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N=sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int X=sc.nextInt();",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int T=sc.nextInt();",
"T",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(N%X==0){\n System.out.println(T*((N-N%X)/X));\n\n}else{\n System.out.println(T*((N-N%X)/X+1));\n\n}",
"N%X==0",
"N%X",
"N",
"X",
"0",
"{\n System.out.println(T*((N-N%X)/X));\n\n}",
"System.out.println(T*((N-N%X)/X))",
"System.out.println",
"System.out",
"System",
"System.out",
"T*((N-N%X)/X)",
"T",
"((N-N%X)/X)",
"(N-N%X)",
"N",
"N%X",
"N",
"X",
"X",
"{\n System.out.println(T*((N-N%X)/X+1));\n\n}",
"System.out.println(T*((N-N%X)/X+1))",
"System.out.println",
"System.out",
"System",
"System.out",
"T*((N-N%X)/X+1)",
"T",
"((N-N%X)/X+1)",
"(N-N%X)/X",
"(N-N%X)",
"N",
"N%X",
"N",
"X",
"X",
"1",
"String[] args",
"args"
]
| import java.util.Scanner;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import java.util.HashSet;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N=sc.nextInt();
int X=sc.nextInt();
int T=sc.nextInt();
if(N%X==0){
System.out.println(T*((N-N%X)/X));
}else{
System.out.println(T*((N-N%X)/X+1));
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
4,
18,
17,
41,
13,
20,
12,
13,
30,
42,
2,
13,
13,
30,
14,
2,
13,
13,
0,
13,
13,
0,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
2,
13,
17,
29,
17,
29,
17,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
17,
14,
2,
2,
13,
17,
17,
29,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
0,
13,
17,
30,
30,
14,
2,
2,
13,
13,
17,
29,
17,
29,
17,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
17,
14,
2,
2,
13,
17,
17,
29,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
0,
13,
17,
30,
30,
14,
2,
2,
13,
13,
17,
29,
17,
29,
17,
23,
13,
12,
13,
30,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
2,
13,
17,
4,
18,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
13,
2,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
14,
2,
2,
13,
13,
17,
0,
13,
17,
4,
18,
13,
2,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
458,
8
],
[
458,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
458,
14
],
[
14,
15
],
[
14,
16
],
[
458,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
29
],
[
29,
30
],
[
29,
31
],
[
25,
32
],
[
32,
33
],
[
32,
34
],
[
19,
35
],
[
35,
36
],
[
17,
37
],
[
37,
38
],
[
17,
39
],
[
39,
40
],
[
458,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
57,
67
],
[
67,
68
],
[
43,
69
],
[
69,
70
],
[
41,
71
],
[
71,
72
],
[
41,
73
],
[
73,
74
],
[
458,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
78,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
84,
90
],
[
90,
91
],
[
77,
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
],
[
103,
105
],
[
92,
106
],
[
107,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
108,
114
],
[
114,
115
],
[
77,
116
],
[
116,
117
],
[
75,
118
],
[
118,
119
],
[
458,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
127,
128
],
[
123,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
129,
135
],
[
135,
136
],
[
122,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
137,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
144,
146
],
[
137,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
137,
151
],
[
152,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
153,
159
],
[
159,
160
],
[
122,
161
],
[
161,
162
],
[
120,
163
],
[
163,
164
],
[
458,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
168,
171
],
[
172,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
173,
178
],
[
178,
179
],
[
178,
180
],
[
167,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
165,
186
],
[
186,
187
],
[
458,
188
],
[
188,
189
],
[
188,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
190,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
194,
199
],
[
199,
200
],
[
199,
201
],
[
194,
202
],
[
202,
203
],
[
203,
204
],
[
194,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
208,
210
],
[
190,
211
],
[
211,
212
],
[
188,
213
],
[
213,
214
],
[
458,
215
],
[
215,
216
],
[
215,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
220,
221
],
[
220,
222
],
[
217,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
223,
228
],
[
228,
229
],
[
228,
230
],
[
223,
231
],
[
231,
232
],
[
232,
233
],
[
223,
234
],
[
235,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
238,
239
],
[
239,
240
],
[
238,
241
],
[
235,
242
],
[
242,
243
],
[
242,
244
],
[
244,
245
],
[
244,
246
],
[
235,
247
],
[
247,
248
],
[
248,
249
],
[
248,
250
],
[
247,
251
],
[
251,
252
],
[
251,
253
],
[
235,
254
],
[
254,
255
],
[
255,
256
],
[
255,
257
],
[
254,
258
],
[
217,
259
],
[
259,
260
],
[
260,
261
],
[
259,
262
],
[
215,
263
],
[
263,
264
],
[
458,
265
],
[
265,
266
],
[
265,
267
],
[
267,
268
],
[
268,
269
],
[
268,
270
],
[
267,
271
],
[
271,
272
],
[
271,
273
],
[
267,
274
],
[
274,
275
],
[
274,
276
],
[
276,
277
],
[
277,
278
],
[
267,
279
],
[
279,
280
],
[
279,
281
],
[
281,
282
],
[
282,
283
],
[
267,
284
],
[
284,
285
],
[
284,
286
],
[
286,
287
],
[
287,
288
],
[
267,
289
],
[
289,
290
],
[
289,
291
],
[
291,
292
],
[
291,
293
],
[
267,
294
],
[
294,
295
],
[
295,
296
],
[
296,
297
],
[
296,
298
],
[
295,
299
],
[
294,
300
],
[
300,
301
],
[
300,
302
],
[
267,
303
],
[
303,
304
],
[
304,
305
],
[
303,
306
],
[
306,
307
],
[
306,
308
],
[
265,
309
],
[
309,
310
],
[
458,
311
],
[
311,
312
],
[
311,
313
],
[
313,
314
],
[
311,
315
],
[
315,
316
],
[
311,
317
],
[
317,
318
],
[
317,
319
],
[
319,
320
],
[
320,
321
],
[
320,
322
],
[
311,
323
],
[
323,
324
],
[
323,
325
],
[
325,
326
],
[
326,
327
],
[
327,
328
],
[
328,
329
],
[
328,
330
],
[
327,
331
],
[
331,
332
],
[
332,
333
],
[
333,
334
],
[
326,
335
],
[
335,
336
],
[
336,
337
],
[
337,
338
],
[
337,
339
],
[
339,
340
],
[
340,
341
],
[
341,
342
],
[
336,
343
],
[
343,
344
],
[
344,
345
],
[
344,
346
],
[
325,
347
],
[
347,
348
],
[
348,
349
],
[
349,
350
],
[
311,
351
],
[
351,
352
],
[
351,
353
],
[
353,
354
],
[
354,
355
],
[
355,
356
],
[
356,
357
],
[
355,
358
],
[
358,
359
],
[
311,
360
],
[
360,
361
],
[
360,
362
],
[
362,
363
],
[
363,
364
],
[
364,
365
],
[
365,
366
],
[
364,
367
],
[
367,
368
],
[
311,
369
],
[
369,
370
],
[
369,
371
],
[
371,
372
],
[
372,
373
],
[
373,
374
],
[
374,
375
],
[
373,
376
],
[
376,
377
],
[
311,
378
],
[
378,
379
],
[
378,
380
],
[
380,
381
],
[
381,
382
],
[
381,
383
],
[
380,
385
],
[
385,
386
],
[
386,
387
],
[
387,
388
],
[
387,
389
],
[
385,
390
],
[
390,
391
],
[
390,
392
],
[
385,
393
],
[
393,
394
],
[
394,
395
],
[
385,
396
],
[
396,
397
],
[
397,
398
],
[
398,
399
],
[
398,
400
],
[
397,
401
],
[
401,
402
],
[
380,
403
],
[
403,
404
],
[
378,
405
],
[
405,
406
],
[
311,
407
],
[
407,
408
],
[
407,
409
],
[
409,
410
],
[
410,
411
],
[
410,
412
],
[
409,
414
],
[
414,
415
],
[
415,
416
],
[
416,
417
],
[
416,
418
],
[
414,
419
],
[
419,
420
],
[
419,
421
],
[
414,
422
],
[
422,
423
],
[
423,
424
],
[
414,
425
],
[
425,
426
],
[
426,
427
],
[
427,
428
],
[
427,
429
],
[
426,
430
],
[
430,
431
],
[
409,
432
],
[
432,
433
],
[
407,
434
],
[
434,
435
],
[
311,
436
],
[
436,
437
],
[
436,
438
],
[
438,
439
],
[
439,
440
],
[
439,
441
],
[
438,
442
],
[
442,
443
],
[
443,
444
],
[
443,
445
],
[
445,
446
],
[
446,
447
],
[
447,
448
],
[
442,
449
],
[
449,
450
],
[
450,
451
],
[
450,
452
],
[
452,
453
],
[
453,
454
],
[
438,
455
],
[
455,
456
],
[
0,
457
],
[
457,
458
],
[
457,
459
]
]
| [
"import java.io.*;\nimport java.util.*;\n\npublic class Main{\n final static String alpha = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".toLowerCase();//.toCharArray();\n static class FastReader{\n BufferedReader br;\n StringTokenizer st;\n public FastReader(){br = new BufferedReader(new InputStreamReader(System.in));}\n String next(){while (st == null || !st.hasMoreElements()){try{st = new StringTokenizer(br.readLine());}catch (IOException e){e.printStackTrace();}}return st.nextToken();}\n int nextInt(){return Integer.parseInt(next());}\n long nextLong(){return Long.parseLong(next());}\n double nextDouble(){return Double.parseDouble(next());}\n int[] readArray(int n){int[] a=new int[n];for (int i=0; i<n; i++) a[i]=nextInt();return a;}\n long[] readLongArray(int n){long[] a=new long[n];for (int i=0; i<n; i++) a[i]=nextLong();return a;}\n String nextLine(){String str = \"\";try{str = br.readLine();}catch (IOException e){e.printStackTrace();}return str;}\n }\n static int getGcd(int n1,int n2){\n while(n1 != n2){\n if(n1 > n2) n1 -= n2;\n else n2 -= n1;\n }\n return n1;\n }\n static boolean isSorted(int[] arr, int n){\n for(int i=1;i<n;i++){\n if(arr[i]<arr[i-1]) return false;\n }\n return true;\n }\n static boolean isPrime(long n){\n if(n==2) return true;\n else if(n%2==0) return false;\n for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return false;\n }\n return true;\n }\n static boolean isPrime(int n){\n if(n==2) return true;\n else if(n%2==0) return false;\n for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return false;\n }\n return true;\n }\n static void printArray(int[] arr){\n for(int x:arr){\n System.out.print(x+\" \");\n }\n System.out.println();\n }\n static long Fact(int n){\n //int p=1000000007;\n long result = 1;\n for (int i = 1; i <= n; i++) result = (result*i);\n //for (int i = 1; i <= n; i++) result = (result*i)%p;\n return result;\n }\n static final Random random=new Random();\n static void ruffleSort(int[] a) {\n int n=a.length;//shuffle, then sort\n for (int i=0; i<n; i++) {\n int oi=random.nextInt(n), temp=a[oi];\n a[oi]=a[i]; a[i]=temp;\n }\n Arrays.sort(a);\n }\n public static void main(String[] args) throws NumberFormatException, IOException {\n FastReader s = new FastReader();\n PrintWriter pw = new PrintWriter(System.out,true);\n int n=s.nextInt(),x=s.nextInt(),t=s.nextInt();\n int ans=n/x;\n if(n%x!=0) ans+=1;\n pw.println(ans*t);\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n final static String alpha = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".toLowerCase();//.toCharArray();\n static class FastReader{\n BufferedReader br;\n StringTokenizer st;\n public FastReader(){br = new BufferedReader(new InputStreamReader(System.in));}\n String next(){while (st == null || !st.hasMoreElements()){try{st = new StringTokenizer(br.readLine());}catch (IOException e){e.printStackTrace();}}return st.nextToken();}\n int nextInt(){return Integer.parseInt(next());}\n long nextLong(){return Long.parseLong(next());}\n double nextDouble(){return Double.parseDouble(next());}\n int[] readArray(int n){int[] a=new int[n];for (int i=0; i<n; i++) a[i]=nextInt();return a;}\n long[] readLongArray(int n){long[] a=new long[n];for (int i=0; i<n; i++) a[i]=nextLong();return a;}\n String nextLine(){String str = \"\";try{str = br.readLine();}catch (IOException e){e.printStackTrace();}return str;}\n }\n static int getGcd(int n1,int n2){\n while(n1 != n2){\n if(n1 > n2) n1 -= n2;\n else n2 -= n1;\n }\n return n1;\n }\n static boolean isSorted(int[] arr, int n){\n for(int i=1;i<n;i++){\n if(arr[i]<arr[i-1]) return false;\n }\n return true;\n }\n static boolean isPrime(long n){\n if(n==2) return true;\n else if(n%2==0) return false;\n for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return false;\n }\n return true;\n }\n static boolean isPrime(int n){\n if(n==2) return true;\n else if(n%2==0) return false;\n for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return false;\n }\n return true;\n }\n static void printArray(int[] arr){\n for(int x:arr){\n System.out.print(x+\" \");\n }\n System.out.println();\n }\n static long Fact(int n){\n //int p=1000000007;\n long result = 1;\n for (int i = 1; i <= n; i++) result = (result*i);\n //for (int i = 1; i <= n; i++) result = (result*i)%p;\n return result;\n }\n static final Random random=new Random();\n static void ruffleSort(int[] a) {\n int n=a.length;//shuffle, then sort\n for (int i=0; i<n; i++) {\n int oi=random.nextInt(n), temp=a[oi];\n a[oi]=a[i]; a[i]=temp;\n }\n Arrays.sort(a);\n }\n public static void main(String[] args) throws NumberFormatException, IOException {\n FastReader s = new FastReader();\n PrintWriter pw = new PrintWriter(System.out,true);\n int n=s.nextInt(),x=s.nextInt(),t=s.nextInt();\n int ans=n/x;\n if(n%x!=0) ans+=1;\n pw.println(ans*t);\n }\n}",
"Main",
"final static String alpha = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".toLowerCase();//.toCharArray();",
"alpha",
"\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".toLowerCase()",
"\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".toLowerCase",
"\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"",
"static final Random random=new Random();",
"random",
"new Random()",
"static int getGcd(int n1,int n2){\n while(n1 != n2){\n if(n1 > n2) n1 -= n2;\n else n2 -= n1;\n }\n return n1;\n }",
"getGcd",
"{\n while(n1 != n2){\n if(n1 > n2) n1 -= n2;\n else n2 -= n1;\n }\n return n1;\n }",
"while(n1 != n2){\n if(n1 > n2) n1 -= n2;\n else n2 -= n1;\n }",
"n1 != n2",
"n1",
"n2",
"{\n if(n1 > n2) n1 -= n2;\n else n2 -= n1;\n }",
"if(n1 > n2) n1 -= n2;\n else n2 -= n1;",
"n1 > n2",
"n1",
"n2",
"n1 -= n2",
"n1",
"n2",
"n2 -= n1",
"n2",
"n1",
"return n1;",
"n1",
"int n1",
"n1",
"int n2",
"n2",
"static boolean isSorted(int[] arr, int n){\n for(int i=1;i<n;i++){\n if(arr[i]<arr[i-1]) return false;\n }\n return true;\n }",
"isSorted",
"{\n for(int i=1;i<n;i++){\n if(arr[i]<arr[i-1]) return false;\n }\n return true;\n }",
"for(int i=1;i<n;i++){\n if(arr[i]<arr[i-1]) return false;\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(arr[i]<arr[i-1]) return false;\n }",
"{\n if(arr[i]<arr[i-1]) return false;\n }",
"if(arr[i]<arr[i-1]) return false;",
"arr[i]<arr[i-1]",
"arr[i]",
"arr",
"i",
"arr[i-1]",
"arr",
"i-1",
"i",
"1",
"return false;",
"false",
"return true;",
"true",
"int[] arr",
"arr",
"int n",
"n",
"static boolean isPrime(long n){\n if(n==2) return true;\n else if(n%2==0) return false;\n for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return false;\n }\n return true;\n }",
"isPrime",
"{\n if(n==2) return true;\n else if(n%2==0) return false;\n for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return false;\n }\n return true;\n }",
"if(n==2) return true;\n else if(n%2==0) return false;",
"n==2",
"n",
"2",
"return true;",
"true",
"if(n%2==0) return false;",
"n%2==0",
"n%2",
"n",
"2",
"0",
"return false;",
"false",
"for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return false;\n }",
"int i=3;",
"int i=3;",
"i",
"3",
"i<=n/2",
"i",
"n/2",
"n",
"2",
"i+=2",
"i+=2",
"i",
"2",
"{\n if(n%i==0) return false;\n }",
"{\n if(n%i==0) return false;\n }",
"if(n%i==0) return false;",
"n%i==0",
"n%i",
"n",
"i",
"0",
"return false;",
"false",
"return true;",
"true",
"long n",
"n",
"static boolean isPrime(int n){\n if(n==2) return true;\n else if(n%2==0) return false;\n for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return false;\n }\n return true;\n }",
"isPrime",
"{\n if(n==2) return true;\n else if(n%2==0) return false;\n for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return false;\n }\n return true;\n }",
"if(n==2) return true;\n else if(n%2==0) return false;",
"n==2",
"n",
"2",
"return true;",
"true",
"if(n%2==0) return false;",
"n%2==0",
"n%2",
"n",
"2",
"0",
"return false;",
"false",
"for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return false;\n }",
"int i=3;",
"int i=3;",
"i",
"3",
"i<=n/2",
"i",
"n/2",
"n",
"2",
"i+=2",
"i+=2",
"i",
"2",
"{\n if(n%i==0) return false;\n }",
"{\n if(n%i==0) return false;\n }",
"if(n%i==0) return false;",
"n%i==0",
"n%i",
"n",
"i",
"0",
"return false;",
"false",
"return true;",
"true",
"int n",
"n",
"static void printArray(int[] arr){\n for(int x:arr){\n System.out.print(x+\" \");\n }\n System.out.println();\n }",
"printArray",
"{\n for(int x:arr){\n System.out.print(x+\" \");\n }\n System.out.println();\n }",
"for(int x:arr){\n System.out.print(x+\" \");\n }",
"int x",
"arr",
"{\n System.out.print(x+\" \");\n }",
"{\n System.out.print(x+\" \");\n }",
"System.out.print(x+\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"x+\" \"",
"x",
"\" \"",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"int[] arr",
"arr",
"static long Fact(int n){\n //int p=1000000007;\n long result = 1;\n for (int i = 1; i <= n; i++) result = (result*i);\n //for (int i = 1; i <= n; i++) result = (result*i)%p;\n return result;\n }",
"Fact",
"{\n //int p=1000000007;\n long result = 1;\n for (int i = 1; i <= n; i++) result = (result*i);\n //for (int i = 1; i <= n; i++) result = (result*i)%p;\n return result;\n }",
"long result = 1;",
"result",
"1",
"for (int i = 1; i <= n; i++) result = (result*i);",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"result = (result*i);",
"result = (result*i)",
"result",
"(result*i)",
"result",
"i",
"return result;",
"result",
"int n",
"n",
"static void ruffleSort(int[] a) {\n int n=a.length;//shuffle, then sort\n for (int i=0; i<n; i++) {\n int oi=random.nextInt(n), temp=a[oi];\n a[oi]=a[i]; a[i]=temp;\n }\n Arrays.sort(a);\n }",
"ruffleSort",
"{\n int n=a.length;//shuffle, then sort\n for (int i=0; i<n; i++) {\n int oi=random.nextInt(n), temp=a[oi];\n a[oi]=a[i]; a[i]=temp;\n }\n Arrays.sort(a);\n }",
"int n=a.length;",
"n",
"a.length",
"a",
"a.length",
"for (int i=0; i<n; i++) {\n int oi=random.nextInt(n), temp=a[oi];\n a[oi]=a[i]; a[i]=temp;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int oi=random.nextInt(n), temp=a[oi];\n a[oi]=a[i]; a[i]=temp;\n }",
"{\n int oi=random.nextInt(n), temp=a[oi];\n a[oi]=a[i]; a[i]=temp;\n }",
"int oi=random.nextInt(n)",
"oi",
"random.nextInt(n)",
"random.nextInt",
"random",
"n",
"temp=a[oi];",
"temp",
"a[oi]",
"a",
"oi",
"a[oi]=a[i]",
"a[oi]",
"a",
"oi",
"a[i]",
"a",
"i",
"a[i]=temp",
"a[i]",
"a",
"i",
"temp",
"Arrays.sort(a)",
"Arrays.sort",
"Arrays",
"a",
"int[] a",
"a",
"public static void main(String[] args) throws NumberFormatException, IOException {\n FastReader s = new FastReader();\n PrintWriter pw = new PrintWriter(System.out,true);\n int n=s.nextInt(),x=s.nextInt(),t=s.nextInt();\n int ans=n/x;\n if(n%x!=0) ans+=1;\n pw.println(ans*t);\n }",
"main",
"{\n FastReader s = new FastReader();\n PrintWriter pw = new PrintWriter(System.out,true);\n int n=s.nextInt(),x=s.nextInt(),t=s.nextInt();\n int ans=n/x;\n if(n%x!=0) ans+=1;\n pw.println(ans*t);\n }",
"FastReader s = new FastReader();",
"s",
"new FastReader()",
"PrintWriter pw = new PrintWriter(System.out,true);",
"pw",
"new PrintWriter(System.out,true)",
"int n=s.nextInt()",
"n",
"s.nextInt()",
"s.nextInt",
"s",
"x=s.nextInt()",
"x",
"s.nextInt()",
"s.nextInt",
"s",
"t=s.nextInt();",
"t",
"s.nextInt()",
"s.nextInt",
"s",
"int ans=n/x;",
"ans",
"n/x",
"n",
"x",
"if(n%x!=0) ans+=1;",
"n%x!=0",
"n%x",
"n",
"x",
"0",
"ans+=1",
"ans",
"1",
"pw.println(ans*t)",
"pw.println",
"pw",
"ans*t",
"ans",
"t",
"String[] args",
"args",
"static class FastReader{\n BufferedReader br;\n StringTokenizer st;\n public FastReader(){br = new BufferedReader(new InputStreamReader(System.in));}\n String next(){while (st == null || !st.hasMoreElements()){try{st = new StringTokenizer(br.readLine());}catch (IOException e){e.printStackTrace();}}return st.nextToken();}\n int nextInt(){return Integer.parseInt(next());}\n long nextLong(){return Long.parseLong(next());}\n double nextDouble(){return Double.parseDouble(next());}\n int[] readArray(int n){int[] a=new int[n];for (int i=0; i<n; i++) a[i]=nextInt();return a;}\n long[] readLongArray(int n){long[] a=new long[n];for (int i=0; i<n; i++) a[i]=nextLong();return a;}\n String nextLine(){String str = \"\";try{str = br.readLine();}catch (IOException e){e.printStackTrace();}return str;}\n }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader(){br = new BufferedReader(new InputStreamReader(System.in));}",
"FastReader",
"{br = new BufferedReader(new InputStreamReader(System.in));}",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next(){while (st == null || !st.hasMoreElements()){try{st = new StringTokenizer(br.readLine());}catch (IOException e){e.printStackTrace();}}return st.nextToken();}",
"next",
"{while (st == null || !st.hasMoreElements()){try{st = new StringTokenizer(br.readLine());}catch (IOException e){e.printStackTrace();}}return st.nextToken();}",
"while (st == null || !st.hasMoreElements()){try{st = new StringTokenizer(br.readLine());}catch (IOException e){e.printStackTrace();}}",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{try{st = new StringTokenizer(br.readLine());}catch (IOException e){e.printStackTrace();}}",
"try{st = new StringTokenizer(br.readLine());}catch (IOException e){e.printStackTrace();}",
"catch (IOException e){e.printStackTrace();}",
"IOException e",
"{e.printStackTrace();}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{st = new StringTokenizer(br.readLine());}",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt(){return Integer.parseInt(next());}",
"nextInt",
"{return Integer.parseInt(next());}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong(){return Long.parseLong(next());}",
"nextLong",
"{return Long.parseLong(next());}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble(){return Double.parseDouble(next());}",
"nextDouble",
"{return Double.parseDouble(next());}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"int[] readArray(int n){int[] a=new int[n];for (int i=0; i<n; i++) a[i]=nextInt();return a;}",
"readArray",
"{int[] a=new int[n];for (int i=0; i<n; i++) a[i]=nextInt();return a;}",
"int[] a=new int[n];",
"a",
"new int[n]",
"n",
"for (int i=0; i<n; i++) a[i]=nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"a[i]=nextInt();",
"a[i]=nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"long[] readLongArray(int n){long[] a=new long[n];for (int i=0; i<n; i++) a[i]=nextLong();return a;}",
"readLongArray",
"{long[] a=new long[n];for (int i=0; i<n; i++) a[i]=nextLong();return a;}",
"long[] a=new long[n];",
"a",
"new long[n]",
"n",
"for (int i=0; i<n; i++) a[i]=nextLong();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"a[i]=nextLong();",
"a[i]=nextLong()",
"a[i]",
"a",
"i",
"nextLong()",
"nextLong",
"return a;",
"a",
"int n",
"n",
"String nextLine(){String str = \"\";try{str = br.readLine();}catch (IOException e){e.printStackTrace();}return str;}",
"nextLine",
"{String str = \"\";try{str = br.readLine();}catch (IOException e){e.printStackTrace();}return str;}",
"String str = \"\";",
"str",
"\"\"",
"try{str = br.readLine();}catch (IOException e){e.printStackTrace();}",
"catch (IOException e){e.printStackTrace();}",
"IOException e",
"{e.printStackTrace();}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{str = br.readLine();}",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main{\n final static String alpha = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".toLowerCase();//.toCharArray();\n static class FastReader{\n BufferedReader br;\n StringTokenizer st;\n public FastReader(){br = new BufferedReader(new InputStreamReader(System.in));}\n String next(){while (st == null || !st.hasMoreElements()){try{st = new StringTokenizer(br.readLine());}catch (IOException e){e.printStackTrace();}}return st.nextToken();}\n int nextInt(){return Integer.parseInt(next());}\n long nextLong(){return Long.parseLong(next());}\n double nextDouble(){return Double.parseDouble(next());}\n int[] readArray(int n){int[] a=new int[n];for (int i=0; i<n; i++) a[i]=nextInt();return a;}\n long[] readLongArray(int n){long[] a=new long[n];for (int i=0; i<n; i++) a[i]=nextLong();return a;}\n String nextLine(){String str = \"\";try{str = br.readLine();}catch (IOException e){e.printStackTrace();}return str;}\n }\n static int getGcd(int n1,int n2){\n while(n1 != n2){\n if(n1 > n2) n1 -= n2;\n else n2 -= n1;\n }\n return n1;\n }\n static boolean isSorted(int[] arr, int n){\n for(int i=1;i<n;i++){\n if(arr[i]<arr[i-1]) return false;\n }\n return true;\n }\n static boolean isPrime(long n){\n if(n==2) return true;\n else if(n%2==0) return false;\n for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return false;\n }\n return true;\n }\n static boolean isPrime(int n){\n if(n==2) return true;\n else if(n%2==0) return false;\n for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return false;\n }\n return true;\n }\n static void printArray(int[] arr){\n for(int x:arr){\n System.out.print(x+\" \");\n }\n System.out.println();\n }\n static long Fact(int n){\n //int p=1000000007;\n long result = 1;\n for (int i = 1; i <= n; i++) result = (result*i);\n //for (int i = 1; i <= n; i++) result = (result*i)%p;\n return result;\n }\n static final Random random=new Random();\n static void ruffleSort(int[] a) {\n int n=a.length;//shuffle, then sort\n for (int i=0; i<n; i++) {\n int oi=random.nextInt(n), temp=a[oi];\n a[oi]=a[i]; a[i]=temp;\n }\n Arrays.sort(a);\n }\n public static void main(String[] args) throws NumberFormatException, IOException {\n FastReader s = new FastReader();\n PrintWriter pw = new PrintWriter(System.out,true);\n int n=s.nextInt(),x=s.nextInt(),t=s.nextInt();\n int ans=n/x;\n if(n%x!=0) ans+=1;\n pw.println(ans*t);\n }\n}",
"public class Main{\n final static String alpha = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".toLowerCase();//.toCharArray();\n static class FastReader{\n BufferedReader br;\n StringTokenizer st;\n public FastReader(){br = new BufferedReader(new InputStreamReader(System.in));}\n String next(){while (st == null || !st.hasMoreElements()){try{st = new StringTokenizer(br.readLine());}catch (IOException e){e.printStackTrace();}}return st.nextToken();}\n int nextInt(){return Integer.parseInt(next());}\n long nextLong(){return Long.parseLong(next());}\n double nextDouble(){return Double.parseDouble(next());}\n int[] readArray(int n){int[] a=new int[n];for (int i=0; i<n; i++) a[i]=nextInt();return a;}\n long[] readLongArray(int n){long[] a=new long[n];for (int i=0; i<n; i++) a[i]=nextLong();return a;}\n String nextLine(){String str = \"\";try{str = br.readLine();}catch (IOException e){e.printStackTrace();}return str;}\n }\n static int getGcd(int n1,int n2){\n while(n1 != n2){\n if(n1 > n2) n1 -= n2;\n else n2 -= n1;\n }\n return n1;\n }\n static boolean isSorted(int[] arr, int n){\n for(int i=1;i<n;i++){\n if(arr[i]<arr[i-1]) return false;\n }\n return true;\n }\n static boolean isPrime(long n){\n if(n==2) return true;\n else if(n%2==0) return false;\n for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return false;\n }\n return true;\n }\n static boolean isPrime(int n){\n if(n==2) return true;\n else if(n%2==0) return false;\n for(int i=3;i<=n/2;i+=2){\n if(n%i==0) return false;\n }\n return true;\n }\n static void printArray(int[] arr){\n for(int x:arr){\n System.out.print(x+\" \");\n }\n System.out.println();\n }\n static long Fact(int n){\n //int p=1000000007;\n long result = 1;\n for (int i = 1; i <= n; i++) result = (result*i);\n //for (int i = 1; i <= n; i++) result = (result*i)%p;\n return result;\n }\n static final Random random=new Random();\n static void ruffleSort(int[] a) {\n int n=a.length;//shuffle, then sort\n for (int i=0; i<n; i++) {\n int oi=random.nextInt(n), temp=a[oi];\n a[oi]=a[i]; a[i]=temp;\n }\n Arrays.sort(a);\n }\n public static void main(String[] args) throws NumberFormatException, IOException {\n FastReader s = new FastReader();\n PrintWriter pw = new PrintWriter(System.out,true);\n int n=s.nextInt(),x=s.nextInt(),t=s.nextInt();\n int ans=n/x;\n if(n%x!=0) ans+=1;\n pw.println(ans*t);\n }\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main{
final static String alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".toLowerCase();//.toCharArray();
static class FastReader{
BufferedReader br;
StringTokenizer st;
public FastReader(){br = new BufferedReader(new InputStreamReader(System.in));}
String next(){while (st == null || !st.hasMoreElements()){try{st = new StringTokenizer(br.readLine());}catch (IOException e){e.printStackTrace();}}return st.nextToken();}
int nextInt(){return Integer.parseInt(next());}
long nextLong(){return Long.parseLong(next());}
double nextDouble(){return Double.parseDouble(next());}
int[] readArray(int n){int[] a=new int[n];for (int i=0; i<n; i++) a[i]=nextInt();return a;}
long[] readLongArray(int n){long[] a=new long[n];for (int i=0; i<n; i++) a[i]=nextLong();return a;}
String nextLine(){String str = "";try{str = br.readLine();}catch (IOException e){e.printStackTrace();}return str;}
}
static int getGcd(int n1,int n2){
while(n1 != n2){
if(n1 > n2) n1 -= n2;
else n2 -= n1;
}
return n1;
}
static boolean isSorted(int[] arr, int n){
for(int i=1;i<n;i++){
if(arr[i]<arr[i-1]) return false;
}
return true;
}
static boolean isPrime(long n){
if(n==2) return true;
else if(n%2==0) return false;
for(int i=3;i<=n/2;i+=2){
if(n%i==0) return false;
}
return true;
}
static boolean isPrime(int n){
if(n==2) return true;
else if(n%2==0) return false;
for(int i=3;i<=n/2;i+=2){
if(n%i==0) return false;
}
return true;
}
static void printArray(int[] arr){
for(int x:arr){
System.out.print(x+" ");
}
System.out.println();
}
static long Fact(int n){
//int p=1000000007;
long result = 1;
for (int i = 1; i <= n; i++) result = (result*i);
//for (int i = 1; i <= n; i++) result = (result*i)%p;
return result;
}
static final Random random=new Random();
static void ruffleSort(int[] a) {
int n=a.length;//shuffle, then sort
for (int i=0; i<n; i++) {
int oi=random.nextInt(n), temp=a[oi];
a[oi]=a[i]; a[i]=temp;
}
Arrays.sort(a);
}
public static void main(String[] args) throws NumberFormatException, IOException {
FastReader s = new FastReader();
PrintWriter pw = new PrintWriter(System.out,true);
int n=s.nextInt(),x=s.nextInt(),t=s.nextInt();
int ans=n/x;
if(n%x!=0) ans+=1;
pw.println(ans*t);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
2,
13,
13,
14,
2,
2,
13,
13,
17,
40,
13,
0,
13,
2,
13,
13,
4,
18,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
42,
40,
4,
18,
13,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
11,
33
],
[
33,
34
],
[
33,
35
],
[
11,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
11,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
41,
47
],
[
47,
48
],
[
11,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
11,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
11,
58
],
[
58,
59
],
[
59,
60
],
[
9,
61
],
[
61,
62
],
[
7,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
63,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
74,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
79,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
73,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
63,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
101,
102
],
[
63,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
110,
111
],
[
63,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
124,
125
],
[
124,
126
],
[
119,
127
],
[
127,
128
],
[
128,
129
],
[
119,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
135,
136
],
[
114,
137
],
[
137,
138
],
[
112,
139
],
[
139,
140
],
[
63,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
148,
153
],
[
153,
154
],
[
153,
155
],
[
148,
156
],
[
156,
157
],
[
157,
158
],
[
148,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
164,
165
],
[
143,
166
],
[
166,
167
],
[
141,
168
],
[
168,
169
],
[
141,
170
],
[
170,
171
]
]
| [
"import java.io.*;\nimport java.util.*;\n\nclass Main {\n\t\n\tpublic static void main(String[] args) {\n FastScanner in = new FastScanner();\n PrintWriter out = new PrintWriter(System.out);\n int n = in.nextInt(), x = in.nextInt(), t = in.nextInt();\n long ans = 0;\n int y = n/x;\n if(n%x!=0) y++;\n ans = y*t;\n out.println(ans);\n \n out.flush();\n\t}\n\t\n\tstatic class FastScanner {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\t\t\n\t\tString next() {\n\t\t\twhile(!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t}catch(IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\t\n\t\tint[] readArray(int n) {\n\t\t\tint a[] = new int[n];\n\t\t\tfor(int i=0;i<n;i++) a[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\t\t\n\t\tlong[] readArray(int n,long x) {\n\t\t\tlong a[] = new long[n];\n\t\t\tfor(int i=0;i<n;i++) a[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\t\t\n\t}\n}\n\n\n\n\n\n\n\n\n",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"class Main {\n\t\n\tpublic static void main(String[] args) {\n FastScanner in = new FastScanner();\n PrintWriter out = new PrintWriter(System.out);\n int n = in.nextInt(), x = in.nextInt(), t = in.nextInt();\n long ans = 0;\n int y = n/x;\n if(n%x!=0) y++;\n ans = y*t;\n out.println(ans);\n \n out.flush();\n\t}\n\t\n\tstatic class FastScanner {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\t\t\n\t\tString next() {\n\t\t\twhile(!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t}catch(IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\t\n\t\tint[] readArray(int n) {\n\t\t\tint a[] = new int[n];\n\t\t\tfor(int i=0;i<n;i++) a[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\t\t\n\t\tlong[] readArray(int n,long x) {\n\t\t\tlong a[] = new long[n];\n\t\t\tfor(int i=0;i<n;i++) a[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\t\t\n\t}\n}",
"Main",
"public static void main(String[] args) {\n FastScanner in = new FastScanner();\n PrintWriter out = new PrintWriter(System.out);\n int n = in.nextInt(), x = in.nextInt(), t = in.nextInt();\n long ans = 0;\n int y = n/x;\n if(n%x!=0) y++;\n ans = y*t;\n out.println(ans);\n \n out.flush();\n\t}",
"main",
"{\n FastScanner in = new FastScanner();\n PrintWriter out = new PrintWriter(System.out);\n int n = in.nextInt(), x = in.nextInt(), t = in.nextInt();\n long ans = 0;\n int y = n/x;\n if(n%x!=0) y++;\n ans = y*t;\n out.println(ans);\n \n out.flush();\n\t}",
"FastScanner in = new FastScanner();",
"in",
"new FastScanner()",
"PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"int n = in.nextInt()",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"x = in.nextInt()",
"x",
"in.nextInt()",
"in.nextInt",
"in",
"t = in.nextInt();",
"t",
"in.nextInt()",
"in.nextInt",
"in",
"long ans = 0;",
"ans",
"0",
"int y = n/x;",
"y",
"n/x",
"n",
"x",
"if(n%x!=0) y++;",
"n%x!=0",
"n%x",
"n",
"x",
"0",
"y++",
"y",
"ans = y*t",
"ans",
"y*t",
"y",
"t",
"out.println(ans)",
"out.println",
"out",
"ans",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"static class FastScanner {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer st = new StringTokenizer(\"\");\n\t\t\n\t\tString next() {\n\t\t\twhile(!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t}catch(IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\t\t\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\t\t\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t\t\n\t\tint[] readArray(int n) {\n\t\t\tint a[] = new int[n];\n\t\t\tfor(int i=0;i<n;i++) a[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\t\t\n\t\tlong[] readArray(int n,long x) {\n\t\t\tlong a[] = new long[n];\n\t\t\tfor(int i=0;i<n;i++) a[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\t\t\n\t}",
"FastScanner",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st = new StringTokenizer(\"\");",
"st",
"new StringTokenizer(\"\")",
"String next() {\n\t\t\twhile(!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t}catch(IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"next",
"{\n\t\t\twhile(!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t}catch(IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"while(!st.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t}catch(IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"try {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t}catch(IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"catch(IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"IOException e",
"{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t}",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"nextInt",
"{\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"nextLong",
"{\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"int[] readArray(int n) {\n\t\t\tint a[] = new int[n];\n\t\t\tfor(int i=0;i<n;i++) a[i] = nextInt();\n\t\t\treturn a;\n\t\t}",
"readArray",
"{\n\t\t\tint a[] = new int[n];\n\t\t\tfor(int i=0;i<n;i++) a[i] = nextInt();\n\t\t\treturn a;\n\t\t}",
"int a[] = new int[n];",
"a",
"new int[n]",
"n",
"for(int i=0;i<n;i++) a[i] = nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = nextInt();",
"a[i] = nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"long[] readArray(int n,long x) {\n\t\t\tlong a[] = new long[n];\n\t\t\tfor(int i=0;i<n;i++) a[i] = nextLong();\n\t\t\treturn a;\n\t\t}",
"readArray",
"{\n\t\t\tlong a[] = new long[n];\n\t\t\tfor(int i=0;i<n;i++) a[i] = nextLong();\n\t\t\treturn a;\n\t\t}",
"long a[] = new long[n];",
"a",
"new long[n]",
"n",
"for(int i=0;i<n;i++) a[i] = nextLong();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = nextLong();",
"a[i] = nextLong()",
"a[i]",
"a",
"i",
"nextLong()",
"nextLong",
"return a;",
"a",
"int n",
"n",
"long x",
"x"
]
| import java.io.*;
import java.util.*;
class Main {
public static void main(String[] args) {
FastScanner in = new FastScanner();
PrintWriter out = new PrintWriter(System.out);
int n = in.nextInt(), x = in.nextInt(), t = in.nextInt();
long ans = 0;
int y = n/x;
if(n%x!=0) y++;
ans = y*t;
out.println(ans);
out.flush();
}
static class FastScanner {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer("");
String next() {
while(!st.hasMoreTokens())
try {
st = new StringTokenizer(br.readLine());
}catch(IOException e) {
e.printStackTrace();
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
int[] readArray(int n) {
int a[] = new int[n];
for(int i=0;i<n;i++) a[i] = nextInt();
return a;
}
long[] readArray(int n,long x) {
long a[] = new long[n];
for(int i=0;i<n;i++) a[i] = nextLong();
return a;
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
13,
41,
13,
4,
18,
13,
41,
13,
13,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
42,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
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
],
[
83,
23
],
[
83,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
26,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
26,
40
],
[
40,
41
],
[
40,
42
],
[
26,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
26,
48
],
[
48,
49
],
[
48,
50
],
[
26,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
51,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
71,
73
],
[
62,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
24,
80
],
[
80,
81
],
[
0,
82
],
[
82,
83
],
[
82,
84
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.math.BigInteger;\nimport java.util.*;\nimport java.util.stream.Collectors;\nimport java.util.stream.Stream;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner fr = new Scanner(System.in);\n int n = fr.nextInt();\n int x = fr.nextInt();\n int xx = x;\n int t = fr.nextInt();\n int tt = t;\n if(n<x){\n System.out.println(t);\n }\n else{\n while(x<n){\n x+=xx;\n t+=tt;\n }\n System.out.println(t);\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"import java.util.*;",
"util.*",
"java",
"import java.util.stream.Collectors;",
"Collectors",
"java.util.stream",
"import java.util.stream.Stream;",
"Stream",
"java.util.stream",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner fr = new Scanner(System.in);\n int n = fr.nextInt();\n int x = fr.nextInt();\n int xx = x;\n int t = fr.nextInt();\n int tt = t;\n if(n<x){\n System.out.println(t);\n }\n else{\n while(x<n){\n x+=xx;\n t+=tt;\n }\n System.out.println(t);\n }\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner fr = new Scanner(System.in);\n int n = fr.nextInt();\n int x = fr.nextInt();\n int xx = x;\n int t = fr.nextInt();\n int tt = t;\n if(n<x){\n System.out.println(t);\n }\n else{\n while(x<n){\n x+=xx;\n t+=tt;\n }\n System.out.println(t);\n }\n }",
"main",
"{\n Scanner fr = new Scanner(System.in);\n int n = fr.nextInt();\n int x = fr.nextInt();\n int xx = x;\n int t = fr.nextInt();\n int tt = t;\n if(n<x){\n System.out.println(t);\n }\n else{\n while(x<n){\n x+=xx;\n t+=tt;\n }\n System.out.println(t);\n }\n }",
"Scanner fr = new Scanner(System.in);",
"fr",
"new Scanner(System.in)",
"int n = fr.nextInt();",
"n",
"fr.nextInt()",
"fr.nextInt",
"fr",
"int x = fr.nextInt();",
"x",
"fr.nextInt()",
"fr.nextInt",
"fr",
"int xx = x;",
"xx",
"x",
"int t = fr.nextInt();",
"t",
"fr.nextInt()",
"fr.nextInt",
"fr",
"int tt = t;",
"tt",
"t",
"if(n<x){\n System.out.println(t);\n }\n else{\n while(x<n){\n x+=xx;\n t+=tt;\n }\n System.out.println(t);\n }",
"n<x",
"n",
"x",
"{\n System.out.println(t);\n }",
"System.out.println(t)",
"System.out.println",
"System.out",
"System",
"System.out",
"t",
"{\n while(x<n){\n x+=xx;\n t+=tt;\n }\n System.out.println(t);\n }",
"while(x<n){\n x+=xx;\n t+=tt;\n }",
"x<n",
"x",
"n",
"{\n x+=xx;\n t+=tt;\n }",
"x+=xx",
"x",
"xx",
"t+=tt",
"t",
"tt",
"System.out.println(t)",
"System.out.println",
"System.out",
"System",
"System.out",
"t",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner fr = new Scanner(System.in);\n int n = fr.nextInt();\n int x = fr.nextInt();\n int xx = x;\n int t = fr.nextInt();\n int tt = t;\n if(n<x){\n System.out.println(t);\n }\n else{\n while(x<n){\n x+=xx;\n t+=tt;\n }\n System.out.println(t);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner fr = new Scanner(System.in);\n int n = fr.nextInt();\n int x = fr.nextInt();\n int xx = x;\n int t = fr.nextInt();\n int tt = t;\n if(n<x){\n System.out.println(t);\n }\n else{\n while(x<n){\n x+=xx;\n t+=tt;\n }\n System.out.println(t);\n }\n }\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigInteger;
import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.Stream;
public class Main {
public static void main(String[] args) throws Exception {
Scanner fr = new Scanner(System.in);
int n = fr.nextInt();
int x = fr.nextInt();
int xx = x;
int t = fr.nextInt();
int tt = t;
if(n<x){
System.out.println(t);
}
else{
while(x<n){
x+=xx;
t+=tt;
}
System.out.println(t);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
13,
41,
13,
13,
42,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
53,
5
],
[
53,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
6,
50
],
[
50,
51
],
[
0,
52
],
[
52,
53
],
[
52,
54
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int k = sc.nextInt();\n int t = k;\n int b = x;\n\n while(x < n){\n x += b;\n k += t;\n\n }\n System.out.println(k);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int k = sc.nextInt();\n int t = k;\n int b = x;\n\n while(x < n){\n x += b;\n k += t;\n\n }\n System.out.println(k);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int k = sc.nextInt();\n int t = k;\n int b = x;\n\n while(x < n){\n x += b;\n k += t;\n\n }\n System.out.println(k);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int k = sc.nextInt();\n int t = k;\n int b = x;\n\n while(x < n){\n x += b;\n k += t;\n\n }\n System.out.println(k);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t = k;",
"t",
"k",
"int b = x;",
"b",
"x",
"while(x < n){\n x += b;\n k += t;\n\n }",
"x < n",
"x",
"n",
"{\n x += b;\n k += t;\n\n }",
"x += b",
"x",
"b",
"k += t",
"k",
"t",
"System.out.println(k)",
"System.out.println",
"System.out",
"System",
"System.out",
"k",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int k = sc.nextInt();\n int t = k;\n int b = x;\n\n while(x < n){\n x += b;\n k += t;\n\n }\n System.out.println(k);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int k = sc.nextInt();\n int t = k;\n int b = x;\n\n while(x < n){\n x += b;\n k += t;\n\n }\n System.out.println(k);\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int x = sc.nextInt();
int k = sc.nextInt();
int t = k;
int b = x;
while(x < n){
x += b;
k += t;
}
System.out.println(k);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
4,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
13,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
13,
13,
4,
18,
18,
13,
13,
2,
2,
2,
13,
13,
17,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
183,
8
],
[
183,
9
],
[
9,
10
],
[
9,
11
],
[
183,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
12,
17
],
[
17,
18
],
[
183,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
21,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
21,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
21,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
37,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
37,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
58,
64
],
[
183,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
65,
69
],
[
69,
70
],
[
65,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
65,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
80,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
90,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
79,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
65,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
112,
113
],
[
65,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
121,
122
],
[
65,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
127,
130
],
[
130,
131
],
[
65,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
138,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
134,
151
],
[
151,
152
],
[
65,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
160,
165
],
[
165,
166
],
[
165,
167
],
[
160,
168
],
[
168,
169
],
[
169,
170
],
[
160,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
172,
176
],
[
176,
177
],
[
155,
178
],
[
178,
179
],
[
153,
180
],
[
180,
181
],
[
0,
182
],
[
182,
183
],
[
182,
184
]
]
| [
"\n\nimport java.util.*;\nimport java.io.*;\n\npublic class Main {\n\tstatic FastReader in = new FastReader();\n\n\tpublic static void main(String[] args) {\n\t\tsolve();\n\t}\n\n\tstatic void solve() {\n\t\tint n = in.nextInt();\n\t\tint x = in.nextInt();\n\t\tint t = in.nextInt();\n\t\t\n\t\tif(n % x == 0) System.out.println((n / x) * t);\n\t\telse System.out.println((n / x + 1) * t);\n\t}\n\n\tstatic class FastReader {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic FastReader() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\n\t\tint[] readarr(int abc) {\n\t\t\tint[] a = new int[abc];\n\t\t\tfor (int i = 0; i < abc; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\t}\n}\n\n\n",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\tstatic FastReader in = new FastReader();\n\n\tpublic static void main(String[] args) {\n\t\tsolve();\n\t}\n\n\tstatic void solve() {\n\t\tint n = in.nextInt();\n\t\tint x = in.nextInt();\n\t\tint t = in.nextInt();\n\t\t\n\t\tif(n % x == 0) System.out.println((n / x) * t);\n\t\telse System.out.println((n / x + 1) * t);\n\t}\n\n\tstatic class FastReader {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic FastReader() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\n\t\tint[] readarr(int abc) {\n\t\t\tint[] a = new int[abc];\n\t\t\tfor (int i = 0; i < abc; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\t}\n}",
"Main",
"static FastReader in = new FastReader();",
"in",
"new FastReader()",
"public static void main(String[] args) {\n\t\tsolve();\n\t}",
"main",
"{\n\t\tsolve();\n\t}",
"solve()",
"solve",
"String[] args",
"args",
"static void solve() {\n\t\tint n = in.nextInt();\n\t\tint x = in.nextInt();\n\t\tint t = in.nextInt();\n\t\t\n\t\tif(n % x == 0) System.out.println((n / x) * t);\n\t\telse System.out.println((n / x + 1) * t);\n\t}",
"solve",
"{\n\t\tint n = in.nextInt();\n\t\tint x = in.nextInt();\n\t\tint t = in.nextInt();\n\t\t\n\t\tif(n % x == 0) System.out.println((n / x) * t);\n\t\telse System.out.println((n / x + 1) * t);\n\t}",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"int x = in.nextInt();",
"x",
"in.nextInt()",
"in.nextInt",
"in",
"int t = in.nextInt();",
"t",
"in.nextInt()",
"in.nextInt",
"in",
"if(n % x == 0) System.out.println((n / x) * t);\n\t\telse System.out.println((n / x + 1) * t);",
"n % x == 0",
"n % x",
"n",
"x",
"0",
"System.out.println((n / x) * t)",
"System.out.println",
"System.out",
"System",
"System.out",
"(n / x) * t",
"(n / x)",
"n",
"x",
"t",
"System.out.println((n / x + 1) * t)",
"System.out.println",
"System.out",
"System",
"System.out",
"(n / x + 1) * t",
"(n / x + 1)",
"n / x",
"n",
"x",
"1",
"t",
"static class FastReader {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic FastReader() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\n\t\tint[] readarr(int abc) {\n\t\t\tint[] a = new int[abc];\n\t\t\tfor (int i = 0; i < abc; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\t}",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}",
"FastReader",
"{\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"next",
"{\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"while (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"try {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"IOException e",
"{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t}",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"nextInt",
"{\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"nextLong",
"{\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}",
"nextDouble",
"{\n\t\t\treturn Double.parseDouble(next());\n\t\t}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}",
"nextLine",
"{\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}",
"String str = \"\";",
"str",
"\"\"",
"try {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"IOException e",
"{\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\t\tstr = br.readLine();\n\t\t\t}",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"int[] readarr(int abc) {\n\t\t\tint[] a = new int[abc];\n\t\t\tfor (int i = 0; i < abc; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}",
"readarr",
"{\n\t\t\tint[] a = new int[abc];\n\t\t\tfor (int i = 0; i < abc; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}",
"int[] a = new int[abc];",
"a",
"new int[abc]",
"abc",
"for (int i = 0; i < abc; i++)\n\t\t\t\ta[i] = nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < abc",
"i",
"abc",
"i++",
"i++",
"i",
"a[i] = nextInt();",
"a[i] = nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int abc",
"abc",
"public class Main {\n\tstatic FastReader in = new FastReader();\n\n\tpublic static void main(String[] args) {\n\t\tsolve();\n\t}\n\n\tstatic void solve() {\n\t\tint n = in.nextInt();\n\t\tint x = in.nextInt();\n\t\tint t = in.nextInt();\n\t\t\n\t\tif(n % x == 0) System.out.println((n / x) * t);\n\t\telse System.out.println((n / x + 1) * t);\n\t}\n\n\tstatic class FastReader {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic FastReader() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\n\t\tint[] readarr(int abc) {\n\t\t\tint[] a = new int[abc];\n\t\t\tfor (int i = 0; i < abc; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\t}\n}",
"public class Main {\n\tstatic FastReader in = new FastReader();\n\n\tpublic static void main(String[] args) {\n\t\tsolve();\n\t}\n\n\tstatic void solve() {\n\t\tint n = in.nextInt();\n\t\tint x = in.nextInt();\n\t\tint t = in.nextInt();\n\t\t\n\t\tif(n % x == 0) System.out.println((n / x) * t);\n\t\telse System.out.println((n / x + 1) * t);\n\t}\n\n\tstatic class FastReader {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic FastReader() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\n\t\tint[] readarr(int abc) {\n\t\t\tint[] a = new int[abc];\n\t\t\tfor (int i = 0; i < abc; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\t}\n}",
"Main"
]
|
import java.util.*;
import java.io.*;
public class Main {
static FastReader in = new FastReader();
public static void main(String[] args) {
solve();
}
static void solve() {
int n = in.nextInt();
int x = in.nextInt();
int t = in.nextInt();
if(n % x == 0) System.out.println((n / x) * t);
else System.out.println((n / x + 1) * t);
}
static class FastReader {
BufferedReader br;
StringTokenizer st;
public FastReader() {
br = new BufferedReader(new InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
int[] readarr(int abc) {
int[] a = new int[abc];
for (int i = 0; i < abc; i++)
a[i] = nextInt();
return a;
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
4,
18,
13,
2,
2,
13,
17,
13,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
40,
17,
37,
20,
14,
2,
13,
13,
30,
0,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
29,
2,
13,
13,
12,
13,
30,
29,
2,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
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
],
[
246,
23
],
[
246,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
26,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
26,
37
],
[
37,
38
],
[
37,
39
],
[
26,
40
],
[
40,
41
],
[
40,
42
],
[
26,
43
],
[
43,
44
],
[
43,
45
],
[
26,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
46,
50
],
[
46,
51
],
[
26,
52
],
[
52,
53
],
[
53,
54
],
[
24,
55
],
[
55,
56
],
[
246,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
61,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
61,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
61,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
82,
91
],
[
59,
92
],
[
92,
93
],
[
59,
94
],
[
94,
95
],
[
59,
96
],
[
96,
97
],
[
246,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
98,
102
],
[
102,
103
],
[
102,
104
],
[
98,
106
],
[
106,
107
],
[
98,
108
],
[
108,
109
],
[
98,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
110,
118
],
[
118,
119
],
[
98,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
123,
128
],
[
128,
129
],
[
122,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
138,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
148,
149
],
[
147,
150
],
[
134,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
151,
155
],
[
155,
156
],
[
156,
157
],
[
122,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
98,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
165,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
170,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
165,
178
],
[
178,
179
],
[
178,
180
],
[
165,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
185,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
165,
194
],
[
194,
195
],
[
194,
196
],
[
165,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
197,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
202,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
208,
210
],
[
202,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
165,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
98,
219
],
[
219,
220
],
[
219,
221
],
[
221,
222
],
[
222,
223
],
[
226,
224
],
[
236,
225
],
[
233,
226
],
[
226,
227
],
[
227,
228
],
[
227,
229
],
[
226,
230
],
[
230,
231
],
[
230,
232
],
[
233,
233
],
[
233,
234
],
[
233,
235
],
[
236,
236
],
[
236,
237
],
[
236,
238
],
[
226,
239
],
[
239,
240
],
[
239,
241
],
[
241,
242
],
[
219,
243
],
[
243,
244
],
[
0,
245
],
[
245,
246
],
[
245,
247
]
]
| [
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.io.PrintStream;\nimport java.io.IOException;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author Spandan Mishra\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ATakoyaki solver = new ATakoyaki();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ATakoyaki {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.readInt(), x = in.readInt(), t = in.readInt();\n System.out.println((int) (Math.ceil(n * 1.0 / x) * t));\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1)\n throw new RuntimeException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int readInt() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n }\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.io.PrintStream;",
"PrintStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ATakoyaki solver = new ATakoyaki();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ATakoyaki {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.readInt(), x = in.readInt(), t = in.readInt();\n System.out.println((int) (Math.ceil(n * 1.0 / x) * t));\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1)\n throw new RuntimeException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int readInt() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ATakoyaki solver = new ATakoyaki();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ATakoyaki solver = new ATakoyaki();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"InputReader in = new InputReader(inputStream);",
"in",
"new InputReader(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"ATakoyaki solver = new ATakoyaki();",
"solver",
"new ATakoyaki()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class ATakoyaki {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.readInt(), x = in.readInt(), t = in.readInt();\n System.out.println((int) (Math.ceil(n * 1.0 / x) * t));\n }\n\n }",
"ATakoyaki",
"public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.readInt(), x = in.readInt(), t = in.readInt();\n System.out.println((int) (Math.ceil(n * 1.0 / x) * t));\n }",
"solve",
"{\n int n = in.readInt(), x = in.readInt(), t = in.readInt();\n System.out.println((int) (Math.ceil(n * 1.0 / x) * t));\n }",
"int n = in.readInt()",
"n",
"in.readInt()",
"in.readInt",
"in",
"x = in.readInt()",
"x",
"in.readInt()",
"in.readInt",
"in",
"t = in.readInt();",
"t",
"in.readInt()",
"in.readInt",
"in",
"System.out.println((int) (Math.ceil(n * 1.0 / x) * t))",
"System.out.println",
"System.out",
"System",
"System.out",
"(int) (Math.ceil(n * 1.0 / x) * t)",
"Math.ceil(n * 1.0 / x)",
"Math.ceil",
"Math",
"n * 1.0 / x",
"n * 1.0",
"n",
"1.0",
"x",
"t",
"int testNumber",
"testNumber",
"InputReader in",
"in",
"PrintWriter out",
"out",
"static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1)\n throw new RuntimeException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int readInt() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n }",
"InputReader",
"private InputStream stream;",
"stream",
"private byte[] buf = new byte[1024];",
"buf",
"new byte[1024]",
"1024",
"private int curChar;",
"curChar",
"private int numChars;",
"numChars",
"public InputReader(InputStream stream) {\n this.stream = stream;\n }",
"InputReader",
"{\n this.stream = stream;\n }",
"this.stream = stream",
"this.stream",
"this",
"this.stream",
"stream",
"InputStream stream",
"stream",
"public int read() {\n if (numChars == -1)\n throw new RuntimeException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }",
"read",
"{\n if (numChars == -1)\n throw new RuntimeException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }",
"if (numChars == -1)\n throw new RuntimeException();",
"numChars == -1",
"numChars",
"-1",
"1",
"throw new RuntimeException();",
"new RuntimeException()",
"if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }",
"curChar >= numChars",
"curChar",
"numChars",
"{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }",
"curChar = 0",
"curChar",
"0",
"try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }",
"catch (IOException e) {\n throw new RuntimeException();\n }",
"IOException e",
"{\n throw new RuntimeException();\n }",
"throw new RuntimeException();",
"new RuntimeException()",
"{\n numChars = stream.read(buf);\n }",
"numChars = stream.read(buf)",
"numChars",
"stream.read(buf)",
"stream.read",
"stream",
"buf",
"if (numChars <= 0)\n return -1;",
"numChars <= 0",
"numChars",
"0",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"public int readInt() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"readInt",
"{\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c))\n c = read();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c = read()",
"c",
"read()",
"read",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') {\n sgn = -1;\n c = read();\n }",
"c == '-'",
"c",
"'-'",
"{\n sgn = -1;\n c = read();\n }",
"sgn = -1",
"sgn",
"-1",
"1",
"c = read()",
"c",
"read()",
"read",
"int res = 0;",
"res",
"0",
"do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n res *= 10;\n res += c - '0';\n c = read();\n }",
"res *= 10",
"res",
"10",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = read()",
"c",
"read()",
"read",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"isSpaceChar",
"{\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == '\\t'",
"c == '\\r'",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == ' '",
"c",
"' '",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == '\\t'",
"c",
"'\\t'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ATakoyaki solver = new ATakoyaki();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ATakoyaki {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.readInt(), x = in.readInt(), t = in.readInt();\n System.out.println((int) (Math.ceil(n * 1.0 / x) * t));\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1)\n throw new RuntimeException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int readInt() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ATakoyaki solver = new ATakoyaki();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ATakoyaki {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n int n = in.readInt(), x = in.readInt(), t = in.readInt();\n System.out.println((int) (Math.ceil(n * 1.0 / x) * t));\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1)\n throw new RuntimeException();\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n if (numChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int readInt() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n }\n}",
"Main"
]
| import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.io.PrintStream;
import java.io.IOException;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author Spandan Mishra
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
ATakoyaki solver = new ATakoyaki();
solver.solve(1, in, out);
out.close();
}
static class ATakoyaki {
public void solve(int testNumber, InputReader in, PrintWriter out) {
int n = in.readInt(), x = in.readInt(), t = in.readInt();
System.out.println((int) (Math.ceil(n * 1.0 / x) * t));
}
}
static class InputReader {
private InputStream stream;
private byte[] buf = new byte[1024];
private int curChar;
private int numChars;
public InputReader(InputStream stream) {
this.stream = stream;
}
public int read() {
if (numChars == -1)
throw new RuntimeException();
if (curChar >= numChars) {
curChar = 0;
try {
numChars = stream.read(buf);
} catch (IOException e) {
throw new RuntimeException();
}
if (numChars <= 0)
return -1;
}
return buf[curChar++];
}
public int readInt() {
int c = read();
while (isSpaceChar(c))
c = read();
int sgn = 1;
if (c == '-') {
sgn = -1;
c = read();
}
int res = 0;
do {
res *= 10;
res += c - '0';
c = read();
} while (!isSpaceChar(c));
return res * sgn;
}
public boolean isSpaceChar(int c) {
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
13,
0,
13,
13,
14,
2,
2,
13,
13,
17,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
53,
5
],
[
53,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
6,
50
],
[
50,
51
],
[
0,
52
],
[
52,
53
],
[
52,
54
]
]
| [
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n \n int cnt = n/x;\n cnt *= t;\n if(n%x != 0)\n cnt += t;\n \n System.out.println(cnt);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n \n int cnt = n/x;\n cnt *= t;\n if(n%x != 0)\n cnt += t;\n \n System.out.println(cnt);\n }\n}",
"Main",
"public static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n \n int cnt = n/x;\n cnt *= t;\n if(n%x != 0)\n cnt += t;\n \n System.out.println(cnt);\n }",
"main",
"{\n \tScanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n \n int cnt = n/x;\n cnt *= t;\n if(n%x != 0)\n cnt += t;\n \n System.out.println(cnt);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t = sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int cnt = n/x;",
"cnt",
"n/x",
"n",
"x",
"cnt *= t",
"cnt",
"t",
"if(n%x != 0)\n cnt += t;",
"n%x != 0",
"n%x",
"n",
"x",
"0",
"cnt += t",
"cnt",
"t",
"System.out.println(cnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"cnt",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n \n int cnt = n/x;\n cnt *= t;\n if(n%x != 0)\n cnt += t;\n \n System.out.println(cnt);\n }\n}",
"public class Main{\n public static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n \n int cnt = n/x;\n cnt *= t;\n if(n%x != 0)\n cnt += t;\n \n System.out.println(cnt);\n }\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int x = sc.nextInt();
int t = sc.nextInt();
int cnt = n/x;
cnt *= t;
if(n%x != 0)
cnt += t;
System.out.println(cnt);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
2,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
0,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
13,
13,
17,
30,
4,
18,
13,
2,
2,
13,
13,
13,
4,
18,
13,
2,
2,
2,
13,
13,
17,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
6,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
20,
12,
13,
30,
4,
18,
13,
2,
17,
13,
23,
13,
12,
13,
30,
4,
13,
13,
4,
18,
13,
17,
23,
13,
12,
13,
30,
4,
18,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
28,
29
],
[
28,
30
],
[
0,
31
],
[
31,
32
],
[
31,
33
],
[
0,
34
],
[
34,
35
],
[
34,
36
],
[
0,
37
],
[
267,
38
],
[
267,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
54,
56
],
[
45,
57
],
[
57,
58
],
[
58,
59
],
[
45,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
63,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
62,
74
],
[
74,
75
],
[
74,
76
],
[
41,
77
],
[
77,
78
],
[
39,
79
],
[
79,
80
],
[
39,
81
],
[
81,
82
],
[
267,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
89,
90
],
[
89,
91
],
[
85,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
85,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
85,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
85,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
107,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
107,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
125,
131
],
[
85,
132
],
[
132,
133
],
[
133,
134
],
[
83,
135
],
[
135,
136
],
[
267,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
137,
141
],
[
141,
142
],
[
137,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
137,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
153,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
152,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
162,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
151,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
137,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
181,
184
],
[
184,
185
],
[
137,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
190,
193
],
[
193,
194
],
[
137,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
199,
202
],
[
202,
203
],
[
137,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
206,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
210,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
220,
221
],
[
221,
222
],
[
206,
223
],
[
223,
224
],
[
267,
225
],
[
225,
226
],
[
225,
227
],
[
227,
228
],
[
225,
229
],
[
229,
230
],
[
229,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
233,
235
],
[
232,
236
],
[
225,
237
],
[
237,
238
],
[
237,
239
],
[
239,
240
],
[
240,
241
],
[
241,
242
],
[
240,
243
],
[
243,
244
],
[
243,
245
],
[
237,
246
],
[
246,
247
],
[
225,
248
],
[
248,
249
],
[
248,
250
],
[
250,
251
],
[
251,
252
],
[
251,
253
],
[
250,
254
],
[
254,
255
],
[
255,
256
],
[
254,
257
],
[
248,
258
],
[
258,
259
],
[
225,
260
],
[
260,
261
],
[
260,
262
],
[
262,
263
],
[
263,
264
],
[
264,
265
],
[
0,
266
],
[
266,
267
],
[
266,
268
]
]
| [
"import java.io.BufferedReader;\nimport java.io.BufferedWriter;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.OutputStreamWriter;\nimport java.math.BigInteger;\nimport java.util.Arrays;\nimport java.util.HashSet;\nimport java.util.Scanner;\nimport java.util.Set;\nimport java.util.StringTokenizer;\nimport java.util.TreeSet;\n\n\n/**\n *\n * @author USER\n */\npublic class Main {\n static class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n } \n \n static class BufPrint\n {\n final BufferedWriter bw;\n public BufPrint()\n {\n this.bw=new BufferedWriter(new OutputStreamWriter(System.out));\n }\n public void print(Object object)throws IOException\n {\n bw.append(\"\"+object);\n }\n public void println(Object object)throws IOException\n {\n print(object);\n bw.append(\"\\n\");\n }\n public void close()throws IOException\n {\n bw.close();\n }\n }\n \n\n public static int GCD(int l,int r) {\n int gcd=1;\n for(int i = 1; i <= l && i <= r; ++i)\n {\n // Checks if i is factor of both integers\n if(l % i==0 && r % i==0)\n gcd = i;\n }\n return gcd;\n}\n \n /**\n * @param args the command line arguments\n */\n public static void main(String[] args) throws IOException{\n // TODO code application logic here\n \n FastReader sc=new FastReader(); \n BufPrint bp=new BufPrint();\n\n// int t=sc.nextInt();\n// \n// for(int k1=0;k1<t;k1++){\n int n=sc.nextInt();\n int x=sc.nextInt();\n int t=sc.nextInt();\n \n if(n%x==0){\n bp.println((n/x)*t);\n }\n else\n bp.println(((n/x)+1)*t);\n \n \n \n \n \n// }\n \n \n \n bp.close();\n \n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.BufferedWriter;",
"BufferedWriter",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.OutputStreamWriter;",
"OutputStreamWriter",
"java.io",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Set;",
"Set",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.util.TreeSet;",
"TreeSet",
"java.util",
"public class Main {\n static class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n } \n \n static class BufPrint\n {\n final BufferedWriter bw;\n public BufPrint()\n {\n this.bw=new BufferedWriter(new OutputStreamWriter(System.out));\n }\n public void print(Object object)throws IOException\n {\n bw.append(\"\"+object);\n }\n public void println(Object object)throws IOException\n {\n print(object);\n bw.append(\"\\n\");\n }\n public void close()throws IOException\n {\n bw.close();\n }\n }\n \n\n public static int GCD(int l,int r) {\n int gcd=1;\n for(int i = 1; i <= l && i <= r; ++i)\n {\n // Checks if i is factor of both integers\n if(l % i==0 && r % i==0)\n gcd = i;\n }\n return gcd;\n}\n \n /**\n * @param args the command line arguments\n */\n public static void main(String[] args) throws IOException{\n // TODO code application logic here\n \n FastReader sc=new FastReader(); \n BufPrint bp=new BufPrint();\n\n// int t=sc.nextInt();\n// \n// for(int k1=0;k1<t;k1++){\n int n=sc.nextInt();\n int x=sc.nextInt();\n int t=sc.nextInt();\n \n if(n%x==0){\n bp.println((n/x)*t);\n }\n else\n bp.println(((n/x)+1)*t);\n \n \n \n \n \n// }\n \n \n \n bp.close();\n \n }\n}",
"Main",
"public static int GCD(int l,int r) {\n int gcd=1;\n for(int i = 1; i <= l && i <= r; ++i)\n {\n // Checks if i is factor of both integers\n if(l % i==0 && r % i==0)\n gcd = i;\n }\n return gcd;\n}",
"GCD",
"{\n int gcd=1;\n for(int i = 1; i <= l && i <= r; ++i)\n {\n // Checks if i is factor of both integers\n if(l % i==0 && r % i==0)\n gcd = i;\n }\n return gcd;\n}",
"int gcd=1;",
"gcd",
"1",
"for(int i = 1; i <= l && i <= r; ++i)\n {\n // Checks if i is factor of both integers\n if(l % i==0 && r % i==0)\n gcd = i;\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= l && i <= r",
"i <= l",
"i",
"l",
"i <= r",
"i",
"r",
"++i",
"++i",
"i",
"{\n // Checks if i is factor of both integers\n if(l % i==0 && r % i==0)\n gcd = i;\n }",
"{\n // Checks if i is factor of both integers\n if(l % i==0 && r % i==0)\n gcd = i;\n }",
"if(l % i==0 && r % i==0)\n gcd = i;",
"l % i==0 && r % i==0",
"l % i==0",
"l % i",
"l",
"i",
"0",
"r % i==0",
"r % i",
"r",
"i",
"0",
"gcd = i",
"gcd",
"i",
"return gcd;",
"gcd",
"int l",
"l",
"int r",
"r",
"/**\n * @param args the command line arguments\n */\n public static void main(String[] args) throws IOException{\n // TODO code application logic here\n \n FastReader sc=new FastReader(); \n BufPrint bp=new BufPrint();\n\n// int t=sc.nextInt();\n// \n// for(int k1=0;k1<t;k1++){\n int n=sc.nextInt();\n int x=sc.nextInt();\n int t=sc.nextInt();\n \n if(n%x==0){\n bp.println((n/x)*t);\n }\n else\n bp.println(((n/x)+1)*t);\n \n \n \n \n \n// }\n \n \n \n bp.close();\n \n }",
"main",
"{\n // TODO code application logic here\n \n FastReader sc=new FastReader(); \n BufPrint bp=new BufPrint();\n\n// int t=sc.nextInt();\n// \n// for(int k1=0;k1<t;k1++){\n int n=sc.nextInt();\n int x=sc.nextInt();\n int t=sc.nextInt();\n \n if(n%x==0){\n bp.println((n/x)*t);\n }\n else\n bp.println(((n/x)+1)*t);\n \n \n \n \n \n// }\n \n \n \n bp.close();\n \n }",
"FastReader sc=new FastReader();",
"sc",
"new FastReader()",
"BufPrint bp=new BufPrint();",
"bp",
"new BufPrint()",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x=sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t=sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(n%x==0){\n bp.println((n/x)*t);\n }\n else\n bp.println(((n/x)+1)*t);",
"n%x==0",
"n%x",
"n",
"x",
"0",
"{\n bp.println((n/x)*t);\n }",
"bp.println((n/x)*t)",
"bp.println",
"bp",
"(n/x)*t",
"(n/x)",
"n",
"x",
"t",
"bp.println(((n/x)+1)*t)",
"bp.println",
"bp",
"((n/x)+1)*t",
"((n/x)+1)",
"(n/x)",
"n",
"x",
"1",
"t",
"bp.close()",
"bp.close",
"bp",
"String[] args",
"args",
"static class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n }",
"FastReader",
"{ \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n }",
"br = new BufferedReader(new\n InputStreamReader(System.in))",
"br",
"new BufferedReader(new\n InputStreamReader(System.in))",
"String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n }",
"next",
"{ \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n }",
"while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{ \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n }",
"try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n }",
"catch (IOException e) \n { \n e.printStackTrace(); \n }",
"IOException e",
"{ \n e.printStackTrace(); \n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{ \n st = new StringTokenizer(br.readLine()); \n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() \n { \n return Integer.parseInt(next()); \n }",
"nextInt",
"{ \n return Integer.parseInt(next()); \n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() \n { \n return Long.parseLong(next()); \n }",
"nextLong",
"{ \n return Long.parseLong(next()); \n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() \n { \n return Double.parseDouble(next()); \n }",
"nextDouble",
"{ \n return Double.parseDouble(next()); \n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n }",
"nextLine",
"{ \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n }",
"String str = \"\";",
"str",
"\"\"",
"try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n }",
"catch (IOException e) \n { \n e.printStackTrace(); \n }",
"IOException e",
"{ \n e.printStackTrace(); \n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{ \n str = br.readLine(); \n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"static class BufPrint\n {\n final BufferedWriter bw;\n public BufPrint()\n {\n this.bw=new BufferedWriter(new OutputStreamWriter(System.out));\n }\n public void print(Object object)throws IOException\n {\n bw.append(\"\"+object);\n }\n public void println(Object object)throws IOException\n {\n print(object);\n bw.append(\"\\n\");\n }\n public void close()throws IOException\n {\n bw.close();\n }\n }",
"BufPrint",
"final BufferedWriter bw;",
"bw",
"public BufPrint()\n {\n this.bw=new BufferedWriter(new OutputStreamWriter(System.out));\n }",
"BufPrint",
"{\n this.bw=new BufferedWriter(new OutputStreamWriter(System.out));\n }",
"this.bw=new BufferedWriter(new OutputStreamWriter(System.out))",
"this.bw",
"this",
"this.bw",
"new BufferedWriter(new OutputStreamWriter(System.out))",
"public void print(Object object)throws IOException\n {\n bw.append(\"\"+object);\n }",
"print",
"{\n bw.append(\"\"+object);\n }",
"bw.append(\"\"+object)",
"bw.append",
"bw",
"\"\"+object",
"\"\"",
"object",
"Object object",
"object",
"public void println(Object object)throws IOException\n {\n print(object);\n bw.append(\"\\n\");\n }",
"println",
"{\n print(object);\n bw.append(\"\\n\");\n }",
"print(object)",
"print",
"object",
"bw.append(\"\\n\")",
"bw.append",
"bw",
"\"\\n\"",
"Object object",
"object",
"public void close()throws IOException\n {\n bw.close();\n }",
"close",
"{\n bw.close();\n }",
"bw.close()",
"bw.close",
"bw",
"public class Main {\n static class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n } \n \n static class BufPrint\n {\n final BufferedWriter bw;\n public BufPrint()\n {\n this.bw=new BufferedWriter(new OutputStreamWriter(System.out));\n }\n public void print(Object object)throws IOException\n {\n bw.append(\"\"+object);\n }\n public void println(Object object)throws IOException\n {\n print(object);\n bw.append(\"\\n\");\n }\n public void close()throws IOException\n {\n bw.close();\n }\n }\n \n\n public static int GCD(int l,int r) {\n int gcd=1;\n for(int i = 1; i <= l && i <= r; ++i)\n {\n // Checks if i is factor of both integers\n if(l % i==0 && r % i==0)\n gcd = i;\n }\n return gcd;\n}\n \n /**\n * @param args the command line arguments\n */\n public static void main(String[] args) throws IOException{\n // TODO code application logic here\n \n FastReader sc=new FastReader(); \n BufPrint bp=new BufPrint();\n\n// int t=sc.nextInt();\n// \n// for(int k1=0;k1<t;k1++){\n int n=sc.nextInt();\n int x=sc.nextInt();\n int t=sc.nextInt();\n \n if(n%x==0){\n bp.println((n/x)*t);\n }\n else\n bp.println(((n/x)+1)*t);\n \n \n \n \n \n// }\n \n \n \n bp.close();\n \n }\n}",
"public class Main {\n static class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n } \n \n static class BufPrint\n {\n final BufferedWriter bw;\n public BufPrint()\n {\n this.bw=new BufferedWriter(new OutputStreamWriter(System.out));\n }\n public void print(Object object)throws IOException\n {\n bw.append(\"\"+object);\n }\n public void println(Object object)throws IOException\n {\n print(object);\n bw.append(\"\\n\");\n }\n public void close()throws IOException\n {\n bw.close();\n }\n }\n \n\n public static int GCD(int l,int r) {\n int gcd=1;\n for(int i = 1; i <= l && i <= r; ++i)\n {\n // Checks if i is factor of both integers\n if(l % i==0 && r % i==0)\n gcd = i;\n }\n return gcd;\n}\n \n /**\n * @param args the command line arguments\n */\n public static void main(String[] args) throws IOException{\n // TODO code application logic here\n \n FastReader sc=new FastReader(); \n BufPrint bp=new BufPrint();\n\n// int t=sc.nextInt();\n// \n// for(int k1=0;k1<t;k1++){\n int n=sc.nextInt();\n int x=sc.nextInt();\n int t=sc.nextInt();\n \n if(n%x==0){\n bp.println((n/x)*t);\n }\n else\n bp.println(((n/x)+1)*t);\n \n \n \n \n \n// }\n \n \n \n bp.close();\n \n }\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
import java.util.StringTokenizer;
import java.util.TreeSet;
/**
*
* @author USER
*/
public class Main {
static class FastReader
{
BufferedReader br;
StringTokenizer st;
public FastReader()
{
br = new BufferedReader(new
InputStreamReader(System.in));
}
String next()
{
while (st == null || !st.hasMoreElements())
{
try
{
st = new StringTokenizer(br.readLine());
}
catch (IOException e)
{
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt()
{
return Integer.parseInt(next());
}
long nextLong()
{
return Long.parseLong(next());
}
double nextDouble()
{
return Double.parseDouble(next());
}
String nextLine()
{
String str = "";
try
{
str = br.readLine();
}
catch (IOException e)
{
e.printStackTrace();
}
return str;
}
}
static class BufPrint
{
final BufferedWriter bw;
public BufPrint()
{
this.bw=new BufferedWriter(new OutputStreamWriter(System.out));
}
public void print(Object object)throws IOException
{
bw.append(""+object);
}
public void println(Object object)throws IOException
{
print(object);
bw.append("\n");
}
public void close()throws IOException
{
bw.close();
}
}
public static int GCD(int l,int r) {
int gcd=1;
for(int i = 1; i <= l && i <= r; ++i)
{
// Checks if i is factor of both integers
if(l % i==0 && r % i==0)
gcd = i;
}
return gcd;
}
/**
* @param args the command line arguments
*/
public static void main(String[] args) throws IOException{
// TODO code application logic here
FastReader sc=new FastReader();
BufPrint bp=new BufPrint();
// int t=sc.nextInt();
//
// for(int k1=0;k1<t;k1++){
int n=sc.nextInt();
int x=sc.nextInt();
int t=sc.nextInt();
if(n%x==0){
bp.println((n/x)*t);
}
else
bp.println(((n/x)+1)*t);
// }
bp.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
29,
4,
18,
4,
18,
13,
17,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
18,
13,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
29,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
18,
13,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
29,
13,
12,
13,
30,
29,
4,
18,
4,
18,
20,
23,
13,
12,
13,
30,
41,
13,
17,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
0,
13,
13,
0,
13,
13,
0,
13,
2,
13,
13,
0,
13,
13,
0,
13,
17,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
17,
14,
2,
13,
17,
0,
13,
20,
0,
13,
20,
14,
2,
13,
17,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
4,
18,
13,
4,
18,
20,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
40,
13,
0,
13,
2,
2,
2,
13,
17,
13,
13,
4,
18,
18,
13,
13,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
18,
13,
17,
41,
13,
18,
13,
17,
0,
13,
4,
13,
41,
13,
17,
41,
13,
2,
17,
17,
42,
2,
13,
13,
30,
41,
13,
2,
2,
13,
13,
17,
41,
13,
4,
13,
13,
13,
14,
2,
13,
13,
0,
13,
2,
13,
17,
0,
13,
13,
4,
18,
13,
13,
12,
13,
30,
41,
13,
17,
28,
13,
13,
30,
30,
14,
2,
13,
13,
0,
13,
2,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
4,
18,
4,
18,
13,
41,
13,
17,
41,
13,
2,
13,
17,
41,
13,
17,
42,
2,
13,
13,
30,
42,
2,
2,
13,
13,
2,
18,
13,
13,
17,
40,
13,
42,
2,
2,
13,
13,
2,
18,
13,
13,
17,
40,
13,
14,
2,
13,
13,
30,
4,
13,
13,
13,
13,
40,
13,
40,
13,
40,
13,
4,
18,
13,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
2,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
2,
18,
13,
13,
18,
13,
13,
13,
4,
18,
13,
13,
12,
13,
30,
14,
2,
13,
17,
29,
13,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
13,
13,
9,
14,
4,
13,
18,
13,
13,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
18,
13,
13,
18,
13,
13,
40,
13,
4,
18,
13,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
29,
17,
41,
13,
2,
13,
17,
11,
1,
41,
13,
2,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
40,
13,
14,
2,
13,
17,
29,
17,
29,
17,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
18,
13,
17,
41,
13,
18,
13,
17,
41,
13,
18,
13,
17,
41,
13,
2,
13,
13,
14,
2,
2,
13,
13,
17,
40,
13,
4,
18,
13,
2,
13,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
784,
11
],
[
784,
12
],
[
12,
13
],
[
784,
14
],
[
14,
15
],
[
14,
16
],
[
784,
17
],
[
17,
18
],
[
17,
19
],
[
784,
20
],
[
20,
21
],
[
20,
22
],
[
784,
23
],
[
23,
24
],
[
23,
25
],
[
784,
26
],
[
26,
27
],
[
26,
28
],
[
784,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
31,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
41,
43
],
[
31,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
29,
49
],
[
49,
50
],
[
29,
51
],
[
51,
52
],
[
29,
53
],
[
53,
54
],
[
784,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
60,
62
],
[
57,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
67,
69
],
[
57,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
55,
75
],
[
75,
76
],
[
55,
77
],
[
77,
78
],
[
55,
79
],
[
79,
80
],
[
784,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
85,
90
],
[
784,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
98,
99
],
[
99,
100
],
[
784,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
108,
109
],
[
109,
110
],
[
784,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
120,
122
],
[
113,
123
],
[
123,
124
],
[
123,
125
],
[
113,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
132,
133
],
[
132,
134
],
[
127,
135
],
[
135,
136
],
[
136,
137
],
[
127,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
143,
144
],
[
144,
145
],
[
143,
146
],
[
146,
147
],
[
146,
148
],
[
113,
149
],
[
149,
150
],
[
784,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
153,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
160,
162
],
[
153,
163
],
[
163,
164
],
[
163,
165
],
[
153,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
172,
173
],
[
172,
174
],
[
167,
175
],
[
175,
176
],
[
176,
177
],
[
167,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
179,
183
],
[
183,
184
],
[
184,
185
],
[
183,
186
],
[
186,
187
],
[
186,
188
],
[
153,
189
],
[
189,
190
],
[
784,
191
],
[
191,
192
],
[
191,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
191,
200
],
[
200,
201
],
[
784,
202
],
[
202,
203
],
[
202,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
204,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
208,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
214,
218
],
[
213,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
219,
223
],
[
223,
224
],
[
223,
225
],
[
212,
226
],
[
226,
227
],
[
226,
228
],
[
228,
229
],
[
228,
230
],
[
212,
231
],
[
231,
232
],
[
231,
233
],
[
212,
234
],
[
234,
235
],
[
234,
236
],
[
204,
237
],
[
237,
238
],
[
202,
239
],
[
239,
240
],
[
202,
241
],
[
241,
242
],
[
784,
243
],
[
243,
244
],
[
243,
245
],
[
245,
246
],
[
246,
247
],
[
246,
248
],
[
248,
249
],
[
249,
250
],
[
248,
251
],
[
245,
252
],
[
252,
253
],
[
253,
254
],
[
253,
255
],
[
252,
256
],
[
256,
257
],
[
256,
258
],
[
252,
259
],
[
259,
260
],
[
259,
261
],
[
245,
262
],
[
262,
263
],
[
263,
264
],
[
263,
265
],
[
262,
266
],
[
266,
267
],
[
267,
268
],
[
267,
269
],
[
269,
270
],
[
270,
271
],
[
271,
272
],
[
272,
273
],
[
269,
274
],
[
266,
275
],
[
275,
276
],
[
275,
277
],
[
277,
278
],
[
278,
279
],
[
279,
280
],
[
280,
281
],
[
245,
282
],
[
282,
283
],
[
283,
284
],
[
245,
285
],
[
285,
286
],
[
286,
287
],
[
243,
288
],
[
288,
289
],
[
784,
290
],
[
290,
291
],
[
290,
292
],
[
292,
293
],
[
293,
294
],
[
293,
295
],
[
295,
296
],
[
292,
297
],
[
297,
298
],
[
297,
299
],
[
299,
300
],
[
300,
301
],
[
292,
302
],
[
302,
303
],
[
302,
304
],
[
304,
305
],
[
305,
306
],
[
292,
307
],
[
307,
308
],
[
307,
309
],
[
292,
310
],
[
310,
311
],
[
310,
312
],
[
292,
313
],
[
313,
314
],
[
314,
315
],
[
315,
316
],
[
315,
317
],
[
313,
318
],
[
318,
319
],
[
318,
320
],
[
313,
321
],
[
321,
322
],
[
322,
323
],
[
313,
324
],
[
325,
325
],
[
325,
326
],
[
326,
327
],
[
325,
328
],
[
328,
329
],
[
328,
330
],
[
330,
331
],
[
331,
332
],
[
332,
333
],
[
332,
334
],
[
331,
335
],
[
330,
336
],
[
292,
337
],
[
337,
338
],
[
338,
339
],
[
339,
340
],
[
339,
341
],
[
337,
342
],
[
784,
343
],
[
343,
344
],
[
343,
345
],
[
345,
346
],
[
346,
347
],
[
346,
348
],
[
348,
349
],
[
345,
350
],
[
350,
351
],
[
350,
352
],
[
352,
353
],
[
352,
354
],
[
345,
355
],
[
355,
356
],
[
355,
357
],
[
357,
358
],
[
357,
359
],
[
345,
360
],
[
360,
361
],
[
360,
362
],
[
362,
363
],
[
345,
364
],
[
364,
365
],
[
364,
366
],
[
345,
367
],
[
367,
368
],
[
367,
369
],
[
369,
370
],
[
369,
371
],
[
345,
372
],
[
372,
373
],
[
373,
374
],
[
373,
375
],
[
372,
376
],
[
376,
377
],
[
377,
378
],
[
377,
379
],
[
379,
380
],
[
380,
381
],
[
380,
382
],
[
379,
383
],
[
376,
384
],
[
384,
385
],
[
384,
386
],
[
386,
387
],
[
386,
388
],
[
386,
389
],
[
376,
390
],
[
390,
391
],
[
391,
392
],
[
391,
393
],
[
390,
394
],
[
394,
395
],
[
394,
396
],
[
396,
397
],
[
396,
398
],
[
390,
399
],
[
399,
400
],
[
399,
401
],
[
345,
402
],
[
402,
403
],
[
403,
404
],
[
402,
405
],
[
784,
406
],
[
406,
407
],
[
406,
408
],
[
408,
409
],
[
409,
410
],
[
409,
411
],
[
408,
412
],
[
412,
413
],
[
412,
414
],
[
412,
415
],
[
416,
416
],
[
416,
417
],
[
417,
418
],
[
418,
419
],
[
418,
420
],
[
417,
421
],
[
421,
422
],
[
421,
423
],
[
423,
424
],
[
423,
425
],
[
408,
426
],
[
426,
427
],
[
406,
428
],
[
428,
429
],
[
406,
430
],
[
430,
431
],
[
784,
432
],
[
432,
433
],
[
432,
434
],
[
434,
435
],
[
435,
436
],
[
435,
437
],
[
437,
438
],
[
434,
439
],
[
439,
440
],
[
439,
441
],
[
441,
442
],
[
442,
443
],
[
443,
444
],
[
444,
445
],
[
434,
446
],
[
446,
447
],
[
446,
448
],
[
434,
449
],
[
449,
450
],
[
449,
451
],
[
451,
452
],
[
451,
453
],
[
434,
454
],
[
454,
455
],
[
454,
456
],
[
434,
457
],
[
457,
458
],
[
458,
459
],
[
458,
460
],
[
457,
461
],
[
461,
462
],
[
462,
463
],
[
463,
464
],
[
464,
465
],
[
464,
466
],
[
463,
467
],
[
467,
468
],
[
468,
469
],
[
468,
470
],
[
467,
471
],
[
462,
472
],
[
472,
473
],
[
461,
474
],
[
474,
475
],
[
475,
476
],
[
476,
477
],
[
476,
478
],
[
475,
479
],
[
479,
480
],
[
480,
481
],
[
480,
482
],
[
479,
483
],
[
474,
484
],
[
484,
485
],
[
461,
486
],
[
486,
487
],
[
487,
488
],
[
487,
489
],
[
486,
490
],
[
490,
491
],
[
491,
492
],
[
491,
493
],
[
491,
494
],
[
491,
495
],
[
490,
496
],
[
496,
497
],
[
490,
498
],
[
498,
499
],
[
490,
500
],
[
500,
501
],
[
434,
502
],
[
502,
503
],
[
503,
504
],
[
502,
505
],
[
784,
506
],
[
506,
507
],
[
506,
508
],
[
508,
509
],
[
509,
510
],
[
509,
511
],
[
511,
512
],
[
508,
513
],
[
513,
514
],
[
513,
515
],
[
515,
516
],
[
508,
517
],
[
517,
518
],
[
517,
519
],
[
508,
520
],
[
520,
521
],
[
520,
522
],
[
508,
523
],
[
523,
524
],
[
524,
525
],
[
525,
526
],
[
525,
527
],
[
523,
528
],
[
528,
529
],
[
528,
530
],
[
523,
531
],
[
531,
532
],
[
532,
533
],
[
523,
534
],
[
535,
535
],
[
535,
536
],
[
536,
537
],
[
537,
538
],
[
538,
539
],
[
538,
540
],
[
540,
541
],
[
540,
542
],
[
536,
543
],
[
543,
544
],
[
543,
545
],
[
536,
546
],
[
546,
547
],
[
547,
548
],
[
536,
549
],
[
550,
550
],
[
550,
551
],
[
551,
552
],
[
551,
553
],
[
553,
554
],
[
554,
555
],
[
555,
556
],
[
555,
557
],
[
554,
558
],
[
558,
559
],
[
558,
560
],
[
553,
561
],
[
508,
562
],
[
562,
563
],
[
563,
564
],
[
562,
565
],
[
784,
566
],
[
566,
567
],
[
566,
568
],
[
568,
569
],
[
569,
570
],
[
570,
571
],
[
570,
572
],
[
569,
573
],
[
573,
574
],
[
568,
575
],
[
575,
576
],
[
576,
577
],
[
576,
578
],
[
576,
579
],
[
579,
580
],
[
579,
581
],
[
566,
582
],
[
582,
583
],
[
566,
584
],
[
584,
585
],
[
784,
586
],
[
586,
587
],
[
586,
588
],
[
588,
589
],
[
589,
590
],
[
589,
591
],
[
591,
592
],
[
588,
593
],
[
593,
594
],
[
593,
595
],
[
588,
597
],
[
597,
598
],
[
598,
599
],
[
599,
600
],
[
599,
601
],
[
597,
602
],
[
602,
603
],
[
602,
604
],
[
597,
605
],
[
605,
606
],
[
606,
607
],
[
597,
608
],
[
609,
609
],
[
609,
610
],
[
610,
611
],
[
611,
612
],
[
611,
613
],
[
610,
614
],
[
614,
615
],
[
615,
616
],
[
588,
617
],
[
617,
618
],
[
617,
619
],
[
588,
620
],
[
620,
621
],
[
621,
622
],
[
622,
623
],
[
622,
624
],
[
620,
625
],
[
625,
626
],
[
625,
627
],
[
620,
628
],
[
628,
629
],
[
629,
630
],
[
620,
631
],
[
632,
632
],
[
632,
633
],
[
633,
634
],
[
634,
635
],
[
635,
636
],
[
635,
637
],
[
633,
638
],
[
638,
639
],
[
638,
640
],
[
633,
641
],
[
641,
642
],
[
642,
643
],
[
633,
644
],
[
645,
645
],
[
645,
646
],
[
646,
647
],
[
647,
648
],
[
647,
649
],
[
646,
650
],
[
645,
651
],
[
651,
652
],
[
652,
653
],
[
652,
654
],
[
654,
655
],
[
654,
656
],
[
652,
657
],
[
657,
658
],
[
657,
659
],
[
651,
660
],
[
660,
661
],
[
661,
662
],
[
662,
663
],
[
663,
664
],
[
663,
665
],
[
661,
666
],
[
661,
667
],
[
667,
668
],
[
667,
669
],
[
661,
670
],
[
670,
671
],
[
670,
672
],
[
660,
673
],
[
673,
674
],
[
588,
675
],
[
675,
676
],
[
676,
677
],
[
675,
678
],
[
784,
679
],
[
679,
680
],
[
679,
681
],
[
681,
682
],
[
682,
683
],
[
682,
684
],
[
684,
685
],
[
685,
686
],
[
681,
687
],
[
687,
688
],
[
687,
689
],
[
689,
690
],
[
690,
691
],
[
681,
692
],
[
692,
693
],
[
693,
694
],
[
693,
695
],
[
692,
696
],
[
696,
697
],
[
681,
698
],
[
698,
699
],
[
698,
700
],
[
700,
701
],
[
700,
702
],
[
681,
703
],
[
703,
704
],
[
704,
705
],
[
705,
706
],
[
705,
707
],
[
707,
708
],
[
707,
709
],
[
703,
710
],
[
710,
711
],
[
710,
712
],
[
703,
713
],
[
713,
714
],
[
714,
715
],
[
703,
716
],
[
717,
717
],
[
717,
718
],
[
718,
719
],
[
719,
720
],
[
720,
721
],
[
721,
722
],
[
720,
723
],
[
719,
724
],
[
724,
725
],
[
725,
726
],
[
724,
727
],
[
718,
728
],
[
728,
729
],
[
717,
730
],
[
730,
731
],
[
731,
732
],
[
731,
733
],
[
730,
734
],
[
734,
735
],
[
681,
736
],
[
736,
737
],
[
679,
738
],
[
738,
739
],
[
679,
740
],
[
740,
741
],
[
784,
742
],
[
742,
743
],
[
742,
744
],
[
744,
745
],
[
745,
746
],
[
745,
747
],
[
747,
748
],
[
744,
749
],
[
749,
750
],
[
749,
751
],
[
751,
752
],
[
751,
753
],
[
744,
754
],
[
754,
755
],
[
754,
756
],
[
756,
757
],
[
756,
758
],
[
744,
759
],
[
759,
760
],
[
759,
761
],
[
761,
762
],
[
761,
763
],
[
744,
764
],
[
764,
765
],
[
764,
766
],
[
766,
767
],
[
766,
768
],
[
744,
769
],
[
769,
770
],
[
770,
771
],
[
771,
772
],
[
771,
773
],
[
770,
774
],
[
769,
775
],
[
775,
776
],
[
744,
777
],
[
777,
778
],
[
778,
779
],
[
777,
780
],
[
780,
781
],
[
780,
782
],
[
0,
783
],
[
783,
784
],
[
783,
785
]
]
| [
"import java.math.*;\nimport java.util.*;\nimport java.io.*;\n \npublic class Main { \n \n static BufferedReader in;\n static PrintWriter out = new PrintWriter(System.out);\n static String file = \"../in\";\n static int test = 10; // 0 for local testing, 1 for std input\n static int inf = 1_000_000, mod = 1_000_000_007;\n\n\n\n void swap(int[]ary, int i, int j)\n {\n int t = ary[i];\n ary[i] = ary[j];\n ary[j] = t;\n }\n\n void swap(char[]ary, int i, int j)\n {\n char t = ary[i];\n ary[i] = ary[j];\n ary[j] = t;\n }\n \n String[] split() throws Exception\n {\n return in.readLine().split(\" \");\n }\n\n int readInt() throws Exception\n {\n return Integer.valueOf(in.readLine());\n }\n\n long readLong() throws Exception\n {\n return Long.valueOf(in.readLine());\n }\n\n long[] toLongArray() throws Exception\n {\n String[] sp = split();\n int n = sp.length;\n long[] ary = new long[n];\n for(int i = 0; i < n; i++) ary[i] = Long.valueOf(sp[i]);\n return ary;\n }\n\n int[] toIntArray() throws Exception\n {\n String[] sp = split();\n int n = sp.length;\n int[] ary = new int[n];\n for(int i = 0; i < n; i++) ary[i] = Integer.valueOf(sp[i]);\n return ary;\n }\n\n String reverse(String str)\n {\n return new StringBuilder(str).reverse().toString();\n }\n\n\n long pow(long a, int pow)\n {\n long res = 1;\n while(pow > 0)\n {\n if(pow % 2 != 0) {\n res *= a;\n res %= mod;\n }\n a = a * a;\n a %= mod;\n pow /= 2;\n }\n\n return res;\n }\n\n public static void main(String[] args) throws Exception\n {\n int _k = Integer.valueOf(\"1\");\n if(test > 0) in = new BufferedReader(new InputStreamReader(System.in));\n else in = new BufferedReader(new FileReader(file));\n if(test < 0) {String[] str = in.readLine().split(\" \");\n char[] gg = in.readLine().toCharArray();}\n/***********************************************************************/\n/***********************************************************************/\n/***********************************************************************/\n/***********************************************************************/\n // System.out.println((-100 + 0) / 2);\n\n // char[] c = new char[4];\n // c[1] = '.';\n // for(char i = '0'; i <= '9'; i++)\n // {\n // for(char j = '0'; j <= '9'; j++)\n // {\n // for(char k = '0'; k <= '9'; k++)\n // {\n // c[0] = i;\n // c[2] = j;\n // c[3] = k;\n // double d = Double.valueOf(String.valueOf(c));\n // int v = (int)(d * 100);\n // String s1 = String.valueOf(\"\" + c[0] + c[2] + c[3]),\n // s2 = String.valueOf(v);\n // System.out.printf(\"%s %s %b\\n\", s1, s2, s1.equals(s2));\n // }\n // }\n // }\n\n\n new Main().a();\n out.flush();\n }\n void f() throws Exception\n {\n int k = readInt();\n String s = in.readLine();\n int n = s.length();\n long prod = 1;\n int mod = 1_000_000_007;\n for(int i = 0; i < k; i++)\n {\n n++;\n prod = (prod * 26 * n) % mod;\n }\n System.out.println(prod);\n\n }\n\n void e() throws Exception\n {\n int[] ary = toIntArray();\n int n = ary[0], k = ary[1];\n ary = toIntArray();\n int lo = 1, hi = 1 << 30;\n while(lo < hi)\n {\n int m = (lo + hi) / 2;\n int cut = numCut(ary, m);\n // System.out.printf(\"%d %d\\n\", m, cut);\n if(cut > k) lo = m + 1;\n else hi = m;\n }\n out.println(lo);\n }\n\n int numCut(int[] ary, int thres)\n {\n int count = 0;\n for(int v : ary)\n {\n if(v > thres)\n count += v / thres;\n // count += v % thres > 0 ? 1 : 0;\n }\n return count;\n }\n\n void d() throws Exception\n {\n int n = readInt();\n char[] c = in.readLine().toCharArray();\n int i = 0, j = n - 1, re = 0;\n while(i < j)\n {\n while(i < j && c[i] == 'R') i++;\n while(i < j && c[j] == 'W') j--;\n if(i < j)\n {\n swap(c, i, j);\n i++;\n j--;\n re++;\n }\n }\n out.println(re);\n }\n\n\n\n void c() throws Exception\n {\n int n = readInt();\n int[] ary = toIntArray();\n int p = 200_003;\n long sum = 0;\n for(int i = 0; i < n; i++)\n {\n for(int j = i + 1; j < n; j++)\n {\n sum += (ary[i] * ary[j]) % p;\n }\n }\n out.println(sum);\n \n }\n\n int gcd(int a, int b)\n {\n if(b == 0) return a;\n return gcd(b, a % b);\n }\n\n void b() throws Exception\n {\n int n = readInt();\n String[] words = new String[n];\n for(int i = 0; i < n; i++)\n {\n words[i] = in.readLine();\n }\n\n int re = 0;\n for(int i = 0; i < n; i++)\n {\n for(int j = 0; j < n; j++)\n {\n if(i == j) continue;\n if(transform(words[i], words[j]))\n {\n System.out.printf(\"%s %s \\n\", words[i], words[j]);\n re++;\n }\n }\n }\n out.println(re);\n }\n\n boolean transform(String s1, String s2)\n {\n // from s1 -> s2\n int m = s1.length(), n = s2.length();\n if(m < n) return false;\n int j = n - 1;\n for(int i = m - 1; i >=0; i--)\n {\n if(s1.charAt(i) == s2.charAt(j)) j--;\n if(j < 0) return true;\n }\n return false;\n }\n\n void a() throws Exception\n {\n int[] ary = toIntArray();\n int n = ary[0], x = ary[1], t = ary[2];\n int mult = n / x;\n if(n % x != 0) mult++;\n out.println(mult * t);\n \n }\n}",
"import java.math.*;",
"math.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main { \n \n static BufferedReader in;\n static PrintWriter out = new PrintWriter(System.out);\n static String file = \"../in\";\n static int test = 10; // 0 for local testing, 1 for std input\n static int inf = 1_000_000, mod = 1_000_000_007;\n\n\n\n void swap(int[]ary, int i, int j)\n {\n int t = ary[i];\n ary[i] = ary[j];\n ary[j] = t;\n }\n\n void swap(char[]ary, int i, int j)\n {\n char t = ary[i];\n ary[i] = ary[j];\n ary[j] = t;\n }\n \n String[] split() throws Exception\n {\n return in.readLine().split(\" \");\n }\n\n int readInt() throws Exception\n {\n return Integer.valueOf(in.readLine());\n }\n\n long readLong() throws Exception\n {\n return Long.valueOf(in.readLine());\n }\n\n long[] toLongArray() throws Exception\n {\n String[] sp = split();\n int n = sp.length;\n long[] ary = new long[n];\n for(int i = 0; i < n; i++) ary[i] = Long.valueOf(sp[i]);\n return ary;\n }\n\n int[] toIntArray() throws Exception\n {\n String[] sp = split();\n int n = sp.length;\n int[] ary = new int[n];\n for(int i = 0; i < n; i++) ary[i] = Integer.valueOf(sp[i]);\n return ary;\n }\n\n String reverse(String str)\n {\n return new StringBuilder(str).reverse().toString();\n }\n\n\n long pow(long a, int pow)\n {\n long res = 1;\n while(pow > 0)\n {\n if(pow % 2 != 0) {\n res *= a;\n res %= mod;\n }\n a = a * a;\n a %= mod;\n pow /= 2;\n }\n\n return res;\n }\n\n public static void main(String[] args) throws Exception\n {\n int _k = Integer.valueOf(\"1\");\n if(test > 0) in = new BufferedReader(new InputStreamReader(System.in));\n else in = new BufferedReader(new FileReader(file));\n if(test < 0) {String[] str = in.readLine().split(\" \");\n char[] gg = in.readLine().toCharArray();}\n/***********************************************************************/\n/***********************************************************************/\n/***********************************************************************/\n/***********************************************************************/\n // System.out.println((-100 + 0) / 2);\n\n // char[] c = new char[4];\n // c[1] = '.';\n // for(char i = '0'; i <= '9'; i++)\n // {\n // for(char j = '0'; j <= '9'; j++)\n // {\n // for(char k = '0'; k <= '9'; k++)\n // {\n // c[0] = i;\n // c[2] = j;\n // c[3] = k;\n // double d = Double.valueOf(String.valueOf(c));\n // int v = (int)(d * 100);\n // String s1 = String.valueOf(\"\" + c[0] + c[2] + c[3]),\n // s2 = String.valueOf(v);\n // System.out.printf(\"%s %s %b\\n\", s1, s2, s1.equals(s2));\n // }\n // }\n // }\n\n\n new Main().a();\n out.flush();\n }\n void f() throws Exception\n {\n int k = readInt();\n String s = in.readLine();\n int n = s.length();\n long prod = 1;\n int mod = 1_000_000_007;\n for(int i = 0; i < k; i++)\n {\n n++;\n prod = (prod * 26 * n) % mod;\n }\n System.out.println(prod);\n\n }\n\n void e() throws Exception\n {\n int[] ary = toIntArray();\n int n = ary[0], k = ary[1];\n ary = toIntArray();\n int lo = 1, hi = 1 << 30;\n while(lo < hi)\n {\n int m = (lo + hi) / 2;\n int cut = numCut(ary, m);\n // System.out.printf(\"%d %d\\n\", m, cut);\n if(cut > k) lo = m + 1;\n else hi = m;\n }\n out.println(lo);\n }\n\n int numCut(int[] ary, int thres)\n {\n int count = 0;\n for(int v : ary)\n {\n if(v > thres)\n count += v / thres;\n // count += v % thres > 0 ? 1 : 0;\n }\n return count;\n }\n\n void d() throws Exception\n {\n int n = readInt();\n char[] c = in.readLine().toCharArray();\n int i = 0, j = n - 1, re = 0;\n while(i < j)\n {\n while(i < j && c[i] == 'R') i++;\n while(i < j && c[j] == 'W') j--;\n if(i < j)\n {\n swap(c, i, j);\n i++;\n j--;\n re++;\n }\n }\n out.println(re);\n }\n\n\n\n void c() throws Exception\n {\n int n = readInt();\n int[] ary = toIntArray();\n int p = 200_003;\n long sum = 0;\n for(int i = 0; i < n; i++)\n {\n for(int j = i + 1; j < n; j++)\n {\n sum += (ary[i] * ary[j]) % p;\n }\n }\n out.println(sum);\n \n }\n\n int gcd(int a, int b)\n {\n if(b == 0) return a;\n return gcd(b, a % b);\n }\n\n void b() throws Exception\n {\n int n = readInt();\n String[] words = new String[n];\n for(int i = 0; i < n; i++)\n {\n words[i] = in.readLine();\n }\n\n int re = 0;\n for(int i = 0; i < n; i++)\n {\n for(int j = 0; j < n; j++)\n {\n if(i == j) continue;\n if(transform(words[i], words[j]))\n {\n System.out.printf(\"%s %s \\n\", words[i], words[j]);\n re++;\n }\n }\n }\n out.println(re);\n }\n\n boolean transform(String s1, String s2)\n {\n // from s1 -> s2\n int m = s1.length(), n = s2.length();\n if(m < n) return false;\n int j = n - 1;\n for(int i = m - 1; i >=0; i--)\n {\n if(s1.charAt(i) == s2.charAt(j)) j--;\n if(j < 0) return true;\n }\n return false;\n }\n\n void a() throws Exception\n {\n int[] ary = toIntArray();\n int n = ary[0], x = ary[1], t = ary[2];\n int mult = n / x;\n if(n % x != 0) mult++;\n out.println(mult * t);\n \n }\n}",
"Main",
"static BufferedReader in;",
"in",
"static PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"static String file = \"../in\";",
"file",
"\"../in\"",
"static int test = 10; // 0 for local testing, 1 for std input",
"test",
"10",
"static int inf = 1_000_000",
"inf",
"1_000_000",
"mod = 1_000_000_007;",
"mod",
"1_000_000_007",
"void swap(int[]ary, int i, int j)\n {\n int t = ary[i];\n ary[i] = ary[j];\n ary[j] = t;\n }",
"swap",
"{\n int t = ary[i];\n ary[i] = ary[j];\n ary[j] = t;\n }",
"int t = ary[i];",
"t",
"ary[i]",
"ary",
"i",
"ary[i] = ary[j]",
"ary[i]",
"ary",
"i",
"ary[j]",
"ary",
"j",
"ary[j] = t",
"ary[j]",
"ary",
"j",
"t",
"int[]ary",
"ary",
"int i",
"i",
"int j",
"j",
"void swap(char[]ary, int i, int j)\n {\n char t = ary[i];\n ary[i] = ary[j];\n ary[j] = t;\n }",
"swap",
"{\n char t = ary[i];\n ary[i] = ary[j];\n ary[j] = t;\n }",
"char t = ary[i];",
"t",
"ary[i]",
"ary",
"i",
"ary[i] = ary[j]",
"ary[i]",
"ary",
"i",
"ary[j]",
"ary",
"j",
"ary[j] = t",
"ary[j]",
"ary",
"j",
"t",
"char[]ary",
"ary",
"int i",
"i",
"int j",
"j",
"String[] split() throws Exception\n {\n return in.readLine().split(\" \");\n }",
"split",
"{\n return in.readLine().split(\" \");\n }",
"return in.readLine().split(\" \");",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"int readInt() throws Exception\n {\n return Integer.valueOf(in.readLine());\n }",
"readInt",
"{\n return Integer.valueOf(in.readLine());\n }",
"return Integer.valueOf(in.readLine());",
"Integer.valueOf(in.readLine())",
"Integer.valueOf",
"Integer",
"in.readLine()",
"in.readLine",
"in",
"long readLong() throws Exception\n {\n return Long.valueOf(in.readLine());\n }",
"readLong",
"{\n return Long.valueOf(in.readLine());\n }",
"return Long.valueOf(in.readLine());",
"Long.valueOf(in.readLine())",
"Long.valueOf",
"Long",
"in.readLine()",
"in.readLine",
"in",
"long[] toLongArray() throws Exception\n {\n String[] sp = split();\n int n = sp.length;\n long[] ary = new long[n];\n for(int i = 0; i < n; i++) ary[i] = Long.valueOf(sp[i]);\n return ary;\n }",
"toLongArray",
"{\n String[] sp = split();\n int n = sp.length;\n long[] ary = new long[n];\n for(int i = 0; i < n; i++) ary[i] = Long.valueOf(sp[i]);\n return ary;\n }",
"String[] sp = split();",
"sp",
"split()",
"split",
"int n = sp.length;",
"n",
"sp.length",
"sp",
"sp.length",
"long[] ary = new long[n];",
"ary",
"new long[n]",
"n",
"for(int i = 0; i < n; i++) ary[i] = Long.valueOf(sp[i]);",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"ary[i] = Long.valueOf(sp[i]);",
"ary[i] = Long.valueOf(sp[i])",
"ary[i]",
"ary",
"i",
"Long.valueOf(sp[i])",
"Long.valueOf",
"Long",
"sp[i]",
"sp",
"i",
"return ary;",
"ary",
"int[] toIntArray() throws Exception\n {\n String[] sp = split();\n int n = sp.length;\n int[] ary = new int[n];\n for(int i = 0; i < n; i++) ary[i] = Integer.valueOf(sp[i]);\n return ary;\n }",
"toIntArray",
"{\n String[] sp = split();\n int n = sp.length;\n int[] ary = new int[n];\n for(int i = 0; i < n; i++) ary[i] = Integer.valueOf(sp[i]);\n return ary;\n }",
"String[] sp = split();",
"sp",
"split()",
"split",
"int n = sp.length;",
"n",
"sp.length",
"sp",
"sp.length",
"int[] ary = new int[n];",
"ary",
"new int[n]",
"n",
"for(int i = 0; i < n; i++) ary[i] = Integer.valueOf(sp[i]);",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"ary[i] = Integer.valueOf(sp[i]);",
"ary[i] = Integer.valueOf(sp[i])",
"ary[i]",
"ary",
"i",
"Integer.valueOf(sp[i])",
"Integer.valueOf",
"Integer",
"sp[i]",
"sp",
"i",
"return ary;",
"ary",
"String reverse(String str)\n {\n return new StringBuilder(str).reverse().toString();\n }",
"reverse",
"{\n return new StringBuilder(str).reverse().toString();\n }",
"return new StringBuilder(str).reverse().toString();",
"new StringBuilder(str).reverse().toString()",
"new StringBuilder(str).reverse().toString",
"new StringBuilder(str).reverse()",
"new StringBuilder(str).reverse",
"new StringBuilder(str)",
"String str",
"str",
"long pow(long a, int pow)\n {\n long res = 1;\n while(pow > 0)\n {\n if(pow % 2 != 0) {\n res *= a;\n res %= mod;\n }\n a = a * a;\n a %= mod;\n pow /= 2;\n }\n\n return res;\n }",
"pow",
"{\n long res = 1;\n while(pow > 0)\n {\n if(pow % 2 != 0) {\n res *= a;\n res %= mod;\n }\n a = a * a;\n a %= mod;\n pow /= 2;\n }\n\n return res;\n }",
"long res = 1;",
"res",
"1",
"while(pow > 0)\n {\n if(pow % 2 != 0) {\n res *= a;\n res %= mod;\n }\n a = a * a;\n a %= mod;\n pow /= 2;\n }",
"pow > 0",
"pow",
"0",
"{\n if(pow % 2 != 0) {\n res *= a;\n res %= mod;\n }\n a = a * a;\n a %= mod;\n pow /= 2;\n }",
"if(pow % 2 != 0) {\n res *= a;\n res %= mod;\n }",
"pow % 2 != 0",
"pow % 2",
"pow",
"2",
"0",
"{\n res *= a;\n res %= mod;\n }",
"res *= a",
"res",
"a",
"res %= mod",
"res",
"mod",
"a = a * a",
"a",
"a * a",
"a",
"a",
"a %= mod",
"a",
"mod",
"pow /= 2",
"pow",
"2",
"return res;",
"res",
"long a",
"a",
"int pow",
"pow",
"public static void main(String[] args) throws Exception\n {\n int _k = Integer.valueOf(\"1\");\n if(test > 0) in = new BufferedReader(new InputStreamReader(System.in));\n else in = new BufferedReader(new FileReader(file));\n if(test < 0) {String[] str = in.readLine().split(\" \");\n char[] gg = in.readLine().toCharArray();}\n/***********************************************************************/\n/***********************************************************************/\n/***********************************************************************/\n/***********************************************************************/\n // System.out.println((-100 + 0) / 2);\n\n // char[] c = new char[4];\n // c[1] = '.';\n // for(char i = '0'; i <= '9'; i++)\n // {\n // for(char j = '0'; j <= '9'; j++)\n // {\n // for(char k = '0'; k <= '9'; k++)\n // {\n // c[0] = i;\n // c[2] = j;\n // c[3] = k;\n // double d = Double.valueOf(String.valueOf(c));\n // int v = (int)(d * 100);\n // String s1 = String.valueOf(\"\" + c[0] + c[2] + c[3]),\n // s2 = String.valueOf(v);\n // System.out.printf(\"%s %s %b\\n\", s1, s2, s1.equals(s2));\n // }\n // }\n // }\n\n\n new Main().a();\n out.flush();\n }",
"main",
"{\n int _k = Integer.valueOf(\"1\");\n if(test > 0) in = new BufferedReader(new InputStreamReader(System.in));\n else in = new BufferedReader(new FileReader(file));\n if(test < 0) {String[] str = in.readLine().split(\" \");\n char[] gg = in.readLine().toCharArray();}\n/***********************************************************************/\n/***********************************************************************/\n/***********************************************************************/\n/***********************************************************************/\n // System.out.println((-100 + 0) / 2);\n\n // char[] c = new char[4];\n // c[1] = '.';\n // for(char i = '0'; i <= '9'; i++)\n // {\n // for(char j = '0'; j <= '9'; j++)\n // {\n // for(char k = '0'; k <= '9'; k++)\n // {\n // c[0] = i;\n // c[2] = j;\n // c[3] = k;\n // double d = Double.valueOf(String.valueOf(c));\n // int v = (int)(d * 100);\n // String s1 = String.valueOf(\"\" + c[0] + c[2] + c[3]),\n // s2 = String.valueOf(v);\n // System.out.printf(\"%s %s %b\\n\", s1, s2, s1.equals(s2));\n // }\n // }\n // }\n\n\n new Main().a();\n out.flush();\n }",
"int _k = Integer.valueOf(\"1\");",
"_k",
"Integer.valueOf(\"1\")",
"Integer.valueOf",
"Integer",
"\"1\"",
"if(test > 0) in = new BufferedReader(new InputStreamReader(System.in));\n else in = new BufferedReader(new FileReader(file));",
"test > 0",
"test",
"0",
"in = new BufferedReader(new InputStreamReader(System.in))",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"in = new BufferedReader(new FileReader(file))",
"in",
"new BufferedReader(new FileReader(file))",
"if(test < 0) {String[] str = in.readLine().split(\" \");\n char[] gg = in.readLine().toCharArray();}",
"test < 0",
"test",
"0",
"{String[] str = in.readLine().split(\" \");\n char[] gg = in.readLine().toCharArray();}",
"String[] str = in.readLine().split(\" \");",
"str",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"char[] gg = in.readLine().toCharArray();",
"gg",
"in.readLine().toCharArray()",
"in.readLine().toCharArray",
"in.readLine()",
"in.readLine",
"in",
"new Main().a()",
"new Main().a",
"new Main()",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"void f() throws Exception\n {\n int k = readInt();\n String s = in.readLine();\n int n = s.length();\n long prod = 1;\n int mod = 1_000_000_007;\n for(int i = 0; i < k; i++)\n {\n n++;\n prod = (prod * 26 * n) % mod;\n }\n System.out.println(prod);\n\n }",
"f",
"{\n int k = readInt();\n String s = in.readLine();\n int n = s.length();\n long prod = 1;\n int mod = 1_000_000_007;\n for(int i = 0; i < k; i++)\n {\n n++;\n prod = (prod * 26 * n) % mod;\n }\n System.out.println(prod);\n\n }",
"int k = readInt();",
"k",
"readInt()",
"readInt",
"String s = in.readLine();",
"s",
"in.readLine()",
"in.readLine",
"in",
"int n = s.length();",
"n",
"s.length()",
"s.length",
"s",
"long prod = 1;",
"prod",
"1",
"int mod = 1_000_000_007;",
"mod",
"1_000_000_007",
"for(int i = 0; i < k; i++)\n {\n n++;\n prod = (prod * 26 * n) % mod;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < k",
"i",
"k",
"i++",
"i++",
"i",
"{\n n++;\n prod = (prod * 26 * n) % mod;\n }",
"{\n n++;\n prod = (prod * 26 * n) % mod;\n }",
"n++",
"n",
"prod = (prod * 26 * n) % mod",
"prod",
"(prod * 26 * n) % mod",
"(prod * 26 * n)",
"prod * 26 * n",
"prod",
"26",
"n",
"mod",
"System.out.println(prod)",
"System.out.println",
"System.out",
"System",
"System.out",
"prod",
"void e() throws Exception\n {\n int[] ary = toIntArray();\n int n = ary[0], k = ary[1];\n ary = toIntArray();\n int lo = 1, hi = 1 << 30;\n while(lo < hi)\n {\n int m = (lo + hi) / 2;\n int cut = numCut(ary, m);\n // System.out.printf(\"%d %d\\n\", m, cut);\n if(cut > k) lo = m + 1;\n else hi = m;\n }\n out.println(lo);\n }",
"e",
"{\n int[] ary = toIntArray();\n int n = ary[0], k = ary[1];\n ary = toIntArray();\n int lo = 1, hi = 1 << 30;\n while(lo < hi)\n {\n int m = (lo + hi) / 2;\n int cut = numCut(ary, m);\n // System.out.printf(\"%d %d\\n\", m, cut);\n if(cut > k) lo = m + 1;\n else hi = m;\n }\n out.println(lo);\n }",
"int[] ary = toIntArray();",
"ary",
"toIntArray()",
"toIntArray",
"int n = ary[0]",
"n",
"ary[0]",
"ary",
"0",
"k = ary[1];",
"k",
"ary[1]",
"ary",
"1",
"ary = toIntArray()",
"ary",
"toIntArray()",
"toIntArray",
"int lo = 1",
"lo",
"1",
"hi = 1 << 30;",
"hi",
"1 << 30",
"1",
"30",
"while(lo < hi)\n {\n int m = (lo + hi) / 2;\n int cut = numCut(ary, m);\n // System.out.printf(\"%d %d\\n\", m, cut);\n if(cut > k) lo = m + 1;\n else hi = m;\n }",
"lo < hi",
"lo",
"hi",
"{\n int m = (lo + hi) / 2;\n int cut = numCut(ary, m);\n // System.out.printf(\"%d %d\\n\", m, cut);\n if(cut > k) lo = m + 1;\n else hi = m;\n }",
"int m = (lo + hi) / 2;",
"m",
"(lo + hi) / 2",
"(lo + hi)",
"lo",
"hi",
"2",
"int cut = numCut(ary, m);",
"cut",
"numCut(ary, m)",
"numCut",
"ary",
"m",
"if(cut > k) lo = m + 1;\n else hi = m;",
"cut > k",
"cut",
"k",
"lo = m + 1",
"lo",
"m + 1",
"m",
"1",
"hi = m",
"hi",
"m",
"out.println(lo)",
"out.println",
"out",
"lo",
"int numCut(int[] ary, int thres)\n {\n int count = 0;\n for(int v : ary)\n {\n if(v > thres)\n count += v / thres;\n // count += v % thres > 0 ? 1 : 0;\n }\n return count;\n }",
"numCut",
"{\n int count = 0;\n for(int v : ary)\n {\n if(v > thres)\n count += v / thres;\n // count += v % thres > 0 ? 1 : 0;\n }\n return count;\n }",
"int count = 0;",
"count",
"0",
"for(int v : ary)\n {\n if(v > thres)\n count += v / thres;\n // count += v % thres > 0 ? 1 : 0;\n }",
"int v",
"ary",
"{\n if(v > thres)\n count += v / thres;\n // count += v % thres > 0 ? 1 : 0;\n }",
"{\n if(v > thres)\n count += v / thres;\n // count += v % thres > 0 ? 1 : 0;\n }",
"if(v > thres)\n count += v / thres;",
"v > thres",
"v",
"thres",
"count += v / thres",
"count",
"v / thres",
"v",
"thres",
"return count;",
"count",
"int[] ary",
"ary",
"int thres",
"thres",
"void d() throws Exception\n {\n int n = readInt();\n char[] c = in.readLine().toCharArray();\n int i = 0, j = n - 1, re = 0;\n while(i < j)\n {\n while(i < j && c[i] == 'R') i++;\n while(i < j && c[j] == 'W') j--;\n if(i < j)\n {\n swap(c, i, j);\n i++;\n j--;\n re++;\n }\n }\n out.println(re);\n }",
"d",
"{\n int n = readInt();\n char[] c = in.readLine().toCharArray();\n int i = 0, j = n - 1, re = 0;\n while(i < j)\n {\n while(i < j && c[i] == 'R') i++;\n while(i < j && c[j] == 'W') j--;\n if(i < j)\n {\n swap(c, i, j);\n i++;\n j--;\n re++;\n }\n }\n out.println(re);\n }",
"int n = readInt();",
"n",
"readInt()",
"readInt",
"char[] c = in.readLine().toCharArray();",
"c",
"in.readLine().toCharArray()",
"in.readLine().toCharArray",
"in.readLine()",
"in.readLine",
"in",
"int i = 0",
"i",
"0",
"j = n - 1",
"j",
"n - 1",
"n",
"1",
"re = 0;",
"re",
"0",
"while(i < j)\n {\n while(i < j && c[i] == 'R') i++;\n while(i < j && c[j] == 'W') j--;\n if(i < j)\n {\n swap(c, i, j);\n i++;\n j--;\n re++;\n }\n }",
"i < j",
"i",
"j",
"{\n while(i < j && c[i] == 'R') i++;\n while(i < j && c[j] == 'W') j--;\n if(i < j)\n {\n swap(c, i, j);\n i++;\n j--;\n re++;\n }\n }",
"while(i < j && c[i] == 'R') i++;",
"i < j && c[i] == 'R'",
"i < j",
"i",
"j",
"c[i] == 'R'",
"c[i]",
"c",
"i",
"'R'",
"i++",
"i",
"while(i < j && c[j] == 'W') j--;",
"i < j && c[j] == 'W'",
"i < j",
"i",
"j",
"c[j] == 'W'",
"c[j]",
"c",
"j",
"'W'",
"j--",
"j",
"if(i < j)\n {\n swap(c, i, j);\n i++;\n j--;\n re++;\n }",
"i < j",
"i",
"j",
"{\n swap(c, i, j);\n i++;\n j--;\n re++;\n }",
"swap(c, i, j)",
"swap",
"c",
"i",
"j",
"i++",
"i",
"j--",
"j",
"re++",
"re",
"out.println(re)",
"out.println",
"out",
"re",
"void c() throws Exception\n {\n int n = readInt();\n int[] ary = toIntArray();\n int p = 200_003;\n long sum = 0;\n for(int i = 0; i < n; i++)\n {\n for(int j = i + 1; j < n; j++)\n {\n sum += (ary[i] * ary[j]) % p;\n }\n }\n out.println(sum);\n \n }",
"c",
"{\n int n = readInt();\n int[] ary = toIntArray();\n int p = 200_003;\n long sum = 0;\n for(int i = 0; i < n; i++)\n {\n for(int j = i + 1; j < n; j++)\n {\n sum += (ary[i] * ary[j]) % p;\n }\n }\n out.println(sum);\n \n }",
"int n = readInt();",
"n",
"readInt()",
"readInt",
"int[] ary = toIntArray();",
"ary",
"toIntArray()",
"toIntArray",
"int p = 200_003;",
"p",
"200_003",
"long sum = 0;",
"sum",
"0",
"for(int i = 0; i < n; i++)\n {\n for(int j = i + 1; j < n; j++)\n {\n sum += (ary[i] * ary[j]) % p;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j = i + 1; j < n; j++)\n {\n sum += (ary[i] * ary[j]) % p;\n }\n }",
"{\n for(int j = i + 1; j < n; j++)\n {\n sum += (ary[i] * ary[j]) % p;\n }\n }",
"for(int j = i + 1; j < n; j++)\n {\n sum += (ary[i] * ary[j]) % p;\n }",
"int j = i + 1;",
"int j = i + 1;",
"j",
"i + 1",
"i",
"1",
"j < n",
"j",
"n",
"j++",
"j++",
"j",
"{\n sum += (ary[i] * ary[j]) % p;\n }",
"{\n sum += (ary[i] * ary[j]) % p;\n }",
"sum += (ary[i] * ary[j]) % p",
"sum",
"(ary[i] * ary[j]) % p",
"(ary[i] * ary[j])",
"ary[i]",
"ary",
"i",
"ary[j]",
"ary",
"j",
"p",
"out.println(sum)",
"out.println",
"out",
"sum",
"int gcd(int a, int b)\n {\n if(b == 0) return a;\n return gcd(b, a % b);\n }",
"gcd",
"{\n if(b == 0) return a;\n return gcd(b, a % b);\n }",
"if(b == 0) return a;",
"b == 0",
"b",
"0",
"return a;",
"a",
"return gcd(b, a % b);",
"gcd(b, a % b)",
"gcd",
"b",
"a % b",
"a",
"b",
"int a",
"a",
"int b",
"b",
"void b() throws Exception\n {\n int n = readInt();\n String[] words = new String[n];\n for(int i = 0; i < n; i++)\n {\n words[i] = in.readLine();\n }\n\n int re = 0;\n for(int i = 0; i < n; i++)\n {\n for(int j = 0; j < n; j++)\n {\n if(i == j) continue;\n if(transform(words[i], words[j]))\n {\n System.out.printf(\"%s %s \\n\", words[i], words[j]);\n re++;\n }\n }\n }\n out.println(re);\n }",
"b",
"{\n int n = readInt();\n String[] words = new String[n];\n for(int i = 0; i < n; i++)\n {\n words[i] = in.readLine();\n }\n\n int re = 0;\n for(int i = 0; i < n; i++)\n {\n for(int j = 0; j < n; j++)\n {\n if(i == j) continue;\n if(transform(words[i], words[j]))\n {\n System.out.printf(\"%s %s \\n\", words[i], words[j]);\n re++;\n }\n }\n }\n out.println(re);\n }",
"int n = readInt();",
"n",
"readInt()",
"readInt",
"String[] words = new String[n];",
"words",
"new String[n]",
"n",
"for(int i = 0; i < n; i++)\n {\n words[i] = in.readLine();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n words[i] = in.readLine();\n }",
"{\n words[i] = in.readLine();\n }",
"words[i] = in.readLine()",
"words[i]",
"words",
"i",
"in.readLine()",
"in.readLine",
"in",
"int re = 0;",
"re",
"0",
"for(int i = 0; i < n; i++)\n {\n for(int j = 0; j < n; j++)\n {\n if(i == j) continue;\n if(transform(words[i], words[j]))\n {\n System.out.printf(\"%s %s \\n\", words[i], words[j]);\n re++;\n }\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < n; j++)\n {\n if(i == j) continue;\n if(transform(words[i], words[j]))\n {\n System.out.printf(\"%s %s \\n\", words[i], words[j]);\n re++;\n }\n }\n }",
"{\n for(int j = 0; j < n; j++)\n {\n if(i == j) continue;\n if(transform(words[i], words[j]))\n {\n System.out.printf(\"%s %s \\n\", words[i], words[j]);\n re++;\n }\n }\n }",
"for(int j = 0; j < n; j++)\n {\n if(i == j) continue;\n if(transform(words[i], words[j]))\n {\n System.out.printf(\"%s %s \\n\", words[i], words[j]);\n re++;\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < n",
"j",
"n",
"j++",
"j++",
"j",
"{\n if(i == j) continue;\n if(transform(words[i], words[j]))\n {\n System.out.printf(\"%s %s \\n\", words[i], words[j]);\n re++;\n }\n }",
"{\n if(i == j) continue;\n if(transform(words[i], words[j]))\n {\n System.out.printf(\"%s %s \\n\", words[i], words[j]);\n re++;\n }\n }",
"if(i == j) continue;",
"i == j",
"i",
"j",
"continue;",
"if(transform(words[i], words[j]))\n {\n System.out.printf(\"%s %s \\n\", words[i], words[j]);\n re++;\n }",
"transform(words[i], words[j])",
"transform",
"words[i]",
"words",
"i",
"words[j]",
"words",
"j",
"{\n System.out.printf(\"%s %s \\n\", words[i], words[j]);\n re++;\n }",
"System.out.printf(\"%s %s \\n\", words[i], words[j])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%s %s \\n\"",
"words[i]",
"words",
"i",
"words[j]",
"words",
"j",
"re++",
"re",
"out.println(re)",
"out.println",
"out",
"re",
"boolean transform(String s1, String s2)\n {\n // from s1 -> s2\n int m = s1.length(), n = s2.length();\n if(m < n) return false;\n int j = n - 1;\n for(int i = m - 1; i >=0; i--)\n {\n if(s1.charAt(i) == s2.charAt(j)) j--;\n if(j < 0) return true;\n }\n return false;\n }",
"transform",
"{\n // from s1 -> s2\n int m = s1.length(), n = s2.length();\n if(m < n) return false;\n int j = n - 1;\n for(int i = m - 1; i >=0; i--)\n {\n if(s1.charAt(i) == s2.charAt(j)) j--;\n if(j < 0) return true;\n }\n return false;\n }",
"int m = s1.length()",
"m",
"s1.length()",
"s1.length",
"s1",
"n = s2.length();",
"n",
"s2.length()",
"s2.length",
"s2",
"if(m < n) return false;",
"m < n",
"m",
"n",
"return false;",
"false",
"int j = n - 1;",
"j",
"n - 1",
"n",
"1",
"for(int i = m - 1; i >=0; i--)\n {\n if(s1.charAt(i) == s2.charAt(j)) j--;\n if(j < 0) return true;\n }",
"int i = m - 1;",
"int i = m - 1;",
"i",
"m - 1",
"m",
"1",
"i >=0",
"i",
"0",
"i--",
"i--",
"i",
"{\n if(s1.charAt(i) == s2.charAt(j)) j--;\n if(j < 0) return true;\n }",
"{\n if(s1.charAt(i) == s2.charAt(j)) j--;\n if(j < 0) return true;\n }",
"if(s1.charAt(i) == s2.charAt(j)) j--;",
"s1.charAt(i) == s2.charAt(j)",
"s1.charAt(i)",
"s1.charAt",
"s1",
"i",
"s2.charAt(j)",
"s2.charAt",
"s2",
"j",
"j--",
"j",
"if(j < 0) return true;",
"j < 0",
"j",
"0",
"return true;",
"true",
"return false;",
"false",
"String s1",
"s1",
"String s2",
"s2",
"void a() throws Exception\n {\n int[] ary = toIntArray();\n int n = ary[0], x = ary[1], t = ary[2];\n int mult = n / x;\n if(n % x != 0) mult++;\n out.println(mult * t);\n \n }",
"a",
"{\n int[] ary = toIntArray();\n int n = ary[0], x = ary[1], t = ary[2];\n int mult = n / x;\n if(n % x != 0) mult++;\n out.println(mult * t);\n \n }",
"int[] ary = toIntArray();",
"ary",
"toIntArray()",
"toIntArray",
"int n = ary[0]",
"n",
"ary[0]",
"ary",
"0",
"x = ary[1]",
"x",
"ary[1]",
"ary",
"1",
"t = ary[2];",
"t",
"ary[2]",
"ary",
"2",
"int mult = n / x;",
"mult",
"n / x",
"n",
"x",
"if(n % x != 0) mult++;",
"n % x != 0",
"n % x",
"n",
"x",
"0",
"mult++",
"mult",
"out.println(mult * t)",
"out.println",
"out",
"mult * t",
"mult",
"t",
"public class Main { \n \n static BufferedReader in;\n static PrintWriter out = new PrintWriter(System.out);\n static String file = \"../in\";\n static int test = 10; // 0 for local testing, 1 for std input\n static int inf = 1_000_000, mod = 1_000_000_007;\n\n\n\n void swap(int[]ary, int i, int j)\n {\n int t = ary[i];\n ary[i] = ary[j];\n ary[j] = t;\n }\n\n void swap(char[]ary, int i, int j)\n {\n char t = ary[i];\n ary[i] = ary[j];\n ary[j] = t;\n }\n \n String[] split() throws Exception\n {\n return in.readLine().split(\" \");\n }\n\n int readInt() throws Exception\n {\n return Integer.valueOf(in.readLine());\n }\n\n long readLong() throws Exception\n {\n return Long.valueOf(in.readLine());\n }\n\n long[] toLongArray() throws Exception\n {\n String[] sp = split();\n int n = sp.length;\n long[] ary = new long[n];\n for(int i = 0; i < n; i++) ary[i] = Long.valueOf(sp[i]);\n return ary;\n }\n\n int[] toIntArray() throws Exception\n {\n String[] sp = split();\n int n = sp.length;\n int[] ary = new int[n];\n for(int i = 0; i < n; i++) ary[i] = Integer.valueOf(sp[i]);\n return ary;\n }\n\n String reverse(String str)\n {\n return new StringBuilder(str).reverse().toString();\n }\n\n\n long pow(long a, int pow)\n {\n long res = 1;\n while(pow > 0)\n {\n if(pow % 2 != 0) {\n res *= a;\n res %= mod;\n }\n a = a * a;\n a %= mod;\n pow /= 2;\n }\n\n return res;\n }\n\n public static void main(String[] args) throws Exception\n {\n int _k = Integer.valueOf(\"1\");\n if(test > 0) in = new BufferedReader(new InputStreamReader(System.in));\n else in = new BufferedReader(new FileReader(file));\n if(test < 0) {String[] str = in.readLine().split(\" \");\n char[] gg = in.readLine().toCharArray();}\n/***********************************************************************/\n/***********************************************************************/\n/***********************************************************************/\n/***********************************************************************/\n // System.out.println((-100 + 0) / 2);\n\n // char[] c = new char[4];\n // c[1] = '.';\n // for(char i = '0'; i <= '9'; i++)\n // {\n // for(char j = '0'; j <= '9'; j++)\n // {\n // for(char k = '0'; k <= '9'; k++)\n // {\n // c[0] = i;\n // c[2] = j;\n // c[3] = k;\n // double d = Double.valueOf(String.valueOf(c));\n // int v = (int)(d * 100);\n // String s1 = String.valueOf(\"\" + c[0] + c[2] + c[3]),\n // s2 = String.valueOf(v);\n // System.out.printf(\"%s %s %b\\n\", s1, s2, s1.equals(s2));\n // }\n // }\n // }\n\n\n new Main().a();\n out.flush();\n }\n void f() throws Exception\n {\n int k = readInt();\n String s = in.readLine();\n int n = s.length();\n long prod = 1;\n int mod = 1_000_000_007;\n for(int i = 0; i < k; i++)\n {\n n++;\n prod = (prod * 26 * n) % mod;\n }\n System.out.println(prod);\n\n }\n\n void e() throws Exception\n {\n int[] ary = toIntArray();\n int n = ary[0], k = ary[1];\n ary = toIntArray();\n int lo = 1, hi = 1 << 30;\n while(lo < hi)\n {\n int m = (lo + hi) / 2;\n int cut = numCut(ary, m);\n // System.out.printf(\"%d %d\\n\", m, cut);\n if(cut > k) lo = m + 1;\n else hi = m;\n }\n out.println(lo);\n }\n\n int numCut(int[] ary, int thres)\n {\n int count = 0;\n for(int v : ary)\n {\n if(v > thres)\n count += v / thres;\n // count += v % thres > 0 ? 1 : 0;\n }\n return count;\n }\n\n void d() throws Exception\n {\n int n = readInt();\n char[] c = in.readLine().toCharArray();\n int i = 0, j = n - 1, re = 0;\n while(i < j)\n {\n while(i < j && c[i] == 'R') i++;\n while(i < j && c[j] == 'W') j--;\n if(i < j)\n {\n swap(c, i, j);\n i++;\n j--;\n re++;\n }\n }\n out.println(re);\n }\n\n\n\n void c() throws Exception\n {\n int n = readInt();\n int[] ary = toIntArray();\n int p = 200_003;\n long sum = 0;\n for(int i = 0; i < n; i++)\n {\n for(int j = i + 1; j < n; j++)\n {\n sum += (ary[i] * ary[j]) % p;\n }\n }\n out.println(sum);\n \n }\n\n int gcd(int a, int b)\n {\n if(b == 0) return a;\n return gcd(b, a % b);\n }\n\n void b() throws Exception\n {\n int n = readInt();\n String[] words = new String[n];\n for(int i = 0; i < n; i++)\n {\n words[i] = in.readLine();\n }\n\n int re = 0;\n for(int i = 0; i < n; i++)\n {\n for(int j = 0; j < n; j++)\n {\n if(i == j) continue;\n if(transform(words[i], words[j]))\n {\n System.out.printf(\"%s %s \\n\", words[i], words[j]);\n re++;\n }\n }\n }\n out.println(re);\n }\n\n boolean transform(String s1, String s2)\n {\n // from s1 -> s2\n int m = s1.length(), n = s2.length();\n if(m < n) return false;\n int j = n - 1;\n for(int i = m - 1; i >=0; i--)\n {\n if(s1.charAt(i) == s2.charAt(j)) j--;\n if(j < 0) return true;\n }\n return false;\n }\n\n void a() throws Exception\n {\n int[] ary = toIntArray();\n int n = ary[0], x = ary[1], t = ary[2];\n int mult = n / x;\n if(n % x != 0) mult++;\n out.println(mult * t);\n \n }\n}",
"public class Main { \n \n static BufferedReader in;\n static PrintWriter out = new PrintWriter(System.out);\n static String file = \"../in\";\n static int test = 10; // 0 for local testing, 1 for std input\n static int inf = 1_000_000, mod = 1_000_000_007;\n\n\n\n void swap(int[]ary, int i, int j)\n {\n int t = ary[i];\n ary[i] = ary[j];\n ary[j] = t;\n }\n\n void swap(char[]ary, int i, int j)\n {\n char t = ary[i];\n ary[i] = ary[j];\n ary[j] = t;\n }\n \n String[] split() throws Exception\n {\n return in.readLine().split(\" \");\n }\n\n int readInt() throws Exception\n {\n return Integer.valueOf(in.readLine());\n }\n\n long readLong() throws Exception\n {\n return Long.valueOf(in.readLine());\n }\n\n long[] toLongArray() throws Exception\n {\n String[] sp = split();\n int n = sp.length;\n long[] ary = new long[n];\n for(int i = 0; i < n; i++) ary[i] = Long.valueOf(sp[i]);\n return ary;\n }\n\n int[] toIntArray() throws Exception\n {\n String[] sp = split();\n int n = sp.length;\n int[] ary = new int[n];\n for(int i = 0; i < n; i++) ary[i] = Integer.valueOf(sp[i]);\n return ary;\n }\n\n String reverse(String str)\n {\n return new StringBuilder(str).reverse().toString();\n }\n\n\n long pow(long a, int pow)\n {\n long res = 1;\n while(pow > 0)\n {\n if(pow % 2 != 0) {\n res *= a;\n res %= mod;\n }\n a = a * a;\n a %= mod;\n pow /= 2;\n }\n\n return res;\n }\n\n public static void main(String[] args) throws Exception\n {\n int _k = Integer.valueOf(\"1\");\n if(test > 0) in = new BufferedReader(new InputStreamReader(System.in));\n else in = new BufferedReader(new FileReader(file));\n if(test < 0) {String[] str = in.readLine().split(\" \");\n char[] gg = in.readLine().toCharArray();}\n/***********************************************************************/\n/***********************************************************************/\n/***********************************************************************/\n/***********************************************************************/\n // System.out.println((-100 + 0) / 2);\n\n // char[] c = new char[4];\n // c[1] = '.';\n // for(char i = '0'; i <= '9'; i++)\n // {\n // for(char j = '0'; j <= '9'; j++)\n // {\n // for(char k = '0'; k <= '9'; k++)\n // {\n // c[0] = i;\n // c[2] = j;\n // c[3] = k;\n // double d = Double.valueOf(String.valueOf(c));\n // int v = (int)(d * 100);\n // String s1 = String.valueOf(\"\" + c[0] + c[2] + c[3]),\n // s2 = String.valueOf(v);\n // System.out.printf(\"%s %s %b\\n\", s1, s2, s1.equals(s2));\n // }\n // }\n // }\n\n\n new Main().a();\n out.flush();\n }\n void f() throws Exception\n {\n int k = readInt();\n String s = in.readLine();\n int n = s.length();\n long prod = 1;\n int mod = 1_000_000_007;\n for(int i = 0; i < k; i++)\n {\n n++;\n prod = (prod * 26 * n) % mod;\n }\n System.out.println(prod);\n\n }\n\n void e() throws Exception\n {\n int[] ary = toIntArray();\n int n = ary[0], k = ary[1];\n ary = toIntArray();\n int lo = 1, hi = 1 << 30;\n while(lo < hi)\n {\n int m = (lo + hi) / 2;\n int cut = numCut(ary, m);\n // System.out.printf(\"%d %d\\n\", m, cut);\n if(cut > k) lo = m + 1;\n else hi = m;\n }\n out.println(lo);\n }\n\n int numCut(int[] ary, int thres)\n {\n int count = 0;\n for(int v : ary)\n {\n if(v > thres)\n count += v / thres;\n // count += v % thres > 0 ? 1 : 0;\n }\n return count;\n }\n\n void d() throws Exception\n {\n int n = readInt();\n char[] c = in.readLine().toCharArray();\n int i = 0, j = n - 1, re = 0;\n while(i < j)\n {\n while(i < j && c[i] == 'R') i++;\n while(i < j && c[j] == 'W') j--;\n if(i < j)\n {\n swap(c, i, j);\n i++;\n j--;\n re++;\n }\n }\n out.println(re);\n }\n\n\n\n void c() throws Exception\n {\n int n = readInt();\n int[] ary = toIntArray();\n int p = 200_003;\n long sum = 0;\n for(int i = 0; i < n; i++)\n {\n for(int j = i + 1; j < n; j++)\n {\n sum += (ary[i] * ary[j]) % p;\n }\n }\n out.println(sum);\n \n }\n\n int gcd(int a, int b)\n {\n if(b == 0) return a;\n return gcd(b, a % b);\n }\n\n void b() throws Exception\n {\n int n = readInt();\n String[] words = new String[n];\n for(int i = 0; i < n; i++)\n {\n words[i] = in.readLine();\n }\n\n int re = 0;\n for(int i = 0; i < n; i++)\n {\n for(int j = 0; j < n; j++)\n {\n if(i == j) continue;\n if(transform(words[i], words[j]))\n {\n System.out.printf(\"%s %s \\n\", words[i], words[j]);\n re++;\n }\n }\n }\n out.println(re);\n }\n\n boolean transform(String s1, String s2)\n {\n // from s1 -> s2\n int m = s1.length(), n = s2.length();\n if(m < n) return false;\n int j = n - 1;\n for(int i = m - 1; i >=0; i--)\n {\n if(s1.charAt(i) == s2.charAt(j)) j--;\n if(j < 0) return true;\n }\n return false;\n }\n\n void a() throws Exception\n {\n int[] ary = toIntArray();\n int n = ary[0], x = ary[1], t = ary[2];\n int mult = n / x;\n if(n % x != 0) mult++;\n out.println(mult * t);\n \n }\n}",
"Main"
]
| import java.math.*;
import java.util.*;
import java.io.*;
public class Main {
static BufferedReader in;
static PrintWriter out = new PrintWriter(System.out);
static String file = "../in";
static int test = 10; // 0 for local testing, 1 for std input
static int inf = 1_000_000, mod = 1_000_000_007;
void swap(int[]ary, int i, int j)
{
int t = ary[i];
ary[i] = ary[j];
ary[j] = t;
}
void swap(char[]ary, int i, int j)
{
char t = ary[i];
ary[i] = ary[j];
ary[j] = t;
}
String[] split() throws Exception
{
return in.readLine().split(" ");
}
int readInt() throws Exception
{
return Integer.valueOf(in.readLine());
}
long readLong() throws Exception
{
return Long.valueOf(in.readLine());
}
long[] toLongArray() throws Exception
{
String[] sp = split();
int n = sp.length;
long[] ary = new long[n];
for(int i = 0; i < n; i++) ary[i] = Long.valueOf(sp[i]);
return ary;
}
int[] toIntArray() throws Exception
{
String[] sp = split();
int n = sp.length;
int[] ary = new int[n];
for(int i = 0; i < n; i++) ary[i] = Integer.valueOf(sp[i]);
return ary;
}
String reverse(String str)
{
return new StringBuilder(str).reverse().toString();
}
long pow(long a, int pow)
{
long res = 1;
while(pow > 0)
{
if(pow % 2 != 0) {
res *= a;
res %= mod;
}
a = a * a;
a %= mod;
pow /= 2;
}
return res;
}
public static void main(String[] args) throws Exception
{
int _k = Integer.valueOf("1");
if(test > 0) in = new BufferedReader(new InputStreamReader(System.in));
else in = new BufferedReader(new FileReader(file));
if(test < 0) {String[] str = in.readLine().split(" ");
char[] gg = in.readLine().toCharArray();}
/***********************************************************************/
/***********************************************************************/
/***********************************************************************/
/***********************************************************************/
// System.out.println((-100 + 0) / 2);
// char[] c = new char[4];
// c[1] = '.';
// for(char i = '0'; i <= '9'; i++)
// {
// for(char j = '0'; j <= '9'; j++)
// {
// for(char k = '0'; k <= '9'; k++)
// {
// c[0] = i;
// c[2] = j;
// c[3] = k;
// double d = Double.valueOf(String.valueOf(c));
// int v = (int)(d * 100);
// String s1 = String.valueOf("" + c[0] + c[2] + c[3]),
// s2 = String.valueOf(v);
// System.out.printf("%s %s %b\n", s1, s2, s1.equals(s2));
// }
// }
// }
new Main().a();
out.flush();
}
void f() throws Exception
{
int k = readInt();
String s = in.readLine();
int n = s.length();
long prod = 1;
int mod = 1_000_000_007;
for(int i = 0; i < k; i++)
{
n++;
prod = (prod * 26 * n) % mod;
}
System.out.println(prod);
}
void e() throws Exception
{
int[] ary = toIntArray();
int n = ary[0], k = ary[1];
ary = toIntArray();
int lo = 1, hi = 1 << 30;
while(lo < hi)
{
int m = (lo + hi) / 2;
int cut = numCut(ary, m);
// System.out.printf("%d %d\n", m, cut);
if(cut > k) lo = m + 1;
else hi = m;
}
out.println(lo);
}
int numCut(int[] ary, int thres)
{
int count = 0;
for(int v : ary)
{
if(v > thres)
count += v / thres;
// count += v % thres > 0 ? 1 : 0;
}
return count;
}
void d() throws Exception
{
int n = readInt();
char[] c = in.readLine().toCharArray();
int i = 0, j = n - 1, re = 0;
while(i < j)
{
while(i < j && c[i] == 'R') i++;
while(i < j && c[j] == 'W') j--;
if(i < j)
{
swap(c, i, j);
i++;
j--;
re++;
}
}
out.println(re);
}
void c() throws Exception
{
int n = readInt();
int[] ary = toIntArray();
int p = 200_003;
long sum = 0;
for(int i = 0; i < n; i++)
{
for(int j = i + 1; j < n; j++)
{
sum += (ary[i] * ary[j]) % p;
}
}
out.println(sum);
}
int gcd(int a, int b)
{
if(b == 0) return a;
return gcd(b, a % b);
}
void b() throws Exception
{
int n = readInt();
String[] words = new String[n];
for(int i = 0; i < n; i++)
{
words[i] = in.readLine();
}
int re = 0;
for(int i = 0; i < n; i++)
{
for(int j = 0; j < n; j++)
{
if(i == j) continue;
if(transform(words[i], words[j]))
{
System.out.printf("%s %s \n", words[i], words[j]);
re++;
}
}
}
out.println(re);
}
boolean transform(String s1, String s2)
{
// from s1 -> s2
int m = s1.length(), n = s2.length();
if(m < n) return false;
int j = n - 1;
for(int i = m - 1; i >=0; i--)
{
if(s1.charAt(i) == s2.charAt(j)) j--;
if(j < 0) return true;
}
return false;
}
void a() throws Exception
{
int[] ary = toIntArray();
int n = ary[0], x = ary[1], t = ary[2];
int mult = n / x;
if(n % x != 0) mult++;
out.println(mult * t);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
2,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
52,
5
],
[
52,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
34,
40
],
[
40,
41
],
[
40,
42
],
[
8,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
6,
49
],
[
49,
50
],
[
0,
51
],
[
51,
52
],
[
51,
53
]
]
| [
"import java.util.*;\npublic class Main{\n\tpublic static void main(String[] args){\n Scanner sc= new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n int time = 0;\n while(n>0){\n n = n-x;\n time += t;\n }\n System.out.println(time);\n \t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main(String[] args){\n Scanner sc= new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n int time = 0;\n while(n>0){\n n = n-x;\n time += t;\n }\n System.out.println(time);\n \t}\n}",
"Main",
"public static void main(String[] args){\n Scanner sc= new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n int time = 0;\n while(n>0){\n n = n-x;\n time += t;\n }\n System.out.println(time);\n \t}",
"main",
"{\n Scanner sc= new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n int time = 0;\n while(n>0){\n n = n-x;\n time += t;\n }\n System.out.println(time);\n \t}",
"Scanner sc= new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t = sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int time = 0;",
"time",
"0",
"while(n>0){\n n = n-x;\n time += t;\n }",
"n>0",
"n",
"0",
"{\n n = n-x;\n time += t;\n }",
"n = n-x",
"n",
"n-x",
"n",
"x",
"time += t",
"time",
"t",
"System.out.println(time)",
"System.out.println",
"System.out",
"System",
"System.out",
"time",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args){\n Scanner sc= new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n int time = 0;\n while(n>0){\n n = n-x;\n time += t;\n }\n System.out.println(time);\n \t}\n}",
"public class Main{\n\tpublic static void main(String[] args){\n Scanner sc= new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n int time = 0;\n while(n>0){\n n = n-x;\n time += t;\n }\n System.out.println(time);\n \t}\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc= new Scanner(System.in);
int n = sc.nextInt();
int x = sc.nextInt();
int t = sc.nextInt();
int time = 0;
while(n>0){
n = n-x;
time += t;
}
System.out.println(time);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
38,
30,
4,
18,
13,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
2,
2,
2,
2,
13,
13,
17,
13,
13,
23,
13,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
42,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
107,
8
],
[
107,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
19,
23
],
[
23,
24
],
[
24,
25
],
[
18,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
26,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
26,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
46,
52
],
[
45,
53
],
[
9,
54
],
[
54,
55
],
[
107,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
61,
63
],
[
56,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
67,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
73,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
66,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
56,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
95,
96
],
[
56,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
104,
105
],
[
0,
106
],
[
106,
107
],
[
106,
108
]
]
| [
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Reader sc = new Reader();\n PrintWriter pw = new PrintWriter(System.out);\n \n try {\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n pw.println((n+x-1)/x*t);\n }\n finally {\n pw.flush();\n pw.close();\n }\n }\n \n static class Reader {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while(!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n }\n catch(IOException io) {\n io.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n Reader sc = new Reader();\n PrintWriter pw = new PrintWriter(System.out);\n \n try {\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n pw.println((n+x-1)/x*t);\n }\n finally {\n pw.flush();\n pw.close();\n }\n }\n \n static class Reader {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while(!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n }\n catch(IOException io) {\n io.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Reader sc = new Reader();\n PrintWriter pw = new PrintWriter(System.out);\n \n try {\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n pw.println((n+x-1)/x*t);\n }\n finally {\n pw.flush();\n pw.close();\n }\n }",
"main",
"{\n Reader sc = new Reader();\n PrintWriter pw = new PrintWriter(System.out);\n \n try {\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n pw.println((n+x-1)/x*t);\n }\n finally {\n pw.flush();\n pw.close();\n }\n }",
"Reader sc = new Reader();",
"sc",
"new Reader()",
"PrintWriter pw = new PrintWriter(System.out);",
"pw",
"new PrintWriter(System.out)",
"try {\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n pw.println((n+x-1)/x*t);\n }\n finally {\n pw.flush();\n pw.close();\n }",
"{\n pw.flush();\n pw.close();\n }",
"pw.flush()",
"pw.flush",
"pw",
"pw.close()",
"pw.close",
"pw",
"{\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n pw.println((n+x-1)/x*t);\n }",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t = sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"pw.println((n+x-1)/x*t)",
"pw.println",
"pw",
"(n+x-1)/x*t",
"(n+x-1)/x",
"(n+x-1)",
"n+x",
"n",
"x",
"1",
"x",
"t",
"String[] args",
"args",
"static class Reader {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while(!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n }\n catch(IOException io) {\n io.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }",
"Reader",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st = new StringTokenizer(\"\");",
"st",
"new StringTokenizer(\"\")",
"String next() {\n while(!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n }\n catch(IOException io) {\n io.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while(!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n }\n catch(IOException io) {\n io.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while(!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n }\n catch(IOException io) {\n io.printStackTrace();\n }\n }",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n }\n catch(IOException io) {\n io.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n }\n catch(IOException io) {\n io.printStackTrace();\n }",
"catch(IOException io) {\n io.printStackTrace();\n }",
"IOException io",
"{\n io.printStackTrace();\n }",
"io.printStackTrace()",
"io.printStackTrace",
"io",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public class Main {\n public static void main(String[] args) throws Exception {\n Reader sc = new Reader();\n PrintWriter pw = new PrintWriter(System.out);\n \n try {\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n pw.println((n+x-1)/x*t);\n }\n finally {\n pw.flush();\n pw.close();\n }\n }\n \n static class Reader {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while(!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n }\n catch(IOException io) {\n io.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Reader sc = new Reader();\n PrintWriter pw = new PrintWriter(System.out);\n \n try {\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n pw.println((n+x-1)/x*t);\n }\n finally {\n pw.flush();\n pw.close();\n }\n }\n \n static class Reader {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while(!st.hasMoreTokens()) {\n try {\n st = new StringTokenizer(br.readLine());\n }\n catch(IOException io) {\n io.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Reader sc = new Reader();
PrintWriter pw = new PrintWriter(System.out);
try {
int n = sc.nextInt();
int x = sc.nextInt();
int t = sc.nextInt();
pw.println((n+x-1)/x*t);
}
finally {
pw.flush();
pw.close();
}
}
static class Reader {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer("");
String next() {
while(!st.hasMoreTokens()) {
try {
st = new StringTokenizer(br.readLine());
}
catch(IOException io) {
io.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
}
}
|
[
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,
41,
13,
4,
18,
13,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
2,
13,
13,
14,
2,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
2,
2,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
78,
8
],
[
78,
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
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
11,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
30,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
30,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
61,
63
],
[
49,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
9,
75
],
[
75,
76
],
[
0,
77
],
[
77,
78
],
[
77,
79
]
]
| [
"\nimport java.io.IOException;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N =sc.nextInt();\n\t\tint X =sc.nextInt();\n\t\tint T =sc.nextInt();\n\n\t\tif(N/X == 0) {\n\t\t\tSystem.out.println(T);\n\t\t}\n\t\telse {\n\t\t\tint i = N/X;\n\t\t\tif(N%X==0) {\n\t\t\t\tSystem.out.println(T*i);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(T*i + T);\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N =sc.nextInt();\n\t\tint X =sc.nextInt();\n\t\tint T =sc.nextInt();\n\n\t\tif(N/X == 0) {\n\t\t\tSystem.out.println(T);\n\t\t}\n\t\telse {\n\t\t\tint i = N/X;\n\t\t\tif(N%X==0) {\n\t\t\t\tSystem.out.println(T*i);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(T*i + T);\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N =sc.nextInt();\n\t\tint X =sc.nextInt();\n\t\tint T =sc.nextInt();\n\n\t\tif(N/X == 0) {\n\t\t\tSystem.out.println(T);\n\t\t}\n\t\telse {\n\t\t\tint i = N/X;\n\t\t\tif(N%X==0) {\n\t\t\t\tSystem.out.println(T*i);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(T*i + T);\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N =sc.nextInt();\n\t\tint X =sc.nextInt();\n\t\tint T =sc.nextInt();\n\n\t\tif(N/X == 0) {\n\t\t\tSystem.out.println(T);\n\t\t}\n\t\telse {\n\t\t\tint i = N/X;\n\t\t\tif(N%X==0) {\n\t\t\t\tSystem.out.println(T*i);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(T*i + T);\n\t\t\t}\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N =sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int X =sc.nextInt();",
"X",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int T =sc.nextInt();",
"T",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(N/X == 0) {\n\t\t\tSystem.out.println(T);\n\t\t}\n\t\telse {\n\t\t\tint i = N/X;\n\t\t\tif(N%X==0) {\n\t\t\t\tSystem.out.println(T*i);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(T*i + T);\n\t\t\t}\n\t\t}",
"N/X == 0",
"N/X",
"N",
"X",
"0",
"{\n\t\t\tSystem.out.println(T);\n\t\t}",
"System.out.println(T)",
"System.out.println",
"System.out",
"System",
"System.out",
"T",
"{\n\t\t\tint i = N/X;\n\t\t\tif(N%X==0) {\n\t\t\t\tSystem.out.println(T*i);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(T*i + T);\n\t\t\t}\n\t\t}",
"int i = N/X;",
"i",
"N/X",
"N",
"X",
"if(N%X==0) {\n\t\t\t\tSystem.out.println(T*i);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(T*i + T);\n\t\t\t}",
"N%X==0",
"N%X",
"N",
"X",
"0",
"{\n\t\t\t\tSystem.out.println(T*i);\n\t\t\t}",
"System.out.println(T*i)",
"System.out.println",
"System.out",
"System",
"System.out",
"T*i",
"T",
"i",
"{\n\t\t\t\tSystem.out.println(T*i + T);\n\t\t\t}",
"System.out.println(T*i + T)",
"System.out.println",
"System.out",
"System",
"System.out",
"T*i + T",
"T*i",
"T",
"i",
"T",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N =sc.nextInt();\n\t\tint X =sc.nextInt();\n\t\tint T =sc.nextInt();\n\n\t\tif(N/X == 0) {\n\t\t\tSystem.out.println(T);\n\t\t}\n\t\telse {\n\t\t\tint i = N/X;\n\t\t\tif(N%X==0) {\n\t\t\t\tSystem.out.println(T*i);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(T*i + T);\n\t\t\t}\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N =sc.nextInt();\n\t\tint X =sc.nextInt();\n\t\tint T =sc.nextInt();\n\n\t\tif(N/X == 0) {\n\t\t\tSystem.out.println(T);\n\t\t}\n\t\telse {\n\t\t\tint i = N/X;\n\t\t\tif(N%X==0) {\n\t\t\t\tSystem.out.println(T*i);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(T*i + T);\n\t\t\t}\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 N =sc.nextInt();
int X =sc.nextInt();
int T =sc.nextInt();
if(N/X == 0) {
System.out.println(T);
}
else {
int i = N/X;
if(N%X==0) {
System.out.println(T*i);
}
else {
System.out.println(T*i + T);
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
14,
2,
2,
13,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
2,
13,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
55,
5
],
[
55,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
30,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
8,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
45,
51
],
[
6,
52
],
[
52,
53
],
[
0,
54
],
[
54,
55
],
[
54,
56
]
]
| [
"import java.util.Scanner;\n\n\npublic class Main {\n\tpublic static void main (String args[]) throws Exception{\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tint x = scan.nextInt();\n\t\tint t = scan.nextInt();\n\t\tint temp = 0;\n\t\tif(n % x != 0 ) {\n\t\t\ttemp = 1;\n\t\t}\n\n\t\tSystem.out.print(((n / x) + temp) * t);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main (String args[]) throws Exception{\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tint x = scan.nextInt();\n\t\tint t = scan.nextInt();\n\t\tint temp = 0;\n\t\tif(n % x != 0 ) {\n\t\t\ttemp = 1;\n\t\t}\n\n\t\tSystem.out.print(((n / x) + temp) * t);\n\t}\n}",
"Main",
"public static void main (String args[]) throws Exception{\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tint x = scan.nextInt();\n\t\tint t = scan.nextInt();\n\t\tint temp = 0;\n\t\tif(n % x != 0 ) {\n\t\t\ttemp = 1;\n\t\t}\n\n\t\tSystem.out.print(((n / x) + temp) * t);\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tint x = scan.nextInt();\n\t\tint t = scan.nextInt();\n\t\tint temp = 0;\n\t\tif(n % x != 0 ) {\n\t\t\ttemp = 1;\n\t\t}\n\n\t\tSystem.out.print(((n / x) + temp) * 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 x = scan.nextInt();",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int t = scan.nextInt();",
"t",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int temp = 0;",
"temp",
"0",
"if(n % x != 0 ) {\n\t\t\ttemp = 1;\n\t\t}",
"n % x != 0",
"n % x",
"n",
"x",
"0",
"{\n\t\t\ttemp = 1;\n\t\t}",
"temp = 1",
"temp",
"1",
"System.out.print(((n / x) + temp) * t)",
"System.out.print",
"System.out",
"System",
"System.out",
"((n / x) + temp) * t",
"((n / x) + temp)",
"(n / x)",
"n",
"x",
"temp",
"t",
"String args[]",
"args",
"public class Main {\n\tpublic static void main (String args[]) throws Exception{\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tint x = scan.nextInt();\n\t\tint t = scan.nextInt();\n\t\tint temp = 0;\n\t\tif(n % x != 0 ) {\n\t\t\ttemp = 1;\n\t\t}\n\n\t\tSystem.out.print(((n / x) + temp) * t);\n\t}\n}",
"public class Main {\n\tpublic static void main (String args[]) throws Exception{\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n = scan.nextInt();\n\t\tint x = scan.nextInt();\n\t\tint t = scan.nextInt();\n\t\tint temp = 0;\n\t\tif(n % x != 0 ) {\n\t\t\ttemp = 1;\n\t\t}\n\n\t\tSystem.out.print(((n / x) + temp) * t);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main (String args[]) throws Exception{
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int x = scan.nextInt();
int t = scan.nextInt();
int temp = 0;
if(n % x != 0 ) {
temp = 1;
}
System.out.print(((n / x) + temp) * t);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
71,
14
],
[
71,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
17,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
37,
38
],
[
38,
39
],
[
17,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
45,
46
],
[
46,
47
],
[
17,
48
],
[
48,
49
],
[
48,
50
],
[
17,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
59,
61
],
[
17,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
15,
68
],
[
68,
69
],
[
0,
70
],
[
70,
71
],
[
70,
72
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n public static void main(String []args) throws IOException {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(br.readLine());\n int N=Integer.parseInt(st.nextToken());\n int X=Integer.parseInt(st.nextToken());\n int T=Integer.parseInt(st.nextToken());\n int sum=0;\n while (N>0){\n N-=X;\n sum+=T;\n// System.out.println(sum);\n }\n System.out.println(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 StringTokenizer st=new StringTokenizer(br.readLine());\n int N=Integer.parseInt(st.nextToken());\n int X=Integer.parseInt(st.nextToken());\n int T=Integer.parseInt(st.nextToken());\n int sum=0;\n while (N>0){\n N-=X;\n sum+=T;\n// System.out.println(sum);\n }\n System.out.println(sum);\n }\n}",
"Main",
"public static void main(String []args) throws IOException {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(br.readLine());\n int N=Integer.parseInt(st.nextToken());\n int X=Integer.parseInt(st.nextToken());\n int T=Integer.parseInt(st.nextToken());\n int sum=0;\n while (N>0){\n N-=X;\n sum+=T;\n// System.out.println(sum);\n }\n System.out.println(sum);\n }",
"main",
"{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(br.readLine());\n int N=Integer.parseInt(st.nextToken());\n int X=Integer.parseInt(st.nextToken());\n int T=Integer.parseInt(st.nextToken());\n int sum=0;\n while (N>0){\n N-=X;\n sum+=T;\n// System.out.println(sum);\n }\n System.out.println(sum);\n }",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer st=new StringTokenizer(br.readLine());",
"st",
"new StringTokenizer(br.readLine())",
"int N=Integer.parseInt(st.nextToken());",
"N",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"int X=Integer.parseInt(st.nextToken());",
"X",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"int T=Integer.parseInt(st.nextToken());",
"T",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"int sum=0;",
"sum",
"0",
"while (N>0){\n N-=X;\n sum+=T;\n// System.out.println(sum);\n }",
"N>0",
"N",
"0",
"{\n N-=X;\n sum+=T;\n// System.out.println(sum);\n }",
"N-=X",
"N",
"X",
"sum+=T",
"sum",
"T",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String []args",
"args",
"public class Main {\n public static void main(String []args) throws IOException {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(br.readLine());\n int N=Integer.parseInt(st.nextToken());\n int X=Integer.parseInt(st.nextToken());\n int T=Integer.parseInt(st.nextToken());\n int sum=0;\n while (N>0){\n N-=X;\n sum+=T;\n// System.out.println(sum);\n }\n System.out.println(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 StringTokenizer st=new StringTokenizer(br.readLine());\n int N=Integer.parseInt(st.nextToken());\n int X=Integer.parseInt(st.nextToken());\n int T=Integer.parseInt(st.nextToken());\n int sum=0;\n while (N>0){\n N-=X;\n sum+=T;\n// System.out.println(sum);\n }\n System.out.println(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));
StringTokenizer st=new StringTokenizer(br.readLine());
int N=Integer.parseInt(st.nextToken());
int X=Integer.parseInt(st.nextToken());
int T=Integer.parseInt(st.nextToken());
int sum=0;
while (N>0){
N-=X;
sum+=T;
// System.out.println(sum);
}
System.out.println(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,
4,
18,
13,
41,
13,
17,
14,
2,
13,
13,
30,
0,
13,
2,
13,
13,
0,
13,
2,
13,
13,
14,
2,
13,
17,
40,
13,
4,
18,
18,
13,
13,
2,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
62,
5
],
[
62,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
34,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
8,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
8,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
6,
59
],
[
59,
60
],
[
0,
61
],
[
61,
62
],
[
61,
63
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n \n int count = 0;\n if (n >= x) {\n count = n / x;\n n = n % x;\n }\n \n if (n > 0)\n count++;\n \n System.out.println(count*t);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n \n int count = 0;\n if (n >= x) {\n count = n / x;\n n = n % x;\n }\n \n if (n > 0)\n count++;\n \n System.out.println(count*t);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n \n int count = 0;\n if (n >= x) {\n count = n / x;\n n = n % x;\n }\n \n if (n > 0)\n count++;\n \n System.out.println(count*t);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n \n int count = 0;\n if (n >= x) {\n count = n / x;\n n = n % x;\n }\n \n if (n > 0)\n count++;\n \n System.out.println(count*t);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t = sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int count = 0;",
"count",
"0",
"if (n >= x) {\n count = n / x;\n n = n % x;\n }",
"n >= x",
"n",
"x",
"{\n count = n / x;\n n = n % x;\n }",
"count = n / x",
"count",
"n / x",
"n",
"x",
"n = n % x",
"n",
"n % x",
"n",
"x",
"if (n > 0)\n count++;",
"n > 0",
"n",
"0",
"count++",
"count",
"System.out.println(count*t)",
"System.out.println",
"System.out",
"System",
"System.out",
"count*t",
"count",
"t",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n \n int count = 0;\n if (n >= x) {\n count = n / x;\n n = n % x;\n }\n \n if (n > 0)\n count++;\n \n System.out.println(count*t);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x = sc.nextInt();\n int t = sc.nextInt();\n \n int count = 0;\n if (n >= x) {\n count = n / x;\n n = n % x;\n }\n \n if (n > 0)\n count++;\n \n System.out.println(count*t);\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int x = sc.nextInt();
int t = sc.nextInt();
int count = 0;
if (n >= x) {
count = n / x;
n = n % x;
}
if (n > 0)
count++;
System.out.println(count*t);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
13,
13,
4,
18,
18,
13,
13,
2,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
49,
5
],
[
49,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
8,
43
],
[
43,
44
],
[
44,
45
],
[
6,
46
],
[
46,
47
],
[
0,
48
],
[
48,
49
],
[
48,
50
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n long n = in.nextLong();\n long x = in.nextLong();\n long t = in.nextLong();\n long temp = (long) Math.ceil((double) n/x);\n System.out.println(temp*t);\n in.close();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n long n = in.nextLong();\n long x = in.nextLong();\n long t = in.nextLong();\n long temp = (long) Math.ceil((double) n/x);\n System.out.println(temp*t);\n in.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n long n = in.nextLong();\n long x = in.nextLong();\n long t = in.nextLong();\n long temp = (long) Math.ceil((double) n/x);\n System.out.println(temp*t);\n in.close();\n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n long n = in.nextLong();\n long x = in.nextLong();\n long t = in.nextLong();\n long temp = (long) Math.ceil((double) n/x);\n System.out.println(temp*t);\n in.close();\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"long n = in.nextLong();",
"n",
"in.nextLong()",
"in.nextLong",
"in",
"long x = in.nextLong();",
"x",
"in.nextLong()",
"in.nextLong",
"in",
"long t = in.nextLong();",
"t",
"in.nextLong()",
"in.nextLong",
"in",
"long temp = (long) Math.ceil((double) n/x);",
"temp",
"(long) Math.ceil((double) n/x)",
"Math.ceil",
"Math",
"(double) n/x",
"(double) n",
"x",
"System.out.println(temp*t)",
"System.out.println",
"System.out",
"System",
"System.out",
"temp*t",
"temp",
"t",
"in.close()",
"in.close",
"in",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n long n = in.nextLong();\n long x = in.nextLong();\n long t = in.nextLong();\n long temp = (long) Math.ceil((double) n/x);\n System.out.println(temp*t);\n in.close();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n long n = in.nextLong();\n long x = in.nextLong();\n long t = in.nextLong();\n long temp = (long) Math.ceil((double) n/x);\n System.out.println(temp*t);\n in.close();\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
long n = in.nextLong();
long x = in.nextLong();
long t = in.nextLong();
long temp = (long) Math.ceil((double) n/x);
System.out.println(temp*t);
in.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,
4,
18,
13,
41,
13,
17,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
14,
2,
13,
17,
30,
0,
13,
2,
2,
13,
13,
13,
14,
2,
13,
17,
30,
0,
13,
2,
2,
13,
17,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
73,
5
],
[
73,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
8,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
40,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
8,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
6,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scannerS = new Scanner(System.in);\n\t\tint N = scannerS.nextInt();\n\t\tint X = scannerS.nextInt();\n\t\tint T = scannerS.nextInt();\n\n\t\tint a = 0;\n\t\tint b = N % X;\n\t\tint c = N / X;\n\n\t\tif (b == 0) {\n\t\t\ta = (N / X) * T;\n\t\t} else if (b != 0) {\n\t\t\ta = (c + 1) * T;\n\t\t}\n\n\t\tSystem.out.println(a);\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scannerS = new Scanner(System.in);\n\t\tint N = scannerS.nextInt();\n\t\tint X = scannerS.nextInt();\n\t\tint T = scannerS.nextInt();\n\n\t\tint a = 0;\n\t\tint b = N % X;\n\t\tint c = N / X;\n\n\t\tif (b == 0) {\n\t\t\ta = (N / X) * T;\n\t\t} else if (b != 0) {\n\t\t\ta = (c + 1) * T;\n\t\t}\n\n\t\tSystem.out.println(a);\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scannerS = new Scanner(System.in);\n\t\tint N = scannerS.nextInt();\n\t\tint X = scannerS.nextInt();\n\t\tint T = scannerS.nextInt();\n\n\t\tint a = 0;\n\t\tint b = N % X;\n\t\tint c = N / X;\n\n\t\tif (b == 0) {\n\t\t\ta = (N / X) * T;\n\t\t} else if (b != 0) {\n\t\t\ta = (c + 1) * T;\n\t\t}\n\n\t\tSystem.out.println(a);\n\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scannerS = new Scanner(System.in);\n\t\tint N = scannerS.nextInt();\n\t\tint X = scannerS.nextInt();\n\t\tint T = scannerS.nextInt();\n\n\t\tint a = 0;\n\t\tint b = N % X;\n\t\tint c = N / X;\n\n\t\tif (b == 0) {\n\t\t\ta = (N / X) * T;\n\t\t} else if (b != 0) {\n\t\t\ta = (c + 1) * T;\n\t\t}\n\n\t\tSystem.out.println(a);\n\n\t}",
"Scanner scannerS = new Scanner(System.in);",
"scannerS",
"new Scanner(System.in)",
"int N = scannerS.nextInt();",
"N",
"scannerS.nextInt()",
"scannerS.nextInt",
"scannerS",
"int X = scannerS.nextInt();",
"X",
"scannerS.nextInt()",
"scannerS.nextInt",
"scannerS",
"int T = scannerS.nextInt();",
"T",
"scannerS.nextInt()",
"scannerS.nextInt",
"scannerS",
"int a = 0;",
"a",
"0",
"int b = N % X;",
"b",
"N % X",
"N",
"X",
"int c = N / X;",
"c",
"N / X",
"N",
"X",
"if (b == 0) {\n\t\t\ta = (N / X) * T;\n\t\t} else if (b != 0) {\n\t\t\ta = (c + 1) * T;\n\t\t}",
"b == 0",
"b",
"0",
"{\n\t\t\ta = (N / X) * T;\n\t\t}",
"a = (N / X) * T",
"a",
"(N / X) * T",
"(N / X)",
"N",
"X",
"T",
"if (b != 0) {\n\t\t\ta = (c + 1) * T;\n\t\t}",
"b != 0",
"b",
"0",
"{\n\t\t\ta = (c + 1) * T;\n\t\t}",
"a = (c + 1) * T",
"a",
"(c + 1) * T",
"(c + 1)",
"c",
"1",
"T",
"System.out.println(a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scannerS = new Scanner(System.in);\n\t\tint N = scannerS.nextInt();\n\t\tint X = scannerS.nextInt();\n\t\tint T = scannerS.nextInt();\n\n\t\tint a = 0;\n\t\tint b = N % X;\n\t\tint c = N / X;\n\n\t\tif (b == 0) {\n\t\t\ta = (N / X) * T;\n\t\t} else if (b != 0) {\n\t\t\ta = (c + 1) * T;\n\t\t}\n\n\t\tSystem.out.println(a);\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scannerS = new Scanner(System.in);\n\t\tint N = scannerS.nextInt();\n\t\tint X = scannerS.nextInt();\n\t\tint T = scannerS.nextInt();\n\n\t\tint a = 0;\n\t\tint b = N % X;\n\t\tint c = N / X;\n\n\t\tif (b == 0) {\n\t\t\ta = (N / X) * T;\n\t\t} else if (b != 0) {\n\t\t\ta = (c + 1) * T;\n\t\t}\n\n\t\tSystem.out.println(a);\n\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner scannerS = new Scanner(System.in);
int N = scannerS.nextInt();
int X = scannerS.nextInt();
int T = scannerS.nextInt();
int a = 0;
int b = N % X;
int c = N / X;
if (b == 0) {
a = (N / X) * T;
} else if (b != 0) {
a = (c + 1) * T;
}
System.out.println(a);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
13,
13,
3,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
64,
5
],
[
64,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
27,
37
],
[
37,
38
],
[
38,
39
],
[
27,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
42,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
48,
57
],
[
8,
58
],
[
58,
59
],
[
59,
60
],
[
6,
61
],
[
61,
62
],
[
0,
63
],
[
63,
64
],
[
63,
65
]
]
| [
"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 x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\n\t\tfor (int i = 1; i < n+1; i++) {\n\t\t\tif (i * x >= n) {\n\t\t\t\tSystem.out.println(t * i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\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 x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\n\t\tfor (int i = 1; i < n+1; i++) {\n\t\t\tif (i * x >= n) {\n\t\t\t\tSystem.out.println(t * i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\t}\n\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 x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\n\t\tfor (int i = 1; i < n+1; i++) {\n\t\t\tif (i * x >= n) {\n\t\t\t\tSystem.out.println(t * i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\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 x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\n\t\tfor (int i = 1; i < n+1; i++) {\n\t\t\tif (i * x >= n) {\n\t\t\t\tSystem.out.println(t * i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\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 x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int t = sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 1; i < n+1; i++) {\n\t\t\tif (i * x >= n) {\n\t\t\t\tSystem.out.println(t * i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < n+1",
"i",
"n+1",
"n",
"1",
"i++",
"i++",
"i",
"{\n\t\t\tif (i * x >= n) {\n\t\t\t\tSystem.out.println(t * i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (i * x >= n) {\n\t\t\t\tSystem.out.println(t * i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"if (i * x >= n) {\n\t\t\t\tSystem.out.println(t * i);\n\t\t\t\tbreak;\n\t\t\t}",
"i * x >= n",
"i * x",
"i",
"x",
"n",
"{\n\t\t\t\tSystem.out.println(t * i);\n\t\t\t\tbreak;\n\t\t\t}",
"System.out.println(t * i)",
"System.out.println",
"System.out",
"System",
"System.out",
"t * i",
"t",
"i",
"break;",
"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 x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\n\t\tfor (int i = 1; i < n+1; i++) {\n\t\t\tif (i * x >= n) {\n\t\t\t\tSystem.out.println(t * i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\t}\n\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 x = sc.nextInt();\n\t\tint t = sc.nextInt();\n\n\t\tfor (int i = 1; i < n+1; i++) {\n\t\t\tif (i * x >= n) {\n\t\t\t\tSystem.out.println(t * i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tsc.close();\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int x = sc.nextInt();
int t = sc.nextInt();
for (int i = 1; i < n+1; i++) {
if (i * x >= n) {
System.out.println(t * i);
break;
}
}
sc.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
42,
2,
13,
13,
30,
0,
13,
13,
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
],
[
65,
5
],
[
65,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
34,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
8,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
50,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
8,
59
],
[
59,
60
],
[
60,
61
],
[
6,
62
],
[
62,
63
],
[
0,
64
],
[
64,
65
],
[
64,
66
]
]
| [
"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 = Integer.parseInt(sc.next());\n int x = Integer.parseInt(sc.next());\n int t = Integer.parseInt(sc.next());\n int answer = 0;\n int takoyaki = 0;\n while (takoyaki < n) {\n takoyaki += x;\n answer += t;\n }\n System.out.println(answer);\n sc.close();\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 = Integer.parseInt(sc.next());\n int x = Integer.parseInt(sc.next());\n int t = Integer.parseInt(sc.next());\n int answer = 0;\n int takoyaki = 0;\n while (takoyaki < n) {\n takoyaki += x;\n answer += t;\n }\n System.out.println(answer);\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int x = Integer.parseInt(sc.next());\n int t = Integer.parseInt(sc.next());\n int answer = 0;\n int takoyaki = 0;\n while (takoyaki < n) {\n takoyaki += x;\n answer += t;\n }\n System.out.println(answer);\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n int x = Integer.parseInt(sc.next());\n int t = Integer.parseInt(sc.next());\n int answer = 0;\n int takoyaki = 0;\n while (takoyaki < n) {\n takoyaki += x;\n answer += t;\n }\n System.out.println(answer);\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = Integer.parseInt(sc.next());",
"n",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int x = Integer.parseInt(sc.next());",
"x",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int t = Integer.parseInt(sc.next());",
"t",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int answer = 0;",
"answer",
"0",
"int takoyaki = 0;",
"takoyaki",
"0",
"while (takoyaki < n) {\n takoyaki += x;\n answer += t;\n }",
"takoyaki < n",
"takoyaki",
"n",
"{\n takoyaki += x;\n answer += t;\n }",
"takoyaki += x",
"takoyaki",
"x",
"answer += t",
"answer",
"t",
"System.out.println(answer)",
"System.out.println",
"System.out",
"System",
"System.out",
"answer",
"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 = Integer.parseInt(sc.next());\n int x = Integer.parseInt(sc.next());\n int t = Integer.parseInt(sc.next());\n int answer = 0;\n int takoyaki = 0;\n while (takoyaki < n) {\n takoyaki += x;\n answer += t;\n }\n System.out.println(answer);\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 = Integer.parseInt(sc.next());\n int x = Integer.parseInt(sc.next());\n int t = Integer.parseInt(sc.next());\n int answer = 0;\n int takoyaki = 0;\n while (takoyaki < n) {\n takoyaki += x;\n answer += t;\n }\n System.out.println(answer);\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 = Integer.parseInt(sc.next());
int x = Integer.parseInt(sc.next());
int t = Integer.parseInt(sc.next());
int answer = 0;
int takoyaki = 0;
while (takoyaki < n) {
takoyaki += x;
answer += t;
}
System.out.println(answer);
sc.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
41,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
0,
13,
20,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
4,
13,
4,
18,
13,
2,
2,
2,
2,
13,
13,
17,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
72,
8
],
[
72,
9
],
[
9,
10
],
[
9,
11
],
[
72,
12
],
[
12,
13
],
[
12,
14
],
[
72,
15
],
[
15,
16
],
[
72,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
21,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
20,
29
],
[
29,
30
],
[
29,
31
],
[
19,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
37,
38
],
[
72,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
41,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
41,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
58,
64
],
[
57,
65
],
[
41,
66
],
[
66,
67
],
[
67,
68
],
[
39,
69
],
[
69,
70
],
[
0,
71
],
[
71,
72
],
[
71,
73
]
]
| [
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n private static final PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n private static StringTokenizer st;\n\n private static int readInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return Integer.parseInt(st.nextToken());\n }\n\n public static void main(String[] args) throws IOException {\n int N = readInt();\n int X = readInt();\n int T = readInt();\n\n pw.println((N + X - 1) / X * T);\n pw.close();\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n private static final PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n private static StringTokenizer st;\n\n private static int readInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return Integer.parseInt(st.nextToken());\n }\n\n public static void main(String[] args) throws IOException {\n int N = readInt();\n int X = readInt();\n int T = readInt();\n\n pw.println((N + X - 1) / X * T);\n pw.close();\n }\n}",
"Main",
"private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"private static final PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));",
"pw",
"new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)))",
"private static StringTokenizer st;",
"st",
"private static int readInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return Integer.parseInt(st.nextToken());\n }",
"readInt",
"{\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return Integer.parseInt(st.nextToken());\n }",
"while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return Integer.parseInt(st.nextToken());",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"public static void main(String[] args) throws IOException {\n int N = readInt();\n int X = readInt();\n int T = readInt();\n\n pw.println((N + X - 1) / X * T);\n pw.close();\n }",
"main",
"{\n int N = readInt();\n int X = readInt();\n int T = readInt();\n\n pw.println((N + X - 1) / X * T);\n pw.close();\n }",
"int N = readInt();",
"N",
"readInt()",
"readInt",
"int X = readInt();",
"X",
"readInt()",
"readInt",
"int T = readInt();",
"T",
"readInt()",
"readInt",
"pw.println((N + X - 1) / X * T)",
"pw.println",
"pw",
"(N + X - 1) / X * T",
"(N + X - 1) / X",
"(N + X - 1)",
"N + X",
"N",
"X",
"1",
"X",
"T",
"pw.close()",
"pw.close",
"pw",
"String[] args",
"args",
"public class Main {\n private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n private static final PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n private static StringTokenizer st;\n\n private static int readInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return Integer.parseInt(st.nextToken());\n }\n\n public static void main(String[] args) throws IOException {\n int N = readInt();\n int X = readInt();\n int T = readInt();\n\n pw.println((N + X - 1) / X * T);\n pw.close();\n }\n}",
"public class Main {\n private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n private static final PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n private static StringTokenizer st;\n\n private static int readInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());\n return Integer.parseInt(st.nextToken());\n }\n\n public static void main(String[] args) throws IOException {\n int N = readInt();\n int X = readInt();\n int T = readInt();\n\n pw.println((N + X - 1) / X * T);\n pw.close();\n }\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main {
private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
private static final PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
private static StringTokenizer st;
private static int readInt() throws IOException {
while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine());
return Integer.parseInt(st.nextToken());
}
public static void main(String[] args) throws IOException {
int N = readInt();
int X = readInt();
int T = readInt();
pw.println((N + X - 1) / X * T);
pw.close();
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.