Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
n = input()
li = list(str(n))
li_ = [int(i) for i in li]
allSum = sum(li_)
if not n % allSum: print("Yes")
else: print("No")

Fixed submission:
n = int(input())
li = list(str(n))
li_ = [int(i) for i in li]
allSum = sum(li_)
if not n % allSum: print("Yes")
else: print("No")

Buggy python submission (verdict: Runtime Error):
n = input()
li = list(str(n))
li = list(map(int, li))
sn = sum(li)
if ( n % sn ): print("Yes")
else: print("No")

Fixed submission:
n = int(input())
li = list(str(n))
li_ = [int(i) for i in li]
allSum = sum(li_)
if not n % allSum: print("Yes")
else: print("No")

Buggy python submission (verdict: Runtime Error):
n = input()
li = list(n)
li = list(map(int, li))
sn = sum(li)
if ( n % sn ): print("Yes")
else: print("No")

Fixed submission:
n = int(input())
li = list(str(n))
li_ = [int(i) for i in li]
allSum = sum(li_)
if not n % allSum: print("Yes")
else: print("No")

Buggy python submission (verdict: Runtime Error):
n = int(input())
li = list(n)
sn = sum(li)
if ( n % sn ): print("Yes")
else: print("No")

Fixed submission:
n = int(input())
li = list(str(n))
li_ = [int(i) for i in li]
allSum = sum(li_)
if not n % allSum: print("Yes")
else: print("No")

Buggy python submission (verdict: Runtime Error):
n = int(input())
li = list(n)
sn = sum(li)
if ( n % sn ): print("No")
else: print("Yes")

Fixed submission:
n = int(input())
li = list(str(n))
li_ = [int(i) for i in li]
allSum = sum(li_)
if not n % allSum: print("Yes")
else: print("No")
Buggy python submission (verdict: Runtime Error):
a, b = input().split()
if a > 8 or b > 8: print(":(")
else: print("Yay!")

Fixed submission:
a, b = map(int, input().split())
if a>8 or b>8: print(":(")
else: print("Yay!")
Buggy python submission (verdict: Runtime Error):
l = input()
li = list(map(int, input().split()))
m = 0
for i in range(l):
  n = li[i]
  while not n % 2:
    m += 1
    n /= 2
else:
  print(m)

Fixed submission:
l = int(input())
li = list(map(int, input().split()))
m = 0
for i in range(l):
  n = li[i]
  while not n % 2:
    m += 1
    n /= 2
else:
  print(m)

Buggy python submission (verdict: Runtime Error):
l = input()
li = list(map(int, input().split()))
m = 0
for i in l:
  n = li[i]
  while not n % 2:
    m += 1
    n /= 2
else:
  print(m)

Fixed submission:
l = int(input())
li = list(map(int, input().split()))
m = 0
for i in range(l):
  n = li[i]
  while not n % 2:
    m += 1
    n /= 2
else:
  print(m)
Buggy python submission (verdict: Runtime Error):
rate = int(input())
if n < 1200: print("ABC")
else: print("ARC")

Fixed submission:
n = int(input())
if n < 1200: print("ABC")
else: print("ARC")
Buggy python submission (verdict: Runtime Error):
sx, sy, tx, ty = map(int, input().split())
s = ""
dx, dy = abs(tx - sx), abs(ty - sy)
dxy = dx + dy
for a in range(dx):
  s += "R"
for b in range(dy):
  s += "U"
for c in range(dx):
  s += "L"
for d in range(dy):
  s += "D"
s + = "D"
for e in range(dx + 1):
  s += "R"
for f in range(dy + 1):
  s + = "U"
s += "U"
for g in range(dx + 1):
  s += "L"
for h in range(dy + 1):
  s += "D"
s += "R"
print(s)

Fixed submission:
sx, sy, tx, ty = map(int, input().split())
s = ""
dx, dy = abs(tx - sx), abs(ty - sy)
dxy = dx + dy
for a in range(dx):
  s += "R"
for b in range(dy):
  s += "U"
for c in range(dx):
  s += "L"
for d in range(dy):
  s += "D"
s += "D"
for e in range(dx + 1):
  s += "R"
for f in range(dy + 1):
  s += "U"
s += "L"
s += "U"
for g in range(dx + 1):
  s += "L"
for h in range(dy + 1):
  s += "D"
s += "R"
print(s)
Buggy python submission (verdict: Runtime Error):
li = [0]*26
alpha2num = lambda c: ord(c) - ord("A")
w = input().upper()
for i in range(len(w)):
  k = alpha2num(w[i])
  li[k] += 1
else:
  for j in li:
    if(not j %= 2):
      print("No")
      break
  else:
    print("Yes")

Fixed submission:
li = [0]*26
alpha2num = lambda c: ord(c) - ord('A')
w = input().upper()
for i in range(len(w)):
  k = alpha2num(w[i])
  li[k] += 1
for j in li:
  if j % 2:
    print("No")
    break
else:
  print("Yes")

Buggy python submission (verdict: Runtime Error):
li = [0]*26
alpha2num = lambda c: ord(c) - ord("A") + 1
w = input().upper()
for i in range(len(w)):
  k = alpha2num(w[i])
  li[k] += 1
else:
  for j in li:
    if(not j %= 2):
      print("No")
      break
  else:
    print("Yes")

Fixed submission:
li = [0]*26
alpha2num = lambda c: ord(c) - ord('A')
w = input().upper()
for i in range(len(w)):
  k = alpha2num(w[i])
  li[k] += 1
for j in li:
  if j % 2:
    print("No")
    break
else:
  print("Yes")

Buggy python submission (verdict: Runtime Error):
li = [0]*26
alpha2num = lambda c: chr(c+64)
w = input()
for i in range(len(w)):
  k = alpha2num(w[i])
  li[k] += 1
else:
  for j in li:
    if(not j %= 2):
      print("No")
      break
  else:
    print("Yes")

Fixed submission:
li = [0]*26
alpha2num = lambda c: ord(c) - ord('A')
w = input().upper()
for i in range(len(w)):
  k = alpha2num(w[i])
  li[k] += 1
for j in li:
  if j % 2:
    print("No")
    break
else:
  print("Yes")

Buggy python submission (verdict: Runtime Error):
li = []*26
alpha2num = lambda c: chr(c+26)
w = input()
for i in range(len(w)):
  k = alpha2num(w[i])
  li[k] += 1
else:
  for j in li:
    if(not j %= 2):
      print("No")
      break
  else:
    print("Yes")

Fixed submission:
li = [0]*26
alpha2num = lambda c: ord(c) - ord('A')
w = input().upper()
for i in range(len(w)):
  k = alpha2num(w[i])
  li[k] += 1
for j in li:
  if j % 2:
    print("No")
    break
else:
  print("Yes")
Buggy python submission (verdict: Runtime Error):
li = list(str(input()))
for i in range(li):
  if(li[i] == "B" and not i == 0):
    li[i-1] = ""
    li[i] = ""
print("".join(li))

Fixed submission:
li = list(input())
ans = ""
for i in li:
  if i == "0":
    ans = ans + "0"
  elif i == "1":
    ans = ans + "1"
  elif i == "B":
    ans = ans[:len(ans)-1]
print(ans)

Buggy python submission (verdict: Runtime Error):
li = list(str(input()))
for i in len(li):
  if(li[i] == "B" and not i == 0):
    li[i-1] = ""
    li[i] = ""
print("".join(li))

Fixed submission:
li = list(input())
ans = ""
for i in li:
  if i == "0":
    ans = ans + "0"
  elif i == "1":
    ans = ans + "1"
  elif i == "B":
    ans = ans[:len(ans)-1]
print(ans)

Buggy python submission (verdict: Runtime Error):
li = list(map(str, input()))
for i in len(li):
  if(not i == 0 and li[i] == "B"): 
    li[i-1] = ""
    li[i] = ""
print("".join(li))

Fixed submission:
li = list(input())
ans = ""
for i in li:
  if i == "0":
    ans = ans + "0"
  elif i == "1":
    ans = ans + "1"
  elif i == "B":
    ans = ans[:len(ans)-1]
print(ans)

Buggy python submission (verdict: Runtime Error):
li = list(input())
for i in len(li):
  if(not i == 0 and li[i] == "B"): 
    li[i-1] = ""
    li[i] = ""
print("".join(li))

Fixed submission:
li = list(input())
ans = ""
for i in li:
  if i == "0":
    ans = ans + "0"
  elif i == "1":
    ans = ans + "1"
  elif i == "B":
    ans = ans[:len(ans)-1]
print(ans)

Buggy python submission (verdict: Runtime Error):
li = list(input())
for i in range(len(li)):
  if li[i]=="B": li[i-1]==""
else:
  for j in len(li):
    if li[j]=="B": li[j]==""
  else:
    print("".join(li))

Fixed submission:
li = list(input())
ans = ""
for i in li:
  if i == "0":
    ans = ans + "0"
  elif i == "1":
    ans = ans + "1"
  elif i == "B":
    ans = ans[:len(ans)-1]
print(ans)
Buggy python submission (verdict: Runtime Error):
n,k = map(str, input().split())
li = list(map(str, input().split()))
Li = list(n)
while len(set(Li)&set(li)):
  n = int(n)+1
  Li = list(str(n))
else: print("".join(Li))

Fixed submission:
a,b,c = map(int, input().split())
if a==b and b<c: print("YES")
elif b==c and c<a: print("YES")
elif c==a and a<b: print("YES")
else: print("NO")

Buggy python submission (verdict: Runtime Error):
a,b,c = map(int, input().split())
if a=b and b<c: print("YES")
elif b=c and c<a: print("YES")
elif c=a and a<b: print("YES")
else: print("NO")

Fixed submission:
a,b,c = map(int, input().split())
if a==b and b<c: print("YES")
elif b==c and c<a: print("YES")
elif c==a and a<b: print("YES")
else: print("NO")

Buggy python submission (verdict: Runtime Error):
a,b,c = map(int, input().split())
if (a=b<c or b=c<a or c=a<b): print("YES")
else: print("NO")

Fixed submission:
a,b,c = map(int, input().split())
if a==b and b<c: print("YES")
elif b==c and c<a: print("YES")
elif c==a and a<b: print("YES")
else: print("NO")

Buggy python submission (verdict: Runtime Error):
a,b,c = map(str, input().split())
if (a=b or b=c or c=a):
  if(not a=b=c): print("YES")
  else: print("NO")
else: print("NO")

Fixed submission:
a,b,c = map(int, input().split())
if a==b and b<c: print("YES")
elif b==c and c<a: print("YES")
elif c==a and a<b: print("YES")
else: print("NO")

Buggy python submission (verdict: Runtime Error):
a,b,c = input().split()
if (a=b or b=c or c=a and not a=b=c): print("YES")
else: print("NO")

Fixed submission:
a,b,c = map(int, input().split())
if a==b and b<c: print("YES")
elif b==c and c<a: print("YES")
elif c==a and a<b: print("YES")
else: print("NO")
Buggy python submission (verdict: Runtime Error):
n,l = map(int, input().split())
Li = []
for i in range(n):
  li = list(input()).sort()
  wrd = "".join(li)
  Li.append(wrd)
else:
  print("".join(Li.sort()))
  

Fixed submission:
n,l = map(int, input().split())
Li = []
i = 0
while i<n:
  Li.append("".join(input()))
  i += 1
else:
  Li.sort()
  print("".join(Li))
Buggy python submission (verdict: Runtime Error):
x=input()
c=0
for i in range(len(x)):
  c+=ord(x[i])-ord('0')
x=int(x)
if x%c==0:
  print("Yes")
else:
  print("No")

Fixed submission:
x=input()
c=0
for i in range(len(x)):
  if x[i]=='-':
  	c-=1
  else:
    c+=1
print(c)

Buggy python submission (verdict: Runtime Error):
x=input()
c=0
for i in range(len(x)):
  if x[i]=='-'
  	c-=1
  else:
    c+=1
print(c)

Fixed submission:
x=input()
c=0
for i in range(len(x)):
  if x[i]=='-':
  	c-=1
  else:
    c+=1
print(c)
Buggy python submission (verdict: Runtime Error):
x=input()
c=0
for i in range(len(x)):
  c+=x[i]-'0'
x=int(x)
if x%c==0:
  print("Yes")
else:
  print("No")

Fixed submission:
x=input()
c=0
for i in range(len(x)):
  c+=ord(x[i])-ord('0')
x=int(x)
if x%c==0:
  print("Yes")
else:
  print("No")
Buggy python submission (verdict: Runtime Error):
x=int(input())
y=int(input())
if x<9 and y<9:
  print("Yay!")
else:
  print(":(")

Fixed submission:
x,y=map(int,input().split())
if x<9 and y<9:
  print("Yay!")
else:
  print(":(")
Buggy python submission (verdict: Runtime Error):
m,n=map(int,input().split())
x=[]
for i in range(m):
  a=list(map(int,input().split()))
  x.append(a)
y=[]
for i in range(m):
  z=[0,0,0,0,0,0,0,0]
  z[0]=x[i][0]+x[i][1]+x[i][2]
  z[1]=x[i][0]+x[i][1]-x[i][2]
  z[2]=x[i][0]-x[i][1]+x[i][2]
  z[3]=x[i][0]-x[i][1]-x[i][2]
  z[4]=-x[i][0]+x[i][1]+x[i][2]
  z[5]=-x[i][0]+x[i][1]-x[i][2]
  z[6]=-x[i][0]-x[i][1]+x[i][2]
  z[7]=-x[i][0]-x[i][1]-x[i][2]
  y.append(z)
sort(y,axis=0)
z=[0,0,0,0,0,0,0,0]
for i in range(m-1,m-n-1):
  for j in range(8):
  	z[j]+=y[i][j]
sort(z)
print(z[7])

Fixed submission:
import numpy as np
m,n=map(int,input().split())
x=[]
for i in range(m):
  a=list(map(int,input().split()))
  x.append(a)
y=[]
for i in range(m):
  z=[0,0,0,0,0,0,0,0]
  z[0]=x[i][0]+x[i][1]+x[i][2]
  z[1]=x[i][0]+x[i][1]-x[i][2]
  z[2]=x[i][0]-x[i][1]+x[i][2]
  z[3]=x[i][0]-x[i][1]-x[i][2]
  z[4]=-x[i][0]+x[i][1]+x[i][2]
  z[5]=-x[i][0]+x[i][1]-x[i][2]
  z[6]=-x[i][0]-x[i][1]+x[i][2]
  z[7]=-x[i][0]-x[i][1]-x[i][2]
  y.append(z)
p=np.array(y)
sidx = p.argsort(axis=0)
p=p[sidx, np.arange(sidx.shape[1])]
z=[0,0,0,0,0,0,0,0]
for i in range(m-1,m-n-1,-1):
  for j in range(8):
  	z[j]+=p[i][j]
print(max(z))

Buggy python submission (verdict: Runtime Error):
m,n=map(int,input().split())
x=[]
for i in range(m):
  a=list(map(int,input().split()))
  x.append(a)
y=[]
for i in range(m):
  z=[0,0,0,0,0,0,0,0]
  z[0]=x[i][0]+x[i][1]+x[i][2]
  z[1]=x[i][0]+x[i][1]-x[i][2]
  z[2]=x[i][0]-x[i][1]+x[i][2]
  z[3]=x[i][0]-x[i][1]-x[i][2]
  z[4]=-x[i][0]+x[i][1]+x[i][2]
  z[5]=-x[i][0]+x[i][1]-x[i][2]
  z[6]=-x[i][0]-x[i][1]+x[i][2]
  z[7]=-x[i][0]-x[i][1]-x[i][2]
  y.append(z)
sort(y,axis=0)
z=[0,0,0,0,0,0,0,0]
for i in range(m-1,m-n-1):
  z+=y[i]
sort(z)
print(z[7])
  

Fixed submission:
import numpy as np
m,n=map(int,input().split())
x=[]
for i in range(m):
  a=list(map(int,input().split()))
  x.append(a)
y=[]
for i in range(m):
  z=[0,0,0,0,0,0,0,0]
  z[0]=x[i][0]+x[i][1]+x[i][2]
  z[1]=x[i][0]+x[i][1]-x[i][2]
  z[2]=x[i][0]-x[i][1]+x[i][2]
  z[3]=x[i][0]-x[i][1]-x[i][2]
  z[4]=-x[i][0]+x[i][1]+x[i][2]
  z[5]=-x[i][0]+x[i][1]-x[i][2]
  z[6]=-x[i][0]-x[i][1]+x[i][2]
  z[7]=-x[i][0]-x[i][1]-x[i][2]
  y.append(z)
p=np.array(y)
sidx = p.argsort(axis=0)
p=p[sidx, np.arange(sidx.shape[1])]
z=[0,0,0,0,0,0,0,0]
for i in range(m-1,m-n-1,-1):
  for j in range(8):
  	z[j]+=p[i][j]
print(max(z))
Buggy python submission (verdict: Runtime Error):
if __name__ == "__main__":
    s = str(input())
    
    ans= 0
    
    for c in s:
        if c == '-':
            ans = ans - 1
        if c == '+'
            ans == ans + 1
            
    print(ans)

Fixed submission:
if __name__ == "__main__":
    s = str(input())

    ans= 0

    for c in s:
        if c == '-':
            ans = ans - 1
        if c == '+':
            ans = ans + 1

    print(ans)
Buggy python submission (verdict: Runtime Error):
s = str(input())

    ans = 0

    for i in s:
        ans = ans + int(i)

    b = True if ans % 2 ==0 else False

    print(b)

Fixed submission:
if __name__ == "__main__":
    s = str(input())

    ans = 0

    for i in s:
        ans = ans + int(i)

    b = "Yes" if int(s) % ans == 0 else "No"

    print(b)
Buggy python submission (verdict: Runtime Error):
M =int(input())
prnt(48-M)

Fixed submission:
print(48-int(input()))
Buggy python submission (verdict: Runtime Error):
print(700+intput().count('o')*100)

Fixed submission:
print(700+input().count('o')*100)
Buggy python submission (verdict: Runtime Error):
a = list(input())
b = 0
for i in a:
    b += i

print(b)

Fixed submission:
a = list(input())
b = 0
for i in a:
    b += int(i)

print(b)
Buggy python submission (verdict: Runtime Error):
s=input()
s1=0
for i in s:
    s1+=int(i)
if int(s)%s==0:
    print('Yes')
else:
    print('No')

Fixed submission:
s=input()
s1=0
for i in s:
    s1+=int(i)
if int(s)%s1==0:
    print('Yes')
else:
    print('No')
Buggy python submission (verdict: Runtime Error):
from math import ceil
N, K = map(int, raw_input().split())
A = map(int, raw_input().split())

print (int(ceil((N-1)/(K-1))))


Fixed submission:
import math
N, K = map(int, input().split())
input()
     
print(math.ceil((N-1)/(K-1)))

Buggy python submission (verdict: Runtime Error):
from math import ceil
N, K = map(int, raw_input().split())
A = map(int, raw_input().split())

print (ceil((N-1)/(K-1)))


Fixed submission:
import math
N, K = map(int, input().split())
input()
     
print(math.ceil((N-1)/(K-1)))

Buggy python submission (verdict: Runtime Error):
from math import ceil
N, K = map(int, raw_input().split())
A = map(int, raw_input().split())

