codeforces solutions...