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

PROGRAMMING:Convert numeric string to numeric

Luz5年前 (2021-05-10)题库390
Convert an integer character (no more than 9 bits) string into an integer (Note: string can't carry out four arithmetic operations, while integer can carry out four arithmetic operations). Pay attention to remove the unnecessary space and 0, positive and negative signs.
###Input format:
There are several groups of test data, which are processed to the end of the file. Each group of input can contain a positive and negative sign of no more than 9 integers. one hundred and twenty-three
###Output format:
Each group outputs the integer of the integer string.
###Input example:
Here is a set of inputs. For example:
```in
three thousand six hundred and eighty-seven
+35688
-00865
```
###Output example:
The corresponding output is given here. For example:
```out
three thousand six hundred and eighty-seven
thirty-five thousand six hundred and eighty-eight
-865
```







answer:If there is no answer, please comment