# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
388446 | pure_mem | 경주 (Race) (IOI11_race) | C++14 | 1115 ms | 41756 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "race.h"
#include <bits/stdc++.h>
#define X first
#define Y second
#define MP make_pair
#define ll long long
using namespace std;
const int MAXN = 2e5 + 12;
int answer, n, k, sz[MAXN], mx[MAXN];
map< int, int > act;
vector< pair< int, int > > graph[MAXN];
bool block[MAXN];
void dfs_sz(int v, int pr){
sz[v] = 1, mx[v] = 0;
for(pair<int, int> to: graph[v]){
if(to.X != pr && !block[to.X]){
dfs_sz(to.X, v), sz[v] += sz[to.X];
if(sz[mx[v]] < sz[to.X])
mx[v] = to.X;
}
}
}
int get_cent(int v){
int u = v;
# | 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... |