Agorithm/백준 알고리즘
백준 알고리즘 14568번 2017 연세대학교 프로그래밍 경시대회(python)
kimjinho1
2021. 3. 3. 00:35
728x90
반응형
단순 사칙연산 문제이다.
N = int(input())
cnt = 0
for i in range(1, (N-2)//2+1):
for j in range(2, N-i+1):
K = N - (2*i + j)
if K > 0 and K%2 == 0:
cnt += 1
print(cnt)
728x90
반응형