Advertisement
erfanul007

UVa 11044

Nov 21st, 2018
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int t,n,m,i,x,y;
  5. scanf("%d",&t);
  6. for(i=1;i<=t;i++){
  7. scanf("%d %d",&n,&m);
  8. x=n/3;
  9. y=m/3;
  10. printf("%d\n",x*y);
  11. }
  12. return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement