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 |
|---|---|---|---|---|---|---|---|---|---|---|
p02724 | u621225737 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['X = input()\ncoin500, X = divmod(X, 500)\ncoin5, X = divmod(X, 5)\nprint(1000 * coin500 + 5 * coin5)', 'X = input()\ncoin500, X = divmod(X, 500)\ncoin5, X = divmod(X, 5)\nprint(1000 * coin500 + 5 * coin5)', 'X = int(input())\ncoin500, X = divmod(X, 500)\ncoin5, X = divmod(X, 5)\nprint(1000 * coin500 + 5 * coin5)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s168410843', 's208557977', 's971687980'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [97, 97, 102] |
p02724 | u621345513 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['x = input()\n\nprint(x//500*1000 + (x%500)//5*5)', 'x = int(input())\n \nprint(x//500*1000 + (x%500)//5*5)'] | ['Runtime Error', 'Accepted'] | ['s486376553', 's220883974'] | [2940.0, 2940.0] | [17.0, 17.0] | [46, 52] |
p02724 | u621509373 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['money = int(input())\n\n\nn_500 = int(money//500)\nn_5 = int((money - 500*n_500)//5)\n\nhappiness = 1000 * n_500 + n_5\nprint(happiness)', 'money = int(input())\n\n \nn_500 = int(money//500)\nn_5 = int((money - 500*n_500)//5)\n\nhappiness = 1000 * n_500 + 5 * n_5\nprint(happiness)'] | ['Wrong Answer', 'Accepted'] | ['s816994680', 's739506727'] | [2940.0, 2940.0] | [17.0, 17.0] | [164, 169] |
p02724 | u626011428 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['x = int(input())\na = int(x/500)\nb = x - a\nc = int(b/5)\n\nprint(1000*a + 5*c)\n\n', 'x = int(input())\na = int(x/500)\nb = x - 500*a\nc = int(b/5)\n\nprint(1000*a + 5*c)\n\n'] | ['Wrong Answer', 'Accepted'] | ['s071206959', 's425376365'] | [2940.0, 2940.0] | [17.0, 18.0] | [77, 81] |
p02724 | u629186149 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['a = input()\nb = 0\nwhile a >= 500:\n a-=500\n b+=1000\nwhile a >= 5:\n a-=5\n b+=5\nprint(b)', 'a = int(input())\nb = 0\nwhile a >= 500:\n a-=500\n b+=1000\nwhile a >= 5:\n a-=5\n b+=5\nprint(b)'] | ['Runtime Error', 'Accepted'] | ['s290153988', 's222894482'] | [2940.0, 2940.0] | [19.0, 401.0] | [89, 94] |
p02724 | u629540524 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['n = int(input())\nprint(n%1000*5+n//500*1000)', 'n = int(input())\nprint(n%500//5*5+n//500*1000)'] | ['Wrong Answer', 'Accepted'] | ['s785282167', 's809417911'] | [2940.0, 2940.0] | [17.0, 17.0] | [44, 46] |
p02724 | u641393644 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['X = input()\nprint((X//500)*1000+((X-X//500)//5)*5)', 'Y = input()\nX = int(Y)\nA = (X//500)*1000\nB = (X-X//500*500)\nprint(A+B)\n', 'Y = input()\nX = int(Y)\nA = (X//500)*1000\nB = (X-X//500*500)//5*5\nprint(A+B)\n'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s818934628', 's884402380', 's552517642'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [50, 71, 76] |
p02724 | u642634792 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['N=int(input())\nHappoint=(N//500)*1000 + ((n%500)//5)*5\nprint(int(Happoint))', 'N=int(input())\nHapt=0\nif(N>=5):\n Hapt=Hapt+(N//500)*1000 + ((N%500)//5)*5\nelse:\n Hapt=0\nprint(Hapt)'] | ['Runtime Error', 'Accepted'] | ['s479561979', 's491052332'] | [2940.0, 3064.0] | [18.0, 18.0] | [75, 101] |
p02724 | u646130340 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['X = int(input())\nn_500 = X / 500\nn_5 = (X % 500) / 5\nans = 1000 * n_500 + 5 * n_5\nprint(int(ans))', 'X = int(input())\nn_500 = X / 500\nn_5 = (X % 500) / 5\nans = 1000 * n_500 + 5 * n_5\nprint(ans)', 'X = int(input())\nn_500 = X // 500\nn_5 = (X % 500) // 5\nans = 1000 * n_500 + 5 * n_5\nprint(int(ans))'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s594626230', 's923516988', 's808235697'] | [2940.0, 2940.0, 2940.0] | [18.0, 18.0, 18.0] | [98, 93, 100] |
p02724 | u646412443 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['# -*- coding: utf-8 -*-\ns = int(input())\nhappy = 0\nif s >= 500:\n happy += 1000 * (s // 500)\n s = s % 500\nif s >= 5:\n happy += 5 * (s // 500)\n\nprint(happy)\n', 'x = int(input())\nans = 0\nif x >= 500:\n ans += x // 500 * 1000\n x -= x // 500 * 500\nif x >= 5:\n ans += x // 5 * 5\n\nprint(ans)\n'] | ['Wrong Answer', 'Accepted'] | ['s069184672', 's757870603'] | [2940.0, 2940.0] | [17.0, 18.0] | [164, 134] |
p02724 | u647796955 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['X = int(input())\n\nY = X%500\nZ = (X-Y*500)%5\n\nprint(1000*Y+5*Z)', 'X = int(input())\n\nY = X//500\nZ = (X-Y*500)//5\n\nprint(1000*Y+5*Z)\n'] | ['Wrong Answer', 'Accepted'] | ['s051594005', 's604335666'] | [2940.0, 2940.0] | [17.0, 17.0] | [62, 65] |
p02724 | u651793628 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['\nX = int(input())\ncount1 = int(X/500) \nprint(count1)\n\n\ndeducation = X - count1 * 500\n\ncount2 = int(deducation / 5)\nprint(count2)\n\n\nuresisa = count1 * 1000 + count2 * 5\nprint(uresisa)\n\n# %%\n', '\nX = int(input())\ncount1 = int(X/500) \n#print(count1)\n\n\ndeducation = X - count1 * 500\n\ncount2 = int(deducation / 5)\n#print(count2)\n\n\nuresisa = count1 * 1000 + count2 * 5\nprint(uresisa)\n\n# %%\n'] | ['Wrong Answer', 'Accepted'] | ['s383314693', 's847691113'] | [2940.0, 2940.0] | [18.0, 17.0] | [364, 366] |
p02724 | u651946953 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['x=int(input())\n\na=x/500\nd=x%500\nb=d%5\n\nprint(a*1000+b*5)', 'x=int(input())\n\n\n\na=x//500\nd=x%500\nb=d//5\n\nprint(a*1000+b*5)'] | ['Wrong Answer', 'Accepted'] | ['s075758152', 's235686551'] | [2940.0, 2940.0] | [17.0, 17.0] | [56, 60] |
p02724 | u653175574 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['X = int(input())\nsen = X // 500\namari = X % 500\ngo = amari // 5\nans = sen * 1000 + gp * 5', 'X = int(input())\nsen = X // 500\namari = X % 500\ngo = amari // 5\nans = sen * 1000 + go * 5\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s920604678', 's411764669'] | [2940.0, 2940.0] | [17.0, 19.0] | [89, 100] |
p02724 | u654697086 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['X = int(input())\n\ncoin1 = X / 500\ncoin2 = (X % 500) / 5\n\nprint(coin1*1000 + coin2*5)', 'X = int(input())\n\ncoin1 = X / 500\ncoin2 = (X % 500) / 5\n\nprint(int(coin1*1000 + coin2*5))', 'X = int(input())\n\ncoin1 = int(X / 500)\ncoin2 = int((X % 500) / 5)\n\nprint(coin1*1000 + coin2*5)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s229496889', 's391800877', 's385893175'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [84, 89, 94] |
p02724 | u656919695 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['s=int(input())\nh=0\nwhile True:\n if s>=500:\n a=s//500\n h =1000*a\n s=s%500\n \n else:\n h += int(s)\n break\nprint(str(h))', 's=int(input())\nh=0\nwhile True:\n if s>=500:\n a=s//500\n h +=1000*a\n s=s%500\n \n elif s>=5:\n a=s//5\n h +=5*a\n s=s%5\n else:\n break\n \nprint(str(h))'] | ['Wrong Answer', 'Accepted'] | ['s115171837', 's418418611'] | [2940.0, 3060.0] | [17.0, 17.0] | [163, 209] |
p02724 | u660640166 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['\ndef main(inputs):\n\tx=int(inputs[0][0])\n\tn=x//500\n\tx-=n*500\n\tn1=x//5\n\tprint(n*1000+n1*5)\n\n\nif __name__=="__main__":\n\tinputs=getInputs()\n\n\tmain(inputs)\n', '\ndef getIntList(inp):\n\treturn [int(_) for _ in inp]\n\n\nfrom sys import stdin\nimport sys\nsys.setrecursionlimit(10**8)\n\ndef getInputs():\n\tinputs=[]\n\tfor line in stdin:\n\t\tline=line.split()\n\t\tinputs.append(line)\n\treturn inputs\n\ndef main(inputs):\n\tx=int(inputs[0][0])\n\tn=x//500\n\tx-=n*500\n\tn1=x//5\n\tprint(n*1000+n1*5)\n\n\nif __name__=="__main__":\n\tinputs=getInputs()\n\n\tmain(inputs)\n'] | ['Runtime Error', 'Accepted'] | ['s597680897', 's880384336'] | [2940.0, 3060.0] | [18.0, 18.0] | [172, 394] |
p02724 | u664015993 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['#500-1000, 5-5\n\nx = int(input())\nfiveHundred = x//500\nx -= fiveHundred\nfives = x//5\nprint(fiveHundred*1000+fives*5)', 'x = int(input())\nfiveHundred = x//500\nx -= fiveHundred*500\nfives = x//5\nprint(fiveHundred*1000+fives*5)\n'] | ['Wrong Answer', 'Accepted'] | ['s733900172', 's234328187'] | [2940.0, 2940.0] | [17.0, 17.0] | [115, 104] |
p02724 | u666961261 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['N = int(input())\nF = 0\nFF = 0\nwhile(N>5):\n if(N>500):\n F = N/500\n else:\n FF = N/5\nprint((F*2)+(FF))', 'N = int(input())\nF=0\nFF=0\nFFF=0\nFFFF = 0\nif(N>=500):\n F=N/500\n FFF = int(F)\nFFFF = (N-(500*FFF))\nif(FFFF>5):\n FF=int(FFFF/5)\nprint((int(F)*1000)+FF*5)\n \n'] | ['Time Limit Exceeded', 'Accepted'] | ['s668094117', 's624436211'] | [2940.0, 3060.0] | [2104.0, 17.0] | [107, 165] |
p02724 | u668503853 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['X=int(input())\nA=X//500\nB=(X%500)//5\nprint(A*100+B*5)', 'X=int(input())\nA=X//500\nB=(X%500)//5\nprint(A*1000+B*5)'] | ['Wrong Answer', 'Accepted'] | ['s247645967', 's718970380'] | [2940.0, 2940.0] | [17.0, 17.0] | [53, 54] |
p02724 | u671036469 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['s = input()\nss = int(s)\n\ns_1000 = ss / 500\nprint(s_1000)\ns_under = ss - 500*int(s_1000)\nprint(s_under)\ns_5 = int(s_under) / 5\nprint(s_5)\n\ns_sum = 1000*int(s_1000) + 5*int(s_5)\n\nprint(s_sum)\n', 's = input()\nss = int(s)\n\ns_1000 = ss / 500\ns_under = ss - 500*int(s_1000)\ns_5 = int(s_under) / 5\n\ns_sum = 1000*int(s_1000) + 5*int(s_5)\n\nprint(s_sum)\n'] | ['Wrong Answer', 'Accepted'] | ['s251113596', 's550494553'] | [2940.0, 2940.0] | [18.0, 17.0] | [190, 150] |
p02724 | u672293324 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['x=int(input())\na=x//500\ny=x-(500*a)\nb=y//5\nprint(a*1000+b*1)\n', 'x=int(input())\na=int(x/500)\ny=x-(500*a)\nb=int(y/5)\nprint(a*1000+b*1)\n', 'x=int(input())\na=int(x/500)\ny=x-(500*a)\nb=int(y/5)\nprint(a*1000+b*5)\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s102683436', 's223987424', 's815572908'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [61, 69, 69] |
p02724 | u674190122 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['fun main()\n{\n var has = readLine()!!.toInt()\n var happiness = 0\n if (has > 500)\n {\n var _500 = has / 500\n happiness = _500 * 1000\n has = has - _500 * 500\n }\n if (has > 5)\n {\n var _5 = has / 5\n happiness += _5 * 5\n }\n print(happiness)\n}', 'has = int(input())\ncanbe = 0\n_500, has = divmod(has, 500)\ncanbe += _500 * 1000\n_5, has = divmod(has, 5)\ncanbe += _5 * 5\nprint(canbe)\n'] | ['Runtime Error', 'Accepted'] | ['s332570099', 's937824741'] | [2940.0, 2940.0] | [17.0, 18.0] | [297, 134] |
p02724 | u685641906 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['money = int(input())\n\nmax500 = money // 500\nrem500 = money % 500\n\nmax5 = money // 5\n\nhappiness = max500 * 1000 + max5 * 5\n\nprint(happiness)\n', 'money = int(input())\n \nmax500 = money // 500\nrem500 = money % 500\n \nmax5 = rem500 // 5\n \nhappiness = max500 * 1000 + max5 * 5\n \nprint(happiness)'] | ['Wrong Answer', 'Accepted'] | ['s293341146', 's102223100'] | [2940.0, 2940.0] | [17.0, 18.0] | [140, 144] |
p02724 | u688219499 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['s = int(input())\ncount1=-1\ncount2=-1\nwhile s>=0:\n s=s-500\n count1=count1 +1\ns=s+500\nprint(count1)\nif s==0:\n yasashisa=count1*1000\n print(yasashisa)\nelse:\n while s >=0:\n s=s-5\n count2=count2 +1\n yasashisa=count1*1000+count2* 5\n print(yasashisa)\n\n\n\n', 's=int(input())\na= s//500\nb=(s%500)//5\nyasashisa=a*1000+b*5\nprint(yasashisa)'] | ['Wrong Answer', 'Accepted'] | ['s636323349', 's818720950'] | [3316.0, 2940.0] | [361.0, 18.0] | [263, 75] |
p02724 | u690442716 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['X = input()\ntmp = X // 500\nans = tmp * 1000 + X % 500 - ((X % 500) % 5)\nprint(ans)', 'X = int(input())\ntmp = X // 500\nans = tmp * 1000 + X % 500 - ((X % 500) % 5)\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s818953936', 's073881171'] | [2940.0, 2940.0] | [17.0, 17.0] | [82, 87] |
p02724 | u690833702 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['def main():\n n = int(input())\n \n a = int(n/500)\n b = n % 500\n \n c = b / 5\n d = b % 5\n \n glad = int(1000 * a + 5 * c)\n \n print(glad)\n \nmain()', 'def main():\n n = int(input())\n \n a = int(n/500)\n b = n % 500\n \n c = int(b / 5)\n d = b % 5\n \n glad = int(1000 * a + 5 * c)\n \n print(glad)\n \n \n \nmain()'] | ['Wrong Answer', 'Accepted'] | ['s147544322', 's144601281'] | [9136.0, 8916.0] | [25.0, 28.0] | [152, 163] |
p02724 | u690873774 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['n=int(input())\nhappy=0\ndef covid(num):\n if num==0:\n return 0\n else:\n fund=num//500\n num-=fund*500\n happy+=fund*1000\n happy+=num//5*5\n return happy\nprint(covid(n))', 'n=int(input())\ndef covid(num):\n if num==0:\n return 0\n else:\n happy=0\n fund=num//500\n num-=fund*500\n happy+=fund*1000\n happy+=num//5*5\n return happy\nprint(covid(n))'] | ['Runtime Error', 'Accepted'] | ['s266632661', 's537723783'] | [3060.0, 3060.0] | [18.0, 17.0] | [182, 186] |
p02724 | u691195128 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['import math\ntest = input()\nfive_hundred = math.floor(test / 500) * 1000\nfive_happy = math.floor((test - five_hundred*500)/5) * 5\nprint(five_hundred + five_happy)', 'import math\ntest = input()\nfive_hundred = math.floor(test / 500) * 1000\nfive_happy = math.floor((test - five_hundred*500)/5) * 5\n', 'import math\nnumeric = int(input())\nresult = math.floor(numeric / 500)*1000\nintermediate = numeric - math.floor(numeric / 500)*500\nresult = result + math.floor(intermediate / 5)*5\nprint(result)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s938916310', 's947628839', 's422159335'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 18.0] | [161, 129, 192] |
p02724 | u694665829 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['X=int(input())\nprint(X//500*1000+(X-X//500)//5*5)\n', 'X=int(input())\nprint(X//500*1000+(X-X//500*500)//5*5)\n\n'] | ['Wrong Answer', 'Accepted'] | ['s028203289', 's816609263'] | [2940.0, 2940.0] | [17.0, 17.0] | [50, 55] |
p02724 | u697386253 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['x = int(input())\n\ncount_a = x// 500\nx = x%500\nx = x% 100\nx = x%50\nx = x%10\ncount_b = x // 5\n\nprint(count_a*1000+count_b*5)', 'x = int(input())\n\ncount_a = x // 500\nx = x % 10\ncount_b = x // 5\n\nprint(count_a * 1000 + count_b*5)', 'x = int(input())\n\ngold = x // 500\nx -= gold * 500\n\nbronze = x // 5\n\nprint(gold*1000 + bronze*5)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s136342779', 's641373954', 's275112542'] | [2940.0, 2940.0, 2940.0] | [18.0, 18.0, 17.0] | [122, 99, 95] |
p02724 | u697658632 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['x = int(input())\nx500 = x / 500\nx5 = (x % 500) / 5\nprint(1000 * x500 + 5 * x5)\n', 'x = int(input())\nx500 = x // 500\nx5 = (x % 500) // 5\nprint(1000 * x500 + 5 * x5)\n'] | ['Wrong Answer', 'Accepted'] | ['s051707012', 's294315143'] | [2940.0, 2940.0] | [17.0, 17.0] | [79, 81] |
p02724 | u698977701 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['n = int(input())\nh = 0\nwhile(n > 4):\n if n >= 500:\n h += 1000\n elif n >= 5:\n h += 5\n \nprint(h)', 'n = int(input())\nh = 0\nwhile(n > 4):\n if n >= 500:\n h += 1000\n n -= 500\n elif n >= 5:\n h += 5\n n -= 5\n \n\n \nprint(h)'] | ['Time Limit Exceeded', 'Accepted'] | ['s607643815', 's458855078'] | [2940.0, 2940.0] | [2104.0, 494.0] | [105, 155] |
p02724 | u703092276 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['N=int(input());print((((1000)*(N//500))+(N-((1000)*(N//500)))//5)*5)', 'N=int(input());M=N//500;M*=1000;X=500*(N//500);N-=X;M+=(N//5)*5;print(M)'] | ['Wrong Answer', 'Accepted'] | ['s436681136', 's031258192'] | [9012.0, 9132.0] | [26.0, 27.0] | [68, 72] |
p02724 | u708890186 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['X=int(input())\ng500=X//500\ng5=(X%500)//5\nprint(g500*500+g5*5)', 'X=int(input())\ng500=X//500\ng5=(X%500)//5\nprint(g500*1000+g5*5)\n'] | ['Wrong Answer', 'Accepted'] | ['s105119402', 's454827474'] | [2940.0, 2940.0] | [17.0, 17.0] | [61, 63] |
p02724 | u711754037 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['def coin(usr_input):\n\treturn (int(usr_input / 500) * 1000) + (int((usr_input - int(usr_input / 500) * 500) / 5) * 5)', 'user_input = eval(input())\nprint((user_input // 500) * 1000 + ((user_input % 500) // 5) * 5)'] | ['Wrong Answer', 'Accepted'] | ['s039820840', 's123207928'] | [2940.0, 2940.0] | [17.0, 17.0] | [116, 92] |
p02724 | u712253494 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['X = int(input())\nhap_yen = int(X / 500)\nto_hap_yen = hap_yen * 1000\nremain_X = X - (hap_yen * 500)\nremain_hap_yen = (remain_X / 5) * 5\ntotal_hap_yen = to_hap_yen + remain_hap_yen\nprint(int(total_hap_yen))', 'X = int(input())\nif X>=500:\n hap_yen = int(X / 500)\n to_hap_yen = hap_yen * 1000\n remain_X = X - (hap_yen * 500)\n remain_hap_yen = int(remain_X / 5)\n remain_hap_yen1=remain_hap_yen*5\n total_hap_yen = to_hap_yen + remain_hap_yen1\n print(int(total_hap_yen))\nelse:\n hap_yen=int(X/5)\n total_hap_yen=hap_yen*5\n print(total_hap_yen)'] | ['Wrong Answer', 'Accepted'] | ['s192234511', 's517618843'] | [3060.0, 3060.0] | [18.0, 17.0] | [204, 356] |
p02724 | u718949306 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['X = int(input())\n\nif X >= 0 and X <= 10 ** 9:\n while True:\n if X >= 500:\n C = X // 500\n X = X - (500 * C)\n elif X >= 5:\n D = X // 5\n X = X - (5 * D)\n else:\n break\n\ntotal = (500 * C) + (5 * D)\n\nprint(total)', 'X = int(input())\n\na = 0\nb = 0\nc = 0\nd = 0\ne = 0\nf = 0\n\nfor q in range(100):\n for w in range(100):\n for e in range(100):\n for r in range(100):\n for t in range(100):\n for y in range(100):\n num = (500 * q) + (100 * w) + (50 * e) + (10 * r) + (5 * t) + (1 * y)\n if X % num == 0:\n m = q\n i = t\n break\n\n\nprint(500 * m + 5 * i)', 'X = int(input())\n\nwhile True:\n if X >= 500:\n C = X // 500\n X = X - (500 * C)\n elif X >= 5:\n D = X // 5\n X = X - (5 * D)\n else:\n break\n\ntotal = (500 * C) + (5 * D)\n\nprint(total)', 'X = int(input())\ntotal = 0\n\nC = 0\nD = 0\n\nwhile True:\n if X > 500:\n C = X // 500\n P = 500 * C\n X = X - P\n elif X > 5:\n D = X // 5\n L = 5 * D\n X = X - L\n else:\n break\n\ntotal = (1000 * C) + (5 * D)\n\nprint(total)\nprint()', 'X = int(input())\n\nC = 0\nD = 0\n\nif X >= 500:\n C = X // 500\n X = X - (500 * C)\nif X >= 5:\n D = X // 5\n\ntotal = (1000 * C) + (5 * D)\n\nprint(total)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s454381695', 's482331457', 's612443530', 's941914174', 's263401797'] | [3064.0, 3064.0, 3060.0, 3060.0, 3060.0] | [17.0, 18.0, 19.0, 17.0, 17.0] | [284, 502, 220, 274, 152] |
p02724 | u726769307 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['n = int(input())\nans = n // 500 * 1000\nn //= 500\nans += n // 5 * 5\nprint(ans)', 'n = int(input())\nans = n // 500 * 1000\nn %= 500\nans += n // 5 * 5\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s749249135', 's050589487'] | [2940.0, 2940.0] | [18.0, 19.0] | [77, 76] |
p02724 | u726902498 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['X = int(input())\nif X % 5 ==0 and X > 500:\n print(X*2)\nelif X > 500 and not X % 5 == 0:\n A = X // 10\n A = A*10\n print(A*2)\nelif X < 500 and not X % 5 ==0:\n print(X)\nelif X < 5:\n print(0)', 'X = int(input())\nif X % 5 ==0 and X > 500:\n print(X*2)\nelif X > 500 and not X % 5 == 0:\n A = X // 10\n A = A*10\n print(A*2)\nelif X < 500 and not X % 5 ==0:\n print(X)\nelif X <= 5:\n print(X)\nelif X < 5:\n print(0)', 'X = int(input())\nprint((X // 500) * 1000 + ((X % 500) // 5) * 5)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s447741858', 's460023522', 's281429758'] | [3060.0, 3060.0, 2940.0] | [17.0, 17.0, 19.0] | [208, 234, 64] |
p02724 | u727021494 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['x = int(input())\npoint = 0\nwhile x != 0:\n if x >= 50:\n result = x / 50\n summ = (50 * result)*2\n point = point + summ\n remain = x % 50\n x = remain\n if x >= 5:\n result = x / 5\n summ = 5 * result\n point = point + summ\n break;\nprint(point)', 'x = int(input("enter "))\npoint = 0\nwhile x != 0:\n if x >= 50:\n result = x / 50\n summ = (50 * result)*2\n point = point + summ\n remain = x % 50\n x = remain\n if x >= 5:\n result = x / 5\n summ = 5 * result\n point = point + summ\n break;\nprint(point)', 'x = int(input())\npoint = 0\nwhile x != 0:\n if x >= 500:\n result = x // 500\n summ = (500 * result)*2\n point = point + summ\n remainder = x % 500\n x = remainder\n if x >= 5:\n result = x // 5\n summ = 5 * result\n point = point + summ\n break;\nprint(point)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s640873664', 's774194343', 's435166010'] | [3060.0, 3060.0, 3060.0] | [17.0, 17.0, 17.0] | [304, 312, 316] |
p02724 | u727057618 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['s = int(input())\na = s // 500\nb = s % 500\nc = b // 5\nprint(a, c)\nprint(a * 1000 + c * 5)\n', 's = int(input())\na = s // 500\nb = s % 500\nc = b // 5\nprint(a * 1000 + c * 5)\n'] | ['Wrong Answer', 'Accepted'] | ['s744650728', 's195132524'] | [2940.0, 2940.0] | [17.0, 17.0] | [89, 77] |
p02724 | u730710086 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['# -*- coding: <encoding name> -*-\n\nx = int(input())\nprint(1000 * (x // 500) + (x % 500) // 5)', '# -*- coding: <encoding name> -*-\n\nx = int(input())\nprint(1000 * (x // 500) + 5 * (x % 500))', '# -*- coding: <encoding name> -*-\n\nx = int(input())\nprint(1000 * (x // 500) + 5 * (x % 500 // 5)', '# -*- coding: <encoding name> -*-\n\nx = int(input())\nprint(1000 * (x // 500) + (x % 500))', '# -*- coding: <encoding name> -*-\n\nx = int(input())\nprint(1000 * (x // 500) + 5 * (x % 500 // 5))'] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s527811393', 's536433611', 's593000030', 's777713791', 's821551089'] | [2940.0, 2940.0, 3064.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 18.0, 17.0] | [93, 92, 96, 88, 97] |
p02724 | u732743460 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['n = int(input())\ns=n//500\nr=n%500\nr=r//5\nprint(s*1000+r)', '\nn = int(input())\ns=n//500\nr=n%500\nprint(r)\nr=r//5\nprint(s*1000+r*5)', 'n = int(input())\ns=n//500\nr=n%500\n\nr=r//5\nprint(s*1000+r*5)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s151618553', 's652324638', 's669661459'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [56, 68, 59] |
p02724 | u733132703 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['X = int(input())\n\ni = 0\n\nwhile X >= 500:\n X -= 500\n i += 1\n \n\n\nans = 1000*i + X\n\nprint(ans)\n\n', 'X = int(input())\n\ni = 0\n\nwhile X >= 500:\n X -= 500\n i += 1\n \na = 0\nwhile X >= 5:\n X -= 5\n a += 1\n\nans = 1000*i + 5*a\n\nprint(ans)\n\n'] | ['Wrong Answer', 'Accepted'] | ['s679391342', 's722234539'] | [2940.0, 2940.0] | [399.0, 459.0] | [96, 135] |
p02724 | u735091636 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['\nKN = input("").split()\nA = input("").split()\n\nK = int(KN[0])\nN = int(KN[1])\nA_0 = int(A[0])\nA_N = int(A[N-1])\nL = A_0\n\nfor j in range(N):\n A_i = int(A[j+1])\n A_m = int(A[j])\n if A_i - A_m > L:\n L == A_i - A_m\n\nif L > K - A_N + A_0:\n print(K-L)\nelse:\n print(K - A_N + A_0)\n\n', '\nX = int(input(""))\n\nX500 = X//500\nX_a = X%500\n\nX5 = X_a//5\n\nhappy = X500*1000 + X5*5\n\nprint(happy)'] | ['Runtime Error', 'Accepted'] | ['s152672329', 's473275909'] | [3064.0, 2940.0] | [18.0, 17.0] | [296, 99] |
p02724 | u736342571 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['a = int(input())\nb = a/500\nc = b%500\nd = c/5\nprint(b+d)', 'a = int(input())\nb = int(a/500)*1000\nc = a%500\nd = int(c/5)*5\nprint(b+d)'] | ['Wrong Answer', 'Accepted'] | ['s059782387', 's595236361'] | [2940.0, 2940.0] | [17.0, 17.0] | [55, 72] |
p02724 | u736641785 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['N = int(input())\n\nprint(N/500*1000+N%500/5*5)', 'N = int(input())\nprint(N//500*1000+N%500//5*5)'] | ['Wrong Answer', 'Accepted'] | ['s109459849', 's443715814'] | [2940.0, 2940.0] | [17.0, 19.0] | [45, 46] |
p02724 | u748311048 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['X=int(input())\ncnt=0\nn=X//1200\nX-=n*1200\ncnt+=n*1200*2\nn=X//5\ncnt+=n*5\nprint(cnt)', 'X=int(input())\ncnt=0\nn=X//500\nX-=n*500\ncnt+=n*1000\nn=X//5\ncnt+=n*5\nprint(cnt)'] | ['Wrong Answer', 'Accepted'] | ['s491472676', 's792649813'] | [2940.0, 2940.0] | [17.0, 17.0] | [81, 77] |
p02724 | u749742659 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['x = int(input())\n\na = x//500\nx %= 500\nb = x//5\n\nprint(a*1000 + b)', 'x = int(input())\n\na = x//500\nx %= 500\nb = x//5\n\nprint(a*1000 + b*5)'] | ['Wrong Answer', 'Accepted'] | ['s058387067', 's571139651'] | [2940.0, 2940.0] | [17.0, 18.0] | [65, 67] |
p02724 | u751539777 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['x = int(input())\n\nnum_500 = x / 500\n\namari = x - num_500\n\nnum_5 = int(amari / 5)\n\nprint(1000 * num_500 + 5 * num_5)', 'x = int(input())\n\nnum_500 = x / 500\n\namari = x - num_500\n\nnum_5 = amari / 5\n\nprint(1000 * num_500 + 5 * num_5)', 'x = int(input())\n\nnum_500 = int(x / 500)\n\namari = x - num_500\n\nnum_5 = int(amari / 5)\n\nprint(1000 * num_500 + 5 * num_5)\n', 'x = int(input())\n\nnum_500 = int(x / 500)\n\namari = x - 500 * num_500\n\nnum_5 = int(amari / 5)\n\nprint(1000 * num_500 + 5 * num_5)'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s470859001', 's794321111', 's918298962', 's306954935'] | [3060.0, 2940.0, 2940.0, 2940.0] | [19.0, 17.0, 17.0, 19.0] | [115, 110, 121, 126] |
p02724 | u751717561 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['X = 0\n\nhappiness500 = int(X / 500)\nhappiness5 = int((X%500/5))\n\nprint(happiness500*1000+happiness5*5)', 'X = int(input())\n\nhappiness500 = int(X / 500)\nhappiness5 = int((X%500/5))\n\nprint(happiness500*1000+happiness5*5)'] | ['Wrong Answer', 'Accepted'] | ['s266846329', 's264697506'] | [2940.0, 2940.0] | [17.0, 17.0] | [101, 112] |
p02724 | u753542444 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['import math\n\n\nnum = int(input("num: "))\n\n\nc_500 = math.floor(num / 500)\nnum2 = num - c_500 * 500\n\nc_5 = math.floor(num2/5)\n\n\n\nprint(c_500 * 1000 +c_5 * 5)', 'import math\n\n\nnum = int(input())\n\n\nc_500 = math.floor(num / 500)\nnum2 = num - c_500 * 500\n\nc_5 = math.floor(num2/5)\n\n\n\nprint(c_500 * 1000 +c_5 * 5)'] | ['Wrong Answer', 'Accepted'] | ['s062504054', 's562862926'] | [2940.0, 3060.0] | [17.0, 17.0] | [154, 147] |
p02724 | u756279759 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['x = int(input())\n \na = x // 500\nb = (x % 500) // 5\n \nans = a * 1000 + b * 5\n \n print(ans)', 'x = int(input())\n\na = x // 500\n\nb = (x % 500) // 5\n \nans = a * 1000 + b * 5\n \nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s783732312', 's305510571'] | [2940.0, 2940.0] | [17.0, 17.0] | [89, 88] |
p02724 | u760130918 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['x = int(input())\n\nhappy = 0\n\na = int(x/500)\nhappy = a*1000\n\na = x-(a*500)\nhappy += a*5\n\nprint(happy)\n', 'x = int(input())\n\nhappy = 0\na = int(x/500)\nhappy = a*1000\na = int((x-(a*500))/5)\nhappy += a*5\n\nprint(happy)'] | ['Wrong Answer', 'Accepted'] | ['s111094353', 's810561758'] | [2940.0, 2940.0] | [17.0, 17.0] | [101, 107] |
p02724 | u760961954 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['x = input()\n\n500yen = x//500*1000\n5yen = (x - x//500)//5*5\n\nprint(500yen + 5yen)', 'x = int(input())\n\n500yen = x//500*1000\n5yen = x%500//5*5\n\nprint(500yen + 5yen)\n', 'x = int(input())\n\na = x//500*1000\nb = x%500//5*5\n\nprint(a+b)\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s164815765', 's568957768', 's471515405'] | [3060.0, 2940.0, 2940.0] | [19.0, 18.0, 17.0] | [80, 79, 61] |
p02724 | u768890894 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['X=int(input())\nN=0\nn=0\nN=X//500\nn=(X-N*500)//5\ninput(N*1000+5*n)', 'X=int(input())\nN=0\nn=0\nif X==0:\n print(0)\nelse:\n N=X//500\n n=(X-N*500)//5\n print(N*1000+5*n)'] | ['Runtime Error', 'Accepted'] | ['s155538563', 's621087476'] | [2940.0, 2940.0] | [17.0, 18.0] | [64, 104] |
p02724 | u772371451 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['X = int(input())\nx1 = X%500\nx2 = x1%5\nprint(x1*1000+x2*5)', 'X = int(input())\nx1 = X//500\nx2 = (X%500)//5\nprint(x1*1000+x2*5)'] | ['Wrong Answer', 'Accepted'] | ['s278757812', 's140296519'] | [9144.0, 9068.0] | [31.0, 31.0] | [57, 64] |
p02724 | u773686010 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['N = int(input())\ndiv,mod = divmod(N,5000)\ndiv2 = (mod,5)\nprint(5000*div + 5*div2) ', 'N = int(input())\ndiv,mod = divmod(N,500)\ndiv2 = mod//5\nprint(1000*div + 5*div2) '] | ['Runtime Error', 'Accepted'] | ['s719087198', 's796579863'] | [9152.0, 9128.0] | [24.0, 29.0] | [82, 80] |
p02724 | u780698286 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['x = int(input())\ny = x % 500\nprint(x // 500 + y // 5)\n', 'x = int(input())\ny = x % 500\nprint(x // 500 * 1000 + y // 5 * 5)\n'] | ['Wrong Answer', 'Accepted'] | ['s661969117', 's160964878'] | [9152.0, 9132.0] | [28.0, 24.0] | [54, 65] |
p02724 | u789436713 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['s=input()\nif s[2]==s[3] and s[4]==s[5]:print("Yes")\nelse :print("No")', 'i=int(input())\ngohyaku = i // 500\ngo = (i % 500) // 5\nprint(int(gohyaku*1000+go*5))'] | ['Runtime Error', 'Accepted'] | ['s501291263', 's209606559'] | [2940.0, 2940.0] | [17.0, 18.0] | [69, 83] |
p02724 | u798675549 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['X=int(input())\na=X/500\nX%=500\nb=X/5\nprint(1000*a+5*b)', 'X=input()\na=X/500\nX%=500\nb=X/5\nprint(1000*a+5*b)', 'X=int(input())\na=X//500\nX%=500\nb=X//5\nprint(1000*a+5*b)'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s183363814', 's525065980', 's808832498'] | [3064.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [53, 48, 55] |
p02724 | u799428010 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['X=int(input())\nprint(1000*(X//500)+5*((X-500*A)//5))', 'X=int(input())\nA=X//500\nB=(X-500*A)//5\nprint(1000*A+5*B)'] | ['Runtime Error', 'Accepted'] | ['s969014829', 's575816236'] | [8968.0, 9148.0] | [26.0, 29.0] | [52, 56] |
p02724 | u810789440 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['x = int(input())\nres = 1000 * x // 500;\nx = x % 500;\nx -= x % 5\nres += x\nprint(res)', 'x = int(input())\nres = 1000 * (x // 500);\nx = x % 500;\nx -= x % 5\nres += x\nprint(res)'] | ['Wrong Answer', 'Accepted'] | ['s085715497', 's701896922'] | [3060.0, 3064.0] | [19.0, 17.0] | [83, 85] |
p02724 | u813405587 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ["x = int(input())\na = 500\nb = 5\nq = x // a\nmod = x % a\nif q > 0:\n c = q * 1000\nelif mod // b > 0:\n d = (mod // b) * 5\n print('c + d')\nelse:\n print('0')", 'x = int(input())\ns = 1000*(x//500) + (x%500)\nprint(s)\n', 'x = int(input())\ns = 1000*(x//500)+(x%5)//5\nprint(s)', "x = int(input())\na = 500\nb = 5\nq = x // a\nmod = x % a\nif q > 0:\n c = q * 1000\nelif mod // b > 0:\n d = (mod // b) * 5\n print('c + d')\n exit()", "x = int(input())\na = 500\nb = 5\nq = x//a\nmod = x%a\nif q > 0:\n c = q * 1000\nelif mod // b > 0:\n d = (mod // b) * 5\n print(c + d)\nelse:\n print('0')\n ", 'x = int(input())\ns = 1000*(x//500) + 5*((x%500)//5)\nprint(s)\n'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s215837112', 's430825199', 's458435448', 's605067142', 's979408457', 's307482320'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [154, 54, 52, 144, 151, 61] |
p02724 | u820284192 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['X = int(input())\nprint((X // 500) * 1000 + (X % 500) // 5)', 'X = int(input())\nprint((X // 500) * 1000 + (X % 500) - (X % 500) % 5)'] | ['Wrong Answer', 'Accepted'] | ['s260384998', 's402446745'] | [2940.0, 2940.0] | [18.0, 17.0] | [58, 69] |
p02724 | u823885866 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['import sys\nX = sys.stdin.readline()\nscore = X//500 * 1000\nX %= 500\nscore += X//5 * 5\nprint(score)', 'import sys\nX = sys.stdin.readline()\nX = int(X)\nscore = (X//500) * 1000\nX %= 500\nscore += (X//5) * 5\nprint(score)\n'] | ['Runtime Error', 'Accepted'] | ['s550887812', 's132559199'] | [2940.0, 2940.0] | [17.0, 17.0] | [97, 113] |
p02724 | u824866613 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['inp = input()\ninp = int(float(inp))\naaa =0\nbbb =0\nnega = 0\nbig = 0\n\nif 0 <= inp and inp <= 10**9:\n if 500 <= inp:\n big = (inp // 500)\n sma = big % 500\n if 5 <= sma:\n nega = (sma // 5)\n \n aaa = 1000*big\n bbb = 5*nega\n print(aaa + bbb)\nelse:\n print(0)\n ', 'inp = input()\ninp = int(float(inp))\naaa = 0\nbbb = 0\nyyy = 0\n\nif 0 <= inp and inp <= 10**9:\n if 500 <= inp:\n big = inp // 500\n aaa = big * 1000\n amari = inp % 500\n if 5 <= amari:\n smo = amari //5\n bbb = smo *5\n print(aaa+bbb)\n else if 5 <= inp:\n hhh = inp // 5\n yyy = hhh * 5\n print(yyy)\nelse:\n print(0)', 'inp = input()\ninp = int(float(inp))\naaa =0\nbbb =0\nnega = 0\nbig = 0\n\nif 0 <= inp and inp <= 10**9:\n if 500 <= inp:\n big = (inp // 500)\n sma = big % 500\n if 5 <= sma:\n nega = (sma // 5)\n \n aaa = 1000*big\n bbb = 5*nega\n print(aaa + bbb)\n elif 5 <= inp:\n nega = (inp // 5)\n bbb = 5*nega\n print(bbb)\nelse:\n print(0)\n ', 'inp = input()\ninp = int(float(inp))\naaa = 0\nbbb = 0\nyyy = 0\n\nif 0 < inp and inp <= 10**9:\n if 500 <= inp:\n big = inp // 500\n aaa = big * 1000\n amari = inp % 500\n if 5 <= amari:\n smo = amari //5\n bbb = smo *5\n print(aaa+bbb)\n elif 5 <= inp:\n hhh = inp // 5\n yyy = hhh * 5\n print(yyy)\nelse:\n print(0)'] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s085023211', 's299150665', 's766432214', 's653942473'] | [3060.0, 2940.0, 3064.0, 3064.0] | [17.0, 17.0, 18.0, 17.0] | [280, 339, 403, 335] |
p02724 | u828139046 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['x = int(input())\nwaru_500 = x // 500\namari = x % 500\nwaru_5 = amari // 5\n\nprint(waru_500 + waru_5)', 'x = int(input())\n\na = x // 500\namari = x % 500\nb = amari // 5\n\nprint(a * 1000 + b * 5)'] | ['Wrong Answer', 'Accepted'] | ['s138724421', 's945649229'] | [2940.0, 2940.0] | [17.0, 17.0] | [98, 86] |
p02724 | u831311378 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['x = int(input())\nprint((x/500)*1000 + ((x%500)/5)*5)\n', 'x = int(input())\nprint(x/500 + (x%500)/5)\n', 'x = int(input())\nprint(int(x/500)*1000 + int((x%500)/5)*5)\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s868876470', 's946601637', 's519837580'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [53, 42, 59] |
p02724 | u834983620 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['a = int("1000000000")\nresult = 0\n\nresult = int(a/500) * 1000\nb = a % 500\nresult += int(b/5) * 5\n\nprint(result)', 'a = int(input())\nresult = 0\n\nresult = int(a/500) * 1000\nb = a % 500\nresult += int(b/5) * 5\n\nprint(result)'] | ['Wrong Answer', 'Accepted'] | ['s656088454', 's580610861'] | [2940.0, 2940.0] | [17.0, 17.0] | [110, 105] |
p02724 | u841568901 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['x = int(input())\n\nq_1 = x//500\nr_1 = x%500\n\nr_2 = r_1//5\n\nprint(r_1*1000+r_2*5)', 'x = int(input())\n\nq_1 = x//500\nr_1 = x%500\n\nq_2 = r_1//5\n\nprint(q_1*1000+q_2*5)'] | ['Wrong Answer', 'Accepted'] | ['s504618250', 's893276815'] | [2940.0, 2940.0] | [18.0, 17.0] | [79, 79] |
p02724 | u843545660 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['# coding: utf-8\n# Your code here!\nI =int(input())\n\n\nif I ==0:\n print(I)\n \nif I>=500:\n J=I//500\n \n K=J*500*2#\n print(K)\n \n P=I-500*J\n if K==0:\n print(K)\n \n if P>=5:\n Q=P//5\n R=Q*5#\n \n A=K+R\n print(A)\n\nif I<500:\n M=I//5\n A=M*5#\n \n \n print(A)', '# coding: utf-8\n# Your code here!\nI =int(input())\n\n\n# if I ==0:\n# print(I)\n \nif I>=500:\n J=I//500\n \n K=J*500*2#\n \n \n P=I-500*J\n if P==0:\n print(K)\n \n if P>=5:\n Q=P//5\n R=Q*5#\n \n A=K+R\n print(A)\n\nif I<500:\n M=I//5\n A=M*5#\n \n \n print(A)'] | ['Wrong Answer', 'Accepted'] | ['s154924971', 's827956251'] | [3064.0, 3060.0] | [17.0, 17.0] | [349, 345] |
p02724 | u844196583 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['five_hundred = int(X / 500)\nfive = int((X - five_hundred*500)/5)\nprint(five_hundred*1000+five*5)', 'five_hundred = int(X / 500)\nfive = int((X - five_hundred*500)/5)\nprint(five_hundred*1000+five*5)', 'X = int(input())\n\nfive_hundred = int(X / 500)\nfive = int((X - five_hundred*500)/5)\nprint(five_hundred*1000+five*5)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s349544307', 's699251935', 's155498941'] | [9008.0, 9088.0, 9164.0] | [29.0, 20.0, 31.0] | [96, 96, 114] |
p02724 | u845620905 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['N = int(input())\na = N // 500\nN -= 500 * a\nb = N // 5\nprint(a * 500 + b * 5)', 'N = int(input())\na = N // 500\nN -= 500 * a\nb = N // 5\nprint(a * 1000 + b * 5)\n'] | ['Wrong Answer', 'Accepted'] | ['s046448427', 's336194620'] | [8924.0, 9184.0] | [28.0, 25.0] | [76, 78] |
p02724 | u845847173 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['X = int(input())\n\nans = 0\nans += (X // 500) * 1000\nans += ((X % 500) // 5) * 5\n', 'X = int(input())\n\nans = 0\nans += (X // 500) * 1000\nans += ((X % 500) // 5) * 5\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s840911626', 's932995182'] | [2940.0, 2940.0] | [18.0, 18.0] | [79, 90] |
p02724 | u846652026 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['i=int(input())\n\nprint((i//500)*1000+(i-(i//500*500)//5*5))\n', 'i=int(input())\n\nprint((i//500)*1000+((i-(i//500*500))//5*5))'] | ['Wrong Answer', 'Accepted'] | ['s717097584', 's893626780'] | [2940.0, 2940.0] | [17.0, 17.0] | [59, 60] |
p02724 | u848336553 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['x = input()\nbig = x // 500\nsmall = x % 500 // 5\ngrace = big + small\nprint(grace)', 'x = int(input())\nbig = x // 500\nsmall = x % 500 // 5\ngrace = big + small\nprint(grace)', 'x = int(input())\nbig = x // 500\nsmall = x % 500 // 5\ngrace = big*1000 + small*5\nprint(grace)'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s714853723', 's938717779', 's834249929'] | [3060.0, 2940.0, 3060.0] | [19.0, 17.0, 19.0] | [80, 85, 92] |
p02724 | u848462327 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['\ns = int(input())\n\nprint(int(s / 500) * 1000) + (int(s % 10 / 5) * 5)', '\ns = int(input())\nprint((int(s / 500) * 1000) + (int(s % 500 / 5) * 5))'] | ['Runtime Error', 'Accepted'] | ['s391483813', 's271220280'] | [2940.0, 2940.0] | [18.0, 17.0] | [106, 108] |
p02724 | u850243304 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['x = int(input())\n\na = x//500\nb = x-(a*500)\nc = b//5\nprint(sum((a*1000)+(c*5)))\n', 'x = int(input())\n\na = x//500\nb = x-(a*500)\nc = b//5\nd = (a*1000)+(c*5)\nprint(d)\n'] | ['Runtime Error', 'Accepted'] | ['s852728226', 's653536395'] | [9156.0, 9048.0] | [23.0, 27.0] | [79, 80] |
p02724 | u851706118 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['import math;\nx = int(input())\n\nq, mod = divmod(x, 500)\nmmod = math.floor(mod/5)\nprint(q, mod, mmod)\n\nans = 1000*q + 5*mmod\nprint(ans)', 'import math;\nx = int(input())\n\nq, mod = divmod(x, 500)\nmmod = math.floor(mod/5)\nans = 1000*q + 5*mmod\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s728909853', 's273269254'] | [3060.0, 2940.0] | [17.0, 18.0] | [133, 112] |
p02724 | u853728588 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['x = int(input())\nglad = x//*1000 + x%500//5*5\nprint(glad)\n', 'x = int(input())\nglad = x//500*1000 + x%500//5*5\nprint(glad)\n'] | ['Runtime Error', 'Accepted'] | ['s909237441', 's727429467'] | [8924.0, 9156.0] | [25.0, 27.0] | [58, 61] |
p02724 | u854612823 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['import math\nx = int(input())\n\na = math.floor(x/500)\na_1000 = a*1000\nprint(a)\n\namari = x % 500\nb = math.floor(amari/5)\nb_5 = b*5\nprint(amari)\n###\nprint(a_1000 + b_5)', 'import math\nx = int(input())\n\na = math.ceil(x/500)\na_1000 = a*1000\n\namari = x % 500\nb_5 = amari*5\n###\nprint(a_1000 + b_5)\n', 'import math\nx = int(input())\n\na = math.floor(x/500)\na_1000 = a*1000\n\namari = x % 500\nb = math.floor(amari/5)\nb_5 = b*5\n###\nprint(a_1000 + b_5)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s185571825', 's832228050', 's407051656'] | [3060.0, 2940.0, 3060.0] | [18.0, 18.0, 17.0] | [182, 140, 160] |
p02724 | u855665975 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['X = int(input())\ntmp = 0\n\nif X >= 500:\n tmp = X // 500 * 1000\n\nif 5 <= X < 500:\n tmp += X // 5 * 5\n\nprint(tmp) ', 'X = int(input())\ntmp = 0\n\nif X >= 500:\n tmp += (X // 500) * 1000\n X = X % 500\n\nif 5 <= X < 500:\n tmp += (X // 5) * 5\n\nprint(tmp)\n\n \n '] | ['Wrong Answer', 'Accepted'] | ['s722632065', 's174298855'] | [9096.0, 9016.0] | [27.0, 28.0] | [120, 152] |
p02724 | u857673087 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['X = int(input())\n\nprint((X//5)*5)', 'X = int(input())\n\nprint( (X//500)*1000 + (X%500//5)*5 )'] | ['Wrong Answer', 'Accepted'] | ['s932333783', 's031129742'] | [2940.0, 2940.0] | [17.0, 18.0] | [33, 55] |
p02724 | u859773831 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['n=int(input())\nprint(n//500 * 1000 + x//5 * 5)', 'n=int(input())\nx=n//500\nprint(x * 1000 + x//5 * 5)', 'n=int(input())\nprint(n//500 * 1000 + (n%500)//5 * 5)'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s605040421', 's606227656', 's141116780'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [46, 50, 52] |
p02724 | u864085306 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['num = int(input())\n\nhap1000 = num/500\nhap5 = (num-hap1000*500)/5\n\nprint(int(1000*hap1000+5*hap5))', 'num = int(input())\n\nhap1000 = num/500\nhap5 = (num-hap1000*500)/5\n\nprint(int(1000*hap1000+5*hap5))', 'num = int(input())\n\nhap1000 = int(num/500)\nhap5 = int((num-hap1000*500)/5)\nprint(int(1000*hap1000+5*hap5))'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s126612487', 's171668821', 's600911733'] | [2940.0, 2940.0, 3316.0] | [17.0, 17.0, 21.0] | [100, 100, 109] |
p02724 | u867616076 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['x = int(input())\na = (x/500)*1000\nx -= 500*(x/500)\nb = 5*(x/5)\nprint(a+b)\n', 'x = int(input())\na = (x/500)*1000\nx -= 500*(x/500)\nb = 5*(x/5)\nprint(a+b)\n', 'X = int(input())\n \nthousand = X // 500\nrest = X - thousand * 500\nfive = rest // 5\n \nprint(1000 * thousand + 5 * five)\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s601453082', 's625917629', 's731853411'] | [9160.0, 9056.0, 9152.0] | [29.0, 30.0, 30.0] | [74, 74, 118] |
p02724 | u869917163 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['X = int(input())\n\n500_cnt = X//500\nnew_X = X - 500_cnt * 500\n5_cnt = new_X // 5\nprint(500_cnt*1000 + 5_cnt*5)', 'X = int(input())\n \ncnt = X//500\nnew_X = X - cnt * 500\nncnt = new_X // 5\nprint(cnt*1000 + ncnt*5)'] | ['Runtime Error', 'Accepted'] | ['s334123136', 's315884849'] | [2940.0, 2940.0] | [17.0, 17.0] | [109, 96] |
p02724 | u871873383 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ["x=int(input('x: '))\ntot=int(x/500)\ny=x-tot*500\ntot=tot*1000 + int(y/5)*5\nprint(tot)", 'X=int(input())\ntot=int(X/500)\ny=X-tot*500\ntot=tot*1000 + int(y/5)*5\nprint(tot)'] | ['Wrong Answer', 'Accepted'] | ['s091884144', 's503357876'] | [2940.0, 2940.0] | [17.0, 17.0] | [83, 78] |
p02724 | u872323287 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ["X = int(input())\n\nif X == 0:\n print('高橋君は一文無しです。')\nelif X > 10 ** 9:\n print('高橋君は大富豪です。')\nelse:\n point_thousand = X // 500\n point_five = (X - (point_thousand * 500)) // 5\n total = (point_thousand * 1000) + (point_five * 5)\n print('500円硬貨' + str(point_thousand) + '枚。5円硬貨' + str(point_five) + '枚を含むように両替することで' +\n str(total) + 'の嬉しさを得ます。これが嬉しさの最大です。')", 'X = int(input())\npoint_thousand = X // 500\npoint_five = (X - (point_thousand * 500)) // 5\ntotal = (point_thousand * 1000) + (point_five * 5)\nprint(total)'] | ['Wrong Answer', 'Accepted'] | ['s340602049', 's595433582'] | [3060.0, 2940.0] | [17.0, 17.0] | [504, 153] |
p02724 | u873736356 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['X = int(input())\na = X // 500\n\nY = X - 500 * a\nb = Y // 5\nprint(a)\nprint(a * 1000 + b * 5)\n', 'X = int(input())\n\na, X= divmod(X, 500)\n\nb, X= divmod(X, 5)\n\nprint(a * 1000 + b * 5)\n'] | ['Wrong Answer', 'Accepted'] | ['s110622871', 's046141054'] | [2940.0, 2940.0] | [17.0, 17.0] | [91, 84] |
p02724 | u878291720 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['X = int(input())\n\ndiv = int(X/500)\nmod = int(X%500)\nhap = 0\n\nif div != 0:\n hap = i\nq = int(p/5)\nhap += q\n\nprint(hap)', 'X = int(input())\n \ndiv = int(X/500)\nmod = int(X%500)\nhap = 0\n \nif div != 0:\n hap = div*2\nq = int(mod/5)\nhap += q\n \nprint(hap)', 'X = int(input())\n \ndiv = int(X/500)\nmod = int(X%500)\nhap = 0\n \nif div != 0:\n hap = div*2\nq = int(mod/5)\nhap += q*5\n \nprint(hap)', 'X = int(input())\n \ndiv = int(X/500)\nmod = int(X%500)\nhap = 0\n \nif div != 0:\n hap = div*1000\nq = int(mod/5)\nhap += q*5\n \nprint(hap)'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s527030329', 's763928171', 's811257260', 's982142514'] | [2940.0, 3060.0, 2940.0, 3060.0] | [20.0, 17.0, 17.0, 17.0] | [117, 126, 128, 131] |
p02724 | u878545651 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ["def main():\n X = int(input())\n cnt500 = 0\n cnt5 = 0\n\n while X > 0:\n if X >= 500:\n X -= 500\n cnt500 += 1\n\n if 500 > X >= 0:\n X -= 5\n cnt5 += 1\n\n print(cnt5*5 + cnt500*1000)\n\n\nif __name__ == '__main__':\n main()", "def main():\n X = int(input())\n cnt500 = 0\n cnt5 = 0\n\n while X > 0:\n if X >= 500:\n X -= 500\n cnt500 += 1\n\n if 500 > X > 0 :\n X -= 5\n cnt5 += 1\n\n print(cnt5*5 + cnt500*1000)\n\n\nif __name__ == '__main__':\n main()", "def main():\n x = int(input())\n\n a = x // 500\n b = (x - (a * 500)) // 5\n c = (a * 1000) + (b * 5)\n print(c)\n\n\nif __name__ == '__main__':\n main()"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s513907255', 's834973259', 's541102859'] | [9028.0, 8988.0, 9084.0] | [220.0, 223.0, 34.0] | [284, 284, 161] |
p02724 | u878654696 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['x = int(input())\nprint(x//500*500*2+x%500)', 'x = int(input())\nprint(x//500*500*2+x%500//5*5)'] | ['Wrong Answer', 'Accepted'] | ['s054417887', 's450567354'] | [2940.0, 2940.0] | [19.0, 17.0] | [42, 47] |
p02724 | u884601206 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ["n=int(input())\nd=n//500\ne=n%500\nf=e//5\nprint('d*1000 + f*5)\n", 'n=int(input())\nd=n//500\ne=n%500\nf=e//5\nprint(d*1000+f*5)\n\n'] | ['Runtime Error', 'Accepted'] | ['s599074437', 's002389259'] | [2940.0, 2940.0] | [17.0, 17.0] | [60, 58] |
p02724 | u884679979 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['x=int(input())\n\nfive_hundred=int(x/500)\n\nfive=int((x-five_hundred)/5)\n\nprint(five_hundred*1000+five*5)', 'x=int(input())\n\nfive_hundred=int(x/500)\n\nfive=int((x-five_hundred*500)/5)\n\nprint(five_hundred*1000+five*5)\n'] | ['Wrong Answer', 'Accepted'] | ['s587166874', 's814434092'] | [2940.0, 2940.0] | [17.0, 17.0] | [102, 107] |
p02724 | u887222798 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['user = int(input())\nc500 = user//500\nuser -= c500*500\nc5 = user/5\nans = (c500*1000)+(c5*5)\nprint(ans)', 'user = int(input())\nc500 = user//500\nuser -= c500*500\nc5 = user//5\nans = (c500*1000)+(c5*5)\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s318143741', 's823169168'] | [2940.0, 2940.0] | [17.0, 17.0] | [101, 102] |
p02724 | u892882715 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['X = input()\n\nprint(X // 500 * 1000 + X % 500 // 5 * 5)', 'X = int(input())\n\nprint(X // 500 * 1000 + X % 500 // 5 * 5)'] | ['Runtime Error', 'Accepted'] | ['s640747231', 's466214541'] | [2940.0, 2940.0] | [17.0, 17.0] | [54, 59] |
p02724 | u895040371 | 2,000 | 1,048,576 | Takahashi loves gold coins. He gains 1000 _happiness points_ for each 500-yen coin he has and gains 5 happiness points for each 5-yen coin he has. (Yen is the currency of Japan.) Takahashi has X yen. If he exchanges his money so that he will gain the most happiness points, how many happiness points will he earn? (We assume that there are six kinds of coins available: 500-yen, 100-yen, 50-yen, 10-yen, 5-yen, and 1-yen coins.) | ['a = int(input())\nb = a/5\nprint(b/100 * 1000 + b%200 *5)', 'a = int(input())\nb = (a/5)/200\nc= (a/5)%200\nprint(b * 2000 + c*5)', 'X = int(input())\nprint((X//500*1000)+(X % 500)//5*5)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s523264703', 's714074481', 's608656101'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 18.0] | [55, 65, 52] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.