본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 17598번 Animal King Election

by 현장 2022. 11. 9.

-Code

vote = 0
for _ in range(9):
    s = input()
    if s == "Tiger":
        vote += 1

print("Tiger" if vote >= 5 else "Lion")