Given a sequence of integers we are interested in frequencies of the sums of consecutive number pairs. For instance, the sums of consecutive number pairs of the input sequence are . Note that pair sums and have frecuency two, and the first pair in the sequence achieving a frecuency sum greater than one is . Write a program that given a limit and a sequence of integers computes the first pair of consecutive numbers achieving a frequency sum greater than . For instance, provided that is one and given the previous input sequence the first pair achieving a frequency sum greater than is .
Input consists of a nonnegative integer followed by a sequence of two or more integers.
The first pair of consecutive numbers in the input sequence achieving
frequency sum greater than
.
If there is no such a pair, the message
not found must be printed.
Author: ProAl
Generation: 2026-01-25T16:59:14.816Z
© Jutge.org, 2006–2026.
https://jutge.org