Skip to content

Instantly share code, notes, and snippets.

@1119-2916
Last active September 26, 2017 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 1119-2916/f69f89813d89bda22dce448a011904fc to your computer and use it in GitHub Desktop.
Save 1119-2916/f69f89813d89bda22dce448a011904fc to your computer and use it in GitHub Desktop.
codfes2017quala-b
// 省略
int main()
{
std::ios::sync_with_stdio(false);
std::cin.tie(0);
int n, m, k;
cin >> n >> m >> k;
vector<bool> used(n*m+1, false);
rep(i, n+1) {
rep(j, m+1) {
used[i*m+j*n-i*j*2] = true;
}
}
if (used[k]) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment