Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
26150 C++|刘一阳 矩阵转置 C++ 解答错误 0 MS 244 KB 262 2023-08-30 15:40:21

Tests(0/1):


#include<iostream> using namespace std; int main() { int n,m; cin>>n>>m; int a[m][n]; for(int i=0;i<n;i++){ for(int j=0;j<m;j++){ cin>>a[i][j]; } } for(int i=0;i<n;i++){ for(int j=0;j<m;j++){ cout<<a[j][i]; } } return 0; }


测评信息:

输入

3 3
1 2 3
4 5 6
7 8 9

输出

147258369

答案

1 4 7
2 5 8
3 6 9

系统信息

exit code: 0, checker exit code: 0