Commit 8ce3ca17 by BellCodeEditor

save project

parent 54fa6de8
Showing with 8 additions and 14 deletions
num = int(input( ))
low = 0
high = 1001
a=[]
for i in range(1001):
a.append(i)
for i in range(8):
mid = (low+high)//2
if a[mid] == num:
print(mid)
elif mid < num:
low = mid+1
else :
high = mid-1
class Hero():
del __import__ (yase):
yase.hp=300
yase.attack=30
yase.level=1
sat=yase()
print(sat.hp)
\ 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