Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
import sys

f = sys.stdin.readline()
xx = f.split(' ')
x = [int(str) for str in xx]

n = x[0]
a = x[1]
b = x[2]

count = 0
sum = 0
while 1:
  for i in range(0, a):
  	count += 1
	if( count > n):
		break
	sum += 1
  if( count > n):
	break
  for i in range(0, b):
  	count += 1
	if( count > n):
		break
  else:
  	continue
  break

print sum
sys.stdout.flush()


Fixed submission:
import sys

f = sys.stdin.readline()
xx = f.split(' ')
x = [int(str) for str in xx]

n = x[0]
a = x[1]
b = x[2]


ab = a + b

d = int(n / ab)
m = n % ab

if ( a > m):
	sum = a * d + m
else:
	sum = a * d + a

print sum
sys.stdout.flush()

Buggy python submission (verdict: Runtime Error):
import sys

f = sys.stdin.readline()
xx = f.split(' ')
x = [int(str) for str in xx]

n = x[0]
a = x[1]
b = x[2]

count = 0
sum = 0
while 1:
  for i in range(0, a):
  	count += 1
	if( count > n):
		break
	sum += 1
  for i in range(0, b):
  	count += 1
	if( count > n):
		break
  else:
  	continue
  break

print sum
sys.stdout.flush()


Fixed submission:
import sys

f = sys.stdin.readline()
xx = f.split(' ')
x = [int(str) for str in xx]

n = x[0]
a = x[1]
b = x[2]


ab = a + b

d = int(n / ab)
m = n % ab

if ( a > m):
	sum = a * d + m
else:
	sum = a * d + a

print sum
sys.stdout.flush()
Buggy python submission (verdict: Runtime Error):
import sys

ar = []
x = sys.stdin.readline()
x = x.split(' ')
(n,m)=[int(str) for str in x]

ret = 0
chk = []
for i in range(m):
  x = sys.stdin.readline()
  x = x.split(' ')
  (s,c)=[int(str) for str in x]
  if not ( s in chk):
    if(n-s>=0):
      ret += c*10**(n-s)
      chk.append(s)
  else:
      if( c != int(ret/10**(n-s))):
        print("-1")
        exit(0)

if( ret == 0 and n == 1):
  print("0")
  exit(0)
if( ret < 10**(n-1)):
  if not ( n-1 in chk):
    print(ret+10**(n-1))
  else:
    print("-1")
else:
  print(ret)
sys.stdout.flush()


Fixed submission:
import sys

x = sys.stdin.readline()
x = int((int(x)+1)/2)
print(x)

sys.stdout.flush()

Buggy python submission (verdict: Runtime Error):
import sys

ar = []
x = sys.stdin.readline()
x = x.split(' ')
(n,m)=[int(str) for str in x]

ret = 0
chk = []
for i in range(m):
  x = sys.stdin.readline()
  x = x.split(' ')
  (s,c)=[int(str) for str in x]
  if not ( s in chk):
    if(n-s>=0):
      ret += c*10**(n-s)
      chk.append(s)
  else:
      if( c != int(ret/10**(n-s))):
        print("-1")
        exit(0)


if( ret == 0 and n == 1):
  print("0")
  exit(0)
if( ret < 10**(n-1)):
  if not ( n-1 in chk):
    print(ret+10**(n-1))
  else:
    print("-1")
else:
  print(ret)
sys.stdout.flush()


Fixed submission:
import sys

x = sys.stdin.readline()
x = int((int(x)+1)/2)
print(x)

sys.stdout.flush()
Buggy python submission (verdict: Runtime Error):
60 88 34
92 41 43
65 73 48
10
60
43
88
11
48
73
65
41
92
34

Fixed submission:
import sys

ar = []
x = sys.stdin.readline()
x = x.split(' ')
ar.extend([int(str) for str in x])
x = sys.stdin.readline()
x = x.split(' ')
ar.extend([int(str) for str in x])
x = sys.stdin.readline()
x = x.split(' ')
ar.extend([int(str) for str in x])

n = int(sys.stdin.readline())
ret = []
for i in range(n):
  b = int(sys.stdin.readline())
  if( b in ar):
    index = ar.index(b)
    ret.append(index)

result = "No"
for i in range(0,3):
  if( i*3+0 in ret and i*3+1 in ret and i*3+2 in ret ):
    result = "Yes"
  if( i+0*3 in ret and i+1*3 in ret and i+2*3 in ret ):
    result = "Yes"
if( 0 in ret and 4 in ret and 8 in ret ):
  result = "Yes"
if( 2 in ret and 4 in ret and 6 in ret ):
  result = "Yes"

print(result)



sys.stdout.flush()
Buggy python submission (verdict: Runtime Error):
import math

A, B, C, D = input().split()

T_hp = int(A)
T_atk = int(B)
A_hp = int(C)
A_atk = int(D)

T_burstturn = math.ceil(T_hp / A_atk)
A_burstturn = math.ceil(A_hp / T_atk)

if T_burstturn < A_burstturn:
    print("No")
else:
    prit("Yes")
    

Fixed submission:
import math

A, B, C, D = input().split()

T_hp = int(A)
T_atk = int(B)
A_hp = int(C)
A_atk = int(D)

T_burstturn = math.ceil(T_hp / A_atk)
A_burstturn = math.ceil(A_hp / T_atk)

if T_burstturn < A_burstturn:
    print("No")
else:
    print("Yes")
Buggy python submission (verdict: Runtime Error):
hp, atk = input().split()

hp = int(hp)
atk = int(atk)

value = 0

numlist = list((input().split()))

numlist = list(map(int, numlist))

for i in range(atk):
    value = value + numlist[i]
    
if value > hp:
    print("Yes")
else:
    print("No")

Fixed submission:
import math

hp, atk = input().split()

hp = int(hp)

atk = int(atk)

print(math.ceil(hp / atk))
Buggy python submission (verdict: Runtime Error):
A, B, K = input().split()

Takahashi = int(A)
Aoki = int(B)
count = int(K)

t = 0

for i in range(count):
    Takahashi = Takahashi-1
    t = t+1
    if t == count:
        break
    elif Takahashi < 0:
        Takahashi = 0
        Aoki = Aoki-1
        t = t+1
        if Aoki == 0:
            print(Takahashi, Aoki)
            break
    else:
        continue


print(Takahashi, Aoki)

Fixed submission:
word1, word2 = input().split()

print(word2 + word1)

Buggy python submission (verdict: Runtime Error):
A, B, K = input().split()

Takahashi = int(A)
Aoki = int(B)
count = int(K)

t = 0

for i in range(count):
    Takahashi = Takahashi-1
    t = t+1
    if t == count:
        break
    elif Takahashi < 0:
        Takahashi = 0
        Aoki = Aoki-1
        t = t+1
        if Aoki == 0:
            print(Takahashi, Aoki)
            break
    else:
        continue


print(Takahashi, Aoki)

Fixed submission:
word1, word2 = input().split()

print(word2 + word1)

Buggy python submission (verdict: Runtime Error):
word1 = input()
word2 = input()

print(word1 + word2)

Fixed submission:
word1, word2 = input().split()

print(word2 + word1)
Buggy python submission (verdict: Runtime Error):
 n = int(input())
    a = list(map(int, input().split()))
    seta = set(a)
    ans = 'YES' if len(a) == len(seta) else 'NO'
    print(ans)    

Fixed submission:
n = int(input())
a = list(map(int, input().split()))
seta = set(a)
if len(a)==len(seta):
  print("YES")
else:
  print("NO")

Buggy python submission (verdict: Runtime Error):
 n = int(input())
    a = list(map(int, input().split()))
    seta = set(a)
    ans = 'YES' if len(a) == len(seta) else 'NO'
    print(ans)    

Fixed submission:
n = int(input())
a = list(map(int, input().split()))
seta = set(a)
if len(a)==len(seta):
  print("YES")
else:
  print("NO")
Buggy python submission (verdict: Runtime Error):
N, X = map(int, input().split())
A = list(map(int, input().split()))
cnt = 1
D = 0
for a in A:
	D += a
    if D > X:
		break
    cnt += 1

print(cnt)

Fixed submission:
N,X=map(int,input().split())
L=list(map(int,input().split()))
d=0
k=0
for i in range(N):
  d+=L[i]
  if d<=X:
    k+=1
  else:break
print(k+1)
Buggy python submission (verdict: Runtime Error):
S = int(input())
W = int(input())
if S <= W :
  print("unsafe")
else:
  print("safe")

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

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

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

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

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

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

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

Buggy python submission (verdict: Runtime Error):
S = int(input())
W = int(input())
if S >= W : print('safe')
else: print('unsafe')

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

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

Fixed submission:
S, W = map(int,input().split())
if S <= W :
  print("unsafe")
else:
  print("safe")
Buggy python submission (verdict: Runtime Error):
A = int(input())
B = int(input())
C = int(input())
D = int(input())
while True:
	C = C - B
	if C <= 0 : 
		print("Yse")
		break
	A = A - D
	if A <= 0 : 
		print("No")
		break

Fixed submission:
A,B,C,D=map(int,input().split())
 
while True:
    C=C-B
    if C<=0:
        break
    A=A-D
    if A<=0:
        break
 
if C<=0:
    print('Yes')
else:
    print('No')
Buggy python submission (verdict: Time Limit Exceeded):
A=int(input())
list = []
for n in range(A):
	con = str(input())
	if con not in list:
		list.append(con)
	else: pass
print(str(len(list)))



Fixed submission:
n = int(input())
s = set(input() for _ in range(n))
print(len(s))

Buggy python submission (verdict: Time Limit Exceeded):
A=int(input())
list = []
for n in range(A):
	con = str(input())
	if con not in list:
		list.append(con)
	else: pass
print(str(len(list)))



Fixed submission:
n = int(input())
s = set(input() for _ in range(n))
print(len(s))

Buggy python submission (verdict: Runtime Error):
A=map(int,input().split())
list = []
for n in range(A):
	con = str(input())
	if con not in list:
		list.append(con)
	else: pass
print(str(len(list)))


Fixed submission:
n = int(input())
s = set(input() for _ in range(n))
print(len(s))
Buggy python submission (verdict: Runtime Error):
A = int(input())
B = int(input())
if A == B:
  print("Yes")
else:
  print("No")

Fixed submission:
N,M = map(int, input().split())
 
if N == M:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
a = int(input())
b = int(input())
if a == b:
  print("Yes")
else:
  print("No")

Fixed submission:
N,M = map(int, input().split())
 
if N == M:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
A = int(input())
B = int(input())
if A == B:
  print("Yes")
else:
  print("No")

Fixed submission:
N,M = map(int, input().split())
 
if N == M:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
A = input()
B = input()
if A == B:
  print("YES")
else:
  print("NO")

Fixed submission:
N,M = map(int, input().split())
 
if N == M:
  print("Yes")
else:
  print("No")

Buggy python submission (verdict: Runtime Error):
A = int(input())
B = int(input())
if A == B:
  print("YES")
else:
  print("NO")

Fixed submission:
N,M = map(int, input().split())
 
if N == M:
  print("Yes")
else:
  print("No")
Buggy python submission (verdict: Runtime Error):
A = map(int,input().split())
B = map(int,input().split())
if 1 <= A <= 9 and 1<= B <= 9:
	print(A*B)
else:
	print(-1)

Fixed submission:
a,b=map(int,input().split())
if 1<=a<=9 and 1<=b<=9:
  print(a*b)
else:
  print(-1)

Buggy python submission (verdict: Runtime Error):
A = map(int,input())
B = map(int,input())
if 1 <= A <= 9 and 1<= B <= 9:
	print(A*B)
else:
	print(-1)

Fixed submission:
a,b=map(int,input().split())
if 1<=a<=9 and 1<=b<=9:
  print(a*b)
else:
  print(-1)
