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

Fixed submission:
import sys
input = sys.stdin.readline

def main():
    x = int(input())
    for i in range(-1000, 1000):
        for j in range(-1000, 1000):
            if x == i**5 - j**5:
                print(i, j)
                break
        else:
            continue
        break

if __name__ == '__main__':
    main()

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

def main():
    X = int(input())

    i = 0
    while True:
        a = (X + i**5)**(1/5)
        if a.is_integer():
            print(str(int(a))+' '+str(i))
            break
        a = (X - i**5)**(1/5)
        if a.is_integer():
            print(str(int(a))+' '+str(-i))
            break
        i += 1

if __name__ == '__main__':
    main()
Problem p02691 (python)

Fixed submission:
import sys
input = sys.stdin.readline

def main():
    n = int(input())
    a_list = list(map(int, input().split()))
    c = [0] * n
    s = 0
    for i, a in enumerate(a_list):
        if i+a < n:
            c[i+a] += 1
        if i-a >= 0:
            s += c[i-a]
    print(s)

if __name__ == '__main__':
    main()

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

def main():
    n = int(input())
    a_list = list(map(int, input().split()))
    c = [0] * n
    s = 0
    for i, a in enumerate(a_list):
        if i+a < n:
            d[i+a] += 1
        if i-a >= 0:
            s += d[i-a]
    print(s)

if __name__ == '__main__':
    main()
Problem p02687 (python)

Fixed submission:
S = input()

if S == "ABC":
  print("ARC")
else:
  print("ABC")

Buggy submission (verdict: Runtime Error):
if S = "ABC":
  print "ARC"
else:
  print "ABC"

Buggy submission (verdict: Runtime Error):
if S = "ABC"{
  print("ARC")
}else{
  print("ABC")

Buggy submission (verdict: Runtime Error):
ABC = S
ARC = S
Problem p02741 (python)

Fixed submission:
k=int(input())
l=[1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
print(l[k-1])

Buggy submission (verdict: Runtime Error):
a,b=list(map(int,input().split()))
if a==1 or b==1:
    print(1)
else:
    print((a*w+1)//2)
Problem p02687 (python)

Fixed submission:
S = input()
if S == 'ARC':
  print("ABC")
else:print('ARC')

Buggy submission (verdict: Runtime Error):
S = input()
if S == 'ARC:
  print("ABC")
else:print('ARC')

Buggy submission (verdict: Runtime Error):
if S == ABC:
  print(ARC)
 
else:print(ABC)
Problem p03719 (python)

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

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

if a < c and c < b:
  print("Yes")
else:
  print("No")
Problem p02687 (python)

Fixed submission:
s = list(input())
 
if s[1] == 'B':
  s[1] = 'R'
else: 
  s[1] = 'B'
  
print("".join(s))

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

if s[1] == 'B':
  s[1] = 'R'
else: 
  s[1] = 'B'
  
print(s)
Problem p02717 (python)

Fixed submission:
x, y, z = map(int, raw_input().split())
  
print(str(z)+" "+str(x)+" "+str(y))

Buggy submission (verdict: Runtime Error):
x, y, z = map(int, raw_input().split())
  
print(z+" "+x+" "+y)
Problem p02909 (python)

Fixed submission:
s = str(raw_input())
w = ['Sunny', 'Cloudy', 'Rainy']
i = w.index(s)
if i < 2:
    print(w[i+1])
else:
    print(w[0])

Buggy submission (verdict: Runtime Error):

n,k,q = map(int, raw_input().split())
import numpy as np

vec = np.full(n, k, dtype=int)
for i in range(q):
  ind = np.full(n, 1, dtype=int)
  a = int(raw_input())
  ind[a-1] = 0
  vec = vec - ind
  
print('Yes' if i > 0 in vec else 'No')

Buggy submission (verdict: Runtime Error):
s = str(raw_input())
w = ['Sunny', 'cloudy', 'Rainy']
i = w[w.index(s)]
if i < 2:
    print(w[i]+1)
else:
    print(w[0])

Buggy submission (verdict: Runtime Error):
s = str(raw_input())
w = ['Sunny', 'cloudy', 'Rainy', 'Sunny']
print(w[w.index(s)+1])
Problem p02921 (python)

Fixed submission:
s= str(raw_input())
t= str(raw_input())

c = 0
for i in range(3):
    if s[i] == t[i]:
        c += 1
print(c)

Buggy submission (verdict: Runtime Error):
import math
a, b = map(int, raw_input().split())
i = 0
if a == b:
    print(1)
else:
    while True:
        if (a-1)*i>=b:
            break
        i +=1
    print(i)
Problem p02957 (python)

Fixed submission:
l = map(int, raw_input().split())
a = l[0]
b = l[1]
c = int(a + b)

def judge_int():
    if c % 2 == 0:
        return c/2
    elif c % 2 != 0:
        return "IMPOSSIBLE"

print(judge_int())

Buggy submission (verdict: Runtime Error):
a = input('A: ')
b = input('B: ')
c = int(a + b)

def judge_int():
    if c % 2 == 0:
        return c/2
    elif c % 2 != 0:
        return "IMPOSSIBLE"

print(judge_int())

Buggy submission (verdict: Runtime Error):
a = input('A: ')
b = input('B: ')
c = int(a + b)

def judge_int():
    if c % 2 == 0:
        return c/2
    elif c % 2 != 0:
        return "IMPOSSIBLE"

print(judge_int())
Problem p02969 (python)

Fixed submission:
r = int(raw_input())
print(3*r*r)

Buggy submission (verdict: Runtime Error):
n = int(raw_input())
a = []
for i in range(n):
    a.append(int(raw_input()))

b = [ 0 if i == max(a) else i for i in a ]
if max(b) == 0:
    b = [ max(a) if i == max(a) else i for i in a ]

print([ max(b) if i == max(a) else max(a) for i in a ])
Problem p02812 (python)

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

print(S.count("ABC"))

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

str_list = list(S)

count = 0
for i in range(len(str_list)):
    string = str_list[i]
    if string == 'A':
        i += 1
        string = str_list[i]
    if string == 'B':
        i += 1
        string = str_list[i]
    if string == 'C':
        count += 1

print(count)
Problem p03478 (python)

Fixed submission:
n = list(map(int,input().split()))
ans = 0
count = 0
for i in range(n[0]+1):
    j = i
    ans = 0
    while(i is not 0):
        ans = ans + i%10
        i = int(i/10)
    if ans >= n[1] and ans <= n[2]:
        count = count +j
print(count)

Buggy submission (verdict: Runtime Error):
n,a,b = (int(input()) for i in range(3))
ans = 0
count = 0
for i in range(n+1):
    j = i
    ans = 0
    while(i is not 0):
        ans = ans + i%10
        i = int(i/10)
    if ans >= a and ans <= b:
        count = count +j
print(count)
Problem p02687 (python)

Fixed submission:
S = input()
if S == 'ABC' :
    Next = 'ARC'
else :
    Next = 'ABC'
print (Next)

Buggy submission (verdict: Runtime Error):
N,M = map(int,input().split())
H = list(map(int,input().split()))
P = [0] * N
for i in range(M) :
    q = list(map(int,input().split()))
    p = P[q[0]-1]
    h = H[q[1]-1]
    if p < h :
        P[q[0]-1] = H[q[1]-1]
    if p > h :
        P[q[1]-1] = H[q[0]-1]

R = 0
for i in range(N) :
    if H[i] > P[i] :
        R += 1
print(R)

Buggy submission (verdict: Runtime Error):
N,M = map(int,input().split())
H = list(map(int,input().split()))
P = [0] * N
for i in range(M) :
    q = list(map(int,input().split()))
    p = P[q[0]-1]
    h = H[q[1]-1]
    if p < h :
        P[q[0]-1] = H[q[1]-1]
    if p > h :
        P[q[1]-1] = H[q[0]-1]

R = 0
for i in range(N) :
    if H[i] > P[i] :
        R += 1
print(R)

Buggy submission (verdict: Runtime Error):
S = input()
if S == 'ABC' :
    Next = 'ARC'
else :
    Next = 'ABC'
print Next
Problem p02705 (python)

Fixed submission:
import math
r = int(input())
print(2 * r * math.pi)

Buggy submission (verdict: Runtime Error):
import math
R = int(input())
print(2 * R * math.pi
Problem p02761 (python)

Fixed submission:
import math

n,m = map(int, input().rstrip().split())

value = 0
s = [-1] * n

for i in range(m) :
    si,ci = map(int,input().rstrip().split())
    if s[si-1] == -1 :
        s[si-1] = ci
    elif s[si-1] != ci :
        value = -1
        break
    else :
        continue

if s[0] == 0 and n > 1:
    value = -1

for i in range(n) :
    if s[i] == -1 :
      if i == 0 and n > 1:
        s[i] = 1
      else :
        s[i] = 0 
if value != -1 :
    for i in range(n) :
        value = value * 10 + s[i] 
print(value)

Buggy submission (verdict: Runtime Error):
import math

n,m = map(int, input().rstrip().split())

value = 0
s = [-1] * n

for i in range(m) :
    si,ci = map(int,input().rstrip().split())
    if s[si-1] == -1 :
        s[si-1] = ci
    elif s[si-1] != ci :
        print(-1)
        sys.exit()
    else :
        continue

if s[0] == 0 and n > 1:
    print(-1)
    sys.exit()
if s[0] == -1 :
    s[0] = 1
for i in range(n) :
    if s[i] == -1 :
        s[i] = 0 
if value != -1 :
    for i in range(n) :
        value = value * 10 + s[i] 
print(value)
Problem p02690 (python)

Fixed submission:
import math
x = int(input())
foo = 0;
for i in range(-120 , 120):
  if foo == 1:
      break;
  for j in range(-120 , 120):
    if(math.pow(i , 5) - math.pow(j , 5) == x):
      print(i , " " , j)
      foo = 1;
      break;

Buggy submission (verdict: Runtime Error):
x = int(raw_input())
for i in range(-120 , 120):
  for j in range(-120 , 120):
    if(math.pow(i , 5) - math.pow(j , 5) == x):
      print(i , " " , j)
      break

Buggy submission (verdict: Runtime Error):
x = int(raw_input())
for i in range(-100 , 100):
  for j in range(-100 , 100):
    if(math.pow(i , 5) - math.pow(j , 5) == x):
      print(i , " " , j)
      break
Problem p02687 (python)

Fixed submission:
s = input()
print("ABC" if s=="ARC" else "ARC")

Buggy submission (verdict: Runtime Error):
s = inport()
print("ABC" if s=="ARC" else "ARC")

Buggy submission (verdict: Runtime Error):
inpo=inport()
for i in inpo:
  if i=="B":
    print("R",end="")
  elif i=="R":
    print("B",end="")
  else:
    print(i,end="")

Buggy submission (verdict: Runtime Error):
inpo=inport()
for i in inpo:
  if i=="B":
    print("R",end="")
  elif i=="R":
    print("B",end="")
  else:
    print(i)

Buggy submission (verdict: Runtime Error):
inpo=inport()
for i in inpo:
  if i=="B":
    print("R")
  elif i=="R":
    print("B")
  else:
    print(i)
Problem p02705 (python)

Fixed submission:
r=int(input())
import math
print(2*math.pi*r)

Buggy submission (verdict: Runtime Error):
R=int(input())
print(2*π*R)

Buggy submission (verdict: Runtime Error):
R=int(inport())
print(R**2)
Problem p03997 (python)

Fixed submission:
a=int(input())
b=int(input())
h=int(input())
print(int((a+b)*h/2))

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

print((a+b)*h/2)

Buggy submission (verdict: Runtime Error):
a=int(input())
b=int(input())
c=int(input())
print((a+b)*h/2)
Problem p02741 (python)

Fixed submission:
k = int(input())
l = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
print(l[k-1])

Buggy submission (verdict: Runtime Error):
import numpy as np
a,b,c = map(int,input().split())
if np.sqrt(c) - np.sqrt(a) - np.sqrt(b) > 0:
  print('Yes')
else:
  print('No')
Problem p02742 (python)

Fixed submission:
h,w = map(int,input().split())
if min(h,w) == 1:
	print(1)
else:
	print(h*w-(h*w//2))

Buggy submission (verdict: Runtime Error):
h,w = map(int,input().split)
print(h*w-(h*w//2))
Problem p02743 (python)

Fixed submission:
a,b,c = map(int,input().split())
if (c-a-b > 0) & (4*a*b < (c-a-b) ** 2):
  print('Yes')
else:
  print('No')

Buggy submission (verdict: Runtime Error):
import numpy as np
a,b,c = map(int,input().split())
if np.sqrt(c) - np.sqrt(a) - np.sqrt(b) > 0
  print('Yes')
else:
  print('No')
Problem p03128 (python)

Fixed submission:
n,m = map(int, input().split())
a = [int(a) for a in input().split()]
l = [0,2,5,5,4,5,6,3,7,6]
a.sort(reverse=True)
dp = [0]+[-1]*n
for i in range(1,n+1):
    for j in a:
        if l[j] <= i:
            dp[i] = max(dp[i], dp[i-l[j]]*10+j)
print(dp[-1])

Buggy submission (verdict: Runtime Error):
n_dic = {1:2,2:5,3:5,4:4,5:5,6:6,7:3,8:7,9:6}
n,m = map(int,input().split())
l = list(map(int,input().split()))
dic = {}
for i in l:
    if n_dic[i] not in dic or dic[n_dic[i]] < i:
        dic[n_dic[i]] = i
if n % min(dic) == 0:
    ans = str(dic[min(dic)]) * int(n / min(dic))
else:
    ans = str(dic[min(dic)]) * int(n / min(dic))
    sub = n - min(dic) * int(n / min(dic))
    ind = 0
    while sub > 0 and ind < len(ans):
        dif = 0
        v = int(ans[ind])
        for i in range(min(dic) + 1,min(dic) + sub + 1):
            if i in dic and int(dic[i]) > v:
                v = dic[i]
                dif = i - min(dic)
        sub -= dif
        ans = ans[:ind] + str(v) + ans[ind+1:]
        ind += 1
ind = 1
while sub != 0:
    for i in range(sub):
        if min(dic) + sub - i in dic:
            ans = ans[:-ind] + str(dic[min(dic) + sub - i]) + ans[len(ans) - ind + 1:]
            sub -= sub-i
            break
    ind += 1
print(ans)
Problem p03160 (python)

Fixed submission:
n = int(input())
h = list(map(int,input().split()))
ans = [0] * n
ans[1] = abs(h[1] - h[0])
for i in range(2,n):
  ans[i] = min(abs(h[i] - h[i-1]) + ans[i-1], abs(h[i] - h[i-2]) + ans[i-2])
print(ans[-1])

Buggy submission (verdict: Runtime Error):
n = int(input())
h = list(map(int,input().split()))
 
ans = [0] * n
ans[1] = abs(h[1] - h[0])
for i in range(2,n):
  ans[i] = min(abs(h[i] - h[i-1]) + ans[i-1], abs(h[i] - h[i-2]) + ans[i-2])
print(a[-1])
Problem p03282 (python)

Fixed submission:
S = input()
K = int(input())
l = 0
for i in S:
  if i == '1':
    l+=1
    if l >= K:
      break
  else:
    break
print(i)

Buggy submission (verdict: Runtime Error):
S = input()
K = int(input())
l = 0
for i in S:
  if i == '1':
    l+=1
  	if l >= K:
      print(1)
      break
  else:
    print(int(i))
    break

Buggy submission (verdict: Runtime Error):
S = input()
K = int(input())
l = 0
for i in S:
  if i == '1':
    l+=1
  	if l >= K:
      print(1)
      break
  else:
    print(i)
    break
Problem p03289 (python)

Fixed submission:
S = input()
print('AC' if S[0] == 'A' and S[2:-1].count('C') == 1 and S[1] != 'C' and S[1:].replace('C','').islower() else 'WA')

Buggy submission (verdict: Runtime Error):
S = int(input())
print('AC' if S[0] == 'A' and S[2:-1].count('C') == 1 and S[1:].replace('C','').islower() else 'WA')
Problem p03102 (python)

Fixed submission:
tmp = input()
N = int(tmp.split(' ')[0])
M = int(tmp.split(' ')[1])
C = int(tmp.split(' ')[2])
B = [int(b) for b in input().split(' ')]
cnt = 0
for i in range(N):
  A = [int(a) for a in input().split(' ')]
  sum = C
  for j in range(M):
    sum += B[j]*A[j]
  if sum > 0:
    cnt += 1
print(cnt)

Buggy submission (verdict: Runtime Error):
tmp = input()
N = int(input().split(' ')[0])
M = int(input().split(' ')[1])
C = int(input().split(' ')[2])
B = [int(b) for b in input().split(' ')]
cnt = 0
for i in range(N):
  A = [int(a) for a in input().split(' ')]
  sum = 0
  for j in range(M):
    sum += B[j]*A[j]
  sum += C
  if C > 0:
    cnt += 1
print(cnt)

Buggy submission (verdict: Runtime Error):
tmp = input()
N = int(input().split()[0])
M = int(input().split()[1])
C = int(input().split()[2])
B = [int(b) for b in input().split()]
cnt = 0
for i in range(N):
  A = [int(a) for a in input().split()]
  sum = 0
  for j in range(M):
    sum += B[j]*A[j]
  sum += C
  if C > 0:
    cnt += 1
print(cnt)

Buggy submission (verdict: Runtime Error):
tmp = input()
N = int(input().split()[0])
M = int(input().split()[1])
C = int(input().split()[2])
tmp = input()
B = [int(b) for b in tmp.split()]
cnt = 0
for i in range(N):
  tmp = input()
  A = [int(a) for a in tmp.split()]
  sum = 0
  for j in range(M):
    sum += B[j]*A[j]
  sum += C
  if C > 0:
    cnt += 1
print(cnt)
Problem p03103 (python)

Fixed submission:
tmp = input()
N = int(tmp.split()[0])
M = int(tmp.split()[1])
AB = []
for i in range(N):
	tmp = input()
	AB.append([int(tmp.split()[0]),int(tmp.split()[1])])

AB.sort()

cnt=0
total=0
i = 0
while cnt < M:
	cnt += AB[i][1]
	total += AB[i][0]*AB[i][1]
	i+=1
total -=  AB[i-1][0]*(cnt-M)
print(total)

Buggy submission (verdict: Runtime Error):
tmp = input()
N = int(tmp.split()[0])
M = int(tmp.split()[1])
A = []
B = []
for i in range(N):
	tmp = input()
	A[i] = int(tmp.split()[0])
	B[i] = int(tmp.split()[1])

cnt=0
total=0
while cnt < M:
	mini = N
	minv = 999999999999999
	for i in range(N):
		if minv > A[i]:
			minv = A[i]
			mini = i
	cnt += B[mini]
	total += A[mini]*B[mini]
	A[mini] = 999999999999999
total -= minv*(cnt-M)
print(total)

Buggy submission (verdict: Runtime Error):
tmp = input()
N = int(tmp.split()[0])
M = int(tmp.split()[1])
A = []
B = []
for i in range(N):
	tmp = input()
	A[i] = int(tmp.split()[0])
	B[i] = int(tmp.split()[1])

minv = 100000000000
cnt=0
total=0
while cnt < M:
	mini = N
	for i in range(N):
		if minv > A[i]:
			minv = A[i]
			mini = i
	cnt += B[mini]
	total = A[mini]*B[mini]
	A[mini] = 1000000000000
total -= minv*(cnt-M)
print(total)
Problem p02705 (python)

Fixed submission:
import math
R = int(input())
print(2*math.pi*R)

Buggy submission (verdict: Runtime Error):
import math
X = 2*R*math.pi

Buggy submission (verdict: Runtime Error):
input_line = int(input(R))
gaishuu = 2*3.1415*input_line
input(gaishuu)

Buggy submission (verdict: Runtime Error):
X = 2*3.1415926535*R
print(X)
Problem p03059 (python)

Fixed submission:
a, b, t = map(int, input().split())
times = t // a
print(times*b)

Buggy submission (verdict: Runtime Error):
import math

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

for i in range(n):
    if i == 0:
        b = a[1:]
    elif i == n-1:
        b = a[:n-1]
    else:
        tmp1 = a[:i]
        tmp2 = a[i+1:]
        b = []
        b.extend(tmp1)
        b.extend(tmp2)
    current = b[0]
    for j in range(n-1):
        current = math.gcd(current, b[j])
    if max < current:
        max = current
print(max)
Problem p02687 (python)

Fixed submission:
S = input()
if S == 'ABC':
  print('ARC')
else:
  print('ABC')

Buggy submission (verdict: Runtime Error):
if S == 'ABC':
	print('ARC')
else:
  print('ABC')
Problem p02687 (python)

Fixed submission:
s = input()
d = {"ABC":"ARC", "ARC":"ABC"}
print(d[s])

Buggy submission (verdict: Runtime Error):
s = raw_input()
print({"ARC":"ABC", "ABC":"ARC"}[s])
Problem p02898 (python)

Fixed submission:
N, K = map(int, input().split(' '))
h_list = list(map(int, input().split(' ')))
print(sum([h>=K for h in h_list]))

Buggy submission (verdict: Runtime Error):
N, K = map(int, input().split(' '))
h_list = list(map(int, input().split(' ')))
print(sum([h>h_list for h in h_list]))
Problem p03071 (python)

Fixed submission:
[A,B] = [int(e) for e in input().split()]
 
if A==B:
  print(A+B)
else:
  print(2*max([A,B])-1)

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

if A==B:
  print(A+B)
elif:
  print(2*max([A,B])-1)
Problem p02717 (python)

Fixed submission:
x,y,z=map(int,input().split())
print(str(z)+" "+str(x)+" "+str(y))

Buggy submission (verdict: Runtime Error):
x,y=input().split()
z=input()
print(z,x,y)
Problem p02747 (python)

Fixed submission:
S=input()
if S=='hi' or S=='hihi' or S=='hihihi' or S=='hihihihi' or S=='hihihihihi':
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
S=input()
if S=='hi' orS=='hihi' or S=='hihihi' or S=='hihihihi' or S=='hihihihihi':
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
S=input()
if S==hi or S==hihi or S==hihihi or S==hihihihi or S==hihihihihi:
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
S=input()
if S==hi orS==hihi or S==hihihi or S==hihihihi or S==hihihihihi:
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
a=int(input())
b=int(input())
print(6-(a+b))

Buggy submission (verdict: Runtime Error):
s=str(input())
if s=="hi" or s=="hihi" s=="hihihi" or s=="hihihihi" or s=="hihihihihi":
  print('Yes')
else:
  print('No')

Buggy submission (verdict: Runtime Error):
s=input()
if s==hi or s==hihi or s==hihihi or s==hihihihi or s==hihihihihi:
  print('Yes')
else:
  print('No')
Problem p02841 (python)

Fixed submission:
m1,d1=map(int,input().split())
m2,d2=map(int,input().split())
if d2==1:
  print(1)
else:
  print(0)

Buggy submission (verdict: Runtime Error):
d1,d2,m1,m2=map(int,input().split())

if d2==1:
  print(1)
else:
  print(0)

Buggy submission (verdict: Runtime Error):
m1,m2,d1,d2=map(int,input().split())
if d2==1 and (d2-d1==1 or d2-d1==-11):
  print(1)
else:
  print(0)
Problem p02885 (python)

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

if a-2*b>0:
  print(a-2*b)
else:
  print(0)

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

if a-2b > 0:
  print(a-2b)
else:
  print(0)

Buggy submission (verdict: Runtime Error):
a,b=map(int,input().split())
if a-2b>0:
  print(a-2b)
else:
  print(0)
Problem p02898 (python)

Fixed submission:
N,K=map(int,input().split())
h=input().split()
S=0

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

print(S)

Buggy submission (verdict: Runtime Error):
N,K=map(int,input().split())
h=input().split()
c=0

for i in range(M):
  if int(h[i])>K:
    c+=1
print(c)
Problem p02909 (python)

Fixed submission:
S=input()
list=['Sunny','Cloudy','Rainy']

if S==list[0]:
  print(list[1])
elif S==list[1]:
  print(list[2])
else:
  print(list[0])

Buggy submission (verdict: Runtime Error):
S=input()
if S==Sunny:
  print('Cloudy')
elif S==Rainy:
  print('Sunny')
else:
  print('Rainy')

Buggy submission (verdict: Runtime Error):
S=str(input())
if S==Sunny:
  print('Cloudy')
elif S==Rainy:
  print('Sunny')
else:
  print('Rainy')
Problem p03085 (python)

Fixed submission:
b=input()
if b=="A":
  print("T")
elif b=="T":
  print("A")
elif b=="G":
  print("C")
elif b=="C":
  print("G")

Buggy submission (verdict: Runtime Error):
b=int(input())
if b=="A":
  print("T")
elif b=="T":
  print("A")
elif b=="G":
  print("C")
elif b=="C":
  print("G")
Problem p03145 (python)

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

print((a*b)//2)

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

Fixed submission:
n=int(input())
if n==1:
  print("Hello World")
else:
  a=int(input())
  b=int(input())
  print(a+b)

Buggy submission (verdict: Runtime Error):
n=int(input())
a,b=map(int,input().split())
if n==1:
  print("Hello World")
else:
  print(a+b)

Buggy submission (verdict: Runtime Error):
n=int(input())
if n=="1":
  print("Hello World")
else:
  a=int(input())
  b=int(input())
  print(a+b)

Buggy submission (verdict: Runtime Error):
n=int(input())
if n=="1":
  print("Hello World")
else:
  a,b=map(int,input().split())
  print(a+b)

Buggy submission (verdict: Runtime Error):
n=int(input())
a,b=map(int,input().split())
if n=="1":
  print("Hello World")
else:
  print(a+b)

Buggy submission (verdict: Runtime Error):
n=input()
if n=="1":
  print("Hello World")
else:
  a,b=map(int,input().split())
  print(a+b)

Buggy submission (verdict: Runtime Error):
n=input()
a,b=map(int,input().split())
if n=="1":
  print("Hello World")
elif n=="2":
  print(a+b)

Buggy submission (verdict: Runtime Error):
n=input()
a,b=map(int,input().split())
if n=="1":
  print("Hello World")
else:
  print(a+b)
Problem p03284 (python)

Fixed submission:
n,k=map(int,input().split())

if n%k==0:
  print(n%k)
else:
  print(1)

Buggy submission (verdict: Runtime Error):
N,K=map(int,input().split())
if N>=1 and 100>=K and N%K==0:
  print(0)
elif N>=1 and 100>=K and N%K == !0:
  print(N%K)
Problem p03288 (python)

Fixed submission:
R=int(input())

if 1200>R:
  print('ABC')
elif 2800>R:
  print('ARC')
else:
  print('AGC')

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

if 1200>R:
  print('ABC')
else if 2800>R:
  print('ARC')
else:
  print('AGC')

Buggy submission (verdict: Runtime Error):
R=int(input())
if 1200>R:
  print('ABC')
else if 2800>R:
  print('ARC')
else:
  print('AGC')

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

if 4208>=R>=2800:
  print('AGC')
else if 1200>R:
  print('ABC')
else:
  print('ARC')