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 | u469953228 | 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())\nmaximum = 0\nli = list(map(int,input().split()))\nfor i in range(n):\n if li[i] > maximum:\n maximum = li[i]\n s = i\n \nsum = 0\nfor i in range(n):\n sum += li[i]\nsum -= li[s]/2\n\nprint(sum)', 'n = int(input())\nl = [int(input()) for _ in [0]*n]\nprint(l)\nprint(sum(l)-max(l)//2)\n', 'n = int(input())\nmaximum = 0\nli = list(map(int,input().split()))\nprint(sum(li)-max(li)/2)', 'n = int(input())\nli = input().split()\nprint(sum(li)-max(li)/2)', 'n = int(input())\nl = [int(input()) for _ in [0]*n]\n\nprint(sum(l)-max(l)//2)\n'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s058003250', 's248421744', 's410086817', 's856065160', 's945220249'] | [3064.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 19.0, 17.0, 18.0] | [207, 84, 89, 62, 76] |
p03207 | u474925961 | 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\n\nif sys.platform =='ios':\n sys.stdin=open('input_file.txt')\n \nN=int(input())\npay=o\np=[int(input()) for _ in range(N)]\n\nfor i in range(N):\n\tpay+=p[i]\n\nprint(pay-max(p)//2)", "import sys\n\nif sys.platform =='ios':\n sys.stdin=open('input_file.txt')\n \nN=int(input())\n\np=[int(input()) for _ in range(N)]\n\nfor i in range(N):\n\tpay+=p[i]\n\nprint(pay-max(p)//2)", "import sys\n\nif sys.platform =='ios':\n sys.stdin=open('input_file.txt')\n \nN=int(input())\npay=0\np=[int(input()) for _ in range(N)]\n\nfor i in range(N):\n\tpay+=p[i]\n\nprint(pay-max(p)//2)"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s425354514', 's891756717', 's891747098'] | [3060.0, 2940.0, 3060.0] | [18.0, 18.0, 17.0] | [187, 182, 187] |
p03207 | u477343425 | 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(sum(p) - max(p)//2)\n ', 'n = int(input())\np = [int(input()) for in range(n)]\nprint(sum(p) - max(p)//2)\n\n', 'n = int(input())\np = [int(input()) for i in range(n)]\nanswer = sum(p) - max(p) // 2\nprint(answer)\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s376683038', 's443570757', 's520644909'] | [2940.0, 2940.0, 3060.0] | [17.0, 17.0, 19.0] | [79, 79, 98] |
p03207 | u478296955 | 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 = [int(i) for i in range(n)]\nprint(sum(l)-0.5*max(l))', 'n = int(input())\nl = [int(input(i)) for i in range(n)]\nprint(sum(l)-0.5*max(l))\n', 'n = int(input())\nl = [int(input(i)) for i in range(n)]\nprint(sum(l)-int(0.5*max(l)))', 'n = int(input())\nl = [int(input(i)) for i in range(n)]\nprint(sum(l)-int(0.5*max(l)))\n', 'n=int(input())\nl=[int(input()) for _ in range(n)]\nprint(sum(l)-int(0.5*max(l)))'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s424476050', 's546278508', 's573707160', 's704080492', 's888837588'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 18.0, 17.0, 18.0] | [72, 80, 84, 85, 79] |
p03207 | u480038302 | 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())\nls = [int(input()) for i in range(n)]\nlist.sort(ls,reverse=True)\nls[0] = ls[0]/2\na = 0\nfor i in range(n):\n a += ls[i]\nprint(a)', 'n = int(input())\nls = [int(input()) for i in range(n)]\nlist.sort(ls,reverse=True)\nls[0] = ls[0]//2\na = 0\nfor i in range(n):\n a += ls[i]\nprint(a)'] | ['Wrong Answer', 'Accepted'] | ['s681437557', 's367796049'] | [2940.0, 2940.0] | [17.0, 17.0] | [146, 147] |
p03207 | u480138356 | 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())\nx = list(map(int, input().split()))\n\nprint(sum(x)-max(x)+max(x)//2)', 'N = int(input())\nx = list(map(int, input().split()))\n\nprint(sum(x)-max(x)//2)\n', 'n = int(input())\nx = [int(input()) for i in range(n)]\n\nprint(sum(x)-max(x)//2)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s209252282', 's535301347', 's334368390'] | [3064.0, 2940.0, 2940.0] | [18.0, 18.0, 17.0] | [84, 78, 78] |
p03207 | u488934106 | 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? | ["def bChristmas(n, pl):\n\n return sum(pl) - (max(pl)/ 2)\n\ndef main():\n n = int(input())\n pl = [int(input()) for i in range(n)]\n print(bChristmas(n, pl))\n\nif __name__ == '__main__':\n main()\n", "def bChristmas(n, pl):\n\n return int(sum(pl) - (max(pl)/ 2))\n\ndef main():\n n = int(input())\n pl = [int(input()) for i in range(n)]\n print(bChristmas(n, pl))\n\nif __name__ == '__main__':\n main()\n"] | ['Wrong Answer', 'Accepted'] | ['s816634187', 's330816255'] | [2940.0, 2940.0] | [17.0, 17.0] | [202, 207] |
p03207 | u503111914 | 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 = [int(input()) for i in range(N)]\nprint(sum(list)-list[-1]//2)', 'N =int(input())\nlist = [int(input()) for i in range(N)]\nlist.sort()\nprint(sum(list)-list[-1]//2)'] | ['Wrong Answer', 'Accepted'] | ['s242946927', 's273343856'] | [2940.0, 2940.0] | [18.0, 17.0] | [84, 96] |
p03207 | u506689504 | 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\nprint(sum(p)-max(p)/2)', 'n=int(input())\np = [int(input()) for _ in range(n)]\n\nprint(int(sum(p)-max(p)/2))'] | ['Wrong Answer', 'Accepted'] | ['s851533688', 's934617029'] | [2940.0, 2940.0] | [20.0, 18.0] | [75, 80] |
p03207 | u512138205 | 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\nmax_index = 0\nmax_price = 0\nprice_list = []\n\nfor i in range(0, n):\n p = int(input())\n price_list.append(p)\n if max_price < p:\n max_index = i\n\nsum = 0\nfor i, p in enumerate(price_list):\n if i == max_index:\n sum += p / 2\n else:\n sum += p\n\nprint(sum)\n', 'n = int(input())\n\nmax_index = 0\nmax_price = 0\nprice_list = []\n\nfor i in range(0, n + 1):\n p = int(input())\n price_list.append(p)\n if max_price < p:\n max_index = i\n\nsum = 0\nfor i, p in enumerate(price_list):\n if i == max_index:\n sum += p / 2\n else:\n sum += p\n\nprint(sum)\n', 'n = int(input())\n\nmax_index = 0\nmax_price = 0\nprice_list = []\n\nfor i in range(0, n):\n p = int(input())\n price_list.append(p)\n if max_price < p:\n max_price = p\n max_index = i\n\np_sum = 0\nfor i, p in enumerate(price_list):\n if i == max_index:\n p_sum += p / 2\n else:\n p_sum += p\n\nprint(int(p_sum))\n'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s289125177', 's849232280', 's889965658'] | [3060.0, 3060.0, 3060.0] | [18.0, 17.0, 17.0] | [302, 306, 337] |
p03207 | u515364861 | 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=[]\nb=0\nfor i in range(n):\n a.append(i)\nfor u in a:\n b+=u\nprint(b-(max(a)//2))', 'n=int(input())\na=[]\nb=0\nfor i in range(n):\n c=int(input())\n a.append(c)\nfor u in a:\n b+=u\nprint(b-(max(a)//2))'] | ['Wrong Answer', 'Accepted'] | ['s870866807', 's544909497'] | [2940.0, 2940.0] | [18.0, 18.0] | [100, 119] |
p03207 | u518042385 | 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=[]\np=0\nfor I in range(1,n+1):\n l.append(int(input())\nl.sort()\nfor I in l:\n p+=I\nprint(p+max(l))', 'n=int(input())\nl=[]\ns=0\nfor i in range(1,n+1):\n l.append(int(input()))\nl.sort()\nfor i in l:\n s+=i\nprint(int(s-0.5*max(l)))'] | ['Runtime Error', 'Accepted'] | ['s877002216', 's969244802'] | [2940.0, 3060.0] | [17.0, 17.0] | [112, 122] |
p03207 | u518556834 | 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)]\nans = 0\nfor i in range(n):\n ans += a[i]\nans -= min(a)//2\nprint(ans)\n', 'n = int(input())\na = [ int(input()) for i in range(n)]\nans = 0\nfor i in range(n):\n ans += a[i]\nans -= max(a)//2\nprint(ans)\n'] | ['Wrong Answer', 'Accepted'] | ['s876008090', 's333630438'] | [2940.0, 2940.0] | [18.0, 17.0] | [123, 123] |
p03207 | u519939795 | 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 range(n):\n a =input()\n l.append(int(a))\nlm=sorted(l)\nlm2=l[0:n]\nb=l[-1]\nprint(sum(lm2)+int(b//2)-int(b))', 'n=int(input())\nl=[]\nfor i in range(n):\n a =input()\n l.append(int(a))\nlm=sorted(l)\nlm2=l[0:n-1]\nb=l[-1]\nprint(sum(lm2)+int(b//2))', 'n=int(input())\nl=[]\nfor i in range(n):\n a =input()\n l.append(int(a))\nprint(sum((l)))', 'n=int(input())\nl=[]\nfor i in range(n):\n a =input()\n l.append(int(a))\nlm=sorted(l)\nlm2=lm[0:n-1]\nb=lm[-1]\nprint(sum(lm2)+int(b)//2)'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s589547769', 's714569169', 's937460468', 's130592585'] | [3060.0, 3060.0, 2940.0, 3060.0] | [17.0, 18.0, 18.0, 17.0] | [139, 134, 90, 136] |
p03207 | u521020719 | 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? | ['L, H = map(int, input().split())\nN = int(input())\nworked_time = [int(input()) for _ in range(N)]\n\nfor time in worked_time:\n result = L - time if L > time else "0" if H >= time else "-1"\n print(result)\n\n\n', 'N = int(input())\nprices = [int(input()) for _ in range(N)]\n\nprint(sum(prices) - max(prices) // 2)\n'] | ['Runtime Error', 'Accepted'] | ['s030708526', 's872437461'] | [2940.0, 2940.0] | [17.0, 17.0] | [209, 98] |
p03207 | u529012223 | 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 i in range(N):\n p = int(input())\n P.append(p)\n \nprice = sum(P) - max(P) / 2\nprint(price)', 'N = int(input())\nP = []\nfor i in range(N):\n p = int(input())\n P.append(p)\n \nprice = sum(P) - max(P) / 2\nprint(int(price))'] | ['Wrong Answer', 'Accepted'] | ['s859346292', 's867832812'] | [2940.0, 3060.0] | [17.0, 17.0] | [125, 130] |
p03207 | u529722835 | 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 = [int(i) for i in input().split()] \nsum = 0\nfor i in range(len(p_list)):\n if p_list[i] == max(p_list):\n sum += int(p_list[i]/2)\n else:\n sum += p_list[i]\nprint(sum)\n', 'N = int(input())\np_list = [int(input()) for i in range(N)] \nsum = 0\nfor i in range(N):\n if i == p_list.index(max(p_list)):\n sum += int(p_list[i]/2)\n else:\n sum += p_list[i]\nprint(sum)'] | ['Wrong Answer', 'Accepted'] | ['s465013762', 's119627241'] | [2940.0, 3060.0] | [17.0, 17.0] | [197, 190] |
p03207 | u537550206 | 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())\nx = "Christmas"\ny = "Eve"\nif d == 25:\n print(x)\nelif d == 24:\n print("{} {}".format(x, y))\nelif d == 23:\n print("{} {} {}".format(x, y, y))\nelse:\n print("{} {} {} {}".format(x, y, y, y))', 'n = int(input())\nprice=[int(input()) for i in range(n)]\nsort_price = sorted(price)\ndiscount = sort_price[len(sort_price)-1] // 2\nsort_price[len(sort_price)-1] = discount\nprint(sum(sort_price))'] | ['Wrong Answer', 'Accepted'] | ['s494475701', 's398351583'] | [3060.0, 2940.0] | [17.0, 18.0] | [215, 192] |
p03207 | u537782349 | 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 _ in range(a)]\nb = sorted(b, key=lambda, x: x[0], reverse=True)\nc = 0\nfor i in range(a):\n if i == 0:\n c += b[i] // 2\n else:\n c += b[i]\nprint(c)\n', 'a = int(input())\nb = [int(input()) for _ in range(a)]\nb = sorted(b, key=lambda, x: x[0], reverse=True)\nc = 1\nfor i in range(a):\n if i == 0:\n c += b[i] // 2\n else:\n c += b[i]\nprint(c)\n', 'a = int(input())\nb = [int(input()) for _ in range(a)]\nb = sorted(b, reverse=True)\nc = 1\nfor i in range(a):\n if i == 0:\n c += b[i] // 2\n else:\n c += b[i]\nprint(c)\n', 'a = int(input())\nb = []\nfor i in range(a):\n b.append(int(input()))\nb = sorted(b, reverse=True)\nprint(sum(b) + b[0] // 2 - b[0])\n'] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s576758510', 's710831084', 's910793269', 's635350000'] | [2940.0, 2940.0, 2940.0, 3064.0] | [17.0, 17.0, 17.0, 17.0] | [191, 191, 182, 131] |
p03207 | u539826121 | 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))\np = [int(input()) for _ in range(n)]\nprint(sum(p) - max(p)//2)\n', 'n = int(input())\np = [int(input()) for _ in range(n)]\nprint(sum(p) - max(p)//2)\n'] | ['Wrong Answer', 'Accepted'] | ['s139265156', 's390079725'] | [2940.0, 2940.0] | [17.0, 17.0] | [81, 80] |
p03207 | u540254866 | 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? | ['input_ = input()\n\nm = 0\ns = 0\nfor i in input_.splitlines():\n n = int(i)\n if i > max:\n max = i\n sum += n\n\nprint(sum - (max / 2))\n', 'n = input()\na = []\nfor i in range(int(n)):\n a.append(int(input()))\n\nprint(int(sum(a) - (max(a) / 2)))\n'] | ['Runtime Error', 'Accepted'] | ['s128564026', 's777770739'] | [2940.0, 2940.0] | [17.0, 17.0] | [144, 105] |
p03207 | u541786453 | 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\nhigh = 0\nfor i in range(n):\n\tx = int(input())\n\tsum += x\n\tif high<x:\n\t\thigh = x\nsum -= x//2\nprint(sum)', 'n = int(input())\nsum = 0\nhigh = 0\nfor i in range(n):\n\tx = int(input())\n\tsum += x\n\tif high<x:\n\t\thigh = x\nsum -= high//2\nprint(sum)'] | ['Wrong Answer', 'Accepted'] | ['s866774425', 's478822604'] | [2940.0, 2940.0] | [17.0, 17.0] | [126, 129] |
p03207 | u545417074 | 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)]\nmax_p = max(p)\nmax_index = p.index(max_p)\n\nsum = 0\nfor i in range(N):\n if i == max_index:\n sum += p[i]/2\n else:\n sum += p[i]\nprint(sum)', 'N = int(input())\np = [int(input()) for _ in range(N)]\nmax_p = max(p)\nmax_index = p.index(max_p)\n\nsum = 0\nfor i in range(N):\n if i == max_index:\n sum += int(p[i]/2)\n else:\n sum += p[i]\nprint(sum)'] | ['Wrong Answer', 'Accepted'] | ['s760570204', 's635983831'] | [9108.0, 9116.0] | [31.0, 27.0] | [209, 214] |
p03207 | u550943777 | 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? | ['\np = list(map(int,input().split()))\nmax = 0\nsum = 0\nfor i in range(1,p[0]+1):\n sum += p[i]\n a = p[i]\n if max < a :\n max = a\nprint(int(sum-(int(max/2))))\n\n', 'N = int(input())\np =[]\nmax = 0\n\nfor i in range(N):\n a = int(input().split("\\n"))\n p.append(a)\n if max < a :\n max = a\nprint(int(sum(p)-(int(max/2))))', 'N = list(map(int,input().split()))\np = []\nfor i in range(N[0]):\n p.append(int(input()))\nmax = 0\nsum = 0\nfor i in range(N[0]):\n sum += p[i]\n a = p[i]\n if max < a :\n max = a\nprint(int(sum-(int(max/2))))'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s192887348', 's641657206', 's149965849'] | [3064.0, 2940.0, 3064.0] | [17.0, 17.0, 17.0] | [170, 164, 217] |
p03207 | u552357043 | 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())\np.sort()\nprint(sum(p)-(p[0]//2))', 'N = int(input())\np = [0 for i in range(N)]\nfor i in range(N):\n p[i] = int(input())\np.sort()\nprint(sum(p)-(p[-1]//2))'] | ['Wrong Answer', 'Accepted'] | ['s996017772', 's370237388'] | [3316.0, 3316.0] | [21.0, 20.0] | [118, 119] |
p03207 | u556225812 | 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 = []\nfor i in range(N):\n lst.append(int(input()))\nlst.sort()\nlst[-1] = lst[-1]/2\nprint(sum(lst))', 'N = int(input())\nlst = []\nfor i in range(N):\n lst.append(int(input()))\nlst.sort()\nlst[-1] = int(lst[-1]/2)\nprint(sum(lst))'] | ['Wrong Answer', 'Accepted'] | ['s475276956', 's433267510'] | [2940.0, 3060.0] | [17.0, 17.0] | [120, 125] |
p03207 | u559346857 | 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(a/2+p)', '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=int(input())\np=[int(input()) for i in range(n)]\nprint(sum(p)-max(p)//2)'] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s430802877', 's531140992', 's557285225', 's278120900'] | [3060.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0, 17.0] | [62, 73, 73, 73] |
p03207 | u565436116 | 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 i in range(N):\n pi = [int(input())]\n p = p + pi\n \nM = max(p)\n\nprint(sum(p)-M/2)', 'N = int(input())\np = []\nfor i in range(N):\n pi = [int(input())]\n p = p + pi\n \nM = max(p)\n\nprint(int(sum(p)-M/2))\n'] | ['Wrong Answer', 'Accepted'] | ['s111183380', 's234403189'] | [2940.0, 2940.0] | [17.0, 17.0] | [110, 116] |
p03207 | u569898420 | 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? | ['\nN = int(input())\n\npl = []\n\n\nfor i in range(N):\n\n pl.append(int(input()))\n\n\nmax = 0\n\nt = 0\n\nfor j in range(N):\n\n if max < pl[j]:\n max = pl[j]\n \n t = t + pl[j]\n\nprint(max)\n\nt = t + (max / 2) -max\n\nprint(int(t))\n', '\nN = int(input())\n\npl = []\n\n\nfor i in range(N):\n\n pl.append(int(input()))\n\n\nmax = 0\n\nt = 0\n\nfor j in range(N):\n\n if max < pl[j]:\n max = pl[j]\n \n t = t + pl[j]\n\n#print(max)\n\nt = t + (max / 2) - max\n\nprint(int(t))\n'] | ['Wrong Answer', 'Accepted'] | ['s418835169', 's835029535'] | [3060.0, 3060.0] | [17.0, 17.0] | [233, 235] |
p03207 | u571445182 | 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? | ['nN = int(input())\nnP = [ 0 for i in range(nN)]\n \nfor i in range(nN):\n nP[i] = int(input())\n \nnP.sort(reverse=True)\n \nnAns = 0\nfor i in range(nN):\n if i == 0:\n nAns += (nP[i]//2)\n else:\n nAns += nP[i]\n \nprint((%d) %(nAns))\n', 'nN = int(input())\nnP = [ 0 for i in range(nN)]\n \nfor i in range(nN):\n nP[i] = int(input())\n\nnP.sort(reverse=True)\n \nnAns = 0\nfor i in range(nN):\n if i == 0:\n nAns += (nP[i]//2)\n else:\n nAns += nP[i]\n\nprint((%d) %(nAns))\n', '\nnN = int(input())\nnP = [ 0 for i in range(nN)]\n\nfor i in range(nN):\n nP[i] = int(input())\n\nnP.sort(reverse=True)\n\nnAns = 0\nfor i in range(nN):\n if i == 0:\n nAns += (nP[i]/2)\n else:\n nAns += nP[i]\n\nprint(nAns)\n', "nN = int(input())\nnP = [ 0 for i in range(nN)]\n \nfor i in range(nN):\n nP[i] = int(input())\n\nnP.sort(reverse=True)\n \nnAns = 0\nfor i in range(nN):\n if i == 0:\n nAns += (nP[i]//2)\n else:\n nAns += nP[i]\n\nprint('%d' %(nAns))\n"] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s419299586', 's945629346', 's967050085', 's411054996'] | [2940.0, 2940.0, 3060.0, 3060.0] | [17.0, 17.0, 17.0, 17.0] | [231, 229, 219, 229] |
p03207 | u574226814 | 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? | ['banig = []\nfor x in range(int(input())):\n banig.append(int(input()))\n\nsum = 0\nbig = max(banig)\nbanig.remove(big)\nsummation = 0\nfor e in banig:\n summation += e\nprint(summation + big/2)', 'banig = []\nfor x in range(int(input())):\n banig.append(int(input()))\n\nsum = 0\nbig = max(banig)\nbanig.remove(big)\nsummation = 0\nfor e in banig:\n summation += e\nprint(summation + int(big/2))'] | ['Wrong Answer', 'Accepted'] | ['s490854501', 's074188222'] | [2940.0, 3060.0] | [17.0, 17.0] | [185, 190] |
p03207 | u575653048 | 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 = 0\nc = 0\nfor i in range(int(input())):\n b = int(input())\n if b > a:\n a = b\n c += a\n else:\n c += b\nc += (a/2)\nprint (c)', 'a = 0\nc = 0\nfor i in range(int(input())):\n b = int(input())\n if b > a:\n a = b\n c += a\n else:\n c += b\nc += (a/2)\nprint (round(c))', 'a = 0\nc = 0\nfor i in range(int(input())):\n\tb = int(input())\n\tif b > a:\n a = b\n c += a\n else:\n c += b\nc += (a/2)\nprint (round(c))\n', 'a = 0\nc = 0\nfor i in range(int(input())):\n b = int(input())\n if b > a:\n c += a\n a = b\n else:\n c += b\nc += (a/2)\nprint (round(c))'] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s219661252', 's257049953', 's847829719', 's951073285'] | [2940.0, 2940.0, 2940.0, 3060.0] | [18.0, 18.0, 18.0, 18.0] | [151, 158, 153, 158] |
p03207 | u581040514 | 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\nanswer = 0\nbig = 0\n\nfor i in range(N):\n\ta = int(input())\n\tanswer += a\n\tif big < a:\n\t\tbig = a\n\nprint(int(answer-(big/2))', 'N = int(input())\n\nanswer = 0\nbig = 0\n\nfor i in range(N):\n\ta = int(input())\n\tanswer += a\n\tif big < a:\n\t\tbig = a\n\nprint(int(answer-(big/2)))'] | ['Runtime Error', 'Accepted'] | ['s697071587', 's715619615'] | [2940.0, 2940.0] | [17.0, 17.0] | [137, 138] |
p03207 | u581187895 | 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 numpy as np\nn = int(input())\narr = [int(input()) for _ in range(n)]\narg_m = np.argmax(arr)\ntotal = (arr[arg_m]//2) + sum(arr[arg_m+1:])\nprint(total)\n', 'N = int(input())\nA = sorted([int(input()) for _ in range(N)])\nans = A[-1]//2 + sum(A[:-1])\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s654469902', 's776585803'] | [12500.0, 2940.0] | [151.0, 18.0] | [156, 101] |
p03207 | u589431621 | 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 i in range(N):\n p = p + [int(input())]\n\np_sorted = sorted(p)\np[N-1] = round(p[N-1]/2)\nprint(sum(p))', 'N = int(input())\np = [int(input()) for i in range(N)]\nprint(sum(p) - max(p)//2)'] | ['Wrong Answer', 'Accepted'] | ['s615211221', 's961968116'] | [2940.0, 2940.0] | [17.0, 18.0] | [130, 79] |
p03207 | u589969467 | 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 i in range(n):\n p.append(int(input()))\nprint(p)\nprint(sum(p)-max(p)//2)', 'n = int(input())\np = []\nfor i in range(n):\n p.append(int(input()))\n#print(p)\nprint(sum(p)-max(p)//2)'] | ['Wrong Answer', 'Accepted'] | ['s477123572', 's620562064'] | [9112.0, 9092.0] | [29.0, 29.0] | [102, 103] |
p03207 | u596297663 | 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 = 0\nsum = 0\n\n#print ("START")\nfor i in range(n):\n\tdata = (input()\n#\tprint("aaa")\n\tdata = int(data)\n#\tprint(data)\n\tif max < data:\n\t\tmax = data\n\tsum = sum + data\nprint(sum - max//2)', 'n = int(input())\n\nmax = 0\nsum = 0\nfor i in range(n)\n\tdata = int(input())\n \tif max < data:\n \tmax = data\n sum = sum + data\n \nprint(sum - max//2)\n ', 'n = int(input())\n \nmax = 0\nsum = 0\nfor i in range(n):\n\tdata = int(input())\n \tif max < data:\n \tmax = data\n sum = sum + data\n \nprint(sum - max//2)', 'n = int(input())\nmax = 0\nsum = 0\n\n#print ("START")\nfor i in range(n):\n\tdata = input()\n#\tprint("aaa")\n\tdata = int(data)\n#\tprint(data)\n\tif max < data:\n\t\tmax = data\n\tsum = sum + data\nprint(sum - max//2)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s681840058', 's848825466', 's971606339', 's428149446'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [200, 153, 152, 199] |
p03207 | u596536048 | 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? | ['total_item = int(input())\nitem_cost = []\nfor i in range(total_item):\n item_cost.append(int(input()))\nprint(sum(item_cost) - max(item_cost) // 2)v', 'p = [int(input()) for i in range(int(input()))]\nprint(sum(p) - max(p) // 2)'] | ['Runtime Error', 'Accepted'] | ['s789574038', 's748415358'] | [8964.0, 9056.0] | [23.0, 28.0] | [148, 75] |
p03207 | u597017430 | 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 i in range(N):\n P.append(int(input())\nprint(sum(P) - max(P) / 2)', 'N = int(input())\nP = []\nfor i in range(N):\n P.append(int(input()))\nprint(sum(P) - max(P) // 2)'] | ['Runtime Error', 'Accepted'] | ['s512008081', 's009363980'] | [2940.0, 2940.0] | [17.0, 17.0] | [93, 95] |
p03207 | u599669731 | 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)]\nprint(sum(a)-max(a)/2)', 'n=int(input())\na=[int(input()) for i in range(n)]\nprint(sum(a)-max(a)//2)'] | ['Wrong Answer', 'Accepted'] | ['s462027837', 's405833545'] | [2940.0, 2940.0] | [17.0, 17.0] | [72, 73] |
p03207 | u600261652 | 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 = [int(input()) for i in range(N)]\nprint(sum(list)-(max(N)/2))', 'N = int(input())\nlist = [int(input()) for i in range(N)]\nprint(sum(list)-(max(N)//2))', 'N = int(input())\nlist = [int(input()) for i in range(N)]\nprint(sum(list)-(max(list)/2))', 'N = int(input())\nlist = [int(input()) for i in range(N)]\nprint(sum(list)-(list[-1]/2))', 'N = int(input())\nlist = [int(input()) for i in range(N)]\nprint(sum(list)-(max(list)//2))'] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s182387550', 's400050915', 's521779224', 's833187313', 's103514567'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0, 17.0, 20.0] | [84, 85, 87, 86, 88] |
p03207 | u601235270 | 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 i in range(n):\n a =int(input())\n p.append(a)\np.sort()\nnew_p =p[n-1]/2\nans =sum(p[:n-1])+new_p\nprint(new_p)\nprint(int(ans))', 'n =int(input())\np =[]\nfor i in range(n):\n a =int(input())\n p.append(a)\np.sort()\nnew_p =p[n-1]/2\nans =sum(p[:n-1])+new_p\nprint(int(ans))'] | ['Wrong Answer', 'Accepted'] | ['s787473014', 's793943763'] | [3064.0, 3060.0] | [18.0, 19.0] | [154, 141] |
p03207 | u601344838 | 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\nmins=999999999999\nfor i in range(n):\n t=int(input())\n sum+=t\n mins=min(mins,t)\nprint(sum-mins//2)', 'n=int(input())\nsum=0\nmaxs=0\nfor i in range(n):\n t=int(input())\n sum+=t\n maxs=max(maxs,t)\nprint(sum-maxs//2)'] | ['Wrong Answer', 'Accepted'] | ['s594288567', 's118058587'] | [2940.0, 2940.0] | [17.0, 17.0] | [127, 116] |
p03207 | u608108825 | 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 range(n):\n l.append(int(input()))\nprint(sum(l)-max(l)/2)', 'n = int(input())\nl = [int(input()) for _ in range(n)]\nprint(sum(l)-max(l)//2)'] | ['Wrong Answer', 'Accepted'] | ['s909666428', 's639727295'] | [2940.0, 2940.0] | [17.0, 17.0] | [92, 77] |
p03207 | u609738635 | 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(p) for p in input().split()]\nP.sort(reverse=True)\nprint(int(sum(P)-(P[0]/2)))', 'N = int(input())\nP = [int(input()) for p in range(N)]\nP.sort(reverse=True)\nprint(int(sum(P)-(P[0]/2)))'] | ['Wrong Answer', 'Accepted'] | ['s304966740', 's326291154'] | [2940.0, 2940.0] | [19.0, 18.0] | [103, 102] |
p03207 | u609814378 | 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 = []\n\nfor i in raneg(N):\n P = int(input())\n p.append(P)\n\n\nnew_p = sorted(p, reverse=True)\n\np_max = (new_p[0]/2)\n\nNEW_p = (new_p[1:len(new_p)])\n\nNEWP_SUM = sum(NEW_p)\n\nprint(int((p_max) + (NEWP_SUM)))', 'N = int(input())\n\np = []\n\nfor i in raneg(N):\n p.append(int(input()))\n\n\nnew_p = sorted(p, reverse=True)\n\np_max = (new_p[0]/2)\n\nNEW_p = (new_p[1:len(new_p)])\n\nNEWP_SUM = sum(NEW_p)\n\nprint(int((p_max) + (NEWP_SUM)))', 'import sys\ninput = sys.stdin.readline\nimport numpy as np\n\n\nN = int(input())\n\np = []\n\nfor _ in raneg(N):\n p.append(int(input()))\n\n\nnew_p = sorted(p, reverse=True)\n\nnew_p[0] = new_p[0]//2\n\nprint(sum(new_p))', 'N = int(input())\n\np = []\n\nfor _ in raneg(N):\n p.append(int(input()))\n\n\nnew_p = sorted(p, reverse=True)\n\np_max = (new_p[0]/2)\n\nNEW_p = (new_p[1:len(new_p)])\n\nNEWP_SUM = sum(NEW_p)\n\nprint(int((p_max) + (NEWP_SUM)))', 'N = int(input())\n\np = []\n\nfor _ in raneg(N):\n p.append(int(input()))\n\n\nnew_p = sorted(p, reverse=True)\n\nnew_p[0] = new_p[0]//2\n\nprint(sum(new_p))\n', 'N = int(input())\np = []\nfor _ in range(N):\n p.append(int(input()))\np = sorted(p)\np[-1] = p[-1]//2\nprint(sum(p))'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s117838156', 's423159549', 's501615900', 's638816763', 's867773196', 's034775037'] | [3064.0, 3064.0, 12508.0, 3064.0, 2940.0, 3060.0] | [17.0, 18.0, 150.0, 17.0, 17.0, 17.0] | [225, 215, 207, 215, 149, 114] |
p03207 | u610780824 | 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 = [0]*10\ni = 0\nfor i in range(N):\n x = int(input())\n p_list[i] = x\n x = 0\n\n\nprint(p_list)\np_list.sort()\nprint(p_list)\nkari = sum(p_list)\nprint(int(kari - (p_list[-1]/2)))\n', 'N = int(input())\np_list = [0]*10\ni = 0\nfor i in range(N):\n x = int(input())\n p_list[i] = x\n x = 0\n\np_list.sort()\nkari = sum(p_list)\nprint(int(kari - (p_list[-1]/2)))\n'] | ['Wrong Answer', 'Accepted'] | ['s123019307', 's969421778'] | [3060.0, 2940.0] | [17.0, 19.0] | [204, 175] |
p03207 | u611090896 | 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(sorted(p)[-1]//2 + sum(sorted(p)[:N-1]))', 'N = int(input())\np = [int(input()) for i in N]\nprint(sorted(p)[-1]//2 + sum(sorted(p)[:N-1]))', 'n = int(input())\np = [int(input()) for i in range(n)]\nprint(sum(p)-max(p)//2)'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s262683950', 's661548297', 's896418060'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [98, 93, 77] |
p03207 | u612721349 | 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())\nal = [int(input()) for _ in range(n)]\nm = max(al)\ns, f = 0, True\nfor i in range(n):\n if al[i] == m and flag:\n s += al[i] // 2\n f = False\n else:\n s += al[i]\nprint(s)\n', 'al = [int(input()) for _ in range(int(input()))]\nprint(sum(al) - max(al) // 2)\n'] | ['Runtime Error', 'Accepted'] | ['s895536349', 's280030174'] | [2940.0, 2940.0] | [17.0, 18.0] | [193, 79] |
p03207 | u620846115 | 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())\nk = [int(input()) for i in range(n)]\nprint(int((sum(k)-max(k)//2))', 'n=int(input())\nk = [int(input()) for i in range(n)]\nprint(sum(k)-max(k)//2)'] | ['Runtime Error', 'Accepted'] | ['s828114015', 's459217684'] | [8968.0, 8984.0] | [26.0, 23.0] | [81, 75] |
p03207 | u628583308 | 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 = input()\n\np = []\nmax_val = -1\nfor i in range(N):\n p_i = input()\n p.append(p_i)\n max_val = max(max_val, p_i)\n\ns = 0\nflag = 0\nfor p_i in p:\n if p_i == max_val and flag==0:\n s += p_i * 0.5\n flag = 1\n else:\n s += p_i\nprint(int(s))\n \n', '#coding:utf-8\n\nN = input()\n\np = []\nmax_val = -1\nfor i in range(N):\n p_i = input()\n p.append(p_i)\n max_val = max(max_val, p_i)\n\nsum = 0\nflag = 0\nfor p_i in p:\n if p_i == max_val and flag==0:\n sum += p_i * 0.5\n flag = 1\n else:\n sum += p_i\nprint(int(sum))\n \n', '#coding:utf-8\n\nN = int(input())\np = []\nmax_val = -1\nfor i in range(N):\n p_i = int(input())\n p.append(p_i)\n max_val = max(max_val, p_i)\n\ns = 0\nflag = 0\nfor p_i in p:\n if p_i == max_val and flag==0:\n s += p_i * 0.5\n flag = 1\n else:\n s += p_i\nprint(int(s))\n \n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s022712001', 's884708059', 's025934253'] | [3060.0, 3060.0, 3060.0] | [17.0, 17.0, 17.0] | [290, 298, 299] |
p03207 | u629540524 | 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)'] | ['Wrong Answer', 'Accepted'] | ['s890039588', 's663183970'] | [2940.0, 2940.0] | [17.0, 17.0] | [80, 81] |
p03207 | u633548583 | 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)]\nq=max(p)\nprint(sum(p)-q+q/2)\n', 'n=int(input())\np=[int(input()) for i in range(n)]\nq=max(p)\nprint(int(sum(p))-int(q)/2)\n', 'n=int(input())\np=[map(int,input() for i in range(n))]\nq=max(p)\nprint(sum(p)-q/2)\n', 'n=int(input())\np=[int(input()) for i in range(n)]\nq=max(p)\nprint(int(sum(p))-max(p)/2)\n', 'n=int(input())\np=[int(input()) for i in range(n)]\nq=max(p)\nprint(sum(p)-max(p)/2)', 'n=int(input())\np=[int(input()) for i in range(n)]\nq=max(p)\nprint(int(sum(p))-int(max(p)/2))\n'] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s375649019', 's506036729', 's552871120', 's619471018', 's997995246', 's471447564'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [79, 87, 81, 87, 81, 92] |
p03207 | u633763428 | 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())\nnum = 1\nlist = []\n\nwhile num <= n:\n list.append(int(input()))\n num += 1\n\nm = max(list)\nl_replace = [int(m / 2) if i == m else i for i in list]\n\n\nprint(l_replace)\nprint(int(sum(l_replace)))', 'n = int(input())\nnum = 1\nlist = []\n\nwhile num <= n:\n list.append(int(input()))\n num += 1\n\nm = max(list)\nnum2 = 0\naa = True\nfor i in list:\n if i == m and aa:\n list[num2] = int(m / 2)\n num2 += 1\n aa = False\n else:\n i\n num2 += 1\n\nprint(sum(list))'] | ['Wrong Answer', 'Accepted'] | ['s728475210', 's075883976'] | [3060.0, 3064.0] | [17.0, 17.0] | [211, 288] |
p03207 | u634079249 | 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\nimport os\n\n\ndef main():\n if os.getenv("LOCAL"):\n sys.stdin = open("input.txt", "r")\n\n N = int(sys.stdin.readline().rstrip())\n P = [int(sys.stdin.readline().rstrip()) for i in range(N)]\n\n print(sum(P) - max(P) / 2)\n\n\nif __name__ == \'__main__\':\n main()\n', 'import sys\n\nsys.setrecursionlimit(10000000)\nimport os\nimport math\nimport bisect\nimport collections\nimport itertools\nimport heapq\nimport re\nimport queue\n\n# import fractions\n\nii = lambda: int(sys.stdin.buffer.readline().rstrip())\nil = lambda: list(map(int, sys.stdin.buffer.readline().split()))\nfl = lambda: list(map(float, sys.stdin.buffer.readline().split()))\niln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)]\n\niss = lambda: sys.stdin.buffer.readline().decode().rstrip()\nsl = lambda: list(map(str, sys.stdin.buffer.readline().decode().split()))\nisn = lambda n: [sys.stdin.buffer.readline().decode().rstrip() for _ in range(n)]\n\nlcm = lambda x, y: (x * y) // math.gcd(x, y)\n# lcm = lambda x, y: (x * y) // fractions.gcd(x, y)\n\nMOD = 10 ** 9 + 7\nMAX = float(\'inf\')\n\n\ndef main():\n if os.getenv("LOCAL"):\n sys.stdin = open("input.txt", "r")\n\n N = ii()\n P = [ii() for _ in range(N)]\n mx = max(P)\n P.remove(mx)\n P.append(mx // 2)\n print(sum(P))\n\n\nif __name__ == \'__main__\':\n main()\n'] | ['Wrong Answer', 'Accepted'] | ['s203872112', 's042583590'] | [2940.0, 3932.0] | [17.0, 28.0] | [284, 1035] |
p03207 | u642418876 | 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 _ in range(n)]\np.sort()\ns=0\nfor i in range(n-1):\n s+=p[i]\nans=s+(p[n-1]//2)\nprint(ans)\n', 'N=int(input())\np=list(map(int,input().split()))\nhalf=max(p)\nsum=0\ni=0\nfor i in range(N):\n sum+=p[i]\n i+=1\nall=sum-half\nprint(half//2+all)\n', 'n=int(input())\np=[int(input()) for _ in range(n)]\np.sort()\ns=0\nfor i in range(n-1):\n s+=p[i]\nans=s+(p[n-1]//2)\nprint(ans)\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s570831350', 's722920317', 's265890262'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [118, 140, 123] |
p03207 | u649126012 | 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# Christmas Eve Eve\n\nN = int(input().strip())\ni = 0\np = []\nwhile i < N:\n pi = int(input().strip())\n p.append(pi)\n i += 1\np = sorted(p)\np[-1] = p[-1]/2\nprint(int(sum(p))', '#!/usr/bin/env python3\n# Christmas Eve Eve\n\nN = int(input().strip())\ni = 0\np = []\nwhile i < N:\n pi = int(input().strip())\n p.append(pi)\n i += 1\np = sorted(p)\np[-1] = p[-1]/2\nprint(int(sum(p)))'] | ['Runtime Error', 'Accepted'] | ['s950125135', 's156541140'] | [2940.0, 3060.0] | [18.0, 17.0] | [194, 195] |
p03207 | u652656291 | 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 = []\nfor i in range(n):\n s.append(int(input())\nm = max(s)\nprint(sum(s)-m)\n', 'n = int(input())\ns = []\nfor i in range(n):\n s.append(int(input())\nm = max(s)\nprint(sum(s)-m//2)\n', 'n = int(input())\ns = []\nfor i in range(n):\n s.append(int(input())\nm = max(s)\nprint(sum(s)-m//2)\n', 'n = int(input())\ns = list()\n[a = int(input()) for i in range(n):]\n s.add(a)\nm = max(s)\nprint(sum(s)-m)', 'n = int(input())\np = [int(input()) for i in range(n)]\nprint(sum(p) - max(p) // 2)\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s112750325', 's321838561', 's563751006', 's634664270', 's070742841'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 18.0, 17.0] | [94, 97, 97, 103, 82] |
p03207 | u653363401 | 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=[]*n\nkei=0\nfor i in range(0,n,1):\n a[i]=int(input())\n kei=kei+a[i]\n\na.sort(reverse=True)\nkei=kei-a[0]/2\nprint("%d",kei)', 'n=int(input())\na=[n]\nfor i in range(0,n,1):\n a[i]=int(input())\n kei=kei+a[i]\n\na.sort(reverse=True)\nkei=kei-a[0]/2\nprint("%d",kei)', 'n=int(input())\na=[0]*n\nkei=0\nfor i in range(0,n,1):\n a[i]=int(input())\n kei=kei+a[i]\n\na.sort(reverse=True)\nkei=kei-a[0]//2\nprint(kei)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s174627509', 's433246653', 's964228578'] | [3060.0, 3060.0, 3060.0] | [18.0, 17.0, 18.0] | [142, 135, 139] |
p03207 | u657901243 | 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#include <cstdio>\n#include <cmath>\n\n#include <list>\n#include <set>\n#include <map>\n#include <stack>\n\n#include <string>\n#include <cstring>\n#include <utility>\n#include <algorithm>\n#include <functional>\n#include <deque>\n#include <cctype>\n#include <ctime>\n#include <cstdlib>\n#include <iomanip>\nusing namespace std;\n\nint main(){\n int n;\n cin >> n;\n int a[n];\n for(int i = 0; i < n; ++i){\n int p;\n cin >>p;\n a[i] = p;\n }\n int sum = 0;\n int yasui = 100000;\n for(int i = 0; i < n; ++i){\n sum += a[i];\n if(yasui > a[i]) yasui = a[i];\n }\n cout << sum - yasui/2 << endl;\n}\n', 'N = int(input())\np = [int(input()) for x in range(N)]\nprint(int(sum(p)-max(p)/2))'] | ['Runtime Error', 'Accepted'] | ['s292897607', 's246853536'] | [2940.0, 2940.0] | [17.0, 17.0] | [679, 81] |
p03207 | u662121130 | 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\nmax = -1\nwhile N:\n price = int(input())\n sum += price\n if price > max:\n max = price\n N = N - 1\nprint(sum-max/2)\n', 'N = int(input())\nsum = 0\nmax = -1\nfor i in range(N):\n price = int(input())\n sum += price\n if price > max:\n max = price\nprint(sum-max/2)\n', 'N = int(input())\nsum = 0\nmax = -1\nfor i in range(N):\n price = int(input())\n sum += price\n if price > max:\n max = price\nprint(int(sum-max/2))\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s743316278', 's967802885', 's175508923'] | [2940.0, 2940.0, 2940.0] | [18.0, 18.0, 17.0] | [156, 152, 157] |
p03207 | u662482238 | 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? | ['pr = int(input())\nli =[]\n\nfor i in range(pr):\n li.append(int(input))\n\ndisc = max(li)\n\nprint(sum(li) - disc)', 'pr = int(input())\nli =[]\n\nfor i in range(pr):\n li.append(int(input()))\n\ndisc = max(li) // 2\n\nprint(sum(li) - disc)'] | ['Runtime Error', 'Accepted'] | ['s253855748', 's323761175'] | [2940.0, 2940.0] | [18.0, 19.0] | [110, 117] |
p03207 | u665038048 | 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]*N\nfor i in range(N):\n p[i] = int(input())\np.sort()\nprint(-p[-1] / 2 + sum(p))', 'N = int(input())\np = [0]*N\nfor i in range(N):\n p[i] = int(input())\np.sort()\nprint(int(-p[-1] / 2 + sum(p)))'] | ['Wrong Answer', 'Accepted'] | ['s235965487', 's574115497'] | [3188.0, 2940.0] | [20.0, 17.0] | [105, 110] |
p03207 | u668503853 | 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(N) - max(N)//2)', 'N=int(input())\nP=[int(input()) for i in range (N)]\nprint(sum(P) - max(P)//2)'] | ['Runtime Error', 'Accepted'] | ['s395175638', 's115435867'] | [2940.0, 2940.0] | [18.0, 18.0] | [76, 76] |
p03207 | u668705838 | 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)])\nprint(p[:-1] + p[-1]//2)', 'n = int(input())\np = sorted([int(input()) for _ in range(n)])\nprint(sum(p[:-1]) + p[-1]//2)'] | ['Runtime Error', 'Accepted'] | ['s212135024', 's708219161'] | [2940.0, 2940.0] | [17.0, 18.0] | [86, 91] |
p03207 | u670567845 | 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]*N\nfor i in range(N):\n p[i] = int(inout())\n\nans = sum(p)-0.5*max(p)\nprint(ans)', 'N = int(input())\np = [0]*N\nfor i in range(N):\n p[i] = int(input())\n\nans = sum(p)-0.5*max(p)\nprint(int(ans))'] | ['Runtime Error', 'Accepted'] | ['s320736118', 's516485012'] | [2940.0, 2940.0] | [17.0, 18.0] | [105, 110] |
p03207 | u677705680 | 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 = []\nfor n in range(N):\n p.append(n)\n\np_max = max(p)\np_sum = sum(p) - p_max\np_max *= 0.5\n\nprint(p_sum + p_max)', 'N = int(input())\n\np = []\nfor n in range(N):\n p.append(int(input()))\n\np_max = max(p)\np_sum = sum(p) - p_max\np_max *= 0.5\n\nprint(int(p_sum + p_max))'] | ['Wrong Answer', 'Accepted'] | ['s041079770', 's676920736'] | [3060.0, 3060.0] | [21.0, 17.0] | [133, 149] |
p03207 | u682721153 | 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())\nk = []\nfor i in range(n):\n a = int(input())\n k.append(a)\nb = max(k)/2\nk.remove(max(k))\nk.append(b)\nprint(sum(k))\n ', 'n = int(input())\nk = []\nfor i in range(n):\n a = int(input())\n k.append(a)\nb = max(k)/2\nk.remove(max(k))\nk.append(b)\nprint(int(sum(k)))\n '] | ['Wrong Answer', 'Accepted'] | ['s953001192', 's339021506'] | [2940.0, 2940.0] | [18.0, 17.0] | [134, 139] |
p03207 | u686036872 | 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(i)\nprint(sum(list)-max(list)//2)\n', 'N = int(input())\nlist=[]\nfor i in range(N):\n list.append(i)\nprint(int(sum(list))-max(list)//2)', 'l=[int(input()) for _ in range(int(input()))]\nprint(sum(l)-max(l)/2)', 'N=int(input())\nn=[int(input()) for i in range(N)]\nprint(sum(n)-max(n)/2)', 'N = int(input())\nlist=[]\nfor i in range(N):\n list.append(int(input()))\nprint(sum(list)-max(list)//2)'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s480997885', 's540837641', 's560337929', 's690994891', 's400290463'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 18.0] | [93, 97, 68, 72, 103] |
p03207 | u694294905 | 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=[int(input()) for i in range(N)]\ns=sorted(p_list)\nprint(sum(s[:N-1])+s[N-1])', 'N=int(input())\np_list=[int(input()) for i in range(N)]\ns=sorted(p_list)\nprint(sum(s[:N-1])+s[N-1]//2)'] | ['Wrong Answer', 'Accepted'] | ['s438853462', 's045003344'] | [2940.0, 2940.0] | [17.0, 17.0] | [98, 101] |
p03207 | u695857481 | 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())\ngifts = []\nprice = 0\n\nfor i in range(N):\n gifts.append(int(input()))\n \nprice = sum(gifts) - max(gifts) / 2\nprint(price)\n', 'N = int(input())\ngifts = []\n\nfor i in range(N):\n gifts.append(int(input()))\n \nprice = sum(gifts) - max(gifts) // 2\nprint(price)\n'] | ['Wrong Answer', 'Accepted'] | ['s435000774', 's741680249'] | [2940.0, 2940.0] | [18.0, 17.0] | [139, 130] |
p03207 | u704001626 | 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 -*-\na = int(input())\nc = [int(input()) for i in range(a)]\nmin_c = min(c)\nprint(int(sum(c)-min_c/2))\n', '# -*- coding: utf-8 -*-\na = int(input())\nc = [int(input()) for i in range(a)]\nmax_c = max(c)\nprint(int(sum(c)-max_c/2))\n'] | ['Wrong Answer', 'Accepted'] | ['s609415627', 's557000331'] | [2940.0, 3060.0] | [18.0, 18.0] | [120, 120] |
p03207 | u705418271 | 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 p=int(input())\n a.append(p)\n\na.sort()\ns=p[n-1]//2\nprint(sum(a)-s)', 'n=int(input())\na=[]\nfor i in range(n):\n p=int(input())\n a.append(p)\n\na.sort()\ns=a[n-1]//2\nprint(sum(a)-s)'] | ['Runtime Error', 'Accepted'] | ['s387998607', 's290487857'] | [9164.0, 9052.0] | [22.0, 31.0] | [107, 107] |
p03207 | u706929073 | 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 = []\nfor i in range(int(input())):\n p.append(int(input()))\n\np.sort().reverse()\ntotal = int(p[0] * 0.5)\nfor i in range(1, len(p)):\n total += p[i]\nprint(total)', 'n = int(input())\np = [int(input()) for _ in range(n)]\np.sort(reverse=True)\nsum = int(p[0] / 2)\nfor i in range(1, len(p)):\n\tsum += p[i]\nprint(sum)'] | ['Runtime Error', 'Accepted'] | ['s690229444', 's327129876'] | [2940.0, 2940.0] | [17.0, 18.0] | [165, 145] |
p03207 | u709630872 | 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 i in range(N):\n _p = int(input())\n p.append(_p)\nbiggest = 0\nj = 0\nfor i in range(N):\n if(p[i]>biggest):\n j = i\n biggest=p[i]\np[j] = p[j] / 2\nprint(sum(p))', 'N = int(input())\np = []\nfor i in range(N):\n _p = int(input())\n p.append(_p)\nbiggest = 0\nj = 0\nfor i in range(N):\n if(p[i]>=biggest):\n j = i\n biggest=p[i]\np[j] = p[j] / 2\nprint(int(sum(p)))'] | ['Wrong Answer', 'Accepted'] | ['s215004074', 's498382895'] | [3064.0, 3060.0] | [18.0, 18.0] | [205, 211] |
p03207 | u711295009 | 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\nmax =0\nindex=0\nwhile index < n:\n p = int(input())\n sum+=p\n if p > max:\n max = p\n else:\n pass\n index+=1\nprint(max) \nprint(sum - max//2)', 'n = int(input())\nsum =0\nmax =0\nindex=0\nwhile index < n:\n p = int(input())\n sum+=p\n if p > max:\n max = p\n else:\n pass\n index+=1\n \nprint(sum - max//2)'] | ['Wrong Answer', 'Accepted'] | ['s932378789', 's400643101'] | [3060.0, 2940.0] | [19.0, 18.0] | [190, 178] |
p03207 | u722535636 | 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(imput())\nl=[int(input()) for i in range(n)]\nprint(sum(l)-max(l)//2)', 'n=int(input())\nl=[int(input()) for i in range(n)]\nprint(sum(l)-max(l)//2)'] | ['Runtime Error', 'Accepted'] | ['s770236676', 's719296952'] | [2940.0, 2940.0] | [18.0, 17.0] | [73, 73] |
p03207 | u729119068 | 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()))]\nprint(sum(p)-max(p)//2)\n', 'P=[int(input()) for i in range(int(input()))]\nprint(sum(P)-max(P)//2)'] | ['Runtime Error', 'Accepted'] | ['s307311684', 's724460146'] | [9144.0, 9160.0] | [24.0, 27.0] | [70, 69] |
p03207 | u731665172 | 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()\nproducts=[int(input()) for i in range(N)]\nprint(sum(products)-max(products)//2)', 'N=int(input())\nproducts=[int(input()) for i in range(N)]\nprint(sum(products)-max(products)//2)'] | ['Runtime Error', 'Accepted'] | ['s146425715', 's132864941'] | [2940.0, 2940.0] | [18.0, 18.0] | [89, 94] |
p03207 | u732870425 | 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\nprice = sum(p) - max(p) / 2\nprint(int(price)', 'n = int(input())\np = [int(input()) for i in range(n)]\n\nprice = sum(p) - max(p) / 2\nprint(int(price))'] | ['Runtime Error', 'Accepted'] | ['s359277197', 's019405237'] | [2940.0, 2940.0] | [18.0, 18.0] | [99, 100] |
p03207 | u733608212 | 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())\nli = [int(input()) for _ in range(n)]\n\nprint(sum(li) - min(li) // 2)', 'n = int(input())\nli = [int(input()) for _ in range(n)]\nprint(sum(li) - max(li) // 2)'] | ['Wrong Answer', 'Accepted'] | ['s936172893', 's260265759'] | [2940.0, 2940.0] | [18.0, 17.0] | [85, 84] |
p03207 | u745554846 | 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 = []\nfor i in range(a):\n b.append(int(input()))\n \nb.sort()\n \nb[-1] = b[-1] / 2\n \nprint(sum(b))', 'a = int(input())\nb = []\nfor i in range(a):\n b.append(int(input()))\n\nb.sort()\n\nb[-1::] == b[-1::] / 2\n\nprint(sum(b))', 'a = int(input())\nb = []\nfor i in range(a):\n b.append(int(input()))\n\nb.sort()\n\nb[-1] = b[-1] / 2\n\nprint(int(sum(b)))'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s191514781', 's530547371', 's785778946'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [114, 116, 118] |
p03207 | u757030836 | 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 = [int(i) for i in input().split()]\n\np.sort(reverse=True)\n\nmax = p[0]\nels = p[1:]\n\nprint(sum(els) + (max/2))', 'n = int(input())\n\np=[]\n\nfor i in range(n):\n p.append(int(input()))\n\n\np.sort(reverse=True)\n\nmax = p[0]\nels = p[1:]\n\n\nprint(sum(els) + int((max/2)))\n\n'] | ['Wrong Answer', 'Accepted'] | ['s977224336', 's767156067'] | [2940.0, 2940.0] | [17.0, 18.0] | [128, 149] |
p03207 | u763963344 | 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()))\np1=int(max(p)//2)\n\nprint(sum(p)-max(p)+p1)', 'n = int(input())\np=list(map(int,input().split()))\np1=int(max(p)/2)\n\nprint(sum(p)-max(p)+p1)', 'n = int(input())\np=list(int(input()) for i in range(n))\n\n\nprint(sum(p)-max(p)//2)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s325586549', 's934854210', 's490071408'] | [9124.0, 9132.0, 8976.0] | [27.0, 27.0, 26.0] | [92, 91, 81] |
p03207 | u764956288 | 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\nprices = [int(input()) for _ in range(N)]\n\nmax_price = max(prices)\n\nans = sum(prices) - max_price/2\n\nprint(ans)', 'N = int(input())\n \nprices = [int(input()) for _ in range(N)]\n \nmax_price = max(prices)\n \nans = int(sum(prices) - max_price/2)\n \nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s008445559', 's323158302'] | [2940.0, 2940.0] | [18.0, 18.0] | [129, 138] |
p03207 | u767438459 | 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())\ni = 0\ngoods = []\nwhile i < N:\n goods.append(int(input()))\n i += 1\nprint(sum(goods))\nprint(max(goods))\nprint(max(goods) // 2)\nans = sum(goods) - max(goods) + (max(goods) // 2)\nprint(ans)', 'N = int(input())\ni = 0\ngoods = []\nwhile i < N:\n goods.append(int(input()))\n i += 1\n\nans = sum(goods) - max(goods) + (max(goods) // 2)\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s326776047', 's416813525'] | [9156.0, 9172.0] | [26.0, 29.0] | [208, 150] |
p03207 | u767664985 | 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 N]\nprint(sum(p) - max(p) // 2)\n', 'N = int(input())\np = [int(input()) for _ in range(N)]\nprint(sum(p) - max(p) // 2)\n'] | ['Runtime Error', 'Accepted'] | ['s805819022', 's313189182'] | [2940.0, 2940.0] | [17.0, 17.0] | [75, 82] |
p03207 | u771532493 | 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=[]\nfor i in range(N):\n price.append(int(input()))\nprice.sort(Reverse=True)\nprice[0]=price[0]//2\nsum(price)\n \n ', 'N=int(input())\nprice=[int(input()) for i in range(N)]\nprice.sort(reverse=True)\nprice[0]=price[0]//2\nsum(price)', 'N=int(input())\nprice=[]\nfor i in range(N):\n price.append(int(input()))\nprice.sort(reverse=True)\nprice[0]=price[0]//2\nsum(price)\n', 'N=int(input())\nprice=[]\nfor i in range(N):\n price.append(int(input()))\nprice.sort()\nprice[0]=price[0]//2\nsum(price)\n \n ', 'N=int(input())\nprice=[]\nfor i in range(N):\n price.append(int(input()))\nprice.sort(reverse=True)\nprice[0]=price[0]//2\nsum(price)\n', 'N=int(input())\nprice=[int(input() for i in range(N)]\nprice.sort()\nprice[0]=price[0]//2\nsum(price)', 'N=int(input())\nprice=[int(input()) for i in range(N)]\nprice.sort(reverse=True)\nprice[0]=price[0]//2\na=sum(price)\nprint(a)'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s107398278', 's216206333', 's276801024', 's602777774', 's664199947', 's744659258', 's738269913'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 18.0, 18.0, 18.0, 18.0, 17.0, 18.0] | [154, 110, 131, 142, 131, 97, 121] |
p03207 | u773246942 | 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)]\nMAX_PRICE = max(a)\n\nSUM = sum(a) - MAX_PRICE/2\n\nprint(SUM)', 'N = int(input())\na = [int(input()) for i in range(N)]\nMAX_PRICE = max(a)\n\nSUM = sum(a) - MAX_PRICE/2\n\nprint(int(SUM))\n'] | ['Wrong Answer', 'Accepted'] | ['s820477639', 's188123409'] | [2940.0, 2940.0] | [18.0, 17.0] | [112, 118] |
p03207 | u778700306 | 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(sorted(map(int,input().split())))\nres = sum(p[1:-1]) + p[-1]//2\nprint(res)\n', 'n = int(input())\np = sorted([int(input()) for _ in range(n)])\nres = sum(p[0:-1]) + p[-1]//2\nprint(res)\n'] | ['Wrong Answer', 'Accepted'] | ['s233925191', 's406956969'] | [2940.0, 2940.0] | [17.0, 17.0] | [101, 103] |
p03207 | u784341473 | 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,=map(int, open(0))\nprint(sum(a)-max(a)//2-4)', '_,*a=map(int,open(0))\nprint(sum(a)-max(a)//2)'] | ['Wrong Answer', 'Accepted'] | ['s874434109', 's491480264'] | [2940.0, 2940.0] | [17.0, 18.0] | [47, 45] |
p03207 | u785578220 | 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()) \nt = [int(input()) for i in range(n)] \nkk = max(t)\nprint(sum(t)-kk/2)', 'n = int(input()) \nt = [int(input()) for i in range(n)] \nkk = max(t)\nprint(int(sum(t)-kk/2))'] | ['Wrong Answer', 'Accepted'] | ['s389922308', 's594179703'] | [2940.0, 2940.0] | [18.0, 18.0] | [86, 91] |
p03207 | u787562674 | 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(i) for i in range(N)]\n\nprint(sum(A) - max(A) // 2)', 'N = int(input())\nA = [int(i) for i in rnage(N)]\n\nprint(sum(A) - max(A) // 2)', 'N = int(input())\n\nA = [int(input()) for _ in range(N)]\n\nprint(sum(A) - max(A) // 2)'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s445707941', 's813038196', 's317928141'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [76, 76, 83] |
p03207 | u790812284 | 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())\n\ndef func(n):\n if n%2==0:\n return n/2\n else:\n return 3*n+1\n\na=[]\na.append(s)\nfor i in range(1,1000000):\n p=func(a[i-1])\n if not p in a:\n a.append(p)\n else:\n print(i+1)\n break\n', 'N = int(input())\nk = [int(input()) for _ in range(N)]\np = int(sum(k) - max(k)/2)\nprint(p)'] | ['Wrong Answer', 'Accepted'] | ['s574064606', 's544358673'] | [2940.0, 2940.0] | [18.0, 17.0] | [240, 89] |
p03207 | u794910686 | 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,*n=map(int,open(0));print(sum(n)-max(n)/2)', 'a,*n=map(int,open(0));print(sum(n)-max(n)//2)'] | ['Wrong Answer', 'Accepted'] | ['s258404262', 's041206509'] | [2940.0, 2940.0] | [17.0, 17.0] | [44, 45] |
p03207 | u795323188 | 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())\nlists =[int(input()) for i in range(n)]\nsums = sum(lists)\nmaxs = max(lists)\nprint(sums-max//2)\n', 'n = int(input())\nlists =[int(input()) for i in range(n)]\nsums = sum(lists)\nmaxs = max(lists)\nprint(sums-maxs//2)\n'] | ['Runtime Error', 'Accepted'] | ['s704960223', 's700129571'] | [2940.0, 2940.0] | [17.0, 18.0] | [112, 113] |
p03207 | u797127558 | 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? | ['max = 0\ns = 0\nn = int(input())\nfor i in range(1, n + 1):\n p = int(input())\n if max < p:\n max = p\n s = s + max\nprint(s + max // 2)\n', 'max = 0\ns = 0\nn = int(input())\nfor i in range(1, n + 1):\n p = int(input())\n if max <= p:\n max = p\n s = s + p\nprint(s - max//2)\n'] | ['Wrong Answer', 'Accepted'] | ['s560120829', 's220685022'] | [9156.0, 9100.0] | [27.0, 29.0] | [150, 143] |
p03207 | u798316285 | 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_list=[int(input()) for i in range(n)]\nprint(sum(price_list)-min(price_list)//2)', 'n=int(input())\nprice_list=[int(input()) for i in range(n)]\nprint(sum(price_list)-max(price_list)//2)'] | ['Wrong Answer', 'Accepted'] | ['s468467205', 's911510955'] | [2940.0, 2940.0] | [17.0, 17.0] | [100, 100] |
p03207 | u800780376 | 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,K = map(int,input().split())\nh =[]\ndif = []\nfor n in range(0,N):\n h.append(int(input()))\n\nh.sort()\n\nm = 10**10\n\nfor i in range(0,N-K+1):\n m = min(m,abs(h[i] - h[i+K-1]))\n\nprint(m)\n\n', 'N = int(input())\npLs=[]\nfor n in range(0,N):\n pLs.append(int(input()))\n\npLs.sort(reverse = True)\n\nsm = 0\npLs[0] = int(pLs[0]/2)\nfor n in range(0,N):\n sm += pLs[n]\n\nprint(sm)\n'] | ['Runtime Error', 'Accepted'] | ['s176620374', 's347744352'] | [3060.0, 3060.0] | [17.0, 17.0] | [189, 180] |
p03207 | u801106491 | 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)]\nsumOfP=sum(P)-max(P)/2\nprint(sumOfP)', 'n=int(input())\nP=[int(input()) for i in range(n)]\nsumOfP=sum(P)-P/2\nprint(sumOfP)', 'n=int(input())\nP=[int(input()) for i in range(n)]\nsumOfP=int(sum(P)-max(P)/2)\nprint(sumOfP)'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s359640109', 's648002718', 's719518716'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [86, 81, 91] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.