Submission #24175205


Source Code Expand

#include <bits/stdc++.h>
using namespace std;
int main(){
    int N;
    cin >> N;

    if (N <= 1000) {
        cout << 1000 - N << endl;
    
    } else if (N <= 2000) {
        cout << 2000 - N << endl;
    
    } else if (N <= 3000) {
        cout << 3000 - N << endl;
    
    } else if (N <= 4000) {
        cout << 4000 - N << endl;
    
    } else if (N <= 5000) {
        cout << 5000 - N << endl;
    
    } else if (N <= 6000) {
        cout << 6000 - N << endl;
    
    } else if (N <= 7000) {
        cout << 7000 - N << endl;
    
    } else if (N <= 8000) {
        cout << 8000 - N << endl;
    
    } else if (N <= 9000) {
        cout << 9000 - N << endl;
    
    } else {
        cout << 10000 - N << endl;
    }
}

Submission Info

Submission Time
Task A - Payment
User TumoiYorozu
Language C++ (GCC 9.2.1)
Score 100
Code Size 771 Byte
Status AC
Exec Time 6 ms
Memory 3676 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 3524 KiB
hand_02.txt AC 3 ms 3524 KiB
hand_03.txt AC 2 ms 3524 KiB
hand_04.txt AC 2 ms 3452 KiB
hand_05.txt AC 3 ms 3552 KiB
random_01.txt AC 2 ms 3528 KiB
random_02.txt AC 2 ms 3408 KiB
random_03.txt AC 2 ms 3584 KiB
random_04.txt AC 2 ms 3452 KiB
random_05.txt AC 2 ms 3524 KiB
random_06.txt AC 2 ms 3524 KiB
random_07.txt AC 2 ms 3676 KiB
random_08.txt AC 2 ms 3392 KiB
random_09.txt AC 2 ms 3524 KiB
random_10.txt AC 2 ms 3592 KiB
sample_01.txt AC 2 ms 3524 KiB
sample_02.txt AC 2 ms 3524 KiB