#include<bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5, inf = 1e9;

#define pb push_back
#define mp make_pair
#define ll long long
#define ff first
#define ss second
#define all(a) a.begin(),a.end()
typedef vector<int> vi;
typedef pair<int,int> ii;
typedef vector<ii> vii;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());

int main(){
	ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
   	int t;
   	cin >> t;
   	while(t--){
   		int n, m, k;
   		cin >> n >> m >> k;
   		cout << ((m * n - 1 == k) ? "YES\n" : "NO\n");
   	}
	return 0;
}