#SCCCIE000002. Làm tròn theo ngưỡng (Rounding)
Làm tròn theo ngưỡng (Rounding)
Rounding
Source: AtCoder
Problem Statement
Given integers and , the result is when and otherwise.
Input
One line contains integers and .
Output
Print the value determined by the rule above.
Subtasks
- Subtask 1 (100%): ; All values are integers.
Examples
Example 1
Input
3 5
Output
0
Explanation
For the sample values 3, 5, evaluating the conditions in the statement gives 0. Therefore the program prints the shown output.
Example 2
Input
7 5
Output
10
Explanation
For the sample values 7, 5, evaluating the conditions in the statement gives 10. Therefore the program prints the shown output.
Example 3
Input
6 6
Output
10
Explanation
For the sample values 6, 6, evaluating the conditions in the statement gives 10. Therefore the program prints the shown output.