a brainfuck problem

Yesterday evening, 0xSuu sent me a problem but which requires to write in brainfuck language. The complete problem is here.


 

The input will be a newline-terminated string. The first character
will be an ASCII digit. You need to output the entire line this
number of times, followed by a blank line.

For example, if the input string is "3 is the magic number" then
your program should print:
3 is the magic number
3 is the magic number
3 is the magic number

Yeah, you're working for these points.

Enter your program here:


 

I tried nearly 2 hours to solve it. But my mind was a mess that time, so I rewrote it just now. And it works.

Here is the brainfuck program. It's not the best practice, but it works.

声明: 本文为0xBBC原创, 转载注明出处喵~

发表评论

电子邮件地址不会被公开。 必填项已用*标注