I have been doing this question for a while now. Even though I have solved the question and my input and outputs are matching. I am getting the same error during run time that I have exceeded the time limit. I looked at the other solutions and simply copied and pasted them in the compiler. These solutions are the ones that have been accepted by Codechef. Even those solutions gave the same error.
I am linking the problem and my solution.
Problem: LEBOMBS Problem - CodeChef
My solutions : CodeChef: Practical coding for everyone