I tried solving the 'Chef & Integers' question in the September Challenge. But, in the sample input, they have not written anything about the number of test cases. I assumed that there would be just one test case, but I am getting a TLE. I tried optimizing it but it did not work. Yes, my algorithm may be poor, but why does this question not contain this trivial information? Any tricks here?
↧