Code Guesser

Back to Problem Solutions forum

Curio_Amigo     2020-11-26 07:44:13

Hello Folks !!!

I got an inconsistency bettewen my answer and the answer a got from the checker. Sometimes I am got correct in my answer sometimes the checker give-mes another answer.

I have revised all my code and wasn't be able to find where the discrepancy is.

I looking forward your help,

Curio_Amigo

qwerty     2020-11-27 22:30:35

Hello, Curio Amigo.

I do not even get how your code is working. I can agree that if answer to given sample is 0, then all digits of sample are wrong, so you full your "wrong0", "wrong1", ... arrays correctly.

But on your "doubt0", "doubt1", ... arrays I have doubts, ha-ha. It looks for me that they have less members than should.

And the way you choose "sure0", "sure1", ... from "doubt0", "doubt1", ... well, I can say I do not see any logic here.

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