[Topcoder] SRM 630 Div 1 500