389 teams scored 27890 points on this task, for a maximum score of 100, an average score of 72 and a median score of 100.
Halloween is over and Giorgio has collected a lot of candies! Since Giorgio has too many candies, he wants to give some to the IIOT participants. N teams participate at IIOT this year, each team scored S_i points in the first round, Giorgio wants to give the candies in the following way: (1) each team must receive at least one candy; (2) each team must receive more candies than all teams that scored lower; (3) the total number of candies given to the teams must be the lowest possible (Giorgio wants to keep for himself as many candies as possible). Help Giorgio find the minimum number of candies to give to the IIOT teams.