[Topcoder] SRM 599 Div 1 250