My solutions for the Google Code Jam