Problems from Waterloo Programming Contest 2001-01-27