| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 65297 | 石茂诤 | 拐角方阵 | C++ | Accepted | 2 MS | 284 KB | 458 | 2024-01-24 17:48:16 |
# include<iostream> using namespace std; int a[101][101]; int b[101][101]; int main(){ int n,m=0; cin>>n; for(int k=1;k<=n;k++){ for(int i=k;i<=n;i++){ for(int j=k;j<=n;j++){ a[i][j]=k; } } } for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ cout<<a[i][j]<<" "; } cout<<endl; } return 0; }