Closed canhnht closed 8 years ago
Hey, it's been quite some time since the solution has been added but looking at the problem statement it does say that N is less or equal than M, and in your test case M = 3 and N = 5... so it is not a valid input?
Oh, my bad. Sorry, it's invalid input. :)
I tested the solution 501 UVA with this testcase:
It gave Segmentation fault (core dumped)