# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
757712 | ttamx | Bitaro's travel (JOI23_travel) | C++14 | 1191 ms | 273484 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;
typedef long long ll;
const int N=2e5+5;
int n,q;
int a[N];
int d[N],v1[N],v2[N],l1[N],l2[N];
struct node{
int val;
node *l,*r;
node():val(0),l(nullptr),r(nullptr){}
node(int val):val(val),l(nullptr),r(nullptr){}
node(int val,node *l,node *r):val(val),l(l),r(r){}
};
typedef node* nodeptr;
struct maxtree{
nodeptr rt[N];
void build(int l,int r,nodeptr &t){
t=new node(0);
if(l==r)return;
int m=(l+r)/2;
build(l,m,t->l);
build(m+1,r,t->r);
}
# | 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... |