2018年8月22日
摘要: Description Being the only living descendant of his grandfather, Kamran the Believer inherited all of the grandpa's belongings. The most valuable one 阅读全文
posted @ 2018-08-22 16:13 怡红公子 阅读(314) 评论(0) 推荐(0) 编辑
摘要: Farmer John has a farm. Betsy, a famous cow, loves running in farmer John's land. The noise she made makes John mad. So he wants to restrict the area 阅读全文
posted @ 2018-08-22 14:56 怡红公子 阅读(278) 评论(0) 推荐(0) 编辑
摘要: pop_heap(a.begin(),a.end(),cmp) 的功能只是将第一个元素放到最后,然后忽略最后一个元素的情况下再维护一遍堆 一:最小堆的初始堆有两种方式建立: 1、for(int i=1;i<=m;++i) heap_up(i); 让上面的路走通 2、for(int i=m/2;i>= 阅读全文
posted @ 2018-08-22 13:08 怡红公子 阅读(410) 评论(0) 推荐(0) 编辑