Problems from Waterloo Programming Contest 2008-10-04