I am getting MLE on the test case 2 of my submission, previously, i was getting MLE because i was using a set , but now i am using only a variable but it is still giving me MLE on test 2, Could anyone help me with this issue i will be grateful for your help.








when x = 0 you dont cin the a,b,c arrays. so in the next iteration an element from a is read as n.
Thanks that problem is solved now!