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 |
|---|---|---|---|---|---|---|---|
p02610 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using vl = vector<ll>;
template <class T> using vc = vector<T>;
template <class T> using vvc = vector<vector<T>>;
#define eb emplace_back
#define all(x) (x).begin(), (x).end()
#define rep(i, n) for (ll i = 0; i < (n); i++)
#def... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using vl = vector<ll>;
template <class T> using vc = vector<T>;
template <class T> using vvc = vector<vector<T>>;
#define eb emplace_back
#define all(x) (x).begin(), (x).end()
#define rep(i, n) for (ll i = 0; i < (n); i++)
#def... | [
"expression.operation.binary.remove"
] | 316,856 | 316,857 | u722535636 | cpp |
p02610 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep_range(i, s, e) for (int i = (s); i < (int)(e); i++)
#define rep_rev(i, s, e) for (int i = (s)-1; i >= (int)(e); i--)
#define sort_vec(v) sort((v).begin(), (v).end())
typedef int64_t lint;
// lint mod = 9982443... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep_range(i, s, e) for (int i = (s); i < (int)(e); i++)
#define rep_rev(i, s, e) for (int i = (s)-1; i >= (int)(e); i--)
#define sort_vec(v) sort((v).begin(), (v).end())
typedef int64_t lint;
// lint mod = 9982443... | [] | 316,862 | 316,863 | u737252485 | cpp |
p02610 | #include <bits/stdc++.h>
using namespace std;
int main() {
int T;
cin >> T;
for (int i = 0; i < T; i++) {
int N;
cin >> N;
vector<long long> K(N), L(N), R(N);
for (int j = 0; j < N; j++)
cin >> K[j] >> L[j] >> R[j];
vector<pair<long long, long long>> l, r;
long long ans = 0LL;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int T;
cin >> T;
for (int i = 0; i < T; i++) {
int N;
cin >> N;
vector<long long> K(N), L(N), R(N);
for (int j = 0; j < N; j++)
cin >> K[j] >> L[j] >> R[j];
vector<pair<long long, long long>> l, r;
long long ans = 0LL;
... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 316,864 | 316,865 | u422506696 | cpp |
p02610 | #include <algorithm>
#include <array>
#include <iostream>
#include <queue>
#include <tuple>
#include <utility>
#include <vector>
constexpr int MAX_N = 200'000;
std::array<std::array<int, 2>, MAX_N + 1> L;
std::array<std::array<int, 2>, MAX_N + 1> R;
void solve(void) {
int n;
std::cin >> n;
long long int sum = 0... | #include <algorithm>
#include <array>
#include <iostream>
#include <queue>
#include <tuple>
#include <utility>
#include <vector>
constexpr int MAX_N = 200'000;
std::array<std::array<int, 2>, MAX_N + 1> L;
std::array<std::array<int, 2>, MAX_N + 1> R;
void solve(void) {
int n;
std::cin >> n;
long long int sum = 0... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 316,878 | 316,879 | u394853232 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int a = 1000 - (n % 1000);
cout << a << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int a = (1000 - n % 1000) % 1000;
cout << a << endl;
} | [
"assignment.change"
] | 316,886 | 316,887 | u339300083 | cpp |
p02612 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define lower(s) transform(s.begin(), s.end(), s.begin(), ::tolower)
using namespace std;
using ll = long long;
int INF = 1001001001;
int main() {
int n;
cin >> n;
if (n % 1000 > 0) {
cout << n / 1000 + 1 << endl;
} else {
cout <<... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define lower(s) transform(s.begin(), s.end(), s.begin(), ::tolower)
using namespace std;
using ll = long long;
int INF = 1001001001;
int main() {
int n;
cin >> n;
if (n % 1000 > 0) {
cout << 1000 - n % 1000 << endl;
} else {
cout... | [
"expression.operation.binary.remove"
] | 316,897 | 316,898 | u112887319 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int k = n % 1000;
if (n == 0)
cout << 0 << endl;
else
cout << 1000 - k << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int k = n % 1000;
if (k == 0)
cout << 0 << endl;
else
cout << 1000 - k << endl;
} | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 316,912 | 316,913 | u925229991 | cpp |
p02612 | // Template begins
#include <algorithm>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
#define fio \... | // Template begins
#include <algorithm>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
#define fio \... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 316,918 | 316,919 | u905592208 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n = 0;
cin >> n;
int m = n % 1000;
if (n == 0) {
cout << 0;
}
int v = 1000 - m;
cout << v;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int n = 0;
cin >> n;
int m = n % 1000;
if (m == 0) {
cout << 0;
return 0;
}
int v = 1000 - m;
cout << v;
return 0;
}
| [
"identifier.change",
"control_flow.branch.if.condition.change",
"control_flow.return.add",
"control_flow.return.0.add"
] | 316,920 | 316,921 | u253888853 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int N;
cin >> N;
cout << 1000 - N % 1000 << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int N;
cin >> N;
cout << (1000 - N % 1000) % 1000 << endl;
} | [] | 316,924 | 316,925 | u235391794 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int N;
cin >> N;
cout << N % 1000 << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int N;
cin >> N;
cout << (1000 - N % 1000) % 1000 << endl;
} | [] | 316,926 | 316,925 | u235391794 | cpp |
p02612 | #include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
cout << 1000 - (N % 1000) << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
cout << (1000 - (N % 1000)) % 1000 << endl;
return 0;
} | [
"expression.operation.binary.add"
] | 316,927 | 316,928 | u155216115 | cpp |
p02612 | // https://atcoder.jp/contests/abc175/tasks/abc175_c
#include <algorithm>
#include <climits>
#include <deque>
#include <iostream>
#include <iterator> // std::back_inserter
#include <sstream>
#include <tuple>
#include <vector>
using namespace std;
typedef unsigned long ll;
ll n;
int main() {
cin >> n;
cout << 10... | // https://atcoder.jp/contests/abc175/tasks/abc175_c
#include <algorithm>
#include <climits>
#include <deque>
#include <iostream>
#include <iterator> // std::back_inserter
#include <sstream>
#include <tuple>
#include <vector>
using namespace std;
typedef unsigned long ll;
ll n;
int main() {
cin >> n;
cout << (1... | [
"expression.operation.binary.add"
] | 316,933 | 316,934 | u904912386 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
if (N % 1000 == 0) {
cout << 0 << endl;
}
int pay = (N / 1000 + 1) * 1000;
cout << pay - N << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
if (N % 1000 == 0) {
cout << 0 << endl;
} else {
int pay = (N / 1000 + 1) * 1000;
cout << pay - N << endl;
}
} | [
"control_flow.branch.else.add"
] | 316,939 | 316,940 | u388787692 | cpp |
p02612 | #include <bits/stdc++.h>
#define N 1000005
using namespace std;
int n, m;
inline int qr() {
int x = 0, w = 1;
char a = 0;
while (a < '0' || a > '9') {
if (a == '-')
w = -1;
a = getchar();
}
while (a <= '9' && a >= '0') {
x = (x << 3) + (x << 1) + (a ^ 48);
a = getchar();
}
return x... | #include <bits/stdc++.h>
#define N 1000005
using namespace std;
int n, m;
inline int qr() {
int x = 0, w = 1;
char a = 0;
while (a < '0' || a > '9') {
if (a == '-')
w = -1;
a = getchar();
}
while (a <= '9' && a >= '0') {
x = (x << 3) + (x << 1) + (a ^ 48);
a = getchar();
}
return x... | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 316,941 | 316,942 | u788924545 | cpp |
p02612 | #define _USE_MATH_DEFINES
#include <bits/stdc++.h>
#define speed \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0)
#define ll l... | #define _USE_MATH_DEFINES
#include <bits/stdc++.h>
#define speed \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0)
#define ll l... | [] | 316,952 | 316,953 | u330326085 | cpp |
p02612 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#includ... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#includ... | [
"expression.operation.binary.remove"
] | 316,954 | 316,955 | u430536466 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
/*
提出前に確認!
- setとmultisetを間違えない
*/
int main(void) {
int n;
cin >> n;
cout << n % 1000 << endl;
return (0);
}
| #include <bits/stdc++.h>
using namespace std;
/*
提出前に確認!
- setとmultisetを間違えない
*/
int main(void) {
int n;
cin >> n;
cout << (1000 - n % 1000) % 1000 << endl;
return (0);
}
| [] | 316,958 | 316,959 | u013408661 | cpp |
p02612 | // g++ -std=c++11 test.cpp && ./a.out
// g++ -std=c++11 bfs.cpp && cat bfs.txt | ./a.out
#include <algorithm>
#include <assert.h>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <limits.h>
#include <map>
#include <queue>
#include <set>
#include <s... | // g++ -std=c++11 test.cpp && ./a.out
// g++ -std=c++11 bfs.cpp && cat bfs.txt | ./a.out
#include <algorithm>
#include <assert.h>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <limits.h>
#include <map>
#include <queue>
#include <set>
#include <s... | [
"expression.operation.binary.add"
] | 316,960 | 316,961 | u972304227 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
#define endl '\n'
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int n;
cin >> n;
int k = n / 1000 + (n % 1000 > 1);
cout << 1000 * k - n << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
#define endl '\n'
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int n;
cin >> n;
int k = n / 1000 + (n % 1000 > 0);
cout << 1000 * k - n << endl;
return 0;
}
| [
"literal.number.change",
"expression.operation.binary.change"
] | 316,967 | 316,968 | u510314977 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
int x = N / 1000;
if (x % 1000 > 0)
x++;
cout << (x * 1000 - N) << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
int x = N / 1000;
if (N % 1000 > 0)
x++;
cout << (x * 1000 - N) << endl;
} | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 316,973 | 316,974 | u225581241 | cpp |
p02612 | // list index out of rangeエラー表示用
#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define rep1(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
int main() {
int n;
cin >> n;
cout << 1000 - n % 1000;
}
| // list index out of rangeエラー表示用
#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define rep1(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
int main() {
int n;
cin >> n;
cout << (1000 - n % 1000) % 1000;
}
| [
"expression.operation.binary.add"
] | 316,980 | 316,981 | u204208382 | cpp |
p02612 | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); ++i)
#define REPS(i, a, b) for (int i = (a); i < (b); ++i)
using namespace std;
using ll = long long;
int main() {
int n;
cin >> n;
int q = n % 1000;
cout << q << endl;
} | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); ++i)
#define REPS(i, a, b) for (int i = (a); i < (b); ++i)
using namespace std;
using ll = long long;
int main() {
int n;
cin >> n;
int q = n % 1000;
cout << (1000 - q) % 1000 << endl;
} | [
"expression.operation.binary.add"
] | 317,005 | 317,004 | u514896542 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const static ll INF = 1e15;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
// __uint128_t
const ll MOD = 1e9 + 7;
int main() {
ll N;
cin >> N;
cout << 1000 - N % 1000 << endl;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const static ll INF = 1e15;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
// __uint128_t
const ll MOD = 1e9 + 7;
int main() {
ll N;
cin >> N;
cout << (1000 - N % 1000) % 1000 << endl;
} | [] | 317,010 | 317,011 | u521973174 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const long double pi = acos(-1.0);
typedef long long ll;
struct Node {
int parent, left, right;
};
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int n;
cin >> n;
cout << 1000 - n % 1000 << endl;
} | #include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const long double pi = acos(-1.0);
typedef long long ll;
struct Node {
int parent, left, right;
};
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int n;
cin >> n;
cout << (1000 - n % 1000) % 1000 << endl;
} | [] | 317,017 | 317,018 | u787005274 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const long double pi = acos(-1.0);
typedef long long ll;
struct Node {
int parent, left, right;
};
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int n;
cin >> n;
cout << n % 1000 << endl;
} | #include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const long double pi = acos(-1.0);
typedef long long ll;
struct Node {
int parent, left, right;
};
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int n;
cin >> n;
cout << (1000 - n % 1000) % 1000 << endl;
} | [] | 317,019 | 317,018 | u787005274 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
cout << (10000 - N % 10000) % 10000 << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
cout << (1000 - N % 1000) % 1000 << endl;
} | [
"literal.number.change",
"io.output.change"
] | 317,020 | 317,021 | u863957421 | cpp |
p02612 | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
using namespace __gnu_pbds;
#define pb push_back
#define pp pop_back
#define f first
#define s second
#define sz(a) (int)((a).size())
#define NoType ios_base::sync_with_stdio(0), cin.tie(NULL), cout.tie(NULL)
#define mp make_pair
... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
using namespace __gnu_pbds;
#define pb push_back
#define pp pop_back
#define f first
#define s second
#define sz(a) (int)((a).size())
#define NoType ios_base::sync_with_stdio(0), cin.tie(NULL), cout.tie(NULL)
#define mp make_pair
... | [
"expression.operation.binary.add"
] | 317,032 | 317,033 | u898093376 | cpp |
p02610 | #define _CRT_SECURE_NO_WARNINGS
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <functional>
#include <iostream>
#include <iterator>
#include <limits>
#include <map>
#include <memory>
#include <numeric>
#includ... | #define _CRT_SECURE_NO_WARNINGS
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <functional>
#include <iostream>
#include <iterator>
#include <limits>
#include <map>
#include <memory>
#include <numeric>
#includ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 317,057 | 317,058 | u279196402 | cpp |
p02610 | #define _CRT_SECURE_NO_WARNINGS
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <functional>
#include <iostream>
#include <iterator>
#include <limits>
#include <map>
#include <memory>
#include <numeric>
#includ... | #define _CRT_SECURE_NO_WARNINGS
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <functional>
#include <iostream>
#include <iterator>
#include <limits>
#include <map>
#include <memory>
#include <numeric>
#includ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"expression.operation.binary.remove"
] | 317,059 | 317,058 | u279196402 | cpp |
p02610 | #include <algorithm>
#include <array>
#include <assert.h>
#include <bitset>
#include <chrono>
#include <cmath>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <memory>
#include <numeric>
#include <queue>
#include <random>
#include... | #include <algorithm>
#include <array>
#include <assert.h>
#include <bitset>
#include <chrono>
#include <cmath>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <memory>
#include <numeric>
#include <queue>
#include <random>
#include... | [
"call.add"
] | 317,060 | 317,061 | u483814783 | cpp |
p02610 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (long long i = 0; i < (long long)(n); i++)
#define REP(i, k, n) for (long long i = k; i < (long long)(n); i++)
#define all(a) a.begin(), a.end()
#define pb emplace_back
#define eb emplace_back
#define lb(v, k) (lower_bound(all(v), k) - v.begin())
#defi... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (long long i = 0; i < (long long)(n); i++)
#define REP(i, k, n) for (long long i = k; i < (long long)(n); i++)
#define all(a) a.begin(), a.end()
#define pb emplace_back
#define eb emplace_back
#define lb(v, k) (lower_bound(all(v), k) - v.begin())
#defi... | [
"identifier.change",
"call.arguments.change"
] | 317,062 | 317,063 | u422633119 | cpp |
p02611 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <class T, class U> inline bool chmin(T &x, U y) {
if (x > y) {
x = y;
return true;
}
return false;
}
template <class T, class U> inline bool chmax(T &x, U y) {
if (x < y) {
x = y;
return true;
}
return false;
}
#def... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <class T, class U> inline bool chmin(T &x, U y) {
if (x > y) {
x = y;
return true;
}
return false;
}
template <class T, class U> inline bool chmax(T &x, U y) {
if (x < y) {
x = y;
return true;
}
return false;
}
#def... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 317,068 | 317,069 | u434208140 | cpp |
p02611 | #include <bits/stdc++.h>
using namespace std;
using int64 = long long;
constexpr int DEBUG = 0;
constexpr int64 P = 1000000007;
struct FiniteField {
private:
int64 x;
public:
FiniteField(int64 x) : x(x) {
if (x >= P || x < 0) {
x %= P;
if (x < 0)
x += P;
}
}
FiniteField() : x(0)... | #include <bits/stdc++.h>
using namespace std;
using int64 = long long;
constexpr int DEBUG = 0;
constexpr int64 P = 1000000007;
struct FiniteField {
private:
int64 x;
public:
FiniteField(int64 raw_x) : x(raw_x) {
if (x >= P || x < 0) {
x %= P;
if (x < 0)
x += P;
}
}
FiniteField(... | [
"identifier.change",
"call.arguments.change"
] | 317,070 | 317,071 | u771276542 | cpp |
p02611 | #include <bits/stdc++.h>
using namespace std;
const int maxn = 109;
const int P = 1000000007;
long long ksm(long long a, int k) {
long long ret = 1;
a = (a % P + P) % P;
for (; k; k >>= 1, a = a * a % P) {
if (k & 1)
ret = ret * a % P;
}
return ret;
}
long long INV(long long x) { return ksm(x, P - ... | #include <bits/stdc++.h>
using namespace std;
const int maxn = 109;
const int P = 1000000007;
long long ksm(long long a, int k) {
long long ret = 1;
a = (a % P + P) % P;
for (; k; k >>= 1, a = a * a % P) {
if (k & 1)
ret = ret * a % P;
}
return ret;
}
long long INV(long long x) { return ksm(x, P - ... | [
"literal.number.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 317,072 | 317,073 | u995358680 | cpp |
p02611 | #include <algorithm>
#include <cctype>
#include <cmath>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <stack>
#include <string>
#include <unordered_map>
using namespace std;
typedef long long ll;
const ll INF = 1000000007;
const ll mod = 1000000007... | #include <algorithm>
#include <cctype>
#include <cmath>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <stack>
#include <string>
#include <unordered_map>
using namespace std;
typedef long long ll;
const ll INF = 1000000007;
const ll mod = 1000000007... | [
"identifier.replace.remove",
"literal.replace.add",
"call.arguments.change",
"expression.operation.binary.change"
] | 317,074 | 317,075 | u378155378 | cpp |
p02611 | #include <algorithm>
#include <cctype>
#include <cmath>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <stack>
#include <string>
#include <unordered_map>
using namespace std;
typedef long long ll;
const ll INF = 1000000007;
const ll mod = 1000000007... | #include <algorithm>
#include <cctype>
#include <cmath>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <stack>
#include <string>
#include <unordered_map>
using namespace std;
typedef long long ll;
const ll INF = 1000000007;
const ll mod = 1000000007... | [
"identifier.replace.remove",
"literal.replace.add",
"call.arguments.change",
"expression.operation.binary.change",
"identifier.change"
] | 317,076 | 317,075 | u378155378 | cpp |
p02611 | #include "bits/stdc++.h"
using namespace std;
#define dbg(var) cout << #var << "=" << var << " "
#define nl cout << "\n"
#define fr(i, n) for (int i = 0; i < n; i++)
#define rep(i, a, n) for (int i = a; i <= n; i++)
#define vi vector<int>
#define vvi vector<vi>
#define pb push_back
#define fa(v) for (auto &i : v)
#defi... | #include "bits/stdc++.h"
using namespace std;
#define dbg(var) cout << #var << "=" << var << " "
#define nl cout << "\n"
#define fr(i, n) for (int i = 0; i < n; i++)
#define rep(i, a, n) for (int i = a; i <= n; i++)
#define vi vector<int>
#define vvi vector<vi>
#define pb push_back
#define fa(v) for (auto &i : v)
#defi... | [
"literal.number.change",
"call.arguments.change"
] | 317,077 | 317,078 | u292011786 | cpp |
p02611 | /*/ Author: kal013 /*/
// #pragma GCC optimize ("O3")
#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 <class T>
using ordered_set =
tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_up... | /*/ Author: kal013 /*/
// #pragma GCC optimize ("O3")
#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 <class T>
using ordered_set =
tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_up... | [
"literal.number.change",
"variable_declaration.value.change",
"call.arguments.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 317,081 | 317,082 | u951370370 | cpp |
p02611 | #include <cstdio>
constexpr int mod = 1000000007;
int t;
int inv[16];
int binom(int n, int k) {
long long int r = n;
for (int i = 1; i < k; i++) {
r = r * (n - i) % mod;
r = r * inv[i + 1] % mod;
}
return r;
}
/*
[x^N] 1 / [(1-x)^16(1+x)^5]
[x^N] 1 / [(1-x)^11(1-x^2)^5]
[x^N] (1+x)^11 / (1-x^2)^16
*... | #include <cstdio>
constexpr int mod = 1000000007;
int t;
int inv[16];
int binom(int n, int k) {
long long int r = 1;
for (int i = 0; i < k; i++) {
r = r * (n - i) % mod;
r = r * inv[i + 1] % mod;
}
return r;
}
/*
[x^N] 1 / [(1-x)^16(1+x)^5]
[x^N] 1 / [(1-x)^11(1-x^2)^5]
[x^N] (1+x)^11 / (1-x^2)^16
*... | [
"variable_declaration.value.change",
"identifier.replace.remove",
"literal.replace.add",
"literal.number.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 317,083 | 317,084 | u367021138 | cpp |
p02611 | #include <bits/stdc++.h>
int ri() {
int n;
scanf("%d", &n);
return n;
}
#define MOD 1000000007
template <int mod> struct ModInt {
int x;
ModInt() : x(0) {}
ModInt(int64_t x) : x(x >= 0 ? x % mod : (mod - -x % mod) % mod) {}
ModInt &operator+=(const ModInt &p) {
if ((x += p.x) >= mod)
x -= mod;... | #include <bits/stdc++.h>
int ri() {
int n;
scanf("%d", &n);
return n;
}
#define MOD 1000000007
template <int mod> struct ModInt {
int x;
ModInt() : x(0) {}
ModInt(int64_t x) : x(x >= 0 ? x % mod : (mod - -x % mod) % mod) {}
ModInt &operator+=(const ModInt &p) {
if ((x += p.x) >= mod)
x -= mod;... | [] | 317,088 | 317,089 | u040490988 | cpp |
p02611 | #include <bits/stdc++.h>
#define ALL(v) v.begin(), v.end()
#define MAX 510000
#define rrep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define rep(i, n) for (ll i = 1; i <= (ll)(n); i++)
#define dcout cout << fixed << setprecision(15);
#define mp make_pair
#define pb push_back
using namespace std;
typedef long long int ll;... | #include <bits/stdc++.h>
#define ALL(v) v.begin(), v.end()
#define MAX 510000
#define rrep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define rep(i, n) for (ll i = 1; i <= (ll)(n); i++)
#define dcout cout << fixed << setprecision(15);
#define mp make_pair
#define pb push_back
using namespace std;
typedef long long int ll;... | [
"literal.number.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 317,094 | 317,095 | u233626335 | cpp |
p02611 | /*{{{*/
#include <algorithm>
#include <assert.h>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <limits.h>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#define SZ(X) ((int)(X).size())
#defin... | /*{{{*/
#include <algorithm>
#include <assert.h>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <limits.h>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#define SZ(X) ((int)(X).size())
#defin... | [
"identifier.change",
"call.arguments.change"
] | 317,100 | 317,101 | u284124505 | cpp |
p02612 | #include <cmath>
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
cout << ceil(n / 1000) * 1000 - n << endl;
return 0;
} | #include <cmath>
#include <iostream>
using namespace std;
int main() {
float n;
cin >> n;
cout << ceil(n / 1000) * 1000 - n << endl;
return 0;
} | [
"variable_declaration.type.primitive.change"
] | 317,104 | 317,105 | u272123585 | cpp |
p02612 | #include <iostream>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
int main() {
int N;
cin >> N;
cout << 1000 - (N % 1000);
}
| #include <iostream>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
int main() {
int N;
cin >> N;
cout << (1000 - (N % 1000)) % 1000;
}
| [
"expression.operation.binary.add"
] | 317,110 | 317,111 | u541032448 | cpp |
p02612 | #include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
cout << 1000 - (N % 1000) << '\n';
return 0;
} | #include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
cout << (1000 - (N % 1000)) % 1000 << '\n';
return 0;
} | [
"expression.operation.binary.add"
] | 317,114 | 317,115 | u129830598 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
;
int main() {
int n;
cin >> n;
n %= 1000;
cout << 1000 - n << endl;
} | #include <bits/stdc++.h>
using namespace std;
;
int main() {
int n;
cin >> n;
n %= 1000;
cout << (1000 - n) % 1000 << endl;
} | [
"expression.operation.binary.add"
] | 317,120 | 317,121 | u176218583 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
#define fast() \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
#define ll long... | #include <bits/stdc++.h>
using namespace std;
#define fast() \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
#define ll long... | [
"expression.operation.binary.add"
] | 317,125 | 317,126 | u648414342 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
#define fast() \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
#define ll long... | #include <bits/stdc++.h>
using namespace std;
#define fast() \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
#define ll long... | [
"call.add",
"expression.operation.binary.add"
] | 317,127 | 317,126 | u648414342 | cpp |
p02612 | #include <iostream>
using namespace std;
int main() {
int n, r;
cin >> n;
r = n / 1000;
if (r > 0) {
int ans;
ans = 1000 - r;
cout << ans << endl;
} else if (r == 0) {
cout << "0" << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int n, r;
cin >> n;
r = n % 1000;
if (r > 0) {
int ans;
ans = 1000 - r;
cout << ans << endl;
} else if (r == 0) {
cout << "0" << endl;
}
return 0;
}
| [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 317,128 | 317,129 | u054820639 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
if (n % 1000 == 0)
cout << "0" << endl;
else
cout << n - (n / 1000) * 1000 << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
if (n % 1000 == 0)
cout << "0" << endl;
else
cout << (n / 1000 + 1) * 1000 - n << endl;
}
| [
"expression.operation.binary.remove"
] | 317,139 | 317,140 | u018679195 | cpp |
p02612 | #include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
while (N >= 1000) {
N -= 1000;
}
cout << N << endl;
} | #include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
while (N > 0) {
N -= 1000;
}
cout << abs(N) << endl;
} | [
"call.add",
"call.arguments.change"
] | 317,153 | 317,154 | u098923136 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
#define rep(i, n) for (int i = 0; i < (n); ++i)
int N;
int main() {
cin >> N;
if (N % 1000 == 0)
cout << N / 1000 << endl;
else {
cout << (N / 1000 + 1) * 1000 - N << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
#define rep(i, n) for (int i = 0; i < (n); ++i)
int N;
int main() {
cin >> N;
if (N % 1000 == 0)
cout << 0 << endl;
else {
cout << (N / 1000 + 1) * 1000 - N << endl;
}
}
| [
"identifier.replace.remove",
"literal.replace.add",
"io.output.change",
"expression.operation.binary.remove"
] | 317,155 | 317,156 | u826661974 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
#define all(v) v.begin(), v.end()
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define intll int long long
const int INF = 1e9;
const int MOD = 1e9 + 7;
int main() {
int x;
cin >> x;
cout << 1000 - (x % 1000);
}
| #include <bits/stdc++.h>
using namespace std;
#define all(v) v.begin(), v.end()
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define intll int long long
const int INF = 1e9;
const int MOD = 1e9 + 7;
int main() {
int x;
cin >> x;
cout << (1000 - (x % 1000)) % 1000;
}
| [
"expression.operation.binary.add"
] | 317,161 | 317,162 | u260907804 | cpp |
p02612 | #include <iostream>
using namespace std;
int main() {
int a;
cin >> a;
cout << (1000 - a % 1000);
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a;
cin >> a;
cout << (1000 - a % 1000) % 1000;
return 0;
}
| [
"expression.operation.binary.add"
] | 317,169 | 317,170 | u182127082 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
cout << (x - (x % 1000)) % 1000;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
cout << (1000 - (x % 1000)) % 1000;
return 0;
}
| [
"identifier.replace.remove",
"literal.replace.add",
"io.output.change"
] | 317,173 | 317,174 | u621389035 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
cout << x - (x % 1000);
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
cout << (1000 - (x % 1000)) % 1000;
return 0;
}
| [
"io.output.change"
] | 317,175 | 317,174 | u621389035 | cpp |
p02612 | #include <bits/stdc++.h>
#define rep(i, N) for (int i = 0; i < (N); ++i)
#define all(v) v.begin(), v.end()
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main(void) {
int n;
cin >> n;
cout << ceil(n / 1000.0) - n << endl;
}
| #include <bits/stdc++.h>
#define rep(i, N) for (int i = 0; i < (N); ++i)
#define all(v) v.begin(), v.end()
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main(void) {
int n;
cin >> n;
cout << 1000 * ceil(n / 1000.0) - n << endl;
}
| [
"expression.operation.binary.add"
] | 317,205 | 317,206 | u437633151 | cpp |
p02612 | #include <bits/stdc++.h>
#define rep(i, a, b) for (ll i = ll(a); i < ll(b); i++)
#define irep(i, a, b) for (ll i = ll(a); i >= ll(b); i--)
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
... | #include <bits/stdc++.h>
#define rep(i, a, b) for (ll i = ll(a); i < ll(b); i++)
#define irep(i, a, b) for (ll i = ll(a); i >= ll(b); i--)
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
... | [
"call.add",
"literal.number.change",
"io.output.change",
"expression.operation.binary.remove"
] | 317,218 | 317,219 | u499009346 | cpp |
p02612 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rep2(i, x, n) for (int i = x; i < (n); i++)
const long long INF = 1LL << 60; // 仮想的な無限大の値;
using namespace std;
using ll = long long;
using P = pair<int, int>;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rep2(i, x, n) for (int i = x; i < (n); i++)
const long long INF = 1LL << 60; // 仮想的な無限大の値;
using namespace std;
using ll = long long;
using P = pair<int, int>;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 317,226 | 317,227 | u700041121 | cpp |
p02612 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rep2(i, x, n) for (int i = x; i < (n); i++)
const long long INF = 1LL << 60; // 仮想的な無限大の値;
using namespace std;
using ll = long long;
using P = pair<int, int>;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rep2(i, x, n) for (int i = x; i < (n); i++)
const long long INF = 1LL << 60; // 仮想的な無限大の値;
using namespace std;
using ll = long long;
using P = pair<int, int>;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
... | [] | 317,228 | 317,227 | u700041121 | cpp |
p02612 | #include <bits/stdc++.h>
using ll = long long;
using namespace std;
#define rep(i, n) for (int i = 0, i##_len = (int)(n); i < i##_len; i++)
#define reps(i, n) for (int i = 1, i##_len = (int)(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 ... | #include <bits/stdc++.h>
using ll = long long;
using namespace std;
#define rep(i, n) for (int i = 0, i##_len = (int)(n); i < i##_len; i++)
#define reps(i, n) for (int i = 1, i##_len = (int)(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 ... | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 317,230 | 317,231 | u179778090 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(0);
int n;
int ans = (1000 - n % 1000) % 1000;
cout << ans << "\n";
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(0);
int n;
cin >> n;
int ans = (1000 - n % 1000) % 1000;
cout << ans << "\n";
return 0;
}
| [] | 317,234 | 317,235 | u288035794 | cpp |
p02612 | #include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
cout << 1000 % (1000 - (N % 1000));
} | #include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
cout << (1000 - (N % 1000)) % 1000;
} | [
"expression.operation.binary.remove"
] | 317,236 | 317,237 | u288035794 | cpp |
p02612 | #include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
cout << 1000 - (N % 1000);
} | #include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
cout << (1000 - (N % 1000)) % 1000;
} | [
"expression.operation.binary.add"
] | 317,238 | 317,237 | u288035794 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
// print(fixed << setprecision(10));
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define repk(i, n, k) for (ll i = k; i < (n); i++)
#define all(n) n.begin(), n.end()
#define print(n) cout << n << endl
double PI = acos(-1.0);
int INF = 1e9;
ll LINF ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
// print(fixed << setprecision(10));
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define repk(i, n, k) for (ll i = k; i < (n); i++)
#define all(n) n.begin(), n.end()
#define print(n) cout << n << endl
double PI = acos(-1.0);
int INF = 1e9;
ll LINF ... | [
"call.arguments.change",
"call.arguments.add"
] | 317,242 | 317,243 | u713575610 | cpp |
p02612 | #include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
if (N / 1000 != 0) {
cout << 1000 - N % 1000 << endl;
} else {
cout << 0 << endl;
}
}
| #include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
if (N % 1000 != 0) {
cout << 1000 - N % 1000 << endl;
} else {
cout << 0 << endl;
}
}
| [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 317,251 | 317,252 | u938317342 | cpp |
p02612 | #include <iostream>
using namespace std;
int main() {
unsigned int n;
cin >> n;
cout << n % 1000;
return 0;
} | #include <iostream>
using namespace std;
int main() {
unsigned int n;
cin >> n;
cout << (1000 - n % 1000) % 1000;
return 0;
} | [] | 317,253 | 317,254 | u577027209 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define rep1(i, n) for (ll i = 1; i <= (ll)(n); i++)
#define INF 10000000000
#define MOD 1000000007
using ll = long long;
using Graph = vector<vector<int>>;
int main() {
int N;
cin >> N;
cout << N % 1000 << endl;
} | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define rep1(i, n) for (ll i = 1; i <= (ll)(n); i++)
#define INF 10000000000
#define MOD 1000000007
using ll = long long;
using Graph = vector<vector<int>>;
int main() {
int N;
cin >> N;
cout << (1000 - N % 1000) % ... | [] | 317,258 | 317,259 | u779216084 | cpp |
p02612 | #include <iostream>
using namespace std;
int main() {
int n;
int x = 0;
cin >> n;
while (n >= x)
x = x + 1000;
cout << x - n << endl;
} | #include <iostream>
using namespace std;
int main() {
int n;
int x = 0;
cin >> n;
while (n > x)
x = x + 1000;
cout << x - n << endl;
} | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 317,272 | 317,273 | u895400568 | cpp |
p02612 | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int n;
cin >> n;
if (n % 1000 == 0)
cout << n / 1000 << endl;
else
cout << 1000 - (n % 1000) << endl;
} | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int n;
cin >> n;
if (n % 1000 == 0)
cout << 0 << endl;
else
cout << 1000 - (n % 1000) << endl;
} | [
"identifier.replace.remove",
"literal.replace.add",
"io.output.change",
"expression.operation.binary.remove"
] | 317,274 | 317,275 | u506464494 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
signed main() {
int n;
cin >> n;
cout << (n - n % 1000) % 1000 << endl;
} | #include <bits/stdc++.h>
using namespace std;
signed main() {
int n;
cin >> n;
cout << (1000 - n % 1000) % 1000 << endl;
} | [
"identifier.replace.remove",
"literal.replace.add",
"io.output.change"
] | 317,278 | 317,279 | u942774736 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
void __start__() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
#ifdef MY
freopen("/home/ainur/CLionProjects/wow/input.txt", "r", stdin);
freopen("/home/ainur/CLionProjects/wow/output.txt", "w", stdout);
#else
#define endl '\n'
// freopen("search.in", "r"... | #include <bits/stdc++.h>
using namespace std;
void __start__() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
#ifdef MY
freopen("/home/ainur/CLionProjects/wow/input.txt", "r", stdin);
freopen("/home/ainur/CLionProjects/wow/output.txt", "w", stdout);
#else
#define endl '\n'
// freopen("search.in", "r"... | [
"expression.operation.binary.add"
] | 317,280 | 317,281 | u789115740 | cpp |
p02612 | #include <algorithm>
#include <bits/stdc++.h>
#include <string>
using namespace std; // std::の省略のため
using ll = long long;
ll MOD = 1000000007;
int main() {
ll n;
cin >> n;
ll ans;
if (n % 1000 == 0)
ans = 1000 - n % 1000;
else
ans = 0;
cout << ans << endl;
}
| #include <algorithm>
#include <bits/stdc++.h>
#include <string>
using namespace std; // std::の省略のため
using ll = long long;
ll MOD = 1000000007;
int main() {
ll n;
cin >> n;
ll ans;
if (n % 1000 != 0)
ans = 1000 - n % 1000;
else
ans = 0;
cout << ans << endl;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 317,284 | 317,285 | u166008195 | cpp |
p02612 | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
cout << 1000 - n % 1000 << endl;
} | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
cout << (1000 - n % 1000) % 1000 << endl;
} | [] | 317,299 | 317,300 | u276322776 | cpp |
p02612 | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
cout << n % 1000 << endl;
} | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
cout << (1000 - n % 1000) % 1000 << endl;
} | [] | 317,301 | 317,300 | u276322776 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define all(v) begin(v), end(v)
using ll = long long;
int main() {
int n;
cin >> n;
if (n % 1000 == 0)
cout << n << endl;
else
cout << 1000 - n % 1000 << endl;
} | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define all(v) begin(v), end(v)
using ll = long long;
int main() {
int n;
cin >> n;
if (n % 1000 == 0)
cout << 0 << endl;
else
cout << 1000 - n % 1000 << endl;
} | [
"identifier.replace.remove",
"literal.replace.add",
"io.output.change"
] | 317,311 | 317,312 | u587622858 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
cout << 1000 - (n % 1000) << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
cout << (1000 - (n % 1000)) % 1000 << endl;
return 0;
} | [
"expression.operation.binary.add"
] | 317,318 | 317,319 | u180716041 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
#define ll long long;
mt19937 mrand(random_device{}());
int rnd(int x) { return mrand() % x; }
struct fast_ios {
fast_ios() {
ios::sync_with_stdio(false);
cin.tie(0);
cout << fixed << setprecision(10);
};
} fast_ios_;
int main() {
int N;
cin >> N;
c... | #include <bits/stdc++.h>
using namespace std;
#define ll long long;
mt19937 mrand(random_device{}());
int rnd(int x) { return mrand() % x; }
struct fast_ios {
fast_ios() {
ios::sync_with_stdio(false);
cin.tie(0);
cout << fixed << setprecision(10);
};
} fast_ios_;
int main() {
int N;
cin >> N;
c... | [] | 317,320 | 317,321 | u831294922 | cpp |
p02612 | #include <bits/stdc++.h>
#include <unordered_map>
#include <unordered_set>
#define initdp(a, b) \
for (int i = 0; i <= a; i++) \
for (int j = 0; j <= b; j++) \
... | #include <bits/stdc++.h>
#include <unordered_map>
#include <unordered_set>
#define initdp(a, b) \
for (int i = 0; i <= a; i++) \
for (int j = 0; j <= b; j++) \
... | [] | 317,326 | 317,327 | u128666468 | cpp |
p02612 | //デバッグ用オプション:-fsanitize=undefined,address
//コンパイラ最適化
#pragma GCC optimize("Ofast")
//インクルードなど
#include <iostream>
using namespace std;
typedef long long ll;
//マクロ
// forループ
//引数は、(ループ内変数,動く範囲)か(ループ内変数,始めの数,終わりの数)、のどちらか
// Dがついてないものはループ変数は1ずつインクリメントされ、Dがついてるものはループ変数は1ずつデクリメントされる
// FORAは範囲for文(使いにくかったら消す)
#define REP... | //デバッグ用オプション:-fsanitize=undefined,address
//コンパイラ最適化
#pragma GCC optimize("Ofast")
//インクルードなど
#include <iostream>
using namespace std;
typedef long long ll;
//マクロ
// forループ
//引数は、(ループ内変数,動く範囲)か(ループ内変数,始めの数,終わりの数)、のどちらか
// Dがついてないものはループ変数は1ずつインクリメントされ、Dがついてるものはループ変数は1ずつデクリメントされる
// FORAは範囲for文(使いにくかったら消す)
#define REP... | [] | 317,330 | 317,331 | u239368018 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
cout << 1000 - N % 1000 << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
cout << (1000 - N % 1000) % 1000 << endl;
}
| [] | 317,342 | 317,343 | u792048223 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
cout << 1000 - (N % 1000) << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
cout << (1000 - N % 1000) % 1000 << endl;
}
| [
"expression.operation.binary.add"
] | 317,345 | 317,343 | u792048223 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
cout << (N % 1000) % 1000 << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
cout << (1000 - N % 1000) % 1000 << endl;
}
| [
"expression.operation.binary.add"
] | 317,346 | 317,343 | u792048223 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
cout << (1000 - 1000 % N) % 1000 << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
cout << (1000 - N % 1000) % 1000 << endl;
}
| [
"expression.operation.binary.remove"
] | 317,347 | 317,343 | u792048223 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
cout << 1000 - (N % 1000) << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
cout << (1000 - N % 1000) % 1000 << endl;
}
| [
"expression.operation.binary.add"
] | 317,349 | 317,343 | u792048223 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
cout << 1000 - (N % 1000) << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
cout << (1000 - N % 1000) % 1000 << endl;
} | [
"expression.operation.binary.add"
] | 317,345 | 317,350 | u792048223 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
cout << (N % 1000) % 1000 << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
cout << (1000 - N % 1000) % 1000 << endl;
} | [
"expression.operation.binary.add"
] | 317,346 | 317,350 | u792048223 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
cout << 1000 - (N % 1000) << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
cout << (1000 - N % 1000) % 1000 << endl;
} | [
"expression.operation.binary.add"
] | 317,349 | 317,350 | u792048223 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, s = 0;
cin >> n;
if (n / 1000 == 0)
cout << '0';
else {
s += n / 1000 + 1;
cout << 1000 * s - n;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, s = 0;
cin >> n;
if (n % 1000 == 0)
cout << '0';
else {
s += n / 1000 + 1;
cout << 1000 * s - n;
}
return 0;
} | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 317,355 | 317,356 | u663483596 | cpp |
p02612 | #include <bits/stdc++.h>
#include <cmath>
using namespace std;
int main() {
int s, i, j, k;
cin >> s;
if (s % 1000 != 0)
s = (s / 1000 + 1) * 1000 - s;
else
s = s / 1000;
cout << s;
return 0;
} | #include <bits/stdc++.h>
#include <cmath>
using namespace std;
int main() {
int s, i, j, k;
cin >> s;
if (s % 1000 != 0)
s = (s / 1000 + 1) * 1000 - s;
else
s = 0;
cout << s;
return 0;
} | [
"assignment.value.change",
"identifier.replace.remove",
"literal.replace.add",
"expression.operation.binary.change",
"expression.operation.binary.remove"
] | 317,360 | 317,361 | u527036541 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
ll n;
int main() {
scanf("%lld", &n);
printf("%lld\n", 1000 - (n % 1000));
} | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
ll n;
int main() {
scanf("%lld", &n);
printf("%lld\n", (1000 - (n % 1000)) % 1000);
} | [
"call.arguments.change",
"call.arguments.add"
] | 317,375 | 317,376 | u406910179 | cpp |
p02612 | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
cout << 1000 - (n % 1000) << "\n";
return (0);
} | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
cout << (1000 - (n % 1000)) % 1000 << "\n";
return (0);
} | [
"expression.operation.binary.add"
] | 317,377 | 317,378 | u875838652 | cpp |
p02612 | /*
author : nishi5451
created: 11.08.2020 23:28:18
*/
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
typedef long long ll;
int main() {
int n;
cin >> n;
int ans;
if (n % 1000)
ans = 0;
else
ans = (n / 1000 + 1) * 1000 - n;
cout << ans << end... | /*
author : nishi5451
created: 11.08.2020 23:28:18
*/
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
typedef long long ll;
int main() {
int n;
cin >> n;
int ans;
if (n % 1000 == 0)
ans = 0;
else
ans = (n / 1000 + 1) * 1000 - n;
cout << ans <... | [
"control_flow.branch.if.condition.change"
] | 317,386 | 317,387 | u033937898 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
cout << (n - n % 1000) % 1000 << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
cout << (1000 - n % 1000) % 1000 << endl;
} | [
"identifier.replace.remove",
"literal.replace.add",
"io.output.change"
] | 317,388 | 317,389 | u738166971 | cpp |
p02612 | #include <iostream>
using ll = long long;
#define rep(i, a, b) for (ll i = a; i < ll(b); i++)
#define repr(i, a, b) for (ll i = a; i >= ll(b); i--)
#define endl "\n"
using namespace std;
int N;
int main() {
cin >> N;
N %= 1000;
cout << 1000 - N << endl;
return 0;
}
| #include <iostream>
using ll = long long;
#define rep(i, a, b) for (ll i = a; i < ll(b); i++)
#define repr(i, a, b) for (ll i = a; i >= ll(b); i--)
#define endl "\n"
using namespace std;
int N;
int main() {
cin >> N;
N %= 1000;
cout << (1000 - N) % 1000 << endl;
return 0;
}
| [
"expression.operation.binary.add"
] | 317,390 | 317,391 | u946467231 | cpp |
p02612 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define IO ios::sync_with_stdio(false)
//#define int long long
using nam... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define IO ios::sync_with_stdio(false)
//#define int long long
using nam... | [
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add"
] | 317,392 | 317,393 | u024794089 | cpp |
p02612 | #include <bits/stdc++.h>
int main() {
int N;
scanf("%d", &N);
printf("%d\n", 1000 - (N % 1000));
}
| #include <bits/stdc++.h>
int main() {
int N;
scanf("%d", &N);
printf("%d\n", (1000 - (N % 1000)) % 1000);
}
| [
"call.arguments.change",
"call.arguments.add"
] | 317,394 | 317,395 | u614134313 | cpp |
p02612 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
typedef long long LL;
typedef pair<LL, LL> pLL;
int main(void) {
LL N, ans;
cin >> N;
ans = 1000 - (N % 1000);
cout << ans << endl;
return 0;
} | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
typedef long long LL;
typedef pair<LL, LL> pLL;
int main(void) {
LL N, ans;
cin >> N;
ans = (1000 - (N % 1000)) % 1000;
cout << ans << endl;
return 0;
} | [
"assignment.change"
] | 317,403 | 317,404 | u660046151 | cpp |
p02612 | #include <iostream>
using namespace std;
int main() {
int N;
int seged;
cin >> N;
seged == N % 1000;
if (seged == 0) {
cout << '0';
} else {
cout << 1000 - seged;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int N;
int seged;
cin >> N;
seged = N % 1000;
if (seged == 0) {
cout << '0';
} else {
cout << 1000 - seged;
}
return 0;
} | [
"expression.operation.compare.replace.remove",
"assignment.replace.add",
"misc.typo"
] | 317,407 | 317,408 | u742481447 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.