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())
print((N//X+1)*T) | N, X, T = map(int, input().split())
print(-(-N//X)*T) | [["+", 0, 652, 3, 4, 0, 657, 31, 664, 17, 33], ["+", 31, 664, 28, 23, 0, 657, 31, 664, 17, 33], ["-", 3, 4, 0, 657, 31, 23, 0, 657, 17, 72], ["-", 3, 4, 0, 657, 31, 23, 0, 657, 12, 612]] | 5 | 30 |
#include <stdio.h>
int main(void) {
// Your code here!
int N, X, T;
scanf("%d %d %d", &N, &X, &T);
printf("%d/n", (N + X - 1) / X * T);
}
| #include <stdio.h>
int main(void) {
// Your code here!
int N, X, T;
scanf("%d %d %d", &N, &X, &T);
printf("%d\n", (N + X - 1) / X * T);
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 0 | 52 |
#include <bits/stdc++.h>
#define pb push_back
#define lli long long int
using namespace std;
int main() {
// your code goes here
float n, x, t;
cin >> n >> x >> t;
cout << ceil(n / x) * t << endl;
return 0;
}
| #include <bits/stdc++.h>
#define pb push_back
#define lli long long int
using namespace std;
int main() {
// your code goes here
float n, x, t;
cin >> n >> x >> t;
cout << int(ceil(n / x) * t) << endl;
return 0;
}
| [["+", 0, 1, 0, 16, 31, 16, 12, 2, 63, 40], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 25]] | 1 | 50 |
N,X,T = map(int, input().split())
times, mod = divmod(N,X)
if mod == 0:
print(times * T)
else:
print(times * T + 1) | N,X,T = map(int, input().split())
times, mod = divmod(N,X)
if mod == 0:
print(times * T)
else:
print(times * T + T) | [["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22]] | 5 | 49 |
#include <iostream>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
cout << (n + x - 1) / n * t << endl;
} | #include <iostream>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
cout << (n + x - 1) / x * t << endl;
}
| [["-", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22]] | 1 | 43 |
#include <bits/stdc++.h>
#define rep(i, x, n) for (int i = x; i < (int)(n); i++)
#define rep_eq(i, x, n) for (int i = x; i <= (int)(n); i++)
using namespace std;
using ll = long long;
int main() {
double N, X, T;
cin >> N >> X >> T;
cout << ceil(N / X) * T << endl;
return 0;
}
| #include <bits/stdc++.h>
#define rep(i, x, n) for (int i = x; i < (int)(n); i++)
#define rep_eq(i, x, n) for (int i = x; i <= (int)(n); i++)
using namespace std;
using ll = long long;
int main() {
double N, X, T;
cin >> N >> X >> T;
cout << int(ceil(N / X) * T) << endl;
return 0;
}
| [["+", 0, 1, 0, 16, 31, 16, 12, 2, 63, 40], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 25]] | 1 | 69 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
const ll INF = 1LL << 62;
const double PI = acos(-1);
const double eps = 1e-10;
int main() {
ll n, x, t;
cin >> n >> x >> t;
cout << n / x * t + (n - n / x == 0 ? 0 : ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
const ll INF = 1LL << 62;
const double PI = acos(-1);
const double eps = 1e-10;
int main() {
ll n, x, t;
cin >> n >> x >> t;
cout << n / x * t + (n % x == 0 ? 0 : t) <... | [["-", 12, 23, 0, 41, 15, 16, 31, 16, 17, 33], ["-", 0, 41, 15, 16, 31, 16, 12, 16, 31, 22], ["-", 0, 41, 15, 16, 31, 16, 12, 16, 17, 85], ["+", 12, 23, 0, 41, 15, 16, 31, 16, 17, 109]] | 1 | 101 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int x = scan.nextInt();
int t = scan.nextInt();
int ans = 0;
while (n >= x) {
n -= x;
ans++;
}
System.out.println(ans * t)... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int x = scan.nextInt();
int t = scan.nextInt();
int ans = 0;
while (n > 0) {
n -= x;
ans++;
}
System.out.println(ans * t);... | [["-", 8, 196, 0, 52, 15, 15, 0, 16, 17, 20], ["-", 8, 196, 0, 52, 15, 15, 0, 16, 12, 22], ["+", 8, 196, 0, 52, 15, 15, 0, 16, 17, 47], ["+", 8, 196, 0, 52, 15, 15, 0, 16, 12, 499]] | 3 | 93 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long n = sc.nextLong();
long x = sc.nextLong();
long t = sc.nextLong();
if (n <= x) {
System.out.println(t);
return;
}
long ans = 0;
ans += (n / x) ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long n = sc.nextLong();
long x = sc.nextLong();
long t = sc.nextLong();
if (n <= x) {
System.out.println(t);
return;
}
long ans = 0;
ans += (n / x) ... | [["-", 0, 195, 8, 196, 0, 1, 0, 11, 12, 22], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 22], ["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 79], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 47]] | 3 | 127 |
#include <algorithm>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <vector>
using namespace std;
const int N = 500 + 10;
typedef long long int ll;
int main() {
ll a, b, c;
cin >> a >> b >> c;
if (a % c)
cout << (a / b + 1) * c << endl;
else
cout << a / b * c << endl;
return 0;
}
... | #include <algorithm>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <vector>
using namespace std;
const int N = 500 + 10;
typedef long long int ll;
int main() {
ll a, b, c;
cin >> a >> b >> c;
if (a % b)
cout << (a / b + 1) * c << endl;
else
cout << a / b * c << endl;
return 0;
}
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22]] | 1 | 84 |
n,x,t=map(int,input().split())
m=math.ceil(n/x)*t | import math
n,x,t=map(int,input().split())
m=math.ceil(n/x)*t
print(m) | [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["+", 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 | 30 |
N,X,T = map(int,input().split())
a = N // X
if N % X == 0:
Time = a*T
else:
Tiem = (a+1)*T
print(Time) | N,X,T = map(int,input().split())
a = N // X
Time = 0
if N % X == 0:
Time = a*T
else:
Time = (a+1)*T
print(Time) | [["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["-", 75, 76, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 75, 76, 8, 196, 0, 1, 0, 662, 31, 22]] | 5 | 50 |
#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 1;
int n, t, x;
int main() {
cin >> n >> x >> t;
cout << ceil(1.0 * n / x) * t;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 1;
int n, t, x;
int main() {
cin >> n >> x >> t;
cout << (long long)ceil(1.0 * n / x) * t;
return 0;
} | [["+", 0, 1, 0, 16, 12, 16, 31, 74, 0, 24], ["+", 12, 16, 31, 74, 39, 77, 39, 86, 0, 96], ["+", 0, 1, 0, 16, 12, 16, 31, 74, 0, 25]] | 1 | 51 |
#include <bits/stdc++.h>
#define pb push_back
#define int long long int
#define INF 1e18
#define vec vector<int>
#define REP(i, a, b) for (i = a; i < b; i++)
using namespace std;
int32_t main() {
int t = 1;
// cin>>t;
while (t--) {
int n, x, t;
cin >> n >> x >> t;
cout << ceil(double(n) / x) * t << "\... | #include <bits/stdc++.h>
#define pb push_back
#define int long long int
#define INF 1e18
#define vec vector<int>
#define REP(i, a, b) for (i = a; i < b; i++)
using namespace std;
int32_t main() {
int t = 1;
// cin>>t;
while (t--) {
int n, x, t;
cin >> n >> x >> t;
cout << (int)(ceil(double(n) / x) * t... | [["+", 0, 1, 0, 16, 31, 16, 12, 74, 0, 24], ["+", 0, 16, 31, 16, 12, 74, 39, 77, 39, 40], ["+", 0, 1, 0, 16, 31, 16, 12, 74, 0, 25], ["+", 0, 16, 31, 16, 12, 74, 51, 23, 0, 24], ["+", 0, 16, 31, 16, 12, 74, 51, 23, 0, 25]] | 1 | 80 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <math.h>
#include <set>
#include <sstream>
#include <stdio.h>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
int main() {
double n, x, t;
cin >> n >> x >> t;
int num = ... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <math.h>
#include <set>
#include <sstream>
#include <stdio.h>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
int main() {
double n, x;
int t;
cin >> n >> x >> t;
int ... | [["-", 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 | 80 |
n,x,t=map(int,input().split())
s=n//x * t
if n%x!=0:
s+=1
print(s) | n,x,t=map(int,input().split())
s=n//x * t
if n%x!=0:
s+=t
print(s) | [["-", 0, 57, 64, 196, 0, 1, 0, 677, 12, 612], ["+", 0, 57, 64, 196, 0, 1, 0, 677, 12, 22]] | 5 | 39 |
N, X, T = [int(s) for s in input().split(" ")]
t = T * (N + X - 1) / X
print(t) | N, X, T = [int(s) for s in input().split(" ")]
t = T * ((N + X - 1) // X )
print(t) | [["+", 12, 657, 12, 23, 0, 657, 31, 23, 0, 24], ["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 85], ["+", 0, 662, 12, 657, 12, 23, 0, 657, 17, 676], ["+", 0, 1, 0, 662, 12, 657, 12, 23, 0, 25]] | 5 | 42 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, t, m;
cin >> n >> t >> m;
long a = (n - 1) / t + 1;
a *= m;
cout << m << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, t, m;
cin >> n >> t >> m;
long a = (n - 1) / t + 1;
a *= m;
cout << a << endl;
} | [["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]] | 1 | 50 |
#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int N, X, T;
cin >> N >> X >> T;
if (N % X == 0)
cout << ceil(N / X) * T << endl;
else
cout << (ceil(N / X) + 1) * T << endl;
} | #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
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, 2, 63, 22], ["-", 31, 16, 12, 16, 31, 2, 3, 4, 0, 24], ["-", 31, 16, 12, 16, 31, 2, 3, 4, 0, 25], ["-", 12, 16, 31, 23, 0, 16, 31, 2, 63, 22]] | 1 | 74 |
process.stdin.resume();
process.stdin.setEncoding('utf8');
var lines = [];
var reader = require('readline').createInterface({
input : process.stdin,
output : process.stdout
});
reader.on('line', (line) => { lines.push(line); });
reader.on('close', () => {
var w = lines[0].split(' ');
var n = parseInt([ 0 ]);
... | process.stdin.resume();
process.stdin.setEncoding('utf8');
var lines = [];
var reader = require('readline').createInterface({
input : process.stdin,
output : process.stdout
});
reader.on('line', (line) => { lines.push(line); });
reader.on('close', () => {
var w = lines[0].split(' ');
var n = parseInt(w[0]);
v... | [["+", 0, 200, 51, 2, 3, 3, 0, 69, 500, 22], ["-", 0, 200, 51, 16, 31, 2, 63, 558, 559, 560], ["+", 0, 200, 51, 16, 31, 2, 63, 558, 559, 560], ["-", 51, 16, 31, 2, 3, 3, 0, 16, 17, 72], ["-", 51, 16, 31, 2, 3, 3, 0, 16, 12, 555]] | 2 | 158 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
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>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
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 | 78 |
n,x,t=map(int,input().split())
l=int(n/x)
if l>n/x:p=l+1
else:p=l
print(p*t) | n,x,t=map(int,input().split())
l=int(n//x)
if n%x>0:p=l+1
else:p=l
print(p*t)
| [["-", 0, 662, 12, 652, 3, 4, 0, 657, 17, 85], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 17, 676], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47], ["-", 0, 656, 0, 57, 15, 666, 0, 657, 17, 85], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 17, 109], ["+", 36, 36, 0, 656, 0, 57, 15, 666,... | 5 | 49 |
#include <bits/stdc++.h>
using namespace std;
#define MAX_N 200000
#define l long
#define ll long long
#define f(a, b) for (int i = a; i < b; i++)
#define f0(a) for (int i = 0; i < a; i++)
#define input(d) cin >> d;
#define inputs(n, d) \
for (int i = 0; i < n... | #include <bits/stdc++.h>
using namespace std;
#define MAX_N 200000
#define l long
#define ll long long
#define f(a, b) for (int i = a; i < b; i++)
#define f0(a) for (int i = 0; i < a; i++)
#define input(d) cin >> d;
#define inputs(n, d) \
for (int i = 0; i < n... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 67], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 109]] | 1 | 145 |
#include <bits/stdc++.h>
using namespace std;
int main() {
double N, X, T, ans;
cin >> N >> X >> T;
ans = (ceil(N / X)) * T;
cout << ans;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
float N, X, T, ans;
cin >> N >> X >> T;
ans = (ceil(N / X)) * T;
cout << int(ans);
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 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 | 49 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define ll long long int
#define ld double
#define REP(i, x, n) for (ll i = x; i < n; i++)
#define SZ(v) (ll) v.size()
#define endl "\n"
#define ff first
#define ss second
#define PQ_MIN priority_queue<ll, vector<ll>,... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define ll long long int
#define ld double
#define REP(i, x, n) for (ll i = x; i < n; i++)
#define SZ(v) (ll) v.size()
#define endl "\n"
#define ff first
#define ss second
#define PQ_MIN priority_queue<ll, vector<ll>,... | [["+", 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 | 652 |
from math import ceil
def resolve():
N, X, T = map(int, input().split(" "))
if N > X:
print(ceil(N/X)*T)
if __name__ == "__main__":
resolve()
| from math import ceil
def resolve():
N, X, T = map(int, input().split(" "))
if N > X:
print(ceil(N/X)*T)
else:
print(T)
if __name__ == "__main__":
resolve() | [["+", 0, 14, 8, 196, 0, 57, 75, 76, 0, 95], ["+", 0, 14, 8, 196, 0, 57, 75, 76, 0, 102], ["+", 75, 76, 8, 196, 0, 1, 0, 652, 63, 22], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 56 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define fore(i, n) for (i = 0; i < n; i++)
template <typename T>
void output_vector(const vector<T> &v, int start = -1, int end = -1) {
if (start < 0)
start = 0;
if (end < 0)
end = v.size();
for (int i = start; i < end; i++)
cout <<... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define fore(i, n) for (i = 0; i < n; i++)
template <typename T>
void output_vector(const vector<T> &v, int start = -1, int end = -1) {
if (start < 0)
start = 0;
if (end < 0)
end = v.size();
for (int i = start; i < end; i++)
cout <<... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 51, 2, 3, 4, 0, 16, 12, 2, 63, 40], ["-", 3, 4, 0, 16, 12, 23, 0, 16, 17, 48], ["-", 3, 4, 0, 16, 12, 23, 0, 16, 12, 13]] | 1 | 154 |
#include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
#define ll long long
int main() {
ll n, x, t, ans;
cin >> n >> x >> t;
ans = floor(n / x) * t;
cout << ans;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
#define ll long long
int main() {
ll n, x, t, ans;
cin >> n >> x >> t;
ans = ceil(n * 1.0 / x) * t;
cout << ans;
return 0;
} | [["-", 0, 1, 0, 11, 12, 16, 31, 2, 63, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 2, 63, 22], ["+", 31, 2, 3, 4, 0, 16, 31, 16, 17, 48], ["+", 31, 2, 3, 4, 0, 16, 31, 16, 12, 13]] | 1 | 53 |
#include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
float n = 0, x = 0, t = 0;
cin >> n >> x >> t;
cout << ceil(n / x) * t;
return 0;
} | #include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
float n = 0, x = 0, t = 0;
cin >> n >> x >> t;
cout << (int)ceil(n / x) * (int)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], ["+", 0, 1, 0, 16, 12, 16, 12, 74, 0, 24], ["+", 0, 16, 12, 16, 12, 74, 39, 77, 39, 40], ["+", 0, 1, 0, 16, 12, 16, 12, 74, 0, 25]] | 1 | 50 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false), cin.tie(NULL);
int n, x, t;
cin >> n >> x >> t;
int result = 0;
if (n <= x)
cout << t << endl;
else {
result = (t * (n / x));
result += t;
cout << result << endl;
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false), cin.tie(NULL);
int n, x, t;
cin >> n >> x >> t;
int result = 0;
if (n <= x)
cout << t << endl;
else {
result = (t * (n / x));
if (n % x)
result += t;
cout << result << endl;
}
return 0;
... | [["+", 0, 57, 75, 76, 0, 9, 0, 57, 0, 121], ["+", 75, 76, 0, 9, 0, 57, 15, 339, 0, 24], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 109], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 75, 76, 0, 9, 0, 57, 15, 339, 0, 25]] | 1 | 86 |
//#include <bits/stdc++.h>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define fast_io() ... | //#include <bits/stdc++.h>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define fast_io() ... | [["-", 0, 57, 64, 1, 0, 16, 12, 16, 12, 22], ["+", 0, 57, 64, 1, 0, 16, 12, 16, 12, 22]] | 1 | 109 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define f(a, b) for (ll i = a; i < b; i++)
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
ll n, x, t;
cin >> n >> x >> t;
ll k = (ceil(n / x)) * t;
cout << k;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define f(a, b) for (ll i = a; i < b; i++)
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
float n, x, t;
cin >> n >> x >> t;
ll k = (ceil(n / x)) * t;
cout << k;
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]] | 1 | 73 |
a,b,c=map(int,input().split())
s=k
m=c
while s<a:
s=s+b
m=m+c
print(m) | a,b,c=map(int,input().split())
s=b
m=c
while s<a:
s=s+b
m=m+c
print(m)
| [["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 22]] | 5 | 43 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
float N, X, T;
cin >> N >> X >> T;
int y = ceil(N / X);
cout << y * T;
} | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
ll int N, X, T;
cin >> N >> X >> T;
ll int y = ceil((double)N / X);
cout << y * T;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["+", 51, 2, 3, 4, 0, 16, 31, 74, 0, 24], ["+", 3, 4, 0, 16, 31, 74, 39, 77, 39, 40], ["+", 51, 2, 3, 4, 0, 16, 31, 74, 0, 25]] | 1 | 60 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
int main() {
int n, x, t, m;
cin >> n >> x >> t;
if (m % x == 0) {
m = n / x * t;
} else {
m = n / x * t + t;
}
cout << m;
} | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
int main() {
int n, x, t, m;
cin >> n >> x >> t;
if (n % x == 0) {
m = n / x * t;
} else {
m = n / x * t + t;
}
cout << m;
} | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22]] | 1 | 78 |
#include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main() {
ll n, x, t;
cin >> n >> x >> t;
cout << (ll)(ceil(n / x) * t);
}
| #include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main() {
float n, x, t;
cin >> n >> x >> t;
cout << (ll)(ceil(n / x) * t);
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 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;
cout << (N / X + 1) * T << endl;
}
| #include "bits/stdc++.h"
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
cout << ((N - 1) / X + 1) * T << endl;
}
| [["+", 31, 23, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 12, 13], ["+", 31, 23, 0, 16, 31, 16, 31, 23, 0, 25]] | 1 | 43 |
n, x, t = map(int, input().split())
print(ceil(n/x)*t)
| from math import ceil
n, x, t = map(int, input().split())
print(ceil(n/x)*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 | 29 |
N,X,T=map(int,input().split())
amari=N%X
kaisu=N//X
if not amari==0:
ans_kai=kaisu+1
else:
ans_kai=kaisu
ans=ans_kai*6
print(ans) | N,X,T=map(int,input().split())
amari=N%X
kaisu=N//X
if not amari==0:
ans_kai=kaisu+1
else:
ans_kai=kaisu
ans=ans_kai*T
print(ans) | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22]] | 5 | 53 |
#include <iostream>
using namespace std;
#include <bits/stdc++.h>
int main() {
int x, n, t;
cin >> n >> x >> t;
if (x % n != 0) {
cout << ((n / x) + 1) * t << endl;
} else {
cout << (n / x) * t << endl;
}
}
| #include <iostream>
using namespace std;
#include <bits/stdc++.h>
int main() {
int x, n, t;
cin >> n >> x >> t;
if (n % x != 0) {
cout << ((n / x) + 1) * t << endl;
} else {
cout << (n / x) * t << endl;
}
}
| [["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 70 |
n,x,t=map(int,input().split())
p=n//x
if t%p==0:
print(t*p)
else:
print(t*(p+1)) | n,x,t=map(int,input().split())
p=n//x
if n%x==0:
print(t*p)
else:
print(t*(p+1)) | [["-", 0, 656, 0, 57, 15, 666, 0, 657, 31, 22], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 31, 22], ["-", 0, 656, 0, 57, 15, 666, 0, 657, 12, 22], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 12, 22]] | 5 | 48 |
#include <cstdio>
int main() {
int n, x, t;
scanf("%d%d%d", &n, &x, &t);
if (!n % x) {
printf("%d", n / x * t);
return 0;
} else {
printf("%d", n / x * t + t);
return 0;
}
} | #include <cstdio>
int main() {
int n, x, t;
scanf("%d%d%d", &n, &x, &t);
if (n % x == 0) {
printf("%d", n / x * t);
return 0;
} else {
printf("%d", n / x * t + t);
return 0;
}
} | [["-", 0, 57, 15, 339, 51, 16, 31, 91, 17, 111], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 77 |
#include <cmath>
#include <iostream>
using namespace std;
using i64 = std::int64_t;
int main() {
i64 n, x, t;
cin >> n >> x >> t;
cout << (n / x + (n % x)) * t << endl;
return 0;
}
| #include <cmath>
#include <iostream>
using namespace std;
using i64 = std::int64_t;
int main() {
i64 n, x, t;
cin >> n >> x >> t;
cout << (n / x + (n % x != 0)) * t << endl;
return 0;
}
| [["+", 31, 23, 0, 16, 12, 23, 0, 16, 17, 79], ["+", 31, 23, 0, 16, 12, 23, 0, 16, 12, 13]] | 1 | 57 |
import math
n, x, t = (int(i) for i in input().split())
print(math.floor(n/x) * t) | import math
n, x, t = (int(i) for i in input().split())
print(math.ceil(n/x) * t) | [["-", 3, 4, 0, 657, 31, 652, 63, 319, 319, 22], ["+", 3, 4, 0, 657, 31, 652, 63, 319, 319, 22]] | 5 | 37 |
n,x,t=map(int,input().split())
if(n%t==0):
print(t*(n//x))
else:
print(t*(n//x)+t)
| n,x,t=map(int,input().split())
if(n%x==0):
print(t*(n//x))
else:
print(t*(n//x)+t)
| [["-", 0, 57, 15, 23, 0, 666, 0, 657, 12, 22], ["+", 0, 57, 15, 23, 0, 666, 0, 657, 12, 22]] | 5 | 51 |
N,X,T = map(int, input().split())
answer = 0
if N%X == 0:
S = N/X
answer = S*T
else:
S = N / X
answer = (S+1) * T
print(int(answer)) | N,X,T = map(int, input().split())
answer = 0
if N%X == 0:
S = int(N/X)
answer = S*T
else:
S = int(N / X)
answer = (S+1) * T
print(int(answer)) | [["+", 64, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25], ["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22]] | 5 | 61 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
cout << ceil(N * 1.0 / X) * T;
return 0;
} | #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);
return 0;
} | [["+", 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 | 43 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)n; ++i)
#define REP(i, a, b) for (int i = int(a); i < (int)b; ++i)
#define Graph vector<vecctor<ll>>
#define pairs vector<pair<ll, ll>>
#define pb push_back
using namespace std;
using ll = long long;
const ll INF = 1e18;
const double PI = acos(-1);
t... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)n; ++i)
#define REP(i, a, b) for (int i = int(a); i < (int)b; ++i)
#define Graph vector<vecctor<ll>>
#define pairs vector<pair<ll, ll>>
#define pb push_back
using namespace std;
using ll = long long;
const ll INF = 1e18;
const double PI = acos(-1);
t... | [["+", 31, 23, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 12, 13], ["+", 31, 23, 0, 16, 31, 16, 31, 23, 0, 25]] | 1 | 183 |
#include <bits/stdc++.h>
#define rep(i, n) rep2(i, 0, n)
#define rep2(i, m, n) for (int i = m; i < (n); i++)
typedef long long ll;
using namespace std;
const ll INF = 1 << 30;
double n, x;
int t;
int main() {
cin >> n >> x >> t;
cout << ceil(n / x) * t << endl;
} | #include <bits/stdc++.h>
#define rep(i, n) rep2(i, 0, n)
#define rep2(i, m, n) for (int i = m; i < (n); i++)
typedef long long ll;
using namespace std;
const ll INF = 1 << 30;
double n, x;
int t;
int main() {
cin >> n >> x >> t;
cout << int(ceil(n / x)) * t << endl;
} | [["+", 0, 16, 31, 16, 12, 16, 31, 2, 63, 40], ["+", 31, 16, 12, 16, 31, 2, 3, 4, 0, 24], ["+", 31, 2, 3, 4, 0, 2, 3, 4, 0, 25]] | 1 | 72 |
import math
N,X,T=map(int,input().split())
ans = math.ceil(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, 657, 12, 23, 0, 24], ["+", 0, 662, 12, 657, 31, 652, 3, 4, 0, 25], ["-", 12, 652, 3, 4, 0, 657, 12, 23, 0, 25], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 38 |
#include <algorithm>
#include <bits/stdc++.h>
#include <bitset>
#include <iterator>
#include <map>
#include <queue>
#include <set>
#include <vector>
#define IOS \
ios::sync_with_stdio(); \
cin.t... |
#include <algorithm>
#include <bits/stdc++.h>
#include <bitset>
#include <iterator>
#include <map>
#include <queue>
#include <set>
#include <vector>
#define IOS \
ios::sync_with_stdio(); \
cin.t... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["-", 64, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 64, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 31, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 31, 22], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22], ["+", 0... | 1 | 200 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
cout << (N / X) * T + (N % X == 0 ? 0 : 1) << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
cout << (N / X) * T + (N % X == 0 ? 0 : 1) * T << endl;
} | [["+", 0, 16, 31, 16, 12, 16, 12, 16, 17, 48], ["+", 0, 16, 31, 16, 12, 16, 12, 16, 12, 22]] | 1 | 51 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define reps(i, n) for (int i = 1, i##_len = (n); i <= i##_len; ++i)
#define rrep(i, n) for (int i = ((int)(n)-1); i >= 0; --i)
#define rreps(i, n) for (int i = ((int)(n)); i > 0; --i)
#define ALL(x) (x).begin(), (x).end()
#defi... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define reps(i, n) for (int i = 1, i##_len = (n); i <= i##_len; ++i)
#define rrep(i, n) for (int i = ((int)(n)-1); i >= 0; --i)
#define rreps(i, n) for (int i = ((int)(n)); i > 0; --i)
#define ALL(x) (x).begin(), (x).end()
#defi... | [["+", 12, 23, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 43, 49, 50, 51, 16, 12, 23, 0, 25]] | 1 | 181 |
A,B,C=map(int, input().split())
i,j=divmod(A,B)
if j == 0:
j=0
ttt=(i+j)*C
print(ttt) | A,B,C=map(int, input().split())
i,j=divmod(A,B)
if j == 0:
j=0
else:
j=1
ttt=(i+j)*C
print(ttt)
| [["+", 36, 36, 0, 656, 0, 57, 75, 76, 0, 95], ["+", 36, 36, 0, 656, 0, 57, 75, 76, 0, 102], ["+", 75, 76, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 75, 76, 8, 196, 0, 1, 0, 662, 0, 32], ["+", 75, 76, 8, 196, 0, 1, 0, 662, 12, 612]] | 5 | 49 |
# Hey, there Stalker!!!
# This Code was written by:
# ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
# ▒▒╔╗╔═══╦═══╗▒▒▒╔╗▒▒▒
# ▒╔╝║║╔═╗║╔═╗╠╗▒▒║║▒▒▒
# ▒╚╗║║║║║║║║║╠╬══╣║╔╗▒
# ▒▒║║║║║║║║║║╠╣║═╣╚╝╝▒
# ▒╔╝╚╣╚═╝║╚═╝║║║═╣╔╗╗▒
# ▒╚══╩═══╩═══╣╠══╩╝╚╝▒
# ▒▒▒▒▒▒▒▒▒▒▒╔╝║▒▒▒▒▒▒▒
# ▒▒▒▒▒▒▒▒▒▒▒╚═╝▒▒▒▒▒▒▒
# ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
#from functools import reduc... | # Hey, there Stalker!!!
# This Code was written by:
# ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
# ▒▒╔╗╔═══╦═══╗▒▒▒╔╗▒▒▒
# ▒╔╝║║╔═╗║╔═╗╠╗▒▒║║▒▒▒
# ▒╚╗║║║║║║║║║╠╬══╣║╔╗▒
# ▒▒║║║║║║║║║║╠╣║═╣╚╝╝▒
# ▒╔╝╚╣╚═╝║╚═╝║║║═╣╔╗╗▒
# ▒╚══╩═══╩═══╣╠══╩╝╚╝▒
# ▒▒▒▒▒▒▒▒▒▒▒╔╝║▒▒▒▒▒▒▒
# ▒▒▒▒▒▒▒▒▒▒▒╚═╝▒▒▒▒▒▒▒
# ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
#from functools import reduc... | [["-", 3, 4, 0, 657, 12, 652, 63, 319, 319, 22], ["+", 3, 4, 0, 657, 12, 652, 63, 319, 319, 22]] | 5 | 1,032 |
#include "bits/stdc++.h"
using namespace std;
void Main() {
int N, X, T;
cin >> N >> X >> T;
int ans = (N / X) * T;
if (N % T != 0) {
ans += T;
}
cout << ans << endl;
}
int main() {
std::cout << std::fixed << std::setprecision(15);
Main();
return 0;
}
| #include "bits/stdc++.h"
using namespace std;
void Main() {
int N, X, T;
cin >> N >> X >> T;
int ans = (N / X) * T;
if (N % X != 0) {
ans += T;
}
cout << ans << endl;
}
int main() {
std::cout << std::fixed << std::setprecision(15);
Main();
return 0;
}
| [["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 88 |
#include <iostream>
#include <map>
#include <string>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
cout << (((n / x) + (int)(bool)(n % x)) /* *t */);
} | #include <iostream>
#include <map>
#include <string>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
cout << (((n / x) + (int)(bool)(n % x)) * t);
} | [["+", 0, 1, 0, 16, 12, 23, 0, 16, 17, 48], ["+", 0, 1, 0, 16, 12, 23, 0, 16, 12, 22]] | 1 | 56 |
#include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
double N, X, T;
cin >> N;
cin >> X;
cin >> T;
cout << ceil(N / X) * T << endl;
return 0;
} | #include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
double N, X, T;
cin >> N;
cin >> X;
cin >> T;
cout << (int)(ceil(N / X) * T) << endl;
return 0;
} | [["+", 0, 1, 0, 16, 31, 16, 12, 74, 0, 24], ["+", 0, 16, 31, 16, 12, 74, 39, 77, 39, 40], ["+", 0, 1, 0, 16, 31, 16, 12, 74, 0, 25], ["+", 0, 16, 31, 16, 12, 74, 51, 23, 0, 24], ["+", 0, 16, 31, 16, 12, 74, 51, 23, 0, 25]] | 1 | 50 |
a,b,c = map(int,input().split())
if a%b ==0:
time = a%b * c
else:
time = (a%b + 1) *c
print(time)
| a,b,c = map(int,input().split())
if a%b ==0:
time = (a//b) * c
else:
time = (a//b + 1) *c
print(time)
| [["+", 0, 1, 0, 662, 12, 657, 31, 23, 0, 24], ["-", 0, 1, 0, 662, 12, 657, 31, 657, 17, 109], ["+", 0, 662, 12, 657, 31, 23, 0, 657, 17, 676], ["+", 0, 1, 0, 662, 12, 657, 31, 23, 0, 25], ["-", 12, 657, 31, 23, 0, 657, 31, 657, 17, 109], ["+", 12, 657, 31, 23, 0, 657, 31, 657, 17, 676]] | 5 | 49 |
#include <iostream>
using namespace std;
int main() {
int result = 0;
int n, x, t;
cin >> n >> x >> t;
for (int i = 1; i < n; i++) {
if (n <= (x * i)) {
result = t * i;
break;
}
}
cout << result << "\n";
}
|
#include <iostream>
using namespace std;
int main() {
int result = 0;
int n, x, t;
cin >> n >> x >> t;
for (int i = 1; i < 10000; i++) {
if (n <= (x * i)) {
result = t * i;
break;
}
}
cout << result << "\n";
}
| [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 76 |
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)) | [["-", 0, 657, 12, 652, 3, 4, 0, 657, 17, 676], ["+", 0, 657, 12, 652, 3, 4, 0, 657, 17, 85]] | 5 | 33 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int X, T, N;
cin >> N >> X >> T;
X = N / X;
if (N % X)
X++;
cout << X * T;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, T, N, A;
cin >> N >> X >> T;
A = N / X;
if (N % X)
A++;
cout << A * T;
}
| [["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["-", 8, 9, 0, 57, 64, 1, 0, 27, 28, 22], ["+", 8, 9, 0, 57, 64, 1, 0, 27, 28, 22], ["-", 8, 9, 0, 1, 0, 16, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 16, 12,... | 1 | 48 |
N, X, T = map(int, input().split())
if N % T == 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) | [["-", 0, 656, 0, 57, 15, 666, 0, 657, 12, 22], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 12, 22]] | 5 | 53 |
"use strict";
const main = (arg) => {
const [orderSize, capacity, makeTime] = arg.trim().split(" ");
console.log(Math.ceil((orderSize / capacity) * makeTime));
};
main(require("fs").readFileSync("/dev/stdin", "utf8"));
| "use strict";
const main = (arg) => {
const [orderSize, capacity, makeTime] = arg.trim().split(" ");
console.log(Math.ceil(orderSize / capacity) * makeTime);
};
main(require("fs").readFileSync("/dev/stdin", "utf8"));
| [["-", 0, 2, 3, 3, 0, 16, 31, 23, 0, 24], ["-", 0, 2, 3, 3, 0, 2, 3, 3, 0, 25]] | 2 | 75 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
cout << ceil(n / float(x)) * t << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
cout << int(ceil(n / float(x)) * t) << endl;
} | [["+", 0, 1, 0, 16, 31, 16, 12, 2, 63, 40], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 25]] | 1 | 43 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
int main() {
int n, x, t, cnt = 0;
cin >> n >> x >> t;
for (int i = 1; i <= n; i++) {
cnt++;
if (n < x * i) {
break;
}
}
cout << t * cnt << endl;
return 0;
} | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
int main() {
int n, x, t, cnt = 0;
cin >> n >> x >> t;
for (int i = 1; i <= n; i++) {
cnt++;
if (n <= x * i) {
break;
}
}
cout << t * cnt << endl;
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 87 |
import math
N,X,T=map(int,input().split(' '))
ans=math.ceil(N/X)
print(ans) | import math
N,X,T=map(int,input().split(' '))
ans=math.ceil(N/X)*T
print(ans) | [["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 48], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22]] | 5 | 37 |
#include <stdio.h>
int main() {
int n, x, t;
scanf("%d %d %d", &n, &x, &t);
if (n % x == 0)
n += 1;
printf("%d", t * ((n / x) + 1));
return 0;
}
| #include <stdio.h>
int main() {
int n, x, t;
scanf("%d %d %d", &n, &x, &t);
if (n % x == 0)
n -= 1;
printf("%d", t * ((n / x) + 1));
return 0;
} | [["-", 8, 9, 0, 57, 64, 1, 0, 11, 17, 107], ["+", 8, 9, 0, 57, 64, 1, 0, 11, 17, 110]] | 0 | 65 |
#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;
typedef tree<int, null_type, less_equal<int>, rb_tree_tag,
tree_order_statistics_node_update>
ordered_set;
const int MAX_N = 1e5 + 5;
const int MAX_... | #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;
typedef tree<int, null_type, less_equal<int>, rb_tree_tag,
tree_order_statistics_node_update>
ordered_set;
const int MAX_N = 1e5 + 5;
const int MAX_... | [["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["+", 0, 16, 12, 23, 0, 2, 3, 4, 0, 25]] | 1 | 297 |
/* Welcome to my Code */
#include <bits/stdc++.h>
#define ll long long int
#define i(a, n) int a = n;
#define l(a, n) ll a = n;
#define d(a, n) double a = n;
#define s(a) string a;
#define c(a) \
ll a; ... | /* Welcome to my Code */
#include <bits/stdc++.h>
#define ll long long int
#define i(a, n) int a = n;
#define l(a, n) ll a = n;
#define d(a, n) double a = n;
#define s(a) string a;
#define c(a) \
ll a; ... | [["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22]] | 1 | 232 |
N, X, T = list(map(int, input().strip().split()))
ans = (int(N/X)+1)*T
print(ans) | N, X, T = list(map(int, input().strip().split()))
ans = (-(-N//X))*T
print(ans) | [["-", 12, 657, 31, 23, 0, 657, 31, 652, 63, 22], ["+", 0, 662, 12, 657, 31, 23, 0, 664, 17, 33], ["+", 0, 664, 28, 23, 0, 657, 31, 664, 17, 33], ["-", 0, 657, 31, 652, 3, 4, 0, 657, 17, 85], ["+", 31, 23, 0, 664, 28, 23, 0, 657, 17, 676], ["-", 0, 662, 12, 657, 31, 23, 0, 657, 17, 72], ["-", 0, 662, 12, 657, 31, 23, 0... | 5 | 43 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
int times;
times = ceil(N / X);
cout << times * T << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
int times;
times = ceil((double)N / (double)X);
cout << times * T << endl;
} | [["+", 12, 2, 3, 4, 0, 16, 31, 74, 0, 24], ["+", 3, 4, 0, 16, 31, 74, 39, 77, 39, 40], ["+", 12, 2, 3, 4, 0, 16, 31, 74, 0, 25], ["+", 12, 2, 3, 4, 0, 16, 12, 74, 0, 24], ["+", 3, 4, 0, 16, 12, 74, 39, 77, 39, 40], ["+", 12, 2, 3, 4, 0, 16, 12, 74, 0, 25]] | 1 | 47 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int n;
int x;
int t;
cin >> n >> x >> t;
int ans = 0;
if (n < x)
ans = t;
if (n % t == 0)
ans = (n / x) * t;
else
ans = (n / x + 1) * t;
cout << ans << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int n;
int x;
int t;
cin >> n >> x >> t;
int ans = 0;
if (n <= x)
ans = t;
else if (n % x == 0)
ans = (n / x) * t;
else
ans = (n / x + 1) * t;
cout << ans << endl;
return 0;
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 90 |
import static java.lang.Long.max;
import java.io.*;
import java.util.Arrays;
import java.util.StringTokenizer;
public class Main {
static class Pair {
int num;
int cut;
Pair(int num, int cut) {
this.num = num;
this.cut = cut;
}
double getVal() { return -num / (double)cut; }
}
... | import static java.lang.Long.max;
import java.io.*;
import java.util.Arrays;
import java.util.StringTokenizer;
public class Main {
static class Pair {
int num;
int cut;
Pair(int num, int cut) {
this.num = num;
this.cut = cut;
}
double getVal() { return -num / (double)cut; }
}
... | [["-", 31, 74, 51, 492, 3, 4, 0, 16, 31, 22], ["+", 31, 74, 51, 492, 3, 4, 0, 16, 31, 22], ["-", 31, 74, 51, 492, 3, 4, 0, 16, 12, 22], ["+", 31, 74, 51, 492, 3, 4, 0, 16, 12, 22]] | 3 | 1,004 |
#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, 1, 0, 16, 31, 16, 12, 16, 12, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22]] | 1 | 62 |
process.stdin.resume();
process.stdin.setEncoding('utf-8');
let inputString = '';
let currentLine = 0;
process.stdin.on('data', inputStdin => { inputString += inputStdin; });
process.stdin.on('end', _ => {
inputString =
inputString.trim().split('\n').map(string => { return string.trim(); });
probA();
});
... | process.stdin.resume();
process.stdin.setEncoding('utf-8');
let inputString = '';
let currentLine = 0;
process.stdin.on('data', inputStdin => { inputString += inputStdin; });
process.stdin.on('end', _ => {
inputString =
inputString.trim().split('\n').map(string => { return string.trim(); });
atA();
});
f... | [["-", 0, 568, 8, 556, 0, 1, 0, 2, 63, 22], ["+", 0, 568, 8, 556, 0, 1, 0, 2, 63, 22]] | 2 | 832 |
n, x, t = map(int, input().split())
if n%x > 0:
print(t * (n//x) + 1)
else:
print(t * (n//x))
| n, x, t = map(int, input().split())
if n%x > 0:
print(t * (n//x + 1))
else:
print(t * (n//x)) | [["-", 3, 4, 0, 657, 31, 657, 12, 23, 0, 25], ["+", 0, 652, 3, 4, 0, 657, 12, 23, 0, 25]] | 5 | 49 |
N,X,T = (int(x) for x in input().split())
if N%X == 0:
n = X
else:
n = N//X+1
print(n*T) | N,X,T = (int(x) for x in input().split())
if N%X == 0:
n = N//X
else:
n = N//X+1
print(n*T) | [["+", 64, 196, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 64, 196, 0, 1, 0, 662, 12, 657, 17, 676]] | 5 | 47 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
std::cout << std::setprecision(9) << std::endl;
int N, X, T;
cin >> N >> X >> T;
std::cout << ceil(N / X) * T << "\n";
return 0;
} |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
std::cout << std::setprecision(9) << std::endl;
double N, X, T;
cin >> N >> X >> T;
std::cout << ceil(N / X) * T << "\n";
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]] | 1 | 88 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, t, f = 0, c = 0;
cin >> n >> x >> t;
int i = 0;
while (f == 0) {
c += x;
i++;
if (n <= c)
break;
}
cout << t;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, t, f = 0, c = 0;
cin >> n >> x >> t;
int i = 0;
while (f == 0) {
c += x;
i++;
if (n <= c)
break;
}
cout << i * t;
}
| [["+", 8, 9, 0, 1, 0, 16, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 17, 48]] | 1 | 67 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (long long int i = 0; i < (n); i++)
int main() {
double a, b, c;
cin >> a >> b >> c;
double d = ceil(a / b);
cout << d * c << endl;
} | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (long long int i = 0; i < (n); i++)
int main() {
double a, b, c;
cin >> a >> b >> c;
double d = ceil(a / b);
cout << int(d * c) << endl;
} | [["+", 0, 1, 0, 16, 31, 16, 12, 2, 63, 40], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 25]] | 1 | 53 |
#include <iostream>
#include <sstream>
#include <unordered_set>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
int x;
cin >> x;
int t;
cin >> t;
if (n % x == 0) {
cout << n / x * t << endl;
} else {
cout << ((n / x)) + 1 * t << endl;
}
} | #include <iostream>
#include <sstream>
#include <unordered_set>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
int x;
cin >> x;
int t;
cin >> 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, 25], ["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 25]] | 1 | 78 |
N,X,T = map(int, input().split())
ans = 0
while True:
N -= X
ans += T
if N < 0: break
print(ans) | N,X,T = map(int, input().split())
ans = 0
while True:
N -= X
ans += T
if N <= 0: break
print(ans)
| [["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 40 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <set>
#include <vector>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
if (n % x == 0) {
cout << n * t << endl;
} else {
cout << ((n / x) + 1) * t << endl;
}
} | #include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <set>
#include <vector>
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, 16, 17, 85], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22]] | 1 | 74 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pb push_back
int N = 2e5 + 5;
void solve_test_case() {
ll n, x, t;
cin >> n >> x >> t;
ll d = n / x;
if (n > x)
cout << (d * t + (t * (d % t != 0))) << "\n";
else {
cout << t << "\n";
}
}
signed main() {
ios::sync_with_st... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pb push_back
int N = 2e5 + 5;
void solve_test_case() {
ll n, x, t;
cin >> n >> x >> t;
ll d = n / x;
if (n > x)
cout << (d * t + (t * (n % x != 0))) << "\n";
else {
cout << t << "\n";
}
}
signed main() {
ios::sync_with_st... | [["-", 0, 16, 12, 23, 0, 16, 31, 16, 31, 22], ["+", 0, 16, 12, 23, 0, 16, 31, 16, 31, 22], ["-", 0, 16, 12, 23, 0, 16, 31, 16, 12, 22], ["+", 0, 16, 12, 23, 0, 16, 31, 16, 12, 22]] | 1 | 136 |
a = input("N X T").split()
n = int(a[0])
x = int(a[1])
t = int(a[2])
ans = (n // x) * t
if n % x > 0:
ans += t
print(ans) | a = input("").split()
n = int(a[0])
x = int(a[1])
t = int(a[2])
ans = (n // x) * t
if n % x > 0:
ans += t
print(ans) | [["-", 63, 319, 500, 652, 3, 4, 0, 557, 0, 6]] | 5 | 62 |
#include <bits/stdc++.h>
#define all(x) (x).begin(), (x).end()
#define YES() printf("YES\n")
#define NO() printf("NO\n")
#define Yes() printf("Yes\n")
#define No() printf("No\n")
#define ll long long
#define ld long double
#define pb push_back
#define MOD 1000000007
#define LLMN LONG_LONG_MIN
#define LLMX LONG_LONG_MA... | #include <bits/stdc++.h>
#define all(x) (x).begin(), (x).end()
#define YES() printf("YES\n")
#define NO() printf("NO\n")
#define Yes() printf("Yes\n")
#define No() printf("No\n")
#define ll long long
#define ld long double
#define pb push_back
#define MOD 1000000007
#define LLMN LONG_LONG_MIN
#define LLMX LONG_LONG_MA... | [["+", 64, 1, 0, 16, 31, 16, 12, 16, 17, 48], ["+", 64, 1, 0, 16, 31, 16, 12, 16, 12, 22], ["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["+", 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 | 139 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
cout << ceil(float(n) / float(x)) * t;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
cout << int(ceil(float(n) / float(x)) * t);
return 0;
} | [["+", 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 | 47 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
signed main() {
int N, X, T;
cin >> N >> X >> T;
int ans = ceil(N / X) * T;
cout << ans << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
signed main() {
double N, X, T;
cin >> N >> X >> T;
int ans = ceil(N / X) * T;
cout << ans << endl;
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]] | 1 | 54 |
import sys
input = lambda : sys.stdin.readline().rstrip()
sys.setrecursionlimit(max(1000, 10**9))
write = lambda x: sys.stdout.write(x+"\n")
n,x,t = list(map(int, input().split()))
ans = t * (n//x + int(n&x!=0))
print(ans) | import sys
input = lambda : sys.stdin.readline().rstrip()
sys.setrecursionlimit(max(1000, 10**9))
write = lambda x: sys.stdout.write(x+"\n")
n,x,t = list(map(int, input().split()))
ans = t * (n//x + int(n%x!=0))
print(ans) | [["-", 12, 652, 3, 4, 0, 666, 0, 657, 17, 67], ["+", 12, 652, 3, 4, 0, 666, 0, 657, 17, 109]] | 5 | 90 |
n,x,t =input().split()
n =int(n)
x =int(x)
t =int(t)
s =0
while True:
if n < 0:
break
else:
n -= x
s += t
print(s) | n,x,t =input().split()
n =int(n)
x =int(x)
t =int(t)
s =0
while True:
if n <= 0:
break
else:
n -= x
s +=1
print(s*t) | [["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 19], ["-", 75, 76, 8, 196, 0, 1, 0, 677, 12, 22], ["+", 75, 76, 8, 196, 0, 1, 0, 677, 12, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 48], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22]] | 5 | 55 |
N,X,T = map(int, input().split()) # 3個の数字の入力を受け取る
m=(N//X)
m1=m*T
if N%X==0:
print(m)
else:
print(m+1)
| N,X,T = map(int, input().split()) # 3個の数字の入力を受け取る
m=(N//X)
m1=m*T
if N%X==0:
print(m1)
else:
print(m1+T)
| [["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 31, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 31, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22]] | 5 | 50 |
s = input().split()
N = int(s[0])
X = int(s[1])
T = int(s[2])
if N%X == 0:
print((N//X)*T)
else:
print((N/X+1)*T)
| s = input().split()
N = int(s[0])
X = int(s[1])
T = int(s[2])
if N%X == 0:
print((N//X)*T)
else:
print((N//X+1)*T)
| [["-", 0, 657, 31, 23, 0, 657, 31, 657, 17, 85], ["+", 0, 657, 31, 23, 0, 657, 31, 657, 17, 676]] | 5 | 67 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
long long n, x, t;
cin >> n >> x >> t;
double tt = ceil(double(n) / double(x));
// cout<<tt<<endl;
cout << tt * t << endl;
} | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
long long n, x, t;
cin >> n >> x >> t;
double tt = ceil(double(n) / double(x));
// cout<<tt<<endl;
cout << long(tt * t) << endl;
} | [["+", 0, 1, 0, 16, 31, 16, 12, 2, 63, 22], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 25]] | 1 | 56 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int res = (int)Math.ceil(a / b) * c;
System.out.println(res);
}
} | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int res = (int)(Math.ceil(a / (double)b) * c);
System.out.println(res);
}
}
| [["+", 0, 503, 49, 200, 51, 74, 51, 23, 0, 24], ["+", 31, 492, 3, 4, 0, 16, 12, 74, 0, 24], ["+", 3, 4, 0, 16, 12, 74, 39, 511, 0, 512], ["+", 31, 492, 3, 4, 0, 16, 12, 74, 0, 25], ["+", 0, 503, 49, 200, 51, 74, 51, 23, 0, 25]] | 3 | 88 |
#include <bits/stdc++.h>
#define endl "\n"
#define ff first
#define ss second
#define PB push_back
#define MP make_pair
#define ll long long
#define llu unsigned long long
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
#define ABS(X) ((X) < 0 ? -(X) : (X))
#define LCM(X, Y) (((X... | #include <bits/stdc++.h>
#define endl "\n"
#define ff first
#define ss second
#define PB push_back
#define MP make_pair
#define ll long long
#define llu unsigned long long
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
#define ABS(X) ((X) < 0 ? -(X) : (X))
#define LCM(X, Y) (((X... | [["+", 0, 1, 0, 16, 31, 16, 12, 74, 0, 24], ["+", 0, 16, 31, 16, 12, 74, 39, 77, 39, 40], ["+", 0, 1, 0, 16, 31, 16, 12, 74, 0, 25], ["+", 0, 16, 31, 16, 12, 74, 51, 23, 0, 24], ["+", 0, 16, 31, 16, 12, 74, 51, 23, 0, 25]] | 1 | 328 |
#include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
#include <math.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
long n;
long x;
long t;
long total;
int main() {
// nを入力
cin >> n >> x >> t;
long total = ceil(n / x);
cout << total * t << endl;
} |
#include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
#include <math.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
double n;
double x;
long t;
long total;
int main() {
// nを入力
cin >> n >> x >> t;
long total = ceil(n / x);
cout << total * t << endl;
} | [["-", 36, 36, 0, 30, 0, 43, 39, 86, 0, 96], ["+", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40]] | 1 | 65 |
n, x, t = map(int, input().split())
cnt = n/x
if n%x > 0:
cnt += 1
print(int(cnt*t)) | n, x, t = map(int, input().split())
cnt = n // x
if n % x > 0:
cnt += 1
print(int(cnt*t)) | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 85], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676]] | 5 | 42 |
import math
N, X, T = list(map(int, input().rstrip().split(' ')))
ans = math.floor(N / X) * T
print(ans) | import math
N, X, T = list(map(int, input().rstrip().split(' ')))
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 | 46 |
#include <stdio.h>
int main(void) {
char buf[1000];
int n, m, l;
int a = 0;
fgets(buf, sizeof(buf), stdin);
sscanf(buf, "%d %d %d", &n, &m, &l);
if ((n % m) != 0) {
a = (n / m) * l + l;
printf("%d\n", a);
}
else if (n % m == 0) {
printf("%d\n", n * l);
}
return 0;
}
| #include <stdio.h>
int main(void) {
char buf[1000];
int n, m, l;
int a = 0;
fgets(buf, sizeof(buf), stdin);
sscanf(buf, "%d %d %d", &n, &m, &l);
if ((n % m) != 0) {
a = (n / m) * l + l;
printf("%d\n", a);
}
else if (n % m == 0) {
printf("%d\n", (n / m) * l);
}
return 0;
} | [["+", 0, 2, 3, 4, 0, 16, 31, 23, 0, 24], ["+", 3, 4, 0, 16, 31, 23, 0, 16, 17, 85], ["+", 3, 4, 0, 16, 31, 23, 0, 16, 12, 22], ["+", 0, 2, 3, 4, 0, 16, 31, 23, 0, 25]] | 0 | 117 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.