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

Fixed submission:
N = int(input()) 
P = tuple(map(int, input().split()))
Q = tuple(map(int, input().split()))
A = list(range(1,N+1))
Alist=[]
import itertools
for v in itertools.permutations(A):
        Alist.append(v)
a_num = Alist.index(P)+1
b_num = Alist.index(Q)+1
print(abs(b_num - a_num))

Buggy submission (verdict: Runtime Error):
a  = int(input())
if a == 3:
    a1, a2, a3 = map(int, input().split())
    b1, b2, b3 = map(int, input().split())
    print(3)
elif a == 8:
    a1, a2, a3, a4, a5, a6, a7, a8 = map(int, input().split())
    b1, b2, b3, b4, b5, b6, b7, b8 = map(int, input().split())
    print(17517)
elif a == 5:
    a1, a2, a3 = map(int, input().split())
    if a==1 or b==2 or c==3:
        b1, b2, b3 = map(int, input().split())
        print(0)
Problem p02811 (python)

Fixed submission:
K, X = [int(x) for x in input().split()]

if K*500 >= X:
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
K, X = [int(K), int(X) for K, X in input().split()]

if K*500 >= X:
  print("Yes")
else:
  print("No")
Problem p02899 (python)

Fixed submission:
N = int(input())
order = [int(x) for x in input().split()]
order_sorted = sorted(range(len(order)), key=lambda k: order[k])
order_sorted = [x+1 for x in order_sorted]
print(*order_sorted)

Buggy submission (verdict: Runtime Error):
N = int(input())
order = [int(x) for x in input().split()]
order_sorted = sorted(range(len(order)), key=lambda k: order[k])
order_sorted = [x+1 for in x order_sorted]
print(*order_sorted)
Problem p02812 (python)

Fixed submission:
import sys

ans = 0
input = sys.stdin.readline
N = int(input())
S = input().rstrip()

list_S = list(S)

for i in range(N - 2):
    if list_S[i] == 'A':
        if list_S[i + 1] == 'B':
            if list_S[i + 2] == 'C':
                ans += 1
print(ans)

Buggy submission (verdict: Runtime Error):
import sys

ans = 0
input = sys.stdin.readline
N = int(input())
S = input().rstrip()

list_S = list(S)

for i in range(N):
    if list_S[i] == 'A':
        if list_S[i + 1] == 'B':
            if list_S[i + 2] == 'C':
                ans += 1
print(ans)
Problem p02811 (python)

Fixed submission:
k,x = [int(x) for x in input().split()]

k = k * 500 

if k >= x:
  print("Yes")
else:
	print("No")

Buggy submission (verdict: Runtime Error):
K = int(input())
X = int(input())
K = K *500
if K >= X:
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
K = int(input().split())
X = int(input().split())
K = K *500
if K >= X:
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
K = int(input().split())
X = int(input().split())
K = K *2
if K >= X:
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
K = int(input())
X = int(input())
K = K *2
if K >= X:
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
K = int(input())
X = int(input())
K = K *2
if K >= X:
  print("Yes")
if K < X:
  print("No")

Buggy submission (verdict: Runtime Error):
K = 500
num = int(input())
coin = num * K
print (coin)
X = int(input())
if coin >= X:
  print("Yes")
if coin < X:
  print("No")
Problem p02830 (python)

Fixed submission:
n = input("")
s,t= input("").split()
n = int(n)
ans = ""

for i in range(n):
    ans = ans + s[i]
    ans = ans + t[i]
    
print(ans)

Buggy submission (verdict: Runtime Error):
n = input("")
s = input("")
t = input("")
n = int(n)
ans = ""

for i in range(n):
    ans = ans + s[i]
    ans = ans + t[i]
    
print(ans)
Problem p02812 (python)

Fixed submission:
n = input()
s = input()
if (len(s) == int(n)):
    print(s.count("ABC"))

Buggy submission (verdict: Runtime Error):
k, x = input().split()
k = int(k) * 500
if (k >= int(x)):
    print("Yes")
else:
    print("No")
Problem p02853 (python)

Fixed submission:
aw = 0
for i in map(int, input().split()):
    if i == 1:
        aw+=300000
    elif i ==2 :
        aw+= 200000
    elif i ==3 :
        aw+= 100000
if aw== 600000:
    aw= 1000000
print(aw)

Buggy submission (verdict: Runtime Error):
aw = 0
for i in map(int, input().split()):
    if i == 1:
        s+=300000
    elif i ==2 :
        s+= 200000
    elif i ==3 :
        s+= 100000
if aw== 600000:
    aw= 1000000
print(aw)
Problem p02811 (python)

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

val = []
val = input()

arrays = val.split(' ')
a = int(arrays[0])*500

if a>=int(arrays[1]):
    print("Yes")
elif a<int(arrays[1]):
    print("No")

sys.exit()

Buggy submission (verdict: Runtime Error):
k = input()
x = input()
cal = k*500

if cal<=x:
    print("Yes")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
import sys

k = input()
x = input()

if k*500<=x:
    print("Yes")
else:
    print("No")

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

if k*500<=x:
    print("Yes")
else:
    print("No")

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

if k*500<=x:
    print("Yes")
else:
    print("No")

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

if k*500<x:
	print("Yes")
else:
	print("No")
Problem p02811 (python)

Fixed submission:
#!/usr/bin/env python

VALUE = 500

stdin = input()
args = stdin.split(' ')

num = int(args[0])
if num < 1 or num > 100:
    assert False, 'Invalid value'

threshold = int(args[1])
if threshold < 1 or threshold > 10**5:
    assert False, 'Invalid value'

result = 'Yes' if num * VALUE >= threshold else 'No'
print(result)

Buggy submission (verdict: Runtime Error):
#!/usr/bin/env python
import sys

VALUE = 500

num = int(sys.argv[1])
if num < 1 or num > 100:
    assert False, 'Invalid value'

threshold = int(sys.argv[2])
if threshold < 1 or threshold > 10**5:
    assert False, 'Invalid value'

result = 'Yes' if num * VALUE >= threshold else 'No'
print(result)

Buggy submission (verdict: Runtime Error):
import sys

VALUE = 500

num = int(sys.argv[1])
if num < 1 or num > 100:
    assert False, 'Invalid value'

threshold = int(sys.argv[2])
if threshold < 1 or threshold > 10**5:
    assert False, 'Invalid value'

result = 'Yes' if num * VALUE >= threshold else 'No'
print(result)

Buggy submission (verdict: Runtime Error):
import sys

VALUE = 500

num = int(sys.argv[1])
if 1 < num > 100:
    assert False, 'Invalid value'

threshold = int(sys.argv[2])
if 1 < threshold > 10**5:
    assert False, 'Invalid value'

result = 'Yes' if num * VALUE >= threshold else 'No'
print(result)
Problem p02811 (python)

Fixed submission:
K,X=map(int,input().split())
if 500*K >= X:
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
if (500 * K) > X:
  print("Yes")]
else:
  print("No")
Problem p02830 (python)

Fixed submission:
import os
N= int(input())
nyu = input().split()
S=nyu[0].strip()
T=nyu[1].strip()
ans=[]

for i in range(N):
    ans.append(S[i])
    ans.append(T[i])
print(''.join(ans))

Buggy submission (verdict: Runtime Error):
import os
N= int(input())
S=input().strip()
T=input().strip()
ans=[]
for i in range(N):
    ans.append(S[i])
    ans.append(T[i])

print(''.join(ans))
Problem p02811 (python)

Fixed submission:
#coding: utf-8

def A():
    k, x = map(int, raw_input().split())
    a = 500 * k
    if a >= x:
        print "Yes"
    else:
        print "No"

if __name__ == '__main__':
    A()

Buggy submission (verdict: Runtime Error):
def B():
    n = int(raw_input())
    s = list(raw_input())
    c = 0
    for i in range(0,len(s)-2):
        if str(s[i]) == "A":
            if str(s[i+1]) == "B":
                if str(s[i+2]) == "C":
                    c = c + 1
    print c


if __name__ == '__main__':
    B()
Problem p02811 (python)

Fixed submission:
a, b = input().split()
a = int(a)
b = int(b)
if a*500 >= b:
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
n = int(input())
s = input()
print(s.count("ABC"))
Problem p02812 (python)

Fixed submission:
N = int(input())
List = input()
List = list(List)

a = 0

for n in range(N - 2):
  if List[n] == 'A':
    if List[n + 1] == 'B':
      if List[n + 2] == 'C':
        a += 1
        
print(a)

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

a = 0

for n in range(N):
  if List[n] == 'A':
    if List[n + 1] == 'B':
      if List[n + 2] == 'C':
        a += 1
        
print(a)
Problem p02830 (python)

Fixed submission:
N = int(input())
S, T = map(str, input().split())
S = list(S)
T = list(T)

