CF 106500E - Colored Balls - 1
I can write the editorial, but the problem statement you provided is missing after the headings. I found that Codeforces Gym 106500E "Colored Balls - 1" is the problem where we have a row of balls with three colors and need the minimum swaps so that each color appears in one…
CF 106500E - Colored Balls - 1
Rating: -
Tags: -
Solve time: 22s
Verified: no
Solution
I can write the editorial, but the problem statement you provided is missing after the headings. I found that Codeforces Gym 106500E "Colored Balls - 1" is the problem where we have a row of balls with three colors and need the minimum swaps so that each color appears in one contiguous block.
I will base the editorial on that version.