buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
long int x;
cin >> x;
long long int ans = (x / 500) * 1000;
x /= 500;
ans += 5 * (x / 5);
cout << ans << "\n";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
long int x;
cin >> x;
long long int ans = (x / 500) * 1000;
x %= 500;
ans += 5 * (x / 5);
cout << ans << "\n";
return 0;
} | [["-", 0, 14, 8, 9, 0, 1, 0, 11, 17, 90], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 132]] | 1 | 65 |
#include <iostream>
using namespace std;
int main() {
long long x, y;
cin >> x;
y = (x % 500) * 1000;
x /= 500;
y += (x % 5) * 5;
cout << y << "\n";
return 0;
} | #include <iostream>
using namespace std;
int main() {
long int x, y;
cin >> x;
y = (x / 500) * 1000;
x %= 500;
y += (x / 5) * 5;
cout << y << "\n";
return 0;
} | [["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40], ["-", 0, 11, 12, 16, 31, 23, 0, 16, 17, 109], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 85], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 17, 90], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 132]] | 1 | 57 |
n=int(input())
print((n//500)*500+((n%500)//5)*5) | n=int(input())
print((n//500)*1000+((n%500)//5)*5) | [["-", 0, 652, 3, 4, 0, 657, 31, 657, 12, 612], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 12, 612]] | 5 | 30 |
x = int(input())
f = int(x / 500) * 1000
s = int((f % 500) / 5) * 5
print(f + s)
| x = int(input())
f = int(x / 500) * 1000
s = int((x % 500) / 5) * 5
print(f + s)
| [["-", 3, 4, 0, 657, 31, 23, 0, 657, 31, 22], ["+", 3, 4, 0, 657, 31, 23, 0, 657, 31, 22]] | 5 | 38 |
// HEADER FILES//
#include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <numeric>
#include <q... | // HEADER FILES//
#include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <numeric>
#include <q... | [["-", 0, 43, 49, 50, 51, 23, 0, 16, 17, 109], ["+", 0, 43, 49, 50, 51, 23, 0, 16, 17, 85]] | 1 | 687 |
#include <bits/stdc++.h>
#define int long long
using namespace std;
main() {
int n;
cin >> n;
int ans = (n / 500) * 1000;
n = n % 1000;
ans += (n / 5) * 5;
cout << ans << endl;
return 0;
}
| #include <bits/stdc++.h>
#define int long long
using namespace std;
main() {
int n;
cin >> n;
int ans = (n / 500) * 1000;
n = n % 500;
ans += (n / 5) * 5;
cout << ans << endl;
return 0;
}
| [["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 1 | 57 |
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <climits>
#include <cmath>
#include <complex>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#includ... | #include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <climits>
#include <cmath>
#include <complex>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#includ... | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 1 | 3,926 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y = 0;
cin >> x;
for (int c = 500, h = 1000; c > 0 and x >= c; h /= 200, c /= 100)
y += h * (x / c), x %= c;
cout << y;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y = 0;
cin >> x;
for (int c = 500, h = 1000; c > 0 and x > 0; h /= 200, c /= 100)
y += h * (x / c), x %= c;
cout << y << '\n';
}
| [["-", 8, 9, 0, 7, 15, 16, 12, 16, 17, 20], ["-", 8, 9, 0, 7, 15, 16, 12, 16, 12, 22], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 17, 47], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 8, 9, 0, 1, 0, 16, 12, 103, 0, 104], ["+", 8, 9, 0, 1, 0, 16, 12, 103, 0, 44]] | 1 | 68 |
#include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <fstream>
#include <iostream>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
#define ll long long
int main() {
ll x;
cin >> x;
ll sum = (x / 500) * 1000;
x -= (x / 500) * 5001000000000;
su... | #include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <fstream>
#include <iostream>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
#define ll long long
int main() {
ll x;
cin >> x;
ll sum = (x / 500) * 1000;
x -= (x / 500) * 500;
sum += (x / ... | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 1 | 76 |
#include <bits/stdc++.h>
#define rep(i, l, r) for (int(i) = (l); (i) < (r); (i)++)
#define ll long long
using namespace std;
int main() {
ll x;
cin >> x;
ll ans = (x / 500) * 1000;
x -= (x / 50) * 50;
ans += (x / 5) * 5;
cout << ans << endl;
} | #include <bits/stdc++.h>
#define rep(i, l, r) for (int(i) = (l); (i) < (r); (i)++)
#define ll long long
using namespace std;
int main() {
ll x;
cin >> x;
ll ans = (x / 500) * 1000;
x -= (x / 500) * 500;
ans += (x / 5) * 5;
cout << ans << endl;
} | [["-", 0, 11, 12, 16, 31, 23, 0, 16, 12, 13], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 13], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 1 | 69 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long n;
cin >> n;
long long m = n / 500;
n = n % 1000;
long long k = n / 5;
cout << m * 1000 + k * 5;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long n;
cin >> n;
long long m = n / 500;
n = n % 500;
long long k = n / 5;
cout << m * 1000 + k * 5;
} | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 1 | 52 |
X = int(input())
coin1 = X / 500
coin2 = (X % 500) / 5
print(coin1*1000 + coin2*5) | X = int(input())
coin1 = int(X / 500)
coin2 = int((X % 500) / 5)
print(coin1*1000 + coin2*5) | [["+", 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 | 32 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long int x, y, i;
cin >> x; // Yen
if (x / 500 >= 1) {
y = (x / 500) * 1000;
i = x % 500;
i = (i / 5) * 5;
y = y + i;
cout << y << endl;
} else {
y = x / 5;
i = x % 5;
i = (i / 5) * 5;
y = y + i;
cout << y <... | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int x, y, i;
cin >> x;
if (x / 500 >= 1) {
y = (x / 500) * 1000;
i = x % 500;
i = (i / 5) * 5;
y = y + i;
cout << y << endl;
} else {
y = (x / 5) * 5;
i = x % 5;
i = (i / 5) * 5;
y = y + i;
cout << y <<... | [["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25], ["+", 0, 9, 0, 1, 0, 11, 12, 16, 17, 48]] | 1 | 111 |
x = int(input())
ans = x//500*1000 + (x%1000)//5*5
print(ans) | x = int(input())
ans = x//500*1000 + (x%500)//5*5
print(ans) | [["-", 12, 657, 31, 657, 31, 23, 0, 657, 12, 612], ["+", 12, 657, 31, 657, 31, 23, 0, 657, 12, 612]] | 5 | 29 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long int a, b = 0;
cin >> a;
b = 1000 * (a / 500);
a /= 500;
b += 5 * (a / 5);
cout << b << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long int a, b = 0;
cin >> a;
b = 1000 * (a / 500);
a = a % 500;
b += 5 * (a / 5);
cout << b << endl;
}
| [["-", 0, 14, 8, 9, 0, 1, 0, 11, 17, 90], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 109]] | 1 | 55 |
X = int(input())
cnt = 0
while X >= 500:
X -= 500
cnt += 1000
while X >= 5:
X -= 5
cnt += 10
print(cnt) | X = int(input())
cnt = 0
while X >= 500:
X -= 500
cnt += 1000
while X >= 5:
X -= 5
cnt += 5
print(cnt) | [["-", 0, 52, 8, 196, 0, 1, 0, 677, 12, 612], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 12, 612]] | 5 | 37 |
#include <iostream>
using namespace std;
int main() {
long long n;
cin >> n;
long long res = 0;
res += (n / 500) * 1000;
;
n /= 500;
res += (n / 5) * 5;
cout << res << endl;
} | #include <iostream>
using namespace std;
int main() {
long long n;
cin >> n;
long long res = 0;
res += (n / 500) * 1000;
n %= 500;
res += (n / 5) * 5;
cout << res << endl;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 17, 90], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 132]] | 1 | 57 |
#include <stdio.h>
int main(int argc, char *argv[]) {
long long x;
scanf("%lld", &x);
long long ret = (x / 500) * 1000;
x %= 500;
ret += (x % 5) * 5;
printf("%lld\n", ret);
}
| #include <stdio.h>
int main(int argc, char *argv[]) {
long long x;
scanf("%lld", &x);
long long ret = (x / 500) * 1000;
x %= 500;
ret += (x / 5) * 5;
printf("%lld\n", ret);
}
| [["-", 0, 11, 12, 16, 31, 23, 0, 16, 17, 109], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 85]] | 0 | 66 |
x = int(input())
print(x // 500 * 1000 + x // 5 * 5)
| x = int(input())
print(x // 500 * 1000 + (x%500) // 5 * 5)
| [["+", 0, 657, 12, 657, 31, 657, 31, 23, 0, 24], ["+", 12, 657, 31, 657, 31, 23, 0, 657, 17, 109], ["+", 12, 657, 31, 657, 31, 23, 0, 657, 12, 612], ["+", 0, 657, 12, 657, 31, 657, 31, 23, 0, 25]] | 5 | 22 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
typedef pair<int, int> pi;
#define f first
#define s second
#define FAST \
ios_base::sync_with_stdio(0); \
cin.tie(0);
#define all(x) x... | #include <bits/stdc++.h>
using namespace std;
#define int long long
typedef pair<int, int> pi;
#define f first
#define s second
#define FAST \
ios_base::sync_with_stdio(0); \
cin.tie(0);
#define all(x) x... | [["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]] | 1 | 80 |
#include <algorithm>
#include <assert.h>
#include <bitset>
#include <complex>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <vector>
using ll = long long;... | #include <algorithm>
#include <assert.h>
#include <bitset>
#include <complex>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <vector>
using ll = long long;... | [["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]] | 1 | 298 |
/* ----------------------- reclone_rk -------------------------*/
#include <bits/stdc++.h>
using namespace std;
#define int long long int
const int mod = 1e9 + 7;
#define re return
#define rep(i, n) for (int i = 0; i < (n); i++)
int gcd(int a, int b) {
if (a == 0)
return b;
return gcd(b % a, a);
}
int MOD(int n... | /* ----------------------- reclone_rk -------------------------*/
#include <bits/stdc++.h>
using namespace std;
#define int long long int
const int mod = 1e9 + 7;
#define re return
#define rep(i, n) for (int i = 0; i < (n); i++)
int gcd(int a, int b) {
if (a == 0)
return b;
return gcd(b % a, a);
}
int MOD(int n... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 13]] | 1 | 304 |
x = int(input())
res = 1000 * x // 500;
x = x % 500;
x -= x % 5
res += x
print(res) | x = int(input())
res = 1000 * (x // 500);
x = x % 500;
x -= x % 5
res += x
print(res) | [["+", 0, 1, 0, 662, 12, 657, 12, 23, 0, 24], ["+", 0, 1, 0, 662, 12, 657, 12, 23, 0, 25]] | 5 | 34 |
money = int(input())
bigPoint = int(money/500) * 1000
smallMoney = money - int(money/100)*100
smallPoint = int(smallMoney/5) * 5
print(bigPoint+smallPoint)
| money = int(input())
bigPoint = int(money/500) * 1000
smallMoney = money - int(money/500)*500
smallPoint = int(smallMoney/5) * 5
print(bigPoint+smallPoint)
| [["-", 12, 657, 31, 652, 3, 4, 0, 657, 12, 612], ["+", 12, 657, 31, 652, 3, 4, 0, 657, 12, 612], ["-", 0, 1, 0, 662, 12, 657, 12, 657, 12, 612], ["+", 0, 1, 0, 662, 12, 657, 12, 657, 12, 612]] | 5 | 46 |
#include <bits/stdc++.h>
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define IO \
std::ios_base::sync_with_stdio(false); \
std::cin.tie(NULL); ... | #include <bits/stdc++.h>
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define IO \
std::ios_base::sync_with_stdio(false); \
std::cin.tie(NULL); ... | [["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 132], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 75 |
#include <stdio.h>
int main() {
long long n;
scanf("%lld", &n);
long long a = n / 500;
long long b = (n % 500) / 5;
printf("%lld\n", a * 100 + b * 5);
return 0;
} | #include <stdio.h>
int main() {
long long n;
scanf("%lld", &n);
long long a = n / 500;
long long b = (n % 500) / 5;
printf("%lld\n", a * 1000 + b * 5);
return 0;
} | [["-", 0, 2, 3, 4, 0, 16, 31, 16, 12, 13], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 12, 13]] | 0 | 61 |
num = int(input())
point = 0
while num >= 500:
point+=1000
num-=500
while num >=5:
point+=5
num-=5
print(re) | num = int(input())
re = 0
while num >= 500:
re+=1000
num-=500
while num >=5:
re+=5
num-=5
print(re) | [["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["-", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22]] | 5 | 37 |
x = int(input())
a = int(x/500)
b = x - a
c = int(b/5)
print(1000*a + 5*c)
| x = int(input())
a = int(x/500)
b = x - 500*a
c = int(b/5)
print(1000*a + 5*c)
| [["+", 0, 1, 0, 662, 12, 657, 12, 657, 31, 612], ["+", 0, 1, 0, 662, 12, 657, 12, 657, 17, 48]] | 5 | 39 |
/*
* ┌─┐ ┌─┐ + +
* ┌──┘ ┴───────┘ ┴──┐++
* │ │
* │ ─── │++ + + +
* ███████───███████ │+
* │ │+
* │ ─┴─ │
* │ │
* └───┐ ┌───┘
* │ │
* │ │ + +
* │ │ Code... | /*
* ┌─┐ ┌─┐ + +
* ┌──┘ ┴───────┘ ┴──┐++
* │ │
* │ ─── │++ + + +
* ███████───███████ │+
* │ │+
* │ ─┴─ │
* │ │
* └───┐ ┌───┘
* │ │
* │ │ + +
* │ │ Code... | [["+", 0, 1, 0, 16, 12, 16, 12, 16, 31, 13], ["+", 0, 1, 0, 16, 12, 16, 12, 16, 17, 48], ["-", 0, 16, 12, 16, 12, 23, 0, 16, 12, 13], ["+", 12, 16, 12, 23, 0, 16, 31, 16, 12, 13], ["+", 12, 16, 12, 16, 12, 23, 0, 16, 17, 85], ["+", 12, 16, 12, 16, 12, 23, 0, 16, 12, 13]] | 1 | 706 |
#include <iostream>
using namespace std;
int main() {
long long n = 0;
cin >> n;
long long i = 0;
i = n / 500;
long long j = 0;
j = (n - 500 * i) / 5;
cout << 500 * i + 5 * j;
} | #include <iostream>
using namespace std;
int main() {
long long n = 0;
cin >> n;
long long i = 0;
i = n / 500;
long long j = 0;
j = (n - 500 * i) / 5;
cout << 1000 * i + 5 * j;
} | [["-", 0, 1, 0, 16, 12, 16, 31, 16, 31, 13], ["+", 0, 1, 0, 16, 12, 16, 31, 16, 31, 13]] | 1 | 62 |
def count_section_by_zero(data):
count = 0
flg = False
start = 0
for i, d in enumerate(data):
if flg is False and d != 0:
count += 1
flg = True
if d == 0:
flg = False
return count
def input_list():
return list(map(int, input().split()))
def input_list_str():
return list(... | def count_section_by_zero(data):
count = 0
flg = False
start = 0
for i, d in enumerate(data):
if flg is False and d != 0:
count += 1
flg = True
if d == 0:
flg = False
return count
def input_list():
return list(map(int, input().split()))
def input_list_str():
return list(... | [["-", 0, 14, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 14, 8, 196, 0, 57, 15, 666, 667, 20], ["-", 0, 57, 64, 196, 0, 57, 15, 666, 667, 47]] | 5 | 370 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll x;
cin >> x;
cout << 1000 * (x / 500) + (x % 500) / 10 * 10 << endl;
;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll x;
cin >> x;
cout << 1000 * (x / 500) + (x % 500) / 5 * 5 << endl;
;
} | [["-", 31, 16, 12, 16, 12, 16, 31, 16, 12, 13], ["+", 31, 16, 12, 16, 12, 16, 31, 16, 12, 13], ["-", 0, 16, 31, 16, 12, 16, 12, 16, 12, 13], ["+", 0, 16, 31, 16, 12, 16, 12, 16, 12, 13]] | 1 | 47 |
// https://atcoder.jp/contests/abc160/tasks/abc160_a
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define REP(i, n) FOR(i, 0, n)
#define REPR(i, n) for (int i = n - 1; i >= 0; i--)
#define FOR(i, s, n) for (int i = (s), i##_len = (n); i < i##_len; ++i)
#define ALL(obj) (obj).begin(), (obj).end()
... | // https://atcoder.jp/contests/abc160/tasks/abc160_a
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define REP(i, n) FOR(i, 0, n)
#define REPR(i, n) for (int i = n - 1; i >= 0; i--)
#define FOR(i, s, n) for (int i = (s), i##_len = (n); i < i##_len; ++i)
#define ALL(obj) (obj).begin(), (obj).end()
... | [["-", 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, 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 | 117 |
#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long int uint64;
////////////////////
int main() {
uint64 X = 0, happy = 0;
cin >> X;
if (X == 0) {
cout << 0;
} else {
happy = (X / 500) * 1000;
if (X % 500 != 0) {
X = X % 500;
}
happy = X / 5 * 5 + happy;
cout <... | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long int uint64;
////////////////////
int main() {
uint64 X = 0, happy = 0;
cin >> X;
if (X == 0) {
cout << 0;
} else {
happy = (X / 500) * 1000;
if (X % 500 != 0) {
X = X % 500;
happy = X / 5 * 5 + happy;
}
cout... | [["-", 75, 76, 0, 9, 0, 57, 64, 9, 0, 46], ["+", 75, 76, 0, 9, 0, 57, 64, 9, 0, 46]] | 1 | 91 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
const int INF = 0x3f3f3f3f;
const int N = 100000 + 5;
double a[N];
ld b[N];
int main() {
int x;
cin >> x;
int t1 = x / 500, t2 = x % 1000 / 5;
ll sum = t1 * 1000 + t2 * 5;
cout << sum << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
const int INF = 0x3f3f3f3f;
const int N = 100000 + 5;
double a[N];
ld b[N];
int main() {
ll x;
cin >> x;
ll t1 = x / 500, t2 = x % 500 / 5;
ll sum = t1 * 1000 + t2 * 5;
cout << sum << endl;
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 0, 43, 49, 50, 51, 16, 31, 16, 12, 13], ["+", 0, 43, 49, 50, 51, 16, 31, 16, 12, 13]] | 1 | 90 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long X, x = 0, ans;
cin >> X;
if ((X % 1000) / 100 >= 5)
x = (X % 1000) / 100 - 5;
else
x = (X % 1000) / 100;
ans = 1000 * (X / 500) + 20 * x + 5 * ((X % 100) / 5);
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long X, x = 0, ans;
cin >> X;
if ((X % 1000) / 100 >= 5)
x = (X % 1000) / 100 - 5;
else
x = (X % 1000) / 100;
ans = 1000 * (X / 500) + 100 * x + 5 * ((X % 100) / 5);
cout << ans << endl;
}
| [["-", 0, 11, 12, 16, 31, 16, 12, 16, 31, 13], ["+", 0, 11, 12, 16, 31, 16, 12, 16, 31, 13]] | 1 | 93 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int64_t x;
cin >> x;
int64_t x2 = x / 1000;
int64_t x3 = x % 1000;
if (x3 < 500) {
x = (x2 * 2) * 1000 + x3 / 5 * 5;
} else
x = (x / 2 * 2 + 1) * 1000 + (x3 - 500) / 5 * 5;
cout << x << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int64_t x;
cin >> x;
int64_t x2 = x / 1000;
int64_t x3 = x % 1000;
if (x3 < 500) {
x = (x2 * 2) * 1000 + x3 / 5 * 5;
} else
x = (x2 * 2 + 1) * 1000 + (x3 - 500) / 5 * 5;
cout << x << endl;
}
| [["-", 31, 23, 0, 16, 31, 16, 31, 16, 31, 22], ["-", 31, 23, 0, 16, 31, 16, 31, 16, 17, 85], ["-", 31, 23, 0, 16, 31, 16, 31, 16, 12, 13], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 31, 22]] | 1 | 88 |
x = int(input())
a = x//500
b = (x - a*500)//5
print(a,b)
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, 652, 3, 4, 0, 21], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 652, 3, 4, 0, 657, 31, 657, 31, 22]] | 5 | 40 |
#include <bits/stdc++.h>
#include <iostream>
#include <math.h>
using namespace std;
typedef long long int ll;
typedef long double dl;
#define PI 3.14159265358979323846
#define M 1000000007
ll fast(ll n, ll a, ll m) {
if (n == 0)
return 1;
else if (n == 1)
return a;
else {
ll r = fast(n / 2, a, m);
... | #include <bits/stdc++.h>
#include <iostream>
#include <math.h>
using namespace std;
typedef long long int ll;
typedef long double dl;
#define PI 3.14159265358979323846
#define M 1000000007
ll fast(ll n, ll a, ll m) {
if (n == 0)
return 1;
else if (n == 1)
return a;
else {
ll r = fast(n / 2, a, m);
... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]] | 1 | 195 |
X = input()
nfh = X // 500
nf = (X - 500 * nfh) // 5
happy = 1000 * nfh + 5 * nf
print(happy) | X = int(input())
nfh = X // 500
nf = (X - 500 * nfh) // 5
happy = 1000 * nfh + 5 * nf
print(happy) | [["+", 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 | 34 |
n=int(input())
tener=int(n/500)
res=n-tener
fiver=int(res/5)
print((tener*1000)+(fiver*5)) | n=int(input())
tener=int(n/500)
res=n-(tener*500)
fiver=int(res/5)
print((tener*1000)+(fiver*5)) | [["+", 0, 1, 0, 662, 12, 657, 12, 23, 0, 24], ["+", 0, 662, 12, 657, 12, 23, 0, 657, 17, 48], ["+", 0, 662, 12, 657, 12, 23, 0, 657, 12, 612], ["+", 0, 1, 0, 662, 12, 657, 12, 23, 0, 25]] | 5 | 43 |
#include <iostream>
using namespace std;
int main(void) {
// Your code here!
long a = 0;
long b = 0; // 500
long c = 0;
cin >> a;
while (a >= 500) {
a = a - 500;
b++;
}
while (a >= 5) {
a = a - 5;
c++;
}
cout << b;
}
| #include <iostream>
using namespace std;
int main(void) {
// Your code here!
long a = 0;
long b = 0; // 500
long c = 0;
cin >> a;
while (a >= 500) {
a = a - 500;
b++;
}
while (a >= 5) {
a = a - 5;
c++;
}
cout << b * 1000 + c * 5;
}
| [["+", 0, 1, 0, 16, 12, 16, 31, 16, 17, 48], ["+", 0, 1, 0, 16, 12, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 17, 72], ["+", 0, 1, 0, 16, 12, 16, 12, 16, 31, 22], ["+", 0, 1, 0, 16, 12, 16, 12, 16, 17, 48], ["+", 0, 1, 0, 16, 12, 16, 12, 16, 12, 13]] | 1 | 72 |
a=int(input())
if a % 500 == 0:
print(a * 2)
else:
print(round(a,-2) * 2 + int((a % 500) / 5) * 5) | a=int(input())
if a % 500 == 0:
print(a * 2)
else:
print(int(a/500) * 1000 + int((a % 500) / 5) * 5) | [["-", 3, 4, 0, 657, 31, 657, 31, 652, 63, 22], ["+", 3, 4, 0, 657, 31, 657, 31, 652, 63, 22], ["-", 0, 657, 31, 657, 31, 652, 3, 4, 0, 21], ["-", 31, 657, 31, 652, 3, 4, 0, 664, 17, 33], ["-", 31, 657, 31, 652, 3, 4, 0, 664, 28, 612], ["+", 31, 657, 31, 652, 3, 4, 0, 657, 17, 85], ["+", 31, 657, 31, 652, 3, 4, 0, 657,... | 5 | 48 |
X = int(input())
q, mod = divmod(X, 500)
print(q*1000+mod % 5*5)
| X = int(input())
q, mod = divmod(X, 500)
print(q*1000+mod // 5*5)
| [["-", 3, 4, 0, 657, 12, 657, 31, 657, 17, 109], ["+", 3, 4, 0, 657, 12, 657, 31, 657, 17, 676]] | 5 | 30 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define Fi first
#define Se second
#define Pb push_back
#define vi vector<int>
#define vp vector<pair<int, int>>
#define vvi vector<vector<int>>
#define vvp vector<vector<pair<int, int>>>
const int INF = 1e9;
const int MOD = 1e9 + 7;
#define all(v) v... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define Fi first
#define Se second
#define Pb push_back
#define vi vector<int>
#define vp vector<pair<int, int>>
#define vvi vector<vector<int>>
#define vvp vector<vector<pair<int, int>>>
const int INF = 1e9;
const int MOD = 1e9 + 7;
#define all(v) v... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25]] | 1 | 369 |
coin = int(input())
fivet_yen = 0
five_yen = 0
if coin == 0:
print(0)
else:
while(coin > 0):
if coin >= 500:
coin = coin - 500
fivet_yen = fivet_yen + 1000
else:
if coin >= 5:
coin = coin - 5
five_yen = five_yen + 5
coin = coin - 1
... | coin = int(input())
fivet_yen = 0
five_yen = 0
if coin == 0:
print(0)
else:
while(coin > 0):
if coin >= 500:
coin = coin - 500
fivet_yen = fivet_yen + 1000
else:
if coin >= 5:
coin = coin - 5
five_yen = five_yen + 5
else:
coin = coin... | [["+", 75, 76, 8, 196, 0, 57, 75, 76, 0, 95], ["+", 75, 76, 8, 196, 0, 57, 75, 76, 0, 102]] | 5 | 75 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long n;
cin >> n;
long long ans = 0;
ans += (n / 500) * 1000;
int rem = n % 500;
ans += (rem % 5) * 5;
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long n;
cin >> n;
long long ans = 0;
ans += (n / 500) * 1000;
int rem = n % 500;
ans += (rem / 5) * 5;
cout << ans << endl;
}
| [["-", 0, 11, 12, 16, 31, 23, 0, 16, 17, 109], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 85]] | 1 | 59 |
X = int(input())
num_500 = X // 500
num_5 = (X - (X // 500)*500 ) % 5
print(1000*num_500 + 5 * num_5) | X = int(input())
num_500 = X // 500
num_5 = (X - (X // 500) * 500 ) // 5
print(1000*num_500 + 5 * num_5) | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 109], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676]] | 5 | 38 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
long long total = 0;
total += 1000 * (n / 500);
n = n % 1000;
total += 5 * (n / 5);
cout << total;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long n;
cin >> n;
long long total = 0;
total += 1000 * (n / 500);
n = n % 500;
total += 5 * (n / 5);
cout << total;
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, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 1 | 58 |
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
long long int a, uangseribuan, c, sisa, sum;
cin >> a;
uangseribuan = a / 500 * 1000;
c = a % 1000 / 5 * 5;
sisa = a % 1000 % 5;
sum = uangseribuan + c;
cout << sum << endl;
return 0;
}
| #include <cstdio>
#include <iostream>
using namespace std;
int main() {
long long int a, uangseribuan, c, sisa, sum;
cin >> a;
uangseribuan = a / 500 * 1000;
c = a % 500 / 5 * 5;
sisa = a % 500 % 5;
sum = uangseribuan + c;
cout << sum << endl;
return 0;
}
| [["-", 0, 11, 12, 16, 31, 16, 31, 16, 12, 13], ["+", 0, 11, 12, 16, 31, 16, 31, 16, 12, 13], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 12, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 13]] | 1 | 72 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long int n, i, ans = 0, p, q;
cin >> n;
p = n / 1000;
// cout<<p<<" ";
ans += p * 2000;
n = n - p * 1000;
q = n / 5;
ans += q * 5;
cout << ans;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long int n, i, ans = 0, p, q;
cin >> n;
p = n / 500;
// cout<<p<<" ";
ans += p * 1000;
n = n - p * 500;
q = n / 5;
ans += q * 5;
cout << ans;
}
| [["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["-", 0, 1, 0, 11, 12, 16, 12, 16, 12, 13], ["+", 0, 1, 0, 11, 12, 16, 12, 16, 12, 13]] | 1 | 68 |
a=int(input())
k=0
c=a//500
d=a%500
s=d//5
s1=a-d
print(s1*c+s*5)
| a=int(input())
k=0
c=a//500
d=a%500
s=d//5
s1=a-d
print(c*1000+s*5)
| [["-", 0, 652, 3, 4, 0, 657, 31, 657, 31, 22], ["-", 0, 652, 3, 4, 0, 657, 31, 657, 17, 48], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 48], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 12, 612]] | 5 | 41 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-*-
from sys import stdin
def main():
X = int(stdin.readline())
y500 = X // 500
y5 = (X % 500) % 5
print(y500 * 1000 + y5 * 5)
if __name__ == "__main__":
main()
| #!/usr/bin/env python3
# -*- coding: utf-8 -*-*-
from sys import stdin
def main():
X = int(stdin.readline())
y500 = X // 500
y5 = (X % 500) // 5
print(y500 * 1000 + y5 * 5)
if __name__ == "__main__":
main()
| [["-", 8, 196, 0, 1, 0, 662, 12, 657, 17, 109], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 676]] | 5 | 55 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vll = vector<ll>;
using vvll = vector<vll>;
using vc = vector<char>;
using vvc = vector<vc>;
using pll = pair<ll, ll>;
using vpll = vector<pll>;
const ll INF = 1LL << 60;
const ll MOD = 1e9 + 7;
#define rep(i, n) for (ll i = 0; i < (n); i++)
#def... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vll = vector<ll>;
using vvll = vector<vll>;
using vc = vector<char>;
using vvc = vector<vc>;
using pll = pair<ll, ll>;
using vpll = vector<pll>;
const ll INF = 1LL << 60;
const ll MOD = 1e9 + 7;
#define rep(i, n) for (ll i = 0; i < (n); i++)
#def... | [["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]] | 1 | 202 |
#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;
ll ure500, kari, ure5, ans;
cin >> X;
ure500 = 0;
kari = 0;
ure5 = 0;
ans = 0;
ure500 = X / 500;
kari = X % 500;
ure5 = kari / 5;
kari... | #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;
ll ure500, kari, ure5, ans;
cin >> X;
ure500 = 0;
kari = 0;
ure5 = 0;
ans = 0;
ure500 = X / 500;
kari = X % 500;
ure5 = kari / 5;
kari... | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22]] | 1 | 113 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int maxn = 1e5 + 5;
int main(void) {
ll x;
cin >> x;
ll ans = 0;
ans += x / 500 * 1000;
ll t = x % 1000;
ans += t / 5 * 5;
cout << ans << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int maxn = 1e5 + 5;
int main(void) {
ll x;
cin >> x;
ll ans = 0;
ans += x / 500 * 1000;
ll t = x % 500;
ans += t / 5 * 5;
cout << ans << endl;
return 0;
} | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]] | 1 | 70 |
a = int(input())
sen = a // 500
juu = (a % 500) // 5
print('{}'.format(sen*1000+juu*10))
| a = int(input())
sen = a // 500
go = (a % 500) // 5
print('{}'.format(sen*1000+go*5)) | [["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["-", 0, 652, 3, 4, 0, 657, 12, 657, 31, 22], ["+", 0, 652, 3, 4, 0, 657, 12, 657, 31, 22], ["-", 0, 652, 3, 4, 0, 657, 12, 657, 12, 612], ["+", 0, 652, 3, 4, 0, 657, 12, 657, 12, 612]] | 5 | 39 |
coins = [500, 5, 100, 50, 10, 1]
uresimi = {500: 1000, 5: 5}
def get_uresimi(money, coin_type):
coin_count = money // coin_type
if coin_count == 0:
return 0, 0
surplus = money % (coin_type * coin_count)
uresisa = uresimi.get(coin_type, 0) * coin_count
return uresisa, surplus
m = int(inpu... | coins = [500, 5, 100, 50, 10, 1]
uresimi = {500: 1000, 5: 5}
def get_uresimi(money, coin_type):
coin_count = money // coin_type
if coin_count == 0:
return 0, money
surplus = money % (coin_type * coin_count)
uresisa = uresimi.get(coin_type, 0) * coin_count
return uresisa, surplus
m = int(... | [["-", 0, 57, 64, 196, 0, 37, 0, 432, 0, 612], ["+", 0, 57, 64, 196, 0, 37, 0, 432, 0, 22]] | 5 | 106 |
n=int(input())
ans=0
ans=n//500*1000+ans
ans=n%1000//5*5+ans
print(ans) | n=int(input())
ans=0
ans=n//500*1000+ans
ans=n%500//5*5+ans
print(ans) | [["-", 12, 657, 31, 657, 31, 657, 31, 657, 12, 612], ["+", 12, 657, 31, 657, 31, 657, 31, 657, 12, 612]] | 5 | 35 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
ll k, r, z, n;
cin >> n;
k = n / 500;
r = n % 500;
z = r % 5;
cout << k * 1000 + z * 5;
} | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
ll k, r, z, n;
cin >> n;
k = n / 500;
r = n % 500;
// cout<<k<<" "<<r<<endl;
z = r / 5;
// cout<<z<<endl;
cout << k * 1000 + z * 5;
} | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 85]] | 1 | 70 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long x;
cin >> x;
long ans = 0;
ans = x / 500;
ans *= 1000;
x = x % 1000;
x = x / 5;
ans += x * 5;
cout << ans << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long x;
cin >> x;
long ans = 0;
ans = x / 500;
ans *= 1000;
x = x % 500;
x = x / 5;
ans += x * 5;
cout << ans << endl;
return 0;
}
| [["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 1 | 61 |
x = int(input())
big = x // 500
small = x % 500 // 5
grace = big + small
print(grace) | x = int(input())
big = x // 500
small = x % 500 // 5
grace = big*1000 + small*5
print(grace) | [["+", 0, 1, 0, 662, 12, 657, 31, 657, 17, 48], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 12, 612], ["+", 0, 1, 0, 662, 12, 657, 12, 657, 17, 48], ["+", 0, 1, 0, 662, 12, 657, 12, 657, 12, 612]] | 5 | 29 |
#include <bits/stdc++.h>
using namespace std;
#define int long long int
signed main() {
int x;
cin >> x;
cout << (x / 1000) * 2000 + ((x % 1000) / 5) * 5 << endl;
} | #include <bits/stdc++.h>
using namespace std;
#define int long long int
signed main() {
int x;
cin >> x;
cout << (x / 500) * 1000 + ((x % 500) / 5) * 5 << endl;
} | [["-", 12, 16, 31, 16, 31, 23, 0, 16, 12, 13], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 12, 13], ["-", 0, 16, 31, 16, 12, 16, 31, 16, 12, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 13], ["-", 31, 23, 0, 16, 31, 23, 0, 16, 12, 13], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 12, 13]] | 1 | 46 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long x;
cin >> x;
long u, s = x / 500, a = x % 500;
long aa = a / 5;
u = s * 5000 + aa * 5;
cout << u << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long x;
cin >> x;
long u, s = x / 500, a = x % 500;
long aa = a / 5;
u = s * 1000 + aa * 5;
cout << u << endl;
return 0;
}
| [["-", 0, 1, 0, 11, 12, 16, 31, 16, 12, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 13]] | 1 | 60 |
#include <stdio.h>
int main() {
long x, a, i, max = 0;
scanf("%ld", &x);
a = x / 500;
max = x - 500 * a;
max /= 5;
printf("%ld", a + max);
return 0;
}
| #include <stdio.h>
int main() {
long x, a, i, max = 0;
scanf("%ld", &x);
a = x / 500;
max = x - 500 * a;
max /= 5;
printf("%ld", a * 1000 + max * 5);
return 0;
}
| [["+", 0, 2, 3, 4, 0, 16, 31, 16, 17, 48], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 12, 13], ["+", 0, 2, 3, 4, 0, 16, 12, 16, 17, 48], ["+", 0, 2, 3, 4, 0, 16, 12, 16, 12, 13]] | 0 | 61 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define db double
const int inf = 1 << 30;
template <class T> void chmin(T &x, T y) {
if (x > y)
x = y;
}
template <class T> void chmax(T &x, T y) {
if (x < y)
x = y;
}
ll X;
int main() {
cin >> X;
ll ans = (X / 500LL) * 1000LL;
X %=... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define db double
const int inf = 1 << 30;
template <class T> void chmin(T &x, T y) {
if (x > y)
x = y;
}
template <class T> void chmax(T &x, T y) {
if (x < y)
x = y;
}
ll X;
int main() {
cin >> X;
ll ans = (X / 500LL) * 1000LL;
X %=... | [["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]] | 1 | 122 |
a = int("1000000000")
result = 0
result = int(a/500) * 1000
b = a % 500
result += int(b/5) * 5
print(result) | a = int(input())
result = 0
result = int(a/500) * 1000
b = a % 500
result += int(b/5) * 5
print(result) | [["-", 0, 662, 12, 652, 3, 4, 0, 557, 0, 654], ["-", 0, 662, 12, 652, 3, 4, 0, 557, 0, 6], ["-", 0, 662, 12, 652, 3, 4, 0, 557, 0, 655], ["+", 0, 662, 12, 652, 3, 4, 0, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 40 |
#include <bits/stdc++.h>
#define ll long long
#define dl double
#define pb push_back
#define F first
#define S second
#define endl "\n"
#define rep(i, a, b) for (i = a; i < b; i++)
#define all(v) v.begin(), v.end()
#define allr(v) v.rbegin(), v.rend()
#define C 31
#define mod 1000000007
#define CIN(V, s, n) ... | #include <bits/stdc++.h>
#define ll long long
#define dl double
#define pb push_back
#define F first
#define S second
#define endl "\n"
#define rep(i, a, b) for (i = a; i < b; i++)
#define all(v) v.begin(), v.end()
#define allr(v) v.rbegin(), v.rend()
#define C 31
#define mod 1000000007
#define CIN(V, s, n) ... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]] | 1 | 594 |
x=int(input())
import math
a=x//500
b=(x-a*500)//50
print(1000*a+5*b) | x=int(input())
import math
a=x//500
b=(x-a*500)//5
print(1000*a+5*b)
| [["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 36 |
n = int(input())
s=n//500
r=n%500
r=r//5
print(s*1000+r) | n = int(input())
s=n//500
r=n%500
r=r//5
print(s*1000+r*5) | [["+", 0, 652, 3, 4, 0, 657, 12, 657, 17, 48], ["+", 0, 652, 3, 4, 0, 657, 12, 657, 12, 612]] | 5 | 31 |
#include <bits/stdc++.h>
using namespace std;
#define all(x) (x).begin(), (x).end();
#define rall(x) (x).rbegin(), (x).rend();
#define fi first
#define se second
#define pb push_back
void deb() { cerr << endl; }
template <typename T, typename... t> void deb(T a, t... b) {
cerr << a << " ";
deb(b...);
}
template <... | #include <bits/stdc++.h>
using namespace std;
#define all(x) (x).begin(), (x).end();
#define rall(x) (x).rbegin(), (x).rend();
#define fi first
#define se second
#define pb push_back
void deb() { cerr << endl; }
template <typename T, typename... t> void deb(T a, t... b) {
cerr << a << " ";
deb(b...);
}
template <... | [["+", 12, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 31, 23, 0, 25], ["+", 51, 16, 12, 16, 31, 23, 0, 16, 17, 85], ["+", 51, 16, 12, 16, 31, 23, 0, 16, 12, 13]] | 1 | 179 |
X=int(input())
A=math.floor(X/500)
B=math.floor((X-A*500)/5)
print(A*1000+B*5) | X=int(input())
A=int(X/500)
B=int((X-A*500)/5)
print(A*1000+B*5) | [["-", 0, 1, 0, 662, 12, 652, 63, 319, 500, 22], ["-", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["-", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]] | 5 | 44 |
#include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main() {
ll n;
ll x = 0, y = 0, z = 0;
cin >> n;
x = n / 500;
n = n % 500;
y = n / 5;
n = n % 5;
cout << (1000 * x + 5 * y + n) << endl;
} | #include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main() {
ll n;
ll x = 0, y = 0, z = 0;
cin >> n;
x = n / 500;
n = n % 500;
y = n / 5;
n = n % 5;
cout << (1000 * x + 5 * y) << endl;
} | [["-", 0, 16, 31, 16, 12, 23, 0, 16, 17, 72], ["-", 0, 16, 31, 16, 12, 23, 0, 16, 12, 22]] | 1 | 75 |
#include <iostream>
using namespace std;
int main() {
int x, a = 0, b = 0, ans;
cin >> x;
while (x < 500) {
x -= 500;
a++;
}
while (x < 5) {
x -= 5;
b++;
}
ans = 1000 * a + 5 * b;
cout << ans;
} | #include <iostream>
using namespace std;
int main() {
long long x, a = 0, b = 0, ans;
cin >> x;
while (x >= 500) {
x -= 500;
a++;
}
while (x >= 5) {
x -= 5;
b++;
}
ans = 1000 * a + 5 * b;
cout << ans;
} | [["-", 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, 18], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20]] | 1 | 73 |
#include "bits/stdc++.h"
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
long long n;
long long one, two;
long long sum;
cin >> n;
one = n / 500;
two = (n % 1000);
if (two >= 500) {
two -= 500;
two /= 500;
} else {
two /= 5;
}
sum = one * 1000 +... | #include "bits/stdc++.h"
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
long long n;
long long one, two;
long long sum;
cin >> n;
one = n / 500;
two = (n % 1000);
if (two >= 500) {
two -= 500;
two /= 5;
} else {
two /= 5;
}
sum = one * 1000 + t... | [["-", 0, 57, 64, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 13]] | 1 | 93 |
#include <stdio.h>
int main() {
long cnt;
long ans = 0;
scanf("%lu", &cnt);
ans += cnt / 500 * 1000;
cnt %= 500;
ans += cnt;
printf("%lu", ans);
} | #include <stdio.h>
int main() {
long cnt;
long ans = 0;
scanf("%lu", &cnt);
ans += cnt / 500 * 1000;
cnt %= 500;
ans += cnt / 5 * 5;
printf("%lu", ans);
} | [["+", 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]] | 0 | 51 |
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <vector>
#define le... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <vector>
#define le... | [["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]] | 1 | 647 |
package main
import "fmt"
func main(){
var X, tmp1, tmp2 int
fmt.Scan(&X)
// Y := X
// num := 0
// for {
// Y = Y / 10;
// num++
// if Y <= 0 {break}
// }
// for i := 0 ; i < num ; i++ {
// ans[i] =
// }
if X < 500 {
tmp1 /= 5
fmt.Println(tmp1 * 5)
}else {
tmp1 = X / 500
tmp2 = (X - tmp1*5... | package main
import "fmt"
func main(){
var X, tmp1, tmp2 int
fmt.Scan(&X)
// Y := X
// num := 0
// for {
// Y = Y / 10;
// num++
// if Y <= 0 {break}
// }
// for i := 0 ; i < num ; i++ {
// ans[i] =
// }
if X < 500 {
tmp1 = X / 5
fmt.Println(tmp1 * 5)
}else {
tmp1 = X / 500
tmp2 = (X - tmp... | [["-", 8, 196, 0, 57, 64, 196, 0, 436, 17, 90], ["+", 8, 196, 0, 57, 64, 196, 0, 436, 17, 32], ["+", 64, 196, 0, 436, 12, 432, 0, 16, 31, 22], ["+", 64, 196, 0, 436, 12, 432, 0, 16, 17, 85]] | 7 | 94 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long X;
cin >> X;
long ans = 0;
ans += X / 500 * 1000;
ans += (X - X % 500 * 500) / 5 * 5;
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long X;
cin >> X;
long ans = 0;
ans += X / 500 * 1000;
ans += (X - X / 500 * 500) / 5 * 5;
cout << ans << endl;
}
| [["-", 31, 23, 0, 16, 12, 16, 31, 16, 17, 109], ["+", 31, 23, 0, 16, 12, 16, 31, 16, 17, 85]] | 1 | 54 |
#include <bits/stdc++.h>
using namespace std;
#define fastIO \
std::ios_base::sync_with_stdio(false); \
std::cin.tie(0); \
std::cout.tie(0)
#define rep(... | #include <bits/stdc++.h>
using namespace std;
#define fastIO \
std::ios_base::sync_with_stdio(false); \
std::cin.tie(0); \
std::cout.tie(0)
#define rep(... | [["-", 31, 23, 0, 16, 31, 23, 0, 16, 12, 13], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 12, 13]] | 1 | 231 |
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.TreeSet;
import java.util.stream.Collectors;
public class Main {
static voi... | import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.TreeSet;
import java.util.stream.Collectors;
public class Main {
static voi... | [["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 20], ["-", 8, 196, 0, 52, 15, 15, 0, 16, 17, 47], ["+", 8, 196, 0, 52, 15, 15, 0, 16, 17, 20]] | 3 | 1,376 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long int x, ans = 0, t;
cin >> x;
ans += (x / 500) * 500;
x = x % 500;
ans += (x / 5) * 5;
cout << ans;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long int x, ans = 0, t;
cin >> x;
ans += (x / 500) * 1000;
x = x % 500;
ans += (x / 5) * 5;
cout << ans;
}
| [["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 1 | 57 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll n;
scanf("%lld", &n);
ll a = n / 1000 * 2000;
ll b = (n % 1000) / 5 * 5;
printf("%lld\n", a + b);
return 0;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll n;
scanf("%lld", &n);
ll a = n / 500 * 1000;
ll b = (n % 500) / 5 * 5;
printf("%lld\n", a + b);
return 0;
} | [["-", 0, 43, 49, 50, 51, 16, 31, 16, 12, 13], ["+", 0, 43, 49, 50, 51, 16, 31, 16, 12, 13], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["-", 51, 16, 31, 16, 31, 23, 0, 16, 12, 13], ["+", 51, 16, 31, 16, 31, 23, 0, 16, 12, 13]] | 1 | 67 |
x=int(input())
a=x//500
b=x%500
s=(1000*a)+(b)
print(s)
|
x=int(input())
a=x//500
b=x%500-(x%5)
s=(1000*a)+(b)
print(s)
| [["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 33], ["+", 0, 1, 0, 662, 12, 657, 12, 23, 0, 24], ["+", 0, 662, 12, 657, 12, 23, 0, 657, 31, 22], ["+", 0, 662, 12, 657, 12, 23, 0, 657, 17, 109], ["+", 0, 662, 12, 657, 12, 23, 0, 657, 12, 612], ["+", 0, 1, 0, 662, 12, 657, 12, 23, 0, 25]] | 5 | 33 |
x = input()
a = int(int(x)/5)
b = int(a%200)
a = int(a/100)
print(1000*a+5*b) | x = input()
a = int(int(x)/5)
b = int(a%100)
a = int(a/100)
print(1000*a+5*b) | [["-", 0, 662, 12, 652, 3, 4, 0, 657, 12, 612], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 42 |
temp0=int(input())
n500=int(temp0/500)
temp1=temp0-n500*500
n5=int(temp1/5)
n500*1000+n5*5 | temp0=int(input())
n500=int(temp0/500)
temp1=temp0-n500*500
n5=int(temp1/5)
print(n500*1000+n5*5) | [["+", 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 | 38 |
#include <bits/stdc++.h>
using namespace std;
void READ() {
#ifndef ONLINE_JUDGE
freopen("IO/Input.in", "r", stdin);
#endif
}
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
// READ();
long long x;
cin >> x;
long long m = x % 500;
long long a = x / 500;
m = m / 5;
cout << m + a << e... | #include <bits/stdc++.h>
using namespace std;
void READ() {
#ifndef ONLINE_JUDGE
freopen("IO/Input.in", "r", stdin);
#endif
}
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
// READ();
long long x;
cin >> x;
long long m = x % 500;
long long a = x / 500;
m = m / 5;
cout << m * 5 + a ... | [["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 48], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 13], ["+", 0, 16, 31, 16, 12, 16, 12, 16, 17, 48], ["+", 0, 16, 31, 16, 12, 16, 12, 16, 12, 13]] | 1 | 90 |
x=int(input())
a=x//500
b=(x-a)//5
print(a*1000+b*5) | x=int(input())
a=x//500
b=(x-a*500)//5
print(a*1000+b*5)
| [["+", 12, 657, 31, 23, 0, 657, 12, 657, 17, 48], ["+", 12, 657, 31, 23, 0, 657, 12, 657, 12, 612]] | 5 | 32 |
N = int(input())
if N >= 500:
t = N//500
a = N%500
if a >= 5:
f = a//5
print(1000*t+f*5)
else:
print(1000*t)
elif N >= 5:
f = a//5
print(1000*t+f*5)
else:
print("0") | N = int(input())
if N >= 500:
t = N//500
a = N%500
if a >= 5:
f = a//5
print(1000*t+f*5)
else:
print(1000*t)
elif N >= 5:
f = N//5
print(f*5)
else:
print("0") | [["-", 64, 196, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 64, 196, 0, 1, 0, 662, 12, 657, 31, 22], ["-", 0, 652, 3, 4, 0, 657, 31, 657, 31, 612], ["-", 0, 652, 3, 4, 0, 657, 31, 657, 17, 48], ["-", 0, 652, 3, 4, 0, 657, 31, 657, 12, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72]] | 5 | 79 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
long long int x, y;
cin >> x;
y = x % 500;
cout << (100 * (x / 500)) + (5 * (y / 5)) << "\n";
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
long long int x, y;
cin >> x;
y = x % 500;
cout << (1000 * (x / 500)) + (5 * (y / 5)) << "\n";
return 0;
} | [["-", 31, 16, 12, 16, 31, 23, 0, 16, 31, 13], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 31, 13]] | 1 | 61 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
long long n;
cin >> n;
long long happiness = 0;
happiness = 1000 * (n / 500);
n = n % 1000;
happiness += 5 * (n / 5);
cout << happiness << "\n";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
long long n;
cin >> n;
long long happiness = 0;
happiness = 1000 * (n / 500);
n = n % 500;
happiness += 5 * (n / 5);
cout << happiness << "\n";
return 0;
} | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 1 | 84 |
/*Author: Qaseem Hasan alias Mikepayne14(Codeforces,SPOJ)
qaseem_hasan_ (HackerEarth,Codechef,HackerRank)
*/
//---------------------------------------------------------
//#pragma GCC optimize "trapv"
#include <bits/stdc++.h>
using namespace std;
//------------------------------------------... | /*Author: Qaseem Hasan alias Mikepayne14(Codeforces,SPOJ)
qaseem_hasan_ (HackerEarth,Codechef,HackerRank)
*/
//---------------------------------------------------------
//#pragma GCC optimize "trapv"
#include <bits/stdc++.h>
using namespace std;
//-------------------------------------------... | [["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]] | 1 | 410 |
#include <bits/stdc++.h>
#define int long long
using namespace std;
int read() {
int f = 1, re = 0;
char ch;
for (ch = getchar(); !isdigit(ch) && ch != '-'; ch = getchar())
;
if (ch == '-') {
f = -1, ch = getchar();
}
for (; isdigit(ch); ch = getchar())
re = (re << 3) + (re << 1) + ch - '0';
r... | #include <bits/stdc++.h>
#define int long long
using namespace std;
int read() {
int f = 1, re = 0;
char ch;
for (ch = getchar(); !isdigit(ch) && ch != '-'; ch = getchar())
;
if (ch == '-') {
f = -1, ch = getchar();
}
for (; isdigit(ch); ch = getchar())
re = (re << 3) + (re << 1) + ch - '0';
r... | [["-", 0, 57, 64, 1, 0, 11, 12, 16, 17, 109], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 17, 85]] | 1 | 181 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <deque>
#include <iostream>
#include <list>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define ll long long
#define INF 0x3f3f3f3f
#define SIS std::ios::sync_with_stdio(false)
using namespace st... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <deque>
#include <iostream>
#include <list>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define ll long long
#define INF 0x3f3f3f3f
#define SIS std::ios::sync_with_stdio(false)
using namespace st... | [["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 17, 109], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 85], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25]] | 1 | 164 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, c = 0;
cin >> n;
if (n > 500) {
c = n / 500;
n %= 500;
}
cout << c * 1000 + (n / 5) * 5 << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long n, c = 0;
cin >> n;
if (n >= 500) {
c = n / 500;
n %= 500;
}
cout << c * 1000 + (n / 5) * 5 << 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, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 60 |
#pragma comment(linker, "/stack:247474112")
#pragma GCC optimize("Ofast")
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <tuple>
#include <unordered_map>
#include <unordered_set>
#include <vector>... | #pragma comment(linker, "/stack:247474112")
#pragma GCC optimize("Ofast")
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <tuple>
#include <unordered_map>
#include <unordered_set>
#include <vector>... | [["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]] | 1 | 122 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long x;
cin >> x;
long long total = 0;
total = 1000 * (x / 500);
x %= 1000;
total += 5 * (x / 5);
cout << total << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long x;
cin >> x;
long long total = 0;
total = 1000 * (x / 500);
x %= 500;
total += 5 * (x / 5);
cout << total << endl;
}
| [["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]] | 1 | 56 |
#include <iostream>
using namespace std;
typedef long long ll;
int main() {
ll x, sum = 0;
cin >> x;
sum += x / 500 * 1000;
x %= 1000;
sum += x / 5 * 5;
cout << sum << endl;
}
| #include <iostream>
using namespace std;
typedef long long ll;
int main() {
ll x, sum = 0;
cin >> x;
sum += x / 500 * 1000;
x %= 500;
sum += x / 5 * 5;
cout << sum << endl;
}
| [["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]] | 1 | 54 |
n = int(input())
pl = 0
q, mod = divmod(10, 500)
pl += q * 1000
q, mod = divmod(10, 5)
pl += q * 5
print(pl)
| n = int(input())
pl = 0
q, mod = divmod(n, 500)
pl += q * 1000
q, mod = divmod(mod, 5)
pl += q * 5
print(pl) | [["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 612], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]] | 5 | 45 |
#include <iostream>
using namespace std;
typedef long long ll;
int main() {
ll a;
ll h;
cin >> a;
h = a / 500 * 1000 + a % 500;
cout << h;
return 0;
} | #include <iostream>
using namespace std;
typedef long long ll;
int main() {
ll a;
ll h;
cin >> a;
h = a / 500 * 1000 + a % 500 / 5 * 5;
cout << h;
return 0;
} | [["+", 0, 11, 12, 16, 12, 16, 31, 16, 17, 85], ["+", 0, 11, 12, 16, 12, 16, 31, 16, 12, 13], ["+", 0, 1, 0, 11, 12, 16, 12, 16, 17, 48], ["+", 0, 1, 0, 11, 12, 16, 12, 16, 12, 13]] | 1 | 46 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.