# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
600410 | PiejanVDC | Wall (IOI14_wall) | C++17 | 1474 ms | 193276 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;
/*
minA = min(min1, min2)
minA = max(minA, max2)
maxA = max(max1, max2)
maxA = min(maxA, min2)
*/
const int mxN = (int)2e7+5;
vector<int>mn(mxN, INT_MAX);
vector<int>mx(mxN, INT_MIN);
int l,r;
int MX, MN;
void reset(int p) {
mn[p] = INT_MAX;
mx[p] = INT_MIN;
}
void push(int mn_, int mx_, int p) {
mn[p] = min(mn[p], mn_);
mn[p] = max(mn[p], mx_);
mx[p] = max(mx[p], mx_);
mx[p] = min(mx[p], mn_);
}
# | 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... |