# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
32001 | kazel | 오두막집 (GA7_cabana) | C++14 | 6000 ms | 20292 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<bits/stdc++.h>
using namespace std;
struct edge
{
int t, w;
edge(int t, int w) : t(t), w(w) {}
};
vector<edge> g[100005];
bool b[100005], v[100005];
int cnt[100005], cb[100005], d;
long long k;
vector<int> ord;
void init(int c, int p)
{
cnt[c] = 1;
cb[c] += b[c];
for(auto e : g[c])
{
if(e.t == p) continue;
init(e.t,c);
cnt[c] += cnt[e.t];
cb[c] += cb[e.t];
}
}
int center(int c)
{
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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |