# |
Author |
Problem |
Lang |
Verdict |
Time |
Memory |
Sent |
Judged |
|
250977621 |
Practice:
Aravind96 |
32C
- 12
|
Python 3
|
Accepted
|
92 ms
|
0 KB
|
2024-03-12 19:51:09 |
2024-03-12 19:51:09 |
|
n,m,s=map(int,input().split())
print(((n-1)//s+1)*((n-1)%s+1)*((m-1)//s+1)*((m-1)%s+1))
Click to see test details