Submission

Status:

PPPPPPPPPPPPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: Kidmaiok

Problemset: เมทริกซ์สมมาตร

Language: cpp

Time: 0.005 second

Submitted On: 2025-10-07 00:26:02

#include<bits/stdc++.h>
using namespace std;

int main (){
    int n,y,o[210][210];
    cin >> n;

    for(int p = 1; p < n;p++){
        for(int z = 0; z<p;z++){
            cin >> y;
            o[p][z] = y;
            o[z][p] = y;
        }
    }
    for(int i = 0;i<n;i++){
        for(int j=0;j<n;j++){
            cout << o[i][j] << " ";
        }cout << '\n';
    }
    
}