problem_id stringlengths 6 6 | buggy_code stringlengths 8 526k | fixed_code stringlengths 12 526k | labels listlengths 0 15 ⌀ | buggy_submission_id int64 1 1.54M | fixed_submission_id int64 2 1.54M | user_id stringlengths 10 10 | language stringclasses 8
values |
|---|---|---|---|---|---|---|---|
p02724 | 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)
| [
"control_flow.branch.if.condition.change"
] | 497,663 | 497,664 | u497188176 | python |
p02724 | 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) | [
"expression.operation.binary.remove"
] | 497,665 | 497,666 | u520331522 | python |
p02724 | a=int(input())
b=a%500
print(a//500+b//5) | a=int(input())
b=a%500
print(a//500*1000+b//5*5) | [
"expression.operation.binary.add"
] | 497,671 | 497,672 | u730107446 | python |
p02724 | 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) | [
"expression.operation.binary.add"
] | 497,673 | 497,674 | u254221913 | python |
p02724 | a = int(input())
print(a//500*1000+(a%5*5)) | a = int(input())
print(a//500*1000+(a%500//5*5)) | [
"expression.operation.binary.add"
] | 497,681 | 497,682 | u084320347 | python |
p02724 | 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) | [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 497,697 | 497,698 | u238084414 | python |
p02724 | 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)
| [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 497,701 | 497,702 | u826785572 | python |
p02724 | 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) | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 497,709 | 497,710 | u685641906 | python |
p02724 | 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))
| [
"assignment.change"
] | 497,730 | 497,731 | u205087376 | python |
p02724 | 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) | [
"assignment.change"
] | 497,741 | 497,742 | u135389999 | python |
p02724 | 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) | [
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 497,751 | 497,752 | u354281482 | python |
p02724 | 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)
| [
"assignment.change"
] | 497,753 | 497,754 | u641393644 | python |
p02724 | x=int(input())
print(1000*(x//500)+5*((x%100)//5)) | x=int(input())
print(1000*(x//500)+5*((x%500)//5)) | [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 497,755 | 497,756 | u519939795 | python |
p02724 | 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) | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 497,759 | 497,760 | u474484450 | python |
p02724 | X = int(input())
print((X // 500) * 1000 + (X // 500) // 5 * 5)
| X = int(input())
print((X // 500) * 1000 + (X % 500) // 5 * 5)
| [
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 497,765 | 497,766 | u935840914 | python |
p02724 | 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) | [
"expression.operation.binary.add"
] | 497,775 | 497,776 | u502200133 | python |
p02724 | 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) | [
"assignment.change"
] | 497,777 | 497,778 | u500990280 | python |
p02724 | X = int(input())
happiness = (X//500)*1000+((X%100)//5)*5
print (happiness) | X = int(input())
happiness = (X//500)*1000+((X%500)//5)*5
print (happiness) | [
"literal.number.integer.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 497,791 | 497,792 | u496184631 | python |
p02724 | 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) | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 497,797 | 497,798 | u081899737 | python |
p02724 | 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) | [
"call.add",
"call.arguments.change"
] | 497,799 | 497,800 | u629186149 | python |
p02724 | 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) | [
"identifier.replace.add",
"literal.replace.remove",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 497,811 | 497,812 | u572439791 | python |
p02724 | x = int(input())
count_a = x // 500
x = x % 10
count_b = x // 5
print(count_a * 1000 + count_b*5) | x = int(input())
count_a = x // 500
x = x % 500
count_b = x // 5
print(count_a * 1000 + count_b*5) | [
"literal.number.integer.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 497,824 | 497,825 | u697386253 | python |
p02724 | 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() | [
"expression.operation.binary.add"
] | 497,829 | 497,830 | u906501980 | python |
p02724 | 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 ) | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 497,847 | 497,848 | u515875405 | python |
p02724 | 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) | [
"call.add",
"call.arguments.change"
] | 497,853 | 497,854 | u224119985 | python |
p02724 | X=int(input())
g500=X//500
g5=(X%500)//5
print(g500*500+g5*5) | X=int(input())
g500=X//500
g5=(X%500)//5
print(g500*1000+g5*5)
| [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 497,855 | 497,856 | u708890186 | python |
p02724 | 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)
| [
"expression.operation.binary.add"
] | 497,859 | 497,860 | u103902792 | python |
p02724 | #500-1000, 5-5
x = int(input())
fiveHundred = x//500
x -= fiveHundred
fives = x//5
print(fiveHundred*1000+fives*5) | x = int(input())
fiveHundred = x//500
x -= fiveHundred*500
fives = x//5
print(fiveHundred*1000+fives*5)
| [
"expression.operation.binary.add"
] | 497,873 | 497,874 | u664015993 | python |
p02724 | x = int(input())
div = x//500
rem = x-div*500
res = div*1000 + (rem//5)*5 | x = int(input())
div = x//500
rem = x-div*500
res = div*1000 + (rem//5)*5
print(res) | [
"call.add"
] | 497,879 | 497,880 | u207326980 | python |
p02724 | S = input()
U500 = int(S) // 500
U5 = (int(S) % 500)//5
happy = U500*1000+U5
print(str(happy)) | S = input()
U500 = int(S) // 500
U5 = (int(S) % 500)//5
happy = U500*1000+U5*5
print(str(happy)) | [
"assignment.change"
] | 497,883 | 497,884 | u587079202 | python |
p02724 | x = input()
print(x//500*1000 + (x%500)//5*5) | x = int(input())
print(x//500*1000 + (x%500)//5*5) | [
"call.add",
"call.arguments.change"
] | 497,885 | 497,886 | u621345513 | python |
p02724 | x = int(input())
a = x // 500
b = (x - a) // 5
print(1000*a + 5*b)
| x = int(input())
a = x // 500
b = (x % 500) // 5
print(1000*a + 5*b) | [] | 497,895 | 497,896 | u159228113 | python |
p02724 | x = int(input())
q, mod = divmod(x, 500)
print(q*2000 + 5*(mod//5)) | x = int(input())
q, mod = divmod(x, 500)
print(q*1000 + 5*(mod//5)) | [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 497,901 | 497,902 | u924507375 | python |
p02724 | X=int(input())
print(X//500*1000+(X-X//500)//5*5)
| X=int(input())
print(X//500*1000+(X-X//500*500)//5*5)
| [
"expression.operation.binary.add"
] | 497,903 | 497,904 | u694665829 | python |
p02724 | X= int(input())
total = (X//500)*1000 + (X%500)//5*5
| X= int(input())
print((X//500)*1000 + (X%500)//5*5)
| [
"call.arguments.change"
] | 497,905 | 497,906 | u124499550 | python |
p02724 | yen = int(input())
count = 0
while yen - 500 > 0:
yen -= 500
count += 1000
while yen - 5 > 0:
yen -= 5
count += 5
print(count) | yen = int(input())
count = 0
while yen - 500 >= 0:
yen -= 500
count += 1000
while yen - 5 >= 0:
yen -= 5
count += 5
print(count) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 497,911 | 497,912 | u025484801 | python |
p02724 | X = int(input())
c = 0
while X>500:
c = c + 1000
X = X - 500
while X>=5:
c = c + 5
X = X - 5
print(c)
| X = int(input())
c = 0
while X>=500:
c = c + 1000
X = X - 500
while X>=5:
c = c + 5
X = X - 5
print(c)
| [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 497,918 | 497,919 | u779293207 | python |
p02724 | X=int(input())
ans=(X-X%500)*2
X=X-X%500
ans=ans+(X-X%5)
print(ans) | X=int(input())
ans=(X-X%500)*2
X=X%500
ans=ans+(X-X%5)
print(ans) | [
"expression.operation.binary.remove"
] | 497,920 | 497,921 | u046158516 | python |
p02724 | import math
line = input()
money = int(line)
happy = 0
calc_500 = math.floor(money / 500)
if calc_500 > 1:
happy += calc_500 * 1000
money -= calc_500 * 500
calc_5 = math.floor(money / 5)
if calc_5 > 1:
happy += calc_5 * 5
print(str(happy))
else:
print(str(happy))
else:
calc_5 = mat... | import math
line = input()
money = int(line)
happy = 0
calc_500 = math.floor(money / 500)
if calc_500 >= 1:
happy += calc_500 * 1000
money -= calc_500 * 500
calc_5 = math.floor(money / 5)
if calc_5 >= 1:
happy += calc_5 * 5
print(str(happy))
else:
print(str(happy))
else:
calc_5 = m... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 497,926 | 497,927 | u513165262 | python |
p02724 | S = open(0).read().strip('\n')
q = int(S) // 500
mod = int(S) % 500 % 5
print(q*1000+mod*5) | S = open(0).read().strip('\n')
q = int(S) // 500
mod = int(S) % 500 //5
print(q*1000+mod*5) | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 497,928 | 497,929 | u913662443 | python |
p02724 | en=int(input())
a=en/500
b=(en%500)/5
print(a*1000+b*5) | en = int(input())
a = int(en/500)
b = int(en%500/5)
print(a*1000+b*5) | [
"call.add",
"call.arguments.change",
"type_conversion.to_integer.change",
"type_conversion.to_number.change"
] | 497,930 | 497,931 | u000770457 | python |
p02724 | s=int(input())
temp=0
temp+=(s//500)*1000
s=s//500
temp+=(s//5)*5
print(temp) | s=int(input())
temp=0
temp+=(s//500)*1000
s=s%500
temp+=(s//5)*5
print(temp) | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 497,932 | 497,933 | u291670969 | python |
p02724 | s=int(input())
temp=0
temp+=(s//500)*500
s=s//500
temp+=(s//5)*5
print(temp) | s=int(input())
temp=0
temp+=(s//500)*1000
s=s%500
temp+=(s//5)*5
print(temp) | [
"literal.number.integer.change",
"expression.operation.binary.change",
"expression.operator.arithmetic.change",
"assignment.value.change"
] | 497,934 | 497,933 | u291670969 | python |
p02724 | s = int(input())
count1=-1
count2=-1
while s>=0:
s=s-500
count1=count1 +1
s=s+500
print(count1)
if s==0:
yasashisa=count1*1000
print(yasashisa)
else:
while s >=0:
s=s-5
count2=count2 +1
yasashisa=count1*1000+count2* 5
print(yasashisa)
| s = int(input())
count1=-1
count2=-1
while s>=0:
s=s-500
count1=count1 +1
s=s+500
if s==0:
yasashisa=count1*1000
print(yasashisa)
else:
while s >=0:
s=s-5
count2=count2 +1
yasashisa=count1*1000+count2* 5
print(yasashisa)
| [
"call.remove"
] | 497,937 | 497,938 | u688219499 | python |
p02724 | x = int(input())
x500 = x / 500
x5 = (x % 500) / 5
print(1000 * x500 + 5 * x5)
| x = int(input())
x500 = x // 500
x5 = (x % 500) // 5
print(1000 * x500 + 5 * x5)
| [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 497,942 | 497,943 | u697658632 | python |
p02724 | X=int(input()) #1200
a=X//500 #2
b=(X-500*a)//5 #
print(a+b) | X=int(input()) #1200
a=X//500 #2
b=(X-500*a)//5 #
print(1000*a+5*b) | [
"expression.operation.binary.add"
] | 497,950 | 497,951 | u055244973 | python |
p02724 | x = int(input())
print((x / 500) * 1000 + ((x % 500) / 5) * 5)
| x = int(input())
print((x // 500) * 1000 + ((x % 500) // 5) * 5)
| [
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 497,960 | 497,961 | u453623947 | python |
p02724 | x = int(input())
print((x / 500) + ((x % 500) / 5))
| x = int(input())
print((x // 500) * 1000 + ((x % 500) // 5) * 5)
| [
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 497,962 | 497,961 | u453623947 | python |
p02724 | n = int(input())
print(int((n/500))*1000 + int((n%500)/5))*5 | n = int(input())
print(int((n/500))*1000 + int((n%500)/5)*5)
| [
"call.arguments.change"
] | 497,963 | 497,964 | u002166247 | python |
p02724 | num_origin = input()
gohyoku = int(num_origin/500)
num_zan = num_origin - gohyoku*500
go = int(go/5)
num = go*5 + gohyoku*1000
print(num) | num_origin = int(input())
gohyoku = int(num_origin/500)
num_zan = num_origin - gohyoku*500
go = int(num_zan/5)
num = go*5 + gohyoku*1000
print(num) | [
"call.add",
"call.arguments.change",
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 497,982 | 497,983 | u176915127 | python |
p02724 | n = int(input())
ans = n // 500 * 1000
n //= 500
ans += n // 5 * 5
print(ans) | n = int(input())
ans = n // 500 * 1000
n %= 500
ans += n // 5 * 5
print(ans) | [
"expression.operator.change"
] | 497,986 | 497,987 | u726769307 | python |
p02724 | X = int(input())
print(int(X/500)*500 + int((X%500)/5)*5) | X = int(input())
print(int(X/500)*1000 + int((X%500)/5)*5) | [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 497,988 | 497,989 | u169866975 | python |
p02724 | num = int(input().strip())
ans = 0
ans += (num//500)*1000
num = num%500
ans += (num//5)
print(ans)
| num = int(input().strip())
ans = 0
ans += (num//500)*1000
num = num%500
ans += (num//5)*5
print(ans)
| [
"expression.operation.binary.add"
] | 497,994 | 497,995 | u598888192 | python |
p02724 | X = input()
print(X // 500 * 1000 + X % 500 // 5 * 5) | X = int(input())
print(X // 500 * 1000 + X % 500 // 5 * 5) | [
"call.add",
"call.arguments.change"
] | 498,003 | 498,004 | u892882715 | python |
p02724 | X=int(input())
a=X/500
X%=500
b=X/5
print(1000*a+5*b) | X=int(input())
a=X//500
X%=500
b=X//5
print(1000*a+5*b) | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 498,009 | 498,010 | u798675549 | python |
p02724 | X=input()
a=X/500
X%=500
b=X/5
print(1000*a+5*b) | X=int(input())
a=X//500
X%=500
b=X//5
print(1000*a+5*b) | [
"call.add",
"call.arguments.change",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 498,011 | 498,010 | u798675549 | python |
p02724 | X=int(input())
ans = 0
ans += 1000*(X//500)
ans += 5*(X%500)//5
print(ans) | X=int(input())
ans = 0
ans += 1000*(X//500)
ans += 5*((X%500)//5)
print(ans) | [] | 498,018 | 498,019 | u243699903 | python |
p02724 | # -*- coding: utf-8 -*-
s = int(input())
happy = 0
if s >= 500:
happy += 1000 * (s // 500)
s = s % 500
if s >= 5:
happy += 5 * (s // 500)
print(happy)
| # -*- coding: utf-8 -*-
s = int(input())
happy = 0
if s >= 500:
happy += 1000 * (s // 500)
s = s % 500
if s >= 5:
happy += 5 * (s // 5)
print(happy)
| [
"literal.number.integer.change",
"expression.operation.binary.change"
] | 498,020 | 498,021 | u646412443 | python |
p02724 | user = int(input())
c500 = user//500
user -= c500*500
c5 = user/5
ans = (c500*1000)+(c5*5)
print(ans) | user = int(input())
c500 = user//500
user -= c500*500
c5 = user//5
ans = (c500*1000)+(c5*5)
print(ans) | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 498,033 | 498,034 | u887222798 | python |
p02724 | x = int(input())
print(x // 500 * 2 + x % 500 // 5 * 5)
| x = int(input())
print(x // 500 * 1000 + x % 500 // 5 * 5)
| [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 498,046 | 498,047 | u357289011 | python |
p02724 | money = int(input())
c_500 = money/500
c_5 = (money%500)/5
print(1000*c_500+5*c_5) | money = int(input())
c_500 = money//500
c_5 = (money%500)//5
print(1000*c_500+5*c_5) | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 498,057 | 498,058 | u269340384 | python |
p02724 | x = int(input())
ans = 0
l500 = x // 500
x -= l500 * 500
l5 = x // 5
print(l500 * 1000 + l5)
| x = int(input())
ans = 0
l500 = x // 500
#print(l500)#
x -= l500 * 500
#print(x)#
l5 = x // 5
#print(l5)#
print(l500 * 1000 + l5 * 5)
#print(' ')#
| [
"expression.operation.binary.add"
] | 498,076 | 498,077 | u536685012 | python |
p02724 | x = int(input())
ans = 0
l500 = x // 500
x -= l500 * 500
l5 = x // 5
print(l500 + l5) | x = int(input())
ans = 0
l500 = x // 500
#print(l500)#
x -= l500 * 500
#print(x)#
l5 = x // 5
#print(l5)#
print(l500 * 1000 + l5 * 5)
#print(' ')#
| [
"expression.operation.binary.add"
] | 498,078 | 498,077 | u536685012 | python |
p02724 | n = int(input())
S = n // 500
R = n - S
x = R // 5
H = 1000 * S + x * 5
print(H) | n = int(input())
S = n // 500
mod = n % 500
x = mod // 5
H = 1000 * S + x * 5
print(H) | [
"assignment.variable.change",
"identifier.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 498,083 | 498,084 | u141419468 | python |
p02724 | a=int(input())
hp = (a-(a%500))/500
f=(a%500)
ct=int(hp)*1000
ct+=int((f-(a%5))/5)*5 | a=int(input())
hp = (a-(a%500))/500
f=(a%500)
ct=int(hp)*1000
ct+=int((f-(a%5))/5)*5
print(ct) | [
"call.add"
] | 498,085 | 498,086 | u474122160 | python |
p02724 | X = input()
tmp = X // 500
ans = tmp * 1000 + X % 500 - ((X % 500) % 5)
print(ans) | X = int(input())
tmp = X // 500
ans = tmp * 1000 + X % 500 - ((X % 500) % 5)
print(ans) | [
"call.add",
"call.arguments.change"
] | 498,094 | 498,095 | u690442716 | python |
p02724 | X = int(input())
count=(X//500)*1000
X=X//500
count+=(X//5)*5
print(count) | X = int(input())
count=(X//500)*1000
X=X%500
count+=(X//5)*5
print(count) | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 498,100 | 498,101 | u055854974 | python |
p02724 | X = int(input())
Y = X%500
Z = (X-Y*500)%5
print(1000*Y+5*Z) | X = int(input())
Y = X//500
Z = (X-Y*500)//5
print(1000*Y+5*Z)
| [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 498,117 | 498,118 | u647796955 | python |
p02724 | i=int(input())
print((i//500)*1000+(i-(i//500*500)//5*5))
| i=int(input())
print((i//500)*1000+((i-(i//500*500))//5*5)) | [
"call.arguments.change"
] | 498,127 | 498,128 | u846652026 | python |
p02724 | x = int(input())
c_500 = x // 500
x = c_500 * 500
c_5 = x // 5
print(c_500 * 1000 + c_5 * 5)
| x = int(input())
c_500 = x // 500
x = x - c_500 * 500
c_5 = x // 5
print(c_500 * 1000 + c_5 * 5) | [
"assignment.change"
] | 498,129 | 498,130 | u265154666 | python |
p02724 | n=int(input())
happy=0
def covid(num):
if num==0:
return 0
else:
fund=num//500
num-=fund*500
happy+=fund*1000
happy+=num//5*5
return happy
print(covid(n)) | n=int(input())
def covid(num):
if num==0:
return 0
else:
happy=0
fund=num//500
num-=fund*500
happy+=fund*1000
happy+=num//5*5
return happy
print(covid(n)) | [
"assignment.remove",
"assignment.add"
] | 498,133 | 498,134 | u690873774 | python |
p02724 | X = int(input())
ans =0
while(1):
print(X)
if X < 5:
break
elif X<500:
tmp = X // 5
ans +=tmp*5
X = X% 5
else:
tmp = X // 500
ans +=tmp*1000
X = X %500
print(ans) | X = int(input())
ans =0
while(1):
if X < 5:
break
elif X<500:
tmp = X // 5
ans +=tmp*5
X = X% 5
else:
tmp = X // 500
ans +=tmp*1000
X = X %500
print(ans) | [
"call.remove"
] | 498,137 | 498,138 | u948521599 | python |
p02724 | s = int(input())
res = (s//500)*1000 + (s%500)//5
print(res) | s = int(input())
res = (s//500)*1000 + ((s%500)//5)*5
print(res) | [
"assignment.change"
] | 498,147 | 498,148 | u132049876 | python |
p02724 | s = int(input())
res = (s//500*1000) + ((s%500)//5)
print(res) | s = int(input())
res = (s//500)*1000 + ((s%500)//5)*5
print(res) | [
"assignment.change"
] | 498,149 | 498,148 | u132049876 | python |
p02724 | X=int(input())
print((X//500)*2+(X%500)//5) | X=int(input())
print((X//500)*1000+(X%500)//5*5)
| [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 498,170 | 498,171 | u297089927 | python |
p02724 | X = int(input())
fh = x // 500
f = (x - (500*fh)) // 5
pint(f*5+fh*1000) | x = int(input())
fh = x // 500
f = (x - (500*fh)) // 5
sum = f*5+fh*1000
print(sum) | [
"assignment.variable.change",
"identifier.change",
"call.add"
] | 498,172 | 498,173 | u069273180 | python |
p02724 | X = int(input())
a = X // 500
b = (X - a * 500) // 5
print(a + b) | X = int(input())
a = X // 500
b = (X - a * 500) // 5
print(1000 * a + 5 * b) | [
"expression.operation.binary.add"
] | 498,176 | 498,177 | u200228637 | python |
p02724 | coin_value = [[500, 1000], [5, 5]]
result = 0
x = int(input().strip())
idx = 0
for coin, value in coin_values:
result += value * (x // coin)
x = x - x // coin * coin
print(result) | coin_values = [[500, 1000], [5, 5]]
result = 0
x = int(input().strip())
idx = 0
for coin, value in coin_values:
result += value * (x // coin)
x = x - x // coin * coin
print(result) | [
"assignment.variable.change",
"identifier.change"
] | 498,180 | 498,181 | u605601159 | python |
p02724 | coin_value = [[500, 1000], [5, 5]]
result = 0
x = int(input().strip())
idx = 0
for coin, value in coin_values:
result += value * (x // coin)
x = x - x // coin * coin
print(result)
| coin_values = [[500, 1000], [5, 5]]
result = 0
x = int(input().strip())
idx = 0
for coin, value in coin_values:
result += value * (x // coin)
x = x - x // coin * coin
print(result) | [
"assignment.variable.change",
"identifier.change"
] | 498,182 | 498,181 | u605601159 | python |
p02724 | n = int(input())
div_500, mod_500 = divmod(n,500)
if mod_500 > 0:
div_5, mod = divmod(mod_500, 5)
print(div_500*1000 + div_5*5)
else:
print(div_500*100) | n = int(input())
div_500, mod_500 = divmod(n,500)
if mod_500 > 0:
div_5, mod = divmod(mod_500, 5)
print(div_500*1000 + div_5*5)
else:
print(div_500*1000) | [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 498,193 | 498,194 | u333404917 | python |
p02724 | x=int(input())
five_hundred=int(x/500)
five=int((x-five_hundred)/5)
print(five_hundred*1000+five*5) | x=int(input())
five_hundred=int(x/500)
five=int((x-five_hundred*500)/5)
print(five_hundred*1000+five*5)
| [
"assignment.change"
] | 498,197 | 498,198 | u884679979 | python |
p02724 | # coding: UTF-8
import os
def remove_empty(target_list: list):
empty_removed_list = [x for x in target_list if x]
return empty_removed_list
def get_stdin_str_list():
input_str = input().strip()
input_str_list = input_str.split()
return input_str_list
def get_stdin_int_list():
input_str_list =... | # coding: UTF-8
import os
def remove_empty(target_list: list):
empty_removed_list = [x for x in target_list if x]
return empty_removed_list
def get_stdin_str_list():
input_str = input().strip()
input_str_list = input_str.split()
return input_str_list
def get_stdin_int_list():
input_str_list =... | [
"call.arguments.change",
"call.arguments.add"
] | 498,199 | 498,200 | u273787824 | python |
p02724 | x = int(input())
a = x//500
b = (x%500)//5
print(a+b) | x = int(input())
a = x//500
b = (x%500)//5
print(a*1000+b*5)
| [
"expression.operation.binary.add"
] | 498,250 | 498,251 | u957872856 | python |
p02724 | import sys
input = sys.stdin.readline
x = int(input())
res = 1000 * (x // 500) + 5 * ((x - x // 1000 * 1000) // 5)
print(res) | import sys
input = sys.stdin.readline
x = int(input())
res = 1000 * (x // 500) + 5 * ((x - x // 500 * 500) // 5)
print(res) | [
"literal.number.integer.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 498,264 | 498,265 | u831294922 | python |
p02724 | n=int(input())
print((n//500)*500+((n%500)//5)*5) | n=int(input())
print((n//500)*1000+((n%500)//5)*5) | [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 498,275 | 498,276 | u440608859 | python |
p02724 | 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) | [
"call.add",
"call.arguments.change"
] | 498,302 | 498,303 | u654697086 | python |
p02724 | 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) | [
"literal.number.integer.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 498,308 | 498,309 | u175034939 | python |
p02724 | x = int(input())
print(x // 500 * 1000 + x // 5 * 5)
| x = int(input())
print(x // 500 * 1000 + (x%500) // 5 * 5)
| [
"call.arguments.change"
] | 498,331 | 498,332 | u921168761 | python |
p02724 | 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)
| [
"literal.number.integer.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 498,343 | 498,344 | u020449748 | python |
p02724 | 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) | [
"assignment.variable.change",
"identifier.change"
] | 498,352 | 498,353 | u166807268 | python |
p02724 | 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)
| [
"assignment.change"
] | 498,364 | 498,365 | u626011428 | python |
p02724 | n=int(input())
ct = n // 1000
ost = n % 1000
ans = ct * 500 + (ost // 5) * 5
print(ans) | n=int(input())
ct = n // 500
ost = n - ct * 500
ans = ct * 1000 + (ost // 5) * 5
print(ans)
| [
"literal.number.integer.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 498,372 | 498,373 | u266436174 | python |
p02724 | 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(... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 498,374 | 498,375 | u088552457 | python |
p02724 | 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(... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 498,376 | 498,375 | u088552457 | python |
p02724 | 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)
| [
"call.remove"
] | 498,429 | 498,430 | u970082363 | python |
p02724 | 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) | [
"call.add",
"call.arguments.change"
] | 498,438 | 498,439 | u346818994 | python |
p02724 | 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)) | [] | 498,445 | 498,446 | u483873684 | python |
p02724 | 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) | [
"identifier.change",
"call.function.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change",
"expression.operation.unary.remove",
"literal.number.integer.change"
] | 498,451 | 498,452 | u581477875 | python |
p02724 | 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)
| [
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 498,453 | 498,454 | u245870380 | python |
p02724 | X = input()
num500=X//500
num5=(X%500)//5
print (1000*num500+5*num5) | X = int(input())
num500=X//500
num5=(X%500)//5
print (1000*num500+5*num5) | [
"call.add",
"call.arguments.change"
] | 498,457 | 498,456 | u209313313 | python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.