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

while True:
  try:
   s=input()
   if s[0]=="@":
        break
   s=s.split()
   # print(s)
   ch,n=s
   n=int(n)
   # print(ch," ",n)
   print(" "*(n-1),ch,sep="")
   for i in range(1,n-1):
       print(" "*(n-i-1),ch," "*(2*i-1),ch,sep="")
   if n!=1 :
       print(ch*(2*n-1),sep="")
   print()
  except EOFError:
      break