{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv\u003e\n n(n\u0026lt;\u003d10000) \n \u003cspan\u003e\u003cspan\u003e个人依次贴海报\u003c/span\u003e\u003c/span\u003e,给出每张海报所贴的范围li,ri(1\u0026lt;\u003dli\u0026lt;\u003dri\u0026lt;\u003d10000000) \n \u003cspan\u003e\u003cspan\u003e。求出最后还能看见多少张海报。\u003c/span\u003e\u003c/span\u003e\n\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cdiv\u003e \n \u003cdiv\u003e\n \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp;第一行: \n \u003cspan\u003e\u003cspan\u003e样例个数T\u003c/span\u003e\u003c/span\u003e\n \u003c/div\u003e \n \u003cdiv\u003e\n \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp;第二行: \n \u003cspan\u003e\u003cspan\u003e贴海报的人n\u003c/span\u003e\u003c/span\u003e\n \u003c/div\u003e \n \u003cdiv\u003e\n \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp;第三行: \n \u003cspan\u003e\u003cspan\u003e每个人贴海报的范围\u003c/span\u003e\u003c/span\u003e\n \u003c/div\u003e \n \u003cdiv\u003e\n \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp;\n \u003cspan\u003e接下来n行\u003c/span\u003e:\n \u003cspan\u003e每个人贴海报的范围\u003c/span\u003e\n \u003c/div\u003e \n\u003c/div\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cdiv\u003e\n 对于每一个输入,输出最后可以看到的海报张数。下面这个图是样例解释\n\u003c/div\u003e \n\u003cdiv\u003e\n \u0026nbsp;\n\u003c/div\u003e \n\u003cdiv\u003e\n \u0026nbsp;\n\u003c/div\u003e \n\u003cdiv\u003e \n \u003cbr\u003e \n \u003cimg src\u003d\"CDN_BASE_URL/85d8df2191db8df82ba259ebe2bfe93e?v\u003d1560973053\"\u003e\n\u003c/div\u003e"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cpre\u003e\n1\n5\n1 4\n2 6\n8 10\n3 4\n7 10\n\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cpre\u003e\n4\n\u003c/pre\u003e"}}]}