📜  找到亚军分数! - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:16.750000             🧑  作者: Mango

代码示例3
if __name__ == '__main__':
    n = int(input())
    arr = map(int, input().split())
    score = []
    for c in list(arr):
       if c not in score:
        score.append(c)
       else:
        continue
    score.sort()
    print(score[len(score)-2])