------
## 最终结论
```python
def numberOfArithmeticSlices(A):
    if len(A) < 3:
        return 0
    
    total_slices = 0
    current_slices = 0

    for i in range(2, len(A)):
        if A[i] - A[i-1] == A[i-1] - A[i-2]:
            current_slices += 1
            total_slices += current_slices
        else:
            current_slices = 0

    return total_slices
```