ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1133. Fibonacci Sequence

WA8 with formulas
Posted by Daniel Mahu 14 Oct 2016 13:58
I used the formulas with phi and solved a system of 2 equations to get the coefficients, in python using floats.

Any hint why I get WA8? all tests on the forum work.
Re: WA8 with formulas
Posted by Daniel Mahu 15 Oct 2016 18:47
I eventually got AC by trying out several values around the integer the math formula gave and checking each against given initial values.