Sample code from Topcoder competitions and practice for ACM-ICPC.