Moving grid

Problem Name:
Moving grid
Site:CodeForces
Links:
Tags: