Practice problems for the Google Code Jam contest.