728x90
반응형
단순 수학 문제이다.
A, B, K = map(int, input().split())
print((A//K)*(B//K) - max(0, A//K-2)*max(0, B//K-2))728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
| 백준 알고리즘 8718번 Bałwanek(python) (0) | 2021.02.05 |
|---|---|
| 백준 알고리즘 8710번 Koszykarz(python) (0) | 2021.02.05 |
| 백준 알고리즘 6778번 Which Alien?(python) (0) | 2021.02.05 |
| 백준 알고리즘 6768번 Don’t pass me the ball!(python) (0) | 2021.02.05 |
| 백준 알고리즘 6764번 Sounds fishy!(python) (0) | 2021.02.05 |