728x90
반응형
단순 구현(별 찍기) 문제이다.
N = int(input())
if N%2:
t = N//2
print('*'*N)
print(' '*(N-t-1) + '*')
for i in range(t):
print(' '*(t-i-1) + '*' + ' '*(2*i+1) + '*')
else:
print("I LOVE CBNU")
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 4999번 아!(python) (0) | 2021.03.25 |
---|---|
백준 알고리즘 15947번 아기 석환 뚜루루 뚜루(python) (0) | 2021.03.25 |
백준 알고리즘 2555번 생일 출력하기(python) (0) | 2021.03.25 |
백준 알고리즘 7567번 그릇(python) (0) | 2021.03.25 |
백준 알고리즘 2993번 세 부분(python) (0) | 2021.03.25 |