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 |
|---|---|---|---|---|---|---|---|
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;
} | [
"expression.operation.binary.add"
] | 318,745 | 318,746 | u752355137 | cpp |
p02612 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int N;
cin >> N;
int num = 1;
;
while (true) {
if (num * 1000 > N)
break;
num++;
}
cout << 1000 * num - N << endl;
return 0;
} | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int N;
cin >> N;
int num = 0;
while (true) {
if (num * 1000 >= N)
break;
num++;
}
cout << 1000 * num - N << endl;
return 0;
} | [
"literal.number.change",
"variable_declaration.value.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 318,747 | 318,748 | u154217422 | cpp |
p02612 | #include <algorithm>
#include <cassert>
#include <chrono>
#include <climits>
#include <cmath>
#include <ctime>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <... | #include <algorithm>
#include <cassert>
#include <chrono>
#include <climits>
#include <cmath>
#include <ctime>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <... | [
"expression.operation.binary.add"
] | 318,751 | 318,752 | u205473154 | cpp |
p02612 | // author - saiku_ni_naro
// TO THE TOP
#include <bits/stdc++.h>
using namespace std;
#define F_IO \
ios::sync_with_stdio(0); \
cin.tie(0); ... | // author - saiku_ni_naro
// TO THE TOP
#include <bits/stdc++.h>
using namespace std;
#define F_IO \
ios::sync_with_stdio(0); \
cin.tie(0); ... | [] | 318,759 | 318,760 | u672712587 | cpp |
p02612 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
const ll mod = 1e9 + 7;
int main() {
int n;
cin >> n;
cout << n - (n / 1000) * 1000 << endl;
return 0;
}
| #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
const ll mod = 1e9 + 7;
int main() {
int n;
cin >> n;
cout << (1000 - n % 1000) % 1000 << endl;
return 0;
}
| [
"expression.operation.binary.remove",
"expression.operator.arithmetic.change",
"io.output.change"
] | 318,763 | 318,764 | u801916231 | cpp |
p02612 | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <string>
#include <utility>
#include <vector>
const double PI = acos(-1);
#define rep(i, n) for (int i = 0; i < (n); i++)
usi... | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <string>
#include <utility>
#include <vector>
const double PI = acos(-1);
#define rep(i, n) for (int i = 0; i < (n); i++)
usi... | [
"expression.operator.compare.change",
"control_flow.loop.condition.change",
"expression.operation.unary.add"
] | 318,765 | 318,766 | u272628953 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
n %= 1000;
if (n == 0) {
cout << '0';
} else {
cout << (1000 - n);
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
n %= 1000;
if (n == 0) {
cout << '0';
} else {
cout << (1000 - n);
}
return 0;
}
| [] | 318,769 | 318,770 | u051220509 | cpp |
p02612 | #include <algorithm>
#include <bitset>
#include <chrono>
#include <climits>
#include <cstring>
#include <ctype.h>
#include <deque>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#incl... | #include <algorithm>
#include <bitset>
#include <chrono>
#include <climits>
#include <cstring>
#include <ctype.h>
#include <deque>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#incl... | [
"expression.operation.binary.add"
] | 318,773 | 318,774 | u734397606 | cpp |
p02612 | #include <algorithm>
#include <bitset>
#include <chrono>
#include <climits>
#include <cstring>
#include <ctype.h>
#include <deque>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#incl... | #include <algorithm>
#include <bitset>
#include <chrono>
#include <climits>
#include <cstring>
#include <ctype.h>
#include <deque>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#incl... | [
"io.output.change"
] | 318,775 | 318,774 | u734397606 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
cout << (n % 1000 == 0 ? 0 : n - n % 1000) << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
cout << (n % 1000 == 0 ? 0 : 1000 - n % 1000) << endl;
return 0;
} | [
"identifier.replace.remove",
"literal.replace.add",
"io.output.change"
] | 318,787 | 318,788 | u244637356 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define repp(i, m, n) for (int i = (int)(m); i < (int)(n); ++i)
int main() {
int n;
cin >> n;
rep(i, n) {
if (i * 1000 >= n) {
cout << i * 1000 - n << endl;
... | #include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define repp(i, m, n) for (int i = (int)(m); i < (int)(n); ++i)
int main() {
int n;
cin >> n;
rep(i, 100) {
if (i * 1000 >= n) {
cout << i * 1000 - n << endl;
... | [] | 318,789 | 318,790 | u652294457 | cpp |
p02612 | #include <bits/stdc++.h>
#define ll long long
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define rrep(i, n) for (int i = 1; i <= n; i++)
ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; }
ll lcm(ll a, ll b) { return (a * b) / gcd(a, b); }
using P = pair<int, int>;
template <class T> bool chmax... | #include <bits/stdc++.h>
#define ll long long
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define rrep(i, n) for (int i = 1; i <= n; i++)
ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; }
ll lcm(ll a, ll b) { return (a * b) / gcd(a, b); }
using P = pair<int, int>;
template <class T> bool chmax... | [
"control_flow.branch.if.condition.change"
] | 318,791 | 318,792 | u937618939 | cpp |
p02612 | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int i = 0;
while (1) {
if (1000 * i >= n) {
break;
}
i++;
}
cout << 1000 * i << endl;
} | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int i = 0;
while (1) {
if (1000 * i >= n) {
break;
}
i++;
}
cout << (1000 * i) - n << endl;
} | [
"expression.operation.binary.add"
] | 318,797 | 318,798 | u691856718 | cpp |
p02612 | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int i = 0;
while (1) {
if (1000 * i <= n) {
break;
}
i++;
}
cout << 1000 * i << endl;
} | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int i = 0;
while (1) {
if (1000 * i >= n) {
break;
}
i++;
}
cout << (1000 * i) - n << endl;
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 318,799 | 318,798 | u691856718 | cpp |
p02612 | #include <iostream>
int main() {
int N;
std::cin >> N;
std::cout << N % 1000;
} | #include <iostream>
int main() {
int N;
std::cin >> N;
std::cout << (10000 - N) % 1000;
}
| [] | 318,800 | 318,801 | u038569501 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, t;
cin >> N;
if (N % 1000 == 0)
cout << 0 << endl;
else {
t = (N / 1000) + 1;
cout << (2 * 1000) - N << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int N, t;
cin >> N;
if (N % 1000 == 0)
cout << 0 << endl;
else {
t = (N / 1000) + 1;
cout << (t * 1000) - N << endl;
}
}
| [
"identifier.replace.add",
"literal.replace.remove",
"io.output.change"
] | 318,811 | 318,812 | u499388581 | 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"
] | 318,829 | 318,830 | u230476430 | cpp |
p02612 |
//#include <tourist>
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> p;
const int INF = 1e9;
const ll LINF = ll(1e18);
const int MOD = 1000000007;
const int dx[4] = {0, 1, 0, -1}, dy[4] = {-1, 0, 1, 0};
const int Dx[8] = {0, 1, 1, 1, 0, -1, -1, -1},
Dy[8] = {-1, -1, 0... |
//#include <tourist>
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> p;
const int INF = 1e9;
const ll LINF = ll(1e18);
const int MOD = 1000000007;
const int dx[4] = {0, 1, 0, -1}, dy[4] = {-1, 0, 1, 0};
const int Dx[8] = {0, 1, 1, 1, 0, -1, -1, -1},
Dy[8] = {-1, -1, 0... | [
"literal.number.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 318,836 | 318,837 | u155416173 | 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"
] | 318,838 | 318,839 | u967638141 | cpp |
p02612 | #include <bits/stdc++.h>
typedef long long ll;
typedef long double ld;
using namespace std;
mt19937_64 mrand(chrono::steady_clock::now().time_since_epoch().count());
// mt19937_64 mrand(42);
#define ii for (int i = 1; i <= n; ++i)
#define ji for (int j = 1; j <= n; ++j)
#define jj for (int j = 1; j <= m; ++j)
#define ... | #include <bits/stdc++.h>
typedef long long ll;
typedef long double ld;
using namespace std;
mt19937_64 mrand(chrono::steady_clock::now().time_since_epoch().count());
// mt19937_64 mrand(42);
#define ii for (int i = 1; i <= n; ++i)
#define ji for (int j = 1; j <= n; ++j)
#define jj for (int j = 1; j <= m; ++j)
#define ... | [] | 318,843 | 318,844 | u780221362 | cpp |
p02612 | #include <iostream>
using namespace std;
int n;
int main() {
cin >> n;
cout << n % 1000 << endl;
}
| #include <iostream>
using namespace std;
int n;
int main() {
cin >> n;
cout << (10000 - n) % 1000 << endl;
}
| [] | 318,848 | 318,849 | u597243424 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t = 1;
// cin>>t;
while (t--) {
ll n;
cin >> n;
cout << (ll)(1000 - n % 1000) << endl;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t = 1;
// cin>>t;
while (t--) {
ll n;
cin >> n;
cout << (1000 - n % 1000) % 1000 << endl;
}
return 0;
} | [
"expression.operation.binary.add"
] | 318,850 | 318,851 | u931098924 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int N;
std::cin >> N;
std::cout << 1000 - N % 1000 << "\n";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int N;
std::cin >> N;
std::cout << (1000 - N % 1000) % 1000 << "\n";
} | [] | 318,852 | 318,853 | u021786236 | cpp |
p02612 | #include <bits/stdc++.h>
#include <math.h>
#define lli long long int
#include <fstream>
#include <limits.h>
using namespace std;
/*lli gcd(lli a,lli b)
{
if(a==0)return b;
return gcd(b%a,a);
}*/
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
lli i, j, tt = 1;
// cin>>tt;
whil... | #include <bits/stdc++.h>
#include <math.h>
#define lli long long int
#include <fstream>
#include <limits.h>
using namespace std;
/*lli gcd(lli a,lli b)
{
if(a==0)return b;
return gcd(b%a,a);
}*/
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
lli i, j, tt = 1;
// cin>>tt;
whil... | [] | 318,854 | 318,855 | u502285205 | cpp |
p02612 | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
using namespace std;
// MACROS
#define ll long long
#define ull unsigned long long
#define ld long double
#define vi vector<int>
#define vll vector<ll>
#define vld vector<ld>
#define u_s unordered_set
#define pii pair<int... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
using namespace std;
// MACROS
#define ll long long
#define ull unsigned long long
#define ld long double
#define vi vector<int>
#define vll vector<ll>
#define vld vector<ld>
#define u_s unordered_set
#define pii pair<int... | [
"identifier.replace.remove",
"literal.replace.add",
"io.output.change"
] | 318,877 | 318,878 | u036597508 | cpp |
p02612 | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
#define setbits(x) __builtin_popcountll(x)
#define mod 1000000007
#define FIO \
ios_base::sync_with_stdio(0); \
cin... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
#define setbits(x) __builtin_popcountll(x)
#define mod 1000000007
#define FIO \
ios_base::sync_with_stdio(0); \
cin... | [
"expression.operation.binary.add"
] | 318,885 | 318,886 | u915642636 | cpp |
p02612 | #include <iostream>
#include <string>
using namespace std;
int main() {
int value;
cin >> value;
value %= 1000;
if (value != 1000)
cout << 1000 - value << endl;
else
cout << 0 << endl;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
int value;
cin >> value;
value %= 1000;
if (value != 0)
cout << 1000 - value << endl;
else
cout << 0 << endl;
} | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 318,887 | 318,888 | u237380198 | cpp |
p02612 | #include <iostream>
using namespace std;
int main() {
int n, m = 0;
cin >> n;
m = n % 1000;
if (m = 0) {
cout << 0 << endl;
} else {
cout << 1000 - m << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int n, m = 0;
cin >> n;
m = n % 1000;
if (m == 0) {
cout << 0 << endl;
} else {
cout << 1000 - m << endl;
}
} | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 318,891 | 318,892 | u344028423 | cpp |
p02612 | #include <iostream>
using namespace std;
int main() {
int yen;
cin >> yen;
cout << (yen % 1000 ? yen / 1000 * 1000 - yen % 1000 : 0) << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int yen;
cin >> yen;
cout << (yen % 1000 ? 1000 - yen % 1000 : 0) << endl;
return 0;
}
| [
"expression.operation.binary.remove"
] | 318,893 | 318,894 | u694163146 | cpp |
p02612 | #include <bits/stdc++.h>
//#include <ext/pb_ds/assoc_container.hpp>
// using namespace __gnu_pbds;
using namespace std;
typedef long long ll;
typedef long double ld;
// typedef tree<int,null_type,less<int
// >,rb_tree_tag,tree_order_statistics_node_update>indexed_set;
template <class T1, class T2> ostream &operator<<(o... | #include <bits/stdc++.h>
//#include <ext/pb_ds/assoc_container.hpp>
// using namespace __gnu_pbds;
using namespace std;
typedef long long ll;
typedef long double ld;
// typedef tree<int,null_type,less<int
// >,rb_tree_tag,tree_order_statistics_node_update>indexed_set;
template <class T1, class T2> ostream &operator<<(o... | [
"expression.operation.binary.add"
] | 318,898 | 318,899 | u576472666 | cpp |
p02612 | #include <bits/stdc++.h>
//#include <ext/pb_ds/assoc_container.hpp>
// using namespace __gnu_pbds;
using namespace std;
typedef long long ll;
typedef long double ld;
// typedef tree<int,null_type,less<int
// >,rb_tree_tag,tree_order_statistics_node_update>indexed_set;
template <class T1, class T2> ostream &operator<<(o... | #include <bits/stdc++.h>
//#include <ext/pb_ds/assoc_container.hpp>
// using namespace __gnu_pbds;
using namespace std;
typedef long long ll;
typedef long double ld;
// typedef tree<int,null_type,less<int
// >,rb_tree_tag,tree_order_statistics_node_update>indexed_set;
template <class T1, class T2> ostream &operator<<(o... | [
"identifier.replace.remove",
"literal.replace.add",
"io.output.change"
] | 318,900 | 318,899 | u576472666 | 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 << (10000 - n) % 1000 << endl;
}
| [] | 318,903 | 318,904 | u681557252 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
const int maxn = 1010;
int n;
int main() {
cin >> n;
cout << 1000 - (n - n / 1000 * 1000);
} | #include <bits/stdc++.h>
using namespace std;
const int maxn = 1010;
int n;
int main() {
cin >> n;
cout << (1000 - (n - n / 1000 * 1000)) % 1000;
} | [
"expression.operation.binary.add"
] | 318,917 | 318,918 | u584985716 | cpp |
p02612 | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
typedef long long ll;
using namespace std;
int main() {
int N;
cin >> N;
int a;
a = N / 1000;
int ans;
ans = (a + 1) * 1000 - N;
if (N % 1000 == 0)
cout << 0 << endl;
cout << ans << endl;
} | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
typedef long long ll;
using namespace std;
int main() {
int N;
cin >> N;
int a;
a = N / 1000;
int ans;
ans = (a + 1) * 1000 - N;
if (N % 1000 == 0)
cout << 0 << endl;
else {
cout << ans << endl;
}
} | [
"control_flow.branch.else.add"
] | 318,922 | 318,923 | u790685134 | 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"
] | 318,934 | 318,935 | u662717485 | cpp |
p02612 | #include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
cout << N % 1000;
} | #include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
cout << (1000 - N % 1000) % 1000;
} | [] | 318,936 | 318,935 | u662717485 | cpp |
p02612 | #include <iostream>
#define s system("pause")
using namespace std;
int main() {
int n;
cin >> n;
if (n % 1000 == 0) {
cout << 0 << endl;
} else if (n > 1000) {
for (int i = 0; i < 10; i++) {
if (i * 1000 > n) {
cout << (i * 1000) - n << endl;
break;
}
}
}
s;
} | #include <iostream>
#define s system("pause")
using namespace std;
int main() {
int n;
cin >> n;
if (n % 1000 == 0) {
cout << 0 << endl;
} else if (n % 1000 > 0) {
for (int i = 0; i < 100; i++) {
if (i * 1000 > n) {
cout << (i * 1000) - n << endl;
break;
}
}
}
s;
} | [
"control_flow.branch.if.condition.change",
"literal.number.change"
] | 318,950 | 318,949 | u595120818 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
const long double pi = 3.14159265358979323846;
#define x first
#define y second
#define deb(...) __f(#__VA_ARGS__, __VA_ARGS__)
template <typename Arg1> void __f(const char *name, Arg1 &&arg1) {
cerr << name << " : " ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
const long double pi = 3.14159265358979323846;
#define x first
#define y second
#define deb(...) __f(#__VA_ARGS__, __VA_ARGS__)
template <typename Arg1> void __f(const char *name, Arg1 &&arg1) {
cerr << name << " : " ... | [] | 318,962 | 318,963 | u023539472 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
#define ordered_set \
tree<int, null_type, less<int>, rb_tree_tag, \
... | #include <bits/stdc++.h>
using namespace std;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
#define ordered_set \
tree<int, null_type, less<int>, rb_tree_tag, \
... | [] | 318,983 | 318,984 | u391366254 | cpp |
p02612 | #include <bits/stdc++.h>
#define int long long
#define vc vector<char>
#define vi vector<int>
#define vs vector<string>
#define si set<int>
#define pii pair<int, int>
#define SORT(c) sort(c.begin(), c.end())
#define SORTC(c, cmp) sort(c.begin(), c.end(), cmp)
#define mapii map<int, int>
#define pb push_back
#define F ... | #include <bits/stdc++.h>
#define int long long
#define vc vector<char>
#define vi vector<int>
#define vs vector<string>
#define si set<int>
#define pii pair<int, int>
#define SORT(c) sort(c.begin(), c.end())
#define SORTC(c, cmp) sort(c.begin(), c.end(), cmp)
#define mapii map<int, int>
#define pb push_back
#define F ... | [] | 318,985 | 318,986 | u141580535 | cpp |
p02612 | #include <bits/stdc++.h>
#define int long long
#define vc vector<char>
#define vi vector<int>
#define vs vector<string>
#define si set<int>
#define pii pair<int, int>
#define SORT(c) sort(c.begin(), c.end())
#define SORTC(c, cmp) sort(c.begin(), c.end(), cmp)
#define mapii map<int, int>
#define pb push_back
#define F ... | #include <bits/stdc++.h>
#define int long long
#define vc vector<char>
#define vi vector<int>
#define vs vector<string>
#define si set<int>
#define pii pair<int, int>
#define SORT(c) sort(c.begin(), c.end())
#define SORTC(c, cmp) sort(c.begin(), c.end(), cmp)
#define mapii map<int, int>
#define pb push_back
#define F ... | [
"expression.operator.arithmetic.change",
"io.output.change"
] | 318,987 | 318,986 | u141580535 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
int ans;
ans = N % 1000;
if (ans = !0) {
cout << 1000 - ans << endl;
} else {
cout << 0 << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
int ans;
ans = N % 1000;
if (ans != 0) {
cout << 1000 - ans << endl;
} else {
cout << 0 << endl;
}
}
| [
"control_flow.branch.if.condition.change",
"expression.operation.unary.logical.remove"
] | 318,990 | 318,991 | u849180774 | cpp |
p02612 | #include <cmath>
#include <iostream>
using namespace std;
int main(void) {
int N;
cin >> N;
int num = ceil((double)(N) / 1000);
cout << N - 1000 * num << endl;
return 0;
} | #include <cmath>
#include <iostream>
using namespace std;
int main(void) {
int N;
cin >> N;
int num = ceil((double)(N) / 1000.0);
cout << 1000 * num - N << endl;
return 0;
} | [
"literal.number.change",
"call.arguments.change",
"expression.operation.binary.change",
"expression.operation.binary.remove"
] | 318,998 | 318,999 | u366169644 | cpp |
p02612 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <climits>
#include <cmath>
#include <cstring>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <unordered_map>
#... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <climits>
#include <cmath>
#include <cstring>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <unordered_map>
#... | [] | 319,000 | 319,001 | u231006891 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int Inf = 1e9 + 5;
int main() {
cin.tie(0);
ios_base::sync_with_stdio(0);
int n;
cin >> n;
cout << n % 1000;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int Inf = 1e9 + 5;
int main() {
cin.tie(0);
ios_base::sync_with_stdio(0);
int n;
cin >> n;
cout << (1000 - n % 1000) % 1000;
return 0;
} | [] | 319,002 | 319,003 | u711524482 | cpp |
p02612 | #include <bits/stdc++.h>
#include <cstring>
//#define Mfc_Tanzim
#define ll long long
#define ull unsigned long long
#define pb push_back
#define ff first
#define ss second
#define all(v) (v.begin(), v.end())
#define pi acos(-1.0)
#define FastRead \
ios_ba... | #include <bits/stdc++.h>
#include <cstring>
//#define Mfc_Tanzim
#define ll long long
#define ull unsigned long long
#define pb push_back
#define ff first
#define ss second
#define all(v) (v.begin(), v.end())
#define pi acos(-1.0)
#define FastRead \
ios_ba... | [
"expression.operation.binary.add"
] | 319,004 | 319,005 | u509822942 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
#define FAST_IO \
ios::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
#define pb pu... | #include <bits/stdc++.h>
using namespace std;
#define FAST_IO \
ios::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
#define pb pu... | [
"expression.operation.binary.add"
] | 319,006 | 319,007 | u671939683 | cpp |
p02612 | // AtCoder template
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < n; ++i)
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int n;
cin >> n;
cout << (n + 1000) / 1000 * 1000 - n << endl;
} | // AtCoder template
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < n; ++i)
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int n;
cin >> n;
cout << (n + 1000 - 1) / 1000 * 1000 - n << endl;
} | [
"expression.operation.binary.add"
] | 319,019 | 319,020 | u083190434 | cpp |
p02612 | // AtCoder template
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < n; ++i)
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int n;
cin >> n;
cout << (n + 1) / 1000 * 1000 - n << endl;
} | // AtCoder template
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < n; ++i)
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int n;
cin >> n;
cout << (n + 1000 - 1) / 1000 * 1000 - n << endl;
} | [
"expression.operation.binary.add"
] | 319,021 | 319,020 | u083190434 | cpp |
p02612 | #include <cstdio>
int main() {
int n;
scanf("%d", &n);
printf("%d", (n % 1000));
return 0;
}
| #include <cstdio>
int main() {
int n;
scanf("%d", &n);
printf("%d", (1000 - n % 1000) % 1000);
return 0;
}
| [
"expression.operation.binary.add"
] | 319,029 | 319,030 | u076061833 | cpp |
p02612 | #include <iostream>
using namespace std;
int change(int N) {
int x = N % 1000;
if (x <= 500)
return x;
else
return (1000 - x);
}
int main() {
int N;
cin >> N;
cout << change(N);
} | #include <iostream>
using namespace std;
int change(int N) {
int x = N % 1000;
if (x == 0)
return 0;
else
return (1000 - x);
}
int main() {
int N;
cin >> N;
cout << change(N);
} | [
"identifier.replace.remove",
"literal.replace.add",
"function.return_value.change"
] | 319,033 | 319,034 | u321452247 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
n = n % 1000;
if (n > 500)
n = 1000 - n;
cout << n << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
n = n % 1000;
if (n != 0)
n = 1000 - n;
cout << n << endl;
} | [] | 319,037 | 319,038 | u198738430 | 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"
] | 319,048 | 319,049 | u417147392 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> P;
#define all(v) v.begin(), v.end()
const ll mod = 1000000007;
ll countBits(ll in) {
int res = 0;
for (; in > 0; in >>= 1) {
if ((in & 0x01) != 0) {
res++;
}
}
return res;... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> P;
#define all(v) v.begin(), v.end()
const ll mod = 1000000007;
ll countBits(ll in) {
int res = 0;
for (; in > 0; in >>= 1) {
if ((in & 0x01) != 0) {
res++;
}
}
return res;... | [
"assignment.add"
] | 319,050 | 319,051 | u882037708 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
#define fi first
#define se second
#define Mp make_pair
#define pb push_back
using ll = long long;
using db = double;
using pii = pair<int, int>;
using vi = vector<int>;
signed main() {
int n;
cin >> n;
cout << 1000 - n % 1000 << endl;
fprintf(stderr, "time=%.4f\n... | #include <bits/stdc++.h>
using namespace std;
#define fi first
#define se second
#define Mp make_pair
#define pb push_back
using ll = long long;
using db = double;
using pii = pair<int, int>;
using vi = vector<int>;
signed main() {
int n;
cin >> n;
cout << (1000 - n % 1000) % 1000 << endl;
fprintf(stderr, "ti... | [] | 319,058 | 319,057 | u733859316 | cpp |
p02612 | #include <iostream>
using namespace std;
int main(void) {
int N;
cin >> N;
for (; N >= 1000; N -= 1000) {
;
}
cout << N << endl;
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
int N;
cin >> N;
for (; N > 0; N -= 1000) {
;
}
cout << abs(N) << endl;
return 0;
} | [
"control_flow.loop.for.condition.change",
"call.add",
"call.arguments.change"
] | 319,063 | 319,064 | u171092147 | cpp |
p02612 | #include <iostream>
using namespace std;
int main(void) {
int N;
cin >> N;
for (; N > 1000; N -= 1000) {
;
}
cout << N << endl;
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
int N;
cin >> N;
for (; N > 0; N -= 1000) {
;
}
cout << abs(N) << endl;
return 0;
} | [
"literal.number.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"call.add",
"call.arguments.change"
] | 319,066 | 319,064 | u171092147 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int n;
int main() {
cin >> n;
cout << (-n) % 1000 + 1000;
} | #include <bits/stdc++.h>
using namespace std;
int n;
int main() {
cin >> n;
cout << ((-n) % 1000 + 1000) % 1000;
} | [
"expression.operation.binary.add"
] | 319,067 | 319,068 | u744484117 | cpp |
p02612 | #include <bits/stdc++.h>
#include <iostream>
#include <unordered_map>
#include <vector>
#define ll long long
using namespace std;
int main() {
ll n;
cin >> n;
ll q = n / 1000;
ll r = q % 1000;
if (r == 0)
cout << 0 << endl;
else
cout << (q + 1) * 1000 - n << endl;
return 0;
}
| #include <bits/stdc++.h>
#include <iostream>
#include <unordered_map>
#include <vector>
#define ll long long
using namespace std;
int main() {
ll n;
cin >> n;
ll q = n / 1000;
ll r = n % 1000;
if (r == 0)
cout << 0 << endl;
else
cout << (q + 1) * 1000 - n << endl;
return 0;
}
| [
"identifier.change",
"expression.operation.binary.change"
] | 319,071 | 319,072 | u756848425 | cpp |
p02612 | #include <bits/stdc++.h>
#define ll long long
#define all(x) begin(x), end(x)
#define range(x) begin(x), begin(x)
#define what(x) cout << #x << ": " << x << '\n'
#define print(x) \
for (auto &el : x) ... | #include <bits/stdc++.h>
#define ll long long
#define all(x) begin(x), end(x)
#define range(x) begin(x), begin(x)
#define what(x) cout << #x << ": " << x << '\n'
#define print(x) \
for (auto &el : x) ... | [] | 319,092 | 319,093 | u717496033 | cpp |
p02612 | #include <bits/stdc++.h>
#define ll long long
#define all(x) begin(x), end(x)
#define range(x) begin(x), begin(x)
#define what(x) cout << #x << ": " << x << '\n'
#define print(x) \
for (auto &el : x) ... | #include <bits/stdc++.h>
#define ll long long
#define all(x) begin(x), end(x)
#define range(x) begin(x), begin(x)
#define what(x) cout << #x << ": " << x << '\n'
#define print(x) \
for (auto &el : x) ... | [] | 319,094 | 319,093 | u717496033 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, S, T;
cin >> N;
S = N / 1000;
T = (S + 1) * 1000 - N;
if (T == 1000) {
cout << "0" << endl;
} else {
cout << N << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, S, T;
cin >> N;
S = N / 1000;
T = (S + 1) * 1000 - N;
if (T == 1000) {
cout << "0" << endl;
} else {
cout << T << endl;
}
} | [
"identifier.change",
"io.output.change"
] | 319,097 | 319,098 | u695014713 | cpp |
p02612 | #include <iostream>
using namespace std;
int main() {
// insert code here...
int n;
cin >> n;
int i;
for (i = 0; 1000 * i < n; i++)
;
cout << n - i * 1000 << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
// insert code here...
int n;
cin >> n;
int i;
for (i = 0; 1000 * i < n; i++)
;
cout << i * 1000 - n << endl;
return 0;
} | [
"expression.operation.binary.remove"
] | 319,099 | 319,100 | u910608076 | cpp |
p02612 |
// author-Shivam gupta
#include <bits/stdc++.h>
using namespace std;
#define MEM(a, b) memset(a, (b), sizeof(a))
#define FOREACH(it, l) for (auto it = l.begin(); it != l.end(); it++)
#define IN(A, B, C) assert(B <= A && A <= C)
#define MP make_pair
#define FOR(i, a) for (int i = 0; i < a; i++)
#define FOR1(i, j... |
// author-Shivam gupta
#include <bits/stdc++.h>
using namespace std;
#define MEM(a, b) memset(a, (b), sizeof(a))
#define FOREACH(it, l) for (auto it = l.begin(); it != l.end(); it++)
#define IN(A, B, C) assert(B <= A && A <= C)
#define MP make_pair
#define FOR(i, a) for (int i = 0; i < a; i++)
#define FOR1(i, j... | [
"identifier.replace.remove",
"literal.replace.add",
"io.output.change"
] | 319,101 | 319,102 | u237380963 | cpp |
p02612 |
// author-Shivam gupta
#include <bits/stdc++.h>
using namespace std;
#define MEM(a, b) memset(a, (b), sizeof(a))
#define FOREACH(it, l) for (auto it = l.begin(); it != l.end(); it++)
#define IN(A, B, C) assert(B <= A && A <= C)
#define MP make_pair
#define FOR(i, a) for (int i = 0; i < a; i++)
#define FOR1(i, j... |
// author-Shivam gupta
#include <bits/stdc++.h>
using namespace std;
#define MEM(a, b) memset(a, (b), sizeof(a))
#define FOREACH(it, l) for (auto it = l.begin(); it != l.end(); it++)
#define IN(A, B, C) assert(B <= A && A <= C)
#define MP make_pair
#define FOR(i, a) for (int i = 0; i < a; i++)
#define FOR1(i, j... | [] | 319,103 | 319,102 | u237380963 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll mod = 1e9 + 7;
const double eps = 1e-8;
const int N = 1000 + 10;
int main() {
int n;
cin >> n;
int sum = n % 1000;
cout << (1000 - n) << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll mod = 1e9 + 7;
const double eps = 1e-8;
const int N = 1000 + 10;
int main() {
int n;
cin >> n;
int sum = n % 1000;
cout << (1000 - sum) % 1000 << endl;
return 0;
} | [
"identifier.change",
"io.output.change"
] | 319,112 | 319,113 | u027057023 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, i, ans;
cin >> N;
if (N == 0) {
cout << 0 << endl;
return 0;
}
if (N == 10000) {
cout << 0 << endl;
return 0;
}
int j = N / 1000;
i = (j + 1) * 1000;
ans = i - N;
cout << ans << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, i, ans;
cin >> N;
if (N == 0) {
cout << 0 << endl;
return 0;
}
if (N % 1000 == 0) {
cout << 0 << endl;
return 0;
}
int j = N / 1000;
i = (j + 1) * 1000;
ans = i - N;
cout << ans << endl;
return 0;
} | [
"control_flow.branch.if.condition.change",
"literal.number.change"
] | 319,119 | 319,120 | u478254786 | cpp |
p02612 | #include <iostream>
int main() {
int n = 0;
std::cin >> n;
auto y = (n % 1000);
if (y > 0) {
std::cout << y;
} else {
std::cout << 0;
}
} | #include <iostream>
int main() {
int n = 0;
std::cin >> n;
auto y = (n % 1000);
if (y > 0) {
std::cout << 1000 - y;
} else {
std::cout << 0;
}
} | [
"expression.operation.binary.add"
] | 319,123 | 319,124 | u531062941 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, sum = 0;
cin >> n;
for (int i = 0; i <= n; i++) {
if ((n + i) % 1000 == 0) {
sum = i;
break;
}
}
cout << sum;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, sum = 0;
cin >> n;
for (int i = 0; i <= 999; i++) {
if ((n + i) % 1000 == 0) {
sum = i;
break;
}
}
cout << sum;
} | [
"identifier.replace.remove",
"literal.replace.add",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 319,137 | 319,138 | u350188630 | cpp |
p02612 | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
int ans;
ans = N;
while (ans >= 0) {
ans -= 1000;
}
ans += 1000;
cout << ans;
return 0;
} | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
int ans;
ans = N;
while (ans > 0) {
ans -= 1000;
}
ans *= (-1);
cout << ans;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.loop.condition.change",
"assignment.change"
] | 319,150 | 319,151 | u490959703 | cpp |
p02612 | #include <stdio.h>
int main(void) {
int n;
scanf("%d", &n);
n = n % 1000;
if (n != 0)
n -= 1000;
printf("%d\n", n);
return 0;
} | #include <stdio.h>
int main(void) {
int n;
scanf("%d", &n);
n = n % 1000;
if (n != 0)
n = 1000 - n;
printf("%d\n", n);
return 0;
} | [
"assignment.value.change",
"assignment.change"
] | 319,152 | 319,153 | u481574904 | cpp |
p02612 | #include <bits/stdc++.h>
typedef long long ll;
#define IO \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
#define endl '... | #include <bits/stdc++.h>
typedef long long ll;
#define IO \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
#define endl '... | [
"expression.operator.arithmetic.change",
"io.output.change"
] | 319,160 | 319,161 | u513808307 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
int a;
a = N % 1000;
int b;
if (a == 1000) {
cout << 0 << endl;
} else {
cout << 1000 - a << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
int a;
a = N % 1000;
int b;
if (a == 0) {
cout << 0 << endl;
} else {
cout << 1000 - a << endl;
}
}
| [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 319,164 | 319,165 | u144947319 | cpp |
p02612 | #include <bits/stdc++.h>
#include <cmath>
using ll = long long;
using namespace std;
stack<int> st;
queue<int> qu;
queue<pair<int, int>> qu2;
priority_queue<int> pq;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, n) for (int i = 1; i <= (int)(n); i++)
#define mins(x, y) x = min(x, y)
#define maxs(... | #include <bits/stdc++.h>
#include <cmath>
using ll = long long;
using namespace std;
stack<int> st;
queue<int> qu;
queue<pair<int, int>> qu2;
priority_queue<int> pq;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, n) for (int i = 1; i <= (int)(n); i++)
#define mins(x, y) x = min(x, y)
#define maxs(... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 319,177 | 319,178 | u300866293 | cpp |
p02612 |
#include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
if (N % 1000 == 0)
cout << 0 << endl;
cout << 1000 - N % 1000 << endl;
return 0;
}
|
#include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
if (N % 1000 == 0)
cout << 0 << endl;
else
cout << 1000 - N % 1000 << endl;
return 0;
}
| [
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add"
] | 319,187 | 319,188 | u924721750 | cpp |
p02612 | #include <bits/stdc++.h>
//#include <iostream>
//#include <vector>
using namespace std;
int main() {
int N;
cin >> N;
int x = N / 1000 + 1;
cout << x * 1000 - N;
} | #include <bits/stdc++.h>
//#include <iostream>
//#include <vector>
using namespace std;
int main() {
int N;
cin >> N;
int x = (N + 999) / 1000;
cout << x * 1000 - N;
} | [
"expression.operation.binary.remove"
] | 319,189 | 319,190 | u372076539 | 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;
} | [] | 319,193 | 319,194 | u260577896 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int amount;
int main() {
cin >> amount;
if (amount % 1000 == 0) {
cout << 0;
}
cout << (1000 - amount % 1000);
} | #include <bits/stdc++.h>
using namespace std;
int amount;
int main() {
cin >> amount;
if (amount % 1000 == 0) {
cout << 0 << endl;
} else
cout << (1000 - amount % 1000);
}
| [
"io.output.newline.add",
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add"
] | 319,200 | 319,201 | u544359411 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
#define mp make_pair
#define fi first
#define se second
#define pb push_back
#define vso(x) sort(x.begin(), x.end())
#define vre(x) reverse(x.begin(), x.end());
#define aso(x) sort(x, x + x.size())
#define are(x) reverse(x, x + x.size())
#define print(x) cout << x << endl... | #include <bits/stdc++.h>
using namespace std;
#define mp make_pair
#define fi first
#define se second
#define pb push_back
#define vso(x) sort(x.begin(), x.end())
#define vre(x) reverse(x.begin(), x.end());
#define aso(x) sort(x, x + x.size())
#define are(x) reverse(x, x + x.size())
#define print(x) cout << x << endl... | [
"expression.operation.binary.add"
] | 319,202 | 319,203 | u820982590 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
typedef vector<int> VI;
template <class T> bool chmax(T &a, const T &b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> bool chmin(T &a, const T &b) {
if (a > b) {
a = b;
return 1;
}... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
typedef vector<int> VI;
template <class T> bool chmax(T &a, const T &b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> bool chmin(T &a, const T &b) {
if (a > b) {
a = b;
return 1;
}... | [
"assignment.change"
] | 319,208 | 319,209 | u378702452 | cpp |
p02612 | #include <algorithm>
#include <iostream>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
class Change {
public:
int getChange(int n) { return n % 1000; }
};
int main(int argc, const char *argv[]) {
Change c;
string nLn;
... | #include <algorithm>
#include <iostream>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
class Change {
public:
int getChange(int n) { return (1000 - n % 1000) % 1000; }
};
int main(int argc, const char *argv[]) {
Change c... | [] | 319,212 | 319,213 | u989996503 | 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 << (100000 - n) % 1000 << endl;
return 0;
} | [
"literal.number.change",
"io.output.change"
] | 319,214 | 319,215 | u833963136 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
cout << n % 1000 << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
cout << (100000 - n) % 1000 << endl;
return 0;
} | [] | 319,216 | 319,215 | u833963136 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
int cost;
cin >> cost;
int money;
while (money < cost) {
money + 1000;
}
cout << money - cost << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int cost;
cin >> cost;
int money = 0;
while (money < cost) {
money += 1000;
}
cout << money - cost << endl;
} | [
"variable_declaration.value.change",
"assignment.compound.arithmetic.replace.add",
"expression.operator.arithmetic.replace.remove",
"expression.operation.binary.change"
] | 319,232 | 319,231 | u861277199 | cpp |
p02612 | #include <cmath>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <list>
#include <map>
#include <string>
#include <vector>
using namespace std;
#define ll long long
#define uint unsigned int
#define alloc(n, type) (type *)calloc(n, sizeof(type))
#define MODULE 1
#define RAND(min, max) (rand() % (max -... | #include <cmath>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <list>
#include <map>
#include <string>
#include <vector>
using namespace std;
#define ll long long
#define uint unsigned int
#define alloc(n, type) (type *)calloc(n, sizeof(type))
#define MODULE 1
#define RAND(min, max) (rand() % (max -... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 319,236 | 319,237 | u756761824 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
int main() {
int n;
cin >> n;
cout << n % 1000 << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
int main() {
int n;
cin >> n;
cout << (1000 - n % 1000) % 1000 << endl;
return 0;
} | [] | 319,238 | 319,239 | u264721671 | cpp |
p02612 | /*
NAME : RISHABH SINGH
INSTITUTION : DELHI TECHNOLOGICAL UNIVERSITY
*/
#include "bits/stdc++.h"
using namespace std;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
#define int long long
#define pii pair<int, int>
#define bi __builtin_inf()
#define ll long ... | /*
NAME : RISHABH SINGH
INSTITUTION : DELHI TECHNOLOGICAL UNIVERSITY
*/
#include "bits/stdc++.h"
using namespace std;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
#define int long long
#define pii pair<int, int>
#define bi __builtin_inf()
#define ll long ... | [
"identifier.replace.remove",
"literal.replace.add",
"io.output.change"
] | 319,244 | 319,245 | u151237342 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
class Solution {
public:
void solve() {
int n;
cin >> n;
cout << 1000 - n % 1000 << endl;
return;
};
};
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
Solution solution;
solution.solve();
return 0;
} | #include <bits/stdc++.h>
using namespace std;
class Solution {
public:
void solve() {
int n;
cin >> n;
cout << (1000 - n % 1000) % 1000 << endl;
return;
};
};
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
Solution solution;
solution.solve();
return 0;
} | [] | 319,261 | 319,262 | u614497125 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
void solve(std::istream &in, std::ostream &out);
int main() {
#ifdef LOCAL
freopen("../IO/a.in", "r", stdin);
// freopen("../IO/a.out", "w", stdout);
#else
std::ios_base::sync_with_stdio(false);
std::cin.tie(nullptr);
std::cout.tie(nullptr);
#endif
solve(std::c... | #include <bits/stdc++.h>
using namespace std;
void solve(std::istream &in, std::ostream &out);
int main() {
#ifdef LOCAL
freopen("../IO/a.in", "r", stdin);
// freopen("../IO/a.out", "w", stdout);
#else
std::ios_base::sync_with_stdio(false);
std::cin.tie(nullptr);
std::cout.tie(nullptr);
#endif
solve(std::c... | [
"assignment.change",
"expression.operation.binary.remove"
] | 319,263 | 319,264 | u478275206 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a;
if (a % 1000 == 0)
cout << 0;
else
cout << 1000 - a % 1000;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a;
cin >> a;
if (a % 1000 == 0)
cout << 0;
else
cout << 1000 - a % 1000;
return 0;
}
| [] | 319,274 | 319,275 | u558698961 | cpp |
p02612 | #include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
if (N % 1000 == 0)
cout << 0;
cout << 1000 - N % 1000;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
if (N % 1000 == 0) {
cout << 0;
} else {
cout << 1000 - N % 1000;
}
return 0;
} | [
"control_flow.branch.else.add"
] | 319,276 | 319,277 | u792578588 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
int n;
cin >> n;
if (n % 1000)
cout << n - n % 1000;
else
cout << 0;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
int n;
cin >> n;
if (n % 1000)
cout << 1000 - n % 1000;
else
cout << 0;
return 0;
} | [
"identifier.replace.remove",
"literal.replace.add",
"io.output.change"
] | 319,300 | 319,301 | u311090179 | cpp |
p02612 | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
n = 1000 - (n % 1000);
if (n == 1000)
n = 0;
cout << 1000 - (n % 1000);
return 0;
} | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
n = 1000 - (n % 1000);
if (n == 1000)
n = 0;
cout << n;
return 0;
} | [
"expression.operation.binary.remove"
] | 319,305 | 319,306 | u037690678 | cpp |
p02612 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
static const int MOD = 1000000007;
using ll = long long;
using u32 = unsigned;
using u64 = unsigned long long;
using namespace std;
template <class T> constexp... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
static const int MOD = 1000000007;
using ll = long long;
using u32 = unsigned;
using u64 = unsigned long long;
using namespace std;
template <class T> constexp... | [] | 319,317 | 319,318 | u915020369 | cpp |
p02612 | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
const int N = 101;
int a[N][N];
int main() {
int n;
cin >> n;
while (n >= 1000) {
n -= 1000;
}
cout << n << endl;
}
| #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
const int N = 101;
int a[N][N];
int main() {
int n;
cin >> n;
while (n > 0) {
n -= 1000;
}
cout << -n << endl;
}
| [
"expression.operation.unary.add"
] | 319,329 | 319,330 | u374210933 | cpp |
p02612 | #include <bits/stdc++.h>
#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#define ll long long
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define pii pair<ll, ll>
#define vi vector<ll>
#define vii vector<pi... | #include <bits/stdc++.h>
#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#define ll long long
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define pii pair<ll, ll>
#define vi vector<ll>
#define vii vector<pi... | [
"expression.operation.binary.remove"
] | 319,343 | 319,344 | u513424663 | cpp |
p02612 | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define INF 1073741824
#define ll long long
#define PI (2 * acos(0.0))
#define p1(n) printf("showing %d\n", n)
#define p2(m, n) printf("showing %d %d\n", m, n)
#define fastIO ... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define INF 1073741824
#define ll long long
#define PI (2 * acos(0.0))
#define p1(n) printf("showing %d\n", n)
#define p2(m, n) printf("showing %d %d\n", m, n)
#define fastIO ... | [
"call.arguments.add"
] | 319,345 | 319,346 | u460398086 | cpp |
p02612 | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define INF 1073741824
#define ll long long
#define PI (2 * acos(0.0))
#define p1(n) printf("showing %d\n", n)
#define p2(m, n) printf("showing %d %d\n", m, n)
#define fastIO ... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define INF 1073741824
#define ll long long
#define PI (2 * acos(0.0))
#define p1(n) printf("showing %d\n", n)
#define p2(m, n) printf("showing %d %d\n", m, n)
#define fastIO ... | [
"identifier.replace.remove",
"literal.replace.add",
"expression.operation.binary.change",
"call.arguments.add"
] | 319,347 | 319,346 | u460398086 | cpp |
p02612 | /**
* code generated by JHelper
* More info: https://github.com/AlexeyDmitriev/JHelper
* @author cherrypi59
*/
#pragma GCC optimize("O2")
#pragma GCC optimize("tree-vectorize")
#pragma GCC target("sse4")
#include <bits/stdc++.h>
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define FFOR(i, a, b) FOR(i, a, ... | /**
* code generated by JHelper
* More info: https://github.com/AlexeyDmitriev/JHelper
* @author cherrypi59
*/
#pragma GCC optimize("O2")
#pragma GCC optimize("tree-vectorize")
#pragma GCC target("sse4")
#include <bits/stdc++.h>
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define FFOR(i, a, b) FOR(i, a, ... | [
"identifier.replace.remove",
"literal.replace.add",
"expression.operation.binary.change"
] | 319,352 | 319,353 | u354638986 | cpp |
p02612 | #include <iostream>
using namespace std;
int main() {
int n, m;
cin >> n;
m = n % 1000;
if (n == 0)
cout << n << endl;
else
cout << 1000 - m << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int n, m;
cin >> n;
m = n % 1000;
if (m == 0)
cout << 0 << endl;
else
cout << 1000 - m << endl;
return 0;
} | [
"identifier.change",
"control_flow.branch.if.condition.change",
"identifier.replace.remove",
"literal.replace.add",
"io.output.change"
] | 319,354 | 319,355 | u584206701 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.