a=[5,3,8,9,7,3,11]
n=len(a)- 1
cnt=0
for i in range(1,n):
if a[i]==a[i+1]-a[i- 1]:
cnt+=1
elif a[i]>a[i+1]-a[i- 1]:
cnt+=2
else:
cnt+=3
print(cnt)
执行该程序段后,变量 cnt 的值为( )