| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 127925 | 饶晋吉 | 数组转置 | C++ | Wrong Answer | 1 MS | 268 KB | 440 | 2025-07-30 12:53:42 |
#include<iostream> using namespace std; int main() { int n, m; cin >> n >> m; int a[6][6]; 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 == n) cout << a[m][j] << " "; else if (i == m) cout << a[n][j] << " "; else cout << a[i][j] << " "; } cout << endl; } return 0; }
------Input------
1 2 2359 23 439 2 239 309 13
------Answer-----
1 23 239 2 439 309 2359 2 13
------Your output-----
309 13 0 72704 0 2359 23 439 2 239 0 1 0 32768 0 32766 9 0 0 0 0 8 0 1 0