You are viewing a single comment's thread. Return to all comments →
r,c=map(int,input().split())
m='-' mc=(c-3)//2 l=l1='.'+'|'+'.'
for i in range(r//2): print(m*mc+l+m*mc) mc-=3 l=l+l1+l1
print(m*((c-7)//2)+'WELCOME'+m*((c-7)//2))
for i in range(r//2): l=l[:len(l)-6] mc+=3 print(m*mc+l+m*mc)
Seems like cookies are disabled on this browser, please enable them to open this website
Designer Door Mat
You are viewing a single comment's thread. Return to all comments →
r,c=map(int,input().split())
m='-' mc=(c-3)//2 l=l1='.'+'|'+'.'
for i in range(r//2): print(m*mc+l+m*mc) mc-=3 l=l+l1+l1
print(m*((c-7)//2)+'WELCOME'+m*((c-7)//2))
for i in range(r//2): l=l[:len(l)-6] mc+=3 print(m*mc+l+m*mc)