Google Code Jam Solutions / Analysis