# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
29396 | dereotu | Race (IOI11_race) | C++14 | 2226 ms | 44512 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>
#define pii pair<int,int>
#define mp make_pair
#define pb push_back
#define st first
#define nd second
#define forr(i,A,B) for(int i=A;i<B;++i)
#define space ' '
#define endl '\n'
#define LL long long
using namespace std;
vector <pair<int,int> > adj[200005];
int ans=1e9;
int used[200005],sub[200005];
int k;
int calc_sub(int x,int y){//ok
sub[x]=1;
forr(i,0,adj[x].size()){
if(adj[x][i].nd!=y and !used[adj[x][i].nd]){
sub[x]+=calc_sub(adj[x][i].nd,x);
}
}
return sub[x];
}
int find_centroid(int x,int y,int treesize){//ok
Compilation message (stderr)
# | 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... |