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

PROGRAMMING:Currency conversion

Luz5年前 (2021-05-10)题库460
Enter an integer (no more than 9 digits) to represent a RMB value (unit: RMB). Please convert it into the capital Chinese format required by the financial department. For example, 23108 yuan will be converted into "Twenty three thousand one hundred and eight" yuan. In order to simplify the output, the lowercase letters A-J are used to represent the upper case numbers 0-9, and s, B, Q, W and y are used to represent ten, one hundred, ten, ten thousand and one hundred million respectively. Therefore, 23108 yuan should be converted into "cwdqbbai" yuan.
###Input format:
The input gives a nonnegative integer of no more than 9 bits on a line.
###Output format:
Output the converted result in one line. Note that the usage of "zero" must conform to Chinese habits.
###Input sample 1:
```in
eight hundred and thirteen million two hundred and twenty-seven thousand three hundred and forty-five
```
###Output sample 1:
```out
iYbQdBcScWhQdBeSf
```
###Input example 2:
```
six thousand and nine hundred
```
###Output example 2:
```
gQjB
```






answer:If there is no answer, please comment