문제
풀이
#include <iostream>
using namespace std;
void solve(void) {
int t, s, h; cin >> t >> s >> h;
for (int i=0; i<t; i++) {
cout << "*";
for (int j=0; j<s; j++) cout << " ";
cout << "*";
for (int j=0; j<s; j++) cout << " ";
cout << "*\n";
}
for (int i=0; i<2*s+3; i++) cout << "*";
cout << "\n";
for (int i=0; i<h; i++) {
for (int j=0; j<s+1; j++) cout << " ";
cout << "*\n";
}
}
int main(void) {
ios::sync_with_stdio(false);
cin.tie(nullptr);
solve();
return 0;
}