摘要:
Description Being the only living descendant of his grandfather, Kamran the Believer inherited all of the grandpa's belongings. The most valuable one 阅读全文
摘要:
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 阅读全文
摘要:
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>= 阅读全文