# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
278035 | abyyskit | 경주 (Race) (IOI11_race) | C++14 | 2190 ms | 204052 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "race.h"
#include<bits/stdc++.h>
using namespace std;
#define FOR(i, x, y) for(int i = x; i < y; ++i)
#define pb push_back
int ANS;
int K;
struct node{
set<pair<int, int>> e;
map<int, int> m;
int c = 0;
};
vector<node> g;
int cdfs(int start, int par, int tot){
for(auto nex: g[start].e){
if (nex.first != par and g[nex.first].c > tot/2){
return cdfs(nex.first, start, tot);
}
}
return start;
}
int countdfs(int start, int par){
g[start].c = 1;
# | 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... |