COOK40 AMIFIB Weak Test Cases !

I found this code and i can not understand how this code is working.

Its giving WA for this testcase

1

10256117644121029666

This number is not a Fibonacci Number but this code is showing YES for this.

2 Likes

You can post your queries under editorials : http://discuss.codechef.com/questions/29674/cook40-amifib-weak-test-cases

In my opinion this solution will only work for numbers less than range of ULL. I am also confused how this can get AC. This would mean the test data had no input greater 1E19.

1 Like

Wrong Link. http://discuss.codechef.com/questions/29654/amifib-editorials

//