#46331: 三種解法:heap + doubly linked list / zkw 線段樹 + BIT 上二分搜 / 線性 O(n)(附 code 和詳細註解)


ericshen19555@gmail.com (暴力又被TLE)