数据结构
文章平均质量分 69
InfoAbby
这个作者很懒,什么都没留下…
展开
-
数据结构 堆。
删除优先级最高的元素 DeleteMin() void down(int bab) { int son=bab*2; int a=heap[bab]; while(son<=hlength) { if(sonheap[son+1]) son++; //确定最小的儿子原创 2016-08-01 11:24:12 · 276 阅读 · 0 评论 -
深搜 城堡
#include #include #include #include #include #include using namespace std; int R,C; int rooms[60][60]; int color[60][60]; int maxRoom=0,roomNum=0; int roomArea; void dfs(int i,int k) { if(c原创 2016-07-24 17:26:03 · 361 阅读 · 0 评论