Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
102167 郑博浩 矩阵转置 C++ 解答错误 0 0 MS 244 KB 395 2023-09-12 13:43:54

Tests(0/5):


#include<iostream> #include<cstdio> using namespace std; int main() { //freopen("forward.in","r",stdin); //freopen("forward.in","r",stdout); int x,y,i,j,a[105][105]; cin>>x>>y; for(int i=0;i<=x-1;i++){ for(int j=0;j<=y-1;j++){ cin>>a[i][j]; } } cout<<endl; for(j=0;j<=y-1;j++){ for(i=0;i<=x-1;i++){ cout<<a[j][i]<<" "; } cout<<endl; } return 0; }


测评信息: