Commit 34d2ca0c by BellCodeEditor

save project

parent d9619f07
Showing with 16 additions and 1 deletions
...@@ -22,7 +22,7 @@ w = turtle.Screen() ...@@ -22,7 +22,7 @@ w = turtle.Screen()
w.bgcolor('wheat') w.bgcolor('wheat')
pen.lt(0) pen.lt()
pen.up() pen.up()
pen.bk(500) pen.bk(500)
pen.down() pen.down()
......
sb= [1,3,5,8,11,13,15,17,20,21]
sb= [1,3,5,8,11,13,15,17,20,21]
n=20
low=0
high=len(sb)-1
dm=(low+high)//2
if sb[dm]=n:
if sb=n:
print("ok")
break
elif sb<n:
low=<dm+1
elif
high=dm-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