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
N = int(input()) amari = N % 1000 if N == 0: print('0') else: print(1000 - amari)
N = int(input()) amari = N % 1000 if amari == 0: print(0) else: print(1000 - amari)
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655]]
5
32
#include <bits/stdc++.h> using namespace std; #define int long long #define INT int #define MOD 1000000007 #define rep(i, n) for (int i = 0; i < (n); i++) #define rep1(i, n) for (int i = 1; i < (n); i++) #define rrep(i, n) for (int i = (n)-1; i >= 0; i--) #define all(i) (i).begin(), (i).end() #define rall(i) (i).begi...
#include <bits/stdc++.h> using namespace std; #define int long long #define INT int #define MOD 1000000007 #define rep(i, n) for (int i = 0; i < (n); i++) #define rep1(i, n) for (int i = 1; i < (n); i++) #define rrep(i, n) for (int i = (n)-1; i >= 0; i--) #define all(i) (i).begin(), (i).end() #define rall(i) (i).begi...
[["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 24], ["+", 51, 16, 31, 23, 0, 16, 12, 16, 17, 109], ["+", 51, 16, 31, 23, 0, 16, 12, 16, 12, 13], ["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 25]]
1
137
#include <algorithm> #include <iostream> #include <map> #include <string> #include <vector> using namespace std; typedef long long int ll; int main() { int n; cin >> n; int m = 0; while (m >= n) { m += 1000; } cout << n - m << endl; return 0; }
#include <algorithm> #include <iostream> #include <map> #include <string> #include <vector> using namespace std; typedef long long int ll; int main() { int n; cin >> n; int m = 0; while (m < n) { m += 1000; } cout << m - n << endl; return 0; }
[["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 31, 22], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 17, 33], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 33], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22]]
1
61
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound #include <bitset> // bitset #include <cctype> // isupper, islower, isdigit, toupper, tolower #include <climits> #include <cstdint> // int64_t, int*_t #include <cstdio> // printf #include <deque> // deque #include <functional> #incl...
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound #include <bitset> // bitset #include <cctype> // isupper, islower, isdigit, toupper, tolower #include <climits> #include <cstdint> // int64_t, int*_t #include <cstdio> // printf #include <deque> // deque #include <functional> #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
107
N=int(input()) if N%1000==0: print(0) else: print(1000*(N//1000+1))
N=int(input()) if N%1000==0: print(0) else: print(1000*(N//1000+1)-N)
[["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 33], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22]]
5
33
#include <bits/stdc++.h> using namespace std; #define ll long long int int main() { ll a, b, c, d, e, i, j, k, l, n, m, x, y, t, p; cin >> n; n = n % 1000; n = (1000 - n); cout << n << endl; }
#include <bits/stdc++.h> using namespace std; #define ll long long int int main() { ll a, b, c, d, e, i, j, k, l, n, m, x, y, t, p; cin >> n; n = n % 1000; n = (1000 - n) % 1000; cout << n << endl; }
[["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
70
N = int(input()) ans = 0 while N >= 1000: N = N - 1000 if N == 0: print(0) else: print(ans)
N = int(input()) ans = 0 while N >= 1000: N = N - 1000 if N == 0: print(0) else: ans = 1000 - N print(ans)
[["+", 75, 76, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 75, 76, 8, 196, 0, 1, 0, 662, 0, 32], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 31, 612], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 33], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 12, 22]]
5
36
N = int(input()) res = N%1000 if N == 0: print(res) else: print(1000-res)
N = int(input()) res = N%1000 if res == 0: print(res) else: print(1000-res)
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22]]
5
30
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stdio.h> #include <vector> #define ll long long using namespace std; int main() { int n; cin >> n; if (n % 1000 == 0) { cout << 0 << endl;...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stdio.h> #include <vector> #define ll long long using namespace std; int main() { int n; cin >> n; if (n % 1000 == 0) { cout << 0 << endl;...
[["-", 0, 1, 0, 16, 31, 16, 12, 2, 63, 22], ["-", 0, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["-", 0, 16, 31, 16, 12, 2, 3, 4, 0, 21], ["-", 0, 16, 31, 16, 12, 2, 3, 4, 0, 22], ["-", 0, 16, 31, 16, 12, 2, 3, 4, 0, 25]]
1
89
#include <bits/stdc++.h> #include <functional> #include <iostream> #include <math.h> #include <queue> #include <stdio.h> #include <string.h> #include <vector> using namespace std; #define rep(i, a, n) for (int i = a; i <= n; i++) #define rep1(i, a, n) for (int i = a; i < n; i++) #define per(i, a, n) for (int i = a; i >...
#include <bits/stdc++.h> #include <functional> #include <iostream> #include <math.h> #include <queue> #include <stdio.h> #include <string.h> #include <vector> using namespace std; #define rep(i, a, n) for (int i = a; i <= n; i++) #define rep1(i, a, n) for (int i = a; i < n; i++) #define per(i, a, n) for (int i = a; i >...
[["+", 31, 23, 0, 16, 31, 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
498
#include <bits/stdc++.h> #define endl "\n" using namespace std; typedef long long ll; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n; cin >> n; cout << n % 1000; }
#include <bits/stdc++.h> #define endl "\n" using namespace std; typedef long long ll; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n; cin >> n; cout << (1000 - n % 1000) % 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], ["+", 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
54
n = int(input()) ans = 1000 - n % 1000 print(ans)
n = int(input()) ans = 1000 - n % 1000 ans %= 1000 print(ans)
[["+", 36, 36, 0, 656, 0, 1, 0, 677, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 677, 17, 132], ["+", 36, 36, 0, 656, 0, 1, 0, 677, 12, 612]]
5
19
#include <bits/stdc++.h> using namespace std; #define fio \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL); #define ll l...
#include <bits/stdc++.h> using namespace std; #define fio \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL); #define ll l...
[["+", 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
148
syouhin = gets.chomp.to_i if syouhin%1000 puts 0 exit else puts 1000-(syouhin%1000) end
syouhin = gets.chomp.to_i if syouhin%1000 == 0 puts 0 exit else puts 1000-(syouhin%1000) end
[["+", 36, 36, 0, 493, 0, 121, 15, 738, 17, 60], ["+", 36, 36, 0, 493, 0, 121, 15, 738, 12, 612]]
4
24
#include "bits/stdc++.h" #define rep(i, n) for (ll i = 0; i < n; ++i) #define ALL(x) x.begin(), x.end() using namespace std; typedef long long ll; template <typename T> T gcd(T a, T b) { if (a % b == 0) { return (b); } else { return (gcd(b, a % b)); } } template <typename T> T lcm(T a, T b) { return a ...
#include "bits/stdc++.h" #define rep(i, n) for (ll i = 0; i < n; ++i) #define ALL(x) x.begin(), x.end() using namespace std; typedef long long ll; template <typename T> T gcd(T a, T b) { if (a % b == 0) { return (b); } else { return (gcd(b, a % b)); } } template <typename T> T lcm(T a, T b) { return a ...
[["+", 8, 9, 0, 1, 0, 16, 12, 23, 0, 24], ["+", 0, 16, 12, 23, 0, 41, 15, 23, 0, 24], ["+", 0, 16, 12, 23, 0, 41, 15, 23, 0, 25], ["+", 0, 16, 12, 23, 0, 41, 64, 23, 0, 24], ["+", 0, 41, 64, 23, 0, 16, 12, 23, 0, 25], ["+", 8, 9, 0, 1, 0, 16, 12, 23, 0, 25]]
1
132
a=int(input()) if(a%1000==0): print(1000-(a%1000)) else: print(0)
a=int(input()) if(a%1000!=0): print(1000-(a%1000)) else: print(0)
[["-", 0, 656, 0, 57, 15, 23, 0, 666, 667, 60], ["+", 0, 656, 0, 57, 15, 23, 0, 666, 667, 79]]
5
33
n = int(input()) m =n% 1000 if m==0: print(0) else: print(1000 % (m))
n = int(input()) m =n% 1000 if m==0: print(0) else: print(1000 - m)
[["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 109], ["-", 0, 652, 3, 4, 0, 657, 12, 23, 0, 24], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 33], ["-", 0, 652, 3, 4, 0, 657, 12, 23, 0, 25]]
5
32
#include <bits/stdc++.h> using namespace std; #define faster \ ios_base::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); #define sq(x) ...
#include <bits/stdc++.h> using namespace std; #define faster \ ios_base::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); #define sq(x) ...
[["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]]
1
81
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll t, n, i; cin >> n; t = n % 1000; if (t) cout << 100 - t << endl; else cout << 0 << endl; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll t, n, i; cin >> n; t = n % 1000; if (t) cout << 1000 - t << endl; else cout << 0 << endl; }
[["-", 64, 1, 0, 16, 31, 16, 12, 16, 31, 13], ["+", 64, 1, 0, 16, 31, 16, 12, 16, 31, 13]]
1
53
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; typedef long long ll; typedef pair<int, int> P; const long long INF = 1LL << 60; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return 1; } return 0; } template <class T> inline bool chmin(...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; typedef long long ll; typedef pair<int, int> P; const long long INF = 1LL << 60; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return 1; } return 0; } template <class T> inline bool chmin(...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
154
n = int(input()) a = 0 if n % 1000: print(0) else: a = 1000 - n % 1000 print(a)
n = int(input()) a = 0 if n % 1000 == 0: print(0) else: a = 1000 - n % 1000 print(a)
[["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612]]
5
33
#include <bits/stdc++.h> using namespace std; #define int long long #define rep(i, n) for (int i = 0; i < n; i++) #define rep1(i, n) for (int i = 1; i <= n; i++) #define rep2(i, n) for (int i = 0; i <= n; i++) #define repr(i, a, n) for (int i = a; i < n; i++) #define all(a) a.begin(), a.end() #define P pair<long long, ...
#include <bits/stdc++.h> using namespace std; #define int long long #define rep(i, n) for (int i = 0; i < n; i++) #define rep1(i, n) for (int i = 1; i <= n; i++) #define rep2(i, n) for (int i = 0; i <= n; i++) #define repr(i, a, n) for (int i = a; i < n; i++) #define all(a) a.begin(), a.end() #define P pair<long long, ...
[["-", 0, 9, 0, 1, 0, 16, 12, 16, 12, 22], ["+", 0, 9, 0, 1, 0, 16, 12, 16, 12, 22]]
1
221
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); #ifndef ONLINE_JUDGE // freopen("input.txt","r",stdin); #endif ll n; cin >> n; n = n % 1000; cout << 1000 - n << endl; return 0; }
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); #ifndef ONLINE_JUDGE // freopen("input.txt","r",stdin); #endif ll n; cin >> n; n = n % 1000; cout << (1000 - n) % 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
57
#include <bits/stdc++.h> using namespace std; void solve() { int n; cin >> n; cout << max(0, 1000 - n % 1000) << '\n'; } int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int t = 1; while (t--) solve(); }
#include <bits/stdc++.h> using namespace std; void solve() { int n; cin >> n; cout << (1000 - n % 1000) % 1000 << '\n'; } int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int t = 1; while (t--) solve(); }
[["-", 0, 1, 0, 16, 31, 16, 12, 2, 63, 22], ["-", 0, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["-", 0, 16, 31, 16, 12, 2, 3, 4, 0, 21], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 109], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
77
import sys n = int(input()) for i in range(100): if 1000*i >= n: print(1000*i - n)
import sys n = int(input()) for i in range(100): if 1000*i >= n: print(1000*i - n) sys.exit()
[["+", 64, 196, 0, 1, 0, 652, 63, 319, 500, 22], ["+", 64, 196, 0, 1, 0, 652, 63, 319, 0, 131], ["+", 64, 196, 0, 1, 0, 652, 63, 319, 319, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]]
5
33
#include <bits/stdc++.h> using namespace std; typedef long long ll; /* template<class T> inline bool chmax(T&a,T&b){if(a<b){a=b;return true;}return false;} template<class T> inline bool chmin(T&a,T&b){if(a>b){a=b;return true;}return false;} const ll INF = 1LL<<60; const ll M = 1000000007; ll mpow(ll a,ll b) {ll res...
#include <bits/stdc++.h> using namespace std; typedef long long ll; /* template<class T> inline bool chmax(T&a,T&b){if(a<b){a=b;return true;}return false;} template<class T> inline bool chmin(T&a,T&b){if(a>b){a=b;return true;}return false;} const ll INF = 1LL<<60; const ll M = 1000000007; ll mpow(ll a,ll b) {ll res...
[["+", 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
38
n = int(input()) ans = n % 1000 if ans == 1000: print(0) else: print(1000 - ans)
n = int(input()) ans = n % 1000 if ans == 0: print(0) else: print(1000 - ans)
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612]]
5
30
#include <bits/stdc++.h> using namespace std; #define int long long signed main() { int n; cin >> n; cout << 1000 - (n % 1000); }
#include <bits/stdc++.h> using namespace std; #define int long long signed main() { int n; cin >> n; cout << (1000 - (n % 1000)) % 1000; }
[["+", 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
32
#include <bits/stdc++.h> typedef long long lint; using namespace std; lint gcd(lint x, lint y) { if (x == 0) { return y; } else { return gcd(y % x, x); } } lint lcm(lint x, lint y) { return x / gcd(x, y) * y; } lint C(lint n, lint k) { if (n == k) { return 1; } else if (n < k) { return 0; ...
#include <bits/stdc++.h> typedef long long lint; using namespace std; lint gcd(lint x, lint y) { if (x == 0) { return y; } else { return gcd(y % x, x); } } lint lcm(lint x, lint y) { return x / gcd(x, y) * y; } lint C(lint n, lint k) { if (n == k) { return 1; } else if (n < k) { return 0; ...
[["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 2, 63, 22], ["+", 0, 2, 3, 4, 0, 2, 3, 4, 0, 24], ["+", 0, 2, 3, 4, 0, 2, 3, 4, 0, 25]]
1
231
#include <bits/stdc++.h> #define IOS \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); #define endl '\n' #define ll int64_t ...
#include <bits/stdc++.h> #define IOS \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); #define endl '\n' #define ll int64_t ...
[["+", 31, 16, 12, 23, 0, 16, 31, 16, 17, 48], ["+", 31, 16, 12, 23, 0, 16, 31, 16, 12, 13]]
1
60
#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 ll long long #define ld long double #define fo(i, v, e) for (v = i; v < e; v++) #define rfo(i, v, e) for (v = i; v > e; v--) #define pb(x) push_back(x) #define ...
#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 ll long long #define ld long double #define fo(i, v, e) for (v = i; v < e; v++) #define rfo(i, v, e) for (v = i; v > e; v--) #define pb(x) push_back(x) #define ...
[["+", 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
557
#include <stdio.h> #include <stdlib.h> #include <string.h> typedef long long ll; int main() { ll n; scanf("%lld", &n); printf("%lld", 1000 - n % 1000); }
#include <stdio.h> #include <stdlib.h> #include <string.h> typedef long long ll; int main() { ll n; 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
43
#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 << "\n"; return 0; }
#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 << (10000 - N) % 1000 << "\n"; return 0; }
[["-", 31, 16, 12, 16, 31, 23, 0, 16, 31, 13], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 31, 13]]
1
44
def abc173_a(): N = int(input()) #N = 3000%1000 if N%1000: print(0) else: print(1000-N%1000) abc173_a()
def abc173_a(): N = int(input()) #N = 3000%1000 if N%1000 == 0: print(0) else: print(1000-N%1000) abc173_a()
[["+", 0, 14, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 0, 14, 8, 196, 0, 57, 15, 666, 0, 612]]
5
36
#include <algorithm> #include <cmath> #include <iostream> #include <math.h> #include <string> #include <vector> using namespace std; int main() { int N = 0; cin >> N; if (N % 1000 == 0) { cout << 0; } return 0; cout << 1000 - (N % 1000) << endl; return 0; }
#include <algorithm> #include <cmath> #include <iostream> #include <math.h> #include <string> #include <vector> using namespace std; int main() { int N = 0; cin >> N; if (N % 1000 == 0) { cout << 0; return 0; } cout << 1000 - (N % 1000) << endl; return 0; }
[["-", 0, 14, 8, 9, 0, 57, 64, 9, 0, 46], ["+", 0, 14, 8, 9, 0, 57, 64, 9, 0, 46]]
1
63
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; cout << 1000 - n % 1000; }
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; cout << (1000 - n % 1000) % 1000; }
[["+", 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
27
package main import ( "fmt" ) func main() { var N int fmt.Scanf("%d", &N) fmt.Println(N%1000) }
package main import ( "fmt" ) func main() { var N int fmt.Scanf("%d", &N) fmt.Println((10000-N)%1000) }
[["+", 0, 2, 3, 4, 0, 16, 31, 23, 0, 24], ["+", 3, 4, 0, 16, 31, 23, 0, 16, 31, 433], ["+", 3, 4, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 2, 3, 4, 0, 16, 31, 23, 0, 25]]
7
42
#include <algorithm> #include <iostream> #include <string> #include <vector> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (n); ++i) int main() { int n; cin >> n; int a = n % 1000; if (a) cout << 0 << endl; else cout << 1000 - a << endl; return 0; }
#include <algorithm> #include <iostream> #include <string> #include <vector> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (n); ++i) int main() { int n; cin >> n; int a = n % 1000; if (!a) cout << 0 << endl; else cout << 1000 - a << endl; return 0; }
[["+", 8, 9, 0, 57, 15, 339, 51, 91, 17, 111]]
1
67
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Time : 2020/7/5 19:54 # @Version : 1.1 # @Author : Jade # @File : a.py # @Software: PyCharm # def main(): n = int(input()) print(1000 - n%1000) if __name__ == '__main__': main()
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Time : 2020/7/5 19:54 # @Version : 1.1 # @Author : Jade # @File : a.py # @Software: PyCharm # def main(): n = int(input()) print((1000 - n%1000)%1000) if __name__ == '__main__': main()
[["+", 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
39
#include <iostream> using namespace std; int main() { int a, b; cin >> a; if (a % 1000 == 0) cout << "0" << endl; else b = 1000 - a % 1000; cout << b << endl; }
#include <iostream> using namespace std; int main() { int a, b; cin >> a; if (a % 1000 == 0) cout << "0" << endl; else { b = 1000 - a % 1000; cout << b << endl; } }
[["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]]
1
52
n = int(input()) print(n - (-n // 1000) * 1000)
n = int(input()) print(- n - (-n // 1000) * 1000)
[["+", 0, 652, 3, 4, 0, 657, 31, 664, 17, 33]]
5
21
#include <stdio.h> int main(void) { int n, a, b; scanf("%d", &a); n = 1000 - (a % 1000); if (n = 1000) { printf("0"); return 0; } printf("%d", n); return 0; }
#include <stdio.h> int main(void) { int n, a, b; scanf("%d", &a); n = 1000 - (a % 1000); if (n == 1000) { printf("0"); return 0; } printf("%d", n); return 0; }
[["-", 8, 9, 0, 57, 15, 23, 0, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 60]]
0
66
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<ll> vi; typedef pair<ll, ll> pi; typedef vector<pi> vp; typedef set<ll> si; typedef map<string, ll> msi; #define REP(i, a, b) for (ll i = ll(a); i <= ll(b); i++) #define DEP(i, a, b) for (ll i = ll(a); i >= ll(b); i--) #define TR(c, it) ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<ll> vi; typedef pair<ll, ll> pi; typedef vector<pi> vp; typedef set<ll> si; typedef map<string, ll> msi; #define REP(i, a, b) for (ll i = ll(a); i <= ll(b); i++) #define DEP(i, a, b) for (ll i = ll(a); i >= ll(b); i--) #define TR(c, it) ...
[["+", 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
161
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; if (n % 1000 == 0) cout << (0) << endl; else { int x = n / 1000; n -= x * 1000; cout << n << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; if (n % 1000 == 0) cout << (0) << endl; else { int x = n / 1000; n -= x * 1000; cout << abs(n - 1000) << endl; } return 0; }
[["+", 0, 1, 0, 16, 31, 16, 12, 2, 63, 22], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 17, 33], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 16, 31, 16, 12, 2, 3, 4, 0, 25]]
1
60
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (n); i++) int main() { int n; cin >> n; n %= 1000; n = 1000 - n; cout << n << endl; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (n); i++) int main() { int n; cin >> n; n %= 1000; if (n > 0) n = 1000 - n; cout << n << endl; }
[["+", 0, 30, 0, 14, 8, 9, 0, 57, 0, 121], ["+", 0, 14, 8, 9, 0, 57, 15, 339, 0, 24], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 57, 15, 339, 0, 25]]
1
48
#include <bits/stdc++.h> #define int long long #define ios \ std::ios::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL); #define pb p...
#include <bits/stdc++.h> #define int long long #define ios \ std::ios::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL); #define pb p...
[["+", 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
224
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <sstream> using namespace std; int n; int main() { cin >> n; cout << (n / 1000 + 1) * 1000 - n % 1000; }
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <sstream> using namespace std; int n; int main() { cin >> n; cout << ((n / 1000 + 1) * 1000 - n) % 1000; }
[["+", 31, 23, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 1, 0, 16, 12, 16, 31, 23, 0, 25]]
1
47
#include <stdio.h> int main(void) { int N; scanf("%d", &N); printf("%d\n", N % 1000); return 0; }
#include <stdio.h> int main(void) { int N; scanf("%d", &N); printf("%d\n", (1000 - N % 1000) % 1000); return 0; }
[["+", 0, 2, 3, 4, 0, 16, 31, 23, 0, 24], ["+", 3, 4, 0, 16, 31, 23, 0, 16, 31, 13], ["+", 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, 13], ["+", 0, 2, 3, 4, 0, 16, 31, 23, 0, 25]]
0
37
#include <bits/stdc++.h> #define rep(i, n) for (ll i = 0; i < n; ++i) #define all(v) v.begin(), v.end() using namespace std; using ll = long long; typedef pair<int, int> P; const int INF = 1001001001; const long double PI = (acos(-1)); const int mod = 1e9 + 7; const int vx[6] = {0, 1, 0, -1, 1, -1}; const int vy[6] =...
#include <bits/stdc++.h> #define rep(i, n) for (ll i = 0; i < n; ++i) #define all(v) v.begin(), v.end() using namespace std; using ll = long long; typedef pair<int, int> P; const int INF = 1001001001; const long double PI = (acos(-1)); const int mod = 1e9 + 7; const int vx[6] = {0, 1, 0, -1, 1, -1}; const int vy[6] =...
[["-", 8, 9, 0, 57, 64, 1, 0, 11, 17, 110], ["+", 8, 9, 0, 57, 64, 1, 0, 11, 17, 32], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 17, 33], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 12, 22]]
1
153
def i(): return int(input()) def i2(): return map(int,input().split()) def s(): return str(input()) def l(): return list(input()) def intl(): return list(int(k) for k in input().split()) n = i() print(n%1000) if n%1000 == 0: print(0) else: print( 1000 - n%1000)
def i(): return int(input()) def i2(): return map(int,input().split()) def s(): return str(input()) def l(): return list(input()) def intl(): return list(int(k) for k in input().split()) n = i() if n%1000 == 0: print(0) else: print( 1000 - n%1000)
[["-", 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], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 109], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
109
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int N; cin >> N; int num = N % 1000; cout << 1000 - num << endl; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int N; cin >> N; int num = N % 1000; cout << (1000 - num) % 1000 << 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, 109], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
39
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = nextInt(scanner); int m = Math.abs((n % 1000) - 1000); if (m == 1000) { System.out.println(0); } else { System.out.println(1000); } } priv...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = nextInt(scanner); int m = Math.abs((n % 1000) - 1000); if (m == 1000) { System.out.println(0); } else { System.out.println(m); } } private...
[["-", 75, 196, 0, 1, 0, 492, 3, 4, 0, 499], ["+", 75, 196, 0, 1, 0, 492, 3, 4, 0, 22]]
3
176
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <complex> #include <iostream> #define FIXED_FLOAT(x) std::fixed << std::setprecision(7) << (x) #define fast \ ios::sync_with_stdio(0); ...
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <complex> #include <iostream> #define FIXED_FLOAT(x) std::fixed << std::setprecision(7) << (x) #define fast \ ios::sync_with_stdio(0); ...
[["-", 0, 16, 12, 23, 0, 41, 64, 16, 31, 13], ["+", 0, 16, 12, 23, 0, 41, 64, 16, 31, 13]]
1
402
#include <algorithm> // sort, lower_bound, heap, min, next_permutation #include <bitset> // bitset #include <cmath> // sin, exp, log, pow, sqrt #include <cstdio> // fopen, printf, scanf, puts #include <ctime> // clock #include <functional> // greater, less #include <iomanip> // setfill, setbase #i...
#include <algorithm> // sort, lower_bound, heap, min, next_permutation #include <bitset> // bitset #include <cmath> // sin, exp, log, pow, sqrt #include <cstdio> // fopen, printf, scanf, puts #include <ctime> // clock #include <functional> // greater, less #include <iomanip> // setfill, setbase #i...
[["+", 31, 16, 12, 16, 31, 23, 0, 16, 31, 13], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["-", 31, 16, 12, 16, 31, 23, 0, 16, 17, 72], ["-", 31, 16, 12, 16, 31, 23, 0, 16, 12, 13]]
1
153
n = int(input()) for i in range(11): x = i * 1000 if x > n: print(x-n) break
n = int(input()) for i in range(11): x = i * 1000 if x >= n: print(x-n) break
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20]]
5
33
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println(1000 - sc.nextInt() % 1000); } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println((1000 - sc.nextInt() % 1000) % 1000); } }
[["+", 0, 492, 3, 4, 0, 16, 31, 23, 0, 24], ["+", 0, 16, 12, 16, 31, 492, 3, 4, 0, 25], ["+", 0, 16, 31, 23, 0, 16, 12, 16, 17, 109], ["+", 0, 16, 31, 23, 0, 16, 12, 16, 12, 499]]
3
52
const input = require("fs").readFileSync("/dev/stdin", "utf8") ;(input => { const lines = input.split('\n') const N = lines[0] - 0 console.log(1000 - N % 1000) })(input)
const input = require("fs").readFileSync("/dev/stdin", "utf8") ;(input => { const lines = input.split('\n') const N = lines[0] - 0 console.log(1000 - (N % 1000 || 1000)) })(input)
[["+", 0, 2, 3, 3, 0, 16, 12, 23, 0, 24], ["+", 0, 16, 12, 23, 0, 16, 31, 16, 12, 555], ["+", 3, 3, 0, 16, 12, 23, 0, 16, 17, 106], ["+", 0, 2, 3, 3, 0, 16, 12, 23, 0, 25]]
2
60
#include <bits/stdc++.h> #define ll long long #define endl '\n' #define pii pair<ll, ll> using namespace std; #define N 100007 #define pb push_back; vector<ll> g[N]; #define FAST \ ios_base::sync_with_stdio(false); ...
#include <bits/stdc++.h> #define ll long long #define endl '\n' #define pii pair<ll, ll> using namespace std; #define N 100007 #define pb push_back; vector<ll> g[N]; #define FAST \ ios_base::sync_with_stdio(false); ...
[["+", 8, 9, 0, 1, 0, 16, 12, 16, 17, 109], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 12, 13]]
1
57
#include <bits/stdc++.h> using namespace std; int main() { long long N; cin >> N; cout << 1000 - (N % 1000) << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long N; cin >> N; cout << (1000 - (N % 1000)) % 1000 << endl; return 0; }
[["+", 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
35
# import sys # input = sys.stdin.readline def mp(): return map(int, input().split()) def lmp(): return list(map(int, input().split())) n = int(input()) print(n%1000)
# import sys # input = sys.stdin.readline def mp(): return map(int, input().split()) def lmp(): return list(map(int, input().split())) n = int(input()) print((1000-n%1000)%1000)
[["+", 0, 652, 3, 4, 0, 657, 31, 23, 0, 24], ["+", 3, 4, 0, 657, 31, 23, 0, 657, 31, 612], ["+", 3, 4, 0, 657, 31, 23, 0, 657, 17, 33], ["+", 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
55
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { ll n; cin >> n; ll i; for (i = 0; i < n; i += 1000) { } cout << i % n; }
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { ll n; cin >> n; ll i; for (i = 0; i < n; i += 1000) { } cout << i - n; }
[["-", 8, 9, 0, 1, 0, 16, 12, 16, 17, 109], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 17, 33]]
1
50
#include <bits/stdc++.h> using namespace std; int main() { long long int test, n, i, j, k, x, y, t; cin >> n; x = n % 1000; if (x == 0) cout << x; else cout << n - x; }
#include <bits/stdc++.h> using namespace std; int main() { long long int test, n, i, j, k, x, y, t; cin >> n; x = n % 1000; if (x == 0) cout << x; else cout << 1000 - x; }
[["-", 75, 76, 0, 1, 0, 16, 12, 16, 31, 22], ["+", 75, 76, 0, 1, 0, 16, 12, 16, 31, 13]]
1
58
n = int(input()) ans = [] for i in range(1, 10): if 1000 * i - n >= 0: ans.append(1000*i - n) print(min(ans))
n = int(input()) ans = [] for i in range(11): if 1000 * i - n >= 0: ans.append(1000*i - n) print(min(ans))
[["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]]
5
48
#include <algorithm> #include <bits/stdc++.h> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #define DIV 998244353 #define TE 2e5 using namespace std; using ll = long long; using ldb = long double; int main() { int N; cin >> N; if (N % 100...
#include <algorithm> #include <bits/stdc++.h> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #define DIV 998244353 #define TE 2e5 using namespace std; using ll = long long; using ldb = long double; int main() { int N; cin >> N; if (N % 100...
[["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]]
1
77
import java.io.*; import java.math.*; import java.util.*; import java.util.function.Function; import java.util.stream.Collectors; public class Main { static public void main(String args[]) throws IOException { int tt = 1; StringBuilder sb = new StringBuilder(); for (int ttt = 1; ttt <= tt; ttt++) { ...
import java.io.*; import java.math.*; import java.util.*; import java.util.function.Function; import java.util.stream.Collectors; public class Main { static public void main(String args[]) throws IOException { int tt = 1; StringBuilder sb = new StringBuilder(); for (int ttt = 1; ttt <= tt; ttt++) { ...
[["+", 0, 492, 3, 4, 0, 16, 31, 16, 17, 109], ["+", 0, 492, 3, 4, 0, 16, 31, 16, 12, 499]]
3
1,070
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); System.out.println((1000 - n % 1000)); } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); System.out.println((1000 - n % 1000) % 1000); } }
[["+", 0, 1, 0, 492, 3, 4, 0, 16, 17, 109], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 12, 499]]
3
64
#include <stdio.h> int main() { int i, p = 0; scanf("%d", &i); while (p <= 10000) { if (p > i) break; p += 1000; } printf("%d", p - i); }
#include <stdio.h> int main() { int i, p = 0; scanf("%d", &i); while (p <= 10000) { if (p >= i) break; p += 1000; } printf("%d", p - i); }
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 20]]
0
56
N = int(input()) lst = [0, 1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000] if N in lst: thousands = int(N) else: thousands = int(N / 1000) + 1 print((1000 * thousands) - N)
N = int(input()) lst = [0, 1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000] if N in lst: thousands = int(N / 1000) else: thousands = int(N / 1000) + 1 print((1000 * thousands) - N)
[["+", 0, 662, 12, 652, 3, 4, 0, 657, 17, 85], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 12, 612]]
5
66
#include <bits/stdc++.h> using namespace std; #define ll long long #define endl '\n' #define sz(v) (int)v.size() #define all(v) v.begin(), v.end() void dbg_out() { cerr << "\b\b]\n"; } template <typename Head, typename... Tail> void dbg_out(Head H, Tail... T) { cerr << H << ", "; dbg_out(T...); } #define watch(...)...
#include <bits/stdc++.h> using namespace std; #define ll long long #define endl '\n' #define sz(v) (int)v.size() #define all(v) v.begin(), v.end() void dbg_out() { cerr << "\b\b]\n"; } template <typename Head, typename... Tail> void dbg_out(Head H, Tail... T) { cerr << H << ", "; dbg_out(T...); } #define watch(...)...
[["+", 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
117
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> #define endl '\n' #define all(s) s.begin(), s.end() #define lowbit(x) (x & -x) #define rep(i, a, n) for (int i = a; i <= n; i++) #define IOS ...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> #define endl '\n' #define all(s) s.begin(), s.end() #define lowbit(x) (x & -x) #define rep(i, a, n) for (int i = a; i <= n; i++) #define IOS ...
[["+", 0, 1, 0, 16, 12, 16, 31, 23, 0, 24], ["+", 0, 1, 0, 16, 12, 16, 31, 23, 0, 25], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 17, 109], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 12, 13]]
1
150
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int a = Integer.parseInt(scanner.next()); int b = 1000 - (a % 1000); if (b == 1000) { b = 0; } System.out.println(); } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int a = Integer.parseInt(scanner.next()); int b = 1000 - (a % 1000); if (b == 1000) { b = 0; } System.out.println(b); } }
[["+", 8, 196, 0, 1, 0, 492, 3, 4, 0, 22]]
3
80
#include <bits/stdc++.h> //#include<boost/multiprecision/cpp_int.hpp> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define ull unsigned long long int #define ll long long #define vi vector<int> #define mii map<int, int> #define all(x) x.begin(), x.end() #define fast_io ...
#include <bits/stdc++.h> //#include<boost/multiprecision/cpp_int.hpp> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define ull unsigned long long int #define ll long long #define vi vector<int> #define mii map<int, int> #define all(x) x.begin(), x.end() #define fast_io ...
[["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 109], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
120
#include <algorithm> #include <complex> #include <functional> #include <iostream> #include <map> #include <memory> #include <queue> #include <regex> #include <set> #include <sstream> #include <stack> #include <string> #include <thread> #include <tuple> #include <type_traits> #include <vector> #define rep(i, n) for (in...
#include <algorithm> #include <complex> #include <functional> #include <iostream> #include <map> #include <memory> #include <queue> #include <regex> #include <set> #include <sstream> #include <stack> #include <string> #include <thread> #include <tuple> #include <type_traits> #include <vector> #define rep(i, n) for (in...
[["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 12, 23, 0, 25], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
91
//***Because people who are crazy enough to think that they can change the world //are the ones who do it*** Think different #include <bits/stdc++.h> using namespace std; #define mp make_pair #define mt make_tuple #define fi first #define se second #define pb push_back #define ll long long #define all(x) (x).begin(),...
//***Because people who are crazy enough to think that they can change the world //are the ones who do it*** Think different #include <bits/stdc++.h> using namespace std; #define mp make_pair #define mt make_tuple #define fi first #define se second #define pb push_back #define ll long long #define all(x) (x).begin(),...
[["+", 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, 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
246
#include <bits/stdc++.h> using namespace std; struct Fast { Fast() { cin.tie(0); ios::sync_with_stdio(false); cout << fixed << setprecision(20); } } fast; void yes() { cout << "Yes" << endl; exit(0); } void no() { cout << "No" << endl; exit(0); } #define REP(i, n) for (long long i = 0; i < (n);...
#include <bits/stdc++.h> using namespace std; struct Fast { Fast() { cin.tie(0); ios::sync_with_stdio(false); cout << fixed << setprecision(20); } } fast; void yes() { cout << "Yes" << endl; exit(0); } void no() { cout << "No" << endl; exit(0); } #define REP(i, n) for (long long i = 0; i < (n);...
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
305
#include <bits/stdc++.h> #define ll long long #define fl(i, n) for (i = 0; i < n; i++) #define fld(i, a, b) for (i = a; i > b; i--) #define fli(i, a, n) for (i = a; i < n; i++) #define pb push_back #define mp make_pair #define F first #define S second #define mod 998244353 #define all(x) x.begin(), x.end() #define spee...
#include <bits/stdc++.h> #define ll long long #define fl(i, n) for (i = 0; i < n; i++) #define fld(i, a, b) for (i = a; i > b; i--) #define fli(i, a, n) for (i = a; i < n; i++) #define pb push_back #define mp make_pair #define F first #define S second #define mod 998244353 #define all(x) x.begin(), x.end() #define spee...
[["+", 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
209
#include <algorithm> #include <iostream> #include <queue> #include <string> #include <vector> using ll = long long; using namespace std; int main() { int n; cin >> n; cout << 1000 - n % 1000 << '\n'; return 0; }
#include <algorithm> #include <iostream> #include <queue> #include <string> #include <vector> using ll = long long; using namespace std; int main() { int n; cin >> n; cout << (1000 - n % 1000) % 1000 << '\n'; return 0; }
[["+", 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
48
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; while (n >= 0) { n -= 1000; } cout << abs(n) << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; while (n > 0) { n -= 1000; } cout << abs(n) << endl; return 0; }
[["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47]]
1
43
// #define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; #define uint unsigned int #define ull unsigned long long typedef string str; typedef long long ll; typedef double db; typedef pair<int, int> pii; typedef map<int, int> mii; typedef vector<int> vi; typedef vector<bool> vb; #define pb push_back #defi...
// #define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; #define uint unsigned int #define ull unsigned long long typedef string str; typedef long long ll; typedef double db; typedef pair<int, int> pii; typedef map<int, int> mii; typedef vector<int> vi; typedef vector<bool> vb; #define pb push_back #defi...
[["+", 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
125
#include <algorithm> #include <complex> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string.h> #include <string> #include <time.h> #include <vector> using namespace std; #define rep(i, a, n) fo...
#include <algorithm> #include <complex> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string.h> #include <string> #include <time.h> #include <vector> using namespace std; #define rep(i, a, n) fo...
[["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]]
1
685
n=int(input()) print(0 if n%1000==0 else n%1000)
n=int(input()) print(0 if n%1000==0 else 1000 - n%1000)
[["+", 0, 652, 3, 4, 0, 41, 0, 657, 31, 612], ["+", 0, 652, 3, 4, 0, 41, 0, 657, 17, 33]]
5
22
#include <bits/stdc++.h> #define ll long long #define IOS \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL); #define deb(x...
#include <bits/stdc++.h> #define ll long long #define IOS \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL); #define deb(x...
[["-", 31, 23, 0, 16, 31, 23, 0, 16, 17, 72], ["-", 31, 23, 0, 16, 31, 23, 0, 16, 12, 13], ["+", 31, 16, 12, 16, 31, 16, 31, 16, 12, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 72]]
1
118
N = int(input()) if N%1000 == 0: print(0) else: if N > 1000: N -= (N // 1000) * 1000 print(1000 - N) else: print(N)
N = int(input()) if N%1000 == 0: print(0) else: if N > 1000: N -= (N // 1000) * 1000 print(1000 - N) else: print(1000 - N)
[["+", 0, 1, 0, 652, 3, 4, 0, 657, 31, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 33]]
5
47
#include <bits/stdc++.h> using namespace std; typedef long long int ll; const int mod = 1e9 + 7; const ll inf = 1e18; const double pi = 3.1415926535897932384626; void solve() { // code int n; cin >> n; if (n % 1000 == 0) cout << 0; else cout << n / 1000 + 1; } int main() { ios::sync_with_stdio(fal...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; const int mod = 1e9 + 7; const ll inf = 1e18; const double pi = 3.1415926535897932384626; void solve() { // code int n; cin >> n; if (n % 1000 == 0) cout << 0; else cout << (n / 1000 + 1) * 1000 - n; } int main() { ios::sync_w...
[["+", 0, 16, 12, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 16, 12, 16, 31, 16, 31, 23, 0, 25], ["+", 0, 1, 0, 16, 12, 16, 31, 16, 17, 48], ["+", 0, 1, 0, 16, 12, 16, 31, 16, 12, 13], ["+", 75, 76, 0, 1, 0, 16, 12, 16, 17, 33], ["+", 75, 76, 0, 1, 0, 16, 12, 16, 12, 22]]
1
101
N=int(input()) if N/1000==0: print(0) else: ans =1000-(N%1000) print(int(ans))
N=int(input()) if N%1000==0: print(0) else: ans =1000-(N%1000) print(int(ans))
[["-", 0, 656, 0, 57, 15, 666, 0, 657, 17, 85], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 17, 109]]
5
37
#include <bits/stdc++.h> using namespace std; int n; int main() { scanf("%d", &n); printf("%d\n", n % 1000); return 0; }
#include <bits/stdc++.h> using namespace std; int n; int main() { scanf("%d", &n); printf("%d\n", (1000 - n % 1000) % 1000); return 0; }
[["+", 0, 2, 3, 4, 0, 16, 31, 23, 0, 24], ["+", 3, 4, 0, 16, 31, 23, 0, 16, 31, 13], ["+", 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, 13], ["+", 0, 2, 3, 4, 0, 16, 31, 23, 0, 25]]
1
40
#include "bits/stdc++.h" using namespace std; #ifdef _DEBUG #define dlog(str) cout << "====" << str << endl; #else #define dlog(str) #endif #define INF 999999999 #define MOD 1000000007 #define REP(i, n) for (int i = 0, i##_l = (n); i < i##_l; i++) #define FOR(i, s, e) for (int i = s, i##_l = (e); i < i##_l; i++) #defin...
#include "bits/stdc++.h" using namespace std; #ifdef _DEBUG #define dlog(str) cout << "====" << str << endl; #else #define dlog(str) #endif #define INF 999999999 #define MOD 1000000007 #define REP(i, n) for (int i = 0, i##_l = (n); i < i##_l; i++) #define FOR(i, s, e) for (int i = s, i##_l = (e); i < i##_l; i++) #defin...
[["+", 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
140
#include <algorithm> #include <cmath> #include <complex> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <vector> #define deg(x) cout << #x << "=" << x << endl; #define fd(x) for (int i = 0; i < ...
#include <algorithm> #include <cmath> #include <complex> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <vector> #define deg(x) cout << #x << "=" << x << endl; #define fd(x) for (int i = 0; i < ...
[["+", 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
260
#include <algorithm> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <limits> #include <list> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <t...
#include <algorithm> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <limits> #include <list> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <t...
[["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47]]
1
2,824
#include <algorithm> #include <assert.h> #include <bitset> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <iostream> #include <limits.h> #include <map> #include <queue> #include <set> #include <sstream> #include <string> #include <unordered_map> #include <unordered...
#include <algorithm> #include <assert.h> #include <bitset> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <iostream> #include <limits.h> #include <map> #include <queue> #include <set> #include <sstream> #include <string> #include <unordered_map> #include <unordered...
[["+", 0, 2, 3, 4, 0, 16, 31, 23, 0, 24], ["+", 3, 4, 0, 16, 31, 23, 0, 16, 31, 13], ["+", 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, 13], ["+", 0, 2, 3, 4, 0, 16, 31, 23, 0, 25]]
1
821
#include <bits/stdc++.h> using namespace std; #define Fast \ ios::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL); #define int ...
#include <bits/stdc++.h> using namespace std; #define Fast \ ios::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL); #define int ...
[["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 24], ["+", 51, 16, 31, 23, 0, 16, 12, 16, 17, 109], ["+", 51, 16, 31, 23, 0, 16, 12, 16, 12, 13], ["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 25]]
1
215
#include <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<int, int>; using vl = vector<ll>; using vvl = vector<vl>; #define mp make_pair #define pb push_back #define _overload3(_1, _2, _3, name, ...) name #define _rep(i, n) repi(i, 0, n) #define repi(i, a, b) for (int i = int(a); i < int(b); i+...
#include <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<int, int>; using vl = vector<ll>; using vvl = vector<vl>; #define mp make_pair #define pb push_back #define _overload3(_1, _2, _3, name, ...) name #define _rep(i, n) repi(i, 0, n) #define repi(i, a, b) for (int i = int(a); i < int(b); i+...
[["+", 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
530
#include <bits/stdc++.h> using namespace std; #define rep(j, n) for (int j = 0; j < (n); j++) using ll = long long; using P = pair<int, int>; int main(int, char **) { int n; cin >> n; cout << 1000 - n % 1000 << endl; return 0; }
#include <bits/stdc++.h> using namespace std; #define rep(j, n) for (int j = 0; j < (n); j++) using ll = long long; using P = pair<int, int>; int main(int, char **) { int n; cin >> n; cout << (1000 - n % 1000) % 1000 << endl; return 0; }
[["+", 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
61
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; int money = 0; while (money >= N) { money += 1000; } cout << money - N << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; int money = 0; while (money < N) { money += 1000; } cout << money - N << endl; }
[["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]]
1
44
#include <bits/stdc++.h> using namespace std; //#define TRACE #ifdef TRACE #define trace(...) __f(#__VA_ARGS__, __VA_ARGS__) template <typename Arg1> void __f(const char *name, Arg1 &&arg1) { cerr << name << " : " << arg1 << std::endl; } template <typename Arg1, typename... Args> void __f(const char *names, Arg1 &&a...
#include <bits/stdc++.h> using namespace std; //#define TRACE #ifdef TRACE #define trace(...) __f(#__VA_ARGS__, __VA_ARGS__) template <typename Arg1> void __f(const char *name, Arg1 &&arg1) { cerr << name << " : " << arg1 << std::endl; } template <typename Arg1, typename... Args> void __f(const char *names, Arg1 &&a...
[["-", 0, 1, 0, 16, 31, 16, 12, 2, 63, 22], ["-", 0, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["-", 0, 16, 31, 16, 12, 2, 3, 4, 0, 22], ["-", 0, 16, 31, 16, 12, 2, 3, 4, 0, 21], ["-", 0, 16, 31, 16, 12, 2, 3, 4, 0, 25]]
1
186
#include <bits/stdc++.h> #include <iostream> #define io \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL); #define INF 10...
#include <bits/stdc++.h> #include <iostream> #define io \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL); #define INF 10...
[["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 48], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]]
1
733
n=int(input()) if n%1000==0: print(0) print(1000-n%1000)
n=int(input()) if n%1000==0: exit(print(0)) print(1000-n%1000)
[["+", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
27
# ABC173a def main(): import sys input = sys.stdin.readline sys.setrecursionlimit(10**6) # 再帰関数を使わない限りPypyで出すこと def dump(*args): sys.stderr.write(str(args)) n = int(input()) import math print(math.ceil(n/1000)) if __name__ == '__main__': main()
# ABC173a def main(): import sys input = sys.stdin.readline sys.setrecursionlimit(10**6) # 再帰関数を使わない限りPypyで出すこと def dump(*args): sys.stderr.write(str(args)) n = int(input()) import math print(math.ceil(n/1000)*1000-n) if __name__ == '__main__': main()
[["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 48], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 12, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 33], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22]]
5
73
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { int N; cin >> N; int k = 1000 - N % 1000; if (k == 1000) k == 0; cout << k << endl; }
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { int N; cin >> N; int k = 1000 - N % 1000; if (k == 1000) k = 0; cout << k << endl; }
[["-", 8, 9, 0, 57, 64, 1, 0, 16, 17, 60], ["+", 8, 9, 0, 57, 64, 1, 0, 11, 17, 32]]
1
50
N = int(input()) while N >= 0: N = N - 1000 print(-N)
N = int(input()) while N > 0: N = N - 1000 print(-N)
[["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 47]]
5
23