[Topcoder] SRM 608 Div 1 300