Nếu có thể bẻ nhiều lần:
#include <bits/stdc++.h>
#define int long long
using namespace std;
main()
{
int n,m,k;
cin>>n>>m>>k;
while (k<n*m)
k*=2;
if (k==m*n)
cout<<"YES";
else
cout<<"NO";
}
Nếu chỉ bẻ 1 lần:
#include <bits/stdc++.h>
#define int long long
using namespace std;
main()
{
int n,m,k;
cin>>n>>m>>k;
k*=2;
if (k==m*n)
cout<<"YES";
else
cout<<"NO";
}