# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
292215 | amiratou | Hotter Colder (IOI10_hottercolder) | C++14 | 794 ms | 24424 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.
#include "grader.h"
#include <bits/stdc++.h>
using namespace std;
int HC(int N){
int l=1,r=N;
while((r-l)>=2){
//cerr<<l<<" "<<r<<"\n";
int a=l+(r-l)/3,b=r-(r-l)/3;
int med=(a+b)>>1;
//cerr<<a<<" "<<b<<"\n";
int A=Guess(a),B=Guess(b);
if(!B)
return (a+b)/2;
if(B==1)l=med+1;
else r=med;
}
//cerr<<l<<" "<<r<<"\n";
int g=Guess(l),h=Guess(r);
if(h==1)return r;
else return l;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |