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

Fixed submission:

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

c = a*b

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

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

#[～][0] =>t [1]=>x [2]=>y
l = [list(map(int,input().split())) for i in range(n)]

judge = 'No'

#初期値
l.insert(0,[0,0,0])
for i in range(n):
    #奇数がT偶数がF
    dt = l[i+1][0]-l[i][0]
    n_j = dt%2
    xy = (l[i+1][1]+l[i+1][2])-(l[i][1]+l[i][2])
    if n_j==xy%2 and dt>=abs(xy):
        judge = 'Yes'
    else:
        judge ='No'
        break

print(judge)

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

#[～][0] =>t [1]=>x [2]=>y
l = [list(map(int,input().split())) for i in range(n)]

judge = 'No'

#初期値
l.insert(0,[0,0,0])
for i in range(n):
    #奇数がT偶数がF
    n_j = (l[i+1][0]-l[i][0])%2==1
    xy = (l[i+1][1]+l[i+1][2])-(l[i][1]+l[i][2])
    if n_j==xy%2 & n_j>=abs(xy):
        judge = 'Yes'
    else:
        judge ='No'
        break

print(judge)
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 (a*b)% == 0:
  print("Even")
  else:
    print("Odd")

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

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

a = int(i[0])
b = int(i[1])

result_a = a % 2
result_b = b % 2

if (result_a == 0 or result_b == 0 ):
    print("Even")
else :
    print("Odd")

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

int a = int(i[0])
int b = int(i[1])

int result_a = a % 2;
int result_b = b % 2;

if(result_a == 0 || result_b == 0){
    print("Even")
}else{
    print("Odd")
}

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

int a = int(i[0])
int b = int(i[0])

int result_a = a % 2;
int result_b = b % 2;

if(result_a == 0 || result_b == 0){
    print("Even")
}else{
    print("Odd")
}

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

int result_a = a % 2;
int result_b = b % 2;

if(result_a == 0 || result_b == 0){
    print("Even")
}else{
    print("Odd")
}
Problem p03455 (python)

Fixed submission:
num = input().split(" ")


sum = int(num[0]) * int(num[1])

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

Buggy submission (verdict: Runtime Error):
num1 = int(input())
num2 = int(input())

sum = num1 * num2

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

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

Buggy submission (verdict: Runtime Error):
a = input().split()
b = int(a[0] + a[1])
c = -1
for(i = 1; i < 100100; i=(i+1)*(i+1))
  if(b == i): c = b
if(c != -1) :
  print('yes')
else :
  print('no')

Buggy submission (verdict: Runtime Error):
a = input().split()
if(a[0] * a[1] % 2 == 0):
  print('Even')
else:
  print('Odd')

Buggy submission (verdict: Runtime Error):
a = input().split()
if(a[0] * a[1] % 2 == 0):
  print("Even")
else:
  print("Odd")
Problem p03456 (python)

Fixed submission:
a = input().split()
b = int(a[0] + a[1])
c = -1
i = 0
j = 0
while(j < 100100):
  if(b == j):
    c = b
  i+=1
  j = i*i
if(c != -1) :
  print('Yes')
else :
  print('No')

Buggy submission (verdict: Runtime Error):
a = input().split()
b = int(a[0] + a[1])
c = -1
for(i = 1; i < 100100; i=(i+1)*(i+1)):
  if(b == i) c = b;
if(c != -1) :
  print('yes')
else :
  print('no')

Buggy submission (verdict: Runtime Error):
a = input().split()
b = int(a[0] + a[1])
c = -1
for(i = 1; i < 100100; i=(i+1)*(i+1))
  if(b == i) c = b;
if(c != -1) :
  print('yes')
else :
  print('no')
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())

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

Buggy submission (verdict: Runtime Error):
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())

if a % b ==1:
  print("Odd")
else:
  print("Even")

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

Buggy submission (verdict: Runtime Error):
input_1, input_2 = [s for s in input().split()]

multiple = input_1 * input_2

judge = multiple % 2 

if judge ==0:
	print("Even")
elif:
	print("Odd")

Buggy submission (verdict: Runtime Error):
a
Problem p03493 (python)

Fixed submission:
s_input = str(input())
 
s_1 = s_input[0:1]
s_2 = s_input[1:2]
s_3 = s_input[2:3]
 
count = 0
 
s_list = [s_1, s_2, s_3]
 
for s in s_list:
    if s == "1":
        count = count + 1
    else:
        None
      
print(count)

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

s_1 = s_input[0:1]
s_2 = s_input[1:2]
s_3 = s_input[2:3]

count = 0

s_list = [s_1, s_2, s_3]

for s in s_list:
	if s == "1":
		count = count + 1
	elif
    	None
      
print(count)

Buggy submission (verdict: Runtime Error):
s_input = string(input()) 
s_list = [s[0], s[1], s[3]]

cnt_up = 0
for s in s_list
	if s == "1":
    	cnt_up = cnt_up +1
    else:
    	None
        
print(cnt_up)
Problem p03493 (python)

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

Buggy submission (verdict: Runtime Error):
rint(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):
def is_bool(x):
	return isinstance(x,int) and bool(1 <= x) and bool(x <= 10000)

def checker(a, b):
	if is_bool(a) and is_bool(b):
		if (a * b) % 2 == 0:
			return 'Even'
		else:
			return 'Odd'

if __name__ == '__main__':
	i = list(input().split())
	print(checker(int(i[1]), int(i[2])))

Buggy submission (verdict: Runtime Error):
def is_bool(x):
	return isinstance(x,int) and bool(1 <= x) and bool(x <= 10000)

def checker(a, b):
	if is_bool(a) and is_bool(b):
		if (a * b) % 2 == 0:
			return 'Even'
		else:
	return 'Odd'

print(checker(2, 3))

Buggy submission (verdict: Runtime Error):
def is_bool(x):
  return isinstance(x, int) and bool(1 <= x) and bool(x >= 10000)

if is_bool(a) and is_bool(b):
      if (a*b) % 2 == 0:
      	return 'Even'
      else:
        return 'Odd'

Buggy submission (verdict: Runtime Error):
def is_bool(x):
  return isinstance(x, int) and bool(1 <= x) and bool(x >= 10000)

if is_bool(a) and is_bool(b):
      if num % 2 == 0:
      	return 'Even'
      else:
        return 'Odd'
Problem p03455 (python)

Fixed submission:
import sys
 
num = list(map(int, input().split()))

ans = num[0] * num[1]
 
if ans % 2 == 0:
    print("Even")
else:
    print("Odd")

Buggy submission (verdict: Runtime Error):
import sys

num = list(map(int, input().split()))
print(num)

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

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

Buggy submission (verdict: Runtime Error):
num = input().split(" ")
if num[0]*num[1] % 2 == 0:
  print("Even")
else:
  print("Odd")
Problem p03493 (python)

Fixed submission:
ls=input()
i=0
for x in ls:
    if x=='1':
        i+=1

print(i)

Buggy submission (verdict: Runtime Error):
n=input()
mx=0
for a in map(int,input().split()):
    i=0
    if a%2!=0: break
    while a%2==0:
        i+=1
        mx=i
        a/=2
    if mx<i:
        mx=i

print(mx)
Problem p03455 (python)

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

if a >=1 and a <=10000 and b >=1 and b <=10000:
  if (a*b)%2==0:
    print("Even")
  else:
    print("Odd")

Buggy submission (verdict: Runtime Error):
a=input()
b=input()
if (int(a)*int(b))%2==0:
  print("even")
else:
  print("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):
n = map(int,input().split())
if n[0]*n[1]//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 =input(int, input().split())
if(a*b)%2:
  print("Odd")
 else:
  pirnt("Even")

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

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

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

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 = input(int())
c = a*b
if c % 2 == 0:
  print("Even")
else:
  print("Odd)

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

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

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

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

Buggy submission (verdict: Runtime Error):
s1, s2, s3 = input().split()
a = str(s1)
b = str(s2)
c = str(s3)
count = 0
for i in (a, b, c):
  if a = 1:
    count += 1
  if b = 1:
    count += 1
  if c = 1:
    count += 1
Problem p03456 (python)

Fixed submission:
import math

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

Buggy submission (verdict: Runtime Error):
import math

a, b = map(str, input().split())
c = a + b
d = math.sqrt(int(c))
if isinstance(i, int):
  print("Yes")
else:
  print("No")
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 = input(a)
b = input(b)
s = a * b
if s % 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())
if (a+b)%2==1:
  return 'Odd'
else:
  return 'Even'

Buggy submission (verdict: Runtime Error):
a,b=map(int,input().split())
if (a+b)%2==1:
  return Odd
else:
  return Even

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

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

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

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

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

if (a+b)%2 == 0:
    print(a+b)
    print('Even')
else:
    print(a+b)
    print('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 = map(int, input(). split())
if a*b % == 0 :
  print("Even")
else:
  print('Odd')

Buggy submission (verdict: Runtime Error):

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

Buggy submission (verdict: Runtime Error):
a*b = c
if c / 2 == 0:
  print('Even')
else:
  print('Odd')

Buggy submission (verdict: Runtime Error):
a*b = c
if c / 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())
c = (a*b)%2
if c == 0:
	print("Even")
else:
	print("Odd")

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

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

if n * a <= b:
    print(n * a)
else:
    print(b)

Buggy submission (verdict: Runtime Error):
n = input()
print('Yes') if int(n) % sum(map(int, n)) == 0 else print('No')
Problem p03502 (python)

Fixed submission:
n = input()
print('Yes') if int(n) % sum(map(int, n)) == 0 else print('No')

Buggy submission (verdict: Runtime Error):
n = input()
print('Yes') if n % sum(map(int, n)) == 0 else print('No')
Problem p03455 (python)

Fixed submission:
def is_even(num):
  return num % 2==0
 
a=list(map(int,input().split()))
if is_even(a[0])==True:
    print('Even')
    pass
elif is_even(a[1])==True:
    print('Even')
    pass
else:
    print('Odd')

Buggy submission (verdict: Runtime Error):
def is_even(num):
  return num % 2==0

a=list(map(int,input().split()))
if is_even(a[0])==True:
	print('Even')
    pass
elif is_even(a[1])==True:
  print('Even')
  pass
else:
  print('Odd')
Problem p03493 (python)

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

Buggy submission (verdict: Runtime Error):
a=int(input())
b=list(map(int,input().split()))
c=0
od=0
while od==0:
    for i in range(a):
        if b[i]%2 == 1:
            od=1
    if od==1:
        break
    for i in range(a):
        b[i]/=2
    c+=1
print(c)
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 p03455 (python)

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

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

Buggy submission (verdict: Runtime Error):
a,b = map(int, input(), split())
if a%2 == 1:
  print("Odd")
else print ("Even")
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 (a*b)%2==0:
	return("Even")
return("Odd")

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

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

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

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

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

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

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

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

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

Buggy submission (verdict: Runtime Error):
a,b = map(int,input().split())
if a*b%2 ==0:
	return("Even")
return("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):
int a,b;
int i = a*b;

for i in range(1,101):
   switch(i % 2)
    case 0:
      print("Even");
      break;
    case 1:
      print("Odd");
      break;
Problem p03493 (python)

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

Buggy submission (verdict: Runtime Error):
string s;
s = input();
i = s.find("1")
print(i)
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, b = map(int, input().split)
if a*b%2 == 1:
  return 'Odd'
else:
  return 'Even'
Problem p03493 (python)

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

Buggy submission (verdict: Runtime Error):
s = list(input())
print(s.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 a*b%2==0:
  print("Even")
elif:
  print("Odd")

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

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

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

Buggy submission (verdict: Runtime Error):
s=input()
s[1]=a
s[2]=b
c = a*b
if c%2 == 0:
    print("Even")
else:
    print("Odd")

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

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

Fixed submission:
from sys import stdin
a=stdin.readline().rstrip()
x=a.count("1")
print(x)

Buggy submission (verdict: Runtime Error):
from sys import stdin
a=stdin.readline().rstrip())
x=a.count("1")
print("x")

Buggy submission (verdict: Runtime Error):
a=stdin.readline().rstrip())

x=a.count("1")
print("x")

Buggy submission (verdict: Runtime Error):
a=int(stdin.readline().rstrip())

x=str(a).count("1")
print(x)

Buggy submission (verdict: Runtime Error):
a=stdin.readline().rstrip()
x=a.count("1")
print(x)

Buggy submission (verdict: Runtime Error):
a=stdin.readline().rstrip()
s=str(a)
x=s.count("1")
print(x)

Buggy submission (verdict: Runtime Error):
a=stdin.readline()
s=str(a)
x=s.count("1")
print(x)

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

Fixed submission:
s=input()
a = list(map(int,input().split()))
x=len(a)
f=0
for k in range(1000000000):
    f=f+1
    for i in range(x):
        if a[i]%2 == 1:
            break
        a[i]=0.5*a[i]
    else:
        continue
    break
print(f-1)

Buggy submission (verdict: Runtime Error):
s=input()
a = list(map(int,input().split()))
x=len(a)
f=0
for k in range 1000000000:
    f=f+1
    for i in range x:
        a[i]=0.5*a[i]
        if a[i]%2=1:
            break
    else:
        continue
    break
h=f-1
print("h")

Buggy submission (verdict: Runtime Error):

a = list(map(int,input().split()))
x=len(a)
i=0
for k in range 1000000000:
    i=i+1
    for i in range x:
        a[i]=0.5*a[i]
        if a[i]%2=1:
            break
    else:
        continue
    break
h=i-1
print("h")

Buggy submission (verdict: Runtime Error):
s=input()
a = list(map(int,input().split()))
x=len(a)
i=0
for k in range 1000000000:
    i=i+1
    for i in range x:
        a[i]=0.5*a[i]
        if a[i]%2=1:
            break
    else:
        continue
    break
h=i-1
print(h)

Buggy submission (verdict: Runtime Error):
s=input()
a = list(map(int,input().split()))
x=len(a)
i=0
for k in range 1000000000:
    i=i+1
    for i in range x:
        a[i]=0.5*a[i]
        if a[i]%2=1:
            break
    else:
        continue
    break
h=i-1
print("h")
Problem p03493 (python)

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

Buggy submission (verdict: Runtime Error):
a =input()    
print(str(a.count('1'))

Buggy submission (verdict: Runtime Error):
a, b, c =(int(x) for x in input().split())
print(str(a+b+c))

Buggy submission (verdict: Runtime Error):
a, b, c =(int(x) for x in input().split())
count = 0
if a == 1:
  count++
if b == 1:
  count++
if c == 1:
  count++

print(str(count))

Buggy submission (verdict: Runtime Error):
a, b, c =(int(x) for x in input().split())
count = 0
if a == 1:
  count++
if b == 1:
  count++
if c == 1:
  count++

print(str(count))
Problem p03493 (python)

Fixed submission:
# 分割されていない文字列をどうやって分けるか
a = list(input())#　これで一文字ずつになる
cnt = 0
for i in a:
        if i == "1":
                cnt +=1          
print(cnt)

Buggy submission (verdict: Runtime Error):
# 分割されていない文字列をどうやって分けるか
a = [*input()] #　これで一文字ずつになる
cnt = 0
if a[0] == "1":
        cnt +=1          
if a[1] == "1":
        cnt +=1          
if a[2] == "1":
        cnt +=1          

print(cnt)

Buggy submission (verdict: Runtime Error):
# 分割されていない文字列をどうやって分けるか
a = [*input()] #　これで一文字ずつになる
cnt = 0
for i in a:
        if i == "1":
                cnt +=1          
print(cnt)
Problem p03494 (python)

Fixed submission:
def a(n):
    ans = 0
    while n%2==0:
        n = n/2
        ans += 1
    
    return ans

num = int(input())

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

ans = min(map(a,nums))

print(ans)

Buggy submission (verdict: Runtime Error):
firstNum = int(input())
numList = list(map(int, input().split())):
flag = 0
count = 0

while flag==0:
    for i in range(firstNum):
        if numList[i]%2 != 0:
            flag = 1

    if flag == 1:
        break
    
    if flag == 0:
        for j in range(firstNum):
            numList[j] = numList[j]/2
    
    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, b = map(int, input().split())
if (a*b) % 2 == 0:
    print('Even')
else:
    print('Odd')
1 2
Problem p03844 (python)

Fixed submission:
a, b, c = map(str, input().split())
if b == '+':
  print(int(a) + int(c))
elif b =='-':
  print(int(a) - int(c))
else:
  print("Error")

Buggy submission (verdict: Runtime Error):
a, b, c = map(str, input().split())
if b == '+':
  print(int(a) + int(b))
elif b =='-':
  print(int(a) - int(b))
else:
  print("Error")

Buggy submission (verdict: Runtime Error):
a, b, c = map(str, input().split())
if b == '+':
  print(int(a) + int(b))
else if b =='-':
  print(int(a) - int(b))
else:
  print("Error")
Problem p03493 (python)

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

Buggy submission (verdict: Runtime Error):
import math
N = int(input())
a = list(map(int, input().split()))
number = 0
sign = True
while sign:
  for i in range(N):
    if a[i] % 2 != 0:
      sign = False
      print(number)
      break
    else:
      a[i] /= 2
  number += 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):
def method()
	if a*b%2==0:
    	return 'Even'
    else:
      	return 'Odd'

Buggy submission (verdict: Runtime Error):
if a*b%2==0:
  return 'Even'
else:
  return 'Odd'
Problem p03493 (python)

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

Buggy submission (verdict: Runtime Error):
s = map(input().split())
print(sum(s))
Problem p03455 (python)

Fixed submission:
a,b=list(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())

c = a * b

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

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


number, length = map(int, input().split())
lst = []
for n in range(number):
    s = input()
    #print(s)
    lst.append(s)
    #print(lst)

lst.sort()
moji = ""
for n in lst:
    moji += n
print(moji)

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

number, length = map(int, input())
lst = []
for n in range(number):
    input = input()
    lst.append(input)

lst.sort()
moji = ""
for n in lst:
    moji += n
print(moji)