35 teams scored 2860 points on this task, for a maximum score of 100, an average score of 82 and a median score of 100.
The Italian Olympic staff is very active on GitUbe, a website that is used by a lot of developers around the world to collaborate on open source code. William likes GitUbe so much that he wrote a "GitUbe-like" system, for his personal use. Sadly, a key feature is missing in William's system: the GitUbe Graph. The "GitUbe Graph" is a neat way to show users' activity. For each user, the graph shows a grid where each cell is colored with some color depending on the number of commits made by the user in that day (e.g. dark green for a very active day, light green for a less active day, and so on). The grid has 7 rows (one for each day of the week) and some amount of columns (depending on how many days we want to show; GitUbe, for example, always shows the whole year). For the purpose of this task, we can assume: (1) We want the graph to show D days (numbered from 1 to D). (2) The first day (or "day number 1 of D") is always a Monday. (3) The week starts on Monday...