# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
996293 | phoenix | Regions (IOI09_regions) | C++17 | 3496 ms | 63560 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int N = 200200;
const int R = 25025;
const int B = 1080;
int T;
int tin[N];
int tout[N];
vector<int> g[N];
int rg[N];
int m;
vector<int> heavy;
vector<int> ver[R];
vector<int> seg[R];
void precalc(int s) {
tin[s] = ++T;
seg[rg[s]].push_back(tin[s]);
for (int to : g[s])
precalc(to);
tout[s] = ++T;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |