Comment

avatar username

BledDest The problem B is missing a test case.

Input:

1
5
1 2 3 4 5
1 2 3 4 5

Output:

1 5

The solution provided here causes undefined behavior and buffer overflow for this testcase. I think the test case should be added as I have seen some submissions giving wrong answer for this case.

The actual rating of this user is 1036.

Original comment.

Statistics