Turn the Rectangles

Problem Name:
Turn the Rectangles
Site:CodeForces
Links:
Tags:
Problem setters: