# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
674946 | bashkort | Wall (IOI14_wall) | C++17 | 711 ms | 69492 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 "wall.h"
#include <bits/stdc++.h>
using namespace std;
constexpr int inf = 1e9 + 7;
struct Info {
int L = 0, R = inf;
Info(int x, int y) : L(x), R(y) {}
Info() = default;
};
void apply(Info &a, Info b) {
if (a.L >= b.R) {
a.L = a.R = b.R;
} else if (a.R <= b.L) {
a.L = a.R = b.L;
} else {
a.L = max(a.L, b.L);
a.R = min(a.R, b.R);
}
}
vector<Info> t;
int sz = 1;
void init(int n) {
sz = 1 << __lg(n) + bool(n & (n - 1));
t.assign(sz << 1, {});
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... |