Buggy python submission (verdict: Runtime Error):
import math
ans = 10**12
n = int(input())
for a in range(1,int(math.sqrt(n)):
  for b in range(1,int(math.sqrt(n)):
    if a * b == n:
      ans_n = a + b -2
      if ans > ans_n:
        ans = ans_n
print(ans) 

Fixed submission:
n = int(input())
ans = float('inf')
 
for i in range(1, 10**6+1):
    q, m = divmod(n, i)
    if m == 0:
        ans = min(ans, q+i)
 
print(ans-2)

Buggy python submission (verdict: Runtime Error):
import math
ans = 10**12
n = int(input())
for a in range(1,int(math.sqrt(N)):
  for b in range(1,int(math.sqrt(N)):
    if a * b == n:
      ans_n = a + b -2
      if ans > ans_n:
        ans = ans_n
print(ans) 

Fixed submission:
n = int(input())
ans = float('inf')
 
for i in range(1, 10**6+1):
    q, m = divmod(n, i)
    if m == 0:
        ans = min(ans, q+i)
 
print(ans-2)

Buggy python submission (verdict: Runtime Error):
ans = 10**12
n = int(input())
for a in range(1,int(math.sqrt(N)):
  for b in range(1,int(math.sqrt(N)):
    if a * b == n:
      ans_n = a + b -2
      if ans > ans_n:
        ans = ans_n
print(ans) 

Fixed submission:
n = int(input())
ans = float('inf')
 
for i in range(1, 10**6+1):
    q, m = divmod(n, i)
    if m == 0:
        ans = min(ans, q+i)
 
print(ans-2)

Buggy python submission (verdict: Time Limit Exceeded):
ans = 10**12
n = int(input())
for a in range(1,n+1):
  for b in range(1,n+1):
    if a * b == n:
      ans_n = a + b -2
      if ans > ans_n:
        ans = ans_n
print(ans) 

Fixed submission:
n = int(input())
ans = float('inf')
 
for i in range(1, 10**6+1):
    q, m = divmod(n, i)
    if m == 0:
        ans = min(ans, q+i)
 
print(ans-2)
Buggy python submission (verdict: Runtime Error):
A = int(input())
sum = 0
for i in range(1,A+1)
	sum += i
print(str(sum))

Fixed submission:
A = int(input())
sum = 0
for i in range(1,A+1):
	sum += i
print(str(sum))
Buggy python submission (verdict: Runtime Error):
A = int(input()).split()
if A.count("5") == 2 and A.count("7")==1:
	print("YSE")
else:
	print("NO")

Fixed submission:
A = input().split()
if A.count('5') == 2 and A.count('7')==1:
	print("YES")
else:
	print("NO")

Buggy python submission (verdict: Runtime Error):
A = int(input()).split()
if A.count.("5") == 2 and A.count("7")==1:
	print("YSE")
else:
	print("NO")

Fixed submission:
A = input().split()
if A.count('5') == 2 and A.count('7')==1:
	print("YES")
else:
	print("NO")

Buggy python submission (verdict: Runtime Error):
A = int(input()).split()
if A.count.("5") == 2 and a.count("7")==1:
	print("YSE")
else:
	print("NO")

Fixed submission:
A = input().split()
if A.count('5') == 2 and A.count('7')==1:
	print("YES")
else:
	print("NO")
Buggy python submission (verdict: Runtime Error):
  1 SW = list(map(int,input().split()))
SW = list(map(int,input().split()))
if (SW[0] > SW[1]):
  print("safe")
else:
  print("unsafe")

Fixed submission:
SW = list(map(int,input().split()))
if (SW[0] > SW[1]):
  print("safe")
else:
  print("unsafe")

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

Fixed submission:
SW = list(map(int,input().split()))
if (SW[0] > SW[1]):
  print("safe")
else:
  print("unsafe")
Buggy python submission (verdict: Runtime Error):
# coding:utf-8

n=int(input())
gacha_list[input() for i in range()]
gacha_prize=list(set(gacha_list())
print(len(gacha_prize()))

Fixed submission:
n=int(input())
a=[]
 
for i in range(n):
  word=input()
  a.append(word)
print(len(set(a)))
Buggy python submission (verdict: Runtime Error):
#!/usr/bin/env python3
import sys

def main():
    
    n,m = map(int,input().split())
    a = list(map(int,input().split()))
    t=sum(a)
    a.sort()
    a.reverse()
    print(a[m])
    
    if a[m-1]>=t/(4*m):
        print("Yes")
    else:
        print("No")

main()



Fixed submission:
#!/usr/bin/env python3
import sys

def main():
    
    n,m = map(int,input().split())
    a = list(map(int,input().split()))
    t=sum(a)
    a.sort()
    a.reverse()
    
    if a[m-1]>=t/(4*m):
        print("Yes")
    else:
        print("No")

main()

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

def main():
    
    n,m = map(int,input().split())
    a = list(map(int,input().split()))
    t=sum(a)
    a.sort()
    a.reverse()

    if a[m]>t/(4*m):
        print("Yes")
    else:
        print("No")

main()



Fixed submission:
#!/usr/bin/env python3
import sys

def main():
    
    n,m = map(int,input().split())
    a = list(map(int,input().split()))
    t=sum(a)
    a.sort()
    a.reverse()
    
    if a[m-1]>=t/(4*m):
        print("Yes")
    else:
        print("No")

main()

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

def main():
    
    n,m = map(int,input().split())
    a = list(map(int,input().split()))
    t=sum(a)
    a.sort()
    a.reverse()

    if a[m]>=t/(4*m):
        print("Yes")
    else:
        print("No")

main()



Fixed submission:
#!/usr/bin/env python3
import sys

def main():
    
    n,m = map(int,input().split())
    a = list(map(int,input().split()))
    t=sum(a)
    a.sort()
    a.reverse()
    
    if a[m-1]>=t/(4*m):
        print("Yes")
    else:
        print("No")

main()
Buggy python submission (verdict: Runtime Error):
x = list(map(int,input().split()))
if x[0] < x[1] :
  print("safe")
  else:
    print("unsafe")


Fixed submission:
x = list(map(int,input().split()))
if x[0] > x[1]:
  print("safe")
else:
  print("unsafe")
Buggy python submission (verdict: Runtime Error):
buf = input().split()
th = int(buf[0])
ts = int(buf[1])
ah = int(buf[2])
as = int(buf[3])

while True:
  ah -= ts
  if ah <= 0:
    break
  th -= as
  if th <= 0:
    break

if ah <= 0:
  print('Yes')
if th <= 0:
  print('No')

Fixed submission:
buf = input().split()
th = int(buf[0])
ts = int(buf[1])
ah = int(buf[2])
ass = int(buf[3])

while True:
  ah -= ts
  if ah <= 0:
    break
  th -= ass
  if th <= 0:
    break

if ah <= 0:
  print('Yes')
if th <= 0:
  print('No')
Buggy python submission (verdict: Runtime Error):
a, b, c = intpu().split()
print(c, a, b)

Fixed submission:
a, b, c = input().split()
print(c, a, b)
Buggy python submission (verdict: Runtime Error):
buf = input().split()
n = int(buf[0])
k = int(buf[1])

c1 = n % k
c2 = -1 * (c1 - k)
return min([c1, c2])

Fixed submission:
buf = input().split()
n = int(buf[0])
k = int(buf[1])

c1 = n % k
c2 = -1 * (c1 - k)

print(min([c1, c2]))
Buggy python submission (verdict: Runtime Error):
n = int(input())
s = []
for _ in range(n):
  s.append(input())
print(len(set(s))

Fixed submission:
s, w = input().split()
if int(s) <= int(w):
    print('unsafe')
else:
    print('safe')
Buggy python submission (verdict: Runtime Error):
n = int(input())
s = []
for _ in range(input()):
  s.append(input())
print(len(set(s)))

Fixed submission:
n = int(input())
s = []
for _ in range(n):
  s.append(input())
print(len(set(s)))
Buggy python submission (verdict: Runtime Error):
N, M, C = map(int, input().split())
B = [int(input()) for i in range(M)]
A = [[int(input()) for i in range(M)] for j in range(N)]
cnt = 0
for i in range(N):
    ans = 0
    for j in range(M):
        ans += A[j][i] * B[j]
    if ans + C > 0:
        cnt += 1
print(cnt)


Fixed submission:
N, M, C = map(int, input().split())
B = list(map(int, input().split()))
ans = 0

for i in range(N):
    A = list(map(int, input().split()))
    tmp = C
    for i, j in zip(A, B):
        tmp += i * j
    if tmp > 0:
        ans += 1
print(ans)

Buggy python submission (verdict: Runtime Error):
N, M, C = map(int, input().split())
B = [int(input()) for i in range(M)]
A = [[int(input()) for i in range(M)] for j in range(N)]
cnt = 0
for i in range(N):
    ans = 0
    for j in range(M):
        ans += A[i][j] * B[j]
    if ans + C > 0:
        cnt += 1
print(cnt)


Fixed submission:
N, M, C = map(int, input().split())
B = list(map(int, input().split()))
ans = 0

for i in range(N):
    A = list(map(int, input().split()))
    tmp = C
    for i, j in zip(A, B):
        tmp += i * j
    if tmp > 0:
        ans += 1
print(ans)
Buggy python submission (verdict: Runtime Error):
a, b, k = map(int, input().split())
table = []

for i in range(min(a, b)):
    if a % i == 0 and b % i == 0:
        table.append(i)
print(table[-k])

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

for i in range(min(a, b), 0, -1):
    if a % i == 0 and b % i == 0:
        k -= 1
        if k == 0:
            print(i)
            break
Buggy python submission (verdict: Runtime Error):
N = int(input())
money, tanni = input().split()
total = 0
for i in range(N)
    if tanni == "JPY":
        total += int(money)
    else:
        total += float(money) * 380000
print(total)

Fixed submission:
y=0
for _ in range(int(input())):
    x,u=input().split()
    y+=int(x) if u=="JPY" else float(x)*380000
print(y)

Buggy python submission (verdict: Runtime Error):
N = int(input())
money, tanni = input().split()
money = float(money)
total = 0.0
rate = 380000.0
for i in range(N)
    if tanni == "JPY":
        total += money
    else:
        total += money * rate
print("%.11f"%(total))

Fixed submission:
y=0
for _ in range(int(input())):
    x,u=input().split()
    y+=int(x) if u=="JPY" else float(x)*380000
print(y)

Buggy python submission (verdict: Runtime Error):
N = int(input())
total = 0
for i in range(N):
    money, tani = map(input().split())
    money = int(input())
    if tani = "JPY":
        total += money
    else:
        total += money * 380000
print("%d"%(total))


Fixed submission:
y=0
for _ in range(int(input())):
    x,u=input().split()
    y+=int(x) if u=="JPY" else float(x)*380000
print(y)
Buggy python submission (verdict: Runtime Error):
a,b = map(int,input().split())
if b % a == 0
    print(a + b)
else:
    print(b - a)


Fixed submission:
a, b = map(int,input().split())
if b % a == 0:
    print(a + b)
else:
    print(b - a)
Buggy python submission (verdict: Runtime Error):
import functools
import math

n = int(input())
A = list(map(int, input().split()))

print(functools.reduce(math.gcd, A))

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

def gcd(a, b):
    if b == 0: return a
    return gcd(b, a%b)

E = gcd(A[0], A[1])
if n == 2: print(E)
else:
    for i in range(2, n):
        E = gcd(E, A[i])
    print(E)
Buggy python submission (verdict: Runtime Error):
N = int(input())
table = []
for i in range(N):
    table.append(int(input()))
print(sum(table[:]) - max(table) * // 2)

Fixed submission:
N = int(input())
p = [int(input()) for _ in range(N)]
p = sorted(p)
print(sum(p[:]) - p[-1]//2)

Buggy python submission (verdict: Runtime Error):
N = int(input())
table = set()
for i in range(N):
    table.add(int(input()))
print(sum(table[:]) - max(table) * // 2)

Fixed submission:
N = int(input())
p = [int(input()) for _ in range(N)]
p = sorted(p)
print(sum(p[:]) - p[-1]//2)
Buggy python submission (verdict: Runtime Error):
N = int(input())
T, A = map(int, input().split())
*H, = [map(int, input().split())]
min = 10000000
ans = 0
for i in range(N):
    if min > abs(A - T + H[i] * 0.006):
        min = abs(A - T + H[i] * 0.006)
        ans = i
print(ans)


Fixed submission:
N = int(input())
T, A = map(int, input().split())
H = list(map(int, input().split()))
X = [abs(A - (T - h*0.006)) for h in H]
print(X.index(min(X)) + 1)
Buggy python submission (verdict: Runtime Error):
N = int(input().split())

print((N//2) * (N//2 + N%2)

Fixed submission:
K=int(input())
print((K//2)*((K+1)//2))

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

print("%d"%((N / 2) * ((N + 1) / 2)))

Fixed submission:
K=int(input())
print((K//2)*((K+1)//2))

Buggy python submission (verdict: Runtime Error):
N = int(input().split())
ans = 0
if N%2 == 0:
    ans = (N/2) ** 2
else:
    ans = (N/2) ** 2 - 1/4
print(ans)

Fixed submission:
K=int(input())
print((K//2)*((K+1)//2))

Buggy python submission (verdict: Runtime Error):
N = int(input().split())
ans = 0
if N%2 == 0:
    ans = N/2 ** 2
else:
    ans = (N/2 + 1/2) * (N/2 - 1/2)
print(ans)

Fixed submission:
K=int(input())
print((K//2)*((K+1)//2))
Buggy python submission (verdict: Runtime Error):
H, W = map(int, input().split())
a = [""] * H
for i in range(H):
    a[i] = input()
row = [False] * H
col = [False] * W
for i in range(H):
    for j in range(W):
        if a[i][j] == "#":
            row[i] = True
            col[i] = True
for i in range(H):
    if row[i]:
        for j in range(W):
            if col[j]:
                print(a[i][j], end = "")
        print()

Fixed submission:
h, w = map(int, input().split())
a = [''] * h
for i in range(h):
	a[i] = input()
 
row = [False] * h
col = [False] * w
for i in range(h):
	for j in range(w):
		if a[i][j] == '#':
			row[i] = True
			col[j] = True
 
for i in range(h):
	if row[i]:
		for j in range(w):
			if col[j]:
				print(a[i][j], end = '')
		print()