#include<bits/stdc++.h>
using namespace std;
int main()
{
    long int test;
    cin>>test;
    while(test--)
    {
    long int a,b,c;
    cin>>a>>b>>c;
    if(a==1 && b==1)
    {
        if(c==0)
        {
            cout<<"YES"<<endl;
        }
        else
        {
            cout<<"NO"<<endl;
        }
    }
    else if(a==1)
    {
        if(c==b-1)
        {
            cout<<"YES"<<endl;
        }
        else
        {
            cout<<"NO"<<endl;
        }
    }
    else if(b==1)
    {
        if(c==a-1)
        {
            cout<<"YES"<<endl;
        }
        else
        {
            cout<<"NO"<<endl;
        }
    }
    else
    {
        if(c==(a-1)+(b-1)*a)
        {
            cout<<"YES"<<endl;
        }
        else
        {
            cout<<"NO"<<endl;
        }
    }
}
}