The Evil Temple and the Moving Rocks

Problem Name:
The Evil Temple and the Moving Rocks
Site:CodeForces
Links:
Tags:
Problem setters: