code guesser problem 36

Back to Problem Solutions forum

colin_mcnicholl     2019-05-13 09:30:40

The problem statement for output says:

Answer should contain the secret number (also 4 digits).

I understand this to mean numbers 0 to 999 inclusive could not be the secret number. Is this correct ?

My first submission I answered 5958 and expected answer is 5058. So far I cannot figure out what I have got wrong.

Quandray     2019-05-13 15:09:27
User avatar

My code allowed for leading zeroes, so 0123 could be a valid answer.

colin_mcnicholl     2019-05-14 08:17:30

Thanks for reply.

I was too hasty with posting my question on the forum. If I had more carefully examined the test input I should have figured it out alone.

Problem now solved.

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