EDIT: I AM ABLE TO SOLVE THIS FOR FULL MARKS NOW BUT HAVEN’T STILL UNDERSTOOD HOW SET USAGE INSTEAD OF A LIST IMPROVED IT SO DRASTICALLY.Can someone help me with the links or explanations
I read the editorial and saw a few solutions. My approach is basic and similar to some people. It should have got atleast 50. But it doesn’t pass the first case too. Can someone help me out in this by looking at my solution: CodeChef: Practical coding for everyone
Also refer this solution because this is quite similar but has passed all cases: CodeChef: Practical coding for everyone