Start: Nov, 12, 2017 10:00:00
2017秋Python程序设计基础培训第二次作业
End: Nov, 19, 2017 12:00:00
Time elapsed:
Time remaining:

Problem_ID: H
Result: Accepted
Time: 98ms
Memory: 24300kB
Author: hhh123
In contest: 1122

while True:
	tcase = input().strip().split()
	c =tcase[0]
	if c=='@':
		break;
	n =int(tcase[1])
	d=''
	for i in range(n):
		if i==0:
			d=' '*(n-1)+c
		elif i==n-1:
			d=c*(2*(n-1)+1)
		else:
			d=' '*(n-i-1)+c+' '*(2*i-1)+c
		print(d)
	print("")