你的 `a[0]` 是无序的,你可以用`priority_queue` @[xuanshouqian](/user/1169440) by juruo_zhanshen @ 2023-10-28 07:14:18