Codeforces Round #748 Solution Explanations (finished)