Challenge of TopCoder, awarded with the first prize