{"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":"HTML","content":"\u003cp\u003e波兰的整个快递市场被两家敌对公司掌控:EX 和 PS。他们都可以提供快速且可靠的快递服务。\u003c/p\u003e\n\u003cp\u003e波兰的整个地图可以描述为一个无向简单图,其中点表示城市,边表示道路,没有自环与多重边。\u003c/p\u003e\n\u003cp\u003eEX 和 PS 的竞争非常激烈,他们各自设定自己的配送路线,其中任何一条道路都绝不会与对方共享。\u003c/p\u003e\n\u003cp\u003e为了减少公共资源开支,波兰政府准备大幅裁剪道路维修成本,拆除一些道路,仅保留能维持现有快递运输的最少道路,即EX 和 PS 仍然可以保持各自在任意两座城市之间的快递线路互无交集。\u003c/p\u003e\n\u003cp\u003e那么,波兰政府最少需要维护多少条道路呢?\u003c/p\u003e\n形式化地描述以上问题,给你一个边双连通无向图,请你求出其边数最少的边双连通生成子图(保留所有的点)。"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003e第一行包含两个整数 $n,m(3\\le n\\le 14,n\\le m\\le {n(n-1)\\over 2})$,分别表示城市数与道路数。\u003c/p\u003e\n\n接下来 $m$ 行,每行两个整数 $v,v(1\\le v,u\\le n,v\\neq u)$,表示两个城市之间有一条道路直连。\u003c/p\u003e\n\n输入保证任意两座城市之间最多只有一条道路直连,且它们之间最多有两条互不相交的路径。"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003e第一行输出一个整数 $k$,表示两公司能维持现有快递业务的最小道路数。\u003c/p\u003e\n\u003cp\u003e接下来用 $k$ 行输出该最小道路集合,每行两个整数 $v,u$,表示一条连接 $v$ 和 $u$ 两座城市的道路。\u003c/p\u003e\n\u003cp\u003e如果有多组解,输出任意一组即可。输出道路的顺序随意。\u003c/p\u003e"}},{"title":"Sample 1","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\u003e3 3\n1 2\n2 3\n3 1\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e3\n1 3\n3 2\n1 2\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":"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\u003e4 5\n1 2\n1 4\n2 3\n4 3\n1 3\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e4\n1 4\n4 3\n3 2\n1 2\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":"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\u003e6 10\n1 2\n2 3\n3 1\n3 4\n4 5\n5 6\n4 6\n2 5\n1 6\n3 5\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e6\n1 6\n6 5\n5 4\n4 3\n3 2\n1 2\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"Note","value":{"format":"HTML","content":"\u003cp\u003e如下为三组样例的最优解:\u003c/p\u003e\n\u003ccenter\u003e\u003cimg class\u003d\"tex-graphics\" src\u003d\"CDN_BASE_URL/3c9ff2d740bceae65a8ed0058c26459b?v\u003d1680471235\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e \u003cimg class\u003d\"tex-graphics\" src\u003d\"CDN_BASE_URL/22ea69c65742003ceac97c0aa519831f?v\u003d1680471235\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e \u003cimg class\u003d\"tex-graphics\" src\u003d\"CDN_BASE_URL/400102853b9420dab3e96d69cd4fd217?v\u003d1680471235\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e\n\u003c/center\u003e"}}]}