二分查找變形

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+
相關文章
相關標籤/搜索