# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
824045 | Amylopectin | Stranded Far From Home (BOI22_island) | C++14 | 199 ms | 79072 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 <stdio.h>
#include <iostream>
#include <vector>
#include <queue>
#include <algorithm>
using namespace std;
const long long mxn = 1e6 + 10;
struct we
{
long long idx,val;
};
bool cmp(const struct we &l,const struct we &r)
{
return l.val < r.val;
}
struct we sot[mxn] = {};
char ans[mxn] = {};
long long npop[mxn] = {},gr[mxn] = {},he[mxn] = {},siz[mxn] = {},u[mxn] = {};
vector<long long> pat[mxn] = {},tre[mxn] = {};
long long figr(long long l)
{
long long cl = l,f;
while(l != gr[l])
{
l = gr[l];
}
while(cl != gr[cl])
{
f = gr[cl];
gr[cl] = l;
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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |