buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
#include <stdio.h>
int main() {
int r = 1000;
int n;
scanf("%d", &n);
printf("%d\n", n % r);
return 0;
}
| #include <stdio.h>
int main() {
int r = 1000;
int n;
scanf("%d", &n);
printf("%d\n", (r - n % r) % r);
return 0;
}
| [["+", 0, 2, 3, 4, 0, 16, 31, 23, 0, 24], ["+", 3, 4, 0, 16, 31, 23, 0, 16, 31, 22], ["+", 3, 4, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 16, 31, 23, 0, 16, 12, 16, 17, 109], ["+", 0, 16, 31, 23, 0, 16, 12, 16, 12, 22], ["+", 0, 2, 3, 4, 0, 16, 31, 23, 0, 25]] | 0 | 41 |
#include <stdio.h>
int main() {
int a = 1000;
int n;
scanf("%d", &n);
printf("%d", (a - n % 1000));
return 0;
}
| #include <stdio.h>
int main() {
int a = 1000;
int n;
scanf("%d", &n);
printf("%d", (a - n % 1000) % 1000);
return 0;
}
| [["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 109], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 0 | 44 |
#include <bits/stdc++.h>
#define ll long long
#define pii pair<int, int>
#define vii vector<int>
#define vcc vector<char>
#define pll pair<long long, long long>
#define mem memset
#define sof sizeof
#define co1 __builtin_popcountll
#define PB push_back
#define UB upper_bound
#define LB lower_bound
#define MP make_pair
... | #include <bits/stdc++.h>
#define ll long long
#define pii pair<int, int>
#define vii vector<int>
#define vcc vector<char>
#define pll pair<long long, long long>
#define mem memset
#define sof sizeof
#define co1 __builtin_popcountll
#define PB push_back
#define UB upper_bound
#define LB lower_bound
#define MP make_pair
... | [["-", 8, 9, 0, 57, 64, 1, 0, 16, 12, 22], ["+", 8, 9, 0, 57, 64, 1, 0, 16, 12, 13]] | 1 | 243 |
#include <iostream>
using namespace std;
int main() {
int N;
if (N % 1000 > 0) {
cout << 1000 * (N / 1000 + 1) - N;
} else {
cout << 0;
}
} | #include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
if (N % 1000 > 0) {
cout << 1000 * (N / 1000 + 1) - N;
} else {
cout << 0;
}
} | [["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 46 |
/* author: Mohammad Sheraj */
/* Clang++17 launch.json for debugger */
// freopen("input.txt", "r", stdin);
// freopen("output.txt", "w", stdout);
// char buf[10]; fgets(buf, 10, stdin);
// Use long long instead of long
// cout<<"Case #"<<t<<": "<<answer<<endl;
//////////////////////////////////////////////////////////... | /* author: Mohammad Sheraj */
/* Clang++17 launch.json for debugger */
// freopen("input.txt", "r", stdin);
// freopen("output.txt", "w", stdout);
// char buf[10]; fgets(buf, 10, stdin);
// Use long long instead of long
// cout<<"Case #"<<t<<": "<<answer<<endl;
//////////////////////////////////////////////////////////... | [["+", 0, 1, 0, 16, 12, 16, 31, 23, 0, 24], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 31, 13], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 17, 109], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 12, 13], ["+", 0, 1, 0, 16, 12, 16, 31, 23, 0, 25]] | 1 | 69 |
N = int(input())
if N%1000 != 0:
maisu = N//1000 + 1
else:
maisu = N//1000
print(maisu*1000-k) | N = int(input())
if N%1000 != 0:
maisu = N//1000 + 1
else:
maisu = N//1000
print(maisu*1000-N) | [["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22]] | 5 | 37 |
import math
price = int(input())
comma_price = math.ceil(price / 1000)
comma_price *= 1000
print(comma_price)
print(comma_price - price) | import math
price = int(input())
comma_price = math.ceil(price / 1000)
comma_price *= 1000
print(comma_price - price) | [["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 31, 22]] | 5 | 33 |
#include <iostream>
using namespace std;
int main() {
int N;
int r;
cin >> N;
if (N = 1000) {
r = 0;
} else {
r = N % 1000;
}
cout << r;
} | #include <iostream>
using namespace std;
int main() {
int N;
int r;
cin >> N;
if (N % 1000 == 0) {
r = 0;
} else {
r = 1000 - N % 1000;
}
cout << r;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 0, 9, 0, 1, 0, 11, 12, 16, 31, 13], ["+", 0, 9, 0, 1, 0, 11, 12, 16, 17, 33]] | 1 | 47 |
n = int(input())
res = n%1000
if res == 0:
print(0)
else:
print(100-res)
| n = int(input())
res = n % 1000
if res == 0:
print(res)
else:
print(1000-res) | [["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 612], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 31, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 31, 612]] | 5 | 30 |
#include <cmath>
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
cout << (int)ceil(n / 1000) * 1000 - n << endl;
return 0;
}
| #include <cmath>
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
cout << (int)ceil(n / 1000.0) * 1000 - n << endl;
return 0;
}
| [["-", 31, 74, 51, 2, 3, 4, 0, 16, 12, 13], ["+", 31, 74, 51, 2, 3, 4, 0, 16, 12, 13]] | 1 | 42 |
#include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <deque>
#include <forward_list>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <tuple>
#include <utility>
#include <vector>
#define... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <deque>
#include <forward_list>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <tuple>
#include <utility>
#include <vector>
#define... | [["+", 31, 16, 12, 23, 0, 16, 31, 23, 0, 24], ["+", 12, 23, 0, 16, 31, 23, 0, 16, 17, 72], ["+", 12, 23, 0, 16, 31, 23, 0, 16, 12, 13], ["+", 31, 16, 12, 23, 0, 16, 31, 23, 0, 25], ["-", 12, 16, 31, 16, 12, 23, 0, 16, 17, 72], ["-", 12, 16, 31, 16, 12, 23, 0, 16, 12, 13]] | 1 | 112 |
#include <stdio.h>
int main(void) {
char nstr[6];
int n;
fgets(nstr, sizeof(nstr), stdin);
sscanf(nstr, "%d", &n);
n % 1000 == 0 ? printf("0") : printf("%d\n", n % 1000);
return 0;
} | #include <stdio.h>
int main(void) {
char nstr[6];
int n;
fgets(nstr, sizeof(nstr), stdin);
sscanf(nstr, "%d", &n);
n % 1000 == 0 ? printf("0") : printf("%d\n", 1000 - n % 1000);
return 0;
} | [["+", 0, 41, 75, 2, 3, 4, 0, 16, 31, 13], ["+", 0, 41, 75, 2, 3, 4, 0, 16, 17, 33]] | 0 | 70 |
#include <bits/stdc++.h>
#define ll long long
// vector<int> g1;
// g1.push_back(i);
using namespace std;
int main() {
int N;
cin >> N;
int tmp = N % 1000;
cout << 1000 - tmp << endl;
return 0;
}
| #include <bits/stdc++.h>
#define ll long long
// vector<int> g1;
// g1.push_back(i);
using namespace std;
int main() {
int N;
cin >> N;
int tmp = N % 1000;
cout << (1000 - tmp) % 1000 << endl;
return 0;
}
| [["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 25], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 109], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]] | 1 | 42 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int n;
cin >> n;
cout << n % 1000 << endl;
} | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int n;
cin >> n;
cout << (1000 - n % 1000) % 1000 << endl;
} | [["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 31, 13], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 17, 109], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 12, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 25]] | 1 | 35 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
scan.close();
int remainder;
if ((N % 1000) == 0) {
remainder = 0;
} else {
remainder = N % 1000;
}
System.out.println(rema... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
scan.close();
int remainder;
if ((N % 1000) == 0) {
remainder = 0;
} else {
remainder = 1000 - N % 1000;
}
System.out.print... | [["+", 75, 196, 0, 1, 0, 11, 12, 16, 31, 499], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 17, 33]] | 3 | 87 |
#include <stdio.h>
int main(void) {
int N;
int x;
scanf("%d", &N);
printf("%d\n", (N % 1000) % 1000);
} | #include <stdio.h>
int main(void) {
int N;
int x;
scanf("%d", &N);
printf("%d\n", (1000 - N % 1000) % 1000);
} | [["+", 3, 4, 0, 16, 31, 23, 0, 16, 31, 13], ["+", 3, 4, 0, 16, 31, 23, 0, 16, 17, 33]] | 0 | 41 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
const int N = 2e5 + 10, mod = 1e9 + 7;
void solve() {
int n;
cin >> n;
while (n >= 1000) {
n -= 1000;
}
if (n == 1000) {
cout << 0 << endl;
}
cout << 1000 - n << endl;
}
int main() {
ios_base::syn... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
const int N = 2e5 + 10, mod = 1e9 + 7;
void solve() {
int n;
cin >> n;
while (n >= 1000) {
n -= 1000;
}
if (n == 0) {
cout << 0 << endl;
return;
}
cout << 1000 - n << endl;
}
int main() {
ios_... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 57, 64, 9, 0, 37, 0, 38]] | 1 | 125 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
#define repd(i, a, b) for (int i = a; i < int(b); i++)
#define rep(i, n) repd(i, 0, n)
#define VARNAME(v) #v
using P = pair<int, int>;
constexpr int MOD = 1000000007;
// constexpr int MOD = 998244353;
constexpr ll INF = 1e16;
#... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
#define repd(i, a, b) for (int i = a; i < int(b); i++)
#define rep(i, n) repd(i, 0, n)
#define VARNAME(v) #v
using P = pair<int, int>;
constexpr int MOD = 1000000007;
// constexpr int MOD = 998244353;
constexpr ll INF = 1e16;
#... | [["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 17, 109], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 12, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 25]] | 1 | 1,647 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int r = N;
while (r > 0) {
r = r - 1000;
}
System.out.println(r);
}
} | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int r = N;
while (r > 0) {
r = r - 1000;
}
System.out.println(-r);
}
} | [["+", 0, 1, 0, 492, 3, 4, 0, 91, 17, 33]] | 3 | 72 |
#atcoder173
a=int(input())
b=1000-a%1000
print(b) | #atcoder173a
a=int(input())
b=(1000-a%1000)%1000
print(b) | [["+", 0, 1, 0, 662, 12, 657, 31, 23, 0, 24], ["+", 12, 657, 31, 23, 0, 657, 12, 657, 17, 109], ["+", 12, 657, 31, 23, 0, 657, 12, 657, 12, 612], ["+", 0, 1, 0, 662, 12, 657, 31, 23, 0, 25]] | 5 | 20 |
n = input()
while(n > 0):
n -= 1000
print(-n)
| n = int(input())
while(n > 0):
n -= 1000
print(-n)
| [["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 20 |
// AtCoder Biginner Contest 173 A問題
#include <stdio.h>
int main(void) {
int n, m;
scanf("%d", &n);
m = n % 1000;
if (m == 0) {
printf("%d", 0);
} else {
m = 1000 - m;
printf("%s", m);
}
return 0;
}
| // AtCoder Biginner Contest 173 A問題
#include <stdio.h>
int main(void) {
int n, m;
scanf("%d", &n);
m = n % 1000;
if (m == 0) {
printf("%d", 0);
} else {
m = 1000 - m;
printf("%d", m);
}
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 69 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int num;
float check_number, rest_num;
cin >> num;
check_number = num / 1000.00;
if (floor(check_number) == ceil(check_number)) {
rest_num = 0;
} else if (check_number > 1) {
check_number = ceil(check_number);
rest_num = check_number ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int num;
float check_number, rest_num;
cin >> num;
check_number = num / 1000.00;
if (floor(check_number) == ceil(check_number)) {
rest_num = 0;
} else if (check_number > 1) {
check_number = ceil(check_number);
rest_num = check_number ... | [["-", 0, 1, 0, 11, 12, 16, 31, 16, 31, 22], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 17, 48]] | 1 | 89 |
#include <bits/stdc++.h>
#define ll long long
#define rep(A, B, C) for (A = B; A < C; ++A)
#define pii pair<int, int>
#define pll pair<ll, ll>
using namespace std;
/////////////////////////////////////////////////////
ll N;
ll i, j, k;
int main() {
scanf("%lld", &N);
printf("%lld", 1000 - N % 1000);
return ... | #include <bits/stdc++.h>
#define ll long long
#define rep(A, B, C) for (A = B; A < C; ++A)
#define pii pair<int, int>
#define pll pair<ll, ll>
using namespace std;
/////////////////////////////////////////////////////
ll N;
ll i, j, k;
int main() {
scanf("%lld", &N);
printf("%lld", (1000 - N % 1000) % 1000);
... | [["+", 0, 2, 3, 4, 0, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 23, 0, 16, 12, 16, 17, 109], ["+", 0, 16, 31, 23, 0, 16, 12, 16, 12, 13], ["+", 0, 2, 3, 4, 0, 16, 31, 23, 0, 25]] | 1 | 68 |
#include <iostream>
using namespace std;
int main() {
int cost;
cin >> cost;
int change;
if (!cost % 1000) {
change = 1000 - cost % 1000;
} else {
change = 0;
}
cout << change;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int cost;
cin >> cost;
int change;
if (cost % 1000) {
change = 1000 - cost % 1000;
} else {
change = 0;
}
cout << change;
return 0;
} | [["-", 0, 57, 15, 339, 51, 16, 31, 91, 17, 111]] | 1 | 53 |
#include <iostream>
using namespace std;
int main() {
int a;
cin >> a;
cout << 1000 - a % 1000;
} | #include <iostream>
using namespace std;
int main() {
int a;
cin >> a;
cout << (10000 - a) % 1000;
} | [["-", 8, 9, 0, 1, 0, 16, 12, 16, 31, 13], ["+", 0, 1, 0, 16, 12, 16, 31, 23, 0, 24], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 31, 13], ["+", 0, 1, 0, 16, 12, 16, 31, 23, 0, 25]] | 1 | 27 |
#include <iostream>
using namespace std;
main() {
int n;
cin >> n;
cout << (1000 - (n % 1000) % 1000);
} | #include <iostream>
using namespace std;
main() {
int n;
cin >> n;
cout << (1000 - (n % 1000)) % 1000;
} | [["+", 0, 1, 0, 16, 12, 16, 31, 23, 0, 25], ["-", 8, 9, 0, 1, 0, 16, 12, 23, 0, 25]] | 1 | 32 |
n = int(input())
a = n / 1000
if int(a) == a:
print('0')
else:
a = int(a) + 1
a = a * 1000
| n = int(input())
a = n / 1000
if int(a) == a:
print('0')
else:
a = int(a) + 1
a = a * 1000
print(a-n) | [["+", 75, 76, 8, 196, 0, 1, 0, 652, 63, 22], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 31, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 33], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 42 |
#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; n++)
int main(void) {
int N, ans;
cin >> N;
if (N % 1000)
ans = 1000 - (N % 1000);
ans = 0;
cout << ans << endl;
return 0;
} | #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; n++)
int main(void) {
int N, ans;
cin >> N;
if (N % 1000)
ans = 1000 - (N % 1000);
else
ans = 0;
cout << ans << endl;
return 0;
}
| [["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]] | 1 | 75 |
#include <bits/stdc++.h>
#define ll long long
using namespace std;
const int N = 2e5 + 5, mod = 1e9 + 7;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int n;
cin >> n;
cout << n % 1000;
return 0;
}
| #include <bits/stdc++.h>
#define ll long long
using namespace std;
const int N = 2e5 + 5, mod = 1e9 + 7;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int n;
cin >> n;
cout << (1000 - n % 1000) % 1000;
return 0;
}
| [["+", 0, 1, 0, 16, 12, 16, 31, 23, 0, 24], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 31, 13], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 17, 109], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 12, 13], ["+", 0, 1, 0, 16, 12, 16, 31, 23, 0, 25]] | 1 | 66 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
if (n == 10000) {
System.out.println(0);
} else {
System.out.println(1000 - n % 1000);
}
}
}
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
if (n % 1000 == 0) {
System.out.println(0);
} else {
System.out.println(1000 - n % 1000);
}
}
}
| [["+", 0, 57, 15, 15, 0, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 15, 0, 16, 31, 16, 12, 499], ["-", 8, 196, 0, 57, 15, 15, 0, 16, 12, 499], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 12, 499]] | 3 | 77 |
import math
n = int(input())
n=n/1000
c=math.ceil(n)
a=int((c-n)*1000)
print(a) | import math
n = int(input())
n=(n/1000)
c=math.ceil(n)
a=round((c-n)*1000)
print(a) | [["+", 0, 656, 0, 1, 0, 662, 12, 23, 0, 24], ["+", 0, 656, 0, 1, 0, 662, 12, 23, 0, 25], ["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]] | 5 | 39 |
money=int(input('N'))
i=0
while i<=money:
if i*1000>=money:
break
else:
i+=1
print(i*1000-money)
| money=int(input())
i=0
while i<=money:
if i*1000>=money:
break
else:
i+=1
print(i*1000-money)
| [["-", 3, 4, 0, 652, 3, 4, 0, 557, 0, 654], ["-", 3, 4, 0, 652, 3, 4, 0, 557, 0, 6], ["-", 3, 4, 0, 652, 3, 4, 0, 557, 0, 655]] | 5 | 40 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define IOS \
ios::sync_with_stdio(0); \
cin.... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define IOS \
ios::sync_with_stdio(0); \
cin.... | [["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 109], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]] | 1 | 89 |
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
System.out.println(n % 1000 == 0 ? 0 : 1000 - n & 1000);
}
} | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
System.out.println(n % 1000 == 0 ? 0 : 1000 - n % 1000);
}
}
| [["-", 0, 492, 3, 4, 0, 510, 75, 16, 17, 67], ["+", 3, 4, 0, 510, 75, 16, 12, 16, 17, 109]] | 3 | 64 |
#include <iostream>;
using namespace std;
int main() {
int x;
cin >> x;
cout << (1000 - (x % 1000));
}
| #include <iostream>;
using namespace std;
int main() {
int x;
cin >> x;
cout << (1000 - (x % 1000)) % 1000;
}
| [["+", 8, 9, 0, 1, 0, 16, 12, 16, 17, 109], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 12, 13]] | 1 | 32 |
#include <algorithm>
#include <bits/stdc++.h>
#include <cstdio>
#include <iostream>
#define ALL(x) (x).begin(), (x).end()
#define sz(a) int(a.size())
#define rep(i, x, n) for (int i = x; i < n; i++)
#define repd(i, x, n) for (int i = x; i <= n; i++)
#define pii pair<int, int>
#define pll pair<long long, long long>
#def... | #include <algorithm>
#include <bits/stdc++.h>
#include <cstdio>
#include <iostream>
#define ALL(x) (x).begin(), (x).end()
#define sz(a) int(a.size())
#define rep(i, x, n) for (int i = x; i < n; i++)
#define repd(i, x, n) for (int i = x; i <= n; i++)
#define pii pair<int, int>
#define pll pair<long long, long long>
#def... | [["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 132], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 828 |
//#pragma GCC optimize "trapv"
//-D_GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define int long long int
#define all(x) x.begin(), x.end()
#define allr(x) x.rbegin(), x.rend()
#define ii pair<int, int>
#define Max 100000 + 5
#define IO ... | //#pragma GCC optimize "trapv"
//-D_GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define int long long int
#define all(x) x.begin(), x.end()
#define allr(x) x.rbegin(), x.rend()
#define ii pair<int, int>
#define Max 100000 + 5
#define IO ... | [["-", 8, 9, 0, 1, 0, 16, 12, 23, 0, 24], ["-", 0, 1, 0, 16, 12, 23, 0, 16, 31, 22], ["-", 0, 1, 0, 16, 12, 23, 0, 16, 17, 33], ["-", 12, 23, 0, 16, 12, 16, 12, 23, 0, 25], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 17, 33], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 12, 22]] | 1 | 750 |
#include <stdio.h>
int main(void) {
int N;
scanf("%d", &N);
N = (1000 - N % 1000) - 1000;
printf("%d", N);
return 0;
}
| #include <stdio.h>
int main(void) {
int N;
scanf("%d", &N);
N = (1000 - N % 1000) % 1000;
printf("%d", N);
return 0;
} | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 109]] | 0 | 46 |
#include <iostream>
using namespace std;
int main() {
int i;
cin >> i;
i %= 1000;
if (i == 0) {
cout << 0 << endl;
} else {
cout << 100 - i << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int i;
cin >> i;
i %= 1000;
if (i == 0) {
cout << 0 << endl;
} else {
cout << 1000 - i << endl;
}
} | [["-", 0, 1, 0, 16, 31, 16, 12, 16, 31, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 31, 13]] | 1 | 48 |
#include <stdio.h>
int main(void) {
int n, a;
scanf("%d", &n);
a = n % 1000;
if (a > 500) {
a = 1000 - a;
}
printf("%d", a);
return 0;
}
| #include <stdio.h>
int main(void) {
int n, a;
scanf("%d", &n);
a = n % 1000;
if (a != 0) {
a = 1000 - a;
}
printf("%d", a);
return 0;
} | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 79], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 12, 13]] | 0 | 56 |
// Bismillahir Rahmanir Rahim
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0), cout.tie(0);
int n;
cin >> n;
if (n % 1000 == 0) {
cout << 0;
} else {
cout << 100;
}
return 0;
}
| // Bismillahir Rahmanir Rahim
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0), cout.tie(0);
int n;
cin >> n;
if (n % 1000 == 0) {
cout << 0;
} else {
cout << 1000 - n % 1000;
}
return 0;
}
| [["-", 75, 76, 0, 9, 0, 1, 0, 16, 12, 13], ["+", 0, 9, 0, 1, 0, 16, 12, 16, 31, 13], ["+", 0, 9, 0, 1, 0, 16, 12, 16, 17, 33], ["+", 0, 1, 0, 16, 12, 16, 12, 16, 31, 22], ["+", 0, 1, 0, 16, 12, 16, 12, 16, 17, 109], ["+", 0, 1, 0, 16, 12, 16, 12, 16, 12, 13]] | 1 | 65 |
#include <stdio.h>
int main(int argc, char const *argv[]) {
char buf[64];
int n;
fgets(buf, 64, stdin);
sscanf(buf, "%d", &n);
printf("%d\n", ((n + 900) / 1000) * 1000 - n);
return 0;
} | #include <stdio.h>
int main(int argc, char const *argv[]) {
char buf[64];
int n;
fgets(buf, 64, stdin);
sscanf(buf, "%d", &n);
printf("%d\n", ((n + 999) / 1000) * 1000 - n);
return 0;
} | [["-", 31, 23, 0, 16, 31, 23, 0, 16, 12, 13], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 12, 13]] | 0 | 72 |
const n = Number(require('fs').readFileSync('test', 'utf8')) % 1000;
console.log(n === 0 ? 0 : 1000 - n);
| const n = Number(require('fs').readFileSync('/dev/stdin', 'utf8')) % 1000;
console.log(n === 0 ? 0 : 1000 - n); | [["-", 3, 3, 0, 2, 3, 3, 0, 557, 0, 491], ["+", 3, 3, 0, 2, 3, 3, 0, 557, 0, 491]] | 2 | 41 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
template <class T> void printArray(vector<T> arr) {
for (T a : arr)
cout << a << " ";
cout << '\n';
}
void printVerdict(bool verdict) { cout << (verdict ? "YES" : "NO") << '\n'; }
int main() {
std::ios_base::sync_with_stdio(false);
cin.... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
template <class T> void printArray(vector<T> arr) {
for (T a : arr)
cout << a << " ";
cout << '\n';
}
void printVerdict(bool verdict) { cout << (verdict ? "YES" : "NO") << '\n'; }
int main() {
std::ios_base::sync_with_stdio(false);
cin.... | [["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 12, 23, 0, 25], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 109], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]] | 1 | 117 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
cout << (n + 999) / 1000 - n << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
cout << (n + 999) / 1000 * 1000 - n << endl;
return 0;
} | [["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 48], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 13]] | 1 | 36 |
i=gets.to_i;puts i%1000?(1000-i%1000):0 | i=gets.to_i;puts i%1000!=0?(1000-i%1000):0 | [["+", 0, 652, 3, 4, 0, 754, 15, 738, 17, 79], ["+", 0, 652, 3, 4, 0, 754, 15, 738, 12, 612]] | 4 | 20 |
n = int(input())
for i in range(11):
if n < 1000*i:
print(1000*i-n)
break
| n = int(input())
for i in range(11):
if n <= 1000*i:
print(1000*i-n)
break
| [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 32 |
#include <bits/stdc++.h>
#define int long long int
using namespace std;
int32_t main() {
int n;
cin >> n;
if (n % 1000 == 0)
cout << "0" << endl;
else
cout << abs(n - 1000) << endl;
return 0;
}
| #include <bits/stdc++.h>
#define int long long int
using namespace std;
int32_t main() {
int n;
cin >> n;
if (n % 1000 == 0)
cout << "0" << endl;
else
cout << 1000 - (n % 1000) << endl;
return 0;
}
| [["-", 0, 1, 0, 16, 31, 16, 12, 2, 63, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 31, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 33], ["-", 31, 16, 12, 2, 3, 4, 0, 16, 17, 33], ["+", 31, 16, 12, 16, 12, 23, 0, 16, 17, 109]] | 1 | 53 |
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
if (n % 1000 == 0) {
System.out.println("0");
} else {
int a = (n / 1000) + 1;
System.out.println(a - n);
}
}
} | import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
if (n % 1000 == 0) {
System.out.println("0");
} else {
int a = (n / 1000) + 1;
System.out.println((a * 1000) - n);
}
}
} | [["+", 0, 492, 3, 4, 0, 16, 31, 23, 0, 24], ["+", 3, 4, 0, 16, 31, 23, 0, 16, 17, 48], ["+", 3, 4, 0, 16, 31, 23, 0, 16, 12, 499], ["+", 0, 492, 3, 4, 0, 16, 31, 23, 0, 25]] | 3 | 90 |
#include <algorithm>
#include <cctype>
#include <chrono>
#include <cmath>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <math.h>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
... | #include <algorithm>
#include <cctype>
#include <chrono>
#include <cmath>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <math.h>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
... | [["-", 0, 57, 64, 1, 0, 16, 31, 16, 12, 22], ["+", 0, 57, 64, 1, 0, 16, 31, 16, 12, 13]] | 1 | 125 |
#include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
if (N % 1000 == 0) {
cout << 0 << endl;
} else {
cout << N - N % 1000 << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
if (N % 1000 == 0) {
cout << 0 << endl;
} else {
cout << 1000 - N % 1000 << endl;
}
} | [["-", 0, 1, 0, 16, 31, 16, 12, 16, 31, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 31, 13]] | 1 | 48 |
from sys import stdin, stdout
import math,sys
from itertools import permutations, combinations
from collections import defaultdict,deque,OrderedDict
from os import path
import bisect as bi
import heapq
def yes():print('YES')
def no():print('NO')
if (path.exists('input.txt')):
#------------------Sublime-----------... | from sys import stdin, stdout
import math,sys
from itertools import permutations, combinations
from collections import defaultdict,deque,OrderedDict
from os import path
import bisect as bi
import heapq
def yes():print('YES')
def no():print('NO')
if (path.exists('input.txt')):
#------------------Sublime-----------... | [["+", 0, 1, 0, 662, 12, 657, 31, 23, 0, 24], ["+", 0, 657, 31, 652, 3, 4, 0, 657, 12, 612], ["+", 31, 23, 0, 657, 31, 652, 3, 4, 0, 25], ["+", 0, 662, 12, 657, 31, 23, 0, 657, 17, 48]] | 5 | 275 |
amount = int(input())
if(amount % 1000 == 0):
print(0)
else:
change = (amount / 1000 + 1) * 1000 - amount
print(change) | amount = int(input())
if(amount % 1000 == 0):
print(0)
else:
change = (amount // 1000 + 1) * 1000 - amount
print(change) | [["-", 31, 657, 31, 23, 0, 657, 31, 657, 17, 85], ["+", 31, 657, 31, 23, 0, 657, 31, 657, 17, 676]] | 5 | 40 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
cout << ((n / 1000) + (n % 100 != 0)) * 1000 - n << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
cout << ((n / 1000) + (n % 1000 != 0)) * 1000 - n << endl;
return 0;
}
| [["-", 0, 16, 12, 23, 0, 16, 31, 16, 12, 13], ["+", 0, 16, 12, 23, 0, 16, 31, 16, 12, 13]] | 1 | 46 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
ll n;
cin >> n;
cout << (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);
ll n;
cin >> n;
cout << (1000 - (n % 1000)) % 1000 << endl;
return 0;
} | [["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 109], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]] | 1 | 55 |
#define CPP17
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <complex>
#include <cstddef>
#include <deque>
#include <functional>
#include <initializer_list>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits>
#include <list>
#include <map>
#include <numeric>... | #define CPP17
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <complex>
#include <cstddef>
#include <deque>
#include <functional>
#include <initializer_list>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits>
#include <list>
#include <map>
#include <numeric>... | [["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 31, 13], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 17, 109], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 12, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 25]] | 1 | 730 |
/****************************************************
* Template for coding contests *
* Author : Sanjeev Sharma *
* Email : thedevelopersanjeev@gmail.com *
*****************************************************/
#pragma GCC optimize("O3")
#pragma GCC optimi... | /****************************************************
* Template for coding contests *
* Author : Sanjeev Sharma *
* Email : thedevelopersanjeev@gmail.com *
*****************************************************/
#pragma GCC optimize("O3")
#pragma GCC optimi... | [["+", 0, 1, 0, 16, 12, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 12, 23, 0, 25], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 17, 109], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 12, 13]] | 1 | 133 |
import sys
n = int((input()))
if n%1000 == 0:
print(0)
else:
for i in range(10):
if n < 1000:
print(n)
sys.exit()
else:
n -= 1000 | import sys
n = int((input()))
if n%1000 == 0:
print(0)
else:
for i in range(10):
if n < 1000:
print(1000-n)
sys.exit()
else:
n -= 1000
| [["+", 0, 1, 0, 652, 3, 4, 0, 657, 31, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 33]] | 5 | 52 |
import sys
n = int((input()))
if n%1000 == 0:
print(0)
else:
while n > 1000:
n -= 1000
print(n) | import sys
n = int((input()))
if n%1000 == 0:
print(0)
else:
while n > 1000:
n -= 1000
print(1000-n) | [["+", 0, 1, 0, 652, 3, 4, 0, 657, 31, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 33]] | 5 | 37 |
#include <bits/stdc++.h>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int n;
cin >> n;
int ans = 1000 - n % 1000;
if (ans == 1000)
ans = 1000;
cout << ans << endl;
} | #include <bits/stdc++.h>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int n;
cin >> n;
int ans = 1000 - n % 1000;
if (ans == 1000)
ans = 0;
cout << ans << endl;
} | [["-", 8, 9, 0, 57, 64, 1, 0, 11, 12, 13], ["+", 8, 9, 0, 57, 64, 1, 0, 11, 12, 13]] | 1 | 72 |
#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;
} | [["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 109], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]] | 1 | 31 |
#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;
} | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 63 |
#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 <... | [["+", 0, 1, 0, 16, 12, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 12, 23, 0, 25], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 17, 109], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 12, 13]] | 1 | 166 |
/*
AUTHOR : Ankit Kumar
BRANCH : Information Technology
INSTITUTE : Birla Institute of Technology
*/
#include <bits/stdc++.h>
using namespace std;
#define fast \
ios_base::sync_with_stdio(0); ... | /*
AUTHOR : Ankit Kumar
BRANCH : Information Technology
INSTITUTE : Birla Institute of Technology
*/
#include <bits/stdc++.h>
using namespace std;
#define fast \
ios_base::sync_with_stdio(0); ... | [["+", 0, 1, 0, 16, 31, 16, 12, 23, 0, 24], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 17, 109], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 12, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 23, 0, 25]] | 1 | 1,277 |
// 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); ... | [["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 141 |
#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;
}
| [["-", 0, 1, 0, 16, 31, 16, 12, 16, 31, 22], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 17, 33], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 31, 13], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["-", 12, 16, 12, 16, 31, 23, 0, 16, 17, 85], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 17, 109], ["-", 0, 16, 31, 16, 12, 16, 12, 16, 17, 48], ... | 1 | 58 |
#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... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 1, 0, 16, 12, 91, 17, 33]] | 1 | 673 |
#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;
}
| [["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 47 |
#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... | [["+", 0, 1, 0, 16, 12, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 17, 109], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 12, 13], ["+", 0, 1, 0, 16, 12, 16, 31, 23, 0, 25]] | 1 | 139 |
#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;
} | [["-", 31, 16, 12, 23, 0, 41, 75, 16, 31, 22], ["+", 31, 16, 12, 23, 0, 41, 75, 16, 31, 13]] | 1 | 42 |
#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;
... | [["-", 0, 14, 49, 53, 54, 55, 0, 56, 39, 78], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 25, 0, 35]] | 1 | 75 |
#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... | [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 220 |
#include <bits/stdc++.h>
#define IOS \
ios::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0)
#define ll long long int
//#define lli... | #include <bits/stdc++.h>
#define IOS \
ios::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0)
#define ll long long int
//#define lli... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 351 |
#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;
} | [["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 25], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 33], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22]] | 1 | 53 |
#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;
}
| [["+", 0, 1, 0, 16, 12, 16, 31, 23, 0, 24], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 31, 13], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 1, 0, 16, 12, 16, 31, 23, 0, 25]] | 1 | 25 |
n = int(input())
if n % 1000 == 0 :
print(n / 1000)
else :
tmp = n // 1000
print(1000 * (tmp + 1) - n) | n = int(input())
if n % 1000 == 0 :
print(0)
else :
tmp = n // 1000
print(1000 * (tmp + 1) - n) | [["-", 0, 1, 0, 652, 3, 4, 0, 657, 31, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 85], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 612]] | 5 | 40 |
n = int(input())
if n%1000 == 0:
print(0)
else:
while n > 1000:
n = n - 1000
print(n) | n = int(input())
if n%1000 == 0:
print(0)
else:
while n > 1000:
n = n - 1000
print(1000 - n) | [["+", 0, 1, 0, 652, 3, 4, 0, 657, 31, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 33]] | 5 | 35 |
#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;
}
}
| [["-", 31, 16, 12, 16, 31, 23, 0, 16, 31, 13], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 31, 22]] | 1 | 60 |
#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;
} | [["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["-", 0, 16, 31, 16, 12, 16, 12, 23, 0, 24], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 109], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]] | 1 | 31 |
amount = int(input())
x = 1000
while True:
if amount == 0:
x = 0
break
if x < amount:
x += 1000
else:
break
print(x)
print(x - amount)
| amount = int(input())
x = 1000
while True:
if amount == 0:
x = 0
break
if x < amount:
x += 1000
else:
break
print(x - amount)
| [["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 31, 22]] | 5 | 44 |
//#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... | [["-", 0, 11, 12, 16, 31, 23, 0, 16, 12, 13], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 13]] | 1 | 333 |
#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;
} | [["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 109], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]] | 1 | 34 |
from sys import stdin
N = int(stdin.readline().rstrip())
print(1000-N%1000) | from sys import stdin
N = int(stdin.readline().rstrip())
print((1000-N%1000)%1000) | [["+", 0, 652, 3, 4, 0, 657, 31, 23, 0, 24], ["+", 0, 657, 31, 23, 0, 657, 12, 657, 17, 109], ["+", 0, 657, 31, 23, 0, 657, 12, 657, 12, 612], ["+", 0, 652, 3, 4, 0, 657, 31, 23, 0, 25]] | 5 | 26 |
#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 ... | [["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 17, 109], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 12, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 25]] | 1 | 138 |
#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;
}
| [["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 31, 13], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 25]] | 1 | 27 |
#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;
} | [["-", 0, 16, 31, 16, 12, 2, 63, 23, 0, 22], ["-", 0, 16, 31, 16, 12, 2, 63, 23, 0, 25], ["-", 0, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 109], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]] | 1 | 69 |
#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";
} | [["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 17, 109], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 12, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 25]] | 1 | 49 |
#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... | [["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 17, 109], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 12, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 23, 0, 25]] | 1 | 75 |
n = int(input())
n = n%1000
n = 1000 - n
print(n) | n = int(input())
n = n%1000
n = (1000 - n )%1000
print(n) | [["+", 0, 1, 0, 662, 12, 657, 31, 23, 0, 24], ["+", 0, 1, 0, 662, 12, 657, 31, 23, 0, 25], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 109], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 22 |
#include <stdio.h>
int main() {
int n;
scanf("%d", &n);
printf("%d\n", 1000 - (n % 1000));
} | #include <stdio.h>
int main() {
int n;
scanf("%d", &n);
printf("%d\n", (1000 - (n % 1000)) % 1000);
}
| [["+", 0, 2, 3, 4, 0, 16, 31, 23, 0, 24], ["+", 0, 16, 31, 23, 0, 16, 12, 23, 0, 25], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 109], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 0 | 37 |
n = int(input())%1000
print(1000 - n if n < 1000 else 0) | n = int(input())%1000
print(1000 - n if n else 0) | [["-", 0, 652, 3, 4, 0, 41, 0, 666, 667, 18], ["-", 0, 652, 3, 4, 0, 41, 0, 666, 0, 612]] | 5 | 22 |
#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... | [["-", 31, 16, 12, 16, 31, 23, 0, 16, 31, 22], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 31, 13]] | 1 | 264 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner sc = new Scanner(System.in)) {
int n = sc.nextInt();
int ans = 1000 - (n % 1000);
System.out.println(ans);
}
}
} | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner sc = new Scanner(System.in)) {
int n = sc.nextInt();
int ans = (1000 - (n % 1000)) % 1000;
System.out.println(ans);
}
}
} | [["+", 0, 503, 49, 200, 51, 16, 31, 23, 0, 24], ["+", 51, 16, 31, 23, 0, 16, 12, 23, 0, 25], ["+", 8, 196, 0, 503, 49, 200, 51, 16, 17, 109], ["+", 8, 196, 0, 503, 49, 200, 51, 16, 12, 499]] | 3 | 68 |
#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... | [["+", 8, 9, 0, 1, 0, 16, 12, 16, 17, 109], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 12, 13]] | 1 | 136 |
#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;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 46 |
#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;
}
} | [["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]] | 1 | 54 |
#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;
}
| [["-", 0, 41, 64, 16, 31, 16, 31, 16, 31, 22], ["-", 0, 41, 64, 16, 31, 16, 31, 16, 17, 85], ["-", 0, 41, 64, 16, 31, 16, 31, 16, 12, 13], ["-", 12, 23, 0, 41, 64, 16, 31, 16, 17, 48]] | 1 | 44 |
#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... | [["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 109], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]] | 1 | 477 |
#include <bits/stdc++.h>
//#pragma GCC optimize ("Ofast")
using namespace std;
#define ms(x, a) memset(x, a, sizeof x)
typedef long long ll;
typedef pair<int, int> pii;
const int mod = 1e9 + 7, seed = 131, MAXN = 0;
int main() {
cin.tie(0)->sync_with_stdio(0);
int n;
cin >> n;
cout << (1000 - (n % 1000)) % mo... | #include <bits/stdc++.h>
//#pragma GCC optimize ("Ofast")
using namespace std;
#define ms(x, a) memset(x, a, sizeof x)
typedef long long ll;
typedef pair<int, int> pii;
const int mod = 1e9 + 7, seed = 131, MAXN = 0;
int main() {
cin.tie(0)->sync_with_stdio(0);
int n;
cin >> n;
cout << (1000 - (n % 1000)) % 10... | [["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]] | 1 | 88 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.