My Google Code Jam solutions in Python