文章
67
粉丝
207
获赞
30
访问
41.0k
while True: try: n = int(input()) list1 = list(map(int,input().split())) b = int(input()) for i in range(0,n): if list1[i] == b: print(i) break elif i == n-1: print(-1) except: break
登录后发布评论
暂无评论,来抢沙发