Haircut solutions

Haircut was solved using C by 57 contestants. Solution sizes: average 1396 bytes (shortest: 652; longest: 3778).

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