题解 | #找x#
找x
https://www.nowcoder.com/practice/069e2130430c41229ab25e47fa0949a6
n = input() nums = input().split() target = input() for i in range(len(nums)): if target == nums[i]: print(i) break else: print(-1)
找x
https://www.nowcoder.com/practice/069e2130430c41229ab25e47fa0949a6
n = input() nums = input().split() target = input() for i in range(len(nums)): if target == nums[i]: print(i) break else: print(-1)
相关推荐