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

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

if (a*b)%2==0:
  print('Even')
else:
  print('Odd')

Buggy submission (verdict: Runtime Error):
def ABC086(a,b):
  a=int(input())
  b=int(input())

  if (a*b)%2==0:
    print('Even')
  else:
    print('Odd')
ABC086(a,b)

Buggy submission (verdict: Runtime Error):
def ABC086(a,b):
  a=int(input())
  b=int(input())

  if (a+b)%2==0:
    print('Even')
  else:
    print('Odd')
ABC086(a,b)

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

if (a+b)%2==0:
  print('Even')
else:
  print('Odd')
Problem p03455 (python)

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

if (a*b) % 2 == 1:
    print("Odd")

else:
    print("Even")

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

c = a*b

if c % 2 == 1:
    print(Odd)

else:
    print(Even)

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

c = a*b

if c % 2 == 1:
    print(Odd)

else 
    print(Even)
Problem p03455 (python)

Fixed submission:
x,y=map(int,input().split())
if x%2==0:
  print("Even")
elif y%2==1:
  print("Odd")
else:
  print("Even")

Buggy submission (verdict: Runtime Error):
x,y=map(iny,input().split())
if x%2==0:
  print("even")
  break
	elif y%2==1
  		print("odd")
    	break()
	else print("even")
    	 break()
Problem p03455 (python)

Fixed submission:
a, b = map(int, input().split())
print("Even" if a*b % 2 == 0 else "Odd")

Buggy submission (verdict: Runtime Error):
a,b=map(int,imput().split())
print("Even" if a*b==0 else "Odd")
Problem p03455 (python)

Fixed submission:
a,b = map(int, input().split())
 
if a*b % 2 == 0:
	print("Even")
else:
	print("Odd")

Buggy submission (verdict: Runtime Error):
a,b = int(input())
 
if a*b % 2 == 0:
	print("Even")
else:
	print("odd")

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

if a*b %% 2 == 0:
  print("Even")
else:
    print("odd")
Problem p03455 (python)

Fixed submission:
a, b = map(int, input().split())
num=a*b
if num%2==0:
    print("Even")
else:
    print("Odd")

Buggy submission (verdict: Runtime Error):
a, b = map(int, input().split())
num=a*b
if num%2==0:
    print("Even")
else:
    print("Odd")
Problem p03455 (python)

Fixed submission:
list_a_b = input().split()
list_a_b = [int(ll) for ll in list_a_b]
dd = list_a_b[0]*list_a_b[1]
if dd %2 ==0:
  print('Even')
else:
  print('Odd')

Buggy submission (verdict: Runtime Error):
list_a_b = input().split()
list_a_b = [int(ll) for ll in list_a_b]
dd = list_a_b[0]*list_a_b[1]
if dd %2 ==0:
  return 'Even'
else:
  return 'Odd'
Problem p03479 (python)

Fixed submission:
x,y=map(int,input().split())

cnt = 0

while x <= y:
    x *= 2
    cnt += 1

print (cnt)

Buggy submission (verdict: Runtime Error):
import math

x = input()
y = input()


cnt = 0

while x <= y:
    x *= 2
    cnt += 1

print (cnt)

Buggy submission (verdict: Runtime Error):
x = input()
y = input()

cnt = 0

while x <= y:
    x *= 2
    cnt += 1

print (cnt)

Buggy submission (verdict: Runtime Error):
x = input()
y = input()


cnt = 0

while x <= y:
    x *= 2
    cnt += 1

print (cnt)
Problem p03493 (python)

Fixed submission:
s = input()

cnt = 0;

for temp in s:
    if temp == "1":
        cnt += 1
print (cnt)

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

cnt = 0;

for temp in s:
    if temp == "1":
        cnt += 1
    print(cnt)
Problem p03457 (python)

Fixed submission:
n = int(input())
t, x, y = 0, 0, 0
t1, x1, y1 = 0, 0, 0
p = False
for i in range(n):
	t, x, y = t1, x1, y1
	t1, x1, y1 = map(int, input().split())
	s = t1 - t
	d = x1 + y1 - x - y
	p = x >= 0 and y >= 0 and (abs(s) >= abs(d)) and ((s - d) % 2 == 0)
	# print("{},{}".format(s, d))
	if p == False:
		break
print("Yes" if p else "No")

Buggy submission (verdict: Runtime Error):
n = int(input())
t, x, y = map(int, input().split())
t1, x1, y1 = map(int, input().split())
s = t1 - t
d = x1 + y1 - x - y
p = (s > d) and (s - d) % 2 == 0
print("Yes" if p else "No")
Problem p03455 (python)

Fixed submission:
a, b = map(int, input().split())
print("Odd" if a * b % 2 else "Even")

Buggy submission (verdict: Runtime Error):
a, b = map(int, input(),split())
c = str(a) + str(b)
d = int(c)
if d ** 0.5 % 1 ==0 :
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
import math
import numpy

a, b = map(int, input(),split())
c = str(a) + str(b)
d = int(c)
if math.sqrt(d)**0.5 % 1 ==0 :
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
  a, b = map(int, input().split())
  if a*b % 2 == 0 :
    print("Even")
  else:
    print("Odd")

Buggy submission (verdict: Runtime Error):
  a, b = map(int, input().split())
  if a*b % 2 == 0:
    print("Even")
  else:
    print("Odd")

Buggy submission (verdict: Runtime Error):
  a, b = map(int, input().split())
  if a*b % 2 == 0:
    print("Even")
  else:
    print("Odd")

Buggy submission (verdict: Runtime Error):
  a,b = map(int, input().split())
  
  if a*b % 2 == 0:
    print("Even")
  else:
    print("Odd")

Buggy submission (verdict: Runtime Error):
  a,b = map(int, input().split)
  
  if a*b % 2 == 0:
    print("Even")
  else:
    print("Odd")

Buggy submission (verdict: Runtime Error):
  a = int(input())
  b = int(input())
  
  if a*b % 2 == 0:
    print("Even")
  else:
    print("Odd")

Buggy submission (verdict: Runtime Error):
  int a = input()
  int b = input()
  
  if a*b % 2 == 0:
    print("Even")
  else:
    print("Odd")

Buggy submission (verdict: Runtime Error):
  int a = input()
  int b = input()
  
  if a * b % 2 == 0:
    print("Even")
  else:
  	print("Odd")

Buggy submission (verdict: Runtime Error):
  int a = input()
  int b = input()
  
  if a * b % 2 = 0
  	print("Even")
  else
  	print("Odd")
Problem p03493 (python)

Fixed submission:
print(input().count("1"))

Buggy submission (verdict: Runtime Error):
print(input().count(1))

Buggy submission (verdict: Runtime Error):
print(input(),.count(1))
Problem p03455 (python)

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

if (a*b%2==0):
    print('Even')

else:
    print('Odd')

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

if (ab%2==0):
    print('Even')

else:
    print('Odd')

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

if ab %= 0:
    print('Even')

else:
    print('Odd')
Problem p03493 (python)

Fixed submission:
num=input()
a=0
 
if int(num[0])==1:
  a+=1
  
if int(num[1])==1:
  a+=1
  
if int(num[2])==1:
  a+=1
  
print(a)

Buggy submission (verdict: Runtime Error):
num=input()
a=0

if int(num[0])==1:
  a++
  
if int(num[1])==1:
  a++
  
if int(num[2])==1:
  a++
  
print(a)

Buggy submission (verdict: Runtime Error):
str=int(input())
a=0
 
if str[0]==1:
  a++
  
if str[1]==1:
  a++
  
if str[2]==1:
  a++
  
print(a)

Buggy submission (verdict: Runtime Error):
str=input()
a=0

if str[0]==1:
  a++
  
if str[1]==1:
  a++
  
if str[2]==1:
  a++
  
print(a)

Buggy submission (verdict: Runtime Error):
s_1,s_2,s_3=map(int,input().split())
a=0

if s_1==1:
    a++

if s_2==1:
    a++

if s_3==1:
    a++

print(a)

Buggy submission (verdict: Runtime Error):
s_1,s_2,s_3=map(int,input().split())

if s_1==1:
    a++

if s_2==1:
    a++

if s_3==1:
    a++

print(a)
Problem p03636 (python)

Fixed submission:
s=input()

a=s[0]
b=s[len(s)-1]
c=len(s)-2

print(a+str(c)+b)

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

a=str[0]
b=str[len(str)-1]
c=len(str)-2

print(a+str(c)+b)

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

a=str[0]
b=str[len(str)]
c=len(str)-2

print(a+c+b)
Problem p03455 (python)

Fixed submission:
a, b = map(int, input().split())
if (a*b) % 2:
    print("Odd")
else:
    print("Even")

Buggy submission (verdict: Runtime Error):
a, b = map(int, input().split())
if (a*b) % 2:
    print("Odd")
else:
    print("Even")

Buggy submission (verdict: Runtime Error):
a, b = map(int, input().split())
if (a*b) % 2:
    print("Odd")
else:
    print("Even")

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

if (a*b) % 2:
  print('Even')

else :
   print('Odd')
Problem p03455 (python)

Fixed submission:
a,b=(int(x) for x in input().split())
ans=a*b
if ans%2==0:
    print("Even")
elif ans%2==1:
    print("Odd")

Buggy submission (verdict: Runtime Error):
a,b=(int(x) for x in input().split())
ans=a*b
if ans%2==0:
    print("Even")
elif ans%2==1:
Problem p03493 (python)

Fixed submission:
s=list(input())
s_int=[int(n) for n in s]
ans=0
for i in range(3):
    if s_int[i]==1:
        ans=ans+1
print(ans)

Buggy submission (verdict: Runtime Error):
import math
N=int(input())
a = input().split()
a_num= [int(s) for s in a]

count=0
while True:
    for i in range(len(a_num)):
        a_num[i]=math.floor(a_num[i]/2)  
    count +=1
    if a_num[i]%2 != 0:
        break
print(count-1)
Problem p03455 (python)

Fixed submission:
a,b=map(int,input().split())
 
if a*b%2==0:
    print('Even')
else:
    print('Odd')

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

if a*b%2==0:
    print('Even')
else:
    print('Odd')
Problem p03493 (python)

Fixed submission:
print(input().count('1'))

Buggy submission (verdict: Runtime Error):
N=input()
A=list(map(int,input().split()))
count=0
while all([a%2==0 for a in A]):
    A = [a/2 for a in A]
    count+=1
print(count)

Buggy submission (verdict: Runtime Error):
N=input()
A=list(map(int,input().split()))
count=0
while all([a%2==0 for a in A]):
    A = [a/2 for a in A]
    count+=1
print(count)

Buggy submission (verdict: Runtime Error):
print(input().count(1))
Problem p03493 (python)

Fixed submission:
print(input().count("1"))

