Logo
(追記) (追記ここまで)

9771번 - Word Searching 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 128 MB68937032554.439%

문제

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.

제한

예제 입력 1

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.

예제 출력 1

3

힌트

출처

ICPC > Regionals > Asia Pacific > Thailand > Thailand Southern Programming Contest > Thailand Southern Programming Contest 2013 연습 세션 PB번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /