dfs求联通块
文章平均质量分 84
UMR小豪
这个作者很懒,什么都没留下…
展开
-
Paint the Grid Reloaded ZOJ - 3781
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 t原创 2017-01-16 17:28:06 · 329 阅读 · 0 评论 -
D - Coconuts HDU - 5925
TanBig, a friend of Mr. Frog, likes eating very much, so he always has dreams about eating. One day, TanBig dreams of a field of coconuts, and the field looks like a large chessboard which has R rows原创 2017-02-16 14:52:43 · 725 阅读 · 0 评论 -
C. Pavel and barbecue
C. Pavel and barbecuetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPavel cooks barbecue. There are n skewers, they原创 2017-01-25 21:05:55 · 608 阅读 · 0 评论 -
Oil Deposits
The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and creates a grid that divides th原创 2017-05-16 19:48:43 · 213 阅读 · 0 评论