Codeforces Round 1098 (Div. 2) Upsolving