题解 | #明明的随机数#
明明的随机数
http://www.nowcoder.com/practice/3245215fffb84b7b81285493eae92ff0
python就是简单模式
a = []
for line in sys.stdin:
a.append(int(line))
a = a[1:]
a.sort()
front = ''
for i in a:
if i != front:
print(i)
front = i
明明的随机数
http://www.nowcoder.com/practice/3245215fffb84b7b81285493eae92ff0
a = []
for line in sys.stdin:
a.append(int(line))
a = a[1:]
a.sort()
front = ''
for i in a:
if i != front:
print(i)
front = i
相关推荐