Skip to content

Instantly share code, notes, and snippets.

@listopad
Created December 26, 2019 13:01
Show Gist options
  • Save listopad/940828815bf019476936d964c02dc3f3 to your computer and use it in GitHub Desktop.
Save listopad/940828815bf019476936d964c02dc3f3 to your computer and use it in GitHub Desktop.
Задача C
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