Submission #15247671


Source Code Expand

#include <bits/stdc++.h>

using namespace std;

int main() {

    int n;cin >> n;
    if(n % 1000 == 0) {
        cout << 0 << endl;
    } else {
        cout << 1000 - n % 1000 << endl;
    }

    return 0;
}

Submission Info

Submission Time
Task A - Payment
User akbar1214
Language C++ (GCC 9.2.1)
Score 100
Code Size 225 Byte
Status AC
Exec Time 6 ms
Memory 3604 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 17
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
All 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 AC 6 ms 3576 KiB
hand_02.txt AC 2 ms 3440 KiB
hand_03.txt AC 2 ms 3604 KiB
hand_04.txt AC 2 ms 3416 KiB
hand_05.txt AC 2 ms 3532 KiB
random_01.txt AC 2 ms 3448 KiB
random_02.txt AC 2 ms 3452 KiB
random_03.txt AC 3 ms 3456 KiB
random_04.txt AC 2 ms 3444 KiB
random_05.txt AC 4 ms 3460 KiB
random_06.txt AC 2 ms 3412 KiB
random_07.txt AC 2 ms 3452 KiB
random_08.txt AC 2 ms 3460 KiB
random_09.txt AC 2 ms 3576 KiB
random_10.txt AC 2 ms 3572 KiB
sample_01.txt AC 2 ms 3560 KiB
sample_02.txt AC 2 ms 3412 KiB