Submission #749731

#TimeUsernameProblemLanguageResultExecution timeMemory
749731mohav48173Thousands Islands (IOI22_islands)C++17
5 / 100
33 ms4420 KiB
//#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>first,second; for(int i=0;i<M;i++) { if(u[i]==0 && v[i]==1)first.push_back(i); else second.push_back(i); } if(first.size()>1 && second.size()>0) { vector<int>ans={first[0],second[0],first[1],first[0],second[0],first[1]}; return ans; } else return false; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...