Submission #576126

#TimeUsernameProblemLanguageResultExecution timeMemory
5761262fat2codeConnecting Supertrees (IOI20_supertrees)C++17
11 / 100
163 ms25880 KiB
#include <bits/stdc++.h> #include "supertrees.h" #define fr first #define sc second #define all(s) s.begin(), s.end() using namespace std; const int nmax = 1005; int n, adj[nmax][nmax]; vector<vector<int>>ans; void lol(){ for(int i=1;i<=n;i++){ vector<int>tz; for(int j=1;j<=n;j++){ tz.push_back(adj[i][j]); } ans.push_back(tz); tz.clear(); } build(ans); } int construct(vector<vector<int>> p) { n = p.size(); for(int i=1;i<n;i++){ adj[i][i+1] = adj[i+1][i] = 1; } lol(); 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...