821d专题

D - Okabe and City CodeForces - 821D

Okabe likes to be able to walk through his city on a path lit by street lamps. That way, he doesn’t get beaten up by schoolchildren. Okabe’s city is represented by a 2D grid of cells. Rows are number