#include using namespace std;

int main(){ int n; cin >> n; int a[100][100]; //建立二维数组 for(int i = 0; i < n; i++){ for(int j = 0; j < n; j++){ int temp; cin >> temp; //输入数据 a[i][j] = temp; } } for(int i = 0; i < n; i++){ //转置 for(int j = i; j < n; j++){ if(i != j){ int temp = a[i][j]; a[i][j] = a[j][i]; a[j][i] = temp; } } } for(int i = 0; i < n; i++){ for(int j = 0; j <n; j++){ cout << a[i][j] << " "; } cout << endl; } return 0; }