Wish Upon a Satellite (Hard Version)

Problem Name:
Wish Upon a Satellite (Hard Version)
Site:CodeForces
Links:
Tags: