Scenic Walkway (walkway)

165 teams scored 8695 points on this task, for a maximum score of 100, an average score of 53 and a median score of 70.

Highlights

  1. Carlo Zuccante, Venezia is the institute with the most points (565).
  2. Lombardia is the region with the most points (2005).

Statement

The managers of Gardaland Theme Park are building a new attraction, consisting of a sequence of N chambers of horrors, each located at a different height of H_i meters. Together with the attraction, they also plan to build a scenic walkway following most of the chambers from the outside. In order to maximise the visibility of the new attraction, they need to carefully plan the altitude at which to build the walkway. For this reason they hired Giorgio and William, who calculated that it would be best if at least K chambers were clearly visible from the walkway. Given a set of chambers, define its spread as the difference between the highest and the lowest chamber in the set. Find the smallest possible spread for a set of K chambers!