ZOJ - 3781 Paint the Grid Reloaded (spfa+bfs+缩点)
Leo has a grid with N rows and M columns. All cells are painted with either black or white initially.Two cells A and B are called connected if they share an edge and they are in the same color, or the...
原创
2018-04-25 10:19:28 ·
137 阅读 ·
0 评论