# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1144734 | sano | Hotter Colder (IOI10_hottercolder) | C++20 | 410 ms | 8240 KiB |
#include "grader.h"
#include<iostream>
#include<vector>
using namespace std;
int ries1(int l, int r) {
while (l < r) {
Guess(l);
int x = Guess(r);
int mid = (l + r) / 2;
if (x == 0) {
return mid;
}
if (x == -1) {
r = mid;
}
if (x == 1) {
l = mid + (l + r) % 2;
}
}
return l;
}
int HC(int n) {
return ries1(1, n);
}
# | 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... |