# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
282365 | Kastanda | Hotter Colder (IOI10_hottercolder) | C++11 | 778 ms | 24544 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.
// M
#include<bits/stdc++.h>
#include "grader.h"
using namespace std;
int n;
int SolveType2(int l, int r)
{
assert(l - 1 >= r - l + 1);
assert(n - r >= r - l + 1);
int last = l;
Guess(l);
while (l < r)
{
int tobe = -1;
if (last <= l)
tobe = r + (l - last);
else if (last >= r)
tobe = l - (last - r);
else
assert(0);
assert(tobe >= 1 && tobe <= n);
int w = Guess(tobe);
if (w == 0)
return (last + tobe) / 2;
if (l + 1 == r)
# | 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... |