TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
A, B = map(int, input().split())
C = -(-A//0.08)
D = -(-(A+1)//0.08)
for i in range(C,D):
    if i//10 == B:
        break
        print(i)
else:
    print(-1)

A, B = map(int, input().split())
C = -(-A//0.08)
D = -(-(A+1)//0.08)
for i in range(C,D):
    if i//10 == B:
      print(i)
      break
else:
    print(-1)

A, B = map(int, input().split())
C = int(-(-A//0.08))
D = int(-(-(A+1)//0.08))
for i in range(C,D):
    if i//10 == B:
      print(i)
      break
else:
    print(-1)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
import math
a, b = map(int, input().split())
p = math.ceil((a+b)/0.18)
print(p if p < (a+b+2)/0.18 and p != 0 else -1)

a, b = map(int, input().split())
exist = 0
for i in range(5000):
    if int(i*0.08) == a and int(i*0.1) == b:
        print(i)
        exist = 1
        break
if exist == 0:
    print(-1)

Verdicts: Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
b = [int(x) for x in input().split()]
 
if (b < a):
    tmp = b
    b = a
    a = tmp
 
 
x = 1
while True:
    if (int(x*0.08) == a and int(x*0.1) == b):
        print(x)
        break
    else:
    if (x > 1500):
            print(-1)
            break
    else:
            x += 1

b = [int(x) for x in input().split()]
 
if (b < a):
    tmp = b
    b = a
    a = tmp
 
 
x = 1
while True:
    if (int(x*0.08) == a and int(x*0.1) == b):
        print(x)
        break
    else:
        if (x > 1500):
            print(-1)
            break
        else:
            x += 1

a, b = [int(x) for x in input().split()]
 
if (b < a):
    tmp = b
    b = a
    a = tmp
 
 
x = 1
while True:
    if (int(x*0.08) == a and int(x*0.1) == b):
        print(x)
        break
    else:
        if (x > 1500):
            print(-1)
            break
        else:
            x += 1

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
a,b=map(int,input().split())
x1=a*100//8
x2=b*10
 if x1//10==b:
    print(x1)
else:
    print(-1)


a,b=map(int,input().split())
if a*100//8==b*10:
    print(b*10)
else:
    print(-1)


a,b=map(int,input().split())
ans=-1
for i in range(1,10000):
    if i*8//100==a and i*10//100==b:
        ans=i
        break
print(ans)


Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
from math import floor
a, b = map(int, input().split())
ans = -1
for i in range(10101):
  if floor(i*0.08) = a and floor(i*0.1) = b:
    ans = i
    break
print(ans)

from math import floor
a, b = map(int, input().split())
ans = -1
for i in range(10101):
  if floor(i*0.08) == a and floor(i*0.1) == b:
    ans = i
    break
print(ans)

Verdicts: Runtime Error

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
from math import floor
from sys import exit
A, B = map(int, input().split())
for i in range(100):
  if floor(i * 1.08) == A and floor(i * 1.1) == B:
    print(i)
    exit()
print(-1)

from math import floor
from sys import exit
A, B = map(int, input().split())
for i in range(2000):
  if floor(i * 0.08) == A and floor(i * 0.1) == B:
    print(i)
    exit()
print(-1)

Verdicts: Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
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_min < a_max:
  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)


Verdicts: Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
A, B = map(int, input().split())

for i in range(B*10+1):
    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(1100):
    if int(i * 0.08) == A and int(i * 0.1) == B:
        print(i)
        break
else:
    print(-1)


Verdicts: Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
B,A = map(int,input().split())


if (B+0.9)*12.5 >= A*10 and A*10 >= B*12.5:
    print(A*10)
elif (B+0.9)*12.5 >= (A+0.9)*10 and (A+0.9)*10 >= B*12.5:
    print(B*12.5)
else:
    print("-1")

A,B=map(int,input().split())

import math
ans="-1"
for i in range(10000):

    if math.floor(i*0.08)==A and math.floor(i*0.1)==B:
        
        ans=i
        break

print(ans)

Verdicts: Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
A, B = list(map(int, input()))

x = -1
for i in range(100):
  if (int(i*1.08) == A) and (int(i*1.1) == B):
    x = i
    break
  
print(x)

A, B = list(map(int, input()))

x = -1
for i in range(10100)
  if (int(i*0.08) == A) and (int(i*0.1) == B):
    x = i
    break
  
print(x)

A, B = list(map(int, input()))

x = -1
for i in range(10100):
  if (int(i*0.08) == A) and (int(i*0.1) == B):
    x = i
    break
  
print(x)

A, B = list(map(int, input().split()))

x = -1
for i in range(10100):
  if (int(i*0.08) == A) and (int(i*0.1) == B):
    x = i
    break
  
print(x)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
import math

def calc(percent,tax):
  return math.ceil((tax*100)/percent)


def main():
  print(calc(10,B) if calc(10,B)<=calc(8,A)<calc(10,B+1) else -1)

  
if __name__=='__main__':
  A, B = map(int, input().split())
  main()
  

A, B = map(int, input().split())
for i in range(1001):
  if i*0.08//1==A and i*0.1//1==B:
    print(i)
    break
else:
  print(-1)



Verdicts: Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
S = Input().split(' ')
A = int(S[0])
B = int(S[1])
A_t = A/0.08
B_t = B/0.1
if A_t == B_t:
    print(A_t)
else:
    print(-1)

S = input().split(' ')
A = int(S[0])
B = int(S[1])
A_t = A/0.08
B_t = B/0.1
if A_t == B_t:
    print(A_t)
else:
    print(-1)

import math

S = input().split(' ')
A = int(S[0])
B = int(S[1])
p = -1
for x in range(2100):
    if math.floor(x*0.08) == A and math.floor(x*0.1) == B:
        p = x
        break
print(p)

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
import math

A,B = map(int,input().split())
anser = 0
for i in range(0, 101):
    if i * 0.08 == A:
        if math.floor(i * 0.1) == B:
            anser = i
    else:
        anser = -1

print(anser)

import math

A,B = map(int,input().split())
anser = 0
for i in range(1, 1100):
    if math.floor(i * 0.08) == A:
        if math.floor(i * 0.1) == B:
            anser = i
            break
    else:
        anser = -1

print(anser)

Verdicts: Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
a, b = map(int, input().split())

if b-a >= 2 :
    if b/a > 1.25 :
        cst = -1
    else :
        cst = int((b-a)/0.02)

else :
    if b/a > 1.25 :
        cst = -1
    else :
        cst_a = a / 0.08
        cst_b = b / 0.1
        if cst_a < cst_b :
            cst = int(cst_a)
        elif cst_a > cst_b :
            cst = int(cst_b)

print(int(cst))

a, b = map(int, input().split())

if b-a >= 2 :
    if b/a > 1.25 :
        cst = -1
    else :
        cst = int((b-a)/0.02)

else :
    cst_a = a / 0.08
    cst_b = b / 0.1
    if cst_a < cst_b :
        cst = int(cst_a)
    elif cst_a > cst_b :
        cst = int(cst_b)

print(int(cst))

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)

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
a = input()
b = int(input())
c = 0
for i in range(b):
	d = input().split(" ")
	if d[0] == "1":
		c += 1
	else:
		if c % 2 == 0:
			if d[1] == "1":
				a = d[2] + a
			else:
				a = a + d[2]
		else:
			if d[1] == "2":
				a = d[2] + a
			else:
				a = a + d[2]
if c % 2 == 1:
	a = a[::-1]
print(a)

a = input().split(" ")
t8 = int(a[0])
t10 = int(a[1])

for i in range(13, 1001):
	b = i * 0.08
	c = i * 0.1
	if b == t8 and c == t10:
		print(i)
		break
	if i == 1000:
		print(-1)
		break

a = input().split(" ")
t8 = int(a[0])
t10 = int(a[1])

for i in range(13, 1001):
	b = int(i * 0.08)
	c = int(i * 0.1)
	if b == t8 and c == t10:
		print(i)
		break
	if i == 1000:
		print(-1)
		break

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
A, B = map(int, input().split())
yenA = int(A / 0.08)
yenB = int(B / 0.1)
if yenA == yenB:
    print(yenA)
else:
    print(-1)


A, B = map(int, input().split())
yenA = int(A / 1.08)
yenB = int(B / 1.1)
if yenA == yenB:
    print(yenA)
else:
    print(-1)


import math

A, B = map(int, input().split())

priceA_min = math.ceil(A / 0.08)
priceA_max = math.ceil((A + 1) / 0.08)
priceB_min = math.ceil(B / 0.1)
priceB_max = math.ceil((B + 1) / 0.1)

priceAs = []
if priceA_min != priceA_max:
    price = priceA_min
    while True:
        if price >= priceA_max:
            break
        priceAs.append(price)
        price += 1
else:
    priceAs.append(priceA_min)

priceBs = []
if priceB_min != priceB_max:
    price = priceB_min
    while True:
        if price >= priceB_max:
            break
        priceBs.append(price)
        price += 1
else:
    priceBs.append(priceB_min)

P = False
for i in range(len(priceAs)):
    for j in range(len(priceBs)):
        if priceAs[i] == priceBs[j]:
            print(priceAs[i])
            P = True
            break
    if P == True:
        break
if P == False:
    print(-1)


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
import math
A, B = map(int, input().split())
x = math.ceil((A+1)/0.08)
y = math.ceil((B)/0.1)
if x >= y:
  print(y)
else:
  print(-1)

import math
A, B = map(int, input().split())
lst = []
for i in range(1, 1010):
    if int(i*0.08) == A and int(i*0.1) == B:
        lst.append(i)

if len(lst) > 0:
    print(lst[0])
else:
    print(-1)

Verdicts: Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
A, B = [int(y) for y in input().split(' ')]
priceA_min = int((A/8) * 100)
priceA_max = int(((A+1)/8) * 100)
print(priceA_min, priceA_max)
found = False
for x in range(priceA_min,priceA_max+1,1):
  if int(x*0.1) == B:
    print(x)
    found = True
    break
if not found:
  print(-1)

A, B = [int(y) for y in input().split(' ')]
if int((A/8) * 100) == (A/8) * 100:
  priceA_min = int((A/8) * 100)
else:
  priceA_min = int((A/8) * 100) + 1
if int(((A+1)/8) * 100) == ((A+1)/8) * 100:
  priceA_max = int(((A+1)/8) * 100) - 1
else:
  priceA_max = int(((A+1)/8) * 100)
found = False
for x in range(priceA_min,priceA_max+1,1):
  if int(x*0.1) == B:
    print(x)
    found = True
    break
if not found:
  print(-1)

Verdicts: Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
A, B = map(int, input().split())

if A == 4/5*B:
  ans = 10*B
  print(ans)
else:
  print('-1')

A, B = map(int, input().split())

if A == 4/5*B:
  ans = 10*B
  print(ans)
elif A == B: 
  hhh = 25/2*A
  print(hhh)
else:
  print('-1')
  
  

a, b = map(int, input().split())
for n in range(1,10**6):
  if (n*8)//100 == a and n//10 == b:print(n);exit()
print(-1)

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
A, B = map(int,input().split())
a = 0
x = 1
while a == 0:
    if int(x * 0.08) == A:
        if int(x * 0.1) == B:
            a = 1
            print(x)
            exit()
        else:
            x += 1
    else:
        x += 1
    if x > B / 0.09:
        print(-1)
        a = 1

A, B = map(int,input().split())
mi = 10 * B - 1
x = 0
ma = 11 * B + 1


while x == 0:
    if int(mi * 0.08) == A and int(mi * 0.1) == B:
        x = 1
    elif mi == ma:
        x = 1
        mi = -1
    else:
        mi += 1
print(mi)

A, B = map(int,input().split())
mi = 10 * B - 1
x = 0
ma = 15 * B + 1


while x == 0:
    if int(mi * 0.08) == A and int(mi * 0.1) == B:
        x = 1
    elif mi == ma:
        x = 1
        mi = -1
    else:
        mi += 1
print(mi)

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
import math

a,b = input().split()

a = int(a)
b = int(b)

B_low = math.ceil(b * 10)
A_high = math.floor((a+1) * 12.5)

if A_high < B_low:
    print('-1')
else:
    print('B_low')
    

import math

a,b = input().split()

B_low = math.ceil(b * 10)
A_high = math.floor((a+1) * 12.5)

if A_high < B_low:
    print('-1')
else:
    print(B_low)

import math

a,b = input().split()
a = int(a)
b = int(b)

B_low = math.ceil(b * 10)
A_high = math.floor((a+1) * 12.5)

if A_high < B_low:
    print('-1')
else:
    print(B_low)

import math
 
a,b = input().split()
a = int(a)
b = int(b)
 
B_low = math.ceil(b * 10)
A_high = math.floor((a+1) * 12.5)
 
if A_high < B_low:
    print(-1)
else:
    print(B_low)

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)))

Verdicts: Wrong Answer

Runtime Error

Wrong Answer

Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
a, b = map(int, input().split())
mod = (a*100) % 8
eightpermin = a * 100 // 8

if mod != 0:
    eightpermin += 1

tenpermax = (b+1) * 10 - 1

if eightpermin >= tenpermax:
    print(eightpermin)
else:
    print(-1)

a, b = map(int, input().split())
money = 1
while money < 1010:

    if money * 8 // 100 == a and money // 10 == b:
        break
    money += 1
    if money == 1010:
        money = -1
        break
print(money)

Verdicts: Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
A,B = (int(x) for x in input().split())
for i in range(1,101):
    Ahan = int(i * 0.08)
    Bhan = int(i * 0.10)
    if (Ahan == A and Bhan == B):
        print(i)
        break
print(-1)

A,B = (int(x) for x in input().split())
for i in range(10,1001):
    Ahan = int(i * 0.08)
    Bhan = int(i * 0.10)
    if (Ahan == A and Bhan == B):
        print(i)
        break
print('-1')

A,B = (int(x) for x in input().split())
for i in range(1,101):
    Ahan = int(i * 0.08)
    Bhan = int(i * 0.10)
    if (Ahan == A and Bhan == B):
        print(i)
        break
print('-1')

A,B = (int(x) for x in input().split())
for i in range(10,1001):
    Ahan = int(i * 0.08)
    Bhan = int(i * 0.10)
    if (Ahan == A and Bhan == B):
        print(i)
        break
print(-1)

A, B = map(int, input().split())
for i in range(1,1001):
    Ahan = int(i * 0.08)
    Bhan = int(i * 0.10)
    if (Ahan == A and Bhan == B):
        print(i)
        break
print('-1')

A,B = (int(x) for x in input().split())
for i in range(1,1001):
    Ahan = int(i * 0.08)
    Bhan = int(i * 0.10)
    if (Ahan == A and Bhan == B):
        print(i)
        exit()
print(-1)

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
a, b = map(int, input().split())
b = b * 10 - 9
r = -1
for i in range(b, b+20):
    print(i * 0.08)
    if int(i * 0.08) == a:
        r = i
        break
print(r)

a, b = map(int, input().split())
b = b * 10
r = -1
for i in range(b, b+10):
    if int(i * 0.08) == a:
        r = i
        break
print(r)

Verdicts: Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
a, b = map(int, input().split())

import math
as = math.ceil(a / 0.08)
al = math.floor((a + 1) / 0.08)
bs = math.ceil(b / 0.10)
bl = math.floor((b + 1) / 0.10)

for i in range(1000):
    if as <= i < al and bs <= i < bl:
        print(i)
        break

a, b = map(int, input().split())

import math
flag = True
for i in range(1009):
    if math.floor(i * 0.08) == a and math.floor(i * 0.10) == b:
        print(i)
        flag = False
        break
if flag:
    print(-1)


Verdicts: Runtime Error

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
for i in range(1,10100):
    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,10100):
    if int(i*0.08)==A and int(i*0.1)==B:
        print(i)
        break
else:
    print(-1)
 

Verdicts: Runtime Error

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
def check(x, A, B):
    if int(x * 0.08) == A and int(x * 0.1) == B:
        return True
    else:
        return False

def solve(A, B):
    left = 0
    right = 1250
    ans = []
    for i in range(0, 1251):
        if check(i, A, B):
            print(i)
            exit()
	print(-1)


def main():
    A, B = map(int, input().split())

    solve(A, B)

if __name__ == "__main__":
    main()

def check(x, A, B):
    if int(x * 0.08) == A and int(x * 0.1) == B:
        return True
    else:
        return False

def solve(A, B):
    left = 0
    right = 1250
    ans = []
    for i in range(0, 1251):
        if check(i, A, B):
            print(i)
            exit()
    print(-1)

def main():
    A, B = map(int, input().split())

    solve(A, B)

if __name__ == "__main__":
    main()

Verdicts: Runtime Error

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
def solve():
    a,b=map(int,input().split())
    start=int(a*12.5)
    end=int(b*9.9)
    for i in range(end,start+1):
        if(round(i*0.08)==a and round(i*0.1)==b):
            print(i)
            return
    print(-1)


solve()

def solve():
    a,b=map(int,input().split())
    start=int(min(a*12.5,b*10))
    end=int(max((a+1)*12.5,(b+1)*10))

    for i in range(start, end):
        if (int(i * 0.08) == a and int(i * 0.1) == b):
            print(i)
            return
    print(-1)

solve()

Verdicts: Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
A,B = [int(x) for x in input().split()]

number1 = int(A*100/8)
number2 = int(B*100/10)
if number1/1 == number1//1:
    number1 = number1//1 + 1
if number2/1 == number2//1:
    number2 = number2//1 + 1

if number1//10 == B:
    if number2*8//100 == A:
        if number1 <= number2:
            print(number1)
        else:
            print(number2)
    else:
        print(number1)
else:
    if number2*8//100 == A:
        print(number2)
    else:
        print(-1)

A,B = [int(x) for x in input().split()]

number1 = A*100/8
number2 = B*100/10
if number1 != number1//1:
    number1 = number1//1 + 1
if number2 != number2//1:
    number2 = number2//1 + 1
number1 = int(number1)
number2 = int(number2)

if number1//10 == B:
    if number2*8//100 == A:
        if number1 <= number2:
            print(number1)
        else:
            print(number2)
    else:
        print(number1)
else:
    if number2*8//100 == A:
        print(number2)
    else:
        print(-1)

Verdicts: Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
a,b=map(int,input().split())
for i in range(1500):
  if int(i*0.08) == int(i*0.1):
    print(i)

print(-1)

a,b=map(int,input().split())
for i in range(1500):
  if int(i*0.08) == a and int(i*0.1) == b:
    print(i)

print(-1)


a,b=map(int,input().split())
a=int(a/0.08)
b=int(b/0.1)

if a==b:
  print(a)
else:
  print(-1)

a,b=map(int,input().split())
a=int(a/0.08)
b=int(b/0.1)

if a==b:
  print(a)
else:
  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)


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
a,b = map(int, input().split())
flag = 0
for i in range(10*b, 11*b):
	if int(i * 0.08) == a:
		if flag==0:
			ans　=　i
			flag = 1
if flag == 1:
	print(ans)
else:
	print(-1)

a,b = map(int, input().split())
flag = 0
for i in range(10*b, 11*b):
	if int(i * 0.08) == a:
		if flag==0:
			ans=i
			flag = 1
if flag == 1:
	print(ans)
else:
	print(-1)

a,b = map(int, input().split())
flag = 0
for i in range(10*b+1):
	if int(i * 0.08) == a and int(i * 0.1) == b:
		if flag==0:
			ans=i
			flag = 1
if flag == 1:
	print(ans)
else:
	print(-1)

a,b = map(int, input().split())
flag = 0
for i in range(10*b, 11*b):
	if int(i * 0.08) == a:
		if flag==0:
			ans=i
			flag = 1
if flag == 1:
	print(ans)
else:
	print(”-1”)

a,b = map(int, input().split())
flag=0
for i in range(10*b+1):
	if int(i * 0.08) == a and int(i * 0.1) == b:
		if flag==0:
			ans=i
            flag=1
if flag == 1:
	print(ans)
else:
	print(-1)

a,b = map(int, input().split())
ans=0
for i in range(10*b+1):
	if int(i * 0.08) == a and int(i * 0.1) == b:
		if ans==0:
			ans=i
if ans != 0:
	print(ans)
else:
	print(-1)

a,b = map(int, input().split())
flag = 0
for i in range(10*b, 10*b+10):
	if int(i * 0.08) == a:
		if flag == 0:
			ans=i
			flag = 1
if flag == 1:
	print(ans)
else:
	print(-1)

Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
a, b = map(int, input().split())
amin = -(-a*25//2)
amax = -(-(a+1)*25//2)
bmin = b*10
bmax = bmin + 10
print(amax)
for i in range(amin, amax):
    for j in range(bmin, bmax):
        if i == j:
            print(i)
            exit()
print(-1)


a, b = map(int, input().split())
amin = -(-a*25//2)
amax = -(-(a+1)*25//2)
bmin = b*10
bmax = bmin + 10
for i in range(amin, amax):
    for j in range(bmin, bmax):
        if i == j:
            print(i)
            exit()
print(-1)


Verdicts: Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
import math
# math.floor()

A, B = map(int ,input().split())
ba = (A / 8) * 100
ba_floor = ((A+1) /8 ) * 100
bb = (B / 10) * 100
bb_floor = ((B+1) / 10) * 100

for i in range(int(ba), int(ba_floor)):
    print(i)
    if int(bb) <= i < int(bb_floor):
        print(i)
        exit()

print(-1)

A, B = map(int ,input().split())

n = (100/8) * 100
for i in range(int(n)):
    if int(i*0.08) == A and i//10 == B:
        print(i)
        exit()
print(-1)


Verdicts: Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
A, B = map(int, input().split())
for i in range(1, 1001):
    if int(i * 0.08 ) == A and int(i * 1.10) == B:
        print(i)
        exit()
print(-1)

A, B = map(int, input().split())
for i in range(1, 1001):
    if int(i * 0.08 ) == A and int(i * 0.10) == B:
        print(i)
        exit()
print(-1)


Verdicts: Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
# -*- coding: utf-8 -*-
# @Time    : 2020/3/1 19:59
# @Author  : DIRICHLET
# @File    : main.py
a=[]
def myin(fun=int):
    global a
    a=list(map(fun,input().split()))
#myin(int)
a,b=map(int,input().split())
oner=(a+1)/0.08
if a%2==0:
    oner=round((a+1)/2*25)+1
    onel=a//2*25
else:
    oner=(a+1)/2*25
    onel=round(a/2*25)+1
#*25/2
twol=b*10
if oner>twol and (b+1)*10>oner:
    if onel<=twol:
        print(twol)
    else:
        print(onel)
else:
    print(-1)
#print(a)
#[25,37.5) [20,30)
#[19-20) [99-100) 99.5-18.5=81/0.02=4050
#(231.35,243.75] (985,995]
#

# -*- coding: utf-8 -*-
# @Time    : 2020/3/1 19:59
# @Author  : DIRICHLET
# @File    : main.py
a=[]
def myin(fun=int):
    global a
    a=list(map(fun,input().split()))
#myin(int)
a,b=map(int,input().split())
oner=(a+1)/0.08
if a%2==0:
    oner=a//2*25+13
    onel=a//2*25
else:
    oner=(a+1)/2*25
    onel=(a-1)//2*25+13
#*25/2
twol=b*10
twor=b*10+10
l=[[onel,oner],[twol,twor]]
if l[0][0]>l[1][0]:
    l = [[twol, twor],[onel, oner], ]

if l[1][0]<l[0][1]:
    print(l[1][0])
else:
    print(-1)

#print(a)
#[25,37.5) [20,30)
#[19-20) [99-100) 99.5-18.5=81/0.02=4050
#(231.35,243.75] (985,995]
#

Verdicts: Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
A, B = map(int, input().split())

before_A = A/0.08
before_B = B/0.1

if A > B:
    print(-1)
    break
else:
    if before_A <= before_B:
        ans = before_B
        if int(before_B * 0.08) == A:
            print(int(ans))
        else:
            print(-1)
    else:
        ans = before_A
        if int(before_A * 0.1) == B:
            print(int(ans))
        else:
            print(-1)

A, B = map(int, input().split())

before_A = A/0.08
before_B = B/0.1

if before_A >= before_B:
    ans = before_B
    if int(before_B * 0.08) == A:
        print(int(ans))
    else:
        print(-1)
else:
    ans = before_A
    if int(before_B * 0.1) == B:
        print(int(ans))
    else:
        print(-1)

a,b=map(int,input().split())
for i in  range(1,1300):
  if int(i*0.08)==a and int(i*0.1)==b:
    print(i)
    exit()
print(-1)

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
A, B = map(int, input().split(' '))

original_a = int(A / 0.08)
original_b = int(B / 0.1)

original = max(original_a, original_b)

if int(original * 0.08) == A and int(original * 0.2) == B:
    print(original)
else:
    print(-1)


A, B = map(int, input().split(' '))

for n in range(1000 + 1):
    if int(n * 0.08) == A and int(n * 0.1) == B:
        print(n)
        break
else:
    print(-1)


Verdicts: Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
a, b = map(int,input().split())

cnt = 0

for i in range(1,1010):
    A = 0.08 * a
    B = 0.1 * b
    if int(A) == int(B):
        print(int(A))
        cnt += 1
        break
if cnt == 0:
    print(-1)
    

a, b = map(int,input().split())

cnt = 0

for i in range(1,1010):
    A = int(i * 8 //100)
    B = int(i * 10 //100)
    if (A == a) and (B == b):
        print(i)
        cnt += 1
        break

if cnt == 0:
    print(-1)

Verdicts: Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
a,b=map(int,input().split())
c = a*100//8
d = (a+1)*100//8
e = b*100//10
f = (b+1)*100//10
for i in range(d-c):
  if c+i-1>=e and c+i-1<f:
    print(c+i-1)
    break
else:
  print(-1)

a,b=map(int,input().split())
c=a*100//8
d=(a+1)*100//8
e=b*100//10
f=(b+1)*100//10
for i in range(c-d):
  if a+i<e and a+i>f:
    print(a+i)
    break
else:
  print(-1)

a,b=map(int,input().split())
c=a*100//8
d=(a+1)*100//8
e=b*100//1
f=(b+1)*100//1
for i in range(c-d):
  if a+i<e and a+i>f:
    print(a+i)
    break
else:
  print(-1)

import math
a,b=map(int,input().split())
c = math.ceil(a*100/8)
d = math.ceil((a+1)*100/8)
e = math.ceil(b*100/10)
f = (b+1)*100//10
for i in range(d-c):
  if c+i>=e and c+i<f:
    print(c+i)
    break
else:
  print(-1)

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
A, B = [int(x) for x in input().split()]

tax8 = int(A / 0.08)
tax10 = int(B / 0.1)
window = [min(tax8, tax10), max(tax8, tax10)]

for i in range(0, max(int(A / 0.2), int(B / 0.2))):
    for j in range(window[0], window[1] + 1):
        if int(i * 0.08) == int(j * 0.08) and int(i * 0.08) == A and int(j * 0.1) == B:
            print(i)
            exit()
print(-1)

A, B = [int(x) for x in input().split()]

for price in range(10, 1263):
    if int(price * 0.08) == A and int(price * 0.1) == B:
        print(price)
        exit()

print(-1)

Verdicts: Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):

import math
A, B = map(int, input().split())
X = math.ceil(A/0.08)
print(A/0.08, X)
if int(X*0.1) == B:
    print(X)
else:
    print(-1)


import math
A, B = map(int, input().split())
X = math.ceil(A/0.08)
Z = -1
while True:
    if int(X*0.08) != A:
        break
    if int(X*0.10) == B:
        Z = X
        break
    X = X + 1
print(Z)

Verdicts: Wrong Answer

Accepted
Problem: Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.)  Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded down to the nearest integer.  If multiple prices satisfy the condition, print the lowest such price; if no price satisfies the condition, print `-1`.

Submission attempts (in order):
A, B = map(int, input(). split())
answer = None
flag = False
for i in range(1009):
  
  if (A == i*0.08//1) and (B == i*0.1//1):
    Answer = i
    print(Answer)
    flag = True
   
    if flag:
        break
if (answer = None):
  print(-1)
    


A, B = map(int, input(). split())
answer = None
flag = False
for i in range(1001):
  
  if (i*0.08//1 = A) and (i*0.1//1 = B):
    print(i)
    flag = True
    break
if (answer = None):
  print(-1)
    


A, B = map(int, input(). split())
answer = None
flag = False
for i in range(1009):
  
  if (A == (i*0.08)//1) and (B == (i*0.1)//1):
    answer = i
    print(answer)
    flag = True
   
    if flag:
        break
if (answer = None):
  print(-1)
    


A, B = map(int, input(). split())
answer = None
flag = False
for i in range(1009):
  
  if (i*0.08//1 = A) and (i*0.1//1 = B):
    print(i)
    flag = True
   
    if flag:
        break
if (answer = None):
  print(-1)
    


A, B = map(int, input(). split())
for i in range(1001):
  flag = True
  if (i*0.08//1 = A) and (i*0.1//1 = B):
    print(i)
    flag = False
    break
if (flag = True):
  print(-1)
    

A, B = map(int, input(). split())
answer = None
flag = False
for i in range(1, 1009):
  
  if (A == (i*0.08)//1) and (B == (i*0.1)//1):
    answer = i
    print(answer)
    flag = True
   
    if flag:
        break
if answer is None:
  answer = -1
  print(answer)
    


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted