# |
Author |
Problem |
Lang |
Verdict |
Time |
Memory |
Sent |
Judged |
|
152502413 |
Practice:
Chaitu_03 |
32C
- 12
|
Python 3
|
Accepted
|
92 ms
|
0 KB
|
2022-04-02 17:55:37 |
2022-04-02 17:55:37 |
|
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