Buggy submission (verdict: Runtime Error):
print(map(lambda x : x = x + 1 , input())
Problem p03456 (python)

Fixed submission:
import math
num = int(input().replace(' ', ''))

if math.sqrt(num).is_integer() == False:
  print("No")
else:
  print("Yes")

Buggy submission (verdict: Runtime Error):
import math
num = int(input().replace(' ', ''))

if math.sqrt(num).is_interger() == False:
  print("Yes")
else:
  print("No")
Problem p03494 (python)

Fixed submission:
n = int(input())
nums = [int(i) for i in input().split()]
ans = 0
while True:
    if [i for i in nums if i % 2 == 1]:
        break
    nums = [i//2 for i in nums]
    ans += 1
print(ans)

Buggy submission (verdict: Runtime Error):
N = int(input())
n_list = [int(i), for i in input().split("")]
ans = 0

while True:
  if [int(i) for n_list if i % 2 == 1]:
    break
  n_list = [i // 2 for i in n_list]
  ans += 1
print(ans)
Problem p03455 (python)

Fixed submission:
a, b = map(int, input().split())
print("Even" if a*b % 2 == 0 else "Odd")

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

def even_odd(a, b):
	if (a*b)%2 == 0:
		print("Even")
	else:
		print("Odd")

even_odd(a,b)
Problem p03493 (python)

Fixed submission:
a = input()
a = list(str(a))
count = 0
if a[0] == "1":
  count += 1
if a[1] == "1":
  count += 1
if a[2] == "1":
  count += 1
print(count)

Buggy submission (verdict: Runtime Error):
a, b, c = map(int, input().split())
count = 0
if a == 1:
  count += 1
if b == 1:
  count += 1
if c == 1:
  count += 1
print(count)
Problem p03455 (python)

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

if(a*b %2 == 0):
    print("Even")
else:
    print("Odd")

Buggy submission (verdict: Runtime Error):
a = int(input())
b = int(input())
if(a*b %2 == 1):
    print("Odd")
else:
    print("Even")
Problem p03455 (python)

Fixed submission:
a,b=map(int, input().split())
c=a*b%2
if c==0:
  print("Even")

else :
  print("Odd")

Buggy submission (verdict: Runtime Error):
N=int(input())
tl=[]
xl=[]
yl=[]
al=[]
bl=[]
cl=[]
dl=[]

for i in range(N):
 t,x,y=map(int,input().split())
 tl.append(t)
 xl.append(x)
 yl.append(y)
 al.append((x+y)%2)
 bl.append(t%2)

for i in range(N):
 c=abs((xl[i]+yl[i])-(xl[i-1]+yl[i-1]))
 d=abs(tl[i]-tl[i-1])
 cl.append(c)
 dl.append(d)

count=0
for i in range(N):
 if al[i]==bl[i] and (xl[i]+yl[i])<=tl[i] and cl[i]<=dl[i]:
  count+=1
if count==N:
  print("Yes")
else :
  print("No")

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

for i in range(N):
 t,x,y=list(map(int,input().split()))
 a=[(x+y)%2]
 b=[t%2]

if a==b and (x+y)<=t:
  print("Yes")
else :
  print("No")

Buggy submission (verdict: Runtime Error):
a,b=map(int,input().split());
c=a*b;
if(c%2==0)print(Even);
else print(Odd);

Buggy submission (verdict: Runtime Error):
a,b=map(int,input().split())
if(a*b%2==0){
  print("Even")
}
elif(a*b%2!=0){
  print("Odd") 
}
Problem p03455 (python)

Fixed submission:
a,b = map(int,input().split()) 
 
c = a*b  
if c%2 == 0 :
    print("Even")
else:
    print ("Odd")

Buggy submission (verdict: Runtime Error):
a,b = map(int,imput().split()) 
   
if a*b % 2 == 0 :
    print("Even")
else:
    print ("Odd")

Buggy submission (verdict: Runtime Error):
a,b = map(int,imput().split()) 
 
c = a*b  
if c%2 == 0 :
    print("Even")
else:
    print ("Odd")

Buggy submission (verdict: Runtime Error):
a,b = map(int,imput().split()) 
 
c = a*b  
if c % 2 == 0 :
    print("Even")
else:
    print ("Odd")

Buggy submission (verdict: Runtime Error):
a,b = (int,imput().split()) 
 
if (a*b) % 2 == 0 :
    print("Even")
else:
    print ("Odd")

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

if a*b % 2 == 0 :
    print("Even")
else:
    print ("Odd")
Problem p03455 (python)

Fixed submission:
a, b = map(int, input().split())
print("Even" if a*b % 2 == 0 else "Odd")

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

if c%2 == 0
	print("Even")
  else
  print("Odd")
Problem p03455 (python)

Fixed submission:
num_list = input().split()
if ((int(num_list[0]) * int(num_list[1])) % 2) == 0:
	print("Even")
else:
	print("Odd")

Buggy submission (verdict: Runtime Error):
num_list = input().split()
if num_list[0]*num_list[1] /= 0
	print("Even")
  else
  	print("Odd")
Problem p03455 (python)

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

# calc
if (A * B % 2 == 0):
  print("Even")
else:
  print("Odd")

Buggy submission (verdict: Runtime Error):
# input
print("input A:")
inputA = int(input())
print("input B:")
inputB = int(input())

# calc
if ((inputA*inputB)% 2 == 0):
  print("Even")
elif((inputA*inputB)% 2 == 1):
  print("Odd")
Problem p03493 (python)

Fixed submission:
print(input().count('1'))

Buggy submission (verdict: Runtime Error):
print(input().count('1')
Problem p03455 (python)

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

if (a*b) %2 == 0:
  print("Even")
else:
  print('Odd')

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

if (a*b) % 2 == 0:
  print('Even')
else:
  print('Odd')

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

if (a*b) % == 0:
  print('Even')
else:
  print('Odd')

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

if a % b == 0:
  print('Even')
else:
  print('Odd')

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

if a % b == 0:
  print('Even')
else:
  print('Odd')
Problem p03493 (python)

Fixed submission:
print(input().count("1"))

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

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

while all(a %2 == 0 for a in A):
  A = [a/2 for a in A]
  count += 1
print(count)

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

Fixed submission:
input()
A = list(map(int, input().split()))
count = 0
while all(a % 2 == 0 for a in A):
    A = [a/2 for a in A]
    count += 1
print(count)

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

count = 0

while all(a % 2 == 0 for a in A):
  A = [a / 2 for a in A]
  count += 1
print(count)
Problem p03493 (python)

Fixed submission:
s = input()
print(s.count('1'))

Buggy submission (verdict: Runtime Error):
s = input()
print(input().count('1'))
Problem p03494 (python)

Fixed submission:
n = int(input())
nums = [int(i) for i in input().split()]
ans = 0
while True:
    if [i for i in nums if i % 2 == 1]:
        break
    nums = [i//2 for i in nums]
    ans += 1
print(ans)

Buggy submission (verdict: Runtime Error):
n = int(input())
nums = [int(i) for i in input().split()]
ans = 0
while True:
  if [i for i in nums if i % 2 == 1]
  	break
  nums = [i//2 for i in nums]
  ans += 1 
print(ans)

Buggy submission (verdict: Runtime Error):
n = int(input())
nums = [int(i) for i in input().split()]
ans = 0
while True:
  if [i for i in nums if i % 2 == 1]
  	break
  nums = [i/2 for i in nums]
  ans += 1   
print(ans)

Buggy submission (verdict: Runtime Error):
n = int(input())
nums = [int(i) for i in input().split()]
ans = 0

while True:
  if [i for i in nums if i % 2 == 1]
  	break
  nums = [i/2 for i in nums]
  ans += 1 
  
print(ans)

Buggy submission (verdict: Runtime Error):
n = int(input())
nums = [int(i) for i in input().split()]
ans = 0

while True:
  if [i for i in nums if i % 2 == 1]
  	break
  nums = [i//2 for i in nums]
  ans += 1 
  
print(ans)
Problem p03455 (python)

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

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

c = a*b

if c%2 ==0:
    print("Even")
    
else:
    print("Odd")

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

c = a + b
c = int(c)

cc = math.sqrt(c)


if cc%1 == 0:
    print("Yes")
    

else:
    print("No")

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

c = a + b
c = int(c)


cc = math.sqrt(c)


if cc%1 == 0:
    print("Yes")
    

else:
    print("No")
Problem p03456 (python)

Fixed submission:
import math

a, b = input().split()

c = a + b
c = int(c)
cc = math.sqrt(c)


if cc%1 == 0:
    print("Yes")
    

else:
    print("No")

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

c = a + b
c = int(c)

cc = math.sqrt(c)


if cc%1 == 0:
    print("Yes")
    

else:
    print("No")

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

c = a + b
c = int(c)
print(c)

cc = math.sqrt(c)


if cc%1 == 0:
    print("Yes")
    

else:
    print("No")

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

c = a + b
c = int(c)
print(c)

cc = math.sqrt(c)


if cc%1 == 0:
    print("Yes")
    

else:
    print("No")
Problem p03493 (python)

Fixed submission:
s = input()

s1 = int(s[0])
s2 = int(s[1])
s3 = int(s[2])

print(str(s1+s2+s3))

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

cnt = 0
while True:
  flag = 0
  for i in range(N):
    if A[i] % 2 == 1:
      flag = 1
      break
    else:
      M[i] = M[i] / 2
  if flag == 1:
    print(cnt)
  else:
    cnt += 1

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

s1 = s[0].int()
s2 = s[1].int()
s3 = s[2].int()

print(str(s1+s2+s3))

Buggy submission (verdict: Runtime Error):
s1, s2, s3 = map(int, input().split())
sum = s1 + s2 + s3

print(str(sum))

Buggy submission (verdict: Runtime Error):
s1, s2, s3 = map(int,input().split())
sum = s1 + s2 + s3

print(sum)
Problem p03455 (python)

Fixed submission:
a, b = map(int, input().split())
if a*b%2 == 0:
  print("Even")
else:
  print("Odd")

Buggy submission (verdict: Runtime Error):
a = int(input())
b = int(input())
if a*b%2 == 0:
  print("Even")
else:
  print("Odd")

Buggy submission (verdict: Runtime Error):
a = int(input())
b = int(input())
if a*b/2 == 0:
  print("Even")
else:
  print("Odd")
Problem p03455 (python)

Fixed submission:
a,b=map(int,input().split())
print("Even" if a*b%2==0 else "Odd")

Buggy submission (verdict: Runtime Error):
def keisan(a,b):
  if a * b % 2 == 0:
    print("Even")
  else:
      print("Odd")

keisan(a,b)
Problem p04045 (python)

Fixed submission:
N,K=input().split()
D=input().split()
frag=0

while True:
    for s in D:
        if N.count(s)!=0:
            frag=1

        else:
            pass
    if frag==1:
        a=int(N)+1
        N=str(a)

    else:
        break

    frag=0

print(N)

Buggy submission (verdict: Runtime Error):
N,K=input().split()
D=input().split()

while True:
    for s in D:
        if N.count(s)!=0:
            frag=1

        else:
            pass
    if frag==1:
        a=int(N)+1
        N=str(a)
        frag=0

    else:
        break

print(N)

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

while True:
    for c in dis:
        if N.count(c)!=0:
            frag=1
        else:
            pass

    if frag==1:
        N=int(N)+1
        N=str(N)
        frag=0
    else:
        break

print(N)

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

while True:
    for c in dis:
        if N.count(c)!=0:
            frag=1
        else:
            pass

    if frag==1:
        N=int(N)+1
        N=str(N)
        frag=0
    else:
        break

print(N)

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

while True:
    for c in dis:
        if N.count(c)!=0:
            frag=1
        else:
            pass

    if frag==1:
        N=int(N)+1
        N=str(N)
        frag=0
    else:
        break

print(N)
Problem p03943 (python)

Fixed submission:
packs = sorted(list(map(int, input().split())))
if packs[2] - packs[1] == packs[0]:
    print("Yes")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
packs = list(map(int, input().split())).sort()
if packs[2] - packs[1] == packs[0]:
    print("Yes")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
packs = list(map(int, input().split()).sort()
if packs[2] - packs[1] == packs[0]:
    print("Yes")
else:
    print("No")
Problem p04031 (python)

Fixed submission:
def main():
  n = int(input())
  nums = list(map(int, input().split()))
  cmin = 0
  for x in nums:
    cmin += (x - min(nums)) ** 2
  for i in range(min(nums), max(nums)+1):
    c = getcost(i, nums)
    if c < cmin:
      cmin = c
  print(cmin)
  
def getcost(x, nums):
  c = 0
  for n in nums:
    c += (n - x) ** 2
  return c
  
if __name__ == '__main__':
  main()

Buggy submission (verdict: Runtime Error):
def main():
  n = int(input())
  nums = list(map(int, input()))
  cmin = 0
  for x in nums:
	cmin += (x - min(nums)) ** 2
  for i in range(min(nums), max(nums)+1):
	c = getcost(i, nums)
    if c < cmin:
      cmin = c
  print(cmin)
  
def getcost(x, nums):
  c = 0
  for n in nums:
    c += (n - x) ** 2
  return c
  
if __name__ == '__main__':
  main()
Problem p04043 (python)

Fixed submission:
words = list(map(int, input().split()))
if words.count(7) == 1 and words.count(5) == 2:
    print('YES')
else:
    print('NO')

Buggy submission (verdict: Runtime Error):
words = list(map(int, input().split())
if words.count(7) == 1 and words.count(5) == 2:
    print('YES')
else:
    print('NO')
Problem p04044 (python)

Fixed submission:
n, l = map(int, input().split())
words = []
for i in range(n):
  words.append(input())
print(''.join(sorted(words)))

Buggy submission (verdict: Runtime Error):
n, l = map(int, input().split())
words = []
for i in range(n):
  words.append(input())
print(''.join(words.sort()))
Problem p03455 (python)

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

if (input_[0] * input_[1]) % 2 is not 0:
    print('Odd')
else:
    print('Even')

Buggy submission (verdict: Runtime Error):
import sys

args = sys.argv

if (int(args[1]) * int(args[2])) % 2 is not 0:
    print('Odd')
else:
    print('Even')
Problem p03455 (python)

Fixed submission:
a, b = map(int, input().split())
if a % 2 == 0 or b % 2 == 0:
  print("Even")
else:
  print("Odd")

Buggy submission (verdict: Runtime Error):
N = int(input())
yes = True
for _ in range(N):
  t, x, y = map(int, input().split())
  margin = t - (x + y)
  if not(margin >= 0 and margin % 2 == 0):
    yes = False
if yes:
  print("Yes")
else:
  print("No")
Problem p03493 (python)

Fixed submission:
a = input()
a = str(a)

count = 0
if a[0] == "1":
  count += 1
if a[1] == "1":
  count += 1
if a[2] == "1":
  count += 1

print(count)

Buggy submission (verdict: Runtime Error):
a = input()
a = str(a)

count = 0
if a[0] = "1":
  count += 1
if a[1] = "1":
  count += 1
if a[2] = "1":
  count += 1

print(count)

Buggy submission (verdict: Runtime Error):
a = str(input())

count = 0
if a[0] = "1":
  count += 1
if a[1] = "1":
  count += 1
if a[2] = "1":
  count += 1

print(count)