# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
490604 | dooompy | Regions (IOI09_regions) | C++17 | 3699 ms | 131076 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "bits/stdc++.h"
using namespace std;
using ll = long long;
const int BLOCK = 450;
int region[200005];
vector<int> adj[200005];
int tin[200005], tout[200005];
vector<int> sorted[25005];
int ind[25005];
vector<int> largeRegions;
vector<vector<int>> par(BLOCK, vector<int>(25005));
vector<vector<int>> child(BLOCK, vector<int>(25005));
int timer = 1;
void dfs(int i) {
tin[i] = timer++;
sorted[region[i]].push_back(i);
for (auto a : adj[i]) {
dfs(a);
}
tout[i] = timer - 1;
}
void genPar(int cur, int original, int cnt) {
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |