Codeforces code snippets