{"trustable":false,"prependHtml":"\u003cscript\u003e window.katexOptions \u003d { disable: true }; \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 async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"PLAIN","content":"现有二维平面N(N不超过15000)个点的坐标,以按纵坐标为第一关键字、横坐标为第二关键字升序的方式给出(当两个点的纵坐标不同时纵坐标小的在前,纵坐标相同时横坐标小的在前,保证不存在两个点坐标相同)。问对于每个点,其权值定义为有多少个点在它的左下方(包括正左方和正下方),问对于权值从0~n-1,对应权值的点有多少个?"}},{"title":"Input","value":{"format":"PLAIN","content":"多组数据,处理到EOF为止\n第一行给出一个整数N(N\u003c\u003d15000),表示点的个数\n接下来N行每行给出两个整数Xi、Yi(0\u003c\u003dXi,Yi\u003c\u003d32000),表示第i个点的坐标"}},{"title":"Output","value":{"format":"PLAIN","content":"输出N行,第i行表示在权值为i-1的点的个数"}},{"title":"Sample Input","value":{"format":"PLAIN","content":"5\n1 1\n5 1\n7 1\n3 3\n5 5"}},{"title":"Sample Output","value":{"format":"PLAIN","content":"1\n2\n1\n1\n0"}}]}