Problems from Waterloo Programming Contest 2010-10-02