描述: 分析 数据结构: 列表,集合 解题步骤: 1)去重 逐个比较,没有相同的元素时将新的元素添加到列表/集合中 2)排序 sort方法 参考代码 基本解法(数据结构为列表时): import sys N = int(sys.stdin.readline()) numlist = [] num