Advertisement
juanjo12x

UVA_11044_Searching_For_Nessy

May 21st, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(int argc, char** argv) {
  5.     int t;int i;int a,b;int rpta;
  6.     scanf("%d",&t);
  7.         for(i=0;i<t;i++){
  8.             scanf("%d %d",&a,&b);
  9.             rpta=(a/3)*(b/3);
  10.             printf("%d\n",rpta);            
  11.         }
  12.    
  13.     return (EXIT_SUCCESS);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement