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



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


You can post your queries under editorials :

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.