题解 | #明明的随机数#

明明的随机数

http://www.nowcoder.com/practice/3245215fffb84b7b81285493eae92ff0

#用集合set去重
#转列表排序,输出
import sys
while True:
    try:
        n = int(input())
        s = set()
        for i in range(n):
            s.add(int(input()))
        l = sorted(list(s))
        for c in l:
            print(c)
    except:
#         print(sys.exc_info())
        break













全部评论

相关推荐

不愿透露姓名的神秘牛友
05-13 14:16
战争学院:你妈妈第一反应是骗子,我妈妈第一反应是培训贷,全国家长系统是统一的吗哈哈哈
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务