Submission
Status:
PPPPPPPPPPPPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: UNJE0o
Problemset: เมทริกซ์สมมาตร
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-11 19:48:18
#include <bits/stdc++.h>
#define en '\n'
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);cout.tie(NULL);
int n,l;cin >> n;
int arr[n][n] = {0};
for(int j = 1;j < n;j++){
for(int i = 0;i < j;i++){
cin >> arr[i][j];
arr[j][i] = arr[i][j];
}
}
for(int i = 0;i < n;i++){
for(int j = 0;j < n;j++){
cout << arr[i][j] << " ";
}cout << en;
}
}