| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1359427 | opeleklanos | Thousands Islands (IOI22_islands) | C++20 | 0 ms | 0 KiB |
#include <iostream>
#include <vector>
#include <variant>
using namespace std;
variant<bool, vector<int>> find_journey(int N, int M, vector<int> U, vector<int> V){
int a = 0; int b = 0;
for(int i = 0; i<M; i++){
if(U[i] == 1) b++;
else a++;
}
if(a <2 || b<1) return 0;
return 1;
}