GP of Beijing 2019-2020
Let's discuss the solutions.
How to solve B?
Codeforces Round 1123 Solution Discussion