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

PROGRAMMING:Statistics of specified figures and

Luz5年前 (2021-05-10)题库479
Input a numeric string and a numeric character (1 to 9), count the number of times this number appears in the string, and accumulate. For example, there is a string 1234321, looking for the number 2, which appears twice in the string, so the cumulative sum is 2 + 2 = 4
###Input format:
Enter 2 lines. The first line is the string and the second line is the number to look for.
###Output format:
Specifies the cumulative sum of the number occurrence
###Input example:
```in
one million two hundred and thirty-four thousand three hundred and twenty-one
two
```
###Output example:
```out
four
```







answer:If there is no answer, please comment