TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
num = int(input())
prices = []

for i in range(num):
  prices[i].append(input())

max = prices[0]
for i in range(1,num):
  if prices[i]>max:
    max=prices[i]
    max_i = i

sum=0
for i in range(num):
  if i==max_i:
    sum = sum + int(prices[i]/2)
  else:
    sum = sum + prices[i]

num = int(input())
prices = []
 
for i in range(num):
  prices.append(int(input()))

max_i=0
max = prices[0]
for i in range(1,num):
  if prices[i]>max:
    max=prices[i]
    max_i = i
 
sum=0
for i in range(num):
  if i==max_i:
    sum += int(prices[i]/2)
  else:
    sum += prices[i]

print(sum)

Verdicts: Runtime Error

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
a = int(input())
list=[]
for i in range(a):
  i=int(input())
  list.append(i)
for i in list:
  if i == max(list):
    list.append(i/2)
    list.remove(i)
sum(list)

a = int(input())
list=[]
for i in range(a):
  i=int(input())
  list.append(i)
for i in list:
  if i == max(list):
    list.append(i/2)
    list.remove(i)
    break
sum(list)

N = input()
p = [int(input()) for i in range(N)]
print(sum(p) - max(p) // 2)


N = int(input())
p = [int(input()) for i in range(N)]
print(sum(p) - max(p) // 2)

Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
N = input()
p=[]
max=0
for i in range(N):
    p.append(input())
    if max<=p:
        max=p[i]
sum=0
for i in range(N):
    sum+=p[i]
sum-=max
sum+=max/2
print(sum)


N = input()
p=[]
max=0
for i in range(N):
    p.append(input())
    if max<=p:
        max=p[i]
sum=0
for i in range(N):
    sum+=p[i]
sum-=max
sum+=max/2
print(sum)


N = int(input())
p=[]
max=0
for i in range(N):
    p.append(int(input()))
    if max<=p[i]:
        max=p[i]
sum=0
for i in range(N):
    sum+=p[i]
sum-=max
sum+=max/2
print(int(sum))


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
N = input()
a = [input() for i in range(N)]
b = sorted(a ,reverse = True)
res = sum(b[0]/2,sum(b[1:]))
print(res)

N = int(input())
a = [int(input()) for i in range(N)]
b = sorted(a ,reverse = True)
res = int(b[0]/2 + sum(b[1:]))
print(res)

Verdicts: Runtime Error

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
S=int(input())

p=[int(input()) for i in  range(S)]

p.sort(reverse=True)

money=0

for i in range(S):
    money+=p[i]

print(money-p[0]/2)


S=int(input())

p=[int(input()) for i in  range(S)]

p.sort(reverse=True)

money=0

for i in range(S):
    money+=p[i]

print(int(money-p[0]/2))

Verdicts: Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
# -*- coding: utf-8 -*-
"""
Created on Wed Jan  2 09:53:30 2019

@author: Yamazaki Kenichi
"""

N = int(input())
p = [int(input()) for i in range(N)]

max(p)
ans = sum(p) - max(p)/2
int(ans)

print(ans)


# -*- coding: utf-8 -*-
"""
Created on Wed Jan  2 09:53:30 2019

@author: Yamazaki Kenichi
"""

N = int(input())
p = [int(input()) for i in range(N)]

max(p)
ans = int(sum(p) - max(p)/2)

print(ans)

Verdicts: Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
n = int(input())
p = list(map(int, input().split()))
p.sort(reverse=True)
a = p[1:]
b = p[0] // 2
print(sum(a, b))

N = int(input())
p = [int(input()) for i in range(N)]
p.sort(reverse=True)

p[0] = p[0] // 2
print(sum(p))


Verdicts: Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
n = int(input())
p = [int(i) for i in input().split()]
print(sum(p) - (max(p) // 2))

n = int(input())
p = [int(input()) for i in range(n)]
print(sum(p) - (max(p) // 2))

Verdicts: Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
N = int(input())
p = [int(input()) for i in range(N)]
print(sum() - max(p))

N = int(input())
p = [int(input()) for i in range(N)]
print(sum(p) - max(p)/2)


N = int(input())
p = [int(input()) for i in range(N)]
p.sort()
hangaku = p[N-1]/2
sum = 0
for i in range(N) :
    sum += p[i]
sum -= hangaku
print(sum)


N = int(input())
p = [int(input()) for i in range(N)]
print(sum(p) - max(p) // 2)

Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
# coding: utf-8

num = int(input())
table = []
total = 0
for i in range(num):
    table.append(int(input()))
print(table)
list.sort(table)
total += table[num-1] / 2
for i in range(num-1):
    total += table[i]
print(int(total))

# coding: utf-8

num = int(input())
table = []
total = 0
for i in range(num):
    table.append(int(input()))
list.sort(table)
total += table[num-1] / 2
for i in range(num-1):
    total += table[i]
print(int(total))

Verdicts: Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
n=int(input())
a=[]
for i in range(n)
    p=int(input())
    a.append(p)
a.sort()
a[n-1]=int(a[n-1]/2)
print(sum(a))

n=int(input())
a=[]
for i in range(n):
    p=int(input())
    a.append(p)
a.sort()
a[n-1]=int(a[n-1]/2)
print(sum(a))

Verdicts: Runtime Error

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
N = int(input())
P = list (map(int,input().split()))
a = max(P)
P.remove(a)
s = 0
for i in P:
    s += i
print(s + a//2)


N = int(input())
p = []
for i in range(N):
    p.append(int(input()))
a = max(p)
p.remove(a)
s = 0
for i in p:
    s += i
print(s + a//2)



Verdicts: Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
N=int(input())
p = [int(input) for _ in range(len(N))]

print(sum(p) - int(max(p)/2))


N=int(input())
p = [int(input()) for _ in range(N)]

print(sum(p) - int(max(p)/2))


Verdicts: Runtime Error

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
N, *d = map(int, open(0))
print(sum(d)-max(s)/2)

N, *d = map(int, open(0).read().split())
print(sum(d)-max(s)/2)

N, *d = map(int, open(0).read().split())
print(sum(d)-max(d)/2)

N, *d = map(int, open(0).read().split())
print(int(sum(d)-max(d)/2))

Verdicts: Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
N = int(input())
p = list()
for i in range(N):
    p.append(int(input()))
sum = 0
for i in range(0,N):
    sum += p[i]
print(sum - max(p) + max(p)/2)


N = int(input())
p = list()
for i in range(N):
    p.append(int(input()))
sum = 0
for i in range(0,N):
    sum += p[i]
print(sum - max(p) + max(p)//2)


Verdicts: Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
def resolve():
    P = list(int(input()) for _ in range(int(input())))
    print(sum(P)-max(P)//2)
print(resolve())

def resolve():
    P = list(int(input()) for _ in range(int(input())))
    print(sum(P)-max(P)//2)
resolve()

Verdicts: Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
N=int(input())
cnt=0
ans=0
max=0
while cnt<N:
  cnt+=1
  p=int(input())
  ans += p
  if p>max:
    max=p
ans-=(max/2)
print(ans)

N=int(input())
cnt=0
ans=0
max=0
while cnt<N:
  cnt++
  p=int(input())
  ans += p
  if p>max:
    max=p
ans-=(max/2)
print(ans)

N=int(input())
cnt=0
ans=0
max=0
while cnt<N:
  cnt+=1
  p=int(input())
  ans += p
  if p>max:
    max=p
ans-=int(max/2)
print(ans)

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
Row = int(input())
List = []
for i in range (Row):
  List.append(int(input()))
List.sort()
List[Row-1] = List[Row-1]//2
for i in range (Row):
  res = List[i]
print(res)

Row = int(input())
List = []
res = 0
for i in range (Row):
  List.append(int(input()))
List.sort()
List[Row-1] = List[Row-1]//2
for i in range (Row):
  res += List[i]
print(res)

Verdicts: Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
n=int(input())
a=[]
for i in range(n):
  a.append(i)
a.sort()
print(sum(a)-a[-1]//2)

n=int(input())
a=[]
for i in range(n):
  a.append(int(input()))
a.sort()
print(sum(a)-a[-1]//2)

Verdicts: Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
n = int(input())
p = [int(input()) for i in range(n)]

p.sort()
print(sum(p) - int(a[-1]/2))

n = int(input())
a = [int(input()) for i in range(n)]

a.sort()
print(sum(a) - int(a[-1]/2))

Verdicts: Runtime Error

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
n=int(input())

list=[]

for i in range(n):
  list.append(int(input()))
  
print(sum(list)-max(list)/2)

n=int(input())

list=[]

for i in range(n):
  list.append(int(input()))
  
print(int(sum(list)-max(list)/2))

Verdicts: Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
str = input()

list=[]
for i in range (int(str)):
    teika = int(input())
    list.append(teika)
    waribiki=max(list)
    goukei=sum(list)+waribiki/2-waribiki
print(goukei)


str = input()

list=[]
for i in range (int(str)):
    teika = int(input())
    list.append(teika)
    waribiki=max(list)
    #print(max(list))
    goukei=sum(list)+waribiki/2-waribiki
print(int(goukei))


Verdicts: Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
n = int(input())
    l = [int(input()) for i in range(n)]
    l = sorted(l)
    print(sum(l) - l[-1]//2)

n = int(input())
l = [int(input()) for i in range(n)]
l = sorted(l)
print(sum(l) - l[-1]//2)

Verdicts: Runtime Error

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
n = int(input())
P = [int(input()) for _ in range(n)]

P.sort()
print(int(P[n-1]/2) + sum(P[1:]))


n = int(input())
P = [int(input()) for _ in range(n)]

P.sort()
print(int(P[0]/2) + sum(P[1:]))


v

n = int(input())
P = [int(input()) for _ in range(n)]

P.sort()
print(int(P[n-1]/2) + sum(P[:n-1]))


Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
n = int(input())
p = []
for i in range(n):
    p.append(int(input()))
p.reverse()
ans = 0
for i in range(n):
    if i == 0:
        ans += p[i]/2
    else:
        ans += p[i]
if ans - int(ans) != 0:
    print(ans)
else :
    print(int(ans))

n = int(input())
p = []
for i in range(n):
    p.append(int(input()))
p.sort()
p.reverse()
ans = 0
for i in range(n):
    if i == 0:
        ans = p[i]/2
    else:
        ans += p[i]
if ans - int(ans) != 0:
    print(ans)
else :
    print(int(ans))


Verdicts: Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
n = int(input())
#p =[]
max_p = 0
s =0
for i in range(n):
  pi = int(input())
  max_p = max(pi, max_p)
  s += pi
s = s-max_p + max_p/2
print(s)
  


n = int(input())
#p =[]
max_p = 0
s =0
for i in range(n):
  pi = int(input())
  max_p = max(pi, max_p)
  s += pi
s = s-max_p + max_p//2
print(s)

Verdicts: Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
n = int(input())
p_array = []
price_sum = 0
price_max = 0
for _ in range(n):
  element = int(input())
  price_sum += element
  price_max = max(element, price_sum)

print(price_sum - price_max//2)

N = int(input())
p_array = []
price_sum = 0
price_max = 0
for _ in range(N):
    price = int(input())
    
    price_sum += price
    
    price_max = max(price, price_max)

print(price_sum - price_max//2)

Verdicts: Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
n = int(input())
p = [int(input()).for i in range(n)]
print(sam(p)-p[-1]/2)

n = int(input())
p = [int(input()) for i in range(n)]
print(sum(p)-max(p)/2)

n = int(input())
p = [int(input()) for i in range(n)]
print(int(sum(p)-max(p)/2))

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
N = int(input())
p = [int(input()) for _ in range(N)]
ans = sum(p) + max(p) // 2
print(ans)

N = int(input())
p = [int(input()) for _ in range(N)]
ans = sum(p) - max(p) // 2
print(ans)

Verdicts: Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
N = int(input())
arr = [int(input() for i in range(N))]
print(sum(arr) - max(arr)//2)

N = int(input())
arr = [int(input()) for i in range(N)]
print(sum(arr) - max(arr)//2)

Verdicts: Runtime Error

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
n=int(input())
p = list(map(int, input().split()))
sort(p)
sum=0
for i in range(n):
  if i==n-1:
    sum+=p[i]/2
  else:
    sum+=p[i]
print(sum)


n=int(input())
p = []
for _ in range(n):
    p.append(int(input()))
p.sort()
sum=0
for i in range(n):
  if i==n-1:
    sum=p[i]//2+sum
  else:
    sum=p[i]+sum
print(sum)


Verdicts: Runtime Error

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
n=int(input())
m=0
s=0
for i in range(n):
    p=int(input())
    s+=p
    m=max(m,p)
print(s-(m/2))

n=int(input())
m=0
s=0
for i in range(n):
    p=int(input())
    s+=p
    m=max(m,p)
print(int(s-(m/2)))

Verdicts: Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
n = int(input())
pL = [input() for i in range(n)]
print(int(sum(pL)-(max(pL)/2)))

n = int(input())
pL = [input() for i in range(n)]
print(int(sum(pL)-(max(pL)/2))

n = int(input())
pL = [input() for i in range(n)]
print(sum(pL)-max(pL)/2)

n = int(input())
pL = [int(input()) for i in range(n)]
print(int(sum(pL)-(max(pL)/2)))


Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
N=int(input())
ListP=[]
S=0
for i in range(1,N+1,1):
  pi=int(input())
  S+=pi
  ListP.append(pi)
  
PM=(max(ListP))/2
S-=PM
print(S)

N=int(input())
ListP=[]
S=0
for i in range(1,N+1,1):
  pi=int(input())
  S+=pi
  ListP.append(pi)
  
PM=int((max(ListP))/2)
S-=PM
print(S)


Verdicts: Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
s = int(input())
m = [int(input()) for i in range(s)]
l = sorted(m)
print(l[-1]/2 + sum(l) - l[-1])


s = int(input())
m = [int(input()) for i in range(s)]
l = sorted(m)
print(l[-1]//2 + sum(l) - l[-1])


Verdicts: Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
n = int(input())
P = sorted(int(input()) for _ in range(n))
P[-1] /= 2
print(sum(P))


n = int(input())
P = sorted(int(input()) for _ in range(n))
P[-1] //= 2
print(sum(P))


Verdicts: Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
n = int(input())
p =[map(int,input().split())for i in range(n)]

m = max(p)/2
print(m+sum(p)-max(p))

n = int(input())
p =[int(input())for i in range(n)]

m = max(p)/2
print(m+sum(p)-max(p))

n = int(input())
p =[list(map(int,input().split()))for i in range(n)]

m = max(p)/2
print(m+sum(p)-max(p))

n = int(input())
p =[int,input().split()for i in range(n)]

m = max(p)/2
print(m+sum(p)-max(p))

n = int(input())
p =[int(input())for i in range(n)]

m = max(p)//2
print(m+sum(p)-max(p))

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
N= int(input())

price = [int(input()) for i in range(N)]
price.sort()

total = sum(price)-price(-1)/2
print(int(total))

N= int(input())

price = [int(input()) for i in range(N)]

total = sum(price)-max(price)/2
print(int(total))


Verdicts: Runtime Error

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
n=int(input())
p=[int(input()) for i in range(n)]
print(sum(p)-(max(p)/2))


n=int(input())
p=[int(input()) for i in range(n)]
print(int(sum(p)-(max(p)/2))


n=int(input())
p=[int(input()) for i in range(n)]
print(int(sum(p)-(max(p)/2)))


Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
N=int(input())
p=[input() for i in range(n)]

print(sum(p)-max(p)/2)

# https://qiita.com/_-_-_-_-_/items/34f933adc7be875e61d0
# abcde	s=input()	s='abcde'
# abcde	s=list(input())	s=['a', 'b', 'c', 'd', 'e']

# 1 2	x,y = map(int,input().split())	x=1,y=2




# 3
# hoge
# foo
# bar
# n=int(input())

n=int(input())
p=[int(input()) for _ in range(n)]

print(sum(p)-int(max(p)/2))

Verdicts: Runtime Error

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
N = int(input())
P = [int(input()) for i in range(N)]

M = max(P)

print(sum(P) - M + M/2)

N = int(input())
P = [int(input()) for i in range(N)]

M = int(max(P))

print(int(sum(P) - M + M/2))


Verdicts: Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
A,B = map(int,input().split())
C = [int(input()) for _ in range(A)]
c = []
p = 0
C = sorted(C)
for i in range(B-1,A):
  c.append(max(C[i-(B-1):i]) - min(C[i-(B-1):i]))
print(min(c))

A,B = map(int,input().split())
C = [int(input()) for _ in range(A)]
c = []
p = 0
C = sorted(C)
for i in range(B,A+1):
  c.append(max(C[i-(B):i]) - min(C[i-(B):i]))
  print(C[i-(B):i])
print(min(c))

A = int(input())
B = [int(input()) for _ in range(A)]
p = 0
B = sorted(B)
b = B.pop(-1)
for i in B:
  p += i
print(b//2 + p)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
D = int(input())
print("Christmas",end = "")
while (D != 25):
    print(" Eve",end = "")
    D += 1
print()

N = int(input())
p = list(int(input()) for i in range(N))
p.sort()
ans = sum(p[:-1])+p[-1]//2
print(ans)

Verdicts: Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
N = int(input())
listP = [int(input()) for i in range(N)]
print(sum(listP)-min(listP)//2)

N = int(input())
listP = [int(input()) for i in range(N)]
print(sum(listP)-max(listP)//2)

Verdicts: Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
N = int(input())
prices = [int(input()) for i in  range(N)]
print(sum(prices)-max(prices))


N = int(input())
prices = [int(input()) for i in  range(N)]
print(sum(prices)-max(prices)/2)

N = int(input())
prices = [int(input()) for i in  range(N)]
print(int(sum(prices)-max(prices)/2))


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
N = int(input())
P = [None] * N
for i in range(N):
  P[i] = int(input())
ans = sum(P) - max(P)/2
print(ans)

N = int(input())
P = [None] * N
for i in range(N):
  P[i] = int(input())
ans = sum(P) - max(P)/2
print(int(ans))

Verdicts: Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
N = int(input())
ans = 0
p_max = 0
for i in range(N):
    p = int(input())
    if p > p_min:
        print
        p_min = p
    ans+=p
print(ans-p_min//2)

N = int(input())
ans = 0
p_max = 0
for i in range(N):
    p = int(input())
    if p > p_max:
        print
        p_max = p
    ans+=p
print(ans-p_max//2)

Verdicts: Runtime Error

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
N = int(input())
A=[]
for i in range(N):
    A += [int(input())]

sort(A)
print(sum(A) - A[N-1]//2)

N = int(input())
A = [int(i) for i in input().split()]
sort(A)
print(sum(A) - A[-1]/2)

N = int(input())
A=[]
for i in range(N):
    A += [int(input())]

sort(A)
print(sum(A) - A[-1]/2)

N = int(input())
A=[]
for i in range(N):
    A += [int(input())]

A.sort()
print(sum(A) - A[-1]/2)

N = int(input())
A=[]
for i in range(N):
    A += [int(input())]

A.sort()
print(sum(A) - A[N-1]//2)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
n=int(input())
p=list(map(int,input().split()))
print(sum(p)-max(p)//2)

n=int(input())
p=[int(input())for _ in range(n)]
print(sum(p)-max(p)//2)


Verdicts: Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
N = int(input())
p = [int(input()) for i in range(N)]
p = sorted(p)
print(int(p[0]/2+sum(p)-p[0]))


N = int(input())
p = [int(input()) for i in range(N)]
nebiki = int(max(p)/2)
print(sum(p)-nebiki)


Verdicts: Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
m = int(input())
ls = []
for i in range(m):
    ls.append(int(input()))
ls = sorted(ls,reverse=True)
ls[0] = ls[0]/2
n=0
for i in range(m):
    n=n+ls[i]
print(n)

m = int(input())
ls = []
for i in range(m):
    ls.append(int(input()))
ls = sorted(ls,reverse=True)
ls[0] = ls[0]/2
n=0
for i in range(m):
    n = n + ls[i]
print(int(n))



Verdicts: Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
N = int(input("個数を入力してください:"))
p = [int(input("金額を入力してください:")) for i in range(N)]
print(sum(p)-max(p)//2)

N = int(input())
p = [int(input()) for i in range(N)]
print(sum(p)-max(p)//2)


Verdicts: Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
k=0
max=0
N=int(input())
for i in range(1,N+1):
    p=int(input())
    if p>max:max=p
    k=k+p
    print((k-max)+(max//2))

max=0
k=0
N=int(input())
for i in range(1,N+1):
    p=int(input())
    if p>max:max=p
    k=k+p
    print((k-max)+(max//2))

max=0
for i in range(1,n+1):
    p=int(input())
    if p>max:
        max=p//2
        print(max)

max=0
k=0
N=int(input())
for i in range(1,N+1):
    p=int(input())
    if p>max:max=p
    k=k+p
print((k-max)+(max//2))

Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
n = int(input())
list = []
for i in range(n):
  list.append(int(input()))

p_max = max(list)

ans = sum(list) - p_max/2

print(ans)

n = int(input())
list = []
for i in range(n):
  list.append(int(input()))
p_max = max(list)
ans = sum(list) - p_max/2
print(int(ans))

Verdicts: Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
#!/usr/bin/env python3

a = int(input())
p = [int(input()) for _ in range(p)]

print(sum(p)-max(p)+max(p)//2)


#!/usr/bin/env python3

a = int(input())
p = [int(input()) for _ in range(a)]

print(sum(p)-max(p)+max(p)//2)


Verdicts: Runtime Error

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
N,*P=map(int,open(0);print(sum(P)-max(P)//2)

N,*P=map(int,open(0).read().split());print(sum(P)-max(P)/2)

N,*P=map(int,open(0));print(sum(P)-max(P)//2)

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
lst = [int(input()) for _ in range(int(input()))]
print(sum(lst) - max(lst) / 2)

l = [int(input()) for i in range(int(input()))]
print(sum(l) + max(l) // 2)

l = [int(input()) for i in range(int(input()))]
print(sum(l) - max(l) // 2)


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
n = int(input())
p_list=[]
for i in range(n):
    p_list.append(int(i))
print(sum(p_list) - max(p_list)//2)

n = int(input())
p_list=[]
for i in range(n):
    p_list.append(int(input()))
print(sum(p_list) - max(p_list)//2)

Verdicts: Wrong Answer

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
a=int(input())
b=[input().split() for i in range(a)]
b=int(b)
b.sort()
c=sum(b)
print(int(c-b[a]/2))

a=int(input())
b=[int(input()) for i in range(a)]
b.sort()
c=sum(b)
print(int(c-b[a-1]/2))

Verdicts: Runtime Error

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
N = int(input())

p = [0] * N
for i in range(N):
    p[i].append(int(input()))

m = 0
for i in range(N):
    if p[i] > m:
        m = p[i]

print(sum(p) - m // 2)

N = int(input())

p = [0] * N
for i in range(N):
    p[i] = int(input())

m = 0
for i in range(N):
    if p[i] > m:
        m = p[i]

print(sum(p) - m // 2)


Verdicts: Runtime Error

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
N = int(input())
table = set()
for i in range(N):
    table.add(int(input()))
print(sum(table[:]) - max(table) * // 2)

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

N = int(input())
table = []
for i in range(N):
    table.append(int(input()))
print(sum(table[:]) - max(table) * // 2)

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

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
n = int(stdin.readline().rstrip())
data = [int(stdin.readline().rstrip()) for _ in range(n)]
data = sorted(data, reverse=True)
data[0] *= 0.9
data[0] = int(data[0])

print(sum(data))

n = int(stdin.readline().rstrip())
data = [int(stdin.readline().rstrip()) for _ in range(n)]
data = sorted(data, reverse=True)
data[0] *= 0.5
data[0] = int(data[0])

print(sum(data))

from sys import stdin

n = int(stdin.readline().rstrip())
data = [int(stdin.readline().rstrip()) for _ in range(n)]
data = sorted(data, reverse=True)
data[0] *= 0.5
data[0] = int(data[0])

print(sum(data))

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: In some other world, today is the day before Christmas Eve.  Mr. Takaha is buying N items at a department store. The regular price of the i-th item (1 \leq i \leq N) is p_i yen (the currency of Japan).  He has a discount coupon, and can buy one item with the highest price for half the regular price. The remaining N-1 items cost their regular prices. What is the total amount he will pay?

Submission attempts (in order):
N = int(input())
D = []
for i in range(1, N + 1):
    pi = int(input())
    D.append(pi)
a = max(D)
b = sum(D)
ans = a / 2 + b - a
print(ans)

N = int(input())
D = []
for i in range(1, N + 1):
    pi = int(input())
    D.append(pi)
a = max(D)
b = sum(D)
ans = int(a / 2 + b - a)
print(ans)

Verdicts: Wrong Answer

Accepted