Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
102737 | 吴彦晓 | 数字金字塔 | C++ | Accepted | 1 MS | 280 KB | 228 | 2024-12-22 15:07:11 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; for(int j = 1;j <= n;j++){ for(int k = 1;k<=n-j;k++){ cout<<" "; } for(int i = 1;i <= j*2-1;i++){ cout<<j; }cout<<endl; } }