-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBeeCrowd1035.java
More file actions
27 lines (22 loc) · 809 Bytes
/
BeeCrowd1035.java
File metadata and controls
27 lines (22 loc) · 809 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
26
27
import java.util.Scanner;
public class BeeCrowd1035 {
// Problem URL: https://www.beecrowd.com.br/judge/en/problems/view/1035
// Last access 13 September 2022
// Visit my GitHub repository @ https://github.com/skan90
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int A = input.nextInt();
int B = input.nextInt();
int C = input.nextInt();
int D = input.nextInt();
int sumOfAB = A + B;
int sumOfCD = C + D;
int restOfDivision = A % 2;
input.close();
if (B > C && D > A && sumOfCD > sumOfAB && C > 0 && D > 0 && restOfDivision == 0) {
System.out.println("Valores aceitos");
} else {
System.out.println("Valores nao aceitos");
}
}
}