{"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":"PLAIN","content":"Cho dãy A có N phần tử.\nTìm dãy con B (không cần liên tục) dài nhất sao cho khoảng cách giữa 2 số liên tiếp của B tối đa là K.\nIn ra độ dài của nó."}},{"title":"Constraints","value":{"format":"PLAIN","content":"1 \u003c\u003d N \u003c\u003d 300000\n0 \u003c\u003d A_i, K \u003c\u003d 300000"}},{"title":"Input","value":{"format":"PLAIN","content":"N K\nA_1\nA_2\n...\nA_N"}},{"title":"Sample Input 1","value":{"format":"PLAIN","content":"10 3\n1\n5\n4\n3\n8\n6\n9\n7\n2\n4\n"}},{"title":"Sample Output 1","value":{"format":"PLAIN","content":"7"}}]}