我要找到你
Time Limit: 1000 ms
Memory Limit: 10000 KiB
Problem Description
Bob喜欢Alice很久了,他对Alice的一点一滴都非常在意,这不今天有同学提到有一篇文章里提到了Alice,这下Bob着急了,赶紧找来了那篇文章,焦急找寻着Alice这个名字,他想知道Alice的名字在这篇文章里面出现了多少次。
Input
一篇包含多行的文章,只包含英文,相邻的单词间有空格或换行隔开。
Output
输出这篇文章里面Alice这个名字独立出现(独立的意思是不作为其他字符串的子串)的次数。
Sample Input
Hi , Alice : Congratulations to you at first. You , Alice , as a student , have win our best new student prize. Come and get your gift . Best wishes . Bob .
Sample Output
2
Hint
Source
2011软件1-5班《程序设计基础》机试 tongjiantao