mirror of
https://github.com/codeflash-ai/codeflash-internal.git
synced 2026-05-04 18:25:18 +00:00
16 lines
260 B
Python
16 lines
260 B
Python
def problem_p02724(input_data):
|
|
x = int(eval(input_data))
|
|
|
|
# a,b = map(int, input_data.split())
|
|
|
|
# l = list(map(int, input_data.split()))
|
|
|
|
ans = 0
|
|
|
|
r5 = int(x / 500)
|
|
|
|
x = x - 500 * r5
|
|
|
|
r1 = int(x / 5)
|
|
|
|
return r5 * 1000 + r1 * 5
|