摘要: 题目链接: http://www.51nod.com/onlineJudge/questionCode.html#!problemId=1307 题意: 题解: 方法一: 因为所有绳子最终组成了1棵树,所以我们可以通过一次DFS,来检测是否有某根绳子下面绑了超过他所能负荷的重量。 具体方法:对每个节 阅读全文
posted @ 2017-03-22 20:48 _yxg123 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 题目链接: http://www.51nod.com/onlineJudge/questionCode.html#!problemId=1116 题意: 题解: 代码: 暴力: 1 #include <bits/stdc++.h> 2 using namespace std; 3 typedef l 阅读全文
posted @ 2017-03-22 20:37 _yxg123 阅读(141) 评论(0) 推荐(0) 编辑