Padel Game (padel)

232 teams scored 22510 points on this task, for a maximum score of 100, an average score of 97 and a median score of 100.

Highlights

  1. Sen. O. Iannuzzi, Andria is the institute with the most points (500).
  2. Lombardia is the region with the most points (3520).

Statement

Two teams are playing padel and it is known that they have played N points in total, and we know the winner of each point (team 1 or 2). Given that they have played a number of warmup points (it could be also 0 or N) followed by competitive points (the remaining points) find the maximum number of complete games they have played. A complete game ends when a team wins at least 4 competitive points and the difference is at least 2 competitive points (just like in tennis). For example, if we have the sequence 1 2 1 2 1 2 1 1 2 2 1 2 2, then we would have 2 complete games if we choose the first 2 points as warm-ups and the rest to be games (1 2 1 2 1 1, respectively 2 2 1 2 2). Take note that it is not required for the players to finish playing at the end of a game, as they can be forced to leave the field even in the middle of the game (for example, another group of players could start playing)...