Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
140305 鲁博睿 拐角方阵 C++ Accepted 1 MS 292 KB 401 2025-12-13 19:31:34

Tests(2/2):


Code:

#include<bits/stdc++.h> using namespace std; int a[1000][1000]; int main(){ int n,b=0; cin>>n; for(int i=1;i<=n;i++){ for(int j=i;j<=n;j++){ for(int g=i;g<=n;g++){ a[g][j]=i; } } } for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++) cout<<a[i][j]<<" "; cout<<endl; } return 0; }