{"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\n\u003cscript\u003e\n window.katexOptions \u003d {\n disable: true\n };\n\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\n","sections":[{"title":"","value":{"format":"HTML","content":"有n个数字,x1,x2,xn;两个数字能够匹配要满足:\u003c/br\u003e\n1:i,j没有被匹配过\u003c/br\u003e\n2:|xi-xj|\u003e\u003dz\u003c/br\u003e\n问最多有多少对能够匹配"}},{"title":"Input","value":{"format":"HTML","content":"第一行输入两个正整数n和z。2\u003c\u003dn\u003c2e5,1\u003c\u003dz\u003c\u003d1e9\u003c/br\u003e\n\n第二行输入n个正整数 x1到xn 1\u003c\u003dxi\u003c\u003d1e9"}},{"title":"Output","value":{"format":"HTML","content":"输出一个正整数,最多有多少对数字能够匹配"}},{"title":"Examples","value":{"format":"HTML","content":"\u003cpre class\u003d\"sio\"\u003e\n样例1:\n4 2\n1 3 3 7\n2\n\n样例2:\n5 5\n10 9 5 8 7\n1\n\u003c/pre\u003e"}},{"title":"Note","value":{"format":"HTML","content":""}}]}