-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
25 lines (19 loc) · 710 Bytes
/
Main.java
File metadata and controls
25 lines (19 loc) · 710 Bytes
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
package beecrowd1035;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String input = sc.nextLine();
sc.close();
String[] valores = input.split(" ");
int a = Integer.parseInt(valores[0]);
int b = Integer.parseInt(valores[1]);
int c = Integer.parseInt(valores[2]);
int d = Integer.parseInt(valores[3]);
if(((b > c) && (d > a)) && ((c + d) > (a + b)) && (c > 0 && d > 0) && (a % 2 == 0)){
System.out.println("Valores aceitos");
}else {
System.out.println("Valores nao aceitos");
}
}
}