# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
52773 | SpaimaCarpatilor | Pyramid Base (IOI08_pyramid_base) | C++17 | 719 ms | 132944 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std;
int budget, N, M, K;
namespace solver0 {
const int maxX = 1000000;
int mi[4 * maxX + 100], b[4 * maxX + 100], l[4 * maxX + 100], r[4 * maxX + 100], lzy[4 * maxX + 100];
void split (int &nod, int &f1, int &f2)
{
if (lzy[nod] == 0) return ;
lzy[f1] += lzy[nod], mi[f1] += lzy[nod];
lzy[f2] += lzy[nod], mi[f2] += lzy[nod];
lzy[nod] = 0;
}
void refresh (int &nod, int &f1, int &f2, int &mij, int &st, int &dr)
{
if (mi[f1] == mi[f2])
b[nod] = max ({b[f1], b[f2], r[f1] + l[f2]}),
l[nod] = (l[f1] == mij - st + 1 ? l[f1] + l[f2] : l[f1]),
r[nod] = (r[f2] == dr - mij ? r[f2] + r[f1] : r[f2]);
else
if (mi[f1] < mi[f2])
b[nod] = b[f1],
l[nod] = l[f1], r[nod] = 0;
else
b[nod] = b[f2],
r[nod] = r[f2], l[nod] = 0;
컴파일 시 표준 에러 (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... |
# | 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... |
# | 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... |