topcoder single round match Div.2 Hard my solution