# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
844731 | Mr_Husanboy | 경주 (Race) (IOI11_race) | C++17 | 1653 ms | 42596 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "race.h"
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ff first
#define ss second
int d;
struct centroid{
vector<vector<pair<int,int>>> g;
vector<int> par, sz;
vector<ll> dis;
vector<bool> vis;
multiset<pair<ll, int>> st;
int n;
centroid (int _n){
init(_n);
}
void init(int _n){
n = _n;
g.assign(n, vector<pair<int,int>>());
par.assign(n, 0);
sz.assign(n, 0);
vis.assign(n, false);
dis.assign(n, 0ll);
}
# | 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... |