Submission #21262672


Source Code Expand

/**
 *   @FileName	a.cpp
 *   @Author	kanpurin
 *   @Created	2021.03.26 17:33:02
**/

#include "bits/stdc++.h" 
using namespace std; 
typedef long long ll;

int main() {
    ll n;cin >> n;
    ll ans=0;
    while(stoll(to_string(ans)+to_string(ans))<=n){ans++;}
    cout << ans-1 << endl;
    return 0;
}

Submission Info

Submission Time
Task C - Doubled
User kanpurin
Language C++ (GCC 9.2.1)
Score 300
Code Size 320 Byte
Status AC
Exec Time 203 ms
Memory 3696 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 3660 KiB
02_sample.txt AC 3 ms 3632 KiB
03_sample.txt AC 3 ms 3604 KiB
04_hand.txt AC 203 ms 3684 KiB
05_hand.txt AC 194 ms 3648 KiB
06_hand.txt AC 25 ms 3656 KiB
07_hand.txt AC 33 ms 3676 KiB
08_hand.txt AC 28 ms 3656 KiB
09_hand.txt AC 2 ms 3556 KiB
10_random.txt AC 3 ms 3676 KiB
11_random.txt AC 3 ms 3652 KiB
12_random.txt AC 2 ms 3696 KiB
13_random.txt AC 47 ms 3676 KiB
14_random.txt AC 2 ms 3632 KiB
15_random.txt AC 3 ms 3692 KiB
16_random.txt AC 19 ms 3552 KiB
17_random.txt AC 11 ms 3552 KiB
18_random.txt AC 3 ms 3600 KiB
19_random.txt AC 28 ms 3692 KiB
20_random.txt AC 3 ms 3620 KiB
21_random.txt AC 3 ms 3560 KiB
22_random.txt AC 13 ms 3556 KiB
23_random.txt AC 2 ms 3652 KiB
24_random.txt AC 3 ms 3596 KiB
25_random.txt AC 3 ms 3656 KiB
26_random.txt AC 9 ms 3652 KiB
27_random.txt AC 8 ms 3620 KiB
28_random.txt AC 3 ms 3580 KiB
29_random.txt AC 3 ms 3652 KiB
30_double.txt AC 5 ms 3656 KiB
31_double.txt AC 3 ms 3656 KiB
32_double.txt AC 85 ms 3604 KiB
33_double.txt AC 13 ms 3656 KiB
34_double.txt AC 45 ms 3648 KiB