# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
377278 | jass921026 | Cake 3 (JOI19_cake3) | C++14 | 3761 ms | 27628 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std;
#define jizz ios_base::sync_with_stdio(false);cin.tie(NULL);
typedef long long ll;
typedef pair<int,int> pii;
#define F first
#define S second
const ll MAXN=2E5+10, INF=1E18;
int n, m, tmp[MAXN], pos[MAXN];
pii cake[MAXN];
ll ans[MAXN];
bool cmp(int a, int b){
return cake[a].S<cake[b].S;
}
struct node{
ll cnt=0, val=0;
node* left=NULL;
node* right=NULL;
void pull(){
cnt=left->cnt+right->cnt;
val=left->val+right->val;
}
node(){};
node(node* a, node* b){
left=a, right=b;
pull();
}
};
node* root;
struct segment_tree{
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |