Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
139541 林麒瑞 矩阵转置 C++ 解答错误 0 0 MS 240 KB 316 2024-03-23 17:41:33

Tests(0/5):


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


测评信息: