Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
64291 邓昊源 拐角方阵 C++ Accepted 2 MS 276 KB 306 2024-01-21 12:59:29

Tests(2/2):


Code:

#include<iostream> using namespace std; int main(){ int a[20][20]; int n, b = 0; cin>>n; for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ if(i < j){ cout<< i+1 << " " ; }else{ cout<< j+1 << " " ; } } cout<<endl; } return 0; }