#include<bits/stdc++.h>
using namespace std;
int main()
{
long int x, n, m, i, j, a, b;
while(cin >> x)
{
for(i=1;i<=x;i++)
{
cin >> n >> m;
a = n/3;
b = m/3;
cout << a*b << endl;
}
}
return 0;
}
using namespace std;
int main()
{
long int x, n, m, i, j, a, b;
while(cin >> x)
{
for(i=1;i<=x;i++)
{
cin >> n >> m;
a = n/3;
b = m/3;
cout << a*b << endl;
}
}
return 0;
}
Comments
Post a Comment