- 字符图形8-数字三角
4
- 2025-8-2 9:30:26 @
#include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
for(int i=1;i<=n;i++){
for(int k=1;k<=n-i;k++){
cout<<" ";
}
for(int j=1;j<=i*2-1;j++){
cout<<j;
}
cout<<endl;
}
}
0 条评论
目前还没有评论...
信息
- ID
- 260
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 4
- 标签
- 递交数
- 62
- 已通过
- 18
- 上传者