-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUri1035.java
More file actions
36 lines (32 loc) · 1.01 KB
/
Uri1035.java
File metadata and controls
36 lines (32 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import java.util.Scanner;
class Uri1035{
public static void main(String[] args){
int a,b,c,d;
Scanner input = new Scanner(System.in);
a = input.nextInt();
b = input.nextInt();
c = input.nextInt();
d = input.nextInt();
if (b > c){
if (d > a){
if((c+d) > (a+b)){
if((c>0) && (d>0)){
if((a % 2) == 0){
System.out.println("Valores aceitos");
}else{
System.out.println("Valores nao aceitos");
}
}else{
System.out.println("Valores nao aceitos");
}
}else{
System.out.println("Valores nao aceitos");
}
}else{
System.out.println("Valores nao aceitos");
}
}else{
System.out.println("Valores nao aceitos");
}
}
}