728x90
반응형

단순 수학 문제이다.

A, B, K = map(int, input().split())
print((A//K)*(B//K) - max(0, A//K-2)*max(0, B//K-2))
728x90
반응형

+ Recent posts