Topcoder SRM#579 Div2