Submission #14970687


Source Code Expand

Copy
import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

N = int(read())
x = N + (-N) % 1000
print(x - N)

Submission Info

Submission Time
Task A - Payment
User maspy
Language Python (3.8.2)
Score 100
Code Size 174 Byte
Status
Exec Time 35 ms
Memory 9152 KB

Judge Result

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample_01.txt, sample_02.txt
All 100 / 100 hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
hand_01.txt 20 ms 9148 KB
hand_02.txt 27 ms 9016 KB
hand_03.txt 25 ms 8856 KB
hand_04.txt 22 ms 8828 KB
hand_05.txt 25 ms 9148 KB
random_01.txt 23 ms 9008 KB
random_02.txt 26 ms 9024 KB
random_03.txt 28 ms 8964 KB
random_04.txt 34 ms 9060 KB
random_05.txt 27 ms 9012 KB
random_06.txt 25 ms 8864 KB
random_07.txt 24 ms 8960 KB
random_08.txt 20 ms 9116 KB
random_09.txt 22 ms 9152 KB
random_10.txt 32 ms 8852 KB
sample_01.txt 35 ms 9016 KB
sample_02.txt 32 ms 9088 KB