Worst Exam Ever! (bonus)

300 teams scored 16975 points on this task, for a maximum score of 100, an average score of 57 and a median score of 35.

Highlights

  1. Galileo Galilei, Trento is the institute with the most points (610).
  2. Lombardia is the region with the most points (2775).

Statement

After long weeks of waiting, Edoardo has finally got back the results of the last exam he took. The exam was made of N exercises, the i-th exercise had a maximum score of P_i points and he scored S_i points. Edoardo is not happy of the grade he received, and is considering to take it again. However, the professor doesn't want yet another exam to grade… and thus he decided to give him a generous bonus! More precisely, Edoardo can choose exactly one of the N exercises and that exercise will be discarded and will not take part in the grading of the exam. Note that the grade of the exam is defined as the ratio between the sum of points scored and the sum of maximum scores (excluding in both sums the exercise discarded, thanks to the generous bonus). Help Edoardo find which exercise to discard in order to get the best grade possible!