# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
676495 | penguin133 | 케이크 (CEOI14_cake) | C++17 | 1110 ms | 33764 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
struct node{
int s,e,m,val,lazy;
node *l, *r;
node(int _s, int _e){
s = _s, e = _e, m = (s + e)/2;
val = 0, lazy = 0;
if(s != e)l = new node(s, m), r= new node(m+1, e);
}
void update(int p, int v){
if(s == e)val+=v;
else{
if(p <= m)l->update(p,v);
else r->update(p,v);
val = max(l->val, r->val);
}
}
int query(int a, int b){
if(s == a && b == e)return val;
else if(b <= m)return l->query(a,b);
else if(a > m)return r->query(a,b);
else return max(l->query(a,m), r->query(m+1,b));
}
}*root;
pair<int, int> A[250005];
vector<pair<int, int> > v, tmp;
int main(){
ios::sync_with_stdio(0);cin.tie(0);
int n,k;
컴파일 시 표준 에러 (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... |