#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long int ll;
void solve()
{
    int n, m, k;
    cin >> n >> m >> k;
    if ((n * m - 1) == k)
    {
        cout << "YES" << endl;
    }
    else
    {
        cout << "NO" << endl;
    }
}
int main()
{
    int t;
    cin >> t;
    while (t--)
    {
        solve();
    }
    return 0;
}