제출 #736364

#제출 시각아이디문제언어결과실행 시간메모리
736364jk410수천개의 섬 (IOI22_islands)C++17
5 / 100
32 ms6076 KiB
#include "islands.h" #include <bits/stdc++.h> using namespace std; int n; int edge[400][400]; variant<bool, vector<int>> find_journey(int _n, int m, vector<int> u, vector<int> v) { n = _n; if (n == 2) return false; for (int i = 0; i < m; i++) edge[u[i]][v[i]] = i; vector<int> ret; for (int i = 1; i < n; i++) ret.push_back(edge[i - 1][i]); ret.push_back(edge[n - 1][0]); ret.push_back(edge[0][n - 1]); for (int i = n - 1; i; i--) ret.push_back(edge[i][i - 1]); ret.push_back(edge[n - 1][0]); for (int i = n - 1; i; i--) ret.push_back(edge[i - 1][i]); for (int i = 1; i < n; i++) ret.push_back(edge[i][i - 1]); ret.push_back(edge[0][n - 1]); return ret; }
#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...