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

a=list(input().split())
while a[0] != '@':
    for i in range(int(a[1])):
        if i == 0:
            print(' '*(int(a[1])-1)+a[0])
        elif i== int(a[1])-1:
            print(a[0]*(2*int(a[1])-1))
        else:
            print(' '*(int(a[1])-i-1)+a[0]+' '*(2*i-1)+a[0])    
    print()
    a=list(input().split())