C4 How to solve a similar problem? ЕГЭ 2014 informatics
I do not think that my question is beyond the scope of this site, but I apologize in advance.
There was such a task, but such that there was no such thing in any collection or in the demo version. The task was in real 2014 kimah. I am writing from memory, so I omit some of the details.
C4.
Scientists remove testimony from the Tonegawa apparatus once a minute. The input is N - the number of readings taken during this period and the readings themselves. Your task is to write a program that will find the minimum product of two elements obtained at intervals of at least 6 minutes.
Sample input:
11 20 12 11 4 5 9 10 24 43 20 7
Sample output: 28
Elements of the input is guaranteed to be real. The number of elements is up to 1000. The maximum reading is 10,000.
Memory limit: 1 kilobyte.
Time limit: with an increase in the number of elements by K times, the execution time should not increase by more than K times.
Prompt at least the idea of a solution. If you need any clarification - ask.