Gambling Assistant (gamble)

140 teams scored 7575 points on this task, for a maximum score of 100, an average score of 54 and a median score of 70.

Highlights

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

Statement

Giorgio has been recently introduced to a gambling club, where he is accurately losing all of his money. Tired of losing so much, he chooses one of the simplest games played there and tries his best to become good at it. This game consists in a series of N rounds, in which every player draws a card from a deck (represented by a number from 1 to 13). The hand size is limited to K cards, so that whenever a player exceeds this limit he has to immediately discard one card from his hand. During the game several bets take place, that are won by the player with the highest grand total (sum of the values -- from 1 to 13 -- of each card) in his hand. To improve his performance in the game, Giorgio is reviewing some videos of famous plays of this game. In this videos he is able to see which card C_i is drawn at each round, but he is not able to easily keep track of the grand total as it varies during the game...