General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
256409863 Practice:
wisoredcf
32C - 12 PyPy 3-64 Accepted 186 ms 0 KB 2024-04-13 08:45:59 2024-04-13 08:45:59
→ Source
n,m,s=map(int,input().split())
x=(n-((n-1)//s)*s)*((n-1)//s+1)
y=(m-((m-1)//s)*s)*((m-1)//s+1)
print(x*y)
?
Time: ? ms, memory: ? KB
Verdict: ?
Input
?
Participant's output
?
Jury's answer
?
Checker comment
?
Diagnostics
?
Click to see test details