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

PROGRAMMING:Count the number of characters

Luz5年前 (2021-05-10)题库412
Input a line of characters and count the number of each character in the line.
###Input format:
Input a line of characters, read in the data with the gets function, up to 80 characters. If more than 80 characters, output error
###Output format:
Output the number of each character in order.
###Input example:
Here is a set of inputs. For example:
```in
aDcRdadbc
```
###Output example:
The corresponding output is given here. For example:
```out
a 2
D 1
c 2
R 1
d 2
b 1
```







answer:If there is no answer, please comment