Submission #11271121


Source Code Expand

Copy
#!/usr/bin/ python3.8
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

X = int(read())
# なるべく 500
q, r = divmod(X, 500)
answer = 1000 * q + (r // 5) * 5
print(answer)

Submission Info

Submission Time
Task B - Golden Coins
User maspy
Language Python (3.4.3)
Score 200
Code Size 254 Byte
Status AC
Exec Time 17 ms
Memory 2940 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 14
Set Name Test Cases
Sample sample_01, sample_02, sample_03
All hand_01, hand_02, hand_03, hand_04, hand_05, random_01, random_02, random_03, random_04, random_05, random_06, sample_01, sample_02, sample_03
Case Name Status Exec Time Memory
hand_01 AC 17 ms 2940 KB
hand_02 AC 17 ms 2940 KB
hand_03 AC 17 ms 2940 KB
hand_04 AC 17 ms 2940 KB
hand_05 AC 17 ms 2940 KB
random_01 AC 17 ms 2940 KB
random_02 AC 17 ms 2940 KB
random_03 AC 17 ms 2940 KB
random_04 AC 17 ms 2940 KB
random_05 AC 17 ms 2940 KB
random_06 AC 17 ms 2940 KB
sample_01 AC 17 ms 2940 KB
sample_02 AC 17 ms 2940 KB
sample_03 AC 17 ms 2940 KB