# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
675485 | messiuuuuu | Uzastopni (COCI15_uzastopni) | C++17 | 168 ms | 18456 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>
#define task "C"
#define ll long long
#define ld long double
#define fi first
#define se second
#define pb push_back
using namespace std;
const int MAXN = 1e4 + 5;
const ll INF = 1e18 + 5;
int n;
int c[MAXN];
vector<int> Adj[MAXN];
void Input()
{
cin >> n;
for (int i = 1; i <= n; i++)
cin >> c[i];
for (int i = 1; i < n; i++)
{
int u, v;
cin >> u >> v;
Adj[u].pb(v);
Adj[v].pb(u);
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |