Created
August 1, 2016 16:32
-
-
Save libert-xyz/860a538ee5fa4884fa3fba533014a336 to your computer and use it in GitHub Desktop.
A single line containing the space separated values of N and M.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#08/1/16 | |
#https://www.hackerrank.com/challenges/designer-door-mat | |
N, M = map(int,input().split()) # More than 6 lines of code will result in 0 score. Blank lines are not counted. | |
for i in range(1,N,2): | |
print ((i*".|.").center(M,"-")) | |
print ("WELCOME".center(M,"-")) | |
for i in range(N-2,-1,-2): | |
print ((i*".|.").center(M,"-")) |
Author
libert-xyz
commented
Aug 1, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment