/*

Author : Murat Yıldırım

*/
#include <bits/stdc++.h>
#define ll long long
using namespace std;

void solve()
{
    int n, m, k;
    cin >> n >> m >> k;

    if(n * m - 1 == k)
        cout << "YES" << "\n";

    else
        cout << "NO" << "\n";
}

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);

    ll tt = 1;
    cin >> tt;


    while(tt--)
        solve();
    return 0;
}
