# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
21001 | model_code | Park (BOI16_park) | C++11 | 1153 ms | 78340 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 <iostream>
#include <vector>
#include <algorithm>
#include <array>
using namespace std;
typedef long long int Z;
Z T, P;
Z xm, ym;
Z tx[5050];
Z ty[5050];
Z tr[5050];
Z par[5050];
Z find(Z x) {
if(par[par[x]] != par[x]) {
par[x] = find(par[x]);
}
return par[x];
}
void merge(Z a, Z b) {
a = find(a);
b = find(b);
par[a] = b;
}
// Trees T, T + 1, T + 2, T + 3 are the bottom, right, top and left borders.
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... |