Олимпиадный тренинг

Задача 39073. Threes - 01


Задача

Темы: ЕГЭ
The file contains a sequence of integers. Sequence elements can take integer values ​​from -10 000 to 10 000 inclusive. Determine the number of triples in the sequence in which the sum of the last digits of each of the numbers is an even number, and the minimum of these numbers is not less than the minimum odd among all the numbers in the sequence. In your answer, write down the  number of triples found, then the maximum number of all such triples (two numbers separated by a space on one line). In this task, under  a triple means three consecutive elements of a sequence.

Assignment file