for i in range(N):
  ans = []
  for j in range(N):
    ans.append(S[j])
    ans.append(T[j])
print(''.join(ans))

Buggy submission (verdict: Runtime Error):
N = int(input())
S, T = map(str, input().split())
S = S.split('')
T = T.split('')

for i in range(N):
  ans = []
  ans.append(S[i])
  ans.append(T[i])
print(''.join(ans))
Problem p02811 (python)

Fixed submission:
a,b=map(int, input().split())
 
if (1<=a and a<=100) and (1<= b and b<=100000) :
    if a*500 >= b:
        print("Yes")
    else:
        print("No")
else:
	print("input value is too large")

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

if (1<=a and a<=100) and (1<= b and b<=100000) :
	if a*500 >= b:
      print("Yes")
    else:
      print("No")
else:
	print("input value is too large")
Problem p03605 (python)

Fixed submission:

n = raw_input()

n_dec = int(n) / 10
n_one = int(n) % 10

if(n_one == 9):
    print("Yes")
elif(n_dec == 9):
    print("Yes")
else:
    print("No")

Buggy submission (verdict: Runtime Error):

n = raw_input()

n_dec = int(n) / 10
n_one = int(n) % 10

if(n_one ==9):
    print("Yes")
elif(n_dec == 9):
    print("Yes")
else:
    print("No")
Problem p02817 (python)

Fixed submission:
S, T = [i for i in input().split()]

print("%s%s" % (T, S))

Buggy submission (verdict: Runtime Error):
S = input()
T = input()

print("%s%s" % (T, S))
Problem p02921 (python)

Fixed submission:
s = [i for i in input()]
t = [i for i in input()]

counter = 0

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

print(counter)

Buggy submission (verdict: Runtime Error):
s = [i for i in input().split()]
t = [i for i in input().split()]

counter = 0

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

print(counter)
Problem p02885 (python)

Fixed submission:
while True:
    a,b = input().split()
    a = int(a)
    b = int(b)
    if 1<=a<=100 and 1<=b<=100:
        break
c = a-2*b
if c>0:
    print(c)
else:
    print(0)

Buggy submission (verdict: Runtime Error):

a ,b= int(input().split())
if a-2*b=>0:
  print({}.format(a-2*b))
else:
  print("0")
Problem p02813 (python)

Fixed submission:
from itertools import permutations


class Solution:
    def CountOrder(self, sequence1, sequence2):
        l = list(permutations(range(1, n + 1)))
        index1 = l.index(sequence1)
        index2 = l.index(sequence2)
        return abs(index1 - index2)


if __name__ == "__main__":
    n = int(input())
    sequence1 = tuple(map(int, input().split()))
    sequence2 = tuple(map(int, input().split()))
    solution = Solution()
    print(solution.CountOrder(sequence1, sequence2))

Buggy submission (verdict: Runtime Error):
from typing import Tuple
from itertools import permutations


class Solution:
    def CountOrder(self, sequence1: Tuple[int], sequence2: Tuple[int]):
        l = list(permutations(range(1, n + 1)))
        index1 = l.index(sequence1)
        index2 = l.index(sequence2)
        return abs(index1 - index2)


if __name__ == "__main__":
    n = int(input())
    sequence1 = tuple(map(int, input().split()))
    sequence2 = tuple(map(int, input().split()))
    solution = Solution()
    print(solution.CountOrder(sequence1, sequence2))
Problem p03109 (python)

Fixed submission:
from datetime import datetime

input_ = raw_input()
date = datetime.strptime(input_, '%Y/%m/%d')
if date > datetime.strptime("2019/04/30", '%Y/%m/%d'):
    print("TBD")
else:
    print("Heisei")

Buggy submission (verdict: Runtime Error):
from datetime import datetime

input_ = raw_input()
date = datetime.strptime(input_, '%Y/%m/%d')
if date > datetime.strptime("2019/04/30", '%Y/%m/%d'):
    print("TBD")
else:
    print("Heisei")

Buggy submission (verdict: Runtime Error):
from datetime import datetime

input_ = raw_input()
date = datetime.strptime(input_, '%Y/%m/%d')
if date > datetime.strptime("2019/04/30", '%Y/%m/%d'):
    print("TBD")
else:
    print("Heisei")
Problem p03455 (python)

Fixed submission:
class Solution:
    def isEven(self, a: int, b: int):
        if (a * b) % 2 == 0:
            print("Even")
        else:
            print("Odd")


if __name__ == "__main__":
    a, b = map(int, input().split())
    solution = Solution()
    solution.isEven(a, b)

Buggy submission (verdict: Runtime Error):
class Solution:
    def isEven(self, a, b):
        if (a * b) % 2 == 0:
            print("Even")
        else:
            print("Odd")


if __name__ == "__main__":
    a, b = input(), input()
    solution = Solution()
    solution.isEven(a, b)
Problem p02812 (python)

Fixed submission:
n = input()
S = input()
c = 0
for i in range(len(S)-2):
  if S[i] == 'A' and S[i + 1] == 'B' and S[i+2] == 'C':
    c += 1
print(c)

Buggy submission (verdict: Runtime Error):
n = input()
S = input()
c = 0
for i in range(len(S)):
  if S[i] == 'A' and S[i + 1] == 'B' and S[i+2] == 'C':
    c += 1
print(c)
Problem p02882 (python)

Fixed submission:
import math
a, b, x = map(int, input().split())
A = math.degrees(math.atan((2*(a*a*b - x) / a/a/a)))
B = 90 - math.degrees(math.atan(x / (0.5 *(b*b)*a)))
if a * math.tan(math.radians(A)) < b:
  print(math.degrees(math.atan((2*(a*a*b - x) / a/a/a))))
else:
  print(90 - math.degrees(math.atan(x / (0.5 *(b*b)*a))))

Buggy submission (verdict: Runtime Error):
import math
a, b, x = map(int, input().split())
if a * b <= x / a:
  print(math.degrees(math.atan((2 * x / a / a/ a)))
else:
  print(90 - math.degrees(math.atan(x / (0.5 *(b*b)*a))))
Problem p02885 (python)

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

Buggy submission (verdict: Runtime Error):
import bisect
n = int(input())
l = list(map(int, input().split()))
count = 0
l.sort()
for i in range(len(l)-1, 1, -1):
  for j in range(i-1, 0, -1):
    count += max(j - (bisect.bisect_right(l, l[i] - l[j])), 0)
print(count)
Problem p02901 (python)

Fixed submission:
n, m = map(int, input().split())
p = 1 << n
dp = [float('inf')] * p
dp[0] = 0
for i in range(m):
  a, b = map(int, input().split())
  c = sum([1 << j - 1 for j in list(map(int, input().split()))])
  for k in range(p):
    if dp[k|c] > dp[k] + a:
      dp[k|c] = dp[k] + a
      
if dp[-1] == float('inf'):
  print(-1)
else:
  print(dp[-1])

Buggy submission (verdict: Runtime Error):
n, m = map(int, input().split())
p = 2 ** n
inf = 10 ** 9
dp = [inf] * p
dp[0] = 0
for i in range(m):
  a, b = map(int, input().split())
  c = sum([2 ** (j - 1) for j in list(input().split())])
  for k in range(p):
    if dp[k|c] > dp[k] + a:
      dp[k|c] = dp[k] + a
      
if dp[-1] == inf:
  print(-1)
else:
  print(dp[-1])
Problem p02911 (python)

Fixed submission:
n, k, q = map(int, input().split())
a = []
for i in range(q):
  a.append(int(input()) - 1)
  
m = [0]*n
for i in a:
  m[i] += 1
for i in range(n):
  if m[i] - q + k > 0:
    print('Yes')
  else:
    print('No')

Buggy submission (verdict: Runtime Error):
n, k, q = map(int, input().split())
a = []
for i in range(q):
  a.append(int(input()))
  
m = [0]*n
for i in a:
  m[i] += 1
for i in range(n):
  if m[i] - q + k > 0:
    print('Yes')
  else:
    print('No')
Problem p03469 (python)

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

Buggy submission (verdict: Runtime Error):
import sys
import math
s_ls = sys.stdin.read().split("\n")[:-1]
a = []
b = []
hp = int(s_ls[0].split()[1])
max_slash = 0
for element in s_ls[1:]:
    slash = int(element.split()[0])
    if slash > max_slash:
        max_slash = slash
    b.append(int(element.split()[1]))
bp = sorted([x for x in b if x > max_slash])[::-1]
count = 0
for e in bp:
    hp -= e
    count += 1
    if hp < 0:
        break
if hp > 0:
    count += math.ceil(hp / max_slash)

print(int(count))

Buggy submission (verdict: Runtime Error):
import sys
import math
s_ls = sys.stdin.read().split("\n")[:-1]
if "" in s_ls:
    s_ls.remove("")
# print(s_ls)
a = []
b = []
hp = int(s_ls[0].split()[1])
max_slash = 0
for element in s_ls[1:]:
    slash = int(element.split()[0])
    if slash > max_slash:
        max_slash = slash
    # a.append(int(element.split()[0]))
    b.append(int(element.split()[1]))
# print(hp)
# print(max(a))
bp = sorted([x for x in b if x > max_slash])[::-1]
# print(max_slash, bp)
count = 0
for e in bp:
    hp -= e
    count += 1
    if hp < 0:
        break
if hp > 0:
    count += math.ceil(hp / max_slash)

print(count)
# max_slash = max([x.split()[0] for x in s_ls])
# print(max_slash)
Problem p03854 (python)

Fixed submission:
S = input()
S = S.replace('eraser', '')
S = S.replace('erase', '')
S = S.replace('dreamer', '')
S = S.replace('dream', '')
if len(S) == 0:
    print('YES')
else:
    print('NO')

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

list = ["eraser","erase","dreamer","dream"]
for x in range(list):
    S = S.replace(x,"")

if len(S) == 0:
    print("YES")
else:
    print("NO")

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

S = S.replace("eraser","")
S = S.replace("erase","")
S = S.replace("dreamer","")
S = S.replace("dream","")

if len(S) == 0:
    print("YES")
else:
    print("NO")

print(ans)

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

S = S.replace("dream",'"")
S = S.replace("dreamer","")
S = S.replace("erase","")
S = S.replace("eraser","")

if len(S) == 0:
    ans = "YES"
else:
    ans = "NO"

print(ans)

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

S.replace("dream",'"")
S.replace("dreamer","")
S.replace("erase","")
S.replace("eraser","")

if len(S) == 0:
    ans = "YES"
else:
    ans = "NO"

print(ans)

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

S.replace("dream",'')
S.replace("dreamer",'')
S.replace("erase",'')
S.replace("eraser",'')

if len(S)==0:
    ans = YES
else:
    ans = NO

print(ans)

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

S.replace("dream",'')
S.replace("dreamer",'')
S.replace("erase",'')
S.replace("eraser",'')

if len(S)==0:
    YES
else:
    NO
Problem p02811 (python)

Fixed submission:
K,X=map(int,input().split())
if 500*K>=X:
    print('Yes')
else:
    print('No')

Buggy submission (verdict: Runtime Error):
K,X=map(int.input().split())
if 500*K>=X:
    print('Yes')
else:
    print('No')

Buggy submission (verdict: Runtime Error):
K,X=map(int,input(),split())
if 500*K>X:
    print('Yes')
else:
    print('No')
Problem p02882 (python)

Fixed submission:
import math
a,b,x =map(int,input().split( ))
if x >= (a**2*b/2):
    k=2*x/(a**2)-b
    cos=math.sqrt((b-k)**2/((a**2)+(b-k)**2))
else:
    k=2*x/(a*b)
    cos=math.sqrt(b**2/(b**2+k**2))
print(90-math.degrees(math.acos(cos)))

Buggy submission (verdict: Runtime Error):
import math
a,b,x =map(int,input().split( ))
if x >= (a**2*b/2):
    k=2*x/(a**2)-b
    cos=math.sqrt((b-k)**2/((a**2)+(b-k)**2))
    print(math.degrees(math.acos(cos)))
else:
    k=2*x/(a*b)
    cos=math.sqrt(b**2/(b**2+k**2))
	print(90-math.degrees(math.acos(cos)))
Problem p02885 (python)

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

Buggy submission (verdict: Runtime Error):
C=A-2*B
if C>0:
    uncovered = C
else:
    uncovered = 0
print('the lenth of unvocered =',uncovered)
Problem p02888 (python)

Fixed submission:
N=int(input())
S=list(map(int,input().split( )))
S = sorted(S)
tri_num=0
for i in range(N-2):
    k = i+2
    for j in range(i+1,N-1):
        while k < N:
            if S[i] + S[j] <= S[k]:
                tri_num = tri_num + k-j-1
                if k == i+2:
                    k+=1
                break
            if k == N-1:
                tri_num = tri_num + k-j
                break
            k+=1
print(tri_num)

Buggy submission (verdict: Runtime Error):
N=int(input())
S=list(map(int,input().split( )))
S = sorted(S)
tri_num=0
for i in range(N-2):
    k=i+2
    for j in range(i+1,N-1):
        while k < N:
            if S[i] + S[j] <= S[k]:
                tri_sum = tri_sum + k-j-1
                k+=1
                break
            else:
                k+=1
print(tri_num)

Buggy submission (verdict: Runtime Error):
N=int(input())
S=list(map(int,input().split( )))
S = sorted(S)
for i in range(N-2):
    for j in range(i+1,N-1):
        for k in range(N-1,j,-1):
            if S[i] + S[j] > S[k]:
                tri_sum = tri_sum + k-j
print(tri_sum)
Problem p02899 (python)

Fixed submission:
N= int(input())
H = [int(i) for i in input().split( )]
J = [0]*N
for i in range(N):
    J[H[i]-1] = i
for j in range(N):
    print(J[j]+1)

Buggy submission (verdict: Runtime Error):
N, K = map(int,input().split( ))
H = [int(i) for i in input().split( )]
J = [0*(N-1)]
def binary_search(arr, x):
    start = 0
    end = len(arr)-1
    while(end >= start):
        mid = int(start + (end-start)/2)
        if x > arr[mid]:
            start = mid+1
        elif x < arr[mid]:
            end = mid -1
        else:
            break
    return start
for i in range(N):
    print(binary_search(arr,i))
Problem p02934 (python)

Fixed submission:
N = int(input())
A = input().split()
sum=0
for i in range(N):
  sum+=1/int(A[i])
print(1/sum)

Buggy submission (verdict: Runtime Error):
N = int(input())
A =map(int,input().split())
sum=0
for i in range(N):
  sum+=1/A[i]
print(1/sum)
Problem p02946 (python)

Fixed submission:
K,X=map(int,input().split())
for i in range(-K+1,K):
  kuro = X+i
  if kuro >= -1000000 and kuro <= 1000000:
     print(kuro)

Buggy submission (verdict: Runtime Error):
K,X=map(int,input().split(','))
for i in range(-K+1,K):
  kuro = X+i
  if kuro >= -1000000 and kuro <= 1000000:
     print(kuro)

Buggy submission (verdict: Runtime Error):
K,X=map(int,input().split( ))
for i in range(-K+1,K):
  kuro = X+i
  print(kuro if (kuro >= -1000000 and kuro <= 1000000))
Problem p03029 (python)

Fixed submission:
A,P=map(int,input().split())
print((3*A+P)//2)

Buggy submission (verdict: Runtime Error):
A,P=map(int(input().split())
print((3*A+P)//2)
Problem p02898 (python)

Fixed submission:
n,k =(int(x) for x in input().split())
list = input().split()
p = 0
list = [int(s) for s in list]
     
for i in range(0, n):
    if list[i] >= k:
        p = p + 1

print(p)

Buggy submission (verdict: Runtime Error):
n,k =(int(x) for x in input().split())
list = (int(x) for x in input().split())
p = 0
     
for i in range(0, n):
	if list[i] >= k:
		p = p + 1

print(p)

Buggy submission (verdict: Runtime Error):
n,k =(int(x) for x in input().split())
list = (int(x) for x in input().split())
p = 0

for i in range(0, n)
	if list[i] >= k:
    	p = p + 1

print(p)
Problem p02969 (python)

Fixed submission:
r = int(input())

ans = r * r * 3

print(ans)

Buggy submission (verdict: Runtime Error):
n,d = input().split()
n = int(n)
d = int(d)
t = 2d + 1
     
if n % t == 0:
	ans = n/t
else:
	ans = n/t
    ans = ans + 1

print(ans)

Buggy submission (verdict: Runtime Error):
r = input()
ans = r * r * 3
print(ans)
Problem p02971 (python)

Fixed submission:
n = int(input()) #1行目のNを取得する
list = [input() for i in range(n)] #複数行の数値の入力を取得
lint = [int(s) for s in list]

ans = max(lint)
index = lint.index(max(lint))
lint.remove(max(lint))
ans2 = max(lint)

if ans == ans2:
    for i in range(n):
        print(ans)
else:
    for i in range(0, index):
        print(ans)
    print(ans2)
    for i in range(index+1, n):
        print(ans)

Buggy submission (verdict: Runtime Error):
n = int(input()) #1行目のNを取得する
s = [int(input() for i in range(n))] #複数行の数値の入力を取得

for i in range (n):
    a = s.pop(0)
    ans = max(s)
    print(ans)
    s.append(a)