Submission #61794570
Source Code Expand
Copy
#include<bits/stdc++.h>using namespace std;long long a,cnt=0;int main(){cin>>a;while(a){cnt++;a/=cnt;}cnt--;cout<<cnt;}
#include<bits/stdc++.h> using namespace std; long long a,cnt=0; int main() { cin>>a; while(a) { cnt++; a/=cnt; } cnt--; cout<<cnt; }
Submission Info
Submission Time | |
---|---|
Task | B - tcaF |
User | Sunriseeeee |
Language | C++ 20 (gcc 12.2) |
Score | 150 |
Code Size | 156 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 3644 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 150 / 150 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 00_sample_00.txt, 00_sample_01.txt |
All | 00_sample_00.txt, 00_sample_01.txt, 01_test_00.txt, 01_test_01.txt, 01_test_02.txt, 01_test_03.txt, 01_test_04.txt, 01_test_05.txt, 01_test_06.txt, 01_test_07.txt, 01_test_08.txt, 01_test_09.txt, 01_test_10.txt, 01_test_11.txt, 01_test_12.txt, 01_test_13.txt, 01_test_14.txt, 01_test_15.txt, 01_test_16.txt, 01_test_17.txt, 01_test_18.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_00.txt | AC | 1 ms | 3488 KB |
00_sample_01.txt | AC | 1 ms | 3448 KB |
01_test_00.txt | AC | 1 ms | 3444 KB |
01_test_01.txt | AC | 1 ms | 3472 KB |
01_test_02.txt | AC | 1 ms | 3504 KB |
01_test_03.txt | AC | 1 ms | 3644 KB |
01_test_04.txt | AC | 1 ms | 3556 KB |
01_test_05.txt | AC | 1 ms | 3560 KB |
01_test_06.txt | AC | 1 ms | 3488 KB |
01_test_07.txt | AC | 1 ms | 3492 KB |
01_test_08.txt | AC | 1 ms | 3456 KB |
01_test_09.txt | AC | 1 ms | 3448 KB |
01_test_10.txt | AC | 1 ms | 3368 KB |
01_test_11.txt | AC | 1 ms | 3484 KB |
01_test_12.txt | AC | 1 ms | 3448 KB |
01_test_13.txt | AC | 1 ms | 3436 KB |
01_test_14.txt | AC | 1 ms | 3564 KB |
01_test_15.txt | AC | 1 ms | 3436 KB |
01_test_16.txt | AC | 1 ms | 3432 KB |
01_test_17.txt | AC | 1 ms | 3364 KB |
01_test_18.txt | AC | 1 ms | 3576 KB |