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.
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.
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.