Back to General discussions forum
Hello everyone.
Im working on a problem 170. I think I solve it. At least I had correct answer when used input from example.
But then I copy main input, paste it into my programm, then paste answer into "Your answer" field, paste my code into "Your solution" field and press "Submit" I get this message in "Expected answer was:" "You are expected to return N country codes!", where N is the amount of IPs to be processed.
Maybe someone had the same thing?
P.S. In "Your answer" field I paste exact(N) amount of country codes.
Hi,
I was working on task 170 some time ago and I had a similar problem. I was writing output to a text file and in one place in my file two-letter tokens was separated by line separator instead of space. So please check if all two-letter tokens are separated by spaces.
By "line separapor" you mean /n (i.e. new line)?
If so, I checked and I can tell with 100% of certainty, that they are all separating by space. I can tell so, because then I replacing all 'spaces' with '/n' in notepad, I get exact amount of county codes.
Problem solved.
I just erase last space which goes after last country code in output.