Basket X78264


Statement
 

pdf   zip

html

The information of a basketball team of the ACB is kept in a list of lists. For each player we store his name, his country of birth and finally, a series of integers that represent the points he has scored in the matches he has played in.

You are asked to implement a function mvp(team) which, given a non-empty team list of players like the one described above, returns the names of the players who have scored the highest total points, along with that total. In case there are two or more players with the same total score, they will be stored in the same order as the team list.

Sample session
>>> jug = [  ["Navarro", "Spain", 15, 10, 5],\
             ["Fernandez", "Spain", 10, 5, 5, 2],\
             ["Tomic", "Croatia", 5, 10, 15],\
             ["Birgander", "Sweeden", 7, 10, 2],\
             ["Cook", "USA", 15] ]
>>> mvp(jug)
(['Navarro', 'Tomic'], 30)
Information
Author
InfBesos
Language
English
Translator
Original language
Spanish
Other languages
Catalan Spanish
Official solutions
Python
User solutions
Python