I have been trying to solve this Hacker Earth problem and it is reduced to finding the Fibonacci numbers. However, I am getting wrong answers for big values.
Here is my code. Can someone tell me what is wrong ?
I have been trying to solve this Hacker Earth problem and it is reduced to finding the Fibonacci numbers. However, I am getting wrong answers for big values.
Here is my code. Can someone tell me what is wrong ?
AC
Thanks a lot. Can you explain the difference please ?
https://discuss.codechef.com/questions/31014/difference-between-i64d-lld This link talks about the same problem. It basically says that this is a compiler dependent problem.