728x90
반응형
단순 구현 문제이다.
n = int(input())
cnt = 0
for i in range(6):
for j in range(i, 6):
if i+j == n:
cnt += 1
print(cnt)
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 6780번 Sumac Sequences(python) (0) | 2021.02.18 |
---|---|
백준 알고리즘 6974번 Long Division(python) (0) | 2021.02.18 |
백준 알고리즘 1592번 영식이와 친구들(python) (0) | 2021.02.17 |
백준 알고리즘 1568번 새(python) (0) | 2021.02.17 |
백준 알고리즘 1551번 수열의 변화(python) (0) | 2021.02.17 |