fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4. double a, b, c, d;
  5. cin>>a>>b>>c>>d;
  6. cout<<((a==c && b==d)||(a==b && c==d)||(a==d && c==b)?"YES":"NO");
  7. return 0;
  8. }
Success #stdin #stdout 0s 3460KB
stdin
3 4 4 3
stdout
YES