3 条题解

  • 1
    @ 2024-9-8 9:04:05
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    int n;
    cin>>n;
    for(int i=1,j=n-1,z=1;i<=n;i++,j--,z+=2){
    for(int o=1;o<=j;o++){
    cout<<' ';
    }
    for(int o=1;o<=z;o++){
    cout<<'*';
    }
    cout<<endl;
    }
    return 0;
    }
    

    信息

    ID
    160
    时间
    1000ms
    内存
    128MiB
    难度
    4
    标签
    递交数
    71
    已通过
    19
    上传者