Created
December 26, 2019 13:01
-
-
Save listopad/940828815bf019476936d964c02dc3f3 to your computer and use it in GitHub Desktop.
Задача C
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static void Prisoner(int A, int B, int C, int D, int E) { | |
if (A <= D && B <= E || A <= E && B <= D) System.out.println("YES"); | |
else if (C <= D && B <= E || C <= E && B <= D) System.out.println("YES"); | |
else if (A <= D && C <= E || A <= E && C <= D) System.out.println("YES"); | |
else System.out.println("NO"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment