Submission #302026

#TimeUsernameProblemLanguageResultExecution timeMemory
302026arthurconmyConnecting Supertrees (IOI20_supertrees)C++14
11 / 100
250 ms22136 KiB
#include <bits/stdc++.h> using namespace std; #ifndef ARTHUR_LOCAL #include "supertrees.h" #endif #ifdef ARTHUR_LOCAL void build(vector<vector<int>> V) { for(auto row:V) { for(auto thing:row) cout << thing << " "; cout << endl; } } #endif int construct(vector<vector<int>> P) { int n = (int)P.size(); vector<vector<int>> answer; vector<int> row1(n,1); row1[0]=0; answer.push_back(row1); for (int i = 1; i < n; i++) { vector<int> row(n); row[0]=1; // row.resize(n); answer.push_back(row); } build(answer); return 1; } #ifdef ARTHUR_LOCAL int main() { construct({{1,2,3},{3,1,2},{3,1,2}}); } #endif
#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...