Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
125726 | 晏莞煜 | 拐角方阵 | C++ | Accepted | 1 MS | 268 KB | 342 | 2025-07-15 14:27:56 |
#include<iostream> #include<cstring> using namespace std; int main(){ int n; cin>>n; int a[n][n]; int y=0,o=1; for(int w=0;w<n;w++){ for(int i=y;i<n;i++){ for(int q=y;q<n;q++){ a[i][q]=o; } } y++; o++; } for(int i=0;i<n;i++){ for(int q=0;q<n;q++){ cout<<a[i][q]<<" "; } cout<<endl; } return 0; }