print (ceil((N-1)//(K-1)))


Fixed submission:
import math
N, K = map(int, input().split())
input()
     
print(math.ceil((N-1)/(K-1)))

Buggy python submission (verdict: Runtime Error):
from math import ceil
N, K = map(int, raw_input().split())
A = map(int, raw_input().split())

print (ceil(N - 1 // K - 1))

Fixed submission:
import math
N, K = map(int, input().split())
input()
     
print(math.ceil((N-1)/(K-1)))
Buggy python submission (verdict: Runtime Error):
a, b = map(int, input().split())

if a <= 8 and n <= 8:
    print('Yay!')
else:
    print(':(')

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

if a > 8 or b > 8:
  print(':(')
else:
  print('Yay!')

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

if A <= 8 and B <= 8:
    print('Yay!')
else:
    print(':(')

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

if a > 8 or b > 8:
  print(':(')
else:
  print('Yay!')
Buggy python submission (verdict: Runtime Error):
M, N = map(int, input().split())
p = list(map(int, input().split()))
pairs = []
for i in range(0,N):
    pairs.append(list(map(int, input().split())))
allset= set(range(1,M+1))
score = 0
while (allset):
    n = {allset.pop()}
    for i in pairs:
        if (n & set(i)):
            n = n | set(i)
            pairs.remove(i)
    for i in pairs:
        if (n & set(i)):
            n = n | set(i)
    for i in list(n):
        if p[i-1] in n:
            score += 1
    allset = (allset - (allset & n))
print(score)

Fixed submission:
a, b, c, d = map(int, input().split())
if abs(a - c) <= d or (abs(a - b) <= d and abs(b - c) <= d):
    print('Yes')
else:
    print('No')

Buggy python submission (verdict: Runtime Error):
a, b, c, d = map(int, raw_input().split())
if abs(a - c) <= d or (abs(a - b) <= d and abs(b - c) <= d):
    print('Yes')
else:
    print('No')

Fixed submission:
a, b, c, d = map(int, input().split())
if abs(a - c) <= d or (abs(a - b) <= d and abs(b - c) <= d):
    print('Yes')
else:
    print('No')
Buggy python submission (verdict: Runtime Error):
k = int(input())
l = [2, 7, 17, 37, 47, 67, 97, 107, 127, 137, 157, 167, 197, 227, 257, 277, 307, 317, 337, 347, 367, 397, 457, 467, 487, 547, 557, 577, 587, 607, 617, 647, 677, 727, 757, 787, 797, 827, 857, 877, 887, 907, 937, 947, 967, 977, 997]
print(" ".join(map(str,l[0:k])))

Fixed submission:
a ,b = map(int, input().split())
if b < a:
    ans = a-1
else:
    ans = a
print(ans)
Buggy python submission (verdict: Runtime Error):
n = input()
s = 0
for i in range(len(n)) :
    s += int(n[i])
n = int(n)
if n % s == 0 :
    print('Yes')
else :
    print('No')


Fixed submission:
s = input()
i = s.count("+")

print(2 * i - 4)

Buggy python submission (verdict: Runtime Error):
s = input()
a = 0
for i in range(len(s)):
    a += int(s[i])
s = int(s)
if s % a == 0 :
    print('Yes')
else :
    print('No')


Fixed submission:
s = input()
i = s.count("+")

print(2 * i - 4)

Buggy python submission (verdict: Runtime Error):
s = input()
a = 0
for i in range(len(s)):
    a += int(s[i])
s = int(s)
if s % a = 0 :
    print('Yes')
else :
    print('No')


Fixed submission:
s = input()
i = s.count("+")

print(2 * i - 4)
Buggy python submission (verdict: Runtime Error):
s = input()
a = 0
for i in range(len(s)):
    a += s[i]
s = int(s)
if s % a = 0 :
    print('Yes')
else :
    print('No')

Fixed submission:
n = input()
s = 0
for i in range(len(n)) :
    s += int(n[i])
n = int(n)
if n % s == 0 :
    print('Yes')
else :
    print('No')
Buggy python submission (verdict: Runtime Error):
import math
a, b = map(int, input().split())
c = b - 1

d = a / c

print(math.ceil(d)


Fixed submission:
import math
a, b = map(int, input().split())
d = (a-1) / (b-1)
print(math.ceil(d))
Buggy python submission (verdict: Runtime Error):
a,b = map(int, input().split())

if a > 8 and b > 8 :
  print (":(")
elif
  print ("Yay!")


Fixed submission:
ALL = input().split()
A = int(ALL[0])
B = int(ALL[1])
 
if A < 9 and B < 9:
    print('Yay!')
else:
    print(':(')

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

if a > 8 && b > 8 :
  print (":(")
elif
  print ("Yay!")

Fixed submission:
ALL = input().split()
A = int(ALL[0])
B = int(ALL[1])
 
if A < 9 and B < 9:
    print('Yay!')
else:
    print(':(')
Buggy python submission (verdict: Runtime Error):
a = input()

if a < 1000 :
    print("ABC")
else :
    print("ABD")

Fixed submission:
a = int(input())

if a < 1000 :
    print("ABC")
else :
    print("ABD")
Buggy python submission (verdict: Runtime Error):
a,b = map(int, input().split())
print(max(a+b,a-b,a*b)

Fixed submission:
a,b = map(int, input().split())
print(max(a+b,a-b,a*b))
Buggy python submission (verdict: Runtime Error):
i = int(input())
a = list(map(int, input().split()))
a.sort
a.reverse
alice = a[0::2]
bob = a[1::2]
print(alice - bob)

Fixed submission:
i = int(input())
a = list(map(int, input().split()))
a.sort()
a.reverse()
alice = a[0::2]
bob = a[1::2]
print(sum(alice) - sum(bob))
Buggy python submission (verdict: Runtime Error):
i = int(input().replace(' ',''))
if i == (i ** 0.5) ** 2
    print("Yes")
else:
    print("No")


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


Fixed submission:
i = int(input().replace(' ',''))
if i == int(i ** 0.5) ** 2:
    print("Yes")
else:
    print("No")

Buggy python submission (verdict: Runtime Error):
i = int(input().replace(' ',''))
if i == i ** 0.5 * 2
    print("Yes")
else:
    print("No")


Fixed submission:
i = int(input().replace(' ',''))
if i == int(i ** 0.5) ** 2:
    print("Yes")
else:
    print("No")

Buggy python submission (verdict: Runtime Error):
i = int(input().replace' ',''))
if i == i ** 0.5 * 2
    print("Yes")
else:
    print("No")

Fixed submission:
i = int(input().replace(' ',''))
if i == int(i ** 0.5) ** 2:
    print("Yes")
else:
    print("No")
Buggy python submission (verdict: Runtime Error):
s = input()
print(s[0] + ( len(s)-2) + s[-1])

Fixed submission:
s = input()
print(s[0] + str( len(s)-2) + s[-1])

Buggy python submission (verdict: Runtime Error):
s = input()
print(s(0) + ( len(s)-2) + s(-1))

Fixed submission:
s = input()
print(s[0] + str( len(s)-2) + s[-1])
Buggy python submission (verdict: Runtime Error):
a,b = map(int, input().split())
if a > b :
    print("GREATER")
esle:
    print("LESS")

Fixed submission:
a = int(input())
b = int(input())
if a > b:
    print("GREATER")
elif a < b :
    print("LESS")
else:
    print("EQUAL")
Buggy python submission (verdict: Runtime Error):
a,b = map(str , input().split())
if a == "H":
    if b == "H":
        print("H")
    else:
        print("D")
elif b == "H":
        print("D")
    else:
        print("H")


Fixed submission:
a,b = map(str , input().split())
if a == "H":
    if b == "H":
        print("H")
    else:
        print("D")
elif b == "H":
        print("D")
else:
        print("H")
Buggy python submission (verdict: Runtime Error):

def one(x):
    if x == 1:
        ret = 14
        return ret
    else:
        ret = x
        return ret

a, b = map(int, int(input())
if one(a) > one(b):
    print("Alice")
elif one(a) < one(b):
    print("Bob")
else:
    print("Draw")


Fixed submission:

def one(x):
    if x == 1:
        ret = 14
        return ret
    else:
        ret = x
        return ret

a, b = map(int, input().split())
if one(a) > one(b):
    print("Alice")
elif one(a) < one(b):
    print("Bob")
else:
    print("Draw")

Buggy python submission (verdict: Runtime Error):
a, b = map(input().split())
if a > b:
    print("Alice")
elif a < b:
    print("Bob")
else:
    print("Draw")

Fixed submission:

def one(x):
    if x == 1:
        ret = 14
        return ret
    else:
        ret = x
        return ret

a, b = map(int, input().split())
if one(a) > one(b):
    print("Alice")
elif one(a) < one(b):
    print("Bob")
else:
    print("Draw")
Buggy python submission (verdict: Runtime Error):
i = int(input())
x = i // 11
a = x * 2
b = i % 11
if b = 0:
    pass
elif b <= 6:
    a += 1
else:
    a += 2
print(a)


Fixed submission:
i = int(input())
x = i // 11
a = x * 2
b = i % 11
if b == 0:
    pass
elif b <= 6:
    a += 1
else:
    a += 2
print(a)

Buggy python submission (verdict: Runtime Error):
i = int(input())
x = i // 11
a = x * 2
b = i % 11
if b = 0:
    break
elif b <= 6:
    a += 1
else:
    a += 2
print(a)


Fixed submission:
i = int(input())
x = i // 11
a = x * 2
b = i % 11
if b == 0:
    pass
elif b <= 6:
    a += 1
else:
    a += 2
print(a)
Buggy python submission (verdict: Runtime Error):
i = int(input())
s = input()
ans = 0

for x in range(len(s)) :
    if s[x] == "I" :
        ans += 1
    else :
        ans -= 1

print(ans)

Fixed submission:
a,b,c,d = map(int, input().split())
if a*b >= c*d :
    print(a*b)
else :
    print(c*d)

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

for x in range(len(i)) :
    if s[x] == "I" :
        ans += 1
    else :
        ans -= 1

print(ans)

Fixed submission:
a,b,c,d = map(int, input().split())
if a*b >= c*d :
    print(a*b)
else :
    print(c*d)