# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
632406 | lunchbox | Radio Towers (IOI22_towers) | C++17 | 1509 ms | 37924 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>
using namespace std;
#ifdef LOCAL
#include "lib/debug.h"
#else
#include "towers.h"
#define debug(...) 0
#endif
typedef vector<int> vi;
const int N = 1e5, INF = 1e9 + 1;
template<typename Tp, int N>
struct Rmq_mn {
static const int L = __lg(N - 1) + 1;
Tp ar[1 << L], t[L][1 << L];
Tp op(Tp l, Tp r) {
return min(l, r);
}
void bld(int n, Tp *ar_) {
int h = n == 1 ? 0 : __lg(n - 1) + 1;
for (int i = 0; i < 1 << h; i++)
ar[i] = i < n ? ar_[i] : Tp();
bld(0, (1 << h) - 1, h - 1);
}
void bld(int l, int r, int h) {
if (h >= 0) {
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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |