# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
727156 | NeroZein | Stranded Far From Home (BOI22_island) | C++17 | 207 ms | 34668 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;
const int N = 200005;
int a[N];
int p[N];
bool s[N];
bool ans[N];
long long sum[N];
vector<int> g[N];
vector<int> sons[N];
int get (int v) {
if (p[v] < 0) return v;
return p[v] = get(p[v]);
}
void Dfs (int v) {
ans[v] = true;
for (int u : sons[v]) {
Dfs(u);
}
}
signed main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n, m;
cin >> n >> m;
# | 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... |