Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())
l = list(map(int, input().split()))
L = list(set(l))
count = 0
for x in L:
  num = l.count(x)
  if num == x:
    continue
  elif num > x:
    count += num - x
  else:
    count += num
print(count)

Fixed submission:
n = int(input())
l = list(map(int, input().split()))
dic = {}
count = 0

for i in range(n):
  dic.setdefault(l[i],0)
  dic[l[i]] += 1

for x,y in dic.items():
  if x <= y:
    count += y - x
  else:
    count += y
print(count)

Buggy python submission (verdict: Time Limit Exceeded):
import sys
input=sys.stdin.readline

n = int(input())
l = list(map(int, input().split()))
L = list(set(l))
count = 0
for x in L:
  if l.count(x) == x:
    continue
  elif l.count(x) > x:
    count += l.count(x) - x
  else:
    count += l.count(x)
print(count)

Fixed submission:
n = int(input())
l = list(map(int, input().split()))
dic = {}
count = 0

for i in range(n):
  dic.setdefault(l[i],0)
  dic[l[i]] += 1

for x,y in dic.items():
  if x <= y:
    count += y - x
  else:
    count += y
print(count)

Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())
l = list(map(int, input().split()))
L = list(set(l))
count = 0
for x in L:
  if l.count(x) == x:
    continue
  elif l.count(x) > x:
    count += l.count(x) - x
  else:
    count += l.count(x)
print(count)

Fixed submission:
n = int(input())
l = list(map(int, input().split()))
dic = {}
count = 0

for i in range(n):
  dic.setdefault(l[i],0)
  dic[l[i]] += 1

for x,y in dic.items():
  if x <= y:
    count += y - x
  else:
    count += y
print(count)

Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())
l = list(map(int, input().split()))
L = list(set(l))
count = 0
for x in L:
  if l.count(x) == x:
    continue
  elif l.count(x) > x:
    count += l.count(x) - x
  else:
    count += l.count(x)
print(count)

Fixed submission:
n = int(input())
l = list(map(int, input().split()))
dic = {}
count = 0

for i in range(n):
  dic.setdefault(l[i],0)
  dic[l[i]] += 1

for x,y in dic.items():
  if x <= y:
    count += y - x
  else:
    count += y
print(count)
Buggy python submission (verdict: Time Limit Exceeded):
x, y = map(int, input().split())
l = list(map(int, input().split()))
ans = 0
d = {}
l2 = []
for i in l:
  if i not in d:
    d[i] = 1
  else:
    d[i] += 1
#print(d)
if len(d) <= y:
  print(0)
else:
  for v in d.values():
    l2.append(v)
    l2.sort(reverse = True)
  print(sum(l2[y:]))

Fixed submission:
from collections import Counter

x, y = map(int, input().split())
l = list(map(int, input().split()))
l2 = []
d = Counter(l)
l2 = list(d.values())
l2.sort(reverse=True)

print(sum(l2[y:]))
Buggy python submission (verdict: Runtime Error):
a,b,c,d= map(int,input().split())
if a+b+c+d==7:
  print(str(a)+'+'+str(b)+'+'+str(c)+'+'+str(d)+'=7')
elif a+b+c-d==7:
  print(str(a)+'+'+str(b)+'+'+str(c)+'-'+str(d)+'=7')
elif a+b-c+d==7:
  print(str(a)+'+'+str(b)+'-'+str(c)+'+'+str(d)+'=7')
elif a-b+c+d==7:
  print(str(a)+'-'+str(b)+'+'+str(c)+'+'+str(d)+'=7')
elif a+b-c-d==7:
  print(str(a)+'+'+str(b)+'-'+str(c)+'-'+str(d)+'=7')
elif a-b+c-d==7:
  print(str(a)+'-'+str(b)+'+'+str(c)+'-'+str(d)+'=7')
elif a-b-c+d==7:
  print(str(a)+'-'+str(b)+'-'+str(c)+'+'+str(d)+'=7')
else:
  print(str(a)+'-'+str(b)+'-'+str(c)+'-'+str(d)+'=7')

Fixed submission:
a,b,c,d= map(int,input())
if a+b+c+d==7:
  print(str(a)+'+'+str(b)+'+'+str(c)+'+'+str(d)+'=7')
elif a+b+c-d==7:
  print(str(a)+'+'+str(b)+'+'+str(c)+'-'+str(d)+'=7')
elif a+b-c+d==7:
  print(str(a)+'+'+str(b)+'-'+str(c)+'+'+str(d)+'=7')
elif a-b+c+d==7:
  print(str(a)+'-'+str(b)+'+'+str(c)+'+'+str(d)+'=7')
elif a+b-c-d==7:
  print(str(a)+'+'+str(b)+'-'+str(c)+'-'+str(d)+'=7')
elif a-b+c-d==7:
  print(str(a)+'-'+str(b)+'+'+str(c)+'-'+str(d)+'=7')
elif a-b-c+d==7:
  print(str(a)+'-'+str(b)+'-'+str(c)+'+'+str(d)+'=7')
else:
  print(str(a)+'-'+str(b)+'-'+str(c)+'-'+str(d)+'=7')

Buggy python submission (verdict: Runtime Error):
a,b,c,d= map(int,input().split())
if a+b+c+d==7:
  print(str(a)+'+'+str(b)+'+'+str(c)+'+'+str(d)+'=7')
elif  a+b+c-d==7:
  print(str(a)+'+'+str(b)+'+'+str(c)+'-'+str(d)+'=7')
elif  a+b-c+d==7:
  print(str(a)+'+'+str(b)+'-'+str(c)+'+'+str(d)+'=7')
elif  a-b+c+d==7:
  print(str(a)+'-'+str(b)+'+'+str(c)+'+'+str(d)+'=7')
elif  a+b-c-d==7:
  print(str(a)+'+'+str(b)+'-'+str(c)+'-'+str(d)+'=7')
elif  a-b+c-d==7:
  print(str(a)+'-'+str(b)+'+'+str(c)+'-'+str(d)+'=7')
elif  a-b-c+d==7:
  print(str(a)+'-'+str(b)+'-'+str(c)+'+'+str(d)+'=7')
else:
  print(str(a)+'-'+str(b)+'-'+str(c)+'-'+str(d)+'=7')

Fixed submission:
a,b,c,d= map(int,input())
if a+b+c+d==7:
  print(str(a)+'+'+str(b)+'+'+str(c)+'+'+str(d)+'=7')
elif a+b+c-d==7:
  print(str(a)+'+'+str(b)+'+'+str(c)+'-'+str(d)+'=7')
elif a+b-c+d==7:
  print(str(a)+'+'+str(b)+'-'+str(c)+'+'+str(d)+'=7')
elif a-b+c+d==7:
  print(str(a)+'-'+str(b)+'+'+str(c)+'+'+str(d)+'=7')
elif a+b-c-d==7:
  print(str(a)+'+'+str(b)+'-'+str(c)+'-'+str(d)+'=7')
elif a-b+c-d==7:
  print(str(a)+'-'+str(b)+'+'+str(c)+'-'+str(d)+'=7')
elif a-b-c+d==7:
  print(str(a)+'-'+str(b)+'-'+str(c)+'+'+str(d)+'=7')
else:
  print(str(a)+'-'+str(b)+'-'+str(c)+'-'+str(d)+'=7')
Buggy python submission (verdict: Runtime Error):
a = int(input())
b = int(input())
print(2*c-a)

Fixed submission:
a = int(input())
b = int(input())
print(2*b-a)
Buggy python submission (verdict: Runtime Error):
n = int(input())
l = map(int,input().split())
print(max(l) - min(l))

Fixed submission:
n = int(input())
l = list(map(int,input().split()))
print(max(l) - min(l))
Buggy python submission (verdict: Time Limit Exceeded):
n,m = map(int,input().split())
cnt = 0

while n > 0 and m > 1:
#  print(n,m)
  n -= 1
  m -= 2
  cnt += 1

cnt += m//4

print(cnt)

Fixed submission:
n,m = map(int,input().split())
cnt = 0

if 2 * n >= m:
  cnt += m // 2

else:
  cnt += n
  m -= 2 * n
  cnt += m//4

print(cnt)

Buggy python submission (verdict: Time Limit Exceeded):
n,m = map(int,input().split())
cnt = 0

while n > 0 and m > 1:
#  print(n,m)
  n -= 1
  m -= 2
  cnt += 1

while m > 3:
#  print(m)
  m -= 4
  cnt += 1

print(cnt)

Fixed submission:
n,m = map(int,input().split())
cnt = 0

if 2 * n >= m:
  cnt += m // 2

else:
  cnt += n
  m -= 2 * n
  cnt += m//4

print(cnt)
Buggy python submission (verdict: Time Limit Exceeded):
a,b = map(int, input().split())
count = 0
for i in range(a + 1):
  for j in range(a + 1):
    for k in range(a + 1):
      if i + j + k == b:
        count += 1
print(count)

Fixed submission:
a,b = map(int, input().split())
count = 0
k = 0
for i in range(a + 1):
  for j in range(a + 1):
    k = b - (i + j)
    if 0 <= k and k <= a:
      count += 1
print(count)
Buggy python submission (verdict: Runtime Error):
a,b,c = map(str,input().split())
if b == "+":
  print(int(a)+int(b))
else:
  print(int(a)-int(b))

Fixed submission:
a,b,c = map(str,input().split())
if b == "+":
  print(int(a) + int(c))
else:
  print(int(a )- int(c))
Buggy python submission (verdict: Runtime Error):
n = int(input())
l = list(map(int,input()))
m = int(input())
sum = sum(l)
copy = sum

for i in range(m):
  sum = copy
  a,b = map(int,input().split())
  sum += b - l[a-1]
  print(sum)

Fixed submission:
n = int(input())
l = list(map(int,input().split()))
m = int(input())
sum = sum(l)
copy = sum

for i in range(m):
  sum = copy
  a,b = map(int,input().split())
  sum += b - l[a-1]
  print(sum)
Buggy python submission (verdict: Runtime Error):
import sys
input=sys.stdin.readline

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

ans = b//c - a//c
print(ans)

Fixed submission:
a,b,c = input().split()
print("A" +b[0]+ "C")

Buggy python submission (verdict: Runtime Error):
a,b,c = map(int,input().split())
count = 0
for i in range(a,b+1):
  if i % c == 0:
    count += 1
print(count)

Fixed submission:
a,b,c = input().split()
print("A" +b[0]+ "C")
Buggy python submission (verdict: Time Limit Exceeded):
import sys
input=sys.stdin.readline

a,b,c = map(int,input().split())
count = 0
for i in range(a,b+1):
  if i % c == 0:
    count += 1
print(count)

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

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

if a%c ==0:
	ans = b//c - a//c+1
else:
	ans = b//c - a//c
print(ans)

Buggy python submission (verdict: Time Limit Exceeded):
a,b,c = map(int,input().split())
count = 0
for i in range(a,b+1):
  if i % c == 0:
    count += 1
print(count)

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

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

if a%c ==0:
	ans = b//c - a//c+1
else:
	ans = b//c - a//c
print(ans)

Buggy python submission (verdict: Time Limit Exceeded):
a,b,c = map(int,input().split())
count = 0
for i in range(a,b+1):
  if i % c == 0:
    count += 1
print(count)

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

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

if a%c ==0:
	ans = b//c - a//c+1
else:
	ans = b//c - a//c
print(ans)
Buggy python submission (verdict: Runtime Error):
str = input()
count5 = str.count(5)
count7 = str.count(7)
if count5 == 2 and count7 == 1:
  print('Yes')
else:
  print('NO')


Fixed submission:
num= input().split()
count5 = 0
count7 = 0
 
for i in range(len(num)):
    if num[i] == '5':
        count5 += 1
    elif num[i] == '7':
        count7 += 1
    else:
        continue
if count5 == 2 and count7 == 1:
    print('YES')
else:
    print('NO')

Buggy python submission (verdict: Runtime Error):
num = input().split()

str = input()
strc = ''
for i in range(int(num[0])-1):
  strc = input()
  if str > strc:
    str = strc + str
  else:
    str = str + strc
print(str)

Fixed submission:
num= input().split()
count5 = 0
count7 = 0
 
for i in range(len(num)):
    if num[i] == '5':
        count5 += 1
    elif num[i] == '7':
        count7 += 1
    else:
        continue
if count5 == 2 and count7 == 1:
    print('YES')
else:
    print('NO')

Buggy python submission (verdict: Runtime Error):
num= input().split()
5count = 0
7count = 0
 
for i in range(len(num)):
  if num[i] == '5':
    5count += 1
  elif num[i] == '7':
    7count += 1
if 5count == 2 and 7count == 1:
  print('YES')
else:
  print('NO')

Fixed submission:
num= input().split()
count5 = 0
count7 = 0
 
for i in range(len(num)):
    if num[i] == '5':
        count5 += 1
    elif num[i] == '7':
        count7 += 1
    else:
        continue
if count5 == 2 and count7 == 1:
    print('YES')
else:
    print('NO')

Buggy python submission (verdict: Runtime Error):
num= int(input().split())
5count = 0
7count = 0

for i in range(len(num)):
  if num[i] == 5:
    5count += 1
  elif num[i] == 7:
    7count += 1
if 5count == 2 and 7count == 1:
  print('YES')
else:
  print('NO')

Fixed submission:
num= input().split()
count5 = 0
count7 = 0
 
for i in range(len(num)):
    if num[i] == '5':
        count5 += 1
    elif num[i] == '7':
        count7 += 1
    else:
        continue
if count5 == 2 and count7 == 1:
    print('YES')
else:
    print('NO')
Buggy python submission (verdict: Runtime Error):
num = int(input().split())

str = input()
strc = ''
for i in range(num[0]-1):
  strc = input()
  if str > strc:
    str = strc + str
  else:
    str = str + strc
print(str)

Fixed submission:
num = input().split()
str = [input()]
strc = ''
flg = 0
res = ''
for i in range(int(num[0])-1):
#	print(1)
	strc = input()
	for j in range(len(str)):
		if str[j] < strc:
#			print(2)
			flg = 0
		else:
#			print(3)
			flg = j
			break
		j += 1
	flg = -1
	if flg == 0:
		str.append(strc)
	else:
		str.insert(j,strc)
#	print(str)
for x in str:
	res += x
print(res)

Buggy python submission (verdict: Runtime Error):
num = int(input().split())

str = ''
strc = ''
for i in range(num[0]-1):
  strc = input()
  if str > strc:
    str = strc + str
  else:
    str = str + strc
print(str)

Fixed submission:
num = input().split()
str = [input()]
strc = ''
flg = 0
res = ''
for i in range(int(num[0])-1):
#	print(1)
	strc = input()
	for j in range(len(str)):
		if str[j] < strc:
#			print(2)
			flg = 0
		else:
#			print(3)
			flg = j
			break
		j += 1
	flg = -1
	if flg == 0:
		str.append(strc)
	else:
		str.insert(j,strc)
#	print(str)
for x in str:
	res += x
print(res)

Buggy python submission (verdict: Runtime Error):
num = int(input().split())
str = ''
strc = ''
for i in range(num[0]):
  strc = input()
  if str > strc:
    str = strc + str
  else:
    str = str + strc
print(str)

Fixed submission:
num = input().split()
str = [input()]
strc = ''
flg = 0
res = ''
for i in range(int(num[0])-1):
#	print(1)
	strc = input()
	for j in range(len(str)):
		if str[j] < strc:
#			print(2)
			flg = 0
		else:
#			print(3)
			flg = j
			break
		j += 1
	flg = -1
	if flg == 0:
		str.append(strc)
	else:
		str.insert(j,strc)
#	print(str)
for x in str:
	res += x
print(res)
Buggy python submission (verdict: Time Limit Exceeded):
n=int(input())
lis=list(map(int,input().split()))
x=1
for i in range(n):
  x*=lis[i]
if x>10**18:
  print(-1)
else :
  print(x)
  

Fixed submission:
import sys
n=int(input())
lis=list(map(int,input().split()))
if 0 in lis :
  print(0)
  sys.exit()
x=1
for i in range(n):
  x*=lis[i]
  if  x>10**18:
    print(-1)
    sys.exit()
print(x)
Buggy python submission (verdict: Runtime Error):
n,k=map(int,input().split())
LI=list(range(1,n+1))
kari=n+1
for i in range(k):
  d=int(input())
  li=list(map(int,input().split()))
  for x in range(1,n):
    if li.count(x)!=0:
      LI.remove(x)
print(len(LI)-1)
      
      
    

Fixed submission:
n,k=map(int,input().split())
LI=list(range(1,n+1))
kari=n+1
for i in range(1,k+1):
  d=int(input())
  li=list(map(int,input().split()))
  for x in range(1,n+1):
    if li.count(x)!=0:
      if LI.count(x)!=0:
        LI.remove(x)
print(len(LI))
Buggy python submission (verdict: Time Limit Exceeded):
n=int(input())
li=list(map(int,input().split()))
for i in range(n):
  print(li.count(i+1))
  

Fixed submission:
n=int(input())
li=list(map(int,input().split()))
check=[0]*n
for i in li:
  check[i-1]+=1
for i in range(n):
  print(check[i])
Buggy python submission (verdict: Time Limit Exceeded):
import math
n=int(input())
l=0
summ=0
for i in range(1,n+1):
  for j in range(1,n+1):
    for k in range(1,n+1):
      ans=math.gcd(i,j,)
      ans=math.gcd(ans,k)
      summ+=ans
print(summ)

Fixed submission:
import math
n=int(input())
l=0
summ=0
for i in range(1,n+1):
  for j in range(1,n+1):
    for k in range(1,n+1):
      ans=math.gcd(i,j,)
      ans=math.gcd(ans,k)
      summ+=ans
print(summ)
Buggy python submission (verdict: Runtime Error):
s=input()
y=lens(s)
print("x"*y)

Fixed submission:
s=input()
y=len(s)
print("x"*y)
Buggy python submission (verdict: Runtime Error):
k,x=map(int,input().split())
print("Yes" if 500*k>=x "No" else)

Fixed submission:
k,x=map(int,input().split())
print("Yes" if 500*k>=x else "No" )
Buggy python submission (verdict: Runtime Error):
a,b,k=map(int,input().split())
if a>=k:
  print(a-k,b)
elif b>=(k-a):
  print(0,b-k+a)
else:
  print(0,0)


Fixed submission:
s,t=input().split()
print(t+s)
Buggy python submission (verdict: Runtime Error):
a,b,x=map(int,input().split())
n=0
moji=str(n)
y=len(moji)
money=a*n+b*y
while money<=x:
  n=n+1
  moji=str(n)
  y=len(moji)
  money=a*n+b*y
print(n-1)


Fixed submission:
s=input()
li=["MON","TUE","WED","THU","FRI","SAT","SUN"]
if s=="SUN":
  print(7)
else:
  print(6-(li.index(s)))
Buggy python submission (verdict: Runtime Error):
n,k=map(int,input().split())
LIST=list(map(int,input().split()))
kazu=0
for i in LIST:
  if i>=k:
    kazu=kazu+1
print (kazu)

Fixed submission:
n=int(input())
cnt=0
ans=0
for i in range(1,n+1):
  cnt+=1
  if i%2==1:
    ans+=1
    
print(ans/cnt)

Buggy python submission (verdict: Runtime Error):
n,k=map(int,input().split())
LIST=list(map(int,input().split()))
kazu=0
for i in LIST:
  if i>=k:
    kazu=kazu+1

print (kazu)


Fixed submission:
n=int(input())
cnt=0
ans=0
for i in range(1,n+1):
  cnt+=1
  if i%2==1:
    ans+=1
    
print(ans/cnt)

Buggy python submission (verdict: Runtime Error):
n,k=map(int,input().split())
LIST=list(map(int,input().split()))
kazu=0
for i in LIST:
  if i>=k:
    kazu=kazu+1
print (kazu)

Fixed submission:
n=int(input())
cnt=0
ans=0
for i in range(1,n+1):
  cnt+=1
  if i%2==1:
    ans+=1
    
print(ans/cnt)
Buggy python submission (verdict: Runtime Error):
from decimal import Decimal
import numpy as np
N=Decimal(input())
L=list(map(Decimal,input().split()))
L=Decimal(np.prod(L, dtype=Decimal))

if L>=1000000000000000001:
  print("-1")
else:
  print(int(L))

Fixed submission:
import numpy as np
from decimal import *
 
n = int(input())
a = list(map(Decimal, input().split()))
b = np.array(a)
temp = 1
 
if a.count(0) >0:
  print(0)
  exit()
 
for i in range(n):
  temp = b[i] * temp
  if temp > 10**18 or temp < 0:
    print('-1')
    exit()
 
print(temp)

Buggy python submission (verdict: Runtime Error):
from decimal import Decimal
import numpy as np
N=Decimal(input())
L=list(map(Decimal,input().split()))
L=Decimal(np.prod(L))

if L>=1000000000000000001:
  print("-1")
else:
  print(int(L))

Fixed submission:
import numpy as np
from decimal import *
 
n = int(input())
a = list(map(Decimal, input().split()))
b = np.array(a)
temp = 1
 
if a.count(0) >0:
  print(0)
  exit()
 
for i in range(n):
  temp = b[i] * temp
  if temp > 10**18 or temp < 0:
    print('-1')
    exit()
 
print(temp)
Buggy python submission (verdict: Runtime Error):
n, k = map(int, input().split())
d = [int(input())]
a = [list(map(int, input().split()))]

for i in range(1,k):
  d.append(int(input()))
  a.append(list(map(int, input().split())))
  
all_sunuke = [1]*n

for j in range(0, k):
  for m in range(0, d[j]):
    if a[m] != 0:
      all_sunuke[m] =all_sunuke[m]*0

print(sum(all_sunuke))


Fixed submission:
n, k = map(int, input().split())
all_sunuke = [1]*n

for i in range(0,k):
  d = int(input())
  a = list(map(int, input().split()))
  for j in range(0,d):
      all_sunuke[(a[j]-1)] =all_sunuke[(a[j]-1)]*0

print(sum(all_sunuke))
Buggy python submission (verdict: Time Limit Exceeded):
def intlist(x):
    y = []
    for i in range(len(x)):
        y.append(int(x[i]))
    return y
N = int(input())
A = intlist(input().split())
M = 1

for i in range(N):
    M = M * A[i]
if M > 10**18:
    M = -1
        
print(M)

Fixed submission:
def intlist(x):
    y = []
    for i in range(len(x)):
        y.append(int(x[i]))
    return y
N = int(input())
A = intlist(input().split())
M = 1

A.sort()
if A[0] == 0:
    M = 0
else:
    for i in range(N):
        M = M * A[i]
        if M > 10**18:
            M = -1
            break
print(M)
Buggy python submission (verdict: Runtime Error):
C = input().split()

A = int(C[0])
B = int(C[1]*100)



E = A*B

F = E/100

print(F)

Fixed submission:
C = input().split()

A = int(C[0])
B = int(float(C[1])*100+0.5)



E = A*B



if E < 100:
    print(0)
elif E < 200:
    print(1)
elif E < 300:
    print(2)
else:
    F = str(E)
    print(F[0:len(F)-2])

Buggy python submission (verdict: Runtime Error):
C = input().split()

A = int(C[0])
B = int(C[1]*100)



E = A*D

F = E/100

print(F)

Fixed submission:
C = input().split()

A = int(C[0])
B = int(float(C[1])*100+0.5)



E = A*B



if E < 100:
    print(0)
elif E < 200:
    print(1)
elif E < 300:
    print(2)
else:
    F = str(E)
    print(F[0:len(F)-2])
Buggy python submission (verdict: Runtime Error):
A,B,H,M = map(int, input().split())

import math

degreeA = (H * 60 + M) / 2
degreeB = M * 6

if degreeA == degreeB:
    print(abs(A - B))
else:
    degreeAB = abs(degreeA - degreeB)
    if degreeAB == 180:
        print(A + B)
    elif degreeAB > 180:
        degreeAB = 360 - degreeAB
    C = A ** 2 + B ** 2 - 2 * A * B * math.cos(degreeAB * math.pi / 180)
    print(math.sqrt(C))
            

Fixed submission:
N = input()


if int(N[len(N)-1]) in [2 , 4 , 5 ,7 , 9]:
    print("hon")
elif int(N[len(N)-1]) in [0,1,6,8]:
    print("pon")
else:
    print("bon")

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

import math
print(math.pi)

degreeA = (H * 60 + M) / 2
degreeB = M * 6

if degreeA == degreeB:
    print(abs(A - B))
else: #degreeA > degreeB:
    degreeAB = abs(degreeA - degreeB)
    if degreeAB == 180:
        print(A + B)
    elif degreeAB > 180:
        degreeAB = 360 - degreeAB
    C = A ** 2 + B ** 2 - 2 * A * B * math.cos(degreeAB * math.pi / 180)
    print(math.sqrt(C))

Fixed submission:
N = input()


if int(N[len(N)-1]) in [2 , 4 , 5 ,7 , 9]:
    print("hon")
elif int(N[len(N)-1]) in [0,1,6,8]:
    print("pon")
else:
    print("bon")
Buggy python submission (verdict: Runtime Error):
A,B,H,M = map(float, input().split())

import math

degreeA = float((H * 60 + M) / 2)
degreeB = float(M * 6)

#if degreeA == degreeB:
#    print(abs(A - B))
else:
    degreeAB = abs(degreeA - degreeB)
    if degreeAB == 180:
        print(A + B)
    elif degreeAB > 180:
        degreeAB = 360 - degreeAB
    C = float(A ** 2 + B ** 2 - 2 * A * B * float(math.cos(float(degreeAB * math.pi / 180))))
    print(math.sqrt(C))

Fixed submission:
A,B,H,M = map(float, input().split())

import math

degreeA = float((H * 60 + M) / 2)
degreeB = float(M * 6)

degreeAB = abs(degreeA - degreeB)

if degreeAB > 180:
    degreeAB = 360 - degreeAB
C = float(A ** 2 + B ** 2 - 2 * A * B * float(math.cos(float(degreeAB * math.pi / 180))))
print(math.sqrt(C))

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

import math
print(math.pi)

degreeA = (H * 60 + M) / 2
degreeB = M * 6

if degreeA == degreeB:
    print(abs(A - B))
else:
    degreeAB = abs(degreeA - degreeB)
    if degreeAB == 180:
        print(A + B)
    elif degreeAB > 180:
        degreeAB = 360 - degreeAB
    C = A ** 2 + B ** 2 - 2 * A * B * math.cos(degreeAB * math.pi / 180)
    print(math.sqrt(C))
            

Fixed submission:
A,B,H,M = map(float, input().split())

import math

degreeA = float((H * 60 + M) / 2)
degreeB = float(M * 6)

degreeAB = abs(degreeA - degreeB)

if degreeAB > 180:
    degreeAB = 360 - degreeAB
C = float(A ** 2 + B ** 2 - 2 * A * B * float(math.cos(float(degreeAB * math.pi / 180))))
print(math.sqrt(C))
Buggy python submission (verdict: Runtime Error):
def intlist(x):
    y = []
    for i in range(len(x)):
        y.append(int(x[i]))
    return y
 
N, M, X = map(int, input().split())
price = -1
 
L = []
a = []
 
suit =[]
for i in range(M+1):
    a.append(0)

 
for i in range(N):
    text = input().split()
    L.append(intlist(text))
 
def buy(x,y):
    
    if x + y <= N:
        
        for i in range(0,M+1):
            
            a[i] += L[x+y-1][i]
            
        
        if x + y == N:
            score = a[1:len(a)]
            
            if min(score) >= X:
                suit.append(a.copy())
                
        elif x + y != N:
            buy(x+1,y)
            for i in range(0,M+1):
                a[i] -= L[x+y][i]
            
            notbuy(x,y+1)
 
 
def notbuy(x,y):
    print("notbuy",x,y)
    if x + y <= N:
        
        if x + y == N:
            score = a[1:len(a)]
            if min(score) >= X:
                suit.append(a.copy())
                    
                
        elif x + y != N:
            buy(x+1,y)
            for i in range(0,M+1):
                a[i] -= L[x+y][i]
            notbuy(x,y+1)    
 
def textbook(x,y):
    buy(x+1,y)
    for i in range(0,M+1):
        a[i] -= L[x+y][i]
    notbuy(x,y+1)
 
textbook(0,0)
 
b = []
 
if suit != []:
    for i in range(len(suit)):
        for j in range(len(suit)-1):
            if suit[j] > suit[j+1]:
                b = suit[j]
                suit[j] = suit[j+1]
                suit[j+1] = b
    price = suit[0][0]
 
 
print(price)

Fixed submission:
S = input()
T = input()
A = "Yes"

for i in range(len(S)):
    if S[i] != T[i]:
        A = "No"
        break
        
    
print(A)