Submission #42805

#TimeUsernameProblemLanguageResultExecution timeMemory
42805alenam0161Simurgh (IOI17_simurgh)C++14
0 / 100
2 ms432 KiB
#include "simurgh.h" using namespace std; std::vector<int> find_roads(int n, std::vector<int> u, std::vector<int> v) { std::vector<int> r(n - 1); vector<int> ans; for (int i = 0; i < u.size(); ++i) { r.resize(0); for (int j = 0; j < n - 1; ++j)r.push_back(i); int k = count_common_roads(r); if (k == n - 1)ans.push_back(i); } return ans; }

Compilation message (stderr)

simurgh.cpp: In function 'std::vector<int> find_roads(int, std::vector<int>, std::vector<int>)':
simurgh.cpp:6:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = 0; i < u.size(); ++i) {
                    ^
#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...