python 排序做 全re 求助!
查看原帖
python 排序做 全re 求助!
1263984
llly_ya楼主2024/3/9 19:05
n=int(math.pow(2,int(input().strip())))
country=list(map(int,input().strip().split()))
qian=sorted(country[:int(n/2)],reverse=True)
hou=sorted(country[int(n/2+1):],reverse=True)
print(int(country.index(min(qian[0],hou[0]))+1))
2024/3/9 19:05
加载中...