Commit 85a642b5 by BellCodeEditor

save project

parent b12c2cac
Showing with 1 additions and 1 deletions
...@@ -4,7 +4,7 @@ def h(n): ...@@ -4,7 +4,7 @@ def h(n):
r=len(a) r=len(a)
while l<=r: while l<=r:
mid=(l+r)//2 mid=(l+r)//2
if mid==n: if a[mid]==n:
print(1) print(1)
if mid<n: if mid<n:
l=mid+1 l=mid+1
......
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