I am new to codechef, i tried solving this problem http://www.codechef.com/problems/DDISH/
here is my submission http://www.codechef.com/viewsolution/5458738
Even though the code gives correct output, codechef won’t accept my solution.
Help would be appreciated!
Your solution can be ran with L,R small.
Here is example, with this test:
Your code ran to TLE, but the answer is:
Must know that if your code gave correct example test, it maybe failed on some test, i.e. trick test.
It’s need to check your algorithm you used to solve that problems. Good luck!