Solutions of Topcoder SRM.