Problem A
Popular Vote

Input
The first line of input contains a single positive integer
There are at least
Output
Provide a line of output for each test case. If the winner
receives more than half of the votes, print the phrase
majority winner followed by the candidate number of
the winner. If the winner does not receive more than half of
the votes, print the phrase minority winner followed
by the candidate number of the winner. If a winner cannot be
determined because no single candidate has more vote than
others, print the phrase no winner. The candidate
numbers in each case are
Sample Input 1 | Sample Output 1 |
---|---|
4 3 10 21 10 3 20 10 10 3 10 10 10 4 15 15 15 45 |
majority winner 2 minority winner 1 no winner minority winner 4 |