# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
363914 | ogibogi2004 | Cambridge (info1cup18_cambridge) | C++14 | 273 ms | 15452 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;
#define ll long long
const ll MAXN=2e5+6;
const ll INF=2e9;
struct SegmentTree
{
ll node[MAXN];
ll lazy[MAXN];
bool lz[MAXN];
void init()
{
memset(lz,0,sizeof(lz));
memset(lazy,0,sizeof(lazy));
memset(node,0,sizeof(node));
}
ll merge(ll n1,ll n2)
{
return max(n1,n2);
}
void push(ll idx,ll l,ll r)
{
if(lz[idx]==0)return;
node[idx]+=lazy[idx];
if(l!=r)
{
lz[idx*2]=1;
lz[idx*2+1]=1;
lazy[idx*2]+=lazy[idx];
lazy[idx*2+1]+=lazy[idx];
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... |