IT & 영상관련/파이썬python
python]hackerRank] Designer Door Mat 그리기 (저장용)
3catpapa
2020. 7. 2. 10:58
반응형
SMALL
# Enter your code here. Read input from STDIN. Print output to STDOUT
n,m = map(int, input().split(' '))
a = '.|.'
b = 'WELCOME'
i = 1
while i <= n - 2 :
print((a*i).center(m,'-'))
i += 2
print(b.center(m,'-'))
i = n-2
while i >= 1 :
print((a*i).center(m,'-'))
i -= 2
반응형
LIST