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

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