http://acm.hdu.edu.cn/showproblem.php?pid=2091
#include <iostream>
#include <cstring>
#include <set>
using namespace std;
int main() {
ios::sync_with_stdio(0);
char ch;
int n;
bool flag = 0;
while(cin>>ch>>n&&ch!='@') {
if(flag) cout<<endl;
flag = 1;
for(int i = 0; i < n; i++){
for(int j = 0; j < n+i; j++){
if(j==n-1-i||j==n-1+i||i==n-1) cout << ch;
else cout << ' ';
}
cout<<endl;
}
}
return 0;
}