# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
146301 | popovicirobert | Hotter Colder (IOI10_hottercolder) | C++14 | 700 ms | 124152 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){
if(n == 1) {
return 1;
}
int res = 1;
for(int step = 1 << 8; step; step >>= 1) {
if(res + step <= n) {
int cur = Guess(res + step);
if(res + step > 1 && Guess(res + step - 1) == -1) {
res += step;
}
}
}
return res;
}
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... |