# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
63015 | zubec | 경주 (Race) (IOI11_race) | C++14 | 1818 ms | 80492 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "race.h"
#include <bits/stdc++.h>
using namespace std;
const int N = 200100;
vector <pair<int, int> > g[200100];
int needLen, n, sz[N], pr[N];
bool used[N];
int ans = 1e9;
map<int, int> mp1;
int fnd_cntr(int v, int p, int szcmp){
int pos = -1;
bool bb = 0;
for (int i = 0; i < g[v].size(); i++){
int to = g[v][i].first;
if (to == p || used[to])
continue;
if (sz[to]-1 >= szcmp/2){
bb = 1;
pos = to;
break;
}
}
if (bb == 0)
return v;
return fnd_cntr(pos, v, szcmp);
컴파일 시 표준 에러 (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... |