当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。
4 5 1 2 4 2 3 2 1 3 4 1 10 14 1 2 2 9 1 3 3 4 4 10 3 5 5 7 5 8 3 6 9 1 1 10 1 6 7 3 8 3 0 0
1 3
ere is the graph G in the first test case:The solid lines denote the edge which belongs to the DFS spanning tree, and the dotted lines denote the others. For first case, we can choose one edge (1, 2) For second case, we can choose three edges (1, 2), (1, 3), (3, 5)
Recommend |
时间上限 | 内存上限 |
6000/3000MS(Java/Others) | 65535/65536K(Java/Others) |