My solutions for the Google Code Jam 2013 Qualification Round