Task 170 You are expected to return

Back to General discussions forum

Leonid_Manieiev     2016-08-11 04:13:42

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.

TheUlit     2016-08-12 05:29:55

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.

Leonid_Manieiev     2016-08-12 17:02:40

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.

Leonid_Manieiev     2016-08-12 17:06:14

Problem solved.

I just erase last space which goes after last country code in output.

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