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

PROGRAMMING:Odd half, even half

Luz5年前 (2021-05-10)题库460
Input a positive integer n (in the range of long long type), output odd half and even half of n. The odd half of n is the number of odd digits of N, and the even half of n is the number of even digits of n (starting from the right). For example, the odd half of 1234567 is 1357, and the even half is 246.
###Input example:
```in
nine billion eight hundred and seventy-six million five hundred and forty-three thousand two hundred and ten
```
###Output example:
```out
86420 97531
```
###Input example:
```in
ten million two hundred and three thousand and forty
```
###Output example:
```out
0 1234
```
###Input example:
```in
twenty million two hundred thousand two hundred and two
```
###Output example:
```out
22 2200
```
###Input example:
```in
ten thousand and five
```
###Output example:
```out
105 0
```







answer:If there is no answer, please comment