# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
486220 | diedie | Index (COCI21_index) | C++17 | 299 ms | 51012 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pi32 = pair<int, int>;
using pi64 = pair<int64_t, int64_t>;
const int maxN = 2e5 + 5;
const int maxC = 10000000;
const ll INF = 2e18 + 7;
const int MOD = 998244353;
int n, nTest;
int idx;
struct Segment {
int left, right, val;
} st[maxC];
void init (int id, int l, int r){
if (l == r) return;
int mid = (l + r) / 2;
st[id].left = ++idx;
st[id].right = ++idx;
init(st[id].left, l, mid);
init(st[id].right, mid + 1, r);
}
void update (int id, int pos, int l, int r, int h) {
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |