Submission #1064234

#TimeUsernameProblemLanguageResultExecution timeMemory
1064234MarwenElarbiThousands Islands (IOI22_islands)C++17
1.75 / 100
18 ms4308 KiB
#include "islands.h" #include <bits/stdc++.h> using namespace std; #define pb push_back #define ll long long #define fi first #define se second std::variant<bool, std::vector<int>> find_journey( int N, int M, std::vector<int> U, std::vector<int> V) { vector<int> a; vector<int> b; for (int i = 0; i < M; ++i) { (U[i]==0 ? a : b).pb(i); } if(a.size()>=2&&b.size()>=2){ return vector<int> ({a[0],b[0],a[1],b[1],b[0],a[0],b[1],a[1]}); } 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...