Putting Bricks in the Wall

Problem Name:
Putting Bricks in the Wall
Site:CodeForces
Links:
Tags:
Problem setters: