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

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

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

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

Buggy submission (verdict: Runtime Error):
a, b = map(int, input().split())
c = 0
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')

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

Buggy submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
a, b = map(int, input().split())
c　= (a * b) % 2
if c == 1:
  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 == 1:
  print('Odd')
else:
  print('Even')

Buggy submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
a, b = map(int, input().split())
c　= (a * b) % 2
if c == 1:
  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 == 1:
  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 == 1:
  print("Odd")
elese:
  print("Even")

Buggy submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
a, b = map(int, input().split())
c　a * b
if c % 2 == 1:
  print("Odd")
elese:
  print("Even")
Problem p03493 (python)

Fixed submission:
# -*- coding: utf-8 -*-
a = str(input())
list(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):
# -*- coding: utf-8 -*-
a = int(input())
b = list(int(input().split()))
count = list()
for i in range(a):
  count[i-1] = 0
  while b[i-1] % 2 == 0:
    b[i-1] = b[i-1] / 2
    count[i-1] += 1
print(min(count))

Buggy submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
a = int(input())
b = list(int(input().split("")))
count = list()
for i in range(a):
  count[i-1] = 0
  while b[i-1] % 2 == 0:
    b[i-1] = b[i-1] / 2
    count[i-1] += 1
print(min(count))

Buggy submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
a = int(input())
b = list(int(input()))
count = list()
for i in range(a):
  count[i-1] = 0
  while b[i-1] % 2 == 0:
    b[i-1] = b[i-1] / 2
    count[i-1] += 1
print(min(count))

Buggy submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
a[]= list(str(input()))
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):
# -*- coding: utf-8 -*-
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)
Problem p03494 (python)

Fixed submission:
# -*- coding: utf-8 -*-
n = int(input())
a = list(map(int, input().split()))
count = []
for i in range(n):
    count.append(0)
    while a[i] % 2 == 0:
        a[i] = a[i] / 2
        count[i] += 1
print(min(count))

Buggy submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
a = int(input())
b = int(input().split(""))
list(b)
count = []
for i in range(a):
  count[i] = 0
  while b[i] % 2 == 1:
    b[i] = b[i] / 2
    count[i] += 1
print(min(count))

Buggy submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
a = int(input())
b = int(input().split(""))
list(b)
count = []
for i in range(a):
  count[i] = 0
  c = count[i]
  d = b[i]
  while d % 2 == 0:
    d = d / 2
    c += 1
    count[i] = c
print(min(count))

Buggy submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
a = int(input())
b = int(input().split(""))
list(b)
count = []
for i in range(a):
  count[i] = 0
  while b[i] % 2 == 0:
    b[i] = b[i] / 2
    count[i] += 1
c = min(count)    
print(c)

Buggy submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
a = int(input())
b = int(input().split(""))
list(b)
count = []
for i in range(a):
  count[i] = 0
  while b[i] % 2 == 0:
    b[i] = b[i] / 2
    count[i] += 1
print(min(count))

Buggy submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
a = int(input())
b = list(int(input().split()))
count = list()
for i in range(a):
  count[i] = 0
  while b[i] % 2 == 0:
    b[i] = b[i] / 2
    count[i] += 1
print(min(count))

Buggy submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
a = int(input())
b = list(int(input().split()))
count = list()
for i in range(a):
  count[i] = 0
  while b[i] % 2 == 0:
    b[i-1] = b[i] / 2
    count[i] += 1
print(min(count))

Buggy submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
a = int(input())
b = list(int(input().split("")))
count = list()
for i in range(a):
  count[i-1] = 0
  while b[i-1] % 2 == 0:
    b[i-1] = b[i-1] / 2
    count[i-1] += 1
print(min(count))

Buggy submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
a = int(input())
b = list(int(input().split()))
count = list()
for i in range(a):
  count[i-1] = 0
  while b[i-1] % 2 == 0:
    b[i-1] = b[i-1] / 2
    count[i-1] += 1
print(min(count))

Buggy submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
a = int(input())
b = list(int(input()))
list(count)
for i in range(a):
  count[i-1] = 0
  while b[i-1] % 2 == 0:
    b[i-1] = b[i-1] / 2
    count[i-1] += 1
print(min(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("Please Enter Number: "))
b = int(input("Please Enter Number: "))

check = (a*b)%2
if check ==0:
    print("Even")
else:
    print("Odd")
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')
Problem p03456 (python)

Fixed submission:
_in =input().split()

#_in = ["10", "21"]
#文字の結合
cont_str = _in[0] + _in[1]

#数字に変換
cont_num = int(cont_str)


#平方数の判定
#総当たり頭悪そう　1<= ab <= 100 なので 4*4~ 100*100
sqrt_flag = False
for i in range(4, 1000):
        sqrt = i * i
        #print(sqrt)
        if cont_num == sqrt:
            sqrt_flag = True
            break
if sqrt_flag:
    print('Yes')
else:
    print('No')

Buggy submission (verdict: Runtime Error):
#入力値の取得
_in =input().split()

#文字の結合
cont_str = _in[0] * _in[1]

#数字に変換
cont_num = int(cont_str)


#平方数の判定
#総当たり頭悪そう　1<= ab <= 100 なので 4*4~ 100*100
sqrt_flag = False
for i in range(4, 100):
        sqrt = i * i
        if cont_num == sqrt:
            sqrt_flag = True
            break
if sqrt_flag:
    print('Yes')
else:
    print('No')
Problem p03493 (python)

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

Buggy submission (verdict: Runtime Error):
import math
n = input()
a = list(map(int, input().split()))
ans = float("inf")
for i in a:
    ans = min(ans, len(bin(i)) - bin(i).rfind("1") - 1)
print(round(ans))

Buggy submission (verdict: Runtime Error):
import math
n = input()
a = list(map(int, input().split()))
ans = float("inf")
for i in a:
    ans = min(ans, len(bin(i)) - bin(i).rfind("1") - 1)
print(round(ans))
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(input().split())
if a*b % 2 == 0:
  print("Even")
else:
  print("Odd")
Problem p04043 (python)

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

Buggy submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
"""
Created on Fri Sep  6 16:59:47 2019

@author: ask07
"""

A=int(input("Aの文字数を入力:"))
B=int(input("Bの文字数を入力:"))
C=int(input("Cの文字数を入力:"))

if A==5 and B==5 and C==7:
    print("YES")
elif A==5 and B==7 and C==5:
    print("YES")
elif A==7 and B==5 and C==5:
    print("YES")
else:
    print("NO")

Buggy submission (verdict: Runtime Error):
A=int(input())
B=int(input())
C=int(input())
 
if A==5 and B==5 and C==7:
    print("YES")
elif A==5 and B==7 and C==5:
    print("YES")
elif A==7 and B==5 and C==5:
    print("YES")
else:
    print("NO")

Buggy submission (verdict: Runtime Error):

A=int(input("Aの文字数を入力:"))
B=int(input("Bの文字数を入力:"))
C=int(input("Cの文字数を入力:"))

if A==5 and B==5 and C==7:
    print("YES")
elif A==5 and B==7 and C==5:
    print("YES")
elif A==7 and B==5 and C==5:
    print("YES")
else:
    print("NO")

Buggy submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
"""
Created on Fri Sep  6 16:59:47 2019

@author: ask07
"""

A=int(input("Aの文字数を入力:"))
B=int(input("Bの文字数を入力:"))
C=int(input("Cの文字数を入力:"))

if A==5 and B==5 and C==7:
    print("YES")
elif A==5 and B==7 and C==5:
    print("YES")
elif A==7 and B==5 and C==5:
    print("YES")
else:
    print("NO")
Problem p03456 (python)

Fixed submission:
import math
a, b = input().split()
print("Yes") if float.is_integer(math.sqrt(int(a+b))) else print("No")

Buggy submission (verdict: Runtime Error):
a,b=input().split()
print "Yes" if float.is_integer(math.sqrt(int(a+b))) else "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 = int(input())
b = int(input())

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

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

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

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

Buggy submission (verdict: Runtime Error):
list = mat(int, input().split())
if list[0] * list[1] % 2 == 0:
  print('Even')
  else:
    print('Odd')
Problem p03493 (python)

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

#問題文
#すぬけ君は 1,2,3 の番号がついた 3 つのマスからなるマス目を持っています。 各マスには 0 か 1 が書かれており、マス i
# には si が書かれています。
#すぬけ君は 1 が書かれたマスにビー玉を置きます。 ビー玉が置かれるマスがいくつあるか求めてください。

#制約
#s1,s2,s3 は 1 あるいは 0

countup = 0
s = str(raw_input())
for count in s :
    if count == '1':
        countup += 1
    else:
        countup = countup

print countup

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

#問題文
#すぬけ君は 1,2,3 の番号がついた 3 つのマスからなるマス目を持っています。 各マスには 0 か 1 が書かれており、マス i
# には si が書かれています。
#すぬけ君は 1 が書かれたマスにビー玉を置きます。 ビー玉が置かれるマスがいくつあるか求めてください。

#制約
#s1,s2,s3 は 1 あるいは 0

s = str(raw_input())
count += 1 for count in s > 0 if s%10 == 1

print count

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

Buggy submission (verdict: Runtime Error):
a, b, c = map(int, raw_input().split())
ans = a+b+c

print a+b+c
Problem p03455 (python)

Fixed submission:
A,B = map(int,input().split(" "))
print(['Even','Odd'][(A*B)%2])

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

a = int(x)
b = int(y)

c = a * b

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

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

#2n
if (a%2==0):
    print('Even')    

elif(b%2==0):
    print('Even')

#2n-1    
else:
    print('Odd')

Buggy submission (verdict: Runtime Error):
test =input()
cnt =0
for r in range(len(test)):
    s = int(test[r])
    if (s%2 == 1):
        cnt +=1

print(cnt)
Problem p03455 (python)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Buggy submission (verdict: Runtime Error):
a, b, c = map(int, input().split())
print(a + b + c)
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%100 == 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")
    end

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

Fixed submission:
N = input()
a = int(N[0])+int(N[1])+int(N[2])

print(a)

Buggy submission (verdict: Runtime Error):
N = input()
a = int(N[1])
b = int(N[2])
c = int(N[3])
d == a+b+c

print(d)

Buggy submission (verdict: Runtime Error):
N = input()
a = int(N[1])
b = int(N[2])
c = int(N[3])

print(a+b+c)

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

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

Buggy submission (verdict: Runtime Error):
A=map(int,input().split())
if A[0]*A[1]==0:
  print('Even')
else:
  print('Odd')

Buggy submission (verdict: Runtime Error):
A=map(int,input().split())
if A[0]*A[1]==0:
  print('Even')
else:
  print('Odd')

Buggy submission (verdict: Runtime Error):
A=map(int,input().split)
if A[0]*A[1]==0:
  print('Even')
else:
  print('Odd')

Buggy submission (verdict: Runtime Error):
A=map(int,input().split)
if A[0]*A[1]==0:
  print('Even')
else:
  print('Odd')

Buggy submission (verdict: Runtime Error):
A=list(map(int, input().split())) 
b=A[0]*A[1]
if b%2=0:
	print('Even')
else
	print('Odd')
Problem p03456 (python)

Fixed submission:
import math
A=list(map(int, input().split()))
b=str(A[0])+str(A[1])
c=int(b)
#print(round(math.sqrt(int(b)),10))
#c=round(math.sqrt(int(b)),10)
d=0
for i in range(10000):
    if i*i==c:
        print('Yes')
        d=1
if d==0:
    print('No')

Buggy submission (verdict: Runtime Error):
A=list(map(int, input().split()))
b=Str(A[0])+Str(A[1])
#isinstance(sqrt(int(b)))
if isinstance(sqrt(int(b))):
  print('Yes')
else:
  print('No')
Problem p03455 (python)

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

Buggy submission (verdict: Runtime Error):
a, b = input().split()
c = a * b // 2
if c:
    print('Odd')
else:
    print('Even')
Problem p03455 (python)

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

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

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

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

Buggy submission (verdict: Runtime Error):
answer = "Odd"

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

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

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

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

Fixed submission:
import sys
a, b = map(int, sys.stdin.readline().rstrip().split())
c = a * b
if c % 2 == 0: print 'Even'
else:          print 'Odd'

Buggy submission (verdict: Runtime Error):
import sys
a, b = map(int, sys.stdin.readline().rstrip())
c = a * b
if c % 2 == 0: print 'Even'
else:          print 'Odd'

Buggy submission (verdict: Runtime Error):
import sys
a, b = map(int, sys.stdin.readline().rstrip())
c = a * b
if c % 2 == 0: return 'Even'
else:          return 'Odd'
Problem p03493 (python)

Fixed submission:
import sys
A = map(int, list(sys.stdin.readline().rstrip()))
ans = 0
for i in xrange(len(A)): ans += A[i]
print ans

Buggy submission (verdict: Runtime Error):
import sys
N = sys.stdin.readline().rstrip(); N = int(N)
A = []
cnt = 0
while cnt < N:
  element = sys.stdin.readline().rstrip()
  element = int(element)
  A.append(element)
  cnt += 1

ans = 0
while True:
  # check
  bool_check=True
  for i in xrange(N):
    if A[i] % 2 == 1:
      bool_check = False
      break
  if bool_check == False: break
  
  # update
  for i in xrange(N):
    A[i] /= 2
  ans += 1
print ans
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)
Problem p03493 (python)

Fixed submission:
a=str(input())
b=0
for moji in a:
    if moji=="1":
        b+=1

print(b)

Buggy submission (verdict: Runtime Error):
a=str(input())
b=0
for moji in a:
    if moji=="1"
    b+=1

print(b)
Problem p03493 (python)

Fixed submission:
a, b, c = map(int, input())
list = [a,b,c]
count = 0
for num in list:
    if num == 1:
        count += 1
print(count)

Buggy submission (verdict: Runtime Error):
N=int(input())#入力回数を決める
data = input().split() 
list_count = []
for num in data:
    count = 0
    while int(num) % 2 == 0:
        num = int(num) / 2
        count += 1
    list_count.append(count) 

print(min(list_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')
Problem p03679 (python)

Fixed submission:
x, a, b = map(int, input().split())
y = b - a
if y <= 0:
  print('delicious')
elif x < y:
  print('dangerous')
else:
  print('safe')

Buggy submission (verdict: Runtime Error):
x, a, b = map(int, input().split())
y = b - a
if y =< 0:
  print('delicious')
elif x < y:
  print('dangerous')
else:
  print('safe')
Problem p03813 (python)

Fixed submission:
x = int(input())
if x >= 1200:
  print('ARC')
else:
  print('ABC')

Buggy submission (verdict: Runtime Error):
A, B = map(int, input().split())
if A < B:
  if A == 1:
    print('Alice')
  else:
    print('Bob')

elif B > A:
  if B == 1:
    print('Bob')
  else:
    print('Alice')
else:
  print('Draw')
Problem p03827 (python)

Fixed submission:
n = input()
n = int(n)
str = input()
val = [0]
x = 0
for _ in range(n):
  o = str[:1]
  if o == 'D':
    x -= 1
  else:
    x += 1
  val.append(x)
  str = str[1:]
print(max(val))

Buggy submission (verdict: Runtime Error):
n = input()
str = input()
val = []
o = str[:1]
if o == 'D':
  n -= 1
  val.append(n)
  str = str[1:]
else:
  n += 1
  val.append(n)
  str = str[1:]
Problem p03860 (python)

Fixed submission:
a, b, c = map(str, input().split())
B = b[:1]

ans = 'A' + B + 'C'
print(ans)

Buggy submission (verdict: Runtime Error):
a, b, c = map(int, input().split())
modb = []
for n in range(a, b+1):
  if n % c == 0:
    modb.append(n)
print(len(modb))
Problem p03861 (python)

Fixed submission:
a, b, c = map(int, input().split())
n = a % c
if n == 0:
  print((b-a)//c+1)
elif c > a:
  print((b-c)//c+1)
else:
  print((b-a+n)//c)

Buggy submission (verdict: Runtime Error):
a, b, c = map(int, input().split())
modb = []
for n in range(a, b+1):
  if n % c = 0:
    modb.append(n)
print(len(modb))
Problem p03944 (python)

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

x1 = []
x2 = []
y3 = []
y4 = []

for _ in range(N):
  x, y, a = map(int, input().split())
  if a == 1:
    x1.append(x)
  elif a == 2:
    x2.append(x)
  elif a == 3:
    y3.append(y)
  else:
    y4.append(y)

if not x1:
  if not x2:
    W = W
  else:
    W = min(x2)
elif not x2:
  W -= max(x1)
elif max(x1) >= min(x2):
  W = 0
else:
  W = min(x2) - max(x1)

if not y3:
  if not y4:
    H = H
  else:
    H = min(y4)
elif not y4:
  H -= max(y3)
elif max(y3) >= min(y4):
  H = 0
else:
  H = min(y4) - max(y3)
  
print(W*H)

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

x1 = []
x2 = []
y3 = []
y4 = []

for _ in range(N):
  x, y, a = map(int, input().split())
  if a == 1:
    x1.append(x)
  elif a == 2:
    x2.append(x)
  elif a == 3:
    y3.append(y)
  else:
    y4.append(y)

if not x1:
  if not x2:
    W = W
  else:
    W = min(x2)
elif not x2:
  W -= max(x1)
elif max(x1) >= min(x2):
  W = 0
else:
  W = min(x2) - max(x1)

if not y3:
  if not y4:
    H = H
  else:
    H = min(y4)
elif not y4:
  H -= max(y3)
elif max(y3) >= min(y4):
  H = 0
else:
  H = min(h2) - max(h1)
  
print(W*H)

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

x1 = []
x2 = []
y3 = []
y4 = []

for _ in range(N):
  x, y, a = map(int, input().split())
  if a == 1:
    x1.append(x)
  elif a == 2:
    x2.append(x)
  elif a == 3:
    y3.append(y)
  else:
    y4.append(y)

if not x1:
  if not x2:
    W = W
  else:
    W = min(x2)
elif not x2:
  W -= max(x1)
elif max(x1) >= min(x2):
  W = 0
else:
  W = w2 - w1

if not y3:
  if not y4:
    H = H
  else:
    H = min(y4)
elif not y4:
  H -= max(y3)
elif max(y3) >= min(y4):
  H = 0
else:
  H = h2 - h1
  
print(W*H)
Problem p03962 (python)

Fixed submission:
a, b, c = map(int, input().split())
l = [a, b, c]
val = list(set(l))
print(len(val))

Buggy submission (verdict: Runtime Error):
a = list(map(int, input().split())
a = list(set(a))
print(len(a))
Problem p03998 (python)

Fixed submission:
S = {x: list(input()) for x in 'abc'}
s = 'a'
while S[s]:
  s = S[s].pop(0)
print(s.upper())

Buggy submission (verdict: Runtime Error):
S = {x: list(input()) for x in 'abc'}
s = 'a'
while S[s]:
  s = S[s].pop(0)
print(upper(s))