problem_id
stringlengths
6
6
user_id
stringlengths
10
10
time_limit
float64
1k
8k
memory_limit
float64
262k
1.05M
problem_description
stringlengths
48
1.55k
codes
stringlengths
35
98.9k
status
stringlengths
28
1.7k
submission_ids
stringlengths
28
1.41k
memories
stringlengths
13
808
cpu_times
stringlengths
11
610
code_sizes
stringlengths
7
505
p03207
u146346223
2,000
1,048,576
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?
['N = int(input())\narr = [int(input() for i in range(N))]\nprint(sum(arr) - max(arr)//2)', 'N = int(input())\narr = [int(input()) for i in range(N)]\nprint(sum(arr) - max(arr)//2)']
['Runtime Error', 'Accepted']
['s707651818', 's040614575']
[2940.0, 3060.0]
[17.0, 20.0]
[85, 85]
p03207
u155416173
2,000
1,048,576
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?
['n=int(input())\np = list(map(int, input().split()))\nsort(p)\nsum=0\nfor i in range(n):\n if i==n-1:\n sum+=p[i]/2\n else:\n sum+=p[i]\nprint(sum)\n', 'n=int(input())\np = []\nfor _ in range(n):\n p.append(int(input()))\np.sort()\nsum=0\nfor i in range(n):\n if i==n-1:\n sum=p[i]//2+sum\n else:\n sum=p[i]+sum\nprint(sum)\n']
['Runtime Error', 'Accepted']
['s495733485', 's342828392']
[2940.0, 3060.0]
[17.0, 17.0]
[146, 171]
p03207
u158628538
2,000
1,048,576
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?
['n=int(input())\nm=0\ns=0\nfor i in range(n):\n p=int(input())\n s+=p\n m=max(m,p)\nprint(s-(m/2))', 'n=int(input())\nm=0\ns=0\nfor i in range(n):\n p=int(input())\n s+=p\n m=max(m,p)\nprint(int(s-(m/2)))']
['Wrong Answer', 'Accepted']
['s218362490', 's007176161']
[2940.0, 2940.0]
[17.0, 17.0]
[99, 104]
p03207
u158778550
2,000
1,048,576
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?
['n = int(input())\npL = [input() for i in range(n)]\nprint(int(sum(pL)-(max(pL)/2)))', 'n = int(input())\npL = [input() for i in range(n)]\nprint(int(sum(pL)-(max(pL)/2))', 'n = int(input())\npL = [input() for i in range(n)]\nprint(sum(pL)-max(pL)/2)', 'n = int(input())\npL = [int(input()) for i in range(n)]\nprint(int(sum(pL)-(max(pL)/2)))\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s496432843', 's679022676', 's927994746', 's602229678']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[81, 80, 74, 87]
p03207
u161442663
2,000
1,048,576
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?
['N=int(input())\nListP=[]\nS=0\nfor i in range(1,N+1,1):\n pi=int(input())\n S+=pi\n ListP.append(pi)\n \nPM=(max(ListP))/2\nS-=PM\nprint(S)', 'N=int(input())\nListP=[]\nS=0\nfor i in range(1,N+1,1):\n pi=int(input())\n S+=pi\n ListP.append(pi)\n \nPM=int((max(ListP))/2)\nS-=PM\nprint(S)\n']
['Wrong Answer', 'Accepted']
['s740802440', 's211166709']
[3060.0, 2940.0]
[17.0, 18.0]
[133, 139]
p03207
u164261323
2,000
1,048,576
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?
['s = int(input())\nm = [int(input()) for i in range(s)]\nl = sorted(m)\nprint(l[-1]/2 + sum(l) - l[-1])\n', 's = int(input())\nm = [int(input()) for i in range(s)]\nl = sorted(m)\nprint(l[-1]//2 + sum(l) - l[-1])\n']
['Wrong Answer', 'Accepted']
['s993641061', 's909791351']
[2940.0, 2940.0]
[17.0, 17.0]
[100, 101]
p03207
u170183831
2,000
1,048,576
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?
['n = int(input())\nP = sorted(int(input()) for _ in range(n))\nP[-1] /= 2\nprint(sum(P))\n', 'n = int(input())\nP = sorted(int(input()) for _ in range(n))\nP[-1] //= 2\nprint(sum(P))\n']
['Wrong Answer', 'Accepted']
['s556850442', 's320872647']
[2940.0, 2940.0]
[17.0, 17.0]
[85, 86]
p03207
u175590965
2,000
1,048,576
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?
['n = int(input())\np =[map(int,input().split())for i in range(n)]\n\nm = max(p)/2\nprint(m+sum(p)-max(p))', 'n = int(input())\np =[int(input())for i in range(n)]\n\nm = max(p)/2\nprint(m+sum(p)-max(p))', 'n = int(input())\np =[list(map(int,input().split()))for i in range(n)]\n\nm = max(p)/2\nprint(m+sum(p)-max(p))', 'n = int(input())\np =[int,input().split()for i in range(n)]\n\nm = max(p)/2\nprint(m+sum(p)-max(p))', 'n = int(input())\np =[int(input())for i in range(n)]\n\nm = max(p)//2\nprint(m+sum(p)-max(p))']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s397933470', 's549987777', 's626015734', 's776039338', 's329537600']
[3060.0, 2940.0, 2940.0, 2940.0, 2940.0]
[19.0, 17.0, 17.0, 17.0, 17.0]
[100, 88, 106, 95, 89]
p03207
u181195295
2,000
1,048,576
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?
['N= int(input())\n\nprice = [int(input()) for i in range(N)]\nprice.sort()\n\ntotal = sum(price)-price(-1)/2\nprint(int(total))', 'N= int(input())\n\nprice = [int(input()) for i in range(N)]\n\ntotal = sum(price)-max(price)/2\nprint(int(total))\n']
['Runtime Error', 'Accepted']
['s271788432', 's796968136']
[2940.0, 2940.0]
[17.0, 17.0]
[120, 109]
p03207
u187883751
2,000
1,048,576
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?
['n=int(input())\np=[int(input()) for i in range(n)]\nprint(sum(p)-(max(p)/2))\n', 'n=int(input())\np=[int(input()) for i in range(n)]\nprint(int(sum(p)-(max(p)/2))\n', 'n=int(input())\np=[int(input()) for i in range(n)]\nprint(int(sum(p)-(max(p)/2)))\n']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s683061998', 's945400738', 's205785573']
[9088.0, 8856.0, 9084.0]
[25.0, 20.0, 29.0]
[75, 79, 80]
p03207
u191829404
2,000
1,048,576
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?
['N=int(input())\np=[input() for i in range(n)]\n\nprint(sum(p)-max(p)/2)', "# https://qiita.com/_-_-_-_-_/items/34f933adc7be875e61d0\n# abcde\ts=input()\ts='abcde'\n# abcde\ts=list(input())\ts=['a', 'b', 'c', 'd', 'e']\n\n# 1 2\tx,y = map(int,input().split())\tx=1,y=2\n\n\n\n\n# 3\n# hoge\n# foo\n# bar\n# n=int(input())\n\nn=int(input())\np=[int(input()) for _ in range(n)]\n\nprint(sum(p)-int(max(p)/2))"]
['Runtime Error', 'Accepted']
['s636025199', 's799343797']
[2940.0, 2940.0]
[17.0, 18.0]
[68, 591]
p03207
u207822067
2,000
1,048,576
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?
['N = int(input())\nP = [int(input()) for i in range(N)]\n\nM = max(P)\n\nprint(sum(P) - M + M/2)', 'N = int(input())\nP = [int(input()) for i in range(N)]\n\nM = int(max(P))\n\nprint(int(sum(P) - M + M/2))\n']
['Wrong Answer', 'Accepted']
['s433153855', 's521986856']
[2940.0, 2940.0]
[17.0, 17.0]
[90, 101]
p03207
u209619667
2,000
1,048,576
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?
['A,B = map(int,input().split())\nC = [int(input()) for _ in range(A)]\nc = []\np = 0\nC = sorted(C)\nfor i in range(B-1,A):\n c.append(max(C[i-(B-1):i]) - min(C[i-(B-1):i]))\nprint(min(c))', 'A,B = map(int,input().split())\nC = [int(input()) for _ in range(A)]\nc = []\np = 0\nC = sorted(C)\nfor i in range(B,A+1):\n c.append(max(C[i-(B):i]) - min(C[i-(B):i]))\n print(C[i-(B):i])\nprint(min(c))', 'A = int(input())\nB = [int(input()) for _ in range(A)]\np = 0\nB = sorted(B)\nb = B.pop(-1)\nfor i in B:\n p += i\nprint(b//2 + p)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s413818511', 's878731549', 's665386457']
[3060.0, 3064.0, 2940.0]
[17.0, 17.0, 20.0]
[181, 197, 124]
p03207
u211160392
2,000
1,048,576
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?
['D = int(input())\nprint("Christmas",end = "")\nwhile (D != 25):\n print(" Eve",end = "")\n D += 1\nprint()', 'N = int(input())\np = list(int(input()) for i in range(N))\np.sort()\nans = sum(p[:-1])+p[-1]//2\nprint(ans)']
['Wrong Answer', 'Accepted']
['s998225859', 's354158501']
[2940.0, 2940.0]
[17.0, 17.0]
[107, 104]
p03207
u215315599
2,000
1,048,576
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?
['N = int(input())\nlistP = [int(input()) for i in range(N)]\nprint(sum(listP)-min(listP)//2)', 'N = int(input())\nlistP = [int(input()) for i in range(N)]\nprint(sum(listP)-max(listP)//2)']
['Wrong Answer', 'Accepted']
['s114396635', 's540321689']
[2940.0, 2940.0]
[19.0, 17.0]
[89, 89]
p03207
u217123285
2,000
1,048,576
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?
['N = int(input())\nprices = [int(input()) for i in range(N)]\nprint(sum(prices)-max(prices))\n', 'N = int(input())\nprices = [int(input()) for i in range(N)]\nprint(sum(prices)-max(prices)/2)', 'N = int(input())\nprices = [int(input()) for i in range(N)]\nprint(int(sum(prices)-max(prices)/2))\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s473942506', 's863737349', 's738039032']
[2940.0, 2940.0, 3060.0]
[17.0, 18.0, 69.0]
[91, 92, 98]
p03207
u217940964
2,000
1,048,576
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?
['N = int(input())\nP = [None] * N\nfor i in range(N):\n P[i] = int(input())\nans = sum(P) - max(P)/2\nprint(ans)', 'N = int(input())\nP = [None] * N\nfor i in range(N):\n P[i] = int(input())\nans = sum(P) - max(P)/2\nprint(int(ans))']
['Wrong Answer', 'Accepted']
['s670509062', 's624845159']
[2940.0, 2940.0]
[17.0, 17.0]
[107, 112]
p03207
u221345507
2,000
1,048,576
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?
['N = int(input())\nans = 0\np_max = 0\nfor i in range(N):\n p = int(input())\n if p > p_min:\n print\n p_min = p\n ans+=p\nprint(ans-p_min//2)', 'N = int(input())\nans = 0\np_max = 0\nfor i in range(N):\n p = int(input())\n if p > p_max:\n print\n p_max = p\n ans+=p\nprint(ans-p_max//2)']
['Runtime Error', 'Accepted']
['s327624098', 's960746382']
[2940.0, 2940.0]
[17.0, 17.0]
[155, 155]
p03207
u225053756
2,000
1,048,576
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?
['N = int(input())\nA=[]\nfor i in range(N):\n A += [int(input())]\n\nsort(A)\nprint(sum(A) - A[N-1]//2)', 'N = int(input())\nA = [int(i) for i in input().split()]\nsort(A)\nprint(sum(A) - A[-1]/2)', 'N = int(input())\nA=[]\nfor i in range(N):\n A += [int(input())]\n\nsort(A)\nprint(sum(A) - A[-1]/2)', 'N = int(input())\nA=[]\nfor i in range(N):\n A += [int(input())]\n\nA.sort()\nprint(sum(A) - A[-1]/2)', 'N = int(input())\nA=[]\nfor i in range(N):\n A += [int(input())]\n\nA.sort()\nprint(sum(A) - A[N-1]//2)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s005999435', 's386919394', 's515198987', 's758935394', 's664990819']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 17.0, 17.0]
[99, 86, 97, 98, 100]
p03207
u227082700
2,000
1,048,576
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?
['n=int(input())\np=list(map(int,input().split()))\nprint(sum(p)-max(p)//2)', 'n=int(input())\np=[int(input())for _ in range(n)]\nprint(sum(p)-max(p)//2)\n']
['Wrong Answer', 'Accepted']
['s032509123', 's444064086']
[2940.0, 2940.0]
[17.0, 18.0]
[71, 73]
p03207
u232374873
2,000
1,048,576
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?
['N = int(input())\np = [int(input()) for i in range(N)]\np = sorted(p)\nprint(int(p[0]/2+sum(p)-p[0]))\n', 'N = int(input())\np = [int(input()) for i in range(N)]\nnebiki = int(max(p)/2)\nprint(sum(p)-nebiki)\n']
['Wrong Answer', 'Accepted']
['s210862222', 's549809837']
[2940.0, 2940.0]
[19.0, 18.0]
[99, 98]
p03207
u233288243
2,000
1,048,576
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?
['m = int(input())\nls = []\nfor i in range(m):\n ls.append(int(input()))\nls = sorted(ls,reverse=True)\nls[0] = ls[0]/2\nn=0\nfor i in range(m):\n n=n+ls[i]\nprint(n)', 'm = int(input())\nls = []\nfor i in range(m):\n ls.append(int(input()))\nls = sorted(ls,reverse=True)\nls[0] = ls[0]/2\nn=0\nfor i in range(m):\n n = n + ls[i]\nprint(int(n))\n\n']
['Wrong Answer', 'Accepted']
['s848534618', 's015770314']
[3060.0, 3060.0]
[17.0, 17.0]
[162, 173]
p03207
u234761782
2,000
1,048,576
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?
['N = int(input("個数をε…₯εŠ›γ—γ¦γγ γ•γ„:"))\np = [int(input("金鑍をε…₯εŠ›γ—γ¦γγ γ•γ„:")) for i in range(N)]\nprint(sum(p)-max(p)//2)', 'N = int(input())\np = [int(input()) for i in range(N)]\nprint(sum(p)-max(p)//2)\n']
['Wrong Answer', 'Accepted']
['s555495929', 's048002464']
[2940.0, 2940.0]
[17.0, 18.0]
[149, 78]
p03207
u236250113
2,000
1,048,576
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?
['k=0\nmax=0\nN=int(input())\nfor i in range(1,N+1):\n p=int(input())\n if p>max:max=p\n k=k+p\n print((k-max)+(max//2))', 'max=0\nk=0\nN=int(input())\nfor i in range(1,N+1):\n p=int(input())\n if p>max:max=p\n k=k+p\n print((k-max)+(max//2))', 'max=0\nfor i in range(1,n+1):\n p=int(input())\n if p>max:\n max=p//2\n print(max)', 'max=0\nk=0\nN=int(input())\nfor i in range(1,N+1):\n p=int(input())\n if p>max:max=p\n k=k+p\nprint((k-max)+(max//2))']
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s231827722', 's523898872', 's886988079', 's945642363']
[9172.0, 9128.0, 9024.0, 9076.0]
[27.0, 31.0, 27.0, 25.0]
[123, 123, 97, 119]
p03207
u238704641
2,000
1,048,576
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?
['n = int(input())\nlist = []\nfor i in range(n):\n list.append(int(input()))\n\np_max = max(list)\n\nans = sum(list) - p_max/2\n\nprint(ans)', 'n = int(input())\nlist = []\nfor i in range(n):\n list.append(int(input()))\np_max = max(list)\nans = sum(list) - p_max/2\nprint(int(ans))']
['Wrong Answer', 'Accepted']
['s034792562', 's448457391']
[2940.0, 2940.0]
[17.0, 17.0]
[131, 133]
p03207
u239528020
2,000
1,048,576
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?
['#!/usr/bin/env python3\n\na = int(input())\np = [int(input()) for _ in range(p)]\n\nprint(sum(p)-max(p)+max(p)//2)\n', '#!/usr/bin/env python3\n\na = int(input())\np = [int(input()) for _ in range(a)]\n\nprint(sum(p)-max(p)+max(p)//2)\n']
['Runtime Error', 'Accepted']
['s679671845', 's434764636']
[2940.0, 2940.0]
[18.0, 17.0]
[110, 110]
p03207
u240630407
2,000
1,048,576
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?
['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)']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s448618490', 's863598702', 's168627008']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[44, 59, 45]
p03207
u243572357
2,000
1,048,576
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?
['lst = [int(input()) for _ in range(int(input()))]\nprint(sum(lst) - max(lst) / 2)', 'l = [int(input()) for i in range(int(input()))]\nprint(sum(l) + max(l) // 2)', 'l = [int(input()) for i in range(int(input()))]\nprint(sum(l) - max(l) // 2)\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s011912641', 's626271147', 's909578231']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[80, 75, 76]
p03207
u243699903
2,000
1,048,576
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?
['n = int(input())\np_list=[]\nfor i in range(n):\n p_list.append(int(i))\nprint(sum(p_list) - max(p_list)//2)', 'n = int(input())\np_list=[]\nfor i in range(n):\n p_list.append(int(input()))\nprint(sum(p_list) - max(p_list)//2)']
['Wrong Answer', 'Accepted']
['s053761607', 's702367227']
[2940.0, 2940.0]
[17.0, 18.0]
[107, 113]
p03207
u244836567
2,000
1,048,576
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?
['a=int(input())\nb=[input().split() for i in range(a)]\nb=int(b)\nb.sort()\nc=sum(b)\nprint(int(c-b[a]/2))', 'a=int(input())\nb=[int(input()) for i in range(a)]\nb.sort()\nc=sum(b)\nprint(int(c-b[a-1]/2))']
['Runtime Error', 'Accepted']
['s711927564', 's924329705']
[9044.0, 9056.0]
[23.0, 28.0]
[100, 90]
p03207
u248670554
2,000
1,048,576
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?
['N = int(input())\n\np = [0] * N\nfor i in range(N):\n p[i].append(int(input()))\n\nm = 0\nfor i in range(N):\n if p[i] > m:\n m = p[i]\n\nprint(sum(p) - m // 2)', 'N = int(input())\n\np = [0] * N\nfor i in range(N):\n p[i] = int(input())\n\nm = 0\nfor i in range(N):\n if p[i] > m:\n m = p[i]\n\nprint(sum(p) - m // 2)\n']
['Runtime Error', 'Accepted']
['s944290714', 's828390441']
[2940.0, 2940.0]
[18.0, 17.0]
[162, 157]
p03207
u249727132
2,000
1,048,576
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?
['N = int(input())\ntable = set()\nfor i in range(N):\n table.add(int(input()))\nprint(sum(table[:]) - max(table) * // 2)', 'N = int(input())\np = [int(input()) for _ in range(N)]\np = sorted(p)\nprint(sum(p[:]) + p[-1]//2)', 'N = int(input())\ntable = []\nfor i in range(N):\n table.append(int(input()))\nprint(sum(table[:]) - max(table) * // 2)', 'N = int(input())\np = [int(input()) for _ in range(N)]\np = sorted(p)\nprint(sum(p[:]) - p[-1]//2)']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s214555830', 's276138490', 's289746732', 's213773836']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 18.0, 18.0]
[118, 95, 118, 95]
p03207
u250102437
2,000
1,048,576
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?
['n = int(stdin.readline().rstrip())\ndata = [int(stdin.readline().rstrip()) for _ in range(n)]\ndata = sorted(data, reverse=True)\ndata[0] *= 0.9\ndata[0] = int(data[0])\n\nprint(sum(data))', 'n = int(stdin.readline().rstrip())\ndata = [int(stdin.readline().rstrip()) for _ in range(n)]\ndata = sorted(data, reverse=True)\ndata[0] *= 0.5\ndata[0] = int(data[0])\n\nprint(sum(data))', 'from sys import stdin\n\nn = int(stdin.readline().rstrip())\ndata = [int(stdin.readline().rstrip()) for _ in range(n)]\ndata = sorted(data, reverse=True)\ndata[0] *= 0.5\ndata[0] = int(data[0])\n\nprint(sum(data))']
['Runtime Error', 'Runtime Error', 'Accepted']
['s077274733', 's434637011', 's657040103']
[2940.0, 2940.0, 3060.0]
[17.0, 18.0, 18.0]
[182, 182, 205]
p03207
u258436671
2,000
1,048,576
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?
['N = int(input())\nD = []\nfor i in range(1, N + 1):\n pi = int(input())\n D.append(pi)\na = max(D)\nb = sum(D)\nans = a / 2 + b - a\nprint(ans)', 'N = int(input())\nD = []\nfor i in range(1, N + 1):\n pi = int(input())\n D.append(pi)\na = max(D)\nb = sum(D)\nans = int(a / 2 + b - a)\nprint(ans)']
['Wrong Answer', 'Accepted']
['s403684860', 's806291311']
[3060.0, 3060.0]
[19.0, 18.0]
[141, 146]
p03207
u259738923
2,000
1,048,576
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?
['N = int(input())\nmax_item = 0\nsum_item = 0\nfor _ in range(N):\n c = int(input())\n sum_item += c\n max_item = max(c, max_item)\n\nsum_item -= max_item / 2\n\nprint(sum_item)', 'N = int(input())\nnum = N+1price = []\nfor i in range (1,num):\n price.append(int(input()))\nelse:\n exp = max(price)//2\n total = sum(price) - exp\n print(total)', 'n = int(input())\np = list(range(n))\n\nfor i in range(n):\n\tp[i] = int(input())\n\tp[p.index(max(p))] //= 2\n\tans = sum(p)\nprint(ans)', 'N = int(input())\nnum = N+1\npre = 1\nfor i in range(1,num):\n total = i * pre\n pre = total % (10 ** 9 + 7)\nelse:\n print(pre)', 'N = int(input())\nnum = N+1\nprice = []\nfor i in range (1,num):\n price.append(int(input()))\nelse:\n exp = max(price)//2\n total = sum(price) - exp\n print(total)']
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s122268620', 's394360402', 's547397547', 's843108733', 's712115337']
[2940.0, 2940.0, 2940.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0, 17.0, 18.0]
[169, 159, 127, 124, 160]
p03207
u260216890
2,000
1,048,576
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?
['N=int(input())\np=[]\nfor _ in range(N):\n p.append(int(input()))\n\np.sort()\nans=0\nfor i in range(N):\n if i==0:\n ans+=p[i]//2\n else:\n ans+=p[i]\nprint(ans)', 'N=int(input())\np=[]\nfor _ in range(N):\n p.append(int(input()))\n\np.sort(reverse=True)\nans=0\nfor i in range(N):\n if i==0:\n ans+=p[i]//2\n else:\n ans+=p[i]\nprint(ans)\n']
['Wrong Answer', 'Accepted']
['s641515443', 's137851886']
[3060.0, 3060.0]
[17.0, 19.0]
[159, 172]
p03207
u262084284
2,000
1,048,576
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?
['# coding: utf-8\n\nn = int(input())\n\np = [int(input()) for _ in range(n)]\nx = sum(p) - max(p)\n\nprint(x)', '# coding: utf-8\n\nn = int(input())\n\np = sorted([int(input()) for _ in range(n)])\nx = sum(p) - p[n-1]\n\nprint(x)', '# coding: utf-8\n\nn = int(input())\n\np = [int(input(i)) for i in range(n)]\nx = sum(p) - max(p)\n\nprint(x)', '# coding: utf-8\n\nn = int(input())\n\np = [int(input()) for i in range(n)]\nx = sum(p) - max(p)\n\nprint(x)', '# coding: utf-8\n\nn = int(input())\n\np = [int(input()) for i in range(n)]\nx = sum(p) - max(p)//2\n\nprint(x)\n']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s722782060', 's781472695', 's858671235', 's997055945', 's178810871']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 17.0, 17.0]
[101, 109, 102, 101, 105]
p03207
u267300160
2,000
1,048,576
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?
['times = int(input())\nprices = []\n\nfor i in range(times):\n prices.append(int(input())\n\nmax_price = max(prices)\nprices.delete(max_prices)\nprices.append(max_price/2)\n\nprint(sum(prices))\n ', 'N = int(input())\nprices = []\nfor i in range(N):\n prices.append(int(input()))\nmax_price = max(prices)\nprices.remove(max_price)\nprint(int(sum(prices)+(max_price/2)))']
['Runtime Error', 'Accepted']
['s292156420', 's250786694']
[2940.0, 2940.0]
[17.0, 17.0]
[186, 166]
p03207
u269969976
2,000
1,048,576
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?
['\n\nfun main(args:Array<String>) {\n val itemCount = readLine()!!.toInt()\n val items = (1..itemCount).map { readLine()!!.toInt() }.sortedDescending()\n val ans = items[0] / 2 + items.drop(1).sum()\n println(ans)\n}', '# coding: utf-8\n\nitemCount = int(input())\n\nitemList = sorted([ int(input()) for i in range(itemCount)])\nitemList.reverse()\n\nans = sum(itemList) - int(itemList[0] / 2)\nprint(ans)']
['Runtime Error', 'Accepted']
['s981455929', 's916403515']
[2940.0, 2940.0]
[17.0, 17.0]
[220, 177]
p03207
u279013117
2,000
1,048,576
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?
['#!/usr/bin/env python3\n\nimport sys\n\ninput = iter(sys.stdin.read().splitlines()).__next__\n\nN = int(input())\nP = []\nfor i in range(N):\n P.append(int(input()))\n\n\nP.sort()\nprint(P)\n\nres = sum(P[:-1]) + P[-1]//2\n\nprint(res)\n', '#!/usr/bin/env python3\n\nimport sys\n\ninput = iter(sys.stdin.read().splitlines()).__next__\n\nN = int(input())\nP = []\nfor i in range(N):\n P.append(int(input()))\n\n\nP.sort()\n#print(P)\n\nres = sum(P[:-1]) + P[-1]//2\n\nprint(res)\n']
['Wrong Answer', 'Accepted']
['s192524788', 's521830951']
[3060.0, 9020.0]
[17.0, 23.0]
[221, 222]
p03207
u279493135
2,000
1,048,576
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?
["import sys, re\nfrom collections import deque, defaultdict, Counter\nfrom math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians\nfrom itertools import permutations, combinations, product\nfrom operator import itemgetter, mul\nfrom copy import deepcopy\nfrom string import ascii_lowercase, ascii_uppercase, digits\n\ndef input(): return sys.stdin.readline().strip()\ndef INT(): return int(input())\ndef MAP(): return map(int, input().split())\ndef LIST(): return list(map(int, input().split()))\nsys.setrecursionlimit(10 ** 9)\nINF = float('inf')\nMOD = 10 ** 9 + 7\n\nN = INT()\np = [INT() for _ in range(N)]\n\nprint(sum(p)-1/2*max(p))", "import sys, re\nfrom collections import deque, defaultdict, Counter\nfrom math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians\nfrom itertools import permutations, combinations, product\nfrom operator import itemgetter, mul\nfrom copy import deepcopy\nfrom string import ascii_lowercase, ascii_uppercase, digits\n\ndef input(): return sys.stdin.readline().strip()\ndef INT(): return int(input())\ndef MAP(): return map(int, input().split())\ndef LIST(): return list(map(int, input().split()))\nsys.setrecursionlimit(10 ** 9)\nINF = float('inf')\nMOD = 10 ** 9 + 7\n\nN = INT()\np = [INT() for _ in range(N)]\n\nprint(int(sum(p)-1/2*max(p)))"]
['Wrong Answer', 'Accepted']
['s439172833', 's879554788']
[3896.0, 3896.0]
[26.0, 26.0]
[627, 632]
p03207
u287880059
2,000
1,048,576
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?
['n = int(input())\np=[int,input() for i in range(n)]\nprint(sum(p)-max(p)//2)', 'n = int(input())\np=[int(input()) for i in range(n)]\nprint(sum(p)-max(p)//2)']
['Runtime Error', 'Accepted']
['s602873560', 's100486352']
[2940.0, 2940.0]
[17.0, 17.0]
[74, 75]
p03207
u304630225
2,000
1,048,576
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?
['N=int(input())\nS=0 \nA=0\nfor i in range(N) :\n B=int(input())\n S = S + B\n if A<B :\n A=B\nprint(int(S-B/2))', 'N=int(input())\nL=[]\nfor i in range(N) :\n L.append(int(input()))\nprint(int(sum(L)-max(L)/2))\n ']
['Wrong Answer', 'Accepted']
['s126441706', 's346475883']
[2940.0, 2940.0]
[17.0, 17.0]
[109, 97]
p03207
u305452255
2,000
1,048,576
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?
['n = int(input())\np = [int(input()) for i in range(n)]\np = sorted(p)\n\nprint(sum(p[:-1]) + p[-1] / 2)\n', 'n = int(input())\np = [int(input()) for i in range(n)]\np = sorted(p)\n\nprint(int(sum(p[:-1]) + p[-1] / 2))']
['Wrong Answer', 'Accepted']
['s126641906', 's136322034']
[2940.0, 2940.0]
[18.0, 18.0]
[100, 104]
p03207
u305965165
2,000
1,048,576
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?
['n = int(input()) \nprices = [int(input()) for i in range(n)] \n\nmax_price = 0\nsum_price = 0\nfor price in prices:\n sum_price += price\n if price > max_price:\n max_price = price\n\nsum_price -= max_price/2\n\nreturn sum_price', 'n = int(input()) \nprices = [int(input()) for i in range(n)] \n\nmax_price = 0\nsum_price = 0\nfor price in prices:\n sum_price += price\n if price > max_price:\n max_price = price\n\nsum_price -= max_price/2\n\nprint(int(sum_price))']
['Runtime Error', 'Accepted']
['s117519523', 's225505179']
[2940.0, 3060.0]
[18.0, 18.0]
[229, 234]
p03207
u306071800
2,000
1,048,576
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?
['n = int(input())\nlst = []\n\nfor i in range(n):\n item = int(input())\n goods.append(item)\n\ngoods = sorted(lst, reverse=True)\ngoods[0] = goods[0] // 2\n\nprint(sum(goods))\n', 'n = int(input())\nlst = []\n\nfor item in range(n):\n goods.append(item)\n\ngoods = sorted(lst, reverse=True)\ngoods[0] = goods[0] // 2\n\nprint(sum(goods))', 'n = int(input())\nlst = []\n\nfor i in range(n):\n item = int(input())\n lst.append(item)\n\ngoods = sorted(lst, reverse=True)\ngoods[0] = goods[0] // 2\n\nprint(sum(goods))\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s042972095', 's768137251', 's601304547']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 20.0]
[168, 148, 166]
p03207
u309423187
2,000
1,048,576
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?
['n = int(input())\np = [int(input()) for i in range(n)]\n\nm = max(p)/2\n\nsum = 0\n\nfor i in p:\n sum += i\nans = sum - m\n\nprint(ans)', 'n = int(input())\np = [int(input()) for i in range(n)]\n\nm = max(p)//2\n\nsum = 0\n\nfor i in p:\n sum += i\nans = sum - m\n\nprint(ans)\n']
['Wrong Answer', 'Accepted']
['s990139090', 's710848704']
[2940.0, 2940.0]
[17.0, 17.0]
[126, 128]
p03207
u314050667
2,000
1,048,576
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?
['n=int(input())\np=[int(input()) for i in range(n)]\n\nprint(sum(p)-(max(p)/2))', 'n=int(input())\np=[]\nfor i in range(n):\n p.append(int(input())\n\nprint(int(sum(p))-(int(max(p))/2))', 'n=int(input())\np=[int(input()) for _ in range(n)]\nprint(sum(p)-max(p)/2)', 'n=int(input())\np=[int(input()) for i in range(n)]\nprint(sum(p)-max(p)/2)', 'n=int(input())\np=[]\nfor i in range(n):\n p.append(int(input())\n\nprint(sum(p)-(max(p)/2))', 'n=int(input())\np=[input() for i in range(n)]\nprint(sum(p)-max(p)/2)', 'n=int(input())\np=[]\nfor i in range(n):\n p.append(int(input())\n\nprint(sum(p)-(max(p)//2))', 'n=int(input())\np=[int(input() for i in range(n)]\n\nprint(sum(p)-(max(p)/2))', 'n=int(input())\np=[int(input()) for i in range(n)]\n\nprint(sum(p)-(max(p)//2))']
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s091518549', 's105426290', 's121261105', 's408642130', 's721046489', 's814221210', 's852436286', 's918823420', 's452185386']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0, 18.0, 17.0, 18.0, 17.0, 17.0, 17.0]
[75, 100, 72, 72, 90, 67, 91, 74, 76]
p03207
u316341119
2,000
1,048,576
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?
['N = int(input()) [0/0]\np = []\nfor i in range(N):\n p.append(int(input()))\n\nans = sum(p) - max(p)//2\n\nprint(ans)\n', 'N = int(input())\np = []\nfor i in range(N):\n p.append(int(input()))\n\nans = sum(p) - max(p)//2\n\nprint(ans)\n']
['Runtime Error', 'Accepted']
['s280720661', 's398767405']
[2940.0, 2940.0]
[17.0, 17.0]
[221, 108]
p03207
u327532412
2,000
1,048,576
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?
['N = int(input)\np = sorted([int(input()) for _ in range(N)], reverse=True)\nans = p[0] // 2 + sum(p[1:])\nprint(ans)', 'N = int(input())\np = sorted([int(input()) for _ in range(N)], reverse=True)\nans = p[0] // 2 + sum(p[1:])\nprint(ans)\n']
['Runtime Error', 'Accepted']
['s753735531', 's778269943']
[2940.0, 2940.0]
[17.0, 17.0]
[113, 116]
p03207
u329036729
2,000
1,048,576
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?
['n = int(input())\n\nprice_list = []\nfor i in range(n):\n price_list.append(int(input()))\n\nprice_list.sort()\nans = 0\nfor i, ele in enumerate(price_list):\n print(ele)\n if i != n-1:\n ans += ele\n else:\n ans += ele / 2\n\nprint(int(ans))\n\n\n', 'n = int(input())\n\nprice_list = []\nfor i in range(n):\n price_list.append(int(input()))\n\nprice_list.sort()\nans = 0\nfor i, ele in enumerate(price_list):\n if i != n-1:\n ans += ele\n else:\n ans += ele / 2\n\nprint(int(ans))\n\n\n']
['Wrong Answer', 'Accepted']
['s707902211', 's000907496']
[3060.0, 2940.0]
[17.0, 17.0]
[256, 241]
p03207
u329058683
2,000
1,048,576
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?
['N=int(input())\nl=[]\nfor i in N:\n l.append(int(input()))\nprint(sum(l)-max(l)//2)', 'N=int(input())\nl=[]\nfor i in range(N):\n l.append(int(input()))\nprint(sum(l)-max(l)//2)']
['Runtime Error', 'Accepted']
['s386794023', 's115216899']
[2940.0, 2940.0]
[17.0, 17.0]
[80, 87]
p03207
u337626942
2,000
1,048,576
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?
['N = int(input())\nlist =[]\nfor i in range(0, N):\n list = list.append(int(input()))\n \nS = sum(list) - max(list)/2\nprint(S)', 'N = int(input())\nlist = [int(input())for _ in range(N)]\nprint(round(sum(list) - max(list)/2))']
['Runtime Error', 'Accepted']
['s986591136', 's267847720']
[3060.0, 2940.0]
[19.0, 18.0]
[122, 93]
p03207
u339550873
2,000
1,048,576
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?
['#! /usr/bin/env python3\n# -*- coding: utf-8 -*-\nN = int(input())\np = []\nfor _ in range(N):\n p.append(int(input())\n\npmax = max(p)\nans = int(sum(p)-pmax/2)\nprint(ans)', '#! /usr/bin/env python3\n# -*- coding: utf-8 -*-\nN = input()\np = []\nfor _ in range(N):\n p.append(int(input())\n\npmax = max(p)\nans = int(sum(p)-pmax/2)\nprint(ans)', '#! /usr/bin/env python3\n# -*- coding: utf-8 -*-\nN = int(input())\np = []\nfor _ in range(N):\n p.append(int(input()))\n\npmax = max(p)\nans = int(sum(p)-pmax/2)\nprint(ans)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s178581383', 's272708365', 's958325081']
[2940.0, 2940.0, 2940.0]
[18.0, 18.0, 17.0]
[167, 162, 168]
p03207
u346194435
2,000
1,048,576
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?
['n = int(input())\nprices = []\nfor i in range(0,n):\n prices[i] = int(input())\n\ncoupon = max(prices) / 2\n\ntotal = sum(prices) - coupon\nprint(total)', 'n = int(input())\nprices = []\nfor i in range(0,n):\n prices.append(int(input()))\n \ncoupon = max(prices) // 2\n \ntotal = sum(prices) - coupon\nprint(total)']
['Runtime Error', 'Accepted']
['s675918147', 's458508727']
[3060.0, 2940.0]
[18.0, 18.0]
[147, 159]
p03207
u348868667
2,000
1,048,576
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?
['N=int(input())\np=list(map(int,input().split("\\n")))\nans=sum(p)-(max(p)2)\nprint(int(ans))', 'p=[]\nN=int(input())\nfor i in range:\n p.append(int(input()))\nans=sum(p)-(max(p)2)\nprint(int(ans))', 'N=int(input())\np=[int(input()) for i in range(N)]\nans=sum(p)-(max(p)2)\nprint(int(ans))', 'p=[]\nN=int(input())\nfor i in range(N):\n p.append(int(input()))\nans=sum(p)-(max(p)/2)\nprint(int(ans))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s057148741', 's364139342', 's494201015', 's164359641']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[88, 97, 86, 101]
p03207
u350984260
2,000
1,048,576
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?
['print((lambda x:sum(x)-max(x)/2)([int(input()) for i in range(int(input()))]))', 'print(int((lambda x:sum(x)-max(x)/2)([int(input()) for i in range(int(input()))])))']
['Wrong Answer', 'Accepted']
['s322963815', 's146073700']
[2940.0, 2940.0]
[17.0, 17.0]
[78, 83]
p03207
u352499693
2,000
1,048,576
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?
['n = int(input())\na = list(map(int, [input() for i in range(n)]))\na.sort()\nprint(a[:-1]+a[-1]//2)', 'n = int(input())\na = list(map(int, [input() for i in range(n)]))\na.sort()\nprint(sum(a[:-1])+a[-1]//2)\n']
['Runtime Error', 'Accepted']
['s714558421', 's226919616']
[2940.0, 2940.0]
[17.0, 17.0]
[96, 102]
p03207
u359474860
2,000
1,048,576
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?
['list=[]\nn = int(input())\nfor i in range(n):\n list.append(int(input()))\nlist.reverse()\nlist[0] = list[0] / 2\nsum = 0\nfor i in range(len(list)):\n sum = sum + list[i]\nprint(int(sum))', 'list=[]\nn = int(input())\nfor i in range(n):\n list.append(int(input()))\nlist.sort(reverse=True)\nlist[0] = list[0] / 2\nsum = 0\nfor i in range(len(list)):\n sum = sum + list[i]\nprint(int(sum))']
['Wrong Answer', 'Accepted']
['s546256735', 's635138096']
[3060.0, 3060.0]
[18.0, 17.0]
[185, 194]
p03207
u362560965
2,000
1,048,576
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?
['import math\nN=int(input())\np=[int(input()) for i in range(N)]\npo=sum(p)-max(p)/2\nmath.floor(po)', 'N = int(input())\n\np = []\nfor i in range(N):\n p.append(int(input()))\n\np.sort()\np.reverse()\n\np[0] = int(p[0]/2)\n\nprint(sum(p))']
['Wrong Answer', 'Accepted']
['s931115738', 's606474469']
[3060.0, 3060.0]
[18.0, 19.0]
[95, 127]
p03207
u365858785
2,000
1,048,576
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?
['a=int(input())\nb=[int(input()) for i in range(a)]\nprint(sum(b)-max(b)/2)\n ', 'a=int(input())\nb=[int(input()) for i in range(a)]\nprint(int(sum(b)-max(b)/2))\n ']
['Wrong Answer', 'Accepted']
['s968595864', 's634285799']
[2940.0, 2940.0]
[17.0, 18.0]
[75, 80]
p03207
u367130284
2,000
1,048,576
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?
['n,*p=map(int,open(0).read().split())\nprint(sum(sorted(p)[:-1])+p[-1]//2)', 'n,*p=map(int,open(0).read().split())\nprint(sum(sorted(p)[:-1])+sorted(p)[-1]//2)']
['Wrong Answer', 'Accepted']
['s525151386', 's837574581']
[2940.0, 2940.0]
[18.0, 17.0]
[72, 80]
p03207
u368516842
2,000
1,048,576
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?
['SUM = 0\nN = input()\nfor num in range(N):\n\tP[num] = input()\n\nP.sort(reverse=True)\nP[0] = P[0]/2\n\nfor num in range(N):\n\tSUM += P[num]\n\nprint(SUM)', 'SUM = 0\nN = int(input())\nfor num in range(N):\n\tP[num] = int(input())\n\nP.sort(reverse=True)\nP[0] = P[0]//2\n\nfor num in range(N):\n\tSUM += P[num]\n\nprint(SUM)', 'S = 0\nN = int(input())\nP=[]\nfor num in range(N):\n\tP.append(int(input()))\n\nP.sort(reverse=True, key=int)\nP[0] = P[0]//2\n\nfor num in range(N):\n\tS += P[num]\n\nprint(S)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s155308746', 's398908909', 's415812218']
[3060.0, 3060.0, 3060.0]
[18.0, 17.0, 17.0]
[143, 154, 163]
p03207
u370429695
2,000
1,048,576
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?
['n = int(input())\np = [int(input()) for _ in range(n)]\nprint(int(sum(p) - max(p)/2)', 'n = int(input())\np = [int(input()) for _ in range(n)]\nprint(int(sum(p) - max(p)/2))']
['Runtime Error', 'Accepted']
['s624556859', 's548587941']
[2940.0, 2940.0]
[17.0, 18.0]
[82, 83]
p03207
u370793182
2,000
1,048,576
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?
['N = int(input())\np = []\nmax = 0\nfor i in range(N):\n p.append(int(input()))\n if(p[i]>max):\n maxi = i\nsum = 0\nfor i in range(N):\n if(i == maxi):\n sum += p[i]/2\n else:\n sum += p[i]\nprint(sum)', 'N = int(input())\np = []\nmax = 0\nfor i in range(N):\n p.append(int(input()))\np.sort()\nsum = 0\nfor i in range(N-1):\n sum += p[i]\nsum += p[N-1]/2\nprint(sum)\n', 'N = input()\np = []\nmax = 0\nfor i in range(N):\n p.append(int(input()))\n if(p[i]>max):\n maxi = i\nsum = 0\nfor i in range(N):\n if(i == maxi):\n sum += p[i]/2\n else:\n sum += p[i]\nprint(sum)', 'N = int(input())\np = []\nmax = 0\nfor i in range(N):\n p.append(int(input()))\np.sort()\nsum = 0\nfor i in range(N-1):\n sum += p[i]\nsum += p[N-1]/2\nprint(int(sum))\n']
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s240998566', 's424813060', 's873056622', 's636268842']
[3060.0, 2940.0, 3064.0, 3060.0]
[17.0, 17.0, 17.0, 17.0]
[201, 155, 196, 160]
p03207
u371467115
2,000
1,048,576
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?
['n=int(input())\np=[int(input()) for i in range(n)]\np.sort(reverse=True)\ns=p[0]/2\nfor j in range(1,n):\n s+=p[j]\nprint(s)', 'n=int(input())\np=[int(input()) for i in range(n)]\np.sort(reverse=True)\ns=p[0]//2\nfor j in range(1,n):\n s+=p[j]\nprint(s)']
['Wrong Answer', 'Accepted']
['s781828060', 's620609661']
[3064.0, 2940.0]
[19.0, 19.0]
[121, 122]
p03207
u374121675
2,000
1,048,576
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?
['N = int(input())\npn = []\nfor i in range(N):\n pn.append(int(input()))\nprint(sum(pn) - max(pn) / 2)\n', 'N = int(input())\npn = []\nfor i in range(N):\n pn.append(int(input()))\nprint(int(sum(pn) - max(pn) / 2))\n']
['Wrong Answer', 'Accepted']
['s915207931', 's739038139']
[2940.0, 2940.0]
[17.0, 18.0]
[99, 104]
p03207
u374531474
2,000
1,048,576
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?
['N = int(input())\np = [int(input()) for i in range(N)]\nprint(sum(p) - max(p) / 2)', 'N = int(input())\np = [int(input()) for i in range(N)]\nprint(int(sum(p) - max(p) / 2))']
['Wrong Answer', 'Accepted']
['s632617707', 's235784410']
[3064.0, 2940.0]
[18.0, 17.0]
[80, 85]
p03207
u379440427
2,000
1,048,576
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?
['n = int(input())\np = list(map(int, [input() for i in range(n)]))\n\nprint(sum(p)-max(p)/2)', 'n = int(input())\np = [map(int, input()) for i in range(n)]\n\nprint(sum(p)-int(max(d)/2))', 'n = int(input())\np = list(map(int, [input() for i in range(n)]))\n\nprint(int(sum(p)-max(p)/2))']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s162779274', 's289538696', 's842210283']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[88, 87, 93]
p03207
u379689509
2,000
1,048,576
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?
['N = int(input())\nsum = 0\nP = []\nfor i in range(N - 1):\n P.append(int(input()))\n sum += P[i]\n\nprint(sum - max(P) // 2)\n', 'N = int(input())\nsum = 0\nP = []\nfor i in range(N):\n P.append(int(input()))\n sum += P[i]\n\nprint(sum - max(P) // 2)']
['Wrong Answer', 'Accepted']
['s679183039', 's946809330']
[2940.0, 2940.0]
[17.0, 17.0]
[124, 119]
p03207
u385244248
2,000
1,048,576
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?
['N,*p = map(int,open(0).read().split())\np.sort()\np[-1] /= 2\nprint(sum(p))\n', 'N,*p = map(int,open(0).read().split())\np.sort()\np[-1] /= 2\nprint(int(sum(p)))\n']
['Wrong Answer', 'Accepted']
['s185408008', 's162473556']
[2940.0, 3064.0]
[17.0, 17.0]
[73, 78]
p03207
u389679466
2,000
1,048,576
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?
['N = int(intput())\n\nsum = 0\nmax = 0\nfor _ in range(N):\n p = int(intput())\n if(p > max):\n max = p\n sum += p\nval = sum - max/2\nprint(int(val))', 'N = int(input())\n \nsum = 0\nmax = 0\nfor _ in range(N):\n p = int(input())\n if(p > max):\n max = p\n sum += p\nval = sum - max/2\nprint(int(val))']
['Runtime Error', 'Accepted']
['s608015023', 's200324495']
[2940.0, 2940.0]
[17.0, 17.0]
[145, 144]
p03207
u392029857
2,000
1,048,576
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?
['p = [i for i in range(int(input()))]\nprint(sum(p)-(max(p)//2))', 'p = [int(input()) for i in range(int(input()))]\nprint(sum(p)-(max(p)//2))']
['Wrong Answer', 'Accepted']
['s311206879', 's385667961']
[2940.0, 2940.0]
[18.0, 17.0]
[62, 73]
p03207
u393693918
2,000
1,048,576
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?
['n = int(input())\na = sorted(list(map(int, [input() for i in range(n)])))\nans = sum(a) - (a[n-1] / 2)\nprint(ans)\n\n', 'n = int(input())\na = sorted(list(map(int, [input() for i in range(n)])))\nans = sum(a) - a[n-1] / 2\nprint(ans)\n\n', 'n = int(input())\na = sorted(list(map(int, input().split())))\nans = sum(a) - a[n-1] / 2\nprint(ans)\n', 'n = int(input())\na = sorted(list(map(int, [input() for i in range(n)])))\nans = sum(a) - (a[n-1] / 2)\nprint(int(ans))\n\n']
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s056381485', 's163411249', 's375699499', 's804709127']
[3188.0, 2940.0, 2940.0, 2940.0]
[19.0, 18.0, 18.0, 18.0]
[113, 111, 98, 118]
p03207
u398846051
2,000
1,048,576
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?
['N = int(input())\np = [int(input()) for _ in range(N)]\np.sort()\np[-1] //= 2\nprint(p.sum())', 'N = int(input())\np = [int(input()) for _ in range(N)]\np.sort()\np[-1] //= 2\nprint(sum(p))']
['Runtime Error', 'Accepted']
['s834613526', 's152405527']
[2940.0, 2940.0]
[17.0, 18.0]
[89, 88]
p03207
u398983698
2,000
1,048,576
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?
['n=int(input())\na=[int(input()) for i in range(n)]\nb=sum(a)-max(a)/2\nprint(b)', 'n=int(input())\na=list(map(int,input())\nb=sum(a)-max(a)/2\nprint(b)', 'n=int(input())\na=[int(input()) for i in range(n)]\nb=sum(a)-max(a)/2\nprint(int(b))']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s108690910', 's112412216', 's320606876']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[76, 65, 81]
p03207
u399099656
2,000
1,048,576
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?
['N = input()\np = [int(input()) for i in range(N)]\nprint(sum(p) - max(p) // 2)', 'N = int(input())\np = [int(input()) for i in range(N)]\nprint(sum(p) - max(p) // 2)\n']
['Runtime Error', 'Accepted']
['s003505921', 's807313958']
[2940.0, 2940.0]
[18.0, 18.0]
[76, 82]
p03207
u399721252
2,000
1,048,576
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?
['n = int(input)\n\nfor i in range(n):\n\tpresent_list[i] = int(input())\n\nprint(sum(present_list)-present_list[-1]//2)', 'n = int(input)\npresent_list = [0]*n\nfor i in range(n):\n\tpresent_list[i] = int(input())\n\nprint(sum(present_list)-present_list[-1]//2)\n', '\nn = int(input())\npresent_list = [0]*n\nfor i in range(n):\n\tpresent_list[i] = int(input())\n\nprint(sum(present_list)-present_list[-1]//2)', 'n = int(input())\npresent_list = [0]*n\nfor i in range(n):\n\tpresent_list[i] = int(input())\npresent_list = sorted(present_list)\nprint(sum(present_list)-present_list[-1]//2)']
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s267347513', 's328781728', 's464806635', 's448593583']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[112, 133, 135, 169]
p03207
u400221789
2,000
1,048,576
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?
['n=int(input())\np=[int(input()) for i in range(n)]\nans=sum(p)\nans-=max(p)/2\nprint(ans)', 'n=int(input())\np=[int(input()) for i in range(n)]\nans=sum(p)\nans-=max(p)/2\nprint(int(ans))']
['Wrong Answer', 'Accepted']
['s334494183', 's223974915']
[2940.0, 2940.0]
[17.0, 17.0]
[85, 90]
p03207
u403331159
2,000
1,048,576
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?
['n=int(input())\np=[int(input()) for i in range(n)]\nf=max(p)\nans=sum(p)-f+(f//2)', 'n=int(input())\np=[int(input()) for i in range(n)]\nf=max(p)\nans=sum(p)-f+(f//2)\nprint(ans)']
['Wrong Answer', 'Accepted']
['s192420513', 's997371469']
[2940.0, 2940.0]
[17.0, 17.0]
[78, 89]
p03207
u404057606
2,000
1,048,576
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?
['n = int(input())\np = [0 for i in range(n)]\nfor i in range(n):\n p[i] = int(input())\np2 = sorted(p)\nprint(p2)\nprint(int(sum(p2)-p2[n-1]*0.5))\n', 'n = int(input())\np = [0 for i in range(n)]\nfor i in range(n):\n p[i] = int(input())\np2 = sorted(p)\nprint(int(sum(p2)-p2[n-1]*0.5))\n']
['Wrong Answer', 'Accepted']
['s740621973', 's919326564']
[3316.0, 2940.0]
[22.0, 17.0]
[143, 133]
p03207
u404561212
2,000
1,048,576
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?
['N = int(input())\nP = []\nfor n in range(N):\n P.append(int(input()))\nprint(P)\ntotal = 0\nfor p in P:\n total +=p\ntotal -= max(P)/2\nprint(int(total))', 'N = int(input())\nP = []\nfor n in range(N):\n P.append(int(input()))\ntotal = 0\nfor p in P:\n total +=p\ntotal -= max(P)/2\nprint(int(total))']
['Wrong Answer', 'Accepted']
['s607430421', 's438774710']
[3060.0, 3060.0]
[18.0, 18.0]
[150, 141]
p03207
u405660020
2,000
1,048,576
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?
['n=int(input())\nlstA=[int(input()) for i in range(n)]\nprint(sum(lstA)-max(lstA)/2)\n', 'n=int(input())\nlstA=[int(input()) for i in range(n)]\nprint(int(sum(lstA)-max(lstA)/2))\n']
['Wrong Answer', 'Accepted']
['s321201580', 's057494534']
[2940.0, 2940.0]
[17.0, 17.0]
[82, 87]
p03207
u407016024
2,000
1,048,576
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?
['N = int(input())\nP = [int(input()) for _ in range(N) ]\ntotal = 0\nfor p in P:\n print(p)\n total += p\nprint(total - max(P)//2 )', 'N = int(input())\nP = [int(input()) for _ in range(N) ]\ntotal = 0\nfor p in P:\n total += p\nprint(total - max(P)//2 )']
['Wrong Answer', 'Accepted']
['s215322963', 's591813840']
[3068.0, 2940.0]
[18.0, 17.0]
[130, 117]
p03207
u409064224
2,000
1,048,576
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?
['n=int(input())\nl=[]\n\nfor I in range(n):\n l.append(int(input())\nelse:\n print(int(sum(l)-max(l)/2))', 'n = int(input())\nl = []\nfor i in range(n):\n l.append(int(input()))\nelse:\n print(sum(l)-max(l)//2)\n']
['Runtime Error', 'Accepted']
['s363858903', 's243128242']
[2940.0, 2940.0]
[17.0, 17.0]
[103, 104]
p03207
u411544692
2,000
1,048,576
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?
['N = int(input())\n\nS = 0\nM = 0\nfor i in range(N):\n amount = int(input())\n M = max(amount, M)\n S += amount\n\nS -= M//2\nprint(amount)\n ', 'N = int(input())\n\nS = 0\nM = 0\nfor i in range(N):\n amount = int(input())\n M = max(amount, M)\n S += amount\n\nS -= M//2\nprint(S)']
['Wrong Answer', 'Accepted']
['s507590317', 's286090966']
[2940.0, 2940.0]
[17.0, 18.0]
[135, 127]
p03207
u415325136
2,000
1,048,576
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?
['N = int(input())\na = list()\nfor i in range(N):\n a.append(int(input()))\na.sort()\nprint(sum(a)-(a[N-1]/2))', 'N = int(input())\na = list()\nfor i in range(N):\n a.append(int(input()))\nprint(sum(a)-(max(a)//2))']
['Wrong Answer', 'Accepted']
['s312498865', 's498608735']
[2940.0, 2940.0]
[17.0, 18.0]
[105, 97]
p03207
u416758623
2,000
1,048,576
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?
['n = int(input())\narray = []\nfor i in range(n):\n a = int(input())\n array.append(a)\n\narray.sort()\narray[-1] = max(array) // 2\ntotal = sum(array)\nprint(array)\nprint(total)\n', 'n = int(input())\np = sorted([int(input()) for i in range(n)], reverse=True)\np[0] //= 2\n\nprint(sum(p))']
['Wrong Answer', 'Accepted']
['s473472257', 's801248557']
[2940.0, 2940.0]
[17.0, 17.0]
[175, 101]
p03207
u419686324
2,000
1,048,576
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?
['n = int(input())\np = [int(input()) for _ in range(n)]\n\np.sort()\nprint(sum(p[:-1] + p[-1] // 2))', 'n = int(input())\np = [int(input()) for _ in range(n)]\n\np.sort()\nprint(sum(p[:-1]) + p[-1] // 2)']
['Runtime Error', 'Accepted']
['s963405153', 's283488015']
[2940.0, 2940.0]
[17.0, 17.0]
[95, 95]
p03207
u422267382
2,000
1,048,576
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?
['p=[int(input()) for i in range(int(input()))]\nnum=sorted(p,reverse=True)\nprint(num)\nprint(int(num[0]/2+sum(num[1::])))', 'p=[int(input()) for _ in range(int(input()))]\nnum=sorted(p,reverse=True)\nprint(int(num[0]/2+sum(num[1::])))']
['Wrong Answer', 'Accepted']
['s142215969', 's250805936']
[3060.0, 2940.0]
[17.0, 17.0]
[118, 107]
p03207
u422673384
2,000
1,048,576
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?
['N = int(input())\n\n\np = []\nfor i in range(N):\n p.append(int(input()))\n \np_max = p.index(max(p))\n\n\np[p_max] = p[p_max] / 2 \n\nprint(sum(p))', 'N = int(input())\n\n\np = []\nfor i in range(N):\n p.append(int(input()))\n \np_max = p.index(max(p))\n\n\np[p_max] = p[p_max] / 2 \n\nprint(int(sum(p)))']
['Wrong Answer', 'Accepted']
['s373495851', 's913934627']
[2940.0, 2940.0]
[18.0, 18.0]
[138, 143]
p03207
u425762225
2,000
1,048,576
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?
['N = int(input())\nl = sorted([int(input()) for _ in range(N)])\n\ns = int(sum(l[0:-2]) + l[-1]/2)\nprint(s)', 'N = int(input())\nl = sorted([int(input()) for _ in range(N)])\n\ns = int(sum(l[0:-1]) + l[-1]/2)\nprint(s)']
['Wrong Answer', 'Accepted']
['s522247516', 's935336852']
[2940.0, 2940.0]
[18.0, 17.0]
[103, 103]
p03207
u426108351
2,000
1,048,576
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?
['N = int(input())\na = []\nfor i in range(N):\n\n a.append(int(input())\n \nprint(sum(a)-max(a)//2)\n ', 'N = int(input())\na = []\nfor i in range(N):\n\n a.append(int(input()))\n \nprint(sum(a)-max(a)//2)\n ']
['Runtime Error', 'Accepted']
['s392043929', 's232750231']
[2940.0, 2940.0]
[18.0, 17.0]
[109, 110]
p03207
u430223993
2,000
1,048,576
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?
['x = [int(i) for i in input().split()]\nx.pop(0)\npay = sum(x) - max(x)/2\nprint(int(pay))', 'x = [int(i) for i in input().split()]\nx.pop(0)\npay = int(sum(x) - max(x)/2)\nprint(pay)', 'x = [int(i) for i in input().split()]\npay = sum(x[1:]) - max(x[1:])//2\nprint(pay)', 'x = int(input())\np = [int(input()) for i in range(x)]\npay = sum(p) - max(p)//2\nprint(pay)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s245260214', 's259418976', 's465062465', 's881377670']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 18.0]
[86, 86, 81, 89]
p03207
u439312138
2,000
1,048,576
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?
['N = int(input())\n\ninput_list = []\n\nfor i in range(N):\n input_list.append(int(input)) \n \ninput_list.sort()\n\ninput_list[-1] = int(input_list[-1] / 2)\n\nans = 0\nfor i in input_list:\n ans += i\n \nprint(ans)', 'N = int(input())\n \ninput_list = []\n \nfor i in range(N):\n input_list.append(int(input())) \n \ninput_list.sort()\n \ninput_list[-1] = int(input_list[-1] / 2)\n \nans = 0\nfor i in input_list:\n ans += i\n \nprint(ans)']
['Runtime Error', 'Accepted']
['s770073496', 's442654575']
[2940.0, 3060.0]
[17.0, 17.0]
[204, 210]
p03207
u445628522
2,000
1,048,576
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?
['N=int(input())\np=list(map(int,intput().split()))\nsum=0\nprint(sum(p)-max(p)//2)', 'N=int(input())\np=list(map(int,intput().split()))\nsum=0\nfor i in range(N):\n sum+=p[i]\nprint(sum-(max(p)//2))\n', 'N=int(input())\np=[int(input()) for i in range(N)]\nprint(sum(p)-max(p)//2)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s009796758', 's538902506', 's926266470']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0]
[78, 111, 73]
p03207
u448655578
2,000
1,048,576
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?
['N = int(input())\nprice = []\np = 0\nfor i in range(N):\n price.append(int(input())\nm = price.index(max(price))\nfor j in range(len(price)):\n if j != m:\n p += price[j]\n else:\n p += price[j]//2\nprint(p)', 'N = int(input())\nprice = []\np = 0\nfor i in range(N):\n price.append(int(input()))\nm = price.index(max(price))\nfor j in range(len(price)):\n if j != m:\n p += price[j]\n else:\n p += price[j]//2\nprint(p)\n']
['Runtime Error', 'Accepted']
['s039932107', 's286846335']
[2940.0, 3060.0]
[17.0, 17.0]
[207, 209]
p03207
u453500284
2,000
1,048,576
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?
['n = int(input())\np = [input() for i in range(n)]\nprint(sum(p) - max(p)/2)\n', 'n = int(input())\np = [input() for i in range(n)]\nprint(sum(p) - int(max(p)/2))\n', 'n = int(input())\np = [int(input()) for i in range(n)]\nprint(sum(p) - max(p)/2)\n', 'p = list(map(int, input().split()))\nprint(sum(p) - max(p)/2)', 'price = [ int(input()) for _ in range( int(input()))]\nprint(sum(price) - int(min(price)/2))', 'l = [int(input()) for _ in range(int(input()))]\nprint(sum(l) - max(l)/2)', 'n = int(input())\np = [int(input()) for i in range(n)]\nprint(sum(p) - int(max(p)/2))\n']
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s095712422', 's240234865', 's492498083', 's553746119', 's606327288', 's926880283', 's821790356']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3060.0]
[17.0, 19.0, 17.0, 17.0, 17.0, 18.0, 19.0]
[74, 79, 79, 60, 91, 72, 84]
p03207
u463775490
2,000
1,048,576
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?
['n=int(input())\np=[int(i) for i in input()]\np.sort(reverse=True)\nans=sum(p)-p[0]//2\nprint(ans)', 'n=int(input())\np=[int(input()) for i in range(n)]\np.sort(reverse=True)\nans=sum(p)-p[0]//2\nprint(ans)']
['Wrong Answer', 'Accepted']
['s427040868', 's296295546']
[2940.0, 2940.0]
[17.0, 17.0]
[93, 100]
p03207
u468972478
2,000
1,048,576
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?
['n, *a = map(int, open(0).read().split())\nprint(sum(a) - sorted(a)[-1])', 'n, *a = map(int, open(0).read().split())\nprint(sum(a) - sorted(a)[-1] // 2)']
['Wrong Answer', 'Accepted']
['s555952471', 's191545346']
[9144.0, 9048.0]
[25.0, 26.0]
[70, 75]