# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
700873 | kusmetliq | Race (IOI11_race) | C++14 | 806 ms | 38316 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std;
const int maxN=200005;
const long long big=100000000000000;
long long k;
long long minans=INT_MAX;
vector<int>a[maxN];
int sus[2*maxN],dist[2*maxN];
long long path[1000001];
bool used[maxN];
int sz[maxN];
long long min(long long a,long long b) {
return (a<b?a:b);
}
int upd_sz(int n,int parent=-1) {
sz[n]=1;
for(int ii:a[n]) {
int i=sus[ii];
if(i!=parent && used[i]==0)sz[n]+=upd_sz(i,n);
}
return sz[n];
}
int find_cen(int n,int siz,int parent=-1) {
for(int ii:a[n]) {
int i=sus[ii];
# | 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... |