Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
127932 包老师 矩阵转置 C++ Accepted 5 MS 292 KB 386 2025-07-30 13:06:06

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main() { //只需要按照求数组总和的方式 // m n int m,n; cin>>m>>n; int a[m][n]; for (int i = 0; i < m; i++) { for (int j = 0; j < n; j++) { cin >> a[i][j]; } } for (int j = 0; j < n; j++) { for (int i = 0; i < m ; i++) { cout << a[i][j] << " "; } cout << endl; } return 0; }