fork(1) download
  1. #include <stdio.h>
  2. #include <math.h>
  3. int main(void) {
  4. int a,b,c,d;
  5. scanf("%d%d%d%d",&a,&b,&c,&d);
  6. if(a==b&&c==d){
  7. printf("YES");
  8. }
  9. else if (a==b||c==d) {
  10. printf("Yes");
  11. }
  12. else {
  13. printf("NO");
  14. }
  15. return 0 ;
  16. }
Success #stdin #stdout 0s 4536KB
stdin
1
1
8
1
stdout
Yes