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

Fixed submission:
N,X=list(map(int,input().split()))
L=list(map(int,input().split()))
D=0
i=0
for i in range(1,N+1):
    D+=L[i-1]
    if D>X:
        break       
    elif i==N and D<=X:
        i=N+1
        pass
    else:
        pass
print(i)

Buggy submission (verdict: Runtime Error):
N,X=list(map(int,input().split()))
L=list(map(int,input().split()))
D=0
for i in range(1,N+2):
    D+=L[i-1]
    if D>X:
        break
    else:
        pass
print(i)
Problem p02909 (python)

Fixed submission:
# coding:utf-8

s = raw_input()  # 获取输入数据字符串S

if s == "Sunny":
    print "Cloudy"
elif s == "Cloudy":
    print "Rainy"
elif s == "Rainy":
    print "Sunny"

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

import random
r = random.randrange(1, 69)
s = raw_input(r)  # 获取输入数据字符串S
print s

s = raw_input()


if s == "Sunny":
    print "Cloudy"
elif s == "Cloudy":
    print "Rainy"
elif s == "Rainy":
    print "Sunny"

arr = ["Sunny", "Cloudy", "Rainy"]
n = arr.index(s
Problem p02885 (python)

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

ans = max([a - 2*b, 0])

print(ans)

Buggy submission (verdict: Runtime Error):
a, b = map(int, input().split())
 
ans = max([a - 2*b, 0])
 
	
for num in range(100000000):

print(ans)

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

ans = max(a - 2*b, 0)

print(ans)
Problem p02885 (python)

Fixed submission:
A, B = map(int, raw_input().split())
if A >= 2 * B:
  print(A - 2 * B)
else:
  print(0)

Buggy submission (verdict: Runtime Error):
A = input(str())
B = input(str())
if A >= 2B:
  print(A - 2B)
else:
  print(0)

Buggy submission (verdict: Runtime Error):
A = int(input())
B = int(input())
if A >= 2B
    (print(A-2B))
else
    (print(0))
Problem p02885 (python)

Fixed submission:
a = list(map(int, input().split()))
b = a[0] - 2*a[1]
if b >= 0:
  print(b)
else:
  print(0)

Buggy submission (verdict: Runtime Error):
import itertools
N = input()
S = input()

count = 0

gr = itertools.groupby(S)
for key, group in gr:
    # print(list(group))
    count += 1
print(count)

Buggy submission (verdict: Runtime Error):
a = map(int, input().split())
b = a[0] - 2*a[1]
if b >= 0:
  print(b)
else:
  print(0)

Buggy submission (verdict: Runtime Error):
a = input()
a = a.split()
b = a[0] - 2*a[1]
if b >= 0:
  print(b)
else:
  print(0)
Problem p02887 (python)

Fixed submission:
import itertools
N = input()
S = input()

count = 0

gr = itertools.groupby(S)
for key, group in gr:
    # print(list(group))
    count += 1
print(count)

Buggy submission (verdict: Runtime Error):
import itertools
N = input()
S = input()

count = 0

gr = itertools.groupby(s)
for key, group in gr:
    # print(list(group))
    count += 1
print(count)
Problem p03206 (python)

Fixed submission:
d = int(input())
eve  = 25 - d

print("Christmas" + " Eve" * eve)

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

for i in range(n):
  item = int(input())
  lst.append(item)

goods = sorted(lst, reverse=True)
goods[0] = goods[0] // 2

print(sum(goods))

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

for i in range(n):
  item = int(input())
  goods.append(item)

goods = sorted(lst, reverse=True)
goods[0] = goods[0] // 2

print(sum(goods))

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

print("Christmas" + " Eve" * (abs(25-d))
Problem p03210 (python)

Fixed submission:
x = int(input())

if x in (7, 5, 3):
  print("YES")
else:
  print("NO")

Buggy submission (verdict: Runtime Error):
S = input()
print(min((abs(753 - int(S[i:i+3])) for i in range(len(S)-2))))
Problem p03211 (python)

Fixed submission:
S = input()
print(min((abs(753 - int(S[i:i+3])) for i in range(len(S)-2))))

Buggy submission (verdict: Runtime Error):
S = input()
print(min((abs(765 - int(S[i:i+2])) for i in range(S-2))))
Problem p03478 (python)

Fixed submission:
N, A, B = map(int, input().split())
res = 0
for i in range(N+1):
    if A <= sum(map(int, (list(str(i))))) <= B:
        res += i
print(res)

Buggy submission (verdict: Runtime Error):
N, A, B = map(int, input().split())
res = 0
for i in range(N+1):
    sum_of_digit(i)
    if A <= sum(map(int, (list(str(i))))) <= B:
        res += i
print(res)
Problem p03493 (python)

Fixed submission:
if __name__ == '__main__':

    s = input()
    target = '1'
    count = 0

    for i in s:
        if i == target:
            count = count + 1

    print(count)

Buggy submission (verdict: Runtime Error):
def divide_count(n):
    cnt = 0
    while n % 2 == 0:
        n /= 2
        cnt += 1
    return cnt

n = int(input())
a = list(map(int, input().split()))
print(min(map(divide_count, a)))
Problem p03854 (python)

Fixed submission:
s = input()[::-1]
while True:
    end_flg = False
    if s[:5] == "maerd":
        s = s.replace("maerd", "", 1)
        end_flg = True
    elif s[:5] == "esare":
        s = s.replace("esare", "", 1)
        end_flg = True
    elif s[:7] == "remaerd":
        s = s.replace("remaerd", "", 1)
        end_flg = True
    elif s[:6] == "resare":
        s = s.replace("resare", "", 1)
        end_flg = True    

    if end_flg == False:
        break
        
if s == "":
    print("YES")
else:
    print("NO")

Buggy submission (verdict: Runtime Error):
s = input()[::-1]
while True:
    end_flg = False
    if s[:5] == "maerd":
        s = s.replace("maerd", "", 1)
        end_flg = True
        print(s)
    elif s[:5] == "esare":
        s = s.replace("esare", "", 1)
        end_flg = True
    elif s[:7] == "remaerd":
        s = s.replace("remaerd", "", 1)
        end_flg = True
    elif s[:6] == "resare":
        s = s.replace("resare", "", 1)
        end_flg = True    

    if end_flg == False:
        break
        
if s == "":
    print("YES")
else:
    print("NO")

Buggy submission (verdict: Runtime Error):
s = input()[::-1]
s = s.replace("maerd", "", 1)

while True:
    end_flg = False
    if s[:5] == "maerd":
        s = s.replace("maerd", "", 1)
        end_flg = True
        print(s)
    elif s[:5] == "esare":
        s = s.replace("esare", "", 1)
        end_flg = True
    elif s[:7] == "remaerd":
        s = s.replace("remaerd", "", 1)
        end_flg = True
    elif s[:6] == "resare":
        s = s.replace("resare", "", 1)
        end_flg = True    

    if end_flg == False:
        break
        
if s == "":
    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, b = map(int, input().split())
if (a*b) % 2 ==0:
    print(Even)
else:
    print(Odd)
Problem p03469 (python)

Fixed submission:
print('2018'+input()[4:])

Buggy submission (verdict: Runtime Error):
print(input()[0:3]+'8'+input()[4:])

Buggy submission (verdict: Runtime Error):
print(input()[0:3]+'8'+input()[5:])

Buggy submission (verdict: Runtime Error):
n = input()
n[4] = '8'
print(n)

Buggy submission (verdict: Runtime Error):
n = input()
n[4] = 8
print(n)

Buggy submission (verdict: Runtime Error):
n = input()
n[0:4] = '2018'
print(n)
Problem p02885 (python)

Fixed submission:
a, b = input().split()
print(max(0, int(a) - int(b) * 2))

Buggy submission (verdict: Runtime Error):
a, b = input().split()
print(min(0, a - b * 2))
Problem p02898 (python)

Fixed submission:
N, K = map(int, raw_input().split())
hs = map(int, raw_input().split())
print sum(1 for h in hs if h >= K)

Buggy submission (verdict: Runtime Error):
N, K = map(int, raw_input())
hs = list(map(int, raw_input().split()))
print sum(1 for h in hs if h >= K)
Problem p02885 (python)

Fixed submission:
import math

A,B=map(int,input().split(' '))

answer=0

if A-2*B<=0:
    answer=0
else :
    answer=A-2*B

print(answer)

Buggy submission (verdict: Runtime Error):
import math

A,B=map(int,input().split(' '))

answer=0

if A-2B<=0:
    answer=0
else :
    answer=A-2B

print(answer)
Problem p02898 (python)

Fixed submission:
import numpy

str1=input().split(' ')
N=int(str1[0])
K=int(str1[1])
str2=input().split(' ')
h=[0]*N
result=0
for i in range(N):
	h[i]=int(str2[i])

for i in range(N):
	if h[i]>=K:
		result+=1

print(result)

Buggy submission (verdict: Runtime Error):
str1=input().split(' ')
N=int(str1[0])
K=int(str1[1])
str2=input().split(' ')
h=[]
result=0
for i in range(str2_len):
	h[i]=int(str[i])

for i in range(h_len):
	if h[i]>=K:
		result+=1

print(result)
Problem p03434 (python)

Fixed submission:
N = int(input())
num = list(map(int, input().split()))
num.sort(reverse=True)
print(sum(num[0::2])-sum(num[1::2]))

Buggy submission (verdict: Runtime Error):
N = int(input())
num = list(map(str, input().split()))
num.sort(reverse=True)
print(sum(num[0::2])-sum(num[1::2]))

Buggy submission (verdict: Runtime Error):
N = int(input())
num = list(map(str, input().split()))
num.sort(reverse=True)
print(sum(num[::2])-sum(num[1::2]))
Problem p03478 (python)

Fixed submission:
N, A, B = map(int, input().split())
num = 0
for i in range(N+1):
  if A <= sum(list(map(int, list(str(i))))) <= B:
    num += i
print(num)

Buggy submission (verdict: Runtime Error):
N, A, B = map(int, input().split())
num
for i in range(N+1):
  if A <= sum(list(map(int, list(str(i))))) <= B:
    num += i
print(num)
Problem p03854 (python)

Fixed submission:
s=input().replace("eraser","").replace("erase","").replace("dreamer","").replace("dream","")
if s:
    print("NO")
else:
    print("YES")

Buggy submission (verdict: Runtime Error):
s = input()
while len(s) >= 4:
  s.replace("eraser", "")
  s.replace("erase", "")
  s.replace("dreamer", "")
  s.replace("dream", "")
  if len(s) == 0:
    print('YES')
    return
print('NO')

Buggy submission (verdict: Runtime Error):
s = input()
while len(s) <= 4:
  s.replace("eraser", "")
  s.replace("erase", "")
  s.replace("dreamer", "")
  s.replace("dream", "")
  if len(s) == 0:
    print('YES')
    return
print('NO')
Problem p02886 (python)

Fixed submission:
a = int(input())
b = input().split()
b = [int(elem) for elem in b]
total = 0
for i in range(len(b)-1):
  for j in range(i+1, len(b)):
    total += b[i] * b[j]
print('{}'.format(total))

Buggy submission (verdict: Runtime Error):
a = int(input())
b = input.split()
b = [int(elem) for elem in b]
sumation = 0
for i, elem in enumerate(b):
	for j, elem2 in enumerate(b[i:]):
      sumation += elem * elem2
print('{}'.format(sumation)
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):
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())
if a * b % == 0:
  print('Even')
else:
  print('Odd')
Problem p02885 (python)

Fixed submission:
A, B = map(int, input().split())
res = A - 2*B
if res < 0: res = 0
print(res)

Buggy submission (verdict: Runtime Error):
res = A - 2 * B
if res <= 0: res = 0
print(res)
Problem p02898 (python)

Fixed submission:
N = input().split()
man = int(N[0])
border = int(N[1])
hight = input().split()
enable = 0
for i in range(man):
  if int(hight[i]) >= border:
    enable +=1
print(enable)

Buggy submission (verdict: Runtime Error):
N = input().split()
man = int(N[0])
border = int(N[1])
hight = input().split()
enable = 0
for i in range(man):
  if hight[i] >= border:
    enable +=1

print(enable)
Problem p02909 (python)

Fixed submission:
s = input()
if s == "Sunny":
  print("Cloudy")
elif s == "Cloudy":
  print("Rainy")
else:
  print("Sunny")

Buggy submission (verdict: Runtime Error):
s = input()
if s == "Sunny":
  print("Cloudy")
elseif s == "Cloudy":
  print("Rainy")
else:
  print("Sunny")
Problem p02910 (python)

Fixed submission:
S = list(map(str, input()))
unreadble = 0
for i in range(len(S)):
  if i % 2 == 0:
    if S[i] == "L":
      unreadble += 1
  else:
    if S[i] == "R":
  	  unreadble += 1
if unreadble >= 1:
  print("No")
else:
  print("Yes")

Buggy submission (verdict: Runtime Error):
S = list(map(str, input()))
for i in range(len(S)):
  if i % 2 == 0:
    if S[i] == "L":
      unreadble += 1
  else:
    if S[i] == "R":
  	  unreadble += 1
if unreadble >= 1:
  print("No")
else:
  print("Yes")

Buggy submission (verdict: Runtime Error):
S = list(map(str, input()))
for i in range(len(S)):
  if i % 2 == 0:
    if S[i] == "L":
      print("No")
  else:
    if S[i] == "R":
      print("No")
print("Yes)
Problem p02885 (python)

Fixed submission:
s = list(map(int, input().split()))
A = s[0] 
B = s[1]
result = A - B * 2
if result < 0:
    result = 0
print(result)

Buggy submission (verdict: Runtime Error):
s = int(input())
s[0] = A
s[1] = B
result = A - B * 2
if result < 0:
    result = 0
print(result)
Problem p02909 (python)

Fixed submission:
str = input()
week_whether = {'Sunny':0, 'Cloudy':1, 'Rainy':2}
weel_labels = {0:'Sunny',1:'Cloudy', 2: 'Rainy'}
print(weel_labels[(week_whether[str] + 1)%3])

Buggy submission (verdict: Runtime Error):
str = input()
week_whether = {'Sunny':0, 'Cloudy':1, 'Rainy':2}
weel_labels = {0:'Sunny',1:'Cloudy', 2: 'Rainy'}
print(weel_labels[week_whether[str] + 1])
Problem p02957 (python)

Fixed submission:
s = list(map(int, input().split()))
A = s[0]
B = s[1]
result = abs(A - B)
if result % 2 ==0:
    print(int(min(A,B) + result/2))
else:
    print('IMPOSSIBLE')

Buggy submission (verdict: Runtime Error):
s = list(map(int, input.split()))
A = s[0]
B = s[1]
result = (A + B)
if result % 2 ==0:
    print(result/2)
else:
    print('IMPOSSIBLE')

Buggy submission (verdict: Runtime Error):
s = list(map(int, input.split()))
A = s[0]
B = s[1]
result = (A + B)
if result % 2 ==0:
    print(result)
else:
    print('IMPOSSIBLE')
Problem p02886 (python)

Fixed submission:
import math
n = int(input())
d = list(map(int,input().split()))
li=[]
li2=[]
for i in range(n):
  for j in range(n):
    a = d[i]*d[j]
    li.append(a)
b = sum(li)
for k in range(n):
  c=d[k]**2
  li2.append(c)
d=sum(li2)
b -= d
print(math.floor(b/2))

Buggy submission (verdict: Runtime Error):
n=int(input())
d = list(map(int,input().split()))
li=[]
for i in n:
  for j in n:
    a=d[i]*d[j]
    li.append(a)
b=sum(li)
print(b/2)
Problem p02887 (python)

Fixed submission:
n=int(input())
s=list(input())
a=[]
a.append(s[0])
for i in range(n-1):
  if s[i] != s[i+1]:
    a.append(s[i+1])
  else:
    continue
print(len(a))

Buggy submission (verdict: Runtime Error):
n=int(input())
s=list(input())
a=[]
a.append(s[0])
for i in range(n):
  if s[i] != s[i+1]:
    a.append(s[l+1])
  else:
    continue
print(len(a))

Buggy submission (verdict: Runtime Error):
n=int(input())
s=list(input())
a=[]
a.append(s[0])
for i in range(n-1):
  if s[i] != s[i+1]:
    a.append(s[l+1])
  else:
    continue
print(len(a))

Buggy submission (verdict: Runtime Error):
n=int(input())
s=list(input())
for i in range(n-1):
  if s[i] == s[i+1]:
    del s[i+1]
  else:
    continue
print(len(s))
Problem p02922 (python)

Fixed submission:
a,b = map(int,input().split())
now=1
ans=0
while now < b:
  now = now - 1 + a
  ans += 1
print(ans)

Buggy submission (verdict: Runtime Error):
a,b = map(int,input().split())
now=1
ans=0
while now < b:
  for i in range(21):
    now = naw - 1 + a
    ans += 1
print(ans)
Problem p02923 (python)

Fixed submission:
from itertools import groupby
n=int(input())
h = list(map(int,input().split()))
p=[]
ans=[0]
for i in range(n-1):
  if h[i] >= h[i+1]:
    p.append(1)
  else:
    p.append(0)
for key, value in groupby(p):
  ans.append(sum(value))
print(max(ans))

Buggy submission (verdict: Runtime Error):
from itertools import groupby
n=int(input())
h = list(map(int,input().split()))
p=[]
ans=[]
for i in range(n-1):
  if h[i] >= h[i+1]:
    p.append(1)
  else:
    p.append(0)
for key, value in groupby(p):
  ans.append(sum(value))
print(max(ans))

Buggy submission (verdict: Runtime Error):
from itertools import groupby
n=int(input())
h = list(map(int,input().split()))
p=[]
ans=[]
for i in range(n):
  if h[i] >= h[i+1]:
    p.append(1)
  else:
    p.append(0)
for key, value in groupby(p):
  ans.append(sum(value))
print(max(ans))

Buggy submission (verdict: Runtime Error):
from itertools import groupby
n=int(input())
h = list(map(int,input().split()))
p=[]
ans=[]
for i in range(n):
  if h[i] >= h[h+1]:
    p.append(1)
  else:
    p.append(0)
for key, value in groupby(p):
  ans.append(sum(value))
print(max(ans))

Buggy submission (verdict: Runtime Error):
n=int(input())
h = list(map(int,input().split()))
li=[]
ans=0
for i in range(n):
  for j in range(n):   
    while h[i] > h[i+1]:
      ans+=1
    li.append(ans)
    ans=0
print(max(li))
Problem p02946 (python)

Fixed submission:
K,X = map(int,input().split())
A=X-K+1
B=X+K-1
L=[]
for i in range(A,B+1):
  if i > 1000000 or i < -1000000:
    continue
  L.append(str(i))
print(*L)

Buggy submission (verdict: Runtime Error):
K = int(input())
X = int(input())
A=X-K+1
B=X+K-1
L=[]
for i in range(A,B):
  if i > 1000000 or i < -1000000:
    continue
  L.attend(str(i))
print(*L)

Buggy submission (verdict: Runtime Error):
K = int(input())
X = int(input())
A=X-K+1
B=X+K-1
L=[]
for i in range(A,B):
  if i > 1000000 or i < -1000000:
    continue
  L.attend(i)
print(*L[0])

Buggy submission (verdict: Runtime Error):
K = int(input())
X = int(input())
A=X-K+1
B=X+K-1
L=[]
for i in range(A,B):
  if i > 1000000 or i < -1000000:
    continue
  L.attend(i)
print(*L)
Problem p02971 (python)

Fixed submission:
n=int(input())
l1=[int(input()) for i in range(n)]
l2=sorted(l1)
max1=l2[-1]
max2=l2[-2]
for i in l1:
  if i == max1:
    print(max2)
  else:
    print(max1)

Buggy submission (verdict: Runtime Error):
n=int(input())
list=[int(input()) for i in range(n)]

for i in range(n):
  listA=list.remove[i]
  print(max(listA))
Problem p03059 (python)

Fixed submission:
li = input().split()
A=int(li[0])
B=int(li[1])
T=int(li[2])
s=T//A*B
print(s)

Buggy submission (verdict: Runtime Error):
li = input().split()
s=(int(li[2])*int(li[1])/int(li[0])
print(str(s))
Problem p03060 (python)

Fixed submission:
n = int(input())
vli = list(map(int,input().split()))
cli = list(map(int,input().split()))
ans = 0
for i in range(n):
  s=vli[i] - cli[i]
  if s>0:
    ans+=s
print(ans)

Buggy submission (verdict: Runtime Error):
n = input()
vli = list(map(int,input().split()))
cli = list(map(int,input().split()))
for i in n:
  sli = []
  sli.append(vli[i] - cli[i])
for j in n:
  ans = []
  if sli[j] > 0:
    ans.append(sli[j])
answer = sum(ans)    
print(answer)

Buggy submission (verdict: Runtime Error):
n=input()
vli = list(map(int,input().split()))
cli = list(map(int,input().split()))
for i in n:
  sli=[]
  sli.append(vli[i]-cli[i])
for j in n:
  ans=[]
  if sli[j]>0:
    ans.append(sli[j])
print(sum(ans))
Problem p03125 (python)

Fixed submission:
x,y = map(int,input().split())
if y % x == 0:
  print(str(x + y))
else:
  print(str(y - x))

Buggy submission (verdict: Runtime Error):
x,y = map(int(input()))
if x % y == 0:
  print(str(x + y))
else:
  print(str(x - y))
Problem p03139 (python)

Fixed submission:
num = list(map(int,input().split()))
if num[1] > num[2]:
  a = num[2]
else:
  a = num[1]
b = num[1] + num[2] - num[0]
if b < 0:
  b = 0
print(str(a) + " " + str(b))

Buggy submission (verdict: Runtime Error):
num = list(map(int,input().split()))
if num[1] > num[2]:
  a = num[2]
else:
  a = num[1]
b = num[1] + num[2] - num[0]
print(a + " " + b)
Problem p03147 (python)

Fixed submission:
N=int(input())
x=[int(i) for i in input().split()]
x.append(0)
cnt=0
while x.count(0)!=N+1:
    for i in range(N):
        if x[i+1]==0 and x[i]>0:
            cnt+=1
        if x[i]>0:
            x[i]-=1
print(cnt)

Buggy submission (verdict: Runtime Error):
n = int(input())
li = list(map(int,input().split()))
ans = 0
for i in range(n):
  if li[i - 1] == 0:
    del li[i - 1]
    n = len(li)
  else:
    ans += li[i - 1]
    for j in range(n):
      li[j - 1] -= 1
print(str(ans))
Problem p02910 (python)

Fixed submission:
s = input()
if 'L' in s[0::2] or 'R' in s[1::2]:
  print('No')
else:
  print('Yes')

Buggy submission (verdict: Runtime Error):
s = input()
for i in range(length(s)):
  if i%2 == 1:
    if not(s[i] == 'R' or s[i] == 'U' or s[i] == 'D'):
      print('No')
      exit()
  if i%2 == 0:
    if not(s[i] == 'L' or s[i] == 'U' or s[i] == 'D'):
      print('No')
      exit()
print('Yes')
Problem p02923 (python)

Fixed submission:
n = int(input())
h = [int(i) for i in input().split()]
tinpo = [0]
count = 0

for i in range(n-1):
  if h[i] >= h[i+1]:
    count += 1
  else:
    tinpo.append(count)
    count = 0
  if i == n-2:
    tinpo.append(count)

print(max(tinpo))

Buggy submission (verdict: Runtime Error):
n = int(input())
h = [int(i) for i in input().split()]
tinpo = []
count = 0

for i in range(n-1):
  if h[i] >= h[i+1]:
    count += 1
  else:
    tinpo.append(count)
    count = 0
  if i == n-2:
    tinpo.append(count)

print(max(tinpo))
Problem p02969 (python)

Fixed submission:
r = int(input())
print(3 * r**2)

Buggy submission (verdict: Runtime Error):
r = int(input())
print(3 * a**2)
Problem p02993 (python)

Fixed submission:
s = input()
if s[0] == s[1] or s[1] == s[2] or s[2] == s[3]:
  print("Bad")
else:
  print("Good")

Buggy submission (verdict: Runtime Error):
s = input()
if s[0] == s[1] or s[1] == s[2] or s[2] == s[3]:
  print(Bad)
else:
  print(Good)

Buggy submission (verdict: Runtime Error):
s = input()
bad = False
for i in range(len(s))[1:]:
  if s[i] == s[i-1]:
    bad = True
    break:

if bad:
  print(Bad)
else:
  print(Good)

Buggy submission (verdict: Runtime Error):
s = input()
for i in range(len(s))[1:]:
  if s[i] == s[i-1]:
    print(Bad)
    break:
print(Good)
Problem p02999 (python)

Fixed submission:
x, a = (int(i) for i in input().split())  
if x < a:
  print(0)
else:
  print(10)

Buggy submission (verdict: Runtime Error):
x, a = (int(i) for i in input().split())  
if x < a:
  print(0)
else:
  pritn(10)
Problem p03001 (python)

Fixed submission:
w, h, x, y = (int(i) for i in input().split())
S = w * h / 2
a = 0
if x*2 == w and y*2 == h:
  a = 1
print(S, a)

Buggy submission (verdict: Runtime Error):
w, h, x, y = (int(i) for i in input().split())
S = w * h / 2
a = 0
if w//2 == x and h//2 == y:
  a = 1
print(S+" "+a)