Sir, I tried using memoization to solve the problem for subtask#1 and it’s passing the sample test case given and all the test cases that I could think of. But still the final result shows that it passes only 1 test case. Please suggest where am I going wrong. Also please give me a hint of how to extend it to include subtask#2 as well. The link for the problem page and my code is here :-
https://www.codechef.com/MAY19B/problems/MATCHS
https://ide.codingblocks.com/s/72145
Codechef MATCHS problem (may long challenge 2019)
Hi
running contest should not be discussed, after the contest we can discuss this.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.