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 = map(int, input().split())
limit = int((M - 3)/2)
x = limit # + to -
y = 1 # - to +
while x >= 3:
print("-" * x + ".|." * y + "-" * x)
x -= 3
y += 2
#central line
welcome = (M - 7)/2
print("-" * int(welcome) + "WELCOME" + "-" * int(welcome))
x = 3 # - to +
y -= 2 # + to -
while x <= limit:
print("-"*x + ".|." * y + "-"*x)
x += 3
y -= 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 →