Multi-base happiness solutions

Multi-base happiness was solved using Standard ML by 1 contestant.