# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
887216 | Sir_Ahmed_Imran | Hotter Colder (IOI10_hottercolder) | C++17 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
///~~~LOTA~~~///
#include "grader.h"
#include "hottercolder.h"
#include <bits/stdc++.h>
using namespace std;
int HC(int n){
int m,o,p,q,r;
m=0;
q=log2(n);
for(int i=q;i>=0;i--){
o=m+pow(2,i);
if(o==1) return 1;
if(o>n) continue;
p=Guess(o-1);
p=Guess(o);
if(p==1) m=o;
}
return m;
}