Magnitude (Hard Version)

Problem Name:
Magnitude (Hard Version)
Site:CodeForces
Links:
Tags:
Problem setters: