Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int n,m,a,s;
- scanf("%d%d%d",&n,&m,&a);
- {if(n%a==0){
- n=n/a;
- }
- else{
- n=n/a+1;
- }
- }
- {if(m%a==0){
- m=m/a;
- }
- else{
- m=m/a+1;
- }
- }
- s=n*m;
- printf("%d",s);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement