# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
248869 | eohomegrownapps | 경주 (Race) (IOI11_race) | C++14 | 439 ms | 99580 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "race.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
vector<vector<pair<ll,ll>>> adjlist; //n,l
vector<set<pair<ll,ll>>*> vset; //height,numnodes
vector<ll> prefsum;
vector<ll> height;
ll n,k;
ll INF = 1e18;
void dfs(ll node, ll par){
for (auto p : adjlist[node]){
if (p.first==par){continue;}
prefsum[p.first]=prefsum[node]+p.second;
height[p.first]=height[node]+1;
dfs(p.first,node);
}
}
ll minval(ll node, ll par){
if (adjlist[node].size()==1&&par!=-1){
////cout<<"x\n";
vset[node]=new set<pair<ll,ll>>();
vset[node]->insert({prefsum[node],height[node]});
return INF;
}
ll mxv = INF;
ll mxind = -1;
ll mxsize = -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... |