| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 154536 | 王培臻 | 矩阵行交换 | C++ | Accepted | 0 MS | 276 KB | 416 | 2026-05-30 15:02:12 |
#include<bits/stdc++.h> using namespace std; int main() { long long a[100][100]; long long s,d; cin>>s>>d; for(int i=1;i<=5;i++){ for(int j=1;j<=5;j++){ cin>>a[i][j]; } } for(int i=1;i<=5;i++){ for(int j=1;j<=5;j++){ if(i==d){ cout<<a[s][j]<<" "; }else{ if(i==s){ cout<<a[d][j]<<" "; }else{ cout<<a[i][j]<<" "; } } } cout<<endl; } return 0; }