Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
101667 柯昊阳 矩阵转置 C++ 通过 100 0 MS 260 KB 382 2023-09-09 15:08:25

Tests(5/5):


#include <bits/stdc++.h> using namespace std; int arr[105][105]; int main(){ int n,m; cin>>n>>m; for(int i = 0;i<n;i++){ for(int j = 0;j<m;j++){ cin>>arr[i][j]; } } for(int i = 0;i<m;i++){ for(int j = 0;j<n;j++) { cout<<arr[j][i]<<" "; } cout<<endl; } return 0; }


测评信息: