#include "islands.h"
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define pii pair<int, int>
#define fi first
#define se second
variant<bool, vector<int> > find_journey(int n, int m, vector<int> u, vector<int> v){
if (m<3)return false;
vector<int> a, b;
int c=0;
for (int i=0; i<m; ++i){
if (!u[i])++c;
if (v[i])a.pb(i);
else b.pb(i);
}
if (a.empty()||b.empty())return false;
if (c>=2)return vector<int>{};
return false;
}
| # | 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... |