Commit 99620718 by BellCodeEditor

auto save

parent 7c97c8e7
Showing with 18 additions and 0 deletions
a=[1,3,5,7,12,13,15,17,19,20]
mid=(low+high)//2
if guess==num:
print("找到了")
elif guess<num:
low=mid+1
else:
high+mid-1
a=[1,3,5,7,12,13,15,17,19,20]
b=7
mid=(low+high)//2
if guess==num:
print("找到了")
elif guess<num:
low=mid+1
else:
high+mid-1
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment