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

PROGRAMMING:Turn around and ride

Luz5年前 (2021-05-10)题库568
###Task description
The turn multiply sign can be expressed as @ and two positive integers turn to multiply( A@B )The rule is: turn around the multiplicand A and multiply by the multiplier B.
For example: 123@2 The result is not 246, but 642. The rule is that the multiplicee 123 turns to 321 first and then multiplies by 2. 321 is called the turn number of 123, and so on. We can see that 405 is the turn number of 504. However, the annoying C language teacher stipulates that when a number turns, the position of 0 at the end of the number remains unchanged, for example: 1200 turns is 2100100 turns or 100 turns.
###Input format:
The first line is an integer n, which means there are n groups of data
In the next n rows, there are two positive integers a and B in each row, representing a set of data. The data and results are guaranteed to be in the range of int.
###Output format:
Output n rows, an integer for each row, which is the turn product of each group of data (the multiplicand turns and multiplies it).
###Input example:
```in
five
12306 5
12000 80
52030 4
54321 10
98765 1234
```
###Output example:
```out
three hundred and one thousand six hundred and five
one million six hundred and eighty thousand
one hundred and twenty-one thousand
one hundred and twenty-three thousand four hundred and fifty
seventy million seventy-seven thousand six hundred and twenty-six
```






answer:If there is no answer, please comment