Codeforces Round 1103 (Div. 3) Upsolving (finished)