# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
760136 | SanguineChameleon | Hotter Colder (IOI10_hottercolder) | C++17 | 629 ms | 8108 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 N;
int fix(int dir, int X) {
return (dir == 1 ? X : N + 1 - X);
}
mt19937 gen(chrono::steady_clock::now().time_since_epoch().count());
uniform_int_distribution<int> dist(0, 1);
int max_end[30];
int mid_game(int lt, int rt, int prv) {
if (lt == rt) {
return lt;
}
if (lt > rt) {
swap(lt, rt);
}
int len = 1;
while (len < rt - lt + 1) {
len = len * 2 + 1;
}
int mt = -1;
if (prv < rt - len + 1) {
mt = rt - len / 2;
}
else if (prv > lt + len - 1) {
# | 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... |