a=[] n=int(input()) for i in range(0,n): f=(int,input()) a.append(f) sum=0 ans=0 for i in range(0,n-2): sum=0 for f in range(i,i+3): sum=sum+a[f] if(sum>ans): ans=sum z=f print(ans) print(z)
Standard input is empty
Standard output is empty
Traceback (most recent call last): File "./prog.py", line 2, in <module> EOFError: EOF when reading a line