[CodeChef: Practical coding for everyone] this is my solution but as it is bruteforce,it shows TLE.J.ust wanted to understand the correct approach.
by the way ,here is the link of the question[CodeChef: Practical coding for everyone]
[CodeChef: Practical coding for everyone] this is my solution but as it is bruteforce,it shows TLE.J.ust wanted to understand the correct approach.
by the way ,here is the link of the question[CodeChef: Practical coding for everyone]