Something wrong with the input for WiFi Network problem
2

I just write the code to read input.

clients = []

N = int(input())

for i in range(N):

    clients.append(list(map(int, input().split(" "))))

xg, yg, xa, ya = map(int, input().split(" "))

And get the error with "not enough values to unpack (expected 4, got 2)" in line "xg, yg, xa, ya = map(int, input().split(" "))" for some test cases. But some are pass.

In the problem's input detail says that four integers Xg, Yg representing Cg, and Xa, Ya representing Ca come after N + 1 lines.

Does the input format have any problems?

 

Replies (3)
Sort by:

I guessed I faced similar issue (Runtime error)  using Python for test case #3 and above.

If the input "Xg Yg Xa Ya" of test cases is separated into 2 lines, which conflicts with the problem statement, this is not fair to participants using Python

When i change it to read two lines. now the first two test cases have error

Please try to read 2 lines to get the 4 expected integer if you are having issue reading data using python.

for example,

1 2 3 4

if you face any issue reading this line using python, please try them from two lines. 

1 2

3 4

 

We just spent so much time trying to figure out what was wrong with our code before seeing this.

Can such bugs be posted on the Telegram channel or compiled on a Google docs please? Thanks!

Why organizer does not fix the incorrect test cases input?

?