Submission
Status:
PPPPPPPPPPPPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: dddrrrr
Problemset: เมทริกซ์สมมาตร
Language: cpp
Time: 0.004 second
Submitted On: 2025-10-14 23:33:23
#include <bits/stdc++.h>
using namespace std;
int main(){
cin.tie(0)->sync_with_stdio(0);
int n;cin >> n;
vector <vector <int>> vec(n ,vector <int>(n ,0));
int m=1;
for(int i=1 ;i<n ;i++){
for(int j=0 ;j<m ;j++){
cin >> vec[i][j];
vec[j][i] = vec[i][j];
}
m++;
}
for(auto row : vec){
for(auto col : row){
cout << col << ' ';
}
cout << "\n";
}
return 0;
}