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())
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) | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 498,480 | 498,481 | u012955130 | python |
p02724 | X = map(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) | [
"call.remove",
"assignment.value.change",
"call.arguments.change",
"expression.operator.arithmetic.change",
"expression.operation.binary.change"
] | 498,482 | 498,481 | u012955130 | python |
p02724 | 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)
| [
"expression.operation.binary.remove"
] | 498,501 | 498,502 | u907446975 | python |
p02724 | #!/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()
| [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 498,513 | 498,514 | u552004554 | python |
p02724 | 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)) | [
"assignment.variable.change",
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change",
"literal.number.integer.change"
] | 498,527 | 498,528 | u847514948 | python |
p02724 | 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(... | [
"identifier.replace.add",
"literal.replace.remove",
"function.return_value.change"
] | 498,529 | 498,530 | u261343339 | python |
p02724 | 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) | [
"literal.number.integer.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 498,541 | 498,542 | u079022116 | python |
p02724 | 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) | [
"assignment.change"
] | 498,556 | 498,557 | u848336553 | python |
p02724 | 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) | [] | 498,581 | 498,582 | u834983620 | python |
p02724 | 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)
| [
"literal.number.integer.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 498,589 | 498,590 | u131406572 | python |
p02724 |
n = int(input())
s=n//500
r=n%500
print(r)
r=r//5
print(s*1000+r*5) | n = int(input())
s=n//500
r=n%500
r=r//5
print(s*1000+r*5) | [
"call.remove"
] | 498,591 | 498,592 | u732743460 | python |
p02724 | 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) | [
"expression.operation.binary.add"
] | 498,593 | 498,592 | u732743460 | python |
p02724 | 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) | [
"assignment.value.change"
] | 498,601 | 498,602 | u032955959 | python |
p02724 |
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)
| [
"assignment.change"
] | 498,628 | 498,629 | u574590381 | python |
p02724 | 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) | [
"literal.number.integer.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 498,630 | 498,631 | u572425901 | python |
p02724 | 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)
| [
"assignment.change"
] | 498,644 | 498,645 | u106778233 | python |
p02724 | 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") | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change",
"expression.operation.binary.remove"
] | 498,648 | 498,649 | u504272868 | python |
p02724 | 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) | [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove",
"call.arguments.change"
] | 498,692 | 498,693 | u934053315 | python |
p02724 | a = int(input())
print(a//5*500+a//5*5) | a = int(input())
print(a//500*500+a//5*5) | [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 498,696 | 498,697 | u608493167 | python |
p02724 | a = int(input())
print(a%5*500+a%5*5) | a = int(input())
print(a//500*500+a//5*5) | [
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 498,698 | 498,697 | u608493167 | python |
p02724 | x = int(input())
a=0
b=0
aper=0
if x!=0:
a=x//500
aper=x%500
if aper != 0:
b= b/5
bper = b%5
result = (a * 1000) + (b*5)
print(int(result))
| x = int(input())
a=0
b=0
aper=0
if x!=0:
a=x//500
aper=x%500
if aper != 0:
b= aper//5
bper = aper%5
result = (a * 1000) + (b*5)
print(int(result))
| [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 498,703 | 498,704 | u443972048 | python |
p02724 | X=int(input())
w=int(X/500)*1000
X=int(X/500)
x=int(X/5)*5
print(w+x)
| X=int(input())
w=int(X/500)*1000
X=int(X%500)
x=int(X/5)*5
print(w+x) | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 498,710 | 498,711 | u598696606 | python |
p02724 | n=int(input())
print(n//500 * 1000 + x//5 * 5) | n=int(input())
print(n//500 * 1000 + (n%500)//5 * 5) | [
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 498,712 | 498,713 | u859773831 | python |
p02724 | X = int(input())
n_500 = X / 500
n_5 = (X % 500) / 5
ans = 1000 * n_500 + 5 * n_5
print(int(ans)) | X = int(input())
n_500 = X // 500
n_5 = (X % 500) // 5
ans = 1000 * n_500 + 5 * n_5
print(int(ans)) | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 498,722 | 498,723 | u646130340 | python |
p02724 | X = int(input())
n_500 = X / 500
n_5 = (X % 500) / 5
ans = 1000 * n_500 + 5 * n_5
print(ans) | X = int(input())
n_500 = X // 500
n_5 = (X % 500) // 5
ans = 1000 * n_500 + 5 * n_5
print(int(ans)) | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"call.add",
"call.arguments.change"
] | 498,724 | 498,723 | u646130340 | python |
p02724 | N = int(input())
print(N/500*1000+N%500/5*5) | N = int(input())
print(N//500*1000+N%500//5*5) | [
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 498,746 | 498,747 | u736641785 | python |
p02724 | import math
def main():
# arg = getInput(input())
arg = getInput(1024)
ans = process(arg)
print(ans)
def process(arg):
yen500 = math.floor(arg / 500)
amari = arg % 500
yen5 = math.floor(amari / 5)
ans = 1000 * yen500
ans = ans + yen5 * 5
return ans
def getInput(input):
... | import math
def main():
arg = getInput(input())
# arg = getInput(1024)
ans = process(arg)
print(ans)
def process(arg):
yen500 = math.floor(arg / 500)
amari = arg % 500
yen5 = math.floor(amari / 5)
ans = 1000 * yen500
ans = ans + yen5 * 5
return ans
def getInput(input):
... | [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove",
"call.arguments.change",
"call.add"
] | 498,750 | 498,751 | u086869007 | python |
p02724 | n = int(input)
print(int(n//500*1000+(n%500)//5*5)) | n = int(input())
print(int(n//500*1000+(n%500)//5*5)) | [
"call.add"
] | 498,754 | 498,755 | u698583761 | python |
p02724 | X = int(input())
count_five_hundred = int(X // 500)
count_five = int((X % 1000) // 5)
max_happiness = count_five_hundred * 1000 + count_five * 5
print(max_happiness) | X = int(input())
count_five_hundred = int(X // 500)
count_five = int((X % 500) // 5)
max_happiness = count_five_hundred * 1000 + count_five * 5
print(max_happiness) | [
"literal.number.integer.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 498,764 | 498,765 | u516494592 | python |
p02724 | # 1行、1変数を受け取るとき
s = int(input())
print(int(s / 500) * 1000) + (int(s % 10 / 5) * 5) | # 1行、1変数を受け取るとき
s = int(input())
print((int(s / 500) * 1000) + (int(s % 500 / 5) * 5)) | [
"call.arguments.change",
"literal.number.integer.change",
"expression.operation.binary.change"
] | 498,770 | 498,771 | u848462327 | python |
p02724 | money_val = int(input())
if money_val < 5:
print(0)
elif money_val < 500:
print(money_val // 5)
else:
fivehun_num = (money_val // 500)
five_num = money_val - (500*fivehun_num)
five_num = five_num // 5
print((fivehun_num*1000) + (five_num*5)) | money_val = int(input())
if money_val < 5:
print(0)
elif money_val < 500:
print((money_val // 5)*5)
else:
fivehun_num = (money_val // 500)
five_num = money_val - (500*fivehun_num)
five_num = five_num // 5
print((fivehun_num*1000) + (five_num*5)) | [
"call.arguments.change",
"call.arguments.add"
] | 498,784 | 498,785 | u819465503 | python |
p02724 | def solve():
N = int(input())
a = N//500
s = str(N)
b = int(s[-3:]) // 5
return a*1000 + b*5
print(solve()) | def solve():
N = int(input())
a = N//500
s = str(N)
b = (N - a * 500) // 5
return a*1000 + b*5
print(solve()) | [
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 498,786 | 498,787 | u112317104 | python |
p02724 | import math
x = int(input())
ans = 0
if math.floor(x/500) >=1 :
ans += math.floor(x/500)*1000
x -= math.floor(x/500)*500
if x > 0 and math.floor(x/5) >=1 :
print("a")
ans += math.floor(x/5)*5
print(ans) | import math
x = int(input())
ans = 0
if math.floor(x/500) >=1 :
ans += math.floor(x/500)*1000
x -= math.floor(x/500)*500
if x > 0 and math.floor(x/5) >=1 :
ans += math.floor(x/5)*5
print(ans) | [
"call.remove"
] | 498,790 | 498,791 | u498975813 | python |
p02724 | import math
x = int(input())
ans = 0
if math.floor(x/500) >1 :
ans += math.floor(x/500)*1000
x -= math.floor(x/500)*500
if x > 0 and math.floor(x/5) >1 :
ans += math.floor(x/5)*5
print(ans) | import math
x = int(input())
ans = 0
if math.floor(x/500) >=1 :
ans += math.floor(x/500)*1000
x -= math.floor(x/500)*500
if x > 0 and math.floor(x/5) >=1 :
ans += math.floor(x/5)*5
print(ans) | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 498,792 | 498,791 | u498975813 | python |
p02724 | x = int(input())
print(int((x/500)*2) + int((x%500)/5)) | x = int(input())
print(int(x/500) * 1000 + int(int(x%500)/5) *5) | [
"call.arguments.change",
"literal.number.integer.change",
"expression.operation.binary.change",
"io.output.change",
"call.add",
"type_conversion.to_integer.change",
"type_conversion.to_number.change"
] | 498,795 | 498,796 | u106181248 | python |
p02724 | X = 1024
ans = 0
ans += (X // 500) * 1000
ans += ((X % 500) // 5) * 5
print(ans) | X = int(input())
ans = 0
ans += (X // 500) * 1000
ans += ((X % 500) // 5) * 5
print(ans) | [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove",
"call.arguments.add"
] | 498,822 | 498,823 | u845847173 | python |
p02724 | X = int(input())
ans = 0
ans += (X // 500) * 1000
ans += ((X % 500) // 5) * 5
| X = int(input())
ans = 0
ans += (X // 500) * 1000
ans += ((X % 500) // 5) * 5
print(ans) | [
"call.add"
] | 498,824 | 498,823 | u845847173 | python |
p02724 | x = int(input())
a = [500, 100, 50, 5, 1]
b = [0, 0, 0, 0, 0]
for i in range(5):
b[i] = x // a[i]
x = x % a[i]
print(b[0] * 1000 + b[3]*5)
| x = int(input())
a = [500, 5, 100, 50, 1]
b = [0, 0, 0, 0, 0]
for i in range(5):
b[i] = x // a[i]
x = x % a[i]
print(b[0] * 1000 + b[1]*5)
| [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 498,844 | 498,845 | u154473588 | python |
p02724 | X = int(input())
happiness = 0
if X >= 1000:
happiness += (X//1000)*2*1000
X = X%1000
happiness += (X//5)*5
print(happiness)
| X = int(input())
happiness = 0
if X >= 500:
happiness += (X//500)*1000
X = X%500
happiness += (X//5)*5
print(happiness)
| [
"literal.number.integer.change",
"control_flow.branch.if.condition.change",
"expression.operation.binary.change",
"expression.operation.binary.remove",
"assignment.value.change"
] | 498,848 | 498,849 | u195177386 | python |
p02724 | X = int(input())
happiness = 0
if X > 1000:
happiness += (X//1000)*2*1000
X = X%1000
happiness += (X//5)*5
print(happiness)
| X = int(input())
happiness = 0
if X >= 500:
happiness += (X//500)*1000
X = X%500
happiness += (X//5)*5
print(happiness)
| [
"literal.number.integer.change",
"expression.operation.binary.change",
"expression.operation.binary.remove",
"assignment.value.change"
] | 498,850 | 498,849 | u195177386 | python |
p02724 | money = int(input())
fh = n // 500
money -= 500 * fh
goen = money // 5
point = 1000 * fh + 5 * goen
print(point) | money = int(input())
fh = money // 500
money -= 500 * fh
goen = money // 5
point = 1000 * fh + 5 * goen
print(point)
| [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 498,851 | 498,852 | u537070292 | python |
p02724 | n = int(input())
print(int(n / 500) * 1000 + int((n % 500) / 5)) | n = int(input())
print(int(n / 500) * 1000 + int((n % 500) / 5) * 5) | [
"expression.operation.binary.add"
] | 498,865 | 498,866 | u311509174 | python |
p02724 | X = int(input())
ans = 0
ans += (X // 500) * 1000
res = X % 1000
ans += (res // 5) * 5
print(ans)
| X = int(input())
ans = 0
ans += (X // 500) * 1000
res = X % 500
ans += (res // 5) * 5
print(ans) | [
"literal.number.integer.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 498,867 | 498,868 | u891847179 | python |
p02724 | n = int(input())
ans = 0
ans += (n // 500)*1000
n -= 500*(n // 500)
ans += (n % 5)*5
print(ans)
| n = int(input())
ans = 0
ans += (n // 500)*1000
n -= 500*(n // 500)
ans += (n // 5)*5
print(ans)
| [
"expression.operator.arithmetic.change",
"expression.operation.binary.change"
] | 498,869 | 498,870 | u540877546 | python |
p02724 | import math
num = int(input("num: "))
c_500 = math.floor(num / 500)
num2 = num - c_500 * 500
c_5 = math.floor(num2/5)
print(c_500 * 1000 +c_5 * 5) | import math
num = int(input())
c_500 = math.floor(num / 500)
num2 = num - c_500 * 500
c_5 = math.floor(num2/5)
print(c_500 * 1000 +c_5 * 5) | [] | 498,876 | 498,877 | u753542444 | python |
p02724 | X = int(input())
u = 1000*(X//500) + 5*((X%1000)//5)
print(u) | X = int(input())
u = 1000*(X//500) + 5*((X%500)//5)
print(u) | [
"literal.number.integer.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 498,884 | 498,885 | u674574659 | python |
p02724 | X =int(input())
answer = (X//500)*1000+((X%500)//5)*6
print(answer) | X =int(input())
answer = (X//500)*1000+((X%500)//5)*5
print(answer) | [
"literal.number.integer.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 498,897 | 498,898 | u105659451 | python |
p02724 | import math
X = int(input())
happy_1000 = X//500
X = math.floor(X%500)
print(X)
happy_5 = X//5
res = happy_1000*1000 + happy_5*5
print(res) | import math
X = int(input())
happy_1000 = X//500
X = math.floor(X%500)
happy_5 = X//5
res = happy_1000*1000 + happy_5*5
print(res) | [
"call.remove"
] | 498,899 | 498,900 | u268504600 | python |
p02724 | import math
X = int(input())
happy_1000 = X//500
X = math.floor(X/500)
happy_5 = X//5
res = happy_1000*1000 + happy_5*5
print(res) | import math
X = int(input())
happy_1000 = X//500
X = math.floor(X%500)
happy_5 = X//5
res = happy_1000*1000 + happy_5*5
print(res) | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 498,901 | 498,900 | u268504600 | python |
p02724 | s = int(input())
res = (s//500)*1000
s -= (s//500)*500
res += (s%5)*5
print(str(res))
| s = int(input())
res = (s//500)*1000
s -= (s//500)*500
res += (s//5)*5
print(str(res)) | [
"expression.operator.arithmetic.change",
"expression.operation.binary.change"
] | 498,904 | 498,905 | u698560572 | python |
p02724 | X = 0
happiness500 = int(X / 500)
happiness5 = int((X%500/5))
print(happiness500*1000+happiness5*5) | X = int(input())
happiness500 = int(X / 500)
happiness5 = int((X%500/5))
print(happiness500*1000+happiness5*5) | [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove",
"call.arguments.add"
] | 498,912 | 498,913 | u751717561 | python |
p02724 | X = int(input())
sen = X // 500
amari = X % 500
go = amari // 5
ans = sen * 1000 + gp * 5 | X = int(input())
sen = X // 500
amari = X % 500
go = amari // 5
ans = sen * 1000 + go * 5
print(ans) | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change",
"call.add"
] | 498,926 | 498,927 | u653175574 | python |
p02724 | #create date: 2020-03-28 21:01
import sys
stdin = sys.stdin
def ns(): return stdin.readline().rstrip()
def ni(): return int(ns())
def na(): return list(map(int, stdin.readline().split()))
def main():
x = ni()
print(1000*(x//500) + 5*((x % 100)//5))
if __name__ == "__main__":
main() | #create date: 2020-03-28 21:01
import sys
stdin = sys.stdin
def ns(): return stdin.readline().rstrip()
def ni(): return int(ns())
def na(): return list(map(int, stdin.readline().split()))
def main():
x = ni()
l = x % 100
print(1000*(x//500) + 5*((x % 500)//5))
if __name__ == "__main__":
main()
| [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 498,933 | 498,934 | u524870111 | python |
p02724 | x=int(input())
cnt = 0
q = x // 500
cnt += (q * 1000)
w = x % 500
e = w // 5
cnt += (e * 5)
| x=int(input())
cnt = 0
q = x // 500
cnt += (q * 1000)
w = x % 500
e = w // 5
cnt += (e * 5)
print(cnt)
| [
"call.add"
] | 498,941 | 498,942 | u277920185 | python |
p02724 | X = int(input())
print(1000*(X//500) + (X%500)//5)
| X = int(input())
print(1000*(X//500) + 5*((X%500)//5))
| [
"call.arguments.change"
] | 498,958 | 498,959 | u031132940 | python |
p02724 | import sys
import numpy as np
import itertools
from collections import deque
sys.setrecursionlimit(10**6)
readline = sys.stdin.readline
# input
X = int(input())
ans = (X//500)*1000
ans += ((X%100)//5)*5
print(ans)
| import sys
import numpy as np
import itertools
from collections import deque
sys.setrecursionlimit(10**6)
readline = sys.stdin.readline
# input
X = int(input())
ans = (X//500)*1000
ans += ((X%500)//5)*5
print(ans)
| [
"literal.number.integer.change",
"expression.operation.binary.change"
] | 498,981 | 498,982 | u125545880 | python |
p02724 | n = int(input())
a = n // 500
m = n % 500
b = m % 5
ans = a*1000 + b*5
print(ans) | n = int(input())
a = n // 500
m = n % 500
b = m // 5
ans = a*1000 + b*5
print(ans) | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 498,983 | 498,984 | u011062360 | python |
p02724 | x = int(input())
t = x//500
f = (x-t)//5
print((t*1000) + (f*5)) | x = int(input())
t = x//500
f = (x-t*500)//5
print((t*1000) + (f*5))
| [
"assignment.change"
] | 498,985 | 498,986 | u617659131 | python |
p02724 | n = int(input())
ans = (n//500) * (1000)
rem = ((n%1000)//5) * 5
ans = ans + rem
print(ans)
| n = int(input())
ans = (n//500) * (1000)
rem = ((n%500)//5) * 5
ans = ans + rem
print(ans)
| [
"literal.number.integer.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 498,995 | 498,996 | u615034089 | python |
p02724 | X=int(input())
if X>=5:
div500=X//500
X=X-div500*500
div5=X//5
print(div500*1000+div5*5)
| X=int(input())
div500=X//500
X=X-div500*500
div5=X//5
print(div500*1000+div5*5) | [] | 499,007 | 499,008 | u279121950 | python |
p02724 | X=int(input())
cnt=0
n=X//1200
X-=n*1200
cnt+=n*1200*2
n=X//5
cnt+=n*5
print(cnt) | X=int(input())
cnt=0
n=X//500
X-=n*500
cnt+=n*1000
n=X//5
cnt+=n*5
print(cnt) | [
"literal.number.integer.change",
"assignment.value.change",
"expression.operation.binary.change",
"expression.operation.binary.remove"
] | 499,019 | 499,020 | u748311048 | python |
p02724 | n=int(input())
s=0
s+=(n//500)
n=n%500
s+=(n//5)
print(s) | n=int(input())
s=0
s+=1000*(n//500)
n=n%500
s+=(n//5)*5
print(s)
| [
"expression.operation.binary.add"
] | 499,031 | 499,032 | u482883507 | python |
p02724 | n = int(input())
a = int(n/500)
amari = n%500
b = amari/5
ans = int(a*1000+b*5)
print(ans) | n = int(input())
a = int(n/500)
amari = n%500
b = int(amari/5)
ans = int(a*1000+b*5)
print(ans) | [
"call.add",
"call.arguments.change"
] | 499,035 | 499,036 | u431484963 | python |
p02724 | X = int(input())
pleasure += (X // 500) * 1000
X //= 500
pleasure += (X // 5) * 5
print(pleasure) | X = int(input())
pleasure = (X // 500) * 1000
X %= 500
pleasure += (X // 5) * 5
print(pleasure)
| [
"assignment.value.change",
"expression.operator.change"
] | 499,037 | 499,038 | u152891327 | python |
p02724 | data = int(input())
result = (data // 1000) * 2000
data %= 1000
result += (data // 5) * 5
print(result) | data = int(input())
result = (data // 500) * 1000
data %= 500
result += (data // 5) * 5
print(result) | [
"literal.number.integer.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 499,045 | 499,046 | u957796755 | python |
p02724 | X = int(input())
ans = 0
ans += X//500 * 1000
X = X % 500
ans += X // 500 * 5
print(ans) | X = int(input())
ans = 0
ans += X//500 * 1000
X = X % 500
ans += X // 5 * 5
print(ans) | [
"literal.number.integer.change",
"expression.operation.binary.change"
] | 499,058 | 499,059 | u971096161 | python |
p02724 | X = int(input())
ans = 0
ans += X//500 * 1000
x = x % 500
ans += X // 500 * 5
print(ans) | X = int(input())
ans = 0
ans += X//500 * 1000
X = X % 500
ans += X // 5 * 5
print(ans) | [
"assignment.variable.change",
"identifier.change",
"assignment.value.change",
"expression.operation.binary.change",
"literal.number.integer.change"
] | 499,060 | 499,059 | u971096161 | 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"
] | 499,061 | 499,062 | u502028059 | python |
p02724 | import math
n=int(input())
t=(n//500)*1000
s=(n-t*500//5)*5
print(t+s)
| import math
n=int(input())
t=(n//500)
s=((n-t*500)//5)*5
print(t*1000+s) | [
"expression.operation.binary.remove"
] | 499,067 | 499,068 | u606784601 | python |
p02724 | x = int(input())
c1 = 0
c2 = 0
c1 = x // 500
x %= 500
c2 = x % 5
print(c1 * 1000 + c2 * 5)
| x = int(input())
c1 = 0
c2 = 0
c1 = x // 500
x %= 500
c2 = x // 5
print(c1 * 1000 + c2 * 5)
| [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 499,077 | 499,078 | u996434204 | python |
p02724 | s = int(input())
a = s // 500
b = s % 500
c = b // 5
print(a, c)
print(a * 1000 + c * 5)
| s = int(input())
a = s // 500
b = s % 500
c = b // 5
print(a * 1000 + c * 5)
| [
"call.remove"
] | 499,085 | 499,086 | u727057618 | python |
p02724 | from collections import deque
from collections import Counter
from itertools import product, permutations,combinations
from operator import itemgetter
from heapq import heappop, heappush
from bisect import bisect_left, bisect_right, bisect
#pypyではscipy, numpyは使えない
#from scipy.sparse.csgraph import shortest_path, floyd_... | from collections import deque
from collections import Counter
from itertools import product, permutations,combinations
from operator import itemgetter
from heapq import heappop, heappush
from bisect import bisect_left, bisect_right, bisect
#pypyではscipy, numpyは使えない
#from scipy.sparse.csgraph import shortest_path, floyd_... | [
"expression.operation.binary.add"
] | 499,107 | 499,108 | u193264896 | python |
p02724 | x=int(input())
ans=(x//500)*1000
rem=x%500
ans+=(rem//5)*5
| x=int(input())
ans=(x//500)*1000
rem=x%500
ans+=(rem//5)*5
print(ans) | [
"call.add"
] | 499,113 | 499,114 | u623687794 | python |
p02725 | K, N = map(int, input().split())
Alst = list(map(int, input().split()))
zero = Alst[0] + K
M = 0
now = Alst[0]
for i in Alst:
dis = i - now
if dis > M:
M = dis
now = i
last = zero - now
if last > M:
M = last
print(M) | K, N = map(int, input().split())
Alst = list(map(int, input().split()))
zero = Alst[0] + K
M = 0
now = Alst[0]
for i in Alst:
dis = i - now
if dis > M:
M = dis
now = i
last = zero - now
if last > M:
M = last
print(K - M) | [
"expression.operation.binary.add"
] | 499,127 | 499,128 | u607155447 | python |
p02725 |
k, n = map(int, input().split())
a_list = list(map(int, input().split()))
longest = 0
for i in range(n-1):
distance = a_list[i+1] - a_list[i]
longest = max(longest, distance)
print(max(longest, k-a_list[n-1]+a_list[0])) | k, n = map(int, input().split())
a_list = list(map(int, input().split()))
longest = 0
for i in range(n-1):
distance = a_list[i+1] - a_list[i]
longest = max(longest, distance)
print(k-max(longest, k-a_list[n-1]+a_list[0])) | [
"expression.operation.binary.add"
] | 499,129 | 499,130 | u320098990 | python |
p02725 | K, N = map(int, input().split(' '))
A_ls = list(map(int, input().split(' ')))
rst = -1
for i in range(N):
l = A_ls[(i + 1) % N] - A_ls[i]
if i < 0:
l = K - A_ls[i] + A_ls[(i + 1) % N]
if rst == -1:
rst = l
else:
rst = max(rst, l)
print(K - rst) | K, N = map(int, input().split(' '))
A_ls = list(map(int, input().split(' ')))
rst = -1
for i in range(N):
l = A_ls[(i + 1) % N] - A_ls[i]
if l < 0:
l = K - A_ls[i] + A_ls[(i + 1) % N]
if rst == -1:
rst = l
else:
rst = max(rst, l)
print(K - rst) | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 499,139 | 499,140 | u418149936 | python |
p02725 | K,N = map(int,input().split())
dis = list(map(int,input().split()))
dif = []
for i in range(N-2):
dif.append(int(dis[i+1]-dis[i]))
dif.append(int(K-dis[N-1]+dis[0]))
print(K-max(dif))
| K,N = map(int,input().split())
dis = list(map(int,input().split()))
dif = []
for i in range(N-1):
dif.append(int(dis[i+1]-dis[i]))
dif.append(int(K-dis[N-1]+dis[0]))
print(K-max(dif))
| [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 499,141 | 499,142 | u538784937 | python |
p02725 | K, N = map(int, input().split())
A = list(map(int, input().split()))
A = sorted(A)
L = []
ANS = 0
A_max = max(A)
for i in range(N-1):
L.append(abs(A[i+1]-A[i]))
L.append(K - A_max)
L = sorted(L)
L.pop(-1)
for i in range(len(L)):
ANS = ANS + L[i]
print(ANS) | K, N = map(int, input().split())
A = list(map(int, input().split()))
A = sorted(A)
L = []
ANS = 0
A_max = max(A)
for i in range(N-1):
L.append(abs(A[i+1]-A[i]))
L.append(K + A[0] - A_max)
L = sorted(L)
L.pop(-1)
for i in range(len(L)):
ANS = ANS + L[i]
print(ANS)
| [
"expression.operation.binary.add"
] | 499,143 | 499,144 | u498531348 | python |
p02725 | k, n = map(int, input().split())
a = list(map(int, input().split()))
print(a)
d = [a[i+1] - a[i] for i in range(n - 1)]
d.append(a[0] - a[n-1] + k)
print(k - max(d)) | k, n = map(int, input().split())
a = list(map(int, input().split()))
d = [a[i+1] - a[i] for i in range(n - 1)]
d.append(a[0] - a[n-1] + k)
print(k - max(d)) | [
"call.remove"
] | 499,147 | 499,148 | u148981246 | python |
p02725 | k,n = map(int,input().split())
a = list(map(int,input().split()))
for i in range(n-1):
a.append(k+a[i])
ans = a[n-1]-a[0]
for i in range(n,n*2-1):
ans = min(ans,a[i]-a[i-n])
print(ans) | k,n = map(int,input().split())
a = list(map(int,input().split()))
for i in range(n-1):
a.append(k+a[i])
ans = a[n-1]-a[0]
for i in range(n,n*2-1):
ans = min(ans,a[i]-a[i-n+1])
print(ans) | [
"assignment.change"
] | 499,151 | 499,152 | u357751375 | python |
p02725 | k,n = [int(x) for x in input().split()]
a = [int(x) for x in input().split()]
c = a[0] + (k - a[n-1])
for i in range(1,n):
d = max(c, a[i] - a[i-1])
print(k - d)
| k,n = [int(x) for x in input().split()]
a = [int(x) for x in input().split()]
c = a[0] + (k - a[n-1])
for i in range(1,n):
c = max(c,a[i]-a[i-1])
print(k-c)
| [
"assignment.variable.change",
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 499,153 | 499,154 | u850243304 | python |
p02725 | K,N=map(int,input().split())
A=list(map(int,input().split()))
l=[]
A+=A[0]+K
for i in range(N):
l.append(A[i+1]-A[i])
print(K-max(l)) | K,N=map(int,input().split())
A=list(map(int,input().split()))
l=[]
A.append(A[0]+K)
for i in range(N):
l.append(A[i+1]-A[i])
print(K-max(l))
| [
"call.add",
"call.arguments.change"
] | 499,155 | 499,156 | u827261928 | python |
p02725 | k,n = map(int,input().split())
Ai = list(map(int,input().split()))
kyori = []
for x in range(n-1):
kyori.append(Ai[x+1]-Ai[x])
kyori.append(Ai[0]+k-Ai[n-1])
kyoto.remove(max(kyori))
print(sum(kyori))
| k,n = map(int,input().split())
Ai = list(map(int,input().split()))
kyori = []
for x in range(n-1):
kyori.append(Ai[x+1]-Ai[x])
kyori.append(Ai[0]+k-Ai[n-1])
kyori.remove(max(kyori))
print(sum(kyori))
| [
"identifier.change"
] | 499,159 | 499,160 | u904331908 | python |
p02725 | K, N = map(int, input().split())
A = list(map(int, input().split()))
dist = [0] * N
for i in range(N - 1):
dist[i] = A[i + 1] - A[i]
dist[N - 1] = (K - A[N - 1]) + A[0]
max_dist = max(dist)
print(max_dist)
| K, N = map(int, input().split())
A = list(map(int, input().split()))
dist = [0] * N
for i in range(N - 1):
dist[i] = A[i + 1] - A[i]
dist[N - 1] = (K - A[N - 1]) + A[0]
max_dist = max(dist)
print(K - max_dist)
| [
"expression.operation.binary.add"
] | 499,168 | 499,169 | u364555831 | python |
p02725 | k,n,*a=map(int,open(0).read().split())
l=k-a[n-1]+a[0]
for i in range(n-1):
l=max(l,a[i+1]-a[i])
print(l) | k,n,*a=map(int,open(0).read().split())
l=k-a[n-1]+a[0]
for i in range(n-1):
l=max(l,a[i+1]-a[i])
print(k-l) | [
"expression.operation.binary.add"
] | 499,172 | 499,173 | u124864167 | python |
p02725 | n,k=map(int,input().split())
A=list(map(int,input().split()))
S=[0 for _ in range(k)]
for i in range(1,k+1):
if i!=k:
S[i-1]=A[i]-A[i-1]
else:
S[i-1]=S[0]+n-A[k-1]
print(n-max(S))
| n,k=map(int,input().split())
A=list(map(int,input().split()))
S=[0 for _ in range(k)]
for i in range(1,k+1):
if i!=k:
S[i-1]=A[i]-A[i-1]
else:
S[i-1]=A[0]+n-A[k-1]
print(n-max(S))
| [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 499,183 | 499,185 | u344813796 | python |
p02725 | k,n=map(int,input().split())
l=list(map(int,input().split()))
diff=[]
l.append(l[0]+k)
for i in range(n-1):
diff.append(l[n+1]-l[n])
print(sum(diff)-max(diff)) | k,n=map(int,input().split())
l=list(map(int,input().split()))
diff=[]
l.append(l[0]+k)
for i in range(n):
diff.append(l[i+1]-l[i])
print(sum(diff)-max(diff))
| [
"expression.operation.binary.remove",
"identifier.change",
"variable_access.subscript.index.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 499,199 | 499,200 | u999503965 | python |
p02725 | K, N = map(int, input().split())
A = list(map(int, input().split()))
A.append(K+A[0])
ans = 0
for i in range(N):
ans = max(ans, A[i+1]-A[i])
print(ans)
| K, N = map(int, input().split())
A = list(map(int, input().split()))
A.append(K+A[0])
ans = 0
for i in range(N):
ans = max(ans, A[i+1]-A[i])
print(K-ans)
| [
"expression.operation.binary.add"
] | 499,206 | 499,208 | u815763296 | python |
p02725 | K, N = map(int, input().split())
Nlist = list(map(int, input().split()))
ans = min(Nlist[N-1]-Nlist[0], Nlist[0]+K-Nlist[N-1])
sa = Nlist[0]
for i in range(1, N):
if Nlist[i]-sa > ans:
ans = Nlist[i]-sa
sa = Nlist[i]
print(ans)
| K, N = map(int, input().split())
Nlist = list(map(int, input().split()))
ans = min(Nlist[N-1]-Nlist[0], Nlist[0]+K-Nlist[N-1])
sa = Nlist[0]
for i in range(1, N):
if Nlist[i]-sa > ans:
ans = Nlist[i]-sa
sa = Nlist[i]
print(K-ans)
| [
"expression.operation.binary.add"
] | 499,210 | 499,211 | u815763296 | python |
p02725 | K, N = [int(x) for x in input().split()]
A = list([int(x) for x in input().split()])
result = []
for i in range(N):
if i == N - 1:
result.append(K - A[i] + A[0])
else:
result.appnd(A[i + 1] - A[i])
result.sort()
print(sum(result[:-1]))
| K, N = [int(x) for x in input().split()]
A = list([int(x) for x in input().split()])
result = []
for i in range(N):
if i == N - 1:
result.append(K - A[i] + A[0])
else:
result.append(A[i + 1] - A[i])
result.sort()
print(sum(result[:-1]))
| [
"identifier.change"
] | 499,212 | 499,214 | u891516200 | python |
p02725 | k,n = map(int, input().split())
a= list(map(int,input().split()))
sa=[0]*n
for i in range(n-1):
sa[i]=a[i+1]-a[i]
sa[n-1]=a[0]+(k-a[n-1])
print(sa)
ans=max(sa)
ans=k-ans
print(ans) | k,n = map(int, input().split())
a= list(map(int,input().split()))
sa=[0]*n
for i in range(n-1):
sa[i]=a[i+1]-a[i]
sa[n-1]=a[0]+(k-a[n-1])
#print(sa)
ans=max(sa)
ans=k-ans
print(ans) | [
"call.remove"
] | 499,227 | 499,229 | u574464625 | python |
p02725 | k,n = map(int,input().spliut())
a = list(map(int,input().split()))
ans = a[0]+(k-a[-1])
for i in range(n-1):
ans = max(ans,a[i+1]-a[i])
print(k-ans) | k,n = map(int,input().split())
a = list(map(int,input().split()))
ans = a[0]+(k-a[-1])
for i in range(n-1):
ans = max(ans,a[i+1]-a[i])
print(k-ans) | [
"assignment.value.change",
"identifier.change",
"call.arguments.change"
] | 499,238 | 499,240 | u175590965 | python |
p02725 | k,n = map(int,input().split())
a = list(map(int,input().split()))
aa = a + a
for j in range(n,2*n):
aa[j] = aa[j] + k
dis = k
for i in range((2*n)-1):
tonari = aa[i+1]-aa[i]
dis = min(dis,k-tonari)
print(dis)
print(aa) | k,n = map(int,input().split())
a = list(map(int,input().split()))
aa = a + a
for j in range(n,2*n):
aa[j] = aa[j] + k
dis = k
for i in range((2*n)-1):
tonari = aa[i+1]-aa[i]
dis = min(dis,k-tonari)
print(dis) | [
"call.remove"
] | 499,242 | 499,245 | u369502636 | python |
p02725 | p,q= input().split()
a,b =(int(p), int(q))
f = map(int,input().split())
f_list = list(f)
out_dis =f_list[0] + a -f_list[b-1]
dis_list=[out_dis]
for i in range(b-1):
dis = f_list[i+1]-f_list[i]
dis_list.append(dis)
print(int((sum(dis_list)-max(dis_list))%20)) | p,q= input().split()
a,b =(int(p), int(q))
f = map(int,input().split())
f_list = list(f)
out_dis =f_list[0] + a -f_list[b-1]
dis_list=[out_dis]
for i in range(b-1):
dis = f_list[i+1]-f_list[i]
dis_list.append(dis)
print(int((sum(dis_list)-max(dis_list)))) | [
"expression.operation.binary.remove"
] | 499,261 | 499,262 | u224554402 | python |
p02725 | K, N = map(int, input().split())
A = list(map(int, input().split()))
max_ = [0, 20+A[0]-A[-1]]
for i in range(1, N):
tmp = A[i] - A[i-1]
if tmp > max_[1]:
max_[0] = i
max_[1] = tmp
print(K-max_[1]) | K, N = map(int, input().split())
A = list(map(int, input().split()))
#0と最後
max_ = [0, K+A[0]-A[-1]]
#iとi+1
for i in range(1, N):
tmp = A[i] - A[i-1]
if tmp > max_[1]:
max_[0] = i
max_[1] = tmp
print(K-max_[1]) | [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove",
"expression.operation.binary.change"
] | 499,264 | 499,266 | u452337391 | python |
p02725 | k,n=map(int,input().split())
a=list(map(int,input().split()))
b=[]
for i in range(n-1):
b.append(a[i+1]-a[i])
b.append((k-a[n-1])+a[0])
print(b)
print(k-max(b)) | k,n=map(int,input().split())
a=list(map(int,input().split()))
b=[]
for i in range(n-1):
b.append(a[i+1]-a[i])
b.append((k-a[n-1])+a[0])
print(k-max(b)) | [
"call.remove"
] | 499,184 | 499,186 | u910632349 | python |
p02725 | K,N=map(int, input().split())
A=list(map(int, input().split()))
B=[0]*N
for i in range(N-1):
B[i]=A[i+1]-A[i]
B[-1]=A[0]+K-A[-1]
ans = sum(B[0:-1])
print(ans) | K,N=map(int, input().split())
A=list(map(int, input().split()))
B=[0]*N
for i in range(N-1):
B[i]=A[i+1]-A[i]
B[-1]=A[0]+K-A[-1]
B=sorted(B)
ans = sum(B[0:-1])
print(ans) | [
"assignment.add"
] | 499,192 | 499,194 | u247211039 | python |
p02725 | K,N=map(int, input().split())
A=list(map(int, input().split()))
B=[0]*N
for i in range(N-1):
B[i]=A[i+1]-A[i]
B[-1]=K-A[-1]
B=sorted(B)
ans = sum(B[:-1])
print(ans) | K,N=map(int, input().split())
A=list(map(int, input().split()))
B=[0]*N
for i in range(N-1):
B[i]=A[i+1]-A[i]
B[-1]=A[0]+K-A[-1]
B=sorted(B)
ans = sum(B[0:-1])
print(ans) | [
"call.arguments.change"
] | 499,196 | 499,194 | u247211039 | python |
p02725 | k,n = map(int,input().split())
A = list(map(int,input().split()))
B=[]
t=0
for a in A:
B.append(a-t)
t=a
B[0] +=k-t
print(B, k-max(B) ) | k,n = map(int,input().split())
A = list(map(int,input().split()))
B=[]
t=0
for a in A:
B.append(a-t)
t=a
B[0] +=k-t
print(k-max(B) ) | [
"call.arguments.change"
] | 499,217 | 499,219 | u707030679 | python |
p02725 | K,N=map(int,input().split())
A=list(map(int,input().split()))
l=[]
p = A[-1]-K
for a in A:
l.append(a-l)
p=a
print(sum(l)-max(l)) | K,N=map(int,input().split())
A=list(map(int,input().split()))
l=[]
p = A[-1]-K
for a in A:
l.append(a-p)
p=a
print(sum(l)-max(l))
| [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 499,230 | 499,232 | u054825571 | python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.