ls1 = list(map(int, input().split()))
set1 = set(ls1)
max_num = -1
for i in set1:
if ls1.count(i) == i:
if i > max_num:
max_num = i
print(max_num)
查找特征数
最新推荐文章于 2024-09-18 10:41:25 发布
ls1 = list(map(int, input().split()))
set1 = set(ls1)
max_num = -1
for i in set1:
if ls1.count(i) == i:
if i > max_num:
max_num = i
print(max_num)