Submission #749733

#TimeUsernameProblemLanguageResultExecution timeMemory
749733mohav48173Thousands Islands (IOI22_islands)C++17
6.75 / 100
33 ms4424 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) { if(n==2) { 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; } return true; }
#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...