Commit e2172c9c by BellCodeEditor

save project

parent a1bd4b47
Showing with 6 additions and 5 deletions
...@@ -7,12 +7,12 @@ while low<=high: ...@@ -7,12 +7,12 @@ while low<=high:
mid=(low+high)//2 mid=(low+high)//2
a=num_list[mid] a=num_list[mid]
if a == num: if a == num:
print(mid) print("111111111",mid)
break break
elif a<=num: elif a<num:
low=num+1 low=mid+1
elif: elif a>num:
high+mid-1 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