Text Editor (editor)

138 teams scored 12150 points on this task, for a maximum score of 100, an average score of 88 and a median score of 100.

Highlights

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

Statement

Giorgio was asked to write the minutes of the last round of the Olimpiadi di Informatica a Squadre. After writing thousands of words in his beloved MS Notepad, he now wants to format them properly and send the result via e-mail to the organizers. Nothing easier right? Except his e-mail client supports only formatting with bold and italic! At least you can mix them as much as you want, for example this sentence is a mix of both the formatters. In Giorgio's editor, in order to toggle the bold-ness or italic-ness of some text you can simply select a continuous range of characters with your mouse and then press the button toggle bold or the button toggle italic. By doing so all the not-bold characters will become bold and vice-versa, and respectively for the italic ones. Giorgio has already chosen which parts should be italic and which bold (and which both): your tasks is to tell him how many times he has to press the toggle buttons at minimum.