#include <bits/stdc++.h>
#define eb emplace_back
#define int long long int
#define endl '\n'
#define all(a) a.begin(),a.end()
using namespace std;

void solve(){
    int n,m,k;cin >> n >> m >> k;
    int f = n*m-1;
    
    if(k == f)puts("YES");
    else puts("NO");
    
}

int32_t main(){
    int tst;cin >> tst;while(tst--)
        solve();
 }