I created a video editorial for Problem D : Cases from last Codeforces Round 961 (Div 2)
https://youtu.be/LgxHoy3Aguk?si=XcacblYTS5nIHMf0
I also created a practice contest with easy version of the problem. You can find it here https://codeforces.com/gym/538630
Is it that big?