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 <bits/stdc++.h>
#include "grader.h"
using namespace std;
int HC(int N_){
int l = 1; int r = 500;
int g = r;
Guess(l);
while(l < r){
int k = Guess(g);
int mid = (l+r)/2;
if(k == 0){
return mid;
}else if(k == 1){
if(g != r){
Guess(r);
}
l = mid;
g = l;
}else{
if(g != l){
Guess(l);
}
r = mid;
g = r;
}
}
return l;
}
# | 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... |