Codeforces Round 1077 (Div 1 + Div 2) — Solution Discussion with Anirudh (finished)