Submission #20918829


Source Code Expand

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pb push_back
#define rep(i, n) for(int i=0;i<(n);i++)


int main(){
    ll n, ans = 0; 
    cin >> n;

    if(n >= 1000) ans += n-1000+1;
    if(n >= 1000000) ans += n-1000000+1;  
    if(n >= 1000000000) ans += n-1000000000+1;
    if(n >= 1000000000000) ans += n-1000000000000+1;
    if(n >= 1000000000000000) ans += n-1000000000000000+1;

    cout << ans << endl;
}

Submission Info

Submission Time
Task C - Comma
User udonman
Language C++ (GCC 9.2.1)
Score 300
Code Size 463 Byte
Status AC
Exec Time 9 ms
Memory 3588 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 2
AC × 20
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
All hand_01.txt, hand_02.txt, hand_03.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, random_11.txt, random_12.txt, random_13.txt, random_14.txt, random_15.txt, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
hand_01.txt AC 9 ms 3520 KiB
hand_02.txt AC 5 ms 3516 KiB
hand_03.txt AC 2 ms 3364 KiB
random_01.txt AC 2 ms 3588 KiB
random_02.txt AC 2 ms 3512 KiB
random_03.txt AC 2 ms 3392 KiB
random_04.txt AC 3 ms 3456 KiB
random_05.txt AC 2 ms 3512 KiB
random_06.txt AC 2 ms 3512 KiB
random_07.txt AC 2 ms 3396 KiB
random_08.txt AC 2 ms 3516 KiB
random_09.txt AC 2 ms 3584 KiB
random_10.txt AC 2 ms 3488 KiB
random_11.txt AC 2 ms 3396 KiB
random_12.txt AC 1 ms 3340 KiB
random_13.txt AC 2 ms 3408 KiB
random_14.txt AC 2 ms 3500 KiB
random_15.txt AC 2 ms 3512 KiB
sample_01.txt AC 2 ms 3556 KiB
sample_02.txt AC 2 ms 3364 KiB