Submission #1050107

#TimeUsernameProblemLanguageResultExecution timeMemory
1050107MercubytheFirstConnecting Supertrees (IOI20_supertrees)C++17
11 / 100
94 ms22100 KiB
#include "supertrees.h" #include <vector> using namespace std; int construct(std::vector<std::vector<int>> p) { int n = p.size(); std::vector<std::vector<int>> answer; answer.push_back(vector<int>(n, 1)); answer[0][0] = 0; for (int i = 1; i < n; i++) { std::vector<int> row; row.resize(n); row[0] = 1; answer.push_back(row); } build(answer); return 1; }
#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...
#Verdict Execution timeMemoryGrader output
Fetching results...