Three persons say Bob, John, Tom contested in elections.
Votes secured by Bob, John and Tom are x1,
x2, x3 respectively. Write PAC, algorithm, Python program to print the name of the contestant who won
the election. Also, print the name(s) of person who lost the deposit. A contestant who did not secure
more than one-sixth of total votes polled will lose deposit. Also, print the name(s) of person who lost
with less than 100 votes compared to winner’s votes.
Input Format:
Name of contestant1
Votes secured by contestant1
Name of contestant2
Votes secured by contestant2
Name of contestant3
Votes secured by contestant3
Output format
Name of winner
Name of person who lost deposit ( if exists)
Name of person who lost with less than 100 votes ( if exists)
Test case1:
Bob
5200
John
3000
Tom
4500
Output :
Bob
Test case 2:
Bob
7500
John
1000
Tom
7420
Output:
Bob
John
Tom