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.
BledDest The problem B is missing a test case.
Input:
Output:
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.