-->
当前位置:首页 > 题库

PROGRAMMING:Transpose matrix

Luz5年前 (2021-05-10)题库698
###Task description
Find a transpose matrix with three rows and three columns.
###Input format:
An integer n < 20 in the first line indicates that there are n groups of test data, and the following is n groups of data;
Each group of test data is nine integer numbers (each number is not more than 10000), which are each item of the matrix;
###Output format:
Transpose matrix of each group of test data; Please add a line feed after each output
###Input example:
```in
two
one two three four five six seven eight nine
2 3 4 5 6 7 8 9 1
```
###Output example:
```out
1 4 7
2 5 8
3 6 9
2 5 8
3 6 9
4 7 1
```
###Title Source
This topic is selected from nyoj website, online address: http://nyoj.top/problem/29







answer:If there is no answer, please comment