제출 #736353

#제출 시각아이디문제언어결과실행 시간메모리
736353puppy수천개의 섬 (IOI22_islands)C++17
6.75 / 100
42 ms5508 KiB
#include "islands.h" #include <variant> #include <vector> using namespace std; std::variant<bool, std::vector<int>> find_journey( int N, int M, std::vector<int> U, std::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() <= 1 || b.size() == 0) return false; else { return vector<int>({a[0], b[0], a[1], a[0], b[0], a[1]}); } }
#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...