Codeforces Global Round #31 — Solution Discussion (finished)