Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
343509 | 123456 | 【C4-13】拐角I | C++ | 通过 | 100 | 3 MS | 248 KB | 236 | 2025-08-27 20:45:53 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; for(int i=0;i<n;i++){ for(int j=0;j<=i;j++) cout<<setw(3)<<j+1; for(int j=i+1;j<n;j++) cout<<setw(3)<<i+1; cout<<endl; } return 0; }