Submission #797624

#TimeUsernameProblemLanguageResultExecution timeMemory
797624elpro123Thousands Islands (IOI22_islands)C++17
6.75 / 100
39 ms4412 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> a, b; for (int i = 0; i < M; i++) { if (U[i] == 0) { a.push_back(i); } else { b.push_back(i); } } if (a.size() >= 2 && b.size() >= 1) { return vector{a[0], b[0], a[1], a[0], b[0], a[1]}; } else { return {}; } }
#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...