buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
n=int(input())
print(1000*(n//500)+5*((n-(n//500)*500)%5)) | n=int(input())
print(1000*(n//500)+5*((n-(n//500)*500)//5)) | [["-", 0, 657, 12, 657, 12, 23, 0, 657, 17, 109], ["+", 0, 657, 12, 657, 12, 23, 0, 657, 17, 676]] | 5 | 36 |
x = int(input())
q_1 = x//500
r_1 = x%500
r_2 = r_1//5
print(r_1*1000+r_2*5) | x = int(input())
q_1 = x//500
r_1 = x%500
q_2 = r_1//5
print(q_1*1000+q_2*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, 31, 657, 31, 22], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 31, 22], ["-", 0, 652, 3, 4, 0, 657, 12, 657, 31, 22], ["+", 0, 652, 3, 4, 0, 657, 12, 657, 31, 22]] | 5 | 33 |
x = int(input())
print(x//500*1000+(x%1000)//5*5) | x = int(input())
print(x//500*1000+(x%500)//5*5) | [["-", 12, 657, 31, 657, 31, 23, 0, 657, 12, 612], ["+", 12, 657, 31, 657, 31, 23, 0, 657, 12, 612]] | 5 | 26 |
package main
import "fmt"
func main() {
var num int
fmt.Scan(&num)
var high_point = num / 500
var low_poinnt = (num%1000) / 5
fmt.Println(1000 * high_point + 5 * low_poinnt)
} | package main
import "fmt"
func main() {
var num int
fmt.Scan(&num)
var high_point = num / 500
var low_poinnt = (num%500) / 5
fmt.Println(1000 * high_point + 5 * low_poinnt)
} | [["-", 51, 432, 0, 16, 31, 23, 0, 16, 12, 433], ["+", 51, 432, 0, 16, 31, 23, 0, 16, 12, 433]] | 7 | 57 |
X = int(input())
ans = (X // 500) * 1000
X = X - 500 * ans
ans += (X // 5) * 5
print(ans) | X = int(input())
ans = (X // 500) * 1000
X = X - 500 * (X // 500)
ans += (X // 5) * 5
print(ans) | [["-", 0, 1, 0, 662, 12, 657, 12, 657, 12, 22], ["+", 0, 662, 12, 657, 12, 657, 12, 23, 0, 24], ["+", 12, 657, 12, 657, 12, 23, 0, 657, 31, 22], ["+", 12, 657, 12, 657, 12, 23, 0, 657, 17, 676], ["+", 12, 657, 12, 657, 12, 23, 0, 657, 12, 612], ["+", 0, 662, 12, 657, 12, 657, 12, 23, 0, 25]] | 5 | 37 |
x = int(input())
a = x//500
b = (x%500)//5
print(a,b)
print(a*1000+b*5) | x = int(input())
a = x//500
b = (x%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 | 38 |
#include <algorithm>
#include <cassert>
#include <cmath>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <tuple>
#include <vector>
//#include<bits/stdc++.h>
using ll = long long;
using namespace std;
const ll INF = 10000... | #include <algorithm>
#include <cassert>
#include <cmath>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <tuple>
#include <vector>
//#include<bits/stdc++.h>
using ll = long long;
using namespace std;
const ll INF = 10000... | [["+", 0, 52, 8, 9, 0, 57, 75, 76, 0, 95]] | 1 | 139 |
x = int(input())
a = x//500
x %= 500
b = x//5
print(a*1000 + b) | x = int(input())
a = x//500
x %= 500
b = x//5
print(a*1000 + b*5) | [["+", 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())
print(x//500*500*2+x%500) | x = int(input())
print(x//500*500*2+x%500//5*5) | [["+", 3, 4, 0, 657, 12, 657, 31, 657, 17, 676], ["+", 3, 4, 0, 657, 12, 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 | 22 |
s = gets.to_i
count_500 = x / 500
rest_500 = x % 500
count_5 = rest_500 / 5
happy = (count_500 * 1000) + (count_5 * 5)
puts happy | s = gets.to_i
count_500 = s / 500
rest_500 = s % 500
count_5 = rest_500 / 5
happy = (count_500 * 1000) + (count_5 * 5)
puts happy
| [["-", 36, 36, 0, 493, 0, 662, 12, 738, 31, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 738, 31, 22]] | 4 | 35 |
#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
using namespace std;
typedef long long ll;
typedef pair<ll, ll> PLL;
typedef vector<int> VI;
typedef vector<char> VC;
typedef vector<double> VD;
typedef vector<string> VS;
typedef vector<ll> VLL;
typedef vector<PLL> VP;
const static int INF = 1000000000;
const stat... | #include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
using namespace std;
typedef long long ll;
typedef pair<ll, ll> PLL;
typedef vector<int> VI;
typedef vector<char> VC;
typedef vector<double> VD;
typedef vector<string> VS;
typedef vector<ll> VLL;
typedef vector<PLL> VP;
const static int INF = 1000000000;
const stat... | [["-", 0, 11, 12, 16, 12, 23, 0, 16, 17, 109], ["+", 0, 11, 12, 16, 12, 23, 0, 16, 17, 85]] | 1 | 561 |
X = int(input())
ans = 0
ans = (X // 500) * 1000
X = X % 500
ans += X // 5
print(ans) | X = int(input())
ans = 0
ans = (X // 500) * 1000
X = X % 500
ans += (X // 5) * 5
print(ans) | [["+", 0, 1, 0, 677, 12, 657, 31, 23, 0, 24], ["+", 0, 677, 12, 657, 31, 23, 0, 657, 12, 612], ["+", 0, 1, 0, 677, 12, 657, 31, 23, 0, 25], ["+", 0, 656, 0, 1, 0, 677, 12, 657, 17, 48]] | 5 | 34 |
x = int(input())
print(1000*(x//500) + 5*((x%500)%5))
| x = int(input())
print(1000*(x//500) + 5*((x%500)//5))
| [["-", 0, 657, 12, 657, 12, 23, 0, 657, 17, 109], ["+", 0, 657, 12, 657, 12, 23, 0, 657, 17, 676]] | 5 | 30 |
X = int(input())
Y = X%500
Z = Y%5
print((X//500)*1000+5*Z) | X = int(input())
Y = X%500
Z = Y//5
print((X//500)*1000+5*Z) | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 109], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676]] | 5 | 32 |
#include <bits/stdc++.h>
using namespace std;
#define IOS \
ios_base::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0);
#define int lon... | #include <bits/stdc++.h>
using namespace std;
#define IOS \
ios_base::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0);
#define int lon... | [["-", 31, 23, 0, 16, 31, 23, 0, 16, 12, 13], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 12, 13]] | 1 | 145 |
#include <stdio.h>
int main() {
long int X;
scanf("%ld", &X);
long int happy;
happy = 1000 * X / 500;
X = X % 500;
happy = happy + 5 * (X / 5);
printf("%ld", happy);
return 0;
} | #include <stdio.h>
int main() {
long int X;
scanf("%ld", &X);
long int happy;
happy = 1000 * (X / 500);
X = X % 500;
happy = happy + 5 * (X / 5);
printf("%ld", happy);
return 0;
}
| [["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 24], ["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 25]] | 0 | 64 |
#include <bits/stdc++.h>
#define ll long long int
#define FASTIO std::ios::sync_with_stdio(false);
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define inf 1e18
#define g(x) cout << x << " " << endl;
#define gg(x, y) cout << x << " & " << y << " " << endl
#define jam(t) cout << "Case #" <<... | #include <bits/stdc++.h>
#define ll long long int
#define FASTIO std::ios::sync_with_stdio(false);
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define inf 1e18
#define g(x) cout << x << " " << endl;
#define gg(x, y) cout << x << " & " << y << " " << endl
#define jam(t) cout << "Case #" <<... | [["+", 12, 16, 12, 23, 0, 16, 31, 23, 0, 24], ["+", 12, 16, 12, 23, 0, 16, 31, 23, 0, 25], ["+", 0, 11, 12, 16, 12, 23, 0, 16, 17, 85], ["+", 0, 11, 12, 16, 12, 23, 0, 16, 12, 13]] | 1 | 276 |
import java.util.*;
class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
long X = sc.nextLong();
long n500 = X / 500;
long n5 = (X % 500) % 5;
System.out.println(n500 * 1000 + n5 * 5);
}
} | import java.util.*;
class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
long X = sc.nextLong();
long n500 = X / 500;
long n5 = (X % 500) / 5;
System.out.println(n500 * 1000 + n5 * 5);
}
} | [["-", 8, 196, 0, 503, 49, 200, 51, 16, 17, 109], ["+", 8, 196, 0, 503, 49, 200, 51, 16, 17, 85]] | 3 | 77 |
x=int(input())
h=(x//500)*1000
x%=500
h+=x//5
print(h) | x=int(input())
h=(x//500)*1000
x%=500
h+=(x//5)*5
print(h)
| [["+", 0, 1, 0, 677, 12, 657, 31, 23, 0, 24], ["+", 0, 677, 12, 657, 31, 23, 0, 657, 12, 612], ["+", 0, 1, 0, 677, 12, 657, 31, 23, 0, 25], ["+", 0, 656, 0, 1, 0, 677, 12, 657, 17, 48]] | 5 | 29 |
X = input()
coin500, X = divmod(X, 500)
coin5, X = divmod(X, 5)
print(1000 * coin500 + 5 * coin5) | X = int(input())
coin500, X = divmod(X, 500)
coin5, X = divmod(X, 5)
print(1000 * coin500 + 5 * coin5) | [["+", 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 | 35 |
X = int(input())
A, B = divmod(X, 500)
C, D = divmod(X, 5)
print((A * 1000) + (C * 5))
| X = int(input())
A, X = divmod(X, 500)
C, X = divmod(X, 5)
print((A * 1000) + (C * 5)) | [["-", 0, 656, 0, 1, 0, 662, 31, 684, 0, 22], ["+", 0, 656, 0, 1, 0, 662, 31, 684, 0, 22]] | 5 | 42 |
# -*- coding: <encoding name> -*-
x = int(input())
print(1000 * (x // 500) + 5 * (x % 500)) | # -*- coding: <encoding name> -*-
x = int(input())
print(1000 * (x // 500) + 5 * (x % 500 // 5)) | [["+", 0, 657, 12, 657, 12, 23, 0, 657, 17, 676], ["+", 0, 657, 12, 657, 12, 23, 0, 657, 12, 612]] | 5 | 27 |
sum = 0
gets.to_i.divmod(500).tap{ |x| sum += x[0]*1000 }[1].divmod(5).tap{ |x| sum += x[0]*5 }
| sum = 0
(gets.to_i).divmod(500).tap{ |x| sum += x[0]*1000 }[1].divmod(5).tap{ |x| sum += x[0]*5 }
puts sum
| [["+", 486, 742, 500, 652, 486, 652, 486, 739, 0, 24], ["+", 486, 742, 500, 652, 486, 652, 486, 739, 0, 25], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 652, 3, 4, 0, 22]] | 4 | 49 |
# -*- coding: utf-8 -*-
X = int(input())
a = int(X/500)
b = (X-500*a)%5
print("{}".format(1000*a+5*b))
| # -*- coding: utf-8 -*-
X = int(input())
a = int(X/500)
b = int((X-500*a)/5)
print("{}".format(1000*a+5*b))
| [["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 109], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 17, 85], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 45 |
N = int(input())
print(1000*int(N/500)+5*(N%500)) | N = int(input())
print(1000*int(N/500)+5*int((N%500)/5)) | [["+", 3, 4, 0, 657, 12, 657, 12, 652, 63, 22], ["+", 0, 657, 12, 657, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 657, 31, 23, 0, 25], ["+", 12, 657, 12, 652, 3, 4, 0, 657, 17, 85], ["+", 12, 657, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 27 |
X = int(input())
a = X // 500
Y = X - 500 * a
b = Y // 5
print(a)
print(a * 1000 + b * 5)
| X = int(input())
a = X // 500
Y = X - 500 * a
b = Y // 5
print(a * 1000 + b * 5)
| [["-", 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 | 39 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define F(i, a, n) for (int i = a; i < n; i++)
#define INF 1000000007
using namespace std;
int main() {
long x;
cin >> x;
long a = x / 500;
long b = (x - a) / 5;
cout << a * 1000 + b * 5 << endl;
return 0;
} | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define F(i, a, n) for (int i = a; i < n; i++)
#define INF 1000000007
using namespace std;
int main() {
long x;
cin >> x;
long a = x / 500;
long b = (x - a * 500) / 5;
cout << a * 1000 + b * 5 << endl;
return 0;
} | [["+", 51, 16, 31, 23, 0, 16, 12, 16, 17, 48], ["+", 51, 16, 31, 23, 0, 16, 12, 16, 12, 13]] | 1 | 73 |
x = int(input())
print((x/500)*1000 + ((x%500)/5)*5)
| x = int(input())
print(int(x/500)*1000 + int((x%500)/5)*5)
| [["+", 3, 4, 0, 657, 31, 657, 31, 652, 63, 22], ["+", 3, 4, 0, 657, 12, 657, 31, 652, 63, 22]] | 5 | 30 |
s = int(input())
result = (s/500) * 1000 + ((s%500)/5) * 5
print(int(result)) | s = int(input())
result = int(s/500) * 1000 + int((s%500)/5)*5
print(int(result)) | [["+", 0, 662, 12, 657, 31, 657, 31, 652, 63, 22], ["+", 0, 662, 12, 657, 12, 657, 31, 652, 63, 22]] | 5 | 36 |
X = int(input())
print((X / 500) * 1000 + ((X % 500) / 5) * 5)
| X = int(input())
print(int(X / 500) * 1000 + int(int(X % 500) / 5) * 5)
| [["+", 3, 4, 0, 657, 31, 657, 31, 652, 63, 22], ["+", 3, 4, 0, 657, 12, 657, 31, 652, 63, 22], ["+", 31, 652, 3, 4, 0, 657, 31, 652, 63, 22]] | 5 | 30 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long int x;
cin >> x;
long long int ans = 0;
ans += ((x / 500) * 1000);
x = x % 1000;
ans += ((x / 5) * 5);
cout << ans;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long int x;
cin >> x;
long long int ans = 0;
ans += ((x / 500) * 1000);
x = x % 500;
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 | 65 |
a=input()
a=int(a)
result=0
while a>500:
a=a-500
result=result+1000
while a>5:
a=a-5
result=result+5
print(result)
| a=input()
a=int(a)
result=0
while a>=500:
a=a-500
result=result+1000
while a>=5:
a=a-5
result=result+5
print(result) | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 20]] | 5 | 48 |
X=int(input())
A=X//500
B=(X%500)//5
print(A*100+B*5) | X=int(input())
A=X//500
B=(X%500)//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 | 32 |
x=int(input())
a=int(x/500)
y=x-(500*a)
b=int(y/5)
print(a*1000+b*1)
| x=int(input())
a=int(x/500)
y=x-(500*a)
b=int(y/5)
print(a*1000+b*5)
| [["-", 0, 652, 3, 4, 0, 657, 12, 657, 12, 612], ["+", 0, 652, 3, 4, 0, 657, 12, 657, 12, 612]] | 5 | 43 |
#include <bits/stdc++.h>
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
#define endl "\n"
#define PI 3.14... | #include <bits/stdc++.h>
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
#define endl "\n"
#define PI 3.14... | [["-", 31, 16, 12, 16, 31, 16, 31, 23, 0, 24], ["-", 31, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["-", 31, 23, 0, 16, 31, 23, 0, 16, 12, 13], ["-", 31, 16, 31, 23, 0, 16, 31, 23, 0, 25], ["+", 12, 16, 31, 16, 31, 16, 31, 16, 12, 13], ["-", 31, 16, 12, 16, 31, 16, 31, 23, 0, 25], ["-", 12, 16, 31, 23, 0, 16, 12, 16, 12, 13],... | 1 | 79 |
x = int(input())
happy = 0
happy += 1000*(x//500)
happy += 5*((x%500)%5)
print(happy) | x = int(input())
happy = 0
happy += 1000*(x//500)
happy += 5*((x%500)//5)
print(happy) | [["-", 0, 677, 12, 657, 12, 23, 0, 657, 17, 109], ["+", 0, 677, 12, 657, 12, 23, 0, 657, 17, 676]] | 5 | 37 |
x = int(input())
print(1000*(x//500) + 5*((x%5)%100)) | x = int(input())
print(1000*(x//500) + 5*((x//5)%100)) | [["-", 12, 23, 0, 657, 31, 23, 0, 657, 17, 109], ["+", 12, 23, 0, 657, 31, 23, 0, 657, 17, 676]] | 5 | 30 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long N;
cin >> N;
long count1 = 0;
long count2 = 0;
while (N > 500) {
N = N - 500;
count1++;
}
while (N > 5) {
N = N - 5;
count2++;
}
cout << 1000 * count1 + 5 * count2 << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long N;
cin >> N;
long count1 = 0;
long count2 = 0;
while (N >= 500) {
N = N - 500;
count1++;
}
while (N >= 5) {
N = N - 5;
count2++;
}
cout << 1000 * count1 + 5 * count2 << endl;
}
| [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20]] | 1 | 75 |
#include <bits/stdc++.h>
#define endl '\n';
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#pragma GCC optimize("Ofast")
constexpr ll INF = 1e18;
constexpr int inf = 1e9;
c... | #include <bits/stdc++.h>
#define endl '\n';
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#pragma GCC optimize("Ofast")
constexpr ll INF = 1e18;
constexpr int inf = 1e9;
c... | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 1 | 249 |
#include <bits/stdc++.h>
#define rep(i, n) for (long long i = 0; i < (n); ++i)
const int INF = 2147483647; // int max
const long long int MOD = 1000000007;
using namespace std;
using ll = long long;
using P = pair<int, int>;
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
... | #include <bits/stdc++.h>
#define rep(i, n) for (long long i = 0; i < (n); ++i)
const int INF = 2147483647; // int max
const long long int MOD = 1000000007;
using namespace std;
using ll = long long;
using P = pair<int, int>;
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
... | [["-", 12, 16, 12, 16, 31, 23, 0, 16, 17, 109], ["+", 12, 16, 12, 16, 31, 23, 0, 16, 17, 85]] | 1 | 163 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <utility>
#include <vector>
using namespace std;
typedef long long ll;
typedef vector<ll> vl;
typedef vector<vector<ll>> vvl;
typ... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <utility>
#include <vector>
using namespace std;
typedef long long ll;
typedef vector<ll> vl;
typedef vector<vector<ll>> vvl;
typ... | [["+", 12, 16, 12, 23, 0, 16, 31, 23, 0, 24], ["+", 12, 16, 12, 23, 0, 16, 31, 23, 0, 25], ["+", 0, 16, 12, 16, 12, 23, 0, 16, 17, 85], ["+", 0, 16, 12, 16, 12, 23, 0, 16, 12, 13]] | 1 | 175 |
import sys
sys.setrecursionlimit(10 ** 6)
# input = sys.stdin.readline ####
int1 = lambda x: int(x) - 1
def II(): return int(input())
def MI(): return map(int, input().split())
def MI1(): return map(int1, input().split())
def LI(): return list(map(int, input().split()))
def LI1(): return list(map(int1, input().spl... | import sys
sys.setrecursionlimit(10 ** 6)
# input = sys.stdin.readline ####
int1 = lambda x: int(x) - 1
def II(): return int(input())
def MI(): return map(int, input().split())
def MI1(): return map(int1, input().split())
def LI(): return list(map(int, input().split()))
def LI1(): return list(map(int1, input().spl... | [["-", 8, 196, 0, 1, 0, 662, 12, 657, 17, 33], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 109], ["-", 0, 1, 0, 662, 12, 657, 12, 657, 17, 48], ["-", 0, 1, 0, 662, 12, 657, 12, 657, 12, 22], ["-", 8, 196, 0, 1, 0, 662, 12, 657, 17, 109], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 676]] | 5 | 187 |
X = input()
a=X//500
b=(X-500*a)//5
print(1000*a+5*b) | X = int(input())
a=X//500
b=(X-500*a)//5
print(1000*a+5*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 | 31 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <limits>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef int itn;
const... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <limits>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef int itn;
const... | [["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 1 | 506 |
x = int(input())
h = (x//1000)*2000 + ((x%1000)//5)*5
print(h)
| x = int(input())
h = (x//500)*1000 + ((x%500)//5)*5
print(h)
| [["-", 12, 657, 31, 657, 31, 23, 0, 657, 12, 612], ["+", 12, 657, 31, 657, 31, 23, 0, 657, 12, 612], ["-", 0, 1, 0, 662, 12, 657, 31, 657, 12, 612], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 12, 612], ["-", 31, 23, 0, 657, 31, 23, 0, 657, 12, 612], ["+", 31, 23, 0, 657, 31, 23, 0, 657, 12, 612]] | 5 | 33 |
#include <bits/stdc++.h>
#include <math.h>
using namespace std;
int main() {
long x;
cin >> x;
cout << ((x % 500) / 5) * 5 + x / 5 * 1000 << endl;
}
| #include <bits/stdc++.h>
#include <math.h>
using namespace std;
int main() {
long x;
cin >> x;
cout << ((x % 500) / 5) * 5 + x / 500 * 1000 << endl;
}
| [["-", 31, 16, 12, 16, 12, 16, 31, 16, 12, 13], ["+", 31, 16, 12, 16, 12, 16, 31, 16, 12, 13]] | 1 | 43 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int64_t x, answer;
cin >> x;
answer = (x / 500) * 1000 + ((x % 500) / 5) * 5;
cout << x << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int64_t x, answer;
cin >> x;
answer = (x / 500) * 1000 + ((x % 500) / 5) * 5;
cout << answer << endl;
}
| [["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]] | 1 | 49 |
X = int(input())
a = int(X/500)
b = (X - 500*a)/5
H = 1000 * a + 5 * b
print(int(H)) | X = int(input())
a = int(X/500)
b = int((X - 500*a)/5)
H = 1000 * a + 5 * b
print(H) | [["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 657, 31, 23, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 43 |
x = int(input())
print(x//500*100 + x%500//5*5) | x = int(input())
print(x//500*1000 + x%500//5 *5) | [["-", 0, 652, 3, 4, 0, 657, 31, 657, 12, 612], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 12, 612]] | 5 | 24 |
X = input()
a = X // 500
b = X % 500
c = b // 5
print(a * 1000 + c * 5) | X = int(input())
a = X // 500
b = X % 500
c = b // 5
print(a * 1000 + c * 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 | 30 |
package main
import "fmt"
func main() {
var X int
fmt.Scan(&X)
ans := (X%500)*1000 + (X-500*(X%500))%5*5
fmt.Println(ans)
} | package main
import "fmt"
func main() {
var X int
fmt.Scan(&X)
ans := (X/500)*1000 + (X-500*(X/500))/5*5
fmt.Println(ans)
} | [["-", 0, 16, 31, 16, 31, 23, 0, 16, 17, 109], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 17, 85], ["-", 0, 16, 12, 16, 12, 23, 0, 16, 17, 109], ["+", 0, 16, 12, 16, 12, 23, 0, 16, 17, 85], ["-", 12, 432, 0, 16, 12, 16, 31, 16, 17, 109], ["+", 12, 432, 0, 16, 12, 16, 31, 16, 17, 85]] | 7 | 59 |
s = int(input())
print((s//500)*1000 + ((s%500)%5)*5 ) | s = int(input())
print((s//500)*1000 + ((s%500)//5)*5 ) | [["-", 0, 657, 12, 657, 31, 23, 0, 657, 17, 109], ["+", 0, 657, 12, 657, 31, 23, 0, 657, 17, 676]] | 5 | 30 |
X=int(input())
g=X//500
h=X-g
i=h//5
j=1000*g+5*i
input(j) | X=int(input())
g=X//500
h=X-500*g
i=h//5
j=1000*g+5*i
print(j) | [["+", 0, 1, 0, 662, 12, 657, 12, 657, 31, 612], ["+", 0, 1, 0, 662, 12, 657, 12, 657, 17, 48], ["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22]] | 5 | 36 |
# -*- coding: utf-8 -*-
#############
# Libraries #
#############
import sys
input = sys.stdin.readline
import math
from collections import deque
from math import gcd
from functools import lru_cache
#############
# Constants #
#############
MOD = 10**9+7
INF = float('inf')
#############
# Functions #
###########... | # -*- coding: utf-8 -*-
#############
# Libraries #
#############
import sys
input = sys.stdin.readline
import math
from collections import deque
from math import gcd
from functools import lru_cache
#############
# Constants #
#############
MOD = 10**9+7
INF = float('inf')
#############
# Functions #
###########... | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 626 |
#2020-03-28
#ABC
S = int(input())
count = int(S / 500)
sum = 1000 * count
print(sum)
S = S - 500*count
sum = sum + 5*(int(S/5))
print(sum) | #2020-03-28
#ABC
S = int(input())
count = int(S / 500)
sum = 1000 * count
S = S - 500*count
sum = sum + 5*(int(S/5))
print(sum) | [["-", 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 | 52 |
X=int(input())
A=0
G=0
N=0
M=0
Z=0
N=int(X/500)
M=int(X%500)
Z=int(M/5)
N=N+Z
for i in range(0,N):
if X-500:
X=X-500
G=G+1000
elif X-5:
X=X-5
G=G+5
else:
break
print(G) | X=int(input())
A=0
G=0
N=0
M=0
Z=0
N=int(X/500)
M=int(X%500)
Z=int(M/5)
N=N+Z
for i in range(0,N):
if X>=500:
X=X-500
G=G+1000
elif X>=5:
X=X-5
G=G+5
else:
break
print(G)
| [["-", 0, 7, 8, 196, 0, 57, 15, 657, 17, 33], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20], ["-", 8, 196, 0, 57, 75, 665, 15, 657, 17, 33], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 20]] | 5 | 99 |
n = int(input())
a = n // 500
b = (n-n%500) // 5
print(1000 * a + 5 * b) | n = int(input())
a = n // 500
b = (n-500*a) // 5
print(1000 * a + 5 * b) | [["-", 12, 657, 31, 23, 0, 657, 12, 657, 31, 22], ["-", 12, 657, 31, 23, 0, 657, 12, 657, 17, 109], ["+", 12, 657, 31, 23, 0, 657, 12, 657, 17, 48], ["+", 12, 657, 31, 23, 0, 657, 12, 657, 12, 22]] | 5 | 34 |
a=int(input())
b=a%500
print(a//500+b//5) | a=int(input())
b=a%500
print(a//500*1000+b//5*5) | [["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 48], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 12, 612], ["+", 3, 4, 0, 657, 12, 657, 31, 657, 12, 612], ["+", 0, 652, 3, 4, 0, 657, 12, 657, 17, 48]] | 5 | 23 |
X = int(input())
res500 = X // 500
X %= 500
res5 = X // 5
print(res500 + res5) | X = int(input())
res500 = X // 500
X %= 500
res5 = X // 5
print(res500 * 1000 + res5 * 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 | 27 |
#include <stdio.h>
int main(void) {
long long int x;
scanf("lld", &x);
printf("%lld", (x / 500) * 1000 + ((x - (x / 500) * 500) / 5) * 5);
}
| #include <stdio.h>
int main(void) {
long long int x;
scanf("%lld", &x);
printf("%lld", (x / 500) * 1000 + ((x - (x / 500) * 500) / 5) * 5);
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13]] | 0 | 57 |
#pragma comment(linker, "/stack:20000000")
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx")
#include <bits/stdc++.h>
//#include <ext/pb_ds/assoc_container.hpp>
#define se second
#define fi first
#define ss size()
#define pb push_back
#define mp make_pair
#define ins insert
#... | #pragma comment(linker, "/stack:20000000")
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx")
#include <bits/stdc++.h>
//#include <ext/pb_ds/assoc_container.hpp>
#define se second
#define fi first
#define ss size()
#define pb push_back
#define mp make_pair
#define ins insert
#... | [["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40]] | 1 | 520 |
a = int(input())
print(a//500*1000+(a%5*5)) | a = int(input())
print(a//500*1000+(a%500//5*5)) | [["+", 12, 23, 0, 657, 31, 657, 31, 657, 12, 612], ["+", 0, 657, 12, 23, 0, 657, 31, 657, 17, 676]] | 5 | 24 |
<?php
fscanf(STDIN, '%d', $x);
$thousand = floor($x / 500);
$amount_of_thousand = $x - ($thousand * 500);
$thousand_happy = $thousand * 1000;
$five = 5 * floor($amount_of_thousand / 5);
$five_happy = 5 * $five;
echo $thousand_happy + $five_happy; | <?php
fscanf(STDIN, '%d', $x);
$thousand = floor($x / 500);
$amount_of_thousand = $x - ($thousand * 500);
$thousand_happy = $thousand * 1000;
$five = floor($amount_of_thousand / 5);
$five_happy = 5 * $five;
echo $thousand_happy + $five_happy; | [["-", 0, 493, 0, 1, 0, 11, 12, 16, 31, 612], ["-", 0, 493, 0, 1, 0, 11, 12, 16, 17, 48]] | 6 | 73 |
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
Scanner scanner = new Scanner(System.in);
long x = scanner.nextLong();
long answer = 0;
long bigYen = (x - (x % 500)) / 500;
answer += bigYen * 1000;
long extra = x % 1000;
... | import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
Scanner scanner = new Scanner(System.in);
long x = scanner.nextLong();
long answer = 0;
long bigYen = (x - (x % 500)) / 500;
answer += bigYen * 1000;
long extra = x % 500;
... | [["-", 8, 196, 0, 503, 49, 200, 51, 16, 12, 499], ["+", 8, 196, 0, 503, 49, 200, 51, 16, 12, 499]] | 3 | 105 |
X = int(input())
gh = X//500
g = X%500//5
print(gh * 1000 + g * 1) | X = int(input())
gh = X//500
g = X%500//5
print(gh * 1000 + g * 5) | [["-", 0, 652, 3, 4, 0, 657, 12, 657, 12, 612], ["+", 0, 652, 3, 4, 0, 657, 12, 657, 12, 612]] | 5 | 30 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
#define all(c) (c).begin(), (c).end()
#define rep(i, a, n) for (int i = a; i < n; i++)
#define repp(i, a, n, p) for (int i = a; i < n; i += p)
#define per(i, a, n) for (int i = n - 1; i >= a; i--)
#define pb push_back
#define mp make_pair
#define a... | #include <bits/stdc++.h>
using namespace std;
using ll = long long int;
#define all(c) (c).begin(), (c).end()
#define rep(i, a, n) for (int i = a; i < n; i++)
#define repp(i, a, n, p) for (int i = a; i < n; i += p)
#define per(i, a, n) for (int i = n - 1; i >= a; i--)
#define pb push_back
#define mp make_pair
#define a... | [["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]] | 1 | 108 |
n = int(input())
ans = 0
while n > 500:
n -= 500
ans += 1000
while n > 5:
n -= 5
ans += 5
print(ans)
| n = int(input())
ans = 0
while n >= 500:
n -= 500
ans += 1000
while n >= 5:
n -= 5
ans += 5
print(ans)
| [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 20]] | 5 | 37 |
#include <algorithm>
#include <fstream>
#include <functional>
#include <iostream>
#include <string.h>
#include <vector>
#define mod 1000000007
using namespace std;
ifstream f("rick.in");
ofstream g("rick.out");
long long int n, sol;
int main() {
cin >> n;
sol = sol + (n / 500) * 1000 + (n % 500) / 5;
cout << sol... | #include <algorithm>
#include <fstream>
#include <functional>
#include <iostream>
#include <string.h>
#include <vector>
#define mod 1000000007
using namespace std;
ifstream f("rick.in");
ofstream g("rick.out");
long long int n, sol;
int main() {
cin >> n;
sol = sol + (n / 500) * 1000 + (n % 500) / 5 * 5;
cout <... | [["+", 0, 1, 0, 11, 12, 16, 12, 16, 17, 48], ["+", 0, 1, 0, 11, 12, 16, 12, 16, 12, 13]] | 1 | 76 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<long long> vll;
typedef vector<int> vi;
typedef pair<int, int> pi;
#define yes "Yes"
#define yse "Yes"
#define no "No"
#define pb push_back
#define rep(i, l, n) for (int i = (l); i < n; i++)
#define rep_cs(i, l, n) for (int i = (l); i... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<long long> vll;
typedef vector<int> vi;
typedef pair<int, int> pi;
#define yes "Yes"
#define yse "Yes"
#define no "No"
#define pb push_back
#define rep(i, l, n) for (int i = (l); i < n; i++)
#define rep_cs(i, l, n) for (int i = (l); i... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]] | 1 | 343 |
money = int(input())
max500 = money // 500
rem500 = money % 500
max5 = money // 5
happiness = max500 * 1000 + max5 * 5
print(happiness)
| money = int(input())
max500 = money // 500
rem500 = money % 500
max5 = rem500 // 5
happiness = max500 * 1000 + max5 * 5
print(happiness) | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 31, 22]] | 5 | 36 |
#include <stdio.h>
#include <stdlib.h>
int main() {
long int X;
scanf("%ld", &X);
int a, b;
a = X / 500;
X = X % 500;
b = X % 5;
printf("%ld", a * 1000 + b * 5);
return 0;
} | #include <stdio.h>
#include <stdlib.h>
int main() {
long int X;
scanf("%ld", &X);
int a, b;
a = X / 500;
X = X % 500;
b = X / 5;
printf("%ld", a * 1000 + b * 5);
return 0;
} | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 85]] | 0 | 65 |
package main
import "fmt"
func main() {
var x int
fmt.Scan(&x)
sho := x / 500
var oldresult int = 0
var amari int
var yen50 int
var result int
for i := 1; i < sho+1; i++ {
amari = x - sho*500
yen50 = amari / 5
result = i*1000 + yen50*5
if result > oldresult {
oldresult = result
}
if result < ol... | package main
import "fmt"
func main() {
var x int
fmt.Scan(&x)
sho := x / 500
var oldresult int = 0
var amari int
var yen50 int
var result int
for i := 0; i < sho+1; i++ {
amari = x - sho*500
yen50 = amari / 5
result = i*1000 + yen50*5
if result > oldresult {
oldresult = result
}
if result < ol... | [["-", 0, 7, 0, 430, 10, 431, 12, 432, 0, 433], ["+", 0, 7, 0, 430, 10, 431, 12, 432, 0, 433]] | 7 | 118 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
void solve() {
long long t, n, m, i, j, k = 0, kk = 0, x, y, z = 0, mn = 0, mx, a[10],
cnt = 0;
cin >> n;
z = n % 500;
x = n / 500;
y = z % 5;
cout << ((x * 1000) + (y * 5)) << endl;
}
int main() {
long long... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
void solve() {
long long t, n, m, i, j, k = 0, kk = 0, x, y, z = 0, mn = 0, mx, a[10],
cnt = 0;
cin >> n;
z = n % 500;
x = n / 500;
y = z / 5;
cout << ((x * 1000) + (y * 5)) << endl;
}
int main() {
long long... | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 85]] | 1 | 156 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef double db;
typedef string str;
typedef pair<int, int> pi;
typedef pair<ll, ll> pl;
typedef pair<ld, ld> pd;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<ld> vd;
typedef vector<str> vs;
typedef vector<... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef double db;
typedef string str;
typedef pair<int, int> pi;
typedef pair<ll, ll> pl;
typedef pair<ld, ld> pd;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<ld> vd;
typedef vector<str> vs;
typedef vector<... | [["+", 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], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48]] | 1 | 250 |
x = int(input())
a = int((x//500)*1000)
b = int(((x-(x//500))//5)*5)
print(int(a+b)) | x = int(input())
a = int((x//500)*1000)
b = int(((x-(x//500)*500)//5)*5)
print(int(a+b))
| [["+", 0, 657, 31, 23, 0, 657, 12, 657, 17, 48], ["+", 0, 657, 31, 23, 0, 657, 12, 657, 12, 612]] | 5 | 49 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long n;
cin >> n;
long long m = n / 1000;
long long s = (n - m * 1000) / 5;
cout << (2 * m) * 1000 + s * 5;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long n;
cin >> n;
long long m = n / 500;
long long s = (n - m * 500) / 5;
cout << (2 * m * 500) + s * 5;
} | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["-", 51, 16, 31, 23, 0, 16, 12, 16, 12, 13], ["+", 51, 16, 31, 23, 0, 16, 12, 16, 12, 13], ["-", 0, 16, 12, 16, 31, 16, 31, 23, 0, 25], ["-", 0, 1, 0, 16, 12, 16, 31, 16, 12, 13], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 12, 13], ["+",... | 1 | 56 |
n = int(input())
a = n//500
b = (n - a * 500) //5
ans = a * 1000 + b
print(ans)
| n = int(input())
a = n//500
b = (n - a * 500) //5
ans = a * 1000 + b * 5
print(ans) | [["+", 0, 1, 0, 662, 12, 657, 12, 657, 17, 48], ["+", 0, 1, 0, 662, 12, 657, 12, 657, 12, 612]] | 5 | 35 |
#include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main() {
ll x;
cin >> x;
if (x < 500)
cout << (x / 5) * 5;
else {
ll y = (x / 500) * 500;
x = x - y;
cout << y + (x / 5) * 5;
}
} | #include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main() {
ll x;
cin >> x;
if (x < 500)
cout << (x / 5) * 5;
else {
ll y = (x / 500) * 1000;
x = x - y / 2;
cout << y + (x / 5) * 5;
}
}
| [["-", 0, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 0, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 0, 1, 0, 11, 12, 16, 12, 16, 17, 85], ["+", 0, 1, 0, 11, 12, 16, 12, 16, 12, 13]] | 1 | 70 |
x = int(input())
t = x//500
print(t * 1000 + ((x - 500 * t) % 5) * 5) | x = int(input())
t = x//500
print(t * 1000 + ((x - 500 * t) // 5) * 5) | [["-", 0, 657, 12, 657, 31, 23, 0, 657, 17, 109], ["+", 0, 657, 12, 657, 31, 23, 0, 657, 17, 676]] | 5 | 33 |
Y = input()
X = int(Y)
A = (X//500)*1000
B = (X-X//500*500)
print(A+B)
| Y = input()
X = int(Y)
A = (X//500)*1000
B = (X-X//500*500)//5*5
print(A+B)
| [["+", 0, 1, 0, 662, 12, 657, 31, 657, 17, 676], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 12, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 48], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 37 |
x=int(input())
print(1000*(x//500)+5*((x%100)//5)) | x=int(input())
print(1000*(x//500)+5*((x%500)//5)) | [["-", 12, 23, 0, 657, 31, 23, 0, 657, 12, 612], ["+", 12, 23, 0, 657, 31, 23, 0, 657, 12, 612]] | 5 | 30 |
x = int(input())
q1, mod1 = divmod(x, 500)
q2, mod2 = divmod(mod1, 5)
print(mod1*1000 + mod2*5) | x = int(input())
q1, mod1 = divmod(x, 500)
q2, mod2 = divmod(mod1, 5)
print(q1*1000 + q2*5) | [["-", 0, 652, 3, 4, 0, 657, 31, 657, 31, 22], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 31, 22], ["-", 0, 652, 3, 4, 0, 657, 12, 657, 31, 22], ["+", 0, 652, 3, 4, 0, 657, 12, 657, 31, 22]] | 5 | 38 |
X = int(input())
print((X // 500) * 1000 + (X // 500) // 5 * 5)
| X = int(input())
print((X // 500) * 1000 + (X % 500) // 5 * 5)
| [["-", 12, 657, 31, 657, 31, 23, 0, 657, 17, 676], ["+", 12, 657, 31, 657, 31, 23, 0, 657, 17, 109]] | 5 | 28 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long int X;
cin >> X;
cout << X / 500 * 1000 + (X % 1000) / 5 * 5;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long int X;
cin >> X;
cout << X / 500 * 1000 + (X % 500) / 5 * 5;
}
| [["-", 12, 16, 31, 16, 31, 23, 0, 16, 12, 13], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 12, 13]] | 1 | 39 |
money = int(input())
big = money // 500
amari = money % 500
small = amari // 5
print(big + small) | money = int(input())
big = money // 500
amari = money % 500
small = amari // 5
print(big*1000 + small*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())
fhun = X//500
amari = X % 500
fiv = amari//5
ure = fhun + fiv
print(ure) | X = int(input())
fhun = X//500
amari = X % 500
fiv = amari//5
ure = fhun*1000 + fiv*5
print(ure) | [["+", 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 | 32 |
/*
Author : N_o_o_B
Created : April 11 2020 10:56:36
*/
#include <bits/stdc++.h>
using namespace std;
/*
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
*/
#define TRACE
#ifdef TRACE
#define trace(...) ... | /*
Author : N_o_o_B
Created : April 11 2020 10:56:36
*/
#include <bits/stdc++.h>
using namespace std;
/*
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
*/
#define TRACE
#ifdef TRACE
#define trace(...) ... | [["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]] | 1 | 640 |
#include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
ll n;
cin >> n;
ll ans = 0;
ans += ((n) / 500) * 1000;
n %= 50;
ans += ((n) / 5) * 5;
cout << ans << endl;
return 0;
} | #include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
ll n;
cin >> n;
ll ans = 0;
ans += ((n) / 500) * 1000;
n %= 500;
ans += ((n) / 5) * 5;
cout << ans << endl;
return 0;
} | [["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]] | 1 | 64 |
X = int(input())
p , mod = divmod(X, 500)
q = mod%5
print(p*1000+q*5) | X = int(input())
p , mod = divmod(X, 500)
q = mod//5
print(p*1000+q*5) | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 109], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676]] | 5 | 33 |
a = input()
b = 0
while a >= 500:
a-=500
b+=1000
while a >= 5:
a-=5
b+=5
print(b) | a = int(input())
b = 0
while a >= 500:
a-=500
b+=1000
while a >= 5:
a-=5
b+=5
print(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 | 34 |
/******************************************************************************
Online C++ Compiler.
Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.
******************************************... | /******************************************************************************
Online C++ Compiler.
Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.
******************************************... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20]] | 1 | 65 |
x = int(input())
a = x // 500
b = (x - a * 500) // 5
print(1000*5+5*b) | x = int(input())
a = x // 500
b = (x - a * 500) // 5
print(1000*a+5*b) | [["-", 0, 652, 3, 4, 0, 657, 31, 657, 12, 612], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 12, 22]] | 5 | 34 |
#include <iostream>
using namespace std;
int main() {
long long X;
cin >> X;
long long sum = 0;
if (X > 0) {
sum += X / 500 * 1000;
X = X % 1000;
}
sum += X / 5 * 5;
cout << sum << endl;
} | #include <iostream>
using namespace std;
int main() {
long long X;
cin >> X;
long long sum = 0;
if (X > 0) {
sum += X / 500 * 1000;
X = X % 500;
}
sum += X / 5 * 5;
cout << sum << endl;
} | [["-", 64, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 64, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 1 | 62 |
def main():
n = int(input())
print(n//500+(n%500)//5*5)
if __name__ == "__main__":
main() | def main():
n = int(input())
print(n//500*1000+(n%500)//5*5)
if __name__ == "__main__":
main() | [["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 48], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 12, 612]] | 5 | 39 |
#pragma GCC optimize(2)
#include <bits/stdc++.h>
using namespace std;
using LL = long long;
using PII = pair<int, int>;
using PLL = pair<LL, LL>;
const int INF = 1e9;
const int MXN = 0;
const int MXV = 0;
#define MP make_pair
#define PB push_back
#define F first
#define S second
#define FOR(i, L, R) for (int i = L; i !... | #pragma GCC optimize(2)
#include <bits/stdc++.h>
using namespace std;
using LL = long long;
using PII = pair<int, int>;
using PLL = pair<LL, LL>;
const int INF = 1e9;
const int MXN = 0;
const int MXV = 0;
#define MP make_pair
#define PB push_back
#define F first
#define S second
#define FOR(i, L, R) for (int i = L; i !... | [["-", 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], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]] | 1 | 132 |
coin = int(input())
happy1 = ( coin // 500 ) * 1000
happy2 = (coin // 500 ) // 5 * 5
print( happy1 + happy2 ) | coin = int(input())
happy1 = ( coin // 500 ) * 1000
happy2 = (coin % 500 ) // 5 * 5
print( happy1 + happy2 ) | [["-", 12, 657, 31, 657, 31, 23, 0, 657, 17, 676], ["+", 12, 657, 31, 657, 31, 23, 0, 657, 17, 109]] | 5 | 34 |
x=input()
a=x//500
b=(x%500)//5
print(1000*a+5*b) | x=int(input())
a=x//500
b=(x%500)//5
print(1000*a+5*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 | 29 |
package main
import (
"bufio"
"fmt"
"os"
)
var (
read = bufio.NewReader(os.Stdin)
write = bufio.NewWriter(os.Stdout)
)
func main() {
defer write.Flush()
var x int
fmt.Fscan(read, &x)
ans := x / 1000
x %= 1000
ans += x / 5
fmt.Fprintln(write, ans)
}
| package main
import (
"bufio"
"fmt"
"os"
)
var (
read = bufio.NewReader(os.Stdin)
write = bufio.NewWriter(os.Stdout)
)
func main() {
defer write.Flush()
var x int
fmt.Fscan(read, &x)
ans := x / 500 * 1000
x %= 500
ans += x / 5 * 5
fmt.Fprintln(write, ans)
}
| [["+", 0, 431, 12, 432, 0, 16, 31, 16, 12, 433], ["+", 8, 196, 0, 431, 12, 432, 0, 16, 17, 48], ["-", 0, 435, 8, 196, 0, 436, 12, 432, 0, 433], ["+", 0, 435, 8, 196, 0, 436, 12, 432, 0, 433], ["+", 0, 436, 12, 432, 0, 16, 31, 16, 12, 433], ["+", 8, 196, 0, 436, 12, 432, 0, 16, 17, 48]] | 7 | 98 |
x = int(input())
ans = 0
ans += (x//500)*1000
x %= 500
ans += x//5
print(ans) | x = int(input())
ans = 0
ans += (x //500)*1000
x %= 500
ans += (x//5)*5
print(ans)
| [["+", 0, 1, 0, 677, 12, 657, 31, 23, 0, 24], ["+", 0, 677, 12, 657, 31, 23, 0, 657, 12, 612], ["+", 0, 1, 0, 677, 12, 657, 31, 23, 0, 25], ["+", 0, 656, 0, 1, 0, 677, 12, 657, 17, 48]] | 5 | 32 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define int long long
#define double long double
#define rep(i, s, n) for (int i = (s); i < (n); i++)
#define all(v) begin(v), end(v)
#define allg(v) begin(v), end(v), greater<int>()
signed main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define int long long
#define double long double
#define rep(i, s, n) for (int i = (s); i < (n); i++)
#define all(v) begin(v), end(v)
#define allg(v) begin(v), end(v), greater<int>()
signed main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
... | [["-", 0, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 31, 22]] | 1 | 103 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.