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 <variant>
#include <vector>
std::variant<bool, std::vector<int>> find_journey(int N, int M, std::vector<int> U, std::vector<int> V)
{
if(N == 2)
{
int c1 = 0, c2 = 0;
for(int i = 0; i < (int)U.size(); i++)
{
if(U[i] == 0)
c1++;
else
c2++;
}
std::vector<int> v = {0, 1, 0, 1, 0, 1};
std::variant<bool, std::vector<int>> var;
var = v;
if(c1 >= 2 && c2 >= 1)
return var;
}
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... |