Codeforces and Topcoder solutions