WA in Spoj FIBOSUM


Getting wa many times…checked for many tes cases done mod correctly I have chosen c upwards and b in reverse order

Hi @piyush.bansal8158625
in dis question u have to consider fibonacci from 0 and index of fib is like 0->0,1->1,2->1,3->2,4->5.
In ur code, ig u r calculating fib from 1->1 and not from 0->0. please try to check it once.
If still feel like something is still not clear, feel free to post ur doubt here.
Hope dis helps.

@piyush.bansal8158625
refer to dis code

Thanks …It got accepted in milli seconds… if I had started from 1 i have decreased the power of my matrix by 1. And u only changed my b matrix and e term.(The power to be raised)


I modified this code with b and e still getting worng