0

Calculation of the control value. Tell me how to do it in the Python language?

Calculation of the control value. Tell me how to do it in the Python language? For a given sequence of non-negative integers, you must find the maximum product of its two elements, the numbers of which differ by at least 8. The value of each element of the sequence does not exceed 1000. The number of elements of the sequence does not exceed 10,000

11th Mar 2019, 2:44 AM
Sara H
Sara H - avatar
5 odpowiedzi
+ 2
The absolute value of their difference will be at least 8
11th Mar 2019, 5:59 AM
Anna
Anna - avatar
+ 1
i tryed
11th Mar 2019, 4:28 AM
Sara H
Sara H - avatar
+ 1
i dont know how to make it eight digits between the numbers. How do you translate this into code? Just tell me a hint
11th Mar 2019, 4:35 AM
Sara H
Sara H - avatar
+ 1
thank you very much
11th Mar 2019, 7:04 AM
Sara H
Sara H - avatar