?
# | 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 |
#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; }
?
?
?
?