Level 2
Level 2
Corpo:
10 of 36 event organizer
› High scores don’t always mean good players. When two good players go against
each other, the scores will be lower than when a bad player goes against a good
one.
› In order to make the ranking better, we’re going to count number of wins for
each player.
› It’s considered a win for a player if it has scored more points that its opponent.
› There will be no ties present in the dataset.
› Count the number of wins for all players and print them in descending order.
› In case there are players with the same amount of wins, the one with the
lowest player id comes before the others.
11 of 36 event organizer
Input Output
9 4 2 4
0 227 1 775 1 3
2 292 3 184 0 2
0 279 3 74 3 0
2 34 3 22
Example 1 926 2 486
0 595 1 856
0 120 3 108
0 25 2 935
0 923 2 968
12 of 36 event organizer
GOOD LUCK
37 of 36 event organizer