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

17598번 - Animal King Election 다국어

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

문제

King Dragon, the king of Animal Kingdom, passed away this morning. This unfortunate news saddened every animal. Since no one sees any other living dragon nowadays, the government of Animal Kingdom cannot find any successor to King Dragon. But Animal Kingdom cannot operate without a king. The government of Animal Kingdom decided to elect a new king.

There are nine voters: Armadillo, Buffalo, Cat, Dog, Elephant, Fox, Goat, Hippo and Zebra and two candidates: Tiger and Lion.

The votes will be anonymously casted tomorrow. The government asked you to write a program to calculate the votes and announce the next king of Animal Kingdom. Note that the next king is the one who receives more than half the votes.

입력

The input has exactly nine lines. Each of them is a string which is either Tiger or Lion, and it represents a casted vote from an anonymous voter.

출력

Output one line containing the next king’s name.

제한

  • Every string in the input is either Tiger or Lion.
  • The next king must be qualified by at least five votes.

예제 입력 1

Lion
Lion
Tiger
Tiger
Lion
Lion
Tiger
Tiger
Tiger

예제 출력 1

Tiger

힌트

출처

ICPC > Regionals > Asia Pacific > Taiwan > Taiwan Online Programming Contest > TOPC 2019 A번

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

출처

대학교 대회

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

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