Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
111883 | 陈铎文 | 拐角方阵 | C++ | Accepted | 0 MS | 280 KB | 313 | 2025-03-08 08:29:23 |
#include<bits/stdc++.h> using namespace std; int n; int main(){ int a[101][101],k=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; } }