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
u268318377
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, b = divmod(x, 500)\nc = b // 5\n\nprint(a + c)', 'x = int(input())\n \na, b = divmod(x, 500)\nc = b // 5\n \nprint(a * 1000 + c * 5)']
['Wrong Answer', 'Accepted']
['s597274124', 's319099450']
[2940.0, 2940.0]
[19.0, 17.0]
[64, 77]
p02724
u268504600
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\nX = int(input())\nhappy_1000 = X//500\nX = math.floor(X%500)\nprint(X)\nhappy_5 = X//5\nres = happy_1000*1000 + happy_5*5\nprint(res)', 'import math\n\nX = int(input())\nhappy_1000 = X//500\nX = math.floor(X/500)\nhappy_5 = X//5\nres = happy_1000*1000 + happy_5*5\nprint(res)', 'import math\n\nX = int(input())\nhappy_1000 = X//500\nX = math.floor(X%500)\nhappy_5 = X//5\nres = happy_1000*1000 + happy_5*5\nprint(res)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s492097594', 's494470163', 's094371535']
[3060.0, 2940.0, 3060.0]
[17.0, 18.0, 18.0]
[140, 131, 131]
p02724
u268724304
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\nX = int(input())\n\na = int(X/500)\nb = int((X-500*a)/5\nprint("{}".format(1000*a+5*b))\n', '# -*- coding: utf-8 -*-\n\nX = int(input())\n\na = int(X/500)\nb = int((X-500*a)/5)\nprint("{}".format(1000*a+5*b))\n']
['Runtime Error', 'Accepted']
['s331238527', 's625817008']
[2940.0, 2940.0]
[17.0, 17.0]
[109, 110]
p02724
u269340384
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())\nc_500 = money//500\nc_5 = (money%500)/5\nprint(c_500*1000+c_5*5)', 'money = int(input())\nc_500 = money/500\nc_5 = (money%500)/5\nprint(1000*c_500+5*c_5)', 'money = int(input())\nc_500 = money//500\nc_5 = (money%500)//5\nprint(1000*c_500+5*c_5)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s443758208', 's543921956', 's752477485']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[83, 82, 84]
p02724
u272457181
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(int())\na = x//500\nb = (x%500)//5\nh = a*1000+b*5\nprint(h)\n', 'x = int(input())\na = x//500\nb = (x%500)//5\nh = a*1000+b*5\nprint(h)\n']
['Runtime Error', 'Accepted']
['s017088112', 's163500895']
[8940.0, 9156.0]
[25.0, 26.0]
[67, 67]
p02724
u273787824
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\nimport os\n\ndef remove_empty(target_list: list):\n empty_removed_list = [x for x in target_list if x]\n return empty_removed_list\n\ndef get_stdin_str_list():\n input_str = input().strip()\n input_str_list = input_str.split()\n return input_str_list\n\ndef get_stdin_int_list():\n input_str_list = get_stdin_str_list()\n input_int_list = list(map(input_str_list, int))\n return input_int_list\n\nX = get_stdin_int_list()[0]\nn_500 = int(X / 500)\nX = X % 500\nn_5 = int(X/5)\n\np = n_500*1000 + n_5*5\nprint(p)', '# coding: UTF-8\nimport os\n\ndef remove_empty(target_list: list):\n empty_removed_list = [x for x in target_list if x]\n return empty_removed_list\n\ndef get_stdin_str_list():\n input_str = input().strip()\n input_str_list = input_str.split()\n return input_str_list\n\ndef get_stdin_int_list():\n input_str_list = get_stdin_str_list()\n input_int_list = list(map(input_str_list, int))\n return input_int_list\n\nX = get_stdin_int_list()[0]\nn_500 = int(X / 500)\nX = X % 500\nn_5 = int(X/5)\n\np = n_500*1000 + n_5*5', '# coding: UTF-8\nimport os\n\ndef remove_empty(target_list: list):\n empty_removed_list = [x for x in target_list if x]\n return empty_removed_list\n\ndef get_stdin_str_list():\n input_str = input().strip()\n input_str_list = input_str.split()\n return input_str_list\n\ndef get_stdin_int_list():\n input_str_list = get_stdin_str_list()\n input_int_list = list(map(int, input_str_list))\n return input_int_list\n\nX = get_stdin_int_list()[0]\nn_500 = int(X / 500)\nX = X % 500\nn_5 = int(X/5)\n\np = n_500*1000 + n_5*5\nprint(p)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s130595744', 's996768334', 's129811372']
[3060.0, 3064.0, 3060.0]
[17.0, 18.0, 18.0]
[529, 520, 529]
p02724
u276686572
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.)
['yen = int(input())\n\nhappy = 1000 * int(yen//500) + 5 * (yen - (500 * int(yen//500)))//5\n\nprint(happy)', 'yen = int(input())\n\nhappy = 1000 * int(yen//500) + 5 * int((yen - (500 * int(yen//500)))//5)\n\nprint(hap)py)\n', 'yen = int(input())\n\nhappy = 1000 * int(yen//500) + 5 * int((yen - (500 * int(yen//500)))//5)\n\nprint(happy)\n']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s003207651', 's654349188', 's255771052']
[9164.0, 9032.0, 9084.0]
[25.0, 24.0, 26.0]
[202, 209, 208]
p02724
u277920185
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\nq = x // 500\ncnt += (q * 1000)\nw = x % 500\ne = w // 5\ncnt += (e * 5)\n', 'x=int(input())\ncnt = 0\nq = x // 500\ncnt += (q * 1000)\nw = x % 500\ne = w // 5\ncnt += (e * 5)\nprint(cnt)\n']
['Wrong Answer', 'Accepted']
['s021240005', 's466298176']
[2940.0, 2940.0]
[28.0, 18.0]
[92, 103]
p02724
u288638792
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.)
['all_money = int(input())\n\nbig_cnt = 0\nsml_cnt = 0\n\nall_money_mod = all_money\n\nwhile(all_money_mod >= 500):\n print(all_money_mod)\n all_money_q = all_money // 500\n all_money_mod = all_money % 500\n \n big_cnt += all_money_q\n \n if all_money_mod < 500:\n break\n \n all_money = all_money_mod\n\nall_money = all_money_mod\n \nwhile(all_money_mod >= 5):\n all_money_q = all_money // 5\n all_money_mod = all_money % 5\n \n sml_cnt += all_money_q\n \n if all_money_mod < 5:\n break\n \n all_money = all_money_mod\n \nhapiness = big_cnt * 1000 + sml_cnt * 5\nprint(hapiness)', 'x= int(input())\n\n\nquot = x//500\nrem = x%500\n\nprint((1000 * quot) + (rem//5 * 5) ) ']
['Wrong Answer', 'Accepted']
['s947467633', 's120732891']
[3064.0, 2940.0]
[17.0, 18.0]
[569, 112]
p02724
u289105044
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\n\n\n\n\nx=input()\nx1=int(x) \n\n\nr=x1/500\nx2=x1%500\n\n\nr1=x2/5\nx3=x2%5\n\nsam=(r*1000)+(r1*5)\n\nprint("sam")\n\n\n\n\n\n\n\n', '\n\n\n\n\n\nx=input()\nx1=int(x) \n\n\nr=x1/500\nx2=x1%500\n\n\nr1=x2/5\nx3=x2%5\n\nsam=(r*1000)+(r1*5)\n\nprint(sam)\n', '\n\n\n\n\n\nx=input()\nx1=int(x) \n\n\nr=int(x1/500)\nx2=x1%500\n\n\nr1=int(x2/5)\nx3=x2%5\n\nsam=(r*1000)+(r1*5)\n\nprint(sam)\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s351918672', 's808727790', 's123730385']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[391, 382, 392]
p02724
u291670969
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())\ntemp=0\ntemp+=(s//500)*1000\ns=s//500\ntemp+=(s//5)*5\nprint(temp)', 's=int(input())\ntemp=0\ntemp+=(s//500)*500\ns=s//500\ntemp+=(s//5)*5\nprint(temp)', 's=int(input())\ntemp=0\ntemp+=(s//500)*1000\ns=s%500\ntemp+=(s//5)*5\nprint(temp)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s147713037', 's660316779', 's729851309']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[77, 76, 76]
p02724
u297089927
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)*2+(X%500)//5)', 'X=int(input())\nprint((X//500)*1000+(X%500)//5*5)\n']
['Wrong Answer', 'Accepted']
['s853324952', 's260001176']
[2940.0, 2940.0]
[17.0, 17.0]
[43, 49]
p02724
u303913580
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()\ny=int(X)\nwhile y<1000:\n y-=1000\n z+=1\nresult=z*2+y*1\nstr_result=str(result)\nprint('str_result')", 'X=input()\ny=int(X)\nz=0\nwhile y>=1000:\n y-=1000\n z+=1\nresult=z*2+y*1\nstr_result=str(result)\nprint(str_result)', 'X=input()\ny=int(X)\nz=0\nwhile y>=500:\n y-=500\n z+=1\na=0\nwhile y>=5:\n y-=5\n a+=1\n \nresult=z*1000+a*5\nstr_result=str(result)\nprint(str_result)']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s277913339', 's492499853', 's339482701']
[2940.0, 3064.0, 3060.0]
[18.0, 263.0, 442.0]
[107, 110, 151]
p02724
u308684517
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 = [500, 100, 50, 10, 5, 1]\nans = 0\nfor i in Y:\n if i == 500:\n ans += (x // i)*1000\n elif i == 5:\n ans += (x // i)*5\n x -= (x//i)*i\n if x == 0:\n break\nprint(ans)', 'x = int(input())\na = x//500\nx -= 500*a\nb = x//5\nprint(a*1000 + b* 5)']
['Wrong Answer', 'Accepted']
['s671912526', 's692742353']
[3064.0, 2940.0]
[17.0, 19.0]
[213, 68]
p02724
u308914480
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%500//5)*5))', 'x=input()\na=x//500*1000\nb=x%500//5*5\nprint(a+b)', 'x=int(input())\na=x//500*1000\nb=x%500//5*5\nprint(a+b)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s017981363', 's303081328', 's021071943']
[9092.0, 9052.0, 9040.0]
[23.0, 28.0, 28.0]
[47, 47, 52]
p02724
u311509174
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(int(n / 500) * 1000 + int((n % 500) / 5))', 'n = int(input())\nprint(int(n / 500) * 1000 + int((n % 500) / 5) * 5)']
['Wrong Answer', 'Accepted']
['s044916771', 's010192345']
[2940.0, 2940.0]
[18.0, 17.0]
[64, 68]
p02724
u311928787
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()\nbigpleasure = x//500*1000\nsmallpleasure = x%500//5*5\n\nprint(bigpleasure+smallpleasure)', 'x = int(input())\nbigpleasure = (x//500)*1000\nsmallpleasure = ((x%500)//5)*5\n\nprint(bigpleasure+smallpleasure)']
['Runtime Error', 'Accepted']
['s935493785', 's888074722']
[2940.0, 2940.0]
[17.0, 17.0]
[98, 109]
p02724
u320098990
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 = x//500\n\nans_2 = (x-x%500)//5\n\nprint(ans**1000+ans_2*5)', 'x = input()\n\nprint(x//500 + x%500//5*5)', '\nx = int(input())\n\nprint(x//500 + x%500//5*5)', 'x = int(input())\n\nprint(x//500*1000 + x%500//5*5)']
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s566785394', 's787349233', 's999274880', 's542924810']
[9096.0, 9020.0, 9116.0, 8976.0]
[27.0, 23.0, 29.0, 27.0]
[78, 39, 45, 49]
p02724
u321035578
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(a+b)', "def main():\n x=int(input())\n a = x // 500\n x %= 500\n b = x // 5\n print(1000*a+5*b)\n\nif __name__=='__main__':\n main()\n"]
['Wrong Answer', 'Accepted']
['s831004110', 's762702356']
[2940.0, 3060.0]
[17.0, 18.0]
[58, 135]
p02724
u323776907
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 * 1000\nd = (a % 500) / 5\ne = d * 5\nprint(c + e)', 'X = input()\nX = int(X)\nif 0 <= X and X <= 10**9:\n a = X // 500\n b = a // 5\n print(a * 1000 + b * 5)\n ', 'X = input()\nX = int(X)\nif 0 <= X and X <= 10**9:\n a = X // 500\n b = (X % 500) // 5\n print(a * 1000 + b * 5)\n ']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s189279228', 's596831054', 's309509817']
[2940.0, 2940.0, 3064.0]
[17.0, 17.0, 17.0]
[82, 105, 113]
p02724
u346818994
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()\nnfh = X // 500\nnf = (X - 500 * nfh) // 5\nhappy = 1000 * nfh + 5 * nf\nprint(happy)', 'X = input()\nn500 = X // 500\nn5 = (X - 500 * n500) // 5\nhappy = 1000 * n500 + 5 * n5\nprint(happy)', 'X = input()\nn500 = X // 500\nn5 = (X - 500 * n500) // 5\nhappy = 1000 * n500 + 5 * n5\nprint(happy)', 'X = int(input())\nnfh = X // 500\nnf = (X - 500 * nfh) // 5\nhappy = 1000 * nfh + 5 * nf\nprint(happy)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s590122920', 's642268140', 's946515382', 's367310028']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 17.0]
[93, 96, 96, 98]
p02724
u348728239
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())import math\nX = int(input())\nA = X/500\nA=math.floor(A)\nQ=1000*A\nD=A*500\nY=X-D\nB = Y/5\nB = math.floor(B)\nB= 5*B\nprint(Q+B)', 'import math\nX = int(input())\nA = X/500\nA=math.floor(A)\nQ=1000*A\nD=A*500\nY=X-D\nB = Y/5\nB = math.floor(B)\nB= 5*B\nprint(int(Q+B))']
['Runtime Error', 'Accepted']
['s940215982', 's493735158']
[2940.0, 3060.0]
[17.0, 17.0]
[137, 126]
p02724
u350093546
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())\ni=x//500\na=(x-i)//5\nsum=i*1000+a*5\nprint sum\n', "x=int(input())\n\ni=x//500\na=(x-i)//5\nprint('i*1000+a*5')\n", 'x=int(input())\ni=x//500\na=(x-i)//5\nprint(i*1000+a*5)', 'x=int(input())\ni=x//500\na=(x-i*500)//5\nprint(i*1000+a*5)\n']
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s197189914', 's207847207', 's924615413', 's551939763']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 19.0, 17.0, 17.0]
[60, 56, 52, 57]
p02724
u350412774
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('{}'.format(str(int(x/500)*1000 + x%500))", "N=int(input())\nprint('{}'.format(str(int(N/500)*1000+int(N%500/5)*5)))"]
['Runtime Error', 'Accepted']
['s419931848', 's871129014']
[2940.0, 2940.0]
[17.0, 17.0]
[64, 70]
p02724
u357289011
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 * 2 + x % 500 // 5 * 5)\n', 'x = int(input())\nprint(x // 500 * 1000 + x % 500 // 5 * 5)\n']
['Wrong Answer', 'Accepted']
['s090837981', 's193572317']
[2940.0, 2940.0]
[17.0, 17.0]
[56, 59]
p02724
u362563655
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-500a\nb= y // 5\nhappy = a*1000+b*5\nprint(happy)', 'x=int(input())\na=(x-x%500)/500\ny=x-500a\nb=(y-y%50)/50\nprint(a*1000+b*5)', 'x=input()\na=x // 500\ny=x-500a\nb= y // 5\nprint(a*1000+b*5)', 'x=int(input())\na=int(x/500)\nb=int((x-500a)/5)\nprint(a*1000+b*5)', 'x=int(input())\na=x//500\ny=x-500a\nb=y//50\nprint(a*1000+b*5)', 'x=int(input())\na =x // 500\ny = x-500*a\nb = y // 5\nhappy = a*1000+b*5\nprint(happy)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s458984074', 's535921173', 's644441457', 's652666876', 's935258607', 's697165984']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 17.0, 18.0, 17.0]
[76, 71, 57, 63, 58, 81]
p02724
u365770301
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\na=int(x%500)\n\nb=int((x-a*500)%5)\n\nc=1000*a+5*b\n\nprint(c)', 'x=input()\n\na=int(x%500)\n\nb=int((x-a)%5)\n\nc=1000*a+5*b\n\nprint(c)', 'x=input()\n\na=int(x//500)\n\nb=int((x-a)//5)\n\nc=1000*a+5*b\n\nprint(c)', 'x=int(input())\n\na=x//500\n\nb=(x-a*500)//5\n\nprint(1000*a+5*b)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s062074498', 's332692103', 's889232971', 's422926387']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[67, 63, 65, 59]
p02724
u388297793
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)', 'x=int(input())\nprint(x//500*1000+x%500//5*5)']
['Wrong Answer', 'Accepted']
['s581794442', 's291976312']
[9140.0, 9140.0]
[27.0, 33.0]
[42, 44]
p02724
u388458865
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 = input()\nhappy = money//500+(money-money//500)//5\nprint(happy)', 'money = int(input())\nhappy1 = money//500\nhappy2 = (money-happy1*500)//5\nprint(happy1*1000+happy2*5)']
['Runtime Error', 'Accepted']
['s397326794', 's815644732']
[2940.0, 2940.0]
[18.0, 18.0]
[69, 99]
p02724
u392172834
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 \nhappy = 0\n \nhappy += int((money / 500) * 1000)\n \nmoney -= int((money / 500) * 500)\n \nhappy += int((money / 5) * 5)\n \nprint(happy)', "money = int(input())\n\nnum_500 = int(money / 500)\n\nremaining = int(money % 500)\n\nnum_5 = int(remaining / 5)\n\nprint('{}'.format(num_500 * 1000 + num_5 * 500 ))", 'money = int(input())\n\nhappy = 0\n\nhappy += (money / 500) * 1000\n\nmoney -= (money / 500) * 500\n\nhappy += (money / 5) * 5\n\nprint(happy)', "money = int(input())\n\nnum_500 = int(money / 500)\n\nremaining = int(money % 500)\n\nnum_5 = int(remaining / 5)\n\nprint('{}'.format(num_500 * 1000 + num_5 * 5 ))"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s110253961', 's324684230', 's981266007', 's081984551']
[3060.0, 2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0, 17.0]
[152, 157, 132, 155]
p02724
u392361133
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(2 * x + x % 500)', 'x = int(input())\nprint((x//500) * 1000 + ((x % 500) // 5) * 5)']
['Wrong Answer', 'Accepted']
['s770624721', 's744353419']
[2940.0, 9156.0]
[17.0, 24.0]
[39, 62]
p02724
u397638621
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("How much yen: "))\noutput = 0\nif X >= 500:\n output += 500 * (X // 500)\n X = X - (X % (X // 500))\noutput += 5 * (X // 5)\n\nprint(output)', 'X = int(input("How much yen: "))\noutput = 0\nif X >= 500:\n output += 500 * (X // 500)\n X = X - (500 % (X // 500))\noutput += 5 * (X // 5)\n\nprint(output)', 'X = int(input())\n\nprint(X // 500 * 1000 + X % 500 // 5 * 5)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s322858444', 's401824237', 's459507563']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 19.0]
[154, 156, 59]
p02724
u407891541
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())\n\nchanges=[500,100,50,10,5,1]\n\nresult=[]\n\ntmp=X\n\nfor c in changes:\n if(tmp==0):\n result.append(0)\n else:\n result.append(int(tmp/c))\n tmp=tmp%c\n\ntotal=0\n\nfor idx in range(len(result)):\n if(idx==0):\n total+=result[idx]*1000\n else:\n total+=result[idx]*changes[idx]\n\nprint(total)', '\nX=int(input())\n\nchanges=[500,100,50,10,5,1]\n\ntmp=X\ntotal=0\n\nresult=[]\n\nresult.append(int(tmp/500))\n\ntmp=tmp%500\n\nresult.append(int(tmp/5))\n\ntotal+=result[0]*1000\ntotal+=result[1]*5\n\nprint(total)']
['Wrong Answer', 'Accepted']
['s224032572', 's492285333']
[3064.0, 3064.0]
[17.0, 17.0]
[337, 195]
p02724
u411858517
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 = X // 500\nX = X - 500 * ans\nans += X // 5\nprint(ans)', 'X = int(input())\n\nans = (X // 500) * 1000\nX = X - 500 * ans\nans += (X // 5) * 5\nprint(ans)', 'x = int(input())\n\nans = x // 500 + (x - (x // 500) * 500) // 5\nprint(ans)', 'X = int(input())\n\nans = (X // 500) * 1000\nX = X - 500 * (X // 500)\nans += (X // 5) * 5\nprint(ans)']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s147137901', 's331335646', 's731948767', 's821321208']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[75, 90, 73, 97]
p02724
u421693050
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, re\nimport math\n \ndef input(): return sys.stdin.readline().strip()\ndef INT(): return int(input())\ndef MAP(): return map(int, input().split())\ndef LIST(): return list(map(int, input().split()))\nsys.setrecursionlimit(10 ** 9)\nINF = float('inf')\nMOD = 10 ** 9 + 7\n\n# -*- coding: utf-8 -*-\n\nx = INT()\na = math.floor(x / 500)\nb = math.floor((x - (a * 500)) / 5)\nprint(a)\nprint(b)\nprint(a * 1000 + b * 5)", "import sys, re\nimport math\n \ndef input(): return sys.stdin.readline().strip()\ndef INT(): return int(input())\ndef MAP(): return map(int, input().split())\ndef LIST(): return list(map(int, input().split()))\nsys.setrecursionlimit(10 ** 9)\nINF = float('inf')\nMOD = 10 ** 9 + 7\n\n# -*- coding: utf-8 -*-\n\nx = INT()\nif x == 0:\n print(0)\nelse:\n a = math.floor(x / 500)\n b = math.floor((x - (a * 500)) / 5)\n print(a * 1000 + b * 5)"]
['Wrong Answer', 'Accepted']
['s649199445', 's953399202']
[3188.0, 3316.0]
[22.0, 22.0]
[409, 433]
p02724
u425762225
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\nl=[]\nfor i in range(int(X/500)+1):\n for j in range(int(X/5)+1):\n l.append(1000*i+5*j)\n \ns = sorted(l,reverse=True)\nprint(s[0])', 'X = int(input())\n\na = int(X/500)\nb = (X - 500*a)/5\nH = 1000 * a + 5 * b\nprint(int(H))', 'X = int(input())\n\na = int(X/500)\nb = int((X - 500*a)/5)\nH = 1000 * a + 5 * b\nprint(H)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s219951928', 's588514064', 's660505293']
[449944.0, 2940.0, 2940.0]
[2134.0, 18.0, 17.0]
[151, 85, 85]
p02724
u431349272
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\ny = X//500\nz = X%500\na = z//5 \n\nA = 1000*y+5*a\nprint(a)', 'X = input()\nX = int(X)\ny = X//500\nz = X%500\na = z//5 \n\nA = 1000*y+5*a\nprint(A)\n']
['Runtime Error', 'Accepted']
['s396224108', 's554686673']
[2940.0, 2940.0]
[17.0, 18.0]
[68, 79]
p02724
u431484963
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 = int(n/500)\n\namari = n%500\n\nb = amari/5\nans = int(a*1000+b*5)\nprint(ans)', 'n = int(input())\na = int(n/500)\n\namari = n%500\n\nb = int(amari/5)\nans = int(a*1000+b*5)\nprint(ans)']
['Wrong Answer', 'Accepted']
['s252801961', 's376179548']
[2940.0, 2940.0]
[17.0, 18.0]
[92, 97]
p02724
u432251613
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 q1,r1 = divmod(X,500)\n q2 = int(r1/500)\n ans = 1000*q1 + 5*q2\n print(ans)\n\nmain()\n', 'def main():\n X = int(input())\n \n p = int(X/500)\n q = int((X-p*500)/5)\n ans = 1000*p + 5*q\n print(ans)\n\nmain()\n']
['Wrong Answer', 'Accepted']
['s880925160', 's725145487']
[2940.0, 2940.0]
[17.0, 18.0]
[128, 222]
p02724
u432518223
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 = x // 500\nb = (x % 500)//5\n\ns = a * 1000 + b * 5\n\nprint(s)\n', 'x = int(input())\n\na = x // 500\nb = (x % 500)//5\n\ns = a * 1000 + b * 5\n\nprint(s)\n']
['Runtime Error', 'Accepted']
['s706624808', 's271583395']
[2940.0, 2940.0]
[17.0, 17.0]
[62, 80]
p02724
u437215432
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.)
['# ABC160B\n\ndef f(x):\n joy = x // 500 * 1000\n x %= 500\n joy += x // 5 * 5\n print(joy)\n\nx = int(input())\nf(x)\nf(0)\nf(1000000000)\n', 'def f(x):\n joy = x // 500 * 1000\n x %= 500\n joy += x // 5 * 5\n print(joy)\n\nx = int(input())\nf(x)\n']
['Wrong Answer', 'Accepted']
['s936154774', 's169049567']
[2940.0, 2940.0]
[17.0, 17.0]
[139, 109]
p02724
u438189153
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())\nx-=(x//500)*500\ny=x//5\nprint((x//500)*1000+5*y)\n', 'x=int(input())\ny=x//500\nz=x-500*y\na=z//5\nprint(1000*y+a*5)\n\n']
['Wrong Answer', 'Accepted']
['s818524634', 's623079670']
[9140.0, 9160.0]
[28.0, 27.0]
[63, 60]
p02724
u440608859
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)*500+((n%500)//5)*5)', 'n=int(input())\nprint((n//500)*1000+((n%500)//5)*5)']
['Wrong Answer', 'Accepted']
['s060846620', 's353457526']
[2940.0, 2940.0]
[17.0, 19.0]
[49, 50]
p02724
u440613652
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\ncnt=0\n\nif n>=500:\n cnt+=n//500\n n=n%500\n \ncnt+=n//5\n\nprint(cnt)', 'n=int(input())\ncnt=0\n\nif n>=500:\n x=n//500\n n=n%500\n cnt+=(1000*x)\n\ncnt+=(5*n//5)\n\nprint(cnt)', 'n=int(input())\ncnt=0\n\nif n>=500:\n x=n//500\n n=n%500\n cnt+=(1000*x)\ncnt+=(5*(n//5))\n\nprint(cnt)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s541076832', 's597490579', 's233081753']
[9160.0, 9160.0, 9096.0]
[29.0, 27.0, 28.0]
[82, 96, 97]
p02724
u443972048
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=0\nb=0\naper=0\nif x!=0:\n a=x//500\n aper=x%500\n\nif aper != 0:\n b= b/5\n bper = b%5\n\nresult = (a * 1000) + (b*5)\n\nprint(int(result))\n', 'x = int(input())\n\na=0\nb=0\naper=0\nif x!=0:\n a=x//500\n aper=x%500\n\nif aper != 0:\n\n b= aper//5\n bper = aper%5\n\nresult = (a * 1000) + (b*5)\n\nprint(int(result))\n\n\n\n']
['Wrong Answer', 'Accepted']
['s469627949', 's161600090']
[3064.0, 2940.0]
[17.0, 18.0]
[160, 171]
p02724
u452512115
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 >= 500:\n q = X // 500 \n mod = X % 500 \n f = mod // 5\n print(q*1000+f*5)\nelse:\n f = X // 5\n print(f*5', 'X = int(input())\nif X >= 500:\n q = X // 500 \n mod = X % 500 \n f = mod // 5\n print(q*1000+f*5)\nelse:\n f = X // 5\n print(f*5)']
['Runtime Error', 'Accepted']
['s217933108', 's102999008']
[2940.0, 2940.0]
[17.0, 18.0]
[128, 129]
p02724
u453623947
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 / 500) * 1000 + ((x % 500) / 5) * 5)\n', 'x = int(input())\n\nprint((x / 500) + ((x % 500) / 5))\n', 'x = int(input())\n\nprint((x // 500) * 1000 + ((x % 500) // 5) * 5)\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s224080657', 's786647031', 's447644364']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[64, 53, 66]
p02724
u454472984
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=list(input())\nif s[2]==s[3] and s[4]==s[5]:\n print("Yes")\nelse:\n print("No")', 'X=int(input())\nhappy=(X//500)*1000\nleft=X%500\nhappy+=(left//5)*5\nprint(happy)']
['Runtime Error', 'Accepted']
['s886739690', 's021215601']
[2940.0, 2940.0]
[17.0, 17.0]
[80, 77]
p02724
u467177102
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())\ni=0\nu=0\nwhile 500<=x:\n x-=500\n i+=1\nwhile x>=5:\n x-=5\n u+=1\nprint(5*i+u)', 'x=int(input())\ni=0\nu=0\nwhile 500>=x:\n x-=500\n i+=1\nwhile >=5:\n x-=5\n u+=1\nprint(5*i+u)', 'x=int(input())\ni=0\nu=0\nwhile 500>=x:\n x-=500\n i+=1\nwhile x<=5:\n x-=5\n u+=1\nprint(5*i+u)\n', 'x=int(input())\ni=0\nu=0\nwhile 500<=x:\n x-=500\n i+=1\nwhile x>=5:\n x-=5\n u+=1\nprint(1000*i+5*u)']
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s031918337', 's389691805', 's506709931', 's769698391']
[9112.0, 8912.0, 9096.0, 8928.0]
[250.0, 26.0, 2205.0, 261.0]
[99, 98, 100, 104]
p02724
u474122160
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())\nhp = (a-(a%500))/500\nf=(a%500)\nct=int(hp)*1000\nct+=int((f-(a%5))/5)*5', 'a=int(input())\nhp = (a-(a%500))/500\nf=(a%500)\nct=int(hp)*1000\nct+=int((f-(a%5))/5)*5\nprint(ct)']
['Wrong Answer', 'Accepted']
['s816498053', 's651670510']
[2940.0, 2940.0]
[17.0, 17.0]
[84, 94]
p02724
u474484450
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\nq1, mod1 = divmod(x, 500)\nq2, mod2 = divmod(mod1, 5)\n\nprint(mod1*1000 + mod2*5)', 'x = int(input())\n\nq1, mod1 = divmod(x, 500)\nq2, mod2 = divmod(mod1, 5)\n\nprint(q1*1000 + q2*5)']
['Wrong Answer', 'Accepted']
['s426729253', 's329877934']
[2940.0, 2940.0]
[17.0, 17.0]
[97, 93]
p02724
u480138356
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\ninput = sys.stdin.readline\n\ndef main():\n X = int(input())\n ans = 0\n ans += X//500\n ans = ans * 1000 + X - ans * 500\n print(ans)\n\n\nif __name__ == "__main__":\n main()', 'import sys\ninput = sys.stdin.readline\n\ndef main():\n X = int(input())\n X -= X%5\n tmp = X//500\n print(tmp * 500 + X)\n\n\nif __name__ == "__main__":\n main()']
['Wrong Answer', 'Accepted']
['s966144197', 's914425770']
[2940.0, 2940.0]
[18.0, 17.0]
[193, 166]
p02724
u482883507
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=0\ns+=(n//500)\nn=n%500\ns+=(n//5)\nprint(s)', 'n=int(input())\ns=0\ns+=1000*(n//500)\nn=n%500\ns+=(n//5)*5\nprint(s)\n']
['Wrong Answer', 'Accepted']
['s394180507', 's072958797']
[2940.0, 2940.0]
[17.0, 17.0]
[57, 65]
p02724
u483873684
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())\ntener=int(n/500)\nres=n-tener\nfiver=int(res/5)\nprint((tener*1000)+(fiver*5))', 'n=int(input())\ntener=int(n/500)\nres=n-(tener*500)\nfiver=int(res/5)\nprint((tener*1000)+(fiver*5))']
['Wrong Answer', 'Accepted']
['s161638625', 's687975267']
[2940.0, 2940.0]
[17.0, 17.0]
[90, 96]
p02724
u486957057
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, B = divmod(X, 500)\nC, D = divmod(X, 5)\n \nprint(A * 1000 + C * 5)', 'X = int(input())\n\nA, B = divmod(X, 500)\nC, D = divmod(X, 5)\n\nprint((A * 1000) + (C * 5))\n', 'X = int(input())\n \nA, X = divmod(X, 500)\nC, X = divmod(X, 5)\n \nprint((A * 1000) + (C * 5))']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s386506283', 's606450609', 's616481760']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[86, 89, 90]
p02724
u492414556
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 solve():\n val = int(input())\n print(val/500 * 1000 + (val%500)/5 * 5)\nsolve()', 'def solve():\n val = int(input())\n print(val//500 * 1000 + (val%500)//5 * 5)\nsolve()']
['Wrong Answer', 'Accepted']
['s124726771', 's726751773']
[2940.0, 2940.0]
[17.0, 19.0]
[83, 85]
p02724
u497188176
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=0\nG=0\nN=0\nM=0\nZ=0\nN=int(X/500)\nM=int(X%500)\nZ=int(M/5)\nN=N+Z\nfor i in range(0,N):\n if X-500:\n X=X-500\n G=G+1000\n elif X-5:\n X=X-5\n G=G+5\n else:\n break\n \nprint(G)', 'X=int(input())\nA=0\nG=0\nN=0\nM=0\nZ=0\nN=X/500\nM=int(X%500)\nZ=M/5\nN=N+Z\nfor i in range(0,N):\n if X-500:\n X=X-500\n G=G+1000\n elif X-5:\n X=X-5\n G=G+5\n else:\n break\n \nprint(G)\n \n ', 'X=int(input())\nA=0\nG=0\nN=0\nM=0\nZ=0\nN=X/500\nM=int(X%500)\nZ=M/5\nN=N+Z\nfor i in range(0,N):\n if X-500:\n X=X-500\n G=G+1000\n elif X-5:\n X=X-5\n G=G+5\n else:\n break\n \nprint(G)', 'X=int(input())\nN=int(input())\nZ=int(input())\nA=0\nG=0\nN=0\nM=0\nZ=0\nN=X/500\nM=int(X%500)\nZ=M/5\nN=N+Z\nfor i in range(0,N):\n if X-500:\n X=X-500\n G=G+1000\n elif X-5:\n X=X-5\n G=G+5\n else:\n break\n \nprint(G)\n', 'X=int(input())\nN=int(input())\nZ=int(input())\nA=int(input())\nG=int(input())\nM=int(input())\nA=0\nG=0\nN=0\nM=0\nZ=0\nN=X/500\nM=int(X%500)\nZ=M/5\nN=N+Z\nfor i in range(0,N):\n if X-500:\n X=X-500\n G=G+1000\n elif X-5:\n X=X-5\n G=G+5\n else:\n break\n \nprint(G)', 'X=int(input())\nA=0\nG=0\nN=0\nM=0\nZ=0\nN=int(X/500)\nM=int(X%500)\nZ=int(M/5)\nN=N+Z\nfor i in range(0,N):\n if X>=500:\n X=X-500\n G=G+1000\n elif X>=5:\n X=X-5\n G=G+5\n else:\n break\n \nprint(G)\n']
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s215001357', 's303643210', 's485021256', 's530144748', 's949973502', 's450416490']
[3060.0, 3064.0, 3060.0, 3064.0, 3064.0, 3064.0]
[489.0, 18.0, 18.0, 17.0, 17.0, 415.0]
[229, 233, 219, 250, 294, 232]
p02724
u498202416
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 -= a * 500\nb = X // 5\nprint(a,b)\nprint(a*1000+5*', 'X = int(input())\na = X // 500\nX -= a * 500\nb = X // 5\nprint(a*1000+5*b)']
['Runtime Error', 'Accepted']
['s879409602', 's731814651']
[2940.0, 2940.0]
[17.0, 17.0]
[80, 71]
p02724
u498975813
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())\nans = 0\nif math.floor(x/500) >=1 :\n ans += math.floor(x/500)*1000\n x -= math.floor(x/500)*500\nif x > 0 and math.floor(x/5) >=1 :\n print("a")\n ans += math.floor(x/5)*5\nprint(ans)', 'import math\nx = int(input())\nans = 0\nif math.floor(x/500) >=1 :\n ans += math.floor(x/500)*1000\n x -= math.floor(x/500)*500\nif x > 0 and math.floor(x/5) >=1 :\n ans += math.floor(x/5)*5\nprint(ans)']
['Wrong Answer', 'Accepted']
['s820346447', 's684437801']
[3060.0, 3060.0]
[18.0, 17.0]
[219, 204]
p02724
u500990280
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())\nfhun = X//500\namari = X % 500\nfiv = amari//5\nure = fhun + fiv', 'X = int(input())\nfhun = X//500\namari = X % 500\nfiv = amari//5\nure = fhun + fiv\n\nprint(ure)', 'X = int(input())\nfhun = X//500\namari = X % 500\nfiv = amari//5\nure = fhun*1000 + fiv*5\n\nprint(ure)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s445638021', 's596392371', 's275626615']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0]
[78, 90, 97]
p02724
u502200133
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())\nbig = money // 500\namari = money % 500\nsmall = amari // 5\nprint(big + small)', 'money = int(input())\nbig = money // 500 * 1000\nsmall = (money % 500) // 5 * 5\nprint(big + small)']
['Wrong Answer', 'Accepted']
['s621567356', 's219151419']
[2940.0, 2940.0]
[17.0, 18.0]
[97, 96]
p02724
u507457124
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())\nhappy = (X // 500) * 1000 + ((X % 500) // 5) * 5\nhappy', 'X = int(input())\nhappy = (X // 500) * 1000 + ((X % 500) // 5) * 5\nprint(happy)']
['Wrong Answer', 'Accepted']
['s257358961', 's953619988']
[9156.0, 9108.0]
[27.0, 30.0]
[71, 78]
p02724
u508842013
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 INT(): x = int(input()) return x\ndef LIST(): x = list(map(int, input().split())) return x\n\nX =INT()\n\np = X//500\nq= (X%500)//5\n\nprint(p*1000+q*5)\n', 'X = int(input())\n\np = X//500\nq= (X%500)//5\n\nprint(p*1000+q*5)\n']
['Runtime Error', 'Accepted']
['s018190914', 's089274963']
[2940.0, 2940.0]
[18.0, 17.0]
[149, 62]
p02724
u513929200
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.)
['l = int(input())\nif l>=1000:\n print(l*2)\nelif l>=0 and l<1000:\n print(l)', 'coin = int(input("Enter your coin to exchange: "))\nif coin>= 100:\n\tprint(2*coin)\nelif coin<=50:\n print(coin)\nelse:\n print("Invalid")\n\t', 'l = input()\nif l>1000:\n print(l*2)\nelif l>=0 and l<1000:\n print(l)\nelse:\n print("Invalid")', 'coin = int(input("Enter your coin to exchange: "))\nhappy_coin = 2*coin\nprint(happy_coin)', 'l = int(input())\nif l>=1000:\n print(l*2)\nelif l>=0 and l<1000:\n print(l)\nelse:\n print("Invalid")', 'l = int(input())\nprint(int(l/500)*1000+int((l%500)/5)*5)']
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s011941229', 's062252225', 's193537537', 's551437976', 's752488468', 's440963948']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 18.0, 17.0]
[78, 136, 93, 88, 105, 56]
p02724
u515875405
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.)
['coin = int(input())\n\nhappy1 = ( coin // 500 ) * 1000\nhappy2 = (coin // 500 ) // 5 * 5\n\nprint( happy1 + happy2 )', 'coin = int(input())\n \nhappy1 = ( coin // 500 ) * 1000\nhappy2 = (coin % 500 ) // 5 * 5\n \nprint( happy1 + happy2 )']
['Wrong Answer', 'Accepted']
['s036052252', 's329023567']
[2940.0, 2940.0]
[17.0, 17.0]
[111, 112]
p02724
u516020311
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())\ngold = x % 500\nsilver = (x - 500*g) % 5\nfun = gold*1000 + silver*5\nprint(fun)', 'x = int(input())\ngold = x % 500\nsilver = (x - 500*gold) % 5\nfun = gold*1000 + silver*5\nprint(fun)\n', 'x = int(input())\ngold = x % 500\nsilver = (x - 500*gold) % 5\nprint(gold*1000 + silver*5)\n', 'x = int(input())\ngold = int(x/500)\nsilver = int((x - 500*gold)/5)\nprint(gold*1000 + silver*5)\n']
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s253925339', 's612497938', 's978462048', 's324260604']
[2940.0, 2940.0, 3064.0, 2940.0]
[17.0, 17.0, 17.0, 18.0]
[94, 98, 88, 94]
p02724
u516579758
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.)
['yen=int(input())\nbig=yen//500\nsmall=(yen-500*big)//5\nprint(1000*big+5*small', 'yen=int(input())\nbig=yen//500\nsmall=(yen-500*big)//5\nprint(1000*big+5*small)']
['Runtime Error', 'Accepted']
['s643583685', 's532565674']
[2940.0, 2940.0]
[17.0, 17.0]
[75, 76]
p02724
u516927307
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%500//5 * 5)', 'x = inpput()\nprint(x//500 * 1000 + x%500//5 * 5)', 'x = int(input())\nprint(x//500 * 1000 + x%500//5 * 5)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s502206232', 's787602639', 's114103215']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[47, 48, 52]
p02724
u520331522
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\nb = (n-n%500) // 5\nprint(1000 * a + 5 * b)', 'n = int(input())\na = n // 500\nb = (n-500*a) // 5\nprint(1000 * a + 5 * b)']
['Wrong Answer', 'Accepted']
['s861686387', 's262158724']
[2940.0, 2940.0]
[17.0, 17.0]
[72, 72]
p02724
u530650201
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.)
['b=int(input())\nresult=int(b/500)*1000\nb%=500\nresult+=b\nprint(result)', 'b=int(input())\nresult=int(b/500)*1000\nb%=500\nresult+=int(b/5)*5\nprint(result)']
['Wrong Answer', 'Accepted']
['s737848003', 's883714651']
[2940.0, 3064.0]
[17.0, 18.0]
[68, 77]
p02724
u531219227
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\nwhile (not X == 0) and (X%500==0) or (X%5==0):\n if X%500==0:\n cnt+=1000\n X - 500\n elif X%5 == 0:\n cnt+=5\n X-5\n else:\n break\n \nprint(cnt)', 'X = int(input())\n\n\nX1 = X // 500\nX2 = X % 500\nX3 = X2 // 5\n\ncnt = X1 * 1000 + X3*5\n\nprint(cnt)']
['Wrong Answer', 'Accepted']
['s851376791', 's369859255']
[3060.0, 2940.0]
[2104.0, 18.0]
[180, 94]
p02724
u531456543
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,b)\nprint(a*1000+b*5)', 'x = int(input())\na = x//500\nb = (x%500)//5\nprint(a*1000+b*5)']
['Wrong Answer', 'Accepted']
['s739693138', 's645626864']
[2940.0, 3064.0]
[17.0, 17.0]
[71, 60]
p02724
u536685012
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\n\nl500 = x // 500\n\nx -= l500 * 500\n\nl5 = x // 5\n\nprint(l500 * 1000 + l5)\n', 'x = int(input())\n\nans = 0\n\nwhile x >= 500:\n x -= 500\n ans += 1000\n\nwhile ans >= 5:\n x -= 5\n ans += 5\n\nprint(ans)', 'x = int(input())\n\nans = 0\n\nl500 = x // 500\n\nx -= l500 * 500\n\nl5 = x // 5\n\nprint(l500 + l5)', "x = int(input())\n\nans = 0\n\nl500 = x // 500\n\n#print(l500)#\nx -= l500 * 500\n#print(x)#\nl5 = x // 5\n#print(l5)#\nprint(l500 * 1000 + l5 * 5)\n#print(' ')#\n"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s390624021', 's872148327', 's874648157', 's134066711']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 2104.0, 17.0, 18.0]
[98, 116, 90, 167]
p02724
u537070292
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())\nfh = n // 500\nmoney -= 500 * fh\ngoen = money // 5\n\npoint = 1000 * fh + 5 * goen\nprint(point)', 'money = int(input())\nfh = money // 500\nmoney -= 500 * fh\ngoen = money // 5\n\npoint = 1000 * fh + 5 * goen\nprint(point)\n']
['Runtime Error', 'Accepted']
['s235638871', 's370957395']
[2940.0, 2940.0]
[17.0, 17.0]
[113, 118]
p02724
u540631540
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())\nfive_hundred = 1000 * (x // 500)\nfive = 5 * (x % 500) // 5\nprint(five_hundred + five)', 'x = int(input())\nc_fh = x // 500\np_fh = c_fh * 1000\nc_f = (x % 500) // 5\np_f = c_f *5\nprint(p_fh + p_f)']
['Wrong Answer', 'Accepted']
['s768205322', 's287434182']
[3060.0, 2940.0]
[18.0, 17.0]
[102, 103]
p02724
u546573715
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())\n\nS500 = S/500\n\nS_nokori = S-S500*500\n\nS5 = S_nokori/5\n\nprint(1000*S500 + 5*S5)', 'S = int(input())\nSS = S//500\nSSS = (S%500)//5\nprint(1000*SS + 5*SSS)']
['Wrong Answer', 'Accepted']
['s191942454', 's013750259']
[2940.0, 2940.0]
[17.0, 17.0]
[95, 68]
p02724
u546853743
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=input()\nk=n%500\nn -= k*500\nn //= 5\nprint(k*1000+n*5)', '\nn=int(input())\nk=n%500\nn -= k*500\nn //= 5\nprint(k*1000+n*5)', 'n=int(input())\nk=n//500\nn -= k*500\nn //= 5\nprint(k*1000+n*5)']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s156097161', 's390882596', 's741969676']
[8904.0, 9004.0, 9160.0]
[21.0, 30.0, 33.0]
[54, 60, 60]
p02724
u552201227
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())\ncounta = 0\ncountb = 0\nwhile X%500 == 0:\n counta +=1\n X//=500\n \nwhile X%5==0:\n countb +=1\n X//=5\nprint(1000*counta+5*countb)', 'X = int(input())\ncounta = 0\ncountb = 0\nwhile X>=500:\n counta +=1\n X -= 500\n \nwhile X>=5:\n countb +=1\n X -= 5\nprint(1000*counta+5*countb)\n']
['Wrong Answer', 'Accepted']
['s096404991', 's212648630']
[2940.0, 3060.0]
[2103.0, 408.0]
[145, 142]
p02724
u561083515
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())\nans = X // 500 * 1000\nX -= X // 500 * \nans += (X // 5) * 5\nprint(ans)', 'X= int(input())\nans = X // 500 * 1000\nX -= X // 500 * 500\nans += (X // 5) * 5\nprint(ans)']
['Runtime Error', 'Accepted']
['s698152238', 's577679408']
[2940.0, 2940.0]
[17.0, 18.0]
[85, 88]
p02724
u564657854
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%500\nprint(a*1000+b*5)', 'x = int(input())\nif x >= 500:\n a = int(x/500)\n b = x%500\n print(a*1000+b*5)\nelse:\n print(int(x/5)*5)', 'x = int(input())\nif x >= 500:\n a = int(x/500)\n b = x%500\n c = int(b/5)\n print(a*1000+c*5)\nelse:\n print(int(x/5)*5)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s232711313', 's393370890', 's470800132']
[2940.0, 3064.0, 2940.0]
[17.0, 18.0, 17.0]
[59, 104, 119]
p02724
u565476466
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\ncnt = 0\nwhile X >= 500:\n\tX -= 500\n\tcnt += 1000\n\nwhile X >= 5:\n\tX -= 5\n\tcnt += 10\n\nprint(cnt)', 'X = int(input())\n\ncnt = 0\nwhile X >= 500:\n\tX -= 500\n\tcnt += 1000\n\nwhile X >= 5:\n\tX -= 5\n\tcnt += 5\n\nprint(cnt)']
['Wrong Answer', 'Accepted']
['s382561382', 's465268345']
[2940.0, 2940.0]
[441.0, 372.0]
[110, 109]
p02724
u569776981
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\nb /= 5\nprint(int(a * 1000 + b * 5))', 'x = int(input())\na = int(x // 500)\nb = int((x % 500) / 5)\n\nprint(int(a * 1000 + b * 5))']
['Wrong Answer', 'Accepted']
['s456643393', 's793194829']
[9076.0, 9096.0]
[27.0, 28.0]
[77, 87]
p02724
u571395477
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 \n x // 500 = a\n x %= 500\n\n x // 5 = b\n \n ans = 1000 * a + 5 * b\n print(ans)\n\nmain()\n\n\n', 'def main():\n x = int(input())\n \n a = x // 500\n x %= 500\n\n b = x // 5\n \n ans = 1000 * a + 5 * b\n print(ans)\n\nmain()\n\n\n']
['Runtime Error', 'Accepted']
['s731609939', 's926878197']
[2940.0, 2940.0]
[17.0, 18.0]
[141, 141]
p02724
u572439791
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 - a * 500) // 5\nprint(1000*5+5*b)', 'x = int(input())\na = x // 500\nb = (x - a * 500) // 5\nprint(1000*a+5*b)']
['Wrong Answer', 'Accepted']
['s036154752', 's246788252']
[2940.0, 2940.0]
[17.0, 17.0]
[70, 70]
p02724
u574590381
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())\n\na=x//500\nb=x%500\n\ns=(1000*a)+(b)\nprint(s)\n', '\nx=int(input())\n\na=x//500\nb=x%500-(x%5) \n\ns=(1000*a)+(b)\nprint(s)\n']
['Wrong Answer', 'Accepted']
['s616694624', 's132998060']
[2940.0, 2940.0]
[17.0, 17.0]
[59, 66]
p02724
u579699847
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 bisect,collections,copy,itertools,math,string\ndef I(): return int(input())\ndef S(): return input()\ndef LI(): return list(map(int,input().split()))\ndef LS(): return list(input().split())\n##################################################\nX = I()\n_500 = X//500\n_nokori = (X%500)//5\nprint(_nokori)\nprint(_500*1000+_nokori*5)\n', 'import bisect,collections,copy,itertools,math,string\ndef I(): return int(input())\ndef S(): return input()\ndef LI(): return list(map(int,input().split()))\ndef LS(): return list(input().split())\n##################################################\nX = I()\n_500 = X//500\n_nokori = (X%500)//5\nprint(_500*1000+_nokori*5)\n']
['Wrong Answer', 'Accepted']
['s810623839', 's318014516']
[4140.0, 4012.0]
[65.0, 31.0]
[329, 314]
p02724
u587079202
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()\n\nU500 = int(S) // 500\nU5 = (int(S) % 500)//5\nhappy = U500*1000+U5\nprint(str(happy))', 'S = input()\n\nU500 = int(S) // 500\nU5 = (int(S) % 500)//5\nhappy = U500*1000+U5*5\nprint(str(happy))']
['Wrong Answer', 'Accepted']
['s652105707', 's279759482']
[2940.0, 2940.0]
[17.0, 17.0]
[95, 97]
p02724
u592035627
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\nB = (N-A)//5\nprint(A*1000+B*5)', 'N = int(input())\nA = N//500\nB = (N-A*500)//5\nprint(A*1000+B*5)']
['Wrong Answer', 'Accepted']
['s809004307', 's914514499']
[2940.0, 2940.0]
[17.0, 17.0]
[58, 62]
p02724
u598696606
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\nw=int(X/500)*1000\nX=int(X/500)\nx=int(X/5)*5\nprint(w+x)\n', 'X=int(input())\n \nw=int(X/500)*1000\nX=int(X%500)\nx=int(X/5)*5\nprint(w+x)']
['Wrong Answer', 'Accepted']
['s893228964', 's872904168']
[2940.0, 2940.0]
[17.0, 17.0]
[71, 71]
p02724
u598888192
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().strip())\nans = 0\nans += (num//500)*1000\nnum = num%500\nans += (num//5)\nprint(ans)\n', 'num = int(input().strip())\nans = 0\nans += (num//500)*1000\nnum = num%500\nans += (num//5)*5\nprint(ans)\n']
['Wrong Answer', 'Accepted']
['s729454078', 's479466205']
[3064.0, 2940.0]
[17.0, 17.0]
[99, 101]
p02724
u601980345
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 = X / 500\nb = X % 500\nc = b / 5\n \nprint(a * 1000 + c * 5)', 'X = input()\n\na = X / 500\nb = X % 500\nc = b / 5\n \nprint(a * 1000 + c * 5)', 'X = int(input())\n\na = int(X / 500)\nb = X % 500\nc = int(b / 5)\nprint(a * 1000 + c * 5)\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s219017304', 's650705442', 's815833862']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[62, 75, 86]
p02724
u605161376
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.)
['#2020-03-28\n#ABC\nS = int(input())\ncount = int(S / 500)\nsum = 1000 * count\nprint(sum)\nS = S - 500*count\nsum = sum + 5*(int(S/5))\nprint(sum)', '#2020-03-28\n#ABC\nS = int(input())\ncount = int(S / 500)\nsum = 1000 * count\nS = S - 500*count\nsum = sum + 5*(int(S/5))\nprint(sum)']
['Wrong Answer', 'Accepted']
['s550796058', 's305518624']
[3060.0, 2940.0]
[17.0, 18.0]
[138, 127]
p02724
u605601159
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.)
['coin_value = [[500, 1000], [5, 5]]\nresult = 0\nx = int(input().strip())\nidx = 0\nfor coin, value in coin_values:\n result += value * (x // coin)\n x = x - x // coin * coin\n \nprint(result)\n \n ', 'coin_value = [[500, 1000], [5, 5]]\nresult = 0\nx = int(input().strip())\nidx = 0\nfor coin, value in coin_values:\n result += value * (x // coin)\n x = x - x // coin * coin\n \nprint(result)', 'coin_values = [[500, 1000], [5, 5]]\nresult = 0\nx = int(input().strip())\nidx = 0\nfor coin, value in coin_values:\n result += value * (x // coin)\n x = x - x // coin * coin\n \nprint(result)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s070478608', 's770311555', 's471508753']
[2940.0, 3060.0, 2940.0]
[18.0, 17.0, 17.0]
[196, 186, 191]
p02724
u607729897
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()\ntemp = (x // 500) * 1000\nx %= 500\nans = temp + (x // 5) * 5\nprint(ans)', "import sys\nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\n\ndef main():\n x = int(input())\n temp = (x // 500) * 1000\n x %= 500\n ans = temp + (x // 5) * 5\n print(ans)\n\n\n return\n\nif __name__ == '__main__':\n main()"]
['Runtime Error', 'Accepted']
['s391510411', 's950271216']
[2940.0, 3060.0]
[17.0, 17.0]
[82, 288]
p02724
u608493167
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())\nprint(a//5*500+a//5*5)', 'a = int(input())\nprint(a//500*500+a//5*5)']
['Wrong Answer', 'Accepted']
['s021742358', 's514197466']
[2940.0, 2940.0]
[17.0, 17.0]
[39, 41]
p02724
u610120522
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(1000*int(N/500)+5*(N%500))', 'N = int(input())\nprint(1000*int(N/500)+5*int((N%500)/5))']
['Wrong Answer', 'Accepted']
['s136531167', 's167863324']
[2940.0, 2940.0]
[18.0, 17.0]
[49, 56]
p02724
u612635771
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\nprint(a*1000 + 5*((X-a*500)%5))', 'X = int(input())\na = X//500\nprint(a*1000 + 5*((X%500)//5))\n']
['Wrong Answer', 'Accepted']
['s477090734', 's286911225']
[9180.0, 9152.0]
[27.0, 30.0]
[58, 59]
p02724
u617556913
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(1000*(n//500) + 5*((n//500)//5))', 'x=int(input())\nprint(1000*(n//500) + 5*((n//500)//5))', 'n=int(input())\nprint(1000*(n//500) + 5*((n%500)//5))']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s224985275', 's783442495', 's343029659']
[9060.0, 9064.0, 9100.0]
[29.0, 25.0, 28.0]
[53, 53, 52]
p02724
u617659131
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())\nt = x//500\nf = (x-t)//5\nprint((t*1000) + (f*5))', 'x = int(input())\nt = x//500\nf = (x-t*500)//5\nprint((t*1000) + (f*5))\n']
['Wrong Answer', 'Accepted']
['s032480969', 's074389511']
[2940.0, 2940.0]
[18.0, 17.0]
[64, 69]
p02724
u619809897
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())\nhappy500 = (x // 500) * 1000\nprint(happy500)\nhappy5 = ((x % 500) // 5) * 5\nprint(happy5)\nprint(happy500 + happy5)', 'x = input()\nhappy500 = (x % 500) * 1000\nhappy5(500 - (x % 500) * x) % 5 * 5\nprint(happy500 + happy5)', 'X = input()\nhappier = (X % 500) * 1000\nhappy = ((X % 500) % 5) * 5\nprint(happier + happy)\n', 'x = int(input())\nhappy500 = (x // 500) * 1000\nhappy5 = ((x % 500) // 5) * 5\nprint(happy500 + happy5)']
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s156662982', 's521006797', 's788870977', 's509831972']
[2940.0, 3188.0, 2940.0, 2940.0]
[18.0, 18.0, 18.0, 17.0]
[130, 100, 90, 100]