Google Code Jam Round 1A
Let's discuss solutions here. I know I'd be curious to hear other peoples approaches.