Exactly one odd. Given two integers, print “YES” if exactly one of them is odd and print “NO” otherwise.
Input |
Output |
1 |
YES |
2 |
NO |
1 |
YES |
5 |
NO |
10 |
YES |
Python, Java
Exactly one odd. Given two integers, print “YES” if exactly one of them is odd and print “NO” otherwise.
Input |
Output |
1 |
YES |
2 |
NO |
1 |
YES |
5 |
NO |
10 |
YES |