{"trustable":false,"prependHtml":"\u003cstyle type\u003d\"text/css\"\u003e\n section pre {\n display: block;\n padding: 9.5px;\n margin: 0 0 10px;\n font-size: 13px;\n line-height: 1.42857143;\n word-break: break-all;\n word-wrap: break-word;\n color: #333;\n background: rgba(255, 255, 255, 0.5);\n border: 1px solid #ccc;\n border-radius: 6px;\n }\n\u003c/style\u003e\n\u003cscript\u003e\n window.katexOptions \u003d {\n delimiters: [\n {left: \u0027\\\\(\u0027, right: \u0027\\\\)\u0027, display: false},\n {left: \u0027\\\\[\u0027, right: \u0027\\\\]\u0027, display: true}\n ]\n };\n\u003c/script\u003e\n","sections":[{"title":"Problem Statement","value":{"format":"MD","content":"Dada una secuencia de tres enteros donde puedes agregar uno al valor de cualquiera de ellos. Cuál es la mínima cantidad de operaciones para volver a la secuencia una sucesión aritmética. Esto es que el segundo elemento menos el primero es igual que el tercero menos el segundo."}},{"title":"Constraints","value":{"format":"MD","content":"\u003ch3\u003e\u003c/h3\u003e\n\u003cul\u003e \n \u003cli\u003e\u003cvar\u003e(1 ≤ A_1, A_2, A_3 ≤1000\u0027000\u0027000\u0027000\u0027000)\u003c/var\u003e\u003c/li\u003e \n\u003c/ul\u003e"}},{"title":"Input","value":{"format":"MD","content":"\u003ch3\u003e\u003c/h3\u003e\n\u003cp\u003eEntrada:\u003c/p\u003e \n\u003cpre\u003e\u003cvar\u003eA_1\u003c/var\u003e \u003cvar\u003eA_2\u003c/var\u003e \u003cvar\u003eA_3\u003c/var\u003e\n\u003c/pre\u003e"}},{"title":"Output","value":{"format":"MD","content":"\u003ch3\u003e\u003c/h3\u003e\n\u003cp\u003eImprime la respuesta.\u003c/p\u003e"}},{"title":"Sample Input 1","value":{"format":"MD","content":"\u003ch3\u003e\u003c/h3\u003e\n\u003cpre\u003e4 8 10\n\u003c/pre\u003e"}},{"title":"Sample Output 1","value":{"format":"MD","content":"\u003ch3\u003e\u003c/h3\u003e\n\u003cpre\u003e2\n\u003c/pre\u003e \n\u003cp\u003eSe le puede agregar uno al primero y uno al tercero.\u003c/p\u003e"}},{"title":"Sample Input 2","value":{"format":"MD","content":"\u003ch3\u003e\u003c/h3\u003e\n\u003cpre\u003e10 3 4\n\u003c/pre\u003e"}},{"title":"Sample Output 2","value":{"format":"MD","content":"\u003ch3\u003e\u003c/h3\u003e\n\u003cpre\u003e4\n\u003c/pre\u003e \n\u003cp\u003eAgregamos 4 al segundo elemento para hacer una sucesión con progresión -3.\u003c/p\u003e"}},{"title":"Sample Input 3","value":{"format":"MD","content":"\u003ch3\u003e\u003c/h3\u003e\n\u003cpre\u003e1 2 3\n\u003c/pre\u003e"}},{"title":"Sample Output 3","value":{"format":"MD","content":"\u003ch3\u003e\u003c/h3\u003e\n\u003cpre\u003e0\n\u003c/pre\u003e \n\u003cp\u003eLa secuencia ya es aritmética.\u003c/p\u003e"}},{"title":"Sample Input 4","value":{"format":"MD","content":"\u003ch3\u003e\u003c/h3\u003e\n\u003cpre\u003e1000000000000000 1 1000000000000000\n\u003c/pre\u003e"}},{"title":"Sample Output 4","value":{"format":"MD","content":"\u003ch3\u003e\u003c/h3\u003e\n\u003cpre\u003e999999999999999\n\u003c/pre\u003e"}}]}