Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
37667 jiabokai 矩阵交换行 C++ 运行出错 0 MS 244 KB 331 2024-01-22 16:07:34

Tests(0/1):


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


测评信息: