提交时间:2023-12-31 09:31:38

运行 ID: 33693

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