[Topcoder] SRM 639 Div 1 250