its a topcoder question, Medaltable. input goes as the description of match results, eg "GER AUT SUI", "AUT SUI GER", "SUI GER AUT", and as output we have to make the medal tally, like "AUT 1 1 1", "GER 1 1 1", "SUI 1 1 1".
i can count the medals won by each country from the data. but cant think of any way to sort them such that countries having maximum gold medals come on top, if its a tie, we move on to display them according to decreasing number of silver, then bronze, and so on.
i ususally code in C++. which dataset could i use?
question link: http://ift.tt/299tu87
Aucun commentaire:
Enregistrer un commentaire