RE in SUBMEXS

https://www.codechef.com/viewsolution/39258537

Please help me out, I am not getting why am I receiving RE verdict for my above code.

maybe recursion limit exceeded, increase the recursion limit to 10**6 and it will work I guess

1 Like

how to increase the recursion limit?

thanks a lot, I got AC Verdict by increasing the recursion limit

1 Like