# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
599703 | MilosMilutinovic | 가로등 (APIO19_street_lamps) | C++14 | 2335 ms | 430548 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
/**
* author: wxhtzdy
* created: 19.07.2022 20:06:36
**/
#include <bits/stdc++.h>
using namespace std;
const int N = (int) 3e5 + 5;
const int M = 120 * N;
int root[N], ls[M], rs[M], tsz;
long long st[M];
void modify(int& c, int l, int r, int ll, int rr, int v) {
if (!c) {
c = ++tsz;
}
if (l > r || ll > rr || l > rr || r < ll) {
return;
}
if (ll <= l && r <= rr) {
st[c] += v;
return;
}
int mid = l + r >> 1;
modify(ls[c], l, mid, ll, rr, v);
modify(rs[c], mid + 1, r, ll, rr, v);
}
컴파일 시 표준 에러 (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... |