# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
881699 | Alcabel | Cat Exercise (JOI23_ho_t4) | C++17 | 1334 ms | 201740 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
const int maxn = 2e5, maxlog = 18, inf = 1e9;
int a[maxn];
vector<int> g[maxn];
int sz[maxn], level[maxn], centPar[maxn][maxlog];
int dist[maxn][maxlog], mx[maxn][maxlog], idxNxt[maxn][maxlog];
vector<int> toutList;
void dfsSz(int v, int p) {
sz[v] = 1;
for (const int& u : g[v]) {
if (u != p && level[u] == -1) {
dfsSz(u, v);
sz[v] += sz[u];
}
}
toutList.emplace_back(v);
}
void dfsCalc(int v, int p, int j) {
int i = 0;
for (const int& u : g[v]) {
if (u != p && level[u] == -1) {
dist[u][j] = dist[v][j] + 1;
mx[u][j] = max(mx[v][j], a[u]);
centPar[u][j] = centPar[v][j];
if (p != -1) {
idxNxt[u][j] = idxNxt[v][j];
컴파일 시 표준 에러 (stderr) 메시지
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |