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

PROGRAMMING:Decimal to n

Luz5年前 (2021-05-10)题库470
###Task description
```
Converts a decimal non negative integer m to an n-ary number( The number of n-base has 0, 1, 2,..., n-1, n-1 in total( Solve with circulation)
Among them, 1000000 > = m > = 0, 10 > = n > = 2.
```
###Input format:
```
Several rows, each row contains 2 integers m and N, representing a set of data.
```
###Output format:
```
The decimal number converted from each group of data is output in turn, and each output result occupies a separate line.
```
###Input example:
```in
10 4
100 8
56 7
```
###Output example:
```out
twenty-two
one hundred and forty-four
one hundred and ten
```






answer:If there is no answer, please comment