[Topcoder] SRM 613 Div 1 250