Code Refactoring (refactor)

22 teams scored 1690 points on this task, for a maximum score of 100, an average score of 77 and a median score of 95.

Highlights

  1. I.S. Fermi MN, Mantova is the institute with the most points (250).
  2. Lombardia is the region with the most points (380).

Statement

Giorgio is working on a boring research project, and he is just too lazy to actually write any code for it. Thus, he decided to simply copy from the internet other people's code and pass it off as his own. As you may already know, the best way to use someone else's code without being detected is to rename some variables, functions or similar. That is exactly what Giorgio wants to do. The code that Giorgio wants to plagiarize is written in valid C, with some further assumptions (see the "Constraints" section for details). In order to perform the required replacement in this restricted version of C, it is enough to consider the syntax rules for identifiers, comments and string literals. With the term identifiers we refer to variable names, function names and such. In general, an identifier is a sequence of characters that...