Advertisement
noshin98

11044

Jul 12th, 2016
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int t,i,r,c,ans;
  5.     while(scanf("%d",&t)==1)
  6.     {
  7.         for(i=1;i<=t;i++)
  8.         {
  9.             scanf("%d%d",&r,&c);
  10.             ans=(r/3)*(c/3);
  11.             printf("%d\n",ans);
  12.         }
  13.  
  14.     }
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement