Codeforces Round 1126 (Div. 1 + 2) Upsolving