#190. 条件判断与区间最大值
条件判断与区间最大值
Max Value in Range
Background
Congcong is currently learning about number comparison and conditional statements. He encountered an interesting problem that requires finding a number from two given numbers that meets specific criteria.
Problem Description
Given two positive integer values, return the larger value that is in the range inclusive, or return if neither is in that range.
Input Format
Input is given from standard input in the following format.
Output Format
Output is printed to standard output in the following format.
result
Sample
11 19
19
19 11
19
11 9
11
Sample Explanation
For the first sample, the input is and . Both numbers are within the range to , so the larger value, , is returned. For the third sample, the input is and . Only is within the range to , so is returned.
Constraints
Time limit: second, Memory limit: KiB for each test case.