| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1365778 | afterzero | Snail (NOI18_snail) | C++20 | 1095 ms | 344 KiB |
#include<bits/stdc++.h>
using namespace std ;
int main(){
long long h , n ;
cin >> h>> n ;
vector<long long>a(n);
for(int i = 0 ; i< n ; i++){
cin >> a[i];
}
for(int i = 0 ; i< n ; i++){
if(a[i]<0){
cout << -1 << " " << -1 << endl;
return 0 ;
}
}
long long ans = a[0] ;
long long cnt = 0 ;
while(ans<=h){
ans*=2;
cnt++;
}
cout<<cnt << " " << 0 << endl;
}
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
