4
Wrong result for input 9 0 1 Task 119
source link: https://www.codeabbey.com/index/forum_topic/ee17c754a0da05bc81633c5333ca0661
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Wrong result for input 9 0 1 Task 119
Back to General discussions forum
ivan.e.merkulov
2021-12-19 19:03:20
Dear Friends,
my code:
,>,>,>,>,
<--------[->-->++<<<--<<-->>>] c1:c2=space:c3=f0:c4=empty:c5=f1:c6=48
<<<[
>>>> c1
[-<+>>>+<<]<<[->>+>>+<<<<] /*c3=empty:c4=f1:c5=f0:c7=f1&f0*/
>
[<+>>+<-] /*c3=f1:c4=empty:c5=f0&f1*/
>>> c7
>>++++++++++ c9=10
<< c7
[->+>-[>+>>]>[+[-<+>]>+>>]<<<<<<] c11 c10=result
>[<+>-] from c8 to c7
>[-] clear c9
>>
[++++++++++++++++++++++++++++++++++++++++++++++++.[-]]
<
++++++++++++++++++++++++++++++++++++++++++++++++.[-]
<<<[-]
<<<
<<.<-
]
Your input data:6 0 4
Your answer was:4 8 12 20 32 52
Expected answer was:Wrong result for input: 9 0 1
At https://www.tutorialspoint.com/executebrainfkonline.php
With input: 9 0 1
Result: 1 2 3 5 8 13 21 34 55
How to dig?)
Please login and solve 5 problems to be able to post at forum
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK