#SCCCIE000005. Hàm ReLU (ReLU)
Hàm ReLU (ReLU)
ReLU
Source: AtCoder
Problem Statement
For an integer , define when , and when . Compute the value.
Input
One line contains the integer .
Output
Print .
Subtasks
- Subtask 1 (100%): ; is an integer.
Examples
Example 1
Input
1
Output
1
Explanation
For the sample values 1, evaluating the conditions in the statement gives 1. Therefore the program prints the shown output.
Example 2
Input
0
Output
0
Explanation
For the sample values 0, evaluating the conditions in the statement gives 0. Therefore the program prints the shown output.
Example 3
Input
-1
Output
0
Explanation
For the sample values -1, evaluating the conditions in the statement gives 0. Therefore the program prints the shown output.