UVA 11044

#include<iostream>
using namespace std;
int main()
{
    int sum;
    cin>>sum;
    while(sum--)
    {
        int m,n;
        int flag1,flag2;
        cin>>m>>n;
        flag1=m/3;
        flag2=n/3;
        cout<<flag1*flag2<<endl;
    }
    return 0;
}

 

posted @ 2012-04-28 12:10  open your eyes  阅读(77)  评论(0编辑  收藏  举报