Rising Sand

Problem Name:
Rising Sand
Site:CodeForces
Links:
Tags:
Problem setters: