Commit 8ce3ca17 by BellCodeEditor

save project

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