Catch the Mole(Hard Version)

Problem Name:
Catch the Mole(Hard Version)
Site:CodeForces
Links:
Tags:
Problem setters: