# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
524610 | lucri | Simple (info1cup19_simple) | C++17 | 355 ms | 32636 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>
#define int long long
#define inf 1000000000000000000
using namespace std;
int n,q,val,tip,a,b,v[200010],lazy[3600010];
struct {int pmin,pmax,imin,imax;}aint[3600010];
void build(int poz,int l,int r)
{
aint[poz].pmin=inf;
aint[poz].imin=inf+1;
aint[poz].pmax=-inf;
aint[poz].imax=-inf-1;
if(l==r)
{
if(v[l]%2==0)
{
aint[poz].pmax=v[l];
aint[poz].pmin=v[l];
}
else
{
aint[poz].imax=v[l];
aint[poz].imin=v[l];
}
return;
}
if(l>r)
return;
int m=(l+r)/2;
build(poz*2,l,m);
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... |