Submission #15423009
Source Code Expand
#include <iostream>
using namespace std;
int main(){
int a, b, c;
int k;
cin >> a >> b >> c >> k;
int b_flag = true;
for(int i=0; i<k; i++){
if(a < b){
b_flag = false;
}
if(b_flag) b *= 2;
else c *= 2;
}
if(a < b && b < c){
cout << "Yes" << '\n';
}else{
cout << "No" << '\n';
}
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - Magic 2 |
| User | shrimpName |
| Language | C++ (Clang 10.0.0) |
| Score | 200 |
| Code Size | 369 Byte |
| Status | AC |
| Exec Time | 8 ms |
| Memory | 3128 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample_01.txt, sample_02.txt |
| All | in01.txt, in02.txt, in03.txt, in04.txt, in05.txt, in06.txt, in07.txt, in08.txt, in09.txt, in10.txt, in11.txt, in12.txt, in13.txt, in14.txt, sample_01.txt, sample_02.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| in01.txt | AC | 8 ms | 2948 KiB |
| in02.txt | AC | 2 ms | 3096 KiB |
| in03.txt | AC | 2 ms | 3128 KiB |
| in04.txt | AC | 2 ms | 3104 KiB |
| in05.txt | AC | 3 ms | 2852 KiB |
| in06.txt | AC | 2 ms | 3012 KiB |
| in07.txt | AC | 2 ms | 3024 KiB |
| in08.txt | AC | 2 ms | 2844 KiB |
| in09.txt | AC | 2 ms | 2940 KiB |
| in10.txt | AC | 2 ms | 3040 KiB |
| in11.txt | AC | 2 ms | 2896 KiB |
| in12.txt | AC | 2 ms | 3128 KiB |
| in13.txt | AC | 2 ms | 2992 KiB |
| in14.txt | AC | 2 ms | 2884 KiB |
| sample_01.txt | AC | 2 ms | 3036 KiB |
| sample_02.txt | AC | 2 ms | 2944 KiB |