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

int main(void) {
    int t;
    cin >> t;
    while (t-- > 0) {
        int n, m, k;
        cin >> n >> m >> k;
        int x = n-1;
        ll total = (n-1) + (m-1) * n;
        int flag = 0;
        if (total == k) flag = 1;
        if (flag) cout << "YES";
        else cout << "NO";
        cout << endl;
    }
}