Solutions for Codeforces problems