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

Fixed submission:
import collections

n = int(input())
m = list(map(int,input().split()))

zen = m
cou = 0

for x in range(n):
    zen.append(m[x]-1)

for x in range(n):
    zen.append(m[x]+1)

a = collections.Counter(zen)

#for k in range(n):
#    if a.most_common()[0][0] == m[k] or a.most_common()[0][0] == m[k] -1 or a.most_common()[0][0] == m[k] +1:
#        cou += 1

print(a.most_common()[0][1])

Buggy submission (verdict: Runtime Error):
n = int(input())
m = list(map(int,input().split()))

zen = m
cou = 0

for x in range(n):
    zen.append(m[x]-1)

for x in range(n):
    zen.append(m[x]+1)

a = collections.Counter(zen)

for k in range(n):
    if a[0][1] == m[k] or a[0][1] == m[k] -1 or a[0][1] == m[k] +1:
        cou += 1

print(cou)
Problem p02600 (python)

Fixed submission:
x = int(input())

for i in range(8):
  if x >= 1800 - 200*i:
    print(i+1)
    break

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

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

for i in range(N - K):
  list_a = list(A[i:i+K])
  list_b = list(A[i+1:i+K+1])
  if list_a < list_b:
    print("Yes")
  else:
    print("No")
Problem p02602 (python)

Fixed submission:
N, K = list(map(int,input().split()))
 
A = list(map(int,input().split()))
 
for i in range(N - K):
  if A[i] < A[i + K]:
    print("Yes")
  else:
    print("No")

Buggy submission (verdict: Runtime Error):
N, K = list(map(int,input().split()))
 
A = list(map(int,input().split()))
 
for i in range(N - K):
  if A[i] < A[i + K + 1]:
    print("Yes")
  else:
    print("No")
Problem p02706 (python)

Fixed submission:
N, M = input().split()
 
a = list(map(int,input().split()))
 
if sum(a) > int(N):
  print(-1)
  
else:
  print(int(N) - sum(a))

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

a = [input().split() for i in range(M)]

if sum(a) > N:
  print(-1)
  
else:
  print(N - sum(a))
Problem p02612 (python)

Fixed submission:
N = int(input())

a = N//1000

if 1000*a != N:
  print(1000*(a+1)-N)

else:
  print(0)

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

a = N//1000

if 1000*a != N:
print(1000*(a+1)-N)

else:
print(0)
Problem p02681 (python)

Fixed submission:
s = str(input())
t = str(input())

if s == t[:-1]:
	print("Yes")
else:
  	print("No")

Buggy submission (verdict: Runtime Error):
s = str(input())
t = str(input())

if s == t[：-1]:
	print("Yes")
else:
  	print("No")

Buggy submission (verdict: Runtime Error):
s = str(input())
t = str(input())

T = t[：-1]

Buggy submission (verdict: Runtime Error):
s = str(input())
t = str(input())

T = t[：-1]

if s == T:
	print("Yes")
else:
  	print("No")

Buggy submission (verdict: Runtime Error):
s = str(input())
t = str(input())

t = t[：-1]

if s == t:
	print("Yes")
else:
  	print("No")

Buggy submission (verdict: Runtime Error):
s = str(input())
t = str(input())

t = t[：-1]

if s = t:
	print("Yes")
else:
  	print("No")
Problem p02718 (python)

Fixed submission:
N, M = map(int, input().split())
l = list(map(int, input().split()))  
 
S = sum(l)
X = 4*M
 
lr = [i for i in l if i >= S/X]
 
if len(lr) >= M:
  	print("Yes")
else:
  	print("No")

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

S = sum(l)

lr = [i for i in l if i >= S/4M]

if len(lr) >= M:
  	print("Yes")
else:
  	print("No")
Problem p02772 (python)

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

L = [i for i in l if i % 2 == 0]
K = [i for i in L if i % 3 != 0]
J = [i for i in K if i % 5 != 0]

if len(J) == 0:
		print("APPROVED")
else:
        print("DENIED")

Buggy submission (verdict: Runtime Error):
N = int(input())
l = list(map(int, input().split())
         
L = [i for i in l if i % 2 == 0]

K = [i for i in L if i % 3 != 0]

J = [i for i in K if i % 5 != 0]
         
if len(J) == 0:
		print("APPROVED")
else:
        print("DENIED")

Buggy submission (verdict: Runtime Error):
N = int(input())
l = list(map(int, input().split())
         
L = [i for i in l if i % 2 == 0]

K = [i for i in L if i % 3 != 0]

J = [i for i in K if i % 5 != 0]
         
if len(J) == 0:
         print("APPROVED")
else:
         print("DENIED")
Problem p02811 (python)

Fixed submission:
K, X = map(int,input().split())

if 500*K >= X:
  print('Yes')
else:
  print('No')

Buggy submission (verdict: Runtime Error):
K, X = map(int,input().split())
if 500K >= X:
  	print('Yes')
else:
    print('No')
Problem p03071 (python)

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

ans = 0
 
if(a > b):
  ans += a
  a -= 1
else:
  ans += b
  b -= 1
 
if(a > b):
  ans += a
  a -= 1
else:
  ans += b
  b -= 1
print(ans)

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

ans = 0

if(a > b):
  ans += a
  a -= 1
else:
  ans += b
  b -= 1

if(a > b):
  ans += a
  a -= 1
else:
  ans += b
  b -= 1
print(ans)
Problem p02600 (python)

Fixed submission:
x=int(input())
if (x>=400 and x<=599):
  print("8")
elif (x>=600 and x<=799):
  print("7")
elif (x>=800 and x<=999):
  print("6")
elif (x>=1000 and x<=1199):
  print("5")
elif (x>=1200 and x<=1399):
  print("4")
elif (x>=1400 and x<=1599):
  print("3")
elif (x>=1600 and x<=1799):
  print("2")
elif (x>=1800 and x<=1999):
  print("1")

Buggy submission (verdict: Runtime Error):
x=int(input())
  if (x>=400 and x<=599):
    print("8")
  elif (x>=600 and x<=799):
    print("7")
  elif (x>=800 and x<=999):
    print("6")
  elif (x>=1000 and x<=1199):
    print("5")
  elif (x>=1200 and x<=1399):
    print("4")
  elif (x>=1400 and x<=1599):
    print("3")
  elif (x>=1600 and x<=1799):
    print("2")
  elif (x>=1800 and x<=1999):
    print("1")

Buggy submission (verdict: Runtime Error):
x=int(integer)
  if 400<=x and x<=599:
    print("8")
  elif 600<=x and x<=799:
    print("7")
  elif 800<=x and x<=999:
    print("6")
  elif 1000<=x and x<=1199:
    print("5")
  elif 1200<=x and x<=1399:
    print("4")
  elif 1400<=x and x<=1599:
    print("3")
  elif 1600<=x and x<=1799:
    print("2")
  elif 1800<=x and x<=1999:
    print("1")

Buggy submission (verdict: Runtime Error):
x=int(integer)
  if 400<=x<=599:
    print("8")
  elif 600<=x<=799:
    print("7")
  elif 800<=x<=999:
    print("6")
  elif 1000<=x<=1199:
    print("5")
  elif 1200<=x<=1399:
    print("4")
  elif 1400<=x<=1599:
    print("3")
  elif 1600<=x<=1799:
    print("2")
  elif 1800<=x<=1999:
    print("1")
Problem p02724 (python)

Fixed submission:
X = int(input())
pleasure = (X // 500) * 1000
X %= 500
pleasure += (X // 5) * 5
print(pleasure)

Buggy submission (verdict: Runtime Error):
X = int(input())
pleasure += (X // 500) * 1000
X //= 500
pleasure += (X // 5) * 5
print(pleasure)
Problem p02744 (python)

Fixed submission:
N = int(input())
a_ch = [chr(ch) for ch in range(ord('a'), ord('j') + 1)]

def DFS(s, mx):
  if len(s) == N:
    print(s)
  else:
    for i in range(mx + 1):
      if i == mx:
        DFS(s + a_ch[i], mx + 1)
      else:
        DFS(s + a_ch[i], mx)

DFS('', 0)

Buggy submission (verdict: Runtime Error):
N = int(input())
a_ch = [chr(ch) for ch in range(ord('a'), ord('j'))]

def DFS(s, mx):
  if len(s) == N:
    print(s)
  else:
    for i in range(mx + 1):
      if i == mx:
        DFS(s + a_ch[i], mx + 1)
      else:
        DFS(s + a_ch[i], mx)

DFS('', 0)
Problem p02761 (python)

Fixed submission:
N, M = map(int, input().split())
l_same = [-1, -1, -1]
if N == 1:
  s_num = '0'
else:
  s_num = '1' + '0' * (N - 1)
ans = int(s_num)
for i in range(M):
  s, c = map(int, input().split())
  if N != 1 and (s == 1 and c == 0):
    ans = -1
    break
  elif l_same[s - 1] != -1 and l_same[s - 1] != c:
    ans = -1
    break
  else:
    l_same[s - 1] = c
    s_num = s_num[0:s - 1] + str(c) +  s_num[s:]
    ans = int(s_num)
print(ans)

Buggy submission (verdict: Runtime Error):
N, M = map(int, input().split())
l_same = [-1, -1, -1]
if N == 1:
  s_num = '0'
else:
	s_num = '1' + '0' * (N - 1)
for i in range(M):
  s, c = map(int, input().split())
  if N != 1 and (s == 1 and c == 0):
    ans = -1
    break
  elif l_same[s - 1] != -1 and l_same[s - 1] != c:
    ans = -1
    break
  else:
    l_same[s - 1] = c
    s_num = s_num[0:s - 1] + str(c) +  s_num[s:]
    ans = int(s_num)
print(ans)

Buggy submission (verdict: Runtime Error):
N, M = map(int, input().split())
l_same = [-1, -1, -1]
if N == 1:
  s_num = '0'
else:
  s_num = '1' + '0' * (N - 1)
for i in range(M):
  s, c = map(int, input().split())
  if s == 1 and c == 0:
    ans = -1
    break
  elif l_same[s - 1] != -1 and l_same[s - 1] != c:
    ans = -1
    break
  else:
    l_same[s - 1] = c
    s_num = s_num[0:s - 1] + str(c) +  s_num[s:]
    ans = int(s_num)
print(ans)

Buggy submission (verdict: Runtime Error):
N, M = map(int, input().split())
l_same = [-1, -1, -1]
if N == 1:
  s_num = 0
else:
	s_num = '1' + '0' * (N - 1)
for i in range(M):
  s, c = map(int, input().split())
  if s == 1 and c == 0:
    ans = -1
    break
  elif l_same[s - 1] != -1 and l_same[s - 1] != c:
    ans = -1
    break
  else:
    l_same[s - 1] = c
    s_num = s_num[0:s - 1] + str(c) +  s_num[s:]
    ans = int(s_num)
print(ans)
Problem p02600 (python)

Fixed submission:
X = int(input())
if X>=400 and X <=599:
    print("8")
if X>=600 and X <=799:
    print("7")
if X>=800 and X <=999:
    print("6")
if X>=1000 and X <=1199:
    print("5")
if X>=1200 and X <=1399:
    print("4")
if X>=1400 and X <=1599:
    print("3")
if X>=1600 and X <=1799:
    print("2")
if X>=1800 and X <=1999:
    print("1")

Buggy submission (verdict: Runtime Error):
A,B,C = map(int, input().split())
K = int(input())
D = B
E = C
i1 = 0
i2 = 0
while(D<A):
    D = D*2
    i1 +=1
while(E<A):
    E = E*2
    i2 +=1
if K >= i1+i2:
    print("Yes")
else:
    print("No") 
print(i1)
print(i2)
print(D)
print(E)
Problem p02600 (python)

Fixed submission:
X = int(input())

a = 1999/X

if a >= 1999/599:
  print(8)
elif a >= 1999/799:
  print(7)
elif a >= 1999/999:
  print(6)
elif a >= 1999/1199:
  print(5)
elif a >= 1999/1399:
  print(4)
elif a >= 1999/1599:
  print(3)
elif a >= 1999/1799:
  print(2)
elif a >= 1999/1999:
  print(1)

Buggy submission (verdict: Runtime Error):
X = input()
a = 2000 / X
if a >= 2000/599:
  print(8)
elif a >= 2000/799:
  print(7)
elif a >= 2000/999:
  print(6)
elif a >= 2000/1199:
  print(5)
elif a >= 2000/1399:
  print(4)
elif a >= 2000/1599:
  print(3)
elif a >= 2000/1799:
  print(2)
elif a >= 2000/1999:
  print(1)
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())
print(A * B)

Buggy submission (verdict: Runtime Error):
A = input()
B = input()
C = A * B
print(C)

Buggy submission (verdict: Runtime Error):
A = int(input())
B = int(input())
C = int(A * B)
print(C)

Buggy submission (verdict: Runtime Error):
import math
A = int(input())
B = int(input())
C = int(A * B)
print(C)

Buggy submission (verdict: Runtime Error):
a = int(input())
b = int(input())
c = a * b
print(c)

Buggy submission (verdict: Runtime Error):
A = int(input())
B = int(input())
C = int(A * B)
print(C)

Buggy submission (verdict: Runtime Error):
A = int(input())
B = int(input())
C = A * B
print(C)

Buggy submission (verdict: Runtime Error):
A = int(input())
B = int(input())
print(A * B)

Buggy submission (verdict: Runtime Error):
A = int(input())
B = int(input())
print(A * B)

Buggy submission (verdict: Runtime Error):
A = input(int())
B = input(int())
print(A * B)
Problem p02639 (python)

Fixed submission:
num = list(map(int, input().split()))
count = 0
for i in num:
  if i == 0:
    count += 1
    print(count)
  else:
    count += 1

Buggy submission (verdict: Runtime Error):
num = list(map(int, input().split()))
count = 0
for i in num:
  if i = 0:
    count += 1
    print(count)
  else:
    count += 1
Problem p04043 (python)

Fixed submission:
value = input()
if value.count("5") ==2:
  if value.count("7") ==1:
    print('YES')
  else:
    print('NO')
else:
  print('NO')

Buggy submission (verdict: Runtime Error):
value = int(input())
if value.count(5) ==2:
  if value.count(7) ==1:
    print('YES')
  else:
    print('NO')
else:
  print('NO')

Buggy submission (verdict: Runtime Error):
value = input()
if value.count(5) ==2:
  if value.count(7) ==1:
    print('YES')
  else:
    print('NO')
else:
  print('NO')

Buggy submission (verdict: Runtime Error):
value = input()
if value.count(5) ==2:
  if value.count(7) ==1:
    print('Yes')
  else:
    print('No')
else:
  print('No')
Problem p02600 (python)

Fixed submission:
i = int(input())
k = 10 - int((i / 200))
print(k)

Buggy submission (verdict: Runtime Error):
i = list(map(int, input().split()))
limit = int(input())
k = 0
while not i[0] < i[1] < i[2]:
    if i[2] <= i[1]:
        i[2] *= 2
        k += 1
    if k == limit:
        break
    if i[1] <= i[0]:
        i[1] *= 2
        k += 1
    if k == limit:
        break
if k <= limit and i[0] < i[1] < i[2]:
    print("Yes")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
i = list(map(int, input().split()))
limit = int(input())
k = 0
while not i[0] < i[1] < i[2]:
    if i[2] < i[1]:
        i[2] *= 2
        k += 1
    if k == limit:
        break
    if i[1] < i[0]:
        i[1] *= 2
        k += 1
    if k == limit:
        break
if k <= limit and i[0] < i[1] < i[2]:
    print("Yes")
else:
    print("No")
Problem p02657 (python)

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

Buggy submission (verdict: Runtime Error):
k=int(input())
mal=1      
n=list(map(int,input().split()))
      
          
for i in range(0,len(n)):
            mal=mal*n[i]
            if(mal>=10**18):
                mal=-1
                break
print(mal)

Buggy submission (verdict: Runtime Error):
k=int(input())
mal=1      
n=list(map(int,input().split()))
      
          
for i in range(0,len(n)):
            mal=mal*n[i]
            if(mal>=10**18):
                print(-1)
                break
print(mal)

Buggy submission (verdict: Runtime Error):
k=int(input())
mal=1
a=[]      
for i in range(1,k+1):
      n=int(input())
      a.append(n)      
for i in range(0,len(a)):
            mal=mal*a[i]
if(mal<=10**18):
    print(mal)
else:
    print(-1)
Problem p02658 (python)

Fixed submission:
k=int(input())
mal=1      
n=list(map(int,input().split()))
      
          
for i in range(0,len(n)):
    mal=mal*n[i]
    if(mal>10**18):
            mal=-1
            break
for j in range(0,len(n)):
    if(n[j]==0):
        mal=0
print(mal)

Buggy submission (verdict: Runtime Error):
k=int(input())
mal=1      
n=list(map(int,input().split()))
      
          
for i in range(0,len(n)):
    mal=mal*n[i]
    if(mal>10**18and n[i]!=0):
            mal=-1
            break
     if(n[i]==0):
        mal=0
        break
print(mal)

Buggy submission (verdict: Runtime Error):
k=int(input())
mal=1      
n=list(map(int,input().split()))
      
          
for i in range(0,len(n)):
    mal=mal*n[i]
    if(mal>10**18and n[i]!=0):
            mal=-1
            break
        if(n[i]==0):
        mal=0
        break
print(mal)

Buggy submission (verdict: Runtime Error):
k=int(input())
mal=1      
n=list(map(int,input().split()))
      
          
for i in range(0,len(n)):
    if(n[i]==0):
        mal=0
        break
    mal=mal*n[i]
        if(mal>10**18):
            mal=-1
            break
print(mal)

Buggy submission (verdict: Runtime Error):
k=int(input()
mal=1
a=[]      
for i in range(1,k+1):
      n=int(input()
      a.append(n)      
for i in range(0,len(a)-1):
            mal=mal*a[i]
if(mal<=10**18):
            print(mal)
else:
     print(-1)
Problem p03302 (python)

Fixed submission:
a,b=map(int,input().split())
if(a+b==15):
      print("+")
elif(a*b==15):
      print("*")
else:
      print("x")

Buggy submission (verdict: Runtime Error):
a,b=map(int,input().split())
if(a+b==15):
      print("+")
elif(a*b=15):
      print("*")
else:
      print("x")

Buggy submission (verdict: Runtime Error):
a,b=map(int,inout().split())
if(a+b==15):
  print("+")
elif(a*b=15):
  print("*")
else:
  print("x")
Problem p03359 (python)

Fixed submission:
a,b=map(int,input().split())
ct=0
for i in range(1,a+1):
    for j in range(1,32):
        if(a!=b):
            if(i==b):
                break
            elif(i==j):
                ct=ct+1
        elif(i==j):
            ct=ct+1
               
print(ct)

Buggy submission (verdict: Runtime Error):
a,b=map(int,input().split())
ct=0
for i in range(1,a+1):
    for j in range(1,32):
        if(a!=b):
            if(i==a):
                break
        else(i==j):
            ct=ct+1
               
print(ct)

Buggy submission (verdict: Runtime Error):
a=list(map(int,input().split()))
a=sorted(a)
k=int(input())

for i in range(1,k+1):
       f=a[2]*2
       a[2]=f
       
c=a[0]+a[1]+a[2]
print(c)

Buggy submission (verdict: Runtime Error):
a,b=map(int,input().split())
flag=0
for a in range(1,a+1):
  for b in range(1,b+1);
   if(a==b):
      flag=flag+1
print(flag)
Problem p03369 (python)

Fixed submission:
s=input()
ct=0
for i in range(0,len(s)):
    
    if(s[i]=="o"): 
        ct=ct+1
if(ct>0):
  f=700+100*ct
else:
  f=700
print(f)

Buggy submission (verdict: Runtime Error):
s=input()

ct=0
if(s[0]=="o" or s[1]=="o"or s[2]=="o"):
  f=800
elif(s[0]=="o" and  s[1]=="o"and s[2]=="o"):
  f=1000
elif(elif(s[0]=="o" and  s[1]=="o"):
  f=900
else:
    f=700
print(f)
Problem p03377 (python)

Fixed submission:
a,b,x=map(int,input().split())
if  a>x:
    print("NO")
else:
    if x<=a+b:
        print("YES")
    else:
        print("NO")

Buggy submission (verdict: Runtime Error):
a,b,x=map(int,input().split())
if(a<=x or a+b==x);
   print("Yes")
else:
  print("No")
Problem p03385 (python)

Fixed submission:
s=input()
if "a" in s and "b" in s and "c" in s:
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
s=input()
if "a" in s and "b" in s and c in "s":
  print("Yes")
else:
  print("No")
Problem p03399 (python)

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


f=[a,b]
f=sorted(f)
g=[c,d]
g=sorted(g)
    
print(f[0]+g[0])

Buggy submission (verdict: Runtime Error):
a=input()
a=int(a)
b=input()
b=input(b)
c=input()
c=int(c)
d=input()
f=list[a,b,c,d]
print(f[0]+f[1])
Problem p03447 (python)

Fixed submission:
x=input()
x=int(x)
a=input()
a=int(a)
b=input()
b=int(b)
print((x-a)%b)

Buggy submission (verdict: Runtime Error):
x=input()
x=int(x)
a=input()
a=int(a)
b=input()
b=int(b)
print(x-a)%b)
Problem p03456 (python)

Fixed submission:
a,b=input().split()
c=a+b
c=int(c)
flag=0
for i in range(1,c+1):
    if(c==i*i):
      flag=flag+1
      break
if(flag>0):
    print("Yes")
else:
    print('No')

Buggy submission (verdict: Runtime Error):
a,b=input().split()
c=a+b
a=int.input(a)
if(c==a*a):
  print("Yes")
  else:
    print("No")

Buggy submission (verdict: Runtime Error):
a,b=input().split()
c=a+b
a=int.input(a)
if(c==a*a):
  print("Yes")
  else:
    print("no")
Problem p03543 (python)

Fixed submission:
n=input()
if(n[0]==n[1]==n[2] or n[1]==n[2]==n[3]):
    print("Yes")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
n=input()
n=int(n)
og=n
flag=0
for i in range(0,10):
    while(n>0):
    d=n%10
    n=n//10
    if(d==i):
        flag=flag+1

if(flag>=3):
    print("Yes")
else:
    print("No")
Problem p03547 (python)

Fixed submission:
s1,s2=input().split(" ")
s1=s1.lower()
s2=s2.lower()
flag=0
if(len(s1)>len(s2)):
   a=len(s2)
else:
    a=len(s1)

for i in range(0,a):
    if(s1[i]==s2[i]):
        flag=flag+1
    elif(s1[i]>s2[i]):
            print('>')
            break;
    elif(s1[i]<s2[i]):
            print('<')
            break;
if(flag==a):
    if(len(s1)>len(s2)):
        print(">")

    elif(len(s1)<len(s2)):
        print("<")
    else:
            print("=")

Buggy submission (verdict: Runtime Error):
s1,s2=input().split(",")
s1=s1.lower()
s2=s2.lower()
flag=0
if(len(s1)>len(s2)):
   a=len(s2)
else:
    a=len(s1)

for i in range(0,a):
    if(s1[i]==s2[i]):
        flag=flag+1
    elif(s1[i]>s2[i]):
            print('>')
            break;
    elif(s1[i]<s2[i]):
            print('<')
            break;
if(flag==a):
    if(len(s1)>len(s2)):
        print(">")

    elif(len(s1)<len(s2)):
        print("<")
    else:
            print("=")

Buggy submission (verdict: Runtime Error):
s1=input()
s2=input()
s1=s1.lower()
s2=s2.lower()
flag=0
if(len(s1)>len(s2)):
   a=len(s2)
else:
    a=len(s1)

for i in range(0,a):
    if(s1[i]==s2[i]):
        flag=flag+1
    elif(s1[i]>s2[i]):
            print('>')
            break;
    elif(s1[i]<s2[i]):
            print('<')
            break;
if(flag==a):
    if(len(s1)>len(s2)):
        print(">")

    elif(len(s1)<len(s2)):
        print("<")
    else:
            print("=")
Problem p03563 (python)

Fixed submission:
a=input()
a=int(a)
s=input()
s=int(s)
b=0
b=2*s-a
print(b)

Buggy submission (verdict: Runtime Error):
a=input()
a=int(a)
s=input()
s=int(s)
b=2s-a
print(b)

Buggy submission (verdict: Runtime Error):
a=input()
a=int(a)
s=input()
s=int(s)
2s-a=b
Problem p03609 (python)

Fixed submission:
x, t = map(int, input().split())
if(x>t):
    print(x-t)
else:
  print("0")

Buggy submission (verdict: Runtime Error):
x=input()
x=int(x)
t=input()
t=int(t)
if(x>t):
  print(x-t)
else:
  print("0")
Problem p04043 (python)

Fixed submission:
a, b,c = map(int,input().split())
if(a==5 and b==7 and c==5):
    print("YES")
elif(a==5 and b==5 and c==7):
    print("YES")
elif(a==7 and b==5 and c==5):
    print("YES")
else:
    print("NO")

Buggy submission (verdict: Runtime Error):
a=input()
a=int(a)
b=input()
b=int(b)
c=input()
c=int(c)
if(a==5 and b==7 and c==5):
    print("YES")
elif(a==5 and b==5 and c==7):
    print("YES")
elif(a==7 and b==5 and c==5):
    print("YES")
else:
    print("NO")
Problem p02657 (python)

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

Buggy submission (verdict: Runtime Error):
a = map(int, input().split())
b = map(int, input().split())
c = a*b
print(c)
Problem p02675 (python)

Fixed submission:
N = int(input())
a = N % 10
if a == 2 or a == 4 or a == 5 or a == 7 or a == 9 :
  print ("hon")
elif a == 0 or a == 1 or a == 6 or a == 8 :
  print ("pon")
else :
  print ("bon")

Buggy submission (verdict: Runtime Error):
N = map(int, input().split())
if N%10 == 2 or N%10 == 4 or N%2== 5 or N%10 == 7 or N%10 == 9:
  print("hon")
elif N%10 == 0 or N%10 == 1 or N%10 == 6 or N%10 == 8:
  print("pon")
elif N%10 == 3:
  print("bon")

Buggy submission (verdict: Runtime Error):
N = map(int, input())
if N%10 == 2 or N%10 == 4 or N%2== 5 or N%10 == 7 or N%10 == 9:
  print("hon")
elif N%10 == 0 or N%10 == 1 or N%10 == 6 or N%10 == 8:
  print("pon")
elif N%10 == 3:
  print("bon")
Problem p02957 (python)

Fixed submission:
A,B = map(int, input().split())
if (A + B) % 2 == 0 :
  print ((A + B) // 2)
else :
  print ("IMPOSSIBLE")

Buggy submission (verdict: Runtime Error):
length = int(input())
list_p = list(map(int,input().split()))
#list_p.sort()
count = 0
for i in range(length):
  if list_p[i] != (i+1):
    count += 1
 
if count <= 2 :
  print ("YES")
else :
  print ("NO")

Buggy submission (verdict: Runtime Error):
n = int(input())
p = list(map(int,input().split()))
cnt = 0
for i in range(n):
  if p[i] != (i+1):
    cnt += 1
print("YES" if cnt == 0 or cnt == 2 else "NO")
Problem p02789 (python)

Fixed submission:
n, m = map(int, input().split())
if m >= n:
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
n, m = map(int, input().split())
if m >= n:
  print("Yes")
elses:
  print("No")
Problem p02811 (python)

Fixed submission:
k, x = map(int, input().split())
if k*500 >= x:
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
n = int(input())
s = list(input())
count = 0
if n % 3 != 0 and n >= 3:
  for i in range (1,n):  
    if s[i-1] == 'A' and s[i] == 'B' and s [i+1] == 'C':
      count += 1
elif n % 3 == 0 and n >= 3:
  for i in range(1, n-1):
    if s[i-1] == 'A' and s[i] == 'B' and s [i+1] == 'C':
      count += 1
if n == 2:
  print(0)
else:
  print(count)