n = int(input()) list1 = list(map(int, input().split())) difference = abs(list1[0] - list1[1]) for i in range(n): for j in range(i+1, n): if difference > abs(list1[i] - list1[j]): difference = abs(list1[i] - list1[j]) print(difference)
CCF python 最小差值
最新推荐文章于 2025-06-27 17:07:21 发布