Practice problems from codeforces.com