Submission #439913

#TimeUsernameProblemLanguageResultExecution timeMemory
439913QuantumK9Connecting Supertrees (IOI20_supertrees)C++17
11 / 100
259 ms23308 KiB
#include "supertrees.h" #include <bits/stdc++.h> #define pb push_back using namespace std; int construct(vector<vector<int>> p) { int n = p.size(); vector<vector<int>> answer; //assume st1 for (int i = 0; i < n; i++) { vector<int> row; row.resize(n); for( int j = 0; j < n; j++ ){ if( j == i-1 || j == i+1 ){ row[j] = 1; } else{ row[j] = 0; } } answer.pb(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...