fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int k, l, m, n;
  6. cin >> k >> l >> m >> n;
  7. if ((k + l) % 2 == (m + n) % 2){
  8. cout << "yes" ;
  9. } else {
  10. cout << "no" ;
  11. }
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5324KB
stdin
3
3
2
1
stdout
no