2022 01.17第一天
Let the Balloon Rise
让气球飞
1000ms 32768K
描述:
Contest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time is guessing the most popular problem. When the contest is over, they will count the balloons of each color and find the result.
再次与时间竞争!多么激动看见气球在周围流动。但是告诉你一个秘密,这个裁判最喜欢的时光是猜测这最流行的问题。当比赛完结,他们将数每一颜色的气球并且找到结果。
This year, they decide to leave this lovely job to you.
这年,他们决定离开把这可爱的工作给你。
输入:
Input contains multiple test cases. Each test case starts with a number N (0 < N <= 1000) -- the total number of balloons distributed. The next N lines contain one color each. The color of a balloon is a string of up to 15 lower-case letters.
输入包含许多测试样例。每一测试样例开始于一个数字N--每种球发布的总数。接下来N行包含每一种颜色。这个气球的颜色是一个最多由15个字母组成的字符串。
A test case with N = 0 terminates the input and this test case is not to be processed.
一个测试样例N=0时终止输入并且这个测试样例不被运行。
输出:
For each case, print the color of balloon for the most popular problem on a single line. It is guaranteed that there is a unique solution for each test case.
对于每个样例,输出最受欢迎的问题的气球的颜色在一行。它 保证每一个样例都有独特的解决方案。