{"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":"# Forming Teams\n\n## 题面翻译\n\n有 $n$ 个学生,他们中有 $m$ 对人互相仇视,且每个人至多仇视 $2$ 个人。给出这 $m$ 对互相仇视的人,需要将所有学生分成人数相等的两组(来打球),且互相仇视的人不能在一组。但为了满足要求,有些人可能不得不放弃参加分组(坐板凳)。\n\n输出不能参加分组的最少人数。\n\n\n## 样例 #1\n\n### 样例输入 #1\n\n```\n5 4\n1 2\n2 4\n5 3\n1 4\n```\n\n### 样例输出 #1\n\n```\n1\n```\n\n## 样例 #2\n\n### 样例输入 #2\n\n```\n6 2\n1 4\n3 4\n```\n\n### 样例输出 #2\n\n```\n0\n```\n\n## 样例 #3\n\n### 样例输入 #3\n\n```\n6 6\n1 2\n2 3\n3 1\n4 5\n5 6\n6 4\n```\n\n### 样例输出 #3\n\n```\n2\n```"}},{"title":"Input","value":{"format":"MD","content":"第一行包含两个整数n和m(2≤n≤100,1≤m≤100)表示学生人数和 \"死敌 \"对数。\n\u003cbr\u003e\n接下来的m行描述学生之间的敌意。每种敌意被描述为两个数字ai和bi (1 ≤ ai, bi ≤ n, ai ≠ bi) ,表示互为\"死敌\"的学生。每个敌意在列表中只会出现一次。保证每个学生的死敌不超过两个。\n\u003cbr\u003e\n您可以考虑用 1 到 n 的不同整数对学生进行索引。"}},{"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\u003e5 4\n1 2\n2 4\n5 3\n1 4\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e1\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\u003e6 2\n1 4\n3 4\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e0\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\u003e6 6\n1 2\n2 3\n3 1\n4 5\n5 6\n6 4\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e2\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}