Designer Door Mat

  • + 0 comments

    N, M = list(map(int,input().split())) wlen = len('WELCOME') j = 0 for i in range(N): # for j in range(M): if i < (N-1)/2: print('-'*int((M-(1+i*2)3)/2) + '.|.'(1+i*2) + '-'*int((M-(1+i*2)*3)/2)) elif i==(N-1)/2: print('-'*int((M-7)/2) + 'WELCOME' + '-'int((M-7)/2)) else: # i>=(N+1)/2: print('-'(3+j*3)+ '.|.'*(N-2-2*j)+'-'*(3+j*3)) j +=1