# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
754532 | ValiAntonie | Hotter Colder (IOI10_hottercolder) | C++14 | 509 ms | 8104 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 Guess (int x);
int HC(int N){
int st=1,dr=N;
Guess(st);
int a = Guess(dr);
int prev = -1;
while(st!=dr){
int mij = (st+ dr) >> 1;
if(a==-1){
dr= mij;
if(st != dr){
Guess(st);
a = Guess(dr);
}
}
else if(a==1){//close to l
st = mij + 1;
if(st != dr){
Guess(st);
a = Guess(dr);
}
}
else return mij;
}
return st;
}
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... |