Problems from Waterloo Programming Contest 2005-02-05