제출 #786269

#제출 시각아이디문제언어결과실행 시간메모리
786269khshg수천개의 섬 (IOI22_islands)C++17
5 / 100
26 ms4312 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<map<int, vector<int>>> adj(N); for(int i = 0; i < M; ++i) { adj[U[i]][V[i]].push_back(i); } if((int)adj[0][1].size() >= 2 && (int)adj[1][0].size() >= 1) { vector<int> ans = {adj[0][1][0], adj[1][0][0], adj[0][1][1], adj[0][1][0], adj[1][0][0], adj[0][1][1]}; return ans; } 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...