Nintendo - multi integers input provided on multiple lines, not on a single one as indicated in the puzzle description

The puzzle description states:
Input
Line 1: size S
Line 2: N1 integers in hexadecimal format, separated by blank spaces

However, for test 3, I receive:
32
46508fb7

… and that’s it…so my test fails.

Now, if for this single test, I post an additional std::cin (I mean I explictely request to read 3 lines and not just 2 as stated in the puzzle description), then I receive:

32
46508fb7
6677e201

… and if I concatenate the 2 strings (ie “46508fb7 6677e201”) in order to comply with the puzzle specification, then my test pass

Isn’t there something broken regarding how input data are provided ? I think that data, for this test, are not provided has they should…

As std::cin is blocking, it is not possible to have something working for tests that complies with the description (ie: where data is provided on 2 lines) and with a data set that provides integers on multiple lines…

Note that the example provided in the description of the puzzle states:
Example
Input
32
46508fb7 6677e201

but when the program is called, information is provided on 2 lines:
Input
32
46508fb7
6677e201

1 Like

Un message a été intégré dans un sujet existant : Nintendo Challenge