Save The Barrels (butoaie)

94 teams scored 2890 points on this task, for a maximum score of 50, an average score of 31 and a median score of 30.

Highlights

  1. Galileo Galilei, Trento is the institute with the most points (160).
  2. Emilia-Romagna is the region with the most points (480).

Statement

A swarm of bugs from Bugland invaded William's wine cellar trough a magic portal. The wine cellar consists of N rooms, each full of barrels of wine, with the i-th room being infested by V_i bugs. William has at his disposal N insecticide diffusers of two types: K AntiBug which remove P bugs a day, and N-K ZeroBugs, which remove Q bugs a day. Every day, at most one diffuser can be used in every room without compromising the quality of the wine. What is the minimum number of days needed to save the barrels of wine by eliminating all the bugs?