topcoder srm577 div2