제출 #1058205

#제출 시각아이디문제언어결과실행 시간메모리
1058205fuad27수천개의 섬 (IOI22_islands)C++17
6.75 / 100
17 ms5440 KiB
#include "islands.h" #include <bits/stdc++.h> using namespace std; std::variant<bool, std::vector<int>> find_journey( int N, int M, std::vector<int> U, std::vector<int> V) { vector<vector<pair<int,int>>> g(N); for(int i = 0;i<M;i++) { g[U[i]].push_back({V[i],i}); } if(N == 2) { if(g[0].size() < 2)return false; if(g[1].size() == 0)return false; vector<int> v; v.push_back(g[0][0].second); v.push_back(g[1][0].second); v.push_back(g[0][1].second); v.push_back(g[0][0].second); v.push_back(g[1][0].second); v.push_back(g[0][1].second); return v; } return true; }
#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...