Solutions to Spoj/Topcoder/Codechef/Codeforces problems.