# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1161410 | qrn | Stranded Far From Home (BOI22_island) | C++20 | 459 ms | 54696 KiB |
#include <bits/stdc++.h>
using namespace std;
#define SPEED \
ios_base::sync_with_stdio(0); \
cin.tie(NULL); \
cout.tie(NULL);
#define endl "\n"
#define pb push_back
#define intt long long
#define fi first
#define se second
#define ALL(x) x.begin(), x.end()
const intt mod = 998244353;
const intt mxN = 2e5 + 5;
const intt L = 19;
vector<vector<intt>> graph;
set<intt> components[mxN];
map<intt, intt> nodes[mxN];
vector<intt> val(mxN);
struct DSU {
vector<intt> parent, sze, maks;
DSU(intt n) {
parent.resize(n + 1);
sze.resize(n + 1);
maks.resize(n + 1);
# | 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... |