Candy Splitting solutions

Candy Splitting was solved using Erlang by 2 contestants. Solution sizes: average 1769 bytes (shortest: 895; longest: 3518).