Why my input is failed?


#1

Can anybody help me why expected output is showing 0? Am I missing anything?
input:
A = size of array = 7
B[] = 5 4 3 3 3 0 9
output : 1 or more
(5+4=9
3+3+3 = 9
0+9 = 9)
but expected : 0
If u know the reason plz do tell me
Thanks :slight_smile:


#2

1st line is the value of a (number of elements in vector b), the second line is the vector b itself, but the first digit of the second line is also the number of elements in b.
your output formate should be
7
7 5 4 3 3 3 0 9
your output would be
2


#3

Yes thank you I realised it after posting :sweat_smile::joy: