-Code
for i in range(1, int(input()) + 1):
if i % 3 == 0 and i % 5 == 0:
print("DeadMan")
elif i % 3 == 0:
print("Dead")
elif i % 5 == 0:
print("Man")
else:
print(i, end=" ")
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 27918번 탁구 경기 (0) | 2023.03.27 |
---|---|
[백준/파이썬] 27890번 특별한 작은 분수 (0) | 2023.03.26 |
[백준/파이썬] 24609번 Overdraft (0) | 2023.03.24 |
[백준/파이썬] 26198번 Chronogram (0) | 2023.03.23 |
[백준/파이썬] 25785번 Easy-to-Pronounce Words (0) | 2023.03.22 |