# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
899905 | PotatoMan | Monkey and Apple-trees (IZhO12_apple) | C++14 | 255 ms | 201872 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>
#define inf INT_MAX
#define longlonginf LONG_LONG_MAX
#define mod 1000000007
#define MAXN 100005
#define pii pair<ll,ll>
#define ll long long
#define deb(x) cerr<<"[ "<<#x<<" = "<<x<<" ]";
#define yes() cout<<"YES\n";
#define no() cout<<"NO\n";
using namespace std;
ll n,k,m,cur,z,q;
ll ans = 0;
string subtask;
struct node{
int val,lazy,lc = -1,rc = -1,tl,tr;
node(int pl,int pr){
val = 0,lazy = 0,tl = pl, tr = pr, lc = -1,rc = -1;
}
void checklazy(int x){
if(!x) return;
val = tr-tl+1;
lazy = x;
}
};
struct segment_tree{
vector<node> v;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |