Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
67768 胡海峰老师 寻找第二小的数 Python3 Accepted 29 MS 3768 KB 222 2024-03-17 14:26:29

Tests(1/1):


Code:

n = int(input()) for x in range(n): m = int(input()) a = list(map(int,input().split())) b = list( set(a)) b.sort() try: res = b[1] print(res) except: print("NO")