Kim Possible and the Mooks and the Swappinator

Problem Name:
Kim Possible and the Mooks and the Swappinator
Site:CodeForces
Links:
Tags:
Problem setters: