def hcf(x, y): # 获取最小值 if x > y: smaller = y else: smaller = x for i in range(1,smaller + 1): if((x % i == 0) and (y % i == 0)): hcf = i return hcf l1=[] l2=[] l1=list(map(int,input().split())) l2=list(map(int,input().split())) for i in l2: if(...