fork(2) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a, b, c;
  6. cin >> a >> b >> c;
  7. ((((a % 2) == 0) or ((b % 2) == 0) or ((c % 2) == 0)) and (((a % 2) !=0) or ((b % 2) != 0) or ((c % 2) !=0))) ? cout << "YES" : cout << "NO";
  8. return 0;
  9. }
Success #stdin #stdout 0s 15232KB
stdin
10 5 -2
stdout
YES