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