Problems from Waterloo Programming Contest 2003-07-05