Solutions to some Google Code Jam 2014 problems