Halloween Candies (candies)

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.

Highlights

  1. ITI Planck, Villorba is the institute with the most points (810).
  2. Lombardia is the region with the most points (4690).

Statement

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.