Grid game

Problem Name:
Grid game
Site:CodeForces
Links:
Tags:
Problem setters: