#CCBCMCHIN0000022. Selection Test 1 (Selection Test 1)
Selection Test 1 (Selection Test 1)
Selection Test 1
Source: beecrowd
Version: Phuoc Hung OJ Extended
Problem Statement
Given integers , accept the four values only when all requirements hold: , , , , and is even.
Input
One line contains four integers .
Output
Print exactly Valores aceitos if all conditions hold; otherwise Valores nao aceitos.
Subtasks
- Subtask 1 (20 points): .
- Subtask 2 (30 points): .
- Subtask 3 (50 points): .
Examples
Example 1
Input
2 3 2 6
Output
Valores aceitos
Explanation
The input gives 2, 3, 2, 6. 3>2: True; 6>2: True; 2+6>2+3: True; both C and D positive: True; A even: True. Therefore the required output is ['Valores aceitos'].
Example 2
Input
2 3 2 2
Output
Valores nao aceitos
Explanation
The input gives 2, 3, 2, 2. 3>2: True; 2>2: False; 2+2>2+3: False; both C and D positive: True; A even: True. Therefore the required output is ['Valores nao aceitos'].