Картина Репина "Приплыли"

Сам автор не понимает как работает его программа в простейшем случае?
Huh, that is strange, I will investigate how it can report more cases than there are numbers.
Понятно.
[5 1 1] это, оказывается, неправильно. Вы что даже не тестировали для простейших примеров?
Ну вот не зря говорил, что надо разбираться детально. Проверять, а не верить на слово. Нужно было самые короткие цепочки сначала проверить. А мы тут про valids=19 разговаривали.
А какие 3 числа должны быть в квадратных скобках по Вашей задумке?
[5 0 1] ?
[5 1 0] ?
[6 0 0] ?
Или какие-то ещё варианты?
Вы же для чего-то добавили вывод этой информации. Надеюсь, не для того, чтобы людей запутывать.
____________________________________________________________________
Repin's painting "They've Arrived"

The author himself doesn't understand how his program works in the simplest case?
Ha, that's weird, I'll figure out how it can report more cases than there are numbers.
I see.
[5 1 1] turns out that's wrong. Didn't you even test it on the simplest examples?
Well, I was right when I said we need to look into it thoroughly. Don't take my word for it. You should have checked the shortest chains first. And were we talking about valids=19 here.
And what three numbers should be in square brackets, according to your plan?
[5 0 1] ?
[5 1 0] ?
[6 0 0] ?
Or some other options?
That's why you added this information. I hope it wasn't to confuse people.