题解 | 查找
查找
https://www.nowcoder.com/practice/d93db01c2ee44e8a9237d63842aca8aa
def find(n, s, a, t): for i in t: tag = 0 for j in s: if j == i: print('YES') tag = 1 break if not tag: print('NO') n = int(input()) s = list(map(int, input().split())) a = int(input()) t = list(map(int, input().split())) find(n, s, a, t)