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 |
|---|---|---|---|---|---|---|---|
p02755 | cuts = []
for i in range(2000):
cuts+= [[int(i*0.08), int(i*0.10)]]
A, B = map(int,input().split())
for i in range(1,2000):
if [A, B] == cuts[i]:
print(i)
break
else:
print(0) | cuts = []
for i in range(2000):
cuts+= [[int(i*0.08), int(i*0.10)]]
A, B = map(int,input().split())
for i in range(1,2000):
if [A, B] == cuts[i]:
print(i)
break
else:
print(-1) | [
"call.arguments.change",
"io.output.change",
"expression.operation.unary.add"
] | 539,275 | 539,276 | u667084803 | python |
p02755 | A, B = map(int,input().split())
#消費税0.08 0.1
import math
ans = -1
for n in range(1001):##最大値を間違えていた
if math.floor(n*0.08) == A and math.floor(n*0.1) == B:
a = n
break
print(ans) | #input
A, B = map(int,input().split())
#消費税0.08 0.1
import math
ans = -1
for n in range(1001):##最大値を間違えていた
if math.floor(n*0.08) == A and math.floor(n*0.1) == B:
ans = int(n)
break
print(ans) | [
"assignment.variable.change",
"identifier.change",
"call.add",
"call.arguments.change"
] | 539,277 | 539,278 | u849151695 | python |
p02755 | '''input
8 10
'''
import math
a, b = input().split()
a = int(a)
b = int(b)
a_low = math.floor((a + 0.000) / 0.08)
a_hig = math.floor((a + 0.999) / 0.08)
b_low = math.floor((b + 0.000) / 0.1)
b_hig = math.floor((b + 0.999) / 0.1)
if b_low <= a_low and a_low <= b_hig:
print(a_low)
exit()
if a_low <= b_low an... | '''input
8 10
'''
import math
a, b = input().split()
a = int(a)
b = int(b)
a_low = math.ceil((a + 0.000) / 0.08)
a_hig = math.floor((a + 0.999) / 0.08)
b_low = math.ceil((b + 0.000) / 0.1)
b_hig = math.floor((b + 0.999) / 0.1)
if b_low <= a_low and a_low <= b_hig:
print(a_low)
exit()
if a_low <= b_low and ... | [
"misc.opposites",
"assignment.value.change",
"identifier.change"
] | 539,288 | 539,289 | u168474884 | python |
p02755 | A, B= map(int,input().split())
ans = -1
for i in range(101):
if int(i*0.08) == A and int(i*0.1) == B:
ans = i
break
print(ans) | A, B= map(int,input().split())
ans = -1
for i in range(1001):
if int(i*0.08) == A and int(i*0.1) == B:
ans = i
break
print(ans) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 539,301 | 539,302 | u152638361 | python |
p02755 | a,b=map(int,input().split())
for i in range(1,1001):
if int(i*0.08)==a and int(i*0.1)==b:
print(i)
exit() | a,b=map(int,input().split())
for i in range(1,1001):
if int(i*0.08)==a and int(i*0.1)==b:
print(i)
exit()
print(-1) | [
"call.add"
] | 539,303 | 539,304 | u445404615 | python |
p02755 | A,B=map(int,input().split())
for i in range(10000):
if A==int(i*0.08) and B==int(i*0.1) :
print(i)
exit()
plint("-1")
| A,B=map(int,input().split())
for i in range(10000):
if A==int(i*0.08) and B==int(i*0.1) :
print(i)
exit()
print("-1")
| [
"identifier.change",
"call.function.change"
] | 539,331 | 539,332 | u246372582 | python |
p02755 | A,B=map(int,input().split())
for i in range(10000):
if A==int(i*0.08) and B==(i*0.1) :
print(i)
exit()
plint("-1") | A,B=map(int,input().split())
for i in range(10000):
if A==int(i*0.08) and B==int(i*0.1) :
print(i)
exit()
print("-1")
| [
"call.add",
"control_flow.branch.if.condition.change",
"identifier.change",
"call.function.change"
] | 539,333 | 539,332 | u246372582 | python |
p02755 | a, b = map(int, input().split())
r = -1
for price in range(1010):
tax_8 = int(price * 0.08)
tax_10 = int(price * 0.1)
if tax_8 == a and tax_10 == b:
r = price
braek
print(r)
| a, b = map(int, input().split())
r = -1
for price in range(1010):
tax_8 = int(price * 0.08)
tax_10 = int(price * 0.1)
if tax_8 == a and tax_10 == b:
r = price
break
print(r)
| [] | 539,341 | 539,342 | u723345499 | python |
p02755 | a, b = map(int, input().split())
r = "-1"
for price in range(1010):
tax_8 = int(price * 0.08)
tax_10 = int(price * 0.1)
if tax_8 == a and tax_10 == b :
r = price
braek
print(r) | a, b = map(int, input().split())
r = -1
for price in range(1010):
tax_8 = int(price * 0.08)
tax_10 = int(price * 0.1)
if tax_8 == a and tax_10 == b:
r = price
break
print(r)
| [] | 539,343 | 539,342 | u723345499 | python |
p02755 | a, b = map(int, input().split())
r = "-1"
for price in range(1010):
tax_8 = int(price * 0.8)
tax_10 = int(price * 0.1)
if tax_8 == a and tax_10 == b :
r = price
braek
print(r) | a, b = map(int, input().split())
r = -1
for price in range(1010):
tax_8 = int(price * 0.08)
tax_10 = int(price * 0.1)
if tax_8 == a and tax_10 == b:
r = price
break
print(r)
| [
"literal.number.float.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 539,344 | 539,342 | u723345499 | python |
p02755 | a, b = map(int, input().split())
r = -1
for price in range(1010):
tax_8 = int(price * 0.8)
tax_10 = int(price * 0.1)
if tax_8 == a and tax_10 == b :
r = price
braek
print(r)
| a, b = map(int, input().split())
r = -1
for price in range(1010):
tax_8 = int(price * 0.08)
tax_10 = int(price * 0.1)
if tax_8 == a and tax_10 == b:
r = price
break
print(r)
| [
"literal.number.float.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 539,345 | 539,342 | u723345499 | python |
p02755 | A, B = map(int,input().split())
min8 = (A * 25 + 1) // 2
max8 = ((A+1) * 25 - 1) // 2
min10 = A * 10
max10 = (A+1) * 10 - 1
if min10 > max8 or min8 > mix10:
print(-1)
else:
print(min[min8, min10])
| A, B = map(int,input().split())
min8 = (A * 25 + 1) // 2
max8 = ((A+1) * 25 - 1) // 2
min10 = B * 10
max10 = (B+1) * 10 - 1
if min10 > max8 or min8 > max10:
print(-1)
else:
print(max([min8, min10]))
| [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change",
"control_flow.branch.if.condition.change",
"misc.opposites",
"call.arguments.change",
"io.output.change"
] | 539,359 | 539,360 | u137913818 | python |
p02755 | import math
a,b = map(int,input().split())
a_min = math.ceil(a / 0.08)
a_max = math.floor((a + 1) / 0.08)
b_min = math.ceil(b / 0.1)
b_max = math.floor((b + 1) / 0.1)
if a_max < b_min or b_max < a_min:
print('-1')
else:
result = b_min if a_min <= b_min else a_min
print(result) | import math
a,b = map(int,input().split())
a_min = math.ceil(a / 0.08)
a_max = math.floor((a + 1) / 0.08) - 1
b_min = math.ceil(b / 0.1)
b_max = math.floor((b + 1) / 0.1) - 1
if a_max < b_min or b_max < a_min:
print('-1')
else:
result = b_min if a_min <= b_min else a_min
print(result)
| [
"assignment.change"
] | 539,370 | 539,371 | u536642030 | python |
p02755 | import math
a, b = map(int, input().split())
ans = []
for i in range(1, 101):
if math.floor(i * 0.08) == a and math.floor(i * 0.1) == b:
ans.append(i)
print(-1 if not ans else min(ans)) | import math
a, b = map(int, input().split())
ans = []
for i in range(1, 1251):
if math.floor(i * 0.08) == a and math.floor(i * 0.1) == b:
ans.append(i)
print(-1 if not ans else min(ans)) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 539,378 | 539,379 | u322297639 | python |
p02755 | a, b = map(int, input().split())
i = -1
for i in range(1, 10001):
if i * 8 // 100 == a:
if i * 10 // 100 == b:
break
print(i) | a, b = map(int, input().split())
h = -1
for i in range(1, 10001):
if i * 8 // 100 == a:
if i * 10 // 100 == b:
h = i
break
print(h) | [
"assignment.variable.change",
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 539,380 | 539,381 | u694991843 | python |
p02755 | import math
A,B = list(map(int,input().split()))
def problem_gksn(A, B):
x_min = math.ceil(A / (0.08))
x_max = math.floor((A+1)/0.08)
y_min = math.ceil(B / (0.10))
y_max = math.floor((B+1) / (0.10))
# print(x_min,x_max,y_min,y_max)
if max(x_min, y_min) <= min(x_max, y_max):
return max(x_min, y_min)
el... | import math
A,B = list(map(int,input().split()))
def problem_gksn(A, B):
x_min = math.ceil(A / (0.08))
x_max = math.floor((A+1)/0.08)
y_min = math.ceil(B / (0.10))
y_max = math.floor((B+1) / (0.10))
# print(x_min,x_max,y_min,y_max)
if max(x_min, y_min) < min(x_max, y_max):
return max(x_min, y_min)
els... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 539,392 | 539,393 | u262525101 | python |
p02755 | import math
A ,B = list(map(int,input().split()))
def problem_koganemaru(A,B):
for price in range(10000):
if math.ceil(price*0.08) == A and math.ceil(price*0.1) == B:
return price
return -1
print(problem_koganemaru(A,B)) | import math
A ,B = list(map(int,input().split()))
def problem_koganemaru(A,B):
for price in range(10000):
if math.floor(price*0.08) == A and math.floor(price*0.1) == B:
return price
return -1
print(problem_koganemaru(A,B)) | [
"misc.opposites",
"identifier.change",
"control_flow.branch.if.condition.change"
] | 539,394 | 539,395 | u262525101 | python |
p02755 | import math
A ,B = list(map(int,input().split()))
def problem_koganemaru(A,B):
for price in range(10000):
if math.ceil(price*0.08) == A and math.ceil(price*0.1) == B:
return price
return -1
print(problem_koganemru(A,B)) | import math
A ,B = list(map(int,input().split()))
def problem_koganemaru(A,B):
for price in range(10000):
if math.floor(price*0.08) == A and math.floor(price*0.1) == B:
return price
return -1
print(problem_koganemaru(A,B)) | [
"misc.opposites",
"identifier.change",
"control_flow.branch.if.condition.change",
"call.function.change",
"call.arguments.change",
"io.output.change"
] | 539,396 | 539,395 | u262525101 | python |
p02755 | A ,B = list(map(int,input().split()))
def problem_koganemaru(A,B):
# x = A / (0.08)
# y = B / (0.10)
# print(x,y)
# if x == y:
# return x
# else:
# return -1
for price in range(10000):
if math.ceil(price*0.08) == A and math.ceil(price*0.1) == B:
return price
return -1
print(problem... | import math
A ,B = list(map(int,input().split()))
def problem_koganemaru(A,B):
for price in range(10000):
if math.floor(price*0.08) == A and math.floor(price*0.1) == B:
return price
return -1
print(problem_koganemaru(A,B)) | [
"misc.opposites",
"identifier.change",
"control_flow.branch.if.condition.change"
] | 539,397 | 539,395 | u262525101 | python |
p02755 | import math
A,B = list(map(int,input().split()))
def problem_gksn(A, B):
x_min = math.ceil(A / (0.08))
x_max = math.floor((A+1)/0.08)
y_min = math.ceil(B / (0.10))
y_max = math.floor((B+1) / (0.10))
if max(x_min, y_min) <= min(x_max, y_max):
return max(x_min, y_min)
else:
return -1
print(problem_gks... | import math
A,B = list(map(int,input().split()))
def problem_gksn(A, B):
x_min = math.ceil(A / (0.08))
x_max = math.floor((A+1)/0.08)
y_min = math.ceil(B / (0.10))
y_max = math.floor((B+1) / (0.10))
if max(x_min, y_min) < min(x_max, y_max):
return max(x_min, y_min)
else:
return -1
print(problem_gksn... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 539,398 | 539,399 | u234761782 | python |
p02755 | a, b = map(int, input().split())
for i in range(1,1009):
if int(i*0.08) == a and int(i*0.1) == b:
print(int(i))
print("-1") | a, b = map(int, input().split())
for i in range(1,1009):
if int(i*0.08) == a and int(i*0.1) == b:
print(int(i))
exit()
print("-1") | [
"call.add"
] | 539,402 | 539,403 | u271752821 | python |
p02755 | a, b = map(int, input().split())
for i in range(909,1009):
if int(i*0.08) == a and int(i*0.1) == b:
print(int(i))
print("-1") | a, b = map(int, input().split())
for i in range(1,1009):
if int(i*0.08) == a and int(i*0.1) == b:
print(int(i))
exit()
print("-1") | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.lower.change",
"call.add"
] | 539,404 | 539,403 | u271752821 | python |
p02755 | a, b = map(int, input().split())
flag = True
for i in range(101):
t1 = i*1.08
t2 = i*1.10
if int(t1-i) == a and int(t2-i) == b:
print(i)
flag = False
break
if flag:
print(-1) | a, b = map(int, input().split())
flag = True
for i in range(1010):
t1 = i*1.08
t2 = i*1.10
if int(t1-i) == a and int(t2-i) == b:
print(i)
flag = False
break
if flag:
print(-1) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 539,409 | 539,410 | u054559808 | python |
p02755 | a,b = map(int,input().split())
for i in range(1,112):
if(int(i*0.08) == a and int(i*0.10) == b):
print(i)
exit()
print(-1) | a,b = map(int,input().split())
for i in range(1,1101):
if(int(i*0.08) == a and int(i*0.10) == b):
print(i)
exit()
print(-1) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 539,424 | 539,425 | u244416763 | python |
p02755 | a, b = (int(x) for x in input().split())
aa = int(min(a / 0.08, b/0.1))
bb = int(max(a / 0.08, b/0.1))
ans = -1
for c in range(aa, bb + 1):
if int(c*0.08) == a and int(c*0.1) == b:
ans = c
break
print(ans)
| a, b = (int(x) for x in input().split())
aa = int(min(a/0.08, b/0.1))
bb = int(max(a/0.08, b/0.1))
ans = -1
for c in range(1500):
if int(c*0.08) == a and int(c*0.1) == b:
ans = c
break
print(ans)
| [
"identifier.replace.remove",
"literal.replace.add",
"call.arguments.change",
"control_flow.loop.range.bounds.lower.change"
] | 539,430 | 539,431 | u500006160 | python |
p02755 | a,b=(int(x) for x in input().split())
for i in range(1,1010):
ia=int(i*0.1)
ib=int(i*0.08)
if ia==a and ib==b:
print (i)
exit()
else:
print (-1) | a,b=(int(x) for x in input().split())
for i in range(1,1010):
# print (i)
ia=int(i*0.08)
ib=int(i*0.1)
# print (ia,ib)
if ia==a and ib==b:
print (i)
exit()
else:
print (-1) | [
"assignment.remove",
"assignment.add"
] | 539,446 | 539,447 | u158583803 | python |
p02755 | tax = [int(n) for n in input().split()]
max_8tax = (tax[0]+1) / .08
min_8tax = (tax[0]) / .08
max_10tax = int((tax[1]+1) / .1) - 1
min_10tax = int((tax[1]) / .1)
r = -1
#print(max_8tax, min_8tax)
#print(max_10tax, min_10tax)
for i in range(min_10tax, max_10tax):
if min_8tax <= i and i <= max_8tax:
r = i... | tax = [int(n) for n in input().split()]
max_8tax = (tax[0]+1) / .08
min_8tax = tax[0] / .08
max_10tax = int((tax[1]+1) / .1) - 1
min_10tax = int(tax[1] / .1)
r = -1
for i in range(min_10tax, max_10tax):
if min_8tax <= i and i < max_8tax:
r = i
break
print(r) | [
"call.arguments.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 539,452 | 539,451 | u368348632 | python |
p02755 | import math
a,b = map(int, input().split())
for i in range(1 , 1e5):
a2 = math.floor(i*0.08)
b2 = math.floor(i*0.1)
if a2 == a and b2 == b:
exit(print(i))
print(-1) | import math
a,b = map(int, input().split())
for i in range(1 , 100000):
a2 = math.floor(i*0.08)
b2 = math.floor(i*0.1)
if a2 == a and b2 == b:
exit(print(i))
print(-1) | [
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 539,453 | 539,454 | u733581231 | python |
p02755 | import math
s = input().split(" ")
A = int(s[0])
B = int(s[1])
for i in range(101):
e = math.floor(i * 0.08)
t = math.floor(i * 0.1)
if e == A and t == B:
print(i)
break
else:
print(-1) | import math
s = input().split(" ")
A = int(s[0])
B = int(s[1])
for i in range(1001):
e = math.floor(i * 0.08)
t = math.floor(i * 0.1)
if e == A and t == B:
print(i)
break
else:
print(-1) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 539,466 | 539,467 | u274841648 | python |
p02755 | A,B=map(int,input().split())
x=int(A/0.08)
y=int(B/0.1)
if int(x*0.08)!=A:
x+=1
if int(x*0.1)!=B:
y+=1
eight=[i for i in range(x,1251) if int(i*0.08)==A]
ten=[i for i in range(y,1001) if int(i*0.1)==B]
eight_set=set(eight)
ten_set=set(ten)
ans_set=eight_set&ten_set
ans=list(ans_set)
if len(ans)>0:
print(min... | A,B=map(int,input().split())
x=int(A/0.08)
y=int(B/0.1)
if int(x*0.08)!=A:
x+=1
if int(y*0.1)!=B:
y+=1
eight=[i for i in range(x,1251) if int(i*0.08)==A]
ten=[i for i in range(y,1001) if int(i*0.1)==B]
eight_set=set(eight)
ten_set=set(ten)
ans_set=eight_set&ten_set
ans=list(ans_set)
if len(ans)>0:
print(min... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 539,474 | 539,475 | u871934301 | python |
p02755 | import math
import sys
a , b = map(int , input().split())
for i in range(1000):
if math.floor(i * 0.08) == a and math.floor(i * 0.1) == b:
print(i)
sys.exit()
print(-1) | import math
import sys
a , b = map(int , input().split())
for i in range(1001):
if math.floor(i * 0.08) == a and math.floor(i * 0.1) == b:
print(i)
sys.exit()
print(-1) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 539,478 | 539,480 | u228636605 | python |
p02755 | import math
import sys
a , b = map(int , input().split())
for i in range(1000):
if math.floor(i * 0.08) == a and math.floor(i * 0.1) == b:
print(i)
sys.exit()
print(-1) | import math
import sys
a , b = map(int , input().split())
for i in range(2000):
if math.floor(i * 0.08) == a and math.floor(i * 0.1) == b:
print(i)
sys.exit()
print(-1) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 539,478 | 539,481 | u228636605 | python |
p02755 | a,b = map(int,input().split())
for i in range(10**5):
if int(i*0.08)==a and int(i**0.1)==b:
print(i)
exit()
print(-1) | a,b = map(int,input().split())
for i in range(10**5):
if int(i*0.08)==a and int(i*0.1)==b:
print(i)
exit()
print(-1) | [
"control_flow.branch.if.condition.change"
] | 539,485 | 539,486 | u410118019 | python |
p02755 | S = input().split()
A = int(S[0])
B = int(S[1])
R = -1
for i in range(100):
#print(i+1)
j = i + 1
AMTA = int(j * 0.08)
AMTB = int(j * 0.1)
if AMTA == A and AMTB == B:
R = j
break
if AMTA > A and AMTB > B:
break
print(R) | S = input().split()
A = int(S[0])
B = int(S[1])
R = -1
for i in range(1009):
#print(i+1)
j = i + 1
AMTA = int(j * 0.08)
AMTB = int(j * 0.1)
if AMTA == A and AMTB == B:
R = j
break
if AMTA > A and AMTB > B:
break
print(R) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 539,487 | 539,488 | u161868822 | python |
p02755 | #input
A, B = map(int, input().split())
#output
import math
p = math.ceil(max(A/0.08, B/0.1))
q = math.floor(min((A+1)/0.08, (B+1)/0.1))
answer = 0
if p <= q:
answer = p
else:
answer = -1
print(answer) | #input
A, B = map(int, input().split())
#output
import math
p = math.ceil(max(A/0.08, B/0.1))
q = math.floor(min((A+1)/0.08, (B+1)/0.1))
answer = 0
if p < q:
answer = p
else:
answer = -1
print(answer) | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 539,493 | 539,494 | u461454424 | python |
p02755 | a,b = map(int,input().split())
for i in range(b * 10,(b + 1) * 10):
if int(x * 0.08) == a and int(x * 0.1) == b:
print(x)
break
else:
print(-1) | a,b = map(int,input().split())
for x in range(b * 10,(b + 1) * 10):
if int(x * 0.08) == a and int(x * 0.1) == b:
print(x)
break
else:
print(-1) | [
"identifier.change"
] | 539,499 | 539,500 | u201082459 | python |
p02755 | a,b = [int(i) for i in input().split()]
flg = False
for i in range(1,101):
a_s = int(i * 0.08)
b_s = int(i * 0.1)
if a_s == a and b_s == b:
ans = i
flg = True
break
print(ans if flg else '-1')
| a,b = [int(i) for i in input().split()]
flg = False
for i in range(1,1009):
a_s = int(i * 0.08)
b_s = int(i * 0.1)
if (a_s == a) and (b_s == b):
ans = i
flg = True
break
print(ans if flg else '-1')
| [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"control_flow.branch.if.condition.change"
] | 539,507 | 539,508 | u183840468 | python |
p02755 | import math
A, B = map(int, input().split())
max = 1000 # これ以上の値は絶対に条件Bを満たさない。
for i in range(1, max):
if int(i * 0.08) == A and int(i * 0.1) == B:
print(i)
exit()
print(-1) | import math
A, B = map(int, input().split())
max = 1001 # これ以上の値は絶対に条件Bを満たさない。
for i in range(1, max):
if int(i * 0.08) == A and int(i * 0.1) == B:
print(i)
exit()
print(-1) | [
"literal.number.integer.change",
"assignment.value.change"
] | 539,515 | 539,516 | u875541136 | python |
p02755 | a, b = map(int, input().split())
ans = -1
for i in range(1001):
if int(i*0.08) == a and int(i*0.1) == b:
ans = i
break
print(i) | a, b = map(int, input().split())
ans = -1
for i in range(1001):
if int(i*0.08) == a and int(i*0.1) == b:
ans = i
break
print(ans) | [
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 539,517 | 539,518 | u548976218 | python |
p02755 | A, B = map(int, input().split())
for x in range(200):
a = x * 8 // 100
b = x * 10 // 100
if a == A and b == B:
print(x)
quit()
print(-1) | A, B = map(int, input().split())
for x in range(1010):
a = x * 8 // 100
b = x * 10 // 100
if a == A and b == B:
print(x)
quit()
print(-1) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 539,524 | 539,525 | u606045429 | python |
p02755 | A, B = map(int, input().split())
ans = -1
for i in range(1,1010):
if int(1 * 0.08) == A and int(i * 0.1) == B:
ans = i
break
print(ans)
| A, B = map(int, input().split())
ret = -1
for i in range(1,1010):
if int(i * 0.08) == A and int(i * 0.1) == B:
ret = i
break
print(ret) | [
"assignment.variable.change",
"identifier.change",
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"call.arguments.change",
"io.output.change"
] | 539,529 | 539,530 | u107269063 | python |
p02755 | x,y=map(int, input().split())
import math
x1=math.ceil(x*12.5)
x2=math.ceil((x+1)*12.5)-1
y1=math.ceil(y*10)
y2=math.ceil((y+1)*10)-1
if x1>y2 or y1>x2:
print -1
else:
print (int(max(x1,y1))) | x,y=map(int, input().split())
import math
x1=math.ceil(x*12.5)
x2=math.ceil((x+1)*12.5)-1
y1=math.ceil(y*10)
y2=math.ceil((y+1)*10)-1
if x1>y2 or y1>x2:
print (-1)
else:
print (int(max(x1,y1))) | [
"call.arguments.change"
] | 539,537 | 539,538 | u685684561 | python |
p02755 | # Code for C - Tax Increase
# Use input() to fetch data from STDIN
import math
def solve():
[a, b] = map(int, input().split())
for i in range(1, 1000):
if math.floor(i * 0.08) == a and math.floor(i * 0.10) == b:
print(i)
return
print("-1")
solve()
| # Code for C - Tax Increase
# Use input() to fetch data from STDIN
import math
def solve():
[a, b] = map(int, input().split())
for i in range(1, 1009):
if math.floor(i * 0.08) == a and math.floor(i * 0.10) == b:
print(i)
return
print("-1")
solve()
| [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 539,545 | 539,546 | u638629468 | python |
p02755 | a,b=map(int,input().split())
def ceil(x):
if x%1==0:
return x//1
else:
return x//1+1
a1=int(ceil(a*100/8))
a2=int(ceil((a+1)*100/8)-1)
b1=int(ceil(b*100/10))
b2=int(ceil((b+1)*100/10)-1)
count=0
for i in range(a1,a2+1):
if b1<=i<=b2:
print(i)
break
else:
count+=1
if count!=0:
print(-1) | a,b=map(int,input().split())
def ceil(x):
if x%1==0:
return x//1
else:
return x//1+1
a1=int(ceil(a*100/8))
a2=int(ceil((a+1)*100/8)-1)
b1=int(ceil(b*100/10))
b2=int(ceil((b+1)*100/10)-1)
count=0
for i in range(a1,a2+1):
if b1<=i<=b2:
print(i)
count=0
break
else:
count+=1
if count!=0:
p... | [
"assignment.add"
] | 539,550 | 539,551 | u635540732 | python |
p02755 | a,b = map(int,input().split())
for i in range(1, 1001):
if floor(i * 0.08) == a and floor(i * 0.1) == b:
print(i)
else:
print('-1')
| a,b = map(int,input().split())
for i in range(1, 1001):
if int(i * 0.08) == a and int(i * 0.1) == b:
print(i)
break
else:
print('-1')
| [
"identifier.change",
"call.function.change",
"control_flow.branch.if.condition.change",
"control_flow.break.add"
] | 539,554 | 539,555 | u446371873 | python |
p02755 | a,b = map(int,input().split())
for i in range(1, 1001):
if int(i * 0.08) == a and int(i * 0.1) == b:
print(i)
else:
print('-1') | a,b = map(int,input().split())
for i in range(1, 1001):
if int(i * 0.08) == a and int(i * 0.1) == b:
print(i)
break
else:
print('-1')
| [
"control_flow.break.add"
] | 539,556 | 539,555 | u446371873 | python |
p02755 | a,b = map(int,input().split())
for i in range(1,1001):
if int(i * 0.8) == a and int(i * 0.1) == b:
print(i)
else:
print('-1') | a,b = map(int,input().split())
for i in range(1, 1001):
if int(i * 0.08) == a and int(i * 0.1) == b:
print(i)
break
else:
print('-1')
| [
"literal.number.float.change",
"control_flow.branch.if.condition.change",
"control_flow.break.add"
] | 539,557 | 539,555 | u446371873 | python |
p02755 | import sys
read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
def main():
A,B = map(int, readline().split())
x1 = int(A / 0.08)
x2 = int(B / 0.1)
if int(x1 * 0.1) == B:
print(x1)
elif int(x2 * 0.08) == A:
print(x2)
else:
print(-1)
if ... | from math import ceil
import sys
read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
def main():
A,B = map(int, readline().split())
x1 = ceil(A / 0.08)
x2 = ceil(B / 0.1)
if int(x1 * 0.1) == B:
print(x1)
elif int(x2 * 0.08) == A:
print(x2)
else:... | [
"assignment.value.change",
"identifier.change",
"call.function.change"
] | 539,561 | 539,562 | u638456847 | python |
p02755 | import math
[a, b] = [int(i) for i in input().split()]
for i in range(3000):
if math.floor(i*0.08)==a and math.floor(i*0.1)==b:
print(i)
return
print(-1)
| import math
[a, b] = [int(i) for i in input().split()]
for i in range(3000):
if math.floor(i*0.08)==a and math.floor(i*0.1)==b:
print(i)
break
else:
print(-1) | [
"control_flow.return.remove",
"control_flow.break.add"
] | 539,565 | 539,566 | u954534284 | python |
p02755 | # -*- coding: utf-8 -*-
def main():
A,B = map(int,input().split())
for i in range(1,1010):
if (0.08*i)==A and (0.1*i)==B:
print(i)
return
print('-1')
if __name__ == '__main__':
main() | # -*- coding: utf-8 -*-
def main():
A,B = map(int,input().split())
for i in range(1,1010):
if int(0.08*i)==A and int(0.1*i)==B:
print(i)
return
print('-1')
if __name__ == '__main__':
main() | [
"call.add",
"control_flow.branch.if.condition.change"
] | 539,584 | 539,585 | u981040490 | python |
p02755 | a,b=list(map(int,input().split()))
for i in range(1000):
if int(i*0.08)==a and int(i*0.1)==b:
print(i)
break
elif i==100:
print(-1)
| a,b=list(map(int,input().split()))
for i in range(10001):
if int(i*0.08)==a and int(i*0.1)==b:
print(i)
break
elif i==10000:
print(-1)
| [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"control_flow.branch.if.condition.change"
] | 539,603 | 539,604 | u189485655 | python |
p02755 | a,b=list(map(int,input().split()))
for i in range(101):
if int(i*0.08)==a and int(i*0.1)==b:
print(i)
break
elif i==100:
print(-1)
| a,b=list(map(int,input().split()))
for i in range(10001):
if int(i*0.08)==a and int(i*0.1)==b:
print(i)
break
elif i==10000:
print(-1)
| [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"control_flow.branch.if.condition.change"
] | 539,605 | 539,604 | u189485655 | python |
p02755 | S=list(map(int,input().split()))
A=S[0]
B=S[1]
if A%2==0:
C=int(A/0.08)
E=int((A+1)/0.08)
else:
C=int(A/0.08)+1
E=int((A+1)/0.08)-1
D=int(B/0.1)
n=max(C,D)
F=int((B+1)/0.1)
m=min(E,F)
if n<=m:
print(int(n))
else:
print(-1)
| S=list(map(int,input().split()))
A=S[0]
B=S[1]
if A%2==0:
C=int(A/0.08)
E=int((A+1)/0.08)
else:
C=int(A/0.08)+1
E=int((A+1)/0.08)-1
D=int(B/0.1)
n=max(C,D)
F=int((B+1)/0.1)-1
m=min(E,F)
if n<=m:
print(int(n))
else:
print(-1)
| [
"assignment.change"
] | 539,606 | 539,607 | u422990499 | python |
p02755 | a, b = [int(i) for i in input().split()]
A = a/0.08
B = b*10
# print(A, B)
if B-10 < A < B+10:
print(int(max(A, B)+0.5))
else:
print(-1)
| a, b = [int(i) for i in input().split()]
A = a/0.08
B = b*10
if B-10 <= A < B+10:
print(int(max(A, B)+0.5))
else:
print(-1)
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 539,611 | 539,612 | u558182684 | python |
p02755 | a, b = [int(i) for i in input().split()]
A = a/0.08
B = b*10
# print(A, B)
if B-1 < A < B+10:
print(int(max(A, B)+0.5))
else:
print(-1)
| a, b = [int(i) for i in input().split()]
A = a/0.08
B = b*10
if B-10 <= A < B+10:
print(int(max(A, B)+0.5))
else:
print(-1)
| [] | 539,613 | 539,612 | u558182684 | python |
p02755 | a, b = map(int, input().split())
c = max(int(a / 0.08), int(b / 0.10))
if c < min(int((a + 1) / 0.08), int((b + 1) / 0.10)):
print(c)
else:
print(-1) | from math import ceil
a, b = map(int, input().split())
c = max(ceil(a / 0.08), ceil(b / 0.10))
if c < min(int((a + 1) / 0.08), int((b + 1) / 0.10)):
print(c)
else:
print(-1)
| [
"assignment.value.change",
"identifier.change",
"call.function.change",
"call.arguments.change"
] | 539,622 | 539,623 | u540631540 | python |
p02755 | import math
A,B = map(int,input().split())
mina = math.floor(A/0.08)
if math.floor((A+1)/0.08) == (A+1)/0.08:
maxa = (A+1)/0.08 -1
else:
maxa = math.floor((A+1)/0.08)
minb = math.floor(B/0.1)
if math.floor((B+1)/0.1) == (B+1)/0.1:
maxb = (B+1)/0.1 -1
else:
maxb = math.floor((B+1)/0.1)
if maxa < minb or maxb <... | import math
A,B = map(int,input().split())
mina = math.ceil(A/0.08)
if math.floor((A+1)/0.08) == (A+1)/0.08:
maxa = (A+1)/0.08 -1
else:
maxa = math.floor((A+1)/0.08)
minb = math.ceil(B/0.1)
if math.floor((B+1)/0.1) == (B+1)/0.1:
maxb = (B+1)/0.1 -1
else:
maxb = math.floor((B+1)/0.1)
if maxa < minb or maxb < m... | [
"misc.opposites",
"assignment.value.change",
"identifier.change"
] | 539,626 | 539,627 | u009348313 | python |
p02755 | A, B = map(int, input().split())
for n in range(2000):
if int(n) * 0.08 == A and int(n) * 0.1 == B:
print(n)
break
else:
print(-1) | A, B = map(int, input().split())
for n in range(2000):
if int(n * 0.08) == A and int(n * 0.1) == B:
print(n)
break
else:
print(-1) | [
"control_flow.branch.if.condition.change"
] | 539,639 | 539,640 | u845847173 | python |
p02755 | A, B = list(map(int, input().split()))
price_a = round(A*100/8)
price_b = int(B*100/10)
if(int(price_a * 1.10) - B == price_a) :
print(price_a)
exit()
if(int(price_b * 1.08) - A == price_b) :
print(price_b)
exit()
print(-1) | import math
A, B = list(map(int, input().split()))
price_a = math.ceil(A*100/8)
price_b = int(B*100/10)
if(int(price_a * 1.10) - B == price_a) :
print(price_a)
exit()
if(int(price_b * 1.08) - A == price_b) :
print(price_b)
exit()
print(-1) | [
"assignment.value.change"
] | 539,643 | 539,644 | u027547861 | python |
p02755 | a,b=map(int,input().split())
print(a,b)
for i in range(1,1250):
if int(i*0.08)==a and int(i*0.1)==b:
print(i)
break
else:
print(-1) | a,b=map(int,input().split())
for i in range(1,1250):
if int(i*0.08)==a and int(i*0.1)==b:
print(i)
break
else:
print(-1) | [
"call.remove"
] | 539,647 | 539,648 | u680851063 | python |
p02755 | from math import floor
def main():
a, b = map(int, input().split())
for i in range(1, 1000):
x1 = floor(i*0.08)
x2 = floor(i*0.1)
if x1 == a and x2 == b:
print(i)
return
print('-1')
main()
| from math import floor
def main():
a, b = map(int, input().split())
for i in range(1, 1010):
x1 = floor(i*0.08)
x2 = floor(i*0.1)
if x1 == a and x2 == b:
print(i)
return
print('-1')
main()
| [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 539,662 | 539,663 | u016901717 | python |
p02755 | import math
import string
def readints():
return list(map(int, input().split()))
def nCr(n, r):
return math.factorial(n)//(math.factorial(n-r)*math.factorial(r))
def has_duplicates2(seq): # リストに重複した要素があるか判定(要素にリストがある場合)
seen = []
for item in seq:
if not(item in seen):
seen.app... | import math
import string
def readints():
return list(map(int, input().split()))
def nCr(n, r):
return math.factorial(n)//(math.factorial(n-r)*math.factorial(r))
def has_duplicates2(seq):
seen = []
for item in seq:
if not(item in seen):
seen.append(item)
return len(seq) != ... | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 539,668 | 539,669 | u207799478 | python |
p02755 | a, b = map(int, input().split())
money = 1
while money < 1010:
if money ==int(0.08*a) and money == int(0.10*b):
print(money)
break
money+=1
if money ==1010:
print(-1) | a, b = map(int, input().split())
money = 1
while money < 1010:
if a ==int(0.08*money) and b == int(0.10*money):
print(money)
break
money+=1
if money ==1010:
print(-1) | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 539,678 | 539,679 | u969848070 | python |
p02755 | a, b = map(int, input().split())
money = 1
while money < 1010:
if money ==int(0.08*a) and money == int(0.10*b):
print(money)
money+=1
if money ==1010:
print(-1) | a, b = map(int, input().split())
money = 1
while money < 1010:
if a ==int(0.08*money) and b == int(0.10*money):
print(money)
break
money+=1
if money ==1010:
print(-1) | [
"identifier.change",
"control_flow.branch.if.condition.change",
"control_flow.break.add"
] | 539,680 | 539,679 | u969848070 | python |
p02755 | A, B = [int(x) for x in input().split(' ')]
def find(per, value):
n_list = [i for i in range(1,101)]
return list(filter(lambda x:int(x*per) == value, n_list))
a_list = list(set(find(0.08, A)) & set(find(0.1, B)))
if a_list:
print(min(a_list))
else:
print(-1) | A, B = [int(x) for x in input().split(' ')]
def find(per, value):
n_list = [i for i in range(1,1001)]
return list(filter(lambda x:int(x*per) == value, n_list))
a_list = list(set(find(0.08, A)) & set(find(0.1, B)))
if a_list:
print(min(a_list))
else:
print(-1) | [
"literal.number.integer.change",
"assignment.value.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 539,687 | 539,688 | u707659359 | python |
p02755 | a,b=map(int, input().split())
n=0
for i in range(a * 100 // 10):
if int(i * 0.08) == a and int(i * 0.1) == b:
print(i)
n+=1
break
if n == 0:
print(-1) | a,b=map(int, input().split())
n=0
for i in range(a * 10 + 80000):
if int(i * 0.08) == a and int(i * 0.1) == b:
print(i)
n+=1
break
if n == 0:
print(-1) | [
"expression.operation.binary.remove"
] | 539,689 | 539,690 | u060793972 | python |
p02755 | a,b=map(int, input().split())
n=0
for i in range(a * 100 // 8 + 2):
if int(i * 0.08) == a and int(i * 0.1) == b:
print(i)
n+=1
break
if n == 0:
print(-1) | a,b=map(int, input().split())
n=0
for i in range(a * 10 + 80000):
if int(i * 0.08) == a and int(i * 0.1) == b:
print(i)
n+=1
break
if n == 0:
print(-1) | [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change",
"expression.operation.binary.remove"
] | 539,691 | 539,690 | u060793972 | python |
p02755 | a,b=map(int, input().split())
n=0
for i in range(a * 100 // 8 + 1):
if int(i * 0.08) == a and int(i * 0.1) == b:
print(i)
n+=1
break
if n == 0:
print(-1) | a,b=map(int, input().split())
n=0
for i in range(a * 10 + 80000):
if int(i * 0.08) == a and int(i * 0.1) == b:
print(i)
n+=1
break
if n == 0:
print(-1) | [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change",
"expression.operation.binary.remove"
] | 539,692 | 539,690 | u060793972 | python |
p02755 | a, b = map(int, input().split())
for i in range(990):
c = int((i + 10) * 0.08)
d = int((i + 10) * 0.10)
if c == a and d == b:
print(i + 10)
exit()
print('-1') | a, b = map(int, input().split())
for i in range(991):
c = int((i + 10) * 0.08)
d = int((i + 10) * 0.10)
if c == a and d == b:
print(i + 10)
exit()
print('-1') | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 539,696 | 539,697 | u104005543 | python |
p02755 | import math as mt
K = input().split(" ")
A = int(K[0])
B = int(K[1])
a = float(A*12.5)
t = float((A+1)*12.5)
t1 = mt.ceil(t)
b = B*10
a1 = mt.ceil(a)
A_data = []
B_data = []
for i in range(b,b+10):
A_data.append(i)
for i in range(a1,a1+t1):
B_data.append(i)
A_set = set(A_data)
B_set = set(B_data)
AB_set = A_set... | import math as mt
K = input().split(" ")
A = int(K[0])
B = int(K[1])
a = float(A*12.5)
t = float((A+1)*12.5)
t1 = mt.ceil(t)
b = B*10
a1 = mt.ceil(a)
A_data = []
B_data = []
for i in range(b,b+10):
A_data.append(i)
for i in range(a1,t1):
B_data.append(i)
A_set = set(A_data)
B_set = set(B_data)
AB_set = A_set & ... | [
"expression.operation.binary.remove"
] | 539,698 | 539,699 | u217836256 | python |
p02755 | a,b=map(int,input().split())
a1=(a*100)//8
a2=((a+1)*100)//8
b1=b*10
b2=(b+1)*10
if (a*100)%8>0:
a1+=1
if ((a+1)*100)%8>0:
a2+=1
la=range(a1,a2)
lb=range(b1,b2)
l=list(set(la) & set(lb))
if len(l)==0:
print("-1")
else:
print(l[0])
| a,b=map(int,input().split())
a1=(a*100)//8
a2=((a+1)*100)//8
b1=b*10
b2=(b+1)*10
if (a*100)%8>0:
a1+=1
if ((a+1)*100)%8>0:
a2+=1
la=range(a1,a2)
lb=range(b1,b2)
l=list(set(la) & set(lb))
if len(l)==0:
print("-1")
else:
l.sort()
print(l[0]) | [
"call.add"
] | 539,708 | 539,709 | u747220349 | python |
p02755 | a,b=map(int,input().split())
a1=(a*100)//8
a2=((a+1)*100)//8
b1=b*10
b2=(b+1)*10
if (a*100)%8>0:
a1+=1
if ((a+1)*100)%8>0:
a2+=1
la=range(a1,a2)
lb=range(b1,b2)
l=list(set(la) & set(lb))
if len(l)==0:
print("-1")
else:
print(l[0]) | a,b=map(int,input().split())
a1=(a*100)//8
a2=((a+1)*100)//8
b1=b*10
b2=(b+1)*10
if (a*100)%8>0:
a1+=1
if ((a+1)*100)%8>0:
a2+=1
la=range(a1,a2)
lb=range(b1,b2)
l=list(set(la) & set(lb))
if len(l)==0:
print("-1")
else:
l.sort()
print(l[0]) | [
"call.add"
] | 539,710 | 539,709 | u747220349 | python |
p02755 | A_B = list(map(int, input().split()))
A = A_B[0]
B = A_B[1]
count = 1
while count * 0.08 // 1 != A or count * 0.1 // 1 != B:
count += 1
if count // 0.1 > B:
print(-1)
exit()
print(count)
| A_B = list(map(int, input().split()))
A = A_B[0]
B = A_B[1]
count = 1
while count * 0.08 // 1 != A or count * 0.1 // 1 != B:
count += 1
if count * 0.1 - 10 > B:
print(-1)
exit()
print(count)
| [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 539,714 | 539,715 | u763291354 | python |
p02755 | A, B = map(int,input().split())
ans = 0
flag = False;
for i in range(1,201):
a = int(i*0.08)
b = int(i*0.1)
if((a==A) and (b==B)):
ans = i
flag =True
break
if(flag == False):
print(-1)
else:
print(ans) | A, B = map(int,input().split())
ans = 0
flag = False;
for i in range(1,10000):
a = int(i*0.08)
b = int(i*0.1)
if((a==A) and (b==B)):
ans = i
flag =True
break
if(flag == False):
print(-1)
else:
print(ans) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 539,721 | 539,722 | u393077661 | python |
p02755 | A, B = map(int,input().split())
ans = -1
flag = False;
for i in range(0,101):
a = int(i*0.08)
b = int(i*0.1)
#print(i,a," ",b)
if((a==A) and (b==B)):
ans = i
flag =True
break
if(flag == False):
print(ans)
else:
print(ans) | A, B = map(int,input().split())
ans = 0
flag = False;
for i in range(1,10000):
a = int(i*0.08)
b = int(i*0.1)
if((a==A) and (b==B)):
ans = i
flag =True
break
if(flag == False):
print(-1)
else:
print(ans) | [
"assignment.value.change",
"expression.operation.unary.remove",
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.lower.change",
"control_flow.loop.range.bounds.upper.change",
"io.output.change",
"expression.operation.unary.add"
] | 539,723 | 539,722 | u393077661 | python |
p02755 | import math
a,b=map(int,input().split())
ans=-1
for i in range(1,1000):
#print(int(i*0.08))
if math.floor(i*0.08)==a and math.floor(i*0.1)==b:
ans=i
break
print(ans) | import math
a,b=map(int,input().split())
ans=-1
for i in range(1,5000):
#print(int(i*0.08))
if math.floor(i*0.08)==a and math.floor(i*0.1)==b:
#print(int(i*0.08))
ans=i
break
print(ans) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 539,726 | 539,727 | u562550538 | python |
p02755 | cmin = lambda a,b : a if a<b else b
cmax = lambda a,b : a if a>b else b
iin = lambda : int(input())
lin = lambda : list(map(int,input().split()))
rin = lambda n : [int(input()) for _ in range(n)]
a,b = map(int,input().split())
at = []
for i in range(1,1500):
if int(i*0.08)==a: at += [i]
bt = []
for i in range(1,... | cmin = lambda a,b : a if a<b else b
cmax = lambda a,b : a if a>b else b
iin = lambda : int(input())
lin = lambda : list(map(int,input().split()))
rin = lambda n : [int(input()) for _ in range(n)]
a,b = map(int,input().split())
at = []
for i in range(1,1500):
if int(i*0.08)==a: at += [i]
bt = []
for i in range(1,... | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 539,733 | 539,734 | u177505697 | python |
p02755 | import math;
a,b = map(int,input().split())
x = []
y = []
ans = -1
x.append(a*25//2)
x.append((a+1)*25//2-1)
y.append(b*10)
y.append((b+1)*10-1)
if min(x) < max(y) and min(y) < max(x) and min(y) <= min(x):
ans = min(x)
elif min(x) < max(y) and min(y) < max(x) and min(x) < min(y):
ans = min(y)
print(ans) | import math;
a,b = map(int,input().split())
x = []
y = []
ans = -1
x.append(math.ceil(a*25/2))
x.append((a+1)*25//2-1)
y.append(b*10)
y.append((b+1)*10-1)
if min(x) < max(y) and min(y) < max(x) and min(y) <= min(x):
ans = min(x)
elif min(x) < max(y) and min(y) < max(x) and min(x) < min(y):
ans = min(y)
print(ans) | [
"call.add",
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 539,744 | 539,745 | u111392182 | python |
p02755 | A, B = (int(x) for x in input().split())
h = []
for i in range(1, 1000):
if int(i * 0.08) == A and int(i * 0.1) == B:
h.append(i)
h.append(-1)
print(h[0]) | A, B = (int(x) for x in input().split())
h = []
for i in range(1, 1100):
if int(i * 0.08) == A and int(i * 0.1) == B:
h.append(i)
h.append(-1)
print(h[0]) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 539,752 | 539,753 | u734423776 | python |
p02755 | a, b = map(int, input().split())
for i in range(1, 101):
if a != int(i * 0.08) or b != int(i * 0.1):
continue
print(i)
break
else:
print(-1)
| a, b = map(int, input().split())
for i in range(1, 1001):
if a == int(i * 0.08) and b == int(i * 0.1):
print(i)
break
else:
print(-1)
| [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 539,756 | 539,757 | u878849567 | python |
p02755 | import sys
import math
a, b = map(int, input().split())
downera = math.floor(100/8 * a)
uppera = math.floor(100/8 * (a+1))
downerb = 10 * b
upperb = 10 * (b+1)
#print(downera, uppera, downerb, upperb)
if uppera < downerb or upperb < downera:
print("-1")
sys.exit()
for i in range(downera, uppera):
if i >... | import sys
import math
a, b = map(int, input().split())
downera = math.ceil(100/8 * a)
uppera = math.floor(100/8 * (a+1))
downerb = 10 * b
upperb = 10 * (b+1)
if uppera < downerb or upperb < downera:
print("-1")
sys.exit()
for i in range(downera, uppera):
if i >= downerb and i < upperb:
print(i)... | [
"misc.opposites",
"assignment.value.change",
"identifier.change"
] | 539,758 | 539,759 | u940852449 | python |
p02755 | a,b=map(int,input().split())
ans=0
flag=False
for i in range(b*10,(b+1)*10+1):
x=i*8
if 100*(a+1)>x>=100*a:
flag=True
ans=i
break
print(ans if flag else -1) | a,b=map(int,input().split())
ans=0
flag=False
for i in range(b*10,(b+1)*10):
x=i*8
if 100*(a+1)>x>=100*a:
flag=True
ans=i
break
print(ans if flag else -1) | [
"expression.operation.binary.remove"
] | 539,760 | 539,761 | u723583932 | python |
p02755 | # -*- coding: utf-8 -*-
# スペース区切りの整数の入力
a, b = map(int, input().split())
flag = 0
# 計算
for i in range(1, 100+1):
if int(i * 0.08) == a and int(i * 0.1) == b:
flag = 1
break
# 出力
if flag == 0:
print(-1)
elif flag == 1:
print(i)
| # -*- coding: utf-8 -*-
# スペース区切りの整数の入力
a, b = map(int, input().split())
flag = 0
# 計算
for i in range(1, 1001):
if int(i * 0.08) == a and int(i * 0.1) == b:
flag = 1
break
# 出力
if flag == 0:
print(-1)
elif flag == 1:
print(i) | [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change",
"expression.operation.binary.remove"
] | 539,763 | 539,764 | u127141733 | python |
p02755 | #AtCoder
import math
A, B = map(int, input().split())
eight = int(math.ceil(A / 0.08))
ten = int(math.ceil(B / 0.1))
ans = 10000000000
for i in range(min(ten, eight), max(ten, eight)+1):
if int(i*0.08)==A and int(i*0.1)==B:
ans = min(ans,i)
if ans == 100:
ans = -1
print(ans) | #AtCoder
import math
A, B = map(int, input().split())
eight = int(math.ceil(A / 0.08))
ten = int(math.ceil(B / 0.1))
ans = 10000000000
for i in range(min(ten, eight), max(ten, eight)+1):
if int(i*0.08)==A and int(i*0.1)==B:
ans = min(ans,i)
if ans == 10000000000:
ans = -1
print(ans)
| [
"literal.number.integer.change",
"control_flow.branch.if.condition.change"
] | 539,765 | 539,766 | u259861571 | python |
p02755 | import math
A, B = [int(i) for i in input().split()]
aa = math.ceil(A / 0.08)
bb = math.ceil(B / 0.1)
if aa > bb:
if int(aa * 0.08) != A or int(aa * 0.1) != B:
print('-1')
else:
print(aa)
else:
if int(aa * 0.08) != A or int(aa * 0.1) != B:
print('-1')
else:
print(bb)
... | import math
A, B = [int(i) for i in input().split()]
aa = math.ceil(A / 0.08)
bb = math.ceil(B / 0.1)
if aa > bb:
if int(aa * 0.08) != A or int(aa * 0.1) != B:
print('-1')
else:
print(aa)
else:
if int(bb * 0.08) != A or int(bb * 0.1) != B:
print('-1')
else:
print(bb)
... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 539,784 | 539,785 | u989348352 | python |
p02755 | a,b = map(int,input().split())
if int(a/(0.08)) == int(b/(0.1)):
cost = int(a/(0.08))
else:
inter = abs(int(a/(0.08)) - int(b/(0.1)))
mn = min(int(a/(0.08)) , int(b/(0.1)))
for i in range(inter*2):
if int(cost*(0.08))==a:
if int(cost*(0.1))==b:
break
... | a,b = map(int,input().split())
if int(a/(0.08)) == int(b/(0.1)):
mn = int(a/(0.08))
else:
inter = abs(int(a/(0.08)) - int(b/(0.1)))
mn = min(int(a/(0.08)) , int(b/(0.1)))
for i in range(inter*2):
if int(mn*(0.08))==a:
if int(mn*(0.1))==b:
break
m... | [
"assignment.variable.change",
"identifier.change",
"control_flow.branch.if.condition.change",
"call.arguments.change",
"io.output.change"
] | 539,786 | 539,787 | u293198424 | python |
p02755 | from math import floor
A, B = map(int, input().split())
res = -1
for price in range(1, 101):
if floor(price*0.08) == A and floor(price*0.1) == B:
res = price
break
print(res)
| from math import floor
A, B = map(int, input().split())
res = -1
for price in range(1, 10**6):
if floor(price*0.08) == A and floor(price*0.1) == B:
res = price
break
print(res)
| [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 539,807 | 539,806 | u123648284 | python |
p02755 | import math
a, b = list(map(int, input().split()))
result = -1
end_flag = False
for i in range(1, 1000):
if not end_flag:
x = math.floor(i * 0.08)
if int(x) == a:
for j in range(1, 1000):
y = math.floor(j * 0.1)
if i == j:
if int(y) ==... | import math
a, b = list(map(int, input().split()))
result = -1
end_flag = False
for i in range(1, 1251):
if not end_flag:
x = math.floor(i * 0.08)
if int(x) == a:
for j in range(1, 1001):
y = math.floor(j * 0.1)
if i == j:
if int(y) ==... | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 539,808 | 539,809 | u393881437 | python |
p02755 | import math
a, b = list(map(int, input().split()))
result = -1
end_flag = False
for i in range(1, 101):
if not end_flag:
x = math.floor(i * 0.08)
if int(x) == a:
for j in range(1, 101):
y = math.floor(j * 0.1)
if i == j:
if int(y) == b... | import math
a, b = list(map(int, input().split()))
result = -1
end_flag = False
for i in range(1, 1251):
if not end_flag:
x = math.floor(i * 0.08)
if int(x) == a:
for j in range(1, 1001):
y = math.floor(j * 0.1)
if i == j:
if int(y) ==... | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"assignment.value.change",
"identifier.change"
] | 539,810 | 539,809 | u393881437 | python |
p02755 | import math
s = input()
ss = s.split(" ")
TAX_A = 0.08
TAX_B = 0.1
A = int(ss[0])
B = int(ss[1])
ans = 1000
re = False
for i in range(1000,0,-1):
tax_a = math.floor( i * TAX_A )
tax_b = math.floor( i * TAX_B )
if tax_a == A and tax_b == B:
if i < ans:
ans = i
re = True
if re == True:
pri... | import math
s = input()
ss = s.split(" ")
TAX_A = 0.08
TAX_B = 0.1
A = int(ss[0])
B = int(ss[1])
ans = 10000
re = False
for i in range(10000,0,-1):
tax_a = math.floor( i * TAX_A )
tax_b = math.floor( i * TAX_B )
if tax_a == A and tax_b == B:
if i < ans :
ans = i
re = True
if re == True:
p... | [
"literal.number.integer.change",
"assignment.value.change",
"call.arguments.change",
"control_flow.loop.range.bounds.lower.change"
] | 539,819 | 539,820 | u183308534 | python |
p02755 | import math
def main():
a, b = list(map(int, input().split()))
for i in range(a, 1000):
if not math.floor(i * 0.08) == a:
continue
if not math.floor(i * 0.1) == b:
continue
return i
return -1
print(main()) | import math
def main():
a, b = list(map(int, input().split()))
for i in range(a, 1099):
if not math.floor(i * 0.08) == a:
continue
if not math.floor(i * 0.1) == b:
continue
return i
return -1
print(main()) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 539,828 | 539,829 | u122216125 | python |
p02755 | import math
def main():
a, b = list(map(int, input().split()))
for i in range(a, 101):
if not math.floor(i * 0.08) == a:
continue
if not math.floor(i * 0.1) == b:
continue
return i
return -1
print(main()) | import math
def main():
a, b = list(map(int, input().split()))
for i in range(a, 1099):
if not math.floor(i * 0.08) == a:
continue
if not math.floor(i * 0.1) == b:
continue
return i
return -1
print(main()) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 539,830 | 539,829 | u122216125 | python |
p02755 | a,b=map(int,input().split())
import math
ans=-1
for x in range(10,1000):
s=math.floor(x*0.08)
t=math.floor(x*0.10)
if s==a and t==b:
ans=x
break
print(ans)
| a,b=map(int,input().split())
import math
ans=-1
for x in range(10,1001):
s=math.floor(x*0.08)
t=math.floor(x*0.10)
if s==a and t==b:
ans=x
break
print(ans)
| [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 539,831 | 539,832 | u332253305 | python |
p02755 | import math
a,b=map(float,input().split())
for i in range(1,1001):
if math.floor(i*(1.08))-i==a and math.floor(i*(1.08))-i==b:
print(i)
break
elif i==1000:
c=-1
print(c) | import math
a,b=map(float,input().split())
for i in range(1,1001):
if math.floor(i*(1.08))-i==a and math.floor(i*(1.10))-i==b:
print(i)
break
elif i==1000:
c=-1
print(c) | [
"literal.number.float.change",
"control_flow.branch.if.condition.change"
] | 539,833 | 539,834 | u519922200 | python |
p02755 | # -*- coding: utf-8 -*-
import math
import numpy as np
s = input()
num = s.split(" ")
A = int(num[0])
B = int(num[1])
tax_8 = []
tax_10 = []
for i in range(101):
tax_8.append([math.floor(i*0.08)])
tax_10.append([math.floor(i*0.1)])
tax_8_np = np.array(tax_8)
tax_10_np = np.array(tax_10)
tax_8_candidate = list(... | # -*- coding: utf-8 -*-
import math
import numpy as np
s = input()
num = s.split(" ")
A = int(num[0])
B = int(num[1])
tax_8 = []
tax_10 = []
for i in range(10001):
tax_8.append([math.floor(i*0.08)])
tax_10.append([math.floor(i*0.1)])
tax_8_np = np.array(tax_8)
tax_10_np = np.array(tax_10)
tax_8_candidate = lis... | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 539,844 | 539,845 | u486841494 | python |
p02755 | # -*- coding: utf-8 -*-
import math
import numpy as np
s = input()
num = s.split(" ")
A = int(num[0])
B = int(num[1])
tax_8 = []
tax_10 = []
for i in range(101):
tax_8.append([math.floor(i*0.08)])
tax_10.append([math.floor(i*0.1)])
tax_8_np = np.array(tax_8)
tax_10_np = np.array(tax_10)
tax_8_candidate = list(... | # -*- coding: utf-8 -*-
import math
import numpy as np
s = input()
num = s.split(" ")
A = int(num[0])
B = int(num[1])
tax_8 = []
tax_10 = []
for i in range(10001):
tax_8.append([math.floor(i*0.08)])
tax_10.append([math.floor(i*0.1)])
tax_8_np = np.array(tax_8)
tax_10_np = np.array(tax_10)
tax_8_candidate = lis... | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"call.add"
] | 539,846 | 539,845 | u486841494 | python |
p02755 | # -*- coding: utf-8 -*-
import math
import sys
a,b=map(int, input().split())
y = math.floor(b/0.1)
for i in range(y,y+10):
if i * 0.08 == a:
print(i)
sys.exit(0)
print(-1) | # -*- coding: utf-8 -*-
import math
import sys
a,b=map(int, input().split())
y = math.floor(b/0.1)
for i in range(y,y+10):
if math.floor(i * 0.08) == a:
print(i)
sys.exit(0)
print(-1)
| [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"call.add"
] | 539,856 | 539,857 | u619455726 | python |
p02755 | # coding: utf-8
import math
a, b = map(int, input().split())
a_target1 = a / 0.08
a_target2 = (a + 1) / 0.08
b_target1 = b / 0.1
b_target2 = (b + 1) / 0.1
result_list = []
for i in range(math.floor(a_target1), math.ceil(a_target2)):
if i >= b_target1 and i < b_target2:
result_list.append(i)
if resul... | # coding: utf-8
import math
a, b = map(int, input().split())
a_target1 = a / 0.08
a_target2 = (a + 1) / 0.08
b_target1 = b / 0.1
b_target2 = (b + 1) / 0.1
result_list = []
for i in range(math.ceil(a_target1), math.ceil(a_target2)):
if i >= b_target1 and i < b_target2:
result_list.append(i)
if result... | [
"misc.opposites",
"identifier.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 539,865 | 539,866 | u923415412 | python |
p02755 | import sys
a,b=map(int,input().split())
if a%2==0:
lower1=int(a*100/8)
upper1=(a+1)*100/8
upper1=max(lower,int(upper1)-1)
else:
lower1=a*(100/8)
upper1=int((a+1)*100/8)
if (upper1)-int(lower1)<=1:
print(-1)
sys.exit()
else:
lower1=int(lower1)+1
if lower1==upper1:
print(-1)
s... | import sys
a,b=map(int,input().split())
if a%2==0:
lower1=int(a*100/8)
upper1=(a+1)*100/8
upper1=max(lower1,int(upper1)-1)
else:
lower1=a*(100/8)
upper1=int((a+1)*100/8)
if (upper1)-int(lower1)<=1:
print(-1)
sys.exit()
else:
lower1=int(lower1)+1
if lower1==upper1:
print(-1)
... | [
"assignment.value.change",
"identifier.change",
"call.arguments.change",
"literal.number.integer.change",
"control_flow.branch.if.condition.change"
] | 539,867 | 539,868 | u111555888 | python |
p02755 | A,B=map(float,input().split())
A_min=int(A/8*100)+1
A_max=int((A+1)/8*100)+1
ans=0
flag=False
if (A+1)*100%8==0:
A_max=int((A+1)*100/8)
for i in range(A_min,A_max):
if int(i*0.1)==B:
ans=i
flag=True
break
if int(ans*0.08)!=A:
ans+=1
if flag:
print(ans)
else:
print(-1) | A,B=map(float,input().split())
A_min=int(A/8*100)
A_max=int((A+1)/8*100)+1
ans=0
flag=False
if (A+1)*100%8==0:
A_max=int((A+1)*100/8)
for i in range(A_min,A_max):
if int(i*0.1)==B:
ans=i
flag=True
break
if int(ans*0.08)!=A:
ans+=1
if flag:
print(ans)
else:
print(-1) | [
"expression.operation.binary.remove"
] | 539,869 | 539,870 | u766393261 | python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.