# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
891315 | SorahISA | Financial Report (JOI21_financial) | C++17 | 740 ms | 61964 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#ifndef SorahISA
#define SorahISA
#include SorahISA __FILE__ SorahISA
struct SegTree {
vector<int> seg;
int maxn;
void init(int N) {
maxn = (1 << (__lg(N+1) + 1));
seg.assign(maxn<<1, 0);
}
void pull(int now) {
int lt = now << 1, rt = lt | 1;
seg[now] = max(seg[lt], seg[rt]);
}
void modify_point_chmax(int qX, int val) {
// debug(qX, val);
chmax(seg[qX += maxn], val);
while ((qX >>= 1)) pull(qX);
}
int query_range_max(int qL, int qR) {
// debug(qL, qR);
int ans = max(seg[qL += maxn], seg[qR += maxn]);
while (qL + 1 < qR) {
if (~qL & 1) chmax(ans, seg[qL ^ 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |