{"trustable":false,"prependHtml":"\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"MD","content":"堆堆和栈栈是两个好朋友,这天他们遇到了好朋友团子。\n堆堆有一些带编号的苹果,栈栈也有一些\n堆堆的那堆苹果编号没有重复的,栈栈的也一样\n他们决定将两人的苹果合并,并且在合并后的那堆苹果中每一个不同编号的苹果拿一个出来给团子\n团子可高兴了,你能帮助她根据编号大小从小到大例举出能获得哪些编号的苹果吗?"}},{"title":"Input","value":{"format":"MD","content":"多组输入!每组输入数据分为三行,第一行有两个数字n,m(0 \u003c n,m \u003c\u003d 10000),分别表示堆堆苹果数量n和栈栈苹果数量m.后两行分别表示堆堆和栈栈苹果的编号.每个元素为不超出int范围的整数,每个元素之间有一个空格隔开."}},{"title":"Output","value":{"format":"MD","content":"针对每组数据输出一行数据,表示合并后的列举出的编号,要求从小到大输出,每个元素之间有一个空格隔开,没有多余的空格!\n\n注意:多组输入,The input is terminated by the end of file (EOF)\n\nc语言 :while(scanf(\"%d%d\",\u0026n,\u0026m)!\u003dEOF)\nc++ : while(cin \u003e\u003e n \u003e\u003e m)"}},{"title":"Sample Input","value":{"format":"MD","content":"1 2\n1\n2 3\n1 2\n1\n1 2"}},{"title":"Sample Output","value":{"format":"MD","content":"1 2 3\n1 2"}}]}