[Community Puzzle] Bender - Episode 4


#21

hello, eulerscheZahl
I really like this topic, I tried to solve the problem in C++, but I don’t know why my code can display the results locally (for the first example), there is nothing in the platform’s Standard Output Stream, I try to use Printf, found that nothing is output, I think it might be to use cout, but change to cout or nothing
I cout << ans << endl; Is it not right, must cout << RRLL…<<endl; This way, but the string will not know in advance, can only be stored in the array, please advise
Annex 1:
This is my code: https://paste.ubuntu.com/p/32PMt3sdhV/
Annex 2:
Why is the data of test1 is this:https://github.com/eulerscheZahl/Bender4/blob/master/config/test1.json, shouldn’t it be
8 8
…#…
##.##.#.
.#…###.
.##.#…
…#.###.
.##…#.
…###.#.

1 1 8 8 0
Well? This is what I wrote myself based on the first data.


#22

Don’t print to the out stream, but the error stream: example code.

The test input is almost the same as on github. The only difference is, that there are | characters instead of linebreaks (back then there was a bug in the framework, which crashed on linebreaks).

When you tried to extract the map by hand, you forgot the surrounding wall.


#23

thanks,I know


#24

Wonderful puzzle, eulerscheZahl! 2 days and 4 evenings of fun coding :slight_smile: Thank you very much!


#25

I’m glad you like it :slight_smile:
And congrats on getting first.