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

s=input()
while s!="@":
    s=s.split()
    a=s[0]
    n=int(s[1])
    print(" "*(n-1)+a)
    i=n-2
    while i>=1:
        print(" "*i+a+" "*((n-i-1)*2-1)+a)
        i=i-1
    if n>1:
        print(a*(2*n-1))
    print()
    s=input()