注意向上取整
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
char m;
cin>>n>>m;
string str = "";
for(int j=1;j<=n;j++) str+=m;
int id = (n+1)/2;//向上取整
for(int i=1;i<=id;i++){
cout<<str<<endl;
}
return 0;
}