SPOJ PIB Problem

Revision en1, by typedeftemplate, 2019-09-29 23:00:28

Does anyone know how I can solve this problem? Unfortunately, I can't find any editorials/solutions online, and I've been stuck on this problem for some time now :).

I've tried using BigInteger, etc in Java, with no luck. So I would love to see how someone else has done it.

Here's the problem: https://www.spoj.com/problems/PIB/

Tags fibonacci, biginteger, #spoj, #math, #dynamic programing

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English typedeftemplate 2019-09-29 23:00:28 352 Initial revision (published)