# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
67307 | zetapi | Race (IOI11_race) | C++14 | 906 ms | 108444 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define ll long long
#define itr ::iterator
const int MAX=3e5;
const ll INF=1e9;
typedef pair<ll,ll> pii;
map<ll,ll> maps;
vector<pii> later,vec[MAX];
ll K,res,height[MAX],SubSize[MAX],Special[MAX],Weight[MAX];
void Prepare(int node,int par,int hei)
{
SubSize[node]=1;
height[node]=hei;
for(auto A:vec[node])
{
if(A.first==par)
continue;
Weight[A.first]=Weight[node]+A.second;
Prepare(A.first,node,hei+1);
SubSize[node]+=SubSize[A.first];
# | 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... |