Hello
I am a newbie in this field and I have tried to solve such a trivial problem, first time my code got wrong answer on test 6 then I fixed it and it's getting MLE, I tried so much to recognize why my code crams the memory down but I culminated with no thing, here is my submission I would be so grateful if anyone could help me ! Thanks in advance
In this problem you don't need to store all the input. You can do something like:
Carefully analyse the behaviour of the following snippet from your program:
Check for example:
Input
Output
Thank you all :))
Thanks mrGRR ,Special Thanks lbv
I got it It was an inadvertent mistake I shouldn't fall in .
I took care about it in the previous submission but after I fixed it, I dropped it inadvertently and I spent much time on this problem so I got nervous and I didn't realize it, I had to reread my code carefully, thank you for taking time to read my post and answer me, sorry for bothering .