Harryxun/GPT-100-sft-dataset huggingface dataset:
Problem p02641 (python)

Fixed submission:
X, N = [int(x) for x in input().split()]

def main(X, N):
    if N == 0:
        return X
    arrp = [int(x) for x in input().split()]
    minus = X
    plus = X
    while True:
        if minus not in arrp:
            print(minus)
            exit()
        if plus not in arrp:
            print(plus)
            exit()
        minus -= 1
        plus += 1

print(main(X, N))

Buggy submission (verdict: Runtime Error):
X, N = [int(x) for x in input().split()]

def main(X, N):
    if N == 0:
        return X
    arrp = [int(x) for x in input().split()]
    b = sorted(arrp)
    lists = []
    for x in range(1, 101):
        if x not in arrp:
            a = abs(X-x)
            if a != 0:
                lists.append([a, x])
    return sorted(lists)[0][1]

print(main(X, N))

Buggy submission (verdict: Runtime Error):
X, N = [int(x) for x in input().split()]


def main(X,N):
    if N == 0:
        return X
    arrp = [int(x) for x in input().split()]
    b = sorted(arrp)
    lists = []
    for x in range(b[0],b[-1]):
        if x not in arrp:
            a = abs(X-x)
            lists.append([a,x])
    return sorted(lists)[0][1]

print(main(X,N))
Problem p02658 (python)

Fixed submission:
def main():

    N = int(input())
    lista = [int(x) for x in input().split()]
    q = 1
    if 0 in lista:
        return print(0)
    for i in lista:
        q *= i
        if q > 10**18:
            print(-1)
            return
    print(q)


main()

Buggy submission (verdict: Runtime Error):
N = int(input())
lista = [int(x) for x in input().split()]
q = 0
for i in lista:
  q *= i
  if q > 10**18:
    print(-1)
    return
 print(q)
Problem p02780 (python)

Fixed submission:
N, K = map(int, input().split())
p = list(map(int,input().split()))
box = []
for i in p:
    box.append((i+1)/2)

sum_a = sum(box[:K])
max_a = sum_a
for i in range(N-K):
    max_a -= box[i]
    max_a += box[i+K]
    if max_a > sum_a:
        sum_a = max_a

print(sum_a)

Buggy submission (verdict: Runtime Error):
N,K = [int(x) for x in input().split()]
b = [int(x) for x in input().split()]
p
for i in b:
    p.append((i+1)/2)
s = sum(p[:K])
max_s = s
for i in range(N-K):
    max_s+=p[K+i]
    max_s-=p[i]
    if max_s<s:
        max_s=s
print(max_s)
Problem p02789 (python)

Fixed submission:
n = input().split(' ')
if n[1] == n[0]:
    print('Yes')
else:
    print('No')

Buggy submission (verdict: Runtime Error):
n = input()
m = input()
if n == m:
  print('Yes')
else:
  print('No')

Buggy submission (verdict: Runtime Error):
m,n = int(input())
if n == m:
  print('Yes')
else:
  print('No')

Buggy submission (verdict: Runtime Error):
m,n = int(input())
if n = m:
  print('Yes')
else:
  print('No')
Problem p03076 (python)

Fixed submission:
def main() -> None:
    num = [int(input()) for _ in range(5)]
    ans = 0
    m = [0]
    for i in num:
        if i % 10:
            ans += i + 10 - i % 10
            m.append(10 - i % 10)
        else:
            ans += i
    print(ans - max(m))


if __name__ == '__main__':
    main()

Buggy submission (verdict: Runtime Error):
def main() -> None:
    num = [int(input()) for _ in range(5)]
    ans = 0
    m = []
    for i in num:
        if i % 10:
            ans += i + 10 - i % 10
            m.append(10 - i % 10)
        else:
            ans += i
    print(ans - max(m))


if __name__ == '__main__':
    main()
Problem p04044 (python)

Fixed submission:
N, L = map(int, input().split())
S = [input() for i in range(N)]

print(''.join(sorted(S)))

Buggy submission (verdict: Runtime Error):
N, L = map(int, input().split())
S = [input() for i in range(L)]

print(''.join(sorted(S)))

Buggy submission (verdict: Runtime Error):
N, L = map(int, input().split())
S = [input() for i in range(L)]

print("axxcxxdxx")
Problem p03139 (python)

Fixed submission:
import numpy as np


def main():
    n, a, b = map(int, input().split())
    ans_max = min(a, b)
    ans_min = max(a + b - n, 0)
    print(ans_max, ans_min)

    



if __name__ == '__main__':
    main()

Buggy submission (verdict: Runtime Error):
import numpy as np
import scipy as sp
import matplotlib.pyplot as plt

def main():
    n, a, b = map(int, input().split())
    ans_max = min(a, b)
    ans_min = max(a + b - n, 0)
    print(ans_max, ans_min)

    



if __name__ == '__main__':
    main()
Problem p02641 (python)

Fixed submission:
a,b = map(int, input().split())
if b>0:
	p = list(map(int, input().split()))
else:
	print(a)
	exit()

n = a
m = a

for i in range(b+1):
	"""
	print(n)
	print(m)
	print("")
	"""
	if n in p:	
		n = n-1			
	else:

		print(n)
		exit()

	if m in p:		
		m = m+1
	else:
		print(m)
		exit()

Buggy submission (verdict: Runtime Error):
a,b = map(int, input().split())
if b>0:
	p = list(map(int, input().split()))
else:
	print(a)
	exit()

n = a
m = a

for i in range(b):
	print(n)
	print(m)
	print("")
	if n in p:	a,b = map(int, input().split())
if b>0:
	p = list(map(int, input().split()))
else:
	print(a)
	exit()

n = a
m = a

for i in range(b):
	if n in p:	
		n = n-1
			
	else:
		if n < 1:
			continue
		print(n)
		exit()

	if m in p:		
		m = m+1
	else:
		print(m)
		exit()


	
		n = n-1
		if n < 1:
			n = 1
	else:
		print(n)
		exit()

	if m in p:		
		m = m+1
	else:
		print(m)
		exit()
Problem p02952 (python)

Fixed submission:
n = int(input())
c=0
a = [i for i in range(n+1)]
for x in a:
  if len(str(x)) % 2 == 1:
    c += 1
    
print(c-1)

Buggy submission (verdict: Runtime Error):
n = input()
c=0
a = [x for i in range(n)]
for x in a:
  if len(str(x)) % 2 == 1:
    c += 1
    
print(c)
Problem p02981 (python)

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

if a*n > b:
	print(b)
else:
	print(a*n)

Buggy submission (verdict: Runtime Error):
n = int(input())
a = int(input())
b = int(input())

if a*n > b:
	print(b)
else:
	print(a*n)
Problem p02657 (python)

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

Buggy submission (verdict: Runtime Error):
N=int(input())
a1=list(map(int,input().split()))
x=1
if 0 in a1:
    print(0)
else:
    for a in a1:
        x=x*a
        if x>1e18:
            print(-1)
            break
if x<=1e18:
    print(x)

Buggy submission (verdict: Runtime Error):
N=int(input())
a1=list(map(int,input(). split ()))
x=1
if 0 in A:
    print(0)
    return
for a in A:
    x=x*a
    if x>1e18:
        print(-1)
        return
print(x)
Problem p02658 (python)

Fixed submission:
N=int(input())
A=list(map(int,input().split()))
A.sort()
if A[0]==0:
    print('0')
    A.remove(0)
    exit()
prod=1
for i in A:
    prod=prod*i
    if prod>1e18:
        print('-1')
        exit()
else:
    print(prod)

Buggy submission (verdict: Runtime Error):
import math
N=int(input())
A=list(map(int,input().split()))
x=0
if 0 in A:
    y=True
    A.remove(0)
for i in A:
    x+=math.log(i,10)
if y==True:
    print(0)
elif x<=18.1:
    prod=1
    for i in A:
        prod=prod*i
    if prod<1e18:
        print(prod)
else:
    print('-1')
Problem p02783 (python)

