{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003eAnakin Skywalker is in a jedi shop . He wants to buy 2 lightsaber , and he has only m credits in his credit card. The shopkeeper , Watto , showed him n lightsabers but as you know he is not so good in making decisions , So help him out in finding out 2 lightsaber which sum up to the m. You are given a catalogue with N items , where ith value is cost of ith lightsaber.\u003c/p\u003e\n\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eINPUT\u003c/b\u003e\n\u003cp\u003e\nThe first line contains an integer, , the number of trips t(1\u003c\u003dt\u003c\u003d50) to the Watto\u0027s shop. The next sets of lines each describe a visit.\n\u003cbr\u003e\u003cbr\u003e\nEach trip is described as follows:\u003cbr\u003e\n\nThe integer ,m(2\u003c\u003dm\u003c\u003d10^4) the amount of credit Anakin has.\u003cbr\u003e\nThe integer ,n(2\u003c\u003dn\u003c\u003d10^4) the number of lightsabers Watto has.\u003cbr\u003e\n n space-separated integers denoting the cost of each saber A[i] (1\u003c\u003dA[i]\u003c\u003d10^4) .\u003cbr\u003e\n\u003c/p\u003e\n\n\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eOUTPUT\u003c/b\u003e\n\u003cp\u003ethe indices of the prices of the two lightsabers he bought, sorted ascending . (Using 1-based indexing)\u003c/p\u003e\n\u003cbr\u003e\n\u003cb\u003eSample Input\u003c/b\u003e\n\u003cp\u003e\n2\u003cbr\u003e \n4\u003cbr\u003e \n5\u003cbr\u003e \n1 4 5 3 2 \u003cbr\u003e\n4 \u003cbr\u003e\n4 \u003cbr\u003e\n2 2 4 3 \u003cbr\u003e\n\u003c/p\u003e\n\u003cb\u003eSample Output\u003c/b\u003e\n\u003cp\u003e\n1 4\u003cbr\u003e\n1 2\n\u003c/p\u003e\n\u003cb\u003eExplanation\u003c/b\u003e\n\u003cp\u003e\nAnakin make the following two trips to the parlor:\n\nThe first time, he had m\u003d4 credits. Of the five lightsabers available that day, lightsabers 1 and 4 have a total cost of 1 + 3 \u003d 4.\nThe second time, He had m\u003d4 credits. Of the four lightsabers available that day, sabers 1 and 2 have a total cost of 2 + 2 \u003d 4.\n\u003c/p\u003e"}}]}