# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
797593 | Osplei | Thousands Islands (IOI22_islands) | C++17 | 0 ms | 0 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;
typedef pair<int,int> ii;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ii> vii;
typedef vector<vii> wgraf;
typedef pair<int,ii> edge;
typedef vector <ll> vl;
typedef pair <ll, ll> LL;
typedef vector <LL> vll;
#define UNVISITED 0
#define VISITED 1
#define pb push_back
#define F first
#define S second
union(bool, int[]) find_journey(int N, int M, int[] U, int[] V){
vector <int> ans;
if (N==2){
if ((U[0]>=2 && V[1]>=1) || (V[0]>=2 && U[1]>=1)) {
ans.pb(1);
ans.pb(0);
ans.pb(1);
ans.pb(0);
ans.pb(1);
ans.pb(0);
return ans;
} else return ans;
} else return ans;
}