{"trustable":false,"sections":[{"title":"","value":{"format":"MD","content":"You are given 2 bags each consisting of some numbers of marbles. \n\nBag 1 contains **n** marbles of Red colour, **A[i]** gives weight of i’th red marble.\nBag 2 contains **m** marbles of Blue colour, **B[i]** gives weight of i’th blue marble.\n\nThere are **n** empty bowls, each bowl should be filled with the below mentioned condition. \nCondition: **\u003ci\u003eFill each bowl with exactly 2 marbles of different color and same weights.\u003c/I\u003e**\n\nAfter all the bowls are filled as per the condition, you’ll be left with **some or possibly zero** blue marbles.\n\nPrint the **distinct** weights of the remaining blue marbles in Bag 2 in **ascending** order. \n\n**NOTE:** Print missing weights only **once**. \n**Check sample input 1 for explanation.**\n"}},{"title":"","value":{"format":"MD","content":"**Input:**\nThere will be four lines of input: \n\n- The first line contains 1 integer **n**, *number of red marbles in Bag 1*\n- The second line contains n space-separated integers **A[i]**, *weight of each red marble in Bag 1*\n- The third line contains 1 integer **m**, *number of blue marbles in Bag 2*\n- The fourth line contains m space-separated integers **B[i]**, *weight of each blue marble in Bag 2*\n"}},{"title":"","value":{"format":"MD","content":"**Output:**\n\nPrint weights of remaining blue marbles in **ascending** order.\n"}},{"title":"","value":{"format":"MD","content":"**Constraints:**\n- 1 \u003c\u003d n,m \u003c\u003d 2 * 10\u003csup\u003e5\u003c/sup\u003e\n- n \u003c\u003d m\n- 1 \u003c\u003d A[i], B[i] \u003c\u003d 10\u003csup\u003e4\u003c/sup\u003e \n"}},{"title":"","value":{"format":"MD","content":"\n**Sample Input:**\n4\n1 2 4 2 \n7\n2 1 4 7 2 4 4\n\n**Sample Output:**\n4 7\n\n**Explanation:**\nBag 1 contains 4 red marbles and Bag 2 contains 7 blue marbles.\nFill 5 bowls as -\nBowl 1: {1, 1} {Red marble of weight 1, Blue marble of weight 2}\nBowl 2: {2, 2}\nBowl 3: {4, 4}\nBowl 4: {2, 2}\nAfter bowls are filled, we are left with 3 blue marbles of weights 7, 4 and 4.\nPrint weights of **distinct** remaining marbles in ascending order."}},{"title":"","value":{"format":"MD","content":"**Sample Input:**\n10\n203 204 205 206 207 208 203 204 205 206\n13\n203 204 204 205 206 207 205 208 203 206 205 206 204\n\n**Sample Output:**\n204 205 206\n\n**Explanation:**\nAfter filling 10 bowls we are remaining with 3 blue marbles of weights 204, 205 and 206.\n"}}]}