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
Help needed to solve this problem!!
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