pythom比较方便点,用functools库的cmp_to_key()自定义他说的排序规则就行,然后直接用.sort(key=cmp_to_key)排序好
点赞 评论
牛客网
牛客网在线编程
牛客网题解
牛客企业服务