# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
710279 | Darren0724 | Cake 3 (JOI19_cake3) | C++17 | 1037 ms | 242248 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 all(x) x.begin(),x.end()
#define x first
#define y second
const long long INF=1e18;
const int N=200005;
int n,m;
int cnta=0;
vector<int> lisan;
vector<pair<int,int>> v;
struct seg{
int l,m,r;
seg *lc,*rc;
long long cnt=0,total=0;
seg(int l1,int r1){
l=l1,r=r1;
m=(l+r)>>1;
lc=rc=NULL;
cnta++;
}
void pull(){
cnt=0;
total=0;
if(lc){
cnt+=lc->cnt;
total+=lc->total;
}
if(rc){
cnt+=rc->cnt;
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... |