Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
338785 丁虞轩 【C4-9】数字走向II C++ 通过 100 4 MS 252 KB 295 2025-08-08 10:56:25

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int n,a[15][15],x=0; int main(){ cin>>n; for(int i=n;i>=1;i--){ for(int j=1;j<=n;j++){ x++; a[i][j]=x; } } for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ cout<<setw(3)<<a[i][j]; } cout<<endl; } return 0; }


测评信息: