CONSESNK
why am I getting TLE? https://www.codechef.com/viewsolution/13898082
Not able to find the flaw in your code, still refer this and match your approach if possible.
EDITORIAL.
I hope this helps.
You have a for loop which runs from 0 to n (which can be 10^5) inside a loop which runs from a to a+n*l with an increment of l, which makes it equal to running n times. So the total complexity of your solution is O(n^2) since n is 10^5, that will take 10^10 operations which will not fit in the time limit.
300 loan over 12 months @ http://www.loans8.co.uk/Choosing best cash services when in need-
When facing a crisis in life, you shouldn’t acquire funds from your loved ones anymore as the top lenders are offering 500 pound loan no guarantor on their website. This deal is available for the applicants in the country who are going through a rough financial phase and require additional reinforcement to support their impending needs. With the entire procedure of application brought online, you will not be confronting any documentation in your way and with no painstaking task of arranging a guarantor before the lender, you will be deriving an access to the sum on seeking an approval from the lender. Opt for this deal and have the necessary elucidation obtained to support your purposes in life with an ease.
Get more info:
http://www.loans8.co.uk/