# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
638735 | aris12345678 | Thousands Islands (IOI22_islands) | C++17 | 34 ms | 3628 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 "islands.h"
#include <bits/stdc++.h>
using namespace std;
variant<bool, vector<int> > find_journey(int n, int m, vector<int> u, vector<int> v) {
if(n == 2)
return false;
int a, b, c, d, e, f;
for(int i = 0; i < m; i++) {
if(u[i] == 0 && v[i] == 1)
a = i;
if(u[i] == 1 && v[i] == 2)
b = i;
if(u[i] == 2 && v[i] == 0)
c = i;
if(u[i] == 1 && v[i] == 0)
d = i;
if(u[i] == 2 && v[i] == 1)
e = i;
if(u[i] == 0 && v[i] == 2)
f = i;
}
return vector<int>({a, b, c, f, e, d, c, b, a, d, e, f});
}
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... |