可能是重载运算符用反了 struct node { ll dis,u; bool operator>(const node& z) const{ return dis>z.dis; } }; 从小到大排序是这样写的