Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
x,y = map(int, input().split())
if x>0 and x<10 and y>0 and y<10:
	print(x*y)
else:
	print(-1)

Fixed submission:
x,y = map(int, input().split())
if x>0 and x<10 and y>0 and y<10:
	print(x*y)
else:
	print(-1)
Buggy python submission (verdict: Runtime Error):
x = input()
for i in range(1,10,1):
    if x%i == 0 and x/i < 10 and x/i > 0:
        print("Yes")
        break
    if i == 9:
        print("No")

Fixed submission:
x = int(input())
for i in range(1,10,1):
    if x%i == 0 and x/i < 10 and x/i > 0:
        print("Yes")
        break
    if i == 9:
        print("No")
Buggy python submission (verdict: Runtime Error):
a, b = map(int, input().split())

if a < 1 or a > 9:
    return -1

if b < 1 or b > 9:
    return -1

return a * b


Fixed submission:
a, b = map(int, input().split())

if a < 1 or a > 9:
    print(-1)
elif b < 1 or b > 9:
    print(-1)
else:
    print(a * b)

Buggy python submission (verdict: Runtime Error):
a, b = map(int, input().split())

if a < 1 or a > 9:
    return -1

if b < 1 or b > 9;
    return -1

return a * b

Fixed submission:
a, b = map(int, input().split())

if a < 1 or a > 9:
    print(-1)
elif b < 1 or b > 9:
    print(-1)
else:
    print(a * b)
Buggy python submission (verdict: Runtime Error):
a, b = map(int, input().sprit(" "))

count = 0
n = 1
while True:
  if n >= b:
    break
  n += a -1
  count += 1
  
print(count)
  

Fixed submission:
a, b = map(int, input().split(" "))

count = 0
n = 1
while True:
  if n >= b:
    break
  n += a - 1
  count += 1
  
print(count)
Buggy python submission (verdict: Runtime Error):
N = int(input())
heights = map(int, input().split(" "))
diffs = [b - a for a, b in zip(heights[:-1], heights[1:])]

max = 0
count = 0
for d in diffs:
  if d >= 0:
    count += 1
  else:
    if max < count:
      max = count
    count = 0
    
  

Fixed submission:
N = int(input())
heights = list(map(int, input().split(" ")))
diffs = [a - b for a, b in zip(heights[:-1], heights[1:])]

max = 0
count = 0
for d in diffs:
  if d >= 0:
    count += 1
  else:
    if max < count:
      max = count
    count = 0
if max < count:
  max = count
print(max)
Buggy python submission (verdict: Runtime Error):
N = int(input())
as = map(int, input().split())
invs = map(lambda x: 1.0 / x, as)
print(1.0 / sum(invs))

Fixed submission:
N = int(input())
numbers = map(int, input().split(" "))
invs = map(lambda x: 1.0 / x, numbers)
print(1.0 / sum(invs))
Buggy python submission (verdict: Runtime Error):
N = int(input())
vs = sorted(map(int, input().split(" ")), reverse=True)

r = [v * (0.5 ** i) for i, v in enumerate(vs)]

return sum(r)

Fixed submission:
N = int(input())
vs = sorted(map(int, input().split(" ")), reverse=True)
 
r = [v * (0.5 ** (i + 1)) for i, v in enumerate(vs)]
r [-1] = r[-1] * 2
print(sum(r))
Buggy python submission (verdict: Runtime Error):
# https://atcoder.jp/contests/abc143/tasks/abc143_a
# -*- coding: utf-8 -*-

stu_bangou = list(map(int, input().strip().split()))

print(stu_bangou[0] - (stu_bangou[1] * 2))# https://atcoder.jp/contests/abc143/tasks/abc143_a
# -*- coding: utf-8 -*-

stu_bangou = list(map(int, input().strip().split()))

if stu_bangou[0] < (stu_bangou[1] * 2):
    print(0)
else:
    print(stu_bangou[0] - (stu_bangou[1] * 2))


Fixed submission:
# https://atcoder.jp/contests/abc143/tasks/abc143_a
# -*- coding: utf-8 -*-

stu_bangou = list(map(int, input().strip().split()))

if stu_bangou[0] < (stu_bangou[1] * 2):
    print(0)
