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 | class Fraction_Error(Exception):
pass
from math import gcd
#import math
class Fraction():
##入力定義
def __init__(self,Numerator=0,Denominator=1):
self.a=Numerator
self.b=Denominator
#表示定義
def __str__(self):
if self.b==1:
return str(self.a)
else:
... | class Fraction_Error(Exception):
pass
from math import gcd
#import math
class Fraction():
##入力定義
def __init__(self,Numerator=0,Denominator=1):
self.a=Numerator
self.b=Denominator
#表示定義
def __str__(self):
if self.b==1:
return str(self.a)
else:
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 537,071 | 537,072 | u779805689 | python |
p02755 | class Fraction_Error(Exception):
pass
import math
class Fraction():
##入力定義
def __init__(self,Numerator=0,Denominator=1):
self.a=Numerator
self.b=Denominator
#表示定義
def __str__(self):
if self.b==1:
return str(self.a)
else:
return str(self.a)+"/... | class Fraction_Error(Exception):
pass
from math import gcd
#import math
class Fraction():
##入力定義
def __init__(self,Numerator=0,Denominator=1):
self.a=Numerator
self.b=Denominator
#表示定義
def __str__(self):
if self.b==1:
return str(self.a)
else:
... | [
"identifier.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 537,073 | 537,072 | u779805689 | python |
p02755 | a,b = [int(x) for x in input().split()]
res = -1
for i in range(20000):
if i * 8 // 100 == a and i * 10 // 100:
res = i
break
print(res) | a,b = [int(x) for x in input().split()]
res = -1
for i in range(20000):
if i * 8 // 100 == a and i * 10 // 100 == b:
res = i
break
print(res) | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 537,074 | 537,075 | u924828749 | python |
p02755 | a,b = [int(x) for x in input().split()]
res = -1
for i in range(20000):
if i * 108 // 100 == a and i * 110 // 100:
res = i
print(res) | a,b = [int(x) for x in input().split()]
res = -1
for i in range(20000):
if i * 8 // 100 == a and i * 10 // 100 == b:
res = i
break
print(res) | [
"literal.number.integer.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"control_flow.break.add"
] | 537,076 | 537,075 | u924828749 | python |
p02755 | A, B = map(int, input().split())
for i in range(1, 100):
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(1, 12500):
if int(i*0.08) == A and int(i*0.1) == B:
print(i)
exit()
print(-1)
| [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,081 | 537,082 | u626337957 | python |
p02755 | A, B = map(int, input().split())
for i in range(1, 100):
if int(i*1.08) == A and int(i*1.1) == B:
print(i)
exit()
print(-1) | A, B = map(int, input().split())
for i in range(1, 12500):
if int(i*0.08) == A and int(i*0.1) == B:
print(i)
exit()
print(-1)
| [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"literal.number.float.change",
"control_flow.branch.if.condition.change"
] | 537,083 | 537,082 | u626337957 | python |
p02755 | a, b = map(int , input().split())
answer = -1
for i in range(1,101):
if i * 8 // 100 == a and i * 10 // 100 == b:
answer = i
break
print(answer) | a, b = map(int , input().split())
answer = -1
for i in range(1,10100):
if i * 8 // 100 == a and i * 10 // 100 == b:
answer = i
break
print(answer) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,095 | 537,096 | u765590009 | python |
p02755 | a,b=map(int,input().split())
flg=0
for i in range(101):
c=int(i*1.08)-i
d=int(i*1.1)-i
if c==a and b==d:
print(i)
flg=1
exit()
if flg==0:
print(-1)
| a,b=map(int,input().split())
flg=0
for i in range(1001):
c=int(i*1.08)-i
d=int(i*1.1)-i
if c==a and b==d:
print(i)
flg=1
exit()
if flg==0:
print(-1)
| [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,105 | 537,106 | u313890617 | python |
p02755 | import sys
A, B = list(map(int, input().split()))
for i in range(1,101):
if int(i * 0.08) == A and int(i * 0.1) == B:
print(i)
sys.exit(0)
print('-1')
| ##############################################
import sys
A, B = list(map(int, input().split()))
for i in range(1,1009+1):
if int(i * 0.08) == A and int(i * 0.1) == B:
print(i)
sys.exit(0)
print(-1)
| [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,118 | 537,119 | u689626103 | python |
p02755 | import sys
A, B = list(map(int, input().split()))
for i in range(1,101):
if int(i * 0.08) == A and int(i * 0.1) == B:
print(i)
sys.exit(0)
print(-1)
| ##############################################
import sys
A, B = list(map(int, input().split()))
for i in range(1,1009+1):
if int(i * 0.08) == A and int(i * 0.1) == B:
print(i)
sys.exit(0)
print(-1)
| [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,120 | 537,119 | u689626103 | python |
p02755 | #!/usr/bin/env python3
import sys
from decimal import Decimal as D
input = sys.stdin.readline
def ST():
return input().rstrip()
def I():
return int(input())
def MI():
return map(int, input().split())
def LI():
return list(MI())
A, B = MI()
for i in range(1, 251):
a = int(D(i) * D("0.08")... | #!/usr/bin/env python3
import sys
from decimal import Decimal as D
input = sys.stdin.readline
def ST():
return input().rstrip()
def I():
return int(input())
def MI():
return map(int, input().split())
def LI():
return list(MI())
A, B = MI()
for i in range(1, 2501):
a = int(D(i) * D("0.08"... | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,125 | 537,126 | u876438858 | python |
p02755 | A,B=map(int,input().split())
flag=0
for i in range(1,101):
if int(i*0.08)==A and int(i*0.1)==B:
flag=1
print(i)
break
if flag==0:
print(-1) | 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
print(i)
break
if flag==0:
print(-1) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,134 | 537,135 | u065079240 | python |
p02755 | A,B=map(int,input().split())
flag=0
for i in range(101):
if int(i*0.08)==A and int(i*0.1)==B:
flag=1
print(i)
break
if flag==0:
print(-1) | 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
print(i)
break
if flag==0:
print(-1) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"call.arguments.add"
] | 537,136 | 537,135 | u065079240 | python |
p02755 | A,B = map(int,input().split())
for i in range(1000):
if int(i * 0.08) == A and int(i * 0.1) == B:
print(i)
exit(0)
else:
print(-1) | A,B = map(int,input().split())
for i in range(10000):
if int(i * 0.08) == A and int(i * 0.1) == B:
print(i)
exit(0)
else:
print(-1) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,140 | 537,141 | u848535504 | python |
p02755 | import math
A,B = map(int,input().split())
ans = 0
AT = 0.08
BT = 0.1
a = A/AT
b = B/BT
aPlus = (A+1)/AT
bPlus = (B+1)/BT
if a == b :
ans = a
elif a < b :
if aPlus < b :
ans = -1
else :
ans = b
elif b < a :
if bPlus < a :
ans = -1
else :
ans = a
# print(a,b)
# prin... | import math
A,B = map(int,input().split())
ans = 0
AT = 0.08
BT = 0.1
a = A/AT
b = B/BT
aPlus = (A+1)/AT
bPlus = (B+1)/BT
if a == b :
ans = a
elif a < b :
if aPlus <= b :
ans = -1
else :
ans = b
elif b < a :
if bPlus <= a :
ans = -1
else :
ans = a
# print(a,b)
# pr... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 537,144 | 537,145 | u192433528 | python |
p02755 | import math
A,B = map(int,input().split())
ans = 0
AT = 0.08
BT = 0.1
a = A/AT
b = B/BT
aPlus = (A+1)/AT
bPlus = (B+1)/BT
if a == b :
ans = a
elif a < b :
if aPlus < b :
ans = -1
else :
ans = b
elif b < a :
if bPlus < a :
ans = -1
ans = a
# print(a,b)
# print(aPlus,bPlus)
... | import math
A,B = map(int,input().split())
ans = 0
AT = 0.08
BT = 0.1
a = A/AT
b = B/BT
aPlus = (A+1)/AT
bPlus = (B+1)/BT
if a == b :
ans = a
elif a < b :
if aPlus <= b :
ans = -1
else :
ans = b
elif b < a :
if bPlus <= a :
ans = -1
else :
ans = a
# print(a,b)
# pr... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 537,146 | 537,145 | u192433528 | python |
p02755 | a,b=map(int,input().split())
import math
limit = int(100 // 0.8 + 1)
for i in range(1,limit+10):
v_a = i * 0.08
v_b = i * 0.1
if math.floor(v_a) == a and math.floor(v_b) == b:
print(i)
exit(0)
print(-1)
| a,b=map(int,input().split())
import math
limit = int(100 // 0.08 + 1)
for i in range(1,limit+1):
v_a = i * 0.08
v_b = i * 0.1
if math.floor(v_a) == a and math.floor(v_b) == b:
print(i)
exit(0)
print(-1)
| [
"literal.number.float.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change",
"literal.number.integer.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,153 | 537,154 | u145145077 | python |
p02755 | a, b = map(int, input().split())
tmp_a = int((a / 0.08) // 1)
tmp_b = int((b / 0.10) // 1)
check = True
for i in range(min(tmp_a,tmp_b), max(tmp_a, tmp_b) + 1):
if int((i * 0.08)//1) == a and int((i * 0.10)//1) == b:
print(i)
check = False
break
if check:
print(-1) | a, b = map(int, input().split())
tmp_a = int((a / 0.08) // 1)
tmp_b = int((b / 0.10) // 1)
check = True
# print(tmp_a, tmp_b)
for i in range(min(tmp_a,tmp_b), max(tmp_a + 1, tmp_b + 1) + 1):
if int((i * 0.08)//1) == a and int((i * 0.10)//1) == b:
print(i)
check = False
break
if check:
pr... | [
"expression.operation.binary.add"
] | 537,163 | 537,164 | u119655368 | python |
p02755 | a, b = map(int, input().split())
tmp_a = int((a / 0.08) // 1)
tmp_b = int((a / 0.10) // 1)
check = True
for i in range(min(tmp_a,tmp_b), max(tmp_a, tmp_b) + 1):
if int((i * 0.08)//1) == a and int((i * 0.10)//1) == b:
print(i)
check = False
break
if check:
print(-1) | a, b = map(int, input().split())
tmp_a = int((a / 0.08) // 1)
tmp_b = int((b / 0.10) // 1)
check = True
# print(tmp_a, tmp_b)
for i in range(min(tmp_a,tmp_b), max(tmp_a + 1, tmp_b + 1) + 1):
if int((i * 0.08)//1) == a and int((i * 0.10)//1) == b:
print(i)
check = False
break
if check:
pr... | [
"assignment.value.change",
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 537,165 | 537,164 | u119655368 | python |
p02755 | a,b=map(int,input().split())
for i in range(1000):
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(2000):
if int(i*0.08)==a and int(i*0.1)==b:
print(i)
exit()
print(-1) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,168 | 537,169 | u131881594 | python |
p02755 | # coding: utf-8
import math
def main():
a, b = map(int, input().split())
tmp_a_min = math.ceil(a / 0.08)
tmp_a_max = math.ceil((a+1) / 0.08)
tmp_b_min = math.ceil(b / 0.1)
tmp_b_max = math.ceil((b+1) / 0.1)
tmp_a = list(range(tmp_a_min, tmp_a_max))
tmp_b = list(range(tmp_b_min, tmp_a_max))
... | # coding: utf-8
import math
def main():
a, b = map(int, input().split())
tmp_a_min = math.ceil(a / 0.08)
tmp_a_max = math.ceil((a+1) / 0.08)
tmp_b_min = math.ceil(b / 0.1)
tmp_b_max = math.ceil((b+1) / 0.1)
tmp_a = list(range(tmp_a_min, tmp_a_max))
tmp_b = list(range(tmp_b_min, tmp_b_max))
... | [
"assignment.value.change",
"identifier.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,173 | 537,174 | u829203929 | python |
p02755 | import math
a,b = map(int,input().split())
n = math.floor(a / 0.08)
m = math.floor(b / 0.1)
n2 = n + 1
m2 = m + 1
p = math.floor(n * 0.08)
q = math.floor(n * 0.1)
x = math.floor(m * 0.08)
y = math.floor(m * 0.1)
p2 = math.floor(n2 * 0.08)
q2 = math.floor(n2 * 0.1)
x2 = math.floor(m2 * 0.08)
y2 = math.floor(m2 * 0.1)... | import math
a,b = map(int,input().split())
n = math.floor(a / 0.08)
m = math.floor(b / 0.1)
n2 = n + 1
m2 = m + 1
p = math.floor(n * 0.08)
q = math.floor(n * 0.1)
x = math.floor(m * 0.08)
y = math.floor(m * 0.1)
p2 = math.floor(n2 * 0.08)
q2 = math.floor(n2 * 0.1)
x2 = math.floor(m2 * 0.08)
y2 = math.floor(m2 * 0.1)... | [
"control_flow.branch.if.replace.remove",
"control_flow.branch.else_if.replace.add"
] | 537,180 | 537,181 | u357751375 | python |
p02755 | a,b = map(int,input().split())
low = int(min(a//0.08,b//0.1))
high = int(max((a+1)//0.08,(b+1)//0.1))
for i in range(low,high+1):
if int(i*0.08)==a and int(i*0.1)==b:
print(i); break
print(-1) | a,b = map(int,input().split())
low = int(min(a//0.08,b//0.1))
high = int(max((a+1)//0.08,(b+1)//0.1))
for i in range(low,high+1):
if int(i*0.08)==a and int(i*0.1)==b:
print(i); break
else:
print(-1) | [] | 537,182 | 537,183 | u112247039 | python |
p02755 | a,b = map(int,input().split())
for i in range(1,1251):
if int(i*0.08)==a and int(i*0.1)==b:
print(i); break
print('-1') | a,b = map(int,input().split())
for i in range(1,1251):
if int(i*0.08)==a and int(i*0.1)==b:
print(i); break
else:
print('-1') | [] | 537,184 | 537,185 | u112247039 | python |
p02755 | import sys
A, B = map(int, input().split())
for i in range(10 ** 5):
if (i * 0.08) == A and (i * 0.1) == B:
print(i)
sys.exit()
else:
continue
else:
print(-1) | import sys
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)
sys.exit()
else:
continue
else:
print(-1) | [
"call.add",
"control_flow.branch.if.condition.change"
] | 537,188 | 537,189 | u774163366 | python |
p02755 | import math
A, B = map(int,input().split())
LA = []
LB = []
X = math.ceil(A / 0.08)
Y = math.ceil(B / 0.1)
N = int((A+1) // 0.08)
M = int((B+1) // 0.1)
for i in range(X, N+1):
LA.append(i)
for i in range(Y, M+1):
LB.append(i)
ans = set(LA) & set(LB)
ans_list = list(ans)
if not ans_list:
print(-1)
else:
... | import math
A, B = map(int,input().split())
LA = []
LB = []
X = math.ceil(A / 0.08)
Y = math.ceil(B / 0.1)
N = int((A+1) // 0.08)
M = int((B+1) // 0.1)
for i in range(X, N+1):
LA.append(i)
for i in range(Y, M+1):
LB.append(i)
ans = set(LA) & set(LB)
ans_list = list(ans)
if not ans_list:
print(-1)
else:
... | [
"call.add",
"call.arguments.change"
] | 537,190 | 537,191 | u465652095 | python |
p02755 | import math
a,b = [float(i) for i in input().split()]
ans = 1000000000
flag = False
for i in range(1,1000):
ans8 = int(math.floor(i*0.08))
ans10 = int(math.floor(i*0.1))
# print(ans8,ans10)
if ans8 == a and ans10 == b:
ans = min(ans, i) # 更新する必要がある.
flag = True
if flag is True:
pri... | import math
a,b = [float(i) for i in input().split()]
ans = 1000000000
flag = False
for i in range(1,1005):
ans8 = int(math.floor(i*0.08))
ans10 = int(math.floor(i*0.1))
# print(ans8,ans10)
if ans8 == a and ans10 == b:
ans = min(ans, i) # 更新する必要がある.
flag = True
if flag is True:
pri... | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,195 | 537,196 | u185297444 | python |
p02755 | import math
a,b = [float(i) for i in input().split()]
ans = 1000000000
Flag = False
for i in range(1,10000):
ans8 = int(math.floor(i*0.08))
ans10 = int(math.floor(i*0.1))
# print(ans8,ans10)
if ans8 == a and ans10 == b:
ans = min(ans, i)
flag = True
if flag:
print(ans)
else:
pr... | import math
a,b = [float(i) for i in input().split()]
ans = 1000000000
flag = False
for i in range(1,1005):
ans8 = int(math.floor(i*0.08))
ans10 = int(math.floor(i*0.1))
# print(ans8,ans10)
if ans8 == a and ans10 == b:
ans = min(ans, i) # 更新する必要がある.
flag = True
if flag is True:
pri... | [
"assignment.variable.change",
"identifier.change",
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"control_flow.branch.if.condition.change"
] | 537,197 | 537,196 | u185297444 | python |
p02755 | import math
a,b = [float(i) for i in input().split()]
ans = 1000000000
Flag = False
for i in range(1,10000):
ans8 = int(math.floor(i*0.08))
ans10 = int(math.floor(i*0.1))
# print(ans8,ans10)
if ans8 == a and ans10 == b:
ans = min(ans, i)
flag = True
if flag:
print(ans)
else:
pr... | import math
a,b = [float(i) for i in input().split()]
ans = 1000000000
flag = False
for i in range(1,10000):
ans8 = int(math.floor(i*0.08))
ans10 = int(math.floor(i*0.1))
# print(ans8,ans10)
if ans8 == a and ans10 == b:
ans = min(ans, i)
flag = True
if flag is True:
print(ans)
else... | [
"assignment.variable.change",
"identifier.change",
"control_flow.branch.if.condition.change"
] | 537,197 | 537,198 | u185297444 | python |
p02755 | A,B = map(int, input().split())
for X in range(1,1000):
if (X*108//100-X)==A and (X*110//100-X)==B:
print(X)
exit()
print(-1) | A,B = map(int, input().split())
for X in range(1,1001):
if (X*108//100-X)==A and (X*110//100-X)==B:
print(X)
exit()
print(-1) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,199 | 537,200 | u117541450 | python |
p02755 | from math import ceil
A, B = map(int, input().split())
max_A = (A+1)*12.5
min_A = (A)*12.5
max_B = (B+1)*10.0
min_B = B*10.0
if min_A <= max_B and min_A >= min_B:
print(ceil(min_A))
elif min_B <= max_A and min_B >= min_A:
print(ceil(min_B))
else:
print(-1)
| from math import ceil
A, B = map(int, input().split())
max_A = (A+1)*12.5
min_A = (A)*12.5
max_B = (B+1)*10.0
min_B = B*10.0
if min_A < max_B and min_A >= min_B:
print(ceil(min_A))
elif min_B < max_A and min_B >= min_A:
print(ceil(min_B))
else:
print(-1)
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 537,201 | 537,202 | u616382321 | python |
p02755 | import math
A, B = map(int, input().split())
for i in range(1, 101):
if math.floor(i * 0.08) == A and math.floor(i * 0.1) == B:
print(i)
break
else:
print(-1) | import math
A, B = map(int, input().split())
for i in range(1, 100000):
if math.floor(i * 0.08) == A and math.floor(i * 0.1) == B:
print(i)
break
else:
print(-1) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,203 | 537,204 | u553987207 | python |
p02755 | from math import floor
A, B = map(int, input().split())
for x in range(1, 1000):
if floor(x * 0.08) == A and floor(x * 0.1) == B:
print(x)
break
else:
print(-1) | from math import floor
A, B = map(int, input().split())
for x in range(1, 1001):
if floor(x * 0.08) == A and floor(x * 0.1) == B:
print(x)
break
else:
print(-1) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,205 | 537,206 | u553987207 | python |
p02755 | A, B = list(map(int, input().split()))
for x in range(1000):
if (x * 8) // 100 == A and x // 10 == B:
print(x)
break
else:
print(-1)
| A, B = list(map(int, input().split()))
for x in range(1001):
if (x * 8) // 100 == A and x // 10 == B:
print(x)
break
else:
print(-1)
| [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,216 | 537,217 | u364774090 | python |
p02755 | A, B = list(map(int, input().split()))
for x in range(13, 1000):
if (x * 8) // 100 == A and x // 10 == B:
print(x)
break
else:
print(-1)
| A, B = list(map(int, input().split()))
for x in range(1001):
if (x * 8) // 100 == A and x // 10 == B:
print(x)
break
else:
print(-1)
| [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.lower.change"
] | 537,218 | 537,217 | u364774090 | python |
p02755 | a,b=map(int,input().split())
for i in range(10000):
A=i*0.08
B=i*0.1
if A==a and B==b:
print(i)
exit()
print(-1) | a,b=map(int,input().split())
for i in range(10000):
A=int(i*0.08)
B=int(i*0.1)
if A==a and B==b:
print(i)
exit()
print(-1)
| [
"call.add",
"call.arguments.change"
] | 537,219 | 537,220 | u460386402 | python |
p02755 | a,b = map(int, input().split())
ok = True
for i in range(b*10+1):
if int(i*0.08)==a and int(i*0.1)==b:
print(i)
ok = False
break
if ok: print(-1) | a,b = map(int, input().split())
ok = True
for i in range(1001):
if int(i*0.08)==a and int(i*0.1)==b:
print(i)
ok = False
break
if ok: print(-1) | [
"identifier.replace.remove",
"literal.replace.add",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change",
"expression.operation.binary.remove"
] | 537,221 | 537,222 | u935642171 | python |
p02755 | A,B = map(int,input().split())
for i in range(1,1251):
if i*0.08==A and i *0.1==B:
print(i)
exit()
print('-1') | A,B = map(int,input().split())
for i in range(1,1251):
if int(i*0.08)==A and int(i*0.1)==B:
print(i)
exit()
print('-1') | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"call.add"
] | 537,230 | 537,231 | u642528832 | python |
p02755 | import math
answer = 0
score = list(map(int,input().split()))
Alist = []
for i in range(100):
if math.floor((i+1)*0.08) == score[0]:
Alist.append(i+1)
for j in range(100):
if math.floor((j+1)*0.10) == score[1]:
if j+1 in Alist:
print(j+1)
answer = 1
break
if a... | import math
answer = 0
score = list(map(int,input().split()))
Alist = []
for i in range(2000):
if math.floor((i+1)*0.08) == score[0]:
Alist.append(i+1)
for j in range(2000):
if math.floor((j+1)*0.10) == score[1]:
if j+1 in Alist:
print(j+1)
answer = 1
break
if... | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,234 | 537,235 | u923507896 | python |
p02755 | N,M=map(int,input().split())
x=max(N//0.08+1,M//0.1+1)
y=min((N+1)/0.08, (M+1)/0.1)
print( -1 if y<x else int(x)) | N,M=map(int,input().split())
x=max(N//0.08+1,M//0.1+1)
y=min((N+1)//0.08, (M+1)//0.1)
print( -1 if y<x else int(x)) | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 537,252 | 537,253 | u623814058 | python |
p02755 | import math
A,B = map(int,input().split())
ans = 0
for i in range(110):
if math.floor((i*8)/100) == A and math.floor((i*1)/10) == B:
ans = i
print(ans)
break
if ans == 0:
print(-1) | import math
A,B = map(int,input().split())
ans = 0
for i in range(1005):
if math.floor((i*8)/100) == A and math.floor((i*1)/10) == B:
ans = i
print(ans)
break
if ans == 0:
print(-1) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,261 | 537,262 | u247753603 | python |
p02755 | import math
a, b = list(map(int, input().split()))
for i in range(1, 1250):
p8 = math.floor(i * 0.08)
p10 = math.floor(i * 0.10)
if p8 == a and p10 == b:
print(i)
return
print(-1) | import math
a, b = list(map(int, input().split()))
for i in range(1, 1250):
p8 = math.floor(i * 0.08)
p10 = math.floor(i * 0.10)
if p8 == a and p10 == b:
print(i)
exit()
print(-1) | [
"control_flow.return.remove",
"control_flow.exit.add",
"call.add"
] | 537,263 | 537,264 | u956112889 | python |
p02755 |
A, B = map(int, input().split())
def floor_inv(x, f):
res = int(x / f)
if int(res * f) < x:
res += 1
return res
lb1 = floor_inv(A, 0.08)
ub1 = floor_inv(A + 1, 0.08)
lb2 = floor_inv(B, 0.10)
ub2 = floor_inv(B + 1, 0.10)
if ub1 < lb2 or ub2 < lb1:
print(-1)
else:
print(max(lb1, lb2))
|
A, B = map(int, input().split())
def floor_inv(x, f):
res = int(x / f)
if int(res * f) < x:
res += 1
return res
lb1 = floor_inv(A, 0.08)
ub1 = floor_inv(A + 1, 0.08)
lb2 = floor_inv(B, 0.10)
ub2 = floor_inv(B + 1, 0.10)
if ub1 <= lb2 or ub2 <= lb1:
print(-1)
else:
print(max(lb1, lb2))... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 537,273 | 537,272 | u057109575 | python |
p02755 | #https://atcoder.jp/contests/abc158/tasks/abc158_c
import math
e,t = map(int,input().split())
t_s = list(range(math.ceil(t/0.1),math.ceil(t/0.1)+100))
ans = -1
for i in t_s:
if math.floor(i*0.08) == e:
ans = i
break
print(ans) | #https://atcoder.jp/contests/abc158/tasks/abc158_c
import math
e,t = map(int,input().split())
t_s = list(range(math.ceil(t/0.1),math.ceil(t/0.1)+10))
ans = -1
for i in t_s:
if math.floor(i*0.08) == e:
ans = i
break
print(ans) | [
"literal.number.integer.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,274 | 537,275 | u773686010 | python |
p02755 | A, B = map(int, input().split())
target = -1
for i in range(1300):
if int(i*0.08) == A and int(i*0.1) == B:
target = i
print(target)
| A, B = map(int, input().split())
target = -1
for i in range(1300):
if int(i*0.08) == A and int(i*0.1) == B:
target = i
break
print(target)
| [
"control_flow.break.add"
] | 537,283 | 537,284 | u240630407 | python |
p02755 | A, B = map(int, input().split())
target = -1
for i in range(1300):
if int(i*0.08) == int(i*0.1):
target = i
print(target) | A, B = map(int, input().split())
target = -1
for i in range(1300):
if int(i*0.08) == A and int(i*0.1) == B:
target = i
break
print(target)
| [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"control_flow.break.add"
] | 537,285 | 537,284 | u240630407 | python |
p02755 | A, B = map(int, input().split())
for i in range(1000):
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(1001):
if(int(i*0.08) == A and int(i*0.1) == B):
print(i)
break
else:
print(-1)
| [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,288 | 537,289 | u627691992 | python |
p02755 | # ABC158 C - Tax Increase
a,b = map(int,input().split())
import math
c=10000
for i in range(101):
if math.floor(i*0.08)==a and math.floor(i*0.10)==b:
c = min(c,i)
if c==10000:
print(-1)
exit()
print(c) | # ABC158 C - Tax Increase
a,b = map(int,input().split())
import math
c=10000
for i in range(1200):
if math.floor(i*0.08)==a and math.floor(i*0.10)==b:
c = min(c,i)
if c==10000:
print(-1)
exit()
print(c) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,300 | 537,301 | u433380437 | python |
p02755 | # ABC158 C - Tax Increase
a,b = map(int,input().split())
import math
c=10000
for i in range(100):
if math.floor(i*0.08)==a and math.floor(i*0.10)==b:
c = min(c,i)
if c==10000:
print(-1)
exit()
print(c) | # ABC158 C - Tax Increase
a,b = map(int,input().split())
import math
c=10000
for i in range(1200):
if math.floor(i*0.08)==a and math.floor(i*0.10)==b:
c = min(c,i)
if c==10000:
print(-1)
exit()
print(c) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,302 | 537,301 | u433380437 | python |
p02755 | a,b = map(int,input().split())
for i in range(a//2,a):
aa = ( i * 8 ) // 100
bb = ( i * 10 ) // 100
if aa == a and bb == b:
print(i)
exit()
print("-1") | a,b = map(int,input().split())
for i in range(1,10000):
aa = ( i * 8 ) // 100
bb = ( i * 10 ) // 100
if aa == a and bb == b:
print(i)
exit()
print("-1") | [
"identifier.replace.remove",
"literal.replace.add",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change",
"expression.operation.binary.remove"
] | 537,305 | 537,306 | u094534261 | python |
p02755 | # C Tax Increase
A, B = map(int, input().split())
a = [i for i in range(int(A*100/8), int((A+1)*100/8))]
b = [i for i in range(B*10, (B+1)*10)]
ans = list(set(a) & set(b))
if ans:
print(min(ans))
else:
print(-1) | # C Tax Increase
from math import ceil
A, B = map(int, input().split())
a = [i for i in range(ceil(A*100/8), int((A+1)*100/8))]
b = [i for i in range(B*10, (B+1)*10)]
ans = list(set(a) & set(b))
if ans:
print(min(ans))
else:
print(-1) | [
"assignment.value.change",
"identifier.change",
"call.function.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,322 | 537,323 | u929217794 | python |
p02755 | # C Tax Increase
A, B = map(int, input().split())
a = [i for i in range(int(A*100/8), int((A+1)*100/8))]
b = [i for i in range(B*10, (B+1)*10)]
ans = list(set(a) & set(b))
if ans:
print(min(ans))
else:
print(-1)
| # C Tax Increase
from math import ceil
A, B = map(int, input().split())
a = [i for i in range(ceil(A*100/8), int((A+1)*100/8))]
b = [i for i in range(B*10, (B+1)*10)]
ans = list(set(a) & set(b))
if ans:
print(min(ans))
else:
print(-1) | [
"assignment.value.change",
"identifier.change",
"call.function.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,324 | 537,323 | u929217794 | python |
p02755 | a, b = map(int,input().split())
a_list = []
b_list = []
flag = 0
for i in range(1,101):
if int(i*1.08)-i == a:
a_list.append(i)
for j in a_list:
if int(j*1.1)-j == b:
print(j)
flag = 1
break
if flag != 1:
print('-1')
| a, b = map(int,input().split())
a_list = []
b_list = []
flag = 0
for i in range(1,1009):
if int(i*1.08)-i == a:
a_list.append(i)
for j in a_list:
if int(j*1.1)-j == b:
print(j)
flag = 1
break
if flag != 1:
print('-1')
| [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,330 | 537,331 | u436982376 | python |
p02755 | A, B = map(int, input().split())
ans = -1
for i in range(1, 751):
if i * 8 // 100 == A and i * 10 // 100 == B:
ans = i
break
print(ans)
| A, B = map(int, input().split())
ans = -1
for i in range(1, 1251):
if i * 8 // 100 == A and i * 10 // 100 == B:
ans = i
break
print(ans)
| [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,332 | 537,333 | u374531474 | python |
p02755 | a, b = map(int, input().split())
if int(a / 0.08 * 0.1) == b:
print(int(a / 0.08 * 0.1))
elif int(b / 0.1 * 0.08) == a:
print(int(b / 0.1 * 0.08))
else:
print(-1) | a, b = map(int, input().split())
if int(a / 0.08 * 0.1) == b:
print(round(a / 0.08 + 0.0001))
elif int(b / 0.1 * 0.08) == a:
print(round(b / 0.1 + 0.0001))
else:
print(-1)
| [
"identifier.change",
"call.function.change",
"call.arguments.change",
"io.output.change"
] | 537,338 | 537,339 | u878654696 | python |
p02755 | A, B = map(int, input().split())
N = 1000
p1 = 0.08
p2 = 0.1
for i in range(1, N + 1):
if int(i * p1) == A and int(i * p2):
print(i)
exit()
print("-1") | A, B = map(int, input().split())
N = 1000
p1 = 0.08
p2 = 0.1
for i in range(1, N + 1):
if int(i * p1) == A and int(i * p2) == B:
print(i)
exit()
print("-1") | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 537,340 | 537,341 | u158995862 | python |
p02755 | A, B = map(int, input().split())
N = 100
p1 = 0.08
p2 = 0.1
for i in range(1, N + 1):
if int(i * p1) == A and int(i * p2):
print(i)
exit()
print("-1") | A, B = map(int, input().split())
N = 1000
p1 = 0.08
p2 = 0.1
for i in range(1, N + 1):
if int(i * p1) == A and int(i * p2) == B:
print(i)
exit()
print("-1") | [
"literal.number.integer.change",
"assignment.value.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 537,342 | 537,341 | u158995862 | python |
p02755 | from sys import stdin
input = stdin.readline
def main():
A, B = list(map(int, input().split()))
for i in range(101):
if int(i * 0.08) == A and \
int(i * 0.10) == B:
print(i)
return
print(-1)
if(__name__ == '__main__'):
main()
| from sys import stdin
input = stdin.readline
def main():
A, B = list(map(int, input().split()))
for i in range(10000):
if int(i * 0.08) == A and \
int(i * 0.10) == B:
print(i)
return
print(-1)
if(__name__ == '__main__'):
main()
| [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,343 | 537,344 | u522140891 | python |
p02755 | import re
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
import functools
def v(): return input()
def k(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def X(): return list(inpu... | import re
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
import functools
def v(): return input()
def k(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def X(): return list(inpu... | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,345 | 537,346 | u750651325 | python |
p02755 | a, b = map(int, input().split())
for i in range(10001):
if int(i * 0.1) == a and int(i * 0.08) == b:
print(i)
exit()
print(-1) | a, b = map(int, input().split())
for i in range(10001):
if int(i * 0.08) == a and int(i * 0.1) == b:
print(i)
exit()
print(-1) | [
"literal.number.float.change",
"control_flow.branch.if.condition.change"
] | 537,356 | 537,357 | u802963389 | python |
p02755 | #57
import decimal
a,b = map(int,input().split())
for i in range(1,10001):
num1 = int(i*decimal.Decimal("0.08"))
num2 = int(i*decimal.Decimal("0.1"))
if num1 == a and num2 == b:
print(i)
break
if i*decimal.Decimal("0.08") > a:
print("-1")
break | #57
import decimal
a,b = map(int,input().split())
for i in range(1,10001):
num1 = int(i*decimal.Decimal("0.08"))
num2 = int(i*decimal.Decimal("0.1"))
if num1 == a and num2 == b:
print(i)
break
if int(i*decimal.Decimal("0.08")) > a:
print("-1")
break | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"call.add"
] | 537,358 | 537,359 | u679089074 | python |
p02755 | import math
N,M = map(int,input().split())
n = math.ceil(N/0.08)
m = int(M/0.1)
print(n,m)
ans = 2000
if int(n*0.1) ==M:
ans = min(n,ans)
if int(m*0.08) ==N:
ans =min(m,ans)
if int(n*0.1)!=M and int(m*0.08)!=N:
ans = -1
print(ans) | import math
N,M = map(int,input().split())
n = math.ceil(N/0.08)
m = int(M/0.1)
ans = 2000
if int(n*0.1) ==M:
ans = min(n,ans)
if int(m*0.08) ==N:
ans =min(m,ans)
if int(n*0.1)!=M and int(m*0.08)!=N:
ans = -1
print(ans) | [
"call.remove"
] | 537,366 | 537,367 | u766646838 | python |
p02755 | N,M = map(int,input().split())
n = round(N/0.08)
m = round(M/0.1)
ans = 2000
if int(n*0.1) ==M:
ans = min(n,ans)
if int(m*0.08) ==N:
ans =min(m,ans)
if int(n*0.1)!=M and int(m*0.08)!=N:
ans = -1
print(ans) | import math
N,M = map(int,input().split())
n = math.ceil(N/0.08)
m = int(M/0.1)
ans = 2000
if int(n*0.1) ==M:
ans = min(n,ans)
if int(m*0.08) ==N:
ans =min(m,ans)
if int(n*0.1)!=M and int(m*0.08)!=N:
ans = -1
print(ans) | [
"assignment.value.change",
"identifier.change",
"call.function.change"
] | 537,368 | 537,367 | u766646838 | python |
p02755 | a,b = map(int, input().split())
if(a%2 == 1):
a_h = (a+1)*100 // 8 + 1
a_l = a*100 // 8 + 1
else:
a_h = (a+1)*100 // 8
a_l = a*100 // 8
b_h = (b+1)*10
b_l = b*10
if(a_l >= b_h or b_l >= a_h):
print(-1)
elif(a_l < b_l):
print(b_l)
elif(b_l <= a_l):
print(a_l) | a,b = map(int, input().split())
if(a%2 == 1):
a_h = (a+1)*100 // 8
a_l = a*100 // 8 + 1
else:
a_h = (a+1)*100 // 8 + 1
a_l = a*100 // 8
b_h = (b+1)*10
b_l = b*10
if(a_l >= b_h or b_l >= a_h):
print(-1)
elif(a_l < b_l):
print(b_l)
elif(b_l <= a_l):
print(a_l) | [
"expression.operation.binary.remove"
] | 537,373 | 537,374 | u749742659 | python |
p02755 | a, b = map(int, input().split())
count = 0
ans = 0
for i in range(1, 101):
if int(i*0.08) == a and int(i*0.1) == b:
count = 1
ans = i
break
else:
pass
print(ans if count == 1 else "-1") | a, b = map(int, input().split())
count = 0
ans = 0
for i in range(1, 1001):
if int(i*0.08) == a and int(i*0.1) == b:
count = 1
ans = i
break
else:
pass
print(ans if count == 1 else "-1") | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,381 | 537,382 | u701077471 | python |
p02755 | A,B=map(int,input().split())
for i in range(101):
if ((i*8)+0.000005)//100==A and ((i*10)+0.000005)//100==B:
print(i)
exit()
else:
pass
print(-1) | A,B=map(int,input().split())
for i in range(20000):
if ((i*8)+0.000005)//100==A and ((i*10)+0.000005)//100==B:
print(i)
exit()
else:
pass
print(-1) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,387 | 537,388 | u674588203 | python |
p02755 | A,B=map(int,input().split())
for i in range(101):
if ((i*8)+0.5)//100==A and ((i*10)+0.5)//100==B:
print(i)
exit()
else:
pass
print(-1) | A,B=map(int,input().split())
for i in range(20000):
if ((i*8)+0.000005)//100==A and ((i*10)+0.000005)//100==B:
print(i)
exit()
else:
pass
print(-1) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"literal.number.float.change",
"control_flow.branch.if.condition.change"
] | 537,389 | 537,388 | u674588203 | python |
p02755 | a,b = map(int, input().split())
import math
if math.ceil((a+1)*12.5) < math.ceil(b*10) or math.ceil(a*12.5) > math.ceil((b+1)*10):
print(-1)
else:
print(max(math.ceil(a*12.5),math.ceil(b*10))) | a,b = map(int, input().split())
import math
if math.ceil((a+1)*12.5) <= math.ceil(b*10) or math.ceil(a*12.5) >= math.ceil((b+1)*10):
print(-1)
else:
print(max(math.ceil(a*12.5),math.ceil(b*10))) | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 537,390 | 537,391 | u573234244 | python |
p02755 | import sys
a, b = map(int, input().split())
for i in range(1000):
at = int(i * 0.08)
bt = int(i * 0.10)
if at == a and bt == b:
print(i)
sys.exit()
print(-1)
| import sys
a, b = map(int, input().split())
for i in range(1001):
at = int(i * 0.08)
bt = int(i * 0.10)
if at == a and bt == b:
print(i)
sys.exit()
print(-1)
| [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,392 | 537,393 | u432897824 | python |
p02755 | import math
A, B = map(int,input().split())
if A == 0 and B == 0:
print(0)
exit()
for i in range(100):
a = math.floor((i+1)*8/100)
b = math.floor((i+1)/10)
if A == a and B == b:
print(i+1)
exit()
print(-1)
| import math
A, B = map(int,input().split())
if A == 0 and B == 0:
print(0)
exit()
for i in range(1000):
a = math.floor((i+1)*8/100)
b = math.floor((i+1)/10)
if A == a and B == b:
print(i+1)
exit()
print(-1)
| [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,399 | 537,400 | u801701525 | python |
p02755 | A,B = map(int,input().split())
for i in range(0,111):
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(0,1001):
if int(i*0.08) == A and int(i*0.1)==B:
print(i)
exit()
print(-1) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,401 | 537,402 | u723711163 | python |
p02755 | a,b=map(int,input().split())
x=100*a/8
y=100/8*(a+1)
z=10*b
w=10*(b+1)
import math
if max(math.ceil(z),math.ceil(x))<w:
print(math.ceil(max(z,x)))
else:
print(-1) | a,b=map(int,input().split())
x=100*a/8
y=100/8*(a+1)
z=10*b
w=10*(b+1)
import math
if max(math.ceil(z),math.ceil(x))<min(y,w) :
print(math.ceil(max(z,x)))
else:
print(-1) | [
"control_flow.branch.if.condition.change",
"call.add"
] | 537,405 | 537,404 | u225596320 | python |
p02755 | import math
A, B = map(int,input().split())
minA = math.floor(A/0.08)
maxA = math.ceil((A+1)/0.08) -1
minB = math.floor(B/0.1)
maxB = math.ceil((B+1)/0.1) -1
if (minA>maxB) or (minB>maxA):
print(-1)
else:
print(max(minA,minB))
| import math
A, B = map(int,input().split())
minA = math.ceil(A/0.08)
maxA = math.ceil((A+1)/0.08) -1
minB = math.ceil(B/0.1)
maxB = math.ceil((B+1)/0.1) -1
if (minA>maxB) or (minB>maxA):
print(-1)
else:
print(max(minA,minB))
| [
"misc.opposites",
"assignment.value.change",
"identifier.change"
] | 537,406 | 537,407 | u408071652 | python |
p02755 | import math
A, B = map(int,input().split())
minA = math.floor(A/0.08)
maxA = math.ceil((A+1)/0.08) -1
minB = math.floor(B/0.08)
maxB = math.ceil((B+1)/0.08) -1
if (minA>maxB) or (minB>maxA):
print(-1)
else:
print(max(minA,minB))
| import math
A, B = map(int,input().split())
minA = math.ceil(A/0.08)
maxA = math.ceil((A+1)/0.08) -1
minB = math.ceil(B/0.1)
maxB = math.ceil((B+1)/0.1) -1
if (minA>maxB) or (minB>maxA):
print(-1)
else:
print(max(minA,minB))
| [
"misc.opposites",
"assignment.value.change",
"identifier.change",
"literal.number.float.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 537,408 | 537,407 | u408071652 | python |
p02755 | import math
A, B = map(int,input().split())
minA = math.floor(A/0.08)
maxA = math.ceil((A+1)/0.08) -1
minB = math.floor(B/0.08)
maxB = math.ceil((B+1)/0.08) -1
if (minA>maxB) or (minB>maxA):
print(-1)
else:
print(min(minA,minB))
| import math
A, B = map(int,input().split())
minA = math.ceil(A/0.08)
maxA = math.ceil((A+1)/0.08) -1
minB = math.ceil(B/0.1)
maxB = math.ceil((B+1)/0.1) -1
if (minA>maxB) or (minB>maxA):
print(-1)
else:
print(max(minA,minB))
| [
"misc.opposites",
"assignment.value.change",
"identifier.change",
"literal.number.float.change",
"call.arguments.change",
"expression.operation.binary.change",
"call.function.change",
"io.output.change"
] | 537,409 | 537,407 | u408071652 | python |
p02755 | A, B = map(int, input().split())
ans = -1
for i in range(1,101):
if (int((i*8)/100)==A) & (int((i*10)/100)==B):
#print((i*8)/100)
#print((i*10)/100)
ans = i
break
print(ans) | A, B = map(int, input().split())
ans = -1
for i in range(1,1101):
if (int((i*8)/100)==A) & (int((i*10)/100)==B):
#print((i*8)/100)
#print((i*10)/100)
ans = i
break
print(ans)
| [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,421 | 537,422 | u941644149 | python |
p02755 | def main():
a, b = map(int, input().split())
al = int(a / 0.08 + 0.05)
bl = int(b / 0.1)
au = al + 12 - a % 2
bu = bl + 9
if bu < al or au < bl:
print(-1)
else:
print(max(al, bl))
if __name__ == '__main__':
main()
| def main():
a, b = map(int, input().split())
al = int(a / 0.08 + 0.5)
bl = int(b / 0.1)
au = al + 12 - a % 2
bu = bl + 9
if bu < al or au < bl:
print(-1)
else:
print(max(al, bl))
if __name__ == '__main__':
main()
| [
"literal.number.float.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 537,427 | 537,428 | u926080943 | python |
p02755 | def main():
a, b = map(int, input().split())
eight = [i for i in range(0, 101) if a == int(i * 0.08)]
ten = [i for i in range(0, 101) if b == int(i * 0.1)]
for i in eight:
for j in ten:
if i == j:
print(i)
return
print(-1)
if __name__ == '__main_... | def main():
a, b = map(int, input().split())
eight = [i for i in range(0, 2000) if a == int(i * 0.08)]
ten = [i for i in range(0, 2000) if b == int(i * 0.1)]
for i in eight:
for j in ten:
if i == j:
print(i)
return
print(-1)
if __name__ == '__mai... | [
"literal.number.integer.change",
"assignment.value.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,429 | 537,430 | u926080943 | python |
p02755 | a,b=map(int,input().split())
for i in range(b*10,b*10+10):
if i*0.08 == a:
print(i)
break
else:
print(-1) | a,b=map(int,input().split())
for i in range(b*10,b*10+9):
if int(i*0.08)==a:
print(i)
break
else:
print(-1) | [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"call.add"
] | 537,433 | 537,434 | u238940874 | python |
p02755 | a,b=map(int,input().split())
for i in range(b*10,b*10+10):
if i*0.08 == a:
print(i)
break
else:
print(-1) | a,b=map(int,input().split())
for i in range(b*10,b*10+9):
if int(i*0.08) == a:
print(i)
break
else:
print(-1) | [
"literal.number.integer.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.range.bounds.upper.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"call.add"
] | 537,433 | 537,435 | u238940874 | python |
p02755 | A, B = map(int, input().split())
min_price_A = A * 12.5
max_price_A = min_price_A + 12
min_price_B = B * 10
max_price_B = min_price_B + 10
if min_price_A <= min_price_B:
if max_price_A >= min_price_B:
print(int(min_price_B))
else:
print(-1)
else:
if max_price_B >= min_price_A:
pri... | import math
A, B = map(int, input().split())
min_price_A = A * 12.5
max_price_A = min_price_A + 12
min_price_B = B * 10
max_price_B = min_price_B + 9
if min_price_A <= min_price_B:
if max_price_A >= min_price_B:
print(int(min_price_B))
else:
print(-1)
else:
if max_price_B >= min_price_A:... | [
"literal.number.integer.change",
"assignment.value.change",
"expression.operation.binary.change",
"call.arguments.change",
"io.output.change"
] | 537,445 | 537,446 | u688587139 | python |
p02755 | a,b=list(map(float,input().split()))
import sys
for i in range(100000):
if int(i*8/100)==a and int(i*10/100):
print(i)
sys.exit()
print(-1)
| a,b=list(map(float,input().split()))
import sys
for i in range(100000):
if int(i*8/100)==a and int(i*10/100)==b:
print(i)
sys.exit()
print(-1)
| [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 537,462 | 537,463 | u437351386 | python |
p02755 | a,b=list(map(float,input().split()))
import sys
for i in range(100000):
if int(i*8/100)==a and int(i*8/100):
print(i)
sys.exit()
print(-1)
| a,b=list(map(float,input().split()))
import sys
for i in range(100000):
if int(i*8/100)==a and int(i*10/100)==b:
print(i)
sys.exit()
print(-1)
| [
"literal.number.integer.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 537,464 | 537,463 | u437351386 | python |
p02755 | import math as m
a,b=map(int,input().split())
flag=True
for i in range(1,101):
if m.floor(i*(0.08))==a and m.floor(i*(0.1))==b:
flag=False
print(i)
break
if flag:
print(-1)
| import math as m
a,b=map(int,input().split())
flag=True
for i in range(1,100000):
if m.floor(i*0.08)==a and m.floor(i*0.10)==b:
flag=False
print(i)
break
if flag:
print(-1)
| [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 537,504 | 537,505 | u858929490 | python |
p02755 | import math as m
a,b=map(int,input().split())
flag=True
for i in range(1,101):
if m.floor(i*(0.08))==a and m.floor(i*(0.08))==b:
flag=False
print(i)
break
if flag:
print(-1)
| import math as m
a,b=map(int,input().split())
flag=True
for i in range(1,100000):
if m.floor(i*0.08)==a and m.floor(i*0.10)==b:
flag=False
print(i)
break
if flag:
print(-1)
| [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 537,506 | 537,505 | u858929490 | python |
p02755 | #Tax Increase
import math
a, b = map(int, input().split())
for i in range(1000):
if a == math.floor(i*0.08) and b == math.floor(i*0.1):
print(i)
break
else:
print(-1) | #Tax Increase
import math
a, b = map(int, input().split())
for i in range(1251):
if a == math.floor(i*0.08) and b == math.floor(i*0.1):
print(i)
break
else:
print(-1) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,507 | 537,508 | u277104886 | python |
p02755 | #Tax Increase
import math
a, b = map(int, input().split())
for i in range(1000):
if a == math.floor(i*0.08) and b == math.floor(i*0.1):
print(i)
break
else:
print(-1) | #Tax Increase
import math
a, b = map(int, input().split())
for i in range(10000):
if a == math.floor(i*0.08) and b == math.floor(i*0.1):
print(i)
break
else:
print(-1) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,507 | 537,509 | u277104886 | python |
p02755 | A, B = map(int, input().split())
ans = []
for i in range(1000):
tax_eight = int(i * 0.08)
tax_ten = int(i * 0.1)
if A == tax_eight and B == tax_ten:
ans.append(i)
if len(ans) == 0:
print(-1)
else:
print(min(ans)) | A, B = map(int, input().split())
ans = []
for i in range(1001):
tax_eight = int(i * 0.08)
tax_ten = int(i * 0.1)
if A == tax_eight and B == tax_ten:
ans.append(i)
if len(ans) == 0:
print(-1)
else:
print(min(ans)) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,522 | 537,523 | u250734103 | python |
p02755 | a, b = map(int, input().split())
flag = 0
for i in range(1,101):
hati = int(i * 0.08)
juu = int(i * 0.1)
if hati == a and juu == b:
flag = 1
print(i)
break
if flag == 0:
print("-1") | a, b = map(int, input().split())
flag = 0
for i in range(1, 1001):
hati = int(i * 0.08)
juu = int(i * 0.1)
if hati == a and juu == b:
flag = 1
print(i)
break
if flag == 0:
print("-1") | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,526 | 537,527 | u501451051 | python |
p02755 | #import math
a,b=map(int,input().split())
#x=int(a/0.08)
#y=int(b/0.1)
for i in range(1,1000):
#for i in range(y,x+1):
if int(i*0.08)==a and int(i*0.1)==b:
print(i)
break
else:
print(-1)
| #import math
a,b=map(int,input().split())
#x=int(a/0.08)
#y=int(b/0.1)
for i in range(1,1001):
#for i in range(y,x+1):
if int(i*0.08)==a and int(i*0.1)==b:
print(i)
break
else:
print(-1) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,529 | 537,530 | u322616042 | 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(1010):
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"
] | 537,531 | 537,532 | u850779832 | python |
p02755 | a,b = map(int, input().split())
ans = -1
for i in range(100):
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(1010):
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"
] | 537,533 | 537,532 | u850779832 | python |
p02755 | def main():
A, B = map(int, input().split())
for x in range(200):
if int(x * 0.08) == A and int(x * 0.1) == B:
print(x)
return
print(-1)
if __name__ == '__main__':
main()
# import sys
#
# sys.setrecursionlimit(10 ** 7)
#
# input = sys.stdin.readline
# rstrip()
# int(... | def main():
A, B = map(int, input().split())
for x in range(10000):
if int(x * 0.08) == A and int(x * 0.1) == B:
print(x)
return
print(-1)
if __name__ == '__main__':
main()
# import sys
#
# sys.setrecursionlimit(10 ** 7)
#
# input = sys.stdin.readline
# rstrip()
# in... | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,545 | 537,546 | u562935282 | python |
p02755 | n,m=map(int,input().split())
for i in range(1,1000):
if int(i*0.08)==n and int(i*0.1)==m:
print(i)
break
else:
print(-1) | n,m=map(int,input().split())
for i in range(1,1263):
if int(i*0.08)==n and int(i*0.1)==m:
print(i)
break
else:
print(-1) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 537,547 | 537,548 | u344065503 | python |
p02755 | n,m=map(int,input().split())
for i in range(1,1000):
if int(i*0.08)==n and int(i*0.1)==m:
print(i)
else:
print(-1)
| n,m=map(int,input().split())
for i in range(1,1263):
if int(i*0.08)==n and int(i*0.1)==m:
print(i)
break
else:
print(-1) | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"control_flow.break.add"
] | 537,549 | 537,548 | u344065503 | python |
p02755 | import math
A,B=map(int,input().split())
a=math.floor(A/0.08)
aa=math.ceil((A+1)/0.08)
for i in range(a,aa):
if B<=i*0.1<B+1:
print(i)
exit()
else:
print('-1')
| import math
A,B=map(int,input().split())
a=math.ceil(A/0.08)
aa=math.floor((A+1)/0.08)
for i in range(a,aa):
if B<=i*0.1<B+1:
print(i)
exit()
else:
print('-1')
| [
"misc.opposites",
"assignment.value.change",
"identifier.change"
] | 537,553 | 537,554 | u579015878 | python |
p02755 | import math
A,B=map(int,input().split())
a=math.floor(A/0.08)
aa=math.floor((A+1)/0.08)
for i in range(a,aa):
if B<=i*0.1<B+1:
print(i)
exit()
else:
print('-1')
| import math
A,B=map(int,input().split())
a=math.ceil(A/0.08)
aa=math.floor((A+1)/0.08)
for i in range(a,aa):
if B<=i*0.1<B+1:
print(i)
exit()
else:
print('-1')
| [
"misc.opposites",
"assignment.value.change",
"identifier.change"
] | 537,555 | 537,554 | u579015878 | python |
p02755 | A, B = map(int, input().split())
x1 = 25*A//2
x2 = 25*(A+1)//2
x3 = 10*B
x4 = 10*(B+1)
if x1 <= x3 and x3 < x2:
print(x3)
elif x3 <= x1 and x1 < x4:
print(x1)
else:
print(-1)
| A, B = map(int, input().split())
x1 = -(-25*A//2)
x2 = 25*(A+1)//2
x3 = 10*B
x4 = 10*(B+1)
#print(x1, x2, x3, x4)
if x1 <= x3 and x3 < x2:
print(x3)
elif x3 <= x1 and x1 < x4:
print(x1)
else:
print(-1)
| [] | 537,556 | 537,557 | u189516107 | python |
p02755 | A, B = map(int, input().split())
x1 = 25*A//2
x2 = 25*(A+1)//2
x3 = 10*B
x4 = 10*(B+1)
if x1 <= x3 and x3 < x2:
print(x3)
elif x3 <= x1 and x1 < x2:
print(x1)
else:
print(-1)
| A, B = map(int, input().split())
x1 = -(-25*A//2)
x2 = 25*(A+1)//2
x3 = 10*B
x4 = 10*(B+1)
#print(x1, x2, x3, x4)
if x1 <= x3 and x3 < x2:
print(x3)
elif x3 <= x1 and x1 < x4:
print(x1)
else:
print(-1)
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 537,558 | 537,557 | u189516107 | python |
p02755 | # import sys
import math
# import itertools
# from collections import deque
# from collections import defaultdict
# import heapq
# import copy
# import bisect
# import numpy as np
# from scipy.special import comb
# def my_input(): return sys.stdin.readline().rstrip()
# sys.setrecursionlimit(100000)
# INF = 10010010010... | # import sys
import math
# import itertools
# from collections import deque
# from collections import defaultdict
# import heapq
# import copy
# import bisect
# import numpy as np
# from scipy.special import comb
# def my_input(): return sys.stdin.readline().rstrip()
# sys.setrecursionlimit(100000)
# INF = 10010010010... | [
"literal.number.float.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 537,559 | 537,560 | u163783894 | python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.