{"trustable":true,"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":"HTML","content":"\u003cdiv class\u003d\"panel_content\"\u003e一般来说,关于字符串处理有很多问题。现在你遇到了另一个这样的问题。如果你得到两个字符串,比如“asdf”和“sdfg”,它们之间的相加结果是“asdfg”,因为“sdf”是“asdf”的尾部子字符串,同时也是“sdfg”的头部子字符串。然而,当你需要将“asdf”和“ghjk”相加并保证首先是最短的字符串,其次是最小字典序的字符串时,结果会变成“asdfghjk”,其他相加也遵循相同的规则。\u003c/div\u003e"}},{"title":"输入","value":{"format":"HTML","content":"对于每个案例,给出两个字符串(所选字符仅限于从 \u0027a\u0027 到 \u0027z\u0027),它们的长度不会超过 10^5,也不会是空字符串。"}},{"title":"输出","value":{"format":"HTML","content":"按照规则输出最终的字符串。"}},{"title":"样例","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003easdf sdfg\r\nasdf ghjk\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003easdfg\r\nasdfghjk\r\n\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}}]}