# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
691657 | MateiKing80 | Simple (info1cup19_simple) | C++14 | 300 ms | 8788 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 <iostream>
using namespace std;
struct sus
{
int maxpar=-1,minpar=-1,maximpar=-1,minimpar=-1,lazy=0;
}aint[400005];
int v[200005];
sus join(sus a, sus b)
{
sus x;
x.lazy=0;
if(a.maxpar==-1)
{
x.maxpar=b.maxpar;
x.minpar=b.minpar;
}
else if(b.maxpar==-1)
{
x.maxpar=a.maxpar;
x.minpar=a.minpar;
}
else
x.maxpar=max(a.maxpar,b.maxpar),x.minpar=min(a.minpar,b.minpar);
if(a.maximpar==-1)
{
x.maximpar=b.maximpar;
x.minimpar=b.minimpar;
}
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... |