Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
D = int(input())
c_list = list(map(int,input().split(' ')))
s_list = []
for i in range(D):
    s_list.append(list(map(int,input().split(' '))))
for day in range(D):
    print(random.randrange(26)+1)
    # maxs = s_list[day].index(max(s_list[day]))
    # print(maxs+1)


Fixed submission:
D = int(input())
c_list = list(map(int,input().split(' ')))
s_list = []
for i in range(D):
    s_list.append(list(map(int,input().split(' '))))
minc = c_list.index(min(c_list))
for d in range(D):
    print(minc+1)
Buggy python submission (verdict: Runtime Error):
D = int(input())
c_list = list(map(int,input().split(' ')))
s_list = []
for i in range(d):
    s_list.append(list(map(int,input().split(' '))))
t_list = []
for j in range(d):
    t_list.append(int(input()))
last_list = [0 for k in range(26)]
score = 0
for day in range(D):
    point = 0
    point += s_list[day][t_list[day]]
    last_list[t_list[day]] = day+1
    for c in c_list:
        point -= c*((day+1)-last_list[t_list[day]])
    if(point>1000000):
        score += point+1000000
print(score)


Fixed submission:
D = int(input())
c_list = list(map(int,input().split(' ')))
s_list = []
for i in range(D):
    s_list.append(list(map(int,input().split(' '))))
t_list = []
for j in range(D):
    t_list.append(int(input()))
last_list = [0 for k in range(26)]
score = 0
point = 0
for day in range(D):
    point += s_list[day][t_list[day]-1]
    last_list[t_list[day]-1] = day+1
    for c in range(26):
        point -= c_list[c]*((day+1)-last_list[c])
    if(point>-1000000):
        score = point+1000000
    print(point)
Buggy python submission (verdict: Time Limit Exceeded):
import math

input_num = int(input())
input_numline = list(map(int,input().split(' ')))
q = int(input())

op_list = []
for i in range(q):
    op_list.append(list(map(int,input().split(' '))))

maxnum = 100000

num_list = [0 for m in range(maxnum+1)]

for n in input_numline:
    num_list[n] += 1

for o in op_list:
    num_list[o[1]] += num_list[o[0]]
    num_list[o[0]] = 0

    ans = 0
    for j in range(maxnum+1):
        ans += j*num_list[j]
    print(ans)


Fixed submission:
import math

input_num = int(input())
input_numline = list(map(int,input().split(' ')))
q = int(input())

op_list = []
for i in range(q):
    op_list.append(list(map(int,input().split(' '))))

maxnum = 100000

num_list = [0 for m in range(maxnum+1)]

for n in input_numline:
    num_list[n] += 1

ans = 0

for j in range(maxnum+1):
    ans += j*num_list[j]

for o in op_list:
    ans -= o[0]*num_list[o[0]]
    ans += o[1]*num_list[o[0]]
    num_list[o[1]] += num_list[o[0]]
    num_list[o[0]] = 0

    print(ans)
Buggy python submission (verdict: Runtime Error):
import math
input_line = list(map(int,input().split(' ')))

ans = input_line[0] * input_line[1] // math.gcd(input_line[0], input_line[1])
print(ans)


Fixed submission:
import fractions as math
input_line = list(map(int,input().split(' ')))

ans = input_line[0] * input_line[1] // math.gcd(input_line[0], input_line[1])
print(ans)
Buggy python submission (verdict: Runtime Error):
X = input()
if X<=30:
	print("No")
else: x>=30
	print("Yes")

Fixed submission:
X = int(input())
if X < 30:
	print("No")
if X >= 30:
	print("Yes")
Buggy python submission (verdict: Runtime Error):
a = input()
n = 2
m = 3
print(a + a ** n + a ** m)

Fixed submission:
a = int(input())
n = 2
m = 3
print(a + a ** n + a ** m)

Buggy python submission (verdict: Runtime Error):
a = input()
n = 2
m = 3
print(a + a**n + a**m)

Fixed submission:
a = int(input())
n = 2
m = 3
print(a + a ** n + a ** m)

Buggy python submission (verdict: Runtime Error):
a = input()
n = 2
m = 3
print(a+a**n+a**3)

Fixed submission:
a = int(input())
n = 2
m = 3
print(a + a ** n + a ** m)

Buggy python submission (verdict: Runtime Error):
a = input()
print(a+a^2+a^3)

Fixed submission:
a = int(input())
n = 2
m = 3
print(a + a ** n + a ** m)
Buggy python submission (verdict: Runtime Error):
S == input()
if S == "ABC":
	print("ARC")
else:
  	print("ABC")

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

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

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

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

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

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

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

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

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

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

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

Buggy python submission (verdict: Runtime Error):
S = map(int, input().split())
if S == ABC
	print("ARC")
else:
  	print("ABC")

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

Buggy python submission (verdict: Runtime Error):
S = map(int, input().split())
if S == "ABC"
	print("ARC")
else:
  	print("ABC")

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

Buggy python submission (verdict: Runtime Error):
S = map(int, input().split())
if S = ABC
	print("ARC")
else:
  	print("ABC")

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

Buggy python submission (verdict: Runtime Error):
S = map(int, input().split())
if S = ABC
	print("ABC")
else:
  	print("ARC")


Fixed submission:
S = input()
if S == "ABC":
	print("ARC")
else:
  	print("ABC")
Buggy python submission (verdict: Runtime Error):
S,W=map(int, input().split())
 
if S>W:
	print("safe")
if S<W:
	print("unsafe")
if S=W:
	print("unsafe")

Fixed submission:
S,W=map(int, input().split())
 
if S>W:
	print("safe")
if S<W:
	print("unsafe")
if S==W:
	print("unsafe")

Buggy python submission (verdict: Runtime Error):
S=int(input())
W=10
 
if S>W:
	print("safe")
if S<W:
	print("unsafe")
if S=W:
	print("unsafe")


Fixed submission:
S,W=map(int, input().split())
 
if S>W:
	print("safe")
if S<W:
	print("unsafe")
if S==W:
	print("unsafe")

Buggy python submission (verdict: Runtime Error):
S=int(input())
W=10

if S>W:
	print("safe")
if S<W:
	print("unsafe")

Fixed submission:
S,W=map(int, input().split())
 
if S>W:
	print("safe")
if S<W:
	print("unsafe")
if S==W:
	print("unsafe")

Buggy python submission (verdict: Runtime Error):
S=input()
W=10
if S>W:
	print("safe")
if W>S:
	print("unsafe")

Fixed submission:
S,W=map(int, input().split())
 
if S>W:
	print("safe")
if S<W:
	print("unsafe")
if S==W:
	print("unsafe")
Buggy python submission (verdict: Runtime Error):
R = int(input())
R * 2 * 3.14R = int(input())
R * 2 * 3.14R = int(input())
R * 2 * 3.14R = int(input())
R * 2 * 3.14R = int(input())
R * 2 * 3.14R = int(input())
R * 2 * 3.14R = int(input())
R * 2 * 3.14R = int(input())
R * 2 * 3.14R = int(input())
R * 2 * 3.14R = int(input())
R * 2 * 3.14R = int(input())
R * 2 * 3.14R = int(input())
R * 2 * 3.14R = int(input())
R * 2 * 3.14R = int(input())
R * 2 * 3.14R = int(input())
R * 2 * 3.14R = int(input())
R * 2 * 3.14R = int(input())
R * 2 * 3.14R = int(input())
R * 2 * 3.14R = int(input())
R * 2 * 3.14R = int(input())
R * 2 * 3.14R = int(input())
R * 2 * 3.14R = int(input())
R * 2 R = int(input())
R * 2 * 3.14R = int(input())
R * 2 * 3.14R = int(input())
R * 2 * 3.14R = int(input())https://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTYhttps://www.youtube.com/watch?v=VesDLf1jYTY
R * 2 * 3.14R = int(input())
R * 2 * 3.14v

Fixed submission:
R = int(input())
print(R * 2 * 3.14)

Buggy python submission (verdict: Runtime Error):
print(R*2*3.14)

Fixed submission:
R = int(input())
print(R * 2 * 3.14)
Buggy python submission (verdict: Runtime Error):
N =
if N % 7 == 0:
	print("Yes")
else:
  	print("No")

Fixed submission:
s = input()
if "7" in s:
    print("Yes")
else:
    print("No")

Buggy python submission (verdict: Runtime Error):
N = map(int,input().split())
if N % 7 == 0:
	print("Yes")
else:
  	print("No")

Fixed submission:
s = input()
if "7" in s:
    print("Yes")
else:
    print("No")

Buggy python submission (verdict: Runtime Error):
N = map(int,input().split())
if N % 3 ==0:
	print("Yes")
else:
  	print("No")

Fixed submission:
s = input()
if "7" in s:
    print("Yes")
else:
    print("No")

Buggy python submission (verdict: Runtime Error):
N = map(int,input().split())
if N % 3:
	print("Yes")
else:
  	print("No")

Fixed submission:
s = input()
if "7" in s:
    print("Yes")
else:
    print("No")

Buggy python submission (verdict: Runtime Error):
if N % 3:
	print("Yes")
else:
  	print("No")

Fixed submission:
s = input()
if "7" in s:
    print("Yes")
else:
    print("No")
Buggy python submission (verdict: Runtime Error):
x,y,z=map(int,(input.split())
print(str(y)+" "+str(z)+" "+str(x))

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

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

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

Buggy python submission (verdict: Runtime Error):
z,x,c=map(int, input.split())
print(str(x)+" "+str(y)+" "+str(z))

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

Buggy python submission (verdict: Runtime Error):
z,x,c=map(int, input.split())
print(str(z)+" "+str(x)+" "+str(y))

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

Buggy python submission (verdict: Runtime Error):
a,b,c=map(int, input.split())
print(str(z)+" "+str(x)+" "+str(y))

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

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

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

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

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

Buggy python submission (verdict: Runtime Error):
a,b,c=map(int, input.split())
print(str(z x y))

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

Buggy python submission (verdict: Runtime Error):
a,b,c=map(int, input.split())
printstr((z x y))

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

Buggy python submission (verdict: Runtime Error):
a,b,c=map(int, input.split())
print(z,x,y)

Fixed submission:
x,y,z=map(int,input().split())
print(str(z)+" "+str(x)+" "+str(y))
Buggy python submission (verdict: Runtime Error):
n,w=map(int,input().split())
print(n*w(n*w-1) /2)

Fixed submission:
n,w=map(int,input().split())
print((n*(n-1)//2)+(w*(w-1)//2))

Buggy python submission (verdict: Runtime Error):
n,w=map(int,input().split())
print(nw(nw-1) /2)

Fixed submission:
n,w=map(int,input().split())
print((n*(n-1)//2)+(w*(w-1)//2))
Buggy python submission (verdict: Runtime Error):
if x < a:
	print(0)
if x >= a:
	print(10)

Fixed submission:
x,a = map(int,input().split())
if x < a:
	print("0")
if x >= a:
	print("10")

Buggy python submission (verdict: Runtime Error):
if x < a:
	print("0")
if x >= a:
	print("10")

Fixed submission:
x,a = map(int,input().split())
if x < a:
	print("0")
if x >= a:
	print("10")
Buggy python submission (verdict: Runtime Error):
S = input()
if S[5:7] >= "04":
	print("TBD")
else
	print("Heisei")

Fixed submission:
S = input()
if int(S[5:7]) <= 4:
    print("Heisei")
else:
    print("TBD")

Buggy python submission (verdict: Runtime Error):
S = input()
T = input()
if T[0:-1] == S:
  print("Heisei")
else:
  print("TBD")

Fixed submission:
S = input()
if int(S[5:7]) <= 4:
    print("Heisei")
else:
    print("TBD")
Buggy python submission (verdict: Runtime Error):
S = input()
a = len(S)
print(S[0]+ (str)a + S[-1])

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

Buggy python submission (verdict: Runtime Error):
S = input()
a = len(S)
print(map(str(S[0]+a+S[-1])))

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

Buggy python submission (verdict: Runtime Error):
S = input()
a = len(S)
print(str(S[0]+a+S[-1]))

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

Buggy python submission (verdict: Runtime Error):
S = input()
a = len(S)
print(str(S[0]+a+S[-1])

Fixed submission:
S = input()
a = len(S)
print(S[0]+ str(a-2) + S[-1])
Buggy python submission (verdict: Time Limit Exceeded):

n=int(input())

def number(i):
   for j in range(1,41):
      for k in range(j,58):
         for u in range(k,101):
            a=j*j+k*k+u*u+j*k+k*u+u*j
            if a > 10**4:
               break
            if i==a:
               if j==k and k==u:
                  print(1)
                  return
               elif j==k or k==u:
                  print(3)
                  return
               else:
                  print(6)
                  return
         

   print(0)
   return

for h in range(1,n+1):
   number(h)

Fixed submission:
n=int(input())
y=[0 for _ in range(10**4+1)]
for j in range(1,100):
   for k in range(1,100):
      for u in range(1,100):
         a=j*j+k*k+u*u+j*k+k*u+u*j
         if a <= 10**4:
            y[a-1]+=1
for o in range(n):
   print(y[o])

Buggy python submission (verdict: Time Limit Exceeded):

n=int(input())

def number(i):
   for j in range(1,41):
      for k in range(j,58):
         for u in range(k,101):
            if i==j*j+k*k+u*u+j*k+k*u+u*j:
               if j==k and k==u:
                  print(1)
                  return
               elif j==k or k==u:
                  print(3)
                  return
               else:
                  print(6)
                  return
         

   print(0)
   return

for h in range(1,n+1):
   number(h)


Fixed submission:
n=int(input())
y=[0 for _ in range(10**4+1)]
for j in range(1,100):
   for k in range(1,100):
      for u in range(1,100):
         a=j*j+k*k+u*u+j*k+k*u+u*j
         if a <= 10**4:
            y[a-1]+=1
for o in range(n):
   print(y[o])

Buggy python submission (verdict: Time Limit Exceeded):
n=int(input())

def number(i):
   for j in range(1,41):
      for k in range(1,58):
         for u in range(1,101):
            if i==j*j+k*k+u*u+j*k+k*u+u*j:
               if j==k and k==u:
                  print(1)
                  return
               elif j==k or k==u:
                  print(3)
                  return
               else:
                  print(6)
                  return

   print(0)
   return

for h in range(1,n+1):
   number(h)

Fixed submission:
n=int(input())
y=[0 for _ in range(10**4+1)]
for j in range(1,100):
   for k in range(1,100):
      for u in range(1,100):
         a=j*j+k*k+u*u+j*k+k*u+u*j
         if a <= 10**4:
            y[a-1]+=1
for o in range(n):
   print(y[o])
Buggy python submission (verdict: Time Limit Exceeded):
import numpy as np
n,m,k=map(int,input().split())
A=list(map(int,input().split()))
B=list(map(int,input().split()))
ans=0
a=np.cumsum(A)
b=np.cumsum(B)
a=np.insert(a,0,0)
b=np.insert(b,0,0)

for i in range(n+1):
    if a[i] > k:
        break
    t=k-a[i]
    st=m
    for j in reversed(range(st+1)):
        if b[j] <= t:
            st=j
            ans=max(i+j,ans)
            break
print(ans)



Fixed submission:
import numpy as np
n,m,k=map(int,input().split())
A=list(map(int,input().split()))
B=list(map(int,input().split()))
ans=0
a=np.cumsum(A)
b=np.cumsum(B)
a=np.insert(a,0,0)
b=np.insert(b,0,0)
j=m
for i in range(n+1):
    if a[i] > k:
        break
    while b[j] > k-a[i]:
        j-=1
    ans=max(ans,i+j)
print(ans)

Buggy python submission (verdict: Runtime Error):
n,m,k=map(int,input().split())
a=list(map(int,input().split()))
b=list(map(int,input().split()))
ans=0
while True:
    if len(a) and len(b):
        if a[0] < b[0] and k >= a[0]:
            k-=a[0]
            del a[0]
            ans+=1
        elif a[0] >= b[0] and k >= b[0]:
            k-=b[0]
            del b[0]
            ans+=1
        else:
            print(ans)
            exit()
    elif len(a)==0 and k >= b[0]:
        k-=b[0]
        del b[0]
        ans+=1
    elif len(b)==0 and a[0] <= k:
        k-=a[0]
        del a[0]
        ans+=1
    else:
        print(ans)
        exit()

Fixed submission:
import numpy as np
n,m,k=map(int,input().split())
A=list(map(int,input().split()))
B=list(map(int,input().split()))
ans=0
a=np.cumsum(A)
b=np.cumsum(B)
a=np.insert(a,0,0)
b=np.insert(b,0,0)
j=m
for i in range(n+1):
    if a[i] > k:
        break
    while b[j] > k-a[i]:
        j-=1
    ans=max(ans,i+j)
print(ans)

Buggy python submission (verdict: Runtime Error):
n,m,k=map(int,input().split())
ans=0
a=list(map(int,input().split()))
b=list(map(int,input().split()))

if sum(a)+sum(b) <= k:
    print(len(a)+len(b))
    exit()

while k >= a[0] or k >= b[0]:
    if len(a)==0:
        k-=b[0]
        ans+=1
        del b[0]
    elif len(b)==0:
        k-=a[0]
        ans+=1
        del a[0]
    elif a[0] < b[0]:
        k-=a[0]
        ans+=1
        del a[0]
    else:
        k-=b[0]
        ans+=1
        del b[0]
print(ans)
    

Fixed submission:
import numpy as np
n,m,k=map(int,input().split())
A=list(map(int,input().split()))
B=list(map(int,input().split()))
ans=0
a=np.cumsum(A)
b=np.cumsum(B)
a=np.insert(a,0,0)
b=np.insert(b,0,0)
j=m
for i in range(n+1):
    if a[i] > k:
        break
    while b[j] > k-a[i]:
        j-=1
    ans=max(ans,i+j)
print(ans)
Buggy python submission (verdict: Runtime Error):
S=input()
if S=ABC:
  print(ARC)
else:
  print(ABC)

Fixed submission:
S=input()
if S=="ABC":
    print("ARC")
else:
    print("ABC")
Buggy python submission (verdict: Runtime Error):
S,W=map(unt,input().split())
if S>W:
  print("safe")
else:
  print("unsafe")

Fixed submission:
s,w=map(int,input().split())
if s > w:
  print("safe")
else:
  print("unsafe")
Buggy python submission (verdict: Runtime Error):
a = int(input())
if a => 30:
  print('Yes')
else:
  print('No')

Fixed submission:
a = input()

if int(a) >= 30:
  print('Yes')
else:
  print('No')
Buggy python submission (verdict: Runtime Error):
import numpy as np
 
N, D = int(input().split()) #1行目のNを取得する
grid = []
for i in range(N):
    array = list(map(int, input().strip().split()))
    grid.append(array)
p = 0
for i in range(N):
  if np.sqrt(grid[i,0]*grid[i,0] + grid[i,1], grid[i,1]) <= D:
    p += 1
print(p)

Fixed submission:
import numpy as np
 
N, D = input().strip().split() #1行目のNを取得する
grid = []
for i in range(int(N)):
    array = list(map(int, input().strip().split()))
    grid.append(array)
grid = np.array(grid)
p = 0
for i in range(int(N)):
  if np.sqrt(grid[i,0]*grid[i,0] + grid[i,1]*grid[i,1]) <= int(D):
    p += 1
print(p)

Buggy python submission (verdict: Runtime Error):
import numpy as np

N, D = int(input().split()) #1行目のNを取得する
a,b=(int(x) for x in input().split())
p = 0
for i in range(len(a)):
  if np.sqrt(a[i]*a[i] + b[i]*b[i]):
    p += 1
print(p)

Fixed submission:
import numpy as np
 
N, D = input().strip().split() #1行目のNを取得する
grid = []
for i in range(int(N)):
    array = list(map(int, input().strip().split()))
    grid.append(array)
grid = np.array(grid)
p = 0
for i in range(int(N)):
  if np.sqrt(grid[i,0]*grid[i,0] + grid[i,1]*grid[i,1]) <= int(D):
    p += 1
print(p)

Buggy python submission (verdict: Runtime Error):
x, y = input().split()
s = [input() for i in range(x)]
t = [input() for i in range(y)]
p = 0
for i in range(len(s)):
  if sqrt(s[i]*s[i] + t[i]*t[i]) > y:
    p += 1

print(p)

Fixed submission:
import numpy as np
 
N, D = input().strip().split() #1行目のNを取得する
grid = []
for i in range(int(N)):
    array = list(map(int, input().strip().split()))
    grid.append(array)
grid = np.array(grid)
p = 0
for i in range(int(N)):
  if np.sqrt(grid[i,0]*grid[i,0] + grid[i,1]*grid[i,1]) <= int(D):
    p += 1
print(p)
Buggy python submission (verdict: Runtime Error):
NM = list(map(int, input().split()))
N, M = NM[0],NM[1]
a = list(map(int, input().split()))

if  sum(a)> N:
    print(-1)
else:
    print(N - sum(A))

Fixed submission:
R = int(input())
print(R*2*3.14)
Buggy python submission (verdict: Runtime Error):
NM = list(map(int, input().split()))
N, M = NM[0],NM[1]
a = list(map(int, input().split()))

if  sum(a)> N:
    print(-1)
else:
    print(N - sum(A))

Fixed submission:
N, M = input().split()
N, M = [int(N), int(M)]
a = list(map(int, input().split()))

for i in range(M):
    N -= a[i]

if N < 0:
    print(-1)
else:
    print(N)

Buggy python submission (verdict: Runtime Error):
NM = list(map(int, input().split())
N, M = NM[0],NM[1]
a = list(map(int, input().split()))
x = 0
for i in range(M):
    x += a[i]

if x > N:
    print(-1)
else:
    print(N - x)

Fixed submission:
N, M = input().split()
N, M = [int(N), int(M)]
a = list(map(int, input().split()))

for i in range(M):
    N -= a[i]

if N < 0:
    print(-1)
else:
    print(N)