else:
    print(stu_bangou[0] - (stu_bangou[1] * 2))
Buggy python submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
import math

A,B = map(int, input().split())
print(math.ceil((B-1)/(A-1)))


Fixed submission:
# -*- coding: utf-8 -*-

N_cnt = int(input().strip())
H_ary = list(map(int, input().strip().split()))

step_cnt = 0
most_step = 0
for i in range(1,N_cnt):
    if H_ary[i] <= H_ary[i-1]:
        step_cnt += 1
        if most_step < step_cnt:
            most_step = step_cnt
    else:
        step_cnt = 0

print(most_step)

Buggy python submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
import math

A,B = map(int, input().split())
print(math.ceil((b-1)/(a-1)))

Fixed submission:
# -*- coding: utf-8 -*-

N_cnt = int(input().strip())
H_ary = list(map(int, input().strip().split()))

step_cnt = 0
most_step = 0
for i in range(1,N_cnt):
    if H_ary[i] <= H_ary[i-1]:
        step_cnt += 1
        if most_step < step_cnt:
            most_step = step_cnt
    else:
        step_cnt = 0

print(most_step)
Buggy python submission (verdict: Time Limit Exceeded):
# -*- coding: utf-8 -*-

N = int(input().strip())

print(sum(int(i) for i in range(N)))

Fixed submission:
# -*- coding: utf-8 -*-

N = int(input().strip())
print((N-1)*N//2)
Buggy python submission (verdict: Runtime Error):
answer = {
    "1":[1,2,3,4,5,6,7,8,9],
    "2":[2,4,6,8,10,12,14,16,18],
    "3":[3,6,9,12,15,18,21,24,27],
    "4":[4,8,12,16,20,24,28,32,36],
    "5":[5,10,15,20,25,30,35,40,45],
    "6":[6,12,18,24,30,36,42,48,54],
    "7":[7,14,21,28,35,42,49,56,63],
    "8":[8,16,24,32,40,48,56,64,72],
    "9":[9,18,27,36,45,54,63,72,81]
}

N = int(input())
a = 0
for value in answer.values():
  if N in value:
    a = 1

if a == 1:
	print("Yes")
else:
	print("No")

Fixed submission:
A,B = map(int, input().split(" "))

if A >= 10 or B >= 10:
	print(-1)
else:
	print(A*B)
Buggy python submission (verdict: Runtime Error):
answer = {
    "1":[1,2,3,4,5,6,7,8,9],
    "2":[2,4,6,8,10,12,14,16,18],
    "3":[3,6,9,12,15,18,21,24,27],
    "4":[4,8,12,16,20,24,28,32,36],
    "5":[5,10,15,20,25,30,35,40,45],
    "6":[6,12,18,24,30,36,42,48,54],
    "7":[7,14,21,28,35,42,49,56,63],
    "8":[8,16,24,32,40,48,56,64,72],
    "9":[9,18,27,36,45,54,63,72,81]
}

N = int(input())
a = 0
for value in answer.values():
	if N in value:
    	a = 1

if a == 1:
	print("Yes")
else:
	print("No")

Fixed submission:
answer = {
    "1":[1,2,3,4,5,6,7,8,9],
    "2":[2,4,6,8,10,12,14,16,18],
    "3":[3,6,9,12,15,18,21,24,27],
    "4":[4,8,12,16,20,24,28,32,36],
    "5":[5,10,15,20,25,30,35,40,45],
    "6":[6,12,18,24,30,36,42,48,54],
    "7":[7,14,21,28,35,42,49,56,63],
    "8":[8,16,24,32,40,48,56,64,72],
    "9":[9,18,27,36,45,54,63,72,81]
}

N = int(input())
a = 0
for value in answer.values():
  if N in value:
    a = 1

if a == 1:
	print("Yes")
else:
	print("No")

Buggy python submission (verdict: Runtime Error):
answer = {
    "1":[1,2,3,4,5,6,7,8,9],
    "2":[2,4,6,8,10,12,14,16,18],
    "3":[3,6,9,12,15,18,21,24,27],
    "4":[4,8,12,16,20,24,28,32,36],
    "5":[5,10,15,20,25,30,35,40,45],
    "6":[6,12,18,24,30,36,42,48,54],
    "7":[7,14,21,28,35,42,49,56,63],
    "8":[8,16,24,32,40,48,56,64,72],
    "9":[9,18,27,36,45,54,63,72,81]
}

N = int(input())
a = 0
for value in answer.values():
	if N in value:
    	a = 1

if a == 1:
	print("Yes")
else:
	print("No")

Fixed submission:
answer = {
    "1":[1,2,3,4,5,6,7,8,9],
    "2":[2,4,6,8,10,12,14,16,18],
    "3":[3,6,9,12,15,18,21,24,27],
    "4":[4,8,12,16,20,24,28,32,36],
    "5":[5,10,15,20,25,30,35,40,45],
    "6":[6,12,18,24,30,36,42,48,54],
    "7":[7,14,21,28,35,42,49,56,63],
    "8":[8,16,24,32,40,48,56,64,72],
    "9":[9,18,27,36,45,54,63,72,81]
}

N = int(input())
a = 0
for value in answer.values():
  if N in value:
    a = 1

if a == 1:
	print("Yes")
else:
	print("No")
Buggy python submission (verdict: Runtime Error):
n = int(input())
if n % 2 == 0:
      print(1/2)
elif n == 1:
      print(1)
else:
      print((int(n/2)+ １／n))

Fixed submission:
n=int(input())
if n%2 == 0:
  print(1/2)
elif n==1:
  print(1)
else:
  print((int(n/2)+1)/n)
Buggy python submission (verdict: Runtime Error):
s=list(input())
t=list(input())
count=0
for i im range(3):
  if s[i]==t[i]:
    count+=1
print(count)    

Fixed submission:
s=list(input())
t=list(input())
count=0
for i in range(3):
  if s[i]==t[i]:
    count+=1
print(count)
Buggy python submission (verdict: Runtime Error):
n,a,b = map(int,input().split())
if n*a<=b:
  print(n*a)
elif n*a>=b:
  print(b)  

Fixed submission:
a,b=map(int,input().split())
if (a+b)%2 ==0:print((a+b)//2)
else:
  print('IMPOSSIBLE')

Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
if (a+b)%2 == 1:
  print('IMPOSSIBLE')
  else:
    print((a+b)//2)

Fixed submission:
a,b=map(int,input().split())
if (a+b)%2 ==0:print((a+b)//2)
else:
  print('IMPOSSIBLE')
Buggy python submission (verdict: Runtime Error):
s=list(str(input()))
count=0
for i in range(3):
  if s[i]==s[i+1]:
    count+=1

if count==0:
  print('Good')
  else:
    print('Bad')    

Fixed submission:
s=list(str(input()))
count=0
for i in range(3):
  if s[i]==s[i+1]:
    count+=1

if count==0:
  print('Good')
else:
    print('Bad')
Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())
min = N - 1
for i in range(1, N // 2):
    if N % i == 0:
        j = N // i
        if (i -1) + (j - 1) < min:
            min = (i - 1) + (j - 1)

print(min)




Fixed submission:
import math

N = int(input())
for i in range(1, int(math.sqrt(N) + 1))[::-1]:
    if N % i == 0:
        print(N // i + i - 2)
        break
Buggy python submission (verdict: Runtime Error):
A = int(input())
B = int(input())

if (A >= 1 and A <= 9) and (B >= 1 and B <= 9):
  print(A * B)
  
else:
  print(-1)

Fixed submission:
A, B = map(int, input().split())

if (A >= 1 and A <= 9) and (B >= 1 and B <= 9):
  print(A * B)
  
else:
  print(-1)

Buggy python submission (verdict: Runtime Error):
A = input()
B = input()

if (A >= 1 and A <= 9) and (B >= 1 and B <= 9):
  print(%d % A*B)
  
else:
  print(-1)

Fixed submission:
A, B = map(int, input().split())

if (A >= 1 and A <= 9) and (B >= 1 and B <= 9):
  print(A * B)
  
else:
  print(-1)

Buggy python submission (verdict: Runtime Error):
    a,b = map(int,input().split())
     
    if a > 9 or b > 9:
      print(-1)
    else:
      out = a * b
      print('{0}'.format(out))

Fixed submission:
a,b = map(int,input().split())

if a > 9 or b > 9:
	print("-1")
else:
	out = a * b
	print('{0}'.format(out))

Buggy python submission (verdict: Runtime Error):
a,b = map(int,input.split())

if a > 9 or b > 9:
  print(-1)
else:
  out = a * b
  print('{0}'.format(out))

Fixed submission:
a,b = map(int,input().split())

if a > 9 or b > 9:
	print("-1")
else:
	out = a * b
	print('{0}'.format(out))
Buggy python submission (verdict: Runtime Error):
def main(num):
    num = int(input())
    for i in range(1,10):
        q, mod = divmod(num, i)
        if mod == 0 and q < 10:
            return "Yes"

    return "No"
if __name__ == "__main__":
    print(main())

Fixed submission:
def main():
	num = int(input())
	for i in range(1,10):
		q, mod = divmod(num, i)
		if mod == 0 and q < 10:
			return "Yes"

	return "No"
if __name__ == "__main__":
    print(main())

Buggy python submission (verdict: Runtime Error):
    def main(num):
        num = int(input())
        for i in range(1,10):
            q, mod = divmod(num, i)
            if mod == 0 and q < 10:
                return "Yes"
     
        return "No"
    if __name__ == "__main__":
        result = main()
        print(result)

Fixed submission:
def main():
	num = int(input())
	for i in range(1,10):
		q, mod = divmod(num, i)
		if mod == 0 and q < 10:
			return "Yes"

	return "No"
if __name__ == "__main__":
    print(main())

Buggy python submission (verdict: Runtime Error):
    def main():
        num = int(input())
        for i in range(1,10):
            q, mod = divmod(num, i)
            if mod == 0 and q < 10:
                return "Yes"
     
        return "No"
    if __name__ == "__main__":
        print(main())

Fixed submission:
def main():
	num = int(input())
	for i in range(1,10):
		q, mod = divmod(num, i)
		if mod == 0 and q < 10:
			return "Yes"

	return "No"
if __name__ == "__main__":
    print(main())

Buggy python submission (verdict: Runtime Error):
def main(num):
    num = int(input())
    for i in range(1,10):
        q, mod = divmod(num, i)
        if mod == 0 and q < 10:
            return "Yes"

    return "No"
if __name__ == "__main__":
    print(main())

Fixed submission:
def main():
	num = int(input())
	for i in range(1,10):
		q, mod = divmod(num, i)
		if mod == 0 and q < 10:
			return "Yes"

	return "No"
if __name__ == "__main__":
    print(main())

Buggy python submission (verdict: Runtime Error):
num = int(input())
    for i in range(1,9):
        q, mod = divmod(num, i)
        if mod == 0 and 1 < q < 10:
            print("Yes")
            return

    print("No")

Fixed submission:
def main():
	num = int(input())
	for i in range(1,10):
		q, mod = divmod(num, i)
		if mod == 0 and q < 10:
			return "Yes"

	return "No"
if __name__ == "__main__":
    print(main())

Buggy python submission (verdict: Runtime Error):
num = input()

for i in range(1,9):
    q, mod = divmod(num, i)
    if q == 0 and 1 < q < 10:
        print("Yes")
        return
print("No")


Fixed submission:
def main():
	num = int(input())
	for i in range(1,10):
		q, mod = divmod(num, i)
		if mod == 0 and q < 10:
			return "Yes"

	return "No"
if __name__ == "__main__":
    print(main())
Buggy python submission (verdict: Runtime Error):
input_num = int(input())
num_sqrt = int(math.sqrt(input_num))

minimam = input_num
for i in range(num_sqrt+1,0,-1):
    q, mod = divmod(input_num, i)
    if mod == 0:
        distance = q + i -2
        if minimam > distance:
            minimam = distance
print(minimam)

Fixed submission:
num = int(input())
minimam = 10**12
for i in range(1,10**6+1):
    q, mod = divmod(num, i)
    distance = q + i -2
    if mod == 0 and minimam > distance:
        minimam = distance
print(minimam)

Buggy python submission (verdict: Runtime Error):
import math
def main1():
    input_num = int(input())
    num_sqrt = int(math.sqrt(input_num))

    minimam = input_num
    for i in range(num_sqrt+1,0,-1):
        q, mod = divmod(input_num, i)
        if mod == 0:
            distance = q + i -2
            if minimam > distance:
            minimam = distance
    print(minimam)

Fixed submission:
num = int(input())
minimam = 10**12
for i in range(1,10**6+1):
    q, mod = divmod(num, i)
    distance = q + i -2
    if mod == 0 and minimam > distance:
        minimam = distance
print(minimam)

Buggy python submission (verdict: Time Limit Exceeded):
input_num = int(input())

minimam = input_num
for i in range(1,input_num+1):
    q, mod = divmod(input_num, i)
    distance = q + i -2
    if mod == 0 and minimam > distance:
        minimam = distance
print(minimam)


Fixed submission:
num = int(input())
minimam = 10**12
for i in range(1,10**6+1):
    q, mod = divmod(num, i)
    distance = q + i -2
    if mod == 0 and minimam > distance:
        minimam = distance
print(minimam)
Buggy python submission (verdict: Runtime Error):
A = int(input())

B = int(input())

if A<=9 and B<=9:
	print(A*B)
else:
	print(-1)

Fixed submission:
a,b=map(int,input().split())
 
if a<=9 and b <=9:
  print(a*b)
else:
  print(-1)

Buggy python submission (verdict: Runtime Error):
A = int(input())

B = int(input())

if A<10 and B<10:
	print(A*B)
else:
	print(int(-1))

Fixed submission:
a,b=map(int,input().split())
 
if a<=9 and b <=9:
  print(a*b)
else:
  print(-1)

Buggy python submission (verdict: Runtime Error):
A = int(input())

B = int(input())

if A<10 and B<10:
	print(A*B)
else:
	print(-1)

Fixed submission:
a,b=map(int,input().split())
 
if a<=9 and b <=9:
  print(a*b)
else:
  print(-1)

Buggy python submission (verdict: Runtime Error):
ab = input()
a, b = ab.split(" ")
A = int(a)
B = int(b)

if "0" in a or "0" in b or a > 9 or b > 9:
    print(-1)
else:
    print(A * B)

Fixed submission:
ab = input()
a, b = ab.split(" ")
A = int(a)
B = int(b)

if "0" in a or "0" in b or A > 9 or B > 9:
    print(-1)
else:
    print(A * B)

Buggy python submission (verdict: Runtime Error):
ab = inpout()
a, b = ab.split("")
A = int(a)
B = int(b)

if "0" in a or "0" in b:
	print(-1)
else:
	print(A * B)

Fixed submission:
ab = input()
a, b = ab.split(" ")
A = int(a)
B = int(b)

if "0" in a or "0" in b or A > 9 or B > 9:
    print(-1)
else:
    print(A * B)

Buggy python submission (verdict: Runtime Error):
ab = inpout()
a, b = ab.split("")
A = int(a)
B = int(b)

if "0" in a or "0" in b:
	print(-1)
else
	print(A * B)

Fixed submission:
ab = input()
a, b = ab.split(" ")
A = int(a)
B = int(b)

if "0" in a or "0" in b or A > 9 or B > 9:
    print(-1)
else:
    print(A * B)

Buggy python submission (verdict: Runtime Error):
A, B = input().split
A = int(A)
B = int(B)

if(A > 10 or B > 10):
  print(-1)
else:
  print(A*B)

Fixed submission:
A, B = input().split()
A = int(A)
B = int(B)
 
if(A > 9 or B > 9):
  print(-1)
else:
  print(A*B)
Buggy python submission (verdict: Time Limit Exceeded):
x=int(input())
s=set()
l=[i for i in range(1,x)]

for i in reversed(l):
  if x%i == 0:
    a=i+x//i-2
    s.add(a)
    if min(s)-a <0:
      break
print(min(s))


Fixed submission:
import math
x=int(input())
s=set()
y=int(math.sqrt(x))
for i in range(y,0,-1):
  if x%i == 0:
    a=i+x//i-2
    s.add(a)
    if min(s)-a <0:
      break
print(min(s))

Buggy python submission (verdict: Time Limit Exceeded):
x=int(input())
i = 1
s=set()
while x/i>=1:
  if x%i == 0:
    s.add(i+x//i-2)
    a1=i+x//i-2
    a2=a1
    if a2-a1 >0:
      break
  i = i + 1
print(min(s))

Fixed submission:
import math
x=int(input())
s=set()
y=int(math.sqrt(x))
for i in range(y,0,-1):
  if x%i == 0:
    a=i+x//i-2
    s.add(a)
    if min(s)-a <0:
      break
print(min(s))

Buggy python submission (verdict: Time Limit Exceeded):
x=int(input())
i = 1
s=set()
while x/i>=1:
  if x%i == 0:
    s.add(i+x//i-2)
  i = i + 1
print(min(s))


Fixed submission:
import math
x=int(input())
s=set()
y=int(math.sqrt(x))
for i in range(y,0,-1):
  if x%i == 0:
    a=i+x//i-2
    s.add(a)
    if min(s)-a <0:
      break
print(min(s))
Buggy python submission (verdict: Runtime Error):
a = input(>>)
b = input(>>)
c = input(>>)
d = input(>>)
e = input(>>)

k = input(>>)

if (a+b+c+d+e) > 4k:
    print(":(")
else:
    print(Yay!)


Fixed submission:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())

k = int(input())

list = [a, b, c, d, e]

Flag = "Yay!"
for i in range(5):
    for j in range(5):
        if abs(list[i] - list[j]) > k:
            Flag = ":("
            break
print(Flag)
Buggy python submission (verdict: Runtime Error):
n = int(input())
f = 0
for i in range(1, 9):
    for j in range(1, 9):
        if i*j == n:
            f = 1
if f == 0:
    print("No")
else:
    print("Yes")


Fixed submission:
a = list(map(int, input().split()))
if 1<=a[0] and a[0]<=9:
    if 1<=a[1] and a[1]<=9:
        print(a[0]*a[1])
    else:
        print(-1)
else:
    print(-1)
Buggy python submission (verdict: Runtime Error):
n = int(input())
i = 1
j = 1
ans = 0
for i in range(9):
#  ans 
  for j in range(9):
    if i * j == n:
      ans = 1
if ans == 1:
  print("Yes")1
else:
  print("No")

Fixed submission:
n = int(input())
i = 1
j = 1
ans = 0
for i in range(10):
#  ans 
  for j in range(10):
    if i * j == n:
      ans = 1
if ans == 1:
  print("Yes")
else:
  print("No")
Buggy python submission (verdict: Runtime Error):
A,B = map(int, input().split())
#B = int(input())

if A <= 2 * B:
  print(0)
else:
  print(A-

Fixed submission:
A,B = map(int, input().split())
#B = int(input())

if A <= 2 * B:
  print(0)
else:
  print(A-(2*B))
Buggy python submission (verdict: Runtime Error):
import copy

N = int(input())
a = list(map(int, input().split()))
b = [0] * N
ans = []
count = 0
for i in reversed(range(N)):
  if i > N / 2:
    if a[i] == 1:
      b[i] = 1
      count += 1
      ans.append(int(i+1))
  elif  i == 0:
    if a[i] == 1:
      if (count % 2) == 0:
#        print("hello")
        b[i] = 1
        count += 1
        ans.append(int(i+1))
  else:
    if a[i] == 1:
      sumi = 0
      j = 2
      while True:
        sumi += b[i * j]
        j += 1
        if (i * j) > N:
          break
      if sumi % 2 == 0:
        b[i] = 1
        count += 1
        ans.append(int(i+1))
print(count)
print(' '.join(map(str, ans)))

Fixed submission:
N = int(input())
a = list(map(int, input().split()))
a.insert(0,0)
b = [0] * (N + 1)
ans = []
count = 0
for i in reversed(range(1,N + 1)):
  if a[i] == 1:
    sumi = 0
    j = 2
    while True:
      if (i * j) > N:
        break
      sumi += b[i * j]
      j += 1
    if sumi % 2 == 0:
      b[i] = 1
      count += 1
      ans.append(int(i))
  else:
    sumi = 0
    j = 2
    while True:
      if (i * j) > N:
        break
      sumi += b[i * j]
      j += 1
    if sumi % 2 == 1:
      b[i] = 1
      count += 1
      ans.append(int(i))
ans.sort()
print(count)
print(' '.join(map(str, ans)))
Buggy python submission (verdict: Runtime Error):
A,P=map(input().split())
answer = int((A*3+P)/2)
print(answer)

Fixed submission:
A,P =(int(x) for x in input().split())
answer = int((A*3+P)/2)
print(answer)
Buggy python submission (verdict: Runtime Error):
import math
yu = int(input())
result = []
for i in range(1,round(math.sqrt(yu))):
	if yu % i == 0:
		result.append(i)

print(round(max(result)-1+(yu/max(result))-1))

Fixed submission:
import math
yu = int(input())
result = []
if yu == 2:
	print(1)
	quit()
for i in range(1,round(math.sqrt(yu)+1)):
	if yu % i == 0:
		result.append(i)


print(round(max(result)-1+(yu/max(result))-1))
Buggy python submission (verdict: Runtime Error):
a,b = input()
ai = int(a)
bi = int(b)

if ai < 10 and bi < 10:
  print(ai * bi)
else:
  print(-1)

Fixed submission:
a,b =map(int,input().split())
ai = int(a)
bi = int(b)
 
if ai < 10 and bi < 10:
  print(ai * bi)
else:
  print(-1)

Buggy python submission (verdict: Runtime Error):
import sys
 
a = sys.argv
i1 = int(a[1])
i2 = int(a[2])
if i1 < 10 and i2 < 10:
  print(i1 * i2)
else:
  print(-1)


Fixed submission:
a,b =map(int,input().split())
ai = int(a)
bi = int(b)
 
if ai < 10 and bi < 10:
  print(ai * bi)
else:
  print(-1)

Buggy python submission (verdict: Runtime Error):
import sys
 
def main():
  a = sys.argv
  i1 = int(a[1])
  i2 = int(a[2])

  if i1 < 10 and i2 < 10:
    return i1 * i2
  else:
    return -1

main()

Fixed submission:
a,b =map(int,input().split())
ai = int(a)
bi = int(b)
 
if ai < 10 and bi < 10:
  print(ai * bi)
else:
  print(-1)

Buggy python submission (verdict: Runtime Error):
import sys

a = sys.argv
i1 = int(a[1])
i2 = int(a[2])

if i1 < 10 and i2 < 10:
  return i1 * i2
else:
  return -1
  
  

Fixed submission:
a,b =map(int,input().split())
ai = int(a)
bi = int(b)
 
if ai < 10 and bi < 10:
  print(ai * bi)
else:
  print(-1)
Buggy python submission (verdict: Runtime Error):
a=map(int,input().split())
flg=0
for i in range(9):
  if a % (9-i) == 0 and a / (9-i) < 10:
    print("YES")
    flg=1
    break

if flg==0:
  print("NO")
    

Fixed submission:
am=input()
a = int(am)
flg=0
for i in range(9):
  if a % (9-i) == 0 and a / (9-i) < 10:
    print("Yes")
    flg=1
    break
 
if flg==0:
  print("No")
Buggy python submission (verdict: Runtime Error):
import math
b = input()
a = int(b)

c = int(math.sqrt(a))

for i in range(10000000):
    d = a / (c + i)
    if (d.is_integer() == True) & (i <= 10000):
        break
    if i > 10000:
        for j in range(1000000):
            f = a / (2 + j)
            if f.is_integer() == True:
                break
        break

if i > 1000:
    g = f + j
    print(int(g))
else:
    e = d + c + i - 2
    print(int(e))


Fixed submission:
import math
b = input()
a = int(b)

sqA = int(math.sqrt(a))

for i in range(10000000):
    d = a / (sqA - i)
    if d.is_integer() == True:
        break


e = d + sqA - i - 2

print(int(e))

Buggy python submission (verdict: Time Limit Exceeded):
import math
b = input()
a = int(b)

c = int(math.sqrt(a))

for i in range(1000000000):
    d = a / (c + i)
    if d.is_integer() == True:
        break

e = d + c + i - 2
print(int(e))


Fixed submission:
import math
b = input()
a = int(b)

sqA = int(math.sqrt(a))

for i in range(10000000):
    d = a / (sqA - i)
    if d.is_integer() == True:
        break


e = d + sqA - i - 2

print(int(e))