Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
108774 伍长辉 寻找第二小的数 Python3 Wrong Answer 34 MS 3768 KB 263 2025-01-21 20:01:11

Tests(0/1):


Code:

n=int(input()) for x in range(n): m=int(input()) a=input.split() a=[int(x) for x in a] b=min(a) for x in range(a.count(b)): a.remove(b) if len(a)==0: print('No') else: c=min(a) print(c)


Run Info:

------Input------
10 10 9 80 70 60 60 1 9 9 1 1 2 1 1 2 90 99 5 2 2 2 2 2 8 0 -1 -1 1 2 3 4 5 10 -3 -3 -3 -3 -3 -3 -3 -3 -3 -3 2 -4 -9 2 -0 0 2 -0 8 7 -0 0 0 -0 0 0 9
------Answer-----
9 NO 99 NO 0 NO -4 NO 8 9
------Your output-----