Banner Home Page DIY Contests Problems Ranklist Status Statistics
1034数据再次加强,如果还能水过我不管了……

综合训练——字符统计

Time Limit : 3000/1000ms (Java/Other)   Memory Limit : 65535/32768K (Java/Other)
Total Submission(s) : 62   Accepted Submission(s) : 41

Font: Times New Roman | Verdana | Georgia

Font Size:

Problem Description

输入一个字符串,统计有多少个字符a

Input

输入包含多组数据
每组数据包含一个长度不超过100的串,由小写字母构成

Output

对于每组数据,输出该串中有多少个字符a

Sample Input

a
b
aaaaa
aabac

Sample Output

1
0
5
3

Author

916852

Statistic | Submit | Back