[Topcoder] SRM 607 Div 1 250