Original comment: https://codeforces.com/blog/entry/72252?#comment-587046
How to solve "2019-2020 ACM-ICPC Pacific Northwest Regional Contest" problem H pivoting point?
Particularly, there's a "p-dk.cc" in the official solution package . Its logic looks much simpler than the editorial, but I don't understand why it works. Meanwhile, a bunch of submissions seem to follow the same logic. Could somebody explain it to me? In particular, what does [left] and [rep] mean?