RYIP在线题库
首 页   >   习题练习   >   提交
Problem1567--Acmers Love AC

1567: Acmers Love AC

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

【 Description 】

We hate WA! We hate TLE! We hate RE! We hate PE......! The only thing we love is AC!Because we are ACMers! Now we give you a task that you should find how many strings―"AcmersLoveAc" are there in a string that we input


【 Input 】

The input contains several testcases. Each testcase consists of one string(only contains capital letter and Lowercase letter) which is at most 100 characters. Input is terminated by EOF.

【 Output 】

For each testcase output, print an integer which stands for that how many strings―"AcmersLoveAc" are there in the input
string.

【 Sample Input 】

IKnowAcmersLoveAc
AcmersDontLoveAc
AcmersLoveAcAndAcmersLoveAc

【 Sample Output 】

1
0
2

【 Source/Category 】