The Fair Nut and Rectangles

Problem Name:
The Fair Nut and Rectangles
Site:CodeForces
Links:
Tags:
Problem setters: