Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
129054 罗嘉为 矩阵转置 C++ 通过 100 0 MS 256 KB 337 2024-01-26 15:59:32

Tests(5/5):


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


测评信息: