时空双修者(99% 99%)!
2026-09-12 18:09:09
发布于:上海
4阅读
0回复
0点赞
#include <iostream>
using namespace std;
const int MAX_N = 1005;
const int MAX_M = 1005;
short matrix[MAX_N][MAX_M];
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n, m;
if (!(cin >> n >> m)) return 0;
for (int i = 1; i <= n; ++i) {
for (int j = 1; j <= m; ++j) {
cin >> matrix[i][j];
}
}
int x;
if (cin >> x) {
for (int j = m; j >= 1; --j) {
cout << matrix[x][j] << " ";
}
cout << endl;
}
return 0;
}
点个赞吧?
这里空空如也








有帮助,赞一个