Haircut solutions

Haircut was solved using Python by 568 contestants. Solution sizes: average 1332 bytes (shortest: 321; longest: 12423).

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