| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 73174 | sh25_wangsj | 矩阵交换行 | C++ | 通过 | 0 MS | 256 KB | 764 | 2025-11-07 15:01:32 |
#include <iostream> using namespace std; int main() { int a,w,x,y,z,g,h,b[99],c[333],d[444],e[555],f[666]; for (int i = 1; i < 6; i++) { cin >> a >> w >> x >> y >> z; b[i] = a; c[i] = w; d[i] = x; e[i] = y; f[i] = z; } cin >> h >> g; for (int j = 1; j < 6; j++) { if (j == h) { cout << b[g] << ' ' << c[g] << ' ' << d[g] << ' ' << e[g] << ' ' << f[g] << endl; } else if (j == g) { cout << b[h] << ' ' << c[h] << ' ' << d[h] << ' ' << e[h] << ' ' << f[h] << endl; } else { cout << b[j] << ' ' << c[j] << ' ' << d[j] << ' ' << e[j] << ' ' << f[j] << endl; } } return 0; }