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: 15957554881
In contest: 1086

while True:  
    a, row = raw_input().strip().split()
    row = int(row)
    if a == '@':  
        break
    k = 1
    for i in range(1,row+1):
        if i == 1:
            print ' '*(row-1) + a
        elif i == row:
            print a*(2*row-1)
        else:
            print ' '*(row-i)+a+' '*k+a
            k+=2
    print