Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
127747 | 包老师 | 矩阵倒序输出 | C++ | Accepted | 1 MS | 272 KB | 412 | 2025-07-29 12:55:33 |
#include <bits/stdc++.h> using namespace std; int main() { //二维数组 //二维数组相当于一组一维数组 int n, m; cin >> n >> m; int a[n][m]; for (int j = 0; j < n; j++) { for (int i = 0; i < m; i++) { cin >> a[j][i]; } } for (int j = 0; j < n; j++) { for (int i = m - 1; i >= 0; i--) { cout << a[j][i] << " "; } cout << endl; } return 0; }