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

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