Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
64432 段文昊 拐角方阵 C++ Accepted 1 MS 276 KB 239 2024-01-21 16:17:49

Tests(2/2):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int a; cin>>a; for(int i=0;i<a;i++){ for(int j=0;j<a;j++){ if(i<j){ cout<<i+1<<' '; }else{ cout<<j+1<<' '; } } cout<<endl; } return 0; }