Beakjoon&프로그래머스/파이썬
[백준/파이썬]8295번 Rectangles
현장
2021. 4. 27. 20:37
-코드
n, m, p = map(int, input().split())
r = 0
for i in range(1, n + 1):
for j in range(1, m + 1):
if (i + j) * 2 >= p:
r += (n - i + 1) * (m - j + 1)
print(r)