7 条题解

  • 0
    @ 2023-11-26 16:35:07

    #include

    #include

    #include

    using namespace std;

    int n;

    int main()

    {

    ** **cin>>n;

    ** **for(int i=1;i<=n;i++)

    ** **{

    ** **for(int j=1;j<=n-i;j++)

    ** **{

    ** **cout<<" ";

    ** **}

    ** **for(int k=1;k<=n;k++)

    ** **{

    ** *for(int j=1;j<=2i-1;j++)

    ** **{

    ** **cout<<"*";

    ** **}

    ** for(int j=1;j<=2n-2i+1;j++)

    ** **{

    ** **cout<<" ";

    ** **}

    ** **}

    ** **cout<<endl;

    ** **}

    ** **return 0;

    }

    信息

    ID
    956
    时间
    1000ms
    内存
    128MiB
    难度
    4
    标签
    递交数
    372
    已通过
    183
    上传者