Exact Neighbours (Hard)

Problem Name:
Exact Neighbours (Hard)
Site:CodeForces
Links:
Tags:
Problem setters: