# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
556723 | MohamedFaresNebili | Hotter Colder (IOI10_hottercolder) | C++14 | 643 ms | 8680 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 <bits/stdc++.h>
#include "grader.h"
using namespace std;
using ll = long long;
using ii = pair<ll, ll>;
using vi = vector<int>;
#define ff first
#define ss second
#define pb push_back
#define all(x) (x).begin(), (x).end()
#define lb lower_bound
#define ub upper_bound
/// #define int ll
const int oo = 1e9 + 7;
int Guess(int v);
map<int, int> m; bool first = 1;
void init() {
for(int l = 1; l < 30; l++) {
int i = ((1 << l + 1) + (l & 1 ? -1 : 1)) / 3;
int j = ((1 << l) + (l & 1 ? -1 : 1) * 2) / 3 + 1;
m[i] = j;
}
}
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... |