buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
n, x, t = map(int, input().split()) answer = (n//x)*t print(answer)
n, x, t = map(int, input().split()) answer = -((-n)//x)*t print(answer)
[["+", 0, 1, 0, 662, 12, 657, 31, 664, 17, 33], ["+", 0, 662, 12, 657, 31, 664, 28, 23, 0, 24], ["+", 28, 23, 0, 657, 31, 23, 0, 664, 17, 33], ["+", 31, 664, 28, 23, 0, 657, 31, 23, 0, 25]]
5
31
N, X, T = map(int, input().split()) ans = N // X if N % X != 0: ans += 1 print(ans)
N, X, T = map(int, input().split()) ans = (N // X) * T if N % X != 0: ans += T print(ans)
[["+", 0, 1, 0, 662, 12, 657, 31, 23, 0, 24], ["+", 0, 1, 0, 662, 12, 657, 31, 23, 0, 25], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 48], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 677, 12, 612], ["+", 0, 57, 64, 196, 0, 1, 0, 677, 12, 22]]
5
37
#include <iostream> #include <vector> using namespace std; int N, X, T; int main() { cin >> N >> X >> T; cout << ((N - 1) / X + 1) * 6; }
#include <iostream> #include <vector> using namespace std; int N, X, T; int main() { cin >> N >> X >> T; cout << ((N - 1) / X + 1) * T; }
[["-", 8, 9, 0, 1, 0, 16, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 12, 22]]
1
45
<?php $line = trim(fgets(STDIN)); $array = explode(" ", $line); $N = $array[0]; $X = $array[1]; $T = $array[2]; for($i=1;$i<10000;$i++) { if($N < $X * $i) { echo $i*$T; break; } }
<?php $line = trim(fgets(STDIN)); $array = explode(" ", $line); $N = $array[0]; $X = $array[1]; $T = $array[2]; for($i=1;$i<10000;$i++) { if($N <= $X * $i) { echo $i*$T; break; } }
[["-", 0, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 0, 9, 0, 57, 15, 23, 0, 16, 17, 19]]
6
92
#include <iostream> using namespace std; int main() { int n, x, t, k; cin >> n >> x >> t; if (n % x > 0) { k = 1; } else { k = 0; } cout << t * (n / x + 1) << endl; }
#include <iostream> using namespace std; int main() { int n, x, t, k; cin >> n >> x >> t; if (n % x > 0) { k = 1; } else { k = 0; } cout << t * (n / x + k) << endl; }
[["-", 31, 16, 12, 16, 12, 23, 0, 16, 12, 13], ["+", 31, 16, 12, 16, 12, 23, 0, 16, 12, 22]]
1
64
#include <algorithm> #include <bitset> #include <cmath> #include <iostream> #include <list> #include <map> #include <math.h> #include <numeric> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string> #include <tuple> #include <vector> // ceil(a/b) (a + (b - 1))/ b using namespace std; #d...
#include <algorithm> #include <bitset> #include <cmath> #include <iostream> #include <list> #include <map> #include <math.h> #include <numeric> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string> #include <tuple> #include <vector> // ceil(a/b) (a + (b - 1))/ b using namespace std; #d...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
213
#include <cmath> #include <iostream> #include <string> using namespace std; int main() { int N, X, T, ans; cin >> N >> X >> T; if (X == 1) { ans = N * T; } else { ans = ((N + 1) / X + 1) * T; } cout << ans; return 0; }
#include <cmath> #include <iostream> #include <string> using namespace std; int main() { int N, X, T, ans; cin >> N >> X >> T; if (X == 1) { ans = N * T; } else { ans = ((N - 1) / X + 1) * T; } cout << ans; return 0; }
[["-", 0, 16, 31, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 17, 33]]
1
73
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { int N, X, T; cin >> N >> X >> T; int count = 0; for (int i = T; i < N; i += X) { count += T; } cout << count << endl; return 0; }
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { int N, X, T; cin >> N >> X >> T; int count = T; for (int i = X; i < N; i += X) { count += T; } cout << count << endl; return 0; }
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 22], ["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 22], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 22]]
1
64
#include <algorithm> #include <deque> #include <functional> #include <iostream> #include <map> #include <math.h> #include <set> #include <stack> #include <string> #include <tuple> #include <vector> #define ll long long using namespace std; int main() { int N, X, T; cin >> N >> X >> T; double times = ceil((doub...
#include <algorithm> #include <deque> #include <functional> #include <iostream> #include <map> #include <math.h> #include <set> #include <stack> #include <string> #include <tuple> #include <vector> #define ll long long using namespace std; int main() { int N, X, T; cin >> N >> X >> T; int times = ceil((double)...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
71
NXT= [int(i) for i in input().split(' ')] i=NXT[0] count=0 while i>=0: i -= NXT[1];count +=1 print(int(NXT[2]*count))
NXT= [int(i) for i in input().split(' ')] i=NXT[0] count=0 while i>0: i -= NXT[1];count +=1 print(int(NXT[2]*count))
[["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 47]]
5
57
n.x.t = map(int, input().split()) w = n//x if (n % x) == 0: print(w * t) else: w += 1 print(w * t)
n,x,t = map(int, input().split()) w = n//x if (n % x) == 0: print(w * t) else: w += 1 print(w * t)
[["-", 0, 1, 0, 662, 31, 319, 500, 319, 0, 131], ["+", 0, 656, 0, 1, 0, 662, 31, 684, 0, 21], ["-", 0, 656, 0, 1, 0, 662, 31, 319, 0, 131]]
5
49
#include <bits/stdc++.h> using namespace std; typedef vector<int> vint; typedef vector<vint> vvint; static int n, x, t; int main() { while (cin >> n >> x >> t) { cout << ceil(n / double(x)) * t << "\n"; } return 0; }
#include <bits/stdc++.h> using namespace std; typedef vector<int> vint; typedef vector<vint> vvint; static int n, x, t; int main() { while (cin >> n >> x >> t) { cout << int(ceil(n / double(x))) * t << "\n"; } return 0; }
[["+", 0, 16, 31, 16, 12, 16, 31, 2, 63, 40], ["+", 31, 16, 12, 16, 31, 2, 3, 4, 0, 24], ["+", 3, 4, 0, 16, 12, 2, 3, 4, 0, 25]]
1
67
n,x,t = map(int, input().split()) print(math.ceil(n/x)*t)
import math n,x,t = map(int, input().split()) print(math.ceil(n/x)*t)
[["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22]]
5
31
n,x,t = map(int,input().split()) from math import ceil time = ceil(t/n) * x print(time)
n,x,t = map(int,input().split()) from math import ceil time = ceil(n/x) * t print(time)
[["-", 12, 657, 31, 652, 3, 4, 0, 657, 31, 22], ["-", 12, 657, 31, 652, 3, 4, 0, 657, 17, 85], ["+", 12, 657, 31, 652, 3, 4, 0, 657, 17, 85], ["+", 12, 657, 31, 652, 3, 4, 0, 657, 12, 22], ["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22]]
5
36
#include <iostream> using namespace std; int main() { int N, X, T; cin >> N >> X >> T; if (N % T == 0) { cout << (N / X * T) << endl; } else cout << (N / X + 1) * T << endl; }
#include <iostream> using namespace std; int main() { int N, X, T; cin >> N >> X >> T; if (N % X == 0) { cout << (N / X * T) << endl; } else cout << (N / X + 1) * T << endl; }
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]]
1
64
#include <iostream> using namespace std; int main() { double a, b, c; ios::sync_with_stdio(false); cin.tie(nullptr); cin >> a >> b >> c; if (a / b > (int)(a / b)) { cout << ((int)(a / b) + 1) * c << endl; } else cout << (int)(a / b) * c << endl; return 0; }
#include <iostream> using namespace std; int main() { double a, b, c; ios::sync_with_stdio(false); cin.tie(nullptr); cin >> a >> b >> c; if (a / b > (int)(a / b)) { cout << ((int)(a / b) + 1) * c << endl; } else cout << (int)((a / b) * c) << endl; return 0; }
[["+", 12, 74, 51, 23, 0, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 16, 12, 74, 51, 23, 0, 25]]
1
96
n,x,t = map(int, input().split()) if n <= x: print(x) elif n % x == 0: print(n//x*t) else: print((n//x+1)*t)
n,x,t = map(int, input().split()) if n <= x: print(t) elif n % x == 0: print(n//x*t) else: print((n//x+1)*t)
[["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 22]]
5
56
import math n,x,t=map(int(input().split())) ans=math.ceiling(n/x)*t print(ans)
import math n,x,t=map(int,input().split()) ans=math.ceil(n/x)*t print(ans)
[["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25], ["-", 0, 662, 12, 657, 31, 652, 63, 319, 319, 22], ["+", 0, 662, 12, 657, 31, 652, 63, 319, 319, 22]]
5
37
#include <bits/stdc++.h> using namespace std; int N, X, T, yu, t; int main() { cin >> N >> X >> T; if (N <= X) cout << T; else { yu = (N + X) / X; t = yu * T; cout << t; } return 0; }
#include <bits/stdc++.h> using namespace std; int N, X, T, yu, t; int main() { cin >> N >> X >> T; if (N <= X) cout << T; else { yu = (N + X - 1) / X; t = yu * T; cout << t; } return 0; }
[["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 13]]
1
67
#include <stdio.h> int main() { int n, x, t, answer = 0, i, counter = 0; scanf("%d %d %d", &n, &x, &t); while (n - x >= 0) { n = n - x; counter = counter + 1; } if (n >= 0) { counter = counter + 1; } answer = t * counter; printf("%d", answer); return 0; }
#include <stdio.h> int main() { int n, x, t, answer = 0, i, counter = 0; scanf("%d %d %d", &n, &x, &t); while (n - x >= 0) { n = n - x; counter = counter + 1; } if (n > 0) { counter = counter + 1; } answer = t * counter; printf("%d", answer); return 0; }
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47]]
0
95
N,X,T = map(int,input().split()) print(N//X*T)
N,X,T = map(int,input().split()) print(-(-N//X)*T)
[["+", 0, 652, 3, 4, 0, 657, 31, 664, 17, 33], ["+", 3, 4, 0, 657, 31, 664, 28, 23, 0, 24], ["+", 31, 664, 28, 23, 0, 657, 31, 664, 17, 33], ["+", 3, 4, 0, 657, 31, 664, 28, 23, 0, 25]]
5
26
#include <bits/stdc++.h> using namespace std; int main() { float n, x, t; cin >> n >> x >> t; cout << ceil(float(n / x)) * t; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { float n, x, t; cin >> n >> x >> t; cout << (int)(ceil(float(n / x)) * t); return 0; }
[["+", 8, 9, 0, 1, 0, 16, 12, 74, 0, 24], ["+", 0, 1, 0, 16, 12, 74, 39, 77, 39, 40], ["+", 8, 9, 0, 1, 0, 16, 12, 74, 0, 25], ["+", 0, 1, 0, 16, 12, 74, 51, 23, 0, 24], ["+", 0, 1, 0, 16, 12, 74, 51, 23, 0, 25]]
1
44
import math N, X, T = map(int,input().split()) count = math.ceil(N/X); ans = count*T
import math N, X, T = map(int,input().split()) count = math.ceil(N/X); ans = count*T print(ans)
[["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
36
#include <stdio.h> int main() { int N, X, T; scanf("%d %d %d", &N, &X, &T); int X2 = X; int T2 = T; while (X2 > N) { X2 = X2 + X; T2 = T2 + T; } printf("%d\n", T2); return 0; }
#include <stdio.h> int main() { int N, X, T; scanf("%d %d %d", &N, &X, &T); int X2 = X; int T2 = T; while (X2 < N) { X2 = X2 + X; T2 = T2 + T; } printf("%d\n", T2); return 0; }
[["-", 8, 9, 0, 52, 15, 23, 0, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 23, 0, 16, 17, 18]]
0
74
#include <bits/stdc++.h> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; cout << ceil((float)n / x) * t << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; cout << ((int)ceil((float)n / x) * t) << endl; }
[["+", 0, 1, 0, 16, 31, 16, 12, 23, 0, 24], ["+", 31, 16, 12, 23, 0, 16, 31, 74, 0, 24], ["+", 12, 23, 0, 16, 31, 74, 39, 77, 39, 40], ["+", 31, 16, 12, 23, 0, 16, 31, 74, 0, 25], ["+", 0, 1, 0, 16, 31, 16, 12, 23, 0, 25]]
1
43
n,x,t = list(map(int, input().split())) print((n+x-1//x) * t)
n,x,t = list(map(int, input().split())) print(((n+x-1)//x) * t)
[["+", 0, 657, 31, 23, 0, 657, 31, 23, 0, 24], ["+", 0, 657, 31, 23, 0, 657, 31, 23, 0, 25]]
5
35
#include <cmath> #include <iostream> using namespace std; long long time(int n, int x, int t) { return ceil(n / x) * t; } int main() { long long n, x, t; cin >> n >> x >> t; cout << time(n, x, t); }
#include <cmath> #include <iostream> using namespace std; long long time(double n, int x, int t) { return ceil(n / x) * t; } int main() { double n; long long x, t; cin >> n >> x >> t; cout << time(n, x, t); }
[["-", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["+", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21]]
1
66
import math n,x,t = map(int,input().split()) c = t*math.ceil(n/t) print(c)
import math n,x,t = map(int,input().split()) c = t*math.ceil(n/x) print(c)
[["-", 12, 657, 12, 652, 3, 4, 0, 657, 12, 22], ["+", 12, 657, 12, 652, 3, 4, 0, 657, 12, 22]]
5
36
#include <bits/stdc++.h> using namespace std; int main() { int N, X, T; cin >> N >> X >> T; if (N % X == 0) { cout << N / X * T << endl; } else { cout << N / X * T + 1 << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int N, X, T; cin >> N >> X >> T; if (N % X == 0) { cout << N / X * T << endl; } else { cout << (N / X + 1) * T << endl; } }
[["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["-", 0, 16, 31, 16, 12, 16, 31, 16, 17, 48], ["-", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 25], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22]]
1
62
#include <iostream> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; cout << (n + 1) / x * t << endl; return 0; }
#include <iostream> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; cout << (n + x - 1) / x * t << endl; return 0; }
[["+", 31, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 17, 33]]
1
44
#include <bits/stdc++.h> using namespace std; int main() { int n, x, t; int z; cin >> n >> x >> t; z = (n + 1) / x * t; cout << z << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int n, x, t; int z; cin >> n >> x >> t; z = (n + x - 1) / x * t; cout << z << endl; }
[["+", 31, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 17, 33]]
1
48
#include <bits/stdc++.h> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; cout << ceil(n / x) * t; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; cout << ((n + x - 1) / x) * t; return 0; }
[["-", 0, 1, 0, 16, 12, 16, 31, 2, 63, 22], ["+", 12, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["+", 0, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 12, 13], ["+", 12, 16, 31, 23, 0, 16, 31, 23, 0, 25]]
1
41
#include <bits/stdc++.h> #define INF 1e9 #define llINF 1e18 #define MOD 1000000007 #define pb push_back #define mp make_pair #define F first #define S second #define ll long long #define vi vector<ll> #define vvi vector<vi> #define BITLE(n) (1LL << ((ll)n)) #define SUBS(s, f, t) ((s).substr((f), (t) - (f))) #define ALL...
#include <bits/stdc++.h> #define INF 1e9 #define llINF 1e18 #define MOD 1000000007 #define pb push_back #define mp make_pair #define F first #define S second #define ll long long #define vi vector<ll> #define vvi vector<vi> #define BITLE(n) (1LL << ((ll)n)) #define SUBS(s, f, t) ((s).substr((f), (t) - (f))) #define ALL...
[["+", 0, 16, 31, 16, 12, 16, 31, 74, 0, 24], ["+", 31, 16, 12, 16, 31, 74, 39, 77, 39, 78], ["+", 0, 16, 31, 16, 12, 16, 31, 74, 0, 25]]
1
124
import sys input = sys.stdin.readline def main(): N, X, T = map(int, input().split()) ans = (N+X+1)//X * T print(ans) if __name__ == '__main__': main()
import sys input = sys.stdin.readline def main(): N, X, T = map(int, input().split()) ans = (N+X-1)//X * T print(ans) if __name__ == '__main__': main()
[["-", 12, 657, 31, 657, 31, 23, 0, 657, 17, 72], ["+", 12, 657, 31, 657, 31, 23, 0, 657, 17, 33]]
5
59
N,X,T=map(input().split()) if N%X==0: print(N//X*T) elif N%X!=0: print((N//X+1)*T)
N,X,T=map(int,input().split()) if N%X==0: print(N//X*T) elif N%X!=0: print((N//X+1)*T)
[["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21]]
5
50
#include <stdio.h> int main() { int N, X, T; scanf("%d %d %d", &N, &X, &T); N % X == 0 ? printf("%d", T * (N / X)) : printf("%d", 2 * (T * (N / X))); return 0; }
#include <stdio.h> int main() { int N, X, T; scanf("%d %d %d", &N, &X, &T); N % X == 0 ? printf("%d", T * (N / X)) : printf("%d", (T * (N / X)) + T); return 0; }
[["-", 0, 41, 75, 2, 3, 4, 0, 16, 31, 13], ["-", 0, 41, 75, 2, 3, 4, 0, 16, 17, 48], ["+", 0, 41, 75, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 41, 75, 2, 3, 4, 0, 16, 12, 22]]
1
74
#include <bits/stdc++.h> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; int ans = 0; int tak = 0; for (int i = 1; i <= 1000000; i++) { tak = x * i; if (tak > n) { cout << t * i << endl; return 0; } } }
#include <bits/stdc++.h> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; int tak = 0; for (int i = 1; i <= 1000000; i++) { tak = x * i; if (tak >= n) { cout << t * i << endl; return 0; } } }
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
78
N,X,T = map(int,input().split()) W = ((N//X)+1)*T print(W)
N,X,T = map(int,input().split()) W = (((N-1)//X)+1)*T print(W)
[["+", 0, 657, 31, 23, 0, 657, 31, 23, 0, 24], ["+", 31, 23, 0, 657, 31, 23, 0, 657, 17, 33], ["+", 31, 23, 0, 657, 31, 23, 0, 657, 12, 612], ["+", 0, 657, 31, 23, 0, 657, 31, 23, 0, 25]]
5
35
n,x,t=map(int,input().split()) if n//x==0: print((n//x)*t) else: print((n//x+1)*t)
n,x,t=map(int,input().split()) if n%x==0: print((n//x)*t) else: print((n//x+1)*t)
[["-", 0, 656, 0, 57, 15, 666, 0, 657, 17, 676], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 17, 109]]
5
49
x,n,t = map(str,input().split(" ")) cnt =0 while (x > 0): x -= n cnt += 1 print(cnt * t)
x,n,t = map(int,input().split(" ")) cnt =0 while x > 0: x -= n cnt += 1 print(cnt * t)
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["-", 36, 36, 0, 656, 0, 52, 15, 23, 0, 24], ["-", 36, 36, 0, 656, 0, 52, 15, 23, 0, 25]]
5
43
x,n,t = map(str,input().split()) cnt =0 while x > 0: x -= n cnt += 2 print(cnt * t)
x,n,t = map(int,input().split()) cnt =0 while x > 0: x -= n cnt += 1 print(cnt * t)
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["-", 0, 52, 8, 196, 0, 1, 0, 677, 12, 612], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 12, 612]]
5
38
#include <bits/stdc++.h> using namespace std; int main() { int N, X, T; int T2; cin >> N >> X >> T; if (N % X != 0) { T2 = T * (N / X); } else { T2 = T * (N / X + 1); } cout << T2 << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int N, X, T; int T2; cin >> N >> X >> T; if (N % X != 0) { T2 = T * (N / X + 1); } else { T2 = T * (N / X); } cout << T2 << endl; }
[["+", 0, 11, 12, 16, 12, 23, 0, 16, 17, 72], ["+", 0, 11, 12, 16, 12, 23, 0, 16, 12, 13], ["-", 0, 11, 12, 16, 12, 23, 0, 16, 17, 72], ["-", 0, 11, 12, 16, 12, 23, 0, 16, 12, 13]]
1
71
[n,x,t]=list(map(int,input().split())) kaisu=n//x+1 if n%x!=0: kaisu+=1 ans=kaisu*t print(ans)
[n,x,t]=list(map(int,input().split())) kaisu=n//x if n%x!=0: kaisu+=1 ans=kaisu*t print(ans)
[["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 72], ["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]]
5
49
#include <iostream> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; if (n % x != 0) { cout << (n / x + 1) * t << endl; } else { cout << n * t << endl; } }
#include <iostream> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; if (n % x != 0) { cout << (n / x + 1) * t << endl; } else { cout << n / x * t << endl; } }
[["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 85], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22]]
1
62
n, x, t = map(int, input().split()) if n/ x == 0 : time_lapse = (int(n / x)) * t print(time_lapse) else: time_lapse = (int(n / x) + 1) * t print(time_lapse)
n, x, t = map(int, input().split()) if n % x == 0 : time_lapse = (int(n / x)) * t print(time_lapse) else: time_lapse = (int(n / x) + 1) * t print(time_lapse)
[["-", 0, 656, 0, 57, 15, 666, 0, 657, 17, 85], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 17, 109]]
5
61
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll mod = 1e9 + 7; int main() { ll n, x, t; cin >> n >> x >> t; if (n % x == 0) cout << (n / x) * t; else cout << (n / x) * t + 1; return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll mod = 1e9 + 7; int main() { ll n, x, t; cin >> n >> x >> t; if (n % x == 0) cout << (n / x) * t; else cout << (n / x) * t + t; return 0; }
[["-", 75, 76, 0, 1, 0, 16, 12, 16, 12, 13], ["+", 75, 76, 0, 1, 0, 16, 12, 16, 12, 22]]
1
74
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.print...
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.printl...
[["-", 8, 196, 0, 52, 15, 15, 0, 16, 17, 20], ["+", 8, 196, 0, 52, 15, 15, 0, 16, 17, 47]]
3
97
#include <stdio.h> int main() { int n, x, t, time, temp; scanf("%d%d%d", &n, &x, &t); temp = n / x + 1; if (n / x == 0) { temp--; } printf("%d\n", t * temp); }
#include <stdio.h> int main() { int n, x, t, temp; scanf("%d %d %d", &n, &x, &t); temp = n / x + 1; if (n % x == 0) { temp--; } printf("%d\n", t * temp); }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 85], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 109]]
0
68
input = gets.split(" ").map(&:to_i) n = input[0] x = input[1] t = input[2] time = n / x if(!(time * x == n)) time += 1 end puts time
input = gets.split(" ").map(&:to_i) n = input[0] x = input[1] t = input[2] time = n / x if(!(time * x == n)) time += 1 end puts time * t
[["+", 0, 493, 0, 652, 3, 4, 0, 738, 17, 48], ["+", 0, 493, 0, 652, 3, 4, 0, 738, 12, 22]]
4
56
// main.cpp : Defines the entry point for the application. // #include <iostream> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; int n_batch = n / x; ++n_batch; int t_total = n_batch * t; cout << t_total << endl; return 0; }
// main.cpp : Defines the entry point for the application. // #include <iostream> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; int n_batch = n / x; if (n % x) ++n_batch; int t_total = n_batch * t; cout << t_total << endl; return 0; }
[["+", 0, 30, 0, 14, 8, 9, 0, 57, 0, 121], ["+", 0, 14, 8, 9, 0, 57, 15, 339, 0, 24], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 109], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 57, 15, 339, 0, 25]]
1
55
n,x,t=map(int,input().split()) print(n//x+((n%x)!=0)*t)
n,x,t=map(int,input().split()) print((n//x+((n%x)!=0))*t)
[["+", 0, 652, 3, 4, 0, 657, 31, 23, 0, 24], ["+", 0, 657, 31, 23, 0, 657, 12, 23, 0, 25]]
5
36
#include <stdio.h> int main(void) { int N, X, T; int sum; scanf("%d %d %d", &N, &X, &T); sum = 0; sum = sum + ((N / X) * T); if (N % T != 0) { sum = sum + T; } printf("%d\n", sum); }
#include <stdio.h> int main(void) { int N, X, T; int sum; scanf("%d %d %d", &N, &X, &T); sum = 0; sum = sum + ((N / X) * T); if (N % X != 0) { sum = sum + T; } printf("%d\n", sum); }
[["-", 0, 57, 15, 23, 0, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 12, 22]]
0
79
#include <bits/stdc++.h> #include <cmath> #include <iostream> using namespace std; int main() { double long N, X, T; cin >> N >> X >> T; double long ans = ceil(N / X) * T; cout << ans; return 0; }
#include <bits/stdc++.h> #include <cmath> #include <iostream> using namespace std; int main() { double long N, X, T; cin >> N >> X >> T; long ans = ceil(N / X) * T; cout << ans; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
52
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; template <typename T> using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>; #define int long long #define ar array #defin...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; template <typename T> using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>; #define int long long #define ar array #defin...
[["+", 8, 9, 0, 1, 0, 16, 12, 74, 0, 24], ["+", 0, 1, 0, 16, 12, 74, 39, 77, 39, 40], ["+", 8, 9, 0, 1, 0, 16, 12, 74, 0, 25], ["+", 0, 1, 0, 16, 12, 74, 51, 23, 0, 24], ["+", 0, 1, 0, 16, 12, 74, 51, 23, 0, 25]]
1
160
#include <iostream> #include <vector> using namespace std; int main() { int n, x, t, div, rem, ans; cin >> n >> x >> t; if (n > x) { div = n / x; rem = n % x; if (rem > 0) { ++div; } ans = (div * t); } else if (n == x) { ans = t; } cout << ans; return 0; }
#include <iostream> #include <vector> using namespace std; int main() { int n, x, t, div, rem, ans = 0; cin >> n >> x >> t; if (n > x) { div = n / x; rem = n % x; if (rem > 0) { ++div; } ans = (div * t); } else if (n <= x) { ans = t; } cout << ans; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 19]]
1
94
#include <bits/stdc++.h> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; cout << (n / x) * t << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; cout << (--n / x * t + t) << endl; return 0; }
[["+", 0, 16, 31, 16, 31, 16, 31, 27, 17, 68], ["-", 0, 16, 31, 16, 12, 16, 31, 23, 0, 25], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 17, 72], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 12, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 23, 0, 25]]
1
42
#include <bits/stdc++.h> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; cout << (n / x) * t << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; cout << (--n / x + 1) * t << endl; return 0; }
[["+", 31, 23, 0, 16, 31, 16, 31, 27, 17, 68], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 17, 72], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 12, 13]]
1
42
#include <bits/stdc++.h> #define int long long using namespace std; int32_t main() { int n, x, t; cin >> n >> x >> t; double k = (double)n / x; cout << ceil(k) * t << endl; }
#include <bits/stdc++.h> #define int long long using namespace std; int32_t main() { int n, x, t; cin >> n >> x >> t; double k = (double)n / x; int answer = ceil(k) * t; cout << answer; }
[["-", 8, 9, 0, 1, 0, 16, 31, 16, 31, 22], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, ...
1
51
#include <iostream> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int n, x, t; cin >> n >> x >> t; if ((n % x) == 0) { cout << t * (n % x) << endl; } else { cout << t * ((n % x) + 1) << endl; } return 0; }
#include <iostream> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int n, x, t; cin >> n >> x >> t; if ((n % x) == 0) { cout << t * (n / x) << endl; } else { cout << t * ((n / x) + 1) << endl; } return 0; }
[["-", 31, 16, 12, 16, 12, 23, 0, 16, 17, 109], ["+", 31, 16, 12, 16, 12, 23, 0, 16, 17, 85], ["-", 12, 23, 0, 16, 31, 23, 0, 16, 17, 109], ["+", 12, 23, 0, 16, 31, 23, 0, 16, 17, 85]]
1
87
import math N, X, T = map(int(input().split())) print(T * math.ceil(N / X))
import math N, X, T = map(int, input().split()) print(T * math.ceil(N / X))
[["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
34
oc, cap, time = map(int, input().split()) cnt = 0 while oc>0: oc -= cap cnt += time print(time)
oc, cap, time = map(int, input().split()) cnt = 0 while oc>0: oc -= cap cnt += time print(cnt)
[["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22]]
5
36
#include <algorithm> #include <cmath> //abs()かfabs()で少数絶対値 #include <cstdlib> //abs()で整数絶対値 #include <deque> #include <functional> //sort第三引数greater<型名>()で降順 #include <iomanip> //cout<<setw(数字) で空白による桁揃え #include <iostream> //cout<<right で右揃え #include <map> #include <queue> #include <string> #include <vector> u...
#include <algorithm> #include <cmath> //abs()かfabs()で少数絶対値 #include <cstdlib> //abs()で整数絶対値 #include <deque> #include <functional> //sort第三引数greater<型名>()で降順 #include <iomanip> //cout<<setw(数字) で空白による桁揃え #include <iostream> //cout<<right で右揃え #include <map> #include <queue> #include <string> #include <vector> u...
[["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["-", 0, 16, 31, 16, 12, 16, 31, 16, 17, 48], ["-", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 25], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22]]
1
93
n, x, t = map(int, input().split()) print((n // x + 0 if n % x == 0 else 1) * t)
n, x, t = map(int, input().split()) print((n // x + (0 if n % x == 0 else 1)) * t)
[["+", 0, 657, 31, 23, 0, 657, 12, 23, 0, 24], ["+", 0, 657, 31, 23, 0, 657, 12, 23, 0, 25]]
5
38
#include <bits/stdc++.h> using namespace std; int main() { float N, X, T, value; cin >> N >> X >> T; value = ceil((N - X) / X); cout << (value + 1) * T; }
#include <bits/stdc++.h> using namespace std; int main() { float N, X; int value, T; cin >> N >> X >> T; value = ceil((N - X) / X); cout << (value + 1) * T; }
[["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22]]
1
52
#include <bits/stdc++.h> using namespace std; #define INPUT freopen("input.txt", "r", stdin); #define ll long long #define ld long double int main() { INPUT; ld n, x, t; cin >> n >> x >> t; ld tm = ceil(n / x); ll ans = tm * t; cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; #define INPUT freopen("input.txt", "r", stdin); #define ll long long #define ld long double int main() { // INPUT; ld n, x, t; cin >> n >> x >> t; ld tm = ceil(n / x); ll ans = tm * t; cout << ans << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
61
import math N, X, T = map(int, input().split()) print(math.ceil((N/X))+T)
import math N, X, T = map(int, input().split()) print(math.ceil((N/X))*T)
[["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 48]]
5
35
import java.util.Scanner; public class Main { public static void main(String[] args) { // test Scanner sc = new Scanner(System.in); String s[] = sc.nextLine().split(" "); int N = Integer.parseInt(s[0]); int X = Integer.parseInt(s[1]); int T = Integer.parseInt(s[2]); int result = 0; ...
import java.util.Scanner; public class Main { public static void main(String[] args) { // test Scanner sc = new Scanner(System.in); String s[] = sc.nextLine().split(" "); int N = Integer.parseInt(s[0]); int X = Integer.parseInt(s[1]); int T = Integer.parseInt(s[2]); int result = 0; ...
[["-", 0, 57, 15, 15, 0, 16, 31, 16, 17, 85], ["+", 0, 57, 15, 15, 0, 16, 31, 16, 17, 109]]
3
142
n, x, t = list(map(int, input().split())) n = math.ceil(n/x) print(n*t)
import math n, x, t = list(map(int, input().split())) n = math.ceil(n/x) print(n*t)
[["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22]]
5
37
/*input 20 12 6 */ #include <bits/stdc++.h> using namespace std; #define ll long long //#define int long long int n, x, t; signed main() { ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0); cin >> n >> x >> t; cout << ceil((double)n / x) * t; return 0; }
/*input 1000 1 1000 */ #include <bits/stdc++.h> using namespace std; #define ll long long //#define int long long int n, x, t; signed main() { ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0); cin >> n >> x >> t; cout << (int)ceil((double)n / x) * t; return 0; }
[["+", 0, 1, 0, 16, 12, 16, 31, 74, 0, 24], ["+", 0, 16, 12, 16, 31, 74, 39, 77, 39, 40], ["+", 0, 1, 0, 16, 12, 16, 31, 74, 0, 25]]
1
70
#include <iostream> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; cout << (n / x) * t + (n % x ? 0 : t); return 0; }
#include <iostream> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; cout << (n / x) * t + (n % x ? t : 0); return 0; }
[["-", 0, 16, 12, 16, 12, 23, 0, 41, 64, 13], ["-", 0, 16, 12, 16, 12, 23, 0, 41, 0, 102], ["+", 0, 16, 12, 16, 12, 23, 0, 41, 0, 102], ["+", 0, 16, 12, 16, 12, 23, 0, 41, 75, 13]]
1
50
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { int X, T, N; cin >> N >> X >> T; int c = 1; if (N == X) { cout << T << endl; } else { while (1) { N -= X; c++; if (N <= X) break; } cout << c * T << endl; ...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { int X, T, N; cin >> N >> X >> T; int c = 1; if (N <= X) { cout << T << endl; } else { while (1) { N -= X; c++; if (N <= X) break; } cout << c * T << endl; ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
86
// Name : Rupa Dey // Date : 27 august 2020 // joi sri gour hori gobindo... // gobindo ja hobe vlor jonnoi hobe.. #include <bits/stdc++.h> #define ll long long #define d double #define ld long double #define vi vector<int> #define vul vector<ull> #define vl vector<ll> #define pb push_back #define si set<int> #define sl...
// Name : Rupa Dey // Date : 27 august 2020 // joi sri gour hori gobindo... // gobindo ja hobe vlor jonnoi hobe.. #include <bits/stdc++.h> #define ll long long #define d double #define ld long double #define vi vector<int> #define vul vector<ull> #define vl vector<ll> #define pb push_back #define si set<int> #define sl...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 13], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 48]]
1
182
#include <algorithm> #include <assert.h> #include <bitset> #include <deque> #include <functional> #include <iostream> #include <iterator> #include <limits> #include <list> #include <map> #include <math.h> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <stdio.h> #include ...
#include <algorithm> #include <assert.h> #include <bitset> #include <deque> #include <functional> #include <iostream> #include <iterator> #include <limits> #include <list> #include <map> #include <math.h> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <stdio.h> #include ...
[["+", 0, 16, 31, 16, 12, 16, 12, 23, 0, 24], ["+", 31, 16, 12, 16, 12, 23, 0, 74, 0, 24], ["+", 12, 16, 12, 23, 0, 74, 39, 77, 39, 40], ["+", 31, 16, 12, 16, 12, 23, 0, 74, 0, 25], ["+", 12, 23, 0, 74, 51, 2, 3, 4, 0, 25]]
1
127
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; 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 == 0) ...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; 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 == 0) ...
[["-", 75, 1, 0, 492, 3, 4, 0, 16, 12, 499], ["+", 75, 1, 0, 492, 3, 4, 0, 16, 12, 22]]
3
126
N,X,T = map(int,input().split()) import math print(math.ceil(N / X) * 6)
N,X,T = map(int,input().split()) import math print(math.ceil(N / X) * T)
[["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22]]
5
33
#include <algorithm> #include <cmath> #include <iostream> using namespace std; int N, X, T, res; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cin >> N >> X >> T; res = ceil(N / X) * T; cout << res; }
#include <algorithm> #include <cmath> #include <iostream> using namespace std; double N, X, T; int res; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cin >> N >> X >> T; res = ceil(N / X) * T; cout << res; }
[["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["-", 36, 36, 36, 36, 0, 30, 0, 43, 0, 21], ["+", 36, 36, 36, 36, 0, 30, 0, 43, 0, 35]]
1
62
#include <stdio.h> int main(void) { int N, X, T; scanf("%d,%d,%d", &N, &X, &T); if (N % X == 0) printf("%d", N / X * T); else printf("%d", (N / X + 1) * T); return 0; }
#include <stdio.h> int main(void) { int N, X, T; scanf("%d %d %d", &N, &X, &T); if (N % X == 0) printf("%d", (N / X) * T); else printf("%d", (N / X + 1) * T); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 2, 3, 4, 0, 16, 31, 23, 0, 24], ["+", 0, 2, 3, 4, 0, 16, 31, 23, 0, 25]]
0
74
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { int N, X, T; cin >> N >> X >> T; if (N % X == 0) { cout << N / X * T << endl; } else { cout << (N % X + 1) * T << endl; } }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { int N, X, T; cin >> N >> X >> T; if (N % X == 0) { cout << N / X * T << endl; } else { cout << (N / X + 1) * T << endl; } }
[["-", 12, 16, 31, 23, 0, 16, 31, 16, 17, 109], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 17, 85]]
1
72
N, X, T = map(int, input().split()) if N % T == 0: print((N // X) * T) else: print(((N // X) + 1) * T)
N, X, T = map(int, input().split()) if N % X == 0: print((N // X) * T) else: print(((N // X) + 1) * T)
[["-", 0, 656, 0, 57, 15, 666, 0, 657, 12, 22], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 12, 22]]
5
51
#include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <cmath> #include <complex> #include <cstdlib> #include <cstring> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <list> #include <map> #include <queue> #include <random> #inc...
#include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <cmath> #include <complex> #include <cstdlib> #include <cstring> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <list> #include <map> #include <queue> #include <random> #inc...
[["+", 31, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 17, 33]]
1
312
n,x,t=list(map(int,input().split())) a=n%x b=n//x if a==0: c=b*t else : c=(b+1)*t print(C)
n,x,t=list(map(int,input().split())) a=n%x b=n//x if a==0: c=b*t else: c=(b+1)*t print(c)
[["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22]]
5
56
function main(input) { let list = input.split(" "); let n = parseInt(list[0]); //作る数 let x = parseInt(list[1]); //一度に作れる数 let t = parseInt(list[2]); // time let answwer = (Math.floor(n / x) + 1) * t; console.log(answer); } main(require("fs").readFileSync("/dev/stdin", "utf8"));
function main(input) { let list = input.split(" "); let n = parseInt(list[0]); //作る数 let x = parseInt(list[1]); //一度に作れる数 let t = parseInt(list[2]); // time let answer = Math.ceil(n / x) * t; console.log(answer); } main(require("fs").readFileSync("/dev/stdin", "utf8"));
[["-", 0, 435, 8, 556, 0, 570, 0, 200, 141, 22], ["+", 0, 435, 8, 556, 0, 570, 0, 200, 141, 22], ["-", 0, 570, 0, 200, 51, 16, 31, 23, 0, 24], ["-", 31, 23, 0, 16, 31, 2, 63, 558, 559, 560], ["+", 0, 200, 51, 16, 31, 2, 63, 558, 559, 560], ["-", 31, 23, 0, 16, 31, 2, 3, 3, 0, 25], ["-", 0, 200, 51, 16, 31, 23, 0, 16, 1...
2
101
N,X,T= map(int, input().split()) if N%X==0: print((N/X)*T) else: print(((N/X)+1)*T)
N,X,T= map(int, input().split()) if N%X==0: print((N//X)*T) else: print(((N//X)+1)*T)
[["-", 3, 4, 0, 657, 31, 23, 0, 657, 17, 85], ["+", 3, 4, 0, 657, 31, 23, 0, 657, 17, 676], ["-", 31, 23, 0, 657, 31, 23, 0, 657, 17, 85], ["+", 31, 23, 0, 657, 31, 23, 0, 657, 17, 676]]
5
51
#include <iostream> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; int a = n / x; int b = n % x; if (b == 0) cout << (a + 1) * t; else cout << a * t; }
#include <iostream> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; int a = n / x; int b = n % x; if (b != 0) cout << (a + 1) * t; else cout << a * t; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79]]
1
64
n,x,t = map(int,input().split()) if n % x == 0: print(n / x * t) else: print(n / x * t + 1)
n,x,t = map(int,input().split()) if n % x == 0: print(n // x * t) else: print(n // x * t + t)
[["-", 0, 652, 3, 4, 0, 657, 31, 657, 17, 85], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 676], ["-", 3, 4, 0, 657, 31, 657, 31, 657, 17, 85], ["+", 3, 4, 0, 657, 31, 657, 31, 657, 17, 676], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22]]
5
45
N,X,T=map(int,input().split()) if N%X ==0: print(N*T//x) else: print(((N//X)+1)*T)
N,X,T=map(int,input().split()) if N%X ==0: print(N*T//X) else: print(((N//X)+1)*T)
[["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22]]
5
49
N,X,T=map(int,input().split()) a= N/X b = int(a) if a-b > 0: a = b+1 res = b*T print(res)
N,X,T=map(int,input().split()) a= N/X b = int(a) if a-b > 0: b = b+1 res = b*T print(res)
[["-", 0, 57, 64, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 31, 22]]
5
50
#include <bits/stdc++.h> using namespace std; using ll = long long; using ull = unsigned long long; using pii = pair<int, int>; #define INF LONG_MAX #define MOD 1000000007 #define rng(a) a.begin(), a.end() #define rrng(a) a.end(), a.begin() #define endl "\n" int main() { ios::sync_with_stdio(false); cin.tie(0); ...
#include <bits/stdc++.h> using namespace std; using ll = long long; using ull = unsigned long long; using pii = pair<int, int>; #define INF LONG_MAX #define MOD 1000000007 #define rng(a) a.begin(), a.end() #define rrng(a) a.end(), a.begin() #define endl "\n" int main() { ios::sync_with_stdio(false); cin.tie(0); ...
[["+", 31, 16, 12, 16, 31, 16, 31, 23, 0, 24], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 12, 13], ["+", 31, 16, 12, 16, 31, 16, 31, 23, 0, 25]]
1
98
//#pragma GCC target("avx2") #pragma GCC optimize("O3") //#pragma GCC optimize("unroll-loops") #include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include <prettyprint.hpp> #define debug(...) cerr << "[" << #__VA_ARGS__ << "]: ", d_err(__VA_ARGS__); #else #define debug(...) 83; #endif void d_err() { cerr <...
//#pragma GCC target("avx2") #pragma GCC optimize("O3") //#pragma GCC optimize("unroll-loops") #include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include <prettyprint.hpp> #define debug(...) cerr << "[" << #__VA_ARGS__ << "]: ", d_err(__VA_ARGS__); #else #define debug(...) 83; #endif void d_err() { cerr <...
[["-", 0, 11, 31, 69, 28, 2, 3, 4, 0, 22], ["+", 0, 11, 31, 69, 28, 2, 3, 4, 0, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22]]
1
664
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int n, m; cin >> n >> m; vector<int> dist(m); set<int> st; multiset<int> all; for (int i = 0; i < m; i++) { st.insert(i); all.insert(0); } const int inf = (int)2e9; for (int i = 0; i < n; ...
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int n, m; cin >> n >> m; vector<int> dist(m); set<int> st; multiset<int> all; for (int i = 0; i < m; i++) { st.insert(i); all.insert(0); } const int inf = (int)1e9; for (int i = 0; i < n; ...
[["-", 8, 9, 0, 43, 49, 50, 51, 74, 51, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 74, 51, 13], ["-", 0, 52, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 17, 19]]
1
297
#include <bits/stdc++.h> #define PI 3.141592653589793238462 using namespace std; typedef long long ll; typedef long double db; int a[200005], d[200005], b[200005]; int main() { int n, m; cin >> n >> m; for (int i = 1; i <= n; i++) { cin >> a[i] >> b[i]; } set<int> s; multiset<int> dis; for (int i = 1;...
#include <bits/stdc++.h> #define PI 3.141592653589793238462 using namespace std; typedef long long ll; typedef long double db; int a[200005], d[200005], b[200005]; int main() { int n, m; cin >> n >> m; for (int i = 1; i <= n; i++) { cin >> a[i] >> b[i]; } set<int> s; multiset<int> dis; for (int i = 1;...
[["+", 15, 339, 51, 16, 12, 16, 12, 16, 17, 72], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 12, 13]]
1
350
#include <bits/stdc++.h> #define fi first #define se second #define rep(i, n) for (int i = 0; i < (n); ++i) #define rrep(i, n) for (int i = 1; i <= (n); ++i) #define drep(i, n) for (int i = (n)-1; i >= 0; --i) #define srep(i, s, t) for (int i = s; i < t; ++i) #define rng(a) a.begin(), a.end() #define rrng(a) a.rbegin()...
#include <bits/stdc++.h> #define fi first #define se second #define rep(i, n) for (int i = 0; i < (n); ++i) #define rrep(i, n) for (int i = 1; i <= (n); ++i) #define drep(i, n) for (int i = (n)-1; i >= 0; --i) #define srep(i, s, t) for (int i = s; i < t; ++i) #define rng(a) a.begin(), a.end() #define rrng(a) a.rbegin()...
[["+", 0, 43, 49, 50, 51, 4, 0, 16, 17, 72], ["+", 0, 43, 49, 50, 51, 4, 0, 16, 12, 13], ["+", 0, 57, 64, 1, 0, 11, 12, 91, 17, 33], ["-", 0, 57, 64, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 2, 63, 22]]
1
1,207
#include <iostream> #include <set> #include <vector> constexpr int INF = 1 << 30; void solve() { int h, w; std::cin >> h >> w; std::set<int> s; for (int x = 0; x < w; ++x) s.insert(x); std::vector<int> ds(w, 0); std::multiset<int> dss; for (auto d : ds) dss.insert(d); for (int i = 1; i <= h...
#include <iostream> #include <set> #include <vector> constexpr int INF = 1 << 30; void solve() { int h, w; std::cin >> h >> w; std::set<int> s; for (int x = 0; x < w; ++x) s.insert(x); std::vector<int> ds(w, 0); std::multiset<int> dss; for (auto d : ds) dss.insert(d); for (int i = 1; i <= h...
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]]
1
334
#include <algorithm> #include <bitset> #include <chrono> #include <climits> #include <cmath> #include <complex> #include <cstdio> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <list> #include <map> #include <numeric> #inclu...
#include <algorithm> #include <bitset> #include <chrono> #include <climits> #include <cmath> #include <complex> #include <cstdio> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <list> #include <map> #include <numeric> #inclu...
[["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59]]
1
1,190
#include <bits/stdc++.h> // ios::sync_with_stdio(false);cin.tie(0);cout.tie(0); // clock_t start=clock();clock_t // end=clock();cout<<(double)(end-start)/CLOCKS_PER_SEC<<endl; using namespace std; typedef long long ll; typedef unsigned long long ull; typedef unsigned int ui; typedef pair<int, int> pii; typedef pair<pii...
#include <bits/stdc++.h> // ios::sync_with_stdio(false);cin.tie(0);cout.tie(0); // clock_t start=clock();clock_t // end=clock();cout<<(double)(end-start)/CLOCKS_PER_SEC<<endl; using namespace std; typedef long long ll; typedef unsigned long long ull; typedef unsigned int ui; typedef pair<int, int> pii; typedef pair<pii...
[["-", 49, 50, 51, 2, 3, 4, 0, 16, 12, 13], ["+", 49, 50, 51, 2, 3, 4, 0, 16, 12, 13], ["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["-", 0, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
1,546
#include <bits/stdc++.h> using namespace std; int main() { int N, X, T; cin >> N >> X >> T; int ans = (N / X + 1) * T; cout << ans << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int N, X, T; cin >> N >> X >> T; int ans = (N + X - 1) / X * T; cout << ans << endl; return 0; }
[["-", 51, 16, 31, 23, 0, 16, 31, 16, 17, 85], ["-", 51, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 51, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 43, 49, 50, 51, 16, 31, 16, 17, 85], ["+", 0, 43, 49, 50, 51, 16, 31, 16, 12, 22]]
1
49
#include <stdio.h> int main() { int x, t, n; scanf("%d %d %d", &n, &x, &t); printf("%d", (n / x) * t + (n % x) > 0 ? t : 0); }
#include <stdio.h> int main() { int x, t, n; scanf("%d %d %d", &n, &x, &t); printf("%d", (n / x) * t + ((n % x) > 0 ? t : 0)); }
[["+", 12, 23, 0, 41, 15, 16, 31, 23, 0, 24], ["+", 0, 2, 3, 4, 0, 16, 12, 23, 0, 25]]
0
58
#include <bits/stdc++.h> using namespace std; #define debug(x) cout << (#x) << " is " << (x) << endl int main() { int n, x, t; cin >> n >> x >> t; cout << ceil(n * 1.0 / (x * 1.0)) * t; }
#include <bits/stdc++.h> using namespace std; #define debug(x) cout << (#x) << " is " << (x) << endl int main() { int n, x, t; cin >> n >> x >> t; cout << (int)(ceil(n * 1.0 / (x * 1.0)) * t); }
[["+", 8, 9, 0, 1, 0, 16, 12, 74, 0, 24], ["+", 0, 1, 0, 16, 12, 74, 39, 77, 39, 40], ["+", 8, 9, 0, 1, 0, 16, 12, 74, 0, 25], ["+", 0, 1, 0, 16, 12, 74, 51, 23, 0, 24], ["+", 0, 1, 0, 16, 12, 74, 51, 23, 0, 25]]
1
50
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < (n); i++) #define RREP(i, s, n) for (int i = s; i < (n); i++) #define ALL(a) a.begin(), a.end() #define RALL(a) a.rbegin(), a.rend() template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return 1; } return 0; } template <class ...
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < (n); i++) #define RREP(i, s, n) for (int i = s; i < (n); i++) #define ALL(a) a.begin(), a.end() #define RALL(a) a.rbegin(), a.rend() template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return 1; } return 0; } template <class ...
[["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 24], ["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 25]]
1
222
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using ull = unsigned long long; using uint = unsigned; using pcc = pair<char, char>; using pii = pair<int, int>; using pll = pair<ll, ll>; using pdd = pair<double, double>; using tuplis = array<ll, 3>; template <class T> using p...
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using ull = unsigned long long; using uint = unsigned; using pcc = pair<char, char>; using pii = pair<int, int>; using pll = pair<ll, ll>; using pdd = pair<double, double>; using tuplis = array<ll, 3>; template <class T> using p...
[["-", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 2, 63, 22], ["+", 0, 2, 3, 4, 0, 2, 3, 4, 0, 24], ["+", 0, 2, 3, 4, 0, 16, 31, 23, 0, 24], ["+", 0, 2, 3, 4, 0, 16, 31, 23, 0, 25], ["+", 0, 2, 3, 4, 0, 2, 3, 4, 0, 25]]
1
4,029