Problem:- https://hack.codingblocks.com/contests/c/944/280
Code: - https://ide.codingblocks.com/s/95937
Matrix Exponentiation is used
I am trying to achieve [T]^(n-1) * [F1] = [Fn] and hope to get the answer at Fn[1][0], I have taken the following values as T = { {0,1} , {1,1} } and F = { {1}, {1} }
I am getting runtime error Is my implementation correct?
@Saurabh-Kumar-1331476656958199
@Aditya-Agrawal-1660105750689865
@SanyamGarg