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){
vector<int> ans(3,-1);
for(int i=0;i<M;i++) {
if(U[i]==0)ans[0]=i;
if(U[i]==1)ans[1]=i;
}
for(int i=M-1;i>=0;i--) {
if(U[i]==0)ans[2]=i;
}
if(ans[1]!=-1 and ans[0]!=ans[2])return ans;
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... |