Topcoder SRM592 div 2