def aa(len_n,list_str,k): #倒序节约时间 for L in range(len_n,0,-1): for x in range(len_n+1-L): if sum(list_str[x:L])%k==0: res=L return res len_n=int(input()) list_str=[int(x)for x in input().split()] k=int(input()) res=0 print(aa(len_n,list_str,...