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

while True:
	a = raw_input().strip().split()
	if a[0] == '@':
		break
	else:
		n=int(a[1])
		if n == 1:
			print a[0]
			print ''
			continue;
			
		print ' '*(n-1)+a[0]
		for i in range(2,n):
			print ' '*(n-i)+a[0]+' '*(2*(i-1)-1)+a[0]
		print a[0]*(2*n-1)
		print ''