Interactive lock

Problem Name:
Interactive lock
Site:CodeForces
Links:
Tags:
Problem setters: