Hello guys,
Please help me optimize my code for MAANDI…Currently,when I run this code on my system, it displays correct answers in a fraction of second (even for very large numbers)…But on Codechef, it is showing “Time Limit Exceeded”.
Any general advice is also appreciated…(new to coding)
Thanks…
(Link to Solution removed due to comment below)