Submission #1012710

#TimeUsernameProblemLanguageResultExecution timeMemory
1012710bachhoangxuanThousands Islands (IOI22_islands)C++17
6.75 / 100
28 ms5552 KiB
#include "islands.h" #include<bits/stdc++.h> using namespace std; std::variant<bool, std::vector<int>> find_journey( int N, int M, std::vector<int> U, std::vector<int> V) { vector<vector<int>> e(N); for(int i=0;i<M;i++) e[U[i]].push_back(i); if((int)e[0].size()<2 || (int)e[1].size()<1) return false; vector<int> res={e[0][0],e[1][0],e[0][1],e[0][0],e[1][0],e[0][1]}; return res; }
#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...