#190. 条件判断与区间最大值

    ID: 190 Type: Default 1000ms 256MiB Tried: 0 Accepted: 0 Difficulty: (None) Uploaded By: Tags>codingbatWarmup-1gesp1条件结构

条件判断与区间最大值

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 102010 \dots 20 inclusive, or return 00 if neither is in that range.

Input Format

Input is given from standard input in the following format.

aa bb

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 1111 and 1919. Both numbers are within the range 1010 to 2020, so the larger value, 1919, is returned. For the third sample, the input is 1111 and 99. Only 1111 is within the range 1010 to 2020, so 1111 is returned.

Constraints

Time limit: 11 second, Memory limit: 10241024 KiB for each test case.