Submission #736362

#TimeUsernameProblemLanguageResultExecution timeMemory
736362jk410Thousands Islands (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...