标签:acm
2 1 2 3 4 5 6 7 8 9 2 3 4 5 6 7 8 9 1
1 4 7 2 5 8 3 6 9 2 5 8 3 6 9 4 7 1
#include <iostream> using namespace std; int main() { int n, m[3][3]; cin >> n; while (n--) { for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { cin >> m[j][i]; } } for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { cout << m[i][j] << " "; } cout << endl; } } return 0; }
版权声明:本文为博主原创文章,未经博主允许不得转载。
标签:acm
原文地址:http://blog.csdn.net/u011694809/article/details/48107357