QAQ好像做了无用功,我把整个图搜了一遍 其实边的数量就是n-1 只需要2*(n-1)-dep就是答案了。。
点赞 评论

相关推荐

点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务