1 条题解

  • 1
    @ 2024-10-2 11:18:40
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	int n,i,j,k;
    	cin>>n;
    	for(i=n;i>0;i--){
    		for(k=i;k<n;k++){
    			cout<<" ";
    		}
    		for(j=i*2-1;j>0;j--){
    			cout<<"*";
    		}
    		cout<<endl;
    	}
    	return 0;
    }
    
    • 1

    信息

    ID
    84
    时间
    1000ms
    内存
    256MiB
    难度
    2
    标签
    递交数
    32
    已通过
    23
    上传者