[Topcoder] SRM 612 Div 1 250