fork(2) download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Ideone
  6. {
  7. public static void main (String[] args) throws java.lang.Exception
  8. {
  9. Scanner in=new Scanner(System.in);
  10. double a=in.nextDouble();
  11. double b=in.nextDouble();
  12. double c=in.nextDouble();
  13. double x=in.nextDouble();
  14. double y=in.nextDouble();
  15.  
  16. if ((a<=0)||(b<=0)||(c<=0)||(x<=0)||(y<=0))
  17. {
  18. System.out.println("The task is not correct");
  19. }
  20. else
  21. {
  22. if (((a<x)&&(b<y))||((a<y)&&(b<x))||((a<x)&&(c<y))||((a<y)&&(c<x))||
  23. ((b<x)&&(c<y))||((b<y)&&(c<x)))
  24. {
  25. System.out.println("Yes");
  26. }
  27. else
  28. {
  29. System.out.println("No");
  30. }
  31. }
  32. }
  33. }
Success #stdin #stdout 0.17s 321344KB
stdin
-2 15 1 23 63
stdout
The task is not correct