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

17919번 - Östgötska 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 512 MB20813212364.737%

문제

Anders talks in the Swedish dialect of östgötska. Unfortunately, this makes it somewhat hard to get a programming job in the Swedish capital of Stockholm. The trendy Stockholm hipsters only accept applicants speaking the standard Swedish dialect, rikssvenska.

To increase his chances of passing interviews, he wishes to practice talking rikssvenska. To help him with this, he wants you to write a program that can determine whenever he accidentally reverts to speaking östgötska.

A simple way of determining if a sentence is written in östgötska is if at least 40ドル\%$ of the words in the sentence contains the letter ä. For simplicity, this is encoded as the letter combination ae (meaning any appearance of the substring \texttt{ae} is to be regarded as an occurrence of the letter ä).

입력

The first and only line of input contains a sequence of space-separated words. Each word consists only of letters a-z. There are at most 100ドル$ words, and each word contains at most 15ドル$ letters a-z (meaning that the ae combination counts as two letters for this limit).

출력

Output "dae ae ju traeligt va" if the input sentence is in östgötska, otherwise output "haer talar vi rikssvenska".

제한

예제 입력 1

dae ae ju traeligt va

예제 출력 1

dae ae ju traeligt va

예제 입력 2

haer talar vi rikssvenska

예제 출력 2

haer talar vi rikssvenska

힌트

출처

Contest > Swedish Coding Cup > LiU Coding Challenge 2018 A번

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

출처

대학교 대회

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

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