Submission #53594137
Source Code Expand
Copy
#include<bits/stdc++.h>using namespace std;long long s=1,a;int main(){cin>>a;for(int i=1;i<=60;i++){s*=2;if(s-1>a){cout<<i;return 0;}}}
#include<bits/stdc++.h> using namespace std; long long s=1,a; int main(){ cin>>a; for(int i=1;i<=60;i++){ s*=2; if(s-1>a){ cout<<i; return 0; } } }
Submission Info
Submission Time | |
---|---|
Task | A - Exponential Plant |
User | zhanghe |
Language | C++ 20 (gcc 12.2) |
Score | 100 |
Code Size | 174 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 3640 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt |
All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 02_hand_00.txt, 02_hand_01.txt, 02_hand_02.txt, 02_hand_03.txt, 02_hand_04.txt, 02_hand_05.txt, 02_hand_06.txt, 02_hand_07.txt, 02_hand_08.txt, 02_hand_09.txt, 02_hand_10.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_00.txt | AC | 1 ms | 3432 KB |
00_sample_01.txt | AC | 1 ms | 3452 KB |
00_sample_02.txt | AC | 1 ms | 3492 KB |
01_random_00.txt | AC | 1 ms | 3448 KB |
01_random_01.txt | AC | 1 ms | 3432 KB |
01_random_02.txt | AC | 1 ms | 3444 KB |
01_random_03.txt | AC | 1 ms | 3492 KB |
01_random_04.txt | AC | 1 ms | 3428 KB |
01_random_05.txt | AC | 1 ms | 3460 KB |
01_random_06.txt | AC | 1 ms | 3432 KB |
01_random_07.txt | AC | 1 ms | 3464 KB |
01_random_08.txt | AC | 1 ms | 3456 KB |
01_random_09.txt | AC | 1 ms | 3460 KB |
02_hand_00.txt | AC | 1 ms | 3460 KB |
02_hand_01.txt | AC | 1 ms | 3492 KB |
02_hand_02.txt | AC | 1 ms | 3492 KB |
02_hand_03.txt | AC | 1 ms | 3484 KB |
02_hand_04.txt | AC | 1 ms | 3568 KB |
02_hand_05.txt | AC | 1 ms | 3372 KB |
02_hand_06.txt | AC | 1 ms | 3488 KB |
02_hand_07.txt | AC | 1 ms | 3452 KB |
02_hand_08.txt | AC | 1 ms | 3640 KB |
02_hand_09.txt | AC | 1 ms | 3452 KB |
02_hand_10.txt | AC | 1 ms | 3372 KB |