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: 99ms
Memory: 24300kB
Author: huangchongding
In contest: 1122

while True:
 try:
  n=list(map(str,input().split()))
  m=n[0]
  if m=='@':break
  a=int(n[1])
  print(' '*(a-1),m,sep='')
  for i in range(2,a):
   print(' '*(a-i),m,' '*((i-1)*2-1),m,sep='')
  if a!=1:print(m*(2*a-1),sep='')
  print()
 except EOFError:
  break