二分查找变形

arr=list(map(int,input().split())) n=arr[0] m=arr[1] def get_sum(s): total=0 for i in range(n): total+=s s=(s+1)//2 return total low=1 high=m while(low<=high): mid=low+
相关文章
相关标签/搜索