Click Here to see the problem detail.

Solution

Read the problem carefully and see source code.

Source Code
#include<stdio.h>
int main()
{
    int testCase,m,n;
    scanf("%d",&testCase);
    while(testCase--)
    {
 
        scanf("%d%d",&m,&n);
        printf("%d\n",(m/3)*(n/3));
 
    }
    return 0;
}

 


Next Previous