#include <iostream>
using namespace std;

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