Fixed submission:
H,A=map(int,input().split())
if 1<=H<=10000 and 1<=A<=10000:
    print(H//A+1 if H%A!=0 else int(H/A))

Buggy submission (verdict: Runtime Error):
H,A=input().split()
print(int(H)//int(A)+1 if 1<=H<=10000 and 1<=A<=10000)
Problem p02885 (python)

Fixed submission:
a1=input()
a2=[i for i in a1.split()]
a3,a4=[a2[i] for i in (0,1)]
A,B=int(a3),int(a4)
print(max(0,A-2*B))

Buggy submission (verdict: Runtime Error):
a1=input()
a2=[i for i in a1.split()]
a3,a4=[res[i] for i in (0,1)]
A,B=int(a3),int(a4)
if A>2*B:
    print(A-(2*B))
elif A<2*B:
    print('0')
Problem p03035 (python)

Fixed submission:
import sys
a=sys.stdin.readline()
res = [int(i) for i in a.split() if i.isdigit()] 
A,B = [res[i] for i in (0,1)]
if B%2==0 and (B>=2 and B<= 1000) and (A>=0 and A<=100):
	if A>=13:
		print(B)
	elif A>=6 and A<=12:
		print(int(B/2))
	elif A<=5:
		print(0)
else:
	print("Error")

Buggy submission (verdict: Runtime Error):
A=input("Enter Age")
B=input("Enter Fee")
if B%2==0 and (B>=2 and B<= 1000) and (A>=0 and A<=100):
	if A>=13:
		print(B)
	elif A>=6 and A<=12:
		print(int(B/2))
	elif A<=5:
		print(0)
else:
	print("Error")
Problem p03035 (python)

Fixed submission:
a = input()
s = a.find(' ')
a+= "."
b = a[s+1:-1]
a= a[0:s]
a=int(a)
b=int(b)
c= int(b/2)
if a>12:
  print(b)
elif a<=12 and a>=6:
  print(c)
else:
  print(0)

Buggy submission (verdict: Runtime Error):
a = input()
b= input()
a=int(a)
b=int(b)
c= int(b/2)
if a>12:
  print(b)
elif a<=12 and a>=6:
  print(c)
else:
  print(0)
Problem p02675 (python)

Fixed submission:
# -*- coding: utf-8 -*-
"""
Created on Mon May 18 14:53:59 2020

@author: 17664
"""

yomi = {2:'hon', 4:'hon', 5:'hon', 7:'hon', 9:'hon', 0:'pon', 1:'pon',
        6:'pon', 8:'pon', 3:'bon'}

print(yomi[int(input()[-1])])

Buggy submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
"""
Created on Mon May 18 14:53:59 2020

@author: 17664
"""

yomi = {2:'hon', 4:'hon', 5:'hon', 7:'hon', 9:'hon', 0:'pon', 1:'pon',
        6:'pon', 8:'pon', 3:'bon'}

print(yomi[input()[-1]])
Problem p02717 (python)

Fixed submission:
a, b, c = input().split()
 
a, b = b, a
a, c = c, a
 
print(' '.join([a, b, c]))

Buggy submission (verdict: Runtime Error):
a, b, c = [int(s) for s in input().split()]

a, b = b, a
a, c = c, a

print(' '.join([a, b, c])
Problem p02988 (python)

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

n = int(input())
arrayP = [int(s) for s in input().split()]
 
cnt = 0
 
for i in range(0, n-2):
    threeNums = arrayP[i:i+3]
    threeNums.sort()
    if threeNums[1] == arrayP[i+1]:
        cnt += 1
 
print(cnt)

Buggy submission (verdict: Runtime Error):
n = int(input())
arrayP = [int(s) for s in input().split()]

cnt = 0

for i in range(0, n-2):
    threeNums = arrayP[i:i+3].sort()
    if threeNums[1] == arrayP[i+1]:
        cnt += 1

print(cnt)
Problem p03210 (python)

Fixed submission:
a = [7, 5, 3]
x = int(input())
 
if x in a:
    print('YES')
else:
    print('NO')

Buggy submission (verdict: Runtime Error):
a = [7, 5, 3]
x = int(input())

if x in a:
    print('YES)
else:
    print('NO')
Problem p03854 (python)

Fixed submission:
s = input()

while len(s) > 4:
    if s[-5:] == 'dream' or s[-5:] == 'erase':
        s = s[:-5]
        continue
    elif s[-6:] == 'eraser':
        s = s[:-6]
        continue
    elif s[-7:] == 'dreamer':
        s = s[:-7]
        continue
    else:
        break
        
if len(s) == 0:
    print('YES')
else:
    print('NO')

Buggy submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
s = input()

while len(s) > 4:
    if s[-5:] == 'deram' or s[-5:] == 'erase:
        s = s[:-5]
        continue
    elif s[-6:] == 'eraser':
        s = s[:-6]
        continue
    elif s[-7:] == 'dreamer':
        s = s[:-7]
        continue
    else:
        break
    
if len(s) == 0:
    print('YES')
else:
    print('NO')

Buggy submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
s = input()

while len(s):
    if s[-5:] == 'deram' or s[-5:] == 'erase:
        s = s[:-5]
        continue
    elif s[-6:] == 'eraser':
        s = s[:-6]
        continue
    elif s[-7:] == 'dreamer':
        s = s[:-7]
        continue
    else:
        break
    
if len(s) == 0:
    print('YES')
else:
    print('NO')
Problem p03860 (python)

Fixed submission:
# -*- coding: utf-8 -*-
contName = input().split()
print(contName[0][0]+contName[1][0]+contName[2][0])

Buggy submission (verdict: Runtime Error):
contName = input().split()
print(''.join([contName[0][0],contName[1][0],contName[2][0]])
Problem p04026 (python)

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

s = input()

ans = ''

for i in range(len(s)-1):
    if s[i] == s[i+1]:
        ans = ' '.join([str(i+1), str(i+2)])
for j in range(len(s)-2):
    if s[j] == s[j+2]:
        ans = ' '.join([str(j+1), str(j+3)])

if ans:
    print(ans)
else:
    print('-1 -1')

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

s = input()

ans = ''

for i in range(len(s)-1):
    if s[i] == s[i+1]:
        ans = ' '.join([str(i+1), str(i+2)])
for j in range(len(s)-2):
    if s[i] == s[i+1] == s[i+2]:
        ans = ' '.join([str(i+1), str(i+3)])

if ans:
    print(ans)
else:
    print('-1 -1')

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

s = input()

double = []
triple = []

for i in range(len(s)-1):
    if s[i] == s[i+1]:
        double = [str(i+1), str(i+2)]
for j in range(len(s)-2):
    if s[i] == s[i+1] == s[i+2]:
        triple = [str(i+1), str(i+3)]
        
if double == [] and triple == []:
    print('-1 -1')
else:
    if double:
        print(' '.join(double))
    else:
        print(' '.join(triple))

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

s = input()

double = []
triple = []

for i in range(len(s)-1):
    if s[i] == s[i+1]:
        double = [str(i+1), str(i+2)]
for j in range(len(s)-2):
    if s[i] == s[i+1] == s[i+2]:
        triple = [str(i+1), str(i+3)]
        
if double == [] and triple == []:
    print('-1 -1')
elif double:
    print(' '.join(double))
else:
    print(' '.join(triple))

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

s = input()

double = []
triple = []

for i in range(len(s)-1):
    if s[i] == s[i+1]:
        double = [str(i+1), str(i+2)]
for j in range(len(s)-2):
    if s[i] == s[i+1] == s[i+2]:
        triple = [str(i+1), str(i+3)]
        
if double:
    print(' '.join(double))
elif triple:
    print(' '.join(triple))
else:
    print('-1 -1')

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

s = input()

double = []
triple = []

for i in range(len(s)-1):
    if s[i] == s[i+1]:
        double = [str(i+1), str(i+2)]
    if s[i] == s[i+1] == s[i+2]:
        triple = [str(i+1), str(i+3)]
        
if double:
    print(' '.join(double))
elif triple:
    print(' '.join(triple))
else:
    print('-1 -1')
Problem p02640 (python)

Fixed submission:
X, Y = map(int, input().split())
if Y>=2*X and Y<=4*X and Y%2==0:
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
X, Y = map(int, input().split())
A='No'
for a in range(X+1):
  B=X-1
  if 2*a+4*B == Y
   	A='Yes'
print(A)
Problem p02657 (python)

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

Buggy submission (verdict: Runtime Error):
A=int(input())
B=int(input())
if (A>=0 and A<=100) and (B>=0 and B<=100):
  print("A X B =",A*B)
else:
  print (NA)
Problem p02658 (python)

Fixed submission:
N = int(input())
L = input().split()
 
 
def mult():
    if "0" in L:
        return 0
    else:
        a = 1
        for i in L:
            a = a * int(i)
            if a > 1000000000000000000:
                return -1
        return a
 
print(mult())

Buggy submission (verdict: Runtime Error):
  N=int(input())
  A=list(map(int,input().split()))
  if 0 in A:
    print(0)
  prod=1
  for a in A:
    prod*=a
    if prod>10**18:
      print(-1)
   
  print(prod)
Problem p02706 (python)

Fixed submission:
n,m = map(int,input().split())
A = list(map(int, input().split()))
 
a = sum(A)
 
ans = n-a
if ans < 0:
    ans = -1
 
print(ans)

Buggy submission (verdict: Runtime Error):
N, M = map(int, input().split())
A = list(map(int, input().split()))
sum = 0

for i in A:
    sum += i

if sum > N:
    print(-1)
else:
    print(n - sum)
Problem p02717 (python)

Fixed submission:
X,Y,Z=input().split()
print(Z,X,Y)

Buggy submission (verdict: Runtime Error):
X=int(input())
Y=int(input())
Z=int(input())
print(Z, X, Y)
Problem p02765 (python)

Fixed submission:
N,R = map(int,input().split())
if N >= 10: print(R)
else: print(R + 100 * (10-N))

Buggy submission (verdict: Runtime Error):
N=int(input())
R=int(input())
if N>=10:
    print(R)
elif N<10:
    I=R+100(10-N)
    print(I)
Problem p02801 (python)

Fixed submission:
C=input()
N=ord(C)+1
M=chr(N)
print(M)

Buggy submission (verdict: Runtime Error):
N,K,M = map(int,input().split())
a = list(map(int,input().split()))
now = sum(a)
goal = N*M
if now + K >= goal:
  if now >= goal:
    print(0)
  else:
    print(goal-now)
else:
  print(-1)
Problem p02812 (python)

Fixed submission:
N=int(input())
S=input()
ans=0
for i in range (0,N-2):
  if S[i]=="A" and S[i+1]=="B" and S[i+2]=="C":
    ans+=1
print(ans)

Buggy submission (verdict: Runtime Error):
N=int(input())
S=input()
ans=0
for i in range (0,n-2):
  if S[i]=="A" and S[i+1]=="B" and S[i+2]=="C":
    ans+=1
print(ans)
Problem p02817 (python)

Fixed submission:
S, T=input().split()
print(T+S)

Buggy submission (verdict: Runtime Error):
A, B, K = map(int,input().split())
if(A>=K):
  print(A-K,B)
elif(B-K+A>=0):
  print(0,B-K+A)
else:
  print(0,0)

Buggy submission (verdict: Runtime Error):
A, B, K = map(int,input().split())
if(A>=k):
  print(A-k,B)
elif(B-K+A>=0):
  print(0,B-K+A)
else:
  print(0,0)

Buggy submission (verdict: Runtime Error):
S=input()
T=input()
print(T+S)

Buggy submission (verdict: Runtime Error):
S=input()
T=input()
print("T"+"S")
Problem p02830 (python)

Fixed submission:
N=int(input())
S,T=input().split()
ans=S[0]+T[0]
for i in range(1,N):
    ans=ans+S[i]+T[i]
print(ans)

Buggy submission (verdict: Runtime Error):
N=int(input())
S,T=input().split()
ans=S[0]+T[0]
for i in range(1,N):
    ans=ans+s[i]+T[i]
print(ans)
Problem p02982 (python)

Fixed submission:
import numpy as np
N,D=map(int,input().split())
X=[np.array(input().split(),dtype=np.int64) for _ in range(N)]
ans=0
for i in range(N):
    for j in range(i+1,N):
        d=((X[i]-X[j])*(X[i]-X[j])).sum()
        dd=int(round(d**.5))
        if d==dd*dd:
            ans +=1
print(ans)

Buggy submission (verdict: Runtime Error):
import math
 
def gooddistance(l1, l2):
    calc = []
    
    for i in range(len(l1)):
        calc.append((l1[i] - l2[i])**2)
 
    if math.sqrt(sum(calc)).is_integer():
        return 1
    else:
        return 0
 
 n, d = map(int, input().split())
lst = [list(map(int, input().split())) for _ in range(n)]
count = 0
 
for i in range(n):
    for j in range(i+1,n):
       count += gooddistance(lst[i],lst[j])
 
 print(count)
Problem p03231 (python)

Fixed submission:
from math import gcd
 
n,m=map(int, input().split())
s=input()
t=input()
 
g=gcd(n,m)
 
ng=n//g
mg=m//g
 
for i in range(0,g):
    if s[ng*i]!=t[mg*i]:
        print(-1)
        exit()
print(ng*mg*g)

Buggy submission (verdict: Runtime Error):
from math import gcd
 
a,b=map(int, input().split())
c=input()
d=input()
 
e=gcd(n,m)
 
ae=a//e
be=b//e
 
for i in range(0,e):
    if c[ae*i]!=d[be*i]:
        print(-1)
        exit()
print(ae*be*e)
Problem p03427 (python)

Fixed submission:
Num = str(input())
L = len(Num)
if Num[1:] == '9'*(L-1):
  val = int(Num[0]) + 9*(L-1)
else:
  val = int(Num[0])-1 + 9*(L-1)
print(val)

Buggy submission (verdict: Runtime Error):
Num = str(input())
L = len(Num)
if Num[1:] == '9'*(l-1):
  val = int(Num[0]) + 9*(l-1)
else:
  val = int(Num[0])-1 + 9*(l-1)
print(val)
Problem p02657 (python)

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

Buggy submission (verdict: Runtime Error):
N = int(input())

a = list(map(int, input().split()))
ans = 1
if a.index(0):
    ans = (0)
else :
    for i in range(N):
        ans = ans * a[i]
        if ans > 10**18:
            ans = -1
            break
print(ans)
Problem p02658 (python)

Fixed submission:
N = int(input())

a = list(map(int, input().split()))
ans = 1
if 0 in a:
    ans = 0
else :
    for i in range(N):
        ans = ans * a[i]
        if ans > 10**18:
            ans = -1
            break
print(ans)

Buggy submission (verdict: Runtime Error):
N = int(input())

a = list(map(int, input().split()))
ans = 1
for i in range(N):
    if a.index(0):
        ans = 0
        break
    ans = ans * a[i]
    if ans > 10**18:
        ans = -1
        break
print(ans)
Problem p02621 (python)

Fixed submission:
a=int(input())
print(a+a**2+a**3)

Buggy submission (verdict: Runtime Error):
a=int(inupt())
print(a+a*a+a*a*a)
Problem p02700 (python)

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

while True:
  C-=B
  if C<=0:
    print("Yes")
    break
  A-=D
  if A<=0:
    print("No")
    break

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

while True:
  C-=B
  if C<=0:
    input("Yes")
    break
  A-=D
  elif A<=0:
    input("No")
    break

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

while True:
  a-=d
  if a<=0:
    print("No")
    break
  c-=b
  if c=<0:
    print("Yes")
    break
Problem p02717 (python)

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

print(c,a,b)

Buggy submission (verdict: Runtime Error):
a,b,c=input()

print(c,a,b)
Problem p02760 (python)

Fixed submission:
a0,a1,a2=map(int,input().split())
a3,a4,a5=map(int,input().split())
a6,a7,a8=map(int,input().split())
N=int(input())
b=[int(input()) for _ in range(N)]
A=[a0,a1,a2,a3,a4,a5,a6,a7,a8]

for i in range(N):
  for p in range(9):
    if b[i]==A[p]:
      A[p]=0
  
if A[0]==A[1]==A[2]==0 or A[3]==A[4]==A[5]==0 or A[6]==A[7]==A[8]==0 or A[0]==A[3]==A[6]==0 or A[1]==A[4]==A[7]==0 or A[2]==A[5]==A[8]==0 or A[0]==A[4]==A[8]==0 or A[2]==A[4]==A[6]==0:
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
a0,a1,a2=map(int,input().split())
a3,a4,a5=map(int,input().split())
a6,a7,a8=map(int,input().split())
N=int(input())
b=[int(input()) for _ in range(N)]
A=[a0,a1,a2,a3,a4,a5,a6,a7,a8]

for i in range(N):
  for p in range(9):
    if b[i]=A[p]:
      A[p]=0
  
if A[0]==A[1]==A[2]==0 or A[3]==A[4]==A[5]==0 or A[6]==A[7]==A[8]==0 or A[0]==A[3]==A[6]==0 or A[1]==A[4]==A[7]==0 or A[2]==A[5]==A[8]==0 or A[0]==A[4]==A[8]==0 or A[2]==A[4]==A[6]==0:
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
a0,a1,a2=map(int,input().split())
a3,a4,a5=map(int,input().split())
a6,a7,a8=map(int,input().split())
N=int(input())
b=[int(input()) for _ in range(N)]
A=[a0,a1,a2,a3,a4,a5,a6,a7,a8]

for i in range(N):
  for p in range(9):
    if b[i]=A[p]:
      A[p]=0
  
if A[0]==A[1]==A[2]==0 or A[3]==A[4]==A[5]==0 or A[6]==A[7]==A[8]==0 or A[0]==A[3]==A[6]==0 0r A[1]==A[4]==A[7]==0 or A[2]==A[5]==A[8]==0 or A[0]==A[4]==A[8]==0 or A[2]==A[4]==A[6]==0:
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
a0,a1,a2=map(int,input().split())
a3,a4,a5=map(int,input().split())
a6,a7,a8=map(int,input().split())
N=int(input())
b=[int(input()) for _ in range(N)]
A=[a0,a1,a2,a3,a4,a5,a6,a7,a8]

for i in range(N):
  for p in range(9):
    if b[i]=A[p]:
      A=0
  
if A[0]==A[1]==A[2]==0 or A[3]==A[4]==A[5]==0 or A[6]==A[7]==A[8]==0 or A[0]==A[3]==A[6]==0 0r A[1]==A[4]==A[7]==0 or A[2]==A[5]==A[8]==0 or A[0]==A[4]==A[8]==0 or A[2]==A[4]==A[6]==0:
  print("Yes")
else:
  print("No")
Problem p02789 (python)

Fixed submission:
N,M=map(int,input().split())

if N==M:
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
N,M=map(int,input().split)

if N==M:
  print("Yes")
else:
  print("No")
Problem p03624 (python)

Fixed submission:
S = input()
T = 'abcdefghijklmnopqrstuvwxyz'
diff = sorted(list(set(T) - set(S)))
if diff:
    print(diff[0])
else:
    print('None')

Buggy submission (verdict: Runtime Error):
S = input()
T = 'abcdefghijklmnopqrstuvwxyz'
print(sorted(list(set(T) - set(S)))[0])

Buggy submission (verdict: Runtime Error):
S = input()
T = 'abcdefghijklmnopqrstuvwxyz'
print(sorted(list(set(T) - set(S)))[0])
Problem p02621 (python)

Fixed submission:
def main():
  a = int(input())
  print(a+a**2+a**3)

if __name__ == '__main__':
  main()

Buggy submission (verdict: Runtime Error):
def main():
  a = int(input())
  answer = a + a**2 + a**3
  print(answer)

if __name__ = '__main__':
  main()