Problem 119 Brain Fibo

Back to Problem Solutions forum

derkach91     2015-06-04 20:12:00

All the time, when I'm trying to submit result it shows me this "Wrong result for input: 9 0 1" All the time, the same. 9 0 1 Could you halp me? I've written the code which works with different input.

OldProgrammer     2015-06-08 20:40:25

Hi derkach91,

what does your BF code give with 9 0 1 ? Can you work out the result using pencil and paper or write the program in something other than BF to see what it should be?

If your calculations don't agree with the program, is there anything special about the input 9 0 1 that would cause your program to fail? Your BF program might be doing something like decrementing data or instruction pointers too far which might cause the BF interpreter to raise an error.

Hope that helps.

Please login and solve 5 problems to be able to post at forum