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

typedef long long ll;
typedef unsigned long long ull;
typedef vector <int> ve;
#define pb push_back

void solve();
int main()
{
     ll t; cin>>t;
     while(t--) solve(),cout<<endl;
     return 0;
}

void solve()
{
    ll n,m,k; cin>>n>>m>>k;
    if(k==n*m-1) cout<<"YES";
    else cout<<"NO";
    return;
}