Rooks and Rectangles

Problem Name:
Rooks and Rectangles
Site:CodeForces
Links:
Tags:
Problem setters: