Submission #21110584


Source Code Expand

#include <iostream>
#include <string>

using namespace std;

using ull = unsigned long long;

int main() {
    ull N = 0;
    cin >> N;
    ull x = 1;
    unsigned ans = 0;
    while (true) {
        string xs = to_string(x);
        ull x2 = stoull(xs + xs);
        if (x2 > N) break;
        ++x;
        ++ans;
    }
    cout << ans << endl;
}

Submission Info

Submission Time
Task C - Doubled
User gochiusa
Language C++ (Clang 10.0.0)
Score 300
Code Size 369 Byte
Status AC
Exec Time 80 ms
Memory 3180 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 3
AC × 34
Set Name Test Cases
Sample 01_sample.txt, 02_sample.txt, 03_sample.txt
All 01_sample.txt, 02_sample.txt, 03_sample.txt, 04_hand.txt, 05_hand.txt, 06_hand.txt, 07_hand.txt, 08_hand.txt, 09_hand.txt, 10_random.txt, 11_random.txt, 12_random.txt, 13_random.txt, 14_random.txt, 15_random.txt, 16_random.txt, 17_random.txt, 18_random.txt, 19_random.txt, 20_random.txt, 21_random.txt, 22_random.txt, 23_random.txt, 24_random.txt, 25_random.txt, 26_random.txt, 27_random.txt, 28_random.txt, 29_random.txt, 30_double.txt, 31_double.txt, 32_double.txt, 33_double.txt, 34_double.txt
Case Name Status Exec Time Memory
01_sample.txt AC 7 ms 3148 KiB
02_sample.txt AC 3 ms 3152 KiB
03_sample.txt AC 3 ms 3012 KiB
04_hand.txt AC 80 ms 3148 KiB
05_hand.txt AC 75 ms 3004 KiB
06_hand.txt AC 15 ms 3144 KiB
07_hand.txt AC 13 ms 3144 KiB
08_hand.txt AC 14 ms 3000 KiB
09_hand.txt AC 7 ms 3012 KiB
10_random.txt AC 3 ms 3020 KiB
11_random.txt AC 2 ms 3040 KiB
12_random.txt AC 2 ms 3136 KiB
13_random.txt AC 21 ms 3148 KiB
14_random.txt AC 2 ms 3016 KiB
15_random.txt AC 2 ms 3180 KiB
16_random.txt AC 7 ms 3144 KiB
17_random.txt AC 4 ms 2996 KiB
18_random.txt AC 2 ms 3144 KiB
19_random.txt AC 14 ms 3084 KiB
20_random.txt AC 3 ms 3088 KiB
21_random.txt AC 2 ms 3004 KiB
22_random.txt AC 4 ms 3092 KiB
23_random.txt AC 2 ms 3084 KiB
24_random.txt AC 4 ms 3092 KiB
25_random.txt AC 2 ms 3104 KiB
26_random.txt AC 1 ms 3048 KiB
27_random.txt AC 3 ms 3148 KiB
28_random.txt AC 2 ms 3096 KiB
29_random.txt AC 3 ms 3084 KiB
30_double.txt AC 3 ms 3180 KiB
31_double.txt AC 2 ms 3096 KiB
32_double.txt AC 37 ms 3012 KiB
33_double.txt AC 5 ms 3100 KiB
34_double.txt AC 21 ms 3100 KiB