提交时间:2025-01-31 14:59:50

运行 ID: 5290

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