Longest fibonacci-like subsequence

Правка en1, от aeonary, 2022-12-23 08:59:40

Please help me, the number is find the longest fibonacci-like subsequence

  • t <= 15
  • N <= 2500
  • -10^6 <= a[i] <= 10^6

Example

Input:

1

7

-20 87 20 0 20 100 22

Output: 4 (-20, 20, 0, 20)

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский aeonary 2022-12-23 08:59:40 244 Initial revision (published)