# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
948433 | brendonw | Rabbit Carrot (LMIO19_triusis) | C++17 | 275 ms | 30080 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<ll, ll>;
using pll = pair<ll, ll>;
const ll MAX_A = 5e3;
template<typename T>
struct segtree {
T size;
vector<T> val;
T id = 0;
segtree(T n) {
size = 1;
while (size < n) {
size *= 2;
}
val.assign(size * 2, id);
}
void update(T i, T v, T x, T lx, T rx) {
if (rx - lx == 1) {
val[x] = v;
return;
}
T mid = (lx + rx) / 2;
if (i < mid) {
update(i, v, 2 * x + 1, lx, mid);
# | 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... |