0SUMRANGE SOLUTIONS SC_01 CODECHEF
We have a number arrangement A, whose length is N.
Locate the quantity of the non-void touching aftereffects of A whose total is 0. Note that we are excluding the approaches to take aftereffects. That is, regardless of whether the substance of somewhere in the range of two aftereffects are the equivalent, they are checked separately on the off chance that they are taken from various positions.
Info is given in the accompanying organization:
A1 A2 . . . AN
Locate the quantity of the non-void adjacent aftereffects of A whose whole is 0.
All qualities in input are whole numbers.
1 3 – 4 2 – 2
There are three adjacent aftereffects whose wholes are 0: (1,3,−4), (−4,2,2) and (2,−2)