{"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":"HTML","content":"给你一个长度为n的数组啊,你可以对其执行以下操作:\u003cbr\u003e\n\n1.选择一个数 i ( 1\u003c\u003di\u003c\u003dn )和一个整数 x ( 0 \u003c\u003d x \u003c\u003d 1e6),对于数组a中第 1 个到第 i 个元素都加上x。\u003cbr\u003e\n2.选择一个数 i ( 1\u003c\u003di\u003c\u003dn )和一个整数 x ( 0 \u003c\u003d x \u003c\u003d 1e6),对于数组a中第 1 个到第 i 个元素都对 x 取余。\u003cbr\u003e\n\n\n你可以在进行不超过n+1步操作的情况下,将数组变为严格递增吗?\n"}},{"title":"Input","value":{"format":"HTML","content":"第一行包含一个整数 n(1 \u003c\u003d n \u003c\u003d 2000),代表数组a中元素的个数。\n第二行包含n个由空格分隔的整数,a1,a2,......,an(0\u003c\u003dai\u003c\u003d100000)."}},{"title":"Output","value":{"format":"HTML","content":"在第一行,你应该打印需要执行的操作的步数。在接下来的行中,你需要打印执行的操作。\u003cbr\u003e\n对于增加操作,输出形式为”1 i x“;对于取余操作,输出形式为”2 i x\"。如果i和x不满足上述的条件限制或者进行了超过n+1次操作,你的回答将被判定为Wrong Answer。(注意:本题特判,只要执行输出的操作后,数组满足题目要求即可。)"}},{"title":"Examples","value":{"format":"HTML","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\u003e3\u003cbr\u003e1 2 3\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\u003e0\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"input\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Input\n \u003c/div\u003e\n \u003cpre\u003e3\u003cbr\u003e7 6 3\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\u003e2\u003cbr\u003e1 1 1\u003cbr\u003e2 2 4\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n\u003c/div\u003e"}},{"title":"Note","value":{"format":"HTML","content":"\u003cp\u003e在第一个样例,数组已经是严格递增的,所以不需要进行操作。\u003c/p\u003e\n\u003cp\u003e在第二个样例中:\u003c/p\u003e\n\u003cp\u003e第一步:数组变为[8,6,3]\u003c/p\u003e\n\u003cp\u003e第二步:数组变为[0,2,3]\u003c/p\u003e\nPS:此题可以选用GNU G++11,GNU GCC C11或者Microsoft Visual C++2010提交,"}}]}