Solution to the problem number 11044 of UVA - 11044.

Any questions do not hesitate to contact.

#include <bits/stdc++.h>
using namespace std;
int main() {
    int tc, w,h;
    cin>>tc;
    while(tc--){
        cin>>w>>h;
        printf("%d\n",(w/3)*(h/3));
    }
    return 0;
}

Don't miss anything.

Keep in touch with Isaac Lozano Osorio!