Solutions to codechef's easy mode problems.