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
#include <bits/stdc++.h> using namespace std; int main() { long long t, n, i, j, k, x; cin >> n >> x >> t; cout << t * (ceil((double)n / (double)x)) << '\n'; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long t, n, i, j, k, x; cin >> n >> x >> t; cout << (long long)(t * (ceil((double)n / (double)x))) << '\n'; return 0; }
[["+", 0, 1, 0, 16, 31, 16, 12, 74, 0, 24], ["+", 31, 16, 12, 74, 39, 77, 39, 86, 0, 96], ["+", 0, 1, 0, 16, 31, 16, 12, 74, 0, 25], ["+", 0, 16, 31, 16, 12, 74, 51, 23, 0, 24], ["+", 0, 16, 12, 23, 0, 2, 3, 4, 0, 25]]
1
60
#include <bits/stdc++.h> #include <cmath> using namespace std; #define coutv(v) \ for (int i = 0; i < (v).size(); ++i) \ cout << v[i] << ' '; \ cout << end...
#include <bits/stdc++.h> #include <cmath> using namespace std; #define coutv(v) \ for (int i = 0; i < (v).size(); ++i) \ cout << v[i] << ' '; \ cout << end...
[["+", 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
93
#include <bits/stdc++.h> using namespace std; int main() { int n, x, y; cin >> n >> x >> y; int time = 0; while (n < x) { n++; time += y; } cout << time; }
#include <bits/stdc++.h> using namespace std; int main() { int n, x, y; cin >> n >> x >> y; int time = 0; while (n > 0) { n -= x; time += y; } cout << time; }
[["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 12, 22], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 12, 13], ["-", 0, 52, 8, 9, 0, 1, 0, 27, 17, 29], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 17, 110], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 12, 22]]
1
51
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, 652, 3, 4, 0, 657, 31, 23, 0, 24], ["-", 0, 657, 31, 652, 3, 4, 0, 657, 17, 676], ["+", 31, 23, 0, 652, 3, 4, 0, 657, 17, 85], ["+", 0, 657, 31, 23, 0, 652, 3, 4, 0, 25]]
5
33
#include <bits/stdc++.h> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; if (n % x > 0) cout << n / x + 1 << endl; else { cout << n / x << 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 + 1) * t << endl; else { cout << n / x * t << endl; } }
[["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 25], ["+", 64, 1, 0, 16, 31, 16, 12, 16, 17, 48], ["+", 64, 1, 0, 16, 31, 16, 12, 16, 12, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22]]
1
56
#include <bits/stdc++.h> using namespace std; int main() { int N, X, T; cin >> N >> X >> T; if (N % X == 0) { cout << N * (N / X) << endl; } else { cout << N * ((N / X) + 1) << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { 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; }
[["-", 0, 1, 0, 16, 31, 16, 12, 16, 31, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 31, 22]]
1
71
#include <iostream> using namespace std; int main() { long n, x, t; cin >> n >> x >> t; cout << (n + x - 1) * t / x; return 0; }
#include <iostream> using namespace std; int main() { long n, x, t; cin >> n >> x >> t; cout << (n + x - 1) / x * t; return 0; }
[["-", 0, 1, 0, 16, 12, 16, 31, 16, 17, 48], ["-", 0, 1, 0, 16, 12, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 17, 48], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 12, 22]]
1
44
import java.util.*; public class Main { public static void main() { Scanner s = new Scanner(System.in); int n = s.nextInt(); int x = s.nextInt(); int t = s.nextInt(); int count = n / x; if (n % x != 0) count += 1; System.out.println(count * t); } }
import java.util.*; 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 count = n / x; if (n % x != 0) count += 1; System.out.println(count * t); } }
[["+", 0, 195, 54, 495, 0, 496, 39, 224, 468, 78], ["+", 54, 495, 0, 496, 39, 224, 497, 497, 0, 70], ["+", 54, 495, 0, 496, 39, 224, 497, 497, 0, 73], ["+", 8, 498, 0, 195, 54, 495, 0, 496, 141, 22]]
3
88
#include <bits/stdc++.h> using namespace std; int main() { long long int n, x, t, p, f; cin >> n >> x >> t; f = ceil(n / x); p = f * t; cout << p << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long int n, x, t, p, f; cin >> n >> x >> t; f = ceil((long double)n / x); p = f * t; cout << p << endl; return 0; }
[["+", 12, 2, 3, 4, 0, 16, 31, 74, 0, 24], ["+", 0, 16, 31, 74, 39, 77, 39, 86, 0, 96], ["+", 0, 16, 31, 74, 39, 77, 39, 86, 39, 40], ["+", 12, 2, 3, 4, 0, 16, 31, 74, 0, 25]]
1
57
n,x,t=map(int,input().split()) y=ceil(n/x) print(y*t)
from math import ceil n,x,t=map(int,input().split()) y=ceil(n/x) print(y*t)
[["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 314], ["+", 36, 36, 0, 656, 0, 686, 687, 673, 0, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 487], ["+", 36, 36, 0, 656, 0, 686, 141, 673, 0, 22]]
5
32
#include <bits/stdc++.h> using namespace std; int main() { int N, X, T; cin >> N >> X >> T; int a = N / X; if (N % T == 0) { cout << T * a << endl; } else { cout << T * (a + 1) << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int N, X, T; cin >> N >> X >> T; int a = N / X; if (N % X == 0) { cout << T * a << endl; } else { cout << T * (a + 1) << endl; } }
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]]
1
67
// THIS IS THE AATMANIRBHAR SOLUTION I FOUND..!!!!! #include <bits/stdc++.h> using namespace std; // #define int double #define int long long #define pb push_back #define mp make_pair #define F first #define S second #define P push #define vvi vector<vector<int>> #define vi vector<int> #define vf vector<float> #define...
// THIS IS THE AATMANIRBHAR SOLUTION I FOUND..!!!!! #include <bits/stdc++.h> using namespace std; // #define int double #define int long long #define pb push_back #define mp make_pair #define F first #define S second #define P push #define vvi vector<vector<int>> #define vi vector<int> #define vf vector<float> #define...
[["-", 0, 16, 12, 16, 31, 23, 0, 16, 17, 85], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 12, 13], ["+", 0, 1, 0, 16, 12, 16, 31, 16, 17, 85], ["+", 0, 1, 0, 16, 12, 16, 31, 16, 12, 22]]
1
164
#include <bits/stdc++.h> using namespace std; #define ll long long #define endl "\n" #define fast \ ios_base ::sync_with_stdio(false); \ cin.tie(NULL); ...
#include <bits/stdc++.h> using namespace std; #define ll long long #define endl "\n" #define fast \ ios_base ::sync_with_stdio(false); \ cin.tie(NULL); ...
[["+", 0, 1, 0, 16, 12, 74, 51, 23, 0, 24], ["+", 0, 1, 0, 16, 12, 74, 51, 23, 0, 25]]
1
56
#include <cmath> #include <iostream> int main() { int N, X, T; std::cin >> N >> X >> T; int times = static_cast<int>(std::ceil(N / X)); int ans = times * T; std::cout << ans << std::endl; return 0; }
#include <cmath> #include <iostream> int main() { int N, X, T; std::cin >> N >> X >> T; int times = static_cast<int>(std::ceil((double)N / X)); int ans = times * T; std::cout << ans << std::endl; return 0; }
[["+", 0, 2, 3, 4, 0, 16, 31, 74, 0, 24], ["+", 3, 4, 0, 16, 31, 74, 39, 77, 39, 40], ["+", 0, 2, 3, 4, 0, 16, 31, 74, 0, 25]]
1
65
#include <bits/stdc++.h> typedef long long int ll; typedef long long unsigned int llu; #define pb push_back #define PI 3.1415926535897932384626433832795 #define MOD 1000000007 #define F first #define S second #define ALL(a) (a).begin(), (a).end() #define YUGEN ...
#include <bits/stdc++.h> typedef long long int ll; typedef long long unsigned int llu; #define pb push_back #define PI 3.1415926535897932384626433832795 #define MOD 1000000007 #define F first #define S second #define ALL(a) (a).begin(), (a).end() #define YUGEN ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 67], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
147
# AtCoder Beginner Contest 176 # A - Takoyaki import math N,X,T=map(int,input().split()) pritn(math.ceil(N/X)*T)
# AtCoder Beginner Contest 176 # A - Takoyaki import math N,X,T=map(int,input().split()) print(math.ceil(N/X)*T)
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22]]
5
35
import java.util.*; class Main { public static void main(String[] args) { Scanner scn = new Scanner(System.in); long n = scn.nextLong(); long x = scn.nextLong(); long t = scn.nextLong(); System.out.println((n - x + 1) / x * t); } }
import java.util.*; class Main { public static void main(String[] args) { Scanner scn = new Scanner(System.in); long n = scn.nextLong(); long x = scn.nextLong(); long t = scn.nextLong(); System.out.println((n + x - 1) / x * t); } }
[["-", 31, 16, 31, 23, 0, 16, 31, 16, 17, 33], ["-", 31, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 17, 33]]
3
80
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll n, x, t; cin >> n >> x >> t; if (n % x == 0) cout << ((n / x) + 1) * t << endl; else cout << (n / x) * t << endl; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll n, x, t; cin >> n >> x >> t; if (n % x == 0) cout << (n / x) * t << endl; else cout << (n / x) * t + t << endl; }
[["-", 12, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["-", 12, 16, 31, 23, 0, 16, 31, 23, 0, 25], ["-", 31, 16, 12, 16, 31, 23, 0, 16, 17, 72], ["-", 31, 16, 12, 16, 31, 23, 0, 16, 12, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 72]]
1
69
#include <bits/stdc++.h> using namespace std; #define imp() \ ios_base::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0) #define pb push_b...
#include <bits/stdc++.h> using namespace std; #define imp() \ ios_base::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0) #define pb push_b...
[["-", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
96
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, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 48]]
5
47
N, X, T = map(int, input().split()) if N // X: print((N // X + 1) * T) else: print(N // X * T)
N, X, T = map(int, input().split()) if N % X: print((N // X + 1) * T) else: print(N // X * T)
[["-", 36, 36, 0, 656, 0, 57, 15, 657, 17, 676], ["+", 36, 36, 0, 656, 0, 57, 15, 657, 17, 109]]
5
45
array = list(map(int, input().split())) if array[0] & array[1] > 0: print((array[0] // array[1] + 1) * array[2]) else: print((array[0] // array[1]) * array[2])
array = list(map(int, input().split())) if array[0] % array[1] > 0: print((array[0] // array[1] + 1) * array[2]) else: print((array[0] // array[1]) * array[2])
[["-", 0, 656, 0, 57, 15, 666, 0, 657, 17, 67], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 17, 109]]
5
72
N, X, T = map(int,input().split()) print(-(-N // x) * t)
N, X, T = map(int,input().split()) print(-(-N // X) * T)
[["-", 0, 657, 31, 664, 28, 23, 0, 657, 12, 22], ["+", 0, 657, 31, 664, 28, 23, 0, 657, 12, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22]]
5
30
import math n, x, t = [int(i) for i in input().split()] new_t = t * math.ceil(20/12) print(new_t)
import math n, x, t = [int(i) for i in input().split()] new_t = t * math.ceil(n/x) print(new_t)
[["-", 12, 657, 12, 652, 3, 4, 0, 657, 31, 612], ["+", 12, 657, 12, 652, 3, 4, 0, 657, 31, 22], ["-", 12, 657, 12, 652, 3, 4, 0, 657, 12, 612], ["+", 12, 657, 12, 652, 3, 4, 0, 657, 12, 22]]
5
40
n,x,t=map(int,input().split()) m=t a=x while(x<=n): x+=a t+=m print(t)
n,x,t=map(int,input().split()) m=t a=x while(x<n): x+=a t+=m print(t)
[["-", 0, 656, 0, 52, 15, 23, 0, 666, 667, 19], ["+", 0, 656, 0, 52, 15, 23, 0, 666, 667, 18]]
5
41
n,x,t = map(int, input().split()) print(t * (n // x + 1) if n % x == 0 else t * (n // x))
n,x,t = map(int, input().split()) print(t * (n // x + 1) if n % x != 0 else t * (n // x))
[["-", 0, 652, 3, 4, 0, 41, 0, 666, 667, 60], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 667, 79]]
5
44
#include <bits/stdc++.h> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; int r = n; int m = t; for (;;) { r = r - x; if (r == 0) break; else if (r < x) { m = m + t; break; } m = m + t; } cout << m << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; int r = n; int m = t; for (;;) { r = r - x; if (r <= 0) break; else if (r < x) { m = m + t; break; } m = m + t; } cout << m << endl; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
90
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; long double pi = 2 * acos(0.0); const ll mod = 1e9 + 7; void solve() { ll n, x, t; cin >> n >> x >> t; cout << ceil((ld)n / x) * t; } int main() { ios_base ::sync_with_stdio(false); cin.tie(nullptr); ll t = 1; //...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; long double pi = 2 * acos(0.0); const ll mod = 1e9 + 7; void solve() { ll n, x, t; cin >> n >> x >> t; cout << (ll)ceil((ld)n / x) * t; } int main() { ios_base ::sync_with_stdio(false); cin.tie(nullptr); ll t = 1; ...
[["+", 0, 1, 0, 16, 12, 16, 31, 74, 0, 24], ["+", 0, 16, 12, 16, 31, 74, 39, 77, 39, 78], ["+", 0, 1, 0, 16, 12, 16, 31, 74, 0, 25]]
1
110
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; cout << (b / a + ((a % b) ? 1 : 0)) * c << "\n"; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; cout << (a / b + ((a % b) ? 1 : 0)) * c << "\n"; }
[["-", 12, 16, 31, 23, 0, 16, 31, 16, 31, 22], ["-", 12, 16, 31, 23, 0, 16, 31, 16, 17, 85], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 17, 85], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 12, 22]]
1
53
x = list(map(lambda i: int(i), input().split(' '))) all = x[0] available = x[1] time = x[2] result = (all/available) * time if all%available != 0: result += time print(int(result))
x = list(map(lambda i: int(i), input().split(' '))) all = x[0] available = x[1] time = x[2] result = int(all/available) * time #print(result) if all%available != 0: result += time print(int(result))
[["+", 0, 1, 0, 662, 12, 657, 31, 652, 63, 22]]
5
70
N, X, T = map(int, input().split()) if N % X == 0: print(N*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, 652, 3, 4, 0, 657, 31, 657, 17, 676], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 12, 22]]
5
45
#include <stdio.h> #include <stdlib.h> int main() { int N, X, T; int time = 0; scanf("%d%d%d", &N, &X, &T); for (int i = 0; N >= 0; i++) { N -= X; time += T; } printf("%d", time); }
#include <stdio.h> #include <stdlib.h> int main() { int N, X, T; int time = 0; scanf("%d%d%d", &N, &X, &T); for (int i = 0; N > 0; i++) { N -= X; time += T; } printf("%d", time); }
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 20], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 47]]
0
71
N,X,T=map(int,input().split()) a=N//X if N%T==0: print(a*T) else: print(a*T+T)
N,X,T=map(int,input().split()) a=N//X if N%X==0: print(a*T) else: print(a*T+T)
[["-", 0, 656, 0, 57, 15, 666, 0, 657, 12, 22], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 12, 22]]
5
46
#include <algorithm> #include <fstream> #include <iostream> #include <vector> using namespace std; int main(int argc, const char *argv[]) { // input from txt (提出時にこの箇所は削除すること) std::ifstream in("input.txt"); std::cin.rdbuf(in.rdbuf()); // cinを高速にするためのおまじない cin.tie(0); ios::sync_with_stdio(false); /////...
#include <algorithm> #include <fstream> #include <iostream> #include <vector> using namespace std; int main(int argc, const char *argv[]) { // input from txt (提出時にこの箇所は削除すること) std::ifstream in("input.txt"); std::cin.rdbuf(in.rdbuf()); // cinを高速にするためのおまじない cin.tie(0); ios::sync_with_stdio(false); /////...
[["-", 0, 1, 0, 16, 31, 16, 12, 16, 31, 22], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 85], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22]]
1
129
#include <stdio.h> int main() { int i = 0; int a[2]; int q = 0; int output = 0; for (i = 0; i < 3; i++) { if (scanf("%d", &a[i]) == 1) { } else { } } while (a[0] > a[1]) { a[0] = a[0] - a[1]; q++; } if (a[0] != 0) { output = (q + 1) * a[2]; } if (a[0] = 0) { output...
#include <stdio.h> int main() { int i; int a[3]; int q = 0; int output; for (i = 0; i < 3; i++) { if (scanf("%d", &a[i]) == 1) { } else { } } while (a[0] > a[1]) { a[0] = a[0] - a[1]; q++; } if (a[0] != 0) { output = (q + 1) * a[2]; } if (a[0] = 0) { output = q * a...
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13]]
1
155
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int N, x, t; N = s.nextInt(); x = s.nextInt(); t = s.nextInt(); int count = 0; while (N < 0) { N = N - x; count++; } int result = count * t; ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int N, x, t; N = s.nextInt(); x = s.nextInt(); t = s.nextInt(); int count = 0; while (N > 0) { N = N - x; count++; } int result = count * t; ...
[["-", 8, 196, 0, 52, 15, 15, 0, 16, 17, 18], ["+", 8, 196, 0, 52, 15, 15, 0, 16, 17, 47]]
3
104
//#pragma GCC optimize(2) //#pragma GCC optimize("Ofast,unroll-loops") #include <bits/stdc++.h> using namespace std; //#define int long long #define rep(i, beg, end) for (int i = (beg); i < (end); i++) #define rrep(i, beg, end) for (int i = (beg); i >= (end); i--) #define sp(i) setprecision(i) << fixed typedef long lo...
//#pragma GCC optimize(2) //#pragma GCC optimize("Ofast,unroll-loops") #include <bits/stdc++.h> using namespace std; //#define int long long #define rep(i, beg, end) for (int i = (beg); i < (end); i++) #define rrep(i, beg, end) for (int i = (beg); i >= (end); i--) #define sp(i) setprecision(i) << fixed typedef long lo...
[["+", 0, 16, 31, 16, 12, 16, 31, 74, 0, 24], ["+", 31, 16, 12, 16, 31, 74, 39, 77, 39, 40], ["+", 0, 16, 31, 16, 12, 16, 31, 74, 0, 25]]
1
678
n, x, t = map(int, input().split()) import math print(t*math.ceil(int(input())/x))
n, x, t = map(int, input().split()) import math print(t*math.ceil(n/x))
[["-", 12, 652, 3, 4, 0, 657, 31, 652, 63, 22], ["-", 3, 4, 0, 657, 31, 652, 3, 4, 0, 24], ["-", 0, 657, 31, 652, 3, 4, 0, 652, 63, 22], ["-", 31, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 31, 652, 3, 4, 0, 652, 3, 4, 0, 25], ["-", 3, 4, 0, 657, 31, 652, 3, 4, 0, 25], ["+", 0, 657, 12, 652, 3, 4, 0, 657, 31, 22]]
5
38
#include <iostream> using namespace std; float n, x, t, tmp; int main() { cin >> n >> x >> t; tmp = n / x; if (tmp > (int)tmp) tmp = (int)tmp + 1; tmp *= t; cout << tmp; return 0; }
#include <iostream> using namespace std; double n, x, t, tmp; int main() { cin >> n >> x >> t; tmp = n / x; if (tmp > (int)tmp) tmp = (int)tmp + 1; tmp *= t; cout << (int)tmp; return 0; }
[["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 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]]
1
64
#include <iostream> using namespace std; int main() { int n, x, y; cin >> n >> x >> y; if (n % y == 0) { cout << (n / x) * y << endl; } else if (n % y != 0) { cout << ((n / x) + 1) * y << endl; } }
#include <iostream> using namespace std; int main() { int n, x, y; cin >> n >> x >> y; if (n % x == 0) { cout << (n / x) * y << endl; } else if (n % x != 0) { cout << ((n / x) + 1) * y << endl; } }
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]]
1
76
n, x, t = map(int,input().split()) if n%x==0: print((n//x)*t) else: n = n//2 +1 print(n*t)
n, x, t = map(int,input().split()) if n%x==0: print((n//x)*t) else: n = n//x +1 print(n*t)
[["-", 0, 1, 0, 662, 12, 657, 31, 657, 12, 612], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 12, 22]]
5
50
package main import( "fmt" ) func main() { var x, y, z int fmt.Scanf("%d %d %d", x, y, z) sum := (x/y) * z if x%y > 0 { sum += z } fmt.Println(sum) return }
package main import( "fmt" ) func main() { var x, y, z int fmt.Scanf("%d %d %d", &x, &y, &z) sum := (x/y) * z if x%y > 0 { sum += z } fmt.Println(sum) return }
[["+", 0, 1, 0, 2, 3, 4, 0, 91, 17, 67]]
7
72
// CODING ME ACCHHA KARNEKA HAI TERKO TO BAS PRACTICE KARTE REH #include <bits/stdc++.h> #define pragma using namespace std; #define ll long long #define ld long double #define pb push_back #define pf push_front #define aisort sort(a, a + n) #define adsort sort(a, a + n, greater<ll>()) typedef pair<ll, ll> pii; typede...
// CODING ME ACCHHA KARNEKA HAI TERKO TO BAS PRACTICE KARTE REH #include <bits/stdc++.h> #define pragma using namespace std; #define ll long long #define ld long double #define pb push_back #define pf push_front #define aisort sort(a, a + n) #define adsort sort(a, a + n, greater<ll>()) typedef pair<ll, ll> pii; typede...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]]
1
404
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define pa pair<int, int> #define pal pair<long long, long long> #define pali pair<long long, int> #define pad pair<double, double> #define pb push_back #define mp make_pair #define COUT(v) ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define pa pair<int, int> #define pal pair<long long, long long> #define pali pair<long long, int> #define pad pair<double, double> #define pb push_back #define mp make_pair #define COUT(v) ...
[["-", 31, 23, 0, 16, 31, 16, 31, 16, 31, 22], ["-", 31, 23, 0, 16, 31, 16, 31, 16, 17, 48], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22]]
1
1,129
#include <stdio.h> int main() { int n, x, t; if (scanf("%d", &n) == 1) if (scanf("%d", &x) == 1) if (scanf("%d", &t) == 1) printf("%d\n", (n % x == 1) ? t * (n / x) : t * ((n / x) + 1)); return 0; }
#include <stdio.h> int main() { int n, x, t; if (scanf("%d", &n) == 1) if (scanf("%d", &x) == 1) if (scanf("%d", &t) == 1) printf("%d\n", (n % x == 0) ? t * (n / x) : t * ((n / x) + 1)); return 0; }
[["-", 3, 4, 0, 41, 15, 23, 0, 16, 12, 13], ["+", 3, 4, 0, 41, 15, 23, 0, 16, 12, 13]]
1
96
#include <stdio.h> int main() { int n, x, t, tmp; tmp = scanf("%d", &n); tmp = scanf("%d", &x); tmp = scanf("%d", &t); printf("%d\n", (n % x) ? t * (n / x) : t * ((n / x) + 1)); return 0; }
#include <stdio.h> int main() { int n, x, t, tmp; tmp = scanf("%d", &n); tmp = scanf("%d", &x); tmp = scanf("%d", &t); printf("%d\n", (n % x == 0) ? t * (n / x) : t * ((n / x) + 1)); return 0; }
[["+", 3, 4, 0, 41, 15, 23, 0, 16, 17, 60], ["+", 3, 4, 0, 41, 15, 23, 0, 16, 12, 13]]
1
90
n, x, t = map(int, input().split()) if n % t == 0: ans = (n // x) * t else: ans = (n // x + 1) * t print(ans)
n, x, t = map(int, input().split()) if n % x == 0: ans = (n // x) * t else: ans = (n // x + 1) * t print(ans)
[["-", 0, 656, 0, 57, 15, 666, 0, 657, 12, 22], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 12, 22]]
5
51
N,X,T=map(int,input().split()) if N//X==0: t=(N//X)*T else: t=((N//X)+1)*T print(t)
N,X,T=map(int,input().split()) if N%X==0: t=(N//X)*T else: t=((N//X)+1)*T print(t)
[["-", 0, 656, 0, 57, 15, 666, 0, 657, 17, 676], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 17, 109]]
5
53
N, X, T = (int(a) for a in input().split()) print(math.ceil(N / X) * T)
import math N, X, T = (int(a) for a in 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
35
n,x,t = map(int,input().split()) if (n%x == 0): times = n//x else: times = (n//x)*t + t print(times)
n,x,t = map(int,input().split()) if (n % x == 0): times = n//x *t else: times = (n//x)*t + t print(times)
[["+", 64, 196, 0, 1, 0, 662, 12, 657, 17, 48], ["+", 64, 196, 0, 1, 0, 662, 12, 657, 12, 22]]
5
49
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, 85], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 17, 109], ["-", 0, 652, 3, 4, 0, 657, 31, 657, 17, 85], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 676]]
5
47
import math line = input() strL = line.split() N = int(strL[0]) X = int(strL[1]) T = int(strL[2]) ans = math.floor(N / X) * T print(ans)
import math line = input() strL = line.split() N = int(strL[0]) X = int(strL[1]) T = int(strL[2]) ans = math.ceil(N / X) * T print(ans)
[["-", 0, 662, 12, 657, 31, 652, 63, 319, 319, 22], ["+", 0, 662, 12, 657, 31, 652, 63, 319, 319, 22]]
5
57
n, x, t = map(int, input()) ans = ((n // x)+int(bool(n%x)))*t print(ans)
n, x, t = map(int, input().split()) ans = ((n // x) + int(bool(n%x)))*t print(ans)
[["+", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
39
//#include <tourist> #include <bits/stdc++.h> using namespace std; typedef long long ll; const int INF = 1e9; const ll LINF = ll(1e18); const int MOD = 1000000007; const int dx[4] = {0, 1, 0, -1}, dy[4] = {-1, 0, 1, 0}; const int Dx[8] = {0, 1, 1, 1, 0, -1, -1, -1}, Dy[8] = {-1, -1, 0, 1, 1, 1, 0, -1}; #defin...
//#include <tourist> #include <bits/stdc++.h> using namespace std; typedef long long ll; const int INF = 1e9; const ll LINF = ll(1e18); const int MOD = 1000000007; const int dx[4] = {0, 1, 0, -1}, dy[4] = {-1, 0, 1, 0}; const int Dx[8] = {0, 1, 1, 1, 0, -1, -1, -1}, Dy[8] = {-1, -1, 0, 1, 1, 1, 0, -1}; #defin...
[["-", 0, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48]]
1
326
#include <iostream> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; int res; res = ((n - 1) / (x + 1)) * t; cout << res << endl; return 0; }
#include <iostream> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; int res; res = ((n - 1) / (x) + 1) * t; cout << res << endl; return 0; }
[["+", 31, 23, 0, 16, 31, 16, 12, 23, 0, 25], ["-", 12, 16, 31, 23, 0, 16, 12, 23, 0, 25]]
1
57
#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; } }
#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, 57, 15, 339, 51, 16, 31, 16, 17, 85], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109]]
1
64
n,x,t = map(int, input().split()) ans = 0 ans += -(-n//x) print(ans)
n,x,t = map(int, input().split()) ans = 0 ans += -(-n//x) print(t*ans)
[["+", 0, 1, 0, 652, 3, 4, 0, 657, 31, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 48]]
5
34
#include <bits/stdc++.h> using namespace std; int main() { int x, m, n; cin >> x >> m >> n; cout << (x / m) * n << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int x, m, n; cin >> x >> m >> n; cout << ((x + m - 1) / m) * n << endl; }
[["+", 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
39
n,x,k=map(int,input().split(' ')) print((int(n+x-1/x))*k)
n,x,k=map(int,input().split(' ')) print(int((n+x-1)/x)*k)
[["-", 0, 652, 3, 4, 0, 657, 31, 23, 0, 24], ["+", 3, 4, 0, 657, 31, 652, 3, 4, 0, 24], ["+", 31, 652, 3, 4, 0, 657, 31, 23, 0, 25], ["-", 0, 657, 31, 23, 0, 652, 3, 4, 0, 25]]
5
38
n,x,t=map(int,input()) if n%x==0: print(int(n//x)*t) else: print((int(n//x)+1)*t)
n,x,t=map(int,input().split()) if n%x==0: print(int(n//x)*t) else: print((int(n//x)+1)*t)
[["+", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
49
N, X, T = map(int,input().split()) a = N / X if a == int(a): print(int(a * T)) else: print(int((a + 1) * T))
N, X, T = map(int,input().split()) a = N / X if a == int(a): print(int(a * T)) else: print(int((int(a) + 1) * T))
[["+", 0, 657, 31, 23, 0, 657, 31, 652, 63, 22], ["+", 31, 23, 0, 657, 31, 652, 3, 4, 0, 24], ["+", 31, 23, 0, 657, 31, 652, 3, 4, 0, 25]]
5
55
n,x,t=map(int,input().split()) p= n//x+1 if n%x!=0 else n//x print(x*p)
n,x,t=map(int,input().split()) p= n//x+1 if n%x!=0 else n//x print(t*p)
[["-", 0, 1, 0, 652, 3, 4, 0, 657, 31, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 31, 22]]
5
41
import math a = list(map(int, input().split())) print(math.ceil(a[0]/a[1]) * math[2])
import math a = list(map(int, input().split())) print(math.ceil(a[0] / a[1]) * a[2])
[["-", 0, 652, 3, 4, 0, 657, 12, 206, 51, 22], ["+", 0, 652, 3, 4, 0, 657, 12, 206, 51, 22]]
5
41
// warm heart, wagging tail,and a smile just for you! // ███████████ // ███╬╬╬╬╬╬╬╬╬╬███ // ███╬╬╬╬╬████╬╬╬╬╬╬███ // ...
// warm heart, wagging tail,and a smile just for you! // ███████████ // ███╬╬╬╬╬╬╬╬╬╬███ // ███╬╬╬╬╬████╬╬╬╬╬╬███ // ...
[["-", 31, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 12, 22]]
1
378
#include <bits/stdc++.h> using namespace std; #define ll long long int #define ld long double #define fin0(i, a, b, c) for (int i = a; i < b; i += c) #define fin1(i, a, b, c) for (int i = a; i <= b; i += c) #define fde0(i, a, b, c) for (int i = a; i > b; i -= c) #define fde1(i, a, b, c) for (int i = a; i >= b; i -= c) ...
#include <bits/stdc++.h> using namespace std; #define ll long long int #define ld long double #define fin0(i, a, b, c) for (int i = a; i < b; i += c) #define fin1(i, a, b, c) for (int i = a; i <= b; i += c) #define fde0(i, a, b, c) for (int i = a; i > b; i -= c) #define fde1(i, a, b, c) for (int i = a; i >= b; i -= c) ...
[["+", 8, 9, 0, 1, 0, 16, 12, 2, 63, 40], ["+", 0, 1, 0, 16, 12, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 16, 12, 2, 3, 4, 0, 25]]
1
194
import math N, X, T = map(int, input().split()) print(math.ceil(N / X))
import math N, X, T = map(int, input().split()) print(math.ceil(N / X) * T)
[["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 48], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22]]
5
31
#include <bits/stdc++.h> using namespace std; int main() { long long int N, X, T; cin >> N >> X >> T; cout << T * (N + X - 1) / X << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long long int N, X, T; cin >> N >> X >> T; cout << T * ((N + X - 1) / X) << endl; }
[["+", 12, 16, 12, 23, 0, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 16, 12, 16, 12, 23, 0, 25]]
1
45
#include <algorithm> #include <functional> #include <iostream> #include <string> #include <tuple> #include <vector> using namespace std; int main() { int N, x, t; cin >> N >> x >> t; cout << (N / x + 1) * t << endl; return 0; }
#include <algorithm> #include <functional> #include <iostream> #include <string> #include <tuple> #include <vector> using namespace std; int main() { int N, x, t; cin >> N >> x >> t; cout << (N + x - 1) / x * t << endl; return 0; }
[["-", 12, 16, 31, 23, 0, 16, 31, 16, 17, 85], ["-", 12, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 85], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22]]
1
54
n, x, t = map(int, input().split()) times = (n + x - 1) / x ans = times * t print(ans)
n, x, t = map(int, input().split()) times = int((n + x - 1) / x) ans = times * t print(ans)
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 657, 31, 23, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
38
n, x, t = map(int, input()) if n % x == 0: print(t * (n // x)) else: print(t * ((n // x) + 1))
n, x, t = map(int, input().split()) if n % x == 0: print(t * (n // x)) else: print(t * ((n // x) + 1))
[["+", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
47
#include <bits/stdc++.h> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; int ans = n / x; if (n % x == 0) { cout << ans * t << endl; } else cout << ans * (t + 1) << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; int ans = n / x; if (n % x == 0) { cout << ans * t << endl; } else cout << (ans + 1) * t << endl; }
[["-", 0, 1, 0, 16, 31, 16, 12, 16, 31, 22], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48], ["-", 31, 16, 12, 16, 12, 23, 0, 16, 31, 22], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 31, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22]]
1
65
package main import ( "bufio" "fmt" "log" "math" "os" ) var scanner = bufio.NewScanner(os.Stdin) func nextLine() string { scanner.Scan() return scanner.Text() } func main() { input := nextLine() var n, x, t int if _, err := fmt.Sscanf(input, "%d %d %d", n, x, t); err != nil { log.Fatalf("error reading ...
package main import ( "bufio" "fmt" "log" "math" "os" ) var scanner = bufio.NewScanner(os.Stdin) func nextLine() string { scanner.Scan() return scanner.Text() } func main() { input := nextLine() var n, x, t int if _, err := fmt.Sscanf(input, "%d %d %d", &n, &x, &t); err != nil { log.Fatalf("error readi...
[["+", 12, 432, 0, 2, 3, 4, 0, 91, 17, 67]]
7
169
import java.util.*; public class Main { public static void main(String[] args) { Scanner scn = new Scanner(System.in); int n = scn.nextInt(); int x = scn.nextInt(); int t = scn.nextInt(); int fac = n / x; if (n % x == 0) fac++; System.out.println(fac * t); } }
import java.util.*; public class Main { public static void main(String[] args) { Scanner scn = new Scanner(System.in); int n = scn.nextInt(); int x = scn.nextInt(); int t = scn.nextInt(); int fac = n / x; if (n % x != 0) fac++; System.out.println(fac * t); } }
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 79]]
3
91
#include <bits/stdc++.h> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; int answer = (n / x) * t; if (n % x != 0) answer++; cout << answer << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; int answer = (n / x); if (n % x != 0) answer++; cout << answer * t << endl; }
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 48], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22]]
1
55
n,x,t=map(int, input().split()) print(round(n/x)*t)
n,x,t=map(int, input().split()) print(-(-n//x)*t)
[["-", 0, 652, 3, 4, 0, 657, 31, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 657, 31, 664, 17, 33], ["+", 31, 664, 28, 23, 0, 657, 31, 664, 17, 33], ["-", 0, 657, 31, 652, 3, 4, 0, 657, 17, 85], ["+", 0, 657, 31, 664, 28, 23, 0, 657, 17, 676]]
5
29
line = input().split() n = int(line[0]) x = int(line[1]) t = int(line[2]) print(-(n//x)*t)
line = input().split() n = int(line[0]) x = int(line[1]) t = int(line[2]) print(-(-n//x)*t)
[["+", 31, 664, 28, 23, 0, 657, 31, 664, 17, 33]]
5
47
#include <bits/stdc++.h> using namespace std; void __print(int x) { cerr << x; } void __print(long x) { cerr << x; } void __print(long long x) { cerr << x; } void __print(unsigned x) { cerr << x; } void __print(unsigned long x) { cerr << x; } void __print(unsigned long long x) { cerr << x; } void __print(float x) { cer...
#include <bits/stdc++.h> using namespace std; void __print(int x) { cerr << x; } void __print(long x) { cerr << x; } void __print(long long x) { cerr << x; } void __print(unsigned x) { cerr << x; } void __print(unsigned long x) { cerr << x; } void __print(unsigned long long x) { cerr << x; } void __print(float x) { cer...
[["-", 0, 57, 64, 1, 0, 11, 12, 16, 12, 13], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 12, 22]]
1
486
a = input().split() b = int(a[0]) c = 0 while b >= 0: b -= int(a[1]) c += int(a[2]) print(c)
a = input().split() b = int(a[0]) c = 0 while b > 0: b -= int(a[1]) c += int(a[2]) print(c)
[["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 47]]
5
48
#include <stdio.h> int main() { float n, x, t; scanf("%f %f %f", &n, &x, &t); float times = n / x; int temp = (int)times; if (times - (float)temp != 0) { temp++; temp = temp * t; } printf("%d", (int)temp); }
#include <stdio.h> int main() { float n, x, t; scanf("%f %f %f", &n, &x, &t); float times = n / x; int temp = (int)times; if (times - (float)temp != 0) { temp++; } temp = temp * t; printf("%d", (int)temp); }
[["+", 0, 14, 8, 9, 0, 57, 64, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 57, 64, 9, 0, 46]]
0
80
#include <math.h> #include <stdio.h> int main(void) { double n, x; int t; scanf("%lf %lf %d", &n, &x, &t); printf("%d\n", ceil(n / x) * t); return 0; }
#include <math.h> #include <stdio.h> int main(void) { double n, x; int t; scanf("%lf %lf %d", &n, &x, &t); printf("%d\n", (int)ceil(n / x) * t); return 0; }
[["+", 0, 2, 3, 4, 0, 16, 31, 74, 0, 24], ["+", 3, 4, 0, 16, 31, 74, 39, 77, 39, 40], ["+", 0, 2, 3, 4, 0, 16, 31, 74, 0, 25]]
0
55
#include <bits/stdc++.h> using namespace std; int main() { int N, X, T; cin >> N >> X >> T; if ((N / X) * X == X) { cout << (N / X) * T << endl; } if ((N / X) * X < X) { cout << (N / X + 1) * T << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int N, X, T; cin >> N >> X >> T; if ((N / X) * X == N) { cout << (N / X) * T << endl; } if ((N / X) * X < N) { cout << (N / X + 1) * T << endl; } }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22]]
1
81
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, 652, 3, 4, 0, 657, 31, 657, 17, 85], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 676], ["-", 0, 657, 31, 23, 0, 657, 31, 657, 17, 85], ["+", 0, 657, 31, 23, 0, 657, 31, 657, 17, 676]]
5
47
#include <bits/stdc++.h> using namespace std; int main() { int N, X, T; cin >> N >> X >> T; cout << ceil(N * 1.0 / X) * T; }
#include <bits/stdc++.h> using namespace std; int main() { int N, X, T; cin >> N >> X >> T; cout << int(ceil(N * 1.0 / X)) * T; }
[["+", 0, 1, 0, 16, 12, 16, 31, 2, 63, 40], ["+", 0, 16, 12, 16, 31, 2, 3, 4, 0, 24], ["+", 31, 2, 3, 4, 0, 2, 3, 4, 0, 25]]
1
40
n, x, t = input().split() n = int(n) x = int(x) t = int(t) if n % x == 0: print((n//x)*t) else: print((n//x)*t+1)
n, x, t = input().split() n = int(n) x = int(x) t = int(t) if n % x == 0: print((n//x)*t) else: print((n//x+1)*t)
[["+", 3, 4, 0, 657, 31, 23, 0, 657, 17, 72], ["+", 3, 4, 0, 657, 31, 23, 0, 657, 12, 612], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]]
5
62
N, X, T = map(int, input().split()) cnt = N // X if N % X == 0: cnt += 1 print(T*cnt)
N, X, T = map(int, input().split()) cnt = N // X if N % X != 0: cnt += 1 print(T*cnt)
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 79]]
5
39
n,x,t = map(int,input().split()) i = 0 while x*i>=n: i +=1 println(i*x)
n,x,t = map(int,input().split()) i = 0 while x*i<n: i +=1 print(i*t)
[["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18], ["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22]]
5
37
#include <bits/stdc++.h> using namespace std; int main() { int N, X, T; cin >> N >> X >> T; int i = 0; while (N >= 0) { N -= X; i++; } cout << T * i; }
#include <bits/stdc++.h> using namespace std; int main() { int N, X, T; cin >> N >> X >> T; int i = 0; while (N > 0) { N -= X; i++; } cout << T * i; }
[["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47]]
1
53
#include <bits/stdc++.h> using namespace std; #define fastIO ios::sync_with_stdio(0), cin.tie(0), cout.tie(0) #define endl '\n' #define ft first #define sd second #define pb push_back #define pob pop_back() #define pf push_front #define pof pop_front() #define all(x) (x).begin(), (xe).end() #define rall(x) (x).rbegin()...
#include <bits/stdc++.h> using namespace std; #define fastIO ios::sync_with_stdio(0), cin.tie(0), cout.tie(0) #define endl '\n' #define ft first #define sd second #define pb push_back #define pob pop_back() #define pf push_front #define pof pop_front() #define all(x) (x).begin(), (xe).end() #define rall(x) (x).rbegin()...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
133
#include <bits/stdc++.h> using namespace std; int main() { int N, X, T; cin >> N >> X >> T; int result = ceil(N / X) * T; cout << result; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { float N, X, T; cin >> N >> X >> T; int result = ceil(N / X) * T; cout << result; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
46
#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 * t + t << endl; }
[["-", 0, 16, 31, 16, 12, 16, 31, 16, 17, 109], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 85], ["-", 31, 16, 12, 16, 31, 16, 31, 16, 17, 109], ["+", 31, 16, 12, 16, 31, 16, 31, 16, 17, 85], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22]]
1
60
#include <algorithm> #include <cmath> #include <iostream> #include <vector> #define endl '\n' #define ll long long using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int n, x, t; cin >> n >> x >> t; int temp = (n / x) + ((n % x) != 0); cout << temp / x * t...
#include <algorithm> #include <cmath> #include <iostream> #include <vector> #define endl '\n' #define ll long long using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int n, x, t; cin >> n >> x >> t; int temp = (n / x) + ((n % x) != 0); cout << temp * t; ...
[["-", 0, 1, 0, 16, 12, 16, 31, 16, 17, 85], ["-", 0, 1, 0, 16, 12, 16, 31, 16, 12, 22]]
1
90
N, X, T = map(int, input().split()) print((N+T-1)//X * T)
N, X, T = map(int, input().split()) print((N+X-1)//X * T)
[["-", 31, 657, 31, 23, 0, 657, 31, 657, 12, 22], ["+", 31, 657, 31, 23, 0, 657, 31, 657, 12, 22]]
5
32
n, x, t = gets.split.map &:to_i p (n / x).ceil * t
n, x, t = gets.split.map &:to_i p (n.to_f / x).ceil * t
[["+", 31, 652, 486, 739, 0, 738, 31, 652, 17, 131], ["+", 31, 652, 486, 739, 0, 738, 31, 652, 735, 22]]
4
23
n,x,t=list(map(int,input().split())) print((round(n/x))*t)
import math n,x,t=list(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], ["-", 3, 4, 0, 657, 31, 23, 0, 652, 63, 22], ["+", 0, 657, 31, 23, 0, 652, 63, 319, 500, 22], ["+", 0, 657, 31, 23, 0, 652, 63, 319, 0, 131], ["+", 0, 657, 31, 23, 0, 652, 63, 319, 319, 22]]
5
34
#include <stdio.h> int main() { int n, x, t, sub; scanf("%d %d %d", &n, &x, &t); sub = n % x; n /= x; if (sub == 0) n += 1; t *= n; printf("%d", t); return 0; }
#include <stdio.h> int main() { int n, x, t, sub; scanf("%d %d %d", &n, &x, &t); sub = n % x; n /= x; if (sub != 0) n += 1; t *= n; printf("%d", t); return 0; }
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 79]]
0
69
#include <iostream> using namespace std; int main(void) { // Your code here! int a, b, c, x = 0; cin >> a >> b >> c; x = (a / c) * b; if (a % c != 0) { x = x + b; } cout << x << endl; }
#include <iostream> using namespace std; int main(void) { // Your code here! int a, b, c, x = 0; cin >> a >> b >> c; x = (a / b) * c; if (a % b != 0) { x = x + c; } cout << x << endl; }
[["-", 0, 11, 12, 16, 31, 23, 0, 16, 12, 22], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 22], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["-", 64, 9, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 64...
1
65
#include <bits/stdc++.h> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; int ans = (n / x) * t; if (n % x != 0) cout << ans + t << endl; cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; int ans = (n / x) * t; if (n % x != 0) cout << ans + t << endl; else cout << ans << endl; }
[["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]]
1
60
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; if (N % X == 0) { time = N / X * T; } else { time = (N / X) * T * 2; } S...
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; if (N % X == 0) { time = N / X * T; } else { time = (N / X + 1) * T; } S...
[["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 72], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 499], ["-", 75, 196, 0, 1, 0, 11, 12, 16, 17, 48], ["-", 75, 196, 0, 1, 0, 11, 12, 16, 12, 499]]
3
109
#include <algorithm> #include <cmath> #include <iostream> #include <numeric> #include <string> #include <vector> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; cout << ceil((double)n / x) * t << endl; }
#include <algorithm> #include <cmath> #include <iostream> #include <numeric> #include <string> #include <vector> using namespace std; int main() { int n, x, t; cin >> n >> x >> t; cout << (int)ceil((double)n / x) * t << endl; }
[["+", 0, 16, 31, 16, 12, 16, 31, 74, 0, 24], ["+", 31, 16, 12, 16, 31, 74, 39, 77, 39, 40], ["+", 0, 16, 31, 16, 12, 16, 31, 74, 0, 25]]
1
53
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)
[["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
31