Topcoder SRM solutions