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

PROGRAMMING:Visual sequence

Luz5年前 (2021-05-10)题库405
Visual sequence is to determine the next data sequence according to the current sequence. The regulations are as follows:
```
D, D1, D111, D113, D11231, D112213111, ...
```
The first number of a sequence is D, and there is one D, so the second number is D1, which means there is one D, and there is one D, one 1 in "D1", so the third number is D111, and so on. The next data of the sequence is generated according to the order of number characters + number of number characters. D can be any number between [0,9]
###Input format:
Enter 2 integers D and N, n < 40.
###Output format:
For each group of inputs, the value of the nth digit in the sequence is output in a row.
###Input example:
Here is a set of inputs. For example:
```in
1 5
```
###Output example:
The corresponding output is given here. For example:
```out
one hundred and twenty-two thousand one hundred and eleven
```







answer:If there is no answer, please comment