在 线 评 测 系 统
Toggle navigation
HNUAHE-OJ
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Problem1148--矩阵转置1.0
1148: 矩阵转置1.0
[Creator :
]
Time Limit :
1.000
sec
Memory Limit :
128 MiB
Submit
Solved: 0
Submit Num: 0
Statistics
ShowOff!
Description
使给定的一个二维数组(n×n)转置,即行列互换。
Input
给定一个整数n(2≤n
≤10)以及
一个nxn的矩阵
Output
转置后的矩阵
Sample Input
Copy
3 1 2 3 4 5 6 7 8 9
Sample Output
Copy
1 4 7 2 5 8 3 6 9
Source/Category
admin