Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
131521 杨嘉陆 寻找第二小的数 Python3 Accepted 60 MS 3744 KB 212 2025-09-27 14:37:15

Tests(1/1):


Code:

n=int(input()) for x in range(n): m=int(input()) a=input().split() a=[int(x) for x in a] a=list(set(a)) a.sort() if len(a)==1: print("NO") else: print(a[1])