This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |