Teaching Assistant solutions

Teaching Assistant was solved using Python by 20 contestants. Solution sizes: average 1034 bytes (shortest: 294; longest: 2817).

The list below is sorted by ranking. You can also sort by solution size.