[Topcoder] SRM 623 Div 1 250