1056. Acmers Love AC

时间限制 1000 ms   内存限制 128 MB

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.

输入数据

  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.

输出数据

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

样例输入

复制
IKnowAcmersLoveAc
AcmersDontLoveAc
AcmersLoveAcAndAcmersLoveAc
                 \n
                \n
                           \n

样例输出

复制
1
0
2
 \n
 \n
 \n

提交

请先 登录

© 2025 FAQs Contact About