就是一个slide windows 的题目```pythoninputs=[5,1,2,100,2,2]defalert(inputs,windowSize,allowedIncrease):b=[]tmp={}foriinrange(len(inputs)-windowSize):forjinrange(i,i+windowSize+1):ifjintmp.keys():ifj>len(inputs)-windowSize-1:tmp.get(j).append(inputs[i+1:i+windowSize+1])else:tmp.get(j).append(inputs[i:i+windowSize])else:print(j,j,i,i+windowSize)ifj>len(inputs)-windowSize-1:tmp[j]=[inputs[i+1:i+windowSize+1]]else:tmp[j]=[inputs[i:i+windowSize]]b=[inputs[i:i+windowSize]foriinrange(len(inputs)-windowSize)]print(tmp)fornumintmp.keys():ifall(inputs[num]>sum(lis)/windowSize*allowedIncreaseforlisintmp.get(num)):returnTrueb=[sum(i)/windowSizeforiinb]foriinrange(len(b)):ifany(b[i]>b[j]*allowedIncreaseforjinrange(i)):returnTruereturnFalseprint(alert(inputs,3,1.5))```