{"trustable":false,"prependHtml":"\u003cstyle type\u003d\u0027text/css\u0027\u003e\n .input, .output {\n border: 1px solid #888888;\n }\n .output {\n margin-bottom: 1em;\n position: relative;\n top: -1px;\n }\n .output pre, .input pre {\n background-color: #EFEFEF;\n line-height: 1.25em;\n margin: 0;\n padding: 0.25em;\n }\n \u003c/style\u003e\n \u003clink rel\u003d\"stylesheet\" href\u003d\"//codeforces.org/s/96598/css/problem-statement.css\" type\u003d\"text/css\" /\u003e\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 type\u003d\"text/javascript\" async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS_HTML-full\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"MD","content":"SCPC团队有n名成员,最初大家都没有默契。\n\n今年一共要打m场比赛,每场比赛需要选一些人组成梦之队参加,同时在每场比赛之前,会有两个人在训练过程中......,于是两人建立了很好的默契。\n\n总所周知,团队比赛更注重的是队员之间的配合,所以梦之队一定是队员之间配合最好的,对于每个梦之队成员来说,至少要有k名与他有默契的人也在梦之队里。\n\n对于每场比赛,你需要算出梦之队最多能有多少人。\n\n**注意**:默契关系是没有传递性的,比如a和b有默契,b和c有默契,并不代表a和c也有默契。\n\n\n"}},{"title":"Input","value":{"format":"MD","content":"第一行三个整数$n,m,k(2\\leq n\\leq 2\\times 10^5,1\\leq m\\leq 2\\times 10^5,1\\leq k \u003c n)$,成员个数,比赛场数,梦之队默契度\n\n接下来$m$行,每行两个整数$x,y(1\\leq x,y\\leq n,x\\neq y)$,表示第i场比赛前,x和y建立了默契关系。可以保证之前两人没有任何关系。"}},{"title":"Output","value":{"format":"MD","content":"对于每场比赛,输出梦之队最大的人数。"}},{"title":"Sample 1","value":{"format":"MD","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e4 4 2\n2 3\n1 2\n1 3\n1 4\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e0\n0\n3\n3\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"Sample 2","value":{"format":"MD","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e5 8 2\n2 1\n4 2\n5 4\n5 2\n4 3\n5 1\n4 1\n3 2\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e0\n0\n0\n3\n3\n4\n4\n5\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"Sample 3","value":{"format":"MD","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e5 7 2\n1 5\n3 2\n2 5\n3 4\n1 2\n5 3\n1 3\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e0\n0\n0\n0\n3\n4\n4\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"Note","value":{"format":"MD","content":"样例1:\n- 1,2,3可以作为第3场和第4场的梦之队成员\n\n样例2:\n- 2,4,5可以作为第4场和第5场的梦之队成员\n- 1,2,4,5 可以作为第6场和第7场的梦之队成员\n- 1,2,3,4,5 可以作为第8场的梦之队成员\n\n样例3:\n- 1,2,5可以作为第五场的梦之队成员\n- 1,2,3,5 可以作为第6场和第7场的梦之队成员"}}]}