Haircut solutions

Haircut was solved using C++ by 1798 contestants. Solution sizes: average 1613 bytes (shortest: 341; longest: 21792).

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