{"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":"HTML","content":"\u003cdiv class\u003d\"panel_content\"\u003e\n 集训队要进行一项测试,所有人都早早的来到了实验室,但是现在有一个问题,我们需要多少张桌子来安排测试呢?\u003cbr\u003e\n众所周知集训队的桌子非常非常的大,每张桌子都足以坐下所有人,但是我们不想让不认识的人坐在一起,否则会影响发挥\u003cbr\u003e\n比如如果A认识B,B认识C,那么ABC三个人就可以坐在同一张桌子上\u003cbr\u003e\n但如果A认识B,C认识D,那我们就默认AB和CD不认识,需要准备两张桌子\u003cbr\u003e\n现在我们需要你计算出,我们一共最少需要多少张桌子\n\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"输入第一行为一个整数T,表示包含T组数据(1\u003c\u003dT\u003c\u003d25)\u003cbr\u003e\n对于每组数据,第一行为两个整数N,M,表示有N个人,M对人相互认识(1 \u003c\u003d N,M \u003c\u003d 1000)\u003cbr\u003e\n接下来M行,每个行输入两个整数u、v,表示u认识v。\u003cbr\u003e"}},{"title":"Output","value":{"format":"HTML","content":"对于每个测试用例,只需输出至少需要多少张桌子。\u003cbr\u003e"}},{"title":"Sample","value":{"format":"HTML","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\u003e\u003cpre\u003e2\n5 3\n1 2\n2 3\n4 5\n\n5 1\n2 5\n\u003c/pre\u003e\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e\u003cpre\u003e2\n4\n\u003c/pre\u003e\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}