Code Jam solutions