Problem 170 (IP-Ranges) Understanding problem

Back to General discussions forum

mikamove     2023-11-26 21:15:49

Hi, first of all thanks to the creator for this wonderful page :)

I have a problem understanding the question of the mentioned problem:

In my db-ip.txt if have the following lines

1kea7sw e41r TW
1keobuo cn3 AU

This should mean that any ip with 1kea7sw <= ip < 1keobuo should map to TW, right?

1keei5f satisfies this, however, the given example states that 1keei5f should map to AU.

What did I understand wrong? Thanks for any help.

gardengnome     2023-11-26 21:36:11
User avatar

I suspect that the db-ip.txt file has been updated - my older version looks different - but the example has not been refreshed.

mikamove     2023-11-26 21:38:49

Thank You, maybe Rodion could have look please?

mikamove     2023-11-26 22:37:15

That seems right, I submitted my solution now and it was accepted :)

So the server seems to use the same, newer db-ip.txt file, just the example given in the problem description seems outdated.

Rodion (admin)     2023-11-28 04:13:46
User avatar

Hi Friends!

Sorry for this incovenience - absolutely correct, the file was updated recently (it plays some minor role in detecting mischievous behavior - exactly due to I found more details in Asia/Oceania region are currently available. Regretfully I missed the fact about example - it is now updated according to your hint, thanks!

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