Fibonacci Colonies (fibonaccibug)

26 teams scored 980 points on this task, for a maximum score of 100, an average score of 38 and a median score of 10.

Highlights

  1. ITST Kennedy, Pordenone is the institute with the most points (190).
  2. Friuli-Venezia Giulia is the region with the most points (300).

Statement

Bug colonies have been the center of attention of scientists for a long time. Through some technological advancements, we are now able to describe a bug colony using a number known as the degree of the colony. A colony of degree 0 or 1 represents a colony with one bug. A colony of degree i > 1 is obtained by merging a colony of degree i - 1 together with a colony of degree i - 2. As such, a colony of degree 2 has two bugs, a colony of degree 3 has three bugs, a colony of degree 4 has five bugs and so on. Marco owns the biggest bug farm in the world, having at his disposal a virtually infinite amount of colonies of any degree. Every day he receives N offers, each described by two numbers A_i and B_i, meaning that he can sell as many colonies of degree A_i as he wants and get B_i money for each colony of that degree...