# |
Author |
Problem |
Lang |
Verdict |
Time |
Memory |
Sent |
Judged |
|
123065280 |
Practice:
laXus07 |
32C
- 12
|
Python 3
|
Accepted
|
124 ms
|
6580 KB
|
2021-07-20 05:27:25 |
2021-07-20 05:27:25 |
|
n,m,k = map(int,input().split(" "))
l=((n-1)//k)*k+1
w=((m-1)//k)*k+1
a=((n-1)//k+1)*((m-1)//k+1)
ans=(n-l+1)*(m-w+1)*a
print(ans)
Click to see test details