아직 만들고 있는 페이지입니다.

이 페이지는 아직 만드는 중입니다. 보이는 내용은 바뀔 수 있습니다.

problem 찾기

시간 제한2초메모리 제한256 MB

요약
각 입력 줄에 problem이 대소문자 구분 없이 포함되면 yes를, 그렇지 않으면 no를 출력합니다.
난이도

쉬움10점 중 1점

유형
문자열 매칭, 문자열
정답자
아직 제출이 없습니다

문제

뉴스 기사에서 problem이라는 단어가 어떻게 쓰이고 또 얼마나 잘못 쓰이는지 하나하나 찾아내는 일은 지친다. 그런데 몇 년째 하고 있는 일이 바로 그것이다. 기사를 한 줄씩 읽으면서 그 단어를 찾는 일이다. 이 과정을 자동으로 처리하면 훨씬 나을 것이다.

입력

입력의 각 줄이 테스트 케이스 하나다. 한 줄의 길이는 80자를 넘지 않고, 줄은 최대 1000개다. 입력은 파일의 끝에서 끝난다. 빈 줄도 하나의 줄로 센다.

출력

각 줄마다 그 줄에 problem이 들어 있으면 yes를, 없으면 no를 출력한다. 대소문자는 구분하지 않으므로 어떤 대소문자 조합이든 등장으로 센다. problematic이나 problems처럼 더 긴 단어의 일부로 들어 있어도 등장으로 센다.

예제6

  1. 예제 1

    입력
    Problematic pair programming
    "There’s a joke that pairs, like fish and house guests, go
    rotten after three days," said Zach Brock, an engineering
    manager. Working out problems with a pairing partner can be
    a lot like working out problems with a significant other.
    During one recent rough patch, Jamie Kite, a developer, sat
    her partner down for a talk. "Hey, it feels like we’re
    driving in different directions," she recalls saying. "It’s
    like any relationship," Ms. Kite said. "If you don’t talk
    about the problems, it’s not going to work." When those
    timeouts don’t solve the problem, partners can turn to
    on-staff coaches who can help with counseling. "People who
    have been pairing a while, they’ll start acting like old
    married couples," said Marc Phillips, one of the coaches.
    People can be as much of a challenge as writing software.
    (Excerpted from "Computer Programmers Learn Tough Lesson in
    Sharing"; Wall Street Journal, August 27, 2012)
    
    예상 출력
    yes
    no
    no
    yes
    yes
    no
    no
    no
    no
    yes
    yes
    no
    no
    no
    no
    no
    no
    
  2. 예제 2

    입력
    problem
    PROBLEM
    Problem
    pRoBlEm
    PrObLeM
    
    예상 출력
    yes
    yes
    yes
    yes
    yes
    
  3. 예제 3

    입력
    problems
    problematic
    nonproblem
    unproblematic
    probem
    problm
    roblem
    proble
    rpoblem
    
    예상 출력
    yes
    yes
    yes
    yes
    no
    no
    no
    no
    no
    
  4. 예제 4

    입력
    no match here
    
    PROBLEMS ahead
    
    still nothing
    
    예상 출력
    no
    no
    yes
    no
    no
    
  5. 예제 5

    입력
    problem
    
    예상 출력
    yes
    
  6. 예제 6

    입력
    nothing to report here
    
    예상 출력
    no