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 |
|---|---|---|---|---|---|---|---|
p02574 | // {{{ by unolight
#include <bits/stdc++.h>
#include <unistd.h>
#pragma GCC diagnostic ignored "-Wunused-result"
#pragma GCC diagnostic ignored "-Wunused-function"
#define SZ(x) ((int)(x).size())
#define ALL(x) begin(x), end(x)
#define RALL(x) rbegin(x), rend(x)
#define REP(i, n) for (int i = 0; i < int(n); i++)
#defin... | // {{{ by unolight
#include <bits/stdc++.h>
#include <unistd.h>
#pragma GCC diagnostic ignored "-Wunused-result"
#pragma GCC diagnostic ignored "-Wunused-function"
#define SZ(x) ((int)(x).size())
#define ALL(x) begin(x), end(x)
#define RALL(x) rbegin(x), rend(x)
#define REP(i, n) for (int i = 0; i < int(n); i++)
#defin... | [] | 271,948 | 271,944 | u385825353 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
map<ll, ll> m;
ll n;
cin >> n;
ll a[n];
for (ll i = 0; i < n; i++) {
cin >> a[i];
}
ll ans = 0;
for (ll i = 0; i < n; i++) {
ll x = a[i]... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
map<ll, ll> m;
ll n;
cin >> n;
ll a[n];
for (ll i = 0; i < n; i++) {
cin >> a[i];
}
ll ans = 0;
for (ll i = 0; i < n; i++) {
ll x = a[i]... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 271,955 | 271,956 | u174471042 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
const int nax = 1e6 + 6;
int val[nax];
int main() {
int n;
cin >> n;
vector<int> a(n);
for (int &x : a)
cin >> x, val[x]++;
int gcd = a[0];
for (int x : a)
gcd = __gcd(gcd, x);
if (gcd != 1) {
cout << "not coprime";
return 0;
}
for (int i... | #include <bits/stdc++.h>
using namespace std;
const int nax = 1e6 + 6;
int val[nax];
int main() {
int n;
cin >> n;
vector<int> a(n);
for (int &x : a)
cin >> x, val[x]++;
int gcd = a[0];
for (int x : a)
gcd = __gcd(gcd, x);
if (gcd != 1) {
cout << "not coprime";
return 0;
}
for (int i... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"expression.operation.binary.remove"
] | 271,959 | 271,960 | u936579409 | cpp |
p02574 | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (n); i++)
using namespace std;
typedef long long ll;
ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; }
int main() {
ll n, g = 0;
ll cnt[1000005];
cin >> n;
rep(i, n) {
ll a;
cin >> a;
cnt[a]++;
g = gcd(g, a);
}
bool ok = tr... | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (n); i++)
using namespace std;
typedef long long ll;
ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; }
int main() {
ll n, g = 0, cnt[1000005] = {};
cin >> n;
rep(i, n) {
ll a;
cin >> a;
cnt[a]++;
g = gcd(g, a);
}
bool ok = tr... | [
"variable_declaration.value.change"
] | 271,982 | 271,981 | u620269708 | cpp |
p02574 | #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;
#define bit_1(a) __builtin_popcount(a)
#define ull unsigned long long
#define ll long long
#define pb push_back
#define pf push_front
#define mpr make_pair
#define ins... | #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;
#define bit_1(a) __builtin_popcount(a)
#define ull unsigned long long
#define ll long long
#define pb push_back
#define pf push_front
#define mpr make_pair
#define ins... | [
"control_flow.loop.for.condition.change",
"control_flow.branch.if.condition.change"
] | 271,983 | 271,984 | u200473040 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
int a[1000005], cnt[1000005], cnt2[1000005];
int main() {
int n, g = 0;
scanf("%d", &n);
for (int i = 1; i <= n; i++)
scanf("%d", &a[i]), cnt[a[i]]++, g = __gcd(a[i], g);
bool ok = 1;
for (int i = 2; i <= 1000000; i++) {
for (int j = i + i; j <= 1000000; j... | #include <bits/stdc++.h>
using namespace std;
int a[1000005], cnt[1000005], cnt2[1000005];
int main() {
int n, g = 0;
scanf("%d", &n);
for (int i = 1; i <= n; i++)
scanf("%d", &a[i]), cnt[a[i]]++, g = __gcd(a[i], g);
bool ok = 1;
for (int i = 2; i <= 1000000; i++) {
for (int j = i; j <= 1000000; j += ... | [
"control_flow.loop.for.initializer.change",
"expression.operation.binary.remove"
] | 271,990 | 271,991 | u854367220 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define print(r) cout << r << endl
#define prints(r) cout << r << " "
#define printline cout << endl
#define lim (ll)(1e6 + 1)
int main() {
ll n;
cin >> n;
vector<ll> arr(lim, 0);
int pc = 1, sc = 1;
ll t;
for (ll i = 0; i < n; i++) {
... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define print(r) cout << r << endl
#define prints(r) cout << r << " "
#define printline cout << endl
#define lim (ll)(1e6 + 1)
int main() {
ll n;
cin >> n;
vector<ll> arr(lim, 0);
int pc = 1, sc = 1;
ll t;
for (ll i = 0; i < n; i++) {
... | [] | 272,004 | 272,005 | u537926697 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
const int MX = 1e6 + 5;
int gcd(int a, int b) {
if (b == 0)
return a;
return gcd(b, a % b);
}
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int n;
cin >> n;
vector<int> a(n), cnt(MX);
int tot_gcd = 0;
for (int i = 0; i < n; ++i) {
cin >> a[i... | #include <bits/stdc++.h>
using namespace std;
const int MX = 1e6 + 5;
int gcd(int a, int b) {
if (b == 0)
return a;
return gcd(b, a % b);
}
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int n;
cin >> n;
vector<int> a(n), cnt(MX);
int tot_gcd = 0;
for (int i = 0; i < n; ++i) {
cin >> a[i... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 272,006 | 272,007 | u452364593 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int MX = 1e6 + 5;
int gcd(int a, int b) {
if (b == 0)
return a;
return gcd(b, a % b);
}
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int n;
cin >> n;
vector<int> a(n);
vector<int> cnt(MX);
int tot_gcd = 0;
for (i... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int MX = 1e6 + 5;
int gcd(int a, int b) {
if (b == 0)
return a;
return gcd(b, a % b);
}
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int n;
cin >> n;
vector<int> a(n);
vector<int> cnt(MX);
int tot_gcd = 0;
for (i... | [
"control_flow.loop.for.update.change",
"assignment.change"
] | 272,008 | 272,009 | u452364593 | cpp |
p02576 | #include <iostream>
using namespace std;
int main(void) {
// Your code here!
int N, X, T;
cin >> N >> X >> T;
int count = N / X;
if (N % T != 0) {
count++;
}
cout << count * T;
}
| #include <iostream>
using namespace std;
int main(void) {
// Your code here!
int N, X, T;
cin >> N >> X >> T;
int count = N / X;
if (N % X != 0) {
count++;
}
cout << count * T;
}
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 272,018 | 272,019 | u066538689 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (ll i = 0; i < n; i++)
#define rep1(i, n) for (int i = 1; i <= n; i++)
#define per(i, n) for (int i = n - 1; i >= 0; i--)
#define per1(i, n) for (int i = n; i > 0; i--)
#define all(v) v.begin(), v.end()
typedef long long ll;
typedef pair<ll, ll> P;
typ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (ll i = 0; i < n; i++)
#define rep1(i, n) for (int i = 1; i <= n; i++)
#define per(i, n) for (int i = n - 1; i >= 0; i--)
#define per1(i, n) for (int i = n; i > 0; i--)
#define all(v) v.begin(), v.end()
typedef long long ll;
typedef pair<ll, ll> P;
typ... | [
"call.arguments.change"
] | 272,033 | 272,034 | u441296840 | cpp |
p02576 | #include <bits/stdc++.h>
#include <cstdio>
using namespace std;
typedef long long int ll;
int main() {
int n, x, t;
cin >> n >> x >> t;
int ans = (n / x + 1) * t;
cout << ans << endl;
}
| #include <bits/stdc++.h>
#include <cstdio>
using namespace std;
typedef long long int ll;
int main() {
double n, x, t;
cin >> n >> x >> t;
int ans = ceil(n / x) * t;
cout << ans << endl;
}
| [
"variable_declaration.type.primitive.change",
"call.add",
"expression.operation.binary.remove"
] | 272,035 | 272,036 | u685922019 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
int minute = 0;
while (N >= 0) {
minute += T;
N -= X;
}
cout << minute << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
int minute = 0;
while (N > 0) {
minute += T;
N -= X;
}
cout << minute << endl;
} | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 272,058 | 272,059 | u388787692 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
int minute = 0;
while (N <= 0) {
minute += T;
N -= X;
}
cout << minute << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
int minute = 0;
while (N > 0) {
minute += T;
N -= X;
}
cout << minute << endl;
} | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 272,060 | 272,059 | u388787692 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
#define FastRead \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
#define endl "\n"
typedef long long ll;
int main() {
ll n, x, t;
cin >> n >> x >> t;
... | #include <bits/stdc++.h>
using namespace std;
#define FastRead \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
#define endl "\n"
typedef long long ll;
int main() {
ll n, x, t;
cin >> n >> x >> t;
... | [
"identifier.change",
"io.output.change"
] | 272,067 | 272,068 | u456245233 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
#define FastRead \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
#define endl "\n"
typedef long long ll;
int main() {
ll n, x, t;
cin >> n >> x >> t;
... | #include <bits/stdc++.h>
using namespace std;
#define FastRead \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
#define endl "\n"
typedef long long ll;
int main() {
ll n, x, t;
cin >> n >> x >> t;
... | [
"expression.operation.binary.remove"
] | 272,069 | 272,068 | u456245233 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
if (N / X == N / X * X) {
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",
"identifier.replace.remove",
"literal.replace.add",
"expression.operation.binary.remove"
] | 272,072 | 272,073 | u669831668 | cpp |
p02576 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
int S = 0;
S += N / X * T;
if (N % T >= 1) {
S += T;
}
cout << S << endl;
} | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
int S = 0;
S += N / X * T;
if (N % X >= 1) {
S += T;
}
cout << S << endl;
} | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 272,085 | 272,086 | u011251290 | cpp |
p02576 | #include <iostream>
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
int ans = (N / X + 1) * T;
cout << ans << endl;
} | #include <iostream>
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
int ans = (N + X - 1) / X * T;
cout << ans << endl;
} | [
"expression.operation.binary.remove"
] | 272,089 | 272,090 | u336661869 | cpp |
p02576 | #include <iostream>
#include <vector>
using namespace std;
int N, X, T;
int main() {
cin >> N >> X >> T;
cout << ((N - 1) / X + 1) * 6;
} | #include <iostream>
#include <vector>
using namespace std;
int N, X, T;
int main() {
cin >> N >> X >> T;
cout << ((N - 1) / X + 1) * T;
} | [
"identifier.replace.add",
"literal.replace.remove",
"io.output.change"
] | 272,105 | 272,106 | u541032448 | cpp |
p02576 | #include <iostream>
using namespace std;
int main() {
int n, x, t, k;
cin >> n >> x >> t;
if (n % x > 0) {
k = 1;
} else {
k = 0;
}
cout << t * (n / x + 1) << endl;
} | #include <iostream>
using namespace std;
int main() {
int n, x, t, k;
cin >> n >> x >> t;
if (n % x > 0) {
k = 1;
} else {
k = 0;
}
cout << t * (n / x + k) << endl;
}
| [
"identifier.replace.add",
"literal.replace.remove",
"io.output.change"
] | 272,110 | 272,111 | u487015778 | cpp |
p02576 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <tuple>
#include <vector>
// ceil(a/b) (a + (b - 1))/ b
using namespace std;
#d... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <tuple>
#include <vector>
// ceil(a/b) (a + (b - 1))/ b
using namespace std;
#d... | [
"variable_declaration.type.primitive.change"
] | 272,112 | 272,113 | u950174376 | cpp |
p02576 |
#include <cmath>
#include <iostream>
#include <string>
using namespace std;
int main() {
int N, X, T, ans;
cin >> N >> X >> T;
if (X == 1) {
ans = N * T;
} else {
ans = ((N + 1) / X + 1) * T;
}
cout << ans;
return 0;
}
|
#include <cmath>
#include <iostream>
#include <string>
using namespace std;
int main() {
int N, X, T, ans;
cin >> N >> X >> T;
if (X == 1) {
ans = N * T;
} else {
ans = ((N - 1) / X + 1) * T;
}
cout << ans;
return 0;
}
| [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 272,114 | 272,115 | u569871019 | cpp |
p02576 | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
int count = 0;
for (int i = T; i <= N; i += X) {
count += T;
}
cout << count << endl;
return 0;
}
| #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
int count = T;
for (int i = X; i < N; i += X) {
count += T;
}
cout << count << endl;
return 0;
}
| [
"variable_declaration.value.change",
"identifier.replace.add",
"literal.replace.remove",
"identifier.change",
"control_flow.loop.for.initializer.change",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 272,118 | 272,117 | u987079769 | cpp |
p02576 | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
int count = 0;
for (int i = T; i < N; i += X) {
count += T;
}
cout << count << endl;
return 0;
} | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
int count = T;
for (int i = X; i < N; i += X) {
count += T;
}
cout << count << endl;
return 0;
}
| [
"variable_declaration.value.change",
"identifier.replace.add",
"literal.replace.remove",
"identifier.change",
"control_flow.loop.for.initializer.change"
] | 272,119 | 272,117 | u987079769 | cpp |
p02576 | #include <algorithm>
#include <deque>
#include <functional>
#include <iostream>
#include <map>
#include <math.h>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <vector>
#define ll long long
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
double times = ceil((doub... | #include <algorithm>
#include <deque>
#include <functional>
#include <iostream>
#include <map>
#include <math.h>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <vector>
#define ll long long
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
int times = ceil((double)... | [
"variable_declaration.type.primitive.change"
] | 272,120 | 272,121 | u522559673 | cpp |
p02576 | /*Anuranjan Srivastava (codersaty)*/
#include <bits/stdc++.h>
#define mod 1000000007
#define pb push_back
#define ll long long
#define pinf INT_MIN
#define minf INT_MAX
#define loop(i, j) for (int i = 1; i <= j; i++)
#define rep(i, j) for (int i = 0; i < j; i++)
#define deb(x) cout << #x << "=" << x << endl
#define deb... | /*Anuranjan Srivastava (codersaty)*/
#include <bits/stdc++.h>
#define mod 1000000007
#define pb push_back
#define ll long long
#define pinf INT_MIN
#define minf INT_MAX
#define loop(i, j) for (int i = 1; i <= j; i++)
#define rep(i, j) for (int i = 0; i < j; i++)
#define deb(x) cout << #x << "=" << x << endl
#define deb... | [
"call.arguments.change",
"io.output.change"
] | 272,127 | 272,128 | u164169837 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
typedef vector<int> vint;
typedef vector<vint> vvint;
static int n, x, t;
int main() {
while (cin >> n >> x >> t) {
cout << ceil(n / double(x)) * t << "\n";
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
typedef vector<int> vint;
typedef vector<vint> vvint;
static int n, x, t;
int main() {
while (cin >> n >> x >> t) {
cout << int(ceil(n / double(x))) * t << "\n";
}
return 0;
}
| [
"call.add",
"call.arguments.change"
] | 272,131 | 272,132 | u846033449 | cpp |
p02576 | #include <iostream>
using namespace std;
int main() {
double a, b, c;
ios::sync_with_stdio(false);
cin.tie(nullptr);
cin >> a >> b >> c;
if (a / b > (int)(a / b)) {
cout << ((int)(a / b) + 1) * c << endl;
} else
cout << (a / b) * c << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
double a, b, c;
ios::sync_with_stdio(false);
cin.tie(nullptr);
cin >> a >> b >> c;
if (a / b > (int)(a / b)) {
cout << ((int)(a / b) + 1) * c << endl;
} else
cout << (int)((a / b) * c) << endl;
return 0;
} | [
"type_conversion.add"
] | 272,152 | 272,153 | u528036644 | cpp |
p02576 | #include <iostream>
using namespace std;
int main() {
double a, b, c;
ios::sync_with_stdio(false);
cin.tie(nullptr);
cin >> a >> b >> c;
if (a / b > (int)(a / b)) {
cout << ((int)(a / b) + 1) * c << endl;
} else
cout << (int)(a / b) * c << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
double a, b, c;
ios::sync_with_stdio(false);
cin.tie(nullptr);
cin >> a >> b >> c;
if (a / b > (int)(a / b)) {
cout << ((int)(a / b) + 1) * c << endl;
} else
cout << (int)((a / b) * c) << endl;
return 0;
} | [] | 272,154 | 272,153 | u528036644 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
int N, X, T, yu, t;
int main() {
cin >> N >> X >> T;
if (N <= X)
cout << T;
else {
yu = (N + X) / X;
t = yu * T;
cout << t;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int N, X, T, yu, t;
int main() {
cin >> N >> X >> T;
if (N <= X)
cout << T;
else {
yu = (N + X - 1) / X;
t = yu * T;
cout << t;
}
return 0;
} | [
"assignment.change"
] | 272,159 | 272,160 | u240708118 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
int N, X, T, yu, t;
int main() {
cin >> N >> X >> T;
if (N <= X)
cout << 1;
else {
yu = (N + X) / X;
t = yu * T;
cout << t;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int N, X, T, yu, t;
int main() {
cin >> N >> X >> T;
if (N <= X)
cout << T;
else {
yu = (N + X - 1) / X;
t = yu * T;
cout << t;
}
return 0;
} | [
"identifier.replace.add",
"literal.replace.remove",
"io.output.change",
"assignment.change"
] | 272,161 | 272,160 | u240708118 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
int main() {
float n, x, t;
cin >> n >> x >> t;
cout << ceil(float(n / x)) * t;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
float n, x, t;
cin >> n >> x >> t;
cout << (int)(ceil(float(n / x)) * t);
return 0;
}
| [
"type_conversion.add"
] | 272,177 | 272,178 | u972466338 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
int main() {
double n, x, t;
cin >> n >> x >> t;
cout << ceil(float(n / x)) * t;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
float n, x, t;
cin >> n >> x >> t;
cout << (int)(ceil(float(n / x)) * t);
return 0;
}
| [
"variable_declaration.type.primitive.change"
] | 272,179 | 272,178 | u972466338 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
cout << ceil(float(n / x)) * t;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
float n, x, t;
cin >> n >> x >> t;
cout << (int)(ceil(float(n / x)) * t);
return 0;
}
| [
"variable_declaration.type.primitive.change"
] | 272,180 | 272,178 | u972466338 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
cout << ceil((float)n / x) * t << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
cout << ((int)ceil((float)n / x) * t) << endl;
} | [] | 272,187 | 272,188 | u890528279 | cpp |
p02576 | #include <cmath>
#include <iostream>
using namespace std;
long long time(int n, int x, int t) { return ceil(n / x) * t; }
int main() {
long long n, x, t;
cin >> n >> x >> t;
cout << time(n, x, t);
}
| #include <cmath>
#include <iostream>
using namespace std;
long long time(double n, int x, int t) { return ceil(n / x) * t; }
int main() {
double n;
long long x, t;
cin >> n >> x >> t;
cout << time(n, x, t);
}
| [
"variable_declaration.type.primitive.change",
"variable_declaration.add",
"variable_declaration.remove"
] | 272,195 | 272,196 | u796060038 | 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 + 1) * T << endl;
}
}
| [
"expression.operation.binary.remove"
] | 272,199 | 272,200 | u792279959 | 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 << endl;
} else {
cout << N / X + 1 << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
if (N % X == 0) {
cout << N / X * T << endl;
} else {
cout << (N / X + 1) * T << endl;
}
}
| [
"expression.operation.binary.add"
] | 272,201 | 272,200 | u792279959 | cpp |
p02576 | #include <iostream>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
cout << (n + 1) / x * t << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
cout << (n + x - 1) / x * t << endl;
return 0;
}
| [
"expression.operation.binary.add"
] | 272,204 | 272,205 | u892630649 | cpp |
p02576 | #include <iostream>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
cout << (n / x + 1) * t << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
cout << (n + x - 1) / x * t << endl;
return 0;
}
| [
"expression.operation.binary.remove"
] | 272,206 | 272,205 | u892630649 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, t;
int z;
cin >> n >> x >> t;
z = (n + 1) / x * t;
cout << z << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, t;
int z;
cin >> n >> x >> t;
z = (n + x - 1) / x * t;
cout << z << endl;
} | [
"assignment.change"
] | 272,207 | 272,208 | u031209394 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
cout << ceil(n / x) * t;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
cout << ((n + x - 1) / x) * t;
return 0;
}
| [
"io.output.change"
] | 272,209 | 272,210 | u110766201 | cpp |
p02576 | #include <bits/stdc++.h>
#define INF 1e9
#define llINF 1e18
#define MOD 1000000007
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define ll long long
#define vi vector<ll>
#define vvi vector<vi>
#define BITLE(n) (1LL << ((ll)n))
#define SUBS(s, f, t) ((s).substr((f), (t) - (f)))
#define ALL... | #include <bits/stdc++.h>
#define INF 1e9
#define llINF 1e18
#define MOD 1000000007
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define ll long long
#define vi vector<ll>
#define vvi vector<vi>
#define BITLE(n) (1LL << ((ll)n))
#define SUBS(s, f, t) ((s).substr((f), (t) - (f)))
#define ALL... | [
"type_conversion.add"
] | 272,213 | 272,214 | u905715926 | cpp |
p02576 | #include <stdio.h>
int main() {
int N, X, T;
scanf("%d %d %d", &N, &X, &T);
N % X == 0 ? printf("%d", T * (N / X)) : printf("%d", 2 * (T * (N / X)));
return 0;
}
| #include <stdio.h>
int main() {
int N, X, T;
scanf("%d %d %d", &N, &X, &T);
N % X == 0 ? printf("%d", T * (N / X)) : printf("%d", (T * (N / X)) + T);
return 0;
}
| [
"expression.operation.binary.remove"
] | 272,219 | 272,220 | u792721945 | cpp |
p02576 | #include <stdio.h>
int main() {
int N, X, T;
scanf("%d %d %d", &N, &X, &T);
N % X == 0 ? printf("%d", T * (N / X)) : printf("%d", 2 * (T * (N / X)));
;
return 0;
} | #include <stdio.h>
int main() {
int N, X, T;
scanf("%d %d %d", &N, &X, &T);
N % X == 0 ? printf("%d", T * (N / X)) : printf("%d", (T * (N / X)) + T);
return 0;
}
| [
"expression.operation.binary.remove"
] | 272,221 | 272,220 | u792721945 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
int ans = 0;
int tak = 0;
for (int i = 1; i <= 1000000; i++) {
tak = x * i;
if (tak > n) {
cout << t * i << endl;
return 0;
}
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
int tak = 0;
for (int i = 1; i <= 1000000; i++) {
tak = x * i;
if (tak >= n) {
cout << t * i << endl;
return 0;
}
}
} | [
"variable_declaration.remove",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 272,224 | 272,225 | u472318109 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, X, T;
int T2;
cin >> N >> X >> T;
if (N % X != 0) {
T2 = T * (N / X);
} else {
T2 = T * (N / X + 1);
}
cout << T2 << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, X, T;
int T2;
cin >> N >> X >> T;
if (N % X != 0) {
T2 = T * (N / X + 1);
} else {
T2 = T * (N / X);
}
cout << T2 << endl;
} | [
"assignment.change",
"expression.operation.binary.remove"
] | 272,237 | 272,238 | u419967147 | cpp |
p02576 | #include <iostream>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
if (n % x != 0) {
cout << (n / x + 1) * t << endl;
} else {
cout << n * t << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
if (n % x != 0) {
cout << (n / x + 1) * t << endl;
} else {
cout << n / x * t << endl;
}
} | [
"expression.operation.binary.add"
] | 272,247 | 272,248 | u559112776 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll mod = 1e9 + 7;
int main() {
ll n, x, t;
cin >> n >> x >> t;
if (n % x == 0)
cout << (n / x) * t;
else
cout << (n / x) * t + 1;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll mod = 1e9 + 7;
int main() {
ll n, x, t;
cin >> n >> x >> t;
if (n % x == 0)
cout << (n / x) * t;
else
cout << (n / x) * t + t;
return 0;
} | [
"identifier.replace.add",
"literal.replace.remove",
"io.output.change"
] | 272,251 | 272,252 | u116954704 | cpp |
p02576 | // main.cpp : Defines the entry point for the application.
//
#include <iostream>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
int n_batch = n / x;
++n_batch;
int t_total = n_batch * t;
cout << t_total << endl;
return 0;
} | // main.cpp : Defines the entry point for the application.
//
#include <iostream>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
int n_batch = n / x;
if (n % x)
++n_batch;
int t_total = n_batch * t;
cout << t_total << endl;
return 0;
} | [
"control_flow.branch.if.add"
] | 272,261 | 272,262 | u020951713 | cpp |
p02576 | #include <bits/stdc++.h>
#include <cmath>
#include <iostream>
using namespace std;
int main() {
double long N, X, T;
cin >> N >> X >> T;
double long ans = ceil(N / X) * T;
cout << ans;
return 0;
}
| #include <bits/stdc++.h>
#include <cmath>
#include <iostream>
using namespace std;
int main() {
double long N, X, T;
cin >> N >> X >> T;
long ans = ceil(N / X) * T;
cout << ans;
return 0;
}
| [] | 272,273 | 272,274 | u294594420 | 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;
template <typename T>
using ordered_set =
tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
#define int long long
#define ar array
#defin... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
template <typename T>
using ordered_set =
tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
#define int long long
#define ar array
#defin... | [
"type_conversion.add"
] | 272,275 | 272,276 | u298328318 | cpp |
p02576 | #include <iostream>
#include <vector>
using namespace std;
int main() {
int n, x, t, div, rem, ans;
cin >> n >> x >> t;
if (n > x) {
div = n / x;
rem = n % x;
if (rem > 0) {
++div;
}
ans = (div * t);
} else if (n == x) {
ans = t;
}
cout << ans;
return 0;
}
| #include <iostream>
#include <vector>
using namespace std;
int main() {
int n, x, t, div, rem, ans = 0;
cin >> n >> x >> t;
if (n > x) {
div = n / x;
rem = n % x;
if (rem > 0) {
++div;
}
ans = (div * t);
} else if (n <= x) {
ans = t;
}
cout << ans;
return 0;
}
| [
"variable_declaration.value.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 272,277 | 272,278 | u113410838 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
cout << (n / x) * t << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
cout << (--n / x * t + t) << endl;
return 0;
} | [] | 272,279 | 272,280 | u879391720 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
cout << (n / x) * t << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
cout << (--n / x + 1) * t << endl;
return 0;
} | [
"expression.operation.binary.add"
] | 272,279 | 272,281 | u879391720 | cpp |
p02576 | #include <bits/stdc++.h>
#define int long long
using namespace std;
int32_t main() {
int n, x, t;
cin >> n >> x >> t;
double k = (double)n / x;
cout << ceil(k) * t << endl;
} | #include <bits/stdc++.h>
#define int long long
using namespace std;
int32_t main() {
int n, x, t;
cin >> n >> x >> t;
double k = (double)n / x;
int answer = ceil(k) * t;
cout << answer;
} | [
"expression.operation.binary.remove"
] | 272,282 | 272,283 | u639117143 | cpp |
p02576 | #include <iostream>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n, x, t;
cin >> n >> x >> t;
if ((n % x) == 0) {
cout << t * (n % x) << endl;
} else {
cout << t * ((n % x) + 1) << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n, x, t;
cin >> n >> x >> t;
if ((n % x) == 0) {
cout << t * (n / x) << endl;
} else {
cout << t * ((n / x) + 1) << endl;
}
return 0;
} | [
"expression.operator.arithmetic.change",
"io.output.change"
] | 272,284 | 272,285 | u477638578 | cpp |
p02576 | #include <algorithm>
#include <cmath> //abs()かfabs()で少数絶対値
#include <cstdlib> //abs()で整数絶対値
#include <deque>
#include <functional> //sort第三引数greater<型名>()で降順
#include <iomanip> //cout<<setw(数字) で空白による桁揃え
#include <iostream> //cout<<right で右揃え
#include <map>
#include <queue>
#include <string>
#include <vector>
u... | #include <algorithm>
#include <cmath> //abs()かfabs()で少数絶対値
#include <cstdlib> //abs()で整数絶対値
#include <deque>
#include <functional> //sort第三引数greater<型名>()で降順
#include <iomanip> //cout<<setw(数字) で空白による桁揃え
#include <iostream> //cout<<right で右揃え
#include <map>
#include <queue>
#include <string>
#include <vector>
u... | [
"expression.operation.binary.remove"
] | 272,292 | 272,293 | u022890424 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
int main() {
float N, X, T, value;
cin >> N >> X >> T;
value = ceil((N - X) / X);
cout << (value + 1) * T;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
float N, X;
int value, T;
cin >> N >> X >> T;
value = ceil((N - X) / X);
cout << (value + 1) * T;
} | [
"variable_declaration.add",
"variable_declaration.remove"
] | 272,296 | 272,297 | u134242909 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
#define INPUT freopen("input.txt", "r", stdin);
#define ll long long
#define ld long double
int main() {
INPUT;
ld n, x, t;
cin >> n >> x >> t;
ld tm = ceil(n / x);
ll ans = tm * t;
cout << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
#define INPUT freopen("input.txt", "r", stdin);
#define ll long long
#define ld long double
int main() {
// INPUT;
ld n, x, t;
cin >> n >> x >> t;
ld tm = ceil(n / x);
ll ans = tm * t;
cout << ans << endl;
} | [] | 272,298 | 272,299 | u080947893 | cpp |
p02576 | /*input
20 12 6
*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long
//#define int long long
int n, x, t;
signed main() {
ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
cin >> n >> x >> t;
cout << ceil((double)n / x) * t;
return 0;
} | /*input
1000 1 1000
*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long
//#define int long long
int n, x, t;
signed main() {
ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
cin >> n >> x >> t;
cout << (int)ceil((double)n / x) * t;
return 0;
} | [
"type_conversion.add"
] | 272,316 | 272,317 | u691045386 | cpp |
p02576 | /*input
*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long
//#define int long long
int n, x, t;
signed main() {
ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
cin >> n >> x >> t;
cout << ceil(n / x) * t;
return 0;
} | /*input
1000 1 1000
*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long
//#define int long long
int n, x, t;
signed main() {
ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
cin >> n >> x >> t;
cout << (int)ceil((double)n / x) * t;
return 0;
} | [
"type_conversion.add"
] | 272,318 | 272,317 | u691045386 | cpp |
p02576 | #include <iostream>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
cout << (n / x) * t + (n % x ? 0 : t);
return 0;
} | #include <iostream>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
cout << (n / x) * t + (n % x ? t : 0);
return 0;
} | [] | 272,319 | 272,320 | u013863409 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int X, T, N;
cin >> N >> X >> T;
int c = 1;
if (N == X) {
cout << T << endl;
} else {
while (1) {
N -= X;
c++;
if (N <= X)
break;
}
cout << c * T << endl;
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int X, T, N;
cin >> N >> X >> T;
int c = 1;
if (N <= X) {
cout << T << endl;
} else {
while (1) {
N -= X;
c++;
if (N <= X)
break;
}
cout << c * T << endl;
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 272,323 | 272,324 | u320040293 | cpp |
p02576 | // Name : Rupa Dey
// Date : 27 august 2020
// joi sri gour hori gobindo...
// gobindo ja hobe vlor jonnoi hobe..
#include <bits/stdc++.h>
#define ll long long
#define d double
#define ld long double
#define vi vector<int>
#define vul vector<ull>
#define vl vector<ll>
#define pb push_back
#define si set<int>
#define sl... | // Name : Rupa Dey
// Date : 27 august 2020
// joi sri gour hori gobindo...
// gobindo ja hobe vlor jonnoi hobe..
#include <bits/stdc++.h>
#define ll long long
#define d double
#define ld long double
#define vi vector<int>
#define vul vector<ull>
#define vl vector<ll>
#define pb push_back
#define si set<int>
#define sl... | [
"expression.operation.binary.remove"
] | 272,328 | 272,329 | u325438527 | cpp |
p02576 | #include <algorithm>
#include <assert.h>
#include <bitset>
#include <deque>
#include <functional>
#include <iostream>
#include <iterator>
#include <limits>
#include <list>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include ... | #include <algorithm>
#include <assert.h>
#include <bitset>
#include <deque>
#include <functional>
#include <iostream>
#include <iterator>
#include <limits>
#include <list>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include ... | [] | 272,330 | 272,331 | u037389976 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int N, X, T;
cin >> N >> X >> T;
if (N % X == 0) {
cout << N / X * T << endl;
} else {
cout << (N % X + 1) * T << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int N, X, T;
cin >> N >> X >> T;
if (N % X == 0) {
cout << N / X * T << endl;
} else {
cout << (N / X + 1) * T << endl;
}
}
| [
"expression.operator.arithmetic.change",
"io.output.change"
] | 272,350 | 272,351 | u044562021 | cpp |
p02576 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <queue>
#include <random>
#inc... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <queue>
#include <random>
#inc... | [
"expression.operation.binary.add"
] | 272,355 | 272,356 | u960267905 | cpp |
p02576 | #include <iostream>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
int a = n / x;
int b = n % x;
if (b == 0)
cout << (a + 1) * t;
else
cout << a * t;
} | #include <iostream>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
int a = n / x;
int b = n % x;
if (b != 0)
cout << (a + 1) * t;
else
cout << a * t;
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 272,369 | 272,370 | u155986725 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using pii = pair<int, int>;
#define INF LONG_MAX
#define MOD 1000000007
#define rng(a) a.begin(), a.end()
#define rrng(a) a.end(), a.begin()
#define endl "\n"
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using pii = pair<int, int>;
#define INF LONG_MAX
#define MOD 1000000007
#define rng(a) a.begin(), a.end()
#define rrng(a) a.end(), a.begin()
#define endl "\n"
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
... | [] | 272,381 | 272,382 | u864171425 | cpp |
p02575 |
//#pragma GCC target("avx2")
#pragma GCC optimize("O3")
//#pragma GCC optimize("unroll-loops")
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#include <prettyprint.hpp>
#define debug(...) cerr << "[" << #__VA_ARGS__ << "]: ", d_err(__VA_ARGS__);
#else
#define debug(...) 83;
#endif
void d_err() { cerr <... |
//#pragma GCC target("avx2")
#pragma GCC optimize("O3")
//#pragma GCC optimize("unroll-loops")
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#include <prettyprint.hpp>
#define debug(...) cerr << "[" << #__VA_ARGS__ << "]: ", d_err(__VA_ARGS__);
#else
#define debug(...) 83;
#endif
void d_err() { cerr <... | [
"assignment.variable.change",
"identifier.change",
"call.arguments.change"
] | 272,387 | 272,388 | u089177147 | cpp |
p02575 | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int n, m;
cin >> n >> m;
vector<int> dist(m);
set<int> st;
multiset<int> all;
for (int i = 0; i < m; i++) {
st.insert(i);
all.insert(0);
}
const int inf = (int)2e9;
for (int i = 0; i < n; ... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int n, m;
cin >> n >> m;
vector<int> dist(m);
set<int> st;
multiset<int> all;
for (int i = 0; i < m; i++) {
st.insert(i);
all.insert(0);
}
const int inf = (int)1e9;
for (int i = 0; i < n; ... | [
"literal.number.change",
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 272,389 | 272,390 | u321144111 | cpp |
p02575 | #include <bits/stdc++.h>
#define PI 3.141592653589793238462
using namespace std;
typedef long long ll;
typedef long double db;
int a[200005], d[200005], b[200005];
int main() {
int n, m;
cin >> n >> m;
for (int i = 1; i <= n; i++) {
cin >> a[i] >> b[i];
}
set<int> s;
multiset<int> dis;
for (int i = 1;... | #include <bits/stdc++.h>
#define PI 3.141592653589793238462
using namespace std;
typedef long long ll;
typedef long double db;
int a[200005], d[200005], b[200005];
int main() {
int n, m;
cin >> n >> m;
for (int i = 1; i <= n; i++) {
cin >> a[i] >> b[i];
}
set<int> s;
multiset<int> dis;
for (int i = 1;... | [
"control_flow.loop.condition.change",
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 272,391 | 272,392 | u089147470 | cpp |
p02575 | #include <bits/stdc++.h>
#define PI 3.141592653589793238462
using namespace std;
typedef long long ll;
typedef long double db;
int a[200005], d[200005], b[200005];
int main() {
int n, m;
cin >> n >> m;
for (int i = 1; i <= n; i++) {
cin >> a[i] >> b[i];
}
set<int> s;
multiset<int> dis;
for (int i = 1;... | #include <bits/stdc++.h>
#define PI 3.141592653589793238462
using namespace std;
typedef long long ll;
typedef long double db;
int a[200005], d[200005], b[200005];
int main() {
int n, m;
cin >> n >> m;
for (int i = 1; i <= n; i++) {
cin >> a[i] >> b[i];
}
set<int> s;
multiset<int> dis;
for (int i = 1;... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.condition.change",
"control_flow.loop.for.condition.change",
"misc.off_by_one",
"assignment.value.change"
] | 272,393 | 272,392 | u089147470 | cpp |
p02575 | #include <bits/stdc++.h>
#define fi first
#define se second
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rrep(i, n) for (int i = 1; i <= (n); ++i)
#define drep(i, n) for (int i = (n)-1; i >= 0; --i)
#define srep(i, s, t) for (int i = s; i < t; ++i)
#define rng(a) a.begin(), a.end()
#define rrng(a) a.rbegin()... | #include <bits/stdc++.h>
#define fi first
#define se second
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rrep(i, n) for (int i = 1; i <= (n); ++i)
#define drep(i, n) for (int i = (n)-1; i >= 0; --i)
#define srep(i, s, t) for (int i = s; i < t; ++i)
#define rng(a) a.begin(), a.end()
#define rrng(a) a.rbegin()... | [
"expression.operation.unary.add",
"identifier.change",
"call.function.change"
] | 272,394 | 272,395 | u457283867 | cpp |
p02575 | #include <iostream>
#include <set>
#include <vector>
constexpr int INF = 1 << 30;
void solve() {
int h, w;
std::cin >> h >> w;
std::set<int> s;
for (int x = 0; x < w; ++x)
s.insert(x);
std::vector<int> ds(w, 0);
std::multiset<int> dss;
for (auto d : ds)
dss.insert(d);
for (int i = 1; i <= h... | #include <iostream>
#include <set>
#include <vector>
constexpr int INF = 1 << 30;
void solve() {
int h, w;
std::cin >> h >> w;
std::set<int> s;
for (int x = 0; x < w; ++x)
s.insert(x);
std::vector<int> ds(w, 0);
std::multiset<int> dss;
for (auto d : ds)
dss.insert(d);
for (int i = 1; i <= h... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 272,400 | 272,401 | u059727354 | cpp |
p02575 | #include <bits/stdc++.h>
//#include <ext/pb_ds/assoc_container.hpp>
//#include <ext/pb_ds/tree_poizcy.hpp>
typedef long long ll;
#define pb push_back
#define mp make_pair
#define all(a) (a).begin(), (a).end()
#define mem(a, h) memset(a, (h), sizeof(a))
#define fi first
#define se second
#define por(a, b) (((a % MOD) * ... | #include <bits/stdc++.h>
//#include <ext/pb_ds/assoc_container.hpp>
//#include <ext/pb_ds/tree_poizcy.hpp>
typedef long long ll;
#define pb push_back
#define mp make_pair
#define all(a) (a).begin(), (a).end()
#define mem(a, h) memset(a, (h), sizeof(a))
#define fi first
#define se second
#define por(a, b) (((a % MOD) * ... | [
"control_flow.branch.if.condition.change"
] | 272,408 | 272,409 | u096100827 | cpp |
p02575 | #include <algorithm>
#include <bitset>
#include <chrono>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#inclu... | #include <algorithm>
#include <bitset>
#include <chrono>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#inclu... | [
"preprocessor.define.value.change",
"literal.integer.change"
] | 272,412 | 272,413 | u679806799 | cpp |
p02575 | #include <algorithm>
#include <bitset>
#include <chrono>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#inclu... | #include <algorithm>
#include <bitset>
#include <chrono>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#inclu... | [
"preprocessor.define.value.change",
"literal.integer.change"
] | 272,415 | 272,413 | u679806799 | cpp |
p02575 | #include <bits/stdc++.h>
// ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
// clock_t start=clock();clock_t
// end=clock();cout<<(double)(end-start)/CLOCKS_PER_SEC<<endl;
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef unsigned int ui;
typedef pair<int, int> pii;
typedef pair<pii... | #include <bits/stdc++.h>
// ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
// clock_t start=clock();clock_t
// end=clock();cout<<(double)(end-start)/CLOCKS_PER_SEC<<endl;
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef unsigned int ui;
typedef pair<int, int> pii;
typedef pair<pii... | [
"literal.number.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 272,425 | 272,426 | u357265888 | cpp |
p02576 | #include <iostream>
using namespace std;
int main() {
int n, x, t, ans;
cin >> n >> x >> t;
while (n > 0) {
ans += t;
n -= x;
}
cout << ans;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int n, x, t, ans;
cin >> n >> x >> t;
ans = 0;
while (n > 0) {
ans += t;
n -= x;
}
cout << ans;
return 0;
}
| [
"assignment.add"
] | 272,431 | 272,432 | u593392188 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
int ans = (N / X + 1) * T;
cout << ans << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
int ans = (N + X - 1) / X * T;
cout << ans << endl;
return 0;
} | [
"expression.operation.binary.remove"
] | 272,435 | 272,436 | u849341325 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
#define debug(x) cout << (#x) << " is " << (x) << endl
int main() {
int n, x, t;
cin >> n >> x >> t;
cout << ceil(n * 1.0 / (x * 1.0)) * t;
}
| #include <bits/stdc++.h>
using namespace std;
#define debug(x) cout << (#x) << " is " << (x) << endl
int main() {
int n, x, t;
cin >> n >> x >> t;
cout << (int)(ceil(n * 1.0 / (x * 1.0)) * t);
}
| [
"type_conversion.add"
] | 272,440 | 272,441 | u521570614 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using ull = unsigned long long;
using uint = unsigned;
using pcc = pair<char, char>;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
using pdd = pair<double, double>;
using tuplis = array<ll, 3>;
template <class T> using p... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using ull = unsigned long long;
using uint = unsigned;
using pcc = pair<char, char>;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
using pdd = pair<double, double>;
using tuplis = array<ll, 3>;
template <class T> using p... | [
"identifier.change",
"call.function.change"
] | 272,454 | 272,455 | u902786897 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using ull = unsigned long long;
using uint = unsigned;
using pcc = pair<char, char>;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
using pdd = pair<double, double>;
using tuplis = array<ll, 3>;
template <class T> using p... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using ull = unsigned long long;
using uint = unsigned;
using pcc = pair<char, char>;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
using pdd = pair<double, double>;
using tuplis = array<ll, 3>;
template <class T> using p... | [
"identifier.change",
"call.function.change",
"call.add",
"call.arguments.change"
] | 272,456 | 272,457 | u902786897 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
int main() {
long long t, n, i, j, k, x;
cin >> n >> x >> t;
cout << t * (ceil((double)n / (double)x)) << '\n';
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long t, n, i, j, k, x;
cin >> n >> x >> t;
cout << (long long)(t * (ceil((double)n / (double)x))) << '\n';
return 0;
}
| [
"type_conversion.add"
] | 272,458 | 272,459 | u749427720 | cpp |
p02576 | #include <bits/stdc++.h>
#include <cmath>
using namespace std;
#define coutv(v) \
for (int i = 0; i < (v).size(); ++i) \
cout << v[i] << ' '; \
cout << end... | #include <bits/stdc++.h>
#include <cmath>
using namespace std;
#define coutv(v) \
for (int i = 0; i < (v).size(); ++i) \
cout << v[i] << ' '; \
cout << end... | [
"type_conversion.add"
] | 272,462 | 272,463 | u641638265 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, y;
cin >> n >> x >> y;
int time = 0;
while (n < x) {
n++;
time += y;
}
cout << time;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, y;
cin >> n >> x >> y;
int time = 0;
while (n > 0) {
n -= x;
time += y;
}
cout << time;
}
| [] | 272,464 | 272,465 | u223168630 | 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 + 1 << endl;
else {
cout << n / x << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, t;
cin >> n >> x >> t;
if (n % x > 0)
cout << (n / x + 1) * t << endl;
else {
cout << n / x * t << endl;
}
} | [
"expression.operation.binary.add"
] | 272,468 | 272,469 | u270535768 | 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 * (N / X) << endl;
} else {
cout << N * ((N / X) + 1) << endl;
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
if (N % X == 0) {
cout << T * (N / X) << endl;
} else {
cout << T * ((N / X) + 1) << endl;
}
return 0;
}
| [
"identifier.change",
"io.output.change"
] | 272,470 | 272,471 | u122051254 | cpp |
p02576 | #include <iostream>
using namespace std;
int main() {
long n, x, t;
cin >> n >> x >> t;
cout << (n + x - 1) * t / x;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
long n, x, t;
cin >> n >> x >> t;
cout << (n + x - 1) / x * t;
return 0;
}
| [
"expression.operation.binary.remove"
] | 272,472 | 272,473 | u722145987 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int n, x, t, p, f;
cin >> n >> x >> t;
f = ceil(n / x);
p = f * t;
cout << p << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long int n, x, t, p, f;
cin >> n >> x >> t;
f = ceil((long double)n / x);
p = f * t;
cout << p << endl;
return 0;
}
| [
"type_conversion.add"
] | 272,476 | 272,477 | u938392612 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
int a = N / X;
if (N % T == 0) {
cout << T * a << endl;
} else {
cout << T * (a + 1) << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, X, T;
cin >> N >> X >> T;
int a = N / X;
if (N % X == 0) {
cout << T * a << endl;
} else {
cout << T * (a + 1) << endl;
}
} | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 272,480 | 272,481 | u019675000 | cpp |
p02576 | // THIS IS THE AATMANIRBHAR SOLUTION I FOUND..!!!!!
#include <bits/stdc++.h>
using namespace std;
// #define int double
#define int long long
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define P push
#define vvi vector<vector<int>>
#define vi vector<int>
#define vf vector<float>
#define... | // THIS IS THE AATMANIRBHAR SOLUTION I FOUND..!!!!!
#include <bits/stdc++.h>
using namespace std;
// #define int double
#define int long long
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define P push
#define vvi vector<vector<int>>
#define vi vector<int>
#define vf vector<float>
#define... | [] | 272,496 | 272,497 | u372633569 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define endl "\n"
#define fast \
ios_base ::sync_with_stdio(false); \
cin.tie(NULL); ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define endl "\n"
#define fast \
ios_base ::sync_with_stdio(false); \
cin.tie(NULL); ... | [] | 272,500 | 272,501 | u287467118 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define endl "\n"
#define fast \
ios_base ::sync_with_stdio(false); \
cin.tie(NULL); ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define endl "\n"
#define fast \
ios_base ::sync_with_stdio(false); \
cin.tie(NULL); ... | [
"type_conversion.add"
] | 272,502 | 272,501 | u287467118 | cpp |
p02576 | #include <cmath>
#include <iostream>
int main() {
int N, X, T;
std::cin >> N >> X >> T;
int times = static_cast<int>(std::ceil(N / X));
int ans = times * T;
std::cout << ans << std::endl;
return 0;
}
| #include <cmath>
#include <iostream>
int main() {
int N, X, T;
std::cin >> N >> X >> T;
int times = static_cast<int>(std::ceil((double)N / X));
int ans = times * T;
std::cout << ans << std::endl;
return 0;
}
| [
"type_conversion.add"
] | 272,511 | 272,512 | u476859716 | cpp |
p02576 | #include <bits/stdc++.h>
typedef long long int ll;
typedef long long unsigned int llu;
#define pb push_back
#define PI 3.1415926535897932384626433832795
#define MOD 1000000007
#define F first
#define S second
#define ALL(a) (a).begin(), (a).end()
#define YUGEN ... | #include <bits/stdc++.h>
typedef long long int ll;
typedef long long unsigned int llu;
#define pb push_back
#define PI 3.1415926535897932384626433832795
#define MOD 1000000007
#define F first
#define S second
#define ALL(a) (a).begin(), (a).end()
#define YUGEN ... | [
"control_flow.branch.if.condition.change"
] | 272,513 | 272,514 | u861030599 | cpp |
p02576 | #include <bits/stdc++.h>
using namespace std;
int main() {
double n, x, t, a;
cin >> n >> x >> t;
cout << (n + x - 1) / x * t << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, t, a;
cin >> n >> x >> t;
cout << (n + x - 1) / x * t << endl;
} | [
"variable_declaration.type.primitive.change"
] | 272,517 | 272,518 | u282754783 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.