{"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":"HTML","content":"\u003ch3\u003e\u003c/h3\u003e\n\u003cp\u003e许老师是一位特别强的游戏(rmb)玩家,喜欢氪金的他买了商城中的n件装备,每个装备有一个战力值val,现在许老师要去打boss,击败boss需要战力值和大于等于k,许老师可以带任意多件装备,但是他又是有点偷懒,想要少带些装备,所以他想到了一个好的方案,\n对于一件装备,如果它所在的所有的和大于等于k的装备集合,都满足去掉这件装备的战力和依旧大于等于k,那么我们就把这件装备认为辣鸡装备,现在许老师想要知道他现在有多少件垃圾装备\n\u003c/script\u003e"}},{"title":"Constraints","value":{"format":"HTML","content":"N , K \u003c\u003d 5000\u003cp\u003e\nVal \u003c\u003d 1e9\n"}},{"title":"Input","value":{"format":"HTML","content":"\u003ch3\u003e\u003c/h3\u003e\n\u003cp\u003eThe input is given from Standard Input in the following format:\u003c/p\u003e \n\u003cpre\u003e\u003cvar\u003eN\u003c/var\u003e \u003cvar\u003eK\u003c/var\u003e\n\u003cvar\u003eval1\u003c/var\u003e \u003cvar\u003eval2\u003c/var\u003e ... \u003cvar\u003evalN\u003c/var\u003e\n\u003c/pre\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003ch3\u003e\u003c/h3\u003e\n\u003cp\u003e输出多少件垃圾装备.\u003c/p\u003e"}},{"title":"Sample Input 1","value":{"format":"HTML","content":"\u003ch3\u003e\u003c/h3\u003e\n\u003cpre\u003e3 6\n1 4 3\n\u003c/pre\u003e"}},{"title":"Sample Output 1","value":{"format":"HTML","content":"\u003ch3\u003e\u003c/h3\u003e\n\u003cpre\u003e1\n\u003c/pre\u003e \n\u003cp\u003e这里有两个方案,{4,3}和{1,4,3},而在包含1的方案里,去掉1也无所谓,所以1是辣鸡\u003c/p\u003e"}},{"title":"Sample Input 2","value":{"format":"HTML","content":"\u003ch3\u003e\u003c/h3\u003e\n\u003cpre\u003e5 400\n3 1 4 1 5\n\u003c/pre\u003e"}},{"title":"Sample Output 2","value":{"format":"HTML","content":"\u003ch3\u003e\u003c/h3\u003e\n\u003cpre\u003e5\n\u003c/pre\u003e \n\u003cp\u003e这组数据中没有好装备所以全部都是坏装备\u003c/p\u003e"}},{"title":"Sample Input 3","value":{"format":"HTML","content":"\u003ch3\u003e\u003c/h3\u003e\n\u003cpre\u003e6 20\n10 4 3 10 25 2\n\u003c/pre\u003e"}},{"title":"Sample Output 3","value":{"format":"HTML","content":"\u003ch3\u003e\u003c/h3\u003e\n\u003cpre\u003e3\n\u003c/pre\u003e"}}]}