시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 128 MB | 355 | 192 | 156 | 54.930% |
Write a program to count the occurrences of a particular word in a given text i.e. how many times does a particular word appear in a text?
The first line contains a single word to search. A word contains at most 20 characters. The next line and the rest is a text to search for that word. The text can contain up to 100 lines including blank lines. No line exceeds 250 characters. A word cannot be separated in different lines i.e. a whole word must appear in the same line. However, a word can appear as a part of a longer word.
Print out the number of occurrences of the word to search. This is a case-sensitive search.
word Write a program to count the occurrences of a particular word in a given text i.e. how many times does a particular word appear in a text? This Word is not counted but wording is counted.
3