- 1

Java

Java Input contains multiple test cases each test case starts with a number N(0<N<=1000) - - the total number of balloons distributed.the next Nlines contain one color each .the color of a ballon is a string of up to 15 lower case letters .A test case with N=0 terminates the inut and this test case is not to be processed. For each case , print the color of a balloon for the most popular problem on a single line . It is guaranteed that there is a unique solution for each test

13th May 2018, 8:46 AM
Blessing
2 Respostas
+ 3
Is this your homework? Show your effort and tell us what exactly your question is. Thank you.
13th May 2018, 8:55 PM
Tashi N
Tashi N - avatar
0
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 o find the results,this year they decide to leave to you .. this is the description then follows that top part
14th May 2018, 4:56 AM
Blessing