from itertools import accumulate n,k=map(int,input().split()) number=list(map(int,input().split())) for i in range(n): number[i]-=k number1=list(accumulate(number,initial=0)) dict1={} count=-1 for index,value in enumerate(number1): if value not in dict1: dict1[value]=index else: ...