#include "stdlib.h" #include "algorithm" #include "iostream" #include <cstdio> #include "string" #include <iomanip> #include <map> #include <set> #include "math.h" using namespace std; map<int, bool> mp; set<string> st; int main() { int n; cin >> n; int x[20][20]; for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++)cin >> x[j][i]; } for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { if (j != 0)cout << " "; cout << x[i][j]; } cout << endl; } return 0; } |
Double click to view unformatted code.