dfs求联通块
文章平均质量分 83
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 · 349 阅读 · 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 · 750 阅读 · 0 评论 -
C. Pavel and barbecue
C. Pavel and barbecue time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Pavel cooks barbecue. There are n skewers, they原创 2017-01-25 21:05:55 · 629 阅读 · 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 · 225 阅读 · 0 评论