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: 139ms
Memory: 21432kB
Author: 13989362160
In contest: 1086

while True:
	n=map(str,raw_input().strip().split())
	if n[0] == '@':
		break
	x=n[0]
	y=int(n[1])
	for j in range(1,y+1):
		if j==1:
			print ' '*(y-1)+x
		elif j==y:
			print x*(2*y-1)
		else:
			print ' '*(y-j)+x+' '*(2*j-3)+x
	print