Problem 1366 · Medium

Rank Teams by Votes

Count each team’s places in every ballot, then sort by those counts from first place onward with alphabetical ties.

Open the interactive visualisation