Last active
September 26, 2017 10:12
-
-
Save 1119-2916/f69f89813d89bda22dce448a011904fc to your computer and use it in GitHub Desktop.
codfes2017quala-b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 省略 | |
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