# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
589323 | Temmie | 팀들 (IOI15_teams) | C++17 | 2566 ms | 215876 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "teams.h"
#include <bits/stdc++.h>
struct Seg {
struct Item {
int val = 0, l = 0, r = 0;
};
int size;
std::vector <Item> v;
Seg() : size(1), v(1, Item()) { }
int update(int ind, int now, int l, int r) {
int nv = size++;
v.push_back(Item());
v[nv].val = v[now].val;
if (!(r - l - 1)) {
v[nv].val++;
return nv;
}
if (!v[now].l) {
v[now].l = size++;
v[now].r = size++;
v.resize(v.size() + 2, Item());
}
v[nv].l = v[now].l;
v[nv].r = v[now].r;
int mid = (l + r) >> 1;
# | 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... |