some code about topcoder marathon competition