Skyscrapers (hard version)

Problem Name:
Skyscrapers (hard version)
Site:CodeForces
Links:
Tags:
Problem setters: