#include<bits/stdc++.h>
using namespace std;




void fun()
{
    int n,m,k;cin>>n>>m>>k;
    int ans=(n-1)+n*(m-1);
    if(k==ans){cout<<"YES";}
    else cout<<"NO";
}

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int t=1;
    cin>>t;
    while(t--)
    {
        fun();
        cout<<"\n";
    }
}