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

int main() {
	
	int t;
	cin >> t;
	
	int n, m, k;
	bool b[t];
	for (int i = 0; i < t; i++)
	{
		cin >> n >> m >> k;
		
		if ((n - 1) + (n * (m - 1)) == k)
			b[i] = true;
		else
			b[i] = false;
	}
	
	for (int i = 0; i < t; i++)
	{
		if (b[i])
			cout << "YES" << endl;
		else
			cout << "NO" << endl;
	}
	
	return 0;
}