Commit 58a17ce0 by BellCodeEditor

save project

parent ae39bbe8
Showing with 7 additions and 4 deletions
...@@ -2,7 +2,10 @@ ...@@ -2,7 +2,10 @@
num_list = [1, 3, 5, 8, 11, 15, 17, 18, 20, 21] num_list = [1, 3, 5, 8, 11, 15, 17, 18, 20, 21]
f=0 f=0
d=20 d=20
v=len(num_list)_1 sa=
sa=(f+d)//2 v=len(num_list)-1
while v>f: while v>f:
a= sa= (v+f)//2
\ No newline at end of file guess_num==num_list[sa]
if guess_num==d:
print()
\ 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