Kings in 2D Grid

Problem Name:
Kings in 2D Grid
Site:CodeForces
Links:
Tags:
Problem setters: