The lower bound for the number of operations in a second I like to use is 3*10^8. Of course, it’s not precise, and can vary up to 3*10^9 depending on what the operations are.
I had roughly the same idea as given in editorial, but instead of fixing the Aj, I am fixing Ai. I need help in figuring out the TC where it is having issue! Or some idea why my code is giving TLE!
A link to my submission: Solution: 52432740 | CodeChef