# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
160648 | jhnah917 | Race (IOI11_race) | C++14 | 635 ms | 31980 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>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <ext/rope>
#define x first
#define y second
#define all(v) v.begin(), v.end()
#define compress(v) sort(all(v)), v.erase(unique(all(v)), v.end())
#define pb push_back
using namespace std;
typedef pair<int, int> p;
int n, k;
vector<p> g[202020];
vector<int> init;
int sz[202020], use[202020], chk[1010101];
int getSize(int v, int par){
sz[v] = 1;
for(auto i : g[v]){
if(i.x == par || use[i.x]) continue;
sz[v] += getSize(i.x, v);
}
return sz[v];
}
int getCent(int v, int par, int cnt){
# | 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... |