Codeforces Round #737 Solution Explanations (finished)