{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003eXHK音乐节在西南交通大学峨眉校区举办。主办方在交大各地举办了多场音乐会,给定每场音乐会的演出时间区间,区间重叠的演出不可能同时看(端点可以重合)。WSJ希望能看到尽可能多的演出,问你最多能看到多少场演出。\u003c/p\u003e\n"}},{"title":"Input","value":{"format":"HTML","content":"\n 多组数据。每组数据开头是n(n\u0026lt;\u003d100),表示共n场音乐节目。\n \u003cbr\u003e接下来n行,每行两个整数(0到1000之间),表示一场节目的演出时间区间\n \u003cbr\u003en\u003d0则数据结束\n "}},{"title":"Output","value":{"format":"HTML","content":"\n 对每组数据输出最多能看几场演出。\n "}},{"title":"Sample Input","value":{"format":"HTML","content":"\n \u003cpre\u003e8\n3 4\n0 7 \n3 8 \n15 19\n15 20\n10 15\n8 18 \n6 12 \n0\n\u003c/pre\u003e\n "}},{"title":"Sample Output","value":{"format":"HTML","content":"\n \u003cpre\u003e3\u003c/pre\u003e\n "}}]}