{"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":"你的朋友正在开发一款电脑游戏。他已经决定了游戏世界的样子 —— 它应该由 $n$ 个位置组成,这些位置由 $m$ 个双向通道连接。这些通道的设计使得可以从任何位置到达任何其他位置。\n\n当然,一些通道应该由怪物守卫(如果你可以毫无困难地到处走动,那就没意思了,对吧?)。一些关键的通道将由真正可怕的怪物守卫,需要英雄为战斗做准备并设计自己的战胜他们的策略(通常这种怪物被称为 boss)。你的朋友希望你帮他放置这些 boss。\n\n游戏将从位置 $s$ 开始,结束在位置 $t$,但这些位置还没有被选择。选择这些位置后,你的朋友将在每个通道中放置一个 boss,使得不可能在不使用这个通道的情况下从 $s$ 到 $t$。你的朋友希望放置尽可能多的 boss(因为更多的挑战意味着更多的乐趣,对吧?),所以他请你帮他确定最大可能的 boss 数量,考虑到任何位置都可以被选择为 $s$ 或 $t$。"}},{"title":"输入格式","value":{"format":"MD","content":"第一行包含两个整数 $n$ 和 $m$ ($2 \\le n \\le 3 \\cdot 10^5$, $n - 1 \\le m \\le 3 \\cdot 10^5$) — 分别表示位置和通道的数量。\n\n接下来的 $m$ 行,每行包含两个整数 $x$ 和 $y$ ($1 \\le x, y \\le n$, $x \\ne y$),描述了一个通道的两个端点。\n\n保证没有任何一对位置直接通过两个或更多的通道连接,且任何位置都可以从任何其他位置到达。"}},{"title":"输出格式","value":{"format":"MD","content":"打印一个整数 —— 考虑所有可能的 $s$ 和 $t$ 的选择,你的朋友可以放置的老板的最大数量。"}},{"title":"样例 #1","value":{"format":"MD","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003e输入\u003c/th\u003e\n \u003cth\u003e输出\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e5 5\n1 2\n2 3\n3 1\n4 1\n5 2\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e2\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"样例 #2","value":{"format":"MD","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003e输入\u003c/th\u003e\n \u003cth\u003e输出\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e4 3\n1 2\n4 3\n3 2\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e3\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}