Problem 2410 · Medium
Sort players and trainers, then let each trainer take the weakest unmatched player they can train.
Open the interactive visualisation