-->
当前位置:首页 > 题库

PROGRAMMING:Find the latest date that meets the condition from now on

Luz5年前 (2021-05-10)题库455
Each date can be converted into 8 digits. For example, April 28, 2020 corresponds to 20200428. Please find out the latest date that meets the conditions from now on. This date contains M N numbers. M (1 < = m < = 6) and n (1 < = n < = 9) are entered by the keyboard.
###Input format:
Enter m (1 < = m < = 6), n (1 < = n < = 9), separated by spaces.
###Output format:
Date of compliance.
###Input sample 1:
Here is a set of inputs. For example:
```in
6 1
```
###Output example:
The corresponding output is given here. For example:
```out
2101-11-11
```
###Input sample 2:
Here is a set of inputs. For example:
```in
5 8
```
###Output example:
The corresponding output is given here. For example:
```out
2888-08-08
```







answer:If there is no answer, please comment