Help needed to solve this problem!!

Revision en1, by aya1909, 2020-11-22 16:33:32

Given a range [l r] find the sum of last digits of fibonacci numbers between l and r. i.e , last(fib(l))+last(fib(l+1)) .... last(fib(r)),

where last(fib(a)) denotes last digit of ath fibonacci number.

1<=l<=r<=1e9

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English aya1909 2020-11-22 16:33:32 258 Initial revision (published)