|시간 제한||메모리 제한||제출||정답||맞은 사람||정답 비율|
|3 초||512 MB||19||11||10||62.500%|
Alicia has a huge garden which is the habitat of many animals that she really cares about. After listening to a podcast about biodiversity, she becomes very concerned about the balance between species in her garden. She wants to know if there is a species that could overtake the others. In order to do so, she decides to carry out a census of all animals in the garden, writing down the species of each of them. Can you help her checking if there is strictly more animals from one species than the animals from all others species together?
The input consists of the following lines:
A string that appears a number of times that is greater than the sum of the others, if there is any, or the string “NONE” otherwise.
3 frog fish frog
4 cat mouse mouse cat