Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
2845 邓小龙 矩阵倒序输出 C++ Presentation Error 0 MS 264 KB 392 2024-03-08 11:54:28

Tests(0/2):


Code:

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