Gap

아직 제출이 없습니다시간 제한2초메모리 제한512 MB

문제

There are NN non-negative integers a_1,a_2,,a_Na\_1, a\_2, \dots, a\_N satisfying the following inequality 0a_1<a_2<<a_N10180 \le a\_1 < a\_2 < \cdots < a\_N \le 10^{18}. Jeehak wants to know the largest possible value of a_i+1a_ia\_{i+1} - a\_i where ii ranges from 11 to N1N-1. The input integers will not be given directly to Jeehak's program but will be accessible through a special funtion. See sections Implementation of your selected programming language for details.

Help Jeehak to implement a function to return the largest possible value of a_i+1a_ia\_{i+1} - a\_i where ii ranges from 11 to N1N-1.

제한

In allsubtasks the constraint 2N100,0002 \le N \le 100\\,000 holds.