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

25277번 - Culture shock 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 (추가 시간 없음) 1024 MB57445840185.138%

문제

Thore is a visiting scholar at a progressive university, whose administrators have decided that gendered pronouns are politically incorrect. The pronouns he, she, him, and her must be replaced with the gender neutral they and them. Thore doesn't want to appear old-fashioned but has difficulties adapting. To condition themselves to speak properly, he -- sorry, they -- have programmed a behaviour-improving wearable wristband to analyse their speech and give them an electric shock every time he -- buzz -- uses one of the forbidden words (he, him, she, or her). Thore is worried that he -- buzz -- will be electrocuted and needs your help to determine how many electric shocks he -- buzz -- will receive from different sentences.

입력

The first line of input is an integer 1ドル \leq N \leq 100,円 000,ドル the number of words Thore speaks. This is followed by a single line with $N$ whitespace separated words, each word consisting of up to 20ドル$ lowercase characters a--z.

출력

The number of electrical shocks Thore receives.

제한

예제 입력 1

9
she sheared a sheep herd and he helped her

예제 출력 1

3

힌트

출처

Contest > Swedish Coding Cup > LTH Challenge 2022 A번

  • 문제를 만든 사람: Maj Stenmark
(追記) (追記ここまで)

출처

대학교 대회

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

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