제출 #736362

#제출 시각아이디문제언어결과실행 시간메모리
736362jk410수천개의 섬 (IOI22_islands)C++17
0 / 100
31 ms6092 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; 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]); for (int i = n - 1; i; i--) ret.push_back(edge[i][i - 1]); 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]); 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...