# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
540297 | Lyestria | 사탕 분배 (IOI21_candies) | C++17 | 398 ms | 34188 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "candies.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int mn = 2e5+10;
ll mi[mn*4], ma[mn*4], laz[mn*4];
void prop(int x){
if(!laz[x]) return;
mi[x] += laz[x];
ma[x] += laz[x];
if(x*2+1<mn*4) {
laz[x*2]+=laz[x];
laz[x*2+1]+=laz[x];
}
laz[x]=0;
}
void eval(int x){
prop(x*2),prop(x*2+1);
mi[x]=min(mi[x*2],mi[x*2+1]);
ma[x]=max(ma[x*2],ma[x*2+1]);
}
const ll inf = 0x3f3f3f3f3f3f3f3f;
#define mid ((l+r)>>1)
컴파일 시 표준 에러 (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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |