For problem G can someone please explain how the assignments are computed for a connected component of size K in the editorial.
Editotial Solution https://atcoder.jp/contests/abc214/submissions/25003972
Help needed in a understanding a solution.
For problem G can someone please explain how the assignments are computed for a connected component of size K in the editorial.
Editotial Solution https://atcoder.jp/contests/abc214/submissions/25003972