# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
848263 | popovicirobert | Bridges (APIO19_bridges) | C++14 | 1779 ms | 8352 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 lsb(x) (x & (-x))
using ull = unsigned long long;
using ll = long long;
using namespace std;
#ifdef HOME
#define LOCAL_CHECK(x) assert(x);
#else
#define LOCAL_CHECK(x)
#endif
// https://judge.yosupo.jp/submission/159946
template<bool _CompressPath = true>
class DSU {
public:
DSU(int n) : n(n) {
LOCAL_CHECK(n > 0);
link.resize(n, -1);
size.resize(n, 1);
}
int getRoot(int x) noexcept {
LOCAL_CHECK(0 <= x && x < n);
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |