AcWing 657. 选择练习1
原题链接
简单
作者:
隐灵
,
2024-04-07 20:58:13
,
所有人可见
,
阅读 1
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt(), d = sc.nextInt();
if (b > c) {
if (d > a) {
if (c + d > a + b) {
if (c > 0 && d > 0) {
if (a % 2 == 0)
System.out.printf("Valores aceitos");
else
System.out.printf("Valores nao aceitos");
}
else System.out.printf("Valores nao aceitos");
}
else System.out.printf("Valores nao aceitos");
}
else System.out.printf("Valores nao aceitos");
}
else System.out.printf("Valores nao aceitos");
}
}