Red-Blue Operations (Hard Version)

Problem Name:
Red-Blue Operations (Hard Version)
Site:CodeForces
Links:
Tags:
Problem setters: