Algorithm · Square · Medium
A MotoGP season consists of 10 races. The result of each race is provided as the riders' finishing order, and only the first three finishers of a race earn points. Using these results, work through the following tasks: Calculate every rider's total points at the end of the season. After each race, print the current standings, sorted. After each race, determine whether the championship is already guaranteed, meaning some rider has secured the title regardless of how the…