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

PROGRAMMING:Letter frequency statistics

Luz5年前 (2021-05-10)题库463
Input a string with arbitrary case, no more than 200 characters in length, count the frequency of letters a, B, C, D in the string, and do not distinguish case.
###Input format:
Enter a string on one line.
###Output format:
Output with percentage, keep two decimal places, do not round the mantissa, if the frequency value is less than 0.01, output a single number 0, and leave a space between the frequency values of each letter.
###Input example:
Here is a set of inputs. For example:
```in
Something is wrong with you today.
```
###Output example:
The corresponding output is given here. For example:
```out
0.03 0 0 0.03
```
###Input example:
Here is a set of inputs. For example:
```in
But at the end of the day, we can have the most dedicated teachers, the most supportive parents, the best schools in the world.
```
###Output example:
The corresponding output is given here. For example:
```out
0.06 0.02 0.03 0.05
```







answer:If there is no answer, please comment