Binary Table (Hard Version)

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