Harryxun/testdata huggingface dataset:
Buggy python 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' )

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 python 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' )

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 python 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)

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 python submission (verdict: Runtime Error):
print(eval(input())

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

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

Fixed submission:
print(eval(input()))
Buggy python 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)

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 python 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)

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 python 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')

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 python 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')

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 python submission (verdict: Runtime Error):
ab, bc, ca = map(int, input().rstrip().split())
print(ab*bc//2)

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 python submission (verdict: Runtime Error):
ab, bc, ca = map(int, input().rstrip().split())
print(ab*bc//2)

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 python 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")

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 python submission (verdict: Runtime Error):
x , y = map(int(input().split()))
 
if (x * y )%2 == 0:
  print("Even")
else:
  print("Odd")

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

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

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


Fixed submission:
x , y = map(int,input().split())
 
if (x * y )%2 == 0:
  print("Even")
else:
  print("Odd")
Buggy python 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")


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 python 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")

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 python submission (verdict: Runtime Error):
r,g,b = int(input()).split()

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


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 python 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)

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 python 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)

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 python submission (verdict: Runtime Error):
N=int(input())
A=int(input())
ans%=500
if ans-A<=0:
    print('YES')
else:
    print('NO')

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

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

Fixed submission:
N=int(input())
A=int(input())
ans=N%500
if ans-A<=0:
    print('Yes')
else:
    print('No')
Buggy python 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')


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

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


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

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


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

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

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

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

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



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

Fixed submission:
N = int(input())
A = int(input())
condition = (N % 500 <= A)
print('Yes' if condition is True else 'No')
Buggy python submission (verdict: Runtime Error):
N,A = map(int,input().split())

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

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

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

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

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

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

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

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

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


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

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

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

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


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

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

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

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


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

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

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

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


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

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

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

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

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

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

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

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

print(str(a+1)"/"str(b)"/"str(c))

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

print(int(a)+1,b,c,sep=("/"))
Buggy python submission (verdict: Runtime Error):
N=int(input())
l=[int(input()) for i in range(5)]

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

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

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

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

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

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

Buggy python 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")


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

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

Buggy python 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")

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

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

# スペース区切りの整数の入力
a, b = map(int, input().split())
 
# 出力
if (a*b)%2:
	print "Odd"
else:
	print "Even"

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

Buggy python 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"

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

Buggy python 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"


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

Buggy python 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")

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


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

Buggy python 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)


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

Buggy python 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)


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

Buggy python 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)

Fixed submission:
print(input().count("1"))
Buggy python 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")

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 python submission (verdict: Runtime Error):
a = input()
b = input()

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

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

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

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

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


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

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

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

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


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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

print(s)

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

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

i=1
while True:
    ii=i * i
    if ab == ii:
        print("Yes")
        break

    if ii > ab:
        print("No")
        break
    i += 1


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

i=1
while True:
    ii=i * i
    if ab == ii:
        print("Yes")
        break

    if ii > ab:
        print("No")
        break
    i += 1

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

i=1
while True:
    ii=i * i
    if ab == ii:
        print("Yes")
        break

    if ii > ab:
        print("No")
    i += 1


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

i=1
while True:
    ii=i * i
    if ab == ii:
        print("Yes")
        break

    if ii > ab:
        print("No")
        break
    i += 1
Buggy python submission (verdict: Runtime Error):
n,a,b = map(int, input().split())
ans = 0

for i in range(n+1):
    if a <= sum(list(str(i))) <= b:
            ans += i
print(ans)


Fixed submission:
n, a, b = map(int, input().split())
ans = 0
for i in range(n+1):
    if a <= sum(list(map(int, list(str(i))))) <= b:
        ans += i
print(ans)
Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())
a = list(map(int, input().split()))
count = 0
flag = False
while flag == False:
    for ai in a:
        if ai % 2 == 0:
            ai = ai / 2
        else:
            flag = True
    
    if flag == True:
        break
    count += 1
print(count)

Fixed submission:
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 python submission (verdict: Runtime Error):
n,l=[int(x) for x in input().split()]
b=[input() for x in range(n)]
b.sort()
print(''.join(b))

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

if ABC[0]==5 and ABC[1]==5 and ABC[2]==7:
	print("YES")
else:
	print("NO")

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

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


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

if ABC[0]==5 and ABC[1]==5 and ABC[2]==7:
	print("YES")
else:
	print("NO")
Buggy python submission (verdict: Runtime Error):
input_nums = [int(c) for c in input().split(" ")]
x = input_nums[0]
y = input_nums[1]
ad = 0

if x = y:
  print(0)
  return

if x > y:
  ad = 2
if (x < 0 and y > 0) or (x >= 0 and y <= 0):
  ad = 1
  
x, y = abs(x), abs(y)

print(abs(x-y)+ad)



Fixed submission:
input_nums = [int(c) for c in input().split(" ")]
x = input_nums[0]
y = input_nums[1]
ad = 0

if x > y:
  ad = 2
if (x < 0 and y > 0) or (x >= 0 and y <= 0):
  ad = 1
if x == y:
  ad = 0

x, y = abs(x), abs(y)

print(abs(x-y)+ad)
Buggy python submission (verdict: Runtime Error):
input_nums = [int(n) for n in input().slice(“ ”)]
h = input_nums[0]
w = input_nums[1]

count = 0

for i in range(h):
	for c in input():
		if c == “#”:
			count += 1

if count == h+w-1:
	print(“Possible”)
else:
	print(“Impossible”)

Fixed submission:
input_nums = [int(c) for c in input().split(" ")]
h = input_nums[0]
w = input_nums[1]

count = 0

for i in range(h):
	for c in input():
		if c == "#":
			count += 1

if count == h+w-1:
	print("Possible")
else:
	print("Impossible")
Buggy python submission (verdict: Runtime Error):
A,B,C,X = input().split()
A = int(A)
B = int(B)
C = int(C)
X = int(X)

res = int(0)

for x in range(A+1):
	for y in range(B+1):
		for z in range(C+1):
			total = int(500*x + 100*y + 50*z)
			if(total == X):
				res+=1
			
print(res)

Fixed submission:
A = input()
B = input()
C = input()
X = input()

A = int(A)
B = int(B)
C = int(C)
X = int(X)

res = int(0)

for x in range(A+1):
	for y in range(B+1):
		for z in range(C+1):
			total = int(500*x + 100*y + 50*z)
			if(total == X):
				res+=1
			
print(res)
Buggy python submission (verdict: Runtime Error):
import numpy as np

a = int(input())
b = np.array([int(x) for x in input().split()])

if(a!=len(b)):
	print('the array size is different')
else:
	c = b%2
	d = b/2
	while sum(c)==0:
		COUNTS = int(1)
		COUNTS += 1
		c = d%2
		d = d/2

print(COUNTS)




Fixed submission:
import numpy as np

a = int(input())
b = np.array([int(x) for x in input().split()])

if(a!=len(b)):
	print('the array size is different')
else:
	c = b%2
	d = b/2
	count = 0
	while sum(c)==0:
		count += 1
		c = d%2
		d = d/2
	print(count)
Buggy python submission (verdict: Runtime Error):
r, g, b = map(int(), input().split())

A = 100*r + 10*g + b

if(A % 4 == 0):
	print("YES")
else:
	print("NO")

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

A = 100*r + 10*g + b

if(A % 4 == 0):
	print("YES")
else:
	print("NO")

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

A = 100*r + 10*g + b

if(A % 4 == 0):
	print("Yes")
else:
	print("No")

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

A = 100*r + 10*g + b

if(A % 4 == 0):
	print("YES")
else:
	print("NO")

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

A = r + g + b

if(A % 4 == 0):
	print("Yes")
else:
	print("No")

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

A = 100*r + 10*g + b

if(A % 4 == 0):
	print("YES")
else:
	print("NO")

Buggy python submission (verdict: Runtime Error):
r = int(input())
g = int(input())
b = int(input())

A = r + g + b

if(A % 4 == 0):
	print("Yes")
else:
	print("No")

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

A = 100*r + 10*g + b

if(A % 4 == 0):
	print("YES")
else:
	print("NO")