UVA 11044 - Searching for Nessy

Problem PDF

Solution:

#include
 int main()
 {
   int t,n,m;
   scanf("%d",&t);
   while(t--)
   {
      scanf("%d %d",&n,&m);
      printf("%d\n",(n/3)*(m/3));
    }
 }
https://github.com/Shipu/OnlineJudgeProblemSolutionWithCPlusPlus/tree/master/uva/11044/11044.cpp