- 入门班测试2:环太平洋钢铁机甲3
key
- @ 2025-7-28 11:20:33
#include<iostream>
using namespace std;
int main(){
int a;
cin>>a;
if(a==1){
cout<<" *"<<endl<<" ***"<<endl<<"*****";
}
else if(a==2){
cout<<"***"<<endl<<"***"<<endl<<"***";
}
else{
cout<<" *"<<endl<<" ***"<<endl<<"*****"<<endl<<" ***"<<endl<<" *";
}
return 0;
}
0 条评论
目前还没有评论...
信息
- ID
- 409
- 时间
- ms
- 内存
- MiB
- 难度
- 3
- 标签
- 递交数
- 99
- 已通过
- 53
- 上传者