Boring Apartments

Problem Name:
Boring Apartments
Site:CodeForces
Links:
Tags:
Problem setters: