提交时间:2023-12-31 09:29:37

运行 ID: 33690

#include<bits/stdc++.h> using namespace std; int main(){ int x,y; cin>>x>>y; int ans=x; ans-=1; for(int i=1;i<=x;i++){ for(int j=1;j<=ans;j++){ cout<<" "; } ans--; for(int k=1;k<=y;k++){ cout<<"*"<<" "; } cout<<endl; } }