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
S = list(input()) print(S) if (S[2] == S[3]) & (S[4] == S[5]): print("Yes") else: print("No")
S = list(input()) if (S[2] == S[3]) & (S[4] == S[5]): print("Yes") else: print("No")
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
51
S=list(input()) print('Yes') if(S[2]==S[3] or S[4]==S[5]) else print('No')
S=list(input()) print('Yes') if(S[2]==S[3] and S[4]==S[5]) else print('No')
[["-", 0, 1, 0, 41, 0, 23, 0, 679, 17, 354], ["+", 0, 1, 0, 41, 0, 23, 0, 679, 17, 355]]
5
43
#include <bits/stdc++.h> #define All(a) (a).begin(), (a).end() using namespace std; using ll = long long; using ull = unsigned long long; using ld = long double; //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); stri...
#include <bits/stdc++.h> #define All(a) (a).begin(), (a).end() using namespace std; using ll = long long; using ull = unsigned long long; using ld = long double; //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); stri...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
106
#include <algorithm> #include <cmath> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (int)(n); i++) typedef long long llong; typedef unsigned long long ullong; using namespace std; int main(...
#include <algorithm> #include <cmath> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (int)(n); i++) typedef long long llong; typedef unsigned long long ullong; using namespace std; int main(...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60]]
1
91
S = input() if len(S) < 6: print("No") else: if S[2] == S[3] and S[4] == S[5]: print("No") else: print("No")
S = input() if len(S) < 6: print("No") else: if S[2] == S[3] and S[4] == S[5]: print("Yes") else: print("No")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
56
a = input() if (a[2] == a[3]) & (a[4] == a[5]): print(Yes) else: print(No)
a = input() if (a[2] == a[3]) & (a[4] == a[5]): print("Yes") else: print("No")
[["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655]]
5
40
#include <bits/stdc++.h> using namespace std; #define ll long long int int main() { ll i, j, k, m, n, t; string s; cin >> s; if (s[2] == s[3] and s[4] == s[5]) cout << "Yed"; else cout << "No"; }
#include <bits/stdc++.h> using namespace std; #define ll long long int int main() { ll i, j, k, m, n, t; string s; cin >> s; if (s[2] == s[3] and s[4] == s[5]) cout << "Yes"; else cout << "No"; }
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6]]
1
70
#include <bits/stdc++.h> using namespace std; #pragma GCC optimize("Ofast") #pragma GCC optimize("unroll-loops") #pragma GCC optimize("-ffloat-store") // to restrict undesirable precision #pragma GCC optimize( \ "-fno-defer-pop") // to pop argument of functio...
#include <bits/stdc++.h> using namespace std; #pragma GCC optimize("Ofast") #pragma GCC optimize("unroll-loops") #pragma GCC optimize("-ffloat-store") // to restrict undesirable precision #pragma GCC optimize( \ "-fno-defer-pop") // to pop argument of functio...
[["-", 51, 16, 31, 16, 12, 69, 341, 342, 0, 13], ["+", 51, 16, 31, 16, 12, 69, 341, 342, 0, 13], ["-", 51, 16, 12, 16, 31, 69, 341, 342, 0, 13], ["+", 51, 16, 12, 16, 31, 69, 341, 342, 0, 13]]
1
240
#include <algorithm> #include <climits> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <utility> #include <vector> #include <f...
#include <algorithm> #include <climits> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <utility> #include <vector> #include <f...
[["-", 15, 16, 12, 16, 12, 2, 3, 4, 0, 13], ["+", 15, 16, 12, 16, 12, 2, 3, 4, 0, 13]]
1
355
#define ll long long int #define pb push_back #define mp make_pair #include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); ll t = 1, r, n, a, b, c, x, y, sum, cnt, i, j, k, m, l, q, maxx, minn, temp, ans, flag, z, h, w, p, ts; string str, ttr; long ...
#define ll long long int #define pb push_back #define mp make_pair #include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); ll t = 1, r, n, a, b, c, x, y, sum, cnt, i, j, k, m, l, q, maxx, minn, temp, ans, flag, z, h, w, p, ts; string str, ttr; long ...
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
219
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll maxs = 1e6 + 5; const ll lmaxs = 20; ll mod = 1e9 + 7; ll oo = 1e15; #define IOS \ ios_base::sync_with_stdio(false); \ cin.tie(...
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll maxs = 1e6 + 5; const ll lmaxs = 20; ll mod = 1e9 + 7; ll oo = 1e15; #define IOS \ ios_base::sync_with_stdio(false); \ cin.tie(...
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
161
/* ---------- STL Libraries ---------- */ // IO library #include <cstdio> #include <fstream> #include <iomanip> #include <ios> #include <iostream> // algorithm library #include <algorithm> #include <cassert> #include <cmath> #include <cstring> #include <numeric> #include <random> // container library #include <arr...
/* ---------- STL Libraries ---------- */ // IO library #include <cstdio> #include <fstream> #include <iomanip> #include <ios> #include <iostream> // algorithm library #include <algorithm> #include <cassert> #include <cmath> #include <cstring> #include <numeric> #include <random> // container library #include <arr...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60]]
1
282
#文字列の入力 S = input() S_list = list(S) if(S_list[2]==S_list[3]): if(S_list[4]==S_list[5]): print("Yes") else: print("No")
#文字列の入力 S = input() S_list = list(S) if((S_list[2]==S_list[3])and(S_list[4]==S_list[5])): print("Yes") else: print("No")
[["+", 0, 57, 15, 23, 0, 679, 31, 23, 0, 24], ["-", 36, 36, 36, 36, 0, 656, 0, 57, 0, 102], ["-", 0, 656, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 0, 656, 0, 57, 15, 23, 0, 679, 17, 355], ["+", 0, 57, 15, 23, 0, 679, 12, 23, 0, 25]]
5
52
#include <bits/stdc++.h> typedef long long ll; using namespace std; int case1 = 1; int main() { string st; cin >> st; int n = st.size(); if (n < 6) { cout << "No" << endl; } else { if (st[2] == st[4] && st[3] == st[5]) { cout << "Yes" << endl; } else { cout << "No" << endl; } } ...
#include <bits/stdc++.h> typedef long long ll; using namespace std; int case1 = 1; int main() { string st; cin >> st; int n = st.size(); if (n < 6) { cout << "No" << endl; } else { if (st[2] == st[3] && st[4] == st[5]) { cout << "Yes" << endl; } else { cout << "No" << endl; } } ...
[["-", 51, 16, 31, 16, 12, 69, 341, 342, 0, 13], ["+", 51, 16, 31, 16, 12, 69, 341, 342, 0, 13], ["-", 51, 16, 12, 16, 31, 69, 341, 342, 0, 13], ["+", 51, 16, 12, 16, 31, 69, 341, 342, 0, 13]]
1
103
#include <bits/stdc++.h> using namespace std; #define PII pair<int, int> #define VI vector<int> #define VPII vector<PII> #define LL long long #define LD long double #define f first #define s second #define MP make_pair #define PB push_back #define endl '\n' #define ALL(c) (c).begin(), (c).end() #define SIZ(c) (int)(c)....
#include <bits/stdc++.h> using namespace std; #define PII pair<int, int> #define VI vector<int> #define VPII vector<PII> #define LL long long #define LD long double #define f first #define s second #define MP make_pair #define PB push_back #define endl '\n' #define ALL(c) (c).begin(), (c).end() #define SIZ(c) (int)(c)....
[["-", 31, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["-", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6]]
1
384
//*******Abhijit Burman***********// // Jalpaiguri Government Engineering College/ #include <bits/stdc++.h> using namespace std; #define ll long long int #define pb push_back #define mk make_pair #define MAXX (1000000000000000000 + 7) #define fio \ i...
//*******Abhijit Burman***********// // Jalpaiguri Government Engineering College/ #include <bits/stdc++.h> using namespace std; #define ll long long int #define pb push_back #define mk make_pair #define MAXX (1000000000000000000 + 7) #define fio \ i...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
111
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #define x first #define y second #define pb push_back #define mp make_pair #define all(v) v.begin(), v.end() #define sz(v) (int)v.size() #define up_b upper_bound #define low_b lower_bound #define nl '\n' using namespace std; using namespace __gnu_pbds; ...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #define x first #define y second #define pb push_back #define mp make_pair #define all(v) v.begin(), v.end() #define sz(v) (int)v.size() #define up_b upper_bound #define low_b lower_bound #define nl '\n' using namespace std; using namespace __gnu_pbds; ...
[["-", 51, 16, 12, 16, 31, 69, 341, 342, 0, 13], ["+", 51, 16, 12, 16, 31, 69, 341, 342, 0, 13], ["-", 51, 16, 12, 16, 12, 69, 341, 342, 0, 13], ["+", 51, 16, 12, 16, 12, 69, 341, 342, 0, 13]]
1
192
#define ll long long #define MOD 1000000007 #define MOD2 998244353 #define mp make_pair #define pb push_back #define ff first #define ss second #define set2d(array, val, m, n) memset(array, val, sizeof(array[0][0]) * m * n); #include <bits/stdc++.h> using namespace std; ll power(ll x, ll y, ll p) { ll res = 1; x %=...
#define ll long long #define MOD 1000000007 #define MOD2 998244353 #define mp make_pair #define pb push_back #define ff first #define ss second #define set2d(array, val, m, n) memset(array, val, sizeof(array[0][0]) * m * n); #include <bits/stdc++.h> using namespace std; ll power(ll x, ll y, ll p) { ll res = 1; x %=...
[["-", 51, 16, 31, 16, 12, 69, 341, 342, 0, 13], ["+", 51, 16, 31, 16, 12, 69, 341, 342, 0, 13]]
1
209
/* PAIN demands to be felt so do RE, TLE, MLE, SIGSEV & WA */ #include <bits/stdc++.h> using namespace std; // -----------------<fast IO>------------------ #define CIN \ ios::sync_with_stdio(0); ...
/* PAIN demands to be felt so do RE, TLE, MLE, SIGSEV & WA */ #include <bits/stdc++.h> using namespace std; // -----------------<fast IO>------------------ #define CIN \ ios::sync_with_stdio(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
1,056
#include <bits/stdc++.h> #define fastio \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL); #include <ext/pb_ds/assoc_containe...
#include <bits/stdc++.h> #define fastio \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL); #include <ext/pb_ds/assoc_containe...
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
290
import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.Scanner; import java.u...
import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.Scanner; import java.u...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["-", 75, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 75, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
3,607
#include <bits/stdc++.h> using namespace std; string s; signed main() { cin >> s; if (s[2] == s[3] && s[4] == s[5]) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; string s; signed main() { cin >> s; if (s[2] == s[3] && s[4] == s[5]) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
61
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> ii; typedef vector<int> vi; typedef vector<ii> vii; #define FASTIO() \ ios_base::sync_with_stdio(0); \ cin.tie(0); ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> ii; typedef vector<int> vi; typedef vector<ii> vii; #define FASTIO() \ ios_base::sync_with_stdio(0); \ cin.tie(0); ...
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
146
#include <bits/stdc++.h> using namespace std; #define mod 1000000007 #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.t...
#include <bits/stdc++.h> using namespace std; #define mod 1000000007 #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.t...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
83
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define REP(i, n) for (ll i = 0; i < (ll)(n); i++) int main(void) { string S; //標準入力 cin >> S; if (S[2] == S[3] && S[4] == S[4]) { cout << "Yes" << endl; return 0; } cout << "No" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define REP(i, n) for (ll i = 0; i < (ll)(n); i++) int main(void) { string S; //標準入力 cin >> S; if (S[2] == S[3] && S[4] == S[5]) { cout << "Yes" << endl; return 0; } cout << "No" << endl; return 0; }
[["-", 51, 16, 12, 16, 12, 69, 341, 342, 0, 13], ["+", 51, 16, 12, 16, 12, 69, 341, 342, 0, 13]]
1
80
#include <bits/stdc++.h> #define int long long #define ll long long #define fi first #define se second #define pb push_back #define pob pop_back #define mp make_pair #define db long double #define pll pair<ll, ll> #define vll vector<ll> #define all(a) (a).begin(), (a).end() #define rep(i, a, b) for (int i = a; i < b; i...
#include <bits/stdc++.h> #define int long long #define ll long long #define fi first #define se second #define pb push_back #define pob pop_back #define mp make_pair #define db long double #define pll pair<ll, ll> #define vll vector<ll> #define all(a) (a).begin(), (a).end() #define rep(i, a, b) for (int i = a; i < b; i...
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
141
#include <algorithm> #include <cmath> #include <deque> #include <forward_list> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <stack> #include <string> #include <time.h> #include <unordered_map> #include <unordered_set> #include <vector> #pragma GCC optimize("Ofast") #de...
#include <algorithm> #include <cmath> #include <deque> #include <forward_list> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <stack> #include <string> #include <time.h> #include <unordered_map> #include <unordered_set> #include <vector> #pragma GCC optimize("Ofast") #de...
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
140
// Keep Working Hard // I__Like__Food #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define rep(i, a, b) for (int i = a; i <= b; i++) #define rep2(i, a, b) for (int i = a; i >= b; i--) #pragma GCC optimize("O3") #pragma GCC optimize("Ofast") #pragma GCC optimize(...
// Keep Working Hard // I__Like__Food #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define rep(i, a, b) for (int i = a; i <= b; i++) #define rep2(i, a, b) for (int i = a; i >= b; i--) #pragma GCC optimize("O3") #pragma GCC optimize("Ofast") #pragma GCC optimize(...
[["-", 0, 16, 12, 16, 12, 69, 341, 342, 0, 13], ["+", 0, 16, 12, 16, 12, 69, 341, 342, 0, 13]]
1
233
print("Yes" if s[2]==s[3] and s[4] == s[5] else "No")
s = input() print("Yes" if s[2]==s[3] and s[4] == s[5] else "No")
[["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
30
#include <bits/stdc++.h> using namespace std; #define sqr(x) ((x) * (x)) #define cube(x) ((x) * (x) * (x)) #define GCD(a, b) __gcd(a, b) #define LCM(a, b) ((a) * (b) / GCD(a, b)) #define PI (3.141592653589793238462643383279502884197169399375105820974944) #define MP make_pair #define n1 first #define n2 second #define ...
#include <bits/stdc++.h> using namespace std; #define sqr(x) ((x) * (x)) #define cube(x) ((x) * (x) * (x)) #define GCD(a, b) __gcd(a, b) #define LCM(a, b) ((a) * (b) / GCD(a, b)) #define PI (3.141592653589793238462643383279502884197169399375105820974944) #define MP make_pair #define n1 first #define n2 second #define ...
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
258
#include <bits/stdc++.h> #define slowanddetermined \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL); #define debug(x) ...
#include <bits/stdc++.h> #define slowanddetermined \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL); #define debug(x) ...
[["-", 51, 16, 31, 16, 12, 69, 341, 342, 0, 13], ["+", 51, 16, 31, 16, 12, 69, 341, 342, 0, 13], ["-", 51, 16, 12, 16, 31, 69, 341, 342, 0, 13], ["+", 51, 16, 12, 16, 31, 69, 341, 342, 0, 13]]
1
86
#include <bits/stdc++.h> using namespace std; #define int long long int int32_t main() { string s; cin >> s; if (s[2] == s[4] && s[3] == s[5]) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; #define int long long int int32_t main() { string s; cin >> s; if (s[2] == s[3] && s[4] == s[5]) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
[["-", 51, 16, 31, 16, 12, 69, 341, 342, 0, 13], ["+", 51, 16, 31, 16, 12, 69, 341, 342, 0, 13], ["-", 51, 16, 12, 16, 31, 69, 341, 342, 0, 13], ["+", 51, 16, 12, 16, 31, 69, 341, 342, 0, 13]]
1
64
//#pragma GCC optimize ("Ofast") //#pragma GCC optimize ("unroll-loops") //#pragma GCC target("avx,avx2,fma") #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #include <ext/rope> #define pb push_back #define F first #define S second #define ins insert #define mp ma...
//#pragma GCC optimize ("Ofast") //#pragma GCC optimize ("unroll-loops") //#pragma GCC target("avx,avx2,fma") #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #include <ext/rope> #define pb push_back #define F first #define S second #define ins insert #define mp ma...
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
479
s = input() f = True if s[2] == s[3] and s[4] == s[5]: print('Yes') else: print('NO')
s = input() f = True if s[2] == s[3] and s[4] == s[5]: print('Yes') else: print('No')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
43
#include <bits/stdc++.h> using namespace std; const double PI = 3.141592653589; #define fastio \ ios_base::sync_with_stdio(false); \ cin.tie(0); ...
#include <bits/stdc++.h> using namespace std; const double PI = 3.141592653589; #define fastio \ ios_base::sync_with_stdio(false); \ cin.tie(0); ...
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
485
#include <bits/stdc++.h> #pragma once using namespace std; #define repd(i, a, b) for (int i = (a); i < (b); i++) #define rep(i, n) repd(i, 0, n) typedef long long ll; typedef long double lb; #define int long long #define double long double #define endn "\n" typedef pair<int, int> P; const int MOD = 1000000007; const ll...
#include <bits/stdc++.h> #pragma once using namespace std; #define repd(i, a, b) for (int i = (a); i < (b); i++) #define rep(i, n) repd(i, 0, n) typedef long long ll; typedef long double lb; #define int long long #define double long double #define endn "\n" typedef pair<int, int> P; const int MOD = 1000000007; const ll...
[["+", 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
241
/* ########################### # Author : Pranay Garg # # College : SGSITS # ########################### */ #include <bits/stdc++.h> #define ll long long int #define ironman \ ios_base::sync_with_stdio(false); ...
/* ########################### # Author : Pranay Garg # # College : SGSITS # ########################### */ #include <bits/stdc++.h> #define ll long long int #define ironman \ ios_base::sync_with_stdio(false); ...
[["-", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
1,417
X = int(input()) print(1000 * (X // 500) + 5 * (X - 500 * (X // 500)) // 5)
X = int(input()) print(1000 * (X // 500) + 5 * ((X - 500 * (X // 500)) // 5))
[["+", 12, 657, 12, 23, 0, 657, 31, 23, 0, 24], ["+", 3, 4, 0, 657, 12, 657, 12, 23, 0, 25]]
5
34
#include <bits/stdc++.h> using ll = long long; using namespace std; #define rep(i, n) for (int i = 0, i##_len = (int)(n); i < i##_len; i++) #define reps(i, n) for (int i = 1, i##_len = (int)(n); i <= i##_len; i++) #define rrep(i, n) for (int i = ((int)(n)-1); i >= 0; i--) #define rreps(i, n) for (int i = ((int)(n)); i ...
#include <bits/stdc++.h> using ll = long long; using namespace std; #define rep(i, n) for (int i = 0, i##_len = (int)(n); i < i##_len; i++) #define reps(i, n) for (int i = 1, i##_len = (int)(n); i <= i##_len; i++) #define rrep(i, n) for (int i = ((int)(n)-1); i >= 0; i--) #define rreps(i, n) for (int i = ((int)(n)); i ...
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
515
#include <bits/stdc++.h> using namespace std; int main() { long long n; cin >> n; long long a, b, cnt = 0; a = n / 500; cnt += a * 1000; b = (n - a * 500); cnt += b; cout << cnt << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long long n; cin >> n; long long a, b, cnt = 0; a = n / 500; cnt += a * 1000; b = (n - a * 500) / 5 * 5; cnt += b; cout << cnt << endl; }
[["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 85], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
62
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i) #define rep2(i, x, n) for (int i = x, i##_len = (n); i < i##_len; ++i) #define all(n) begin(n), end(n) using ll = long long; using P = pair<int, int>; using vi = vector<int>; using vl = vector<ll>; using vs ...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i) #define rep2(i, x, n) for (int i = x, i##_len = (n); i < i##_len; ++i) #define all(n) begin(n), end(n) using ll = long long; using P = pair<int, int>; using vi = vector<int>; using vl = vector<ll>; using vs ...
[["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]]
1
161
x = gets.to_i score = 0 score += x/500 * 1000 x = x/500 score += x/5 * 5 puts score
x = gets.to_i score = 0 score += x/500 * 1000 x -= x/500 * 500 score += x/5 * 5 puts score
[["-", 36, 36, 36, 36, 0, 493, 0, 662, 0, 32], ["+", 36, 36, 36, 36, 0, 493, 0, 755, 17, 110], ["+", 0, 493, 0, 755, 12, 738, 31, 738, 12, 612], ["+", 36, 36, 0, 493, 0, 755, 12, 738, 17, 48]]
4
29
x=int(input()) n=x//500 m=x%500//5 ans=500*n+5*m print(ans)
x=int(input()) n=x//500 m=x%500//5 ans=1000*n+5*m print(ans)
[["-", 0, 1, 0, 662, 12, 657, 31, 657, 31, 612], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 31, 612]]
5
33
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll x; cin >> x; ll ans = (x / 500) * 1000; x = x % 1000; ans = ans + (x / 5) * 5; cout << ans; return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll x; cin >> x; ll ans = (x / 500) * 1000; x = x % 500; ans = ans + (x / 5) * 5; cout << ans; return 0; }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
60
X = int(input()) a = X//500 b = (X-a*500)%5 print(a*1000+b*5)
X = int(input()) a = X//500 b = (X-a*500)//5 print(a*1000+b*5)
[["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 109], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676]]
5
34
// lcmとか__builtin_popcountとかはg++ -std=c++17 default.cppみたいなかんじで #include <bits/stdc++.h> #define mod 1000000007 #define INF LLONG_MAX #define ll long long #define ln cout << endl #define Yes cout << "Yes" << endl #define NO cout << "NO" << endl #define YES cout << "YES" << endl #define No cout << "No" << endl #define ...
// lcmとか__builtin_popcountとかはg++ -std=c++17 default.cppみたいなかんじで #include <bits/stdc++.h> #define mod 1000000007 #define INF LLONG_MAX #define ll long long #define ln cout << endl #define Yes cout << "Yes" << endl #define NO cout << "NO" << endl #define YES cout << "YES" << endl #define No cout << "No" << endl #define ...
[["-", 0, 14, 8, 9, 0, 1, 0, 11, 17, 90], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 132]]
1
200
#include <bits/stdc++.h> using namespace std; using ll = long long; #define all(v) v.begin(), v.end() int main() { ll X; cin >> X; ll a = X / 500; X -= 500 * a; cout << 500 * a + 5 * (X / 5) << endl; }
#include <bits/stdc++.h> using namespace std; using ll = long long; #define all(v) v.begin(), v.end() int main() { ll X; cin >> X; ll a = X / 500; X -= 500 * a; cout << 1000 * a + 5 * (X / 5) << endl; }
[["-", 0, 16, 31, 16, 12, 16, 31, 16, 31, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 31, 13]]
1
60
#include <stdio.h> int main(void) { long int a, b, c; scanf("%ld", a); b = a / 500; a = a % 500; c = a / 5; printf("%ld", 5 * c + 1000 * b); return 0; }
#include <stdio.h> int main(void) { long int a, b, c; scanf("%ld", &a); b = a / 500; a = a % 500; c = a / 5; printf("%ld", 5 * c + 1000 * b); return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
0
62
#include <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<ll, ll>; #define rep(i, n) \ ; \ for (ll i = 0; i < (ll)n; i++) int main() { ll x, y, z; cin...
#include <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<ll, ll>; #define rep(i, n) \ ; \ for (ll i = 0; i < (ll)n; i++) int main() { ll x, y, z; cin...
[["-", 0, 16, 31, 16, 12, 16, 31, 16, 12, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 13]]
1
76
X = int(input()) ans=0 X2 = X if X < 500: print((X // 5) * 5) else: ans += (X // 500)*1000 X2 -= (X//500)*500 ans += (X2//5)*5 print(ans)
X = int(input()) ans=0 if X < 500: print((X // 5) * 5) else: ans += (X // 500)*1000 X -= (X//500)*500 ans += (X//5)*5 print(ans)
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["-", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 22], ["-", 75, 76, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 75, 76, 8, 196, 0, 1, 0, 677, 31, 22], ["-", 0, 677, 12, 657, 31, 23, 0, 657, 31, 22], ["+", 0, 677, 12, 657, 31, 23, 0, 657, 31, 22]]
5
62
x = int(input()) ans = 0 ans += (x // 500) * 1000 ans += ((x % 1000) // 5) * 5 print(ans)
x = int(input()) ans = 0 ans += (x // 500) * 1000 ans += ((x % 500) // 5) * 5 print(ans)
[["-", 31, 23, 0, 657, 31, 23, 0, 657, 12, 612], ["+", 31, 23, 0, 657, 31, 23, 0, 657, 12, 612]]
5
37
x=int(input()) i=0 u=0 while 500<=x: x-=500 i+=1 while x>=5: x-=5 u+=1 print(5*i+u)
x=int(input()) i=0 u=0 while 500<=x: x-=500 i+=1 while x>=5: x-=5 u+=1 print(1000*i+5*u)
[["-", 0, 652, 3, 4, 0, 657, 31, 657, 31, 612], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 31, 612], ["+", 0, 652, 3, 4, 0, 657, 12, 657, 31, 612], ["+", 0, 652, 3, 4, 0, 657, 12, 657, 17, 48]]
5
44
x=int(input()) print(x/500*1000+x%500/5*5)
x=int(input()) print(x//500*1000+x%500//5*5)
[["-", 3, 4, 0, 657, 31, 657, 31, 657, 17, 85], ["+", 3, 4, 0, 657, 31, 657, 31, 657, 17, 676], ["-", 3, 4, 0, 657, 12, 657, 31, 657, 17, 85], ["+", 3, 4, 0, 657, 12, 657, 31, 657, 17, 676]]
5
24
x=int(input()) if n!=0: ans1=n//500 sub=n-(ans1*500) ans2=sub//5 print((ans1*1000)+(ans2*5)) else: print(0)
n=int(input()) if n!=0: ans1=n//500 sub=n-(ans1*500) ans2=sub//5 print((ans1*1000)+(ans2*5)) else: print(0)
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22]]
5
52
N = int(input()) a = N // 500 N -= 500 * a b = N // 5 print(a * 500 + b * 5)
N = int(input()) a = N // 500 N -= 500 * a b = N // 5 print(a * 1000 + b * 5)
[["-", 0, 652, 3, 4, 0, 657, 31, 657, 12, 612], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 12, 612]]
5
33
#include <bits/stdc++.h> #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() { ll x; cin >> x; ll ans = 0; ans += (x / 500) * 1000; ans += x % 500; cout << ans << endl; }
#include <bits/stdc++.h> #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() { ll x; cin >> x; ll ans = 0; ans += (x / 500) * 1000; ans += (x % 500) / 5 * 5; cout << ans << endl; }
[["+", 0, 11, 12, 16, 31, 16, 31, 23, 0, 24], ["+", 0, 11, 12, 16, 31, 16, 31, 23, 0, 25], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 85], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
70
x=input() a=x//500*1000 b=x%500//5*5 print(a+b)
x=int(input()) a=x//500*1000 b=x%500//5*5 print(a+b)
[["+", 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
27
x=input() print(((x//500)*1000)+((x%500//5)*5))
x=int(input()) print(((x//500)*1000)+((x%500//5)*5))
[["+", 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
29
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { int n; cin >> n; ll ans = (n / 500) * 1000 + ((n % 1000) / 5) * 5; cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { ll n; cin >> n; ll ans = (n / 500) * 1000 + ((n % 500) / 5) * 5; cout << ans << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 31, 23, 0, 16, 31, 23, 0, 16, 12, 13], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 12, 13]]
1
51
x=int(input()) (a,b)=divmod(x/500) print(a*1000+b//5*5)
x=int(input()) (a,b)=divmod(x,500) print(a*1000+b//5*5)
[["-", 0, 662, 12, 652, 3, 4, 0, 657, 17, 85], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21]]
5
32
X=int(input()) a=X//500 if X//500==0: print(a*1000) else: b=(X-500*a)//5 print(a*1000+b*5)
X=int(input()) a=X//500 if X%500==0: print(a*1000) else: b=(X-500*a)//5 print(a*1000+b*5)
[["-", 0, 656, 0, 57, 15, 666, 0, 657, 17, 676], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 17, 109]]
5
49
X = int(input()) m500 = X // 500 X -= m500 * 500 m5 = X // 5 print(1000 * m500 + 100 * m5)
X = int(input()) m500 = X // 500 X -= m500 * 500 m5 = X // 5 print(1000 * m500 + 5 * m5)
[["-", 0, 652, 3, 4, 0, 657, 12, 657, 31, 612], ["+", 0, 652, 3, 4, 0, 657, 12, 657, 31, 612]]
5
33
a = int(input()) b = a//500*1000 c = (a%500)/5*5 print(int(b+c))
a = int(input()) b = a//500*1000 c = (a%500)//5*5 print(int(b+c))
[["-", 0, 1, 0, 662, 12, 657, 31, 657, 17, 85], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 17, 676]]
5
35
#include <algorithm> #include <climits> #include <cmath> #include <cstdio> #include <ctime> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <tuple> #include <unordered_map> #include <unordered_set> #inc...
#include <algorithm> #include <climits> #include <cmath> #include <cstdio> #include <ctime> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <tuple> #include <unordered_map> #include <unordered_set> #inc...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20]]
1
197
n=int(input()) cnt=0 if n>=500: x=n//500 n=n%500 cnt+=(1000*x) cnt+=(5*n//5) print(cnt)
n=int(input()) cnt=0 if n>=500: x=n//500 n=n%500 cnt+=(1000*x) cnt+=(5*(n//5)) print(cnt)
[["+", 0, 677, 12, 23, 0, 657, 12, 23, 0, 24], ["+", 0, 677, 12, 23, 0, 657, 12, 23, 0, 25]]
5
46
x = input(int()) a = x//500 b = (x%500)//5 h = a*1000+b*5 print(h)
x = int(input()) a = x//500 b = (x%500)//5 h = a*1000+b*5 print(h)
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 662, 12, 652, 3, 4, 0, 652, 63, 22]]
5
35
n=int(input()) ans += 1000*(n//500) n=n%500 ans += n//5 print(ans)
n=int(input()) ans = 1000*(n//500) n=n%500 ans += 5*(n//5) print(ans)
[["-", 36, 36, 0, 656, 0, 1, 0, 677, 17, 107], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 0, 656, 0, 1, 0, 677, 12, 657, 31, 612], ["+", 0, 656, 0, 1, 0, 677, 12, 657, 17, 48], ["+", 0, 1, 0, 677, 12, 657, 12, 23, 0, 24], ["+", 0, 1, 0, 677, 12, 657, 12, 23, 0, 25]]
5
31
import math N = int(input()) #print(N) A = math.floor(N / 500) #print(A) N = N - A * 500 #print(N) B = math.floor(N / 5) print(B) AA = A * 1000 BB = B * 5 print(AA + BB)
import math N = int(input()) #print(N) A = math.floor(N / 500) #print(A) N = N - A * 500 #print(N) B = math.floor(N / 5) #print(B) AA = A * 1000 BB = B * 5 print(AA + BB)
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
60
#include <bits/stdc++.h> using namespace std; using i64 = long long; int main() { i64 X; cin >> X; i64 res = X / 500 * 500 + X % 500 / 5 * 5; cout << res << endl; }
#include <bits/stdc++.h> using namespace std; using i64 = long long; int main() { i64 X; cin >> X; i64 res = X / 500 * 1000 + X % 500 / 5 * 5; cout << res << endl; }
[["-", 0, 43, 49, 50, 51, 16, 31, 16, 12, 13], ["+", 0, 43, 49, 50, 51, 16, 31, 16, 12, 13]]
1
48
#include <stdio.h> int main(void) { int a, A, B; scanf("%d", &a); A = (a / 500); B = ((a % 500) % 5); printf("%ld", A * 1000 + B * 5); }
#include <stdio.h> int main(void) { int a, A, B; scanf("%d", &a); A = (a / 500); B = ((a % 500) / 5); printf("%ld", A * 1000 + B * 5); }
[["-", 0, 1, 0, 11, 12, 23, 0, 16, 17, 109], ["+", 0, 1, 0, 11, 12, 23, 0, 16, 17, 85]]
0
61
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep2(i, s, n) for (int i = (s); i < (int)(n); i++) using namespace std; using P = pair<int, int>; using ll = long long; int main() { ll n; cin >> n; cout << (n / 500 * 1000) + (n % 500) << endl; return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep2(i, s, n) for (int i = (s); i < (int)(n); i++) using namespace std; using P = pair<int, int>; using ll = long long; int main() { ll n; cin >> n; cout << (n / 500 * 1000) + ((n % 500) / 5 * 5) << endl; return 0; }
[["+", 12, 23, 0, 16, 31, 16, 31, 23, 0, 24], ["+", 12, 23, 0, 16, 31, 16, 31, 23, 0, 25], ["+", 12, 16, 12, 23, 0, 16, 31, 16, 17, 85], ["+", 12, 16, 12, 23, 0, 16, 31, 16, 12, 13], ["+", 31, 16, 12, 16, 12, 23, 0, 16, 17, 48], ["+", 31, 16, 12, 16, 12, 23, 0, 16, 12, 13]]
1
74
def main(): n = int(input()) a = int(n/500) b = n % 500 c = b / 5 d = b % 5 glad = int(1000 * a + 5 * c) print(glad) main()
def main(): n = int(input()) a = int(n/500) b = n % 500 c = int(b / 5) d = b % 5 glad = int(1000 * a + 5 * c) print(glad) main()
[["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
55
x = int(input()) a = x//500 b = (x % 1000) //5 print(1000*a + 5*b)
x = int(input()) a = x//500 b = (x % 500) //5 print(1000*a + 5*b)
[["-", 0, 662, 12, 657, 31, 23, 0, 657, 12, 612], ["+", 0, 662, 12, 657, 31, 23, 0, 657, 12, 612]]
5
32
X = int(input()) ans = int(X/500)*1000 X -= int(X/500) ans = int(X/5)*5 print(ans)
X = int(input()) ans = int(X/500)*1000 X -= int(X/500)*500 ans += int(X/5)*5 print(ans)
[["+", 0, 656, 0, 1, 0, 677, 12, 657, 17, 48], ["+", 0, 656, 0, 1, 0, 677, 12, 657, 12, 612], ["-", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 36, 36, 0, 656, 0, 1, 0, 677, 17, 107]]
5
40
#include <stdio.h> int main(void) { long long x, c = 0; scanf("%lld", &x); while (x > 500) { c += 1000; x -= 500; } while (x > 5) { c += 5; x -= 5; } printf("%lld", c); return 0; }
#include <stdio.h> int main(void) { long long x, c = 0; scanf("%lld", &x); while (x >= 500) { c += 1000; x -= 500; } while (x >= 5) { c += 5; x -= 5; } printf("%lld", c); return 0; }
[["-", 8, 9, 0, 52, 15, 23, 0, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 23, 0, 16, 17, 20]]
0
71
X = int(input()) happy = (X // 500) * 1000 + ((X % 500) // 5) * 5 happy
X = int(input()) happy = (X // 500) * 1000 + ((X % 500) // 5) * 5 print(happy)
[["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
30
x = int(input()) print(x//500 + x%500//5*5)
x = int(input()) print(x//500*1000 + x%500//5*5)
[["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 48], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 12, 612]]
5
22
#include <bits/stdc++.h> //#include<atcoder/all> using namespace std; using ll = long long; int main() { int n; cin >> n; ll ans = 0; ans += n / 1000 * 2000; n -= ans / 2; ans += n / 5 * 5; cout << ans << endl; }
#include <bits/stdc++.h> //#include<atcoder/all> using namespace std; using ll = long long; int main() { ll n; cin >> n; ll ans = 0; ans += n / 500 * 1000; n -= ans / 2; ans += n / 5 * 5; cout << ans << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 12, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 13], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
59
def atc_160b(X: int) -> int: return X // 500 * 1000 + X % 500 // 5 * 5 X_input = input() print(atc_160b(X_input))
def atc_160b(X: int) -> int: return X // 500 * 1000 + X % 500 // 5 * 5 X_input = int(input()) print(atc_160b(X_input))
[["+", 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
36
money = int(input()) gohyakuen = money // 500 goen = (money-(gohyaken*500)) // 5 happy = 1000 * gohyakuen + 5 * goen print(happy)
money = int(input()) gohyakuen = money // 500 goen = (money-(gohyakuen*500)) // 5 happy = 1000 * gohyakuen + 5 * goen print(happy)
[["-", 31, 23, 0, 657, 12, 23, 0, 657, 31, 22], ["+", 31, 23, 0, 657, 12, 23, 0, 657, 31, 22]]
5
39
x = int(input()) (x//500)*1000+(x%500//5)*5
x = int(input()) print((x//500)*1000+(x%500//5)*5)
[["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 3, 4, 0, 657, 31, 657, 31, 23, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
25
n=int(input()) k=n%500 n -= k*500 n //= 5 print(k*1000+n*5)
n=int(input()) k=n//500 n -= k*500 n //= 5 print(k*1000+n*5)
[["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 109], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676]]
5
31
a=int(input()) b=a//500 c=(a-b)//5 print(1000*b+5*c)
a=int(input()) b=a//500 c=(a-b*500)//5 print(1000*b+5*c)
[["+", 12, 657, 31, 23, 0, 657, 12, 657, 17, 48], ["+", 12, 657, 31, 23, 0, 657, 12, 657, 12, 612]]
5
32
#include <bits/stdc++.h> using namespace std; int main() { long long n; cin >> n; long long hundred = n / 500; n %= 500; long long five = n / 5; cout << hundred * 1000 + five; }
#include <bits/stdc++.h> using namespace std; int main() { long long n; cin >> n; long long hundred = n / 500; n %= 500; long long five = n / 5; cout << hundred * 1000 + five * 5; }
[["+", 0, 1, 0, 16, 12, 16, 12, 16, 17, 48], ["+", 0, 1, 0, 16, 12, 16, 12, 16, 12, 13]]
1
48
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; int ans = 0; while (x > 500) { x -= 500; ans += 1000; } while (x > 5) { x -= 5; ans += 5; } cout << ans << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long x; cin >> x; long long ans = 0; while (x >= 500) { x -= 500; ans += 1000; } while (x >= 5) { x -= 5; ans += 5; } cout << ans << endl; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20]]
1
65
yen = int(input()) ''' happy= 0 while yen > 499: yen -= 500 happy += 1000 while yen > 4: yen -=5 happy += 5 ''' happy = 1000 * int(yen//500) + 5 * (yen - (500 * int(yen//500)))//5 print(happy)
yen = int(input()) ''' happy= 0 while yen > 499: yen -= 500 happy += 1000 while yen > 4: yen -=5 happy += 5 ''' happy = 1000 * int(yen//500) + 5 * int((yen - (500 * int(yen//500)))//5) print(happy)
[["+", 0, 662, 12, 657, 12, 657, 12, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 657, 31, 23, 0, 24], ["+", 12, 657, 12, 657, 12, 652, 3, 4, 0, 25]]
5
44
n=int(input()) print(1000*(n//500) + 5*((n//500)//5))
n=int(input()) print(1000*(n//500) + 5*((n%500)//5))
[["-", 12, 23, 0, 657, 31, 23, 0, 657, 17, 676], ["+", 12, 23, 0, 657, 31, 23, 0, 657, 17, 109]]
5
30
#include <algorithm> #include <cassert> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; typedef long long int ll; const ll INF = 1000000000000000000; const do...
#include <algorithm> #include <cassert> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; typedef long long int ll; const ll INF = 1000000000000000000; const do...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
120
#include <bits/stdc++.h> using namespace std; long long int power(long long int x, long long int y) { long long int res = 1; // Initialize result // x=x; while (y > 0) { // If y is odd, multiply x with result if (y & 1) res = (res * x); // y must be even now y = y >> ...
#include <bits/stdc++.h> using namespace std; long long int power(long long int x, long long int y) { long long int res = 1; // Initialize result // x=x; while (y > 0) { // If y is odd, multiply x with result if (y & 1) res = (res * x); // y must be even now y = y >> ...
[["-", 0, 16, 12, 23, 0, 16, 31, 16, 31, 13], ["+", 0, 16, 12, 23, 0, 16, 31, 16, 31, 13], ["+", 0, 16, 12, 23, 0, 16, 12, 23, 0, 24], ["+", 12, 23, 0, 16, 12, 23, 0, 16, 31, 13], ["+", 12, 23, 0, 16, 12, 23, 0, 16, 17, 48], ["+", 0, 16, 12, 23, 0, 16, 12, 23, 0, 25]]
1
432
#include <bits/stdc++.h> #define int long long #pragma GCC optimize("O3,Ofast,no-stack-protector,unroll-loops,fast-math") #pragma GCC target("avx,avx2,sse") using namespace std; signed main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); int x; cin >> x; int tot = (x / 500) * 1000; x /= 5...
#include <bits/stdc++.h> #define int long long #pragma GCC optimize("O3,Ofast,no-stack-protector,unroll-loops,fast-math") #pragma GCC target("avx,avx2,sse") using namespace std; signed main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); int x; cin >> x; int tot = (x / 500) * 1000; x %= 5...
[["-", 0, 14, 8, 9, 0, 1, 0, 11, 17, 90], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 132]]
1
88
#500円通貨1枚につき1000 #5円通貨1枚につき5 #高橋君はx円持ってる #利用できる通貨は500円,100円,10円,5円,1円 #入力 1024 x=input() x1=int(x) #まず入力を500で何回われるかを数えその回数で割り,残った値を変数に格納 r=x1/500 x2=x1%500 #同じ操作を5でおこなう r1=x2/5 x3=x2%5 sam=(r*1000)+(r1*5) print(sam)
#500円通貨1枚につき1000 #5円通貨1枚につき5 #高橋君はx円持ってる #利用できる通貨は500円,100円,10円,5円,1円 #入力 1024 x=input() x1=int(x) #まず入力を500で何回われるかを数えその回数で割り,残った値を変数に格納 r=int(x1/500) x2=x1%500 #同じ操作を5でおこなう r1=int(x2/5) x3=x2%5 sam=(r*1000)+(r1*5) print(sam)
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
55
num = int(input()) hap1000 = num/500 hap5 = (num-hap1000*500)/5 print(int(1000*hap1000+5*hap5))
num = int(input()) hap1000 = int(num/500) hap5 = int((num-hap1000*500)/5) print(int(1000*hap1000+5*hap5))
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
37
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long x = sc.nextLong(); if (x == 0) { System.out.println(0); return; } long a500 = x / 500; if (a500 == 0) { System.out.println(x / 5); return; ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long x = sc.nextLong(); if (x == 0) { System.out.println(0); return; } long a500 = x / 500; if (a500 == 0) { System.out.println(x / 5 * 5); retu...
[["+", 0, 1, 0, 492, 3, 4, 0, 16, 17, 48], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 12, 499]]
3
124
#include <bits/stdc++.h> using namespace std; int main() { long long x; cin >> x; long long ans = 0; ans += (x / 500) * 1000; x = 5 * (x % 500); ans += x / 5; cout << ans << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long x; cin >> x; long long ans = 0; ans += (x / 500) * 1000; x = (x % 500); ans += 5 * (x / 5); cout << ans << endl; return 0; }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 13], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 24], ["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 25]]
1
61
# B - Golden Coins X = int(input()) ans = 1000*(X%500) X //= 500 ans += 5*(X%5) print(ans)
# B - Golden Coins X = int(input()) ans = 1000*(X//500) X %= 500 ans += 5*(X//5) print(ans)
[["-", 0, 662, 12, 657, 12, 23, 0, 657, 17, 109], ["+", 0, 662, 12, 657, 12, 23, 0, 657, 17, 676], ["-", 36, 36, 0, 656, 0, 1, 0, 677, 17, 691], ["+", 36, 36, 0, 656, 0, 1, 0, 677, 17, 132], ["-", 0, 677, 12, 657, 12, 23, 0, 657, 17, 109], ["+", 0, 677, 12, 657, 12, 23, 0, 657, 17, 676]]
5
34
#include <bits/stdc++.h> using namespace std; int main() { long long x; cin >> x; long long k = x / 500; long long l = (x - k) / 5; cout << k * 1000 + l * 5; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long x; cin >> x; long long k = x / 500; long long l = (x - k * 500) / 5; cout << k * 1000 + l * 5; return 0; }
[["+", 51, 16, 31, 23, 0, 16, 12, 16, 17, 48], ["+", 51, 16, 31, 23, 0, 16, 12, 16, 12, 13]]
1
53
x = int(input()) a, b = divmod(x, 500) c = b // 5 print(a + c)
x = int(input()) a, b = divmod(x, 500) c = b // 5 print(a * 1000 + c * 5)
[["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 48], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 12, 612], ["+", 0, 652, 3, 4, 0, 657, 12, 657, 17, 48], ["+", 0, 652, 3, 4, 0, 657, 12, 657, 12, 612]]
5
29
X = int(input()) a, b = 0, 0 a = X // 500 b = (X - 500 * a) % 5 print(1000 * a + 5 * b)
X = int(input()) a, b = 0, 0 a = X // 500 b = (X - 500 * a) // 5 print(1000 * a + 5 * b)
[["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 109], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676]]
5
41
n = int(input()) print(n%500%5*5+n//500*1000)
n = int(input()) print(n%500//5*5+n//500*1000)
[["-", 3, 4, 0, 657, 31, 657, 31, 657, 17, 109], ["+", 3, 4, 0, 657, 31, 657, 31, 657, 17, 676]]
5
24
X = int(input()) #500 X_500 = X // 500 * 2 #5 X_5 = (X % 500) // 5 * 5 print(X_500 + X_5)
X = int(input()) #500 X_500 = X // 500 * 1000 #5 X_5 = (X % 500) // 5 * 5 print(X_500 + X_5)
[["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]]
5
34