Back to Problem Solutions forum
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.
My code allowed for leading zeroes, so 0123 could be a valid answer.
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.