主函数外面开了一个long long int total[20005]
在函数内用sort排序出错 开成long int total[20005]就正确了 求解
有知识扩展一下最好 谢谢大神们
收起
long long total[20005] 就可以了,为什么还要一个int
报告相同问题?