We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
n, m = list(map(int,input().split()))
x = int((m-3)/2)
y = 1
a = int(m/n)
b = n - 2
for i in range(0,int(n/2)):
print('-'*x + '.|.'*y + '-'*x)
x = x - 3
y = y + 2
print('-'*int((m-7)/2) + 'WELCOME' + '-'*int((m-7)/2) )
for i in range(0,int(n/2)):
print('-'*a + '.|.'*b + '-'*a)
a = a + 3
b = b - 2
Cookie support is required to access HackerRank
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 →
n, m = list(map(int,input().split())) x = int((m-3)/2) y = 1 a = int(m/n) b = n - 2 for i in range(0,int(n/2)): print('-'*x + '.|.'*y + '-'*x) x = x - 3 y = y + 2 print('-'*int((m-7)/2) + 'WELCOME' + '-'*int((m-7)/2) ) for i in range(0,int(n/2)): print('-'*a + '.|.'*b + '-'*a) a = a + 3 b = b - 2