幸运值
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Background
Special for beginners, ^_^
Description
有一个国家,它的硬币面值为500元,100元,50元,10元,5元,1元。
小A 现在有 X元,他将这些钱兑换成硬币。每个500元硬币会给他带来1000点幸运值,每个5元硬币会带来5点幸运值。
问小A最多能获得多少点幸运值。
Format
Input
一个整数 X。
Output
最大的幸运值。
Samples
输入1
1024
输出1
2020
输入2
100
输出2
100
解释1
2个500元硬币,4个5元硬币,4个1元硬币。 带来幸运值 2 * 1000+4 * 5 = 2020
初二上学期期中考试
- Status
- Done
- Rule
- IOI
- Problem
- 4
- Start at
- 2022-11-7 14:30
- End at
- 2022-11-7 16:00
- Duration
- 1.5 hour(s)
- Host
- Partic.
- 108