并查集
night_dust
打代码最难受的就是没有思路,更难受的就是有了思路还不会写,更更难受的就是看了别人的代码自己还是挂,最最最难受的就是花了一年找了个简单的bug。
展开
-
Dragon Balls—并查集路径压缩
HDU-3635-Dragon BallsFive hundred years later, the number of dragon balls will increase unexpectedly, so it's too difficult for Monkey King(WuKong) to gather all of the dragon balls together. H...原创 2018-08-15 18:06:24 · 165 阅读 · 0 评论 -
HDU-3047-带权并查集
HDU-3047-Zjnu StadiumIn 12th Zhejiang College Students Games 2007, there was a new stadium built in Zhejiang Normal University. It was a modern stadium which could hold thousands of people. The audi...原创 2018-08-15 21:03:51 · 235 阅读 · 0 评论