This is the problem
this is my solution
https://www.codechef.com/viewsolution/38112148
it is passing the testcases given in problem statements (custom input) but gives WA for some hidden cases and TLE for some.
This is the problem
this is my solution
https://www.codechef.com/viewsolution/38112148
it is passing the testcases given in problem statements (custom input) but gives WA for some hidden cases and TLE for some.
I am not able to view your solution.