HackerRank-Python攻城歷程-3.List( Find the Second Largest Number )

1 if __name__ == '__main__':
2     n = int(input())
3     arr = map(int, input().split())
4     print(sorted(list(set(arr)))[-2])

 

posted @ 2017-09-26 11:54  RiocasTure  阅读(273)  评论(0编辑  收藏  举报