for (int c=i/2; c>0 && Comp(y,heap[c]); c/=2) { heap[i] = heap[c]; i = c; } heap[i] = y; return i; } // 下降 int HeapDown(int i, int mode=0)
確定! 回上一頁