Submission #842004

#TimeUsernameProblemLanguageResultExecution timeMemory
842004Tenis0206Longest Trip (IOI23_longesttrip)C++17
5 / 100
767 ms1976 KiB
#include <bits/stdc++.h> #include "longesttrip.h" const int nmax = 256; std::vector<int> G[nmax + 5]; std::vector<int> longest_trip(int N, int D) { int n = N; for(int i=0; i<n; i++) { for(int j=i+1; j<n; j++) { if(are_connected({i}, {j})) { G[i].push_back(j); G[j].push_back(i); } } } std::vector<int> r; for(int i=0;i<n;i++) { r.push_back(i); } return r; }
#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...