Problems from Waterloo Programming Contest 1999-10-02