| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1343709 | ElyesChaabouni | 슈퍼트리 잇기 (IOI20_supertrees) | C++20 | 0 ms | 0 KiB |
#include <bits/stdc++.h>
using namespace std;
int construct(vector<vector<int>> p){
int n=p[0].size();
vector<vector<int>> ans(n,vector<int>());
for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
if(j==i+1||j==i-1)ans[i].push_back(1);
else ans[i].push_back(0);
}
}
build(ans);
return 1;
}