solutions for various topcoder problems. A.B.C.