problem_id stringlengths 6 6 | buggy_code stringlengths 8 526k | fixed_code stringlengths 12 526k | labels listlengths 0 15 ⌀ | buggy_submission_id int64 1 1.54M | fixed_submission_id int64 2 1.54M | user_id stringlengths 10 10 | language stringclasses 8
values |
|---|---|---|---|---|---|---|---|
p02576 | #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;
} | [
"expression.operation.binary.remove"
] | 272,523 | 272,524 | u470507123 | cpp |
p02576 | #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... | [
"call.remove",
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 272,525 | 272,526 | u727002905 | cpp |
p02576 | #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... | [
"call.remove"
] | 272,527 | 272,526 | u727002905 | cpp |
p02576 | #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;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 272,546 | 272,547 | u470650262 | cpp |
p02576 | #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;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 272,548 | 272,547 | u470650262 | cpp |
p02576 | #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;
... | [
"type_conversion.add"
] | 272,549 | 272,550 | u488672860 | cpp |
p02576 | #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);
/////... | [
"identifier.change",
"io.output.change"
] | 272,569 | 272,570 | u351173534 | cpp |
p02576 | //#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... | [
"type_conversion.add"
] | 272,580 | 272,581 | u769569814 | cpp |
p02576 | #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;
}
}
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 272,588 | 272,589 | u664865015 | cpp |
p02576 | #include <iostream>
using namespace std;
int main() {
int n, x, y;
cin >> n >> x >> y;
if (n % y == 0) {
cout << (y / x) * n << 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;
}
}
| [
"identifier.change",
"control_flow.branch.if.condition.change",
"io.output.change"
] | 272,590 | 272,589 | u664865015 | cpp |
p02576 | #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) ... | [
"expression.operation.binary.remove"
] | 272,611 | 272,612 | u842917248 | cpp |
p02576 | #include <stdio.h>
int main() {
int n, x, t;
scanf("%d", &n);
scanf("%d", &x);
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;
scanf("%d", &n);
scanf("%d", &x);
scanf("%d", &t);
printf("%d\n", (n % x == 0) ? t * (n / x) : t * ((n / x) + 1));
return 0;
}
| [
"expression.operation.binary.add"
] | 272,616 | 272,617 | u045114088 | cpp |
p02576 | #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;
}
| [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 272,620 | 272,621 | u045114088 | cpp |
p02576 | #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) ? 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;
}
| [
"control_flow.branch.if.condition.change"
] | 272,623 | 272,621 | u045114088 | cpp |
p02576 | #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;
}
| [
"expression.operation.binary.add"
] | 272,624 | 272,625 | u045114088 | cpp |
p02576 | //#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... | [
"expression.operator.arithmetic.change",
"io.output.change"
] | 272,647 | 272,648 | u155416173 | cpp |
p02576 | #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;
} | [] | 272,649 | 272,650 | u539267833 | cpp |
p02576 | #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;
}
}
| [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 272,651 | 272,652 | u694766284 | cpp |
p02576 | #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;
} | [] | 272,655 | 272,656 | u986225383 | cpp |
p02576 | // warm heart, wagging tail,and a smile just for you!
// ███████████
// ███╬╬╬╬╬╬╬╬╬╬███
// ███╬╬╬╬╬████╬╬╬╬╬╬███
// ... | // warm heart, wagging tail,and a smile just for you!
// ███████████
// ███╬╬╬╬╬╬╬╬╬╬███
// ███╬╬╬╬╬████╬╬╬╬╬╬███
// ... | [
"identifier.change",
"io.output.change"
] | 272,680 | 272,681 | u239493918 | cpp |
p02576 | #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)
... | [
"call.add",
"call.arguments.change"
] | 272,690 | 272,691 | u373027540 | cpp |
p02576 | #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;
}
| [] | 272,694 | 272,695 | u805277811 | cpp |
p02576 | #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;
} | [
"expression.operation.binary.remove"
] | 272,696 | 272,697 | u006684434 | cpp |
p02576 | #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 * 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;
} | [] | 272,698 | 272,697 | u006684434 | cpp |
p02576 | #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;
}
| [
"expression.operation.binary.remove",
"identifier.change",
"io.output.change"
] | 272,703 | 272,704 | u147541642 | cpp |
p02576 | #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;
} | [
"expression.operation.binary.remove"
] | 272,709 | 272,710 | u544535117 | cpp |
p02576 | #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... | [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove",
"expression.operation.binary.change"
] | 272,717 | 272,718 | u508136841 | cpp |
p02576 | #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;
}
} | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 272,726 | 272,727 | u896528609 | cpp |
p02576 | #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;
}
| [
"call.add",
"call.arguments.change"
] | 272,731 | 272,732 | u932538724 | cpp |
p02576 | #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;
} | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 272,746 | 272,747 | u609576113 | cpp |
p02576 | #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;
} | [
"variable_declaration.type.primitive.change"
] | 272,753 | 272,754 | u880988263 | cpp |
p02576 | #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;
}
| [
"expression.operator.arithmetic.change",
"io.output.change",
"identifier.replace.add",
"literal.replace.remove"
] | 272,757 | 272,758 | u516876944 | cpp |
p02576 | #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;
... | [
"expression.operation.binary.remove"
] | 272,761 | 272,762 | u895725693 | cpp |
p02576 | #include <iostream>
using namespace std;
int main() {
int N, X, T, nokori, i;
cin >> N;
cin >> X;
cin >> T;
nokori = N;
while (true) {
if (nokori - X > 0) {
nokori -= X;
i++;
} else {
i++;
break;
}
}
cout << i * T;
} | #include <iostream>
using namespace std;
int main() {
int N, X, T, nokori, i;
i = 0;
cin >> N;
cin >> X;
cin >> T;
nokori = N;
while (true) {
if (nokori - X > 0) {
nokori -= X;
i++;
} else {
i++;
break;
}
}
cout << i * T;
} | [
"assignment.add"
] | 272,769 | 272,770 | u684993861 | cpp |
p02576 | #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;
}
| [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change",
"control_flow.branch.if.condition.change"
] | 272,779 | 272,780 | u673058945 | cpp |
p02576 | #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;
} | [
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add"
] | 272,781 | 272,782 | u822742828 | cpp |
p02576 | #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;
} | [
"type_conversion.add"
] | 272,788 | 272,789 | u415865011 | cpp |
p02576 | #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;
}
| [
"call.add",
"call.arguments.change"
] | 272,799 | 272,800 | u524051428 | cpp |
p02576 | #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;
}
| [
"identifier.change",
"io.output.change"
] | 272,809 | 272,810 | u061912210 | cpp |
p02576 | #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;
}
| [
"call.add",
"call.arguments.change"
] | 272,811 | 272,812 | u500376440 | cpp |
p02576 | #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) <... | [
"expression.operator.arithmetic.change",
"control_flow.loop.for.condition.change",
"io.output.change",
"expression.operation.binary.remove"
] | 272,813 | 272,814 | u237022500 | cpp |
p02576 | #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;
}
... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 272,819 | 272,820 | u970467607 | cpp |
p02576 | #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;
} | [
"type_conversion.add"
] | 272,839 | 272,840 | u399756885 | cpp |
p02576 | #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... | [
"type_conversion.add"
] | 272,843 | 272,844 | u303658591 | cpp |
p02576 | #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 ... | [
"variable_declaration.type.change"
] | 272,845 | 272,846 | u369067792 | cpp |
p02576 | #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;
} | [
"identifier.change",
"io.output.change"
] | 272,868 | 272,869 | u934015186 | cpp |
p02576 | #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;
} | [
"call.remove",
"call.arguments.change"
] | 272,870 | 272,871 | u495692658 | cpp |
p02576 | #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;
} | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 272,875 | 272,876 | u922449177 | cpp |
p02576 | #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;
} | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 272,877 | 272,876 | u922449177 | cpp |
p02576 | #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... | [
"expression.operation.binary.change",
"expression.operation.binary.remove"
] | 272,882 | 272,883 | u055751346 | cpp |
p02576 | #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... | [
"expression.operation.binary.change"
] | 272,884 | 272,883 | u055751346 | cpp |
p02576 | #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;
} | [
"variable_declaration.type.primitive.change",
"call.add",
"call.arguments.change"
] | 272,885 | 272,886 | u677037883 | cpp |
p02576 | #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>,... | [
"type_conversion.add"
] | 272,887 | 272,888 | u007007320 | cpp |
p02576 | #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 <<... | [
"variable_declaration.type.primitive.change",
"call.add",
"call.arguments.change",
"expression.operation.binary.remove"
] | 272,891 | 272,892 | u769735739 | cpp |
p02576 | #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;
} | [
"misc.opposites",
"assignment.value.change",
"identifier.change",
"call.function.change",
"expression.operation.binary.change",
"assignment.change"
] | 272,893 | 272,894 | u500476292 | cpp |
p02576 | #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) * 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;
} | [
"type_conversion.add"
] | 272,895 | 272,896 | u530452946 | cpp |
p02576 | #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;
} | [
"type_conversion.add"
] | 272,897 | 272,896 | u530452946 | cpp |
p02576 | #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;
... | [
"control_flow.branch.if.add"
] | 272,898 | 272,899 | u055956970 | cpp |
p02576 | //#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() ... | [
"identifier.change",
"io.output.change"
] | 272,900 | 272,901 | u682300136 | cpp |
p02576 | #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;
} | [
"variable_declaration.type.change"
] | 272,906 | 272,907 | u919740271 | cpp |
p02576 | #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;
} | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 272,908 | 272,909 | u874185074 | cpp |
p02576 | #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);
}
| [
"variable_declaration.type.change"
] | 272,910 | 272,911 | u811526986 | cpp |
p02576 | #include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
cout << (int)(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);
}
| [
"variable_declaration.type.primitive.change",
"io.output.change"
] | 272,912 | 272,911 | u811526986 | cpp |
p02576 | #include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main() {
ll n, x, t;
cin >> n >> x >> t;
cout << (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);
}
| [
"variable_declaration.type.change",
"call.add"
] | 272,913 | 272,911 | u811526986 | cpp |
p02576 | #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;
}
| [] | 272,914 | 272,915 | u512266180 | cpp |
p02576 | #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;
}
}
| [
"expression.operation.binary.remove",
"control_flow.branch.if.condition.change"
] | 272,925 | 272,926 | u951133017 | cpp |
p02576 | #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;
}
} | [
"expression.operation.unary.logical.remove",
"control_flow.branch.if.condition.change"
] | 272,931 | 272,932 | u141873597 | cpp |
p02576 | #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;
}
| [
"expression.operation.binary.add"
] | 272,933 | 272,934 | u680192268 | cpp |
p02576 | #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;
} | [
"call.add",
"call.arguments.change"
] | 272,942 | 272,943 | u269920578 | cpp |
p02576 | #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... | [] | 272,946 | 272,947 | u976983883 | cpp |
p02576 | #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;
} | [
"call.add",
"call.arguments.change"
] | 272,948 | 272,949 | u010666962 | cpp |
p02576 |
#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... | [
"identifier.change",
"control_flow.branch.if.condition.change",
"assignment.value.change",
"expression.operation.binary.change",
"io.output.change"
] | 272,956 | 272,957 | u008857723 | cpp |
p02576 | #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;
} | [
"expression.operation.binary.add"
] | 272,958 | 272,959 | u506320030 | cpp |
p02576 | #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... | [] | 272,960 | 272,961 | u446797786 | cpp |
p02576 | #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;
}
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 272,966 | 272,967 | u138886316 | cpp |
p02576 | #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);
} | [
"expression.operation.binary.add"
] | 272,971 | 272,972 | u217218591 | cpp |
p02576 | #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;
} | [
"type_conversion.add"
] | 272,973 | 272,974 | u725921481 | cpp |
p02576 |
#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";
}
| [
"identifier.replace.remove",
"literal.replace.add",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 272,979 | 272,980 | u061811069 | cpp |
p02576 | #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;
}
| [
"variable_declaration.add",
"assignment.variable.change",
"identifier.change",
"io.output.change"
] | 272,983 | 272,984 | u032223540 | cpp |
p02576 | #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;
} | [
"call.add",
"call.arguments.change"
] | 272,993 | 272,994 | u106854490 | cpp |
p02576 | #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;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 272,997 | 272,998 | u436528677 | cpp |
p02576 | #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_... | [
"call.arguments.change"
] | 273,006 | 273,007 | u827239776 | cpp |
p02576 | #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_... | [
"call.add",
"call.arguments.change"
] | 273,008 | 273,007 | u827239776 | cpp |
p02576 | /* 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; ... | [
"expression.operation.binary.add"
] | 273,009 | 273,010 | u576357372 | cpp |
p02576 | #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;
} | [
"type_conversion.add"
] | 273,013 | 273,014 | u735896835 | cpp |
p02576 | #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 % 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;
}
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 273,015 | 273,016 | u180384293 | cpp |
p02576 | #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;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove",
"identifier.change"
] | 273,017 | 273,016 | u180384293 | cpp |
p02576 | #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;
}
}
| [
"identifier.replace.add",
"literal.replace.remove",
"io.output.change"
] | 273,020 | 273,021 | u522869350 | cpp |
p02576 |
#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;
} | [
"variable_declaration.type.primitive.change"
] | 273,033 | 273,034 | u114622414 | cpp |
p02576 |
#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(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;
} | [
"variable_declaration.type.primitive.change",
"call.remove",
"call.arguments.change"
] | 273,035 | 273,034 | u114622414 | cpp |
p02576 | #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;
}
| [
"expression.operation.binary.add"
] | 273,036 | 273,037 | u098576215 | cpp |
p02576 | #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;
}
} | [] | 273,046 | 273,047 | u218874499 | cpp |
p02576 | #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;
}
} | [
"expression.operation.binary.add"
] | 273,050 | 273,051 | u448598378 | cpp |
p02576 | #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... | [
"identifier.change",
"io.output.change"
] | 273,052 | 273,053 | u446322769 | cpp |
p02576 | #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... | [
"expression.operation.binary.add"
] | 273,056 | 273,057 | u390599800 | cpp |
p02576 | #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;
} | [
"call.add",
"call.arguments.change"
] | 273,060 | 273,061 | u080585251 | cpp |
p02576 | #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;
} | [
"variable_declaration.type.primitive.change"
] | 273,062 | 273,063 | u607746177 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
signed main() {
int N, X, T;
cin >> N >> X >> T;
int ans = floor(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;
} | [
"variable_declaration.type.primitive.change",
"misc.opposites",
"identifier.change",
"call.function.change",
"expression.operation.binary.change"
] | 273,064 | 273,063 | u607746177 | cpp |
p02576 | #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;
} | [
"call.add",
"call.arguments.change"
] | 273,076 | 273,077 | u220196570 | cpp |
p02576 | #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;
} | [
"variable_declaration.type.primitive.change"
] | 273,082 | 273,083 | u578245611 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.