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: 104ms
Memory: 24436kB
Author: wjj
In contest: 1122

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