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

PROGRAMMING:Extract the date of birth from the ID number.

Luz5年前 (2021-05-10)题库413
Enter a 18 digit ID number, extract the year and month and output, please determine if the number is 18, if not, please prompt "Invalid data, input again!" And re-enter the new number.
###Input format:
Enter a 18 digit ID number.
###Output format:
Output the year and month of birth in one line, separated by commas, and finally wrapped.
###Input sample 1:
```in
three hundred and seventy thousand three hundred and three trillion and two hundred billion eight million one hundred and sixty-one thousand seven hundred and seventy-one
```
###Output sample 1:
```out
2000,08
```
###Input sample 2:
```in
thirty-seven thousand and thirty trillion and three hundred and twenty billion twelve million three hundred and eleven thousand seven hundred and seventy-one
three hundred and seventy thousand three hundred and three trillion and two hundred billion seven hundred and twelve million three hundred and eleven thousand seven hundred and seventy-one
```
###Output sample 2:
```out
Invalid data,input again!
2007,12
```







answer:If there is no answer, please comment