# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
957447 | rockstar | Passport (JOI23_passport) | C++17 | 871 ms | 1048576 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
//#pragma GCC optimize("O3,unroll-loops,inline")
#include <bits/stdc++.h>
//#define int long long
#define all(a) a.begin(), a.end()
using namespace std;
constexpr int inf = 1e9;
struct segment_tree_upd_segment_get_point {
vector<int> tree;
int n;
segment_tree_upd_segment_get_point(int n_) {
n = n_;
tree.resize(4 * n, inf);
}
void upd(int v, int tl, int tr, int l, int r, int x) {
if (r < tl || tr < l)
return;
if (l <= tl && tr <= r) {
tree[v] = min(tree[v], x);
return;
}
int tm = (tl + tr) / 2;
upd(v * 2, tl, tm, l, r, x), upd(v * 2 + 1, tm + 1, tr, l, r, x);
}
# | 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... |