Write a program that reads a sequence of integer numbers and prints how many of them are equal to the sum of all the elements which are behind them.
Input is a sequence of integer numbers.
In a line, print the number of integer numbers of the input sequence that are equal to the sum of all the elements which are behind them.
Use recursion (not tables).
Author: Unknown
Translator: Carlos Molina
Generation: 2026-01-25T11:11:33.509Z
© Jutge.org, 2006–2026.
https://jutge.org