[Topcoder] SRM 636 Div 1 250