Peaceful Rooks

Problem Name:
Peaceful Rooks
Site:CodeForces
Links:
Tags:
Problem setters: