tags title created modified Code sort排序 2022-09-02T13:05:44.260Z 2022-09-02T13:06:04.265Z sort排序 bool cmp(const node& x, const node& y) { return x.num < y.num; } sort(a+1,a+n+1,greater<int>());