Start: Apr, 17, 2017 10:00:00
Python程序设计基础培训第二次作业
End: Apr, 23, 2017 14:00:00
Time elapsed:
Time remaining:

Problem_ID: H
Result: Accepted
Time: 125ms
Memory: 21432kB
Author: 13185217161
In contest: 1086

while True:
	data=str(raw_input().strip())
	if data=='@':break
	st,row=map(str,data.split())
	for i in range(int(row)):
		if i==0:
			print ' '*(int(row)-i-1)+st
		elif i==int(row)-1:
			print st*(int(row)*2-1)
		else:
			print ' '*(int(row)-i-1)+st+" "*(i*2-1)+st
	print