• 个人简介

    d=list(map(int,input().split())) key=int(input())

    i=0;j=len(d)-1;n=0;s=''

    while i<=j: m=(i+j)//2 if key>=d[m]: i=m+1 else: j=m-1 if i>len(d)-1: print('未找到') if key<d[m]: j=m-1 else: i=m+1 s += str(m)+'' if j<0: print('未找到') if d[i]==key: print(s) print('找到') print(i,j) else: print('未找到')

  • 最近活动

    This person is lazy and didn't join any contests or homework.