# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
132076 | Sorting | Wall (IOI14_wall) | C++14 | 1572 ms | 99480 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;
const int N = 2e6 + 7;
const int inf = 1e9;
struct node{
int mn, mx;
node(){
mx = 0;
mn = inf;
};
node(int _mn, int _mx){
mn = _mn;
mx = _mx;
}
friend void unite(node &prev, node after){
prev.mn = min(prev.mn, after.mn);
prev.mx = max(prev.mx, after.mx);
if(prev.mx > prev.mn){
if(after.mx == prev.mx){
prev.mn = prev.mx;
}
else{
prev.mx = prev.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... |