126 Sequence of Squares ERROR brainfuck

Back to General discussions forum

jugarciaba     2023-03-30 17:22:43
User avatar

Hi, i think that exist an error with de answer. When i submit, this message is showed "Wrong number of values printed for input 21".

My x is 11.

The answer of my brainfuck code is: 1 4 9 16 25 36 49 64 81 100 121

gardengnome     2023-03-30 17:37:11
User avatar

Quote: "Input data contain the single value X (not necessarily the same as given you for example when testing your code!)."

You have to read the input in, not hardcode the value to what is shown on the webpage!

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