제출 #628137

#제출 시각아이디문제언어결과실행 시간메모리
628137Turkhuu수천개의 섬 (IOI22_islands)C++17
6.75 / 100
50 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) { vector<vector<int>> G(N); for (int i = 0; i < M; i++) { G[U[i]].push_back(i); } if (G[0].size() >= 2 && G[1].size() >= 1) { int X = G[0][0]; int Y = G[0][1]; int Z = G[1][0]; return vector<int>({X, Z, Y, X, Z, Y}); } 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...