{"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\u003eval_1\u003c/var\u003e \u003cvar\u003eval_2\u003c/var\u003e ... \u003cvar\u003eval_N\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\u003eThere are two good sets: {\u003cvar\u003e2,3\u003c/var\u003e} and {\u003cvar\u003e1,2,3\u003c/var\u003e}.\u003c/p\u003e \n\u003cp\u003eCard \u003cvar\u003e1\u003c/var\u003e is only contained in {\u003cvar\u003e1,2,3\u003c/var\u003e}, and this set without card \u003cvar\u003e1\u003c/var\u003e, {\u003cvar\u003e2,3\u003c/var\u003e}, is also good. Thus, card \u003cvar\u003e1\u003c/var\u003e is unnecessary.\u003c/p\u003e \n\u003cp\u003eFor card \u003cvar\u003e2\u003c/var\u003e, a good set {\u003cvar\u003e2,3\u003c/var\u003e} without card \u003cvar\u003e2\u003c/var\u003e, {\u003cvar\u003e3\u003c/var\u003e}, is not good. Thus, card \u003cvar\u003e2\u003c/var\u003e is NOT unnecessary.\u003c/p\u003e \n\u003cp\u003eNeither is card \u003cvar\u003e3\u003c/var\u003e for a similar reason, hence the answer is \u003cvar\u003e1\u003c/var\u003e.\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"}}]}