solving old codeforces rounds