# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
230308 | muhammad_hokimiyon | Library (JOI18_library) | C++14 | 515 ms | 632 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>
#include "library.h"
#define fi first
#define se second
#define ll long long
#define dl double long
using namespace std;
const int maxn = 1e3 + 7;
int n;
int p[maxn];
int sz[maxn];
vector < int > g[maxn];
int get( int x )
{
return (p[x] == x ? x : p[x] = get(p[x]));
}
void merg( vector < int > &a1 , vector < int > b1 )
{
for( auto x : b1 )a1.push_back(x);
}
void meg( int x , int y )
{
x = get(x);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |