The file contains a sequence of integers. Sequence elements can take integer values from
-15000
to
15000
inclusive. Determine the number of triples in the sequence in which the third number is not less than the sum of the first two, and the sum of the first two is not greater than the sum of all numbers in the file that are multiples of
15
. In your answer, write down the number of triples found, then the maximum sum of all the sums of the first two numbers (two numbers separated by a space in one line). In this task, under a triple means three consecutive elements of a sequence.
Assignment file