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

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

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

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

    if (a*b) & 1:
        print('Odd')
    else :
        print('Even')
Problem p03737 (python)

Fixed submission:
S = [i.upper() for i in input().split()]

TLA = ''
for i  in S:
    s = list(i)
    TLA += s[0]

print(TLA)

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

total = 0
fugo = 0
count = 0

for i in a:
    total += i

    if(fugo == 0):
        total = i
        if(total > 0):
            fugo = 1
        else:
            fugo = -1
        continue
    elif(fugo > 0):
        fugo = -1
        if(total >= 0):
            while(total>=0):
                count += 1
                total -= 1
    elif(fugo < 0):
        fugo = 1
        if(total <= 0):
            while(total<=0):
                count += 1
                total += 1

print(count)
Problem p03760 (python)

Fixed submission:
O = [i for i in input()]
E = [i for i in input()]
psw = ''

for i in range(len(E)):
    psw += O[i] + E[i]

if len(O) > len(E):
    psw += O[-1]


print(psw)

Buggy submission (verdict: Runtime Error):
O = [i for i in input()]
E = [i for i in input()]
psw = ''

for i in range(len(E)):
    psw += O[i] + E[i]

if len(O) > len(E):
    psw += O[-1]


print(psw）
Problem p03427 (python)

Fixed submission:
import sys

if __name__ == '__main__':
    # n = 100
    # n = 9995
    # n = 3141592653589793
    n = input()

    ary = list(map(int, list(str(n))))

    # ひと桁のときの対応
    if len(ary) == 1:
       print(sum(ary))
       sys.exit()

    # ふた桁のときの対応
    if len(ary) == 2:
        if sum(ary) <= 9:
            print(9)
            sys.exit()
        else:
            print(sum(ary))
            sys.exit()

    # すでに9が並んでたら上位を減らさない
    if ary[1:-1].count(9) != len(ary[1:-1]):
        ary[0] = ary[0] - 1
        ary[-2] = 9
        ary[-1] = 9

    # 真ん中はすべて9にする
    ary[1:-1] = [9 for i in range(0, len(ary[1:-1]))]

    # 下位が99 or 98でなかったら下位を89にする
    if sum(ary[-2:]) < 18:
        ary[-2] = 8
        ary[-1] = 9

    # print(ary)
    print(sum(ary))

Buggy submission (verdict: Runtime Error):
if __name__ == '__main__':
    # n = 100
    # n = 9995
    # n = 3141592653589793
    n = input()

    ary = list(map(int, list(str(n))))

    # x..xxの全探索
    m = -1
    middle = [9 for i in range(0, len(ary[1:-2]))] # 数列の真ん中
    for i in range(0, 10):
        for j in range(0, 10):
            for k in range(0, 10):
                if m < sum([i] + middle + [j, k]) and int(''.join(map(str, [i] + middle + [j, k]))) <= n:
                    m = sum([i] + middle + [j, k])
    print(m)
Problem p03852 (python)

Fixed submission:
n = input()

def slv():
    a = ['a', 'e', 'i', 'o', 'u']

    for i in a:
        if i == n:
            print('vowel')
            return
    print('consonant')

slv()

Buggy submission (verdict: Runtime Error):
n = input()
                                                                                                            def slv():
    a = ['a', 'e', 'i', 'o', 'u']
                                                                                                                for i in a:
        if i == n:
            print('vowel')
            return
    print('consonant')
                                                                                                            slv()
Problem p04012 (python)

Fixed submission:
from collections import Counter

w = input()
flag = 0

counter = Counter(w)

for word, cnt in counter.most_common():
    if cnt % 2 != 0:
        flag = 1

if flag == 0:
    print("Yes")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
flag = 0

counter = Counter(w)

for word, cnt in counter.most_common():
    if cnt % 2 != 0:
        flag = 1
        print("NO")

if flag == 0:
    print("YES")
Problem p04031 (python)

Fixed submission:
from functools import reduce

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

end = max(a)
ansAry = []

b = min(a)
while(True):
    suma = []
    for i in range(0,len(a)):
        if b == a[i]:
            pass
        else:
            suma.append((a[i] - b)*(a[i] - b))

    try:
        ansAry.append(reduce(lambda x,y:x+y,suma))
    except:pass

    if b == end:
        break
    b += 1

if len(ansAry) > 0:
    print(min(ansAry))
else:
    print(0)

Buggy submission (verdict: Runtime Error):
from functools import reduce

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

end = max(a)
ansAry = []

b = min(a)
while(True):
    suma = []
    for i in range(0,len(a)):
        if b == a[i]:
            pass
        else:
            suma.append((a[i] - b)*(a[i] - b))
    ansAry.append(reduce(lambda x,y:x+y,suma))
    b += 1
    if b == end:
        break

print(min(ansAry))
Problem p03919 (python)

Fixed submission:
h,w=map(int,input().split())
for i in range(h):
  s=list(input().split())
  for j in range(w):
    if s[j]=='snuke':
      print(chr(65+j)+str(i+1))

Buggy submission (verdict: Runtime Error):
h,w=map(int,input())
for i in range(h):
  s=list(input().split())
  for j in range(w):
    if s[j]=='snuke':
      print(chr(65+j)+str(i+1))

Buggy submission (verdict: Runtime Error):
h,w=map(int,input())
for i in range(h):
  s=list(input().split())
  for j in range(w):
    if s[j]=='snuke':
      print(chr(97+j)+str(i+1))

Buggy submission (verdict: Runtime Error):
n,m=map(int,input())
for i in range(h):
  s=list(input().split())
  for j in range(w):
    if s[j]=='snuke':
      print(chr(97+j)+str(i+1))
Problem p03433 (python)

Fixed submission:
n = int(input())
a = int(input())
if n%500<=a:
    print("Yes")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
n = int(input())
a = int(input())
if n%500<=a:
    plint("Yes")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
n = int(input())
a = int(input())
if n%500<= a:
    plint("Yes")
else:

Buggy submission (verdict: Runtime Error):
n = int(input())
a = int(input())
if n%500<= a:
    plint('Yes')
else:
    print('No')

Buggy submission (verdict: Runtime Error):
n = (int(input()))
a = (int(input()))
if n%500<= a:
    plint('Yes')
else:
    print('No')
Problem p03473 (python)

Fixed submission:
a = input()
b = 24 - int(a)
c = 24 + b  
print(c)

Buggy submission (verdict: Runtime Error):
a = input()
b = 24 - a
c = 24 + b  
print(c)
Problem p03597 (python)

Fixed submission:
m = int(input())
n = int(input())
m = m*m
print(m - n)

Buggy submission (verdict: Runtime Error):
a,b = [int(input().split()) for i in range(2)]
c = ( a * a )
print( c - a )

Buggy submission (verdict: Runtime Error):
a,b = [int(input().split()) for i in range(2)]
c = ( a * a )
d = (c - a)
print(d)
Problem p03609 (python)

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

Buggy submission (verdict: Runtime Error):
a,b = ((x) for x in input().split())
int(c) = int(a) - int(b)
if c > '0':
    print ( c )
else:
    print('0')

Buggy submission (verdict: Runtime Error):
a,b = ((x) for x in input().split(" "))
int(c) = int(a) - int(b)
if c > '0':
    print ( c )
else:
    print('0')

Buggy submission (verdict: Runtime Error):
a,b = ((x) for x in input().split(" "))
int(c) = int(a) - int(b)
if c > 0:
    print ( c )
else:
    print('0')

Buggy submission (verdict: Runtime Error):
a,b = ((x) for x in input().split(" "))
c = a - b
if c > 0:
    print ( c )
else:
    print('0')

Buggy submission (verdict: Runtime Error):
a,b = ((x) for x in input().split(" "))
c = (a - b)
if c > 0:
    print (c)
else:
    print('0')

Buggy submission (verdict: Runtime Error):
a,b = (int(x) for x in input().split(" "))
int(c) = (int(a) - int(b))
if c > 0:
    print int(c)
else:
    print('0')

Buggy submission (verdict: Runtime Error):
a,b = (int(x) for x in input().split(" "))
int(c) = (int(a) - int(b))
if c > ('-1'):
    print int(c)
elif int(c) < ('0'):
    print('0')

Buggy submission (verdict: Runtime Error):
a,b = (int(x) for x in input().split(" "))
int(c) = (int(a) - int(b))
if c > ('-1'):
    print int(c)
elif int(c) < ('-1'):
    print('0')

Buggy submission (verdict: Runtime Error):
a,b = (int(x) for x in input().split(" "))
int(c) = (int(a - b))
if c > ('-1'):
    print int(c)
elif int(c) < ('-1'):
    print('0')

Buggy submission (verdict: Runtime Error):
a,b = (int(x) for x in input().split())
int(c) = (int(a - b))
if c > ('-1'):
    print int(c)
elif int(c) < ('-1'):
    print('0')

Buggy submission (verdict: Runtime Error):
a,b = (int(x) for x in input().split())
c = (a - b)
if c > ('-1'):
    print(c)
elif c < ('-1'):
    print('0')
Problem p03623 (python)

Fixed submission:
x, a, b = (int(x) for x in input().split())
if abs(a-x) < abs(b-x):
    print("A")
else:
    print("B")

Buggy submission (verdict: Runtime Error):
a,b,c=(int(x) for x in input().split())
if a < b < c:
    print( 'A' )
elif a < c < b:
    print( 'A' )
elif b < a < c:
    print( 'B' )
elif b < c < a:
    print( 'B' )
elif c < a < b:
    print( 'C' )
elif c < b < a

Buggy submission (verdict: Runtime Error):
a,b,c=(int(x) for x in input().split())
if a < b < c:
    print( 'A' )
elif a < c < b:
    print( 'A' )
elif b < a < c:
    print( 'B' )
elif b < c < a:
    print( 'B' )
elif c < a < b:
    print( 'C' )
elif c < b < a
Problem p03657 (python)

Fixed submission:
a,b=(int(x) for x in input().split())
c = ( a + b ) % 3
if ((int(a) % 3)  == 0 or  (int(b) % 3)  == 0 or int(c) == 0):
    print ( 'Possible' )
else:
    print ( 'Impossible' )

Buggy submission (verdict: Runtime Error):
a,b=(int(x) for x in input().split())
c = ( a + b ) % 3
if (str(a) % '3' == '0' or str(b) % '3' == '0' or (c) == '0'):
    print ( 'Possible' )
else:
    print ( 'Impossible' )

Buggy submission (verdict: Runtime Error):
a,b=(int(x) for x in input().split())
c = ( a + b ) % 3
if (a % '3' == '0' or str(b) % '3' == '0' or (c) == '0'):
    print ( 'Possible' )
else:
    print ( 'Impossible' )

Buggy submission (verdict: Runtime Error):
a,b=(int(x) for x in input().split())
c = ( a + b ) % 3
if (c == '0'):
    print (Possible)
else:
    print(Impossible)
Problem p03844 (python)

Fixed submission:
print(eval(input()))

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

Buggy submission (verdict: Runtime Error):
print(eval(input())
Problem p03852 (python)

Fixed submission:
s=input()
if s == "a" or s == "i" or s == "u" or s =="e" or s == "o":
    print("vowel")
else:
    print("consonant")

Buggy submission (verdict: Runtime Error):
text = str(input())
if text ==  a 
    print(vowel)
elif text ==  i
    print(vowel)
elif text ==  u 
    print(vowel)
elif text ==  e :
    print(vowel)
elif text == o ::
    print=(vowel)
else:
    print=(consonant)

Buggy submission (verdict: Runtime Error):
text = input()
if text ==  'a'
    print(vowel)
elif text ==  i 
    print(vowel)
elif text ==  u 
    print(vowel)
elif text ==  e 
    print(vowel)
elif text == o 
    print=(vowel)
else:
    print=(consonant)

Buggy submission (verdict: Runtime Error):
text = input()
if (text ==  a )
    print('vowel')
elif (text ==  i )
    print('vowel')
elif (text ==  u )
    print('vowel')
elif (text ==  e )
    print('vowel')
elif (text == o )
    print=('vowel')
else:
    print=('consonant')

Buggy submission (verdict: Runtime Error):
text = input()
if (text == 'a')
    print('vowel')
elif (text == 'i')
    print('vowel')
elif (text == 'u')
    print('vowel')
elif (text == 'e')
    print('vowel')
elif (text == 'o')
    print('vowel')
else:
    print('consonant')
Problem p04011 (python)

Fixed submission:
n, k, x, y = [int(input()) for i in range(4)]
if n > k:
    syogaku = k * x
    sagaku = (n - k) * y
    print(syogaku + sagaku)
else:
    syogaku = n * x
    print(syogaku)

Buggy submission (verdict: Runtime Error):
ab, bc, ca = map(int, input().rstrip().split())
print(ab*bc//2)

Buggy submission (verdict: Runtime Error):
ab, bc, ca = map(int, input().rstrip().split())
print(ab*bc//2)
Problem p03435 (python)

Fixed submission:
y1_list = list(map(int,input().split()))
y2_list = list(map(int,input().split()))
y3_list = list(map(int,input().split()))
L = [y1_list,y2_list,y3_list]
 
a1 = list()
a2 = list()
b1 = list()
b2 = list()
 
for i in range(3):
    a1.append(y1_list[i] - y2_list[i])
    a2.append(y2_list[i] - y3_list[i])
    b1.append(L[i][0] - L[i][1])
    b2.append(L[i][1] - L[i][2])
 
 
if (a1[0] == a1[1] and a1[2] == a1[0])and(b1[0] == b1[1] and b1[2] == b1[0]):
    if (a2[0] == a2[1] and a2[2] == a2[0])and(b2[0] == b2[1] and b2[2] == b2[0]):
        print("Yes")
        
    else:
        print("No")
else:
    print("No")

Buggy submission (verdict: Runtime Error):

ソースコード 

Copy
Copy
y1_list = list(map(int,input().split()))
y2_list = list(map(int,input().split()))
y3_list = list(map(int,input().split()))
 
a1 = list()
a2 = list()
a3 = list()
for i in range(3):
    a1.append(y1_list[i] - y2_list[i])
    a2.append(y2_list[i] - y3_list[i])
    
if a1[0] == a1[1] and a1[2] == a1[0]:
    if a2[0] == a1[1] and a2[2] == a1[0]:
        print("Yes")
        
    else:
        print("No")
else:
    print("No")
Problem p03455 (python)

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

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

Buggy submission (verdict: Runtime Error):
x , y = map(int(input().split()))

if (x * y )%2 == 0:
  print("Even")
  else:
    print("Odd")
Problem p03693 (python)

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

a = r * 100 + g * 10 + b
if a % 4 == 0:
  print("YES")
else:
  print("NO")

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

a = r * 100 + g * 10 + b
if a % 4 == 0:
  print("YES")
else:
  print("NO")

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

a = r * 100 + g * 10 + b
if a % 4 == 0:
  print("YES")
else:
  print("NO")

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

if int("r+g+b")%4 == 0:
  print("YES")
else:
  print("NO")
Problem p03493 (python)

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

input_nums=list(input())
ans=int(input_nums[0])+int(input_nums[1])+int(input_nums[2])

print(ans)

Buggy submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
import numpy as np

count=0
num_of_nums=input()
nums=np.array(input().split())
nums=nums.astype(int)

while np.all(nums%2==0):
    nums=nums/2
    count+=1

print(count)

Buggy submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
import numpy as np

count=0
num_of_nums=input()
nums=np.array(input().split())
nums=nums.astype(int)

while np.all(nums%2==0):
    nums=nums/2
    count+=1

print(count)
Problem p03433 (python)

Fixed submission:
N=int(input())
A=int(input())
ans=N%500
if ans-A<=0:
    print('Yes')
else:
    print('No')

Buggy submission (verdict: Runtime Error):
N=int(input())
A=int(input())
ans%=500
if ans-A<=0:
    print('YES')
else:
    print('NO')

Buggy submission (verdict: Runtime Error):
N,A=map(int,input().split())
ans=N%500
if ans-A<=0:
    print('YES')
else:
    print('NO')
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=input('a=')
b=input('b=')
c=int(a)*int(b)
if int(a)*int(b)%2 == 0:
    print('Even')
else:
    print('Odd')

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

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

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

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

Fixed submission:
N = int(input())
A = int(input())
condition = (N % 500 <= A)
print('Yes' if condition is True else 'No')

Buggy submission (verdict: Runtime Error):
import sys
from collections import deque
input = sys.stdin.readline

def main(*args, **kwargs):
    # Initialize data
    H, W = map(int, input().split())
    total_cells = H * W
    existing_black_cells = 0

    grid = []
    for i in range(H):
        line = input()
        existing_black_cells += line.count('#')
        grid.append(line)

    # Initialize Search
    queue = deque()
    queue.append((0, 0))  # start point
    visited = set()
    movement = 0

    while len(queue) > 0:
        movement += 1
        for i in range(len(queue)):  # Process same level
            coodinate = queue.popleft()
            visited.add(coodinate)
            y = coodinate[0]
            x = coodinate[1]

            # Terminate condition
            if y == H - 1 and x == W - 1:
                print(total_cells - movement - existing_black_cells)
                return

            for dx, dy in [(1, 0), (0, 1), (-1, 0), (0, -1)]:
                X = x + dx
                Y = y + dy
                adjacent = (Y, X)
                if 0 <= X < W and 0 <= Y < H and grid[Y][X] == '.' and adjacent not in visited:
                    queue.append(adjacent)
    print(-1)
    return
main()
Problem p03433 (python)

Fixed submission:
N = int(input())
A = int(input())

if N%500 <= A:
  print("Yes")
else:
  print("No")

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

if N/500 >=1 and N%500 <= A:
  print("Yes")
else:
  print("No")

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

if N/500 >=1 and N%500 <= A:
  print("Yes")
else:
  print("No")

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

if N/500 >=1 and N%500 <= A:
  print("Yes")
else:
  print("No")

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

if int(N/500) >=1 and int(N%500) =< A:
  print("Yes")
else:
  print("No")

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

if (N / 500) >=1 and (N % 500) =< A:
  print("Yes")
else:
  print("No")

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

if (N / 500) >=1  and (N % 500) >= A:
  print("Yes")
else:
  print("No")

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

if (N % 500) >= A:
  print("Yes")
else:
  print("No")
Problem p03433 (python)

Fixed submission:
N=int(input())
A=int(input())
print("Yes" if N-(N//500)*500<=A else "No")

Buggy submission (verdict: Runtime Error):
N,A=map(int,input().split())
print("Yes" if N-N//500*500<A else "No")
Problem p03469 (python)

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

print(int(a)+1,b,c,sep=("/"))

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

print(str(a+1)"/"str(b)"/"str(c))
Problem p03470 (python)

Fixed submission:
N=int(input())
l=[int(input()) for i in range(N)]

print(len(list(set(l))))

Buggy submission (verdict: Runtime Error):
N=int(input())
l=[int(input()) for i in range(5)]

print(len(list(set(list))))
Problem p03433 (python)

Fixed submission:
N = int(input())
A = int(input())
if N % 500 <= A:
  print('Yes')
else:
  print('No')

Buggy submission (verdict: Runtime Error):
if (N%500==0):
  print ("Yes")
elif(N%500<A):
  print ("Yes")
  else
  print("No")

Buggy submission (verdict: Runtime Error):
if (N%500==0):
  print Yes
  if(N%500<=A)
  print Yes
Problem p03433 (python)

Fixed submission:
n = int(input())
a = int(input())

if n % 500:
  if (n % 500) <= a:
    print("Yes")
  else:
    print("No")
else:
    print("Yes")

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

if n % 500:
  if (n % 500) <= a:
    print("Yes")
  else:
    print("No")
else:
    print("Yes")

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

if n % 500:
  if (n % 500) <= a:
    print("Yes")
  else:
    print("No")
    
else:
    print("Yes")
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):
# -*- coding: utf-8 -*-
 
# スペース区切りの整数の入力
a, b = map(int, input().split())
 
c = a*b
 
# 出力
if c%2==0:
	print "Even"
else:
	print "Odd"

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

# スペース区切りの整数の入力
a, b = map(int, input().split())

c = a*b

# 出力
if c%2==0:
	print "Even"
else
	print "Odd"

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

# スペース区切りの整数の入力
a, b = map(int, input().split())

c = a*b

# 出力
if (c%2==0)
	print("Even")
else
	print("Odd")
Problem p03493 (python)

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

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

count = 0

if (s[0] == '1'):
    count++
if (s[1] == '1'):
    count++
if (s[2] == '1'):
    count++

print(count)

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

count = 0

if (s[0] == '1'):
    count++
if (s[1] == '1'):
    count++
if (s[2] == '1'):
    count++

print(count)

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

count = 0

if (s[0] == '1'):
    count++
if (s[1] == '1'):
    count++
if (s[2] == '1'):
    count++

print(count)

Buggy submission (verdict: Runtime Error):
s[] = input().split()

count = 0

if (s[0] == '1'):
    count++
if (s[1] == '1'):
    count++
if (s[2] == '1'):
    count++

print(count)
Problem p03455 (python)

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

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

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

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

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

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

Buggy submission (verdict: Runtime Error):
a,b=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")

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

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

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

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

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

ab = a*b
if ab%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")

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

which a < 1:
  if a%10 == 1:
    s += 1

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