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

#define int long long int
#define endl '\n'


signed main()
{
#ifndef ONLINE_JUDGE
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
#endif

	ios_base::sync_with_stdio(false);
	cin.tie(NULL);

	int t;
	cin >> t;
	while (t--)
	{
		int n, m, k;
		cin >> n >> m >> k;
		int res = (m - 1) * 1 + (n - 1) * m;
		if (k == res) cout << "YES" << endl;
		else cout << "NO" << endl;


	}



}