# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
25777 | khsoo01 | 전압 (JOI14_voltage) | C++11 | 516 ms | 32932 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;
typedef long long ll;
typedef pair<ll,ll> pll;
const ll N = 100005, M = 200005, L = 20;
ll n, m, col[N], dep[N], par[L][N], cap[N], tot, ans;
vector<ll> adj[N];
vector<pll> ex;
struct disj {
ll par[N], con;
void init () {
for(ll i=1;i<=n;i++) par[i] = i;
con = 0;
}
ll Find (ll X) {
if(par[X] == X) return X;
return par[X] = Find(par[X]);
}
bool Union (ll A, ll B) {
A = Find(A); B = Find(B);
if(A == B) return false;
par[A] = B; con++;
return true;
}
} ds;
ll getlca (ll A, ll B) {
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... |