Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
2843 孙浚轩 矩阵倒序输出 C++ Accepted 0 MS 264 KB 324 2024-03-03 16:47:56

Tests(2/2):


Code:

#include<iostream> using namespace std; int main(){ int n,m,a[10][10]; cin>>n>>m; for(int i=0;i<n;i++){ for(int j=0;j<m;j++) cin>>a[j][i]; } for(int i=0;i<n;i++){ for(int j=0;j<m;j++) cout<<a[m-1-j][i]<<" "; cout<<endl; } return 0; }