{"trustable":false,"prependHtml":"\u003cstyle type\u003d\u0027text/css\u0027\u003e\n .input, .output {\n border: 1px solid #888888;\n }\n .output {\n margin-bottom: 1em;\n position: relative;\n top: -1px;\n }\n .output pre, .input pre {\n background-color: #EFEFEF;\n line-height: 1.25em;\n margin: 0;\n padding: 0.25em;\n }\n \u003c/style\u003e\n \u003clink rel\u003d\"stylesheet\" href\u003d\"//codeforces.org/s/96598/css/problem-statement.css\" type\u003d\"text/css\" /\u003e\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 type\u003d\"text/javascript\" async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS_HTML-full\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"MD","content":"给你两个十进制数x, y,初始都为0\n有3种操作\n1 k a b - 在x的第k位之后插入a,在y的第k位之后插入b (0 ≤ a , b ≤ 9) 保证操作合法\n2 k - 删除x, y的第k位数, 保证操作合法\n3 k - 输出(x + y)的第k位数,若不存在输出-1"}},{"title":"Input","value":{"format":"MD","content":"第一行一个数组n (1 ≤ n ≤ 3 × 10^5)\n接下来n行按照格式给出"}},{"title":"Output","value":{"format":"MD","content":"对于每个3操作输出一行"}},{"title":"Example","value":{"format":"MD","content":"\u003cdiv class\u003d\"sample-test\"\u003e\n \u003cdiv class\u003d\"input\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Input\n \u003c/div\u003e\n \u003cpre\u003e12\u003cbr\u003e1 0 8 1\u003cbr\u003e3 1\u003cbr\u003e3 2\u003cbr\u003e2 1\u003cbr\u003e1 0 8 3\u003cbr\u003e3 1\u003cbr\u003e3 2\u003cbr\u003e1 0 4 5\u003cbr\u003e3 1\u003cbr\u003e3 2\u003cbr\u003e3 3\u003cbr\u003e3 5\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"output\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Output\n \u003c/div\u003e\n \u003cpre\u003e9\u003cbr\u003e0\u003cbr\u003e1\u003cbr\u003e1\u003cbr\u003e1\u003cbr\u003e0\u003cbr\u003e1\u003cbr\u003e-1\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n\u003c/div\u003e"}}]}