Back to General discussions forum
Given the example inputs of "5 1 3" and an expected output of "4 7 11 18 29", the challenge is clearly to print the next N values of the sequence which starts with f0 and f1. However, my program which prints "1 2 3 5 8 13 21 34 55" for inputs of "9 0 1" is being judged incorrect.
Either there is a bug in the checker, or else the example output does not match what the checker is looking for. Please advise.
Scratch that. I mistakenly assumed the stack operations were permitted.
Ah, sorry, I'm afraid this misunderstanding occurs because of test-runner below the source submission area does not restrict extra operations... I hope I can invent something to improve this situation... Thank you for the message!
I just had the same issue happen to me. When you get a chance can you update the problem statement to warn the programmer that the stack operations are disabled for this problem?
Matthew, Hi!
Thanks a lot for the reminder. I've added warning to problem statement right now according to your advice!
I use only []+-:<> commands, my programm calculates correct values, but the checker always says "Wrong result for input: 9 0 1". Tell me please, what is wrong?
It won't help you much, but the checker still marks my code as "Correct".
For 9 0 1 my code prints "1 2 3 5 8 13 21 34 55"
Thanks for your answer, Quandray! My program gives back the same values "1 2 3 5 8 13 21 34 55" if input was "9 0 1". But the problem is the cheker each time says "Wrong result for input: 9 0 1", for each different input. I don't understand why...
For example, my last try. Input data: "9 2 5", my answer: "7 12 19 31 50 81 131 212 343". Result: Your answer is Wrong! Expected answer was: Wrong result for input: 9 0 1
Thank you again, Quandray! It would be great! Where can I find your e-mail adress?
Sorry, but I can't find it. I've looked everywhere) Could you write your adress in here? Or maybe it will be better on skype? My contact is 'skvortsovvg'.
I've just solved this task. The key is to use ';' for input! I was trying to do it with increment '+'. Thanks a lot, Quandray, for your hint!