General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
192692690 Practice:
Archaeopteryx
32C - 12 C++17 (GCC 7-32) Accepted 30 ms 8 KB 2023-02-08 08:56:05 2023-02-08 08:56:05
→ Source
#include <iostream>
using namespace std;
int main(){
long long n,m,s;cin>>n>>m>>s;
cout<<(1+(n-1)%s)*(1+(n-1)/s)*(1+(m-1)%s)*(1+(m-1)/s)<<endl;
}
?
Time: ? ms, memory: ? KB
Verdict: ?
Input
?
Participant's output
?
Jury's answer
?
Checker comment
?
Diagnostics
?
Click to see test details