[Topcoder] SRM 619 Div 1 250