Problems from Waterloo Programming Contest 1999-01-31