2021-04-02 23:19
南京大学 测试开发 牛客828795787号:def function(N): result = [] for i in range(int(N)): flag = True while flag: s = input() if s.isdigit() and 1 <= int(s) <= 500: result.append(int(s)) flag = False else: continue #去重 result1 = list(set(result)) result1.sort() for j in result1: print(j) XX = True while XX: N = input() if N.isdigit() and 1 <= int(N) <= 1000: function(N) XX = False else: continue
0 点赞 评论 收藏
分享
关注他的用户也关注了: