Multi-base happiness solutions

Multi-base happiness was solved using C by 50 contestants. Solution sizes: average 1541 bytes (shortest: 689; longest: 4088).

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