Longest fibonacci-like subsequence

Revision en1, by 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)

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English aeonary 2022-12-23 08:59:40 244 Initial revision (published)